Class CfnWebACLAssociationProps.Builder

java.lang.Object
software.amazon.awscdk.services.wafv2.CfnWebACLAssociationProps.Builder
All Implemented Interfaces:
software.amazon.jsii.Builder<CfnWebACLAssociationProps>
Enclosing interface:
CfnWebACLAssociationProps

@Stability(Stable) public static final class CfnWebACLAssociationProps.Builder extends Object implements software.amazon.jsii.Builder<CfnWebACLAssociationProps>
  • Constructor Details

    • Builder

      public Builder()
  • Method Details

    • resourceArn

      @Stability(Stable) public CfnWebACLAssociationProps.Builder resourceArn(String resourceArn)
      Parameters:
      resourceArn - The Amazon Resource Name (ARN) of the resource to associate with the web ACL. This parameter is required. 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 AWS 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*
      • For an AWS App Runner service: arn:aws:apprunner: *region* : *account-id* :service/ *apprunner-service-name* / *apprunner-service-id*
      Returns:
      this
    • webAclArn

      @Stability(Stable) public CfnWebACLAssociationProps.Builder webAclArn(String webAclArn)
      Parameters:
      webAclArn - The Amazon Resource Name (ARN) of the web ACL that you want to associate with the resource. This parameter is required.
      Returns:
      this
    • build

      @Stability(Stable) public CfnWebACLAssociationProps build()
      Builds the configured instance.
      Specified by:
      build in interface software.amazon.jsii.Builder<CfnWebACLAssociationProps>
      Returns:
      a new instance of CfnWebACLAssociationProps
      Throws:
      NullPointerException - if any required attribute was not provided