diff --git a/clients/client-codebuild/src/commands/BatchGetProjectsCommand.ts b/clients/client-codebuild/src/commands/BatchGetProjectsCommand.ts index 1ef01bbcbdd6..11d98b4c7a6d 100644 --- a/clients/client-codebuild/src/commands/BatchGetProjectsCommand.ts +++ b/clients/client-codebuild/src/commands/BatchGetProjectsCommand.ts @@ -184,7 +184,7 @@ export interface BatchGetProjectsCommandOutput extends BatchGetProjectsOutput, _ * // scopeConfiguration: { // ScopeConfiguration * // name: "STRING_VALUE", // required * // domain: "STRING_VALUE", - * // scope: "GITHUB_ORGANIZATION" || "GITHUB_GLOBAL", // required + * // scope: "GITHUB_ORGANIZATION" || "GITHUB_GLOBAL" || "GITLAB_GROUP", // required * // }, * // }, * // vpcConfig: { // VpcConfig diff --git a/clients/client-codebuild/src/commands/CreateProjectCommand.ts b/clients/client-codebuild/src/commands/CreateProjectCommand.ts index d82425f21321..e5956755b0c2 100644 --- a/clients/client-codebuild/src/commands/CreateProjectCommand.ts +++ b/clients/client-codebuild/src/commands/CreateProjectCommand.ts @@ -341,7 +341,7 @@ export interface CreateProjectCommandOutput extends CreateProjectOutput, __Metad * // scopeConfiguration: { // ScopeConfiguration * // name: "STRING_VALUE", // required * // domain: "STRING_VALUE", - * // scope: "GITHUB_ORGANIZATION" || "GITHUB_GLOBAL", // required + * // scope: "GITHUB_ORGANIZATION" || "GITHUB_GLOBAL" || "GITLAB_GROUP", // required * // }, * // }, * // vpcConfig: { // VpcConfig diff --git a/clients/client-codebuild/src/commands/CreateWebhookCommand.ts b/clients/client-codebuild/src/commands/CreateWebhookCommand.ts index beb1bb3342a9..115aaa8a57d6 100644 --- a/clients/client-codebuild/src/commands/CreateWebhookCommand.ts +++ b/clients/client-codebuild/src/commands/CreateWebhookCommand.ts @@ -62,7 +62,7 @@ export interface CreateWebhookCommandOutput extends CreateWebhookOutput, __Metad * scopeConfiguration: { // ScopeConfiguration * name: "STRING_VALUE", // required * domain: "STRING_VALUE", - * scope: "GITHUB_ORGANIZATION" || "GITHUB_GLOBAL", // required + * scope: "GITHUB_ORGANIZATION" || "GITHUB_GLOBAL" || "GITLAB_GROUP", // required * }, * }; * const command = new CreateWebhookCommand(input); @@ -88,7 +88,7 @@ export interface CreateWebhookCommandOutput extends CreateWebhookOutput, __Metad * // scopeConfiguration: { // ScopeConfiguration * // name: "STRING_VALUE", // required * // domain: "STRING_VALUE", - * // scope: "GITHUB_ORGANIZATION" || "GITHUB_GLOBAL", // required + * // scope: "GITHUB_ORGANIZATION" || "GITHUB_GLOBAL" || "GITLAB_GROUP", // required * // }, * // }, * // }; diff --git a/clients/client-codebuild/src/commands/UpdateProjectCommand.ts b/clients/client-codebuild/src/commands/UpdateProjectCommand.ts index 5e5ba2a731ba..e3c13efe21da 100644 --- a/clients/client-codebuild/src/commands/UpdateProjectCommand.ts +++ b/clients/client-codebuild/src/commands/UpdateProjectCommand.ts @@ -341,7 +341,7 @@ export interface UpdateProjectCommandOutput extends UpdateProjectOutput, __Metad * // scopeConfiguration: { // ScopeConfiguration * // name: "STRING_VALUE", // required * // domain: "STRING_VALUE", - * // scope: "GITHUB_ORGANIZATION" || "GITHUB_GLOBAL", // required + * // scope: "GITHUB_ORGANIZATION" || "GITHUB_GLOBAL" || "GITLAB_GROUP", // required * // }, * // }, * // vpcConfig: { // VpcConfig diff --git a/clients/client-codebuild/src/commands/UpdateWebhookCommand.ts b/clients/client-codebuild/src/commands/UpdateWebhookCommand.ts index 331a197877e9..29ca1efb7cc5 100644 --- a/clients/client-codebuild/src/commands/UpdateWebhookCommand.ts +++ b/clients/client-codebuild/src/commands/UpdateWebhookCommand.ts @@ -77,7 +77,7 @@ export interface UpdateWebhookCommandOutput extends UpdateWebhookOutput, __Metad * // scopeConfiguration: { // ScopeConfiguration * // name: "STRING_VALUE", // required * // domain: "STRING_VALUE", - * // scope: "GITHUB_ORGANIZATION" || "GITHUB_GLOBAL", // required + * // scope: "GITHUB_ORGANIZATION" || "GITHUB_GLOBAL" || "GITLAB_GROUP", // required * // }, * // }, * // }; diff --git a/clients/client-codebuild/src/models/models_0.ts b/clients/client-codebuild/src/models/models_0.ts index acf0a8b69fe5..7352980d7056 100644 --- a/clients/client-codebuild/src/models/models_0.ts +++ b/clients/client-codebuild/src/models/models_0.ts @@ -3692,6 +3692,7 @@ export interface WebhookFilter { export const WebhookScopeType = { GITHUB_GLOBAL: "GITHUB_GLOBAL", GITHUB_ORGANIZATION: "GITHUB_ORGANIZATION", + GITLAB_GROUP: "GITLAB_GROUP", } as const; /** @@ -3705,19 +3706,19 @@ export type WebhookScopeType = (typeof WebhookScopeType)[keyof typeof WebhookSco */ export interface ScopeConfiguration { /** - *

