@aws-sdk/client-securityhub 3.278.0 → 3.281.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 (140) hide show
  1. package/README.md +505 -17
  2. package/dist-cjs/SecurityHub.js +75 -0
  3. package/dist-cjs/commands/BatchGetSecurityControlsCommand.js +46 -0
  4. package/dist-cjs/commands/BatchGetStandardsControlAssociationsCommand.js +46 -0
  5. package/dist-cjs/commands/BatchUpdateStandardsControlAssociationsCommand.js +46 -0
  6. package/dist-cjs/commands/DeleteFindingAggregatorCommand.js +3 -3
  7. package/dist-cjs/commands/DeleteInsightCommand.js +3 -3
  8. package/dist-cjs/commands/DeleteInvitationsCommand.js +3 -3
  9. package/dist-cjs/commands/DeleteMembersCommand.js +3 -3
  10. package/dist-cjs/commands/DescribeActionTargetsCommand.js +3 -3
  11. package/dist-cjs/commands/DescribeHubCommand.js +3 -3
  12. package/dist-cjs/commands/DescribeOrganizationConfigurationCommand.js +3 -3
  13. package/dist-cjs/commands/DescribeProductsCommand.js +1 -2
  14. package/dist-cjs/commands/ListSecurityControlDefinitionsCommand.js +46 -0
  15. package/dist-cjs/commands/ListStandardsControlAssociationsCommand.js +46 -0
  16. package/dist-cjs/commands/index.js +5 -0
  17. package/dist-cjs/models/models_0.js +11 -10
  18. package/dist-cjs/models/models_1.js +81 -76
  19. package/dist-cjs/models/models_2.js +102 -9
  20. package/dist-cjs/pagination/ListSecurityControlDefinitionsPaginator.js +36 -0
  21. package/dist-cjs/pagination/ListStandardsControlAssociationsPaginator.js +36 -0
  22. package/dist-cjs/pagination/index.js +2 -0
  23. package/dist-cjs/protocols/Aws_restJson1.js +557 -3
  24. package/dist-es/SecurityHub.js +75 -0
  25. package/dist-es/commands/BatchGetSecurityControlsCommand.js +42 -0
  26. package/dist-es/commands/BatchGetStandardsControlAssociationsCommand.js +42 -0
  27. package/dist-es/commands/BatchUpdateStandardsControlAssociationsCommand.js +42 -0
  28. package/dist-es/commands/DeleteFindingAggregatorCommand.js +1 -1
  29. package/dist-es/commands/DeleteInsightCommand.js +1 -1
  30. package/dist-es/commands/DeleteInvitationsCommand.js +1 -1
  31. package/dist-es/commands/DeleteMembersCommand.js +1 -1
  32. package/dist-es/commands/DescribeActionTargetsCommand.js +1 -1
  33. package/dist-es/commands/DescribeHubCommand.js +1 -1
  34. package/dist-es/commands/DescribeOrganizationConfigurationCommand.js +1 -1
  35. package/dist-es/commands/DescribeProductsCommand.js +1 -2
  36. package/dist-es/commands/ListSecurityControlDefinitionsCommand.js +42 -0
  37. package/dist-es/commands/ListStandardsControlAssociationsCommand.js +42 -0
  38. package/dist-es/commands/index.js +5 -0
  39. package/dist-es/models/models_0.js +5 -3
  40. package/dist-es/models/models_1.js +57 -50
  41. package/dist-es/models/models_2.js +77 -7
  42. package/dist-es/pagination/ListSecurityControlDefinitionsPaginator.js +32 -0
  43. package/dist-es/pagination/ListStandardsControlAssociationsPaginator.js +32 -0
  44. package/dist-es/pagination/index.js +2 -0
  45. package/dist-es/protocols/Aws_restJson1.js +544 -0
  46. package/dist-types/SecurityHub.d.ts +59 -17
  47. package/dist-types/SecurityHubClient.d.ts +21 -19
  48. package/dist-types/commands/AcceptAdministratorInvitationCommand.d.ts +6 -0
  49. package/dist-types/commands/AcceptInvitationCommand.d.ts +6 -0
  50. package/dist-types/commands/BatchDisableStandardsCommand.d.ts +6 -0
  51. package/dist-types/commands/BatchEnableStandardsCommand.d.ts +6 -0
  52. package/dist-types/commands/BatchGetSecurityControlsCommand.d.ts +45 -0
  53. package/dist-types/commands/BatchGetStandardsControlAssociationsCommand.d.ts +45 -0
  54. package/dist-types/commands/BatchImportFindingsCommand.d.ts +6 -0
  55. package/dist-types/commands/BatchUpdateFindingsCommand.d.ts +6 -0
  56. package/dist-types/commands/BatchUpdateStandardsControlAssociationsCommand.d.ts +45 -0
  57. package/dist-types/commands/CreateActionTargetCommand.d.ts +6 -0
  58. package/dist-types/commands/CreateFindingAggregatorCommand.d.ts +6 -0
  59. package/dist-types/commands/CreateInsightCommand.d.ts +6 -0
  60. package/dist-types/commands/CreateMembersCommand.d.ts +6 -0
  61. package/dist-types/commands/DeclineInvitationsCommand.d.ts +6 -0
  62. package/dist-types/commands/DeleteActionTargetCommand.d.ts +6 -0
  63. package/dist-types/commands/DeleteFindingAggregatorCommand.d.ts +7 -1
  64. package/dist-types/commands/DeleteInsightCommand.d.ts +7 -1
  65. package/dist-types/commands/DeleteInvitationsCommand.d.ts +7 -1
  66. package/dist-types/commands/DeleteMembersCommand.d.ts +7 -1
  67. package/dist-types/commands/DescribeActionTargetsCommand.d.ts +7 -1
  68. package/dist-types/commands/DescribeHubCommand.d.ts +7 -1
  69. package/dist-types/commands/DescribeOrganizationConfigurationCommand.d.ts +7 -1
  70. package/dist-types/commands/DescribeProductsCommand.d.ts +7 -2
  71. package/dist-types/commands/DescribeStandardsCommand.d.ts +6 -0
  72. package/dist-types/commands/DescribeStandardsControlsCommand.d.ts +6 -0
  73. package/dist-types/commands/DisableImportFindingsForProductCommand.d.ts +6 -0
  74. package/dist-types/commands/DisableOrganizationAdminAccountCommand.d.ts +6 -0
  75. package/dist-types/commands/DisableSecurityHubCommand.d.ts +6 -0
  76. package/dist-types/commands/DisassociateFromAdministratorAccountCommand.d.ts +6 -0
  77. package/dist-types/commands/DisassociateFromMasterAccountCommand.d.ts +6 -0
  78. package/dist-types/commands/DisassociateMembersCommand.d.ts +6 -0
  79. package/dist-types/commands/EnableImportFindingsForProductCommand.d.ts +6 -0
  80. package/dist-types/commands/EnableOrganizationAdminAccountCommand.d.ts +6 -0
  81. package/dist-types/commands/EnableSecurityHubCommand.d.ts +6 -0
  82. package/dist-types/commands/GetAdministratorAccountCommand.d.ts +6 -0
  83. package/dist-types/commands/GetEnabledStandardsCommand.d.ts +6 -0
  84. package/dist-types/commands/GetFindingAggregatorCommand.d.ts +6 -0
  85. package/dist-types/commands/GetFindingsCommand.d.ts +6 -0
  86. package/dist-types/commands/GetInsightResultsCommand.d.ts +6 -0
  87. package/dist-types/commands/GetInsightsCommand.d.ts +6 -0
  88. package/dist-types/commands/GetInvitationsCountCommand.d.ts +6 -0
  89. package/dist-types/commands/GetMasterAccountCommand.d.ts +6 -0
  90. package/dist-types/commands/GetMembersCommand.d.ts +6 -0
  91. package/dist-types/commands/InviteMembersCommand.d.ts +6 -0
  92. package/dist-types/commands/ListEnabledProductsForImportCommand.d.ts +6 -0
  93. package/dist-types/commands/ListFindingAggregatorsCommand.d.ts +6 -0
  94. package/dist-types/commands/ListInvitationsCommand.d.ts +6 -0
  95. package/dist-types/commands/ListMembersCommand.d.ts +6 -0
  96. package/dist-types/commands/ListOrganizationAdminAccountsCommand.d.ts +6 -0
  97. package/dist-types/commands/ListSecurityControlDefinitionsCommand.d.ts +45 -0
  98. package/dist-types/commands/ListStandardsControlAssociationsCommand.d.ts +45 -0
  99. package/dist-types/commands/ListTagsForResourceCommand.d.ts +6 -0
  100. package/dist-types/commands/TagResourceCommand.d.ts +6 -0
  101. package/dist-types/commands/UntagResourceCommand.d.ts +6 -0
  102. package/dist-types/commands/UpdateActionTargetCommand.d.ts +6 -0
  103. package/dist-types/commands/UpdateFindingAggregatorCommand.d.ts +6 -0
  104. package/dist-types/commands/UpdateFindingsCommand.d.ts +6 -0
  105. package/dist-types/commands/UpdateInsightCommand.d.ts +6 -0
  106. package/dist-types/commands/UpdateOrganizationConfigurationCommand.d.ts +6 -0
  107. package/dist-types/commands/UpdateSecurityHubConfigurationCommand.d.ts +6 -0
  108. package/dist-types/commands/UpdateStandardsControlCommand.d.ts +6 -0
  109. package/dist-types/commands/index.d.ts +5 -0
  110. package/dist-types/models/models_0.d.ts +18 -25
  111. package/dist-types/models/models_1.d.ts +370 -260
  112. package/dist-types/models/models_2.d.ts +513 -8
  113. package/dist-types/pagination/ListSecurityControlDefinitionsPaginator.d.ts +4 -0
  114. package/dist-types/pagination/ListStandardsControlAssociationsPaginator.d.ts +4 -0
  115. package/dist-types/pagination/index.d.ts +2 -0
  116. package/dist-types/protocols/Aws_restJson1.d.ts +15 -0
  117. package/dist-types/ts3.4/SecurityHub.d.ts +97 -0
  118. package/dist-types/ts3.4/SecurityHubClient.d.ts +30 -0
  119. package/dist-types/ts3.4/commands/BatchGetSecurityControlsCommand.d.ts +41 -0
  120. package/dist-types/ts3.4/commands/BatchGetStandardsControlAssociationsCommand.d.ts +41 -0
  121. package/dist-types/ts3.4/commands/BatchUpdateStandardsControlAssociationsCommand.d.ts +41 -0
  122. package/dist-types/ts3.4/commands/DeleteFindingAggregatorCommand.d.ts +1 -1
  123. package/dist-types/ts3.4/commands/DeleteInsightCommand.d.ts +1 -1
  124. package/dist-types/ts3.4/commands/DeleteInvitationsCommand.d.ts +1 -1
  125. package/dist-types/ts3.4/commands/DeleteMembersCommand.d.ts +1 -1
  126. package/dist-types/ts3.4/commands/DescribeActionTargetsCommand.d.ts +1 -1
  127. package/dist-types/ts3.4/commands/DescribeHubCommand.d.ts +1 -1
  128. package/dist-types/ts3.4/commands/DescribeOrganizationConfigurationCommand.d.ts +1 -1
  129. package/dist-types/ts3.4/commands/DescribeProductsCommand.d.ts +4 -2
  130. package/dist-types/ts3.4/commands/ListSecurityControlDefinitionsCommand.d.ts +41 -0
  131. package/dist-types/ts3.4/commands/ListStandardsControlAssociationsCommand.d.ts +41 -0
  132. package/dist-types/ts3.4/commands/index.d.ts +5 -0
  133. package/dist-types/ts3.4/models/models_0.d.ts +4 -6
  134. package/dist-types/ts3.4/models/models_1.d.ts +137 -118
  135. package/dist-types/ts3.4/models/models_2.d.ts +184 -8
  136. package/dist-types/ts3.4/pagination/ListSecurityControlDefinitionsPaginator.d.ts +11 -0
  137. package/dist-types/ts3.4/pagination/ListStandardsControlAssociationsPaginator.d.ts +11 -0
  138. package/dist-types/ts3.4/pagination/index.d.ts +2 -0
  139. package/dist-types/ts3.4/protocols/Aws_restJson1.d.ts +60 -0
  140. package/package.json +6 -6
