ConstructSelector
- class aws_cdk.ConstructSelector
Bases:
objectSelects 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:
- classmethod by_id(pattern)
Selects constructs whose construct IDs match a pattern.
Uses glob like matching.
- Parameters:
pattern (
str)- Return type:
- classmethod by_path(pattern)
Selects constructs whose construct paths match a pattern.
Uses glob like matching.
- Parameters:
pattern (
str)- Return type:
- classmethod cfn_resource()
Selects CfnResource constructs or the default CfnResource child.
- Return type:
- classmethod only_itself()
Selects only the provided construct.
- Return type:
- classmethod resources_of_type(*types)
Selects constructs of a specific type.
- Parameters:
types (
str)- Return type: