Skip to content

Commit

Permalink
Merge pull request #9874 from ewbankkit/add-amplify-service-client
Browse files Browse the repository at this point in the history
Add AWS Amplify service client
  • Loading branch information
bflad authored Aug 30, 2019
2 parents 6e6386d + 4747c78 commit e7ccf1c
Show file tree
Hide file tree
Showing 8 changed files with 7,509 additions and 0 deletions.
3 changes: 3 additions & 0 deletions aws/config.go
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,7 @@ import (
"github.com/aws/aws-sdk-go/aws/request"
"github.com/aws/aws-sdk-go/service/acm"
"github.com/aws/aws-sdk-go/service/acmpca"
"github.com/aws/aws-sdk-go/service/amplify"
"github.com/aws/aws-sdk-go/service/apigateway"
"github.com/aws/aws-sdk-go/service/apigatewayv2"
"github.com/aws/aws-sdk-go/service/applicationautoscaling"
Expand Down Expand Up @@ -168,6 +169,7 @@ type AWSClient struct {
accountid string
acmconn *acm.ACM
acmpcaconn *acmpca.ACMPCA
amplifyconn *amplify.Amplify
apigateway *apigateway.APIGateway
apigatewayv2conn *apigatewayv2.ApiGatewayV2
appautoscalingconn *applicationautoscaling.ApplicationAutoScaling
Expand Down Expand Up @@ -353,6 +355,7 @@ func (c *Config) Client() (interface{}, error) {
accountid: accountID,
acmconn: acm.New(sess.Copy(&aws.Config{Endpoint: aws.String(c.Endpoints["acm"])})),
acmpcaconn: acmpca.New(sess.Copy(&aws.Config{Endpoint: aws.String(c.Endpoints["acmpca"])})),
amplifyconn: amplify.New(sess.Copy(&aws.Config{Endpoint: aws.String(c.Endpoints["amplify"])})),
apigateway: apigateway.New(sess.Copy(&aws.Config{Endpoint: aws.String(c.Endpoints["apigateway"])})),
apigatewayv2conn: apigatewayv2.New(sess.Copy(&aws.Config{Endpoint: aws.String(c.Endpoints["apigateway"])})),
appautoscalingconn: applicationautoscaling.New(sess.Copy(&aws.Config{Endpoint: aws.String(c.Endpoints["applicationautoscaling"])})),
Expand Down
1 change: 1 addition & 0 deletions aws/provider.go
Original file line number Diff line number Diff line change
Expand Up @@ -897,6 +897,7 @@ func init() {
endpointServiceNames = []string{
"acm",
"acmpca",
"amplify",
"apigateway",
"applicationautoscaling",
"applicationinsights",
Expand Down
Loading

0 comments on commit e7ccf1c

Please sign in to comment.