CfnRuleGroup

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

Bases: aws_cdk.core.CfnResource

A CloudFormation AWS::WAFv2::RuleGroup.

See

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

CloudformationResource

AWS::WAFv2::RuleGroup

Create a new AWS::WAFv2::RuleGroup.

Parameters
  • scope (str) –

    • scope in which this resource is defined.

  • id (str) –

    • scoped id of the resource.

  • capacity (Union[int, float]) – AWS::WAFv2::RuleGroup.Capacity.

  • scopeAWS::WAFv2::RuleGroup.Scope.

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

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

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

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

  • tags (Optional[List[CfnTag]]) – AWS::WAFv2::RuleGroup.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::RuleGroup'
attr_arn

Arn

Type

cloudformationAttribute

Return type

str

attr_id

Id

Type

cloudformationAttribute

Return type

str

capacity

AWS::WAFv2::RuleGroup.Capacity.

See

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

Return type

Union[int, float]

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]

description

AWS::WAFv2::RuleGroup.Description.

See

http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-wafv2-rulegroup.html#cfn-wafv2-rulegroup-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::RuleGroup.Name.

See

http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-wafv2-rulegroup.html#cfn-wafv2-rulegroup-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::RuleGroup.Rules.

See

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

Return type

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

scope

AWS::WAFv2::RuleGroup.Scope.

See

http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-wafv2-rulegroup.html#cfn-wafv2-rulegroup-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::RuleGroup.Tags.

See

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

Return type

TagManager

visibility_config

AWS::WAFv2::RuleGroup.VisibilityConfig.

See

http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-wafv2-rulegroup.html#cfn-wafv2-rulegroup-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 CfnRuleGroup.AndStatementOneProperty(*, statements)

Bases: object

Parameters

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

See

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

Attributes

statements

CfnRuleGroup.AndStatementOneProperty.Statements.

See

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

Return type

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

AndStatementTwoProperty

class CfnRuleGroup.AndStatementTwoProperty(*, statements)

Bases: object

Parameters

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

See

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

Attributes

statements

CfnRuleGroup.AndStatementTwoProperty.Statements.

See

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

Return type

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

ByteMatchStatementProperty

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

Bases: object

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

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

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

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

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

See

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

Attributes

field_to_match

CfnRuleGroup.ByteMatchStatementProperty.FieldToMatch.

See

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

Return type

Union[IResolvable, FieldToMatchProperty]

positional_constraint

CfnRuleGroup.ByteMatchStatementProperty.PositionalConstraint.

See

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

Return type

str

search_string

CfnRuleGroup.ByteMatchStatementProperty.SearchString.

See

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

Return type

Optional[str]

search_string_base64

CfnRuleGroup.ByteMatchStatementProperty.SearchStringBase64.

See

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

Return type

Optional[str]

text_transformations

CfnRuleGroup.ByteMatchStatementProperty.TextTransformations.

See

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

Return type

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

FieldToMatchProperty

class CfnRuleGroup.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]) – CfnRuleGroup.FieldToMatchProperty.AllQueryArguments.

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

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

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

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

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

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

See

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

Attributes

all_query_arguments

CfnRuleGroup.FieldToMatchProperty.AllQueryArguments.

See

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

Return type

Any

body

CfnRuleGroup.FieldToMatchProperty.Body.

See

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

Return type

Any

method

CfnRuleGroup.FieldToMatchProperty.Method.

See

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

Return type

Any

query_string

CfnRuleGroup.FieldToMatchProperty.QueryString.

See

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

Return type

Any

single_header

CfnRuleGroup.FieldToMatchProperty.SingleHeader.

See

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

Return type

Any

single_query_argument

CfnRuleGroup.FieldToMatchProperty.SingleQueryArgument.

See

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

Return type

Any

uri_path

CfnRuleGroup.FieldToMatchProperty.UriPath.

See

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

Return type

Any

ForwardedIPConfigurationProperty

class CfnRuleGroup.ForwardedIPConfigurationProperty(*, fallback_behavior, header_name)

Bases: object

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

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

See

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

Attributes

fallback_behavior

CfnRuleGroup.ForwardedIPConfigurationProperty.FallbackBehavior.

See

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

Return type

str

header_name

CfnRuleGroup.ForwardedIPConfigurationProperty.HeaderName.

See

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

Return type

str

GeoMatchStatementProperty

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

Bases: object

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

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

See

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

