aws_sdk_wafv2/client/associate_web_acl.rs
// Code generated by software.amazon.smithy.rust.codegen.smithy-rs. DO NOT EDIT.
impl super::Client {
/// Constructs a fluent builder for the [`AssociateWebACL`](crate::operation::associate_web_acl::builders::AssociateWebACLFluentBuilder) operation.
///
/// - The fluent builder is configurable:
/// - [`web_acl_arn(impl Into<String>)`](crate::operation::associate_web_acl::builders::AssociateWebACLFluentBuilder::web_acl_arn) / [`set_web_acl_arn(Option<String>)`](crate::operation::associate_web_acl::builders::AssociateWebACLFluentBuilder::set_web_acl_arn):<br>required: **true**<br><p>The Amazon Resource Name (ARN) of the web ACL that you want to associate with the resource.</p><br>
/// - [`resource_arn(impl Into<String>)`](crate::operation::associate_web_acl::builders::AssociateWebACLFluentBuilder::resource_arn) / [`set_resource_arn(Option<String>)`](crate::operation::associate_web_acl::builders::AssociateWebACLFluentBuilder::set_resource_arn):<br>required: **true**<br><p>The Amazon Resource Name (ARN) of the resource to associate with the web ACL.</p> <p>The ARN must be in one of the following formats:</p> <ul> <li> <p>For an Application Load Balancer: <code>arn:<i>partition</i>:elasticloadbalancing:<i>region</i>:<i>account-id</i>:loadbalancer/app/<i>load-balancer-name</i>/<i>load-balancer-id</i> </code></p></li> <li> <p>For an Amazon API Gateway REST API: <code>arn:<i>partition</i>:apigateway:<i>region</i>::/restapis/<i>api-id</i>/stages/<i>stage-name</i> </code></p></li> <li> <p>For an AppSync GraphQL API: <code>arn:<i>partition</i>:appsync:<i>region</i>:<i>account-id</i>:apis/<i>GraphQLApiId</i> </code></p></li> <li> <p>For an Amazon Cognito user pool: <code>arn:<i>partition</i>:cognito-idp:<i>region</i>:<i>account-id</i>:userpool/<i>user-pool-id</i> </code></p></li> <li> <p>For an App Runner service: <code>arn:<i>partition</i>:apprunner:<i>region</i>:<i>account-id</i>:service/<i>apprunner-service-name</i>/<i>apprunner-service-id</i> </code></p></li> <li> <p>For an Amazon Web Services Verified Access instance: <code>arn:<i>partition</i>:ec2:<i>region</i>:<i>account-id</i>:verified-access-instance/<i>instance-id</i> </code></p></li> </ul><br>
/// - On success, responds with [`AssociateWebAclOutput`](crate::operation::associate_web_acl::AssociateWebAclOutput)
/// - On failure, responds with [`SdkError<AssociateWebACLError>`](crate::operation::associate_web_acl::AssociateWebACLError)
pub fn associate_web_acl(&self) -> crate::operation::associate_web_acl::builders::AssociateWebACLFluentBuilder {
crate::operation::associate_web_acl::builders::AssociateWebACLFluentBuilder::new(self.handle.clone())
}
}