@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.
@@ -2,51 +2,37 @@
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
3
  exports.de_UntagResourceCommand = exports.de_TagResourceCommand = exports.de_StopVectorEnrichmentJobCommand = exports.de_StopEarthObservationJobCommand = exports.de_StartVectorEnrichmentJobCommand = exports.de_StartEarthObservationJobCommand = exports.de_SearchRasterDataCollectionCommand = exports.de_ListVectorEnrichmentJobsCommand = exports.de_ListTagsForResourceCommand = exports.de_ListRasterDataCollectionsCommand = exports.de_ListEarthObservationJobsCommand = exports.de_GetVectorEnrichmentJobCommand = exports.de_GetTileCommand = exports.de_GetRasterDataCollectionCommand = exports.de_GetEarthObservationJobCommand = exports.de_ExportVectorEnrichmentJobCommand = exports.de_ExportEarthObservationJobCommand = exports.de_DeleteVectorEnrichmentJobCommand = exports.de_DeleteEarthObservationJobCommand = exports.se_UntagResourceCommand = exports.se_TagResourceCommand = exports.se_StopVectorEnrichmentJobCommand = exports.se_StopEarthObservationJobCommand = exports.se_StartVectorEnrichmentJobCommand = exports.se_StartEarthObservationJobCommand = exports.se_SearchRasterDataCollectionCommand = exports.se_ListVectorEnrichmentJobsCommand = exports.se_ListTagsForResourceCommand = exports.se_ListRasterDataCollectionsCommand = exports.se_ListEarthObservationJobsCommand = exports.se_GetVectorEnrichmentJobCommand = exports.se_GetTileCommand = exports.se_GetRasterDataCollectionCommand = exports.se_GetEarthObservationJobCommand = exports.se_ExportVectorEnrichmentJobCommand = exports.se_ExportEarthObservationJobCommand = exports.se_DeleteVectorEnrichmentJobCommand = exports.se_DeleteEarthObservationJobCommand = void 0;
4
4
  const core_1 = require("@aws-sdk/core");
5
- const protocol_http_1 = require("@smithy/protocol-http");
5
+ const core_2 = require("@smithy/core");
6
6
  const smithy_client_1 = require("@smithy/smithy-client");
7
7
  const uuid_1 = require("uuid");
8
8
  const models_0_1 = require("../models/models_0");
9
9
  const SageMakerGeospatialServiceException_1 = require("../models/SageMakerGeospatialServiceException");
10
10
  const se_DeleteEarthObservationJobCommand = async (input, context) => {
11
- const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
11
+ const b = (0, core_2.requestBuilder)(input, context);
12
12
  const headers = {};
13
- let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/earth-observation-jobs/{Arn}";
14
- resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "Arn", () => input.Arn, "{Arn}", false);
13
+ b.bp("/earth-observation-jobs/{Arn}");
14
+ b.p("Arn", () => input.Arn, "{Arn}", false);
15
15
  let body;
16
- return new protocol_http_1.HttpRequest({
17
- protocol,
18
- hostname,
19
- port,
20
- method: "DELETE",
21
- headers,
22
- path: resolvedPath,
23
- body,
24
- });
16
+ b.m("DELETE").h(headers).b(body);
17
+ return b.build();
25
18
  };
26
19
  exports.se_DeleteEarthObservationJobCommand = se_DeleteEarthObservationJobCommand;
27
20
  const se_DeleteVectorEnrichmentJobCommand = async (input, context) => {
28
- const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
21
+ const b = (0, core_2.requestBuilder)(input, context);
29
22
  const headers = {};
30
- let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/vector-enrichment-jobs/{Arn}";
31
- resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "Arn", () => input.Arn, "{Arn}", false);
23
+ b.bp("/vector-enrichment-jobs/{Arn}");
24
+ b.p("Arn", () => input.Arn, "{Arn}", false);
32
25
  let body;
33
- return new protocol_http_1.HttpRequest({
34
- protocol,
35
- hostname,
36
- port,
37
- method: "DELETE",
38
- headers,
39
- path: resolvedPath,
40
- body,
41
- });
26
+ b.m("DELETE").h(headers).b(body);
27
+ return b.build();
42
28
  };
