@Generated(value="software.amazon.awssdk:codegen") public final class FirewallRule extends Object implements SdkPojo, Serializable, ToCopyableBuilder<FirewallRule.Builder,FirewallRule>
A single firewall rule in a rule group.
| Modifier and Type | Class and Description |
|---|---|
static interface |
FirewallRule.Builder |
| Modifier and Type | Method and Description |
|---|---|
Action |
action()
The action that DNS Firewall should take on a DNS query when it matches one of the domains in the rule's domain
list:
|
String |
actionAsString()
The action that DNS Firewall should take on a DNS query when it matches one of the domains in the rule's domain
list:
|
BlockOverrideDnsType |
blockOverrideDnsType()
The DNS record's type.
|
String |
blockOverrideDnsTypeAsString()
The DNS record's type.
|
String |
blockOverrideDomain()
The custom DNS record to send back in response to the query.
|
Integer |
blockOverrideTtl()
The recommended amount of time, in seconds, for the DNS resolver or web browser to cache the provided override
record.
|
BlockResponse |
blockResponse()
The way that you want DNS Firewall to block the request.
|
String |
blockResponseAsString()
The way that you want DNS Firewall to block the request.
|
static FirewallRule.Builder |
builder() |
String |
creationTime()
The date and time that the rule was created, in Unix time format and Coordinated Universal Time (UTC).
|
String |
creatorRequestId()
A unique string defined by you to identify the request.
|
boolean |
equals(Object obj) |
boolean |
equalsBySdkFields(Object obj) |
String |
firewallDomainListId()
The ID of the domain list that's used in the rule.
|
String |
firewallRuleGroupId()
The unique identifier of the firewall rule group of the rule.
|
<T> Optional<T> |
getValueForField(String fieldName,
Class<T> clazz) |
int |
hashCode() |
String |
modificationTime()
The date and time that the rule was last modified, in Unix time format and Coordinated Universal Time (UTC).
|
String |
name()
The name of the rule.
|
Integer |
priority()
The priority of the rule in the rule group.
|
List<SdkField<?>> |
sdkFields() |
static Class<? extends FirewallRule.Builder> |
serializableBuilderClass() |
FirewallRule.Builder |
toBuilder() |
String |
toString()
Returns a string representation of this object.
|
clone, finalize, getClass, notify, notifyAll, wait, wait, waitcopypublic final String firewallRuleGroupId()
The unique identifier of the firewall rule group of the rule.
public final String firewallDomainListId()
The ID of the domain list that's used in the rule.
public final String name()
The name of the rule.
public final Integer priority()
The priority of the rule in the rule group. This value must be unique within the rule group. DNS Firewall processes the rules in a rule group by order of priority, starting from the lowest setting.
public final Action action()
The action that DNS Firewall should take on a DNS query when it matches one of the domains in the rule's domain list:
ALLOW - Permit the request to go through.
ALERT - Permit the request to go through but send an alert to the logs.
BLOCK - Disallow the request. If this is specified, additional handling details are provided in the
rule's BlockResponse setting.
If the service returns an enum value that is not available in the current SDK version, action will
return Action.UNKNOWN_TO_SDK_VERSION. The raw value returned by the service is available from
actionAsString().
ALLOW - Permit the request to go through.
ALERT - Permit the request to go through but send an alert to the logs.
BLOCK - Disallow the request. If this is specified, additional handling details are provided
in the rule's BlockResponse setting.
Actionpublic final String actionAsString()
The action that DNS Firewall should take on a DNS query when it matches one of the domains in the rule's domain list:
ALLOW - Permit the request to go through.
ALERT - Permit the request to go through but send an alert to the logs.
BLOCK - Disallow the request. If this is specified, additional handling details are provided in the
rule's BlockResponse setting.
If the service returns an enum value that is not available in the current SDK version, action will
return Action.UNKNOWN_TO_SDK_VERSION. The raw value returned by the service is available from
actionAsString().
ALLOW - Permit the request to go through.
ALERT - Permit the request to go through but send an alert to the logs.
BLOCK - Disallow the request. If this is specified, additional handling details are provided
in the rule's BlockResponse setting.
Actionpublic final BlockResponse blockResponse()
The way that you want DNS Firewall to block the request. Used for the rule action setting BLOCK.
NODATA - Respond indicating that the query was successful, but no response is available for it.
NXDOMAIN - Respond indicating that the domain name that's in the query doesn't exist.
OVERRIDE - Provide a custom override in the response. This option requires custom handling details
in the rule's BlockOverride* settings.
If the service returns an enum value that is not available in the current SDK version, blockResponse
will return BlockResponse.UNKNOWN_TO_SDK_VERSION. The raw value returned by the service is available from
blockResponseAsString().
BLOCK.
NODATA - Respond indicating that the query was successful, but no response is available for
it.
NXDOMAIN - Respond indicating that the domain name that's in the query doesn't exist.
OVERRIDE - Provide a custom override in the response. This option requires custom handling
details in the rule's BlockOverride* settings.
BlockResponsepublic final String blockResponseAsString()
The way that you want DNS Firewall to block the request. Used for the rule action setting BLOCK.
NODATA - Respond indicating that the query was successful, but no response is available for it.
NXDOMAIN - Respond indicating that the domain name that's in the query doesn't exist.
OVERRIDE - Provide a custom override in the response. This option requires custom handling details
in the rule's BlockOverride* settings.
If the service returns an enum value that is not available in the current SDK version, blockResponse
will return BlockResponse.UNKNOWN_TO_SDK_VERSION. The raw value returned by the service is available from
blockResponseAsString().
BLOCK.
NODATA - Respond indicating that the query was successful, but no response is available for
it.
NXDOMAIN - Respond indicating that the domain name that's in the query doesn't exist.
OVERRIDE - Provide a custom override in the response. This option requires custom handling
details in the rule's BlockOverride* settings.
BlockResponsepublic final String blockOverrideDomain()
The custom DNS record to send back in response to the query. Used for the rule action BLOCK with a
BlockResponse setting of OVERRIDE.
BLOCK
with a BlockResponse setting of OVERRIDE.public final BlockOverrideDnsType blockOverrideDnsType()
The DNS record's type. This determines the format of the record value that you provided in
BlockOverrideDomain. Used for the rule action BLOCK with a BlockResponse
setting of OVERRIDE.
If the service returns an enum value that is not available in the current SDK version,
blockOverrideDnsType will return BlockOverrideDnsType.UNKNOWN_TO_SDK_VERSION. The raw value
returned by the service is available from blockOverrideDnsTypeAsString().
BlockOverrideDomain. Used for the rule action BLOCK with a
BlockResponse setting of OVERRIDE.BlockOverrideDnsTypepublic final String blockOverrideDnsTypeAsString()
The DNS record's type. This determines the format of the record value that you provided in
BlockOverrideDomain. Used for the rule action BLOCK with a BlockResponse
setting of OVERRIDE.
If the service returns an enum value that is not available in the current SDK version,
blockOverrideDnsType will return BlockOverrideDnsType.UNKNOWN_TO_SDK_VERSION. The raw value
returned by the service is available from blockOverrideDnsTypeAsString().
BlockOverrideDomain. Used for the rule action BLOCK with a
BlockResponse setting of OVERRIDE.BlockOverrideDnsTypepublic final Integer blockOverrideTtl()
The recommended amount of time, in seconds, for the DNS resolver or web browser to cache the provided override
record. Used for the rule action BLOCK with a BlockResponse setting of
OVERRIDE.
BLOCK with a BlockResponse setting of
OVERRIDE.public final String creatorRequestId()
A unique string defined by you to identify the request. This allows you to retry failed requests without the risk of executing the operation twice. This can be any unique string, for example, a timestamp.
public final String creationTime()
The date and time that the rule was created, in Unix time format and Coordinated Universal Time (UTC).
public final String modificationTime()
The date and time that the rule was last modified, in Unix time format and Coordinated Universal Time (UTC).
public FirewallRule.Builder toBuilder()
toBuilder in interface ToCopyableBuilder<FirewallRule.Builder,FirewallRule>public static FirewallRule.Builder builder()
public static Class<? extends FirewallRule.Builder> serializableBuilderClass()
public final boolean equalsBySdkFields(Object obj)
equalsBySdkFields in interface SdkPojopublic final String toString()
Copyright © 2023. All rights reserved.