@aws-sdk/client-sagemaker-geospatial 3.477.0 → 3.481.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 (97) hide show
  1. package/dist-cjs/commands/DeleteEarthObservationJobCommand.js +18 -41
  2. package/dist-cjs/commands/DeleteVectorEnrichmentJobCommand.js +18 -41
  3. package/dist-cjs/commands/ExportEarthObservationJobCommand.js +18 -41
  4. package/dist-cjs/commands/ExportVectorEnrichmentJobCommand.js +18 -41
  5. package/dist-cjs/commands/GetEarthObservationJobCommand.js +18 -41
  6. package/dist-cjs/commands/GetRasterDataCollectionCommand.js +18 -41
  7. package/dist-cjs/commands/GetTileCommand.js +18 -41
  8. package/dist-cjs/commands/GetVectorEnrichmentJobCommand.js +18 -41
  9. package/dist-cjs/commands/ListEarthObservationJobsCommand.js +18 -41
  10. package/dist-cjs/commands/ListRasterDataCollectionsCommand.js +18 -41
  11. package/dist-cjs/commands/ListTagsForResourceCommand.js +18 -41
  12. package/dist-cjs/commands/ListVectorEnrichmentJobsCommand.js +18 -41
  13. package/dist-cjs/commands/SearchRasterDataCollectionCommand.js +18 -41
  14. package/dist-cjs/commands/StartEarthObservationJobCommand.js +18 -41
  15. package/dist-cjs/commands/StartVectorEnrichmentJobCommand.js +18 -41
  16. package/dist-cjs/commands/StopEarthObservationJobCommand.js +18 -41
  17. package/dist-cjs/commands/StopVectorEnrichmentJobCommand.js +18 -41
  18. package/dist-cjs/commands/TagResourceCommand.js +18 -41
  19. package/dist-cjs/commands/UntagResourceCommand.js +18 -41
  20. package/dist-cjs/endpoint/EndpointParameters.js +7 -1
  21. package/dist-cjs/pagination/ListEarthObservationJobsPaginator.js +2 -23
  22. package/dist-cjs/pagination/ListRasterDataCollectionsPaginator.js +2 -23
  23. package/dist-cjs/pagination/ListVectorEnrichmentJobsPaginator.js +2 -23
  24. package/dist-cjs/pagination/SearchRasterDataCollectionPaginator.js +2 -23
  25. package/dist-es/commands/DeleteEarthObservationJobCommand.js +18 -41
  26. package/dist-es/commands/DeleteVectorEnrichmentJobCommand.js +18 -41
  27. package/dist-es/commands/ExportEarthObservationJobCommand.js +18 -41
  28. package/dist-es/commands/ExportVectorEnrichmentJobCommand.js +18 -41
  29. package/dist-es/commands/GetEarthObservationJobCommand.js +18 -41
  30. package/dist-es/commands/GetRasterDataCollectionCommand.js +18 -41
  31. package/dist-es/commands/GetTileCommand.js +18 -41
  32. package/dist-es/commands/GetVectorEnrichmentJobCommand.js +18 -41
  33. package/dist-es/commands/ListEarthObservationJobsCommand.js +18 -41
  34. package/dist-es/commands/ListRasterDataCollectionsCommand.js +18 -41
  35. package/dist-es/commands/ListTagsForResourceCommand.js +18 -41
  36. package/dist-es/commands/ListVectorEnrichmentJobsCommand.js +18 -41
  37. package/dist-es/commands/SearchRasterDataCollectionCommand.js +18 -41
  38. package/dist-es/commands/StartEarthObservationJobCommand.js +18 -41
  39. package/dist-es/commands/StartVectorEnrichmentJobCommand.js +18 -41
  40. package/dist-es/commands/StopEarthObservationJobCommand.js +18 -41
  41. package/dist-es/commands/StopVectorEnrichmentJobCommand.js +18 -41
  42. package/dist-es/commands/TagResourceCommand.js +18 -41
  43. package/dist-es/commands/UntagResourceCommand.js +18 -41
  44. package/dist-es/endpoint/EndpointParameters.js +6 -0
  45. package/dist-es/pagination/ListEarthObservationJobsPaginator.js +2 -22
  46. package/dist-es/pagination/ListRasterDataCollectionsPaginator.js +2 -22
  47. package/dist-es/pagination/ListVectorEnrichmentJobsPaginator.js +2 -22
  48. package/dist-es/pagination/SearchRasterDataCollectionPaginator.js +2 -22
  49. package/dist-types/commands/DeleteEarthObservationJobCommand.d.ts +6 -21
  50. package/dist-types/commands/DeleteVectorEnrichmentJobCommand.d.ts +6 -21
  51. package/dist-types/commands/ExportEarthObservationJobCommand.d.ts +6 -21
  52. package/dist-types/commands/ExportVectorEnrichmentJobCommand.d.ts +6 -21
  53. package/dist-types/commands/GetEarthObservationJobCommand.d.ts +6 -21
  54. package/dist-types/commands/GetRasterDataCollectionCommand.d.ts +6 -21
  55. package/dist-types/commands/GetTileCommand.d.ts +6 -21
  56. package/dist-types/commands/GetVectorEnrichmentJobCommand.d.ts +6 -21
  57. package/dist-types/commands/ListEarthObservationJobsCommand.d.ts +6 -21
  58. package/dist-types/commands/ListRasterDataCollectionsCommand.d.ts +6 -21
  59. package/dist-types/commands/ListTagsForResourceCommand.d.ts +6 -21
  60. package/dist-types/commands/ListVectorEnrichmentJobsCommand.d.ts +6 -21
  61. package/dist-types/commands/SearchRasterDataCollectionCommand.d.ts +6 -21
  62. package/dist-types/commands/StartEarthObservationJobCommand.d.ts +6 -21
  63. package/dist-types/commands/StartVectorEnrichmentJobCommand.d.ts +6 -21
  64. package/dist-types/commands/StopEarthObservationJobCommand.d.ts +6 -21
  65. package/dist-types/commands/StopVectorEnrichmentJobCommand.d.ts +6 -21
  66. package/dist-types/commands/TagResourceCommand.d.ts +6 -21
  67. package/dist-types/commands/UntagResourceCommand.d.ts +6 -21
  68. package/dist-types/endpoint/EndpointParameters.d.ts +18 -0
  69. package/dist-types/pagination/ListEarthObservationJobsPaginator.d.ts +1 -1
  70. package/dist-types/pagination/ListRasterDataCollectionsPaginator.d.ts +1 -1
  71. package/dist-types/pagination/ListVectorEnrichmentJobsPaginator.d.ts +1 -1
  72. package/dist-types/pagination/SearchRasterDataCollectionPaginator.d.ts +1 -1
  73. package/dist-types/ts3.4/commands/DeleteEarthObservationJobCommand.d.ts +12 -24
  74. package/dist-types/ts3.4/commands/DeleteVectorEnrichmentJobCommand.d.ts +12 -24
  75. package/dist-types/ts3.4/commands/ExportEarthObservationJobCommand.d.ts +12 -24
  76. package/dist-types/ts3.4/commands/ExportVectorEnrichmentJobCommand.d.ts +12 -24
  77. package/dist-types/ts3.4/commands/GetEarthObservationJobCommand.d.ts +12 -24
  78. package/dist-types/ts3.4/commands/GetRasterDataCollectionCommand.d.ts +12 -24
  79. package/dist-types/ts3.4/commands/GetTileCommand.d.ts +11 -20
  80. package/dist-types/ts3.4/commands/GetVectorEnrichmentJobCommand.d.ts +12 -24
  81. package/dist-types/ts3.4/commands/ListEarthObservationJobsCommand.d.ts +12 -24
  82. package/dist-types/ts3.4/commands/ListRasterDataCollectionsCommand.d.ts +12 -24
  83. package/dist-types/ts3.4/commands/ListTagsForResourceCommand.d.ts +14 -23
  84. package/dist-types/ts3.4/commands/ListVectorEnrichmentJobsCommand.d.ts +12 -24
  85. package/dist-types/ts3.4/commands/SearchRasterDataCollectionCommand.d.ts +12 -24
  86. package/dist-types/ts3.4/commands/StartEarthObservationJobCommand.d.ts +12 -24
  87. package/dist-types/ts3.4/commands/StartVectorEnrichmentJobCommand.d.ts +12 -24
  88. package/dist-types/ts3.4/commands/StopEarthObservationJobCommand.d.ts +12 -24
  89. package/dist-types/ts3.4/commands/StopVectorEnrichmentJobCommand.d.ts +12 -24
  90. package/dist-types/ts3.4/commands/TagResourceCommand.d.ts +14 -23
  91. package/dist-types/ts3.4/commands/UntagResourceCommand.d.ts +14 -23
  92. package/dist-types/ts3.4/endpoint/EndpointParameters.d.ts +18 -0
  93. package/dist-types/ts3.4/pagination/ListEarthObservationJobsPaginator.d.ts +3 -3
  94. package/dist-types/ts3.4/pagination/ListRasterDataCollectionsPaginator.d.ts +3 -3
  95. package/dist-types/ts3.4/pagination/ListVectorEnrichmentJobsPaginator.d.ts +3 -3
  96. package/dist-types/ts3.4/pagination/SearchRasterDataCollectionPaginator.d.ts +3 -3
  97. package/package.json +11 -11
