Environment
The deployment environment for a stack.
Initializer
using AlibabaCloud.SDK.ROS.CDK.Core;
new Environment {
string Account = null,
string Region = null
};
Properties
| Name | Type | Description |
|---|---|---|
Account |
string |
The ALIYUN account ID for this environment. |
Region |
string |
The ALIYUN region for this environment. |
AccountOptional
public string Account { get; set; }
- Type: string
- Default: ALIYUN.ACCOUNT_ID which means that the stack will be account-agnostic.
The ALIYUN account ID for this environment.
This can be either a concrete value such as 585191031104 or ALIYUN.ACCOUNT_ID which
indicates that account ID will only be determined during deployment (it
will resolve to the ROS intrinsic {"Ref":"ALIYUN::AccountId"}).
Note that certain features, such as cross-stack references and
environmental context providers require concrete region information and
will cause this stack to emit synthesis errors.
RegionOptional
public string Region { get; set; }
- Type: string
- Default: ALIYUN.REGION which means that the stack will be region-agnostic.
The ALIYUN region for this environment.
This can be either a concrete value such as eu-west-2 or ALIYUN.REGION
which indicates that account ID will only be determined during deployment
(it will resolve to the ROS intrinsic {"Ref":"ALIYUN::Region"}).
Note that certain features, such as cross-stack references and
environmental context providers require concrete region information and
will cause this stack to emit synthesis errors.