Package software.amazon.awscdk
Class ConstructSelector
java.lang.Object
software.amazon.jsii.JsiiObject
software.amazon.awscdk.ConstructSelector
- All Implemented Interfaces:
software.amazon.jsii.JsiiSerializable
@Generated(value="jsii-pacmak/1.127.0 (build 2117ad5)",
date="2026-03-11T13:19:35.431Z")
@Stability(Stable)
public class ConstructSelector
extends software.amazon.jsii.JsiiObject
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 software.amazon.awscdk.*; ConstructSelector constructSelector = new ConstructSelector();
-
Nested Class Summary
Nested classes/interfaces inherited from class software.amazon.jsii.JsiiObject
software.amazon.jsii.JsiiObject.InitializationMode -
Constructor Summary
ConstructorsModifierConstructorDescriptionprotectedConstructSelector(software.amazon.jsii.JsiiObject.InitializationMode initializationMode) protectedConstructSelector(software.amazon.jsii.JsiiObjectRef objRef) -
Method Summary
Modifier and TypeMethodDescriptionstatic IConstructSelectorall()Selects all constructs in the tree.static IConstructSelectorSelects constructs whose construct IDs match a pattern.static IConstructSelectorSelects constructs whose construct paths match a pattern.static IConstructSelectorSelects CfnResource constructs or the default CfnResource child.static IConstructSelectorSelects only the provided construct.static IConstructSelectorresourcesOfType(String... types) Selects constructs of a specific type.Methods inherited from class software.amazon.jsii.JsiiObject
jsiiAsyncCall, jsiiAsyncCall, jsiiCall, jsiiCall, jsiiGet, jsiiGet, jsiiSet, jsiiStaticCall, jsiiStaticCall, jsiiStaticGet, jsiiStaticGet, jsiiStaticSet, jsiiStaticSetMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface software.amazon.jsii.JsiiSerializable
$jsii$toJson
-
Constructor Details
-
ConstructSelector
protected ConstructSelector(software.amazon.jsii.JsiiObjectRef objRef) -
ConstructSelector
protected ConstructSelector(software.amazon.jsii.JsiiObject.InitializationMode initializationMode) -
ConstructSelector
@Stability(Stable) public ConstructSelector()
-
-
Method Details
-
all
Selects all constructs in the tree. -
byId
Selects constructs whose construct IDs match a pattern.Uses glob like matching.
- Parameters:
pattern- This parameter is required.
-
byPath
Selects constructs whose construct paths match a pattern.Uses glob like matching.
- Parameters:
pattern- This parameter is required.
-
cfnResource
Selects CfnResource constructs or the default CfnResource child. -
onlyItself
Selects only the provided construct. -
resourcesOfType
@Stability(Stable) @NotNull public static IConstructSelector resourcesOfType(@NotNull String... types) Selects constructs of a specific type.- Parameters:
types- This parameter is required.
-