@Generated(value="jsii-pacmak/1.38.0 (build 717bef2)", date="2021-10-08T18:43:51.888Z") @Stability(value=Stable) public interface IResource extends software.amazon.jsii.JsiiSerializable, IConstruct
Modifier and Type | Interface and Description |
---|---|
static interface |
IResource.Jsii$Default
Internal default implementation for
IResource . |
static class |
IResource.Jsii$Proxy
A proxy class which represents a concrete javascript instance of this type.
|
Modifier and Type | Method and Description |
---|---|
ResourceEnvironment |
getEnv()
The environment this resource belongs to.
|
Stack |
getStack()
The stack in which this resource is defined.
|
getNode
@Stability(value=Stable) @NotNull ResourceEnvironment getEnv()
For resources that are created and managed by the CDK (generally, those created by creating new class instances like Role, Bucket, etc.), this is always the same as the environment of the stack they belong to; however, for imported resources (those obtained from static methods like fromRoleArn, fromBucketName, etc.), that might be different than the stack they were imported into.
@Stability(value=Stable) @NotNull Stack getStack()
Copyright © 2021. All rights reserved.