aws-sdk-wafv2 1.130.0

AWS SDK for AWS WAFV2
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
13
14
// Code generated by software.amazon.smithy.rust.codegen.smithy-rs. DO NOT EDIT.
impl super::Client {
    /// Constructs a fluent builder for the [`ListResourcesForWebACL`](crate::operation::list_resources_for_web_acl::builders::ListResourcesForWebACLFluentBuilder) operation.
    ///
    /// - The fluent builder is configurable:
    ///   - [`web_acl_arn(impl Into<String>)`](crate::operation::list_resources_for_web_acl::builders::ListResourcesForWebACLFluentBuilder::web_acl_arn) / [`set_web_acl_arn(Option<String>)`](crate::operation::list_resources_for_web_acl::builders::ListResourcesForWebACLFluentBuilder::set_web_acl_arn):<br>required: **true**<br><p>The Amazon Resource Name (ARN) of the web ACL.</p><br>
    ///   - [`resource_type(ResourceType)`](crate::operation::list_resources_for_web_acl::builders::ListResourcesForWebACLFluentBuilder::resource_type) / [`set_resource_type(Option<ResourceType>)`](crate::operation::list_resources_for_web_acl::builders::ListResourcesForWebACLFluentBuilder::set_resource_type):<br>required: **false**<br><p>Retrieves the web ACLs that are used by the specified resource type.</p> <p>For Amazon CloudFront, don't use this call. Instead, use the CloudFront call <code>ListDistributionsByWebACLId</code>. For information, see <a href="https://docs.aws.amazon.com/cloudfront/latest/APIReference/API_ListDistributionsByWebACLId.html">ListDistributionsByWebACLId</a> in the <i>Amazon CloudFront API Reference</i>.</p><note>  <p>If you don't provide a resource type, the call uses the resource type <code>APPLICATION_LOAD_BALANCER</code>.</p> </note> <p>Default: <code>APPLICATION_LOAD_BALANCER</code></p><br>
    /// - On success, responds with [`ListResourcesForWebAclOutput`](crate::operation::list_resources_for_web_acl::ListResourcesForWebAclOutput) with field(s):
    ///   - [`resource_arns(Option<Vec::<String>>)`](crate::operation::list_resources_for_web_acl::ListResourcesForWebAclOutput::resource_arns): <p>The array of Amazon Resource Names (ARNs) of the associated resources.</p>
    /// - On failure, responds with [`SdkError<ListResourcesForWebACLError>`](crate::operation::list_resources_for_web_acl::ListResourcesForWebACLError)
    pub fn list_resources_for_web_acl(&self) -> crate::operation::list_resources_for_web_acl::builders::ListResourcesForWebACLFluentBuilder {
        crate::operation::list_resources_for_web_acl::builders::ListResourcesForWebACLFluentBuilder::new(self.handle.clone())
    }
}