CfnWebACL

class aws_cdk.aws_wafv2.CfnWebACL(scope_, id, *, default_action, scope, visibility_config, description=None, name=None, rules=None, tags=None)

Bases: aws_cdk.core.CfnResource

A CloudFormation AWS::WAFv2::WebACL.

See

http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-wafv2-webacl.html

CloudformationResource

AWS::WAFv2::WebACL

Create a new AWS::WAFv2::WebACL.

Parameters
  • scope (str) –

    • scope in which this resource is defined.

  • id (str) –

    • scoped id of the resource.

  • default_action (Union[DefaultActionProperty, IResolvable]) – AWS::WAFv2::WebACL.DefaultAction.

  • scopeAWS::WAFv2::WebACL.Scope.

  • visibility_config (Union[IResolvable, VisibilityConfigProperty]) – AWS::WAFv2::WebACL.VisibilityConfig.

  • description (Optional[str]) – AWS::WAFv2::WebACL.Description.

  • name (Optional[str]) – AWS::WAFv2::WebACL.Name.

  • rules (Union[IResolvable, List[Union[IResolvable, RuleProperty]], None]) – AWS::WAFv2::WebACL.Rules.

  • tags (Optional[List[CfnTag]]) – AWS::WAFv2::WebACL.Tags.

Methods

add_deletion_override(path)

Syntactic sugar for addOverride(path, undefined).

Parameters

path (str) – The path of the value to delete.

Return type

None

add_depends_on(target)

Indicates that this resource depends on another resource and cannot be provisioned unless the other resource has been successfully provisioned.

This can be used for resources across stacks (or nested stack) boundaries and the dependency will automatically be transferred to the relevant scope.

Parameters

target (CfnResource) –

Return type

None

add_metadata(key, value)

Add a value to the CloudFormation Resource Metadata.

Parameters
  • key (str) –

  • value (Any) –

See

https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/metadata-section-structure.html

Note that this is a different set of metadata from CDK node metadata; this metadata ends up in the stack template under the resource, whereas CDK node metadata ends up in the Cloud Assembly.

Return type

None

add_override(path, value)

Adds an override to the synthesized CloudFormation resource.

To add a property override, either use addPropertyOverride or prefix path with “Properties.” (i.e. Properties.TopicName).

If the override is nested, separate each nested level using a dot (.) in the path parameter. If there is an array as part of the nesting, specify the index in the path.

To include a literal . in the property name, prefix with a \. In most programming languages you will need to write this as "\\." because the \ itself will need to be escaped.

For example:

# Example automatically generated. See https://github.com/aws/jsii/issues/826
cfn_resource.add_override("Properties.GlobalSecondaryIndexes.0.Projection.NonKeyAttributes", ["myattribute"])
cfn_resource.add_override("Properties.GlobalSecondaryIndexes.1.ProjectionType", "INCLUDE")

would add the overrides Example:

"Properties": {
   "GlobalSecondaryIndexes": [
     {
       "Projection": {
         "NonKeyAttributes": [ "myattribute" ]
         ...
       }
       ...
     },
     {
       "ProjectionType": "INCLUDE"
       ...
     },
   ]
   ...
}
Parameters
  • path (str) –

    • The path of the property, you can use dot notation to override values in complex types. Any intermdediate keys will be created as needed.

  • value (Any) –

    • The value. Could be primitive or complex.

Return type

None

add_property_deletion_override(property_path)

Adds an override that deletes the value of a property from the resource definition.

Parameters

property_path (str) – The path to the property.

Return type

None

add_property_override(property_path, value)

Adds an override to a resource property.

Syntactic sugar for addOverride("Properties.<...>", value).

Parameters
  • property_path (str) – The path of the property.

  • value (Any) – The value.

Return type

None

apply_removal_policy(policy=None, *, apply_to_update_replace_policy=None, default=None)

Sets the deletion policy of the resource based on the removal policy specified.

Parameters
  • policy (Optional[RemovalPolicy]) –

  • apply_to_update_replace_policy (Optional[bool]) – Apply the same deletion policy to the resource’s “UpdateReplacePolicy”. Default: true

  • default (Optional[RemovalPolicy]) – The default policy to apply in case the removal policy is not defined. Default: - Default value is resource specific. To determine the default value for a resoure, please consult that specific resource’s documentation.

Return type

None

get_att(attribute_name)

Returns a token for an runtime attribute of this resource.

Ideally, use generated attribute accessors (e.g. resource.arn), but this can be used for future compatibility in case there is no generated attribute.

Parameters

attribute_name (str) – The name of the attribute.

Return type

Reference

get_metadata(key)

Retrieve a value value from the CloudFormation Resource Metadata.

Parameters

key (str) –

See

https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/metadata-section-structure.html

Note that this is a different set of metadata from CDK node metadata; this metadata ends up in the stack template under the resource, whereas CDK node metadata ends up in the Cloud Assembly.

Return type

Any

inspect(inspector)

(experimental) Examines the CloudFormation resource and discloses attributes.

Parameters

inspector (TreeInspector) –

  • tree inspector to collect and process attributes.

Stability

experimental

Return type

None

override_logical_id(new_logical_id)

Overrides the auto-generated logical ID with a specific ID.

Parameters

new_logical_id (str) – The new logical ID to use for this stack element.

Return type

None

to_string()

Returns a string representation of this construct.

Return type

str

Returns

a string representation of this resource

Attributes

CFN_RESOURCE_TYPE_NAME = 'AWS::WAFv2::WebACL'
attr_arn

Arn

Type

cloudformationAttribute

Return type

str

attr_capacity

Capacity

Type

cloudformationAttribute

Return type

Union[int, float]

attr_id

Id

Type

cloudformationAttribute

Return type

str

cfn_options

Options for this resource, such as condition, update policy etc.

Return type

ICfnResourceOptions

cfn_resource_type

AWS resource type.

Return type

str

creation_stack

return:

the stack trace of the point where this Resource was created from, sourced from the +metadata+ entry typed +aws:cdk:logicalId+, and with the bottom-most node +internal+ entries filtered.

Return type

List[str]

default_action

AWS::WAFv2::WebACL.DefaultAction.

