aws-data-landing-zone 0.2.5 → 0.3.1

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 (1204) hide show
  1. package/.jsii +2749 -1300
  2. package/API.md +3046 -1252
  3. package/README.md +20 -0
  4. package/assets/constructs/dlz-guardduty/lambda/guardduty-delegated-admin/index.js +34638 -0
  5. package/assets/constructs/dlz-guardduty/lambda/guardduty-delegated-admin/index.js.map +7 -0
  6. package/assets/constructs/dlz-guardduty/lambda/guardduty-member-features/index.js +30170 -0
  7. package/assets/constructs/dlz-guardduty/lambda/guardduty-member-features/index.js.map +7 -0
  8. package/assets/constructs/dlz-guardduty/lambda/guardduty-org-config/index.js +30075 -0
  9. package/assets/constructs/dlz-guardduty/lambda/guardduty-org-config/index.js.map +7 -0
  10. package/assets/constructs/dlz-macie/lambda/macie-delegated-admin/index.js +32478 -0
  11. package/assets/constructs/dlz-macie/lambda/macie-delegated-admin/index.js.map +7 -0
  12. package/assets/constructs/dlz-macie/lambda/macie-members/index.js +27954 -0
  13. package/assets/constructs/dlz-macie/lambda/macie-members/index.js.map +7 -0
  14. package/assets/constructs/dlz-macie/lambda/macie-org-config/index.js +27897 -0
  15. package/assets/constructs/dlz-macie/lambda/macie-org-config/index.js.map +7 -0
  16. package/assets/constructs/iam/lambda/iam-account-alias/index.js +1 -1
  17. package/assets/constructs/iam/lambda/iam-account-alias/index.js.map +1 -1
  18. package/assets/constructs/iam-identity-center/identity-store-user-lambda/index.js +1 -1
  19. package/assets/constructs/iam-identity-center/identity-store-user-lambda/index.js.map +1 -1
  20. package/docs/src/content/docs/reference/api.md +3046 -1252
  21. package/lib/constructs/account-chatbots/index.js +1 -1
  22. package/lib/constructs/dlz-budget/index.js +1 -1
  23. package/lib/constructs/dlz-control-tower-control/control-tower-control.js +1 -1
  24. package/lib/constructs/dlz-guardduty/guardduty-delegated-admin.d.ts +24 -0
  25. package/lib/constructs/dlz-guardduty/guardduty-delegated-admin.js +86 -0
  26. package/lib/constructs/dlz-guardduty/guardduty-member-features.d.ts +45 -0
  27. package/lib/constructs/dlz-guardduty/guardduty-member-features.js +93 -0
  28. package/lib/constructs/dlz-guardduty/guardduty-org-config.d.ts +26 -0
  29. package/lib/constructs/dlz-guardduty/guardduty-org-config.js +70 -0
  30. package/lib/constructs/dlz-guardduty/guardduty-types.d.ts +67 -0
  31. package/lib/constructs/dlz-guardduty/guardduty-types.js +33 -0
  32. package/lib/constructs/dlz-guardduty/index.d.ts +4 -0
  33. package/lib/constructs/dlz-guardduty/index.js +21 -0
  34. package/lib/constructs/dlz-guardduty/lambda/guardduty-delegated-admin/index.d.ts +8 -0
  35. package/lib/constructs/dlz-guardduty/lambda/guardduty-delegated-admin/index.js +106 -0
  36. package/lib/constructs/dlz-guardduty/lambda/guardduty-member-features/index.d.ts +8 -0
  37. package/lib/constructs/dlz-guardduty/lambda/guardduty-member-features/index.js +178 -0
  38. package/lib/constructs/dlz-guardduty/lambda/guardduty-org-config/index.d.ts +8 -0
  39. package/lib/constructs/dlz-guardduty/lambda/guardduty-org-config/index.js +83 -0
  40. package/lib/constructs/dlz-lake-formation/dlz-lake-formation.js +1 -1
  41. package/lib/constructs/dlz-macie/index.d.ts +4 -0
  42. package/lib/constructs/dlz-macie/index.js +21 -0
  43. package/lib/constructs/dlz-macie/lambda/macie-delegated-admin/index.d.ts +8 -0
  44. package/lib/constructs/dlz-macie/lambda/macie-delegated-admin/index.js +106 -0
  45. package/lib/constructs/dlz-macie/lambda/macie-members/index.d.ts +8 -0
  46. package/lib/constructs/dlz-macie/lambda/macie-members/index.js +124 -0
  47. package/lib/constructs/dlz-macie/lambda/macie-org-config/index.d.ts +8 -0
  48. package/lib/constructs/dlz-macie/lambda/macie-org-config/index.js +70 -0
  49. package/lib/constructs/dlz-macie/macie-delegated-admin.d.ts +24 -0
  50. package/lib/constructs/dlz-macie/macie-delegated-admin.js +85 -0
  51. package/lib/constructs/dlz-macie/macie-members.d.ts +31 -0
  52. package/lib/constructs/dlz-macie/macie-members.js +77 -0
  53. package/lib/constructs/dlz-macie/macie-org-config.d.ts +20 -0
  54. package/lib/constructs/dlz-macie/macie-org-config.js +60 -0
  55. package/lib/constructs/dlz-macie/macie-types.d.ts +23 -0
  56. package/lib/constructs/dlz-macie/macie-types.js +3 -0
  57. package/lib/constructs/dlz-ssm-reader/dlz-ssm-reader-stack-cache.js +1 -1
  58. package/lib/constructs/dlz-ssm-reader/dlz-ssm-reader.js +1 -1
  59. package/lib/constructs/dlz-stack/index.js +1 -1
  60. package/lib/constructs/dlz-vpc/dlz-account-networks.js +1 -1
  61. package/lib/constructs/dlz-vpc/dlz-vpc.js +1 -1
  62. package/lib/constructs/dlz-vpc/network-address.js +1 -1
  63. package/lib/constructs/iam/iam-account-alias.js +1 -1
  64. package/lib/constructs/iam/iam-password-policy.js +1 -1
  65. package/lib/constructs/iam-identity-center/iam-identity-center-group.js +1 -1
  66. package/lib/constructs/iam-identity-center/iam-identity-center.js +1 -1
  67. package/lib/constructs/iam-identity-center/identity-store-user.js +1 -1
  68. package/lib/constructs/index.d.ts +2 -0
  69. package/lib/constructs/index.js +3 -1
  70. package/lib/constructs/organization-policies/service-control-policy.js +1 -1
  71. package/lib/constructs/organization-policies/tag-policy.js +1 -1
  72. package/lib/data-landing-zone-client.js +1 -1
  73. package/lib/data-landing-zone-types.d.ts +50 -0
  74. package/lib/data-landing-zone-types.js +1 -1
  75. package/lib/data-landing-zone.js +26 -2
  76. package/lib/defaults.d.ts +17 -0
  77. package/lib/defaults.js +35 -2
  78. package/lib/lib/report/index.d.ts +5 -1
  79. package/lib/lib/report/index.js +6 -2
  80. package/lib/scripts/index.js +1 -1
  81. package/lib/stacks/organization/management/management-global-iam-identity-center-stack.js +1 -1
  82. package/lib/stacks/organization/management/management-global-stack.d.ts +8 -0
  83. package/lib/stacks/organization/management/management-global-stack.js +34 -2
  84. package/lib/stacks/organization/security/audit/global-stack.d.ts +9 -0
  85. package/lib/stacks/organization/security/audit/global-stack.js +111 -2
  86. package/lib/stacks/organization/security/audit/regional-stack.js +1 -1
  87. package/lib/stacks/organization/security/log/global-stack.js +1 -1
  88. package/lib/stacks/organization/security/log/regional-stack.js +1 -1
  89. package/lib/stacks/organization/workloads/base/global-stack.js +1 -1
  90. package/lib/stacks/organization/workloads/base/regional-stack.js +1 -1
  91. package/lib/stacks/organization/workloads/data-services-phase-1-stack/global-stack.js +1 -1
  92. package/lib/stacks/organization/workloads/data-services-phase-1-stack/regional-stack.js +1 -1
  93. package/lib/stacks/organization/workloads/network-connections-phase-1-stack/global-stack.js +1 -1
  94. package/lib/stacks/organization/workloads/network-connections-phase-2-stack/global-stack.js +1 -1
  95. package/lib/stacks/organization/workloads/network-connections-phase-2-stack/regional-stack.js +1 -1
  96. package/lib/stacks/organization/workloads/network-connections-phase-3-stack/global-stack.js +1 -1
  97. package/lib/stacks/organization/workloads/network-connections-phase-3-stack/regional-stack.js +1 -1
  98. package/node_modules/@aws-sdk/client-cloudformation/package.json +1 -1
  99. package/node_modules/@aws-sdk/client-cognito-identity/package.json +2 -2
  100. package/node_modules/@aws-sdk/client-cost-explorer/package.json +1 -1
  101. package/node_modules/@aws-sdk/client-guardduty/LICENSE +201 -0
  102. package/node_modules/@aws-sdk/client-guardduty/README.md +790 -0
  103. package/node_modules/@aws-sdk/client-guardduty/dist-cjs/auth/httpAuthSchemeProvider.js +46 -0
  104. package/node_modules/@aws-sdk/client-guardduty/dist-cjs/endpoint/endpointResolver.js +18 -0
  105. package/node_modules/@aws-sdk/client-guardduty/dist-cjs/endpoint/ruleset.js +7 -0
  106. package/node_modules/@aws-sdk/client-guardduty/dist-cjs/index.js +1965 -0
  107. package/node_modules/@aws-sdk/client-guardduty/dist-cjs/models/GuardDutyServiceException.js +12 -0
  108. package/node_modules/@aws-sdk/client-guardduty/dist-cjs/models/errors.js +89 -0
  109. package/node_modules/@aws-sdk/client-guardduty/dist-cjs/runtimeConfig.browser.js +38 -0
  110. package/node_modules/@aws-sdk/client-guardduty/dist-cjs/runtimeConfig.js +54 -0
  111. package/node_modules/@aws-sdk/client-guardduty/dist-cjs/runtimeConfig.native.js +15 -0
  112. package/node_modules/@aws-sdk/client-guardduty/dist-cjs/runtimeConfig.shared.js +43 -0
  113. package/node_modules/@aws-sdk/client-guardduty/dist-cjs/schemas/schemas_0.js +4402 -0
  114. package/node_modules/@aws-sdk/client-guardduty/dist-es/GuardDuty.js +215 -0
  115. package/node_modules/@aws-sdk/client-guardduty/dist-es/GuardDutyClient.js +50 -0
  116. package/node_modules/@aws-sdk/client-guardduty/dist-es/auth/httpAuthExtensionConfiguration.js +38 -0
  117. package/node_modules/@aws-sdk/client-guardduty/dist-es/auth/httpAuthSchemeProvider.js +40 -0
  118. package/node_modules/@aws-sdk/client-guardduty/dist-es/commands/AcceptAdministratorInvitationCommand.js +16 -0
  119. package/node_modules/@aws-sdk/client-guardduty/dist-es/commands/AcceptInvitationCommand.js +16 -0
  120. package/node_modules/@aws-sdk/client-guardduty/dist-es/commands/ArchiveFindingsCommand.js +16 -0
  121. package/node_modules/@aws-sdk/client-guardduty/dist-es/commands/CreateDetectorCommand.js +16 -0
  122. package/node_modules/@aws-sdk/client-guardduty/dist-es/commands/CreateFilterCommand.js +16 -0
  123. package/node_modules/@aws-sdk/client-guardduty/dist-es/commands/CreateIPSetCommand.js +16 -0
  124. package/node_modules/@aws-sdk/client-guardduty/dist-es/commands/CreateMalwareProtectionPlanCommand.js +16 -0
  125. package/node_modules/@aws-sdk/client-guardduty/dist-es/commands/CreateMembersCommand.js +16 -0
  126. package/node_modules/@aws-sdk/client-guardduty/dist-es/commands/CreatePublishingDestinationCommand.js +16 -0
  127. package/node_modules/@aws-sdk/client-guardduty/dist-es/commands/CreateSampleFindingsCommand.js +16 -0
  128. package/node_modules/@aws-sdk/client-guardduty/dist-es/commands/CreateThreatEntitySetCommand.js +16 -0
  129. package/node_modules/@aws-sdk/client-guardduty/dist-es/commands/CreateThreatIntelSetCommand.js +16 -0
  130. package/node_modules/@aws-sdk/client-guardduty/dist-es/commands/CreateTrustedEntitySetCommand.js +16 -0
  131. package/node_modules/@aws-sdk/client-guardduty/dist-es/commands/DeclineInvitationsCommand.js +16 -0
  132. package/node_modules/@aws-sdk/client-guardduty/dist-es/commands/DeleteDetectorCommand.js +16 -0
  133. package/node_modules/@aws-sdk/client-guardduty/dist-es/commands/DeleteFilterCommand.js +16 -0
  134. package/node_modules/@aws-sdk/client-guardduty/dist-es/commands/DeleteIPSetCommand.js +16 -0
  135. package/node_modules/@aws-sdk/client-guardduty/dist-es/commands/DeleteInvitationsCommand.js +16 -0
  136. package/node_modules/@aws-sdk/client-guardduty/dist-es/commands/DeleteMalwareProtectionPlanCommand.js +16 -0
  137. package/node_modules/@aws-sdk/client-guardduty/dist-es/commands/DeleteMembersCommand.js +16 -0
  138. package/node_modules/@aws-sdk/client-guardduty/dist-es/commands/DeletePublishingDestinationCommand.js +16 -0
  139. package/node_modules/@aws-sdk/client-guardduty/dist-es/commands/DeleteThreatEntitySetCommand.js +16 -0
  140. package/node_modules/@aws-sdk/client-guardduty/dist-es/commands/DeleteThreatIntelSetCommand.js +16 -0
  141. package/node_modules/@aws-sdk/client-guardduty/dist-es/commands/DeleteTrustedEntitySetCommand.js +16 -0
  142. package/node_modules/@aws-sdk/client-guardduty/dist-es/commands/DescribeMalwareScansCommand.js +16 -0
  143. package/node_modules/@aws-sdk/client-guardduty/dist-es/commands/DescribeOrganizationConfigurationCommand.js +16 -0
  144. package/node_modules/@aws-sdk/client-guardduty/dist-es/commands/DescribePublishingDestinationCommand.js +16 -0
  145. package/node_modules/@aws-sdk/client-guardduty/dist-es/commands/DisableOrganizationAdminAccountCommand.js +16 -0
  146. package/node_modules/@aws-sdk/client-guardduty/dist-es/commands/DisassociateFromAdministratorAccountCommand.js +16 -0
  147. package/node_modules/@aws-sdk/client-guardduty/dist-es/commands/DisassociateFromMasterAccountCommand.js +16 -0
  148. package/node_modules/@aws-sdk/client-guardduty/dist-es/commands/DisassociateMembersCommand.js +16 -0
  149. package/node_modules/@aws-sdk/client-guardduty/dist-es/commands/EnableOrganizationAdminAccountCommand.js +16 -0
  150. package/node_modules/@aws-sdk/client-guardduty/dist-es/commands/GetAdministratorAccountCommand.js +16 -0
  151. package/node_modules/@aws-sdk/client-guardduty/dist-es/commands/GetCoverageStatisticsCommand.js +16 -0
  152. package/node_modules/@aws-sdk/client-guardduty/dist-es/commands/GetDetectorCommand.js +16 -0
  153. package/node_modules/@aws-sdk/client-guardduty/dist-es/commands/GetFilterCommand.js +16 -0
  154. package/node_modules/@aws-sdk/client-guardduty/dist-es/commands/GetFindingsCommand.js +16 -0
  155. package/node_modules/@aws-sdk/client-guardduty/dist-es/commands/GetFindingsStatisticsCommand.js +16 -0
  156. package/node_modules/@aws-sdk/client-guardduty/dist-es/commands/GetIPSetCommand.js +16 -0
  157. package/node_modules/@aws-sdk/client-guardduty/dist-es/commands/GetInvitationsCountCommand.js +16 -0
  158. package/node_modules/@aws-sdk/client-guardduty/dist-es/commands/GetMalwareProtectionPlanCommand.js +16 -0
  159. package/node_modules/@aws-sdk/client-guardduty/dist-es/commands/GetMalwareScanCommand.js +16 -0
  160. package/node_modules/@aws-sdk/client-guardduty/dist-es/commands/GetMalwareScanSettingsCommand.js +16 -0
  161. package/node_modules/@aws-sdk/client-guardduty/dist-es/commands/GetMasterAccountCommand.js +16 -0
  162. package/node_modules/@aws-sdk/client-guardduty/dist-es/commands/GetMemberDetectorsCommand.js +16 -0
  163. package/node_modules/@aws-sdk/client-guardduty/dist-es/commands/GetMembersCommand.js +16 -0
  164. package/node_modules/@aws-sdk/client-guardduty/dist-es/commands/GetOrganizationStatisticsCommand.js +16 -0
  165. package/node_modules/@aws-sdk/client-guardduty/dist-es/commands/GetRemainingFreeTrialDaysCommand.js +16 -0
  166. package/node_modules/@aws-sdk/client-guardduty/dist-es/commands/GetThreatEntitySetCommand.js +16 -0
  167. package/node_modules/@aws-sdk/client-guardduty/dist-es/commands/GetThreatIntelSetCommand.js +16 -0
  168. package/node_modules/@aws-sdk/client-guardduty/dist-es/commands/GetTrustedEntitySetCommand.js +16 -0
  169. package/node_modules/@aws-sdk/client-guardduty/dist-es/commands/GetUsageStatisticsCommand.js +16 -0
  170. package/node_modules/@aws-sdk/client-guardduty/dist-es/commands/InviteMembersCommand.js +16 -0
  171. package/node_modules/@aws-sdk/client-guardduty/dist-es/commands/ListCoverageCommand.js +16 -0
  172. package/node_modules/@aws-sdk/client-guardduty/dist-es/commands/ListDetectorsCommand.js +16 -0
  173. package/node_modules/@aws-sdk/client-guardduty/dist-es/commands/ListFiltersCommand.js +16 -0
  174. package/node_modules/@aws-sdk/client-guardduty/dist-es/commands/ListFindingsCommand.js +16 -0
  175. package/node_modules/@aws-sdk/client-guardduty/dist-es/commands/ListIPSetsCommand.js +16 -0
  176. package/node_modules/@aws-sdk/client-guardduty/dist-es/commands/ListInvitationsCommand.js +16 -0
  177. package/node_modules/@aws-sdk/client-guardduty/dist-es/commands/ListMalwareProtectionPlansCommand.js +16 -0
  178. package/node_modules/@aws-sdk/client-guardduty/dist-es/commands/ListMalwareScansCommand.js +16 -0
  179. package/node_modules/@aws-sdk/client-guardduty/dist-es/commands/ListMembersCommand.js +16 -0
  180. package/node_modules/@aws-sdk/client-guardduty/dist-es/commands/ListOrganizationAdminAccountsCommand.js +16 -0
  181. package/node_modules/@aws-sdk/client-guardduty/dist-es/commands/ListPublishingDestinationsCommand.js +16 -0
  182. package/node_modules/@aws-sdk/client-guardduty/dist-es/commands/ListTagsForResourceCommand.js +16 -0
  183. package/node_modules/@aws-sdk/client-guardduty/dist-es/commands/ListThreatEntitySetsCommand.js +16 -0
  184. package/node_modules/@aws-sdk/client-guardduty/dist-es/commands/ListThreatIntelSetsCommand.js +16 -0
  185. package/node_modules/@aws-sdk/client-guardduty/dist-es/commands/ListTrustedEntitySetsCommand.js +16 -0
  186. package/node_modules/@aws-sdk/client-guardduty/dist-es/commands/SendObjectMalwareScanCommand.js +16 -0
  187. package/node_modules/@aws-sdk/client-guardduty/dist-es/commands/StartMalwareScanCommand.js +16 -0
  188. package/node_modules/@aws-sdk/client-guardduty/dist-es/commands/StartMonitoringMembersCommand.js +16 -0
  189. package/node_modules/@aws-sdk/client-guardduty/dist-es/commands/StopMonitoringMembersCommand.js +16 -0
  190. package/node_modules/@aws-sdk/client-guardduty/dist-es/commands/TagResourceCommand.js +16 -0
  191. package/node_modules/@aws-sdk/client-guardduty/dist-es/commands/UnarchiveFindingsCommand.js +16 -0
  192. package/node_modules/@aws-sdk/client-guardduty/dist-es/commands/UntagResourceCommand.js +16 -0
  193. package/node_modules/@aws-sdk/client-guardduty/dist-es/commands/UpdateDetectorCommand.js +16 -0
  194. package/node_modules/@aws-sdk/client-guardduty/dist-es/commands/UpdateFilterCommand.js +16 -0
  195. package/node_modules/@aws-sdk/client-guardduty/dist-es/commands/UpdateFindingsFeedbackCommand.js +16 -0
  196. package/node_modules/@aws-sdk/client-guardduty/dist-es/commands/UpdateIPSetCommand.js +16 -0
  197. package/node_modules/@aws-sdk/client-guardduty/dist-es/commands/UpdateMalwareProtectionPlanCommand.js +16 -0
  198. package/node_modules/@aws-sdk/client-guardduty/dist-es/commands/UpdateMalwareScanSettingsCommand.js +16 -0
  199. package/node_modules/@aws-sdk/client-guardduty/dist-es/commands/UpdateMemberDetectorsCommand.js +16 -0
  200. package/node_modules/@aws-sdk/client-guardduty/dist-es/commands/UpdateOrganizationConfigurationCommand.js +16 -0
  201. package/node_modules/@aws-sdk/client-guardduty/dist-es/commands/UpdatePublishingDestinationCommand.js +16 -0
  202. package/node_modules/@aws-sdk/client-guardduty/dist-es/commands/UpdateThreatEntitySetCommand.js +16 -0
  203. package/node_modules/@aws-sdk/client-guardduty/dist-es/commands/UpdateThreatIntelSetCommand.js +16 -0
  204. package/node_modules/@aws-sdk/client-guardduty/dist-es/commands/UpdateTrustedEntitySetCommand.js +16 -0
  205. package/node_modules/@aws-sdk/client-guardduty/dist-es/commands/index.js +87 -0
  206. package/node_modules/@aws-sdk/client-guardduty/dist-es/endpoint/EndpointParameters.js +13 -0
  207. package/node_modules/@aws-sdk/client-guardduty/dist-es/endpoint/endpointResolver.js +14 -0
  208. package/node_modules/@aws-sdk/client-guardduty/dist-es/endpoint/ruleset.js +4 -0
  209. package/node_modules/@aws-sdk/client-guardduty/dist-es/extensionConfiguration.js +1 -0
  210. package/node_modules/@aws-sdk/client-guardduty/dist-es/index.js +10 -0
  211. package/node_modules/@aws-sdk/client-guardduty/dist-es/models/GuardDutyServiceException.js +8 -0
  212. package/node_modules/@aws-sdk/client-guardduty/dist-es/models/enums.js +466 -0
  213. package/node_modules/@aws-sdk/client-guardduty/dist-es/models/errors.js +81 -0
  214. package/node_modules/@aws-sdk/client-guardduty/dist-es/models/models_0.js +1 -0
  215. package/node_modules/@aws-sdk/client-guardduty/dist-es/models/models_1.js +1 -0
  216. package/node_modules/@aws-sdk/client-guardduty/dist-es/pagination/DescribeMalwareScansPaginator.js +4 -0
  217. package/node_modules/@aws-sdk/client-guardduty/dist-es/pagination/DescribeOrganizationConfigurationPaginator.js +4 -0
  218. package/node_modules/@aws-sdk/client-guardduty/dist-es/pagination/GetUsageStatisticsPaginator.js +4 -0
  219. package/node_modules/@aws-sdk/client-guardduty/dist-es/pagination/Interfaces.js +1 -0
  220. package/node_modules/@aws-sdk/client-guardduty/dist-es/pagination/ListCoveragePaginator.js +4 -0
  221. package/node_modules/@aws-sdk/client-guardduty/dist-es/pagination/ListDetectorsPaginator.js +4 -0
  222. package/node_modules/@aws-sdk/client-guardduty/dist-es/pagination/ListFiltersPaginator.js +4 -0
  223. package/node_modules/@aws-sdk/client-guardduty/dist-es/pagination/ListFindingsPaginator.js +4 -0
  224. package/node_modules/@aws-sdk/client-guardduty/dist-es/pagination/ListIPSetsPaginator.js +4 -0
  225. package/node_modules/@aws-sdk/client-guardduty/dist-es/pagination/ListInvitationsPaginator.js +4 -0
  226. package/node_modules/@aws-sdk/client-guardduty/dist-es/pagination/ListMalwareScansPaginator.js +4 -0
  227. package/node_modules/@aws-sdk/client-guardduty/dist-es/pagination/ListMembersPaginator.js +4 -0
  228. package/node_modules/@aws-sdk/client-guardduty/dist-es/pagination/ListOrganizationAdminAccountsPaginator.js +4 -0
  229. package/node_modules/@aws-sdk/client-guardduty/dist-es/pagination/ListPublishingDestinationsPaginator.js +4 -0
  230. package/node_modules/@aws-sdk/client-guardduty/dist-es/pagination/ListThreatEntitySetsPaginator.js +4 -0
  231. package/node_modules/@aws-sdk/client-guardduty/dist-es/pagination/ListThreatIntelSetsPaginator.js +4 -0
  232. package/node_modules/@aws-sdk/client-guardduty/dist-es/pagination/ListTrustedEntitySetsPaginator.js +4 -0
  233. package/node_modules/@aws-sdk/client-guardduty/dist-es/pagination/index.js +17 -0
  234. package/node_modules/@aws-sdk/client-guardduty/dist-es/runtimeConfig.browser.js +33 -0
  235. package/node_modules/@aws-sdk/client-guardduty/dist-es/runtimeConfig.js +49 -0
  236. package/node_modules/@aws-sdk/client-guardduty/dist-es/runtimeConfig.native.js +11 -0
  237. package/node_modules/@aws-sdk/client-guardduty/dist-es/runtimeConfig.shared.js +39 -0
  238. package/node_modules/@aws-sdk/client-guardduty/dist-es/runtimeExtensions.js +9 -0
  239. package/node_modules/@aws-sdk/client-guardduty/dist-es/schemas/schemas_0.js +4389 -0
  240. package/node_modules/@aws-sdk/client-guardduty/dist-types/GuardDuty.d.ts +739 -0
  241. package/node_modules/@aws-sdk/client-guardduty/dist-types/GuardDutyClient.d.ts +274 -0
  242. package/node_modules/@aws-sdk/client-guardduty/dist-types/auth/httpAuthExtensionConfiguration.d.ts +29 -0
  243. package/node_modules/@aws-sdk/client-guardduty/dist-types/auth/httpAuthSchemeProvider.d.ts +75 -0
  244. package/node_modules/@aws-sdk/client-guardduty/dist-types/commands/AcceptAdministratorInvitationCommand.d.ts +80 -0
  245. package/node_modules/@aws-sdk/client-guardduty/dist-types/commands/AcceptInvitationCommand.d.ts +82 -0
  246. package/node_modules/@aws-sdk/client-guardduty/dist-types/commands/ArchiveFindingsCommand.d.ts +81 -0
  247. package/node_modules/@aws-sdk/client-guardduty/dist-types/commands/CreateDetectorCommand.d.ts +123 -0
  248. package/node_modules/@aws-sdk/client-guardduty/dist-types/commands/CreateFilterCommand.d.ts +120 -0
  249. package/node_modules/@aws-sdk/client-guardduty/dist-types/commands/CreateIPSetCommand.d.ts +92 -0
  250. package/node_modules/@aws-sdk/client-guardduty/dist-types/commands/CreateMalwareProtectionPlanCommand.d.ts +103 -0
  251. package/node_modules/@aws-sdk/client-guardduty/dist-types/commands/CreateMembersCommand.d.ts +91 -0
  252. package/node_modules/@aws-sdk/client-guardduty/dist-types/commands/CreatePublishingDestinationCommand.d.ts +89 -0
  253. package/node_modules/@aws-sdk/client-guardduty/dist-types/commands/CreateSampleFindingsCommand.d.ts +81 -0
  254. package/node_modules/@aws-sdk/client-guardduty/dist-types/commands/CreateThreatEntitySetCommand.d.ts +89 -0
  255. package/node_modules/@aws-sdk/client-guardduty/dist-types/commands/CreateThreatIntelSetCommand.d.ts +92 -0
  256. package/node_modules/@aws-sdk/client-guardduty/dist-types/commands/CreateTrustedEntitySetCommand.d.ts +89 -0
  257. package/node_modules/@aws-sdk/client-guardduty/dist-types/commands/DeclineInvitationsCommand.d.ts +87 -0
  258. package/node_modules/@aws-sdk/client-guardduty/dist-types/commands/DeleteDetectorCommand.d.ts +78 -0
  259. package/node_modules/@aws-sdk/client-guardduty/dist-types/commands/DeleteFilterCommand.d.ts +79 -0
  260. package/node_modules/@aws-sdk/client-guardduty/dist-types/commands/DeleteIPSetCommand.d.ts +79 -0
  261. package/node_modules/@aws-sdk/client-guardduty/dist-types/commands/DeleteInvitationsCommand.d.ts +87 -0
  262. package/node_modules/@aws-sdk/client-guardduty/dist-types/commands/DeleteMalwareProtectionPlanCommand.d.ts +84 -0
  263. package/node_modules/@aws-sdk/client-guardduty/dist-types/commands/DeleteMembersCommand.d.ts +88 -0
  264. package/node_modules/@aws-sdk/client-guardduty/dist-types/commands/DeletePublishingDestinationCommand.d.ts +79 -0
  265. package/node_modules/@aws-sdk/client-guardduty/dist-types/commands/DeleteThreatEntitySetCommand.d.ts +79 -0
  266. package/node_modules/@aws-sdk/client-guardduty/dist-types/commands/DeleteThreatIntelSetCommand.d.ts +79 -0
  267. package/node_modules/@aws-sdk/client-guardduty/dist-types/commands/DeleteTrustedEntitySetCommand.d.ts +79 -0
  268. package/node_modules/@aws-sdk/client-guardduty/dist-types/commands/DescribeMalwareScansCommand.d.ts +135 -0
  269. package/node_modules/@aws-sdk/client-guardduty/dist-types/commands/DescribeOrganizationConfigurationCommand.d.ts +114 -0
  270. package/node_modules/@aws-sdk/client-guardduty/dist-types/commands/DescribePublishingDestinationCommand.d.ts +91 -0
  271. package/node_modules/@aws-sdk/client-guardduty/dist-types/commands/DisableOrganizationAdminAccountCommand.d.ts +78 -0
  272. package/node_modules/@aws-sdk/client-guardduty/dist-types/commands/DisassociateFromAdministratorAccountCommand.d.ts +78 -0
  273. package/node_modules/@aws-sdk/client-guardduty/dist-types/commands/DisassociateFromMasterAccountCommand.d.ts +80 -0
  274. package/node_modules/@aws-sdk/client-guardduty/dist-types/commands/DisassociateMembersCommand.d.ts +88 -0
  275. package/node_modules/@aws-sdk/client-guardduty/dist-types/commands/EnableOrganizationAdminAccountCommand.d.ts +78 -0
  276. package/node_modules/@aws-sdk/client-guardduty/dist-types/commands/GetAdministratorAccountCommand.d.ts +85 -0
  277. package/node_modules/@aws-sdk/client-guardduty/dist-types/commands/GetCoverageStatisticsCommand.d.ts +105 -0
  278. package/node_modules/@aws-sdk/client-guardduty/dist-types/commands/GetDetectorCommand.d.ts +129 -0
  279. package/node_modules/@aws-sdk/client-guardduty/dist-types/commands/GetFilterCommand.d.ts +119 -0
  280. package/node_modules/@aws-sdk/client-guardduty/dist-types/commands/GetFindingsCommand.d.ts +1147 -0
  281. package/node_modules/@aws-sdk/client-guardduty/dist-types/commands/GetFindingsStatisticsCommand.d.ts +161 -0
  282. package/node_modules/@aws-sdk/client-guardduty/dist-types/commands/GetIPSetCommand.d.ts +88 -0
  283. package/node_modules/@aws-sdk/client-guardduty/dist-types/commands/GetInvitationsCountCommand.d.ts +78 -0
  284. package/node_modules/@aws-sdk/client-guardduty/dist-types/commands/GetMalwareProtectionPlanCommand.d.ts +111 -0
  285. package/node_modules/@aws-sdk/client-guardduty/dist-types/commands/GetMalwareScanCommand.d.ts +160 -0
  286. package/node_modules/@aws-sdk/client-guardduty/dist-types/commands/GetMalwareScanSettingsCommand.d.ts +102 -0
  287. package/node_modules/@aws-sdk/client-guardduty/dist-types/commands/GetMasterAccountCommand.d.ts +87 -0
  288. package/node_modules/@aws-sdk/client-guardduty/dist-types/commands/GetMemberDetectorsCommand.d.ts +136 -0
  289. package/node_modules/@aws-sdk/client-guardduty/dist-types/commands/GetMembersCommand.d.ts +100 -0
  290. package/node_modules/@aws-sdk/client-guardduty/dist-types/commands/GetOrganizationStatisticsCommand.d.ts +98 -0
  291. package/node_modules/@aws-sdk/client-guardduty/dist-types/commands/GetRemainingFreeTrialDaysCommand.d.ts +121 -0
  292. package/node_modules/@aws-sdk/client-guardduty/dist-types/commands/GetThreatEntitySetCommand.d.ts +91 -0
  293. package/node_modules/@aws-sdk/client-guardduty/dist-types/commands/GetThreatIntelSetCommand.d.ts +88 -0
  294. package/node_modules/@aws-sdk/client-guardduty/dist-types/commands/GetTrustedEntitySetCommand.d.ts +91 -0
  295. package/node_modules/@aws-sdk/client-guardduty/dist-types/commands/GetUsageStatisticsCommand.d.ts +156 -0
  296. package/node_modules/@aws-sdk/client-guardduty/dist-types/commands/InviteMembersCommand.d.ts +90 -0
  297. package/node_modules/@aws-sdk/client-guardduty/dist-types/commands/ListCoverageCommand.d.ts +146 -0
  298. package/node_modules/@aws-sdk/client-guardduty/dist-types/commands/ListDetectorsCommand.d.ts +84 -0
  299. package/node_modules/@aws-sdk/client-guardduty/dist-types/commands/ListFiltersCommand.d.ts +85 -0
  300. package/node_modules/@aws-sdk/client-guardduty/dist-types/commands/ListFindingsCommand.d.ts +121 -0
  301. package/node_modules/@aws-sdk/client-guardduty/dist-types/commands/ListIPSetsCommand.d.ts +85 -0
  302. package/node_modules/@aws-sdk/client-guardduty/dist-types/commands/ListInvitationsCommand.d.ts +89 -0
  303. package/node_modules/@aws-sdk/client-guardduty/dist-types/commands/ListMalwareProtectionPlansCommand.d.ts +88 -0
  304. package/node_modules/@aws-sdk/client-guardduty/dist-types/commands/ListMalwareScansCommand.d.ts +109 -0
  305. package/node_modules/@aws-sdk/client-guardduty/dist-types/commands/ListMembersCommand.d.ts +95 -0
  306. package/node_modules/@aws-sdk/client-guardduty/dist-types/commands/ListOrganizationAdminAccountsCommand.d.ts +87 -0
  307. package/node_modules/@aws-sdk/client-guardduty/dist-types/commands/ListPublishingDestinationsCommand.d.ts +89 -0
  308. package/node_modules/@aws-sdk/client-guardduty/dist-types/commands/ListTagsForResourceCommand.d.ts +85 -0
  309. package/node_modules/@aws-sdk/client-guardduty/dist-types/commands/ListThreatEntitySetsCommand.d.ts +85 -0
  310. package/node_modules/@aws-sdk/client-guardduty/dist-types/commands/ListThreatIntelSetsCommand.d.ts +85 -0
  311. package/node_modules/@aws-sdk/client-guardduty/dist-types/commands/ListTrustedEntitySetsCommand.d.ts +85 -0
  312. package/node_modules/@aws-sdk/client-guardduty/dist-types/commands/SendObjectMalwareScanCommand.d.ts +85 -0
  313. package/node_modules/@aws-sdk/client-guardduty/dist-types/commands/StartMalwareScanCommand.d.ts +93 -0
  314. package/node_modules/@aws-sdk/client-guardduty/dist-types/commands/StartMonitoringMembersCommand.d.ts +88 -0
  315. package/node_modules/@aws-sdk/client-guardduty/dist-types/commands/StopMonitoringMembersCommand.d.ts +88 -0
  316. package/node_modules/@aws-sdk/client-guardduty/dist-types/commands/TagResourceCommand.d.ts +84 -0
  317. package/node_modules/@aws-sdk/client-guardduty/dist-types/commands/UnarchiveFindingsCommand.d.ts +81 -0
  318. package/node_modules/@aws-sdk/client-guardduty/dist-types/commands/UntagResourceCommand.d.ts +84 -0
  319. package/node_modules/@aws-sdk/client-guardduty/dist-types/commands/UpdateDetectorCommand.d.ts +107 -0
  320. package/node_modules/@aws-sdk/client-guardduty/dist-types/commands/UpdateFilterCommand.d.ts +116 -0
  321. package/node_modules/@aws-sdk/client-guardduty/dist-types/commands/UpdateFindingsFeedbackCommand.d.ts +83 -0
  322. package/node_modules/@aws-sdk/client-guardduty/dist-types/commands/UpdateIPSetCommand.d.ts +86 -0
  323. package/node_modules/@aws-sdk/client-guardduty/dist-types/commands/UpdateMalwareProtectionPlanCommand.d.ts +97 -0
  324. package/node_modules/@aws-sdk/client-guardduty/dist-types/commands/UpdateMalwareScanSettingsCommand.d.ts +101 -0
  325. package/node_modules/@aws-sdk/client-guardduty/dist-types/commands/UpdateMemberDetectorsCommand.d.ts +115 -0
  326. package/node_modules/@aws-sdk/client-guardduty/dist-types/commands/UpdateOrganizationConfigurationCommand.d.ts +109 -0
  327. package/node_modules/@aws-sdk/client-guardduty/dist-types/commands/UpdatePublishingDestinationCommand.d.ts +83 -0
  328. package/node_modules/@aws-sdk/client-guardduty/dist-types/commands/UpdateThreatEntitySetCommand.d.ts +83 -0
  329. package/node_modules/@aws-sdk/client-guardduty/dist-types/commands/UpdateThreatIntelSetCommand.d.ts +86 -0
  330. package/node_modules/@aws-sdk/client-guardduty/dist-types/commands/UpdateTrustedEntitySetCommand.d.ts +83 -0
  331. package/node_modules/@aws-sdk/client-guardduty/dist-types/commands/index.d.ts +87 -0
  332. package/node_modules/@aws-sdk/client-guardduty/dist-types/endpoint/EndpointParameters.d.ts +50 -0
  333. package/node_modules/@aws-sdk/client-guardduty/dist-types/endpoint/endpointResolver.d.ts +8 -0
  334. package/node_modules/@aws-sdk/client-guardduty/dist-types/endpoint/ruleset.d.ts +2 -0
  335. package/node_modules/@aws-sdk/client-guardduty/dist-types/extensionConfiguration.d.ts +9 -0
  336. package/node_modules/@aws-sdk/client-guardduty/dist-types/index.d.ts +18 -0
  337. package/node_modules/@aws-sdk/client-guardduty/dist-types/models/GuardDutyServiceException.d.ts +14 -0
  338. package/node_modules/@aws-sdk/client-guardduty/dist-types/models/enums.d.ts +1010 -0
  339. package/node_modules/@aws-sdk/client-guardduty/dist-types/models/errors.d.ts +112 -0
  340. package/node_modules/@aws-sdk/client-guardduty/dist-types/models/models_0.d.ts +6770 -0
  341. package/node_modules/@aws-sdk/client-guardduty/dist-types/models/models_1.d.ts +2167 -0
  342. package/node_modules/@aws-sdk/client-guardduty/dist-types/pagination/DescribeMalwareScansPaginator.d.ts +7 -0
  343. package/node_modules/@aws-sdk/client-guardduty/dist-types/pagination/DescribeOrganizationConfigurationPaginator.d.ts +7 -0
  344. package/node_modules/@aws-sdk/client-guardduty/dist-types/pagination/GetUsageStatisticsPaginator.d.ts +7 -0
  345. package/node_modules/@aws-sdk/client-guardduty/dist-types/pagination/Interfaces.d.ts +8 -0
  346. package/node_modules/@aws-sdk/client-guardduty/dist-types/pagination/ListCoveragePaginator.d.ts +7 -0
  347. package/node_modules/@aws-sdk/client-guardduty/dist-types/pagination/ListDetectorsPaginator.d.ts +7 -0
  348. package/node_modules/@aws-sdk/client-guardduty/dist-types/pagination/ListFiltersPaginator.d.ts +7 -0
  349. package/node_modules/@aws-sdk/client-guardduty/dist-types/pagination/ListFindingsPaginator.d.ts +7 -0
  350. package/node_modules/@aws-sdk/client-guardduty/dist-types/pagination/ListIPSetsPaginator.d.ts +7 -0
  351. package/node_modules/@aws-sdk/client-guardduty/dist-types/pagination/ListInvitationsPaginator.d.ts +7 -0
  352. package/node_modules/@aws-sdk/client-guardduty/dist-types/pagination/ListMalwareScansPaginator.d.ts +7 -0
  353. package/node_modules/@aws-sdk/client-guardduty/dist-types/pagination/ListMembersPaginator.d.ts +7 -0
  354. package/node_modules/@aws-sdk/client-guardduty/dist-types/pagination/ListOrganizationAdminAccountsPaginator.d.ts +7 -0
  355. package/node_modules/@aws-sdk/client-guardduty/dist-types/pagination/ListPublishingDestinationsPaginator.d.ts +7 -0
  356. package/node_modules/@aws-sdk/client-guardduty/dist-types/pagination/ListThreatEntitySetsPaginator.d.ts +7 -0
  357. package/node_modules/@aws-sdk/client-guardduty/dist-types/pagination/ListThreatIntelSetsPaginator.d.ts +7 -0
  358. package/node_modules/@aws-sdk/client-guardduty/dist-types/pagination/ListTrustedEntitySetsPaginator.d.ts +7 -0
  359. package/node_modules/@aws-sdk/client-guardduty/dist-types/pagination/index.d.ts +17 -0
  360. package/node_modules/@aws-sdk/client-guardduty/dist-types/runtimeConfig.browser.d.ts +55 -0
  361. package/node_modules/@aws-sdk/client-guardduty/dist-types/runtimeConfig.d.ts +55 -0
  362. package/node_modules/@aws-sdk/client-guardduty/dist-types/runtimeConfig.native.d.ts +54 -0
  363. package/node_modules/@aws-sdk/client-guardduty/dist-types/runtimeConfig.shared.d.ts +27 -0
  364. package/node_modules/@aws-sdk/client-guardduty/dist-types/runtimeExtensions.d.ts +17 -0
  365. package/node_modules/@aws-sdk/client-guardduty/dist-types/schemas/schemas_0.d.ts +522 -0
  366. package/node_modules/@aws-sdk/client-guardduty/dist-types/ts3.4/GuardDuty.d.ts +1620 -0
  367. package/node_modules/@aws-sdk/client-guardduty/dist-types/ts3.4/GuardDutyClient.d.ts +640 -0
  368. package/node_modules/@aws-sdk/client-guardduty/dist-types/ts3.4/auth/httpAuthExtensionConfiguration.d.ts +32 -0
  369. package/node_modules/@aws-sdk/client-guardduty/dist-types/ts3.4/auth/httpAuthSchemeProvider.d.ts +47 -0
  370. package/node_modules/@aws-sdk/client-guardduty/dist-types/ts3.4/commands/AcceptAdministratorInvitationCommand.d.ts +51 -0
  371. package/node_modules/@aws-sdk/client-guardduty/dist-types/ts3.4/commands/AcceptInvitationCommand.d.ts +50 -0
  372. package/node_modules/@aws-sdk/client-guardduty/dist-types/ts3.4/commands/ArchiveFindingsCommand.d.ts +50 -0
  373. package/node_modules/@aws-sdk/client-guardduty/dist-types/ts3.4/commands/CreateDetectorCommand.d.ts +50 -0
  374. package/node_modules/@aws-sdk/client-guardduty/dist-types/ts3.4/commands/CreateFilterCommand.d.ts +47 -0
  375. package/node_modules/@aws-sdk/client-guardduty/dist-types/ts3.4/commands/CreateIPSetCommand.d.ts +47 -0
  376. package/node_modules/@aws-sdk/client-guardduty/dist-types/ts3.4/commands/CreateMalwareProtectionPlanCommand.d.ts +51 -0
  377. package/node_modules/@aws-sdk/client-guardduty/dist-types/ts3.4/commands/CreateMembersCommand.d.ts +50 -0
  378. package/node_modules/@aws-sdk/client-guardduty/dist-types/ts3.4/commands/CreatePublishingDestinationCommand.d.ts +51 -0
  379. package/node_modules/@aws-sdk/client-guardduty/dist-types/ts3.4/commands/CreateSampleFindingsCommand.d.ts +51 -0
  380. package/node_modules/@aws-sdk/client-guardduty/dist-types/ts3.4/commands/CreateThreatEntitySetCommand.d.ts +51 -0
  381. package/node_modules/@aws-sdk/client-guardduty/dist-types/ts3.4/commands/CreateThreatIntelSetCommand.d.ts +51 -0
  382. package/node_modules/@aws-sdk/client-guardduty/dist-types/ts3.4/commands/CreateTrustedEntitySetCommand.d.ts +51 -0
  383. package/node_modules/@aws-sdk/client-guardduty/dist-types/ts3.4/commands/DeclineInvitationsCommand.d.ts +51 -0
  384. package/node_modules/@aws-sdk/client-guardduty/dist-types/ts3.4/commands/DeleteDetectorCommand.d.ts +50 -0
  385. package/node_modules/@aws-sdk/client-guardduty/dist-types/ts3.4/commands/DeleteFilterCommand.d.ts +47 -0
  386. package/node_modules/@aws-sdk/client-guardduty/dist-types/ts3.4/commands/DeleteIPSetCommand.d.ts +47 -0
  387. package/node_modules/@aws-sdk/client-guardduty/dist-types/ts3.4/commands/DeleteInvitationsCommand.d.ts +51 -0
  388. package/node_modules/@aws-sdk/client-guardduty/dist-types/ts3.4/commands/DeleteMalwareProtectionPlanCommand.d.ts +47 -0
  389. package/node_modules/@aws-sdk/client-guardduty/dist-types/ts3.4/commands/DeleteMembersCommand.d.ts +50 -0
  390. package/node_modules/@aws-sdk/client-guardduty/dist-types/ts3.4/commands/DeletePublishingDestinationCommand.d.ts +51 -0
  391. package/node_modules/@aws-sdk/client-guardduty/dist-types/ts3.4/commands/DeleteThreatEntitySetCommand.d.ts +51 -0
  392. package/node_modules/@aws-sdk/client-guardduty/dist-types/ts3.4/commands/DeleteThreatIntelSetCommand.d.ts +51 -0
  393. package/node_modules/@aws-sdk/client-guardduty/dist-types/ts3.4/commands/DeleteTrustedEntitySetCommand.d.ts +51 -0
  394. package/node_modules/@aws-sdk/client-guardduty/dist-types/ts3.4/commands/DescribeMalwareScansCommand.d.ts +51 -0
  395. package/node_modules/@aws-sdk/client-guardduty/dist-types/ts3.4/commands/DescribeOrganizationConfigurationCommand.d.ts +51 -0
  396. package/node_modules/@aws-sdk/client-guardduty/dist-types/ts3.4/commands/DescribePublishingDestinationCommand.d.ts +51 -0
  397. package/node_modules/@aws-sdk/client-guardduty/dist-types/ts3.4/commands/DisableOrganizationAdminAccountCommand.d.ts +51 -0
  398. package/node_modules/@aws-sdk/client-guardduty/dist-types/ts3.4/commands/DisassociateFromAdministratorAccountCommand.d.ts +51 -0
  399. package/node_modules/@aws-sdk/client-guardduty/dist-types/ts3.4/commands/DisassociateFromMasterAccountCommand.d.ts +51 -0
  400. package/node_modules/@aws-sdk/client-guardduty/dist-types/ts3.4/commands/DisassociateMembersCommand.d.ts +51 -0
  401. package/node_modules/@aws-sdk/client-guardduty/dist-types/ts3.4/commands/EnableOrganizationAdminAccountCommand.d.ts +51 -0
  402. package/node_modules/@aws-sdk/client-guardduty/dist-types/ts3.4/commands/GetAdministratorAccountCommand.d.ts +51 -0
  403. package/node_modules/@aws-sdk/client-guardduty/dist-types/ts3.4/commands/GetCoverageStatisticsCommand.d.ts +51 -0
  404. package/node_modules/@aws-sdk/client-guardduty/dist-types/ts3.4/commands/GetDetectorCommand.d.ts +47 -0
  405. package/node_modules/@aws-sdk/client-guardduty/dist-types/ts3.4/commands/GetFilterCommand.d.ts +47 -0
  406. package/node_modules/@aws-sdk/client-guardduty/dist-types/ts3.4/commands/GetFindingsCommand.d.ts +47 -0
  407. package/node_modules/@aws-sdk/client-guardduty/dist-types/ts3.4/commands/GetFindingsStatisticsCommand.d.ts +51 -0
  408. package/node_modules/@aws-sdk/client-guardduty/dist-types/ts3.4/commands/GetIPSetCommand.d.ts +47 -0
  409. package/node_modules/@aws-sdk/client-guardduty/dist-types/ts3.4/commands/GetInvitationsCountCommand.d.ts +51 -0
  410. package/node_modules/@aws-sdk/client-guardduty/dist-types/ts3.4/commands/GetMalwareProtectionPlanCommand.d.ts +51 -0
  411. package/node_modules/@aws-sdk/client-guardduty/dist-types/ts3.4/commands/GetMalwareScanCommand.d.ts +50 -0
  412. package/node_modules/@aws-sdk/client-guardduty/dist-types/ts3.4/commands/GetMalwareScanSettingsCommand.d.ts +51 -0
  413. package/node_modules/@aws-sdk/client-guardduty/dist-types/ts3.4/commands/GetMasterAccountCommand.d.ts +50 -0
  414. package/node_modules/@aws-sdk/client-guardduty/dist-types/ts3.4/commands/GetMemberDetectorsCommand.d.ts +49 -0
  415. package/node_modules/@aws-sdk/client-guardduty/dist-types/ts3.4/commands/GetMembersCommand.d.ts +47 -0
  416. package/node_modules/@aws-sdk/client-guardduty/dist-types/ts3.4/commands/GetOrganizationStatisticsCommand.d.ts +47 -0
  417. package/node_modules/@aws-sdk/client-guardduty/dist-types/ts3.4/commands/GetRemainingFreeTrialDaysCommand.d.ts +51 -0
  418. package/node_modules/@aws-sdk/client-guardduty/dist-types/ts3.4/commands/GetThreatEntitySetCommand.d.ts +51 -0
  419. package/node_modules/@aws-sdk/client-guardduty/dist-types/ts3.4/commands/GetThreatIntelSetCommand.d.ts +51 -0
  420. package/node_modules/@aws-sdk/client-guardduty/dist-types/ts3.4/commands/GetTrustedEntitySetCommand.d.ts +51 -0
  421. package/node_modules/@aws-sdk/client-guardduty/dist-types/ts3.4/commands/GetUsageStatisticsCommand.d.ts +51 -0
  422. package/node_modules/@aws-sdk/client-guardduty/dist-types/ts3.4/commands/InviteMembersCommand.d.ts +50 -0
  423. package/node_modules/@aws-sdk/client-guardduty/dist-types/ts3.4/commands/ListCoverageCommand.d.ts +47 -0
  424. package/node_modules/@aws-sdk/client-guardduty/dist-types/ts3.4/commands/ListDetectorsCommand.d.ts +50 -0
  425. package/node_modules/@aws-sdk/client-guardduty/dist-types/ts3.4/commands/ListFiltersCommand.d.ts +47 -0
  426. package/node_modules/@aws-sdk/client-guardduty/dist-types/ts3.4/commands/ListFindingsCommand.d.ts +47 -0
  427. package/node_modules/@aws-sdk/client-guardduty/dist-types/ts3.4/commands/ListIPSetsCommand.d.ts +47 -0
  428. package/node_modules/@aws-sdk/client-guardduty/dist-types/ts3.4/commands/ListInvitationsCommand.d.ts +50 -0
  429. package/node_modules/@aws-sdk/client-guardduty/dist-types/ts3.4/commands/ListMalwareProtectionPlansCommand.d.ts +51 -0
  430. package/node_modules/@aws-sdk/client-guardduty/dist-types/ts3.4/commands/ListMalwareScansCommand.d.ts +50 -0
  431. package/node_modules/@aws-sdk/client-guardduty/dist-types/ts3.4/commands/ListMembersCommand.d.ts +47 -0
  432. package/node_modules/@aws-sdk/client-guardduty/dist-types/ts3.4/commands/ListOrganizationAdminAccountsCommand.d.ts +51 -0
  433. package/node_modules/@aws-sdk/client-guardduty/dist-types/ts3.4/commands/ListPublishingDestinationsCommand.d.ts +51 -0
  434. package/node_modules/@aws-sdk/client-guardduty/dist-types/ts3.4/commands/ListTagsForResourceCommand.d.ts +51 -0
  435. package/node_modules/@aws-sdk/client-guardduty/dist-types/ts3.4/commands/ListThreatEntitySetsCommand.d.ts +51 -0
  436. package/node_modules/@aws-sdk/client-guardduty/dist-types/ts3.4/commands/ListThreatIntelSetsCommand.d.ts +51 -0
  437. package/node_modules/@aws-sdk/client-guardduty/dist-types/ts3.4/commands/ListTrustedEntitySetsCommand.d.ts +51 -0
  438. package/node_modules/@aws-sdk/client-guardduty/dist-types/ts3.4/commands/SendObjectMalwareScanCommand.d.ts +51 -0
  439. package/node_modules/@aws-sdk/client-guardduty/dist-types/ts3.4/commands/StartMalwareScanCommand.d.ts +50 -0
  440. package/node_modules/@aws-sdk/client-guardduty/dist-types/ts3.4/commands/StartMonitoringMembersCommand.d.ts +51 -0
  441. package/node_modules/@aws-sdk/client-guardduty/dist-types/ts3.4/commands/StopMonitoringMembersCommand.d.ts +51 -0
  442. package/node_modules/@aws-sdk/client-guardduty/dist-types/ts3.4/commands/TagResourceCommand.d.ts +47 -0
  443. package/node_modules/@aws-sdk/client-guardduty/dist-types/ts3.4/commands/UnarchiveFindingsCommand.d.ts +51 -0
  444. package/node_modules/@aws-sdk/client-guardduty/dist-types/ts3.4/commands/UntagResourceCommand.d.ts +50 -0
  445. package/node_modules/@aws-sdk/client-guardduty/dist-types/ts3.4/commands/UpdateDetectorCommand.d.ts +50 -0
  446. package/node_modules/@aws-sdk/client-guardduty/dist-types/ts3.4/commands/UpdateFilterCommand.d.ts +47 -0
  447. package/node_modules/@aws-sdk/client-guardduty/dist-types/ts3.4/commands/UpdateFindingsFeedbackCommand.d.ts +51 -0
  448. package/node_modules/@aws-sdk/client-guardduty/dist-types/ts3.4/commands/UpdateIPSetCommand.d.ts +47 -0
  449. package/node_modules/@aws-sdk/client-guardduty/dist-types/ts3.4/commands/UpdateMalwareProtectionPlanCommand.d.ts +47 -0
  450. package/node_modules/@aws-sdk/client-guardduty/dist-types/ts3.4/commands/UpdateMalwareScanSettingsCommand.d.ts +51 -0
  451. package/node_modules/@aws-sdk/client-guardduty/dist-types/ts3.4/commands/UpdateMemberDetectorsCommand.d.ts +51 -0
  452. package/node_modules/@aws-sdk/client-guardduty/dist-types/ts3.4/commands/UpdateOrganizationConfigurationCommand.d.ts +51 -0
  453. package/node_modules/@aws-sdk/client-guardduty/dist-types/ts3.4/commands/UpdatePublishingDestinationCommand.d.ts +51 -0
  454. package/node_modules/@aws-sdk/client-guardduty/dist-types/ts3.4/commands/UpdateThreatEntitySetCommand.d.ts +51 -0
  455. package/node_modules/@aws-sdk/client-guardduty/dist-types/ts3.4/commands/UpdateThreatIntelSetCommand.d.ts +51 -0
  456. package/node_modules/@aws-sdk/client-guardduty/dist-types/ts3.4/commands/UpdateTrustedEntitySetCommand.d.ts +51 -0
  457. package/node_modules/@aws-sdk/client-guardduty/dist-types/ts3.4/commands/index.d.ts +87 -0
  458. package/node_modules/@aws-sdk/client-guardduty/dist-types/ts3.4/endpoint/EndpointParameters.d.ts +51 -0
  459. package/node_modules/@aws-sdk/client-guardduty/dist-types/ts3.4/endpoint/endpointResolver.d.ts +8 -0
  460. package/node_modules/@aws-sdk/client-guardduty/dist-types/ts3.4/endpoint/ruleset.d.ts +2 -0
  461. package/node_modules/@aws-sdk/client-guardduty/dist-types/ts3.4/extensionConfiguration.d.ts +9 -0
  462. package/node_modules/@aws-sdk/client-guardduty/dist-types/ts3.4/index.d.ts +13 -0
  463. package/node_modules/@aws-sdk/client-guardduty/dist-types/ts3.4/models/GuardDutyServiceException.d.ts +9 -0
  464. package/node_modules/@aws-sdk/client-guardduty/dist-types/ts3.4/models/enums.d.ts +578 -0
  465. package/node_modules/@aws-sdk/client-guardduty/dist-types/ts3.4/models/errors.d.ts +45 -0
  466. package/node_modules/@aws-sdk/client-guardduty/dist-types/ts3.4/models/models_0.d.ts +1659 -0
  467. package/node_modules/@aws-sdk/client-guardduty/dist-types/ts3.4/models/models_1.d.ts +581 -0
  468. package/node_modules/@aws-sdk/client-guardduty/dist-types/ts3.4/pagination/DescribeMalwareScansPaginator.d.ts +11 -0
  469. package/node_modules/@aws-sdk/client-guardduty/dist-types/ts3.4/pagination/DescribeOrganizationConfigurationPaginator.d.ts +11 -0
  470. package/node_modules/@aws-sdk/client-guardduty/dist-types/ts3.4/pagination/GetUsageStatisticsPaginator.d.ts +11 -0
  471. package/node_modules/@aws-sdk/client-guardduty/dist-types/ts3.4/pagination/Interfaces.d.ts +6 -0
  472. package/node_modules/@aws-sdk/client-guardduty/dist-types/ts3.4/pagination/ListCoveragePaginator.d.ts +11 -0
  473. package/node_modules/@aws-sdk/client-guardduty/dist-types/ts3.4/pagination/ListDetectorsPaginator.d.ts +11 -0
  474. package/node_modules/@aws-sdk/client-guardduty/dist-types/ts3.4/pagination/ListFiltersPaginator.d.ts +11 -0
  475. package/node_modules/@aws-sdk/client-guardduty/dist-types/ts3.4/pagination/ListFindingsPaginator.d.ts +11 -0
  476. package/node_modules/@aws-sdk/client-guardduty/dist-types/ts3.4/pagination/ListIPSetsPaginator.d.ts +11 -0
  477. package/node_modules/@aws-sdk/client-guardduty/dist-types/ts3.4/pagination/ListInvitationsPaginator.d.ts +11 -0
  478. package/node_modules/@aws-sdk/client-guardduty/dist-types/ts3.4/pagination/ListMalwareScansPaginator.d.ts +11 -0
  479. package/node_modules/@aws-sdk/client-guardduty/dist-types/ts3.4/pagination/ListMembersPaginator.d.ts +11 -0
  480. package/node_modules/@aws-sdk/client-guardduty/dist-types/ts3.4/pagination/ListOrganizationAdminAccountsPaginator.d.ts +11 -0
  481. package/node_modules/@aws-sdk/client-guardduty/dist-types/ts3.4/pagination/ListPublishingDestinationsPaginator.d.ts +11 -0
  482. package/node_modules/@aws-sdk/client-guardduty/dist-types/ts3.4/pagination/ListThreatEntitySetsPaginator.d.ts +11 -0
  483. package/node_modules/@aws-sdk/client-guardduty/dist-types/ts3.4/pagination/ListThreatIntelSetsPaginator.d.ts +11 -0
  484. package/node_modules/@aws-sdk/client-guardduty/dist-types/ts3.4/pagination/ListTrustedEntitySetsPaginator.d.ts +11 -0
  485. package/node_modules/@aws-sdk/client-guardduty/dist-types/ts3.4/pagination/index.d.ts +17 -0
  486. package/node_modules/@aws-sdk/client-guardduty/dist-types/ts3.4/runtimeConfig.browser.d.ts +100 -0
  487. package/node_modules/@aws-sdk/client-guardduty/dist-types/ts3.4/runtimeConfig.d.ts +95 -0
  488. package/node_modules/@aws-sdk/client-guardduty/dist-types/ts3.4/runtimeConfig.native.d.ts +104 -0
  489. package/node_modules/@aws-sdk/client-guardduty/dist-types/ts3.4/runtimeConfig.shared.d.ts +30 -0
  490. package/node_modules/@aws-sdk/client-guardduty/dist-types/ts3.4/runtimeExtensions.d.ts +11 -0
  491. package/node_modules/@aws-sdk/client-guardduty/dist-types/ts3.4/schemas/schemas_0.d.ts +521 -0
  492. package/node_modules/@aws-sdk/client-guardduty/package.json +100 -0
  493. package/node_modules/@aws-sdk/client-iam/package.json +1 -1
  494. package/node_modules/@aws-sdk/client-identitystore/package.json +1 -1
  495. package/node_modules/@aws-sdk/client-macie2/LICENSE +201 -0
  496. package/node_modules/@aws-sdk/client-macie2/README.md +748 -0
  497. package/node_modules/@aws-sdk/client-macie2/dist-cjs/auth/httpAuthSchemeProvider.js +46 -0
  498. package/node_modules/@aws-sdk/client-macie2/dist-cjs/endpoint/endpointResolver.js +18 -0
  499. package/node_modules/@aws-sdk/client-macie2/dist-cjs/endpoint/ruleset.js +7 -0
  500. package/node_modules/@aws-sdk/client-macie2/dist-cjs/index.js +1798 -0
  501. package/node_modules/@aws-sdk/client-macie2/dist-cjs/models/Macie2ServiceException.js +12 -0
  502. package/node_modules/@aws-sdk/client-macie2/dist-cjs/models/errors.js +108 -0
  503. package/node_modules/@aws-sdk/client-macie2/dist-cjs/runtimeConfig.browser.js +38 -0
  504. package/node_modules/@aws-sdk/client-macie2/dist-cjs/runtimeConfig.js +54 -0
  505. package/node_modules/@aws-sdk/client-macie2/dist-cjs/runtimeConfig.native.js +15 -0
  506. package/node_modules/@aws-sdk/client-macie2/dist-cjs/runtimeConfig.shared.js +43 -0
  507. package/node_modules/@aws-sdk/client-macie2/dist-cjs/schemas/schemas_0.js +2832 -0
  508. package/node_modules/@aws-sdk/client-macie2/dist-es/Macie2.js +209 -0
  509. package/node_modules/@aws-sdk/client-macie2/dist-es/Macie2Client.js +50 -0
  510. package/node_modules/@aws-sdk/client-macie2/dist-es/auth/httpAuthExtensionConfiguration.js +38 -0
  511. package/node_modules/@aws-sdk/client-macie2/dist-es/auth/httpAuthSchemeProvider.js +40 -0
  512. package/node_modules/@aws-sdk/client-macie2/dist-es/commands/AcceptInvitationCommand.js +16 -0
  513. package/node_modules/@aws-sdk/client-macie2/dist-es/commands/BatchGetCustomDataIdentifiersCommand.js +16 -0
  514. package/node_modules/@aws-sdk/client-macie2/dist-es/commands/BatchUpdateAutomatedDiscoveryAccountsCommand.js +16 -0
  515. package/node_modules/@aws-sdk/client-macie2/dist-es/commands/CreateAllowListCommand.js +16 -0
  516. package/node_modules/@aws-sdk/client-macie2/dist-es/commands/CreateClassificationJobCommand.js +16 -0
  517. package/node_modules/@aws-sdk/client-macie2/dist-es/commands/CreateCustomDataIdentifierCommand.js +16 -0
  518. package/node_modules/@aws-sdk/client-macie2/dist-es/commands/CreateFindingsFilterCommand.js +16 -0
  519. package/node_modules/@aws-sdk/client-macie2/dist-es/commands/CreateInvitationsCommand.js +16 -0
  520. package/node_modules/@aws-sdk/client-macie2/dist-es/commands/CreateMemberCommand.js +16 -0
  521. package/node_modules/@aws-sdk/client-macie2/dist-es/commands/CreateSampleFindingsCommand.js +16 -0
  522. package/node_modules/@aws-sdk/client-macie2/dist-es/commands/DeclineInvitationsCommand.js +16 -0
  523. package/node_modules/@aws-sdk/client-macie2/dist-es/commands/DeleteAllowListCommand.js +16 -0
  524. package/node_modules/@aws-sdk/client-macie2/dist-es/commands/DeleteCustomDataIdentifierCommand.js +16 -0
  525. package/node_modules/@aws-sdk/client-macie2/dist-es/commands/DeleteFindingsFilterCommand.js +16 -0
  526. package/node_modules/@aws-sdk/client-macie2/dist-es/commands/DeleteInvitationsCommand.js +16 -0
  527. package/node_modules/@aws-sdk/client-macie2/dist-es/commands/DeleteMemberCommand.js +16 -0
  528. package/node_modules/@aws-sdk/client-macie2/dist-es/commands/DescribeBucketsCommand.js +16 -0
  529. package/node_modules/@aws-sdk/client-macie2/dist-es/commands/DescribeClassificationJobCommand.js +16 -0
  530. package/node_modules/@aws-sdk/client-macie2/dist-es/commands/DescribeOrganizationConfigurationCommand.js +16 -0
  531. package/node_modules/@aws-sdk/client-macie2/dist-es/commands/DisableMacieCommand.js +16 -0
  532. package/node_modules/@aws-sdk/client-macie2/dist-es/commands/DisableOrganizationAdminAccountCommand.js +16 -0
  533. package/node_modules/@aws-sdk/client-macie2/dist-es/commands/DisassociateFromAdministratorAccountCommand.js +16 -0
  534. package/node_modules/@aws-sdk/client-macie2/dist-es/commands/DisassociateFromMasterAccountCommand.js +16 -0
  535. package/node_modules/@aws-sdk/client-macie2/dist-es/commands/DisassociateMemberCommand.js +16 -0
  536. package/node_modules/@aws-sdk/client-macie2/dist-es/commands/EnableMacieCommand.js +16 -0
  537. package/node_modules/@aws-sdk/client-macie2/dist-es/commands/EnableOrganizationAdminAccountCommand.js +16 -0
  538. package/node_modules/@aws-sdk/client-macie2/dist-es/commands/GetAdministratorAccountCommand.js +16 -0
  539. package/node_modules/@aws-sdk/client-macie2/dist-es/commands/GetAllowListCommand.js +16 -0
  540. package/node_modules/@aws-sdk/client-macie2/dist-es/commands/GetAutomatedDiscoveryConfigurationCommand.js +16 -0
  541. package/node_modules/@aws-sdk/client-macie2/dist-es/commands/GetBucketStatisticsCommand.js +16 -0
  542. package/node_modules/@aws-sdk/client-macie2/dist-es/commands/GetClassificationExportConfigurationCommand.js +16 -0
  543. package/node_modules/@aws-sdk/client-macie2/dist-es/commands/GetClassificationScopeCommand.js +16 -0
  544. package/node_modules/@aws-sdk/client-macie2/dist-es/commands/GetCustomDataIdentifierCommand.js +16 -0
  545. package/node_modules/@aws-sdk/client-macie2/dist-es/commands/GetFindingStatisticsCommand.js +16 -0
  546. package/node_modules/@aws-sdk/client-macie2/dist-es/commands/GetFindingsCommand.js +16 -0
  547. package/node_modules/@aws-sdk/client-macie2/dist-es/commands/GetFindingsFilterCommand.js +16 -0
  548. package/node_modules/@aws-sdk/client-macie2/dist-es/commands/GetFindingsPublicationConfigurationCommand.js +16 -0
  549. package/node_modules/@aws-sdk/client-macie2/dist-es/commands/GetInvitationsCountCommand.js +16 -0
  550. package/node_modules/@aws-sdk/client-macie2/dist-es/commands/GetMacieSessionCommand.js +16 -0
  551. package/node_modules/@aws-sdk/client-macie2/dist-es/commands/GetMasterAccountCommand.js +16 -0
  552. package/node_modules/@aws-sdk/client-macie2/dist-es/commands/GetMemberCommand.js +16 -0
  553. package/node_modules/@aws-sdk/client-macie2/dist-es/commands/GetResourceProfileCommand.js +16 -0
  554. package/node_modules/@aws-sdk/client-macie2/dist-es/commands/GetRevealConfigurationCommand.js +16 -0
  555. package/node_modules/@aws-sdk/client-macie2/dist-es/commands/GetSensitiveDataOccurrencesAvailabilityCommand.js +16 -0
  556. package/node_modules/@aws-sdk/client-macie2/dist-es/commands/GetSensitiveDataOccurrencesCommand.js +16 -0
  557. package/node_modules/@aws-sdk/client-macie2/dist-es/commands/GetSensitivityInspectionTemplateCommand.js +16 -0
  558. package/node_modules/@aws-sdk/client-macie2/dist-es/commands/GetUsageStatisticsCommand.js +16 -0
  559. package/node_modules/@aws-sdk/client-macie2/dist-es/commands/GetUsageTotalsCommand.js +16 -0
  560. package/node_modules/@aws-sdk/client-macie2/dist-es/commands/ListAllowListsCommand.js +16 -0
  561. package/node_modules/@aws-sdk/client-macie2/dist-es/commands/ListAutomatedDiscoveryAccountsCommand.js +16 -0
  562. package/node_modules/@aws-sdk/client-macie2/dist-es/commands/ListClassificationJobsCommand.js +16 -0
  563. package/node_modules/@aws-sdk/client-macie2/dist-es/commands/ListClassificationScopesCommand.js +16 -0
  564. package/node_modules/@aws-sdk/client-macie2/dist-es/commands/ListCustomDataIdentifiersCommand.js +16 -0
  565. package/node_modules/@aws-sdk/client-macie2/dist-es/commands/ListFindingsCommand.js +16 -0
  566. package/node_modules/@aws-sdk/client-macie2/dist-es/commands/ListFindingsFiltersCommand.js +16 -0
  567. package/node_modules/@aws-sdk/client-macie2/dist-es/commands/ListInvitationsCommand.js +16 -0
  568. package/node_modules/@aws-sdk/client-macie2/dist-es/commands/ListManagedDataIdentifiersCommand.js +16 -0
  569. package/node_modules/@aws-sdk/client-macie2/dist-es/commands/ListMembersCommand.js +16 -0
  570. package/node_modules/@aws-sdk/client-macie2/dist-es/commands/ListOrganizationAdminAccountsCommand.js +16 -0
  571. package/node_modules/@aws-sdk/client-macie2/dist-es/commands/ListResourceProfileArtifactsCommand.js +16 -0
  572. package/node_modules/@aws-sdk/client-macie2/dist-es/commands/ListResourceProfileDetectionsCommand.js +16 -0
  573. package/node_modules/@aws-sdk/client-macie2/dist-es/commands/ListSensitivityInspectionTemplatesCommand.js +16 -0
  574. package/node_modules/@aws-sdk/client-macie2/dist-es/commands/ListTagsForResourceCommand.js +16 -0
  575. package/node_modules/@aws-sdk/client-macie2/dist-es/commands/PutClassificationExportConfigurationCommand.js +16 -0
  576. package/node_modules/@aws-sdk/client-macie2/dist-es/commands/PutFindingsPublicationConfigurationCommand.js +16 -0
  577. package/node_modules/@aws-sdk/client-macie2/dist-es/commands/SearchResourcesCommand.js +16 -0
  578. package/node_modules/@aws-sdk/client-macie2/dist-es/commands/TagResourceCommand.js +16 -0
  579. package/node_modules/@aws-sdk/client-macie2/dist-es/commands/TestCustomDataIdentifierCommand.js +16 -0
  580. package/node_modules/@aws-sdk/client-macie2/dist-es/commands/UntagResourceCommand.js +16 -0
  581. package/node_modules/@aws-sdk/client-macie2/dist-es/commands/UpdateAllowListCommand.js +16 -0
  582. package/node_modules/@aws-sdk/client-macie2/dist-es/commands/UpdateAutomatedDiscoveryConfigurationCommand.js +16 -0
  583. package/node_modules/@aws-sdk/client-macie2/dist-es/commands/UpdateClassificationJobCommand.js +16 -0
  584. package/node_modules/@aws-sdk/client-macie2/dist-es/commands/UpdateClassificationScopeCommand.js +16 -0
  585. package/node_modules/@aws-sdk/client-macie2/dist-es/commands/UpdateFindingsFilterCommand.js +16 -0
  586. package/node_modules/@aws-sdk/client-macie2/dist-es/commands/UpdateMacieSessionCommand.js +16 -0
  587. package/node_modules/@aws-sdk/client-macie2/dist-es/commands/UpdateMemberSessionCommand.js +16 -0
  588. package/node_modules/@aws-sdk/client-macie2/dist-es/commands/UpdateOrganizationConfigurationCommand.js +16 -0
  589. package/node_modules/@aws-sdk/client-macie2/dist-es/commands/UpdateResourceProfileCommand.js +16 -0
  590. package/node_modules/@aws-sdk/client-macie2/dist-es/commands/UpdateResourceProfileDetectionsCommand.js +16 -0
  591. package/node_modules/@aws-sdk/client-macie2/dist-es/commands/UpdateRevealConfigurationCommand.js +16 -0
  592. package/node_modules/@aws-sdk/client-macie2/dist-es/commands/UpdateSensitivityInspectionTemplateCommand.js +16 -0
  593. package/node_modules/@aws-sdk/client-macie2/dist-es/commands/index.js +81 -0
  594. package/node_modules/@aws-sdk/client-macie2/dist-es/endpoint/EndpointParameters.js +13 -0
  595. package/node_modules/@aws-sdk/client-macie2/dist-es/endpoint/endpointResolver.js +14 -0
  596. package/node_modules/@aws-sdk/client-macie2/dist-es/endpoint/ruleset.js +4 -0
  597. package/node_modules/@aws-sdk/client-macie2/dist-es/extensionConfiguration.js +1 -0
  598. package/node_modules/@aws-sdk/client-macie2/dist-es/index.js +11 -0
  599. package/node_modules/@aws-sdk/client-macie2/dist-es/models/Macie2ServiceException.js +8 -0
  600. package/node_modules/@aws-sdk/client-macie2/dist-es/models/enums.js +342 -0
  601. package/node_modules/@aws-sdk/client-macie2/dist-es/models/errors.js +97 -0
  602. package/node_modules/@aws-sdk/client-macie2/dist-es/models/models_0.js +1 -0
  603. package/node_modules/@aws-sdk/client-macie2/dist-es/models/models_1.js +1 -0
  604. package/node_modules/@aws-sdk/client-macie2/dist-es/pagination/DescribeBucketsPaginator.js +4 -0
  605. package/node_modules/@aws-sdk/client-macie2/dist-es/pagination/GetUsageStatisticsPaginator.js +4 -0
  606. package/node_modules/@aws-sdk/client-macie2/dist-es/pagination/Interfaces.js +1 -0
  607. package/node_modules/@aws-sdk/client-macie2/dist-es/pagination/ListAllowListsPaginator.js +4 -0
  608. package/node_modules/@aws-sdk/client-macie2/dist-es/pagination/ListAutomatedDiscoveryAccountsPaginator.js +4 -0
  609. package/node_modules/@aws-sdk/client-macie2/dist-es/pagination/ListClassificationJobsPaginator.js +4 -0
  610. package/node_modules/@aws-sdk/client-macie2/dist-es/pagination/ListClassificationScopesPaginator.js +4 -0
  611. package/node_modules/@aws-sdk/client-macie2/dist-es/pagination/ListCustomDataIdentifiersPaginator.js +4 -0
  612. package/node_modules/@aws-sdk/client-macie2/dist-es/pagination/ListFindingsFiltersPaginator.js +4 -0
  613. package/node_modules/@aws-sdk/client-macie2/dist-es/pagination/ListFindingsPaginator.js +4 -0
  614. package/node_modules/@aws-sdk/client-macie2/dist-es/pagination/ListInvitationsPaginator.js +4 -0
  615. package/node_modules/@aws-sdk/client-macie2/dist-es/pagination/ListManagedDataIdentifiersPaginator.js +4 -0
  616. package/node_modules/@aws-sdk/client-macie2/dist-es/pagination/ListMembersPaginator.js +4 -0
  617. package/node_modules/@aws-sdk/client-macie2/dist-es/pagination/ListOrganizationAdminAccountsPaginator.js +4 -0
  618. package/node_modules/@aws-sdk/client-macie2/dist-es/pagination/ListResourceProfileArtifactsPaginator.js +4 -0
  619. package/node_modules/@aws-sdk/client-macie2/dist-es/pagination/ListResourceProfileDetectionsPaginator.js +4 -0
  620. package/node_modules/@aws-sdk/client-macie2/dist-es/pagination/ListSensitivityInspectionTemplatesPaginator.js +4 -0
  621. package/node_modules/@aws-sdk/client-macie2/dist-es/pagination/SearchResourcesPaginator.js +4 -0
  622. package/node_modules/@aws-sdk/client-macie2/dist-es/pagination/index.js +18 -0
  623. package/node_modules/@aws-sdk/client-macie2/dist-es/runtimeConfig.browser.js +33 -0
  624. package/node_modules/@aws-sdk/client-macie2/dist-es/runtimeConfig.js +49 -0
  625. package/node_modules/@aws-sdk/client-macie2/dist-es/runtimeConfig.native.js +11 -0
  626. package/node_modules/@aws-sdk/client-macie2/dist-es/runtimeConfig.shared.js +39 -0
  627. package/node_modules/@aws-sdk/client-macie2/dist-es/runtimeExtensions.js +9 -0
  628. package/node_modules/@aws-sdk/client-macie2/dist-es/schemas/schemas_0.js +2822 -0
  629. package/node_modules/@aws-sdk/client-macie2/dist-es/waiters/index.js +1 -0
  630. package/node_modules/@aws-sdk/client-macie2/dist-es/waiters/waitForFindingRevealed.js +40 -0
  631. package/node_modules/@aws-sdk/client-macie2/dist-types/Macie2.d.ts +738 -0
  632. package/node_modules/@aws-sdk/client-macie2/dist-types/Macie2Client.d.ts +268 -0
  633. package/node_modules/@aws-sdk/client-macie2/dist-types/auth/httpAuthExtensionConfiguration.d.ts +29 -0
  634. package/node_modules/@aws-sdk/client-macie2/dist-types/auth/httpAuthSchemeProvider.d.ts +75 -0
  635. package/node_modules/@aws-sdk/client-macie2/dist-types/commands/AcceptInvitationCommand.d.ts +95 -0
  636. package/node_modules/@aws-sdk/client-macie2/dist-types/commands/BatchGetCustomDataIdentifiersCommand.d.ts +109 -0
  637. package/node_modules/@aws-sdk/client-macie2/dist-types/commands/BatchUpdateAutomatedDiscoveryAccountsCommand.d.ts +99 -0
  638. package/node_modules/@aws-sdk/client-macie2/dist-types/commands/CreateAllowListCommand.d.ts +108 -0
  639. package/node_modules/@aws-sdk/client-macie2/dist-types/commands/CreateClassificationJobCommand.d.ts +223 -0
  640. package/node_modules/@aws-sdk/client-macie2/dist-types/commands/CreateCustomDataIdentifierCommand.d.ts +114 -0
  641. package/node_modules/@aws-sdk/client-macie2/dist-types/commands/CreateFindingsFilterCommand.d.ts +122 -0
  642. package/node_modules/@aws-sdk/client-macie2/dist-types/commands/CreateInvitationsCommand.d.ts +105 -0
  643. package/node_modules/@aws-sdk/client-macie2/dist-types/commands/CreateMemberCommand.d.ts +101 -0
  644. package/node_modules/@aws-sdk/client-macie2/dist-types/commands/CreateSampleFindingsCommand.d.ts +95 -0
  645. package/node_modules/@aws-sdk/client-macie2/dist-types/commands/DeclineInvitationsCommand.d.ts +103 -0
  646. package/node_modules/@aws-sdk/client-macie2/dist-types/commands/DeleteAllowListCommand.d.ts +88 -0
  647. package/node_modules/@aws-sdk/client-macie2/dist-types/commands/DeleteCustomDataIdentifierCommand.d.ts +93 -0
  648. package/node_modules/@aws-sdk/client-macie2/dist-types/commands/DeleteFindingsFilterCommand.d.ts +93 -0
  649. package/node_modules/@aws-sdk/client-macie2/dist-types/commands/DeleteInvitationsCommand.d.ts +103 -0
  650. package/node_modules/@aws-sdk/client-macie2/dist-types/commands/DeleteMemberCommand.d.ts +93 -0
  651. package/node_modules/@aws-sdk/client-macie2/dist-types/commands/DescribeBucketsCommand.d.ts +207 -0
  652. package/node_modules/@aws-sdk/client-macie2/dist-types/commands/DescribeClassificationJobCommand.d.ts +239 -0
  653. package/node_modules/@aws-sdk/client-macie2/dist-types/commands/DescribeOrganizationConfigurationCommand.d.ts +94 -0
  654. package/node_modules/@aws-sdk/client-macie2/dist-types/commands/DisableMacieCommand.d.ts +91 -0
  655. package/node_modules/@aws-sdk/client-macie2/dist-types/commands/DisableOrganizationAdminAccountCommand.d.ts +93 -0
  656. package/node_modules/@aws-sdk/client-macie2/dist-types/commands/DisassociateFromAdministratorAccountCommand.d.ts +91 -0
  657. package/node_modules/@aws-sdk/client-macie2/dist-types/commands/DisassociateFromMasterAccountCommand.d.ts +91 -0
  658. package/node_modules/@aws-sdk/client-macie2/dist-types/commands/DisassociateMemberCommand.d.ts +93 -0
  659. package/node_modules/@aws-sdk/client-macie2/dist-types/commands/EnableMacieCommand.d.ts +95 -0
  660. package/node_modules/@aws-sdk/client-macie2/dist-types/commands/EnableOrganizationAdminAccountCommand.d.ts +94 -0
  661. package/node_modules/@aws-sdk/client-macie2/dist-types/commands/GetAdministratorAccountCommand.d.ts +98 -0
  662. package/node_modules/@aws-sdk/client-macie2/dist-types/commands/GetAllowListCommand.d.ts +108 -0
  663. package/node_modules/@aws-sdk/client-macie2/dist-types/commands/GetAutomatedDiscoveryConfigurationCommand.d.ts +90 -0
  664. package/node_modules/@aws-sdk/client-macie2/dist-types/commands/GetBucketStatisticsCommand.d.ts +160 -0
  665. package/node_modules/@aws-sdk/client-macie2/dist-types/commands/GetClassificationExportConfigurationCommand.d.ts +100 -0
  666. package/node_modules/@aws-sdk/client-macie2/dist-types/commands/GetClassificationScopeCommand.d.ts +97 -0
  667. package/node_modules/@aws-sdk/client-macie2/dist-types/commands/GetCustomDataIdentifierCommand.d.ts +117 -0
  668. package/node_modules/@aws-sdk/client-macie2/dist-types/commands/GetFindingStatisticsCommand.d.ts +124 -0
  669. package/node_modules/@aws-sdk/client-macie2/dist-types/commands/GetFindingsCommand.d.ts +405 -0
  670. package/node_modules/@aws-sdk/client-macie2/dist-types/commands/GetFindingsFilterCommand.d.ts +122 -0
  671. package/node_modules/@aws-sdk/client-macie2/dist-types/commands/GetFindingsPublicationConfigurationCommand.d.ts +96 -0
  672. package/node_modules/@aws-sdk/client-macie2/dist-types/commands/GetInvitationsCountCommand.d.ts +93 -0
  673. package/node_modules/@aws-sdk/client-macie2/dist-types/commands/GetMacieSessionCommand.d.ts +97 -0
  674. package/node_modules/@aws-sdk/client-macie2/dist-types/commands/GetMasterAccountCommand.d.ts +98 -0
  675. package/node_modules/@aws-sdk/client-macie2/dist-types/commands/GetMemberCommand.d.ts +105 -0
  676. package/node_modules/@aws-sdk/client-macie2/dist-types/commands/GetResourceProfileCommand.d.ts +105 -0
  677. package/node_modules/@aws-sdk/client-macie2/dist-types/commands/GetRevealConfigurationCommand.d.ts +92 -0
  678. package/node_modules/@aws-sdk/client-macie2/dist-types/commands/GetSensitiveDataOccurrencesAvailabilityCommand.d.ts +89 -0
  679. package/node_modules/@aws-sdk/client-macie2/dist-types/commands/GetSensitiveDataOccurrencesCommand.d.ts +100 -0
  680. package/node_modules/@aws-sdk/client-macie2/dist-types/commands/GetSensitivityInspectionTemplateCommand.d.ts +107 -0
  681. package/node_modules/@aws-sdk/client-macie2/dist-types/commands/GetUsageStatisticsCommand.d.ts +130 -0
  682. package/node_modules/@aws-sdk/client-macie2/dist-types/commands/GetUsageTotalsCommand.d.ts +102 -0
  683. package/node_modules/@aws-sdk/client-macie2/dist-types/commands/ListAllowListsCommand.d.ts +97 -0
  684. package/node_modules/@aws-sdk/client-macie2/dist-types/commands/ListAutomatedDiscoveryAccountsCommand.d.ts +99 -0
  685. package/node_modules/@aws-sdk/client-macie2/dist-types/commands/ListClassificationJobsCommand.d.ts +191 -0
  686. package/node_modules/@aws-sdk/client-macie2/dist-types/commands/ListClassificationScopesCommand.d.ts +93 -0
  687. package/node_modules/@aws-sdk/client-macie2/dist-types/commands/ListCustomDataIdentifiersCommand.d.ts +105 -0
  688. package/node_modules/@aws-sdk/client-macie2/dist-types/commands/ListFindingsCommand.d.ts +122 -0
  689. package/node_modules/@aws-sdk/client-macie2/dist-types/commands/ListFindingsFiltersCommand.d.ts +107 -0
  690. package/node_modules/@aws-sdk/client-macie2/dist-types/commands/ListInvitationsCommand.d.ts +104 -0
  691. package/node_modules/@aws-sdk/client-macie2/dist-types/commands/ListManagedDataIdentifiersCommand.d.ts +80 -0
  692. package/node_modules/@aws-sdk/client-macie2/dist-types/commands/ListMembersCommand.d.ts +112 -0
  693. package/node_modules/@aws-sdk/client-macie2/dist-types/commands/ListOrganizationAdminAccountsCommand.d.ts +102 -0
  694. package/node_modules/@aws-sdk/client-macie2/dist-types/commands/ListResourceProfileArtifactsCommand.d.ts +97 -0
  695. package/node_modules/@aws-sdk/client-macie2/dist-types/commands/ListResourceProfileDetectionsCommand.d.ts +104 -0
  696. package/node_modules/@aws-sdk/client-macie2/dist-types/commands/ListSensitivityInspectionTemplatesCommand.d.ts +96 -0
  697. package/node_modules/@aws-sdk/client-macie2/dist-types/commands/ListTagsForResourceCommand.d.ts +76 -0
  698. package/node_modules/@aws-sdk/client-macie2/dist-types/commands/PutClassificationExportConfigurationCommand.d.ts +109 -0
  699. package/node_modules/@aws-sdk/client-macie2/dist-types/commands/PutFindingsPublicationConfigurationCommand.d.ts +97 -0
  700. package/node_modules/@aws-sdk/client-macie2/dist-types/commands/SearchResourcesCommand.d.ts +187 -0
  701. package/node_modules/@aws-sdk/client-macie2/dist-types/commands/TagResourceCommand.d.ts +75 -0
  702. package/node_modules/@aws-sdk/client-macie2/dist-types/commands/TestCustomDataIdentifierCommand.d.ts +103 -0
  703. package/node_modules/@aws-sdk/client-macie2/dist-types/commands/UntagResourceCommand.d.ts +75 -0
  704. package/node_modules/@aws-sdk/client-macie2/dist-types/commands/UpdateAllowListCommand.d.ts +99 -0
  705. package/node_modules/@aws-sdk/client-macie2/dist-types/commands/UpdateAutomatedDiscoveryConfigurationCommand.d.ts +85 -0
  706. package/node_modules/@aws-sdk/client-macie2/dist-types/commands/UpdateClassificationJobCommand.d.ts +94 -0
  707. package/node_modules/@aws-sdk/client-macie2/dist-types/commands/UpdateClassificationScopeCommand.d.ts +95 -0
  708. package/node_modules/@aws-sdk/client-macie2/dist-types/commands/UpdateFindingsFilterCommand.d.ts +120 -0
  709. package/node_modules/@aws-sdk/client-macie2/dist-types/commands/UpdateMacieSessionCommand.d.ts +94 -0
  710. package/node_modules/@aws-sdk/client-macie2/dist-types/commands/UpdateMemberSessionCommand.d.ts +94 -0
  711. package/node_modules/@aws-sdk/client-macie2/dist-types/commands/UpdateOrganizationConfigurationCommand.d.ts +93 -0
  712. package/node_modules/@aws-sdk/client-macie2/dist-types/commands/UpdateResourceProfileCommand.d.ts +91 -0
  713. package/node_modules/@aws-sdk/client-macie2/dist-types/commands/UpdateResourceProfileDetectionsCommand.d.ts +96 -0
  714. package/node_modules/@aws-sdk/client-macie2/dist-types/commands/UpdateRevealConfigurationCommand.d.ts +101 -0
  715. package/node_modules/@aws-sdk/client-macie2/dist-types/commands/UpdateSensitivityInspectionTemplateCommand.d.ts +104 -0
  716. package/node_modules/@aws-sdk/client-macie2/dist-types/commands/index.d.ts +81 -0
  717. package/node_modules/@aws-sdk/client-macie2/dist-types/endpoint/EndpointParameters.d.ts +50 -0
  718. package/node_modules/@aws-sdk/client-macie2/dist-types/endpoint/endpointResolver.d.ts +8 -0
  719. package/node_modules/@aws-sdk/client-macie2/dist-types/endpoint/ruleset.d.ts +2 -0
  720. package/node_modules/@aws-sdk/client-macie2/dist-types/extensionConfiguration.d.ts +9 -0
  721. package/node_modules/@aws-sdk/client-macie2/dist-types/index.d.ts +19 -0
  722. package/node_modules/@aws-sdk/client-macie2/dist-types/models/Macie2ServiceException.d.ts +14 -0
  723. package/node_modules/@aws-sdk/client-macie2/dist-types/models/enums.d.ts +822 -0
  724. package/node_modules/@aws-sdk/client-macie2/dist-types/models/errors.d.ts +98 -0
  725. package/node_modules/@aws-sdk/client-macie2/dist-types/models/models_0.d.ts +5673 -0
  726. package/node_modules/@aws-sdk/client-macie2/dist-types/models/models_1.d.ts +61 -0
  727. package/node_modules/@aws-sdk/client-macie2/dist-types/pagination/DescribeBucketsPaginator.d.ts +7 -0
  728. package/node_modules/@aws-sdk/client-macie2/dist-types/pagination/GetUsageStatisticsPaginator.d.ts +7 -0
  729. package/node_modules/@aws-sdk/client-macie2/dist-types/pagination/Interfaces.d.ts +8 -0
  730. package/node_modules/@aws-sdk/client-macie2/dist-types/pagination/ListAllowListsPaginator.d.ts +7 -0
  731. package/node_modules/@aws-sdk/client-macie2/dist-types/pagination/ListAutomatedDiscoveryAccountsPaginator.d.ts +7 -0
  732. package/node_modules/@aws-sdk/client-macie2/dist-types/pagination/ListClassificationJobsPaginator.d.ts +7 -0
  733. package/node_modules/@aws-sdk/client-macie2/dist-types/pagination/ListClassificationScopesPaginator.d.ts +7 -0
  734. package/node_modules/@aws-sdk/client-macie2/dist-types/pagination/ListCustomDataIdentifiersPaginator.d.ts +7 -0
  735. package/node_modules/@aws-sdk/client-macie2/dist-types/pagination/ListFindingsFiltersPaginator.d.ts +7 -0
  736. package/node_modules/@aws-sdk/client-macie2/dist-types/pagination/ListFindingsPaginator.d.ts +7 -0
  737. package/node_modules/@aws-sdk/client-macie2/dist-types/pagination/ListInvitationsPaginator.d.ts +7 -0
  738. package/node_modules/@aws-sdk/client-macie2/dist-types/pagination/ListManagedDataIdentifiersPaginator.d.ts +7 -0
  739. package/node_modules/@aws-sdk/client-macie2/dist-types/pagination/ListMembersPaginator.d.ts +7 -0
  740. package/node_modules/@aws-sdk/client-macie2/dist-types/pagination/ListOrganizationAdminAccountsPaginator.d.ts +7 -0
  741. package/node_modules/@aws-sdk/client-macie2/dist-types/pagination/ListResourceProfileArtifactsPaginator.d.ts +7 -0
  742. package/node_modules/@aws-sdk/client-macie2/dist-types/pagination/ListResourceProfileDetectionsPaginator.d.ts +7 -0
  743. package/node_modules/@aws-sdk/client-macie2/dist-types/pagination/ListSensitivityInspectionTemplatesPaginator.d.ts +7 -0
  744. package/node_modules/@aws-sdk/client-macie2/dist-types/pagination/SearchResourcesPaginator.d.ts +7 -0
  745. package/node_modules/@aws-sdk/client-macie2/dist-types/pagination/index.d.ts +18 -0
  746. package/node_modules/@aws-sdk/client-macie2/dist-types/runtimeConfig.browser.d.ts +55 -0
  747. package/node_modules/@aws-sdk/client-macie2/dist-types/runtimeConfig.d.ts +55 -0
  748. package/node_modules/@aws-sdk/client-macie2/dist-types/runtimeConfig.native.d.ts +54 -0
  749. package/node_modules/@aws-sdk/client-macie2/dist-types/runtimeConfig.shared.d.ts +27 -0
  750. package/node_modules/@aws-sdk/client-macie2/dist-types/runtimeExtensions.d.ts +17 -0
  751. package/node_modules/@aws-sdk/client-macie2/dist-types/schemas/schemas_0.d.ts +402 -0
  752. package/node_modules/@aws-sdk/client-macie2/dist-types/ts3.4/Macie2.d.ts +1623 -0
  753. package/node_modules/@aws-sdk/client-macie2/dist-types/ts3.4/Macie2Client.d.ts +604 -0
  754. package/node_modules/@aws-sdk/client-macie2/dist-types/ts3.4/auth/httpAuthExtensionConfiguration.d.ts +32 -0
  755. package/node_modules/@aws-sdk/client-macie2/dist-types/ts3.4/auth/httpAuthSchemeProvider.d.ts +47 -0
  756. package/node_modules/@aws-sdk/client-macie2/dist-types/ts3.4/commands/AcceptInvitationCommand.d.ts +50 -0
  757. package/node_modules/@aws-sdk/client-macie2/dist-types/ts3.4/commands/BatchGetCustomDataIdentifiersCommand.d.ts +51 -0
  758. package/node_modules/@aws-sdk/client-macie2/dist-types/ts3.4/commands/BatchUpdateAutomatedDiscoveryAccountsCommand.d.ts +51 -0
  759. package/node_modules/@aws-sdk/client-macie2/dist-types/ts3.4/commands/CreateAllowListCommand.d.ts +50 -0
  760. package/node_modules/@aws-sdk/client-macie2/dist-types/ts3.4/commands/CreateClassificationJobCommand.d.ts +51 -0
  761. package/node_modules/@aws-sdk/client-macie2/dist-types/ts3.4/commands/CreateCustomDataIdentifierCommand.d.ts +51 -0
  762. package/node_modules/@aws-sdk/client-macie2/dist-types/ts3.4/commands/CreateFindingsFilterCommand.d.ts +51 -0
  763. package/node_modules/@aws-sdk/client-macie2/dist-types/ts3.4/commands/CreateInvitationsCommand.d.ts +51 -0
  764. package/node_modules/@aws-sdk/client-macie2/dist-types/ts3.4/commands/CreateMemberCommand.d.ts +47 -0
  765. package/node_modules/@aws-sdk/client-macie2/dist-types/ts3.4/commands/CreateSampleFindingsCommand.d.ts +51 -0
  766. package/node_modules/@aws-sdk/client-macie2/dist-types/ts3.4/commands/DeclineInvitationsCommand.d.ts +51 -0
  767. package/node_modules/@aws-sdk/client-macie2/dist-types/ts3.4/commands/DeleteAllowListCommand.d.ts +50 -0
  768. package/node_modules/@aws-sdk/client-macie2/dist-types/ts3.4/commands/DeleteCustomDataIdentifierCommand.d.ts +51 -0
  769. package/node_modules/@aws-sdk/client-macie2/dist-types/ts3.4/commands/DeleteFindingsFilterCommand.d.ts +51 -0
  770. package/node_modules/@aws-sdk/client-macie2/dist-types/ts3.4/commands/DeleteInvitationsCommand.d.ts +51 -0
  771. package/node_modules/@aws-sdk/client-macie2/dist-types/ts3.4/commands/DeleteMemberCommand.d.ts +47 -0
  772. package/node_modules/@aws-sdk/client-macie2/dist-types/ts3.4/commands/DescribeBucketsCommand.d.ts +50 -0
  773. package/node_modules/@aws-sdk/client-macie2/dist-types/ts3.4/commands/DescribeClassificationJobCommand.d.ts +51 -0
  774. package/node_modules/@aws-sdk/client-macie2/dist-types/ts3.4/commands/DescribeOrganizationConfigurationCommand.d.ts +51 -0
  775. package/node_modules/@aws-sdk/client-macie2/dist-types/ts3.4/commands/DisableMacieCommand.d.ts +47 -0
  776. package/node_modules/@aws-sdk/client-macie2/dist-types/ts3.4/commands/DisableOrganizationAdminAccountCommand.d.ts +51 -0
  777. package/node_modules/@aws-sdk/client-macie2/dist-types/ts3.4/commands/DisassociateFromAdministratorAccountCommand.d.ts +51 -0
  778. package/node_modules/@aws-sdk/client-macie2/dist-types/ts3.4/commands/DisassociateFromMasterAccountCommand.d.ts +51 -0
  779. package/node_modules/@aws-sdk/client-macie2/dist-types/ts3.4/commands/DisassociateMemberCommand.d.ts +51 -0
  780. package/node_modules/@aws-sdk/client-macie2/dist-types/ts3.4/commands/EnableMacieCommand.d.ts +47 -0
  781. package/node_modules/@aws-sdk/client-macie2/dist-types/ts3.4/commands/EnableOrganizationAdminAccountCommand.d.ts +51 -0
  782. package/node_modules/@aws-sdk/client-macie2/dist-types/ts3.4/commands/GetAdministratorAccountCommand.d.ts +51 -0
  783. package/node_modules/@aws-sdk/client-macie2/dist-types/ts3.4/commands/GetAllowListCommand.d.ts +47 -0
  784. package/node_modules/@aws-sdk/client-macie2/dist-types/ts3.4/commands/GetAutomatedDiscoveryConfigurationCommand.d.ts +51 -0
  785. package/node_modules/@aws-sdk/client-macie2/dist-types/ts3.4/commands/GetBucketStatisticsCommand.d.ts +51 -0
  786. package/node_modules/@aws-sdk/client-macie2/dist-types/ts3.4/commands/GetClassificationExportConfigurationCommand.d.ts +51 -0
  787. package/node_modules/@aws-sdk/client-macie2/dist-types/ts3.4/commands/GetClassificationScopeCommand.d.ts +51 -0
  788. package/node_modules/@aws-sdk/client-macie2/dist-types/ts3.4/commands/GetCustomDataIdentifierCommand.d.ts +51 -0
  789. package/node_modules/@aws-sdk/client-macie2/dist-types/ts3.4/commands/GetFindingStatisticsCommand.d.ts +51 -0
  790. package/node_modules/@aws-sdk/client-macie2/dist-types/ts3.4/commands/GetFindingsCommand.d.ts +47 -0
  791. package/node_modules/@aws-sdk/client-macie2/dist-types/ts3.4/commands/GetFindingsFilterCommand.d.ts +51 -0
  792. package/node_modules/@aws-sdk/client-macie2/dist-types/ts3.4/commands/GetFindingsPublicationConfigurationCommand.d.ts +51 -0
  793. package/node_modules/@aws-sdk/client-macie2/dist-types/ts3.4/commands/GetInvitationsCountCommand.d.ts +51 -0
  794. package/node_modules/@aws-sdk/client-macie2/dist-types/ts3.4/commands/GetMacieSessionCommand.d.ts +50 -0
  795. package/node_modules/@aws-sdk/client-macie2/dist-types/ts3.4/commands/GetMasterAccountCommand.d.ts +50 -0
  796. package/node_modules/@aws-sdk/client-macie2/dist-types/ts3.4/commands/GetMemberCommand.d.ts +47 -0
  797. package/node_modules/@aws-sdk/client-macie2/dist-types/ts3.4/commands/GetResourceProfileCommand.d.ts +51 -0
  798. package/node_modules/@aws-sdk/client-macie2/dist-types/ts3.4/commands/GetRevealConfigurationCommand.d.ts +51 -0
  799. package/node_modules/@aws-sdk/client-macie2/dist-types/ts3.4/commands/GetSensitiveDataOccurrencesAvailabilityCommand.d.ts +51 -0
  800. package/node_modules/@aws-sdk/client-macie2/dist-types/ts3.4/commands/GetSensitiveDataOccurrencesCommand.d.ts +51 -0
  801. package/node_modules/@aws-sdk/client-macie2/dist-types/ts3.4/commands/GetSensitivityInspectionTemplateCommand.d.ts +51 -0
  802. package/node_modules/@aws-sdk/client-macie2/dist-types/ts3.4/commands/GetUsageStatisticsCommand.d.ts +51 -0
  803. package/node_modules/@aws-sdk/client-macie2/dist-types/ts3.4/commands/GetUsageTotalsCommand.d.ts +50 -0
  804. package/node_modules/@aws-sdk/client-macie2/dist-types/ts3.4/commands/ListAllowListsCommand.d.ts +50 -0
  805. package/node_modules/@aws-sdk/client-macie2/dist-types/ts3.4/commands/ListAutomatedDiscoveryAccountsCommand.d.ts +51 -0
  806. package/node_modules/@aws-sdk/client-macie2/dist-types/ts3.4/commands/ListClassificationJobsCommand.d.ts +51 -0
  807. package/node_modules/@aws-sdk/client-macie2/dist-types/ts3.4/commands/ListClassificationScopesCommand.d.ts +51 -0
  808. package/node_modules/@aws-sdk/client-macie2/dist-types/ts3.4/commands/ListCustomDataIdentifiersCommand.d.ts +51 -0
  809. package/node_modules/@aws-sdk/client-macie2/dist-types/ts3.4/commands/ListFindingsCommand.d.ts +47 -0
  810. package/node_modules/@aws-sdk/client-macie2/dist-types/ts3.4/commands/ListFindingsFiltersCommand.d.ts +51 -0
  811. package/node_modules/@aws-sdk/client-macie2/dist-types/ts3.4/commands/ListInvitationsCommand.d.ts +50 -0
  812. package/node_modules/@aws-sdk/client-macie2/dist-types/ts3.4/commands/ListManagedDataIdentifiersCommand.d.ts +51 -0
  813. package/node_modules/@aws-sdk/client-macie2/dist-types/ts3.4/commands/ListMembersCommand.d.ts +47 -0
  814. package/node_modules/@aws-sdk/client-macie2/dist-types/ts3.4/commands/ListOrganizationAdminAccountsCommand.d.ts +51 -0
  815. package/node_modules/@aws-sdk/client-macie2/dist-types/ts3.4/commands/ListResourceProfileArtifactsCommand.d.ts +51 -0
  816. package/node_modules/@aws-sdk/client-macie2/dist-types/ts3.4/commands/ListResourceProfileDetectionsCommand.d.ts +51 -0
  817. package/node_modules/@aws-sdk/client-macie2/dist-types/ts3.4/commands/ListSensitivityInspectionTemplatesCommand.d.ts +51 -0
  818. package/node_modules/@aws-sdk/client-macie2/dist-types/ts3.4/commands/ListTagsForResourceCommand.d.ts +51 -0
  819. package/node_modules/@aws-sdk/client-macie2/dist-types/ts3.4/commands/PutClassificationExportConfigurationCommand.d.ts +51 -0
  820. package/node_modules/@aws-sdk/client-macie2/dist-types/ts3.4/commands/PutFindingsPublicationConfigurationCommand.d.ts +51 -0
  821. package/node_modules/@aws-sdk/client-macie2/dist-types/ts3.4/commands/SearchResourcesCommand.d.ts +50 -0
  822. package/node_modules/@aws-sdk/client-macie2/dist-types/ts3.4/commands/TagResourceCommand.d.ts +47 -0
  823. package/node_modules/@aws-sdk/client-macie2/dist-types/ts3.4/commands/TestCustomDataIdentifierCommand.d.ts +51 -0
  824. package/node_modules/@aws-sdk/client-macie2/dist-types/ts3.4/commands/UntagResourceCommand.d.ts +50 -0
  825. package/node_modules/@aws-sdk/client-macie2/dist-types/ts3.4/commands/UpdateAllowListCommand.d.ts +50 -0
  826. package/node_modules/@aws-sdk/client-macie2/dist-types/ts3.4/commands/UpdateAutomatedDiscoveryConfigurationCommand.d.ts +51 -0
  827. package/node_modules/@aws-sdk/client-macie2/dist-types/ts3.4/commands/UpdateClassificationJobCommand.d.ts +51 -0
  828. package/node_modules/@aws-sdk/client-macie2/dist-types/ts3.4/commands/UpdateClassificationScopeCommand.d.ts +51 -0
  829. package/node_modules/@aws-sdk/client-macie2/dist-types/ts3.4/commands/UpdateFindingsFilterCommand.d.ts +51 -0
  830. package/node_modules/@aws-sdk/client-macie2/dist-types/ts3.4/commands/UpdateMacieSessionCommand.d.ts +51 -0
  831. package/node_modules/@aws-sdk/client-macie2/dist-types/ts3.4/commands/UpdateMemberSessionCommand.d.ts +51 -0
  832. package/node_modules/@aws-sdk/client-macie2/dist-types/ts3.4/commands/UpdateOrganizationConfigurationCommand.d.ts +51 -0
  833. package/node_modules/@aws-sdk/client-macie2/dist-types/ts3.4/commands/UpdateResourceProfileCommand.d.ts +51 -0
  834. package/node_modules/@aws-sdk/client-macie2/dist-types/ts3.4/commands/UpdateResourceProfileDetectionsCommand.d.ts +51 -0
  835. package/node_modules/@aws-sdk/client-macie2/dist-types/ts3.4/commands/UpdateRevealConfigurationCommand.d.ts +51 -0
  836. package/node_modules/@aws-sdk/client-macie2/dist-types/ts3.4/commands/UpdateSensitivityInspectionTemplateCommand.d.ts +51 -0
  837. package/node_modules/@aws-sdk/client-macie2/dist-types/ts3.4/commands/index.d.ts +81 -0
  838. package/node_modules/@aws-sdk/client-macie2/dist-types/ts3.4/endpoint/EndpointParameters.d.ts +51 -0
  839. package/node_modules/@aws-sdk/client-macie2/dist-types/ts3.4/endpoint/endpointResolver.d.ts +8 -0
  840. package/node_modules/@aws-sdk/client-macie2/dist-types/ts3.4/endpoint/ruleset.d.ts +2 -0
  841. package/node_modules/@aws-sdk/client-macie2/dist-types/ts3.4/extensionConfiguration.d.ts +9 -0
  842. package/node_modules/@aws-sdk/client-macie2/dist-types/ts3.4/index.d.ts +14 -0
  843. package/node_modules/@aws-sdk/client-macie2/dist-types/ts3.4/models/Macie2ServiceException.d.ts +9 -0
  844. package/node_modules/@aws-sdk/client-macie2/dist-types/ts3.4/models/enums.d.ts +441 -0
  845. package/node_modules/@aws-sdk/client-macie2/dist-types/ts3.4/models/errors.d.ts +56 -0
  846. package/node_modules/@aws-sdk/client-macie2/dist-types/ts3.4/models/models_0.d.ts +1441 -0
  847. package/node_modules/@aws-sdk/client-macie2/dist-types/ts3.4/models/models_1.d.ts +22 -0
  848. package/node_modules/@aws-sdk/client-macie2/dist-types/ts3.4/pagination/DescribeBucketsPaginator.d.ts +11 -0
  849. package/node_modules/@aws-sdk/client-macie2/dist-types/ts3.4/pagination/GetUsageStatisticsPaginator.d.ts +11 -0
  850. package/node_modules/@aws-sdk/client-macie2/dist-types/ts3.4/pagination/Interfaces.d.ts +5 -0
  851. package/node_modules/@aws-sdk/client-macie2/dist-types/ts3.4/pagination/ListAllowListsPaginator.d.ts +11 -0
  852. package/node_modules/@aws-sdk/client-macie2/dist-types/ts3.4/pagination/ListAutomatedDiscoveryAccountsPaginator.d.ts +11 -0
  853. package/node_modules/@aws-sdk/client-macie2/dist-types/ts3.4/pagination/ListClassificationJobsPaginator.d.ts +11 -0
  854. package/node_modules/@aws-sdk/client-macie2/dist-types/ts3.4/pagination/ListClassificationScopesPaginator.d.ts +11 -0
  855. package/node_modules/@aws-sdk/client-macie2/dist-types/ts3.4/pagination/ListCustomDataIdentifiersPaginator.d.ts +11 -0
  856. package/node_modules/@aws-sdk/client-macie2/dist-types/ts3.4/pagination/ListFindingsFiltersPaginator.d.ts +11 -0
  857. package/node_modules/@aws-sdk/client-macie2/dist-types/ts3.4/pagination/ListFindingsPaginator.d.ts +11 -0
  858. package/node_modules/@aws-sdk/client-macie2/dist-types/ts3.4/pagination/ListInvitationsPaginator.d.ts +11 -0
  859. package/node_modules/@aws-sdk/client-macie2/dist-types/ts3.4/pagination/ListManagedDataIdentifiersPaginator.d.ts +11 -0
  860. package/node_modules/@aws-sdk/client-macie2/dist-types/ts3.4/pagination/ListMembersPaginator.d.ts +11 -0
  861. package/node_modules/@aws-sdk/client-macie2/dist-types/ts3.4/pagination/ListOrganizationAdminAccountsPaginator.d.ts +11 -0
  862. package/node_modules/@aws-sdk/client-macie2/dist-types/ts3.4/pagination/ListResourceProfileArtifactsPaginator.d.ts +11 -0
  863. package/node_modules/@aws-sdk/client-macie2/dist-types/ts3.4/pagination/ListResourceProfileDetectionsPaginator.d.ts +11 -0
  864. package/node_modules/@aws-sdk/client-macie2/dist-types/ts3.4/pagination/ListSensitivityInspectionTemplatesPaginator.d.ts +11 -0
  865. package/node_modules/@aws-sdk/client-macie2/dist-types/ts3.4/pagination/SearchResourcesPaginator.d.ts +11 -0
  866. package/node_modules/@aws-sdk/client-macie2/dist-types/ts3.4/pagination/index.d.ts +18 -0
  867. package/node_modules/@aws-sdk/client-macie2/dist-types/ts3.4/runtimeConfig.browser.d.ts +100 -0
  868. package/node_modules/@aws-sdk/client-macie2/dist-types/ts3.4/runtimeConfig.d.ts +95 -0
  869. package/node_modules/@aws-sdk/client-macie2/dist-types/ts3.4/runtimeConfig.native.d.ts +104 -0
  870. package/node_modules/@aws-sdk/client-macie2/dist-types/ts3.4/runtimeConfig.shared.d.ts +30 -0
  871. package/node_modules/@aws-sdk/client-macie2/dist-types/ts3.4/runtimeExtensions.d.ts +11 -0
  872. package/node_modules/@aws-sdk/client-macie2/dist-types/ts3.4/schemas/schemas_0.d.ts +401 -0
  873. package/node_modules/@aws-sdk/client-macie2/dist-types/ts3.4/waiters/index.d.ts +1 -0
  874. package/node_modules/@aws-sdk/client-macie2/dist-types/ts3.4/waiters/waitForFindingRevealed.d.ts +11 -0
  875. package/node_modules/@aws-sdk/client-macie2/dist-types/waiters/index.d.ts +1 -0
  876. package/node_modules/@aws-sdk/client-macie2/dist-types/waiters/waitForFindingRevealed.d.ts +14 -0
  877. package/node_modules/@aws-sdk/client-macie2/package.json +101 -0
  878. package/node_modules/@aws-sdk/client-organizations/LICENSE +201 -0
  879. package/node_modules/@aws-sdk/client-organizations/README.md +692 -0
  880. package/node_modules/@aws-sdk/client-organizations/dist-cjs/auth/httpAuthSchemeProvider.js +46 -0
  881. package/node_modules/@aws-sdk/client-organizations/dist-cjs/endpoint/endpointResolver.js +18 -0
  882. package/node_modules/@aws-sdk/client-organizations/dist-cjs/endpoint/ruleset.js +7 -0
  883. package/node_modules/@aws-sdk/client-organizations/dist-cjs/index.js +1373 -0
  884. package/node_modules/@aws-sdk/client-organizations/dist-cjs/models/OrganizationsServiceException.js +12 -0
  885. package/node_modules/@aws-sdk/client-organizations/dist-cjs/models/errors.js +764 -0
  886. package/node_modules/@aws-sdk/client-organizations/dist-cjs/runtimeConfig.browser.js +38 -0
  887. package/node_modules/@aws-sdk/client-organizations/dist-cjs/runtimeConfig.js +54 -0
  888. package/node_modules/@aws-sdk/client-organizations/dist-cjs/runtimeConfig.native.js +15 -0
  889. package/node_modules/@aws-sdk/client-organizations/dist-cjs/runtimeConfig.shared.js +44 -0
  890. package/node_modules/@aws-sdk/client-organizations/dist-cjs/schemas/schemas_0.js +1577 -0
  891. package/node_modules/@aws-sdk/client-organizations/dist-es/Organizations.js +171 -0
  892. package/node_modules/@aws-sdk/client-organizations/dist-es/OrganizationsClient.js +50 -0
  893. package/node_modules/@aws-sdk/client-organizations/dist-es/auth/httpAuthExtensionConfiguration.js +38 -0
  894. package/node_modules/@aws-sdk/client-organizations/dist-es/auth/httpAuthSchemeProvider.js +40 -0
  895. package/node_modules/@aws-sdk/client-organizations/dist-es/commands/AcceptHandshakeCommand.js +16 -0
  896. package/node_modules/@aws-sdk/client-organizations/dist-es/commands/AttachPolicyCommand.js +16 -0
  897. package/node_modules/@aws-sdk/client-organizations/dist-es/commands/CancelHandshakeCommand.js +16 -0
  898. package/node_modules/@aws-sdk/client-organizations/dist-es/commands/CloseAccountCommand.js +16 -0
  899. package/node_modules/@aws-sdk/client-organizations/dist-es/commands/CreateAccountCommand.js +16 -0
  900. package/node_modules/@aws-sdk/client-organizations/dist-es/commands/CreateGovCloudAccountCommand.js +16 -0
  901. package/node_modules/@aws-sdk/client-organizations/dist-es/commands/CreateOrganizationCommand.js +16 -0
  902. package/node_modules/@aws-sdk/client-organizations/dist-es/commands/CreateOrganizationalUnitCommand.js +16 -0
  903. package/node_modules/@aws-sdk/client-organizations/dist-es/commands/CreatePolicyCommand.js +16 -0
  904. package/node_modules/@aws-sdk/client-organizations/dist-es/commands/DeclineHandshakeCommand.js +16 -0
  905. package/node_modules/@aws-sdk/client-organizations/dist-es/commands/DeleteOrganizationCommand.js +16 -0
  906. package/node_modules/@aws-sdk/client-organizations/dist-es/commands/DeleteOrganizationalUnitCommand.js +16 -0
  907. package/node_modules/@aws-sdk/client-organizations/dist-es/commands/DeletePolicyCommand.js +16 -0
  908. package/node_modules/@aws-sdk/client-organizations/dist-es/commands/DeleteResourcePolicyCommand.js +16 -0
  909. package/node_modules/@aws-sdk/client-organizations/dist-es/commands/DeregisterDelegatedAdministratorCommand.js +16 -0
  910. package/node_modules/@aws-sdk/client-organizations/dist-es/commands/DescribeAccountCommand.js +16 -0
  911. package/node_modules/@aws-sdk/client-organizations/dist-es/commands/DescribeCreateAccountStatusCommand.js +16 -0
  912. package/node_modules/@aws-sdk/client-organizations/dist-es/commands/DescribeEffectivePolicyCommand.js +16 -0
  913. package/node_modules/@aws-sdk/client-organizations/dist-es/commands/DescribeHandshakeCommand.js +16 -0
  914. package/node_modules/@aws-sdk/client-organizations/dist-es/commands/DescribeOrganizationCommand.js +16 -0
  915. package/node_modules/@aws-sdk/client-organizations/dist-es/commands/DescribeOrganizationalUnitCommand.js +16 -0
  916. package/node_modules/@aws-sdk/client-organizations/dist-es/commands/DescribePolicyCommand.js +16 -0
  917. package/node_modules/@aws-sdk/client-organizations/dist-es/commands/DescribeResourcePolicyCommand.js +16 -0
  918. package/node_modules/@aws-sdk/client-organizations/dist-es/commands/DescribeResponsibilityTransferCommand.js +16 -0
  919. package/node_modules/@aws-sdk/client-organizations/dist-es/commands/DetachPolicyCommand.js +16 -0
  920. package/node_modules/@aws-sdk/client-organizations/dist-es/commands/DisableAWSServiceAccessCommand.js +16 -0
  921. package/node_modules/@aws-sdk/client-organizations/dist-es/commands/DisablePolicyTypeCommand.js +16 -0
  922. package/node_modules/@aws-sdk/client-organizations/dist-es/commands/EnableAWSServiceAccessCommand.js +16 -0
  923. package/node_modules/@aws-sdk/client-organizations/dist-es/commands/EnableAllFeaturesCommand.js +16 -0
  924. package/node_modules/@aws-sdk/client-organizations/dist-es/commands/EnablePolicyTypeCommand.js +16 -0
  925. package/node_modules/@aws-sdk/client-organizations/dist-es/commands/InviteAccountToOrganizationCommand.js +16 -0
  926. package/node_modules/@aws-sdk/client-organizations/dist-es/commands/InviteOrganizationToTransferResponsibilityCommand.js +16 -0
  927. package/node_modules/@aws-sdk/client-organizations/dist-es/commands/LeaveOrganizationCommand.js +16 -0
  928. package/node_modules/@aws-sdk/client-organizations/dist-es/commands/ListAWSServiceAccessForOrganizationCommand.js +16 -0
  929. package/node_modules/@aws-sdk/client-organizations/dist-es/commands/ListAccountsCommand.js +16 -0
  930. package/node_modules/@aws-sdk/client-organizations/dist-es/commands/ListAccountsForParentCommand.js +16 -0
  931. package/node_modules/@aws-sdk/client-organizations/dist-es/commands/ListAccountsWithInvalidEffectivePolicyCommand.js +16 -0
  932. package/node_modules/@aws-sdk/client-organizations/dist-es/commands/ListChildrenCommand.js +16 -0
  933. package/node_modules/@aws-sdk/client-organizations/dist-es/commands/ListCreateAccountStatusCommand.js +16 -0
  934. package/node_modules/@aws-sdk/client-organizations/dist-es/commands/ListDelegatedAdministratorsCommand.js +16 -0
  935. package/node_modules/@aws-sdk/client-organizations/dist-es/commands/ListDelegatedServicesForAccountCommand.js +16 -0
  936. package/node_modules/@aws-sdk/client-organizations/dist-es/commands/ListEffectivePolicyValidationErrorsCommand.js +16 -0
  937. package/node_modules/@aws-sdk/client-organizations/dist-es/commands/ListHandshakesForAccountCommand.js +16 -0
  938. package/node_modules/@aws-sdk/client-organizations/dist-es/commands/ListHandshakesForOrganizationCommand.js +16 -0
  939. package/node_modules/@aws-sdk/client-organizations/dist-es/commands/ListInboundResponsibilityTransfersCommand.js +16 -0
  940. package/node_modules/@aws-sdk/client-organizations/dist-es/commands/ListOrganizationalUnitsForParentCommand.js +16 -0
  941. package/node_modules/@aws-sdk/client-organizations/dist-es/commands/ListOutboundResponsibilityTransfersCommand.js +16 -0
  942. package/node_modules/@aws-sdk/client-organizations/dist-es/commands/ListParentsCommand.js +16 -0
  943. package/node_modules/@aws-sdk/client-organizations/dist-es/commands/ListPoliciesCommand.js +16 -0
  944. package/node_modules/@aws-sdk/client-organizations/dist-es/commands/ListPoliciesForTargetCommand.js +16 -0
  945. package/node_modules/@aws-sdk/client-organizations/dist-es/commands/ListRootsCommand.js +16 -0
  946. package/node_modules/@aws-sdk/client-organizations/dist-es/commands/ListTagsForResourceCommand.js +16 -0
  947. package/node_modules/@aws-sdk/client-organizations/dist-es/commands/ListTargetsForPolicyCommand.js +16 -0
  948. package/node_modules/@aws-sdk/client-organizations/dist-es/commands/MoveAccountCommand.js +16 -0
  949. package/node_modules/@aws-sdk/client-organizations/dist-es/commands/PutResourcePolicyCommand.js +16 -0
  950. package/node_modules/@aws-sdk/client-organizations/dist-es/commands/RegisterDelegatedAdministratorCommand.js +16 -0
  951. package/node_modules/@aws-sdk/client-organizations/dist-es/commands/RemoveAccountFromOrganizationCommand.js +16 -0
  952. package/node_modules/@aws-sdk/client-organizations/dist-es/commands/TagResourceCommand.js +16 -0
  953. package/node_modules/@aws-sdk/client-organizations/dist-es/commands/TerminateResponsibilityTransferCommand.js +16 -0
  954. package/node_modules/@aws-sdk/client-organizations/dist-es/commands/UntagResourceCommand.js +16 -0
  955. package/node_modules/@aws-sdk/client-organizations/dist-es/commands/UpdateOrganizationalUnitCommand.js +16 -0
  956. package/node_modules/@aws-sdk/client-organizations/dist-es/commands/UpdatePolicyCommand.js +16 -0
  957. package/node_modules/@aws-sdk/client-organizations/dist-es/commands/UpdateResponsibilityTransferCommand.js +16 -0
  958. package/node_modules/@aws-sdk/client-organizations/dist-es/commands/index.js +63 -0
  959. package/node_modules/@aws-sdk/client-organizations/dist-es/endpoint/EndpointParameters.js +13 -0
  960. package/node_modules/@aws-sdk/client-organizations/dist-es/endpoint/endpointResolver.js +14 -0
  961. package/node_modules/@aws-sdk/client-organizations/dist-es/endpoint/ruleset.js +4 -0
  962. package/node_modules/@aws-sdk/client-organizations/dist-es/extensionConfiguration.js +1 -0
  963. package/node_modules/@aws-sdk/client-organizations/dist-es/index.js +9 -0
  964. package/node_modules/@aws-sdk/client-organizations/dist-es/models/OrganizationsServiceException.js +8 -0
  965. package/node_modules/@aws-sdk/client-organizations/dist-es/models/enums.js +247 -0
  966. package/node_modules/@aws-sdk/client-organizations/dist-es/models/errors.js +711 -0
  967. package/node_modules/@aws-sdk/client-organizations/dist-es/models/models_0.js +1 -0
  968. package/node_modules/@aws-sdk/client-organizations/dist-es/pagination/Interfaces.js +1 -0
  969. package/node_modules/@aws-sdk/client-organizations/dist-es/pagination/ListAWSServiceAccessForOrganizationPaginator.js +4 -0
  970. package/node_modules/@aws-sdk/client-organizations/dist-es/pagination/ListAccountsForParentPaginator.js +4 -0
  971. package/node_modules/@aws-sdk/client-organizations/dist-es/pagination/ListAccountsPaginator.js +4 -0
  972. package/node_modules/@aws-sdk/client-organizations/dist-es/pagination/ListAccountsWithInvalidEffectivePolicyPaginator.js +4 -0
  973. package/node_modules/@aws-sdk/client-organizations/dist-es/pagination/ListChildrenPaginator.js +4 -0
  974. package/node_modules/@aws-sdk/client-organizations/dist-es/pagination/ListCreateAccountStatusPaginator.js +4 -0
  975. package/node_modules/@aws-sdk/client-organizations/dist-es/pagination/ListDelegatedAdministratorsPaginator.js +4 -0
  976. package/node_modules/@aws-sdk/client-organizations/dist-es/pagination/ListDelegatedServicesForAccountPaginator.js +4 -0
  977. package/node_modules/@aws-sdk/client-organizations/dist-es/pagination/ListEffectivePolicyValidationErrorsPaginator.js +4 -0
  978. package/node_modules/@aws-sdk/client-organizations/dist-es/pagination/ListHandshakesForAccountPaginator.js +4 -0
  979. package/node_modules/@aws-sdk/client-organizations/dist-es/pagination/ListHandshakesForOrganizationPaginator.js +4 -0
  980. package/node_modules/@aws-sdk/client-organizations/dist-es/pagination/ListOrganizationalUnitsForParentPaginator.js +4 -0
  981. package/node_modules/@aws-sdk/client-organizations/dist-es/pagination/ListParentsPaginator.js +4 -0
  982. package/node_modules/@aws-sdk/client-organizations/dist-es/pagination/ListPoliciesForTargetPaginator.js +4 -0
  983. package/node_modules/@aws-sdk/client-organizations/dist-es/pagination/ListPoliciesPaginator.js +4 -0
  984. package/node_modules/@aws-sdk/client-organizations/dist-es/pagination/ListRootsPaginator.js +4 -0
  985. package/node_modules/@aws-sdk/client-organizations/dist-es/pagination/ListTagsForResourcePaginator.js +4 -0
  986. package/node_modules/@aws-sdk/client-organizations/dist-es/pagination/ListTargetsForPolicyPaginator.js +4 -0
  987. package/node_modules/@aws-sdk/client-organizations/dist-es/pagination/index.js +19 -0
  988. package/node_modules/@aws-sdk/client-organizations/dist-es/runtimeConfig.browser.js +33 -0
  989. package/node_modules/@aws-sdk/client-organizations/dist-es/runtimeConfig.js +49 -0
  990. package/node_modules/@aws-sdk/client-organizations/dist-es/runtimeConfig.native.js +11 -0
  991. package/node_modules/@aws-sdk/client-organizations/dist-es/runtimeConfig.shared.js +40 -0
  992. package/node_modules/@aws-sdk/client-organizations/dist-es/runtimeExtensions.js +9 -0
  993. package/node_modules/@aws-sdk/client-organizations/dist-es/schemas/schemas_0.js +1570 -0
  994. package/node_modules/@aws-sdk/client-organizations/dist-types/Organizations.d.ts +661 -0
  995. package/node_modules/@aws-sdk/client-organizations/dist-types/OrganizationsClient.d.ts +320 -0
  996. package/node_modules/@aws-sdk/client-organizations/dist-types/auth/httpAuthExtensionConfiguration.d.ts +29 -0
  997. package/node_modules/@aws-sdk/client-organizations/dist-types/auth/httpAuthSchemeProvider.d.ts +75 -0
  998. package/node_modules/@aws-sdk/client-organizations/dist-types/commands/AcceptHandshakeCommand.d.ts +642 -0
  999. package/node_modules/@aws-sdk/client-organizations/dist-types/commands/AttachPolicyCommand.d.ts +615 -0
  1000. package/node_modules/@aws-sdk/client-organizations/dist-types/commands/CancelHandshakeCommand.d.ts +284 -0
  1001. package/node_modules/@aws-sdk/client-organizations/dist-types/commands/CloseAccountCommand.d.ts +558 -0
  1002. package/node_modules/@aws-sdk/client-organizations/dist-types/commands/CreateAccountCommand.d.ts +612 -0
  1003. package/node_modules/@aws-sdk/client-organizations/dist-types/commands/CreateGovCloudAccountCommand.d.ts +644 -0
  1004. package/node_modules/@aws-sdk/client-organizations/dist-types/commands/CreateOrganizationCommand.d.ts +575 -0
  1005. package/node_modules/@aws-sdk/client-organizations/dist-types/commands/CreateOrganizationalUnitCommand.d.ts +542 -0
  1006. package/node_modules/@aws-sdk/client-organizations/dist-types/commands/CreatePolicyCommand.d.ts +564 -0
  1007. package/node_modules/@aws-sdk/client-organizations/dist-types/commands/DeclineHandshakeCommand.d.ts +340 -0
  1008. package/node_modules/@aws-sdk/client-organizations/dist-types/commands/DeleteOrganizationCommand.d.ts +493 -0
  1009. package/node_modules/@aws-sdk/client-organizations/dist-types/commands/DeleteOrganizationalUnitCommand.d.ts +269 -0
  1010. package/node_modules/@aws-sdk/client-organizations/dist-types/commands/DeletePolicyCommand.d.ts +272 -0
  1011. package/node_modules/@aws-sdk/client-organizations/dist-types/commands/DeleteResourcePolicyCommand.d.ts +347 -0
  1012. package/node_modules/@aws-sdk/client-organizations/dist-types/commands/DeregisterDelegatedAdministratorCommand.d.ts +516 -0
  1013. package/node_modules/@aws-sdk/client-organizations/dist-types/commands/DescribeAccountCommand.d.ts +280 -0
  1014. package/node_modules/@aws-sdk/client-organizations/dist-types/commands/DescribeCreateAccountStatusCommand.d.ts +278 -0
  1015. package/node_modules/@aws-sdk/client-organizations/dist-types/commands/DescribeEffectivePolicyCommand.d.ts +517 -0
  1016. package/node_modules/@aws-sdk/client-organizations/dist-types/commands/DescribeHandshakeCommand.d.ts +327 -0
  1017. package/node_modules/@aws-sdk/client-organizations/dist-types/commands/DescribeOrganizationCommand.d.ts +141 -0
  1018. package/node_modules/@aws-sdk/client-organizations/dist-types/commands/DescribeOrganizationalUnitCommand.d.ts +271 -0
  1019. package/node_modules/@aws-sdk/client-organizations/dist-types/commands/DescribePolicyCommand.d.ts +284 -0
  1020. package/node_modules/@aws-sdk/client-organizations/dist-types/commands/DescribeResourcePolicyCommand.d.ts +352 -0
  1021. package/node_modules/@aws-sdk/client-organizations/dist-types/commands/DescribeResponsibilityTransferCommand.d.ts +267 -0
  1022. package/node_modules/@aws-sdk/client-organizations/dist-types/commands/DetachPolicyCommand.d.ts +537 -0
  1023. package/node_modules/@aws-sdk/client-organizations/dist-types/commands/DisableAWSServiceAccessCommand.d.ts +548 -0
  1024. package/node_modules/@aws-sdk/client-organizations/dist-types/commands/DisablePolicyTypeCommand.d.ts +551 -0
  1025. package/node_modules/@aws-sdk/client-organizations/dist-types/commands/EnableAWSServiceAccessCommand.d.ts +511 -0
  1026. package/node_modules/@aws-sdk/client-organizations/dist-types/commands/EnableAllFeaturesCommand.d.ts +645 -0
  1027. package/node_modules/@aws-sdk/client-organizations/dist-types/commands/EnablePolicyTypeCommand.d.ts +559 -0
  1028. package/node_modules/@aws-sdk/client-organizations/dist-types/commands/InviteAccountToOrganizationCommand.d.ts +692 -0
  1029. package/node_modules/@aws-sdk/client-organizations/dist-types/commands/InviteOrganizationToTransferResponsibilityCommand.d.ts +617 -0
  1030. package/node_modules/@aws-sdk/client-organizations/dist-types/commands/LeaveOrganizationCommand.d.ts +570 -0
  1031. package/node_modules/@aws-sdk/client-organizations/dist-types/commands/ListAWSServiceAccessForOrganizationCommand.d.ts +505 -0
  1032. package/node_modules/@aws-sdk/client-organizations/dist-types/commands/ListAccountsCommand.d.ts +265 -0
  1033. package/node_modules/@aws-sdk/client-organizations/dist-types/commands/ListAccountsForParentCommand.d.ts +306 -0
  1034. package/node_modules/@aws-sdk/client-organizations/dist-types/commands/ListAccountsWithInvalidEffectivePolicyCommand.d.ts +556 -0
  1035. package/node_modules/@aws-sdk/client-organizations/dist-types/commands/ListChildrenCommand.d.ts +287 -0
  1036. package/node_modules/@aws-sdk/client-organizations/dist-types/commands/ListCreateAccountStatusCommand.d.ts +318 -0
  1037. package/node_modules/@aws-sdk/client-organizations/dist-types/commands/ListDelegatedAdministratorsCommand.d.ts +509 -0
  1038. package/node_modules/@aws-sdk/client-organizations/dist-types/commands/ListDelegatedServicesForAccountCommand.d.ts +510 -0
  1039. package/node_modules/@aws-sdk/client-organizations/dist-types/commands/ListEffectivePolicyValidationErrorsCommand.d.ts +522 -0
  1040. package/node_modules/@aws-sdk/client-organizations/dist-types/commands/ListHandshakesForAccountCommand.d.ts +341 -0
  1041. package/node_modules/@aws-sdk/client-organizations/dist-types/commands/ListHandshakesForOrganizationCommand.d.ts +387 -0
  1042. package/node_modules/@aws-sdk/client-organizations/dist-types/commands/ListInboundResponsibilityTransfersCommand.d.ts +524 -0
  1043. package/node_modules/@aws-sdk/client-organizations/dist-types/commands/ListOrganizationalUnitsForParentCommand.d.ts +287 -0
  1044. package/node_modules/@aws-sdk/client-organizations/dist-types/commands/ListOutboundResponsibilityTransfersCommand.d.ts +521 -0
  1045. package/node_modules/@aws-sdk/client-organizations/dist-types/commands/ListParentsCommand.d.ts +285 -0
  1046. package/node_modules/@aws-sdk/client-organizations/dist-types/commands/ListPoliciesCommand.d.ts +303 -0
  1047. package/node_modules/@aws-sdk/client-organizations/dist-types/commands/ListPoliciesForTargetCommand.d.ts +295 -0
  1048. package/node_modules/@aws-sdk/client-organizations/dist-types/commands/ListRootsCommand.d.ts +294 -0
  1049. package/node_modules/@aws-sdk/client-organizations/dist-types/commands/ListTagsForResourceCommand.d.ts +269 -0
  1050. package/node_modules/@aws-sdk/client-organizations/dist-types/commands/ListTargetsForPolicyCommand.d.ts +299 -0
  1051. package/node_modules/@aws-sdk/client-organizations/dist-types/commands/MoveAccountCommand.d.ts +279 -0
  1052. package/node_modules/@aws-sdk/client-organizations/dist-types/commands/PutResourcePolicyCommand.d.ts +509 -0
  1053. package/node_modules/@aws-sdk/client-organizations/dist-types/commands/RegisterDelegatedAdministratorCommand.d.ts +512 -0
  1054. package/node_modules/@aws-sdk/client-organizations/dist-types/commands/RemoveAccountFromOrganizationCommand.d.ts +544 -0
  1055. package/node_modules/@aws-sdk/client-organizations/dist-types/commands/TagResourceCommand.d.ts +517 -0
  1056. package/node_modules/@aws-sdk/client-organizations/dist-types/commands/TerminateResponsibilityTransferCommand.d.ts +526 -0
  1057. package/node_modules/@aws-sdk/client-organizations/dist-types/commands/UntagResourceCommand.d.ts +514 -0
  1058. package/node_modules/@aws-sdk/client-organizations/dist-types/commands/UpdateOrganizationalUnitCommand.d.ts +282 -0
  1059. package/node_modules/@aws-sdk/client-organizations/dist-types/commands/UpdatePolicyCommand.d.ts +581 -0
  1060. package/node_modules/@aws-sdk/client-organizations/dist-types/commands/UpdateResponsibilityTransferCommand.d.ts +516 -0
  1061. package/node_modules/@aws-sdk/client-organizations/dist-types/commands/index.d.ts +63 -0
  1062. package/node_modules/@aws-sdk/client-organizations/dist-types/endpoint/EndpointParameters.d.ts +50 -0
  1063. package/node_modules/@aws-sdk/client-organizations/dist-types/endpoint/endpointResolver.d.ts +8 -0
  1064. package/node_modules/@aws-sdk/client-organizations/dist-types/endpoint/ruleset.d.ts +2 -0
  1065. package/node_modules/@aws-sdk/client-organizations/dist-types/extensionConfiguration.d.ts +9 -0
  1066. package/node_modules/@aws-sdk/client-organizations/dist-types/index.d.ts +87 -0
  1067. package/node_modules/@aws-sdk/client-organizations/dist-types/models/OrganizationsServiceException.d.ts +14 -0
  1068. package/node_modules/@aws-sdk/client-organizations/dist-types/models/enums.d.ts +431 -0
  1069. package/node_modules/@aws-sdk/client-organizations/dist-types/models/errors.d.ts +1170 -0
  1070. package/node_modules/@aws-sdk/client-organizations/dist-types/models/models_0.d.ts +4022 -0
  1071. package/node_modules/@aws-sdk/client-organizations/dist-types/pagination/Interfaces.d.ts +8 -0
  1072. package/node_modules/@aws-sdk/client-organizations/dist-types/pagination/ListAWSServiceAccessForOrganizationPaginator.d.ts +7 -0
  1073. package/node_modules/@aws-sdk/client-organizations/dist-types/pagination/ListAccountsForParentPaginator.d.ts +7 -0
  1074. package/node_modules/@aws-sdk/client-organizations/dist-types/pagination/ListAccountsPaginator.d.ts +7 -0
  1075. package/node_modules/@aws-sdk/client-organizations/dist-types/pagination/ListAccountsWithInvalidEffectivePolicyPaginator.d.ts +7 -0
  1076. package/node_modules/@aws-sdk/client-organizations/dist-types/pagination/ListChildrenPaginator.d.ts +7 -0
  1077. package/node_modules/@aws-sdk/client-organizations/dist-types/pagination/ListCreateAccountStatusPaginator.d.ts +7 -0
  1078. package/node_modules/@aws-sdk/client-organizations/dist-types/pagination/ListDelegatedAdministratorsPaginator.d.ts +7 -0
  1079. package/node_modules/@aws-sdk/client-organizations/dist-types/pagination/ListDelegatedServicesForAccountPaginator.d.ts +7 -0
  1080. package/node_modules/@aws-sdk/client-organizations/dist-types/pagination/ListEffectivePolicyValidationErrorsPaginator.d.ts +7 -0
  1081. package/node_modules/@aws-sdk/client-organizations/dist-types/pagination/ListHandshakesForAccountPaginator.d.ts +7 -0
  1082. package/node_modules/@aws-sdk/client-organizations/dist-types/pagination/ListHandshakesForOrganizationPaginator.d.ts +7 -0
  1083. package/node_modules/@aws-sdk/client-organizations/dist-types/pagination/ListOrganizationalUnitsForParentPaginator.d.ts +7 -0
  1084. package/node_modules/@aws-sdk/client-organizations/dist-types/pagination/ListParentsPaginator.d.ts +7 -0
  1085. package/node_modules/@aws-sdk/client-organizations/dist-types/pagination/ListPoliciesForTargetPaginator.d.ts +7 -0
  1086. package/node_modules/@aws-sdk/client-organizations/dist-types/pagination/ListPoliciesPaginator.d.ts +7 -0
  1087. package/node_modules/@aws-sdk/client-organizations/dist-types/pagination/ListRootsPaginator.d.ts +7 -0
  1088. package/node_modules/@aws-sdk/client-organizations/dist-types/pagination/ListTagsForResourcePaginator.d.ts +7 -0
  1089. package/node_modules/@aws-sdk/client-organizations/dist-types/pagination/ListTargetsForPolicyPaginator.d.ts +7 -0
  1090. package/node_modules/@aws-sdk/client-organizations/dist-types/pagination/index.d.ts +19 -0
  1091. package/node_modules/@aws-sdk/client-organizations/dist-types/runtimeConfig.browser.d.ts +55 -0
  1092. package/node_modules/@aws-sdk/client-organizations/dist-types/runtimeConfig.d.ts +55 -0
  1093. package/node_modules/@aws-sdk/client-organizations/dist-types/runtimeConfig.native.d.ts +54 -0
  1094. package/node_modules/@aws-sdk/client-organizations/dist-types/runtimeConfig.shared.d.ts +27 -0
  1095. package/node_modules/@aws-sdk/client-organizations/dist-types/runtimeExtensions.d.ts +17 -0
  1096. package/node_modules/@aws-sdk/client-organizations/dist-types/schemas/schemas_0.d.ts +252 -0
  1097. package/node_modules/@aws-sdk/client-organizations/dist-types/ts3.4/Organizations.d.ts +1258 -0
  1098. package/node_modules/@aws-sdk/client-organizations/dist-types/ts3.4/OrganizationsClient.d.ts +497 -0
  1099. package/node_modules/@aws-sdk/client-organizations/dist-types/ts3.4/auth/httpAuthExtensionConfiguration.d.ts +32 -0
  1100. package/node_modules/@aws-sdk/client-organizations/dist-types/ts3.4/auth/httpAuthSchemeProvider.d.ts +47 -0
  1101. package/node_modules/@aws-sdk/client-organizations/dist-types/ts3.4/commands/AcceptHandshakeCommand.d.ts +50 -0
  1102. package/node_modules/@aws-sdk/client-organizations/dist-types/ts3.4/commands/AttachPolicyCommand.d.ts +45 -0
  1103. package/node_modules/@aws-sdk/client-organizations/dist-types/ts3.4/commands/CancelHandshakeCommand.d.ts +50 -0
  1104. package/node_modules/@aws-sdk/client-organizations/dist-types/ts3.4/commands/CloseAccountCommand.d.ts +45 -0
  1105. package/node_modules/@aws-sdk/client-organizations/dist-types/ts3.4/commands/CreateAccountCommand.d.ts +50 -0
  1106. package/node_modules/@aws-sdk/client-organizations/dist-types/ts3.4/commands/CreateGovCloudAccountCommand.d.ts +51 -0
  1107. package/node_modules/@aws-sdk/client-organizations/dist-types/ts3.4/commands/CreateOrganizationCommand.d.ts +51 -0
  1108. package/node_modules/@aws-sdk/client-organizations/dist-types/ts3.4/commands/CreateOrganizationalUnitCommand.d.ts +51 -0
  1109. package/node_modules/@aws-sdk/client-organizations/dist-types/ts3.4/commands/CreatePolicyCommand.d.ts +47 -0
  1110. package/node_modules/@aws-sdk/client-organizations/dist-types/ts3.4/commands/DeclineHandshakeCommand.d.ts +50 -0
  1111. package/node_modules/@aws-sdk/client-organizations/dist-types/ts3.4/commands/DeleteOrganizationCommand.d.ts +44 -0
  1112. package/node_modules/@aws-sdk/client-organizations/dist-types/ts3.4/commands/DeleteOrganizationalUnitCommand.d.ts +47 -0
  1113. package/node_modules/@aws-sdk/client-organizations/dist-types/ts3.4/commands/DeletePolicyCommand.d.ts +45 -0
  1114. package/node_modules/@aws-sdk/client-organizations/dist-types/ts3.4/commands/DeleteResourcePolicyCommand.d.ts +44 -0
  1115. package/node_modules/@aws-sdk/client-organizations/dist-types/ts3.4/commands/DeregisterDelegatedAdministratorCommand.d.ts +47 -0
  1116. package/node_modules/@aws-sdk/client-organizations/dist-types/ts3.4/commands/DescribeAccountCommand.d.ts +50 -0
  1117. package/node_modules/@aws-sdk/client-organizations/dist-types/ts3.4/commands/DescribeCreateAccountStatusCommand.d.ts +51 -0
  1118. package/node_modules/@aws-sdk/client-organizations/dist-types/ts3.4/commands/DescribeEffectivePolicyCommand.d.ts +51 -0
  1119. package/node_modules/@aws-sdk/client-organizations/dist-types/ts3.4/commands/DescribeHandshakeCommand.d.ts +51 -0
  1120. package/node_modules/@aws-sdk/client-organizations/dist-types/ts3.4/commands/DescribeOrganizationCommand.d.ts +47 -0
  1121. package/node_modules/@aws-sdk/client-organizations/dist-types/ts3.4/commands/DescribeOrganizationalUnitCommand.d.ts +51 -0
  1122. package/node_modules/@aws-sdk/client-organizations/dist-types/ts3.4/commands/DescribePolicyCommand.d.ts +50 -0
  1123. package/node_modules/@aws-sdk/client-organizations/dist-types/ts3.4/commands/DescribeResourcePolicyCommand.d.ts +47 -0
  1124. package/node_modules/@aws-sdk/client-organizations/dist-types/ts3.4/commands/DescribeResponsibilityTransferCommand.d.ts +51 -0
  1125. package/node_modules/@aws-sdk/client-organizations/dist-types/ts3.4/commands/DetachPolicyCommand.d.ts +45 -0
  1126. package/node_modules/@aws-sdk/client-organizations/dist-types/ts3.4/commands/DisableAWSServiceAccessCommand.d.ts +47 -0
  1127. package/node_modules/@aws-sdk/client-organizations/dist-types/ts3.4/commands/DisablePolicyTypeCommand.d.ts +51 -0
  1128. package/node_modules/@aws-sdk/client-organizations/dist-types/ts3.4/commands/EnableAWSServiceAccessCommand.d.ts +46 -0
  1129. package/node_modules/@aws-sdk/client-organizations/dist-types/ts3.4/commands/EnableAllFeaturesCommand.d.ts +51 -0
  1130. package/node_modules/@aws-sdk/client-organizations/dist-types/ts3.4/commands/EnablePolicyTypeCommand.d.ts +50 -0
  1131. package/node_modules/@aws-sdk/client-organizations/dist-types/ts3.4/commands/InviteAccountToOrganizationCommand.d.ts +51 -0
  1132. package/node_modules/@aws-sdk/client-organizations/dist-types/ts3.4/commands/InviteOrganizationToTransferResponsibilityCommand.d.ts +51 -0
  1133. package/node_modules/@aws-sdk/client-organizations/dist-types/ts3.4/commands/LeaveOrganizationCommand.d.ts +44 -0
  1134. package/node_modules/@aws-sdk/client-organizations/dist-types/ts3.4/commands/ListAWSServiceAccessForOrganizationCommand.d.ts +51 -0
  1135. package/node_modules/@aws-sdk/client-organizations/dist-types/ts3.4/commands/ListAccountsCommand.d.ts +47 -0
  1136. package/node_modules/@aws-sdk/client-organizations/dist-types/ts3.4/commands/ListAccountsForParentCommand.d.ts +51 -0
  1137. package/node_modules/@aws-sdk/client-organizations/dist-types/ts3.4/commands/ListAccountsWithInvalidEffectivePolicyCommand.d.ts +51 -0
  1138. package/node_modules/@aws-sdk/client-organizations/dist-types/ts3.4/commands/ListChildrenCommand.d.ts +47 -0
  1139. package/node_modules/@aws-sdk/client-organizations/dist-types/ts3.4/commands/ListCreateAccountStatusCommand.d.ts +51 -0
  1140. package/node_modules/@aws-sdk/client-organizations/dist-types/ts3.4/commands/ListDelegatedAdministratorsCommand.d.ts +51 -0
  1141. package/node_modules/@aws-sdk/client-organizations/dist-types/ts3.4/commands/ListDelegatedServicesForAccountCommand.d.ts +51 -0
  1142. package/node_modules/@aws-sdk/client-organizations/dist-types/ts3.4/commands/ListEffectivePolicyValidationErrorsCommand.d.ts +51 -0
  1143. package/node_modules/@aws-sdk/client-organizations/dist-types/ts3.4/commands/ListHandshakesForAccountCommand.d.ts +51 -0
  1144. package/node_modules/@aws-sdk/client-organizations/dist-types/ts3.4/commands/ListHandshakesForOrganizationCommand.d.ts +51 -0
  1145. package/node_modules/@aws-sdk/client-organizations/dist-types/ts3.4/commands/ListInboundResponsibilityTransfersCommand.d.ts +51 -0
  1146. package/node_modules/@aws-sdk/client-organizations/dist-types/ts3.4/commands/ListOrganizationalUnitsForParentCommand.d.ts +51 -0
  1147. package/node_modules/@aws-sdk/client-organizations/dist-types/ts3.4/commands/ListOutboundResponsibilityTransfersCommand.d.ts +51 -0
  1148. package/node_modules/@aws-sdk/client-organizations/dist-types/ts3.4/commands/ListParentsCommand.d.ts +47 -0
  1149. package/node_modules/@aws-sdk/client-organizations/dist-types/ts3.4/commands/ListPoliciesCommand.d.ts +47 -0
  1150. package/node_modules/@aws-sdk/client-organizations/dist-types/ts3.4/commands/ListPoliciesForTargetCommand.d.ts +51 -0
  1151. package/node_modules/@aws-sdk/client-organizations/dist-types/ts3.4/commands/ListRootsCommand.d.ts +47 -0
  1152. package/node_modules/@aws-sdk/client-organizations/dist-types/ts3.4/commands/ListTagsForResourceCommand.d.ts +51 -0
  1153. package/node_modules/@aws-sdk/client-organizations/dist-types/ts3.4/commands/ListTargetsForPolicyCommand.d.ts +51 -0
  1154. package/node_modules/@aws-sdk/client-organizations/dist-types/ts3.4/commands/MoveAccountCommand.d.ts +45 -0
  1155. package/node_modules/@aws-sdk/client-organizations/dist-types/ts3.4/commands/PutResourcePolicyCommand.d.ts +51 -0
  1156. package/node_modules/@aws-sdk/client-organizations/dist-types/ts3.4/commands/RegisterDelegatedAdministratorCommand.d.ts +47 -0
  1157. package/node_modules/@aws-sdk/client-organizations/dist-types/ts3.4/commands/RemoveAccountFromOrganizationCommand.d.ts +47 -0
  1158. package/node_modules/@aws-sdk/client-organizations/dist-types/ts3.4/commands/TagResourceCommand.d.ts +45 -0
  1159. package/node_modules/@aws-sdk/client-organizations/dist-types/ts3.4/commands/TerminateResponsibilityTransferCommand.d.ts +51 -0
  1160. package/node_modules/@aws-sdk/client-organizations/dist-types/ts3.4/commands/UntagResourceCommand.d.ts +45 -0
  1161. package/node_modules/@aws-sdk/client-organizations/dist-types/ts3.4/commands/UpdateOrganizationalUnitCommand.d.ts +51 -0
  1162. package/node_modules/@aws-sdk/client-organizations/dist-types/ts3.4/commands/UpdatePolicyCommand.d.ts +47 -0
  1163. package/node_modules/@aws-sdk/client-organizations/dist-types/ts3.4/commands/UpdateResponsibilityTransferCommand.d.ts +51 -0
  1164. package/node_modules/@aws-sdk/client-organizations/dist-types/ts3.4/commands/index.d.ts +63 -0
  1165. package/node_modules/@aws-sdk/client-organizations/dist-types/ts3.4/endpoint/EndpointParameters.d.ts +51 -0
  1166. package/node_modules/@aws-sdk/client-organizations/dist-types/ts3.4/endpoint/endpointResolver.d.ts +8 -0
  1167. package/node_modules/@aws-sdk/client-organizations/dist-types/ts3.4/endpoint/ruleset.d.ts +2 -0
  1168. package/node_modules/@aws-sdk/client-organizations/dist-types/ts3.4/extensionConfiguration.d.ts +9 -0
  1169. package/node_modules/@aws-sdk/client-organizations/dist-types/ts3.4/index.d.ts +12 -0
  1170. package/node_modules/@aws-sdk/client-organizations/dist-types/ts3.4/models/OrganizationsServiceException.d.ts +9 -0
  1171. package/node_modules/@aws-sdk/client-organizations/dist-types/ts3.4/models/enums.d.ts +286 -0
  1172. package/node_modules/@aws-sdk/client-organizations/dist-types/ts3.4/models/errors.d.ts +487 -0
  1173. package/node_modules/@aws-sdk/client-organizations/dist-types/ts3.4/models/models_0.d.ts +594 -0
  1174. package/node_modules/@aws-sdk/client-organizations/dist-types/ts3.4/pagination/Interfaces.d.ts +6 -0
  1175. package/node_modules/@aws-sdk/client-organizations/dist-types/ts3.4/pagination/ListAWSServiceAccessForOrganizationPaginator.d.ts +11 -0
  1176. package/node_modules/@aws-sdk/client-organizations/dist-types/ts3.4/pagination/ListAccountsForParentPaginator.d.ts +11 -0
  1177. package/node_modules/@aws-sdk/client-organizations/dist-types/ts3.4/pagination/ListAccountsPaginator.d.ts +11 -0
  1178. package/node_modules/@aws-sdk/client-organizations/dist-types/ts3.4/pagination/ListAccountsWithInvalidEffectivePolicyPaginator.d.ts +11 -0
  1179. package/node_modules/@aws-sdk/client-organizations/dist-types/ts3.4/pagination/ListChildrenPaginator.d.ts +11 -0
  1180. package/node_modules/@aws-sdk/client-organizations/dist-types/ts3.4/pagination/ListCreateAccountStatusPaginator.d.ts +11 -0
  1181. package/node_modules/@aws-sdk/client-organizations/dist-types/ts3.4/pagination/ListDelegatedAdministratorsPaginator.d.ts +11 -0
  1182. package/node_modules/@aws-sdk/client-organizations/dist-types/ts3.4/pagination/ListDelegatedServicesForAccountPaginator.d.ts +11 -0
  1183. package/node_modules/@aws-sdk/client-organizations/dist-types/ts3.4/pagination/ListEffectivePolicyValidationErrorsPaginator.d.ts +11 -0
  1184. package/node_modules/@aws-sdk/client-organizations/dist-types/ts3.4/pagination/ListHandshakesForAccountPaginator.d.ts +11 -0
  1185. package/node_modules/@aws-sdk/client-organizations/dist-types/ts3.4/pagination/ListHandshakesForOrganizationPaginator.d.ts +11 -0
  1186. package/node_modules/@aws-sdk/client-organizations/dist-types/ts3.4/pagination/ListOrganizationalUnitsForParentPaginator.d.ts +11 -0
  1187. package/node_modules/@aws-sdk/client-organizations/dist-types/ts3.4/pagination/ListParentsPaginator.d.ts +11 -0
  1188. package/node_modules/@aws-sdk/client-organizations/dist-types/ts3.4/pagination/ListPoliciesForTargetPaginator.d.ts +11 -0
  1189. package/node_modules/@aws-sdk/client-organizations/dist-types/ts3.4/pagination/ListPoliciesPaginator.d.ts +11 -0
  1190. package/node_modules/@aws-sdk/client-organizations/dist-types/ts3.4/pagination/ListRootsPaginator.d.ts +11 -0
  1191. package/node_modules/@aws-sdk/client-organizations/dist-types/ts3.4/pagination/ListTagsForResourcePaginator.d.ts +11 -0
  1192. package/node_modules/@aws-sdk/client-organizations/dist-types/ts3.4/pagination/ListTargetsForPolicyPaginator.d.ts +11 -0
  1193. package/node_modules/@aws-sdk/client-organizations/dist-types/ts3.4/pagination/index.d.ts +19 -0
  1194. package/node_modules/@aws-sdk/client-organizations/dist-types/ts3.4/runtimeConfig.browser.d.ts +100 -0
  1195. package/node_modules/@aws-sdk/client-organizations/dist-types/ts3.4/runtimeConfig.d.ts +95 -0
  1196. package/node_modules/@aws-sdk/client-organizations/dist-types/ts3.4/runtimeConfig.native.d.ts +104 -0
  1197. package/node_modules/@aws-sdk/client-organizations/dist-types/ts3.4/runtimeConfig.shared.d.ts +30 -0
  1198. package/node_modules/@aws-sdk/client-organizations/dist-types/ts3.4/runtimeExtensions.d.ts +11 -0
  1199. package/node_modules/@aws-sdk/client-organizations/dist-types/ts3.4/schemas/schemas_0.d.ts +251 -0
  1200. package/node_modules/@aws-sdk/client-organizations/package.json +100 -0
  1201. package/node_modules/@aws-sdk/client-sso-admin/package.json +1 -1
  1202. package/node_modules/@aws-sdk/client-sts/package.json +1 -1
  1203. package/node_modules/@aws-sdk/credential-providers/package.json +2 -2
  1204. package/package.json +26 -8
