Struct aws_sdk_wafv2::client::fluent_builders::GetWebACLForResource
source · pub struct GetWebACLForResource { /* private fields */ }
Expand description
Fluent builder constructing a request to GetWebACLForResource
.
Retrieves the WebACL
for the specified resource.
Implementations§
source§impl GetWebACLForResource
impl GetWebACLForResource
sourcepub async fn customize(
self
) -> Result<CustomizableOperation<GetWebACLForResource, AwsResponseRetryClassifier>, SdkError<GetWebACLForResourceError>>
pub async fn customize(
self
) -> Result<CustomizableOperation<GetWebACLForResource, AwsResponseRetryClassifier>, SdkError<GetWebACLForResourceError>>
Consume this builder, creating a customizable operation that can be modified before being sent. The operation’s inner http::Request can be modified as well.
sourcepub async fn send(
self
) -> Result<GetWebAclForResourceOutput, SdkError<GetWebACLForResourceError>>
pub async fn send(
self
) -> Result<GetWebAclForResourceOutput, SdkError<GetWebACLForResourceError>>
Sends the request and returns the response.
If an error occurs, an SdkError
will be returned with additional details that
can be matched against.
By default, any retryable failures will be retried twice. Retry behavior is configurable with the RetryConfig, which can be set when configuring the client.
sourcepub fn resource_arn(self, input: impl Into<String>) -> Self
pub fn resource_arn(self, input: impl Into<String>) -> Self
The Amazon Resource Name (ARN) of the resource whose web ACL you want to retrieve.
The ARN must be in one of the following formats:
-
For an Application Load Balancer:
arn:aws:elasticloadbalancing:region:account-id:loadbalancer/app/load-balancer-name/load-balancer-id
-
For an Amazon API Gateway REST API:
arn:aws:apigateway:region::/restapis/api-id/stages/stage-name
-
For an AppSync GraphQL API:
arn:aws:appsync:region:account-id:apis/GraphQLApiId
-
For an Amazon Cognito user pool:
arn:aws:cognito-idp:region:account-id:userpool/user-pool-id
sourcepub fn set_resource_arn(self, input: Option<String>) -> Self
pub fn set_resource_arn(self, input: Option<String>) -> Self
The Amazon Resource Name (ARN) of the resource whose web ACL you want to retrieve.
The ARN must be in one of the following formats:
-
For an Application Load Balancer:
arn:aws:elasticloadbalancing:region:account-id:loadbalancer/app/load-balancer-name/load-balancer-id
-
For an Amazon API Gateway REST API:
arn:aws:apigateway:region::/restapis/api-id/stages/stage-name
-
For an AppSync GraphQL API:
arn:aws:appsync:region:account-id:apis/GraphQLApiId
-
For an Amazon Cognito user pool:
arn:aws:cognito-idp:region:account-id:userpool/user-pool-id
Trait Implementations§
source§impl Clone for GetWebACLForResource
impl Clone for GetWebACLForResource
source§fn clone(&self) -> GetWebACLForResource
fn clone(&self) -> GetWebACLForResource
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read more