@aws-sdk/client-macie2 3.216.0 → 3.219.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 (155) hide show
  1. package/README.md +1 -1
  2. package/dist-cjs/Macie2.js +195 -0
  3. package/dist-cjs/commands/GetAutomatedDiscoveryConfigurationCommand.js +46 -0
  4. package/dist-cjs/commands/GetClassificationScopeCommand.js +46 -0
  5. package/dist-cjs/commands/GetResourceProfileCommand.js +46 -0
  6. package/dist-cjs/commands/GetSensitivityInspectionTemplateCommand.js +46 -0
  7. package/dist-cjs/commands/ListClassificationScopesCommand.js +46 -0
  8. package/dist-cjs/commands/ListInvitationsCommand.js +3 -3
  9. package/dist-cjs/commands/ListManagedDataIdentifiersCommand.js +3 -3
  10. package/dist-cjs/commands/ListMembersCommand.js +3 -3
  11. package/dist-cjs/commands/ListOrganizationAdminAccountsCommand.js +3 -3
  12. package/dist-cjs/commands/ListResourceProfileArtifactsCommand.js +46 -0
  13. package/dist-cjs/commands/ListResourceProfileDetectionsCommand.js +46 -0
  14. package/dist-cjs/commands/ListSensitivityInspectionTemplatesCommand.js +46 -0
  15. package/dist-cjs/commands/ListTagsForResourceCommand.js +3 -3
  16. package/dist-cjs/commands/PutClassificationExportConfigurationCommand.js +3 -3
  17. package/dist-cjs/commands/PutFindingsPublicationConfigurationCommand.js +3 -3
  18. package/dist-cjs/commands/SearchResourcesCommand.js +3 -3
  19. package/dist-cjs/commands/TagResourceCommand.js +3 -3
  20. package/dist-cjs/commands/TestCustomDataIdentifierCommand.js +3 -3
  21. package/dist-cjs/commands/UntagResourceCommand.js +1 -2
  22. package/dist-cjs/commands/UpdateAutomatedDiscoveryConfigurationCommand.js +46 -0
  23. package/dist-cjs/commands/UpdateClassificationScopeCommand.js +46 -0
  24. package/dist-cjs/commands/UpdateResourceProfileCommand.js +46 -0
  25. package/dist-cjs/commands/UpdateResourceProfileDetectionsCommand.js +46 -0
  26. package/dist-cjs/commands/UpdateSensitivityInspectionTemplateCommand.js +46 -0
  27. package/dist-cjs/commands/index.js +13 -0
  28. package/dist-cjs/endpoint/ruleset.js +1 -1
  29. package/dist-cjs/models/models_0.js +113 -109
  30. package/dist-cjs/models/models_1.js +177 -1
  31. package/dist-cjs/pagination/ListAllowListsPaginator.js +36 -0
  32. package/dist-cjs/pagination/ListClassificationScopesPaginator.js +35 -0
  33. package/dist-cjs/pagination/ListManagedDataIdentifiersPaginator.js +35 -0
  34. package/dist-cjs/pagination/ListResourceProfileArtifactsPaginator.js +35 -0
  35. package/dist-cjs/pagination/ListResourceProfileDetectionsPaginator.js +36 -0
  36. package/dist-cjs/pagination/ListSensitivityInspectionTemplatesPaginator.js +36 -0
  37. package/dist-cjs/pagination/index.js +6 -0
  38. package/dist-cjs/protocols/Aws_restJson1.js +1216 -71
  39. package/dist-es/Macie2.js +195 -0
  40. package/dist-es/commands/GetAutomatedDiscoveryConfigurationCommand.js +42 -0
  41. package/dist-es/commands/GetClassificationScopeCommand.js +42 -0
  42. package/dist-es/commands/GetResourceProfileCommand.js +42 -0
  43. package/dist-es/commands/GetSensitivityInspectionTemplateCommand.js +42 -0
  44. package/dist-es/commands/ListClassificationScopesCommand.js +42 -0
  45. package/dist-es/commands/ListInvitationsCommand.js +1 -1
  46. package/dist-es/commands/ListManagedDataIdentifiersCommand.js +1 -1
  47. package/dist-es/commands/ListMembersCommand.js +1 -1
  48. package/dist-es/commands/ListOrganizationAdminAccountsCommand.js +1 -1
  49. package/dist-es/commands/ListResourceProfileArtifactsCommand.js +42 -0
  50. package/dist-es/commands/ListResourceProfileDetectionsCommand.js +42 -0
  51. package/dist-es/commands/ListSensitivityInspectionTemplatesCommand.js +42 -0
  52. package/dist-es/commands/ListTagsForResourceCommand.js +1 -1
  53. package/dist-es/commands/PutClassificationExportConfigurationCommand.js +1 -1
  54. package/dist-es/commands/PutFindingsPublicationConfigurationCommand.js +1 -1
  55. package/dist-es/commands/SearchResourcesCommand.js +1 -1
  56. package/dist-es/commands/TagResourceCommand.js +1 -1
  57. package/dist-es/commands/TestCustomDataIdentifierCommand.js +1 -1
  58. package/dist-es/commands/UntagResourceCommand.js +1 -2
  59. package/dist-es/commands/UpdateAutomatedDiscoveryConfigurationCommand.js +42 -0
  60. package/dist-es/commands/UpdateClassificationScopeCommand.js +42 -0
  61. package/dist-es/commands/UpdateResourceProfileCommand.js +42 -0
  62. package/dist-es/commands/UpdateResourceProfileDetectionsCommand.js +42 -0
  63. package/dist-es/commands/UpdateSensitivityInspectionTemplateCommand.js +42 -0
  64. package/dist-es/commands/index.js +13 -0
  65. package/dist-es/endpoint/ruleset.js +1 -1
  66. package/dist-es/models/models_0.js +85 -79
  67. package/dist-es/models/models_1.js +133 -0
  68. package/dist-es/pagination/ListAllowListsPaginator.js +32 -0
  69. package/dist-es/pagination/ListClassificationScopesPaginator.js +31 -0
  70. package/dist-es/pagination/ListManagedDataIdentifiersPaginator.js +31 -0
  71. package/dist-es/pagination/ListResourceProfileArtifactsPaginator.js +31 -0
  72. package/dist-es/pagination/ListResourceProfileDetectionsPaginator.js +32 -0
  73. package/dist-es/pagination/ListSensitivityInspectionTemplatesPaginator.js +32 -0
  74. package/dist-es/pagination/index.js +6 -0
  75. package/dist-es/protocols/Aws_restJson1.js +1204 -86
  76. package/dist-types/Macie2.d.ts +95 -4
  77. package/dist-types/Macie2Client.d.ts +16 -3
  78. package/dist-types/commands/DescribeBucketsCommand.d.ts +1 -1
  79. package/dist-types/commands/GetAutomatedDiscoveryConfigurationCommand.d.ts +37 -0
  80. package/dist-types/commands/GetBucketStatisticsCommand.d.ts +1 -1
  81. package/dist-types/commands/GetClassificationScopeCommand.d.ts +37 -0
  82. package/dist-types/commands/GetMacieSessionCommand.d.ts +1 -1
  83. package/dist-types/commands/GetResourceProfileCommand.d.ts +37 -0
  84. package/dist-types/commands/GetSensitivityInspectionTemplateCommand.d.ts +37 -0
  85. package/dist-types/commands/ListClassificationScopesCommand.d.ts +37 -0
  86. package/dist-types/commands/ListInvitationsCommand.d.ts +1 -1
  87. package/dist-types/commands/ListManagedDataIdentifiersCommand.d.ts +1 -1
  88. package/dist-types/commands/ListMembersCommand.d.ts +1 -1
  89. package/dist-types/commands/ListOrganizationAdminAccountsCommand.d.ts +1 -1
  90. package/dist-types/commands/ListResourceProfileArtifactsCommand.d.ts +37 -0
  91. package/dist-types/commands/ListResourceProfileDetectionsCommand.d.ts +37 -0
  92. package/dist-types/commands/ListSensitivityInspectionTemplatesCommand.d.ts +37 -0
  93. package/dist-types/commands/ListTagsForResourceCommand.d.ts +1 -1
  94. package/dist-types/commands/PutClassificationExportConfigurationCommand.d.ts +1 -1
  95. package/dist-types/commands/PutFindingsPublicationConfigurationCommand.d.ts +1 -1
  96. package/dist-types/commands/SearchResourcesCommand.d.ts +1 -1
  97. package/dist-types/commands/TagResourceCommand.d.ts +1 -1
  98. package/dist-types/commands/TestCustomDataIdentifierCommand.d.ts +1 -1
  99. package/dist-types/commands/UntagResourceCommand.d.ts +1 -2
  100. package/dist-types/commands/UpdateAutomatedDiscoveryConfigurationCommand.d.ts +37 -0
  101. package/dist-types/commands/UpdateClassificationScopeCommand.d.ts +37 -0
  102. package/dist-types/commands/UpdateResourceProfileCommand.d.ts +37 -0
  103. package/dist-types/commands/UpdateResourceProfileDetectionsCommand.d.ts +37 -0
  104. package/dist-types/commands/UpdateSensitivityInspectionTemplateCommand.d.ts +37 -0
  105. package/dist-types/commands/index.d.ts +13 -0
  106. package/dist-types/endpoint/EndpointParameters.d.ts +1 -1
  107. package/dist-types/models/models_0.d.ts +501 -372
  108. package/dist-types/models/models_1.d.ts +559 -6
  109. package/dist-types/pagination/ListAllowListsPaginator.d.ts +4 -0
  110. package/dist-types/pagination/ListClassificationScopesPaginator.d.ts +4 -0
  111. package/dist-types/pagination/ListManagedDataIdentifiersPaginator.d.ts +4 -0
  112. package/dist-types/pagination/ListResourceProfileArtifactsPaginator.d.ts +4 -0
  113. package/dist-types/pagination/ListResourceProfileDetectionsPaginator.d.ts +4 -0
  114. package/dist-types/pagination/ListSensitivityInspectionTemplatesPaginator.d.ts +4 -0
  115. package/dist-types/pagination/index.d.ts +6 -0
  116. package/dist-types/protocols/Aws_restJson1.d.ts +39 -0
  117. package/dist-types/ts3.4/Macie2.d.ts +245 -0
  118. package/dist-types/ts3.4/Macie2Client.d.ts +80 -2
  119. package/dist-types/ts3.4/commands/GetAutomatedDiscoveryConfigurationCommand.d.ts +41 -0
  120. package/dist-types/ts3.4/commands/GetClassificationScopeCommand.d.ts +41 -0
  121. package/dist-types/ts3.4/commands/GetResourceProfileCommand.d.ts +38 -0
  122. package/dist-types/ts3.4/commands/GetSensitivityInspectionTemplateCommand.d.ts +41 -0
  123. package/dist-types/ts3.4/commands/ListClassificationScopesCommand.d.ts +41 -0
  124. package/dist-types/ts3.4/commands/ListInvitationsCommand.d.ts +1 -1
  125. package/dist-types/ts3.4/commands/ListManagedDataIdentifiersCommand.d.ts +1 -1
  126. package/dist-types/ts3.4/commands/ListMembersCommand.d.ts +1 -1
  127. package/dist-types/ts3.4/commands/ListOrganizationAdminAccountsCommand.d.ts +1 -1
  128. package/dist-types/ts3.4/commands/ListResourceProfileArtifactsCommand.d.ts +41 -0
  129. package/dist-types/ts3.4/commands/ListResourceProfileDetectionsCommand.d.ts +41 -0
  130. package/dist-types/ts3.4/commands/ListSensitivityInspectionTemplatesCommand.d.ts +41 -0
  131. package/dist-types/ts3.4/commands/ListTagsForResourceCommand.d.ts +1 -1
  132. package/dist-types/ts3.4/commands/PutClassificationExportConfigurationCommand.d.ts +1 -1
  133. package/dist-types/ts3.4/commands/PutFindingsPublicationConfigurationCommand.d.ts +1 -1
  134. package/dist-types/ts3.4/commands/SearchResourcesCommand.d.ts +1 -1
  135. package/dist-types/ts3.4/commands/TagResourceCommand.d.ts +1 -1
  136. package/dist-types/ts3.4/commands/TestCustomDataIdentifierCommand.d.ts +1 -1
  137. package/dist-types/ts3.4/commands/UntagResourceCommand.d.ts +4 -2
  138. package/dist-types/ts3.4/commands/UpdateAutomatedDiscoveryConfigurationCommand.d.ts +41 -0
  139. package/dist-types/ts3.4/commands/UpdateClassificationScopeCommand.d.ts +41 -0
  140. package/dist-types/ts3.4/commands/UpdateResourceProfileCommand.d.ts +41 -0
  141. package/dist-types/ts3.4/commands/UpdateResourceProfileDetectionsCommand.d.ts +41 -0
  142. package/dist-types/ts3.4/commands/UpdateSensitivityInspectionTemplateCommand.d.ts +41 -0
  143. package/dist-types/ts3.4/commands/index.d.ts +13 -0
  144. package/dist-types/ts3.4/endpoint/EndpointParameters.d.ts +1 -1
  145. package/dist-types/ts3.4/models/models_0.d.ts +194 -169
  146. package/dist-types/ts3.4/models/models_1.d.ts +297 -1
  147. package/dist-types/ts3.4/pagination/ListAllowListsPaginator.d.ts +11 -0
  148. package/dist-types/ts3.4/pagination/ListClassificationScopesPaginator.d.ts +11 -0
  149. package/dist-types/ts3.4/pagination/ListManagedDataIdentifiersPaginator.d.ts +11 -0
  150. package/dist-types/ts3.4/pagination/ListResourceProfileArtifactsPaginator.d.ts +11 -0
  151. package/dist-types/ts3.4/pagination/ListResourceProfileDetectionsPaginator.d.ts +11 -0
  152. package/dist-types/ts3.4/pagination/ListSensitivityInspectionTemplatesPaginator.d.ts +11 -0
  153. package/dist-types/ts3.4/pagination/index.d.ts +6 -0
  154. package/dist-types/ts3.4/protocols/Aws_restJson1.d.ts +156 -0
  155. package/package.json +3 -3
