class Aws::ARN

Create and provide access to components of Amazon Resource Names (ARN).

You can create an ARN and access it’s components like the following:

arn = Aws::ARN.new(
  partition: 'aws',
  service: 's3',
  region: 'us-west-2',
  account_id: '12345678910',
  resource: 'foo/bar'
)
# => #<Aws::ARN ...>

arn.to_s
# => "arn:aws:s3:us-west-2:12345678910:foo/bar"

arn.partition
# => 'aws'
arn.service
# => 's3'
arn.resource
# => foo/bar

@see ARNParser @see docs.aws.amazon.com/general/latest/gr/aws-arns-and-namespaces.html#genref-arns