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

    Constructors
    Modifier
    Constructor
    Description
     
     
    protected
    ConstructSelector(software.amazon.jsii.JsiiObject.InitializationMode initializationMode)
     
    protected
    ConstructSelector(software.amazon.jsii.JsiiObjectRef objRef)
     
  • Method Summary

    Modifier and Type
    Method
    Description
    all()
    Selects all constructs in the tree.
    byId(String pattern)
    Selects constructs whose construct IDs match a pattern.
    byPath(String pattern)
    Selects constructs whose construct paths match a pattern.
    Selects CfnResource constructs or the default CfnResource child.
    Selects only the provided construct.
    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, jsiiStaticSet

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait

    Methods 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

      @Stability(Stable) @NotNull public static IConstructSelector all()
      Selects all constructs in the tree.
    • byId

      @Stability(Stable) @NotNull public static IConstructSelector byId(@NotNull String pattern)
      Selects constructs whose construct IDs match a pattern.

      Uses glob like matching.

      Parameters:
      pattern - This parameter is required.
    • byPath

      @Stability(Stable) @NotNull public static IConstructSelector byPath(@NotNull String pattern)
      Selects constructs whose construct paths match a pattern.

      Uses glob like matching.

      Parameters:
      pattern - This parameter is required.
    • cfnResource

      @Stability(Stable) @NotNull public static IConstructSelector cfnResource()
      Selects CfnResource constructs or the default CfnResource child.
    • onlyItself

      @Stability(Stable) @NotNull public static IConstructSelector 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.