@@ -1,8 +1,8 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.serializeAws_restJson1UpdateActionTargetCommand = exports.serializeAws_restJson1UntagResourceCommand = exports.serializeAws_restJson1TagResourceCommand = exports.serializeAws_restJson1ListTagsForResourceCommand = exports.serializeAws_restJson1ListOrganizationAdminAccountsCommand = exports.serializeAws_restJson1ListMembersCommand = exports.serializeAws_restJson1ListInvitationsCommand = exports.serializeAws_restJson1ListFindingAggregatorsCommand = exports.serializeAws_restJson1ListEnabledProductsForImportCommand = exports.serializeAws_restJson1InviteMembersCommand = exports.serializeAws_restJson1GetMembersCommand = exports.serializeAws_restJson1GetMasterAccountCommand = exports.serializeAws_restJson1GetInvitationsCountCommand = exports.serializeAws_restJson1GetInsightsCommand = exports.serializeAws_restJson1GetInsightResultsCommand = exports.serializeAws_restJson1GetFindingsCommand = exports.serializeAws_restJson1GetFindingAggregatorCommand = exports.serializeAws_restJson1GetEnabledStandardsCommand = exports.serializeAws_restJson1GetAdministratorAccountCommand = exports.serializeAws_restJson1EnableSecurityHubCommand = exports.serializeAws_restJson1EnableOrganizationAdminAccountCommand = exports.serializeAws_restJson1EnableImportFindingsForProductCommand = exports.serializeAws_restJson1DisassociateMembersCommand = exports.serializeAws_restJson1DisassociateFromMasterAccountCommand = exports.serializeAws_restJson1DisassociateFromAdministratorAccountCommand = exports.serializeAws_restJson1DisableSecurityHubCommand = exports.serializeAws_restJson1DisableOrganizationAdminAccountCommand = exports.serializeAws_restJson1DisableImportFindingsForProductCommand = exports.serializeAws_restJson1DescribeStandardsControlsCommand = exports.serializeAws_restJson1DescribeStandardsCommand = exports.serializeAws_restJson1DescribeProductsCommand = exports.serializeAws_restJson1DescribeOrganizationConfigurationCommand = exports.serializeAws_restJson1DescribeHubCommand = exports.serializeAws_restJson1DescribeActionTargetsCommand = exports.serializeAws_restJson1DeleteMembersCommand = exports.serializeAws_restJson1DeleteInvitationsCommand = exports.serializeAws_restJson1DeleteInsightCommand = exports.serializeAws_restJson1DeleteFindingAggregatorCommand = exports.serializeAws_restJson1DeleteActionTargetCommand = exports.serializeAws_restJson1DeclineInvitationsCommand = exports.serializeAws_restJson1CreateMembersCommand = exports.serializeAws_restJson1CreateInsightCommand = exports.serializeAws_restJson1CreateFindingAggregatorCommand = exports.serializeAws_restJson1CreateActionTargetCommand = exports.serializeAws_restJson1BatchUpdateFindingsCommand = exports.serializeAws_restJson1BatchImportFindingsCommand = exports.serializeAws_restJson1BatchEnableStandardsCommand = exports.serializeAws_restJson1BatchDisableStandardsCommand = exports.serializeAws_restJson1AcceptInvitationCommand = exports.serializeAws_restJson1AcceptAdministratorInvitationCommand = void 0;
4
- exports.deserializeAws_restJson1ListInvitationsCommand = exports.deserializeAws_restJson1ListFindingAggregatorsCommand = exports.deserializeAws_restJson1ListEnabledProductsForImportCommand = exports.deserializeAws_restJson1InviteMembersCommand = exports.deserializeAws_restJson1GetMembersCommand = exports.deserializeAws_restJson1GetMasterAccountCommand = exports.deserializeAws_restJson1GetInvitationsCountCommand = exports.deserializeAws_restJson1GetInsightsCommand = exports.deserializeAws_restJson1GetInsightResultsCommand = exports.deserializeAws_restJson1GetFindingsCommand = exports.deserializeAws_restJson1GetFindingAggregatorCommand = exports.deserializeAws_restJson1GetEnabledStandardsCommand = exports.deserializeAws_restJson1GetAdministratorAccountCommand = exports.deserializeAws_restJson1EnableSecurityHubCommand = exports.deserializeAws_restJson1EnableOrganizationAdminAccountCommand = exports.deserializeAws_restJson1EnableImportFindingsForProductCommand = exports.deserializeAws_restJson1DisassociateMembersCommand = exports.deserializeAws_restJson1DisassociateFromMasterAccountCommand = exports.deserializeAws_restJson1DisassociateFromAdministratorAccountCommand = exports.deserializeAws_restJson1DisableSecurityHubCommand = exports.deserializeAws_restJson1DisableOrganizationAdminAccountCommand = exports.deserializeAws_restJson1DisableImportFindingsForProductCommand = exports.deserializeAws_restJson1DescribeStandardsControlsCommand = exports.deserializeAws_restJson1DescribeStandardsCommand = exports.deserializeAws_restJson1DescribeProductsCommand = exports.deserializeAws_restJson1DescribeOrganizationConfigurationCommand = exports.deserializeAws_restJson1DescribeHubCommand = exports.deserializeAws_restJson1DescribeActionTargetsCommand = exports.deserializeAws_restJson1DeleteMembersCommand = exports.deserializeAws_restJson1DeleteInvitationsCommand = exports.deserializeAws_restJson1DeleteInsightCommand = exports.deserializeAws_restJson1DeleteFindingAggregatorCommand = exports.deserializeAws_restJson1DeleteActionTargetCommand = exports.deserializeAws_restJson1DeclineInvitationsCommand = exports.deserializeAws_restJson1CreateMembersCommand = exports.deserializeAws_restJson1CreateInsightCommand = exports.deserializeAws_restJson1CreateFindingAggregatorCommand = exports.deserializeAws_restJson1CreateActionTargetCommand = exports.deserializeAws_restJson1BatchUpdateFindingsCommand = exports.deserializeAws_restJson1BatchImportFindingsCommand = exports.deserializeAws_restJson1BatchEnableStandardsCommand = exports.deserializeAws_restJson1BatchDisableStandardsCommand = exports.deserializeAws_restJson1AcceptInvitationCommand = exports.deserializeAws_restJson1AcceptAdministratorInvitationCommand = exports.serializeAws_restJson1UpdateStandardsControlCommand = exports.serializeAws_restJson1UpdateSecurityHubConfigurationCommand = exports.serializeAws_restJson1UpdateOrganizationConfigurationCommand = exports.serializeAws_restJson1UpdateInsightCommand = exports.serializeAws_restJson1UpdateFindingsCommand = exports.serializeAws_restJson1UpdateFindingAggregatorCommand = void 0;
5
- exports.deserializeAws_restJson1UpdateStandardsControlCommand = exports.deserializeAws_restJson1UpdateSecurityHubConfigurationCommand = exports.deserializeAws_restJson1UpdateOrganizationConfigurationCommand = exports.deserializeAws_restJson1UpdateInsightCommand = exports.deserializeAws_restJson1UpdateFindingsCommand = exports.deserializeAws_restJson1UpdateFindingAggregatorCommand = exports.deserializeAws_restJson1UpdateActionTargetCommand = exports.deserializeAws_restJson1UntagResourceCommand = exports.deserializeAws_restJson1TagResourceCommand = exports.deserializeAws_restJson1ListTagsForResourceCommand = exports.deserializeAws_restJson1ListOrganizationAdminAccountsCommand = exports.deserializeAws_restJson1ListMembersCommand = void 0;
3
+ exports.serializeAws_restJson1ListSecurityControlDefinitionsCommand = exports.serializeAws_restJson1ListOrganizationAdminAccountsCommand = exports.serializeAws_restJson1ListMembersCommand = exports.serializeAws_restJson1ListInvitationsCommand = exports.serializeAws_restJson1ListFindingAggregatorsCommand = exports.serializeAws_restJson1ListEnabledProductsForImportCommand = exports.serializeAws_restJson1InviteMembersCommand = exports.serializeAws_restJson1GetMembersCommand = exports.serializeAws_restJson1GetMasterAccountCommand = exports.serializeAws_restJson1GetInvitationsCountCommand = exports.serializeAws_restJson1GetInsightsCommand = exports.serializeAws_restJson1GetInsightResultsCommand = exports.serializeAws_restJson1GetFindingsCommand = exports.serializeAws_restJson1GetFindingAggregatorCommand = exports.serializeAws_restJson1GetEnabledStandardsCommand = exports.serializeAws_restJson1GetAdministratorAccountCommand = exports.serializeAws_restJson1EnableSecurityHubCommand = exports.serializeAws_restJson1EnableOrganizationAdminAccountCommand = exports.serializeAws_restJson1EnableImportFindingsForProductCommand = exports.serializeAws_restJson1DisassociateMembersCommand = exports.serializeAws_restJson1DisassociateFromMasterAccountCommand = exports.serializeAws_restJson1DisassociateFromAdministratorAccountCommand = exports.serializeAws_restJson1DisableSecurityHubCommand = exports.serializeAws_restJson1DisableOrganizationAdminAccountCommand = exports.serializeAws_restJson1DisableImportFindingsForProductCommand = exports.serializeAws_restJson1DescribeStandardsControlsCommand = exports.serializeAws_restJson1DescribeStandardsCommand = exports.serializeAws_restJson1DescribeProductsCommand = exports.serializeAws_restJson1DescribeOrganizationConfigurationCommand = exports.serializeAws_restJson1DescribeHubCommand = exports.serializeAws_restJson1DescribeActionTargetsCommand = exports.serializeAws_restJson1DeleteMembersCommand = exports.serializeAws_restJson1DeleteInvitationsCommand = exports.serializeAws_restJson1DeleteInsightCommand = exports.serializeAws_restJson1DeleteFindingAggregatorCommand = exports.serializeAws_restJson1DeleteActionTargetCommand = exports.serializeAws_restJson1DeclineInvitationsCommand = exports.serializeAws_restJson1CreateMembersCommand = exports.serializeAws_restJson1CreateInsightCommand = exports.serializeAws_restJson1CreateFindingAggregatorCommand = exports.serializeAws_restJson1CreateActionTargetCommand = exports.serializeAws_restJson1BatchUpdateStandardsControlAssociationsCommand = exports.serializeAws_restJson1BatchUpdateFindingsCommand = exports.serializeAws_restJson1BatchImportFindingsCommand = exports.serializeAws_restJson1BatchGetStandardsControlAssociationsCommand = exports.serializeAws_restJson1BatchGetSecurityControlsCommand = exports.serializeAws_restJson1BatchEnableStandardsCommand = exports.serializeAws_restJson1BatchDisableStandardsCommand = exports.serializeAws_restJson1AcceptInvitationCommand = exports.serializeAws_restJson1AcceptAdministratorInvitationCommand = void 0;
4
+ exports.deserializeAws_restJson1GetInsightResultsCommand = exports.deserializeAws_restJson1GetFindingsCommand = exports.deserializeAws_restJson1GetFindingAggregatorCommand = exports.deserializeAws_restJson1GetEnabledStandardsCommand = exports.deserializeAws_restJson1GetAdministratorAccountCommand = exports.deserializeAws_restJson1EnableSecurityHubCommand = exports.deserializeAws_restJson1EnableOrganizationAdminAccountCommand = exports.deserializeAws_restJson1EnableImportFindingsForProductCommand = exports.deserializeAws_restJson1DisassociateMembersCommand = exports.deserializeAws_restJson1DisassociateFromMasterAccountCommand = exports.deserializeAws_restJson1DisassociateFromAdministratorAccountCommand = exports.deserializeAws_restJson1DisableSecurityHubCommand = exports.deserializeAws_restJson1DisableOrganizationAdminAccountCommand = exports.deserializeAws_restJson1DisableImportFindingsForProductCommand = exports.deserializeAws_restJson1DescribeStandardsControlsCommand = exports.deserializeAws_restJson1DescribeStandardsCommand = exports.deserializeAws_restJson1DescribeProductsCommand = exports.deserializeAws_restJson1DescribeOrganizationConfigurationCommand = exports.deserializeAws_restJson1DescribeHubCommand = exports.deserializeAws_restJson1DescribeActionTargetsCommand = exports.deserializeAws_restJson1DeleteMembersCommand = exports.deserializeAws_restJson1DeleteInvitationsCommand = exports.deserializeAws_restJson1DeleteInsightCommand = exports.deserializeAws_restJson1DeleteFindingAggregatorCommand = exports.deserializeAws_restJson1DeleteActionTargetCommand = exports.deserializeAws_restJson1DeclineInvitationsCommand = exports.deserializeAws_restJson1CreateMembersCommand = exports.deserializeAws_restJson1CreateInsightCommand = exports.deserializeAws_restJson1CreateFindingAggregatorCommand = exports.deserializeAws_restJson1CreateActionTargetCommand = exports.deserializeAws_restJson1BatchUpdateStandardsControlAssociationsCommand = exports.deserializeAws_restJson1BatchUpdateFindingsCommand = exports.deserializeAws_restJson1BatchImportFindingsCommand = exports.deserializeAws_restJson1BatchGetStandardsControlAssociationsCommand = exports.deserializeAws_restJson1BatchGetSecurityControlsCommand = exports.deserializeAws_restJson1BatchEnableStandardsCommand = exports.deserializeAws_restJson1BatchDisableStandardsCommand = exports.deserializeAws_restJson1AcceptInvitationCommand = exports.deserializeAws_restJson1AcceptAdministratorInvitationCommand = exports.serializeAws_restJson1UpdateStandardsControlCommand = exports.serializeAws_restJson1UpdateSecurityHubConfigurationCommand = exports.serializeAws_restJson1UpdateOrganizationConfigurationCommand = exports.serializeAws_restJson1UpdateInsightCommand = exports.serializeAws_restJson1UpdateFindingsCommand = exports.serializeAws_restJson1UpdateFindingAggregatorCommand = exports.serializeAws_restJson1UpdateActionTargetCommand = exports.serializeAws_restJson1UntagResourceCommand = exports.serializeAws_restJson1TagResourceCommand = exports.serializeAws_restJson1ListTagsForResourceCommand = exports.serializeAws_restJson1ListStandardsControlAssociationsCommand = void 0;
5
+ exports.deserializeAws_restJson1UpdateStandardsControlCommand = exports.deserializeAws_restJson1UpdateSecurityHubConfigurationCommand = exports.deserializeAws_restJson1UpdateOrganizationConfigurationCommand = exports.deserializeAws_restJson1UpdateInsightCommand = exports.deserializeAws_restJson1UpdateFindingsCommand = exports.deserializeAws_restJson1UpdateFindingAggregatorCommand = exports.deserializeAws_restJson1UpdateActionTargetCommand = exports.deserializeAws_restJson1UntagResourceCommand = exports.deserializeAws_restJson1TagResourceCommand = exports.deserializeAws_restJson1ListTagsForResourceCommand = exports.deserializeAws_restJson1ListStandardsControlAssociationsCommand = exports.deserializeAws_restJson1ListSecurityControlDefinitionsCommand = exports.deserializeAws_restJson1ListOrganizationAdminAccountsCommand = exports.deserializeAws_restJson1ListMembersCommand = exports.deserializeAws_restJson1ListInvitationsCommand = exports.deserializeAws_restJson1ListFindingAggregatorsCommand = exports.deserializeAws_restJson1ListEnabledProductsForImportCommand = exports.deserializeAws_restJson1InviteMembersCommand = exports.deserializeAws_restJson1GetMembersCommand = exports.deserializeAws_restJson1GetMasterAccountCommand = exports.deserializeAws_restJson1GetInvitationsCountCommand = exports.deserializeAws_restJson1GetInsightsCommand = void 0;
6
6
  const protocol_http_1 = require("@aws-sdk/protocol-http");
