@aws-sdk/client-securityhub 3.454.0 → 3.459.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 (109) hide show
  1. package/README.md +163 -67
  2. package/dist-cjs/SecurityHub.js +24 -0
  3. package/dist-cjs/commands/BatchGetConfigurationPolicyAssociationsCommand.js +51 -0
  4. package/dist-cjs/commands/CreateConfigurationPolicyCommand.js +51 -0
  5. package/dist-cjs/commands/DeleteConfigurationPolicyCommand.js +51 -0
  6. package/dist-cjs/commands/GetConfigurationPolicyAssociationCommand.js +51 -0
  7. package/dist-cjs/commands/GetConfigurationPolicyCommand.js +51 -0
  8. package/dist-cjs/commands/GetSecurityControlDefinitionCommand.js +51 -0
  9. package/dist-cjs/commands/ListConfigurationPoliciesCommand.js +51 -0
  10. package/dist-cjs/commands/ListConfigurationPolicyAssociationsCommand.js +51 -0
  11. package/dist-cjs/commands/StartConfigurationPolicyAssociationCommand.js +51 -0
  12. package/dist-cjs/commands/StartConfigurationPolicyDisassociationCommand.js +51 -0
  13. package/dist-cjs/commands/UpdateConfigurationPolicyCommand.js +51 -0
  14. package/dist-cjs/commands/UpdateSecurityControlCommand.js +51 -0
  15. package/dist-cjs/commands/index.js +12 -0
  16. package/dist-cjs/models/models_0.js +10 -1
  17. package/dist-cjs/models/models_2.js +104 -1
  18. package/dist-cjs/pagination/ListConfigurationPoliciesPaginator.js +29 -0
  19. package/dist-cjs/pagination/ListConfigurationPolicyAssociationsPaginator.js +29 -0
  20. package/dist-cjs/pagination/index.js +2 -0
  21. package/dist-cjs/protocols/Aws_restJson1.js +1283 -31
  22. package/dist-es/SecurityHub.js +24 -0
  23. package/dist-es/commands/BatchGetConfigurationPolicyAssociationsCommand.js +47 -0
  24. package/dist-es/commands/CreateConfigurationPolicyCommand.js +47 -0
  25. package/dist-es/commands/DeleteConfigurationPolicyCommand.js +47 -0
  26. package/dist-es/commands/GetConfigurationPolicyAssociationCommand.js +47 -0
  27. package/dist-es/commands/GetConfigurationPolicyCommand.js +47 -0
  28. package/dist-es/commands/GetSecurityControlDefinitionCommand.js +47 -0
  29. package/dist-es/commands/ListConfigurationPoliciesCommand.js +47 -0
  30. package/dist-es/commands/ListConfigurationPolicyAssociationsCommand.js +47 -0
  31. package/dist-es/commands/StartConfigurationPolicyAssociationCommand.js +47 -0
  32. package/dist-es/commands/StartConfigurationPolicyDisassociationCommand.js +47 -0
  33. package/dist-es/commands/UpdateConfigurationPolicyCommand.js +47 -0
  34. package/dist-es/commands/UpdateSecurityControlCommand.js +47 -0
  35. package/dist-es/commands/index.js +12 -0
  36. package/dist-es/models/models_0.js +9 -0
  37. package/dist-es/models/models_2.js +102 -0
  38. package/dist-es/pagination/ListConfigurationPoliciesPaginator.js +25 -0
  39. package/dist-es/pagination/ListConfigurationPolicyAssociationsPaginator.js +25 -0
  40. package/dist-es/pagination/index.js +2 -0
  41. package/dist-es/protocols/Aws_restJson1.js +1258 -31
  42. package/dist-types/SecurityHub.d.ts +84 -0
  43. package/dist-types/SecurityHubClient.d.ts +14 -2
  44. package/dist-types/commands/BatchDisableStandardsCommand.d.ts +3 -0
  45. package/dist-types/commands/BatchEnableStandardsCommand.d.ts +3 -0
  46. package/dist-types/commands/BatchGetAutomationRulesCommand.d.ts +7 -0
  47. package/dist-types/commands/BatchGetConfigurationPolicyAssociationsCommand.d.ts +128 -0
  48. package/dist-types/commands/BatchGetSecurityControlsCommand.d.ts +45 -2
  49. package/dist-types/commands/BatchImportFindingsCommand.d.ts +13 -3
  50. package/dist-types/commands/BatchUpdateAutomationRulesCommand.d.ts +7 -0
  51. package/dist-types/commands/BatchUpdateStandardsControlAssociationsCommand.d.ts +3 -0
  52. package/dist-types/commands/CreateAutomationRuleCommand.d.ts +7 -0
  53. package/dist-types/commands/CreateConfigurationPolicyCommand.d.ts +189 -0
  54. package/dist-types/commands/CreateInsightCommand.d.ts +17 -0
  55. package/dist-types/commands/CreateMembersCommand.d.ts +3 -0
  56. package/dist-types/commands/DeleteConfigurationPolicyCommand.d.ts +98 -0
  57. package/dist-types/commands/DescribeOrganizationConfigurationCommand.d.ts +7 -2
  58. package/dist-types/commands/DisableOrganizationAdminAccountCommand.d.ts +3 -0
  59. package/dist-types/commands/DisableSecurityHubCommand.d.ts +3 -0
  60. package/dist-types/commands/DisassociateMembersCommand.d.ts +3 -0
  61. package/dist-types/commands/EnableOrganizationAdminAccountCommand.d.ts +3 -0
  62. package/dist-types/commands/GetConfigurationPolicyAssociationCommand.d.ts +107 -0
  63. package/dist-types/commands/GetConfigurationPolicyCommand.d.ts +143 -0
  64. package/dist-types/commands/GetFindingsCommand.d.ts +30 -3
  65. package/dist-types/commands/GetInsightsCommand.d.ts +17 -0
  66. package/dist-types/commands/GetSecurityControlDefinitionCommand.d.ts +193 -0
  67. package/dist-types/commands/ListConfigurationPoliciesCommand.d.ts +104 -0
  68. package/dist-types/commands/ListConfigurationPolicyAssociationsCommand.d.ts +110 -0
  69. package/dist-types/commands/ListSecurityControlDefinitionsCommand.d.ts +65 -0
  70. package/dist-types/commands/StartConfigurationPolicyAssociationCommand.d.ts +108 -0
  71. package/dist-types/commands/StartConfigurationPolicyDisassociationCommand.d.ts +102 -0
  72. package/dist-types/commands/UpdateConfigurationPolicyCommand.d.ts +191 -0
  73. package/dist-types/commands/UpdateFindingsCommand.d.ts +17 -0
  74. package/dist-types/commands/UpdateInsightCommand.d.ts +17 -0
  75. package/dist-types/commands/UpdateOrganizationConfigurationCommand.d.ts +16 -2
  76. package/dist-types/commands/UpdateSecurityControlCommand.d.ts +141 -0
  77. package/dist-types/commands/UpdateSecurityHubConfigurationCommand.d.ts +3 -0
  78. package/dist-types/commands/UpdateStandardsControlCommand.d.ts +3 -0
  79. package/dist-types/commands/index.d.ts +12 -0
  80. package/dist-types/models/models_0.d.ts +101 -193
  81. package/dist-types/models/models_1.d.ts +221 -86
  82. package/dist-types/models/models_2.d.ts +2377 -394
  83. package/dist-types/pagination/ListConfigurationPoliciesPaginator.d.ts +7 -0
  84. package/dist-types/pagination/ListConfigurationPolicyAssociationsPaginator.d.ts +7 -0
  85. package/dist-types/pagination/index.d.ts +2 -0
  86. package/dist-types/protocols/Aws_restJson1.d.ts +108 -0
  87. package/dist-types/ts3.4/SecurityHub.d.ts +234 -0
  88. package/dist-types/ts3.4/SecurityHubClient.d.ts +72 -0
  89. package/dist-types/ts3.4/commands/BatchGetConfigurationPolicyAssociationsCommand.d.ts +42 -0
  90. package/dist-types/ts3.4/commands/CreateConfigurationPolicyCommand.d.ts +42 -0
  91. package/dist-types/ts3.4/commands/DeleteConfigurationPolicyCommand.d.ts +42 -0
  92. package/dist-types/ts3.4/commands/GetConfigurationPolicyAssociationCommand.d.ts +42 -0
  93. package/dist-types/ts3.4/commands/GetConfigurationPolicyCommand.d.ts +42 -0
  94. package/dist-types/ts3.4/commands/GetSecurityControlDefinitionCommand.d.ts +42 -0
  95. package/dist-types/ts3.4/commands/ListConfigurationPoliciesCommand.d.ts +42 -0
  96. package/dist-types/ts3.4/commands/ListConfigurationPolicyAssociationsCommand.d.ts +42 -0
  97. package/dist-types/ts3.4/commands/StartConfigurationPolicyAssociationCommand.d.ts +42 -0
  98. package/dist-types/ts3.4/commands/StartConfigurationPolicyDisassociationCommand.d.ts +42 -0
  99. package/dist-types/ts3.4/commands/UpdateConfigurationPolicyCommand.d.ts +42 -0
  100. package/dist-types/ts3.4/commands/UpdateSecurityControlCommand.d.ts +42 -0
  101. package/dist-types/ts3.4/commands/index.d.ts +12 -0
  102. package/dist-types/ts3.4/models/models_0.d.ts +23 -26
  103. package/dist-types/ts3.4/models/models_1.d.ts +37 -15
  104. package/dist-types/ts3.4/models/models_2.d.ts +602 -17
  105. package/dist-types/ts3.4/pagination/ListConfigurationPoliciesPaginator.d.ts +11 -0
  106. package/dist-types/ts3.4/pagination/ListConfigurationPolicyAssociationsPaginator.d.ts +11 -0
  107. package/dist-types/ts3.4/pagination/index.d.ts +2 -0
  108. package/dist-types/ts3.4/protocols/Aws_restJson1.d.ts +144 -0
  109. package/package.json +3 -3
