class ConstructSelector
| Language | Type name |
|---|---|
.NET | Amazon.CDK.Mixins.Preview.core.ConstructSelector |
Go | github.com/aws/aws-cdk-go/awscdkmixinspreview/v2/core#ConstructSelector |
Java | software.amazon.awscdk.mixins.preview.core.ConstructSelector |
Python | aws_cdk.mixins_preview.core.ConstructSelector |
TypeScript (source) | @aws-cdk/mixins-preview ยป core ยป ConstructSelector |
Selects constructs from a construct tree based on various criteria.
Example
// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
import { core } from '@aws-cdk/mixins-preview';
const constructSelector = new core.ConstructSelector();
Initializer
new ConstructSelector()
Methods
| Name | Description |
|---|---|
| static all() | Selects all constructs in the tree. |
| static by | Selects constructs whose construct IDs match a pattern. |
| static by | Selects constructs whose construct paths match a pattern. |
| static cfn | Selects CfnResource constructs or the default CfnResource child. |
| static only | Selects only the provided construct. |
| static resources | Selects constructs of a specific type. |
static all()
public static all(): IConstructSelector
Returns
Selects all constructs in the tree.
static byId(pattern)
public static byId(pattern: string): IConstructSelector
Parameters
- pattern
string
Returns
Selects constructs whose construct IDs match a pattern.
Uses glob like matching.
static byPath(pattern)
public static byPath(pattern: string): IConstructSelector
Parameters
- pattern
string
Returns
Selects constructs whose construct paths match a pattern.
Uses glob like matching.
static cfnResource()
public static cfnResource(): IConstructSelector
Returns
Selects CfnResource constructs or the default CfnResource child.
static onlyItself()
public static onlyItself(): IConstructSelector
Returns
Selects only the provided construct.
static resourcesOfType(...types)
public static resourcesOfType(...types: string[]): IConstructSelector
Parameters
- types
string
Returns
Selects constructs of a specific type.

.NET
Go
Java
Python
TypeScript (