See

http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-wafv2-webacl.html#cfn-wafv2-webacl-defaultaction

Return type

Union[DefaultActionProperty, IResolvable]

description

AWS::WAFv2::WebACL.Description.

See

http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-wafv2-webacl.html#cfn-wafv2-webacl-description

Return type

Optional[str]

logical_id

The logical ID for this CloudFormation stack element.

The logical ID of the element is calculated from the path of the resource node in the construct tree.

To override this value, use overrideLogicalId(newLogicalId).

Return type

str

Returns

the logical ID as a stringified token. This value will only get resolved during synthesis.

name

AWS::WAFv2::WebACL.Name.

See

http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-wafv2-webacl.html#cfn-wafv2-webacl-name

Return type

Optional[str]

node

The construct tree node associated with this construct.

Return type

ConstructNode

ref

Return a string that will be resolved to a CloudFormation { Ref } for this element.

If, by any chance, the intrinsic reference of a resource is not a string, you could coerce it to an IResolvable through Lazy.any({ produce: resource.ref }).

Return type

str

rules

AWS::WAFv2::WebACL.Rules.

See

http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-wafv2-webacl.html#cfn-wafv2-webacl-rules

Return type

Union[IResolvable, List[Union[IResolvable, RuleProperty]], None]

scope

AWS::WAFv2::WebACL.Scope.

See

http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-wafv2-webacl.html#cfn-wafv2-webacl-scope

Return type

str

stack

The stack in which this element is defined.

CfnElements must be defined within a stack scope (directly or indirectly).

Return type

Stack

tags

AWS::WAFv2::WebACL.Tags.

See

http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-wafv2-webacl.html#cfn-wafv2-webacl-tags

Return type

TagManager

visibility_config

AWS::WAFv2::WebACL.VisibilityConfig.

See

http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-wafv2-webacl.html#cfn-wafv2-webacl-visibilityconfig

Return type

Union[IResolvable, VisibilityConfigProperty]

Static Methods

classmethod is_cfn_element(x)

Returns true if a construct is a stack element (i.e. part of the synthesized cloudformation template).

Uses duck-typing instead of instanceof to allow stack elements from different versions of this library to be included in the same stack.

Parameters

x (Any) –

Return type

bool

Returns

The construct as a stack element or undefined if it is not a stack element.

classmethod is_cfn_resource(construct)

Check whether the given construct is a CfnResource.

Parameters

construct (IConstruct) –

Return type

bool

classmethod is_construct(x)

Return whether the given object is a Construct.

Parameters

x (Any) –

Return type

bool

AndStatementOneProperty

class CfnWebACL.AndStatementOneProperty(*, statements)

Bases: object

Parameters

statements (Union[IResolvable, List[Union[IResolvable, StatementTwoProperty]]]) – CfnWebACL.AndStatementOneProperty.Statements.

See

http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-wafv2-webacl-andstatementone.html

Attributes

statements

CfnWebACL.AndStatementOneProperty.Statements.

See

http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-wafv2-webacl-andstatementone.html#cfn-wafv2-webacl-andstatementone-statements

Return type

Union[IResolvable, List[Union[IResolvable, StatementTwoProperty]]]

AndStatementTwoProperty

class CfnWebACL.AndStatementTwoProperty(*, statements)

Bases: object

Parameters

statements (Union[IResolvable, List[Union[IResolvable, StatementThreeProperty]]]) – CfnWebACL.AndStatementTwoProperty.Statements.

See

http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-wafv2-webacl-andstatementtwo.html

Attributes

statements

CfnWebACL.AndStatementTwoProperty.Statements.

See

http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-wafv2-webacl-andstatementtwo.html#cfn-wafv2-webacl-andstatementtwo-statements

Return type

Union[IResolvable, List[Union[IResolvable, StatementThreeProperty]]]

ByteMatchStatementProperty

class CfnWebACL.ByteMatchStatementProperty(*, field_to_match, positional_constraint, text_transformations, search_string=None, search_string_base64=None)

Bases: object

Parameters
  • field_to_match (Union[IResolvable, FieldToMatchProperty]) – CfnWebACL.ByteMatchStatementProperty.FieldToMatch.

  • positional_constraint (str) – CfnWebACL.ByteMatchStatementProperty.PositionalConstraint.

  • text_transformations (Union[IResolvable, List[Union[IResolvable, TextTransformationProperty]]]) – CfnWebACL.ByteMatchStatementProperty.TextTransformations.

  • search_string (Optional[str]) – CfnWebACL.ByteMatchStatementProperty.SearchString.

  • search_string_base64 (Optional[str]) – CfnWebACL.ByteMatchStatementProperty.SearchStringBase64.

See

http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-wafv2-webacl-bytematchstatement.html

Attributes

field_to_match

CfnWebACL.ByteMatchStatementProperty.FieldToMatch.

See

http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-wafv2-webacl-bytematchstatement.html#cfn-wafv2-webacl-bytematchstatement-fieldtomatch

Return type

Union[IResolvable, FieldToMatchProperty]

positional_constraint

CfnWebACL.ByteMatchStatementProperty.PositionalConstraint.

See

http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-wafv2-webacl-bytematchstatement.html#cfn-wafv2-webacl-bytematchstatement-positionalconstraint

Return type

str

search_string

CfnWebACL.ByteMatchStatementProperty.SearchString.

See

http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-wafv2-webacl-bytematchstatement.html#cfn-wafv2-webacl-bytematchstatement-searchstring

Return type

Optional[str]

search_string_base64

CfnWebACL.ByteMatchStatementProperty.SearchStringBase64.

See

http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-wafv2-webacl-bytematchstatement.html#cfn-wafv2-webacl-bytematchstatement-searchstringbase64

Return type

Optional[str]

text_transformations

CfnWebACL.ByteMatchStatementProperty.TextTransformations.

See

http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-wafv2-webacl-bytematchstatement.html#cfn-wafv2-webacl-bytematchstatement-texttransformations

Return type

Union[IResolvable, List[Union[IResolvable, TextTransformationProperty]]]

DefaultActionProperty

class CfnWebACL.DefaultActionProperty(*, allow=None, block=None)

Bases: object

Parameters
  • allow (Optional[Any]) – CfnWebACL.DefaultActionProperty.Allow.

  • block (Optional[Any]) – CfnWebACL.DefaultActionProperty.Block.

See

http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-wafv2-webacl-defaultaction.html

Attributes

allow

CfnWebACL.DefaultActionProperty.Allow.

See

http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-wafv2-webacl-defaultaction.html#cfn-wafv2-webacl-defaultaction-allow

Return type

Any

block

CfnWebACL.DefaultActionProperty.Block.

See

http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-wafv2-webacl-defaultaction.html#cfn-wafv2-webacl-defaultaction-block

Return type

Any

ExcludedRuleProperty

class CfnWebACL.ExcludedRuleProperty(*, name)

Bases: object

Parameters

name (str) – CfnWebACL.ExcludedRuleProperty.Name.

See

http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-wafv2-webacl-excludedrule.html

Attributes

name

CfnWebACL.ExcludedRuleProperty.Name.

See

http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-wafv2-webacl-excludedrule.html#cfn-wafv2-webacl-excludedrule-name

Return type

str

FieldToMatchProperty

class CfnWebACL.FieldToMatchProperty(*, all_query_arguments=None, body=None, method=None, query_string=None, single_header=None, single_query_argument=None, uri_path=None)

Bases: object

Parameters
  • all_query_arguments (Optional[Any]) – CfnWebACL.FieldToMatchProperty.AllQueryArguments.

  • body (Optional[Any]) – CfnWebACL.FieldToMatchProperty.Body.

  • method (Optional[Any]) – CfnWebACL.FieldToMatchProperty.Method.

  • query_string (Optional[Any]) – CfnWebACL.FieldToMatchProperty.QueryString.

  • single_header (Optional[Any]) – CfnWebACL.FieldToMatchProperty.SingleHeader.

  • single_query_argument (Optional[Any]) – CfnWebACL.FieldToMatchProperty.SingleQueryArgument.

  • uri_path (Optional[Any]) – CfnWebACL.FieldToMatchProperty.UriPath.

See

http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-wafv2-webacl-fieldtomatch.html

Attributes

all_query_arguments

CfnWebACL.FieldToMatchProperty.AllQueryArguments.

See

http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-wafv2-webacl-fieldtomatch.html#cfn-wafv2-webacl-fieldtomatch-allqueryarguments

Return type

Any

body

CfnWebACL.FieldToMatchProperty.Body.

See

http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-wafv2-webacl-fieldtomatch.html#cfn-wafv2-webacl-fieldtomatch-body

Return type

Any

method

CfnWebACL.FieldToMatchProperty.Method.

See

http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-wafv2-webacl-fieldtomatch.html#cfn-wafv2-webacl-fieldtomatch-method

Return type

Any

query_string

CfnWebACL.FieldToMatchProperty.QueryString.

See

http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-wafv2-webacl-fieldtomatch.html#cfn-wafv2-webacl-fieldtomatch-querystring

Return type

Any

single_header

CfnWebACL.FieldToMatchProperty.SingleHeader.

See

http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-wafv2-webacl-fieldtomatch.html#cfn-wafv2-webacl-fieldtomatch-singleheader

Return type

Any

single_query_argument

CfnWebACL.FieldToMatchProperty.SingleQueryArgument.

See

http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-wafv2-webacl-fieldtomatch.html#cfn-wafv2-webacl-fieldtomatch-singlequeryargument

Return type

Any

uri_path

CfnWebACL.FieldToMatchProperty.UriPath.

See

http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-wafv2-webacl-fieldtomatch.html#cfn-wafv2-webacl-fieldtomatch-uripath

Return type

Any

ForwardedIPConfigurationProperty

class CfnWebACL.ForwardedIPConfigurationProperty(*, fallback_behavior, header_name)

Bases: object

Parameters
  • fallback_behavior (str) – CfnWebACL.ForwardedIPConfigurationProperty.FallbackBehavior.

  • header_name (str) – CfnWebACL.ForwardedIPConfigurationProperty.HeaderName.

See

http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-wafv2-webacl-forwardedipconfiguration.html

Attributes

fallback_behavior

CfnWebACL.ForwardedIPConfigurationProperty.FallbackBehavior.

See

http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-wafv2-webacl-forwardedipconfiguration.html#cfn-wafv2-webacl-forwardedipconfiguration-fallbackbehavior

Return type

str

header_name

CfnWebACL.ForwardedIPConfigurationProperty.HeaderName.

See

http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-wafv2-webacl-forwardedipconfiguration.html#cfn-wafv2-webacl-forwardedipconfiguration-headername

Return type

str

GeoMatchStatementProperty

class CfnWebACL.GeoMatchStatementProperty(*, country_codes=None, forwarded_ip_config=None)

Bases: object

Parameters
  • country_codes (Optional[List[str]]) – CfnWebACL.GeoMatchStatementProperty.CountryCodes.

  • forwarded_ip_config (Union[IResolvable, ForwardedIPConfigurationProperty, None]) – CfnWebACL.GeoMatchStatementProperty.ForwardedIPConfig.

See

http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-wafv2-webacl-geomatchstatement.html

Attributes

country_codes

CfnWebACL.GeoMatchStatementProperty.CountryCodes.

See

http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-wafv2-webacl-geomatchstatement.html#cfn-wafv2-webacl-geomatchstatement-countrycodes

Return type

Optional[List[str]]

forwarded_ip_config

CfnWebACL.GeoMatchStatementProperty.ForwardedIPConfig.

See

http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-wafv2-webacl-geomatchstatement.html#cfn-wafv2-webacl-geomatchstatement-forwardedipconfig

Return type

Union[IResolvable, ForwardedIPConfigurationProperty, None]

ManagedRuleGroupStatementProperty

class CfnWebACL.ManagedRuleGroupStatementProperty(*, name, vendor_name, excluded_rules=None)

Bases: object

