CfnGeoMatchSetPropsMixin
- class aws_cdk.mixins_preview.aws_wafregional.mixins.CfnGeoMatchSetPropsMixin(props, *, strategy=None)
Bases:
MixinAWS WAF Classic support will end on September 30, 2025.
This is AWS WAF Classic documentation. For more information, see AWS WAF Classic in the developer guide.
For the latest version of AWS WAF , use the AWS WAF V2 API and see the AWS WAF Developer Guide . With the latest version, AWS WAF has a single set of endpoints for regional and global use.
Contains one or more countries that AWS WAF will search for.
- see:
- cloudformationResource:
AWS::WAFRegional::GeoMatchSet
- mixin:
true
- exampleMetadata:
fixture=_generated
Example:
# The code below shows an example of how to instantiate this type. # The values are placeholders you should change. from aws_cdk.mixins_preview import mixins from aws_cdk.mixins_preview.aws_wafregional import mixins as wafregional_mixins cfn_geo_match_set_props_mixin = wafregional_mixins.CfnGeoMatchSetPropsMixin(wafregional_mixins.CfnGeoMatchSetMixinProps( geo_match_constraints=[wafregional_mixins.CfnGeoMatchSetPropsMixin.GeoMatchConstraintProperty( type="type", value="value" )], name="name" ), strategy=mixins.PropertyMergeStrategy.OVERRIDE )
Create a mixin to apply properties to
AWS::WAFRegional::GeoMatchSet.- Parameters:
props (
Union[CfnGeoMatchSetMixinProps,Dict[str,Any]]) – L1 properties to apply.strategy (
Optional[PropertyMergeStrategy]) – (experimental) Strategy for merging nested properties. Default: - PropertyMergeStrategy.MERGE
Methods
- apply_to(construct)
Apply the mixin properties to the construct.
- Parameters:
construct (
IConstruct)- Return type:
- supports(construct)
Check if this mixin supports the given construct.
- Parameters:
construct (
IConstruct)- Return type:
bool
Attributes
- CFN_PROPERTY_KEYS = ['geoMatchConstraints', 'name']
Static Methods
- classmethod is_mixin(x)
(experimental) Checks if
xis a Mixin.- Parameters:
x (
Any) – Any object.- Return type:
bool- Returns:
true if
xis an object created from a class which extendsMixin.- Stability:
experimental
GeoMatchConstraintProperty
- class CfnGeoMatchSetPropsMixin.GeoMatchConstraintProperty(*, type=None, value=None)
Bases:
objectAWS WAF Classic support will end on September 30, 2025.
This is AWS WAF Classic documentation. For more information, see AWS WAF Classic in the developer guide.
For the latest version of AWS WAF , use the AWS WAF V2 API and see the AWS WAF Developer Guide . With the latest version, AWS WAF has a single set of endpoints for regional and global use.
The country from which web requests originate that you want AWS WAF to search for.
Attributes
- type
The type of geographical area you want AWS WAF to search for.
Currently
Countryis the only valid value.
- value
The country that you want AWS WAF to search for.