Struct aws_sdk_route53resolver::input::UpdateFirewallRuleInput [−][src]
#[non_exhaustive]pub struct UpdateFirewallRuleInput {
pub firewall_rule_group_id: Option<String>,
pub firewall_domain_list_id: 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 name: Option<String>,
}
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 for the rule.
firewall_domain_list_id: Option<String>
The ID of the domain list to use in the rule.
priority: Option<i32>
The setting that determines the processing order of the rule in the rule group. DNS Firewall processes the rules in a rule group by order of priority, starting from the lowest setting.
You must specify a unique priority for each rule in a rule group. To make it easier to insert rules later, leave space between the numbers, for example, use 100, 200, and so on. You can change the priority setting for the rules in a rule group at any time.
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. This option requires additional details in the rule'sBlockResponse
.
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
.
name: Option<String>
The name of the rule.
Implementations
pub async fn make_operation(
&self,
_config: &Config
) -> Result<Operation<UpdateFirewallRule, AwsErrorRetryPolicy>, BuildError>
pub async fn make_operation(
&self,
_config: &Config
) -> Result<Operation<UpdateFirewallRule, AwsErrorRetryPolicy>, BuildError>
Consumes the builder and constructs an Operation<UpdateFirewallRule
>
Creates a new builder-style object to manufacture UpdateFirewallRuleInput
The unique identifier of the firewall rule group for the rule.
The ID of the domain list to use in the rule.
The setting that determines the processing order of the rule in the rule group. DNS Firewall processes the rules in a rule group by order of priority, starting from the lowest setting.
You must specify a unique priority for each rule in a rule group. To make it easier to insert rules later, leave space between the numbers, for example, use 100, 200, and so on. You can change the priority setting for the rules in a rule group at any time.
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. This option requires additional details in the rule'sBlockResponse
.
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.
The custom DNS record to send back in response to the query. Used for the rule action BLOCK
with a BlockResponse
setting of OVERRIDE
.
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
.
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
.
Trait Implementations
This method tests for self
and other
values to be equal, and is used
by ==
. Read more
This method tests for !=
.
Auto Trait Implementations
impl RefUnwindSafe for UpdateFirewallRuleInput
impl Send for UpdateFirewallRuleInput
impl Sync for UpdateFirewallRuleInput
impl Unpin for UpdateFirewallRuleInput
impl UnwindSafe for UpdateFirewallRuleInput
Blanket Implementations
Mutably borrows from an owned value. Read more
Attaches the provided Subscriber
to this type, returning a
WithDispatch
wrapper. Read more
Attaches the current default Subscriber
to this type, returning a
WithDispatch
wrapper. Read more