@@ -1,47 +1,24 @@
1
1
  import { getEndpointPlugin } from "@smithy/middleware-endpoint";
2
2
  import { getSerdePlugin } from "@smithy/middleware-serde";
3
3
  import { Command as $Command } from "@smithy/smithy-client";
4
- import { SMITHY_CONTEXT_KEY, } from "@smithy/types";
4
+ import { commonParams } from "../endpoint/EndpointParameters";
5
5
  import { de_StopEarthObservationJobCommand, se_StopEarthObservationJobCommand } from "../protocols/Aws_restJson1";
6
6
  export { $Command };
7
- export class StopEarthObservationJobCommand extends $Command {
8
- static getEndpointParameterInstructions() {
9
- return {
10
- UseFIPS: { type: "builtInParams", name: "useFipsEndpoint" },
11
- Endpoint: { type: "builtInParams", name: "endpoint" },
12
- Region: { type: "builtInParams", name: "region" },
13
- UseDualStack: { type: "builtInParams", name: "useDualstackEndpoint" },
14
- };
15
- }
16
- constructor(input) {
17
- super();
18
- this.input = input;
19
- }
20
- resolveMiddleware(clientStack, configuration, options) {
21
- this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize));
22
- this.middlewareStack.use(getEndpointPlugin(configuration, StopEarthObservationJobCommand.getEndpointParameterInstructions()));
23
- const stack = clientStack.concat(this.middlewareStack);
24
- const { logger } = configuration;
25
- const clientName = "SageMakerGeospatialClient";
26
- const commandName = "StopEarthObservationJobCommand";
27
- const handlerExecutionContext = {
28
- logger,
29
- clientName,
30
- commandName,
31
- inputFilterSensitiveLog: (_) => _,
32
- outputFilterSensitiveLog: (_) => _,
33
- [SMITHY_CONTEXT_KEY]: {
34
- service: "SageMakerGeospatial",
35
- operation: "StopEarthObservationJob",
36
- },
37
- };
38
- const { requestHandler } = configuration;
39
- return stack.resolve((request) => requestHandler.handle(request.request, options || {}), handlerExecutionContext);
40
- }
41
- serialize(input, context) {
42
- return se_StopEarthObservationJobCommand(input, context);
43
- }
44
- deserialize(output, context) {
45
- return de_StopEarthObservationJobCommand(output, context);
46
- }
7
+ export class StopEarthObservationJobCommand extends $Command
8
+ .classBuilder()
9
+ .ep({
10
+ ...commonParams,
11
+ })
12
+ .m(function (Command, cs, config, o) {
13
+ return [
14
+ getSerdePlugin(config, this.serialize, this.deserialize),
15
+ getEndpointPlugin(config, Command.getEndpointParameterInstructions()),
16
+ ];
17
+ })
18
+ .s("SageMakerGeospatial", "StopEarthObservationJob", {})
19
+ .n("SageMakerGeospatialClient", "StopEarthObservationJobCommand")
20
+ .f(void 0, void 0)
21
+ .ser(se_StopEarthObservationJobCommand)
22
+ .de(de_StopEarthObservationJobCommand)
23
+ .build() {
47
24
  }
