@aws-sdk/client-geo-maps 3.1075.0 → 3.1077.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 CHANGED
@@ -1,21 +1,58 @@
1
- var __exportStar = (m, e) => { Object.assign(e, m); };
2
- const { getAwsRegionExtensionConfiguration, resolveAwsRegionExtensionConfiguration, resolveUserAgentConfig, resolveHostHeaderConfig, getUserAgentPlugin, getHostHeaderPlugin, getLoggerPlugin, getRecursionDetectionPlugin } = require("@aws-sdk/core/client");
1
+ const { awsEndpointFunctions, emitWarningIfUnsupportedVersion: emitWarningIfUnsupportedVersion$1, createDefaultUserAgentProvider, NODE_APP_ID_CONFIG_OPTIONS, getAwsRegionExtensionConfiguration, resolveAwsRegionExtensionConfiguration, resolveUserAgentConfig, resolveHostHeaderConfig, getUserAgentPlugin, getHostHeaderPlugin, getLoggerPlugin, getRecursionDetectionPlugin } = require("@aws-sdk/core/client");
3
2
  const { getHttpAuthSchemeEndpointRuleSetPlugin, DefaultIdentityProviderConfig, getHttpSigningPlugin } = require("@smithy/core");
4
- const { getDefaultExtensionConfiguration, resolveDefaultRuntimeConfig, Client, Command, createAggregatedClient } = require("@smithy/core/client");
3
+ const { normalizeProvider, getSmithyContext, ServiceException, NoOpLogger, emitWarningIfUnsupportedVersion, loadConfigsForDefaultMode, getDefaultExtensionConfiguration, resolveDefaultRuntimeConfig, Client, Command, createAggregatedClient } = require("@smithy/core/client");
5
4
  exports.$Command = Command;
6
5
  exports.__Client = Client;
7
- const { resolveRegionConfig } = require("@smithy/core/config");
8
- const { resolveEndpointConfig, getEndpointPlugin } = require("@smithy/core/endpoints");
9
- const { getHttpHandlerExtensionConfiguration, resolveHttpHandlerRuntimeConfig, getContentLengthPlugin } = require("@smithy/core/protocols");
10
- const { resolveRetryConfig, getRetryPlugin } = require("@smithy/core/retry");
11
- const { getSchemaSerdePlugin } = require("@smithy/core/schema");
12
- const { resolveHttpAuthSchemeConfig, defaultGeoMapsHttpAuthSchemeParametersProvider } = require("./auth/httpAuthSchemeProvider");
13
- const { getRuntimeConfig } = require("./runtimeConfig");
14
- const { GetGlyphs$, GetSprites$, GetStaticMap$, GetStyleDescriptor$, GetTile$ } = require("./schemas/schemas_0");
15
- __exportStar(require("./schemas/schemas_0"), exports);
16
- __exportStar(require("./models/errors"), exports);
17
- const { GeoMapsServiceException } = require("./models/GeoMapsServiceException");
18
- exports.GeoMapsServiceException = GeoMapsServiceException;
6
+ const { resolveDefaultsModeConfig, loadConfig, NODE_USE_FIPS_ENDPOINT_CONFIG_OPTIONS, NODE_USE_DUALSTACK_ENDPOINT_CONFIG_OPTIONS, NODE_REGION_CONFIG_OPTIONS, NODE_REGION_CONFIG_FILE_OPTIONS, resolveRegionConfig } = require("@smithy/core/config");
7
+ const { BinaryDecisionDiagram, EndpointCache, decideEndpoint, customEndpointFunctions, resolveEndpointConfig, getEndpointPlugin } = require("@smithy/core/endpoints");
8
+ const { parseUrl, getHttpHandlerExtensionConfiguration, resolveHttpHandlerRuntimeConfig, getContentLengthPlugin } = require("@smithy/core/protocols");
9
+ const { DEFAULT_RETRY_MODE, NODE_RETRY_MODE_CONFIG_OPTIONS, NODE_MAX_ATTEMPT_CONFIG_OPTIONS, resolveRetryConfig, getRetryPlugin } = require("@smithy/core/retry");
10
+ const { TypeRegistry, getSchemaSerdePlugin } = require("@smithy/core/schema");
11
+ const { resolveAwsSdkSigV4Config, AwsSdkSigV4Signer, NODE_AUTH_SCHEME_PREFERENCE_OPTIONS } = require("@aws-sdk/core/httpAuthSchemes");
12
+ const { defaultProvider } = require("@aws-sdk/credential-provider-node");
13
+ const { toUtf8, fromUtf8, toBase64, fromBase64, calculateBodyLength } = require("@smithy/core/serde");
14
+ const { streamCollector, NodeHttpHandler } = require("@smithy/node-http-handler");
15
+ const { AwsRestJsonProtocol } = require("@aws-sdk/core/protocols");
16
+ const { Sha256 } = require("@smithy/core/checksum");
17
+
18
+ const defaultGeoMapsHttpAuthSchemeParametersProvider = async (config, context, input) => {
19
+ return {
20
+ operation: getSmithyContext(context).operation,
21
+ region: await normalizeProvider(config.region)() || (() => {
22
+ throw new Error("expected `region` to be configured for `aws.auth#sigv4`");
23
+ })(),
24
+ };
25
+ };
26
+ function createAwsAuthSigv4HttpAuthOption(authParameters) {
27
+ return {
28
+ schemeId: "aws.auth#sigv4",
29
+ signingProperties: {
30
+ name: "geo-maps",
31
+ region: authParameters.region,
32
+ },
33
+ propertiesExtractor: (config, context) => ({
34
+ signingProperties: {
35
+ config,
36
+ context,
37
+ },
38
+ }),
39
+ };
40
+ }
41
+ const defaultGeoMapsHttpAuthSchemeProvider = (authParameters) => {
42
+ const options = [];
43
+ switch (authParameters.operation) {
44
+ default: {
45
+ options.push(createAwsAuthSigv4HttpAuthOption(authParameters));
46
+ }
47
+ }
48
+ return options;
49
+ };
50
+ const resolveHttpAuthSchemeConfig = (config) => {
51
+ const config_0 = resolveAwsSdkSigV4Config(config);
52
+ return Object.assign(config_0, {
53
+ authSchemePreference: normalizeProvider(config.authSchemePreference ?? []),
54
+ });
55
+ };
19
56
 
