# IConstructSelector

Selects constructs from a construct tree.

Obtainable from: [ConstructSelector.all](https://docs.aws.amazon.com/cdk/api/v2/docs/aws-cdk-lib.ConstructSelector.html#all), [ConstructSelector.byId](https://docs.aws.amazon.com/cdk/api/v2/docs/aws-cdk-lib.ConstructSelector.html#byid), [ConstructSelector.byPath](https://docs.aws.amazon.com/cdk/api/v2/docs/aws-cdk-lib.ConstructSelector.html#bypath), [ConstructSelector.cfnResource](https://docs.aws.amazon.com/cdk/api/v2/docs/aws-cdk-lib.ConstructSelector.html#cfnresource), [ConstructSelector.onlyItself](https://docs.aws.amazon.com/cdk/api/v2/docs/aws-cdk-lib.ConstructSelector.html#onlyitself), [ConstructSelector.resourcesOfType](https://docs.aws.amazon.com/cdk/api/v2/docs/aws-cdk-lib.ConstructSelector.html#resourcesoftype)
Used as argument in: [MixinApplicator (initializer)](https://docs.aws.amazon.com/cdk/api/v2/docs/aws-cdk-lib.MixinApplicator.html#initializer), [Mixins.of](https://docs.aws.amazon.com/cdk/api/v2/docs/aws-cdk-lib.Mixins.html#of)

- Source: [`core/lib/mixins/selectors.ts`](https://github.com/aws/aws-cdk/blob/v2.278.0/packages/aws-cdk-lib/core/lib/mixins/selectors.ts#L7)
- Type last changed: v2.241.0 · 2 Mar 2026

## Methods

- `select(scope: IConstruct): IConstruct[]` — Selects constructs from the given scope based on the selector's criteria.
