Skip to content

Commit 42807fe

Browse files
author
awstools
committed
feat(client-codebuild): GitLab Enhancements - Add support for Self-Hosted GitLab runners in CodeBuild. Add group webhooks
1 parent 342485b commit 42807fe

File tree

7 files changed

+19
-12
lines changed

7 files changed

+19
-12
lines changed

clients/client-codebuild/src/commands/BatchGetProjectsCommand.ts

+1-1
Original file line numberDiff line numberDiff line change
@@ -184,7 +184,7 @@ export interface BatchGetProjectsCommandOutput extends BatchGetProjectsOutput, _
184184
* // scopeConfiguration: { // ScopeConfiguration
185185
* // name: "STRING_VALUE", // required
186186
* // domain: "STRING_VALUE",
187-
* // scope: "GITHUB_ORGANIZATION" || "GITHUB_GLOBAL", // required
187+
* // scope: "GITHUB_ORGANIZATION" || "GITHUB_GLOBAL" || "GITLAB_GROUP", // required
188188
* // },
189189
* // },
190190
* // vpcConfig: { // VpcConfig

clients/client-codebuild/src/commands/CreateProjectCommand.ts

+1-1
Original file line numberDiff line numberDiff line change
@@ -341,7 +341,7 @@ export interface CreateProjectCommandOutput extends CreateProjectOutput, __Metad
341341
* // scopeConfiguration: { // ScopeConfiguration
342342
* // name: "STRING_VALUE", // required
343343
* // domain: "STRING_VALUE",
344-
* // scope: "GITHUB_ORGANIZATION" || "GITHUB_GLOBAL", // required
344+
* // scope: "GITHUB_ORGANIZATION" || "GITHUB_GLOBAL" || "GITLAB_GROUP", // required
345345
* // },
346346
* // },
347347
* // vpcConfig: { // VpcConfig

clients/client-codebuild/src/commands/CreateWebhookCommand.ts

+2-2
Original file line numberDiff line numberDiff line change
@@ -62,7 +62,7 @@ export interface CreateWebhookCommandOutput extends CreateWebhookOutput, __Metad
6262
* scopeConfiguration: { // ScopeConfiguration
6363
* name: "STRING_VALUE", // required
6464
* domain: "STRING_VALUE",
65-
* scope: "GITHUB_ORGANIZATION" || "GITHUB_GLOBAL", // required
65+
* scope: "GITHUB_ORGANIZATION" || "GITHUB_GLOBAL" || "GITLAB_GROUP", // required
6666
* },
6767
* };
6868
* const command = new CreateWebhookCommand(input);
@@ -88,7 +88,7 @@ export interface CreateWebhookCommandOutput extends CreateWebhookOutput, __Metad
8888
* // scopeConfiguration: { // ScopeConfiguration
8989
* // name: "STRING_VALUE", // required
9090
* // domain: "STRING_VALUE",
91-
* // scope: "GITHUB_ORGANIZATION" || "GITHUB_GLOBAL", // required
91+
* // scope: "GITHUB_ORGANIZATION" || "GITHUB_GLOBAL" || "GITLAB_GROUP", // required
9292
* // },
9393
* // },
9494
* // };

clients/client-codebuild/src/commands/UpdateProjectCommand.ts

+1-1
Original file line numberDiff line numberDiff line change
@@ -341,7 +341,7 @@ export interface UpdateProjectCommandOutput extends UpdateProjectOutput, __Metad
341341
* // scopeConfiguration: { // ScopeConfiguration
342342
* // name: "STRING_VALUE", // required
343343
* // domain: "STRING_VALUE",
344-
* // scope: "GITHUB_ORGANIZATION" || "GITHUB_GLOBAL", // required
344+
* // scope: "GITHUB_ORGANIZATION" || "GITHUB_GLOBAL" || "GITLAB_GROUP", // required
345345
* // },
346346
* // },
347347
* // vpcConfig: { // VpcConfig

clients/client-codebuild/src/commands/UpdateWebhookCommand.ts

