@aws-sdk/client-macie2 3.282.0 → 3.287.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (36) hide show
  1. package/dist-cjs/pagination/DescribeBucketsPaginator.js +1 -8
  2. package/dist-cjs/pagination/GetUsageStatisticsPaginator.js +1 -8
  3. package/dist-cjs/pagination/ListAllowListsPaginator.js +1 -8
  4. package/dist-cjs/pagination/ListClassificationJobsPaginator.js +1 -8
  5. package/dist-cjs/pagination/ListClassificationScopesPaginator.js +1 -8
  6. package/dist-cjs/pagination/ListCustomDataIdentifiersPaginator.js +1 -8
  7. package/dist-cjs/pagination/ListFindingsFiltersPaginator.js +1 -8
  8. package/dist-cjs/pagination/ListFindingsPaginator.js +1 -8
  9. package/dist-cjs/pagination/ListInvitationsPaginator.js +1 -8
  10. package/dist-cjs/pagination/ListManagedDataIdentifiersPaginator.js +1 -8
  11. package/dist-cjs/pagination/ListMembersPaginator.js +1 -8
  12. package/dist-cjs/pagination/ListOrganizationAdminAccountsPaginator.js +1 -8
  13. package/dist-cjs/pagination/ListResourceProfileArtifactsPaginator.js +1 -8
  14. package/dist-cjs/pagination/ListResourceProfileDetectionsPaginator.js +1 -8
  15. package/dist-cjs/pagination/ListSensitivityInspectionTemplatesPaginator.js +1 -8
  16. package/dist-cjs/pagination/SearchResourcesPaginator.js +1 -8
  17. package/dist-es/pagination/DescribeBucketsPaginator.js +1 -8
  18. package/dist-es/pagination/GetUsageStatisticsPaginator.js +1 -8
  19. package/dist-es/pagination/ListAllowListsPaginator.js +1 -8
  20. package/dist-es/pagination/ListClassificationJobsPaginator.js +1 -8
  21. package/dist-es/pagination/ListClassificationScopesPaginator.js +1 -8
  22. package/dist-es/pagination/ListCustomDataIdentifiersPaginator.js +1 -8
  23. package/dist-es/pagination/ListFindingsFiltersPaginator.js +1 -8
  24. package/dist-es/pagination/ListFindingsPaginator.js +1 -8
  25. package/dist-es/pagination/ListInvitationsPaginator.js +1 -8
  26. package/dist-es/pagination/ListManagedDataIdentifiersPaginator.js +1 -8
  27. package/dist-es/pagination/ListMembersPaginator.js +1 -8
  28. package/dist-es/pagination/ListOrganizationAdminAccountsPaginator.js +1 -8
  29. package/dist-es/pagination/ListResourceProfileArtifactsPaginator.js +1 -8
  30. package/dist-es/pagination/ListResourceProfileDetectionsPaginator.js +1 -8
  31. package/dist-es/pagination/ListSensitivityInspectionTemplatesPaginator.js +1 -8
  32. package/dist-es/pagination/SearchResourcesPaginator.js +1 -8
  33. package/dist-types/models/models_0.d.ts +22 -22
  34. package/dist-types/pagination/Interfaces.d.ts +1 -2
  35. package/dist-types/ts3.4/pagination/Interfaces.d.ts +1 -2
  36. package/package.json +9 -9
@@ -2,14 +2,10 @@
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
3
  exports.paginateDescribeBuckets = void 0;
4
4
  const DescribeBucketsCommand_1 = require("../commands/DescribeBucketsCommand");
5
- const Macie2_1 = require("../Macie2");
6
5
  const Macie2Client_1 = require("../Macie2Client");
7
6
  const makePagedClientRequest = async (client, input, ...args) => {
8
7
  return await client.send(new DescribeBucketsCommand_1.DescribeBucketsCommand(input), ...args);
9
8
  };