@@ -1,47 +1,24 @@
1
1
  import { getEndpointPlugin } from "@smithy/middleware-endpoint";
2
2
  import { getSerdePlugin } from "@smithy/middleware-serde";
3
3
  import { Command as $Command } from "@smithy/smithy-client";
4
- import { SMITHY_CONTEXT_KEY, } from "@smithy/types";
4
+ import { commonParams } from "../endpoint/EndpointParameters";
5
5
  import { de_StopVectorEnrichmentJobCommand, se_StopVectorEnrichmentJobCommand } from "../protocols/Aws_restJson1";
6
6
  export { $Command };
7
- export class StopVectorEnrichmentJobCommand extends $Command {
8
- static getEndpointParameterInstructions() {
9
- return {
10
- UseFIPS: { type: "builtInParams", name: "useFipsEndpoint" },
11
- Endpoint: { type: "builtInParams", name: "endpoint" },
12
- Region: { type: "builtInParams", name: "region" },
13
- UseDualStack: { type: "builtInParams", name: "useDualstackEndpoint" },
14
- };
15
- }
16
- constructor(input) {
17
- super();
18
- this.input = input;
19
- }
20
- resolveMiddleware(clientStack, configuration, options) {
21
- this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize));
22
- this.middlewareStack.use(getEndpointPlugin(configuration, StopVectorEnrichmentJobCommand.getEndpointParameterInstructions()));
23
- const stack = clientStack.concat(this.middlewareStack);
24
- const { logger } = configuration;
25
- const clientName = "SageMakerGeospatialClient";
26
- const commandName = "StopVectorEnrichmentJobCommand";
27
- const handlerExecutionContext = {
28
- logger,
29
- clientName,
30
- commandName,
31
- inputFilterSensitiveLog: (_) => _,
32
- outputFilterSensitiveLog: (_) => _,
33
- [SMITHY_CONTEXT_KEY]: {
34
- service: "SageMakerGeospatial",
35
- operation: "StopVectorEnrichmentJob",
36
- },
37
- };
38
- const { requestHandler } = configuration;
39
- return stack.resolve((request) => requestHandler.handle(request.request, options || {}), handlerExecutionContext);
40
- }
41
- serialize(input, context) {
42
- return se_StopVectorEnrichmentJobCommand(input, context);
43
- }
44
- deserialize(output, context) {
45
- return de_StopVectorEnrichmentJobCommand(output, context);
46
- }
7
+ export class StopVectorEnrichmentJobCommand extends $Command
8
+ .classBuilder()
9
+ .ep({
10
+ ...commonParams,
11
+ })
12
+ .m(function (Command, cs, config, o) {
13
+ return [
14
+ getSerdePlugin(config, this.serialize, this.deserialize),
15
+ getEndpointPlugin(config, Command.getEndpointParameterInstructions()),
16
+ ];
17
+ })
18
+ .s("SageMakerGeospatial", "StopVectorEnrichmentJob", {})
19
+ .n("SageMakerGeospatialClient", "StopVectorEnrichmentJobCommand")
20
+ .f(void 0, void 0)
21
+ .ser(se_StopVectorEnrichmentJobCommand)
22
+ .de(de_StopVectorEnrichmentJobCommand)
23
+ .build() {
47
24
  }
@@ -1,47 +1,24 @@
1
1
  import { getEndpointPlugin } from "@smithy/middleware-endpoint";
2
2
  import { getSerdePlugin } from "@smithy/middleware-serde";
