ecs_composex.wafv2_webacl package

Submodules

ecs_composex.wafv2_webacl.validators_wafv2 module

Override validator

ecs_composex.wafv2_webacl.validators_wafv2. validate_statement ( statement ) [source]

Validate Transformation Type for WebACL TextTransformation Property: RuleGroupRule.Statement Property: WebACLRule.Statement Property: ManagedRuleGroupStatement.ScopeDownStatement Property: NotStatement.Statement Property: RateBasedStatement.ScopeDownStatement

ecs_composex.wafv2_webacl.wafv2_webacl_elbv2 module

Handle association of WebACL to ALB

ecs_composex.wafv2_webacl.wafv2_webacl_elbv2. handle_elbv2 ( webacl , webacl_stack , target_elbv2 , elbv2_stack , settings = None , root_stack = None ) [source]

Handles creating an association between ALB & WAFV2 WebACL

Return type :

None

ecs_composex.wafv2_webacl.wafv2_webacl_module module

ecs_composex.wafv2_webacl.wafv2_webacl_params module

ecs_composex.wafv2_webacl.wafv2_webacl_stack module

Module for the XStack SSM

class ecs_composex.wafv2_webacl.wafv2_webacl_stack. WebACL ( name , definition , module , settings ) [source]

Bases: AwsEnvironmentResource

Class to represent a WebACL

handle_x_dependencies ( settings , root_stack ) [source]

WIll go over all the new resources to create in the execution and search for properties that can be updated with itself

Parameters :
Return type :

None

init_outputs ( ) [source]

Placeholder method

init_stack ( root_stack , settings ) [source]

Initialize a XStack for resource associated with Lookup resources :param ComposeXStack root_stack: The root stack

Return type :

None

lookup_resource ( arn_re , native_lookup_function , cfn_resource_type , tagging_api_id = None , subattribute_key = None , use_arn_for_id = False ) [source]

Method to self-identify properties. It will try to use AWS Cloud Control API if possible, otherwise fallback to using boto3 descriptions functions to create a mapping of the attributes.

For WAFv2 given these do not have Tags, using CloudControl only.

class ecs_composex.wafv2_webacl.wafv2_webacl_stack. XStack ( title , settings , module , ** kwargs ) [source]

Bases: ComposeXStack

ecs_composex.wafv2_webacl.wafv2_webacl_stack. resolve_lookup ( lookup_resources , settings , module ) [source]

Lookup of the AWS resources and setting the mappings for the resource type

ecs_composex.wafv2_webacl.wafv2_webacl_template module

ecs_composex.wafv2_webacl.wafv2_webacl_template. render_new_web_acls ( new_resources , root_stack ) [source]

Imports properties from Compose definition to create resource

Return type :

None

Module contents