@aws-sdk/client-geo-maps 3.899.0 → 3.906.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist-cjs/index.js +688 -839
- package/package.json +38 -38
package/dist-cjs/index.js
CHANGED
|
@@ -1,860 +1,709 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
var
|
|
4
|
-
var
|
|
5
|
-
var
|
|
6
|
-
var
|
|
7
|
-
var
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
var
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
GetStaticMapRequestFilterSensitiveLog: () => GetStaticMapRequestFilterSensitiveLog,
|
|
33
|
-
GetStyleDescriptorCommand: () => GetStyleDescriptorCommand,
|
|
34
|
-
GetStyleDescriptorRequestFilterSensitiveLog: () => GetStyleDescriptorRequestFilterSensitiveLog,
|
|
35
|
-
GetTileCommand: () => GetTileCommand,
|
|
36
|
-
GetTileRequestFilterSensitiveLog: () => GetTileRequestFilterSensitiveLog,
|
|
37
|
-
InternalServerException: () => InternalServerException,
|
|
38
|
-
LabelSize: () => LabelSize,
|
|
39
|
-
MapFeatureMode: () => MapFeatureMode,
|
|
40
|
-
MapStyle: () => MapStyle,
|
|
41
|
-
ResourceNotFoundException: () => ResourceNotFoundException,
|
|
42
|
-
ScaleBarUnit: () => ScaleBarUnit,
|
|
43
|
-
StaticMapStyle: () => StaticMapStyle,
|
|
44
|
-
ThrottlingException: () => ThrottlingException,
|
|
45
|
-
ValidationException: () => ValidationException,
|
|
46
|
-
ValidationExceptionReason: () => ValidationExceptionReason,
|
|
47
|
-
Variant: () => Variant,
|
|
48
|
-
__Client: () => import_smithy_client.Client
|
|
49
|
-
});
|
|
50
|
-
module.exports = __toCommonJS(index_exports);
|
|
51
|
-
|
|
52
|
-
// src/GeoMapsClient.ts
|
|
53
|
-
var import_middleware_host_header = require("@aws-sdk/middleware-host-header");
|
|
54
|
-
var import_middleware_logger = require("@aws-sdk/middleware-logger");
|
|
55
|
-
var import_middleware_recursion_detection = require("@aws-sdk/middleware-recursion-detection");
|
|
56
|
-
var import_middleware_user_agent = require("@aws-sdk/middleware-user-agent");
|
|
57
|
-
var import_config_resolver = require("@smithy/config-resolver");
|
|
58
|
-
var import_core = require("@smithy/core");
|
|
59
|
-
var import_middleware_content_length = require("@smithy/middleware-content-length");
|
|
60
|
-
var import_middleware_endpoint = require("@smithy/middleware-endpoint");
|
|
61
|
-
var import_middleware_retry = require("@smithy/middleware-retry");
|
|
62
|
-
|
|
63
|
-
var import_httpAuthSchemeProvider = require("./auth/httpAuthSchemeProvider");
|
|
64
|
-
|
|
65
|
-
// src/endpoint/EndpointParameters.ts
|
|
66
|
-
var resolveClientEndpointParameters = /* @__PURE__ */ __name((options) => {
|
|
67
|
-
return Object.assign(options, {
|
|
68
|
-
useDualstackEndpoint: options.useDualstackEndpoint ?? false,
|
|
69
|
-
useFipsEndpoint: options.useFipsEndpoint ?? false,
|
|
70
|
-
defaultSigningName: "geo-maps"
|
|
71
|
-
});
|
|
72
|
-
}, "resolveClientEndpointParameters");
|
|
73
|
-
var commonParams = {
|
|
74
|
-
UseFIPS: { type: "builtInParams", name: "useFipsEndpoint" },
|
|
75
|
-
Endpoint: { type: "builtInParams", name: "endpoint" },
|
|
76
|
-
Region: { type: "builtInParams", name: "region" },
|
|
77
|
-
UseDualStack: { type: "builtInParams", name: "useDualstackEndpoint" }
|
|
1
|
+
'use strict';
|
|
2
|
+
|
|
3
|
+
var middlewareHostHeader = require('@aws-sdk/middleware-host-header');
|
|
4
|
+
var middlewareLogger = require('@aws-sdk/middleware-logger');
|
|
5
|
+
var middlewareRecursionDetection = require('@aws-sdk/middleware-recursion-detection');
|
|
6
|
+
var middlewareUserAgent = require('@aws-sdk/middleware-user-agent');
|
|
7
|
+
var configResolver = require('@smithy/config-resolver');
|
|
8
|
+
var core = require('@smithy/core');
|
|
9
|
+
var middlewareContentLength = require('@smithy/middleware-content-length');
|
|
10
|
+
var middlewareEndpoint = require('@smithy/middleware-endpoint');
|
|
11
|
+
var middlewareRetry = require('@smithy/middleware-retry');
|
|
12
|
+
var smithyClient = require('@smithy/smithy-client');
|
|
13
|
+
var httpAuthSchemeProvider = require('./auth/httpAuthSchemeProvider');
|
|
14
|
+
var runtimeConfig = require('./runtimeConfig');
|
|
15
|
+
var regionConfigResolver = require('@aws-sdk/region-config-resolver');
|
|
16
|
+
var protocolHttp = require('@smithy/protocol-http');
|
|
17
|
+
var middlewareSerde = require('@smithy/middleware-serde');
|
|
18
|
+
var core$1 = require('@aws-sdk/core');
|
|
19
|
+
|
|
20
|
+
const resolveClientEndpointParameters = (options) => {
|
|
21
|
+
return Object.assign(options, {
|
|
22
|
+
useDualstackEndpoint: options.useDualstackEndpoint ?? false,
|
|
23
|
+
useFipsEndpoint: options.useFipsEndpoint ?? false,
|
|
24
|
+
defaultSigningName: "geo-maps",
|
|
25
|
+
});
|
|
26
|
+
};
|
|
27
|
+
const commonParams = {
|
|
28
|
+
UseFIPS: { type: "builtInParams", name: "useFipsEndpoint" },
|
|
29
|
+
Endpoint: { type: "builtInParams", name: "endpoint" },
|
|
30
|
+
Region: { type: "builtInParams", name: "region" },
|
|
31
|
+
UseDualStack: { type: "builtInParams", name: "useDualstackEndpoint" },
|
|
78
32
|
};
|
|
79
33
|
|
|
80
|
-
|
|
81
|
-
|
|
34
|
+
const getHttpAuthExtensionConfiguration = (runtimeConfig) => {
|
|
35
|
+
const _httpAuthSchemes = runtimeConfig.httpAuthSchemes;
|
|
36
|
+
let _httpAuthSchemeProvider = runtimeConfig.httpAuthSchemeProvider;
|
|
37
|
+
let _credentials = runtimeConfig.credentials;
|
|
38
|
+
return {
|
|
39
|
+
setHttpAuthScheme(httpAuthScheme) {
|
|
40
|
+
const index = _httpAuthSchemes.findIndex((scheme) => scheme.schemeId === httpAuthScheme.schemeId);
|
|
41
|
+
if (index === -1) {
|
|
42
|
+
_httpAuthSchemes.push(httpAuthScheme);
|
|
43
|
+
}
|
|
44
|
+
else {
|
|
45
|
+
_httpAuthSchemes.splice(index, 1, httpAuthScheme);
|
|
46
|
+
}
|
|
47
|
+
},
|
|
48
|
+
httpAuthSchemes() {
|
|
49
|
+
return _httpAuthSchemes;
|
|
50
|
+
},
|
|
51
|
+
setHttpAuthSchemeProvider(httpAuthSchemeProvider) {
|
|
52
|
+
_httpAuthSchemeProvider = httpAuthSchemeProvider;
|
|
53
|
+
},
|
|
54
|
+
httpAuthSchemeProvider() {
|
|
55
|
+
return _httpAuthSchemeProvider;
|
|
56
|
+
},
|
|
57
|
+
setCredentials(credentials) {
|
|
58
|
+
_credentials = credentials;
|
|
59
|
+
},
|
|
60
|
+
credentials() {
|
|
61
|
+
return _credentials;
|
|
62
|
+
},
|
|
63
|
+
};
|
|
64
|
+
};
|
|
65
|
+
const resolveHttpAuthRuntimeConfig = (config) => {
|
|
66
|
+
return {
|
|
67
|
+
httpAuthSchemes: config.httpAuthSchemes(),
|
|
68
|
+
httpAuthSchemeProvider: config.httpAuthSchemeProvider(),
|
|
69
|
+
credentials: config.credentials(),
|
|
70
|
+
};
|
|
71
|
+
};
|
|
82
72
|
|
|
83
|
-
|
|
84
|
-
|
|
85
|
-
|
|
86
|
-
|
|
73
|
+
const resolveRuntimeExtensions = (runtimeConfig, extensions) => {
|
|
74
|
+
const extensionConfiguration = Object.assign(regionConfigResolver.getAwsRegionExtensionConfiguration(runtimeConfig), smithyClient.getDefaultExtensionConfiguration(runtimeConfig), protocolHttp.getHttpHandlerExtensionConfiguration(runtimeConfig), getHttpAuthExtensionConfiguration(runtimeConfig));
|
|
75
|
+
extensions.forEach((extension) => extension.configure(extensionConfiguration));
|
|
76
|
+
return Object.assign(runtimeConfig, regionConfigResolver.resolveAwsRegionExtensionConfiguration(extensionConfiguration), smithyClient.resolveDefaultRuntimeConfig(extensionConfiguration), protocolHttp.resolveHttpHandlerRuntimeConfig(extensionConfiguration), resolveHttpAuthRuntimeConfig(extensionConfiguration));
|
|
77
|
+
};
|
|
87
78
|
|
|
88
|
-
|
|
89
|
-
|
|
90
|
-
|
|
91
|
-
|
|
92
|
-
|
|
93
|
-
|
|
94
|
-
|
|
95
|
-
|
|
96
|
-
|
|
97
|
-
|
|
98
|
-
|
|
99
|
-
|
|
100
|
-
|
|
101
|
-
|
|
102
|
-
|
|
103
|
-
|
|
104
|
-
|
|
105
|
-
|
|
106
|
-
|
|
107
|
-
|
|
108
|
-
|
|
109
|
-
|
|
110
|
-
|
|
111
|
-
|
|
112
|
-
|
|
113
|
-
|
|
114
|
-
|
|
115
|
-
|
|
79
|
+
class GeoMapsClient extends smithyClient.Client {
|
|
80
|
+
config;
|
|
81
|
+
constructor(...[configuration]) {
|
|
82
|
+
const _config_0 = runtimeConfig.getRuntimeConfig(configuration || {});
|
|
83
|
+
super(_config_0);
|
|
84
|
+
this.initConfig = _config_0;
|
|
85
|
+
const _config_1 = resolveClientEndpointParameters(_config_0);
|
|
86
|
+
const _config_2 = middlewareUserAgent.resolveUserAgentConfig(_config_1);
|
|
87
|
+
const _config_3 = middlewareRetry.resolveRetryConfig(_config_2);
|
|
88
|
+
const _config_4 = configResolver.resolveRegionConfig(_config_3);
|
|
89
|
+
const _config_5 = middlewareHostHeader.resolveHostHeaderConfig(_config_4);
|
|
90
|
+
const _config_6 = middlewareEndpoint.resolveEndpointConfig(_config_5);
|
|
91
|
+
const _config_7 = httpAuthSchemeProvider.resolveHttpAuthSchemeConfig(_config_6);
|
|
92
|
+
const _config_8 = resolveRuntimeExtensions(_config_7, configuration?.extensions || []);
|
|
93
|
+
this.config = _config_8;
|
|
94
|
+
this.middlewareStack.use(middlewareUserAgent.getUserAgentPlugin(this.config));
|
|
95
|
+
this.middlewareStack.use(middlewareRetry.getRetryPlugin(this.config));
|
|
96
|
+
this.middlewareStack.use(middlewareContentLength.getContentLengthPlugin(this.config));
|
|
97
|
+
this.middlewareStack.use(middlewareHostHeader.getHostHeaderPlugin(this.config));
|
|
98
|
+
this.middlewareStack.use(middlewareLogger.getLoggerPlugin(this.config));
|
|
99
|
+
this.middlewareStack.use(middlewareRecursionDetection.getRecursionDetectionPlugin(this.config));
|
|
100
|
+
this.middlewareStack.use(core.getHttpAuthSchemeEndpointRuleSetPlugin(this.config, {
|
|
101
|
+
httpAuthSchemeParametersProvider: httpAuthSchemeProvider.defaultGeoMapsHttpAuthSchemeParametersProvider,
|
|
102
|
+
identityProviderConfigProvider: async (config) => new core.DefaultIdentityProviderConfig({
|
|
103
|
+
"aws.auth#sigv4": config.credentials,
|
|
104
|
+
}),
|
|
105
|
+
}));
|
|
106
|
+
this.middlewareStack.use(core.getHttpSigningPlugin(this.config));
|
|
116
107
|
}
|
|
117
|
-
|
|
118
|
-
|
|
119
|
-
|
|
120
|
-
|
|
121
|
-
httpAuthSchemes: config.httpAuthSchemes(),
|
|
122
|
-
httpAuthSchemeProvider: config.httpAuthSchemeProvider(),
|
|
123
|
-
credentials: config.credentials()
|
|
124
|
-
};
|
|
125
|
-
}, "resolveHttpAuthRuntimeConfig");
|
|
126
|
-
|
|
127
|
-
// src/runtimeExtensions.ts
|
|
128
|
-
var resolveRuntimeExtensions = /* @__PURE__ */ __name((runtimeConfig, extensions) => {
|
|
129
|
-
const extensionConfiguration = Object.assign(
|
|
130
|
-
(0, import_region_config_resolver.getAwsRegionExtensionConfiguration)(runtimeConfig),
|
|
131
|
-
(0, import_smithy_client.getDefaultExtensionConfiguration)(runtimeConfig),
|
|
132
|
-
(0, import_protocol_http.getHttpHandlerExtensionConfiguration)(runtimeConfig),
|
|
133
|
-
getHttpAuthExtensionConfiguration(runtimeConfig)
|
|
134
|
-
);
|
|
135
|
-
extensions.forEach((extension) => extension.configure(extensionConfiguration));
|
|
136
|
-
return Object.assign(
|
|
137
|
-
runtimeConfig,
|
|
138
|
-
(0, import_region_config_resolver.resolveAwsRegionExtensionConfiguration)(extensionConfiguration),
|
|
139
|
-
(0, import_smithy_client.resolveDefaultRuntimeConfig)(extensionConfiguration),
|
|
140
|
-
(0, import_protocol_http.resolveHttpHandlerRuntimeConfig)(extensionConfiguration),
|
|
141
|
-
resolveHttpAuthRuntimeConfig(extensionConfiguration)
|
|
142
|
-
);
|
|
143
|
-
}, "resolveRuntimeExtensions");
|
|
108
|
+
destroy() {
|
|
109
|
+
super.destroy();
|
|
110
|
+
}
|
|
111
|
+
}
|
|
144
112
|
|
|
145
|
-
|
|
146
|
-
|
|
147
|
-
|
|
148
|
-
|
|
149
|
-
|
|
150
|
-
|
|
151
|
-
|
|
152
|
-
|
|
153
|
-
|
|
154
|
-
|
|
155
|
-
|
|
156
|
-
|
|
157
|
-
|
|
158
|
-
|
|
159
|
-
|
|
160
|
-
|
|
161
|
-
|
|
162
|
-
|
|
163
|
-
|
|
164
|
-
|
|
165
|
-
|
|
166
|
-
|
|
167
|
-
|
|
168
|
-
|
|
169
|
-
this.middlewareStack.use((0, import_middleware_content_length.getContentLengthPlugin)(this.config));
|
|
170
|
-
this.middlewareStack.use((0, import_middleware_host_header.getHostHeaderPlugin)(this.config));
|
|
171
|
-
this.middlewareStack.use((0, import_middleware_logger.getLoggerPlugin)(this.config));
|
|
172
|
-
this.middlewareStack.use((0, import_middleware_recursion_detection.getRecursionDetectionPlugin)(this.config));
|
|
173
|
-
this.middlewareStack.use(
|
|
174
|
-
(0, import_core.getHttpAuthSchemeEndpointRuleSetPlugin)(this.config, {
|
|
175
|
-
httpAuthSchemeParametersProvider: import_httpAuthSchemeProvider.defaultGeoMapsHttpAuthSchemeParametersProvider,
|
|
176
|
-
identityProviderConfigProvider: /* @__PURE__ */ __name(async (config) => new import_core.DefaultIdentityProviderConfig({
|
|
177
|
-
"aws.auth#sigv4": config.credentials
|
|
178
|
-
}), "identityProviderConfigProvider")
|
|
179
|
-
})
|
|
180
|
-
);
|
|
181
|
-
this.middlewareStack.use((0, import_core.getHttpSigningPlugin)(this.config));
|
|
182
|
-
}
|
|
183
|
-
/**
|
|
184
|
-
* Destroy underlying resources, like sockets. It's usually not necessary to do this.
|
|
185
|
-
* However in Node.js, it's best to explicitly shut down the client's agent when it is no longer needed.
|
|
186
|
-
* Otherwise, sockets might stay open for quite a long time before the server terminates them.
|
|
187
|
-
*/
|
|
188
|
-
destroy() {
|
|
189
|
-
super.destroy();
|
|
190
|
-
}
|
|
113
|
+
class GeoMapsServiceException extends smithyClient.ServiceException {
|
|
114
|
+
constructor(options) {
|
|
115
|
+
super(options);
|
|
116
|
+
Object.setPrototypeOf(this, GeoMapsServiceException.prototype);
|
|
117
|
+
}
|
|
118
|
+
}
|
|
119
|
+
|
|
120
|
+
class AccessDeniedException extends GeoMapsServiceException {
|
|
121
|
+
name = "AccessDeniedException";
|
|
122
|
+
$fault = "client";
|
|
123
|
+
Message;
|
|
124
|
+
constructor(opts) {
|
|
125
|
+
super({
|
|
126
|
+
name: "AccessDeniedException",
|
|
127
|
+
$fault: "client",
|
|
128
|
+
...opts,
|
|
129
|
+
});
|
|
130
|
+
Object.setPrototypeOf(this, AccessDeniedException.prototype);
|
|
131
|
+
this.Message = opts.Message;
|
|
132
|
+
}
|
|
133
|
+
}
|
|
134
|
+
const ColorScheme = {
|
|
135
|
+
DARK: "Dark",
|
|
136
|
+
LIGHT: "Light",
|
|
191
137
|
};
|
|
192
|
-
|
|
193
|
-
|
|
194
|
-
|
|
195
|
-
|
|
196
|
-
|
|
197
|
-
|
|
198
|
-
var import_middleware_serde = require("@smithy/middleware-serde");
|
|
199
|
-
|
|
200
|
-
|
|
201
|
-
// src/protocols/Aws_restJson1.ts
|
|
202
|
-
var import_core2 = require("@aws-sdk/core");
|
|
203
|
-
|
|
204
|
-
|
|
205
|
-
|
|
206
|
-
// src/models/GeoMapsServiceException.ts
|
|
207
|
-
|
|
208
|
-
var GeoMapsServiceException = class _GeoMapsServiceException extends import_smithy_client.ServiceException {
|
|
209
|
-
static {
|
|
210
|
-
__name(this, "GeoMapsServiceException");
|
|
211
|
-
}
|
|
212
|
-
/**
|
|
213
|
-
* @internal
|
|
214
|
-
*/
|
|
215
|
-
constructor(options) {
|
|
216
|
-
super(options);
|
|
217
|
-
Object.setPrototypeOf(this, _GeoMapsServiceException.prototype);
|
|
218
|
-
}
|
|
138
|
+
const MapStyle = {
|
|
139
|
+
HYBRID: "Hybrid",
|
|
140
|
+
MONOCHROME: "Monochrome",
|
|
141
|
+
SATELLITE: "Satellite",
|
|
142
|
+
STANDARD: "Standard",
|
|
219
143
|
};
|
|
144
|
+
const Variant = {
|
|
145
|
+
DEFAULT: "Default",
|
|
146
|
+
};
|
|
147
|
+
const LabelSize = {
|
|
148
|
+
LARGE: "Large",
|
|
149
|
+
SMALL: "Small",
|
|
150
|
+
};
|
|
151
|
+
const MapFeatureMode = {
|
|
152
|
+
DISABLED: "Disabled",
|
|
153
|
+
ENABLED: "Enabled",
|
|
154
|
+
};
|
|
155
|
+
const ScaleBarUnit = {
|
|
156
|
+
KILOMETERS: "Kilometers",
|
|
157
|
+
KILOMETERS_MILES: "KilometersMiles",
|
|
158
|
+
MILES: "Miles",
|
|
159
|
+
MILES_KILOMETERS: "MilesKilometers",
|
|
160
|
+
};
|
|
161
|
+
const StaticMapStyle = {
|
|
162
|
+
SATELLITE: "Satellite",
|
|
163
|
+
STANDARD: "Standard",
|
|
164
|
+
};
|
|
165
|
+
class InternalServerException extends GeoMapsServiceException {
|
|
166
|
+
name = "InternalServerException";
|
|
167
|
+
$fault = "server";
|
|
168
|
+
$retryable = {};
|
|
169
|
+
Message;
|
|
170
|
+
constructor(opts) {
|
|
171
|
+
super({
|
|
172
|
+
name: "InternalServerException",
|
|
173
|
+
$fault: "server",
|
|
174
|
+
...opts,
|
|
175
|
+
});
|
|
176
|
+
Object.setPrototypeOf(this, InternalServerException.prototype);
|
|
177
|
+
this.Message = opts.Message;
|
|
178
|
+
}
|
|
179
|
+
}
|
|
180
|
+
class ThrottlingException extends GeoMapsServiceException {
|
|
181
|
+
name = "ThrottlingException";
|
|
182
|
+
$fault = "client";
|
|
183
|
+
$retryable = {};
|
|
184
|
+
Message;
|
|
185
|
+
constructor(opts) {
|
|
186
|
+
super({
|
|
187
|
+
name: "ThrottlingException",
|
|
188
|
+
$fault: "client",
|
|
189
|
+
...opts,
|
|
190
|
+
});
|
|
191
|
+
Object.setPrototypeOf(this, ThrottlingException.prototype);
|
|
192
|
+
this.Message = opts.Message;
|
|
193
|
+
}
|
|
194
|
+
}
|
|
195
|
+
const ValidationExceptionReason = {
|
|
196
|
+
CANNOT_PARSE: "CannotParse",
|
|
197
|
+
FIELD_VALIDATION_FAILED: "FieldValidationFailed",
|
|
198
|
+
MISSING: "Missing",
|
|
199
|
+
OTHER: "Other",
|
|
200
|
+
UNKNOWN_FIELD: "UnknownField",
|
|
201
|
+
UNKNOWN_OPERATION: "UnknownOperation",
|
|
202
|
+
};
|
|
203
|
+
class ValidationException extends GeoMapsServiceException {
|
|
204
|
+
name = "ValidationException";
|
|
205
|
+
$fault = "client";
|
|
206
|
+
Message;
|
|
207
|
+
Reason;
|
|
208
|
+
FieldList;
|
|
209
|
+
constructor(opts) {
|
|
210
|
+
super({
|
|
211
|
+
name: "ValidationException",
|
|
212
|
+
$fault: "client",
|
|
213
|
+
...opts,
|
|
214
|
+
});
|
|
215
|
+
Object.setPrototypeOf(this, ValidationException.prototype);
|
|
216
|
+
this.Message = opts.Message;
|
|
217
|
+
this.Reason = opts.Reason;
|
|
218
|
+
this.FieldList = opts.FieldList;
|
|
219
|
+
}
|
|
220
|
+
}
|
|
221
|
+
class ResourceNotFoundException extends GeoMapsServiceException {
|
|
222
|
+
name = "ResourceNotFoundException";
|
|
223
|
+
$fault = "client";
|
|
224
|
+
Message;
|
|
225
|
+
constructor(opts) {
|
|
226
|
+
super({
|
|
227
|
+
name: "ResourceNotFoundException",
|
|
228
|
+
$fault: "client",
|
|
229
|
+
...opts,
|
|
230
|
+
});
|
|
231
|
+
Object.setPrototypeOf(this, ResourceNotFoundException.prototype);
|
|
232
|
+
this.Message = opts.Message;
|
|
233
|
+
}
|
|
234
|
+
}
|
|
235
|
+
const GetStaticMapRequestFilterSensitiveLog = (obj) => ({
|
|
236
|
+
...obj,
|
|
237
|
+
...(obj.BoundingBox && { BoundingBox: smithyClient.SENSITIVE_STRING }),
|
|
238
|
+
...(obj.BoundedPositions && { BoundedPositions: smithyClient.SENSITIVE_STRING }),
|
|
239
|
+
...(obj.Center && { Center: smithyClient.SENSITIVE_STRING }),
|
|
240
|
+
...(obj.CompactOverlay && { CompactOverlay: smithyClient.SENSITIVE_STRING }),
|
|
241
|
+
...(obj.GeoJsonOverlay && { GeoJsonOverlay: smithyClient.SENSITIVE_STRING }),
|
|
242
|
+
...(obj.Height && { Height: smithyClient.SENSITIVE_STRING }),
|
|
243
|
+
...(obj.Key && { Key: smithyClient.SENSITIVE_STRING }),
|
|
244
|
+
...(obj.Padding && { Padding: smithyClient.SENSITIVE_STRING }),
|
|
245
|
+
...(obj.PoliticalView && { PoliticalView: smithyClient.SENSITIVE_STRING }),
|
|
246
|
+
...(obj.Radius && { Radius: smithyClient.SENSITIVE_STRING }),
|
|
247
|
+
...(obj.Width && { Width: smithyClient.SENSITIVE_STRING }),
|
|
248
|
+
...(obj.Zoom && { Zoom: smithyClient.SENSITIVE_STRING }),
|
|
249
|
+
});
|
|
250
|
+
const GetStyleDescriptorRequestFilterSensitiveLog = (obj) => ({
|
|
251
|
+
...obj,
|
|
252
|
+
...(obj.PoliticalView && { PoliticalView: smithyClient.SENSITIVE_STRING }),
|
|
253
|
+
...(obj.Key && { Key: smithyClient.SENSITIVE_STRING }),
|
|
254
|
+
});
|
|
255
|
+
const GetTileRequestFilterSensitiveLog = (obj) => ({
|
|
256
|
+
...obj,
|
|
257
|
+
...(obj.Z && { Z: smithyClient.SENSITIVE_STRING }),
|
|
258
|
+
...(obj.X && { X: smithyClient.SENSITIVE_STRING }),
|
|
259
|
+
...(obj.Y && { Y: smithyClient.SENSITIVE_STRING }),
|
|
260
|
+
...(obj.Key && { Key: smithyClient.SENSITIVE_STRING }),
|
|
261
|
+
});
|
|
220
262
|
|
|
221
|
-
|
|
222
|
-
|
|
223
|
-
|
|
224
|
-
|
|
225
|
-
|
|
226
|
-
|
|
227
|
-
|
|
228
|
-
|
|
229
|
-
|
|
230
|
-
|
|
231
|
-
|
|
232
|
-
|
|
233
|
-
|
|
234
|
-
|
|
235
|
-
|
|
236
|
-
|
|
237
|
-
|
|
263
|
+
const se_GetGlyphsCommand = async (input, context) => {
|
|
264
|
+
const b = core.requestBuilder(input, context);
|
|
265
|
+
const headers = {};
|
|
266
|
+
b.bp("/glyphs/{FontStack}/{FontUnicodeRange}");
|
|
267
|
+
b.p("FontStack", () => input.FontStack, "{FontStack}", false);
|
|
268
|
+
b.p("FontUnicodeRange", () => input.FontUnicodeRange, "{FontUnicodeRange}", false);
|
|
269
|
+
let body;
|
|
270
|
+
b.m("GET").h(headers).b(body);
|
|
271
|
+
return b.build();
|
|
272
|
+
};
|
|
273
|
+
const se_GetSpritesCommand = async (input, context) => {
|
|
274
|
+
const b = core.requestBuilder(input, context);
|
|
275
|
+
const headers = {};
|
|
276
|
+
b.bp("/styles/{Style}/{ColorScheme}/{Variant}/sprites/{FileName}");
|
|
277
|
+
b.p("FileName", () => input.FileName, "{FileName}", false);
|
|
278
|
+
b.p("Style", () => input.Style, "{Style}", false);
|
|
279
|
+
b.p("ColorScheme", () => input.ColorScheme, "{ColorScheme}", false);
|
|
280
|
+
b.p("Variant", () => input.Variant, "{Variant}", false);
|
|
281
|
+
let body;
|
|
282
|
+
b.m("GET").h(headers).b(body);
|
|
283
|
+
return b.build();
|
|
284
|
+
};
|
|
285
|
+
const se_GetStaticMapCommand = async (input, context) => {
|
|
286
|
+
const b = core.requestBuilder(input, context);
|
|
287
|
+
const headers = {};
|
|
288
|
+
b.bp("/static/{FileName}");
|
|
289
|
+
b.p("FileName", () => input.FileName, "{FileName}", false);
|
|
290
|
+
const query = smithyClient.map({
|
|
291
|
+
[_bb]: [, input[_BB]],
|
|
292
|
+
[_bp]: [, input[_BP]],
|
|
293
|
+
[_c]: [, input[_C]],
|
|
294
|
+
[_cs]: [, input[_CS]],
|
|
295
|
+
[_co]: [, input[_CO]],
|
|
296
|
+
[_cl]: [() => input.CropLabels !== void 0, () => input[_CL].toString()],
|
|
297
|
+
[_go]: [, input[_GJO]],
|
|
298
|
+
[_h]: [smithyClient.expectNonNull(input.Height, `Height`) != null, () => input[_H].toString()],
|
|
299
|
+
[_k]: [, input[_K]],
|
|
300
|
+
[_ls]: [, input[_LS]],
|
|
301
|
+
[_l]: [, input[_L]],
|
|
302
|
+
[_p]: [() => input.Padding !== void 0, () => input[_P].toString()],
|
|
303
|
+
[_pv]: [, input[_PV]],
|
|
304
|
+
[_po]: [, input[_POI]],
|
|
305
|
+
[_r]: [() => input.Radius !== void 0, () => input[_R].toString()],
|
|
306
|
+
[_su]: [, input[_SBU]],
|
|
307
|
+
[_s]: [, input[_S]],
|
|
308
|
+
[_w]: [smithyClient.expectNonNull(input.Width, `Width`) != null, () => input[_W].toString()],
|
|
309
|
+
[_z]: [() => input.Zoom !== void 0, () => (input[_Z] % 1 == 0 ? input[_Z] + ".0" : input[_Z].toString())],
|
|
238
310
|
});
|
|
239
|
-
|
|
240
|
-
|
|
241
|
-
|
|
242
|
-
};
|
|
243
|
-
|
|
244
|
-
|
|
245
|
-
|
|
246
|
-
};
|
|
247
|
-
|
|
248
|
-
|
|
249
|
-
|
|
250
|
-
|
|
251
|
-
|
|
252
|
-
};
|
|
253
|
-
var Variant = {
|
|
254
|
-
DEFAULT: "Default"
|
|
255
|
-
};
|
|
256
|
-
var LabelSize = {
|
|
257
|
-
LARGE: "Large",
|
|
258
|
-
SMALL: "Small"
|
|
259
|
-
};
|
|
260
|
-
var MapFeatureMode = {
|
|
261
|
-
DISABLED: "Disabled",
|
|
262
|
-
ENABLED: "Enabled"
|
|
263
|
-
};
|
|
264
|
-
var ScaleBarUnit = {
|
|
265
|
-
KILOMETERS: "Kilometers",
|
|
266
|
-
KILOMETERS_MILES: "KilometersMiles",
|
|
267
|
-
MILES: "Miles",
|
|
268
|
-
MILES_KILOMETERS: "MilesKilometers"
|
|
269
|
-
};
|
|
270
|
-
var StaticMapStyle = {
|
|
271
|
-
SATELLITE: "Satellite",
|
|
272
|
-
STANDARD: "Standard"
|
|
273
|
-
};
|
|
274
|
-
var InternalServerException = class _InternalServerException extends GeoMapsServiceException {
|
|
275
|
-
static {
|
|
276
|
-
__name(this, "InternalServerException");
|
|
277
|
-
}
|
|
278
|
-
name = "InternalServerException";
|
|
279
|
-
$fault = "server";
|
|
280
|
-
$retryable = {};
|
|
281
|
-
Message;
|
|
282
|
-
/**
|
|
283
|
-
* @internal
|
|
284
|
-
*/
|
|
285
|
-
constructor(opts) {
|
|
286
|
-
super({
|
|
287
|
-
name: "InternalServerException",
|
|
288
|
-
$fault: "server",
|
|
289
|
-
...opts
|
|
311
|
+
let body;
|
|
312
|
+
b.m("GET").h(headers).q(query).b(body);
|
|
313
|
+
return b.build();
|
|
314
|
+
};
|
|
315
|
+
const se_GetStyleDescriptorCommand = async (input, context) => {
|
|
316
|
+
const b = core.requestBuilder(input, context);
|
|
317
|
+
const headers = {};
|
|
318
|
+
b.bp("/styles/{Style}/descriptor");
|
|
319
|
+
b.p("Style", () => input.Style, "{Style}", false);
|
|
320
|
+
const query = smithyClient.map({
|
|
321
|
+
[_cs]: [, input[_CS]],
|
|
322
|
+
[_pv]: [, input[_PV]],
|
|
323
|
+
[_k]: [, input[_K]],
|
|
290
324
|
});
|
|
291
|
-
|
|
292
|
-
|
|
293
|
-
|
|
294
|
-
};
|
|
295
|
-
|
|
296
|
-
|
|
297
|
-
|
|
298
|
-
|
|
299
|
-
|
|
300
|
-
|
|
301
|
-
|
|
302
|
-
|
|
303
|
-
|
|
304
|
-
|
|
305
|
-
*/
|
|
306
|
-
constructor(opts) {
|
|
307
|
-
super({
|
|
308
|
-
name: "ThrottlingException",
|
|
309
|
-
$fault: "client",
|
|
310
|
-
...opts
|
|
325
|
+
let body;
|
|
326
|
+
b.m("GET").h(headers).q(query).b(body);
|
|
327
|
+
return b.build();
|
|
328
|
+
};
|
|
329
|
+
const se_GetTileCommand = async (input, context) => {
|
|
330
|
+
const b = core.requestBuilder(input, context);
|
|
331
|
+
const headers = {};
|
|
332
|
+
b.bp("/tiles/{Tileset}/{Z}/{X}/{Y}");
|
|
333
|
+
b.p("Tileset", () => input.Tileset, "{Tileset}", false);
|
|
334
|
+
b.p("Z", () => input.Z, "{Z}", false);
|
|
335
|
+
b.p("X", () => input.X, "{X}", false);
|
|
336
|
+
b.p("Y", () => input.Y, "{Y}", false);
|
|
337
|
+
const query = smithyClient.map({
|
|
338
|
+
[_k]: [, input[_K]],
|
|
311
339
|
});
|
|
312
|
-
|
|
313
|
-
|
|
314
|
-
|
|
315
|
-
};
|
|
316
|
-
|
|
317
|
-
|
|
318
|
-
|
|
319
|
-
|
|
320
|
-
|
|
321
|
-
|
|
322
|
-
|
|
323
|
-
|
|
324
|
-
|
|
325
|
-
* required numeric argument is outside the allowed range.
|
|
326
|
-
*
|
|
327
|
-
*/
|
|
328
|
-
FIELD_VALIDATION_FAILED: "FieldValidationFailed",
|
|
329
|
-
/**
|
|
330
|
-
* The required input is missing.
|
|
331
|
-
*/
|
|
332
|
-
MISSING: "Missing",
|
|
333
|
-
/**
|
|
334
|
-
* The input is invalid but no more specific reason is applicable.
|
|
335
|
-
*/
|
|
336
|
-
OTHER: "Other",
|
|
337
|
-
/**
|
|
338
|
-
* No such field is supported.
|
|
339
|
-
*/
|
|
340
|
-
UNKNOWN_FIELD: "UnknownField",
|
|
341
|
-
/**
|
|
342
|
-
* No such operation is supported.
|
|
343
|
-
*/
|
|
344
|
-
UNKNOWN_OPERATION: "UnknownOperation"
|
|
345
|
-
};
|
|
346
|
-
var ValidationException = class _ValidationException extends GeoMapsServiceException {
|
|
347
|
-
static {
|
|
348
|
-
__name(this, "ValidationException");
|
|
349
|
-
}
|
|
350
|
-
name = "ValidationException";
|
|
351
|
-
$fault = "client";
|
|
352
|
-
Message;
|
|
353
|
-
/**
|
|
354
|
-
* <p>The field where the invalid entry was detected.</p>
|
|
355
|
-
* @public
|
|
356
|
-
*/
|
|
357
|
-
Reason;
|
|
358
|
-
/**
|
|
359
|
-
* <p>A message with the reason for the validation exception error.</p>
|
|
360
|
-
* @public
|
|
361
|
-
*/
|
|
362
|
-
FieldList;
|
|
363
|
-
/**
|
|
364
|
-
* @internal
|
|
365
|
-
*/
|
|
366
|
-
constructor(opts) {
|
|
367
|
-
super({
|
|
368
|
-
name: "ValidationException",
|
|
369
|
-
$fault: "client",
|
|
370
|
-
...opts
|
|
340
|
+
let body;
|
|
341
|
+
b.m("GET").h(headers).q(query).b(body);
|
|
342
|
+
return b.build();
|
|
343
|
+
};
|
|
344
|
+
const de_GetGlyphsCommand = async (output, context) => {
|
|
345
|
+
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
346
|
+
return de_CommandError(output, context);
|
|
347
|
+
}
|
|
348
|
+
const contents = smithyClient.map({
|
|
349
|
+
$metadata: deserializeMetadata(output),
|
|
350
|
+
[_CT]: [, output.headers[_ct]],
|
|
351
|
+
[_CC]: [, output.headers[_cc]],
|
|
352
|
+
[_ET]: [, output.headers[_e]],
|
|
371
353
|
});
|
|
372
|
-
|
|
373
|
-
|
|
374
|
-
|
|
375
|
-
|
|
376
|
-
|
|
377
|
-
|
|
378
|
-
|
|
379
|
-
|
|
380
|
-
|
|
381
|
-
|
|
382
|
-
|
|
383
|
-
|
|
384
|
-
|
|
385
|
-
/**
|
|
386
|
-
* @internal
|
|
387
|
-
*/
|
|
388
|
-
constructor(opts) {
|
|
389
|
-
super({
|
|
390
|
-
name: "ResourceNotFoundException",
|
|
391
|
-
$fault: "client",
|
|
392
|
-
...opts
|
|
354
|
+
const data = await smithyClient.collectBody(output.body, context);
|
|
355
|
+
contents.Blob = data;
|
|
356
|
+
return contents;
|
|
357
|
+
};
|
|
358
|
+
const de_GetSpritesCommand = async (output, context) => {
|
|
359
|
+
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
360
|
+
return de_CommandError(output, context);
|
|
361
|
+
}
|
|
362
|
+
const contents = smithyClient.map({
|
|
363
|
+
$metadata: deserializeMetadata(output),
|
|
364
|
+
[_CT]: [, output.headers[_ct]],
|
|
365
|
+
[_CC]: [, output.headers[_cc]],
|
|
366
|
+
[_ET]: [, output.headers[_e]],
|
|
393
367
|
});
|
|
394
|
-
|
|
395
|
-
|
|
396
|
-
|
|
397
|
-
};
|
|
398
|
-
var GetStaticMapRequestFilterSensitiveLog = /* @__PURE__ */ __name((obj) => ({
|
|
399
|
-
...obj,
|
|
400
|
-
...obj.BoundingBox && { BoundingBox: import_smithy_client.SENSITIVE_STRING },
|
|
401
|
-
...obj.BoundedPositions && { BoundedPositions: import_smithy_client.SENSITIVE_STRING },
|
|
402
|
-
...obj.Center && { Center: import_smithy_client.SENSITIVE_STRING },
|
|
403
|
-
...obj.CompactOverlay && { CompactOverlay: import_smithy_client.SENSITIVE_STRING },
|
|
404
|
-
...obj.GeoJsonOverlay && { GeoJsonOverlay: import_smithy_client.SENSITIVE_STRING },
|
|
405
|
-
...obj.Height && { Height: import_smithy_client.SENSITIVE_STRING },
|
|
406
|
-
...obj.Key && { Key: import_smithy_client.SENSITIVE_STRING },
|
|
407
|
-
...obj.Padding && { Padding: import_smithy_client.SENSITIVE_STRING },
|
|
408
|
-
...obj.PoliticalView && { PoliticalView: import_smithy_client.SENSITIVE_STRING },
|
|
409
|
-
...obj.Radius && { Radius: import_smithy_client.SENSITIVE_STRING },
|
|
410
|
-
...obj.Width && { Width: import_smithy_client.SENSITIVE_STRING },
|
|
411
|
-
...obj.Zoom && { Zoom: import_smithy_client.SENSITIVE_STRING }
|
|
412
|
-
}), "GetStaticMapRequestFilterSensitiveLog");
|
|
413
|
-
var GetStyleDescriptorRequestFilterSensitiveLog = /* @__PURE__ */ __name((obj) => ({
|
|
414
|
-
...obj,
|
|
415
|
-
...obj.PoliticalView && { PoliticalView: import_smithy_client.SENSITIVE_STRING },
|
|
416
|
-
...obj.Key && { Key: import_smithy_client.SENSITIVE_STRING }
|
|
417
|
-
}), "GetStyleDescriptorRequestFilterSensitiveLog");
|
|
418
|
-
var GetTileRequestFilterSensitiveLog = /* @__PURE__ */ __name((obj) => ({
|
|
419
|
-
...obj,
|
|
420
|
-
...obj.Z && { Z: import_smithy_client.SENSITIVE_STRING },
|
|
421
|
-
...obj.X && { X: import_smithy_client.SENSITIVE_STRING },
|
|
422
|
-
...obj.Y && { Y: import_smithy_client.SENSITIVE_STRING },
|
|
423
|
-
...obj.Key && { Key: import_smithy_client.SENSITIVE_STRING }
|
|
424
|
-
}), "GetTileRequestFilterSensitiveLog");
|
|
425
|
-
|
|
426
|
-
// src/protocols/Aws_restJson1.ts
|
|
427
|
-
var se_GetGlyphsCommand = /* @__PURE__ */ __name(async (input, context) => {
|
|
428
|
-
const b = (0, import_core.requestBuilder)(input, context);
|
|
429
|
-
const headers = {};
|
|
430
|
-
b.bp("/glyphs/{FontStack}/{FontUnicodeRange}");
|
|
431
|
-
b.p("FontStack", () => input.FontStack, "{FontStack}", false);
|
|
432
|
-
b.p("FontUnicodeRange", () => input.FontUnicodeRange, "{FontUnicodeRange}", false);
|
|
433
|
-
let body;
|
|
434
|
-
b.m("GET").h(headers).b(body);
|
|
435
|
-
return b.build();
|
|
436
|
-
}, "se_GetGlyphsCommand");
|
|
437
|
-
var se_GetSpritesCommand = /* @__PURE__ */ __name(async (input, context) => {
|
|
438
|
-
const b = (0, import_core.requestBuilder)(input, context);
|
|
439
|
-
const headers = {};
|
|
440
|
-
b.bp("/styles/{Style}/{ColorScheme}/{Variant}/sprites/{FileName}");
|
|
441
|
-
b.p("FileName", () => input.FileName, "{FileName}", false);
|
|
442
|
-
b.p("Style", () => input.Style, "{Style}", false);
|
|
443
|
-
b.p("ColorScheme", () => input.ColorScheme, "{ColorScheme}", false);
|
|
444
|
-
b.p("Variant", () => input.Variant, "{Variant}", false);
|
|
445
|
-
let body;
|
|
446
|
-
b.m("GET").h(headers).b(body);
|
|
447
|
-
return b.build();
|
|
448
|
-
}, "se_GetSpritesCommand");
|
|
449
|
-
var se_GetStaticMapCommand = /* @__PURE__ */ __name(async (input, context) => {
|
|
450
|
-
const b = (0, import_core.requestBuilder)(input, context);
|
|
451
|
-
const headers = {};
|
|
452
|
-
b.bp("/static/{FileName}");
|
|
453
|
-
b.p("FileName", () => input.FileName, "{FileName}", false);
|
|
454
|
-
const query = (0, import_smithy_client.map)({
|
|
455
|
-
[_bb]: [, input[_BB]],
|
|
456
|
-
[_bp]: [, input[_BP]],
|
|
457
|
-
[_c]: [, input[_C]],
|
|
458
|
-
[_cs]: [, input[_CS]],
|
|
459
|
-
[_co]: [, input[_CO]],
|
|
460
|
-
[_cl]: [() => input.CropLabels !== void 0, () => input[_CL].toString()],
|
|
461
|
-
[_go]: [, input[_GJO]],
|
|
462
|
-
[_h]: [(0, import_smithy_client.expectNonNull)(input.Height, `Height`) != null, () => input[_H].toString()],
|
|
463
|
-
[_k]: [, input[_K]],
|
|
464
|
-
[_ls]: [, input[_LS]],
|
|
465
|
-
[_l]: [, input[_L]],
|
|
466
|
-
[_p]: [() => input.Padding !== void 0, () => input[_P].toString()],
|
|
467
|
-
[_pv]: [, input[_PV]],
|
|
468
|
-
[_po]: [, input[_POI]],
|
|
469
|
-
[_r]: [() => input.Radius !== void 0, () => input[_R].toString()],
|
|
470
|
-
[_su]: [, input[_SBU]],
|
|
471
|
-
[_s]: [, input[_S]],
|
|
472
|
-
[_w]: [(0, import_smithy_client.expectNonNull)(input.Width, `Width`) != null, () => input[_W].toString()],
|
|
473
|
-
[_z]: [() => input.Zoom !== void 0, () => input[_Z] % 1 == 0 ? input[_Z] + ".0" : input[_Z].toString()]
|
|
474
|
-
});
|
|
475
|
-
let body;
|
|
476
|
-
b.m("GET").h(headers).q(query).b(body);
|
|
477
|
-
return b.build();
|
|
478
|
-
}, "se_GetStaticMapCommand");
|
|
479
|
-
var se_GetStyleDescriptorCommand = /* @__PURE__ */ __name(async (input, context) => {
|
|
480
|
-
const b = (0, import_core.requestBuilder)(input, context);
|
|
481
|
-
const headers = {};
|
|
482
|
-
b.bp("/styles/{Style}/descriptor");
|
|
483
|
-
b.p("Style", () => input.Style, "{Style}", false);
|
|
484
|
-
const query = (0, import_smithy_client.map)({
|
|
485
|
-
[_cs]: [, input[_CS]],
|
|
486
|
-
[_pv]: [, input[_PV]],
|
|
487
|
-
[_k]: [, input[_K]]
|
|
488
|
-
});
|
|
489
|
-
let body;
|
|
490
|
-
b.m("GET").h(headers).q(query).b(body);
|
|
491
|
-
return b.build();
|
|
492
|
-
}, "se_GetStyleDescriptorCommand");
|
|
493
|
-
var se_GetTileCommand = /* @__PURE__ */ __name(async (input, context) => {
|
|
494
|
-
const b = (0, import_core.requestBuilder)(input, context);
|
|
495
|
-
const headers = {};
|
|
496
|
-
b.bp("/tiles/{Tileset}/{Z}/{X}/{Y}");
|
|
497
|
-
b.p("Tileset", () => input.Tileset, "{Tileset}", false);
|
|
498
|
-
b.p("Z", () => input.Z, "{Z}", false);
|
|
499
|
-
b.p("X", () => input.X, "{X}", false);
|
|
500
|
-
b.p("Y", () => input.Y, "{Y}", false);
|
|
501
|
-
const query = (0, import_smithy_client.map)({
|
|
502
|
-
[_k]: [, input[_K]]
|
|
503
|
-
});
|
|
504
|
-
let body;
|
|
505
|
-
b.m("GET").h(headers).q(query).b(body);
|
|
506
|
-
return b.build();
|
|
507
|
-
}, "se_GetTileCommand");
|
|
508
|
-
var de_GetGlyphsCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
509
|
-
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
510
|
-
return de_CommandError(output, context);
|
|
511
|
-
}
|
|
512
|
-
const contents = (0, import_smithy_client.map)({
|
|
513
|
-
$metadata: deserializeMetadata(output),
|
|
514
|
-
[_CT]: [, output.headers[_ct]],
|
|
515
|
-
[_CC]: [, output.headers[_cc]],
|
|
516
|
-
[_ET]: [, output.headers[_e]]
|
|
517
|
-
});
|
|
518
|
-
const data = await (0, import_smithy_client.collectBody)(output.body, context);
|
|
519
|
-
contents.Blob = data;
|
|
520
|
-
return contents;
|
|
521
|
-
}, "de_GetGlyphsCommand");
|
|
522
|
-
var de_GetSpritesCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
523
|
-
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
524
|
-
return de_CommandError(output, context);
|
|
525
|
-
}
|
|
526
|
-
const contents = (0, import_smithy_client.map)({
|
|
527
|
-
$metadata: deserializeMetadata(output),
|
|
528
|
-
[_CT]: [, output.headers[_ct]],
|
|
529
|
-
[_CC]: [, output.headers[_cc]],
|
|
530
|
-
[_ET]: [, output.headers[_e]]
|
|
531
|
-
});
|
|
532
|
-
const data = await (0, import_smithy_client.collectBody)(output.body, context);
|
|
533
|
-
contents.Blob = data;
|
|
534
|
-
return contents;
|
|
535
|
-
}, "de_GetSpritesCommand");
|
|
536
|
-
var de_GetStaticMapCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
537
|
-
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
538
|
-
return de_CommandError(output, context);
|
|
539
|
-
}
|
|
540
|
-
const contents = (0, import_smithy_client.map)({
|
|
541
|
-
$metadata: deserializeMetadata(output),
|
|
542
|
-
[_CT]: [, output.headers[_ct]],
|
|
543
|
-
[_CC]: [, output.headers[_cc]],
|
|
544
|
-
[_ET]: [, output.headers[_e]],
|
|
545
|
-
[_PB]: [, output.headers[_xagpb]]
|
|
546
|
-
});
|
|
547
|
-
const data = await (0, import_smithy_client.collectBody)(output.body, context);
|
|
548
|
-
contents.Blob = data;
|
|
549
|
-
return contents;
|
|
550
|
-
}, "de_GetStaticMapCommand");
|
|
551
|
-
var de_GetStyleDescriptorCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
552
|
-
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
553
|
-
return de_CommandError(output, context);
|
|
554
|
-
}
|
|
555
|
-
const contents = (0, import_smithy_client.map)({
|
|
556
|
-
$metadata: deserializeMetadata(output),
|
|
557
|
-
[_CT]: [, output.headers[_ct]],
|
|
558
|
-
[_CC]: [, output.headers[_cc]],
|
|
559
|
-
[_ET]: [, output.headers[_e]]
|
|
560
|
-
});
|
|
561
|
-
const data = await (0, import_smithy_client.collectBody)(output.body, context);
|
|
562
|
-
contents.Blob = data;
|
|
563
|
-
return contents;
|
|
564
|
-
}, "de_GetStyleDescriptorCommand");
|
|
565
|
-
var de_GetTileCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
566
|
-
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
567
|
-
return de_CommandError(output, context);
|
|
568
|
-
}
|
|
569
|
-
const contents = (0, import_smithy_client.map)({
|
|
570
|
-
$metadata: deserializeMetadata(output),
|
|
571
|
-
[_CT]: [, output.headers[_ct]],
|
|
572
|
-
[_CC]: [, output.headers[_cc]],
|
|
573
|
-
[_ET]: [, output.headers[_e]],
|
|
574
|
-
[_PB]: [, output.headers[_xagpb]]
|
|
575
|
-
});
|
|
576
|
-
const data = await (0, import_smithy_client.collectBody)(output.body, context);
|
|
577
|
-
contents.Blob = data;
|
|
578
|
-
return contents;
|
|
579
|
-
}, "de_GetTileCommand");
|
|
580
|
-
var de_CommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
581
|
-
const parsedOutput = {
|
|
582
|
-
...output,
|
|
583
|
-
body: await (0, import_core2.parseJsonErrorBody)(output.body, context)
|
|
584
|
-
};
|
|
585
|
-
const errorCode = (0, import_core2.loadRestJsonErrorCode)(output, parsedOutput.body);
|
|
586
|
-
switch (errorCode) {
|
|
587
|
-
case "AccessDeniedException":
|
|
588
|
-
case "com.amazonaws.geomaps#AccessDeniedException":
|
|
589
|
-
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
590
|
-
case "InternalServerException":
|
|
591
|
-
case "com.amazonaws.geomaps#InternalServerException":
|
|
592
|
-
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
593
|
-
case "ThrottlingException":
|
|
594
|
-
case "com.amazonaws.geomaps#ThrottlingException":
|
|
595
|
-
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
596
|
-
case "ValidationException":
|
|
597
|
-
case "com.amazonaws.geomaps#ValidationException":
|
|
598
|
-
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
599
|
-
case "ResourceNotFoundException":
|
|
600
|
-
case "com.amazonaws.geomaps#ResourceNotFoundException":
|
|
601
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
602
|
-
default:
|
|
603
|
-
const parsedBody = parsedOutput.body;
|
|
604
|
-
return throwDefaultError({
|
|
605
|
-
output,
|
|
606
|
-
parsedBody,
|
|
607
|
-
errorCode
|
|
608
|
-
});
|
|
609
|
-
}
|
|
610
|
-
}, "de_CommandError");
|
|
611
|
-
var throwDefaultError = (0, import_smithy_client.withBaseException)(GeoMapsServiceException);
|
|
612
|
-
var de_AccessDeniedExceptionRes = /* @__PURE__ */ __name(async (parsedOutput, context) => {
|
|
613
|
-
const contents = (0, import_smithy_client.map)({});
|
|
614
|
-
const data = parsedOutput.body;
|
|
615
|
-
const doc = (0, import_smithy_client.take)(data, {
|
|
616
|
-
Message: [, import_smithy_client.expectString, `message`]
|
|
617
|
-
});
|
|
618
|
-
Object.assign(contents, doc);
|
|
619
|
-
const exception = new AccessDeniedException({
|
|
620
|
-
$metadata: deserializeMetadata(parsedOutput),
|
|
621
|
-
...contents
|
|
622
|
-
});
|
|
623
|
-
return (0, import_smithy_client.decorateServiceException)(exception, parsedOutput.body);
|
|
624
|
-
}, "de_AccessDeniedExceptionRes");
|
|
625
|
-
var de_InternalServerExceptionRes = /* @__PURE__ */ __name(async (parsedOutput, context) => {
|
|
626
|
-
const contents = (0, import_smithy_client.map)({});
|
|
627
|
-
const data = parsedOutput.body;
|
|
628
|
-
const doc = (0, import_smithy_client.take)(data, {
|
|
629
|
-
Message: [, import_smithy_client.expectString, `message`]
|
|
630
|
-
});
|
|
631
|
-
Object.assign(contents, doc);
|
|
632
|
-
const exception = new InternalServerException({
|
|
633
|
-
$metadata: deserializeMetadata(parsedOutput),
|
|
634
|
-
...contents
|
|
635
|
-
});
|
|
636
|
-
return (0, import_smithy_client.decorateServiceException)(exception, parsedOutput.body);
|
|
637
|
-
}, "de_InternalServerExceptionRes");
|
|
638
|
-
var de_ResourceNotFoundExceptionRes = /* @__PURE__ */ __name(async (parsedOutput, context) => {
|
|
639
|
-
const contents = (0, import_smithy_client.map)({});
|
|
640
|
-
const data = parsedOutput.body;
|
|
641
|
-
const doc = (0, import_smithy_client.take)(data, {
|
|
642
|
-
Message: [, import_smithy_client.expectString, `message`]
|
|
643
|
-
});
|
|
644
|
-
Object.assign(contents, doc);
|
|
645
|
-
const exception = new ResourceNotFoundException({
|
|
646
|
-
$metadata: deserializeMetadata(parsedOutput),
|
|
647
|
-
...contents
|
|
648
|
-
});
|
|
649
|
-
return (0, import_smithy_client.decorateServiceException)(exception, parsedOutput.body);
|
|
650
|
-
}, "de_ResourceNotFoundExceptionRes");
|
|
651
|
-
var de_ThrottlingExceptionRes = /* @__PURE__ */ __name(async (parsedOutput, context) => {
|
|
652
|
-
const contents = (0, import_smithy_client.map)({});
|
|
653
|
-
const data = parsedOutput.body;
|
|
654
|
-
const doc = (0, import_smithy_client.take)(data, {
|
|
655
|
-
Message: [, import_smithy_client.expectString, `message`]
|
|
656
|
-
});
|
|
657
|
-
Object.assign(contents, doc);
|
|
658
|
-
const exception = new ThrottlingException({
|
|
659
|
-
$metadata: deserializeMetadata(parsedOutput),
|
|
660
|
-
...contents
|
|
661
|
-
});
|
|
662
|
-
return (0, import_smithy_client.decorateServiceException)(exception, parsedOutput.body);
|
|
663
|
-
}, "de_ThrottlingExceptionRes");
|
|
664
|
-
var de_ValidationExceptionRes = /* @__PURE__ */ __name(async (parsedOutput, context) => {
|
|
665
|
-
const contents = (0, import_smithy_client.map)({});
|
|
666
|
-
const data = parsedOutput.body;
|
|
667
|
-
const doc = (0, import_smithy_client.take)(data, {
|
|
668
|
-
FieldList: [, (_) => de_ValidationExceptionFieldList(_, context), `fieldList`],
|
|
669
|
-
Message: [, import_smithy_client.expectString, `message`],
|
|
670
|
-
Reason: [, import_smithy_client.expectString, `reason`]
|
|
671
|
-
});
|
|
672
|
-
Object.assign(contents, doc);
|
|
673
|
-
const exception = new ValidationException({
|
|
674
|
-
$metadata: deserializeMetadata(parsedOutput),
|
|
675
|
-
...contents
|
|
676
|
-
});
|
|
677
|
-
return (0, import_smithy_client.decorateServiceException)(exception, parsedOutput.body);
|
|
678
|
-
}, "de_ValidationExceptionRes");
|
|
679
|
-
var de_ValidationExceptionField = /* @__PURE__ */ __name((output, context) => {
|
|
680
|
-
return (0, import_smithy_client.take)(output, {
|
|
681
|
-
Message: [, import_smithy_client.expectString, `message`],
|
|
682
|
-
Name: [, import_smithy_client.expectString, `name`]
|
|
683
|
-
});
|
|
684
|
-
}, "de_ValidationExceptionField");
|
|
685
|
-
var de_ValidationExceptionFieldList = /* @__PURE__ */ __name((output, context) => {
|
|
686
|
-
const retVal = (output || []).filter((e) => e != null).map((entry) => {
|
|
687
|
-
return de_ValidationExceptionField(entry, context);
|
|
688
|
-
});
|
|
689
|
-
return retVal;
|
|
690
|
-
}, "de_ValidationExceptionFieldList");
|
|
691
|
-
var deserializeMetadata = /* @__PURE__ */ __name((output) => ({
|
|
692
|
-
httpStatusCode: output.statusCode,
|
|
693
|
-
requestId: output.headers["x-amzn-requestid"] ?? output.headers["x-amzn-request-id"] ?? output.headers["x-amz-request-id"],
|
|
694
|
-
extendedRequestId: output.headers["x-amz-id-2"],
|
|
695
|
-
cfId: output.headers["x-amz-cf-id"]
|
|
696
|
-
}), "deserializeMetadata");
|
|
697
|
-
var _BB = "BoundingBox";
|
|
698
|
-
var _BP = "BoundedPositions";
|
|
699
|
-
var _C = "Center";
|
|
700
|
-
var _CC = "CacheControl";
|
|
701
|
-
var _CL = "CropLabels";
|
|
702
|
-
var _CO = "CompactOverlay";
|
|
703
|
-
var _CS = "ColorScheme";
|
|
704
|
-
var _CT = "ContentType";
|
|
705
|
-
var _ET = "ETag";
|
|
706
|
-
var _GJO = "GeoJsonOverlay";
|
|
707
|
-
var _H = "Height";
|
|
708
|
-
var _K = "Key";
|
|
709
|
-
var _L = "Language";
|
|
710
|
-
var _LS = "LabelSize";
|
|
711
|
-
var _P = "Padding";
|
|
712
|
-
var _PB = "PricingBucket";
|
|
713
|
-
var _POI = "PointsOfInterests";
|
|
714
|
-
var _PV = "PoliticalView";
|
|
715
|
-
var _R = "Radius";
|
|
716
|
-
var _S = "Style";
|
|
717
|
-
var _SBU = "ScaleBarUnit";
|
|
718
|
-
var _W = "Width";
|
|
719
|
-
var _Z = "Zoom";
|
|
720
|
-
var _bb = "bounding-box";
|
|
721
|
-
var _bp = "bounded-positions";
|
|
722
|
-
var _c = "center";
|
|
723
|
-
var _cc = "cache-control";
|
|
724
|
-
var _cl = "crop-labels";
|
|
725
|
-
var _co = "compact-overlay";
|
|
726
|
-
var _cs = "color-scheme";
|
|
727
|
-
var _ct = "content-type";
|
|
728
|
-
var _e = "etag";
|
|
729
|
-
var _go = "geojson-overlay";
|
|
730
|
-
var _h = "height";
|
|
731
|
-
var _k = "key";
|
|
732
|
-
var _l = "lang";
|
|
733
|
-
var _ls = "label-size";
|
|
734
|
-
var _p = "padding";
|
|
735
|
-
var _po = "pois";
|
|
736
|
-
var _pv = "political-view";
|
|
737
|
-
var _r = "radius";
|
|
738
|
-
var _s = "style";
|
|
739
|
-
var _su = "scale-unit";
|
|
740
|
-
var _w = "width";
|
|
741
|
-
var _xagpb = "x-amz-geo-pricing-bucket";
|
|
742
|
-
var _z = "zoom";
|
|
743
|
-
|
|
744
|
-
// src/commands/GetGlyphsCommand.ts
|
|
745
|
-
var GetGlyphsCommand = class extends import_smithy_client.Command.classBuilder().ep(commonParams).m(function(Command, cs, config, o) {
|
|
746
|
-
return [
|
|
747
|
-
(0, import_middleware_serde.getSerdePlugin)(config, this.serialize, this.deserialize),
|
|
748
|
-
(0, import_middleware_endpoint.getEndpointPlugin)(config, Command.getEndpointParameterInstructions())
|
|
749
|
-
];
|
|
750
|
-
}).s("MapsService", "GetGlyphs", {}).n("GeoMapsClient", "GetGlyphsCommand").f(void 0, void 0).ser(se_GetGlyphsCommand).de(de_GetGlyphsCommand).build() {
|
|
751
|
-
static {
|
|
752
|
-
__name(this, "GetGlyphsCommand");
|
|
753
|
-
}
|
|
368
|
+
const data = await smithyClient.collectBody(output.body, context);
|
|
369
|
+
contents.Blob = data;
|
|
370
|
+
return contents;
|
|
754
371
|
};
|
|
755
|
-
|
|
756
|
-
|
|
757
|
-
|
|
758
|
-
|
|
759
|
-
|
|
760
|
-
|
|
761
|
-
|
|
762
|
-
|
|
763
|
-
|
|
764
|
-
|
|
765
|
-
})
|
|
766
|
-
|
|
767
|
-
|
|
768
|
-
|
|
372
|
+
const de_GetStaticMapCommand = async (output, context) => {
|
|
373
|
+
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
374
|
+
return de_CommandError(output, context);
|
|
375
|
+
}
|
|
376
|
+
const contents = smithyClient.map({
|
|
377
|
+
$metadata: deserializeMetadata(output),
|
|
378
|
+
[_CT]: [, output.headers[_ct]],
|
|
379
|
+
[_CC]: [, output.headers[_cc]],
|
|
380
|
+
[_ET]: [, output.headers[_e]],
|
|
381
|
+
[_PB]: [, output.headers[_xagpb]],
|
|
382
|
+
});
|
|
383
|
+
const data = await smithyClient.collectBody(output.body, context);
|
|
384
|
+
contents.Blob = data;
|
|
385
|
+
return contents;
|
|
769
386
|
};
|
|
770
|
-
|
|
771
|
-
|
|
772
|
-
|
|
773
|
-
|
|
774
|
-
|
|
775
|
-
|
|
776
|
-
|
|
777
|
-
|
|
778
|
-
|
|
779
|
-
|
|
780
|
-
|
|
781
|
-
|
|
782
|
-
|
|
783
|
-
}
|
|
387
|
+
const de_GetStyleDescriptorCommand = async (output, context) => {
|
|
388
|
+
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
389
|
+
return de_CommandError(output, context);
|
|
390
|
+
}
|
|
391
|
+
const contents = smithyClient.map({
|
|
392
|
+
$metadata: deserializeMetadata(output),
|
|
393
|
+
[_CT]: [, output.headers[_ct]],
|
|
394
|
+
[_CC]: [, output.headers[_cc]],
|
|
395
|
+
[_ET]: [, output.headers[_e]],
|
|
396
|
+
});
|
|
397
|
+
const data = await smithyClient.collectBody(output.body, context);
|
|
398
|
+
contents.Blob = data;
|
|
399
|
+
return contents;
|
|
784
400
|
};
|
|
785
|
-
|
|
786
|
-
|
|
787
|
-
|
|
788
|
-
|
|
789
|
-
|
|
790
|
-
|
|
791
|
-
|
|
792
|
-
|
|
793
|
-
|
|
794
|
-
|
|
795
|
-
})
|
|
796
|
-
|
|
797
|
-
|
|
798
|
-
|
|
401
|
+
const de_GetTileCommand = async (output, context) => {
|
|
402
|
+
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
403
|
+
return de_CommandError(output, context);
|
|
404
|
+
}
|
|
405
|
+
const contents = smithyClient.map({
|
|
406
|
+
$metadata: deserializeMetadata(output),
|
|
407
|
+
[_CT]: [, output.headers[_ct]],
|
|
408
|
+
[_CC]: [, output.headers[_cc]],
|
|
409
|
+
[_ET]: [, output.headers[_e]],
|
|
410
|
+
[_PB]: [, output.headers[_xagpb]],
|
|
411
|
+
});
|
|
412
|
+
const data = await smithyClient.collectBody(output.body, context);
|
|
413
|
+
contents.Blob = data;
|
|
414
|
+
return contents;
|
|
799
415
|
};
|
|
800
|
-
|
|
801
|
-
|
|
802
|
-
|
|
803
|
-
|
|
804
|
-
|
|
805
|
-
|
|
806
|
-
|
|
807
|
-
|
|
808
|
-
|
|
809
|
-
|
|
810
|
-
|
|
811
|
-
|
|
812
|
-
|
|
813
|
-
|
|
416
|
+
const de_CommandError = async (output, context) => {
|
|
417
|
+
const parsedOutput = {
|
|
418
|
+
...output,
|
|
419
|
+
body: await core$1.parseJsonErrorBody(output.body, context),
|
|
420
|
+
};
|
|
421
|
+
const errorCode = core$1.loadRestJsonErrorCode(output, parsedOutput.body);
|
|
422
|
+
switch (errorCode) {
|
|
423
|
+
case "AccessDeniedException":
|
|
424
|
+
case "com.amazonaws.geomaps#AccessDeniedException":
|
|
425
|
+
throw await de_AccessDeniedExceptionRes(parsedOutput);
|
|
426
|
+
case "InternalServerException":
|
|
427
|
+
case "com.amazonaws.geomaps#InternalServerException":
|
|
428
|
+
throw await de_InternalServerExceptionRes(parsedOutput);
|
|
429
|
+
case "ThrottlingException":
|
|
430
|
+
case "com.amazonaws.geomaps#ThrottlingException":
|
|
431
|
+
throw await de_ThrottlingExceptionRes(parsedOutput);
|
|
432
|
+
case "ValidationException":
|
|
433
|
+
case "com.amazonaws.geomaps#ValidationException":
|
|
434
|
+
throw await de_ValidationExceptionRes(parsedOutput);
|
|
435
|
+
case "ResourceNotFoundException":
|
|
436
|
+
case "com.amazonaws.geomaps#ResourceNotFoundException":
|
|
437
|
+
throw await de_ResourceNotFoundExceptionRes(parsedOutput);
|
|
438
|
+
default:
|
|
439
|
+
const parsedBody = parsedOutput.body;
|
|
440
|
+
return throwDefaultError({
|
|
441
|
+
output,
|
|
442
|
+
parsedBody,
|
|
443
|
+
errorCode,
|
|
444
|
+
});
|
|
445
|
+
}
|
|
814
446
|
};
|
|
815
|
-
|
|
816
|
-
|
|
817
|
-
|
|
818
|
-
|
|
819
|
-
|
|
820
|
-
|
|
821
|
-
|
|
822
|
-
|
|
823
|
-
|
|
824
|
-
|
|
825
|
-
|
|
826
|
-
|
|
827
|
-
|
|
828
|
-
};
|
|
829
|
-
(
|
|
830
|
-
|
|
831
|
-
|
|
832
|
-
|
|
833
|
-
|
|
834
|
-
|
|
835
|
-
|
|
836
|
-
|
|
837
|
-
|
|
838
|
-
|
|
839
|
-
|
|
840
|
-
|
|
841
|
-
|
|
842
|
-
|
|
843
|
-
|
|
844
|
-
|
|
845
|
-
|
|
846
|
-
|
|
847
|
-
|
|
848
|
-
|
|
849
|
-
|
|
850
|
-
|
|
851
|
-
|
|
852
|
-
|
|
853
|
-
|
|
854
|
-
|
|
855
|
-
|
|
856
|
-
|
|
857
|
-
|
|
858
|
-
|
|
447
|
+
const throwDefaultError = smithyClient.withBaseException(GeoMapsServiceException);
|
|
448
|
+
const de_AccessDeniedExceptionRes = async (parsedOutput, context) => {
|
|
449
|
+
const contents = smithyClient.map({});
|
|
450
|
+
const data = parsedOutput.body;
|
|
451
|
+
const doc = smithyClient.take(data, {
|
|
452
|
+
Message: [, smithyClient.expectString, `message`],
|
|
453
|
+
});
|
|
454
|
+
Object.assign(contents, doc);
|
|
455
|
+
const exception = new AccessDeniedException({
|
|
456
|
+
$metadata: deserializeMetadata(parsedOutput),
|
|
457
|
+
...contents,
|
|
458
|
+
});
|
|
459
|
+
return smithyClient.decorateServiceException(exception, parsedOutput.body);
|
|
460
|
+
};
|
|
461
|
+
const de_InternalServerExceptionRes = async (parsedOutput, context) => {
|
|
462
|
+
const contents = smithyClient.map({});
|
|
463
|
+
const data = parsedOutput.body;
|
|
464
|
+
const doc = smithyClient.take(data, {
|
|
465
|
+
Message: [, smithyClient.expectString, `message`],
|
|
466
|
+
});
|
|
467
|
+
Object.assign(contents, doc);
|
|
468
|
+
const exception = new InternalServerException({
|
|
469
|
+
$metadata: deserializeMetadata(parsedOutput),
|
|
470
|
+
...contents,
|
|
471
|
+
});
|
|
472
|
+
return smithyClient.decorateServiceException(exception, parsedOutput.body);
|
|
473
|
+
};
|
|
474
|
+
const de_ResourceNotFoundExceptionRes = async (parsedOutput, context) => {
|
|
475
|
+
const contents = smithyClient.map({});
|
|
476
|
+
const data = parsedOutput.body;
|
|
477
|
+
const doc = smithyClient.take(data, {
|
|
478
|
+
Message: [, smithyClient.expectString, `message`],
|
|
479
|
+
});
|
|
480
|
+
Object.assign(contents, doc);
|
|
481
|
+
const exception = new ResourceNotFoundException({
|
|
482
|
+
$metadata: deserializeMetadata(parsedOutput),
|
|
483
|
+
...contents,
|
|
484
|
+
});
|
|
485
|
+
return smithyClient.decorateServiceException(exception, parsedOutput.body);
|
|
486
|
+
};
|
|
487
|
+
const de_ThrottlingExceptionRes = async (parsedOutput, context) => {
|
|
488
|
+
const contents = smithyClient.map({});
|
|
489
|
+
const data = parsedOutput.body;
|
|
490
|
+
const doc = smithyClient.take(data, {
|
|
491
|
+
Message: [, smithyClient.expectString, `message`],
|
|
492
|
+
});
|
|
493
|
+
Object.assign(contents, doc);
|
|
494
|
+
const exception = new ThrottlingException({
|
|
495
|
+
$metadata: deserializeMetadata(parsedOutput),
|
|
496
|
+
...contents,
|
|
497
|
+
});
|
|
498
|
+
return smithyClient.decorateServiceException(exception, parsedOutput.body);
|
|
499
|
+
};
|
|
500
|
+
const de_ValidationExceptionRes = async (parsedOutput, context) => {
|
|
501
|
+
const contents = smithyClient.map({});
|
|
502
|
+
const data = parsedOutput.body;
|
|
503
|
+
const doc = smithyClient.take(data, {
|
|
504
|
+
FieldList: [, (_) => de_ValidationExceptionFieldList(_), `fieldList`],
|
|
505
|
+
Message: [, smithyClient.expectString, `message`],
|
|
506
|
+
Reason: [, smithyClient.expectString, `reason`],
|
|
507
|
+
});
|
|
508
|
+
Object.assign(contents, doc);
|
|
509
|
+
const exception = new ValidationException({
|
|
510
|
+
$metadata: deserializeMetadata(parsedOutput),
|
|
511
|
+
...contents,
|
|
512
|
+
});
|
|
513
|
+
return smithyClient.decorateServiceException(exception, parsedOutput.body);
|
|
514
|
+
};
|
|
515
|
+
const de_ValidationExceptionField = (output, context) => {
|
|
516
|
+
return smithyClient.take(output, {
|
|
517
|
+
Message: [, smithyClient.expectString, `message`],
|
|
518
|
+
Name: [, smithyClient.expectString, `name`],
|
|
519
|
+
});
|
|
520
|
+
};
|
|
521
|
+
const de_ValidationExceptionFieldList = (output, context) => {
|
|
522
|
+
const retVal = (output || [])
|
|
523
|
+
.filter((e) => e != null)
|
|
524
|
+
.map((entry) => {
|
|
525
|
+
return de_ValidationExceptionField(entry);
|
|
526
|
+
});
|
|
527
|
+
return retVal;
|
|
528
|
+
};
|
|
529
|
+
const deserializeMetadata = (output) => ({
|
|
530
|
+
httpStatusCode: output.statusCode,
|
|
531
|
+
requestId: output.headers["x-amzn-requestid"] ?? output.headers["x-amzn-request-id"] ?? output.headers["x-amz-request-id"],
|
|
532
|
+
extendedRequestId: output.headers["x-amz-id-2"],
|
|
533
|
+
cfId: output.headers["x-amz-cf-id"],
|
|
859
534
|
});
|
|
535
|
+
const _BB = "BoundingBox";
|
|
536
|
+
const _BP = "BoundedPositions";
|
|
537
|
+
const _C = "Center";
|
|
538
|
+
const _CC = "CacheControl";
|
|
539
|
+
const _CL = "CropLabels";
|
|
540
|
+
const _CO = "CompactOverlay";
|
|
541
|
+
const _CS = "ColorScheme";
|
|
542
|
+
const _CT = "ContentType";
|
|
543
|
+
const _ET = "ETag";
|
|
544
|
+
const _GJO = "GeoJsonOverlay";
|
|
545
|
+
const _H = "Height";
|
|
546
|
+
const _K = "Key";
|
|
547
|
+
const _L = "Language";
|
|
548
|
+
const _LS = "LabelSize";
|
|
549
|
+
const _P = "Padding";
|
|
550
|
+
const _PB = "PricingBucket";
|
|
551
|
+
const _POI = "PointsOfInterests";
|
|
552
|
+
const _PV = "PoliticalView";
|
|
553
|
+
const _R = "Radius";
|
|
554
|
+
const _S = "Style";
|
|
555
|
+
const _SBU = "ScaleBarUnit";
|
|
556
|
+
const _W = "Width";
|
|
557
|
+
const _Z = "Zoom";
|
|
558
|
+
const _bb = "bounding-box";
|
|
559
|
+
const _bp = "bounded-positions";
|
|
560
|
+
const _c = "center";
|
|
561
|
+
const _cc = "cache-control";
|
|
562
|
+
const _cl = "crop-labels";
|
|
563
|
+
const _co = "compact-overlay";
|
|
564
|
+
const _cs = "color-scheme";
|
|
565
|
+
const _ct = "content-type";
|
|
566
|
+
const _e = "etag";
|
|
567
|
+
const _go = "geojson-overlay";
|
|
568
|
+
const _h = "height";
|
|
569
|
+
const _k = "key";
|
|
570
|
+
const _l = "lang";
|
|
571
|
+
const _ls = "label-size";
|
|
572
|
+
const _p = "padding";
|
|
573
|
+
const _po = "pois";
|
|
574
|
+
const _pv = "political-view";
|
|
575
|
+
const _r = "radius";
|
|
576
|
+
const _s = "style";
|
|
577
|
+
const _su = "scale-unit";
|
|
578
|
+
const _w = "width";
|
|
579
|
+
const _xagpb = "x-amz-geo-pricing-bucket";
|
|
580
|
+
const _z = "zoom";
|
|
581
|
+
|
|
582
|
+
class GetGlyphsCommand extends smithyClient.Command
|
|
583
|
+
.classBuilder()
|
|
584
|
+
.ep(commonParams)
|
|
585
|
+
.m(function (Command, cs, config, o) {
|
|
586
|
+
return [
|
|
587
|
+
middlewareSerde.getSerdePlugin(config, this.serialize, this.deserialize),
|
|
588
|
+
middlewareEndpoint.getEndpointPlugin(config, Command.getEndpointParameterInstructions()),
|
|
589
|
+
];
|
|
590
|
+
})
|
|
591
|
+
.s("MapsService", "GetGlyphs", {})
|
|
592
|
+
.n("GeoMapsClient", "GetGlyphsCommand")
|
|
593
|
+
.f(void 0, void 0)
|
|
594
|
+
.ser(se_GetGlyphsCommand)
|
|
595
|
+
.de(de_GetGlyphsCommand)
|
|
596
|
+
.build() {
|
|
597
|
+
}
|
|
598
|
+
|
|
599
|
+
class GetSpritesCommand extends smithyClient.Command
|
|
600
|
+
.classBuilder()
|
|
601
|
+
.ep(commonParams)
|
|
602
|
+
.m(function (Command, cs, config, o) {
|
|
603
|
+
return [
|
|
604
|
+
middlewareSerde.getSerdePlugin(config, this.serialize, this.deserialize),
|
|
605
|
+
middlewareEndpoint.getEndpointPlugin(config, Command.getEndpointParameterInstructions()),
|
|
606
|
+
];
|
|
607
|
+
})
|
|
608
|
+
.s("MapsService", "GetSprites", {})
|
|
609
|
+
.n("GeoMapsClient", "GetSpritesCommand")
|
|
610
|
+
.f(void 0, void 0)
|
|
611
|
+
.ser(se_GetSpritesCommand)
|
|
612
|
+
.de(de_GetSpritesCommand)
|
|
613
|
+
.build() {
|
|
614
|
+
}
|
|
615
|
+
|
|
616
|
+
class GetStaticMapCommand extends smithyClient.Command
|
|
617
|
+
.classBuilder()
|
|
618
|
+
.ep(commonParams)
|
|
619
|
+
.m(function (Command, cs, config, o) {
|
|
620
|
+
return [
|
|
621
|
+
middlewareSerde.getSerdePlugin(config, this.serialize, this.deserialize),
|
|
622
|
+
middlewareEndpoint.getEndpointPlugin(config, Command.getEndpointParameterInstructions()),
|
|
623
|
+
];
|
|
624
|
+
})
|
|
625
|
+
.s("MapsService", "GetStaticMap", {})
|
|
626
|
+
.n("GeoMapsClient", "GetStaticMapCommand")
|
|
627
|
+
.f(GetStaticMapRequestFilterSensitiveLog, void 0)
|
|
628
|
+
.ser(se_GetStaticMapCommand)
|
|
629
|
+
.de(de_GetStaticMapCommand)
|
|
630
|
+
.build() {
|
|
631
|
+
}
|
|
632
|
+
|
|
633
|
+
class GetStyleDescriptorCommand extends smithyClient.Command
|
|
634
|
+
.classBuilder()
|
|
635
|
+
.ep(commonParams)
|
|
636
|
+
.m(function (Command, cs, config, o) {
|
|
637
|
+
return [
|
|
638
|
+
middlewareSerde.getSerdePlugin(config, this.serialize, this.deserialize),
|
|
639
|
+
middlewareEndpoint.getEndpointPlugin(config, Command.getEndpointParameterInstructions()),
|
|
640
|
+
];
|
|
641
|
+
})
|
|
642
|
+
.s("MapsService", "GetStyleDescriptor", {})
|
|
643
|
+
.n("GeoMapsClient", "GetStyleDescriptorCommand")
|
|
644
|
+
.f(GetStyleDescriptorRequestFilterSensitiveLog, void 0)
|
|
645
|
+
.ser(se_GetStyleDescriptorCommand)
|
|
646
|
+
.de(de_GetStyleDescriptorCommand)
|
|
647
|
+
.build() {
|
|
648
|
+
}
|
|
649
|
+
|
|
650
|
+
class GetTileCommand extends smithyClient.Command
|
|
651
|
+
.classBuilder()
|
|
652
|
+
.ep(commonParams)
|
|
653
|
+
.m(function (Command, cs, config, o) {
|
|
654
|
+
return [
|
|
655
|
+
middlewareSerde.getSerdePlugin(config, this.serialize, this.deserialize),
|
|
656
|
+
middlewareEndpoint.getEndpointPlugin(config, Command.getEndpointParameterInstructions()),
|
|
657
|
+
];
|
|
658
|
+
})
|
|
659
|
+
.s("MapsService", "GetTile", {})
|
|
660
|
+
.n("GeoMapsClient", "GetTileCommand")
|
|
661
|
+
.f(GetTileRequestFilterSensitiveLog, void 0)
|
|
662
|
+
.ser(se_GetTileCommand)
|
|
663
|
+
.de(de_GetTileCommand)
|
|
664
|
+
.build() {
|
|
665
|
+
}
|
|
666
|
+
|
|
667
|
+
const commands = {
|
|
668
|
+
GetGlyphsCommand,
|
|
669
|
+
GetSpritesCommand,
|
|
670
|
+
GetStaticMapCommand,
|
|
671
|
+
GetStyleDescriptorCommand,
|
|
672
|
+
GetTileCommand,
|
|
673
|
+
};
|
|
674
|
+
class GeoMaps extends GeoMapsClient {
|
|
675
|
+
}
|
|
676
|
+
smithyClient.createAggregatedClient(commands, GeoMaps);
|
|
860
677
|
|
|
678
|
+
Object.defineProperty(exports, "$Command", {
|
|
679
|
+
enumerable: true,
|
|
680
|
+
get: function () { return smithyClient.Command; }
|
|
681
|
+
});
|
|
682
|
+
Object.defineProperty(exports, "__Client", {
|
|
683
|
+
enumerable: true,
|
|
684
|
+
get: function () { return smithyClient.Client; }
|
|
685
|
+
});
|
|
686
|
+
exports.AccessDeniedException = AccessDeniedException;
|
|
687
|
+
exports.ColorScheme = ColorScheme;
|
|
688
|
+
exports.GeoMaps = GeoMaps;
|
|
689
|
+
exports.GeoMapsClient = GeoMapsClient;
|
|
690
|
+
exports.GeoMapsServiceException = GeoMapsServiceException;
|
|
691
|
+
exports.GetGlyphsCommand = GetGlyphsCommand;
|
|
692
|
+
exports.GetSpritesCommand = GetSpritesCommand;
|
|
693
|
+
exports.GetStaticMapCommand = GetStaticMapCommand;
|
|
694
|
+
exports.GetStaticMapRequestFilterSensitiveLog = GetStaticMapRequestFilterSensitiveLog;
|
|
695
|
+
exports.GetStyleDescriptorCommand = GetStyleDescriptorCommand;
|
|
696
|
+
exports.GetStyleDescriptorRequestFilterSensitiveLog = GetStyleDescriptorRequestFilterSensitiveLog;
|
|
697
|
+
exports.GetTileCommand = GetTileCommand;
|
|
698
|
+
exports.GetTileRequestFilterSensitiveLog = GetTileRequestFilterSensitiveLog;
|
|
699
|
+
exports.InternalServerException = InternalServerException;
|
|
700
|
+
exports.LabelSize = LabelSize;
|
|
701
|
+
exports.MapFeatureMode = MapFeatureMode;
|
|
702
|
+
exports.MapStyle = MapStyle;
|
|
703
|
+
exports.ResourceNotFoundException = ResourceNotFoundException;
|
|
704
|
+
exports.ScaleBarUnit = ScaleBarUnit;
|
|
705
|
+
exports.StaticMapStyle = StaticMapStyle;
|
|
706
|
+
exports.ThrottlingException = ThrottlingException;
|
|
707
|
+
exports.ValidationException = ValidationException;
|
|
708
|
+
exports.ValidationExceptionReason = ValidationExceptionReason;
|
|
709
|
+
exports.Variant = Variant;
|