@aws-sdk/client-codebuild 3.598.0 → 3.600.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 +7 -0
- package/dist-es/models/models_0.js +4 -0
- package/dist-es/protocols/Aws_json1_1.js +1 -0
- package/dist-types/commands/BatchGetProjectsCommand.d.ts +5 -0
- package/dist-types/commands/CreateProjectCommand.d.ts +5 -0
- package/dist-types/commands/CreateWebhookCommand.d.ts +10 -0
- package/dist-types/commands/UpdateProjectCommand.d.ts +5 -0
- package/dist-types/commands/UpdateWebhookCommand.d.ts +5 -0
- package/dist-types/models/models_0.d.ts +61 -0
- package/dist-types/ts3.4/models/models_0.d.ts +13 -0
- package/package.json +4 -4
package/dist-cjs/index.js
CHANGED
|
@@ -125,6 +125,7 @@ __export(src_exports, {
|
|
|
125
125
|
UpdateWebhookCommand: () => UpdateWebhookCommand,
|
|
126
126
|
WebhookBuildType: () => WebhookBuildType,
|
|
127
127
|
WebhookFilterType: () => WebhookFilterType,
|
|
128
|
+
WebhookScopeType: () => WebhookScopeType,
|
|
128
129
|
__Client: () => import_smithy_client.Client,
|
|
129
130
|
paginateDescribeCodeCoverages: () => paginateDescribeCodeCoverages,
|
|
130
131
|
paginateDescribeTestCases: () => paginateDescribeTestCases,
|
|
@@ -515,6 +516,10 @@ var WebhookFilterType = {
|
|
|
515
516
|
TAG_NAME: "TAG_NAME",
|
|
516
517
|
WORKFLOW_NAME: "WORKFLOW_NAME"
|
|
517
518
|
};
|
|
519
|
+
var WebhookScopeType = {
|
|
520
|
+
GITHUB_GLOBAL: "GITHUB_GLOBAL",
|
|
521
|
+
GITHUB_ORGANIZATION: "GITHUB_ORGANIZATION"
|
|
522
|
+
};
|
|
518
523
|
var ReportExportConfigType = {
|
|
519
524
|
NO_EXPORT: "NO_EXPORT",
|
|
520
525
|
S3: "S3"
|
|
@@ -2187,6 +2192,7 @@ var de_Webhook = /* @__PURE__ */ __name((output, context) => {
|
|
|
2187
2192
|
lastModifiedSecret: (_) => (0, import_smithy_client.expectNonNull)((0, import_smithy_client.parseEpochTimestamp)((0, import_smithy_client.expectNumber)(_))),
|
|
2188
2193
|
manualCreation: import_smithy_client.expectBoolean,
|
|
2189
2194
|
payloadUrl: import_smithy_client.expectString,
|
|
2195
|
+
scopeConfiguration: import_smithy_client._json,
|
|
2190
2196
|
secret: import_smithy_client.expectString,
|
|
2191
2197
|
url: import_smithy_client.expectString
|
|
2192
2198
|
});
|
|
@@ -3232,6 +3238,7 @@ var paginateListSharedReportGroups = (0, import_core.createPaginator)(CodeBuildC
|
|
|
3232
3238
|
ProjectVisibilityType,
|
|
3233
3239
|
WebhookBuildType,
|
|
3234
3240
|
WebhookFilterType,
|
|
3241
|
+
WebhookScopeType,
|
|
3235
3242
|
ReportExportConfigType,
|
|
3236
3243
|
ReportPackagingType,
|
|
3237
3244
|
ReportGroupStatusType,
|
|
@@ -191,6 +191,10 @@ export const WebhookFilterType = {
|
|
|
191
191
|
TAG_NAME: "TAG_NAME",
|
|
192
192
|
WORKFLOW_NAME: "WORKFLOW_NAME",
|
|
193
193
|
};
|
|
194
|
+
export const WebhookScopeType = {
|
|
195
|
+
GITHUB_GLOBAL: "GITHUB_GLOBAL",
|
|
196
|
+
GITHUB_ORGANIZATION: "GITHUB_ORGANIZATION",
|
|
197
|
+
};
|
|
194
198
|
export const ReportExportConfigType = {
|
|
195
199
|
NO_EXPORT: "NO_EXPORT",
|
|
196
200
|
S3: "S3",
|
|
@@ -1552,6 +1552,7 @@ const de_Webhook = (output, context) => {
|
|
|
1552
1552
|
lastModifiedSecret: (_) => __expectNonNull(__parseEpochTimestamp(__expectNumber(_))),
|
|
1553
1553
|
manualCreation: __expectBoolean,
|
|
1554
1554
|
payloadUrl: __expectString,
|
|
1555
|
+
scopeConfiguration: _json,
|
|
1555
1556
|
secret: __expectString,
|
|
1556
1557
|
url: __expectString,
|
|
1557
1558
|
});
|
|
@@ -180,6 +180,11 @@ declare const BatchGetProjectsCommand_base: {
|
|
|
180
180
|
* // buildType: "BUILD" || "BUILD_BATCH",
|
|
181
181
|
* // manualCreation: true || false,
|
|
182
182
|
* // lastModifiedSecret: new Date("TIMESTAMP"),
|
|
183
|
+
* // scopeConfiguration: { // ScopeConfiguration
|
|
184
|
+
* // name: "STRING_VALUE", // required
|
|
185
|
+
* // domain: "STRING_VALUE",
|
|
186
|
+
* // scope: "GITHUB_ORGANIZATION" || "GITHUB_GLOBAL", // required
|
|
187
|
+
* // },
|
|
183
188
|
* // },
|
|
184
189
|
* // vpcConfig: { // VpcConfig
|
|
185
190
|
* // vpcId: "STRING_VALUE",
|
|
@@ -337,6 +337,11 @@ declare const CreateProjectCommand_base: {
|
|
|
337
337
|
* // buildType: "BUILD" || "BUILD_BATCH",
|
|
338
338
|
* // manualCreation: true || false,
|
|
339
339
|
* // lastModifiedSecret: new Date("TIMESTAMP"),
|
|
340
|
+
* // scopeConfiguration: { // ScopeConfiguration
|
|
341
|
+
* // name: "STRING_VALUE", // required
|
|
342
|
+
* // domain: "STRING_VALUE",
|
|
343
|
+
* // scope: "GITHUB_ORGANIZATION" || "GITHUB_GLOBAL", // required
|
|
344
|
+
* // },
|
|
340
345
|
* // },
|
|
341
346
|
* // vpcConfig: { // VpcConfig
|
|
342
347
|
* // vpcId: "STRING_VALUE",
|
|
@@ -58,6 +58,11 @@ declare const CreateWebhookCommand_base: {
|
|
|
58
58
|
* ],
|
|
59
59
|
* buildType: "BUILD" || "BUILD_BATCH",
|
|
60
60
|
* manualCreation: true || false,
|
|
61
|
+
* scopeConfiguration: { // ScopeConfiguration
|
|
62
|
+
* name: "STRING_VALUE", // required
|
|
63
|
+
* domain: "STRING_VALUE",
|
|
64
|
+
* scope: "GITHUB_ORGANIZATION" || "GITHUB_GLOBAL", // required
|
|
65
|
+
* },
|
|
61
66
|
* };
|
|
62
67
|
* const command = new CreateWebhookCommand(input);
|
|
63
68
|
* const response = await client.send(command);
|
|
@@ -79,6 +84,11 @@ declare const CreateWebhookCommand_base: {
|
|
|
79
84
|
* // buildType: "BUILD" || "BUILD_BATCH",
|
|
80
85
|
* // manualCreation: true || false,
|
|
81
86
|
* // lastModifiedSecret: new Date("TIMESTAMP"),
|
|
87
|
+
* // scopeConfiguration: { // ScopeConfiguration
|
|
88
|
+
* // name: "STRING_VALUE", // required
|
|
89
|
+
* // domain: "STRING_VALUE",
|
|
90
|
+
* // scope: "GITHUB_ORGANIZATION" || "GITHUB_GLOBAL", // required
|
|
91
|
+
* // },
|
|
82
92
|
* // },
|
|
83
93
|
* // };
|
|
84
94
|
*
|
|
@@ -337,6 +337,11 @@ declare const UpdateProjectCommand_base: {
|
|
|
337
337
|
* // buildType: "BUILD" || "BUILD_BATCH",
|
|
338
338
|
* // manualCreation: true || false,
|
|
339
339
|
* // lastModifiedSecret: new Date("TIMESTAMP"),
|
|
340
|
+
* // scopeConfiguration: { // ScopeConfiguration
|
|
341
|
+
* // name: "STRING_VALUE", // required
|
|
342
|
+
* // domain: "STRING_VALUE",
|
|
343
|
+
* // scope: "GITHUB_ORGANIZATION" || "GITHUB_GLOBAL", // required
|
|
344
|
+
* // },
|
|
340
345
|
* // },
|
|
341
346
|
* // vpcConfig: { // VpcConfig
|
|
342
347
|
* // vpcId: "STRING_VALUE",
|
|
@@ -73,6 +73,11 @@ declare const UpdateWebhookCommand_base: {
|
|
|
73
73
|
* // buildType: "BUILD" || "BUILD_BATCH",
|
|
74
74
|
* // manualCreation: true || false,
|
|
75
75
|
* // lastModifiedSecret: new Date("TIMESTAMP"),
|
|
76
|
+
* // scopeConfiguration: { // ScopeConfiguration
|
|
77
|
+
* // name: "STRING_VALUE", // required
|
|
78
|
+
* // domain: "STRING_VALUE",
|
|
79
|
+
* // scope: "GITHUB_ORGANIZATION" || "GITHUB_GLOBAL", // required
|
|
80
|
+
* // },
|
|
76
81
|
* // },
|
|
77
82
|
* // };
|
|
78
83
|
*
|
|
@@ -3321,6 +3321,18 @@ export interface WebhookFilter {
|
|
|
3321
3321
|
* </ul>
|
|
3322
3322
|
* </li>
|
|
3323
3323
|
* <li>
|
|
3324
|
+
* <p>REPOSITORY_NAME</p>
|
|
3325
|
+
* <ul>
|
|
3326
|
+
* <li>
|
|
3327
|
+
* <p>A webhook triggers a build when the repository name matches the
|
|
3328
|
+
* regular expression pattern.</p>
|
|
3329
|
+
* <note>
|
|
3330
|
+
* <p> Works with GitHub global or organization webhooks only. </p>
|
|
3331
|
+
* </note>
|
|
3332
|
+
* </li>
|
|
3333
|
+
* </ul>
|
|
3334
|
+
* </li>
|
|
3335
|
+
* <li>
|
|
3324
3336
|
* <p>WORKFLOW_NAME</p>
|
|
3325
3337
|
* <ul>
|
|
3326
3338
|
* <li>
|
|
@@ -3358,6 +3370,39 @@ export interface WebhookFilter {
|
|
|
3358
3370
|
*/
|
|
3359
3371
|
excludeMatchedPattern?: boolean;
|
|
3360
3372
|
}
|
|
3373
|
+
/**
|
|
3374
|
+
* @public
|
|
3375
|
+
* @enum
|
|
3376
|
+
*/
|
|
3377
|
+
export declare const WebhookScopeType: {
|
|
3378
|
+
readonly GITHUB_GLOBAL: "GITHUB_GLOBAL";
|
|
3379
|
+
readonly GITHUB_ORGANIZATION: "GITHUB_ORGANIZATION";
|
|
3380
|
+
};
|
|
3381
|
+
/**
|
|
3382
|
+
* @public
|
|
3383
|
+
*/
|
|
3384
|
+
export type WebhookScopeType = (typeof WebhookScopeType)[keyof typeof WebhookScopeType];
|
|
3385
|
+
/**
|
|
3386
|
+
* <p>Contains configuration information about the scope for a webhook. </p>
|
|
3387
|
+
* @public
|
|
3388
|
+
*/
|
|
3389
|
+
export interface ScopeConfiguration {
|
|
3390
|
+
/**
|
|
3391
|
+
* <p>The name of either the enterprise or organization that will send webhook events to CodeBuild, depending on if the webhook is a global or organization webhook respectively.</p>
|
|
3392
|
+
* @public
|
|
3393
|
+
*/
|
|
3394
|
+
name: string | undefined;
|
|
3395
|
+
/**
|
|
3396
|
+
* <p>The domain of the GitHub Enterprise organization. Note that this parameter is only required if your project's source type is GITHUB_ENTERPRISE</p>
|
|
3397
|
+
* @public
|
|
3398
|
+
*/
|
|
3399
|
+
domain?: string;
|
|
3400
|
+
/**
|
|
3401
|
+
* <p>The type of scope for a GitHub webhook.</p>
|
|
3402
|
+
* @public
|
|
3403
|
+
*/
|
|
3404
|
+
scope: WebhookScopeType | undefined;
|
|
3405
|
+
}
|
|
3361
3406
|
/**
|
|
3362
3407
|
* <p>Information about a webhook that connects repository events to a build project in
|
|
3363
3408
|
* CodeBuild.</p>
|
|
@@ -3424,6 +3469,14 @@ export interface Webhook {
|
|
|
3424
3469
|
* @public
|
|
3425
3470
|
*/
|
|
3426
3471
|
lastModifiedSecret?: Date;
|
|
3472
|
+
/**
|
|
3473
|
+
* <p>The scope configuration for global or organization webhooks.</p>
|
|
3474
|
+
* <note>
|
|
3475
|
+
* <p>Global or organization webhooks are only available for GitHub and Github Enterprise webhooks.</p>
|
|
3476
|
+
* </note>
|
|
3477
|
+
* @public
|
|
3478
|
+
*/
|
|
3479
|
+
scopeConfiguration?: ScopeConfiguration;
|
|
3427
3480
|
}
|
|
3428
3481
|
/**
|
|
3429
3482
|
* <p>Information about a build project.</p>
|
|
@@ -4573,6 +4626,14 @@ export interface CreateWebhookInput {
|
|
|
4573
4626
|
* @public
|
|
4574
4627
|
*/
|
|
4575
4628
|
manualCreation?: boolean;
|
|
4629
|
+
/**
|
|
4630
|
+
* <p>The scope configuration for global or organization webhooks.</p>
|
|
4631
|
+
* <note>
|
|
4632
|
+
* <p>Global or organization webhooks are only available for GitHub and Github Enterprise webhooks.</p>
|
|
4633
|
+
* </note>
|
|
4634
|
+
* @public
|
|
4635
|
+
*/
|
|
4636
|
+
scopeConfiguration?: ScopeConfiguration;
|
|
4576
4637
|
}
|
|
4577
4638
|
/**
|
|
4578
4639
|
* @public
|
|
@@ -550,6 +550,17 @@ export interface WebhookFilter {
|
|
|
550
550
|
pattern: string | undefined;
|
|
551
551
|
excludeMatchedPattern?: boolean;
|
|
552
552
|
}
|
|
553
|
+
export declare const WebhookScopeType: {
|
|
554
|
+
readonly GITHUB_GLOBAL: "GITHUB_GLOBAL";
|
|
555
|
+
readonly GITHUB_ORGANIZATION: "GITHUB_ORGANIZATION";
|
|
556
|
+
};
|
|
557
|
+
export type WebhookScopeType =
|
|
558
|
+
(typeof WebhookScopeType)[keyof typeof WebhookScopeType];
|
|
559
|
+
export interface ScopeConfiguration {
|
|
560
|
+
name: string | undefined;
|
|
561
|
+
domain?: string;
|
|
562
|
+
scope: WebhookScopeType | undefined;
|
|
563
|
+
}
|
|
553
564
|
export interface Webhook {
|
|
554
565
|
url?: string;
|
|
555
566
|
payloadUrl?: string;
|
|
@@ -559,6 +570,7 @@ export interface Webhook {
|
|
|
559
570
|
buildType?: WebhookBuildType;
|
|
560
571
|
manualCreation?: boolean;
|
|
561
572
|
lastModifiedSecret?: Date;
|
|
573
|
+
scopeConfiguration?: ScopeConfiguration;
|
|
562
574
|
}
|
|
563
575
|
export interface Project {
|
|
564
576
|
name?: string;
|
|
@@ -759,6 +771,7 @@ export interface CreateWebhookInput {
|
|
|
759
771
|
filterGroups?: WebhookFilter[][];
|
|
760
772
|
buildType?: WebhookBuildType;
|
|
761
773
|
manualCreation?: boolean;
|
|
774
|
+
scopeConfiguration?: ScopeConfiguration;
|
|
762
775
|
}
|
|
763
776
|
export interface CreateWebhookOutput {
|
|
764
777
|
webhook?: Webhook;
|
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.
|
|
4
|
+
"version": "3.600.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,10 +20,10 @@
|
|
|
20
20
|
"dependencies": {
|
|
21
21
|
"@aws-crypto/sha256-browser": "5.2.0",
|
|
22
22
|
"@aws-crypto/sha256-js": "5.2.0",
|
|
23
|
-
"@aws-sdk/client-sso-oidc": "3.
|
|
24
|
-
"@aws-sdk/client-sts": "3.
|
|
23
|
+
"@aws-sdk/client-sso-oidc": "3.600.0",
|
|
24
|
+
"@aws-sdk/client-sts": "3.600.0",
|
|
25
25
|
"@aws-sdk/core": "3.598.0",
|
|
26
|
-
"@aws-sdk/credential-provider-node": "3.
|
|
26
|
+
"@aws-sdk/credential-provider-node": "3.600.0",
|
|
27
27
|
"@aws-sdk/middleware-host-header": "3.598.0",
|
|
28
28
|
"@aws-sdk/middleware-logger": "3.598.0",
|
|
29
29
|
"@aws-sdk/middleware-recursion-detection": "3.598.0",
|