Skip to content

Commit

Permalink
dependencies: Add the AWS ARN package
Browse files Browse the repository at this point in the history
We can now turn this:

```
arn := fmt.Sprintf("arn:%s:rds:%s:%s:cluster:%s", partition, region, accountid, identifier)
```

into a much nicer way to represent it:

```
arn := arn2.ARN{
	Partition: partition,
	Region:    region,
	Service:   "rds",
	AccountID: accountid,
	Resource:  fmt.Sprintf("cluster/%s", identifier),
}
```
  • Loading branch information
stack72 committed Aug 21, 2017
1 parent f35367e commit 2fe9f64
Show file tree
Hide file tree
Showing 2 changed files with 94 additions and 0 deletions.
86 changes: 86 additions & 0 deletions vendor/github.com/aws/aws-sdk-go/aws/arn/arn.go

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

8 changes: 8 additions & 0 deletions vendor/vendor.json
Original file line number Diff line number Diff line change
Expand Up @@ -52,6 +52,14 @@
"version": "v1.10.28",
"versionExact": "v1.10.28"
},
{
"checksumSHA1": "DtuTqKH29YnLjrIJkRYX0HQtXY0=",
"path": "github.com/aws/aws-sdk-go/aws/arn",
"revision": "3546c9128687af50e4bcedac5b1ffdd593db0c83",
"revisionTime": "2017-08-18T18:08:53Z",
"version": "v1.10.28",
"versionExact": "v1.10.28"
},
{
"checksumSHA1": "Y9W+4GimK4Fuxq+vyIskVYFRnX4=",
"path": "github.com/aws/aws-sdk-go/aws/awserr",
Expand Down

0 comments on commit 2fe9f64

Please sign in to comment.