Interface IEnvironmentAware

All Superinterfaces:
software.amazon.jsii.JsiiSerializable
All Known Subinterfaces:
IEnvironmentAware.Jsii$Default
All Known Implementing Classes:
IEnvironmentAware.Jsii$Proxy

@Generated(value="jsii-pacmak/1.119.0 (build 1634eac)", date="2025-12-01T16:02:12.818Z") @Stability(Stable) public interface IEnvironmentAware extends software.amazon.jsii.JsiiSerializable
Used to indicate that a particular construct has an resource environment.
  • Nested Class Summary

    Nested Classes
    Modifier and Type
    Interface
    Description
    static interface 
    Internal default implementation for IEnvironmentAware.
    static final class 
    A proxy class which represents a concrete javascript instance of this type.
  • Method Summary

    Modifier and Type
    Method
    Description
    The environment this resource belongs to.

    Methods inherited from interface software.amazon.jsii.JsiiSerializable

    $jsii$toJson
  • Method Details

    • getEnv

      @Stability(Stable) @NotNull ResourceEnvironment getEnv()
      The environment this resource belongs to.

      For resources that are created and managed in a Stack (those created by creating new class instances like new Role(), new Bucket(), etc.), this is always the same as the environment of the stack they belong to.

      For referenced resources (those obtained from referencing methods like Role.fromRoleArn(), Bucket.fromBucketName(), etc.), they might be different than the stack they were imported into.