@@ -1,8 +1,9 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.serializeAws_restJson1ListManagedDataIdentifiersCommand = exports.serializeAws_restJson1ListInvitationsCommand = exports.serializeAws_restJson1ListFindingsFiltersCommand = exports.serializeAws_restJson1ListFindingsCommand = exports.serializeAws_restJson1ListCustomDataIdentifiersCommand = exports.serializeAws_restJson1ListClassificationJobsCommand = exports.serializeAws_restJson1ListAllowListsCommand = exports.serializeAws_restJson1GetUsageTotalsCommand = exports.serializeAws_restJson1GetUsageStatisticsCommand = exports.serializeAws_restJson1GetSensitiveDataOccurrencesAvailabilityCommand = exports.serializeAws_restJson1GetSensitiveDataOccurrencesCommand = exports.serializeAws_restJson1GetRevealConfigurationCommand = exports.serializeAws_restJson1GetMemberCommand = exports.serializeAws_restJson1GetMasterAccountCommand = exports.serializeAws_restJson1GetMacieSessionCommand = exports.serializeAws_restJson1GetInvitationsCountCommand = exports.serializeAws_restJson1GetFindingStatisticsCommand = exports.serializeAws_restJson1GetFindingsPublicationConfigurationCommand = exports.serializeAws_restJson1GetFindingsFilterCommand = exports.serializeAws_restJson1GetFindingsCommand = exports.serializeAws_restJson1GetCustomDataIdentifierCommand = exports.serializeAws_restJson1GetClassificationExportConfigurationCommand = exports.serializeAws_restJson1GetBucketStatisticsCommand = exports.serializeAws_restJson1GetAllowListCommand = exports.serializeAws_restJson1GetAdministratorAccountCommand = exports.serializeAws_restJson1EnableOrganizationAdminAccountCommand = exports.serializeAws_restJson1EnableMacieCommand = exports.serializeAws_restJson1DisassociateMemberCommand = exports.serializeAws_restJson1DisassociateFromMasterAccountCommand = exports.serializeAws_restJson1DisassociateFromAdministratorAccountCommand = exports.serializeAws_restJson1DisableOrganizationAdminAccountCommand = exports.serializeAws_restJson1DisableMacieCommand = exports.serializeAws_restJson1DescribeOrganizationConfigurationCommand = exports.serializeAws_restJson1DescribeClassificationJobCommand = exports.serializeAws_restJson1DescribeBucketsCommand = exports.serializeAws_restJson1DeleteMemberCommand = exports.serializeAws_restJson1DeleteInvitationsCommand = exports.serializeAws_restJson1DeleteFindingsFilterCommand = exports.serializeAws_restJson1DeleteCustomDataIdentifierCommand = exports.serializeAws_restJson1DeleteAllowListCommand = exports.serializeAws_restJson1DeclineInvitationsCommand = exports.serializeAws_restJson1CreateSampleFindingsCommand = exports.serializeAws_restJson1CreateMemberCommand = exports.serializeAws_restJson1CreateInvitationsCommand = exports.serializeAws_restJson1CreateFindingsFilterCommand = exports.serializeAws_restJson1CreateCustomDataIdentifierCommand = exports.serializeAws_restJson1CreateClassificationJobCommand = exports.serializeAws_restJson1CreateAllowListCommand = exports.serializeAws_restJson1BatchGetCustomDataIdentifiersCommand = exports.serializeAws_restJson1AcceptInvitationCommand = void 0;
4
- exports.deserializeAws_restJson1GetFindingStatisticsCommand = exports.deserializeAws_restJson1GetFindingsPublicationConfigurationCommand = exports.deserializeAws_restJson1GetFindingsFilterCommand = exports.deserializeAws_restJson1GetFindingsCommand = exports.deserializeAws_restJson1GetCustomDataIdentifierCommand = exports.deserializeAws_restJson1GetClassificationExportConfigurationCommand = exports.deserializeAws_restJson1GetBucketStatisticsCommand = exports.deserializeAws_restJson1GetAllowListCommand = exports.deserializeAws_restJson1GetAdministratorAccountCommand = exports.deserializeAws_restJson1EnableOrganizationAdminAccountCommand = exports.deserializeAws_restJson1EnableMacieCommand = exports.deserializeAws_restJson1DisassociateMemberCommand = exports.deserializeAws_restJson1DisassociateFromMasterAccountCommand = exports.deserializeAws_restJson1DisassociateFromAdministratorAccountCommand = exports.deserializeAws_restJson1DisableOrganizationAdminAccountCommand = exports.deserializeAws_restJson1DisableMacieCommand = exports.deserializeAws_restJson1DescribeOrganizationConfigurationCommand = exports.deserializeAws_restJson1DescribeClassificationJobCommand = exports.deserializeAws_restJson1DescribeBucketsCommand = exports.deserializeAws_restJson1DeleteMemberCommand = exports.deserializeAws_restJson1DeleteInvitationsCommand = exports.deserializeAws_restJson1DeleteFindingsFilterCommand = exports.deserializeAws_restJson1DeleteCustomDataIdentifierCommand = exports.deserializeAws_restJson1DeleteAllowListCommand = exports.deserializeAws_restJson1DeclineInvitationsCommand = exports.deserializeAws_restJson1CreateSampleFindingsCommand = exports.deserializeAws_restJson1CreateMemberCommand = exports.deserializeAws_restJson1CreateInvitationsCommand = exports.deserializeAws_restJson1CreateFindingsFilterCommand = exports.deserializeAws_restJson1CreateCustomDataIdentifierCommand = exports.deserializeAws_restJson1CreateClassificationJobCommand = exports.deserializeAws_restJson1CreateAllowListCommand = exports.deserializeAws_restJson1BatchGetCustomDataIdentifiersCommand = exports.deserializeAws_restJson1AcceptInvitationCommand = exports.serializeAws_restJson1UpdateRevealConfigurationCommand = exports.serializeAws_restJson1UpdateOrganizationConfigurationCommand = exports.serializeAws_restJson1UpdateMemberSessionCommand = exports.serializeAws_restJson1UpdateMacieSessionCommand = exports.serializeAws_restJson1UpdateFindingsFilterCommand = exports.serializeAws_restJson1UpdateClassificationJobCommand = exports.serializeAws_restJson1UpdateAllowListCommand = exports.serializeAws_restJson1UntagResourceCommand = exports.serializeAws_restJson1TestCustomDataIdentifierCommand = exports.serializeAws_restJson1TagResourceCommand = exports.serializeAws_restJson1SearchResourcesCommand = exports.serializeAws_restJson1PutFindingsPublicationConfigurationCommand = exports.serializeAws_restJson1PutClassificationExportConfigurationCommand = exports.serializeAws_restJson1ListTagsForResourceCommand = exports.serializeAws_restJson1ListOrganizationAdminAccountsCommand = exports.serializeAws_restJson1ListMembersCommand = void 0;
5
- exports.deserializeAws_restJson1UpdateRevealConfigurationCommand = exports.deserializeAws_restJson1UpdateOrganizationConfigurationCommand = exports.deserializeAws_restJson1UpdateMemberSessionCommand = exports.deserializeAws_restJson1UpdateMacieSessionCommand = exports.deserializeAws_restJson1UpdateFindingsFilterCommand = exports.deserializeAws_restJson1UpdateClassificationJobCommand = exports.deserializeAws_restJson1UpdateAllowListCommand = exports.deserializeAws_restJson1UntagResourceCommand = exports.deserializeAws_restJson1TestCustomDataIdentifierCommand = exports.deserializeAws_restJson1TagResourceCommand = exports.deserializeAws_restJson1SearchResourcesCommand = exports.deserializeAws_restJson1PutFindingsPublicationConfigurationCommand = exports.deserializeAws_restJson1PutClassificationExportConfigurationCommand = exports.deserializeAws_restJson1ListTagsForResourceCommand = exports.deserializeAws_restJson1ListOrganizationAdminAccountsCommand = exports.deserializeAws_restJson1ListMembersCommand = exports.deserializeAws_restJson1ListManagedDataIdentifiersCommand = exports.deserializeAws_restJson1ListInvitationsCommand = exports.deserializeAws_restJson1ListFindingsFiltersCommand = exports.deserializeAws_restJson1ListFindingsCommand = exports.deserializeAws_restJson1ListCustomDataIdentifiersCommand = exports.deserializeAws_restJson1ListClassificationJobsCommand = exports.deserializeAws_restJson1ListAllowListsCommand = exports.deserializeAws_restJson1GetUsageTotalsCommand = exports.deserializeAws_restJson1GetUsageStatisticsCommand = exports.deserializeAws_restJson1GetSensitiveDataOccurrencesAvailabilityCommand = exports.deserializeAws_restJson1GetSensitiveDataOccurrencesCommand = exports.deserializeAws_restJson1GetRevealConfigurationCommand = exports.deserializeAws_restJson1GetMemberCommand = exports.deserializeAws_restJson1GetMasterAccountCommand = exports.deserializeAws_restJson1GetMacieSessionCommand = exports.deserializeAws_restJson1GetInvitationsCountCommand = void 0;
3
+ exports.serializeAws_restJson1ListClassificationScopesCommand = exports.serializeAws_restJson1ListClassificationJobsCommand = exports.serializeAws_restJson1ListAllowListsCommand = exports.serializeAws_restJson1GetUsageTotalsCommand = exports.serializeAws_restJson1GetUsageStatisticsCommand = exports.serializeAws_restJson1GetSensitivityInspectionTemplateCommand = exports.serializeAws_restJson1GetSensitiveDataOccurrencesAvailabilityCommand = exports.serializeAws_restJson1GetSensitiveDataOccurrencesCommand = exports.serializeAws_restJson1GetRevealConfigurationCommand = exports.serializeAws_restJson1GetResourceProfileCommand = exports.serializeAws_restJson1GetMemberCommand = exports.serializeAws_restJson1GetMasterAccountCommand = exports.serializeAws_restJson1GetMacieSessionCommand = exports.serializeAws_restJson1GetInvitationsCountCommand = exports.serializeAws_restJson1GetFindingStatisticsCommand = exports.serializeAws_restJson1GetFindingsPublicationConfigurationCommand = exports.serializeAws_restJson1GetFindingsFilterCommand = exports.serializeAws_restJson1GetFindingsCommand = exports.serializeAws_restJson1GetCustomDataIdentifierCommand = exports.serializeAws_restJson1GetClassificationScopeCommand = exports.serializeAws_restJson1GetClassificationExportConfigurationCommand = exports.serializeAws_restJson1GetBucketStatisticsCommand = exports.serializeAws_restJson1GetAutomatedDiscoveryConfigurationCommand = exports.serializeAws_restJson1GetAllowListCommand = exports.serializeAws_restJson1GetAdministratorAccountCommand = exports.serializeAws_restJson1EnableOrganizationAdminAccountCommand = exports.serializeAws_restJson1EnableMacieCommand = exports.serializeAws_restJson1DisassociateMemberCommand = exports.serializeAws_restJson1DisassociateFromMasterAccountCommand = exports.serializeAws_restJson1DisassociateFromAdministratorAccountCommand = exports.serializeAws_restJson1DisableOrganizationAdminAccountCommand = exports.serializeAws_restJson1DisableMacieCommand = exports.serializeAws_restJson1DescribeOrganizationConfigurationCommand = exports.serializeAws_restJson1DescribeClassificationJobCommand = exports.serializeAws_restJson1DescribeBucketsCommand = exports.serializeAws_restJson1DeleteMemberCommand = exports.serializeAws_restJson1DeleteInvitationsCommand = exports.serializeAws_restJson1DeleteFindingsFilterCommand = exports.serializeAws_restJson1DeleteCustomDataIdentifierCommand = exports.serializeAws_restJson1DeleteAllowListCommand = exports.serializeAws_restJson1DeclineInvitationsCommand = exports.serializeAws_restJson1CreateSampleFindingsCommand = exports.serializeAws_restJson1CreateMemberCommand = exports.serializeAws_restJson1CreateInvitationsCommand = exports.serializeAws_restJson1CreateFindingsFilterCommand = exports.serializeAws_restJson1CreateCustomDataIdentifierCommand = exports.serializeAws_restJson1CreateClassificationJobCommand = exports.serializeAws_restJson1CreateAllowListCommand = exports.serializeAws_restJson1BatchGetCustomDataIdentifiersCommand = exports.serializeAws_restJson1AcceptInvitationCommand = void 0;
4
+ exports.deserializeAws_restJson1DisassociateFromAdministratorAccountCommand = exports.deserializeAws_restJson1DisableOrganizationAdminAccountCommand = exports.deserializeAws_restJson1DisableMacieCommand = exports.deserializeAws_restJson1DescribeOrganizationConfigurationCommand = exports.deserializeAws_restJson1DescribeClassificationJobCommand = exports.deserializeAws_restJson1DescribeBucketsCommand = exports.deserializeAws_restJson1DeleteMemberCommand = exports.deserializeAws_restJson1DeleteInvitationsCommand = exports.deserializeAws_restJson1DeleteFindingsFilterCommand = exports.deserializeAws_restJson1DeleteCustomDataIdentifierCommand = exports.deserializeAws_restJson1DeleteAllowListCommand = exports.deserializeAws_restJson1DeclineInvitationsCommand = exports.deserializeAws_restJson1CreateSampleFindingsCommand = exports.deserializeAws_restJson1CreateMemberCommand = exports.deserializeAws_restJson1CreateInvitationsCommand = exports.deserializeAws_restJson1CreateFindingsFilterCommand = exports.deserializeAws_restJson1CreateCustomDataIdentifierCommand = exports.deserializeAws_restJson1CreateClassificationJobCommand = exports.deserializeAws_restJson1CreateAllowListCommand = exports.deserializeAws_restJson1BatchGetCustomDataIdentifiersCommand = exports.deserializeAws_restJson1AcceptInvitationCommand = exports.serializeAws_restJson1UpdateSensitivityInspectionTemplateCommand = exports.serializeAws_restJson1UpdateRevealConfigurationCommand = exports.serializeAws_restJson1UpdateResourceProfileDetectionsCommand = exports.serializeAws_restJson1UpdateResourceProfileCommand = exports.serializeAws_restJson1UpdateOrganizationConfigurationCommand = exports.serializeAws_restJson1UpdateMemberSessionCommand = exports.serializeAws_restJson1UpdateMacieSessionCommand = exports.serializeAws_restJson1UpdateFindingsFilterCommand = exports.serializeAws_restJson1UpdateClassificationScopeCommand = exports.serializeAws_restJson1UpdateClassificationJobCommand = exports.serializeAws_restJson1UpdateAutomatedDiscoveryConfigurationCommand = exports.serializeAws_restJson1UpdateAllowListCommand = exports.serializeAws_restJson1UntagResourceCommand = exports.serializeAws_restJson1TestCustomDataIdentifierCommand = exports.serializeAws_restJson1TagResourceCommand = exports.serializeAws_restJson1SearchResourcesCommand = exports.serializeAws_restJson1PutFindingsPublicationConfigurationCommand = exports.serializeAws_restJson1PutClassificationExportConfigurationCommand = exports.serializeAws_restJson1ListTagsForResourceCommand = exports.serializeAws_restJson1ListSensitivityInspectionTemplatesCommand = exports.serializeAws_restJson1ListResourceProfileDetectionsCommand = exports.serializeAws_restJson1ListResourceProfileArtifactsCommand = exports.serializeAws_restJson1ListOrganizationAdminAccountsCommand = exports.serializeAws_restJson1ListMembersCommand = exports.serializeAws_restJson1ListManagedDataIdentifiersCommand = exports.serializeAws_restJson1ListInvitationsCommand = exports.serializeAws_restJson1ListFindingsFiltersCommand = exports.serializeAws_restJson1ListFindingsCommand = exports.serializeAws_restJson1ListCustomDataIdentifiersCommand = void 0;
5
+ exports.deserializeAws_restJson1UpdateClassificationScopeCommand = exports.deserializeAws_restJson1UpdateClassificationJobCommand = exports.deserializeAws_restJson1UpdateAutomatedDiscoveryConfigurationCommand = exports.deserializeAws_restJson1UpdateAllowListCommand = exports.deserializeAws_restJson1UntagResourceCommand = exports.deserializeAws_restJson1TestCustomDataIdentifierCommand = exports.deserializeAws_restJson1TagResourceCommand = exports.deserializeAws_restJson1SearchResourcesCommand = exports.deserializeAws_restJson1PutFindingsPublicationConfigurationCommand = exports.deserializeAws_restJson1PutClassificationExportConfigurationCommand = exports.deserializeAws_restJson1ListTagsForResourceCommand = exports.deserializeAws_restJson1ListSensitivityInspectionTemplatesCommand = exports.deserializeAws_restJson1ListResourceProfileDetectionsCommand = exports.deserializeAws_restJson1ListResourceProfileArtifactsCommand = exports.deserializeAws_restJson1ListOrganizationAdminAccountsCommand = exports.deserializeAws_restJson1ListMembersCommand = exports.deserializeAws_restJson1ListManagedDataIdentifiersCommand = exports.deserializeAws_restJson1ListInvitationsCommand = exports.deserializeAws_restJson1ListFindingsFiltersCommand = exports.deserializeAws_restJson1ListFindingsCommand = exports.deserializeAws_restJson1ListCustomDataIdentifiersCommand = exports.deserializeAws_restJson1ListClassificationScopesCommand = exports.deserializeAws_restJson1ListClassificationJobsCommand = exports.deserializeAws_restJson1ListAllowListsCommand = exports.deserializeAws_restJson1GetUsageTotalsCommand = exports.deserializeAws_restJson1GetUsageStatisticsCommand = exports.deserializeAws_restJson1GetSensitivityInspectionTemplateCommand = exports.deserializeAws_restJson1GetSensitiveDataOccurrencesAvailabilityCommand = exports.deserializeAws_restJson1GetSensitiveDataOccurrencesCommand = exports.deserializeAws_restJson1GetRevealConfigurationCommand = exports.deserializeAws_restJson1GetResourceProfileCommand = exports.deserializeAws_restJson1GetMemberCommand = exports.deserializeAws_restJson1GetMasterAccountCommand = exports.deserializeAws_restJson1GetMacieSessionCommand = exports.deserializeAws_restJson1GetInvitationsCountCommand = exports.deserializeAws_restJson1GetFindingStatisticsCommand = exports.deserializeAws_restJson1GetFindingsPublicationConfigurationCommand = exports.deserializeAws_restJson1GetFindingsFilterCommand = exports.deserializeAws_restJson1GetFindingsCommand = exports.deserializeAws_restJson1GetCustomDataIdentifierCommand = exports.deserializeAws_restJson1GetClassificationScopeCommand = exports.deserializeAws_restJson1GetClassificationExportConfigurationCommand = exports.deserializeAws_restJson1GetBucketStatisticsCommand = exports.deserializeAws_restJson1GetAutomatedDiscoveryConfigurationCommand = exports.deserializeAws_restJson1GetAllowListCommand = exports.deserializeAws_restJson1GetAdministratorAccountCommand = exports.deserializeAws_restJson1EnableOrganizationAdminAccountCommand = exports.deserializeAws_restJson1EnableMacieCommand = exports.deserializeAws_restJson1DisassociateMemberCommand = exports.deserializeAws_restJson1DisassociateFromMasterAccountCommand = void 0;
6
+ exports.deserializeAws_restJson1UpdateSensitivityInspectionTemplateCommand = exports.deserializeAws_restJson1UpdateRevealConfigurationCommand = exports.deserializeAws_restJson1UpdateResourceProfileDetectionsCommand = exports.deserializeAws_restJson1UpdateResourceProfileCommand = exports.deserializeAws_restJson1UpdateOrganizationConfigurationCommand = exports.deserializeAws_restJson1UpdateMemberSessionCommand = exports.deserializeAws_restJson1UpdateMacieSessionCommand = exports.deserializeAws_restJson1UpdateFindingsFilterCommand = void 0;
6
7
  const protocol_http_1 = require("@aws-sdk/protocol-http");