43
29
  exports.se_DeleteVectorEnrichmentJobCommand = se_DeleteVectorEnrichmentJobCommand;
44
30
  const se_ExportEarthObservationJobCommand = async (input, context) => {
45
- const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
31
+ const b = (0, core_2.requestBuilder)(input, context);
46
32
  const headers = {
47
33
  "content-type": "application/json",
48
34
  };
49
- const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/export-earth-observation-job";
35
+ b.bp("/export-earth-observation-job");
50
36
  let body;
51
37
  body = JSON.stringify((0, smithy_client_1.take)(input, {
52
38
  Arn: [],
@@ -55,23 +41,16 @@ const se_ExportEarthObservationJobCommand = async (input, context) => {
55
41
  ExportSourceImages: [],
56
42
  OutputConfig: (_) => (0, smithy_client_1._json)(_),
57
43
  }));
58
- return new protocol_http_1.HttpRequest({
59
- protocol,
60
- hostname,
61
- port,
62
- method: "POST",
63
- headers,
64
- path: resolvedPath,
65
- body,
66
- });
44
+ b.m("POST").h(headers).b(body);
45
+ return b.build();
67
46
  };
68
47
  exports.se_ExportEarthObservationJobCommand = se_ExportEarthObservationJobCommand;
69
48
  const se_ExportVectorEnrichmentJobCommand = async (input, context) => {
70
- const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
49
+ const b = (0, core_2.requestBuilder)(input, context);
71
50
  const headers = {
72
51
  "content-type": "application/json",
73
52
  };
74
- const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/export-vector-enrichment-jobs";
53
+ b.bp("/export-vector-enrichment-jobs");
75
54
  let body;
76
55
  body = JSON.stringify((0, smithy_client_1.take)(input, {
77
56
  Arn: [],
@@ -79,108 +58,72 @@ const se_ExportVectorEnrichmentJobCommand = async (input, context) => {
79
58
  ExecutionRoleArn: [],
80
59
  OutputConfig: (_) => (0, smithy_client_1._json)(_),
81
60
  }));
82
- return new protocol_http_1.HttpRequest({
83
- protocol,
84
- hostname,
85
- port,
86
- method: "POST",
87
- headers,
88
- path: resolvedPath,
89
- body,
90
- });
61
+ b.m("POST").h(headers).b(body);
62
+ return b.build();
91
63
  };
92
64
  exports.se_ExportVectorEnrichmentJobCommand = se_ExportVectorEnrichmentJobCommand;
93
65
  const se_GetEarthObservationJobCommand = async (input, context) => {
94
- const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
66
+ const b = (0, core_2.requestBuilder)(input, context);
95
67
  const headers = {};
96
- let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/earth-observation-jobs/{Arn}";
97
- resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "Arn", () => input.Arn, "{Arn}", false);
68
+ b.bp("/earth-observation-jobs/{Arn}");
69
+ b.p("Arn", () => input.Arn, "{Arn}", false);
98
70
  let body;
99
- return new protocol_http_1.HttpRequest({
100
- protocol,
101
- hostname,
102
- port,
103
- method: "GET",
104
- headers,
105
- path: resolvedPath,
106
- body,
107
- });
71
+ b.m("GET").h(headers).b(body);
72
+ return b.build();
108
73
  };
109
74
  exports.se_GetEarthObservationJobCommand = se_GetEarthObservationJobCommand;
110
75
  const se_GetRasterDataCollectionCommand = async (input, context) => {
111
- const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
76
+ const b = (0, core_2.requestBuilder)(input, context);
112
77
  const headers = {};
113
- let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/raster-data-collection/{Arn}";
114
- resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "Arn", () => input.Arn, "{Arn}", false);
78
+ b.bp("/raster-data-collection/{Arn}");
79
+ b.p("Arn", () => input.Arn, "{Arn}", false);
115
80
  let body;
116
- return new protocol_http_1.HttpRequest({
117
- protocol,
118
- hostname,
119
- port,
120
- method: "GET",
121
- headers,
122
- path: resolvedPath,
123
- body,
124
- });
81
+ b.m("GET").h(headers).b(body);
82
+ return b.build();
125
83
  };
126
84
  exports.se_GetRasterDataCollectionCommand = se_GetRasterDataCollectionCommand;
