Amazon Resource Name (ARN) can be used to uniquely identify a resource across all AWS accounts.

ARN format:

arn:partition:service:region:account-id:resource-id
arn:partition:service:region:account-id:resource-type/resource-id
arn:partition:service:region:account-id:resource-type:resource-id

ARN fields can be omitted, e.g., arn:aws:s3:::catgifs.

Beware

Make sure to differentiate between the container and objects contained within. arn:aws:s3:::catgifs (the bucket) and arn:aws:s3:::catgifs/* (objects in the bucket) refer to different resources.