Parameters
  • name (str) – CfnWebACL.ManagedRuleGroupStatementProperty.Name.

  • vendor_name (str) – CfnWebACL.ManagedRuleGroupStatementProperty.VendorName.

  • excluded_rules (Union[IResolvable, List[Union[IResolvable, ExcludedRuleProperty]], None]) – CfnWebACL.ManagedRuleGroupStatementProperty.ExcludedRules.

See

http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-wafv2-webacl-managedrulegroupstatement.html

Attributes

excluded_rules

CfnWebACL.ManagedRuleGroupStatementProperty.ExcludedRules.

See

http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-wafv2-webacl-managedrulegroupstatement.html#cfn-wafv2-webacl-managedrulegroupstatement-excludedrules

Return type

Union[IResolvable, List[Union[IResolvable, ExcludedRuleProperty]], None]

name

CfnWebACL.ManagedRuleGroupStatementProperty.Name.

See

http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-wafv2-webacl-managedrulegroupstatement.html#cfn-wafv2-webacl-managedrulegroupstatement-name

Return type

str

vendor_name

CfnWebACL.ManagedRuleGroupStatementProperty.VendorName.

See

http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-wafv2-webacl-managedrulegroupstatement.html#cfn-wafv2-webacl-managedrulegroupstatement-vendorname

Return type

str

NotStatementOneProperty

class CfnWebACL.NotStatementOneProperty(*, statement)

Bases: object

Parameters

statement (Union[IResolvable, StatementTwoProperty]) – CfnWebACL.NotStatementOneProperty.Statement.

See

http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-wafv2-webacl-notstatementone.html

Attributes

statement

CfnWebACL.NotStatementOneProperty.Statement.

See

http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-wafv2-webacl-notstatementone.html#cfn-wafv2-webacl-notstatementone-statement

Return type

Union[IResolvable, StatementTwoProperty]

NotStatementTwoProperty

class CfnWebACL.NotStatementTwoProperty(*, statement)

Bases: object

Parameters

statement (Union[IResolvable, StatementThreeProperty]) – CfnWebACL.NotStatementTwoProperty.Statement.

See

http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-wafv2-webacl-notstatementtwo.html

Attributes

statement

CfnWebACL.NotStatementTwoProperty.Statement.

See

http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-wafv2-webacl-notstatementtwo.html#cfn-wafv2-webacl-notstatementtwo-statement

Return type

Union[IResolvable, StatementThreeProperty]

OrStatementOneProperty

class CfnWebACL.OrStatementOneProperty(*, statements)

Bases: object

Parameters

statements (Union[IResolvable, List[Union[IResolvable, StatementTwoProperty]]]) – CfnWebACL.OrStatementOneProperty.Statements.

See

http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-wafv2-webacl-orstatementone.html

Attributes

statements

CfnWebACL.OrStatementOneProperty.Statements.

See

http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-wafv2-webacl-orstatementone.html#cfn-wafv2-webacl-orstatementone-statements

Return type

Union[IResolvable, List[Union[IResolvable, StatementTwoProperty]]]

OrStatementTwoProperty

class CfnWebACL.OrStatementTwoProperty(*, statements)

Bases: object

Parameters

statements (Union[IResolvable, List[Union[IResolvable, StatementThreeProperty]]]) – CfnWebACL.OrStatementTwoProperty.Statements.

See

http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-wafv2-webacl-orstatementtwo.html

Attributes

statements

CfnWebACL.OrStatementTwoProperty.Statements.

See

http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-wafv2-webacl-orstatementtwo.html#cfn-wafv2-webacl-orstatementtwo-statements

Return type

Union[IResolvable, List[Union[IResolvable, StatementThreeProperty]]]

OverrideActionProperty

class CfnWebACL.OverrideActionProperty(*, count=None, none=None)

Bases: object

Parameters
  • count (Optional[Any]) – CfnWebACL.OverrideActionProperty.Count.

  • none (Optional[Any]) – CfnWebACL.OverrideActionProperty.None.

See

http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-wafv2-webacl-overrideaction.html

Attributes

count

CfnWebACL.OverrideActionProperty.Count.

See

http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-wafv2-webacl-overrideaction.html#cfn-wafv2-webacl-overrideaction-count

Return type

Any

none

CfnWebACL.OverrideActionProperty.None.

See

http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-wafv2-webacl-overrideaction.html#cfn-wafv2-webacl-overrideaction-none

Return type

Any

RateBasedStatementOneProperty

class CfnWebACL.RateBasedStatementOneProperty(*, aggregate_key_type, limit, forwarded_ip_config=None, scope_down_statement=None)

Bases: object

Parameters
  • aggregate_key_type (str) – CfnWebACL.RateBasedStatementOneProperty.AggregateKeyType.

  • limit (Union[int, float]) – CfnWebACL.RateBasedStatementOneProperty.Limit.

  • forwarded_ip_config (Union[IResolvable, ForwardedIPConfigurationProperty, None]) – CfnWebACL.RateBasedStatementOneProperty.ForwardedIPConfig.

  • scope_down_statement (Union[IResolvable, StatementTwoProperty, None]) – CfnWebACL.RateBasedStatementOneProperty.ScopeDownStatement.

See

http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-wafv2-webacl-ratebasedstatementone.html

Attributes

aggregate_key_type

CfnWebACL.RateBasedStatementOneProperty.AggregateKeyType.

See

http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-wafv2-webacl-ratebasedstatementone.html#cfn-wafv2-webacl-ratebasedstatementone-aggregatekeytype

Return type

str

forwarded_ip_config

CfnWebACL.RateBasedStatementOneProperty.ForwardedIPConfig.

See

http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-wafv2-webacl-ratebasedstatementone.html#cfn-wafv2-webacl-ratebasedstatementone-forwardedipconfig

Return type

Union[IResolvable, ForwardedIPConfigurationProperty, None]

limit

CfnWebACL.RateBasedStatementOneProperty.Limit.

See

http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-wafv2-webacl-ratebasedstatementone.html#cfn-wafv2-webacl-ratebasedstatementone-limit

Return type

Union[int, float]

scope_down_statement

CfnWebACL.RateBasedStatementOneProperty.ScopeDownStatement.

See

http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-wafv2-webacl-ratebasedstatementone.html#cfn-wafv2-webacl-ratebasedstatementone-scopedownstatement

