Struct aws_sdk_route53resolver::types::FirewallRule
source · #[non_exhaustive]pub struct FirewallRule {
pub firewall_rule_group_id: Option<String>,
pub firewall_domain_list_id: Option<String>,
pub name: Option<String>,
pub priority: Option<i32>,
pub action: Option<Action>,
pub block_response: Option<BlockResponse>,
pub block_override_domain: Option<String>,
pub block_override_dns_type: Option<BlockOverrideDnsType>,
pub block_override_ttl: Option<i32>,
pub creator_request_id: Option<String>,
pub creation_time: Option<String>,
pub modification_time: Option<String>,
}
Expand description
A single firewall rule in a rule group.
Fields (Non-exhaustive)§
This struct is marked as non-exhaustive
Struct { .. }
syntax; cannot be matched against without a wildcard ..
; and struct update syntax will not work.firewall_rule_group_id: Option<String>
The unique identifier of the firewall rule group of the rule.
firewall_domain_list_id: Option<String>
The ID of the domain list that's used in the rule.
name: Option<String>
The name of the rule.
priority: Option<i32>
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.
action: Option<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'sBlockResponse
setting.
block_response: Option<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'sBlockOverride*
settings.
block_override_domain: Option<String>
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_override_dns_type: Option<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
.
block_override_ttl: Option<i32>
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
.
creator_request_id: Option<String>
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.
creation_time: Option<String>
The date and time that the rule was created, in Unix time format and Coordinated Universal Time (UTC).
modification_time: Option<String>
The date and time that the rule was last modified, in Unix time format and Coordinated Universal Time (UTC).
Implementations§
source§impl FirewallRule
impl FirewallRule
sourcepub fn firewall_rule_group_id(&self) -> Option<&str>
pub fn firewall_rule_group_id(&self) -> Option<&str>
The unique identifier of the firewall rule group of the rule.
sourcepub fn firewall_domain_list_id(&self) -> Option<&str>
pub fn firewall_domain_list_id(&self) -> Option<&str>
The ID of the domain list that's used in the rule.
sourcepub fn priority(&self) -> Option<i32>
pub fn priority(&self) -> Option<i32>
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.
sourcepub fn action(&self) -> Option<&Action>
pub fn action(&self) -> Option<&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'sBlockResponse
setting.
sourcepub fn block_response(&self) -> Option<&BlockResponse>
pub fn block_response(&self) -> Option<&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'sBlockOverride*
settings.
sourcepub fn block_override_domain(&self) -> Option<&str>
pub fn block_override_domain(&self) -> Option<&str>
The custom DNS record to send back in response to the query. Used for the rule action BLOCK
with a BlockResponse
setting of OVERRIDE
.
sourcepub fn block_override_dns_type(&self) -> Option<&BlockOverrideDnsType>
pub fn block_override_dns_type(&self) -> Option<&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
.
sourcepub fn block_override_ttl(&self) -> Option<i32>
pub fn block_override_ttl(&self) -> Option<i32>
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
.
sourcepub fn creator_request_id(&self) -> Option<&str>
pub fn creator_request_id(&self) -> Option<&str>
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.
sourcepub fn creation_time(&self) -> Option<&str>
pub fn creation_time(&self) -> Option<&str>
The date and time that the rule was created, in Unix time format and Coordinated Universal Time (UTC).
sourcepub fn modification_time(&self) -> Option<&str>
pub fn modification_time(&self) -> Option<&str>
The date and time that the rule was last modified, in Unix time format and Coordinated Universal Time (UTC).
source§impl FirewallRule
impl FirewallRule
sourcepub fn builder() -> FirewallRuleBuilder
pub fn builder() -> FirewallRuleBuilder
Creates a new builder-style object to manufacture FirewallRule
.
Trait Implementations§
source§impl Clone for FirewallRule
impl Clone for FirewallRule
source§fn clone(&self) -> FirewallRule
fn clone(&self) -> FirewallRule
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read moresource§impl Debug for FirewallRule
impl Debug for FirewallRule
source§impl PartialEq for FirewallRule
impl PartialEq for FirewallRule
source§fn eq(&self, other: &FirewallRule) -> bool
fn eq(&self, other: &FirewallRule) -> bool
self
and other
values to be equal, and is used
by ==
.