@aws-sdk/client-securityhub 3.53.0 → 3.55.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.
Files changed (86) hide show
  1. package/CHANGELOG.md +24 -0
  2. package/dist-cjs/SecurityHubClient.js +13 -13
  3. package/dist-cjs/commands/AcceptAdministratorInvitationCommand.js +3 -3
  4. package/dist-cjs/commands/AcceptInvitationCommand.js +3 -3
  5. package/dist-cjs/commands/BatchDisableStandardsCommand.js +3 -3
  6. package/dist-cjs/commands/BatchEnableStandardsCommand.js +3 -3
  7. package/dist-cjs/commands/BatchImportFindingsCommand.js +3 -3
  8. package/dist-cjs/commands/BatchUpdateFindingsCommand.js +3 -3
  9. package/dist-cjs/commands/CreateActionTargetCommand.js +3 -3
  10. package/dist-cjs/commands/CreateFindingAggregatorCommand.js +3 -3
  11. package/dist-cjs/commands/CreateInsightCommand.js +3 -3
  12. package/dist-cjs/commands/CreateMembersCommand.js +3 -3
  13. package/dist-cjs/commands/DeclineInvitationsCommand.js +3 -3
  14. package/dist-cjs/commands/DeleteActionTargetCommand.js +3 -3
  15. package/dist-cjs/commands/DeleteFindingAggregatorCommand.js +3 -3
  16. package/dist-cjs/commands/DeleteInsightCommand.js +3 -3
  17. package/dist-cjs/commands/DeleteInvitationsCommand.js +3 -3
  18. package/dist-cjs/commands/DeleteMembersCommand.js +3 -3
  19. package/dist-cjs/commands/DescribeActionTargetsCommand.js +3 -3
  20. package/dist-cjs/commands/DescribeHubCommand.js +3 -3
  21. package/dist-cjs/commands/DescribeOrganizationConfigurationCommand.js +3 -3
  22. package/dist-cjs/commands/DescribeProductsCommand.js +3 -3
  23. package/dist-cjs/commands/DescribeStandardsCommand.js +3 -3
  24. package/dist-cjs/commands/DescribeStandardsControlsCommand.js +3 -3
  25. package/dist-cjs/commands/DisableImportFindingsForProductCommand.js +3 -3
  26. package/dist-cjs/commands/DisableOrganizationAdminAccountCommand.js +3 -3
  27. package/dist-cjs/commands/DisableSecurityHubCommand.js +3 -3
  28. package/dist-cjs/commands/DisassociateFromAdministratorAccountCommand.js +3 -3
  29. package/dist-cjs/commands/DisassociateFromMasterAccountCommand.js +3 -3
  30. package/dist-cjs/commands/DisassociateMembersCommand.js +3 -3
  31. package/dist-cjs/commands/EnableImportFindingsForProductCommand.js +3 -3
  32. package/dist-cjs/commands/EnableOrganizationAdminAccountCommand.js +3 -3
  33. package/dist-cjs/commands/EnableSecurityHubCommand.js +3 -3
  34. package/dist-cjs/commands/GetAdministratorAccountCommand.js +3 -3
  35. package/dist-cjs/commands/GetEnabledStandardsCommand.js +3 -3
  36. package/dist-cjs/commands/GetFindingAggregatorCommand.js +3 -3
  37. package/dist-cjs/commands/GetFindingsCommand.js +3 -3
  38. package/dist-cjs/commands/GetInsightResultsCommand.js +3 -3
  39. package/dist-cjs/commands/GetInsightsCommand.js +3 -3
  40. package/dist-cjs/commands/GetInvitationsCountCommand.js +3 -3
  41. package/dist-cjs/commands/GetMasterAccountCommand.js +3 -3
  42. package/dist-cjs/commands/GetMembersCommand.js +3 -3
  43. package/dist-cjs/commands/InviteMembersCommand.js +3 -3
  44. package/dist-cjs/commands/ListEnabledProductsForImportCommand.js +3 -3
  45. package/dist-cjs/commands/ListFindingAggregatorsCommand.js +3 -3
  46. package/dist-cjs/commands/ListInvitationsCommand.js +3 -3
  47. package/dist-cjs/commands/ListMembersCommand.js +3 -3
  48. package/dist-cjs/commands/ListOrganizationAdminAccountsCommand.js +3 -3
  49. package/dist-cjs/commands/ListTagsForResourceCommand.js +3 -3
  50. package/dist-cjs/commands/TagResourceCommand.js +3 -3
  51. package/dist-cjs/commands/UntagResourceCommand.js +3 -3
  52. package/dist-cjs/commands/UpdateActionTargetCommand.js +3 -3
  53. package/dist-cjs/commands/UpdateFindingAggregatorCommand.js +3 -3
  54. package/dist-cjs/commands/UpdateFindingsCommand.js +3 -3
  55. package/dist-cjs/commands/UpdateInsightCommand.js +3 -3
  56. package/dist-cjs/commands/UpdateOrganizationConfigurationCommand.js +3 -3
  57. package/dist-cjs/commands/UpdateSecurityHubConfigurationCommand.js +3 -3
  58. package/dist-cjs/commands/UpdateStandardsControlCommand.js +3 -3
  59. package/dist-cjs/endpoints.js +1 -1
  60. package/dist-cjs/protocols/Aws_restJson1.js +1591 -1591
  61. package/dist-cjs/runtimeConfig.browser.js +4 -4
  62. package/dist-cjs/runtimeConfig.js +9 -9
  63. package/dist-cjs/runtimeConfig.native.js +1 -1
  64. package/dist-es/SecurityHub.js +56 -56
  65. package/dist-es/pagination/DescribeActionTargetsPaginator.js +4 -4
  66. package/dist-es/pagination/DescribeProductsPaginator.js +4 -4
  67. package/dist-es/pagination/DescribeStandardsControlsPaginator.js +4 -4
  68. package/dist-es/pagination/DescribeStandardsPaginator.js +4 -4
  69. package/dist-es/pagination/GetEnabledStandardsPaginator.js +4 -4
  70. package/dist-es/pagination/GetFindingsPaginator.js +4 -4
  71. package/dist-es/pagination/GetInsightsPaginator.js +4 -4
  72. package/dist-es/pagination/ListEnabledProductsForImportPaginator.js +4 -4
  73. package/dist-es/pagination/ListFindingAggregatorsPaginator.js +4 -4
  74. package/dist-es/pagination/ListInvitationsPaginator.js +4 -4
  75. package/dist-es/pagination/ListMembersPaginator.js +4 -4
  76. package/dist-es/pagination/ListOrganizationAdminAccountsPaginator.js +4 -4
  77. package/dist-es/protocols/Aws_restJson1.js +56 -56
  78. package/dist-types/SecurityHubClient.d.ts +2 -2
  79. package/dist-types/runtimeConfig.browser.d.ts +1 -1
  80. package/dist-types/runtimeConfig.d.ts +1 -1
  81. package/dist-types/runtimeConfig.native.d.ts +3 -3
  82. package/dist-types/ts3.4/SecurityHubClient.d.ts +2 -2
  83. package/dist-types/ts3.4/runtimeConfig.browser.d.ts +1 -1
  84. package/dist-types/ts3.4/runtimeConfig.d.ts +1 -1
  85. package/dist-types/ts3.4/runtimeConfig.native.d.ts +3 -3
  86. package/package.json +34 -34