Attributes

country_codes

CfnRuleGroup.GeoMatchStatementProperty.CountryCodes.

See

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

Return type

Optional[List[str]]

forwarded_ip_config

CfnRuleGroup.GeoMatchStatementProperty.ForwardedIPConfig.

See

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

Return type

Union[IResolvable, ForwardedIPConfigurationProperty, None]

NotStatementOneProperty

class CfnRuleGroup.NotStatementOneProperty(*, statement)

Bases: object

Parameters

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

See

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

Attributes

statement

CfnRuleGroup.NotStatementOneProperty.Statement.

See

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

Return type

Union[IResolvable, StatementTwoProperty]

NotStatementTwoProperty

class CfnRuleGroup.NotStatementTwoProperty(*, statement)

Bases: object

Parameters

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

See

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

Attributes

statement

CfnRuleGroup.NotStatementTwoProperty.Statement.

See

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

Return type

Union[IResolvable, StatementThreeProperty]

OrStatementOneProperty

class CfnRuleGroup.OrStatementOneProperty(*, statements)

Bases: object

Parameters

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

See

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

Attributes

statements

CfnRuleGroup.OrStatementOneProperty.Statements.

See

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

Return type

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

OrStatementTwoProperty

class CfnRuleGroup.OrStatementTwoProperty(*, statements)

Bases: object

Parameters

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

See

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

Attributes

statements

CfnRuleGroup.OrStatementTwoProperty.Statements.

See

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

Return type

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

RateBasedStatementOneProperty

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

Bases: object

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

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

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

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

See

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

Attributes

aggregate_key_type

CfnRuleGroup.RateBasedStatementOneProperty.AggregateKeyType.

See

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

Return type

str

forwarded_ip_config

CfnRuleGroup.RateBasedStatementOneProperty.ForwardedIPConfig.

See

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

Return type

Union[IResolvable, ForwardedIPConfigurationProperty, None]

limit

CfnRuleGroup.RateBasedStatementOneProperty.Limit.

See

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

Return type

Union[int, float]

scope_down_statement

CfnRuleGroup.RateBasedStatementOneProperty.ScopeDownStatement.

See

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

Return type

Union[IResolvable, StatementTwoProperty, None]

RateBasedStatementTwoProperty

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

Bases: object

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

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

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

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

See

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

Attributes

aggregate_key_type

CfnRuleGroup.RateBasedStatementTwoProperty.AggregateKeyType.

See

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

Return type

str

forwarded_ip_config

CfnRuleGroup.RateBasedStatementTwoProperty.ForwardedIPConfig.

See

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

Return type

Union[IResolvable, ForwardedIPConfigurationProperty, None]

limit

CfnRuleGroup.RateBasedStatementTwoProperty.Limit.

See

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

Return type

Union[int, float]

scope_down_statement

CfnRuleGroup.RateBasedStatementTwoProperty.ScopeDownStatement.

See

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

Return type

Union[IResolvable, StatementThreeProperty, None]

RegexPatternSetReferenceStatementProperty

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

Bases: object

Parameters
See

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

Attributes

arn

CfnRuleGroup.RegexPatternSetReferenceStatementProperty.Arn.

See

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

Return type

str

field_to_match

CfnRuleGroup.RegexPatternSetReferenceStatementProperty.FieldToMatch.

See

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

Return type

Union[IResolvable, FieldToMatchProperty]

text_transformations

CfnRuleGroup.RegexPatternSetReferenceStatementProperty.TextTransformations.

See

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

Return type

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

RuleActionProperty

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

Bases: object

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

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

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

See

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

Attributes

allow

CfnRuleGroup.RuleActionProperty.Allow.

See

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

Return type

Any

block

CfnRuleGroup.RuleActionProperty.Block.

See

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

Return type

Any

count

CfnRuleGroup.RuleActionProperty.Count.

See

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

Return type

Any

RuleProperty

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

Bases: object

Parameters
See

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

Attributes

action

CfnRuleGroup.RuleProperty.Action.

See

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

Return type

Union[IResolvable, RuleActionProperty, None]

name

CfnRuleGroup.RuleProperty.Name.

See

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

Return type

str

priority

CfnRuleGroup.RuleProperty.Priority.

See

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

Return type

Union[int, float]

statement

CfnRuleGroup.RuleProperty.Statement.

See

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

Return type

Union[IResolvable, StatementOneProperty]

visibility_config

