@aws-sdk/client-codebuild 3.862.0 → 3.864.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist-cjs/index.js CHANGED
@@ -110,6 +110,8 @@ __export(index_exports, {
110
110
  PlatformType: () => PlatformType,
111
111
  ProjectSortByType: () => ProjectSortByType,
112
112
  ProjectVisibilityType: () => ProjectVisibilityType,
113
+ PullRequestBuildApproverRole: () => PullRequestBuildApproverRole,
114
+ PullRequestBuildCommentApproval: () => PullRequestBuildCommentApproval,
113
115
  PutResourcePolicyCommand: () => PutResourcePolicyCommand,
114
116
  ReportCodeCoverageSortByType: () => ReportCodeCoverageSortByType,
115
117
  ReportExportConfigType: () => ReportExportConfigType,
@@ -647,6 +649,27 @@ var ResourceAlreadyExistsException = class _ResourceAlreadyExistsException exten
647
649
  Object.setPrototypeOf(this, _ResourceAlreadyExistsException.prototype);
648
650
  }
649
651
  };
652
+ var PullRequestBuildApproverRole = {
653
+ BITBUCKET_ADMIN: "BITBUCKET_ADMIN",
654
+ BITBUCKET_READ: "BITBUCKET_READ",
655
+ BITBUCKET_WRITE: "BITBUCKET_WRITE",
656
+ GITHUB_ADMIN: "GITHUB_ADMIN",
657
+ GITHUB_MAINTAIN: "GITHUB_MAINTAIN",
658
+ GITHUB_READ: "GITHUB_READ",
659
+ GITHUB_TRIAGE: "GITHUB_TRIAGE",
660
+ GITHUB_WRITE: "GITHUB_WRITE",
661
+ GITLAB_DEVELOPER: "GITLAB_DEVELOPER",
662
+ GITLAB_GUEST: "GITLAB_GUEST",
663
+ GITLAB_MAINTAINER: "GITLAB_MAINTAINER",
664
+ GITLAB_OWNER: "GITLAB_OWNER",
665
+ GITLAB_PLANNER: "GITLAB_PLANNER",
666
+ GITLAB_REPORTER: "GITLAB_REPORTER"
667
+ };
668
+ var PullRequestBuildCommentApproval = {
669
+ ALL_PULL_REQUESTS: "ALL_PULL_REQUESTS",
670
+ DISABLED: "DISABLED",
671
+ FORK_PULL_REQUESTS: "FORK_PULL_REQUESTS"
672
+ };
650
673
  var OAuthProviderException = class _OAuthProviderException extends CodeBuildServiceException {
651
674
  static {
652
675
  __name(this, "OAuthProviderException");
@@ -3811,6 +3834,8 @@ var paginateListSharedReportGroups = (0, import_core.createPaginator)(CodeBuildC
3811
3834
  ReportType,
3812
3835
  ReportStatusType,
3813
3836
  ResourceAlreadyExistsException,
3837
+ PullRequestBuildApproverRole,
3838
+ PullRequestBuildCommentApproval,
3814
3839
  OAuthProviderException,
3815
3840
  ResourceNotFoundException,
3816
3841
  ReportCodeCoverageSortByType,
@@ -282,6 +282,27 @@ export class ResourceAlreadyExistsException extends __BaseException {
282
282
  Object.setPrototypeOf(this, ResourceAlreadyExistsException.prototype);
283
283
  }
284
284
  }
285
+ export const PullRequestBuildApproverRole = {
286
+ BITBUCKET_ADMIN: "BITBUCKET_ADMIN",
287
+ BITBUCKET_READ: "BITBUCKET_READ",
288
+ BITBUCKET_WRITE: "BITBUCKET_WRITE",
289
+ GITHUB_ADMIN: "GITHUB_ADMIN",
290
+ GITHUB_MAINTAIN: "GITHUB_MAINTAIN",
291
+ GITHUB_READ: "GITHUB_READ",
292
+ GITHUB_TRIAGE: "GITHUB_TRIAGE",
293
+ GITHUB_WRITE: "GITHUB_WRITE",
294
+ GITLAB_DEVELOPER: "GITLAB_DEVELOPER",
295
+ GITLAB_GUEST: "GITLAB_GUEST",
296
+ GITLAB_MAINTAINER: "GITLAB_MAINTAINER",
297
+ GITLAB_OWNER: "GITLAB_OWNER",
298
+ GITLAB_PLANNER: "GITLAB_PLANNER",
299
+ GITLAB_REPORTER: "GITLAB_REPORTER",
300
+ };
301
+ export const PullRequestBuildCommentApproval = {
302
+ ALL_PULL_REQUESTS: "ALL_PULL_REQUESTS",
303
+ DISABLED: "DISABLED",
304
+ FORK_PULL_REQUESTS: "FORK_PULL_REQUESTS",
305
+ };
285
306
  export class OAuthProviderException extends __BaseException {
286
307
  name = "OAuthProviderException";
287
308
  $fault = "client";
@@ -63,6 +63,12 @@ declare const CreateWebhookCommand_base: {
63
63
  * domain: "STRING_VALUE",
64
64
  * scope: "GITHUB_ORGANIZATION" || "GITHUB_GLOBAL" || "GITLAB_GROUP", // required
65
65
  * },
66
+ * pullRequestBuildPolicy: { // PullRequestBuildPolicy
67
+ * requiresCommentApproval: "DISABLED" || "ALL_PULL_REQUESTS" || "FORK_PULL_REQUESTS", // required
68
+ * approverRoles: [ // PullRequestBuildApproverRoles
69
+ * "GITHUB_READ" || "GITHUB_TRIAGE" || "GITHUB_WRITE" || "GITHUB_MAINTAIN" || "GITHUB_ADMIN" || "GITLAB_GUEST" || "GITLAB_PLANNER" || "GITLAB_REPORTER" || "GITLAB_DEVELOPER" || "GITLAB_MAINTAINER" || "GITLAB_OWNER" || "BITBUCKET_READ" || "BITBUCKET_WRITE" || "BITBUCKET_ADMIN",
70
+ * ],
71
+ * },
66
72
  * };
67
73
  * const command = new CreateWebhookCommand(input);
68
74
  * const response = await client.send(command);
@@ -52,6 +52,12 @@ declare const UpdateWebhookCommand_base: {
52
52
  * ],
53
53
  * ],
54
54
  * buildType: "BUILD" || "BUILD_BATCH" || "RUNNER_BUILDKITE_BUILD",
55
+ * pullRequestBuildPolicy: { // PullRequestBuildPolicy
56
+ * requiresCommentApproval: "DISABLED" || "ALL_PULL_REQUESTS" || "FORK_PULL_REQUESTS", // required
57
+ * approverRoles: [ // PullRequestBuildApproverRoles
58
+ * "GITHUB_READ" || "GITHUB_TRIAGE" || "GITHUB_WRITE" || "GITHUB_MAINTAIN" || "GITHUB_ADMIN" || "GITLAB_GUEST" || "GITLAB_PLANNER" || "GITLAB_REPORTER" || "GITLAB_DEVELOPER" || "GITLAB_MAINTAINER" || "GITLAB_OWNER" || "BITBUCKET_READ" || "BITBUCKET_WRITE" || "BITBUCKET_ADMIN",
59
+ * ],
60
+ * },
55
61
  * };
