CfnArchiveRulePropsMixin

class aws_cdk.cfn_property_mixins.aws_accessanalyzer.CfnArchiveRulePropsMixin(props, *, strategy=None)

Bases: Mixin

Creates 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:

http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-accessanalyzer-archiverule.html

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 x is a Mixin.

Parameters:

x (Any) – Any object.

Return type:

bool

Returns:

true if x is an object created from a class which extends Mixin.

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:

http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-accessanalyzer-archiverule-filteritems.html

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

http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-accessanalyzer-archiverule-filteritems.html#cfn-accessanalyzer-archiverule-filteritems-contains

Type:

see

eq

http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-accessanalyzer-archiverule-filteritems.html#cfn-accessanalyzer-archiverule-filteritems-eq

Type:

see

exists

http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-accessanalyzer-archiverule-filteritems.html#cfn-accessanalyzer-archiverule-filteritems-exists

Type:

see

neq

http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-accessanalyzer-archiverule-filteritems.html#cfn-accessanalyzer-archiverule-filteritems-neq

Type:

see