127
85
  const se_GetTileCommand = async (input, context) => {
128
- const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
86
+ const b = (0, core_2.requestBuilder)(input, context);
129
87
  const headers = {};
130
- let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/tile/{z}/{x}/{y}";
131
- resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "x", () => input.x.toString(), "{x}", false);
132
- resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "y", () => input.y.toString(), "{y}", false);
133
- resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "z", () => input.z.toString(), "{z}", false);
88
+ b.bp("/tile/{z}/{x}/{y}");
89
+ b.p("x", () => input.x.toString(), "{x}", false);
90
+ b.p("y", () => input.y.toString(), "{y}", false);
91
+ b.p("z", () => input.z.toString(), "{z}", false);
134
92
  const query = (0, smithy_client_1.map)({
135
- ImageAssets: [
93
+ [_IA]: [
136
94
  (0, smithy_client_1.expectNonNull)(input.ImageAssets, `ImageAssets`) != null,
137
- () => (input.ImageAssets || []).map((_entry) => _entry),
95
+ () => (input[_IA] || []).map((_entry) => _entry),
138
96
  ],
139
- Target: [, (0, smithy_client_1.expectNonNull)(input.Target, `Target`)],
140
- Arn: [, (0, smithy_client_1.expectNonNull)(input.Arn, `Arn`)],
141
- ImageMask: [() => input.ImageMask !== void 0, () => input.ImageMask.toString()],
142
- OutputFormat: [, input.OutputFormat],
143
- TimeRangeFilter: [, input.TimeRangeFilter],
144
- PropertyFilters: [, input.PropertyFilters],
145
- OutputDataType: [, input.OutputDataType],
146
- ExecutionRoleArn: [, input.ExecutionRoleArn],
97
+ [_T]: [, (0, smithy_client_1.expectNonNull)(input[_T], `Target`)],
98
+ [_A]: [, (0, smithy_client_1.expectNonNull)(input[_A], `Arn`)],
99
+ [_IM]: [() => input.ImageMask !== void 0, () => input[_IM].toString()],
100
+ [_OF]: [, input[_OF]],
101
+ [_TRF]: [, input[_TRF]],
102
+ [_PF]: [, input[_PF]],
103
+ [_ODT]: [, input[_ODT]],
104
+ [_ERA]: [, input[_ERA]],
147
105
  });
148
106
  let body;
149
- return new protocol_http_1.HttpRequest({
150
- protocol,
151
- hostname,
152
- port,
153
- method: "GET",
154
- headers,
155
- path: resolvedPath,
156
- query,
157
- body,
158
- });
107
+ b.m("GET").h(headers).q(query).b(body);
108
+ return b.build();
159
109
  };
160
110
  exports.se_GetTileCommand = se_GetTileCommand;
161
111
  const se_GetVectorEnrichmentJobCommand = async (input, context) => {
162
- const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
112
+ const b = (0, core_2.requestBuilder)(input, context);
163
113
  const headers = {};
164
- let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/vector-enrichment-jobs/{Arn}";
165
- resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "Arn", () => input.Arn, "{Arn}", false);
114
+ b.bp("/vector-enrichment-jobs/{Arn}");
115
+ b.p("Arn", () => input.Arn, "{Arn}", false);
166
116
  let body;
167
- return new protocol_http_1.HttpRequest({
168
- protocol,
169
- hostname,
170
- port,
171
- method: "GET",
172
- headers,
173
- path: resolvedPath,
174
- body,
175
- });
117
+ b.m("GET").h(headers).b(body);
118
+ return b.build();
176
119
  };
177
120
  exports.se_GetVectorEnrichmentJobCommand = se_GetVectorEnrichmentJobCommand;
