aws_sdk_cloudfront/client/
associate_distribution_web_acl.rs

1// Code generated by software.amazon.smithy.rust.codegen.smithy-rs. DO NOT EDIT.
2impl super::Client {
3    /// Constructs a fluent builder for the [`AssociateDistributionWebACL`](crate::operation::associate_distribution_web_acl::builders::AssociateDistributionWebACLFluentBuilder) operation.
4    ///
5    /// - The fluent builder is configurable:
6    ///   - [`id(impl Into<String>)`](crate::operation::associate_distribution_web_acl::builders::AssociateDistributionWebACLFluentBuilder::id) / [`set_id(Option<String>)`](crate::operation::associate_distribution_web_acl::builders::AssociateDistributionWebACLFluentBuilder::set_id):<br>required: **true**<br><p>The ID of the distribution.</p><br>
7    ///   - [`web_acl_arn(impl Into<String>)`](crate::operation::associate_distribution_web_acl::builders::AssociateDistributionWebACLFluentBuilder::web_acl_arn) / [`set_web_acl_arn(Option<String>)`](crate::operation::associate_distribution_web_acl::builders::AssociateDistributionWebACLFluentBuilder::set_web_acl_arn):<br>required: **true**<br><p>The Amazon Resource Name (ARN) of the WAF web ACL to associate.</p><br>
8    ///   - [`if_match(impl Into<String>)`](crate::operation::associate_distribution_web_acl::builders::AssociateDistributionWebACLFluentBuilder::if_match) / [`set_if_match(Option<String>)`](crate::operation::associate_distribution_web_acl::builders::AssociateDistributionWebACLFluentBuilder::set_if_match):<br>required: **false**<br><p>The value of the <code>ETag</code> header that you received when retrieving the distribution that you're associating with the WAF web ACL.</p><br>
9    /// - On success, responds with [`AssociateDistributionWebAclOutput`](crate::operation::associate_distribution_web_acl::AssociateDistributionWebAclOutput) with field(s):
10    ///   - [`id(Option<String>)`](crate::operation::associate_distribution_web_acl::AssociateDistributionWebAclOutput::id): <p>The ID of the distribution.</p>
11    ///   - [`web_acl_arn(Option<String>)`](crate::operation::associate_distribution_web_acl::AssociateDistributionWebAclOutput::web_acl_arn): <p>The ARN of the WAF web ACL that you associated with the distribution.</p>
12    ///   - [`e_tag(Option<String>)`](crate::operation::associate_distribution_web_acl::AssociateDistributionWebAclOutput::e_tag): <p>The current version of the distribution.</p>
13    /// - On failure, responds with [`SdkError<AssociateDistributionWebACLError>`](crate::operation::associate_distribution_web_acl::AssociateDistributionWebACLError)
14    pub fn associate_distribution_web_acl(
15        &self,
16    ) -> crate::operation::associate_distribution_web_acl::builders::AssociateDistributionWebACLFluentBuilder {
17        crate::operation::associate_distribution_web_acl::builders::AssociateDistributionWebACLFluentBuilder::new(self.handle.clone())
18    }
19}