10
- const makePagedRequest = async (client, input, ...args) => {
11
- return await client.describeBuckets(input, ...args);
12
- };
13
9
  async function* paginateDescribeBuckets(config, input, ...additionalArguments) {
14
10
  let token = config.startingToken || undefined;
15
11
  let hasNext = true;
@@ -17,10 +13,7 @@ async function* paginateDescribeBuckets(config, input, ...additionalArguments) {
17
13
  while (hasNext) {
18
14
  input.nextToken = token;
19
15
  input["maxResults"] = config.pageSize;
20
- if (config.client instanceof Macie2_1.Macie2) {
21
- page = await makePagedRequest(config.client, input, ...additionalArguments);
22
- }
23
- else if (config.client instanceof Macie2Client_1.Macie2Client) {
16
+ if (config.client instanceof Macie2Client_1.Macie2Client) {
24
17
  page = await makePagedClientRequest(config.client, input, ...additionalArguments);
25
18
  }
26
19
  else {
@@ -2,14 +2,10 @@
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
3
  exports.paginateGetUsageStatistics = void 0;
4
4
  const GetUsageStatisticsCommand_1 = require("../commands/GetUsageStatisticsCommand");
5
- const Macie2_1 = require("../Macie2");
6
5
  const Macie2Client_1 = require("../Macie2Client");
7
6
  const makePagedClientRequest = async (client, input, ...args) => {
8
7
  return await client.send(new GetUsageStatisticsCommand_1.GetUsageStatisticsCommand(input), ...args);
9
8
  };
10
- const makePagedRequest = async (client, input, ...args) => {
11
- return await client.getUsageStatistics(input, ...args);
12
- };
13
9
  async function* paginateGetUsageStatistics(config, input, ...additionalArguments) {
14
10
  let token = config.startingToken || undefined;
15
11
  let hasNext = true;
@@ -17,10 +13,7 @@ async function* paginateGetUsageStatistics(config, input, ...additionalArguments
17
13
  while (hasNext) {
18
14
  input.nextToken = token;
19
15
  input["maxResults"] = config.pageSize;
20
- if (config.client instanceof Macie2_1.Macie2) {
21
- page = await makePagedRequest(config.client, input, ...additionalArguments);
22
- }
23
- else if (config.client instanceof Macie2Client_1.Macie2Client) {
16
+ if (config.client instanceof Macie2Client_1.Macie2Client) {
24
17
  page = await makePagedClientRequest(config.client, input, ...additionalArguments);
25
18
  }
26
19
  else {
@@ -2,14 +2,10 @@
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
3
  exports.paginateListAllowLists = void 0;
4
4
  const ListAllowListsCommand_1 = require("../commands/ListAllowListsCommand");
5
- const Macie2_1 = require("../Macie2");
6
5
  const Macie2Client_1 = require("../Macie2Client");
7
6
  const makePagedClientRequest = async (client, input, ...args) => {
8
7
  return await client.send(new ListAllowListsCommand_1.ListAllowListsCommand(input), ...args);
9
8
  };
10
- const makePagedRequest = async (client, input, ...args) => {
11
- return await client.listAllowLists(input, ...args);
12
- };
13
9
  async function* paginateListAllowLists(config, input, ...additionalArguments) {
14
10
  let token = config.startingToken || undefined;
15
11
  let hasNext = true;
@@ -17,10 +13,7 @@ async function* paginateListAllowLists(config, input, ...additionalArguments) {
17
13
  while (hasNext) {
18
14
  input.nextToken = token;
19
15
  input["maxResults"] = config.pageSize;
20
- if (config.client instanceof Macie2_1.Macie2) {
21
- page = await makePagedRequest(config.client, input, ...additionalArguments);
22
- }
23
- else if (config.client instanceof Macie2Client_1.Macie2Client) {
16
+ if (config.client instanceof Macie2Client_1.Macie2Client) {
24
17
  page = await makePagedClientRequest(config.client, input, ...additionalArguments);
25
18
  }
26
19
  else {
@@ -2,14 +2,10 @@
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
3
  exports.paginateListClassificationJobs = void 0;
4
4
  const ListClassificationJobsCommand_1 = require("../commands/ListClassificationJobsCommand");
5
- const Macie2_1 = require("../Macie2");
6
5
  const Macie2Client_1 = require("../Macie2Client");
7
6
  const makePagedClientRequest = async (client, input, ...args) => {
8
7
  return await client.send(new ListClassificationJobsCommand_1.ListClassificationJobsCommand(input), ...args);
9
8
  };
10
- const makePagedRequest = async (client, input, ...args) => {
11
- return await client.listClassificationJobs(input, ...args);
12
- };
13
9
  async function* paginateListClassificationJobs(config, input, ...additionalArguments) {
14
10
  let token = config.startingToken || undefined;
15
11
  let hasNext = true;
@@ -17,10 +13,7 @@ async function* paginateListClassificationJobs(config, input, ...additionalArgum
17
13
  while (hasNext) {
18
14
  input.nextToken = token;
19
15
  input["maxResults"] = config.pageSize;
20
- if (config.client instanceof Macie2_1.Macie2) {
21
- page = await makePagedRequest(config.client, input, ...additionalArguments);
22
- }
23
- else if (config.client instanceof Macie2Client_1.Macie2Client) {
16
+ if (config.client instanceof Macie2Client_1.Macie2Client) {
24
17
  page = await makePagedClientRequest(config.client, input, ...additionalArguments);
25
18
  }
26
19
  else {
@@ -2,24 +2,17 @@
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
3
  exports.paginateListClassificationScopes = void 0;
4
4
  const ListClassificationScopesCommand_1 = require("../commands/ListClassificationScopesCommand");
5
- const Macie2_1 = require("../Macie2");
6
5
  const Macie2Client_1 = require("../Macie2Client");
7
6
  const makePagedClientRequest = async (client, input, ...args) => {
8
7
  return await client.send(new ListClassificationScopesCommand_1.ListClassificationScopesCommand(input), ...args);
9
8
  };
10
- const makePagedRequest = async (client, input, ...args) => {
11
- return await client.listClassificationScopes(input, ...args);
12
- };
13
9
  async function* paginateListClassificationScopes(config, input, ...additionalArguments) {
14
10
  let token = config.startingToken || undefined;
15
11
  let hasNext = true;
16
12
  let page;
17
13
  while (hasNext) {
18
14
  input.nextToken = token;
19
- if (config.client instanceof Macie2_1.Macie2) {
20
- page = await makePagedRequest(config.client, input, ...additionalArguments);
21
- }
22
- else if (config.client instanceof Macie2Client_1.Macie2Client) {
15
+ if (config.client instanceof Macie2Client_1.Macie2Client) {
23
16
  page = await makePagedClientRequest(config.client, input, ...additionalArguments);
24
17
  }
25
18
  else {
@@ -2,14 +2,10 @@
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
3
  exports.paginateListCustomDataIdentifiers = void 0;
4
4
  const ListCustomDataIdentifiersCommand_1 = require("../commands/ListCustomDataIdentifiersCommand");
5
- const Macie2_1 = require("../Macie2");
6
5
  const Macie2Client_1 = require("../Macie2Client");
7
6
  const makePagedClientRequest = async (client, input, ...args) => {
8
7
  return await client.send(new ListCustomDataIdentifiersCommand_1.ListCustomDataIdentifiersCommand(input), ...args);
9
8
  };
10
- const makePagedRequest = async (client, input, ...args) => {
11
- return await client.listCustomDataIdentifiers(input, ...args);
12
- };
13
9
  async function* paginateListCustomDataIdentifiers(config, input, ...additionalArguments) {
14
10
  let token = config.startingToken || undefined;
15
11
  let hasNext = true;
@@ -17,10 +13,7 @@ async function* paginateListCustomDataIdentifiers(config, input, ...additionalAr
17
13
  while (hasNext) {
18
14
  input.nextToken = token;
19
15
  input["maxResults"] = config.pageSize;
20
- if (config.client instanceof Macie2_1.Macie2) {
21
- page = await makePagedRequest(config.client, input, ...additionalArguments);
22
- }
23
- else if (config.client instanceof Macie2Client_1.Macie2Client) {
16
+ if (config.client instanceof Macie2Client_1.Macie2Client) {
24
17
  page = await makePagedClientRequest(config.client, input, ...additionalArguments);
25
18
  }
26
19
  else {
@@ -2,14 +2,10 @@
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
3
  exports.paginateListFindingsFilters = void 0;
4
4
  const ListFindingsFiltersCommand_1 = require("../commands/ListFindingsFiltersCommand");
5
- const Macie2_1 = require("../Macie2");
6
5
  const Macie2Client_1 = require("../Macie2Client");
7
6
  const makePagedClientRequest = async (client, input, ...args) => {
8
7
  return await client.send(new ListFindingsFiltersCommand_1.ListFindingsFiltersCommand(input), ...args);
9
8
  };
10
- const makePagedRequest = async (client, input, ...args) => {
11
- return await client.listFindingsFilters(input, ...args);
12
- };
13
9
  async function* paginateListFindingsFilters(config, input, ...additionalArguments) {
14
10
  let token = config.startingToken || undefined;
15
11
  let hasNext = true;
@@ -17,10 +13,7 @@ async function* paginateListFindingsFilters(config, input, ...additionalArgument
17
13
  while (hasNext) {
18
14
  input.nextToken = token;
19
15
  input["maxResults"] = config.pageSize;
20
- if (config.client instanceof Macie2_1.Macie2) {
21
- page = await makePagedRequest(config.client, input, ...additionalArguments);
22
- }
23
- else if (config.client instanceof Macie2Client_1.Macie2Client) {
16
+ if (config.client instanceof Macie2Client_1.Macie2Client) {
24
17
  page = await makePagedClientRequest(config.client, input, ...additionalArguments);
25
18
  }
26
19
  else {
@@ -2,14 +2,10 @@
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
3
  exports.paginateListFindings = void 0;
4
4
  const ListFindingsCommand_1 = require("../commands/ListFindingsCommand");
5
- const Macie2_1 = require("../Macie2");
6
5
  const Macie2Client_1 = require("../Macie2Client");
7
6
  const makePagedClientRequest = async (client, input, ...args) => {
8
7
  return await client.send(new ListFindingsCommand_1.ListFindingsCommand(input), ...args);
9
8
  };
10
- const makePagedRequest = async (client, input, ...args) => {
11
- return await client.listFindings(input, ...args);
12
- };
13
9
  async function* paginateListFindings(config, input, ...additionalArguments) {
14
10
  let token = config.startingToken || undefined;
15
11
  let hasNext = true;
@@ -17,10 +13,7 @@ async function* paginateListFindings(config, input, ...additionalArguments) {
17
13
  while (hasNext) {
18
14
  input.nextToken = token;
19
15
  input["maxResults"] = config.pageSize;
20
- if (config.client instanceof Macie2_1.Macie2) {
21
- page = await makePagedRequest(config.client, input, ...additionalArguments);
22
- }
23
- else if (config.client instanceof Macie2Client_1.Macie2Client) {
16
+ if (config.client instanceof Macie2Client_1.Macie2Client) {
24
17
  page = await makePagedClientRequest(config.client, input, ...additionalArguments);
25
18
  }
26
19
  else {
@@ -2,14 +2,10 @@
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
3
  exports.paginateListInvitations = void 0;
4
4
  const ListInvitationsCommand_1 = require("../commands/ListInvitationsCommand");
5
- const Macie2_1 = require("../Macie2");
6
5
  const Macie2Client_1 = require("../Macie2Client");
7
6
  const makePagedClientRequest = async (client, input, ...args) => {
8
7
  return await client.send(new ListInvitationsCommand_1.ListInvitationsCommand(input), ...args);
9
8
  };
10
- const makePagedRequest = async (client, input, ...args) => {
11
- return await client.listInvitations(input, ...args);
12
- };
13
9
  async function* paginateListInvitations(config, input, ...additionalArguments) {
14
10
  let token = config.startingToken || undefined;
15
11
  let hasNext = true;
@@ -17,10 +13,7 @@ async function* paginateListInvitations(config, input, ...additionalArguments) {
17
13
  while (hasNext) {
18
14
  input.nextToken = token;
19
15
  input["maxResults"] = config.pageSize;
20
- if (config.client instanceof Macie2_1.Macie2) {
21
- page = await makePagedRequest(config.client, input, ...additionalArguments);
22
- }
23
- else if (config.client instanceof Macie2Client_1.Macie2Client) {
16
+ if (config.client instanceof Macie2Client_1.Macie2Client) {
24
17
  page = await makePagedClientRequest(config.client, input, ...additionalArguments);
25
18
  }
26
19
  else {
@@ -2,24 +2,17 @@
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
3
  exports.paginateListManagedDataIdentifiers = void 0;
4
4
  const ListManagedDataIdentifiersCommand_1 = require("../commands/ListManagedDataIdentifiersCommand");
5
- const Macie2_1 = require("../Macie2");
6
5
  const Macie2Client_1 = require("../Macie2Client");
7
6
  const makePagedClientRequest = async (client, input, ...args) => {
8
7
  return await client.send(new ListManagedDataIdentifiersCommand_1.ListManagedDataIdentifiersCommand(input), ...args);
9
8
  };
10
- const makePagedRequest = async (client, input, ...args) => {
11
- return await client.listManagedDataIdentifiers(input, ...args);
12
- };
13
9
  async function* paginateListManagedDataIdentifiers(config, input, ...additionalArguments) {
14
10
  let token = config.startingToken || undefined;
15
11
  let hasNext = true;
16
12
  let page;
17
13
  while (hasNext) {
18
14
  input.nextToken = token;
19
- if (config.client instanceof Macie2_1.Macie2) {
20
- page = await makePagedRequest(config.client, input, ...additionalArguments);
21
- }
22
- else if (config.client instanceof Macie2Client_1.Macie2Client) {
15
+ if (config.client instanceof Macie2Client_1.Macie2Client) {
23
16
  page = await makePagedClientRequest(config.client, input, ...additionalArguments);
24
17
  }
25
18
  else {
@@ -2,14 +2,10 @@
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
3
  exports.paginateListMembers = void 0;
4
4
  const ListMembersCommand_1 = require("../commands/ListMembersCommand");
5
- const Macie2_1 = require("../Macie2");
6
5
  const Macie2Client_1 = require("../Macie2Client");
7
6
  const makePagedClientRequest = async (client, input, ...args) => {
8
7
  return await client.send(new ListMembersCommand_1.ListMembersCommand(input), ...args);
9
8
  };
10
- const makePagedRequest = async (client, input, ...args) => {
11
- return await client.listMembers(input, ...args);
12
- };
13
9
  async function* paginateListMembers(config, input, ...additionalArguments) {
14
10
  let token = config.startingToken || undefined;
15
11
  let hasNext = true;
@@ -17,10 +13,7 @@ async function* paginateListMembers(config, input, ...additionalArguments) {
17
13
  while (hasNext) {
18
14
  input.nextToken = token;
19
15
  input["maxResults"] = config.pageSize;
20
- if (config.client instanceof Macie2_1.Macie2) {
21
- page = await makePagedRequest(config.client, input, ...additionalArguments);
22
- }
23
- else if (config.client instanceof Macie2Client_1.Macie2Client) {
16
+ if (config.client instanceof Macie2Client_1.Macie2Client) {
24
17
  page = await makePagedClientRequest(config.client, input, ...additionalArguments);
25
18
  }
26
19
  else {
@@ -2,14 +2,10 @@
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
3
  exports.paginateListOrganizationAdminAccounts = void 0;
4
4
  const ListOrganizationAdminAccountsCommand_1 = require("../commands/ListOrganizationAdminAccountsCommand");
5
- const Macie2_1 = require("../Macie2");
6
5
  const Macie2Client_1 = require("../Macie2Client");
7
6
  const makePagedClientRequest = async (client, input, ...args) => {
8
7
  return await client.send(new ListOrganizationAdminAccountsCommand_1.ListOrganizationAdminAccountsCommand(input), ...args);
9
8
  };
10
- const makePagedRequest = async (client, input, ...args) => {
11
- return await client.listOrganizationAdminAccounts(input, ...args);
12
- };
13
9
  async function* paginateListOrganizationAdminAccounts(config, input, ...additionalArguments) {
14
10
  let token = config.startingToken || undefined;
15
11
  let hasNext = true;
@@ -17,10 +13,7 @@ async function* paginateListOrganizationAdminAccounts(config, input, ...addition
17
13
  while (hasNext) {
18
14
  input.nextToken = token;
19
15
  input["maxResults"] = config.pageSize;
20
- if (config.client instanceof Macie2_1.Macie2) {
21
- page = await makePagedRequest(config.client, input, ...additionalArguments);
22
- }
23
- else if (config.client instanceof Macie2Client_1.Macie2Client) {
16
+ if (config.client instanceof Macie2Client_1.Macie2Client) {
24
17
  page = await makePagedClientRequest(config.client, input, ...additionalArguments);
25
18
  }
26
19
  else {
@@ -2,24 +2,17 @@
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
3
  exports.paginateListResourceProfileArtifacts = void 0;
4
4
  const ListResourceProfileArtifactsCommand_1 = require("../commands/ListResourceProfileArtifactsCommand");
5
- const Macie2_1 = require("../Macie2");
6
5
  const Macie2Client_1 = require("../Macie2Client");
7
6
  const makePagedClientRequest = async (client, input, ...args) => {
8
7
  return await client.send(new ListResourceProfileArtifactsCommand_1.ListResourceProfileArtifactsCommand(input), ...args);
9
8
  };
10
- const makePagedRequest = async (client, input, ...args) => {
11
- return await client.listResourceProfileArtifacts(input, ...args);
12
- };
13
9
  async function* paginateListResourceProfileArtifacts(config, input, ...additionalArguments) {
14
10
  let token = config.startingToken || undefined;
15
11
  let hasNext = true;
16
12
  let page;
17
13
  while (hasNext) {
18
14
  input.nextToken = token;
19
- if (config.client instanceof Macie2_1.Macie2) {
20
- page = await makePagedRequest(config.client, input, ...additionalArguments);
21
- }
22
- else if (config.client instanceof Macie2Client_1.Macie2Client) {
15
+ if (config.client instanceof Macie2Client_1.Macie2Client) {
23
16
  page = await makePagedClientRequest(config.client, input, ...additionalArguments);
24
17
  }
25
18
  else {
@@ -2,14 +2,10 @@
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
3
  exports.paginateListResourceProfileDetections = void 0;
4
4
  const ListResourceProfileDetectionsCommand_1 = require("../commands/ListResourceProfileDetectionsCommand");
5
- const Macie2_1 = require("../Macie2");
6
5
  const Macie2Client_1 = require("../Macie2Client");
7
6
  const makePagedClientRequest = async (client, input, ...args) => {
8
7
  return await client.send(new ListResourceProfileDetectionsCommand_1.ListResourceProfileDetectionsCommand(input), ...args);
9
8
  };
10
- const makePagedRequest = async (client, input, ...args) => {
11
- return await client.listResourceProfileDetections(input, ...args);
12
- };
13
9
  async function* paginateListResourceProfileDetections(config, input, ...additionalArguments) {
14
10
  let token = config.startingToken || undefined;
15
11
  let hasNext = true;
@@ -17,10 +13,7 @@ async function* paginateListResourceProfileDetections(config, input, ...addition
17
13
  while (hasNext) {
18
14
  input.nextToken = token;
19
15
  input["maxResults"] = config.pageSize;
20
- if (config.client instanceof Macie2_1.Macie2) {
21
- page = await makePagedRequest(config.client, input, ...additionalArguments);
22
- }
23
- else if (config.client instanceof Macie2Client_1.Macie2Client) {
16
+ if (config.client instanceof Macie2Client_1.Macie2Client) {
24
17
  page = await makePagedClientRequest(config.client, input, ...additionalArguments);
25
18
  }
26
19
  else {
@@ -2,14 +2,10 @@
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
3
  exports.paginateListSensitivityInspectionTemplates = void 0;
4
4
  const ListSensitivityInspectionTemplatesCommand_1 = require("../commands/ListSensitivityInspectionTemplatesCommand");
5
- const Macie2_1 = require("../Macie2");
6
5
  const Macie2Client_1 = require("../Macie2Client");
7
6
  const makePagedClientRequest = async (client, input, ...args) => {
8
7
  return await client.send(new ListSensitivityInspectionTemplatesCommand_1.ListSensitivityInspectionTemplatesCommand(input), ...args);
9
8
  };
10
- const makePagedRequest = async (client, input, ...args) => {
11
- return await client.listSensitivityInspectionTemplates(input, ...args);
12
- };
13
9
  async function* paginateListSensitivityInspectionTemplates(config, input, ...additionalArguments) {
14
10
  let token = config.startingToken || undefined;
15
11
  let hasNext = true;
@@ -17,10 +13,7 @@ async function* paginateListSensitivityInspectionTemplates(config, input, ...add
17
13
  while (hasNext) {
18
14
  input.nextToken = token;
19
15
  input["maxResults"] = config.pageSize;
20
- if (config.client instanceof Macie2_1.Macie2) {
21
- page = await makePagedRequest(config.client, input, ...additionalArguments);
22
- }
23
- else if (config.client instanceof Macie2Client_1.Macie2Client) {
16
+ if (config.client instanceof Macie2Client_1.Macie2Client) {
24
17
  page = await makePagedClientRequest(config.client, input, ...additionalArguments);
25
18
  }
26
19
  else {
@@ -2,14 +2,10 @@
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
3
  exports.paginateSearchResources = void 0;
4
4
  const SearchResourcesCommand_1 = require("../commands/SearchResourcesCommand");
5
- const Macie2_1 = require("../Macie2");
6
5
  const Macie2Client_1 = require("../Macie2Client");
7
6
  const makePagedClientRequest = async (client, input, ...args) => {
8
7
  return await client.send(new SearchResourcesCommand_1.SearchResourcesCommand(input), ...args);
9
8
  };
10
- const makePagedRequest = async (client, input, ...args) => {
11
- return await client.searchResources(input, ...args);
12
- };
13
9
  async function* paginateSearchResources(config, input, ...additionalArguments) {
14
10
  let token = config.startingToken || undefined;
15
11
  let hasNext = true;
@@ -17,10 +13,7 @@ async function* paginateSearchResources(config, input, ...additionalArguments) {
17
13
  while (hasNext) {
18
14
  input.nextToken = token;
19
15
  input["maxResults"] = config.pageSize;
20
- if (config.client instanceof Macie2_1.Macie2) {
21
- page = await makePagedRequest(config.client, input, ...additionalArguments);
22
- }
23
- else if (config.client instanceof Macie2Client_1.Macie2Client) {
16
+ if (config.client instanceof Macie2Client_1.Macie2Client) {
24
17
  page = await makePagedClientRequest(config.client, input, ...additionalArguments);
25
18
  }
26
19
  else {
@@ -1,12 +1,8 @@
1
1
  import { DescribeBucketsCommand, } from "../commands/DescribeBucketsCommand";
2
- import { Macie2 } from "../Macie2";
3
2
  import { Macie2Client } from "../Macie2Client";
4
3
  const makePagedClientRequest = async (client, input, ...args) => {
5
4
  return await client.send(new DescribeBucketsCommand(input), ...args);
6
5
  };
7
- const makePagedRequest = async (client, input, ...args) => {
8
- return await client.describeBuckets(input, ...args);
9
- };
10
6
  export async function* paginateDescribeBuckets(config, input, ...additionalArguments) {
11
7
  let token = config.startingToken || undefined;
12
8
  let hasNext = true;
@@ -14,10 +10,7 @@ export async function* paginateDescribeBuckets(config, input, ...additionalArgum
14
10
  while (hasNext) {
15
11
  input.nextToken = token;
16
12
  input["maxResults"] = config.pageSize;
17
- if (config.client instanceof Macie2) {
18
- page = await makePagedRequest(config.client, input, ...additionalArguments);
19
- }
20
- else if (config.client instanceof Macie2Client) {
13
+ if (config.client instanceof Macie2Client) {
21
14
  page = await makePagedClientRequest(config.client, input, ...additionalArguments);
22
15
  }
23
16
  else {
@@ -1,12 +1,8 @@
1
1
  import { GetUsageStatisticsCommand, } from "../commands/GetUsageStatisticsCommand";
2
- import { Macie2 } from "../Macie2";
3
2
  import { Macie2Client } from "../Macie2Client";
4
3
  const makePagedClientRequest = async (client, input, ...args) => {
5
4
  return await client.send(new GetUsageStatisticsCommand(input), ...args);
6
5
  };
7
- const makePagedRequest = async (client, input, ...args) => {
8
- return await client.getUsageStatistics(input, ...args);
9
- };
10
6
  export async function* paginateGetUsageStatistics(config, input, ...additionalArguments) {
11
7
  let token = config.startingToken || undefined;
12
8
  let hasNext = true;
@@ -14,10 +10,7 @@ export async function* paginateGetUsageStatistics(config, input, ...additionalAr
14
10
  while (hasNext) {
15
11
  input.nextToken = token;
16
12
  input["maxResults"] = config.pageSize;
17
- if (config.client instanceof Macie2) {
18
- page = await makePagedRequest(config.client, input, ...additionalArguments);
19
- }
20
- else if (config.client instanceof Macie2Client) {
13
+ if (config.client instanceof Macie2Client) {
21
14
  page = await makePagedClientRequest(config.client, input, ...additionalArguments);
22
15
  }
23
16
  else {
@@ -1,12 +1,8 @@
1
1
  import { ListAllowListsCommand, } from "../commands/ListAllowListsCommand";
2
- import { Macie2 } from "../Macie2";
3
2
  import { Macie2Client } from "../Macie2Client";
4
3
  const makePagedClientRequest = async (client, input, ...args) => {
5
4
  return await client.send(new ListAllowListsCommand(input), ...args);
6
5
  };
7
- const makePagedRequest = async (client, input, ...args) => {
8
- return await client.listAllowLists(input, ...args);
9
- };
10
6
  export async function* paginateListAllowLists(config, input, ...additionalArguments) {
11
7
  let token = config.startingToken || undefined;
12
8
  let hasNext = true;
@@ -14,10 +10,7 @@ export async function* paginateListAllowLists(config, input, ...additionalArgume
14
10
  while (hasNext) {
15
11
  input.nextToken = token;
16
12
  input["maxResults"] = config.pageSize;
17
- if (config.client instanceof Macie2) {
18
- page = await makePagedRequest(config.client, input, ...additionalArguments);
19
- }
20
- else if (config.client instanceof Macie2Client) {
13
+ if (config.client instanceof Macie2Client) {
21
14
  page = await makePagedClientRequest(config.client, input, ...additionalArguments);
22
15
  }
23
16
  else {
@@ -1,12 +1,8 @@
1
1
  import { ListClassificationJobsCommand, } from "../commands/ListClassificationJobsCommand";
2
- import { Macie2 } from "../Macie2";
3
2
  import { Macie2Client } from "../Macie2Client";
4
3
  const makePagedClientRequest = async (client, input, ...args) => {
5
4
  return await client.send(new ListClassificationJobsCommand(input), ...args);
6
5
  };
7
- const makePagedRequest = async (client, input, ...args) => {
8
- return await client.listClassificationJobs(input, ...args);
9
- };
10
6
  export async function* paginateListClassificationJobs(config, input, ...additionalArguments) {
11
7
  let token = config.startingToken || undefined;
12
8
  let hasNext = true;
@@ -14,10 +10,7 @@ export async function* paginateListClassificationJobs(config, input, ...addition
14
10
  while (hasNext) {
15
11
  input.nextToken = token;
16
12
  input["maxResults"] = config.pageSize;
17
- if (config.client instanceof Macie2) {
18
- page = await makePagedRequest(config.client, input, ...additionalArguments);
19
- }
20
- else if (config.client instanceof Macie2Client) {
13
+ if (config.client instanceof Macie2Client) {
21
14
  page = await makePagedClientRequest(config.client, input, ...additionalArguments);
22
15
  }
23
16
  else {
@@ -1,22 +1,15 @@
1
1
  import { ListClassificationScopesCommand, } from "../commands/ListClassificationScopesCommand";
2
- import { Macie2 } from "../Macie2";
3
2
  import { Macie2Client } from "../Macie2Client";
4
3
  const makePagedClientRequest = async (client, input, ...args) => {
5
4
  return await client.send(new ListClassificationScopesCommand(input), ...args);
6
5
  };
7
- const makePagedRequest = async (client, input, ...args) => {
8
- return await client.listClassificationScopes(input, ...args);
9
- };
10
6
  export async function* paginateListClassificationScopes(config, input, ...additionalArguments) {
11
7
  let token = config.startingToken || undefined;
12
8
  let hasNext = true;
13
9
  let page;
14
10
  while (hasNext) {
15
11
  input.nextToken = token;
16
- if (config.client instanceof Macie2) {
17
- page = await makePagedRequest(config.client, input, ...additionalArguments);
18
- }
19
- else if (config.client instanceof Macie2Client) {
12
+ if (config.client instanceof Macie2Client) {
20
13
  page = await makePagedClientRequest(config.client, input, ...additionalArguments);
21
14
  }
22
15
  else {
@@ -1,12 +1,8 @@
1
1
  import { ListCustomDataIdentifiersCommand, } from "../commands/ListCustomDataIdentifiersCommand";
2
- import { Macie2 } from "../Macie2";
3
2
  import { Macie2Client } from "../Macie2Client";
4
3
  const makePagedClientRequest = async (client, input, ...args) => {
5
4
  return await client.send(new ListCustomDataIdentifiersCommand(input), ...args);
6
5
  };
7
- const makePagedRequest = async (client, input, ...args) => {
8
- return await client.listCustomDataIdentifiers(input, ...args);
9
- };
10
6
  export async function* paginateListCustomDataIdentifiers(config, input, ...additionalArguments) {
11
7
  let token = config.startingToken || undefined;
12
8
  let hasNext = true;
@@ -14,10 +10,7 @@ export async function* paginateListCustomDataIdentifiers(config, input, ...addit
14
10
  while (hasNext) {
15
11
  input.nextToken = token;
16
12
  input["maxResults"] = config.pageSize;
17
- if (config.client instanceof Macie2) {
18
- page = await makePagedRequest(config.client, input, ...additionalArguments);
19
- }
20
- else if (config.client instanceof Macie2Client) {
13
+ if (config.client instanceof Macie2Client) {
21
14
  page = await makePagedClientRequest(config.client, input, ...additionalArguments);
22
15
  }
23
16
  else {
@@ -1,12 +1,8 @@
1
1
  import { ListFindingsFiltersCommand, } from "../commands/ListFindingsFiltersCommand";
2
- import { Macie2 } from "../Macie2";
3
2
  import { Macie2Client } from "../Macie2Client";
4
3
  const makePagedClientRequest = async (client, input, ...args) => {
5
4
  return await client.send(new ListFindingsFiltersCommand(input), ...args);
6
5
  };
7
- const makePagedRequest = async (client, input, ...args) => {
8
- return await client.listFindingsFilters(input, ...args);
9
- };
10
6
  export async function* paginateListFindingsFilters(config, input, ...additionalArguments) {
11
7
  let token = config.startingToken || undefined;
12
8
  let hasNext = true;
@@ -14,10 +10,7 @@ export async function* paginateListFindingsFilters(config, input, ...additionalA
14
10
  while (hasNext) {
15
11
  input.nextToken = token;
16
12
  input["maxResults"] = config.pageSize;
17
- if (config.client instanceof Macie2) {
18
- page = await makePagedRequest(config.client, input, ...additionalArguments);
19
- }
20
- else if (config.client instanceof Macie2Client) {
13
+ if (config.client instanceof Macie2Client) {
21
14
  page = await makePagedClientRequest(config.client, input, ...additionalArguments);
22
15
  }
23
16
  else {
@@ -1,12 +1,8 @@
1
1
  import { ListFindingsCommand, } from "../commands/ListFindingsCommand";
2
- import { Macie2 } from "../Macie2";
3
2
  import { Macie2Client } from "../Macie2Client";
4
3
  const makePagedClientRequest = async (client, input, ...args) => {
5
4
  return await client.send(new ListFindingsCommand(input), ...args);
6
5
  };
7
- const makePagedRequest = async (client, input, ...args) => {
8
- return await client.listFindings(input, ...args);
9
- };
10
6
  export async function* paginateListFindings(config, input, ...additionalArguments) {
11
7
  let token = config.startingToken || undefined;
12
8
  let hasNext = true;
@@ -14,10 +10,7 @@ export async function* paginateListFindings(config, input, ...additionalArgument
14
10
  while (hasNext) {
15
11
  input.nextToken = token;
16
12
  input["maxResults"] = config.pageSize;
17
- if (config.client instanceof Macie2) {
18
- page = await makePagedRequest(config.client, input, ...additionalArguments);
19
- }
20
- else if (config.client instanceof Macie2Client) {
13
+ if (config.client instanceof Macie2Client) {
21
14
  page = await makePagedClientRequest(config.client, input, ...additionalArguments);
22
15
  }
23
16
  else {
@@ -1,12 +1,8 @@
1
1
  import { ListInvitationsCommand, } from "../commands/ListInvitationsCommand";
2
- import { Macie2 } from "../Macie2";
3
2
  import { Macie2Client } from "../Macie2Client";
4
3
  const makePagedClientRequest = async (client, input, ...args) => {
5
4
  return await client.send(new ListInvitationsCommand(input), ...args);
6
5
  };
7
- const makePagedRequest = async (client, input, ...args) => {
8
- return await client.listInvitations(input, ...args);
9
- };
10
6
  export async function* paginateListInvitations(config, input, ...additionalArguments) {
11
7
  let token = config.startingToken || undefined;
12
8
  let hasNext = true;
@@ -14,10 +10,7 @@ export async function* paginateListInvitations(config, input, ...additionalArgum
14
10
  while (hasNext) {
15
11
  input.nextToken = token;
16
12
  input["maxResults"] = config.pageSize;
17
- if (config.client instanceof Macie2) {
18
- page = await makePagedRequest(config.client, input, ...additionalArguments);
19
- }
20
- else if (config.client instanceof Macie2Client) {
13
+ if (config.client instanceof Macie2Client) {
21
14
  page = await makePagedClientRequest(config.client, input, ...additionalArguments);
22
15
  }
23
16
  else {
@@ -1,22 +1,15 @@
1
1
  import { ListManagedDataIdentifiersCommand, } from "../commands/ListManagedDataIdentifiersCommand";
2
- import { Macie2 } from "../Macie2";
3
2
  import { Macie2Client } from "../Macie2Client";
4
3
  const makePagedClientRequest = async (client, input, ...args) => {
5
4
  return await client.send(new ListManagedDataIdentifiersCommand(input), ...args);
6
5
  };
7
- const makePagedRequest = async (client, input, ...args) => {
8
- return await client.listManagedDataIdentifiers(input, ...args);
9
- };
10
6
  export async function* paginateListManagedDataIdentifiers(config, input, ...additionalArguments) {
11
7
  let token = config.startingToken || undefined;
12
8
  let hasNext = true;
13
9
  let page;
14
10
  while (hasNext) {
15
11
  input.nextToken = token;
16
- if (config.client instanceof Macie2) {
17
- page = await makePagedRequest(config.client, input, ...additionalArguments);
18
- }
19
- else if (config.client instanceof Macie2Client) {
12
+ if (config.client instanceof Macie2Client) {
20
13
  page = await makePagedClientRequest(config.client, input, ...additionalArguments);
21
14
  }
22
15
  else {
@@ -1,12 +1,8 @@
1
1
  import { ListMembersCommand } from "../commands/ListMembersCommand";
2
- import { Macie2 } from "../Macie2";
3
2
  import { Macie2Client } from "../Macie2Client";
4
3
  const makePagedClientRequest = async (client, input, ...args) => {
5
4
  return await client.send(new ListMembersCommand(input), ...args);
6
5
  };
7
- const makePagedRequest = async (client, input, ...args) => {
8
- return await client.listMembers(input, ...args);
9
- };
10
6
  export async function* paginateListMembers(config, input, ...additionalArguments) {
11
7
  let token = config.startingToken || undefined;
12
8
  let hasNext = true;
@@ -14,10 +10,7 @@ export async function* paginateListMembers(config, input, ...additionalArguments
14
10
  while (hasNext) {
15
11
  input.nextToken = token;
16
12
  input["maxResults"] = config.pageSize;
17
- if (config.client instanceof Macie2) {
18
- page = await makePagedRequest(config.client, input, ...additionalArguments);
19
- }
20
- else if (config.client instanceof Macie2Client) {
13
+ if (config.client instanceof Macie2Client) {
21
14
  page = await makePagedClientRequest(config.client, input, ...additionalArguments);
22
15
  }
23
16
  else {
@@ -1,12 +1,8 @@
1
1
  import { ListOrganizationAdminAccountsCommand, } from "../commands/ListOrganizationAdminAccountsCommand";
2
- import { Macie2 } from "../Macie2";
3
2
  import { Macie2Client } from "../Macie2Client";
4
3
  const makePagedClientRequest = async (client, input, ...args) => {
5
4
  return await client.send(new ListOrganizationAdminAccountsCommand(input), ...args);
6
5
  };
7
- const makePagedRequest = async (client, input, ...args) => {
8
- return await client.listOrganizationAdminAccounts(input, ...args);
9
- };
10
6
  export async function* paginateListOrganizationAdminAccounts(config, input, ...additionalArguments) {
11
7
  let token = config.startingToken || undefined;
12
8
  let hasNext = true;
@@ -14,10 +10,7 @@ export async function* paginateListOrganizationAdminAccounts(config, input, ...a
14
10
  while (hasNext) {
15
11
  input.nextToken = token;
16
12
  input["maxResults"] = config.pageSize;
17
- if (config.client instanceof Macie2) {
18
- page = await makePagedRequest(config.client, input, ...additionalArguments);
19
- }
20
- else if (config.client instanceof Macie2Client) {
13
+ if (config.client instanceof Macie2Client) {
21
14
  page = await makePagedClientRequest(config.client, input, ...additionalArguments);
22
15
  }
23
16
  else {
@@ -1,22 +1,15 @@
1
1
  import { ListResourceProfileArtifactsCommand, } from "../commands/ListResourceProfileArtifactsCommand";
2
- import { Macie2 } from "../Macie2";
3
2
  import { Macie2Client } from "../Macie2Client";
4
3
  const makePagedClientRequest = async (client, input, ...args) => {
5
4
  return await client.send(new ListResourceProfileArtifactsCommand(input), ...args);
6
5
  };
7
- const makePagedRequest = async (client, input, ...args) => {
8
- return await client.listResourceProfileArtifacts(input, ...args);
9
- };
10
6
  export async function* paginateListResourceProfileArtifacts(config, input, ...additionalArguments) {
11
7
  let token = config.startingToken || undefined;
12
8
  let hasNext = true;
13
9
  let page;
14
10
  while (hasNext) {
15
11
  input.nextToken = token;
16
- if (config.client instanceof Macie2) {
17
- page = await makePagedRequest(config.client, input, ...additionalArguments);
18
- }
19
- else if (config.client instanceof Macie2Client) {
12
+ if (config.client instanceof Macie2Client) {
20
13
  page = await makePagedClientRequest(config.client, input, ...additionalArguments);
21
14
  }
22
15
  else {
@@ -1,12 +1,8 @@
1
1
  import { ListResourceProfileDetectionsCommand, } from "../commands/ListResourceProfileDetectionsCommand";
2
- import { Macie2 } from "../Macie2";
3
2
  import { Macie2Client } from "../Macie2Client";
4
3
  const makePagedClientRequest = async (client, input, ...args) => {
5
4
  return await client.send(new ListResourceProfileDetectionsCommand(input), ...args);
6
5
  };
7
- const makePagedRequest = async (client, input, ...args) => {
8
- return await client.listResourceProfileDetections(input, ...args);
9
- };
10
6
  export async function* paginateListResourceProfileDetections(config, input, ...additionalArguments) {
11
7
  let token = config.startingToken || undefined;
12
8
  let hasNext = true;
@@ -14,10 +10,7 @@ export async function* paginateListResourceProfileDetections(config, input, ...a
14
10
  while (hasNext) {
15
11
  input.nextToken = token;
16
12
  input["maxResults"] = config.pageSize;
17
- if (config.client instanceof Macie2) {
18
- page = await makePagedRequest(config.client, input, ...additionalArguments);
19
- }
20
- else if (config.client instanceof Macie2Client) {
13
+ if (config.client instanceof Macie2Client) {
21
14
  page = await makePagedClientRequest(config.client, input, ...additionalArguments);
22
15
  }
23
16
  else {
@@ -1,12 +1,8 @@
1
1
  import { ListSensitivityInspectionTemplatesCommand, } from "../commands/ListSensitivityInspectionTemplatesCommand";
2
- import { Macie2 } from "../Macie2";
3
2
  import { Macie2Client } from "../Macie2Client";
4
3
  const makePagedClientRequest = async (client, input, ...args) => {
5
4
  return await client.send(new ListSensitivityInspectionTemplatesCommand(input), ...args);
6
5
  };
7
- const makePagedRequest = async (client, input, ...args) => {
8
- return await client.listSensitivityInspectionTemplates(input, ...args);
9
- };
10
6
  export async function* paginateListSensitivityInspectionTemplates(config, input, ...additionalArguments) {
11
7
  let token = config.startingToken || undefined;
12
8
  let hasNext = true;
@@ -14,10 +10,7 @@ export async function* paginateListSensitivityInspectionTemplates(config, input,
14
10
  while (hasNext) {
15
11
  input.nextToken = token;
16
12
  input["maxResults"] = config.pageSize;
17
- if (config.client instanceof Macie2) {
18
- page = await makePagedRequest(config.client, input, ...additionalArguments);
19
- }
20
- else if (config.client instanceof Macie2Client) {
13
+ if (config.client instanceof Macie2Client) {
21
14
  page = await makePagedClientRequest(config.client, input, ...additionalArguments);
22
15
  }
23
16
  else {
@@ -1,12 +1,8 @@
1
1
  import { SearchResourcesCommand, } from "../commands/SearchResourcesCommand";
2
- import { Macie2 } from "../Macie2";
3
2
  import { Macie2Client } from "../Macie2Client";
4
3
  const makePagedClientRequest = async (client, input, ...args) => {
5
4
  return await client.send(new SearchResourcesCommand(input), ...args);
6
5
  };
7
- const makePagedRequest = async (client, input, ...args) => {
8
- return await client.searchResources(input, ...args);
9
- };
10
6
  export async function* paginateSearchResources(config, input, ...additionalArguments) {
11
7
  let token = config.startingToken || undefined;
12
8
  let hasNext = true;
@@ -14,10 +10,7 @@ export async function* paginateSearchResources(config, input, ...additionalArgum
14
10
  while (hasNext) {
15
11
  input.nextToken = token;
16
12
  input["maxResults"] = config.pageSize;
17
- if (config.client instanceof Macie2) {
18
- page = await makePagedRequest(config.client, input, ...additionalArguments);
19
- }
20
- else if (config.client instanceof Macie2Client) {
13
+ if (config.client instanceof Macie2Client) {
21
14
  page = await makePagedClientRequest(config.client, input, ...additionalArguments);
22
15
  }
23
16
  else {
@@ -131,7 +131,7 @@ export interface ObjectCountByEncryptionType {
131
131
  */
132
132
  s3Managed?: number;
133
133
  /**
134
- * <p>The total number of objects that aren't encrypted or use client-side encryption.</p>
134
+ * <p>The total number of objects that use client-side encryption or aren't encrypted.</p>
135
135
  */
136
136
  unencrypted?: number;
137
137
  /**
@@ -270,11 +270,11 @@ export declare enum Type {
270
270
  */
271
271
  export interface BucketServerSideEncryption {
272
272
  /**
273
- * <p>The Amazon Resource Name (ARN) or unique identifier (key ID) for the KMS key that's used by default to encrypt objects that are added to the bucket. This value is null if the bucket uses an Amazon S3 managed key to encrypt new objects or the bucket doesn't encrypt new objects by default.</p>
273
+ * <p>The Amazon Resource Name (ARN) or unique identifier (key ID) for the KMS key that's used by default to encrypt objects that are added to the bucket. This value is null if the bucket is configured to use an Amazon S3 managed key to encrypt new objects.</p>
274
274
  */
275
275
  kmsMasterKeyId?: string;
276
276
  /**
277
- * <p>The type of server-side encryption that's used by default when storing new objects in the bucket. Possible values are:</p> <ul><li><p>AES256 - New objects are encrypted with an Amazon S3 managed key. They use SSE-S3 encryption.</p></li> <li><p>aws:kms - New objects are encrypted with an KMS key (kmsMasterKeyId), either an Amazon Web Services managed key or a customer managed key. They use SSE-KMS encryption.</p></li> <li><p>NONE - New objects aren't encrypted by default. Default encryption is disabled for the bucket.</p></li></ul>
277
+ * <p>The server-side encryption algorithm that's used by default to encrypt objects that are added to the bucket. Possible values are:</p> <ul><li><p>AES256 - New objects are encrypted with an Amazon S3 managed key. They use SSE-S3 encryption.</p></li> <li><p>aws:kms - New objects are encrypted with an KMS key (kmsMasterKeyId), either an Amazon Web Services managed key or a customer managed key. They use SSE-KMS encryption.</p></li> <li><p>NONE - The bucket's default encryption settings don't specify server-side encryption behavior for new objects.</p></li></ul>
278
278
  */
279
279
  type?: Type | string;
280
280
  }
@@ -323,7 +323,7 @@ export interface BucketMetadata {
323
323
  */
324
324
  accountId?: string;
325
325
  /**
326
- * <p>Specifies whether the bucket policy for the bucket requires server-side encryption of objects when objects are uploaded to the bucket. Possible values are:</p> <ul><li><p>FALSE - The bucket policy requires server-side encryption of new objects. PutObject requests must include a valid server-side encryption header.</p></li> <li><p>TRUE - The bucket doesn't have a bucket policy or it has a bucket policy that doesn't require server-side encryption of new objects. If a bucket policy exists, it doesn't require PutObject requests to include a valid server-side encryption header.</p></li> <li><p>UNKNOWN - Amazon Macie can't determine whether the bucket policy requires server-side encryption of new objects.</p></li></ul> <p>Valid server-side encryption headers are: x-amz-server-side-encryption with a value of AES256 or aws:kms, and x-amz-server-side-encryption-customer-algorithm with a value of AES256.</p>
326
+ * <p>Specifies whether the bucket policy for the bucket requires server-side encryption of objects when objects are added to the bucket. Possible values are:</p> <ul><li><p>FALSE - The bucket policy requires server-side encryption of new objects. PutObject requests must include a valid server-side encryption header.</p></li> <li><p>TRUE - The bucket doesn't have a bucket policy or it has a bucket policy that doesn't require server-side encryption of new objects. If a bucket policy exists, it doesn't require PutObject requests to include a valid server-side encryption header.</p></li> <li><p>UNKNOWN - Amazon Macie can't determine whether the bucket policy requires server-side encryption of new objects.</p></li></ul> <p>Valid server-side encryption headers are: x-amz-server-side-encryption with a value of AES256 or aws:kms, and x-amz-server-side-encryption-customer-algorithm with a value of AES256.</p>
327
327
  */
328
328
  allowsUnencryptedObjectUploads?: AllowsUnencryptedObjectUploads | string;
329
329
  /**
@@ -391,11 +391,11 @@ export interface BucketMetadata {
391
391
  */
392
392
  sensitivityScore?: number;
393
393
  /**
394
- * <p>Specifies whether the bucket encrypts new objects by default and, if so, the type of server-side encryption that's used.</p>
394
+ * <p>The default server-side encryption settings for the bucket.</p>
395
395
  */
396
396
  serverSideEncryption?: BucketServerSideEncryption;
397
397
  /**
398
- * <p>Specifies whether the bucket is shared with another Amazon Web Services account, an Amazon CloudFront origin access identity (OAI), or a CloudFront origin access control (OAC). Possible values are:</p> <ul><li><p>EXTERNAL - The bucket is shared with one or more of the following or any combination of the following: an Amazon Web Services account that isn't part of your Amazon Macie organization, a CloudFront OAI, or a CloudFront OAC.</p></li> <li><p>INTERNAL - The bucket is shared with one or more Amazon Web Services accounts that are part of your Amazon Macie organization. It isn't shared with a CloudFront OAI or OAC.</p></li> <li><p>NOT_SHARED - The bucket isn't shared with another Amazon Web Services account, a CloudFront OAI, or a CloudFront OAC.</p></li> <li><p>UNKNOWN - Amazon Macie wasn't able to evaluate the shared access settings for the bucket.</p></li></ul> <p>An <i>Amazon Macie organization</i> is a set of Macie accounts that are centrally managed as a group of related accounts through Organizations or by Macie invitation.</p>
398
+ * <p>Specifies whether the bucket is shared with another Amazon Web Services account, an Amazon CloudFront origin access identity (OAI), or a CloudFront origin access control (OAC). Possible values are:</p> <ul><li><p>EXTERNAL - The bucket is shared with one or more of the following or any combination of the following: a CloudFront OAI, a CloudFront OAC, or an Amazon Web Services account that isn't part of your Amazon Macie organization.</p></li> <li><p>INTERNAL - The bucket is shared with one or more Amazon Web Services accounts that are part of your Amazon Macie organization. It isn't shared with a CloudFront OAI or OAC.</p></li> <li><p>NOT_SHARED - The bucket isn't shared with another Amazon Web Services account, a CloudFront OAI, or a CloudFront OAC.</p></li> <li><p>UNKNOWN - Amazon Macie wasn't able to evaluate the shared access settings for the bucket.</p></li></ul> <p>An <i>Amazon Macie organization</i> is a set of Macie accounts that are centrally managed as a group of related accounts through Organizations or by Macie invitation.</p>
399
399
  */
400
400
  sharedAccess?: SharedAccess | string;
401
401
  /**
@@ -1084,7 +1084,7 @@ export interface IamUser {
1084
1084
  */
1085
1085
  principalId?: string;
1086
1086
  /**
1087
- * <p>The user name of the IAM user who performed the action.</p>
1087
+ * <p>The username of the IAM user who performed the action.</p>
1088
1088
  */
1089
1089
  userName?: string;
1090
1090
  }
@@ -1183,11 +1183,11 @@ export declare enum EncryptionType {
1183
1183
  aws_kms = "aws:kms"
1184
1184
  }
1185
1185
  /**
1186
- * <p>Provides information about the server-side encryption settings for an S3 bucket or S3 object.</p>
1186
+ * <p>Provides information about the default server-side encryption settings for an S3 bucket or the encryption settings for an S3 object.</p>
1187
1187
  */
1188
1188
  export interface ServerSideEncryption {
1189
1189
  /**
1190
- * <p>The server-side encryption algorithm that's used when storing data in the bucket or object. If default encryption is disabled for the bucket or the object isn't encrypted using server-side encryption, this value is NONE.</p>
1190
+ * <p>The server-side encryption algorithm that's used when storing data in the bucket or object. If default encryption settings aren't configured for the bucket or the object isn't encrypted using server-side encryption, this value is NONE.</p>
1191
1191
  */
1192
1192
  encryptionType?: EncryptionType | string;
1193
1193
  /**
@@ -1213,7 +1213,7 @@ export interface S3BucketOwner {
1213
1213
  */
1214
1214
  export interface S3Bucket {
1215
1215
  /**
1216
- * <p>Specifies whether the bucket policy for the bucket requires server-side encryption of objects when objects are uploaded to the bucket. Possible values are:</p> <ul><li><p>FALSE - The bucket policy requires server-side encryption of new objects. PutObject requests must include a valid server-side encryption header.</p></li> <li><p>TRUE - The bucket doesn't have a bucket policy or it has a bucket policy that doesn't require server-side encryption of new objects. If a bucket policy exists, it doesn't require PutObject requests to include a valid server-side encryption header.</p></li> <li><p>UNKNOWN - Amazon Macie can't determine whether the bucket policy requires server-side encryption of new objects.</p></li></ul> <p>Valid server-side encryption headers are: x-amz-server-side-encryption with a value of AES256 or aws:kms, and x-amz-server-side-encryption-customer-algorithm with a value of AES256.</p>
1216
+ * <p>Specifies whether the bucket policy for the bucket requires server-side encryption of objects when objects are added to the bucket. Possible values are:</p> <ul><li><p>FALSE - The bucket policy requires server-side encryption of new objects. PutObject requests must include a valid server-side encryption header.</p></li> <li><p>TRUE - The bucket doesn't have a bucket policy or it has a bucket policy that doesn't require server-side encryption of new objects. If a bucket policy exists, it doesn't require PutObject requests to include a valid server-side encryption header.</p></li> <li><p>UNKNOWN - Amazon Macie can't determine whether the bucket policy requires server-side encryption of new objects.</p></li></ul> <p>Valid server-side encryption headers are: x-amz-server-side-encryption with a value of AES256 or aws:kms, and x-amz-server-side-encryption-customer-algorithm with a value of AES256.</p>
1217
1217
  */
1218
1218
  allowsUnencryptedObjectUploads?: AllowsUnencryptedObjectUploads | string;
1219
1219
  /**
@@ -1225,7 +1225,7 @@ export interface S3Bucket {
1225
1225
  */
1226
1226
  createdAt?: Date;
1227
1227
  /**
1228
- * <p>The type of server-side encryption that's used by default to encrypt objects in the bucket.</p>
1228
+ * <p>The default server-side encryption settings for the bucket.</p>
1229
1229
  */
1230
1230
  defaultServerSideEncryption?: ServerSideEncryption;
1231
1231
  /**
@@ -1289,7 +1289,7 @@ export interface S3Object {
1289
1289
  */
1290
1290
  publicAccess?: boolean;
1291
1291
  /**
1292
- * <p>The type of server-side encryption that's used to encrypt the object.</p>
1292
+ * <p>The type of server-side encryption that was used to encrypt the object.</p>
1293
1293
  */
1294
1294
  serverSideEncryption?: ServerSideEncryption;
1295
1295
  /**
@@ -1935,11 +1935,11 @@ export interface SearchResourcesCriteria {
1935
1935
  */
1936
1936
  export interface SensitivityInspectionTemplatesEntry {
1937
1937
  /**
1938
- * <p>The unique identifier for the sensitivity inspection template for the account.</p>
1938
+ * <p>The unique identifier for the sensitivity inspection template.</p>
1939
1939
  */
1940
1940
  id?: string;
1941
1941
  /**
1942
- * <p>The name of the sensitivity inspection template for the account: automated-sensitive-data-discovery.</p>
1942
+ * <p>The name of the sensitivity inspection template: automated-sensitive-data-discovery.</p>
1943
1943
  */
1944
1944
  name?: string;
1945
1945
  }
@@ -2305,19 +2305,19 @@ export interface BucketCountByEffectivePermission {
2305
2305
  unknown?: number;
2306
2306
  }
2307
2307
  /**
2308
- * <p>Provides information about the number of S3 buckets that use certain types of server-side encryption by default or don't encrypt new objects by default. For detailed information about these settings, see <a href="https://docs.aws.amazon.com/AmazonS3/latest/userguide/bucket-encryption.html">Setting default server-side encryption behavior for Amazon S3 buckets</a> in the <i>Amazon Simple Storage Service User Guide</i>.</p>
2308
+ * <p>Provides information about the number of S3 buckets whose settings do or don't specify default server-side encryption behavior for objects that are added to the buckets. For detailed information about these settings, see <a href="https://docs.aws.amazon.com/AmazonS3/latest/userguide/bucket-encryption.html">Setting default server-side encryption behavior for Amazon S3 buckets</a> in the <i>Amazon Simple Storage Service User Guide</i>.</p>
2309
2309
  */
2310
2310
  export interface BucketCountByEncryptionType {
2311
2311
  /**
2312
- * <p>The total number of buckets that use an KMS key to encrypt new objects by default, either an Amazon Web Services managed key or a customer managed key. These buckets use KMS encryption (SSE-KMS) by default.</p>
2312
+ * <p>The total number of buckets whose default encryption settings are configured to encrypt new objects with an Amazon Web Services managed KMS key or a customer managed KMS key. By default, these buckets encrypt new objects automatically using SSE-KMS encryption.</p>
2313
2313
  */
2314
2314
  kmsManaged?: number;
2315
2315
  /**
2316
- * <p>The total number of buckets that use an Amazon S3 managed key to encrypt new objects by default. These buckets use Amazon S3 managed encryption (SSE-S3) by default.</p>
2316
+ * <p>The total number of buckets whose default encryption settings are configured to encrypt new objects with an Amazon S3 managed key. By default, these buckets encrypt new objects automatically using SSE-S3 encryption.</p>
2317
2317
  */
2318
2318
  s3Managed?: number;
2319
2319
  /**
2320
- * <p>The total number of buckets that don't encrypt new objects by default. Default encryption is disabled for these buckets.</p>
2320
+ * <p>The total number of buckets that don't specify default server-side encryption behavior for new objects. Default encryption settings aren't configured for these buckets.</p>
2321
2321
  */
2322
2322
  unencrypted?: number;
2323
2323
  /**
@@ -2330,7 +2330,7 @@ export interface BucketCountByEncryptionType {
2330
2330
  */
2331
2331
  export interface BucketCountBySharedAccessType {
2332
2332
  /**
2333
- * <p>The total number of buckets that are shared with one or more of the following or any combination of the following: an Amazon Web Services account that isn't in the same Amazon Macie organization, an Amazon CloudFront OAI, or a CloudFront OAC.</p>
2333
+ * <p>The total number of buckets that are shared with one or more of the following or any combination of the following: an Amazon CloudFront OAI, a CloudFront OAC, or an Amazon Web Services account that isn't in the same Amazon Macie organization.</p>
2334
2334
  */
2335
2335
  external?: number;
2336
2336
  /**
@@ -2347,7 +2347,7 @@ export interface BucketCountBySharedAccessType {
2347
2347
  unknown?: number;
2348
2348
  }
2349
2349
  /**
2350
- * <p>Provides information about the number of S3 buckets whose bucket policies do or don't require server-side encryption of objects when objects are uploaded to the buckets.</p>
2350
+ * <p>Provides information about the number of S3 buckets whose bucket policies do or don't require server-side encryption of objects when objects are added to the buckets.</p>
2351
2351
  */
2352
2352
  export interface BucketCountPolicyAllowsUnencryptedObjectUploads {
2353
2353
  /**
@@ -3247,11 +3247,11 @@ export interface GetBucketStatisticsResponse {
3247
3247
  */
3248
3248
  bucketCountByEffectivePermission?: BucketCountByEffectivePermission;
3249
3249
  /**
3250
- * <p>The total number of buckets that use certain types of server-side encryption to encrypt new objects by default. This object also reports the total number of buckets that don't encrypt new objects by default.</p>
3250
+ * <p>The total number of buckets whose settings do or don't specify default server-side encryption behavior for objects that are added to the buckets.</p>
3251
3251
  */
3252
3252
  bucketCountByEncryptionType?: BucketCountByEncryptionType;
3253
3253
  /**
3254
- * <p>The total number of buckets whose bucket policies do or don't require server-side encryption of objects when objects are uploaded to the buckets.</p>
3254
+ * <p>The total number of buckets whose bucket policies do or don't require server-side encryption of objects when objects are added to the buckets.</p>
3255
3255
  */
3256
3256
  bucketCountByObjectEncryptionRequirement?: BucketCountPolicyAllowsUnencryptedObjectUploads;
3257
3257
  /**
@@ -1,6 +1,5 @@
1
1
  import { PaginationConfiguration } from "@aws-sdk/types";
2
- import { Macie2 } from "../Macie2";
3
2
  import { Macie2Client } from "../Macie2Client";
4
3
  export interface Macie2PaginationConfiguration extends PaginationConfiguration {
5
- client: Macie2 | Macie2Client;
4
+ client: Macie2Client;
6
5
  }
@@ -1,6 +1,5 @@
1
1
  import { PaginationConfiguration } from "@aws-sdk/types";
2
- import { Macie2 } from "../Macie2";
3
2
  import { Macie2Client } from "../Macie2Client";
4
3
  export interface Macie2PaginationConfiguration extends PaginationConfiguration {
5
- client: Macie2 | Macie2Client;
4
+ client: Macie2Client;
6
5
  }
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@aws-sdk/client-macie2",
3
3
  "description": "AWS SDK for JavaScript Macie2 Client for Node.js, Browser and React Native",
4
- "version": "3.282.0",
4
+ "version": "3.287.0",
5
5
  "scripts": {
6
6
  "build": "concurrently 'yarn:build:cjs' 'yarn:build:es' 'yarn:build:types'",
7
7
  "build:cjs": "tsc -p tsconfig.cjs.json",
@@ -20,23 +20,23 @@
20
20
  "dependencies": {
21
21
  "@aws-crypto/sha256-browser": "3.0.0",
22
22
  "@aws-crypto/sha256-js": "3.0.0",
23
- "@aws-sdk/client-sts": "3.282.0",
24
- "@aws-sdk/config-resolver": "3.282.0",
25
- "@aws-sdk/credential-provider-node": "3.282.0",
23
+ "@aws-sdk/client-sts": "3.287.0",
24
+ "@aws-sdk/config-resolver": "3.287.0",
25
+ "@aws-sdk/credential-provider-node": "3.287.0",
26
26
  "@aws-sdk/fetch-http-handler": "3.282.0",
27
27
  "@aws-sdk/hash-node": "3.272.0",
28
28
  "@aws-sdk/invalid-dependency": "3.272.0",
29
29
  "@aws-sdk/middleware-content-length": "3.282.0",
30
30
  "@aws-sdk/middleware-endpoint": "3.282.0",
31
31
  "@aws-sdk/middleware-host-header": "3.282.0",
32
- "@aws-sdk/middleware-logger": "3.272.0",
32
+ "@aws-sdk/middleware-logger": "3.287.0",
33
33
  "@aws-sdk/middleware-recursion-detection": "3.282.0",
34
- "@aws-sdk/middleware-retry": "3.282.0",
34
+ "@aws-sdk/middleware-retry": "3.287.0",
35
35
  "@aws-sdk/middleware-serde": "3.272.0",
36
36
  "@aws-sdk/middleware-signing": "3.282.0",
37
37
  "@aws-sdk/middleware-stack": "3.272.0",
38
38
  "@aws-sdk/middleware-user-agent": "3.282.0",
39
- "@aws-sdk/node-config-provider": "3.272.0",
39
+ "@aws-sdk/node-config-provider": "3.287.0",
40
40
  "@aws-sdk/node-http-handler": "3.282.0",
41
41
  "@aws-sdk/protocol-http": "3.282.0",
42
42
  "@aws-sdk/smithy-client": "3.279.0",
@@ -46,11 +46,11 @@
46
46
  "@aws-sdk/util-body-length-browser": "3.188.0",
47
47
  "@aws-sdk/util-body-length-node": "3.208.0",
48
48
  "@aws-sdk/util-defaults-mode-browser": "3.279.0",
49
- "@aws-sdk/util-defaults-mode-node": "3.282.0",
49
+ "@aws-sdk/util-defaults-mode-node": "3.287.0",
50
50
  "@aws-sdk/util-endpoints": "3.272.0",
51
51
  "@aws-sdk/util-retry": "3.272.0",
52
52
  "@aws-sdk/util-user-agent-browser": "3.282.0",
53
- "@aws-sdk/util-user-agent-node": "3.282.0",
53
+ "@aws-sdk/util-user-agent-node": "3.287.0",
54
54
  "@aws-sdk/util-utf8": "3.254.0",
55
55
  "@aws-sdk/util-waiter": "3.272.0",
56
56
  "tslib": "^2.3.1",