178
121
  const se_ListEarthObservationJobsCommand = async (input, context) => {
179
- const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
122
+ const b = (0, core_2.requestBuilder)(input, context);
180
123
  const headers = {
181
124
  "content-type": "application/json",
182
125
  };
183
- const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/list-earth-observation-jobs";
126
+ b.bp("/list-earth-observation-jobs");
184
127
  let body;
185
128
  body = JSON.stringify((0, smithy_client_1.take)(input, {
186
129
  MaxResults: [],
@@ -189,61 +132,39 @@ const se_ListEarthObservationJobsCommand = async (input, context) => {
189
132
  SortOrder: [],
190
133
  StatusEquals: [],
191
134
  }));
192
- return new protocol_http_1.HttpRequest({
193
- protocol,
194
- hostname,
195
- port,
196
- method: "POST",
197
- headers,
198
- path: resolvedPath,
199
- body,
200
- });
135
+ b.m("POST").h(headers).b(body);
136
+ return b.build();
201
137
  };
202
138
  exports.se_ListEarthObservationJobsCommand = se_ListEarthObservationJobsCommand;
203
139
  const se_ListRasterDataCollectionsCommand = async (input, context) => {
204
- const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
140
+ const b = (0, core_2.requestBuilder)(input, context);
205
141
  const headers = {};
206
- const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/raster-data-collections";
142
+ b.bp("/raster-data-collections");
207
143
  const query = (0, smithy_client_1.map)({
208
- NextToken: [, input.NextToken],
209
- MaxResults: [() => input.MaxResults !== void 0, () => input.MaxResults.toString()],
144
+ [_NT]: [, input[_NT]],
145
+ [_MR]: [() => input.MaxResults !== void 0, () => input[_MR].toString()],
210
146
  });
211
147
  let body;
212
- return new protocol_http_1.HttpRequest({
213
- protocol,
214
- hostname,
215
- port,
216
- method: "GET",
217
- headers,
218
- path: resolvedPath,
219
- query,
220
- body,
221
- });
148
+ b.m("GET").h(headers).q(query).b(body);
149
+ return b.build();
222
150
  };
223
151
  exports.se_ListRasterDataCollectionsCommand = se_ListRasterDataCollectionsCommand;
224
152
  const se_ListTagsForResourceCommand = async (input, context) => {
225
- const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
153
+ const b = (0, core_2.requestBuilder)(input, context);
226
154
  const headers = {};
227
- let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/tags/{ResourceArn}";
228
- resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "ResourceArn", () => input.ResourceArn, "{ResourceArn}", false);
155
+ b.bp("/tags/{ResourceArn}");
156
+ b.p("ResourceArn", () => input.ResourceArn, "{ResourceArn}", false);
229
157
  let body;
230
- return new protocol_http_1.HttpRequest({
231
- protocol,
232
- hostname,
233
- port,
234
- method: "GET",
235
- headers,
236
- path: resolvedPath,
237
- body,
238
- });
158
+ b.m("GET").h(headers).b(body);
159
+ return b.build();
239
160
  };
240
161
  exports.se_ListTagsForResourceCommand = se_ListTagsForResourceCommand;
