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 [`CreateFirewallPolicy`](crate::operation::create_firewall_policy::builders::CreateFirewallPolicyFluentBuilder) operation.
    ///
    /// - The fluent builder is configurable:
    ///   - [`firewall_policy_name(impl Into<String>)`](crate::operation::create_firewall_policy::builders::CreateFirewallPolicyFluentBuilder::firewall_policy_name) / [`set_firewall_policy_name(Option<String>)`](crate::operation::create_firewall_policy::builders::CreateFirewallPolicyFluentBuilder::set_firewall_policy_name):<br>required: **true**<br><p>The descriptive name of the firewall policy. You can't change the name of a firewall policy after you create it.</p><br>
    ///   - [`firewall_policy(FirewallPolicy)`](crate::operation::create_firewall_policy::builders::CreateFirewallPolicyFluentBuilder::firewall_policy) / [`set_firewall_policy(Option<FirewallPolicy>)`](crate::operation::create_firewall_policy::builders::CreateFirewallPolicyFluentBuilder::set_firewall_policy):<br>required: **true**<br><p>The rule groups and policy actions to use in the firewall policy.</p><br>
    ///   - [`description(impl Into<String>)`](crate::operation::create_firewall_policy::builders::CreateFirewallPolicyFluentBuilder::description) / [`set_description(Option<String>)`](crate::operation::create_firewall_policy::builders::CreateFirewallPolicyFluentBuilder::set_description):<br>required: **false**<br><p>A description of the firewall policy.</p><br>
    ///   - [`tags(Tag)`](crate::operation::create_firewall_policy::builders::CreateFirewallPolicyFluentBuilder::tags) / [`set_tags(Option<Vec::<Tag>>)`](crate::operation::create_firewall_policy::builders::CreateFirewallPolicyFluentBuilder::set_tags):<br>required: **false**<br><p>The key:value pairs to associate with the resource.</p><br>
    ///   - [`dry_run(bool)`](crate::operation::create_firewall_policy::builders::CreateFirewallPolicyFluentBuilder::dry_run) / [`set_dry_run(Option<bool>)`](crate::operation::create_firewall_policy::builders::CreateFirewallPolicyFluentBuilder::set_dry_run):<br>required: **false**<br><p>Indicates whether you want Network Firewall to just check the validity of the request, rather than run the request.</p> <p>If set to <code>TRUE</code>, Network Firewall checks whether the request can run successfully, but doesn't actually make the requested changes. The call returns the value that the request would return if you ran it with dry run set to <code>FALSE</code>, but doesn't make additions or changes to your resources. This option allows you to make sure that you have the required permissions to run the request and that your request parameters are valid.</p> <p>If set to <code>FALSE</code>, Network Firewall makes the requested changes to your resources.</p><br>
    ///   - [`encryption_configuration(EncryptionConfiguration)`](crate::operation::create_firewall_policy::builders::CreateFirewallPolicyFluentBuilder::encryption_configuration) / [`set_encryption_configuration(Option<EncryptionConfiguration>)`](crate::operation::create_firewall_policy::builders::CreateFirewallPolicyFluentBuilder::set_encryption_configuration):<br>required: **false**<br><p>A complex type that contains settings for encryption of your firewall policy resources.</p><br>
    /// - On success, responds with [`CreateFirewallPolicyOutput`](crate::operation::create_firewall_policy::CreateFirewallPolicyOutput) with field(s):
    ///   - [`update_token(String)`](crate::operation::create_firewall_policy::CreateFirewallPolicyOutput::update_token): <p>A token used for optimistic locking. Network Firewall returns a token to your requests that access the firewall policy. The token marks the state of the policy resource at the time of the request.</p> <p>To make changes to the policy, you provide the token in your request. Network Firewall uses the token to ensure that the policy hasn't changed since you last retrieved it. If it has changed, the operation fails with an <code>InvalidTokenException</code>. If this happens, retrieve the firewall policy again to get a current copy of it with current token. Reapply your changes as needed, then try the operation again using the new token.</p>
    ///   - [`firewall_policy_response(Option<FirewallPolicyResponse>)`](crate::operation::create_firewall_policy::CreateFirewallPolicyOutput::firewall_policy_response): <p>The high-level properties of a firewall policy. This, along with the <code>FirewallPolicy</code>, define the policy. You can retrieve all objects for a firewall policy by calling <code>DescribeFirewallPolicy</code>.</p>
    /// - On failure, responds with [`SdkError<CreateFirewallPolicyError>`](crate::operation::create_firewall_policy::CreateFirewallPolicyError)
    pub fn create_firewall_policy(&self) -> crate::operation::create_firewall_policy::builders::CreateFirewallPolicyFluentBuilder {
        crate::operation::create_firewall_policy::builders::CreateFirewallPolicyFluentBuilder::new(self.handle.clone())
    }
}