@aws-sdk/client-securityhub 3.200.0 → 3.202.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/CHANGELOG.md +19 -0
- package/dist-cjs/endpoint/EndpointParameters.js +2 -3
- package/dist-cjs/protocols/Aws_restJson1.js +63 -67
- package/dist-cjs/runtimeConfig.browser.js +16 -16
- package/dist-cjs/runtimeConfig.js +20 -19
- package/dist-cjs/runtimeConfig.native.js +1 -2
- package/dist-cjs/runtimeConfig.shared.js +8 -11
- package/package.json +33 -33
package/CHANGELOG.md
CHANGED
|
@@ -3,6 +3,25 @@
|
|
|
3
3
|
All notable changes to this project will be documented in this file.
|
|
4
4
|
See [Conventional Commits](https://conventionalcommits.org) for commit guidelines.
|
|
5
5
|
|
|
6
|
+
# [3.202.0](https://github.com/aws/aws-sdk-js-v3/compare/v3.201.0...v3.202.0) (2022-11-02)
|
|
7
|
+
|
|
8
|
+
**Note:** Version bump only for package @aws-sdk/client-securityhub
|
|
9
|
+
|
|
10
|
+
|
|
11
|
+
|
|
12
|
+
|
|
13
|
+
|
|
14
|
+
# [3.201.0](https://github.com/aws/aws-sdk-js-v3/compare/v3.200.0...v3.201.0) (2022-11-01)
|
|
15
|
+
|
|
16
|
+
|
|
17
|
+
### Features
|
|
18
|
+
|
|
19
|
+
* end support for Node.js 12.x ([#4123](https://github.com/aws/aws-sdk-js-v3/issues/4123)) ([83f913e](https://github.com/aws/aws-sdk-js-v3/commit/83f913ec2ac3878d8726c6964f585550dc5caf3e))
|
|
20
|
+
|
|
21
|
+
|
|
22
|
+
|
|
23
|
+
|
|
24
|
+
|
|
6
25
|
# [3.200.0](https://github.com/aws/aws-sdk-js-v3/compare/v3.199.0...v3.200.0) (2022-10-31)
|
|
7
26
|
|
|
8
27
|
**Note:** Version bump only for package @aws-sdk/client-securityhub
|
|
@@ -2,11 +2,10 @@
|
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
3
|
exports.resolveClientEndpointParameters = void 0;
|
|
4
4
|
const resolveClientEndpointParameters = (options) => {
|
|
5
|
-
var _a, _b;
|
|
6
5
|
return {
|
|
7
6
|
...options,
|
|
8
|
-
useDualstackEndpoint:
|
|
9
|
-
useFipsEndpoint:
|
|
7
|
+
useDualstackEndpoint: options.useDualstackEndpoint ?? false,
|
|
8
|
+
useFipsEndpoint: options.useFipsEndpoint ?? false,
|
|
10
9
|
defaultSigningName: "securityhub",
|
|
11
10
|
};
|
|
12
11
|
};
|
|
@@ -13,7 +13,7 @@ const serializeAws_restJson1AcceptAdministratorInvitationCommand = async (input,
|
|
|
13
13
|
const headers = {
|
|
14
14
|
"content-type": "application/json",
|
|
15
15
|
};
|
|
16
|
-
const resolvedPath = `${
|
|
16
|
+
const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/administrator";
|
|
17
17
|
let body;
|
|
18
18
|
body = JSON.stringify({
|
|
19
19
|
...(input.AdministratorId != null && { AdministratorId: input.AdministratorId }),
|
|
@@ -35,7 +35,7 @@ const serializeAws_restJson1AcceptInvitationCommand = async (input, context) =>
|
|
|
35
35
|
const headers = {
|
|
36
36
|
"content-type": "application/json",
|
|
37
37
|
};
|
|
38
|
-
const resolvedPath = `${
|
|
38
|
+
const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/master";
|
|
39
39
|
let body;
|
|
40
40
|
body = JSON.stringify({
|
|
41
41
|
...(input.InvitationId != null && { InvitationId: input.InvitationId }),
|
|
@@ -57,7 +57,7 @@ const serializeAws_restJson1BatchDisableStandardsCommand = async (input, context
|
|
|
57
57
|
const headers = {
|
|
58
58
|
"content-type": "application/json",
|
|
59
59
|
};
|
|
60
|
-
const resolvedPath = `${
|
|
60
|
+
const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/standards/deregister";
|
|
61
61
|
let body;
|
|
62
62
|
body = JSON.stringify({
|
|
63
63
|
...(input.StandardsSubscriptionArns != null && {
|
|
@@ -80,7 +80,7 @@ const serializeAws_restJson1BatchEnableStandardsCommand = async (input, context)
|
|
|
80
80
|
const headers = {
|
|
81
81
|
"content-type": "application/json",
|
|
82
82
|
};
|
|
83
|
-
const resolvedPath = `${
|
|
83
|
+
const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/standards/register";
|
|
84
84
|
let body;
|
|
85
85
|
body = JSON.stringify({
|
|
86
86
|
...(input.StandardsSubscriptionRequests != null && {
|
|
@@ -103,7 +103,7 @@ const serializeAws_restJson1BatchImportFindingsCommand = async (input, context)
|
|
|
103
103
|
const headers = {
|
|
104
104
|
"content-type": "application/json",
|
|
105
105
|
};
|
|
106
|
-
const resolvedPath = `${
|
|
106
|
+
const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/findings/import";
|
|
107
107
|
let body;
|
|
108
108
|
body = JSON.stringify({
|
|
109
109
|
...(input.Findings != null && {
|
|
@@ -126,7 +126,7 @@ const serializeAws_restJson1BatchUpdateFindingsCommand = async (input, context)
|
|
|
126
126
|
const headers = {
|
|
127
127
|
"content-type": "application/json",
|
|
128
128
|
};
|
|
129
|
-
const resolvedPath = `${
|
|
129
|
+
const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/findings/batchupdate";
|
|
130
130
|
let body;
|
|
131
131
|
body = JSON.stringify({
|
|
132
132
|
...(input.Confidence != null && { Confidence: input.Confidence }),
|
|
@@ -162,7 +162,7 @@ const serializeAws_restJson1CreateActionTargetCommand = async (input, context) =
|
|
|
162
162
|
const headers = {
|
|
163
163
|
"content-type": "application/json",
|
|
164
164
|
};
|
|
165
|
-
const resolvedPath = `${
|
|
165
|
+
const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/actionTargets";
|
|
166
166
|
let body;
|
|
167
167
|
body = JSON.stringify({
|
|
168
168
|
...(input.Description != null && { Description: input.Description }),
|
|
@@ -185,7 +185,7 @@ const serializeAws_restJson1CreateFindingAggregatorCommand = async (input, conte
|
|
|
185
185
|
const headers = {
|
|
186
186
|
"content-type": "application/json",
|
|
187
187
|
};
|
|
188
|
-
const resolvedPath = `${
|
|
188
|
+
const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/findingAggregator/create";
|
|
189
189
|
let body;
|
|
190
190
|
body = JSON.stringify({
|
|
191
191
|
...(input.RegionLinkingMode != null && { RegionLinkingMode: input.RegionLinkingMode }),
|
|
@@ -207,7 +207,7 @@ const serializeAws_restJson1CreateInsightCommand = async (input, context) => {
|
|
|
207
207
|
const headers = {
|
|
208
208
|
"content-type": "application/json",
|
|
209
209
|
};
|
|
210
|
-
const resolvedPath = `${
|
|
210
|
+
const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/insights";
|
|
211
211
|
let body;
|
|
212
212
|
body = JSON.stringify({
|
|
213
213
|
...(input.Filters != null && { Filters: serializeAws_restJson1AwsSecurityFindingFilters(input.Filters, context) }),
|
|
@@ -230,7 +230,7 @@ const serializeAws_restJson1CreateMembersCommand = async (input, context) => {
|
|
|
230
230
|
const headers = {
|
|
231
231
|
"content-type": "application/json",
|
|
232
232
|
};
|
|
233
|
-
const resolvedPath = `${
|
|
233
|
+
const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/members";
|
|
234
234
|
let body;
|
|
235
235
|
body = JSON.stringify({
|
|
236
236
|
...(input.AccountDetails != null && {
|
|
@@ -253,7 +253,7 @@ const serializeAws_restJson1DeclineInvitationsCommand = async (input, context) =
|
|
|
253
253
|
const headers = {
|
|
254
254
|
"content-type": "application/json",
|
|
255
255
|
};
|
|
256
|
-
const resolvedPath = `${
|
|
256
|
+
const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/invitations/decline";
|
|
257
257
|
let body;
|
|
258
258
|
body = JSON.stringify({
|
|
259
259
|
...(input.AccountIds != null && { AccountIds: serializeAws_restJson1AccountIdList(input.AccountIds, context) }),
|
|
@@ -272,7 +272,7 @@ exports.serializeAws_restJson1DeclineInvitationsCommand = serializeAws_restJson1
|
|
|
272
272
|
const serializeAws_restJson1DeleteActionTargetCommand = async (input, context) => {
|
|
273
273
|
const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
|
|
274
274
|
const headers = {};
|
|
275
|
-
let resolvedPath = `${
|
|
275
|
+
let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/actionTargets/{ActionTargetArn+}";
|
|
276
276
|
resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "ActionTargetArn", () => input.ActionTargetArn, "{ActionTargetArn+}", true);
|
|
277
277
|
let body;
|
|
278
278
|
return new protocol_http_1.HttpRequest({
|
|
@@ -289,7 +289,7 @@ exports.serializeAws_restJson1DeleteActionTargetCommand = serializeAws_restJson1
|
|
|
289
289
|
const serializeAws_restJson1DeleteFindingAggregatorCommand = async (input, context) => {
|
|
290
290
|
const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
|
|
291
291
|
const headers = {};
|
|
292
|
-
let resolvedPath = `${
|
|
292
|
+
let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` +
|
|
293
293
|
"/findingAggregator/delete/{FindingAggregatorArn+}";
|
|
294
294
|
resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "FindingAggregatorArn", () => input.FindingAggregatorArn, "{FindingAggregatorArn+}", true);
|
|
295
295
|
let body;
|
|
@@ -307,7 +307,7 @@ exports.serializeAws_restJson1DeleteFindingAggregatorCommand = serializeAws_rest
|
|
|
307
307
|
const serializeAws_restJson1DeleteInsightCommand = async (input, context) => {
|
|
308
308
|
const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
|
|
309
309
|
const headers = {};
|
|
310
|
-
let resolvedPath = `${
|
|
310
|
+
let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/insights/{InsightArn+}";
|
|
311
311
|
resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "InsightArn", () => input.InsightArn, "{InsightArn+}", true);
|
|
312
312
|
let body;
|
|
313
313
|
return new protocol_http_1.HttpRequest({
|
|
@@ -326,7 +326,7 @@ const serializeAws_restJson1DeleteInvitationsCommand = async (input, context) =>
|
|
|
326
326
|
const headers = {
|
|
327
327
|
"content-type": "application/json",
|
|
328
328
|
};
|
|
329
|
-
const resolvedPath = `${
|
|
329
|
+
const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/invitations/delete";
|
|
330
330
|
let body;
|
|
331
331
|
body = JSON.stringify({
|
|
332
332
|
...(input.AccountIds != null && { AccountIds: serializeAws_restJson1AccountIdList(input.AccountIds, context) }),
|
|
@@ -347,7 +347,7 @@ const serializeAws_restJson1DeleteMembersCommand = async (input, context) => {
|
|
|
347
347
|
const headers = {
|
|
348
348
|
"content-type": "application/json",
|
|
349
349
|
};
|
|
350
|
-
const resolvedPath = `${
|
|
350
|
+
const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/members/delete";
|
|
351
351
|
let body;
|
|
352
352
|
body = JSON.stringify({
|
|
353
353
|
...(input.AccountIds != null && { AccountIds: serializeAws_restJson1AccountIdList(input.AccountIds, context) }),
|
|
@@ -368,7 +368,7 @@ const serializeAws_restJson1DescribeActionTargetsCommand = async (input, context
|
|
|
368
368
|
const headers = {
|
|
369
369
|
"content-type": "application/json",
|
|
370
370
|
};
|
|
371
|
-
const resolvedPath = `${
|
|
371
|
+
const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/actionTargets/get";
|
|
372
372
|
let body;
|
|
373
373
|
body = JSON.stringify({
|
|
374
374
|
...(input.ActionTargetArns != null && {
|
|
@@ -391,7 +391,7 @@ exports.serializeAws_restJson1DescribeActionTargetsCommand = serializeAws_restJs
|
|
|
391
391
|
const serializeAws_restJson1DescribeHubCommand = async (input, context) => {
|
|
392
392
|
const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
|
|
393
393
|
const headers = {};
|
|
394
|
-
const resolvedPath = `${
|
|
394
|
+
const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/accounts";
|
|
395
395
|
const query = map({
|
|
396
396
|
HubArn: [, input.HubArn],
|
|
397
397
|
});
|
|
@@ -413,7 +413,7 @@ const serializeAws_restJson1DescribeOrganizationConfigurationCommand = async (in
|
|
|
413
413
|
const headers = {
|
|
414
414
|
"content-type": "application/json",
|
|
415
415
|
};
|
|
416
|
-
const resolvedPath = `${
|
|
416
|
+
const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/organization/configuration";
|
|
417
417
|
let body;
|
|
418
418
|
body = "";
|
|
419
419
|
return new protocol_http_1.HttpRequest({
|
|
@@ -430,7 +430,7 @@ exports.serializeAws_restJson1DescribeOrganizationConfigurationCommand = seriali
|
|
|
430
430
|
const serializeAws_restJson1DescribeProductsCommand = async (input, context) => {
|
|
431
431
|
const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
|
|
432
432
|
const headers = {};
|
|
433
|
-
const resolvedPath = `${
|
|
433
|
+
const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/products";
|
|
434
434
|
const query = map({
|
|
435
435
|
NextToken: [, input.NextToken],
|
|
436
436
|
MaxResults: [() => input.MaxResults !== void 0, () => input.MaxResults.toString()],
|
|
@@ -452,7 +452,7 @@ exports.serializeAws_restJson1DescribeProductsCommand = serializeAws_restJson1De
|
|
|
452
452
|
const serializeAws_restJson1DescribeStandardsCommand = async (input, context) => {
|
|
453
453
|
const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
|
|
454
454
|
const headers = {};
|
|
455
|
-
const resolvedPath = `${
|
|
455
|
+
const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/standards";
|
|
456
456
|
const query = map({
|
|
457
457
|
NextToken: [, input.NextToken],
|
|
458
458
|
MaxResults: [() => input.MaxResults !== void 0, () => input.MaxResults.toString()],
|
|
@@ -473,7 +473,7 @@ exports.serializeAws_restJson1DescribeStandardsCommand = serializeAws_restJson1D
|
|
|
473
473
|
const serializeAws_restJson1DescribeStandardsControlsCommand = async (input, context) => {
|
|
474
474
|
const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
|
|
475
475
|
const headers = {};
|
|
476
|
-
let resolvedPath = `${
|
|
476
|
+
let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` +
|
|
477
477
|
"/standards/controls/{StandardsSubscriptionArn+}";
|
|
478
478
|
resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "StandardsSubscriptionArn", () => input.StandardsSubscriptionArn, "{StandardsSubscriptionArn+}", true);
|
|
479
479
|
const query = map({
|
|
@@ -496,7 +496,7 @@ exports.serializeAws_restJson1DescribeStandardsControlsCommand = serializeAws_re
|
|
|
496
496
|
const serializeAws_restJson1DisableImportFindingsForProductCommand = async (input, context) => {
|
|
497
497
|
const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
|
|
498
498
|
const headers = {};
|
|
499
|
-
let resolvedPath = `${
|
|
499
|
+
let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` +
|
|
500
500
|
"/productSubscriptions/{ProductSubscriptionArn+}";
|
|
501
501
|
resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "ProductSubscriptionArn", () => input.ProductSubscriptionArn, "{ProductSubscriptionArn+}", true);
|
|
502
502
|
let body;
|
|
@@ -516,7 +516,7 @@ const serializeAws_restJson1DisableOrganizationAdminAccountCommand = async (inpu
|
|
|
516
516
|
const headers = {
|
|
517
517
|
"content-type": "application/json",
|
|
518
518
|
};
|
|
519
|
-
const resolvedPath = `${
|
|
519
|
+
const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/organization/admin/disable";
|
|
520
520
|
let body;
|
|
521
521
|
body = JSON.stringify({
|
|
522
522
|
...(input.AdminAccountId != null && { AdminAccountId: input.AdminAccountId }),
|
|
@@ -537,7 +537,7 @@ const serializeAws_restJson1DisableSecurityHubCommand = async (input, context) =
|
|
|
537
537
|
const headers = {
|
|
538
538
|
"content-type": "application/json",
|
|
539
539
|
};
|
|
540
|
-
const resolvedPath = `${
|
|
540
|
+
const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/accounts";
|
|
541
541
|
let body;
|
|
542
542
|
body = "";
|
|
543
543
|
return new protocol_http_1.HttpRequest({
|
|
@@ -556,7 +556,7 @@ const serializeAws_restJson1DisassociateFromAdministratorAccountCommand = async
|
|
|
556
556
|
const headers = {
|
|
557
557
|
"content-type": "application/json",
|
|
558
558
|
};
|
|
559
|
-
const resolvedPath = `${
|
|
559
|
+
const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/administrator/disassociate";
|
|
560
560
|
let body;
|
|
561
561
|
body = "";
|
|
562
562
|
return new protocol_http_1.HttpRequest({
|
|
@@ -575,7 +575,7 @@ const serializeAws_restJson1DisassociateFromMasterAccountCommand = async (input,
|
|
|
575
575
|
const headers = {
|
|
576
576
|
"content-type": "application/json",
|
|
577
577
|
};
|
|
578
|
-
const resolvedPath = `${
|
|
578
|
+
const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/master/disassociate";
|
|
579
579
|
let body;
|
|
580
580
|
body = "";
|
|
581
581
|
return new protocol_http_1.HttpRequest({
|
|
@@ -594,7 +594,7 @@ const serializeAws_restJson1DisassociateMembersCommand = async (input, context)
|
|
|
594
594
|
const headers = {
|
|
595
595
|
"content-type": "application/json",
|
|
596
596
|
};
|
|
597
|
-
const resolvedPath = `${
|
|
597
|
+
const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/members/disassociate";
|
|
598
598
|
let body;
|
|
599
599
|
body = JSON.stringify({
|
|
600
600
|
...(input.AccountIds != null && { AccountIds: serializeAws_restJson1AccountIdList(input.AccountIds, context) }),
|
|
@@ -615,7 +615,7 @@ const serializeAws_restJson1EnableImportFindingsForProductCommand = async (input
|
|
|
615
615
|
const headers = {
|
|
616
616
|
"content-type": "application/json",
|
|
617
617
|
};
|
|
618
|
-
const resolvedPath = `${
|
|
618
|
+
const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/productSubscriptions";
|
|
619
619
|
let body;
|
|
620
620
|
body = JSON.stringify({
|
|
621
621
|
...(input.ProductArn != null && { ProductArn: input.ProductArn }),
|
|
@@ -636,7 +636,7 @@ const serializeAws_restJson1EnableOrganizationAdminAccountCommand = async (input
|
|
|
636
636
|
const headers = {
|
|
637
637
|
"content-type": "application/json",
|
|
638
638
|
};
|
|
639
|
-
const resolvedPath = `${
|
|
639
|
+
const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/organization/admin/enable";
|
|
640
640
|
let body;
|
|
641
641
|
body = JSON.stringify({
|
|
642
642
|
...(input.AdminAccountId != null && { AdminAccountId: input.AdminAccountId }),
|
|
@@ -657,7 +657,7 @@ const serializeAws_restJson1EnableSecurityHubCommand = async (input, context) =>
|
|
|
657
657
|
const headers = {
|
|
658
658
|
"content-type": "application/json",
|
|
659
659
|
};
|
|
660
|
-
const resolvedPath = `${
|
|
660
|
+
const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/accounts";
|
|
661
661
|
let body;
|
|
662
662
|
body = JSON.stringify({
|
|
663
663
|
...(input.EnableDefaultStandards != null && { EnableDefaultStandards: input.EnableDefaultStandards }),
|
|
@@ -679,7 +679,7 @@ const serializeAws_restJson1GetAdministratorAccountCommand = async (input, conte
|
|
|
679
679
|
const headers = {
|
|
680
680
|
"content-type": "application/json",
|
|
681
681
|
};
|
|
682
|
-
const resolvedPath = `${
|
|
682
|
+
const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/administrator";
|
|
683
683
|
let body;
|
|
684
684
|
body = "";
|
|
685
685
|
return new protocol_http_1.HttpRequest({
|
|
@@ -698,7 +698,7 @@ const serializeAws_restJson1GetEnabledStandardsCommand = async (input, context)
|
|
|
698
698
|
const headers = {
|
|
699
699
|
"content-type": "application/json",
|
|
700
700
|
};
|
|
701
|
-
const resolvedPath = `${
|
|
701
|
+
const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/standards/get";
|
|
702
702
|
let body;
|
|
703
703
|
body = JSON.stringify({
|
|
704
704
|
...(input.MaxResults != null && { MaxResults: input.MaxResults }),
|
|
@@ -721,7 +721,7 @@ exports.serializeAws_restJson1GetEnabledStandardsCommand = serializeAws_restJson
|
|
|
721
721
|
const serializeAws_restJson1GetFindingAggregatorCommand = async (input, context) => {
|
|
722
722
|
const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
|
|
723
723
|
const headers = {};
|
|
724
|
-
let resolvedPath = `${
|
|
724
|
+
let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` +
|
|
725
725
|
"/findingAggregator/get/{FindingAggregatorArn+}";
|
|
726
726
|
resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "FindingAggregatorArn", () => input.FindingAggregatorArn, "{FindingAggregatorArn+}", true);
|
|
727
727
|
let body;
|
|
@@ -741,7 +741,7 @@ const serializeAws_restJson1GetFindingsCommand = async (input, context) => {
|
|
|
741
741
|
const headers = {
|
|
742
742
|
"content-type": "application/json",
|
|
743
743
|
};
|
|
744
|
-
const resolvedPath = `${
|
|
744
|
+
const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/findings";
|
|
745
745
|
let body;
|
|
746
746
|
body = JSON.stringify({
|
|
747
747
|
...(input.Filters != null && { Filters: serializeAws_restJson1AwsSecurityFindingFilters(input.Filters, context) }),
|
|
@@ -765,7 +765,7 @@ exports.serializeAws_restJson1GetFindingsCommand = serializeAws_restJson1GetFind
|
|
|
765
765
|
const serializeAws_restJson1GetInsightResultsCommand = async (input, context) => {
|
|
766
766
|
const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
|
|
767
767
|
const headers = {};
|
|
768
|
-
let resolvedPath = `${
|
|
768
|
+
let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/insights/results/{InsightArn+}";
|
|
769
769
|
resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "InsightArn", () => input.InsightArn, "{InsightArn+}", true);
|
|
770
770
|
let body;
|
|
771
771
|
return new protocol_http_1.HttpRequest({
|
|
@@ -784,7 +784,7 @@ const serializeAws_restJson1GetInsightsCommand = async (input, context) => {
|
|
|
784
784
|
const headers = {
|
|
785
785
|
"content-type": "application/json",
|
|
786
786
|
};
|
|
787
|
-
const resolvedPath = `${
|
|
787
|
+
const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/insights/get";
|
|
788
788
|
let body;
|
|
789
789
|
body = JSON.stringify({
|
|
790
790
|
...(input.InsightArns != null && { InsightArns: serializeAws_restJson1ArnList(input.InsightArns, context) }),
|
|
@@ -807,7 +807,7 @@ const serializeAws_restJson1GetInvitationsCountCommand = async (input, context)
|
|
|
807
807
|
const headers = {
|
|
808
808
|
"content-type": "application/json",
|
|
809
809
|
};
|
|
810
|
-
const resolvedPath = `${
|
|
810
|
+
const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/invitations/count";
|
|
811
811
|
let body;
|
|
812
812
|
body = "";
|
|
813
813
|
return new protocol_http_1.HttpRequest({
|
|
@@ -826,7 +826,7 @@ const serializeAws_restJson1GetMasterAccountCommand = async (input, context) =>
|
|
|
826
826
|
const headers = {
|
|
827
827
|
"content-type": "application/json",
|
|
828
828
|
};
|
|
829
|
-
const resolvedPath = `${
|
|
829
|
+
const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/master";
|
|
830
830
|
let body;
|
|
831
831
|
body = "";
|
|
832
832
|
return new protocol_http_1.HttpRequest({
|
|
@@ -845,7 +845,7 @@ const serializeAws_restJson1GetMembersCommand = async (input, context) => {
|
|
|
845
845
|
const headers = {
|
|
846
846
|
"content-type": "application/json",
|
|
847
847
|
};
|
|
848
|
-
const resolvedPath = `${
|
|
848
|
+
const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/members/get";
|
|
849
849
|
let body;
|
|
850
850
|
body = JSON.stringify({
|
|
851
851
|
...(input.AccountIds != null && { AccountIds: serializeAws_restJson1AccountIdList(input.AccountIds, context) }),
|
|
@@ -866,7 +866,7 @@ const serializeAws_restJson1InviteMembersCommand = async (input, context) => {
|
|
|
866
866
|
const headers = {
|
|
867
867
|
"content-type": "application/json",
|
|
868
868
|
};
|
|
869
|
-
const resolvedPath = `${
|
|
869
|
+
const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/members/invite";
|
|
870
870
|
let body;
|
|
871
871
|
body = JSON.stringify({
|
|
872
872
|
...(input.AccountIds != null && { AccountIds: serializeAws_restJson1AccountIdList(input.AccountIds, context) }),
|
|
@@ -885,7 +885,7 @@ exports.serializeAws_restJson1InviteMembersCommand = serializeAws_restJson1Invit
|
|
|
885
885
|
const serializeAws_restJson1ListEnabledProductsForImportCommand = async (input, context) => {
|
|
886
886
|
const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
|
|
887
887
|
const headers = {};
|
|
888
|
-
const resolvedPath = `${
|
|
888
|
+
const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/productSubscriptions";
|
|
889
889
|
const query = map({
|
|
890
890
|
NextToken: [, input.NextToken],
|
|
891
891
|
MaxResults: [() => input.MaxResults !== void 0, () => input.MaxResults.toString()],
|
|
@@ -906,7 +906,7 @@ exports.serializeAws_restJson1ListEnabledProductsForImportCommand = serializeAws
|
|
|
906
906
|
const serializeAws_restJson1ListFindingAggregatorsCommand = async (input, context) => {
|
|
907
907
|
const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
|
|
908
908
|
const headers = {};
|
|
909
|
-
const resolvedPath = `${
|
|
909
|
+
const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/findingAggregator/list";
|
|
910
910
|
const query = map({
|
|
911
911
|
NextToken: [, input.NextToken],
|
|
912
912
|
MaxResults: [() => input.MaxResults !== void 0, () => input.MaxResults.toString()],
|
|
@@ -927,7 +927,7 @@ exports.serializeAws_restJson1ListFindingAggregatorsCommand = serializeAws_restJ
|
|
|
927
927
|
const serializeAws_restJson1ListInvitationsCommand = async (input, context) => {
|
|
928
928
|
const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
|
|
929
929
|
const headers = {};
|
|
930
|
-
const resolvedPath = `${
|
|
930
|
+
const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/invitations";
|
|
931
931
|
const query = map({
|
|
932
932
|
MaxResults: [() => input.MaxResults !== void 0, () => input.MaxResults.toString()],
|
|
933
933
|
NextToken: [, input.NextToken],
|
|
@@ -948,7 +948,7 @@ exports.serializeAws_restJson1ListInvitationsCommand = serializeAws_restJson1Lis
|
|
|
948
948
|
const serializeAws_restJson1ListMembersCommand = async (input, context) => {
|
|
949
949
|
const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
|
|
950
950
|
const headers = {};
|
|
951
|
-
const resolvedPath = `${
|
|
951
|
+
const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/members";
|
|
952
952
|
const query = map({
|
|
953
953
|
OnlyAssociated: [() => input.OnlyAssociated !== void 0, () => input.OnlyAssociated.toString()],
|
|
954
954
|
MaxResults: [() => input.MaxResults !== void 0, () => input.MaxResults.toString()],
|
|
@@ -970,7 +970,7 @@ exports.serializeAws_restJson1ListMembersCommand = serializeAws_restJson1ListMem
|
|
|
970
970
|
const serializeAws_restJson1ListOrganizationAdminAccountsCommand = async (input, context) => {
|
|
971
971
|
const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
|
|
972
972
|
const headers = {};
|
|
973
|
-
const resolvedPath = `${
|
|
973
|
+
const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/organization/admin";
|
|
974
974
|
const query = map({
|
|
975
975
|
MaxResults: [() => input.MaxResults !== void 0, () => input.MaxResults.toString()],
|
|
976
976
|
NextToken: [, input.NextToken],
|
|
@@ -991,7 +991,7 @@ exports.serializeAws_restJson1ListOrganizationAdminAccountsCommand = serializeAw
|
|
|
991
991
|
const serializeAws_restJson1ListTagsForResourceCommand = async (input, context) => {
|
|
992
992
|
const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
|
|
993
993
|
const headers = {};
|
|
994
|
-
let resolvedPath = `${
|
|
994
|
+
let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/tags/{ResourceArn}";
|
|
995
995
|
resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "ResourceArn", () => input.ResourceArn, "{ResourceArn}", false);
|
|
996
996
|
let body;
|
|
997
997
|
return new protocol_http_1.HttpRequest({
|
|
@@ -1010,7 +1010,7 @@ const serializeAws_restJson1TagResourceCommand = async (input, context) => {
|
|
|
1010
1010
|
const headers = {
|
|
1011
1011
|
"content-type": "application/json",
|
|
1012
1012
|
};
|
|
1013
|
-
let resolvedPath = `${
|
|
1013
|
+
let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/tags/{ResourceArn}";
|
|
1014
1014
|
resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "ResourceArn", () => input.ResourceArn, "{ResourceArn}", false);
|
|
1015
1015
|
let body;
|
|
1016
1016
|
body = JSON.stringify({
|
|
@@ -1030,7 +1030,7 @@ exports.serializeAws_restJson1TagResourceCommand = serializeAws_restJson1TagReso
|
|
|
1030
1030
|
const serializeAws_restJson1UntagResourceCommand = async (input, context) => {
|
|
1031
1031
|
const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
|
|
1032
1032
|
const headers = {};
|
|
1033
|
-
let resolvedPath = `${
|
|
1033
|
+
let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/tags/{ResourceArn}";
|
|
1034
1034
|
resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "ResourceArn", () => input.ResourceArn, "{ResourceArn}", false);
|
|
1035
1035
|
const query = map({
|
|
1036
1036
|
tagKeys: [() => input.TagKeys !== void 0, () => (input.TagKeys || []).map((_entry) => _entry)],
|
|
@@ -1053,7 +1053,7 @@ const serializeAws_restJson1UpdateActionTargetCommand = async (input, context) =
|
|
|
1053
1053
|
const headers = {
|
|
1054
1054
|
"content-type": "application/json",
|
|
1055
1055
|
};
|
|
1056
|
-
let resolvedPath = `${
|
|
1056
|
+
let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/actionTargets/{ActionTargetArn+}";
|
|
1057
1057
|
resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "ActionTargetArn", () => input.ActionTargetArn, "{ActionTargetArn+}", true);
|
|
1058
1058
|
let body;
|
|
1059
1059
|
body = JSON.stringify({
|
|
@@ -1076,7 +1076,7 @@ const serializeAws_restJson1UpdateFindingAggregatorCommand = async (input, conte
|
|
|
1076
1076
|
const headers = {
|
|
1077
1077
|
"content-type": "application/json",
|
|
1078
1078
|
};
|
|
1079
|
-
const resolvedPath = `${
|
|
1079
|
+
const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/findingAggregator/update";
|
|
1080
1080
|
let body;
|
|
1081
1081
|
body = JSON.stringify({
|
|
1082
1082
|
...(input.FindingAggregatorArn != null && { FindingAggregatorArn: input.FindingAggregatorArn }),
|
|
@@ -1099,7 +1099,7 @@ const serializeAws_restJson1UpdateFindingsCommand = async (input, context) => {
|
|
|
1099
1099
|
const headers = {
|
|
1100
1100
|
"content-type": "application/json",
|
|
1101
1101
|
};
|
|
1102
|
-
const resolvedPath = `${
|
|
1102
|
+
const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/findings";
|
|
1103
1103
|
let body;
|
|
1104
1104
|
body = JSON.stringify({
|
|
1105
1105
|
...(input.Filters != null && { Filters: serializeAws_restJson1AwsSecurityFindingFilters(input.Filters, context) }),
|
|
@@ -1122,7 +1122,7 @@ const serializeAws_restJson1UpdateInsightCommand = async (input, context) => {
|
|
|
1122
1122
|
const headers = {
|
|
1123
1123
|
"content-type": "application/json",
|
|
1124
1124
|
};
|
|
1125
|
-
let resolvedPath = `${
|
|
1125
|
+
let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/insights/{InsightArn+}";
|
|
1126
1126
|
resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "InsightArn", () => input.InsightArn, "{InsightArn+}", true);
|
|
1127
1127
|
let body;
|
|
1128
1128
|
body = JSON.stringify({
|
|
@@ -1146,7 +1146,7 @@ const serializeAws_restJson1UpdateOrganizationConfigurationCommand = async (inpu
|
|
|
1146
1146
|
const headers = {
|
|
1147
1147
|
"content-type": "application/json",
|
|
1148
1148
|
};
|
|
1149
|
-
const resolvedPath = `${
|
|
1149
|
+
const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/organization/configuration";
|
|
1150
1150
|
let body;
|
|
1151
1151
|
body = JSON.stringify({
|
|
1152
1152
|
...(input.AutoEnable != null && { AutoEnable: input.AutoEnable }),
|
|
@@ -1168,7 +1168,7 @@ const serializeAws_restJson1UpdateSecurityHubConfigurationCommand = async (input
|
|
|
1168
1168
|
const headers = {
|
|
1169
1169
|
"content-type": "application/json",
|
|
1170
1170
|
};
|
|
1171
|
-
const resolvedPath = `${
|
|
1171
|
+
const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/accounts";
|
|
1172
1172
|
let body;
|
|
1173
1173
|
body = JSON.stringify({
|
|
1174
1174
|
...(input.AutoEnableControls != null && { AutoEnableControls: input.AutoEnableControls }),
|
|
@@ -1189,7 +1189,7 @@ const serializeAws_restJson1UpdateStandardsControlCommand = async (input, contex
|
|
|
1189
1189
|
const headers = {
|
|
1190
1190
|
"content-type": "application/json",
|
|
1191
1191
|
};
|
|
1192
|
-
let resolvedPath = `${
|
|
1192
|
+
let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/standards/control/{StandardsControlArn+}";
|
|
1193
1193
|
resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "StandardsControlArn", () => input.StandardsControlArn, "{StandardsControlArn+}", true);
|
|
1194
1194
|
let body;
|
|
1195
1195
|
body = JSON.stringify({
|
|
@@ -18326,15 +18326,12 @@ const deserializeAws_restJson1Workflow = (output, context) => {
|
|
|
18326
18326
|
Status: (0, smithy_client_1.expectString)(output.Status),
|
|
18327
18327
|
};
|
|
18328
18328
|
};
|
|
18329
|
-
const deserializeMetadata = (output) => {
|
|
18330
|
-
|
|
18331
|
-
|
|
18332
|
-
|
|
18333
|
-
|
|
18334
|
-
|
|
18335
|
-
cfId: output.headers["x-amz-cf-id"],
|
|
18336
|
-
});
|
|
18337
|
-
};
|
|
18329
|
+
const deserializeMetadata = (output) => ({
|
|
18330
|
+
httpStatusCode: output.statusCode,
|
|
18331
|
+
requestId: output.headers["x-amzn-requestid"] ?? output.headers["x-amzn-request-id"] ?? output.headers["x-amz-request-id"],
|
|
18332
|
+
extendedRequestId: output.headers["x-amz-id-2"],
|
|
18333
|
+
cfId: output.headers["x-amz-cf-id"],
|
|
18334
|
+
});
|
|
18338
18335
|
const collectBody = (streamBody = new Uint8Array(), context) => {
|
|
18339
18336
|
if (streamBody instanceof Uint8Array) {
|
|
18340
18337
|
return Promise.resolve(streamBody);
|
|
@@ -18354,9 +18351,8 @@ const parseBody = (streamBody, context) => collectBodyString(streamBody, context
|
|
|
18354
18351
|
return {};
|
|
18355
18352
|
});
|
|
18356
18353
|
const parseErrorBody = async (errorBody, context) => {
|
|
18357
|
-
var _a;
|
|
18358
18354
|
const value = await parseBody(errorBody, context);
|
|
18359
|
-
value.message =
|
|
18355
|
+
value.message = value.message ?? value.Message;
|
|
18360
18356
|
return value;
|
|
18361
18357
|
};
|
|
18362
18358
|
const loadRestJsonErrorCode = (output, data) => {
|
|
@@ -16,7 +16,6 @@ const runtimeConfig_shared_1 = require("./runtimeConfig.shared");
|
|
|
16
16
|
const smithy_client_1 = require("@aws-sdk/smithy-client");
|
|
17
17
|
const util_defaults_mode_browser_1 = require("@aws-sdk/util-defaults-mode-browser");
|
|
18
18
|
const getRuntimeConfig = (config) => {
|
|
19
|
-
var _a, _b, _c, _d, _e, _f, _g, _h, _j, _k, _l, _m, _o, _p, _q;
|
|
20
19
|
const defaultsMode = (0, util_defaults_mode_browser_1.resolveDefaultsModeConfig)(config);
|
|
21
20
|
const defaultConfigProvider = () => defaultsMode().then(smithy_client_1.loadConfigsForDefaultMode);
|
|
22
21
|
const clientSharedValues = (0, runtimeConfig_shared_1.getRuntimeConfig)(config);
|
|
@@ -25,21 +24,22 @@ const getRuntimeConfig = (config) => {
|
|
|
25
24
|
...config,
|
|
26
25
|
runtime: "browser",
|
|
27
26
|
defaultsMode,
|
|
28
|
-
base64Decoder:
|
|
29
|
-
base64Encoder:
|
|
30
|
-
bodyLengthChecker:
|
|
31
|
-
credentialDefaultProvider:
|
|
32
|
-
defaultUserAgentProvider:
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
27
|
+
base64Decoder: config?.base64Decoder ?? util_base64_browser_1.fromBase64,
|
|
28
|
+
base64Encoder: config?.base64Encoder ?? util_base64_browser_1.toBase64,
|
|
29
|
+
bodyLengthChecker: config?.bodyLengthChecker ?? util_body_length_browser_1.calculateBodyLength,
|
|
30
|
+
credentialDefaultProvider: config?.credentialDefaultProvider ?? ((_) => () => Promise.reject(new Error("Credential is missing"))),
|
|
31
|
+
defaultUserAgentProvider: config?.defaultUserAgentProvider ??
|
|
32
|
+
(0, util_user_agent_browser_1.defaultUserAgent)({ serviceId: clientSharedValues.serviceId, clientVersion: package_json_1.default.version }),
|
|
33
|
+
maxAttempts: config?.maxAttempts ?? middleware_retry_1.DEFAULT_MAX_ATTEMPTS,
|
|
34
|
+
region: config?.region ?? (0, invalid_dependency_1.invalidProvider)("Region is missing"),
|
|
35
|
+
requestHandler: config?.requestHandler ?? new fetch_http_handler_1.FetchHttpHandler(defaultConfigProvider),
|
|
36
|
+
retryMode: config?.retryMode ?? (async () => (await defaultConfigProvider()).retryMode || middleware_retry_1.DEFAULT_RETRY_MODE),
|
|
37
|
+
sha256: config?.sha256 ?? sha256_browser_1.Sha256,
|
|
38
|
+
streamCollector: config?.streamCollector ?? fetch_http_handler_1.streamCollector,
|
|
39
|
+
useDualstackEndpoint: config?.useDualstackEndpoint ?? (() => Promise.resolve(config_resolver_1.DEFAULT_USE_DUALSTACK_ENDPOINT)),
|
|
40
|
+
useFipsEndpoint: config?.useFipsEndpoint ?? (() => Promise.resolve(config_resolver_1.DEFAULT_USE_FIPS_ENDPOINT)),
|
|
41
|
+
utf8Decoder: config?.utf8Decoder ?? util_utf8_browser_1.fromUtf8,
|
|
42
|
+
utf8Encoder: config?.utf8Encoder ?? util_utf8_browser_1.toUtf8,
|
|
43
43
|
};
|
|
44
44
|
};
|
|
45
45
|
exports.getRuntimeConfig = getRuntimeConfig;
|
|
@@ -19,7 +19,6 @@ const smithy_client_1 = require("@aws-sdk/smithy-client");
|
|
|
19
19
|
const util_defaults_mode_node_1 = require("@aws-sdk/util-defaults-mode-node");
|
|
20
20
|
const smithy_client_2 = require("@aws-sdk/smithy-client");
|
|
21
21
|
const getRuntimeConfig = (config) => {
|
|
22
|
-
var _a, _b, _c, _d, _e, _f, _g, _h, _j, _k, _l, _m, _o, _p, _q;
|
|
23
22
|
(0, smithy_client_2.emitWarningIfUnsupportedVersion)(process.version);
|
|
24
23
|
const defaultsMode = (0, util_defaults_mode_node_1.resolveDefaultsModeConfig)(config);
|
|
25
24
|
const defaultConfigProvider = () => defaultsMode().then(smithy_client_1.loadConfigsForDefaultMode);
|
|
@@ -29,24 +28,26 @@ const getRuntimeConfig = (config) => {
|
|
|
29
28
|
...config,
|
|
30
29
|
runtime: "node",
|
|
31
30
|
defaultsMode,
|
|
32
|
-
base64Decoder:
|
|
33
|
-
base64Encoder:
|
|
34
|
-
bodyLengthChecker:
|
|
35
|
-
credentialDefaultProvider:
|
|
36
|
-
defaultUserAgentProvider:
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
31
|
+
base64Decoder: config?.base64Decoder ?? util_base64_node_1.fromBase64,
|
|
32
|
+
base64Encoder: config?.base64Encoder ?? util_base64_node_1.toBase64,
|
|
33
|
+
bodyLengthChecker: config?.bodyLengthChecker ?? util_body_length_node_1.calculateBodyLength,
|
|
34
|
+
credentialDefaultProvider: config?.credentialDefaultProvider ?? (0, client_sts_1.decorateDefaultCredentialProvider)(credential_provider_node_1.defaultProvider),
|
|
35
|
+
defaultUserAgentProvider: config?.defaultUserAgentProvider ??
|
|
36
|
+
(0, util_user_agent_node_1.defaultUserAgent)({ serviceId: clientSharedValues.serviceId, clientVersion: package_json_1.default.version }),
|
|
37
|
+
maxAttempts: config?.maxAttempts ?? (0, node_config_provider_1.loadConfig)(middleware_retry_1.NODE_MAX_ATTEMPT_CONFIG_OPTIONS),
|
|
38
|
+
region: config?.region ?? (0, node_config_provider_1.loadConfig)(config_resolver_1.NODE_REGION_CONFIG_OPTIONS, config_resolver_1.NODE_REGION_CONFIG_FILE_OPTIONS),
|
|
39
|
+
requestHandler: config?.requestHandler ?? new node_http_handler_1.NodeHttpHandler(defaultConfigProvider),
|
|
40
|
+
retryMode: config?.retryMode ??
|
|
41
|
+
(0, node_config_provider_1.loadConfig)({
|
|
42
|
+
...middleware_retry_1.NODE_RETRY_MODE_CONFIG_OPTIONS,
|
|
43
|
+
default: async () => (await defaultConfigProvider()).retryMode || middleware_retry_1.DEFAULT_RETRY_MODE,
|
|
44
|
+
}),
|
|
45
|
+
sha256: config?.sha256 ?? hash_node_1.Hash.bind(null, "sha256"),
|
|
46
|
+
streamCollector: config?.streamCollector ?? node_http_handler_1.streamCollector,
|
|
47
|
+
useDualstackEndpoint: config?.useDualstackEndpoint ?? (0, node_config_provider_1.loadConfig)(config_resolver_1.NODE_USE_DUALSTACK_ENDPOINT_CONFIG_OPTIONS),
|
|
48
|
+
useFipsEndpoint: config?.useFipsEndpoint ?? (0, node_config_provider_1.loadConfig)(config_resolver_1.NODE_USE_FIPS_ENDPOINT_CONFIG_OPTIONS),
|
|
49
|
+
utf8Decoder: config?.utf8Decoder ?? util_utf8_node_1.fromUtf8,
|
|
50
|
+
utf8Encoder: config?.utf8Encoder ?? util_utf8_node_1.toUtf8,
|
|
50
51
|
};
|
|
51
52
|
};
|
|
52
53
|
exports.getRuntimeConfig = getRuntimeConfig;
|
|
@@ -4,13 +4,12 @@ exports.getRuntimeConfig = void 0;
|
|
|
4
4
|
const sha256_js_1 = require("@aws-crypto/sha256-js");
|
|
5
5
|
const runtimeConfig_browser_1 = require("./runtimeConfig.browser");
|
|
6
6
|
const getRuntimeConfig = (config) => {
|
|
7
|
-
var _a;
|
|
8
7
|
const browserDefaults = (0, runtimeConfig_browser_1.getRuntimeConfig)(config);
|
|
9
8
|
return {
|
|
10
9
|
...browserDefaults,
|
|
11
10
|
...config,
|
|
12
11
|
runtime: "react-native",
|
|
13
|
-
sha256:
|
|
12
|
+
sha256: config?.sha256 ?? sha256_js_1.Sha256,
|
|
14
13
|
};
|
|
15
14
|
};
|
|
16
15
|
exports.getRuntimeConfig = getRuntimeConfig;
|
|
@@ -3,15 +3,12 @@ Object.defineProperty(exports, "__esModule", { value: true });
|
|
|
3
3
|
exports.getRuntimeConfig = void 0;
|
|
4
4
|
const url_parser_1 = require("@aws-sdk/url-parser");
|
|
5
5
|
const endpointResolver_1 = require("./endpoint/endpointResolver");
|
|
6
|
-
const getRuntimeConfig = (config) => {
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
urlParser: (_e = config === null || config === void 0 ? void 0 : config.urlParser) !== null && _e !== void 0 ? _e : url_parser_1.parseUrl,
|
|
15
|
-
});
|
|
16
|
-
};
|
|
6
|
+
const getRuntimeConfig = (config) => ({
|
|
7
|
+
apiVersion: "2018-10-26",
|
|
8
|
+
disableHostPrefix: config?.disableHostPrefix ?? false,
|
|
9
|
+
endpointProvider: config?.endpointProvider ?? endpointResolver_1.defaultEndpointResolver,
|
|
10
|
+
logger: config?.logger ?? {},
|
|
11
|
+
serviceId: config?.serviceId ?? "SecurityHub",
|
|
12
|
+
urlParser: config?.urlParser ?? url_parser_1.parseUrl,
|
|
13
|
+
});
|
|
17
14
|
exports.getRuntimeConfig = getRuntimeConfig;
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@aws-sdk/client-securityhub",
|
|
3
3
|
"description": "AWS SDK for JavaScript Securityhub Client for Node.js, Browser and React Native",
|
|
4
|
-
"version": "3.
|
|
4
|
+
"version": "3.202.0",
|
|
5
5
|
"scripts": {
|
|
6
6
|
"build": "concurrently 'yarn:build:cjs' 'yarn:build:es' 'yarn:build:types'",
|
|
7
7
|
"build:cjs": "tsc -p tsconfig.cjs.json",
|
|
@@ -19,44 +19,44 @@
|
|
|
19
19
|
"dependencies": {
|
|
20
20
|
"@aws-crypto/sha256-browser": "2.0.0",
|
|
21
21
|
"@aws-crypto/sha256-js": "2.0.0",
|
|
22
|
-
"@aws-sdk/client-sts": "3.
|
|
23
|
-
"@aws-sdk/config-resolver": "3.
|
|
24
|
-
"@aws-sdk/credential-provider-node": "3.
|
|
25
|
-
"@aws-sdk/fetch-http-handler": "3.
|
|
26
|
-
"@aws-sdk/hash-node": "3.
|
|
27
|
-
"@aws-sdk/invalid-dependency": "3.
|
|
28
|
-
"@aws-sdk/middleware-content-length": "3.
|
|
29
|
-
"@aws-sdk/middleware-endpoint": "3.
|
|
30
|
-
"@aws-sdk/middleware-host-header": "3.
|
|
31
|
-
"@aws-sdk/middleware-logger": "3.
|
|
32
|
-
"@aws-sdk/middleware-recursion-detection": "3.
|
|
33
|
-
"@aws-sdk/middleware-retry": "3.
|
|
34
|
-
"@aws-sdk/middleware-serde": "3.
|
|
35
|
-
"@aws-sdk/middleware-signing": "3.
|
|
36
|
-
"@aws-sdk/middleware-stack": "3.
|
|
37
|
-
"@aws-sdk/middleware-user-agent": "3.
|
|
38
|
-
"@aws-sdk/node-config-provider": "3.
|
|
39
|
-
"@aws-sdk/node-http-handler": "3.
|
|
40
|
-
"@aws-sdk/protocol-http": "3.
|
|
41
|
-
"@aws-sdk/smithy-client": "3.
|
|
42
|
-
"@aws-sdk/types": "3.
|
|
43
|
-
"@aws-sdk/url-parser": "3.
|
|
22
|
+
"@aws-sdk/client-sts": "3.202.0",
|
|
23
|
+
"@aws-sdk/config-resolver": "3.201.0",
|
|
24
|
+
"@aws-sdk/credential-provider-node": "3.202.0",
|
|
25
|
+
"@aws-sdk/fetch-http-handler": "3.201.0",
|
|
26
|
+
"@aws-sdk/hash-node": "3.201.0",
|
|
27
|
+
"@aws-sdk/invalid-dependency": "3.201.0",
|
|
28
|
+
"@aws-sdk/middleware-content-length": "3.201.0",
|
|
29
|
+
"@aws-sdk/middleware-endpoint": "3.201.0",
|
|
30
|
+
"@aws-sdk/middleware-host-header": "3.201.0",
|
|
31
|
+
"@aws-sdk/middleware-logger": "3.201.0",
|
|
32
|
+
"@aws-sdk/middleware-recursion-detection": "3.201.0",
|
|
33
|
+
"@aws-sdk/middleware-retry": "3.201.0",
|
|
34
|
+
"@aws-sdk/middleware-serde": "3.201.0",
|
|
35
|
+
"@aws-sdk/middleware-signing": "3.201.0",
|
|
36
|
+
"@aws-sdk/middleware-stack": "3.201.0",
|
|
37
|
+
"@aws-sdk/middleware-user-agent": "3.201.0",
|
|
38
|
+
"@aws-sdk/node-config-provider": "3.201.0",
|
|
39
|
+
"@aws-sdk/node-http-handler": "3.201.0",
|
|
40
|
+
"@aws-sdk/protocol-http": "3.201.0",
|
|
41
|
+
"@aws-sdk/smithy-client": "3.201.0",
|
|
42
|
+
"@aws-sdk/types": "3.201.0",
|
|
43
|
+
"@aws-sdk/url-parser": "3.201.0",
|
|
44
44
|
"@aws-sdk/util-base64-browser": "3.188.0",
|
|
45
|
-
"@aws-sdk/util-base64-node": "3.
|
|
45
|
+
"@aws-sdk/util-base64-node": "3.201.0",
|
|
46
46
|
"@aws-sdk/util-body-length-browser": "3.188.0",
|
|
47
|
-
"@aws-sdk/util-body-length-node": "3.
|
|
48
|
-
"@aws-sdk/util-defaults-mode-browser": "3.
|
|
49
|
-
"@aws-sdk/util-defaults-mode-node": "3.
|
|
50
|
-
"@aws-sdk/util-endpoints": "3.
|
|
51
|
-
"@aws-sdk/util-user-agent-browser": "3.
|
|
52
|
-
"@aws-sdk/util-user-agent-node": "3.
|
|
47
|
+
"@aws-sdk/util-body-length-node": "3.201.0",
|
|
48
|
+
"@aws-sdk/util-defaults-mode-browser": "3.201.0",
|
|
49
|
+
"@aws-sdk/util-defaults-mode-node": "3.201.0",
|
|
50
|
+
"@aws-sdk/util-endpoints": "3.202.0",
|
|
51
|
+
"@aws-sdk/util-user-agent-browser": "3.201.0",
|
|
52
|
+
"@aws-sdk/util-user-agent-node": "3.201.0",
|
|
53
53
|
"@aws-sdk/util-utf8-browser": "3.188.0",
|
|
54
|
-
"@aws-sdk/util-utf8-node": "3.
|
|
54
|
+
"@aws-sdk/util-utf8-node": "3.201.0",
|
|
55
55
|
"tslib": "^2.3.1"
|
|
56
56
|
},
|
|
57
57
|
"devDependencies": {
|
|
58
58
|
"@aws-sdk/service-client-documentation-generator": "3.188.0",
|
|
59
|
-
"@tsconfig/
|
|
59
|
+
"@tsconfig/node14": "1.0.3",
|
|
60
60
|
"@types/node": "^12.7.5",
|
|
61
61
|
"concurrently": "7.0.0",
|
|
62
62
|
"downlevel-dts": "0.10.1",
|
|
@@ -70,7 +70,7 @@
|
|
|
70
70
|
}
|
|
71
71
|
},
|
|
72
72
|
"engines": {
|
|
73
|
-
"node": ">=
|
|
73
|
+
"node": ">=14.0.0"
|
|
74
74
|
},
|
|
75
75
|
"typesVersions": {
|
|
76
76
|
"<4.0": {
|