Return type

Union[IResolvable, StatementTwoProperty, None]

RateBasedStatementTwoProperty

class CfnWebACL.RateBasedStatementTwoProperty(*, aggregate_key_type, limit, forwarded_ip_config=None, scope_down_statement=None)

Bases: object

Parameters
  • aggregate_key_type (str) – CfnWebACL.RateBasedStatementTwoProperty.AggregateKeyType.

  • limit (Union[int, float]) – CfnWebACL.RateBasedStatementTwoProperty.Limit.

  • forwarded_ip_config (Union[IResolvable, ForwardedIPConfigurationProperty, None]) – CfnWebACL.RateBasedStatementTwoProperty.ForwardedIPConfig.

  • scope_down_statement (Union[IResolvable, StatementThreeProperty, None]) – CfnWebACL.RateBasedStatementTwoProperty.ScopeDownStatement.

See

http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-wafv2-webacl-ratebasedstatementtwo.html

Attributes

aggregate_key_type

CfnWebACL.RateBasedStatementTwoProperty.AggregateKeyType.

See

http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-wafv2-webacl-ratebasedstatementtwo.html#cfn-wafv2-webacl-ratebasedstatementtwo-aggregatekeytype

Return type

str

forwarded_ip_config

CfnWebACL.RateBasedStatementTwoProperty.ForwardedIPConfig.

See

http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-wafv2-webacl-ratebasedstatementtwo.html#cfn-wafv2-webacl-ratebasedstatementtwo-forwardedipconfig

Return type

Union[IResolvable, ForwardedIPConfigurationProperty, None]

limit

CfnWebACL.RateBasedStatementTwoProperty.Limit.

See

http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-wafv2-webacl-ratebasedstatementtwo.html#cfn-wafv2-webacl-ratebasedstatementtwo-limit

Return type

Union[int, float]

scope_down_statement

CfnWebACL.RateBasedStatementTwoProperty.ScopeDownStatement.

See

http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-wafv2-webacl-ratebasedstatementtwo.html#cfn-wafv2-webacl-ratebasedstatementtwo-scopedownstatement

Return type

Union[IResolvable, StatementThreeProperty, None]

RegexPatternSetReferenceStatementProperty

class CfnWebACL.RegexPatternSetReferenceStatementProperty(*, arn, field_to_match, text_transformations)

Bases: object

Parameters
See

http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-wafv2-webacl-regexpatternsetreferencestatement.html

Attributes

arn

CfnWebACL.RegexPatternSetReferenceStatementProperty.Arn.

See

http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-wafv2-webacl-regexpatternsetreferencestatement.html#cfn-wafv2-webacl-regexpatternsetreferencestatement-arn

Return type

str

field_to_match

CfnWebACL.RegexPatternSetReferenceStatementProperty.FieldToMatch.

See

http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-wafv2-webacl-regexpatternsetreferencestatement.html#cfn-wafv2-webacl-regexpatternsetreferencestatement-fieldtomatch

Return type

Union[IResolvable, FieldToMatchProperty]

text_transformations

CfnWebACL.RegexPatternSetReferenceStatementProperty.TextTransformations.

See

http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-wafv2-webacl-regexpatternsetreferencestatement.html#cfn-wafv2-webacl-regexpatternsetreferencestatement-texttransformations

Return type

Union[IResolvable, List[Union[IResolvable, TextTransformationProperty]]]

RuleActionProperty

class CfnWebACL.RuleActionProperty(*, allow=None, block=None, count=None)

Bases: object

Parameters
  • allow (Optional[Any]) – CfnWebACL.RuleActionProperty.Allow.

  • block (Optional[Any]) – CfnWebACL.RuleActionProperty.Block.

  • count (Optional[Any]) – CfnWebACL.RuleActionProperty.Count.

See

http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-wafv2-webacl-ruleaction.html

Attributes

allow

CfnWebACL.RuleActionProperty.Allow.

See

http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-wafv2-webacl-ruleaction.html#cfn-wafv2-webacl-ruleaction-allow

Return type

Any

block

CfnWebACL.RuleActionProperty.Block.

See

http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-wafv2-webacl-ruleaction.html#cfn-wafv2-webacl-ruleaction-block

Return type

Any

count

CfnWebACL.RuleActionProperty.Count.

See

http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-wafv2-webacl-ruleaction.html#cfn-wafv2-webacl-ruleaction-count

Return type

Any

RuleGroupReferenceStatementProperty

class CfnWebACL.RuleGroupReferenceStatementProperty(*, arn, excluded_rules=None)

Bases: object

Parameters
  • arn (str) – CfnWebACL.RuleGroupReferenceStatementProperty.Arn.

  • excluded_rules (Union[IResolvable, List[Union[IResolvable, ExcludedRuleProperty]], None]) – CfnWebACL.RuleGroupReferenceStatementProperty.ExcludedRules.

See

http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-wafv2-webacl-rulegroupreferencestatement.html

Attributes

arn

CfnWebACL.RuleGroupReferenceStatementProperty.Arn.

See

http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-wafv2-webacl-rulegroupreferencestatement.html#cfn-wafv2-webacl-rulegroupreferencestatement-arn

Return type

str

excluded_rules

CfnWebACL.RuleGroupReferenceStatementProperty.ExcludedRules.

See

http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-wafv2-webacl-rulegroupreferencestatement.html#cfn-wafv2-webacl-rulegroupreferencestatement-excludedrules

Return type

Union[IResolvable, List[Union[IResolvable, ExcludedRuleProperty]], None]

RuleProperty

class CfnWebACL.RuleProperty(*, name, priority, statement, visibility_config, action=None, override_action=None)

Bases: object

Parameters
See

http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-wafv2-webacl-rule.html

Attributes

action

CfnWebACL.RuleProperty.Action.

See

http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-wafv2-webacl-rule.html#cfn-wafv2-webacl-rule-action

Return type

Union[IResolvable, RuleActionProperty, None]

name

CfnWebACL.RuleProperty.Name.

See

http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-wafv2-webacl-rule.html#cfn-wafv2-webacl-rule-name

Return type

str

override_action