7
7
  const smithy_client_1 = require("@aws-sdk/smithy-client");
8
8
  const models_0_1 = require("../models/models_0");
@@ -98,6 +98,52 @@ const serializeAws_restJson1BatchEnableStandardsCommand = async (input, context)
98
98
  });
99
99
  };
100
100
  exports.serializeAws_restJson1BatchEnableStandardsCommand = serializeAws_restJson1BatchEnableStandardsCommand;
101
+ const serializeAws_restJson1BatchGetSecurityControlsCommand = async (input, context) => {
102
+ const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
103
+ const headers = {
104
+ "content-type": "application/json",
105
+ };
106
+ const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/securityControls/batchGet";
107
+ let body;
108
+ body = JSON.stringify({
109
+ ...(input.SecurityControlIds != null && {
110
+ SecurityControlIds: serializeAws_restJson1StringList(input.SecurityControlIds, context),
111
+ }),
112
+ });
113
+ return new protocol_http_1.HttpRequest({
114
+ protocol,
115
+ hostname,
116
+ port,
117
+ method: "POST",
118
+ headers,
119
+ path: resolvedPath,
120
+ body,
121
+ });
122
+ };
123
+ exports.serializeAws_restJson1BatchGetSecurityControlsCommand = serializeAws_restJson1BatchGetSecurityControlsCommand;
124
+ const serializeAws_restJson1BatchGetStandardsControlAssociationsCommand = async (input, context) => {
125
+ const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
126
+ const headers = {
127
+ "content-type": "application/json",
128
+ };
129
+ const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/associations/batchGet";
130
+ let body;
131
+ body = JSON.stringify({
132
+ ...(input.StandardsControlAssociationIds != null && {
133
+ StandardsControlAssociationIds: serializeAws_restJson1StandardsControlAssociationIds(input.StandardsControlAssociationIds, context),
134
+ }),
135
+ });
136
+ return new protocol_http_1.HttpRequest({
137
+ protocol,
138
+ hostname,
139
+ port,
140
+ method: "POST",
141
+ headers,
142
+ path: resolvedPath,
143
+ body,
144
+ });
145
+ };
146
+ exports.serializeAws_restJson1BatchGetStandardsControlAssociationsCommand = serializeAws_restJson1BatchGetStandardsControlAssociationsCommand;
101
147
  const serializeAws_restJson1BatchImportFindingsCommand = async (input, context) => {
102
148
  const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
103
149
  const headers = {
@@ -157,6 +203,29 @@ const serializeAws_restJson1BatchUpdateFindingsCommand = async (input, context)
157
203
  });
