1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
// Code generated by software.amazon.smithy.rust.codegen.smithy-rs. DO NOT EDIT.
impl super::Client {
    /// Constructs a fluent builder for the [`ListFirewallRules`](crate::operation::list_firewall_rules::builders::ListFirewallRulesFluentBuilder) operation.
    /// This operation supports pagination; See [`into_paginator()`](crate::operation::list_firewall_rules::builders::ListFirewallRulesFluentBuilder::into_paginator).
    ///
    /// - The fluent builder is configurable:
    ///   - [`firewall_rule_group_id(impl Into<String>)`](crate::operation::list_firewall_rules::builders::ListFirewallRulesFluentBuilder::firewall_rule_group_id) / [`set_firewall_rule_group_id(Option<String>)`](crate::operation::list_firewall_rules::builders::ListFirewallRulesFluentBuilder::set_firewall_rule_group_id):<br>required: **true**<br><p>The unique identifier of the firewall rule group that you want to retrieve the rules for.</p><br>
    ///   - [`priority(i32)`](crate::operation::list_firewall_rules::builders::ListFirewallRulesFluentBuilder::priority) / [`set_priority(Option<i32>)`](crate::operation::list_firewall_rules::builders::ListFirewallRulesFluentBuilder::set_priority):<br>required: **false**<br><p>Optional additional filter for the rules to retrieve.</p> <p>The setting that determines the processing order of the rules in a rule group. DNS Firewall processes the rules in a rule group by order of priority, starting from the lowest setting.</p><br>
    ///   - [`action(Action)`](crate::operation::list_firewall_rules::builders::ListFirewallRulesFluentBuilder::action) / [`set_action(Option<Action>)`](crate::operation::list_firewall_rules::builders::ListFirewallRulesFluentBuilder::set_action):<br>required: **false**<br><p>Optional additional filter for the rules to retrieve.</p> <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:</p> <ul>  <li>   <p><code>ALLOW</code> - Permit the request to go through.</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. If this is specified, additional handling details are provided in the rule's <code>BlockResponse</code> setting.</p></li> </ul><br>
    ///   - [`max_results(i32)`](crate::operation::list_firewall_rules::builders::ListFirewallRulesFluentBuilder::max_results) / [`set_max_results(Option<i32>)`](crate::operation::list_firewall_rules::builders::ListFirewallRulesFluentBuilder::set_max_results):<br>required: **false**<br><p>The maximum number of objects that you want Resolver to return for this request. If more objects are available, in the response, Resolver provides a <code>NextToken</code> value that you can use in a subsequent call to get the next batch of objects.</p> <p>If you don't specify a value for <code>MaxResults</code>, Resolver returns up to 100 objects.</p><br>
    ///   - [`next_token(impl Into<String>)`](crate::operation::list_firewall_rules::builders::ListFirewallRulesFluentBuilder::next_token) / [`set_next_token(Option<String>)`](crate::operation::list_firewall_rules::builders::ListFirewallRulesFluentBuilder::set_next_token):<br>required: **false**<br><p>For the first call to this list request, omit this value.</p> <p>When you request a list of objects, Resolver returns at most the number of objects specified in <code>MaxResults</code>. If more objects are available for retrieval, Resolver returns a <code>NextToken</code> value in the response. To retrieve the next batch of objects, use the token that was returned for the prior request in your next request.</p><br>
    /// - On success, responds with [`ListFirewallRulesOutput`](crate::operation::list_firewall_rules::ListFirewallRulesOutput) with field(s):
    ///   - [`next_token(Option<String>)`](crate::operation::list_firewall_rules::ListFirewallRulesOutput::next_token): <p>If objects are still available for retrieval, Resolver returns this token in the response. To retrieve the next batch of objects, provide this token in your next request.</p>
    ///   - [`firewall_rules(Option<Vec::<FirewallRule>>)`](crate::operation::list_firewall_rules::ListFirewallRulesOutput::firewall_rules): <p>A list of the rules that you have defined.</p> <p>This might be a partial list of the firewall rules that you've defined. For information, see <code>MaxResults</code>.</p>
    /// - On failure, responds with [`SdkError<ListFirewallRulesError>`](crate::operation::list_firewall_rules::ListFirewallRulesError)
    pub fn list_firewall_rules(&self) -> crate::operation::list_firewall_rules::builders::ListFirewallRulesFluentBuilder {
        crate::operation::list_firewall_rules::builders::ListFirewallRulesFluentBuilder::new(self.handle.clone())
    }
}