@@ -1,8 +1,10 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.se_ListAutomationRulesCommand = exports.se_InviteMembersCommand = exports.se_GetMembersCommand = exports.se_GetMasterAccountCommand = exports.se_GetInvitationsCountCommand = exports.se_GetInsightsCommand = exports.se_GetInsightResultsCommand = exports.se_GetFindingsCommand = exports.se_GetFindingHistoryCommand = exports.se_GetFindingAggregatorCommand = exports.se_GetEnabledStandardsCommand = exports.se_GetAdministratorAccountCommand = exports.se_EnableSecurityHubCommand = exports.se_EnableOrganizationAdminAccountCommand = exports.se_EnableImportFindingsForProductCommand = exports.se_DisassociateMembersCommand = exports.se_DisassociateFromMasterAccountCommand = exports.se_DisassociateFromAdministratorAccountCommand = exports.se_DisableSecurityHubCommand = exports.se_DisableOrganizationAdminAccountCommand = exports.se_DisableImportFindingsForProductCommand = exports.se_DescribeStandardsControlsCommand = exports.se_DescribeStandardsCommand = exports.se_DescribeProductsCommand = exports.se_DescribeOrganizationConfigurationCommand = exports.se_DescribeHubCommand = exports.se_DescribeActionTargetsCommand = exports.se_DeleteMembersCommand = exports.se_DeleteInvitationsCommand = exports.se_DeleteInsightCommand = exports.se_DeleteFindingAggregatorCommand = exports.se_DeleteActionTargetCommand = exports.se_DeclineInvitationsCommand = exports.se_CreateMembersCommand = exports.se_CreateInsightCommand = exports.se_CreateFindingAggregatorCommand = exports.se_CreateAutomationRuleCommand = exports.se_CreateActionTargetCommand = exports.se_BatchUpdateStandardsControlAssociationsCommand = exports.se_BatchUpdateFindingsCommand = exports.se_BatchUpdateAutomationRulesCommand = exports.se_BatchImportFindingsCommand = exports.se_BatchGetStandardsControlAssociationsCommand = exports.se_BatchGetSecurityControlsCommand = exports.se_BatchGetAutomationRulesCommand = exports.se_BatchEnableStandardsCommand = exports.se_BatchDisableStandardsCommand = exports.se_BatchDeleteAutomationRulesCommand = exports.se_AcceptInvitationCommand = exports.se_AcceptAdministratorInvitationCommand = void 0;
4
- exports.de_DisassociateFromAdministratorAccountCommand = exports.de_DisableSecurityHubCommand = exports.de_DisableOrganizationAdminAccountCommand = exports.de_DisableImportFindingsForProductCommand = exports.de_DescribeStandardsControlsCommand = exports.de_DescribeStandardsCommand = exports.de_DescribeProductsCommand = exports.de_DescribeOrganizationConfigurationCommand = exports.de_DescribeHubCommand = exports.de_DescribeActionTargetsCommand = exports.de_DeleteMembersCommand = exports.de_DeleteInvitationsCommand = exports.de_DeleteInsightCommand = exports.de_DeleteFindingAggregatorCommand = exports.de_DeleteActionTargetCommand = exports.de_DeclineInvitationsCommand = exports.de_CreateMembersCommand = exports.de_CreateInsightCommand = exports.de_CreateFindingAggregatorCommand = exports.de_CreateAutomationRuleCommand = exports.de_CreateActionTargetCommand = exports.de_BatchUpdateStandardsControlAssociationsCommand = exports.de_BatchUpdateFindingsCommand = exports.de_BatchUpdateAutomationRulesCommand = exports.de_BatchImportFindingsCommand = exports.de_BatchGetStandardsControlAssociationsCommand = exports.de_BatchGetSecurityControlsCommand = exports.de_BatchGetAutomationRulesCommand = exports.de_BatchEnableStandardsCommand = exports.de_BatchDisableStandardsCommand = exports.de_BatchDeleteAutomationRulesCommand = exports.de_AcceptInvitationCommand = exports.de_AcceptAdministratorInvitationCommand = exports.se_UpdateStandardsControlCommand = exports.se_UpdateSecurityHubConfigurationCommand = exports.se_UpdateOrganizationConfigurationCommand = exports.se_UpdateInsightCommand = exports.se_UpdateFindingsCommand = exports.se_UpdateFindingAggregatorCommand = exports.se_UpdateActionTargetCommand = exports.se_UntagResourceCommand = exports.se_TagResourceCommand = exports.se_ListTagsForResourceCommand = exports.se_ListStandardsControlAssociationsCommand = exports.se_ListSecurityControlDefinitionsCommand = exports.se_ListOrganizationAdminAccountsCommand = exports.se_ListMembersCommand = exports.se_ListInvitationsCommand = exports.se_ListFindingAggregatorsCommand = exports.se_ListEnabledProductsForImportCommand = void 0;
5
- exports.de_UpdateStandardsControlCommand = exports.de_UpdateSecurityHubConfigurationCommand = exports.de_UpdateOrganizationConfigurationCommand = exports.de_UpdateInsightCommand = exports.de_UpdateFindingsCommand = exports.de_UpdateFindingAggregatorCommand = exports.de_UpdateActionTargetCommand = exports.de_UntagResourceCommand = exports.de_TagResourceCommand = exports.de_ListTagsForResourceCommand = exports.de_ListStandardsControlAssociationsCommand = exports.de_ListSecurityControlDefinitionsCommand = exports.de_ListOrganizationAdminAccountsCommand = exports.de_ListMembersCommand = exports.de_ListInvitationsCommand = exports.de_ListFindingAggregatorsCommand = exports.de_ListEnabledProductsForImportCommand = exports.de_ListAutomationRulesCommand = exports.de_InviteMembersCommand = exports.de_GetMembersCommand = exports.de_GetMasterAccountCommand = exports.de_GetInvitationsCountCommand = exports.de_GetInsightsCommand = exports.de_GetInsightResultsCommand = exports.de_GetFindingsCommand = exports.de_GetFindingHistoryCommand = exports.de_GetFindingAggregatorCommand = exports.de_GetEnabledStandardsCommand = exports.de_GetAdministratorAccountCommand = exports.de_EnableSecurityHubCommand = exports.de_EnableOrganizationAdminAccountCommand = exports.de_EnableImportFindingsForProductCommand = exports.de_DisassociateMembersCommand = exports.de_DisassociateFromMasterAccountCommand = void 0;
3
+ exports.se_GetInsightsCommand = exports.se_GetInsightResultsCommand = exports.se_GetFindingsCommand = exports.se_GetFindingHistoryCommand = exports.se_GetFindingAggregatorCommand = exports.se_GetEnabledStandardsCommand = exports.se_GetConfigurationPolicyAssociationCommand = exports.se_GetConfigurationPolicyCommand = exports.se_GetAdministratorAccountCommand = exports.se_EnableSecurityHubCommand = exports.se_EnableOrganizationAdminAccountCommand = exports.se_EnableImportFindingsForProductCommand = exports.se_DisassociateMembersCommand = exports.se_DisassociateFromMasterAccountCommand = exports.se_DisassociateFromAdministratorAccountCommand = exports.se_DisableSecurityHubCommand = exports.se_DisableOrganizationAdminAccountCommand = exports.se_DisableImportFindingsForProductCommand = exports.se_DescribeStandardsControlsCommand = exports.se_DescribeStandardsCommand = exports.se_DescribeProductsCommand = exports.se_DescribeOrganizationConfigurationCommand = exports.se_DescribeHubCommand = exports.se_DescribeActionTargetsCommand = exports.se_DeleteMembersCommand = exports.se_DeleteInvitationsCommand = exports.se_DeleteInsightCommand = exports.se_DeleteFindingAggregatorCommand = exports.se_DeleteConfigurationPolicyCommand = exports.se_DeleteActionTargetCommand = exports.se_DeclineInvitationsCommand = exports.se_CreateMembersCommand = exports.se_CreateInsightCommand = exports.se_CreateFindingAggregatorCommand = exports.se_CreateConfigurationPolicyCommand = exports.se_CreateAutomationRuleCommand = exports.se_CreateActionTargetCommand = exports.se_BatchUpdateStandardsControlAssociationsCommand = exports.se_BatchUpdateFindingsCommand = exports.se_BatchUpdateAutomationRulesCommand = exports.se_BatchImportFindingsCommand = exports.se_BatchGetStandardsControlAssociationsCommand = exports.se_BatchGetSecurityControlsCommand = exports.se_BatchGetConfigurationPolicyAssociationsCommand = exports.se_BatchGetAutomationRulesCommand = exports.se_BatchEnableStandardsCommand = exports.se_BatchDisableStandardsCommand = exports.se_BatchDeleteAutomationRulesCommand = exports.se_AcceptInvitationCommand = exports.se_AcceptAdministratorInvitationCommand = void 0;
4
+ exports.de_DeleteActionTargetCommand = exports.de_DeclineInvitationsCommand = exports.de_CreateMembersCommand = exports.de_CreateInsightCommand = exports.de_CreateFindingAggregatorCommand = exports.de_CreateConfigurationPolicyCommand = exports.de_CreateAutomationRuleCommand = exports.de_CreateActionTargetCommand = exports.de_BatchUpdateStandardsControlAssociationsCommand = exports.de_BatchUpdateFindingsCommand = exports.de_BatchUpdateAutomationRulesCommand = exports.de_BatchImportFindingsCommand = exports.de_BatchGetStandardsControlAssociationsCommand = exports.de_BatchGetSecurityControlsCommand = exports.de_BatchGetConfigurationPolicyAssociationsCommand = exports.de_BatchGetAutomationRulesCommand = exports.de_BatchEnableStandardsCommand = exports.de_BatchDisableStandardsCommand = exports.de_BatchDeleteAutomationRulesCommand = exports.de_AcceptInvitationCommand = exports.de_AcceptAdministratorInvitationCommand = exports.se_UpdateStandardsControlCommand = exports.se_UpdateSecurityHubConfigurationCommand = exports.se_UpdateSecurityControlCommand = exports.se_UpdateOrganizationConfigurationCommand = exports.se_UpdateInsightCommand = exports.se_UpdateFindingsCommand = exports.se_UpdateFindingAggregatorCommand = exports.se_UpdateConfigurationPolicyCommand = exports.se_UpdateActionTargetCommand = exports.se_UntagResourceCommand = exports.se_TagResourceCommand = exports.se_StartConfigurationPolicyDisassociationCommand = exports.se_StartConfigurationPolicyAssociationCommand = exports.se_ListTagsForResourceCommand = exports.se_ListStandardsControlAssociationsCommand = exports.se_ListSecurityControlDefinitionsCommand = exports.se_ListOrganizationAdminAccountsCommand = exports.se_ListMembersCommand = exports.se_ListInvitationsCommand = exports.se_ListFindingAggregatorsCommand = exports.se_ListEnabledProductsForImportCommand = exports.se_ListConfigurationPolicyAssociationsCommand = exports.se_ListConfigurationPoliciesCommand = exports.se_ListAutomationRulesCommand = exports.se_InviteMembersCommand = exports.se_GetSecurityControlDefinitionCommand = exports.se_GetMembersCommand = exports.se_GetMasterAccountCommand = exports.se_GetInvitationsCountCommand = void 0;
5
+ exports.de_UpdateActionTargetCommand = exports.de_UntagResourceCommand = exports.de_TagResourceCommand = exports.de_StartConfigurationPolicyDisassociationCommand = exports.de_StartConfigurationPolicyAssociationCommand = exports.de_ListTagsForResourceCommand = exports.de_ListStandardsControlAssociationsCommand = exports.de_ListSecurityControlDefinitionsCommand = exports.de_ListOrganizationAdminAccountsCommand = exports.de_ListMembersCommand = exports.de_ListInvitationsCommand = exports.de_ListFindingAggregatorsCommand = exports.de_ListEnabledProductsForImportCommand = exports.de_ListConfigurationPolicyAssociationsCommand = exports.de_ListConfigurationPoliciesCommand = exports.de_ListAutomationRulesCommand = exports.de_InviteMembersCommand = exports.de_GetSecurityControlDefinitionCommand = exports.de_GetMembersCommand = exports.de_GetMasterAccountCommand = exports.de_GetInvitationsCountCommand = exports.de_GetInsightsCommand = exports.de_GetInsightResultsCommand = exports.de_GetFindingsCommand = exports.de_GetFindingHistoryCommand = exports.de_GetFindingAggregatorCommand = exports.de_GetEnabledStandardsCommand = exports.de_GetConfigurationPolicyAssociationCommand = exports.de_GetConfigurationPolicyCommand = exports.de_GetAdministratorAccountCommand = exports.de_EnableSecurityHubCommand = exports.de_EnableOrganizationAdminAccountCommand = exports.de_EnableImportFindingsForProductCommand = exports.de_DisassociateMembersCommand = exports.de_DisassociateFromMasterAccountCommand = exports.de_DisassociateFromAdministratorAccountCommand = exports.de_DisableSecurityHubCommand = exports.de_DisableOrganizationAdminAccountCommand = exports.de_DisableImportFindingsForProductCommand = exports.de_DescribeStandardsControlsCommand = exports.de_DescribeStandardsCommand = exports.de_DescribeProductsCommand = exports.de_DescribeOrganizationConfigurationCommand = exports.de_DescribeHubCommand = exports.de_DescribeActionTargetsCommand = exports.de_DeleteMembersCommand = exports.de_DeleteInvitationsCommand = exports.de_DeleteInsightCommand = exports.de_DeleteFindingAggregatorCommand = exports.de_DeleteConfigurationPolicyCommand = void 0;
6
+ exports.de_UpdateStandardsControlCommand = exports.de_UpdateSecurityHubConfigurationCommand = exports.de_UpdateSecurityControlCommand = exports.de_UpdateOrganizationConfigurationCommand = exports.de_UpdateInsightCommand = exports.de_UpdateFindingsCommand = exports.de_UpdateFindingAggregatorCommand = exports.de_UpdateConfigurationPolicyCommand = void 0;
7
+ const core_1 = require("@aws-sdk/core");
6
8
  const protocol_http_1 = require("@smithy/protocol-http");
7
9
  const smithy_client_1 = require("@smithy/smithy-client");
8
10
  const models_0_1 = require("../models/models_0");
@@ -136,6 +138,27 @@ const se_BatchGetAutomationRulesCommand = async (input, context) => {
136
138
  });
137
139
  };
138
140
  exports.se_BatchGetAutomationRulesCommand = se_BatchGetAutomationRulesCommand;
141
+ const se_BatchGetConfigurationPolicyAssociationsCommand = async (input, context) => {
142
+ const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
143
+ const headers = {
144
+ "content-type": "application/json",
145
+ };
146
+ const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/configurationPolicyAssociation/batchget";
147
+ let body;
148
+ body = JSON.stringify((0, smithy_client_1.take)(input, {
149
+ ConfigurationPolicyAssociationIdentifiers: (_) => (0, smithy_client_1._json)(_),
150
+ }));
151
+ return new protocol_http_1.HttpRequest({
152
+ protocol,
153
+ hostname,
154
+ port,
155
+ method: "POST",
156
+ headers,
157
+ path: resolvedPath,
158
+ body,
159
+ });
160
+ };
161
+ exports.se_BatchGetConfigurationPolicyAssociationsCommand = se_BatchGetConfigurationPolicyAssociationsCommand;
139
162
  const se_BatchGetSecurityControlsCommand = async (input, context) => {
140
163
  const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
141
164
  const headers = {
@@ -322,6 +345,30 @@ const se_CreateAutomationRuleCommand = async (input, context) => {
322
345
  });
323
346
  };
324
347
  exports.se_CreateAutomationRuleCommand = se_CreateAutomationRuleCommand;
348
+ const se_CreateConfigurationPolicyCommand = async (input, context) => {
349
+ const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
350
+ const headers = {
351
+ "content-type": "application/json",
352
+ };
353
+ const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/configurationPolicy/create";
354
+ let body;
355
+ body = JSON.stringify((0, smithy_client_1.take)(input, {
356
+ ConfigurationPolicy: (_) => se_Policy(_, context),
357
+ Description: [],
358
+ Name: [],
359
+ Tags: (_) => (0, smithy_client_1._json)(_),
360
+ }));
361
+ return new protocol_http_1.HttpRequest({
362
+ protocol,
363
+ hostname,
364
+ port,
365
+ method: "POST",
366
+ headers,
367
+ path: resolvedPath,
368
+ body,
369
+ });
370
+ };
371
+ exports.se_CreateConfigurationPolicyCommand = se_CreateConfigurationPolicyCommand;
325
372
  const se_CreateFindingAggregatorCommand = async (input, context) => {
326
373
  const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
327
374
  const headers = {
@@ -426,6 +473,23 @@ const se_DeleteActionTargetCommand = async (input, context) => {
426
473
  });
427
474
  };
428
475
  exports.se_DeleteActionTargetCommand = se_DeleteActionTargetCommand;
476
+ const se_DeleteConfigurationPolicyCommand = async (input, context) => {
477
+ const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
478
+ const headers = {};
479
+ let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/configurationPolicy/{Identifier}";
480
+ resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "Identifier", () => input.Identifier, "{Identifier}", false);
481
+ let body;
482
+ return new protocol_http_1.HttpRequest({
483
+ protocol,
484
+ hostname,
485
+ port,
486
+ method: "DELETE",
487
+ headers,
488
+ path: resolvedPath,
489
+ body,
490
+ });
491
+ };
492
+ exports.se_DeleteConfigurationPolicyCommand = se_DeleteConfigurationPolicyCommand;
429
493
  const se_DeleteFindingAggregatorCommand = async (input, context) => {
430
494
  const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
431
495
  const headers = {};
@@ -832,6 +896,44 @@ const se_GetAdministratorAccountCommand = async (input, context) => {
832
896
  });
833
897
  };
834
898
  exports.se_GetAdministratorAccountCommand = se_GetAdministratorAccountCommand;
899
+ const se_GetConfigurationPolicyCommand = async (input, context) => {
900
+ const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
901
+ const headers = {};
902
+ let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/configurationPolicy/get/{Identifier}";
903
+ resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "Identifier", () => input.Identifier, "{Identifier}", false);
904
+ let body;
905
+ return new protocol_http_1.HttpRequest({
906
+ protocol,
907
+ hostname,
908
+ port,
909
+ method: "GET",
910
+ headers,
911
+ path: resolvedPath,
912
+ body,
913
+ });
914
+ };
915
+ exports.se_GetConfigurationPolicyCommand = se_GetConfigurationPolicyCommand;
916
+ const se_GetConfigurationPolicyAssociationCommand = async (input, context) => {
917
+ const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
918
+ const headers = {
919
+ "content-type": "application/json",
920
+ };
921
+ const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/configurationPolicyAssociation/get";
922
+ let body;
923
+ body = JSON.stringify((0, smithy_client_1.take)(input, {
924
+ Target: (_) => (0, smithy_client_1._json)(_),
925
+ }));
926
+ return new protocol_http_1.HttpRequest({
927
+ protocol,
928
+ hostname,
929
+ port,
930
+ method: "POST",
931
+ headers,
932
+ path: resolvedPath,
933
+ body,
934
+ });
935
+ };
936
+ exports.se_GetConfigurationPolicyAssociationCommand = se_GetConfigurationPolicyAssociationCommand;
835
937
  const se_GetEnabledStandardsCommand = async (input, context) => {
836
938
  const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
837
939
  const headers = {
@@ -1021,6 +1123,26 @@ const se_GetMembersCommand = async (input, context) => {
1021
1123
  });
1022
1124
  };
