ResourceProps
Construction properties for {@link Resource}.
Initializer
import ros_cdk_core
ros_cdk_core.ResourceProps(
account: str = None,
environment_from_arn: typing.Union[str, IResolvable] = None,
physical_name: str = None,
region: str = None
)
Properties
| Name | Type | Description |
|---|---|---|
account | str | The Alibaba Cloud account ID this resource belongs to. |
environment_from_arn | typing.Union[str, IResolvable] | ARN to deduce region and account from. |
physical_name | str | The value passed in by users to the physical name prop of the resource. |
region | str | The Alibaba Cloud region this resource belongs to. |
accountOptional
account: str
- Type: str
- Default: the resource is in the same account as the stack it belongs to
The Alibaba Cloud account ID this resource belongs to.
environment_from_arnOptional
environment_from_arn: typing.Union[str, IResolvable]
- Type: typing.Union[str, IResolvable]
- Default: take environment from
account,regionparameters, or use Stack environment.
ARN to deduce region and account from.
The ARN is parsed and the account and region are taken from the ARN. This should be used for imported resources.
Cannot be supplied together with either account or region.
physical_nameOptional
physical_name: str
- Type: str
- Default: The physical name will be allocated at deployment time
The value passed in by users to the physical name prop of the resource.
undefinedimplies that a physical name will be allocated during deployment.- a concrete value implies a specific physical name
PhysicalName.GENERATE_IF_NEEDEDis a marker that indicates that a physical will only be generated by the CDK if it is needed for cross-environment references. Otherwise, it will be allocated.
regionOptional
region: str
- Type: str
- Default: the resource is in the same region as the stack it belongs to
The Alibaba Cloud region this resource belongs to.