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_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 :
-
-
settings ( ecs_composex.common.settings.ComposeXSettings ) –
-
root_stack ( ComposeXStack ) – The root stack
-
- Return type :
-
None
- 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