Skip to content

Commit

Permalink
Add AWS Amplify service client.
Browse files Browse the repository at this point in the history
  • Loading branch information
ewbankkit committed Aug 25, 2019
1 parent 3f4ae7f commit 4747c78
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 @@ -167,6 +168,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 @@ -351,6 +353,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 @@ -896,6 +896,7 @@ func init() {
endpointServiceNames = []string{
"acm",
"acmpca",
"amplify",
"apigateway",
"applicationautoscaling",
"applicationinsights",
Expand Down
Loading

0 comments on commit 4747c78

Please sign in to comment.