Interface CfnWebACLAssociationProps
- All Superinterfaces:
software.amazon.jsii.JsiiSerializable
- All Known Implementing Classes:
CfnWebACLAssociationProps.Jsii$Proxy
@Generated(value="jsii-pacmak/1.112.0 (build de1bc80)",
date="2025-07-01T13:14:58.155Z")
@Stability(Stable)
public interface CfnWebACLAssociationProps
extends software.amazon.jsii.JsiiSerializable
Properties for defining a
CfnWebACLAssociation
.
Example:
EventApi api; CfnWebACL webAcl; // Associate waf with Event API // Associate waf with Event API CfnWebACLAssociation.Builder.create(this, "WafAssociation") .resourceArn(api.getApiArn()) .webAclArn(webAcl.getAttrArn()) .build();
- See Also:
-
Nested Class Summary
Nested ClassesModifier and TypeInterfaceDescriptionstatic final class
A builder forCfnWebACLAssociationProps
static final class
An implementation forCfnWebACLAssociationProps
-
Method Summary
Modifier and TypeMethodDescriptionbuilder()
The Amazon Resource Name (ARN) of the resource to associate with the web ACL.The Amazon Resource Name (ARN) of the web ACL that you want to associate with the resource.Methods inherited from interface software.amazon.jsii.JsiiSerializable
$jsii$toJson
-
Method Details
-
getResourceArn
The Amazon Resource Name (ARN) of the resource to associate with the web ACL.The ARN must be in one of the following formats:
- For an Application Load Balancer:
arn: *partition* :elasticloadbalancing: *region* : *account-id* :loadbalancer/app/ *load-balancer-name* / *load-balancer-id*
- For an Amazon API Gateway REST API:
arn: *partition* :apigateway: *region* ::/restapis/ *api-id* /stages/ *stage-name*
- For an AWS AppSync GraphQL API:
arn: *partition* :appsync: *region* : *account-id* :apis/ *GraphQLApiId*
- For an Amazon Cognito user pool:
arn: *partition* :cognito-idp: *region* : *account-id* :userpool/ *user-pool-id*
- For an AWS App Runner service:
arn: *partition* :apprunner: *region* : *account-id* :service/ *apprunner-service-name* / *apprunner-service-id*
- For an AWS Verified Access instance:
arn: *partition* :ec2: *region* : *account-id* :verified-access-instance/ *instance-id*
- For an AWS Amplify instance:
arn: *partition* :amplify: *region* : *account-id* :apps/ *app-id*
- See Also:
- For an Application Load Balancer:
-
getWebAclArn
The Amazon Resource Name (ARN) of the web ACL that you want to associate with the resource.- See Also:
-
builder
- Returns:
- a
CfnWebACLAssociationProps.Builder
ofCfnWebACLAssociationProps
-