CfnWebACL.RuleProperty.OverrideAction.

See

http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-wafv2-webacl-rule.html#cfn-wafv2-webacl-rule-overrideaction

Return type

Union[IResolvable, OverrideActionProperty, None]

priority

CfnWebACL.RuleProperty.Priority.

See

http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-wafv2-webacl-rule.html#cfn-wafv2-webacl-rule-priority

Return type

Union[int, float]

statement

CfnWebACL.RuleProperty.Statement.

See

http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-wafv2-webacl-rule.html#cfn-wafv2-webacl-rule-statement

Return type

Union[IResolvable, StatementOneProperty]

visibility_config

CfnWebACL.RuleProperty.VisibilityConfig.

See

http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-wafv2-webacl-rule.html#cfn-wafv2-webacl-rule-visibilityconfig

Return type

Union[IResolvable, VisibilityConfigProperty]

SizeConstraintStatementProperty

class CfnWebACL.SizeConstraintStatementProperty(*, comparison_operator, field_to_match, size, text_transformations)

Bases: object

Parameters
  • comparison_operator (str) – CfnWebACL.SizeConstraintStatementProperty.ComparisonOperator.

  • field_to_match (Union[IResolvable, FieldToMatchProperty]) – CfnWebACL.SizeConstraintStatementProperty.FieldToMatch.

  • size (Union[int, float]) – CfnWebACL.SizeConstraintStatementProperty.Size.

  • text_transformations (Union[IResolvable, List[Union[IResolvable, TextTransformationProperty]]]) – CfnWebACL.SizeConstraintStatementProperty.TextTransformations.

See

http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-wafv2-webacl-sizeconstraintstatement.html

Attributes

comparison_operator

CfnWebACL.SizeConstraintStatementProperty.ComparisonOperator.

See

http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-wafv2-webacl-sizeconstraintstatement.html#cfn-wafv2-webacl-sizeconstraintstatement-comparisonoperator

Return type

str

field_to_match

CfnWebACL.SizeConstraintStatementProperty.FieldToMatch.

See

http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-wafv2-webacl-sizeconstraintstatement.html#cfn-wafv2-webacl-sizeconstraintstatement-fieldtomatch

Return type

Union[IResolvable, FieldToMatchProperty]

size

CfnWebACL.SizeConstraintStatementProperty.Size.

See

http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-wafv2-webacl-sizeconstraintstatement.html#cfn-wafv2-webacl-sizeconstraintstatement-size

Return type

Union[int, float]

text_transformations

CfnWebACL.SizeConstraintStatementProperty.TextTransformations.

See

http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-wafv2-webacl-sizeconstraintstatement.html#cfn-wafv2-webacl-sizeconstraintstatement-texttransformations

Return type

Union[IResolvable, List[Union[IResolvable, TextTransformationProperty]]]

SqliMatchStatementProperty

class CfnWebACL.SqliMatchStatementProperty(*, field_to_match, text_transformations)

Bases: object

Parameters
See

http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-wafv2-webacl-sqlimatchstatement.html

Attributes

field_to_match

CfnWebACL.SqliMatchStatementProperty.FieldToMatch.

See

http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-wafv2-webacl-sqlimatchstatement.html#cfn-wafv2-webacl-sqlimatchstatement-fieldtomatch

Return type

Union[IResolvable, FieldToMatchProperty]

text_transformations

CfnWebACL.SqliMatchStatementProperty.TextTransformations.

See

http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-wafv2-webacl-sqlimatchstatement.html#cfn-wafv2-webacl-sqlimatchstatement-texttransformations

Return type

Union[IResolvable, List[Union[IResolvable, TextTransformationProperty]]]

StatementOneProperty

class CfnWebACL.StatementOneProperty(*, and_statement=None, byte_match_statement=None, geo_match_statement=None, ip_set_reference_statement=None, managed_rule_group_statement=None, not_statement=None, or_statement=None, rate_based_statement=None, regex_pattern_set_reference_statement=None, rule_group_reference_statement=None, size_constraint_statement=None, sqli_match_statement=None, xss_match_statement=None)

Bases: object

Parameters
See

http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-wafv2-webacl-statementone.html

Attributes

and_statement

CfnWebACL.StatementOneProperty.AndStatement.

See

http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-wafv2-webacl-statementone.html#cfn-wafv2-webacl-statementone-andstatement

Return type

Union[IResolvable, AndStatementOneProperty, None]

byte_match_statement

CfnWebACL.StatementOneProperty.ByteMatchStatement.

See

http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-wafv2-webacl-statementone.html#cfn-wafv2-webacl-statementone-bytematchstatement

Return type

Union[IResolvable, ByteMatchStatementProperty, None]

geo_match_statement

CfnWebACL.StatementOneProperty.GeoMatchStatement.

See

http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-wafv2-webacl-statementone.html#cfn-wafv2-webacl-statementone-geomatchstatement

Return type

Union[IResolvable, GeoMatchStatementProperty, None]

ip_set_reference_statement

CfnWebACL.StatementOneProperty.IPSetReferenceStatement.

See

http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-wafv2-webacl-statementone.html#cfn-wafv2-webacl-statementone-ipsetreferencestatement

Return type

Union[IResolvable, IPSetReferenceStatementProperty, None]

managed_rule_group_statement

CfnWebACL.StatementOneProperty.ManagedRuleGroupStatement.

See

http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-wafv2-webacl-statementone.html#cfn-wafv2-webacl-statementone-managedrulegroupstatement

Return type

Union[IResolvable, ManagedRuleGroupStatementProperty, None]

not_statement

CfnWebACL.StatementOneProperty.NotStatement.

See

http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-wafv2-webacl-statementone.html#cfn-wafv2-webacl-statementone-notstatement

Return type

Union[IResolvable, NotStatementOneProperty, None]

or_statement

CfnWebACL.StatementOneProperty.OrStatement.

See

http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-wafv2-webacl-statementone.html#cfn-wafv2-webacl-statementone-orstatement

Return type

Union[IResolvable, OrStatementOneProperty, None]

rate_based_statement

CfnWebACL.StatementOneProperty.RateBasedStatement.

See

