From ffaf282ebc42c4c01e4d9972a64d275f0cae8cbe Mon Sep 17 00:00:00 2001 From: AWS SDK for Go v2 automation user Date: Wed, 14 Aug 2024 18:22:52 +0000 Subject: [PATCH] Regenerated Clients --- .changelog/844618181fba4b2abf3e506e8b68701a.json | 8 ++++++++ .../attributevalue/go_module_metadata.go | 2 +- .../codebuild/api_op_ImportSourceCredentials.go | 9 +++++---- service/codebuild/types/enums.go | 4 ++++ service/codebuild/types/types.go | 14 ++++---------- 5 files changed, 22 insertions(+), 15 deletions(-) create mode 100644 .changelog/844618181fba4b2abf3e506e8b68701a.json diff --git a/.changelog/844618181fba4b2abf3e506e8b68701a.json b/.changelog/844618181fba4b2abf3e506e8b68701a.json new file mode 100644 index 00000000000..63bd873a167 --- /dev/null +++ b/.changelog/844618181fba4b2abf3e506e8b68701a.json @@ -0,0 +1,8 @@ +{ + "id": "84461818-1fba-4b2a-bf3e-506e8b68701a", + "type": "feature", + "description": "AWS CodeBuild now supports using Secrets Manager to store git credentials and using multiple source credentials in a single project.", + "modules": [ + "service/codebuild" + ] +} \ No newline at end of file diff --git a/feature/dynamodbstreams/attributevalue/go_module_metadata.go b/feature/dynamodbstreams/attributevalue/go_module_metadata.go index ce75a450167..505e79ec5c4 100644 --- a/feature/dynamodbstreams/attributevalue/go_module_metadata.go +++ b/feature/dynamodbstreams/attributevalue/go_module_metadata.go @@ -3,4 +3,4 @@ package attributevalue // goModuleVersion is the tagged release for this module -const goModuleVersion = "1.13.63" +const goModuleVersion = "1.14.10" diff --git a/service/codebuild/api_op_ImportSourceCredentials.go b/service/codebuild/api_op_ImportSourceCredentials.go index d23194f46f6..fd047a1b88a 100644 --- a/service/codebuild/api_op_ImportSourceCredentials.go +++ b/service/codebuild/api_op_ImportSourceCredentials.go @@ -13,7 +13,8 @@ import ( // Imports the source repository credentials for an CodeBuild project that has // -// its source code stored in a GitHub, GitHub Enterprise, or Bitbucket repository. +// its source code stored in a GitHub, GitHub Enterprise, GitLab, GitLab Self +// Managed, or Bitbucket repository. func (c *Client) ImportSourceCredentials(ctx context.Context, params *ImportSourceCredentialsInput, optFns ...func(*Options)) (*ImportSourceCredentialsOutput, error) { if params == nil { params = &ImportSourceCredentialsInput{} @@ -33,8 +34,7 @@ type ImportSourceCredentialsInput struct { // The type of authentication used to connect to a GitHub, GitHub Enterprise, // GitLab, GitLab Self Managed, or Bitbucket repository. An OAUTH connection is not - // supported by the API and must be created using the CodeBuild console. Note that - // CODECONNECTIONS is only valid for GitLab and GitLab Self Managed. + // supported by the API and must be created using the CodeBuild console. // // This member is required. AuthType types.AuthType @@ -46,7 +46,8 @@ type ImportSourceCredentialsInput struct { // For GitHub or GitHub Enterprise, this is the personal access token. For // Bitbucket, this is either the access token or the app password. For the authType - // CODECONNECTIONS, this is the connectionArn . + // CODECONNECTIONS, this is the connectionArn . For the authType SECRETS_MANAGER, + // this is the secretArn . // // This member is required. Token *string diff --git a/service/codebuild/types/enums.go b/service/codebuild/types/enums.go index d09b9d2d2d5..c00d594b99e 100644 --- a/service/codebuild/types/enums.go +++ b/service/codebuild/types/enums.go @@ -69,6 +69,7 @@ const ( AuthTypeBasicAuth AuthType = "BASIC_AUTH" AuthTypePersonalAccessToken AuthType = "PERSONAL_ACCESS_TOKEN" AuthTypeCodeconnections AuthType = "CODECONNECTIONS" + AuthTypeSecretsManager AuthType = "SECRETS_MANAGER" ) // Values returns all known values for AuthType. Note that this can be expanded in @@ -81,6 +82,7 @@ func (AuthType) Values() []AuthType { "BASIC_AUTH", "PERSONAL_ACCESS_TOKEN", "CODECONNECTIONS", + "SECRETS_MANAGER", } } @@ -876,6 +878,7 @@ type SourceAuthType string const ( SourceAuthTypeOauth SourceAuthType = "OAUTH" SourceAuthTypeCodeconnections SourceAuthType = "CODECONNECTIONS" + SourceAuthTypeSecretsManager SourceAuthType = "SECRETS_MANAGER" ) // Values returns all known values for SourceAuthType. Note that this can be @@ -886,6 +889,7 @@ func (SourceAuthType) Values() []SourceAuthType { return []SourceAuthType{ "OAUTH", "CODECONNECTIONS", + "SECRETS_MANAGER", } } diff --git a/service/codebuild/types/types.go b/service/codebuild/types/types.go index 4e77b81444f..2b997a079fa 100644 --- a/service/codebuild/types/types.go +++ b/service/codebuild/types/types.go @@ -1822,9 +1822,6 @@ type ProjectSource struct { // Information about the authorization settings for CodeBuild to access the source // code to be built. - // - // This information is for the CodeBuild console's use only. Your code should not - // get or set this information directly. Auth *SourceAuth // Contains information that defines how the build project reports the build @@ -2328,12 +2325,10 @@ type ScopeConfiguration struct { // Information about the authorization settings for CodeBuild to access the source // code to be built. -// -// This information is for the CodeBuild console's use only. Your code should not -// get or set this information directly. type SourceAuth struct { - // The authorization type to use. Valid options are OAUTH or CODECONNECTIONS. + // The authorization type to use. Valid options are OAUTH, CODECONNECTIONS, or + // SECRETS_MANAGER. // // This member is required. Type SourceAuthType @@ -2353,11 +2348,10 @@ type SourceCredentialsInfo struct { Arn *string // The type of authentication used by the credentials. Valid options are OAUTH, - // BASIC_AUTH, PERSONAL_ACCESS_TOKEN, or CODECONNECTIONS. + // BASIC_AUTH, PERSONAL_ACCESS_TOKEN, CODECONNECTIONS, or SECRETS_MANAGER. AuthType AuthType - // The connection ARN if your serverType type is GITLAB or GITLAB_SELF_MANAGED and - // your authType is CODECONNECTIONS. + // The connection ARN if your authType is CODECONNECTIONS or SECRETS_MANAGER. Resource *string // The type of source provider. The valid options are GITHUB, GITHUB_ENTERPRISE,