3
3
  import { Command as $Command } from "@smithy/smithy-client";
4
- import { SMITHY_CONTEXT_KEY, } from "@smithy/types";
4
+ import { commonParams } from "../endpoint/EndpointParameters";
5
5
  import { de_TagResourceCommand, se_TagResourceCommand } from "../protocols/Aws_restJson1";
6
6
  export { $Command };
7
- export class TagResourceCommand extends $Command {
8
- static getEndpointParameterInstructions() {
9
- return {
10
- UseFIPS: { type: "builtInParams", name: "useFipsEndpoint" },
11
- Endpoint: { type: "builtInParams", name: "endpoint" },
12
- Region: { type: "builtInParams", name: "region" },
13
- UseDualStack: { type: "builtInParams", name: "useDualstackEndpoint" },
14
- };
15
- }
16
- constructor(input) {
17
- super();
18
- this.input = input;
19
- }
20
- resolveMiddleware(clientStack, configuration, options) {
21
- this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize));
22
- this.middlewareStack.use(getEndpointPlugin(configuration, TagResourceCommand.getEndpointParameterInstructions()));
23
- const stack = clientStack.concat(this.middlewareStack);
24
- const { logger } = configuration;
25
- const clientName = "SageMakerGeospatialClient";
26
- const commandName = "TagResourceCommand";
27
- const handlerExecutionContext = {
28
- logger,
29
- clientName,
30
- commandName,
31
- inputFilterSensitiveLog: (_) => _,
32
- outputFilterSensitiveLog: (_) => _,
33
- [SMITHY_CONTEXT_KEY]: {
34
- service: "SageMakerGeospatial",
35
- operation: "TagResource",
36
- },
37
- };
38
- const { requestHandler } = configuration;
39
- return stack.resolve((request) => requestHandler.handle(request.request, options || {}), handlerExecutionContext);
40
- }
41
- serialize(input, context) {
42
- return se_TagResourceCommand(input, context);
43
- }
44
- deserialize(output, context) {
45
- return de_TagResourceCommand(output, context);
46
- }
7
+ export class TagResourceCommand extends $Command
8
+ .classBuilder()
9
+ .ep({
10
+ ...commonParams,
11
+ })
12
+ .m(function (Command, cs, config, o) {
13
+ return [
14
+ getSerdePlugin(config, this.serialize, this.deserialize),
15
+ getEndpointPlugin(config, Command.getEndpointParameterInstructions()),
16
+ ];
17
+ })
18
+ .s("SageMakerGeospatial", "TagResource", {})
19
+ .n("SageMakerGeospatialClient", "TagResourceCommand")
20
+ .f(void 0, void 0)
21
+ .ser(se_TagResourceCommand)
22
+ .de(de_TagResourceCommand)
23
+ .build() {
47
24
  }
@@ -1,47 +1,24 @@
1
1
  import { getEndpointPlugin } from "@smithy/middleware-endpoint";
2
2
  import { getSerdePlugin } from "@smithy/middleware-serde";
3
3
  import { Command as $Command } from "@smithy/smithy-client";
4
- import { SMITHY_CONTEXT_KEY, } from "@smithy/types";
4
+ import { commonParams } from "../endpoint/EndpointParameters";
5
5
  import { de_UntagResourceCommand, se_UntagResourceCommand } from "../protocols/Aws_restJson1";
6
6
  export { $Command };
7
- export class UntagResourceCommand extends $Command {
8
- static getEndpointParameterInstructions() {
9
- return {
10
- UseFIPS: { type: "builtInParams", name: "useFipsEndpoint" },
11
- Endpoint: { type: "builtInParams", name: "endpoint" },
12
- Region: { type: "builtInParams", name: "region" },
13
- UseDualStack: { type: "builtInParams", name: "useDualstackEndpoint" },
14
- };
15
- }
16
- constructor(input) {
17
- super();
18
- this.input = input;
19
- }
20
- resolveMiddleware(clientStack, configuration, options) {
21
- this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize));
22
- this.middlewareStack.use(getEndpointPlugin(configuration, UntagResourceCommand.getEndpointParameterInstructions()));
23
- const stack = clientStack.concat(this.middlewareStack);
24
- const { logger } = configuration;
25
- const clientName = "SageMakerGeospatialClient";
26
- const commandName = "UntagResourceCommand";
27
- const handlerExecutionContext = {
28
- logger,
29
- clientName,
30
- commandName,
31
- inputFilterSensitiveLog: (_) => _,
32
- outputFilterSensitiveLog: (_) => _,
33
- [SMITHY_CONTEXT_KEY]: {
34
- service: "SageMakerGeospatial",
35
- operation: "UntagResource",
36
- },
37
- };
38
- const { requestHandler } = configuration;
39
- return stack.resolve((request) => requestHandler.handle(request.request, options || {}), handlerExecutionContext);
40
- }
41
- serialize(input, context) {
42
- return se_UntagResourceCommand(input, context);
43
- }
44
- deserialize(output, context) {
45
- return de_UntagResourceCommand(output, context);
46
- }
7
+ export class UntagResourceCommand extends $Command
8
+ .classBuilder()
9
+ .ep({
10
+ ...commonParams,
11
+ })
12
+ .m(function (Command, cs, config, o) {
13
+ return [
14
+ getSerdePlugin(config, this.serialize, this.deserialize),
15
+ getEndpointPlugin(config, Command.getEndpointParameterInstructions()),
16
+ ];
17
+ })
18
+ .s("SageMakerGeospatial", "UntagResource", {})
19
+ .n("SageMakerGeospatialClient", "UntagResourceCommand")
20
+ .f(void 0, void 0)
21
+ .ser(se_UntagResourceCommand)
22
+ .de(de_UntagResourceCommand)
23
+ .build() {
47
24
  }
