ConstructSelector

class aws_cdk.ConstructSelector

Bases: object

Selects constructs from a construct tree based on various criteria.

ExampleMetadata:

fixture=_generated

Example:

# The code below shows an example of how to instantiate this type.
# The values are placeholders you should change.
import aws_cdk as cdk

construct_selector = cdk.ConstructSelector()

Static Methods

classmethod all()

Selects all constructs in the tree.

Return type:

IConstructSelector

classmethod by_id(pattern)

Selects constructs whose construct IDs match a pattern.

Uses glob like matching.

Parameters:

pattern (str)

Return type:

IConstructSelector

classmethod by_path(pattern)

Selects constructs whose construct paths match a pattern.

Uses glob like matching.

Parameters:

pattern (str)

Return type:

IConstructSelector

classmethod cfn_resource()

Selects CfnResource constructs or the default CfnResource child.

Return type:

IConstructSelector

classmethod only_itself()

Selects only the provided construct.

Return type:

IConstructSelector

classmethod resources_of_type(*types)

Selects constructs of a specific type.

Parameters:

types (str)

Return type:

IConstructSelector