ArnComponents
Initializer
using AlibabaCloud.SDK.ROS.CDK.Core;
new ArnComponents {
string Resource,
string Service,
string Account = null,
ArnFormat ArnFormat = null,
string Partition = null,
string Region = null,
string ResourceName = null
};
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
public string Resource { get; set; }
- Type: string
Resource type (e.g. "instance", "functions", "role"). For some resource types, e.g. OSS buckets, this field defines the bucket name.
ServiceRequired
public string Service { get; set; }
- Type: string
The service namespace that identifies the ACS product (for example, 'ecs', 'fc', 'ram').
AccountOptional
public string Account { get; set; }
- 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
public ArnFormat ArnFormat { get; set; }
- Type: ArnFormat
- Default: uses value of
sepas the separator for formatting,ArnFormat.SLASH_RESOURCE_NAMEif that property was also not provided
The specific ARN format to use for this ARN value.
PartitionOptional
public string Partition { get; set; }
- Type: string
- Default: acs
The partition that the resource is in.
RegionOptional
public string Region { get; set; }
- 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
public string ResourceName { get; set; }
- Type: string
Resource name or path within the resource (i.e. OSS bucket object key) or a wildcard such as "*". This is service-dependent.