Package software.amazon.awscdk
Interface ResourceEnvironment
- All Superinterfaces:
software.amazon.jsii.JsiiSerializable
- All Known Implementing Classes:
ResourceEnvironment.Jsii$Proxy
@Generated(value="jsii-pacmak/1.102.0 (build e354887)",
date="2024-08-23T05:56:10.126Z")
@Stability(Stable)
public interface ResourceEnvironment
extends software.amazon.jsii.JsiiSerializable
Represents the environment a given resource lives in.
Used as the return value for the IResource.env
property.
Example:
// The code below shows an example of how to instantiate this type. // The values are placeholders you should change. import software.amazon.awscdk.*; ResourceEnvironment resourceEnvironment = ResourceEnvironment.builder() .account("account") .region("region") .build();
-
Nested Class Summary
Nested ClassesModifier and TypeInterfaceDescriptionstatic final class
A builder forResourceEnvironment
static final class
An implementation forResourceEnvironment
-
Method Summary
Modifier and TypeMethodDescriptionstatic ResourceEnvironment.Builder
builder()
The AWS account ID that this resource belongs to.The AWS region that this resource belongs to.Methods inherited from interface software.amazon.jsii.JsiiSerializable
$jsii$toJson
-
Method Details
-
getAccount
The AWS account ID that this resource belongs to.Since this can be a Token (for example, when the account is CloudFormation's AWS::AccountId intrinsic), make sure to use Token.compareStrings() instead of just comparing the values for equality.
-
getRegion
The AWS region that this resource belongs to.Since this can be a Token (for example, when the region is CloudFormation's AWS::Region intrinsic), make sure to use Token.compareStrings() instead of just comparing the values for equality.
-
builder
- Returns:
- a
ResourceEnvironment.Builder
ofResourceEnvironment
-