7
8
  const smithy_client_1 = require("@aws-sdk/smithy-client");
8
9
  const uuid_1 = require("uuid");
@@ -452,7 +453,7 @@ const serializeAws_restJson1DisableOrganizationAdminAccountCommand = async (inpu
452
453
  const headers = {};
453
454
  const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/admin";
454
455
  const query = map({
455
- adminAccountId: [, input.adminAccountId],
456
+ adminAccountId: [, (0, smithy_client_1.expectNonNull)(input.adminAccountId, `adminAccountId`)],
456
457
  });
457
458
  let body;
458
459
  return new protocol_http_1.HttpRequest({
@@ -603,6 +604,25 @@ const serializeAws_restJson1GetAllowListCommand = async (input, context) => {
603
604
  });
604
605
  };
605
606
  exports.serializeAws_restJson1GetAllowListCommand = serializeAws_restJson1GetAllowListCommand;
607
+ const serializeAws_restJson1GetAutomatedDiscoveryConfigurationCommand = async (input, context) => {
608
+ const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
609
+ const headers = {
610
+ "content-type": "application/json",
611
+ };
612
+ const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/automated-discovery/configuration";
613
+ let body;
614
+ body = "";
615
+ return new protocol_http_1.HttpRequest({
616
+ protocol,
617
+ hostname,
618
+ port,
619
+ method: "GET",
620
+ headers,
621
+ path: resolvedPath,
622
+ body,
623
+ });
624
+ };
625
+ exports.serializeAws_restJson1GetAutomatedDiscoveryConfigurationCommand = serializeAws_restJson1GetAutomatedDiscoveryConfigurationCommand;
606
626
  const serializeAws_restJson1GetBucketStatisticsCommand = async (input, context) => {
607
627
  const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
608
628
  const headers = {
@@ -643,6 +663,23 @@ const serializeAws_restJson1GetClassificationExportConfigurationCommand = async
643
663
  });
644
664
  };
645
665
  exports.serializeAws_restJson1GetClassificationExportConfigurationCommand = serializeAws_restJson1GetClassificationExportConfigurationCommand;
666
+ const serializeAws_restJson1GetClassificationScopeCommand = async (input, context) => {
667
+ const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
668
+ const headers = {};
669
+ let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/classification-scopes/{id}";
670
+ resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "id", () => input.id, "{id}", false);
671
+ let body;
672
+ return new protocol_http_1.HttpRequest({
673
+ protocol,
674
+ hostname,
675
+ port,
676
+ method: "GET",
677
+ headers,
678
+ path: resolvedPath,
679
+ body,
680
+ });
681
+ };
682
+ exports.serializeAws_restJson1GetClassificationScopeCommand = serializeAws_restJson1GetClassificationScopeCommand;
646
683
  const serializeAws_restJson1GetCustomDataIdentifierCommand = async (input, context) => {
647
684
  const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
648
685
  const headers = {};
@@ -822,6 +859,26 @@ const serializeAws_restJson1GetMemberCommand = async (input, context) => {
822
859
  });
823
860
  };
824
861
  exports.serializeAws_restJson1GetMemberCommand = serializeAws_restJson1GetMemberCommand;
862
+ const serializeAws_restJson1GetResourceProfileCommand = async (input, context) => {
863
+ const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
864
+ const headers = {};
865
+ const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/resource-profiles";
866
+ const query = map({
867
+ resourceArn: [, (0, smithy_client_1.expectNonNull)(input.resourceArn, `resourceArn`)],
868
+ });
869
+ let body;
870
+ return new protocol_http_1.HttpRequest({
871
+ protocol,
872
+ hostname,
873
+ port,
874
+ method: "GET",
875
+ headers,
876
+ path: resolvedPath,
877
+ query,
878
+ body,
879
+ });
880
+ };
881
+ exports.serializeAws_restJson1GetResourceProfileCommand = serializeAws_restJson1GetResourceProfileCommand;
825
882
  const serializeAws_restJson1GetRevealConfigurationCommand = async (input, context) => {
826
883
  const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
827
884
  const headers = {
@@ -875,6 +932,23 @@ const serializeAws_restJson1GetSensitiveDataOccurrencesAvailabilityCommand = asy
875
932
  });
876
933
  };
877
934
  exports.serializeAws_restJson1GetSensitiveDataOccurrencesAvailabilityCommand = serializeAws_restJson1GetSensitiveDataOccurrencesAvailabilityCommand;
935
+ const serializeAws_restJson1GetSensitivityInspectionTemplateCommand = async (input, context) => {
936
+ const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
937
+ const headers = {};
938
+ let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/templates/sensitivity-inspections/{id}";
939
+ resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "id", () => input.id, "{id}", false);
940
+ let body;
941
+ return new protocol_http_1.HttpRequest({
942
+ protocol,
943
+ hostname,
944
+ port,
945
+ method: "GET",
946
+ headers,
947
+ path: resolvedPath,
948
+ body,
949
+ });
950
+ };
951
+ exports.serializeAws_restJson1GetSensitivityInspectionTemplateCommand = serializeAws_restJson1GetSensitivityInspectionTemplateCommand;
878
952
  const serializeAws_restJson1GetUsageStatisticsCommand = async (input, context) => {
879
953
  const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
880
954
  const headers = {
@@ -971,6 +1045,27 @@ const serializeAws_restJson1ListClassificationJobsCommand = async (input, contex
971
1045
  });
972
1046
  };
973
1047
  exports.serializeAws_restJson1ListClassificationJobsCommand = serializeAws_restJson1ListClassificationJobsCommand;
1048
+ const serializeAws_restJson1ListClassificationScopesCommand = async (input, context) => {
1049
+ const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
1050
+ const headers = {};
1051
+ const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/classification-scopes";
1052
+ const query = map({
1053
+ name: [, input.name],
1054
+ nextToken: [, input.nextToken],
1055
+ });
1056
+ let body;
1057
+ return new protocol_http_1.HttpRequest({
1058
+ protocol,
1059
+ hostname,
1060
+ port,
1061
+ method: "GET",
1062
+ headers,
1063
+ path: resolvedPath,
1064
+ query,
1065
+ body,
1066
+ });
1067
+ };
1068
+ exports.serializeAws_restJson1ListClassificationScopesCommand = serializeAws_restJson1ListClassificationScopesCommand;
974
1069
  const serializeAws_restJson1ListCustomDataIdentifiersCommand = async (input, context) => {
975
1070
  const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
976
1071
  const headers = {
@@ -1127,6 +1222,70 @@ const serializeAws_restJson1ListOrganizationAdminAccountsCommand = async (input,
1127
1222
  });
1128
1223
  };
1129
1224
  exports.serializeAws_restJson1ListOrganizationAdminAccountsCommand = serializeAws_restJson1ListOrganizationAdminAccountsCommand;
1225
+ const serializeAws_restJson1ListResourceProfileArtifactsCommand = async (input, context) => {
1226
+ const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
1227
+ const headers = {};
1228
+ const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/resource-profiles/artifacts";
1229
+ const query = map({
1230
+ nextToken: [, input.nextToken],
1231
+ resourceArn: [, (0, smithy_client_1.expectNonNull)(input.resourceArn, `resourceArn`)],
1232
+ });
1233
+ let body;
1234
+ return new protocol_http_1.HttpRequest({
1235
+ protocol,
1236
+ hostname,
1237
+ port,
1238
+ method: "GET",
1239
+ headers,
1240
+ path: resolvedPath,
1241
+ query,
1242
+ body,
1243
+ });
1244
+ };
1245
+ exports.serializeAws_restJson1ListResourceProfileArtifactsCommand = serializeAws_restJson1ListResourceProfileArtifactsCommand;
1246
+ const serializeAws_restJson1ListResourceProfileDetectionsCommand = async (input, context) => {
1247
+ const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
1248
+ const headers = {};
1249
+ const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/resource-profiles/detections";
1250
+ const query = map({
1251
+ maxResults: [() => input.maxResults !== void 0, () => input.maxResults.toString()],
1252
+ nextToken: [, input.nextToken],
1253
+ resourceArn: [, (0, smithy_client_1.expectNonNull)(input.resourceArn, `resourceArn`)],
1254
+ });
1255
+ let body;
1256
+ return new protocol_http_1.HttpRequest({
1257
+ protocol,
1258
+ hostname,
1259
+ port,
1260
+ method: "GET",
1261
+ headers,
1262
+ path: resolvedPath,
1263
+ query,
1264
+ body,
1265
+ });
1266
+ };
1267
+ exports.serializeAws_restJson1ListResourceProfileDetectionsCommand = serializeAws_restJson1ListResourceProfileDetectionsCommand;
1268
+ const serializeAws_restJson1ListSensitivityInspectionTemplatesCommand = async (input, context) => {
1269
+ const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
1270
+ const headers = {};
1271
+ const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/templates/sensitivity-inspections";
1272
+ const query = map({
1273
+ maxResults: [() => input.maxResults !== void 0, () => input.maxResults.toString()],
1274
+ nextToken: [, input.nextToken],
1275
+ });
1276
+ let body;
1277
+ return new protocol_http_1.HttpRequest({
1278
+ protocol,
1279
+ hostname,
1280
+ port,
1281
+ method: "GET",
1282
+ headers,
1283
+ path: resolvedPath,
1284
+ query,
1285
+ body,
1286
+ });
1287
+ };
1288
+ exports.serializeAws_restJson1ListSensitivityInspectionTemplatesCommand = serializeAws_restJson1ListSensitivityInspectionTemplatesCommand;
1130
1289
  const serializeAws_restJson1ListTagsForResourceCommand = async (input, context) => {
1131
1290
  const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
1132
1291
  const headers = {};
@@ -1274,7 +1433,10 @@ const serializeAws_restJson1UntagResourceCommand = async (input, context) => {
1274
1433
  let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/tags/{resourceArn}";
1275
1434
  resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "resourceArn", () => input.resourceArn, "{resourceArn}", false);
1276
1435
  const query = map({
1277
- tagKeys: [() => input.tagKeys !== void 0, () => (input.tagKeys || []).map((_entry) => _entry)],
1436
+ tagKeys: [
1437
+ (0, smithy_client_1.expectNonNull)(input.tagKeys, `tagKeys`) != null,
1438
+ () => (input.tagKeys || []).map((_entry) => _entry),
1439
+ ],
1278
1440
  });
1279
1441
  let body;
1280
1442
  return new protocol_http_1.HttpRequest({
@@ -1313,6 +1475,27 @@ const serializeAws_restJson1UpdateAllowListCommand = async (input, context) => {
1313
1475
  });
1314
1476
  };
1315
1477
  exports.serializeAws_restJson1UpdateAllowListCommand = serializeAws_restJson1UpdateAllowListCommand;
1478
+ const serializeAws_restJson1UpdateAutomatedDiscoveryConfigurationCommand = async (input, context) => {
1479
+ const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
1480
+ const headers = {
1481
+ "content-type": "application/json",
1482
+ };
1483
+ const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/automated-discovery/configuration";
1484
+ let body;
1485
+ body = JSON.stringify({
1486
+ ...(input.status != null && { status: input.status }),
1487
+ });
1488
+ return new protocol_http_1.HttpRequest({
1489
+ protocol,
1490
+ hostname,
1491
+ port,
1492
+ method: "PUT",
1493
+ headers,
1494
+ path: resolvedPath,
1495
+ body,
1496
+ });
1497
+ };
1498
+ exports.serializeAws_restJson1UpdateAutomatedDiscoveryConfigurationCommand = serializeAws_restJson1UpdateAutomatedDiscoveryConfigurationCommand;
1316
1499
  const serializeAws_restJson1UpdateClassificationJobCommand = async (input, context) => {
1317
1500
  const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
1318
1501
  const headers = {
@@ -1335,6 +1518,28 @@ const serializeAws_restJson1UpdateClassificationJobCommand = async (input, conte
1335
1518
  });
1336
1519
  };
1337
1520
  exports.serializeAws_restJson1UpdateClassificationJobCommand = serializeAws_restJson1UpdateClassificationJobCommand;
1521
+ const serializeAws_restJson1UpdateClassificationScopeCommand = async (input, context) => {
1522
+ const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
1523
+ const headers = {
1524
+ "content-type": "application/json",
1525
+ };
1526
+ let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/classification-scopes/{id}";
1527
+ resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "id", () => input.id, "{id}", false);
1528
+ let body;
1529
+ body = JSON.stringify({
1530
+ ...(input.s3 != null && { s3: serializeAws_restJson1S3ClassificationScopeUpdate(input.s3, context) }),
1531
+ });
1532
+ return new protocol_http_1.HttpRequest({
1533
+ protocol,
1534
+ hostname,
1535
+ port,
1536
+ method: "PATCH",
1537
+ headers,
1538
+ path: resolvedPath,
1539
+ body,
1540
+ });
1541
+ };
1542
+ exports.serializeAws_restJson1UpdateClassificationScopeCommand = serializeAws_restJson1UpdateClassificationScopeCommand;
1338
1543
  const serializeAws_restJson1UpdateFindingsFilterCommand = async (input, context) => {
1339
1544
  const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
1340
1545
  const headers = {
@@ -1429,6 +1634,58 @@ const serializeAws_restJson1UpdateOrganizationConfigurationCommand = async (inpu
1429
1634
  });
1430
1635
  };
1431
1636
  exports.serializeAws_restJson1UpdateOrganizationConfigurationCommand = serializeAws_restJson1UpdateOrganizationConfigurationCommand;
1637
+ const serializeAws_restJson1UpdateResourceProfileCommand = async (input, context) => {
1638
+ const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
1639
+ const headers = {
1640
+ "content-type": "application/json",
1641
+ };
1642
+ const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/resource-profiles";
1643
+ const query = map({
1644
+ resourceArn: [, (0, smithy_client_1.expectNonNull)(input.resourceArn, `resourceArn`)],
1645
+ });
1646
+ let body;
1647
+ body = JSON.stringify({
1648
+ ...(input.sensitivityScoreOverride != null && { sensitivityScoreOverride: input.sensitivityScoreOverride }),
1649
+ });
1650
+ return new protocol_http_1.HttpRequest({
1651
+ protocol,
1652
+ hostname,
1653
+ port,
1654
+ method: "PATCH",
1655
+ headers,
1656
+ path: resolvedPath,
1657
+ query,
1658
+ body,
1659
+ });
1660
+ };
1661
+ exports.serializeAws_restJson1UpdateResourceProfileCommand = serializeAws_restJson1UpdateResourceProfileCommand;
1662
+ const serializeAws_restJson1UpdateResourceProfileDetectionsCommand = async (input, context) => {
1663
+ const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
1664
+ const headers = {
1665
+ "content-type": "application/json",
1666
+ };
1667
+ const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/resource-profiles/detections";
1668
+ const query = map({
1669
+ resourceArn: [, (0, smithy_client_1.expectNonNull)(input.resourceArn, `resourceArn`)],
1670
+ });
1671
+ let body;
1672
+ body = JSON.stringify({
1673
+ ...(input.suppressDataIdentifiers != null && {
1674
+ suppressDataIdentifiers: serializeAws_restJson1__listOfSuppressDataIdentifier(input.suppressDataIdentifiers, context),
1675
+ }),
1676
+ });
1677
+ return new protocol_http_1.HttpRequest({
1678
+ protocol,
1679
+ hostname,
1680
+ port,
1681
+ method: "PATCH",
1682
+ headers,
1683
+ path: resolvedPath,
1684
+ query,
1685
+ body,
1686
+ });
1687
+ };
1688
+ exports.serializeAws_restJson1UpdateResourceProfileDetectionsCommand = serializeAws_restJson1UpdateResourceProfileDetectionsCommand;
1432
1689
  const serializeAws_restJson1UpdateRevealConfigurationCommand = async (input, context) => {
1433
1690
  const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
1434
1691
  const headers = {
@@ -1452,6 +1709,34 @@ const serializeAws_restJson1UpdateRevealConfigurationCommand = async (input, con
1452
1709
  });
1453
1710
  };
