1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
// Code generated by software.amazon.smithy.rust.codegen.smithy-rs. DO NOT EDIT.
impl super::Client {
    /// Constructs a fluent builder for the [`UpdateSubnetChangeProtection`](crate::operation::update_subnet_change_protection::builders::UpdateSubnetChangeProtectionFluentBuilder) operation.
    ///
    /// - The fluent builder is configurable:
    ///   - [`update_token(impl Into<String>)`](crate::operation::update_subnet_change_protection::builders::UpdateSubnetChangeProtectionFluentBuilder::update_token) / [`set_update_token(Option<String>)`](crate::operation::update_subnet_change_protection::builders::UpdateSubnetChangeProtectionFluentBuilder::set_update_token):<br>required: **false**<br><p>An optional token that you can use for optimistic locking. Network Firewall returns a token to your requests that access the firewall. The token marks the state of the firewall resource at the time of the request.</p> <p>To make an unconditional change to the firewall, omit the token in your update request. Without the token, Network Firewall performs your updates regardless of whether the firewall has changed since you last retrieved it.</p> <p>To make a conditional change to the firewall, provide the token in your update request. Network Firewall uses the token to ensure that the firewall 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 again to get a current copy of it with a new token. Reapply your changes as needed, then try the operation again using the new token.</p><br>
    ///   - [`firewall_arn(impl Into<String>)`](crate::operation::update_subnet_change_protection::builders::UpdateSubnetChangeProtectionFluentBuilder::firewall_arn) / [`set_firewall_arn(Option<String>)`](crate::operation::update_subnet_change_protection::builders::UpdateSubnetChangeProtectionFluentBuilder::set_firewall_arn):<br>required: **false**<br><p>The Amazon Resource Name (ARN) of the firewall.</p> <p>You must specify the ARN or the name, and you can specify both.</p><br>
    ///   - [`firewall_name(impl Into<String>)`](crate::operation::update_subnet_change_protection::builders::UpdateSubnetChangeProtectionFluentBuilder::firewall_name) / [`set_firewall_name(Option<String>)`](crate::operation::update_subnet_change_protection::builders::UpdateSubnetChangeProtectionFluentBuilder::set_firewall_name):<br>required: **false**<br><p>The descriptive name of the firewall. You can't change the name of a firewall after you create it.</p> <p>You must specify the ARN or the name, and you can specify both.</p><br>
    ///   - [`subnet_change_protection(bool)`](crate::operation::update_subnet_change_protection::builders::UpdateSubnetChangeProtectionFluentBuilder::subnet_change_protection) / [`set_subnet_change_protection(Option<bool>)`](crate::operation::update_subnet_change_protection::builders::UpdateSubnetChangeProtectionFluentBuilder::set_subnet_change_protection):<br>required: **true**<br><p>A setting indicating whether the firewall is protected against changes to the subnet associations. Use this setting to protect against accidentally modifying the subnet associations for a firewall that is in use. When you create a firewall, the operation initializes this setting to <code>TRUE</code>.</p><br>
    /// - On success, responds with [`UpdateSubnetChangeProtectionOutput`](crate::operation::update_subnet_change_protection::UpdateSubnetChangeProtectionOutput) with field(s):
    ///   - [`update_token(Option<String>)`](crate::operation::update_subnet_change_protection::UpdateSubnetChangeProtectionOutput::update_token): <p>An optional token that you can use for optimistic locking. Network Firewall returns a token to your requests that access the firewall. The token marks the state of the firewall resource at the time of the request.</p> <p>To make an unconditional change to the firewall, omit the token in your update request. Without the token, Network Firewall performs your updates regardless of whether the firewall has changed since you last retrieved it.</p> <p>To make a conditional change to the firewall, provide the token in your update request. Network Firewall uses the token to ensure that the firewall 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 again to get a current copy of it with a new token. Reapply your changes as needed, then try the operation again using the new token.</p>
    ///   - [`firewall_arn(Option<String>)`](crate::operation::update_subnet_change_protection::UpdateSubnetChangeProtectionOutput::firewall_arn): <p>The Amazon Resource Name (ARN) of the firewall.</p>
    ///   - [`firewall_name(Option<String>)`](crate::operation::update_subnet_change_protection::UpdateSubnetChangeProtectionOutput::firewall_name): <p>The descriptive name of the firewall. You can't change the name of a firewall after you create it.</p>
    ///   - [`subnet_change_protection(bool)`](crate::operation::update_subnet_change_protection::UpdateSubnetChangeProtectionOutput::subnet_change_protection): <p>A setting indicating whether the firewall is protected against changes to the subnet associations. Use this setting to protect against accidentally modifying the subnet associations for a firewall that is in use. When you create a firewall, the operation initializes this setting to <code>TRUE</code>.</p>
    /// - On failure, responds with [`SdkError<UpdateSubnetChangeProtectionError>`](crate::operation::update_subnet_change_protection::UpdateSubnetChangeProtectionError)
    pub fn update_subnet_change_protection(
        &self,
    ) -> crate::operation::update_subnet_change_protection::builders::UpdateSubnetChangeProtectionFluentBuilder {
        crate::operation::update_subnet_change_protection::builders::UpdateSubnetChangeProtectionFluentBuilder::new(self.handle.clone())
    }
}