aws-sdk-networkfirewall 1.121.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 [`UpdateContainerAssociation`](crate::operation::update_container_association::builders::UpdateContainerAssociationFluentBuilder) operation.
    ///
    /// - The fluent builder is configurable:
    ///   - [`container_association_name(impl Into<String>)`](crate::operation::update_container_association::builders::UpdateContainerAssociationFluentBuilder::container_association_name) / [`set_container_association_name(Option<String>)`](crate::operation::update_container_association::builders::UpdateContainerAssociationFluentBuilder::set_container_association_name):<br>required: **false**<br><p>The descriptive name of the container association.</p> <p>You must specify the ARN or the name, and you can specify both.</p><br>
    ///   - [`container_association_arn(impl Into<String>)`](crate::operation::update_container_association::builders::UpdateContainerAssociationFluentBuilder::container_association_arn) / [`set_container_association_arn(Option<String>)`](crate::operation::update_container_association::builders::UpdateContainerAssociationFluentBuilder::set_container_association_arn):<br>required: **false**<br><p>The Amazon Resource Name (ARN) of the container association.</p> <p>You must specify the ARN or the name, and you can specify both.</p><br>
    ///   - [`description(impl Into<String>)`](crate::operation::update_container_association::builders::UpdateContainerAssociationFluentBuilder::description) / [`set_description(Option<String>)`](crate::operation::update_container_association::builders::UpdateContainerAssociationFluentBuilder::set_description):<br>required: **false**<br><p>A description of the container association. When omitted, the existing description remains unchanged. To clear the description, pass an empty string.</p><br>
    ///   - [`r#type(ContainerMonitoringType)`](crate::operation::update_container_association::builders::UpdateContainerAssociationFluentBuilder::type) / [`set_type(Option<ContainerMonitoringType>)`](crate::operation::update_container_association::builders::UpdateContainerAssociationFluentBuilder::set_type):<br>required: **true**<br><p>The container type. This value must match the existing type and can't be changed. Valid values:</p> <ul>  <li>   <p><code>ECS</code> - Amazon Elastic Container Service</p></li>  <li>   <p><code>EKS</code> - Amazon Elastic Kubernetes Service</p></li> </ul><br>
    ///   - [`container_monitoring_configurations(ContainerMonitoringConfiguration)`](crate::operation::update_container_association::builders::UpdateContainerAssociationFluentBuilder::container_monitoring_configurations) / [`set_container_monitoring_configurations(Option<Vec::<ContainerMonitoringConfiguration>>)`](crate::operation::update_container_association::builders::UpdateContainerAssociationFluentBuilder::set_container_monitoring_configurations):<br>required: **true**<br><p>The updated monitoring configurations for the container association. Each configuration specifies an Amazon ECS or Amazon EKS cluster to monitor and optional attribute filters.</p><br>
    ///   - [`tags(Tag)`](crate::operation::update_container_association::builders::UpdateContainerAssociationFluentBuilder::tags) / [`set_tags(Option<Vec::<Tag>>)`](crate::operation::update_container_association::builders::UpdateContainerAssociationFluentBuilder::set_tags):<br>required: **false**<br><p>The key:value pairs to associate with the resource.</p><br>
    ///   - [`update_token(impl Into<String>)`](crate::operation::update_container_association::builders::UpdateContainerAssociationFluentBuilder::update_token) / [`set_update_token(Option<String>)`](crate::operation::update_container_association::builders::UpdateContainerAssociationFluentBuilder::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 container association. The token marks the state of the container association resource at the time of the request.</p> <p>To make changes to the container association, you provide the token in your request. Network Firewall uses the token to ensure that the container association 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 container association 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 [`UpdateContainerAssociationOutput`](crate::operation::update_container_association::UpdateContainerAssociationOutput) with field(s):
    ///   - [`container_association_name(Option<String>)`](crate::operation::update_container_association::UpdateContainerAssociationOutput::container_association_name): <p>The descriptive name of the container association.</p>
    ///   - [`container_association_arn(Option<String>)`](crate::operation::update_container_association::UpdateContainerAssociationOutput::container_association_arn): <p>The Amazon Resource Name (ARN) of the container association.</p>
    ///   - [`description(Option<String>)`](crate::operation::update_container_association::UpdateContainerAssociationOutput::description): <p>A description of the container association.</p>
    ///   - [`r#type(Option<ContainerMonitoringType>)`](crate::operation::update_container_association::UpdateContainerAssociationOutput::type): <p>The container type. Valid values:</p> <ul>  <li>   <p><code>ECS</code> - Amazon Elastic Container Service</p></li>  <li>   <p><code>EKS</code> - Amazon Elastic Kubernetes Service</p></li> </ul>
    ///   - [`container_monitoring_configurations(Option<Vec::<ContainerMonitoringConfiguration>>)`](crate::operation::update_container_association::UpdateContainerAssociationOutput::container_monitoring_configurations): <p>The monitoring configurations for the container association.</p>
    ///   - [`status(Option<ContainerAssociationStatus>)`](crate::operation::update_container_association::UpdateContainerAssociationOutput::status): <p>The current status of the container association.</p>
    ///   - [`tags(Option<Vec::<Tag>>)`](crate::operation::update_container_association::UpdateContainerAssociationOutput::tags): <p>The key:value pairs to associate with the resource.</p>
    ///   - [`update_token(Option<String>)`](crate::operation::update_container_association::UpdateContainerAssociationOutput::update_token): <p>A token used for optimistic locking. Network Firewall returns a token to your requests that access the container association. The token marks the state of the container association resource at the time of the request.</p> <p>To make changes to the container association, you provide the token in your request. Network Firewall uses the token to ensure that the container association 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 container association 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<UpdateContainerAssociationError>`](crate::operation::update_container_association::UpdateContainerAssociationError)
    pub fn update_container_association(&self) -> crate::operation::update_container_association::builders::UpdateContainerAssociationFluentBuilder {
        crate::operation::update_container_association::builders::UpdateContainerAssociationFluentBuilder::new(self.handle.clone())
    }
}