|
80 | 80 | {"shape":"ResourceAlreadyExistsException"},
|
81 | 81 | {"shape":"ResourceNotFoundException"}
|
82 | 82 | ],
|
83 |
| - "documentation":"<p>For an existing AWS CodeBuild build project that has its source code stored in a GitHub or Bitbucket repository, enables AWS CodeBuild to start rebuilding the source code every time a code change is pushed to the repository.</p> <important> <p>If you enable webhooks for an AWS CodeBuild project, and the project is used as a build step in AWS CodePipeline, then two identical builds are created for each commit. One build is triggered through webhooks, and one through AWS CodePipeline. Because billing is on a per-build basis, you are billed for both builds. Therefore, if you are using AWS CodePipeline, we recommend that you disable webhooks in AWS CodeBuild. In the AWS CodeBuild console, clear the Webhook box. For more information, see step 5 in <a href=\"http://docs.aws.amazon.com/codebuild/latest/userguide/change-project.html#change-project-console\">Change a Build Project's Settings</a>.</p> </important>" |
| 83 | + "documentation":"<p>For an existing AWS CodeBuild build project that has its source code stored in a GitHub or Bitbucket repository, enables AWS CodeBuild to start rebuilding the source code every time a code change is pushed to the repository.</p> <important> <p>If you enable webhooks for an AWS CodeBuild project, and the project is used as a build step in AWS CodePipeline, then two identical builds are created for each commit. One build is triggered through webhooks, and one through AWS CodePipeline. Because billing is on a per-build basis, you are billed for both builds. Therefore, if you are using AWS CodePipeline, we recommend that you disable webhooks in AWS CodeBuild. In the AWS CodeBuild console, clear the Webhook box. For more information, see step 5 in <a href=\"https://docs.aws.amazon.com/codebuild/latest/userguide/change-project.html#change-project-console\">Change a Build Project's Settings</a>.</p> </important>" |
84 | 84 | },
|
85 | 85 | "DeleteProject":{
|
86 | 86 | "name":"DeleteProject",
|
|
484 | 484 | },
|
485 | 485 | "encryptionKey":{
|
486 | 486 | "shape":"NonEmptyString",
|
487 |
| - "documentation":"<p>The AWS Key Management Service (AWS KMS) customer master key (CMK) to be used for encrypting the build output artifacts.</p> <p>This is expressed either as the Amazon Resource Name (ARN) of the CMK or, if specified, the CMK's alias (using the format <code>alias/<i>alias-name</i> </code>).</p>" |
| 487 | + "documentation":"<p>The AWS Key Management Service (AWS KMS) customer master key (CMK) to be used for encrypting the build output artifacts.</p> <note> <p> You can use a cross-account KMS key to encrypt the build output artifacts if your service role has permission to that key. </p> </note> <p>You can specify either the Amazon Resource Name (ARN) of the CMK or, if available, the CMK's alias (using the format <code>alias/<i>alias-name</i> </code>).</p>" |
488 | 488 | }
|
489 | 489 | },
|
490 | 490 | "documentation":"<p>Information about a build.</p>"
|
|
620 | 620 | },
|
621 | 621 | "groupName":{
|
622 | 622 | "shape":"String",
|
623 |
| - "documentation":"<p> The group name of the logs in Amazon CloudWatch Logs. For more information, see <a href=\"http://docs.aws.amazon.com/AmazonCloudWatch/latest/logs/Working-with-log-groups-and-streams.html\">Working with Log Groups and Log Streams</a>. </p>" |
| 623 | + "documentation":"<p> The group name of the logs in Amazon CloudWatch Logs. For more information, see <a href=\"https://docs.aws.amazon.com/AmazonCloudWatch/latest/logs/Working-with-log-groups-and-streams.html\">Working with Log Groups and Log Streams</a>. </p>" |
624 | 624 | },
|
625 | 625 | "streamName":{
|
626 | 626 | "shape":"String",
|
627 |
| - "documentation":"<p> The prefix of the stream name of the Amazon CloudWatch Logs. For more information, see <a href=\"http://docs.aws.amazon.com/AmazonCloudWatch/latest/logs/Working-with-log-groups-and-streams.html\">Working with Log Groups and Log Streams</a>. </p>" |
| 627 | + "documentation":"<p> The prefix of the stream name of the Amazon CloudWatch Logs. For more information, see <a href=\"https://docs.aws.amazon.com/AmazonCloudWatch/latest/logs/Working-with-log-groups-and-streams.html\">Working with Log Groups and Log Streams</a>. </p>" |
628 | 628 | }
|
629 | 629 | },
|
630 | 630 | "documentation":"<p> Information about Amazon CloudWatch Logs for a build project. </p>"
|
|
693 | 693 | },
|
694 | 694 | "encryptionKey":{
|
695 | 695 | "shape":"NonEmptyString",
|
696 |
| - "documentation":"<p>The AWS Key Management Service (AWS KMS) customer master key (CMK) to be used for encrypting the build output artifacts.</p> <p>You can specify either the Amazon Resource Name (ARN) of the CMK or, if available, the CMK's alias (using the format <code>alias/<i>alias-name</i> </code>).</p>" |
| 696 | + "documentation":"<p>The AWS Key Management Service (AWS KMS) customer master key (CMK) to be used for encrypting the build output artifacts.</p> <note> <p> You can use a cross-account KMS key to encrypt the build output artifacts if your service role has permission to that key. </p> </note> <p>You can specify either the Amazon Resource Name (ARN) of the CMK or, if available, the CMK's alias (using the format <code>alias/<i>alias-name</i> </code>).</p>" |
697 | 697 | },
|
698 | 698 | "tags":{
|
699 | 699 | "shape":"TagList",
|
|
732 | 732 | },
|
733 | 733 | "branchFilter":{
|
734 | 734 | "shape":"String",
|
735 |
| - "documentation":"<p>A regular expression used to determine which repository branches are built when a webhook is triggered. If the name of a branch matches the regular expression, then it is built. If <code>branchFilter</code> is empty, then all branches are built.</p>" |
| 735 | + "documentation":"<p>A regular expression used to determine which repository branches are built when a webhook is triggered. If the name of a branch matches the regular expression, then it is built. If <code>branchFilter</code> is empty, then all branches are built.</p> <note> <p> It is recommended that you use <code>filterGroups</code> instead of <code>branchFilter</code>. </p> </note>" |
| 736 | + }, |
| 737 | + "filterGroups":{ |
| 738 | + "shape":"FilterGroups", |
| 739 | + "documentation":"<p> An array of arrays of <code>WebhookFilter</code> objects used to determine which webhooks are triggered. At least one <code>WebhookFilter</code> in the array must specify <code>EVENT</code> as its <code>type</code>. </p> <p> For a build to be triggered, at least one filter group in the <code>filterGroups</code> array must pass. For a filter group to pass, each of its filters must pass. </p>" |
736 | 740 | }
|
737 | 741 | }
|
738 | 742 | },
|
|
896 | 900 | "type":"list",
|
897 | 901 | "member":{"shape":"EnvironmentVariable"}
|
898 | 902 | },
|
| 903 | + "FilterGroup":{ |
| 904 | + "type":"list", |
| 905 | + "member":{"shape":"WebhookFilter"} |
| 906 | + }, |
| 907 | + "FilterGroups":{ |
| 908 | + "type":"list", |
| 909 | + "member":{"shape":"FilterGroup"} |
| 910 | + }, |
899 | 911 | "GitCloneDepth":{
|
900 | 912 | "type":"integer",
|
901 | 913 | "min":0
|
|
1260 | 1272 | },
|
1261 | 1273 | "encryptionKey":{
|
1262 | 1274 | "shape":"NonEmptyString",
|
1263 |
| - "documentation":"<p>The AWS Key Management Service (AWS KMS) customer master key (CMK) to be used for encrypting the build output artifacts.</p> <p>This is expressed either as the Amazon Resource Name (ARN) of the CMK or, if specified, the CMK's alias (using the format <code>alias/<i>alias-name</i> </code>).</p>" |
| 1275 | + "documentation":"<p>The AWS Key Management Service (AWS KMS) customer master key (CMK) to be used for encrypting the build output artifacts.</p> <note> <p> You can use a cross-account KMS key to encrypt the build output artifacts if your service role has permission to that key. </p> </note> <p>You can specify either the Amazon Resource Name (ARN) of the CMK or, if available, the CMK's alias (using the format <code>alias/<i>alias-name</i> </code>).</p>" |
1264 | 1276 | },
|
1265 | 1277 | "tags":{
|
1266 | 1278 | "shape":"TagList",
|
|
1528 | 1540 | "documentation":"<p> The service that created the credentials to access a private Docker registry. The valid value, SECRETS_MANAGER, is for AWS Secrets Manager. </p>"
|
1529 | 1541 | }
|
1530 | 1542 | },
|
1531 |
| - "documentation":"<p> Information about credentials that provide access to a private Docker registry. When this is set: </p> <ul> <li> <p> <code>imagePullCredentialsType</code> must be set to <code>SERVICE_ROLE</code>. </p> </li> <li> <p> images cannot be curated or an Amazon ECR image.</p> </li> </ul> <p> For more information, see <a href=\"http://docs.aws.amazon.com/codebuild/latest/userguide/sample-private-registry.html\">Private Registry with AWS Secrets Manager Samle for AWS CodeBuild</a>. </p>" |
| 1543 | + "documentation":"<p> Information about credentials that provide access to a private Docker registry. When this is set: </p> <ul> <li> <p> <code>imagePullCredentialsType</code> must be set to <code>SERVICE_ROLE</code>. </p> </li> <li> <p> images cannot be curated or an Amazon ECR image.</p> </li> </ul> <p> For more information, see <a href=\"https://docs.aws.amazon.com/codebuild/latest/userguide/sample-private-registry.html\">Private Registry with AWS Secrets Manager Sample for AWS CodeBuild</a>. </p>" |
1532 | 1544 | },
|
1533 | 1545 | "ResourceAlreadyExistsException":{
|
1534 | 1546 | "type":"structure",
|
|
1872 | 1884 | },
|
1873 | 1885 | "encryptionKey":{
|
1874 | 1886 | "shape":"NonEmptyString",
|
1875 |
| - "documentation":"<p>The replacement AWS Key Management Service (AWS KMS) customer master key (CMK) to be used for encrypting the build output artifacts.</p> <p>You can specify either the Amazon Resource Name (ARN)of the CMK or, if available, the CMK's alias (using the format <code>alias/<i>alias-name</i> </code>).</p>" |
| 1887 | + "documentation":"<p>The AWS Key Management Service (AWS KMS) customer master key (CMK) to be used for encrypting the build output artifacts.</p> <note> <p> You can use a cross-account KMS key to encrypt the build output artifacts if your service role has permission to that key. </p> </note> <p>You can specify either the Amazon Resource Name (ARN) of the CMK or, if available, the CMK's alias (using the format <code>alias/<i>alias-name</i> </code>).</p>" |
1876 | 1888 | },
|
1877 | 1889 | "tags":{
|
1878 | 1890 | "shape":"TagList",
|
|
1911 | 1923 | },
|
1912 | 1924 | "branchFilter":{
|
1913 | 1925 | "shape":"String",
|
1914 |
| - "documentation":"<p>A regular expression used to determine which repository branches are built when a webhook is triggered. If the name of a branch matches the regular expression, then it is built. If <code>branchFilter</code> is empty, then all branches are built.</p>" |
| 1926 | + "documentation":"<p>A regular expression used to determine which repository branches are built when a webhook is triggered. If the name of a branch matches the regular expression, then it is built. If <code>branchFilter</code> is empty, then all branches are built.</p> <note> <p> It is recommended that you use <code>filterGroups</code> instead of <code>branchFilter</code>. </p> </note>" |
| 1927 | + }, |
| 1928 | + "filterGroups":{ |
| 1929 | + "shape":"FilterGroups", |
| 1930 | + "documentation":"<p> An array of arrays of <code>WebhookFilter</code> objects used to determine if a webhook event can trigger a build. A filter group must pcontain at least one <code>EVENT</code> <code>WebhookFilter</code>. </p>" |
1915 | 1931 | },
|
1916 | 1932 | "rotateSecret":{
|
1917 | 1933 | "shape":"Boolean",
|
|
1969 | 1985 | },
|
1970 | 1986 | "branchFilter":{
|
1971 | 1987 | "shape":"String",
|
1972 |
| - "documentation":"<p>A regular expression used to determine which repository branches are built when a webhook is triggered. If the name of a branch matches the regular expression, then it is built. If <code>branchFilter</code> is empty, then all branches are built.</p>" |
| 1988 | + "documentation":"<p>A regular expression used to determine which repository branches are built when a webhook is triggered. If the name of a branch matches the regular expression, then it is built. If <code>branchFilter</code> is empty, then all branches are built.</p> <note> <p> It is recommended that you use <code>filterGroups</code> instead of <code>branchFilter</code>. </p> </note>" |
| 1989 | + }, |
| 1990 | + "filterGroups":{ |
| 1991 | + "shape":"FilterGroups", |
| 1992 | + "documentation":"<p> An array of arrays of <code>WebhookFilter</code> objects used to determine which webhooks are triggered. At least one <code>WebhookFilter</code> in the array must specify <code>EVENT</code> as its <code>type</code>. </p> <p> For a build to be triggered, at least one filter group in the <code>filterGroups</code> array must pass. For a filter group to pass, each of its filters must pass. </p>" |
1973 | 1993 | },
|
1974 | 1994 | "lastModifiedSecret":{
|
1975 | 1995 | "shape":"Timestamp",
|
|
1978 | 1998 | },
|
1979 | 1999 | "documentation":"<p>Information about a webhook that connects repository events to a build project in AWS CodeBuild.</p>"
|
1980 | 2000 | },
|
| 2001 | + "WebhookFilter":{ |
| 2002 | + "type":"structure", |
| 2003 | + "required":[ |
| 2004 | + "type", |
| 2005 | + "pattern" |
| 2006 | + ], |
| 2007 | + "members":{ |
| 2008 | + "type":{ |
| 2009 | + "shape":"WebhookFilterType", |
| 2010 | + "documentation":"<p> The type of webhook filter. There are five webhook filter types: <code>EVENT</code>, <code>ACTOR_ACCOUNT_ID</code>, <code>HEAD_REF</code>, <code>BASE_REF</code>, and <code>FILE_PATH</code>. </p> <dl> <dt> EVENT </dt> <dd> <p> A webhook event triggers a build when the provided <code>pattern</code> matches one of four event types: <code>PUSH</code>, <code>PULL_REQUEST_CREATED</code>, <code>PULL_REQUEST_UPDATED</code>, and <code>PULL_REQUEST_REOPENED</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> The <code>PULL_REQUEST_REOPENED</code> works with GitHub and GitHub Enterprise only. </p> </note> </dd> <dt> ACTOR_ACCOUNT_ID </dt> <dd> <p> A webhook event triggers a build when a GitHub, GitHub Enterprise, or Bitbucket account ID matches the regular expression <code>pattern</code>. </p> </dd> <dt> HEAD_REF </dt> <dd> <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> <p> Works with GitHub and GitHub Enterprise push, GitHub and GitHub Enterprise pull request, Bitbucket push, and Bitbucket pull request events. </p> </dd> <dt> BASE_REF </dt> <dd> <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> </dd> <dt> FILE_PATH </dt> <dd> <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 GitHub Enterprise push events only. </p> </note> </dd> </dl>" |
| 2011 | + }, |
| 2012 | + "pattern":{ |
| 2013 | + "shape":"String", |
| 2014 | + "documentation":"<p> For a <code>WebHookFilter</code> that uses <code>EVENT</code> type, a comma-separated string that specifies one or more events. For example, the webhook filter <code>PUSH, PULL_REQUEST_CREATED, PULL_REQUEST_UPDATED</code> allows all push, pull request created, and pull request updated events to trigger a build. </p> <p> For a <code>WebHookFilter</code> that uses any of the other filter types, a regular expression pattern. For example, a <code>WebHookFilter</code> that uses <code>HEAD_REF</code> for its <code>type</code> and the pattern <code>^refs/heads/</code> triggers a build when the head reference is a branch with a reference name <code>refs/heads/branch-name</code>. </p>" |
| 2015 | + }, |
| 2016 | + "excludeMatchedPattern":{ |
| 2017 | + "shape":"WrapperBoolean", |
| 2018 | + "documentation":"<p> Used to indicate that the <code>pattern</code> determines which webhook events do not trigger a build. If true, then a webhook event that does not match the <code>pattern</code> triggers a build. If false, then a webhook event that matches the <code>pattern</code> triggers a build. </p>" |
| 2019 | + } |
| 2020 | + }, |
| 2021 | + "documentation":"<p> A filter used to determine which webhooks trigger a build. </p>" |
| 2022 | + }, |
| 2023 | + "WebhookFilterType":{ |
| 2024 | + "type":"string", |
| 2025 | + "enum":[ |
| 2026 | + "EVENT", |
| 2027 | + "BASE_REF", |
| 2028 | + "HEAD_REF", |
| 2029 | + "ACTOR_ACCOUNT_ID", |
| 2030 | + "FILE_PATH" |
| 2031 | + ] |
| 2032 | + }, |
1981 | 2033 | "WrapperBoolean":{"type":"boolean"},
|
1982 | 2034 | "WrapperInt":{"type":"integer"},
|
1983 | 2035 | "WrapperLong":{"type":"long"}
|
|
0 commit comments