@aws-sdk/client-sagemaker-geospatial 3.312.0 → 3.315.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist-cjs/protocols/Aws_restJson1.js +458 -1084
- package/dist-es/protocols/Aws_restJson1.js +431 -1057
- package/package.json +6 -6
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { HttpRequest as __HttpRequest } from "@aws-sdk/protocol-http";
|
|
2
|
-
import { decorateServiceException as __decorateServiceException, expectBoolean as __expectBoolean, expectInt32 as __expectInt32, expectNonNull as __expectNonNull, expectNumber as __expectNumber, expectObject as __expectObject, expectString as __expectString, expectUnion as __expectUnion, limitedParseDouble as __limitedParseDouble, limitedParseFloat32 as __limitedParseFloat32, map
|
|
2
|
+
import { _json, decorateServiceException as __decorateServiceException, expectBoolean as __expectBoolean, expectInt32 as __expectInt32, expectNonNull as __expectNonNull, expectNumber as __expectNumber, expectObject as __expectObject, expectString as __expectString, expectUnion as __expectUnion, limitedParseDouble as __limitedParseDouble, limitedParseFloat32 as __limitedParseFloat32, map, parseEpochTimestamp as __parseEpochTimestamp, parseRfc3339DateTimeWithOffset as __parseRfc3339DateTimeWithOffset, resolvedPath as __resolvedPath, serializeFloat as __serializeFloat, take, withBaseException, } from "@aws-sdk/smithy-client";
|
|
3
3
|
import { v4 as generateIdempotencyToken } from "uuid";
|
|
4
|
-
import { AccessDeniedException, AreaOfInterest, AreaOfInterestGeometry, ConflictException,
|
|
4
|
+
import { AccessDeniedException, AreaOfInterest, AreaOfInterestGeometry, ConflictException, InternalServerException, JobConfigInput, Property, ResourceNotFoundException, ServiceQuotaExceededException, ThrottlingException, ValidationException, } from "../models/models_0";
|
|
5
5
|
import { SageMakerGeospatialServiceException as __BaseException } from "../models/SageMakerGeospatialServiceException";
|
|
6
6
|
export const se_DeleteEarthObservationJobCommand = async (input, context) => {
|
|
7
7
|
const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
|
|
@@ -42,13 +42,13 @@ export const se_ExportEarthObservationJobCommand = async (input, context) => {
|
|
|
42
42
|
};
|
|
43
43
|
const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/export-earth-observation-job";
|
|
44
44
|
let body;
|
|
45
|
-
body = JSON.stringify({
|
|
46
|
-
|
|
47
|
-
ClientToken:
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
});
|
|
45
|
+
body = JSON.stringify(take(input, {
|
|
46
|
+
Arn: [],
|
|
47
|
+
ClientToken: (_) => _ ?? generateIdempotencyToken(),
|
|
48
|
+
ExecutionRoleArn: [],
|
|
49
|
+
ExportSourceImages: [],
|
|
50
|
+
OutputConfig: (_) => _json(_),
|
|
51
|
+
}));
|
|
52
52
|
return new __HttpRequest({
|
|
53
53
|
protocol,
|
|
54
54
|
hostname,
|
|
@@ -66,14 +66,12 @@ export const se_ExportVectorEnrichmentJobCommand = async (input, context) => {
|
|
|
66
66
|
};
|
|
67
67
|
const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/export-vector-enrichment-jobs";
|
|
68
68
|
let body;
|
|
69
|
-
body = JSON.stringify({
|
|
70
|
-
|
|
71
|
-
ClientToken:
|
|
72
|
-
|
|
73
|
-
|
|
74
|
-
|
|
75
|
-
}),
|
|
76
|
-
});
|
|
69
|
+
body = JSON.stringify(take(input, {
|
|
70
|
+
Arn: [],
|
|
71
|
+
ClientToken: (_) => _ ?? generateIdempotencyToken(),
|
|
72
|
+
ExecutionRoleArn: [],
|
|
73
|
+
OutputConfig: (_) => _json(_),
|
|
74
|
+
}));
|
|
77
75
|
return new __HttpRequest({
|
|
78
76
|
protocol,
|
|
79
77
|
hostname,
|
|
@@ -172,13 +170,13 @@ export const se_ListEarthObservationJobsCommand = async (input, context) => {
|
|
|
172
170
|
};
|
|
173
171
|
const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/list-earth-observation-jobs";
|
|
174
172
|
let body;
|
|
175
|
-
body = JSON.stringify({
|
|
176
|
-
|
|
177
|
-
|
|
178
|
-
|
|
179
|
-
|
|
180
|
-
|
|
181
|
-
});
|
|
173
|
+
body = JSON.stringify(take(input, {
|
|
174
|
+
MaxResults: [],
|
|
175
|
+
NextToken: [],
|
|
176
|
+
SortBy: [],
|
|
177
|
+
SortOrder: [],
|
|
178
|
+
StatusEquals: [],
|
|
179
|
+
}));
|
|
182
180
|
return new __HttpRequest({
|
|
183
181
|
protocol,
|
|
184
182
|
hostname,
|
|
@@ -232,13 +230,13 @@ export const se_ListVectorEnrichmentJobsCommand = async (input, context) => {
|
|
|
232
230
|
};
|
|
233
231
|
const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/list-vector-enrichment-jobs";
|
|
234
232
|
let body;
|
|
235
|
-
body = JSON.stringify({
|
|
236
|
-
|
|
237
|
-
|
|
238
|
-
|
|
239
|
-
|
|
240
|
-
|
|
241
|
-
});
|
|
233
|
+
body = JSON.stringify(take(input, {
|
|
234
|
+
MaxResults: [],
|
|
235
|
+
NextToken: [],
|
|
236
|
+
SortBy: [],
|
|
237
|
+
SortOrder: [],
|
|
238
|
+
StatusEquals: [],
|
|
239
|
+
}));
|
|
242
240
|
return new __HttpRequest({
|
|
243
241
|
protocol,
|
|
244
242
|
hostname,
|
|
@@ -256,13 +254,11 @@ export const se_SearchRasterDataCollectionCommand = async (input, context) => {
|
|
|
256
254
|
};
|
|
257
255
|
const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/search-raster-data-collection";
|
|
258
256
|
let body;
|
|
259
|
-
body = JSON.stringify({
|
|
260
|
-
|
|
261
|
-
|
|
262
|
-
|
|
263
|
-
|
|
264
|
-
}),
|
|
265
|
-
});
|
|
257
|
+
body = JSON.stringify(take(input, {
|
|
258
|
+
Arn: [],
|
|
259
|
+
NextToken: [],
|
|
260
|
+
RasterDataCollectionQuery: (_) => se_RasterDataCollectionQueryWithBandFilterInput(_, context),
|
|
261
|
+
}));
|
|
266
262
|
return new __HttpRequest({
|
|
267
263
|
protocol,
|
|
268
264
|
hostname,
|
|
@@ -280,15 +276,15 @@ export const se_StartEarthObservationJobCommand = async (input, context) => {
|
|
|
280
276
|
};
|
|
281
277
|
const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/earth-observation-jobs";
|
|
282
278
|
let body;
|
|
283
|
-
body = JSON.stringify({
|
|
284
|
-
ClientToken:
|
|
285
|
-
|
|
286
|
-
|
|
287
|
-
|
|
288
|
-
|
|
289
|
-
|
|
290
|
-
|
|
291
|
-
});
|
|
279
|
+
body = JSON.stringify(take(input, {
|
|
280
|
+
ClientToken: (_) => _ ?? generateIdempotencyToken(),
|
|
281
|
+
ExecutionRoleArn: [],
|
|
282
|
+
InputConfig: (_) => se_InputConfigInput(_, context),
|
|
283
|
+
JobConfig: (_) => se_JobConfigInput(_, context),
|
|
284
|
+
KmsKeyId: [],
|
|
285
|
+
Name: [],
|
|
286
|
+
Tags: (_) => _json(_),
|
|
287
|
+
}));
|
|
292
288
|
return new __HttpRequest({
|
|
293
289
|
protocol,
|
|
294
290
|
hostname,
|
|
@@ -306,15 +302,15 @@ export const se_StartVectorEnrichmentJobCommand = async (input, context) => {
|
|
|
306
302
|
};
|
|
307
303
|
const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/vector-enrichment-jobs";
|
|
308
304
|
let body;
|
|
309
|
-
body = JSON.stringify({
|
|
310
|
-
ClientToken:
|
|
311
|
-
|
|
312
|
-
|
|
313
|
-
|
|
314
|
-
|
|
315
|
-
|
|
316
|
-
|
|
317
|
-
});
|
|
305
|
+
body = JSON.stringify(take(input, {
|
|
306
|
+
ClientToken: (_) => _ ?? generateIdempotencyToken(),
|
|
307
|
+
ExecutionRoleArn: [],
|
|
308
|
+
InputConfig: (_) => _json(_),
|
|
309
|
+
JobConfig: (_) => _json(_),
|
|
310
|
+
KmsKeyId: [],
|
|
311
|
+
Name: [],
|
|
312
|
+
Tags: (_) => _json(_),
|
|
313
|
+
}));
|
|
318
314
|
return new __HttpRequest({
|
|
319
315
|
protocol,
|
|
320
316
|
hostname,
|
|
@@ -332,9 +328,9 @@ export const se_StopEarthObservationJobCommand = async (input, context) => {
|
|
|
332
328
|
};
|
|
333
329
|
const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/earth-observation-jobs/stop";
|
|
334
330
|
let body;
|
|
335
|
-
body = JSON.stringify({
|
|
336
|
-
|
|
337
|
-
});
|
|
331
|
+
body = JSON.stringify(take(input, {
|
|
332
|
+
Arn: [],
|
|
333
|
+
}));
|
|
338
334
|
return new __HttpRequest({
|
|
339
335
|
protocol,
|
|
340
336
|
hostname,
|
|
@@ -352,9 +348,9 @@ export const se_StopVectorEnrichmentJobCommand = async (input, context) => {
|
|
|
352
348
|
};
|
|
353
349
|
const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/vector-enrichment-jobs/stop";
|
|
354
350
|
let body;
|
|
355
|
-
body = JSON.stringify({
|
|
356
|
-
|
|
357
|
-
});
|
|
351
|
+
body = JSON.stringify(take(input, {
|
|
352
|
+
Arn: [],
|
|
353
|
+
}));
|
|
358
354
|
return new __HttpRequest({
|
|
359
355
|
protocol,
|
|
360
356
|
hostname,
|
|
@@ -373,9 +369,9 @@ export const se_TagResourceCommand = async (input, context) => {
|
|
|
373
369
|
let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/tags/{ResourceArn}";
|
|
374
370
|
resolvedPath = __resolvedPath(resolvedPath, input, "ResourceArn", () => input.ResourceArn, "{ResourceArn}", false);
|
|
375
371
|
let body;
|
|
376
|
-
body = JSON.stringify({
|
|
377
|
-
|
|
378
|
-
});
|
|
372
|
+
body = JSON.stringify(take(input, {
|
|
373
|
+
Tags: (_) => _json(_),
|
|
374
|
+
}));
|
|
379
375
|
return new __HttpRequest({
|
|
380
376
|
protocol,
|
|
381
377
|
hostname,
|
|
@@ -446,10 +442,9 @@ const de_DeleteEarthObservationJobCommandError = async (output, context) => {
|
|
|
446
442
|
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
447
443
|
default:
|
|
448
444
|
const parsedBody = parsedOutput.body;
|
|
449
|
-
throwDefaultError({
|
|
445
|
+
return throwDefaultError({
|
|
450
446
|
output,
|
|
451
447
|
parsedBody,
|
|
452
|
-
exceptionCtor: __BaseException,
|
|
453
448
|
errorCode,
|
|
454
449
|
});
|
|
455
450
|
}
|
|
@@ -491,10 +486,9 @@ const de_DeleteVectorEnrichmentJobCommandError = async (output, context) => {
|
|
|
491
486
|
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
492
487
|
default:
|
|
493
488
|
const parsedBody = parsedOutput.body;
|
|
494
|
-
throwDefaultError({
|
|
489
|
+
return throwDefaultError({
|
|
495
490
|
output,
|
|
496
491
|
parsedBody,
|
|
497
|
-
exceptionCtor: __BaseException,
|
|
498
492
|
errorCode,
|
|
499
493
|
});
|
|
500
494
|
}
|
|
@@ -507,24 +501,15 @@ export const de_ExportEarthObservationJobCommand = async (output, context) => {
|
|
|
507
501
|
$metadata: deserializeMetadata(output),
|
|
508
502
|
});
|
|
509
503
|
const data = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body");
|
|
510
|
-
|
|
511
|
-
|
|
512
|
-
|
|
513
|
-
|
|
514
|
-
|
|
515
|
-
|
|
516
|
-
|
|
517
|
-
|
|
518
|
-
|
|
519
|
-
if (data.ExportSourceImages != null) {
|
|
520
|
-
contents.ExportSourceImages = __expectBoolean(data.ExportSourceImages);
|
|
521
|
-
}
|
|
522
|
-
if (data.ExportStatus != null) {
|
|
523
|
-
contents.ExportStatus = __expectString(data.ExportStatus);
|
|
524
|
-
}
|
|
525
|
-
if (data.OutputConfig != null) {
|
|
526
|
-
contents.OutputConfig = de_OutputConfigInput(data.OutputConfig, context);
|
|
527
|
-
}
|
|
504
|
+
const doc = take(data, {
|
|
505
|
+
Arn: __expectString,
|
|
506
|
+
CreationTime: (_) => __expectNonNull(__parseRfc3339DateTimeWithOffset(_)),
|
|
507
|
+
ExecutionRoleArn: __expectString,
|
|
508
|
+
ExportSourceImages: __expectBoolean,
|
|
509
|
+
ExportStatus: __expectString,
|
|
510
|
+
OutputConfig: _json,
|
|
511
|
+
});
|
|
512
|
+
Object.assign(contents, doc);
|
|
528
513
|
return contents;
|
|
529
514
|
};
|
|
530
515
|
const de_ExportEarthObservationJobCommandError = async (output, context) => {
|
|
@@ -557,10 +542,9 @@ const de_ExportEarthObservationJobCommandError = async (output, context) => {
|
|
|
557
542
|
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
558
543
|
default:
|
|
559
544
|
const parsedBody = parsedOutput.body;
|
|
560
|
-
throwDefaultError({
|
|
545
|
+
return throwDefaultError({
|
|
561
546
|
output,
|
|
562
547
|
parsedBody,
|
|
563
|
-
exceptionCtor: __BaseException,
|
|
564
548
|
errorCode,
|
|
565
549
|
});
|
|
566
550
|
}
|
|
@@ -573,21 +557,14 @@ export const de_ExportVectorEnrichmentJobCommand = async (output, context) => {
|
|
|
573
557
|
$metadata: deserializeMetadata(output),
|
|
574
558
|
});
|
|
575
559
|
const data = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body");
|
|
576
|
-
|
|
577
|
-
|
|
578
|
-
|
|
579
|
-
|
|
580
|
-
|
|
581
|
-
|
|
582
|
-
|
|
583
|
-
|
|
584
|
-
}
|
|
585
|
-
if (data.ExportStatus != null) {
|
|
586
|
-
contents.ExportStatus = __expectString(data.ExportStatus);
|
|
587
|
-
}
|
|
588
|
-
if (data.OutputConfig != null) {
|
|
589
|
-
contents.OutputConfig = de_ExportVectorEnrichmentJobOutputConfig(data.OutputConfig, context);
|
|
590
|
-
}
|
|
560
|
+
const doc = take(data, {
|
|
561
|
+
Arn: __expectString,
|
|
562
|
+
CreationTime: (_) => __expectNonNull(__parseRfc3339DateTimeWithOffset(_)),
|
|
563
|
+
ExecutionRoleArn: __expectString,
|
|
564
|
+
ExportStatus: __expectString,
|
|
565
|
+
OutputConfig: _json,
|
|
566
|
+
});
|
|
567
|
+
Object.assign(contents, doc);
|
|
591
568
|
return contents;
|
|
592
569
|
};
|
|
593
570
|
const de_ExportVectorEnrichmentJobCommandError = async (output, context) => {
|
|
@@ -620,10 +597,9 @@ const de_ExportVectorEnrichmentJobCommandError = async (output, context) => {
|
|
|
620
597
|
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
621
598
|
default:
|
|
622
599
|
const parsedBody = parsedOutput.body;
|
|
623
|
-
throwDefaultError({
|
|
600
|
+
return throwDefaultError({
|
|
624
601
|
output,
|
|
625
602
|
parsedBody,
|
|
626
|
-
exceptionCtor: __BaseException,
|
|
627
603
|
errorCode,
|
|
628
604
|
});
|
|
629
605
|
}
|
|
@@ -636,48 +612,23 @@ export const de_GetEarthObservationJobCommand = async (output, context) => {
|
|
|
636
612
|
$metadata: deserializeMetadata(output),
|
|
637
613
|
});
|
|
638
614
|
const data = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body");
|
|
639
|
-
|
|
640
|
-
|
|
641
|
-
|
|
642
|
-
|
|
643
|
-
|
|
644
|
-
|
|
645
|
-
|
|
646
|
-
|
|
647
|
-
|
|
648
|
-
|
|
649
|
-
|
|
650
|
-
|
|
651
|
-
|
|
652
|
-
|
|
653
|
-
|
|
654
|
-
|
|
655
|
-
|
|
656
|
-
}
|
|
657
|
-
if (data.ExportStatus != null) {
|
|
658
|
-
contents.ExportStatus = __expectString(data.ExportStatus);
|
|
659
|
-
}
|
|
660
|
-
if (data.InputConfig != null) {
|
|
661
|
-
contents.InputConfig = de_InputConfigOutput(data.InputConfig, context);
|
|
662
|
-
}
|
|
663
|
-
if (data.JobConfig != null) {
|
|
664
|
-
contents.JobConfig = de_JobConfigInput(__expectUnion(data.JobConfig), context);
|
|
665
|
-
}
|
|
666
|
-
if (data.KmsKeyId != null) {
|
|
667
|
-
contents.KmsKeyId = __expectString(data.KmsKeyId);
|
|
668
|
-
}
|
|
669
|
-
if (data.Name != null) {
|
|
670
|
-
contents.Name = __expectString(data.Name);
|
|
671
|
-
}
|
|
672
|
-
if (data.OutputBands != null) {
|
|
673
|
-
contents.OutputBands = de_EarthObservationJobOutputBands(data.OutputBands, context);
|
|
674
|
-
}
|
|
675
|
-
if (data.Status != null) {
|
|
676
|
-
contents.Status = __expectString(data.Status);
|
|
677
|
-
}
|
|
678
|
-
if (data.Tags != null) {
|
|
679
|
-
contents.Tags = de_Tags(data.Tags, context);
|
|
680
|
-
}
|
|
615
|
+
const doc = take(data, {
|
|
616
|
+
Arn: __expectString,
|
|
617
|
+
CreationTime: (_) => __expectNonNull(__parseRfc3339DateTimeWithOffset(_)),
|
|
618
|
+
DurationInSeconds: __expectInt32,
|
|
619
|
+
ErrorDetails: _json,
|
|
620
|
+
ExecutionRoleArn: __expectString,
|
|
621
|
+
ExportErrorDetails: _json,
|
|
622
|
+
ExportStatus: __expectString,
|
|
623
|
+
InputConfig: (_) => de_InputConfigOutput(_, context),
|
|
624
|
+
JobConfig: (_) => de_JobConfigInput(__expectUnion(_), context),
|
|
625
|
+
KmsKeyId: __expectString,
|
|
626
|
+
Name: __expectString,
|
|
627
|
+
OutputBands: _json,
|
|
628
|
+
Status: __expectString,
|
|
629
|
+
Tags: _json,
|
|
630
|
+
});
|
|
631
|
+
Object.assign(contents, doc);
|
|
681
632
|
return contents;
|
|
682
633
|
};
|
|
683
634
|
const de_GetEarthObservationJobCommandError = async (output, context) => {
|
|
@@ -704,10 +655,9 @@ const de_GetEarthObservationJobCommandError = async (output, context) => {
|
|
|
704
655
|
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
705
656
|
default:
|
|
706
657
|
const parsedBody = parsedOutput.body;
|
|
707
|
-
throwDefaultError({
|
|
658
|
+
return throwDefaultError({
|
|
708
659
|
output,
|
|
709
660
|
parsedBody,
|
|
710
|
-
exceptionCtor: __BaseException,
|
|
711
661
|
errorCode,
|
|
712
662
|
});
|
|
713
663
|
}
|
|
@@ -720,30 +670,17 @@ export const de_GetRasterDataCollectionCommand = async (output, context) => {
|
|
|
720
670
|
$metadata: deserializeMetadata(output),
|
|
721
671
|
});
|
|
722
672
|
const data = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body");
|
|
723
|
-
|
|
724
|
-
|
|
725
|
-
|
|
726
|
-
|
|
727
|
-
|
|
728
|
-
|
|
729
|
-
|
|
730
|
-
|
|
731
|
-
|
|
732
|
-
|
|
733
|
-
|
|
734
|
-
}
|
|
735
|
-
if (data.Name != null) {
|
|
736
|
-
contents.Name = __expectString(data.Name);
|
|
737
|
-
}
|
|
738
|
-
if (data.SupportedFilters != null) {
|
|
739
|
-
contents.SupportedFilters = de_FilterList(data.SupportedFilters, context);
|
|
740
|
-
}
|
|
741
|
-
if (data.Tags != null) {
|
|
742
|
-
contents.Tags = de_Tags(data.Tags, context);
|
|
743
|
-
}
|
|
744
|
-
if (data.Type != null) {
|
|
745
|
-
contents.Type = __expectString(data.Type);
|
|
746
|
-
}
|
|
673
|
+
const doc = take(data, {
|
|
674
|
+
Arn: __expectString,
|
|
675
|
+
Description: __expectString,
|
|
676
|
+
DescriptionPageUrl: __expectString,
|
|
677
|
+
ImageSourceBands: _json,
|
|
678
|
+
Name: __expectString,
|
|
679
|
+
SupportedFilters: (_) => de_FilterList(_, context),
|
|
680
|
+
Tags: _json,
|
|
681
|
+
Type: __expectString,
|
|
682
|
+
});
|
|
683
|
+
Object.assign(contents, doc);
|
|
747
684
|
return contents;
|
|
748
685
|
};
|
|
749
686
|
const de_GetRasterDataCollectionCommandError = async (output, context) => {
|
|
@@ -770,10 +707,9 @@ const de_GetRasterDataCollectionCommandError = async (output, context) => {
|
|
|
770
707
|
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
771
708
|
default:
|
|
772
709
|
const parsedBody = parsedOutput.body;
|
|
773
|
-
throwDefaultError({
|
|
710
|
+
return throwDefaultError({
|
|
774
711
|
output,
|
|
775
712
|
parsedBody,
|
|
776
|
-
exceptionCtor: __BaseException,
|
|
777
713
|
errorCode,
|
|
778
714
|
});
|
|
779
715
|
}
|
|
@@ -814,10 +750,9 @@ const de_GetTileCommandError = async (output, context) => {
|
|
|
814
750
|
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
815
751
|
default:
|
|
816
752
|
const parsedBody = parsedOutput.body;
|
|
817
|
-
throwDefaultError({
|
|
753
|
+
return throwDefaultError({
|
|
818
754
|
output,
|
|
819
755
|
parsedBody,
|
|
820
|
-
exceptionCtor: __BaseException,
|
|
821
756
|
errorCode,
|
|
822
757
|
});
|
|
823
758
|
}
|
|
@@ -830,48 +765,23 @@ export const de_GetVectorEnrichmentJobCommand = async (output, context) => {
|
|
|
830
765
|
$metadata: deserializeMetadata(output),
|
|
831
766
|
});
|
|
832
767
|
const data = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body");
|
|
833
|
-
|
|
834
|
-
|
|
835
|
-
|
|
836
|
-
|
|
837
|
-
|
|
838
|
-
|
|
839
|
-
|
|
840
|
-
|
|
841
|
-
|
|
842
|
-
|
|
843
|
-
|
|
844
|
-
|
|
845
|
-
|
|
846
|
-
|
|
847
|
-
|
|
848
|
-
|
|
849
|
-
|
|
850
|
-
}
|
|
851
|
-
if (data.ExportStatus != null) {
|
|
852
|
-
contents.ExportStatus = __expectString(data.ExportStatus);
|
|
853
|
-
}
|
|
854
|
-
if (data.InputConfig != null) {
|
|
855
|
-
contents.InputConfig = de_VectorEnrichmentJobInputConfig(data.InputConfig, context);
|
|
856
|
-
}
|
|
857
|
-
if (data.JobConfig != null) {
|
|
858
|
-
contents.JobConfig = de_VectorEnrichmentJobConfig(__expectUnion(data.JobConfig), context);
|
|
859
|
-
}
|
|
860
|
-
if (data.KmsKeyId != null) {
|
|
861
|
-
contents.KmsKeyId = __expectString(data.KmsKeyId);
|
|
862
|
-
}
|
|
863
|
-
if (data.Name != null) {
|
|
864
|
-
contents.Name = __expectString(data.Name);
|
|
865
|
-
}
|
|
866
|
-
if (data.Status != null) {
|
|
867
|
-
contents.Status = __expectString(data.Status);
|
|
868
|
-
}
|
|
869
|
-
if (data.Tags != null) {
|
|
870
|
-
contents.Tags = de_Tags(data.Tags, context);
|
|
871
|
-
}
|
|
872
|
-
if (data.Type != null) {
|
|
873
|
-
contents.Type = __expectString(data.Type);
|
|
874
|
-
}
|
|
768
|
+
const doc = take(data, {
|
|
769
|
+
Arn: __expectString,
|
|
770
|
+
CreationTime: (_) => __expectNonNull(__parseRfc3339DateTimeWithOffset(_)),
|
|
771
|
+
DurationInSeconds: __expectInt32,
|
|
772
|
+
ErrorDetails: _json,
|
|
773
|
+
ExecutionRoleArn: __expectString,
|
|
774
|
+
ExportErrorDetails: _json,
|
|
775
|
+
ExportStatus: __expectString,
|
|
776
|
+
InputConfig: _json,
|
|
777
|
+
JobConfig: (_) => _json(__expectUnion(_)),
|
|
778
|
+
KmsKeyId: __expectString,
|
|
779
|
+
Name: __expectString,
|
|
780
|
+
Status: __expectString,
|
|
781
|
+
Tags: _json,
|
|
782
|
+
Type: __expectString,
|
|
783
|
+
});
|
|
784
|
+
Object.assign(contents, doc);
|
|
875
785
|
return contents;
|
|
876
786
|
};
|
|
877
787
|
const de_GetVectorEnrichmentJobCommandError = async (output, context) => {
|
|
@@ -898,10 +808,9 @@ const de_GetVectorEnrichmentJobCommandError = async (output, context) => {
|
|
|
898
808
|
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
899
809
|
default:
|
|
900
810
|
const parsedBody = parsedOutput.body;
|
|
901
|
-
throwDefaultError({
|
|
811
|
+
return throwDefaultError({
|
|
902
812
|
output,
|
|
903
813
|
parsedBody,
|
|
904
|
-
exceptionCtor: __BaseException,
|
|
905
814
|
errorCode,
|
|
906
815
|
});
|
|
907
816
|
}
|
|
@@ -914,12 +823,11 @@ export const de_ListEarthObservationJobsCommand = async (output, context) => {
|
|
|
914
823
|
$metadata: deserializeMetadata(output),
|
|
915
824
|
});
|
|
916
825
|
const data = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body");
|
|
917
|
-
|
|
918
|
-
|
|
919
|
-
|
|
920
|
-
|
|
921
|
-
|
|
922
|
-
}
|
|
826
|
+
const doc = take(data, {
|
|
827
|
+
EarthObservationJobSummaries: (_) => de_EarthObservationJobList(_, context),
|
|
828
|
+
NextToken: __expectString,
|
|
829
|
+
});
|
|
830
|
+
Object.assign(contents, doc);
|
|
923
831
|
return contents;
|
|
924
832
|
};
|
|
925
833
|
const de_ListEarthObservationJobsCommandError = async (output, context) => {
|
|
@@ -946,10 +854,9 @@ const de_ListEarthObservationJobsCommandError = async (output, context) => {
|
|
|
946
854
|
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
947
855
|
default:
|
|
948
856
|
const parsedBody = parsedOutput.body;
|
|
949
|
-
throwDefaultError({
|
|
857
|
+
return throwDefaultError({
|
|
950
858
|
output,
|
|
951
859
|
parsedBody,
|
|
952
|
-
exceptionCtor: __BaseException,
|
|
953
860
|
errorCode,
|
|
954
861
|
});
|
|
955
862
|
}
|
|
@@ -962,12 +869,11 @@ export const de_ListRasterDataCollectionsCommand = async (output, context) => {
|
|
|
962
869
|
$metadata: deserializeMetadata(output),
|
|
963
870
|
});
|
|
964
871
|
const data = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body");
|
|
965
|
-
|
|
966
|
-
|
|
967
|
-
|
|
968
|
-
|
|
969
|
-
|
|
970
|
-
}
|
|
872
|
+
const doc = take(data, {
|
|
873
|
+
NextToken: __expectString,
|
|
874
|
+
RasterDataCollectionSummaries: (_) => de_DataCollectionsList(_, context),
|
|
875
|
+
});
|
|
876
|
+
Object.assign(contents, doc);
|
|
971
877
|
return contents;
|
|
972
878
|
};
|
|
973
879
|
const de_ListRasterDataCollectionsCommandError = async (output, context) => {
|
|
@@ -994,10 +900,9 @@ const de_ListRasterDataCollectionsCommandError = async (output, context) => {
|
|
|
994
900
|
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
995
901
|
default:
|
|
996
902
|
const parsedBody = parsedOutput.body;
|
|
997
|
-
throwDefaultError({
|
|
903
|
+
return throwDefaultError({
|
|
998
904
|
output,
|
|
999
905
|
parsedBody,
|
|
1000
|
-
exceptionCtor: __BaseException,
|
|
1001
906
|
errorCode,
|
|
1002
907
|
});
|
|
1003
908
|
}
|
|
@@ -1010,9 +915,10 @@ export const de_ListTagsForResourceCommand = async (output, context) => {
|
|
|
1010
915
|
$metadata: deserializeMetadata(output),
|
|
1011
916
|
});
|
|
1012
917
|
const data = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body");
|
|
1013
|
-
|
|
1014
|
-
|
|
1015
|
-
}
|
|
918
|
+
const doc = take(data, {
|
|
919
|
+
Tags: _json,
|
|
920
|
+
});
|
|
921
|
+
Object.assign(contents, doc);
|
|
1016
922
|
return contents;
|
|
1017
923
|
};
|
|
1018
924
|
const de_ListTagsForResourceCommandError = async (output, context) => {
|
|
@@ -1039,10 +945,9 @@ const de_ListTagsForResourceCommandError = async (output, context) => {
|
|
|
1039
945
|
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
1040
946
|
default:
|
|
1041
947
|
const parsedBody = parsedOutput.body;
|
|
1042
|
-
throwDefaultError({
|
|
948
|
+
return throwDefaultError({
|
|
1043
949
|
output,
|
|
1044
950
|
parsedBody,
|
|
1045
|
-
exceptionCtor: __BaseException,
|
|
1046
951
|
errorCode,
|
|
1047
952
|
});
|
|
1048
953
|
}
|
|
@@ -1055,12 +960,11 @@ export const de_ListVectorEnrichmentJobsCommand = async (output, context) => {
|
|
|
1055
960
|
$metadata: deserializeMetadata(output),
|
|
1056
961
|
});
|
|
1057
962
|
const data = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body");
|
|
1058
|
-
|
|
1059
|
-
|
|
1060
|
-
|
|
1061
|
-
|
|
1062
|
-
|
|
1063
|
-
}
|
|
963
|
+
const doc = take(data, {
|
|
964
|
+
NextToken: __expectString,
|
|
965
|
+
VectorEnrichmentJobSummaries: (_) => de_VectorEnrichmentJobList(_, context),
|
|
966
|
+
});
|
|
967
|
+
Object.assign(contents, doc);
|
|
1064
968
|
return contents;
|
|
1065
969
|
};
|
|
1066
970
|
const de_ListVectorEnrichmentJobsCommandError = async (output, context) => {
|
|
@@ -1087,10 +991,9 @@ const de_ListVectorEnrichmentJobsCommandError = async (output, context) => {
|
|
|
1087
991
|
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
1088
992
|
default:
|
|
1089
993
|
const parsedBody = parsedOutput.body;
|
|
1090
|
-
throwDefaultError({
|
|
994
|
+
return throwDefaultError({
|
|
1091
995
|
output,
|
|
1092
996
|
parsedBody,
|
|
1093
|
-
exceptionCtor: __BaseException,
|
|
1094
997
|
errorCode,
|
|
1095
998
|
});
|
|
1096
999
|
}
|
|
@@ -1103,15 +1006,12 @@ export const de_SearchRasterDataCollectionCommand = async (output, context) => {
|
|
|
1103
1006
|
$metadata: deserializeMetadata(output),
|
|
1104
1007
|
});
|
|
1105
1008
|
const data = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body");
|
|
1106
|
-
|
|
1107
|
-
|
|
1108
|
-
|
|
1109
|
-
|
|
1110
|
-
|
|
1111
|
-
|
|
1112
|
-
if (data.NextToken != null) {
|
|
1113
|
-
contents.NextToken = __expectString(data.NextToken);
|
|
1114
|
-
}
|
|
1009
|
+
const doc = take(data, {
|
|
1010
|
+
ApproximateResultCount: __expectInt32,
|
|
1011
|
+
Items: (_) => de_ItemSourceList(_, context),
|
|
1012
|
+
NextToken: __expectString,
|
|
1013
|
+
});
|
|
1014
|
+
Object.assign(contents, doc);
|
|
1115
1015
|
return contents;
|
|
1116
1016
|
};
|
|
1117
1017
|
const de_SearchRasterDataCollectionCommandError = async (output, context) => {
|
|
@@ -1138,10 +1038,9 @@ const de_SearchRasterDataCollectionCommandError = async (output, context) => {
|
|
|
1138
1038
|
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
1139
1039
|
default:
|
|
1140
1040
|
const parsedBody = parsedOutput.body;
|
|
1141
|
-
throwDefaultError({
|
|
1041
|
+
return throwDefaultError({
|
|
1142
1042
|
output,
|
|
1143
1043
|
parsedBody,
|
|
1144
|
-
exceptionCtor: __BaseException,
|
|
1145
1044
|
errorCode,
|
|
1146
1045
|
});
|
|
1147
1046
|
}
|
|
@@ -1154,36 +1053,19 @@ export const de_StartEarthObservationJobCommand = async (output, context) => {
|
|
|
1154
1053
|
$metadata: deserializeMetadata(output),
|
|
1155
1054
|
});
|
|
1156
1055
|
const data = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body");
|
|
1157
|
-
|
|
1158
|
-
|
|
1159
|
-
|
|
1160
|
-
|
|
1161
|
-
|
|
1162
|
-
|
|
1163
|
-
|
|
1164
|
-
|
|
1165
|
-
|
|
1166
|
-
|
|
1167
|
-
|
|
1168
|
-
}
|
|
1169
|
-
|
|
1170
|
-
contents.InputConfig = de_InputConfigOutput(data.InputConfig, context);
|
|
1171
|
-
}
|
|
1172
|
-
if (data.JobConfig != null) {
|
|
1173
|
-
contents.JobConfig = de_JobConfigInput(__expectUnion(data.JobConfig), context);
|
|
1174
|
-
}
|
|
1175
|
-
if (data.KmsKeyId != null) {
|
|
1176
|
-
contents.KmsKeyId = __expectString(data.KmsKeyId);
|
|
1177
|
-
}
|
|
1178
|
-
if (data.Name != null) {
|
|
1179
|
-
contents.Name = __expectString(data.Name);
|
|
1180
|
-
}
|
|
1181
|
-
if (data.Status != null) {
|
|
1182
|
-
contents.Status = __expectString(data.Status);
|
|
1183
|
-
}
|
|
1184
|
-
if (data.Tags != null) {
|
|
1185
|
-
contents.Tags = de_Tags(data.Tags, context);
|
|
1186
|
-
}
|
|
1056
|
+
const doc = take(data, {
|
|
1057
|
+
Arn: __expectString,
|
|
1058
|
+
CreationTime: (_) => __expectNonNull(__parseRfc3339DateTimeWithOffset(_)),
|
|
1059
|
+
DurationInSeconds: __expectInt32,
|
|
1060
|
+
ExecutionRoleArn: __expectString,
|
|
1061
|
+
InputConfig: (_) => de_InputConfigOutput(_, context),
|
|
1062
|
+
JobConfig: (_) => de_JobConfigInput(__expectUnion(_), context),
|
|
1063
|
+
KmsKeyId: __expectString,
|
|
1064
|
+
Name: __expectString,
|
|
1065
|
+
Status: __expectString,
|
|
1066
|
+
Tags: _json,
|
|
1067
|
+
});
|
|
1068
|
+
Object.assign(contents, doc);
|
|
1187
1069
|
return contents;
|
|
1188
1070
|
};
|
|
1189
1071
|
const de_StartEarthObservationJobCommandError = async (output, context) => {
|
|
@@ -1216,10 +1098,9 @@ const de_StartEarthObservationJobCommandError = async (output, context) => {
|
|
|
1216
1098
|
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
1217
1099
|
default:
|
|
1218
1100
|
const parsedBody = parsedOutput.body;
|
|
1219
|
-
throwDefaultError({
|
|
1101
|
+
return throwDefaultError({
|
|
1220
1102
|
output,
|
|
1221
1103
|
parsedBody,
|
|
1222
|
-
exceptionCtor: __BaseException,
|
|
1223
1104
|
errorCode,
|
|
1224
1105
|
});
|
|
1225
1106
|
}
|
|
@@ -1232,39 +1113,20 @@ export const de_StartVectorEnrichmentJobCommand = async (output, context) => {
|
|
|
1232
1113
|
$metadata: deserializeMetadata(output),
|
|
1233
1114
|
});
|
|
1234
1115
|
const data = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body");
|
|
1235
|
-
|
|
1236
|
-
|
|
1237
|
-
|
|
1238
|
-
|
|
1239
|
-
|
|
1240
|
-
|
|
1241
|
-
|
|
1242
|
-
|
|
1243
|
-
|
|
1244
|
-
|
|
1245
|
-
|
|
1246
|
-
|
|
1247
|
-
|
|
1248
|
-
|
|
1249
|
-
}
|
|
1250
|
-
if (data.JobConfig != null) {
|
|
1251
|
-
contents.JobConfig = de_VectorEnrichmentJobConfig(__expectUnion(data.JobConfig), context);
|
|
1252
|
-
}
|
|
1253
|
-
if (data.KmsKeyId != null) {
|
|
1254
|
-
contents.KmsKeyId = __expectString(data.KmsKeyId);
|
|
1255
|
-
}
|
|
1256
|
-
if (data.Name != null) {
|
|
1257
|
-
contents.Name = __expectString(data.Name);
|
|
1258
|
-
}
|
|
1259
|
-
if (data.Status != null) {
|
|
1260
|
-
contents.Status = __expectString(data.Status);
|
|
1261
|
-
}
|
|
1262
|
-
if (data.Tags != null) {
|
|
1263
|
-
contents.Tags = de_Tags(data.Tags, context);
|
|
1264
|
-
}
|
|
1265
|
-
if (data.Type != null) {
|
|
1266
|
-
contents.Type = __expectString(data.Type);
|
|
1267
|
-
}
|
|
1116
|
+
const doc = take(data, {
|
|
1117
|
+
Arn: __expectString,
|
|
1118
|
+
CreationTime: (_) => __expectNonNull(__parseRfc3339DateTimeWithOffset(_)),
|
|
1119
|
+
DurationInSeconds: __expectInt32,
|
|
1120
|
+
ExecutionRoleArn: __expectString,
|
|
1121
|
+
InputConfig: _json,
|
|
1122
|
+
JobConfig: (_) => _json(__expectUnion(_)),
|
|
1123
|
+
KmsKeyId: __expectString,
|
|
1124
|
+
Name: __expectString,
|
|
1125
|
+
Status: __expectString,
|
|
1126
|
+
Tags: _json,
|
|
1127
|
+
Type: __expectString,
|
|
1128
|
+
});
|
|
1129
|
+
Object.assign(contents, doc);
|
|
1268
1130
|
return contents;
|
|
1269
1131
|
};
|
|
1270
1132
|
const de_StartVectorEnrichmentJobCommandError = async (output, context) => {
|
|
@@ -1297,10 +1159,9 @@ const de_StartVectorEnrichmentJobCommandError = async (output, context) => {
|
|
|
1297
1159
|
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
1298
1160
|
default:
|
|
1299
1161
|
const parsedBody = parsedOutput.body;
|
|
1300
|
-
throwDefaultError({
|
|
1162
|
+
return throwDefaultError({
|
|
1301
1163
|
output,
|
|
1302
1164
|
parsedBody,
|
|
1303
|
-
exceptionCtor: __BaseException,
|
|
1304
1165
|
errorCode,
|
|
1305
1166
|
});
|
|
1306
1167
|
}
|
|
@@ -1342,10 +1203,9 @@ const de_StopEarthObservationJobCommandError = async (output, context) => {
|
|
|
1342
1203
|
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
1343
1204
|
default:
|
|
1344
1205
|
const parsedBody = parsedOutput.body;
|
|
1345
|
-
throwDefaultError({
|
|
1206
|
+
return throwDefaultError({
|
|
1346
1207
|
output,
|
|
1347
1208
|
parsedBody,
|
|
1348
|
-
exceptionCtor: __BaseException,
|
|
1349
1209
|
errorCode,
|
|
1350
1210
|
});
|
|
1351
1211
|
}
|
|
@@ -1387,10 +1247,9 @@ const de_StopVectorEnrichmentJobCommandError = async (output, context) => {
|
|
|
1387
1247
|
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
1388
1248
|
default:
|
|
1389
1249
|
const parsedBody = parsedOutput.body;
|
|
1390
|
-
throwDefaultError({
|
|
1250
|
+
return throwDefaultError({
|
|
1391
1251
|
output,
|
|
1392
1252
|
parsedBody,
|
|
1393
|
-
exceptionCtor: __BaseException,
|
|
1394
1253
|
errorCode,
|
|
1395
1254
|
});
|
|
1396
1255
|
}
|
|
@@ -1429,10 +1288,9 @@ const de_TagResourceCommandError = async (output, context) => {
|
|
|
1429
1288
|
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
1430
1289
|
default:
|
|
1431
1290
|
const parsedBody = parsedOutput.body;
|
|
1432
|
-
throwDefaultError({
|
|
1291
|
+
return throwDefaultError({
|
|
1433
1292
|
output,
|
|
1434
1293
|
parsedBody,
|
|
1435
|
-
exceptionCtor: __BaseException,
|
|
1436
1294
|
errorCode,
|
|
1437
1295
|
});
|
|
1438
1296
|
}
|
|
@@ -1471,21 +1329,21 @@ const de_UntagResourceCommandError = async (output, context) => {
|
|
|
1471
1329
|
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
1472
1330
|
default:
|
|
1473
1331
|
const parsedBody = parsedOutput.body;
|
|
1474
|
-
throwDefaultError({
|
|
1332
|
+
return throwDefaultError({
|
|
1475
1333
|
output,
|
|
1476
1334
|
parsedBody,
|
|
1477
|
-
exceptionCtor: __BaseException,
|
|
1478
1335
|
errorCode,
|
|
1479
1336
|
});
|
|
1480
1337
|
}
|
|
1481
1338
|
};
|
|
1482
|
-
const
|
|
1339
|
+
const throwDefaultError = withBaseException(__BaseException);
|
|
1483
1340
|
const de_AccessDeniedExceptionRes = async (parsedOutput, context) => {
|
|
1484
1341
|
const contents = map({});
|
|
1485
1342
|
const data = parsedOutput.body;
|
|
1486
|
-
|
|
1487
|
-
|
|
1488
|
-
}
|
|
1343
|
+
const doc = take(data, {
|
|
1344
|
+
Message: __expectString,
|
|
1345
|
+
});
|
|
1346
|
+
Object.assign(contents, doc);
|
|
1489
1347
|
const exception = new AccessDeniedException({
|
|
1490
1348
|
$metadata: deserializeMetadata(parsedOutput),
|
|
1491
1349
|
...contents,
|
|
@@ -1495,12 +1353,11 @@ const de_AccessDeniedExceptionRes = async (parsedOutput, context) => {
|
|
|
1495
1353
|
const de_ConflictExceptionRes = async (parsedOutput, context) => {
|
|
1496
1354
|
const contents = map({});
|
|
1497
1355
|
const data = parsedOutput.body;
|
|
1498
|
-
|
|
1499
|
-
|
|
1500
|
-
|
|
1501
|
-
|
|
1502
|
-
|
|
1503
|
-
}
|
|
1356
|
+
const doc = take(data, {
|
|
1357
|
+
Message: __expectString,
|
|
1358
|
+
ResourceId: __expectString,
|
|
1359
|
+
});
|
|
1360
|
+
Object.assign(contents, doc);
|
|
1504
1361
|
const exception = new ConflictException({
|
|
1505
1362
|
$metadata: deserializeMetadata(parsedOutput),
|
|
1506
1363
|
...contents,
|
|
@@ -1510,12 +1367,11 @@ const de_ConflictExceptionRes = async (parsedOutput, context) => {
|
|
|
1510
1367
|
const de_InternalServerExceptionRes = async (parsedOutput, context) => {
|
|
1511
1368
|
const contents = map({});
|
|
1512
1369
|
const data = parsedOutput.body;
|
|
1513
|
-
|
|
1514
|
-
|
|
1515
|
-
|
|
1516
|
-
|
|
1517
|
-
|
|
1518
|
-
}
|
|
1370
|
+
const doc = take(data, {
|
|
1371
|
+
Message: __expectString,
|
|
1372
|
+
ResourceId: __expectString,
|
|
1373
|
+
});
|
|
1374
|
+
Object.assign(contents, doc);
|
|
1519
1375
|
const exception = new InternalServerException({
|
|
1520
1376
|
$metadata: deserializeMetadata(parsedOutput),
|
|
1521
1377
|
...contents,
|
|
@@ -1525,12 +1381,11 @@ const de_InternalServerExceptionRes = async (parsedOutput, context) => {
|
|
|
1525
1381
|
const de_ResourceNotFoundExceptionRes = async (parsedOutput, context) => {
|
|
1526
1382
|
const contents = map({});
|
|
1527
1383
|
const data = parsedOutput.body;
|
|
1528
|
-
|
|
1529
|
-
|
|
1530
|
-
|
|
1531
|
-
|
|
1532
|
-
|
|
1533
|
-
}
|
|
1384
|
+
const doc = take(data, {
|
|
1385
|
+
Message: __expectString,
|
|
1386
|
+
ResourceId: __expectString,
|
|
1387
|
+
});
|
|
1388
|
+
Object.assign(contents, doc);
|
|
1534
1389
|
const exception = new ResourceNotFoundException({
|
|
1535
1390
|
$metadata: deserializeMetadata(parsedOutput),
|
|
1536
1391
|
...contents,
|
|
@@ -1540,12 +1395,11 @@ const de_ResourceNotFoundExceptionRes = async (parsedOutput, context) => {
|
|
|
1540
1395
|
const de_ServiceQuotaExceededExceptionRes = async (parsedOutput, context) => {
|
|
1541
1396
|
const contents = map({});
|
|
1542
1397
|
const data = parsedOutput.body;
|
|
1543
|
-
|
|
1544
|
-
|
|
1545
|
-
|
|
1546
|
-
|
|
1547
|
-
|
|
1548
|
-
}
|
|
1398
|
+
const doc = take(data, {
|
|
1399
|
+
Message: __expectString,
|
|
1400
|
+
ResourceId: __expectString,
|
|
1401
|
+
});
|
|
1402
|
+
Object.assign(contents, doc);
|
|
1549
1403
|
const exception = new ServiceQuotaExceededException({
|
|
1550
1404
|
$metadata: deserializeMetadata(parsedOutput),
|
|
1551
1405
|
...contents,
|
|
@@ -1555,12 +1409,11 @@ const de_ServiceQuotaExceededExceptionRes = async (parsedOutput, context) => {
|
|
|
1555
1409
|
const de_ThrottlingExceptionRes = async (parsedOutput, context) => {
|
|
1556
1410
|
const contents = map({});
|
|
1557
1411
|
const data = parsedOutput.body;
|
|
1558
|
-
|
|
1559
|
-
|
|
1560
|
-
|
|
1561
|
-
|
|
1562
|
-
|
|
1563
|
-
}
|
|
1412
|
+
const doc = take(data, {
|
|
1413
|
+
Message: __expectString,
|
|
1414
|
+
ResourceId: __expectString,
|
|
1415
|
+
});
|
|
1416
|
+
Object.assign(contents, doc);
|
|
1564
1417
|
const exception = new ThrottlingException({
|
|
1565
1418
|
$metadata: deserializeMetadata(parsedOutput),
|
|
1566
1419
|
...contents,
|
|
@@ -1570,12 +1423,11 @@ const de_ThrottlingExceptionRes = async (parsedOutput, context) => {
|
|
|
1570
1423
|
const de_ValidationExceptionRes = async (parsedOutput, context) => {
|
|
1571
1424
|
const contents = map({});
|
|
1572
1425
|
const data = parsedOutput.body;
|
|
1573
|
-
|
|
1574
|
-
|
|
1575
|
-
|
|
1576
|
-
|
|
1577
|
-
|
|
1578
|
-
}
|
|
1426
|
+
const doc = take(data, {
|
|
1427
|
+
Message: __expectString,
|
|
1428
|
+
ResourceId: __expectString,
|
|
1429
|
+
});
|
|
1430
|
+
Object.assign(contents, doc);
|
|
1579
1431
|
const exception = new ValidationException({
|
|
1580
1432
|
$metadata: deserializeMetadata(parsedOutput),
|
|
1581
1433
|
...contents,
|
|
@@ -1595,95 +1447,38 @@ const se_AreaOfInterestGeometry = (input, context) => {
|
|
|
1595
1447
|
_: (name, value) => ({ name: value }),
|
|
1596
1448
|
});
|
|
1597
1449
|
};
|
|
1598
|
-
const se_BandMathConfigInput = (input, context) => {
|
|
1599
|
-
return {
|
|
1600
|
-
...(input.CustomIndices != null && { CustomIndices: se_CustomIndicesInput(input.CustomIndices, context) }),
|
|
1601
|
-
...(input.PredefinedIndices != null && { PredefinedIndices: se_StringListInput(input.PredefinedIndices, context) }),
|
|
1602
|
-
};
|
|
1603
|
-
};
|
|
1604
|
-
const se_CloudMaskingConfigInput = (input, context) => {
|
|
1605
|
-
return {};
|
|
1606
|
-
};
|
|
1607
|
-
const se_CloudRemovalConfigInput = (input, context) => {
|
|
1608
|
-
return {
|
|
1609
|
-
...(input.AlgorithmName != null && { AlgorithmName: input.AlgorithmName }),
|
|
1610
|
-
...(input.InterpolationValue != null && { InterpolationValue: input.InterpolationValue }),
|
|
1611
|
-
...(input.TargetBands != null && { TargetBands: se_StringListInput(input.TargetBands, context) }),
|
|
1612
|
-
};
|
|
1613
|
-
};
|
|
1614
|
-
const se_CustomIndicesInput = (input, context) => {
|
|
1615
|
-
return {
|
|
1616
|
-
...(input.Operations != null && { Operations: se_OperationsListInput(input.Operations, context) }),
|
|
1617
|
-
};
|
|
1618
|
-
};
|
|
1619
1450
|
const se_EoCloudCoverInput = (input, context) => {
|
|
1620
|
-
return {
|
|
1621
|
-
|
|
1622
|
-
|
|
1623
|
-
};
|
|
1624
|
-
};
|
|
1625
|
-
const se_EojDataSourceConfigInput = (input, context) => {
|
|
1626
|
-
return EojDataSourceConfigInput.visit(input, {
|
|
1627
|
-
S3Data: (value) => ({ S3Data: se_S3DataInput(value, context) }),
|
|
1628
|
-
_: (name, value) => ({ name: value }),
|
|
1451
|
+
return take(input, {
|
|
1452
|
+
LowerBound: __serializeFloat,
|
|
1453
|
+
UpperBound: __serializeFloat,
|
|
1629
1454
|
});
|
|
1630
1455
|
};
|
|
1631
|
-
const se_ExportS3DataInput = (input, context) => {
|
|
1632
|
-
return {
|
|
1633
|
-
...(input.KmsKeyId != null && { KmsKeyId: input.KmsKeyId }),
|
|
1634
|
-
...(input.S3Uri != null && { S3Uri: input.S3Uri }),
|
|
1635
|
-
};
|
|
1636
|
-
};
|
|
1637
|
-
const se_ExportVectorEnrichmentJobOutputConfig = (input, context) => {
|
|
1638
|
-
return {
|
|
1639
|
-
...(input.S3Data != null && { S3Data: se_VectorEnrichmentJobS3Data(input.S3Data, context) }),
|
|
1640
|
-
};
|
|
1641
|
-
};
|
|
1642
|
-
const se_GeoMosaicConfigInput = (input, context) => {
|
|
1643
|
-
return {
|
|
1644
|
-
...(input.AlgorithmName != null && { AlgorithmName: input.AlgorithmName }),
|
|
1645
|
-
...(input.TargetBands != null && { TargetBands: se_StringListInput(input.TargetBands, context) }),
|
|
1646
|
-
};
|
|
1647
|
-
};
|
|
1648
1456
|
const se_InputConfigInput = (input, context) => {
|
|
1649
|
-
return {
|
|
1650
|
-
|
|
1651
|
-
|
|
1652
|
-
|
|
1653
|
-
|
|
1654
|
-
PreviousEarthObservationJobArn: input.PreviousEarthObservationJobArn,
|
|
1655
|
-
}),
|
|
1656
|
-
...(input.RasterDataCollectionQuery != null && {
|
|
1657
|
-
RasterDataCollectionQuery: se_RasterDataCollectionQueryInput(input.RasterDataCollectionQuery, context),
|
|
1658
|
-
}),
|
|
1659
|
-
};
|
|
1457
|
+
return take(input, {
|
|
1458
|
+
DataSourceConfig: _json,
|
|
1459
|
+
PreviousEarthObservationJobArn: [],
|
|
1460
|
+
RasterDataCollectionQuery: (_) => se_RasterDataCollectionQueryInput(_, context),
|
|
1461
|
+
});
|
|
1660
1462
|
};
|
|
1661
1463
|
const se_JobConfigInput = (input, context) => {
|
|
1662
1464
|
return JobConfigInput.visit(input, {
|
|
1663
|
-
BandMathConfig: (value) => ({ BandMathConfig:
|
|
1664
|
-
CloudMaskingConfig: (value) => ({ CloudMaskingConfig:
|
|
1665
|
-
CloudRemovalConfig: (value) => ({ CloudRemovalConfig:
|
|
1666
|
-
GeoMosaicConfig: (value) => ({ GeoMosaicConfig:
|
|
1667
|
-
LandCoverSegmentationConfig: (value) => ({
|
|
1668
|
-
LandCoverSegmentationConfig: se_LandCoverSegmentationConfigInput(value, context),
|
|
1669
|
-
}),
|
|
1465
|
+
BandMathConfig: (value) => ({ BandMathConfig: _json(value) }),
|
|
1466
|
+
CloudMaskingConfig: (value) => ({ CloudMaskingConfig: _json(value) }),
|
|
1467
|
+
CloudRemovalConfig: (value) => ({ CloudRemovalConfig: _json(value) }),
|
|
1468
|
+
GeoMosaicConfig: (value) => ({ GeoMosaicConfig: _json(value) }),
|
|
1469
|
+
LandCoverSegmentationConfig: (value) => ({ LandCoverSegmentationConfig: _json(value) }),
|
|
1670
1470
|
ResamplingConfig: (value) => ({ ResamplingConfig: se_ResamplingConfigInput(value, context) }),
|
|
1671
1471
|
StackConfig: (value) => ({ StackConfig: se_StackConfigInput(value, context) }),
|
|
1672
|
-
TemporalStatisticsConfig: (value) => ({
|
|
1673
|
-
|
|
1674
|
-
}),
|
|
1675
|
-
ZonalStatisticsConfig: (value) => ({ ZonalStatisticsConfig: se_ZonalStatisticsConfigInput(value, context) }),
|
|
1472
|
+
TemporalStatisticsConfig: (value) => ({ TemporalStatisticsConfig: _json(value) }),
|
|
1473
|
+
ZonalStatisticsConfig: (value) => ({ ZonalStatisticsConfig: _json(value) }),
|
|
1676
1474
|
_: (name, value) => ({ name: value }),
|
|
1677
1475
|
});
|
|
1678
1476
|
};
|
|
1679
|
-
const se_LandCoverSegmentationConfigInput = (input, context) => {
|
|
1680
|
-
return {};
|
|
1681
|
-
};
|
|
1682
1477
|
const se_LandsatCloudCoverLandInput = (input, context) => {
|
|
1683
|
-
return {
|
|
1684
|
-
|
|
1685
|
-
|
|
1686
|
-
};
|
|
1478
|
+
return take(input, {
|
|
1479
|
+
LowerBound: __serializeFloat,
|
|
1480
|
+
UpperBound: __serializeFloat,
|
|
1481
|
+
});
|
|
1687
1482
|
};
|
|
1688
1483
|
const se_LinearRing = (input, context) => {
|
|
1689
1484
|
return input
|
|
@@ -1706,59 +1501,26 @@ const se_LinearRingsList = (input, context) => {
|
|
|
1706
1501
|
return se_LinearRings(entry, context);
|
|
1707
1502
|
});
|
|
1708
1503
|
};
|
|
1709
|
-
const se_MapMatchingConfig = (input, context) => {
|
|
1710
|
-
return {
|
|
1711
|
-
...(input.IdAttributeName != null && { IdAttributeName: input.IdAttributeName }),
|
|
1712
|
-
...(input.TimestampAttributeName != null && { TimestampAttributeName: input.TimestampAttributeName }),
|
|
1713
|
-
...(input.XAttributeName != null && { XAttributeName: input.XAttributeName }),
|
|
1714
|
-
...(input.YAttributeName != null && { YAttributeName: input.YAttributeName }),
|
|
1715
|
-
};
|
|
1716
|
-
};
|
|
1717
1504
|
const se_MultiPolygonGeometryInput = (input, context) => {
|
|
1718
|
-
return {
|
|
1719
|
-
|
|
1720
|
-
};
|
|
1721
|
-
};
|
|
1722
|
-
const se_Operation = (input, context) => {
|
|
1723
|
-
return {
|
|
1724
|
-
...(input.Equation != null && { Equation: input.Equation }),
|
|
1725
|
-
...(input.Name != null && { Name: input.Name }),
|
|
1726
|
-
...(input.OutputType != null && { OutputType: input.OutputType }),
|
|
1727
|
-
};
|
|
1728
|
-
};
|
|
1729
|
-
const se_OperationsListInput = (input, context) => {
|
|
1730
|
-
return input
|
|
1731
|
-
.filter((e) => e != null)
|
|
1732
|
-
.map((entry) => {
|
|
1733
|
-
return se_Operation(entry, context);
|
|
1505
|
+
return take(input, {
|
|
1506
|
+
Coordinates: (_) => se_LinearRingsList(_, context),
|
|
1734
1507
|
});
|
|
1735
1508
|
};
|
|
1736
|
-
const se_OutputConfigInput = (input, context) => {
|
|
1737
|
-
return {
|
|
1738
|
-
...(input.S3Data != null && { S3Data: se_ExportS3DataInput(input.S3Data, context) }),
|
|
1739
|
-
};
|
|
1740
|
-
};
|
|
1741
1509
|
const se_OutputResolutionResamplingInput = (input, context) => {
|
|
1742
|
-
return {
|
|
1743
|
-
|
|
1744
|
-
};
|
|
1510
|
+
return take(input, {
|
|
1511
|
+
UserDefined: (_) => se_UserDefined(_, context),
|
|
1512
|
+
});
|
|
1745
1513
|
};
|
|
1746
1514
|
const se_OutputResolutionStackInput = (input, context) => {
|
|
1747
|
-
return {
|
|
1748
|
-
|
|
1749
|
-
|
|
1750
|
-
};
|
|
1751
|
-
};
|
|
1752
|
-
const se_PlatformInput = (input, context) => {
|
|
1753
|
-
return {
|
|
1754
|
-
...(input.ComparisonOperator != null && { ComparisonOperator: input.ComparisonOperator }),
|
|
1755
|
-
...(input.Value != null && { Value: input.Value }),
|
|
1756
|
-
};
|
|
1515
|
+
return take(input, {
|
|
1516
|
+
Predefined: [],
|
|
1517
|
+
UserDefined: (_) => se_UserDefined(_, context),
|
|
1518
|
+
});
|
|
1757
1519
|
};
|
|
1758
1520
|
const se_PolygonGeometryInput = (input, context) => {
|
|
1759
|
-
return {
|
|
1760
|
-
|
|
1761
|
-
};
|
|
1521
|
+
return take(input, {
|
|
1522
|
+
Coordinates: (_) => se_LinearRings(_, context),
|
|
1523
|
+
});
|
|
1762
1524
|
};
|
|
1763
1525
|
const se_Position = (input, context) => {
|
|
1764
1526
|
return input
|
|
@@ -1771,7 +1533,7 @@ const se_Property = (input, context) => {
|
|
|
1771
1533
|
return Property.visit(input, {
|
|
1772
1534
|
EoCloudCover: (value) => ({ EoCloudCover: se_EoCloudCoverInput(value, context) }),
|
|
1773
1535
|
LandsatCloudCoverLand: (value) => ({ LandsatCloudCoverLand: se_LandsatCloudCoverLandInput(value, context) }),
|
|
1774
|
-
Platform: (value) => ({ Platform:
|
|
1536
|
+
Platform: (value) => ({ Platform: _json(value) }),
|
|
1775
1537
|
ViewOffNadir: (value) => ({ ViewOffNadir: se_ViewOffNadirInput(value, context) }),
|
|
1776
1538
|
ViewSunAzimuth: (value) => ({ ViewSunAzimuth: se_ViewSunAzimuthInput(value, context) }),
|
|
1777
1539
|
ViewSunElevation: (value) => ({ ViewSunElevation: se_ViewSunElevationInput(value, context) }),
|
|
@@ -1779,15 +1541,15 @@ const se_Property = (input, context) => {
|
|
|
1779
1541
|
});
|
|
1780
1542
|
};
|
|
1781
1543
|
const se_PropertyFilter = (input, context) => {
|
|
1782
|
-
return {
|
|
1783
|
-
|
|
1784
|
-
};
|
|
1544
|
+
return take(input, {
|
|
1545
|
+
Property: (_) => se_Property(_, context),
|
|
1546
|
+
});
|
|
1785
1547
|
};
|
|
1786
1548
|
const se_PropertyFilters = (input, context) => {
|
|
1787
|
-
return {
|
|
1788
|
-
|
|
1789
|
-
|
|
1790
|
-
};
|
|
1549
|
+
return take(input, {
|
|
1550
|
+
LogicalOperator: [],
|
|
1551
|
+
Properties: (_) => se_PropertyFiltersList(_, context),
|
|
1552
|
+
});
|
|
1791
1553
|
};
|
|
1792
1554
|
const se_PropertyFiltersList = (input, context) => {
|
|
1793
1555
|
return input
|
|
@@ -1797,151 +1559,62 @@ const se_PropertyFiltersList = (input, context) => {
|
|
|
1797
1559
|
});
|
|
1798
1560
|
};
|
|
1799
1561
|
const se_RasterDataCollectionQueryInput = (input, context) => {
|
|
1800
|
-
return {
|
|
1801
|
-
|
|
1802
|
-
|
|
1803
|
-
|
|
1804
|
-
|
|
1805
|
-
};
|
|
1562
|
+
return take(input, {
|
|
1563
|
+
AreaOfInterest: (_) => se_AreaOfInterest(_, context),
|
|
1564
|
+
PropertyFilters: (_) => se_PropertyFilters(_, context),
|
|
1565
|
+
RasterDataCollectionArn: [],
|
|
1566
|
+
TimeRangeFilter: (_) => se_TimeRangeFilterInput(_, context),
|
|
1567
|
+
});
|
|
1806
1568
|
};
|
|
1807
1569
|
const se_RasterDataCollectionQueryWithBandFilterInput = (input, context) => {
|
|
1808
|
-
return {
|
|
1809
|
-
|
|
1810
|
-
|
|
1811
|
-
|
|
1812
|
-
|
|
1813
|
-
};
|
|
1570
|
+
return take(input, {
|
|
1571
|
+
AreaOfInterest: (_) => se_AreaOfInterest(_, context),
|
|
1572
|
+
BandFilter: _json,
|
|
1573
|
+
PropertyFilters: (_) => se_PropertyFilters(_, context),
|
|
1574
|
+
TimeRangeFilter: (_) => se_TimeRangeFilterInput(_, context),
|
|
1575
|
+
});
|
|
1814
1576
|
};
|
|
1815
1577
|
const se_ResamplingConfigInput = (input, context) => {
|
|
1816
|
-
return {
|
|
1817
|
-
|
|
1818
|
-
|
|
1819
|
-
|
|
1820
|
-
}),
|
|
1821
|
-
...(input.TargetBands != null && { TargetBands: se_StringListInput(input.TargetBands, context) }),
|
|
1822
|
-
};
|
|
1823
|
-
};
|
|
1824
|
-
const se_ReverseGeocodingConfig = (input, context) => {
|
|
1825
|
-
return {
|
|
1826
|
-
...(input.XAttributeName != null && { XAttributeName: input.XAttributeName }),
|
|
1827
|
-
...(input.YAttributeName != null && { YAttributeName: input.YAttributeName }),
|
|
1828
|
-
};
|
|
1829
|
-
};
|
|
1830
|
-
const se_S3DataInput = (input, context) => {
|
|
1831
|
-
return {
|
|
1832
|
-
...(input.KmsKeyId != null && { KmsKeyId: input.KmsKeyId }),
|
|
1833
|
-
...(input.MetadataProvider != null && { MetadataProvider: input.MetadataProvider }),
|
|
1834
|
-
...(input.S3Uri != null && { S3Uri: input.S3Uri }),
|
|
1835
|
-
};
|
|
1836
|
-
};
|
|
1837
|
-
const se_StackConfigInput = (input, context) => {
|
|
1838
|
-
return {
|
|
1839
|
-
...(input.OutputResolution != null && {
|
|
1840
|
-
OutputResolution: se_OutputResolutionStackInput(input.OutputResolution, context),
|
|
1841
|
-
}),
|
|
1842
|
-
...(input.TargetBands != null && { TargetBands: se_StringListInput(input.TargetBands, context) }),
|
|
1843
|
-
};
|
|
1844
|
-
};
|
|
1845
|
-
const se_StringListInput = (input, context) => {
|
|
1846
|
-
return input
|
|
1847
|
-
.filter((e) => e != null)
|
|
1848
|
-
.map((entry) => {
|
|
1849
|
-
return entry;
|
|
1578
|
+
return take(input, {
|
|
1579
|
+
AlgorithmName: [],
|
|
1580
|
+
OutputResolution: (_) => se_OutputResolutionResamplingInput(_, context),
|
|
1581
|
+
TargetBands: _json,
|
|
1850
1582
|
});
|
|
1851
1583
|
};
|
|
1852
|
-
const
|
|
1853
|
-
return
|
|
1854
|
-
|
|
1855
|
-
|
|
1856
|
-
}
|
|
1857
|
-
acc[key] = value;
|
|
1858
|
-
return acc;
|
|
1859
|
-
}, {});
|
|
1860
|
-
};
|
|
1861
|
-
const se_TemporalStatisticsConfigInput = (input, context) => {
|
|
1862
|
-
return {
|
|
1863
|
-
...(input.GroupBy != null && { GroupBy: input.GroupBy }),
|
|
1864
|
-
...(input.Statistics != null && { Statistics: se_TemporalStatisticsListInput(input.Statistics, context) }),
|
|
1865
|
-
...(input.TargetBands != null && { TargetBands: se_StringListInput(input.TargetBands, context) }),
|
|
1866
|
-
};
|
|
1867
|
-
};
|
|
1868
|
-
const se_TemporalStatisticsListInput = (input, context) => {
|
|
1869
|
-
return input
|
|
1870
|
-
.filter((e) => e != null)
|
|
1871
|
-
.map((entry) => {
|
|
1872
|
-
return entry;
|
|
1584
|
+
const se_StackConfigInput = (input, context) => {
|
|
1585
|
+
return take(input, {
|
|
1586
|
+
OutputResolution: (_) => se_OutputResolutionStackInput(_, context),
|
|
1587
|
+
TargetBands: _json,
|
|
1873
1588
|
});
|
|
1874
1589
|
};
|
|
1875
1590
|
const se_TimeRangeFilterInput = (input, context) => {
|
|
1876
|
-
return {
|
|
1877
|
-
|
|
1878
|
-
|
|
1879
|
-
};
|
|
1880
|
-
};
|
|
1881
|
-
const se_UserDefined = (input, context) => {
|
|
1882
|
-
return {
|
|
1883
|
-
...(input.Unit != null && { Unit: input.Unit }),
|
|
1884
|
-
...(input.Value != null && { Value: __serializeFloat(input.Value) }),
|
|
1885
|
-
};
|
|
1886
|
-
};
|
|
1887
|
-
const se_VectorEnrichmentJobConfig = (input, context) => {
|
|
1888
|
-
return VectorEnrichmentJobConfig.visit(input, {
|
|
1889
|
-
MapMatchingConfig: (value) => ({ MapMatchingConfig: se_MapMatchingConfig(value, context) }),
|
|
1890
|
-
ReverseGeocodingConfig: (value) => ({ ReverseGeocodingConfig: se_ReverseGeocodingConfig(value, context) }),
|
|
1891
|
-
_: (name, value) => ({ name: value }),
|
|
1591
|
+
return take(input, {
|
|
1592
|
+
EndTime: (_) => Math.round(_.getTime() / 1000),
|
|
1593
|
+
StartTime: (_) => Math.round(_.getTime() / 1000),
|
|
1892
1594
|
});
|
|
1893
1595
|
};
|
|
1894
|
-
const
|
|
1895
|
-
return
|
|
1896
|
-
|
|
1897
|
-
|
|
1596
|
+
const se_UserDefined = (input, context) => {
|
|
1597
|
+
return take(input, {
|
|
1598
|
+
Unit: [],
|
|
1599
|
+
Value: __serializeFloat,
|
|
1898
1600
|
});
|
|
1899
1601
|
};
|
|
1900
|
-
const se_VectorEnrichmentJobInputConfig = (input, context) => {
|
|
1901
|
-
return {
|
|
1902
|
-
...(input.DataSourceConfig != null && {
|
|
1903
|
-
DataSourceConfig: se_VectorEnrichmentJobDataSourceConfigInput(input.DataSourceConfig, context),
|
|
1904
|
-
}),
|
|
1905
|
-
...(input.DocumentType != null && { DocumentType: input.DocumentType }),
|
|
1906
|
-
};
|
|
1907
|
-
};
|
|
1908
|
-
const se_VectorEnrichmentJobS3Data = (input, context) => {
|
|
1909
|
-
return {
|
|
1910
|
-
...(input.KmsKeyId != null && { KmsKeyId: input.KmsKeyId }),
|
|
1911
|
-
...(input.S3Uri != null && { S3Uri: input.S3Uri }),
|
|
1912
|
-
};
|
|
1913
|
-
};
|
|
1914
1602
|
const se_ViewOffNadirInput = (input, context) => {
|
|
1915
|
-
return {
|
|
1916
|
-
|
|
1917
|
-
|
|
1918
|
-
};
|
|
1603
|
+
return take(input, {
|
|
1604
|
+
LowerBound: __serializeFloat,
|
|
1605
|
+
UpperBound: __serializeFloat,
|
|
1606
|
+
});
|
|
1919
1607
|
};
|
|
1920
1608
|
const se_ViewSunAzimuthInput = (input, context) => {
|
|
1921
|
-
return {
|
|
1922
|
-
|
|
1923
|
-
|
|
1924
|
-
};
|
|
1609
|
+
return take(input, {
|
|
1610
|
+
LowerBound: __serializeFloat,
|
|
1611
|
+
UpperBound: __serializeFloat,
|
|
1612
|
+
});
|
|
1925
1613
|
};
|
|
1926
1614
|
const se_ViewSunElevationInput = (input, context) => {
|
|
1927
|
-
return {
|
|
1928
|
-
|
|
1929
|
-
|
|
1930
|
-
};
|
|
1931
|
-
};
|
|
1932
|
-
const se_ZonalStatisticsConfigInput = (input, context) => {
|
|
1933
|
-
return {
|
|
1934
|
-
...(input.Statistics != null && { Statistics: se_ZonalStatisticsListInput(input.Statistics, context) }),
|
|
1935
|
-
...(input.TargetBands != null && { TargetBands: se_StringListInput(input.TargetBands, context) }),
|
|
1936
|
-
...(input.ZoneS3Path != null && { ZoneS3Path: input.ZoneS3Path }),
|
|
1937
|
-
...(input.ZoneS3PathKmsKeyId != null && { ZoneS3PathKmsKeyId: input.ZoneS3PathKmsKeyId }),
|
|
1938
|
-
};
|
|
1939
|
-
};
|
|
1940
|
-
const se_ZonalStatisticsListInput = (input, context) => {
|
|
1941
|
-
return input
|
|
1942
|
-
.filter((e) => e != null)
|
|
1943
|
-
.map((entry) => {
|
|
1944
|
-
return entry;
|
|
1615
|
+
return take(input, {
|
|
1616
|
+
LowerBound: __serializeFloat,
|
|
1617
|
+
UpperBound: __serializeFloat,
|
|
1945
1618
|
});
|
|
1946
1619
|
};
|
|
1947
1620
|
const de_AreaOfInterest = (output, context) => {
|
|
@@ -1965,186 +1638,70 @@ const de_AreaOfInterestGeometry = (output, context) => {
|
|
|
1965
1638
|
}
|
|
1966
1639
|
return { $unknown: Object.entries(output)[0] };
|
|
1967
1640
|
};
|
|
1968
|
-
const de_AssetsMap = (output, context) => {
|
|
1969
|
-
return Object.entries(output).reduce((acc, [key, value]) => {
|
|
1970
|
-
if (value === null) {
|
|
1971
|
-
return acc;
|
|
1972
|
-
}
|
|
1973
|
-
acc[key] = de_AssetValue(value, context);
|
|
1974
|
-
return acc;
|
|
1975
|
-
}, {});
|
|
1976
|
-
};
|
|
1977
|
-
const de_AssetValue = (output, context) => {
|
|
1978
|
-
return {
|
|
1979
|
-
Href: __expectString(output.Href),
|
|
1980
|
-
};
|
|
1981
|
-
};
|
|
1982
|
-
const de_BandMathConfigInput = (output, context) => {
|
|
1983
|
-
return {
|
|
1984
|
-
CustomIndices: output.CustomIndices != null ? de_CustomIndicesInput(output.CustomIndices, context) : undefined,
|
|
1985
|
-
PredefinedIndices: output.PredefinedIndices != null ? de_StringListInput(output.PredefinedIndices, context) : undefined,
|
|
1986
|
-
};
|
|
1987
|
-
};
|
|
1988
|
-
const de_CloudMaskingConfigInput = (output, context) => {
|
|
1989
|
-
return {};
|
|
1990
|
-
};
|
|
1991
|
-
const de_CloudRemovalConfigInput = (output, context) => {
|
|
1992
|
-
return {
|
|
1993
|
-
AlgorithmName: __expectString(output.AlgorithmName),
|
|
1994
|
-
InterpolationValue: __expectString(output.InterpolationValue),
|
|
1995
|
-
TargetBands: output.TargetBands != null ? de_StringListInput(output.TargetBands, context) : undefined,
|
|
1996
|
-
};
|
|
1997
|
-
};
|
|
1998
|
-
const de_CustomIndicesInput = (output, context) => {
|
|
1999
|
-
return {
|
|
2000
|
-
Operations: output.Operations != null ? de_OperationsListInput(output.Operations, context) : undefined,
|
|
2001
|
-
};
|
|
2002
|
-
};
|
|
2003
1641
|
const de_DataCollectionsList = (output, context) => {
|
|
2004
1642
|
const retVal = (output || [])
|
|
2005
1643
|
.filter((e) => e != null)
|
|
2006
1644
|
.map((entry) => {
|
|
2007
|
-
if (entry === null) {
|
|
2008
|
-
return null;
|
|
2009
|
-
}
|
|
2010
1645
|
return de_RasterDataCollectionMetadata(entry, context);
|
|
2011
1646
|
});
|
|
2012
1647
|
return retVal;
|
|
2013
1648
|
};
|
|
2014
|
-
const de_EarthObservationJobErrorDetails = (output, context) => {
|
|
2015
|
-
return {
|
|
2016
|
-
Message: __expectString(output.Message),
|
|
2017
|
-
Type: __expectString(output.Type),
|
|
2018
|
-
};
|
|
2019
|
-
};
|
|
2020
1649
|
const de_EarthObservationJobList = (output, context) => {
|
|
2021
1650
|
const retVal = (output || [])
|
|
2022
1651
|
.filter((e) => e != null)
|
|
2023
1652
|
.map((entry) => {
|
|
2024
|
-
if (entry === null) {
|
|
2025
|
-
return null;
|
|
2026
|
-
}
|
|
2027
1653
|
return de_ListEarthObservationJobOutputConfig(entry, context);
|
|
2028
1654
|
});
|
|
2029
1655
|
return retVal;
|
|
2030
1656
|
};
|
|
2031
|
-
const de_EarthObservationJobOutputBands = (output, context) => {
|
|
2032
|
-
const retVal = (output || [])
|
|
2033
|
-
.filter((e) => e != null)
|
|
2034
|
-
.map((entry) => {
|
|
2035
|
-
if (entry === null) {
|
|
2036
|
-
return null;
|
|
2037
|
-
}
|
|
2038
|
-
return de_OutputBand(entry, context);
|
|
2039
|
-
});
|
|
2040
|
-
return retVal;
|
|
2041
|
-
};
|
|
2042
1657
|
const de_EoCloudCoverInput = (output, context) => {
|
|
2043
|
-
return {
|
|
2044
|
-
LowerBound: __limitedParseFloat32
|
|
2045
|
-
UpperBound: __limitedParseFloat32
|
|
2046
|
-
};
|
|
2047
|
-
};
|
|
2048
|
-
const de_EojDataSourceConfigInput = (output, context) => {
|
|
2049
|
-
if (output.S3Data != null) {
|
|
2050
|
-
return {
|
|
2051
|
-
S3Data: de_S3DataInput(output.S3Data, context),
|
|
2052
|
-
};
|
|
2053
|
-
}
|
|
2054
|
-
return { $unknown: Object.entries(output)[0] };
|
|
2055
|
-
};
|
|
2056
|
-
const de_ExportErrorDetails = (output, context) => {
|
|
2057
|
-
return {
|
|
2058
|
-
ExportResults: output.ExportResults != null ? de_ExportErrorDetailsOutput(output.ExportResults, context) : undefined,
|
|
2059
|
-
ExportSourceImages: output.ExportSourceImages != null ? de_ExportErrorDetailsOutput(output.ExportSourceImages, context) : undefined,
|
|
2060
|
-
};
|
|
2061
|
-
};
|
|
2062
|
-
const de_ExportErrorDetailsOutput = (output, context) => {
|
|
2063
|
-
return {
|
|
2064
|
-
Message: __expectString(output.Message),
|
|
2065
|
-
Type: __expectString(output.Type),
|
|
2066
|
-
};
|
|
2067
|
-
};
|
|
2068
|
-
const de_ExportS3DataInput = (output, context) => {
|
|
2069
|
-
return {
|
|
2070
|
-
KmsKeyId: __expectString(output.KmsKeyId),
|
|
2071
|
-
S3Uri: __expectString(output.S3Uri),
|
|
2072
|
-
};
|
|
2073
|
-
};
|
|
2074
|
-
const de_ExportVectorEnrichmentJobOutputConfig = (output, context) => {
|
|
2075
|
-
return {
|
|
2076
|
-
S3Data: output.S3Data != null ? de_VectorEnrichmentJobS3Data(output.S3Data, context) : undefined,
|
|
2077
|
-
};
|
|
1658
|
+
return take(output, {
|
|
1659
|
+
LowerBound: __limitedParseFloat32,
|
|
1660
|
+
UpperBound: __limitedParseFloat32,
|
|
1661
|
+
});
|
|
2078
1662
|
};
|
|
2079
1663
|
const de_Filter = (output, context) => {
|
|
2080
|
-
return {
|
|
2081
|
-
Maximum: __limitedParseFloat32
|
|
2082
|
-
Minimum: __limitedParseFloat32
|
|
2083
|
-
Name: __expectString
|
|
2084
|
-
Type: __expectString
|
|
2085
|
-
};
|
|
1664
|
+
return take(output, {
|
|
1665
|
+
Maximum: __limitedParseFloat32,
|
|
1666
|
+
Minimum: __limitedParseFloat32,
|
|
1667
|
+
Name: __expectString,
|
|
1668
|
+
Type: __expectString,
|
|
1669
|
+
});
|
|
2086
1670
|
};
|
|
2087
1671
|
const de_FilterList = (output, context) => {
|
|
2088
1672
|
const retVal = (output || [])
|
|
2089
1673
|
.filter((e) => e != null)
|
|
2090
1674
|
.map((entry) => {
|
|
2091
|
-
if (entry === null) {
|
|
2092
|
-
return null;
|
|
2093
|
-
}
|
|
2094
1675
|
return de_Filter(entry, context);
|
|
2095
1676
|
});
|
|
2096
1677
|
return retVal;
|
|
2097
1678
|
};
|
|
2098
1679
|
const de_Geometry = (output, context) => {
|
|
2099
|
-
return {
|
|
2100
|
-
Coordinates:
|
|
2101
|
-
Type: __expectString
|
|
2102
|
-
};
|
|
2103
|
-
};
|
|
2104
|
-
const de_GeoMosaicConfigInput = (output, context) => {
|
|
2105
|
-
return {
|
|
2106
|
-
AlgorithmName: __expectString(output.AlgorithmName),
|
|
2107
|
-
TargetBands: output.TargetBands != null ? de_StringListInput(output.TargetBands, context) : undefined,
|
|
2108
|
-
};
|
|
2109
|
-
};
|
|
2110
|
-
const de_ImageSourceBandList = (output, context) => {
|
|
2111
|
-
const retVal = (output || [])
|
|
2112
|
-
.filter((e) => e != null)
|
|
2113
|
-
.map((entry) => {
|
|
2114
|
-
if (entry === null) {
|
|
2115
|
-
return null;
|
|
2116
|
-
}
|
|
2117
|
-
return __expectString(entry);
|
|
1680
|
+
return take(output, {
|
|
1681
|
+
Coordinates: (_) => de_LinearRings(_, context),
|
|
1682
|
+
Type: __expectString,
|
|
2118
1683
|
});
|
|
2119
|
-
return retVal;
|
|
2120
1684
|
};
|
|
2121
1685
|
const de_InputConfigOutput = (output, context) => {
|
|
2122
|
-
return {
|
|
2123
|
-
DataSourceConfig:
|
|
2124
|
-
|
|
2125
|
-
|
|
2126
|
-
|
|
2127
|
-
RasterDataCollectionQuery: output.RasterDataCollectionQuery != null
|
|
2128
|
-
? de_RasterDataCollectionQueryOutput(output.RasterDataCollectionQuery, context)
|
|
2129
|
-
: undefined,
|
|
2130
|
-
};
|
|
1686
|
+
return take(output, {
|
|
1687
|
+
DataSourceConfig: (_) => _json(__expectUnion(_)),
|
|
1688
|
+
PreviousEarthObservationJobArn: __expectString,
|
|
1689
|
+
RasterDataCollectionQuery: (_) => de_RasterDataCollectionQueryOutput(_, context),
|
|
1690
|
+
});
|
|
2131
1691
|
};
|
|
2132
1692
|
const de_ItemSource = (output, context) => {
|
|
2133
|
-
return {
|
|
2134
|
-
Assets:
|
|
2135
|
-
DateTime:
|
|
2136
|
-
Geometry:
|
|
2137
|
-
Id: __expectString
|
|
2138
|
-
Properties:
|
|
2139
|
-
};
|
|
1693
|
+
return take(output, {
|
|
1694
|
+
Assets: _json,
|
|
1695
|
+
DateTime: (_) => __expectNonNull(__parseEpochTimestamp(__expectNumber(_))),
|
|
1696
|
+
Geometry: (_) => de_Geometry(_, context),
|
|
1697
|
+
Id: __expectString,
|
|
1698
|
+
Properties: (_) => de_Properties(_, context),
|
|
1699
|
+
});
|
|
2140
1700
|
};
|
|
2141
1701
|
const de_ItemSourceList = (output, context) => {
|
|
2142
1702
|
const retVal = (output || [])
|
|
2143
1703
|
.filter((e) => e != null)
|
|
2144
1704
|
.map((entry) => {
|
|
2145
|
-
if (entry === null) {
|
|
2146
|
-
return null;
|
|
2147
|
-
}
|
|
2148
1705
|
return de_ItemSource(entry, context);
|
|
2149
1706
|
});
|
|
2150
1707
|
return retVal;
|
|
@@ -2152,27 +1709,27 @@ const de_ItemSourceList = (output, context) => {
|
|
|
2152
1709
|
const de_JobConfigInput = (output, context) => {
|
|
2153
1710
|
if (output.BandMathConfig != null) {
|
|
2154
1711
|
return {
|
|
2155
|
-
BandMathConfig:
|
|
1712
|
+
BandMathConfig: _json(output.BandMathConfig),
|
|
2156
1713
|
};
|
|
2157
1714
|
}
|
|
2158
1715
|
if (output.CloudMaskingConfig != null) {
|
|
2159
1716
|
return {
|
|
2160
|
-
CloudMaskingConfig:
|
|
1717
|
+
CloudMaskingConfig: _json(output.CloudMaskingConfig),
|
|
2161
1718
|
};
|
|
2162
1719
|
}
|
|
2163
1720
|
if (output.CloudRemovalConfig != null) {
|
|
2164
1721
|
return {
|
|
2165
|
-
CloudRemovalConfig:
|
|
1722
|
+
CloudRemovalConfig: _json(output.CloudRemovalConfig),
|
|
2166
1723
|
};
|
|
2167
1724
|
}
|
|
2168
1725
|
if (output.GeoMosaicConfig != null) {
|
|
2169
1726
|
return {
|
|
2170
|
-
GeoMosaicConfig:
|
|
1727
|
+
GeoMosaicConfig: _json(output.GeoMosaicConfig),
|
|
2171
1728
|
};
|
|
2172
1729
|
}
|
|
2173
1730
|
if (output.LandCoverSegmentationConfig != null) {
|
|
2174
1731
|
return {
|
|
2175
|
-
LandCoverSegmentationConfig:
|
|
1732
|
+
LandCoverSegmentationConfig: _json(output.LandCoverSegmentationConfig),
|
|
2176
1733
|
};
|
|
2177
1734
|
}
|
|
2178
1735
|
if (output.ResamplingConfig != null) {
|
|
@@ -2187,32 +1744,26 @@ const de_JobConfigInput = (output, context) => {
|
|
|
2187
1744
|
}
|
|
2188
1745
|
if (output.TemporalStatisticsConfig != null) {
|
|
2189
1746
|
return {
|
|
2190
|
-
TemporalStatisticsConfig:
|
|
1747
|
+
TemporalStatisticsConfig: _json(output.TemporalStatisticsConfig),
|
|
2191
1748
|
};
|
|
2192
1749
|
}
|
|
2193
1750
|
if (output.ZonalStatisticsConfig != null) {
|
|
2194
1751
|
return {
|
|
2195
|
-
ZonalStatisticsConfig:
|
|
1752
|
+
ZonalStatisticsConfig: _json(output.ZonalStatisticsConfig),
|
|
2196
1753
|
};
|
|
2197
1754
|
}
|
|
2198
1755
|
return { $unknown: Object.entries(output)[0] };
|
|
2199
1756
|
};
|
|
2200
|
-
const de_LandCoverSegmentationConfigInput = (output, context) => {
|
|
2201
|
-
return {};
|
|
2202
|
-
};
|
|
2203
1757
|
const de_LandsatCloudCoverLandInput = (output, context) => {
|
|
2204
|
-
return {
|
|
2205
|
-
LowerBound: __limitedParseFloat32
|
|
2206
|
-
UpperBound: __limitedParseFloat32
|
|
2207
|
-
};
|
|
1758
|
+
return take(output, {
|
|
1759
|
+
LowerBound: __limitedParseFloat32,
|
|
1760
|
+
UpperBound: __limitedParseFloat32,
|
|
1761
|
+
});
|
|
2208
1762
|
};
|
|
2209
1763
|
const de_LinearRing = (output, context) => {
|
|
2210
1764
|
const retVal = (output || [])
|
|
2211
1765
|
.filter((e) => e != null)
|
|
2212
1766
|
.map((entry) => {
|
|
2213
|
-
if (entry === null) {
|
|
2214
|
-
return null;
|
|
2215
|
-
}
|
|
2216
1767
|
return de_Position(entry, context);
|
|
2217
1768
|
});
|
|
2218
1769
|
return retVal;
|
|
@@ -2221,9 +1772,6 @@ const de_LinearRings = (output, context) => {
|
|
|
2221
1772
|
const retVal = (output || [])
|
|
2222
1773
|
.filter((e) => e != null)
|
|
2223
1774
|
.map((entry) => {
|
|
2224
|
-
if (entry === null) {
|
|
2225
|
-
return null;
|
|
2226
|
-
}
|
|
2227
1775
|
return de_LinearRing(entry, context);
|
|
2228
1776
|
});
|
|
2229
1777
|
return retVal;
|
|
@@ -2232,119 +1780,70 @@ const de_LinearRingsList = (output, context) => {
|
|
|
2232
1780
|
const retVal = (output || [])
|
|
2233
1781
|
.filter((e) => e != null)
|
|
2234
1782
|
.map((entry) => {
|
|
2235
|
-
if (entry === null) {
|
|
2236
|
-
return null;
|
|
2237
|
-
}
|
|
2238
1783
|
return de_LinearRings(entry, context);
|
|
2239
1784
|
});
|
|
2240
1785
|
return retVal;
|
|
2241
1786
|
};
|
|
2242
1787
|
const de_ListEarthObservationJobOutputConfig = (output, context) => {
|
|
2243
|
-
return {
|
|
2244
|
-
Arn: __expectString
|
|
2245
|
-
CreationTime:
|
|
2246
|
-
DurationInSeconds: __expectInt32
|
|
2247
|
-
Name: __expectString
|
|
2248
|
-
OperationType: __expectString
|
|
2249
|
-
Status: __expectString
|
|
2250
|
-
Tags:
|
|
2251
|
-
};
|
|
1788
|
+
return take(output, {
|
|
1789
|
+
Arn: __expectString,
|
|
1790
|
+
CreationTime: (_) => __expectNonNull(__parseRfc3339DateTimeWithOffset(_)),
|
|
1791
|
+
DurationInSeconds: __expectInt32,
|
|
1792
|
+
Name: __expectString,
|
|
1793
|
+
OperationType: __expectString,
|
|
1794
|
+
Status: __expectString,
|
|
1795
|
+
Tags: _json,
|
|
1796
|
+
});
|
|
2252
1797
|
};
|
|
2253
1798
|
const de_ListVectorEnrichmentJobOutputConfig = (output, context) => {
|
|
2254
|
-
return {
|
|
2255
|
-
Arn: __expectString
|
|
2256
|
-
CreationTime:
|
|
2257
|
-
DurationInSeconds: __expectInt32
|
|
2258
|
-
Name: __expectString
|
|
2259
|
-
Status: __expectString
|
|
2260
|
-
Tags:
|
|
2261
|
-
Type: __expectString
|
|
2262
|
-
};
|
|
2263
|
-
};
|
|
2264
|
-
const de_MapMatchingConfig = (output, context) => {
|
|
2265
|
-
return {
|
|
2266
|
-
IdAttributeName: __expectString(output.IdAttributeName),
|
|
2267
|
-
TimestampAttributeName: __expectString(output.TimestampAttributeName),
|
|
2268
|
-
XAttributeName: __expectString(output.XAttributeName),
|
|
2269
|
-
YAttributeName: __expectString(output.YAttributeName),
|
|
2270
|
-
};
|
|
1799
|
+
return take(output, {
|
|
1800
|
+
Arn: __expectString,
|
|
1801
|
+
CreationTime: (_) => __expectNonNull(__parseRfc3339DateTimeWithOffset(_)),
|
|
1802
|
+
DurationInSeconds: __expectInt32,
|
|
1803
|
+
Name: __expectString,
|
|
1804
|
+
Status: __expectString,
|
|
1805
|
+
Tags: _json,
|
|
1806
|
+
Type: __expectString,
|
|
1807
|
+
});
|
|
2271
1808
|
};
|
|
2272
1809
|
const de_MultiPolygonGeometryInput = (output, context) => {
|
|
2273
|
-
return {
|
|
2274
|
-
Coordinates:
|
|
2275
|
-
};
|
|
2276
|
-
};
|
|
2277
|
-
const de_Operation = (output, context) => {
|
|
2278
|
-
return {
|
|
2279
|
-
Equation: __expectString(output.Equation),
|
|
2280
|
-
Name: __expectString(output.Name),
|
|
2281
|
-
OutputType: __expectString(output.OutputType),
|
|
2282
|
-
};
|
|
2283
|
-
};
|
|
2284
|
-
const de_OperationsListInput = (output, context) => {
|
|
2285
|
-
const retVal = (output || [])
|
|
2286
|
-
.filter((e) => e != null)
|
|
2287
|
-
.map((entry) => {
|
|
2288
|
-
if (entry === null) {
|
|
2289
|
-
return null;
|
|
2290
|
-
}
|
|
2291
|
-
return de_Operation(entry, context);
|
|
1810
|
+
return take(output, {
|
|
1811
|
+
Coordinates: (_) => de_LinearRingsList(_, context),
|
|
2292
1812
|
});
|
|
2293
|
-
return retVal;
|
|
2294
|
-
};
|
|
2295
|
-
const de_OutputBand = (output, context) => {
|
|
2296
|
-
return {
|
|
2297
|
-
BandName: __expectString(output.BandName),
|
|
2298
|
-
OutputDataType: __expectString(output.OutputDataType),
|
|
2299
|
-
};
|
|
2300
|
-
};
|
|
2301
|
-
const de_OutputConfigInput = (output, context) => {
|
|
2302
|
-
return {
|
|
2303
|
-
S3Data: output.S3Data != null ? de_ExportS3DataInput(output.S3Data, context) : undefined,
|
|
2304
|
-
};
|
|
2305
1813
|
};
|
|
2306
1814
|
const de_OutputResolutionResamplingInput = (output, context) => {
|
|
2307
|
-
return {
|
|
2308
|
-
UserDefined:
|
|
2309
|
-
};
|
|
1815
|
+
return take(output, {
|
|
1816
|
+
UserDefined: (_) => de_UserDefined(_, context),
|
|
1817
|
+
});
|
|
2310
1818
|
};
|
|
2311
1819
|
const de_OutputResolutionStackInput = (output, context) => {
|
|
2312
|
-
return {
|
|
2313
|
-
Predefined: __expectString
|
|
2314
|
-
UserDefined:
|
|
2315
|
-
};
|
|
2316
|
-
};
|
|
2317
|
-
const de_PlatformInput = (output, context) => {
|
|
2318
|
-
return {
|
|
2319
|
-
ComparisonOperator: __expectString(output.ComparisonOperator),
|
|
2320
|
-
Value: __expectString(output.Value),
|
|
2321
|
-
};
|
|
1820
|
+
return take(output, {
|
|
1821
|
+
Predefined: __expectString,
|
|
1822
|
+
UserDefined: (_) => de_UserDefined(_, context),
|
|
1823
|
+
});
|
|
2322
1824
|
};
|
|
2323
1825
|
const de_PolygonGeometryInput = (output, context) => {
|
|
2324
|
-
return {
|
|
2325
|
-
Coordinates:
|
|
2326
|
-
};
|
|
1826
|
+
return take(output, {
|
|
1827
|
+
Coordinates: (_) => de_LinearRings(_, context),
|
|
1828
|
+
});
|
|
2327
1829
|
};
|
|
2328
1830
|
const de_Position = (output, context) => {
|
|
2329
1831
|
const retVal = (output || [])
|
|
2330
1832
|
.filter((e) => e != null)
|
|
2331
1833
|
.map((entry) => {
|
|
2332
|
-
if (entry === null) {
|
|
2333
|
-
return null;
|
|
2334
|
-
}
|
|
2335
1834
|
return __limitedParseDouble(entry);
|
|
2336
1835
|
});
|
|
2337
1836
|
return retVal;
|
|
2338
1837
|
};
|
|
2339
1838
|
const de_Properties = (output, context) => {
|
|
2340
|
-
return {
|
|
2341
|
-
EoCloudCover: __limitedParseFloat32
|
|
2342
|
-
LandsatCloudCoverLand: __limitedParseFloat32
|
|
2343
|
-
Platform: __expectString
|
|
2344
|
-
ViewOffNadir: __limitedParseFloat32
|
|
2345
|
-
ViewSunAzimuth: __limitedParseFloat32
|
|
2346
|
-
ViewSunElevation: __limitedParseFloat32
|
|
2347
|
-
};
|
|
1839
|
+
return take(output, {
|
|
1840
|
+
EoCloudCover: __limitedParseFloat32,
|
|
1841
|
+
LandsatCloudCoverLand: __limitedParseFloat32,
|
|
1842
|
+
Platform: __expectString,
|
|
1843
|
+
ViewOffNadir: __limitedParseFloat32,
|
|
1844
|
+
ViewSunAzimuth: __limitedParseFloat32,
|
|
1845
|
+
ViewSunElevation: __limitedParseFloat32,
|
|
1846
|
+
});
|
|
2348
1847
|
};
|
|
2349
1848
|
const de_Property = (output, context) => {
|
|
2350
1849
|
if (output.EoCloudCover != null) {
|
|
@@ -2359,7 +1858,7 @@ const de_Property = (output, context) => {
|
|
|
2359
1858
|
}
|
|
2360
1859
|
if (output.Platform != null) {
|
|
2361
1860
|
return {
|
|
2362
|
-
Platform:
|
|
1861
|
+
Platform: _json(output.Platform),
|
|
2363
1862
|
};
|
|
2364
1863
|
}
|
|
2365
1864
|
if (output.ViewOffNadir != null) {
|
|
@@ -2380,219 +1879,94 @@ const de_Property = (output, context) => {
|
|
|
2380
1879
|
return { $unknown: Object.entries(output)[0] };
|
|
2381
1880
|
};
|
|
2382
1881
|
const de_PropertyFilter = (output, context) => {
|
|
2383
|
-
return {
|
|
2384
|
-
Property:
|
|
2385
|
-
};
|
|
1882
|
+
return take(output, {
|
|
1883
|
+
Property: (_) => de_Property(__expectUnion(_), context),
|
|
1884
|
+
});
|
|
2386
1885
|
};
|
|
2387
1886
|
const de_PropertyFilters = (output, context) => {
|
|
2388
|
-
return {
|
|
2389
|
-
LogicalOperator: __expectString
|
|
2390
|
-
Properties:
|
|
2391
|
-
};
|
|
1887
|
+
return take(output, {
|
|
1888
|
+
LogicalOperator: __expectString,
|
|
1889
|
+
Properties: (_) => de_PropertyFiltersList(_, context),
|
|
1890
|
+
});
|
|
2392
1891
|
};
|
|
2393
1892
|
const de_PropertyFiltersList = (output, context) => {
|
|
2394
1893
|
const retVal = (output || [])
|
|
2395
1894
|
.filter((e) => e != null)
|
|
2396
1895
|
.map((entry) => {
|
|
2397
|
-
if (entry === null) {
|
|
2398
|
-
return null;
|
|
2399
|
-
}
|
|
2400
1896
|
return de_PropertyFilter(entry, context);
|
|
2401
1897
|
});
|
|
2402
1898
|
return retVal;
|
|
2403
1899
|
};
|
|
2404
1900
|
const de_RasterDataCollectionMetadata = (output, context) => {
|
|
2405
|
-
return {
|
|
2406
|
-
Arn: __expectString
|
|
2407
|
-
Description: __expectString
|
|
2408
|
-
DescriptionPageUrl: __expectString
|
|
2409
|
-
Name: __expectString
|
|
2410
|
-
SupportedFilters:
|
|
2411
|
-
Tags:
|
|
2412
|
-
Type: __expectString
|
|
2413
|
-
};
|
|
1901
|
+
return take(output, {
|
|
1902
|
+
Arn: __expectString,
|
|
1903
|
+
Description: __expectString,
|
|
1904
|
+
DescriptionPageUrl: __expectString,
|
|
1905
|
+
Name: __expectString,
|
|
1906
|
+
SupportedFilters: (_) => de_FilterList(_, context),
|
|
1907
|
+
Tags: _json,
|
|
1908
|
+
Type: __expectString,
|
|
1909
|
+
});
|
|
2414
1910
|
};
|
|
2415
1911
|
const de_RasterDataCollectionQueryOutput = (output, context) => {
|
|
2416
|
-
return {
|
|
2417
|
-
AreaOfInterest:
|
|
2418
|
-
PropertyFilters:
|
|
2419
|
-
RasterDataCollectionArn: __expectString
|
|
2420
|
-
RasterDataCollectionName: __expectString
|
|
2421
|
-
TimeRangeFilter:
|
|
2422
|
-
};
|
|
1912
|
+
return take(output, {
|
|
1913
|
+
AreaOfInterest: (_) => de_AreaOfInterest(__expectUnion(_), context),
|
|
1914
|
+
PropertyFilters: (_) => de_PropertyFilters(_, context),
|
|
1915
|
+
RasterDataCollectionArn: __expectString,
|
|
1916
|
+
RasterDataCollectionName: __expectString,
|
|
1917
|
+
TimeRangeFilter: (_) => de_TimeRangeFilterOutput(_, context),
|
|
1918
|
+
});
|
|
2423
1919
|
};
|
|
2424
1920
|
const de_ResamplingConfigInput = (output, context) => {
|
|
2425
|
-
return {
|
|
2426
|
-
AlgorithmName: __expectString
|
|
2427
|
-
OutputResolution:
|
|
2428
|
-
|
|
2429
|
-
: undefined,
|
|
2430
|
-
TargetBands: output.TargetBands != null ? de_StringListInput(output.TargetBands, context) : undefined,
|
|
2431
|
-
};
|
|
2432
|
-
};
|
|
2433
|
-
const de_ReverseGeocodingConfig = (output, context) => {
|
|
2434
|
-
return {
|
|
2435
|
-
XAttributeName: __expectString(output.XAttributeName),
|
|
2436
|
-
YAttributeName: __expectString(output.YAttributeName),
|
|
2437
|
-
};
|
|
2438
|
-
};
|
|
2439
|
-
const de_S3DataInput = (output, context) => {
|
|
2440
|
-
return {
|
|
2441
|
-
KmsKeyId: __expectString(output.KmsKeyId),
|
|
2442
|
-
MetadataProvider: __expectString(output.MetadataProvider),
|
|
2443
|
-
S3Uri: __expectString(output.S3Uri),
|
|
2444
|
-
};
|
|
2445
|
-
};
|
|
2446
|
-
const de_StackConfigInput = (output, context) => {
|
|
2447
|
-
return {
|
|
2448
|
-
OutputResolution: output.OutputResolution != null ? de_OutputResolutionStackInput(output.OutputResolution, context) : undefined,
|
|
2449
|
-
TargetBands: output.TargetBands != null ? de_StringListInput(output.TargetBands, context) : undefined,
|
|
2450
|
-
};
|
|
2451
|
-
};
|
|
2452
|
-
const de_StringListInput = (output, context) => {
|
|
2453
|
-
const retVal = (output || [])
|
|
2454
|
-
.filter((e) => e != null)
|
|
2455
|
-
.map((entry) => {
|
|
2456
|
-
if (entry === null) {
|
|
2457
|
-
return null;
|
|
2458
|
-
}
|
|
2459
|
-
return __expectString(entry);
|
|
1921
|
+
return take(output, {
|
|
1922
|
+
AlgorithmName: __expectString,
|
|
1923
|
+
OutputResolution: (_) => de_OutputResolutionResamplingInput(_, context),
|
|
1924
|
+
TargetBands: _json,
|
|
2460
1925
|
});
|
|
2461
|
-
return retVal;
|
|
2462
|
-
};
|
|
2463
|
-
const de_Tags = (output, context) => {
|
|
2464
|
-
return Object.entries(output).reduce((acc, [key, value]) => {
|
|
2465
|
-
if (value === null) {
|
|
2466
|
-
return acc;
|
|
2467
|
-
}
|
|
2468
|
-
acc[key] = __expectString(value);
|
|
2469
|
-
return acc;
|
|
2470
|
-
}, {});
|
|
2471
|
-
};
|
|
2472
|
-
const de_TemporalStatisticsConfigInput = (output, context) => {
|
|
2473
|
-
return {
|
|
2474
|
-
GroupBy: __expectString(output.GroupBy),
|
|
2475
|
-
Statistics: output.Statistics != null ? de_TemporalStatisticsListInput(output.Statistics, context) : undefined,
|
|
2476
|
-
TargetBands: output.TargetBands != null ? de_StringListInput(output.TargetBands, context) : undefined,
|
|
2477
|
-
};
|
|
2478
1926
|
};
|
|
2479
|
-
const
|
|
2480
|
-
|
|
2481
|
-
|
|
2482
|
-
|
|
2483
|
-
if (entry === null) {
|
|
2484
|
-
return null;
|
|
2485
|
-
}
|
|
2486
|
-
return __expectString(entry);
|
|
1927
|
+
const de_StackConfigInput = (output, context) => {
|
|
1928
|
+
return take(output, {
|
|
1929
|
+
OutputResolution: (_) => de_OutputResolutionStackInput(_, context),
|
|
1930
|
+
TargetBands: _json,
|
|
2487
1931
|
});
|
|
2488
|
-
return retVal;
|
|
2489
1932
|
};
|
|
2490
1933
|
const de_TimeRangeFilterOutput = (output, context) => {
|
|
2491
|
-
return {
|
|
2492
|
-
EndTime:
|
|
2493
|
-
StartTime:
|
|
2494
|
-
};
|
|
1934
|
+
return take(output, {
|
|
1935
|
+
EndTime: (_) => __expectNonNull(__parseRfc3339DateTimeWithOffset(_)),
|
|
1936
|
+
StartTime: (_) => __expectNonNull(__parseRfc3339DateTimeWithOffset(_)),
|
|
1937
|
+
});
|
|
2495
1938
|
};
|
|
2496
1939
|
const de_UserDefined = (output, context) => {
|
|
2497
|
-
return {
|
|
2498
|
-
Unit: __expectString
|
|
2499
|
-
Value: __limitedParseFloat32
|
|
2500
|
-
};
|
|
2501
|
-
};
|
|
2502
|
-
const de_VectorEnrichmentJobConfig = (output, context) => {
|
|
2503
|
-
if (output.MapMatchingConfig != null) {
|
|
2504
|
-
return {
|
|
2505
|
-
MapMatchingConfig: de_MapMatchingConfig(output.MapMatchingConfig, context),
|
|
2506
|
-
};
|
|
2507
|
-
}
|
|
2508
|
-
if (output.ReverseGeocodingConfig != null) {
|
|
2509
|
-
return {
|
|
2510
|
-
ReverseGeocodingConfig: de_ReverseGeocodingConfig(output.ReverseGeocodingConfig, context),
|
|
2511
|
-
};
|
|
2512
|
-
}
|
|
2513
|
-
return { $unknown: Object.entries(output)[0] };
|
|
2514
|
-
};
|
|
2515
|
-
const de_VectorEnrichmentJobDataSourceConfigInput = (output, context) => {
|
|
2516
|
-
if (output.S3Data != null) {
|
|
2517
|
-
return {
|
|
2518
|
-
S3Data: de_VectorEnrichmentJobS3Data(output.S3Data, context),
|
|
2519
|
-
};
|
|
2520
|
-
}
|
|
2521
|
-
return { $unknown: Object.entries(output)[0] };
|
|
2522
|
-
};
|
|
2523
|
-
const de_VectorEnrichmentJobErrorDetails = (output, context) => {
|
|
2524
|
-
return {
|
|
2525
|
-
ErrorMessage: __expectString(output.ErrorMessage),
|
|
2526
|
-
ErrorType: __expectString(output.ErrorType),
|
|
2527
|
-
};
|
|
2528
|
-
};
|
|
2529
|
-
const de_VectorEnrichmentJobExportErrorDetails = (output, context) => {
|
|
2530
|
-
return {
|
|
2531
|
-
Message: __expectString(output.Message),
|
|
2532
|
-
Type: __expectString(output.Type),
|
|
2533
|
-
};
|
|
2534
|
-
};
|
|
2535
|
-
const de_VectorEnrichmentJobInputConfig = (output, context) => {
|
|
2536
|
-
return {
|
|
2537
|
-
DataSourceConfig: output.DataSourceConfig != null
|
|
2538
|
-
? de_VectorEnrichmentJobDataSourceConfigInput(__expectUnion(output.DataSourceConfig), context)
|
|
2539
|
-
: undefined,
|
|
2540
|
-
DocumentType: __expectString(output.DocumentType),
|
|
2541
|
-
};
|
|
1940
|
+
return take(output, {
|
|
1941
|
+
Unit: __expectString,
|
|
1942
|
+
Value: __limitedParseFloat32,
|
|
1943
|
+
});
|
|
2542
1944
|
};
|
|
2543
1945
|
const de_VectorEnrichmentJobList = (output, context) => {
|
|
2544
1946
|
const retVal = (output || [])
|
|
2545
1947
|
.filter((e) => e != null)
|
|
2546
1948
|
.map((entry) => {
|
|
2547
|
-
if (entry === null) {
|
|
2548
|
-
return null;
|
|
2549
|
-
}
|
|
2550
1949
|
return de_ListVectorEnrichmentJobOutputConfig(entry, context);
|
|
2551
1950
|
});
|
|
2552
1951
|
return retVal;
|
|
2553
1952
|
};
|
|
2554
|
-
const de_VectorEnrichmentJobS3Data = (output, context) => {
|
|
2555
|
-
return {
|
|
2556
|
-
KmsKeyId: __expectString(output.KmsKeyId),
|
|
2557
|
-
S3Uri: __expectString(output.S3Uri),
|
|
2558
|
-
};
|
|
2559
|
-
};
|
|
2560
1953
|
const de_ViewOffNadirInput = (output, context) => {
|
|
2561
|
-
return {
|
|
2562
|
-
LowerBound: __limitedParseFloat32
|
|
2563
|
-
UpperBound: __limitedParseFloat32
|
|
2564
|
-
};
|
|
1954
|
+
return take(output, {
|
|
1955
|
+
LowerBound: __limitedParseFloat32,
|
|
1956
|
+
UpperBound: __limitedParseFloat32,
|
|
1957
|
+
});
|
|
2565
1958
|
};
|
|
2566
1959
|
const de_ViewSunAzimuthInput = (output, context) => {
|
|
2567
|
-
return {
|
|
2568
|
-
LowerBound: __limitedParseFloat32
|
|
2569
|
-
UpperBound: __limitedParseFloat32
|
|
2570
|
-
};
|
|
1960
|
+
return take(output, {
|
|
1961
|
+
LowerBound: __limitedParseFloat32,
|
|
1962
|
+
UpperBound: __limitedParseFloat32,
|
|
1963
|
+
});
|
|
2571
1964
|
};
|
|
2572
1965
|
const de_ViewSunElevationInput = (output, context) => {
|
|
2573
|
-
return {
|
|
2574
|
-
LowerBound: __limitedParseFloat32
|
|
2575
|
-
UpperBound: __limitedParseFloat32
|
|
2576
|
-
};
|
|
2577
|
-
};
|
|
2578
|
-
const de_ZonalStatisticsConfigInput = (output, context) => {
|
|
2579
|
-
return {
|
|
2580
|
-
Statistics: output.Statistics != null ? de_ZonalStatisticsListInput(output.Statistics, context) : undefined,
|
|
2581
|
-
TargetBands: output.TargetBands != null ? de_StringListInput(output.TargetBands, context) : undefined,
|
|
2582
|
-
ZoneS3Path: __expectString(output.ZoneS3Path),
|
|
2583
|
-
ZoneS3PathKmsKeyId: __expectString(output.ZoneS3PathKmsKeyId),
|
|
2584
|
-
};
|
|
2585
|
-
};
|
|
2586
|
-
const de_ZonalStatisticsListInput = (output, context) => {
|
|
2587
|
-
const retVal = (output || [])
|
|
2588
|
-
.filter((e) => e != null)
|
|
2589
|
-
.map((entry) => {
|
|
2590
|
-
if (entry === null) {
|
|
2591
|
-
return null;
|
|
2592
|
-
}
|
|
2593
|
-
return __expectString(entry);
|
|
1966
|
+
return take(output, {
|
|
1967
|
+
LowerBound: __limitedParseFloat32,
|
|
1968
|
+
UpperBound: __limitedParseFloat32,
|
|
2594
1969
|
});
|
|
2595
|
-
return retVal;
|
|
2596
1970
|
};
|
|
2597
1971
|
const deserializeMetadata = (output) => ({
|
|
2598
1972
|
httpStatusCode: output.statusCode,
|