Interface IResourceEnvironment
Represents the environment a given resource lives in.
Namespace: Amazon.CDK
Assembly: Amazon.CDK.dll
Syntax (csharp)
public interface IResourceEnvironment
Syntax (vb)
Public Interface IResourceEnvironment
Remarks
Used as the return value for the {@link IResource.env} property.
ExampleMetadata: fixture=_generated
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"
};
Synopsis
Properties
Account | The AWS account ID that this resource belongs to. |
Region | The AWS region that this resource belongs to. |
Properties
Account
The AWS account ID that this resource belongs to.
string Account { get; }
Property Value
System.String
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.
string Region { get; }
Property Value
System.String
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.