1454
1711
  exports.serializeAws_restJson1UpdateRevealConfigurationCommand = serializeAws_restJson1UpdateRevealConfigurationCommand;
1712
+ const serializeAws_restJson1UpdateSensitivityInspectionTemplateCommand = async (input, context) => {
1713
+ const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
1714
+ const headers = {
1715
+ "content-type": "application/json",
1716
+ };
1717
+ let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/templates/sensitivity-inspections/{id}";
1718
+ resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "id", () => input.id, "{id}", false);
1719
+ let body;
1720
+ body = JSON.stringify({
1721
+ ...(input.description != null && { description: input.description }),
1722
+ ...(input.excludes != null && {
1723
+ excludes: serializeAws_restJson1SensitivityInspectionTemplateExcludes(input.excludes, context),
1724
+ }),
1725
+ ...(input.includes != null && {
1726
+ includes: serializeAws_restJson1SensitivityInspectionTemplateIncludes(input.includes, context),
1727
+ }),
1728
+ });
1729
+ return new protocol_http_1.HttpRequest({
1730
+ protocol,
1731
+ hostname,
1732
+ port,
1733
+ method: "PUT",
1734
+ headers,
1735
+ path: resolvedPath,
1736
+ body,
1737
+ });
1738
+ };
1739
+ exports.serializeAws_restJson1UpdateSensitivityInspectionTemplateCommand = serializeAws_restJson1UpdateSensitivityInspectionTemplateCommand;
1455
1740
  const deserializeAws_restJson1AcceptInvitationCommand = async (output, context) => {
1456
1741
  if (output.statusCode !== 200 && output.statusCode >= 300) {
1457
1742
  return deserializeAws_restJson1AcceptInvitationCommandError(output, context);
@@ -2907,41 +3192,102 @@ const deserializeAws_restJson1GetAllowListCommandError = async (output, context)
2907
3192
  });
2908
3193
  }
2909
3194
  };
2910
- const deserializeAws_restJson1GetBucketStatisticsCommand = async (output, context) => {
3195
+ const deserializeAws_restJson1GetAutomatedDiscoveryConfigurationCommand = async (output, context) => {
2911
3196
  if (output.statusCode !== 200 && output.statusCode >= 300) {
2912
- return deserializeAws_restJson1GetBucketStatisticsCommandError(output, context);
3197
+ return deserializeAws_restJson1GetAutomatedDiscoveryConfigurationCommandError(output, context);
2913
3198
  }
2914
3199
  const contents = map({
2915
3200
  $metadata: deserializeMetadata(output),
2916
3201
  });
2917
3202
  const data = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.expectObject)(await parseBody(output.body, context)), "body");
2918
- if (data.bucketCount != null) {
2919
- contents.bucketCount = (0, smithy_client_1.expectLong)(data.bucketCount);
2920
- }
2921
- if (data.bucketCountByEffectivePermission != null) {
2922
- contents.bucketCountByEffectivePermission = deserializeAws_restJson1BucketCountByEffectivePermission(data.bucketCountByEffectivePermission, context);
2923
- }
2924
- if (data.bucketCountByEncryptionType != null) {
2925
- contents.bucketCountByEncryptionType = deserializeAws_restJson1BucketCountByEncryptionType(data.bucketCountByEncryptionType, context);
3203
+ if (data.classificationScopeId != null) {
3204
+ contents.classificationScopeId = (0, smithy_client_1.expectString)(data.classificationScopeId);
2926
3205
  }
2927
- if (data.bucketCountByObjectEncryptionRequirement != null) {
2928
- contents.bucketCountByObjectEncryptionRequirement =
2929
- deserializeAws_restJson1BucketCountPolicyAllowsUnencryptedObjectUploads(data.bucketCountByObjectEncryptionRequirement, context);
2930
- }
2931
- if (data.bucketCountBySharedAccessType != null) {
2932
- contents.bucketCountBySharedAccessType = deserializeAws_restJson1BucketCountBySharedAccessType(data.bucketCountBySharedAccessType, context);
3206
+ if (data.disabledAt != null) {
3207
+ contents.disabledAt = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseRfc3339DateTime)(data.disabledAt));
2933
3208
  }
2934
- if (data.classifiableObjectCount != null) {
2935
- contents.classifiableObjectCount = (0, smithy_client_1.expectLong)(data.classifiableObjectCount);
3209
+ if (data.firstEnabledAt != null) {
3210
+ contents.firstEnabledAt = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseRfc3339DateTime)(data.firstEnabledAt));
2936
3211
  }
2937
- if (data.classifiableSizeInBytes != null) {
2938
- contents.classifiableSizeInBytes = (0, smithy_client_1.expectLong)(data.classifiableSizeInBytes);
3212
+ if (data.lastUpdatedAt != null) {
3213
+ contents.lastUpdatedAt = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseRfc3339DateTime)(data.lastUpdatedAt));
2939
3214
  }
2940
- if (data.lastUpdated != null) {
2941
- contents.lastUpdated = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseRfc3339DateTime)(data.lastUpdated));
3215
+ if (data.sensitivityInspectionTemplateId != null) {
3216
+ contents.sensitivityInspectionTemplateId = (0, smithy_client_1.expectString)(data.sensitivityInspectionTemplateId);
2942
3217
  }
2943
- if (data.objectCount != null) {
2944
- contents.objectCount = (0, smithy_client_1.expectLong)(data.objectCount);
3218
+ if (data.status != null) {
3219
+ contents.status = (0, smithy_client_1.expectString)(data.status);
3220
+ }
3221
+ return contents;
3222
+ };
3223
+ exports.deserializeAws_restJson1GetAutomatedDiscoveryConfigurationCommand = deserializeAws_restJson1GetAutomatedDiscoveryConfigurationCommand;
3224
+ const deserializeAws_restJson1GetAutomatedDiscoveryConfigurationCommandError = async (output, context) => {
3225
+ const parsedOutput = {
3226
+ ...output,
3227
+ body: await parseErrorBody(output.body, context),
3228
+ };
3229
+ const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
3230
+ switch (errorCode) {
3231
+ case "AccessDeniedException":
3232
+ case "com.amazonaws.macie2#AccessDeniedException":
3233
+ throw await deserializeAws_restJson1AccessDeniedExceptionResponse(parsedOutput, context);
3234
+ case "InternalServerException":
3235
+ case "com.amazonaws.macie2#InternalServerException":
3236
+ throw await deserializeAws_restJson1InternalServerExceptionResponse(parsedOutput, context);
3237
+ case "ThrottlingException":
3238
+ case "com.amazonaws.macie2#ThrottlingException":
3239
+ throw await deserializeAws_restJson1ThrottlingExceptionResponse(parsedOutput, context);
3240
+ case "ValidationException":
3241
+ case "com.amazonaws.macie2#ValidationException":
3242
+ throw await deserializeAws_restJson1ValidationExceptionResponse(parsedOutput, context);
3243
+ default:
3244
+ const parsedBody = parsedOutput.body;
3245
+ (0, smithy_client_1.throwDefaultError)({
3246
+ output,
3247
+ parsedBody,
3248
+ exceptionCtor: Macie2ServiceException_1.Macie2ServiceException,
3249
+ errorCode,
3250
+ });
3251
+ }
3252
+ };
3253
+ const deserializeAws_restJson1GetBucketStatisticsCommand = async (output, context) => {
3254
+ if (output.statusCode !== 200 && output.statusCode >= 300) {
3255
+ return deserializeAws_restJson1GetBucketStatisticsCommandError(output, context);
3256
+ }
3257
+ const contents = map({
3258
+ $metadata: deserializeMetadata(output),
3259
+ });
3260
+ const data = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.expectObject)(await parseBody(output.body, context)), "body");
3261
+ if (data.bucketCount != null) {
3262
+ contents.bucketCount = (0, smithy_client_1.expectLong)(data.bucketCount);
3263
+ }
3264
+ if (data.bucketCountByEffectivePermission != null) {
3265
+ contents.bucketCountByEffectivePermission = deserializeAws_restJson1BucketCountByEffectivePermission(data.bucketCountByEffectivePermission, context);
3266
+ }
3267
+ if (data.bucketCountByEncryptionType != null) {
3268
+ contents.bucketCountByEncryptionType = deserializeAws_restJson1BucketCountByEncryptionType(data.bucketCountByEncryptionType, context);
3269
+ }
3270
+ if (data.bucketCountByObjectEncryptionRequirement != null) {
3271
+ contents.bucketCountByObjectEncryptionRequirement =
3272
+ deserializeAws_restJson1BucketCountPolicyAllowsUnencryptedObjectUploads(data.bucketCountByObjectEncryptionRequirement, context);
3273
+ }
3274
+ if (data.bucketCountBySharedAccessType != null) {
3275
+ contents.bucketCountBySharedAccessType = deserializeAws_restJson1BucketCountBySharedAccessType(data.bucketCountBySharedAccessType, context);
3276
+ }
3277
+ if (data.bucketStatisticsBySensitivity != null) {
3278
+ contents.bucketStatisticsBySensitivity = deserializeAws_restJson1BucketStatisticsBySensitivity(data.bucketStatisticsBySensitivity, context);
3279
+ }
3280
+ if (data.classifiableObjectCount != null) {
3281
+ contents.classifiableObjectCount = (0, smithy_client_1.expectLong)(data.classifiableObjectCount);
3282
+ }
3283
+ if (data.classifiableSizeInBytes != null) {
3284
+ contents.classifiableSizeInBytes = (0, smithy_client_1.expectLong)(data.classifiableSizeInBytes);
3285
+ }
3286
+ if (data.lastUpdated != null) {
3287
+ contents.lastUpdated = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseRfc3339DateTime)(data.lastUpdated));
3288
+ }
3289
+ if (data.objectCount != null) {
3290
+ contents.objectCount = (0, smithy_client_1.expectLong)(data.objectCount);
2945
3291
  }
2946
3292
  if (data.sizeInBytes != null) {
2947
3293
  contents.sizeInBytes = (0, smithy_client_1.expectLong)(data.sizeInBytes);
@@ -3048,6 +3394,58 @@ const deserializeAws_restJson1GetClassificationExportConfigurationCommandError =
3048
3394
  });
3049
3395
  }
3050
3396
  };
3397
+ const deserializeAws_restJson1GetClassificationScopeCommand = async (output, context) => {
3398
+ if (output.statusCode !== 200 && output.statusCode >= 300) {
3399
+ return deserializeAws_restJson1GetClassificationScopeCommandError(output, context);
3400
+ }
3401
+ const contents = map({
3402
+ $metadata: deserializeMetadata(output),
3403
+ });
3404
+ const data = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.expectObject)(await parseBody(output.body, context)), "body");
3405
+ if (data.id != null) {
3406
+ contents.id = (0, smithy_client_1.expectString)(data.id);
3407
+ }
3408
+ if (data.name != null) {
3409
+ contents.name = (0, smithy_client_1.expectString)(data.name);
3410
+ }
3411
+ if (data.s3 != null) {
3412
+ contents.s3 = deserializeAws_restJson1S3ClassificationScope(data.s3, context);
3413
+ }
3414
+ return contents;
3415
+ };
3416
+ exports.deserializeAws_restJson1GetClassificationScopeCommand = deserializeAws_restJson1GetClassificationScopeCommand;
3417
+ const deserializeAws_restJson1GetClassificationScopeCommandError = async (output, context) => {
3418
+ const parsedOutput = {
3419
+ ...output,
3420
+ body: await parseErrorBody(output.body, context),
3421
+ };
3422
+ const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
3423
+ switch (errorCode) {
3424
+ case "AccessDeniedException":
3425
+ case "com.amazonaws.macie2#AccessDeniedException":
3426
+ throw await deserializeAws_restJson1AccessDeniedExceptionResponse(parsedOutput, context);
3427
+ case "InternalServerException":
3428
+ case "com.amazonaws.macie2#InternalServerException":
3429
+ throw await deserializeAws_restJson1InternalServerExceptionResponse(parsedOutput, context);
3430
+ case "ResourceNotFoundException":
3431
+ case "com.amazonaws.macie2#ResourceNotFoundException":
3432
+ throw await deserializeAws_restJson1ResourceNotFoundExceptionResponse(parsedOutput, context);
3433
+ case "ThrottlingException":
3434
+ case "com.amazonaws.macie2#ThrottlingException":
3435
+ throw await deserializeAws_restJson1ThrottlingExceptionResponse(parsedOutput, context);
3436
+ case "ValidationException":
3437
+ case "com.amazonaws.macie2#ValidationException":
3438
+ throw await deserializeAws_restJson1ValidationExceptionResponse(parsedOutput, context);
3439
+ default:
3440
+ const parsedBody = parsedOutput.body;
3441
+ (0, smithy_client_1.throwDefaultError)({
3442
+ output,
3443
+ parsedBody,
3444
+ exceptionCtor: Macie2ServiceException_1.Macie2ServiceException,
3445
+ errorCode,
3446
+ });
3447
+ }
3448
+ };
3051
3449
  const deserializeAws_restJson1GetCustomDataIdentifierCommand = async (output, context) => {
3052
3450
  if (output.statusCode !== 200 && output.statusCode >= 300) {
3053
3451
  return deserializeAws_restJson1GetCustomDataIdentifierCommandError(output, context);
@@ -3606,6 +4004,64 @@ const deserializeAws_restJson1GetMemberCommandError = async (output, context) =>
3606
4004
  });
3607
4005
  }
3608
4006
  };
4007
+ const deserializeAws_restJson1GetResourceProfileCommand = async (output, context) => {
4008
+ if (output.statusCode !== 200 && output.statusCode >= 300) {
4009
+ return deserializeAws_restJson1GetResourceProfileCommandError(output, context);
4010
+ }
4011
+ const contents = map({
4012
+ $metadata: deserializeMetadata(output),
4013
+ });
4014
+ const data = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.expectObject)(await parseBody(output.body, context)), "body");
4015
+ if (data.profileUpdatedAt != null) {
4016
+ contents.profileUpdatedAt = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseRfc3339DateTime)(data.profileUpdatedAt));
4017
+ }
4018
+ if (data.sensitivityScore != null) {
4019
+ contents.sensitivityScore = (0, smithy_client_1.expectInt32)(data.sensitivityScore);
4020
+ }
4021
+ if (data.sensitivityScoreOverridden != null) {
4022
+ contents.sensitivityScoreOverridden = (0, smithy_client_1.expectBoolean)(data.sensitivityScoreOverridden);
4023
+ }
4024
+ if (data.statistics != null) {
4025
+ contents.statistics = deserializeAws_restJson1ResourceStatistics(data.statistics, context);
4026
+ }
4027
+ return contents;
4028
+ };
4029
+ exports.deserializeAws_restJson1GetResourceProfileCommand = deserializeAws_restJson1GetResourceProfileCommand;
4030
+ const deserializeAws_restJson1GetResourceProfileCommandError = async (output, context) => {
4031
+ const parsedOutput = {
4032
+ ...output,
4033
+ body: await parseErrorBody(output.body, context),
4034
+ };
4035
+ const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
4036
+ switch (errorCode) {
4037
+ case "AccessDeniedException":
4038
+ case "com.amazonaws.macie2#AccessDeniedException":
4039
+ throw await deserializeAws_restJson1AccessDeniedExceptionResponse(parsedOutput, context);
4040
+ case "InternalServerException":
4041
+ case "com.amazonaws.macie2#InternalServerException":
4042
+ throw await deserializeAws_restJson1InternalServerExceptionResponse(parsedOutput, context);
4043
+ case "ResourceNotFoundException":
4044
+ case "com.amazonaws.macie2#ResourceNotFoundException":
4045
+ throw await deserializeAws_restJson1ResourceNotFoundExceptionResponse(parsedOutput, context);
4046
+ case "ServiceQuotaExceededException":
4047
+ case "com.amazonaws.macie2#ServiceQuotaExceededException":
4048
+ throw await deserializeAws_restJson1ServiceQuotaExceededExceptionResponse(parsedOutput, context);
4049
+ case "ThrottlingException":
4050
+ case "com.amazonaws.macie2#ThrottlingException":
4051
+ throw await deserializeAws_restJson1ThrottlingExceptionResponse(parsedOutput, context);
4052
+ case "ValidationException":
4053
+ case "com.amazonaws.macie2#ValidationException":
4054
+ throw await deserializeAws_restJson1ValidationExceptionResponse(parsedOutput, context);
4055
+ default:
4056
+ const parsedBody = parsedOutput.body;
4057
+ (0, smithy_client_1.throwDefaultError)({
4058
+ output,
4059
+ parsedBody,
4060
+ exceptionCtor: Macie2ServiceException_1.Macie2ServiceException,
4061
+ errorCode,
4062
+ });
4063
+ }
4064
+ };
3609
4065
  const deserializeAws_restJson1GetRevealConfigurationCommand = async (output, context) => {
3610
4066
  if (output.statusCode !== 200 && output.statusCode >= 300) {
3611
4067
  return deserializeAws_restJson1GetRevealConfigurationCommandError(output, context);
@@ -3750,6 +4206,64 @@ const deserializeAws_restJson1GetSensitiveDataOccurrencesAvailabilityCommandErro
3750
4206
  });
