Class ResourceEnvironment
Represents the environment a given resource lives in.
Inheritance
Implements
Namespace: Amazon.CDK
Assembly: Amazon.CDK.dll
Syntax (csharp)
public class ResourceEnvironment : Object, IResourceEnvironment
Syntax (vb)
Public Class ResourceEnvironment
Inherits Object
Implements 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
Constructors
ResourceEnvironment() |
Properties
Account | The AWS account ID that this resource belongs to. |
Region | The AWS region that this resource belongs to. |
Constructors
ResourceEnvironment()
public ResourceEnvironment()
Properties
Account
The AWS account ID that this resource belongs to.
public string Account { get; set; }
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.
public string Region { get; set; }
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.