@aws-sdk/client-sagemaker-geospatial 3.221.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/LICENSE +201 -0
- package/README.md +205 -0
- package/dist-cjs/SageMakerGeospatial.js +292 -0
- package/dist-cjs/SageMakerGeospatialClient.js +40 -0
- package/dist-cjs/commands/DeleteEarthObservationJobCommand.js +46 -0
- package/dist-cjs/commands/DeleteVectorEnrichmentJobCommand.js +46 -0
- package/dist-cjs/commands/ExportEarthObservationJobCommand.js +46 -0
- package/dist-cjs/commands/ExportVectorEnrichmentJobCommand.js +46 -0
- package/dist-cjs/commands/GetEarthObservationJobCommand.js +46 -0
- package/dist-cjs/commands/GetRasterDataCollectionCommand.js +46 -0
- package/dist-cjs/commands/GetTileCommand.js +46 -0
- package/dist-cjs/commands/GetVectorEnrichmentJobCommand.js +46 -0
- package/dist-cjs/commands/ListEarthObservationJobsCommand.js +46 -0
- package/dist-cjs/commands/ListRasterDataCollectionsCommand.js +46 -0
- package/dist-cjs/commands/ListTagsForResourceCommand.js +46 -0
- package/dist-cjs/commands/ListVectorEnrichmentJobsCommand.js +46 -0
- package/dist-cjs/commands/SearchRasterDataCollectionCommand.js +46 -0
- package/dist-cjs/commands/StartEarthObservationJobCommand.js +46 -0
- package/dist-cjs/commands/StartVectorEnrichmentJobCommand.js +46 -0
- package/dist-cjs/commands/StopEarthObservationJobCommand.js +46 -0
- package/dist-cjs/commands/StopVectorEnrichmentJobCommand.js +46 -0
- package/dist-cjs/commands/TagResourceCommand.js +46 -0
- package/dist-cjs/commands/UntagResourceCommand.js +46 -0
- package/dist-cjs/commands/index.js +22 -0
- package/dist-cjs/endpoint/EndpointParameters.js +12 -0
- package/dist-cjs/endpoint/endpointResolver.js +12 -0
- package/dist-cjs/endpoint/ruleset.js +312 -0
- package/dist-cjs/index.js +11 -0
- package/dist-cjs/models/SageMakerGeospatialServiceException.js +11 -0
- package/dist-cjs/models/index.js +4 -0
- package/dist-cjs/models/models_0.js +857 -0
- package/dist-cjs/pagination/Interfaces.js +2 -0
- package/dist-cjs/pagination/ListEarthObservationJobsPaginator.js +35 -0
- package/dist-cjs/pagination/ListRasterDataCollectionsPaginator.js +35 -0
- package/dist-cjs/pagination/ListVectorEnrichmentJobsPaginator.js +35 -0
- package/dist-cjs/pagination/SearchRasterDataCollectionPaginator.js +35 -0
- package/dist-cjs/pagination/index.js +8 -0
- package/dist-cjs/protocols/Aws_restJson1.js +2776 -0
- package/dist-cjs/runtimeConfig.browser.js +44 -0
- package/dist-cjs/runtimeConfig.js +52 -0
- package/dist-cjs/runtimeConfig.native.js +15 -0
- package/dist-cjs/runtimeConfig.shared.js +18 -0
- package/dist-es/SageMakerGeospatial.js +288 -0
- package/dist-es/SageMakerGeospatialClient.js +36 -0
- package/dist-es/commands/DeleteEarthObservationJobCommand.js +42 -0
- package/dist-es/commands/DeleteVectorEnrichmentJobCommand.js +42 -0
- package/dist-es/commands/ExportEarthObservationJobCommand.js +42 -0
- package/dist-es/commands/ExportVectorEnrichmentJobCommand.js +42 -0
- package/dist-es/commands/GetEarthObservationJobCommand.js +42 -0
- package/dist-es/commands/GetRasterDataCollectionCommand.js +42 -0
- package/dist-es/commands/GetTileCommand.js +42 -0
- package/dist-es/commands/GetVectorEnrichmentJobCommand.js +42 -0
- package/dist-es/commands/ListEarthObservationJobsCommand.js +42 -0
- package/dist-es/commands/ListRasterDataCollectionsCommand.js +42 -0
- package/dist-es/commands/ListTagsForResourceCommand.js +42 -0
- package/dist-es/commands/ListVectorEnrichmentJobsCommand.js +42 -0
- package/dist-es/commands/SearchRasterDataCollectionCommand.js +42 -0
- package/dist-es/commands/StartEarthObservationJobCommand.js +42 -0
- package/dist-es/commands/StartVectorEnrichmentJobCommand.js +42 -0
- package/dist-es/commands/StopEarthObservationJobCommand.js +42 -0
- package/dist-es/commands/StopVectorEnrichmentJobCommand.js +42 -0
- package/dist-es/commands/TagResourceCommand.js +42 -0
- package/dist-es/commands/UntagResourceCommand.js +42 -0
- package/dist-es/commands/index.js +19 -0
- package/dist-es/endpoint/EndpointParameters.js +8 -0
- package/dist-es/endpoint/endpointResolver.js +8 -0
- package/dist-es/endpoint/ruleset.js +309 -0
- package/dist-es/index.js +6 -0
- package/dist-es/models/SageMakerGeospatialServiceException.js +7 -0
- package/dist-es/models/index.js +1 -0
- package/dist-es/models/models_0.js +748 -0
- package/dist-es/pagination/Interfaces.js +1 -0
- package/dist-es/pagination/ListEarthObservationJobsPaginator.js +31 -0
- package/dist-es/pagination/ListRasterDataCollectionsPaginator.js +31 -0
- package/dist-es/pagination/ListVectorEnrichmentJobsPaginator.js +31 -0
- package/dist-es/pagination/SearchRasterDataCollectionPaginator.js +31 -0
- package/dist-es/pagination/index.js +5 -0
- package/dist-es/protocols/Aws_restJson1.js +2735 -0
- package/dist-es/runtimeConfig.browser.js +39 -0
- package/dist-es/runtimeConfig.js +47 -0
- package/dist-es/runtimeConfig.native.js +11 -0
- package/dist-es/runtimeConfig.shared.js +14 -0
- package/dist-types/SageMakerGeospatial.d.ts +140 -0
- package/dist-types/SageMakerGeospatialClient.d.ts +165 -0
- package/dist-types/commands/DeleteEarthObservationJobCommand.d.ts +37 -0
- package/dist-types/commands/DeleteVectorEnrichmentJobCommand.d.ts +37 -0
- package/dist-types/commands/ExportEarthObservationJobCommand.d.ts +37 -0
- package/dist-types/commands/ExportVectorEnrichmentJobCommand.d.ts +37 -0
- package/dist-types/commands/GetEarthObservationJobCommand.d.ts +37 -0
- package/dist-types/commands/GetRasterDataCollectionCommand.d.ts +37 -0
- package/dist-types/commands/GetTileCommand.d.ts +37 -0
- package/dist-types/commands/GetVectorEnrichmentJobCommand.d.ts +37 -0
- package/dist-types/commands/ListEarthObservationJobsCommand.d.ts +37 -0
- package/dist-types/commands/ListRasterDataCollectionsCommand.d.ts +37 -0
- package/dist-types/commands/ListTagsForResourceCommand.d.ts +37 -0
- package/dist-types/commands/ListVectorEnrichmentJobsCommand.d.ts +37 -0
- package/dist-types/commands/SearchRasterDataCollectionCommand.d.ts +37 -0
- package/dist-types/commands/StartEarthObservationJobCommand.d.ts +37 -0
- package/dist-types/commands/StartVectorEnrichmentJobCommand.d.ts +37 -0
- package/dist-types/commands/StopEarthObservationJobCommand.d.ts +37 -0
- package/dist-types/commands/StopVectorEnrichmentJobCommand.d.ts +37 -0
- package/dist-types/commands/TagResourceCommand.d.ts +37 -0
- package/dist-types/commands/UntagResourceCommand.d.ts +37 -0
- package/dist-types/commands/index.d.ts +19 -0
- package/dist-types/endpoint/EndpointParameters.d.ts +19 -0
- package/dist-types/endpoint/endpointResolver.d.ts +5 -0
- package/dist-types/endpoint/ruleset.d.ts +2 -0
- package/dist-types/index.d.ts +6 -0
- package/dist-types/models/SageMakerGeospatialServiceException.d.ts +10 -0
- package/dist-types/models/index.d.ts +1 -0
- package/dist-types/models/models_0.d.ts +2704 -0
- package/dist-types/pagination/Interfaces.d.ts +6 -0
- package/dist-types/pagination/ListEarthObservationJobsPaginator.d.ts +4 -0
- package/dist-types/pagination/ListRasterDataCollectionsPaginator.d.ts +4 -0
- package/dist-types/pagination/ListVectorEnrichmentJobsPaginator.d.ts +4 -0
- package/dist-types/pagination/SearchRasterDataCollectionPaginator.d.ts +4 -0
- package/dist-types/pagination/index.d.ts +5 -0
- package/dist-types/protocols/Aws_restJson1.d.ts +59 -0
- package/dist-types/runtimeConfig.browser.d.ts +43 -0
- package/dist-types/runtimeConfig.d.ts +43 -0
- package/dist-types/runtimeConfig.native.d.ts +42 -0
- package/dist-types/runtimeConfig.shared.d.ts +16 -0
- package/dist-types/ts3.4/SageMakerGeospatial.d.ts +327 -0
- package/dist-types/ts3.4/SageMakerGeospatialClient.d.ts +228 -0
- package/dist-types/ts3.4/commands/DeleteEarthObservationJobCommand.d.ts +41 -0
- package/dist-types/ts3.4/commands/DeleteVectorEnrichmentJobCommand.d.ts +41 -0
- package/dist-types/ts3.4/commands/ExportEarthObservationJobCommand.d.ts +41 -0
- package/dist-types/ts3.4/commands/ExportVectorEnrichmentJobCommand.d.ts +41 -0
- package/dist-types/ts3.4/commands/GetEarthObservationJobCommand.d.ts +41 -0
- package/dist-types/ts3.4/commands/GetRasterDataCollectionCommand.d.ts +41 -0
- package/dist-types/ts3.4/commands/GetTileCommand.d.ts +35 -0
- package/dist-types/ts3.4/commands/GetVectorEnrichmentJobCommand.d.ts +41 -0
- package/dist-types/ts3.4/commands/ListEarthObservationJobsCommand.d.ts +41 -0
- package/dist-types/ts3.4/commands/ListRasterDataCollectionsCommand.d.ts +41 -0
- package/dist-types/ts3.4/commands/ListTagsForResourceCommand.d.ts +38 -0
- package/dist-types/ts3.4/commands/ListVectorEnrichmentJobsCommand.d.ts +41 -0
- package/dist-types/ts3.4/commands/SearchRasterDataCollectionCommand.d.ts +41 -0
- package/dist-types/ts3.4/commands/StartEarthObservationJobCommand.d.ts +41 -0
- package/dist-types/ts3.4/commands/StartVectorEnrichmentJobCommand.d.ts +41 -0
- package/dist-types/ts3.4/commands/StopEarthObservationJobCommand.d.ts +41 -0
- package/dist-types/ts3.4/commands/StopVectorEnrichmentJobCommand.d.ts +41 -0
- package/dist-types/ts3.4/commands/TagResourceCommand.d.ts +34 -0
- package/dist-types/ts3.4/commands/UntagResourceCommand.d.ts +37 -0
- package/dist-types/ts3.4/commands/index.d.ts +19 -0
- package/dist-types/ts3.4/endpoint/EndpointParameters.d.ts +34 -0
- package/dist-types/ts3.4/endpoint/endpointResolver.d.ts +8 -0
- package/dist-types/ts3.4/endpoint/ruleset.d.ts +2 -0
- package/dist-types/ts3.4/index.d.ts +6 -0
- package/dist-types/ts3.4/models/SageMakerGeospatialServiceException.d.ts +7 -0
- package/dist-types/ts3.4/models/index.d.ts +1 -0
- package/dist-types/ts3.4/models/models_0.d.ts +1265 -0
- package/dist-types/ts3.4/pagination/Interfaces.d.ts +7 -0
- package/dist-types/ts3.4/pagination/ListEarthObservationJobsPaginator.d.ts +11 -0
- package/dist-types/ts3.4/pagination/ListRasterDataCollectionsPaginator.d.ts +11 -0
- package/dist-types/ts3.4/pagination/ListVectorEnrichmentJobsPaginator.d.ts +11 -0
- package/dist-types/ts3.4/pagination/SearchRasterDataCollectionPaginator.d.ts +11 -0
- package/dist-types/ts3.4/pagination/index.d.ts +5 -0
- package/dist-types/ts3.4/protocols/Aws_restJson1.d.ts +236 -0
- package/dist-types/ts3.4/runtimeConfig.browser.d.ts +91 -0
- package/dist-types/ts3.4/runtimeConfig.d.ts +91 -0
- package/dist-types/ts3.4/runtimeConfig.native.d.ts +80 -0
- package/dist-types/ts3.4/runtimeConfig.shared.d.ts +18 -0
- package/package.json +105 -0
|
@@ -0,0 +1,2776 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.deserializeAws_restJson1UntagResourceCommand = exports.deserializeAws_restJson1TagResourceCommand = exports.deserializeAws_restJson1StopVectorEnrichmentJobCommand = exports.deserializeAws_restJson1StopEarthObservationJobCommand = exports.deserializeAws_restJson1StartVectorEnrichmentJobCommand = exports.deserializeAws_restJson1StartEarthObservationJobCommand = exports.deserializeAws_restJson1SearchRasterDataCollectionCommand = exports.deserializeAws_restJson1ListVectorEnrichmentJobsCommand = exports.deserializeAws_restJson1ListTagsForResourceCommand = exports.deserializeAws_restJson1ListRasterDataCollectionsCommand = exports.deserializeAws_restJson1ListEarthObservationJobsCommand = exports.deserializeAws_restJson1GetVectorEnrichmentJobCommand = exports.deserializeAws_restJson1GetTileCommand = exports.deserializeAws_restJson1GetRasterDataCollectionCommand = exports.deserializeAws_restJson1GetEarthObservationJobCommand = exports.deserializeAws_restJson1ExportVectorEnrichmentJobCommand = exports.deserializeAws_restJson1ExportEarthObservationJobCommand = exports.deserializeAws_restJson1DeleteVectorEnrichmentJobCommand = exports.deserializeAws_restJson1DeleteEarthObservationJobCommand = exports.serializeAws_restJson1UntagResourceCommand = exports.serializeAws_restJson1TagResourceCommand = exports.serializeAws_restJson1StopVectorEnrichmentJobCommand = exports.serializeAws_restJson1StopEarthObservationJobCommand = exports.serializeAws_restJson1StartVectorEnrichmentJobCommand = exports.serializeAws_restJson1StartEarthObservationJobCommand = exports.serializeAws_restJson1SearchRasterDataCollectionCommand = exports.serializeAws_restJson1ListVectorEnrichmentJobsCommand = exports.serializeAws_restJson1ListTagsForResourceCommand = exports.serializeAws_restJson1ListRasterDataCollectionsCommand = exports.serializeAws_restJson1ListEarthObservationJobsCommand = exports.serializeAws_restJson1GetVectorEnrichmentJobCommand = exports.serializeAws_restJson1GetTileCommand = exports.serializeAws_restJson1GetRasterDataCollectionCommand = exports.serializeAws_restJson1GetEarthObservationJobCommand = exports.serializeAws_restJson1ExportVectorEnrichmentJobCommand = exports.serializeAws_restJson1ExportEarthObservationJobCommand = exports.serializeAws_restJson1DeleteVectorEnrichmentJobCommand = exports.serializeAws_restJson1DeleteEarthObservationJobCommand = void 0;
|
|
4
|
+
const protocol_http_1 = require("@aws-sdk/protocol-http");
|
|
5
|
+
const smithy_client_1 = require("@aws-sdk/smithy-client");
|
|
6
|
+
const uuid_1 = require("uuid");
|
|
7
|
+
const models_0_1 = require("../models/models_0");
|
|
8
|
+
const SageMakerGeospatialServiceException_1 = require("../models/SageMakerGeospatialServiceException");
|
|
9
|
+
const serializeAws_restJson1DeleteEarthObservationJobCommand = async (input, context) => {
|
|
10
|
+
const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
|
|
11
|
+
const headers = {};
|
|
12
|
+
let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/earth-observation-jobs/{Arn}";
|
|
13
|
+
resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "Arn", () => input.Arn, "{Arn}", false);
|
|
14
|
+
let body;
|
|
15
|
+
return new protocol_http_1.HttpRequest({
|
|
16
|
+
protocol,
|
|
17
|
+
hostname,
|
|
18
|
+
port,
|
|
19
|
+
method: "DELETE",
|
|
20
|
+
headers,
|
|
21
|
+
path: resolvedPath,
|
|
22
|
+
body,
|
|
23
|
+
});
|
|
24
|
+
};
|
|
25
|
+
exports.serializeAws_restJson1DeleteEarthObservationJobCommand = serializeAws_restJson1DeleteEarthObservationJobCommand;
|
|
26
|
+
const serializeAws_restJson1DeleteVectorEnrichmentJobCommand = async (input, context) => {
|
|
27
|
+
const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
|
|
28
|
+
const headers = {};
|
|
29
|
+
let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/vector-enrichment-jobs/{Arn}";
|
|
30
|
+
resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "Arn", () => input.Arn, "{Arn}", false);
|
|
31
|
+
let body;
|
|
32
|
+
return new protocol_http_1.HttpRequest({
|
|
33
|
+
protocol,
|
|
34
|
+
hostname,
|
|
35
|
+
port,
|
|
36
|
+
method: "DELETE",
|
|
37
|
+
headers,
|
|
38
|
+
path: resolvedPath,
|
|
39
|
+
body,
|
|
40
|
+
});
|
|
41
|
+
};
|
|
42
|
+
exports.serializeAws_restJson1DeleteVectorEnrichmentJobCommand = serializeAws_restJson1DeleteVectorEnrichmentJobCommand;
|
|
43
|
+
const serializeAws_restJson1ExportEarthObservationJobCommand = async (input, context) => {
|
|
44
|
+
const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
|
|
45
|
+
const headers = {
|
|
46
|
+
"content-type": "application/json",
|
|
47
|
+
};
|
|
48
|
+
const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/export-earth-observation-job";
|
|
49
|
+
let body;
|
|
50
|
+
body = JSON.stringify({
|
|
51
|
+
...(input.Arn != null && { Arn: input.Arn }),
|
|
52
|
+
...(input.ExecutionRoleArn != null && { ExecutionRoleArn: input.ExecutionRoleArn }),
|
|
53
|
+
...(input.ExportSourceImages != null && { ExportSourceImages: input.ExportSourceImages }),
|
|
54
|
+
...(input.OutputConfig != null && {
|
|
55
|
+
OutputConfig: serializeAws_restJson1OutputConfigInput(input.OutputConfig, context),
|
|
56
|
+
}),
|
|
57
|
+
});
|
|
58
|
+
return new protocol_http_1.HttpRequest({
|
|
59
|
+
protocol,
|
|
60
|
+
hostname,
|
|
61
|
+
port,
|
|
62
|
+
method: "POST",
|
|
63
|
+
headers,
|
|
64
|
+
path: resolvedPath,
|
|
65
|
+
body,
|
|
66
|
+
});
|
|
67
|
+
};
|
|
68
|
+
exports.serializeAws_restJson1ExportEarthObservationJobCommand = serializeAws_restJson1ExportEarthObservationJobCommand;
|
|
69
|
+
const serializeAws_restJson1ExportVectorEnrichmentJobCommand = async (input, context) => {
|
|
70
|
+
const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
|
|
71
|
+
const headers = {
|
|
72
|
+
"content-type": "application/json",
|
|
73
|
+
};
|
|
74
|
+
const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/export-vector-enrichment-jobs";
|
|
75
|
+
let body;
|
|
76
|
+
body = JSON.stringify({
|
|
77
|
+
...(input.Arn != null && { Arn: input.Arn }),
|
|
78
|
+
...(input.ExecutionRoleArn != null && { ExecutionRoleArn: input.ExecutionRoleArn }),
|
|
79
|
+
...(input.OutputConfig != null && {
|
|
80
|
+
OutputConfig: serializeAws_restJson1ExportVectorEnrichmentJobOutputConfig(input.OutputConfig, context),
|
|
81
|
+
}),
|
|
82
|
+
});
|
|
83
|
+
return new protocol_http_1.HttpRequest({
|
|
84
|
+
protocol,
|
|
85
|
+
hostname,
|
|
86
|
+
port,
|
|
87
|
+
method: "POST",
|
|
88
|
+
headers,
|
|
89
|
+
path: resolvedPath,
|
|
90
|
+
body,
|
|
91
|
+
});
|
|
92
|
+
};
|
|
93
|
+
exports.serializeAws_restJson1ExportVectorEnrichmentJobCommand = serializeAws_restJson1ExportVectorEnrichmentJobCommand;
|
|
94
|
+
const serializeAws_restJson1GetEarthObservationJobCommand = async (input, context) => {
|
|
95
|
+
const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
|
|
96
|
+
const headers = {};
|
|
97
|
+
let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/earth-observation-jobs/{Arn}";
|
|
98
|
+
resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "Arn", () => input.Arn, "{Arn}", false);
|
|
99
|
+
let body;
|
|
100
|
+
return new protocol_http_1.HttpRequest({
|
|
101
|
+
protocol,
|
|
102
|
+
hostname,
|
|
103
|
+
port,
|
|
104
|
+
method: "GET",
|
|
105
|
+
headers,
|
|
106
|
+
path: resolvedPath,
|
|
107
|
+
body,
|
|
108
|
+
});
|
|
109
|
+
};
|
|
110
|
+
exports.serializeAws_restJson1GetEarthObservationJobCommand = serializeAws_restJson1GetEarthObservationJobCommand;
|
|
111
|
+
const serializeAws_restJson1GetRasterDataCollectionCommand = async (input, context) => {
|
|
112
|
+
const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
|
|
113
|
+
const headers = {};
|
|
114
|
+
let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/raster-data-collection/{Arn}";
|
|
115
|
+
resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "Arn", () => input.Arn, "{Arn}", false);
|
|
116
|
+
let body;
|
|
117
|
+
return new protocol_http_1.HttpRequest({
|
|
118
|
+
protocol,
|
|
119
|
+
hostname,
|
|
120
|
+
port,
|
|
121
|
+
method: "GET",
|
|
122
|
+
headers,
|
|
123
|
+
path: resolvedPath,
|
|
124
|
+
body,
|
|
125
|
+
});
|
|
126
|
+
};
|
|
127
|
+
exports.serializeAws_restJson1GetRasterDataCollectionCommand = serializeAws_restJson1GetRasterDataCollectionCommand;
|
|
128
|
+
const serializeAws_restJson1GetTileCommand = async (input, context) => {
|
|
129
|
+
const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
|
|
130
|
+
const headers = {};
|
|
131
|
+
let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/tile/{z}/{x}/{y}";
|
|
132
|
+
resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "x", () => input.x.toString(), "{x}", false);
|
|
133
|
+
resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "y", () => input.y.toString(), "{y}", false);
|
|
134
|
+
resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "z", () => input.z.toString(), "{z}", false);
|
|
135
|
+
const query = map({
|
|
136
|
+
ImageAssets: [
|
|
137
|
+
(0, smithy_client_1.expectNonNull)(input.ImageAssets, `ImageAssets`) != null,
|
|
138
|
+
() => (input.ImageAssets || []).map((_entry) => _entry),
|
|
139
|
+
],
|
|
140
|
+
Target: [, (0, smithy_client_1.expectNonNull)(input.Target, `Target`)],
|
|
141
|
+
Arn: [, (0, smithy_client_1.expectNonNull)(input.Arn, `Arn`)],
|
|
142
|
+
ImageMask: [() => input.ImageMask !== void 0, () => input.ImageMask.toString()],
|
|
143
|
+
OutputFormat: [, input.OutputFormat],
|
|
144
|
+
TimeRangeFilter: [, input.TimeRangeFilter],
|
|
145
|
+
PropertyFilters: [, input.PropertyFilters],
|
|
146
|
+
OutputDataType: [, input.OutputDataType],
|
|
147
|
+
});
|
|
148
|
+
let body;
|
|
149
|
+
return new protocol_http_1.HttpRequest({
|
|
150
|
+
protocol,
|
|
151
|
+
hostname,
|
|
152
|
+
port,
|
|
153
|
+
method: "GET",
|
|
154
|
+
headers,
|
|
155
|
+
path: resolvedPath,
|
|
156
|
+
query,
|
|
157
|
+
body,
|
|
158
|
+
});
|
|
159
|
+
};
|
|
160
|
+
exports.serializeAws_restJson1GetTileCommand = serializeAws_restJson1GetTileCommand;
|
|
161
|
+
const serializeAws_restJson1GetVectorEnrichmentJobCommand = async (input, context) => {
|
|
162
|
+
const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
|
|
163
|
+
const headers = {};
|
|
164
|
+
let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/vector-enrichment-jobs/{Arn}";
|
|
165
|
+
resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "Arn", () => input.Arn, "{Arn}", false);
|
|
166
|
+
let body;
|
|
167
|
+
return new protocol_http_1.HttpRequest({
|
|
168
|
+
protocol,
|
|
169
|
+
hostname,
|
|
170
|
+
port,
|
|
171
|
+
method: "GET",
|
|
172
|
+
headers,
|
|
173
|
+
path: resolvedPath,
|
|
174
|
+
body,
|
|
175
|
+
});
|
|
176
|
+
};
|
|
177
|
+
exports.serializeAws_restJson1GetVectorEnrichmentJobCommand = serializeAws_restJson1GetVectorEnrichmentJobCommand;
|
|
178
|
+
const serializeAws_restJson1ListEarthObservationJobsCommand = async (input, context) => {
|
|
179
|
+
const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
|
|
180
|
+
const headers = {
|
|
181
|
+
"content-type": "application/json",
|
|
182
|
+
};
|
|
183
|
+
const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/list-earth-observation-jobs";
|
|
184
|
+
let body;
|
|
185
|
+
body = JSON.stringify({
|
|
186
|
+
...(input.MaxResults != null && { MaxResults: input.MaxResults }),
|
|
187
|
+
...(input.NextToken != null && { NextToken: input.NextToken }),
|
|
188
|
+
...(input.SortBy != null && { SortBy: input.SortBy }),
|
|
189
|
+
...(input.SortOrder != null && { SortOrder: input.SortOrder }),
|
|
190
|
+
...(input.StatusEquals != null && { StatusEquals: input.StatusEquals }),
|
|
191
|
+
});
|
|
192
|
+
return new protocol_http_1.HttpRequest({
|
|
193
|
+
protocol,
|
|
194
|
+
hostname,
|
|
195
|
+
port,
|
|
196
|
+
method: "POST",
|
|
197
|
+
headers,
|
|
198
|
+
path: resolvedPath,
|
|
199
|
+
body,
|
|
200
|
+
});
|
|
201
|
+
};
|
|
202
|
+
exports.serializeAws_restJson1ListEarthObservationJobsCommand = serializeAws_restJson1ListEarthObservationJobsCommand;
|
|
203
|
+
const serializeAws_restJson1ListRasterDataCollectionsCommand = async (input, context) => {
|
|
204
|
+
const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
|
|
205
|
+
const headers = {};
|
|
206
|
+
const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/raster-data-collections";
|
|
207
|
+
const query = map({
|
|
208
|
+
NextToken: [, input.NextToken],
|
|
209
|
+
MaxResults: [() => input.MaxResults !== void 0, () => input.MaxResults.toString()],
|
|
210
|
+
});
|
|
211
|
+
let body;
|
|
212
|
+
return new protocol_http_1.HttpRequest({
|
|
213
|
+
protocol,
|
|
214
|
+
hostname,
|
|
215
|
+
port,
|
|
216
|
+
method: "GET",
|
|
217
|
+
headers,
|
|
218
|
+
path: resolvedPath,
|
|
219
|
+
query,
|
|
220
|
+
body,
|
|
221
|
+
});
|
|
222
|
+
};
|
|
223
|
+
exports.serializeAws_restJson1ListRasterDataCollectionsCommand = serializeAws_restJson1ListRasterDataCollectionsCommand;
|
|
224
|
+
const serializeAws_restJson1ListTagsForResourceCommand = async (input, context) => {
|
|
225
|
+
const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
|
|
226
|
+
const headers = {};
|
|
227
|
+
let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/tags/{ResourceArn}";
|
|
228
|
+
resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "ResourceArn", () => input.ResourceArn, "{ResourceArn}", false);
|
|
229
|
+
let body;
|
|
230
|
+
return new protocol_http_1.HttpRequest({
|
|
231
|
+
protocol,
|
|
232
|
+
hostname,
|
|
233
|
+
port,
|
|
234
|
+
method: "GET",
|
|
235
|
+
headers,
|
|
236
|
+
path: resolvedPath,
|
|
237
|
+
body,
|
|
238
|
+
});
|
|
239
|
+
};
|
|
240
|
+
exports.serializeAws_restJson1ListTagsForResourceCommand = serializeAws_restJson1ListTagsForResourceCommand;
|
|
241
|
+
const serializeAws_restJson1ListVectorEnrichmentJobsCommand = async (input, context) => {
|
|
242
|
+
const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
|
|
243
|
+
const headers = {
|
|
244
|
+
"content-type": "application/json",
|
|
245
|
+
};
|
|
246
|
+
const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/list-vector-enrichment-jobs";
|
|
247
|
+
let body;
|
|
248
|
+
body = JSON.stringify({
|
|
249
|
+
...(input.MaxResults != null && { MaxResults: input.MaxResults }),
|
|
250
|
+
...(input.NextToken != null && { NextToken: input.NextToken }),
|
|
251
|
+
...(input.SortBy != null && { SortBy: input.SortBy }),
|
|
252
|
+
...(input.SortOrder != null && { SortOrder: input.SortOrder }),
|
|
253
|
+
...(input.StatusEquals != null && { StatusEquals: input.StatusEquals }),
|
|
254
|
+
});
|
|
255
|
+
return new protocol_http_1.HttpRequest({
|
|
256
|
+
protocol,
|
|
257
|
+
hostname,
|
|
258
|
+
port,
|
|
259
|
+
method: "POST",
|
|
260
|
+
headers,
|
|
261
|
+
path: resolvedPath,
|
|
262
|
+
body,
|
|
263
|
+
});
|
|
264
|
+
};
|
|
265
|
+
exports.serializeAws_restJson1ListVectorEnrichmentJobsCommand = serializeAws_restJson1ListVectorEnrichmentJobsCommand;
|
|
266
|
+
const serializeAws_restJson1SearchRasterDataCollectionCommand = async (input, context) => {
|
|
267
|
+
const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
|
|
268
|
+
const headers = {
|
|
269
|
+
"content-type": "application/json",
|
|
270
|
+
};
|
|
271
|
+
const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/search-raster-data-collection";
|
|
272
|
+
let body;
|
|
273
|
+
body = JSON.stringify({
|
|
274
|
+
...(input.Arn != null && { Arn: input.Arn }),
|
|
275
|
+
...(input.NextToken != null && { NextToken: input.NextToken }),
|
|
276
|
+
...(input.RasterDataCollectionQuery != null && {
|
|
277
|
+
RasterDataCollectionQuery: serializeAws_restJson1RasterDataCollectionQueryWithBandFilterInput(input.RasterDataCollectionQuery, context),
|
|
278
|
+
}),
|
|
279
|
+
});
|
|
280
|
+
return new protocol_http_1.HttpRequest({
|
|
281
|
+
protocol,
|
|
282
|
+
hostname,
|
|
283
|
+
port,
|
|
284
|
+
method: "POST",
|
|
285
|
+
headers,
|
|
286
|
+
path: resolvedPath,
|
|
287
|
+
body,
|
|
288
|
+
});
|
|
289
|
+
};
|
|
290
|
+
exports.serializeAws_restJson1SearchRasterDataCollectionCommand = serializeAws_restJson1SearchRasterDataCollectionCommand;
|
|
291
|
+
const serializeAws_restJson1StartEarthObservationJobCommand = async (input, context) => {
|
|
292
|
+
const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
|
|
293
|
+
const headers = {
|
|
294
|
+
"content-type": "application/json",
|
|
295
|
+
};
|
|
296
|
+
const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/earth-observation-jobs";
|
|
297
|
+
let body;
|
|
298
|
+
body = JSON.stringify({
|
|
299
|
+
ClientToken: input.ClientToken ?? (0, uuid_1.v4)(),
|
|
300
|
+
...(input.ExecutionRoleArn != null && { ExecutionRoleArn: input.ExecutionRoleArn }),
|
|
301
|
+
...(input.InputConfig != null && {
|
|
302
|
+
InputConfig: serializeAws_restJson1InputConfigInput(input.InputConfig, context),
|
|
303
|
+
}),
|
|
304
|
+
...(input.JobConfig != null && { JobConfig: serializeAws_restJson1JobConfigInput(input.JobConfig, context) }),
|
|
305
|
+
...(input.KmsKeyId != null && { KmsKeyId: input.KmsKeyId }),
|
|
306
|
+
...(input.Name != null && { Name: input.Name }),
|
|
307
|
+
...(input.Tags != null && { Tags: serializeAws_restJson1Tags(input.Tags, context) }),
|
|
308
|
+
});
|
|
309
|
+
return new protocol_http_1.HttpRequest({
|
|
310
|
+
protocol,
|
|
311
|
+
hostname,
|
|
312
|
+
port,
|
|
313
|
+
method: "POST",
|
|
314
|
+
headers,
|
|
315
|
+
path: resolvedPath,
|
|
316
|
+
body,
|
|
317
|
+
});
|
|
318
|
+
};
|
|
319
|
+
exports.serializeAws_restJson1StartEarthObservationJobCommand = serializeAws_restJson1StartEarthObservationJobCommand;
|
|
320
|
+
const serializeAws_restJson1StartVectorEnrichmentJobCommand = async (input, context) => {
|
|
321
|
+
const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
|
|
322
|
+
const headers = {
|
|
323
|
+
"content-type": "application/json",
|
|
324
|
+
};
|
|
325
|
+
const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/vector-enrichment-jobs";
|
|
326
|
+
let body;
|
|
327
|
+
body = JSON.stringify({
|
|
328
|
+
ClientToken: input.ClientToken ?? (0, uuid_1.v4)(),
|
|
329
|
+
...(input.ExecutionRoleArn != null && { ExecutionRoleArn: input.ExecutionRoleArn }),
|
|
330
|
+
...(input.InputConfig != null && {
|
|
331
|
+
InputConfig: serializeAws_restJson1VectorEnrichmentJobInputConfig(input.InputConfig, context),
|
|
332
|
+
}),
|
|
333
|
+
...(input.JobConfig != null && {
|
|
334
|
+
JobConfig: serializeAws_restJson1VectorEnrichmentJobConfig(input.JobConfig, context),
|
|
335
|
+
}),
|
|
336
|
+
...(input.KmsKeyId != null && { KmsKeyId: input.KmsKeyId }),
|
|
337
|
+
...(input.Name != null && { Name: input.Name }),
|
|
338
|
+
...(input.Tags != null && { Tags: serializeAws_restJson1Tags(input.Tags, context) }),
|
|
339
|
+
});
|
|
340
|
+
return new protocol_http_1.HttpRequest({
|
|
341
|
+
protocol,
|
|
342
|
+
hostname,
|
|
343
|
+
port,
|
|
344
|
+
method: "POST",
|
|
345
|
+
headers,
|
|
346
|
+
path: resolvedPath,
|
|
347
|
+
body,
|
|
348
|
+
});
|
|
349
|
+
};
|
|
350
|
+
exports.serializeAws_restJson1StartVectorEnrichmentJobCommand = serializeAws_restJson1StartVectorEnrichmentJobCommand;
|
|
351
|
+
const serializeAws_restJson1StopEarthObservationJobCommand = async (input, context) => {
|
|
352
|
+
const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
|
|
353
|
+
const headers = {
|
|
354
|
+
"content-type": "application/json",
|
|
355
|
+
};
|
|
356
|
+
const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/earth-observation-jobs/stop";
|
|
357
|
+
let body;
|
|
358
|
+
body = JSON.stringify({
|
|
359
|
+
...(input.Arn != null && { Arn: input.Arn }),
|
|
360
|
+
});
|
|
361
|
+
return new protocol_http_1.HttpRequest({
|
|
362
|
+
protocol,
|
|
363
|
+
hostname,
|
|
364
|
+
port,
|
|
365
|
+
method: "POST",
|
|
366
|
+
headers,
|
|
367
|
+
path: resolvedPath,
|
|
368
|
+
body,
|
|
369
|
+
});
|
|
370
|
+
};
|
|
371
|
+
exports.serializeAws_restJson1StopEarthObservationJobCommand = serializeAws_restJson1StopEarthObservationJobCommand;
|
|
372
|
+
const serializeAws_restJson1StopVectorEnrichmentJobCommand = async (input, context) => {
|
|
373
|
+
const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
|
|
374
|
+
const headers = {
|
|
375
|
+
"content-type": "application/json",
|
|
376
|
+
};
|
|
377
|
+
const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/vector-enrichment-jobs/stop";
|
|
378
|
+
let body;
|
|
379
|
+
body = JSON.stringify({
|
|
380
|
+
...(input.Arn != null && { Arn: input.Arn }),
|
|
381
|
+
});
|
|
382
|
+
return new protocol_http_1.HttpRequest({
|
|
383
|
+
protocol,
|
|
384
|
+
hostname,
|
|
385
|
+
port,
|
|
386
|
+
method: "POST",
|
|
387
|
+
headers,
|
|
388
|
+
path: resolvedPath,
|
|
389
|
+
body,
|
|
390
|
+
});
|
|
391
|
+
};
|
|
392
|
+
exports.serializeAws_restJson1StopVectorEnrichmentJobCommand = serializeAws_restJson1StopVectorEnrichmentJobCommand;
|
|
393
|
+
const serializeAws_restJson1TagResourceCommand = async (input, context) => {
|
|
394
|
+
const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
|
|
395
|
+
const headers = {
|
|
396
|
+
"content-type": "application/json",
|
|
397
|
+
};
|
|
398
|
+
let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/tags/{ResourceArn}";
|
|
399
|
+
resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "ResourceArn", () => input.ResourceArn, "{ResourceArn}", false);
|
|
400
|
+
let body;
|
|
401
|
+
body = JSON.stringify({
|
|
402
|
+
...(input.Tags != null && { Tags: serializeAws_restJson1Tags(input.Tags, context) }),
|
|
403
|
+
});
|
|
404
|
+
return new protocol_http_1.HttpRequest({
|
|
405
|
+
protocol,
|
|
406
|
+
hostname,
|
|
407
|
+
port,
|
|
408
|
+
method: "PUT",
|
|
409
|
+
headers,
|
|
410
|
+
path: resolvedPath,
|
|
411
|
+
body,
|
|
412
|
+
});
|
|
413
|
+
};
|
|
414
|
+
exports.serializeAws_restJson1TagResourceCommand = serializeAws_restJson1TagResourceCommand;
|
|
415
|
+
const serializeAws_restJson1UntagResourceCommand = async (input, context) => {
|
|
416
|
+
const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
|
|
417
|
+
const headers = {};
|
|
418
|
+
let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/tags/{ResourceArn}";
|
|
419
|
+
resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "ResourceArn", () => input.ResourceArn, "{ResourceArn}", false);
|
|
420
|
+
const query = map({
|
|
421
|
+
tagKeys: [
|
|
422
|
+
(0, smithy_client_1.expectNonNull)(input.TagKeys, `TagKeys`) != null,
|
|
423
|
+
() => (input.TagKeys || []).map((_entry) => _entry),
|
|
424
|
+
],
|
|
425
|
+
});
|
|
426
|
+
let body;
|
|
427
|
+
return new protocol_http_1.HttpRequest({
|
|
428
|
+
protocol,
|
|
429
|
+
hostname,
|
|
430
|
+
port,
|
|
431
|
+
method: "DELETE",
|
|
432
|
+
headers,
|
|
433
|
+
path: resolvedPath,
|
|
434
|
+
query,
|
|
435
|
+
body,
|
|
436
|
+
});
|
|
437
|
+
};
|
|
438
|
+
exports.serializeAws_restJson1UntagResourceCommand = serializeAws_restJson1UntagResourceCommand;
|
|
439
|
+
const deserializeAws_restJson1DeleteEarthObservationJobCommand = async (output, context) => {
|
|
440
|
+
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
441
|
+
return deserializeAws_restJson1DeleteEarthObservationJobCommandError(output, context);
|
|
442
|
+
}
|
|
443
|
+
const contents = map({
|
|
444
|
+
$metadata: deserializeMetadata(output),
|
|
445
|
+
});
|
|
446
|
+
await collectBody(output.body, context);
|
|
447
|
+
return contents;
|
|
448
|
+
};
|
|
449
|
+
exports.deserializeAws_restJson1DeleteEarthObservationJobCommand = deserializeAws_restJson1DeleteEarthObservationJobCommand;
|
|
450
|
+
const deserializeAws_restJson1DeleteEarthObservationJobCommandError = async (output, context) => {
|
|
451
|
+
const parsedOutput = {
|
|
452
|
+
...output,
|
|
453
|
+
body: await parseErrorBody(output.body, context),
|
|
454
|
+
};
|
|
455
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
456
|
+
switch (errorCode) {
|
|
457
|
+
case "AccessDeniedException":
|
|
458
|
+
case "com.amazonaws.sagemakergeospatial#AccessDeniedException":
|
|
459
|
+
throw await deserializeAws_restJson1AccessDeniedExceptionResponse(parsedOutput, context);
|
|
460
|
+
case "ConflictException":
|
|
461
|
+
case "com.amazonaws.sagemakergeospatial#ConflictException":
|
|
462
|
+
throw await deserializeAws_restJson1ConflictExceptionResponse(parsedOutput, context);
|
|
463
|
+
case "InternalServerException":
|
|
464
|
+
case "com.amazonaws.sagemakergeospatial#InternalServerException":
|
|
465
|
+
throw await deserializeAws_restJson1InternalServerExceptionResponse(parsedOutput, context);
|
|
466
|
+
case "ResourceNotFoundException":
|
|
467
|
+
case "com.amazonaws.sagemakergeospatial#ResourceNotFoundException":
|
|
468
|
+
throw await deserializeAws_restJson1ResourceNotFoundExceptionResponse(parsedOutput, context);
|
|
469
|
+
case "ThrottlingException":
|
|
470
|
+
case "com.amazonaws.sagemakergeospatial#ThrottlingException":
|
|
471
|
+
throw await deserializeAws_restJson1ThrottlingExceptionResponse(parsedOutput, context);
|
|
472
|
+
case "ValidationException":
|
|
473
|
+
case "com.amazonaws.sagemakergeospatial#ValidationException":
|
|
474
|
+
throw await deserializeAws_restJson1ValidationExceptionResponse(parsedOutput, context);
|
|
475
|
+
default:
|
|
476
|
+
const parsedBody = parsedOutput.body;
|
|
477
|
+
(0, smithy_client_1.throwDefaultError)({
|
|
478
|
+
output,
|
|
479
|
+
parsedBody,
|
|
480
|
+
exceptionCtor: SageMakerGeospatialServiceException_1.SageMakerGeospatialServiceException,
|
|
481
|
+
errorCode,
|
|
482
|
+
});
|
|
483
|
+
}
|
|
484
|
+
};
|
|
485
|
+
const deserializeAws_restJson1DeleteVectorEnrichmentJobCommand = async (output, context) => {
|
|
486
|
+
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
487
|
+
return deserializeAws_restJson1DeleteVectorEnrichmentJobCommandError(output, context);
|
|
488
|
+
}
|
|
489
|
+
const contents = map({
|
|
490
|
+
$metadata: deserializeMetadata(output),
|
|
491
|
+
});
|
|
492
|
+
await collectBody(output.body, context);
|
|
493
|
+
return contents;
|
|
494
|
+
};
|
|
495
|
+
exports.deserializeAws_restJson1DeleteVectorEnrichmentJobCommand = deserializeAws_restJson1DeleteVectorEnrichmentJobCommand;
|
|
496
|
+
const deserializeAws_restJson1DeleteVectorEnrichmentJobCommandError = async (output, context) => {
|
|
497
|
+
const parsedOutput = {
|
|
498
|
+
...output,
|
|
499
|
+
body: await parseErrorBody(output.body, context),
|
|
500
|
+
};
|
|
501
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
502
|
+
switch (errorCode) {
|
|
503
|
+
case "AccessDeniedException":
|
|
504
|
+
case "com.amazonaws.sagemakergeospatial#AccessDeniedException":
|
|
505
|
+
throw await deserializeAws_restJson1AccessDeniedExceptionResponse(parsedOutput, context);
|
|
506
|
+
case "ConflictException":
|
|
507
|
+
case "com.amazonaws.sagemakergeospatial#ConflictException":
|
|
508
|
+
throw await deserializeAws_restJson1ConflictExceptionResponse(parsedOutput, context);
|
|
509
|
+
case "InternalServerException":
|
|
510
|
+
case "com.amazonaws.sagemakergeospatial#InternalServerException":
|
|
511
|
+
throw await deserializeAws_restJson1InternalServerExceptionResponse(parsedOutput, context);
|
|
512
|
+
case "ResourceNotFoundException":
|
|
513
|
+
case "com.amazonaws.sagemakergeospatial#ResourceNotFoundException":
|
|
514
|
+
throw await deserializeAws_restJson1ResourceNotFoundExceptionResponse(parsedOutput, context);
|
|
515
|
+
case "ThrottlingException":
|
|
516
|
+
case "com.amazonaws.sagemakergeospatial#ThrottlingException":
|
|
517
|
+
throw await deserializeAws_restJson1ThrottlingExceptionResponse(parsedOutput, context);
|
|
518
|
+
case "ValidationException":
|
|
519
|
+
case "com.amazonaws.sagemakergeospatial#ValidationException":
|
|
520
|
+
throw await deserializeAws_restJson1ValidationExceptionResponse(parsedOutput, context);
|
|
521
|
+
default:
|
|
522
|
+
const parsedBody = parsedOutput.body;
|
|
523
|
+
(0, smithy_client_1.throwDefaultError)({
|
|
524
|
+
output,
|
|
525
|
+
parsedBody,
|
|
526
|
+
exceptionCtor: SageMakerGeospatialServiceException_1.SageMakerGeospatialServiceException,
|
|
527
|
+
errorCode,
|
|
528
|
+
});
|
|
529
|
+
}
|
|
530
|
+
};
|
|
531
|
+
const deserializeAws_restJson1ExportEarthObservationJobCommand = async (output, context) => {
|
|
532
|
+
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
533
|
+
return deserializeAws_restJson1ExportEarthObservationJobCommandError(output, context);
|
|
534
|
+
}
|
|
535
|
+
const contents = map({
|
|
536
|
+
$metadata: deserializeMetadata(output),
|
|
537
|
+
});
|
|
538
|
+
const data = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.expectObject)(await parseBody(output.body, context)), "body");
|
|
539
|
+
if (data.Arn != null) {
|
|
540
|
+
contents.Arn = (0, smithy_client_1.expectString)(data.Arn);
|
|
541
|
+
}
|
|
542
|
+
if (data.CreationTime != null) {
|
|
543
|
+
contents.CreationTime = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(data.CreationTime)));
|
|
544
|
+
}
|
|
545
|
+
if (data.ExecutionRoleArn != null) {
|
|
546
|
+
contents.ExecutionRoleArn = (0, smithy_client_1.expectString)(data.ExecutionRoleArn);
|
|
547
|
+
}
|
|
548
|
+
if (data.ExportSourceImages != null) {
|
|
549
|
+
contents.ExportSourceImages = (0, smithy_client_1.expectBoolean)(data.ExportSourceImages);
|
|
550
|
+
}
|
|
551
|
+
if (data.ExportStatus != null) {
|
|
552
|
+
contents.ExportStatus = (0, smithy_client_1.expectString)(data.ExportStatus);
|
|
553
|
+
}
|
|
554
|
+
if (data.OutputConfig != null) {
|
|
555
|
+
contents.OutputConfig = deserializeAws_restJson1OutputConfigInput(data.OutputConfig, context);
|
|
556
|
+
}
|
|
557
|
+
return contents;
|
|
558
|
+
};
|
|
559
|
+
exports.deserializeAws_restJson1ExportEarthObservationJobCommand = deserializeAws_restJson1ExportEarthObservationJobCommand;
|
|
560
|
+
const deserializeAws_restJson1ExportEarthObservationJobCommandError = async (output, context) => {
|
|
561
|
+
const parsedOutput = {
|
|
562
|
+
...output,
|
|
563
|
+
body: await parseErrorBody(output.body, context),
|
|
564
|
+
};
|
|
565
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
566
|
+
switch (errorCode) {
|
|
567
|
+
case "AccessDeniedException":
|
|
568
|
+
case "com.amazonaws.sagemakergeospatial#AccessDeniedException":
|
|
569
|
+
throw await deserializeAws_restJson1AccessDeniedExceptionResponse(parsedOutput, context);
|
|
570
|
+
case "ConflictException":
|
|
571
|
+
case "com.amazonaws.sagemakergeospatial#ConflictException":
|
|
572
|
+
throw await deserializeAws_restJson1ConflictExceptionResponse(parsedOutput, context);
|
|
573
|
+
case "InternalServerException":
|
|
574
|
+
case "com.amazonaws.sagemakergeospatial#InternalServerException":
|
|
575
|
+
throw await deserializeAws_restJson1InternalServerExceptionResponse(parsedOutput, context);
|
|
576
|
+
case "ResourceNotFoundException":
|
|
577
|
+
case "com.amazonaws.sagemakergeospatial#ResourceNotFoundException":
|
|
578
|
+
throw await deserializeAws_restJson1ResourceNotFoundExceptionResponse(parsedOutput, context);
|
|
579
|
+
case "ServiceQuotaExceededException":
|
|
580
|
+
case "com.amazonaws.sagemakergeospatial#ServiceQuotaExceededException":
|
|
581
|
+
throw await deserializeAws_restJson1ServiceQuotaExceededExceptionResponse(parsedOutput, context);
|
|
582
|
+
case "ThrottlingException":
|
|
583
|
+
case "com.amazonaws.sagemakergeospatial#ThrottlingException":
|
|
584
|
+
throw await deserializeAws_restJson1ThrottlingExceptionResponse(parsedOutput, context);
|
|
585
|
+
case "ValidationException":
|
|
586
|
+
case "com.amazonaws.sagemakergeospatial#ValidationException":
|
|
587
|
+
throw await deserializeAws_restJson1ValidationExceptionResponse(parsedOutput, context);
|
|
588
|
+
default:
|
|
589
|
+
const parsedBody = parsedOutput.body;
|
|
590
|
+
(0, smithy_client_1.throwDefaultError)({
|
|
591
|
+
output,
|
|
592
|
+
parsedBody,
|
|
593
|
+
exceptionCtor: SageMakerGeospatialServiceException_1.SageMakerGeospatialServiceException,
|
|
594
|
+
errorCode,
|
|
595
|
+
});
|
|
596
|
+
}
|
|
597
|
+
};
|
|
598
|
+
const deserializeAws_restJson1ExportVectorEnrichmentJobCommand = async (output, context) => {
|
|
599
|
+
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
600
|
+
return deserializeAws_restJson1ExportVectorEnrichmentJobCommandError(output, context);
|
|
601
|
+
}
|
|
602
|
+
const contents = map({
|
|
603
|
+
$metadata: deserializeMetadata(output),
|
|
604
|
+
});
|
|
605
|
+
const data = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.expectObject)(await parseBody(output.body, context)), "body");
|
|
606
|
+
if (data.Arn != null) {
|
|
607
|
+
contents.Arn = (0, smithy_client_1.expectString)(data.Arn);
|
|
608
|
+
}
|
|
609
|
+
if (data.CreationTime != null) {
|
|
610
|
+
contents.CreationTime = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(data.CreationTime)));
|
|
611
|
+
}
|
|
612
|
+
if (data.ExecutionRoleArn != null) {
|
|
613
|
+
contents.ExecutionRoleArn = (0, smithy_client_1.expectString)(data.ExecutionRoleArn);
|
|
614
|
+
}
|
|
615
|
+
if (data.ExportStatus != null) {
|
|
616
|
+
contents.ExportStatus = (0, smithy_client_1.expectString)(data.ExportStatus);
|
|
617
|
+
}
|
|
618
|
+
if (data.OutputConfig != null) {
|
|
619
|
+
contents.OutputConfig = deserializeAws_restJson1ExportVectorEnrichmentJobOutputConfig(data.OutputConfig, context);
|
|
620
|
+
}
|
|
621
|
+
return contents;
|
|
622
|
+
};
|
|
623
|
+
exports.deserializeAws_restJson1ExportVectorEnrichmentJobCommand = deserializeAws_restJson1ExportVectorEnrichmentJobCommand;
|
|
624
|
+
const deserializeAws_restJson1ExportVectorEnrichmentJobCommandError = async (output, context) => {
|
|
625
|
+
const parsedOutput = {
|
|
626
|
+
...output,
|
|
627
|
+
body: await parseErrorBody(output.body, context),
|
|
628
|
+
};
|
|
629
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
630
|
+
switch (errorCode) {
|
|
631
|
+
case "AccessDeniedException":
|
|
632
|
+
case "com.amazonaws.sagemakergeospatial#AccessDeniedException":
|
|
633
|
+
throw await deserializeAws_restJson1AccessDeniedExceptionResponse(parsedOutput, context);
|
|
634
|
+
case "ConflictException":
|
|
635
|
+
case "com.amazonaws.sagemakergeospatial#ConflictException":
|
|
636
|
+
throw await deserializeAws_restJson1ConflictExceptionResponse(parsedOutput, context);
|
|
637
|
+
case "InternalServerException":
|
|
638
|
+
case "com.amazonaws.sagemakergeospatial#InternalServerException":
|
|
639
|
+
throw await deserializeAws_restJson1InternalServerExceptionResponse(parsedOutput, context);
|
|
640
|
+
case "ResourceNotFoundException":
|
|
641
|
+
case "com.amazonaws.sagemakergeospatial#ResourceNotFoundException":
|
|
642
|
+
throw await deserializeAws_restJson1ResourceNotFoundExceptionResponse(parsedOutput, context);
|
|
643
|
+
case "ServiceQuotaExceededException":
|
|
644
|
+
case "com.amazonaws.sagemakergeospatial#ServiceQuotaExceededException":
|
|
645
|
+
throw await deserializeAws_restJson1ServiceQuotaExceededExceptionResponse(parsedOutput, context);
|
|
646
|
+
case "ThrottlingException":
|
|
647
|
+
case "com.amazonaws.sagemakergeospatial#ThrottlingException":
|
|
648
|
+
throw await deserializeAws_restJson1ThrottlingExceptionResponse(parsedOutput, context);
|
|
649
|
+
case "ValidationException":
|
|
650
|
+
case "com.amazonaws.sagemakergeospatial#ValidationException":
|
|
651
|
+
throw await deserializeAws_restJson1ValidationExceptionResponse(parsedOutput, context);
|
|
652
|
+
default:
|
|
653
|
+
const parsedBody = parsedOutput.body;
|
|
654
|
+
(0, smithy_client_1.throwDefaultError)({
|
|
655
|
+
output,
|
|
656
|
+
parsedBody,
|
|
657
|
+
exceptionCtor: SageMakerGeospatialServiceException_1.SageMakerGeospatialServiceException,
|
|
658
|
+
errorCode,
|
|
659
|
+
});
|
|
660
|
+
}
|
|
661
|
+
};
|
|
662
|
+
const deserializeAws_restJson1GetEarthObservationJobCommand = async (output, context) => {
|
|
663
|
+
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
664
|
+
return deserializeAws_restJson1GetEarthObservationJobCommandError(output, context);
|
|
665
|
+
}
|
|
666
|
+
const contents = map({
|
|
667
|
+
$metadata: deserializeMetadata(output),
|
|
668
|
+
});
|
|
669
|
+
const data = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.expectObject)(await parseBody(output.body, context)), "body");
|
|
670
|
+
if (data.Arn != null) {
|
|
671
|
+
contents.Arn = (0, smithy_client_1.expectString)(data.Arn);
|
|
672
|
+
}
|
|
673
|
+
if (data.CreationTime != null) {
|
|
674
|
+
contents.CreationTime = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(data.CreationTime)));
|
|
675
|
+
}
|
|
676
|
+
if (data.DurationInSeconds != null) {
|
|
677
|
+
contents.DurationInSeconds = (0, smithy_client_1.expectInt32)(data.DurationInSeconds);
|
|
678
|
+
}
|
|
679
|
+
if (data.ErrorDetails != null) {
|
|
680
|
+
contents.ErrorDetails = deserializeAws_restJson1EarthObservationJobErrorDetails(data.ErrorDetails, context);
|
|
681
|
+
}
|
|
682
|
+
if (data.ExecutionRoleArn != null) {
|
|
683
|
+
contents.ExecutionRoleArn = (0, smithy_client_1.expectString)(data.ExecutionRoleArn);
|
|
684
|
+
}
|
|
685
|
+
if (data.ExportErrorDetails != null) {
|
|
686
|
+
contents.ExportErrorDetails = deserializeAws_restJson1ExportErrorDetails(data.ExportErrorDetails, context);
|
|
687
|
+
}
|
|
688
|
+
if (data.ExportStatus != null) {
|
|
689
|
+
contents.ExportStatus = (0, smithy_client_1.expectString)(data.ExportStatus);
|
|
690
|
+
}
|
|
691
|
+
if (data.InputConfig != null) {
|
|
692
|
+
contents.InputConfig = deserializeAws_restJson1InputConfigOutput(data.InputConfig, context);
|
|
693
|
+
}
|
|
694
|
+
if (data.JobConfig != null) {
|
|
695
|
+
contents.JobConfig = deserializeAws_restJson1JobConfigInput((0, smithy_client_1.expectUnion)(data.JobConfig), context);
|
|
696
|
+
}
|
|
697
|
+
if (data.KmsKeyId != null) {
|
|
698
|
+
contents.KmsKeyId = (0, smithy_client_1.expectString)(data.KmsKeyId);
|
|
699
|
+
}
|
|
700
|
+
if (data.Name != null) {
|
|
701
|
+
contents.Name = (0, smithy_client_1.expectString)(data.Name);
|
|
702
|
+
}
|
|
703
|
+
if (data.OutputBands != null) {
|
|
704
|
+
contents.OutputBands = deserializeAws_restJson1EarthObservationJobOutputBands(data.OutputBands, context);
|
|
705
|
+
}
|
|
706
|
+
if (data.Status != null) {
|
|
707
|
+
contents.Status = (0, smithy_client_1.expectString)(data.Status);
|
|
708
|
+
}
|
|
709
|
+
if (data.Tags != null) {
|
|
710
|
+
contents.Tags = deserializeAws_restJson1Tags(data.Tags, context);
|
|
711
|
+
}
|
|
712
|
+
return contents;
|
|
713
|
+
};
|
|
714
|
+
exports.deserializeAws_restJson1GetEarthObservationJobCommand = deserializeAws_restJson1GetEarthObservationJobCommand;
|
|
715
|
+
const deserializeAws_restJson1GetEarthObservationJobCommandError = async (output, context) => {
|
|
716
|
+
const parsedOutput = {
|
|
717
|
+
...output,
|
|
718
|
+
body: await parseErrorBody(output.body, context),
|
|
719
|
+
};
|
|
720
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
721
|
+
switch (errorCode) {
|
|
722
|
+
case "AccessDeniedException":
|
|
723
|
+
case "com.amazonaws.sagemakergeospatial#AccessDeniedException":
|
|
724
|
+
throw await deserializeAws_restJson1AccessDeniedExceptionResponse(parsedOutput, context);
|
|
725
|
+
case "InternalServerException":
|
|
726
|
+
case "com.amazonaws.sagemakergeospatial#InternalServerException":
|
|
727
|
+
throw await deserializeAws_restJson1InternalServerExceptionResponse(parsedOutput, context);
|
|
728
|
+
case "ResourceNotFoundException":
|
|
729
|
+
case "com.amazonaws.sagemakergeospatial#ResourceNotFoundException":
|
|
730
|
+
throw await deserializeAws_restJson1ResourceNotFoundExceptionResponse(parsedOutput, context);
|
|
731
|
+
case "ThrottlingException":
|
|
732
|
+
case "com.amazonaws.sagemakergeospatial#ThrottlingException":
|
|
733
|
+
throw await deserializeAws_restJson1ThrottlingExceptionResponse(parsedOutput, context);
|
|
734
|
+
case "ValidationException":
|
|
735
|
+
case "com.amazonaws.sagemakergeospatial#ValidationException":
|
|
736
|
+
throw await deserializeAws_restJson1ValidationExceptionResponse(parsedOutput, context);
|
|
737
|
+
default:
|
|
738
|
+
const parsedBody = parsedOutput.body;
|
|
739
|
+
(0, smithy_client_1.throwDefaultError)({
|
|
740
|
+
output,
|
|
741
|
+
parsedBody,
|
|
742
|
+
exceptionCtor: SageMakerGeospatialServiceException_1.SageMakerGeospatialServiceException,
|
|
743
|
+
errorCode,
|
|
744
|
+
});
|
|
745
|
+
}
|
|
746
|
+
};
|
|
747
|
+
const deserializeAws_restJson1GetRasterDataCollectionCommand = async (output, context) => {
|
|
748
|
+
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
749
|
+
return deserializeAws_restJson1GetRasterDataCollectionCommandError(output, context);
|
|
750
|
+
}
|
|
751
|
+
const contents = map({
|
|
752
|
+
$metadata: deserializeMetadata(output),
|
|
753
|
+
});
|
|
754
|
+
const data = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.expectObject)(await parseBody(output.body, context)), "body");
|
|
755
|
+
if (data.Arn != null) {
|
|
756
|
+
contents.Arn = (0, smithy_client_1.expectString)(data.Arn);
|
|
757
|
+
}
|
|
758
|
+
if (data.Description != null) {
|
|
759
|
+
contents.Description = (0, smithy_client_1.expectString)(data.Description);
|
|
760
|
+
}
|
|
761
|
+
if (data.DescriptionPageUrl != null) {
|
|
762
|
+
contents.DescriptionPageUrl = (0, smithy_client_1.expectString)(data.DescriptionPageUrl);
|
|
763
|
+
}
|
|
764
|
+
if (data.ImageSourceBands != null) {
|
|
765
|
+
contents.ImageSourceBands = deserializeAws_restJson1ImageSourceBandList(data.ImageSourceBands, context);
|
|
766
|
+
}
|
|
767
|
+
if (data.Name != null) {
|
|
768
|
+
contents.Name = (0, smithy_client_1.expectString)(data.Name);
|
|
769
|
+
}
|
|
770
|
+
if (data.SupportedFilters != null) {
|
|
771
|
+
contents.SupportedFilters = deserializeAws_restJson1FilterList(data.SupportedFilters, context);
|
|
772
|
+
}
|
|
773
|
+
if (data.Tags != null) {
|
|
774
|
+
contents.Tags = deserializeAws_restJson1Tags(data.Tags, context);
|
|
775
|
+
}
|
|
776
|
+
if (data.Type != null) {
|
|
777
|
+
contents.Type = (0, smithy_client_1.expectString)(data.Type);
|
|
778
|
+
}
|
|
779
|
+
return contents;
|
|
780
|
+
};
|
|
781
|
+
exports.deserializeAws_restJson1GetRasterDataCollectionCommand = deserializeAws_restJson1GetRasterDataCollectionCommand;
|
|
782
|
+
const deserializeAws_restJson1GetRasterDataCollectionCommandError = async (output, context) => {
|
|
783
|
+
const parsedOutput = {
|
|
784
|
+
...output,
|
|
785
|
+
body: await parseErrorBody(output.body, context),
|
|
786
|
+
};
|
|
787
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
788
|
+
switch (errorCode) {
|
|
789
|
+
case "AccessDeniedException":
|
|
790
|
+
case "com.amazonaws.sagemakergeospatial#AccessDeniedException":
|
|
791
|
+
throw await deserializeAws_restJson1AccessDeniedExceptionResponse(parsedOutput, context);
|
|
792
|
+
case "InternalServerException":
|
|
793
|
+
case "com.amazonaws.sagemakergeospatial#InternalServerException":
|
|
794
|
+
throw await deserializeAws_restJson1InternalServerExceptionResponse(parsedOutput, context);
|
|
795
|
+
case "ResourceNotFoundException":
|
|
796
|
+
case "com.amazonaws.sagemakergeospatial#ResourceNotFoundException":
|
|
797
|
+
throw await deserializeAws_restJson1ResourceNotFoundExceptionResponse(parsedOutput, context);
|
|
798
|
+
case "ThrottlingException":
|
|
799
|
+
case "com.amazonaws.sagemakergeospatial#ThrottlingException":
|
|
800
|
+
throw await deserializeAws_restJson1ThrottlingExceptionResponse(parsedOutput, context);
|
|
801
|
+
case "ValidationException":
|
|
802
|
+
case "com.amazonaws.sagemakergeospatial#ValidationException":
|
|
803
|
+
throw await deserializeAws_restJson1ValidationExceptionResponse(parsedOutput, context);
|
|
804
|
+
default:
|
|
805
|
+
const parsedBody = parsedOutput.body;
|
|
806
|
+
(0, smithy_client_1.throwDefaultError)({
|
|
807
|
+
output,
|
|
808
|
+
parsedBody,
|
|
809
|
+
exceptionCtor: SageMakerGeospatialServiceException_1.SageMakerGeospatialServiceException,
|
|
810
|
+
errorCode,
|
|
811
|
+
});
|
|
812
|
+
}
|
|
813
|
+
};
|
|
814
|
+
const deserializeAws_restJson1GetTileCommand = async (output, context) => {
|
|
815
|
+
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
816
|
+
return deserializeAws_restJson1GetTileCommandError(output, context);
|
|
817
|
+
}
|
|
818
|
+
const contents = map({
|
|
819
|
+
$metadata: deserializeMetadata(output),
|
|
820
|
+
});
|
|
821
|
+
const data = output.body;
|
|
822
|
+
context.sdkStreamMixin(data);
|
|
823
|
+
contents.BinaryFile = data;
|
|
824
|
+
return contents;
|
|
825
|
+
};
|
|
826
|
+
exports.deserializeAws_restJson1GetTileCommand = deserializeAws_restJson1GetTileCommand;
|
|
827
|
+
const deserializeAws_restJson1GetTileCommandError = async (output, context) => {
|
|
828
|
+
const parsedOutput = {
|
|
829
|
+
...output,
|
|
830
|
+
body: await parseErrorBody(output.body, context),
|
|
831
|
+
};
|
|
832
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
833
|
+
switch (errorCode) {
|
|
834
|
+
case "AccessDeniedException":
|
|
835
|
+
case "com.amazonaws.sagemakergeospatial#AccessDeniedException":
|
|
836
|
+
throw await deserializeAws_restJson1AccessDeniedExceptionResponse(parsedOutput, context);
|
|
837
|
+
case "InternalServerException":
|
|
838
|
+
case "com.amazonaws.sagemakergeospatial#InternalServerException":
|
|
839
|
+
throw await deserializeAws_restJson1InternalServerExceptionResponse(parsedOutput, context);
|
|
840
|
+
case "ResourceNotFoundException":
|
|
841
|
+
case "com.amazonaws.sagemakergeospatial#ResourceNotFoundException":
|
|
842
|
+
throw await deserializeAws_restJson1ResourceNotFoundExceptionResponse(parsedOutput, context);
|
|
843
|
+
case "ThrottlingException":
|
|
844
|
+
case "com.amazonaws.sagemakergeospatial#ThrottlingException":
|
|
845
|
+
throw await deserializeAws_restJson1ThrottlingExceptionResponse(parsedOutput, context);
|
|
846
|
+
case "ValidationException":
|
|
847
|
+
case "com.amazonaws.sagemakergeospatial#ValidationException":
|
|
848
|
+
throw await deserializeAws_restJson1ValidationExceptionResponse(parsedOutput, context);
|
|
849
|
+
default:
|
|
850
|
+
const parsedBody = parsedOutput.body;
|
|
851
|
+
(0, smithy_client_1.throwDefaultError)({
|
|
852
|
+
output,
|
|
853
|
+
parsedBody,
|
|
854
|
+
exceptionCtor: SageMakerGeospatialServiceException_1.SageMakerGeospatialServiceException,
|
|
855
|
+
errorCode,
|
|
856
|
+
});
|
|
857
|
+
}
|
|
858
|
+
};
|
|
859
|
+
const deserializeAws_restJson1GetVectorEnrichmentJobCommand = async (output, context) => {
|
|
860
|
+
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
861
|
+
return deserializeAws_restJson1GetVectorEnrichmentJobCommandError(output, context);
|
|
862
|
+
}
|
|
863
|
+
const contents = map({
|
|
864
|
+
$metadata: deserializeMetadata(output),
|
|
865
|
+
});
|
|
866
|
+
const data = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.expectObject)(await parseBody(output.body, context)), "body");
|
|
867
|
+
if (data.Arn != null) {
|
|
868
|
+
contents.Arn = (0, smithy_client_1.expectString)(data.Arn);
|
|
869
|
+
}
|
|
870
|
+
if (data.CreationTime != null) {
|
|
871
|
+
contents.CreationTime = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(data.CreationTime)));
|
|
872
|
+
}
|
|
873
|
+
if (data.DurationInSeconds != null) {
|
|
874
|
+
contents.DurationInSeconds = (0, smithy_client_1.expectInt32)(data.DurationInSeconds);
|
|
875
|
+
}
|
|
876
|
+
if (data.ErrorDetails != null) {
|
|
877
|
+
contents.ErrorDetails = deserializeAws_restJson1VectorEnrichmentJobErrorDetails(data.ErrorDetails, context);
|
|
878
|
+
}
|
|
879
|
+
if (data.ExecutionRoleArn != null) {
|
|
880
|
+
contents.ExecutionRoleArn = (0, smithy_client_1.expectString)(data.ExecutionRoleArn);
|
|
881
|
+
}
|
|
882
|
+
if (data.ExportErrorDetails != null) {
|
|
883
|
+
contents.ExportErrorDetails = deserializeAws_restJson1VectorEnrichmentJobExportErrorDetails(data.ExportErrorDetails, context);
|
|
884
|
+
}
|
|
885
|
+
if (data.ExportStatus != null) {
|
|
886
|
+
contents.ExportStatus = (0, smithy_client_1.expectString)(data.ExportStatus);
|
|
887
|
+
}
|
|
888
|
+
if (data.InputConfig != null) {
|
|
889
|
+
contents.InputConfig = deserializeAws_restJson1VectorEnrichmentJobInputConfig(data.InputConfig, context);
|
|
890
|
+
}
|
|
891
|
+
if (data.JobConfig != null) {
|
|
892
|
+
contents.JobConfig = deserializeAws_restJson1VectorEnrichmentJobConfig((0, smithy_client_1.expectUnion)(data.JobConfig), context);
|
|
893
|
+
}
|
|
894
|
+
if (data.KmsKeyId != null) {
|
|
895
|
+
contents.KmsKeyId = (0, smithy_client_1.expectString)(data.KmsKeyId);
|
|
896
|
+
}
|
|
897
|
+
if (data.Name != null) {
|
|
898
|
+
contents.Name = (0, smithy_client_1.expectString)(data.Name);
|
|
899
|
+
}
|
|
900
|
+
if (data.Status != null) {
|
|
901
|
+
contents.Status = (0, smithy_client_1.expectString)(data.Status);
|
|
902
|
+
}
|
|
903
|
+
if (data.Tags != null) {
|
|
904
|
+
contents.Tags = deserializeAws_restJson1Tags(data.Tags, context);
|
|
905
|
+
}
|
|
906
|
+
if (data.Type != null) {
|
|
907
|
+
contents.Type = (0, smithy_client_1.expectString)(data.Type);
|
|
908
|
+
}
|
|
909
|
+
return contents;
|
|
910
|
+
};
|
|
911
|
+
exports.deserializeAws_restJson1GetVectorEnrichmentJobCommand = deserializeAws_restJson1GetVectorEnrichmentJobCommand;
|
|
912
|
+
const deserializeAws_restJson1GetVectorEnrichmentJobCommandError = async (output, context) => {
|
|
913
|
+
const parsedOutput = {
|
|
914
|
+
...output,
|
|
915
|
+
body: await parseErrorBody(output.body, context),
|
|
916
|
+
};
|
|
917
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
918
|
+
switch (errorCode) {
|
|
919
|
+
case "AccessDeniedException":
|
|
920
|
+
case "com.amazonaws.sagemakergeospatial#AccessDeniedException":
|
|
921
|
+
throw await deserializeAws_restJson1AccessDeniedExceptionResponse(parsedOutput, context);
|
|
922
|
+
case "InternalServerException":
|
|
923
|
+
case "com.amazonaws.sagemakergeospatial#InternalServerException":
|
|
924
|
+
throw await deserializeAws_restJson1InternalServerExceptionResponse(parsedOutput, context);
|
|
925
|
+
case "ResourceNotFoundException":
|
|
926
|
+
case "com.amazonaws.sagemakergeospatial#ResourceNotFoundException":
|
|
927
|
+
throw await deserializeAws_restJson1ResourceNotFoundExceptionResponse(parsedOutput, context);
|
|
928
|
+
case "ThrottlingException":
|
|
929
|
+
case "com.amazonaws.sagemakergeospatial#ThrottlingException":
|
|
930
|
+
throw await deserializeAws_restJson1ThrottlingExceptionResponse(parsedOutput, context);
|
|
931
|
+
case "ValidationException":
|
|
932
|
+
case "com.amazonaws.sagemakergeospatial#ValidationException":
|
|
933
|
+
throw await deserializeAws_restJson1ValidationExceptionResponse(parsedOutput, context);
|
|
934
|
+
default:
|
|
935
|
+
const parsedBody = parsedOutput.body;
|
|
936
|
+
(0, smithy_client_1.throwDefaultError)({
|
|
937
|
+
output,
|
|
938
|
+
parsedBody,
|
|
939
|
+
exceptionCtor: SageMakerGeospatialServiceException_1.SageMakerGeospatialServiceException,
|
|
940
|
+
errorCode,
|
|
941
|
+
});
|
|
942
|
+
}
|
|
943
|
+
};
|
|
944
|
+
const deserializeAws_restJson1ListEarthObservationJobsCommand = async (output, context) => {
|
|
945
|
+
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
946
|
+
return deserializeAws_restJson1ListEarthObservationJobsCommandError(output, context);
|
|
947
|
+
}
|
|
948
|
+
const contents = map({
|
|
949
|
+
$metadata: deserializeMetadata(output),
|
|
950
|
+
});
|
|
951
|
+
const data = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.expectObject)(await parseBody(output.body, context)), "body");
|
|
952
|
+
if (data.EarthObservationJobSummaries != null) {
|
|
953
|
+
contents.EarthObservationJobSummaries = deserializeAws_restJson1EarthObservationJobList(data.EarthObservationJobSummaries, context);
|
|
954
|
+
}
|
|
955
|
+
if (data.NextToken != null) {
|
|
956
|
+
contents.NextToken = (0, smithy_client_1.expectString)(data.NextToken);
|
|
957
|
+
}
|
|
958
|
+
return contents;
|
|
959
|
+
};
|
|
960
|
+
exports.deserializeAws_restJson1ListEarthObservationJobsCommand = deserializeAws_restJson1ListEarthObservationJobsCommand;
|
|
961
|
+
const deserializeAws_restJson1ListEarthObservationJobsCommandError = async (output, context) => {
|
|
962
|
+
const parsedOutput = {
|
|
963
|
+
...output,
|
|
964
|
+
body: await parseErrorBody(output.body, context),
|
|
965
|
+
};
|
|
966
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
967
|
+
switch (errorCode) {
|
|
968
|
+
case "AccessDeniedException":
|
|
969
|
+
case "com.amazonaws.sagemakergeospatial#AccessDeniedException":
|
|
970
|
+
throw await deserializeAws_restJson1AccessDeniedExceptionResponse(parsedOutput, context);
|
|
971
|
+
case "InternalServerException":
|
|
972
|
+
case "com.amazonaws.sagemakergeospatial#InternalServerException":
|
|
973
|
+
throw await deserializeAws_restJson1InternalServerExceptionResponse(parsedOutput, context);
|
|
974
|
+
case "ResourceNotFoundException":
|
|
975
|
+
case "com.amazonaws.sagemakergeospatial#ResourceNotFoundException":
|
|
976
|
+
throw await deserializeAws_restJson1ResourceNotFoundExceptionResponse(parsedOutput, context);
|
|
977
|
+
case "ThrottlingException":
|
|
978
|
+
case "com.amazonaws.sagemakergeospatial#ThrottlingException":
|
|
979
|
+
throw await deserializeAws_restJson1ThrottlingExceptionResponse(parsedOutput, context);
|
|
980
|
+
case "ValidationException":
|
|
981
|
+
case "com.amazonaws.sagemakergeospatial#ValidationException":
|
|
982
|
+
throw await deserializeAws_restJson1ValidationExceptionResponse(parsedOutput, context);
|
|
983
|
+
default:
|
|
984
|
+
const parsedBody = parsedOutput.body;
|
|
985
|
+
(0, smithy_client_1.throwDefaultError)({
|
|
986
|
+
output,
|
|
987
|
+
parsedBody,
|
|
988
|
+
exceptionCtor: SageMakerGeospatialServiceException_1.SageMakerGeospatialServiceException,
|
|
989
|
+
errorCode,
|
|
990
|
+
});
|
|
991
|
+
}
|
|
992
|
+
};
|
|
993
|
+
const deserializeAws_restJson1ListRasterDataCollectionsCommand = async (output, context) => {
|
|
994
|
+
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
995
|
+
return deserializeAws_restJson1ListRasterDataCollectionsCommandError(output, context);
|
|
996
|
+
}
|
|
997
|
+
const contents = map({
|
|
998
|
+
$metadata: deserializeMetadata(output),
|
|
999
|
+
});
|
|
1000
|
+
const data = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.expectObject)(await parseBody(output.body, context)), "body");
|
|
1001
|
+
if (data.NextToken != null) {
|
|
1002
|
+
contents.NextToken = (0, smithy_client_1.expectString)(data.NextToken);
|
|
1003
|
+
}
|
|
1004
|
+
if (data.RasterDataCollectionSummaries != null) {
|
|
1005
|
+
contents.RasterDataCollectionSummaries = deserializeAws_restJson1DataCollectionsList(data.RasterDataCollectionSummaries, context);
|
|
1006
|
+
}
|
|
1007
|
+
return contents;
|
|
1008
|
+
};
|
|
1009
|
+
exports.deserializeAws_restJson1ListRasterDataCollectionsCommand = deserializeAws_restJson1ListRasterDataCollectionsCommand;
|
|
1010
|
+
const deserializeAws_restJson1ListRasterDataCollectionsCommandError = async (output, context) => {
|
|
1011
|
+
const parsedOutput = {
|
|
1012
|
+
...output,
|
|
1013
|
+
body: await parseErrorBody(output.body, context),
|
|
1014
|
+
};
|
|
1015
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1016
|
+
switch (errorCode) {
|
|
1017
|
+
case "AccessDeniedException":
|
|
1018
|
+
case "com.amazonaws.sagemakergeospatial#AccessDeniedException":
|
|
1019
|
+
throw await deserializeAws_restJson1AccessDeniedExceptionResponse(parsedOutput, context);
|
|
1020
|
+
case "InternalServerException":
|
|
1021
|
+
case "com.amazonaws.sagemakergeospatial#InternalServerException":
|
|
1022
|
+
throw await deserializeAws_restJson1InternalServerExceptionResponse(parsedOutput, context);
|
|
1023
|
+
case "ResourceNotFoundException":
|
|
1024
|
+
case "com.amazonaws.sagemakergeospatial#ResourceNotFoundException":
|
|
1025
|
+
throw await deserializeAws_restJson1ResourceNotFoundExceptionResponse(parsedOutput, context);
|
|
1026
|
+
case "ThrottlingException":
|
|
1027
|
+
case "com.amazonaws.sagemakergeospatial#ThrottlingException":
|
|
1028
|
+
throw await deserializeAws_restJson1ThrottlingExceptionResponse(parsedOutput, context);
|
|
1029
|
+
case "ValidationException":
|
|
1030
|
+
case "com.amazonaws.sagemakergeospatial#ValidationException":
|
|
1031
|
+
throw await deserializeAws_restJson1ValidationExceptionResponse(parsedOutput, context);
|
|
1032
|
+
default:
|
|
1033
|
+
const parsedBody = parsedOutput.body;
|
|
1034
|
+
(0, smithy_client_1.throwDefaultError)({
|
|
1035
|
+
output,
|
|
1036
|
+
parsedBody,
|
|
1037
|
+
exceptionCtor: SageMakerGeospatialServiceException_1.SageMakerGeospatialServiceException,
|
|
1038
|
+
errorCode,
|
|
1039
|
+
});
|
|
1040
|
+
}
|
|
1041
|
+
};
|
|
1042
|
+
const deserializeAws_restJson1ListTagsForResourceCommand = async (output, context) => {
|
|
1043
|
+
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
1044
|
+
return deserializeAws_restJson1ListTagsForResourceCommandError(output, context);
|
|
1045
|
+
}
|
|
1046
|
+
const contents = map({
|
|
1047
|
+
$metadata: deserializeMetadata(output),
|
|
1048
|
+
});
|
|
1049
|
+
const data = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.expectObject)(await parseBody(output.body, context)), "body");
|
|
1050
|
+
if (data.Tags != null) {
|
|
1051
|
+
contents.Tags = deserializeAws_restJson1Tags(data.Tags, context);
|
|
1052
|
+
}
|
|
1053
|
+
return contents;
|
|
1054
|
+
};
|
|
1055
|
+
exports.deserializeAws_restJson1ListTagsForResourceCommand = deserializeAws_restJson1ListTagsForResourceCommand;
|
|
1056
|
+
const deserializeAws_restJson1ListTagsForResourceCommandError = async (output, context) => {
|
|
1057
|
+
const parsedOutput = {
|
|
1058
|
+
...output,
|
|
1059
|
+
body: await parseErrorBody(output.body, context),
|
|
1060
|
+
};
|
|
1061
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1062
|
+
switch (errorCode) {
|
|
1063
|
+
case "AccessDeniedException":
|
|
1064
|
+
case "com.amazonaws.sagemakergeospatial#AccessDeniedException":
|
|
1065
|
+
throw await deserializeAws_restJson1AccessDeniedExceptionResponse(parsedOutput, context);
|
|
1066
|
+
case "InternalServerException":
|
|
1067
|
+
case "com.amazonaws.sagemakergeospatial#InternalServerException":
|
|
1068
|
+
throw await deserializeAws_restJson1InternalServerExceptionResponse(parsedOutput, context);
|
|
1069
|
+
case "ResourceNotFoundException":
|
|
1070
|
+
case "com.amazonaws.sagemakergeospatial#ResourceNotFoundException":
|
|
1071
|
+
throw await deserializeAws_restJson1ResourceNotFoundExceptionResponse(parsedOutput, context);
|
|
1072
|
+
case "ThrottlingException":
|
|
1073
|
+
case "com.amazonaws.sagemakergeospatial#ThrottlingException":
|
|
1074
|
+
throw await deserializeAws_restJson1ThrottlingExceptionResponse(parsedOutput, context);
|
|
1075
|
+
case "ValidationException":
|
|
1076
|
+
case "com.amazonaws.sagemakergeospatial#ValidationException":
|
|
1077
|
+
throw await deserializeAws_restJson1ValidationExceptionResponse(parsedOutput, context);
|
|
1078
|
+
default:
|
|
1079
|
+
const parsedBody = parsedOutput.body;
|
|
1080
|
+
(0, smithy_client_1.throwDefaultError)({
|
|
1081
|
+
output,
|
|
1082
|
+
parsedBody,
|
|
1083
|
+
exceptionCtor: SageMakerGeospatialServiceException_1.SageMakerGeospatialServiceException,
|
|
1084
|
+
errorCode,
|
|
1085
|
+
});
|
|
1086
|
+
}
|
|
1087
|
+
};
|
|
1088
|
+
const deserializeAws_restJson1ListVectorEnrichmentJobsCommand = async (output, context) => {
|
|
1089
|
+
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
1090
|
+
return deserializeAws_restJson1ListVectorEnrichmentJobsCommandError(output, context);
|
|
1091
|
+
}
|
|
1092
|
+
const contents = map({
|
|
1093
|
+
$metadata: deserializeMetadata(output),
|
|
1094
|
+
});
|
|
1095
|
+
const data = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.expectObject)(await parseBody(output.body, context)), "body");
|
|
1096
|
+
if (data.NextToken != null) {
|
|
1097
|
+
contents.NextToken = (0, smithy_client_1.expectString)(data.NextToken);
|
|
1098
|
+
}
|
|
1099
|
+
if (data.VectorEnrichmentJobSummaries != null) {
|
|
1100
|
+
contents.VectorEnrichmentJobSummaries = deserializeAws_restJson1VectorEnrichmentJobList(data.VectorEnrichmentJobSummaries, context);
|
|
1101
|
+
}
|
|
1102
|
+
return contents;
|
|
1103
|
+
};
|
|
1104
|
+
exports.deserializeAws_restJson1ListVectorEnrichmentJobsCommand = deserializeAws_restJson1ListVectorEnrichmentJobsCommand;
|
|
1105
|
+
const deserializeAws_restJson1ListVectorEnrichmentJobsCommandError = async (output, context) => {
|
|
1106
|
+
const parsedOutput = {
|
|
1107
|
+
...output,
|
|
1108
|
+
body: await parseErrorBody(output.body, context),
|
|
1109
|
+
};
|
|
1110
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1111
|
+
switch (errorCode) {
|
|
1112
|
+
case "AccessDeniedException":
|
|
1113
|
+
case "com.amazonaws.sagemakergeospatial#AccessDeniedException":
|
|
1114
|
+
throw await deserializeAws_restJson1AccessDeniedExceptionResponse(parsedOutput, context);
|
|
1115
|
+
case "InternalServerException":
|
|
1116
|
+
case "com.amazonaws.sagemakergeospatial#InternalServerException":
|
|
1117
|
+
throw await deserializeAws_restJson1InternalServerExceptionResponse(parsedOutput, context);
|
|
1118
|
+
case "ResourceNotFoundException":
|
|
1119
|
+
case "com.amazonaws.sagemakergeospatial#ResourceNotFoundException":
|
|
1120
|
+
throw await deserializeAws_restJson1ResourceNotFoundExceptionResponse(parsedOutput, context);
|
|
1121
|
+
case "ThrottlingException":
|
|
1122
|
+
case "com.amazonaws.sagemakergeospatial#ThrottlingException":
|
|
1123
|
+
throw await deserializeAws_restJson1ThrottlingExceptionResponse(parsedOutput, context);
|
|
1124
|
+
case "ValidationException":
|
|
1125
|
+
case "com.amazonaws.sagemakergeospatial#ValidationException":
|
|
1126
|
+
throw await deserializeAws_restJson1ValidationExceptionResponse(parsedOutput, context);
|
|
1127
|
+
default:
|
|
1128
|
+
const parsedBody = parsedOutput.body;
|
|
1129
|
+
(0, smithy_client_1.throwDefaultError)({
|
|
1130
|
+
output,
|
|
1131
|
+
parsedBody,
|
|
1132
|
+
exceptionCtor: SageMakerGeospatialServiceException_1.SageMakerGeospatialServiceException,
|
|
1133
|
+
errorCode,
|
|
1134
|
+
});
|
|
1135
|
+
}
|
|
1136
|
+
};
|
|
1137
|
+
const deserializeAws_restJson1SearchRasterDataCollectionCommand = async (output, context) => {
|
|
1138
|
+
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
1139
|
+
return deserializeAws_restJson1SearchRasterDataCollectionCommandError(output, context);
|
|
1140
|
+
}
|
|
1141
|
+
const contents = map({
|
|
1142
|
+
$metadata: deserializeMetadata(output),
|
|
1143
|
+
});
|
|
1144
|
+
const data = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.expectObject)(await parseBody(output.body, context)), "body");
|
|
1145
|
+
if (data.ApproximateResultCount != null) {
|
|
1146
|
+
contents.ApproximateResultCount = (0, smithy_client_1.expectInt32)(data.ApproximateResultCount);
|
|
1147
|
+
}
|
|
1148
|
+
if (data.Items != null) {
|
|
1149
|
+
contents.Items = deserializeAws_restJson1ItemSourceList(data.Items, context);
|
|
1150
|
+
}
|
|
1151
|
+
if (data.NextToken != null) {
|
|
1152
|
+
contents.NextToken = (0, smithy_client_1.expectString)(data.NextToken);
|
|
1153
|
+
}
|
|
1154
|
+
return contents;
|
|
1155
|
+
};
|
|
1156
|
+
exports.deserializeAws_restJson1SearchRasterDataCollectionCommand = deserializeAws_restJson1SearchRasterDataCollectionCommand;
|
|
1157
|
+
const deserializeAws_restJson1SearchRasterDataCollectionCommandError = async (output, context) => {
|
|
1158
|
+
const parsedOutput = {
|
|
1159
|
+
...output,
|
|
1160
|
+
body: await parseErrorBody(output.body, context),
|
|
1161
|
+
};
|
|
1162
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1163
|
+
switch (errorCode) {
|
|
1164
|
+
case "AccessDeniedException":
|
|
1165
|
+
case "com.amazonaws.sagemakergeospatial#AccessDeniedException":
|
|
1166
|
+
throw await deserializeAws_restJson1AccessDeniedExceptionResponse(parsedOutput, context);
|
|
1167
|
+
case "InternalServerException":
|
|
1168
|
+
case "com.amazonaws.sagemakergeospatial#InternalServerException":
|
|
1169
|
+
throw await deserializeAws_restJson1InternalServerExceptionResponse(parsedOutput, context);
|
|
1170
|
+
case "ResourceNotFoundException":
|
|
1171
|
+
case "com.amazonaws.sagemakergeospatial#ResourceNotFoundException":
|
|
1172
|
+
throw await deserializeAws_restJson1ResourceNotFoundExceptionResponse(parsedOutput, context);
|
|
1173
|
+
case "ThrottlingException":
|
|
1174
|
+
case "com.amazonaws.sagemakergeospatial#ThrottlingException":
|
|
1175
|
+
throw await deserializeAws_restJson1ThrottlingExceptionResponse(parsedOutput, context);
|
|
1176
|
+
case "ValidationException":
|
|
1177
|
+
case "com.amazonaws.sagemakergeospatial#ValidationException":
|
|
1178
|
+
throw await deserializeAws_restJson1ValidationExceptionResponse(parsedOutput, context);
|
|
1179
|
+
default:
|
|
1180
|
+
const parsedBody = parsedOutput.body;
|
|
1181
|
+
(0, smithy_client_1.throwDefaultError)({
|
|
1182
|
+
output,
|
|
1183
|
+
parsedBody,
|
|
1184
|
+
exceptionCtor: SageMakerGeospatialServiceException_1.SageMakerGeospatialServiceException,
|
|
1185
|
+
errorCode,
|
|
1186
|
+
});
|
|
1187
|
+
}
|
|
1188
|
+
};
|
|
1189
|
+
const deserializeAws_restJson1StartEarthObservationJobCommand = async (output, context) => {
|
|
1190
|
+
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
1191
|
+
return deserializeAws_restJson1StartEarthObservationJobCommandError(output, context);
|
|
1192
|
+
}
|
|
1193
|
+
const contents = map({
|
|
1194
|
+
$metadata: deserializeMetadata(output),
|
|
1195
|
+
});
|
|
1196
|
+
const data = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.expectObject)(await parseBody(output.body, context)), "body");
|
|
1197
|
+
if (data.Arn != null) {
|
|
1198
|
+
contents.Arn = (0, smithy_client_1.expectString)(data.Arn);
|
|
1199
|
+
}
|
|
1200
|
+
if (data.CreationTime != null) {
|
|
1201
|
+
contents.CreationTime = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(data.CreationTime)));
|
|
1202
|
+
}
|
|
1203
|
+
if (data.DurationInSeconds != null) {
|
|
1204
|
+
contents.DurationInSeconds = (0, smithy_client_1.expectInt32)(data.DurationInSeconds);
|
|
1205
|
+
}
|
|
1206
|
+
if (data.ExecutionRoleArn != null) {
|
|
1207
|
+
contents.ExecutionRoleArn = (0, smithy_client_1.expectString)(data.ExecutionRoleArn);
|
|
1208
|
+
}
|
|
1209
|
+
if (data.InputConfig != null) {
|
|
1210
|
+
contents.InputConfig = deserializeAws_restJson1InputConfigOutput(data.InputConfig, context);
|
|
1211
|
+
}
|
|
1212
|
+
if (data.JobConfig != null) {
|
|
1213
|
+
contents.JobConfig = deserializeAws_restJson1JobConfigInput((0, smithy_client_1.expectUnion)(data.JobConfig), context);
|
|
1214
|
+
}
|
|
1215
|
+
if (data.KmsKeyId != null) {
|
|
1216
|
+
contents.KmsKeyId = (0, smithy_client_1.expectString)(data.KmsKeyId);
|
|
1217
|
+
}
|
|
1218
|
+
if (data.Name != null) {
|
|
1219
|
+
contents.Name = (0, smithy_client_1.expectString)(data.Name);
|
|
1220
|
+
}
|
|
1221
|
+
if (data.Status != null) {
|
|
1222
|
+
contents.Status = (0, smithy_client_1.expectString)(data.Status);
|
|
1223
|
+
}
|
|
1224
|
+
if (data.Tags != null) {
|
|
1225
|
+
contents.Tags = deserializeAws_restJson1Tags(data.Tags, context);
|
|
1226
|
+
}
|
|
1227
|
+
return contents;
|
|
1228
|
+
};
|
|
1229
|
+
exports.deserializeAws_restJson1StartEarthObservationJobCommand = deserializeAws_restJson1StartEarthObservationJobCommand;
|
|
1230
|
+
const deserializeAws_restJson1StartEarthObservationJobCommandError = async (output, context) => {
|
|
1231
|
+
const parsedOutput = {
|
|
1232
|
+
...output,
|
|
1233
|
+
body: await parseErrorBody(output.body, context),
|
|
1234
|
+
};
|
|
1235
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1236
|
+
switch (errorCode) {
|
|
1237
|
+
case "AccessDeniedException":
|
|
1238
|
+
case "com.amazonaws.sagemakergeospatial#AccessDeniedException":
|
|
1239
|
+
throw await deserializeAws_restJson1AccessDeniedExceptionResponse(parsedOutput, context);
|
|
1240
|
+
case "ConflictException":
|
|
1241
|
+
case "com.amazonaws.sagemakergeospatial#ConflictException":
|
|
1242
|
+
throw await deserializeAws_restJson1ConflictExceptionResponse(parsedOutput, context);
|
|
1243
|
+
case "InternalServerException":
|
|
1244
|
+
case "com.amazonaws.sagemakergeospatial#InternalServerException":
|
|
1245
|
+
throw await deserializeAws_restJson1InternalServerExceptionResponse(parsedOutput, context);
|
|
1246
|
+
case "ResourceNotFoundException":
|
|
1247
|
+
case "com.amazonaws.sagemakergeospatial#ResourceNotFoundException":
|
|
1248
|
+
throw await deserializeAws_restJson1ResourceNotFoundExceptionResponse(parsedOutput, context);
|
|
1249
|
+
case "ServiceQuotaExceededException":
|
|
1250
|
+
case "com.amazonaws.sagemakergeospatial#ServiceQuotaExceededException":
|
|
1251
|
+
throw await deserializeAws_restJson1ServiceQuotaExceededExceptionResponse(parsedOutput, context);
|
|
1252
|
+
case "ThrottlingException":
|
|
1253
|
+
case "com.amazonaws.sagemakergeospatial#ThrottlingException":
|
|
1254
|
+
throw await deserializeAws_restJson1ThrottlingExceptionResponse(parsedOutput, context);
|
|
1255
|
+
case "ValidationException":
|
|
1256
|
+
case "com.amazonaws.sagemakergeospatial#ValidationException":
|
|
1257
|
+
throw await deserializeAws_restJson1ValidationExceptionResponse(parsedOutput, context);
|
|
1258
|
+
default:
|
|
1259
|
+
const parsedBody = parsedOutput.body;
|
|
1260
|
+
(0, smithy_client_1.throwDefaultError)({
|
|
1261
|
+
output,
|
|
1262
|
+
parsedBody,
|
|
1263
|
+
exceptionCtor: SageMakerGeospatialServiceException_1.SageMakerGeospatialServiceException,
|
|
1264
|
+
errorCode,
|
|
1265
|
+
});
|
|
1266
|
+
}
|
|
1267
|
+
};
|
|
1268
|
+
const deserializeAws_restJson1StartVectorEnrichmentJobCommand = async (output, context) => {
|
|
1269
|
+
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
1270
|
+
return deserializeAws_restJson1StartVectorEnrichmentJobCommandError(output, context);
|
|
1271
|
+
}
|
|
1272
|
+
const contents = map({
|
|
1273
|
+
$metadata: deserializeMetadata(output),
|
|
1274
|
+
});
|
|
1275
|
+
const data = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.expectObject)(await parseBody(output.body, context)), "body");
|
|
1276
|
+
if (data.Arn != null) {
|
|
1277
|
+
contents.Arn = (0, smithy_client_1.expectString)(data.Arn);
|
|
1278
|
+
}
|
|
1279
|
+
if (data.CreationTime != null) {
|
|
1280
|
+
contents.CreationTime = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(data.CreationTime)));
|
|
1281
|
+
}
|
|
1282
|
+
if (data.DurationInSeconds != null) {
|
|
1283
|
+
contents.DurationInSeconds = (0, smithy_client_1.expectInt32)(data.DurationInSeconds);
|
|
1284
|
+
}
|
|
1285
|
+
if (data.ExecutionRoleArn != null) {
|
|
1286
|
+
contents.ExecutionRoleArn = (0, smithy_client_1.expectString)(data.ExecutionRoleArn);
|
|
1287
|
+
}
|
|
1288
|
+
if (data.InputConfig != null) {
|
|
1289
|
+
contents.InputConfig = deserializeAws_restJson1VectorEnrichmentJobInputConfig(data.InputConfig, context);
|
|
1290
|
+
}
|
|
1291
|
+
if (data.JobConfig != null) {
|
|
1292
|
+
contents.JobConfig = deserializeAws_restJson1VectorEnrichmentJobConfig((0, smithy_client_1.expectUnion)(data.JobConfig), context);
|
|
1293
|
+
}
|
|
1294
|
+
if (data.KmsKeyId != null) {
|
|
1295
|
+
contents.KmsKeyId = (0, smithy_client_1.expectString)(data.KmsKeyId);
|
|
1296
|
+
}
|
|
1297
|
+
if (data.Name != null) {
|
|
1298
|
+
contents.Name = (0, smithy_client_1.expectString)(data.Name);
|
|
1299
|
+
}
|
|
1300
|
+
if (data.Status != null) {
|
|
1301
|
+
contents.Status = (0, smithy_client_1.expectString)(data.Status);
|
|
1302
|
+
}
|
|
1303
|
+
if (data.Tags != null) {
|
|
1304
|
+
contents.Tags = deserializeAws_restJson1Tags(data.Tags, context);
|
|
1305
|
+
}
|
|
1306
|
+
if (data.Type != null) {
|
|
1307
|
+
contents.Type = (0, smithy_client_1.expectString)(data.Type);
|
|
1308
|
+
}
|
|
1309
|
+
return contents;
|
|
1310
|
+
};
|
|
1311
|
+
exports.deserializeAws_restJson1StartVectorEnrichmentJobCommand = deserializeAws_restJson1StartVectorEnrichmentJobCommand;
|
|
1312
|
+
const deserializeAws_restJson1StartVectorEnrichmentJobCommandError = async (output, context) => {
|
|
1313
|
+
const parsedOutput = {
|
|
1314
|
+
...output,
|
|
1315
|
+
body: await parseErrorBody(output.body, context),
|
|
1316
|
+
};
|
|
1317
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1318
|
+
switch (errorCode) {
|
|
1319
|
+
case "AccessDeniedException":
|
|
1320
|
+
case "com.amazonaws.sagemakergeospatial#AccessDeniedException":
|
|
1321
|
+
throw await deserializeAws_restJson1AccessDeniedExceptionResponse(parsedOutput, context);
|
|
1322
|
+
case "ConflictException":
|
|
1323
|
+
case "com.amazonaws.sagemakergeospatial#ConflictException":
|
|
1324
|
+
throw await deserializeAws_restJson1ConflictExceptionResponse(parsedOutput, context);
|
|
1325
|
+
case "InternalServerException":
|
|
1326
|
+
case "com.amazonaws.sagemakergeospatial#InternalServerException":
|
|
1327
|
+
throw await deserializeAws_restJson1InternalServerExceptionResponse(parsedOutput, context);
|
|
1328
|
+
case "ResourceNotFoundException":
|
|
1329
|
+
case "com.amazonaws.sagemakergeospatial#ResourceNotFoundException":
|
|
1330
|
+
throw await deserializeAws_restJson1ResourceNotFoundExceptionResponse(parsedOutput, context);
|
|
1331
|
+
case "ServiceQuotaExceededException":
|
|
1332
|
+
case "com.amazonaws.sagemakergeospatial#ServiceQuotaExceededException":
|
|
1333
|
+
throw await deserializeAws_restJson1ServiceQuotaExceededExceptionResponse(parsedOutput, context);
|
|
1334
|
+
case "ThrottlingException":
|
|
1335
|
+
case "com.amazonaws.sagemakergeospatial#ThrottlingException":
|
|
1336
|
+
throw await deserializeAws_restJson1ThrottlingExceptionResponse(parsedOutput, context);
|
|
1337
|
+
case "ValidationException":
|
|
1338
|
+
case "com.amazonaws.sagemakergeospatial#ValidationException":
|
|
1339
|
+
throw await deserializeAws_restJson1ValidationExceptionResponse(parsedOutput, context);
|
|
1340
|
+
default:
|
|
1341
|
+
const parsedBody = parsedOutput.body;
|
|
1342
|
+
(0, smithy_client_1.throwDefaultError)({
|
|
1343
|
+
output,
|
|
1344
|
+
parsedBody,
|
|
1345
|
+
exceptionCtor: SageMakerGeospatialServiceException_1.SageMakerGeospatialServiceException,
|
|
1346
|
+
errorCode,
|
|
1347
|
+
});
|
|
1348
|
+
}
|
|
1349
|
+
};
|
|
1350
|
+
const deserializeAws_restJson1StopEarthObservationJobCommand = async (output, context) => {
|
|
1351
|
+
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
1352
|
+
return deserializeAws_restJson1StopEarthObservationJobCommandError(output, context);
|
|
1353
|
+
}
|
|
1354
|
+
const contents = map({
|
|
1355
|
+
$metadata: deserializeMetadata(output),
|
|
1356
|
+
});
|
|
1357
|
+
await collectBody(output.body, context);
|
|
1358
|
+
return contents;
|
|
1359
|
+
};
|
|
1360
|
+
exports.deserializeAws_restJson1StopEarthObservationJobCommand = deserializeAws_restJson1StopEarthObservationJobCommand;
|
|
1361
|
+
const deserializeAws_restJson1StopEarthObservationJobCommandError = async (output, context) => {
|
|
1362
|
+
const parsedOutput = {
|
|
1363
|
+
...output,
|
|
1364
|
+
body: await parseErrorBody(output.body, context),
|
|
1365
|
+
};
|
|
1366
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1367
|
+
switch (errorCode) {
|
|
1368
|
+
case "AccessDeniedException":
|
|
1369
|
+
case "com.amazonaws.sagemakergeospatial#AccessDeniedException":
|
|
1370
|
+
throw await deserializeAws_restJson1AccessDeniedExceptionResponse(parsedOutput, context);
|
|
1371
|
+
case "ConflictException":
|
|
1372
|
+
case "com.amazonaws.sagemakergeospatial#ConflictException":
|
|
1373
|
+
throw await deserializeAws_restJson1ConflictExceptionResponse(parsedOutput, context);
|
|
1374
|
+
case "InternalServerException":
|
|
1375
|
+
case "com.amazonaws.sagemakergeospatial#InternalServerException":
|
|
1376
|
+
throw await deserializeAws_restJson1InternalServerExceptionResponse(parsedOutput, context);
|
|
1377
|
+
case "ResourceNotFoundException":
|
|
1378
|
+
case "com.amazonaws.sagemakergeospatial#ResourceNotFoundException":
|
|
1379
|
+
throw await deserializeAws_restJson1ResourceNotFoundExceptionResponse(parsedOutput, context);
|
|
1380
|
+
case "ThrottlingException":
|
|
1381
|
+
case "com.amazonaws.sagemakergeospatial#ThrottlingException":
|
|
1382
|
+
throw await deserializeAws_restJson1ThrottlingExceptionResponse(parsedOutput, context);
|
|
1383
|
+
case "ValidationException":
|
|
1384
|
+
case "com.amazonaws.sagemakergeospatial#ValidationException":
|
|
1385
|
+
throw await deserializeAws_restJson1ValidationExceptionResponse(parsedOutput, context);
|
|
1386
|
+
default:
|
|
1387
|
+
const parsedBody = parsedOutput.body;
|
|
1388
|
+
(0, smithy_client_1.throwDefaultError)({
|
|
1389
|
+
output,
|
|
1390
|
+
parsedBody,
|
|
1391
|
+
exceptionCtor: SageMakerGeospatialServiceException_1.SageMakerGeospatialServiceException,
|
|
1392
|
+
errorCode,
|
|
1393
|
+
});
|
|
1394
|
+
}
|
|
1395
|
+
};
|
|
1396
|
+
const deserializeAws_restJson1StopVectorEnrichmentJobCommand = async (output, context) => {
|
|
1397
|
+
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
1398
|
+
return deserializeAws_restJson1StopVectorEnrichmentJobCommandError(output, context);
|
|
1399
|
+
}
|
|
1400
|
+
const contents = map({
|
|
1401
|
+
$metadata: deserializeMetadata(output),
|
|
1402
|
+
});
|
|
1403
|
+
await collectBody(output.body, context);
|
|
1404
|
+
return contents;
|
|
1405
|
+
};
|
|
1406
|
+
exports.deserializeAws_restJson1StopVectorEnrichmentJobCommand = deserializeAws_restJson1StopVectorEnrichmentJobCommand;
|
|
1407
|
+
const deserializeAws_restJson1StopVectorEnrichmentJobCommandError = async (output, context) => {
|
|
1408
|
+
const parsedOutput = {
|
|
1409
|
+
...output,
|
|
1410
|
+
body: await parseErrorBody(output.body, context),
|
|
1411
|
+
};
|
|
1412
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1413
|
+
switch (errorCode) {
|
|
1414
|
+
case "AccessDeniedException":
|
|
1415
|
+
case "com.amazonaws.sagemakergeospatial#AccessDeniedException":
|
|
1416
|
+
throw await deserializeAws_restJson1AccessDeniedExceptionResponse(parsedOutput, context);
|
|
1417
|
+
case "ConflictException":
|
|
1418
|
+
case "com.amazonaws.sagemakergeospatial#ConflictException":
|
|
1419
|
+
throw await deserializeAws_restJson1ConflictExceptionResponse(parsedOutput, context);
|
|
1420
|
+
case "InternalServerException":
|
|
1421
|
+
case "com.amazonaws.sagemakergeospatial#InternalServerException":
|
|
1422
|
+
throw await deserializeAws_restJson1InternalServerExceptionResponse(parsedOutput, context);
|
|
1423
|
+
case "ResourceNotFoundException":
|
|
1424
|
+
case "com.amazonaws.sagemakergeospatial#ResourceNotFoundException":
|
|
1425
|
+
throw await deserializeAws_restJson1ResourceNotFoundExceptionResponse(parsedOutput, context);
|
|
1426
|
+
case "ThrottlingException":
|
|
1427
|
+
case "com.amazonaws.sagemakergeospatial#ThrottlingException":
|
|
1428
|
+
throw await deserializeAws_restJson1ThrottlingExceptionResponse(parsedOutput, context);
|
|
1429
|
+
case "ValidationException":
|
|
1430
|
+
case "com.amazonaws.sagemakergeospatial#ValidationException":
|
|
1431
|
+
throw await deserializeAws_restJson1ValidationExceptionResponse(parsedOutput, context);
|
|
1432
|
+
default:
|
|
1433
|
+
const parsedBody = parsedOutput.body;
|
|
1434
|
+
(0, smithy_client_1.throwDefaultError)({
|
|
1435
|
+
output,
|
|
1436
|
+
parsedBody,
|
|
1437
|
+
exceptionCtor: SageMakerGeospatialServiceException_1.SageMakerGeospatialServiceException,
|
|
1438
|
+
errorCode,
|
|
1439
|
+
});
|
|
1440
|
+
}
|
|
1441
|
+
};
|
|
1442
|
+
const deserializeAws_restJson1TagResourceCommand = async (output, context) => {
|
|
1443
|
+
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
1444
|
+
return deserializeAws_restJson1TagResourceCommandError(output, context);
|
|
1445
|
+
}
|
|
1446
|
+
const contents = map({
|
|
1447
|
+
$metadata: deserializeMetadata(output),
|
|
1448
|
+
});
|
|
1449
|
+
await collectBody(output.body, context);
|
|
1450
|
+
return contents;
|
|
1451
|
+
};
|
|
1452
|
+
exports.deserializeAws_restJson1TagResourceCommand = deserializeAws_restJson1TagResourceCommand;
|
|
1453
|
+
const deserializeAws_restJson1TagResourceCommandError = async (output, context) => {
|
|
1454
|
+
const parsedOutput = {
|
|
1455
|
+
...output,
|
|
1456
|
+
body: await parseErrorBody(output.body, context),
|
|
1457
|
+
};
|
|
1458
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1459
|
+
switch (errorCode) {
|
|
1460
|
+
case "AccessDeniedException":
|
|
1461
|
+
case "com.amazonaws.sagemakergeospatial#AccessDeniedException":
|
|
1462
|
+
throw await deserializeAws_restJson1AccessDeniedExceptionResponse(parsedOutput, context);
|
|
1463
|
+
case "InternalServerException":
|
|
1464
|
+
case "com.amazonaws.sagemakergeospatial#InternalServerException":
|
|
1465
|
+
throw await deserializeAws_restJson1InternalServerExceptionResponse(parsedOutput, context);
|
|
1466
|
+
case "ResourceNotFoundException":
|
|
1467
|
+
case "com.amazonaws.sagemakergeospatial#ResourceNotFoundException":
|
|
1468
|
+
throw await deserializeAws_restJson1ResourceNotFoundExceptionResponse(parsedOutput, context);
|
|
1469
|
+
case "ThrottlingException":
|
|
1470
|
+
case "com.amazonaws.sagemakergeospatial#ThrottlingException":
|
|
1471
|
+
throw await deserializeAws_restJson1ThrottlingExceptionResponse(parsedOutput, context);
|
|
1472
|
+
case "ValidationException":
|
|
1473
|
+
case "com.amazonaws.sagemakergeospatial#ValidationException":
|
|
1474
|
+
throw await deserializeAws_restJson1ValidationExceptionResponse(parsedOutput, context);
|
|
1475
|
+
default:
|
|
1476
|
+
const parsedBody = parsedOutput.body;
|
|
1477
|
+
(0, smithy_client_1.throwDefaultError)({
|
|
1478
|
+
output,
|
|
1479
|
+
parsedBody,
|
|
1480
|
+
exceptionCtor: SageMakerGeospatialServiceException_1.SageMakerGeospatialServiceException,
|
|
1481
|
+
errorCode,
|
|
1482
|
+
});
|
|
1483
|
+
}
|
|
1484
|
+
};
|
|
1485
|
+
const deserializeAws_restJson1UntagResourceCommand = async (output, context) => {
|
|
1486
|
+
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
1487
|
+
return deserializeAws_restJson1UntagResourceCommandError(output, context);
|
|
1488
|
+
}
|
|
1489
|
+
const contents = map({
|
|
1490
|
+
$metadata: deserializeMetadata(output),
|
|
1491
|
+
});
|
|
1492
|
+
await collectBody(output.body, context);
|
|
1493
|
+
return contents;
|
|
1494
|
+
};
|
|
1495
|
+
exports.deserializeAws_restJson1UntagResourceCommand = deserializeAws_restJson1UntagResourceCommand;
|
|
1496
|
+
const deserializeAws_restJson1UntagResourceCommandError = async (output, context) => {
|
|
1497
|
+
const parsedOutput = {
|
|
1498
|
+
...output,
|
|
1499
|
+
body: await parseErrorBody(output.body, context),
|
|
1500
|
+
};
|
|
1501
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1502
|
+
switch (errorCode) {
|
|
1503
|
+
case "AccessDeniedException":
|
|
1504
|
+
case "com.amazonaws.sagemakergeospatial#AccessDeniedException":
|
|
1505
|
+
throw await deserializeAws_restJson1AccessDeniedExceptionResponse(parsedOutput, context);
|
|
1506
|
+
case "InternalServerException":
|
|
1507
|
+
case "com.amazonaws.sagemakergeospatial#InternalServerException":
|
|
1508
|
+
throw await deserializeAws_restJson1InternalServerExceptionResponse(parsedOutput, context);
|
|
1509
|
+
case "ResourceNotFoundException":
|
|
1510
|
+
case "com.amazonaws.sagemakergeospatial#ResourceNotFoundException":
|
|
1511
|
+
throw await deserializeAws_restJson1ResourceNotFoundExceptionResponse(parsedOutput, context);
|
|
1512
|
+
case "ThrottlingException":
|
|
1513
|
+
case "com.amazonaws.sagemakergeospatial#ThrottlingException":
|
|
1514
|
+
throw await deserializeAws_restJson1ThrottlingExceptionResponse(parsedOutput, context);
|
|
1515
|
+
case "ValidationException":
|
|
1516
|
+
case "com.amazonaws.sagemakergeospatial#ValidationException":
|
|
1517
|
+
throw await deserializeAws_restJson1ValidationExceptionResponse(parsedOutput, context);
|
|
1518
|
+
default:
|
|
1519
|
+
const parsedBody = parsedOutput.body;
|
|
1520
|
+
(0, smithy_client_1.throwDefaultError)({
|
|
1521
|
+
output,
|
|
1522
|
+
parsedBody,
|
|
1523
|
+
exceptionCtor: SageMakerGeospatialServiceException_1.SageMakerGeospatialServiceException,
|
|
1524
|
+
errorCode,
|
|
1525
|
+
});
|
|
1526
|
+
}
|
|
1527
|
+
};
|
|
1528
|
+
const map = smithy_client_1.map;
|
|
1529
|
+
const deserializeAws_restJson1AccessDeniedExceptionResponse = async (parsedOutput, context) => {
|
|
1530
|
+
const contents = map({});
|
|
1531
|
+
const data = parsedOutput.body;
|
|
1532
|
+
if (data.Message != null) {
|
|
1533
|
+
contents.Message = (0, smithy_client_1.expectString)(data.Message);
|
|
1534
|
+
}
|
|
1535
|
+
const exception = new models_0_1.AccessDeniedException({
|
|
1536
|
+
$metadata: deserializeMetadata(parsedOutput),
|
|
1537
|
+
...contents,
|
|
1538
|
+
});
|
|
1539
|
+
return (0, smithy_client_1.decorateServiceException)(exception, parsedOutput.body);
|
|
1540
|
+
};
|
|
1541
|
+
const deserializeAws_restJson1ConflictExceptionResponse = async (parsedOutput, context) => {
|
|
1542
|
+
const contents = map({});
|
|
1543
|
+
const data = parsedOutput.body;
|
|
1544
|
+
if (data.Message != null) {
|
|
1545
|
+
contents.Message = (0, smithy_client_1.expectString)(data.Message);
|
|
1546
|
+
}
|
|
1547
|
+
if (data.ResourceId != null) {
|
|
1548
|
+
contents.ResourceId = (0, smithy_client_1.expectString)(data.ResourceId);
|
|
1549
|
+
}
|
|
1550
|
+
const exception = new models_0_1.ConflictException({
|
|
1551
|
+
$metadata: deserializeMetadata(parsedOutput),
|
|
1552
|
+
...contents,
|
|
1553
|
+
});
|
|
1554
|
+
return (0, smithy_client_1.decorateServiceException)(exception, parsedOutput.body);
|
|
1555
|
+
};
|
|
1556
|
+
const deserializeAws_restJson1InternalServerExceptionResponse = async (parsedOutput, context) => {
|
|
1557
|
+
const contents = map({});
|
|
1558
|
+
const data = parsedOutput.body;
|
|
1559
|
+
if (data.Message != null) {
|
|
1560
|
+
contents.Message = (0, smithy_client_1.expectString)(data.Message);
|
|
1561
|
+
}
|
|
1562
|
+
if (data.ResourceId != null) {
|
|
1563
|
+
contents.ResourceId = (0, smithy_client_1.expectString)(data.ResourceId);
|
|
1564
|
+
}
|
|
1565
|
+
const exception = new models_0_1.InternalServerException({
|
|
1566
|
+
$metadata: deserializeMetadata(parsedOutput),
|
|
1567
|
+
...contents,
|
|
1568
|
+
});
|
|
1569
|
+
return (0, smithy_client_1.decorateServiceException)(exception, parsedOutput.body);
|
|
1570
|
+
};
|
|
1571
|
+
const deserializeAws_restJson1ResourceNotFoundExceptionResponse = async (parsedOutput, context) => {
|
|
1572
|
+
const contents = map({});
|
|
1573
|
+
const data = parsedOutput.body;
|
|
1574
|
+
if (data.Message != null) {
|
|
1575
|
+
contents.Message = (0, smithy_client_1.expectString)(data.Message);
|
|
1576
|
+
}
|
|
1577
|
+
if (data.ResourceId != null) {
|
|
1578
|
+
contents.ResourceId = (0, smithy_client_1.expectString)(data.ResourceId);
|
|
1579
|
+
}
|
|
1580
|
+
const exception = new models_0_1.ResourceNotFoundException({
|
|
1581
|
+
$metadata: deserializeMetadata(parsedOutput),
|
|
1582
|
+
...contents,
|
|
1583
|
+
});
|
|
1584
|
+
return (0, smithy_client_1.decorateServiceException)(exception, parsedOutput.body);
|
|
1585
|
+
};
|
|
1586
|
+
const deserializeAws_restJson1ServiceQuotaExceededExceptionResponse = async (parsedOutput, context) => {
|
|
1587
|
+
const contents = map({});
|
|
1588
|
+
const data = parsedOutput.body;
|
|
1589
|
+
if (data.Message != null) {
|
|
1590
|
+
contents.Message = (0, smithy_client_1.expectString)(data.Message);
|
|
1591
|
+
}
|
|
1592
|
+
if (data.ResourceId != null) {
|
|
1593
|
+
contents.ResourceId = (0, smithy_client_1.expectString)(data.ResourceId);
|
|
1594
|
+
}
|
|
1595
|
+
const exception = new models_0_1.ServiceQuotaExceededException({
|
|
1596
|
+
$metadata: deserializeMetadata(parsedOutput),
|
|
1597
|
+
...contents,
|
|
1598
|
+
});
|
|
1599
|
+
return (0, smithy_client_1.decorateServiceException)(exception, parsedOutput.body);
|
|
1600
|
+
};
|
|
1601
|
+
const deserializeAws_restJson1ThrottlingExceptionResponse = async (parsedOutput, context) => {
|
|
1602
|
+
const contents = map({});
|
|
1603
|
+
const data = parsedOutput.body;
|
|
1604
|
+
if (data.Message != null) {
|
|
1605
|
+
contents.Message = (0, smithy_client_1.expectString)(data.Message);
|
|
1606
|
+
}
|
|
1607
|
+
if (data.ResourceId != null) {
|
|
1608
|
+
contents.ResourceId = (0, smithy_client_1.expectString)(data.ResourceId);
|
|
1609
|
+
}
|
|
1610
|
+
const exception = new models_0_1.ThrottlingException({
|
|
1611
|
+
$metadata: deserializeMetadata(parsedOutput),
|
|
1612
|
+
...contents,
|
|
1613
|
+
});
|
|
1614
|
+
return (0, smithy_client_1.decorateServiceException)(exception, parsedOutput.body);
|
|
1615
|
+
};
|
|
1616
|
+
const deserializeAws_restJson1ValidationExceptionResponse = async (parsedOutput, context) => {
|
|
1617
|
+
const contents = map({});
|
|
1618
|
+
const data = parsedOutput.body;
|
|
1619
|
+
if (data.Message != null) {
|
|
1620
|
+
contents.Message = (0, smithy_client_1.expectString)(data.Message);
|
|
1621
|
+
}
|
|
1622
|
+
if (data.ResourceId != null) {
|
|
1623
|
+
contents.ResourceId = (0, smithy_client_1.expectString)(data.ResourceId);
|
|
1624
|
+
}
|
|
1625
|
+
const exception = new models_0_1.ValidationException({
|
|
1626
|
+
$metadata: deserializeMetadata(parsedOutput),
|
|
1627
|
+
...contents,
|
|
1628
|
+
});
|
|
1629
|
+
return (0, smithy_client_1.decorateServiceException)(exception, parsedOutput.body);
|
|
1630
|
+
};
|
|
1631
|
+
const serializeAws_restJson1AreaOfInterest = (input, context) => {
|
|
1632
|
+
return models_0_1.AreaOfInterest.visit(input, {
|
|
1633
|
+
AreaOfInterestGeometry: (value) => ({
|
|
1634
|
+
AreaOfInterestGeometry: serializeAws_restJson1AreaOfInterestGeometry(value, context),
|
|
1635
|
+
}),
|
|
1636
|
+
_: (name, value) => ({ name: value }),
|
|
1637
|
+
});
|
|
1638
|
+
};
|
|
1639
|
+
const serializeAws_restJson1AreaOfInterestGeometry = (input, context) => {
|
|
1640
|
+
return models_0_1.AreaOfInterestGeometry.visit(input, {
|
|
1641
|
+
MultiPolygonGeometry: (value) => ({
|
|
1642
|
+
MultiPolygonGeometry: serializeAws_restJson1MultiPolygonGeometryInput(value, context),
|
|
1643
|
+
}),
|
|
1644
|
+
PolygonGeometry: (value) => ({ PolygonGeometry: serializeAws_restJson1PolygonGeometryInput(value, context) }),
|
|
1645
|
+
_: (name, value) => ({ name: value }),
|
|
1646
|
+
});
|
|
1647
|
+
};
|
|
1648
|
+
const serializeAws_restJson1BandMathConfigInput = (input, context) => {
|
|
1649
|
+
return {
|
|
1650
|
+
...(input.CustomIndices != null && {
|
|
1651
|
+
CustomIndices: serializeAws_restJson1CustomIndicesInput(input.CustomIndices, context),
|
|
1652
|
+
}),
|
|
1653
|
+
...(input.PredefinedIndices != null && {
|
|
1654
|
+
PredefinedIndices: serializeAws_restJson1StringListInput(input.PredefinedIndices, context),
|
|
1655
|
+
}),
|
|
1656
|
+
};
|
|
1657
|
+
};
|
|
1658
|
+
const serializeAws_restJson1CloudMaskingConfigInput = (input, context) => {
|
|
1659
|
+
return {};
|
|
1660
|
+
};
|
|
1661
|
+
const serializeAws_restJson1CloudRemovalConfigInput = (input, context) => {
|
|
1662
|
+
return {
|
|
1663
|
+
...(input.AlgorithmName != null && { AlgorithmName: input.AlgorithmName }),
|
|
1664
|
+
...(input.InterpolationValue != null && { InterpolationValue: input.InterpolationValue }),
|
|
1665
|
+
...(input.TargetBands != null && {
|
|
1666
|
+
TargetBands: serializeAws_restJson1StringListInput(input.TargetBands, context),
|
|
1667
|
+
}),
|
|
1668
|
+
};
|
|
1669
|
+
};
|
|
1670
|
+
const serializeAws_restJson1CustomIndicesInput = (input, context) => {
|
|
1671
|
+
return {
|
|
1672
|
+
...(input.Operations != null && {
|
|
1673
|
+
Operations: serializeAws_restJson1OperationsListInput(input.Operations, context),
|
|
1674
|
+
}),
|
|
1675
|
+
};
|
|
1676
|
+
};
|
|
1677
|
+
const serializeAws_restJson1EoCloudCoverInput = (input, context) => {
|
|
1678
|
+
return {
|
|
1679
|
+
...(input.LowerBound != null && { LowerBound: (0, smithy_client_1.serializeFloat)(input.LowerBound) }),
|
|
1680
|
+
...(input.UpperBound != null && { UpperBound: (0, smithy_client_1.serializeFloat)(input.UpperBound) }),
|
|
1681
|
+
};
|
|
1682
|
+
};
|
|
1683
|
+
const serializeAws_restJson1EojDataSourceConfigInput = (input, context) => {
|
|
1684
|
+
return models_0_1.EojDataSourceConfigInput.visit(input, {
|
|
1685
|
+
S3Data: (value) => ({ S3Data: serializeAws_restJson1S3DataInput(value, context) }),
|
|
1686
|
+
_: (name, value) => ({ name: value }),
|
|
1687
|
+
});
|
|
1688
|
+
};
|
|
1689
|
+
const serializeAws_restJson1ExportS3DataInput = (input, context) => {
|
|
1690
|
+
return {
|
|
1691
|
+
...(input.KmsKeyId != null && { KmsKeyId: input.KmsKeyId }),
|
|
1692
|
+
...(input.S3Uri != null && { S3Uri: input.S3Uri }),
|
|
1693
|
+
};
|
|
1694
|
+
};
|
|
1695
|
+
const serializeAws_restJson1ExportVectorEnrichmentJobOutputConfig = (input, context) => {
|
|
1696
|
+
return {
|
|
1697
|
+
...(input.S3Data != null && { S3Data: serializeAws_restJson1VectorEnrichmentJobS3Data(input.S3Data, context) }),
|
|
1698
|
+
};
|
|
1699
|
+
};
|
|
1700
|
+
const serializeAws_restJson1GeoMosaicConfigInput = (input, context) => {
|
|
1701
|
+
return {
|
|
1702
|
+
...(input.AlgorithmName != null && { AlgorithmName: input.AlgorithmName }),
|
|
1703
|
+
...(input.TargetBands != null && {
|
|
1704
|
+
TargetBands: serializeAws_restJson1StringListInput(input.TargetBands, context),
|
|
1705
|
+
}),
|
|
1706
|
+
};
|
|
1707
|
+
};
|
|
1708
|
+
const serializeAws_restJson1InputConfigInput = (input, context) => {
|
|
1709
|
+
return {
|
|
1710
|
+
...(input.DataSourceConfig != null && {
|
|
1711
|
+
DataSourceConfig: serializeAws_restJson1EojDataSourceConfigInput(input.DataSourceConfig, context),
|
|
1712
|
+
}),
|
|
1713
|
+
...(input.PreviousEarthObservationJobArn != null && {
|
|
1714
|
+
PreviousEarthObservationJobArn: input.PreviousEarthObservationJobArn,
|
|
1715
|
+
}),
|
|
1716
|
+
...(input.RasterDataCollectionQuery != null && {
|
|
1717
|
+
RasterDataCollectionQuery: serializeAws_restJson1RasterDataCollectionQueryInput(input.RasterDataCollectionQuery, context),
|
|
1718
|
+
}),
|
|
1719
|
+
};
|
|
1720
|
+
};
|
|
1721
|
+
const serializeAws_restJson1JobConfigInput = (input, context) => {
|
|
1722
|
+
return models_0_1.JobConfigInput.visit(input, {
|
|
1723
|
+
BandMathConfig: (value) => ({ BandMathConfig: serializeAws_restJson1BandMathConfigInput(value, context) }),
|
|
1724
|
+
CloudMaskingConfig: (value) => ({
|
|
1725
|
+
CloudMaskingConfig: serializeAws_restJson1CloudMaskingConfigInput(value, context),
|
|
1726
|
+
}),
|
|
1727
|
+
CloudRemovalConfig: (value) => ({
|
|
1728
|
+
CloudRemovalConfig: serializeAws_restJson1CloudRemovalConfigInput(value, context),
|
|
1729
|
+
}),
|
|
1730
|
+
GeoMosaicConfig: (value) => ({ GeoMosaicConfig: serializeAws_restJson1GeoMosaicConfigInput(value, context) }),
|
|
1731
|
+
LandCoverSegmentationConfig: (value) => ({
|
|
1732
|
+
LandCoverSegmentationConfig: serializeAws_restJson1LandCoverSegmentationConfigInput(value, context),
|
|
1733
|
+
}),
|
|
1734
|
+
ResamplingConfig: (value) => ({ ResamplingConfig: serializeAws_restJson1ResamplingConfigInput(value, context) }),
|
|
1735
|
+
StackConfig: (value) => ({ StackConfig: serializeAws_restJson1StackConfigInput(value, context) }),
|
|
1736
|
+
TemporalStatisticsConfig: (value) => ({
|
|
1737
|
+
TemporalStatisticsConfig: serializeAws_restJson1TemporalStatisticsConfigInput(value, context),
|
|
1738
|
+
}),
|
|
1739
|
+
ZonalStatisticsConfig: (value) => ({
|
|
1740
|
+
ZonalStatisticsConfig: serializeAws_restJson1ZonalStatisticsConfigInput(value, context),
|
|
1741
|
+
}),
|
|
1742
|
+
_: (name, value) => ({ name: value }),
|
|
1743
|
+
});
|
|
1744
|
+
};
|
|
1745
|
+
const serializeAws_restJson1LandCoverSegmentationConfigInput = (input, context) => {
|
|
1746
|
+
return {};
|
|
1747
|
+
};
|
|
1748
|
+
const serializeAws_restJson1LandsatCloudCoverLandInput = (input, context) => {
|
|
1749
|
+
return {
|
|
1750
|
+
...(input.LowerBound != null && { LowerBound: (0, smithy_client_1.serializeFloat)(input.LowerBound) }),
|
|
1751
|
+
...(input.UpperBound != null && { UpperBound: (0, smithy_client_1.serializeFloat)(input.UpperBound) }),
|
|
1752
|
+
};
|
|
1753
|
+
};
|
|
1754
|
+
const serializeAws_restJson1LinearRing = (input, context) => {
|
|
1755
|
+
return input
|
|
1756
|
+
.filter((e) => e != null)
|
|
1757
|
+
.map((entry) => {
|
|
1758
|
+
return serializeAws_restJson1Position(entry, context);
|
|
1759
|
+
});
|
|
1760
|
+
};
|
|
1761
|
+
const serializeAws_restJson1LinearRings = (input, context) => {
|
|
1762
|
+
return input
|
|
1763
|
+
.filter((e) => e != null)
|
|
1764
|
+
.map((entry) => {
|
|
1765
|
+
return serializeAws_restJson1LinearRing(entry, context);
|
|
1766
|
+
});
|
|
1767
|
+
};
|
|
1768
|
+
const serializeAws_restJson1LinearRingsList = (input, context) => {
|
|
1769
|
+
return input
|
|
1770
|
+
.filter((e) => e != null)
|
|
1771
|
+
.map((entry) => {
|
|
1772
|
+
return serializeAws_restJson1LinearRings(entry, context);
|
|
1773
|
+
});
|
|
1774
|
+
};
|
|
1775
|
+
const serializeAws_restJson1MapMatchingConfig = (input, context) => {
|
|
1776
|
+
return {
|
|
1777
|
+
...(input.IdAttributeName != null && { IdAttributeName: input.IdAttributeName }),
|
|
1778
|
+
...(input.TimestampAttributeName != null && { TimestampAttributeName: input.TimestampAttributeName }),
|
|
1779
|
+
...(input.XAttributeName != null && { XAttributeName: input.XAttributeName }),
|
|
1780
|
+
...(input.YAttributeName != null && { YAttributeName: input.YAttributeName }),
|
|
1781
|
+
};
|
|
1782
|
+
};
|
|
1783
|
+
const serializeAws_restJson1MultiPolygonGeometryInput = (input, context) => {
|
|
1784
|
+
return {
|
|
1785
|
+
...(input.Coordinates != null && {
|
|
1786
|
+
Coordinates: serializeAws_restJson1LinearRingsList(input.Coordinates, context),
|
|
1787
|
+
}),
|
|
1788
|
+
};
|
|
1789
|
+
};
|
|
1790
|
+
const serializeAws_restJson1Operation = (input, context) => {
|
|
1791
|
+
return {
|
|
1792
|
+
...(input.Equation != null && { Equation: input.Equation }),
|
|
1793
|
+
...(input.Name != null && { Name: input.Name }),
|
|
1794
|
+
...(input.OutputType != null && { OutputType: input.OutputType }),
|
|
1795
|
+
};
|
|
1796
|
+
};
|
|
1797
|
+
const serializeAws_restJson1OperationsListInput = (input, context) => {
|
|
1798
|
+
return input
|
|
1799
|
+
.filter((e) => e != null)
|
|
1800
|
+
.map((entry) => {
|
|
1801
|
+
return serializeAws_restJson1Operation(entry, context);
|
|
1802
|
+
});
|
|
1803
|
+
};
|
|
1804
|
+
const serializeAws_restJson1OutputConfigInput = (input, context) => {
|
|
1805
|
+
return {
|
|
1806
|
+
...(input.S3Data != null && { S3Data: serializeAws_restJson1ExportS3DataInput(input.S3Data, context) }),
|
|
1807
|
+
};
|
|
1808
|
+
};
|
|
1809
|
+
const serializeAws_restJson1OutputResolutionResamplingInput = (input, context) => {
|
|
1810
|
+
return {
|
|
1811
|
+
...(input.UserDefined != null && { UserDefined: serializeAws_restJson1UserDefined(input.UserDefined, context) }),
|
|
1812
|
+
};
|
|
1813
|
+
};
|
|
1814
|
+
const serializeAws_restJson1OutputResolutionStackInput = (input, context) => {
|
|
1815
|
+
return {
|
|
1816
|
+
...(input.Predefined != null && { Predefined: input.Predefined }),
|
|
1817
|
+
...(input.UserDefined != null && { UserDefined: serializeAws_restJson1UserDefined(input.UserDefined, context) }),
|
|
1818
|
+
};
|
|
1819
|
+
};
|
|
1820
|
+
const serializeAws_restJson1PlatformInput = (input, context) => {
|
|
1821
|
+
return {
|
|
1822
|
+
...(input.ComparisonOperator != null && { ComparisonOperator: input.ComparisonOperator }),
|
|
1823
|
+
...(input.Value != null && { Value: input.Value }),
|
|
1824
|
+
};
|
|
1825
|
+
};
|
|
1826
|
+
const serializeAws_restJson1PolygonGeometryInput = (input, context) => {
|
|
1827
|
+
return {
|
|
1828
|
+
...(input.Coordinates != null && { Coordinates: serializeAws_restJson1LinearRings(input.Coordinates, context) }),
|
|
1829
|
+
};
|
|
1830
|
+
};
|
|
1831
|
+
const serializeAws_restJson1Position = (input, context) => {
|
|
1832
|
+
return input
|
|
1833
|
+
.filter((e) => e != null)
|
|
1834
|
+
.map((entry) => {
|
|
1835
|
+
return (0, smithy_client_1.serializeFloat)(entry);
|
|
1836
|
+
});
|
|
1837
|
+
};
|
|
1838
|
+
const serializeAws_restJson1Property = (input, context) => {
|
|
1839
|
+
return models_0_1.Property.visit(input, {
|
|
1840
|
+
EoCloudCover: (value) => ({ EoCloudCover: serializeAws_restJson1EoCloudCoverInput(value, context) }),
|
|
1841
|
+
LandsatCloudCoverLand: (value) => ({
|
|
1842
|
+
LandsatCloudCoverLand: serializeAws_restJson1LandsatCloudCoverLandInput(value, context),
|
|
1843
|
+
}),
|
|
1844
|
+
Platform: (value) => ({ Platform: serializeAws_restJson1PlatformInput(value, context) }),
|
|
1845
|
+
ViewOffNadir: (value) => ({ ViewOffNadir: serializeAws_restJson1ViewOffNadirInput(value, context) }),
|
|
1846
|
+
ViewSunAzimuth: (value) => ({ ViewSunAzimuth: serializeAws_restJson1ViewSunAzimuthInput(value, context) }),
|
|
1847
|
+
ViewSunElevation: (value) => ({ ViewSunElevation: serializeAws_restJson1ViewSunElevationInput(value, context) }),
|
|
1848
|
+
_: (name, value) => ({ name: value }),
|
|
1849
|
+
});
|
|
1850
|
+
};
|
|
1851
|
+
const serializeAws_restJson1PropertyFilter = (input, context) => {
|
|
1852
|
+
return {
|
|
1853
|
+
...(input.Property != null && { Property: serializeAws_restJson1Property(input.Property, context) }),
|
|
1854
|
+
};
|
|
1855
|
+
};
|
|
1856
|
+
const serializeAws_restJson1PropertyFilters = (input, context) => {
|
|
1857
|
+
return {
|
|
1858
|
+
...(input.LogicalOperator != null && { LogicalOperator: input.LogicalOperator }),
|
|
1859
|
+
...(input.Properties != null && {
|
|
1860
|
+
Properties: serializeAws_restJson1PropertyFiltersList(input.Properties, context),
|
|
1861
|
+
}),
|
|
1862
|
+
};
|
|
1863
|
+
};
|
|
1864
|
+
const serializeAws_restJson1PropertyFiltersList = (input, context) => {
|
|
1865
|
+
return input
|
|
1866
|
+
.filter((e) => e != null)
|
|
1867
|
+
.map((entry) => {
|
|
1868
|
+
return serializeAws_restJson1PropertyFilter(entry, context);
|
|
1869
|
+
});
|
|
1870
|
+
};
|
|
1871
|
+
const serializeAws_restJson1RasterDataCollectionQueryInput = (input, context) => {
|
|
1872
|
+
return {
|
|
1873
|
+
...(input.AreaOfInterest != null && {
|
|
1874
|
+
AreaOfInterest: serializeAws_restJson1AreaOfInterest(input.AreaOfInterest, context),
|
|
1875
|
+
}),
|
|
1876
|
+
...(input.PropertyFilters != null && {
|
|
1877
|
+
PropertyFilters: serializeAws_restJson1PropertyFilters(input.PropertyFilters, context),
|
|
1878
|
+
}),
|
|
1879
|
+
...(input.RasterDataCollectionArn != null && { RasterDataCollectionArn: input.RasterDataCollectionArn }),
|
|
1880
|
+
...(input.TimeRangeFilter != null && {
|
|
1881
|
+
TimeRangeFilter: serializeAws_restJson1TimeRangeFilterInput(input.TimeRangeFilter, context),
|
|
1882
|
+
}),
|
|
1883
|
+
};
|
|
1884
|
+
};
|
|
1885
|
+
const serializeAws_restJson1RasterDataCollectionQueryWithBandFilterInput = (input, context) => {
|
|
1886
|
+
return {
|
|
1887
|
+
...(input.AreaOfInterest != null && {
|
|
1888
|
+
AreaOfInterest: serializeAws_restJson1AreaOfInterest(input.AreaOfInterest, context),
|
|
1889
|
+
}),
|
|
1890
|
+
...(input.BandFilter != null && { BandFilter: serializeAws_restJson1StringListInput(input.BandFilter, context) }),
|
|
1891
|
+
...(input.PropertyFilters != null && {
|
|
1892
|
+
PropertyFilters: serializeAws_restJson1PropertyFilters(input.PropertyFilters, context),
|
|
1893
|
+
}),
|
|
1894
|
+
...(input.TimeRangeFilter != null && {
|
|
1895
|
+
TimeRangeFilter: serializeAws_restJson1TimeRangeFilterInput(input.TimeRangeFilter, context),
|
|
1896
|
+
}),
|
|
1897
|
+
};
|
|
1898
|
+
};
|
|
1899
|
+
const serializeAws_restJson1ResamplingConfigInput = (input, context) => {
|
|
1900
|
+
return {
|
|
1901
|
+
...(input.AlgorithmName != null && { AlgorithmName: input.AlgorithmName }),
|
|
1902
|
+
...(input.OutputResolution != null && {
|
|
1903
|
+
OutputResolution: serializeAws_restJson1OutputResolutionResamplingInput(input.OutputResolution, context),
|
|
1904
|
+
}),
|
|
1905
|
+
...(input.TargetBands != null && {
|
|
1906
|
+
TargetBands: serializeAws_restJson1StringListInput(input.TargetBands, context),
|
|
1907
|
+
}),
|
|
1908
|
+
};
|
|
1909
|
+
};
|
|
1910
|
+
const serializeAws_restJson1ReverseGeocodingConfig = (input, context) => {
|
|
1911
|
+
return {
|
|
1912
|
+
...(input.XAttributeName != null && { XAttributeName: input.XAttributeName }),
|
|
1913
|
+
...(input.YAttributeName != null && { YAttributeName: input.YAttributeName }),
|
|
1914
|
+
};
|
|
1915
|
+
};
|
|
1916
|
+
const serializeAws_restJson1S3DataInput = (input, context) => {
|
|
1917
|
+
return {
|
|
1918
|
+
...(input.KmsKeyId != null && { KmsKeyId: input.KmsKeyId }),
|
|
1919
|
+
...(input.MetadataProvider != null && { MetadataProvider: input.MetadataProvider }),
|
|
1920
|
+
...(input.S3Uri != null && { S3Uri: input.S3Uri }),
|
|
1921
|
+
};
|
|
1922
|
+
};
|
|
1923
|
+
const serializeAws_restJson1StackConfigInput = (input, context) => {
|
|
1924
|
+
return {
|
|
1925
|
+
...(input.OutputResolution != null && {
|
|
1926
|
+
OutputResolution: serializeAws_restJson1OutputResolutionStackInput(input.OutputResolution, context),
|
|
1927
|
+
}),
|
|
1928
|
+
...(input.TargetBands != null && {
|
|
1929
|
+
TargetBands: serializeAws_restJson1StringListInput(input.TargetBands, context),
|
|
1930
|
+
}),
|
|
1931
|
+
};
|
|
1932
|
+
};
|
|
1933
|
+
const serializeAws_restJson1StringListInput = (input, context) => {
|
|
1934
|
+
return input
|
|
1935
|
+
.filter((e) => e != null)
|
|
1936
|
+
.map((entry) => {
|
|
1937
|
+
return entry;
|
|
1938
|
+
});
|
|
1939
|
+
};
|
|
1940
|
+
const serializeAws_restJson1Tags = (input, context) => {
|
|
1941
|
+
return Object.entries(input).reduce((acc, [key, value]) => {
|
|
1942
|
+
if (value === null) {
|
|
1943
|
+
return acc;
|
|
1944
|
+
}
|
|
1945
|
+
acc[key] = value;
|
|
1946
|
+
return acc;
|
|
1947
|
+
}, {});
|
|
1948
|
+
};
|
|
1949
|
+
const serializeAws_restJson1TemporalStatisticsConfigInput = (input, context) => {
|
|
1950
|
+
return {
|
|
1951
|
+
...(input.GroupBy != null && { GroupBy: input.GroupBy }),
|
|
1952
|
+
...(input.Statistics != null && {
|
|
1953
|
+
Statistics: serializeAws_restJson1TemporalStatisticsListInput(input.Statistics, context),
|
|
1954
|
+
}),
|
|
1955
|
+
...(input.TargetBands != null && {
|
|
1956
|
+
TargetBands: serializeAws_restJson1StringListInput(input.TargetBands, context),
|
|
1957
|
+
}),
|
|
1958
|
+
};
|
|
1959
|
+
};
|
|
1960
|
+
const serializeAws_restJson1TemporalStatisticsListInput = (input, context) => {
|
|
1961
|
+
return input
|
|
1962
|
+
.filter((e) => e != null)
|
|
1963
|
+
.map((entry) => {
|
|
1964
|
+
return entry;
|
|
1965
|
+
});
|
|
1966
|
+
};
|
|
1967
|
+
const serializeAws_restJson1TimeRangeFilterInput = (input, context) => {
|
|
1968
|
+
return {
|
|
1969
|
+
...(input.EndTime != null && { EndTime: Math.round(input.EndTime.getTime() / 1000) }),
|
|
1970
|
+
...(input.StartTime != null && { StartTime: Math.round(input.StartTime.getTime() / 1000) }),
|
|
1971
|
+
};
|
|
1972
|
+
};
|
|
1973
|
+
const serializeAws_restJson1UserDefined = (input, context) => {
|
|
1974
|
+
return {
|
|
1975
|
+
...(input.Unit != null && { Unit: input.Unit }),
|
|
1976
|
+
...(input.Value != null && { Value: (0, smithy_client_1.serializeFloat)(input.Value) }),
|
|
1977
|
+
};
|
|
1978
|
+
};
|
|
1979
|
+
const serializeAws_restJson1VectorEnrichmentJobConfig = (input, context) => {
|
|
1980
|
+
return models_0_1.VectorEnrichmentJobConfig.visit(input, {
|
|
1981
|
+
MapMatchingConfig: (value) => ({ MapMatchingConfig: serializeAws_restJson1MapMatchingConfig(value, context) }),
|
|
1982
|
+
ReverseGeocodingConfig: (value) => ({
|
|
1983
|
+
ReverseGeocodingConfig: serializeAws_restJson1ReverseGeocodingConfig(value, context),
|
|
1984
|
+
}),
|
|
1985
|
+
_: (name, value) => ({ name: value }),
|
|
1986
|
+
});
|
|
1987
|
+
};
|
|
1988
|
+
const serializeAws_restJson1VectorEnrichmentJobDataSourceConfigInput = (input, context) => {
|
|
1989
|
+
return models_0_1.VectorEnrichmentJobDataSourceConfigInput.visit(input, {
|
|
1990
|
+
S3Data: (value) => ({ S3Data: serializeAws_restJson1VectorEnrichmentJobS3Data(value, context) }),
|
|
1991
|
+
_: (name, value) => ({ name: value }),
|
|
1992
|
+
});
|
|
1993
|
+
};
|
|
1994
|
+
const serializeAws_restJson1VectorEnrichmentJobInputConfig = (input, context) => {
|
|
1995
|
+
return {
|
|
1996
|
+
...(input.DataSourceConfig != null && {
|
|
1997
|
+
DataSourceConfig: serializeAws_restJson1VectorEnrichmentJobDataSourceConfigInput(input.DataSourceConfig, context),
|
|
1998
|
+
}),
|
|
1999
|
+
...(input.DocumentType != null && { DocumentType: input.DocumentType }),
|
|
2000
|
+
};
|
|
2001
|
+
};
|
|
2002
|
+
const serializeAws_restJson1VectorEnrichmentJobS3Data = (input, context) => {
|
|
2003
|
+
return {
|
|
2004
|
+
...(input.KmsKeyId != null && { KmsKeyId: input.KmsKeyId }),
|
|
2005
|
+
...(input.S3Uri != null && { S3Uri: input.S3Uri }),
|
|
2006
|
+
};
|
|
2007
|
+
};
|
|
2008
|
+
const serializeAws_restJson1ViewOffNadirInput = (input, context) => {
|
|
2009
|
+
return {
|
|
2010
|
+
...(input.LowerBound != null && { LowerBound: (0, smithy_client_1.serializeFloat)(input.LowerBound) }),
|
|
2011
|
+
...(input.UpperBound != null && { UpperBound: (0, smithy_client_1.serializeFloat)(input.UpperBound) }),
|
|
2012
|
+
};
|
|
2013
|
+
};
|
|
2014
|
+
const serializeAws_restJson1ViewSunAzimuthInput = (input, context) => {
|
|
2015
|
+
return {
|
|
2016
|
+
...(input.LowerBound != null && { LowerBound: (0, smithy_client_1.serializeFloat)(input.LowerBound) }),
|
|
2017
|
+
...(input.UpperBound != null && { UpperBound: (0, smithy_client_1.serializeFloat)(input.UpperBound) }),
|
|
2018
|
+
};
|
|
2019
|
+
};
|
|
2020
|
+
const serializeAws_restJson1ViewSunElevationInput = (input, context) => {
|
|
2021
|
+
return {
|
|
2022
|
+
...(input.LowerBound != null && { LowerBound: (0, smithy_client_1.serializeFloat)(input.LowerBound) }),
|
|
2023
|
+
...(input.UpperBound != null && { UpperBound: (0, smithy_client_1.serializeFloat)(input.UpperBound) }),
|
|
2024
|
+
};
|
|
2025
|
+
};
|
|
2026
|
+
const serializeAws_restJson1ZonalStatisticsConfigInput = (input, context) => {
|
|
2027
|
+
return {
|
|
2028
|
+
...(input.Statistics != null && {
|
|
2029
|
+
Statistics: serializeAws_restJson1ZonalStatisticsListInput(input.Statistics, context),
|
|
2030
|
+
}),
|
|
2031
|
+
...(input.TargetBands != null && {
|
|
2032
|
+
TargetBands: serializeAws_restJson1StringListInput(input.TargetBands, context),
|
|
2033
|
+
}),
|
|
2034
|
+
...(input.ZoneS3Path != null && { ZoneS3Path: input.ZoneS3Path }),
|
|
2035
|
+
};
|
|
2036
|
+
};
|
|
2037
|
+
const serializeAws_restJson1ZonalStatisticsListInput = (input, context) => {
|
|
2038
|
+
return input
|
|
2039
|
+
.filter((e) => e != null)
|
|
2040
|
+
.map((entry) => {
|
|
2041
|
+
return entry;
|
|
2042
|
+
});
|
|
2043
|
+
};
|
|
2044
|
+
const deserializeAws_restJson1AreaOfInterest = (output, context) => {
|
|
2045
|
+
if (output.AreaOfInterestGeometry != null) {
|
|
2046
|
+
return {
|
|
2047
|
+
AreaOfInterestGeometry: deserializeAws_restJson1AreaOfInterestGeometry((0, smithy_client_1.expectUnion)(output.AreaOfInterestGeometry), context),
|
|
2048
|
+
};
|
|
2049
|
+
}
|
|
2050
|
+
return { $unknown: Object.entries(output)[0] };
|
|
2051
|
+
};
|
|
2052
|
+
const deserializeAws_restJson1AreaOfInterestGeometry = (output, context) => {
|
|
2053
|
+
if (output.MultiPolygonGeometry != null) {
|
|
2054
|
+
return {
|
|
2055
|
+
MultiPolygonGeometry: deserializeAws_restJson1MultiPolygonGeometryInput(output.MultiPolygonGeometry, context),
|
|
2056
|
+
};
|
|
2057
|
+
}
|
|
2058
|
+
if (output.PolygonGeometry != null) {
|
|
2059
|
+
return {
|
|
2060
|
+
PolygonGeometry: deserializeAws_restJson1PolygonGeometryInput(output.PolygonGeometry, context),
|
|
2061
|
+
};
|
|
2062
|
+
}
|
|
2063
|
+
return { $unknown: Object.entries(output)[0] };
|
|
2064
|
+
};
|
|
2065
|
+
const deserializeAws_restJson1AssetsMap = (output, context) => {
|
|
2066
|
+
return Object.entries(output).reduce((acc, [key, value]) => {
|
|
2067
|
+
if (value === null) {
|
|
2068
|
+
return acc;
|
|
2069
|
+
}
|
|
2070
|
+
acc[key] = deserializeAws_restJson1AssetValue(value, context);
|
|
2071
|
+
return acc;
|
|
2072
|
+
}, {});
|
|
2073
|
+
};
|
|
2074
|
+
const deserializeAws_restJson1AssetValue = (output, context) => {
|
|
2075
|
+
return {
|
|
2076
|
+
Href: (0, smithy_client_1.expectString)(output.Href),
|
|
2077
|
+
};
|
|
2078
|
+
};
|
|
2079
|
+
const deserializeAws_restJson1BandMathConfigInput = (output, context) => {
|
|
2080
|
+
return {
|
|
2081
|
+
CustomIndices: output.CustomIndices != null
|
|
2082
|
+
? deserializeAws_restJson1CustomIndicesInput(output.CustomIndices, context)
|
|
2083
|
+
: undefined,
|
|
2084
|
+
PredefinedIndices: output.PredefinedIndices != null
|
|
2085
|
+
? deserializeAws_restJson1StringListInput(output.PredefinedIndices, context)
|
|
2086
|
+
: undefined,
|
|
2087
|
+
};
|
|
2088
|
+
};
|
|
2089
|
+
const deserializeAws_restJson1CloudMaskingConfigInput = (output, context) => {
|
|
2090
|
+
return {};
|
|
2091
|
+
};
|
|
2092
|
+
const deserializeAws_restJson1CloudRemovalConfigInput = (output, context) => {
|
|
2093
|
+
return {
|
|
2094
|
+
AlgorithmName: (0, smithy_client_1.expectString)(output.AlgorithmName),
|
|
2095
|
+
InterpolationValue: (0, smithy_client_1.expectString)(output.InterpolationValue),
|
|
2096
|
+
TargetBands: output.TargetBands != null ? deserializeAws_restJson1StringListInput(output.TargetBands, context) : undefined,
|
|
2097
|
+
};
|
|
2098
|
+
};
|
|
2099
|
+
const deserializeAws_restJson1CustomIndicesInput = (output, context) => {
|
|
2100
|
+
return {
|
|
2101
|
+
Operations: output.Operations != null ? deserializeAws_restJson1OperationsListInput(output.Operations, context) : undefined,
|
|
2102
|
+
};
|
|
2103
|
+
};
|
|
2104
|
+
const deserializeAws_restJson1DataCollectionsList = (output, context) => {
|
|
2105
|
+
const retVal = (output || [])
|
|
2106
|
+
.filter((e) => e != null)
|
|
2107
|
+
.map((entry) => {
|
|
2108
|
+
if (entry === null) {
|
|
2109
|
+
return null;
|
|
2110
|
+
}
|
|
2111
|
+
return deserializeAws_restJson1RasterDataCollectionMetadata(entry, context);
|
|
2112
|
+
});
|
|
2113
|
+
return retVal;
|
|
2114
|
+
};
|
|
2115
|
+
const deserializeAws_restJson1EarthObservationJobErrorDetails = (output, context) => {
|
|
2116
|
+
return {
|
|
2117
|
+
Message: (0, smithy_client_1.expectString)(output.Message),
|
|
2118
|
+
Type: (0, smithy_client_1.expectString)(output.Type),
|
|
2119
|
+
};
|
|
2120
|
+
};
|
|
2121
|
+
const deserializeAws_restJson1EarthObservationJobList = (output, context) => {
|
|
2122
|
+
const retVal = (output || [])
|
|
2123
|
+
.filter((e) => e != null)
|
|
2124
|
+
.map((entry) => {
|
|
2125
|
+
if (entry === null) {
|
|
2126
|
+
return null;
|
|
2127
|
+
}
|
|
2128
|
+
return deserializeAws_restJson1ListEarthObservationJobOutputConfig(entry, context);
|
|
2129
|
+
});
|
|
2130
|
+
return retVal;
|
|
2131
|
+
};
|
|
2132
|
+
const deserializeAws_restJson1EarthObservationJobOutputBands = (output, context) => {
|
|
2133
|
+
const retVal = (output || [])
|
|
2134
|
+
.filter((e) => e != null)
|
|
2135
|
+
.map((entry) => {
|
|
2136
|
+
if (entry === null) {
|
|
2137
|
+
return null;
|
|
2138
|
+
}
|
|
2139
|
+
return deserializeAws_restJson1OutputBand(entry, context);
|
|
2140
|
+
});
|
|
2141
|
+
return retVal;
|
|
2142
|
+
};
|
|
2143
|
+
const deserializeAws_restJson1EoCloudCoverInput = (output, context) => {
|
|
2144
|
+
return {
|
|
2145
|
+
LowerBound: (0, smithy_client_1.limitedParseFloat32)(output.LowerBound),
|
|
2146
|
+
UpperBound: (0, smithy_client_1.limitedParseFloat32)(output.UpperBound),
|
|
2147
|
+
};
|
|
2148
|
+
};
|
|
2149
|
+
const deserializeAws_restJson1EojDataSourceConfigInput = (output, context) => {
|
|
2150
|
+
if (output.S3Data != null) {
|
|
2151
|
+
return {
|
|
2152
|
+
S3Data: deserializeAws_restJson1S3DataInput(output.S3Data, context),
|
|
2153
|
+
};
|
|
2154
|
+
}
|
|
2155
|
+
return { $unknown: Object.entries(output)[0] };
|
|
2156
|
+
};
|
|
2157
|
+
const deserializeAws_restJson1ExportErrorDetails = (output, context) => {
|
|
2158
|
+
return {
|
|
2159
|
+
ExportResults: output.ExportResults != null
|
|
2160
|
+
? deserializeAws_restJson1ExportErrorDetailsOutput(output.ExportResults, context)
|
|
2161
|
+
: undefined,
|
|
2162
|
+
ExportSourceImages: output.ExportSourceImages != null
|
|
2163
|
+
? deserializeAws_restJson1ExportErrorDetailsOutput(output.ExportSourceImages, context)
|
|
2164
|
+
: undefined,
|
|
2165
|
+
};
|
|
2166
|
+
};
|
|
2167
|
+
const deserializeAws_restJson1ExportErrorDetailsOutput = (output, context) => {
|
|
2168
|
+
return {
|
|
2169
|
+
Message: (0, smithy_client_1.expectString)(output.Message),
|
|
2170
|
+
Type: (0, smithy_client_1.expectString)(output.Type),
|
|
2171
|
+
};
|
|
2172
|
+
};
|
|
2173
|
+
const deserializeAws_restJson1ExportS3DataInput = (output, context) => {
|
|
2174
|
+
return {
|
|
2175
|
+
KmsKeyId: (0, smithy_client_1.expectString)(output.KmsKeyId),
|
|
2176
|
+
S3Uri: (0, smithy_client_1.expectString)(output.S3Uri),
|
|
2177
|
+
};
|
|
2178
|
+
};
|
|
2179
|
+
const deserializeAws_restJson1ExportVectorEnrichmentJobOutputConfig = (output, context) => {
|
|
2180
|
+
return {
|
|
2181
|
+
S3Data: output.S3Data != null ? deserializeAws_restJson1VectorEnrichmentJobS3Data(output.S3Data, context) : undefined,
|
|
2182
|
+
};
|
|
2183
|
+
};
|
|
2184
|
+
const deserializeAws_restJson1Filter = (output, context) => {
|
|
2185
|
+
return {
|
|
2186
|
+
Maximum: (0, smithy_client_1.limitedParseFloat32)(output.Maximum),
|
|
2187
|
+
Minimum: (0, smithy_client_1.limitedParseFloat32)(output.Minimum),
|
|
2188
|
+
Name: (0, smithy_client_1.expectString)(output.Name),
|
|
2189
|
+
Type: (0, smithy_client_1.expectString)(output.Type),
|
|
2190
|
+
};
|
|
2191
|
+
};
|
|
2192
|
+
const deserializeAws_restJson1FilterList = (output, context) => {
|
|
2193
|
+
const retVal = (output || [])
|
|
2194
|
+
.filter((e) => e != null)
|
|
2195
|
+
.map((entry) => {
|
|
2196
|
+
if (entry === null) {
|
|
2197
|
+
return null;
|
|
2198
|
+
}
|
|
2199
|
+
return deserializeAws_restJson1Filter(entry, context);
|
|
2200
|
+
});
|
|
2201
|
+
return retVal;
|
|
2202
|
+
};
|
|
2203
|
+
const deserializeAws_restJson1Geometry = (output, context) => {
|
|
2204
|
+
return {
|
|
2205
|
+
Coordinates: output.Coordinates != null ? deserializeAws_restJson1LinearRings(output.Coordinates, context) : undefined,
|
|
2206
|
+
Type: (0, smithy_client_1.expectString)(output.Type),
|
|
2207
|
+
};
|
|
2208
|
+
};
|
|
2209
|
+
const deserializeAws_restJson1GeoMosaicConfigInput = (output, context) => {
|
|
2210
|
+
return {
|
|
2211
|
+
AlgorithmName: (0, smithy_client_1.expectString)(output.AlgorithmName),
|
|
2212
|
+
TargetBands: output.TargetBands != null ? deserializeAws_restJson1StringListInput(output.TargetBands, context) : undefined,
|
|
2213
|
+
};
|
|
2214
|
+
};
|
|
2215
|
+
const deserializeAws_restJson1ImageSourceBandList = (output, context) => {
|
|
2216
|
+
const retVal = (output || [])
|
|
2217
|
+
.filter((e) => e != null)
|
|
2218
|
+
.map((entry) => {
|
|
2219
|
+
if (entry === null) {
|
|
2220
|
+
return null;
|
|
2221
|
+
}
|
|
2222
|
+
return (0, smithy_client_1.expectString)(entry);
|
|
2223
|
+
});
|
|
2224
|
+
return retVal;
|
|
2225
|
+
};
|
|
2226
|
+
const deserializeAws_restJson1InputConfigOutput = (output, context) => {
|
|
2227
|
+
return {
|
|
2228
|
+
DataSourceConfig: output.DataSourceConfig != null
|
|
2229
|
+
? deserializeAws_restJson1EojDataSourceConfigInput((0, smithy_client_1.expectUnion)(output.DataSourceConfig), context)
|
|
2230
|
+
: undefined,
|
|
2231
|
+
PreviousEarthObservationJobArn: (0, smithy_client_1.expectString)(output.PreviousEarthObservationJobArn),
|
|
2232
|
+
RasterDataCollectionQuery: output.RasterDataCollectionQuery != null
|
|
2233
|
+
? deserializeAws_restJson1RasterDataCollectionQueryOutput(output.RasterDataCollectionQuery, context)
|
|
2234
|
+
: undefined,
|
|
2235
|
+
};
|
|
2236
|
+
};
|
|
2237
|
+
const deserializeAws_restJson1ItemSource = (output, context) => {
|
|
2238
|
+
return {
|
|
2239
|
+
Assets: output.Assets != null ? deserializeAws_restJson1AssetsMap(output.Assets, context) : undefined,
|
|
2240
|
+
DateTime: output.DateTime != null ? (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(output.DateTime))) : undefined,
|
|
2241
|
+
Geometry: output.Geometry != null ? deserializeAws_restJson1Geometry(output.Geometry, context) : undefined,
|
|
2242
|
+
Id: (0, smithy_client_1.expectString)(output.Id),
|
|
2243
|
+
Properties: output.Properties != null ? deserializeAws_restJson1Properties(output.Properties, context) : undefined,
|
|
2244
|
+
};
|
|
2245
|
+
};
|
|
2246
|
+
const deserializeAws_restJson1ItemSourceList = (output, context) => {
|
|
2247
|
+
const retVal = (output || [])
|
|
2248
|
+
.filter((e) => e != null)
|
|
2249
|
+
.map((entry) => {
|
|
2250
|
+
if (entry === null) {
|
|
2251
|
+
return null;
|
|
2252
|
+
}
|
|
2253
|
+
return deserializeAws_restJson1ItemSource(entry, context);
|
|
2254
|
+
});
|
|
2255
|
+
return retVal;
|
|
2256
|
+
};
|
|
2257
|
+
const deserializeAws_restJson1JobConfigInput = (output, context) => {
|
|
2258
|
+
if (output.BandMathConfig != null) {
|
|
2259
|
+
return {
|
|
2260
|
+
BandMathConfig: deserializeAws_restJson1BandMathConfigInput(output.BandMathConfig, context),
|
|
2261
|
+
};
|
|
2262
|
+
}
|
|
2263
|
+
if (output.CloudMaskingConfig != null) {
|
|
2264
|
+
return {
|
|
2265
|
+
CloudMaskingConfig: deserializeAws_restJson1CloudMaskingConfigInput(output.CloudMaskingConfig, context),
|
|
2266
|
+
};
|
|
2267
|
+
}
|
|
2268
|
+
if (output.CloudRemovalConfig != null) {
|
|
2269
|
+
return {
|
|
2270
|
+
CloudRemovalConfig: deserializeAws_restJson1CloudRemovalConfigInput(output.CloudRemovalConfig, context),
|
|
2271
|
+
};
|
|
2272
|
+
}
|
|
2273
|
+
if (output.GeoMosaicConfig != null) {
|
|
2274
|
+
return {
|
|
2275
|
+
GeoMosaicConfig: deserializeAws_restJson1GeoMosaicConfigInput(output.GeoMosaicConfig, context),
|
|
2276
|
+
};
|
|
2277
|
+
}
|
|
2278
|
+
if (output.LandCoverSegmentationConfig != null) {
|
|
2279
|
+
return {
|
|
2280
|
+
LandCoverSegmentationConfig: deserializeAws_restJson1LandCoverSegmentationConfigInput(output.LandCoverSegmentationConfig, context),
|
|
2281
|
+
};
|
|
2282
|
+
}
|
|
2283
|
+
if (output.ResamplingConfig != null) {
|
|
2284
|
+
return {
|
|
2285
|
+
ResamplingConfig: deserializeAws_restJson1ResamplingConfigInput(output.ResamplingConfig, context),
|
|
2286
|
+
};
|
|
2287
|
+
}
|
|
2288
|
+
if (output.StackConfig != null) {
|
|
2289
|
+
return {
|
|
2290
|
+
StackConfig: deserializeAws_restJson1StackConfigInput(output.StackConfig, context),
|
|
2291
|
+
};
|
|
2292
|
+
}
|
|
2293
|
+
if (output.TemporalStatisticsConfig != null) {
|
|
2294
|
+
return {
|
|
2295
|
+
TemporalStatisticsConfig: deserializeAws_restJson1TemporalStatisticsConfigInput(output.TemporalStatisticsConfig, context),
|
|
2296
|
+
};
|
|
2297
|
+
}
|
|
2298
|
+
if (output.ZonalStatisticsConfig != null) {
|
|
2299
|
+
return {
|
|
2300
|
+
ZonalStatisticsConfig: deserializeAws_restJson1ZonalStatisticsConfigInput(output.ZonalStatisticsConfig, context),
|
|
2301
|
+
};
|
|
2302
|
+
}
|
|
2303
|
+
return { $unknown: Object.entries(output)[0] };
|
|
2304
|
+
};
|
|
2305
|
+
const deserializeAws_restJson1LandCoverSegmentationConfigInput = (output, context) => {
|
|
2306
|
+
return {};
|
|
2307
|
+
};
|
|
2308
|
+
const deserializeAws_restJson1LandsatCloudCoverLandInput = (output, context) => {
|
|
2309
|
+
return {
|
|
2310
|
+
LowerBound: (0, smithy_client_1.limitedParseFloat32)(output.LowerBound),
|
|
2311
|
+
UpperBound: (0, smithy_client_1.limitedParseFloat32)(output.UpperBound),
|
|
2312
|
+
};
|
|
2313
|
+
};
|
|
2314
|
+
const deserializeAws_restJson1LinearRing = (output, context) => {
|
|
2315
|
+
const retVal = (output || [])
|
|
2316
|
+
.filter((e) => e != null)
|
|
2317
|
+
.map((entry) => {
|
|
2318
|
+
if (entry === null) {
|
|
2319
|
+
return null;
|
|
2320
|
+
}
|
|
2321
|
+
return deserializeAws_restJson1Position(entry, context);
|
|
2322
|
+
});
|
|
2323
|
+
return retVal;
|
|
2324
|
+
};
|
|
2325
|
+
const deserializeAws_restJson1LinearRings = (output, context) => {
|
|
2326
|
+
const retVal = (output || [])
|
|
2327
|
+
.filter((e) => e != null)
|
|
2328
|
+
.map((entry) => {
|
|
2329
|
+
if (entry === null) {
|
|
2330
|
+
return null;
|
|
2331
|
+
}
|
|
2332
|
+
return deserializeAws_restJson1LinearRing(entry, context);
|
|
2333
|
+
});
|
|
2334
|
+
return retVal;
|
|
2335
|
+
};
|
|
2336
|
+
const deserializeAws_restJson1LinearRingsList = (output, context) => {
|
|
2337
|
+
const retVal = (output || [])
|
|
2338
|
+
.filter((e) => e != null)
|
|
2339
|
+
.map((entry) => {
|
|
2340
|
+
if (entry === null) {
|
|
2341
|
+
return null;
|
|
2342
|
+
}
|
|
2343
|
+
return deserializeAws_restJson1LinearRings(entry, context);
|
|
2344
|
+
});
|
|
2345
|
+
return retVal;
|
|
2346
|
+
};
|
|
2347
|
+
const deserializeAws_restJson1ListEarthObservationJobOutputConfig = (output, context) => {
|
|
2348
|
+
return {
|
|
2349
|
+
Arn: (0, smithy_client_1.expectString)(output.Arn),
|
|
2350
|
+
CreationTime: output.CreationTime != null
|
|
2351
|
+
? (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(output.CreationTime)))
|
|
2352
|
+
: undefined,
|
|
2353
|
+
DurationInSeconds: (0, smithy_client_1.expectInt32)(output.DurationInSeconds),
|
|
2354
|
+
Name: (0, smithy_client_1.expectString)(output.Name),
|
|
2355
|
+
OperationType: (0, smithy_client_1.expectString)(output.OperationType),
|
|
2356
|
+
Status: (0, smithy_client_1.expectString)(output.Status),
|
|
2357
|
+
Tags: output.Tags != null ? deserializeAws_restJson1Tags(output.Tags, context) : undefined,
|
|
2358
|
+
};
|
|
2359
|
+
};
|
|
2360
|
+
const deserializeAws_restJson1ListVectorEnrichmentJobOutputConfig = (output, context) => {
|
|
2361
|
+
return {
|
|
2362
|
+
Arn: (0, smithy_client_1.expectString)(output.Arn),
|
|
2363
|
+
CreationTime: output.CreationTime != null
|
|
2364
|
+
? (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(output.CreationTime)))
|
|
2365
|
+
: undefined,
|
|
2366
|
+
DurationInSeconds: (0, smithy_client_1.expectInt32)(output.DurationInSeconds),
|
|
2367
|
+
Name: (0, smithy_client_1.expectString)(output.Name),
|
|
2368
|
+
Status: (0, smithy_client_1.expectString)(output.Status),
|
|
2369
|
+
Tags: output.Tags != null ? deserializeAws_restJson1Tags(output.Tags, context) : undefined,
|
|
2370
|
+
Type: (0, smithy_client_1.expectString)(output.Type),
|
|
2371
|
+
};
|
|
2372
|
+
};
|
|
2373
|
+
const deserializeAws_restJson1MapMatchingConfig = (output, context) => {
|
|
2374
|
+
return {
|
|
2375
|
+
IdAttributeName: (0, smithy_client_1.expectString)(output.IdAttributeName),
|
|
2376
|
+
TimestampAttributeName: (0, smithy_client_1.expectString)(output.TimestampAttributeName),
|
|
2377
|
+
XAttributeName: (0, smithy_client_1.expectString)(output.XAttributeName),
|
|
2378
|
+
YAttributeName: (0, smithy_client_1.expectString)(output.YAttributeName),
|
|
2379
|
+
};
|
|
2380
|
+
};
|
|
2381
|
+
const deserializeAws_restJson1MultiPolygonGeometryInput = (output, context) => {
|
|
2382
|
+
return {
|
|
2383
|
+
Coordinates: output.Coordinates != null ? deserializeAws_restJson1LinearRingsList(output.Coordinates, context) : undefined,
|
|
2384
|
+
};
|
|
2385
|
+
};
|
|
2386
|
+
const deserializeAws_restJson1Operation = (output, context) => {
|
|
2387
|
+
return {
|
|
2388
|
+
Equation: (0, smithy_client_1.expectString)(output.Equation),
|
|
2389
|
+
Name: (0, smithy_client_1.expectString)(output.Name),
|
|
2390
|
+
OutputType: (0, smithy_client_1.expectString)(output.OutputType),
|
|
2391
|
+
};
|
|
2392
|
+
};
|
|
2393
|
+
const deserializeAws_restJson1OperationsListInput = (output, context) => {
|
|
2394
|
+
const retVal = (output || [])
|
|
2395
|
+
.filter((e) => e != null)
|
|
2396
|
+
.map((entry) => {
|
|
2397
|
+
if (entry === null) {
|
|
2398
|
+
return null;
|
|
2399
|
+
}
|
|
2400
|
+
return deserializeAws_restJson1Operation(entry, context);
|
|
2401
|
+
});
|
|
2402
|
+
return retVal;
|
|
2403
|
+
};
|
|
2404
|
+
const deserializeAws_restJson1OutputBand = (output, context) => {
|
|
2405
|
+
return {
|
|
2406
|
+
BandName: (0, smithy_client_1.expectString)(output.BandName),
|
|
2407
|
+
OutputDataType: (0, smithy_client_1.expectString)(output.OutputDataType),
|
|
2408
|
+
};
|
|
2409
|
+
};
|
|
2410
|
+
const deserializeAws_restJson1OutputConfigInput = (output, context) => {
|
|
2411
|
+
return {
|
|
2412
|
+
S3Data: output.S3Data != null ? deserializeAws_restJson1ExportS3DataInput(output.S3Data, context) : undefined,
|
|
2413
|
+
};
|
|
2414
|
+
};
|
|
2415
|
+
const deserializeAws_restJson1OutputResolutionResamplingInput = (output, context) => {
|
|
2416
|
+
return {
|
|
2417
|
+
UserDefined: output.UserDefined != null ? deserializeAws_restJson1UserDefined(output.UserDefined, context) : undefined,
|
|
2418
|
+
};
|
|
2419
|
+
};
|
|
2420
|
+
const deserializeAws_restJson1OutputResolutionStackInput = (output, context) => {
|
|
2421
|
+
return {
|
|
2422
|
+
Predefined: (0, smithy_client_1.expectString)(output.Predefined),
|
|
2423
|
+
UserDefined: output.UserDefined != null ? deserializeAws_restJson1UserDefined(output.UserDefined, context) : undefined,
|
|
2424
|
+
};
|
|
2425
|
+
};
|
|
2426
|
+
const deserializeAws_restJson1PlatformInput = (output, context) => {
|
|
2427
|
+
return {
|
|
2428
|
+
ComparisonOperator: (0, smithy_client_1.expectString)(output.ComparisonOperator),
|
|
2429
|
+
Value: (0, smithy_client_1.expectString)(output.Value),
|
|
2430
|
+
};
|
|
2431
|
+
};
|
|
2432
|
+
const deserializeAws_restJson1PolygonGeometryInput = (output, context) => {
|
|
2433
|
+
return {
|
|
2434
|
+
Coordinates: output.Coordinates != null ? deserializeAws_restJson1LinearRings(output.Coordinates, context) : undefined,
|
|
2435
|
+
};
|
|
2436
|
+
};
|
|
2437
|
+
const deserializeAws_restJson1Position = (output, context) => {
|
|
2438
|
+
const retVal = (output || [])
|
|
2439
|
+
.filter((e) => e != null)
|
|
2440
|
+
.map((entry) => {
|
|
2441
|
+
if (entry === null) {
|
|
2442
|
+
return null;
|
|
2443
|
+
}
|
|
2444
|
+
return (0, smithy_client_1.limitedParseDouble)(entry);
|
|
2445
|
+
});
|
|
2446
|
+
return retVal;
|
|
2447
|
+
};
|
|
2448
|
+
const deserializeAws_restJson1Properties = (output, context) => {
|
|
2449
|
+
return {
|
|
2450
|
+
EoCloudCover: (0, smithy_client_1.limitedParseFloat32)(output.EoCloudCover),
|
|
2451
|
+
LandsatCloudCoverLand: (0, smithy_client_1.limitedParseFloat32)(output.LandsatCloudCoverLand),
|
|
2452
|
+
Platform: (0, smithy_client_1.expectString)(output.Platform),
|
|
2453
|
+
ViewOffNadir: (0, smithy_client_1.limitedParseFloat32)(output.ViewOffNadir),
|
|
2454
|
+
ViewSunAzimuth: (0, smithy_client_1.limitedParseFloat32)(output.ViewSunAzimuth),
|
|
2455
|
+
ViewSunElevation: (0, smithy_client_1.limitedParseFloat32)(output.ViewSunElevation),
|
|
2456
|
+
};
|
|
2457
|
+
};
|
|
2458
|
+
const deserializeAws_restJson1Property = (output, context) => {
|
|
2459
|
+
if (output.EoCloudCover != null) {
|
|
2460
|
+
return {
|
|
2461
|
+
EoCloudCover: deserializeAws_restJson1EoCloudCoverInput(output.EoCloudCover, context),
|
|
2462
|
+
};
|
|
2463
|
+
}
|
|
2464
|
+
if (output.LandsatCloudCoverLand != null) {
|
|
2465
|
+
return {
|
|
2466
|
+
LandsatCloudCoverLand: deserializeAws_restJson1LandsatCloudCoverLandInput(output.LandsatCloudCoverLand, context),
|
|
2467
|
+
};
|
|
2468
|
+
}
|
|
2469
|
+
if (output.Platform != null) {
|
|
2470
|
+
return {
|
|
2471
|
+
Platform: deserializeAws_restJson1PlatformInput(output.Platform, context),
|
|
2472
|
+
};
|
|
2473
|
+
}
|
|
2474
|
+
if (output.ViewOffNadir != null) {
|
|
2475
|
+
return {
|
|
2476
|
+
ViewOffNadir: deserializeAws_restJson1ViewOffNadirInput(output.ViewOffNadir, context),
|
|
2477
|
+
};
|
|
2478
|
+
}
|
|
2479
|
+
if (output.ViewSunAzimuth != null) {
|
|
2480
|
+
return {
|
|
2481
|
+
ViewSunAzimuth: deserializeAws_restJson1ViewSunAzimuthInput(output.ViewSunAzimuth, context),
|
|
2482
|
+
};
|
|
2483
|
+
}
|
|
2484
|
+
if (output.ViewSunElevation != null) {
|
|
2485
|
+
return {
|
|
2486
|
+
ViewSunElevation: deserializeAws_restJson1ViewSunElevationInput(output.ViewSunElevation, context),
|
|
2487
|
+
};
|
|
2488
|
+
}
|
|
2489
|
+
return { $unknown: Object.entries(output)[0] };
|
|
2490
|
+
};
|
|
2491
|
+
const deserializeAws_restJson1PropertyFilter = (output, context) => {
|
|
2492
|
+
return {
|
|
2493
|
+
Property: output.Property != null ? deserializeAws_restJson1Property((0, smithy_client_1.expectUnion)(output.Property), context) : undefined,
|
|
2494
|
+
};
|
|
2495
|
+
};
|
|
2496
|
+
const deserializeAws_restJson1PropertyFilters = (output, context) => {
|
|
2497
|
+
return {
|
|
2498
|
+
LogicalOperator: (0, smithy_client_1.expectString)(output.LogicalOperator),
|
|
2499
|
+
Properties: output.Properties != null ? deserializeAws_restJson1PropertyFiltersList(output.Properties, context) : undefined,
|
|
2500
|
+
};
|
|
2501
|
+
};
|
|
2502
|
+
const deserializeAws_restJson1PropertyFiltersList = (output, context) => {
|
|
2503
|
+
const retVal = (output || [])
|
|
2504
|
+
.filter((e) => e != null)
|
|
2505
|
+
.map((entry) => {
|
|
2506
|
+
if (entry === null) {
|
|
2507
|
+
return null;
|
|
2508
|
+
}
|
|
2509
|
+
return deserializeAws_restJson1PropertyFilter(entry, context);
|
|
2510
|
+
});
|
|
2511
|
+
return retVal;
|
|
2512
|
+
};
|
|
2513
|
+
const deserializeAws_restJson1RasterDataCollectionMetadata = (output, context) => {
|
|
2514
|
+
return {
|
|
2515
|
+
Arn: (0, smithy_client_1.expectString)(output.Arn),
|
|
2516
|
+
Description: (0, smithy_client_1.expectString)(output.Description),
|
|
2517
|
+
DescriptionPageUrl: (0, smithy_client_1.expectString)(output.DescriptionPageUrl),
|
|
2518
|
+
Name: (0, smithy_client_1.expectString)(output.Name),
|
|
2519
|
+
SupportedFilters: output.SupportedFilters != null
|
|
2520
|
+
? deserializeAws_restJson1FilterList(output.SupportedFilters, context)
|
|
2521
|
+
: undefined,
|
|
2522
|
+
Tags: output.Tags != null ? deserializeAws_restJson1Tags(output.Tags, context) : undefined,
|
|
2523
|
+
Type: (0, smithy_client_1.expectString)(output.Type),
|
|
2524
|
+
};
|
|
2525
|
+
};
|
|
2526
|
+
const deserializeAws_restJson1RasterDataCollectionQueryOutput = (output, context) => {
|
|
2527
|
+
return {
|
|
2528
|
+
AreaOfInterest: output.AreaOfInterest != null
|
|
2529
|
+
? deserializeAws_restJson1AreaOfInterest((0, smithy_client_1.expectUnion)(output.AreaOfInterest), context)
|
|
2530
|
+
: undefined,
|
|
2531
|
+
PropertyFilters: output.PropertyFilters != null
|
|
2532
|
+
? deserializeAws_restJson1PropertyFilters(output.PropertyFilters, context)
|
|
2533
|
+
: undefined,
|
|
2534
|
+
RasterDataCollectionArn: (0, smithy_client_1.expectString)(output.RasterDataCollectionArn),
|
|
2535
|
+
RasterDataCollectionName: (0, smithy_client_1.expectString)(output.RasterDataCollectionName),
|
|
2536
|
+
TimeRangeFilter: output.TimeRangeFilter != null
|
|
2537
|
+
? deserializeAws_restJson1TimeRangeFilterInput(output.TimeRangeFilter, context)
|
|
2538
|
+
: undefined,
|
|
2539
|
+
};
|
|
2540
|
+
};
|
|
2541
|
+
const deserializeAws_restJson1ResamplingConfigInput = (output, context) => {
|
|
2542
|
+
return {
|
|
2543
|
+
AlgorithmName: (0, smithy_client_1.expectString)(output.AlgorithmName),
|
|
2544
|
+
OutputResolution: output.OutputResolution != null
|
|
2545
|
+
? deserializeAws_restJson1OutputResolutionResamplingInput(output.OutputResolution, context)
|
|
2546
|
+
: undefined,
|
|
2547
|
+
TargetBands: output.TargetBands != null ? deserializeAws_restJson1StringListInput(output.TargetBands, context) : undefined,
|
|
2548
|
+
};
|
|
2549
|
+
};
|
|
2550
|
+
const deserializeAws_restJson1ReverseGeocodingConfig = (output, context) => {
|
|
2551
|
+
return {
|
|
2552
|
+
XAttributeName: (0, smithy_client_1.expectString)(output.XAttributeName),
|
|
2553
|
+
YAttributeName: (0, smithy_client_1.expectString)(output.YAttributeName),
|
|
2554
|
+
};
|
|
2555
|
+
};
|
|
2556
|
+
const deserializeAws_restJson1S3DataInput = (output, context) => {
|
|
2557
|
+
return {
|
|
2558
|
+
KmsKeyId: (0, smithy_client_1.expectString)(output.KmsKeyId),
|
|
2559
|
+
MetadataProvider: (0, smithy_client_1.expectString)(output.MetadataProvider),
|
|
2560
|
+
S3Uri: (0, smithy_client_1.expectString)(output.S3Uri),
|
|
2561
|
+
};
|
|
2562
|
+
};
|
|
2563
|
+
const deserializeAws_restJson1StackConfigInput = (output, context) => {
|
|
2564
|
+
return {
|
|
2565
|
+
OutputResolution: output.OutputResolution != null
|
|
2566
|
+
? deserializeAws_restJson1OutputResolutionStackInput(output.OutputResolution, context)
|
|
2567
|
+
: undefined,
|
|
2568
|
+
TargetBands: output.TargetBands != null ? deserializeAws_restJson1StringListInput(output.TargetBands, context) : undefined,
|
|
2569
|
+
};
|
|
2570
|
+
};
|
|
2571
|
+
const deserializeAws_restJson1StringListInput = (output, context) => {
|
|
2572
|
+
const retVal = (output || [])
|
|
2573
|
+
.filter((e) => e != null)
|
|
2574
|
+
.map((entry) => {
|
|
2575
|
+
if (entry === null) {
|
|
2576
|
+
return null;
|
|
2577
|
+
}
|
|
2578
|
+
return (0, smithy_client_1.expectString)(entry);
|
|
2579
|
+
});
|
|
2580
|
+
return retVal;
|
|
2581
|
+
};
|
|
2582
|
+
const deserializeAws_restJson1Tags = (output, context) => {
|
|
2583
|
+
return Object.entries(output).reduce((acc, [key, value]) => {
|
|
2584
|
+
if (value === null) {
|
|
2585
|
+
return acc;
|
|
2586
|
+
}
|
|
2587
|
+
acc[key] = (0, smithy_client_1.expectString)(value);
|
|
2588
|
+
return acc;
|
|
2589
|
+
}, {});
|
|
2590
|
+
};
|
|
2591
|
+
const deserializeAws_restJson1TemporalStatisticsConfigInput = (output, context) => {
|
|
2592
|
+
return {
|
|
2593
|
+
GroupBy: (0, smithy_client_1.expectString)(output.GroupBy),
|
|
2594
|
+
Statistics: output.Statistics != null
|
|
2595
|
+
? deserializeAws_restJson1TemporalStatisticsListInput(output.Statistics, context)
|
|
2596
|
+
: undefined,
|
|
2597
|
+
TargetBands: output.TargetBands != null ? deserializeAws_restJson1StringListInput(output.TargetBands, context) : undefined,
|
|
2598
|
+
};
|
|
2599
|
+
};
|
|
2600
|
+
const deserializeAws_restJson1TemporalStatisticsListInput = (output, context) => {
|
|
2601
|
+
const retVal = (output || [])
|
|
2602
|
+
.filter((e) => e != null)
|
|
2603
|
+
.map((entry) => {
|
|
2604
|
+
if (entry === null) {
|
|
2605
|
+
return null;
|
|
2606
|
+
}
|
|
2607
|
+
return (0, smithy_client_1.expectString)(entry);
|
|
2608
|
+
});
|
|
2609
|
+
return retVal;
|
|
2610
|
+
};
|
|
2611
|
+
const deserializeAws_restJson1TimeRangeFilterInput = (output, context) => {
|
|
2612
|
+
return {
|
|
2613
|
+
EndTime: output.EndTime != null ? (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(output.EndTime))) : undefined,
|
|
2614
|
+
StartTime: output.StartTime != null ? (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(output.StartTime))) : undefined,
|
|
2615
|
+
};
|
|
2616
|
+
};
|
|
2617
|
+
const deserializeAws_restJson1UserDefined = (output, context) => {
|
|
2618
|
+
return {
|
|
2619
|
+
Unit: (0, smithy_client_1.expectString)(output.Unit),
|
|
2620
|
+
Value: (0, smithy_client_1.limitedParseFloat32)(output.Value),
|
|
2621
|
+
};
|
|
2622
|
+
};
|
|
2623
|
+
const deserializeAws_restJson1VectorEnrichmentJobConfig = (output, context) => {
|
|
2624
|
+
if (output.MapMatchingConfig != null) {
|
|
2625
|
+
return {
|
|
2626
|
+
MapMatchingConfig: deserializeAws_restJson1MapMatchingConfig(output.MapMatchingConfig, context),
|
|
2627
|
+
};
|
|
2628
|
+
}
|
|
2629
|
+
if (output.ReverseGeocodingConfig != null) {
|
|
2630
|
+
return {
|
|
2631
|
+
ReverseGeocodingConfig: deserializeAws_restJson1ReverseGeocodingConfig(output.ReverseGeocodingConfig, context),
|
|
2632
|
+
};
|
|
2633
|
+
}
|
|
2634
|
+
return { $unknown: Object.entries(output)[0] };
|
|
2635
|
+
};
|
|
2636
|
+
const deserializeAws_restJson1VectorEnrichmentJobDataSourceConfigInput = (output, context) => {
|
|
2637
|
+
if (output.S3Data != null) {
|
|
2638
|
+
return {
|
|
2639
|
+
S3Data: deserializeAws_restJson1VectorEnrichmentJobS3Data(output.S3Data, context),
|
|
2640
|
+
};
|
|
2641
|
+
}
|
|
2642
|
+
return { $unknown: Object.entries(output)[0] };
|
|
2643
|
+
};
|
|
2644
|
+
const deserializeAws_restJson1VectorEnrichmentJobErrorDetails = (output, context) => {
|
|
2645
|
+
return {
|
|
2646
|
+
ErrorMessage: (0, smithy_client_1.expectString)(output.ErrorMessage),
|
|
2647
|
+
ErrorType: (0, smithy_client_1.expectString)(output.ErrorType),
|
|
2648
|
+
};
|
|
2649
|
+
};
|
|
2650
|
+
const deserializeAws_restJson1VectorEnrichmentJobExportErrorDetails = (output, context) => {
|
|
2651
|
+
return {
|
|
2652
|
+
Message: (0, smithy_client_1.expectString)(output.Message),
|
|
2653
|
+
Type: (0, smithy_client_1.expectString)(output.Type),
|
|
2654
|
+
};
|
|
2655
|
+
};
|
|
2656
|
+
const deserializeAws_restJson1VectorEnrichmentJobInputConfig = (output, context) => {
|
|
2657
|
+
return {
|
|
2658
|
+
DataSourceConfig: output.DataSourceConfig != null
|
|
2659
|
+
? deserializeAws_restJson1VectorEnrichmentJobDataSourceConfigInput((0, smithy_client_1.expectUnion)(output.DataSourceConfig), context)
|
|
2660
|
+
: undefined,
|
|
2661
|
+
DocumentType: (0, smithy_client_1.expectString)(output.DocumentType),
|
|
2662
|
+
};
|
|
2663
|
+
};
|
|
2664
|
+
const deserializeAws_restJson1VectorEnrichmentJobList = (output, context) => {
|
|
2665
|
+
const retVal = (output || [])
|
|
2666
|
+
.filter((e) => e != null)
|
|
2667
|
+
.map((entry) => {
|
|
2668
|
+
if (entry === null) {
|
|
2669
|
+
return null;
|
|
2670
|
+
}
|
|
2671
|
+
return deserializeAws_restJson1ListVectorEnrichmentJobOutputConfig(entry, context);
|
|
2672
|
+
});
|
|
2673
|
+
return retVal;
|
|
2674
|
+
};
|
|
2675
|
+
const deserializeAws_restJson1VectorEnrichmentJobS3Data = (output, context) => {
|
|
2676
|
+
return {
|
|
2677
|
+
KmsKeyId: (0, smithy_client_1.expectString)(output.KmsKeyId),
|
|
2678
|
+
S3Uri: (0, smithy_client_1.expectString)(output.S3Uri),
|
|
2679
|
+
};
|
|
2680
|
+
};
|
|
2681
|
+
const deserializeAws_restJson1ViewOffNadirInput = (output, context) => {
|
|
2682
|
+
return {
|
|
2683
|
+
LowerBound: (0, smithy_client_1.limitedParseFloat32)(output.LowerBound),
|
|
2684
|
+
UpperBound: (0, smithy_client_1.limitedParseFloat32)(output.UpperBound),
|
|
2685
|
+
};
|
|
2686
|
+
};
|
|
2687
|
+
const deserializeAws_restJson1ViewSunAzimuthInput = (output, context) => {
|
|
2688
|
+
return {
|
|
2689
|
+
LowerBound: (0, smithy_client_1.limitedParseFloat32)(output.LowerBound),
|
|
2690
|
+
UpperBound: (0, smithy_client_1.limitedParseFloat32)(output.UpperBound),
|
|
2691
|
+
};
|
|
2692
|
+
};
|
|
2693
|
+
const deserializeAws_restJson1ViewSunElevationInput = (output, context) => {
|
|
2694
|
+
return {
|
|
2695
|
+
LowerBound: (0, smithy_client_1.limitedParseFloat32)(output.LowerBound),
|
|
2696
|
+
UpperBound: (0, smithy_client_1.limitedParseFloat32)(output.UpperBound),
|
|
2697
|
+
};
|
|
2698
|
+
};
|
|
2699
|
+
const deserializeAws_restJson1ZonalStatisticsConfigInput = (output, context) => {
|
|
2700
|
+
return {
|
|
2701
|
+
Statistics: output.Statistics != null
|
|
2702
|
+
? deserializeAws_restJson1ZonalStatisticsListInput(output.Statistics, context)
|
|
2703
|
+
: undefined,
|
|
2704
|
+
TargetBands: output.TargetBands != null ? deserializeAws_restJson1StringListInput(output.TargetBands, context) : undefined,
|
|
2705
|
+
ZoneS3Path: (0, smithy_client_1.expectString)(output.ZoneS3Path),
|
|
2706
|
+
};
|
|
2707
|
+
};
|
|
2708
|
+
const deserializeAws_restJson1ZonalStatisticsListInput = (output, context) => {
|
|
2709
|
+
const retVal = (output || [])
|
|
2710
|
+
.filter((e) => e != null)
|
|
2711
|
+
.map((entry) => {
|
|
2712
|
+
if (entry === null) {
|
|
2713
|
+
return null;
|
|
2714
|
+
}
|
|
2715
|
+
return (0, smithy_client_1.expectString)(entry);
|
|
2716
|
+
});
|
|
2717
|
+
return retVal;
|
|
2718
|
+
};
|
|
2719
|
+
const deserializeMetadata = (output) => ({
|
|
2720
|
+
httpStatusCode: output.statusCode,
|
|
2721
|
+
requestId: output.headers["x-amzn-requestid"] ?? output.headers["x-amzn-request-id"] ?? output.headers["x-amz-request-id"],
|
|
2722
|
+
extendedRequestId: output.headers["x-amz-id-2"],
|
|
2723
|
+
cfId: output.headers["x-amz-cf-id"],
|
|
2724
|
+
});
|
|
2725
|
+
const collectBody = (streamBody = new Uint8Array(), context) => {
|
|
2726
|
+
if (streamBody instanceof Uint8Array) {
|
|
2727
|
+
return Promise.resolve(streamBody);
|
|
2728
|
+
}
|
|
2729
|
+
return context.streamCollector(streamBody) || Promise.resolve(new Uint8Array());
|
|
2730
|
+
};
|
|
2731
|
+
const collectBodyString = (streamBody, context) => collectBody(streamBody, context).then((body) => context.utf8Encoder(body));
|
|
2732
|
+
const isSerializableHeaderValue = (value) => value !== undefined &&
|
|
2733
|
+
value !== null &&
|
|
2734
|
+
value !== "" &&
|
|
2735
|
+
(!Object.getOwnPropertyNames(value).includes("length") || value.length != 0) &&
|
|
2736
|
+
(!Object.getOwnPropertyNames(value).includes("size") || value.size != 0);
|
|
2737
|
+
const parseBody = (streamBody, context) => collectBodyString(streamBody, context).then((encoded) => {
|
|
2738
|
+
if (encoded.length) {
|
|
2739
|
+
return JSON.parse(encoded);
|
|
2740
|
+
}
|
|
2741
|
+
return {};
|
|
2742
|
+
});
|
|
2743
|
+
const parseErrorBody = async (errorBody, context) => {
|
|
2744
|
+
const value = await parseBody(errorBody, context);
|
|
2745
|
+
value.message = value.message ?? value.Message;
|
|
2746
|
+
return value;
|
|
2747
|
+
};
|
|
2748
|
+
const loadRestJsonErrorCode = (output, data) => {
|
|
2749
|
+
const findKey = (object, key) => Object.keys(object).find((k) => k.toLowerCase() === key.toLowerCase());
|
|
2750
|
+
const sanitizeErrorCode = (rawValue) => {
|
|
2751
|
+
let cleanValue = rawValue;
|
|
2752
|
+
if (typeof cleanValue === "number") {
|
|
2753
|
+
cleanValue = cleanValue.toString();
|
|
2754
|
+
}
|
|
2755
|
+
if (cleanValue.indexOf(",") >= 0) {
|
|
2756
|
+
cleanValue = cleanValue.split(",")[0];
|
|
2757
|
+
}
|
|
2758
|
+
if (cleanValue.indexOf(":") >= 0) {
|
|
2759
|
+
cleanValue = cleanValue.split(":")[0];
|
|
2760
|
+
}
|
|
2761
|
+
if (cleanValue.indexOf("#") >= 0) {
|
|
2762
|
+
cleanValue = cleanValue.split("#")[1];
|
|
2763
|
+
}
|
|
2764
|
+
return cleanValue;
|
|
2765
|
+
};
|
|
2766
|
+
const headerKey = findKey(output.headers, "x-amzn-errortype");
|
|
2767
|
+
if (headerKey !== undefined) {
|
|
2768
|
+
return sanitizeErrorCode(output.headers[headerKey]);
|
|
2769
|
+
}
|
|
2770
|
+
if (data.code !== undefined) {
|
|
2771
|
+
return sanitizeErrorCode(data.code);
|
|
2772
|
+
}
|
|
2773
|
+
if (data["__type"] !== undefined) {
|
|
2774
|
+
return sanitizeErrorCode(data["__type"]);
|
|
2775
|
+
}
|
|
2776
|
+
};
|