3751
4207
  }
3752
4208
  };
4209
+ const deserializeAws_restJson1GetSensitivityInspectionTemplateCommand = async (output, context) => {
4210
+ if (output.statusCode !== 200 && output.statusCode >= 300) {
4211
+ return deserializeAws_restJson1GetSensitivityInspectionTemplateCommandError(output, context);
4212
+ }
4213
+ const contents = map({
4214
+ $metadata: deserializeMetadata(output),
4215
+ });
4216
+ const data = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.expectObject)(await parseBody(output.body, context)), "body");
4217
+ if (data.description != null) {
4218
+ contents.description = (0, smithy_client_1.expectString)(data.description);
4219
+ }
4220
+ if (data.excludes != null) {
4221
+ contents.excludes = deserializeAws_restJson1SensitivityInspectionTemplateExcludes(data.excludes, context);
4222
+ }
4223
+ if (data.includes != null) {
4224
+ contents.includes = deserializeAws_restJson1SensitivityInspectionTemplateIncludes(data.includes, context);
4225
+ }
4226
+ if (data.name != null) {
4227
+ contents.name = (0, smithy_client_1.expectString)(data.name);
4228
+ }
4229
+ if (data.sensitivityInspectionTemplateId != null) {
4230
+ contents.sensitivityInspectionTemplateId = (0, smithy_client_1.expectString)(data.sensitivityInspectionTemplateId);
4231
+ }
4232
+ return contents;
4233
+ };
4234
+ exports.deserializeAws_restJson1GetSensitivityInspectionTemplateCommand = deserializeAws_restJson1GetSensitivityInspectionTemplateCommand;
4235
+ const deserializeAws_restJson1GetSensitivityInspectionTemplateCommandError = async (output, context) => {
4236
+ const parsedOutput = {
4237
+ ...output,
4238
+ body: await parseErrorBody(output.body, context),
4239
+ };
4240
+ const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
4241
+ switch (errorCode) {
4242
+ case "AccessDeniedException":
4243
+ case "com.amazonaws.macie2#AccessDeniedException":
4244
+ throw await deserializeAws_restJson1AccessDeniedExceptionResponse(parsedOutput, context);
4245
+ case "InternalServerException":
4246
+ case "com.amazonaws.macie2#InternalServerException":
4247
+ throw await deserializeAws_restJson1InternalServerExceptionResponse(parsedOutput, context);
4248
+ case "ResourceNotFoundException":
4249
+ case "com.amazonaws.macie2#ResourceNotFoundException":
4250
+ throw await deserializeAws_restJson1ResourceNotFoundExceptionResponse(parsedOutput, context);
4251
+ case "ThrottlingException":
4252
+ case "com.amazonaws.macie2#ThrottlingException":
4253
+ throw await deserializeAws_restJson1ThrottlingExceptionResponse(parsedOutput, context);
4254
+ case "ValidationException":
4255
+ case "com.amazonaws.macie2#ValidationException":
4256
+ throw await deserializeAws_restJson1ValidationExceptionResponse(parsedOutput, context);
4257
+ default:
4258
+ const parsedBody = parsedOutput.body;
4259
+ (0, smithy_client_1.throwDefaultError)({
4260
+ output,
4261
+ parsedBody,
4262
+ exceptionCtor: Macie2ServiceException_1.Macie2ServiceException,
4263
+ errorCode,
4264
+ });
4265
+ }
4266
+ };
3753
4267
  const deserializeAws_restJson1GetUsageStatisticsCommand = async (output, context) => {
3754
4268
  if (output.statusCode !== 200 && output.statusCode >= 300) {
3755
4269
  return deserializeAws_restJson1GetUsageStatisticsCommandError(output, context);
@@ -3964,6 +4478,52 @@ const deserializeAws_restJson1ListClassificationJobsCommandError = async (output
3964
4478
  });
3965
4479
  }
3966
4480
  };
4481
+ const deserializeAws_restJson1ListClassificationScopesCommand = async (output, context) => {
4482
+ if (output.statusCode !== 200 && output.statusCode >= 300) {
4483
+ return deserializeAws_restJson1ListClassificationScopesCommandError(output, context);
4484
+ }
4485
+ const contents = map({
4486
+ $metadata: deserializeMetadata(output),
4487
+ });
4488
+ const data = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.expectObject)(await parseBody(output.body, context)), "body");
4489
+ if (data.classificationScopes != null) {
4490
+ contents.classificationScopes = deserializeAws_restJson1__listOfClassificationScopeSummary(data.classificationScopes, context);
4491
+ }
4492
+ if (data.nextToken != null) {
4493
+ contents.nextToken = (0, smithy_client_1.expectString)(data.nextToken);
4494
+ }
4495
+ return contents;
4496
+ };
4497
+ exports.deserializeAws_restJson1ListClassificationScopesCommand = deserializeAws_restJson1ListClassificationScopesCommand;
4498
+ const deserializeAws_restJson1ListClassificationScopesCommandError = async (output, context) => {
4499
+ const parsedOutput = {
4500
+ ...output,
4501
+ body: await parseErrorBody(output.body, context),
4502
+ };
4503
+ const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
4504
+ switch (errorCode) {
4505
+ case "AccessDeniedException":
4506
+ case "com.amazonaws.macie2#AccessDeniedException":
4507
+ throw await deserializeAws_restJson1AccessDeniedExceptionResponse(parsedOutput, context);
4508
+ case "InternalServerException":
4509
+ case "com.amazonaws.macie2#InternalServerException":
4510
+ throw await deserializeAws_restJson1InternalServerExceptionResponse(parsedOutput, context);
4511
+ case "ThrottlingException":
4512
+ case "com.amazonaws.macie2#ThrottlingException":
4513
+ throw await deserializeAws_restJson1ThrottlingExceptionResponse(parsedOutput, context);
4514
+ case "ValidationException":
4515
+ case "com.amazonaws.macie2#ValidationException":
4516
+ throw await deserializeAws_restJson1ValidationExceptionResponse(parsedOutput, context);
4517
+ default:
4518
+ const parsedBody = parsedOutput.body;
4519
+ (0, smithy_client_1.throwDefaultError)({
4520
+ output,
4521
+ parsedBody,
4522
+ exceptionCtor: Macie2ServiceException_1.Macie2ServiceException,
4523
+ errorCode,
4524
+ });
4525
+ }
4526
+ };
3967
4527
  const deserializeAws_restJson1ListCustomDataIdentifiersCommand = async (output, context) => {
3968
4528
  if (output.statusCode !== 200 && output.statusCode >= 300) {
3969
4529
  return deserializeAws_restJson1ListCustomDataIdentifiersCommandError(output, context);
@@ -4325,20 +4885,170 @@ const deserializeAws_restJson1ListOrganizationAdminAccountsCommandError = async
4325
4885
  });
4326
4886
  }
4327
4887
  };
4328
- const deserializeAws_restJson1ListTagsForResourceCommand = async (output, context) => {
4888
+ const deserializeAws_restJson1ListResourceProfileArtifactsCommand = async (output, context) => {
4329
4889
  if (output.statusCode !== 200 && output.statusCode >= 300) {
4330
- return deserializeAws_restJson1ListTagsForResourceCommandError(output, context);
4890
+ return deserializeAws_restJson1ListResourceProfileArtifactsCommandError(output, context);
4331
4891
  }
4332
4892
  const contents = map({
4333
4893
  $metadata: deserializeMetadata(output),
4334
4894
  });
4335
4895
  const data = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.expectObject)(await parseBody(output.body, context)), "body");
4336
- if (data.tags != null) {
4337
- contents.tags = deserializeAws_restJson1TagMap(data.tags, context);
4896
+ if (data.artifacts != null) {
4897
+ contents.artifacts = deserializeAws_restJson1__listOfResourceProfileArtifact(data.artifacts, context);
4898
+ }
4899
+ if (data.nextToken != null) {
4900
+ contents.nextToken = (0, smithy_client_1.expectString)(data.nextToken);
4338
4901
  }
4339
4902
  return contents;
4340
4903
  };
4341
- exports.deserializeAws_restJson1ListTagsForResourceCommand = deserializeAws_restJson1ListTagsForResourceCommand;
4904
+ exports.deserializeAws_restJson1ListResourceProfileArtifactsCommand = deserializeAws_restJson1ListResourceProfileArtifactsCommand;
4905
+ const deserializeAws_restJson1ListResourceProfileArtifactsCommandError = async (output, context) => {
4906
+ const parsedOutput = {
4907
+ ...output,
4908
+ body: await parseErrorBody(output.body, context),
4909
+ };
4910
+ const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
4911
+ switch (errorCode) {
4912
+ case "AccessDeniedException":
4913
+ case "com.amazonaws.macie2#AccessDeniedException":
4914
+ throw await deserializeAws_restJson1AccessDeniedExceptionResponse(parsedOutput, context);
4915
+ case "InternalServerException":
4916
+ case "com.amazonaws.macie2#InternalServerException":
4917
+ throw await deserializeAws_restJson1InternalServerExceptionResponse(parsedOutput, context);
4918
+ case "ResourceNotFoundException":
4919
+ case "com.amazonaws.macie2#ResourceNotFoundException":
4920
+ throw await deserializeAws_restJson1ResourceNotFoundExceptionResponse(parsedOutput, context);
4921
+ case "ThrottlingException":
4922
+ case "com.amazonaws.macie2#ThrottlingException":
4923
+ throw await deserializeAws_restJson1ThrottlingExceptionResponse(parsedOutput, context);
4924
+ case "ValidationException":
4925
+ case "com.amazonaws.macie2#ValidationException":
4926
+ throw await deserializeAws_restJson1ValidationExceptionResponse(parsedOutput, context);
4927
+ default:
4928
+ const parsedBody = parsedOutput.body;
4929
+ (0, smithy_client_1.throwDefaultError)({
4930
+ output,
4931
+ parsedBody,
4932
+ exceptionCtor: Macie2ServiceException_1.Macie2ServiceException,
4933
+ errorCode,
4934
+ });
4935
+ }
4936
+ };
4937
+ const deserializeAws_restJson1ListResourceProfileDetectionsCommand = async (output, context) => {
4938
+ if (output.statusCode !== 200 && output.statusCode >= 300) {
4939
+ return deserializeAws_restJson1ListResourceProfileDetectionsCommandError(output, context);
4940
+ }
4941
+ const contents = map({
4942
+ $metadata: deserializeMetadata(output),
4943
+ });
4944
+ const data = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.expectObject)(await parseBody(output.body, context)), "body");
4945
+ if (data.detections != null) {
4946
+ contents.detections = deserializeAws_restJson1__listOfDetection(data.detections, context);
4947
+ }
4948
+ if (data.nextToken != null) {
4949
+ contents.nextToken = (0, smithy_client_1.expectString)(data.nextToken);
4950
+ }
4951
+ return contents;
4952
+ };
4953
+ exports.deserializeAws_restJson1ListResourceProfileDetectionsCommand = deserializeAws_restJson1ListResourceProfileDetectionsCommand;
4954
+ const deserializeAws_restJson1ListResourceProfileDetectionsCommandError = async (output, context) => {
4955
+ const parsedOutput = {
4956
+ ...output,
4957
+ body: await parseErrorBody(output.body, context),
4958
+ };
4959
+ const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
4960
+ switch (errorCode) {
4961
+ case "AccessDeniedException":
4962
+ case "com.amazonaws.macie2#AccessDeniedException":
4963
+ throw await deserializeAws_restJson1AccessDeniedExceptionResponse(parsedOutput, context);
4964
+ case "InternalServerException":
4965
+ case "com.amazonaws.macie2#InternalServerException":
4966
+ throw await deserializeAws_restJson1InternalServerExceptionResponse(parsedOutput, context);
4967
+ case "ResourceNotFoundException":
4968
+ case "com.amazonaws.macie2#ResourceNotFoundException":
4969
+ throw await deserializeAws_restJson1ResourceNotFoundExceptionResponse(parsedOutput, context);
4970
+ case "ServiceQuotaExceededException":
4971
+ case "com.amazonaws.macie2#ServiceQuotaExceededException":
4972
+ throw await deserializeAws_restJson1ServiceQuotaExceededExceptionResponse(parsedOutput, context);
4973
+ case "ThrottlingException":
4974
+ case "com.amazonaws.macie2#ThrottlingException":
4975
+ throw await deserializeAws_restJson1ThrottlingExceptionResponse(parsedOutput, context);
4976
+ case "ValidationException":
4977
+ case "com.amazonaws.macie2#ValidationException":
4978
+ throw await deserializeAws_restJson1ValidationExceptionResponse(parsedOutput, context);
4979
+ default:
4980
+ const parsedBody = parsedOutput.body;
4981
+ (0, smithy_client_1.throwDefaultError)({
4982
+ output,
4983
+ parsedBody,
4984
+ exceptionCtor: Macie2ServiceException_1.Macie2ServiceException,
4985
+ errorCode,
4986
+ });
4987
+ }
4988
+ };
4989
+ const deserializeAws_restJson1ListSensitivityInspectionTemplatesCommand = async (output, context) => {
4990
+ if (output.statusCode !== 200 && output.statusCode >= 300) {
4991
+ return deserializeAws_restJson1ListSensitivityInspectionTemplatesCommandError(output, context);
4992
+ }
4993
+ const contents = map({
4994
+ $metadata: deserializeMetadata(output),
4995
+ });
4996
+ const data = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.expectObject)(await parseBody(output.body, context)), "body");
4997
+ if (data.nextToken != null) {
4998
+ contents.nextToken = (0, smithy_client_1.expectString)(data.nextToken);
4999
+ }
5000
+ if (data.sensitivityInspectionTemplates != null) {
5001
+ contents.sensitivityInspectionTemplates = deserializeAws_restJson1__listOfSensitivityInspectionTemplatesEntry(data.sensitivityInspectionTemplates, context);
5002
+ }
5003
+ return contents;
5004
+ };
5005
+ exports.deserializeAws_restJson1ListSensitivityInspectionTemplatesCommand = deserializeAws_restJson1ListSensitivityInspectionTemplatesCommand;
5006
+ const deserializeAws_restJson1ListSensitivityInspectionTemplatesCommandError = async (output, context) => {
5007
+ const parsedOutput = {
5008
+ ...output,
5009
+ body: await parseErrorBody(output.body, context),
5010
+ };
5011
+ const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
5012
+ switch (errorCode) {
5013
+ case "AccessDeniedException":
5014
+ case "com.amazonaws.macie2#AccessDeniedException":
5015
+ throw await deserializeAws_restJson1AccessDeniedExceptionResponse(parsedOutput, context);
5016
+ case "InternalServerException":
5017
+ case "com.amazonaws.macie2#InternalServerException":
5018
+ throw await deserializeAws_restJson1InternalServerExceptionResponse(parsedOutput, context);
5019
+ case "ServiceQuotaExceededException":
5020
+ case "com.amazonaws.macie2#ServiceQuotaExceededException":
5021
+ throw await deserializeAws_restJson1ServiceQuotaExceededExceptionResponse(parsedOutput, context);
5022
+ case "ThrottlingException":
5023
+ case "com.amazonaws.macie2#ThrottlingException":
5024
+ throw await deserializeAws_restJson1ThrottlingExceptionResponse(parsedOutput, context);
5025
+ case "ValidationException":
5026
+ case "com.amazonaws.macie2#ValidationException":
5027
+ throw await deserializeAws_restJson1ValidationExceptionResponse(parsedOutput, context);
5028
+ default:
5029
+ const parsedBody = parsedOutput.body;
5030
+ (0, smithy_client_1.throwDefaultError)({
5031
+ output,
5032
+ parsedBody,
5033
+ exceptionCtor: Macie2ServiceException_1.Macie2ServiceException,
5034
+ errorCode,
5035
+ });
5036
+ }
5037
+ };
5038
+ const deserializeAws_restJson1ListTagsForResourceCommand = async (output, context) => {
5039
+ if (output.statusCode !== 200 && output.statusCode >= 300) {
5040
+ return deserializeAws_restJson1ListTagsForResourceCommandError(output, context);
5041
+ }
5042
+ const contents = map({
5043
+ $metadata: deserializeMetadata(output),
5044
+ });
5045
+ const data = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.expectObject)(await parseBody(output.body, context)), "body");
5046
+ if (data.tags != null) {
5047
+ contents.tags = deserializeAws_restJson1TagMap(data.tags, context);
5048
+ }
5049
+ return contents;
5050
+ };
5051
+ exports.deserializeAws_restJson1ListTagsForResourceCommand = deserializeAws_restJson1ListTagsForResourceCommand;
4342
5052
  const deserializeAws_restJson1ListTagsForResourceCommandError = async (output, context) => {
4343
5053
  const parsedOutput = {
4344
5054
  ...output,
@@ -4611,9 +5321,190 @@ const deserializeAws_restJson1UntagResourceCommandError = async (output, context
4611
5321
  errorCode,
4612
5322
  });
4613
5323
  };
