Skip to content

Commit 0712dd4

Browse files
author
awstools
committed
feat(client-codebuild): AWS CodeBuild now supports webhook filtering by organization name
1 parent d50c022 commit 0712dd4

File tree

7 files changed

+33
-57
lines changed

7 files changed

+33
-57
lines changed

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

+1-1
Original file line numberDiff line numberDiff line change
@@ -178,7 +178,7 @@ export interface BatchGetProjectsCommandOutput extends BatchGetProjectsOutput, _
178178
* // filterGroups: [ // FilterGroups
179179
* // [ // FilterGroup
180180
* // { // WebhookFilter
181-
* // type: "EVENT" || "BASE_REF" || "HEAD_REF" || "ACTOR_ACCOUNT_ID" || "FILE_PATH" || "COMMIT_MESSAGE" || "WORKFLOW_NAME" || "TAG_NAME" || "RELEASE_NAME" || "REPOSITORY_NAME", // required
181+
* // type: "EVENT" || "BASE_REF" || "HEAD_REF" || "ACTOR_ACCOUNT_ID" || "FILE_PATH" || "COMMIT_MESSAGE" || "WORKFLOW_NAME" || "TAG_NAME" || "RELEASE_NAME" || "REPOSITORY_NAME" || "ORGANIZATION_NAME", // required
182182
* // pattern: "STRING_VALUE", // required
183183
* // excludeMatchedPattern: true || false,
184184
* // },

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

+1-1
Original file line numberDiff line numberDiff line change
@@ -345,7 +345,7 @@ export interface CreateProjectCommandOutput extends CreateProjectOutput, __Metad
345345
* // filterGroups: [ // FilterGroups
346346
* // [ // FilterGroup
347347
* // { // WebhookFilter
348-
* // type: "EVENT" || "BASE_REF" || "HEAD_REF" || "ACTOR_ACCOUNT_ID" || "FILE_PATH" || "COMMIT_MESSAGE" || "WORKFLOW_NAME" || "TAG_NAME" || "RELEASE_NAME" || "REPOSITORY_NAME", // required
348+
* // type: "EVENT" || "BASE_REF" || "HEAD_REF" || "ACTOR_ACCOUNT_ID" || "FILE_PATH" || "COMMIT_MESSAGE" || "WORKFLOW_NAME" || "TAG_NAME" || "RELEASE_NAME" || "REPOSITORY_NAME" || "ORGANIZATION_NAME", // required
349349
* // pattern: "STRING_VALUE", // required
350350
* // excludeMatchedPattern: true || false,
351351
* // },

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