CfnRuleGroup.RuleProperty.VisibilityConfig.

See

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

Return type

Union[IResolvable, VisibilityConfigProperty]

SizeConstraintStatementProperty

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

Bases: object

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

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

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

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

See

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

Attributes

comparison_operator

CfnRuleGroup.SizeConstraintStatementProperty.ComparisonOperator.

See

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

Return type

str

field_to_match

CfnRuleGroup.SizeConstraintStatementProperty.FieldToMatch.

See

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

Return type

Union[IResolvable, FieldToMatchProperty]

size

CfnRuleGroup.SizeConstraintStatementProperty.Size.

See

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

Return type

Union[int, float]

text_transformations

CfnRuleGroup.SizeConstraintStatementProperty.TextTransformations.

See

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

Return type

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

SqliMatchStatementProperty

class CfnRuleGroup.SqliMatchStatementProperty(*, field_to_match, text_transformations)

Bases: object

Parameters
See

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

Attributes

field_to_match

CfnRuleGroup.SqliMatchStatementProperty.FieldToMatch.

See

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

Return type

Union[IResolvable, FieldToMatchProperty]

text_transformations

CfnRuleGroup.SqliMatchStatementProperty.TextTransformations.

See

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

Return type

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

StatementOneProperty

class CfnRuleGroup.StatementOneProperty(*, and_statement=None, byte_match_statement=None, geo_match_statement=None, ip_set_reference_statement=None, not_statement=None, or_statement=None, rate_based_statement=None, regex_pattern_set_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-rulegroup-statementone.html

Attributes

and_statement

CfnRuleGroup.StatementOneProperty.AndStatement.

See

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

Return type

Union[IResolvable, AndStatementOneProperty, None]

byte_match_statement

CfnRuleGroup.StatementOneProperty.ByteMatchStatement.

See

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

Return type

Union[IResolvable, ByteMatchStatementProperty, None]

geo_match_statement

CfnRuleGroup.StatementOneProperty.GeoMatchStatement.

See

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

Return type

Union[IResolvable, GeoMatchStatementProperty, None]

ip_set_reference_statement

CfnRuleGroup.StatementOneProperty.IPSetReferenceStatement.

See

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

Return type

Union[IResolvable, IPSetReferenceStatementProperty, None]

not_statement

CfnRuleGroup.StatementOneProperty.NotStatement.

See

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

Return type

Union[IResolvable, NotStatementOneProperty, None]

or_statement

CfnRuleGroup.StatementOneProperty.OrStatement.

See

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

Return type

Union[IResolvable, OrStatementOneProperty, None]

rate_based_statement

CfnRuleGroup.StatementOneProperty.RateBasedStatement.

See

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

Return type

Union[IResolvable, RateBasedStatementOneProperty, None]

regex_pattern_set_reference_statement

CfnRuleGroup.StatementOneProperty.RegexPatternSetReferenceStatement.

See

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

Return type

Union[IResolvable, RegexPatternSetReferenceStatementProperty, None]

size_constraint_statement

CfnRuleGroup.StatementOneProperty.SizeConstraintStatement.

See

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

Return type

Union[IResolvable, SizeConstraintStatementProperty, None]

sqli_match_statement

CfnRuleGroup.StatementOneProperty.SqliMatchStatement.

See

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

Return type

Union[IResolvable, SqliMatchStatementProperty, None]

xss_match_statement

CfnRuleGroup.StatementOneProperty.XssMatchStatement.

See

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

Return type

Union[IResolvable, XssMatchStatementProperty, None]

StatementThreeProperty

class CfnRuleGroup.StatementThreeProperty(*, byte_match_statement=None, geo_match_statement=None, ip_set_reference_statement=None, regex_pattern_set_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-rulegroup-statementthree.html

Attributes

byte_match_statement

CfnRuleGroup.StatementThreeProperty.ByteMatchStatement.

See

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

Return type

Union[IResolvable, ByteMatchStatementProperty, None]

geo_match_statement

CfnRuleGroup.StatementThreeProperty.GeoMatchStatement.

See

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

Return type

Union[IResolvable, GeoMatchStatementProperty, None]

ip_set_reference_statement

CfnRuleGroup.StatementThreeProperty.IPSetReferenceStatement.

See

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

Return type

Union[IResolvable, IPSetReferenceStatementProperty, None]

regex_pattern_set_reference_statement

CfnRuleGroup.StatementThreeProperty.RegexPatternSetReferenceStatement.

See

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

Return type

Union[IResolvable, RegexPatternSetReferenceStatementProperty, None]

size_constraint_statement

CfnRuleGroup.StatementThreeProperty.SizeConstraintStatement.

See

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

Return type

Union[IResolvable, SizeConstraintStatementProperty, None]

sqli_match_statement

CfnRuleGroup.StatementThreeProperty.SqliMatchStatement.

See

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

Return type

Union[IResolvable, SqliMatchStatementProperty, None]

xss_match_statement

CfnRuleGroup.StatementThreeProperty.XssMatchStatement.

See

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

Return type

Union[IResolvable, XssMatchStatementProperty, None]

StatementTwoProperty

class CfnRuleGroup.StatementTwoProperty(*, and_statement=None, byte_match_statement=None, geo_match_statement=None, ip_set_reference_statement=None, not_statement=None, or_statement=None, rate_based_statement=None, regex_pattern_set_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-rulegroup-statementtwo.html

Attributes

and_statement

CfnRuleGroup.StatementTwoProperty.AndStatement.

See

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

Return type

Union[IResolvable, AndStatementTwoProperty, None]

byte_match_statement

CfnRuleGroup.StatementTwoProperty.ByteMatchStatement.

See

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

Return type

Union[IResolvable, ByteMatchStatementProperty, None]

geo_match_statement

CfnRuleGroup.StatementTwoProperty.GeoMatchStatement.

See

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

Return type

Union[IResolvable, GeoMatchStatementProperty, None]

ip_set_reference_statement

CfnRuleGroup.StatementTwoProperty.IPSetReferenceStatement.

See

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

Return type

Union[IResolvable, IPSetReferenceStatementProperty, None]

not_statement

CfnRuleGroup.StatementTwoProperty.NotStatement.

See

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

Return type

Union[IResolvable, NotStatementTwoProperty, None]

or_statement

CfnRuleGroup.StatementTwoProperty.OrStatement.

See

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

Return type

Union[IResolvable, OrStatementTwoProperty, None]

rate_based_statement

CfnRuleGroup.StatementTwoProperty.RateBasedStatement.

See

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

Return type

Union[IResolvable, RateBasedStatementTwoProperty, None]

regex_pattern_set_reference_statement

CfnRuleGroup.StatementTwoProperty.RegexPatternSetReferenceStatement.

See

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

Return type

Union[IResolvable, RegexPatternSetReferenceStatementProperty, None]

size_constraint_statement

CfnRuleGroup.StatementTwoProperty.SizeConstraintStatement.

See

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

Return type

Union[IResolvable, SizeConstraintStatementProperty, None]

sqli_match_statement

CfnRuleGroup.StatementTwoProperty.SqliMatchStatement.

See

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

Return type

Union[IResolvable, SqliMatchStatementProperty, None]

xss_match_statement

CfnRuleGroup.StatementTwoProperty.XssMatchStatement.

See

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

Return type

Union[IResolvable, XssMatchStatementProperty, None]

TextTransformationProperty

class CfnRuleGroup.TextTransformationProperty(*, priority, type)

Bases: object

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

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

See

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

Attributes

priority

CfnRuleGroup.TextTransformationProperty.Priority.

See

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

Return type

Union[int, float]

type

CfnRuleGroup.TextTransformationProperty.Type.

See

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

Return type

str

VisibilityConfigProperty

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

Bases: object

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

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

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

See

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

Attributes

cloud_watch_metrics_enabled

CfnRuleGroup.VisibilityConfigProperty.CloudWatchMetricsEnabled.

See

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

Return type

Union[bool, IResolvable]

metric_name

CfnRuleGroup.VisibilityConfigProperty.MetricName.

See

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

Return type

str

sampled_requests_enabled

CfnRuleGroup.VisibilityConfigProperty.SampledRequestsEnabled.

See

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

Return type

Union[bool, IResolvable]

XssMatchStatementProperty

class CfnRuleGroup.XssMatchStatementProperty(*, field_to_match, text_transformations)

Bases: object

Parameters
See

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

Attributes

field_to_match

CfnRuleGroup.XssMatchStatementProperty.FieldToMatch.

See

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

Return type

Union[IResolvable, FieldToMatchProperty]

text_transformations

CfnRuleGroup.XssMatchStatementProperty.TextTransformations.

See

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

Return type

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