56
62
  * const command = new UpdateWebhookCommand(input);
57
63
  * const response = await client.send(command);
@@ -5424,6 +5424,73 @@ export interface CreateReportGroupOutput {
5424
5424
  */
5425
5425
  reportGroup?: ReportGroup | undefined;
5426
5426
  }
5427
+ /**
5428
+ * @public
5429
+ * @enum
5430
+ */
5431
+ export declare const PullRequestBuildApproverRole: {
5432
+ readonly BITBUCKET_ADMIN: "BITBUCKET_ADMIN";
5433
+ readonly BITBUCKET_READ: "BITBUCKET_READ";
5434
+ readonly BITBUCKET_WRITE: "BITBUCKET_WRITE";
5435
+ readonly GITHUB_ADMIN: "GITHUB_ADMIN";
5436
+ readonly GITHUB_MAINTAIN: "GITHUB_MAINTAIN";
5437
+ readonly GITHUB_READ: "GITHUB_READ";
5438
+ readonly GITHUB_TRIAGE: "GITHUB_TRIAGE";
5439
+ readonly GITHUB_WRITE: "GITHUB_WRITE";
5440
+ readonly GITLAB_DEVELOPER: "GITLAB_DEVELOPER";
5441
+ readonly GITLAB_GUEST: "GITLAB_GUEST";
5442
+ readonly GITLAB_MAINTAINER: "GITLAB_MAINTAINER";
5443
+ readonly GITLAB_OWNER: "GITLAB_OWNER";
5444
+ readonly GITLAB_PLANNER: "GITLAB_PLANNER";
5445
+ readonly GITLAB_REPORTER: "GITLAB_REPORTER";
5446
+ };
5447
+ /**
5448
+ * @public
5449
+ */
5450
+ export type PullRequestBuildApproverRole = (typeof PullRequestBuildApproverRole)[keyof typeof PullRequestBuildApproverRole];
5451
+ /**
5452
+ * @public
5453
+ * @enum
5454
+ */
5455
+ export declare const PullRequestBuildCommentApproval: {
5456
+ readonly ALL_PULL_REQUESTS: "ALL_PULL_REQUESTS";
5457
+ readonly DISABLED: "DISABLED";
5458
+ readonly FORK_PULL_REQUESTS: "FORK_PULL_REQUESTS";
5459
+ };
5460
+ /**
5461
+ * @public
5462
+ */
5463
+ export type PullRequestBuildCommentApproval = (typeof PullRequestBuildCommentApproval)[keyof typeof PullRequestBuildCommentApproval];
5464
+ /**
5465
+ * <p>Configuration policy that defines comment-based approval requirements for triggering builds on pull requests. This policy helps control when automated builds are executed based on contributor permissions and approval workflows.</p>
5466
+ * @public
5467
+ */
5468
+ export interface PullRequestBuildPolicy {
5469
+ /**
5470
+ * <p>Specifies when comment-based approval is required before triggering a build on pull requests. This setting determines whether builds run automatically or require explicit approval through comments.</p>
5471
+ * <ul>
5472
+ * <li>
5473
+ * <p>
5474
+ * <i>DISABLED</i>: Builds trigger automatically without requiring comment approval</p>
5475
+ * </li>
5476
+ * <li>
5477
+ * <p>
5478
+ * <i>ALL_PULL_REQUESTS</i>: All pull requests require comment approval before builds execute (unless contributor is one of the approver roles)</p>
5479
+ * </li>
5480
+ * <li>
5481
+ * <p>
5482
+ * <i>FORK_PULL_REQUESTS</i>: Only pull requests from forked repositories require comment approval (unless contributor is one of the approver roles)</p>
5483
+ * </li>
5484
+ * </ul>
5485
+ * @public
5486
+ */
5487
+ requiresCommentApproval: PullRequestBuildCommentApproval | undefined;
5488
+ /**
5489
+ * <p>List of repository roles that have approval privileges for pull request builds when comment approval is required. Only users with these roles can provide valid comment approvals. If a pull request contributor is one of these roles, their pull request builds will trigger automatically. This field is only applicable when <code>requiresCommentApproval</code> is not <i>DISABLED</i>.</p>
5490
+ * @public
5491
+ */
5492
+ approverRoles?: PullRequestBuildApproverRole[] | undefined;
5493
+ }
5427
5494
  /**
5428
5495
  * @public
5429
5496
  */