1023
1125
  exports.se_GetMembersCommand = se_GetMembersCommand;
1126
+ const se_GetSecurityControlDefinitionCommand = async (input, context) => {
1127
+ const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
1128
+ const headers = {};
1129
+ const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/securityControl/definition";
1130
+ const query = (0, smithy_client_1.map)({
1131
+ SecurityControlId: [, (0, smithy_client_1.expectNonNull)(input.SecurityControlId, `SecurityControlId`)],
1132
+ });
1133
+ let body;
1134
+ return new protocol_http_1.HttpRequest({
1135
+ protocol,
1136
+ hostname,
1137
+ port,
1138
+ method: "GET",
1139
+ headers,
1140
+ path: resolvedPath,
1141
+ query,
1142
+ body,
1143
+ });
1144
+ };
1145
+ exports.se_GetSecurityControlDefinitionCommand = se_GetSecurityControlDefinitionCommand;
1024
1146
  const se_InviteMembersCommand = async (input, context) => {
1025
1147
  const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
1026
1148
  const headers = {
@@ -1063,6 +1185,50 @@ const se_ListAutomationRulesCommand = async (input, context) => {
1063
1185
  });
1064
1186
  };
1065
1187
  exports.se_ListAutomationRulesCommand = se_ListAutomationRulesCommand;
1188
+ const se_ListConfigurationPoliciesCommand = async (input, context) => {
1189
+ const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
1190
+ const headers = {};
1191
+ const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/configurationPolicy/list";
1192
+ const query = (0, smithy_client_1.map)({
1193
+ NextToken: [, input.NextToken],
1194
+ MaxResults: [() => input.MaxResults !== void 0, () => input.MaxResults.toString()],
1195
+ });
1196
+ let body;
1197
+ return new protocol_http_1.HttpRequest({
1198
+ protocol,
1199
+ hostname,
1200
+ port,
1201
+ method: "GET",
1202
+ headers,
1203
+ path: resolvedPath,
1204
+ query,
1205
+ body,
1206
+ });
1207
+ };
1208
+ exports.se_ListConfigurationPoliciesCommand = se_ListConfigurationPoliciesCommand;
1209
+ const se_ListConfigurationPolicyAssociationsCommand = async (input, context) => {
1210
+ const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
1211
+ const headers = {
1212
+ "content-type": "application/json",
1213
+ };
1214
+ const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/configurationPolicyAssociation/list";
1215
+ let body;
1216
+ body = JSON.stringify((0, smithy_client_1.take)(input, {
1217
+ Filters: (_) => (0, smithy_client_1._json)(_),
1218
+ MaxResults: [],
1219
+ NextToken: [],
1220
+ }));
1221
+ return new protocol_http_1.HttpRequest({
1222
+ protocol,
1223
+ hostname,
1224
+ port,
1225
+ method: "POST",
1226
+ headers,
1227
+ path: resolvedPath,
1228
+ body,
1229
+ });
1230
+ };
1231
+ exports.se_ListConfigurationPolicyAssociationsCommand = se_ListConfigurationPolicyAssociationsCommand;
1066
1232
  const se_ListEnabledProductsForImportCommand = async (input, context) => {
1067
1233
  const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
1068
1234
  const headers = {};
@@ -1230,6 +1396,51 @@ const se_ListTagsForResourceCommand = async (input, context) => {
1230
1396
  });
1231
1397
  };
1232
1398
  exports.se_ListTagsForResourceCommand = se_ListTagsForResourceCommand;
