ResourceEnvironment¶
-
class
aws_cdk.core.
ResourceEnvironment
(*, account, region)¶ Bases:
object
Represents the environment a given resource lives in.
Used as the return value for the {@link IResource.env} property.
- Parameters
account (
str
) – 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.region (
str
) – 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.
Attributes
-
account
¶ 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.
- Return type
str
-
region
¶ 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.
- Return type
str