@@ -5484,6 +5551,11 @@ export interface CreateWebhookInput {
5484
5551
  * @public
5485
5552
  */
5486
5553
  scopeConfiguration?: ScopeConfiguration | undefined;
5554
+ /**
5555
+ * <p>A PullRequestBuildPolicy object that defines comment-based approval requirements for triggering builds on pull requests. This policy helps control when automated builds are executed based on contributor permissions and approval workflows.</p>
5556
+ * @public
5557
+ */
5558
+ pullRequestBuildPolicy?: PullRequestBuildPolicy | undefined;
5487
5559
  }
5488
5560
  /**
5489
5561
  * @public
@@ -7543,7 +7615,8 @@ export interface StartBuildInput {
7543
7615
  * <p>Since this property allows you to change the build commands that will run in the container,
7544
7616
  * you should note that an IAM principal with the ability to call this API and set this parameter
7545
7617
  * can override the default settings. Moreover, we encourage that you use a trustworthy buildspec location
7546
- * like a file in your source repository or a Amazon S3 bucket.</p>
7618
+ * like a file in your source repository or a Amazon S3 bucket. Alternatively, you can restrict overrides
7619
+ * to the buildspec by using a condition key: <a href="https://docs.aws.amazon.com/codebuild/latest/userguide/action-context-keys.html#action-context-keys-example-overridebuildspec.html">Prevent unauthorized modifications to project buildspec</a>.</p>
7547
7620
  * </note>
7548
7621
  * @public
7549
7622
  */
