From 9e44d9f430fbe1f28ca655124e55851bb1292331 Mon Sep 17 00:00:00 2001 From: awstools Date: Wed, 14 Aug 2024 18:11:48 +0000 Subject: [PATCH] feat(client-codebuild): AWS CodeBuild now supports using Secrets Manager to store git credentials and using multiple source credentials in a single project. --- .../commands/BatchGetBuildBatchesCommand.ts | 4 +-- .../src/commands/BatchGetBuildsCommand.ts | 4 +-- .../src/commands/BatchGetProjectsCommand.ts | 4 +-- .../src/commands/CreateProjectCommand.ts | 8 +++--- .../ImportSourceCredentialsCommand.ts | 4 +-- .../commands/ListSourceCredentialsCommand.ts | 2 +- .../src/commands/RetryBuildBatchCommand.ts | 4 +-- .../src/commands/RetryBuildCommand.ts | 4 +-- .../src/commands/StartBuildBatchCommand.ts | 8 +++--- .../src/commands/StartBuildCommand.ts | 8 +++--- .../src/commands/StopBuildBatchCommand.ts | 4 +-- .../src/commands/StopBuildCommand.ts | 4 +-- .../src/commands/UpdateProjectCommand.ts | 8 +++--- .../client-codebuild/src/models/models_0.ts | 17 +++++------ codegen/sdk-codegen/aws-models/codebuild.json | 28 +++++++++++++------ 15 files changed, 60 insertions(+), 51 deletions(-) diff --git a/clients/client-codebuild/src/commands/BatchGetBuildBatchesCommand.ts b/clients/client-codebuild/src/commands/BatchGetBuildBatchesCommand.ts index f806aa540f1e..b66c866340a8 100644 --- a/clients/client-codebuild/src/commands/BatchGetBuildBatchesCommand.ts +++ b/clients/client-codebuild/src/commands/BatchGetBuildBatchesCommand.ts @@ -78,7 +78,7 @@ export interface BatchGetBuildBatchesCommandOutput extends BatchGetBuildBatchesO * // }, * // buildspec: "STRING_VALUE", * // auth: { // SourceAuth - * // type: "OAUTH" || "CODECONNECTIONS", // required + * // type: "OAUTH" || "CODECONNECTIONS" || "SECRETS_MANAGER", // required * // resource: "STRING_VALUE", * // }, * // reportBuildStatus: true || false, @@ -99,7 +99,7 @@ export interface BatchGetBuildBatchesCommandOutput extends BatchGetBuildBatchesO * // }, * // buildspec: "STRING_VALUE", * // auth: { - * // type: "OAUTH" || "CODECONNECTIONS", // required + * // type: "OAUTH" || "CODECONNECTIONS" || "SECRETS_MANAGER", // required * // resource: "STRING_VALUE", * // }, * // reportBuildStatus: true || false, diff --git a/clients/client-codebuild/src/commands/BatchGetBuildsCommand.ts b/clients/client-codebuild/src/commands/BatchGetBuildsCommand.ts index f15f5dfeb892..da2f96a9c988 100644 --- a/clients/client-codebuild/src/commands/BatchGetBuildsCommand.ts +++ b/clients/client-codebuild/src/commands/BatchGetBuildsCommand.ts @@ -79,7 +79,7 @@ export interface BatchGetBuildsCommandOutput extends BatchGetBuildsOutput, __Met * // }, * // buildspec: "STRING_VALUE", * // auth: { // SourceAuth - * // type: "OAUTH" || "CODECONNECTIONS", // required + * // type: "OAUTH" || "CODECONNECTIONS" || "SECRETS_MANAGER", // required * // resource: "STRING_VALUE", * // }, * // reportBuildStatus: true || false, @@ -100,7 +100,7 @@ export interface BatchGetBuildsCommandOutput extends BatchGetBuildsOutput, __Met * // }, * // buildspec: "STRING_VALUE", * // auth: { - * // type: "OAUTH" || "CODECONNECTIONS", // required + * // type: "OAUTH" || "CODECONNECTIONS" || "SECRETS_MANAGER", // required * // resource: "STRING_VALUE", * // }, * // reportBuildStatus: true || false, diff --git a/clients/client-codebuild/src/commands/BatchGetProjectsCommand.ts b/clients/client-codebuild/src/commands/BatchGetProjectsCommand.ts index 3b970d590a36..c98007043674 100644 --- a/clients/client-codebuild/src/commands/BatchGetProjectsCommand.ts +++ b/clients/client-codebuild/src/commands/BatchGetProjectsCommand.ts @@ -57,7 +57,7 @@ export interface BatchGetProjectsCommandOutput extends BatchGetProjectsOutput, _ * // }, * // buildspec: "STRING_VALUE", * // auth: { // SourceAuth - * // type: "OAUTH" || "CODECONNECTIONS", // required + * // type: "OAUTH" || "CODECONNECTIONS" || "SECRETS_MANAGER", // required * // resource: "STRING_VALUE", * // }, * // reportBuildStatus: true || false, @@ -78,7 +78,7 @@ export interface BatchGetProjectsCommandOutput extends BatchGetProjectsOutput, _ * // }, * // buildspec: "STRING_VALUE", * // auth: { - * // type: "OAUTH" || "CODECONNECTIONS", // required + * // type: "OAUTH" || "CODECONNECTIONS" || "SECRETS_MANAGER", // required * // resource: "STRING_VALUE", * // }, * // reportBuildStatus: true || false, diff --git a/clients/client-codebuild/src/commands/CreateProjectCommand.ts b/clients/client-codebuild/src/commands/CreateProjectCommand.ts index eb486313d7dd..c378be979a06 100644 --- a/clients/client-codebuild/src/commands/CreateProjectCommand.ts +++ b/clients/client-codebuild/src/commands/CreateProjectCommand.ts @@ -47,7 +47,7 @@ export interface CreateProjectCommandOutput extends CreateProjectOutput, __Metad * }, * buildspec: "STRING_VALUE", * auth: { // SourceAuth - * type: "OAUTH" || "CODECONNECTIONS", // required + * type: "OAUTH" || "CODECONNECTIONS" || "SECRETS_MANAGER", // required * resource: "STRING_VALUE", * }, * reportBuildStatus: true || false, @@ -68,7 +68,7 @@ export interface CreateProjectCommandOutput extends CreateProjectOutput, __Metad * }, * buildspec: "STRING_VALUE", * auth: { - * type: "OAUTH" || "CODECONNECTIONS", // required + * type: "OAUTH" || "CODECONNECTIONS" || "SECRETS_MANAGER", // required * resource: "STRING_VALUE", * }, * reportBuildStatus: true || false, @@ -214,7 +214,7 @@ export interface CreateProjectCommandOutput extends CreateProjectOutput, __Metad * // }, * // buildspec: "STRING_VALUE", * // auth: { // SourceAuth - * // type: "OAUTH" || "CODECONNECTIONS", // required + * // type: "OAUTH" || "CODECONNECTIONS" || "SECRETS_MANAGER", // required * // resource: "STRING_VALUE", * // }, * // reportBuildStatus: true || false, @@ -235,7 +235,7 @@ export interface CreateProjectCommandOutput extends CreateProjectOutput, __Metad * // }, * // buildspec: "STRING_VALUE", * // auth: { - * // type: "OAUTH" || "CODECONNECTIONS", // required + * // type: "OAUTH" || "CODECONNECTIONS" || "SECRETS_MANAGER", // required * // resource: "STRING_VALUE", * // }, * // reportBuildStatus: true || false, diff --git a/clients/client-codebuild/src/commands/ImportSourceCredentialsCommand.ts b/clients/client-codebuild/src/commands/ImportSourceCredentialsCommand.ts index a73f940f405d..6ca0171990be 100644 --- a/clients/client-codebuild/src/commands/ImportSourceCredentialsCommand.ts +++ b/clients/client-codebuild/src/commands/ImportSourceCredentialsCommand.ts @@ -33,7 +33,7 @@ export interface ImportSourceCredentialsCommandOutput extends ImportSourceCreden /** *

