@aws-sdk/client-sagemaker-geospatial 3.490.0 → 3.495.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/SageMakerGeospatial.js +1 -49
- package/dist-cjs/SageMakerGeospatialClient.js +1 -43
- package/dist-cjs/commands/DeleteEarthObservationJobCommand.js +1 -28
- package/dist-cjs/commands/DeleteVectorEnrichmentJobCommand.js +1 -28
- package/dist-cjs/commands/ExportEarthObservationJobCommand.js +1 -28
- package/dist-cjs/commands/ExportVectorEnrichmentJobCommand.js +1 -28
- package/dist-cjs/commands/GetEarthObservationJobCommand.js +1 -29
- package/dist-cjs/commands/GetRasterDataCollectionCommand.js +1 -28
- package/dist-cjs/commands/GetTileCommand.js +1 -29
- package/dist-cjs/commands/GetVectorEnrichmentJobCommand.js +1 -28
- package/dist-cjs/commands/ListEarthObservationJobsCommand.js +1 -29
- package/dist-cjs/commands/ListRasterDataCollectionsCommand.js +1 -29
- package/dist-cjs/commands/ListTagsForResourceCommand.js +1 -28
- package/dist-cjs/commands/ListVectorEnrichmentJobsCommand.js +1 -29
- package/dist-cjs/commands/SearchRasterDataCollectionCommand.js +1 -29
- package/dist-cjs/commands/StartEarthObservationJobCommand.js +1 -29
- package/dist-cjs/commands/StartVectorEnrichmentJobCommand.js +1 -28
- package/dist-cjs/commands/StopEarthObservationJobCommand.js +1 -28
- package/dist-cjs/commands/StopVectorEnrichmentJobCommand.js +1 -28
- package/dist-cjs/commands/TagResourceCommand.js +1 -28
- package/dist-cjs/commands/UntagResourceCommand.js +1 -28
- package/dist-cjs/commands/index.js +1 -22
- package/dist-cjs/endpoint/EndpointParameters.js +1 -18
- package/dist-cjs/extensionConfiguration.js +1 -2
- package/dist-cjs/index.js +3273 -11
- package/dist-cjs/models/SageMakerGeospatialServiceException.js +1 -12
- package/dist-cjs/models/index.js +1 -4
- package/dist-cjs/models/models_0.js +1 -474
- package/dist-cjs/pagination/Interfaces.js +1 -2
- package/dist-cjs/pagination/ListEarthObservationJobsPaginator.js +1 -7
- package/dist-cjs/pagination/ListRasterDataCollectionsPaginator.js +1 -7
- package/dist-cjs/pagination/ListVectorEnrichmentJobsPaginator.js +1 -7
- package/dist-cjs/pagination/SearchRasterDataCollectionPaginator.js +1 -7
- package/dist-cjs/pagination/index.js +1 -8
- package/dist-cjs/protocols/Aws_restJson1.js +1 -1939
- package/dist-cjs/runtimeExtensions.js +1 -22
- package/package.json +41 -41
|
@@ -1,1939 +1 @@
|
|
|
1
|
-
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
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
|
-
const core_1 = require("@aws-sdk/core");
|
|
5
|
-
const core_2 = require("@smithy/core");
|
|
6
|
-
const smithy_client_1 = require("@smithy/smithy-client");
|
|
7
|
-
const uuid_1 = require("uuid");
|
|
8
|
-
const models_0_1 = require("../models/models_0");
|
|
9
|
-
const SageMakerGeospatialServiceException_1 = require("../models/SageMakerGeospatialServiceException");
|
|
10
|
-
const se_DeleteEarthObservationJobCommand = async (input, context) => {
|
|
11
|
-
const b = (0, core_2.requestBuilder)(input, context);
|
|
12
|
-
const headers = {};
|
|
13
|
-
b.bp("/earth-observation-jobs/{Arn}");
|
|
14
|
-
b.p("Arn", () => input.Arn, "{Arn}", false);
|
|
15
|
-
let body;
|
|
16
|
-
b.m("DELETE").h(headers).b(body);
|
|
17
|
-
return b.build();
|
|
18
|
-
};
|
|
19
|
-
exports.se_DeleteEarthObservationJobCommand = se_DeleteEarthObservationJobCommand;
|
|
20
|
-
const se_DeleteVectorEnrichmentJobCommand = async (input, context) => {
|
|
21
|
-
const b = (0, core_2.requestBuilder)(input, context);
|
|
22
|
-
const headers = {};
|
|
23
|
-
b.bp("/vector-enrichment-jobs/{Arn}");
|
|
24
|
-
b.p("Arn", () => input.Arn, "{Arn}", false);
|
|
25
|
-
let body;
|
|
26
|
-
b.m("DELETE").h(headers).b(body);
|
|
27
|
-
return b.build();
|
|
28
|
-
};
|
|
29
|
-
exports.se_DeleteVectorEnrichmentJobCommand = se_DeleteVectorEnrichmentJobCommand;
|
|
30
|
-
const se_ExportEarthObservationJobCommand = async (input, context) => {
|
|
31
|
-
const b = (0, core_2.requestBuilder)(input, context);
|
|
32
|
-
const headers = {
|
|
33
|
-
"content-type": "application/json",
|
|
34
|
-
};
|
|
35
|
-
b.bp("/export-earth-observation-job");
|
|
36
|
-
let body;
|
|
37
|
-
body = JSON.stringify((0, smithy_client_1.take)(input, {
|
|
38
|
-
Arn: [],
|
|
39
|
-
ClientToken: [true, (_) => _ ?? (0, uuid_1.v4)()],
|
|
40
|
-
ExecutionRoleArn: [],
|
|
41
|
-
ExportSourceImages: [],
|
|
42
|
-
OutputConfig: (_) => (0, smithy_client_1._json)(_),
|
|
43
|
-
}));
|
|
44
|
-
b.m("POST").h(headers).b(body);
|
|
45
|
-
return b.build();
|
|
46
|
-
};
|
|
47
|
-
exports.se_ExportEarthObservationJobCommand = se_ExportEarthObservationJobCommand;
|
|
48
|
-
const se_ExportVectorEnrichmentJobCommand = async (input, context) => {
|
|
49
|
-
const b = (0, core_2.requestBuilder)(input, context);
|
|
50
|
-
const headers = {
|
|
51
|
-
"content-type": "application/json",
|
|
52
|
-
};
|
|
53
|
-
b.bp("/export-vector-enrichment-jobs");
|
|
54
|
-
let body;
|
|
55
|
-
body = JSON.stringify((0, smithy_client_1.take)(input, {
|
|
56
|
-
Arn: [],
|
|
57
|
-
ClientToken: [true, (_) => _ ?? (0, uuid_1.v4)()],
|
|
58
|
-
ExecutionRoleArn: [],
|
|
59
|
-
OutputConfig: (_) => (0, smithy_client_1._json)(_),
|
|
60
|
-
}));
|
|
61
|
-
b.m("POST").h(headers).b(body);
|
|
62
|
-
return b.build();
|
|
63
|
-
};
|
|
64
|
-
exports.se_ExportVectorEnrichmentJobCommand = se_ExportVectorEnrichmentJobCommand;
|
|
65
|
-
const se_GetEarthObservationJobCommand = async (input, context) => {
|
|
66
|
-
const b = (0, core_2.requestBuilder)(input, context);
|
|
67
|
-
const headers = {};
|
|
68
|
-
b.bp("/earth-observation-jobs/{Arn}");
|
|
69
|
-
b.p("Arn", () => input.Arn, "{Arn}", false);
|
|
70
|
-
let body;
|
|
71
|
-
b.m("GET").h(headers).b(body);
|
|
72
|
-
return b.build();
|
|
73
|
-
};
|
|
74
|
-
exports.se_GetEarthObservationJobCommand = se_GetEarthObservationJobCommand;
|
|
75
|
-
const se_GetRasterDataCollectionCommand = async (input, context) => {
|
|
76
|
-
const b = (0, core_2.requestBuilder)(input, context);
|
|
77
|
-
const headers = {};
|
|
78
|
-
b.bp("/raster-data-collection/{Arn}");
|
|
79
|
-
b.p("Arn", () => input.Arn, "{Arn}", false);
|
|
80
|
-
let body;
|
|
81
|
-
b.m("GET").h(headers).b(body);
|
|
82
|
-
return b.build();
|
|
83
|
-
};
|
|
84
|
-
exports.se_GetRasterDataCollectionCommand = se_GetRasterDataCollectionCommand;
|
|
85
|
-
const se_GetTileCommand = async (input, context) => {
|
|
86
|
-
const b = (0, core_2.requestBuilder)(input, context);
|
|
87
|
-
const headers = {};
|
|
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);
|
|
92
|
-
const query = (0, smithy_client_1.map)({
|
|
93
|
-
[_IA]: [
|
|
94
|
-
(0, smithy_client_1.expectNonNull)(input.ImageAssets, `ImageAssets`) != null,
|
|
95
|
-
() => (input[_IA] || []).map((_entry) => _entry),
|
|
96
|
-
],
|
|
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]],
|
|
105
|
-
});
|
|
106
|
-
let body;
|
|
107
|
-
b.m("GET").h(headers).q(query).b(body);
|
|
108
|
-
return b.build();
|
|
109
|
-
};
|
|
110
|
-
exports.se_GetTileCommand = se_GetTileCommand;
|
|
111
|
-
const se_GetVectorEnrichmentJobCommand = async (input, context) => {
|
|
112
|
-
const b = (0, core_2.requestBuilder)(input, context);
|
|
113
|
-
const headers = {};
|
|
114
|
-
b.bp("/vector-enrichment-jobs/{Arn}");
|
|
115
|
-
b.p("Arn", () => input.Arn, "{Arn}", false);
|
|
116
|
-
let body;
|
|
117
|
-
b.m("GET").h(headers).b(body);
|
|
118
|
-
return b.build();
|
|
119
|
-
};
|
|
120
|
-
exports.se_GetVectorEnrichmentJobCommand = se_GetVectorEnrichmentJobCommand;
|
|
121
|
-
const se_ListEarthObservationJobsCommand = async (input, context) => {
|
|
122
|
-
const b = (0, core_2.requestBuilder)(input, context);
|
|
123
|
-
const headers = {
|
|
124
|
-
"content-type": "application/json",
|
|
125
|
-
};
|
|
126
|
-
b.bp("/list-earth-observation-jobs");
|
|
127
|
-
let body;
|
|
128
|
-
body = JSON.stringify((0, smithy_client_1.take)(input, {
|
|
129
|
-
MaxResults: [],
|
|
130
|
-
NextToken: [],
|
|
131
|
-
SortBy: [],
|
|
132
|
-
SortOrder: [],
|
|
133
|
-
StatusEquals: [],
|
|
134
|
-
}));
|
|
135
|
-
b.m("POST").h(headers).b(body);
|
|
136
|
-
return b.build();
|
|
137
|
-
};
|
|
138
|
-
exports.se_ListEarthObservationJobsCommand = se_ListEarthObservationJobsCommand;
|
|
139
|
-
const se_ListRasterDataCollectionsCommand = async (input, context) => {
|
|
140
|
-
const b = (0, core_2.requestBuilder)(input, context);
|
|
141
|
-
const headers = {};
|
|
142
|
-
b.bp("/raster-data-collections");
|
|
143
|
-
const query = (0, smithy_client_1.map)({
|
|
144
|
-
[_NT]: [, input[_NT]],
|
|
145
|
-
[_MR]: [() => input.MaxResults !== void 0, () => input[_MR].toString()],
|
|
146
|
-
});
|
|
147
|
-
let body;
|
|
148
|
-
b.m("GET").h(headers).q(query).b(body);
|
|
149
|
-
return b.build();
|
|
150
|
-
};
|
|
151
|
-
exports.se_ListRasterDataCollectionsCommand = se_ListRasterDataCollectionsCommand;
|
|
152
|
-
const se_ListTagsForResourceCommand = async (input, context) => {
|
|
153
|
-
const b = (0, core_2.requestBuilder)(input, context);
|
|
154
|
-
const headers = {};
|
|
155
|
-
b.bp("/tags/{ResourceArn}");
|
|
156
|
-
b.p("ResourceArn", () => input.ResourceArn, "{ResourceArn}", false);
|
|
157
|
-
let body;
|
|
158
|
-
b.m("GET").h(headers).b(body);
|
|
159
|
-
return b.build();
|
|
160
|
-
};
|
|
161
|
-
exports.se_ListTagsForResourceCommand = se_ListTagsForResourceCommand;
|
|
162
|
-
const se_ListVectorEnrichmentJobsCommand = async (input, context) => {
|
|
163
|
-
const b = (0, core_2.requestBuilder)(input, context);
|
|
164
|
-
const headers = {
|
|
165
|
-
"content-type": "application/json",
|
|
166
|
-
};
|
|
167
|
-
b.bp("/list-vector-enrichment-jobs");
|
|
168
|
-
let body;
|
|
169
|
-
body = JSON.stringify((0, smithy_client_1.take)(input, {
|
|
170
|
-
MaxResults: [],
|
|
171
|
-
NextToken: [],
|
|
172
|
-
SortBy: [],
|
|
173
|
-
SortOrder: [],
|
|
174
|
-
StatusEquals: [],
|
|
175
|
-
}));
|
|
176
|
-
b.m("POST").h(headers).b(body);
|
|
177
|
-
return b.build();
|
|
178
|
-
};
|
|
179
|
-
exports.se_ListVectorEnrichmentJobsCommand = se_ListVectorEnrichmentJobsCommand;
|
|
180
|
-
const se_SearchRasterDataCollectionCommand = async (input, context) => {
|
|
181
|
-
const b = (0, core_2.requestBuilder)(input, context);
|
|
182
|
-
const headers = {
|
|
183
|
-
"content-type": "application/json",
|
|
184
|
-
};
|
|
185
|
-
b.bp("/search-raster-data-collection");
|
|
186
|
-
let body;
|
|
187
|
-
body = JSON.stringify((0, smithy_client_1.take)(input, {
|
|
188
|
-
Arn: [],
|
|
189
|
-
NextToken: [],
|
|
190
|
-
RasterDataCollectionQuery: (_) => se_RasterDataCollectionQueryWithBandFilterInput(_, context),
|
|
191
|
-
}));
|
|
192
|
-
b.m("POST").h(headers).b(body);
|
|
193
|
-
return b.build();
|
|
194
|
-
};
|
|
195
|
-
exports.se_SearchRasterDataCollectionCommand = se_SearchRasterDataCollectionCommand;
|
|
196
|
-
const se_StartEarthObservationJobCommand = async (input, context) => {
|
|
197
|
-
const b = (0, core_2.requestBuilder)(input, context);
|
|
198
|
-
const headers = {
|
|
199
|
-
"content-type": "application/json",
|
|
200
|
-
};
|
|
201
|
-
b.bp("/earth-observation-jobs");
|
|
202
|
-
let body;
|
|
203
|
-
body = JSON.stringify((0, smithy_client_1.take)(input, {
|
|
204
|
-
ClientToken: [true, (_) => _ ?? (0, uuid_1.v4)()],
|
|
205
|
-
ExecutionRoleArn: [],
|
|
206
|
-
InputConfig: (_) => se_InputConfigInput(_, context),
|
|
207
|
-
JobConfig: (_) => se_JobConfigInput(_, context),
|
|
208
|
-
KmsKeyId: [],
|
|
209
|
-
Name: [],
|
|
210
|
-
Tags: (_) => (0, smithy_client_1._json)(_),
|
|
211
|
-
}));
|
|
212
|
-
b.m("POST").h(headers).b(body);
|
|
213
|
-
return b.build();
|
|
214
|
-
};
|
|
215
|
-
exports.se_StartEarthObservationJobCommand = se_StartEarthObservationJobCommand;
|
|
216
|
-
const se_StartVectorEnrichmentJobCommand = async (input, context) => {
|
|
217
|
-
const b = (0, core_2.requestBuilder)(input, context);
|
|
218
|
-
const headers = {
|
|
219
|
-
"content-type": "application/json",
|
|
220
|
-
};
|
|
221
|
-
b.bp("/vector-enrichment-jobs");
|
|
222
|
-
let body;
|
|
223
|
-
body = JSON.stringify((0, smithy_client_1.take)(input, {
|
|
224
|
-
ClientToken: [true, (_) => _ ?? (0, uuid_1.v4)()],
|
|
225
|
-
ExecutionRoleArn: [],
|
|
226
|
-
InputConfig: (_) => (0, smithy_client_1._json)(_),
|
|
227
|
-
JobConfig: (_) => (0, smithy_client_1._json)(_),
|
|
228
|
-
KmsKeyId: [],
|
|
229
|
-
Name: [],
|
|
230
|
-
Tags: (_) => (0, smithy_client_1._json)(_),
|
|
231
|
-
}));
|
|
232
|
-
b.m("POST").h(headers).b(body);
|
|
233
|
-
return b.build();
|
|
234
|
-
};
|
|
235
|
-
exports.se_StartVectorEnrichmentJobCommand = se_StartVectorEnrichmentJobCommand;
|
|
236
|
-
const se_StopEarthObservationJobCommand = async (input, context) => {
|
|
237
|
-
const b = (0, core_2.requestBuilder)(input, context);
|
|
238
|
-
const headers = {
|
|
239
|
-
"content-type": "application/json",
|
|
240
|
-
};
|
|
241
|
-
b.bp("/earth-observation-jobs/stop");
|
|
242
|
-
let body;
|
|
243
|
-
body = JSON.stringify((0, smithy_client_1.take)(input, {
|
|
244
|
-
Arn: [],
|
|
245
|
-
}));
|
|
246
|
-
b.m("POST").h(headers).b(body);
|
|
247
|
-
return b.build();
|
|
248
|
-
};
|
|
249
|
-
exports.se_StopEarthObservationJobCommand = se_StopEarthObservationJobCommand;
|
|
250
|
-
const se_StopVectorEnrichmentJobCommand = async (input, context) => {
|
|
251
|
-
const b = (0, core_2.requestBuilder)(input, context);
|
|
252
|
-
const headers = {
|
|
253
|
-
"content-type": "application/json",
|
|
254
|
-
};
|
|
255
|
-
b.bp("/vector-enrichment-jobs/stop");
|
|
256
|
-
let body;
|
|
257
|
-
body = JSON.stringify((0, smithy_client_1.take)(input, {
|
|
258
|
-
Arn: [],
|
|
259
|
-
}));
|
|
260
|
-
b.m("POST").h(headers).b(body);
|
|
261
|
-
return b.build();
|
|
262
|
-
};
|
|
263
|
-
exports.se_StopVectorEnrichmentJobCommand = se_StopVectorEnrichmentJobCommand;
|
|
264
|
-
const se_TagResourceCommand = async (input, context) => {
|
|
265
|
-
const b = (0, core_2.requestBuilder)(input, context);
|
|
266
|
-
const headers = {
|
|
267
|
-
"content-type": "application/json",
|
|
268
|
-
};
|
|
269
|
-
b.bp("/tags/{ResourceArn}");
|
|
270
|
-
b.p("ResourceArn", () => input.ResourceArn, "{ResourceArn}", false);
|
|
271
|
-
let body;
|
|
272
|
-
body = JSON.stringify((0, smithy_client_1.take)(input, {
|
|
273
|
-
Tags: (_) => (0, smithy_client_1._json)(_),
|
|
274
|
-
}));
|
|
275
|
-
b.m("PUT").h(headers).b(body);
|
|
276
|
-
return b.build();
|
|
277
|
-
};
|
|
278
|
-
exports.se_TagResourceCommand = se_TagResourceCommand;
|
|
279
|
-
const se_UntagResourceCommand = async (input, context) => {
|
|
280
|
-
const b = (0, core_2.requestBuilder)(input, context);
|
|
281
|
-
const headers = {};
|
|
282
|
-
b.bp("/tags/{ResourceArn}");
|
|
283
|
-
b.p("ResourceArn", () => input.ResourceArn, "{ResourceArn}", false);
|
|
284
|
-
const query = (0, smithy_client_1.map)({
|
|
285
|
-
[_tK]: [
|
|
286
|
-
(0, smithy_client_1.expectNonNull)(input.TagKeys, `TagKeys`) != null,
|
|
287
|
-
() => (input[_TK] || []).map((_entry) => _entry),
|
|
288
|
-
],
|
|
289
|
-
});
|
|
290
|
-
let body;
|
|
291
|
-
b.m("DELETE").h(headers).q(query).b(body);
|
|
292
|
-
return b.build();
|
|
293
|
-
};
|
|
294
|
-
exports.se_UntagResourceCommand = se_UntagResourceCommand;
|
|
295
|
-
const de_DeleteEarthObservationJobCommand = async (output, context) => {
|
|
296
|
-
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
297
|
-
return de_DeleteEarthObservationJobCommandError(output, context);
|
|
298
|
-
}
|
|
299
|
-
const contents = (0, smithy_client_1.map)({
|
|
300
|
-
$metadata: deserializeMetadata(output),
|
|
301
|
-
});
|
|
302
|
-
await (0, smithy_client_1.collectBody)(output.body, context);
|
|
303
|
-
return contents;
|
|
304
|
-
};
|
|
305
|
-
exports.de_DeleteEarthObservationJobCommand = de_DeleteEarthObservationJobCommand;
|
|
306
|
-
const de_DeleteEarthObservationJobCommandError = async (output, context) => {
|
|
307
|
-
const parsedOutput = {
|
|
308
|
-
...output,
|
|
309
|
-
body: await parseErrorBody(output.body, context),
|
|
310
|
-
};
|
|
311
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
312
|
-
switch (errorCode) {
|
|
313
|
-
case "AccessDeniedException":
|
|
314
|
-
case "com.amazonaws.sagemakergeospatial#AccessDeniedException":
|
|
315
|
-
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
316
|
-
case "ConflictException":
|
|
317
|
-
case "com.amazonaws.sagemakergeospatial#ConflictException":
|
|
318
|
-
throw await de_ConflictExceptionRes(parsedOutput, context);
|
|
319
|
-
case "InternalServerException":
|
|
320
|
-
case "com.amazonaws.sagemakergeospatial#InternalServerException":
|
|
321
|
-
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
322
|
-
case "ResourceNotFoundException":
|
|
323
|
-
case "com.amazonaws.sagemakergeospatial#ResourceNotFoundException":
|
|
324
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
325
|
-
case "ThrottlingException":
|
|
326
|
-
case "com.amazonaws.sagemakergeospatial#ThrottlingException":
|
|
327
|
-
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
328
|
-
case "ValidationException":
|
|
329
|
-
case "com.amazonaws.sagemakergeospatial#ValidationException":
|
|
330
|
-
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
331
|
-
default:
|
|
332
|
-
const parsedBody = parsedOutput.body;
|
|
333
|
-
return throwDefaultError({
|
|
334
|
-
output,
|
|
335
|
-
parsedBody,
|
|
336
|
-
errorCode,
|
|
337
|
-
});
|
|
338
|
-
}
|
|
339
|
-
};
|
|
340
|
-
const de_DeleteVectorEnrichmentJobCommand = async (output, context) => {
|
|
341
|
-
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
342
|
-
return de_DeleteVectorEnrichmentJobCommandError(output, context);
|
|
343
|
-
}
|
|
344
|
-
const contents = (0, smithy_client_1.map)({
|
|
345
|
-
$metadata: deserializeMetadata(output),
|
|
346
|
-
});
|
|
347
|
-
await (0, smithy_client_1.collectBody)(output.body, context);
|
|
348
|
-
return contents;
|
|
349
|
-
};
|
|
350
|
-
exports.de_DeleteVectorEnrichmentJobCommand = de_DeleteVectorEnrichmentJobCommand;
|
|
351
|
-
const de_DeleteVectorEnrichmentJobCommandError = async (output, context) => {
|
|
352
|
-
const parsedOutput = {
|
|
353
|
-
...output,
|
|
354
|
-
body: await parseErrorBody(output.body, context),
|
|
355
|
-
};
|
|
356
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
357
|
-
switch (errorCode) {
|
|
358
|
-
case "AccessDeniedException":
|
|
359
|
-
case "com.amazonaws.sagemakergeospatial#AccessDeniedException":
|
|
360
|
-
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
361
|
-
case "ConflictException":
|
|
362
|
-
case "com.amazonaws.sagemakergeospatial#ConflictException":
|
|
363
|
-
throw await de_ConflictExceptionRes(parsedOutput, context);
|
|
364
|
-
case "InternalServerException":
|
|
365
|
-
case "com.amazonaws.sagemakergeospatial#InternalServerException":
|
|
366
|
-
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
367
|
-
case "ResourceNotFoundException":
|
|
368
|
-
case "com.amazonaws.sagemakergeospatial#ResourceNotFoundException":
|
|
369
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
370
|
-
case "ThrottlingException":
|
|
371
|
-
case "com.amazonaws.sagemakergeospatial#ThrottlingException":
|
|
372
|
-
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
373
|
-
case "ValidationException":
|
|
374
|
-
case "com.amazonaws.sagemakergeospatial#ValidationException":
|
|
375
|
-
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
376
|
-
default:
|
|
377
|
-
const parsedBody = parsedOutput.body;
|
|
378
|
-
return throwDefaultError({
|
|
379
|
-
output,
|
|
380
|
-
parsedBody,
|
|
381
|
-
errorCode,
|
|
382
|
-
});
|
|
383
|
-
}
|
|
384
|
-
};
|
|
385
|
-
const de_ExportEarthObservationJobCommand = async (output, context) => {
|
|
386
|
-
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
387
|
-
return de_ExportEarthObservationJobCommandError(output, context);
|
|
388
|
-
}
|
|
389
|
-
const contents = (0, smithy_client_1.map)({
|
|
390
|
-
$metadata: deserializeMetadata(output),
|
|
391
|
-
});
|
|
392
|
-
const data = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.expectObject)(await parseBody(output.body, context)), "body");
|
|
393
|
-
const doc = (0, smithy_client_1.take)(data, {
|
|
394
|
-
Arn: smithy_client_1.expectString,
|
|
395
|
-
CreationTime: (_) => (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseRfc3339DateTimeWithOffset)(_)),
|
|
396
|
-
ExecutionRoleArn: smithy_client_1.expectString,
|
|
397
|
-
ExportSourceImages: smithy_client_1.expectBoolean,
|
|
398
|
-
ExportStatus: smithy_client_1.expectString,
|
|
399
|
-
OutputConfig: smithy_client_1._json,
|
|
400
|
-
});
|
|
401
|
-
Object.assign(contents, doc);
|
|
402
|
-
return contents;
|
|
403
|
-
};
|
|
404
|
-
exports.de_ExportEarthObservationJobCommand = de_ExportEarthObservationJobCommand;
|
|
405
|
-
const de_ExportEarthObservationJobCommandError = async (output, context) => {
|
|
406
|
-
const parsedOutput = {
|
|
407
|
-
...output,
|
|
408
|
-
body: await parseErrorBody(output.body, context),
|
|
409
|
-
};
|
|
410
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
411
|
-
switch (errorCode) {
|
|
412
|
-
case "AccessDeniedException":
|
|
413
|
-
case "com.amazonaws.sagemakergeospatial#AccessDeniedException":
|
|
414
|
-
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
415
|
-
case "ConflictException":
|
|
416
|
-
case "com.amazonaws.sagemakergeospatial#ConflictException":
|
|
417
|
-
throw await de_ConflictExceptionRes(parsedOutput, context);
|
|
418
|
-
case "InternalServerException":
|
|
419
|
-
case "com.amazonaws.sagemakergeospatial#InternalServerException":
|
|
420
|
-
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
421
|
-
case "ResourceNotFoundException":
|
|
422
|
-
case "com.amazonaws.sagemakergeospatial#ResourceNotFoundException":
|
|
423
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
424
|
-
case "ServiceQuotaExceededException":
|
|
425
|
-
case "com.amazonaws.sagemakergeospatial#ServiceQuotaExceededException":
|
|
426
|
-
throw await de_ServiceQuotaExceededExceptionRes(parsedOutput, context);
|
|
427
|
-
case "ThrottlingException":
|
|
428
|
-
case "com.amazonaws.sagemakergeospatial#ThrottlingException":
|
|
429
|
-
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
430
|
-
case "ValidationException":
|
|
431
|
-
case "com.amazonaws.sagemakergeospatial#ValidationException":
|
|
432
|
-
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
433
|
-
default:
|
|
434
|
-
const parsedBody = parsedOutput.body;
|
|
435
|
-
return throwDefaultError({
|
|
436
|
-
output,
|
|
437
|
-
parsedBody,
|
|
438
|
-
errorCode,
|
|
439
|
-
});
|
|
440
|
-
}
|
|
441
|
-
};
|
|
442
|
-
const de_ExportVectorEnrichmentJobCommand = async (output, context) => {
|
|
443
|
-
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
444
|
-
return de_ExportVectorEnrichmentJobCommandError(output, context);
|
|
445
|
-
}
|
|
446
|
-
const contents = (0, smithy_client_1.map)({
|
|
447
|
-
$metadata: deserializeMetadata(output),
|
|
448
|
-
});
|
|
449
|
-
const data = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.expectObject)(await parseBody(output.body, context)), "body");
|
|
450
|
-
const doc = (0, smithy_client_1.take)(data, {
|
|
451
|
-
Arn: smithy_client_1.expectString,
|
|
452
|
-
CreationTime: (_) => (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseRfc3339DateTimeWithOffset)(_)),
|
|
453
|
-
ExecutionRoleArn: smithy_client_1.expectString,
|
|
454
|
-
ExportStatus: smithy_client_1.expectString,
|
|
455
|
-
OutputConfig: smithy_client_1._json,
|
|
456
|
-
});
|
|
457
|
-
Object.assign(contents, doc);
|
|
458
|
-
return contents;
|
|
459
|
-
};
|
|
460
|
-
exports.de_ExportVectorEnrichmentJobCommand = de_ExportVectorEnrichmentJobCommand;
|
|
461
|
-
const de_ExportVectorEnrichmentJobCommandError = async (output, context) => {
|
|
462
|
-
const parsedOutput = {
|
|
463
|
-
...output,
|
|
464
|
-
body: await parseErrorBody(output.body, context),
|
|
465
|
-
};
|
|
466
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
467
|
-
switch (errorCode) {
|
|
468
|
-
case "AccessDeniedException":
|
|
469
|
-
case "com.amazonaws.sagemakergeospatial#AccessDeniedException":
|
|
470
|
-
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
471
|
-
case "ConflictException":
|
|
472
|
-
case "com.amazonaws.sagemakergeospatial#ConflictException":
|
|
473
|
-
throw await de_ConflictExceptionRes(parsedOutput, context);
|
|
474
|
-
case "InternalServerException":
|
|
475
|
-
case "com.amazonaws.sagemakergeospatial#InternalServerException":
|
|
476
|
-
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
477
|
-
case "ResourceNotFoundException":
|
|
478
|
-
case "com.amazonaws.sagemakergeospatial#ResourceNotFoundException":
|
|
479
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
480
|
-
case "ServiceQuotaExceededException":
|
|
481
|
-
case "com.amazonaws.sagemakergeospatial#ServiceQuotaExceededException":
|
|
482
|
-
throw await de_ServiceQuotaExceededExceptionRes(parsedOutput, context);
|
|
483
|
-
case "ThrottlingException":
|
|
484
|
-
case "com.amazonaws.sagemakergeospatial#ThrottlingException":
|
|
485
|
-
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
486
|
-
case "ValidationException":
|
|
487
|
-
case "com.amazonaws.sagemakergeospatial#ValidationException":
|
|
488
|
-
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
489
|
-
default:
|
|
490
|
-
const parsedBody = parsedOutput.body;
|
|
491
|
-
return throwDefaultError({
|
|
492
|
-
output,
|
|
493
|
-
parsedBody,
|
|
494
|
-
errorCode,
|
|
495
|
-
});
|
|
496
|
-
}
|
|
497
|
-
};
|
|
498
|
-
const de_GetEarthObservationJobCommand = async (output, context) => {
|
|
499
|
-
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
500
|
-
return de_GetEarthObservationJobCommandError(output, context);
|
|
501
|
-
}
|
|
502
|
-
const contents = (0, smithy_client_1.map)({
|
|
503
|
-
$metadata: deserializeMetadata(output),
|
|
504
|
-
});
|
|
505
|
-
const data = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.expectObject)(await parseBody(output.body, context)), "body");
|
|
506
|
-
const doc = (0, smithy_client_1.take)(data, {
|
|
507
|
-
Arn: smithy_client_1.expectString,
|
|
508
|
-
CreationTime: (_) => (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseRfc3339DateTimeWithOffset)(_)),
|
|
509
|
-
DurationInSeconds: smithy_client_1.expectInt32,
|
|
510
|
-
ErrorDetails: smithy_client_1._json,
|
|
511
|
-
ExecutionRoleArn: smithy_client_1.expectString,
|
|
512
|
-
ExportErrorDetails: smithy_client_1._json,
|
|
513
|
-
ExportStatus: smithy_client_1.expectString,
|
|
514
|
-
InputConfig: (_) => de_InputConfigOutput(_, context),
|
|
515
|
-
JobConfig: (_) => de_JobConfigInput((0, core_1.awsExpectUnion)(_), context),
|
|
516
|
-
KmsKeyId: smithy_client_1.expectString,
|
|
517
|
-
Name: smithy_client_1.expectString,
|
|
518
|
-
OutputBands: smithy_client_1._json,
|
|
519
|
-
Status: smithy_client_1.expectString,
|
|
520
|
-
Tags: smithy_client_1._json,
|
|
521
|
-
});
|
|
522
|
-
Object.assign(contents, doc);
|
|
523
|
-
return contents;
|
|
524
|
-
};
|
|
525
|
-
exports.de_GetEarthObservationJobCommand = de_GetEarthObservationJobCommand;
|
|
526
|
-
const de_GetEarthObservationJobCommandError = async (output, context) => {
|
|
527
|
-
const parsedOutput = {
|
|
528
|
-
...output,
|
|
529
|
-
body: await parseErrorBody(output.body, context),
|
|
530
|
-
};
|
|
531
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
532
|
-
switch (errorCode) {
|
|
533
|
-
case "AccessDeniedException":
|
|
534
|
-
case "com.amazonaws.sagemakergeospatial#AccessDeniedException":
|
|
535
|
-
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
536
|
-
case "InternalServerException":
|
|
537
|
-
case "com.amazonaws.sagemakergeospatial#InternalServerException":
|
|
538
|
-
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
539
|
-
case "ResourceNotFoundException":
|
|
540
|
-
case "com.amazonaws.sagemakergeospatial#ResourceNotFoundException":
|
|
541
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
542
|
-
case "ThrottlingException":
|
|
543
|
-
case "com.amazonaws.sagemakergeospatial#ThrottlingException":
|
|
544
|
-
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
545
|
-
case "ValidationException":
|
|
546
|
-
case "com.amazonaws.sagemakergeospatial#ValidationException":
|
|
547
|
-
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
548
|
-
default:
|
|
549
|
-
const parsedBody = parsedOutput.body;
|
|
550
|
-
return throwDefaultError({
|
|
551
|
-
output,
|
|
552
|
-
parsedBody,
|
|
553
|
-
errorCode,
|
|
554
|
-
});
|
|
555
|
-
}
|
|
556
|
-
};
|
|
557
|
-
const de_GetRasterDataCollectionCommand = async (output, context) => {
|
|
558
|
-
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
559
|
-
return de_GetRasterDataCollectionCommandError(output, context);
|
|
560
|
-
}
|
|
561
|
-
const contents = (0, smithy_client_1.map)({
|
|
562
|
-
$metadata: deserializeMetadata(output),
|
|
563
|
-
});
|
|
564
|
-
const data = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.expectObject)(await parseBody(output.body, context)), "body");
|
|
565
|
-
const doc = (0, smithy_client_1.take)(data, {
|
|
566
|
-
Arn: smithy_client_1.expectString,
|
|
567
|
-
Description: smithy_client_1.expectString,
|
|
568
|
-
DescriptionPageUrl: smithy_client_1.expectString,
|
|
569
|
-
ImageSourceBands: smithy_client_1._json,
|
|
570
|
-
Name: smithy_client_1.expectString,
|
|
571
|
-
SupportedFilters: (_) => de_FilterList(_, context),
|
|
572
|
-
Tags: smithy_client_1._json,
|
|
573
|
-
Type: smithy_client_1.expectString,
|
|
574
|
-
});
|
|
575
|
-
Object.assign(contents, doc);
|
|
576
|
-
return contents;
|
|
577
|
-
};
|
|
578
|
-
exports.de_GetRasterDataCollectionCommand = de_GetRasterDataCollectionCommand;
|
|
579
|
-
const de_GetRasterDataCollectionCommandError = async (output, context) => {
|
|
580
|
-
const parsedOutput = {
|
|
581
|
-
...output,
|
|
582
|
-
body: await parseErrorBody(output.body, context),
|
|
583
|
-
};
|
|
584
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
585
|
-
switch (errorCode) {
|
|
586
|
-
case "AccessDeniedException":
|
|
587
|
-
case "com.amazonaws.sagemakergeospatial#AccessDeniedException":
|
|
588
|
-
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
589
|
-
case "InternalServerException":
|
|
590
|
-
case "com.amazonaws.sagemakergeospatial#InternalServerException":
|
|
591
|
-
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
592
|
-
case "ResourceNotFoundException":
|
|
593
|
-
case "com.amazonaws.sagemakergeospatial#ResourceNotFoundException":
|
|
594
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
595
|
-
case "ThrottlingException":
|
|
596
|
-
case "com.amazonaws.sagemakergeospatial#ThrottlingException":
|
|
597
|
-
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
598
|
-
case "ValidationException":
|
|
599
|
-
case "com.amazonaws.sagemakergeospatial#ValidationException":
|
|
600
|
-
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
601
|
-
default:
|
|
602
|
-
const parsedBody = parsedOutput.body;
|
|
603
|
-
return throwDefaultError({
|
|
604
|
-
output,
|
|
605
|
-
parsedBody,
|
|
606
|
-
errorCode,
|
|
607
|
-
});
|
|
608
|
-
}
|
|
609
|
-
};
|
|
610
|
-
const de_GetTileCommand = async (output, context) => {
|
|
611
|
-
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
612
|
-
return de_GetTileCommandError(output, context);
|
|
613
|
-
}
|
|
614
|
-
const contents = (0, smithy_client_1.map)({
|
|
615
|
-
$metadata: deserializeMetadata(output),
|
|
616
|
-
});
|
|
617
|
-
const data = output.body;
|
|
618
|
-
context.sdkStreamMixin(data);
|
|
619
|
-
contents.BinaryFile = data;
|
|
620
|
-
return contents;
|
|
621
|
-
};
|
|
622
|
-
exports.de_GetTileCommand = de_GetTileCommand;
|
|
623
|
-
const de_GetTileCommandError = async (output, context) => {
|
|
624
|
-
const parsedOutput = {
|
|
625
|
-
...output,
|
|
626
|
-
body: await parseErrorBody(output.body, context),
|
|
627
|
-
};
|
|
628
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
629
|
-
switch (errorCode) {
|
|
630
|
-
case "AccessDeniedException":
|
|
631
|
-
case "com.amazonaws.sagemakergeospatial#AccessDeniedException":
|
|
632
|
-
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
633
|
-
case "InternalServerException":
|
|
634
|
-
case "com.amazonaws.sagemakergeospatial#InternalServerException":
|
|
635
|
-
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
636
|
-
case "ResourceNotFoundException":
|
|
637
|
-
case "com.amazonaws.sagemakergeospatial#ResourceNotFoundException":
|
|
638
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
639
|
-
case "ThrottlingException":
|
|
640
|
-
case "com.amazonaws.sagemakergeospatial#ThrottlingException":
|
|
641
|
-
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
642
|
-
case "ValidationException":
|
|
643
|
-
case "com.amazonaws.sagemakergeospatial#ValidationException":
|
|
644
|
-
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
645
|
-
default:
|
|
646
|
-
const parsedBody = parsedOutput.body;
|
|
647
|
-
return throwDefaultError({
|
|
648
|
-
output,
|
|
649
|
-
parsedBody,
|
|
650
|
-
errorCode,
|
|
651
|
-
});
|
|
652
|
-
}
|
|
653
|
-
};
|
|
654
|
-
const de_GetVectorEnrichmentJobCommand = async (output, context) => {
|
|
655
|
-
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
656
|
-
return de_GetVectorEnrichmentJobCommandError(output, context);
|
|
657
|
-
}
|
|
658
|
-
const contents = (0, smithy_client_1.map)({
|
|
659
|
-
$metadata: deserializeMetadata(output),
|
|
660
|
-
});
|
|
661
|
-
const data = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.expectObject)(await parseBody(output.body, context)), "body");
|
|
662
|
-
const doc = (0, smithy_client_1.take)(data, {
|
|
663
|
-
Arn: smithy_client_1.expectString,
|
|
664
|
-
CreationTime: (_) => (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseRfc3339DateTimeWithOffset)(_)),
|
|
665
|
-
DurationInSeconds: smithy_client_1.expectInt32,
|
|
666
|
-
ErrorDetails: smithy_client_1._json,
|
|
667
|
-
ExecutionRoleArn: smithy_client_1.expectString,
|
|
668
|
-
ExportErrorDetails: smithy_client_1._json,
|
|
669
|
-
ExportStatus: smithy_client_1.expectString,
|
|
670
|
-
InputConfig: smithy_client_1._json,
|
|
671
|
-
JobConfig: (_) => (0, smithy_client_1._json)((0, core_1.awsExpectUnion)(_)),
|
|
672
|
-
KmsKeyId: smithy_client_1.expectString,
|
|
673
|
-
Name: smithy_client_1.expectString,
|
|
674
|
-
Status: smithy_client_1.expectString,
|
|
675
|
-
Tags: smithy_client_1._json,
|
|
676
|
-
Type: smithy_client_1.expectString,
|
|
677
|
-
});
|
|
678
|
-
Object.assign(contents, doc);
|
|
679
|
-
return contents;
|
|
680
|
-
};
|
|
681
|
-
exports.de_GetVectorEnrichmentJobCommand = de_GetVectorEnrichmentJobCommand;
|
|
682
|
-
const de_GetVectorEnrichmentJobCommandError = async (output, context) => {
|
|
683
|
-
const parsedOutput = {
|
|
684
|
-
...output,
|
|
685
|
-
body: await parseErrorBody(output.body, context),
|
|
686
|
-
};
|
|
687
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
688
|
-
switch (errorCode) {
|
|
689
|
-
case "AccessDeniedException":
|
|
690
|
-
case "com.amazonaws.sagemakergeospatial#AccessDeniedException":
|
|
691
|
-
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
692
|
-
case "InternalServerException":
|
|
693
|
-
case "com.amazonaws.sagemakergeospatial#InternalServerException":
|
|
694
|
-
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
695
|
-
case "ResourceNotFoundException":
|
|
696
|
-
case "com.amazonaws.sagemakergeospatial#ResourceNotFoundException":
|
|
697
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
698
|
-
case "ThrottlingException":
|
|
699
|
-
case "com.amazonaws.sagemakergeospatial#ThrottlingException":
|
|
700
|
-
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
701
|
-
case "ValidationException":
|
|
702
|
-
case "com.amazonaws.sagemakergeospatial#ValidationException":
|
|
703
|
-
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
704
|
-
default:
|
|
705
|
-
const parsedBody = parsedOutput.body;
|
|
706
|
-
return throwDefaultError({
|
|
707
|
-
output,
|
|
708
|
-
parsedBody,
|
|
709
|
-
errorCode,
|
|
710
|
-
});
|
|
711
|
-
}
|
|
712
|
-
};
|
|
713
|
-
const de_ListEarthObservationJobsCommand = async (output, context) => {
|
|
714
|
-
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
715
|
-
return de_ListEarthObservationJobsCommandError(output, context);
|
|
716
|
-
}
|
|
717
|
-
const contents = (0, smithy_client_1.map)({
|
|
718
|
-
$metadata: deserializeMetadata(output),
|
|
719
|
-
});
|
|
720
|
-
const data = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.expectObject)(await parseBody(output.body, context)), "body");
|
|
721
|
-
const doc = (0, smithy_client_1.take)(data, {
|
|
722
|
-
EarthObservationJobSummaries: (_) => de_EarthObservationJobList(_, context),
|
|
723
|
-
NextToken: smithy_client_1.expectString,
|
|
724
|
-
});
|
|
725
|
-
Object.assign(contents, doc);
|
|
726
|
-
return contents;
|
|
727
|
-
};
|
|
728
|
-
exports.de_ListEarthObservationJobsCommand = de_ListEarthObservationJobsCommand;
|
|
729
|
-
const de_ListEarthObservationJobsCommandError = async (output, context) => {
|
|
730
|
-
const parsedOutput = {
|
|
731
|
-
...output,
|
|
732
|
-
body: await parseErrorBody(output.body, context),
|
|
733
|
-
};
|
|
734
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
735
|
-
switch (errorCode) {
|
|
736
|
-
case "AccessDeniedException":
|
|
737
|
-
case "com.amazonaws.sagemakergeospatial#AccessDeniedException":
|
|
738
|
-
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
739
|
-
case "InternalServerException":
|
|
740
|
-
case "com.amazonaws.sagemakergeospatial#InternalServerException":
|
|
741
|
-
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
742
|
-
case "ResourceNotFoundException":
|
|
743
|
-
case "com.amazonaws.sagemakergeospatial#ResourceNotFoundException":
|
|
744
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
745
|
-
case "ThrottlingException":
|
|
746
|
-
case "com.amazonaws.sagemakergeospatial#ThrottlingException":
|
|
747
|
-
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
748
|
-
case "ValidationException":
|
|
749
|
-
case "com.amazonaws.sagemakergeospatial#ValidationException":
|
|
750
|
-
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
751
|
-
default:
|
|
752
|
-
const parsedBody = parsedOutput.body;
|
|
753
|
-
return throwDefaultError({
|
|
754
|
-
output,
|
|
755
|
-
parsedBody,
|
|
756
|
-
errorCode,
|
|
757
|
-
});
|
|
758
|
-
}
|
|
759
|
-
};
|
|
760
|
-
const de_ListRasterDataCollectionsCommand = async (output, context) => {
|
|
761
|
-
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
762
|
-
return de_ListRasterDataCollectionsCommandError(output, context);
|
|
763
|
-
}
|
|
764
|
-
const contents = (0, smithy_client_1.map)({
|
|
765
|
-
$metadata: deserializeMetadata(output),
|
|
766
|
-
});
|
|
767
|
-
const data = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.expectObject)(await parseBody(output.body, context)), "body");
|
|
768
|
-
const doc = (0, smithy_client_1.take)(data, {
|
|
769
|
-
NextToken: smithy_client_1.expectString,
|
|
770
|
-
RasterDataCollectionSummaries: (_) => de_DataCollectionsList(_, context),
|
|
771
|
-
});
|
|
772
|
-
Object.assign(contents, doc);
|
|
773
|
-
return contents;
|
|
774
|
-
};
|
|
775
|
-
exports.de_ListRasterDataCollectionsCommand = de_ListRasterDataCollectionsCommand;
|
|
776
|
-
const de_ListRasterDataCollectionsCommandError = async (output, context) => {
|
|
777
|
-
const parsedOutput = {
|
|
778
|
-
...output,
|
|
779
|
-
body: await parseErrorBody(output.body, context),
|
|
780
|
-
};
|
|
781
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
782
|
-
switch (errorCode) {
|
|
783
|
-
case "AccessDeniedException":
|
|
784
|
-
case "com.amazonaws.sagemakergeospatial#AccessDeniedException":
|
|
785
|
-
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
786
|
-
case "InternalServerException":
|
|
787
|
-
case "com.amazonaws.sagemakergeospatial#InternalServerException":
|
|
788
|
-
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
789
|
-
case "ResourceNotFoundException":
|
|
790
|
-
case "com.amazonaws.sagemakergeospatial#ResourceNotFoundException":
|
|
791
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
792
|
-
case "ThrottlingException":
|
|
793
|
-
case "com.amazonaws.sagemakergeospatial#ThrottlingException":
|
|
794
|
-
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
795
|
-
case "ValidationException":
|
|
796
|
-
case "com.amazonaws.sagemakergeospatial#ValidationException":
|
|
797
|
-
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
798
|
-
default:
|
|
799
|
-
const parsedBody = parsedOutput.body;
|
|
800
|
-
return throwDefaultError({
|
|
801
|
-
output,
|
|
802
|
-
parsedBody,
|
|
803
|
-
errorCode,
|
|
804
|
-
});
|
|
805
|
-
}
|
|
806
|
-
};
|
|
807
|
-
const de_ListTagsForResourceCommand = async (output, context) => {
|
|
808
|
-
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
809
|
-
return de_ListTagsForResourceCommandError(output, context);
|
|
810
|
-
}
|
|
811
|
-
const contents = (0, smithy_client_1.map)({
|
|
812
|
-
$metadata: deserializeMetadata(output),
|
|
813
|
-
});
|
|
814
|
-
const data = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.expectObject)(await parseBody(output.body, context)), "body");
|
|
815
|
-
const doc = (0, smithy_client_1.take)(data, {
|
|
816
|
-
Tags: smithy_client_1._json,
|
|
817
|
-
});
|
|
818
|
-
Object.assign(contents, doc);
|
|
819
|
-
return contents;
|
|
820
|
-
};
|
|
821
|
-
exports.de_ListTagsForResourceCommand = de_ListTagsForResourceCommand;
|
|
822
|
-
const de_ListTagsForResourceCommandError = async (output, context) => {
|
|
823
|
-
const parsedOutput = {
|
|
824
|
-
...output,
|
|
825
|
-
body: await parseErrorBody(output.body, context),
|
|
826
|
-
};
|
|
827
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
828
|
-
switch (errorCode) {
|
|
829
|
-
case "AccessDeniedException":
|
|
830
|
-
case "com.amazonaws.sagemakergeospatial#AccessDeniedException":
|
|
831
|
-
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
832
|
-
case "InternalServerException":
|
|
833
|
-
case "com.amazonaws.sagemakergeospatial#InternalServerException":
|
|
834
|
-
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
835
|
-
case "ResourceNotFoundException":
|
|
836
|
-
case "com.amazonaws.sagemakergeospatial#ResourceNotFoundException":
|
|
837
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
838
|
-
case "ThrottlingException":
|
|
839
|
-
case "com.amazonaws.sagemakergeospatial#ThrottlingException":
|
|
840
|
-
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
841
|
-
case "ValidationException":
|
|
842
|
-
case "com.amazonaws.sagemakergeospatial#ValidationException":
|
|
843
|
-
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
844
|
-
default:
|
|
845
|
-
const parsedBody = parsedOutput.body;
|
|
846
|
-
return throwDefaultError({
|
|
847
|
-
output,
|
|
848
|
-
parsedBody,
|
|
849
|
-
errorCode,
|
|
850
|
-
});
|
|
851
|
-
}
|
|
852
|
-
};
|
|
853
|
-
const de_ListVectorEnrichmentJobsCommand = async (output, context) => {
|
|
854
|
-
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
855
|
-
return de_ListVectorEnrichmentJobsCommandError(output, context);
|
|
856
|
-
}
|
|
857
|
-
const contents = (0, smithy_client_1.map)({
|
|
858
|
-
$metadata: deserializeMetadata(output),
|
|
859
|
-
});
|
|
860
|
-
const data = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.expectObject)(await parseBody(output.body, context)), "body");
|
|
861
|
-
const doc = (0, smithy_client_1.take)(data, {
|
|
862
|
-
NextToken: smithy_client_1.expectString,
|
|
863
|
-
VectorEnrichmentJobSummaries: (_) => de_VectorEnrichmentJobList(_, context),
|
|
864
|
-
});
|
|
865
|
-
Object.assign(contents, doc);
|
|
866
|
-
return contents;
|
|
867
|
-
};
|
|
868
|
-
exports.de_ListVectorEnrichmentJobsCommand = de_ListVectorEnrichmentJobsCommand;
|
|
869
|
-
const de_ListVectorEnrichmentJobsCommandError = async (output, context) => {
|
|
870
|
-
const parsedOutput = {
|
|
871
|
-
...output,
|
|
872
|
-
body: await parseErrorBody(output.body, context),
|
|
873
|
-
};
|
|
874
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
875
|
-
switch (errorCode) {
|
|
876
|
-
case "AccessDeniedException":
|
|
877
|
-
case "com.amazonaws.sagemakergeospatial#AccessDeniedException":
|
|
878
|
-
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
879
|
-
case "InternalServerException":
|
|
880
|
-
case "com.amazonaws.sagemakergeospatial#InternalServerException":
|
|
881
|
-
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
882
|
-
case "ResourceNotFoundException":
|
|
883
|
-
case "com.amazonaws.sagemakergeospatial#ResourceNotFoundException":
|
|
884
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
885
|
-
case "ThrottlingException":
|
|
886
|
-
case "com.amazonaws.sagemakergeospatial#ThrottlingException":
|
|
887
|
-
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
888
|
-
case "ValidationException":
|
|
889
|
-
case "com.amazonaws.sagemakergeospatial#ValidationException":
|
|
890
|
-
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
891
|
-
default:
|
|
892
|
-
const parsedBody = parsedOutput.body;
|
|
893
|
-
return throwDefaultError({
|
|
894
|
-
output,
|
|
895
|
-
parsedBody,
|
|
896
|
-
errorCode,
|
|
897
|
-
});
|
|
898
|
-
}
|
|
899
|
-
};
|
|
900
|
-
const de_SearchRasterDataCollectionCommand = async (output, context) => {
|
|
901
|
-
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
902
|
-
return de_SearchRasterDataCollectionCommandError(output, context);
|
|
903
|
-
}
|
|
904
|
-
const contents = (0, smithy_client_1.map)({
|
|
905
|
-
$metadata: deserializeMetadata(output),
|
|
906
|
-
});
|
|
907
|
-
const data = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.expectObject)(await parseBody(output.body, context)), "body");
|
|
908
|
-
const doc = (0, smithy_client_1.take)(data, {
|
|
909
|
-
ApproximateResultCount: smithy_client_1.expectInt32,
|
|
910
|
-
Items: (_) => de_ItemSourceList(_, context),
|
|
911
|
-
NextToken: smithy_client_1.expectString,
|
|
912
|
-
});
|
|
913
|
-
Object.assign(contents, doc);
|
|
914
|
-
return contents;
|
|
915
|
-
};
|
|
916
|
-
exports.de_SearchRasterDataCollectionCommand = de_SearchRasterDataCollectionCommand;
|
|
917
|
-
const de_SearchRasterDataCollectionCommandError = async (output, context) => {
|
|
918
|
-
const parsedOutput = {
|
|
919
|
-
...output,
|
|
920
|
-
body: await parseErrorBody(output.body, context),
|
|
921
|
-
};
|
|
922
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
923
|
-
switch (errorCode) {
|
|
924
|
-
case "AccessDeniedException":
|
|
925
|
-
case "com.amazonaws.sagemakergeospatial#AccessDeniedException":
|
|
926
|
-
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
927
|
-
case "InternalServerException":
|
|
928
|
-
case "com.amazonaws.sagemakergeospatial#InternalServerException":
|
|
929
|
-
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
930
|
-
case "ResourceNotFoundException":
|
|
931
|
-
case "com.amazonaws.sagemakergeospatial#ResourceNotFoundException":
|
|
932
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
933
|
-
case "ThrottlingException":
|
|
934
|
-
case "com.amazonaws.sagemakergeospatial#ThrottlingException":
|
|
935
|
-
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
936
|
-
case "ValidationException":
|
|
937
|
-
case "com.amazonaws.sagemakergeospatial#ValidationException":
|
|
938
|
-
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
939
|
-
default:
|
|
940
|
-
const parsedBody = parsedOutput.body;
|
|
941
|
-
return throwDefaultError({
|
|
942
|
-
output,
|
|
943
|
-
parsedBody,
|
|
944
|
-
errorCode,
|
|
945
|
-
});
|
|
946
|
-
}
|
|
947
|
-
};
|
|
948
|
-
const de_StartEarthObservationJobCommand = async (output, context) => {
|
|
949
|
-
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
950
|
-
return de_StartEarthObservationJobCommandError(output, context);
|
|
951
|
-
}
|
|
952
|
-
const contents = (0, smithy_client_1.map)({
|
|
953
|
-
$metadata: deserializeMetadata(output),
|
|
954
|
-
});
|
|
955
|
-
const data = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.expectObject)(await parseBody(output.body, context)), "body");
|
|
956
|
-
const doc = (0, smithy_client_1.take)(data, {
|
|
957
|
-
Arn: smithy_client_1.expectString,
|
|
958
|
-
CreationTime: (_) => (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseRfc3339DateTimeWithOffset)(_)),
|
|
959
|
-
DurationInSeconds: smithy_client_1.expectInt32,
|
|
960
|
-
ExecutionRoleArn: smithy_client_1.expectString,
|
|
961
|
-
InputConfig: (_) => de_InputConfigOutput(_, context),
|
|
962
|
-
JobConfig: (_) => de_JobConfigInput((0, core_1.awsExpectUnion)(_), context),
|
|
963
|
-
KmsKeyId: smithy_client_1.expectString,
|
|
964
|
-
Name: smithy_client_1.expectString,
|
|
965
|
-
Status: smithy_client_1.expectString,
|
|
966
|
-
Tags: smithy_client_1._json,
|
|
967
|
-
});
|
|
968
|
-
Object.assign(contents, doc);
|
|
969
|
-
return contents;
|
|
970
|
-
};
|
|
971
|
-
exports.de_StartEarthObservationJobCommand = de_StartEarthObservationJobCommand;
|
|
972
|
-
const de_StartEarthObservationJobCommandError = async (output, context) => {
|
|
973
|
-
const parsedOutput = {
|
|
974
|
-
...output,
|
|
975
|
-
body: await parseErrorBody(output.body, context),
|
|
976
|
-
};
|
|
977
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
978
|
-
switch (errorCode) {
|
|
979
|
-
case "AccessDeniedException":
|
|
980
|
-
case "com.amazonaws.sagemakergeospatial#AccessDeniedException":
|
|
981
|
-
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
982
|
-
case "ConflictException":
|
|
983
|
-
case "com.amazonaws.sagemakergeospatial#ConflictException":
|
|
984
|
-
throw await de_ConflictExceptionRes(parsedOutput, context);
|
|
985
|
-
case "InternalServerException":
|
|
986
|
-
case "com.amazonaws.sagemakergeospatial#InternalServerException":
|
|
987
|
-
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
988
|
-
case "ResourceNotFoundException":
|
|
989
|
-
case "com.amazonaws.sagemakergeospatial#ResourceNotFoundException":
|
|
990
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
991
|
-
case "ServiceQuotaExceededException":
|
|
992
|
-
case "com.amazonaws.sagemakergeospatial#ServiceQuotaExceededException":
|
|
993
|
-
throw await de_ServiceQuotaExceededExceptionRes(parsedOutput, context);
|
|
994
|
-
case "ThrottlingException":
|
|
995
|
-
case "com.amazonaws.sagemakergeospatial#ThrottlingException":
|
|
996
|
-
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
997
|
-
case "ValidationException":
|
|
998
|
-
case "com.amazonaws.sagemakergeospatial#ValidationException":
|
|
999
|
-
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
1000
|
-
default:
|
|
1001
|
-
const parsedBody = parsedOutput.body;
|
|
1002
|
-
return throwDefaultError({
|
|
1003
|
-
output,
|
|
1004
|
-
parsedBody,
|
|
1005
|
-
errorCode,
|
|
1006
|
-
});
|
|
1007
|
-
}
|
|
1008
|
-
};
|
|
1009
|
-
const de_StartVectorEnrichmentJobCommand = async (output, context) => {
|
|
1010
|
-
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
1011
|
-
return de_StartVectorEnrichmentJobCommandError(output, context);
|
|
1012
|
-
}
|
|
1013
|
-
const contents = (0, smithy_client_1.map)({
|
|
1014
|
-
$metadata: deserializeMetadata(output),
|
|
1015
|
-
});
|
|
1016
|
-
const data = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.expectObject)(await parseBody(output.body, context)), "body");
|
|
1017
|
-
const doc = (0, smithy_client_1.take)(data, {
|
|
1018
|
-
Arn: smithy_client_1.expectString,
|
|
1019
|
-
CreationTime: (_) => (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseRfc3339DateTimeWithOffset)(_)),
|
|
1020
|
-
DurationInSeconds: smithy_client_1.expectInt32,
|
|
1021
|
-
ExecutionRoleArn: smithy_client_1.expectString,
|
|
1022
|
-
InputConfig: smithy_client_1._json,
|
|
1023
|
-
JobConfig: (_) => (0, smithy_client_1._json)((0, core_1.awsExpectUnion)(_)),
|
|
1024
|
-
KmsKeyId: smithy_client_1.expectString,
|
|
1025
|
-
Name: smithy_client_1.expectString,
|
|
1026
|
-
Status: smithy_client_1.expectString,
|
|
1027
|
-
Tags: smithy_client_1._json,
|
|
1028
|
-
Type: smithy_client_1.expectString,
|
|
1029
|
-
});
|
|
1030
|
-
Object.assign(contents, doc);
|
|
1031
|
-
return contents;
|
|
1032
|
-
};
|
|
1033
|
-
exports.de_StartVectorEnrichmentJobCommand = de_StartVectorEnrichmentJobCommand;
|
|
1034
|
-
const de_StartVectorEnrichmentJobCommandError = async (output, context) => {
|
|
1035
|
-
const parsedOutput = {
|
|
1036
|
-
...output,
|
|
1037
|
-
body: await parseErrorBody(output.body, context),
|
|
1038
|
-
};
|
|
1039
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1040
|
-
switch (errorCode) {
|
|
1041
|
-
case "AccessDeniedException":
|
|
1042
|
-
case "com.amazonaws.sagemakergeospatial#AccessDeniedException":
|
|
1043
|
-
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
1044
|
-
case "ConflictException":
|
|
1045
|
-
case "com.amazonaws.sagemakergeospatial#ConflictException":
|
|
1046
|
-
throw await de_ConflictExceptionRes(parsedOutput, context);
|
|
1047
|
-
case "InternalServerException":
|
|
1048
|
-
case "com.amazonaws.sagemakergeospatial#InternalServerException":
|
|
1049
|
-
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
1050
|
-
case "ResourceNotFoundException":
|
|
1051
|
-
case "com.amazonaws.sagemakergeospatial#ResourceNotFoundException":
|
|
1052
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
1053
|
-
case "ServiceQuotaExceededException":
|
|
1054
|
-
case "com.amazonaws.sagemakergeospatial#ServiceQuotaExceededException":
|
|
1055
|
-
throw await de_ServiceQuotaExceededExceptionRes(parsedOutput, context);
|
|
1056
|
-
case "ThrottlingException":
|
|
1057
|
-
case "com.amazonaws.sagemakergeospatial#ThrottlingException":
|
|
1058
|
-
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
1059
|
-
case "ValidationException":
|
|
1060
|
-
case "com.amazonaws.sagemakergeospatial#ValidationException":
|
|
1061
|
-
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
1062
|
-
default:
|
|
1063
|
-
const parsedBody = parsedOutput.body;
|
|
1064
|
-
return throwDefaultError({
|
|
1065
|
-
output,
|
|
1066
|
-
parsedBody,
|
|
1067
|
-
errorCode,
|
|
1068
|
-
});
|
|
1069
|
-
}
|
|
1070
|
-
};
|
|
1071
|
-
const de_StopEarthObservationJobCommand = async (output, context) => {
|
|
1072
|
-
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
1073
|
-
return de_StopEarthObservationJobCommandError(output, context);
|
|
1074
|
-
}
|
|
1075
|
-
const contents = (0, smithy_client_1.map)({
|
|
1076
|
-
$metadata: deserializeMetadata(output),
|
|
1077
|
-
});
|
|
1078
|
-
await (0, smithy_client_1.collectBody)(output.body, context);
|
|
1079
|
-
return contents;
|
|
1080
|
-
};
|
|
1081
|
-
exports.de_StopEarthObservationJobCommand = de_StopEarthObservationJobCommand;
|
|
1082
|
-
const de_StopEarthObservationJobCommandError = async (output, context) => {
|
|
1083
|
-
const parsedOutput = {
|
|
1084
|
-
...output,
|
|
1085
|
-
body: await parseErrorBody(output.body, context),
|
|
1086
|
-
};
|
|
1087
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1088
|
-
switch (errorCode) {
|
|
1089
|
-
case "AccessDeniedException":
|
|
1090
|
-
case "com.amazonaws.sagemakergeospatial#AccessDeniedException":
|
|
1091
|
-
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
1092
|
-
case "ConflictException":
|
|
1093
|
-
case "com.amazonaws.sagemakergeospatial#ConflictException":
|
|
1094
|
-
throw await de_ConflictExceptionRes(parsedOutput, context);
|
|
1095
|
-
case "InternalServerException":
|
|
1096
|
-
case "com.amazonaws.sagemakergeospatial#InternalServerException":
|
|
1097
|
-
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
1098
|
-
case "ResourceNotFoundException":
|
|
1099
|
-
case "com.amazonaws.sagemakergeospatial#ResourceNotFoundException":
|
|
1100
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
1101
|
-
case "ThrottlingException":
|
|
1102
|
-
case "com.amazonaws.sagemakergeospatial#ThrottlingException":
|
|
1103
|
-
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
1104
|
-
case "ValidationException":
|
|
1105
|
-
case "com.amazonaws.sagemakergeospatial#ValidationException":
|
|
1106
|
-
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
1107
|
-
default:
|
|
1108
|
-
const parsedBody = parsedOutput.body;
|
|
1109
|
-
return throwDefaultError({
|
|
1110
|
-
output,
|
|
1111
|
-
parsedBody,
|
|
1112
|
-
errorCode,
|
|
1113
|
-
});
|
|
1114
|
-
}
|
|
1115
|
-
};
|
|
1116
|
-
const de_StopVectorEnrichmentJobCommand = async (output, context) => {
|
|
1117
|
-
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
1118
|
-
return de_StopVectorEnrichmentJobCommandError(output, context);
|
|
1119
|
-
}
|
|
1120
|
-
const contents = (0, smithy_client_1.map)({
|
|
1121
|
-
$metadata: deserializeMetadata(output),
|
|
1122
|
-
});
|
|
1123
|
-
await (0, smithy_client_1.collectBody)(output.body, context);
|
|
1124
|
-
return contents;
|
|
1125
|
-
};
|
|
1126
|
-
exports.de_StopVectorEnrichmentJobCommand = de_StopVectorEnrichmentJobCommand;
|
|
1127
|
-
const de_StopVectorEnrichmentJobCommandError = async (output, context) => {
|
|
1128
|
-
const parsedOutput = {
|
|
1129
|
-
...output,
|
|
1130
|
-
body: await parseErrorBody(output.body, context),
|
|
1131
|
-
};
|
|
1132
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1133
|
-
switch (errorCode) {
|
|
1134
|
-
case "AccessDeniedException":
|
|
1135
|
-
case "com.amazonaws.sagemakergeospatial#AccessDeniedException":
|
|
1136
|
-
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
1137
|
-
case "ConflictException":
|
|
1138
|
-
case "com.amazonaws.sagemakergeospatial#ConflictException":
|
|
1139
|
-
throw await de_ConflictExceptionRes(parsedOutput, context);
|
|
1140
|
-
case "InternalServerException":
|
|
1141
|
-
case "com.amazonaws.sagemakergeospatial#InternalServerException":
|
|
1142
|
-
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
1143
|
-
case "ResourceNotFoundException":
|
|
1144
|
-
case "com.amazonaws.sagemakergeospatial#ResourceNotFoundException":
|
|
1145
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
1146
|
-
case "ThrottlingException":
|
|
1147
|
-
case "com.amazonaws.sagemakergeospatial#ThrottlingException":
|
|
1148
|
-
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
1149
|
-
case "ValidationException":
|
|
1150
|
-
case "com.amazonaws.sagemakergeospatial#ValidationException":
|
|
1151
|
-
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
1152
|
-
default:
|
|
1153
|
-
const parsedBody = parsedOutput.body;
|
|
1154
|
-
return throwDefaultError({
|
|
1155
|
-
output,
|
|
1156
|
-
parsedBody,
|
|
1157
|
-
errorCode,
|
|
1158
|
-
});
|
|
1159
|
-
}
|
|
1160
|
-
};
|
|
1161
|
-
const de_TagResourceCommand = async (output, context) => {
|
|
1162
|
-
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
1163
|
-
return de_TagResourceCommandError(output, context);
|
|
1164
|
-
}
|
|
1165
|
-
const contents = (0, smithy_client_1.map)({
|
|
1166
|
-
$metadata: deserializeMetadata(output),
|
|
1167
|
-
});
|
|
1168
|
-
await (0, smithy_client_1.collectBody)(output.body, context);
|
|
1169
|
-
return contents;
|
|
1170
|
-
};
|
|
1171
|
-
exports.de_TagResourceCommand = de_TagResourceCommand;
|
|
1172
|
-
const de_TagResourceCommandError = async (output, context) => {
|
|
1173
|
-
const parsedOutput = {
|
|
1174
|
-
...output,
|
|
1175
|
-
body: await parseErrorBody(output.body, context),
|
|
1176
|
-
};
|
|
1177
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1178
|
-
switch (errorCode) {
|
|
1179
|
-
case "AccessDeniedException":
|
|
1180
|
-
case "com.amazonaws.sagemakergeospatial#AccessDeniedException":
|
|
1181
|
-
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
1182
|
-
case "InternalServerException":
|
|
1183
|
-
case "com.amazonaws.sagemakergeospatial#InternalServerException":
|
|
1184
|
-
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
1185
|
-
case "ResourceNotFoundException":
|
|
1186
|
-
case "com.amazonaws.sagemakergeospatial#ResourceNotFoundException":
|
|
1187
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
1188
|
-
case "ThrottlingException":
|
|
1189
|
-
case "com.amazonaws.sagemakergeospatial#ThrottlingException":
|
|
1190
|
-
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
1191
|
-
case "ValidationException":
|
|
1192
|
-
case "com.amazonaws.sagemakergeospatial#ValidationException":
|
|
1193
|
-
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
1194
|
-
default:
|
|
1195
|
-
const parsedBody = parsedOutput.body;
|
|
1196
|
-
return throwDefaultError({
|
|
1197
|
-
output,
|
|
1198
|
-
parsedBody,
|
|
1199
|
-
errorCode,
|
|
1200
|
-
});
|
|
1201
|
-
}
|
|
1202
|
-
};
|
|
1203
|
-
const de_UntagResourceCommand = async (output, context) => {
|
|
1204
|
-
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
1205
|
-
return de_UntagResourceCommandError(output, context);
|
|
1206
|
-
}
|
|
1207
|
-
const contents = (0, smithy_client_1.map)({
|
|
1208
|
-
$metadata: deserializeMetadata(output),
|
|
1209
|
-
});
|
|
1210
|
-
await (0, smithy_client_1.collectBody)(output.body, context);
|
|
1211
|
-
return contents;
|
|
1212
|
-
};
|
|
1213
|
-
exports.de_UntagResourceCommand = de_UntagResourceCommand;
|
|
1214
|
-
const de_UntagResourceCommandError = async (output, context) => {
|
|
1215
|
-
const parsedOutput = {
|
|
1216
|
-
...output,
|
|
1217
|
-
body: await parseErrorBody(output.body, context),
|
|
1218
|
-
};
|
|
1219
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1220
|
-
switch (errorCode) {
|
|
1221
|
-
case "AccessDeniedException":
|
|
1222
|
-
case "com.amazonaws.sagemakergeospatial#AccessDeniedException":
|
|
1223
|
-
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
1224
|
-
case "InternalServerException":
|
|
1225
|
-
case "com.amazonaws.sagemakergeospatial#InternalServerException":
|
|
1226
|
-
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
1227
|
-
case "ResourceNotFoundException":
|
|
1228
|
-
case "com.amazonaws.sagemakergeospatial#ResourceNotFoundException":
|
|
1229
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
1230
|
-
case "ThrottlingException":
|
|
1231
|
-
case "com.amazonaws.sagemakergeospatial#ThrottlingException":
|
|
1232
|
-
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
1233
|
-
case "ValidationException":
|
|
1234
|
-
case "com.amazonaws.sagemakergeospatial#ValidationException":
|
|
1235
|
-
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
1236
|
-
default:
|
|
1237
|
-
const parsedBody = parsedOutput.body;
|
|
1238
|
-
return throwDefaultError({
|
|
1239
|
-
output,
|
|
1240
|
-
parsedBody,
|
|
1241
|
-
errorCode,
|
|
1242
|
-
});
|
|
1243
|
-
}
|
|
1244
|
-
};
|
|
1245
|
-
const throwDefaultError = (0, smithy_client_1.withBaseException)(SageMakerGeospatialServiceException_1.SageMakerGeospatialServiceException);
|
|
1246
|
-
const de_AccessDeniedExceptionRes = async (parsedOutput, context) => {
|
|
1247
|
-
const contents = (0, smithy_client_1.map)({});
|
|
1248
|
-
const data = parsedOutput.body;
|
|
1249
|
-
const doc = (0, smithy_client_1.take)(data, {
|
|
1250
|
-
Message: smithy_client_1.expectString,
|
|
1251
|
-
});
|
|
1252
|
-
Object.assign(contents, doc);
|
|
1253
|
-
const exception = new models_0_1.AccessDeniedException({
|
|
1254
|
-
$metadata: deserializeMetadata(parsedOutput),
|
|
1255
|
-
...contents,
|
|
1256
|
-
});
|
|
1257
|
-
return (0, smithy_client_1.decorateServiceException)(exception, parsedOutput.body);
|
|
1258
|
-
};
|
|
1259
|
-
const de_ConflictExceptionRes = async (parsedOutput, context) => {
|
|
1260
|
-
const contents = (0, smithy_client_1.map)({});
|
|
1261
|
-
const data = parsedOutput.body;
|
|
1262
|
-
const doc = (0, smithy_client_1.take)(data, {
|
|
1263
|
-
Message: smithy_client_1.expectString,
|
|
1264
|
-
ResourceId: smithy_client_1.expectString,
|
|
1265
|
-
});
|
|
1266
|
-
Object.assign(contents, doc);
|
|
1267
|
-
const exception = new models_0_1.ConflictException({
|
|
1268
|
-
$metadata: deserializeMetadata(parsedOutput),
|
|
1269
|
-
...contents,
|
|
1270
|
-
});
|
|
1271
|
-
return (0, smithy_client_1.decorateServiceException)(exception, parsedOutput.body);
|
|
1272
|
-
};
|
|
1273
|
-
const de_InternalServerExceptionRes = async (parsedOutput, context) => {
|
|
1274
|
-
const contents = (0, smithy_client_1.map)({});
|
|
1275
|
-
const data = parsedOutput.body;
|
|
1276
|
-
const doc = (0, smithy_client_1.take)(data, {
|
|
1277
|
-
Message: smithy_client_1.expectString,
|
|
1278
|
-
ResourceId: smithy_client_1.expectString,
|
|
1279
|
-
});
|
|
1280
|
-
Object.assign(contents, doc);
|
|
1281
|
-
const exception = new models_0_1.InternalServerException({
|
|
1282
|
-
$metadata: deserializeMetadata(parsedOutput),
|
|
1283
|
-
...contents,
|
|
1284
|
-
});
|
|
1285
|
-
return (0, smithy_client_1.decorateServiceException)(exception, parsedOutput.body);
|
|
1286
|
-
};
|
|
1287
|
-
const de_ResourceNotFoundExceptionRes = async (parsedOutput, context) => {
|
|
1288
|
-
const contents = (0, smithy_client_1.map)({});
|
|
1289
|
-
const data = parsedOutput.body;
|
|
1290
|
-
const doc = (0, smithy_client_1.take)(data, {
|
|
1291
|
-
Message: smithy_client_1.expectString,
|
|
1292
|
-
ResourceId: smithy_client_1.expectString,
|
|
1293
|
-
});
|
|
1294
|
-
Object.assign(contents, doc);
|
|
1295
|
-
const exception = new models_0_1.ResourceNotFoundException({
|
|
1296
|
-
$metadata: deserializeMetadata(parsedOutput),
|
|
1297
|
-
...contents,
|
|
1298
|
-
});
|
|
1299
|
-
return (0, smithy_client_1.decorateServiceException)(exception, parsedOutput.body);
|
|
1300
|
-
};
|
|
1301
|
-
const de_ServiceQuotaExceededExceptionRes = async (parsedOutput, context) => {
|
|
1302
|
-
const contents = (0, smithy_client_1.map)({});
|
|
1303
|
-
const data = parsedOutput.body;
|
|
1304
|
-
const doc = (0, smithy_client_1.take)(data, {
|
|
1305
|
-
Message: smithy_client_1.expectString,
|
|
1306
|
-
ResourceId: smithy_client_1.expectString,
|
|
1307
|
-
});
|
|
1308
|
-
Object.assign(contents, doc);
|
|
1309
|
-
const exception = new models_0_1.ServiceQuotaExceededException({
|
|
1310
|
-
$metadata: deserializeMetadata(parsedOutput),
|
|
1311
|
-
...contents,
|
|
1312
|
-
});
|
|
1313
|
-
return (0, smithy_client_1.decorateServiceException)(exception, parsedOutput.body);
|
|
1314
|
-
};
|
|
1315
|
-
const de_ThrottlingExceptionRes = async (parsedOutput, context) => {
|
|
1316
|
-
const contents = (0, smithy_client_1.map)({});
|
|
1317
|
-
const data = parsedOutput.body;
|
|
1318
|
-
const doc = (0, smithy_client_1.take)(data, {
|
|
1319
|
-
Message: smithy_client_1.expectString,
|
|
1320
|
-
ResourceId: smithy_client_1.expectString,
|
|
1321
|
-
});
|
|
1322
|
-
Object.assign(contents, doc);
|
|
1323
|
-
const exception = new models_0_1.ThrottlingException({
|
|
1324
|
-
$metadata: deserializeMetadata(parsedOutput),
|
|
1325
|
-
...contents,
|
|
1326
|
-
});
|
|
1327
|
-
return (0, smithy_client_1.decorateServiceException)(exception, parsedOutput.body);
|
|
1328
|
-
};
|
|
1329
|
-
const de_ValidationExceptionRes = async (parsedOutput, context) => {
|
|
1330
|
-
const contents = (0, smithy_client_1.map)({});
|
|
1331
|
-
const data = parsedOutput.body;
|
|
1332
|
-
const doc = (0, smithy_client_1.take)(data, {
|
|
1333
|
-
Message: smithy_client_1.expectString,
|
|
1334
|
-
ResourceId: smithy_client_1.expectString,
|
|
1335
|
-
});
|
|
1336
|
-
Object.assign(contents, doc);
|
|
1337
|
-
const exception = new models_0_1.ValidationException({
|
|
1338
|
-
$metadata: deserializeMetadata(parsedOutput),
|
|
1339
|
-
...contents,
|
|
1340
|
-
});
|
|
1341
|
-
return (0, smithy_client_1.decorateServiceException)(exception, parsedOutput.body);
|
|
1342
|
-
};
|
|
1343
|
-
const se_AreaOfInterest = (input, context) => {
|
|
1344
|
-
return models_0_1.AreaOfInterest.visit(input, {
|
|
1345
|
-
AreaOfInterestGeometry: (value) => ({ AreaOfInterestGeometry: se_AreaOfInterestGeometry(value, context) }),
|
|
1346
|
-
_: (name, value) => ({ name: value }),
|
|
1347
|
-
});
|
|
1348
|
-
};
|
|
1349
|
-
const se_AreaOfInterestGeometry = (input, context) => {
|
|
1350
|
-
return models_0_1.AreaOfInterestGeometry.visit(input, {
|
|
1351
|
-
MultiPolygonGeometry: (value) => ({ MultiPolygonGeometry: se_MultiPolygonGeometryInput(value, context) }),
|
|
1352
|
-
PolygonGeometry: (value) => ({ PolygonGeometry: se_PolygonGeometryInput(value, context) }),
|
|
1353
|
-
_: (name, value) => ({ name: value }),
|
|
1354
|
-
});
|
|
1355
|
-
};
|
|
1356
|
-
const se_EoCloudCoverInput = (input, context) => {
|
|
1357
|
-
return (0, smithy_client_1.take)(input, {
|
|
1358
|
-
LowerBound: smithy_client_1.serializeFloat,
|
|
1359
|
-
UpperBound: smithy_client_1.serializeFloat,
|
|
1360
|
-
});
|
|
1361
|
-
};
|
|
1362
|
-
const se_InputConfigInput = (input, context) => {
|
|
1363
|
-
return (0, smithy_client_1.take)(input, {
|
|
1364
|
-
PreviousEarthObservationJobArn: [],
|
|
1365
|
-
RasterDataCollectionQuery: (_) => se_RasterDataCollectionQueryInput(_, context),
|
|
1366
|
-
});
|
|
1367
|
-
};
|
|
1368
|
-
const se_JobConfigInput = (input, context) => {
|
|
1369
|
-
return models_0_1.JobConfigInput.visit(input, {
|
|
1370
|
-
BandMathConfig: (value) => ({ BandMathConfig: (0, smithy_client_1._json)(value) }),
|
|
1371
|
-
CloudMaskingConfig: (value) => ({ CloudMaskingConfig: (0, smithy_client_1._json)(value) }),
|
|
1372
|
-
CloudRemovalConfig: (value) => ({ CloudRemovalConfig: (0, smithy_client_1._json)(value) }),
|
|
1373
|
-
GeoMosaicConfig: (value) => ({ GeoMosaicConfig: (0, smithy_client_1._json)(value) }),
|
|
1374
|
-
LandCoverSegmentationConfig: (value) => ({ LandCoverSegmentationConfig: (0, smithy_client_1._json)(value) }),
|
|
1375
|
-
ResamplingConfig: (value) => ({ ResamplingConfig: se_ResamplingConfigInput(value, context) }),
|
|
1376
|
-
StackConfig: (value) => ({ StackConfig: se_StackConfigInput(value, context) }),
|
|
1377
|
-
TemporalStatisticsConfig: (value) => ({ TemporalStatisticsConfig: (0, smithy_client_1._json)(value) }),
|
|
1378
|
-
ZonalStatisticsConfig: (value) => ({ ZonalStatisticsConfig: (0, smithy_client_1._json)(value) }),
|
|
1379
|
-
_: (name, value) => ({ name: value }),
|
|
1380
|
-
});
|
|
1381
|
-
};
|
|
1382
|
-
const se_LandsatCloudCoverLandInput = (input, context) => {
|
|
1383
|
-
return (0, smithy_client_1.take)(input, {
|
|
1384
|
-
LowerBound: smithy_client_1.serializeFloat,
|
|
1385
|
-
UpperBound: smithy_client_1.serializeFloat,
|
|
1386
|
-
});
|
|
1387
|
-
};
|
|
1388
|
-
const se_LinearRing = (input, context) => {
|
|
1389
|
-
return input
|
|
1390
|
-
.filter((e) => e != null)
|
|
1391
|
-
.map((entry) => {
|
|
1392
|
-
return se_Position(entry, context);
|
|
1393
|
-
});
|
|
1394
|
-
};
|
|
1395
|
-
const se_LinearRings = (input, context) => {
|
|
1396
|
-
return input
|
|
1397
|
-
.filter((e) => e != null)
|
|
1398
|
-
.map((entry) => {
|
|
1399
|
-
return se_LinearRing(entry, context);
|
|
1400
|
-
});
|
|
1401
|
-
};
|
|
1402
|
-
const se_LinearRingsList = (input, context) => {
|
|
1403
|
-
return input
|
|
1404
|
-
.filter((e) => e != null)
|
|
1405
|
-
.map((entry) => {
|
|
1406
|
-
return se_LinearRings(entry, context);
|
|
1407
|
-
});
|
|
1408
|
-
};
|
|
1409
|
-
const se_MultiPolygonGeometryInput = (input, context) => {
|
|
1410
|
-
return (0, smithy_client_1.take)(input, {
|
|
1411
|
-
Coordinates: (_) => se_LinearRingsList(_, context),
|
|
1412
|
-
});
|
|
1413
|
-
};
|
|
1414
|
-
const se_OutputResolutionResamplingInput = (input, context) => {
|
|
1415
|
-
return (0, smithy_client_1.take)(input, {
|
|
1416
|
-
UserDefined: (_) => se_UserDefined(_, context),
|
|
1417
|
-
});
|
|
1418
|
-
};
|
|
1419
|
-
const se_OutputResolutionStackInput = (input, context) => {
|
|
1420
|
-
return (0, smithy_client_1.take)(input, {
|
|
1421
|
-
Predefined: [],
|
|
1422
|
-
UserDefined: (_) => se_UserDefined(_, context),
|
|
1423
|
-
});
|
|
1424
|
-
};
|
|
1425
|
-
const se_PolygonGeometryInput = (input, context) => {
|
|
1426
|
-
return (0, smithy_client_1.take)(input, {
|
|
1427
|
-
Coordinates: (_) => se_LinearRings(_, context),
|
|
1428
|
-
});
|
|
1429
|
-
};
|
|
1430
|
-
const se_Position = (input, context) => {
|
|
1431
|
-
return input
|
|
1432
|
-
.filter((e) => e != null)
|
|
1433
|
-
.map((entry) => {
|
|
1434
|
-
return (0, smithy_client_1.serializeFloat)(entry);
|
|
1435
|
-
});
|
|
1436
|
-
};
|
|
1437
|
-
const se_Property = (input, context) => {
|
|
1438
|
-
return models_0_1.Property.visit(input, {
|
|
1439
|
-
EoCloudCover: (value) => ({ EoCloudCover: se_EoCloudCoverInput(value, context) }),
|
|
1440
|
-
LandsatCloudCoverLand: (value) => ({ LandsatCloudCoverLand: se_LandsatCloudCoverLandInput(value, context) }),
|
|
1441
|
-
Platform: (value) => ({ Platform: (0, smithy_client_1._json)(value) }),
|
|
1442
|
-
ViewOffNadir: (value) => ({ ViewOffNadir: se_ViewOffNadirInput(value, context) }),
|
|
1443
|
-
ViewSunAzimuth: (value) => ({ ViewSunAzimuth: se_ViewSunAzimuthInput(value, context) }),
|
|
1444
|
-
ViewSunElevation: (value) => ({ ViewSunElevation: se_ViewSunElevationInput(value, context) }),
|
|
1445
|
-
_: (name, value) => ({ name: value }),
|
|
1446
|
-
});
|
|
1447
|
-
};
|
|
1448
|
-
const se_PropertyFilter = (input, context) => {
|
|
1449
|
-
return (0, smithy_client_1.take)(input, {
|
|
1450
|
-
Property: (_) => se_Property(_, context),
|
|
1451
|
-
});
|
|
1452
|
-
};
|
|
1453
|
-
const se_PropertyFilters = (input, context) => {
|
|
1454
|
-
return (0, smithy_client_1.take)(input, {
|
|
1455
|
-
LogicalOperator: [],
|
|
1456
|
-
Properties: (_) => se_PropertyFiltersList(_, context),
|
|
1457
|
-
});
|
|
1458
|
-
};
|
|
1459
|
-
const se_PropertyFiltersList = (input, context) => {
|
|
1460
|
-
return input
|
|
1461
|
-
.filter((e) => e != null)
|
|
1462
|
-
.map((entry) => {
|
|
1463
|
-
return se_PropertyFilter(entry, context);
|
|
1464
|
-
});
|
|
1465
|
-
};
|
|
1466
|
-
const se_RasterDataCollectionQueryInput = (input, context) => {
|
|
1467
|
-
return (0, smithy_client_1.take)(input, {
|
|
1468
|
-
AreaOfInterest: (_) => se_AreaOfInterest(_, context),
|
|
1469
|
-
PropertyFilters: (_) => se_PropertyFilters(_, context),
|
|
1470
|
-
RasterDataCollectionArn: [],
|
|
1471
|
-
TimeRangeFilter: (_) => se_TimeRangeFilterInput(_, context),
|
|
1472
|
-
});
|
|
1473
|
-
};
|
|
1474
|
-
const se_RasterDataCollectionQueryWithBandFilterInput = (input, context) => {
|
|
1475
|
-
return (0, smithy_client_1.take)(input, {
|
|
1476
|
-
AreaOfInterest: (_) => se_AreaOfInterest(_, context),
|
|
1477
|
-
BandFilter: smithy_client_1._json,
|
|
1478
|
-
PropertyFilters: (_) => se_PropertyFilters(_, context),
|
|
1479
|
-
TimeRangeFilter: (_) => se_TimeRangeFilterInput(_, context),
|
|
1480
|
-
});
|
|
1481
|
-
};
|
|
1482
|
-
const se_ResamplingConfigInput = (input, context) => {
|
|
1483
|
-
return (0, smithy_client_1.take)(input, {
|
|
1484
|
-
AlgorithmName: [],
|
|
1485
|
-
OutputResolution: (_) => se_OutputResolutionResamplingInput(_, context),
|
|
1486
|
-
TargetBands: smithy_client_1._json,
|
|
1487
|
-
});
|
|
1488
|
-
};
|
|
1489
|
-
const se_StackConfigInput = (input, context) => {
|
|
1490
|
-
return (0, smithy_client_1.take)(input, {
|
|
1491
|
-
OutputResolution: (_) => se_OutputResolutionStackInput(_, context),
|
|
1492
|
-
TargetBands: smithy_client_1._json,
|
|
1493
|
-
});
|
|
1494
|
-
};
|
|
1495
|
-
const se_TimeRangeFilterInput = (input, context) => {
|
|
1496
|
-
return (0, smithy_client_1.take)(input, {
|
|
1497
|
-
EndTime: (_) => Math.round(_.getTime() / 1000),
|
|
1498
|
-
StartTime: (_) => Math.round(_.getTime() / 1000),
|
|
1499
|
-
});
|
|
1500
|
-
};
|
|
1501
|
-
const se_UserDefined = (input, context) => {
|
|
1502
|
-
return (0, smithy_client_1.take)(input, {
|
|
1503
|
-
Unit: [],
|
|
1504
|
-
Value: smithy_client_1.serializeFloat,
|
|
1505
|
-
});
|
|
1506
|
-
};
|
|
1507
|
-
const se_ViewOffNadirInput = (input, context) => {
|
|
1508
|
-
return (0, smithy_client_1.take)(input, {
|
|
1509
|
-
LowerBound: smithy_client_1.serializeFloat,
|
|
1510
|
-
UpperBound: smithy_client_1.serializeFloat,
|
|
1511
|
-
});
|
|
1512
|
-
};
|
|
1513
|
-
const se_ViewSunAzimuthInput = (input, context) => {
|
|
1514
|
-
return (0, smithy_client_1.take)(input, {
|
|
1515
|
-
LowerBound: smithy_client_1.serializeFloat,
|
|
1516
|
-
UpperBound: smithy_client_1.serializeFloat,
|
|
1517
|
-
});
|
|
1518
|
-
};
|
|
1519
|
-
const se_ViewSunElevationInput = (input, context) => {
|
|
1520
|
-
return (0, smithy_client_1.take)(input, {
|
|
1521
|
-
LowerBound: smithy_client_1.serializeFloat,
|
|
1522
|
-
UpperBound: smithy_client_1.serializeFloat,
|
|
1523
|
-
});
|
|
1524
|
-
};
|
|
1525
|
-
const de_AreaOfInterest = (output, context) => {
|
|
1526
|
-
if (output.AreaOfInterestGeometry != null) {
|
|
1527
|
-
return {
|
|
1528
|
-
AreaOfInterestGeometry: de_AreaOfInterestGeometry((0, core_1.awsExpectUnion)(output.AreaOfInterestGeometry), context),
|
|
1529
|
-
};
|
|
1530
|
-
}
|
|
1531
|
-
return { $unknown: Object.entries(output)[0] };
|
|
1532
|
-
};
|
|
1533
|
-
const de_AreaOfInterestGeometry = (output, context) => {
|
|
1534
|
-
if (output.MultiPolygonGeometry != null) {
|
|
1535
|
-
return {
|
|
1536
|
-
MultiPolygonGeometry: de_MultiPolygonGeometryInput(output.MultiPolygonGeometry, context),
|
|
1537
|
-
};
|
|
1538
|
-
}
|
|
1539
|
-
if (output.PolygonGeometry != null) {
|
|
1540
|
-
return {
|
|
1541
|
-
PolygonGeometry: de_PolygonGeometryInput(output.PolygonGeometry, context),
|
|
1542
|
-
};
|
|
1543
|
-
}
|
|
1544
|
-
return { $unknown: Object.entries(output)[0] };
|
|
1545
|
-
};
|
|
1546
|
-
const de_DataCollectionsList = (output, context) => {
|
|
1547
|
-
const retVal = (output || [])
|
|
1548
|
-
.filter((e) => e != null)
|
|
1549
|
-
.map((entry) => {
|
|
1550
|
-
return de_RasterDataCollectionMetadata(entry, context);
|
|
1551
|
-
});
|
|
1552
|
-
return retVal;
|
|
1553
|
-
};
|
|
1554
|
-
const de_EarthObservationJobList = (output, context) => {
|
|
1555
|
-
const retVal = (output || [])
|
|
1556
|
-
.filter((e) => e != null)
|
|
1557
|
-
.map((entry) => {
|
|
1558
|
-
return de_ListEarthObservationJobOutputConfig(entry, context);
|
|
1559
|
-
});
|
|
1560
|
-
return retVal;
|
|
1561
|
-
};
|
|
1562
|
-
const de_EoCloudCoverInput = (output, context) => {
|
|
1563
|
-
return (0, smithy_client_1.take)(output, {
|
|
1564
|
-
LowerBound: smithy_client_1.limitedParseFloat32,
|
|
1565
|
-
UpperBound: smithy_client_1.limitedParseFloat32,
|
|
1566
|
-
});
|
|
1567
|
-
};
|
|
1568
|
-
const de_Filter = (output, context) => {
|
|
1569
|
-
return (0, smithy_client_1.take)(output, {
|
|
1570
|
-
Maximum: smithy_client_1.limitedParseFloat32,
|
|
1571
|
-
Minimum: smithy_client_1.limitedParseFloat32,
|
|
1572
|
-
Name: smithy_client_1.expectString,
|
|
1573
|
-
Type: smithy_client_1.expectString,
|
|
1574
|
-
});
|
|
1575
|
-
};
|
|
1576
|
-
const de_FilterList = (output, context) => {
|
|
1577
|
-
const retVal = (output || [])
|
|
1578
|
-
.filter((e) => e != null)
|
|
1579
|
-
.map((entry) => {
|
|
1580
|
-
return de_Filter(entry, context);
|
|
1581
|
-
});
|
|
1582
|
-
return retVal;
|
|
1583
|
-
};
|
|
1584
|
-
const de_Geometry = (output, context) => {
|
|
1585
|
-
return (0, smithy_client_1.take)(output, {
|
|
1586
|
-
Coordinates: (_) => de_LinearRings(_, context),
|
|
1587
|
-
Type: smithy_client_1.expectString,
|
|
1588
|
-
});
|
|
1589
|
-
};
|
|
1590
|
-
const de_InputConfigOutput = (output, context) => {
|
|
1591
|
-
return (0, smithy_client_1.take)(output, {
|
|
1592
|
-
PreviousEarthObservationJobArn: smithy_client_1.expectString,
|
|
1593
|
-
RasterDataCollectionQuery: (_) => de_RasterDataCollectionQueryOutput(_, context),
|
|
1594
|
-
});
|
|
1595
|
-
};
|
|
1596
|
-
const de_ItemSource = (output, context) => {
|
|
1597
|
-
return (0, smithy_client_1.take)(output, {
|
|
1598
|
-
Assets: smithy_client_1._json,
|
|
1599
|
-
DateTime: (_) => (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(_))),
|
|
1600
|
-
Geometry: (_) => de_Geometry(_, context),
|
|
1601
|
-
Id: smithy_client_1.expectString,
|
|
1602
|
-
Properties: (_) => de_Properties(_, context),
|
|
1603
|
-
});
|
|
1604
|
-
};
|
|
1605
|
-
const de_ItemSourceList = (output, context) => {
|
|
1606
|
-
const retVal = (output || [])
|
|
1607
|
-
.filter((e) => e != null)
|
|
1608
|
-
.map((entry) => {
|
|
1609
|
-
return de_ItemSource(entry, context);
|
|
1610
|
-
});
|
|
1611
|
-
return retVal;
|
|
1612
|
-
};
|
|
1613
|
-
const de_JobConfigInput = (output, context) => {
|
|
1614
|
-
if (output.BandMathConfig != null) {
|
|
1615
|
-
return {
|
|
1616
|
-
BandMathConfig: (0, smithy_client_1._json)(output.BandMathConfig),
|
|
1617
|
-
};
|
|
1618
|
-
}
|
|
1619
|
-
if (output.CloudMaskingConfig != null) {
|
|
1620
|
-
return {
|
|
1621
|
-
CloudMaskingConfig: (0, smithy_client_1._json)(output.CloudMaskingConfig),
|
|
1622
|
-
};
|
|
1623
|
-
}
|
|
1624
|
-
if (output.CloudRemovalConfig != null) {
|
|
1625
|
-
return {
|
|
1626
|
-
CloudRemovalConfig: (0, smithy_client_1._json)(output.CloudRemovalConfig),
|
|
1627
|
-
};
|
|
1628
|
-
}
|
|
1629
|
-
if (output.GeoMosaicConfig != null) {
|
|
1630
|
-
return {
|
|
1631
|
-
GeoMosaicConfig: (0, smithy_client_1._json)(output.GeoMosaicConfig),
|
|
1632
|
-
};
|
|
1633
|
-
}
|
|
1634
|
-
if (output.LandCoverSegmentationConfig != null) {
|
|
1635
|
-
return {
|
|
1636
|
-
LandCoverSegmentationConfig: (0, smithy_client_1._json)(output.LandCoverSegmentationConfig),
|
|
1637
|
-
};
|
|
1638
|
-
}
|
|
1639
|
-
if (output.ResamplingConfig != null) {
|
|
1640
|
-
return {
|
|
1641
|
-
ResamplingConfig: de_ResamplingConfigInput(output.ResamplingConfig, context),
|
|
1642
|
-
};
|
|
1643
|
-
}
|
|
1644
|
-
if (output.StackConfig != null) {
|
|
1645
|
-
return {
|
|
1646
|
-
StackConfig: de_StackConfigInput(output.StackConfig, context),
|
|
1647
|
-
};
|
|
1648
|
-
}
|
|
1649
|
-
if (output.TemporalStatisticsConfig != null) {
|
|
1650
|
-
return {
|
|
1651
|
-
TemporalStatisticsConfig: (0, smithy_client_1._json)(output.TemporalStatisticsConfig),
|
|
1652
|
-
};
|
|
1653
|
-
}
|
|
1654
|
-
if (output.ZonalStatisticsConfig != null) {
|
|
1655
|
-
return {
|
|
1656
|
-
ZonalStatisticsConfig: (0, smithy_client_1._json)(output.ZonalStatisticsConfig),
|
|
1657
|
-
};
|
|
1658
|
-
}
|
|
1659
|
-
return { $unknown: Object.entries(output)[0] };
|
|
1660
|
-
};
|
|
1661
|
-
const de_LandsatCloudCoverLandInput = (output, context) => {
|
|
1662
|
-
return (0, smithy_client_1.take)(output, {
|
|
1663
|
-
LowerBound: smithy_client_1.limitedParseFloat32,
|
|
1664
|
-
UpperBound: smithy_client_1.limitedParseFloat32,
|
|
1665
|
-
});
|
|
1666
|
-
};
|
|
1667
|
-
const de_LinearRing = (output, context) => {
|
|
1668
|
-
const retVal = (output || [])
|
|
1669
|
-
.filter((e) => e != null)
|
|
1670
|
-
.map((entry) => {
|
|
1671
|
-
return de_Position(entry, context);
|
|
1672
|
-
});
|
|
1673
|
-
return retVal;
|
|
1674
|
-
};
|
|
1675
|
-
const de_LinearRings = (output, context) => {
|
|
1676
|
-
const retVal = (output || [])
|
|
1677
|
-
.filter((e) => e != null)
|
|
1678
|
-
.map((entry) => {
|
|
1679
|
-
return de_LinearRing(entry, context);
|
|
1680
|
-
});
|
|
1681
|
-
return retVal;
|
|
1682
|
-
};
|
|
1683
|
-
const de_LinearRingsList = (output, context) => {
|
|
1684
|
-
const retVal = (output || [])
|
|
1685
|
-
.filter((e) => e != null)
|
|
1686
|
-
.map((entry) => {
|
|
1687
|
-
return de_LinearRings(entry, context);
|
|
1688
|
-
});
|
|
1689
|
-
return retVal;
|
|
1690
|
-
};
|
|
1691
|
-
const de_ListEarthObservationJobOutputConfig = (output, context) => {
|
|
1692
|
-
return (0, smithy_client_1.take)(output, {
|
|
1693
|
-
Arn: smithy_client_1.expectString,
|
|
1694
|
-
CreationTime: (_) => (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseRfc3339DateTimeWithOffset)(_)),
|
|
1695
|
-
DurationInSeconds: smithy_client_1.expectInt32,
|
|
1696
|
-
Name: smithy_client_1.expectString,
|
|
1697
|
-
OperationType: smithy_client_1.expectString,
|
|
1698
|
-
Status: smithy_client_1.expectString,
|
|
1699
|
-
Tags: smithy_client_1._json,
|
|
1700
|
-
});
|
|
1701
|
-
};
|
|
1702
|
-
const de_ListVectorEnrichmentJobOutputConfig = (output, context) => {
|
|
1703
|
-
return (0, smithy_client_1.take)(output, {
|
|
1704
|
-
Arn: smithy_client_1.expectString,
|
|
1705
|
-
CreationTime: (_) => (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseRfc3339DateTimeWithOffset)(_)),
|
|
1706
|
-
DurationInSeconds: smithy_client_1.expectInt32,
|
|
1707
|
-
Name: smithy_client_1.expectString,
|
|
1708
|
-
Status: smithy_client_1.expectString,
|
|
1709
|
-
Tags: smithy_client_1._json,
|
|
1710
|
-
Type: smithy_client_1.expectString,
|
|
1711
|
-
});
|
|
1712
|
-
};
|
|
1713
|
-
const de_MultiPolygonGeometryInput = (output, context) => {
|
|
1714
|
-
return (0, smithy_client_1.take)(output, {
|
|
1715
|
-
Coordinates: (_) => de_LinearRingsList(_, context),
|
|
1716
|
-
});
|
|
1717
|
-
};
|
|
1718
|
-
const de_OutputResolutionResamplingInput = (output, context) => {
|
|
1719
|
-
return (0, smithy_client_1.take)(output, {
|
|
1720
|
-
UserDefined: (_) => de_UserDefined(_, context),
|
|
1721
|
-
});
|
|
1722
|
-
};
|
|
1723
|
-
const de_OutputResolutionStackInput = (output, context) => {
|
|
1724
|
-
return (0, smithy_client_1.take)(output, {
|
|
1725
|
-
Predefined: smithy_client_1.expectString,
|
|
1726
|
-
UserDefined: (_) => de_UserDefined(_, context),
|
|
1727
|
-
});
|
|
1728
|
-
};
|
|
1729
|
-
const de_PolygonGeometryInput = (output, context) => {
|
|
1730
|
-
return (0, smithy_client_1.take)(output, {
|
|
1731
|
-
Coordinates: (_) => de_LinearRings(_, context),
|
|
1732
|
-
});
|
|
1733
|
-
};
|
|
1734
|
-
const de_Position = (output, context) => {
|
|
1735
|
-
const retVal = (output || [])
|
|
1736
|
-
.filter((e) => e != null)
|
|
1737
|
-
.map((entry) => {
|
|
1738
|
-
return (0, smithy_client_1.limitedParseDouble)(entry);
|
|
1739
|
-
});
|
|
1740
|
-
return retVal;
|
|
1741
|
-
};
|
|
1742
|
-
const de_Properties = (output, context) => {
|
|
1743
|
-
return (0, smithy_client_1.take)(output, {
|
|
1744
|
-
EoCloudCover: smithy_client_1.limitedParseFloat32,
|
|
1745
|
-
LandsatCloudCoverLand: smithy_client_1.limitedParseFloat32,
|
|
1746
|
-
Platform: smithy_client_1.expectString,
|
|
1747
|
-
ViewOffNadir: smithy_client_1.limitedParseFloat32,
|
|
1748
|
-
ViewSunAzimuth: smithy_client_1.limitedParseFloat32,
|
|
1749
|
-
ViewSunElevation: smithy_client_1.limitedParseFloat32,
|
|
1750
|
-
});
|
|
1751
|
-
};
|
|
1752
|
-
const de_Property = (output, context) => {
|
|
1753
|
-
if (output.EoCloudCover != null) {
|
|
1754
|
-
return {
|
|
1755
|
-
EoCloudCover: de_EoCloudCoverInput(output.EoCloudCover, context),
|
|
1756
|
-
};
|
|
1757
|
-
}
|
|
1758
|
-
if (output.LandsatCloudCoverLand != null) {
|
|
1759
|
-
return {
|
|
1760
|
-
LandsatCloudCoverLand: de_LandsatCloudCoverLandInput(output.LandsatCloudCoverLand, context),
|
|
1761
|
-
};
|
|
1762
|
-
}
|
|
1763
|
-
if (output.Platform != null) {
|
|
1764
|
-
return {
|
|
1765
|
-
Platform: (0, smithy_client_1._json)(output.Platform),
|
|
1766
|
-
};
|
|
1767
|
-
}
|
|
1768
|
-
if (output.ViewOffNadir != null) {
|
|
1769
|
-
return {
|
|
1770
|
-
ViewOffNadir: de_ViewOffNadirInput(output.ViewOffNadir, context),
|
|
1771
|
-
};
|
|
1772
|
-
}
|
|
1773
|
-
if (output.ViewSunAzimuth != null) {
|
|
1774
|
-
return {
|
|
1775
|
-
ViewSunAzimuth: de_ViewSunAzimuthInput(output.ViewSunAzimuth, context),
|
|
1776
|
-
};
|
|
1777
|
-
}
|
|
1778
|
-
if (output.ViewSunElevation != null) {
|
|
1779
|
-
return {
|
|
1780
|
-
ViewSunElevation: de_ViewSunElevationInput(output.ViewSunElevation, context),
|
|
1781
|
-
};
|
|
1782
|
-
}
|
|
1783
|
-
return { $unknown: Object.entries(output)[0] };
|
|
1784
|
-
};
|
|
1785
|
-
const de_PropertyFilter = (output, context) => {
|
|
1786
|
-
return (0, smithy_client_1.take)(output, {
|
|
1787
|
-
Property: (_) => de_Property((0, core_1.awsExpectUnion)(_), context),
|
|
1788
|
-
});
|
|
1789
|
-
};
|
|
1790
|
-
const de_PropertyFilters = (output, context) => {
|
|
1791
|
-
return (0, smithy_client_1.take)(output, {
|
|
1792
|
-
LogicalOperator: smithy_client_1.expectString,
|
|
1793
|
-
Properties: (_) => de_PropertyFiltersList(_, context),
|
|
1794
|
-
});
|
|
1795
|
-
};
|
|
1796
|
-
const de_PropertyFiltersList = (output, context) => {
|
|
1797
|
-
const retVal = (output || [])
|
|
1798
|
-
.filter((e) => e != null)
|
|
1799
|
-
.map((entry) => {
|
|
1800
|
-
return de_PropertyFilter(entry, context);
|
|
1801
|
-
});
|
|
1802
|
-
return retVal;
|
|
1803
|
-
};
|
|
1804
|
-
const de_RasterDataCollectionMetadata = (output, context) => {
|
|
1805
|
-
return (0, smithy_client_1.take)(output, {
|
|
1806
|
-
Arn: smithy_client_1.expectString,
|
|
1807
|
-
Description: smithy_client_1.expectString,
|
|
1808
|
-
DescriptionPageUrl: smithy_client_1.expectString,
|
|
1809
|
-
Name: smithy_client_1.expectString,
|
|
1810
|
-
SupportedFilters: (_) => de_FilterList(_, context),
|
|
1811
|
-
Tags: smithy_client_1._json,
|
|
1812
|
-
Type: smithy_client_1.expectString,
|
|
1813
|
-
});
|
|
1814
|
-
};
|
|
1815
|
-
const de_RasterDataCollectionQueryOutput = (output, context) => {
|
|
1816
|
-
return (0, smithy_client_1.take)(output, {
|
|
1817
|
-
AreaOfInterest: (_) => de_AreaOfInterest((0, core_1.awsExpectUnion)(_), context),
|
|
1818
|
-
PropertyFilters: (_) => de_PropertyFilters(_, context),
|
|
1819
|
-
RasterDataCollectionArn: smithy_client_1.expectString,
|
|
1820
|
-
RasterDataCollectionName: smithy_client_1.expectString,
|
|
1821
|
-
TimeRangeFilter: (_) => de_TimeRangeFilterOutput(_, context),
|
|
1822
|
-
});
|
|
1823
|
-
};
|
|
1824
|
-
const de_ResamplingConfigInput = (output, context) => {
|
|
1825
|
-
return (0, smithy_client_1.take)(output, {
|
|
1826
|
-
AlgorithmName: smithy_client_1.expectString,
|
|
1827
|
-
OutputResolution: (_) => de_OutputResolutionResamplingInput(_, context),
|
|
1828
|
-
TargetBands: smithy_client_1._json,
|
|
1829
|
-
});
|
|
1830
|
-
};
|
|
1831
|
-
const de_StackConfigInput = (output, context) => {
|
|
1832
|
-
return (0, smithy_client_1.take)(output, {
|
|
1833
|
-
OutputResolution: (_) => de_OutputResolutionStackInput(_, context),
|
|
1834
|
-
TargetBands: smithy_client_1._json,
|
|
1835
|
-
});
|
|
1836
|
-
};
|
|
1837
|
-
const de_TimeRangeFilterOutput = (output, context) => {
|
|
1838
|
-
return (0, smithy_client_1.take)(output, {
|
|
1839
|
-
EndTime: (_) => (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseRfc3339DateTimeWithOffset)(_)),
|
|
1840
|
-
StartTime: (_) => (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseRfc3339DateTimeWithOffset)(_)),
|
|
1841
|
-
});
|
|
1842
|
-
};
|
|
1843
|
-
const de_UserDefined = (output, context) => {
|
|
1844
|
-
return (0, smithy_client_1.take)(output, {
|
|
1845
|
-
Unit: smithy_client_1.expectString,
|
|
1846
|
-
Value: smithy_client_1.limitedParseFloat32,
|
|
1847
|
-
});
|
|
1848
|
-
};
|
|
1849
|
-
const de_VectorEnrichmentJobList = (output, context) => {
|
|
1850
|
-
const retVal = (output || [])
|
|
1851
|
-
.filter((e) => e != null)
|
|
1852
|
-
.map((entry) => {
|
|
1853
|
-
return de_ListVectorEnrichmentJobOutputConfig(entry, context);
|
|
1854
|
-
});
|
|
1855
|
-
return retVal;
|
|
1856
|
-
};
|
|
1857
|
-
const de_ViewOffNadirInput = (output, context) => {
|
|
1858
|
-
return (0, smithy_client_1.take)(output, {
|
|
1859
|
-
LowerBound: smithy_client_1.limitedParseFloat32,
|
|
1860
|
-
UpperBound: smithy_client_1.limitedParseFloat32,
|
|
1861
|
-
});
|
|
1862
|
-
};
|
|
1863
|
-
const de_ViewSunAzimuthInput = (output, context) => {
|
|
1864
|
-
return (0, smithy_client_1.take)(output, {
|
|
1865
|
-
LowerBound: smithy_client_1.limitedParseFloat32,
|
|
1866
|
-
UpperBound: smithy_client_1.limitedParseFloat32,
|
|
1867
|
-
});
|
|
1868
|
-
};
|
|
1869
|
-
const de_ViewSunElevationInput = (output, context) => {
|
|
1870
|
-
return (0, smithy_client_1.take)(output, {
|
|
1871
|
-
LowerBound: smithy_client_1.limitedParseFloat32,
|
|
1872
|
-
UpperBound: smithy_client_1.limitedParseFloat32,
|
|
1873
|
-
});
|
|
1874
|
-
};
|
|
1875
|
-
const deserializeMetadata = (output) => ({
|
|
1876
|
-
httpStatusCode: output.statusCode,
|
|
1877
|
-
requestId: output.headers["x-amzn-requestid"] ?? output.headers["x-amzn-request-id"] ?? output.headers["x-amz-request-id"],
|
|
1878
|
-
extendedRequestId: output.headers["x-amz-id-2"],
|
|
1879
|
-
cfId: output.headers["x-amz-cf-id"],
|
|
1880
|
-
});
|
|
1881
|
-
const collectBodyString = (streamBody, context) => (0, smithy_client_1.collectBody)(streamBody, context).then((body) => context.utf8Encoder(body));
|
|
1882
|
-
const isSerializableHeaderValue = (value) => value !== undefined &&
|
|
1883
|
-
value !== null &&
|
|
1884
|
-
value !== "" &&
|
|
1885
|
-
(!Object.getOwnPropertyNames(value).includes("length") || value.length != 0) &&
|
|
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";
|
|
1900
|
-
const parseBody = (streamBody, context) => collectBodyString(streamBody, context).then((encoded) => {
|
|
1901
|
-
if (encoded.length) {
|
|
1902
|
-
return JSON.parse(encoded);
|
|
1903
|
-
}
|
|
1904
|
-
return {};
|
|
1905
|
-
});
|
|
1906
|
-
const parseErrorBody = async (errorBody, context) => {
|
|
1907
|
-
const value = await parseBody(errorBody, context);
|
|
1908
|
-
value.message = value.message ?? value.Message;
|
|
1909
|
-
return value;
|
|
1910
|
-
};
|
|
1911
|
-
const loadRestJsonErrorCode = (output, data) => {
|
|
1912
|
-
const findKey = (object, key) => Object.keys(object).find((k) => k.toLowerCase() === key.toLowerCase());
|
|
1913
|
-
const sanitizeErrorCode = (rawValue) => {
|
|
1914
|
-
let cleanValue = rawValue;
|
|
1915
|
-
if (typeof cleanValue === "number") {
|
|
1916
|
-
cleanValue = cleanValue.toString();
|
|
1917
|
-
}
|
|
1918
|
-
if (cleanValue.indexOf(",") >= 0) {
|
|
1919
|
-
cleanValue = cleanValue.split(",")[0];
|
|
1920
|
-
}
|
|
1921
|
-
if (cleanValue.indexOf(":") >= 0) {
|
|
1922
|
-
cleanValue = cleanValue.split(":")[0];
|
|
1923
|
-
}
|
|
1924
|
-
if (cleanValue.indexOf("#") >= 0) {
|
|
1925
|
-
cleanValue = cleanValue.split("#")[1];
|
|
1926
|
-
}
|
|
1927
|
-
return cleanValue;
|
|
1928
|
-
};
|
|
1929
|
-
const headerKey = findKey(output.headers, "x-amzn-errortype");
|
|
1930
|
-
if (headerKey !== undefined) {
|
|
1931
|
-
return sanitizeErrorCode(output.headers[headerKey]);
|
|
1932
|
-
}
|
|
1933
|
-
if (data.code !== undefined) {
|
|
1934
|
-
return sanitizeErrorCode(data.code);
|
|
1935
|
-
}
|
|
1936
|
-
if (data["__type"] !== undefined) {
|
|
1937
|
-
return sanitizeErrorCode(data["__type"]);
|
|
1938
|
-
}
|
|
1939
|
-
};
|
|
1
|
+
module.exports = require("../index.js");
|