AWS v7.10.0 published on Friday, Oct 24, 2025 by Pulumi
aws.wafv2.getWebAcl
Retrieves the summary of a WAFv2 Web ACL.
Using getWebAcl
Two invocation forms are available. The direct form accepts plain arguments and either blocks until the result value is available, or returns a Promise-wrapped result. The output form accepts Input-wrapped arguments and returns an Output-wrapped result.
function getWebAcl(args: GetWebAclArgs, opts?: InvokeOptions): Promise<GetWebAclResult>
function getWebAclOutput(args: GetWebAclOutputArgs, opts?: InvokeOptions): Output<GetWebAclResult>def get_web_acl(name: Optional[str] = None,
region: Optional[str] = None,
resource_arn: Optional[str] = None,
scope: Optional[str] = None,
opts: Optional[InvokeOptions] = None) -> GetWebAclResult
def get_web_acl_output(name: Optional[pulumi.Input[str]] = None,
region: Optional[pulumi.Input[str]] = None,
resource_arn: Optional[pulumi.Input[str]] = None,
scope: Optional[pulumi.Input[str]] = None,
opts: Optional[InvokeOptions] = None) -> Output[GetWebAclResult]func LookupWebAcl(ctx *Context, args *LookupWebAclArgs, opts ...InvokeOption) (*LookupWebAclResult, error)
func LookupWebAclOutput(ctx *Context, args *LookupWebAclOutputArgs, opts ...InvokeOption) LookupWebAclResultOutput> Note: This function is named LookupWebAcl in the Go SDK.
public static class GetWebAcl
{
public static Task<GetWebAclResult> InvokeAsync(GetWebAclArgs args, InvokeOptions? opts = null)
public static Output<GetWebAclResult> Invoke(GetWebAclInvokeArgs args, InvokeOptions? opts = null)
}public static CompletableFuture<GetWebAclResult> getWebAcl(GetWebAclArgs args, InvokeOptions options)
public static Output<GetWebAclResult> getWebAcl(GetWebAclArgs args, InvokeOptions options)
fn::invoke:
function: aws:wafv2/getWebAcl:getWebAcl
arguments:
# arguments dictionaryThe following arguments are supported:
- Scope string
- Specifies whether this is for an AWS CloudFront distribution or for a regional application. Valid values are
CLOUDFRONTorREGIONAL. To work with CloudFront, you must also specify the regionus-east-1(N. Virginia) on the AWS provider. - Name string
- Name of the WAFv2 Web ACL. Exactly one of
nameorresource_arnmust be specified. - Region string
- Region where this resource will be managed. Defaults to the Region set in the provider configuration.
- Resource
Arn string - ARN of the AWS resource associated with the Web ACL. This can be an ARN of an Application Load Balancer, Amazon API Gateway REST API, AWS AppSync GraphQL API, Amazon Cognito user pool, AWS App Runner service, AWS Verified Access instance, or AWS Amplify application. Exactly one of
nameorresource_arnmust be specified.
- Scope string
- Specifies whether this is for an AWS CloudFront distribution or for a regional application. Valid values are
CLOUDFRONTorREGIONAL. To work with CloudFront, you must also specify the regionus-east-1(N. Virginia) on the AWS provider. - Name string
- Name of the WAFv2 Web ACL. Exactly one of
nameorresource_arnmust be specified. - Region string
- Region where this resource will be managed. Defaults to the Region set in the provider configuration.
- Resource
Arn string - ARN of the AWS resource associated with the Web ACL. This can be an ARN of an Application Load Balancer, Amazon API Gateway REST API, AWS AppSync GraphQL API, Amazon Cognito user pool, AWS App Runner service, AWS Verified Access instance, or AWS Amplify application. Exactly one of
nameorresource_arnmust be specified.
- scope String
- Specifies whether this is for an AWS CloudFront distribution or for a regional application. Valid values are
CLOUDFRONTorREGIONAL. To work with CloudFront, you must also specify the regionus-east-1(N. Virginia) on the AWS provider. - name String
- Name of the WAFv2 Web ACL. Exactly one of
nameorresource_arnmust be specified. - region String
- Region where this resource will be managed. Defaults to the Region set in the provider configuration.
- resource
Arn String - ARN of the AWS resource associated with the Web ACL. This can be an ARN of an Application Load Balancer, Amazon API Gateway REST API, AWS AppSync GraphQL API, Amazon Cognito user pool, AWS App Runner service, AWS Verified Access instance, or AWS Amplify application. Exactly one of
nameorresource_arnmust be specified.
- scope string
- Specifies whether this is for an AWS CloudFront distribution or for a regional application. Valid values are
CLOUDFRONTorREGIONAL. To work with CloudFront, you must also specify the regionus-east-1(N. Virginia) on the AWS provider. - name string
- Name of the WAFv2 Web ACL. Exactly one of
nameorresource_arnmust be specified. - region string
- Region where this resource will be managed. Defaults to the Region set in the provider configuration.
- resource
Arn string - ARN of the AWS resource associated with the Web ACL. This can be an ARN of an Application Load Balancer, Amazon API Gateway REST API, AWS AppSync GraphQL API, Amazon Cognito user pool, AWS App Runner service, AWS Verified Access instance, or AWS Amplify application. Exactly one of
nameorresource_arnmust be specified.
- scope str
- Specifies whether this is for an AWS CloudFront distribution or for a regional application. Valid values are
CLOUDFRONTorREGIONAL. To work with CloudFront, you must also specify the regionus-east-1(N. Virginia) on the AWS provider. - name str
- Name of the WAFv2 Web ACL. Exactly one of
nameorresource_arnmust be specified. - region str
- Region where this resource will be managed. Defaults to the Region set in the provider configuration.
- resource_
arn str - ARN of the AWS resource associated with the Web ACL. This can be an ARN of an Application Load Balancer, Amazon API Gateway REST API, AWS AppSync GraphQL API, Amazon Cognito user pool, AWS App Runner service, AWS Verified Access instance, or AWS Amplify application. Exactly one of
nameorresource_arnmust be specified.
- scope String
- Specifies whether this is for an AWS CloudFront distribution or for a regional application. Valid values are
CLOUDFRONTorREGIONAL. To work with CloudFront, you must also specify the regionus-east-1(N. Virginia) on the AWS provider. - name String
- Name of the WAFv2 Web ACL. Exactly one of
nameorresource_arnmust be specified. - region String
- Region where this resource will be managed. Defaults to the Region set in the provider configuration.
- resource
Arn String - ARN of the AWS resource associated with the Web ACL. This can be an ARN of an Application Load Balancer, Amazon API Gateway REST API, AWS AppSync GraphQL API, Amazon Cognito user pool, AWS App Runner service, AWS Verified Access instance, or AWS Amplify application. Exactly one of
nameorresource_arnmust be specified.
getWebAcl Result
The following output properties are available:
- Arn string
- ARN of the entity.
- Description string
- Description of the WebACL that helps with identification.
- Id string
- The provider-assigned unique ID for this managed resource.
- Region string
- Scope string
- Name string
- Resource
Arn string
- Arn string
- ARN of the entity.
- Description string
- Description of the WebACL that helps with identification.
- Id string
- The provider-assigned unique ID for this managed resource.
- Region string
- Scope string
- Name string
- Resource
Arn string
- arn String
- ARN of the entity.
- description String
- Description of the WebACL that helps with identification.
- id String
- The provider-assigned unique ID for this managed resource.
- region String
- scope String
- name String
- resource
Arn String
- arn string
- ARN of the entity.
- description string
- Description of the WebACL that helps with identification.
- id string
- The provider-assigned unique ID for this managed resource.
- region string
- scope string
- name string
- resource
Arn string
- arn str
- ARN of the entity.
- description str
- Description of the WebACL that helps with identification.
- id str
- The provider-assigned unique ID for this managed resource.
- region str
- scope str
- name str
- resource_
arn str
- arn String
- ARN of the entity.
- description String
- Description of the WebACL that helps with identification.
- id String
- The provider-assigned unique ID for this managed resource.
- region String
- scope String
- name String
- resource
Arn String
Package Details
- Repository
- AWS Classic pulumi/pulumi-aws
- License
- Apache-2.0
- Notes
- This Pulumi package is based on the
awsTerraform Provider.