http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-wafv2-webacl-statementone.html#cfn-wafv2-webacl-statementone-ratebasedstatement

Return type

Union[IResolvable, RateBasedStatementOneProperty, None]

regex_pattern_set_reference_statement

CfnWebACL.StatementOneProperty.RegexPatternSetReferenceStatement.

See

http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-wafv2-webacl-statementone.html#cfn-wafv2-webacl-statementone-regexpatternsetreferencestatement

Return type

Union[IResolvable, RegexPatternSetReferenceStatementProperty, None]

rule_group_reference_statement

CfnWebACL.StatementOneProperty.RuleGroupReferenceStatement.

See

http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-wafv2-webacl-statementone.html#cfn-wafv2-webacl-statementone-rulegroupreferencestatement

Return type

Union[IResolvable, RuleGroupReferenceStatementProperty, None]

size_constraint_statement

CfnWebACL.StatementOneProperty.SizeConstraintStatement.

See

http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-wafv2-webacl-statementone.html#cfn-wafv2-webacl-statementone-sizeconstraintstatement

Return type

Union[IResolvable, SizeConstraintStatementProperty, None]

sqli_match_statement

CfnWebACL.StatementOneProperty.SqliMatchStatement.

See

http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-wafv2-webacl-statementone.html#cfn-wafv2-webacl-statementone-sqlimatchstatement

Return type

Union[IResolvable, SqliMatchStatementProperty, None]

xss_match_statement

CfnWebACL.StatementOneProperty.XssMatchStatement.

See

http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-wafv2-webacl-statementone.html#cfn-wafv2-webacl-statementone-xssmatchstatement

Return type

Union[IResolvable, XssMatchStatementProperty, None]

StatementThreeProperty

class CfnWebACL.StatementThreeProperty(*, byte_match_statement=None, geo_match_statement=None, ip_set_reference_statement=None, managed_rule_group_statement=None, regex_pattern_set_reference_statement=None, rule_group_reference_statement=None, size_constraint_statement=None, sqli_match_statement=None, xss_match_statement=None)

Bases: object

Parameters
See

http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-wafv2-webacl-statementthree.html

Attributes

byte_match_statement

CfnWebACL.StatementThreeProperty.ByteMatchStatement.

See

http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-wafv2-webacl-statementthree.html#cfn-wafv2-webacl-statementthree-bytematchstatement

Return type

Union[IResolvable, ByteMatchStatementProperty, None]

geo_match_statement

CfnWebACL.StatementThreeProperty.GeoMatchStatement.

See

http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-wafv2-webacl-statementthree.html#cfn-wafv2-webacl-statementthree-geomatchstatement

Return type

Union[IResolvable, GeoMatchStatementProperty, None]

ip_set_reference_statement

CfnWebACL.StatementThreeProperty.IPSetReferenceStatement.

See

http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-wafv2-webacl-statementthree.html#cfn-wafv2-webacl-statementthree-ipsetreferencestatement

Return type

Union[IResolvable, IPSetReferenceStatementProperty, None]

managed_rule_group_statement

CfnWebACL.StatementThreeProperty.ManagedRuleGroupStatement.

See

http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-wafv2-webacl-statementthree.html#cfn-wafv2-webacl-statementthree-managedrulegroupstatement

Return type

Union[IResolvable, ManagedRuleGroupStatementProperty, None]

regex_pattern_set_reference_statement

CfnWebACL.StatementThreeProperty.RegexPatternSetReferenceStatement.

See

http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-wafv2-webacl-statementthree.html#cfn-wafv2-webacl-statementthree-regexpatternsetreferencestatement

Return type

Union[IResolvable, RegexPatternSetReferenceStatementProperty, None]

rule_group_reference_statement

CfnWebACL.StatementThreeProperty.RuleGroupReferenceStatement.

See

http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-wafv2-webacl-statementthree.html#cfn-wafv2-webacl-statementthree-rulegroupreferencestatement

Return type

Union[IResolvable, RuleGroupReferenceStatementProperty, None]

size_constraint_statement

CfnWebACL.StatementThreeProperty.SizeConstraintStatement.

See

http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-wafv2-webacl-statementthree.html#cfn-wafv2-webacl-statementthree-sizeconstraintstatement

Return type

Union[IResolvable, SizeConstraintStatementProperty, None]

sqli_match_statement

CfnWebACL.StatementThreeProperty.SqliMatchStatement.

See

http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-wafv2-webacl-statementthree.html#cfn-wafv2-webacl-statementthree-sqlimatchstatement

Return type

Union[IResolvable, SqliMatchStatementProperty, None]

xss_match_statement

CfnWebACL.StatementThreeProperty.XssMatchStatement.

See

http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-wafv2-webacl-statementthree.html#cfn-wafv2-webacl-statementthree-xssmatchstatement

Return type

Union[IResolvable, XssMatchStatementProperty, None]

StatementTwoProperty

class CfnWebACL.StatementTwoProperty(*, and_statement=None, byte_match_statement=None, geo_match_statement=None, ip_set_reference_statement=None, managed_rule_group_statement=None, not_statement=None, or_statement=None, rate_based_statement=None, regex_pattern_set_reference_statement=None, rule_group_reference_statement=None, size_constraint_statement=None, sqli_match_statement=None, xss_match_statement=None)

Bases: object

Parameters
See

http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-wafv2-webacl-statementtwo.html

Attributes

and_statement

CfnWebACL.StatementTwoProperty.AndStatement.

See

http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-wafv2-webacl-statementtwo.html#cfn-wafv2-webacl-statementtwo-andstatement

Return type

Union[IResolvable, AndStatementTwoProperty, None]

byte_match_statement

CfnWebACL.StatementTwoProperty.ByteMatchStatement.

See

http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-wafv2-webacl-statementtwo.html#cfn-wafv2-webacl-statementtwo-bytematchstatement

Return type

Union[IResolvable, ByteMatchStatementProperty, None]

geo_match_statement

CfnWebACL.StatementTwoProperty.GeoMatchStatement.

See

http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-wafv2-webacl-statementtwo.html#cfn-wafv2-webacl-statementtwo-geomatchstatement