@@ -6,3 +6,9 @@ export const resolveClientEndpointParameters = (options) => {
6
6
  defaultSigningName: "sagemaker-geospatial",
7
7
  };
8
8
  };
9
+ export const commonParams = {
10
+ UseFIPS: { type: "builtInParams", name: "useFipsEndpoint" },
11
+ Endpoint: { type: "builtInParams", name: "endpoint" },
12
+ Region: { type: "builtInParams", name: "region" },
13
+ UseDualStack: { type: "builtInParams", name: "useDualstackEndpoint" },
14
+ };
@@ -1,24 +1,4 @@
1
+ import { createPaginator } from "@smithy/core";
1
2
  import { ListEarthObservationJobsCommand, } from "../commands/ListEarthObservationJobsCommand";
2
3
  import { SageMakerGeospatialClient } from "../SageMakerGeospatialClient";
3
- const makePagedClientRequest = async (client, input, ...args) => {
4
- return await client.send(new ListEarthObservationJobsCommand(input), ...args);
5
- };
6
- export async function* paginateListEarthObservationJobs(config, input, ...additionalArguments) {
7
- let token = config.startingToken || undefined;
8
- let hasNext = true;
9
- let page;
10
- while (hasNext) {
11
- input.NextToken = token;
12
- if (config.client instanceof SageMakerGeospatialClient) {
13
- page = await makePagedClientRequest(config.client, input, ...additionalArguments);
14
- }
15
- else {
16
- throw new Error("Invalid client, expected SageMakerGeospatial | SageMakerGeospatialClient");
17
- }
18
- yield page;
19
- const prevToken = token;
20
- token = page.NextToken;
21
- hasNext = !!(token && (!config.stopOnSameToken || token !== prevToken));
22
- }
23
- return undefined;
24
- }
4
+ export const paginateListEarthObservationJobs = createPaginator(SageMakerGeospatialClient, ListEarthObservationJobsCommand, "NextToken", "NextToken", "");
@@ -1,24 +1,4 @@
1
+ import { createPaginator } from "@smithy/core";
1
2
  import { ListRasterDataCollectionsCommand, } from "../commands/ListRasterDataCollectionsCommand";
2
3
  import { SageMakerGeospatialClient } from "../SageMakerGeospatialClient";
3
- const makePagedClientRequest = async (client, input, ...args) => {
4
- return await client.send(new ListRasterDataCollectionsCommand(input), ...args);
5
- };
6
- export async function* paginateListRasterDataCollections(config, input, ...additionalArguments) {
7
- let token = config.startingToken || undefined;
8
- let hasNext = true;
9
- let page;
10
- while (hasNext) {
11
- input.NextToken = token;
12
- if (config.client instanceof SageMakerGeospatialClient) {
13
- page = await makePagedClientRequest(config.client, input, ...additionalArguments);
14
- }
15
- else {
16
- throw new Error("Invalid client, expected SageMakerGeospatial | SageMakerGeospatialClient");
17
- }
18
- yield page;
19
- const prevToken = token;
20
- token = page.NextToken;
21
- hasNext = !!(token && (!config.stopOnSameToken || token !== prevToken));
22
- }
23
- return undefined;
24
- }
4
+ export const paginateListRasterDataCollections = createPaginator(SageMakerGeospatialClient, ListRasterDataCollectionsCommand, "NextToken", "NextToken", "");
@@ -1,24 +1,4 @@
1
+ import { createPaginator } from "@smithy/core";
1
2
  import { ListVectorEnrichmentJobsCommand, } from "../commands/ListVectorEnrichmentJobsCommand";
2
3
  import { SageMakerGeospatialClient } from "../SageMakerGeospatialClient";
3
- const makePagedClientRequest = async (client, input, ...args) => {
4
- return await client.send(new ListVectorEnrichmentJobsCommand(input), ...args);
5
- };
6
- export async function* paginateListVectorEnrichmentJobs(config, input, ...additionalArguments) {
7
- let token = config.startingToken || undefined;
8
- let hasNext = true;
9
- let page;
10
- while (hasNext) {
11
- input.NextToken = token;
12
- if (config.client instanceof SageMakerGeospatialClient) {
13
- page = await makePagedClientRequest(config.client, input, ...additionalArguments);
14
- }
15
- else {
16
- throw new Error("Invalid client, expected SageMakerGeospatial | SageMakerGeospatialClient");
17
- }
18
- yield page;
19
- const prevToken = token;
20
- token = page.NextToken;
21
- hasNext = !!(token && (!config.stopOnSameToken || token !== prevToken));
22
- }
23
- return undefined;
24
- }
4
+ export const paginateListVectorEnrichmentJobs = createPaginator(SageMakerGeospatialClient, ListVectorEnrichmentJobsCommand, "NextToken", "NextToken", "");
@@ -1,24 +1,4 @@
1
+ import { createPaginator } from "@smithy/core";
1
2
  import { SearchRasterDataCollectionCommand, } from "../commands/SearchRasterDataCollectionCommand";