Imports the source repository credentials for an CodeBuild project that has its - * source code stored in a GitHub, GitHub Enterprise, or Bitbucket repository.

+ * source code stored in a GitHub, GitHub Enterprise, GitLab, GitLab Self Managed, or Bitbucket repository.

* @example * Use a bare-bones client and the command you need to make an API call. * ```javascript @@ -44,7 +44,7 @@ export interface ImportSourceCredentialsCommandOutput extends ImportSourceCreden * username: "STRING_VALUE", * token: "STRING_VALUE", // required * serverType: "GITHUB" || "BITBUCKET" || "GITHUB_ENTERPRISE" || "GITLAB" || "GITLAB_SELF_MANAGED", // required - * authType: "OAUTH" || "BASIC_AUTH" || "PERSONAL_ACCESS_TOKEN" || "CODECONNECTIONS", // required + * authType: "OAUTH" || "BASIC_AUTH" || "PERSONAL_ACCESS_TOKEN" || "CODECONNECTIONS" || "SECRETS_MANAGER", // required * shouldOverwrite: true || false, * }; * const command = new ImportSourceCredentialsCommand(input); diff --git a/clients/client-codebuild/src/commands/ListSourceCredentialsCommand.ts b/clients/client-codebuild/src/commands/ListSourceCredentialsCommand.ts index a0e05fcc28e2..be6632a284b5 100644 --- a/clients/client-codebuild/src/commands/ListSourceCredentialsCommand.ts +++ b/clients/client-codebuild/src/commands/ListSourceCredentialsCommand.ts @@ -43,7 +43,7 @@ export interface ListSourceCredentialsCommandOutput extends ListSourceCredential * // { // SourceCredentialsInfo * // arn: "STRING_VALUE", * // serverType: "GITHUB" || "BITBUCKET" || "GITHUB_ENTERPRISE" || "GITLAB" || "GITLAB_SELF_MANAGED", - * // authType: "OAUTH" || "BASIC_AUTH" || "PERSONAL_ACCESS_TOKEN" || "CODECONNECTIONS", + * // authType: "OAUTH" || "BASIC_AUTH" || "PERSONAL_ACCESS_TOKEN" || "CODECONNECTIONS" || "SECRETS_MANAGER", * // resource: "STRING_VALUE", * // }, * // ], diff --git a/clients/client-codebuild/src/commands/RetryBuildBatchCommand.ts b/clients/client-codebuild/src/commands/RetryBuildBatchCommand.ts index f71b95d02bdf..4538388d1051 100644 --- a/clients/client-codebuild/src/commands/RetryBuildBatchCommand.ts +++ b/clients/client-codebuild/src/commands/RetryBuildBatchCommand.ts @@ -77,7 +77,7 @@ export interface RetryBuildBatchCommandOutput extends RetryBuildBatchOutput, __M * // }, * // buildspec: "STRING_VALUE", * // auth: { // SourceAuth - * // type: "OAUTH" || "CODECONNECTIONS", // required + * // type: "OAUTH" || "CODECONNECTIONS" || "SECRETS_MANAGER", // required * // resource: "STRING_VALUE", * // }, * // reportBuildStatus: true || false, @@ -98,7 +98,7 @@ export interface RetryBuildBatchCommandOutput extends RetryBuildBatchOutput, __M * // }, * // buildspec: "STRING_VALUE", * // auth: { - * // type: "OAUTH" || "CODECONNECTIONS", // required + * // type: "OAUTH" || "CODECONNECTIONS" || "SECRETS_MANAGER", // required * // resource: "STRING_VALUE", * // }, * // reportBuildStatus: true || false, diff --git a/clients/client-codebuild/src/commands/RetryBuildCommand.ts b/clients/client-codebuild/src/commands/RetryBuildCommand.ts index 0b5a3712e786..a756a969b0fc 100644 --- a/clients/client-codebuild/src/commands/RetryBuildCommand.ts +++ b/clients/client-codebuild/src/commands/RetryBuildCommand.ts @@ -77,7 +77,7 @@ export interface RetryBuildCommandOutput extends RetryBuildOutput, __MetadataBea * // }, * // buildspec: "STRING_VALUE", * // auth: { // SourceAuth - * // type: "OAUTH" || "CODECONNECTIONS", // required + * // type: "OAUTH" || "CODECONNECTIONS" || "SECRETS_MANAGER", // required * // resource: "STRING_VALUE", * // }, * // reportBuildStatus: true || false, @@ -98,7 +98,7 @@ export interface RetryBuildCommandOutput extends RetryBuildOutput, __MetadataBea * // }, * // buildspec: "STRING_VALUE", * // auth: { - * // type: "OAUTH" || "CODECONNECTIONS", // required + * // type: "OAUTH" || "CODECONNECTIONS" || "SECRETS_MANAGER", // required * // resource: "STRING_VALUE", * // }, * // reportBuildStatus: true || false, diff --git a/clients/client-codebuild/src/commands/StartBuildBatchCommand.ts b/clients/client-codebuild/src/commands/StartBuildBatchCommand.ts index 3e23ee762474..7848e0b13cbc 100644 --- a/clients/client-codebuild/src/commands/StartBuildBatchCommand.ts +++ b/clients/client-codebuild/src/commands/StartBuildBatchCommand.ts @@ -47,7 +47,7 @@ export interface StartBuildBatchCommandOutput extends StartBuildBatchOutput, __M * }, * buildspec: "STRING_VALUE", * auth: { // SourceAuth - * type: "OAUTH" || "CODECONNECTIONS", // required + * type: "OAUTH" || "CODECONNECTIONS" || "SECRETS_MANAGER", // required * resource: "STRING_VALUE", * }, * reportBuildStatus: true || false, @@ -102,7 +102,7 @@ export interface StartBuildBatchCommandOutput extends StartBuildBatchOutput, __M * sourceTypeOverride: "CODECOMMIT" || "CODEPIPELINE" || "GITHUB" || "GITLAB" || "GITLAB_SELF_MANAGED" || "S3" || "BITBUCKET" || "GITHUB_ENTERPRISE" || "NO_SOURCE", * sourceLocationOverride: "STRING_VALUE", * sourceAuthOverride: { - * type: "OAUTH" || "CODECONNECTIONS", // required + * type: "OAUTH" || "CODECONNECTIONS" || "SECRETS_MANAGER", // required * resource: "STRING_VALUE", * }, * gitCloneDepthOverride: Number("int"), @@ -198,7 +198,7 @@ export interface StartBuildBatchCommandOutput extends StartBuildBatchOutput, __M * // }, * // buildspec: "STRING_VALUE", * // auth: { // SourceAuth - * // type: "OAUTH" || "CODECONNECTIONS", // required + * // type: "OAUTH" || "CODECONNECTIONS" || "SECRETS_MANAGER", // required * // resource: "STRING_VALUE", * // }, * // reportBuildStatus: true || false, @@ -219,7 +219,7 @@ export interface StartBuildBatchCommandOutput extends StartBuildBatchOutput, __M * // }, * // buildspec: "STRING_VALUE", * // auth: { - * // type: "OAUTH" || "CODECONNECTIONS", // required + * // type: "OAUTH" || "CODECONNECTIONS" || "SECRETS_MANAGER", // required * // resource: "STRING_VALUE", * // }, * // reportBuildStatus: true || false, diff --git a/clients/client-codebuild/src/commands/StartBuildCommand.ts b/clients/client-codebuild/src/commands/StartBuildCommand.ts index c6aec77c425f..26f35f82aa2d 100644 --- a/clients/client-codebuild/src/commands/StartBuildCommand.ts +++ b/clients/client-codebuild/src/commands/StartBuildCommand.ts @@ -50,7 +50,7 @@ export interface StartBuildCommandOutput extends StartBuildOutput, __MetadataBea * }, * buildspec: "STRING_VALUE", * auth: { // SourceAuth - * type: "OAUTH" || "CODECONNECTIONS", // required + * type: "OAUTH" || "CODECONNECTIONS" || "SECRETS_MANAGER", // required * resource: "STRING_VALUE", * }, * reportBuildStatus: true || false, @@ -105,7 +105,7 @@ export interface StartBuildCommandOutput extends StartBuildOutput, __MetadataBea * sourceTypeOverride: "CODECOMMIT" || "CODEPIPELINE" || "GITHUB" || "GITLAB" || "GITLAB_SELF_MANAGED" || "S3" || "BITBUCKET" || "GITHUB_ENTERPRISE" || "NO_SOURCE", * sourceLocationOverride: "STRING_VALUE", * sourceAuthOverride: { - * type: "OAUTH" || "CODECONNECTIONS", // required + * type: "OAUTH" || "CODECONNECTIONS" || "SECRETS_MANAGER", // required * resource: "STRING_VALUE", * }, * gitCloneDepthOverride: Number("int"), @@ -197,7 +197,7 @@ export interface StartBuildCommandOutput extends StartBuildOutput, __MetadataBea * // }, * // buildspec: "STRING_VALUE", * // auth: { // SourceAuth - * // type: "OAUTH" || "CODECONNECTIONS", // required + * // type: "OAUTH" || "CODECONNECTIONS" || "SECRETS_MANAGER", // required * // resource: "STRING_VALUE", * // }, * // reportBuildStatus: true || false, @@ -218,7 +218,7 @@ export interface StartBuildCommandOutput extends StartBuildOutput, __MetadataBea * // }, * // buildspec: "STRING_VALUE", * // auth: { - * // type: "OAUTH" || "CODECONNECTIONS", // required + * // type: "OAUTH" || "CODECONNECTIONS" || "SECRETS_MANAGER", // required * // resource: "STRING_VALUE", * // }, * // reportBuildStatus: true || false, diff --git a/clients/client-codebuild/src/commands/StopBuildBatchCommand.ts b/clients/client-codebuild/src/commands/StopBuildBatchCommand.ts index d2f0923a163e..aa0dfda378b6 100644 --- a/clients/client-codebuild/src/commands/StopBuildBatchCommand.ts +++ b/clients/client-codebuild/src/commands/StopBuildBatchCommand.ts @@ -75,7 +75,7 @@ export interface StopBuildBatchCommandOutput extends StopBuildBatchOutput, __Met * // }, * // buildspec: "STRING_VALUE", * // auth: { // SourceAuth - * // type: "OAUTH" || "CODECONNECTIONS", // required + * // type: "OAUTH" || "CODECONNECTIONS" || "SECRETS_MANAGER", // required * // resource: "STRING_VALUE", * // }, * // reportBuildStatus: true || false, @@ -96,7 +96,7 @@ export interface StopBuildBatchCommandOutput extends StopBuildBatchOutput, __Met * // }, * // buildspec: "STRING_VALUE", * // auth: { - * // type: "OAUTH" || "CODECONNECTIONS", // required + * // type: "OAUTH" || "CODECONNECTIONS" || "SECRETS_MANAGER", // required * // resource: "STRING_VALUE", * // }, * // reportBuildStatus: true || false, diff --git a/clients/client-codebuild/src/commands/StopBuildCommand.ts b/clients/client-codebuild/src/commands/StopBuildCommand.ts index 8eebbd13a731..a5b1e58040b2 100644 --- a/clients/client-codebuild/src/commands/StopBuildCommand.ts +++ b/clients/client-codebuild/src/commands/StopBuildCommand.ts @@ -76,7 +76,7 @@ export interface StopBuildCommandOutput extends StopBuildOutput, __MetadataBeare * // }, * // buildspec: "STRING_VALUE", * // auth: { // SourceAuth - * // type: "OAUTH" || "CODECONNECTIONS", // required + * // type: "OAUTH" || "CODECONNECTIONS" || "SECRETS_MANAGER", // required * // resource: "STRING_VALUE", * // }, * // reportBuildStatus: true || false, @@ -97,7 +97,7 @@ export interface StopBuildCommandOutput extends StopBuildOutput, __MetadataBeare * // }, * // buildspec: "STRING_VALUE", * // auth: { - * // type: "OAUTH" || "CODECONNECTIONS", // required + * // type: "OAUTH" || "CODECONNECTIONS" || "SECRETS_MANAGER", // required * // resource: "STRING_VALUE", * // }, * // reportBuildStatus: true || false, diff --git a/clients/client-codebuild/src/commands/UpdateProjectCommand.ts b/clients/client-codebuild/src/commands/UpdateProjectCommand.ts index 6aa70302c8b0..fc9635b51e22 100644 --- a/clients/client-codebuild/src/commands/UpdateProjectCommand.ts +++ b/clients/client-codebuild/src/commands/UpdateProjectCommand.ts @@ -47,7 +47,7 @@ export interface UpdateProjectCommandOutput extends UpdateProjectOutput, __Metad * }, * buildspec: "STRING_VALUE", * auth: { // SourceAuth - * type: "OAUTH" || "CODECONNECTIONS", // required + * type: "OAUTH" || "CODECONNECTIONS" || "SECRETS_MANAGER", // required * resource: "STRING_VALUE", * }, * reportBuildStatus: true || false, @@ -68,7 +68,7 @@ export interface UpdateProjectCommandOutput extends UpdateProjectOutput, __Metad * }, * buildspec: "STRING_VALUE", * auth: { - * type: "OAUTH" || "CODECONNECTIONS", // required + * type: "OAUTH" || "CODECONNECTIONS" || "SECRETS_MANAGER", // required * resource: "STRING_VALUE", * }, * reportBuildStatus: true || false, @@ -214,7 +214,7 @@ export interface UpdateProjectCommandOutput extends UpdateProjectOutput, __Metad * // }, * // buildspec: "STRING_VALUE", * // auth: { // SourceAuth - * // type: "OAUTH" || "CODECONNECTIONS", // required + * // type: "OAUTH" || "CODECONNECTIONS" || "SECRETS_MANAGER", // required * // resource: "STRING_VALUE", * // }, * // reportBuildStatus: true || false, @@ -235,7 +235,7 @@ export interface UpdateProjectCommandOutput extends UpdateProjectOutput, __Metad * // }, * // buildspec: "STRING_VALUE", * // auth: { - * // type: "OAUTH" || "CODECONNECTIONS", // required + * // type: "OAUTH" || "CODECONNECTIONS" || "SECRETS_MANAGER", // required * // resource: "STRING_VALUE", * // }, * // reportBuildStatus: true || false, diff --git a/clients/client-codebuild/src/models/models_0.ts b/clients/client-codebuild/src/models/models_0.ts index 7e20e5cb9815..6410e3f73bc1 100644 --- a/clients/client-codebuild/src/models/models_0.ts +++ b/clients/client-codebuild/src/models/models_0.ts @@ -75,6 +75,7 @@ export const AuthType = { CODECONNECTIONS: "CODECONNECTIONS", OAUTH: "OAUTH", PERSONAL_ACCESS_TOKEN: "PERSONAL_ACCESS_TOKEN", + SECRETS_MANAGER: "SECRETS_MANAGER", } as const; /** @@ -1459,6 +1460,7 @@ export interface BuildBatchPhase { export const SourceAuthType = { CODECONNECTIONS: "CODECONNECTIONS", OAUTH: "OAUTH", + SECRETS_MANAGER: "SECRETS_MANAGER", } as const; /** @@ -1469,13 +1471,11 @@ export type SourceAuthType = (typeof SourceAuthType)[keyof typeof SourceAuthType /** *

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.

* @public */ export interface SourceAuth { /** - *

The authorization type to use. Valid options are OAUTH or CODECONNECTIONS.

+ *

The authorization type to use. Valid options are OAUTH, CODECONNECTIONS, or SECRETS_MANAGER.

* @public */ type: SourceAuthType | undefined; @@ -1723,8 +1723,6 @@ export interface ProjectSource { /** *

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.

* @public */ auth?: SourceAuth; @@ -5875,7 +5873,7 @@ export interface ImportSourceCredentialsInput { /** *

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.

+ * this is the connectionArn. For the authType SECRETS_MANAGER, this is the secretArn.

* @public */ token: string | undefined; @@ -5889,8 +5887,7 @@ export interface ImportSourceCredentialsInput { /** *

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.

+ * created using the CodeBuild console.

* @public */ authType: AuthType | undefined; @@ -6954,13 +6951,13 @@ export interface SourceCredentialsInfo { /** *

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.

* @public */ 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.

* @public */ resource?: string; diff --git a/codegen/sdk-codegen/aws-models/codebuild.json b/codegen/sdk-codegen/aws-models/codebuild.json index 83415e170fcf..0082ebc19063 100644 --- a/codegen/sdk-codegen/aws-models/codebuild.json +++ b/codegen/sdk-codegen/aws-models/codebuild.json @@ -124,6 +124,12 @@ "traits": { "smithy.api#enumValue": "CODECONNECTIONS" } + }, + "SECRETS_MANAGER": { + "target": "smithy.api#Unit", + "traits": { + "smithy.api#enumValue": "SECRETS_MANAGER" + } } } }, @@ -4551,7 +4557,7 @@ } ], "traits": { - "smithy.api#documentation": "

Imports the source repository credentials for an CodeBuild project that has its\n source code stored in a GitHub, GitHub Enterprise, or Bitbucket repository.

" + "smithy.api#documentation": "

Imports the source repository credentials for an CodeBuild project that has its\n source code stored in a GitHub, GitHub Enterprise, GitLab, GitLab Self Managed, or Bitbucket repository.

" } }, "com.amazonaws.codebuild#ImportSourceCredentialsInput": { @@ -4566,7 +4572,7 @@ "token": { "target": "com.amazonaws.codebuild#SensitiveNonEmptyString", "traits": { - "smithy.api#documentation": "

For GitHub or GitHub Enterprise, this is the personal access token. For Bitbucket,\n this is either the access token or the app password. For the authType CODECONNECTIONS, \n this is the connectionArn.

", + "smithy.api#documentation": "

For GitHub or GitHub Enterprise, this is the personal access token. For Bitbucket,\n this is either the access token or the app password. For the authType CODECONNECTIONS, \n this is the connectionArn. For the authType SECRETS_MANAGER, this is the secretArn.

", "smithy.api#required": {} } }, @@ -4580,7 +4586,7 @@ "authType": { "target": "com.amazonaws.codebuild#AuthType", "traits": { - "smithy.api#documentation": "

The type of authentication used to connect to a GitHub, GitHub Enterprise, GitLab, GitLab Self Managed, or\n Bitbucket repository. An OAUTH connection is not supported by the API and must be\n created using the CodeBuild console. Note that CODECONNECTIONS is only valid for \n GitLab and GitLab Self Managed.

", + "smithy.api#documentation": "

The type of authentication used to connect to a GitHub, GitHub Enterprise, GitLab, GitLab Self Managed, or\n Bitbucket repository. An OAUTH connection is not supported by the API and must be\n created using the CodeBuild console.

", "smithy.api#required": {} } }, @@ -6437,7 +6443,7 @@ "auth": { "target": "com.amazonaws.codebuild#SourceAuth", "traits": { - "smithy.api#documentation": "

Information about the authorization settings for CodeBuild to access the source code to be\n built.

\n

This information is for the CodeBuild console's use only. Your code should not get or set\n this information directly.

" + "smithy.api#documentation": "

Information about the authorization settings for CodeBuild to access the source code to be\n built.

" } }, "reportBuildStatus": { @@ -7543,7 +7549,7 @@ "type": { "target": "com.amazonaws.codebuild#SourceAuthType", "traits": { - "smithy.api#documentation": "

The authorization type to use. Valid options are OAUTH or CODECONNECTIONS.

", + "smithy.api#documentation": "

The authorization type to use. Valid options are OAUTH, CODECONNECTIONS, or SECRETS_MANAGER.

", "smithy.api#required": {} } }, @@ -7555,7 +7561,7 @@ } }, "traits": { - "smithy.api#documentation": "

Information about the authorization settings for CodeBuild to access the source code to be\n built.

\n

This information is for the CodeBuild console's use only. Your code should not get or set\n this information directly.

" + "smithy.api#documentation": "

Information about the authorization settings for CodeBuild to access the source code to be\n built.

" } }, "com.amazonaws.codebuild#SourceAuthType": { @@ -7572,6 +7578,12 @@ "traits": { "smithy.api#enumValue": "CODECONNECTIONS" } + }, + "SECRETS_MANAGER": { + "target": "smithy.api#Unit", + "traits": { + "smithy.api#enumValue": "SECRETS_MANAGER" + } } } }, @@ -7593,13 +7605,13 @@ "authType": { "target": "com.amazonaws.codebuild#AuthType", "traits": { - "smithy.api#documentation": "

The type of authentication used by the credentials. Valid options are OAUTH,\n BASIC_AUTH, PERSONAL_ACCESS_TOKEN, or CODECONNECTIONS.

" + "smithy.api#documentation": "

The type of authentication used by the credentials. Valid options are OAUTH,\n BASIC_AUTH, PERSONAL_ACCESS_TOKEN, CODECONNECTIONS, or SECRETS_MANAGER.

" } }, "resource": { "target": "com.amazonaws.codebuild#String", "traits": { - "smithy.api#documentation": "

The connection ARN if your serverType type is GITLAB or GITLAB_SELF_MANAGED and your authType is CODECONNECTIONS.

" + "smithy.api#documentation": "

The connection ARN if your authType is CODECONNECTIONS or SECRETS_MANAGER.

" } } },