Return type

Union[IResolvable, GeoMatchStatementProperty, None]

ip_set_reference_statement

CfnWebACL.StatementTwoProperty.IPSetReferenceStatement.

See

http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-wafv2-webacl-statementtwo.html#cfn-wafv2-webacl-statementtwo-ipsetreferencestatement

Return type

Union[IResolvable, IPSetReferenceStatementProperty, None]

managed_rule_group_statement

CfnWebACL.StatementTwoProperty.ManagedRuleGroupStatement.

See

http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-wafv2-webacl-statementtwo.html#cfn-wafv2-webacl-statementtwo-managedrulegroupstatement

Return type

Union[IResolvable, ManagedRuleGroupStatementProperty, None]

not_statement

CfnWebACL.StatementTwoProperty.NotStatement.

See

http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-wafv2-webacl-statementtwo.html#cfn-wafv2-webacl-statementtwo-notstatement

Return type

Union[IResolvable, NotStatementTwoProperty, None]

or_statement

CfnWebACL.StatementTwoProperty.OrStatement.

See

http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-wafv2-webacl-statementtwo.html#cfn-wafv2-webacl-statementtwo-orstatement

Return type

Union[IResolvable, OrStatementTwoProperty, None]

rate_based_statement

CfnWebACL.StatementTwoProperty.RateBasedStatement.

See

http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-wafv2-webacl-statementtwo.html#cfn-wafv2-webacl-statementtwo-ratebasedstatement

Return type

Union[IResolvable, RateBasedStatementTwoProperty, None]

regex_pattern_set_reference_statement

CfnWebACL.StatementTwoProperty.RegexPatternSetReferenceStatement.

See

http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-wafv2-webacl-statementtwo.html#cfn-wafv2-webacl-statementtwo-regexpatternsetreferencestatement

Return type

Union[IResolvable, RegexPatternSetReferenceStatementProperty, None]

rule_group_reference_statement

CfnWebACL.StatementTwoProperty.RuleGroupReferenceStatement.

See

http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-wafv2-webacl-statementtwo.html#cfn-wafv2-webacl-statementtwo-rulegroupreferencestatement

Return type

Union[IResolvable, RuleGroupReferenceStatementProperty, None]

size_constraint_statement

CfnWebACL.StatementTwoProperty.SizeConstraintStatement.

See

http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-wafv2-webacl-statementtwo.html#cfn-wafv2-webacl-statementtwo-sizeconstraintstatement

Return type

Union[IResolvable, SizeConstraintStatementProperty, None]

sqli_match_statement

CfnWebACL.StatementTwoProperty.SqliMatchStatement.

See

http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-wafv2-webacl-statementtwo.html#cfn-wafv2-webacl-statementtwo-sqlimatchstatement

Return type

Union[IResolvable, SqliMatchStatementProperty, None]

xss_match_statement

CfnWebACL.StatementTwoProperty.XssMatchStatement.

See

http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-wafv2-webacl-statementtwo.html#cfn-wafv2-webacl-statementtwo-xssmatchstatement

Return type

Union[IResolvable, XssMatchStatementProperty, None]

TextTransformationProperty

class CfnWebACL.TextTransformationProperty(*, priority, type)

Bases: object

Parameters
  • priority (Union[int, float]) – CfnWebACL.TextTransformationProperty.Priority.

  • type (str) – CfnWebACL.TextTransformationProperty.Type.

See

http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-wafv2-webacl-texttransformation.html

Attributes

priority

CfnWebACL.TextTransformationProperty.Priority.

See

http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-wafv2-webacl-texttransformation.html#cfn-wafv2-webacl-texttransformation-priority

Return type

Union[int, float]

type

CfnWebACL.TextTransformationProperty.Type.

See

http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-wafv2-webacl-texttransformation.html#cfn-wafv2-webacl-texttransformation-type

Return type

str

VisibilityConfigProperty

class CfnWebACL.VisibilityConfigProperty(*, cloud_watch_metrics_enabled, metric_name, sampled_requests_enabled)

Bases: object

Parameters
  • cloud_watch_metrics_enabled (Union[bool, IResolvable]) – CfnWebACL.VisibilityConfigProperty.CloudWatchMetricsEnabled.

  • metric_name (str) – CfnWebACL.VisibilityConfigProperty.MetricName.

  • sampled_requests_enabled (Union[bool, IResolvable]) – CfnWebACL.VisibilityConfigProperty.SampledRequestsEnabled.

See

http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-wafv2-webacl-visibilityconfig.html

Attributes

cloud_watch_metrics_enabled

CfnWebACL.VisibilityConfigProperty.CloudWatchMetricsEnabled.

See

http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-wafv2-webacl-visibilityconfig.html#cfn-wafv2-webacl-visibilityconfig-cloudwatchmetricsenabled

Return type

Union[bool, IResolvable]

metric_name

CfnWebACL.VisibilityConfigProperty.MetricName.

See

http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-wafv2-webacl-visibilityconfig.html#cfn-wafv2-webacl-visibilityconfig-metricname

Return type

str

sampled_requests_enabled

CfnWebACL.VisibilityConfigProperty.SampledRequestsEnabled.

See

http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-wafv2-webacl-visibilityconfig.html#cfn-wafv2-webacl-visibilityconfig-sampledrequestsenabled

Return type

Union[bool, IResolvable]

XssMatchStatementProperty

class CfnWebACL.XssMatchStatementProperty(*, field_to_match, text_transformations)

Bases: object

Parameters
See

http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-wafv2-webacl-xssmatchstatement.html

Attributes

field_to_match

CfnWebACL.XssMatchStatementProperty.FieldToMatch.

See

http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-wafv2-webacl-xssmatchstatement.html#cfn-wafv2-webacl-xssmatchstatement-fieldtomatch

Return type

Union[IResolvable, FieldToMatchProperty]

text_transformations

CfnWebACL.XssMatchStatementProperty.TextTransformations.

See

http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-wafv2-webacl-xssmatchstatement.html#cfn-wafv2-webacl-xssmatchstatement-texttransformations

Return type

Union[IResolvable, List[Union[IResolvable, TextTransformationProperty]]]