@aws-sdk/client-rum 3.53.0 → 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 +24 -0
- package/dist-cjs/RUMClient.js +13 -13
- package/dist-cjs/commands/CreateAppMonitorCommand.js +3 -3
- package/dist-cjs/commands/DeleteAppMonitorCommand.js +3 -3
- package/dist-cjs/commands/GetAppMonitorCommand.js +3 -3
- package/dist-cjs/commands/GetAppMonitorDataCommand.js +3 -3
- package/dist-cjs/commands/ListAppMonitorsCommand.js +3 -3
- package/dist-cjs/commands/ListTagsForResourceCommand.js +3 -3
- package/dist-cjs/commands/PutRumEventsCommand.js +3 -3
- package/dist-cjs/commands/TagResourceCommand.js +3 -3
- package/dist-cjs/commands/UntagResourceCommand.js +3 -3
- package/dist-cjs/commands/UpdateAppMonitorCommand.js +3 -3
- package/dist-cjs/endpoints.js +1 -1
- package/dist-cjs/protocols/Aws_restJson1.js +74 -74
- 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/RUM.js +10 -10
- package/dist-es/pagination/GetAppMonitorDataPaginator.js +4 -4
- package/dist-es/pagination/ListAppMonitorsPaginator.js +4 -4
- package/dist-es/protocols/Aws_restJson1.js +10 -10
- package/dist-types/RUMClient.d.ts +2 -2
- package/dist-types/runtimeConfig.browser.d.ts +1 -1
- package/dist-types/runtimeConfig.d.ts +1 -1
- package/dist-types/runtimeConfig.native.d.ts +3 -3
- package/dist-types/ts3.4/RUMClient.d.ts +2 -2
- package/dist-types/ts3.4/runtimeConfig.browser.d.ts +1 -1
- package/dist-types/ts3.4/runtimeConfig.d.ts +1 -1
- package/dist-types/ts3.4/runtimeConfig.native.d.ts +3 -3
- package/package.json +34 -34
|
@@ -42,7 +42,7 @@ const serializeAws_restJson1DeleteAppMonitorCommand = async (input, context) =>
|
|
|
42
42
|
if (labelValue.length <= 0) {
|
|
43
43
|
throw new Error("Empty value provided for input HTTP label: Name.");
|
|
44
44
|
}
|
|
45
|
-
resolvedPath = resolvedPath.replace("{Name}", smithy_client_1.extendedEncodeURIComponent(labelValue));
|
|
45
|
+
resolvedPath = resolvedPath.replace("{Name}", (0, smithy_client_1.extendedEncodeURIComponent)(labelValue));
|
|
46
46
|
}
|
|
47
47
|
else {
|
|
48
48
|
throw new Error("No value provided for input HTTP label: Name.");
|
|
@@ -68,7 +68,7 @@ const serializeAws_restJson1GetAppMonitorCommand = async (input, context) => {
|
|
|
68
68
|
if (labelValue.length <= 0) {
|
|
69
69
|
throw new Error("Empty value provided for input HTTP label: Name.");
|
|
70
70
|
}
|
|
71
|
-
resolvedPath = resolvedPath.replace("{Name}", smithy_client_1.extendedEncodeURIComponent(labelValue));
|
|
71
|
+
resolvedPath = resolvedPath.replace("{Name}", (0, smithy_client_1.extendedEncodeURIComponent)(labelValue));
|
|
72
72
|
}
|
|
73
73
|
else {
|
|
74
74
|
throw new Error("No value provided for input HTTP label: Name.");
|
|
@@ -96,7 +96,7 @@ const serializeAws_restJson1GetAppMonitorDataCommand = async (input, context) =>
|
|
|
96
96
|
if (labelValue.length <= 0) {
|
|
97
97
|
throw new Error("Empty value provided for input HTTP label: Name.");
|
|
98
98
|
}
|
|
99
|
-
resolvedPath = resolvedPath.replace("{Name}", smithy_client_1.extendedEncodeURIComponent(labelValue));
|
|
99
|
+
resolvedPath = resolvedPath.replace("{Name}", (0, smithy_client_1.extendedEncodeURIComponent)(labelValue));
|
|
100
100
|
}
|
|
101
101
|
else {
|
|
102
102
|
throw new Error("No value provided for input HTTP label: Name.");
|
|
@@ -151,7 +151,7 @@ const serializeAws_restJson1ListTagsForResourceCommand = async (input, context)
|
|
|
151
151
|
if (labelValue.length <= 0) {
|
|
152
152
|
throw new Error("Empty value provided for input HTTP label: ResourceArn.");
|
|
153
153
|
}
|
|
154
|
-
resolvedPath = resolvedPath.replace("{ResourceArn}", smithy_client_1.extendedEncodeURIComponent(labelValue));
|
|
154
|
+
resolvedPath = resolvedPath.replace("{ResourceArn}", (0, smithy_client_1.extendedEncodeURIComponent)(labelValue));
|
|
155
155
|
}
|
|
156
156
|
else {
|
|
157
157
|
throw new Error("No value provided for input HTTP label: ResourceArn.");
|
|
@@ -179,7 +179,7 @@ const serializeAws_restJson1PutRumEventsCommand = async (input, context) => {
|
|
|
179
179
|
if (labelValue.length <= 0) {
|
|
180
180
|
throw new Error("Empty value provided for input HTTP label: Id.");
|
|
181
181
|
}
|
|
182
|
-
resolvedPath = resolvedPath.replace("{Id}", smithy_client_1.extendedEncodeURIComponent(labelValue));
|
|
182
|
+
resolvedPath = resolvedPath.replace("{Id}", (0, smithy_client_1.extendedEncodeURIComponent)(labelValue));
|
|
183
183
|
}
|
|
184
184
|
else {
|
|
185
185
|
throw new Error("No value provided for input HTTP label: Id.");
|
|
@@ -199,7 +199,7 @@ const serializeAws_restJson1PutRumEventsCommand = async (input, context) => {
|
|
|
199
199
|
let { hostname: resolvedHostname } = await context.endpoint();
|
|
200
200
|
if (context.disableHostPrefix !== true) {
|
|
201
201
|
resolvedHostname = "dataplane." + resolvedHostname;
|
|
202
|
-
if (!protocol_http_1.isValidHostname(resolvedHostname)) {
|
|
202
|
+
if (!(0, protocol_http_1.isValidHostname)(resolvedHostname)) {
|
|
203
203
|
throw new Error("ValidationError: prefixed hostname must be hostname compatible.");
|
|
204
204
|
}
|
|
205
205
|
}
|
|
@@ -225,7 +225,7 @@ const serializeAws_restJson1TagResourceCommand = async (input, context) => {
|
|
|
225
225
|
if (labelValue.length <= 0) {
|
|
226
226
|
throw new Error("Empty value provided for input HTTP label: ResourceArn.");
|
|
227
227
|
}
|
|
228
|
-
resolvedPath = resolvedPath.replace("{ResourceArn}", smithy_client_1.extendedEncodeURIComponent(labelValue));
|
|
228
|
+
resolvedPath = resolvedPath.replace("{ResourceArn}", (0, smithy_client_1.extendedEncodeURIComponent)(labelValue));
|
|
229
229
|
}
|
|
230
230
|
else {
|
|
231
231
|
throw new Error("No value provided for input HTTP label: ResourceArn.");
|
|
@@ -254,7 +254,7 @@ const serializeAws_restJson1UntagResourceCommand = async (input, context) => {
|
|
|
254
254
|
if (labelValue.length <= 0) {
|
|
255
255
|
throw new Error("Empty value provided for input HTTP label: ResourceArn.");
|
|
256
256
|
}
|
|
257
|
-
resolvedPath = resolvedPath.replace("{ResourceArn}", smithy_client_1.extendedEncodeURIComponent(labelValue));
|
|
257
|
+
resolvedPath = resolvedPath.replace("{ResourceArn}", (0, smithy_client_1.extendedEncodeURIComponent)(labelValue));
|
|
258
258
|
}
|
|
259
259
|
else {
|
|
260
260
|
throw new Error("No value provided for input HTTP label: ResourceArn.");
|
|
@@ -286,7 +286,7 @@ const serializeAws_restJson1UpdateAppMonitorCommand = async (input, context) =>
|
|
|
286
286
|
if (labelValue.length <= 0) {
|
|
287
287
|
throw new Error("Empty value provided for input HTTP label: Name.");
|
|
288
288
|
}
|
|
289
|
-
resolvedPath = resolvedPath.replace("{Name}", smithy_client_1.extendedEncodeURIComponent(labelValue));
|
|
289
|
+
resolvedPath = resolvedPath.replace("{Name}", (0, smithy_client_1.extendedEncodeURIComponent)(labelValue));
|
|
290
290
|
}
|
|
291
291
|
else {
|
|
292
292
|
throw new Error("No value provided for input HTTP label: Name.");
|
|
@@ -319,9 +319,9 @@ const deserializeAws_restJson1CreateAppMonitorCommand = async (output, context)
|
|
|
319
319
|
$metadata: deserializeMetadata(output),
|
|
320
320
|
Id: undefined,
|
|
321
321
|
};
|
|
322
|
-
const data = smithy_client_1.expectNonNull(smithy_client_1.expectObject(await parseBody(output.body, context)), "body");
|
|
322
|
+
const data = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.expectObject)(await parseBody(output.body, context)), "body");
|
|
323
323
|
if (data.Id !== undefined && data.Id !== null) {
|
|
324
|
-
contents.Id = smithy_client_1.expectString(data.Id);
|
|
324
|
+
contents.Id = (0, smithy_client_1.expectString)(data.Id);
|
|
325
325
|
}
|
|
326
326
|
return Promise.resolve(contents);
|
|
327
327
|
};
|
|
@@ -360,7 +360,7 @@ const deserializeAws_restJson1CreateAppMonitorCommandError = async (output, cont
|
|
|
360
360
|
$fault: "client",
|
|
361
361
|
$metadata: deserializeMetadata(output),
|
|
362
362
|
});
|
|
363
|
-
throw smithy_client_1.decorateServiceException(response, parsedBody);
|
|
363
|
+
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
364
364
|
}
|
|
365
365
|
};
|
|
366
366
|
const deserializeAws_restJson1DeleteAppMonitorCommand = async (output, context) => {
|
|
@@ -408,7 +408,7 @@ const deserializeAws_restJson1DeleteAppMonitorCommandError = async (output, cont
|
|
|
408
408
|
$fault: "client",
|
|
409
409
|
$metadata: deserializeMetadata(output),
|
|
410
410
|
});
|
|
411
|
-
throw smithy_client_1.decorateServiceException(response, parsedBody);
|
|
411
|
+
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
412
412
|
}
|
|
413
413
|
};
|
|
414
414
|
const deserializeAws_restJson1GetAppMonitorCommand = async (output, context) => {
|
|
@@ -419,7 +419,7 @@ const deserializeAws_restJson1GetAppMonitorCommand = async (output, context) =>
|
|
|
419
419
|
$metadata: deserializeMetadata(output),
|
|
420
420
|
AppMonitor: undefined,
|
|
421
421
|
};
|
|
422
|
-
const data = smithy_client_1.expectNonNull(smithy_client_1.expectObject(await parseBody(output.body, context)), "body");
|
|
422
|
+
const data = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.expectObject)(await parseBody(output.body, context)), "body");
|
|
423
423
|
if (data.AppMonitor !== undefined && data.AppMonitor !== null) {
|
|
424
424
|
contents.AppMonitor = deserializeAws_restJson1AppMonitor(data.AppMonitor, context);
|
|
425
425
|
}
|
|
@@ -457,7 +457,7 @@ const deserializeAws_restJson1GetAppMonitorCommandError = async (output, context
|
|
|
457
457
|
$fault: "client",
|
|
458
458
|
$metadata: deserializeMetadata(output),
|
|
459
459
|
});
|
|
460
|
-
throw smithy_client_1.decorateServiceException(response, parsedBody);
|
|
460
|
+
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
461
461
|
}
|
|
462
462
|
};
|
|
463
463
|
const deserializeAws_restJson1GetAppMonitorDataCommand = async (output, context) => {
|
|
@@ -469,12 +469,12 @@ const deserializeAws_restJson1GetAppMonitorDataCommand = async (output, context)
|
|
|
469
469
|
Events: undefined,
|
|
470
470
|
NextToken: undefined,
|
|
471
471
|
};
|
|
472
|
-
const data = smithy_client_1.expectNonNull(smithy_client_1.expectObject(await parseBody(output.body, context)), "body");
|
|
472
|
+
const data = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.expectObject)(await parseBody(output.body, context)), "body");
|
|
473
473
|
if (data.Events !== undefined && data.Events !== null) {
|
|
474
474
|
contents.Events = deserializeAws_restJson1EventDataList(data.Events, context);
|
|
475
475
|
}
|
|
476
476
|
if (data.NextToken !== undefined && data.NextToken !== null) {
|
|
477
|
-
contents.NextToken = smithy_client_1.expectString(data.NextToken);
|
|
477
|
+
contents.NextToken = (0, smithy_client_1.expectString)(data.NextToken);
|
|
478
478
|
}
|
|
479
479
|
return Promise.resolve(contents);
|
|
480
480
|
};
|
|
@@ -510,7 +510,7 @@ const deserializeAws_restJson1GetAppMonitorDataCommandError = async (output, con
|
|
|
510
510
|
$fault: "client",
|
|
511
511
|
$metadata: deserializeMetadata(output),
|
|
512
512
|
});
|
|
513
|
-
throw smithy_client_1.decorateServiceException(response, parsedBody);
|
|
513
|
+
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
514
514
|
}
|
|
515
515
|
};
|
|
516
516
|
const deserializeAws_restJson1ListAppMonitorsCommand = async (output, context) => {
|
|
@@ -522,12 +522,12 @@ const deserializeAws_restJson1ListAppMonitorsCommand = async (output, context) =
|
|
|
522
522
|
AppMonitorSummaries: undefined,
|
|
523
523
|
NextToken: undefined,
|
|
524
524
|
};
|
|
525
|
-
const data = smithy_client_1.expectNonNull(smithy_client_1.expectObject(await parseBody(output.body, context)), "body");
|
|
525
|
+
const data = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.expectObject)(await parseBody(output.body, context)), "body");
|
|
526
526
|
if (data.AppMonitorSummaries !== undefined && data.AppMonitorSummaries !== null) {
|
|
527
527
|
contents.AppMonitorSummaries = deserializeAws_restJson1AppMonitorSummaryList(data.AppMonitorSummaries, context);
|
|
528
528
|
}
|
|
529
529
|
if (data.NextToken !== undefined && data.NextToken !== null) {
|
|
530
|
-
contents.NextToken = smithy_client_1.expectString(data.NextToken);
|
|
530
|
+
contents.NextToken = (0, smithy_client_1.expectString)(data.NextToken);
|
|
531
531
|
}
|
|
532
532
|
return Promise.resolve(contents);
|
|
533
533
|
};
|
|
@@ -560,7 +560,7 @@ const deserializeAws_restJson1ListAppMonitorsCommandError = async (output, conte
|
|
|
560
560
|
$fault: "client",
|
|
561
561
|
$metadata: deserializeMetadata(output),
|
|
562
562
|
});
|
|
563
|
-
throw smithy_client_1.decorateServiceException(response, parsedBody);
|
|
563
|
+
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
564
564
|
}
|
|
565
565
|
};
|
|
566
566
|
const deserializeAws_restJson1ListTagsForResourceCommand = async (output, context) => {
|
|
@@ -572,9 +572,9 @@ const deserializeAws_restJson1ListTagsForResourceCommand = async (output, contex
|
|
|
572
572
|
ResourceArn: undefined,
|
|
573
573
|
Tags: undefined,
|
|
574
574
|
};
|
|
575
|
-
const data = smithy_client_1.expectNonNull(smithy_client_1.expectObject(await parseBody(output.body, context)), "body");
|
|
575
|
+
const data = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.expectObject)(await parseBody(output.body, context)), "body");
|
|
576
576
|
if (data.ResourceArn !== undefined && data.ResourceArn !== null) {
|
|
577
|
-
contents.ResourceArn = smithy_client_1.expectString(data.ResourceArn);
|
|
577
|
+
contents.ResourceArn = (0, smithy_client_1.expectString)(data.ResourceArn);
|
|
578
578
|
}
|
|
579
579
|
if (data.Tags !== undefined && data.Tags !== null) {
|
|
580
580
|
contents.Tags = deserializeAws_restJson1TagMap(data.Tags, context);
|
|
@@ -607,7 +607,7 @@ const deserializeAws_restJson1ListTagsForResourceCommandError = async (output, c
|
|
|
607
607
|
$fault: "client",
|
|
608
608
|
$metadata: deserializeMetadata(output),
|
|
609
609
|
});
|
|
610
|
-
throw smithy_client_1.decorateServiceException(response, parsedBody);
|
|
610
|
+
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
611
611
|
}
|
|
612
612
|
};
|
|
613
613
|
const deserializeAws_restJson1PutRumEventsCommand = async (output, context) => {
|
|
@@ -652,7 +652,7 @@ const deserializeAws_restJson1PutRumEventsCommandError = async (output, context)
|
|
|
652
652
|
$fault: "client",
|
|
653
653
|
$metadata: deserializeMetadata(output),
|
|
654
654
|
});
|
|
655
|
-
throw smithy_client_1.decorateServiceException(response, parsedBody);
|
|
655
|
+
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
656
656
|
}
|
|
657
657
|
};
|
|
658
658
|
const deserializeAws_restJson1TagResourceCommand = async (output, context) => {
|
|
@@ -691,7 +691,7 @@ const deserializeAws_restJson1TagResourceCommandError = async (output, context)
|
|
|
691
691
|
$fault: "client",
|
|
692
692
|
$metadata: deserializeMetadata(output),
|
|
693
693
|
});
|
|
694
|
-
throw smithy_client_1.decorateServiceException(response, parsedBody);
|
|
694
|
+
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
695
695
|
}
|
|
696
696
|
};
|
|
697
697
|
const deserializeAws_restJson1UntagResourceCommand = async (output, context) => {
|
|
@@ -730,7 +730,7 @@ const deserializeAws_restJson1UntagResourceCommandError = async (output, context
|
|
|
730
730
|
$fault: "client",
|
|
731
731
|
$metadata: deserializeMetadata(output),
|
|
732
732
|
});
|
|
733
|
-
throw smithy_client_1.decorateServiceException(response, parsedBody);
|
|
733
|
+
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
734
734
|
}
|
|
735
735
|
};
|
|
736
736
|
const deserializeAws_restJson1UpdateAppMonitorCommand = async (output, context) => {
|
|
@@ -778,116 +778,116 @@ const deserializeAws_restJson1UpdateAppMonitorCommandError = async (output, cont
|
|
|
778
778
|
$fault: "client",
|
|
779
779
|
$metadata: deserializeMetadata(output),
|
|
780
780
|
});
|
|
781
|
-
throw smithy_client_1.decorateServiceException(response, parsedBody);
|
|
781
|
+
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
782
782
|
}
|
|
783
783
|
};
|
|
784
784
|
const deserializeAws_restJson1AccessDeniedExceptionResponse = async (parsedOutput, context) => {
|
|
785
785
|
const contents = {};
|
|
786
786
|
const data = parsedOutput.body;
|
|
787
787
|
if (data.message !== undefined && data.message !== null) {
|
|
788
|
-
contents.message = smithy_client_1.expectString(data.message);
|
|
788
|
+
contents.message = (0, smithy_client_1.expectString)(data.message);
|
|
789
789
|
}
|
|
790
790
|
const exception = new models_0_1.AccessDeniedException({
|
|
791
791
|
$metadata: deserializeMetadata(parsedOutput),
|
|
792
792
|
...contents,
|
|
793
793
|
});
|
|
794
|
-
return smithy_client_1.decorateServiceException(exception, parsedOutput.body);
|
|
794
|
+
return (0, smithy_client_1.decorateServiceException)(exception, parsedOutput.body);
|
|
795
795
|
};
|
|
796
796
|
const deserializeAws_restJson1ConflictExceptionResponse = async (parsedOutput, context) => {
|
|
797
797
|
const contents = {};
|
|
798
798
|
const data = parsedOutput.body;
|
|
799
799
|
if (data.message !== undefined && data.message !== null) {
|
|
800
|
-
contents.message = smithy_client_1.expectString(data.message);
|
|
800
|
+
contents.message = (0, smithy_client_1.expectString)(data.message);
|
|
801
801
|
}
|
|
802
802
|
if (data.resourceName !== undefined && data.resourceName !== null) {
|
|
803
|
-
contents.resourceName = smithy_client_1.expectString(data.resourceName);
|
|
803
|
+
contents.resourceName = (0, smithy_client_1.expectString)(data.resourceName);
|
|
804
804
|
}
|
|
805
805
|
if (data.resourceType !== undefined && data.resourceType !== null) {
|
|
806
|
-
contents.resourceType = smithy_client_1.expectString(data.resourceType);
|
|
806
|
+
contents.resourceType = (0, smithy_client_1.expectString)(data.resourceType);
|
|
807
807
|
}
|
|
808
808
|
const exception = new models_0_1.ConflictException({
|
|
809
809
|
$metadata: deserializeMetadata(parsedOutput),
|
|
810
810
|
...contents,
|
|
811
811
|
});
|
|
812
|
-
return smithy_client_1.decorateServiceException(exception, parsedOutput.body);
|
|
812
|
+
return (0, smithy_client_1.decorateServiceException)(exception, parsedOutput.body);
|
|
813
813
|
};
|
|
814
814
|
const deserializeAws_restJson1InternalServerExceptionResponse = async (parsedOutput, context) => {
|
|
815
815
|
const contents = {};
|
|
816
816
|
if (parsedOutput.headers["retry-after"] !== undefined) {
|
|
817
|
-
contents.retryAfterSeconds = smithy_client_1.strictParseInt32(parsedOutput.headers["retry-after"]);
|
|
817
|
+
contents.retryAfterSeconds = (0, smithy_client_1.strictParseInt32)(parsedOutput.headers["retry-after"]);
|
|
818
818
|
}
|
|
819
819
|
const data = parsedOutput.body;
|
|
820
820
|
if (data.message !== undefined && data.message !== null) {
|
|
821
|
-
contents.message = smithy_client_1.expectString(data.message);
|
|
821
|
+
contents.message = (0, smithy_client_1.expectString)(data.message);
|
|
822
822
|
}
|
|
823
823
|
const exception = new models_0_1.InternalServerException({
|
|
824
824
|
$metadata: deserializeMetadata(parsedOutput),
|
|
825
825
|
...contents,
|
|
826
826
|
});
|
|
827
|
-
return smithy_client_1.decorateServiceException(exception, parsedOutput.body);
|
|
827
|
+
return (0, smithy_client_1.decorateServiceException)(exception, parsedOutput.body);
|
|
828
828
|
};
|
|
829
829
|
const deserializeAws_restJson1ResourceNotFoundExceptionResponse = async (parsedOutput, context) => {
|
|
830
830
|
const contents = {};
|
|
831
831
|
const data = parsedOutput.body;
|
|
832
832
|
if (data.message !== undefined && data.message !== null) {
|
|
833
|
-
contents.message = smithy_client_1.expectString(data.message);
|
|
833
|
+
contents.message = (0, smithy_client_1.expectString)(data.message);
|
|
834
834
|
}
|
|
835
835
|
if (data.resourceName !== undefined && data.resourceName !== null) {
|
|
836
|
-
contents.resourceName = smithy_client_1.expectString(data.resourceName);
|
|
836
|
+
contents.resourceName = (0, smithy_client_1.expectString)(data.resourceName);
|
|
837
837
|
}
|
|
838
838
|
if (data.resourceType !== undefined && data.resourceType !== null) {
|
|
839
|
-
contents.resourceType = smithy_client_1.expectString(data.resourceType);
|
|
839
|
+
contents.resourceType = (0, smithy_client_1.expectString)(data.resourceType);
|
|
840
840
|
}
|
|
841
841
|
const exception = new models_0_1.ResourceNotFoundException({
|
|
842
842
|
$metadata: deserializeMetadata(parsedOutput),
|
|
843
843
|
...contents,
|
|
844
844
|
});
|
|
845
|
-
return smithy_client_1.decorateServiceException(exception, parsedOutput.body);
|
|
845
|
+
return (0, smithy_client_1.decorateServiceException)(exception, parsedOutput.body);
|
|
846
846
|
};
|
|
847
847
|
const deserializeAws_restJson1ServiceQuotaExceededExceptionResponse = async (parsedOutput, context) => {
|
|
848
848
|
const contents = {};
|
|
849
849
|
const data = parsedOutput.body;
|
|
850
850
|
if (data.message !== undefined && data.message !== null) {
|
|
851
|
-
contents.message = smithy_client_1.expectString(data.message);
|
|
851
|
+
contents.message = (0, smithy_client_1.expectString)(data.message);
|
|
852
852
|
}
|
|
853
853
|
const exception = new models_0_1.ServiceQuotaExceededException({
|
|
854
854
|
$metadata: deserializeMetadata(parsedOutput),
|
|
855
855
|
...contents,
|
|
856
856
|
});
|
|
857
|
-
return smithy_client_1.decorateServiceException(exception, parsedOutput.body);
|
|
857
|
+
return (0, smithy_client_1.decorateServiceException)(exception, parsedOutput.body);
|
|
858
858
|
};
|
|
859
859
|
const deserializeAws_restJson1ThrottlingExceptionResponse = async (parsedOutput, context) => {
|
|
860
860
|
const contents = {};
|
|
861
861
|
if (parsedOutput.headers["retry-after"] !== undefined) {
|
|
862
|
-
contents.retryAfterSeconds = smithy_client_1.strictParseInt32(parsedOutput.headers["retry-after"]);
|
|
862
|
+
contents.retryAfterSeconds = (0, smithy_client_1.strictParseInt32)(parsedOutput.headers["retry-after"]);
|
|
863
863
|
}
|
|
864
864
|
const data = parsedOutput.body;
|
|
865
865
|
if (data.message !== undefined && data.message !== null) {
|
|
866
|
-
contents.message = smithy_client_1.expectString(data.message);
|
|
866
|
+
contents.message = (0, smithy_client_1.expectString)(data.message);
|
|
867
867
|
}
|
|
868
868
|
if (data.quotaCode !== undefined && data.quotaCode !== null) {
|
|
869
|
-
contents.quotaCode = smithy_client_1.expectString(data.quotaCode);
|
|
869
|
+
contents.quotaCode = (0, smithy_client_1.expectString)(data.quotaCode);
|
|
870
870
|
}
|
|
871
871
|
if (data.serviceCode !== undefined && data.serviceCode !== null) {
|
|
872
|
-
contents.serviceCode = smithy_client_1.expectString(data.serviceCode);
|
|
872
|
+
contents.serviceCode = (0, smithy_client_1.expectString)(data.serviceCode);
|
|
873
873
|
}
|
|
874
874
|
const exception = new models_0_1.ThrottlingException({
|
|
875
875
|
$metadata: deserializeMetadata(parsedOutput),
|
|
876
876
|
...contents,
|
|
877
877
|
});
|
|
878
|
-
return smithy_client_1.decorateServiceException(exception, parsedOutput.body);
|
|
878
|
+
return (0, smithy_client_1.decorateServiceException)(exception, parsedOutput.body);
|
|
879
879
|
};
|
|
880
880
|
const deserializeAws_restJson1ValidationExceptionResponse = async (parsedOutput, context) => {
|
|
881
881
|
const contents = {};
|
|
882
882
|
const data = parsedOutput.body;
|
|
883
883
|
if (data.message !== undefined && data.message !== null) {
|
|
884
|
-
contents.message = smithy_client_1.expectString(data.message);
|
|
884
|
+
contents.message = (0, smithy_client_1.expectString)(data.message);
|
|
885
885
|
}
|
|
886
886
|
const exception = new models_0_1.ValidationException({
|
|
887
887
|
$metadata: deserializeMetadata(parsedOutput),
|
|
888
888
|
...contents,
|
|
889
889
|
});
|
|
890
|
-
return smithy_client_1.decorateServiceException(exception, parsedOutput.body);
|
|
890
|
+
return (0, smithy_client_1.decorateServiceException)(exception, parsedOutput.body);
|
|
891
891
|
};
|
|
892
892
|
const serializeAws_restJson1AppMonitorConfiguration = (input, context) => {
|
|
893
893
|
return {
|
|
@@ -905,7 +905,7 @@ const serializeAws_restJson1AppMonitorConfiguration = (input, context) => {
|
|
|
905
905
|
...(input.IncludedPages !== undefined &&
|
|
906
906
|
input.IncludedPages !== null && { IncludedPages: serializeAws_restJson1Pages(input.IncludedPages, context) }),
|
|
907
907
|
...(input.SessionSampleRate !== undefined &&
|
|
908
|
-
input.SessionSampleRate !== null && { SessionSampleRate: smithy_client_1.serializeFloat(input.SessionSampleRate) }),
|
|
908
|
+
input.SessionSampleRate !== null && { SessionSampleRate: (0, smithy_client_1.serializeFloat)(input.SessionSampleRate) }),
|
|
909
909
|
...(input.Telemetries !== undefined &&
|
|
910
910
|
input.Telemetries !== null && { Telemetries: serializeAws_restJson1Telemetries(input.Telemetries, context) }),
|
|
911
911
|
};
|
|
@@ -1024,15 +1024,15 @@ const deserializeAws_restJson1AppMonitor = (output, context) => {
|
|
|
1024
1024
|
AppMonitorConfiguration: output.AppMonitorConfiguration !== undefined && output.AppMonitorConfiguration !== null
|
|
1025
1025
|
? deserializeAws_restJson1AppMonitorConfiguration(output.AppMonitorConfiguration, context)
|
|
1026
1026
|
: undefined,
|
|
1027
|
-
Created: smithy_client_1.expectString(output.Created),
|
|
1027
|
+
Created: (0, smithy_client_1.expectString)(output.Created),
|
|
1028
1028
|
DataStorage: output.DataStorage !== undefined && output.DataStorage !== null
|
|
1029
1029
|
? deserializeAws_restJson1DataStorage(output.DataStorage, context)
|
|
1030
1030
|
: undefined,
|
|
1031
|
-
Domain: smithy_client_1.expectString(output.Domain),
|
|
1032
|
-
Id: smithy_client_1.expectString(output.Id),
|
|
1033
|
-
LastModified: smithy_client_1.expectString(output.LastModified),
|
|
1034
|
-
Name: smithy_client_1.expectString(output.Name),
|
|
1035
|
-
State: smithy_client_1.expectString(output.State),
|
|
1031
|
+
Domain: (0, smithy_client_1.expectString)(output.Domain),
|
|
1032
|
+
Id: (0, smithy_client_1.expectString)(output.Id),
|
|
1033
|
+
LastModified: (0, smithy_client_1.expectString)(output.LastModified),
|
|
1034
|
+
Name: (0, smithy_client_1.expectString)(output.Name),
|
|
1035
|
+
State: (0, smithy_client_1.expectString)(output.State),
|
|
1036
1036
|
Tags: output.Tags !== undefined && output.Tags !== null
|
|
1037
1037
|
? deserializeAws_restJson1TagMap(output.Tags, context)
|
|
1038
1038
|
: undefined,
|
|
@@ -1040,20 +1040,20 @@ const deserializeAws_restJson1AppMonitor = (output, context) => {
|
|
|
1040
1040
|
};
|
|
1041
1041
|
const deserializeAws_restJson1AppMonitorConfiguration = (output, context) => {
|
|
1042
1042
|
return {
|
|
1043
|
-
AllowCookies: smithy_client_1.expectBoolean(output.AllowCookies),
|
|
1044
|
-
EnableXRay: smithy_client_1.expectBoolean(output.EnableXRay),
|
|
1043
|
+
AllowCookies: (0, smithy_client_1.expectBoolean)(output.AllowCookies),
|
|
1044
|
+
EnableXRay: (0, smithy_client_1.expectBoolean)(output.EnableXRay),
|
|
1045
1045
|
ExcludedPages: output.ExcludedPages !== undefined && output.ExcludedPages !== null
|
|
1046
1046
|
? deserializeAws_restJson1Pages(output.ExcludedPages, context)
|
|
1047
1047
|
: undefined,
|
|
1048
1048
|
FavoritePages: output.FavoritePages !== undefined && output.FavoritePages !== null
|
|
1049
1049
|
? deserializeAws_restJson1FavoritePages(output.FavoritePages, context)
|
|
1050
1050
|
: undefined,
|
|
1051
|
-
GuestRoleArn: smithy_client_1.expectString(output.GuestRoleArn),
|
|
1052
|
-
IdentityPoolId: smithy_client_1.expectString(output.IdentityPoolId),
|
|
1051
|
+
GuestRoleArn: (0, smithy_client_1.expectString)(output.GuestRoleArn),
|
|
1052
|
+
IdentityPoolId: (0, smithy_client_1.expectString)(output.IdentityPoolId),
|
|
1053
1053
|
IncludedPages: output.IncludedPages !== undefined && output.IncludedPages !== null
|
|
1054
1054
|
? deserializeAws_restJson1Pages(output.IncludedPages, context)
|
|
1055
1055
|
: undefined,
|
|
1056
|
-
SessionSampleRate: smithy_client_1.limitedParseDouble(output.SessionSampleRate),
|
|
1056
|
+
SessionSampleRate: (0, smithy_client_1.limitedParseDouble)(output.SessionSampleRate),
|
|
1057
1057
|
Telemetries: output.Telemetries !== undefined && output.Telemetries !== null
|
|
1058
1058
|
? deserializeAws_restJson1Telemetries(output.Telemetries, context)
|
|
1059
1059
|
: undefined,
|
|
@@ -1061,11 +1061,11 @@ const deserializeAws_restJson1AppMonitorConfiguration = (output, context) => {
|
|
|
1061
1061
|
};
|
|
1062
1062
|
const deserializeAws_restJson1AppMonitorSummary = (output, context) => {
|
|
1063
1063
|
return {
|
|
1064
|
-
Created: smithy_client_1.expectString(output.Created),
|
|
1065
|
-
Id: smithy_client_1.expectString(output.Id),
|
|
1066
|
-
LastModified: smithy_client_1.expectString(output.LastModified),
|
|
1067
|
-
Name: smithy_client_1.expectString(output.Name),
|
|
1068
|
-
State: smithy_client_1.expectString(output.State),
|
|
1064
|
+
Created: (0, smithy_client_1.expectString)(output.Created),
|
|
1065
|
+
Id: (0, smithy_client_1.expectString)(output.Id),
|
|
1066
|
+
LastModified: (0, smithy_client_1.expectString)(output.LastModified),
|
|
1067
|
+
Name: (0, smithy_client_1.expectString)(output.Name),
|
|
1068
|
+
State: (0, smithy_client_1.expectString)(output.State),
|
|
1069
1069
|
};
|
|
1070
1070
|
};
|
|
1071
1071
|
const deserializeAws_restJson1AppMonitorSummaryList = (output, context) => {
|
|
@@ -1081,8 +1081,8 @@ const deserializeAws_restJson1AppMonitorSummaryList = (output, context) => {
|
|
|
1081
1081
|
};
|
|
1082
1082
|
const deserializeAws_restJson1CwLog = (output, context) => {
|
|
1083
1083
|
return {
|
|
1084
|
-
CwLogEnabled: smithy_client_1.expectBoolean(output.CwLogEnabled),
|
|
1085
|
-
CwLogGroup: smithy_client_1.expectString(output.CwLogGroup),
|
|
1084
|
+
CwLogEnabled: (0, smithy_client_1.expectBoolean)(output.CwLogEnabled),
|
|
1085
|
+
CwLogGroup: (0, smithy_client_1.expectString)(output.CwLogGroup),
|
|
1086
1086
|
};
|
|
1087
1087
|
};
|
|
1088
1088
|
const deserializeAws_restJson1DataStorage = (output, context) => {
|
|
@@ -1099,7 +1099,7 @@ const deserializeAws_restJson1EventDataList = (output, context) => {
|
|
|
1099
1099
|
if (entry === null) {
|
|
1100
1100
|
return null;
|
|
1101
1101
|
}
|
|
1102
|
-
return smithy_client_1.expectString(entry);
|
|
1102
|
+
return (0, smithy_client_1.expectString)(entry);
|
|
1103
1103
|
});
|
|
1104
1104
|
return retVal;
|
|
1105
1105
|
};
|
|
@@ -1110,7 +1110,7 @@ const deserializeAws_restJson1FavoritePages = (output, context) => {
|
|
|
1110
1110
|
if (entry === null) {
|
|
1111
1111
|
return null;
|
|
1112
1112
|
}
|
|
1113
|
-
return smithy_client_1.expectString(entry);
|
|
1113
|
+
return (0, smithy_client_1.expectString)(entry);
|
|
1114
1114
|
});
|
|
1115
1115
|
return retVal;
|
|
1116
1116
|
};
|
|
@@ -1121,7 +1121,7 @@ const deserializeAws_restJson1Pages = (output, context) => {
|
|
|
1121
1121
|
if (entry === null) {
|
|
1122
1122
|
return null;
|
|
1123
1123
|
}
|
|
1124
|
-
return smithy_client_1.expectString(entry);
|
|
1124
|
+
return (0, smithy_client_1.expectString)(entry);
|
|
1125
1125
|
});
|
|
1126
1126
|
return retVal;
|
|
1127
1127
|
};
|
|
@@ -1132,7 +1132,7 @@ const deserializeAws_restJson1TagMap = (output, context) => {
|
|
|
1132
1132
|
}
|
|
1133
1133
|
return {
|
|
1134
1134
|
...acc,
|
|
1135
|
-
[key]: smithy_client_1.expectString(value),
|
|
1135
|
+
[key]: (0, smithy_client_1.expectString)(value),
|
|
1136
1136
|
};
|
|
1137
1137
|
}, {});
|
|
1138
1138
|
};
|
|
@@ -1143,7 +1143,7 @@ const deserializeAws_restJson1Telemetries = (output, context) => {
|
|
|
1143
1143
|
if (entry === null) {
|
|
1144
1144
|
return null;
|
|
1145
1145
|
}
|
|
1146
|
-
return smithy_client_1.expectString(entry);
|
|
1146
|
+
return (0, smithy_client_1.expectString)(entry);
|
|
1147
1147
|
});
|
|
1148
1148
|
return retVal;
|
|
1149
1149
|
};
|
|
@@ -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,
|
|
@@ -19,9 +19,9 @@ const smithy_client_1 = require("@aws-sdk/smithy-client");
|
|
|
19
19
|
const util_defaults_mode_node_1 = require("@aws-sdk/util-defaults-mode-node");
|
|
20
20
|
const getRuntimeConfig = (config) => {
|
|
21
21
|
var _a, _b, _c, _d, _e, _f, _g, _h, _j, _k, _l, _m, _o, _p, _q;
|
|
22
|
-
const defaultsMode = util_defaults_mode_node_1.resolveDefaultsModeConfig(config);
|
|
22
|
+
const defaultsMode = (0, util_defaults_mode_node_1.resolveDefaultsModeConfig)(config);
|
|
23
23
|
const defaultConfigProvider = () => defaultsMode().then(smithy_client_1.loadConfigsForDefaultMode);
|
|
24
|
-
const clientSharedValues = runtimeConfig_shared_1.getRuntimeConfig(config);
|
|
24
|
+
const clientSharedValues = (0, runtimeConfig_shared_1.getRuntimeConfig)(config);
|
|
25
25
|
return {
|
|
26
26
|
...clientSharedValues,
|
|
27
27
|
...config,
|
|
@@ -30,19 +30,19 @@ const getRuntimeConfig = (config) => {
|
|
|
30
30
|
base64Decoder: (_a = config === null || config === void 0 ? void 0 : config.base64Decoder) !== null && _a !== void 0 ? _a : util_base64_node_1.fromBase64,
|
|
31
31
|
base64Encoder: (_b = config === null || config === void 0 ? void 0 : config.base64Encoder) !== null && _b !== void 0 ? _b : util_base64_node_1.toBase64,
|
|
32
32
|
bodyLengthChecker: (_c = config === null || config === void 0 ? void 0 : config.bodyLengthChecker) !== null && _c !== void 0 ? _c : util_body_length_node_1.calculateBodyLength,
|
|
33
|
-
credentialDefaultProvider: (_d = config === null || config === void 0 ? void 0 : config.credentialDefaultProvider) !== null && _d !== void 0 ? _d : client_sts_1.decorateDefaultCredentialProvider(credential_provider_node_1.defaultProvider),
|
|
34
|
-
defaultUserAgentProvider: (_e = config === null || config === void 0 ? void 0 : config.defaultUserAgentProvider) !== null && _e !== void 0 ? _e : util_user_agent_node_1.defaultUserAgent({ serviceId: clientSharedValues.serviceId, clientVersion: package_json_1.default.version }),
|
|
35
|
-
maxAttempts: (_f = config === null || config === void 0 ? void 0 : config.maxAttempts) !== null && _f !== void 0 ? _f : node_config_provider_1.loadConfig(middleware_retry_1.NODE_MAX_ATTEMPT_CONFIG_OPTIONS),
|
|
36
|
-
region: (_g = config === null || config === void 0 ? void 0 : config.region) !== null && _g !== void 0 ? _g : node_config_provider_1.loadConfig(config_resolver_1.NODE_REGION_CONFIG_OPTIONS, config_resolver_1.NODE_REGION_CONFIG_FILE_OPTIONS),
|
|
33
|
+
credentialDefaultProvider: (_d = config === null || config === void 0 ? void 0 : config.credentialDefaultProvider) !== null && _d !== void 0 ? _d : (0, client_sts_1.decorateDefaultCredentialProvider)(credential_provider_node_1.defaultProvider),
|
|
34
|
+
defaultUserAgentProvider: (_e = config === null || config === void 0 ? void 0 : config.defaultUserAgentProvider) !== null && _e !== void 0 ? _e : (0, util_user_agent_node_1.defaultUserAgent)({ serviceId: clientSharedValues.serviceId, clientVersion: package_json_1.default.version }),
|
|
35
|
+
maxAttempts: (_f = config === null || config === void 0 ? void 0 : config.maxAttempts) !== null && _f !== void 0 ? _f : (0, node_config_provider_1.loadConfig)(middleware_retry_1.NODE_MAX_ATTEMPT_CONFIG_OPTIONS),
|
|
36
|
+
region: (_g = config === null || config === void 0 ? void 0 : config.region) !== null && _g !== void 0 ? _g : (0, node_config_provider_1.loadConfig)(config_resolver_1.NODE_REGION_CONFIG_OPTIONS, config_resolver_1.NODE_REGION_CONFIG_FILE_OPTIONS),
|
|
37
37
|
requestHandler: (_h = config === null || config === void 0 ? void 0 : config.requestHandler) !== null && _h !== void 0 ? _h : new node_http_handler_1.NodeHttpHandler(defaultConfigProvider),
|
|
38
|
-
retryMode: (_j = config === null || config === void 0 ? void 0 : config.retryMode) !== null && _j !== void 0 ? _j : node_config_provider_1.loadConfig({
|
|
38
|
+
retryMode: (_j = config === null || config === void 0 ? void 0 : config.retryMode) !== null && _j !== void 0 ? _j : (0, node_config_provider_1.loadConfig)({
|
|
39
39
|
...middleware_retry_1.NODE_RETRY_MODE_CONFIG_OPTIONS,
|
|
40
40
|
default: async () => (await defaultConfigProvider()).retryMode || middleware_retry_1.DEFAULT_RETRY_MODE,
|
|
41
41
|
}),
|
|
42
42
|
sha256: (_k = config === null || config === void 0 ? void 0 : config.sha256) !== null && _k !== void 0 ? _k : hash_node_1.Hash.bind(null, "sha256"),
|
|
43
43
|
streamCollector: (_l = config === null || config === void 0 ? void 0 : config.streamCollector) !== null && _l !== void 0 ? _l : node_http_handler_1.streamCollector,
|
|
44
|
-
useDualstackEndpoint: (_m = config === null || config === void 0 ? void 0 : config.useDualstackEndpoint) !== null && _m !== void 0 ? _m : node_config_provider_1.loadConfig(config_resolver_1.NODE_USE_DUALSTACK_ENDPOINT_CONFIG_OPTIONS),
|
|
45
|
-
useFipsEndpoint: (_o = config === null || config === void 0 ? void 0 : config.useFipsEndpoint) !== null && _o !== void 0 ? _o : node_config_provider_1.loadConfig(config_resolver_1.NODE_USE_FIPS_ENDPOINT_CONFIG_OPTIONS),
|
|
44
|
+
useDualstackEndpoint: (_m = config === null || config === void 0 ? void 0 : config.useDualstackEndpoint) !== null && _m !== void 0 ? _m : (0, node_config_provider_1.loadConfig)(config_resolver_1.NODE_USE_DUALSTACK_ENDPOINT_CONFIG_OPTIONS),
|
|
45
|
+
useFipsEndpoint: (_o = config === null || config === void 0 ? void 0 : config.useFipsEndpoint) !== null && _o !== void 0 ? _o : (0, node_config_provider_1.loadConfig)(config_resolver_1.NODE_USE_FIPS_ENDPOINT_CONFIG_OPTIONS),
|
|
46
46
|
utf8Decoder: (_p = config === null || config === void 0 ? void 0 : config.utf8Decoder) !== null && _p !== void 0 ? _p : util_utf8_node_1.fromUtf8,
|
|
47
47
|
utf8Encoder: (_q = config === null || config === void 0 ? void 0 : config.utf8Encoder) !== null && _q !== void 0 ? _q : util_utf8_node_1.toUtf8,
|
|
48
48
|
};
|
|
@@ -5,7 +5,7 @@ const sha256_js_1 = require("@aws-crypto/sha256-js");
|
|
|
5
5
|
const runtimeConfig_browser_1 = require("./runtimeConfig.browser");
|
|
6
6
|
const getRuntimeConfig = (config) => {
|
|
7
7
|
var _a;
|
|
8
|
-
const browserDefaults = runtimeConfig_browser_1.getRuntimeConfig(config);
|
|
8
|
+
const browserDefaults = (0, runtimeConfig_browser_1.getRuntimeConfig)(config);
|
|
9
9
|
return {
|
|
10
10
|
...browserDefaults,
|
|
11
11
|
...config,
|