Class ResourceEnvironment
Represents the environment a given resource lives in.
public class ResourceEnvironment : IResourceEnvironment
- Inheritance
-
ResourceEnvironment
- Implements
- Inherited Members
Examples
// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
using Amazon.CDK;
var resourceEnvironment = new ResourceEnvironment {
Account = "account",
Region = "region"
};
Remarks
Used as the return value for the {@link IResource.env} property.
ExampleMetadata: fixture=_generated
Constructors
ResourceEnvironment()
public ResourceEnvironment()
Properties
Account
The AWS account ID that this resource belongs to.
public string Account { get; set; }
Property Value
Remarks
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
The AWS region that this resource belongs to.
public string Region { get; set; }
Property Value
Remarks
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.