@aws-sdk/client-mwaa 3.54.1 → 3.55.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/CHANGELOG.md +8 -0
- package/dist-cjs/MWAAClient.js +13 -13
- package/dist-cjs/commands/CreateCliTokenCommand.js +3 -3
- package/dist-cjs/commands/CreateEnvironmentCommand.js +3 -3
- package/dist-cjs/commands/CreateWebLoginTokenCommand.js +3 -3
- package/dist-cjs/commands/DeleteEnvironmentCommand.js +3 -3
- package/dist-cjs/commands/GetEnvironmentCommand.js +3 -3
- package/dist-cjs/commands/ListEnvironmentsCommand.js +3 -3
- package/dist-cjs/commands/ListTagsForResourceCommand.js +3 -3
- package/dist-cjs/commands/PublishMetricsCommand.js +3 -3
- package/dist-cjs/commands/TagResourceCommand.js +3 -3
- package/dist-cjs/commands/UntagResourceCommand.js +3 -3
- package/dist-cjs/commands/UpdateEnvironmentCommand.js +3 -3
- package/dist-cjs/endpoints.js +1 -1
- package/dist-cjs/protocols/Aws_restJson1.js +92 -92
- package/dist-cjs/runtimeConfig.browser.js +4 -4
- package/dist-cjs/runtimeConfig.js +9 -9
- package/dist-cjs/runtimeConfig.native.js +1 -1
- package/dist-es/MWAA.js +11 -11
- package/dist-es/pagination/ListEnvironmentsPaginator.js +4 -4
- package/dist-es/protocols/Aws_restJson1.js +11 -11
- package/dist-types/runtimeConfig.native.d.ts +2 -2
- package/dist-types/ts3.4/runtimeConfig.native.d.ts +2 -2
- package/package.json +34 -34
|
@@ -14,7 +14,7 @@ const serializeAws_restJson1CreateCliTokenCommand = async (input, context) => {
|
|
|
14
14
|
if (labelValue.length <= 0) {
|
|
15
15
|
throw new Error("Empty value provided for input HTTP label: Name.");
|
|
16
16
|
}
|
|
17
|
-
resolvedPath = resolvedPath.replace("{Name}", smithy_client_1.extendedEncodeURIComponent(labelValue));
|
|
17
|
+
resolvedPath = resolvedPath.replace("{Name}", (0, smithy_client_1.extendedEncodeURIComponent)(labelValue));
|
|
18
18
|
}
|
|
19
19
|
else {
|
|
20
20
|
throw new Error("No value provided for input HTTP label: Name.");
|
|
@@ -23,7 +23,7 @@ const serializeAws_restJson1CreateCliTokenCommand = async (input, context) => {
|
|
|
23
23
|
let { hostname: resolvedHostname } = await context.endpoint();
|
|
24
24
|
if (context.disableHostPrefix !== true) {
|
|
25
25
|
resolvedHostname = "env." + resolvedHostname;
|
|
26
|
-
if (!protocol_http_1.isValidHostname(resolvedHostname)) {
|
|
26
|
+
if (!(0, protocol_http_1.isValidHostname)(resolvedHostname)) {
|
|
27
27
|
throw new Error("ValidationError: prefixed hostname must be hostname compatible.");
|
|
28
28
|
}
|
|
29
29
|
}
|
|
@@ -49,7 +49,7 @@ const serializeAws_restJson1CreateEnvironmentCommand = async (input, context) =>
|
|
|
49
49
|
if (labelValue.length <= 0) {
|
|
50
50
|
throw new Error("Empty value provided for input HTTP label: Name.");
|
|
51
51
|
}
|
|
52
|
-
resolvedPath = resolvedPath.replace("{Name}", smithy_client_1.extendedEncodeURIComponent(labelValue));
|
|
52
|
+
resolvedPath = resolvedPath.replace("{Name}", (0, smithy_client_1.extendedEncodeURIComponent)(labelValue));
|
|
53
53
|
}
|
|
54
54
|
else {
|
|
55
55
|
throw new Error("No value provided for input HTTP label: Name.");
|
|
@@ -99,7 +99,7 @@ const serializeAws_restJson1CreateEnvironmentCommand = async (input, context) =>
|
|
|
99
99
|
let { hostname: resolvedHostname } = await context.endpoint();
|
|
100
100
|
if (context.disableHostPrefix !== true) {
|
|
101
101
|
resolvedHostname = "api." + resolvedHostname;
|
|
102
|
-
if (!protocol_http_1.isValidHostname(resolvedHostname)) {
|
|
102
|
+
if (!(0, protocol_http_1.isValidHostname)(resolvedHostname)) {
|
|
103
103
|
throw new Error("ValidationError: prefixed hostname must be hostname compatible.");
|
|
104
104
|
}
|
|
105
105
|
}
|
|
@@ -123,7 +123,7 @@ const serializeAws_restJson1CreateWebLoginTokenCommand = async (input, context)
|
|
|
123
123
|
if (labelValue.length <= 0) {
|
|
124
124
|
throw new Error("Empty value provided for input HTTP label: Name.");
|
|
125
125
|
}
|
|
126
|
-
resolvedPath = resolvedPath.replace("{Name}", smithy_client_1.extendedEncodeURIComponent(labelValue));
|
|
126
|
+
resolvedPath = resolvedPath.replace("{Name}", (0, smithy_client_1.extendedEncodeURIComponent)(labelValue));
|
|
127
127
|
}
|
|
128
128
|
else {
|
|
129
129
|
throw new Error("No value provided for input HTTP label: Name.");
|
|
@@ -132,7 +132,7 @@ const serializeAws_restJson1CreateWebLoginTokenCommand = async (input, context)
|
|
|
132
132
|
let { hostname: resolvedHostname } = await context.endpoint();
|
|
133
133
|
if (context.disableHostPrefix !== true) {
|
|
134
134
|
resolvedHostname = "env." + resolvedHostname;
|
|
135
|
-
if (!protocol_http_1.isValidHostname(resolvedHostname)) {
|
|
135
|
+
if (!(0, protocol_http_1.isValidHostname)(resolvedHostname)) {
|
|
136
136
|
throw new Error("ValidationError: prefixed hostname must be hostname compatible.");
|
|
137
137
|
}
|
|
138
138
|
}
|
|
@@ -156,7 +156,7 @@ const serializeAws_restJson1DeleteEnvironmentCommand = async (input, context) =>
|
|
|
156
156
|
if (labelValue.length <= 0) {
|
|
157
157
|
throw new Error("Empty value provided for input HTTP label: Name.");
|
|
158
158
|
}
|
|
159
|
-
resolvedPath = resolvedPath.replace("{Name}", smithy_client_1.extendedEncodeURIComponent(labelValue));
|
|
159
|
+
resolvedPath = resolvedPath.replace("{Name}", (0, smithy_client_1.extendedEncodeURIComponent)(labelValue));
|
|
160
160
|
}
|
|
161
161
|
else {
|
|
162
162
|
throw new Error("No value provided for input HTTP label: Name.");
|
|
@@ -165,7 +165,7 @@ const serializeAws_restJson1DeleteEnvironmentCommand = async (input, context) =>
|
|
|
165
165
|
let { hostname: resolvedHostname } = await context.endpoint();
|
|
166
166
|
if (context.disableHostPrefix !== true) {
|
|
167
167
|
resolvedHostname = "api." + resolvedHostname;
|
|
168
|
-
if (!protocol_http_1.isValidHostname(resolvedHostname)) {
|
|
168
|
+
if (!(0, protocol_http_1.isValidHostname)(resolvedHostname)) {
|
|
169
169
|
throw new Error("ValidationError: prefixed hostname must be hostname compatible.");
|
|
170
170
|
}
|
|
171
171
|
}
|
|
@@ -189,7 +189,7 @@ const serializeAws_restJson1GetEnvironmentCommand = async (input, context) => {
|
|
|
189
189
|
if (labelValue.length <= 0) {
|
|
190
190
|
throw new Error("Empty value provided for input HTTP label: Name.");
|
|
191
191
|
}
|
|
192
|
-
resolvedPath = resolvedPath.replace("{Name}", smithy_client_1.extendedEncodeURIComponent(labelValue));
|
|
192
|
+
resolvedPath = resolvedPath.replace("{Name}", (0, smithy_client_1.extendedEncodeURIComponent)(labelValue));
|
|
193
193
|
}
|
|
194
194
|
else {
|
|
195
195
|
throw new Error("No value provided for input HTTP label: Name.");
|
|
@@ -198,7 +198,7 @@ const serializeAws_restJson1GetEnvironmentCommand = async (input, context) => {
|
|
|
198
198
|
let { hostname: resolvedHostname } = await context.endpoint();
|
|
199
199
|
if (context.disableHostPrefix !== true) {
|
|
200
200
|
resolvedHostname = "api." + resolvedHostname;
|
|
201
|
-
if (!protocol_http_1.isValidHostname(resolvedHostname)) {
|
|
201
|
+
if (!(0, protocol_http_1.isValidHostname)(resolvedHostname)) {
|
|
202
202
|
throw new Error("ValidationError: prefixed hostname must be hostname compatible.");
|
|
203
203
|
}
|
|
204
204
|
}
|
|
@@ -225,7 +225,7 @@ const serializeAws_restJson1ListEnvironmentsCommand = async (input, context) =>
|
|
|
225
225
|
let { hostname: resolvedHostname } = await context.endpoint();
|
|
226
226
|
if (context.disableHostPrefix !== true) {
|
|
227
227
|
resolvedHostname = "api." + resolvedHostname;
|
|
228
|
-
if (!protocol_http_1.isValidHostname(resolvedHostname)) {
|
|
228
|
+
if (!(0, protocol_http_1.isValidHostname)(resolvedHostname)) {
|
|
229
229
|
throw new Error("ValidationError: prefixed hostname must be hostname compatible.");
|
|
230
230
|
}
|
|
231
231
|
}
|
|
@@ -250,7 +250,7 @@ const serializeAws_restJson1ListTagsForResourceCommand = async (input, context)
|
|
|
250
250
|
if (labelValue.length <= 0) {
|
|
251
251
|
throw new Error("Empty value provided for input HTTP label: ResourceArn.");
|
|
252
252
|
}
|
|
253
|
-
resolvedPath = resolvedPath.replace("{ResourceArn}", smithy_client_1.extendedEncodeURIComponent(labelValue));
|
|
253
|
+
resolvedPath = resolvedPath.replace("{ResourceArn}", (0, smithy_client_1.extendedEncodeURIComponent)(labelValue));
|
|
254
254
|
}
|
|
255
255
|
else {
|
|
256
256
|
throw new Error("No value provided for input HTTP label: ResourceArn.");
|
|
@@ -259,7 +259,7 @@ const serializeAws_restJson1ListTagsForResourceCommand = async (input, context)
|
|
|
259
259
|
let { hostname: resolvedHostname } = await context.endpoint();
|
|
260
260
|
if (context.disableHostPrefix !== true) {
|
|
261
261
|
resolvedHostname = "api." + resolvedHostname;
|
|
262
|
-
if (!protocol_http_1.isValidHostname(resolvedHostname)) {
|
|
262
|
+
if (!(0, protocol_http_1.isValidHostname)(resolvedHostname)) {
|
|
263
263
|
throw new Error("ValidationError: prefixed hostname must be hostname compatible.");
|
|
264
264
|
}
|
|
265
265
|
}
|
|
@@ -285,7 +285,7 @@ const serializeAws_restJson1PublishMetricsCommand = async (input, context) => {
|
|
|
285
285
|
if (labelValue.length <= 0) {
|
|
286
286
|
throw new Error("Empty value provided for input HTTP label: EnvironmentName.");
|
|
287
287
|
}
|
|
288
|
-
resolvedPath = resolvedPath.replace("{EnvironmentName}", smithy_client_1.extendedEncodeURIComponent(labelValue));
|
|
288
|
+
resolvedPath = resolvedPath.replace("{EnvironmentName}", (0, smithy_client_1.extendedEncodeURIComponent)(labelValue));
|
|
289
289
|
}
|
|
290
290
|
else {
|
|
291
291
|
throw new Error("No value provided for input HTTP label: EnvironmentName.");
|
|
@@ -298,7 +298,7 @@ const serializeAws_restJson1PublishMetricsCommand = async (input, context) => {
|
|
|
298
298
|
let { hostname: resolvedHostname } = await context.endpoint();
|
|
299
299
|
if (context.disableHostPrefix !== true) {
|
|
300
300
|
resolvedHostname = "ops." + resolvedHostname;
|
|
301
|
-
if (!protocol_http_1.isValidHostname(resolvedHostname)) {
|
|
301
|
+
if (!(0, protocol_http_1.isValidHostname)(resolvedHostname)) {
|
|
302
302
|
throw new Error("ValidationError: prefixed hostname must be hostname compatible.");
|
|
303
303
|
}
|
|
304
304
|
}
|
|
@@ -324,7 +324,7 @@ const serializeAws_restJson1TagResourceCommand = async (input, context) => {
|
|
|
324
324
|
if (labelValue.length <= 0) {
|
|
325
325
|
throw new Error("Empty value provided for input HTTP label: ResourceArn.");
|
|
326
326
|
}
|
|
327
|
-
resolvedPath = resolvedPath.replace("{ResourceArn}", smithy_client_1.extendedEncodeURIComponent(labelValue));
|
|
327
|
+
resolvedPath = resolvedPath.replace("{ResourceArn}", (0, smithy_client_1.extendedEncodeURIComponent)(labelValue));
|
|
328
328
|
}
|
|
329
329
|
else {
|
|
330
330
|
throw new Error("No value provided for input HTTP label: ResourceArn.");
|
|
@@ -336,7 +336,7 @@ const serializeAws_restJson1TagResourceCommand = async (input, context) => {
|
|
|
336
336
|
let { hostname: resolvedHostname } = await context.endpoint();
|
|
337
337
|
if (context.disableHostPrefix !== true) {
|
|
338
338
|
resolvedHostname = "api." + resolvedHostname;
|
|
339
|
-
if (!protocol_http_1.isValidHostname(resolvedHostname)) {
|
|
339
|
+
if (!(0, protocol_http_1.isValidHostname)(resolvedHostname)) {
|
|
340
340
|
throw new Error("ValidationError: prefixed hostname must be hostname compatible.");
|
|
341
341
|
}
|
|
342
342
|
}
|
|
@@ -360,7 +360,7 @@ const serializeAws_restJson1UntagResourceCommand = async (input, context) => {
|
|
|
360
360
|
if (labelValue.length <= 0) {
|
|
361
361
|
throw new Error("Empty value provided for input HTTP label: ResourceArn.");
|
|
362
362
|
}
|
|
363
|
-
resolvedPath = resolvedPath.replace("{ResourceArn}", smithy_client_1.extendedEncodeURIComponent(labelValue));
|
|
363
|
+
resolvedPath = resolvedPath.replace("{ResourceArn}", (0, smithy_client_1.extendedEncodeURIComponent)(labelValue));
|
|
364
364
|
}
|
|
365
365
|
else {
|
|
366
366
|
throw new Error("No value provided for input HTTP label: ResourceArn.");
|
|
@@ -372,7 +372,7 @@ const serializeAws_restJson1UntagResourceCommand = async (input, context) => {
|
|
|
372
372
|
let { hostname: resolvedHostname } = await context.endpoint();
|
|
373
373
|
if (context.disableHostPrefix !== true) {
|
|
374
374
|
resolvedHostname = "api." + resolvedHostname;
|
|
375
|
-
if (!protocol_http_1.isValidHostname(resolvedHostname)) {
|
|
375
|
+
if (!(0, protocol_http_1.isValidHostname)(resolvedHostname)) {
|
|
376
376
|
throw new Error("ValidationError: prefixed hostname must be hostname compatible.");
|
|
377
377
|
}
|
|
378
378
|
}
|
|
@@ -399,7 +399,7 @@ const serializeAws_restJson1UpdateEnvironmentCommand = async (input, context) =>
|
|
|
399
399
|
if (labelValue.length <= 0) {
|
|
400
400
|
throw new Error("Empty value provided for input HTTP label: Name.");
|
|
401
401
|
}
|
|
402
|
-
resolvedPath = resolvedPath.replace("{Name}", smithy_client_1.extendedEncodeURIComponent(labelValue));
|
|
402
|
+
resolvedPath = resolvedPath.replace("{Name}", (0, smithy_client_1.extendedEncodeURIComponent)(labelValue));
|
|
403
403
|
}
|
|
404
404
|
else {
|
|
405
405
|
throw new Error("No value provided for input HTTP label: Name.");
|
|
@@ -447,7 +447,7 @@ const serializeAws_restJson1UpdateEnvironmentCommand = async (input, context) =>
|
|
|
447
447
|
let { hostname: resolvedHostname } = await context.endpoint();
|
|
448
448
|
if (context.disableHostPrefix !== true) {
|
|
449
449
|
resolvedHostname = "api." + resolvedHostname;
|
|
450
|
-
if (!protocol_http_1.isValidHostname(resolvedHostname)) {
|
|
450
|
+
if (!(0, protocol_http_1.isValidHostname)(resolvedHostname)) {
|
|
451
451
|
throw new Error("ValidationError: prefixed hostname must be hostname compatible.");
|
|
452
452
|
}
|
|
453
453
|
}
|
|
@@ -471,12 +471,12 @@ const deserializeAws_restJson1CreateCliTokenCommand = async (output, context) =>
|
|
|
471
471
|
CliToken: undefined,
|
|
472
472
|
WebServerHostname: undefined,
|
|
473
473
|
};
|
|
474
|
-
const data = smithy_client_1.expectNonNull(smithy_client_1.expectObject(await parseBody(output.body, context)), "body");
|
|
474
|
+
const data = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.expectObject)(await parseBody(output.body, context)), "body");
|
|
475
475
|
if (data.CliToken !== undefined && data.CliToken !== null) {
|
|
476
|
-
contents.CliToken = smithy_client_1.expectString(data.CliToken);
|
|
476
|
+
contents.CliToken = (0, smithy_client_1.expectString)(data.CliToken);
|
|
477
477
|
}
|
|
478
478
|
if (data.WebServerHostname !== undefined && data.WebServerHostname !== null) {
|
|
479
|
-
contents.WebServerHostname = smithy_client_1.expectString(data.WebServerHostname);
|
|
479
|
+
contents.WebServerHostname = (0, smithy_client_1.expectString)(data.WebServerHostname);
|
|
480
480
|
}
|
|
481
481
|
return Promise.resolve(contents);
|
|
482
482
|
};
|
|
@@ -500,7 +500,7 @@ const deserializeAws_restJson1CreateCliTokenCommandError = async (output, contex
|
|
|
500
500
|
$fault: "client",
|
|
501
501
|
$metadata: deserializeMetadata(output),
|
|
502
502
|
});
|
|
503
|
-
throw smithy_client_1.decorateServiceException(response, parsedBody);
|
|
503
|
+
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
504
504
|
}
|
|
505
505
|
};
|
|
506
506
|
const deserializeAws_restJson1CreateEnvironmentCommand = async (output, context) => {
|
|
@@ -511,9 +511,9 @@ const deserializeAws_restJson1CreateEnvironmentCommand = async (output, context)
|
|
|
511
511
|
$metadata: deserializeMetadata(output),
|
|
512
512
|
Arn: undefined,
|
|
513
513
|
};
|
|
514
|
-
const data = smithy_client_1.expectNonNull(smithy_client_1.expectObject(await parseBody(output.body, context)), "body");
|
|
514
|
+
const data = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.expectObject)(await parseBody(output.body, context)), "body");
|
|
515
515
|
if (data.Arn !== undefined && data.Arn !== null) {
|
|
516
|
-
contents.Arn = smithy_client_1.expectString(data.Arn);
|
|
516
|
+
contents.Arn = (0, smithy_client_1.expectString)(data.Arn);
|
|
517
517
|
}
|
|
518
518
|
return Promise.resolve(contents);
|
|
519
519
|
};
|
|
@@ -540,7 +540,7 @@ const deserializeAws_restJson1CreateEnvironmentCommandError = async (output, con
|
|
|
540
540
|
$fault: "client",
|
|
541
541
|
$metadata: deserializeMetadata(output),
|
|
542
542
|
});
|
|
543
|
-
throw smithy_client_1.decorateServiceException(response, parsedBody);
|
|
543
|
+
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
544
544
|
}
|
|
545
545
|
};
|
|
546
546
|
const deserializeAws_restJson1CreateWebLoginTokenCommand = async (output, context) => {
|
|
@@ -552,12 +552,12 @@ const deserializeAws_restJson1CreateWebLoginTokenCommand = async (output, contex
|
|
|
552
552
|
WebServerHostname: undefined,
|
|
553
553
|
WebToken: undefined,
|
|
554
554
|
};
|
|
555
|
-
const data = smithy_client_1.expectNonNull(smithy_client_1.expectObject(await parseBody(output.body, context)), "body");
|
|
555
|
+
const data = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.expectObject)(await parseBody(output.body, context)), "body");
|
|
556
556
|
if (data.WebServerHostname !== undefined && data.WebServerHostname !== null) {
|
|
557
|
-
contents.WebServerHostname = smithy_client_1.expectString(data.WebServerHostname);
|
|
557
|
+
contents.WebServerHostname = (0, smithy_client_1.expectString)(data.WebServerHostname);
|
|
558
558
|
}
|
|
559
559
|
if (data.WebToken !== undefined && data.WebToken !== null) {
|
|
560
|
-
contents.WebToken = smithy_client_1.expectString(data.WebToken);
|
|
560
|
+
contents.WebToken = (0, smithy_client_1.expectString)(data.WebToken);
|
|
561
561
|
}
|
|
562
562
|
return Promise.resolve(contents);
|
|
563
563
|
};
|
|
@@ -590,7 +590,7 @@ const deserializeAws_restJson1CreateWebLoginTokenCommandError = async (output, c
|
|
|
590
590
|
$fault: "client",
|
|
591
591
|
$metadata: deserializeMetadata(output),
|
|
592
592
|
});
|
|
593
|
-
throw smithy_client_1.decorateServiceException(response, parsedBody);
|
|
593
|
+
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
594
594
|
}
|
|
595
595
|
};
|
|
596
596
|
const deserializeAws_restJson1DeleteEnvironmentCommand = async (output, context) => {
|
|
@@ -629,7 +629,7 @@ const deserializeAws_restJson1DeleteEnvironmentCommandError = async (output, con
|
|
|
629
629
|
$fault: "client",
|
|
630
630
|
$metadata: deserializeMetadata(output),
|
|
631
631
|
});
|
|
632
|
-
throw smithy_client_1.decorateServiceException(response, parsedBody);
|
|
632
|
+
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
633
633
|
}
|
|
634
634
|
};
|
|
635
635
|
const deserializeAws_restJson1GetEnvironmentCommand = async (output, context) => {
|
|
@@ -640,7 +640,7 @@ const deserializeAws_restJson1GetEnvironmentCommand = async (output, context) =>
|
|
|
640
640
|
$metadata: deserializeMetadata(output),
|
|
641
641
|
Environment: undefined,
|
|
642
642
|
};
|
|
643
|
-
const data = smithy_client_1.expectNonNull(smithy_client_1.expectObject(await parseBody(output.body, context)), "body");
|
|
643
|
+
const data = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.expectObject)(await parseBody(output.body, context)), "body");
|
|
644
644
|
if (data.Environment !== undefined && data.Environment !== null) {
|
|
645
645
|
contents.Environment = deserializeAws_restJson1Environment(data.Environment, context);
|
|
646
646
|
}
|
|
@@ -672,7 +672,7 @@ const deserializeAws_restJson1GetEnvironmentCommandError = async (output, contex
|
|
|
672
672
|
$fault: "client",
|
|
673
673
|
$metadata: deserializeMetadata(output),
|
|
674
674
|
});
|
|
675
|
-
throw smithy_client_1.decorateServiceException(response, parsedBody);
|
|
675
|
+
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
676
676
|
}
|
|
677
677
|
};
|
|
678
678
|
const deserializeAws_restJson1ListEnvironmentsCommand = async (output, context) => {
|
|
@@ -684,12 +684,12 @@ const deserializeAws_restJson1ListEnvironmentsCommand = async (output, context)
|
|
|
684
684
|
Environments: undefined,
|
|
685
685
|
NextToken: undefined,
|
|
686
686
|
};
|
|
687
|
-
const data = smithy_client_1.expectNonNull(smithy_client_1.expectObject(await parseBody(output.body, context)), "body");
|
|
687
|
+
const data = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.expectObject)(await parseBody(output.body, context)), "body");
|
|
688
688
|
if (data.Environments !== undefined && data.Environments !== null) {
|
|
689
689
|
contents.Environments = deserializeAws_restJson1EnvironmentList(data.Environments, context);
|
|
690
690
|
}
|
|
691
691
|
if (data.NextToken !== undefined && data.NextToken !== null) {
|
|
692
|
-
contents.NextToken = smithy_client_1.expectString(data.NextToken);
|
|
692
|
+
contents.NextToken = (0, smithy_client_1.expectString)(data.NextToken);
|
|
693
693
|
}
|
|
694
694
|
return Promise.resolve(contents);
|
|
695
695
|
};
|
|
@@ -716,7 +716,7 @@ const deserializeAws_restJson1ListEnvironmentsCommandError = async (output, cont
|
|
|
716
716
|
$fault: "client",
|
|
717
717
|
$metadata: deserializeMetadata(output),
|
|
718
718
|
});
|
|
719
|
-
throw smithy_client_1.decorateServiceException(response, parsedBody);
|
|
719
|
+
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
720
720
|
}
|
|
721
721
|
};
|
|
722
722
|
const deserializeAws_restJson1ListTagsForResourceCommand = async (output, context) => {
|
|
@@ -727,7 +727,7 @@ const deserializeAws_restJson1ListTagsForResourceCommand = async (output, contex
|
|
|
727
727
|
$metadata: deserializeMetadata(output),
|
|
728
728
|
Tags: undefined,
|
|
729
729
|
};
|
|
730
|
-
const data = smithy_client_1.expectNonNull(smithy_client_1.expectObject(await parseBody(output.body, context)), "body");
|
|
730
|
+
const data = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.expectObject)(await parseBody(output.body, context)), "body");
|
|
731
731
|
if (data.Tags !== undefined && data.Tags !== null) {
|
|
732
732
|
contents.Tags = deserializeAws_restJson1TagMap(data.Tags, context);
|
|
733
733
|
}
|
|
@@ -759,7 +759,7 @@ const deserializeAws_restJson1ListTagsForResourceCommandError = async (output, c
|
|
|
759
759
|
$fault: "client",
|
|
760
760
|
$metadata: deserializeMetadata(output),
|
|
761
761
|
});
|
|
762
|
-
throw smithy_client_1.decorateServiceException(response, parsedBody);
|
|
762
|
+
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
763
763
|
}
|
|
764
764
|
};
|
|
765
765
|
const deserializeAws_restJson1PublishMetricsCommand = async (output, context) => {
|
|
@@ -795,7 +795,7 @@ const deserializeAws_restJson1PublishMetricsCommandError = async (output, contex
|
|
|
795
795
|
$fault: "client",
|
|
796
796
|
$metadata: deserializeMetadata(output),
|
|
797
797
|
});
|
|
798
|
-
throw smithy_client_1.decorateServiceException(response, parsedBody);
|
|
798
|
+
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
799
799
|
}
|
|
800
800
|
};
|
|
801
801
|
const deserializeAws_restJson1TagResourceCommand = async (output, context) => {
|
|
@@ -834,7 +834,7 @@ const deserializeAws_restJson1TagResourceCommandError = async (output, context)
|
|
|
834
834
|
$fault: "client",
|
|
835
835
|
$metadata: deserializeMetadata(output),
|
|
836
836
|
});
|
|
837
|
-
throw smithy_client_1.decorateServiceException(response, parsedBody);
|
|
837
|
+
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
838
838
|
}
|
|
839
839
|
};
|
|
840
840
|
const deserializeAws_restJson1UntagResourceCommand = async (output, context) => {
|
|
@@ -873,7 +873,7 @@ const deserializeAws_restJson1UntagResourceCommandError = async (output, context
|
|
|
873
873
|
$fault: "client",
|
|
874
874
|
$metadata: deserializeMetadata(output),
|
|
875
875
|
});
|
|
876
|
-
throw smithy_client_1.decorateServiceException(response, parsedBody);
|
|
876
|
+
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
877
877
|
}
|
|
878
878
|
};
|
|
879
879
|
const deserializeAws_restJson1UpdateEnvironmentCommand = async (output, context) => {
|
|
@@ -884,9 +884,9 @@ const deserializeAws_restJson1UpdateEnvironmentCommand = async (output, context)
|
|
|
884
884
|
$metadata: deserializeMetadata(output),
|
|
885
885
|
Arn: undefined,
|
|
886
886
|
};
|
|
887
|
-
const data = smithy_client_1.expectNonNull(smithy_client_1.expectObject(await parseBody(output.body, context)), "body");
|
|
887
|
+
const data = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.expectObject)(await parseBody(output.body, context)), "body");
|
|
888
888
|
if (data.Arn !== undefined && data.Arn !== null) {
|
|
889
|
-
contents.Arn = smithy_client_1.expectString(data.Arn);
|
|
889
|
+
contents.Arn = (0, smithy_client_1.expectString)(data.Arn);
|
|
890
890
|
}
|
|
891
891
|
return Promise.resolve(contents);
|
|
892
892
|
};
|
|
@@ -916,56 +916,56 @@ const deserializeAws_restJson1UpdateEnvironmentCommandError = async (output, con
|
|
|
916
916
|
$fault: "client",
|
|
917
917
|
$metadata: deserializeMetadata(output),
|
|
918
918
|
});
|
|
919
|
-
throw smithy_client_1.decorateServiceException(response, parsedBody);
|
|
919
|
+
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
920
920
|
}
|
|
921
921
|
};
|
|
922
922
|
const deserializeAws_restJson1AccessDeniedExceptionResponse = async (parsedOutput, context) => {
|
|
923
923
|
const contents = {};
|
|
924
924
|
const data = parsedOutput.body;
|
|
925
925
|
if (data.Message !== undefined && data.Message !== null) {
|
|
926
|
-
contents.Message = smithy_client_1.expectString(data.Message);
|
|
926
|
+
contents.Message = (0, smithy_client_1.expectString)(data.Message);
|
|
927
927
|
}
|
|
928
928
|
const exception = new models_0_1.AccessDeniedException({
|
|
929
929
|
$metadata: deserializeMetadata(parsedOutput),
|
|
930
930
|
...contents,
|
|
931
931
|
});
|
|
932
|
-
return smithy_client_1.decorateServiceException(exception, parsedOutput.body);
|
|
932
|
+
return (0, smithy_client_1.decorateServiceException)(exception, parsedOutput.body);
|
|
933
933
|
};
|
|
934
934
|
const deserializeAws_restJson1InternalServerExceptionResponse = async (parsedOutput, context) => {
|
|
935
935
|
const contents = {};
|
|
936
936
|
const data = parsedOutput.body;
|
|
937
937
|
if (data.message !== undefined && data.message !== null) {
|
|
938
|
-
contents.message = smithy_client_1.expectString(data.message);
|
|
938
|
+
contents.message = (0, smithy_client_1.expectString)(data.message);
|
|
939
939
|
}
|
|
940
940
|
const exception = new models_0_1.InternalServerException({
|
|
941
941
|
$metadata: deserializeMetadata(parsedOutput),
|
|
942
942
|
...contents,
|
|
943
943
|
});
|
|
944
|
-
return smithy_client_1.decorateServiceException(exception, parsedOutput.body);
|
|
944
|
+
return (0, smithy_client_1.decorateServiceException)(exception, parsedOutput.body);
|
|
945
945
|
};
|
|
946
946
|
const deserializeAws_restJson1ResourceNotFoundExceptionResponse = async (parsedOutput, context) => {
|
|
947
947
|
const contents = {};
|
|
948
948
|
const data = parsedOutput.body;
|
|
949
949
|
if (data.message !== undefined && data.message !== null) {
|
|
950
|
-
contents.message = smithy_client_1.expectString(data.message);
|
|
950
|
+
contents.message = (0, smithy_client_1.expectString)(data.message);
|
|
951
951
|
}
|
|
952
952
|
const exception = new models_0_1.ResourceNotFoundException({
|
|
953
953
|
$metadata: deserializeMetadata(parsedOutput),
|
|
954
954
|
...contents,
|
|
955
955
|
});
|
|
956
|
-
return smithy_client_1.decorateServiceException(exception, parsedOutput.body);
|
|
956
|
+
return (0, smithy_client_1.decorateServiceException)(exception, parsedOutput.body);
|
|
957
957
|
};
|
|
958
958
|
const deserializeAws_restJson1ValidationExceptionResponse = async (parsedOutput, context) => {
|
|
959
959
|
const contents = {};
|
|
960
960
|
const data = parsedOutput.body;
|
|
961
961
|
if (data.message !== undefined && data.message !== null) {
|
|
962
|
-
contents.message = smithy_client_1.expectString(data.message);
|
|
962
|
+
contents.message = (0, smithy_client_1.expectString)(data.message);
|
|
963
963
|
}
|
|
964
964
|
const exception = new models_0_1.ValidationException({
|
|
965
965
|
$metadata: deserializeMetadata(parsedOutput),
|
|
966
966
|
...contents,
|
|
967
967
|
});
|
|
968
|
-
return smithy_client_1.decorateServiceException(exception, parsedOutput.body);
|
|
968
|
+
return (0, smithy_client_1.decorateServiceException)(exception, parsedOutput.body);
|
|
969
969
|
};
|
|
970
970
|
const serializeAws_restJson1AirflowConfigurationOptions = (input, context) => {
|
|
971
971
|
return Object.entries(input).reduce((acc, [key, value]) => {
|
|
@@ -1040,7 +1040,7 @@ const serializeAws_restJson1MetricDatum = (input, context) => {
|
|
|
1040
1040
|
...(input.Timestamp !== undefined &&
|
|
1041
1041
|
input.Timestamp !== null && { Timestamp: Math.round(input.Timestamp.getTime() / 1000) }),
|
|
1042
1042
|
...(input.Unit !== undefined && input.Unit !== null && { Unit: input.Unit }),
|
|
1043
|
-
...(input.Value !== undefined && input.Value !== null && { Value: smithy_client_1.serializeFloat(input.Value) }),
|
|
1043
|
+
...(input.Value !== undefined && input.Value !== null && { Value: (0, smithy_client_1.serializeFloat)(input.Value) }),
|
|
1044
1044
|
};
|
|
1045
1045
|
};
|
|
1046
1046
|
const serializeAws_restJson1ModuleLoggingConfigurationInput = (input, context) => {
|
|
@@ -1071,10 +1071,10 @@ const serializeAws_restJson1SecurityGroupList = (input, context) => {
|
|
|
1071
1071
|
};
|
|
1072
1072
|
const serializeAws_restJson1StatisticSet = (input, context) => {
|
|
1073
1073
|
return {
|
|
1074
|
-
...(input.Maximum !== undefined && input.Maximum !== null && { Maximum: smithy_client_1.serializeFloat(input.Maximum) }),
|
|
1075
|
-
...(input.Minimum !== undefined && input.Minimum !== null && { Minimum: smithy_client_1.serializeFloat(input.Minimum) }),
|
|
1074
|
+
...(input.Maximum !== undefined && input.Maximum !== null && { Maximum: (0, smithy_client_1.serializeFloat)(input.Maximum) }),
|
|
1075
|
+
...(input.Minimum !== undefined && input.Minimum !== null && { Minimum: (0, smithy_client_1.serializeFloat)(input.Minimum) }),
|
|
1076
1076
|
...(input.SampleCount !== undefined && input.SampleCount !== null && { SampleCount: input.SampleCount }),
|
|
1077
|
-
...(input.Sum !== undefined && input.Sum !== null && { Sum: smithy_client_1.serializeFloat(input.Sum) }),
|
|
1077
|
+
...(input.Sum !== undefined && input.Sum !== null && { Sum: (0, smithy_client_1.serializeFloat)(input.Sum) }),
|
|
1078
1078
|
};
|
|
1079
1079
|
};
|
|
1080
1080
|
const serializeAws_restJson1SubnetList = (input, context) => {
|
|
@@ -1113,7 +1113,7 @@ const deserializeAws_restJson1AirflowConfigurationOptions = (output, context) =>
|
|
|
1113
1113
|
}
|
|
1114
1114
|
return {
|
|
1115
1115
|
...acc,
|
|
1116
|
-
[key]: smithy_client_1.expectString(value),
|
|
1116
|
+
[key]: (0, smithy_client_1.expectString)(value),
|
|
1117
1117
|
};
|
|
1118
1118
|
}, {});
|
|
1119
1119
|
};
|
|
@@ -1122,41 +1122,41 @@ const deserializeAws_restJson1Environment = (output, context) => {
|
|
|
1122
1122
|
AirflowConfigurationOptions: output.AirflowConfigurationOptions !== undefined && output.AirflowConfigurationOptions !== null
|
|
1123
1123
|
? deserializeAws_restJson1AirflowConfigurationOptions(output.AirflowConfigurationOptions, context)
|
|
1124
1124
|
: undefined,
|
|
1125
|
-
AirflowVersion: smithy_client_1.expectString(output.AirflowVersion),
|
|
1126
|
-
Arn: smithy_client_1.expectString(output.Arn),
|
|
1125
|
+
AirflowVersion: (0, smithy_client_1.expectString)(output.AirflowVersion),
|
|
1126
|
+
Arn: (0, smithy_client_1.expectString)(output.Arn),
|
|
1127
1127
|
CreatedAt: output.CreatedAt !== undefined && output.CreatedAt !== null
|
|
1128
|
-
? smithy_client_1.expectNonNull(smithy_client_1.parseEpochTimestamp(smithy_client_1.expectNumber(output.CreatedAt)))
|
|
1128
|
+
? (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(output.CreatedAt)))
|
|
1129
1129
|
: undefined,
|
|
1130
|
-
DagS3Path: smithy_client_1.expectString(output.DagS3Path),
|
|
1131
|
-
EnvironmentClass: smithy_client_1.expectString(output.EnvironmentClass),
|
|
1132
|
-
ExecutionRoleArn: smithy_client_1.expectString(output.ExecutionRoleArn),
|
|
1133
|
-
KmsKey: smithy_client_1.expectString(output.KmsKey),
|
|
1130
|
+
DagS3Path: (0, smithy_client_1.expectString)(output.DagS3Path),
|
|
1131
|
+
EnvironmentClass: (0, smithy_client_1.expectString)(output.EnvironmentClass),
|
|
1132
|
+
ExecutionRoleArn: (0, smithy_client_1.expectString)(output.ExecutionRoleArn),
|
|
1133
|
+
KmsKey: (0, smithy_client_1.expectString)(output.KmsKey),
|
|
1134
1134
|
LastUpdate: output.LastUpdate !== undefined && output.LastUpdate !== null
|
|
1135
1135
|
? deserializeAws_restJson1LastUpdate(output.LastUpdate, context)
|
|
1136
1136
|
: undefined,
|
|
1137
1137
|
LoggingConfiguration: output.LoggingConfiguration !== undefined && output.LoggingConfiguration !== null
|
|
1138
1138
|
? deserializeAws_restJson1LoggingConfiguration(output.LoggingConfiguration, context)
|
|
1139
1139
|
: undefined,
|
|
1140
|
-
MaxWorkers: smithy_client_1.expectInt32(output.MaxWorkers),
|
|
1141
|
-
MinWorkers: smithy_client_1.expectInt32(output.MinWorkers),
|
|
1142
|
-
Name: smithy_client_1.expectString(output.Name),
|
|
1140
|
+
MaxWorkers: (0, smithy_client_1.expectInt32)(output.MaxWorkers),
|
|
1141
|
+
MinWorkers: (0, smithy_client_1.expectInt32)(output.MinWorkers),
|
|
1142
|
+
Name: (0, smithy_client_1.expectString)(output.Name),
|
|
1143
1143
|
NetworkConfiguration: output.NetworkConfiguration !== undefined && output.NetworkConfiguration !== null
|
|
1144
1144
|
? deserializeAws_restJson1NetworkConfiguration(output.NetworkConfiguration, context)
|
|
1145
1145
|
: undefined,
|
|
1146
|
-
PluginsS3ObjectVersion: smithy_client_1.expectString(output.PluginsS3ObjectVersion),
|
|
1147
|
-
PluginsS3Path: smithy_client_1.expectString(output.PluginsS3Path),
|
|
1148
|
-
RequirementsS3ObjectVersion: smithy_client_1.expectString(output.RequirementsS3ObjectVersion),
|
|
1149
|
-
RequirementsS3Path: smithy_client_1.expectString(output.RequirementsS3Path),
|
|
1150
|
-
Schedulers: smithy_client_1.expectInt32(output.Schedulers),
|
|
1151
|
-
ServiceRoleArn: smithy_client_1.expectString(output.ServiceRoleArn),
|
|
1152
|
-
SourceBucketArn: smithy_client_1.expectString(output.SourceBucketArn),
|
|
1153
|
-
Status: smithy_client_1.expectString(output.Status),
|
|
1146
|
+
PluginsS3ObjectVersion: (0, smithy_client_1.expectString)(output.PluginsS3ObjectVersion),
|
|
1147
|
+
PluginsS3Path: (0, smithy_client_1.expectString)(output.PluginsS3Path),
|
|
1148
|
+
RequirementsS3ObjectVersion: (0, smithy_client_1.expectString)(output.RequirementsS3ObjectVersion),
|
|
1149
|
+
RequirementsS3Path: (0, smithy_client_1.expectString)(output.RequirementsS3Path),
|
|
1150
|
+
Schedulers: (0, smithy_client_1.expectInt32)(output.Schedulers),
|
|
1151
|
+
ServiceRoleArn: (0, smithy_client_1.expectString)(output.ServiceRoleArn),
|
|
1152
|
+
SourceBucketArn: (0, smithy_client_1.expectString)(output.SourceBucketArn),
|
|
1153
|
+
Status: (0, smithy_client_1.expectString)(output.Status),
|
|
1154
1154
|
Tags: output.Tags !== undefined && output.Tags !== null
|
|
1155
1155
|
? deserializeAws_restJson1TagMap(output.Tags, context)
|
|
1156
1156
|
: undefined,
|
|
1157
|
-
WebserverAccessMode: smithy_client_1.expectString(output.WebserverAccessMode),
|
|
1158
|
-
WebserverUrl: smithy_client_1.expectString(output.WebserverUrl),
|
|
1159
|
-
WeeklyMaintenanceWindowStart: smithy_client_1.expectString(output.WeeklyMaintenanceWindowStart),
|
|
1157
|
+
WebserverAccessMode: (0, smithy_client_1.expectString)(output.WebserverAccessMode),
|
|
1158
|
+
WebserverUrl: (0, smithy_client_1.expectString)(output.WebserverUrl),
|
|
1159
|
+
WeeklyMaintenanceWindowStart: (0, smithy_client_1.expectString)(output.WeeklyMaintenanceWindowStart),
|
|
1160
1160
|
};
|
|
1161
1161
|
};
|
|
1162
1162
|
const deserializeAws_restJson1EnvironmentList = (output, context) => {
|
|
@@ -1166,20 +1166,20 @@ const deserializeAws_restJson1EnvironmentList = (output, context) => {
|
|
|
1166
1166
|
if (entry === null) {
|
|
1167
1167
|
return null;
|
|
1168
1168
|
}
|
|
1169
|
-
return smithy_client_1.expectString(entry);
|
|
1169
|
+
return (0, smithy_client_1.expectString)(entry);
|
|
1170
1170
|
});
|
|
1171
1171
|
return retVal;
|
|
1172
1172
|
};
|
|
1173
1173
|
const deserializeAws_restJson1LastUpdate = (output, context) => {
|
|
1174
1174
|
return {
|
|
1175
1175
|
CreatedAt: output.CreatedAt !== undefined && output.CreatedAt !== null
|
|
1176
|
-
? smithy_client_1.expectNonNull(smithy_client_1.parseEpochTimestamp(smithy_client_1.expectNumber(output.CreatedAt)))
|
|
1176
|
+
? (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(output.CreatedAt)))
|
|
1177
1177
|
: undefined,
|
|
1178
1178
|
Error: output.Error !== undefined && output.Error !== null
|
|
1179
1179
|
? deserializeAws_restJson1UpdateError(output.Error, context)
|
|
1180
1180
|
: undefined,
|
|
1181
|
-
Source: smithy_client_1.expectString(output.Source),
|
|
1182
|
-
Status: smithy_client_1.expectString(output.Status),
|
|
1181
|
+
Source: (0, smithy_client_1.expectString)(output.Source),
|
|
1182
|
+
Status: (0, smithy_client_1.expectString)(output.Status),
|
|
1183
1183
|
};
|
|
1184
1184
|
};
|
|
1185
1185
|
const deserializeAws_restJson1LoggingConfiguration = (output, context) => {
|
|
@@ -1203,9 +1203,9 @@ const deserializeAws_restJson1LoggingConfiguration = (output, context) => {
|
|
|
1203
1203
|
};
|
|
1204
1204
|
const deserializeAws_restJson1ModuleLoggingConfiguration = (output, context) => {
|
|
1205
1205
|
return {
|
|
1206
|
-
CloudWatchLogGroupArn: smithy_client_1.expectString(output.CloudWatchLogGroupArn),
|
|
1207
|
-
Enabled: smithy_client_1.expectBoolean(output.Enabled),
|
|
1208
|
-
LogLevel: smithy_client_1.expectString(output.LogLevel),
|
|
1206
|
+
CloudWatchLogGroupArn: (0, smithy_client_1.expectString)(output.CloudWatchLogGroupArn),
|
|
1207
|
+
Enabled: (0, smithy_client_1.expectBoolean)(output.Enabled),
|
|
1208
|
+
LogLevel: (0, smithy_client_1.expectString)(output.LogLevel),
|
|
1209
1209
|
};
|
|
1210
1210
|
};
|
|
1211
1211
|
const deserializeAws_restJson1NetworkConfiguration = (output, context) => {
|
|
@@ -1225,7 +1225,7 @@ const deserializeAws_restJson1SecurityGroupList = (output, context) => {
|
|
|
1225
1225
|
if (entry === null) {
|
|
1226
1226
|
return null;
|
|
1227
1227
|
}
|
|
1228
|
-
return smithy_client_1.expectString(entry);
|
|
1228
|
+
return (0, smithy_client_1.expectString)(entry);
|
|
1229
1229
|
});
|
|
1230
1230
|
return retVal;
|
|
1231
1231
|
};
|
|
@@ -1236,7 +1236,7 @@ const deserializeAws_restJson1SubnetList = (output, context) => {
|
|
|
1236
1236
|
if (entry === null) {
|
|
1237
1237
|
return null;
|
|
1238
1238
|
}
|
|
1239
|
-
return smithy_client_1.expectString(entry);
|
|
1239
|
+
return (0, smithy_client_1.expectString)(entry);
|
|
1240
1240
|
});
|
|
1241
1241
|
return retVal;
|
|
1242
1242
|
};
|
|
@@ -1247,14 +1247,14 @@ const deserializeAws_restJson1TagMap = (output, context) => {
|
|
|
1247
1247
|
}
|
|
1248
1248
|
return {
|
|
1249
1249
|
...acc,
|
|
1250
|
-
[key]: smithy_client_1.expectString(value),
|
|
1250
|
+
[key]: (0, smithy_client_1.expectString)(value),
|
|
1251
1251
|
};
|
|
1252
1252
|
}, {});
|
|
1253
1253
|
};
|
|
1254
1254
|
const deserializeAws_restJson1UpdateError = (output, context) => {
|
|
1255
1255
|
return {
|
|
1256
|
-
ErrorCode: smithy_client_1.expectString(output.ErrorCode),
|
|
1257
|
-
ErrorMessage: smithy_client_1.expectString(output.ErrorMessage),
|
|
1256
|
+
ErrorCode: (0, smithy_client_1.expectString)(output.ErrorCode),
|
|
1257
|
+
ErrorMessage: (0, smithy_client_1.expectString)(output.ErrorMessage),
|
|
1258
1258
|
};
|
|
1259
1259
|
};
|
|
1260
1260
|
const deserializeMetadata = (output) => {
|
|
@@ -17,9 +17,9 @@ const smithy_client_1 = require("@aws-sdk/smithy-client");
|
|
|
17
17
|
const util_defaults_mode_browser_1 = require("@aws-sdk/util-defaults-mode-browser");
|
|
18
18
|
const getRuntimeConfig = (config) => {
|
|
19
19
|
var _a, _b, _c, _d, _e, _f, _g, _h, _j, _k, _l, _m, _o, _p, _q;
|
|
20
|
-
const defaultsMode = util_defaults_mode_browser_1.resolveDefaultsModeConfig(config);
|
|
20
|
+
const defaultsMode = (0, util_defaults_mode_browser_1.resolveDefaultsModeConfig)(config);
|
|
21
21
|
const defaultConfigProvider = () => defaultsMode().then(smithy_client_1.loadConfigsForDefaultMode);
|
|
22
|
-
const clientSharedValues = runtimeConfig_shared_1.getRuntimeConfig(config);
|
|
22
|
+
const clientSharedValues = (0, runtimeConfig_shared_1.getRuntimeConfig)(config);
|
|
23
23
|
return {
|
|
24
24
|
...clientSharedValues,
|
|
25
25
|
...config,
|
|
@@ -29,9 +29,9 @@ const getRuntimeConfig = (config) => {
|
|
|
29
29
|
base64Encoder: (_b = config === null || config === void 0 ? void 0 : config.base64Encoder) !== null && _b !== void 0 ? _b : util_base64_browser_1.toBase64,
|
|
30
30
|
bodyLengthChecker: (_c = config === null || config === void 0 ? void 0 : config.bodyLengthChecker) !== null && _c !== void 0 ? _c : util_body_length_browser_1.calculateBodyLength,
|
|
31
31
|
credentialDefaultProvider: (_d = config === null || config === void 0 ? void 0 : config.credentialDefaultProvider) !== null && _d !== void 0 ? _d : ((_) => () => Promise.reject(new Error("Credential is missing"))),
|
|
32
|
-
defaultUserAgentProvider: (_e = config === null || config === void 0 ? void 0 : config.defaultUserAgentProvider) !== null && _e !== void 0 ? _e : util_user_agent_browser_1.defaultUserAgent({ serviceId: clientSharedValues.serviceId, clientVersion: package_json_1.default.version }),
|
|
32
|
+
defaultUserAgentProvider: (_e = config === null || config === void 0 ? void 0 : config.defaultUserAgentProvider) !== null && _e !== void 0 ? _e : (0, util_user_agent_browser_1.defaultUserAgent)({ serviceId: clientSharedValues.serviceId, clientVersion: package_json_1.default.version }),
|
|
33
33
|
maxAttempts: (_f = config === null || config === void 0 ? void 0 : config.maxAttempts) !== null && _f !== void 0 ? _f : middleware_retry_1.DEFAULT_MAX_ATTEMPTS,
|
|
34
|
-
region: (_g = config === null || config === void 0 ? void 0 : config.region) !== null && _g !== void 0 ? _g : invalid_dependency_1.invalidProvider("Region is missing"),
|
|
34
|
+
region: (_g = config === null || config === void 0 ? void 0 : config.region) !== null && _g !== void 0 ? _g : (0, invalid_dependency_1.invalidProvider)("Region is missing"),
|
|
35
35
|
requestHandler: (_h = config === null || config === void 0 ? void 0 : config.requestHandler) !== null && _h !== void 0 ? _h : new fetch_http_handler_1.FetchHttpHandler(defaultConfigProvider),
|
|
36
36
|
retryMode: (_j = config === null || config === void 0 ? void 0 : config.retryMode) !== null && _j !== void 0 ? _j : (async () => (await defaultConfigProvider()).retryMode || middleware_retry_1.DEFAULT_RETRY_MODE),
|
|
37
37
|
sha256: (_k = config === null || config === void 0 ? void 0 : config.sha256) !== null && _k !== void 0 ? _k : sha256_browser_1.Sha256,
|