Skip to content

ArnComponents

Initializer

import "github.com/alibabacloud-go/ros-cdk/alicloudroscdkcore"
&alicloudroscdkcore.ArnComponents {
    Resource: *string,
    Service: *string,
    Account: *string,
    ArnFormat: github.com/alibabacloud-go/ros-cdk/alicloudroscdkcore.ArnFormat,
    Partition: *string,
    Region: *string,
    ResourceName: *string,
}

Properties

Name Type Description
Resource *string Resource type (e.g. "instance", "functions", "role"). For some resource types, e.g. OSS buckets, this field defines the bucket name.
Service *string The service namespace that identifies the ACS product (for example, 'ecs', 'fc', 'ram').
Account *string The ID of the ACS account that owns the resource, without the hyphens.
ArnFormat ArnFormat The specific ARN format to use for this ARN value.
Partition *string The partition that the resource is in.
Region *string The region the resource resides in.
ResourceName *string Resource name or path within the resource (i.e. OSS bucket object key) or a wildcard such as "*". This is service-dependent.

ResourceRequired

Resource *string
  • Type: *string

Resource type (e.g. "instance", "functions", "role"). For some resource types, e.g. OSS buckets, this field defines the bucket name.


ServiceRequired

Service *string
  • Type: *string

The service namespace that identifies the ACS product (for example, 'ecs', 'fc', 'ram').


AccountOptional

Account *string
  • Type: *string
  • Default: The account the stack is deployed to.

The ID of the ACS account that owns the resource, without the hyphens.

For example, 123456789012. Note that the ARNs for some resources don't require an account number, so this component might be omitted.


ArnFormatOptional

ArnFormat ArnFormat
  • Type: ArnFormat
  • Default: uses value of sep as the separator for formatting, ArnFormat.SLASH_RESOURCE_NAME if that property was also not provided

The specific ARN format to use for this ARN value.


PartitionOptional

Partition *string
  • Type: *string
  • Default: acs

The partition that the resource is in.


RegionOptional

Region *string
  • Type: *string
  • Default: The region the stack is deployed to.

The region the resource resides in.

Note that the ARNs for some resources do not require a region, so this component might be omitted.


ResourceNameOptional

ResourceName *string
  • Type: *string

Resource name or path within the resource (i.e. OSS bucket object key) or a wildcard such as "*". This is service-dependent.