aws_sdk_route53globalresolver/client/update_firewall_rule.rs
1// Code generated by software.amazon.smithy.rust.codegen.smithy-rs. DO NOT EDIT.
2impl super::Client {
3 /// Constructs a fluent builder for the [`UpdateFirewallRule`](crate::operation::update_firewall_rule::builders::UpdateFirewallRuleFluentBuilder) operation.
4 ///
5 /// - The fluent builder is configurable:
6 /// - [`action(FirewallRuleAction)`](crate::operation::update_firewall_rule::builders::UpdateFirewallRuleFluentBuilder::action) / [`set_action(Option<FirewallRuleAction>)`](crate::operation::update_firewall_rule::builders::UpdateFirewallRuleFluentBuilder::set_action):<br>required: **false**<br><p>The action that DNS Firewall should take on a DNS query when it matches one of the domains in the rule's domain list, or a threat in a DNS Firewall Advanced rule.</p><br>
7 /// - [`block_override_dns_type(BlockOverrideDnsQueryType)`](crate::operation::update_firewall_rule::builders::UpdateFirewallRuleFluentBuilder::block_override_dns_type) / [`set_block_override_dns_type(Option<BlockOverrideDnsQueryType>)`](crate::operation::update_firewall_rule::builders::UpdateFirewallRuleFluentBuilder::set_block_override_dns_type):<br>required: **false**<br><p>The DNS record's type. This determines the format of the record value that you provided in <code>BlockOverrideDomain</code>. Used for the rule action <code>BLOCK</code> with a <code>BlockResponse</code> setting of <code>OVERRIDE</code>.</p><br>
8 /// - [`block_override_domain(impl Into<String>)`](crate::operation::update_firewall_rule::builders::UpdateFirewallRuleFluentBuilder::block_override_domain) / [`set_block_override_domain(Option<String>)`](crate::operation::update_firewall_rule::builders::UpdateFirewallRuleFluentBuilder::set_block_override_domain):<br>required: **false**<br><p>The custom DNS record to send back in response to the query. Used for the rule action <code>BLOCK</code> with a <code>BlockResponse</code> setting of <code>OVERRIDE</code>.</p><br>
9 /// - [`block_override_ttl(i32)`](crate::operation::update_firewall_rule::builders::UpdateFirewallRuleFluentBuilder::block_override_ttl) / [`set_block_override_ttl(Option<i32>)`](crate::operation::update_firewall_rule::builders::UpdateFirewallRuleFluentBuilder::set_block_override_ttl):<br>required: **false**<br><p>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 <code>BLOCK</code> with a <code>BlockResponse</code> setting of <code>OVERRIDE</code>.</p><br>
10 /// - [`block_response(FirewallBlockResponse)`](crate::operation::update_firewall_rule::builders::UpdateFirewallRuleFluentBuilder::block_response) / [`set_block_response(Option<FirewallBlockResponse>)`](crate::operation::update_firewall_rule::builders::UpdateFirewallRuleFluentBuilder::set_block_response):<br>required: **false**<br><p>The way that you want DNS Firewall to block the request. Used for the rule action setting <code>BLOCK</code>.</p><br>
11 /// - [`client_token(impl Into<String>)`](crate::operation::update_firewall_rule::builders::UpdateFirewallRuleFluentBuilder::client_token) / [`set_client_token(Option<String>)`](crate::operation::update_firewall_rule::builders::UpdateFirewallRuleFluentBuilder::set_client_token):<br>required: **true**<br><p>A unique, case-sensitive identifier to ensure idempotency. This means that making the same request multiple times with the same <code>clientToken</code> has the same result every time.</p><br>
12 /// - [`confidence_threshold(ConfidenceThreshold)`](crate::operation::update_firewall_rule::builders::UpdateFirewallRuleFluentBuilder::confidence_threshold) / [`set_confidence_threshold(Option<ConfidenceThreshold>)`](crate::operation::update_firewall_rule::builders::UpdateFirewallRuleFluentBuilder::set_confidence_threshold):<br>required: **false**<br><p>The confidence threshold for DNS Firewall Advanced. You must provide this value when you create a DNS Firewall Advanced rule.</p><br>
13 /// - [`description(impl Into<String>)`](crate::operation::update_firewall_rule::builders::UpdateFirewallRuleFluentBuilder::description) / [`set_description(Option<String>)`](crate::operation::update_firewall_rule::builders::UpdateFirewallRuleFluentBuilder::set_description):<br>required: **false**<br><p>The description for the Firewall rule.</p><br>
14 /// - [`dns_advanced_protection(DnsAdvancedProtection)`](crate::operation::update_firewall_rule::builders::UpdateFirewallRuleFluentBuilder::dns_advanced_protection) / [`set_dns_advanced_protection(Option<DnsAdvancedProtection>)`](crate::operation::update_firewall_rule::builders::UpdateFirewallRuleFluentBuilder::set_dns_advanced_protection):<br>required: **false**<br><p>The type of the DNS Firewall Advanced rule. Valid values are DGA and DNS_TUNNELING.</p><br>
15 /// - [`firewall_rule_id(impl Into<String>)`](crate::operation::update_firewall_rule::builders::UpdateFirewallRuleFluentBuilder::firewall_rule_id) / [`set_firewall_rule_id(Option<String>)`](crate::operation::update_firewall_rule::builders::UpdateFirewallRuleFluentBuilder::set_firewall_rule_id):<br>required: **true**<br><p>The ID of the DNS Firewall rule.</p><br>
16 /// - [`name(impl Into<String>)`](crate::operation::update_firewall_rule::builders::UpdateFirewallRuleFluentBuilder::name) / [`set_name(Option<String>)`](crate::operation::update_firewall_rule::builders::UpdateFirewallRuleFluentBuilder::set_name):<br>required: **false**<br><p>The name of the DNS Firewall rule.</p><br>
17 /// - [`priority(i64)`](crate::operation::update_firewall_rule::builders::UpdateFirewallRuleFluentBuilder::priority) / [`set_priority(Option<i64>)`](crate::operation::update_firewall_rule::builders::UpdateFirewallRuleFluentBuilder::set_priority):<br>required: **false**<br><p>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.</p><br>
18 /// - On success, responds with [`UpdateFirewallRuleOutput`](crate::operation::update_firewall_rule::UpdateFirewallRuleOutput) with field(s):
19 /// - [`action(FirewallRuleAction)`](crate::operation::update_firewall_rule::UpdateFirewallRuleOutput::action): <p>The action that DNS Firewall should take on a DNS query when it matches one of the domains in the rule's domain list, or a threat in a DNS Firewall Advanced rule.</p>
20 /// - [`block_override_dns_type(Option<BlockOverrideDnsQueryType>)`](crate::operation::update_firewall_rule::UpdateFirewallRuleOutput::block_override_dns_type): <p>The DNS record's type. This determines the format of the record value that you provided in <code>BlockOverrideDomain</code>. Used for the rule action <code>BLOCK</code> with a <code>BlockResponse</code> setting of <code>OVERRIDE</code>.</p>
21 /// - [`block_override_domain(Option<String>)`](crate::operation::update_firewall_rule::UpdateFirewallRuleOutput::block_override_domain): <p>The custom DNS record to send back in response to the query. Used for the rule action <code>BLOCK</code> with a <code>BlockResponse</code> setting of <code>OVERRIDE</code>.</p>
22 /// - [`block_override_ttl(Option<i32>)`](crate::operation::update_firewall_rule::UpdateFirewallRuleOutput::block_override_ttl): <p>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 <code>BLOCK</code> with a <code>BlockResponse</code> setting of <code>OVERRIDE</code>.</p>
23 /// - [`block_response(Option<FirewallBlockResponse>)`](crate::operation::update_firewall_rule::UpdateFirewallRuleOutput::block_response): <p>The way that you want DNS Firewall to block the request. Used for the rule action setting <code>BLOCK</code>.</p>
24 /// - [`confidence_threshold(Option<ConfidenceThreshold>)`](crate::operation::update_firewall_rule::UpdateFirewallRuleOutput::confidence_threshold): <p>The confidence threshold for DNS Firewall Advanced. You must provide this value when you create a DNS Firewall Advanced rule.</p>
25 /// - [`created_at(DateTime)`](crate::operation::update_firewall_rule::UpdateFirewallRuleOutput::created_at): <p>The time and date the Firewall rule was created.</p>
26 /// - [`description(Option<String>)`](crate::operation::update_firewall_rule::UpdateFirewallRuleOutput::description): <p>The description of the Firewall rule.</p>
27 /// - [`dns_advanced_protection(Option<DnsAdvancedProtection>)`](crate::operation::update_firewall_rule::UpdateFirewallRuleOutput::dns_advanced_protection): <p>The type of the DNS Firewall Advanced rule. Valid values are DGA and DNS_TUNNELING.</p>
28 /// - [`firewall_domain_list_id(Option<String>)`](crate::operation::update_firewall_rule::UpdateFirewallRuleOutput::firewall_domain_list_id): <p>The ID of the domain list associated with the Firewall rule.</p>
29 /// - [`id(String)`](crate::operation::update_firewall_rule::UpdateFirewallRuleOutput::id): <p>The ID of the Firewall rule.</p>
30 /// - [`name(String)`](crate::operation::update_firewall_rule::UpdateFirewallRuleOutput::name): <p>The name of the Firewall rule.</p>
31 /// - [`priority(i64)`](crate::operation::update_firewall_rule::UpdateFirewallRuleOutput::priority): <p>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.</p>
32 /// - [`dns_view_id(String)`](crate::operation::update_firewall_rule::UpdateFirewallRuleOutput::dns_view_id): <p>The ID of the DNS view the Firewall rule is associated with.</p>
33 /// - [`query_type(Option<String>)`](crate::operation::update_firewall_rule::UpdateFirewallRuleOutput::query_type): <p>The DNS query type you want the rule to evaluate.</p>
34 /// - [`status(CrResourceStatus)`](crate::operation::update_firewall_rule::UpdateFirewallRuleOutput::status): <p>The operational status of the firewall rule.</p>
35 /// - [`updated_at(DateTime)`](crate::operation::update_firewall_rule::UpdateFirewallRuleOutput::updated_at): <p>The time and date the rule was updated.</p>
36 /// - On failure, responds with [`SdkError<UpdateFirewallRuleError>`](crate::operation::update_firewall_rule::UpdateFirewallRuleError)
37 pub fn update_firewall_rule(&self) -> crate::operation::update_firewall_rule::builders::UpdateFirewallRuleFluentBuilder {
38 crate::operation::update_firewall_rule::builders::UpdateFirewallRuleFluentBuilder::new(self.handle.clone())
39 }
40}