241
162
  const se_ListVectorEnrichmentJobsCommand = async (input, context) => {
242
- const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
163
+ const b = (0, core_2.requestBuilder)(input, context);
243
164
  const headers = {
244
165
  "content-type": "application/json",
245
166
  };
246
- const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/list-vector-enrichment-jobs";
167
+ b.bp("/list-vector-enrichment-jobs");
247
168
  let body;
248
169
  body = JSON.stringify((0, smithy_client_1.take)(input, {
249
170
  MaxResults: [],
@@ -252,46 +173,32 @@ const se_ListVectorEnrichmentJobsCommand = async (input, context) => {
252
173
  SortOrder: [],
253
174
  StatusEquals: [],
254
175
  }));
255
- return new protocol_http_1.HttpRequest({
256
- protocol,
257
- hostname,
258
- port,
259
- method: "POST",
260
- headers,
261
- path: resolvedPath,
262
- body,
263
- });
176
+ b.m("POST").h(headers).b(body);
177
+ return b.build();
264
178
  };
265
179
  exports.se_ListVectorEnrichmentJobsCommand = se_ListVectorEnrichmentJobsCommand;
266
180
  const se_SearchRasterDataCollectionCommand = async (input, context) => {
267
- const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
181
+ const b = (0, core_2.requestBuilder)(input, context);
268
182
  const headers = {
269
183
  "content-type": "application/json",
270
184
  };
271
- const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/search-raster-data-collection";
185
+ b.bp("/search-raster-data-collection");
272
186
  let body;
273
187
  body = JSON.stringify((0, smithy_client_1.take)(input, {
274
188
  Arn: [],
275
189
  NextToken: [],
276
190
  RasterDataCollectionQuery: (_) => se_RasterDataCollectionQueryWithBandFilterInput(_, context),
277
191
  }));
278
- return new protocol_http_1.HttpRequest({
279
- protocol,
280
- hostname,
281
- port,
282
- method: "POST",
283
- headers,
284
- path: resolvedPath,
285
- body,
286
- });
192
+ b.m("POST").h(headers).b(body);
193
+ return b.build();
287
194
  };
288
195
  exports.se_SearchRasterDataCollectionCommand = se_SearchRasterDataCollectionCommand;
289
196
  const se_StartEarthObservationJobCommand = async (input, context) => {
290
- const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
197
+ const b = (0, core_2.requestBuilder)(input, context);
291
198
  const headers = {
292
199
  "content-type": "application/json",
293
200
  };
294
- const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/earth-observation-jobs";
201
+ b.bp("/earth-observation-jobs");
295
202
  let body;
296
203
  body = JSON.stringify((0, smithy_client_1.take)(input, {
297
204
  ClientToken: [true, (_) => _ ?? (0, uuid_1.v4)()],
@@ -302,23 +209,16 @@ const se_StartEarthObservationJobCommand = async (input, context) => {
302
209
  Name: [],
303
210
  Tags: (_) => (0, smithy_client_1._json)(_),
304
211
  }));
305
- return new protocol_http_1.HttpRequest({
306
- protocol,
307
- hostname,
308
- port,
309
- method: "POST",
310
- headers,
311
- path: resolvedPath,
312
- body,
313
- });
212
+ b.m("POST").h(headers).b(body);
213
+ return b.build();
314
214
  };
315
215
  exports.se_StartEarthObservationJobCommand = se_StartEarthObservationJobCommand;
316
216
  const se_StartVectorEnrichmentJobCommand = async (input, context) => {
317
- const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
217
+ const b = (0, core_2.requestBuilder)(input, context);
318
218
  const headers = {
319
219
  "content-type": "application/json",
320
220
  };
321
- const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/vector-enrichment-jobs";
221
+ b.bp("/vector-enrichment-jobs");
322
222
  let body;
323
223
  body = JSON.stringify((0, smithy_client_1.take)(input, {
324
224
  ClientToken: [true, (_) => _ ?? (0, uuid_1.v4)()],
@@ -329,103 +229,67 @@ const se_StartVectorEnrichmentJobCommand = async (input, context) => {
329
229
  Name: [],
330
230
  Tags: (_) => (0, smithy_client_1._json)(_),
331
231
  }));
332
- return new protocol_http_1.HttpRequest({
333
- protocol,
334
- hostname,
335
- port,
336
- method: "POST",
337
- headers,
338
- path: resolvedPath,
339
- body,
340
- });
232
+ b.m("POST").h(headers).b(body);
233
+ return b.build();
341
234
  };
342
235
  exports.se_StartVectorEnrichmentJobCommand = se_StartVectorEnrichmentJobCommand;
343
236
  const se_StopEarthObservationJobCommand = async (input, context) => {
344
- const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
237
+ const b = (0, core_2.requestBuilder)(input, context);
345
238
  const headers = {
346
239
  "content-type": "application/json",
347
240
  };
348
- const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/earth-observation-jobs/stop";
241
+ b.bp("/earth-observation-jobs/stop");
349
242
  let body;
350
243
  body = JSON.stringify((0, smithy_client_1.take)(input, {
351
244
  Arn: [],
352
245
  }));
353
- return new protocol_http_1.HttpRequest({
354
- protocol,
355
- hostname,
356
- port,
357
- method: "POST",
358
- headers,
359
- path: resolvedPath,
360
- body,
361
- });
246
+ b.m("POST").h(headers).b(body);
247
+ return b.build();
362
248
  };
363
249
  exports.se_StopEarthObservationJobCommand = se_StopEarthObservationJobCommand;
364
250
  const se_StopVectorEnrichmentJobCommand = async (input, context) => {
365
- const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
251
+ const b = (0, core_2.requestBuilder)(input, context);
366
252
  const headers = {
367
253
  "content-type": "application/json",
368
254
  };
369
- const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/vector-enrichment-jobs/stop";
255
+ b.bp("/vector-enrichment-jobs/stop");
370
256
  let body;
371
257
  body = JSON.stringify((0, smithy_client_1.take)(input, {
372
258
  Arn: [],
373
259
  }));
374
- return new protocol_http_1.HttpRequest({
375
- protocol,
376
- hostname,
377
- port,
378
- method: "POST",
379
- headers,
380
- path: resolvedPath,
381
- body,
382
- });
260
+ b.m("POST").h(headers).b(body);
261
+ return b.build();
383
262
  };
384
263
  exports.se_StopVectorEnrichmentJobCommand = se_StopVectorEnrichmentJobCommand;
385
264
  const se_TagResourceCommand = async (input, context) => {
386
- const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
265
+ const b = (0, core_2.requestBuilder)(input, context);
387
266
  const headers = {
388
267
  "content-type": "application/json",
389
268
  };
390
- let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/tags/{ResourceArn}";
391
- resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "ResourceArn", () => input.ResourceArn, "{ResourceArn}", false);
269
+ b.bp("/tags/{ResourceArn}");
270
+ b.p("ResourceArn", () => input.ResourceArn, "{ResourceArn}", false);
392
271
  let body;
393
272
  body = JSON.stringify((0, smithy_client_1.take)(input, {
394
273
  Tags: (_) => (0, smithy_client_1._json)(_),
395
274
  }));
396
- return new protocol_http_1.HttpRequest({
397
- protocol,
398
- hostname,
399
- port,
400
- method: "PUT",
401
- headers,
402
- path: resolvedPath,
403
- body,
404
- });
275
+ b.m("PUT").h(headers).b(body);
276
+ return b.build();
405
277
  };
406
278
  exports.se_TagResourceCommand = se_TagResourceCommand;
407
279
  const se_UntagResourceCommand = async (input, context) => {
408
- const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
280
+ const b = (0, core_2.requestBuilder)(input, context);
409
281
  const headers = {};
410
- let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/tags/{ResourceArn}";
411
- resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "ResourceArn", () => input.ResourceArn, "{ResourceArn}", false);
282
+ b.bp("/tags/{ResourceArn}");
283
+ b.p("ResourceArn", () => input.ResourceArn, "{ResourceArn}", false);
412
284
  const query = (0, smithy_client_1.map)({
413
- tagKeys: [
285
+ [_tK]: [
414
286
  (0, smithy_client_1.expectNonNull)(input.TagKeys, `TagKeys`) != null,
415
- () => (input.TagKeys || []).map((_entry) => _entry),
287
+ () => (input[_TK] || []).map((_entry) => _entry),
416
288
  ],
417
289
  });
418
290
  let body;
419
- return new protocol_http_1.HttpRequest({
420
- protocol,
421
- hostname,
422
- port,
423
- method: "DELETE",
424
- headers,
425
- path: resolvedPath,
426
- query,
427
- body,
428
- });
291
+ b.m("DELETE").h(headers).q(query).b(body);
292
+ return b.build();
429
293
  };
430
294
  exports.se_UntagResourceCommand = se_UntagResourceCommand;
431
295
  const de_DeleteEarthObservationJobCommand = async (output, context) => {
@@ -2020,6 +1884,19 @@ const isSerializableHeaderValue = (value) => value !== undefined &&
2020
1884
  value !== "" &&
2021
1885
  (!Object.getOwnPropertyNames(value).includes("length") || value.length != 0) &&
2022
1886
  (!Object.getOwnPropertyNames(value).includes("size") || value.size != 0);
1887
+ const _A = "Arn";
1888
+ const _ERA = "ExecutionRoleArn";
1889
+ const _IA = "ImageAssets";
1890
+ const _IM = "ImageMask";
1891
+ const _MR = "MaxResults";
1892
+ const _NT = "NextToken";
1893
+ const _ODT = "OutputDataType";
1894
+ const _OF = "OutputFormat";
1895
+ const _PF = "PropertyFilters";
1896
+ const _T = "Target";
1897
+ const _TK = "TagKeys";
1898
+ const _TRF = "TimeRangeFilter";
1899
+ const _tK = "tagKeys";
2023
1900
  const parseBody = (streamBody, context) => collectBodyString(streamBody, context).then((encoded) => {
2024
1901
  if (encoded.length) {
2025
1902
  return JSON.parse(encoded);
@@ -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", "");