@aws-sdk/client-backup 3.281.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 (37) hide show
  1. package/dist-cjs/pagination/ListBackupJobsPaginator.js +1 -8
  2. package/dist-cjs/pagination/ListBackupPlanTemplatesPaginator.js +1 -8
  3. package/dist-cjs/pagination/ListBackupPlanVersionsPaginator.js +1 -8
  4. package/dist-cjs/pagination/ListBackupPlansPaginator.js +1 -8
  5. package/dist-cjs/pagination/ListBackupSelectionsPaginator.js +1 -8
  6. package/dist-cjs/pagination/ListBackupVaultsPaginator.js +1 -8
  7. package/dist-cjs/pagination/ListCopyJobsPaginator.js +1 -8
  8. package/dist-cjs/pagination/ListFrameworksPaginator.js +1 -8
  9. package/dist-cjs/pagination/ListLegalHoldsPaginator.js +1 -8
  10. package/dist-cjs/pagination/ListProtectedResourcesPaginator.js +1 -8
  11. package/dist-cjs/pagination/ListRecoveryPointsByBackupVaultPaginator.js +1 -8
  12. package/dist-cjs/pagination/ListRecoveryPointsByLegalHoldPaginator.js +1 -8
  13. package/dist-cjs/pagination/ListRecoveryPointsByResourcePaginator.js +1 -8
  14. package/dist-cjs/pagination/ListReportJobsPaginator.js +1 -8
  15. package/dist-cjs/pagination/ListReportPlansPaginator.js +1 -8
  16. package/dist-cjs/pagination/ListRestoreJobsPaginator.js +1 -8
  17. package/dist-cjs/pagination/ListTagsPaginator.js +1 -8
  18. package/dist-es/pagination/ListBackupJobsPaginator.js +1 -8
  19. package/dist-es/pagination/ListBackupPlanTemplatesPaginator.js +1 -8
  20. package/dist-es/pagination/ListBackupPlanVersionsPaginator.js +1 -8
  21. package/dist-es/pagination/ListBackupPlansPaginator.js +1 -8
  22. package/dist-es/pagination/ListBackupSelectionsPaginator.js +1 -8
  23. package/dist-es/pagination/ListBackupVaultsPaginator.js +1 -8
  24. package/dist-es/pagination/ListCopyJobsPaginator.js +1 -8
  25. package/dist-es/pagination/ListFrameworksPaginator.js +1 -8
  26. package/dist-es/pagination/ListLegalHoldsPaginator.js +1 -8
  27. package/dist-es/pagination/ListProtectedResourcesPaginator.js +1 -8
  28. package/dist-es/pagination/ListRecoveryPointsByBackupVaultPaginator.js +1 -8
  29. package/dist-es/pagination/ListRecoveryPointsByLegalHoldPaginator.js +1 -8
  30. package/dist-es/pagination/ListRecoveryPointsByResourcePaginator.js +1 -8
  31. package/dist-es/pagination/ListReportJobsPaginator.js +1 -8
  32. package/dist-es/pagination/ListReportPlansPaginator.js +1 -8
  33. package/dist-es/pagination/ListRestoreJobsPaginator.js +1 -8
  34. package/dist-es/pagination/ListTagsPaginator.js +1 -8
  35. package/dist-types/pagination/Interfaces.d.ts +1 -2
  36. package/dist-types/ts3.4/pagination/Interfaces.d.ts +1 -2
  37. package/package.json +19 -19
@@ -1,15 +1,11 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
3
  exports.paginateListBackupJobs = void 0;
4
- const Backup_1 = require("../Backup");
5
4
  const BackupClient_1 = require("../BackupClient");
6
5
  const ListBackupJobsCommand_1 = require("../commands/ListBackupJobsCommand");
7
6
  const makePagedClientRequest = async (client, input, ...args) => {
8
7
  return await client.send(new ListBackupJobsCommand_1.ListBackupJobsCommand(input), ...args);
9
8
  };