The name of either the enterprise or organization that will send webhook events to CodeBuild, depending on if the webhook is a global or organization webhook respectively.

+ *

The name of either the group, enterprise, or organization that will send webhook events to CodeBuild, depending on the type of webhook.

* @public */ name: string | undefined; /** - *

The domain of the GitHub Enterprise organization. Note that this parameter is only required if your project's source type is GITHUB_ENTERPRISE

+ *

The domain of the GitHub Enterprise organization or the GitLab Self Managed group. Note that this parameter is only required if your project's source type is GITHUB_ENTERPRISE or GITLAB_SELF_MANAGED.

* @public */ domain?: string; /** - *

The type of scope for a GitHub webhook.

+ *

The type of scope for a GitHub or GitLab webhook.

* @public */ scope: WebhookScopeType | undefined; diff --git a/codegen/sdk-codegen/aws-models/codebuild.json b/codegen/sdk-codegen/aws-models/codebuild.json index e0072f5eddfe..25a99ff4c909 100644 --- a/codegen/sdk-codegen/aws-models/codebuild.json +++ b/codegen/sdk-codegen/aws-models/codebuild.json @@ -7455,20 +7455,20 @@ "name": { "target": "com.amazonaws.codebuild#String", "traits": { - "smithy.api#documentation": "

The name of either the enterprise or organization that will send webhook events to CodeBuild, depending on if the webhook is a global or organization webhook respectively.

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

The name of either the group, enterprise, or organization that will send webhook events to CodeBuild, depending on the type of webhook.

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

The domain of the GitHub Enterprise organization. Note that this parameter is only required if your project's source type is GITHUB_ENTERPRISE

" + "smithy.api#documentation": "

The domain of the GitHub Enterprise organization or the GitLab Self Managed group. Note that this parameter is only required if your project's source type is GITHUB_ENTERPRISE or GITLAB_SELF_MANAGED.

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

The type of scope for a GitHub webhook.

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

The type of scope for a GitHub or GitLab webhook.

", "smithy.api#required": {} } } @@ -9206,6 +9206,12 @@ "traits": { "smithy.api#enumValue": "GITHUB_GLOBAL" } + }, + "GITLAB_GROUP": { + "target": "smithy.api#Unit", + "traits": { + "smithy.api#enumValue": "GITLAB_GROUP" + } } } },