4614
- const deserializeAws_restJson1UpdateAllowListCommand = async (output, context) => {
5324
+ const deserializeAws_restJson1UpdateAllowListCommand = async (output, context) => {
5325
+ if (output.statusCode !== 200 && output.statusCode >= 300) {
5326
+ return deserializeAws_restJson1UpdateAllowListCommandError(output, context);
5327
+ }
5328
+ const contents = map({
5329
+ $metadata: deserializeMetadata(output),
5330
+ });
5331
+ const data = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.expectObject)(await parseBody(output.body, context)), "body");
5332
+ if (data.arn != null) {
5333
+ contents.arn = (0, smithy_client_1.expectString)(data.arn);
5334
+ }
5335
+ if (data.id != null) {
5336
+ contents.id = (0, smithy_client_1.expectString)(data.id);
5337
+ }
5338
+ return contents;
5339
+ };
5340
+ exports.deserializeAws_restJson1UpdateAllowListCommand = deserializeAws_restJson1UpdateAllowListCommand;
5341
+ const deserializeAws_restJson1UpdateAllowListCommandError = async (output, context) => {
5342
+ const parsedOutput = {
5343
+ ...output,
5344
+ body: await parseErrorBody(output.body, context),
5345
+ };
5346
+ const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
5347
+ switch (errorCode) {
5348
+ case "AccessDeniedException":
5349
+ case "com.amazonaws.macie2#AccessDeniedException":
5350
+ throw await deserializeAws_restJson1AccessDeniedExceptionResponse(parsedOutput, context);
5351
+ case "InternalServerException":
5352
+ case "com.amazonaws.macie2#InternalServerException":
5353
+ throw await deserializeAws_restJson1InternalServerExceptionResponse(parsedOutput, context);
5354
+ case "ResourceNotFoundException":
5355
+ case "com.amazonaws.macie2#ResourceNotFoundException":
5356
+ throw await deserializeAws_restJson1ResourceNotFoundExceptionResponse(parsedOutput, context);
5357
+ case "ThrottlingException":
5358
+ case "com.amazonaws.macie2#ThrottlingException":
5359
+ throw await deserializeAws_restJson1ThrottlingExceptionResponse(parsedOutput, context);
5360
+ case "ValidationException":
5361
+ case "com.amazonaws.macie2#ValidationException":
5362
+ throw await deserializeAws_restJson1ValidationExceptionResponse(parsedOutput, context);
5363
+ default:
5364
+ const parsedBody = parsedOutput.body;
5365
+ (0, smithy_client_1.throwDefaultError)({
5366
+ output,
5367
+ parsedBody,
5368
+ exceptionCtor: Macie2ServiceException_1.Macie2ServiceException,
5369
+ errorCode,
5370
+ });
5371
+ }
5372
+ };
5373
+ const deserializeAws_restJson1UpdateAutomatedDiscoveryConfigurationCommand = async (output, context) => {
5374
+ if (output.statusCode !== 200 && output.statusCode >= 300) {
5375
+ return deserializeAws_restJson1UpdateAutomatedDiscoveryConfigurationCommandError(output, context);
5376
+ }
5377
+ const contents = map({
5378
+ $metadata: deserializeMetadata(output),
5379
+ });
5380
+ await collectBody(output.body, context);
5381
+ return contents;
5382
+ };
5383
+ exports.deserializeAws_restJson1UpdateAutomatedDiscoveryConfigurationCommand = deserializeAws_restJson1UpdateAutomatedDiscoveryConfigurationCommand;
5384
+ const deserializeAws_restJson1UpdateAutomatedDiscoveryConfigurationCommandError = async (output, context) => {
5385
+ const parsedOutput = {
5386
+ ...output,
5387
+ body: await parseErrorBody(output.body, context),
5388
+ };
5389
+ const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
5390
+ switch (errorCode) {
5391
+ case "AccessDeniedException":
5392
+ case "com.amazonaws.macie2#AccessDeniedException":
5393
+ throw await deserializeAws_restJson1AccessDeniedExceptionResponse(parsedOutput, context);
5394
+ case "InternalServerException":
5395
+ case "com.amazonaws.macie2#InternalServerException":
5396
+ throw await deserializeAws_restJson1InternalServerExceptionResponse(parsedOutput, context);
5397
+ case "ThrottlingException":
5398
+ case "com.amazonaws.macie2#ThrottlingException":
5399
+ throw await deserializeAws_restJson1ThrottlingExceptionResponse(parsedOutput, context);
5400
+ case "ValidationException":
5401
+ case "com.amazonaws.macie2#ValidationException":
5402
+ throw await deserializeAws_restJson1ValidationExceptionResponse(parsedOutput, context);
5403
+ default:
5404
+ const parsedBody = parsedOutput.body;
5405
+ (0, smithy_client_1.throwDefaultError)({
5406
+ output,
5407
+ parsedBody,
5408
+ exceptionCtor: Macie2ServiceException_1.Macie2ServiceException,
5409
+ errorCode,
5410
+ });
5411
+ }
5412
+ };
5413
+ const deserializeAws_restJson1UpdateClassificationJobCommand = async (output, context) => {
5414
+ if (output.statusCode !== 200 && output.statusCode >= 300) {
5415
+ return deserializeAws_restJson1UpdateClassificationJobCommandError(output, context);
5416
+ }
5417
+ const contents = map({
5418
+ $metadata: deserializeMetadata(output),
5419
+ });
5420
+ await collectBody(output.body, context);
5421
+ return contents;
5422
+ };
5423
+ exports.deserializeAws_restJson1UpdateClassificationJobCommand = deserializeAws_restJson1UpdateClassificationJobCommand;
5424
+ const deserializeAws_restJson1UpdateClassificationJobCommandError = async (output, context) => {
5425
+ const parsedOutput = {
5426
+ ...output,
5427
+ body: await parseErrorBody(output.body, context),
5428
+ };
5429
+ const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
5430
+ switch (errorCode) {
5431
+ case "AccessDeniedException":
5432
+ case "com.amazonaws.macie2#AccessDeniedException":
5433
+ throw await deserializeAws_restJson1AccessDeniedExceptionResponse(parsedOutput, context);
5434
+ case "ConflictException":
5435
+ case "com.amazonaws.macie2#ConflictException":
5436
+ throw await deserializeAws_restJson1ConflictExceptionResponse(parsedOutput, context);
5437
+ case "InternalServerException":
5438
+ case "com.amazonaws.macie2#InternalServerException":
5439
+ throw await deserializeAws_restJson1InternalServerExceptionResponse(parsedOutput, context);
5440
+ case "ResourceNotFoundException":
5441
+ case "com.amazonaws.macie2#ResourceNotFoundException":
5442
+ throw await deserializeAws_restJson1ResourceNotFoundExceptionResponse(parsedOutput, context);
5443
+ case "ServiceQuotaExceededException":
5444
+ case "com.amazonaws.macie2#ServiceQuotaExceededException":
5445
+ throw await deserializeAws_restJson1ServiceQuotaExceededExceptionResponse(parsedOutput, context);
5446
+ case "ThrottlingException":
5447
+ case "com.amazonaws.macie2#ThrottlingException":
5448
+ throw await deserializeAws_restJson1ThrottlingExceptionResponse(parsedOutput, context);
5449
+ case "ValidationException":
5450
+ case "com.amazonaws.macie2#ValidationException":
5451
+ throw await deserializeAws_restJson1ValidationExceptionResponse(parsedOutput, context);
5452
+ default:
5453
+ const parsedBody = parsedOutput.body;
5454
+ (0, smithy_client_1.throwDefaultError)({
5455
+ output,
5456
+ parsedBody,
5457
+ exceptionCtor: Macie2ServiceException_1.Macie2ServiceException,
5458
+ errorCode,
5459
+ });
5460
+ }
5461
+ };
5462
+ const deserializeAws_restJson1UpdateClassificationScopeCommand = async (output, context) => {
5463
+ if (output.statusCode !== 200 && output.statusCode >= 300) {
5464
+ return deserializeAws_restJson1UpdateClassificationScopeCommandError(output, context);
5465
+ }
5466
+ const contents = map({
5467
+ $metadata: deserializeMetadata(output),
5468
+ });
5469
+ await collectBody(output.body, context);
5470
+ return contents;
5471
+ };
5472
+ exports.deserializeAws_restJson1UpdateClassificationScopeCommand = deserializeAws_restJson1UpdateClassificationScopeCommand;
5473
+ const deserializeAws_restJson1UpdateClassificationScopeCommandError = async (output, context) => {
5474
+ const parsedOutput = {
5475
+ ...output,
5476
+ body: await parseErrorBody(output.body, context),
5477
+ };
5478
+ const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
5479
+ switch (errorCode) {
5480
+ case "AccessDeniedException":
5481
+ case "com.amazonaws.macie2#AccessDeniedException":
5482
+ throw await deserializeAws_restJson1AccessDeniedExceptionResponse(parsedOutput, context);
5483
+ case "InternalServerException":
5484
+ case "com.amazonaws.macie2#InternalServerException":
5485
+ throw await deserializeAws_restJson1InternalServerExceptionResponse(parsedOutput, context);
5486
+ case "ResourceNotFoundException":
5487
+ case "com.amazonaws.macie2#ResourceNotFoundException":
5488
+ throw await deserializeAws_restJson1ResourceNotFoundExceptionResponse(parsedOutput, context);
5489
+ case "ThrottlingException":
5490
+ case "com.amazonaws.macie2#ThrottlingException":
5491
+ throw await deserializeAws_restJson1ThrottlingExceptionResponse(parsedOutput, context);
5492
+ case "ValidationException":
5493
+ case "com.amazonaws.macie2#ValidationException":
5494
+ throw await deserializeAws_restJson1ValidationExceptionResponse(parsedOutput, context);
5495
+ default:
5496
+ const parsedBody = parsedOutput.body;
5497
+ (0, smithy_client_1.throwDefaultError)({
5498
+ output,
5499
+ parsedBody,
5500
+ exceptionCtor: Macie2ServiceException_1.Macie2ServiceException,
5501
+ errorCode,
5502
+ });
5503
+ }
5504
+ };
5505
+ const deserializeAws_restJson1UpdateFindingsFilterCommand = async (output, context) => {
4615
5506
  if (output.statusCode !== 200 && output.statusCode >= 300) {
4616
- return deserializeAws_restJson1UpdateAllowListCommandError(output, context);
5507
+ return deserializeAws_restJson1UpdateFindingsFilterCommandError(output, context);
4617
5508
  }
4618
5509
  const contents = map({
4619
5510
  $metadata: deserializeMetadata(output),
@@ -4627,8 +5518,8 @@ const deserializeAws_restJson1UpdateAllowListCommand = async (output, context) =
4627
5518
  }
4628
5519
  return contents;
4629
5520
  };
4630
- exports.deserializeAws_restJson1UpdateAllowListCommand = deserializeAws_restJson1UpdateAllowListCommand;
4631
- const deserializeAws_restJson1UpdateAllowListCommandError = async (output, context) => {
5521
+ exports.deserializeAws_restJson1UpdateFindingsFilterCommand = deserializeAws_restJson1UpdateFindingsFilterCommand;
5522
+ const deserializeAws_restJson1UpdateFindingsFilterCommandError = async (output, context) => {
4632
5523
  const parsedOutput = {
4633
5524
  ...output,
4634
5525
  body: await parseErrorBody(output.body, context),
@@ -4638,12 +5529,18 @@ const deserializeAws_restJson1UpdateAllowListCommandError = async (output, conte
4638
5529
  case "AccessDeniedException":
4639
5530
  case "com.amazonaws.macie2#AccessDeniedException":
4640
5531
  throw await deserializeAws_restJson1AccessDeniedExceptionResponse(parsedOutput, context);
5532
+ case "ConflictException":
5533
+ case "com.amazonaws.macie2#ConflictException":
5534
+ throw await deserializeAws_restJson1ConflictExceptionResponse(parsedOutput, context);
4641
5535
  case "InternalServerException":
4642
5536
  case "com.amazonaws.macie2#InternalServerException":
4643
5537
  throw await deserializeAws_restJson1InternalServerExceptionResponse(parsedOutput, context);
4644
5538
  case "ResourceNotFoundException":
4645
5539
  case "com.amazonaws.macie2#ResourceNotFoundException":
4646
5540
  throw await deserializeAws_restJson1ResourceNotFoundExceptionResponse(parsedOutput, context);
5541
+ case "ServiceQuotaExceededException":
5542
+ case "com.amazonaws.macie2#ServiceQuotaExceededException":
5543
+ throw await deserializeAws_restJson1ServiceQuotaExceededExceptionResponse(parsedOutput, context);
4647
5544
  case "ThrottlingException":
4648
5545
  case "com.amazonaws.macie2#ThrottlingException":
4649
5546
  throw await deserializeAws_restJson1ThrottlingExceptionResponse(parsedOutput, context);
@@ -4660,9 +5557,9 @@ const deserializeAws_restJson1UpdateAllowListCommandError = async (output, conte
4660
5557
  });
4661
5558
  }
4662
5559
  };
4663
- const deserializeAws_restJson1UpdateClassificationJobCommand = async (output, context) => {
5560
+ const deserializeAws_restJson1UpdateMacieSessionCommand = async (output, context) => {
4664
5561
  if (output.statusCode !== 200 && output.statusCode >= 300) {
4665
- return deserializeAws_restJson1UpdateClassificationJobCommandError(output, context);
5562
+ return deserializeAws_restJson1UpdateMacieSessionCommandError(output, context);
4666
5563
  }
4667
5564
  const contents = map({
4668
5565
  $metadata: deserializeMetadata(output),
@@ -4670,8 +5567,8 @@ const deserializeAws_restJson1UpdateClassificationJobCommand = async (output, co
4670
5567
  await collectBody(output.body, context);
4671
5568
  return contents;
4672
5569
  };
4673
- exports.deserializeAws_restJson1UpdateClassificationJobCommand = deserializeAws_restJson1UpdateClassificationJobCommand;
4674
- const deserializeAws_restJson1UpdateClassificationJobCommandError = async (output, context) => {
5570
+ exports.deserializeAws_restJson1UpdateMacieSessionCommand = deserializeAws_restJson1UpdateMacieSessionCommand;
5571
+ const deserializeAws_restJson1UpdateMacieSessionCommandError = async (output, context) => {
4675
5572
  const parsedOutput = {
4676
5573
  ...output,
4677
5574
  body: await parseErrorBody(output.body, context),
@@ -4709,24 +5606,18 @@ const deserializeAws_restJson1UpdateClassificationJobCommandError = async (outpu
4709
5606
  });
4710
5607
  }
4711
5608
  };
4712
- const deserializeAws_restJson1UpdateFindingsFilterCommand = async (output, context) => {
5609
+ const deserializeAws_restJson1UpdateMemberSessionCommand = async (output, context) => {
4713
5610
  if (output.statusCode !== 200 && output.statusCode >= 300) {
4714
- return deserializeAws_restJson1UpdateFindingsFilterCommandError(output, context);
5611
+ return deserializeAws_restJson1UpdateMemberSessionCommandError(output, context);
4715
5612
  }
4716
5613
  const contents = map({
4717
5614
  $metadata: deserializeMetadata(output),
4718
5615
  });
4719
- const data = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.expectObject)(await parseBody(output.body, context)), "body");
4720
- if (data.arn != null) {
4721
- contents.arn = (0, smithy_client_1.expectString)(data.arn);
4722
- }
4723
- if (data.id != null) {
4724
- contents.id = (0, smithy_client_1.expectString)(data.id);
4725
- }
5616
+ await collectBody(output.body, context);
4726
5617
  return contents;
4727
5618
  };
4728
- exports.deserializeAws_restJson1UpdateFindingsFilterCommand = deserializeAws_restJson1UpdateFindingsFilterCommand;
4729
- const deserializeAws_restJson1UpdateFindingsFilterCommandError = async (output, context) => {
5619
+ exports.deserializeAws_restJson1UpdateMemberSessionCommand = deserializeAws_restJson1UpdateMemberSessionCommand;
5620
+ const deserializeAws_restJson1UpdateMemberSessionCommandError = async (output, context) => {
4730
5621
  const parsedOutput = {
4731
5622
  ...output,
4732
5623
  body: await parseErrorBody(output.body, context),
@@ -4764,9 +5655,9 @@ const deserializeAws_restJson1UpdateFindingsFilterCommandError = async (output,
4764
5655
  });
4765
5656
  }
4766
5657
  };
4767
- const deserializeAws_restJson1UpdateMacieSessionCommand = async (output, context) => {
5658
+ const deserializeAws_restJson1UpdateOrganizationConfigurationCommand = async (output, context) => {
4768
5659
  if (output.statusCode !== 200 && output.statusCode >= 300) {
4769
- return deserializeAws_restJson1UpdateMacieSessionCommandError(output, context);
5660
+ return deserializeAws_restJson1UpdateOrganizationConfigurationCommandError(output, context);
4770
5661
  }
4771
5662
  const contents = map({
4772
5663
  $metadata: deserializeMetadata(output),
@@ -4774,8 +5665,8 @@ const deserializeAws_restJson1UpdateMacieSessionCommand = async (output, context
4774
5665
  await collectBody(output.body, context);
4775
5666
  return contents;
4776
5667
  };
4777
- exports.deserializeAws_restJson1UpdateMacieSessionCommand = deserializeAws_restJson1UpdateMacieSessionCommand;
4778
- const deserializeAws_restJson1UpdateMacieSessionCommandError = async (output, context) => {
5668
+ exports.deserializeAws_restJson1UpdateOrganizationConfigurationCommand = deserializeAws_restJson1UpdateOrganizationConfigurationCommand;
5669
+ const deserializeAws_restJson1UpdateOrganizationConfigurationCommandError = async (output, context) => {
4779
5670
  const parsedOutput = {
4780
5671
  ...output,
4781
5672
  body: await parseErrorBody(output.body, context),
@@ -4813,9 +5704,9 @@ const deserializeAws_restJson1UpdateMacieSessionCommandError = async (output, co
4813
5704
  });
4814
5705
  }
4815
5706
  };
4816
- const deserializeAws_restJson1UpdateMemberSessionCommand = async (output, context) => {
5707
+ const deserializeAws_restJson1UpdateResourceProfileCommand = async (output, context) => {
4817
5708
  if (output.statusCode !== 200 && output.statusCode >= 300) {
4818
- return deserializeAws_restJson1UpdateMemberSessionCommandError(output, context);
5709
+ return deserializeAws_restJson1UpdateResourceProfileCommandError(output, context);
4819
5710
  }
4820
5711
  const contents = map({
4821
5712
  $metadata: deserializeMetadata(output),
@@ -4823,8 +5714,8 @@ const deserializeAws_restJson1UpdateMemberSessionCommand = async (output, contex
4823
5714
  await collectBody(output.body, context);
4824
5715
  return contents;
4825
5716
  };
4826
- exports.deserializeAws_restJson1UpdateMemberSessionCommand = deserializeAws_restJson1UpdateMemberSessionCommand;
4827
- const deserializeAws_restJson1UpdateMemberSessionCommandError = async (output, context) => {
5717
+ exports.deserializeAws_restJson1UpdateResourceProfileCommand = deserializeAws_restJson1UpdateResourceProfileCommand;
5718
+ const deserializeAws_restJson1UpdateResourceProfileCommandError = async (output, context) => {
4828
5719
  const parsedOutput = {
4829
5720
  ...output,
4830
5721
  body: await parseErrorBody(output.body, context),
@@ -4834,9 +5725,6 @@ const deserializeAws_restJson1UpdateMemberSessionCommandError = async (output, c
4834
5725
  case "AccessDeniedException":
4835
5726
  case "com.amazonaws.macie2#AccessDeniedException":
4836
5727
  throw await deserializeAws_restJson1AccessDeniedExceptionResponse(parsedOutput, context);
4837
- case "ConflictException":
4838
- case "com.amazonaws.macie2#ConflictException":
4839
- throw await deserializeAws_restJson1ConflictExceptionResponse(parsedOutput, context);
4840
5728
  case "InternalServerException":
4841
5729
  case "com.amazonaws.macie2#InternalServerException":
4842
5730
  throw await deserializeAws_restJson1InternalServerExceptionResponse(parsedOutput, context);
@@ -4862,9 +5750,9 @@ const deserializeAws_restJson1UpdateMemberSessionCommandError = async (output, c
4862
5750
  });
4863
5751
  }
4864
5752
  };
4865
- const deserializeAws_restJson1UpdateOrganizationConfigurationCommand = async (output, context) => {
5753
+ const deserializeAws_restJson1UpdateResourceProfileDetectionsCommand = async (output, context) => {
4866
5754
  if (output.statusCode !== 200 && output.statusCode >= 300) {
4867
- return deserializeAws_restJson1UpdateOrganizationConfigurationCommandError(output, context);
5755
+ return deserializeAws_restJson1UpdateResourceProfileDetectionsCommandError(output, context);
4868
5756
  }
4869
5757
  const contents = map({
4870
5758
  $metadata: deserializeMetadata(output),
@@ -4872,8 +5760,8 @@ const deserializeAws_restJson1UpdateOrganizationConfigurationCommand = async (ou
4872
5760
  await collectBody(output.body, context);
4873
5761
  return contents;
4874
5762
  };
4875
- exports.deserializeAws_restJson1UpdateOrganizationConfigurationCommand = deserializeAws_restJson1UpdateOrganizationConfigurationCommand;
4876
- const deserializeAws_restJson1UpdateOrganizationConfigurationCommandError = async (output, context) => {
5763
+ exports.deserializeAws_restJson1UpdateResourceProfileDetectionsCommand = deserializeAws_restJson1UpdateResourceProfileDetectionsCommand;
5764
+ const deserializeAws_restJson1UpdateResourceProfileDetectionsCommandError = async (output, context) => {
4877
5765
  const parsedOutput = {
4878
5766
  ...output,
4879
5767
  body: await parseErrorBody(output.body, context),
@@ -4883,9 +5771,6 @@ const deserializeAws_restJson1UpdateOrganizationConfigurationCommandError = asyn
4883
5771
  case "AccessDeniedException":
4884
5772
  case "com.amazonaws.macie2#AccessDeniedException":
4885
5773
  throw await deserializeAws_restJson1AccessDeniedExceptionResponse(parsedOutput, context);
4886
- case "ConflictException":
4887
- case "com.amazonaws.macie2#ConflictException":
4888
- throw await deserializeAws_restJson1ConflictExceptionResponse(parsedOutput, context);
4889
5774
  case "InternalServerException":
4890
5775
  case "com.amazonaws.macie2#InternalServerException":
4891
5776
  throw await deserializeAws_restJson1InternalServerExceptionResponse(parsedOutput, context);
@@ -4954,6 +5839,49 @@ const deserializeAws_restJson1UpdateRevealConfigurationCommandError = async (out
4954
5839
  });
4955
5840
  }
4956
5841
  };
5842
+ const deserializeAws_restJson1UpdateSensitivityInspectionTemplateCommand = async (output, context) => {
5843
+ if (output.statusCode !== 200 && output.statusCode >= 300) {
5844
+ return deserializeAws_restJson1UpdateSensitivityInspectionTemplateCommandError(output, context);
5845
+ }
5846
+ const contents = map({
5847
+ $metadata: deserializeMetadata(output),
5848
+ });
5849
+ await collectBody(output.body, context);
5850
+ return contents;
5851
+ };
5852
+ exports.deserializeAws_restJson1UpdateSensitivityInspectionTemplateCommand = deserializeAws_restJson1UpdateSensitivityInspectionTemplateCommand;
5853
+ const deserializeAws_restJson1UpdateSensitivityInspectionTemplateCommandError = async (output, context) => {
5854
+ const parsedOutput = {
5855
+ ...output,
5856
+ body: await parseErrorBody(output.body, context),
5857
+ };
5858
+ const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
5859
+ switch (errorCode) {
5860
+ case "AccessDeniedException":
5861
+ case "com.amazonaws.macie2#AccessDeniedException":
5862
+ throw await deserializeAws_restJson1AccessDeniedExceptionResponse(parsedOutput, context);
5863
+ case "InternalServerException":
5864
+ case "com.amazonaws.macie2#InternalServerException":
5865
+ throw await deserializeAws_restJson1InternalServerExceptionResponse(parsedOutput, context);
5866
+ case "ResourceNotFoundException":
5867
+ case "com.amazonaws.macie2#ResourceNotFoundException":
5868
+ throw await deserializeAws_restJson1ResourceNotFoundExceptionResponse(parsedOutput, context);
5869
+ case "ThrottlingException":
5870
+ case "com.amazonaws.macie2#ThrottlingException":
5871
+ throw await deserializeAws_restJson1ThrottlingExceptionResponse(parsedOutput, context);
5872
+ case "ValidationException":
5873
+ case "com.amazonaws.macie2#ValidationException":
5874
+ throw await deserializeAws_restJson1ValidationExceptionResponse(parsedOutput, context);
5875
+ default:
5876
+ const parsedBody = parsedOutput.body;
5877
+ (0, smithy_client_1.throwDefaultError)({
5878
+ output,
5879
+ parsedBody,
5880
+ exceptionCtor: Macie2ServiceException_1.Macie2ServiceException,
5881
+ errorCode,
5882
+ });
5883
+ }
5884
+ };
4957
5885
  const map = smithy_client_1.map;
4958
5886
  const deserializeAws_restJson1AccessDeniedExceptionResponse = async (parsedOutput, context) => {
4959
5887
  const contents = map({});
@@ -5093,6 +6021,13 @@ const serializeAws_restJson1__listOfS3BucketDefinitionForJob = (input, context)
5093
6021
  return serializeAws_restJson1S3BucketDefinitionForJob(entry, context);
5094
6022
  });
5095
6023
  };
6024
+ const serializeAws_restJson1__listOfS3BucketName = (input, context) => {
6025
+ return input
6026
+ .filter((e) => e != null)
6027
+ .map((entry) => {
6028
+ return entry;
6029
+ });
6030
+ };
5096
6031
  const serializeAws_restJson1__listOfSearchResourcesCriteria = (input, context) => {
5097
6032
  return input
5098
6033
  .filter((e) => e != null)
@@ -5107,6 +6042,13 @@ const serializeAws_restJson1__listOfSearchResourcesTagCriterionPair = (input, co
5107
6042
  return serializeAws_restJson1SearchResourcesTagCriterionPair(entry, context);
5108
6043
  });
5109
6044
  };
6045
+ const serializeAws_restJson1__listOfSuppressDataIdentifier = (input, context) => {
6046
+ return input
6047
+ .filter((e) => e != null)
6048
+ .map((entry) => {
6049
+ return serializeAws_restJson1SuppressDataIdentifier(entry, context);
6050
+ });
6051
+ };
5110
6052
  const serializeAws_restJson1__listOfTagCriterionPairForJob = (input, context) => {
5111
6053
  return input
5112
6054
  .filter((e) => e != null)
@@ -5298,6 +6240,21 @@ const serializeAws_restJson1S3BucketDefinitionForJob = (input, context) => {
5298
6240
  ...(input.buckets != null && { buckets: serializeAws_restJson1__listOf__string(input.buckets, context) }),
5299
6241
  };
5300
6242
  };
6243
+ const serializeAws_restJson1S3ClassificationScopeExclusionUpdate = (input, context) => {
6244
+ return {
6245
+ ...(input.bucketNames != null && {
6246
+ bucketNames: serializeAws_restJson1__listOfS3BucketName(input.bucketNames, context),
6247
+ }),
6248
+ ...(input.operation != null && { operation: input.operation }),
6249
+ };
6250
+ };
6251
+ const serializeAws_restJson1S3ClassificationScopeUpdate = (input, context) => {
6252
+ return {
6253
+ ...(input.excludes != null && {
6254
+ excludes: serializeAws_restJson1S3ClassificationScopeExclusionUpdate(input.excludes, context),
6255
+ }),
6256
+ };
6257
+ };
5301
6258
  const serializeAws_restJson1S3Destination = (input, context) => {
5302
6259
  return {
5303
6260
  ...(input.bucketName != null && { bucketName: input.bucketName }),
@@ -5388,6 +6345,26 @@ const serializeAws_restJson1SecurityHubConfiguration = (input, context) => {
5388
6345
  ...(input.publishPolicyFindings != null && { publishPolicyFindings: input.publishPolicyFindings }),
5389
6346
  };
5390
6347
  };
6348
+ const serializeAws_restJson1SensitivityInspectionTemplateExcludes = (input, context) => {
6349
+ return {
6350
+ ...(input.managedDataIdentifierIds != null && {
6351
+ managedDataIdentifierIds: serializeAws_restJson1__listOf__string(input.managedDataIdentifierIds, context),
6352
+ }),
6353
+ };
6354
+ };
6355
+ const serializeAws_restJson1SensitivityInspectionTemplateIncludes = (input, context) => {
6356
+ return {
6357
+ ...(input.allowListIds != null && {
6358
+ allowListIds: serializeAws_restJson1__listOf__string(input.allowListIds, context),
6359
+ }),
6360
+ ...(input.customDataIdentifierIds != null && {
6361
+ customDataIdentifierIds: serializeAws_restJson1__listOf__string(input.customDataIdentifierIds, context),
6362
+ }),
6363
+ ...(input.managedDataIdentifierIds != null && {
6364
+ managedDataIdentifierIds: serializeAws_restJson1__listOf__string(input.managedDataIdentifierIds, context),
6365
+ }),
6366
+ };
6367
+ };
5391
6368
  const serializeAws_restJson1SeverityLevel = (input, context) => {
5392
6369
  return {
5393
6370
  ...(input.occurrencesThreshold != null && { occurrencesThreshold: input.occurrencesThreshold }),
@@ -5421,6 +6398,12 @@ const serializeAws_restJson1SortCriteria = (input, context) => {
5421
6398
  ...(input.orderBy != null && { orderBy: input.orderBy }),
5422
6399
  };
5423
6400
  };
6401
+ const serializeAws_restJson1SuppressDataIdentifier = (input, context) => {
6402
+ return {
6403
+ ...(input.id != null && { id: input.id }),
6404
+ ...(input.type != null && { type: input.type }),
6405
+ };
6406
+ };
5424
6407
  const serializeAws_restJson1TagCriterionForJob = (input, context) => {
5425
6408
  return {
5426
6409
  ...(input.comparator != null && { comparator: input.comparator }),
@@ -5531,6 +6514,17 @@ const deserializeAws_restJson1__listOfBucketMetadata = (output, context) => {
5531
6514
  });
5532
6515
  return retVal;
5533
6516
  };
6517
+ const deserializeAws_restJson1__listOfClassificationScopeSummary = (output, context) => {
6518
+ const retVal = (output || [])
6519
+ .filter((e) => e != null)
6520
+ .map((entry) => {
6521
+ if (entry === null) {
6522
+ return null;
6523
+ }
6524
+ return deserializeAws_restJson1ClassificationScopeSummary(entry, context);
6525
+ });
6526
+ return retVal;
6527
+ };
5534
6528
  const deserializeAws_restJson1__listOfCriteriaForJob = (output, context) => {
5535
6529
  const retVal = (output || [])
5536
6530
  .filter((e) => e != null)
@@ -5564,6 +6558,17 @@ const deserializeAws_restJson1__listOfDetectedDataDetails = (output, context) =>
5564
6558
  });
5565
6559
  return retVal;
5566
6560
  };
6561
+ const deserializeAws_restJson1__listOfDetection = (output, context) => {
6562
+ const retVal = (output || [])
6563
+ .filter((e) => e != null)
6564
+ .map((entry) => {
6565
+ if (entry === null) {
6566
+ return null;
6567
+ }
6568
+ return deserializeAws_restJson1Detection(entry, context);
6569
+ });
6570
+ return retVal;
6571
+ };
5567
6572
  const deserializeAws_restJson1__listOfFinding = (output, context) => {
5568
6573
  const retVal = (output || [])
5569
6574
  .filter((e) => e != null)
@@ -5674,6 +6679,17 @@ const deserializeAws_restJson1__listOfMember = (output, context) => {
5674
6679
  });
5675
6680
  return retVal;
5676
6681
  };
6682
+ const deserializeAws_restJson1__listOfResourceProfileArtifact = (output, context) => {
6683
+ const retVal = (output || [])
6684
+ .filter((e) => e != null)
6685
+ .map((entry) => {
6686
+ if (entry === null) {
6687
+ return null;
6688
+ }
6689
+ return deserializeAws_restJson1ResourceProfileArtifact(entry, context);
6690
+ });
6691
+ return retVal;
6692
+ };
5677
6693
  const deserializeAws_restJson1__listOfS3BucketDefinitionForJob = (output, context) => {
5678
6694
  const retVal = (output || [])
5679
6695
  .filter((e) => e != null)
@@ -5685,6 +6701,28 @@ const deserializeAws_restJson1__listOfS3BucketDefinitionForJob = (output, contex
5685
6701
  });
5686
6702
  return retVal;
5687
6703
  };
6704
+ const deserializeAws_restJson1__listOfS3BucketName = (output, context) => {
6705
+ const retVal = (output || [])
6706
+ .filter((e) => e != null)
6707
+ .map((entry) => {
6708
+ if (entry === null) {
6709
+ return null;
6710
+ }
6711
+ return (0, smithy_client_1.expectString)(entry);
6712
+ });
6713
+ return retVal;
6714
+ };
6715
+ const deserializeAws_restJson1__listOfSensitivityInspectionTemplatesEntry = (output, context) => {
6716
+ const retVal = (output || [])
6717
+ .filter((e) => e != null)
6718
+ .map((entry) => {
6719
+ if (entry === null) {
6720
+ return null;
6721
+ }
6722
+ return deserializeAws_restJson1SensitivityInspectionTemplatesEntry(entry, context);
6723
+ });
6724
+ return retVal;
6725
+ };
5688
6726
  const deserializeAws_restJson1__listOfTagCriterionPairForJob = (output, context) => {
5689
6727
  const retVal = (output || [])
5690
6728
  .filter((e) => e != null)
@@ -5905,6 +6943,9 @@ const deserializeAws_restJson1BucketMetadata = (output, context) => {
5905
6943
  errorCode: (0, smithy_client_1.expectString)(output.errorCode),
5906
6944
  errorMessage: (0, smithy_client_1.expectString)(output.errorMessage),
5907
6945
  jobDetails: output.jobDetails != null ? deserializeAws_restJson1JobDetails(output.jobDetails, context) : undefined,
6946
+ lastAutomatedDiscoveryTime: output.lastAutomatedDiscoveryTime != null
6947
+ ? (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseRfc3339DateTime)(output.lastAutomatedDiscoveryTime))
6948
+ : undefined,
5908
6949
  lastUpdated: output.lastUpdated != null ? (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseRfc3339DateTime)(output.lastUpdated)) : undefined,
5909
6950
  objectCount: (0, smithy_client_1.expectLong)(output.objectCount),
5910
6951
  objectCountByEncryptionType: output.objectCountByEncryptionType != null
@@ -5917,6 +6958,7 @@ const deserializeAws_restJson1BucketMetadata = (output, context) => {
5917
6958
  replicationDetails: output.replicationDetails != null
5918
6959
  ? deserializeAws_restJson1ReplicationDetails(output.replicationDetails, context)
5919
6960
  : undefined,
6961
+ sensitivityScore: (0, smithy_client_1.expectInt32)(output.sensitivityScore),
5920
6962
  serverSideEncryption: output.serverSideEncryption != null
5921
6963
  ? deserializeAws_restJson1BucketServerSideEncryption(output.serverSideEncryption, context)
5922
6964
  : undefined,
@@ -5963,6 +7005,20 @@ const deserializeAws_restJson1BucketServerSideEncryption = (output, context) =>
5963
7005
  type: (0, smithy_client_1.expectString)(output.type),
5964
7006
  };
5965
7007
  };
7008
+ const deserializeAws_restJson1BucketStatisticsBySensitivity = (output, context) => {
7009
+ return {
7010
+ classificationError: output.classificationError != null
7011
+ ? deserializeAws_restJson1SensitivityAggregations(output.classificationError, context)
7012
+ : undefined,
7013
+ notClassified: output.notClassified != null
7014
+ ? deserializeAws_restJson1SensitivityAggregations(output.notClassified, context)
7015
+ : undefined,
7016
+ notSensitive: output.notSensitive != null
7017
+ ? deserializeAws_restJson1SensitivityAggregations(output.notSensitive, context)
7018
+ : undefined,
7019
+ sensitive: output.sensitive != null ? deserializeAws_restJson1SensitivityAggregations(output.sensitive, context) : undefined,
7020
+ };
7021
+ };
5966
7022
  const deserializeAws_restJson1Cell = (output, context) => {
5967
7023
  return {
5968
7024
  cellReference: (0, smithy_client_1.expectString)(output.cellReference),
@@ -6014,6 +7070,12 @@ const deserializeAws_restJson1ClassificationResultStatus = (output, context) =>
6014
7070
  reason: (0, smithy_client_1.expectString)(output.reason),
6015
7071
  };
6016
7072
  };
7073
+ const deserializeAws_restJson1ClassificationScopeSummary = (output, context) => {
7074
+ return {
7075
+ id: (0, smithy_client_1.expectString)(output.id),
7076
+ name: (0, smithy_client_1.expectString)(output.name),
7077
+ };
7078
+ };
6017
7079
  const deserializeAws_restJson1CriteriaBlockForJob = (output, context) => {
6018
7080
  return {
6019
7081
  and: output.and != null ? deserializeAws_restJson1__listOfCriteriaForJob(output.and, context) : undefined,
@@ -6109,6 +7171,16 @@ const deserializeAws_restJson1DetectedDataDetails = (output, context) => {
6109
7171
  value: (0, smithy_client_1.expectString)(output.value),
6110
7172
  };
6111
7173
  };
7174
+ const deserializeAws_restJson1Detection = (output, context) => {
7175
+ return {
7176
+ arn: (0, smithy_client_1.expectString)(output.arn),
7177
+ count: (0, smithy_client_1.expectLong)(output.count),
7178
+ id: (0, smithy_client_1.expectString)(output.id),
7179
+ name: (0, smithy_client_1.expectString)(output.name),
7180
+ suppressed: (0, smithy_client_1.expectBoolean)(output.suppressed),
7181
+ type: (0, smithy_client_1.expectString)(output.type),
7182
+ };
7183
+ };
6112
7184
  const deserializeAws_restJson1DomainDetails = (output, context) => {
6113
7185
  return {
6114
7186
  domainName: (0, smithy_client_1.expectString)(output.domainName),
@@ -6328,10 +7400,14 @@ const deserializeAws_restJson1MatchingBucket = (output, context) => {
6328
7400
  errorCode: (0, smithy_client_1.expectString)(output.errorCode),
6329
7401
  errorMessage: (0, smithy_client_1.expectString)(output.errorMessage),
6330
7402
  jobDetails: output.jobDetails != null ? deserializeAws_restJson1JobDetails(output.jobDetails, context) : undefined,
7403
+ lastAutomatedDiscoveryTime: output.lastAutomatedDiscoveryTime != null
7404
+ ? (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseRfc3339DateTime)(output.lastAutomatedDiscoveryTime))
7405
+ : undefined,
6331
7406
  objectCount: (0, smithy_client_1.expectLong)(output.objectCount),
6332
7407
  objectCountByEncryptionType: output.objectCountByEncryptionType != null
6333
7408
  ? deserializeAws_restJson1ObjectCountByEncryptionType(output.objectCountByEncryptionType, context)
6334
7409
  : undefined,
7410
+ sensitivityScore: (0, smithy_client_1.expectInt32)(output.sensitivityScore),
6335
7411
  sizeInBytes: (0, smithy_client_1.expectLong)(output.sizeInBytes),
6336
7412
  sizeInBytesCompressed: (0, smithy_client_1.expectLong)(output.sizeInBytesCompressed),
6337
7413
  unclassifiableObjectCount: output.unclassifiableObjectCount != null
@@ -6460,12 +7536,32 @@ const deserializeAws_restJson1ReplicationDetails = (output, context) => {
6460
7536
  : undefined,
6461
7537
  };
6462
7538
  };
7539
+ const deserializeAws_restJson1ResourceProfileArtifact = (output, context) => {
7540
+ return {
7541
+ arn: (0, smithy_client_1.expectString)(output.arn),
7542
+ classificationResultStatus: (0, smithy_client_1.expectString)(output.classificationResultStatus),
7543
+ sensitive: (0, smithy_client_1.expectBoolean)(output.sensitive),
7544
+ };
7545
+ };
6463
7546
  const deserializeAws_restJson1ResourcesAffected = (output, context) => {
6464
7547
  return {
6465
7548
  s3Bucket: output.s3Bucket != null ? deserializeAws_restJson1S3Bucket(output.s3Bucket, context) : undefined,
6466
7549
  s3Object: output.s3Object != null ? deserializeAws_restJson1S3Object(output.s3Object, context) : undefined,
6467
7550
  };
6468
7551
  };
7552
+ const deserializeAws_restJson1ResourceStatistics = (output, context) => {
7553
+ return {
7554
+ totalBytesClassified: (0, smithy_client_1.expectLong)(output.totalBytesClassified),
7555
+ totalDetections: (0, smithy_client_1.expectLong)(output.totalDetections),
7556
+ totalDetectionsSuppressed: (0, smithy_client_1.expectLong)(output.totalDetectionsSuppressed),
7557
+ totalItemsClassified: (0, smithy_client_1.expectLong)(output.totalItemsClassified),
7558
+ totalItemsSensitive: (0, smithy_client_1.expectLong)(output.totalItemsSensitive),
7559
+ totalItemsSkipped: (0, smithy_client_1.expectLong)(output.totalItemsSkipped),
7560
+ totalItemsSkippedInvalidEncryption: (0, smithy_client_1.expectLong)(output.totalItemsSkippedInvalidEncryption),
7561
+ totalItemsSkippedInvalidKms: (0, smithy_client_1.expectLong)(output.totalItemsSkippedInvalidKms),
7562
+ totalItemsSkippedPermissionDenied: (0, smithy_client_1.expectLong)(output.totalItemsSkippedPermissionDenied),
7563
+ };
7564
+ };
6469
7565
  const deserializeAws_restJson1RevealConfiguration = (output, context) => {
6470
7566
  return {
6471
7567
  kmsKeyId: (0, smithy_client_1.expectString)(output.kmsKeyId),
@@ -6506,6 +7602,20 @@ const deserializeAws_restJson1S3BucketOwner = (output, context) => {
6506
7602
  id: (0, smithy_client_1.expectString)(output.id),
6507
7603
  };
6508
7604
  };
7605
+ const deserializeAws_restJson1S3ClassificationScope = (output, context) => {
7606
+ return {
7607
+ excludes: output.excludes != null
7608
+ ? deserializeAws_restJson1S3ClassificationScopeExclusion(output.excludes, context)
7609
+ : undefined,
7610
+ };
7611
+ };
7612
+ const deserializeAws_restJson1S3ClassificationScopeExclusion = (output, context) => {
7613
+ return {
7614
+ bucketNames: output.bucketNames != null
7615
+ ? deserializeAws_restJson1__listOfS3BucketName(output.bucketNames, context)
7616
+ : undefined,
7617
+ };
7618
+ };
6509
7619
  const deserializeAws_restJson1S3Destination = (output, context) => {
6510
7620
  return {
6511
7621
  bucketName: (0, smithy_client_1.expectString)(output.bucketName),
@@ -6587,6 +7697,38 @@ const deserializeAws_restJson1SensitiveDataOccurrences = (output, context) => {
6587
7697
  return acc;
6588
7698
  }, {});
6589
7699
  };
7700
+ const deserializeAws_restJson1SensitivityAggregations = (output, context) => {
7701
+ return {
7702
+ classifiableSizeInBytes: (0, smithy_client_1.expectLong)(output.classifiableSizeInBytes),
7703
+ publiclyAccessibleCount: (0, smithy_client_1.expectLong)(output.publiclyAccessibleCount),
7704
+ totalCount: (0, smithy_client_1.expectLong)(output.totalCount),
7705
+ totalSizeInBytes: (0, smithy_client_1.expectLong)(output.totalSizeInBytes),
7706
+ };
7707
+ };
7708
+ const deserializeAws_restJson1SensitivityInspectionTemplateExcludes = (output, context) => {
7709
+ return {
7710
+ managedDataIdentifierIds: output.managedDataIdentifierIds != null
7711
+ ? deserializeAws_restJson1__listOf__string(output.managedDataIdentifierIds, context)
7712
+ : undefined,
7713
+ };
7714
+ };
7715
+ const deserializeAws_restJson1SensitivityInspectionTemplateIncludes = (output, context) => {
7716
+ return {
7717
+ allowListIds: output.allowListIds != null ? deserializeAws_restJson1__listOf__string(output.allowListIds, context) : undefined,
7718
+ customDataIdentifierIds: output.customDataIdentifierIds != null
7719
+ ? deserializeAws_restJson1__listOf__string(output.customDataIdentifierIds, context)
7720
+ : undefined,
7721
+ managedDataIdentifierIds: output.managedDataIdentifierIds != null
7722
+ ? deserializeAws_restJson1__listOf__string(output.managedDataIdentifierIds, context)
7723
+ : undefined,
7724
+ };
7725
+ };
7726
+ const deserializeAws_restJson1SensitivityInspectionTemplatesEntry = (output, context) => {
7727
+ return {
7728
+ id: (0, smithy_client_1.expectString)(output.id),
7729
+ name: (0, smithy_client_1.expectString)(output.name),
7730
+ };
7731
+ };
6590
7732
  const deserializeAws_restJson1ServerSideEncryption = (output, context) => {
6591
7733
  return {
6592
7734
  encryptionType: (0, smithy_client_1.expectString)(output.encryptionType),
@@ -6721,6 +7863,9 @@ const deserializeAws_restJson1UsageByAccount = (output, context) => {
6721
7863
  const deserializeAws_restJson1UsageRecord = (output, context) => {
6722
7864
  return {
6723
7865
  accountId: (0, smithy_client_1.expectString)(output.accountId),
7866
+ automatedDiscoveryFreeTrialStartDate: output.automatedDiscoveryFreeTrialStartDate != null
7867
+ ? (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseRfc3339DateTime)(output.automatedDiscoveryFreeTrialStartDate))
7868
+ : undefined,
6724
7869
  freeTrialStartDate: output.freeTrialStartDate != null
6725
7870
  ? (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseRfc3339DateTime)(output.freeTrialStartDate))
6726
7871
  : undefined,