2
3
  import { SageMakerGeospatialClient } from "../SageMakerGeospatialClient";
3
- const makePagedClientRequest = async (client, input, ...args) => {
4
- return await client.send(new SearchRasterDataCollectionCommand(input), ...args);
5
- };
6
- export async function* paginateSearchRasterDataCollection(config, input, ...additionalArguments) {
7
- let token = config.startingToken || undefined;
8
- let hasNext = true;
9
- let page;
10
- while (hasNext) {
11
- input.NextToken = token;
12
- if (config.client instanceof SageMakerGeospatialClient) {
13
- page = await makePagedClientRequest(config.client, input, ...additionalArguments);
14
- }
15
- else {
16
- throw new Error("Invalid client, expected SageMakerGeospatial | SageMakerGeospatialClient");
17
- }
18
- yield page;
19
- const prevToken = token;
20
- token = page.NextToken;
21
- hasNext = !!(token && (!config.stopOnSameToken || token !== prevToken));
22
- }
23
- return undefined;
24
- }
4
+ export const paginateSearchRasterDataCollection = createPaginator(SageMakerGeospatialClient, SearchRasterDataCollectionCommand, "NextToken", "NextToken", "");
@@ -1,6 +1,5 @@
1
- import { EndpointParameterInstructions } from "@smithy/middleware-endpoint";
2
1
  import { Command as $Command } from "@smithy/smithy-client";
3
- import { Handler, HttpHandlerOptions as __HttpHandlerOptions, MetadataBearer as __MetadataBearer, MiddlewareStack } from "@smithy/types";
2
+ import { MetadataBearer as __MetadataBearer } from "@smithy/types";
4
3
  import { DeleteEarthObservationJobInput, DeleteEarthObservationJobOutput } from "../models/models_0";
5
4
  import { SageMakerGeospatialClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes } from "../SageMakerGeospatialClient";
6
5
  /**
@@ -21,6 +20,10 @@ export interface DeleteEarthObservationJobCommandInput extends DeleteEarthObserv
21
20
  */
22
21
  export interface DeleteEarthObservationJobCommandOutput extends DeleteEarthObservationJobOutput, __MetadataBearer {
23
22
  }
23
+ declare const DeleteEarthObservationJobCommand_base: {
24
+ new (input: DeleteEarthObservationJobCommandInput): import("@smithy/smithy-client").CommandImpl<DeleteEarthObservationJobCommandInput, DeleteEarthObservationJobCommandOutput, SageMakerGeospatialClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes>;
25
+ getEndpointParameterInstructions(): import("@smithy/middleware-endpoint").EndpointParameterInstructions;
26
+ };
24
27
  /**
25
28
  * @public
26
29
  * <p>Use this operation to delete an Earth Observation job.</p>
@@ -67,23 +70,5 @@ export interface DeleteEarthObservationJobCommandOutput extends DeleteEarthObser
67
70
  * <p>Base exception class for all service exceptions from SageMakerGeospatial service.</p>
68
71
  *
69
72
  */
