Skip to content

Commit

Permalink
feat(client-codebuild): GitLab Enhancements - Add support for Self-Ho…
Browse files Browse the repository at this point in the history
…sted GitLab runners in CodeBuild. Add group webhooks
  • Loading branch information
awstools committed Sep 17, 2024
1 parent 342485b commit 42807fe
Show file tree
Hide file tree
Showing 7 changed files with 19 additions and 12 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
4 changes: 2 additions & 2 deletions clients/client-codebuild/src/commands/CreateWebhookCommand.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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);
Expand All @@ -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
* // },
* // },
* // };
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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
* // },
* // },
* // };
Expand Down
7 changes: 4 additions & 3 deletions clients/client-codebuild/src/models/models_0.ts
Original file line number Diff line number Diff line change
Expand Up @@ -3692,6 +3692,7 @@ export interface WebhookFilter {
export const WebhookScopeType = {
GITHUB_GLOBAL: "GITHUB_GLOBAL",
GITHUB_ORGANIZATION: "GITHUB_ORGANIZATION",
GITLAB_GROUP: "GITLAB_GROUP",
} as const;

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

/**
* <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>
* <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>
* @public
*/
domain?: string;

/**
* <p>The type of scope for a GitHub webhook.</p>
* <p>The type of scope for a GitHub or GitLab webhook.</p>
* @public
*/
scope: WebhookScopeType | undefined;
Expand Down
12 changes: 9 additions & 3 deletions codegen/sdk-codegen/aws-models/codebuild.json
Original file line number Diff line number Diff line change
Expand Up @@ -7455,20 +7455,20 @@
"name": {
"target": "com.amazonaws.codebuild#String",
"traits": {
"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>",
"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>",
"smithy.api#required": {}
}
},
"domain": {
"target": "com.amazonaws.codebuild#String",
"traits": {
"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>"
"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>"
}
},
"scope": {
"target": "com.amazonaws.codebuild#WebhookScopeType",
"traits": {
"smithy.api#documentation": "<p>The type of scope for a GitHub webhook.</p>",
"smithy.api#documentation": "<p>The type of scope for a GitHub or GitLab webhook.</p>",
"smithy.api#required": {}
}
}
Expand Down Expand Up @@ -9206,6 +9206,12 @@
"traits": {
"smithy.api#enumValue": "GITHUB_GLOBAL"
}
},
"GITLAB_GROUP": {
"target": "smithy.api#Unit",
"traits": {
"smithy.api#enumValue": "GITLAB_GROUP"
}
}
}
},
Expand Down

0 comments on commit 42807fe

Please sign in to comment.