aws-sdk-networkfirewall 1.111.0

AWS SDK for AWS Network Firewall
Documentation
// Code generated by software.amazon.smithy.rust.codegen.smithy-rs. DO NOT EDIT.
impl super::Client {
    /// Constructs a fluent builder for the [`AttachRuleGroupsToProxyConfiguration`](crate::operation::attach_rule_groups_to_proxy_configuration::builders::AttachRuleGroupsToProxyConfigurationFluentBuilder) operation.
    ///
    /// - The fluent builder is configurable:
    ///   - [`proxy_configuration_name(impl Into<String>)`](crate::operation::attach_rule_groups_to_proxy_configuration::builders::AttachRuleGroupsToProxyConfigurationFluentBuilder::proxy_configuration_name) / [`set_proxy_configuration_name(Option<String>)`](crate::operation::attach_rule_groups_to_proxy_configuration::builders::AttachRuleGroupsToProxyConfigurationFluentBuilder::set_proxy_configuration_name):<br>required: **false**<br><p>The descriptive name of the proxy configuration. You can't change the name of a proxy configuration after you create it.</p> <p>You must specify the ARN or the name, and you can specify both.</p><br>
    ///   - [`proxy_configuration_arn(impl Into<String>)`](crate::operation::attach_rule_groups_to_proxy_configuration::builders::AttachRuleGroupsToProxyConfigurationFluentBuilder::proxy_configuration_arn) / [`set_proxy_configuration_arn(Option<String>)`](crate::operation::attach_rule_groups_to_proxy_configuration::builders::AttachRuleGroupsToProxyConfigurationFluentBuilder::set_proxy_configuration_arn):<br>required: **false**<br><p>The Amazon Resource Name (ARN) of a proxy configuration.</p> <p>You must specify the ARN or the name, and you can specify both.</p><br>
    ///   - [`rule_groups(ProxyRuleGroupAttachment)`](crate::operation::attach_rule_groups_to_proxy_configuration::builders::AttachRuleGroupsToProxyConfigurationFluentBuilder::rule_groups) / [`set_rule_groups(Option<Vec::<ProxyRuleGroupAttachment>>)`](crate::operation::attach_rule_groups_to_proxy_configuration::builders::AttachRuleGroupsToProxyConfigurationFluentBuilder::set_rule_groups):<br>required: **true**<br><p>The proxy rule group(s) to attach to the proxy configuration</p><br>
    ///   - [`update_token(impl Into<String>)`](crate::operation::attach_rule_groups_to_proxy_configuration::builders::AttachRuleGroupsToProxyConfigurationFluentBuilder::update_token) / [`set_update_token(Option<String>)`](crate::operation::attach_rule_groups_to_proxy_configuration::builders::AttachRuleGroupsToProxyConfigurationFluentBuilder::set_update_token):<br>required: **true**<br><p>A token used for optimistic locking. Network Firewall returns a token to your requests that access the proxy configuration. The token marks the state of the proxy configuration resource at the time of the request.</p> <p>To make changes to the proxy configuration, you provide the token in your request. Network Firewall uses the token to ensure that the proxy configuration 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 proxy configuration again to get a current copy of it with a current token. Reapply your changes as needed, then try the operation again using the new token.</p><br>
    /// - On success, responds with [`AttachRuleGroupsToProxyConfigurationOutput`](crate::operation::attach_rule_groups_to_proxy_configuration::AttachRuleGroupsToProxyConfigurationOutput) with field(s):
    ///   - [`proxy_configuration(Option<ProxyConfiguration>)`](crate::operation::attach_rule_groups_to_proxy_configuration::AttachRuleGroupsToProxyConfigurationOutput::proxy_configuration): <p>The updated proxy configuration resource that reflects the updates from the request.</p>
    ///   - [`update_token(Option<String>)`](crate::operation::attach_rule_groups_to_proxy_configuration::AttachRuleGroupsToProxyConfigurationOutput::update_token): <p>A token used for optimistic locking. Network Firewall returns a token to your requests that access the proxy configuration. The token marks the state of the proxy configuration resource at the time of the request.</p> <p>To make changes to the proxy configuration, you provide the token in your request. Network Firewall uses the token to ensure that the proxy configuration 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 proxy configuration again to get a current copy of it with a current token. Reapply your changes as needed, then try the operation again using the new token.</p>
    /// - On failure, responds with [`SdkError<AttachRuleGroupsToProxyConfigurationError>`](crate::operation::attach_rule_groups_to_proxy_configuration::AttachRuleGroupsToProxyConfigurationError)
    pub fn attach_rule_groups_to_proxy_configuration(
        &self,
    ) -> crate::operation::attach_rule_groups_to_proxy_configuration::builders::AttachRuleGroupsToProxyConfigurationFluentBuilder {
        crate::operation::attach_rule_groups_to_proxy_configuration::builders::AttachRuleGroupsToProxyConfigurationFluentBuilder::new(
            self.handle.clone(),
        )
    }
}