Package: arn
Overview
Package arn provides a parser for interacting with Amazon Resource Names.
Type Summary collapse
-
ARN
struct
ARN captures the individual fields of an Amazon Resource Name.
Function Summary collapse
-
func IsARN(arn string) bool
IsARN returns whether the given string is an ARN by looking for whether the string starts with “arn:” and contains the correct number of sections delimited by colons(:).
-
func Parse(arn string) (ARN, error)
Parse parses an ARN into its constituent parts.
Type Details
ARN struct
ARN captures the individual fields of an Amazon Resource Name. See docs.aws.amazon.com/general/latest/gr/aws-arns-and-namespaces.html for more information.
Function Details
func IsARN(arn string) bool
IsARN returns whether the given string is an ARN by looking for whether the string starts with “arn:” and contains the correct number of sections delimited by colons(:).
80 81 82 |
// File 'aws/arn/arn.go', line 80
|
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
60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 |
// File 'aws/arn/arn.go', line 60
|