CfnArchiveRulePropsMixin
- class aws_cdk.cfn_property_mixins.aws_accessanalyzer.CfnArchiveRulePropsMixin(props, *, strategy=None)
Bases:
MixinCreates an archive rule for the specified analyzer.
Archive rules automatically archive new findings that meet the criteria you define when you create the rule.
- See:
- CloudformationResource:
AWS::AccessAnalyzer::ArchiveRule
- 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.cfn_property_mixins import aws_accessanalyzer as accessanalyzer import aws_cdk as cdk # merge_strategy: cdk.IMergeStrategy cfn_archive_rule_props_mixin = accessanalyzer.CfnArchiveRulePropsMixin(accessanalyzer.CfnArchiveRuleMixinProps( analyzer_name="analyzerName", filter={ "filter_key": accessanalyzer.CfnArchiveRulePropsMixin.FilterItemsProperty( contains=["contains"], eq=["eq"], exists=False, neq=["neq"] ) }, rule_name="ruleName" ), strategy=merge_strategy )
Create a mixin to apply properties to
AWS::AccessAnalyzer::ArchiveRule.- Parameters:
props (
Union[CfnArchiveRuleMixinProps,Dict[str,Any]]) – L1 properties to apply.strategy (
Optional[IMergeStrategy]) – Strategy for merging nested properties. Default: - PropertyMergeStrategy.combine()
Methods
- apply_to(construct)
Apply the mixin properties to the construct.
- Parameters:
construct (
IConstruct)- Return type:
None
- supports(construct)
Check if this mixin supports the given construct.
- Parameters:
construct (
IConstruct)- Return type:
bool
Attributes
- CFN_PROPERTY_KEYS = ['analyzerName', 'filter', 'ruleName']
Static Methods
- classmethod is_mixin(x)
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.
FilterItemsProperty
- class CfnArchiveRulePropsMixin.FilterItemsProperty(*, contains=None, eq=None, exists=None, neq=None)
Bases:
object- Parameters:
contains (
Optional[Sequence[str]])eq (
Optional[Sequence[str]])exists (
Union[bool,IResolvable,None])neq (
Optional[Sequence[str]])
- See:
- 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.cfn_property_mixins import aws_accessanalyzer as accessanalyzer filter_items_property = accessanalyzer.CfnArchiveRulePropsMixin.FilterItemsProperty( contains=["contains"], eq=["eq"], exists=False, neq=["neq"] )
Attributes
- contains
-
- Type:
see
- eq
-
- Type:
see
- exists
-
- Type:
see