1399
+ const se_StartConfigurationPolicyAssociationCommand = async (input, context) => {
1400
+ const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
1401
+ const headers = {
1402
+ "content-type": "application/json",
1403
+ };
1404
+ const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/configurationPolicyAssociation/associate";
1405
+ let body;
1406
+ body = JSON.stringify((0, smithy_client_1.take)(input, {
1407
+ ConfigurationPolicyIdentifier: [],
1408
+ Target: (_) => (0, smithy_client_1._json)(_),
1409
+ }));
1410
+ return new protocol_http_1.HttpRequest({
1411
+ protocol,
1412
+ hostname,
1413
+ port,
1414
+ method: "POST",
1415
+ headers,
1416
+ path: resolvedPath,
1417
+ body,
1418
+ });
1419
+ };
1420
+ exports.se_StartConfigurationPolicyAssociationCommand = se_StartConfigurationPolicyAssociationCommand;
1421
+ const se_StartConfigurationPolicyDisassociationCommand = async (input, context) => {
1422
+ const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
1423
+ const headers = {
1424
+ "content-type": "application/json",
1425
+ };
1426
+ const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` +
1427
+ "/configurationPolicyAssociation/disassociate";
1428
+ let body;
1429
+ body = JSON.stringify((0, smithy_client_1.take)(input, {
1430
+ ConfigurationPolicyIdentifier: [],
1431
+ Target: (_) => (0, smithy_client_1._json)(_),
1432
+ }));
1433
+ return new protocol_http_1.HttpRequest({
1434
+ protocol,
1435
+ hostname,
1436
+ port,
1437
+ method: "POST",
1438
+ headers,
1439
+ path: resolvedPath,
1440
+ body,
1441
+ });
1442
+ };
1443
+ exports.se_StartConfigurationPolicyDisassociationCommand = se_StartConfigurationPolicyDisassociationCommand;
1233
1444
  const se_TagResourceCommand = async (input, context) => {
1234
1445
  const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
1235
1446
  const headers = {
@@ -1299,6 +1510,31 @@ const se_UpdateActionTargetCommand = async (input, context) => {
1299
1510
  });
1300
1511
  };
1301
1512
  exports.se_UpdateActionTargetCommand = se_UpdateActionTargetCommand;
1513
+ const se_UpdateConfigurationPolicyCommand = async (input, context) => {
1514
+ const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
1515
+ const headers = {
1516
+ "content-type": "application/json",
1517
+ };
1518
+ let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/configurationPolicy/{Identifier}";
1519
+ resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "Identifier", () => input.Identifier, "{Identifier}", false);
1520
+ let body;
1521
+ body = JSON.stringify((0, smithy_client_1.take)(input, {
1522
+ ConfigurationPolicy: (_) => se_Policy(_, context),
1523
+ Description: [],
1524
+ Name: [],
1525
+ UpdatedReason: [],
1526
+ }));
1527
+ return new protocol_http_1.HttpRequest({
1528
+ protocol,
1529
+ hostname,
1530
+ port,
1531
+ method: "PATCH",
1532
+ headers,
1533
+ path: resolvedPath,
1534
+ body,
1535
+ });
1536
+ };
1537
+ exports.se_UpdateConfigurationPolicyCommand = se_UpdateConfigurationPolicyCommand;
1302
1538
  const se_UpdateFindingAggregatorCommand = async (input, context) => {
1303
1539
  const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
1304
1540
  const headers = {
@@ -1379,6 +1615,7 @@ const se_UpdateOrganizationConfigurationCommand = async (input, context) => {
1379
1615
  body = JSON.stringify((0, smithy_client_1.take)(input, {
1380
1616
  AutoEnable: [],
1381
1617
  AutoEnableStandards: [],
1618
+ OrganizationConfiguration: (_) => (0, smithy_client_1._json)(_),
1382
1619
  }));
1383
1620
  return new protocol_http_1.HttpRequest({
1384
1621
  protocol,
@@ -1391,6 +1628,29 @@ const se_UpdateOrganizationConfigurationCommand = async (input, context) => {
1391
1628
  });
1392
1629
  };
1393
1630
  exports.se_UpdateOrganizationConfigurationCommand = se_UpdateOrganizationConfigurationCommand;
1631
+ const se_UpdateSecurityControlCommand = async (input, context) => {
1632
+ const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
1633
+ const headers = {
1634
+ "content-type": "application/json",
1635
+ };
1636
+ const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/securityControl/update";
1637
+ let body;
1638
+ body = JSON.stringify((0, smithy_client_1.take)(input, {
1639
+ LastUpdateReason: [],
1640
+ Parameters: (_) => se_Parameters(_, context),
1641
+ SecurityControlId: [],
1642
+ }));
1643
+ return new protocol_http_1.HttpRequest({
1644
+ protocol,
1645
+ hostname,
1646
+ port,
1647
+ method: "PATCH",
1648
+ headers,
1649
+ path: resolvedPath,
1650
+ body,
1651
+ });
1652
+ };
1653
+ exports.se_UpdateSecurityControlCommand = se_UpdateSecurityControlCommand;
1394
1654
  const se_UpdateSecurityHubConfigurationCommand = async (input, context) => {
1395
1655
  const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
1396
1656
  const headers = {
@@ -1589,6 +1849,9 @@ const de_BatchDisableStandardsCommandError = async (output, context) => {
1589
1849
  };
1590
1850
  const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
1591
1851
  switch (errorCode) {
1852
+ case "AccessDeniedException":
1853
+ case "com.amazonaws.securityhub#AccessDeniedException":
1854
+ throw await de_AccessDeniedExceptionRes(parsedOutput, context);
1592
1855
  case "InternalException":
1593
1856
  case "com.amazonaws.securityhub#InternalException":
1594
1857
  throw await de_InternalExceptionRes(parsedOutput, context);
@@ -1632,6 +1895,9 @@ const de_BatchEnableStandardsCommandError = async (output, context) => {
1632
1895
  };
1633
1896
  const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
1634
1897
  switch (errorCode) {
1898
+ case "AccessDeniedException":
1899
+ case "com.amazonaws.securityhub#AccessDeniedException":
1900
+ throw await de_AccessDeniedExceptionRes(parsedOutput, context);
1635
1901
  case "InternalException":
1636
1902
  case "com.amazonaws.securityhub#InternalException":
1637
1903
  throw await de_InternalExceptionRes(parsedOutput, context);
@@ -1703,6 +1969,56 @@ const de_BatchGetAutomationRulesCommandError = async (output, context) => {
1703
1969
  });
1704
1970
  }
1705
1971
  };
1972
+ const de_BatchGetConfigurationPolicyAssociationsCommand = async (output, context) => {
1973
+ if (output.statusCode !== 200 && output.statusCode >= 300) {
1974
+ return de_BatchGetConfigurationPolicyAssociationsCommandError(output, context);
1975
+ }
1976
+ const contents = (0, smithy_client_1.map)({
1977
+ $metadata: deserializeMetadata(output),
1978
+ });
1979
+ const data = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.expectObject)(await parseBody(output.body, context)), "body");
1980
+ const doc = (0, smithy_client_1.take)(data, {
1981
+ ConfigurationPolicyAssociations: (_) => de_ConfigurationPolicyAssociationList(_, context),
1982
+ UnprocessedConfigurationPolicyAssociations: smithy_client_1._json,
1983
+ });
1984
+ Object.assign(contents, doc);
1985
+ return contents;
1986
+ };
1987
+ exports.de_BatchGetConfigurationPolicyAssociationsCommand = de_BatchGetConfigurationPolicyAssociationsCommand;
1988
+ const de_BatchGetConfigurationPolicyAssociationsCommandError = async (output, context) => {
1989
+ const parsedOutput = {
1990
+ ...output,
1991
+ body: await parseErrorBody(output.body, context),
1992
+ };
1993
+ const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
1994
+ switch (errorCode) {
1995
+ case "AccessDeniedException":
1996
+ case "com.amazonaws.securityhub#AccessDeniedException":
1997
+ throw await de_AccessDeniedExceptionRes(parsedOutput, context);
1998
+ case "InternalException":
1999
+ case "com.amazonaws.securityhub#InternalException":
2000
+ throw await de_InternalExceptionRes(parsedOutput, context);
2001
+ case "InvalidAccessException":
2002
+ case "com.amazonaws.securityhub#InvalidAccessException":
2003
+ throw await de_InvalidAccessExceptionRes(parsedOutput, context);
2004
+ case "InvalidInputException":
2005
+ case "com.amazonaws.securityhub#InvalidInputException":
2006
+ throw await de_InvalidInputExceptionRes(parsedOutput, context);
2007
+ case "LimitExceededException":
2008
+ case "com.amazonaws.securityhub#LimitExceededException":
2009
+ throw await de_LimitExceededExceptionRes(parsedOutput, context);
2010
+ case "ResourceNotFoundException":
2011
+ case "com.amazonaws.securityhub#ResourceNotFoundException":
2012
+ throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
2013
+ default:
2014
+ const parsedBody = parsedOutput.body;
2015
+ return throwDefaultError({
2016
+ output,
2017
+ parsedBody,
2018
+ errorCode,
2019
+ });
2020
+ }
2021
+ };
1706
2022
  const de_BatchGetSecurityControlsCommand = async (output, context) => {
1707
2023
  if (output.statusCode !== 200 && output.statusCode >= 300) {
1708
2024
  return de_BatchGetSecurityControlsCommandError(output, context);
@@ -1712,7 +2028,7 @@ const de_BatchGetSecurityControlsCommand = async (output, context) => {
1712
2028
  });
1713
2029
  const data = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.expectObject)(await parseBody(output.body, context)), "body");
1714
2030
  const doc = (0, smithy_client_1.take)(data, {
1715
- SecurityControls: smithy_client_1._json,
2031
+ SecurityControls: (_) => de_SecurityControls(_, context),
1716
2032
  UnprocessedIds: smithy_client_1._json,
1717
2033
  });
1718
2034
  Object.assign(contents, doc);
@@ -1949,8 +2265,11 @@ const de_BatchUpdateStandardsControlAssociationsCommandError = async (output, co
1949
2265
  };
1950
2266
  const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
1951
2267
  switch (errorCode) {
1952
- case "InternalException":
1953
- case "com.amazonaws.securityhub#InternalException":
2268
+ case "AccessDeniedException":
2269
+ case "com.amazonaws.securityhub#AccessDeniedException":
2270
+ throw await de_AccessDeniedExceptionRes(parsedOutput, context);
2271
+ case "InternalException":
2272
+ case "com.amazonaws.securityhub#InternalException":
1954
2273
  throw await de_InternalExceptionRes(parsedOutput, context);
1955
2274
  case "InvalidAccessException":
1956
2275
  case "com.amazonaws.securityhub#InvalidAccessException":
@@ -2062,6 +2381,61 @@ const de_CreateAutomationRuleCommandError = async (output, context) => {
2062
2381
  });
2063
2382
  }
2064
2383
  };
2384
+ const de_CreateConfigurationPolicyCommand = async (output, context) => {
2385
+ if (output.statusCode !== 200 && output.statusCode >= 300) {
2386
+ return de_CreateConfigurationPolicyCommandError(output, context);
2387
+ }
2388
+ const contents = (0, smithy_client_1.map)({
2389
+ $metadata: deserializeMetadata(output),
2390
+ });
2391
+ const data = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.expectObject)(await parseBody(output.body, context)), "body");
2392
+ const doc = (0, smithy_client_1.take)(data, {
2393
+ Arn: smithy_client_1.expectString,
2394
+ ConfigurationPolicy: (_) => de_Policy((0, core_1.awsExpectUnion)(_), context),
2395
+ CreatedAt: (_) => (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseRfc3339DateTimeWithOffset)(_)),
2396
+ Description: smithy_client_1.expectString,
2397
+ Id: smithy_client_1.expectString,
2398
+ Name: smithy_client_1.expectString,
2399
+ UpdatedAt: (_) => (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseRfc3339DateTimeWithOffset)(_)),
2400
+ });
2401
+ Object.assign(contents, doc);
2402
+ return contents;
2403
+ };
2404
+ exports.de_CreateConfigurationPolicyCommand = de_CreateConfigurationPolicyCommand;
2405
+ const de_CreateConfigurationPolicyCommandError = async (output, context) => {
2406
+ const parsedOutput = {
2407
+ ...output,
2408
+ body: await parseErrorBody(output.body, context),
2409
+ };
2410
+ const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
2411
+ switch (errorCode) {
2412
+ case "AccessDeniedException":
2413
+ case "com.amazonaws.securityhub#AccessDeniedException":
2414
+ throw await de_AccessDeniedExceptionRes(parsedOutput, context);
2415
+ case "InternalException":
2416
+ case "com.amazonaws.securityhub#InternalException":
2417
+ throw await de_InternalExceptionRes(parsedOutput, context);
2418
+ case "InvalidAccessException":
2419
+ case "com.amazonaws.securityhub#InvalidAccessException":
2420
+ throw await de_InvalidAccessExceptionRes(parsedOutput, context);
2421
+ case "InvalidInputException":
2422
+ case "com.amazonaws.securityhub#InvalidInputException":
2423
+ throw await de_InvalidInputExceptionRes(parsedOutput, context);
2424
+ case "LimitExceededException":
2425
+ case "com.amazonaws.securityhub#LimitExceededException":
2426
+ throw await de_LimitExceededExceptionRes(parsedOutput, context);
2427
+ case "ResourceConflictException":
2428
+ case "com.amazonaws.securityhub#ResourceConflictException":
2429
+ throw await de_ResourceConflictExceptionRes(parsedOutput, context);
2430
+ default:
2431
+ const parsedBody = parsedOutput.body;
2432
+ return throwDefaultError({
2433
+ output,
2434
+ parsedBody,
2435
+ errorCode,
2436
+ });
2437
+ }
2438
+ };
2065
2439
  const de_CreateFindingAggregatorCommand = async (output, context) => {
2066
2440
  if (output.statusCode !== 200 && output.statusCode >= 300) {
2067
2441
  return de_CreateFindingAggregatorCommandError(output, context);
@@ -2179,6 +2553,9 @@ const de_CreateMembersCommandError = async (output, context) => {
2179
2553
  };
2180
2554
  const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
2181
2555
  switch (errorCode) {
2556
+ case "AccessDeniedException":
2557
+ case "com.amazonaws.securityhub#AccessDeniedException":
2558
+ throw await de_AccessDeniedExceptionRes(parsedOutput, context);
2182
2559
  case "InternalException":
2183
2560
  case "com.amazonaws.securityhub#InternalException":
2184
2561
  throw await de_InternalExceptionRes(parsedOutput, context);
@@ -2289,6 +2666,54 @@ const de_DeleteActionTargetCommandError = async (output, context) => {
2289
2666
  });
2290
2667
  }
2291
2668
  };
2669
+ const de_DeleteConfigurationPolicyCommand = async (output, context) => {
2670
+ if (output.statusCode !== 200 && output.statusCode >= 300) {
2671
+ return de_DeleteConfigurationPolicyCommandError(output, context);
2672
+ }
2673
+ const contents = (0, smithy_client_1.map)({
2674
+ $metadata: deserializeMetadata(output),
2675
+ });
2676
+ await (0, smithy_client_1.collectBody)(output.body, context);
2677
+ return contents;
2678
+ };
2679
+ exports.de_DeleteConfigurationPolicyCommand = de_DeleteConfigurationPolicyCommand;
2680
+ const de_DeleteConfigurationPolicyCommandError = async (output, context) => {
2681
+ const parsedOutput = {
2682
+ ...output,
2683
+ body: await parseErrorBody(output.body, context),
2684
+ };
2685
+ const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
2686
+ switch (errorCode) {
2687
+ case "AccessDeniedException":
2688
+ case "com.amazonaws.securityhub#AccessDeniedException":
2689
+ throw await de_AccessDeniedExceptionRes(parsedOutput, context);
2690
+ case "InternalException":
2691
+ case "com.amazonaws.securityhub#InternalException":
2692
+ throw await de_InternalExceptionRes(parsedOutput, context);
2693
+ case "InvalidAccessException":
2694
+ case "com.amazonaws.securityhub#InvalidAccessException":
2695
+ throw await de_InvalidAccessExceptionRes(parsedOutput, context);
2696
+ case "InvalidInputException":
2697
+ case "com.amazonaws.securityhub#InvalidInputException":
2698
+ throw await de_InvalidInputExceptionRes(parsedOutput, context);
2699
+ case "LimitExceededException":
2700
+ case "com.amazonaws.securityhub#LimitExceededException":
2701
+ throw await de_LimitExceededExceptionRes(parsedOutput, context);
2702
+ case "ResourceConflictException":
2703
+ case "com.amazonaws.securityhub#ResourceConflictException":
2704
+ throw await de_ResourceConflictExceptionRes(parsedOutput, context);
2705
+ case "ResourceNotFoundException":
2706
+ case "com.amazonaws.securityhub#ResourceNotFoundException":
2707
+ throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
2708
+ default:
2709
+ const parsedBody = parsedOutput.body;
2710
+ return throwDefaultError({
2711
+ output,
2712
+ parsedBody,
2713
+ errorCode,
2714
+ });
2715
+ }
2716
+ };
2292
2717
  const de_DeleteFindingAggregatorCommand = async (output, context) => {
2293
2718
  if (output.statusCode !== 200 && output.statusCode >= 300) {
2294
2719
  return de_DeleteFindingAggregatorCommandError(output, context);
@@ -2577,6 +3002,7 @@ const de_DescribeOrganizationConfigurationCommand = async (output, context) => {
2577
3002
  AutoEnable: smithy_client_1.expectBoolean,
2578
3003
  AutoEnableStandards: smithy_client_1.expectString,
2579
3004
  MemberAccountLimitReached: smithy_client_1.expectBoolean,
3005
+ OrganizationConfiguration: smithy_client_1._json,
2580
3006
  });
2581
3007
  Object.assign(contents, doc);
2582
3008
  return contents;
@@ -2799,6 +3225,9 @@ const de_DisableOrganizationAdminAccountCommandError = async (output, context) =
2799
3225
  };
2800
3226
  const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
2801
3227
  switch (errorCode) {
3228
+ case "AccessDeniedException":
3229
+ case "com.amazonaws.securityhub#AccessDeniedException":
3230
+ throw await de_AccessDeniedExceptionRes(parsedOutput, context);
2802
3231
  case "InternalException":
2803
3232
  case "com.amazonaws.securityhub#InternalException":
2804
3233
  throw await de_InternalExceptionRes(parsedOutput, context);
@@ -2838,6 +3267,9 @@ const de_DisableSecurityHubCommandError = async (output, context) => {
2838
3267
  };
2839
3268
  const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
2840
3269
  switch (errorCode) {
3270
+ case "AccessDeniedException":
3271
+ case "com.amazonaws.securityhub#AccessDeniedException":
3272
+ throw await de_AccessDeniedExceptionRes(parsedOutput, context);
2841
3273
  case "InternalException":
2842
3274
  case "com.amazonaws.securityhub#InternalException":
2843
3275
  throw await de_InternalExceptionRes(parsedOutput, context);
@@ -2961,6 +3393,9 @@ const de_DisassociateMembersCommandError = async (output, context) => {
2961
3393
  };
2962
3394
  const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
2963
3395
  switch (errorCode) {
3396
+ case "AccessDeniedException":
3397
+ case "com.amazonaws.securityhub#AccessDeniedException":
3398
+ throw await de_AccessDeniedExceptionRes(parsedOutput, context);
2964
3399
  case "InternalException":
2965
3400
  case "com.amazonaws.securityhub#InternalException":
2966
3401
  throw await de_InternalExceptionRes(parsedOutput, context);
@@ -3049,6 +3484,9 @@ const de_EnableOrganizationAdminAccountCommandError = async (output, context) =>
3049
3484
  };
3050
3485
  const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
3051
3486
  switch (errorCode) {
3487
+ case "AccessDeniedException":
3488
+ case "com.amazonaws.securityhub#AccessDeniedException":
3489
+ throw await de_AccessDeniedExceptionRes(parsedOutput, context);
3052
3490
  case "InternalException":
3053
3491
  case "com.amazonaws.securityhub#InternalException":
3054
3492
  throw await de_InternalExceptionRes(parsedOutput, context);
@@ -3158,6 +3596,116 @@ const de_GetAdministratorAccountCommandError = async (output, context) => {
3158
3596
  });
3159
3597
  }
3160
3598
  };
3599
+ const de_GetConfigurationPolicyCommand = async (output, context) => {
3600
+ if (output.statusCode !== 200 && output.statusCode >= 300) {
3601
+ return de_GetConfigurationPolicyCommandError(output, context);
3602
+ }
3603
+ const contents = (0, smithy_client_1.map)({
3604
+ $metadata: deserializeMetadata(output),
3605
+ });
3606
+ const data = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.expectObject)(await parseBody(output.body, context)), "body");
3607
+ const doc = (0, smithy_client_1.take)(data, {
3608
+ Arn: smithy_client_1.expectString,
3609
+ ConfigurationPolicy: (_) => de_Policy((0, core_1.awsExpectUnion)(_), context),
3610
+ CreatedAt: (_) => (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseRfc3339DateTimeWithOffset)(_)),
3611
+ Description: smithy_client_1.expectString,
3612
+ Id: smithy_client_1.expectString,
3613
+ Name: smithy_client_1.expectString,
3614
+ UpdatedAt: (_) => (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseRfc3339DateTimeWithOffset)(_)),
3615
+ });
3616
+ Object.assign(contents, doc);
3617
+ return contents;
3618
+ };
3619
+ exports.de_GetConfigurationPolicyCommand = de_GetConfigurationPolicyCommand;
3620
+ const de_GetConfigurationPolicyCommandError = async (output, context) => {
3621
+ const parsedOutput = {
3622
+ ...output,
3623
+ body: await parseErrorBody(output.body, context),
3624
+ };
3625
+ const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
3626
+ switch (errorCode) {
3627
+ case "AccessDeniedException":
3628
+ case "com.amazonaws.securityhub#AccessDeniedException":
3629
+ throw await de_AccessDeniedExceptionRes(parsedOutput, context);
3630
+ case "InternalException":
3631
+ case "com.amazonaws.securityhub#InternalException":
3632
+ throw await de_InternalExceptionRes(parsedOutput, context);
3633
+ case "InvalidAccessException":
3634
+ case "com.amazonaws.securityhub#InvalidAccessException":
3635
+ throw await de_InvalidAccessExceptionRes(parsedOutput, context);
3636
+ case "InvalidInputException":
3637
+ case "com.amazonaws.securityhub#InvalidInputException":
3638
+ throw await de_InvalidInputExceptionRes(parsedOutput, context);
3639
+ case "LimitExceededException":
3640
+ case "com.amazonaws.securityhub#LimitExceededException":
3641
+ throw await de_LimitExceededExceptionRes(parsedOutput, context);
3642
+ case "ResourceNotFoundException":
3643
+ case "com.amazonaws.securityhub#ResourceNotFoundException":
3644
+ throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
3645
+ default:
3646
+ const parsedBody = parsedOutput.body;
3647
+ return throwDefaultError({
3648
+ output,
3649
+ parsedBody,
3650
+ errorCode,
3651
+ });
3652
+ }
3653
+ };
3654
+ const de_GetConfigurationPolicyAssociationCommand = async (output, context) => {
3655
+ if (output.statusCode !== 200 && output.statusCode >= 300) {
3656
+ return de_GetConfigurationPolicyAssociationCommandError(output, context);
3657
+ }
3658
+ const contents = (0, smithy_client_1.map)({
3659
+ $metadata: deserializeMetadata(output),
3660
+ });
3661
+ const data = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.expectObject)(await parseBody(output.body, context)), "body");
3662
+ const doc = (0, smithy_client_1.take)(data, {
3663
+ AssociationStatus: smithy_client_1.expectString,
3664
+ AssociationStatusMessage: smithy_client_1.expectString,
3665
+ AssociationType: smithy_client_1.expectString,
3666
+ ConfigurationPolicyId: smithy_client_1.expectString,
3667
+ TargetId: smithy_client_1.expectString,
3668
+ TargetType: smithy_client_1.expectString,
3669
+ UpdatedAt: (_) => (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseRfc3339DateTimeWithOffset)(_)),
3670
+ });
3671
+ Object.assign(contents, doc);
3672
+ return contents;
3673
+ };
3674
+ exports.de_GetConfigurationPolicyAssociationCommand = de_GetConfigurationPolicyAssociationCommand;
3675
+ const de_GetConfigurationPolicyAssociationCommandError = async (output, context) => {
3676
+ const parsedOutput = {
3677
+ ...output,
3678
+ body: await parseErrorBody(output.body, context),
3679
+ };
3680
+ const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
3681
+ switch (errorCode) {
3682
+ case "AccessDeniedException":
3683
+ case "com.amazonaws.securityhub#AccessDeniedException":
3684
+ throw await de_AccessDeniedExceptionRes(parsedOutput, context);
3685
+ case "InternalException":
3686
+ case "com.amazonaws.securityhub#InternalException":
3687
+ throw await de_InternalExceptionRes(parsedOutput, context);
3688
+ case "InvalidAccessException":
3689
+ case "com.amazonaws.securityhub#InvalidAccessException":
3690
+ throw await de_InvalidAccessExceptionRes(parsedOutput, context);
3691
+ case "InvalidInputException":
3692
+ case "com.amazonaws.securityhub#InvalidInputException":
3693
+ throw await de_InvalidInputExceptionRes(parsedOutput, context);
3694
+ case "LimitExceededException":
3695
+ case "com.amazonaws.securityhub#LimitExceededException":
3696
+ throw await de_LimitExceededExceptionRes(parsedOutput, context);
3697
+ case "ResourceNotFoundException":
3698
+ case "com.amazonaws.securityhub#ResourceNotFoundException":
3699
+ throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
3700
+ default:
3701
+ const parsedBody = parsedOutput.body;
3702
+ return throwDefaultError({
3703
+ output,
3704
+ parsedBody,
3705
+ errorCode,
3706
+ });
3707
+ }
3708
+ };
3161
3709
  const de_GetEnabledStandardsCommand = async (output, context) => {
3162
3710
  if (output.statusCode !== 200 && output.statusCode >= 300) {
3163
3711
  return de_GetEnabledStandardsCommandError(output, context);
@@ -3571,6 +4119,52 @@ const de_GetMembersCommandError = async (output, context) => {
3571
4119
  });
3572
4120
  }
3573
4121
  };
4122
+ const de_GetSecurityControlDefinitionCommand = async (output, context) => {
4123
+ if (output.statusCode !== 200 && output.statusCode >= 300) {
4124
+ return de_GetSecurityControlDefinitionCommandError(output, context);
4125
+ }
4126
+ const contents = (0, smithy_client_1.map)({
4127
+ $metadata: deserializeMetadata(output),
4128
+ });
4129
+ const data = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.expectObject)(await parseBody(output.body, context)), "body");
4130
+ const doc = (0, smithy_client_1.take)(data, {
4131
+ SecurityControlDefinition: (_) => de_SecurityControlDefinition(_, context),
4132
+ });
4133
+ Object.assign(contents, doc);
4134
+ return contents;
4135
+ };
4136
+ exports.de_GetSecurityControlDefinitionCommand = de_GetSecurityControlDefinitionCommand;
4137
+ const de_GetSecurityControlDefinitionCommandError = async (output, context) => {
4138
+ const parsedOutput = {
4139
+ ...output,
4140
+ body: await parseErrorBody(output.body, context),
4141
+ };
4142
+ const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
4143
+ switch (errorCode) {
4144
+ case "InternalException":
4145
+ case "com.amazonaws.securityhub#InternalException":
4146
+ throw await de_InternalExceptionRes(parsedOutput, context);
4147
+ case "InvalidAccessException":
4148
+ case "com.amazonaws.securityhub#InvalidAccessException":
4149
+ throw await de_InvalidAccessExceptionRes(parsedOutput, context);
4150
+ case "InvalidInputException":
4151
+ case "com.amazonaws.securityhub#InvalidInputException":
4152
+ throw await de_InvalidInputExceptionRes(parsedOutput, context);
4153
+ case "LimitExceededException":
4154
+ case "com.amazonaws.securityhub#LimitExceededException":
4155
+ throw await de_LimitExceededExceptionRes(parsedOutput, context);
4156
+ case "ResourceNotFoundException":
4157
+ case "com.amazonaws.securityhub#ResourceNotFoundException":
4158
+ throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
4159
+ default:
4160
+ const parsedBody = parsedOutput.body;
4161
+ return throwDefaultError({
4162
+ output,
4163
+ parsedBody,
4164
+ errorCode,
4165
+ });
4166
+ }
4167
+ };
3574
4168
  const de_InviteMembersCommand = async (output, context) => {
3575
4169
  if (output.statusCode !== 200 && output.statusCode >= 300) {
3576
4170
  return de_InviteMembersCommandError(output, context);
@@ -3664,6 +4258,100 @@ const de_ListAutomationRulesCommandError = async (output, context) => {
3664
4258
  });
3665
4259
  }
3666
4260
  };
4261
+ const de_ListConfigurationPoliciesCommand = async (output, context) => {
4262
+ if (output.statusCode !== 200 && output.statusCode >= 300) {
4263
+ return de_ListConfigurationPoliciesCommandError(output, context);
4264
+ }
4265
+ const contents = (0, smithy_client_1.map)({
4266
+ $metadata: deserializeMetadata(output),
4267
+ });
4268
+ const data = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.expectObject)(await parseBody(output.body, context)), "body");
4269
+ const doc = (0, smithy_client_1.take)(data, {
4270
+ ConfigurationPolicySummaries: (_) => de_ConfigurationPolicySummaryList(_, context),
4271
+ NextToken: smithy_client_1.expectString,
4272
+ });
4273
+ Object.assign(contents, doc);
4274
+ return contents;
4275
+ };
4276
+ exports.de_ListConfigurationPoliciesCommand = de_ListConfigurationPoliciesCommand;
4277
+ const de_ListConfigurationPoliciesCommandError = async (output, context) => {
4278
+ const parsedOutput = {
4279
+ ...output,
4280
+ body: await parseErrorBody(output.body, context),
4281
+ };
4282
+ const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
4283
+ switch (errorCode) {
4284
+ case "AccessDeniedException":
4285
+ case "com.amazonaws.securityhub#AccessDeniedException":
4286
+ throw await de_AccessDeniedExceptionRes(parsedOutput, context);
4287
+ case "InternalException":
4288
+ case "com.amazonaws.securityhub#InternalException":
4289
+ throw await de_InternalExceptionRes(parsedOutput, context);
4290
+ case "InvalidAccessException":
4291
+ case "com.amazonaws.securityhub#InvalidAccessException":
4292
+ throw await de_InvalidAccessExceptionRes(parsedOutput, context);
4293
+ case "InvalidInputException":
4294
+ case "com.amazonaws.securityhub#InvalidInputException":
4295
+ throw await de_InvalidInputExceptionRes(parsedOutput, context);
4296
+ case "LimitExceededException":
4297
+ case "com.amazonaws.securityhub#LimitExceededException":
4298
+ throw await de_LimitExceededExceptionRes(parsedOutput, context);
4299
+ default:
4300
+ const parsedBody = parsedOutput.body;
4301
+ return throwDefaultError({
4302
+ output,
4303
+ parsedBody,
4304
+ errorCode,
4305
+ });
4306
+ }
4307
+ };
4308
+ const de_ListConfigurationPolicyAssociationsCommand = async (output, context) => {
4309
+ if (output.statusCode !== 200 && output.statusCode >= 300) {
4310
+ return de_ListConfigurationPolicyAssociationsCommandError(output, context);
4311
+ }
4312
+ const contents = (0, smithy_client_1.map)({
4313
+ $metadata: deserializeMetadata(output),
4314
+ });
4315
+ const data = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.expectObject)(await parseBody(output.body, context)), "body");
4316
+ const doc = (0, smithy_client_1.take)(data, {
4317
+ ConfigurationPolicyAssociationSummaries: (_) => de_ConfigurationPolicyAssociationSummaryList(_, context),
4318
+ NextToken: smithy_client_1.expectString,
4319
+ });
4320
+ Object.assign(contents, doc);
4321
+ return contents;
4322
+ };
4323
+ exports.de_ListConfigurationPolicyAssociationsCommand = de_ListConfigurationPolicyAssociationsCommand;
4324
+ const de_ListConfigurationPolicyAssociationsCommandError = async (output, context) => {
4325
+ const parsedOutput = {
4326
+ ...output,
4327
+ body: await parseErrorBody(output.body, context),
4328
+ };
4329
+ const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
4330
+ switch (errorCode) {
4331
+ case "AccessDeniedException":
4332
+ case "com.amazonaws.securityhub#AccessDeniedException":
4333
+ throw await de_AccessDeniedExceptionRes(parsedOutput, context);
4334
+ case "InternalException":
4335
+ case "com.amazonaws.securityhub#InternalException":
4336
+ throw await de_InternalExceptionRes(parsedOutput, context);
4337
+ case "InvalidAccessException":
4338
+ case "com.amazonaws.securityhub#InvalidAccessException":
4339
+ throw await de_InvalidAccessExceptionRes(parsedOutput, context);
4340
+ case "InvalidInputException":
4341
+ case "com.amazonaws.securityhub#InvalidInputException":
4342
+ throw await de_InvalidInputExceptionRes(parsedOutput, context);
4343
+ case "LimitExceededException":
4344
+ case "com.amazonaws.securityhub#LimitExceededException":
4345
+ throw await de_LimitExceededExceptionRes(parsedOutput, context);
4346
+ default:
4347
+ const parsedBody = parsedOutput.body;
4348
+ return throwDefaultError({
4349
+ output,
4350
+ parsedBody,
4351
+ errorCode,
4352
+ });
4353
+ }
4354
+ };
3667
4355
  const de_ListEnabledProductsForImportCommand = async (output, context) => {
3668
4356
  if (output.statusCode !== 200 && output.statusCode >= 300) {
3669
4357
  return de_ListEnabledProductsForImportCommandError(output, context);
@@ -3894,7 +4582,7 @@ const de_ListSecurityControlDefinitionsCommand = async (output, context) => {
3894
4582
  const data = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.expectObject)(await parseBody(output.body, context)), "body");
3895
4583
  const doc = (0, smithy_client_1.take)(data, {
3896
4584
  NextToken: smithy_client_1.expectString,
3897
- SecurityControlDefinitions: smithy_client_1._json,
4585
+ SecurityControlDefinitions: (_) => de_SecurityControlDefinitions(_, context),
3898
4586
  });
3899
4587
  Object.assign(contents, doc);
3900
4588
  return contents;
@@ -3943,14 +4631,151 @@ const de_ListStandardsControlAssociationsCommand = async (output, context) => {
3943
4631
  Object.assign(contents, doc);
3944
4632
  return contents;
3945
4633
  };
3946
- exports.de_ListStandardsControlAssociationsCommand = de_ListStandardsControlAssociationsCommand;
3947
- const de_ListStandardsControlAssociationsCommandError = async (output, context) => {
4634
+ exports.de_ListStandardsControlAssociationsCommand = de_ListStandardsControlAssociationsCommand;
4635
+ const de_ListStandardsControlAssociationsCommandError = async (output, context) => {
4636
+ const parsedOutput = {
4637
+ ...output,
4638
+ body: await parseErrorBody(output.body, context),
4639
+ };
4640
+ const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
4641
+ switch (errorCode) {
4642
+ case "InternalException":
4643
+ case "com.amazonaws.securityhub#InternalException":
4644
+ throw await de_InternalExceptionRes(parsedOutput, context);
4645
+ case "InvalidAccessException":
4646
+ case "com.amazonaws.securityhub#InvalidAccessException":
4647
+ throw await de_InvalidAccessExceptionRes(parsedOutput, context);
4648
+ case "InvalidInputException":
4649
+ case "com.amazonaws.securityhub#InvalidInputException":
4650
+ throw await de_InvalidInputExceptionRes(parsedOutput, context);
4651
+ case "LimitExceededException":
4652
+ case "com.amazonaws.securityhub#LimitExceededException":
4653
+ throw await de_LimitExceededExceptionRes(parsedOutput, context);
4654
+ default:
4655
+ const parsedBody = parsedOutput.body;
4656
+ return throwDefaultError({
4657
+ output,
4658
+ parsedBody,
4659
+ errorCode,
4660
+ });
4661
+ }
4662
+ };
4663
+ const de_ListTagsForResourceCommand = async (output, context) => {
4664
+ if (output.statusCode !== 200 && output.statusCode >= 300) {
4665
+ return de_ListTagsForResourceCommandError(output, context);
4666
+ }
4667
+ const contents = (0, smithy_client_1.map)({
4668
+ $metadata: deserializeMetadata(output),
4669
+ });
4670
+ const data = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.expectObject)(await parseBody(output.body, context)), "body");
4671
+ const doc = (0, smithy_client_1.take)(data, {
4672
+ Tags: smithy_client_1._json,
4673
+ });
4674
+ Object.assign(contents, doc);
4675
+ return contents;
4676
+ };
4677
+ exports.de_ListTagsForResourceCommand = de_ListTagsForResourceCommand;
4678
+ const de_ListTagsForResourceCommandError = async (output, context) => {
4679
+ const parsedOutput = {
4680
+ ...output,
4681
+ body: await parseErrorBody(output.body, context),
4682
+ };
4683
+ const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
4684
+ switch (errorCode) {
4685
+ case "InternalException":
4686
+ case "com.amazonaws.securityhub#InternalException":
4687
+ throw await de_InternalExceptionRes(parsedOutput, context);
4688
+ case "InvalidInputException":
4689
+ case "com.amazonaws.securityhub#InvalidInputException":
4690
+ throw await de_InvalidInputExceptionRes(parsedOutput, context);
4691
+ case "ResourceNotFoundException":
4692
+ case "com.amazonaws.securityhub#ResourceNotFoundException":
4693
+ throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
4694
+ default:
4695
+ const parsedBody = parsedOutput.body;
4696
+ return throwDefaultError({
4697
+ output,
4698
+ parsedBody,
4699
+ errorCode,
4700
+ });
4701
+ }
4702
+ };
4703
+ const de_StartConfigurationPolicyAssociationCommand = async (output, context) => {
4704
+ if (output.statusCode !== 200 && output.statusCode >= 300) {
4705
+ return de_StartConfigurationPolicyAssociationCommandError(output, context);
4706
+ }
4707
+ const contents = (0, smithy_client_1.map)({
4708
+ $metadata: deserializeMetadata(output),
4709
+ });
4710
+ const data = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.expectObject)(await parseBody(output.body, context)), "body");
4711
+ const doc = (0, smithy_client_1.take)(data, {
4712
+ AssociationStatus: smithy_client_1.expectString,
4713
+ AssociationStatusMessage: smithy_client_1.expectString,
4714
+ AssociationType: smithy_client_1.expectString,
4715
+ ConfigurationPolicyId: smithy_client_1.expectString,
4716
+ TargetId: smithy_client_1.expectString,
4717
+ TargetType: smithy_client_1.expectString,
4718
+ UpdatedAt: (_) => (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseRfc3339DateTimeWithOffset)(_)),
4719
+ });
4720
+ Object.assign(contents, doc);
4721
+ return contents;
4722
+ };
4723
+ exports.de_StartConfigurationPolicyAssociationCommand = de_StartConfigurationPolicyAssociationCommand;
4724
+ const de_StartConfigurationPolicyAssociationCommandError = async (output, context) => {
4725
+ const parsedOutput = {
4726
+ ...output,
4727
+ body: await parseErrorBody(output.body, context),
4728
+ };
4729
+ const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
4730
+ switch (errorCode) {
4731
+ case "AccessDeniedException":
4732
+ case "com.amazonaws.securityhub#AccessDeniedException":
4733
+ throw await de_AccessDeniedExceptionRes(parsedOutput, context);
4734
+ case "InternalException":
4735
+ case "com.amazonaws.securityhub#InternalException":
4736
+ throw await de_InternalExceptionRes(parsedOutput, context);
4737
+ case "InvalidAccessException":
4738
+ case "com.amazonaws.securityhub#InvalidAccessException":
4739
+ throw await de_InvalidAccessExceptionRes(parsedOutput, context);
4740
+ case "InvalidInputException":
4741
+ case "com.amazonaws.securityhub#InvalidInputException":
4742
+ throw await de_InvalidInputExceptionRes(parsedOutput, context);
4743
+ case "LimitExceededException":
4744
+ case "com.amazonaws.securityhub#LimitExceededException":
4745
+ throw await de_LimitExceededExceptionRes(parsedOutput, context);
4746
+ case "ResourceNotFoundException":
4747
+ case "com.amazonaws.securityhub#ResourceNotFoundException":
4748
+ throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
4749
+ default:
4750
+ const parsedBody = parsedOutput.body;
4751
+ return throwDefaultError({
4752
+ output,
4753
+ parsedBody,
4754
+ errorCode,
4755
+ });
4756
+ }
4757
+ };
4758
+ const de_StartConfigurationPolicyDisassociationCommand = async (output, context) => {
4759
+ if (output.statusCode !== 200 && output.statusCode >= 300) {
4760
+ return de_StartConfigurationPolicyDisassociationCommandError(output, context);
4761
+ }
4762
+ const contents = (0, smithy_client_1.map)({
4763
+ $metadata: deserializeMetadata(output),
4764
+ });
4765
+ await (0, smithy_client_1.collectBody)(output.body, context);
4766
+ return contents;
4767
+ };
4768
+ exports.de_StartConfigurationPolicyDisassociationCommand = de_StartConfigurationPolicyDisassociationCommand;
4769
+ const de_StartConfigurationPolicyDisassociationCommandError = async (output, context) => {
3948
4770
  const parsedOutput = {
3949
4771
  ...output,
3950
4772
  body: await parseErrorBody(output.body, context),
3951
4773
  };
3952
4774
  const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
3953
4775
  switch (errorCode) {
4776
+ case "AccessDeniedException":
4777
+ case "com.amazonaws.securityhub#AccessDeniedException":
4778
+ throw await de_AccessDeniedExceptionRes(parsedOutput, context);
3954
4779
  case "InternalException":
3955
4780
  case "com.amazonaws.securityhub#InternalException":
3956
4781
  throw await de_InternalExceptionRes(parsedOutput, context);
@@ -3963,6 +4788,9 @@ const de_ListStandardsControlAssociationsCommandError = async (output, context)
3963
4788
  case "LimitExceededException":
3964
4789
  case "com.amazonaws.securityhub#LimitExceededException":
3965
4790
  throw await de_LimitExceededExceptionRes(parsedOutput, context);
4791
+ case "ResourceNotFoundException":
4792
+ case "com.amazonaws.securityhub#ResourceNotFoundException":
4793
+ throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
3966
4794
  default:
3967
4795
  const parsedBody = parsedOutput.body;
3968
4796
  return throwDefaultError({
@@ -3972,22 +4800,18 @@ const de_ListStandardsControlAssociationsCommandError = async (output, context)
3972
4800
  });
3973
4801
  }
3974
4802
  };
3975
- const de_ListTagsForResourceCommand = async (output, context) => {
4803
+ const de_TagResourceCommand = async (output, context) => {
3976
4804
  if (output.statusCode !== 200 && output.statusCode >= 300) {
3977
- return de_ListTagsForResourceCommandError(output, context);
4805
+ return de_TagResourceCommandError(output, context);
3978
4806
  }
3979
4807
  const contents = (0, smithy_client_1.map)({
3980
4808
  $metadata: deserializeMetadata(output),
3981
4809
  });
3982
- const data = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.expectObject)(await parseBody(output.body, context)), "body");
3983
- const doc = (0, smithy_client_1.take)(data, {
3984
- Tags: smithy_client_1._json,
3985
- });
3986
- Object.assign(contents, doc);
4810
+ await (0, smithy_client_1.collectBody)(output.body, context);
3987
4811
  return contents;
3988
4812
  };
3989
- exports.de_ListTagsForResourceCommand = de_ListTagsForResourceCommand;
3990
- const de_ListTagsForResourceCommandError = async (output, context) => {
4813
+ exports.de_TagResourceCommand = de_TagResourceCommand;
4814
+ const de_TagResourceCommandError = async (output, context) => {
3991
4815
  const parsedOutput = {
3992
4816
  ...output,
3993
4817
  body: await parseErrorBody(output.body, context),
@@ -4012,9 +4836,9 @@ const de_ListTagsForResourceCommandError = async (output, context) => {
4012
4836
  });
4013
4837
  }
4014
4838
  };
4015
- const de_TagResourceCommand = async (output, context) => {
4839
+ const de_UntagResourceCommand = async (output, context) => {
4016
4840
  if (output.statusCode !== 200 && output.statusCode >= 300) {
4017
- return de_TagResourceCommandError(output, context);
4841
+ return de_UntagResourceCommandError(output, context);
4018
4842
  }
4019
4843
  const contents = (0, smithy_client_1.map)({
4020
4844
  $metadata: deserializeMetadata(output),
@@ -4022,8 +4846,8 @@ const de_TagResourceCommand = async (output, context) => {
4022
4846
  await (0, smithy_client_1.collectBody)(output.body, context);
4023
4847
  return contents;
4024
4848
  };
4025
- exports.de_TagResourceCommand = de_TagResourceCommand;
4026
- const de_TagResourceCommandError = async (output, context) => {
4849
+ exports.de_UntagResourceCommand = de_UntagResourceCommand;
4850
+ const de_UntagResourceCommandError = async (output, context) => {
4027
4851
  const parsedOutput = {
4028
4852
  ...output,
4029
4853
  body: await parseErrorBody(output.body, context),
@@ -4048,9 +4872,9 @@ const de_TagResourceCommandError = async (output, context) => {
4048
4872
  });
4049
4873
  }
4050
4874
  };
4051
- const de_UntagResourceCommand = async (output, context) => {
4875
+ const de_UpdateActionTargetCommand = async (output, context) => {
4052
4876
  if (output.statusCode !== 200 && output.statusCode >= 300) {
4053
- return de_UntagResourceCommandError(output, context);
4877
+ return de_UpdateActionTargetCommandError(output, context);
4054
4878
  }
4055
4879
  const contents = (0, smithy_client_1.map)({
4056
4880
  $metadata: deserializeMetadata(output),
@@ -4058,8 +4882,8 @@ const de_UntagResourceCommand = async (output, context) => {
4058
4882
  await (0, smithy_client_1.collectBody)(output.body, context);
4059
4883
  return contents;
4060
4884
  };
4061
- exports.de_UntagResourceCommand = de_UntagResourceCommand;
4062
- const de_UntagResourceCommandError = async (output, context) => {
4885
+ exports.de_UpdateActionTargetCommand = de_UpdateActionTargetCommand;
4886
+ const de_UpdateActionTargetCommandError = async (output, context) => {
4063
4887
  const parsedOutput = {
4064
4888
  ...output,
4065
4889
  body: await parseErrorBody(output.body, context),
@@ -4069,6 +4893,9 @@ const de_UntagResourceCommandError = async (output, context) => {
4069
4893
  case "InternalException":
4070
4894
  case "com.amazonaws.securityhub#InternalException":
4071
4895
  throw await de_InternalExceptionRes(parsedOutput, context);
4896
+ case "InvalidAccessException":
4897
+ case "com.amazonaws.securityhub#InvalidAccessException":
4898
+ throw await de_InvalidAccessExceptionRes(parsedOutput, context);
4072
4899
  case "InvalidInputException":
4073
4900
  case "com.amazonaws.securityhub#InvalidInputException":
4074
4901
  throw await de_InvalidInputExceptionRes(parsedOutput, context);
@@ -4084,24 +4911,37 @@ const de_UntagResourceCommandError = async (output, context) => {
4084
4911
  });
4085
4912
  }
4086
4913
  };
4087
- const de_UpdateActionTargetCommand = async (output, context) => {
4914
+ const de_UpdateConfigurationPolicyCommand = async (output, context) => {
4088
4915
  if (output.statusCode !== 200 && output.statusCode >= 300) {
4089
- return de_UpdateActionTargetCommandError(output, context);
4916
+ return de_UpdateConfigurationPolicyCommandError(output, context);
4090
4917
  }
4091
4918
  const contents = (0, smithy_client_1.map)({
4092
4919
  $metadata: deserializeMetadata(output),
4093
4920
  });
4094
- await (0, smithy_client_1.collectBody)(output.body, context);
4921
+ const data = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.expectObject)(await parseBody(output.body, context)), "body");
4922
+ const doc = (0, smithy_client_1.take)(data, {
4923
+ Arn: smithy_client_1.expectString,
4924
+ ConfigurationPolicy: (_) => de_Policy((0, core_1.awsExpectUnion)(_), context),
4925
+ CreatedAt: (_) => (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseRfc3339DateTimeWithOffset)(_)),
4926
+ Description: smithy_client_1.expectString,
4927
+ Id: smithy_client_1.expectString,
4928
+ Name: smithy_client_1.expectString,
4929
+ UpdatedAt: (_) => (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseRfc3339DateTimeWithOffset)(_)),
4930
+ });
4931
+ Object.assign(contents, doc);
4095
4932
  return contents;
4096
4933
  };
4097
- exports.de_UpdateActionTargetCommand = de_UpdateActionTargetCommand;
4098
- const de_UpdateActionTargetCommandError = async (output, context) => {
4934
+ exports.de_UpdateConfigurationPolicyCommand = de_UpdateConfigurationPolicyCommand;
4935
+ const de_UpdateConfigurationPolicyCommandError = async (output, context) => {
4099
4936
  const parsedOutput = {
4100
4937
  ...output,
4101
4938
  body: await parseErrorBody(output.body, context),
4102
4939
  };
4103
4940
  const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
4104
4941
  switch (errorCode) {
4942
+ case "AccessDeniedException":
4943
+ case "com.amazonaws.securityhub#AccessDeniedException":
4944
+ throw await de_AccessDeniedExceptionRes(parsedOutput, context);
4105
4945
  case "InternalException":
4106
4946
  case "com.amazonaws.securityhub#InternalException":
4107
4947
  throw await de_InternalExceptionRes(parsedOutput, context);
@@ -4111,6 +4951,12 @@ const de_UpdateActionTargetCommandError = async (output, context) => {
4111
4951
  case "InvalidInputException":
4112
4952
  case "com.amazonaws.securityhub#InvalidInputException":
4113
4953
  throw await de_InvalidInputExceptionRes(parsedOutput, context);
4954
+ case "LimitExceededException":
4955
+ case "com.amazonaws.securityhub#LimitExceededException":
4956
+ throw await de_LimitExceededExceptionRes(parsedOutput, context);
4957
+ case "ResourceConflictException":
4958
+ case "com.amazonaws.securityhub#ResourceConflictException":
4959
+ throw await de_ResourceConflictExceptionRes(parsedOutput, context);
4114
4960
  case "ResourceNotFoundException":
4115
4961
  case "com.amazonaws.securityhub#ResourceNotFoundException":
4116
4962
  throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
@@ -4277,6 +5123,57 @@ const de_UpdateOrganizationConfigurationCommandError = async (output, context) =
4277
5123
  };
4278
5124
  const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
4279
5125
  switch (errorCode) {
5126
+ case "AccessDeniedException":
5127
+ case "com.amazonaws.securityhub#AccessDeniedException":
5128
+ throw await de_AccessDeniedExceptionRes(parsedOutput, context);
5129
+ case "InternalException":
5130
+ case "com.amazonaws.securityhub#InternalException":
5131
+ throw await de_InternalExceptionRes(parsedOutput, context);
5132
+ case "InvalidAccessException":
5133
+ case "com.amazonaws.securityhub#InvalidAccessException":
5134
+ throw await de_InvalidAccessExceptionRes(parsedOutput, context);
5135
+ case "InvalidInputException":
5136
+ case "com.amazonaws.securityhub#InvalidInputException":
5137
+ throw await de_InvalidInputExceptionRes(parsedOutput, context);
5138
+ case "LimitExceededException":
5139
+ case "com.amazonaws.securityhub#LimitExceededException":
5140
+ throw await de_LimitExceededExceptionRes(parsedOutput, context);
5141
+ case "ResourceConflictException":
5142
+ case "com.amazonaws.securityhub#ResourceConflictException":
5143
+ throw await de_ResourceConflictExceptionRes(parsedOutput, context);
5144
+ case "ResourceNotFoundException":
5145
+ case "com.amazonaws.securityhub#ResourceNotFoundException":
5146
+ throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
5147
+ default:
5148
+ const parsedBody = parsedOutput.body;
5149
+ return throwDefaultError({
5150
+ output,
5151
+ parsedBody,
5152
+ errorCode,
5153
+ });
5154
+ }
5155
+ };
5156
+ const de_UpdateSecurityControlCommand = async (output, context) => {
5157
+ if (output.statusCode !== 200 && output.statusCode >= 300) {
5158
+ return de_UpdateSecurityControlCommandError(output, context);
5159
+ }
5160
+ const contents = (0, smithy_client_1.map)({
5161
+ $metadata: deserializeMetadata(output),
5162
+ });
5163
+ await (0, smithy_client_1.collectBody)(output.body, context);
5164
+ return contents;
5165
+ };
5166
+ exports.de_UpdateSecurityControlCommand = de_UpdateSecurityControlCommand;
5167
+ const de_UpdateSecurityControlCommandError = async (output, context) => {
5168
+ const parsedOutput = {
5169
+ ...output,
5170
+ body: await parseErrorBody(output.body, context),
5171
+ };
5172
+ const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
5173
+ switch (errorCode) {
5174
+ case "AccessDeniedException":
5175
+ case "com.amazonaws.securityhub#AccessDeniedException":
5176
+ throw await de_AccessDeniedExceptionRes(parsedOutput, context);
4280
5177
  case "InternalException":
4281
5178
  case "com.amazonaws.securityhub#InternalException":
4282
5179
  throw await de_InternalExceptionRes(parsedOutput, context);
@@ -4289,6 +5186,12 @@ const de_UpdateOrganizationConfigurationCommandError = async (output, context) =
4289
5186
  case "LimitExceededException":
4290
5187
  case "com.amazonaws.securityhub#LimitExceededException":
4291
5188
  throw await de_LimitExceededExceptionRes(parsedOutput, context);
5189
+ case "ResourceInUseException":
5190
+ case "com.amazonaws.securityhub#ResourceInUseException":
5191
+ throw await de_ResourceInUseExceptionRes(parsedOutput, context);
5192
+ case "ResourceNotFoundException":
5193
+ case "com.amazonaws.securityhub#ResourceNotFoundException":
5194
+ throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
4292
5195
  default:
4293
5196
  const parsedBody = parsedOutput.body;
4294
5197
  return throwDefaultError({
@@ -4316,6 +5219,9 @@ const de_UpdateSecurityHubConfigurationCommandError = async (output, context) =>
4316
5219
  };
4317
5220
  const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
4318
5221
  switch (errorCode) {
5222
+ case "AccessDeniedException":
5223
+ case "com.amazonaws.securityhub#AccessDeniedException":
5224
+ throw await de_AccessDeniedExceptionRes(parsedOutput, context);
4319
5225
  case "InternalException":
4320
5226
  case "com.amazonaws.securityhub#InternalException":
4321
5227
  throw await de_InternalExceptionRes(parsedOutput, context);
@@ -4358,6 +5264,9 @@ const de_UpdateStandardsControlCommandError = async (output, context) => {
4358
5264
  };
4359
5265
  const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
4360
5266
  switch (errorCode) {
5267
+ case "AccessDeniedException":
5268
+ case "com.amazonaws.securityhub#AccessDeniedException":
5269
+ throw await de_AccessDeniedExceptionRes(parsedOutput, context);
4361
5270
  case "InternalException":
4362
5271
  case "com.amazonaws.securityhub#InternalException":
4363
5272
  throw await de_InternalExceptionRes(parsedOutput, context);
@@ -4464,6 +5373,20 @@ const de_ResourceConflictExceptionRes = async (parsedOutput, context) => {
4464
5373
  });
4465
5374
  return (0, smithy_client_1.decorateServiceException)(exception, parsedOutput.body);
4466
5375
  };
5376
+ const de_ResourceInUseExceptionRes = async (parsedOutput, context) => {
5377
+ const contents = (0, smithy_client_1.map)({});
5378
+ const data = parsedOutput.body;
5379
+ const doc = (0, smithy_client_1.take)(data, {
5380
+ Code: smithy_client_1.expectString,
5381
+ Message: smithy_client_1.expectString,
5382
+ });
5383
+ Object.assign(contents, doc);
5384
+ const exception = new models_2_1.ResourceInUseException({
5385
+ $metadata: deserializeMetadata(parsedOutput),
5386
+ ...contents,
5387
+ });
5388
+ return (0, smithy_client_1.decorateServiceException)(exception, parsedOutput.body);
5389
+ };
4467
5390
  const de_ResourceNotFoundExceptionRes = async (parsedOutput, context) => {
4468
5391
  const contents = (0, smithy_client_1.map)({});
4469
5392
  const data = parsedOutput.body;
@@ -4525,6 +5448,7 @@ const se_AutomationRulesFindingFieldsUpdate = (input, context) => {
4525
5448
  const se_AutomationRulesFindingFilters = (input, context) => {
4526
5449
  return (0, smithy_client_1.take)(input, {
4527
5450
  AwsAccountId: smithy_client_1._json,
5451
+ AwsAccountName: smithy_client_1._json,
4528
5452
  CompanyName: smithy_client_1._json,
4529
5453
  ComplianceAssociatedStandardsId: smithy_client_1._json,
4530
5454
  ComplianceSecurityControlId: smithy_client_1._json,
@@ -4545,6 +5469,8 @@ const se_AutomationRulesFindingFilters = (input, context) => {
4545
5469
  RecordState: smithy_client_1._json,
4546
5470
  RelatedFindingsId: smithy_client_1._json,
4547
5471
  RelatedFindingsProductArn: smithy_client_1._json,
5472
+ ResourceApplicationArn: smithy_client_1._json,
5473
+ ResourceApplicationName: smithy_client_1._json,
4548
5474
  ResourceDetailsOther: smithy_client_1._json,
4549
5475
  ResourceId: smithy_client_1._json,
4550
5476
  ResourcePartition: smithy_client_1._json,
@@ -4841,6 +5767,7 @@ const se_AwsSecurityFinding = (input, context) => {
4841
5767
  return (0, smithy_client_1.take)(input, {
4842
5768
  Action: (_) => se_Action(_, context),
4843
5769
  AwsAccountId: [],
5770
+ AwsAccountName: [],
4844
5771
  CompanyName: [],
4845
5772
  Compliance: smithy_client_1._json,
4846
5773
  Confidence: [],
@@ -4859,6 +5786,7 @@ const se_AwsSecurityFinding = (input, context) => {
4859
5786
  Note: smithy_client_1._json,
4860
5787
  PatchSummary: smithy_client_1._json,
4861
5788
  Process: smithy_client_1._json,
5789
+ ProcessedAt: [],
4862
5790
  ProductArn: [],
4863
5791
  ProductFields: smithy_client_1._json,
4864
5792
  ProductName: [],
@@ -4886,9 +5814,12 @@ const se_AwsSecurityFinding = (input, context) => {
4886
5814
  const se_AwsSecurityFindingFilters = (input, context) => {
4887
5815
  return (0, smithy_client_1.take)(input, {
4888
5816
  AwsAccountId: smithy_client_1._json,
5817
+ AwsAccountName: smithy_client_1._json,
4889
5818
  CompanyName: smithy_client_1._json,
4890
5819
  ComplianceAssociatedStandardsId: smithy_client_1._json,
4891
5820
  ComplianceSecurityControlId: smithy_client_1._json,
5821
+ ComplianceSecurityControlParametersName: smithy_client_1._json,
5822
+ ComplianceSecurityControlParametersValue: smithy_client_1._json,
4892
5823
  ComplianceStatus: smithy_client_1._json,
4893
5824
  Confidence: (_) => se_NumberFilterList(_, context),
4894
5825
  CreatedAt: smithy_client_1._json,
@@ -4938,6 +5869,8 @@ const se_AwsSecurityFindingFilters = (input, context) => {
4938
5869
  Region: smithy_client_1._json,
4939
5870
  RelatedFindingsId: smithy_client_1._json,
4940
5871
  RelatedFindingsProductArn: smithy_client_1._json,
5872
+ ResourceApplicationArn: smithy_client_1._json,
5873
+ ResourceApplicationName: smithy_client_1._json,
4941
5874
  ResourceAwsEc2InstanceIamInstanceProfileArn: smithy_client_1._json,
4942
5875
  ResourceAwsEc2InstanceImageId: smithy_client_1._json,
4943
5876
  ResourceAwsEc2InstanceIpV4Addresses: smithy_client_1._json,
@@ -4980,6 +5913,8 @@ const se_AwsSecurityFindingFilters = (input, context) => {
4980
5913
  UpdatedAt: smithy_client_1._json,
4981
5914
  UserDefinedFields: smithy_client_1._json,
4982
5915
  VerificationState: smithy_client_1._json,
5916
+ VulnerabilitiesExploitAvailable: smithy_client_1._json,
5917
+ VulnerabilitiesFixAvailable: smithy_client_1._json,
4983
5918
  WorkflowState: smithy_client_1._json,
4984
5919
  WorkflowStatus: smithy_client_1._json,
4985
5920
  });
@@ -5026,7 +5961,9 @@ const se_NetworkConnectionAction = (input, context) => {
5026
5961
  const se_NumberFilter = (input, context) => {
5027
5962
  return (0, smithy_client_1.take)(input, {
5028
5963
  Eq: smithy_client_1.serializeFloat,
5964
+ Gt: smithy_client_1.serializeFloat,
5029
5965
  Gte: smithy_client_1.serializeFloat,
5966
+ Lt: smithy_client_1.serializeFloat,
5030
5967
  Lte: smithy_client_1.serializeFloat,
5031
5968
  });
5032
5969
  };
@@ -5037,6 +5974,40 @@ const se_NumberFilterList = (input, context) => {
5037
5974
  return se_NumberFilter(entry, context);
5038
5975
  });
5039
5976
  };
5977
+ const se_ParameterConfiguration = (input, context) => {
5978
+ return (0, smithy_client_1.take)(input, {
5979
+ Value: (_) => se_ParameterValue(_, context),
5980
+ ValueType: [],
5981
+ });
5982
+ };
5983
+ const se_Parameters = (input, context) => {
5984
+ return Object.entries(input).reduce((acc, [key, value]) => {
5985
+ if (value === null) {
5986
+ return acc;
5987
+ }
5988
+ acc[key] = se_ParameterConfiguration(value, context);
5989
+ return acc;
5990
+ }, {});
5991
+ };
5992
+ const se_ParameterValue = (input, context) => {
5993
+ return models_2_1.ParameterValue.visit(input, {
5994
+ Boolean: (value) => ({ Boolean: value }),
5995
+ Double: (value) => ({ Double: (0, smithy_client_1.serializeFloat)(value) }),
5996
+ Enum: (value) => ({ Enum: value }),
5997
+ EnumList: (value) => ({ EnumList: (0, smithy_client_1._json)(value) }),
5998
+ Integer: (value) => ({ Integer: value }),
5999
+ IntegerList: (value) => ({ IntegerList: (0, smithy_client_1._json)(value) }),
6000
+ String: (value) => ({ String: value }),
6001
+ StringList: (value) => ({ StringList: (0, smithy_client_1._json)(value) }),
6002
+ _: (name, value) => ({ name: value }),
6003
+ });
6004
+ };
6005
+ const se_Policy = (input, context) => {
6006
+ return models_2_1.Policy.visit(input, {
6007
+ SecurityHub: (value) => ({ SecurityHub: se_SecurityHubPolicy(value, context) }),
6008
+ _: (name, value) => ({ name: value }),
6009
+ });
6010
+ };
5040
6011
  const se_PortProbeAction = (input, context) => {
5041
6012
  return (0, smithy_client_1.take)(input, {
5042
6013
  Blocked: [],
@@ -5059,6 +6030,8 @@ const se_PortProbeDetailList = (input, context) => {
5059
6030
  };
5060
6031
  const se_Resource = (input, context) => {
5061
6032
  return (0, smithy_client_1.take)(input, {
6033
+ ApplicationArn: [],
6034
+ ApplicationName: [],
5062
6035
  DataClassification: smithy_client_1._json,
5063
6036
  Details: (_) => se_ResourceDetails(_, context),
5064
6037
  Id: [],
@@ -5177,6 +6150,33 @@ const se_ResourceList = (input, context) => {
5177
6150
  return se_Resource(entry, context);
5178
6151
  });
5179
6152
  };
6153
+ const se_SecurityControlCustomParameter = (input, context) => {
6154
+ return (0, smithy_client_1.take)(input, {
6155
+ Parameters: (_) => se_Parameters(_, context),
6156
+ SecurityControlId: [],
6157
+ });
6158
+ };
6159
+ const se_SecurityControlCustomParametersList = (input, context) => {
6160
+ return input
6161
+ .filter((e) => e != null)
6162
+ .map((entry) => {
6163
+ return se_SecurityControlCustomParameter(entry, context);
6164
+ });
6165
+ };
6166
+ const se_SecurityControlsConfiguration = (input, context) => {
6167
+ return (0, smithy_client_1.take)(input, {
6168
+ DisabledSecurityControlIdentifiers: smithy_client_1._json,
6169
+ EnabledSecurityControlIdentifiers: smithy_client_1._json,
6170
+ SecurityControlCustomParameters: (_) => se_SecurityControlCustomParametersList(_, context),
6171
+ });
6172
+ };
6173
+ const se_SecurityHubPolicy = (input, context) => {
6174
+ return (0, smithy_client_1.take)(input, {
6175
+ EnabledStandardIdentifiers: smithy_client_1._json,
6176
+ SecurityControlsConfiguration: (_) => se_SecurityControlsConfiguration(_, context),
6177
+ ServiceEnabled: [],
6178
+ });
6179
+ };
5180
6180
  const se_Severity = (input, context) => {
5181
6181
  return (0, smithy_client_1.take)(input, {
5182
6182
  Label: [],
@@ -5303,6 +6303,7 @@ const de_AutomationRulesFindingFieldsUpdate = (output, context) => {
5303
6303
  const de_AutomationRulesFindingFilters = (output, context) => {
5304
6304
  return (0, smithy_client_1.take)(output, {
5305
6305
  AwsAccountId: smithy_client_1._json,
6306
+ AwsAccountName: smithy_client_1._json,
5306
6307
  CompanyName: smithy_client_1._json,
5307
6308
  ComplianceAssociatedStandardsId: smithy_client_1._json,
5308
6309
  ComplianceSecurityControlId: smithy_client_1._json,
@@ -5323,6 +6324,8 @@ const de_AutomationRulesFindingFilters = (output, context) => {
5323
6324
  RecordState: smithy_client_1._json,
5324
6325
  RelatedFindingsId: smithy_client_1._json,
5325
6326
  RelatedFindingsProductArn: smithy_client_1._json,
6327
+ ResourceApplicationArn: smithy_client_1._json,
6328
+ ResourceApplicationName: smithy_client_1._json,
5326
6329
  ResourceDetailsOther: smithy_client_1._json,
5327
6330
  ResourceId: smithy_client_1._json,
5328
6331
  ResourcePartition: smithy_client_1._json,
@@ -5641,6 +6644,7 @@ const de_AwsSecurityFinding = (output, context) => {
5641
6644
  return (0, smithy_client_1.take)(output, {
5642
6645
  Action: (_) => de_Action(_, context),
5643
6646
  AwsAccountId: smithy_client_1.expectString,
6647
+ AwsAccountName: smithy_client_1.expectString,
5644
6648
  CompanyName: smithy_client_1.expectString,
5645
6649
  Compliance: smithy_client_1._json,
5646
6650
  Confidence: smithy_client_1.expectInt32,
@@ -5659,6 +6663,7 @@ const de_AwsSecurityFinding = (output, context) => {
5659
6663
  Note: smithy_client_1._json,
5660
6664
  PatchSummary: smithy_client_1._json,
5661
6665
  Process: smithy_client_1._json,
6666
+ ProcessedAt: smithy_client_1.expectString,
5662
6667
  ProductArn: smithy_client_1.expectString,
5663
6668
  ProductFields: smithy_client_1._json,
5664
6669
  ProductName: smithy_client_1.expectString,
@@ -5686,9 +6691,12 @@ const de_AwsSecurityFinding = (output, context) => {
5686
6691
  const de_AwsSecurityFindingFilters = (output, context) => {
5687
6692
  return (0, smithy_client_1.take)(output, {
5688
6693
  AwsAccountId: smithy_client_1._json,
6694
+ AwsAccountName: smithy_client_1._json,
5689
6695
  CompanyName: smithy_client_1._json,
5690
6696
  ComplianceAssociatedStandardsId: smithy_client_1._json,
5691
6697
  ComplianceSecurityControlId: smithy_client_1._json,
6698
+ ComplianceSecurityControlParametersName: smithy_client_1._json,
6699
+ ComplianceSecurityControlParametersValue: smithy_client_1._json,
5692
6700
  ComplianceStatus: smithy_client_1._json,
5693
6701
  Confidence: (_) => de_NumberFilterList(_, context),
5694
6702
  CreatedAt: smithy_client_1._json,
@@ -5738,6 +6746,8 @@ const de_AwsSecurityFindingFilters = (output, context) => {
5738
6746
  Region: smithy_client_1._json,
5739
6747
  RelatedFindingsId: smithy_client_1._json,
5740
6748
  RelatedFindingsProductArn: smithy_client_1._json,
6749
+ ResourceApplicationArn: smithy_client_1._json,
6750
+ ResourceApplicationName: smithy_client_1._json,
5741
6751
  ResourceAwsEc2InstanceIamInstanceProfileArn: smithy_client_1._json,
5742
6752
  ResourceAwsEc2InstanceImageId: smithy_client_1._json,
5743
6753
  ResourceAwsEc2InstanceIpV4Addresses: smithy_client_1._json,
@@ -5780,6 +6790,8 @@ const de_AwsSecurityFindingFilters = (output, context) => {
5780
6790
  UpdatedAt: smithy_client_1._json,
5781
6791
  UserDefinedFields: smithy_client_1._json,
5782
6792
  VerificationState: smithy_client_1._json,
6793
+ VulnerabilitiesExploitAvailable: smithy_client_1._json,
6794
+ VulnerabilitiesFixAvailable: smithy_client_1._json,
5783
6795
  WorkflowState: smithy_client_1._json,
5784
6796
  WorkflowStatus: smithy_client_1._json,
5785
6797
  });
@@ -5792,6 +6804,94 @@ const de_AwsSecurityFindingList = (output, context) => {
5792
6804
  });
5793
6805
  return retVal;
5794
6806
  };
6807
+ const de_ConfigurationOptions = (output, context) => {
6808
+ if (output.Boolean != null) {
6809
+ return {
6810
+ Boolean: (0, smithy_client_1._json)(output.Boolean),
6811
+ };
6812
+ }
6813
+ if (output.Double != null) {
6814
+ return {
6815
+ Double: de_DoubleConfigurationOptions(output.Double, context),
6816
+ };
6817
+ }
6818
+ if (output.Enum != null) {
6819
+ return {
6820
+ Enum: (0, smithy_client_1._json)(output.Enum),
6821
+ };
6822
+ }
6823
+ if (output.EnumList != null) {
6824
+ return {
6825
+ EnumList: (0, smithy_client_1._json)(output.EnumList),
6826
+ };
6827
+ }
6828
+ if (output.Integer != null) {
6829
+ return {
6830
+ Integer: (0, smithy_client_1._json)(output.Integer),
6831
+ };
6832
+ }
6833
+ if (output.IntegerList != null) {
6834
+ return {
6835
+ IntegerList: (0, smithy_client_1._json)(output.IntegerList),
6836
+ };
6837
+ }
6838
+ if (output.String != null) {
6839
+ return {
6840
+ String: (0, smithy_client_1._json)(output.String),
6841
+ };
6842
+ }
6843
+ if (output.StringList != null) {
6844
+ return {
6845
+ StringList: (0, smithy_client_1._json)(output.StringList),
6846
+ };
6847
+ }
6848
+ return { $unknown: Object.entries(output)[0] };
6849
+ };
6850
+ const de_ConfigurationPolicyAssociationList = (output, context) => {
6851
+ const retVal = (output || [])
6852
+ .filter((e) => e != null)
6853
+ .map((entry) => {
6854
+ return de_ConfigurationPolicyAssociationSummary(entry, context);
6855
+ });
6856
+ return retVal;
6857
+ };
6858
+ const de_ConfigurationPolicyAssociationSummary = (output, context) => {
6859
+ return (0, smithy_client_1.take)(output, {
6860
+ AssociationStatus: smithy_client_1.expectString,
6861
+ AssociationStatusMessage: smithy_client_1.expectString,
6862
+ AssociationType: smithy_client_1.expectString,
6863
+ ConfigurationPolicyId: smithy_client_1.expectString,
6864
+ TargetId: smithy_client_1.expectString,
6865
+ TargetType: smithy_client_1.expectString,
6866
+ UpdatedAt: (_) => (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseRfc3339DateTimeWithOffset)(_)),
6867
+ });
6868
+ };
6869
+ const de_ConfigurationPolicyAssociationSummaryList = (output, context) => {
6870
+ const retVal = (output || [])
6871
+ .filter((e) => e != null)
6872
+ .map((entry) => {
6873
+ return de_ConfigurationPolicyAssociationSummary(entry, context);
6874
+ });
6875
+ return retVal;
6876
+ };
6877
+ const de_ConfigurationPolicySummary = (output, context) => {
6878
+ return (0, smithy_client_1.take)(output, {
6879
+ Arn: smithy_client_1.expectString,
6880
+ Description: smithy_client_1.expectString,
6881
+ Id: smithy_client_1.expectString,
6882
+ Name: smithy_client_1.expectString,
6883
+ ServiceEnabled: smithy_client_1.expectBoolean,
6884
+ UpdatedAt: (_) => (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseRfc3339DateTimeWithOffset)(_)),
6885
+ });
6886
+ };
6887
+ const de_ConfigurationPolicySummaryList = (output, context) => {
6888
+ const retVal = (output || [])
6889
+ .filter((e) => e != null)
6890
+ .map((entry) => {
6891
+ return de_ConfigurationPolicySummary(entry, context);
6892
+ });
6893
+ return retVal;
6894
+ };
5795
6895
  const de_Cvss = (output, context) => {
5796
6896
  return (0, smithy_client_1.take)(output, {
5797
6897
  Adjustments: smithy_client_1._json,
@@ -5809,6 +6909,13 @@ const de_CvssList = (output, context) => {
5809
6909
  });
5810
6910
  return retVal;
5811
6911
  };
6912
+ const de_DoubleConfigurationOptions = (output, context) => {
6913
+ return (0, smithy_client_1.take)(output, {
6914
+ DefaultValue: smithy_client_1.limitedParseDouble,
6915
+ Max: smithy_client_1.limitedParseDouble,
6916
+ Min: smithy_client_1.limitedParseDouble,
6917
+ });
6918
+ };
5812
6919
  const de_FindingHistoryRecord = (output, context) => {
5813
6920
  return (0, smithy_client_1.take)(output, {
5814
6921
  FindingCreated: smithy_client_1.expectBoolean,
@@ -5897,7 +7004,9 @@ const de_NetworkConnectionAction = (output, context) => {
5897
7004
  const de_NumberFilter = (output, context) => {
5898
7005
  return (0, smithy_client_1.take)(output, {
5899
7006
  Eq: smithy_client_1.limitedParseDouble,
7007
+ Gt: smithy_client_1.limitedParseDouble,
5900
7008
  Gte: smithy_client_1.limitedParseDouble,
7009
+ Lt: smithy_client_1.limitedParseDouble,
5901
7010
  Lte: smithy_client_1.limitedParseDouble,
5902
7011
  });
5903
7012
  };
@@ -5909,6 +7018,77 @@ const de_NumberFilterList = (output, context) => {
5909
7018
  });
5910
7019
  return retVal;
5911
7020
  };
7021
+ const de_ParameterConfiguration = (output, context) => {
7022
+ return (0, smithy_client_1.take)(output, {
7023
+ Value: (_) => de_ParameterValue((0, core_1.awsExpectUnion)(_), context),
7024
+ ValueType: smithy_client_1.expectString,
7025
+ });
7026
+ };
7027
+ const de_ParameterDefinition = (output, context) => {
7028
+ return (0, smithy_client_1.take)(output, {
7029
+ ConfigurationOptions: (_) => de_ConfigurationOptions((0, core_1.awsExpectUnion)(_), context),
7030
+ Description: smithy_client_1.expectString,
7031
+ });
7032
+ };
7033
+ const de_ParameterDefinitions = (output, context) => {
7034
+ return Object.entries(output).reduce((acc, [key, value]) => {
7035
+ if (value === null) {
7036
+ return acc;
7037
+ }
7038
+ acc[key] = de_ParameterDefinition(value, context);
7039
+ return acc;
7040
+ }, {});
7041
+ };
7042
+ const de_Parameters = (output, context) => {
7043
+ return Object.entries(output).reduce((acc, [key, value]) => {
7044
+ if (value === null) {
7045
+ return acc;
7046
+ }
7047
+ acc[key] = de_ParameterConfiguration(value, context);
7048
+ return acc;
7049
+ }, {});
7050
+ };
7051
+ const de_ParameterValue = (output, context) => {
7052
+ if ((0, smithy_client_1.expectBoolean)(output.Boolean) !== undefined) {
7053
+ return { Boolean: (0, smithy_client_1.expectBoolean)(output.Boolean) };
7054
+ }
7055
+ if ((0, smithy_client_1.limitedParseDouble)(output.Double) !== undefined) {
7056
+ return { Double: (0, smithy_client_1.limitedParseDouble)(output.Double) };
7057
+ }
7058
+ if ((0, smithy_client_1.expectString)(output.Enum) !== undefined) {
7059
+ return { Enum: (0, smithy_client_1.expectString)(output.Enum) };
7060
+ }
7061
+ if (output.EnumList != null) {
7062
+ return {
7063
+ EnumList: (0, smithy_client_1._json)(output.EnumList),
7064
+ };
7065
+ }
7066
+ if ((0, smithy_client_1.expectInt32)(output.Integer) !== undefined) {
7067
+ return { Integer: (0, smithy_client_1.expectInt32)(output.Integer) };
7068
+ }
7069
+ if (output.IntegerList != null) {
7070
+ return {
7071
+ IntegerList: (0, smithy_client_1._json)(output.IntegerList),
7072
+ };
7073
+ }
7074
+ if ((0, smithy_client_1.expectString)(output.String) !== undefined) {
7075
+ return { String: (0, smithy_client_1.expectString)(output.String) };
7076
+ }
7077
+ if (output.StringList != null) {
7078
+ return {
7079
+ StringList: (0, smithy_client_1._json)(output.StringList),
7080
+ };
7081
+ }
7082
+ return { $unknown: Object.entries(output)[0] };
7083
+ };
7084
+ const de_Policy = (output, context) => {
7085
+ if (output.SecurityHub != null) {
7086
+ return {
7087
+ SecurityHub: de_SecurityHubPolicy(output.SecurityHub, context),
7088
+ };
7089
+ }
7090
+ return { $unknown: Object.entries(output)[0] };
7091
+ };
5912
7092
  const de_PortProbeAction = (output, context) => {
5913
7093
  return (0, smithy_client_1.take)(output, {
5914
7094
  Blocked: smithy_client_1.expectBoolean,
@@ -5932,6 +7112,8 @@ const de_PortProbeDetailList = (output, context) => {
5932
7112
  };
5933
7113
  const de_Resource = (output, context) => {
5934
7114
  return (0, smithy_client_1.take)(output, {
7115
+ ApplicationArn: smithy_client_1.expectString,
7116
+ ApplicationName: smithy_client_1.expectString,
5935
7117
  DataClassification: smithy_client_1._json,
5936
7118
  Details: (_) => de_ResourceDetails(_, context),
5937
7119
  Id: smithy_client_1.expectString,
@@ -6051,6 +7233,76 @@ const de_ResourceList = (output, context) => {
6051
7233
  });
6052
7234
  return retVal;
6053
7235
  };
7236
+ const de_SecurityControl = (output, context) => {
7237
+ return (0, smithy_client_1.take)(output, {
7238
+ Description: smithy_client_1.expectString,
7239
+ LastUpdateReason: smithy_client_1.expectString,
7240
+ Parameters: (_) => de_Parameters(_, context),
7241
+ RemediationUrl: smithy_client_1.expectString,
7242
+ SecurityControlArn: smithy_client_1.expectString,
7243
+ SecurityControlId: smithy_client_1.expectString,
7244
+ SecurityControlStatus: smithy_client_1.expectString,
7245
+ SeverityRating: smithy_client_1.expectString,
7246
+ Title: smithy_client_1.expectString,
7247
+ UpdateStatus: smithy_client_1.expectString,
7248
+ });
7249
+ };
7250
+ const de_SecurityControlCustomParameter = (output, context) => {
7251
+ return (0, smithy_client_1.take)(output, {
7252
+ Parameters: (_) => de_Parameters(_, context),
7253
+ SecurityControlId: smithy_client_1.expectString,
7254
+ });
7255
+ };
7256
+ const de_SecurityControlCustomParametersList = (output, context) => {
7257
+ const retVal = (output || [])
7258
+ .filter((e) => e != null)
7259
+ .map((entry) => {
7260
+ return de_SecurityControlCustomParameter(entry, context);
7261
+ });
7262
+ return retVal;
7263
+ };
7264
+ const de_SecurityControlDefinition = (output, context) => {
7265
+ return (0, smithy_client_1.take)(output, {
7266
+ CurrentRegionAvailability: smithy_client_1.expectString,
7267
+ CustomizableProperties: smithy_client_1._json,
7268
+ Description: smithy_client_1.expectString,
7269
+ ParameterDefinitions: (_) => de_ParameterDefinitions(_, context),
7270
+ RemediationUrl: smithy_client_1.expectString,
7271
+ SecurityControlId: smithy_client_1.expectString,
7272
+ SeverityRating: smithy_client_1.expectString,
7273
+ Title: smithy_client_1.expectString,
7274
+ });
7275
+ };
7276
+ const de_SecurityControlDefinitions = (output, context) => {
7277
+ const retVal = (output || [])
7278
+ .filter((e) => e != null)
7279
+ .map((entry) => {
7280
+ return de_SecurityControlDefinition(entry, context);
7281
+ });
7282
+ return retVal;
7283
+ };
7284
+ const de_SecurityControls = (output, context) => {
7285
+ const retVal = (output || [])
7286
+ .filter((e) => e != null)
7287
+ .map((entry) => {
7288
+ return de_SecurityControl(entry, context);
7289
+ });
7290
+ return retVal;
7291
+ };
7292
+ const de_SecurityControlsConfiguration = (output, context) => {
7293
+ return (0, smithy_client_1.take)(output, {
7294
+ DisabledSecurityControlIdentifiers: smithy_client_1._json,
7295
+ EnabledSecurityControlIdentifiers: smithy_client_1._json,
7296
+ SecurityControlCustomParameters: (_) => de_SecurityControlCustomParametersList(_, context),
7297
+ });
7298
+ };
7299
+ const de_SecurityHubPolicy = (output, context) => {
7300
+ return (0, smithy_client_1.take)(output, {
7301
+ EnabledStandardIdentifiers: smithy_client_1._json,
7302
+ SecurityControlsConfiguration: (_) => de_SecurityControlsConfiguration(_, context),
7303
+ ServiceEnabled: smithy_client_1.expectBoolean,
7304
+ });
7305
+ };
6054
7306
  const de_Severity = (output, context) => {
6055
7307
  return (0, smithy_client_1.take)(output, {
6056
7308
  Label: smithy_client_1.expectString,