158
204
  };
159
205
  exports.serializeAws_restJson1BatchUpdateFindingsCommand = serializeAws_restJson1BatchUpdateFindingsCommand;
206
+ const serializeAws_restJson1BatchUpdateStandardsControlAssociationsCommand = async (input, context) => {
207
+ const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
208
+ const headers = {
209
+ "content-type": "application/json",
210
+ };
211
+ const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/associations";
212
+ let body;
213
+ body = JSON.stringify({
214
+ ...(input.StandardsControlAssociationUpdates != null && {
215
+ StandardsControlAssociationUpdates: serializeAws_restJson1StandardsControlAssociationUpdates(input.StandardsControlAssociationUpdates, context),
216
+ }),
217
+ });
218
+ return new protocol_http_1.HttpRequest({
219
+ protocol,
220
+ hostname,
221
+ port,
222
+ method: "PATCH",
223
+ headers,
224
+ path: resolvedPath,
225
+ body,
226
+ });
227
+ };
228
+ exports.serializeAws_restJson1BatchUpdateStandardsControlAssociationsCommand = serializeAws_restJson1BatchUpdateStandardsControlAssociationsCommand;
160
229
  const serializeAws_restJson1CreateActionTargetCommand = async (input, context) => {
161
230
  const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
162
231
  const headers = {
@@ -660,6 +729,7 @@ const serializeAws_restJson1EnableSecurityHubCommand = async (input, context) =>
660
729
  const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/accounts";
661
730
  let body;
662
731
  body = JSON.stringify({
732
+ ...(input.ControlFindingGenerator != null && { ControlFindingGenerator: input.ControlFindingGenerator }),
663
733
  ...(input.EnableDefaultStandards != null && { EnableDefaultStandards: input.EnableDefaultStandards }),
664
734
  ...(input.Tags != null && { Tags: serializeAws_restJson1TagMap(input.Tags, context) }),
665
735
  });
@@ -988,6 +1058,50 @@ const serializeAws_restJson1ListOrganizationAdminAccountsCommand = async (input,
988
1058
  });
989
1059
  };
