Interface ResourceEnvironment
- All Superinterfaces:
software.amazon.jsii.JsiiSerializable
- All Known Implementing Classes:
ResourceEnvironment.Jsii$Proxy
@Generated(value="jsii-pacmak/1.119.0 (build 1634eac)",
date="2025-11-13T16:10:16.306Z")
@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 IEnvironmentAware.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.interfaces.*;
ResourceEnvironment resourceEnvironment = ResourceEnvironment.builder()
.account("account")
.region("region")
.build();
-
Nested Class Summary
Nested ClassesModifier and TypeInterfaceDescriptionstatic final classA builder forResourceEnvironmentstatic final classAn implementation forResourceEnvironment -
Method Summary
Modifier and TypeMethodDescriptionstatic ResourceEnvironment.Builderbuilder()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::AccountIdintrinsic), make sure to useToken.compareStrings()instead of comparing the values with direct string 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::Regionintrinsic), make sure to useToken.compareStrings()instead of comparing the values with direct string equality. -
builder
- Returns:
- a
ResourceEnvironment.BuilderofResourceEnvironment
-