aws_sdk_route53resolver/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    ///   - [`firewall_rule_group_id(impl Into<String>)`](crate::operation::update_firewall_rule::builders::UpdateFirewallRuleFluentBuilder::firewall_rule_group_id) / [`set_firewall_rule_group_id(Option<String>)`](crate::operation::update_firewall_rule::builders::UpdateFirewallRuleFluentBuilder::set_firewall_rule_group_id):<br>required: **true**<br><p>The unique identifier of the firewall rule group for the rule.</p><br>
7    ///   - [`firewall_domain_list_id(impl Into<String>)`](crate::operation::update_firewall_rule::builders::UpdateFirewallRuleFluentBuilder::firewall_domain_list_id) / [`set_firewall_domain_list_id(Option<String>)`](crate::operation::update_firewall_rule::builders::UpdateFirewallRuleFluentBuilder::set_firewall_domain_list_id):<br>required: **false**<br><p>The ID of the domain list to use in the rule.</p><br>
8    ///   - [`firewall_threat_protection_id(impl Into<String>)`](crate::operation::update_firewall_rule::builders::UpdateFirewallRuleFluentBuilder::firewall_threat_protection_id) / [`set_firewall_threat_protection_id(Option<String>)`](crate::operation::update_firewall_rule::builders::UpdateFirewallRuleFluentBuilder::set_firewall_threat_protection_id):<br>required: **false**<br><p>The DNS Firewall Advanced rule ID.</p><br>
9    ///   - [`priority(i32)`](crate::operation::update_firewall_rule::builders::UpdateFirewallRuleFluentBuilder::priority) / [`set_priority(Option<i32>)`](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> <p>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.</p><br>
10    ///   - [`action(Action)`](crate::operation::update_firewall_rule::builders::UpdateFirewallRuleFluentBuilder::action) / [`set_action(Option<Action>)`](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> <ul>  <li>   <p><code>ALLOW</code> - Permit the request to go through. Not available for DNS Firewall Advanced rules.</p></li>  <li>   <p><code>ALERT</code> - Permit the request to go through but send an alert to the logs.</p></li>  <li>   <p><code>BLOCK</code> - Disallow the request. This option requires additional details in the rule's <code>BlockResponse</code>.</p></li> </ul><br>
11    ///   - [`block_response(BlockResponse)`](crate::operation::update_firewall_rule::builders::UpdateFirewallRuleFluentBuilder::block_response) / [`set_block_response(Option<BlockResponse>)`](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> <ul>  <li>   <p><code>NODATA</code> - Respond indicating that the query was successful, but no response is available for it.</p></li>  <li>   <p><code>NXDOMAIN</code> - Respond indicating that the domain name that's in the query doesn't exist.</p></li>  <li>   <p><code>OVERRIDE</code> - Provide a custom override in the response. This option requires custom handling details in the rule's <code>BlockOverride*</code> settings.</p></li> </ul><br>
12    ///   - [`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>
13    ///   - [`block_override_dns_type(BlockOverrideDnsType)`](crate::operation::update_firewall_rule::builders::UpdateFirewallRuleFluentBuilder::block_override_dns_type) / [`set_block_override_dns_type(Option<BlockOverrideDnsType>)`](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>
14    ///   - [`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>
15    ///   - [`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 rule.</p><br>
16    ///   - [`firewall_domain_redirection_action(FirewallDomainRedirectionAction)`](crate::operation::update_firewall_rule::builders::UpdateFirewallRuleFluentBuilder::firewall_domain_redirection_action) / [`set_firewall_domain_redirection_action(Option<FirewallDomainRedirectionAction>)`](crate::operation::update_firewall_rule::builders::UpdateFirewallRuleFluentBuilder::set_firewall_domain_redirection_action):<br>required: **false**<br><p>How you want the the rule to evaluate DNS redirection in the DNS redirection chain, such as CNAME or DNAME.</p> <p><code>INSPECT_REDIRECTION_DOMAIN</code>: (Default) inspects all domains in the redirection chain. The individual domains in the redirection chain must be added to the domain list.</p> <p><code>TRUST_REDIRECTION_DOMAIN</code>: Inspects only the first domain in the redirection chain. You don't need to add the subsequent domains in the domain in the redirection list to the domain list.</p><br>
17    ///   - [`qtype(impl Into<String>)`](crate::operation::update_firewall_rule::builders::UpdateFirewallRuleFluentBuilder::qtype) / [`set_qtype(Option<String>)`](crate::operation::update_firewall_rule::builders::UpdateFirewallRuleFluentBuilder::set_qtype):<br>required: **false**<br><p>The DNS query type you want the rule to evaluate. Allowed values are;</p> <ul>  <li>   <p>A: Returns an IPv4 address.</p></li>  <li>   <p>AAAA: Returns an Ipv6 address.</p></li>  <li>   <p>CAA: Restricts CAs that can create SSL/TLS certifications for the domain.</p></li>  <li>   <p>CNAME: Returns another domain name.</p></li>  <li>   <p>DS: Record that identifies the DNSSEC signing key of a delegated zone.</p></li>  <li>   <p>MX: Specifies mail servers.</p></li>  <li>   <p>NAPTR: Regular-expression-based rewriting of domain names.</p></li>  <li>   <p>NS: Authoritative name servers.</p></li>  <li>   <p>PTR: Maps an IP address to a domain name.</p></li>  <li>   <p>SOA: Start of authority record for the zone.</p></li>  <li>   <p>SPF: Lists the servers authorized to send emails from a domain.</p></li>  <li>   <p>SRV: Application specific values that identify servers.</p></li>  <li>   <p>TXT: Verifies email senders and application-specific values.</p></li>  <li>   <p>A query type you define by using the DNS type ID, for example 28 for AAAA. The values must be defined as TYPENUMBER, where the NUMBER can be 1-65334, for example, TYPE28. For more information, see <a href="https://en.wikipedia.org/wiki/List_of_DNS_record_types">List of DNS record types</a>.</p><note>    <p>If you set up a firewall BLOCK rule with action NXDOMAIN on query type equals AAAA, this action will not be applied to synthetic IPv6 addresses generated when DNS64 is enabled.</p>   </note></li> </ul><br>
18    ///   - [`dns_threat_protection(DnsThreatProtection)`](crate::operation::update_firewall_rule::builders::UpdateFirewallRuleFluentBuilder::dns_threat_protection) / [`set_dns_threat_protection(Option<DnsThreatProtection>)`](crate::operation::update_firewall_rule::builders::UpdateFirewallRuleFluentBuilder::set_dns_threat_protection):<br>required: **false**<br><p>The type of the DNS Firewall Advanced rule. Valid values are:</p> <ul>  <li>   <p><code>DGA</code>: Domain generation algorithms detection. DGAs are used by attackers to generate a large number of domains to to launch malware attacks.</p></li>  <li>   <p><code>DNS_TUNNELING</code>: DNS tunneling detection. DNS tunneling is used by attackers to exfiltrate data from the client by using the DNS tunnel without making a network connection to the client.</p></li> </ul><br>
19    ///   - [`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. The confidence level values mean:</p> <ul>  <li>   <p><code>LOW</code>: Provides the highest detection rate for threats, but also increases false positives.</p></li>  <li>   <p><code>MEDIUM</code>: Provides a balance between detecting threats and false positives.</p></li>  <li>   <p><code>HIGH</code>: Detects only the most well corroborated threats with a low rate of false positives.</p></li> </ul><br>
20    /// - On success, responds with [`UpdateFirewallRuleOutput`](crate::operation::update_firewall_rule::UpdateFirewallRuleOutput) with field(s):
21    ///   - [`firewall_rule(Option<FirewallRule>)`](crate::operation::update_firewall_rule::UpdateFirewallRuleOutput::firewall_rule): <p>The firewall rule that you just updated.</p>
22    /// - On failure, responds with [`SdkError<UpdateFirewallRuleError>`](crate::operation::update_firewall_rule::UpdateFirewallRuleError)
23    pub fn update_firewall_rule(&self) -> crate::operation::update_firewall_rule::builders::UpdateFirewallRuleFluentBuilder {
24        crate::operation::update_firewall_rule::builders::UpdateFirewallRuleFluentBuilder::new(self.handle.clone())
25    }
26}