ResourceProps
Construction properties for {@link Resource}.
Initializer
import com.aliyun.ros.cdk.core.ResourceProps;
ResourceProps.builder()
// .account(java.lang.String)
// .environmentFromArn(java.lang.String)
// .environmentFromArn(IResolvable)
// .physicalName(java.lang.String)
// .region(java.lang.String)
.build();
Properties
| Name | Type | Description |
|---|---|---|
account | java.lang.String | The Alibaba Cloud account ID this resource belongs to. |
environmentFromArn | java.lang.String OR IResolvable | ARN to deduce region and account from. |
physicalName | java.lang.String | The value passed in by users to the physical name prop of the resource. |
region | java.lang.String | The Alibaba Cloud region this resource belongs to. |
accountOptional
public java.lang.String getAccount();
- Type: java.lang.String
- Default: the resource is in the same account as the stack it belongs to
The Alibaba Cloud account ID this resource belongs to.
environmentFromArnOptional
public java.lang.Object getEnvironmentFromArn();
- Type: java.lang.String OR 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.
physicalNameOptional
public java.lang.String getPhysicalName();
- Type: java.lang.String
- 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
public java.lang.String getRegion();
- Type: java.lang.String
- Default: the resource is in the same region as the stack it belongs to
The Alibaba Cloud region this resource belongs to.