+1-1
Original file line numberDiff line numberDiff line change
@@ -77,7 +77,7 @@ export interface UpdateWebhookCommandOutput extends UpdateWebhookOutput, __Metad
7777
* // scopeConfiguration: { // ScopeConfiguration
7878
* // name: "STRING_VALUE", // required
7979
* // domain: "STRING_VALUE",
80-
* // scope: "GITHUB_ORGANIZATION" || "GITHUB_GLOBAL", // required
80+
* // scope: "GITHUB_ORGANIZATION" || "GITHUB_GLOBAL" || "GITLAB_GROUP", // required
8181
* // },
8282
* // },
8383
* // };

clients/client-codebuild/src/models/models_0.ts

+4-3
Original file line numberDiff line numberDiff line change
@@ -3692,6 +3692,7 @@ export interface WebhookFilter {
36923692
export const WebhookScopeType = {
36933693
GITHUB_GLOBAL: "GITHUB_GLOBAL",
36943694
GITHUB_ORGANIZATION: "GITHUB_ORGANIZATION",
3695+
GITLAB_GROUP: "GITLAB_GROUP",
36953696
} as const;
36963697

36973698
/**
@@ -3705,19 +3706,19 @@ export type WebhookScopeType = (typeof WebhookScopeType)[keyof typeof WebhookSco
37053706
*/
37063707
export interface ScopeConfiguration {
37073708
/**
3708-
* <p>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.</p>
3709+
* <p>The name of either the group, enterprise, or organization that will send webhook events to CodeBuild, depending on the type of webhook.</p>
37093710
* @public
37103711
*/
37113712
name: string | undefined;
37123713

37133714
/**
3714-
* <p>The domain of the GitHub Enterprise organization. Note that this parameter is only required if your project's source type is GITHUB_ENTERPRISE</p>
3715+
* <p>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.</p>
37153716
* @public
37163717
*/
37173718
domain?: string;
37183719

37193720
/**
3720-
* <p>The type of scope for a GitHub webhook.</p>
3721+
* <p>The type of scope for a GitHub or GitLab webhook.</p>
37213722
* @public
37223723
*/
37233724
scope: WebhookScopeType | undefined;

codegen/sdk-codegen/aws-models/codebuild.json

+9-3
Original file line numberDiff line numberDiff line change
@@ -7455,20 +7455,20 @@
74557455
"name": {
74567456
"target": "com.amazonaws.codebuild#String",
74577457
"traits": {
7458-
"smithy.api#documentation": "<p>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.</p>",
7458+
"smithy.api#documentation": "<p>The name of either the group, enterprise, or organization that will send webhook events to CodeBuild, depending on the type of webhook.</p>",
74597459
"smithy.api#required": {}
74607460
}
74617461
},
74627462
"domain": {
74637463
"target": "com.amazonaws.codebuild#String",
74647464
"traits": {
7465-
"smithy.api#documentation": "<p>The domain of the GitHub Enterprise organization. Note that this parameter is only required if your project's source type is GITHUB_ENTERPRISE</p>"
7465+
"smithy.api#documentation": "<p>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.</p>"
74667466
}
74677467
},
74687468
"scope": {
74697469
"target": "com.amazonaws.codebuild#WebhookScopeType",
74707470
"traits": {
7471-
"smithy.api#documentation": "<p>The type of scope for a GitHub webhook.</p>",
7471+
"smithy.api#documentation": "<p>The type of scope for a GitHub or GitLab webhook.</p>",
74727472
"smithy.api#required": {}
74737473
}
74747474
}
@@ -9206,6 +9206,12 @@
92069206
"traits": {
92079207
"smithy.api#enumValue": "GITHUB_GLOBAL"
92089208
}
9209+
},
9210+
"GITLAB_GROUP": {
9211+
"target": "smithy.api#Unit",
9212+
"traits": {
9213+
"smithy.api#enumValue": "GITLAB_GROUP"
9214+
}
92099215
}
92109216
}
92119217
},

0 commit comments

Comments
 (0)