+2-2
Original file line numberDiff line numberDiff line change
@@ -51,7 +51,7 @@ export interface CreateWebhookCommandOutput extends CreateWebhookOutput, __Metad
5151
* filterGroups: [ // FilterGroups
5252
* [ // FilterGroup
5353
* { // WebhookFilter
54-
* type: "EVENT" || "BASE_REF" || "HEAD_REF" || "ACTOR_ACCOUNT_ID" || "FILE_PATH" || "COMMIT_MESSAGE" || "WORKFLOW_NAME" || "TAG_NAME" || "RELEASE_NAME" || "REPOSITORY_NAME", // required
54+
* type: "EVENT" || "BASE_REF" || "HEAD_REF" || "ACTOR_ACCOUNT_ID" || "FILE_PATH" || "COMMIT_MESSAGE" || "WORKFLOW_NAME" || "TAG_NAME" || "RELEASE_NAME" || "REPOSITORY_NAME" || "ORGANIZATION_NAME", // required
5555
* pattern: "STRING_VALUE", // required
5656
* excludeMatchedPattern: true || false,
5757
* },
@@ -76,7 +76,7 @@ export interface CreateWebhookCommandOutput extends CreateWebhookOutput, __Metad
7676
* // filterGroups: [ // FilterGroups
7777
* // [ // FilterGroup
7878
* // { // WebhookFilter
79-
* // type: "EVENT" || "BASE_REF" || "HEAD_REF" || "ACTOR_ACCOUNT_ID" || "FILE_PATH" || "COMMIT_MESSAGE" || "WORKFLOW_NAME" || "TAG_NAME" || "RELEASE_NAME" || "REPOSITORY_NAME", // required
79+
* // type: "EVENT" || "BASE_REF" || "HEAD_REF" || "ACTOR_ACCOUNT_ID" || "FILE_PATH" || "COMMIT_MESSAGE" || "WORKFLOW_NAME" || "TAG_NAME" || "RELEASE_NAME" || "REPOSITORY_NAME" || "ORGANIZATION_NAME", // required
8080
* // pattern: "STRING_VALUE", // required
8181
* // excludeMatchedPattern: true || false,
8282
* // },

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

+1-1
Original file line numberDiff line numberDiff line change
@@ -345,7 +345,7 @@ export interface UpdateProjectCommandOutput extends UpdateProjectOutput, __Metad
345345
* // filterGroups: [ // FilterGroups
346346
* // [ // FilterGroup
347347
* // { // WebhookFilter
348-
* // type: "EVENT" || "BASE_REF" || "HEAD_REF" || "ACTOR_ACCOUNT_ID" || "FILE_PATH" || "COMMIT_MESSAGE" || "WORKFLOW_NAME" || "TAG_NAME" || "RELEASE_NAME" || "REPOSITORY_NAME", // required
348+
* // type: "EVENT" || "BASE_REF" || "HEAD_REF" || "ACTOR_ACCOUNT_ID" || "FILE_PATH" || "COMMIT_MESSAGE" || "WORKFLOW_NAME" || "TAG_NAME" || "RELEASE_NAME" || "REPOSITORY_NAME" || "ORGANIZATION_NAME", // required
349349
* // pattern: "STRING_VALUE", // required
350350
* // excludeMatchedPattern: true || false,
351351
* // },

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

+2-2
Original file line numberDiff line numberDiff line change
@@ -46,7 +46,7 @@ export interface UpdateWebhookCommandOutput extends UpdateWebhookOutput, __Metad
4646
* filterGroups: [ // FilterGroups
4747
* [ // FilterGroup
4848
* { // WebhookFilter
49-
* type: "EVENT" || "BASE_REF" || "HEAD_REF" || "ACTOR_ACCOUNT_ID" || "FILE_PATH" || "COMMIT_MESSAGE" || "WORKFLOW_NAME" || "TAG_NAME" || "RELEASE_NAME" || "REPOSITORY_NAME", // required
49+
* type: "EVENT" || "BASE_REF" || "HEAD_REF" || "ACTOR_ACCOUNT_ID" || "FILE_PATH" || "COMMIT_MESSAGE" || "WORKFLOW_NAME" || "TAG_NAME" || "RELEASE_NAME" || "REPOSITORY_NAME" || "ORGANIZATION_NAME", // required
5050
* pattern: "STRING_VALUE", // required
5151
* excludeMatchedPattern: true || false,
5252
* },
@@ -65,7 +65,7 @@ export interface UpdateWebhookCommandOutput extends UpdateWebhookOutput, __Metad
6565
* // filterGroups: [ // FilterGroups
6666
* // [ // FilterGroup
6767
* // { // WebhookFilter
68-
* // type: "EVENT" || "BASE_REF" || "HEAD_REF" || "ACTOR_ACCOUNT_ID" || "FILE_PATH" || "COMMIT_MESSAGE" || "WORKFLOW_NAME" || "TAG_NAME" || "RELEASE_NAME" || "REPOSITORY_NAME", // required
68+
* // type: "EVENT" || "BASE_REF" || "HEAD_REF" || "ACTOR_ACCOUNT_ID" || "FILE_PATH" || "COMMIT_MESSAGE" || "WORKFLOW_NAME" || "TAG_NAME" || "RELEASE_NAME" || "REPOSITORY_NAME" || "ORGANIZATION_NAME", // required
6969
* // pattern: "STRING_VALUE", // required
7070
* // excludeMatchedPattern: true || false,
7171
* // },

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

+18-48
Original file line numberDiff line numberDiff line change
@@ -935,46 +935,6 @@ export type EnvironmentType = (typeof EnvironmentType)[keyof typeof EnvironmentT
935935
export interface ProjectEnvironment {
936936
/**
937937
* <p>The type of build environment to use for related builds.</p>
938-
* <ul>
939-
* <li>
940-
* <p>The environment type <code>ARM_CONTAINER</code> is available only in regions
941-
* US East (N. Virginia), US East (Ohio), US West (Oregon), EU (Ireland),
942-
* Asia Pacific (Mumbai), Asia Pacific (Tokyo), Asia Pacific (Sydney), and
943-
* EU (Frankfurt).</p>
944-
* </li>
945-
* <li>
946-
* <p>The environment type <code>LINUX_CONTAINER</code> is available only in regions
947-
* US East (N. Virginia), US East (Ohio), US West (Oregon),
948-
* Canada (Central), EU (Ireland), EU (London),
949-
* EU (Frankfurt), Asia Pacific (Tokyo), Asia Pacific (Seoul),
950-
* Asia Pacific (Singapore), Asia Pacific (Sydney), China (Beijing), and
951-
* China (Ningxia).</p>
952-
* </li>
953-
* <li>
954-
* <p>The environment type <code>LINUX_GPU_CONTAINER</code> is available only in
955-
* regions US East (N. Virginia), US East (Ohio), US West (Oregon),
956-
* Canada (Central), EU (Ireland), EU (London),
957-
* EU (Frankfurt), Asia Pacific (Tokyo), Asia Pacific (Seoul),
958-
* Asia Pacific (Singapore), Asia Pacific (Sydney) , China (Beijing), and
959-
* China (Ningxia).</p>
960-
* </li>
961-
* </ul>
962-
* <ul>
963-
* <li>
964-
* <p>The environment types <code>ARM_LAMBDA_CONTAINER</code> and
965-
* <code>LINUX_LAMBDA_CONTAINER</code> are available only in regions
966-
* US East (N. Virginia), US East (Ohio), US West (Oregon), Asia Pacific (Mumbai), Asia Pacific (Singapore),
967-
* Asia Pacific (Sydney), Asia Pacific (Tokyo), EU (Frankfurt), EU (Ireland), and South America (São Paulo).</p>
968-
* </li>
969-
* </ul>
970-
* <ul>
971-
* <li>
972-
* <p>The environment types <code>WINDOWS_CONTAINER</code> and
973-
* <code>WINDOWS_SERVER_2019_CONTAINER</code> are available only in regions
974-
* US East (N. Virginia), US East (Ohio), US West (Oregon), and
975-
* EU (Ireland).</p>
976-
* </li>
977-
* </ul>
978938
* <note>
979939
* <p>If you're using compute fleets during project creation, <code>type</code> will be ignored.</p>
980940
* </note>
@@ -3765,6 +3725,7 @@ export const WebhookFilterType = {
37653725
EVENT: "EVENT",
37663726
FILE_PATH: "FILE_PATH",
37673727
HEAD_REF: "HEAD_REF",
3728+
ORGANIZATION_NAME: "ORGANIZATION_NAME",
37683729
RELEASE_NAME: "RELEASE_NAME",
37693730
REPOSITORY_NAME: "REPOSITORY_NAME",
37703731
TAG_NAME: "TAG_NAME",
@@ -3782,9 +3743,10 @@ export type WebhookFilterType = (typeof WebhookFilterType)[keyof typeof WebhookF
37823743
*/
37833744
export interface WebhookFilter {
37843745
/**
3785-
* <p> The type of webhook filter. There are nine webhook filter types: <code>EVENT</code>,
3746+
* <p> The type of webhook filter. There are 11 webhook filter types: <code>EVENT</code>,
37863747
* <code>ACTOR_ACCOUNT_ID</code>, <code>HEAD_REF</code>, <code>BASE_REF</code>,
37873748
* <code>FILE_PATH</code>, <code>COMMIT_MESSAGE</code>, <code>TAG_NAME</code>, <code>RELEASE_NAME</code>,
3749+
* <code>REPOSITORY_NAME</code>, <code>ORGANIZATION_NAME</code>,
37883750
* and <code>WORKFLOW_NAME</code>. </p>
37893751
* <ul>
37903752
* <li>
@@ -3854,9 +3816,7 @@ export interface WebhookFilter {
38543816
* <p> A webhook triggers a build when the path of a changed file matches the
38553817
* regular expression <code>pattern</code>. </p>
38563818
* <note>
3857-
* <p> Works with GitHub and Bitbucket events push and pull requests events.
3858-
* Also works with GitHub Enterprise push events, but does not work with
3859-
* GitHub Enterprise pull request events. </p>
3819+
* <p> Works with push and pull request events only. </p>
38603820
* </note>
38613821
* </li>
38623822
* </ul>
@@ -3868,9 +3828,7 @@ export interface WebhookFilter {
38683828
* <p>A webhook triggers a build when the head commit message matches the
38693829
* regular expression <code>pattern</code>.</p>
38703830
* <note>
3871-
* <p> Works with GitHub and Bitbucket events push and pull requests events.
3872-
* Also works with GitHub Enterprise push events, but does not work with
3873-
* GitHub Enterprise pull request events. </p>
3831+
* <p> Works with push and pull request events only. </p>
38743832
* </note>
38753833
* </li>
38763834
* </ul>
@@ -3904,14 +3862,26 @@ export interface WebhookFilter {
39043862
* <ul>
39053863
* <li>
39063864
* <p>A webhook triggers a build when the repository name matches the
3907-
* regular expression pattern.</p>
3865+
* regular expression <code>pattern</code>.</p>
39083866
* <note>
39093867
* <p> Works with GitHub global or organization webhooks only. </p>
39103868
* </note>
39113869
* </li>
39123870
* </ul>
39133871
* </li>
39143872
* <li>
3873+
* <p>ORGANIZATION_NAME</p>
3874+
* <ul>
3875+
* <li>
3876+
* <p>A webhook triggers a build when the organization name matches the
3877+
* regular expression <code>pattern</code>.</p>
3878+
* <note>
3879+
* <p> Works with GitHub global webhooks only. </p>
3880+
* </note>
3881+
* </li>
3882+
* </ul>
3883+
* </li>
3884+
* <li>
39153885
* <p>WORKFLOW_NAME</p>
39163886
* <ul>
39173887
* <li>

0 commit comments

Comments
 (0)