Skip to content

Commit

Permalink
Merge pull request #5017 from julienduchesne/add-pricing-vendor
Browse files Browse the repository at this point in the history
Add pricing vendor and client
  • Loading branch information
bflad committed Jun 29, 2018
2 parents 0d3e9c7 + cedf1fc commit cf870bf
Show file tree
Hide file tree
Showing 6 changed files with 1,155 additions and 1 deletion.
3 changes: 3 additions & 0 deletions aws/config.go
Original file line number Diff line number Diff line change
Expand Up @@ -75,6 +75,7 @@ import (
"github.com/aws/aws-sdk-go/service/neptune"
"github.com/aws/aws-sdk-go/service/opsworks"
"github.com/aws/aws-sdk-go/service/organizations"
"github.com/aws/aws-sdk-go/service/pricing"
"github.com/aws/aws-sdk-go/service/rds"
"github.com/aws/aws-sdk-go/service/redshift"
"github.com/aws/aws-sdk-go/service/route53"
Expand Down Expand Up @@ -232,6 +233,7 @@ type AWSClient struct {
lexmodelconn *lexmodelbuildingservice.LexModelBuildingService
budgetconn *budgets.Budgets
neptuneconn *neptune.Neptune
pricingconn *pricing.Pricing
}

func (c *AWSClient) S3() *s3.S3 {
Expand Down Expand Up @@ -528,6 +530,7 @@ func (c *Config) Client() (interface{}, error) {
client.mediastoreconn = mediastore.New(sess)
client.appsyncconn = appsync.New(sess)
client.neptuneconn = neptune.New(sess)
client.pricingconn = pricing.New(sess)

// Workaround for https://github.com/aws/aws-sdk-go/issues/1376
client.kinesisconn.Handlers.Retry.PushBack(func(r *request.Request) {
Expand Down
Loading

0 comments on commit cf870bf

Please sign in to comment.