From 3feebb2f4910bc7ca4ec24513aa02f6f87e28763 Mon Sep 17 00:00:00 2001 From: Shuhei Kitagawa Date: Mon, 2 Nov 2020 23:52:53 +0900 Subject: [PATCH] provider: Add CodeStar Connections service client (#15960) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit * Add CodeStar Connections service client Co-authored-by: Kévin Sénéchal * Update .hashibot.hcl Co-authored-by: Kévin Sénéchal Co-authored-by: Brian Flad --- .hashibot.hcl | 8 ++++++++ aws/config.go | 3 +++ aws/provider.go | 1 + website/allowed-subcategories.txt | 1 + website/docs/guides/custom-service-endpoints.html.md | 1 + 5 files changed, 14 insertions(+) diff --git a/.hashibot.hcl b/.hashibot.hcl index e61481f1b12..9f911871fd6 100644 --- a/.hashibot.hcl +++ b/.hashibot.hcl @@ -202,6 +202,9 @@ behavior "regexp_issue_labeler_v2" "service_labels" { "service/codestar" = [ "aws_codestar_", ], + "service/codestarconnections" = [ + "aws_codestarconnections_", + ], "service/codestarnotifications" = [ "aws_codestarnotifications_", ], @@ -818,6 +821,11 @@ behavior "pull_request_path_labeler" "service_labels" { "**/*_codestar_*", "**/codestar_*" ] + "service/codestarconnections" = [ + "aws/internal/service/codestarconnections/**/*", + "**/*_codestarconnections_*", + "**/codestarconnections_*" + ] "service/codestarnotifications" = [ "aws/internal/service/codestarnotifications/**/*", "**/*_codestarnotifications_*", diff --git a/aws/config.go b/aws/config.go index 93e1149a052..793d4a3a28e 100644 --- a/aws/config.go +++ b/aws/config.go @@ -40,6 +40,7 @@ import ( "github.com/aws/aws-sdk-go/service/codecommit" "github.com/aws/aws-sdk-go/service/codedeploy" "github.com/aws/aws-sdk-go/service/codepipeline" + "github.com/aws/aws-sdk-go/service/codestarconnections" "github.com/aws/aws-sdk-go/service/codestarnotifications" "github.com/aws/aws-sdk-go/service/cognitoidentity" "github.com/aws/aws-sdk-go/service/cognitoidentityprovider" @@ -229,6 +230,7 @@ type AWSClient struct { codecommitconn *codecommit.CodeCommit codedeployconn *codedeploy.CodeDeploy codepipelineconn *codepipeline.CodePipeline + codestarconnectionsconn *codestarconnections.CodeStarConnections codestarnotificationsconn *codestarnotifications.CodeStarNotifications cognitoconn *cognitoidentity.CognitoIdentity cognitoidpconn *cognitoidentityprovider.CognitoIdentityProvider @@ -463,6 +465,7 @@ func (c *Config) Client() (interface{}, error) { codecommitconn: codecommit.New(sess.Copy(&aws.Config{Endpoint: aws.String(c.Endpoints["codecommit"])})), codedeployconn: codedeploy.New(sess.Copy(&aws.Config{Endpoint: aws.String(c.Endpoints["codedeploy"])})), codepipelineconn: codepipeline.New(sess.Copy(&aws.Config{Endpoint: aws.String(c.Endpoints["codepipeline"])})), + codestarconnectionsconn: codestarconnections.New(sess.Copy(&aws.Config{Endpoint: aws.String(c.Endpoints["codestarconnections"])})), codestarnotificationsconn: codestarnotifications.New(sess.Copy(&aws.Config{Endpoint: aws.String(c.Endpoints["codestarnotifications"])})), cognitoconn: cognitoidentity.New(sess.Copy(&aws.Config{Endpoint: aws.String(c.Endpoints["cognitoidentity"])})), cognitoidpconn: cognitoidentityprovider.New(sess.Copy(&aws.Config{Endpoint: aws.String(c.Endpoints["cognitoidp"])})), diff --git a/aws/provider.go b/aws/provider.go index 397f25739a4..ce8eb121ed3 100644 --- a/aws/provider.go +++ b/aws/provider.go @@ -1114,6 +1114,7 @@ func init() { "codecommit", "codedeploy", "codepipeline", + "codestarconnections", "cognitoidentity", "cognitoidp", "configservice", diff --git a/website/allowed-subcategories.txt b/website/allowed-subcategories.txt index fc5cdd4bdad..c0634642581 100644 --- a/website/allowed-subcategories.txt +++ b/website/allowed-subcategories.txt @@ -24,6 +24,7 @@ CodeBuild CodeCommit CodeDeploy CodePipeline +CodeStar Connections CodeStar Notifications Cognito Config diff --git a/website/docs/guides/custom-service-endpoints.html.md b/website/docs/guides/custom-service-endpoints.html.md index 2a113a66f80..ef3996b94e8 100644 --- a/website/docs/guides/custom-service-endpoints.html.md +++ b/website/docs/guides/custom-service-endpoints.html.md @@ -84,6 +84,7 @@ The Terraform AWS Provider allows the following endpoints to be customized:
  • codecommit
  • codedeploy
  • codepipeline
  • +
  • codestarconnections
  • codestarnotifications
  • cognitoidentity
  • cognitoidp