@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.
- package/dist-cjs/pagination/ListEarthObservationJobsPaginator.js +2 -23
- package/dist-cjs/pagination/ListRasterDataCollectionsPaginator.js +2 -23
- package/dist-cjs/pagination/ListVectorEnrichmentJobsPaginator.js +2 -23
- package/dist-cjs/pagination/SearchRasterDataCollectionPaginator.js +2 -23
- package/dist-cjs/protocols/Aws_restJson1.js +115 -238
- package/dist-es/pagination/ListEarthObservationJobsPaginator.js +2 -22
- package/dist-es/pagination/ListRasterDataCollectionsPaginator.js +2 -22
- package/dist-es/pagination/ListVectorEnrichmentJobsPaginator.js +2 -22
- package/dist-es/pagination/SearchRasterDataCollectionPaginator.js +2 -22
- package/dist-es/protocols/Aws_restJson1.js +116 -239
- package/dist-types/pagination/ListEarthObservationJobsPaginator.d.ts +1 -1
- package/dist-types/pagination/ListRasterDataCollectionsPaginator.d.ts +1 -1
- package/dist-types/pagination/ListVectorEnrichmentJobsPaginator.d.ts +1 -1
- package/dist-types/pagination/SearchRasterDataCollectionPaginator.d.ts +1 -1
- package/dist-types/ts3.4/pagination/ListEarthObservationJobsPaginator.d.ts +3 -3
- package/dist-types/ts3.4/pagination/ListRasterDataCollectionsPaginator.d.ts +3 -3
- package/dist-types/ts3.4/pagination/ListVectorEnrichmentJobsPaginator.d.ts +3 -3
- package/dist-types/ts3.4/pagination/SearchRasterDataCollectionPaginator.d.ts +3 -3
- package/package.json +7 -6
|
@@ -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
|
|
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
|
|
11
|
+
const b = (0, core_2.requestBuilder)(input, context);
|
|
12
12
|
const headers = {};
|
|
13
|
-
|
|
14
|
-
|
|
13
|
+
b.bp("/earth-observation-jobs/{Arn}");
|
|
14
|
+
b.p("Arn", () => input.Arn, "{Arn}", false);
|
|
15
15
|
let body;
|
|
16
|
-
|
|
17
|
-
|
|
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
|
|
21
|
+
const b = (0, core_2.requestBuilder)(input, context);
|
|
29
22
|
const headers = {};
|
|
30
|
-
|
|
31
|
-
|
|
23
|
+
b.bp("/vector-enrichment-jobs/{Arn}");
|
|
24
|
+
b.p("Arn", () => input.Arn, "{Arn}", false);
|
|
32
25
|
let body;
|
|
33
|
-
|
|
34
|
-
|
|
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
|
|
31
|
+
const b = (0, core_2.requestBuilder)(input, context);
|
|
46
32
|
const headers = {
|
|
47
33
|
"content-type": "application/json",
|
|
48
34
|
};
|
|
49
|
-
|
|
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
|
-
|
|
59
|
-
|
|
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
|
|
49
|
+
const b = (0, core_2.requestBuilder)(input, context);
|
|
71
50
|
const headers = {
|
|
72
51
|
"content-type": "application/json",
|
|
73
52
|
};
|
|
74
|
-
|
|
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
|
-
|
|
83
|
-
|
|
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
|
|
66
|
+
const b = (0, core_2.requestBuilder)(input, context);
|
|
95
67
|
const headers = {};
|
|
96
|
-
|
|
97
|
-
|
|
68
|
+
b.bp("/earth-observation-jobs/{Arn}");
|
|
69
|
+
b.p("Arn", () => input.Arn, "{Arn}", false);
|
|
98
70
|
let body;
|
|
99
|
-
|
|
100
|
-
|
|
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
|
|
76
|
+
const b = (0, core_2.requestBuilder)(input, context);
|
|
112
77
|
const headers = {};
|
|
113
|
-
|
|
114
|
-
|
|
78
|
+
b.bp("/raster-data-collection/{Arn}");
|
|
79
|
+
b.p("Arn", () => input.Arn, "{Arn}", false);
|
|
115
80
|
let body;
|
|
116
|
-
|
|
117
|
-
|
|
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
|
|
86
|
+
const b = (0, core_2.requestBuilder)(input, context);
|
|
129
87
|
const headers = {};
|
|
130
|
-
|
|
131
|
-
|
|
132
|
-
|
|
133
|
-
|
|
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
|
-
|
|
93
|
+
[_IA]: [
|
|
136
94
|
(0, smithy_client_1.expectNonNull)(input.ImageAssets, `ImageAssets`) != null,
|
|
137
|
-
() => (input
|
|
95
|
+
() => (input[_IA] || []).map((_entry) => _entry),
|
|
138
96
|
],
|
|
139
|
-
|
|
140
|
-
|
|
141
|
-
|
|
142
|
-
|
|
143
|
-
|
|
144
|
-
|
|
145
|
-
|
|
146
|
-
|
|
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
|
-
|
|
150
|
-
|
|
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
|
|
112
|
+
const b = (0, core_2.requestBuilder)(input, context);
|
|
163
113
|
const headers = {};
|
|
164
|
-
|
|
165
|
-
|
|
114
|
+
b.bp("/vector-enrichment-jobs/{Arn}");
|
|
115
|
+
b.p("Arn", () => input.Arn, "{Arn}", false);
|
|
166
116
|
let body;
|
|
167
|
-
|
|
168
|
-
|
|
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
|
|
122
|
+
const b = (0, core_2.requestBuilder)(input, context);
|
|
180
123
|
const headers = {
|
|
181
124
|
"content-type": "application/json",
|
|
182
125
|
};
|
|
183
|
-
|
|
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
|
-
|
|
193
|
-
|
|
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
|
|
140
|
+
const b = (0, core_2.requestBuilder)(input, context);
|
|
205
141
|
const headers = {};
|
|
206
|
-
|
|
142
|
+
b.bp("/raster-data-collections");
|
|
207
143
|
const query = (0, smithy_client_1.map)({
|
|
208
|
-
|
|
209
|
-
|
|
144
|
+
[_NT]: [, input[_NT]],
|
|
145
|
+
[_MR]: [() => input.MaxResults !== void 0, () => input[_MR].toString()],
|
|
210
146
|
});
|
|
211
147
|
let body;
|
|
212
|
-
|
|
213
|
-
|
|
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
|
|
153
|
+
const b = (0, core_2.requestBuilder)(input, context);
|
|
226
154
|
const headers = {};
|
|
227
|
-
|
|
228
|
-
|
|
155
|
+
b.bp("/tags/{ResourceArn}");
|
|
156
|
+
b.p("ResourceArn", () => input.ResourceArn, "{ResourceArn}", false);
|
|
229
157
|
let body;
|
|
230
|
-
|
|
231
|
-
|
|
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
|
|
163
|
+
const b = (0, core_2.requestBuilder)(input, context);
|
|
243
164
|
const headers = {
|
|
244
165
|
"content-type": "application/json",
|
|
245
166
|
};
|
|
246
|
-
|
|
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
|
-
|
|
256
|
-
|
|
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
|
|
181
|
+
const b = (0, core_2.requestBuilder)(input, context);
|
|
268
182
|
const headers = {
|
|
269
183
|
"content-type": "application/json",
|
|
270
184
|
};
|
|
271
|
-
|
|
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
|
-
|
|
279
|
-
|
|
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
|
|
197
|
+
const b = (0, core_2.requestBuilder)(input, context);
|
|
291
198
|
const headers = {
|
|
292
199
|
"content-type": "application/json",
|
|
293
200
|
};
|
|
294
|
-
|
|
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
|
-
|
|
306
|
-
|
|
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
|
|
217
|
+
const b = (0, core_2.requestBuilder)(input, context);
|
|
318
218
|
const headers = {
|
|
319
219
|
"content-type": "application/json",
|
|
320
220
|
};
|
|
321
|
-
|
|
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
|
-
|
|
333
|
-
|
|
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
|
|
237
|
+
const b = (0, core_2.requestBuilder)(input, context);
|
|
345
238
|
const headers = {
|
|
346
239
|
"content-type": "application/json",
|
|
347
240
|
};
|
|
348
|
-
|
|
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
|
-
|
|
354
|
-
|
|
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
|
|
251
|
+
const b = (0, core_2.requestBuilder)(input, context);
|
|
366
252
|
const headers = {
|
|
367
253
|
"content-type": "application/json",
|
|
368
254
|
};
|
|
369
|
-
|
|
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
|
-
|
|
375
|
-
|
|
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
|
|
265
|
+
const b = (0, core_2.requestBuilder)(input, context);
|
|
387
266
|
const headers = {
|
|
388
267
|
"content-type": "application/json",
|
|
389
268
|
};
|
|
390
|
-
|
|
391
|
-
|
|
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
|
-
|
|
397
|
-
|
|
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
|
|
280
|
+
const b = (0, core_2.requestBuilder)(input, context);
|
|
409
281
|
const headers = {};
|
|
410
|
-
|
|
411
|
-
|
|
282
|
+
b.bp("/tags/{ResourceArn}");
|
|
283
|
+
b.p("ResourceArn", () => input.ResourceArn, "{ResourceArn}", false);
|
|
412
284
|
const query = (0, smithy_client_1.map)({
|
|
413
|
-
|
|
285
|
+
[_tK]: [
|
|
414
286
|
(0, smithy_client_1.expectNonNull)(input.TagKeys, `TagKeys`) != null,
|
|
415
|
-
() => (input
|
|
287
|
+
() => (input[_TK] || []).map((_entry) => _entry),
|
|
416
288
|
],
|
|
417
289
|
});
|
|
418
290
|
let body;
|
|
419
|
-
|
|
420
|
-
|
|
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
|
|
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
|
|
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
|
|
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
|
|
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", "");
|