CfnResourceScanPropsMixin

class aws_cdk.cfn_property_mixins.aws_cloudformation.CfnResourceScanPropsMixin(props, *, strategy=None)

Bases: Mixin

Represents a CloudFormation resource scan that discovers existing AWS resources in an account and region.

See:

http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-cloudformation-resourcescan.html

CloudformationResource:

AWS::CloudFormation::ResourceScan

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_cloudformation as cloudformation
import aws_cdk as cdk

# merge_strategy: cdk.IMergeStrategy

cfn_resource_scan_props_mixin = cloudformation.CfnResourceScanPropsMixin(cloudformation.CfnResourceScanMixinProps(
    scan_filters=[cloudformation.CfnResourceScanPropsMixin.ScanFilterProperty(
        types=["types"]
    )]
),
    strategy=merge_strategy
)

Create a mixin to apply properties to AWS::CloudFormation::ResourceScan.

Parameters:
  • props (Union[CfnResourceScanMixinProps, 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 = ['scanFilters']

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.

ScanFilterProperty

class CfnResourceScanPropsMixin.ScanFilterProperty(*, types=None)

Bases: object

A filter that is used to specify which resource types to scan.

Parameters:

types (Optional[Sequence[str]]) – An array of strings where each string represents an AWS resource type to scan.

See:

http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-cloudformation-resourcescan-scanfilter.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_cloudformation as cloudformation

scan_filter_property = cloudformation.CfnResourceScanPropsMixin.ScanFilterProperty(
    types=["types"]
)

Attributes

types

An array of strings where each string represents an AWS resource type to scan.

See:

http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-cloudformation-resourcescan-scanfilter.html#cfn-cloudformation-resourcescan-scanfilter-types