70
- export declare class DeleteEarthObservationJobCommand extends $Command<DeleteEarthObservationJobCommandInput, DeleteEarthObservationJobCommandOutput, SageMakerGeospatialClientResolvedConfig> {
71
- readonly input: DeleteEarthObservationJobCommandInput;
72
- static getEndpointParameterInstructions(): EndpointParameterInstructions;
73
- /**
74
- * @public
75
- */
76
- constructor(input: DeleteEarthObservationJobCommandInput);
77
- /**
78
- * @internal
79
- */
80
- resolveMiddleware(clientStack: MiddlewareStack<ServiceInputTypes, ServiceOutputTypes>, configuration: SageMakerGeospatialClientResolvedConfig, options?: __HttpHandlerOptions): Handler<DeleteEarthObservationJobCommandInput, DeleteEarthObservationJobCommandOutput>;
81
- /**
82
- * @internal
83
- */
84
- private serialize;
85
- /**
86
- * @internal
87
- */
88
- private deserialize;
73
+ export declare class DeleteEarthObservationJobCommand extends DeleteEarthObservationJobCommand_base {
89
74
  }
@@ -1,6 +1,5 @@
1
- import { EndpointParameterInstructions } from "@smithy/middleware-endpoint";
2
1
  import { Command as $Command } from "@smithy/smithy-client";
3
- import { Handler, HttpHandlerOptions as __HttpHandlerOptions, MetadataBearer as __MetadataBearer, MiddlewareStack } from "@smithy/types";
2
+ import { MetadataBearer as __MetadataBearer } from "@smithy/types";
4
3
  import { DeleteVectorEnrichmentJobInput, DeleteVectorEnrichmentJobOutput } from "../models/models_0";
5
4
  import { SageMakerGeospatialClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes } from "../SageMakerGeospatialClient";
6
5
  /**
@@ -21,6 +20,10 @@ export interface DeleteVectorEnrichmentJobCommandInput extends DeleteVectorEnric
21
20
  */
22
21
  export interface DeleteVectorEnrichmentJobCommandOutput extends DeleteVectorEnrichmentJobOutput, __MetadataBearer {
23
22
  }
23
+ declare const DeleteVectorEnrichmentJobCommand_base: {
24
+ new (input: DeleteVectorEnrichmentJobCommandInput): import("@smithy/smithy-client").CommandImpl<DeleteVectorEnrichmentJobCommandInput, DeleteVectorEnrichmentJobCommandOutput, SageMakerGeospatialClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes>;
25
+ getEndpointParameterInstructions(): import("@smithy/middleware-endpoint").EndpointParameterInstructions;
26
+ };
24
27
  /**
25
28
  * @public
26
29
  * <p>Use this operation to delete a Vector Enrichment job.</p>
@@ -67,23 +70,5 @@ export interface DeleteVectorEnrichmentJobCommandOutput extends DeleteVectorEnri
67
70
  * <p>Base exception class for all service exceptions from SageMakerGeospatial service.</p>
68
71
  *
69
72
  */
70
- export declare class DeleteVectorEnrichmentJobCommand extends $Command<DeleteVectorEnrichmentJobCommandInput, DeleteVectorEnrichmentJobCommandOutput, SageMakerGeospatialClientResolvedConfig> {
71
- readonly input: DeleteVectorEnrichmentJobCommandInput;
72
- static getEndpointParameterInstructions(): EndpointParameterInstructions;
73
- /**
74
- * @public
75
- */
76
- constructor(input: DeleteVectorEnrichmentJobCommandInput);
77
- /**
78
- * @internal
79
- */
80
- resolveMiddleware(clientStack: MiddlewareStack<ServiceInputTypes, ServiceOutputTypes>, configuration: SageMakerGeospatialClientResolvedConfig, options?: __HttpHandlerOptions): Handler<DeleteVectorEnrichmentJobCommandInput, DeleteVectorEnrichmentJobCommandOutput>;
81
- /**
82
- * @internal
83
- */
84
- private serialize;
85
- /**
86
- * @internal
87
- */
88
- private deserialize;
73
+ export declare class DeleteVectorEnrichmentJobCommand extends DeleteVectorEnrichmentJobCommand_base {
89
74
  }
@@ -1,6 +1,5 @@
1
- import { EndpointParameterInstructions } from "@smithy/middleware-endpoint";
2
1
  import { Command as $Command } from "@smithy/smithy-client";
3
- import { Handler, HttpHandlerOptions as __HttpHandlerOptions, MetadataBearer as __MetadataBearer, MiddlewareStack } from "@smithy/types";
2
+ import { MetadataBearer as __MetadataBearer } from "@smithy/types";
4
3
  import { ExportEarthObservationJobInput, ExportEarthObservationJobOutput } from "../models/models_0";
5
4
  import { SageMakerGeospatialClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes } from "../SageMakerGeospatialClient";
6
5
  /**
@@ -21,6 +20,10 @@ export interface ExportEarthObservationJobCommandInput extends ExportEarthObserv
21
20
  */
22
21
  export interface ExportEarthObservationJobCommandOutput extends ExportEarthObservationJobOutput, __MetadataBearer {
23
22
  }
23
+ declare const ExportEarthObservationJobCommand_base: {
24
+ new (input: ExportEarthObservationJobCommandInput): import("@smithy/smithy-client").CommandImpl<ExportEarthObservationJobCommandInput, ExportEarthObservationJobCommandOutput, SageMakerGeospatialClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes>;
25
+ getEndpointParameterInstructions(): import("@smithy/middleware-endpoint").EndpointParameterInstructions;
26
+ };
24
27
  /**
25
28
  * @public
26
29
  * <p>Use this operation to export results of an Earth Observation job and optionally source images used as input to the EOJ to an Amazon S3 location.</p>
@@ -91,23 +94,5 @@ export interface ExportEarthObservationJobCommandOutput extends ExportEarthObser
91
94
  * <p>Base exception class for all service exceptions from SageMakerGeospatial service.</p>
92
95
  *
93
96
  */
94
- export declare class ExportEarthObservationJobCommand extends $Command<ExportEarthObservationJobCommandInput, ExportEarthObservationJobCommandOutput, SageMakerGeospatialClientResolvedConfig> {
95
- readonly input: ExportEarthObservationJobCommandInput;
96
- static getEndpointParameterInstructions(): EndpointParameterInstructions;
97
- /**
98
- * @public
99
- */
100
- constructor(input: ExportEarthObservationJobCommandInput);
101
- /**
102
- * @internal
103
- */
104
- resolveMiddleware(clientStack: MiddlewareStack<ServiceInputTypes, ServiceOutputTypes>, configuration: SageMakerGeospatialClientResolvedConfig, options?: __HttpHandlerOptions): Handler<ExportEarthObservationJobCommandInput, ExportEarthObservationJobCommandOutput>;
105
- /**
106
- * @internal
107
- */
108
- private serialize;
109
- /**
110
- * @internal
111
- */
112
- private deserialize;
97
+ export declare class ExportEarthObservationJobCommand extends ExportEarthObservationJobCommand_base {
113
98
  }
@@ -1,6 +1,5 @@
1
- import { EndpointParameterInstructions } from "@smithy/middleware-endpoint";
2
1
  import { Command as $Command } from "@smithy/smithy-client";
3
- import { Handler, HttpHandlerOptions as __HttpHandlerOptions, MetadataBearer as __MetadataBearer, MiddlewareStack } from "@smithy/types";
2
+ import { MetadataBearer as __MetadataBearer } from "@smithy/types";
4
3
  import { ExportVectorEnrichmentJobInput, ExportVectorEnrichmentJobOutput } from "../models/models_0";
5
4
  import { SageMakerGeospatialClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes } from "../SageMakerGeospatialClient";
6
5
  /**
@@ -21,6 +20,10 @@ export interface ExportVectorEnrichmentJobCommandInput extends ExportVectorEnric
21
20
  */
22
21
  export interface ExportVectorEnrichmentJobCommandOutput extends ExportVectorEnrichmentJobOutput, __MetadataBearer {
23
22
  }
23
+ declare const ExportVectorEnrichmentJobCommand_base: {
24
+ new (input: ExportVectorEnrichmentJobCommandInput): import("@smithy/smithy-client").CommandImpl<ExportVectorEnrichmentJobCommandInput, ExportVectorEnrichmentJobCommandOutput, SageMakerGeospatialClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes>;
25
+ getEndpointParameterInstructions(): import("@smithy/middleware-endpoint").EndpointParameterInstructions;
26
+ };
24
27
  /**
25
28
  * @public
26
29
  * <p>Use this operation to copy results of a Vector Enrichment job to an Amazon S3 location.</p>
@@ -89,23 +92,5 @@ export interface ExportVectorEnrichmentJobCommandOutput extends ExportVectorEnri
89
92
  * <p>Base exception class for all service exceptions from SageMakerGeospatial service.</p>
90
93
  *
91
94
  */
92
- export declare class ExportVectorEnrichmentJobCommand extends $Command<ExportVectorEnrichmentJobCommandInput, ExportVectorEnrichmentJobCommandOutput, SageMakerGeospatialClientResolvedConfig> {
93
- readonly input: ExportVectorEnrichmentJobCommandInput;
94
- static getEndpointParameterInstructions(): EndpointParameterInstructions;
95
- /**
96
- * @public
97
- */
98
- constructor(input: ExportVectorEnrichmentJobCommandInput);
99
- /**
100
- * @internal
101
- */
102
- resolveMiddleware(clientStack: MiddlewareStack<ServiceInputTypes, ServiceOutputTypes>, configuration: SageMakerGeospatialClientResolvedConfig, options?: __HttpHandlerOptions): Handler<ExportVectorEnrichmentJobCommandInput, ExportVectorEnrichmentJobCommandOutput>;
103
- /**
104
- * @internal
105
- */
106
- private serialize;
107
- /**
108
- * @internal
109
- */
110
- private deserialize;
95
+ export declare class ExportVectorEnrichmentJobCommand extends ExportVectorEnrichmentJobCommand_base {
111
96
  }
@@ -1,6 +1,5 @@
1
- import { EndpointParameterInstructions } from "@smithy/middleware-endpoint";
2
1
  import { Command as $Command } from "@smithy/smithy-client";
3
- import { Handler, HttpHandlerOptions as __HttpHandlerOptions, MetadataBearer as __MetadataBearer, MiddlewareStack } from "@smithy/types";
2
+ import { MetadataBearer as __MetadataBearer } from "@smithy/types";
4
3
  import { GetEarthObservationJobInput, GetEarthObservationJobOutput } from "../models/models_0";
5
4
  import { SageMakerGeospatialClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes } from "../SageMakerGeospatialClient";
6
5
  /**
@@ -21,6 +20,10 @@ export interface GetEarthObservationJobCommandInput extends GetEarthObservationJ
21
20
  */
22
21
  export interface GetEarthObservationJobCommandOutput extends GetEarthObservationJobOutput, __MetadataBearer {
23
22
  }
23
+ declare const GetEarthObservationJobCommand_base: {
24
+ new (input: GetEarthObservationJobCommandInput): import("@smithy/smithy-client").CommandImpl<GetEarthObservationJobCommandInput, GetEarthObservationJobCommandOutput, SageMakerGeospatialClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes>;
25
+ getEndpointParameterInstructions(): import("@smithy/middleware-endpoint").EndpointParameterInstructions;
26
+ };
24
27
  /**
25
28
  * @public
26
29
  * <p>Get the details for a previously initiated Earth Observation job.</p>
@@ -234,23 +237,5 @@ export interface GetEarthObservationJobCommandOutput extends GetEarthObservation
234
237
  * <p>Base exception class for all service exceptions from SageMakerGeospatial service.</p>
235
238
  *
236
239
  */
237
- export declare class GetEarthObservationJobCommand extends $Command<GetEarthObservationJobCommandInput, GetEarthObservationJobCommandOutput, SageMakerGeospatialClientResolvedConfig> {
238
- readonly input: GetEarthObservationJobCommandInput;
239
- static getEndpointParameterInstructions(): EndpointParameterInstructions;
240
- /**
241
- * @public
242
- */
243
- constructor(input: GetEarthObservationJobCommandInput);
244
- /**
245
- * @internal
246
- */
247
- resolveMiddleware(clientStack: MiddlewareStack<ServiceInputTypes, ServiceOutputTypes>, configuration: SageMakerGeospatialClientResolvedConfig, options?: __HttpHandlerOptions): Handler<GetEarthObservationJobCommandInput, GetEarthObservationJobCommandOutput>;
248
- /**
249
- * @internal
250
- */
251
- private serialize;
252
- /**
253
- * @internal
254
- */
255
- private deserialize;
240
+ export declare class GetEarthObservationJobCommand extends GetEarthObservationJobCommand_base {
256
241
  }