Skip to content

Commit d93fd4b

Browse files
author
awstools
committed
docs(client-codebuild): This release adds support for new webhook events (RELEASED and PRERELEASED) and filter types (TAG_NAME and RELEASE_NAME).
1 parent df1bff4 commit d93fd4b

File tree

2 files changed

+36
-11
lines changed

2 files changed

+36
-11
lines changed

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

Lines changed: 35 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -3449,9 +3449,9 @@ export type WebhookFilterType = (typeof WebhookFilterType)[keyof typeof WebhookF
34493449
*/
34503450
export interface WebhookFilter {
34513451
/**
3452-
* <p> The type of webhook filter. There are six webhook filter types: <code>EVENT</code>,
3452+
* <p> The type of webhook filter. There are eight webhook filter types: <code>EVENT</code>,
34533453
* <code>ACTOR_ACCOUNT_ID</code>, <code>HEAD_REF</code>, <code>BASE_REF</code>,
3454-
* <code>FILE_PATH</code>, and <code>COMMIT_MESSAGE</code>. </p>
3454+
* <code>FILE_PATH</code>, <code>COMMIT_MESSAGE</code>, <code>TAG_NAME</code>, and <code>RELEASE_NAME</code>. </p>
34553455
* <ul>
34563456
* <li>
34573457
* <p>
@@ -3460,17 +3460,17 @@ export interface WebhookFilter {
34603460
* <ul>
34613461
* <li>
34623462
* <p> A webhook event triggers a build when the provided <code>pattern</code>
3463-
* matches one of six event types: <code>PUSH</code>,
3463+
* matches one of eight event types: <code>PUSH</code>,
34643464
* <code>PULL_REQUEST_CREATED</code>, <code>PULL_REQUEST_UPDATED</code>,
3465-
* <code>PULL_REQUEST_CLOSED</code>,
3466-
* <code>PULL_REQUEST_REOPENED</code>, and
3467-
* <code>PULL_REQUEST_MERGED</code>. The <code>EVENT</code> patterns are
3465+
* <code>PULL_REQUEST_CLOSED</code>, <code>PULL_REQUEST_REOPENED</code>,
3466+
* <code>PULL_REQUEST_MERGED</code>, <code>RELEASED</code>, and <code>PRERELEASED</code>. The <code>EVENT</code> patterns are
34683467
* specified as a comma-separated string. For example, <code>PUSH,
34693468
* PULL_REQUEST_CREATED, PULL_REQUEST_UPDATED</code> filters all push, pull
34703469
* request created, and pull request updated events. </p>
34713470
* <note>
34723471
* <p> The <code>PULL_REQUEST_REOPENED</code> works with GitHub and GitHub
3473-
* Enterprise only. </p>
3472+
* Enterprise only. The <code>RELEASED</code> and <code>PRERELEASED</code> work
3473+
* with GitHub only.</p>
34743474
* </note>
34753475
* </li>
34763476
* </ul>
@@ -3492,9 +3492,10 @@ export interface WebhookFilter {
34923492
* <p> A webhook event triggers a build when the head reference matches the
34933493
* regular expression <code>pattern</code>. For example,
34943494
* <code>refs/heads/branch-name</code> and <code>refs/tags/tag-name</code>. </p>
3495-
* <p> Works with GitHub and GitHub Enterprise push, GitHub and GitHub
3496-
* Enterprise pull request, Bitbucket push, and Bitbucket pull request events.
3497-
* </p>
3495+
* <note>
3496+
* <p> Works with GitHub and GitHub Enterprise push, GitHub and GitHub
3497+
* Enterprise pull request, Bitbucket push, and Bitbucket pull request events.</p>
3498+
* </note>
34983499
* </li>
34993500
* </ul>
35003501
* </li>
@@ -3539,6 +3540,30 @@ export interface WebhookFilter {
35393540
* </li>
35403541
* </ul>
35413542
* </li>
3543+
* <li>
3544+
* <p>TAG_NAME</p>
3545+
* <ul>
3546+
* <li>
3547+
* <p>A webhook triggers a build when the tag name of the release matches the
3548+
* regular expression <code>pattern</code>.</p>
3549+
* <note>
3550+
* <p> Works with <code>RELEASED</code> and <code>PRERELEASED</code> events only. </p>
3551+
* </note>
3552+
* </li>
3553+
* </ul>
3554+
* </li>
3555+
* <li>
3556+
* <p>RELEASE_NAME</p>
3557+
* <ul>
3558+
* <li>
3559+
* <p>A webhook triggers a build when the release name matches the
3560+
* regular expression <code>pattern</code>.</p>
3561+
* <note>
3562+
* <p> Works with <code>RELEASED</code> and <code>PRERELEASED</code> events only. </p>
3563+
* </note>
3564+
* </li>
3565+
* </ul>
3566+
* </li>
35423567
* </ul>
35433568
* @public
35443569
*/

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8908,7 +8908,7 @@
89088908
"type": {
89098909
"target": "com.amazonaws.codebuild#WebhookFilterType",
89108910
"traits": {
8911-
"smithy.api#documentation": "<p> The type of webhook filter. There are six webhook filter types: <code>EVENT</code>,\n <code>ACTOR_ACCOUNT_ID</code>, <code>HEAD_REF</code>, <code>BASE_REF</code>,\n <code>FILE_PATH</code>, and <code>COMMIT_MESSAGE</code>. </p>\n <ul>\n <li>\n <p>\n EVENT\n </p>\n <ul>\n <li>\n <p> A webhook event triggers a build when the provided <code>pattern</code>\n matches one of six event types: <code>PUSH</code>,\n <code>PULL_REQUEST_CREATED</code>, <code>PULL_REQUEST_UPDATED</code>, \n <code>PULL_REQUEST_CLOSED</code>, \n <code>PULL_REQUEST_REOPENED</code>, and\n <code>PULL_REQUEST_MERGED</code>. The <code>EVENT</code> patterns are\n specified as a comma-separated string. For example, <code>PUSH,\n PULL_REQUEST_CREATED, PULL_REQUEST_UPDATED</code> filters all push, pull\n request created, and pull request updated events. </p>\n <note>\n <p> The <code>PULL_REQUEST_REOPENED</code> works with GitHub and GitHub\n Enterprise only. </p>\n </note>\n </li>\n </ul>\n </li>\n <li>\n <p>ACTOR_ACCOUNT_ID</p>\n <ul>\n <li>\n <p> A webhook event triggers a build when a GitHub, GitHub Enterprise, or\n Bitbucket account ID matches the regular expression <code>pattern</code>.\n </p>\n </li>\n </ul>\n </li>\n <li>\n <p>HEAD_REF</p>\n <ul>\n <li>\n <p> A webhook event triggers a build when the head reference matches the\n regular expression <code>pattern</code>. For example,\n <code>refs/heads/branch-name</code> and <code>refs/tags/tag-name</code>. </p>\n <p> Works with GitHub and GitHub Enterprise push, GitHub and GitHub\n Enterprise pull request, Bitbucket push, and Bitbucket pull request events.\n </p>\n </li>\n </ul>\n </li>\n <li>\n <p>BASE_REF</p>\n <ul>\n <li>\n <p> A webhook event triggers a build when the base reference matches the\n regular expression <code>pattern</code>. For example,\n <code>refs/heads/branch-name</code>. </p>\n <note>\n <p> Works with pull request events only. </p>\n </note>\n </li>\n </ul>\n </li>\n <li>\n <p>FILE_PATH</p>\n <ul>\n <li>\n <p> A webhook triggers a build when the path of a changed file matches the\n regular expression <code>pattern</code>. </p>\n <note>\n <p> Works with GitHub and Bitbucket events push and pull requests events.\n Also works with GitHub Enterprise push events, but does not work with\n GitHub Enterprise pull request events. </p>\n </note>\n </li>\n </ul>\n </li>\n <li>\n <p>COMMIT_MESSAGE</p>\n <ul>\n <li>\n <p>A webhook triggers a build when the head commit message matches the\n regular expression <code>pattern</code>.</p>\n <note>\n <p> Works with GitHub and Bitbucket events push and pull requests events.\n Also works with GitHub Enterprise push events, but does not work with\n GitHub Enterprise pull request events. </p>\n </note>\n </li>\n </ul>\n </li>\n </ul>",
8911+
"smithy.api#documentation": "<p> The type of webhook filter. There are eight webhook filter types: <code>EVENT</code>,\n <code>ACTOR_ACCOUNT_ID</code>, <code>HEAD_REF</code>, <code>BASE_REF</code>,\n <code>FILE_PATH</code>, <code>COMMIT_MESSAGE</code>, <code>TAG_NAME</code>, and <code>RELEASE_NAME</code>. </p>\n <ul>\n <li>\n <p>\n EVENT\n </p>\n <ul>\n <li>\n <p> A webhook event triggers a build when the provided <code>pattern</code>\n matches one of eight event types: <code>PUSH</code>,\n <code>PULL_REQUEST_CREATED</code>, <code>PULL_REQUEST_UPDATED</code>, \n <code>PULL_REQUEST_CLOSED</code>, <code>PULL_REQUEST_REOPENED</code>, \n <code>PULL_REQUEST_MERGED</code>, <code>RELEASED</code>, and <code>PRERELEASED</code>. The <code>EVENT</code> patterns are\n specified as a comma-separated string. For example, <code>PUSH,\n PULL_REQUEST_CREATED, PULL_REQUEST_UPDATED</code> filters all push, pull\n request created, and pull request updated events. </p>\n <note>\n <p> The <code>PULL_REQUEST_REOPENED</code> works with GitHub and GitHub\n Enterprise only. The <code>RELEASED</code> and <code>PRERELEASED</code> work \n with GitHub only.</p>\n </note>\n </li>\n </ul>\n </li>\n <li>\n <p>ACTOR_ACCOUNT_ID</p>\n <ul>\n <li>\n <p> A webhook event triggers a build when a GitHub, GitHub Enterprise, or\n Bitbucket account ID matches the regular expression <code>pattern</code>.\n </p>\n </li>\n </ul>\n </li>\n <li>\n <p>HEAD_REF</p>\n <ul>\n <li>\n <p> A webhook event triggers a build when the head reference matches the\n regular expression <code>pattern</code>. For example,\n <code>refs/heads/branch-name</code> and <code>refs/tags/tag-name</code>. </p>\n <note>\n <p> Works with GitHub and GitHub Enterprise push, GitHub and GitHub\n Enterprise pull request, Bitbucket push, and Bitbucket pull request events.</p>\n </note>\n </li>\n </ul>\n </li>\n <li>\n <p>BASE_REF</p>\n <ul>\n <li>\n <p> A webhook event triggers a build when the base reference matches the\n regular expression <code>pattern</code>. For example,\n <code>refs/heads/branch-name</code>. </p>\n <note>\n <p> Works with pull request events only. </p>\n </note>\n </li>\n </ul>\n </li>\n <li>\n <p>FILE_PATH</p>\n <ul>\n <li>\n <p> A webhook triggers a build when the path of a changed file matches the\n regular expression <code>pattern</code>. </p>\n <note>\n <p> Works with GitHub and Bitbucket events push and pull requests events.\n Also works with GitHub Enterprise push events, but does not work with\n GitHub Enterprise pull request events. </p>\n </note>\n </li>\n </ul>\n </li>\n <li>\n <p>COMMIT_MESSAGE</p>\n <ul>\n <li>\n <p>A webhook triggers a build when the head commit message matches the\n regular expression <code>pattern</code>.</p>\n <note>\n <p> Works with GitHub and Bitbucket events push and pull requests events.\n Also works with GitHub Enterprise push events, but does not work with\n GitHub Enterprise pull request events. </p>\n </note>\n </li>\n </ul>\n </li>\n <li>\n <p>TAG_NAME</p>\n <ul>\n <li>\n <p>A webhook triggers a build when the tag name of the release matches the \n regular expression <code>pattern</code>.</p>\n <note>\n <p> Works with <code>RELEASED</code> and <code>PRERELEASED</code> events only. </p>\n </note>\n </li>\n </ul>\n </li>\n <li>\n <p>RELEASE_NAME</p>\n <ul>\n <li>\n <p>A webhook triggers a build when the release name matches the \n regular expression <code>pattern</code>.</p>\n <note>\n <p> Works with <code>RELEASED</code> and <code>PRERELEASED</code> events only. </p>\n </note>\n </li>\n </ul>\n </li>\n </ul>",
89128912
"smithy.api#required": {}
89138913
}
89148914
},

0 commit comments

Comments
 (0)