AWS SDK for Go (PILOT)
API Reference

PREVIEW DOCUMENTATION - This is a preview of a new format for the AWS SDK for Go API Reference documentation. For the current AWS SDK for Go API Reference, see https://docs.aws.amazon.com/sdk-for-go/api/.

We welcome your feedback on this new version of the documentation. Send your comments to aws-sdkdocs-feedback@amazon.com.

Parse

import "github.com/aws/aws-sdk-go/aws/arn"

func Parse(arn string) (ARN, error)

Parse parses an ARN into its constituent parts.

Some example ARNs: arn:aws:elasticbeanstalk:us-east-1:123456789012:environment/My App/MyEnvironment arn:aws:iam::123456789012:user/David arn:aws:rds:eu-west-1:123456789012:db:mysql-db arn:aws:s3:::my_corporate_bucket/exampleobject.png

arn

Type: string

ARN

Type: type ARN struct { Partition string Service string Region string AccountID string Resource string }

ARN captures the individual fields of an Amazon Resource Name. See https://docs.aws.amazon.com/general/latest/gr/aws-arns-and-namespaces.html for more information.

error

Type: error

On this page: