awsc.arn.ARN
- class awsc.arn.ARN(string)
Represents an Amazon Resource Name.
- Attributes:
- partitionstr
The partition of the ARN.
- servicestr
The AWS service identified by the ARN.
- regionstr
The region of the resource identified by ARN, if applicable.
- account_idstr
The AWS account the resource belongs to, if applicable.
- resource_typestr
The resource type of the resource, if present in the ARN.
- resource_idstr
The ID of the resource identified by the ARN.
- __init__(string)
Initializes an ARN object from an existing ARN string.
- Parameters:
- stringstr
The ARN string to initialize this object from.
Methods
__init__
(string)Initializes an ARN object from an existing ARN string.
Attributes
resource
Returns the resource portion of the ARN.
resource_id_first
Returns the first resource identifier in the ARN.