Package software.amazon.awscdk
Interface IEnvironmentAware.Jsii$Default
- All Superinterfaces:
IEnvironmentAware,software.amazon.jsii.JsiiSerializable
- All Known Implementing Classes:
IEnvironmentAware.Jsii$Proxy
- Enclosing interface:
IEnvironmentAware
Internal default implementation for
IEnvironmentAware.-
Nested Class Summary
Nested classes/interfaces inherited from interface software.amazon.awscdk.IEnvironmentAware
IEnvironmentAware.Jsii$Default, IEnvironmentAware.Jsii$Proxy -
Method Summary
Modifier and TypeMethodDescriptiondefault ResourceEnvironmentgetEnv()The environment this resource belongs to.Methods inherited from interface software.amazon.jsii.JsiiSerializable
$jsii$toJson
-
Method Details
-
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:
getEnvin interfaceIEnvironmentAware
-