Class ArnResource

java.lang.Object
org.apache.hadoop.fs.s3a.ArnResource

public final class ArnResource extends Object
Represents an Arn Resource, this can be an accesspoint or bucket.
  • Method Details

    • getName

      public String getName()
      Resource name.
      Returns:
      resource name.
    • getOwnerAccountId

      public String getOwnerAccountId()
      Return owner's account id.
      Returns:
      owner account id
    • getRegion

      public String getRegion()
      Resource region.
      Returns:
      resource region.
    • getFullArn

      public String getFullArn()
      Full arn for resource.
      Returns:
      arn for resource.
    • getEndpoint

      public String getEndpoint()
      Formatted endpoint for the resource.
      Returns:
      resource endpoint.
    • accessPointFromArn

      @Nonnull public static ArnResource accessPointFromArn(String arn) throws IllegalArgumentException
      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.