10
- const makePagedRequest = async (client, input, ...args) => {
11
- return await client.listBackupJobs(input, ...args);
12
- };
13
9
  async function* paginateListBackupJobs(config, input, ...additionalArguments) {
14
10
  let token = config.startingToken || undefined;
15
11
  let hasNext = true;
@@ -17,10 +13,7 @@ async function* paginateListBackupJobs(config, input, ...additionalArguments) {
17
13
  while (hasNext) {
18
14
  input.NextToken = token;
19
15
  input["MaxResults"] = config.pageSize;
20
- if (config.client instanceof Backup_1.Backup) {
21
- page = await makePagedRequest(config.client, input, ...additionalArguments);
22
- }
23
- else if (config.client instanceof BackupClient_1.BackupClient) {
16
+ if (config.client instanceof BackupClient_1.BackupClient) {
24
17
  page = await makePagedClientRequest(config.client, input, ...additionalArguments);
25
18
  }
26
19
  else {
@@ -1,15 +1,11 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
3
  exports.paginateListBackupPlanTemplates = void 0;
4
- const Backup_1 = require("../Backup");
5
4
  const BackupClient_1 = require("../BackupClient");
6
5
  const ListBackupPlanTemplatesCommand_1 = require("../commands/ListBackupPlanTemplatesCommand");
7
6
  const makePagedClientRequest = async (client, input, ...args) => {
8
7
  return await client.send(new ListBackupPlanTemplatesCommand_1.ListBackupPlanTemplatesCommand(input), ...args);
9
8
  };
10
- const makePagedRequest = async (client, input, ...args) => {
11
- return await client.listBackupPlanTemplates(input, ...args);
12
- };
13
9
  async function* paginateListBackupPlanTemplates(config, input, ...additionalArguments) {
14
10
  let token = config.startingToken || undefined;
15
11
  let hasNext = true;
@@ -17,10 +13,7 @@ async function* paginateListBackupPlanTemplates(config, input, ...additionalArgu
17
13
  while (hasNext) {
18
14
  input.NextToken = token;
19
15
  input["MaxResults"] = config.pageSize;
20
- if (config.client instanceof Backup_1.Backup) {
21
- page = await makePagedRequest(config.client, input, ...additionalArguments);
22
- }
23
- else if (config.client instanceof BackupClient_1.BackupClient) {
16
+ if (config.client instanceof BackupClient_1.BackupClient) {
24
17
  page = await makePagedClientRequest(config.client, input, ...additionalArguments);
25
18
  }
26
19
  else {
@@ -1,15 +1,11 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
3
  exports.paginateListBackupPlanVersions = void 0;
4
- const Backup_1 = require("../Backup");
5
4
  const BackupClient_1 = require("../BackupClient");
6
5
  const ListBackupPlanVersionsCommand_1 = require("../commands/ListBackupPlanVersionsCommand");
7
6
  const makePagedClientRequest = async (client, input, ...args) => {
8
7
  return await client.send(new ListBackupPlanVersionsCommand_1.ListBackupPlanVersionsCommand(input), ...args);
9
8
  };
10
- const makePagedRequest = async (client, input, ...args) => {
11
- return await client.listBackupPlanVersions(input, ...args);
12
- };
13
9
  async function* paginateListBackupPlanVersions(config, input, ...additionalArguments) {
14
10
  let token = config.startingToken || undefined;
15
11
  let hasNext = true;
@@ -17,10 +13,7 @@ async function* paginateListBackupPlanVersions(config, input, ...additionalArgum
17
13
  while (hasNext) {
18
14
  input.NextToken = token;
19
15
  input["MaxResults"] = config.pageSize;
20
- if (config.client instanceof Backup_1.Backup) {
21
- page = await makePagedRequest(config.client, input, ...additionalArguments);
22
- }
23
- else if (config.client instanceof BackupClient_1.BackupClient) {
16
+ if (config.client instanceof BackupClient_1.BackupClient) {
24
17
  page = await makePagedClientRequest(config.client, input, ...additionalArguments);
25
18
  }
26
19
  else {
@@ -1,15 +1,11 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
3
  exports.paginateListBackupPlans = void 0;
4
- const Backup_1 = require("../Backup");
5
4
  const BackupClient_1 = require("../BackupClient");
6
5
  const ListBackupPlansCommand_1 = require("../commands/ListBackupPlansCommand");
7
6
  const makePagedClientRequest = async (client, input, ...args) => {
8
7
  return await client.send(new ListBackupPlansCommand_1.ListBackupPlansCommand(input), ...args);
9
8
  };
10
- const makePagedRequest = async (client, input, ...args) => {
11
- return await client.listBackupPlans(input, ...args);
12
- };
13
9
  async function* paginateListBackupPlans(config, input, ...additionalArguments) {
14
10
  let token = config.startingToken || undefined;
15
11
  let hasNext = true;
@@ -17,10 +13,7 @@ async function* paginateListBackupPlans(config, input, ...additionalArguments) {
17
13
  while (hasNext) {
18
14
  input.NextToken = token;
19
15
  input["MaxResults"] = config.pageSize;
20
- if (config.client instanceof Backup_1.Backup) {
21
- page = await makePagedRequest(config.client, input, ...additionalArguments);
22
- }
23
- else if (config.client instanceof BackupClient_1.BackupClient) {
16
+ if (config.client instanceof BackupClient_1.BackupClient) {
24
17
  page = await makePagedClientRequest(config.client, input, ...additionalArguments);
25
18
  }
26
19
  else {
@@ -1,15 +1,11 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
3
  exports.paginateListBackupSelections = void 0;
4
- const Backup_1 = require("../Backup");
5
4
  const BackupClient_1 = require("../BackupClient");
6
5
  const ListBackupSelectionsCommand_1 = require("../commands/ListBackupSelectionsCommand");
7
6
  const makePagedClientRequest = async (client, input, ...args) => {
8
7
  return await client.send(new ListBackupSelectionsCommand_1.ListBackupSelectionsCommand(input), ...args);
9
8
  };
10
- const makePagedRequest = async (client, input, ...args) => {
11
- return await client.listBackupSelections(input, ...args);
12
- };
13
9
  async function* paginateListBackupSelections(config, input, ...additionalArguments) {
14
10
  let token = config.startingToken || undefined;
15
11
  let hasNext = true;
@@ -17,10 +13,7 @@ async function* paginateListBackupSelections(config, input, ...additionalArgumen
17
13
  while (hasNext) {
18
14
  input.NextToken = token;
19
15
  input["MaxResults"] = config.pageSize;
20
- if (config.client instanceof Backup_1.Backup) {
21
- page = await makePagedRequest(config.client, input, ...additionalArguments);
22
- }
23
- else if (config.client instanceof BackupClient_1.BackupClient) {
16
+ if (config.client instanceof BackupClient_1.BackupClient) {
24
17
  page = await makePagedClientRequest(config.client, input, ...additionalArguments);
25
18
  }
26
19
  else {
@@ -1,15 +1,11 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
3
  exports.paginateListBackupVaults = void 0;
4
- const Backup_1 = require("../Backup");
5
4
  const BackupClient_1 = require("../BackupClient");
6
5
  const ListBackupVaultsCommand_1 = require("../commands/ListBackupVaultsCommand");
7
6
  const makePagedClientRequest = async (client, input, ...args) => {
8
7
  return await client.send(new ListBackupVaultsCommand_1.ListBackupVaultsCommand(input), ...args);
9
8
  };
10
- const makePagedRequest = async (client, input, ...args) => {
11
- return await client.listBackupVaults(input, ...args);
12
- };
13
9
  async function* paginateListBackupVaults(config, input, ...additionalArguments) {
14
10
  let token = config.startingToken || undefined;
15
11
  let hasNext = true;
@@ -17,10 +13,7 @@ async function* paginateListBackupVaults(config, input, ...additionalArguments)
17
13
  while (hasNext) {
18
14
  input.NextToken = token;
19
15
  input["MaxResults"] = config.pageSize;
20
- if (config.client instanceof Backup_1.Backup) {
21
- page = await makePagedRequest(config.client, input, ...additionalArguments);
22
- }
23
- else if (config.client instanceof BackupClient_1.BackupClient) {
16
+ if (config.client instanceof BackupClient_1.BackupClient) {
24
17
  page = await makePagedClientRequest(config.client, input, ...additionalArguments);
25
18
  }
26
19
  else {
@@ -1,15 +1,11 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
3
  exports.paginateListCopyJobs = void 0;
4
- const Backup_1 = require("../Backup");
5
4
  const BackupClient_1 = require("../BackupClient");
6
5
  const ListCopyJobsCommand_1 = require("../commands/ListCopyJobsCommand");
7
6
  const makePagedClientRequest = async (client, input, ...args) => {
8
7
  return await client.send(new ListCopyJobsCommand_1.ListCopyJobsCommand(input), ...args);
9
8
  };
10
- const makePagedRequest = async (client, input, ...args) => {
11
- return await client.listCopyJobs(input, ...args);
12
- };
13
9
  async function* paginateListCopyJobs(config, input, ...additionalArguments) {
14
10
  let token = config.startingToken || undefined;
15
11
  let hasNext = true;
@@ -17,10 +13,7 @@ async function* paginateListCopyJobs(config, input, ...additionalArguments) {
17
13
  while (hasNext) {
18
14
  input.NextToken = token;
19
15
  input["MaxResults"] = config.pageSize;
20
- if (config.client instanceof Backup_1.Backup) {
21
- page = await makePagedRequest(config.client, input, ...additionalArguments);
22
- }
23
- else if (config.client instanceof BackupClient_1.BackupClient) {
16
+ if (config.client instanceof BackupClient_1.BackupClient) {
24
17
  page = await makePagedClientRequest(config.client, input, ...additionalArguments);
25
18
  }
26
19
  else {
@@ -1,15 +1,11 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
3
  exports.paginateListFrameworks = void 0;
4
- const Backup_1 = require("../Backup");
5
4
  const BackupClient_1 = require("../BackupClient");
6
5
  const ListFrameworksCommand_1 = require("../commands/ListFrameworksCommand");
7
6
  const makePagedClientRequest = async (client, input, ...args) => {
8
7
  return await client.send(new ListFrameworksCommand_1.ListFrameworksCommand(input), ...args);
9
8
  };
10
- const makePagedRequest = async (client, input, ...args) => {
11
- return await client.listFrameworks(input, ...args);
12
- };
13
9
  async function* paginateListFrameworks(config, input, ...additionalArguments) {
14
10
  let token = config.startingToken || undefined;
15
11
  let hasNext = true;
@@ -17,10 +13,7 @@ async function* paginateListFrameworks(config, input, ...additionalArguments) {
17
13
  while (hasNext) {
18
14
  input.NextToken = token;
19
15
  input["MaxResults"] = config.pageSize;
20
- if (config.client instanceof Backup_1.Backup) {
21
- page = await makePagedRequest(config.client, input, ...additionalArguments);
22
- }
23
- else if (config.client instanceof BackupClient_1.BackupClient) {
16
+ if (config.client instanceof BackupClient_1.BackupClient) {
24
17
  page = await makePagedClientRequest(config.client, input, ...additionalArguments);
25
18
  }
26
19
  else {
@@ -1,15 +1,11 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
3
  exports.paginateListLegalHolds = void 0;
4
- const Backup_1 = require("../Backup");
5
4
  const BackupClient_1 = require("../BackupClient");
6
5
  const ListLegalHoldsCommand_1 = require("../commands/ListLegalHoldsCommand");
7
6
  const makePagedClientRequest = async (client, input, ...args) => {
8
7
  return await client.send(new ListLegalHoldsCommand_1.ListLegalHoldsCommand(input), ...args);
9
8
  };
10
- const makePagedRequest = async (client, input, ...args) => {
11
- return await client.listLegalHolds(input, ...args);
12
- };
13
9
  async function* paginateListLegalHolds(config, input, ...additionalArguments) {
14
10
  let token = config.startingToken || undefined;
15
11
  let hasNext = true;
@@ -17,10 +13,7 @@ async function* paginateListLegalHolds(config, input, ...additionalArguments) {
17
13
  while (hasNext) {
18
14
  input.NextToken = token;
19
15
  input["MaxResults"] = config.pageSize;
20
- if (config.client instanceof Backup_1.Backup) {
21
- page = await makePagedRequest(config.client, input, ...additionalArguments);
22
- }
23
- else if (config.client instanceof BackupClient_1.BackupClient) {
16
+ if (config.client instanceof BackupClient_1.BackupClient) {
24
17
  page = await makePagedClientRequest(config.client, input, ...additionalArguments);
25
18
  }
26
19
  else {
@@ -1,15 +1,11 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
3
  exports.paginateListProtectedResources = void 0;
4
- const Backup_1 = require("../Backup");
5
4
  const BackupClient_1 = require("../BackupClient");
6
5
  const ListProtectedResourcesCommand_1 = require("../commands/ListProtectedResourcesCommand");
7
6
  const makePagedClientRequest = async (client, input, ...args) => {
8
7
  return await client.send(new ListProtectedResourcesCommand_1.ListProtectedResourcesCommand(input), ...args);
9
8
  };
10
- const makePagedRequest = async (client, input, ...args) => {
11
- return await client.listProtectedResources(input, ...args);
12
- };
13
9
  async function* paginateListProtectedResources(config, input, ...additionalArguments) {
14
10
  let token = config.startingToken || undefined;
15
11
  let hasNext = true;
@@ -17,10 +13,7 @@ async function* paginateListProtectedResources(config, input, ...additionalArgum
17
13
  while (hasNext) {
18
14
  input.NextToken = token;
19
15
  input["MaxResults"] = config.pageSize;
20
- if (config.client instanceof Backup_1.Backup) {
21
- page = await makePagedRequest(config.client, input, ...additionalArguments);
22
- }
23
- else if (config.client instanceof BackupClient_1.BackupClient) {
16
+ if (config.client instanceof BackupClient_1.BackupClient) {
24
17
  page = await makePagedClientRequest(config.client, input, ...additionalArguments);
25
18
  }
26
19
  else {
@@ -1,15 +1,11 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
3
  exports.paginateListRecoveryPointsByBackupVault = void 0;
4
- const Backup_1 = require("../Backup");
5
4
  const BackupClient_1 = require("../BackupClient");
6
5
  const ListRecoveryPointsByBackupVaultCommand_1 = require("../commands/ListRecoveryPointsByBackupVaultCommand");
7
6
  const makePagedClientRequest = async (client, input, ...args) => {
8
7
  return await client.send(new ListRecoveryPointsByBackupVaultCommand_1.ListRecoveryPointsByBackupVaultCommand(input), ...args);
9
8
  };
10
- const makePagedRequest = async (client, input, ...args) => {
11
- return await client.listRecoveryPointsByBackupVault(input, ...args);
12
- };
13
9
  async function* paginateListRecoveryPointsByBackupVault(config, input, ...additionalArguments) {
14
10
  let token = config.startingToken || undefined;
15
11
  let hasNext = true;
@@ -17,10 +13,7 @@ async function* paginateListRecoveryPointsByBackupVault(config, input, ...additi
17
13
  while (hasNext) {
18
14
  input.NextToken = token;
19
15
  input["MaxResults"] = config.pageSize;
20
- if (config.client instanceof Backup_1.Backup) {
21
- page = await makePagedRequest(config.client, input, ...additionalArguments);
22
- }
23
- else if (config.client instanceof BackupClient_1.BackupClient) {
16
+ if (config.client instanceof BackupClient_1.BackupClient) {
24
17
  page = await makePagedClientRequest(config.client, input, ...additionalArguments);
25
18
  }
26
19
  else {
@@ -1,15 +1,11 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
3
  exports.paginateListRecoveryPointsByLegalHold = void 0;
4
- const Backup_1 = require("../Backup");
5
4
  const BackupClient_1 = require("../BackupClient");
6
5
  const ListRecoveryPointsByLegalHoldCommand_1 = require("../commands/ListRecoveryPointsByLegalHoldCommand");
7
6
  const makePagedClientRequest = async (client, input, ...args) => {
8
7
  return await client.send(new ListRecoveryPointsByLegalHoldCommand_1.ListRecoveryPointsByLegalHoldCommand(input), ...args);
9
8
  };
10
- const makePagedRequest = async (client, input, ...args) => {
11
- return await client.listRecoveryPointsByLegalHold(input, ...args);
12
- };
13
9
  async function* paginateListRecoveryPointsByLegalHold(config, input, ...additionalArguments) {
14
10
  let token = config.startingToken || undefined;
15
11
  let hasNext = true;
@@ -17,10 +13,7 @@ async function* paginateListRecoveryPointsByLegalHold(config, input, ...addition
17
13
  while (hasNext) {
18
14
  input.NextToken = token;
19
15
  input["MaxResults"] = config.pageSize;
20
- if (config.client instanceof Backup_1.Backup) {
21
- page = await makePagedRequest(config.client, input, ...additionalArguments);
22
- }
23
- else if (config.client instanceof BackupClient_1.BackupClient) {
16
+ if (config.client instanceof BackupClient_1.BackupClient) {
24
17
  page = await makePagedClientRequest(config.client, input, ...additionalArguments);
25
18
  }
26
19
  else {
@@ -1,15 +1,11 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
3
  exports.paginateListRecoveryPointsByResource = void 0;
4
- const Backup_1 = require("../Backup");
5
4
  const BackupClient_1 = require("../BackupClient");
6
5
  const ListRecoveryPointsByResourceCommand_1 = require("../commands/ListRecoveryPointsByResourceCommand");
7
6
  const makePagedClientRequest = async (client, input, ...args) => {
8
7
  return await client.send(new ListRecoveryPointsByResourceCommand_1.ListRecoveryPointsByResourceCommand(input), ...args);
9
8
  };
10
- const makePagedRequest = async (client, input, ...args) => {
11
- return await client.listRecoveryPointsByResource(input, ...args);
12
- };
13
9
  async function* paginateListRecoveryPointsByResource(config, input, ...additionalArguments) {
14
10
  let token = config.startingToken || undefined;
15
11
  let hasNext = true;
@@ -17,10 +13,7 @@ async function* paginateListRecoveryPointsByResource(config, input, ...additiona
17
13
  while (hasNext) {
18
14
  input.NextToken = token;
19
15
  input["MaxResults"] = config.pageSize;
20
- if (config.client instanceof Backup_1.Backup) {
21
- page = await makePagedRequest(config.client, input, ...additionalArguments);
22
- }
23
- else if (config.client instanceof BackupClient_1.BackupClient) {
16
+ if (config.client instanceof BackupClient_1.BackupClient) {
24
17
  page = await makePagedClientRequest(config.client, input, ...additionalArguments);
25
18
  }
26
19
  else {
@@ -1,15 +1,11 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
3
  exports.paginateListReportJobs = void 0;
4
- const Backup_1 = require("../Backup");
5
4
  const BackupClient_1 = require("../BackupClient");
6
5
  const ListReportJobsCommand_1 = require("../commands/ListReportJobsCommand");
7
6
  const makePagedClientRequest = async (client, input, ...args) => {
8
7
  return await client.send(new ListReportJobsCommand_1.ListReportJobsCommand(input), ...args);
9
8
  };
10
- const makePagedRequest = async (client, input, ...args) => {
11
- return await client.listReportJobs(input, ...args);
12
- };
13
9
  async function* paginateListReportJobs(config, input, ...additionalArguments) {
14
10
  let token = config.startingToken || undefined;
15
11
  let hasNext = true;
@@ -17,10 +13,7 @@ async function* paginateListReportJobs(config, input, ...additionalArguments) {
17
13
  while (hasNext) {
18
14
  input.NextToken = token;
19
15
  input["MaxResults"] = config.pageSize;
20
- if (config.client instanceof Backup_1.Backup) {
21
- page = await makePagedRequest(config.client, input, ...additionalArguments);
22
- }
23
- else if (config.client instanceof BackupClient_1.BackupClient) {
16
+ if (config.client instanceof BackupClient_1.BackupClient) {
24
17
  page = await makePagedClientRequest(config.client, input, ...additionalArguments);
25
18
  }
26
19
  else {
@@ -1,15 +1,11 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
3
  exports.paginateListReportPlans = void 0;
4
- const Backup_1 = require("../Backup");
5
4
  const BackupClient_1 = require("../BackupClient");
6
5
  const ListReportPlansCommand_1 = require("../commands/ListReportPlansCommand");
7
6
  const makePagedClientRequest = async (client, input, ...args) => {
8
7
  return await client.send(new ListReportPlansCommand_1.ListReportPlansCommand(input), ...args);
9
8
  };
10
- const makePagedRequest = async (client, input, ...args) => {
11
- return await client.listReportPlans(input, ...args);
12
- };
13
9
  async function* paginateListReportPlans(config, input, ...additionalArguments) {
14
10
  let token = config.startingToken || undefined;
15
11
  let hasNext = true;
@@ -17,10 +13,7 @@ async function* paginateListReportPlans(config, input, ...additionalArguments) {
17
13
  while (hasNext) {
18
14
  input.NextToken = token;
19
15
  input["MaxResults"] = config.pageSize;
20
- if (config.client instanceof Backup_1.Backup) {
21
- page = await makePagedRequest(config.client, input, ...additionalArguments);
22
- }
23
- else if (config.client instanceof BackupClient_1.BackupClient) {
16
+ if (config.client instanceof BackupClient_1.BackupClient) {
24
17
  page = await makePagedClientRequest(config.client, input, ...additionalArguments);
25
18
  }
26
19
  else {
@@ -1,15 +1,11 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
3
  exports.paginateListRestoreJobs = void 0;
4
- const Backup_1 = require("../Backup");
5
4
  const BackupClient_1 = require("../BackupClient");
6
5
  const ListRestoreJobsCommand_1 = require("../commands/ListRestoreJobsCommand");
7
6
  const makePagedClientRequest = async (client, input, ...args) => {
8
7
  return await client.send(new ListRestoreJobsCommand_1.ListRestoreJobsCommand(input), ...args);
9
8
  };
10
- const makePagedRequest = async (client, input, ...args) => {
11
- return await client.listRestoreJobs(input, ...args);
12
- };
13
9
  async function* paginateListRestoreJobs(config, input, ...additionalArguments) {
14
10
  let token = config.startingToken || undefined;
15
11
  let hasNext = true;
@@ -17,10 +13,7 @@ async function* paginateListRestoreJobs(config, input, ...additionalArguments) {
17
13
  while (hasNext) {
18
14
  input.NextToken = token;
19
15
  input["MaxResults"] = config.pageSize;
20
- if (config.client instanceof Backup_1.Backup) {
21
- page = await makePagedRequest(config.client, input, ...additionalArguments);
22
- }
23
- else if (config.client instanceof BackupClient_1.BackupClient) {
16
+ if (config.client instanceof BackupClient_1.BackupClient) {
24
17
  page = await makePagedClientRequest(config.client, input, ...additionalArguments);
25
18
  }
26
19
  else {
@@ -1,15 +1,11 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
3
  exports.paginateListTags = void 0;
4
- const Backup_1 = require("../Backup");
5
4
  const BackupClient_1 = require("../BackupClient");
6
5
  const ListTagsCommand_1 = require("../commands/ListTagsCommand");
7
6
  const makePagedClientRequest = async (client, input, ...args) => {
8
7
  return await client.send(new ListTagsCommand_1.ListTagsCommand(input), ...args);
9
8
  };
10
- const makePagedRequest = async (client, input, ...args) => {
11
- return await client.listTags(input, ...args);
12
- };
13
9
  async function* paginateListTags(config, input, ...additionalArguments) {
14
10
  let token = config.startingToken || undefined;
15
11
  let hasNext = true;
@@ -17,10 +13,7 @@ async function* paginateListTags(config, input, ...additionalArguments) {
17
13
  while (hasNext) {
18
14
  input.NextToken = token;
19
15
  input["MaxResults"] = config.pageSize;
20
- if (config.client instanceof Backup_1.Backup) {
21
- page = await makePagedRequest(config.client, input, ...additionalArguments);
22
- }
23
- else if (config.client instanceof BackupClient_1.BackupClient) {
16
+ if (config.client instanceof BackupClient_1.BackupClient) {
24
17
  page = await makePagedClientRequest(config.client, input, ...additionalArguments);
25
18
  }
26
19
  else {
@@ -1,12 +1,8 @@
1
- import { Backup } from "../Backup";
2
1
  import { BackupClient } from "../BackupClient";
3
2
  import { ListBackupJobsCommand, } from "../commands/ListBackupJobsCommand";
4
3
  const makePagedClientRequest = async (client, input, ...args) => {
5
4
  return await client.send(new ListBackupJobsCommand(input), ...args);
6
5
  };
7
- const makePagedRequest = async (client, input, ...args) => {
8
- return await client.listBackupJobs(input, ...args);
9
- };
10
6
  export async function* paginateListBackupJobs(config, input, ...additionalArguments) {
11
7
  let token = config.startingToken || undefined;
12
8
  let hasNext = true;
@@ -14,10 +10,7 @@ export async function* paginateListBackupJobs(config, input, ...additionalArgume
14
10
  while (hasNext) {
15
11
  input.NextToken = token;
16
12
  input["MaxResults"] = config.pageSize;
17
- if (config.client instanceof Backup) {
18
- page = await makePagedRequest(config.client, input, ...additionalArguments);
19
- }
20
- else if (config.client instanceof BackupClient) {
13
+ if (config.client instanceof BackupClient) {
21
14
  page = await makePagedClientRequest(config.client, input, ...additionalArguments);
22
15
  }
23
16
  else {
@@ -1,12 +1,8 @@
1
- import { Backup } from "../Backup";
2
1
  import { BackupClient } from "../BackupClient";
3
2
  import { ListBackupPlanTemplatesCommand, } from "../commands/ListBackupPlanTemplatesCommand";
4
3
  const makePagedClientRequest = async (client, input, ...args) => {
5
4
  return await client.send(new ListBackupPlanTemplatesCommand(input), ...args);
6
5
  };
7
- const makePagedRequest = async (client, input, ...args) => {
8
- return await client.listBackupPlanTemplates(input, ...args);
9
- };
10
6
  export async function* paginateListBackupPlanTemplates(config, input, ...additionalArguments) {
11
7
  let token = config.startingToken || undefined;
12
8
  let hasNext = true;
@@ -14,10 +10,7 @@ export async function* paginateListBackupPlanTemplates(config, input, ...additio
14
10
  while (hasNext) {
15
11
  input.NextToken = token;
16
12
  input["MaxResults"] = config.pageSize;
17
- if (config.client instanceof Backup) {
18
- page = await makePagedRequest(config.client, input, ...additionalArguments);
19
- }
20
- else if (config.client instanceof BackupClient) {
13
+ if (config.client instanceof BackupClient) {
21
14
  page = await makePagedClientRequest(config.client, input, ...additionalArguments);
22
15
  }
23
16
  else {
@@ -1,12 +1,8 @@
1
- import { Backup } from "../Backup";
2
1
  import { BackupClient } from "../BackupClient";
3
2
  import { ListBackupPlanVersionsCommand, } from "../commands/ListBackupPlanVersionsCommand";
4
3
  const makePagedClientRequest = async (client, input, ...args) => {
5
4
  return await client.send(new ListBackupPlanVersionsCommand(input), ...args);
6
5
  };
7
- const makePagedRequest = async (client, input, ...args) => {
8
- return await client.listBackupPlanVersions(input, ...args);
9
- };
10
6
  export async function* paginateListBackupPlanVersions(config, input, ...additionalArguments) {
11
7
  let token = config.startingToken || undefined;
12
8
  let hasNext = true;
@@ -14,10 +10,7 @@ export async function* paginateListBackupPlanVersions(config, input, ...addition
14
10
  while (hasNext) {
15
11
  input.NextToken = token;
16
12
  input["MaxResults"] = config.pageSize;
17
- if (config.client instanceof Backup) {
18
- page = await makePagedRequest(config.client, input, ...additionalArguments);
19
- }
20
- else if (config.client instanceof BackupClient) {
13
+ if (config.client instanceof BackupClient) {
21
14
  page = await makePagedClientRequest(config.client, input, ...additionalArguments);
22
15
  }
23
16
  else {
@@ -1,12 +1,8 @@
1
- import { Backup } from "../Backup";
2
1
  import { BackupClient } from "../BackupClient";
3
2
  import { ListBackupPlansCommand, } from "../commands/ListBackupPlansCommand";
4
3
  const makePagedClientRequest = async (client, input, ...args) => {
5
4
  return await client.send(new ListBackupPlansCommand(input), ...args);
6
5
  };
7
- const makePagedRequest = async (client, input, ...args) => {
8
- return await client.listBackupPlans(input, ...args);
9
- };
10
6
  export async function* paginateListBackupPlans(config, input, ...additionalArguments) {
11
7
  let token = config.startingToken || undefined;
12
8
  let hasNext = true;
@@ -14,10 +10,7 @@ export async function* paginateListBackupPlans(config, input, ...additionalArgum
14
10
  while (hasNext) {
15
11
  input.NextToken = token;
16
12
  input["MaxResults"] = config.pageSize;
17
- if (config.client instanceof Backup) {
18
- page = await makePagedRequest(config.client, input, ...additionalArguments);
19
- }
20
- else if (config.client instanceof BackupClient) {
13
+ if (config.client instanceof BackupClient) {
21
14
  page = await makePagedClientRequest(config.client, input, ...additionalArguments);
22
15
  }
23
16
  else {
@@ -1,12 +1,8 @@
1
- import { Backup } from "../Backup";
2
1
  import { BackupClient } from "../BackupClient";
3
2
  import { ListBackupSelectionsCommand, } from "../commands/ListBackupSelectionsCommand";
4
3
  const makePagedClientRequest = async (client, input, ...args) => {
5
4
  return await client.send(new ListBackupSelectionsCommand(input), ...args);
6
5
  };
7
- const makePagedRequest = async (client, input, ...args) => {
8
- return await client.listBackupSelections(input, ...args);
9
- };
10
6
  export async function* paginateListBackupSelections(config, input, ...additionalArguments) {
11
7
  let token = config.startingToken || undefined;
12
8
  let hasNext = true;
@@ -14,10 +10,7 @@ export async function* paginateListBackupSelections(config, input, ...additional
14
10
  while (hasNext) {
15
11
  input.NextToken = token;
16
12
  input["MaxResults"] = config.pageSize;
17
- if (config.client instanceof Backup) {
18
- page = await makePagedRequest(config.client, input, ...additionalArguments);
19
- }
20
- else if (config.client instanceof BackupClient) {
13
+ if (config.client instanceof BackupClient) {
21
14
  page = await makePagedClientRequest(config.client, input, ...additionalArguments);
22
15
  }
23
16
  else {
@@ -1,12 +1,8 @@
1
- import { Backup } from "../Backup";
2
1
  import { BackupClient } from "../BackupClient";
3
2
  import { ListBackupVaultsCommand, } from "../commands/ListBackupVaultsCommand";
4
3
  const makePagedClientRequest = async (client, input, ...args) => {
5
4
  return await client.send(new ListBackupVaultsCommand(input), ...args);
6
5
  };
7
- const makePagedRequest = async (client, input, ...args) => {
8
- return await client.listBackupVaults(input, ...args);
9
- };
10
6
  export async function* paginateListBackupVaults(config, input, ...additionalArguments) {
11
7
  let token = config.startingToken || undefined;
12
8
  let hasNext = true;
@@ -14,10 +10,7 @@ export async function* paginateListBackupVaults(config, input, ...additionalArgu
14
10
  while (hasNext) {
15
11
  input.NextToken = token;
16
12
  input["MaxResults"] = config.pageSize;
17
- if (config.client instanceof Backup) {
18
- page = await makePagedRequest(config.client, input, ...additionalArguments);
19
- }
20
- else if (config.client instanceof BackupClient) {
13
+ if (config.client instanceof BackupClient) {
21
14
  page = await makePagedClientRequest(config.client, input, ...additionalArguments);
22
15
  }
23
16
  else {
@@ -1,12 +1,8 @@
1
- import { Backup } from "../Backup";
2
1
  import { BackupClient } from "../BackupClient";
3
2
  import { ListCopyJobsCommand, } from "../commands/ListCopyJobsCommand";
4
3
  const makePagedClientRequest = async (client, input, ...args) => {
5
4
  return await client.send(new ListCopyJobsCommand(input), ...args);
6
5
  };
7
- const makePagedRequest = async (client, input, ...args) => {
8
- return await client.listCopyJobs(input, ...args);
9
- };
10
6
  export async function* paginateListCopyJobs(config, input, ...additionalArguments) {
11
7
  let token = config.startingToken || undefined;
12
8
  let hasNext = true;
@@ -14,10 +10,7 @@ export async function* paginateListCopyJobs(config, input, ...additionalArgument
14
10
  while (hasNext) {
15
11
  input.NextToken = token;
16
12
  input["MaxResults"] = config.pageSize;
17
- if (config.client instanceof Backup) {
18
- page = await makePagedRequest(config.client, input, ...additionalArguments);
19
- }
20
- else if (config.client instanceof BackupClient) {
13
+ if (config.client instanceof BackupClient) {
21
14
  page = await makePagedClientRequest(config.client, input, ...additionalArguments);
22
15
  }
23
16
  else {
@@ -1,12 +1,8 @@
1
- import { Backup } from "../Backup";
2
1
  import { BackupClient } from "../BackupClient";
3
2
  import { ListFrameworksCommand, } from "../commands/ListFrameworksCommand";
4
3
  const makePagedClientRequest = async (client, input, ...args) => {
5
4
  return await client.send(new ListFrameworksCommand(input), ...args);
6
5
  };
7
- const makePagedRequest = async (client, input, ...args) => {
8
- return await client.listFrameworks(input, ...args);
9
- };
10
6
  export async function* paginateListFrameworks(config, input, ...additionalArguments) {
11
7
  let token = config.startingToken || undefined;
12
8
  let hasNext = true;
@@ -14,10 +10,7 @@ export async function* paginateListFrameworks(config, input, ...additionalArgume
14
10
  while (hasNext) {
15
11
  input.NextToken = token;
16
12
  input["MaxResults"] = config.pageSize;
17
- if (config.client instanceof Backup) {
18
- page = await makePagedRequest(config.client, input, ...additionalArguments);
19
- }
20
- else if (config.client instanceof BackupClient) {
13
+ if (config.client instanceof BackupClient) {
21
14
  page = await makePagedClientRequest(config.client, input, ...additionalArguments);
22
15
  }
23
16
  else {
@@ -1,12 +1,8 @@
1
- import { Backup } from "../Backup";
2
1
  import { BackupClient } from "../BackupClient";
3
2
  import { ListLegalHoldsCommand, } from "../commands/ListLegalHoldsCommand";
4
3
  const makePagedClientRequest = async (client, input, ...args) => {
5
4
  return await client.send(new ListLegalHoldsCommand(input), ...args);
6
5
  };
7
- const makePagedRequest = async (client, input, ...args) => {
8
- return await client.listLegalHolds(input, ...args);
9
- };
10
6
  export async function* paginateListLegalHolds(config, input, ...additionalArguments) {
11
7
  let token = config.startingToken || undefined;
12
8
  let hasNext = true;
@@ -14,10 +10,7 @@ export async function* paginateListLegalHolds(config, input, ...additionalArgume
14
10
  while (hasNext) {
15
11
  input.NextToken = token;
16
12
  input["MaxResults"] = config.pageSize;
17
- if (config.client instanceof Backup) {
18
- page = await makePagedRequest(config.client, input, ...additionalArguments);
19
- }
20
- else if (config.client instanceof BackupClient) {
13
+ if (config.client instanceof BackupClient) {
21
14
  page = await makePagedClientRequest(config.client, input, ...additionalArguments);
22
15
  }
23
16
  else {
@@ -1,12 +1,8 @@
1
- import { Backup } from "../Backup";
2
1
  import { BackupClient } from "../BackupClient";
3
2
  import { ListProtectedResourcesCommand, } from "../commands/ListProtectedResourcesCommand";
4
3
  const makePagedClientRequest = async (client, input, ...args) => {
5
4
  return await client.send(new ListProtectedResourcesCommand(input), ...args);
6
5
  };
7
- const makePagedRequest = async (client, input, ...args) => {
8
- return await client.listProtectedResources(input, ...args);
9
- };
10
6
  export async function* paginateListProtectedResources(config, input, ...additionalArguments) {
11
7
  let token = config.startingToken || undefined;
12
8
  let hasNext = true;
@@ -14,10 +10,7 @@ export async function* paginateListProtectedResources(config, input, ...addition
14
10
  while (hasNext) {
15
11
  input.NextToken = token;
16
12
  input["MaxResults"] = config.pageSize;
17
- if (config.client instanceof Backup) {
18
- page = await makePagedRequest(config.client, input, ...additionalArguments);
19
- }
20
- else if (config.client instanceof BackupClient) {
13
+ if (config.client instanceof BackupClient) {
21
14
  page = await makePagedClientRequest(config.client, input, ...additionalArguments);
22
15
  }
23
16
  else {
@@ -1,12 +1,8 @@
1
- import { Backup } from "../Backup";
2
1
  import { BackupClient } from "../BackupClient";
3
2
  import { ListRecoveryPointsByBackupVaultCommand, } from "../commands/ListRecoveryPointsByBackupVaultCommand";
4
3
  const makePagedClientRequest = async (client, input, ...args) => {
5
4
  return await client.send(new ListRecoveryPointsByBackupVaultCommand(input), ...args);
6
5
  };
7
- const makePagedRequest = async (client, input, ...args) => {
8
- return await client.listRecoveryPointsByBackupVault(input, ...args);
9
- };
10
6
  export async function* paginateListRecoveryPointsByBackupVault(config, input, ...additionalArguments) {
11
7
  let token = config.startingToken || undefined;
12
8
  let hasNext = true;
@@ -14,10 +10,7 @@ export async function* paginateListRecoveryPointsByBackupVault(config, input, ..
14
10
  while (hasNext) {
15
11
  input.NextToken = token;
16
12
  input["MaxResults"] = config.pageSize;
17
- if (config.client instanceof Backup) {
18
- page = await makePagedRequest(config.client, input, ...additionalArguments);
19
- }
20
- else if (config.client instanceof BackupClient) {
13
+ if (config.client instanceof BackupClient) {
21
14
  page = await makePagedClientRequest(config.client, input, ...additionalArguments);
22
15
  }
23
16
  else {
@@ -1,12 +1,8 @@
1
- import { Backup } from "../Backup";
2
1
  import { BackupClient } from "../BackupClient";
3
2
  import { ListRecoveryPointsByLegalHoldCommand, } from "../commands/ListRecoveryPointsByLegalHoldCommand";
4
3
  const makePagedClientRequest = async (client, input, ...args) => {
5
4
  return await client.send(new ListRecoveryPointsByLegalHoldCommand(input), ...args);
6
5
  };
7
- const makePagedRequest = async (client, input, ...args) => {
8
- return await client.listRecoveryPointsByLegalHold(input, ...args);
9
- };
10
6
  export async function* paginateListRecoveryPointsByLegalHold(config, input, ...additionalArguments) {
11
7
  let token = config.startingToken || undefined;
12
8
  let hasNext = true;
@@ -14,10 +10,7 @@ export async function* paginateListRecoveryPointsByLegalHold(config, input, ...a
14
10
  while (hasNext) {
15
11
  input.NextToken = token;
16
12
  input["MaxResults"] = config.pageSize;
17
- if (config.client instanceof Backup) {
18
- page = await makePagedRequest(config.client, input, ...additionalArguments);
19
- }
20
- else if (config.client instanceof BackupClient) {
13
+ if (config.client instanceof BackupClient) {
21
14
  page = await makePagedClientRequest(config.client, input, ...additionalArguments);
22
15
  }
23
16
  else {
@@ -1,12 +1,8 @@
1
- import { Backup } from "../Backup";
2
1
  import { BackupClient } from "../BackupClient";
3
2
  import { ListRecoveryPointsByResourceCommand, } from "../commands/ListRecoveryPointsByResourceCommand";
4
3
  const makePagedClientRequest = async (client, input, ...args) => {
5
4
  return await client.send(new ListRecoveryPointsByResourceCommand(input), ...args);
6
5
  };
7
- const makePagedRequest = async (client, input, ...args) => {
8
- return await client.listRecoveryPointsByResource(input, ...args);
9
- };
10
6
  export async function* paginateListRecoveryPointsByResource(config, input, ...additionalArguments) {
11
7
  let token = config.startingToken || undefined;
12
8
  let hasNext = true;
@@ -14,10 +10,7 @@ export async function* paginateListRecoveryPointsByResource(config, input, ...ad
14
10
  while (hasNext) {
15
11
  input.NextToken = token;
16
12
  input["MaxResults"] = config.pageSize;
17
- if (config.client instanceof Backup) {
18
- page = await makePagedRequest(config.client, input, ...additionalArguments);
19
- }
20
- else if (config.client instanceof BackupClient) {
13
+ if (config.client instanceof BackupClient) {
21
14
  page = await makePagedClientRequest(config.client, input, ...additionalArguments);
22
15
  }
23
16
  else {
@@ -1,12 +1,8 @@
1
- import { Backup } from "../Backup";
2
1
  import { BackupClient } from "../BackupClient";
3
2
  import { ListReportJobsCommand, } from "../commands/ListReportJobsCommand";
4
3
  const makePagedClientRequest = async (client, input, ...args) => {
5
4
  return await client.send(new ListReportJobsCommand(input), ...args);
6
5
  };
7
- const makePagedRequest = async (client, input, ...args) => {
8
- return await client.listReportJobs(input, ...args);
9
- };
10
6
  export async function* paginateListReportJobs(config, input, ...additionalArguments) {
11
7
  let token = config.startingToken || undefined;
12
8
  let hasNext = true;
@@ -14,10 +10,7 @@ export async function* paginateListReportJobs(config, input, ...additionalArgume
14
10
  while (hasNext) {
15
11
  input.NextToken = token;
16
12
  input["MaxResults"] = config.pageSize;
17
- if (config.client instanceof Backup) {
18
- page = await makePagedRequest(config.client, input, ...additionalArguments);
19
- }
20
- else if (config.client instanceof BackupClient) {
13
+ if (config.client instanceof BackupClient) {
21
14
  page = await makePagedClientRequest(config.client, input, ...additionalArguments);
22
15
  }
23
16
  else {
@@ -1,12 +1,8 @@
1
- import { Backup } from "../Backup";
2
1
  import { BackupClient } from "../BackupClient";
3
2
  import { ListReportPlansCommand, } from "../commands/ListReportPlansCommand";
4
3
  const makePagedClientRequest = async (client, input, ...args) => {
5
4
  return await client.send(new ListReportPlansCommand(input), ...args);
6
5
  };
7
- const makePagedRequest = async (client, input, ...args) => {
8
- return await client.listReportPlans(input, ...args);
9
- };
10
6
  export async function* paginateListReportPlans(config, input, ...additionalArguments) {
11
7
  let token = config.startingToken || undefined;
12
8
  let hasNext = true;
@@ -14,10 +10,7 @@ export async function* paginateListReportPlans(config, input, ...additionalArgum
14
10
  while (hasNext) {
15
11
  input.NextToken = token;
16
12
  input["MaxResults"] = config.pageSize;
17
- if (config.client instanceof Backup) {
18
- page = await makePagedRequest(config.client, input, ...additionalArguments);
19
- }
20
- else if (config.client instanceof BackupClient) {
13
+ if (config.client instanceof BackupClient) {
21
14
  page = await makePagedClientRequest(config.client, input, ...additionalArguments);
22
15
  }
23
16
  else {
@@ -1,12 +1,8 @@
1
- import { Backup } from "../Backup";
2
1
  import { BackupClient } from "../BackupClient";
3
2
  import { ListRestoreJobsCommand, } from "../commands/ListRestoreJobsCommand";
4
3
  const makePagedClientRequest = async (client, input, ...args) => {
5
4
  return await client.send(new ListRestoreJobsCommand(input), ...args);
6
5
  };
7
- const makePagedRequest = async (client, input, ...args) => {
8
- return await client.listRestoreJobs(input, ...args);
9
- };
10
6
  export async function* paginateListRestoreJobs(config, input, ...additionalArguments) {
11
7
  let token = config.startingToken || undefined;
12
8
  let hasNext = true;
@@ -14,10 +10,7 @@ export async function* paginateListRestoreJobs(config, input, ...additionalArgum
14
10
  while (hasNext) {
15
11
  input.NextToken = token;
16
12
  input["MaxResults"] = config.pageSize;
17
- if (config.client instanceof Backup) {
18
- page = await makePagedRequest(config.client, input, ...additionalArguments);
19
- }
20
- else if (config.client instanceof BackupClient) {
13
+ if (config.client instanceof BackupClient) {
21
14
  page = await makePagedClientRequest(config.client, input, ...additionalArguments);
22
15
  }
23
16
  else {
@@ -1,12 +1,8 @@
1
- import { Backup } from "../Backup";
2
1
  import { BackupClient } from "../BackupClient";
3
2
  import { ListTagsCommand } from "../commands/ListTagsCommand";
4
3
  const makePagedClientRequest = async (client, input, ...args) => {
5
4
  return await client.send(new ListTagsCommand(input), ...args);
6
5
  };
7
- const makePagedRequest = async (client, input, ...args) => {
8
- return await client.listTags(input, ...args);
9
- };
10
6
  export async function* paginateListTags(config, input, ...additionalArguments) {
11
7
  let token = config.startingToken || undefined;
12
8
  let hasNext = true;
@@ -14,10 +10,7 @@ export async function* paginateListTags(config, input, ...additionalArguments) {
14
10
  while (hasNext) {
15
11
  input.NextToken = token;
16
12
  input["MaxResults"] = config.pageSize;
17
- if (config.client instanceof Backup) {
18
- page = await makePagedRequest(config.client, input, ...additionalArguments);
19
- }
20
- else if (config.client instanceof BackupClient) {
13
+ if (config.client instanceof BackupClient) {
21
14
  page = await makePagedClientRequest(config.client, input, ...additionalArguments);
22
15
  }
23
16
  else {
@@ -1,6 +1,5 @@
1
1
  import { PaginationConfiguration } from "@aws-sdk/types";
2
- import { Backup } from "../Backup";
3
2
  import { BackupClient } from "../BackupClient";
4
3
  export interface BackupPaginationConfiguration extends PaginationConfiguration {
5
- client: Backup | BackupClient;
4
+ client: BackupClient;
6
5
  }
@@ -1,6 +1,5 @@
1
1
  import { PaginationConfiguration } from "@aws-sdk/types";
2
- import { Backup } from "../Backup";
3
2
  import { BackupClient } from "../BackupClient";
4
3
  export interface BackupPaginationConfiguration extends PaginationConfiguration {
5
- client: Backup | BackupClient;
4
+ client: BackupClient;
6
5
  }
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@aws-sdk/client-backup",
3
3
  "description": "AWS SDK for JavaScript Backup Client for Node.js, Browser and React Native",
4
- "version": "3.281.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,25 +20,25 @@
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.281.0",
24
- "@aws-sdk/config-resolver": "3.272.0",
25
- "@aws-sdk/credential-provider-node": "3.281.0",
26
- "@aws-sdk/fetch-http-handler": "3.272.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
+ "@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
- "@aws-sdk/middleware-content-length": "3.272.0",
30
- "@aws-sdk/middleware-endpoint": "3.272.0",
31
- "@aws-sdk/middleware-host-header": "3.278.0",
32
- "@aws-sdk/middleware-logger": "3.272.0",
33
- "@aws-sdk/middleware-recursion-detection": "3.272.0",
34
- "@aws-sdk/middleware-retry": "3.272.0",
29
+ "@aws-sdk/middleware-content-length": "3.282.0",
30
+ "@aws-sdk/middleware-endpoint": "3.282.0",
31
+ "@aws-sdk/middleware-host-header": "3.282.0",
32
+ "@aws-sdk/middleware-logger": "3.287.0",
33
+ "@aws-sdk/middleware-recursion-detection": "3.282.0",
34
+ "@aws-sdk/middleware-retry": "3.287.0",
35
35
  "@aws-sdk/middleware-serde": "3.272.0",
36
- "@aws-sdk/middleware-signing": "3.272.0",
36
+ "@aws-sdk/middleware-signing": "3.282.0",
37
37
  "@aws-sdk/middleware-stack": "3.272.0",
38
- "@aws-sdk/middleware-user-agent": "3.272.0",
39
- "@aws-sdk/node-config-provider": "3.272.0",
40
- "@aws-sdk/node-http-handler": "3.272.0",
41
- "@aws-sdk/protocol-http": "3.272.0",
38
+ "@aws-sdk/middleware-user-agent": "3.282.0",
39
+ "@aws-sdk/node-config-provider": "3.287.0",
40
+ "@aws-sdk/node-http-handler": "3.282.0",
41
+ "@aws-sdk/protocol-http": "3.282.0",
42
42
  "@aws-sdk/smithy-client": "3.279.0",
43
43
  "@aws-sdk/types": "3.272.0",
44
44
  "@aws-sdk/url-parser": "3.272.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.279.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
- "@aws-sdk/util-user-agent-browser": "3.272.0",
53
- "@aws-sdk/util-user-agent-node": "3.272.0",
52
+ "@aws-sdk/util-user-agent-browser": "3.282.0",
53
+ "@aws-sdk/util-user-agent-node": "3.287.0",
54
54
  "@aws-sdk/util-utf8": "3.254.0",
55
55
  "tslib": "^2.3.1",
56
56
  "uuid": "^8.3.2"