@aws-sdk/client-sagemaker-geospatial 3.474.0 → 3.477.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/protocols/Aws_restJson1.js +115 -238
- package/dist-es/protocols/Aws_restJson1.js +116 -239
- package/package.json +5 -4
|
@@ -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,47 +1,33 @@
|
|
|
1
1
|
import { awsExpectUnion as __expectUnion } from "@aws-sdk/core";
|
|
2
|
-
import {
|
|
3
|
-
import { _json, collectBody, decorateServiceException as __decorateServiceException, expectBoolean as __expectBoolean, expectInt32 as __expectInt32, expectNonNull as __expectNonNull, expectNumber as __expectNumber, expectObject as __expectObject, expectString as __expectString, limitedParseDouble as __limitedParseDouble, limitedParseFloat32 as __limitedParseFloat32, map, parseEpochTimestamp as __parseEpochTimestamp, parseRfc3339DateTimeWithOffset as __parseRfc3339DateTimeWithOffset,
|
|
2
|
+
import { requestBuilder as rb } from "@smithy/core";
|
|
3
|
+
import { _json, collectBody, decorateServiceException as __decorateServiceException, expectBoolean as __expectBoolean, expectInt32 as __expectInt32, expectNonNull as __expectNonNull, expectNumber as __expectNumber, expectObject as __expectObject, expectString as __expectString, limitedParseDouble as __limitedParseDouble, limitedParseFloat32 as __limitedParseFloat32, map, parseEpochTimestamp as __parseEpochTimestamp, parseRfc3339DateTimeWithOffset as __parseRfc3339DateTimeWithOffset, serializeFloat as __serializeFloat, take, withBaseException, } from "@smithy/smithy-client";
|
|
4
4
|
import { v4 as generateIdempotencyToken } from "uuid";
|
|
5
5
|
import { AccessDeniedException, AreaOfInterest, AreaOfInterestGeometry, ConflictException, InternalServerException, JobConfigInput, Property, ResourceNotFoundException, ServiceQuotaExceededException, ThrottlingException, ValidationException, } from "../models/models_0";
|
|
6
6
|
import { SageMakerGeospatialServiceException as __BaseException } from "../models/SageMakerGeospatialServiceException";
|
|
7
7
|
export const se_DeleteEarthObservationJobCommand = async (input, context) => {
|
|
8
|
-
const
|
|
8
|
+
const b = rb(input, context);
|
|
9
9
|
const headers = {};
|
|
10
|
-
|
|
11
|
-
|
|
10
|
+
b.bp("/earth-observation-jobs/{Arn}");
|
|
11
|
+
b.p("Arn", () => input.Arn, "{Arn}", false);
|
|
12
12
|
let body;
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
hostname,
|
|
16
|
-
port,
|
|
17
|
-
method: "DELETE",
|
|
18
|
-
headers,
|
|
19
|
-
path: resolvedPath,
|
|
20
|
-
body,
|
|
21
|
-
});
|
|
13
|
+
b.m("DELETE").h(headers).b(body);
|
|
14
|
+
return b.build();
|
|
22
15
|
};
|
|
23
16
|
export const se_DeleteVectorEnrichmentJobCommand = async (input, context) => {
|
|
24
|
-
const
|
|
17
|
+
const b = rb(input, context);
|
|
25
18
|
const headers = {};
|
|
26
|
-
|
|
27
|
-
|
|
19
|
+
b.bp("/vector-enrichment-jobs/{Arn}");
|
|
20
|
+
b.p("Arn", () => input.Arn, "{Arn}", false);
|
|
28
21
|
let body;
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
hostname,
|
|
32
|
-
port,
|
|
33
|
-
method: "DELETE",
|
|
34
|
-
headers,
|
|
35
|
-
path: resolvedPath,
|
|
36
|
-
body,
|
|
37
|
-
});
|
|
22
|
+
b.m("DELETE").h(headers).b(body);
|
|
23
|
+
return b.build();
|
|
38
24
|
};
|
|
39
25
|
export const se_ExportEarthObservationJobCommand = async (input, context) => {
|
|
40
|
-
const
|
|
26
|
+
const b = rb(input, context);
|
|
41
27
|
const headers = {
|
|
42
28
|
"content-type": "application/json",
|
|
43
29
|
};
|
|
44
|
-
|
|
30
|
+
b.bp("/export-earth-observation-job");
|
|
45
31
|
let body;
|
|
46
32
|
body = JSON.stringify(take(input, {
|
|
47
33
|
Arn: [],
|
|
@@ -50,22 +36,15 @@ export const se_ExportEarthObservationJobCommand = async (input, context) => {
|
|
|
50
36
|
ExportSourceImages: [],
|
|
51
37
|
OutputConfig: (_) => _json(_),
|
|
52
38
|
}));
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
hostname,
|
|
56
|
-
port,
|
|
57
|
-
method: "POST",
|
|
58
|
-
headers,
|
|
59
|
-
path: resolvedPath,
|
|
60
|
-
body,
|
|
61
|
-
});
|
|
39
|
+
b.m("POST").h(headers).b(body);
|
|
40
|
+
return b.build();
|
|
62
41
|
};
|
|
63
42
|
export const se_ExportVectorEnrichmentJobCommand = async (input, context) => {
|
|
64
|
-
const
|
|
43
|
+
const b = rb(input, context);
|
|
65
44
|
const headers = {
|
|
66
45
|
"content-type": "application/json",
|
|
67
46
|
};
|
|
68
|
-
|
|
47
|
+
b.bp("/export-vector-enrichment-jobs");
|
|
69
48
|
let body;
|
|
70
49
|
body = JSON.stringify(take(input, {
|
|
71
50
|
Arn: [],
|
|
@@ -73,103 +52,67 @@ export const se_ExportVectorEnrichmentJobCommand = async (input, context) => {
|
|
|
73
52
|
ExecutionRoleArn: [],
|
|
74
53
|
OutputConfig: (_) => _json(_),
|
|
75
54
|
}));
|
|
76
|
-
|
|
77
|
-
|
|
78
|
-
hostname,
|
|
79
|
-
port,
|
|
80
|
-
method: "POST",
|
|
81
|
-
headers,
|
|
82
|
-
path: resolvedPath,
|
|
83
|
-
body,
|
|
84
|
-
});
|
|
55
|
+
b.m("POST").h(headers).b(body);
|
|
56
|
+
return b.build();
|
|
85
57
|
};
|
|
86
58
|
export const se_GetEarthObservationJobCommand = async (input, context) => {
|
|
87
|
-
const
|
|
59
|
+
const b = rb(input, context);
|
|
88
60
|
const headers = {};
|
|
89
|
-
|
|
90
|
-
|
|
61
|
+
b.bp("/earth-observation-jobs/{Arn}");
|
|
62
|
+
b.p("Arn", () => input.Arn, "{Arn}", false);
|
|
91
63
|
let body;
|
|
92
|
-
|
|
93
|
-
|
|
94
|
-
hostname,
|
|
95
|
-
port,
|
|
96
|
-
method: "GET",
|
|
97
|
-
headers,
|
|
98
|
-
path: resolvedPath,
|
|
99
|
-
body,
|
|
100
|
-
});
|
|
64
|
+
b.m("GET").h(headers).b(body);
|
|
65
|
+
return b.build();
|
|
101
66
|
};
|
|
102
67
|
export const se_GetRasterDataCollectionCommand = async (input, context) => {
|
|
103
|
-
const
|
|
68
|
+
const b = rb(input, context);
|
|
104
69
|
const headers = {};
|
|
105
|
-
|
|
106
|
-
|
|
70
|
+
b.bp("/raster-data-collection/{Arn}");
|
|
71
|
+
b.p("Arn", () => input.Arn, "{Arn}", false);
|
|
107
72
|
let body;
|
|
108
|
-
|
|
109
|
-
|
|
110
|
-
hostname,
|
|
111
|
-
port,
|
|
112
|
-
method: "GET",
|
|
113
|
-
headers,
|
|
114
|
-
path: resolvedPath,
|
|
115
|
-
body,
|
|
116
|
-
});
|
|
73
|
+
b.m("GET").h(headers).b(body);
|
|
74
|
+
return b.build();
|
|
117
75
|
};
|
|
118
76
|
export const se_GetTileCommand = async (input, context) => {
|
|
119
|
-
const
|
|
77
|
+
const b = rb(input, context);
|
|
120
78
|
const headers = {};
|
|
121
|
-
|
|
122
|
-
|
|
123
|
-
|
|
124
|
-
|
|
79
|
+
b.bp("/tile/{z}/{x}/{y}");
|
|
80
|
+
b.p("x", () => input.x.toString(), "{x}", false);
|
|
81
|
+
b.p("y", () => input.y.toString(), "{y}", false);
|
|
82
|
+
b.p("z", () => input.z.toString(), "{z}", false);
|
|
125
83
|
const query = map({
|
|
126
|
-
|
|
84
|
+
[_IA]: [
|
|
127
85
|
__expectNonNull(input.ImageAssets, `ImageAssets`) != null,
|
|
128
|
-
() => (input
|
|
86
|
+
() => (input[_IA] || []).map((_entry) => _entry),
|
|
129
87
|
],
|
|
130
|
-
|
|
131
|
-
|
|
132
|
-
|
|
133
|
-
|
|
134
|
-
|
|
135
|
-
|
|
136
|
-
|
|
137
|
-
|
|
88
|
+
[_T]: [, __expectNonNull(input[_T], `Target`)],
|
|
89
|
+
[_A]: [, __expectNonNull(input[_A], `Arn`)],
|
|
90
|
+
[_IM]: [() => input.ImageMask !== void 0, () => input[_IM].toString()],
|
|
91
|
+
[_OF]: [, input[_OF]],
|
|
92
|
+
[_TRF]: [, input[_TRF]],
|
|
93
|
+
[_PF]: [, input[_PF]],
|
|
94
|
+
[_ODT]: [, input[_ODT]],
|
|
95
|
+
[_ERA]: [, input[_ERA]],
|
|
138
96
|
});
|
|
139
97
|
let body;
|
|
140
|
-
|
|
141
|
-
|
|
142
|
-
hostname,
|
|
143
|
-
port,
|
|
144
|
-
method: "GET",
|
|
145
|
-
headers,
|
|
146
|
-
path: resolvedPath,
|
|
147
|
-
query,
|
|
148
|
-
body,
|
|
149
|
-
});
|
|
98
|
+
b.m("GET").h(headers).q(query).b(body);
|
|
99
|
+
return b.build();
|
|
150
100
|
};
|
|
151
101
|
export const se_GetVectorEnrichmentJobCommand = async (input, context) => {
|
|
152
|
-
const
|
|
102
|
+
const b = rb(input, context);
|
|
153
103
|
const headers = {};
|
|
154
|
-
|
|
155
|
-
|
|
104
|
+
b.bp("/vector-enrichment-jobs/{Arn}");
|
|
105
|
+
b.p("Arn", () => input.Arn, "{Arn}", false);
|
|
156
106
|
let body;
|
|
157
|
-
|
|
158
|
-
|
|
159
|
-
hostname,
|
|
160
|
-
port,
|
|
161
|
-
method: "GET",
|
|
162
|
-
headers,
|
|
163
|
-
path: resolvedPath,
|
|
164
|
-
body,
|
|
165
|
-
});
|
|
107
|
+
b.m("GET").h(headers).b(body);
|
|
108
|
+
return b.build();
|
|
166
109
|
};
|
|
167
110
|
export const se_ListEarthObservationJobsCommand = async (input, context) => {
|
|
168
|
-
const
|
|
111
|
+
const b = rb(input, context);
|
|
169
112
|
const headers = {
|
|
170
113
|
"content-type": "application/json",
|
|
171
114
|
};
|
|
172
|
-
|
|
115
|
+
b.bp("/list-earth-observation-jobs");
|
|
173
116
|
let body;
|
|
174
117
|
body = JSON.stringify(take(input, {
|
|
175
118
|
MaxResults: [],
|
|
@@ -178,58 +121,36 @@ export const se_ListEarthObservationJobsCommand = async (input, context) => {
|
|
|
178
121
|
SortOrder: [],
|
|
179
122
|
StatusEquals: [],
|
|
180
123
|
}));
|
|
181
|
-
|
|
182
|
-
|
|
183
|
-
hostname,
|
|
184
|
-
port,
|
|
185
|
-
method: "POST",
|
|
186
|
-
headers,
|
|
187
|
-
path: resolvedPath,
|
|
188
|
-
body,
|
|
189
|
-
});
|
|
124
|
+
b.m("POST").h(headers).b(body);
|
|
125
|
+
return b.build();
|
|
190
126
|
};
|
|
191
127
|
export const se_ListRasterDataCollectionsCommand = async (input, context) => {
|
|
192
|
-
const
|
|
128
|
+
const b = rb(input, context);
|
|
193
129
|
const headers = {};
|
|
194
|
-
|
|
130
|
+
b.bp("/raster-data-collections");
|
|
195
131
|
const query = map({
|
|
196
|
-
|
|
197
|
-
|
|
132
|
+
[_NT]: [, input[_NT]],
|
|
133
|
+
[_MR]: [() => input.MaxResults !== void 0, () => input[_MR].toString()],
|
|
198
134
|
});
|
|
199
135
|
let body;
|
|
200
|
-
|
|
201
|
-
|
|
202
|
-
hostname,
|
|
203
|
-
port,
|
|
204
|
-
method: "GET",
|
|
205
|
-
headers,
|
|
206
|
-
path: resolvedPath,
|
|
207
|
-
query,
|
|
208
|
-
body,
|
|
209
|
-
});
|
|
136
|
+
b.m("GET").h(headers).q(query).b(body);
|
|
137
|
+
return b.build();
|
|
210
138
|
};
|
|
211
139
|
export const se_ListTagsForResourceCommand = async (input, context) => {
|
|
212
|
-
const
|
|
140
|
+
const b = rb(input, context);
|
|
213
141
|
const headers = {};
|
|
214
|
-
|
|
215
|
-
|
|
142
|
+
b.bp("/tags/{ResourceArn}");
|
|
143
|
+
b.p("ResourceArn", () => input.ResourceArn, "{ResourceArn}", false);
|
|
216
144
|
let body;
|
|
217
|
-
|
|
218
|
-
|
|
219
|
-
hostname,
|
|
220
|
-
port,
|
|
221
|
-
method: "GET",
|
|
222
|
-
headers,
|
|
223
|
-
path: resolvedPath,
|
|
224
|
-
body,
|
|
225
|
-
});
|
|
145
|
+
b.m("GET").h(headers).b(body);
|
|
146
|
+
return b.build();
|
|
226
147
|
};
|
|
227
148
|
export const se_ListVectorEnrichmentJobsCommand = async (input, context) => {
|
|
228
|
-
const
|
|
149
|
+
const b = rb(input, context);
|
|
229
150
|
const headers = {
|
|
230
151
|
"content-type": "application/json",
|
|
231
152
|
};
|
|
232
|
-
|
|
153
|
+
b.bp("/list-vector-enrichment-jobs");
|
|
233
154
|
let body;
|
|
234
155
|
body = JSON.stringify(take(input, {
|
|
235
156
|
MaxResults: [],
|
|
@@ -238,44 +159,30 @@ export const se_ListVectorEnrichmentJobsCommand = async (input, context) => {
|
|
|
238
159
|
SortOrder: [],
|
|
239
160
|
StatusEquals: [],
|
|
240
161
|
}));
|
|
241
|
-
|
|
242
|
-
|
|
243
|
-
hostname,
|
|
244
|
-
port,
|
|
245
|
-
method: "POST",
|
|
246
|
-
headers,
|
|
247
|
-
path: resolvedPath,
|
|
248
|
-
body,
|
|
249
|
-
});
|
|
162
|
+
b.m("POST").h(headers).b(body);
|
|
163
|
+
return b.build();
|
|
250
164
|
};
|
|
251
165
|
export const se_SearchRasterDataCollectionCommand = async (input, context) => {
|
|
252
|
-
const
|
|
166
|
+
const b = rb(input, context);
|
|
253
167
|
const headers = {
|
|
254
168
|
"content-type": "application/json",
|
|
255
169
|
};
|
|
256
|
-
|
|
170
|
+
b.bp("/search-raster-data-collection");
|
|
257
171
|
let body;
|
|
258
172
|
body = JSON.stringify(take(input, {
|
|
259
173
|
Arn: [],
|
|
260
174
|
NextToken: [],
|
|
261
175
|
RasterDataCollectionQuery: (_) => se_RasterDataCollectionQueryWithBandFilterInput(_, context),
|
|
262
176
|
}));
|
|
263
|
-
|
|
264
|
-
|
|
265
|
-
hostname,
|
|
266
|
-
port,
|
|
267
|
-
method: "POST",
|
|
268
|
-
headers,
|
|
269
|
-
path: resolvedPath,
|
|
270
|
-
body,
|
|
271
|
-
});
|
|
177
|
+
b.m("POST").h(headers).b(body);
|
|
178
|
+
return b.build();
|
|
272
179
|
};
|
|
273
180
|
export const se_StartEarthObservationJobCommand = async (input, context) => {
|
|
274
|
-
const
|
|
181
|
+
const b = rb(input, context);
|
|
275
182
|
const headers = {
|
|
276
183
|
"content-type": "application/json",
|
|
277
184
|
};
|
|
278
|
-
|
|
185
|
+
b.bp("/earth-observation-jobs");
|
|
279
186
|
let body;
|
|
280
187
|
body = JSON.stringify(take(input, {
|
|
281
188
|
ClientToken: [true, (_) => _ ?? generateIdempotencyToken()],
|
|
@@ -286,22 +193,15 @@ export const se_StartEarthObservationJobCommand = async (input, context) => {
|
|
|
286
193
|
Name: [],
|
|
287
194
|
Tags: (_) => _json(_),
|
|
288
195
|
}));
|
|
289
|
-
|
|
290
|
-
|
|
291
|
-
hostname,
|
|
292
|
-
port,
|
|
293
|
-
method: "POST",
|
|
294
|
-
headers,
|
|
295
|
-
path: resolvedPath,
|
|
296
|
-
body,
|
|
297
|
-
});
|
|
196
|
+
b.m("POST").h(headers).b(body);
|
|
197
|
+
return b.build();
|
|
298
198
|
};
|
|
299
199
|
export const se_StartVectorEnrichmentJobCommand = async (input, context) => {
|
|
300
|
-
const
|
|
200
|
+
const b = rb(input, context);
|
|
301
201
|
const headers = {
|
|
302
202
|
"content-type": "application/json",
|
|
303
203
|
};
|
|
304
|
-
|
|
204
|
+
b.bp("/vector-enrichment-jobs");
|
|
305
205
|
let body;
|
|
306
206
|
body = JSON.stringify(take(input, {
|
|
307
207
|
ClientToken: [true, (_) => _ ?? generateIdempotencyToken()],
|
|
@@ -312,99 +212,63 @@ export const se_StartVectorEnrichmentJobCommand = async (input, context) => {
|
|
|
312
212
|
Name: [],
|
|
313
213
|
Tags: (_) => _json(_),
|
|
314
214
|
}));
|
|
315
|
-
|
|
316
|
-
|
|
317
|
-
hostname,
|
|
318
|
-
port,
|
|
319
|
-
method: "POST",
|
|
320
|
-
headers,
|
|
321
|
-
path: resolvedPath,
|
|
322
|
-
body,
|
|
323
|
-
});
|
|
215
|
+
b.m("POST").h(headers).b(body);
|
|
216
|
+
return b.build();
|
|
324
217
|
};
|
|
325
218
|
export const se_StopEarthObservationJobCommand = async (input, context) => {
|
|
326
|
-
const
|
|
219
|
+
const b = rb(input, context);
|
|
327
220
|
const headers = {
|
|
328
221
|
"content-type": "application/json",
|
|
329
222
|
};
|
|
330
|
-
|
|
223
|
+
b.bp("/earth-observation-jobs/stop");
|
|
331
224
|
let body;
|
|
332
225
|
body = JSON.stringify(take(input, {
|
|
333
226
|
Arn: [],
|
|
334
227
|
}));
|
|
335
|
-
|
|
336
|
-
|
|
337
|
-
hostname,
|
|
338
|
-
port,
|
|
339
|
-
method: "POST",
|
|
340
|
-
headers,
|
|
341
|
-
path: resolvedPath,
|
|
342
|
-
body,
|
|
343
|
-
});
|
|
228
|
+
b.m("POST").h(headers).b(body);
|
|
229
|
+
return b.build();
|
|
344
230
|
};
|
|
345
231
|
export const se_StopVectorEnrichmentJobCommand = async (input, context) => {
|
|
346
|
-
const
|
|
232
|
+
const b = rb(input, context);
|
|
347
233
|
const headers = {
|
|
348
234
|
"content-type": "application/json",
|
|
349
235
|
};
|
|
350
|
-
|
|
236
|
+
b.bp("/vector-enrichment-jobs/stop");
|
|
351
237
|
let body;
|
|
352
238
|
body = JSON.stringify(take(input, {
|
|
353
239
|
Arn: [],
|
|
354
240
|
}));
|
|
355
|
-
|
|
356
|
-
|
|
357
|
-
hostname,
|
|
358
|
-
port,
|
|
359
|
-
method: "POST",
|
|
360
|
-
headers,
|
|
361
|
-
path: resolvedPath,
|
|
362
|
-
body,
|
|
363
|
-
});
|
|
241
|
+
b.m("POST").h(headers).b(body);
|
|
242
|
+
return b.build();
|
|
364
243
|
};
|
|
365
244
|
export const se_TagResourceCommand = async (input, context) => {
|
|
366
|
-
const
|
|
245
|
+
const b = rb(input, context);
|
|
367
246
|
const headers = {
|
|
368
247
|
"content-type": "application/json",
|
|
369
248
|
};
|
|
370
|
-
|
|
371
|
-
|
|
249
|
+
b.bp("/tags/{ResourceArn}");
|
|
250
|
+
b.p("ResourceArn", () => input.ResourceArn, "{ResourceArn}", false);
|
|
372
251
|
let body;
|
|
373
252
|
body = JSON.stringify(take(input, {
|
|
374
253
|
Tags: (_) => _json(_),
|
|
375
254
|
}));
|
|
376
|
-
|
|
377
|
-
|
|
378
|
-
hostname,
|
|
379
|
-
port,
|
|
380
|
-
method: "PUT",
|
|
381
|
-
headers,
|
|
382
|
-
path: resolvedPath,
|
|
383
|
-
body,
|
|
384
|
-
});
|
|
255
|
+
b.m("PUT").h(headers).b(body);
|
|
256
|
+
return b.build();
|
|
385
257
|
};
|
|
386
258
|
export const se_UntagResourceCommand = async (input, context) => {
|
|
387
|
-
const
|
|
259
|
+
const b = rb(input, context);
|
|
388
260
|
const headers = {};
|
|
389
|
-
|
|
390
|
-
|
|
261
|
+
b.bp("/tags/{ResourceArn}");
|
|
262
|
+
b.p("ResourceArn", () => input.ResourceArn, "{ResourceArn}", false);
|
|
391
263
|
const query = map({
|
|
392
|
-
|
|
264
|
+
[_tK]: [
|
|
393
265
|
__expectNonNull(input.TagKeys, `TagKeys`) != null,
|
|
394
|
-
() => (input
|
|
266
|
+
() => (input[_TK] || []).map((_entry) => _entry),
|
|
395
267
|
],
|
|
396
268
|
});
|
|
397
269
|
let body;
|
|
398
|
-
|
|
399
|
-
|
|
400
|
-
hostname,
|
|
401
|
-
port,
|
|
402
|
-
method: "DELETE",
|
|
403
|
-
headers,
|
|
404
|
-
path: resolvedPath,
|
|
405
|
-
query,
|
|
406
|
-
body,
|
|
407
|
-
});
|
|
270
|
+
b.m("DELETE").h(headers).q(query).b(body);
|
|
271
|
+
return b.build();
|
|
408
272
|
};
|
|
409
273
|
export const de_DeleteEarthObservationJobCommand = async (output, context) => {
|
|
410
274
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
@@ -1979,6 +1843,19 @@ const isSerializableHeaderValue = (value) => value !== undefined &&
|
|
|
1979
1843
|
value !== "" &&
|
|
1980
1844
|
(!Object.getOwnPropertyNames(value).includes("length") || value.length != 0) &&
|
|
1981
1845
|
(!Object.getOwnPropertyNames(value).includes("size") || value.size != 0);
|
|
1846
|
+
const _A = "Arn";
|
|
1847
|
+
const _ERA = "ExecutionRoleArn";
|
|
1848
|
+
const _IA = "ImageAssets";
|
|
1849
|
+
const _IM = "ImageMask";
|
|
1850
|
+
const _MR = "MaxResults";
|
|
1851
|
+
const _NT = "NextToken";
|
|
1852
|
+
const _ODT = "OutputDataType";
|
|
1853
|
+
const _OF = "OutputFormat";
|
|
1854
|
+
const _PF = "PropertyFilters";
|
|
1855
|
+
const _T = "Target";
|
|
1856
|
+
const _TK = "TagKeys";
|
|
1857
|
+
const _TRF = "TimeRangeFilter";
|
|
1858
|
+
const _tK = "tagKeys";
|
|
1982
1859
|
const parseBody = (streamBody, context) => collectBodyString(streamBody, context).then((encoded) => {
|
|
1983
1860
|
if (encoded.length) {
|
|
1984
1861
|
return JSON.parse(encoded);
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@aws-sdk/client-sagemaker-geospatial",
|
|
3
3
|
"description": "AWS SDK for JavaScript Sagemaker Geospatial Client for Node.js, Browser and React Native",
|
|
4
|
-
"version": "3.
|
|
4
|
+
"version": "3.477.0",
|
|
5
5
|
"scripts": {
|
|
6
6
|
"build": "concurrently 'yarn:build:cjs' 'yarn:build:es' 'yarn:build:types'",
|
|
7
7
|
"build:cjs": "tsc -p tsconfig.cjs.json",
|
|
@@ -20,9 +20,9 @@
|
|
|
20
20
|
"dependencies": {
|
|
21
21
|
"@aws-crypto/sha256-browser": "3.0.0",
|
|
22
22
|
"@aws-crypto/sha256-js": "3.0.0",
|
|
23
|
-
"@aws-sdk/client-sts": "3.
|
|
24
|
-
"@aws-sdk/core": "3.
|
|
25
|
-
"@aws-sdk/credential-provider-node": "3.
|
|
23
|
+
"@aws-sdk/client-sts": "3.477.0",
|
|
24
|
+
"@aws-sdk/core": "3.477.0",
|
|
25
|
+
"@aws-sdk/credential-provider-node": "3.477.0",
|
|
26
26
|
"@aws-sdk/middleware-host-header": "3.468.0",
|
|
27
27
|
"@aws-sdk/middleware-logger": "3.468.0",
|
|
28
28
|
"@aws-sdk/middleware-recursion-detection": "3.468.0",
|
|
@@ -34,6 +34,7 @@
|
|
|
34
34
|
"@aws-sdk/util-user-agent-browser": "3.468.0",
|
|
35
35
|
"@aws-sdk/util-user-agent-node": "3.470.0",
|
|
36
36
|
"@smithy/config-resolver": "^2.0.21",
|
|
37
|
+
"@smithy/core": "^1.2.0",
|
|
37
38
|
"@smithy/fetch-http-handler": "^2.3.1",
|
|
38
39
|
"@smithy/hash-node": "^2.0.17",
|
|
39
40
|
"@smithy/invalid-dependency": "^2.0.15",
|