Interface IEnvironmentAware.Jsii$Default

All Superinterfaces:
IEnvironmentAware, software.amazon.jsii.JsiiSerializable
All Known Implementing Classes:
IEnvironmentAware.Jsii$Proxy
Enclosing interface:
IEnvironmentAware

@Internal public static interface IEnvironmentAware.Jsii$Default extends IEnvironmentAware
Internal default implementation for IEnvironmentAware.
  • Method Details

    • getEnv

      @Stability(Stable) @NotNull default 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.

      Specified by:
      getEnv in interface IEnvironmentAware