@@ -8739,6 +8812,11 @@ export interface UpdateWebhookInput {
8739
8812
  * @public
8740
8813
  */
8741
8814
  buildType?: WebhookBuildType | undefined;
8815
+ /**
8816
+ * <p>A PullRequestBuildPolicy object that defines comment-based approval requirements for triggering builds on pull requests. This policy helps control when automated builds are executed based on contributor permissions and approval workflows.</p>
8817
+ * @public
8818
+ */
8819
+ pullRequestBuildPolicy?: PullRequestBuildPolicy | undefined;
8742
8820
  }
8743
8821
  /**
8744
8822
  * @public
@@ -943,6 +943,35 @@ export interface CreateReportGroupInput {
943
943
  export interface CreateReportGroupOutput {
944
944
  reportGroup?: ReportGroup | undefined;
945
945
  }
946
+ export declare const PullRequestBuildApproverRole: {
947
+ readonly BITBUCKET_ADMIN: "BITBUCKET_ADMIN";
948
+ readonly BITBUCKET_READ: "BITBUCKET_READ";
949
+ readonly BITBUCKET_WRITE: "BITBUCKET_WRITE";
950
+ readonly GITHUB_ADMIN: "GITHUB_ADMIN";
951
+ readonly GITHUB_MAINTAIN: "GITHUB_MAINTAIN";
952
+ readonly GITHUB_READ: "GITHUB_READ";
953
+ readonly GITHUB_TRIAGE: "GITHUB_TRIAGE";
954
+ readonly GITHUB_WRITE: "GITHUB_WRITE";
955
+ readonly GITLAB_DEVELOPER: "GITLAB_DEVELOPER";
956
+ readonly GITLAB_GUEST: "GITLAB_GUEST";
957
+ readonly GITLAB_MAINTAINER: "GITLAB_MAINTAINER";
958
+ readonly GITLAB_OWNER: "GITLAB_OWNER";
959
+ readonly GITLAB_PLANNER: "GITLAB_PLANNER";
960
+ readonly GITLAB_REPORTER: "GITLAB_REPORTER";
961
+ };
962
+ export type PullRequestBuildApproverRole =
963
+ (typeof PullRequestBuildApproverRole)[keyof typeof PullRequestBuildApproverRole];
964
+ export declare const PullRequestBuildCommentApproval: {
965
+ readonly ALL_PULL_REQUESTS: "ALL_PULL_REQUESTS";
966
+ readonly DISABLED: "DISABLED";
967
+ readonly FORK_PULL_REQUESTS: "FORK_PULL_REQUESTS";
968
+ };
969
+ export type PullRequestBuildCommentApproval =
970
+ (typeof PullRequestBuildCommentApproval)[keyof typeof PullRequestBuildCommentApproval];
971
+ export interface PullRequestBuildPolicy {
972
+ requiresCommentApproval: PullRequestBuildCommentApproval | undefined;
973
+ approverRoles?: PullRequestBuildApproverRole[] | undefined;
974
+ }
946
975
  export interface CreateWebhookInput {
947
976
  projectName: string | undefined;
948
977
  branchFilter?: string | undefined;
@@ -950,6 +979,7 @@ export interface CreateWebhookInput {
950
979
  buildType?: WebhookBuildType | undefined;
951
980
  manualCreation?: boolean | undefined;
952
981
  scopeConfiguration?: ScopeConfiguration | undefined;
982
+ pullRequestBuildPolicy?: PullRequestBuildPolicy | undefined;
953
983
  }
954
984
  export interface CreateWebhookOutput {
955
985
  webhook?: Webhook | undefined;
@@ -1555,6 +1585,7 @@ export interface UpdateWebhookInput {
1555
1585
  rotateSecret?: boolean | undefined;
1556
1586
  filterGroups?: WebhookFilter[][] | undefined;
1557
1587
  buildType?: WebhookBuildType | undefined;
1588
+ pullRequestBuildPolicy?: PullRequestBuildPolicy | undefined;
1558
1589
  }
1559
1590
  export interface UpdateWebhookOutput {
1560
1591
  webhook?: Webhook | undefined;
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@aws-sdk/client-codebuild",
3
3
  "description": "AWS SDK for JavaScript Codebuild Client for Node.js, Browser and React Native",
4
- "version": "3.862.0",
4
+ "version": "3.864.0",
5
5
  "scripts": {
6
6
  "build": "concurrently 'yarn:build:cjs' 'yarn:build:es' 'yarn:build:types'",
7
7
  "build:cjs": "node ../../scripts/compilation/inline client-codebuild",
@@ -20,17 +20,17 @@
20
20
  "dependencies": {
21
21
  "@aws-crypto/sha256-browser": "5.2.0",
22
22
  "@aws-crypto/sha256-js": "5.2.0",
23
- "@aws-sdk/core": "3.862.0",
24
- "@aws-sdk/credential-provider-node": "3.862.0",
23
+ "@aws-sdk/core": "3.864.0",
24
+ "@aws-sdk/credential-provider-node": "3.864.0",
25
25
  "@aws-sdk/middleware-host-header": "3.862.0",
26
26
  "@aws-sdk/middleware-logger": "3.862.0",
27
27
  "@aws-sdk/middleware-recursion-detection": "3.862.0",
28
- "@aws-sdk/middleware-user-agent": "3.862.0",
28
+ "@aws-sdk/middleware-user-agent": "3.864.0",
29
29
  "@aws-sdk/region-config-resolver": "3.862.0",
30
30
  "@aws-sdk/types": "3.862.0",
31
31
  "@aws-sdk/util-endpoints": "3.862.0",
32
32
  "@aws-sdk/util-user-agent-browser": "3.862.0",
33
- "@aws-sdk/util-user-agent-node": "3.862.0",
33
+ "@aws-sdk/util-user-agent-node": "3.864.0",
34
34
  "@smithy/config-resolver": "^4.1.5",
35
35
  "@smithy/core": "^3.8.0",
36
36
  "@smithy/fetch-http-handler": "^5.1.1",