Skip to content

ResourceProps

Construction properties for {@link Resource}.

Initializer

using AlibabaCloud.SDK.ROS.CDK.Core;
new ResourceProps {
    string Account = null,
    object EnvironmentFromArn = null,
    string PhysicalName = null,
    string Region = null
};

Properties

Name Type Description
Account string The Alibaba Cloud account ID this resource belongs to.
EnvironmentFromArn object ARN to deduce region and account from.
PhysicalName string The value passed in by users to the physical name prop of the resource.
Region string The Alibaba Cloud region this resource belongs to.

AccountOptional

public string Account { get; set; }
  • Type: 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 object EnvironmentFromArn { get; set; }
  • Type: object
  • Default: take environment from account, region parameters, 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 string PhysicalName { get; set; }
  • Type: 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.

  • undefined implies that a physical name will be allocated during deployment.
  • a concrete value implies a specific physical name
  • PhysicalName.GENERATE_IF_NEEDED is 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 string Region { get; set; }
  • Type: string
  • Default: the resource is in the same region as the stack it belongs to

The Alibaba Cloud region this resource belongs to.