990
1060
  exports.serializeAws_restJson1ListOrganizationAdminAccountsCommand = serializeAws_restJson1ListOrganizationAdminAccountsCommand;
1061
+ const serializeAws_restJson1ListSecurityControlDefinitionsCommand = async (input, context) => {
1062
+ const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
1063
+ const headers = {};
1064
+ const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/securityControls/definitions";
1065
+ const query = map({
1066
+ StandardsArn: [, input.StandardsArn],
1067
+ NextToken: [, input.NextToken],
1068
+ MaxResults: [() => input.MaxResults !== void 0, () => input.MaxResults.toString()],
1069
+ });
1070
+ let body;
1071
+ return new protocol_http_1.HttpRequest({
1072
+ protocol,
1073
+ hostname,
1074
+ port,
1075
+ method: "GET",
1076
+ headers,
1077
+ path: resolvedPath,
1078
+ query,
1079
+ body,
1080
+ });
1081
+ };
1082
+ exports.serializeAws_restJson1ListSecurityControlDefinitionsCommand = serializeAws_restJson1ListSecurityControlDefinitionsCommand;
1083
+ const serializeAws_restJson1ListStandardsControlAssociationsCommand = async (input, context) => {
1084
+ const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
1085
+ const headers = {};
1086
+ const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/associations";
1087
+ const query = map({
1088
+ SecurityControlId: [, (0, smithy_client_1.expectNonNull)(input.SecurityControlId, `SecurityControlId`)],
1089
+ NextToken: [, input.NextToken],
1090
+ MaxResults: [() => input.MaxResults !== void 0, () => input.MaxResults.toString()],
1091
+ });
1092
+ let body;
1093
+ return new protocol_http_1.HttpRequest({
1094
+ protocol,
1095
+ hostname,
1096
+ port,
1097
+ method: "GET",
1098
+ headers,
1099
+ path: resolvedPath,
1100
+ query,
1101
+ body,
1102
+ });
1103
+ };
1104
+ exports.serializeAws_restJson1ListStandardsControlAssociationsCommand = serializeAws_restJson1ListStandardsControlAssociationsCommand;
991
1105
  const serializeAws_restJson1ListTagsForResourceCommand = async (input, context) => {
992
1106
  const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
993
1107
  const headers = {};
@@ -1175,6 +1289,7 @@ const serializeAws_restJson1UpdateSecurityHubConfigurationCommand = async (input
1175
1289
  let body;
1176
1290
  body = JSON.stringify({
1177
1291
  ...(input.AutoEnableControls != null && { AutoEnableControls: input.AutoEnableControls }),
1292
+ ...(input.ControlFindingGenerator != null && { ControlFindingGenerator: input.ControlFindingGenerator }),
1178
1293
  });
1179
1294
  return new protocol_http_1.HttpRequest({
1180
1295
  protocol,
@@ -1382,6 +1497,98 @@ const deserializeAws_restJson1BatchEnableStandardsCommandError = async (output,
1382
1497
  });
1383
1498
  }
1384
1499
  };
1500
+ const deserializeAws_restJson1BatchGetSecurityControlsCommand = async (output, context) => {
1501
+ if (output.statusCode !== 200 && output.statusCode >= 300) {
1502
+ return deserializeAws_restJson1BatchGetSecurityControlsCommandError(output, context);
1503
+ }
1504
+ const contents = map({
1505
+ $metadata: deserializeMetadata(output),
1506
+ });
1507
+ const data = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.expectObject)(await parseBody(output.body, context)), "body");
1508
+ if (data.SecurityControls != null) {
1509
+ contents.SecurityControls = deserializeAws_restJson1SecurityControls(data.SecurityControls, context);
1510
+ }
1511
+ if (data.UnprocessedIds != null) {
1512
+ contents.UnprocessedIds = deserializeAws_restJson1UnprocessedSecurityControls(data.UnprocessedIds, context);
1513
+ }
1514
+ return contents;
1515
+ };
1516
+ exports.deserializeAws_restJson1BatchGetSecurityControlsCommand = deserializeAws_restJson1BatchGetSecurityControlsCommand;
1517
+ const deserializeAws_restJson1BatchGetSecurityControlsCommandError = async (output, context) => {
1518
+ const parsedOutput = {
1519
+ ...output,
1520
+ body: await parseErrorBody(output.body, context),
1521
+ };
1522
+ const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
1523
+ switch (errorCode) {
1524
+ case "InternalException":
1525
+ case "com.amazonaws.securityhub#InternalException":
1526
+ throw await deserializeAws_restJson1InternalExceptionResponse(parsedOutput, context);
1527
+ case "InvalidAccessException":
1528
+ case "com.amazonaws.securityhub#InvalidAccessException":
1529
+ throw await deserializeAws_restJson1InvalidAccessExceptionResponse(parsedOutput, context);
1530
+ case "InvalidInputException":
1531
+ case "com.amazonaws.securityhub#InvalidInputException":
1532
+ throw await deserializeAws_restJson1InvalidInputExceptionResponse(parsedOutput, context);
1533
+ case "LimitExceededException":
1534
+ case "com.amazonaws.securityhub#LimitExceededException":
1535
+ throw await deserializeAws_restJson1LimitExceededExceptionResponse(parsedOutput, context);
1536
+ default:
1537
+ const parsedBody = parsedOutput.body;
1538
+ (0, smithy_client_1.throwDefaultError)({
1539
+ output,
1540
+ parsedBody,
1541
+ exceptionCtor: SecurityHubServiceException_1.SecurityHubServiceException,
1542
+ errorCode,
1543
+ });
1544
+ }
1545
+ };
1546
+ const deserializeAws_restJson1BatchGetStandardsControlAssociationsCommand = async (output, context) => {
1547
+ if (output.statusCode !== 200 && output.statusCode >= 300) {
1548
+ return deserializeAws_restJson1BatchGetStandardsControlAssociationsCommandError(output, context);
1549
+ }
1550
+ const contents = map({
1551
+ $metadata: deserializeMetadata(output),
1552
+ });
1553
+ const data = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.expectObject)(await parseBody(output.body, context)), "body");
1554
+ if (data.StandardsControlAssociationDetails != null) {
1555
+ contents.StandardsControlAssociationDetails = deserializeAws_restJson1StandardsControlAssociationDetails(data.StandardsControlAssociationDetails, context);
1556
+ }
1557
+ if (data.UnprocessedAssociations != null) {
1558
+ contents.UnprocessedAssociations = deserializeAws_restJson1UnprocessedStandardsControlAssociations(data.UnprocessedAssociations, context);
1559
+ }
1560
+ return contents;
1561
+ };
1562
+ exports.deserializeAws_restJson1BatchGetStandardsControlAssociationsCommand = deserializeAws_restJson1BatchGetStandardsControlAssociationsCommand;
1563
+ const deserializeAws_restJson1BatchGetStandardsControlAssociationsCommandError = async (output, context) => {
1564
+ const parsedOutput = {
1565
+ ...output,
1566
+ body: await parseErrorBody(output.body, context),
1567
+ };
1568
+ const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
1569
+ switch (errorCode) {
1570
+ case "InternalException":
1571
+ case "com.amazonaws.securityhub#InternalException":
1572
+ throw await deserializeAws_restJson1InternalExceptionResponse(parsedOutput, context);
1573
+ case "InvalidAccessException":
1574
+ case "com.amazonaws.securityhub#InvalidAccessException":
1575
+ throw await deserializeAws_restJson1InvalidAccessExceptionResponse(parsedOutput, context);
1576
+ case "InvalidInputException":
1577
+ case "com.amazonaws.securityhub#InvalidInputException":
1578
+ throw await deserializeAws_restJson1InvalidInputExceptionResponse(parsedOutput, context);
1579
+ case "LimitExceededException":
1580
+ case "com.amazonaws.securityhub#LimitExceededException":
1581
+ throw await deserializeAws_restJson1LimitExceededExceptionResponse(parsedOutput, context);
1582
+ default:
1583
+ const parsedBody = parsedOutput.body;
1584
+ (0, smithy_client_1.throwDefaultError)({
1585
+ output,
1586
+ parsedBody,
1587
+ exceptionCtor: SecurityHubServiceException_1.SecurityHubServiceException,
1588
+ errorCode,
1589
+ });
1590
+ }
1591
+ };
1385
1592
  const deserializeAws_restJson1BatchImportFindingsCommand = async (output, context) => {
1386
1593
  if (output.statusCode !== 200 && output.statusCode >= 300) {
1387
1594
  return deserializeAws_restJson1BatchImportFindingsCommandError(output, context);
@@ -1477,6 +1684,49 @@ const deserializeAws_restJson1BatchUpdateFindingsCommandError = async (output, c
1477
1684
  });
1478
1685
  }