@@ -0,0 +1,106 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.handler = void 0;
4
+ const client_macie2_1 = require("@aws-sdk/client-macie2");
5
+ const client_organizations_1 = require("@aws-sdk/client-organizations");
6
+ const macieClient = new client_macie2_1.Macie2Client({ region: process.env.AWS_REGION });
7
+ const organizationsClient = new client_organizations_1.OrganizationsClient({ region: process.env.AWS_REGION });
8
+ function sleep(ms) {
9
+ return new Promise(resolve => setTimeout(resolve, ms));
10
+ }
11
+ async function retryWithBackoff(fn, opts) {
12
+ let lastError;
13
+ for (let attempt = 0; attempt <= opts.maxRetries; attempt++) {
14
+ try {
15
+ return await fn();
16
+ }
17
+ catch (error) {
18
+ const isRetryable = opts.retryableErrors.some(name => error.name === name || error.__type === name);
19
+ if (!isRetryable || attempt === opts.maxRetries) {
20
+ throw error;
21
+ }
22
+ lastError = error;
23
+ const delay = opts.initialDelayMs * Math.pow(2, attempt);
24
+ console.log(`Attempt ${attempt + 1}/${opts.maxRetries} failed with ${error.name}: ${error.message}. Retrying in ${delay}ms...`);
25
+ await sleep(delay);
26
+ }
27
+ }
28
+ throw lastError;
29
+ }
30
+ async function ensureMacieEnabled() {
31
+ console.log('Enabling Macie session in management account...');
32
+ try {
33
+ await macieClient.send(new client_macie2_1.EnableMacieCommand({}));
34
+ console.log('Macie session enabled');
35
+ }
36
+ catch (error) {
37
+ if (error.name === 'ConflictException' || error.__type === 'ConflictException') {
38
+ console.log('Macie is already enabled in this account');
39
+ }
40
+ else {
41
+ throw error;
42
+ }
43
+ }
44
+ }
45
+ async function isAlreadyAdmin(accountId) {
46
+ console.log(`Checking if ${accountId} is already delegated admin...`);
47
+ const adminAccounts = await macieClient.send(new client_macie2_1.ListOrganizationAdminAccountsCommand({}));
48
+ console.log('ListOrganizationAdminAccounts response:', JSON.stringify(adminAccounts.adminAccounts));
49
+ return adminAccounts.adminAccounts?.some(admin => admin.accountId === accountId) ?? false;
50
+ }
51
+ const handler = async (event) => {
52
+ console.log('Received event:', JSON.stringify(event, null, 2));
53
+ console.log(`Handler invoked: RequestType=${event.RequestType}, Region=${process.env.AWS_REGION}`);
54
+ try {
55
+ const { physicalResourceId, auditAccountId } = event.ResourceProperties;
56
+ const response = {
57
+ PhysicalResourceId: physicalResourceId,
58
+ };
59
+ if (event.RequestType === 'Create' ||
60
+ event.RequestType === 'Update') {
61
+ // Macie requires an active session before organization-level APIs can be called.
62
+ await ensureMacieEnabled();
63
+ // Enable Macie service access in AWS Organizations (idempotent)
64
+ console.log('Enabling AWS service access for macie.amazonaws.com...');
65
+ await organizationsClient.send(new client_organizations_1.EnableAWSServiceAccessCommand({
66
+ ServicePrincipal: 'macie.amazonaws.com',
67
+ }));
68
+ console.log('Enabled AWS service access for macie.amazonaws.com');
69
+ // Check if already designated as admin to make operation idempotent.
70
+ // Retry with backoff: EnableAWSServiceAccess is eventually consistent —
71
+ // Macie may not immediately recognize trusted access enablement.
72
+ const alreadyAdmin = await retryWithBackoff(() => isAlreadyAdmin(auditAccountId), { maxRetries: 3, initialDelayMs: 2000, retryableErrors: ['ConflictException'] });
73
+ if (!alreadyAdmin) {
74
+ console.log(`Designating ${auditAccountId} as Macie delegated admin...`);
75
+ await macieClient.send(new client_macie2_1.EnableOrganizationAdminAccountCommand({
76
+ adminAccountId: auditAccountId,
77
+ }));
78
+ console.log(`Designated ${auditAccountId} as Macie delegated admin`);
79
+ }
80
+ else {
81
+ console.log(`${auditAccountId} is already Macie delegated admin, skipping`);
82
+ }
83
+ }
84
+ else if (event.RequestType === 'Delete') {
85
+ console.log(`Checking if ${event.ResourceProperties.auditAccountId} is delegated admin before removing...`);
86
+ if (await isAlreadyAdmin(event.ResourceProperties.auditAccountId)) {
87
+ await macieClient.send(new client_macie2_1.DisableOrganizationAdminAccountCommand({
88
+ adminAccountId: event.ResourceProperties.auditAccountId,
89
+ }));
90
+ console.log(`Removed ${event.ResourceProperties.auditAccountId} as Macie delegated admin`);
91
+ }
92
+ else {
93
+ console.log('Account is not a Macie delegated admin, skipping disable');
94
+ }
95
+ }
96
+ console.log('Handler completed successfully');
97
+ return response;
98
+ }
99
+ catch (error) {
100
+ console.error('ERROR:', error.name, error.message);
101
+ console.error('Stack:', error.stack);
102
+ throw error;
103
+ }
104
+ };
105
+ exports.handler = handler;
106
+ //# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiaW5kZXguanMiLCJzb3VyY2VSb290IjoiIiwic291cmNlcyI6WyIuLi8uLi8uLi8uLi8uLi9zcmMvY29uc3RydWN0cy9kbHotbWFjaWUvbGFtYmRhL21hY2llLWRlbGVnYXRlZC1hZG1pbi9pbmRleC50cyJdLCJuYW1lcyI6W10sIm1hcHBpbmdzIjoiOzs7QUFBQSwwREFNZ0M7QUFDaEMsd0VBR3VDO0FBTXZDLE1BQU0sV0FBVyxHQUFHLElBQUksNEJBQVksQ0FBQyxFQUFFLE1BQU0sRUFBRSxPQUFPLENBQUMsR0FBRyxDQUFDLFVBQVUsRUFBRSxDQUFDLENBQUM7QUFDekUsTUFBTSxtQkFBbUIsR0FBRyxJQUFJLDBDQUFtQixDQUFDLEVBQUUsTUFBTSxFQUFFLE9BQU8sQ0FBQyxHQUFHLENBQUMsVUFBVSxFQUFFLENBQUMsQ0FBQztBQUV4RixTQUFTLEtBQUssQ0FBQyxFQUFVO0lBQ3ZCLE9BQU8sSUFBSSxPQUFPLENBQUMsT0FBTyxDQUFDLEVBQUUsQ0FBQyxVQUFVLENBQUMsT0FBTyxFQUFFLEVBQUUsQ0FBQyxDQUFDLENBQUM7QUFDekQsQ0FBQztBQUVELEtBQUssVUFBVSxnQkFBZ0IsQ0FDN0IsRUFBb0IsRUFDcEIsSUFBK0U7SUFFL0UsSUFBSSxTQUE0QixDQUFDO0lBQ2pDLEtBQUssSUFBSSxPQUFPLEdBQUcsQ0FBQyxFQUFFLE9BQU8sSUFBSSxJQUFJLENBQUMsVUFBVSxFQUFFLE9BQU8sRUFBRSxFQUFFLENBQUM7UUFDNUQsSUFBSSxDQUFDO1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jY291bnRJZH0gaXMgZGVsZWdhdGVkIGFkbWluIGJlZm9yZSByZW1vdmluZy4uLmApO1xuICAgICAgaWYgKGF3YWl0IGlzQWxyZWFkeUFkbWluKGV2ZW50LlJlc291cmNlUHJvcGVydGllcy5hdWRpdEFjY291bnRJZCkpIHtcbiAgICAgICAgYXdhaXQgbWFjaWVDbGllbnQuc2VuZChuZXcgRGlzYWJsZU9yZ2FuaXphdGlvbkFkbWluQWNjb3VudENvbW1hbmQoe1xuICAgICAgICAgIGFkbWluQWNjb3VudElkOiBldmVudC5SZXNvdXJjZVByb3BlcnRpZXMuYXVkaXRBY2NvdW50SWQsXG4gICAgICAgIH0pKTtcbiAgICAgICAgY29uc29sZS5sb2coYFJlbW92ZWQgJHtldmVudC5SZXNvdXJjZVByb3BlcnRpZXMuYXVkaXRBY2NvdW50SWR9IGFzIE1hY2llIGRlbGVnYXRlZCBhZG1pbmApO1xuICAgICAgfSBlbHNlIHtcbiAgICAgICAgY29uc29sZS5sb2coJ0FjY291bnQgaXMgbm90IGEgTWFjaWUgZGVsZWdhdGVkIGFkbWluLCBza2lwcGluZyBkaXNhYmxlJyk7XG4gICAgICB9XG4gICAgfVxuXG4gICAgY29uc29sZS5sb2coJ0hhbmRsZXIgY29tcGxldGVkIHN1Y2Nlc3NmdWxseScpO1xuICAgIHJldHVybiByZXNwb25zZTtcbiAgfSBjYXRjaCAoZXJyb3I6IGFueSkge1xuICAgIGNvbnNvbGUuZXJyb3IoJ0VSUk9SOicsIGVycm9yLm5hbWUsIGVycm9yLm1lc3NhZ2UpO1xuICAgIGNvbnNvbGUuZXJyb3IoJ1N0YWNrOicsIGVycm9yLnN0YWNrKTtcbiAgICB0aHJvdyBlcnJvcjtcbiAgfVxufTtcbiJdfQ==
@@ -0,0 +1,8 @@
1
+ import { CloudFormationCustomResourceEvent } from 'aws-lambda';
2
+ export type HandlerResponse = undefined | {
3
+ Data?: any;
4
+ PhysicalResourceId?: string;
5
+ Reason?: string;
6
+ NoEcho?: boolean;
7
+ };
8
+ export declare const handler: (event: CloudFormationCustomResourceEvent) => Promise<HandlerResponse>;
@@ -0,0 +1,124 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.handler = void 0;
4
+ const client_macie2_1 = require("@aws-sdk/client-macie2");
5
+ const macieClient = new client_macie2_1.Macie2Client({ region: process.env.AWS_REGION });
6
+ async function enrollAccounts(accounts) {
7
+ if (accounts.length === 0) {
8
+ console.log('No accounts to enroll, skipping');
9
+ return;
10
+ }
11
+ for (const account of accounts) {
12
+ console.log(`Checking if ${account.accountId} is already a member...`);
13
+ try {
14
+ const existing = await macieClient.send(new client_macie2_1.GetMemberCommand({
15
+ id: account.accountId,
16
+ }));
17
+ console.log(`Account ${account.accountId} already exists with status: ${existing.relationshipStatus}`);
18
+ continue;
19
+ }
20
+ catch (error) {
21
+ if (error.name === 'ResourceNotFoundException' || error.__type === 'ResourceNotFoundException') {
22
+ console.log(`Account ${account.accountId} is not a member, creating...`);
23
+ }
24
+ else {
25
+ throw error;
26
+ }
27
+ }
28
+ console.log(`Creating member for account ${account.accountId} (email: ${account.email})...`);
29
+ const result = await macieClient.send(new client_macie2_1.CreateMemberCommand({
30
+ account: {
31
+ accountId: account.accountId,
32
+ email: account.email,
33
+ },
34
+ }));
35
+ console.log(`CreateMember response for ${account.accountId}: arn=${result.arn}`);
36
+ }
37
+ // Verify enrollment by listing members
38
+ console.log('Verifying enrollment by listing members...');
39
+ try {
40
+ const listResult = await macieClient.send(new client_macie2_1.ListMembersCommand({}));
41
+ console.log('ListMembers after enrollment:', JSON.stringify(listResult.members?.map(m => ({
42
+ accountId: m.accountId,
43
+ relationshipStatus: m.relationshipStatus,
44
+ }))));
45
+ }
46
+ catch (err) {
47
+ console.log(`ListMembers verification failed (non-fatal): ${err.name}: ${err.message}`);
48
+ }
49
+ }
50
+ async function disenrollAccounts(accountIds) {
51
+ if (accountIds.length === 0) {
52
+ console.log('No accounts to disenroll, skipping');
53
+ return;
54
+ }
55
+ for (const accountId of accountIds) {
56
+ console.log(`Checking if ${accountId} is a member before disenrolling...`);
57
+ try {
58
+ await macieClient.send(new client_macie2_1.GetMemberCommand({ id: accountId }));
59
+ }
60
+ catch (error) {
61
+ if (error.name === 'ResourceNotFoundException' || error.__type === 'ResourceNotFoundException') {
62
+ console.log(`Account ${accountId} is not a member, skipping disenrollment`);
63
+ continue;
64
+ }
65
+ throw error;
66
+ }
67
+ console.log(`Disenrolling account ${accountId}...`);
68
+ // Step 1: Disassociate — breaks the admin-member relationship
69
+ console.log(`Calling DisassociateMember for ${accountId}...`);
70
+ await macieClient.send(new client_macie2_1.DisassociateMemberCommand({
71
+ id: accountId,
72
+ }));
73
+ console.log(`DisassociateMember completed for ${accountId}`);
74
+ // Step 2: Delete — removes from member list
75
+ console.log(`Calling DeleteMember for ${accountId}...`);
76
+ await macieClient.send(new client_macie2_1.DeleteMemberCommand({
77
+ id: accountId,
78
+ }));
79
+ console.log(`DeleteMember completed for ${accountId}`);
80
+ }
81
+ }
82
+ const handler = async (event) => {
83
+ console.log('Received event:', JSON.stringify(event, null, 2));
84
+ console.log(`Handler invoked: RequestType=${event.RequestType}, Region=${process.env.AWS_REGION}`);
85
+ try {
86
+ const { physicalResourceId, enrollAccounts: enrollAccountsJson, disenrollAccountIds: disenrollJson, } = event.ResourceProperties;
87
+ const response = {
88
+ PhysicalResourceId: physicalResourceId,
89
+ };
90
+ if (event.RequestType === 'Create' ||
91
+ event.RequestType === 'Update') {
92
+ // Step 0: Disenroll accounts that have macieEnabled=false
93
+ if (disenrollJson) {
94
+ const accountIds = JSON.parse(disenrollJson);
95
+ console.log(`Step 0: Disenrolling ${accountIds.length} accounts: [${accountIds.join(', ')}]`);
96
+ await disenrollAccounts(accountIds);
97
+ }
98
+ else {
99
+ console.log('Step 0: No disenrollAccountIds provided, skipping disenrollment');
100
+ }
101
+ // Step 1: Enroll accounts that need explicit enrollment
102
+ if (enrollAccountsJson) {
103
+ const accounts = JSON.parse(enrollAccountsJson);
104
+ console.log(`Step 1: Enrolling ${accounts.length} accounts:`, JSON.stringify(accounts));
105
+ await enrollAccounts(accounts);
106
+ }
107
+ else {
108
+ console.log('Step 1: No enrollAccounts provided, skipping enrollment');
109
+ }
110
+ }
111
+ else if (event.RequestType === 'Delete') {
112
+ console.log('Delete: no action required for member enrollment');
113
+ }
114
+ console.log('Handler completed successfully');
115
+ return response;
116
+ }
117
+ catch (error) {
118
+ console.error('ERROR:', error.name, error.message);
119
+ console.error('Stack:', error.stack);
120
+ throw error;
121
+ }
122
+ };
123
+ exports.handler = handler;
124
+ //# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiaW5kZXguanMiLCJzb3VyY2VSb290IjoiIiwic291cmNlcyI6WyIuLi8uLi8uLi8uLi8uLi9zcmMvY29uc3RydWN0cy9kbHotbWFjaWUvbGFtYmRhL21hY2llLW1lbWJlcnMvaW5kZXgudHMiXSwibmFtZXMiOltdLCJtYXBwaW5ncyI6Ijs7O0FBQUEsMERBT2dDO0FBTWhDLE1BQU0sV0FBVyxHQUFHLElBQUksNEJBQVksQ0FBQyxFQUFFLE1BQU0sRUFBRSxPQUFPLENBQUMsR0FBRyxDQUFDLFVBQVUsRUFBRSxDQUFDLENBQUM7QUFjekUsS0FBSyxVQUFVLGNBQWMsQ0FBQyxRQUF5QjtJQUNyRCxJQUFJLFFBQVEsQ0FBQyxNQUFNLEtBQUssQ0FBQyxFQUFFLENBQUM7UUFDMUIsT0FBTyxDQUFDLEdBQUcsQ0FBQyxpQ0FBaUMsQ0FBQyxDQUFDO1FBQy9DLE9BQU87SUFDVCxDQUFDO0lBRUQsS0FBSyxNQUFNLE9BQU8sSUFBSSxRQUFRLEVBQUUsQ0FBQztRQUMvQixPQUFPLENBQUMsR0FBRyxDQUFDLGVBQWUsT0FBTyxDQUFDLFNBQVMseUJBQXlCLENBQUMsQ0FBQztRQUN2RSxJQUFJLENBQUM7WUFDSCxNQUFNLFFBQVEsR0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9IGVsc2Uge1xuICAgICAgICBjb25zb2xlLmxvZygnU3RlcCAxOiBObyBlbnJvbGxBY2NvdW50cyBwcm92aWRlZCwgc2tpcHBpbmcgZW5yb2xsbWVudCcpO1xuICAgICAgfVxuXG4gICAgfSBlbHNlIGlmIChldmVudC5SZXF1ZXN0VHlwZSA9PT0gJ0RlbGV0ZScpIHtcbiAgICAgIGNvbnNvbGUubG9nKCdEZWxldGU6IG5vIGFjdGlvbiByZXF1aXJlZCBmb3IgbWVtYmVyIGVucm9sbG1lbnQnKTtcbiAgICB9XG5cbiAgICBjb25zb2xlLmxvZygnSGFuZGxlciBjb21wbGV0ZWQgc3VjY2Vzc2Z1bGx5Jyk7XG4gICAgcmV0dXJuIHJlc3BvbnNlO1xuICB9IGNhdGNoIChlcnJvcjogYW55KSB7XG4gICAgY29uc29sZS5lcnJvcignRVJST1I6JywgZXJyb3IubmFtZSwgZXJyb3IubWVzc2FnZSk7XG4gICAgY29uc29sZS5lcnJvcignU3RhY2s6JywgZXJyb3Iuc3RhY2spO1xuICAgIHRocm93IGVycm9yO1xuICB9XG59O1xuIl19
@@ -0,0 +1,8 @@
1
+ import { CloudFormationCustomResourceEvent } from 'aws-lambda';
2
+ export type HandlerResponse = undefined | {
3
+ Data?: any;
4
+ PhysicalResourceId?: string;
5
+ Reason?: string;
6
+ NoEcho?: boolean;
7
+ };
8
+ export declare const handler: (event: CloudFormationCustomResourceEvent) => Promise<HandlerResponse>;
@@ -0,0 +1,70 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.handler = void 0;
4
+ const client_macie2_1 = require("@aws-sdk/client-macie2");
5
+ const macieClient = new client_macie2_1.Macie2Client({ region: process.env.AWS_REGION });
6
+ async function ensureMacieEnabled() {
7
+ console.log('Enabling Macie session in delegated admin account...');
8
+ try {
9
+ await macieClient.send(new client_macie2_1.EnableMacieCommand({}));
10
+ console.log('Macie session enabled');
11
+ }
12
+ catch (error) {
13
+ if (error.name === 'ConflictException' || error.__type === 'ConflictException') {
14
+ console.log('Macie is already enabled in this account');
15
+ }
16
+ else {
17
+ throw error;
18
+ }
19
+ }
20
+ }
21
+ const handler = async (event) => {
22
+ console.log('Received event:', JSON.stringify(event, null, 2));
23
+ console.log(`Handler invoked: RequestType=${event.RequestType}, Region=${process.env.AWS_REGION}`);
24
+ try {
25
+ const { physicalResourceId } = event.ResourceProperties;
26
+ const response = {
27
+ PhysicalResourceId: physicalResourceId,
28
+ };
29
+ if (event.RequestType === 'Create' ||
30
+ event.RequestType === 'Update') {
31
+ // Ensure Macie is enabled in the delegated admin account
32
+ await ensureMacieEnabled();
33
+ const autoEnable = event.ResourceProperties.autoEnable === 'true';
34
+ console.log(`Updating organization configuration: autoEnable=${autoEnable}`);
35
+ const updateResult = await macieClient.send(new client_macie2_1.UpdateOrganizationConfigurationCommand({
36
+ autoEnable: autoEnable,
37
+ }));
38
+ console.log('UpdateOrganizationConfiguration response:', JSON.stringify(updateResult.$metadata));
39
+ }
40
+ else if (event.RequestType === 'Delete') {
41
+ console.log('Resetting organization configuration: autoEnable=false');
42
+ try {
43
+ const resetResult = await macieClient.send(new client_macie2_1.UpdateOrganizationConfigurationCommand({
44
+ autoEnable: false,
45
+ }));
46
+ console.log('Reset response:', JSON.stringify(resetResult.$metadata));
47
+ }
48
+ catch (error) {
49
+ // If the delegated admin was already removed (e.g. management stack deleted first),
50
+ // we are no longer the Macie administrator and cannot reset the config. This is safe
51
+ // to ignore — the admin removal already effectively disables org-level settings.
52
+ if (error.name === 'AccessDeniedException' || error.__type === 'AccessDeniedException') {
53
+ console.log('No longer Macie administrator, skipping org config reset (safe to ignore)');
54
+ }
55
+ else {
56
+ throw error;
57
+ }
58
+ }
59
+ }
60
+ console.log('Handler completed successfully');
61
+ return response;
62
+ }
63
+ catch (error) {
64
+ console.error('ERROR:', error.name, error.message);
65
+ console.error('Stack:', error.stack);
66
+ throw error;
67
+ }
68
+ };
69
+ exports.handler = handler;
70
+ //# sourceMappingURL=data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5nLiBtYW5hZ2VtZW50IHN0YWNrIGRlbGV0ZWQgZmlyc3QpLFxuICAgICAgICAvLyB3ZSBhcmUgbm8gbG9uZ2VyIHRoZSBNYWNpZSBhZG1pbmlzdHJhdG9yIGFuZCBjYW5ub3QgcmVzZXQgdGhlIGNvbmZpZy4gVGhpcyBpcyBzYWZlXG4gICAgICAgIC8vIHRvIGlnbm9yZSDigJQgdGhlIGFkbWluIHJlbW92YWwgYWxyZWFkeSBlZmZlY3RpdmVseSBkaXNhYmxlcyBvcmctbGV2ZWwgc2V0dGluZ3MuXG4gICAgICAgIGlmIChlcnJvci5uYW1lID09PSAnQWNjZXNzRGVuaWVkRXhjZXB0aW9uJyB8fCBlcnJvci5fX3R5cGUgPT09ICdBY2Nlc3NEZW5pZWRFeGNlcHRpb24nKSB7XG4gICAgICAgICAgY29uc29sZS5sb2coJ05vIGxvbmdlciBNYWNpZSBhZG1pbmlzdHJhdG9yLCBza2lwcGluZyBvcmcgY29uZmlnIHJlc2V0IChzYWZlIHRvIGlnbm9yZSknKTtcbiAgICAgICAgfSBlbHNlIHtcbiAgICAgICAgICB0aHJvdyBlcnJvcjtcbiAgICAgICAgfVxuICAgICAgfVxuICAgIH1cblxuICAgIGNvbnNvbGUubG9nKCdIYW5kbGVyIGNvbXBsZXRlZCBzdWNjZXNzZnVsbHknKTtcbiAgICByZXR1cm4gcmVzcG9uc2U7XG4gIH0gY2F0Y2ggKGVycm9yOiBhbnkpIHtcbiAgICBjb25zb2xlLmVycm9yKCdFUlJPUjonLCBlcnJvci5uYW1lLCBlcnJvci5tZXNzYWdlKTtcbiAgICBjb25zb2xlLmVycm9yKCdTdGFjazonLCBlcnJvci5zdGFjayk7XG4gICAgdGhyb3cgZXJyb3I7XG4gIH1cbn07XG4iXX0=
@@ -0,0 +1,24 @@
1
+ import { Construct } from 'constructs';
2
+ import { IReportResource, ReportResource } from '../../lib';
3
+ export interface MacieDelegatedAdminProps {
4
+ /**
5
+ * The management account ID. Used to scope IAM policy resources.
6
+ */
7
+ readonly managementAccountId: string;
8
+ /**
9
+ * The account ID to designate as the Macie delegated administrator.
10
+ */
11
+ readonly auditAccountId: string;
12
+ }
13
+ /**
14
+ * Designates an account as the Macie delegated administrator for the organization.
15
+ * Enables AWS service access for Macie in AWS Organizations and registers the
16
+ * specified account as the delegated administrator.
17
+ *
18
+ * Must be deployed in the management account.
19
+ */
20
+ export declare class MacieDelegatedAdmin extends Construct implements IReportResource {
21
+ static fetchCodeDirectory(): string;
22
+ readonly reportResource: ReportResource;
23
+ constructor(scope: Construct, id: string, props: MacieDelegatedAdminProps);
24
+ }
@@ -0,0 +1,85 @@
1
+ "use strict";
2
+ var _a;
3
+ Object.defineProperty(exports, "__esModule", { value: true });
4
+ exports.MacieDelegatedAdmin = void 0;
5
+ const JSII_RTTI_SYMBOL_1 = Symbol.for("jsii.rtti");
6
+ const fs = require("fs");
7
+ const path = require("path");
8
+ const aws_cdk_lib_1 = require("aws-cdk-lib");
9
+ const constructs_1 = require("constructs");
10
+ const lib_1 = require("../../lib");
11
+ /**
12
+ * Designates an account as the Macie delegated administrator for the organization.
13
+ * Enables AWS service access for Macie in AWS Organizations and registers the
14
+ * specified account as the delegated administrator.
15
+ *
16
+ * Must be deployed in the management account.
17
+ */
18
+ class MacieDelegatedAdmin extends constructs_1.Construct {
19
+ static fetchCodeDirectory() {
20
+ const dir = path.join(__dirname, 'lambda', 'macie-delegated-admin');
21
+ if (fs.existsSync(path.join(dir, 'index.js'))) {
22
+ return dir;
23
+ }
24
+ // During development/testing, __dirname points to src/ where only .ts exists.
25
+ // Fall back to the bundled assets directory created by esbuild during pre-compile.
26
+ return path.join(__dirname, '..', '..', '..', 'assets', 'constructs', 'dlz-macie', 'lambda', 'macie-delegated-admin');
27
+ }
28
+ constructor(scope, id, props) {
29
+ super(scope, id);
30
+ const customResourceProvider = aws_cdk_lib_1.CustomResourceProvider.getOrCreateProvider(this, 'Custom::DlzMacieDelegatedAdmin', {
31
+ useCfnResponseWrapper: true,
32
+ codeDirectory: MacieDelegatedAdmin.fetchCodeDirectory(),
33
+ runtime: aws_cdk_lib_1.CustomResourceProviderRuntime.NODEJS_22_X,
34
+ timeout: aws_cdk_lib_1.Duration.seconds(60),
35
+ policyStatements: [
36
+ {
37
+ Effect: 'Allow',
38
+ Action: [
39
+ 'organizations:EnableAWSServiceAccess',
40
+ 'organizations:DisableAWSServiceAccess',
41
+ 'organizations:RegisterDelegatedAdministrator',
42
+ 'organizations:ListDelegatedAdministrators',
43
+ 'organizations:ListAWSServiceAccessForOrganization',
44
+ 'organizations:DescribeOrganizationalUnit',
45
+ 'organizations:DescribeAccount',
46
+ 'organizations:DescribeOrganization',
47
+ 'organizations:ListAccounts',
48
+ 'macie2:EnableMacie',
49
+ 'macie2:EnableOrganizationAdminAccount',
50
+ 'macie2:DisableOrganizationAdminAccount',
51
+ 'macie2:ListOrganizationAdminAccounts',
52
+ ],
53
+ Resource: '*',
54
+ },
55
+ {
56
+ Effect: 'Allow',
57
+ Action: 'iam:CreateServiceLinkedRole',
58
+ Resource: `arn:aws:iam::${props.managementAccountId}:role/aws-service-role/macie.amazonaws.com/AWSServiceRoleForAmazonMacie`,
59
+ Condition: {
60
+ StringLike: {
61
+ 'iam:AWSServiceName': 'macie.amazonaws.com',
62
+ },
63
+ },
64
+ },
65
+ ],
66
+ });
67
+ new aws_cdk_lib_1.CustomResource(this, 'CustomResource', {
68
+ serviceToken: customResourceProvider.serviceToken,
69
+ properties: {
70
+ physicalResourceId: id,
71
+ auditAccountId: props.auditAccountId,
72
+ },
73
+ });
74
+ this.reportResource = {
75
+ type: lib_1.ReportType.MACIE_DELEGATED_ADMIN,
76
+ name: lib_1.ReportType.MACIE_DELEGATED_ADMIN,
77
+ description: `Delegated to ${props.auditAccountId}`,
78
+ externalLink: '',
79
+ };
80
+ }
81
+ }
82
+ exports.MacieDelegatedAdmin = MacieDelegatedAdmin;
83
+ _a = JSII_RTTI_SYMBOL_1;
84
+ MacieDelegatedAdmin[_a] = { f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zLXNlcnZpY2Utcm9sZS9tYWNpZS5hbWF6b25hd3MuY29tL0FXU1NlcnZpY2VSb2xlRm9yQW1hem9uTWFjaWVgLFxuICAgICAgICAgICAgQ29uZGl0aW9uOiB7XG4gICAgICAgICAgICAgIFN0cmluZ0xpa2U6IHtcbiAgICAgICAgICAgICAgICAnaWFtOkFXU1NlcnZpY2VOYW1lJzogJ21hY2llLmFtYXpvbmF3cy5jb20nLFxuICAgICAgICAgICAgICB9LFxuICAgICAgICAgICAgfSxcbiAgICAgICAgICB9LFxuICAgICAgICBdLFxuICAgICAgfSxcbiAgICApO1xuXG4gICAgbmV3IEN1c3RvbVJlc291cmNlKHRoaXMsICdDdXN0b21SZXNvdXJjZScsIHtcbiAgICAgIHNlcnZpY2VUb2tlbjogY3VzdG9tUmVzb3VyY2VQcm92aWRlci5zZXJ2aWNlVG9rZW4sXG4gICAgICBwcm9wZXJ0aWVzOiB7XG4gICAgICAgIHBoeXNpY2FsUmVzb3VyY2VJZDogaWQsXG4gICAgICAgIGF1ZGl0QWNjb3VudElkOiBwcm9wcy5hdWRpdEFjY291bnRJZCxcbiAgICAgIH0sXG4gICAgfSk7XG5cbiAgICB0aGlzLnJlcG9ydFJlc291cmNlID0ge1xuICAgICAgdHlwZTogUmVwb3J0VHlwZS5NQUNJRV9ERUxFR0FURURfQURNSU4sXG4gICAgICBuYW1lOiBSZXBvcnRUeXBlLk1BQ0lFX0RFTEVHQVRFRF9BRE1JTixcbiAgICAgIGRlc2NyaXB0aW9uOiBgRGVsZWdhdGVkIHRvICR7cHJvcHMuYXVkaXRBY2NvdW50SWR9YCxcbiAgICAgIGV4dGVybmFsTGluazogJycsXG4gICAgfTtcbiAgfVxufVxuIl19
@@ -0,0 +1,31 @@
1
+ import { Construct } from 'constructs';
2
+ import { IReportResource, ReportResource } from '../../lib';
3
+ /**
4
+ * Account details for Macie enrollment.
5
+ */
6
+ export interface MacieEnrollAccount {
7
+ readonly accountId: string;
8
+ readonly email: string;
9
+ }
10
+ export interface MacieMembersProps {
11
+ /**
12
+ * Accounts to explicitly enroll in Macie via CreateMember.
13
+ * Used when existing accounts need explicit enrollment.
14
+ */
15
+ readonly enrollAccounts?: MacieEnrollAccount[];
16
+ /**
17
+ * Account IDs to disenroll from Macie via DisassociateMember + DeleteMember.
18
+ */
19
+ readonly disenrollAccountIds?: string[];
20
+ }
21
+ /**
22
+ * Manages Macie member account enrollment from the delegated admin account.
23
+ * Enrolls and disenrolls member accounts as needed.
24
+ *
25
+ * Must be deployed in the delegated admin (audit) account.
26
+ */
27
+ export declare class MacieMembers extends Construct implements IReportResource {
28
+ static fetchCodeDirectory(): string;
29
+ readonly reportResource: ReportResource;
30
+ constructor(scope: Construct, id: string, props: MacieMembersProps);
31
+ }
@@ -0,0 +1,77 @@
1
+ "use strict";
2
+ var _a;
3
+ Object.defineProperty(exports, "__esModule", { value: true });
4
+ exports.MacieMembers = void 0;
5
+ const JSII_RTTI_SYMBOL_1 = Symbol.for("jsii.rtti");
6
+ const fs = require("fs");
7
+ const path = require("path");
8
+ const aws_cdk_lib_1 = require("aws-cdk-lib");
9
+ const constructs_1 = require("constructs");
10
+ const lib_1 = require("../../lib");
11
+ /**
12
+ * Manages Macie member account enrollment from the delegated admin account.
13
+ * Enrolls and disenrolls member accounts as needed.
14
+ *
15
+ * Must be deployed in the delegated admin (audit) account.
16
+ */
17
+ class MacieMembers extends constructs_1.Construct {
18
+ static fetchCodeDirectory() {
19
+ const dir = path.join(__dirname, 'lambda', 'macie-members');
20
+ if (fs.existsSync(path.join(dir, 'index.js'))) {
21
+ return dir;
22
+ }
23
+ return path.join(__dirname, '..', '..', '..', 'assets', 'constructs', 'dlz-macie', 'lambda', 'macie-members');
24
+ }
25
+ constructor(scope, id, props) {
26
+ super(scope, id);
27
+ const customResourceProvider = aws_cdk_lib_1.CustomResourceProvider.getOrCreateProvider(this, 'Custom::DlzMacieMembers', {
28
+ useCfnResponseWrapper: true,
29
+ codeDirectory: MacieMembers.fetchCodeDirectory(),
30
+ runtime: aws_cdk_lib_1.CustomResourceProviderRuntime.NODEJS_22_X,
31
+ timeout: aws_cdk_lib_1.Duration.seconds(120),
32
+ policyStatements: [{
33
+ Effect: 'Allow',
34
+ Action: [
35
+ 'macie2:CreateMember',
36
+ 'macie2:DeleteMember',
37
+ 'macie2:DisassociateMember',
38
+ 'macie2:GetMember',
39
+ 'macie2:ListMembers',
40
+ ],
41
+ Resource: '*',
42
+ }],
43
+ });
44
+ const crProperties = {
45
+ physicalResourceId: id,
46
+ };
47
+ if (props.enrollAccounts && props.enrollAccounts.length > 0) {
48
+ crProperties.enrollAccounts = JSON.stringify(props.enrollAccounts);
49
+ }
50
+ if (props.disenrollAccountIds && props.disenrollAccountIds.length > 0) {
51
+ crProperties.disenrollAccountIds = JSON.stringify(props.disenrollAccountIds);
52
+ }
53
+ new aws_cdk_lib_1.CustomResource(this, 'CustomResource', {
54
+ serviceToken: customResourceProvider.serviceToken,
55
+ properties: crProperties,
56
+ });
57
+ const enrollCount = props.enrollAccounts?.length ?? 0;
58
+ const disenrollCount = props.disenrollAccountIds?.length ?? 0;
59
+ const parts = [];
60
+ if (enrollCount > 0) {
61
+ parts.push(`${enrollCount} enrolled`);
62
+ }
63
+ if (disenrollCount > 0) {
64
+ parts.push(`${disenrollCount} disenrolled`);
65
+ }
66
+ this.reportResource = {
67
+ type: lib_1.ReportType.MACIE,
68
+ name: 'Macie Members',
69
+ description: parts.join(', '),
70
+ externalLink: '',
71
+ };
72
+ }
73
+ }
74
+ exports.MacieMembers = MacieMembers;
75
+ _a = JSII_RTTI_SYMBOL_1;
76
+ MacieMembers[_a] = { fqn: "aws-data-landing-zone.MacieMembers", version: "0.3.1" };
77
+ //# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoibWFjaWUtbWVtYmVycy5qcyIsInNvdXJjZVJvb3QiOiIiLCJzb3VyY2VzIjpbIi4uLy4uLy4uL3NyYy9jb25zdHJ1Y3RzL2Rsei1tYWNpZS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