@aws-sdk/client-sagemaker-geospatial 3.476.0 → 3.478.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.
@@ -1,28 +1,7 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
3
  exports.paginateListEarthObservationJobs = void 0;
4
+ const core_1 = require("@smithy/core");
4
5
  const ListEarthObservationJobsCommand_1 = require("../commands/ListEarthObservationJobsCommand");
5
6
  const SageMakerGeospatialClient_1 = require("../SageMakerGeospatialClient");
6
- const makePagedClientRequest = async (client, input, ...args) => {
7
- return await client.send(new ListEarthObservationJobsCommand_1.ListEarthObservationJobsCommand(input), ...args);
8
- };
9
- async function* paginateListEarthObservationJobs(config, input, ...additionalArguments) {
10
- let token = config.startingToken || undefined;
11
- let hasNext = true;
12
- let page;
13
- while (hasNext) {
14
- input.NextToken = token;
15
- if (config.client instanceof SageMakerGeospatialClient_1.SageMakerGeospatialClient) {
16
- page = await makePagedClientRequest(config.client, input, ...additionalArguments);
17
- }
18
- else {
19
- throw new Error("Invalid client, expected SageMakerGeospatial | SageMakerGeospatialClient");
20
- }
21
- yield page;
22
- const prevToken = token;
23
- token = page.NextToken;
24
- hasNext = !!(token && (!config.stopOnSameToken || token !== prevToken));
25
- }
26
- return undefined;
27
- }
28
- exports.paginateListEarthObservationJobs = paginateListEarthObservationJobs;
7
+ exports.paginateListEarthObservationJobs = (0, core_1.createPaginator)(SageMakerGeospatialClient_1.SageMakerGeospatialClient, ListEarthObservationJobsCommand_1.ListEarthObservationJobsCommand, "NextToken", "NextToken", "");
@@ -1,28 +1,7 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
3
  exports.paginateListRasterDataCollections = void 0;
4
+ const core_1 = require("@smithy/core");
4
5
  const ListRasterDataCollectionsCommand_1 = require("../commands/ListRasterDataCollectionsCommand");
5
6
  const SageMakerGeospatialClient_1 = require("../SageMakerGeospatialClient");
6
- const makePagedClientRequest = async (client, input, ...args) => {
7
- return await client.send(new ListRasterDataCollectionsCommand_1.ListRasterDataCollectionsCommand(input), ...args);
8
- };
9
- async function* paginateListRasterDataCollections(config, input, ...additionalArguments) {
10
- let token = config.startingToken || undefined;
11
- let hasNext = true;
12
- let page;
13
- while (hasNext) {
14
- input.NextToken = token;
15
- if (config.client instanceof SageMakerGeospatialClient_1.SageMakerGeospatialClient) {
16
- page = await makePagedClientRequest(config.client, input, ...additionalArguments);
17
- }
18
- else {
19
- throw new Error("Invalid client, expected SageMakerGeospatial | SageMakerGeospatialClient");
20
- }
21
- yield page;
22
- const prevToken = token;
23
- token = page.NextToken;
24
- hasNext = !!(token && (!config.stopOnSameToken || token !== prevToken));
25
- }
26
- return undefined;
27
- }
28
- exports.paginateListRasterDataCollections = paginateListRasterDataCollections;
7
+ exports.paginateListRasterDataCollections = (0, core_1.createPaginator)(SageMakerGeospatialClient_1.SageMakerGeospatialClient, ListRasterDataCollectionsCommand_1.ListRasterDataCollectionsCommand, "NextToken", "NextToken", "");
@@ -1,28 +1,7 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
3
  exports.paginateListVectorEnrichmentJobs = void 0;
4
+ const core_1 = require("@smithy/core");
4
5
  const ListVectorEnrichmentJobsCommand_1 = require("../commands/ListVectorEnrichmentJobsCommand");
5
6
  const SageMakerGeospatialClient_1 = require("../SageMakerGeospatialClient");
6
- const makePagedClientRequest = async (client, input, ...args) => {
7
- return await client.send(new ListVectorEnrichmentJobsCommand_1.ListVectorEnrichmentJobsCommand(input), ...args);
8
- };
9
- async function* paginateListVectorEnrichmentJobs(config, input, ...additionalArguments) {
10
- let token = config.startingToken || undefined;
11
- let hasNext = true;
12
- let page;
13
- while (hasNext) {
14
- input.NextToken = token;
15
- if (config.client instanceof SageMakerGeospatialClient_1.SageMakerGeospatialClient) {
16
- page = await makePagedClientRequest(config.client, input, ...additionalArguments);
17
- }
18
- else {
19
- throw new Error("Invalid client, expected SageMakerGeospatial | SageMakerGeospatialClient");
20
- }
21
- yield page;
22
- const prevToken = token;
23
- token = page.NextToken;
24
- hasNext = !!(token && (!config.stopOnSameToken || token !== prevToken));
25
- }
26
- return undefined;
27
- }
28
- exports.paginateListVectorEnrichmentJobs = paginateListVectorEnrichmentJobs;
7
+ exports.paginateListVectorEnrichmentJobs = (0, core_1.createPaginator)(SageMakerGeospatialClient_1.SageMakerGeospatialClient, ListVectorEnrichmentJobsCommand_1.ListVectorEnrichmentJobsCommand, "NextToken", "NextToken", "");
@@ -1,28 +1,7 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
3
  exports.paginateSearchRasterDataCollection = void 0;
4
+ const core_1 = require("@smithy/core");
4
5
  const SearchRasterDataCollectionCommand_1 = require("../commands/SearchRasterDataCollectionCommand");
5
6
  const SageMakerGeospatialClient_1 = require("../SageMakerGeospatialClient");
6
- const makePagedClientRequest = async (client, input, ...args) => {
7
- return await client.send(new SearchRasterDataCollectionCommand_1.SearchRasterDataCollectionCommand(input), ...args);
8
- };
9
- async function* paginateSearchRasterDataCollection(config, input, ...additionalArguments) {
10
- let token = config.startingToken || undefined;
11
- let hasNext = true;
12
- let page;
13
- while (hasNext) {
14
- input.NextToken = token;
15
- if (config.client instanceof SageMakerGeospatialClient_1.SageMakerGeospatialClient) {
16
- page = await makePagedClientRequest(config.client, input, ...additionalArguments);
17
- }
18
- else {
19
- throw new Error("Invalid client, expected SageMakerGeospatial | SageMakerGeospatialClient");
20
- }
21
- yield page;
22
- const prevToken = token;
23
- token = page.NextToken;
24
- hasNext = !!(token && (!config.stopOnSameToken || token !== prevToken));
25
- }
26
- return undefined;
27
- }
28
- exports.paginateSearchRasterDataCollection = paginateSearchRasterDataCollection;
7
+ exports.paginateSearchRasterDataCollection = (0, core_1.createPaginator)(SageMakerGeospatialClient_1.SageMakerGeospatialClient, SearchRasterDataCollectionCommand_1.SearchRasterDataCollectionCommand, "NextToken", "NextToken", "");