![]() existingLoadBalancerObj ( existingLoadBalancer ). new WafwebaclToAlb ( this, "test-wafwebacl-alb", new WafwebaclToAlbProps. build()) // // This construct can only be attached to a configured Application Load Balancer. ![]() ![]() Java import import import import .route53.* import .wafwebaclalb.* // Use an existing ALB, such as one created by Route53toAlb or AlbToLambda final existingLoadBalancer = previouslåreatedLoadBalancer // Note - all alb constructs turn on ELB logging by default, so require that an environment including account // and region be provided when creating the stack // // new MyStack(app, "id", StackProps.builder() //. WafwebaclToAlb ( self, 'test_wafwebacl_alb', existing_load_balancer_obj = existingLoadBalancer ) Python from aws_solutions_constructs.aws_route53_alb import Route53ToAlb from aws_solutions_constructs.aws_wafwebacl_alb import WafwebaclToAlbProps, WafwebaclToAlb from aws_cdk import ( aws_route53 as route53, Stack ) from constructs import Construct # Use an existing ALB, such as one created by Route53toAlb or AlbToLambda existingLoadBalancer = previouslåreatedLoadBalancer # Note - all alb constructs turn on ELB logging by default, so require that an environment including account # and region be provided when creating the stack # MyStack(app, 'id', env=cdk.Environment(account='123456789012', region='us-east-1')) # This construct can only be attached to a configured Application Load Balancer. ![]() Here is a minimal deployable pattern definition: AWS Solutions Construct implements an AWS WAF web ACL connected to an Application Load Balancer. ![]()
0 Comments
Leave a Reply. |