20
57
  const resolveClientEndpointParameters = (options) => {
21
58
  return Object.assign(options, {
@@ -31,6 +68,466 @@ const commonParams = {
31
68
  UseDualStack: { type: "builtInParams", name: "useDualstackEndpoint" },
32
69
  };
33
70
 
71
+ var version = "3.1076.0";
72
+ var packageInfo = {
73
+ version: version};
74
+
75
+ const m = "ref";
76
+ const a = -1, b = true, c = "isSet", d = "PartitionResult", e = "stringEquals", f = "booleanEquals", g = "getAttr", h = { [m]: "Endpoint" }, i = { "fn": g, "argv": [{ [m]: d }, "name"] }, j = { [m]: d }, k = {}, l = [{ [m]: "Region" }];
77
+ const _data = {
78
+ conditions: [
79
+ [c, [h]],
80
+ [c, l],
81
+ ["aws.partition", l, d],
82
+ [e, [i, "aws-us-gov"]],
83
+ [e, [i, "aws"]],
84
+ [f, [{ [m]: "UseFIPS" }, b]],
85
+ [f, [{ fn: g, argv: [j, "supportsFIPS"] }, b]],
86
+ [f, [{ [m]: "UseDualStack" }, b]],
87
+ [f, [{ fn: g, argv: [j, "supportsDualStack"] }, b]]
88
+ ],
89
+ results: [
90
+ [a],
91
+ [a, "Invalid Configuration: FIPS and custom endpoint are not supported"],
92
+ [a, "Invalid Configuration: Dualstack and custom endpoint are not supported"],
93
+ [h, k],
94
+ ["https://maps.geo.{Region}.{PartitionResult#dnsSuffix}/v2", k],
95
+ ["https://maps.geo-fips.{Region}.{PartitionResult#dualStackDnsSuffix}/v2", k],
96
+ ["https://maps.geo-fips.{Region}.{PartitionResult#dnsSuffix}/v2", k],
97
+ ["https://maps.geo.{Region}.{PartitionResult#dualStackDnsSuffix}/v2", k],
98
+ ["https://geo-maps-fips.{Region}.{PartitionResult#dualStackDnsSuffix}", k],
99
+ [a, "FIPS and DualStack are enabled, but this partition does not support one or both"],
100
+ ["https://geo-maps-fips.{Region}.{PartitionResult#dnsSuffix}", k],
101
+ [a, "FIPS is enabled but this partition does not support FIPS"],
102
+ ["https://geo-maps.{Region}.{PartitionResult#dualStackDnsSuffix}", k],
103
+ [a, "DualStack is enabled but this partition does not support DualStack"],
104
+ ["https://geo-maps.{Region}.{PartitionResult#dnsSuffix}", k],
105
+ [a, "Invalid Configuration: Missing Region"]
106
+ ]
107
+ };
108
+ const root = 2;
109
+ const r = 100_000_000;
110
+ const nodes = new Int32Array([
111
+ -1, 1, -1,
112
+ 0, 17, 3,
113
+ 1, 4, r + 15,
114
+ 2, 5, r + 15,
115
+ 3, 14, 6,
116
+ 4, 14, 7,
117
+ 5, 10, 8,
118
+ 7, 9, r + 14,
119
+ 8, r + 12, r + 13,
120
+ 6, 12, 11,
121
+ 7, r + 9, r + 11,
122
+ 7, 13, r + 10,
123
+ 8, r + 8, r + 9,
124
+ 5, 16, 15,
125
+ 7, r + 7, r + 4,
126
+ 7, r + 5, r + 6,
127
+ 5, r + 1, 18,
128
+ 7, r + 2, r + 3,
129
+ ]);
130
+ const bdd = BinaryDecisionDiagram.from(nodes, root, _data.conditions, _data.results);
131
+
132
+ const cache = new EndpointCache({
133
+ size: 50,
134
+ params: ["Endpoint", "Region", "UseDualStack", "UseFIPS"],
135
+ });
136
+ const defaultEndpointResolver = (endpointParams, context = {}) => {
137
+ return cache.get(endpointParams, () => decideEndpoint(bdd, {
138
+ endpointParams: endpointParams,
139
+ logger: context.logger,
140
+ }));
141
+ };
142
+ customEndpointFunctions.aws = awsEndpointFunctions;
143
+
144
+ class GeoMapsServiceException extends ServiceException {
145
+ constructor(options) {
146
+ super(options);
147
+ Object.setPrototypeOf(this, GeoMapsServiceException.prototype);
148
+ }
149
+ }
150
+
151
+ class AccessDeniedException extends GeoMapsServiceException {
152
+ name = "AccessDeniedException";
153
+ $fault = "client";
154
+ Message;
155
+ constructor(opts) {
156
+ super({
157
+ name: "AccessDeniedException",
158
+ $fault: "client",
159
+ ...opts,
160
+ });
161
+ Object.setPrototypeOf(this, AccessDeniedException.prototype);
162
+ this.Message = opts.Message;
163
+ }
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
+ class ValidationException extends GeoMapsServiceException {
196
+ name = "ValidationException";
197
+ $fault = "client";
198
+ Message;
199
+ Reason;
200
+ FieldList;
201
+ constructor(opts) {
202
+ super({
203
+ name: "ValidationException",
204
+ $fault: "client",
205
+ ...opts,
206
+ });
207
+ Object.setPrototypeOf(this, ValidationException.prototype);
208
+ this.Message = opts.Message;
209
+ this.Reason = opts.Reason;
210
+ this.FieldList = opts.FieldList;
211
+ }
212
+ }
213
+ class ResourceNotFoundException extends GeoMapsServiceException {
214
+ name = "ResourceNotFoundException";
215
+ $fault = "client";
216
+ Message;
217
+ constructor(opts) {
218
+ super({
219
+ name: "ResourceNotFoundException",
220
+ $fault: "client",
221
+ ...opts,
222
+ });
223
+ Object.setPrototypeOf(this, ResourceNotFoundException.prototype);
224
+ this.Message = opts.Message;
225
+ }
226
+ }
227
+
228
+ const _ADE = "AccessDeniedException";
229
+ const _AF = "AdditionalFeatures";
230
+ const _AK = "ApiKey";
231
+ const _B = "Blob";
232
+ const _BB = "BoundingBox";
233
+ const _BP = "BoundedPositions";
234
+ const _Bu = "Buildings";
235
+ const _C = "Center";
236
+ const _CC = "CountryCode";
237
+ const _CC_ = "Cache-Control";
238
+ const _CCa = "CacheControl";
239
+ const _CD = "ContourDensity";
240
+ const _CL = "CropLabels";
241
+ const _CO = "CompactOverlay";
242
+ const _CS = "ColorScheme";
243
+ const _CT = "ContentType";
244
+ const _CT_ = "Content-Type";
245
+ const _DM = "DistanceMeters";
246
+ const _ET = "ETag";
247
+ const _FL = "FieldList";
248
+ const _FN = "FileName";
249
+ const _FS = "FontStack";
250
+ const _FUR = "FontUnicodeRange";
251
+ const _GG = "GetGlyphs";
252
+ const _GGR = "GetGlyphsRequest";
253
+ const _GGRe = "GetGlyphsResponse";
254
+ const _GJO = "GeoJsonOverlay";
255
+ const _GS = "GetSprites";
256
+ const _GSD = "GetStyleDescriptor";
257
+ const _GSDR = "GetStyleDescriptorRequest";
258
+ const _GSDRe = "GetStyleDescriptorResponse";
259
+ const _GSM = "GetStaticMap";
260
+ const _GSMR = "GetStaticMapRequest";
261
+ const _GSMRe = "GetStaticMapResponse";
262
+ const _GSR = "GetSpritesRequest";
263
+ const _GSRe = "GetSpritesResponse";
264
+ const _GT = "GetTile";
265
+ const _GTR = "GetTileRequest";
266
+ const _GTRe = "GetTileResponse";
267
+ const _H = "Height";
268
+ const _ISE = "InternalServerException";
269
+ const _K = "Key";
270
+ const _L = "Language";
271
+ const _LS = "LabelSize";
272
+ const _M = "Message";
273
+ const _N = "Name";
274
+ const _P = "Padding";
275
+ const _PB = "PricingBucket";
276
+ const _PLS = "PositionListString";
277
+ const _POI = "PointsOfInterests";
278
+ const _PS = "PositionString";
279
+ const _PV = "PoliticalView";
280
+ const _R = "Reason";
281
+ const _RNFE = "ResourceNotFoundException";
282
+ const _Ra = "Radius";
283
+ const _S = "Style";
284
+ const _SBU = "ScaleBarUnit";
285
+ const _SF = "SensitiveFloat";
286
+ const _SI = "SensitiveInteger";
287
+ const _SS = "SensitiveString";
288
+ const _T = "Terrain";
289
+ const _TE = "ThrottlingException";
290
+ const _TM = "TravelModes";
291
+ const _Ti = "Tileset";
292
+ const _Tr = "Traffic";
293
+ const _V = "Variant";
294
+ const _VE = "ValidationException";
295
+ const _VEF = "ValidationExceptionField";
296
+ const _VEFL = "ValidationExceptionFieldList";
297
+ const _W = "Width";
298
+ const _X = "X";
299
+ const _Y = "Y";
300
+ const _Z = "Zoom";
301
+ const _Z_ = "Z";
302
+ const _af = "additional-features";
303
+ const _b = "buildings";
304
+ const _bb = "bounding-box";
305
+ const _bp = "bounded-positions";
306
+ const _c = "client";
307
+ const _cd = "contour-density";
308
+ const _ce = "center";
309
+ const _cl = "crop-labels";
310
+ const _co = "compact-overlay";
311
+ const _cs = "color-scheme";
312
+ const _e = "error";
313
+ const _fL = "fieldList";
314
+ const _go = "geojson-overlay";
315
+ const _h = "height";
316
+ const _hE = "httpError";
317
+ const _hH = "httpHeader";
318
+ const _hQ = "httpQuery";
319
+ const _ht = "http";
320
+ const _jN = "jsonName";
321
+ const _k = "key";
322
+ const _l = "lang";
323
+ const _ls = "label-size";
324
+ const _m = "message";
325
+ const _n = "name";
326
+ const _p = "padding";
327
+ const _po = "pois";
328
+ const _pv = "political-view";
329
+ const _r = "reason";
330
+ const _ra = "radius";
331
+ const _s = "smithy.ts.sdk.synthetic.com.amazonaws.geomaps";
332
+ const _se = "server";
333
+ const _st = "style";
334
+ const _su = "scale-unit";
335
+ const _t = "terrain";
336
+ const _tm = "travel-modes";
337
+ const _tr = "traffic";
338
+ const _w = "width";
339
+ const _xagpb = "x-amz-geo-pricing-bucket";
340
+ const _z = "zoom";
341
+ const n0 = "com.amazonaws.geomaps";
342
+ const _s_registry = TypeRegistry.for(_s);
343
+ var GeoMapsServiceException$ = [-3, _s, "GeoMapsServiceException", 0, [], []];
344
+ _s_registry.registerError(GeoMapsServiceException$, GeoMapsServiceException);
345
+ const n0_registry = TypeRegistry.for(n0);
346
+ var AccessDeniedException$ = [-3, n0, _ADE,
347
+ { [_e]: _c, [_hE]: 403 },
348
+ [_M],
349
+ [[0, { [_jN]: _m }]], 1
350
+ ];
351
+ n0_registry.registerError(AccessDeniedException$, AccessDeniedException);
352
+ var InternalServerException$ = [-3, n0, _ISE,
353
+ { [_e]: _se, [_hE]: 500 },
354
+ [_M],
355
+ [[0, { [_jN]: _m }]], 1
356
+ ];
357
+ n0_registry.registerError(InternalServerException$, InternalServerException);
358
+ var ResourceNotFoundException$ = [-3, n0, _RNFE,
359
+ { [_e]: _c, [_hE]: 404 },
360
+ [_M],
361
+ [[0, { [_jN]: _m }]], 1
362
+ ];
363
+ n0_registry.registerError(ResourceNotFoundException$, ResourceNotFoundException);
364
+ var ThrottlingException$ = [-3, n0, _TE,
365
+ { [_e]: _c, [_hE]: 429 },
366
+ [_M],
367
+ [[0, { [_jN]: _m }]], 1
368
+ ];
369
+ n0_registry.registerError(ThrottlingException$, ThrottlingException);
370
+ var ValidationException$ = [-3, n0, _VE,
371
+ { [_e]: _c, [_hE]: 400 },
372
+ [_M, _R, _FL],
373
+ [[0, { [_jN]: _m }], [0, { [_jN]: _r }], [() => ValidationExceptionFieldList, { [_jN]: _fL }]], 3
374
+ ];
375
+ n0_registry.registerError(ValidationException$, ValidationException);
376
+ const errorTypeRegistries = [
377
+ _s_registry,
378
+ n0_registry,
379
+ ];
380
+ var ApiKey = [0, n0, _AK, 8, 0];
381
+ var CompactOverlay = [0, n0, _CO, 8, 0];
382
+ var CountryCode = [0, n0, _CC, 8, 0];
383
+ var DistanceMeters = [0, n0, _DM, 8, 1];
384
+ var GeoJsonOverlay = [0, n0, _GJO, 8, 0];
385
+ var PositionListString = [0, n0, _PLS, 8, 0];
386
+ var PositionString = [0, n0, _PS, 8, 0];
387
+ var SensitiveFloat = [0, n0, _SF, 8, 1];
388
+ var SensitiveInteger = [0, n0, _SI, 8, 1];
389
+ var SensitiveString = [0, n0, _SS, 8, 0];
390
+ var GetGlyphsRequest$ = [3, n0, _GGR,
391
+ 0,
392
+ [_FS, _FUR],
393
+ [[0, 1], [0, 1]], 2
394
+ ];
395
+ var GetGlyphsResponse$ = [3, n0, _GGRe,
396
+ 0,
397
+ [_B, _CT, _CCa, _ET],
398
+ [[21, 16], [0, { [_hH]: _CT_ }], [0, { [_hH]: _CC_ }], [0, { [_hH]: _ET }]]
399
+ ];
400
+ var GetSpritesRequest$ = [3, n0, _GSR,
401
+ 0,
402
+ [_FN, _S, _CS, _V],
403
+ [[0, 1], [0, 1], [0, 1], [0, 1]], 4
404
+ ];
405
+ var GetSpritesResponse$ = [3, n0, _GSRe,
406
+ 0,
407
+ [_B, _CT, _CCa, _ET],
408
+ [[21, 16], [0, { [_hH]: _CT_ }], [0, { [_hH]: _CC_ }], [0, { [_hH]: _ET }]]
409
+ ];
410
+ var GetStaticMapRequest$ = [3, n0, _GSMR,
411
+ 0,
412
+ [_H, _FN, _W, _BB, _BP, _C, _CS, _CO, _CL, _GJO, _K, _LS, _L, _P, _PV, _POI, _Ra, _SBU, _S, _Z],
413
+ [[() => SensitiveInteger, { [_hQ]: _h }], [0, 1], [() => SensitiveInteger, { [_hQ]: _w }], [() => PositionListString, { [_hQ]: _bb }], [() => PositionListString, { [_hQ]: _bp }], [() => PositionString, { [_hQ]: _ce }], [0, { [_hQ]: _cs }], [() => CompactOverlay, { [_hQ]: _co }], [2, { [_hQ]: _cl }], [() => GeoJsonOverlay, { [_hQ]: _go }], [() => ApiKey, { [_hQ]: _k }], [0, { [_hQ]: _ls }], [0, { [_hQ]: _l }], [() => SensitiveInteger, { [_hQ]: _p }], [() => CountryCode, { [_hQ]: _pv }], [0, { [_hQ]: _po }], [() => DistanceMeters, { [_hQ]: _ra }], [0, { [_hQ]: _su }], [0, { [_hQ]: _st }], [() => SensitiveFloat, { [_hQ]: _z }]], 3
414
+ ];
415
+ var GetStaticMapResponse$ = [3, n0, _GSMRe,
416
+ 0,
417
+ [_PB, _B, _CT, _CCa, _ET],
418
+ [[0, { [_hH]: _xagpb }], [21, 16], [0, { [_hH]: _CT_ }], [0, { [_hH]: _CC_ }], [0, { [_hH]: _ET }]], 1
419
+ ];
420
+ var GetStyleDescriptorRequest$ = [3, n0, _GSDR,
421
+ 0,
422
+ [_S, _CS, _PV, _T, _CD, _Tr, _TM, _Bu, _K],
423
+ [[0, 1], [0, { [_hQ]: _cs }], [() => CountryCode, { [_hQ]: _pv }], [0, { [_hQ]: _t }], [0, { [_hQ]: _cd }], [0, { [_hQ]: _tr }], [64 | 0, { [_hQ]: _tm }], [0, { [_hQ]: _b }], [() => ApiKey, { [_hQ]: _k }]], 1
424
+ ];
425
+ var GetStyleDescriptorResponse$ = [3, n0, _GSDRe,
426
+ 0,
427
+ [_B, _CT, _CCa, _ET],
428
+ [[21, 16], [0, { [_hH]: _CT_ }], [0, { [_hH]: _CC_ }], [0, { [_hH]: _ET }]]
429
+ ];
430
+ var GetTileRequest$ = [3, n0, _GTR,
431
+ 0,
432
+ [_Ti, _Z_, _X, _Y, _AF, _K],
433
+ [[0, 1], [() => SensitiveString, 1], [() => SensitiveString, 1], [() => SensitiveString, 1], [64 | 0, { [_hQ]: _af }], [() => ApiKey, { [_hQ]: _k }]], 4
434
+ ];
435
+ var GetTileResponse$ = [3, n0, _GTRe,
436
+ 0,
437
+ [_PB, _B, _CT, _CCa, _ET],
438
+ [[0, { [_hH]: _xagpb }], [21, 16], [0, { [_hH]: _CT_ }], [0, { [_hH]: _CC_ }], [0, { [_hH]: _ET }]], 1
439
+ ];
440
+ var ValidationExceptionField$ = [3, n0, _VEF,
441
+ 0,
442
+ [_N, _M],
443
+ [[0, { [_jN]: _n }], [0, { [_jN]: _m }]], 2
444
+ ];
445
+ var ValidationExceptionFieldList = [1, n0, _VEFL,
446
+ 0, [() => ValidationExceptionField$,
447
+ 0]
448
+ ];
449
+ var GetGlyphs$ = [9, n0, _GG,
450
+ { [_ht]: ["GET", "/glyphs/{FontStack}/{FontUnicodeRange}", 200] }, () => GetGlyphsRequest$, () => GetGlyphsResponse$
451
+ ];
452
+ var GetSprites$ = [9, n0, _GS,
453
+ { [_ht]: ["GET", "/styles/{Style}/{ColorScheme}/{Variant}/sprites/{FileName}", 200] }, () => GetSpritesRequest$, () => GetSpritesResponse$
454
+ ];
455
+ var GetStaticMap$ = [9, n0, _GSM,
456
+ { [_ht]: ["GET", "/static/{FileName}", 200] }, () => GetStaticMapRequest$, () => GetStaticMapResponse$
457
+ ];
458
+ var GetStyleDescriptor$ = [9, n0, _GSD,
459
+ { [_ht]: ["GET", "/styles/{Style}/descriptor", 200] }, () => GetStyleDescriptorRequest$, () => GetStyleDescriptorResponse$
460
+ ];
461
+ var GetTile$ = [9, n0, _GT,
462
+ { [_ht]: ["GET", "/tiles/{Tileset}/{Z}/{X}/{Y}", 200] }, () => GetTileRequest$, () => GetTileResponse$
463
+ ];
464
+
465
+ const getRuntimeConfig$1 = (config) => {
466
+ return {
467
+ apiVersion: "2020-11-19",
468
+ base64Decoder: config?.base64Decoder ?? fromBase64,
469
+ base64Encoder: config?.base64Encoder ?? toBase64,
470
+ disableHostPrefix: config?.disableHostPrefix ?? false,
471
+ endpointProvider: config?.endpointProvider ?? defaultEndpointResolver,
472
+ extensions: config?.extensions ?? [],
473
+ httpAuthSchemeProvider: config?.httpAuthSchemeProvider ?? defaultGeoMapsHttpAuthSchemeProvider,
474
+ httpAuthSchemes: config?.httpAuthSchemes ?? [
475
+ {
476
+ schemeId: "aws.auth#sigv4",
477
+ identityProvider: (ipc) => ipc.getIdentityProvider("aws.auth#sigv4"),
478
+ signer: new AwsSdkSigV4Signer(),
479
+ },
480
+ ],
481
+ logger: config?.logger ?? new NoOpLogger(),
482
+ protocol: config?.protocol ?? AwsRestJsonProtocol,
483
+ protocolSettings: config?.protocolSettings ?? {
484
+ defaultNamespace: "com.amazonaws.geomaps",
485
+ errorTypeRegistries,
486
+ version: "2020-11-19",
487
+ serviceTarget: "MapsService",
488
+ },
489
+ serviceId: config?.serviceId ?? "Geo Maps",
490
+ sha256: config?.sha256 ?? Sha256,
491
+ urlParser: config?.urlParser ?? parseUrl,
492
+ utf8Decoder: config?.utf8Decoder ?? fromUtf8,
493
+ utf8Encoder: config?.utf8Encoder ?? toUtf8,
494
+ };
495
+ };
496
+
497
+ const getRuntimeConfig = (config) => {
498
+ emitWarningIfUnsupportedVersion(process.version);
499
+ const defaultsMode = resolveDefaultsModeConfig(config);
500
+ const defaultConfigProvider = () => defaultsMode().then(loadConfigsForDefaultMode);
501
+ const clientSharedValues = getRuntimeConfig$1(config);
502
+ emitWarningIfUnsupportedVersion$1(process.version);
503
+ const loaderConfig = {
504
+ profile: config?.profile,
505
+ logger: clientSharedValues.logger,
506
+ };
507
+ return {
508
+ ...clientSharedValues,
509
+ ...config,
510
+ runtime: "node",
511
+ defaultsMode,
512
+ authSchemePreference: config?.authSchemePreference ?? loadConfig(NODE_AUTH_SCHEME_PREFERENCE_OPTIONS, loaderConfig),
513
+ bodyLengthChecker: config?.bodyLengthChecker ?? calculateBodyLength,
514
+ credentialDefaultProvider: config?.credentialDefaultProvider ?? defaultProvider,
515
+ defaultUserAgentProvider: config?.defaultUserAgentProvider ?? createDefaultUserAgentProvider({ serviceId: clientSharedValues.serviceId, clientVersion: packageInfo.version }),
516
+ maxAttempts: config?.maxAttempts ?? loadConfig(NODE_MAX_ATTEMPT_CONFIG_OPTIONS, config),
517
+ region: config?.region ?? loadConfig(NODE_REGION_CONFIG_OPTIONS, { ...NODE_REGION_CONFIG_FILE_OPTIONS, ...loaderConfig }),
518
+ requestHandler: NodeHttpHandler.create(config?.requestHandler ?? defaultConfigProvider),
519
+ retryMode: config?.retryMode ??
520
+ loadConfig({
521
+ ...NODE_RETRY_MODE_CONFIG_OPTIONS,
522
+ default: async () => (await defaultConfigProvider()).retryMode || DEFAULT_RETRY_MODE,
523
+ }, config),
524
+ streamCollector: config?.streamCollector ?? streamCollector,
525
+ useDualstackEndpoint: config?.useDualstackEndpoint ?? loadConfig(NODE_USE_DUALSTACK_ENDPOINT_CONFIG_OPTIONS, loaderConfig),
526
+ useFipsEndpoint: config?.useFipsEndpoint ?? loadConfig(NODE_USE_FIPS_ENDPOINT_CONFIG_OPTIONS, loaderConfig),
527
+ userAgentAppId: config?.userAgentAppId ?? loadConfig(NODE_APP_ID_CONFIG_OPTIONS, loaderConfig),
528
+ };
529
+ };
530
+
34
531
  const getHttpAuthExtensionConfiguration = (runtimeConfig) => {
35
532
  const _httpAuthSchemes = runtimeConfig.httpAuthSchemes;
36
533
  let _httpAuthSchemeProvider = runtimeConfig.httpAuthSchemeProvider;
@@ -248,24 +745,53 @@ const TileAdditionalFeature = {
248
745
  TRANSIT: "Transit",
249
746
  };
250
747
 
748
+ exports.AccessDeniedException = AccessDeniedException;
749
+ exports.AccessDeniedException$ = AccessDeniedException$;
251
750
  exports.Buildings = Buildings;
252
751
  exports.ColorScheme = ColorScheme;
253
752
  exports.ContourDensity = ContourDensity;
254
753
  exports.GeoMaps = GeoMaps;
255
754
  exports.GeoMapsClient = GeoMapsClient;
755
+ exports.GeoMapsServiceException = GeoMapsServiceException;
756
+ exports.GeoMapsServiceException$ = GeoMapsServiceException$;
757
+ exports.GetGlyphs$ = GetGlyphs$;
256
758
  exports.GetGlyphsCommand = GetGlyphsCommand;
759
+ exports.GetGlyphsRequest$ = GetGlyphsRequest$;
760
+ exports.GetGlyphsResponse$ = GetGlyphsResponse$;
761
+ exports.GetSprites$ = GetSprites$;
257
762
  exports.GetSpritesCommand = GetSpritesCommand;
763
+ exports.GetSpritesRequest$ = GetSpritesRequest$;
764
+ exports.GetSpritesResponse$ = GetSpritesResponse$;
765
+ exports.GetStaticMap$ = GetStaticMap$;
258
766
  exports.GetStaticMapCommand = GetStaticMapCommand;
767
+ exports.GetStaticMapRequest$ = GetStaticMapRequest$;
768
+ exports.GetStaticMapResponse$ = GetStaticMapResponse$;
769
+ exports.GetStyleDescriptor$ = GetStyleDescriptor$;
259
770
  exports.GetStyleDescriptorCommand = GetStyleDescriptorCommand;
771
+ exports.GetStyleDescriptorRequest$ = GetStyleDescriptorRequest$;
772
+ exports.GetStyleDescriptorResponse$ = GetStyleDescriptorResponse$;
773
+ exports.GetTile$ = GetTile$;
260
774
  exports.GetTileCommand = GetTileCommand;
775
+ exports.GetTileRequest$ = GetTileRequest$;
776
+ exports.GetTileResponse$ = GetTileResponse$;
777
+ exports.InternalServerException = InternalServerException;
778
+ exports.InternalServerException$ = InternalServerException$;
261
779
  exports.LabelSize = LabelSize;
262
780
  exports.MapFeatureMode = MapFeatureMode;
263
781
  exports.MapStyle = MapStyle;
782
+ exports.ResourceNotFoundException = ResourceNotFoundException;
783
+ exports.ResourceNotFoundException$ = ResourceNotFoundException$;
264
784
  exports.ScaleBarUnit = ScaleBarUnit;
265
785
  exports.StaticMapStyle = StaticMapStyle;
266
786
  exports.Terrain = Terrain;
787
+ exports.ThrottlingException = ThrottlingException;
788
+ exports.ThrottlingException$ = ThrottlingException$;
267
789
  exports.TileAdditionalFeature = TileAdditionalFeature;
268
790
  exports.Traffic = Traffic;
269
791
  exports.TravelMode = TravelMode;
792
+ exports.ValidationException = ValidationException;
793
+ exports.ValidationException$ = ValidationException$;
794
+ exports.ValidationExceptionField$ = ValidationExceptionField$;
270
795
  exports.ValidationExceptionReason = ValidationExceptionReason;
271
796
  exports.Variant = Variant;
797
+ exports.errorTypeRegistries = errorTypeRegistries;
@@ -1,5 +1,4 @@
1
1
  import packageInfo from "../package.json";
2
- import { Sha256 } from "@aws-crypto/sha256-browser";
3
2
  import { createDefaultUserAgentProvider } from "@aws-sdk/core/client";
4
3
  import { invalidProvider, loadConfigsForDefaultMode } from "@smithy/core/client";
5
4
  import { DEFAULT_USE_DUALSTACK_ENDPOINT, DEFAULT_USE_FIPS_ENDPOINT, resolveDefaultsModeConfig, } from "@smithy/core/config";
@@ -23,7 +22,6 @@ export const getRuntimeConfig = (config) => {
23
22
  region: config?.region ?? invalidProvider("Region is missing"),
24
23
  requestHandler: RequestHandler.create(config?.requestHandler ?? defaultConfigProvider),
25
24
  retryMode: config?.retryMode ?? (async () => (await defaultConfigProvider()).retryMode || DEFAULT_RETRY_MODE),
26
- sha256: config?.sha256 ?? Sha256,
27
25
  streamCollector: config?.streamCollector ?? streamCollector,
28
26
  useDualstackEndpoint: config?.useDualstackEndpoint ?? (() => Promise.resolve(DEFAULT_USE_DUALSTACK_ENDPOINT)),
29
27
  useFipsEndpoint: config?.useFipsEndpoint ?? (() => Promise.resolve(DEFAULT_USE_FIPS_ENDPOINT)),
@@ -5,7 +5,7 @@ import { defaultProvider as credentialDefaultProvider } from "@aws-sdk/credentia
5
5
  import { emitWarningIfUnsupportedVersion, loadConfigsForDefaultMode } from "@smithy/core/client";
6
6
  import { loadConfig as loadNodeConfig, NODE_REGION_CONFIG_FILE_OPTIONS, NODE_REGION_CONFIG_OPTIONS, NODE_USE_DUALSTACK_ENDPOINT_CONFIG_OPTIONS, NODE_USE_FIPS_ENDPOINT_CONFIG_OPTIONS, resolveDefaultsModeConfig, } from "@smithy/core/config";
7
7
  import { DEFAULT_RETRY_MODE, NODE_MAX_ATTEMPT_CONFIG_OPTIONS, NODE_RETRY_MODE_CONFIG_OPTIONS, } from "@smithy/core/retry";
8
- import { calculateBodyLength, Hash } from "@smithy/core/serde";
8
+ import { calculateBodyLength } from "@smithy/core/serde";
9
9
  import { NodeHttpHandler as RequestHandler, streamCollector } from "@smithy/node-http-handler";
10
10
  import { getRuntimeConfig as getSharedRuntimeConfig } from "./runtimeConfig.shared";
11
11
  export const getRuntimeConfig = (config) => {
@@ -35,7 +35,6 @@ export const getRuntimeConfig = (config) => {
35
35
  ...NODE_RETRY_MODE_CONFIG_OPTIONS,
36
36
  default: async () => (await defaultConfigProvider()).retryMode || DEFAULT_RETRY_MODE,
37
37
  }, config),
38
- sha256: config?.sha256 ?? Hash.bind(null, "sha256"),
39
38
  streamCollector: config?.streamCollector ?? streamCollector,
40
39
  useDualstackEndpoint: config?.useDualstackEndpoint ?? loadNodeConfig(NODE_USE_DUALSTACK_ENDPOINT_CONFIG_OPTIONS, loaderConfig),
41
40
  useFipsEndpoint: config?.useFipsEndpoint ?? loadNodeConfig(NODE_USE_FIPS_ENDPOINT_CONFIG_OPTIONS, loaderConfig),
@@ -1,4 +1,3 @@
1
- import { Sha256 } from "@aws-crypto/sha256-js";
2
1
  import { getRuntimeConfig as getBrowserRuntimeConfig } from "./runtimeConfig.browser";
3
2
  export const getRuntimeConfig = (config) => {
4
3
  const browserDefaults = getBrowserRuntimeConfig(config);
@@ -6,6 +5,5 @@ export const getRuntimeConfig = (config) => {
6
5
  ...browserDefaults,
7
6
  ...config,
8
7
  runtime: "react-native",
9
- sha256: config?.sha256 ?? Sha256,
10
8
  };
11
9
  };
@@ -1,5 +1,6 @@
1
1
  import { AwsSdkSigV4Signer } from "@aws-sdk/core/httpAuthSchemes";
2
2
  import { AwsRestJsonProtocol } from "@aws-sdk/core/protocols";
3
+ import { Sha256 } from "@smithy/core/checksum";
3
4
  import { NoOpLogger } from "@smithy/core/client";
4
5
  import { parseUrl } from "@smithy/core/protocols";
5
6
  import { fromBase64, fromUtf8, toBase64, toUtf8 } from "@smithy/core/serde";
@@ -31,6 +32,7 @@ export const getRuntimeConfig = (config) => {
31
32
  serviceTarget: "MapsService",
32
33
  },
33
34
  serviceId: config?.serviceId ?? "Geo Maps",
35
+ sha256: config?.sha256 ?? Sha256,
34
36
  urlParser: config?.urlParser ?? parseUrl,
35
37
  utf8Decoder: config?.utf8Decoder ?? fromUtf8,
36
38
  utf8Encoder: config?.utf8Encoder ?? toUtf8,
@@ -13,8 +13,7 @@ export declare const getRuntimeConfig: (config: GeoMapsClientConfig) => {
13
13
  region: string | import("@smithy/types").Provider<any>;
14
14
  requestHandler: import("@smithy/core/protocols").HttpHandler<any> | RequestHandler;
15
15
  retryMode: string | import("@smithy/types").Provider<string>;
16
- sha256: import("@smithy/types").HashConstructor;
17
- streamCollector: import("@smithy/types").StreamCollector;
16
+ streamCollector: (stream: import("stream").Readable | import("stream/web").ReadableStream | ReadableStream | Blob) => Promise<Uint8Array>;
18
17
  useDualstackEndpoint: (boolean | import("@smithy/types").Provider<boolean>) & (boolean | import("@smithy/types").Provider<boolean | undefined>);
19
18
  useFipsEndpoint: (boolean | import("@smithy/types").Provider<boolean>) & (boolean | import("@smithy/types").Provider<boolean | undefined>);
20
19
  cacheMiddleware?: boolean | undefined;
@@ -24,6 +23,7 @@ export declare const getRuntimeConfig: (config: GeoMapsClientConfig) => {
24
23
  [setting: string]: unknown;
25
24
  };
26
25
  apiVersion: string;
26
+ sha256: import("@smithy/types").HashConstructor;
27
27
  urlParser: import("@smithy/types").UrlParser;
28
28
  base64Decoder: import("@smithy/types").Decoder;
29
29
  base64Encoder: (_input: Uint8Array | string) => string;