@@ -14,7 +14,7 @@ export var serializeAws_restJson1AcceptAdministratorInvitationCommand = function
14
14
  headers = {
15
15
  "content-type": "application/json",
16
16
  };
17
- resolvedPath = "" + ((basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || "") + "/administrator";
17
+ resolvedPath = "".concat((basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || "") + "/administrator";
18
18
  body = JSON.stringify(__assign(__assign({}, (input.AdministratorId !== undefined &&
19
19
  input.AdministratorId !== null && { AdministratorId: input.AdministratorId })), (input.InvitationId !== undefined && input.InvitationId !== null && { InvitationId: input.InvitationId })));
20
20
  return [2, new __HttpRequest({
@@ -39,7 +39,7 @@ export var serializeAws_restJson1AcceptInvitationCommand = function (input, cont
39
39
  headers = {
40
40
  "content-type": "application/json",
41
41
  };
42
- resolvedPath = "" + ((basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || "") + "/master";
42
+ resolvedPath = "".concat((basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || "") + "/master";
43
43
  body = JSON.stringify(__assign(__assign({}, (input.InvitationId !== undefined && input.InvitationId !== null && { InvitationId: input.InvitationId })), (input.MasterId !== undefined && input.MasterId !== null && { MasterId: input.MasterId })));
44
44
  return [2, new __HttpRequest({
45
45
  protocol: protocol,
@@ -63,7 +63,7 @@ export var serializeAws_restJson1BatchDisableStandardsCommand = function (input,
63
63
  headers = {
64
64
  "content-type": "application/json",
65
65
  };
66
- resolvedPath = "" + ((basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || "") + "/standards/deregister";
66
+ resolvedPath = "".concat((basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || "") + "/standards/deregister";
67
67
  body = JSON.stringify(__assign({}, (input.StandardsSubscriptionArns !== undefined &&
68
68
  input.StandardsSubscriptionArns !== null && {
69
69
  StandardsSubscriptionArns: serializeAws_restJson1StandardsSubscriptionArns(input.StandardsSubscriptionArns, context),
@@ -90,7 +90,7 @@ export var serializeAws_restJson1BatchEnableStandardsCommand = function (input,
90
90
  headers = {
91
91
  "content-type": "application/json",
92
92
  };
93
- resolvedPath = "" + ((basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || "") + "/standards/register";
93
+ resolvedPath = "".concat((basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || "") + "/standards/register";
94
94
  body = JSON.stringify(__assign({}, (input.StandardsSubscriptionRequests !== undefined &&
95
95
  input.StandardsSubscriptionRequests !== null && {
96
96
  StandardsSubscriptionRequests: serializeAws_restJson1StandardsSubscriptionRequests(input.StandardsSubscriptionRequests, context),
@@ -117,7 +117,7 @@ export var serializeAws_restJson1BatchImportFindingsCommand = function (input, c
117
117
  headers = {
118
118
  "content-type": "application/json",
119
119
  };
120
- resolvedPath = "" + ((basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || "") + "/findings/import";
120
+ resolvedPath = "".concat((basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || "") + "/findings/import";
121
121
  body = JSON.stringify(__assign({}, (input.Findings !== undefined &&
122
122
  input.Findings !== null && {
123
123
  Findings: serializeAws_restJson1BatchImportFindingsRequestFindingList(input.Findings, context),
@@ -144,7 +144,7 @@ export var serializeAws_restJson1BatchUpdateFindingsCommand = function (input, c
144
144
  headers = {
145
145
  "content-type": "application/json",
146
146
  };
147
- resolvedPath = "" + ((basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || "") + "/findings/batchupdate";
147
+ resolvedPath = "".concat((basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || "") + "/findings/batchupdate";
148
148
  body = JSON.stringify(__assign(__assign(__assign(__assign(__assign(__assign(__assign(__assign(__assign(__assign({}, (input.Confidence !== undefined && input.Confidence !== null && { Confidence: input.Confidence })), (input.Criticality !== undefined && input.Criticality !== null && { Criticality: input.Criticality })), (input.FindingIdentifiers !== undefined &&
149
149
  input.FindingIdentifiers !== null && {
150
150
  FindingIdentifiers: serializeAws_restJson1AwsSecurityFindingIdentifierList(input.FindingIdentifiers, context),
@@ -182,7 +182,7 @@ export var serializeAws_restJson1CreateActionTargetCommand = function (input, co
182
182
  headers = {
183
183
  "content-type": "application/json",
184
184
  };
185
- resolvedPath = "" + ((basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || "") + "/actionTargets";
185
+ resolvedPath = "".concat((basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || "") + "/actionTargets";
186
186
  body = JSON.stringify(__assign(__assign(__assign({}, (input.Description !== undefined && input.Description !== null && { Description: input.Description })), (input.Id !== undefined && input.Id !== null && { Id: input.Id })), (input.Name !== undefined && input.Name !== null && { Name: input.Name })));
187
187
  return [2, new __HttpRequest({
188
188
  protocol: protocol,
@@ -206,7 +206,7 @@ export var serializeAws_restJson1CreateFindingAggregatorCommand = function (inpu
206
206
  headers = {
207
207
  "content-type": "application/json",
208
208
  };
209
- resolvedPath = "" + ((basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || "") + "/findingAggregator/create";
209
+ resolvedPath = "".concat((basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || "") + "/findingAggregator/create";
210
210
  body = JSON.stringify(__assign(__assign({}, (input.RegionLinkingMode !== undefined &&
211
211
  input.RegionLinkingMode !== null && { RegionLinkingMode: input.RegionLinkingMode })), (input.Regions !== undefined &&
212
212
  input.Regions !== null && { Regions: serializeAws_restJson1StringList(input.Regions, context) })));
@@ -232,7 +232,7 @@ export var serializeAws_restJson1CreateInsightCommand = function (input, context
232
232
  headers = {
233
233
  "content-type": "application/json",
234
234
  };
235
- resolvedPath = "" + ((basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || "") + "/insights";
235
+ resolvedPath = "".concat((basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || "") + "/insights";
236
236
  body = JSON.stringify(__assign(__assign(__assign({}, (input.Filters !== undefined &&
237
237
  input.Filters !== null && { Filters: serializeAws_restJson1AwsSecurityFindingFilters(input.Filters, context) })), (input.GroupByAttribute !== undefined &&
238
238
  input.GroupByAttribute !== null && { GroupByAttribute: input.GroupByAttribute })), (input.Name !== undefined && input.Name !== null && { Name: input.Name })));
@@ -258,7 +258,7 @@ export var serializeAws_restJson1CreateMembersCommand = function (input, context
258
258
  headers = {
259
259
  "content-type": "application/json",
260
260
  };
261
- resolvedPath = "" + ((basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || "") + "/members";
261
+ resolvedPath = "".concat((basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || "") + "/members";
262
262
  body = JSON.stringify(__assign({}, (input.AccountDetails !== undefined &&
263
263
  input.AccountDetails !== null && {
264
264
  AccountDetails: serializeAws_restJson1AccountDetailsList(input.AccountDetails, context),
@@ -285,7 +285,7 @@ export var serializeAws_restJson1DeclineInvitationsCommand = function (input, co
285
285
  headers = {
286
286
  "content-type": "application/json",
287
287
  };
288
- resolvedPath = "" + ((basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || "") + "/invitations/decline";
288
+ resolvedPath = "".concat((basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || "") + "/invitations/decline";
289
289
  body = JSON.stringify(__assign({}, (input.AccountIds !== undefined &&
290
290
  input.AccountIds !== null && { AccountIds: serializeAws_restJson1AccountIdList(input.AccountIds, context) })));
291
291
  return [2, new __HttpRequest({
@@ -308,7 +308,7 @@ export var serializeAws_restJson1DeleteActionTargetCommand = function (input, co
308
308
  case 1:
309
309
  _a = _c.sent(), hostname = _a.hostname, _b = _a.protocol, protocol = _b === void 0 ? "https" : _b, port = _a.port, basePath = _a.path;
310
310
  headers = {};
311
- resolvedPath = "" + ((basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || "") + "/actionTargets/{ActionTargetArn+}";
311
+ resolvedPath = "".concat((basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || "") + "/actionTargets/{ActionTargetArn+}";
312
312
  if (input.ActionTargetArn !== undefined) {
313
313
  labelValue = input.ActionTargetArn;
314
314
  if (labelValue.length <= 0) {
@@ -342,7 +342,7 @@ export var serializeAws_restJson1DeleteFindingAggregatorCommand = function (inpu
342
342
  case 1:
343
343
  _a = _c.sent(), hostname = _a.hostname, _b = _a.protocol, protocol = _b === void 0 ? "https" : _b, port = _a.port, basePath = _a.path;
344
344
  headers = {};
345
- resolvedPath = "" + ((basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || "") +
345
+ resolvedPath = "".concat((basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || "") +
346
346
  "/findingAggregator/delete/{FindingAggregatorArn+}";
347
347
  if (input.FindingAggregatorArn !== undefined) {
348
348
  labelValue = input.FindingAggregatorArn;
@@ -377,7 +377,7 @@ export var serializeAws_restJson1DeleteInsightCommand = function (input, context
377
377
  case 1:
378
378
  _a = _c.sent(), hostname = _a.hostname, _b = _a.protocol, protocol = _b === void 0 ? "https" : _b, port = _a.port, basePath = _a.path;
379
379
  headers = {};
380
- resolvedPath = "" + ((basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || "") + "/insights/{InsightArn+}";
380
+ resolvedPath = "".concat((basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || "") + "/insights/{InsightArn+}";
381
381
  if (input.InsightArn !== undefined) {
382
382
  labelValue = input.InsightArn;
383
383
  if (labelValue.length <= 0) {
@@ -413,7 +413,7 @@ export var serializeAws_restJson1DeleteInvitationsCommand = function (input, con
413
413
  headers = {
414
414
  "content-type": "application/json",
415
415
  };
416
- resolvedPath = "" + ((basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || "") + "/invitations/delete";
416
+ resolvedPath = "".concat((basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || "") + "/invitations/delete";
417
417
  body = JSON.stringify(__assign({}, (input.AccountIds !== undefined &&
418
418
  input.AccountIds !== null && { AccountIds: serializeAws_restJson1AccountIdList(input.AccountIds, context) })));
419
419
  return [2, new __HttpRequest({
@@ -438,7 +438,7 @@ export var serializeAws_restJson1DeleteMembersCommand = function (input, context
438
438
  headers = {
439
439
  "content-type": "application/json",
440
440
  };
441
- resolvedPath = "" + ((basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || "") + "/members/delete";
441
+ resolvedPath = "".concat((basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || "") + "/members/delete";
442
442
  body = JSON.stringify(__assign({}, (input.AccountIds !== undefined &&
443
443
  input.AccountIds !== null && { AccountIds: serializeAws_restJson1AccountIdList(input.AccountIds, context) })));
444
444
  return [2, new __HttpRequest({
@@ -463,7 +463,7 @@ export var serializeAws_restJson1DescribeActionTargetsCommand = function (input,
463
463
  headers = {
464
464
  "content-type": "application/json",
465
465
  };
466
- resolvedPath = "" + ((basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || "") + "/actionTargets/get";
466
+ resolvedPath = "".concat((basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || "") + "/actionTargets/get";
467
467
  body = JSON.stringify(__assign(__assign(__assign({}, (input.ActionTargetArns !== undefined &&
468
468
  input.ActionTargetArns !== null && {
469
469
  ActionTargetArns: serializeAws_restJson1ArnList(input.ActionTargetArns, context),
@@ -488,7 +488,7 @@ export var serializeAws_restJson1DescribeHubCommand = function (input, context)
488
488
  case 1:
489
489
  _a = _c.sent(), hostname = _a.hostname, _b = _a.protocol, protocol = _b === void 0 ? "https" : _b, port = _a.port, basePath = _a.path;
490
490
  headers = {};
491
- resolvedPath = "" + ((basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || "") + "/accounts";
491
+ resolvedPath = "".concat((basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || "") + "/accounts";
492
492
  query = __assign({}, (input.HubArn !== undefined && { HubArn: input.HubArn }));
493
493
  return [2, new __HttpRequest({
494
494
  protocol: protocol,
@@ -513,7 +513,7 @@ export var serializeAws_restJson1DescribeOrganizationConfigurationCommand = func
513
513
  headers = {
514
514
  "content-type": "application/json",
515
515
  };
516
- resolvedPath = "" + ((basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || "") + "/organization/configuration";
516
+ resolvedPath = "".concat((basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || "") + "/organization/configuration";
517
517
  body = "";
518
518
  return [2, new __HttpRequest({
519
519
  protocol: protocol,
@@ -535,7 +535,7 @@ export var serializeAws_restJson1DescribeProductsCommand = function (input, cont
535
535
  case 1:
536
536
  _a = _c.sent(), hostname = _a.hostname, _b = _a.protocol, protocol = _b === void 0 ? "https" : _b, port = _a.port, basePath = _a.path;
537
537
  headers = {};
538
- resolvedPath = "" + ((basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || "") + "/products";
538
+ resolvedPath = "".concat((basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || "") + "/products";
539
539
  query = __assign(__assign(__assign({}, (input.NextToken !== undefined && { NextToken: input.NextToken })), (input.MaxResults !== undefined && { MaxResults: input.MaxResults.toString() })), (input.ProductArn !== undefined && { ProductArn: input.ProductArn }));
540
540
  return [2, new __HttpRequest({
541
541
  protocol: protocol,
@@ -558,7 +558,7 @@ export var serializeAws_restJson1DescribeStandardsCommand = function (input, con
558
558
  case 1:
559
559
  _a = _c.sent(), hostname = _a.hostname, _b = _a.protocol, protocol = _b === void 0 ? "https" : _b, port = _a.port, basePath = _a.path;
560
560
  headers = {};
561
- resolvedPath = "" + ((basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || "") + "/standards";
561
+ resolvedPath = "".concat((basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || "") + "/standards";
562
562
  query = __assign(__assign({}, (input.NextToken !== undefined && { NextToken: input.NextToken })), (input.MaxResults !== undefined && { MaxResults: input.MaxResults.toString() }));
563
563
  return [2, new __HttpRequest({
564
564
  protocol: protocol,
@@ -581,7 +581,7 @@ export var serializeAws_restJson1DescribeStandardsControlsCommand = function (in
581
581
  case 1:
582
582
  _a = _c.sent(), hostname = _a.hostname, _b = _a.protocol, protocol = _b === void 0 ? "https" : _b, port = _a.port, basePath = _a.path;
583
583
  headers = {};
584
- resolvedPath = "" + ((basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || "") +
584
+ resolvedPath = "".concat((basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || "") +
585
585
  "/standards/controls/{StandardsSubscriptionArn+}";
586
586
  if (input.StandardsSubscriptionArn !== undefined) {
587
587
  labelValue = input.StandardsSubscriptionArn;
@@ -618,7 +618,7 @@ export var serializeAws_restJson1DisableImportFindingsForProductCommand = functi
618
618
  case 1:
619
619
  _a = _c.sent(), hostname = _a.hostname, _b = _a.protocol, protocol = _b === void 0 ? "https" : _b, port = _a.port, basePath = _a.path;
620
620
  headers = {};
621
- resolvedPath = "" + ((basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || "") +
621
+ resolvedPath = "".concat((basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || "") +
622
622
  "/productSubscriptions/{ProductSubscriptionArn+}";
623
623
  if (input.ProductSubscriptionArn !== undefined) {
624
624
  labelValue = input.ProductSubscriptionArn;
@@ -655,7 +655,7 @@ export var serializeAws_restJson1DisableOrganizationAdminAccountCommand = functi
655
655
  headers = {
656
656
  "content-type": "application/json",
657
657
  };
658
- resolvedPath = "" + ((basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || "") + "/organization/admin/disable";
658
+ resolvedPath = "".concat((basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || "") + "/organization/admin/disable";
659
659
  body = JSON.stringify(__assign({}, (input.AdminAccountId !== undefined &&
660
660
  input.AdminAccountId !== null && { AdminAccountId: input.AdminAccountId })));
661
661
  return [2, new __HttpRequest({
@@ -680,7 +680,7 @@ export var serializeAws_restJson1DisableSecurityHubCommand = function (input, co
680
680
  headers = {
681
681
  "content-type": "application/json",
682
682
  };
683
- resolvedPath = "" + ((basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || "") + "/accounts";
683
+ resolvedPath = "".concat((basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || "") + "/accounts";
684
684
  body = "";
685
685
  return [2, new __HttpRequest({
686
686
  protocol: protocol,
@@ -704,7 +704,7 @@ export var serializeAws_restJson1DisassociateFromAdministratorAccountCommand = f
704
704
  headers = {
705
705
  "content-type": "application/json",
706
706
  };
707
- resolvedPath = "" + ((basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || "") + "/administrator/disassociate";
707
+ resolvedPath = "".concat((basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || "") + "/administrator/disassociate";
708
708
  body = "";
709
709
  return [2, new __HttpRequest({
710
710
  protocol: protocol,
@@ -728,7 +728,7 @@ export var serializeAws_restJson1DisassociateFromMasterAccountCommand = function
728
728
  headers = {
729
729
  "content-type": "application/json",
730
730
  };
731
- resolvedPath = "" + ((basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || "") + "/master/disassociate";
731
+ resolvedPath = "".concat((basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || "") + "/master/disassociate";
732
732
  body = "";
733
733
  return [2, new __HttpRequest({
734
734
  protocol: protocol,
@@ -752,7 +752,7 @@ export var serializeAws_restJson1DisassociateMembersCommand = function (input, c
752
752
  headers = {
753
753
  "content-type": "application/json",
754
754
  };
755
- resolvedPath = "" + ((basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || "") + "/members/disassociate";
755
+ resolvedPath = "".concat((basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || "") + "/members/disassociate";
756
756
  body = JSON.stringify(__assign({}, (input.AccountIds !== undefined &&
757
757
  input.AccountIds !== null && { AccountIds: serializeAws_restJson1AccountIdList(input.AccountIds, context) })));
758
758
  return [2, new __HttpRequest({
@@ -777,7 +777,7 @@ export var serializeAws_restJson1EnableImportFindingsForProductCommand = functio
777
777
  headers = {
778
778
  "content-type": "application/json",
779
779
  };
780
- resolvedPath = "" + ((basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || "") + "/productSubscriptions";
780
+ resolvedPath = "".concat((basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || "") + "/productSubscriptions";
781
781
  body = JSON.stringify(__assign({}, (input.ProductArn !== undefined && input.ProductArn !== null && { ProductArn: input.ProductArn })));
782
782
  return [2, new __HttpRequest({
783
783
  protocol: protocol,
@@ -801,7 +801,7 @@ export var serializeAws_restJson1EnableOrganizationAdminAccountCommand = functio
801
801
  headers = {
802
802
  "content-type": "application/json",
803
803
  };
804
- resolvedPath = "" + ((basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || "") + "/organization/admin/enable";
804
+ resolvedPath = "".concat((basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || "") + "/organization/admin/enable";
805
805
  body = JSON.stringify(__assign({}, (input.AdminAccountId !== undefined &&
806
806
  input.AdminAccountId !== null && { AdminAccountId: input.AdminAccountId })));
807
807
  return [2, new __HttpRequest({
@@ -826,7 +826,7 @@ export var serializeAws_restJson1EnableSecurityHubCommand = function (input, con
826
826
  headers = {
827
827
  "content-type": "application/json",
828
828
  };
829
- resolvedPath = "" + ((basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || "") + "/accounts";
829
+ resolvedPath = "".concat((basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || "") + "/accounts";
830
830
  body = JSON.stringify(__assign(__assign({}, (input.EnableDefaultStandards !== undefined &&
831
831
  input.EnableDefaultStandards !== null && { EnableDefaultStandards: input.EnableDefaultStandards })), (input.Tags !== undefined && input.Tags !== null && { Tags: serializeAws_restJson1TagMap(input.Tags, context) })));
832
832
  return [2, new __HttpRequest({
@@ -851,7 +851,7 @@ export var serializeAws_restJson1GetAdministratorAccountCommand = function (inpu
851
851
  headers = {
852
852
  "content-type": "application/json",
853
853
  };
854
- resolvedPath = "" + ((basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || "") + "/administrator";
854
+ resolvedPath = "".concat((basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || "") + "/administrator";
855
855
  body = "";
856
856
  return [2, new __HttpRequest({
857
857
  protocol: protocol,
@@ -875,7 +875,7 @@ export var serializeAws_restJson1GetEnabledStandardsCommand = function (input, c
875
875
  headers = {
876
876
  "content-type": "application/json",
877
877
  };
878
- resolvedPath = "" + ((basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || "") + "/standards/get";
878
+ resolvedPath = "".concat((basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || "") + "/standards/get";
879
879
  body = JSON.stringify(__assign(__assign(__assign({}, (input.MaxResults !== undefined && input.MaxResults !== null && { MaxResults: input.MaxResults })), (input.NextToken !== undefined && input.NextToken !== null && { NextToken: input.NextToken })), (input.StandardsSubscriptionArns !== undefined &&
880
880
  input.StandardsSubscriptionArns !== null && {
881
881
  StandardsSubscriptionArns: serializeAws_restJson1StandardsSubscriptionArns(input.StandardsSubscriptionArns, context),
@@ -900,7 +900,7 @@ export var serializeAws_restJson1GetFindingAggregatorCommand = function (input,
900
900
  case 1:
901
901
  _a = _c.sent(), hostname = _a.hostname, _b = _a.protocol, protocol = _b === void 0 ? "https" : _b, port = _a.port, basePath = _a.path;
902
902
  headers = {};
903
- resolvedPath = "" + ((basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || "") +
903
+ resolvedPath = "".concat((basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || "") +
904
904
  "/findingAggregator/get/{FindingAggregatorArn+}";
905
905
  if (input.FindingAggregatorArn !== undefined) {
906
906
  labelValue = input.FindingAggregatorArn;
@@ -937,7 +937,7 @@ export var serializeAws_restJson1GetFindingsCommand = function (input, context)
937
937
  headers = {
938
938
  "content-type": "application/json",
939
939
  };
940
- resolvedPath = "" + ((basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || "") + "/findings";
940
+ resolvedPath = "".concat((basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || "") + "/findings";
941
941
  body = JSON.stringify(__assign(__assign(__assign(__assign({}, (input.Filters !== undefined &&
942
942
  input.Filters !== null && { Filters: serializeAws_restJson1AwsSecurityFindingFilters(input.Filters, context) })), (input.MaxResults !== undefined && input.MaxResults !== null && { MaxResults: input.MaxResults })), (input.NextToken !== undefined && input.NextToken !== null && { NextToken: input.NextToken })), (input.SortCriteria !== undefined &&
943
943
  input.SortCriteria !== null && { SortCriteria: serializeAws_restJson1SortCriteria(input.SortCriteria, context) })));
@@ -961,7 +961,7 @@ export var serializeAws_restJson1GetInsightResultsCommand = function (input, con
961
961
  case 1:
962
962
  _a = _c.sent(), hostname = _a.hostname, _b = _a.protocol, protocol = _b === void 0 ? "https" : _b, port = _a.port, basePath = _a.path;
963
963
  headers = {};
964
- resolvedPath = "" + ((basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || "") + "/insights/results/{InsightArn+}";
964
+ resolvedPath = "".concat((basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || "") + "/insights/results/{InsightArn+}";
965
965
  if (input.InsightArn !== undefined) {
966
966
  labelValue = input.InsightArn;
967
967
  if (labelValue.length <= 0) {
@@ -997,7 +997,7 @@ export var serializeAws_restJson1GetInsightsCommand = function (input, context)
997
997
  headers = {
998
998
  "content-type": "application/json",
999
999
  };
1000
- resolvedPath = "" + ((basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || "") + "/insights/get";
1000
+ resolvedPath = "".concat((basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || "") + "/insights/get";
1001
1001
  body = JSON.stringify(__assign(__assign(__assign({}, (input.InsightArns !== undefined &&
1002
1002
  input.InsightArns !== null && { InsightArns: serializeAws_restJson1ArnList(input.InsightArns, context) })), (input.MaxResults !== undefined && input.MaxResults !== null && { MaxResults: input.MaxResults })), (input.NextToken !== undefined && input.NextToken !== null && { NextToken: input.NextToken })));
1003
1003
  return [2, new __HttpRequest({
@@ -1022,7 +1022,7 @@ export var serializeAws_restJson1GetInvitationsCountCommand = function (input, c
1022
1022
  headers = {
1023
1023
  "content-type": "application/json",
1024
1024
  };
1025
- resolvedPath = "" + ((basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || "") + "/invitations/count";
1025
+ resolvedPath = "".concat((basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || "") + "/invitations/count";
1026
1026
  body = "";
1027
1027
  return [2, new __HttpRequest({
1028
1028
  protocol: protocol,
@@ -1046,7 +1046,7 @@ export var serializeAws_restJson1GetMasterAccountCommand = function (input, cont
1046
1046
  headers = {
1047
1047
  "content-type": "application/json",
1048
1048
  };
1049
- resolvedPath = "" + ((basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || "") + "/master";
1049
+ resolvedPath = "".concat((basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || "") + "/master";
1050
1050
  body = "";
1051
1051
  return [2, new __HttpRequest({
1052
1052
  protocol: protocol,
@@ -1070,7 +1070,7 @@ export var serializeAws_restJson1GetMembersCommand = function (input, context) {
1070
1070
  headers = {
1071
1071
  "content-type": "application/json",
1072
1072
  };
1073
- resolvedPath = "" + ((basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || "") + "/members/get";
1073
+ resolvedPath = "".concat((basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || "") + "/members/get";
1074
1074
  body = JSON.stringify(__assign({}, (input.AccountIds !== undefined &&
1075
1075
  input.AccountIds !== null && { AccountIds: serializeAws_restJson1AccountIdList(input.AccountIds, context) })));
1076
1076
  return [2, new __HttpRequest({
@@ -1095,7 +1095,7 @@ export var serializeAws_restJson1InviteMembersCommand = function (input, context
1095
1095
  headers = {
1096
1096
  "content-type": "application/json",
1097
1097
  };
1098
- resolvedPath = "" + ((basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || "") + "/members/invite";
1098
+ resolvedPath = "".concat((basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || "") + "/members/invite";
1099
1099
  body = JSON.stringify(__assign({}, (input.AccountIds !== undefined &&
1100
1100
  input.AccountIds !== null && { AccountIds: serializeAws_restJson1AccountIdList(input.AccountIds, context) })));
1101
1101
  return [2, new __HttpRequest({
@@ -1118,7 +1118,7 @@ export var serializeAws_restJson1ListEnabledProductsForImportCommand = function
1118
1118
  case 1:
1119
1119
  _a = _c.sent(), hostname = _a.hostname, _b = _a.protocol, protocol = _b === void 0 ? "https" : _b, port = _a.port, basePath = _a.path;
1120
1120
  headers = {};
1121
- resolvedPath = "" + ((basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || "") + "/productSubscriptions";
1121
+ resolvedPath = "".concat((basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || "") + "/productSubscriptions";
1122
1122
  query = __assign(__assign({}, (input.NextToken !== undefined && { NextToken: input.NextToken })), (input.MaxResults !== undefined && { MaxResults: input.MaxResults.toString() }));
1123
1123
  return [2, new __HttpRequest({
1124
1124
  protocol: protocol,
@@ -1141,7 +1141,7 @@ export var serializeAws_restJson1ListFindingAggregatorsCommand = function (input
1141
1141
  case 1:
1142
1142
  _a = _c.sent(), hostname = _a.hostname, _b = _a.protocol, protocol = _b === void 0 ? "https" : _b, port = _a.port, basePath = _a.path;
1143
1143
  headers = {};
1144
- resolvedPath = "" + ((basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || "") + "/findingAggregator/list";
1144
+ resolvedPath = "".concat((basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || "") + "/findingAggregator/list";
1145
1145
  query = __assign(__assign({}, (input.NextToken !== undefined && { NextToken: input.NextToken })), (input.MaxResults !== undefined && { MaxResults: input.MaxResults.toString() }));
1146
1146
  return [2, new __HttpRequest({
1147
1147
  protocol: protocol,
@@ -1164,7 +1164,7 @@ export var serializeAws_restJson1ListInvitationsCommand = function (input, conte
1164
1164
  case 1:
1165
1165
  _a = _c.sent(), hostname = _a.hostname, _b = _a.protocol, protocol = _b === void 0 ? "https" : _b, port = _a.port, basePath = _a.path;
1166
1166
  headers = {};
1167
- resolvedPath = "" + ((basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || "") + "/invitations";
1167
+ resolvedPath = "".concat((basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || "") + "/invitations";
1168
1168
  query = __assign(__assign({}, (input.MaxResults !== undefined && { MaxResults: input.MaxResults.toString() })), (input.NextToken !== undefined && { NextToken: input.NextToken }));
1169
1169
  return [2, new __HttpRequest({
1170
1170
  protocol: protocol,
@@ -1187,7 +1187,7 @@ export var serializeAws_restJson1ListMembersCommand = function (input, context)
1187
1187
  case 1:
1188
1188
  _a = _c.sent(), hostname = _a.hostname, _b = _a.protocol, protocol = _b === void 0 ? "https" : _b, port = _a.port, basePath = _a.path;
1189
1189
  headers = {};
1190
- resolvedPath = "" + ((basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || "") + "/members";
1190
+ resolvedPath = "".concat((basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || "") + "/members";
1191
1191
  query = __assign(__assign(__assign({}, (input.OnlyAssociated !== undefined && { OnlyAssociated: input.OnlyAssociated.toString() })), (input.MaxResults !== undefined && { MaxResults: input.MaxResults.toString() })), (input.NextToken !== undefined && { NextToken: input.NextToken }));
1192
1192
  return [2, new __HttpRequest({
1193
1193
  protocol: protocol,
@@ -1210,7 +1210,7 @@ export var serializeAws_restJson1ListOrganizationAdminAccountsCommand = function
1210
1210
  case 1:
1211
1211
  _a = _c.sent(), hostname = _a.hostname, _b = _a.protocol, protocol = _b === void 0 ? "https" : _b, port = _a.port, basePath = _a.path;
1212
1212
  headers = {};
1213
- resolvedPath = "" + ((basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || "") + "/organization/admin";
1213
+ resolvedPath = "".concat((basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || "") + "/organization/admin";
1214
1214
  query = __assign(__assign({}, (input.MaxResults !== undefined && { MaxResults: input.MaxResults.toString() })), (input.NextToken !== undefined && { NextToken: input.NextToken }));
1215
1215
  return [2, new __HttpRequest({
1216
1216
  protocol: protocol,
@@ -1233,7 +1233,7 @@ export var serializeAws_restJson1ListTagsForResourceCommand = function (input, c
1233
1233
  case 1:
1234
1234
  _a = _c.sent(), hostname = _a.hostname, _b = _a.protocol, protocol = _b === void 0 ? "https" : _b, port = _a.port, basePath = _a.path;
1235
1235
  headers = {};
1236
- resolvedPath = "" + ((basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || "") + "/tags/{ResourceArn}";
1236
+ resolvedPath = "".concat((basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || "") + "/tags/{ResourceArn}";
1237
1237
  if (input.ResourceArn !== undefined) {
1238
1238
  labelValue = input.ResourceArn;
1239
1239
  if (labelValue.length <= 0) {
@@ -1266,7 +1266,7 @@ export var serializeAws_restJson1TagResourceCommand = function (input, context)
1266
1266
  headers = {
1267
1267
  "content-type": "application/json",
1268
1268
  };
1269
- resolvedPath = "" + ((basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || "") + "/tags/{ResourceArn}";
1269
+ resolvedPath = "".concat((basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || "") + "/tags/{ResourceArn}";
1270
1270
  if (input.ResourceArn !== undefined) {
1271
1271
  labelValue = input.ResourceArn;
1272
1272
  if (labelValue.length <= 0) {
@@ -1298,7 +1298,7 @@ export var serializeAws_restJson1UntagResourceCommand = function (input, context
1298
1298
  case 1:
1299
1299
  _a = _c.sent(), hostname = _a.hostname, _b = _a.protocol, protocol = _b === void 0 ? "https" : _b, port = _a.port, basePath = _a.path;
1300
1300
  headers = {};
1301
- resolvedPath = "" + ((basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || "") + "/tags/{ResourceArn}";
1301
+ resolvedPath = "".concat((basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || "") + "/tags/{ResourceArn}";
1302
1302
  if (input.ResourceArn !== undefined) {
1303
1303
  labelValue = input.ResourceArn;
1304
1304
  if (labelValue.length <= 0) {
@@ -1333,7 +1333,7 @@ export var serializeAws_restJson1UpdateActionTargetCommand = function (input, co
1333
1333
  headers = {
1334
1334
  "content-type": "application/json",
1335
1335
  };
1336
- resolvedPath = "" + ((basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || "") + "/actionTargets/{ActionTargetArn+}";
1336
+ resolvedPath = "".concat((basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || "") + "/actionTargets/{ActionTargetArn+}";
1337
1337
  if (input.ActionTargetArn !== undefined) {
1338
1338
  labelValue = input.ActionTargetArn;
1339
1339
  if (labelValue.length <= 0) {
@@ -1370,7 +1370,7 @@ export var serializeAws_restJson1UpdateFindingAggregatorCommand = function (inpu
1370
1370
  headers = {
1371
1371
  "content-type": "application/json",
1372
1372
  };
1373
- resolvedPath = "" + ((basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || "") + "/findingAggregator/update";
1373
+ resolvedPath = "".concat((basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || "") + "/findingAggregator/update";
1374
1374
  body = JSON.stringify(__assign(__assign(__assign({}, (input.FindingAggregatorArn !== undefined &&
1375
1375
  input.FindingAggregatorArn !== null && { FindingAggregatorArn: input.FindingAggregatorArn })), (input.RegionLinkingMode !== undefined &&
1376
1376
  input.RegionLinkingMode !== null && { RegionLinkingMode: input.RegionLinkingMode })), (input.Regions !== undefined &&
@@ -1397,7 +1397,7 @@ export var serializeAws_restJson1UpdateFindingsCommand = function (input, contex
1397
1397
  headers = {
1398
1398
  "content-type": "application/json",
1399
1399
  };
1400
- resolvedPath = "" + ((basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || "") + "/findings";
1400
+ resolvedPath = "".concat((basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || "") + "/findings";
1401
1401
  body = JSON.stringify(__assign(__assign(__assign({}, (input.Filters !== undefined &&
1402
1402
  input.Filters !== null && { Filters: serializeAws_restJson1AwsSecurityFindingFilters(input.Filters, context) })), (input.Note !== undefined &&
1403
1403
  input.Note !== null && { Note: serializeAws_restJson1NoteUpdate(input.Note, context) })), (input.RecordState !== undefined && input.RecordState !== null && { RecordState: input.RecordState })));
@@ -1423,7 +1423,7 @@ export var serializeAws_restJson1UpdateInsightCommand = function (input, context
1423
1423
  headers = {
1424
1424
  "content-type": "application/json",
1425
1425
  };
1426
- resolvedPath = "" + ((basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || "") + "/insights/{InsightArn+}";
1426
+ resolvedPath = "".concat((basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || "") + "/insights/{InsightArn+}";
1427
1427
  if (input.InsightArn !== undefined) {
1428
1428
  labelValue = input.InsightArn;
1429
1429
  if (labelValue.length <= 0) {
@@ -1462,7 +1462,7 @@ export var serializeAws_restJson1UpdateOrganizationConfigurationCommand = functi
1462
1462
  headers = {
1463
1463
  "content-type": "application/json",
1464
1464
  };
1465
- resolvedPath = "" + ((basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || "") + "/organization/configuration";
1465
+ resolvedPath = "".concat((basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || "") + "/organization/configuration";
1466
1466
  body = JSON.stringify(__assign({}, (input.AutoEnable !== undefined && input.AutoEnable !== null && { AutoEnable: input.AutoEnable })));
1467
1467
  return [2, new __HttpRequest({
1468
1468
  protocol: protocol,
@@ -1486,7 +1486,7 @@ export var serializeAws_restJson1UpdateSecurityHubConfigurationCommand = functio
1486
1486
  headers = {
1487
1487
  "content-type": "application/json",
1488
1488
  };
1489
- resolvedPath = "" + ((basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || "") + "/accounts";
1489
+ resolvedPath = "".concat((basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || "") + "/accounts";
1490
1490
  body = JSON.stringify(__assign({}, (input.AutoEnableControls !== undefined &&
1491
1491
  input.AutoEnableControls !== null && { AutoEnableControls: input.AutoEnableControls })));
1492
1492
  return [2, new __HttpRequest({
@@ -1511,7 +1511,7 @@ export var serializeAws_restJson1UpdateStandardsControlCommand = function (input
1511
1511
  headers = {
1512
1512
  "content-type": "application/json",
1513
1513
  };
1514
- resolvedPath = "" + ((basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || "") + "/standards/control/{StandardsControlArn+}";
1514
+ resolvedPath = "".concat((basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || "") + "/standards/control/{StandardsControlArn+}";
1515
1515
  if (input.StandardsControlArn !== undefined) {
1516
1516
  labelValue = input.StandardsControlArn;
1517
1517
  if (labelValue.length <= 0) {
@@ -5,7 +5,7 @@ import { AwsAuthInputConfig, AwsAuthResolvedConfig } from "@aws-sdk/middleware-s
5
5
  import { UserAgentInputConfig, UserAgentResolvedConfig } from "@aws-sdk/middleware-user-agent";
6
6
  import { HttpHandler as __HttpHandler } from "@aws-sdk/protocol-http";
7
7
  import { Client as __Client, DefaultsMode, SmithyConfiguration as __SmithyConfiguration, SmithyResolvedConfiguration as __SmithyResolvedConfiguration } from "@aws-sdk/smithy-client";
8
- import { Credentials as __Credentials, Decoder as __Decoder, Encoder as __Encoder, HashConstructor as __HashConstructor, HttpHandlerOptions as __HttpHandlerOptions, Logger as __Logger, Provider as __Provider, Provider, RegionInfoProvider, StreamCollector as __StreamCollector, UrlParser as __UrlParser, UserAgent as __UserAgent } from "@aws-sdk/types";
8
+ import { BodyLengthCalculator as __BodyLengthCalculator, Credentials as __Credentials, Decoder as __Decoder, Encoder as __Encoder, HashConstructor as __HashConstructor, HttpHandlerOptions as __HttpHandlerOptions, Logger as __Logger, Provider as __Provider, Provider, RegionInfoProvider, StreamCollector as __StreamCollector, UrlParser as __UrlParser, UserAgent as __UserAgent } from "@aws-sdk/types";
9
9
  import { AcceptAdministratorInvitationCommandInput, AcceptAdministratorInvitationCommandOutput } from "./commands/AcceptAdministratorInvitationCommand";
10
10
  import { AcceptInvitationCommandInput, AcceptInvitationCommandOutput } from "./commands/AcceptInvitationCommand";
11
11
  import { BatchDisableStandardsCommandInput, BatchDisableStandardsCommandOutput } from "./commands/BatchDisableStandardsCommand";
@@ -84,7 +84,7 @@ export interface ClientDefaults extends Partial<__SmithyResolvedConfiguration<__
84
84
  * A function that can calculate the length of a request body.
85
85
  * @internal
86
86
  */
87
- bodyLengthChecker?: (body: any) => number | undefined;
87
+ bodyLengthChecker?: __BodyLengthCalculator;
88
88
  /**
89
89
  * A function that converts a stream into an array of bytes.
90
90
  * @internal
@@ -8,7 +8,7 @@ export declare const getRuntimeConfig: (config: SecurityHubClientConfig) => {
8
8
  defaultsMode: import("@aws-sdk/types").Provider<import("@aws-sdk/smithy-client").ResolvedDefaultsMode>;
9
9
  base64Decoder: import("@aws-sdk/types").Decoder;
10
10
  base64Encoder: import("@aws-sdk/types").Encoder;
11
- bodyLengthChecker: (body: any) => number | undefined;
11
+ bodyLengthChecker: import("@aws-sdk/types").BodyLengthCalculator;
12
12
  credentialDefaultProvider: (input: any) => import("@aws-sdk/types").Provider<import("@aws-sdk/types").Credentials>;
13
13
  defaultUserAgentProvider: import("@aws-sdk/types").Provider<import("@aws-sdk/types").UserAgent>;
14
14
  maxAttempts: number | import("@aws-sdk/types").Provider<number>;
@@ -8,7 +8,7 @@ export declare const getRuntimeConfig: (config: SecurityHubClientConfig) => {
8
8
  defaultsMode: import("@aws-sdk/types").Provider<import("@aws-sdk/smithy-client").ResolvedDefaultsMode>;
9
9
  base64Decoder: import("@aws-sdk/types").Decoder;
10
10
  base64Encoder: import("@aws-sdk/types").Encoder;
11
- bodyLengthChecker: (body: any) => number | undefined;
11
+ bodyLengthChecker: import("@aws-sdk/types").BodyLengthCalculator;
12
12
  credentialDefaultProvider: (input: any) => import("@aws-sdk/types").Provider<import("@aws-sdk/types").Credentials>;
13
13
  defaultUserAgentProvider: import("@aws-sdk/types").Provider<import("@aws-sdk/types").UserAgent>;
14
14
  maxAttempts: number | import("@aws-sdk/types").Provider<number>;
@@ -8,7 +8,7 @@ export declare const getRuntimeConfig: (config: SecurityHubClientConfig) => {
8
8
  requestHandler: (import("@aws-sdk/types").RequestHandler<any, any, import("@aws-sdk/types").HttpHandlerOptions> & import("@aws-sdk/protocol-http").HttpHandler) | import("@aws-sdk/fetch-http-handler").FetchHttpHandler;
9
9
  apiVersion: string;
10
10
  urlParser: import("@aws-sdk/types").UrlParser;
11
- bodyLengthChecker: (body: any) => number | undefined;
11
+ bodyLengthChecker: import("@aws-sdk/types").BodyLengthCalculator;
12
12
  streamCollector: import("@aws-sdk/types").StreamCollector;
13
13
  base64Decoder: import("@aws-sdk/types").Decoder;
14
14
  base64Encoder: import("@aws-sdk/types").Encoder;
@@ -21,11 +21,11 @@ export declare const getRuntimeConfig: (config: SecurityHubClientConfig) => {
21
21
  useDualstackEndpoint: boolean | import("@aws-sdk/types").Provider<boolean>;
22
22
  useFipsEndpoint: boolean | import("@aws-sdk/types").Provider<boolean>;
23
23
  serviceId: string;
24
- region: string | import("@aws-sdk/types").Provider<string> | import("@aws-sdk/types").Provider<any>;
24
+ region: string | import("@aws-sdk/types").Provider<any>;
25
25
  credentialDefaultProvider: (input: any) => import("@aws-sdk/types").Provider<import("@aws-sdk/types").Credentials>;
26
26
  regionInfoProvider: import("@aws-sdk/types").RegionInfoProvider;
27
27
  defaultUserAgentProvider: import("@aws-sdk/types").Provider<import("@aws-sdk/types").UserAgent>;
28
- defaultsMode: import("@aws-sdk/smithy-client").DefaultsMode | import("@aws-sdk/types").Provider<import("@aws-sdk/smithy-client").DefaultsMode> | import("@aws-sdk/types").Provider<import("@aws-sdk/smithy-client").ResolvedDefaultsMode>;
28
+ defaultsMode: import("@aws-sdk/smithy-client").DefaultsMode | import("@aws-sdk/types").Provider<import("@aws-sdk/smithy-client").DefaultsMode>;
29
29
  endpoint?: string | import("@aws-sdk/types").Endpoint | import("@aws-sdk/types").Provider<import("@aws-sdk/types").Endpoint> | undefined;
30
30
  tls?: boolean | undefined;
31
31
  retryStrategy?: import("@aws-sdk/types").RetryStrategy | undefined;
@@ -5,7 +5,7 @@ import { AwsAuthInputConfig, AwsAuthResolvedConfig } from "@aws-sdk/middleware-s
5
5
  import { UserAgentInputConfig, UserAgentResolvedConfig } from "@aws-sdk/middleware-user-agent";
6
6
  import { HttpHandler as __HttpHandler } from "@aws-sdk/protocol-http";
7
7
  import { Client as __Client, DefaultsMode, SmithyConfiguration as __SmithyConfiguration, SmithyResolvedConfiguration as __SmithyResolvedConfiguration } from "@aws-sdk/smithy-client";
8
- import { Credentials as __Credentials, Decoder as __Decoder, Encoder as __Encoder, HashConstructor as __HashConstructor, HttpHandlerOptions as __HttpHandlerOptions, Logger as __Logger, Provider as __Provider, Provider, RegionInfoProvider, StreamCollector as __StreamCollector, UrlParser as __UrlParser, UserAgent as __UserAgent } from "@aws-sdk/types";
8
+ import { BodyLengthCalculator as __BodyLengthCalculator, Credentials as __Credentials, Decoder as __Decoder, Encoder as __Encoder, HashConstructor as __HashConstructor, HttpHandlerOptions as __HttpHandlerOptions, Logger as __Logger, Provider as __Provider, Provider, RegionInfoProvider, StreamCollector as __StreamCollector, UrlParser as __UrlParser, UserAgent as __UserAgent } from "@aws-sdk/types";
9
9
  import { AcceptAdministratorInvitationCommandInput, AcceptAdministratorInvitationCommandOutput } from "./commands/AcceptAdministratorInvitationCommand";
10
10
  import { AcceptInvitationCommandInput, AcceptInvitationCommandOutput } from "./commands/AcceptInvitationCommand";
11
11
  import { BatchDisableStandardsCommandInput, BatchDisableStandardsCommandOutput } from "./commands/BatchDisableStandardsCommand";
@@ -72,7 +72,7 @@ export interface ClientDefaults extends Partial<__SmithyResolvedConfiguration<__
72
72
 
73
73
  urlParser?: __UrlParser;
74
74
 
75
- bodyLengthChecker?: (body: any) => number | undefined;
75
+ bodyLengthChecker?: __BodyLengthCalculator;
76
76
 
77
77
  streamCollector?: __StreamCollector;
78
78