From a7798f3b311435199e321afc5d4577ab40ca13e9 Mon Sep 17 00:00:00 2001 From: awstools Date: Mon, 17 Jun 2024 18:23:15 +0000 Subject: [PATCH] feat(client-codebuild): AWS CodeBuild now supports global and organization GitHub webhooks --- .../src/commands/BatchGetProjectsCommand.ts | 5 ++ .../src/commands/CreateProjectCommand.ts | 5 ++ .../src/commands/CreateWebhookCommand.ts | 10 +++ .../src/commands/UpdateProjectCommand.ts | 5 ++ .../src/commands/UpdateWebhookCommand.ts | 5 ++ .../client-codebuild/src/models/models_0.ts | 68 +++++++++++++++++++ .../src/protocols/Aws_json1_1.ts | 6 ++ codegen/sdk-codegen/aws-models/codebuild.json | 59 +++++++++++++++- 8 files changed, 162 insertions(+), 1 deletion(-) diff --git a/clients/client-codebuild/src/commands/BatchGetProjectsCommand.ts b/clients/client-codebuild/src/commands/BatchGetProjectsCommand.ts index cdeb1a204774..3b970d590a36 100644 --- a/clients/client-codebuild/src/commands/BatchGetProjectsCommand.ts +++ b/clients/client-codebuild/src/commands/BatchGetProjectsCommand.ts @@ -181,6 +181,11 @@ export interface BatchGetProjectsCommandOutput extends BatchGetProjectsOutput, _ * // buildType: "BUILD" || "BUILD_BATCH", * // manualCreation: true || false, * // lastModifiedSecret: new Date("TIMESTAMP"), + * // scopeConfiguration: { // ScopeConfiguration + * // name: "STRING_VALUE", // required + * // domain: "STRING_VALUE", + * // scope: "GITHUB_ORGANIZATION" || "GITHUB_GLOBAL", // required + * // }, * // }, * // vpcConfig: { // VpcConfig * // vpcId: "STRING_VALUE", diff --git a/clients/client-codebuild/src/commands/CreateProjectCommand.ts b/clients/client-codebuild/src/commands/CreateProjectCommand.ts index 12327674b921..eb486313d7dd 100644 --- a/clients/client-codebuild/src/commands/CreateProjectCommand.ts +++ b/clients/client-codebuild/src/commands/CreateProjectCommand.ts @@ -338,6 +338,11 @@ export interface CreateProjectCommandOutput extends CreateProjectOutput, __Metad * // buildType: "BUILD" || "BUILD_BATCH", * // manualCreation: true || false, * // lastModifiedSecret: new Date("TIMESTAMP"), + * // scopeConfiguration: { // ScopeConfiguration + * // name: "STRING_VALUE", // required + * // domain: "STRING_VALUE", + * // scope: "GITHUB_ORGANIZATION" || "GITHUB_GLOBAL", // required + * // }, * // }, * // vpcConfig: { // VpcConfig * // vpcId: "STRING_VALUE", diff --git a/clients/client-codebuild/src/commands/CreateWebhookCommand.ts b/clients/client-codebuild/src/commands/CreateWebhookCommand.ts index 1900d0f06346..2b23c5016eee 100644 --- a/clients/client-codebuild/src/commands/CreateWebhookCommand.ts +++ b/clients/client-codebuild/src/commands/CreateWebhookCommand.ts @@ -59,6 +59,11 @@ export interface CreateWebhookCommandOutput extends CreateWebhookOutput, __Metad * ], * buildType: "BUILD" || "BUILD_BATCH", * manualCreation: true || false, + * scopeConfiguration: { // ScopeConfiguration + * name: "STRING_VALUE", // required + * domain: "STRING_VALUE", + * scope: "GITHUB_ORGANIZATION" || "GITHUB_GLOBAL", // required + * }, * }; * const command = new CreateWebhookCommand(input); * const response = await client.send(command); @@ -80,6 +85,11 @@ export interface CreateWebhookCommandOutput extends CreateWebhookOutput, __Metad * // buildType: "BUILD" || "BUILD_BATCH", * // manualCreation: true || false, * // lastModifiedSecret: new Date("TIMESTAMP"), + * // scopeConfiguration: { // ScopeConfiguration + * // name: "STRING_VALUE", // required + * // domain: "STRING_VALUE", + * // scope: "GITHUB_ORGANIZATION" || "GITHUB_GLOBAL", // required + * // }, * // }, * // }; * diff --git a/clients/client-codebuild/src/commands/UpdateProjectCommand.ts b/clients/client-codebuild/src/commands/UpdateProjectCommand.ts index cd18d73b5b2e..6aa70302c8b0 100644 --- a/clients/client-codebuild/src/commands/UpdateProjectCommand.ts +++ b/clients/client-codebuild/src/commands/UpdateProjectCommand.ts @@ -338,6 +338,11 @@ export interface UpdateProjectCommandOutput extends UpdateProjectOutput, __Metad * // buildType: "BUILD" || "BUILD_BATCH", * // manualCreation: true || false, * // lastModifiedSecret: new Date("TIMESTAMP"), + * // scopeConfiguration: { // ScopeConfiguration + * // name: "STRING_VALUE", // required + * // domain: "STRING_VALUE", + * // scope: "GITHUB_ORGANIZATION" || "GITHUB_GLOBAL", // required + * // }, * // }, * // vpcConfig: { // VpcConfig * // vpcId: "STRING_VALUE", diff --git a/clients/client-codebuild/src/commands/UpdateWebhookCommand.ts b/clients/client-codebuild/src/commands/UpdateWebhookCommand.ts index 29133afecc8d..07c98cce77f9 100644 --- a/clients/client-codebuild/src/commands/UpdateWebhookCommand.ts +++ b/clients/client-codebuild/src/commands/UpdateWebhookCommand.ts @@ -74,6 +74,11 @@ export interface UpdateWebhookCommandOutput extends UpdateWebhookOutput, __Metad * // buildType: "BUILD" || "BUILD_BATCH", * // manualCreation: true || false, * // lastModifiedSecret: new Date("TIMESTAMP"), + * // scopeConfiguration: { // ScopeConfiguration + * // name: "STRING_VALUE", // required + * // domain: "STRING_VALUE", + * // scope: "GITHUB_ORGANIZATION" || "GITHUB_GLOBAL", // required + * // }, * // }, * // }; * diff --git a/clients/client-codebuild/src/models/models_0.ts b/clients/client-codebuild/src/models/models_0.ts index 58f6a6cad95e..7e20e5cb9815 100644 --- a/clients/client-codebuild/src/models/models_0.ts +++ b/clients/client-codebuild/src/models/models_0.ts @@ -3617,6 +3617,18 @@ export interface WebhookFilter { * * *
  • + *

    REPOSITORY_NAME

    + * + *
  • + *
  • *

    WORKFLOW_NAME

    *