ConstructSelector

class aws_cdk.mixins_preview.core.ConstructSelector

Bases: object

(experimental) Selects constructs from a construct tree based on various criteria.

Stability:

experimental

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 core

construct_selector = core.ConstructSelector()
Stability:

experimental

Static Methods

classmethod all()

(experimental) Selects all constructs in the tree.

Stability:

experimental

Return type:

IConstructSelector

classmethod by_id(pattern)

(experimental) Selects constructs whose construct IDs match a pattern.

Uses glob like matching.

Parameters:

pattern (str)

Stability:

experimental

Return type:

IConstructSelector

classmethod by_path(pattern)

(experimental) Selects constructs whose construct paths match a pattern.

Uses glob like matching.

Parameters:

pattern (str)

Stability:

experimental

Return type:

IConstructSelector

classmethod cfn_resource()

(experimental) Selects CfnResource constructs or the default CfnResource child.

Stability:

experimental

Return type:

IConstructSelector

classmethod only_itself()

(experimental) Selects only the provided construct.

Stability:

experimental

Return type:

IConstructSelector

classmethod resources_of_type(*types)

(experimental) Selects constructs of a specific type.

Parameters:

types (str)

Stability:

experimental

Return type:

IConstructSelector