Skip to content

Commit 6f609c2

Browse files
AWS CodeBuild now supports webhook filtering by organization name
1 parent 42e68ae commit 6f609c2

File tree

6 files changed

+32
-49
lines changed

6 files changed

+32
-49
lines changed

generator/ServiceModels/codebuild/codebuild-2016-10-06.api.json

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3008,7 +3008,8 @@
30083008
"WORKFLOW_NAME",
30093009
"TAG_NAME",
30103010
"RELEASE_NAME",
3011-
"REPOSITORY_NAME"
3011+
"REPOSITORY_NAME",
3012+
"ORGANIZATION_NAME"
30123013
]
30133014
},
30143015
"WebhookScopeType":{

generator/ServiceModels/codebuild/codebuild-2016-10-06.docs.json

Lines changed: 2 additions & 2 deletions
Large diffs are not rendered by default.

generator/ServiceModels/codebuild/codebuild-2016-10-06.normal.json

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -3424,7 +3424,7 @@
34243424
"members":{
34253425
"type":{
34263426
"shape":"EnvironmentType",
3427-
"documentation":"<p>The type of build environment to use for related builds.</p> <ul> <li> <p>The environment type <code>ARM_CONTAINER</code> is available only in regions US East (N. Virginia), US East (Ohio), US West (Oregon), EU (Ireland), Asia Pacific (Mumbai), Asia Pacific (Tokyo), Asia Pacific (Sydney), and EU (Frankfurt).</p> </li> <li> <p>The environment type <code>LINUX_CONTAINER</code> is available only in regions US East (N. Virginia), US East (Ohio), US West (Oregon), Canada (Central), EU (Ireland), EU (London), EU (Frankfurt), Asia Pacific (Tokyo), Asia Pacific (Seoul), Asia Pacific (Singapore), Asia Pacific (Sydney), China (Beijing), and China (Ningxia).</p> </li> <li> <p>The environment type <code>LINUX_GPU_CONTAINER</code> is available only in regions US East (N. Virginia), US East (Ohio), US West (Oregon), Canada (Central), EU (Ireland), EU (London), EU (Frankfurt), Asia Pacific (Tokyo), Asia Pacific (Seoul), Asia Pacific (Singapore), Asia Pacific (Sydney) , China (Beijing), and China (Ningxia).</p> </li> </ul> <ul> <li> <p>The environment types <code>ARM_LAMBDA_CONTAINER</code> and <code>LINUX_LAMBDA_CONTAINER</code> are available only in regions US East (N. Virginia), US East (Ohio), US West (Oregon), Asia Pacific (Mumbai), Asia Pacific (Singapore), Asia Pacific (Sydney), Asia Pacific (Tokyo), EU (Frankfurt), EU (Ireland), and South America (São Paulo).</p> </li> </ul> <ul> <li> <p>The environment types <code>WINDOWS_CONTAINER</code> and <code>WINDOWS_SERVER_2019_CONTAINER</code> are available only in regions US East (N. Virginia), US East (Ohio), US West (Oregon), and EU (Ireland).</p> </li> </ul> <note> <p>If you're using compute fleets during project creation, <code>type</code> will be ignored.</p> </note> <p>For more information, see <a href=\"https://docs.aws.amazon.com/codebuild/latest/userguide/build-env-ref-compute-types.html\">Build environment compute types</a> in the <i>CodeBuild user guide</i>.</p>"
3427+
"documentation":"<p>The type of build environment to use for related builds.</p> <note> <p>If you're using compute fleets during project creation, <code>type</code> will be ignored.</p> </note> <p>For more information, see <a href=\"https://docs.aws.amazon.com/codebuild/latest/userguide/build-env-ref-compute-types.html\">Build environment compute types</a> in the <i>CodeBuild user guide</i>.</p>"
34283428
},
34293429
"image":{
34303430
"shape":"NonEmptyString",
@@ -5033,7 +5033,7 @@
50335033
"members":{
50345034
"type":{
50355035
"shape":"WebhookFilterType",
5036-
"documentation":"<p> The type of webhook filter. There are nine webhook filter types: <code>EVENT</code>, <code>ACTOR_ACCOUNT_ID</code>, <code>HEAD_REF</code>, <code>BASE_REF</code>, <code>FILE_PATH</code>, <code>COMMIT_MESSAGE</code>, <code>TAG_NAME</code>, <code>RELEASE_NAME</code>, and <code>WORKFLOW_NAME</code>. </p> <ul> <li> <p> EVENT </p> <ul> <li> <p> A webhook event triggers a build when the provided <code>pattern</code> matches one of nine event types: <code>PUSH</code>, <code>PULL_REQUEST_CREATED</code>, <code>PULL_REQUEST_UPDATED</code>, <code>PULL_REQUEST_CLOSED</code>, <code>PULL_REQUEST_REOPENED</code>, <code>PULL_REQUEST_MERGED</code>, <code>RELEASED</code>, <code>PRERELEASED</code>, and <code>WORKFLOW_JOB_QUEUED</code>. The <code>EVENT</code> patterns are specified as a comma-separated string. For example, <code>PUSH, PULL_REQUEST_CREATED, PULL_REQUEST_UPDATED</code> filters all push, pull request created, and pull request updated events. </p> <note> <p> Types <code>PULL_REQUEST_REOPENED</code> and <code>WORKFLOW_JOB_QUEUED</code> work with GitHub and GitHub Enterprise only. Types <code>RELEASED</code> and <code>PRERELEASED</code> work with GitHub only.</p> </note> </li> </ul> </li> <li> <p>ACTOR_ACCOUNT_ID</p> <ul> <li> <p> A webhook event triggers a build when a GitHub, GitHub Enterprise, or Bitbucket account ID matches the regular expression <code>pattern</code>. </p> </li> </ul> </li> <li> <p>HEAD_REF</p> <ul> <li> <p> A webhook event triggers a build when the head reference matches the regular expression <code>pattern</code>. For example, <code>refs/heads/branch-name</code> and <code>refs/tags/tag-name</code>. </p> <note> <p> Works with GitHub and GitHub Enterprise push, GitHub and GitHub Enterprise pull request, Bitbucket push, and Bitbucket pull request events.</p> </note> </li> </ul> </li> <li> <p>BASE_REF</p> <ul> <li> <p> A webhook event triggers a build when the base reference matches the regular expression <code>pattern</code>. For example, <code>refs/heads/branch-name</code>. </p> <note> <p> Works with pull request events only. </p> </note> </li> </ul> </li> <li> <p>FILE_PATH</p> <ul> <li> <p> A webhook triggers a build when the path of a changed file matches the regular expression <code>pattern</code>. </p> <note> <p> Works with GitHub and Bitbucket events push and pull requests events. Also works with GitHub Enterprise push events, but does not work with GitHub Enterprise pull request events. </p> </note> </li> </ul> </li> <li> <p>COMMIT_MESSAGE</p> <ul> <li> <p>A webhook triggers a build when the head commit message matches the regular expression <code>pattern</code>.</p> <note> <p> Works with GitHub and Bitbucket events push and pull requests events. Also works with GitHub Enterprise push events, but does not work with GitHub Enterprise pull request events. </p> </note> </li> </ul> </li> <li> <p>TAG_NAME</p> <ul> <li> <p>A webhook triggers a build when the tag name of the release matches the regular expression <code>pattern</code>.</p> <note> <p> Works with <code>RELEASED</code> and <code>PRERELEASED</code> events only. </p> </note> </li> </ul> </li> <li> <p>RELEASE_NAME</p> <ul> <li> <p>A webhook triggers a build when the release name matches the regular expression <code>pattern</code>.</p> <note> <p> Works with <code>RELEASED</code> and <code>PRERELEASED</code> events only. </p> </note> </li> </ul> </li> <li> <p>REPOSITORY_NAME</p> <ul> <li> <p>A webhook triggers a build when the repository name matches the regular expression pattern.</p> <note> <p> Works with GitHub global or organization webhooks only. </p> </note> </li> </ul> </li> <li> <p>WORKFLOW_NAME</p> <ul> <li> <p>A webhook triggers a build when the workflow name matches the regular expression <code>pattern</code>.</p> <note> <p> Works with <code>WORKFLOW_JOB_QUEUED</code> events only. </p> </note> <note> <p>For CodeBuild-hosted Buildkite runner builds, WORKFLOW_NAME filters will filter by pipeline name.</p> </note> </li> </ul> </li> </ul>"
5036+
"documentation":"<p> The type of webhook filter. There are 11 webhook filter types: <code>EVENT</code>, <code>ACTOR_ACCOUNT_ID</code>, <code>HEAD_REF</code>, <code>BASE_REF</code>, <code>FILE_PATH</code>, <code>COMMIT_MESSAGE</code>, <code>TAG_NAME</code>, <code>RELEASE_NAME</code>, <code>REPOSITORY_NAME</code>, <code>ORGANIZATION_NAME</code>, and <code>WORKFLOW_NAME</code>. </p> <ul> <li> <p> EVENT </p> <ul> <li> <p> A webhook event triggers a build when the provided <code>pattern</code> matches one of nine event types: <code>PUSH</code>, <code>PULL_REQUEST_CREATED</code>, <code>PULL_REQUEST_UPDATED</code>, <code>PULL_REQUEST_CLOSED</code>, <code>PULL_REQUEST_REOPENED</code>, <code>PULL_REQUEST_MERGED</code>, <code>RELEASED</code>, <code>PRERELEASED</code>, and <code>WORKFLOW_JOB_QUEUED</code>. The <code>EVENT</code> patterns are specified as a comma-separated string. For example, <code>PUSH, PULL_REQUEST_CREATED, PULL_REQUEST_UPDATED</code> filters all push, pull request created, and pull request updated events. </p> <note> <p> Types <code>PULL_REQUEST_REOPENED</code> and <code>WORKFLOW_JOB_QUEUED</code> work with GitHub and GitHub Enterprise only. Types <code>RELEASED</code> and <code>PRERELEASED</code> work with GitHub only.</p> </note> </li> </ul> </li> <li> <p>ACTOR_ACCOUNT_ID</p> <ul> <li> <p> A webhook event triggers a build when a GitHub, GitHub Enterprise, or Bitbucket account ID matches the regular expression <code>pattern</code>. </p> </li> </ul> </li> <li> <p>HEAD_REF</p> <ul> <li> <p> A webhook event triggers a build when the head reference matches the regular expression <code>pattern</code>. For example, <code>refs/heads/branch-name</code> and <code>refs/tags/tag-name</code>. </p> <note> <p> Works with GitHub and GitHub Enterprise push, GitHub and GitHub Enterprise pull request, Bitbucket push, and Bitbucket pull request events.</p> </note> </li> </ul> </li> <li> <p>BASE_REF</p> <ul> <li> <p> A webhook event triggers a build when the base reference matches the regular expression <code>pattern</code>. For example, <code>refs/heads/branch-name</code>. </p> <note> <p> Works with pull request events only. </p> </note> </li> </ul> </li> <li> <p>FILE_PATH</p> <ul> <li> <p> A webhook triggers a build when the path of a changed file matches the regular expression <code>pattern</code>. </p> <note> <p> Works with push and pull request events only. </p> </note> </li> </ul> </li> <li> <p>COMMIT_MESSAGE</p> <ul> <li> <p>A webhook triggers a build when the head commit message matches the regular expression <code>pattern</code>.</p> <note> <p> Works with push and pull request events only. </p> </note> </li> </ul> </li> <li> <p>TAG_NAME</p> <ul> <li> <p>A webhook triggers a build when the tag name of the release matches the regular expression <code>pattern</code>.</p> <note> <p> Works with <code>RELEASED</code> and <code>PRERELEASED</code> events only. </p> </note> </li> </ul> </li> <li> <p>RELEASE_NAME</p> <ul> <li> <p>A webhook triggers a build when the release name matches the regular expression <code>pattern</code>.</p> <note> <p> Works with <code>RELEASED</code> and <code>PRERELEASED</code> events only. </p> </note> </li> </ul> </li> <li> <p>REPOSITORY_NAME</p> <ul> <li> <p>A webhook triggers a build when the repository name matches the regular expression <code>pattern</code>.</p> <note> <p> Works with GitHub global or organization webhooks only. </p> </note> </li> </ul> </li> <li> <p>ORGANIZATION_NAME</p> <ul> <li> <p>A webhook triggers a build when the organization name matches the regular expression <code>pattern</code>.</p> <note> <p> Works with GitHub global webhooks only. </p> </note> </li> </ul> </li> <li> <p>WORKFLOW_NAME</p> <ul> <li> <p>A webhook triggers a build when the workflow name matches the regular expression <code>pattern</code>.</p> <note> <p> Works with <code>WORKFLOW_JOB_QUEUED</code> events only. </p> </note> <note> <p>For CodeBuild-hosted Buildkite runner builds, WORKFLOW_NAME filters will filter by pipeline name.</p> </note> </li> </ul> </li> </ul>"
50375037
},
50385038
"pattern":{
50395039
"shape":"String",
@@ -5058,7 +5058,8 @@
50585058
"WORKFLOW_NAME",
50595059
"TAG_NAME",
50605060
"RELEASE_NAME",
5061-
"REPOSITORY_NAME"
5061+
"REPOSITORY_NAME",
5062+
"ORGANIZATION_NAME"
50625063
]
50635064
},
50645065
"WebhookScopeType":{

sdk/src/Services/CodeBuild/Generated/Model/ProjectEnvironment.cs

Lines changed: 1 addition & 34 deletions
Original file line numberDiff line numberDiff line change
@@ -389,40 +389,7 @@ internal bool IsSetRegistryCredential()
389389
/// <para>
390390
/// The type of build environment to use for related builds.
391391
/// </para>
392-
/// <ul> <li>
393-
/// <para>
394-
/// The environment type <c>ARM_CONTAINER</c> is available only in regions US East (N.
395-
/// Virginia), US East (Ohio), US West (Oregon), EU (Ireland), Asia Pacific (Mumbai),
396-
/// Asia Pacific (Tokyo), Asia Pacific (Sydney), and EU (Frankfurt).
397-
/// </para>
398-
/// </li> <li>
399-
/// <para>
400-
/// The environment type <c>LINUX_CONTAINER</c> is available only in regions US East (N.
401-
/// Virginia), US East (Ohio), US West (Oregon), Canada (Central), EU (Ireland), EU (London),
402-
/// EU (Frankfurt), Asia Pacific (Tokyo), Asia Pacific (Seoul), Asia Pacific (Singapore),
403-
/// Asia Pacific (Sydney), China (Beijing), and China (Ningxia).
404-
/// </para>
405-
/// </li> <li>
406-
/// <para>
407-
/// The environment type <c>LINUX_GPU_CONTAINER</c> is available only in regions US East
408-
/// (N. Virginia), US East (Ohio), US West (Oregon), Canada (Central), EU (Ireland), EU
409-
/// (London), EU (Frankfurt), Asia Pacific (Tokyo), Asia Pacific (Seoul), Asia Pacific
410-
/// (Singapore), Asia Pacific (Sydney) , China (Beijing), and China (Ningxia).
411-
/// </para>
412-
/// </li> </ul> <ul> <li>
413-
/// <para>
414-
/// The environment types <c>ARM_LAMBDA_CONTAINER</c> and <c>LINUX_LAMBDA_CONTAINER</c>
415-
/// are available only in regions US East (N. Virginia), US East (Ohio), US West (Oregon),
416-
/// Asia Pacific (Mumbai), Asia Pacific (Singapore), Asia Pacific (Sydney), Asia Pacific
417-
/// (Tokyo), EU (Frankfurt), EU (Ireland), and South America (São Paulo).
418-
/// </para>
419-
/// </li> </ul> <ul> <li>
420-
/// <para>
421-
/// The environment types <c>WINDOWS_CONTAINER</c> and <c>WINDOWS_SERVER_2019_CONTAINER</c>
422-
/// are available only in regions US East (N. Virginia), US East (Ohio), US West (Oregon),
423-
/// and EU (Ireland).
424-
/// </para>
425-
/// </li> </ul> <note>
392+
/// <note>
426393
/// <para>
427394
/// If you're using compute fleets during project creation, <c>type</c> will be ignored.
428395
/// </para>

sdk/src/Services/CodeBuild/Generated/Model/WebhookFilter.cs

Lines changed: 19 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -91,9 +91,10 @@ internal bool IsSetPattern()
9191
/// <summary>
9292
/// Gets and sets the property Type.
9393
/// <para>
94-
/// The type of webhook filter. There are nine webhook filter types: <c>EVENT</c>, <c>ACTOR_ACCOUNT_ID</c>,
94+
/// The type of webhook filter. There are 11 webhook filter types: <c>EVENT</c>, <c>ACTOR_ACCOUNT_ID</c>,
9595
/// <c>HEAD_REF</c>, <c>BASE_REF</c>, <c>FILE_PATH</c>, <c>COMMIT_MESSAGE</c>, <c>TAG_NAME</c>,
96-
/// <c>RELEASE_NAME</c>, and <c>WORKFLOW_NAME</c>.
96+
/// <c>RELEASE_NAME</c>, <c>REPOSITORY_NAME</c>, <c>ORGANIZATION_NAME</c>, and <c>WORKFLOW_NAME</c>.
97+
///
9798
/// </para>
9899
/// <ul> <li>
99100
/// <para>
@@ -163,9 +164,7 @@ internal bool IsSetPattern()
163164
/// </para>
164165
/// <note>
165166
/// <para>
166-
/// Works with GitHub and Bitbucket events push and pull requests events. Also works
167-
/// with GitHub Enterprise push events, but does not work with GitHub Enterprise pull
168-
/// request events.
167+
/// Works with push and pull request events only.
169168
/// </para>
170169
/// </note> </li> </ul> </li> <li>
171170
/// <para>
@@ -178,9 +177,7 @@ internal bool IsSetPattern()
178177
/// </para>
179178
/// <note>
180179
/// <para>
181-
/// Works with GitHub and Bitbucket events push and pull requests events. Also works
182-
/// with GitHub Enterprise push events, but does not work with GitHub Enterprise pull
183-
/// request events.
180+
/// Works with push and pull request events only.
184181
/// </para>
185182
/// </note> </li> </ul> </li> <li>
186183
/// <para>
@@ -214,14 +211,27 @@ internal bool IsSetPattern()
214211
/// <ul> <li>
215212
/// <para>
216213
/// A webhook triggers a build when the repository name matches the regular expression
217-
/// pattern.
214+
/// <c>pattern</c>.
218215
/// </para>
219216
/// <note>
220217
/// <para>
221218
/// Works with GitHub global or organization webhooks only.
222219
/// </para>
223220
/// </note> </li> </ul> </li> <li>
224221
/// <para>
222+
/// ORGANIZATION_NAME
223+
/// </para>
224+
/// <ul> <li>
225+
/// <para>
226+
/// A webhook triggers a build when the organization name matches the regular expression
227+
/// <c>pattern</c>.
228+
/// </para>
229+
/// <note>
230+
/// <para>
231+
/// Works with GitHub global webhooks only.
232+
/// </para>
233+
/// </note> </li> </ul> </li> <li>
234+
/// <para>
225235
/// WORKFLOW_NAME
226236
/// </para>
227237
/// <ul> <li>

sdk/src/Services/CodeBuild/Generated/ServiceEnumerations.cs

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2741,6 +2741,10 @@ public class WebhookFilterType : ConstantClass
27412741
/// </summary>
27422742
public static readonly WebhookFilterType HEAD_REF = new WebhookFilterType("HEAD_REF");
27432743
/// <summary>
2744+
/// Constant ORGANIZATION_NAME for WebhookFilterType
2745+
/// </summary>
2746+
public static readonly WebhookFilterType ORGANIZATION_NAME = new WebhookFilterType("ORGANIZATION_NAME");
2747+
/// <summary>
27442748
/// Constant RELEASE_NAME for WebhookFilterType
27452749
/// </summary>
27462750
public static readonly WebhookFilterType RELEASE_NAME = new WebhookFilterType("RELEASE_NAME");

0 commit comments

Comments
 (0)