aws_sdk_wafv2/client/
get_web_acl_for_resource.rs

1
2
3
4
5
6
7
8
9
10
11
12
13
// Code generated by software.amazon.smithy.rust.codegen.smithy-rs. DO NOT EDIT.
impl super::Client {
    /// Constructs a fluent builder for the [`GetWebACLForResource`](crate::operation::get_web_acl_for_resource::builders::GetWebACLForResourceFluentBuilder) operation.
    ///
    /// - The fluent builder is configurable:
    ///   - [`resource_arn(impl Into<String>)`](crate::operation::get_web_acl_for_resource::builders::GetWebACLForResourceFluentBuilder::resource_arn) / [`set_resource_arn(Option<String>)`](crate::operation::get_web_acl_for_resource::builders::GetWebACLForResourceFluentBuilder::set_resource_arn):<br>required: **true**<br><p>The Amazon Resource Name (ARN) of the resource whose web ACL you want to retrieve.</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 [`GetWebAclForResourceOutput`](crate::operation::get_web_acl_for_resource::GetWebAclForResourceOutput) with field(s):
    ///   - [`web_acl(Option<WebAcl>)`](crate::operation::get_web_acl_for_resource::GetWebAclForResourceOutput::web_acl): <p>The web ACL that is associated with the resource. If there is no associated resource, WAF returns a null web ACL.</p>
    /// - On failure, responds with [`SdkError<GetWebACLForResourceError>`](crate::operation::get_web_acl_for_resource::GetWebACLForResourceError)
    pub fn get_web_acl_for_resource(&self) -> crate::operation::get_web_acl_for_resource::builders::GetWebACLForResourceFluentBuilder {
        crate::operation::get_web_acl_for_resource::builders::GetWebACLForResourceFluentBuilder::new(self.handle.clone())
    }
}