Skip to content

ArnComponents

Initializer

import com.aliyun.ros.cdk.core.ArnComponents;
ArnComponents.builder()
    .resource(java.lang.String)
    .service(java.lang.String)
//  .account(java.lang.String)
//  .arnFormat(ArnFormat)
//  .partition(java.lang.String)
//  .region(java.lang.String)
//  .resourceName(java.lang.String)
    .build();

Properties

Name Type Description
resource java.lang.String Resource type (e.g. "instance", "functions", "role"). For some resource types, e.g. OSS buckets, this field defines the bucket name.
service java.lang.String The service namespace that identifies the ACS product (for example, 'ecs', 'fc', 'ram').
account java.lang.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 java.lang.String The partition that the resource is in.
region java.lang.String The region the resource resides in.
resourceName java.lang.String Resource name or path within the resource (i.e. OSS bucket object key) or a wildcard such as "*". This is service-dependent.

resourceRequired

public java.lang.String getResource();
  • Type: java.lang.String

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


serviceRequired

public java.lang.String getService();
  • Type: java.lang.String

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


accountOptional

public java.lang.String getAccount();
  • Type: java.lang.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

public ArnFormat getArnFormat();
  • 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

public java.lang.String getPartition();
  • Type: java.lang.String
  • Default: acs

The partition that the resource is in.


regionOptional

public java.lang.String getRegion();
  • Type: java.lang.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

public java.lang.String getResourceName();
  • Type: java.lang.String

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