Package org.apache.hadoop.fs.s3a
Class ArnResource
java.lang.Object
org.apache.hadoop.fs.s3a.ArnResource
Represents an Arn Resource, this can be an accesspoint or bucket.
-
Method Summary
Modifier and TypeMethodDescriptionstatic ArnResourceaccessPointFromArn(String arn) Parses the passed `arn` string into a full ArnResource.Formatted endpoint for the resource.Full arn for resource.getName()Resource name.Return owner's account id.Resource region.
-
Method Details
-
getName
Resource name.- Returns:
- resource name.
-
getOwnerAccountId
Return owner's account id.- Returns:
- owner account id
-
getRegion
Resource region.- Returns:
- resource region.
-
getFullArn
Full arn for resource.- Returns:
- arn for resource.
-
getEndpoint
Formatted endpoint for the resource.- Returns:
- resource endpoint.
-
accessPointFromArn
Parses the passed `arn` string into a full ArnResource.- Parameters:
arn- - string representing an Arn resource.- Returns:
- new ArnResource instance.
- Throws:
IllegalArgumentException- - if the Arn is malformed or any of the region, accountId and resource name properties are empty.
-