1479
1686
  };
1687
+ const deserializeAws_restJson1BatchUpdateStandardsControlAssociationsCommand = async (output, context) => {
1688
+ if (output.statusCode !== 200 && output.statusCode >= 300) {
1689
+ return deserializeAws_restJson1BatchUpdateStandardsControlAssociationsCommandError(output, context);
1690
+ }
1691
+ const contents = map({
1692
+ $metadata: deserializeMetadata(output),
1693
+ });
1694
+ const data = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.expectObject)(await parseBody(output.body, context)), "body");
1695
+ if (data.UnprocessedAssociationUpdates != null) {
1696
+ contents.UnprocessedAssociationUpdates = deserializeAws_restJson1UnprocessedStandardsControlAssociationUpdates(data.UnprocessedAssociationUpdates, context);
1697
+ }
1698
+ return contents;
1699
+ };
1700
+ exports.deserializeAws_restJson1BatchUpdateStandardsControlAssociationsCommand = deserializeAws_restJson1BatchUpdateStandardsControlAssociationsCommand;
1701
+ const deserializeAws_restJson1BatchUpdateStandardsControlAssociationsCommandError = async (output, context) => {
1702
+ const parsedOutput = {
1703
+ ...output,
1704
+ body: await parseErrorBody(output.body, context),
1705
+ };
1706
+ const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
1707
+ switch (errorCode) {
1708
+ case "InternalException":
1709
+ case "com.amazonaws.securityhub#InternalException":
1710
+ throw await deserializeAws_restJson1InternalExceptionResponse(parsedOutput, context);
1711
+ case "InvalidAccessException":
1712
+ case "com.amazonaws.securityhub#InvalidAccessException":
1713
+ throw await deserializeAws_restJson1InvalidAccessExceptionResponse(parsedOutput, context);
1714
+ case "InvalidInputException":
1715
+ case "com.amazonaws.securityhub#InvalidInputException":
1716
+ throw await deserializeAws_restJson1InvalidInputExceptionResponse(parsedOutput, context);
1717
+ case "LimitExceededException":
1718
+ case "com.amazonaws.securityhub#LimitExceededException":
1719
+ throw await deserializeAws_restJson1LimitExceededExceptionResponse(parsedOutput, context);
1720
+ default:
1721
+ const parsedBody = parsedOutput.body;
1722
+ (0, smithy_client_1.throwDefaultError)({
1723
+ output,
1724
+ parsedBody,
1725
+ exceptionCtor: SecurityHubServiceException_1.SecurityHubServiceException,
1726
+ errorCode,
1727
+ });
1728
+ }
1729
+ };
1480
1730
  const deserializeAws_restJson1CreateActionTargetCommand = async (output, context) => {
1481
1731
  if (output.statusCode !== 200 && output.statusCode >= 300) {
1482
1732
  return deserializeAws_restJson1CreateActionTargetCommandError(output, context);
@@ -1997,6 +2247,9 @@ const deserializeAws_restJson1DescribeHubCommand = async (output, context) => {
1997
2247
  if (data.AutoEnableControls != null) {
1998
2248
  contents.AutoEnableControls = (0, smithy_client_1.expectBoolean)(data.AutoEnableControls);
1999
2249
  }
2250
+ if (data.ControlFindingGenerator != null) {
2251
+ contents.ControlFindingGenerator = (0, smithy_client_1.expectString)(data.ControlFindingGenerator);
2252
+ }
2000
2253
  if (data.HubArn != null) {
2001
2254
  contents.HubArn = (0, smithy_client_1.expectString)(data.HubArn);
2002
2255
  }
@@ -3308,6 +3561,98 @@ const deserializeAws_restJson1ListOrganizationAdminAccountsCommandError = async
3308
3561
  });
3309
3562
  }
3310
3563
  };
3564
+ const deserializeAws_restJson1ListSecurityControlDefinitionsCommand = async (output, context) => {
3565
+ if (output.statusCode !== 200 && output.statusCode >= 300) {
3566
+ return deserializeAws_restJson1ListSecurityControlDefinitionsCommandError(output, context);
3567
+ }
3568
+ const contents = map({
3569
+ $metadata: deserializeMetadata(output),
3570
+ });
3571
+ const data = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.expectObject)(await parseBody(output.body, context)), "body");
3572
+ if (data.NextToken != null) {
3573
+ contents.NextToken = (0, smithy_client_1.expectString)(data.NextToken);
3574
+ }
3575
+ if (data.SecurityControlDefinitions != null) {
3576
+ contents.SecurityControlDefinitions = deserializeAws_restJson1SecurityControlDefinitions(data.SecurityControlDefinitions, context);
3577
+ }
3578
+ return contents;
3579
+ };
3580
+ exports.deserializeAws_restJson1ListSecurityControlDefinitionsCommand = deserializeAws_restJson1ListSecurityControlDefinitionsCommand;
3581
+ const deserializeAws_restJson1ListSecurityControlDefinitionsCommandError = async (output, context) => {
3582
+ const parsedOutput = {
3583
+ ...output,
3584
+ body: await parseErrorBody(output.body, context),
3585
+ };
3586
+ const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
3587
+ switch (errorCode) {
3588
+ case "InternalException":
3589
+ case "com.amazonaws.securityhub#InternalException":
3590
+ throw await deserializeAws_restJson1InternalExceptionResponse(parsedOutput, context);
3591
+ case "InvalidAccessException":
3592
+ case "com.amazonaws.securityhub#InvalidAccessException":
3593
+ throw await deserializeAws_restJson1InvalidAccessExceptionResponse(parsedOutput, context);
3594
+ case "InvalidInputException":
3595
+ case "com.amazonaws.securityhub#InvalidInputException":
3596
+ throw await deserializeAws_restJson1InvalidInputExceptionResponse(parsedOutput, context);
3597
+ case "LimitExceededException":
3598
+ case "com.amazonaws.securityhub#LimitExceededException":
3599
+ throw await deserializeAws_restJson1LimitExceededExceptionResponse(parsedOutput, context);
3600
+ default:
3601
+ const parsedBody = parsedOutput.body;
3602
+ (0, smithy_client_1.throwDefaultError)({
3603
+ output,
3604
+ parsedBody,
3605
+ exceptionCtor: SecurityHubServiceException_1.SecurityHubServiceException,
3606
+ errorCode,
3607
+ });
3608
+ }
3609
+ };
3610
+ const deserializeAws_restJson1ListStandardsControlAssociationsCommand = async (output, context) => {
3611
+ if (output.statusCode !== 200 && output.statusCode >= 300) {
3612
+ return deserializeAws_restJson1ListStandardsControlAssociationsCommandError(output, context);
3613
+ }
3614
+ const contents = map({
3615
+ $metadata: deserializeMetadata(output),
3616
+ });
3617
+ const data = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.expectObject)(await parseBody(output.body, context)), "body");
3618
+ if (data.NextToken != null) {
3619
+ contents.NextToken = (0, smithy_client_1.expectString)(data.NextToken);
3620
+ }
3621
+ if (data.StandardsControlAssociationSummaries != null) {
3622
+ contents.StandardsControlAssociationSummaries = deserializeAws_restJson1StandardsControlAssociationSummaries(data.StandardsControlAssociationSummaries, context);
3623
+ }
3624
+ return contents;
3625
+ };
3626
+ exports.deserializeAws_restJson1ListStandardsControlAssociationsCommand = deserializeAws_restJson1ListStandardsControlAssociationsCommand;
3627
+ const deserializeAws_restJson1ListStandardsControlAssociationsCommandError = async (output, context) => {
3628
+ const parsedOutput = {
3629
+ ...output,
3630
+ body: await parseErrorBody(output.body, context),
3631
+ };
3632
+ const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
3633
+ switch (errorCode) {
3634
+ case "InternalException":
3635
+ case "com.amazonaws.securityhub#InternalException":
3636
+ throw await deserializeAws_restJson1InternalExceptionResponse(parsedOutput, context);
3637
+ case "InvalidAccessException":
3638
+ case "com.amazonaws.securityhub#InvalidAccessException":
3639
+ throw await deserializeAws_restJson1InvalidAccessExceptionResponse(parsedOutput, context);
3640
+ case "InvalidInputException":
3641
+ case "com.amazonaws.securityhub#InvalidInputException":
3642
+ throw await deserializeAws_restJson1InvalidInputExceptionResponse(parsedOutput, context);
3643
+ case "LimitExceededException":
3644
+ case "com.amazonaws.securityhub#LimitExceededException":
3645
+ throw await deserializeAws_restJson1LimitExceededExceptionResponse(parsedOutput, context);
3646
+ default:
3647
+ const parsedBody = parsedOutput.body;
3648
+ (0, smithy_client_1.throwDefaultError)({
3649
+ output,
3650
+ parsedBody,
3651
+ exceptionCtor: SecurityHubServiceException_1.SecurityHubServiceException,
3652
+ errorCode,
3653
+ });
3654
+ }
3655
+ };
3311
3656
  const deserializeAws_restJson1ListTagsForResourceCommand = async (output, context) => {
3312
3657
  if (output.statusCode !== 200 && output.statusCode >= 300) {
3313
3658
  return deserializeAws_restJson1ListTagsForResourceCommandError(output, context);
@@ -11118,6 +11463,34 @@ const serializeAws_restJson1SortCriterion = (input, context) => {
11118
11463
  ...(input.SortOrder != null && { SortOrder: input.SortOrder }),
11119
11464
  };
11120
11465
  };
11466
+ const serializeAws_restJson1StandardsControlAssociationId = (input, context) => {
11467
+ return {
11468
+ ...(input.SecurityControlId != null && { SecurityControlId: input.SecurityControlId }),
11469
+ ...(input.StandardsArn != null && { StandardsArn: input.StandardsArn }),
11470
+ };
11471
+ };
11472
+ const serializeAws_restJson1StandardsControlAssociationIds = (input, context) => {
11473
+ return input
11474
+ .filter((e) => e != null)
11475
+ .map((entry) => {
11476
+ return serializeAws_restJson1StandardsControlAssociationId(entry, context);
11477
+ });
11478
+ };
11479
+ const serializeAws_restJson1StandardsControlAssociationUpdate = (input, context) => {
11480
+ return {
11481
+ ...(input.AssociationStatus != null && { AssociationStatus: input.AssociationStatus }),
11482
+ ...(input.SecurityControlId != null && { SecurityControlId: input.SecurityControlId }),
11483
+ ...(input.StandardsArn != null && { StandardsArn: input.StandardsArn }),
11484
+ ...(input.UpdatedReason != null && { UpdatedReason: input.UpdatedReason }),
11485
+ };
11486
+ };
11487
+ const serializeAws_restJson1StandardsControlAssociationUpdates = (input, context) => {
11488
+ return input
11489
+ .filter((e) => e != null)
11490
+ .map((entry) => {
11491
+ return serializeAws_restJson1StandardsControlAssociationUpdate(entry, context);
11492
+ });
11493
+ };
11121
11494
  const serializeAws_restJson1StandardsInputParameterMap = (input, context) => {
11122
11495
  return Object.entries(input).reduce((acc, [key, value]) => {
11123
11496
  if (value === null) {
@@ -19277,6 +19650,49 @@ const deserializeAws_restJson1RuleGroupVariablesPortSetsDetails = (output, conte
19277
19650
  Definition: output.Definition != null ? deserializeAws_restJson1NonEmptyStringList(output.Definition, context) : undefined,
19278
19651
  };
19279
19652
  };
19653
+ const deserializeAws_restJson1SecurityControl = (output, context) => {
19654
+ return {
19655
+ Description: (0, smithy_client_1.expectString)(output.Description),
19656
+ RemediationUrl: (0, smithy_client_1.expectString)(output.RemediationUrl),
19657
+ SecurityControlArn: (0, smithy_client_1.expectString)(output.SecurityControlArn),
19658
+ SecurityControlId: (0, smithy_client_1.expectString)(output.SecurityControlId),
19659
+ SecurityControlStatus: (0, smithy_client_1.expectString)(output.SecurityControlStatus),
19660
+ SeverityRating: (0, smithy_client_1.expectString)(output.SeverityRating),
19661
+ Title: (0, smithy_client_1.expectString)(output.Title),
19662
+ };
19663
+ };
19664
+ const deserializeAws_restJson1SecurityControlDefinition = (output, context) => {
19665
+ return {
19666
+ CurrentRegionAvailability: (0, smithy_client_1.expectString)(output.CurrentRegionAvailability),
19667
+ Description: (0, smithy_client_1.expectString)(output.Description),
19668
+ RemediationUrl: (0, smithy_client_1.expectString)(output.RemediationUrl),
19669
+ SecurityControlId: (0, smithy_client_1.expectString)(output.SecurityControlId),
19670
+ SeverityRating: (0, smithy_client_1.expectString)(output.SeverityRating),
19671
+ Title: (0, smithy_client_1.expectString)(output.Title),
19672
+ };
19673
+ };
19674
+ const deserializeAws_restJson1SecurityControlDefinitions = (output, context) => {
19675
+ const retVal = (output || [])
19676
+ .filter((e) => e != null)
19677
+ .map((entry) => {
19678
+ if (entry === null) {
19679
+ return null;
19680
+ }
19681
+ return deserializeAws_restJson1SecurityControlDefinition(entry, context);
19682
+ });
19683
+ return retVal;
19684
+ };
19685
+ const deserializeAws_restJson1SecurityControls = (output, context) => {
19686
+ const retVal = (output || [])
19687
+ .filter((e) => e != null)
19688
+ .map((entry) => {
19689
+ if (entry === null) {
19690
+ return null;
19691
+ }
19692
+ return deserializeAws_restJson1SecurityControl(entry, context);
19693
+ });
19694
+ return retVal;
19695
+ };
19280
19696
  const deserializeAws_restJson1SecurityGroups = (output, context) => {
19281
19697
  const retVal = (output || [])
19282
19698
  .filter((e) => e != null)
@@ -19400,6 +19816,86 @@ const deserializeAws_restJson1StandardsControl = (output, context) => {
19400
19816
  Title: (0, smithy_client_1.expectString)(output.Title),
19401
19817
  };
19402
19818
  };
19819
+ const deserializeAws_restJson1StandardsControlArnList = (output, context) => {
19820
+ const retVal = (output || [])
19821
+ .filter((e) => e != null)
19822
+ .map((entry) => {
19823
+ if (entry === null) {
19824
+ return null;
19825
+ }
19826
+ return (0, smithy_client_1.expectString)(entry);
19827
+ });
19828
+ return retVal;
19829
+ };
19830
+ const deserializeAws_restJson1StandardsControlAssociationDetail = (output, context) => {
19831
+ return {
19832
+ AssociationStatus: (0, smithy_client_1.expectString)(output.AssociationStatus),
19833
+ RelatedRequirements: output.RelatedRequirements != null
19834
+ ? deserializeAws_restJson1RelatedRequirementsList(output.RelatedRequirements, context)
19835
+ : undefined,
19836
+ SecurityControlArn: (0, smithy_client_1.expectString)(output.SecurityControlArn),
19837
+ SecurityControlId: (0, smithy_client_1.expectString)(output.SecurityControlId),
19838
+ StandardsArn: (0, smithy_client_1.expectString)(output.StandardsArn),
19839
+ StandardsControlArns: output.StandardsControlArns != null
19840
+ ? deserializeAws_restJson1StandardsControlArnList(output.StandardsControlArns, context)
19841
+ : undefined,
19842
+ StandardsControlDescription: (0, smithy_client_1.expectString)(output.StandardsControlDescription),
19843
+ StandardsControlTitle: (0, smithy_client_1.expectString)(output.StandardsControlTitle),
19844
+ UpdatedAt: output.UpdatedAt != null ? (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseRfc3339DateTimeWithOffset)(output.UpdatedAt)) : undefined,
19845
+ UpdatedReason: (0, smithy_client_1.expectString)(output.UpdatedReason),
19846
+ };
19847
+ };
19848
+ const deserializeAws_restJson1StandardsControlAssociationDetails = (output, context) => {
19849
+ const retVal = (output || [])
19850
+ .filter((e) => e != null)
19851
+ .map((entry) => {
19852
+ if (entry === null) {
19853
+ return null;
19854
+ }
19855
+ return deserializeAws_restJson1StandardsControlAssociationDetail(entry, context);
19856
+ });
19857
+ return retVal;
19858
+ };
19859
+ const deserializeAws_restJson1StandardsControlAssociationId = (output, context) => {
19860
+ return {
19861
+ SecurityControlId: (0, smithy_client_1.expectString)(output.SecurityControlId),
19862
+ StandardsArn: (0, smithy_client_1.expectString)(output.StandardsArn),
19863
+ };
19864
+ };
19865
+ const deserializeAws_restJson1StandardsControlAssociationSummaries = (output, context) => {
19866
+ const retVal = (output || [])
19867
+ .filter((e) => e != null)
19868
+ .map((entry) => {
19869
+ if (entry === null) {
19870
+ return null;
19871
+ }
19872
+ return deserializeAws_restJson1StandardsControlAssociationSummary(entry, context);
19873
+ });
19874
+ return retVal;
19875
+ };
19876
+ const deserializeAws_restJson1StandardsControlAssociationSummary = (output, context) => {
19877
+ return {
19878
+ AssociationStatus: (0, smithy_client_1.expectString)(output.AssociationStatus),
19879
+ RelatedRequirements: output.RelatedRequirements != null
19880
+ ? deserializeAws_restJson1RelatedRequirementsList(output.RelatedRequirements, context)
19881
+ : undefined,
19882
+ SecurityControlArn: (0, smithy_client_1.expectString)(output.SecurityControlArn),
19883
+ SecurityControlId: (0, smithy_client_1.expectString)(output.SecurityControlId),
19884
+ StandardsArn: (0, smithy_client_1.expectString)(output.StandardsArn),
19885
+ StandardsControlDescription: (0, smithy_client_1.expectString)(output.StandardsControlDescription),
19886
+ StandardsControlTitle: (0, smithy_client_1.expectString)(output.StandardsControlTitle),
19887
+ UpdatedAt: output.UpdatedAt != null ? (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseRfc3339DateTimeWithOffset)(output.UpdatedAt)) : undefined,
19888
+ UpdatedReason: (0, smithy_client_1.expectString)(output.UpdatedReason),
19889
+ };
19890
+ };
19891
+ const deserializeAws_restJson1StandardsControlAssociationUpdate = (output, context) => {
19892
+ return {
19893
+ AssociationStatus: (0, smithy_client_1.expectString)(output.AssociationStatus),
19894
+ SecurityControlId: (0, smithy_client_1.expectString)(output.SecurityControlId),
19895
+ StandardsArn: (0, smithy_client_1.expectString)(output.StandardsArn),
19896
+ UpdatedReason: (0, smithy_client_1.expectString)(output.UpdatedReason),
19897
+ };
19898
+ };
19403
19899
  const deserializeAws_restJson1StandardsControls = (output, context) => {
19404
19900
  const retVal = (output || [])
19405
19901
  .filter((e) => e != null)
@@ -19590,6 +20086,64 @@ const deserializeAws_restJson1TypeList = (output, context) => {
19590
20086
  });
19591
20087
  return retVal;
19592
20088
  };
20089
+ const deserializeAws_restJson1UnprocessedSecurityControl = (output, context) => {
20090
+ return {
20091
+ ErrorCode: (0, smithy_client_1.expectString)(output.ErrorCode),
20092
+ ErrorReason: (0, smithy_client_1.expectString)(output.ErrorReason),
20093
+ SecurityControlId: (0, smithy_client_1.expectString)(output.SecurityControlId),
20094
+ };
20095
+ };
20096
+ const deserializeAws_restJson1UnprocessedSecurityControls = (output, context) => {
20097
+ const retVal = (output || [])
20098
+ .filter((e) => e != null)
20099
+ .map((entry) => {
20100
+ if (entry === null) {
20101
+ return null;
20102
+ }
20103
+ return deserializeAws_restJson1UnprocessedSecurityControl(entry, context);
20104
+ });
20105
+ return retVal;
20106
+ };
20107
+ const deserializeAws_restJson1UnprocessedStandardsControlAssociation = (output, context) => {
20108
+ return {
20109
+ ErrorCode: (0, smithy_client_1.expectString)(output.ErrorCode),
20110
+ ErrorReason: (0, smithy_client_1.expectString)(output.ErrorReason),
20111
+ StandardsControlAssociationId: output.StandardsControlAssociationId != null
20112
+ ? deserializeAws_restJson1StandardsControlAssociationId(output.StandardsControlAssociationId, context)
20113
+ : undefined,
20114
+ };
20115
+ };
20116
+ const deserializeAws_restJson1UnprocessedStandardsControlAssociations = (output, context) => {
20117
+ const retVal = (output || [])
20118
+ .filter((e) => e != null)
20119
+ .map((entry) => {
20120
+ if (entry === null) {
20121
+ return null;
20122
+ }
20123
+ return deserializeAws_restJson1UnprocessedStandardsControlAssociation(entry, context);
20124
+ });
20125
+ return retVal;
20126
+ };
20127
+ const deserializeAws_restJson1UnprocessedStandardsControlAssociationUpdate = (output, context) => {
20128
+ return {
20129
+ ErrorCode: (0, smithy_client_1.expectString)(output.ErrorCode),
20130
+ ErrorReason: (0, smithy_client_1.expectString)(output.ErrorReason),
20131
+ StandardsControlAssociationUpdate: output.StandardsControlAssociationUpdate != null
20132
+ ? deserializeAws_restJson1StandardsControlAssociationUpdate(output.StandardsControlAssociationUpdate, context)
20133
+ : undefined,
20134
+ };
20135
+ };
20136
+ const deserializeAws_restJson1UnprocessedStandardsControlAssociationUpdates = (output, context) => {
20137
+ const retVal = (output || [])
20138
+ .filter((e) => e != null)
20139
+ .map((entry) => {
20140
+ if (entry === null) {
20141
+ return null;
20142
+ }
20143
+ return deserializeAws_restJson1UnprocessedStandardsControlAssociationUpdate(entry, context);
20144
+ });
20145
+ return retVal;
20146
+ };
19593
20147
  const deserializeAws_restJson1VolumeMount = (output, context) => {
19594
20148
  return {
19595
20149
  MountPath: (0, smithy_client_1.expectString)(output.MountPath),