@aws-sdk/client-rum 3.118.0 → 3.127.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 +27 -0
- package/dist-cjs/protocols/Aws_restJson1.js +98 -120
- package/dist-es/protocols/Aws_restJson1.js +73 -95
- package/package.json +26 -26
package/CHANGELOG.md
CHANGED
|
@@ -3,6 +3,33 @@
|
|
|
3
3
|
All notable changes to this project will be documented in this file.
|
|
4
4
|
See [Conventional Commits](https://conventionalcommits.org) for commit guidelines.
|
|
5
5
|
|
|
6
|
+
# [3.127.0](https://github.com/aws/aws-sdk-js-v3/compare/v3.126.0...v3.127.0) (2022-07-11)
|
|
7
|
+
|
|
8
|
+
**Note:** Version bump only for package @aws-sdk/client-rum
|
|
9
|
+
|
|
10
|
+
|
|
11
|
+
|
|
12
|
+
|
|
13
|
+
|
|
14
|
+
# [3.121.0](https://github.com/aws/aws-sdk-js-v3/compare/v3.120.0...v3.121.0) (2022-06-30)
|
|
15
|
+
|
|
16
|
+
|
|
17
|
+
### Features
|
|
18
|
+
|
|
19
|
+
* **clients:** fallback to status code for unmodeled errors ([#3752](https://github.com/aws/aws-sdk-js-v3/issues/3752)) ([49bcc4f](https://github.com/aws/aws-sdk-js-v3/commit/49bcc4f153e890e798a8e82fd5fc397b2dcc449f))
|
|
20
|
+
|
|
21
|
+
|
|
22
|
+
|
|
23
|
+
|
|
24
|
+
|
|
25
|
+
## [3.118.1](https://github.com/aws/aws-sdk-js-v3/compare/v3.118.0...v3.118.1) (2022-06-27)
|
|
26
|
+
|
|
27
|
+
**Note:** Version bump only for package @aws-sdk/client-rum
|
|
28
|
+
|
|
29
|
+
|
|
30
|
+
|
|
31
|
+
|
|
32
|
+
|
|
6
33
|
# [3.118.0](https://github.com/aws/aws-sdk-js-v3/compare/v3.117.0...v3.118.0) (2022-06-24)
|
|
7
34
|
|
|
8
35
|
**Note:** Version bump only for package @aws-sdk/client-rum
|
|
@@ -13,14 +13,13 @@ const serializeAws_restJson1CreateAppMonitorCommand = async (input, context) =>
|
|
|
13
13
|
const resolvedPath = `${(basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || ""}` + "/appmonitor";
|
|
14
14
|
let body;
|
|
15
15
|
body = JSON.stringify({
|
|
16
|
-
...(input.AppMonitorConfiguration
|
|
17
|
-
input.AppMonitorConfiguration !== null && {
|
|
16
|
+
...(input.AppMonitorConfiguration != null && {
|
|
18
17
|
AppMonitorConfiguration: serializeAws_restJson1AppMonitorConfiguration(input.AppMonitorConfiguration, context),
|
|
19
18
|
}),
|
|
20
|
-
...(input.CwLogEnabled
|
|
21
|
-
...(input.Domain
|
|
22
|
-
...(input.Name
|
|
23
|
-
...(input.Tags
|
|
19
|
+
...(input.CwLogEnabled != null && { CwLogEnabled: input.CwLogEnabled }),
|
|
20
|
+
...(input.Domain != null && { Domain: input.Domain }),
|
|
21
|
+
...(input.Name != null && { Name: input.Name }),
|
|
22
|
+
...(input.Tags != null && { Tags: serializeAws_restJson1TagMap(input.Tags, context) }),
|
|
24
23
|
});
|
|
25
24
|
return new protocol_http_1.HttpRequest({
|
|
26
25
|
protocol,
|
|
@@ -103,12 +102,10 @@ const serializeAws_restJson1GetAppMonitorDataCommand = async (input, context) =>
|
|
|
103
102
|
}
|
|
104
103
|
let body;
|
|
105
104
|
body = JSON.stringify({
|
|
106
|
-
...(input.Filters
|
|
107
|
-
|
|
108
|
-
...(input.
|
|
109
|
-
...(input.
|
|
110
|
-
...(input.TimeRange !== undefined &&
|
|
111
|
-
input.TimeRange !== null && { TimeRange: serializeAws_restJson1TimeRange(input.TimeRange, context) }),
|
|
105
|
+
...(input.Filters != null && { Filters: serializeAws_restJson1QueryFilters(input.Filters, context) }),
|
|
106
|
+
...(input.MaxResults != null && { MaxResults: input.MaxResults }),
|
|
107
|
+
...(input.NextToken != null && { NextToken: input.NextToken }),
|
|
108
|
+
...(input.TimeRange != null && { TimeRange: serializeAws_restJson1TimeRange(input.TimeRange, context) }),
|
|
112
109
|
});
|
|
113
110
|
return new protocol_http_1.HttpRequest({
|
|
114
111
|
protocol,
|
|
@@ -186,15 +183,12 @@ const serializeAws_restJson1PutRumEventsCommand = async (input, context) => {
|
|
|
186
183
|
}
|
|
187
184
|
let body;
|
|
188
185
|
body = JSON.stringify({
|
|
189
|
-
...(input.AppMonitorDetails
|
|
190
|
-
input.AppMonitorDetails !== null && {
|
|
186
|
+
...(input.AppMonitorDetails != null && {
|
|
191
187
|
AppMonitorDetails: serializeAws_restJson1AppMonitorDetails(input.AppMonitorDetails, context),
|
|
192
188
|
}),
|
|
193
|
-
...(input.BatchId
|
|
194
|
-
...(input.RumEvents
|
|
195
|
-
|
|
196
|
-
...(input.UserDetails !== undefined &&
|
|
197
|
-
input.UserDetails !== null && { UserDetails: serializeAws_restJson1UserDetails(input.UserDetails, context) }),
|
|
189
|
+
...(input.BatchId != null && { BatchId: input.BatchId }),
|
|
190
|
+
...(input.RumEvents != null && { RumEvents: serializeAws_restJson1RumEventList(input.RumEvents, context) }),
|
|
191
|
+
...(input.UserDetails != null && { UserDetails: serializeAws_restJson1UserDetails(input.UserDetails, context) }),
|
|
198
192
|
});
|
|
199
193
|
let { hostname: resolvedHostname } = await context.endpoint();
|
|
200
194
|
if (context.disableHostPrefix !== true) {
|
|
@@ -232,7 +226,7 @@ const serializeAws_restJson1TagResourceCommand = async (input, context) => {
|
|
|
232
226
|
}
|
|
233
227
|
let body;
|
|
234
228
|
body = JSON.stringify({
|
|
235
|
-
...(input.Tags
|
|
229
|
+
...(input.Tags != null && { Tags: serializeAws_restJson1TagMap(input.Tags, context) }),
|
|
236
230
|
});
|
|
237
231
|
return new protocol_http_1.HttpRequest({
|
|
238
232
|
protocol,
|
|
@@ -293,12 +287,11 @@ const serializeAws_restJson1UpdateAppMonitorCommand = async (input, context) =>
|
|
|
293
287
|
}
|
|
294
288
|
let body;
|
|
295
289
|
body = JSON.stringify({
|
|
296
|
-
...(input.AppMonitorConfiguration
|
|
297
|
-
input.AppMonitorConfiguration !== null && {
|
|
290
|
+
...(input.AppMonitorConfiguration != null && {
|
|
298
291
|
AppMonitorConfiguration: serializeAws_restJson1AppMonitorConfiguration(input.AppMonitorConfiguration, context),
|
|
299
292
|
}),
|
|
300
|
-
...(input.CwLogEnabled
|
|
301
|
-
...(input.Domain
|
|
293
|
+
...(input.CwLogEnabled != null && { CwLogEnabled: input.CwLogEnabled }),
|
|
294
|
+
...(input.Domain != null && { Domain: input.Domain }),
|
|
302
295
|
});
|
|
303
296
|
return new protocol_http_1.HttpRequest({
|
|
304
297
|
protocol,
|
|
@@ -332,8 +325,7 @@ const deserializeAws_restJson1CreateAppMonitorCommandError = async (output, cont
|
|
|
332
325
|
body: await parseBody(output.body, context),
|
|
333
326
|
};
|
|
334
327
|
let response;
|
|
335
|
-
|
|
336
|
-
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
328
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
337
329
|
switch (errorCode) {
|
|
338
330
|
case "AccessDeniedException":
|
|
339
331
|
case "com.amazonaws.rum#AccessDeniedException":
|
|
@@ -355,10 +347,12 @@ const deserializeAws_restJson1CreateAppMonitorCommandError = async (output, cont
|
|
|
355
347
|
throw await deserializeAws_restJson1ValidationExceptionResponse(parsedOutput, context);
|
|
356
348
|
default:
|
|
357
349
|
const parsedBody = parsedOutput.body;
|
|
350
|
+
const $metadata = deserializeMetadata(output);
|
|
351
|
+
const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
358
352
|
response = new RUMServiceException_1.RUMServiceException({
|
|
359
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
353
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
360
354
|
$fault: "client",
|
|
361
|
-
$metadata
|
|
355
|
+
$metadata,
|
|
362
356
|
});
|
|
363
357
|
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
364
358
|
}
|
|
@@ -380,8 +374,7 @@ const deserializeAws_restJson1DeleteAppMonitorCommandError = async (output, cont
|
|
|
380
374
|
body: await parseBody(output.body, context),
|
|
381
375
|
};
|
|
382
376
|
let response;
|
|
383
|
-
|
|
384
|
-
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
377
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
385
378
|
switch (errorCode) {
|
|
386
379
|
case "AccessDeniedException":
|
|
387
380
|
case "com.amazonaws.rum#AccessDeniedException":
|
|
@@ -403,10 +396,12 @@ const deserializeAws_restJson1DeleteAppMonitorCommandError = async (output, cont
|
|
|
403
396
|
throw await deserializeAws_restJson1ValidationExceptionResponse(parsedOutput, context);
|
|
404
397
|
default:
|
|
405
398
|
const parsedBody = parsedOutput.body;
|
|
399
|
+
const $metadata = deserializeMetadata(output);
|
|
400
|
+
const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
406
401
|
response = new RUMServiceException_1.RUMServiceException({
|
|
407
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
402
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
408
403
|
$fault: "client",
|
|
409
|
-
$metadata
|
|
404
|
+
$metadata,
|
|
410
405
|
});
|
|
411
406
|
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
412
407
|
}
|
|
@@ -432,8 +427,7 @@ const deserializeAws_restJson1GetAppMonitorCommandError = async (output, context
|
|
|
432
427
|
body: await parseBody(output.body, context),
|
|
433
428
|
};
|
|
434
429
|
let response;
|
|
435
|
-
|
|
436
|
-
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
430
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
437
431
|
switch (errorCode) {
|
|
438
432
|
case "AccessDeniedException":
|
|
439
433
|
case "com.amazonaws.rum#AccessDeniedException":
|
|
@@ -452,10 +446,12 @@ const deserializeAws_restJson1GetAppMonitorCommandError = async (output, context
|
|
|
452
446
|
throw await deserializeAws_restJson1ValidationExceptionResponse(parsedOutput, context);
|
|
453
447
|
default:
|
|
454
448
|
const parsedBody = parsedOutput.body;
|
|
449
|
+
const $metadata = deserializeMetadata(output);
|
|
450
|
+
const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
455
451
|
response = new RUMServiceException_1.RUMServiceException({
|
|
456
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
452
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
457
453
|
$fault: "client",
|
|
458
|
-
$metadata
|
|
454
|
+
$metadata,
|
|
459
455
|
});
|
|
460
456
|
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
461
457
|
}
|
|
@@ -485,8 +481,7 @@ const deserializeAws_restJson1GetAppMonitorDataCommandError = async (output, con
|
|
|
485
481
|
body: await parseBody(output.body, context),
|
|
486
482
|
};
|
|
487
483
|
let response;
|
|
488
|
-
|
|
489
|
-
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
484
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
490
485
|
switch (errorCode) {
|
|
491
486
|
case "AccessDeniedException":
|
|
492
487
|
case "com.amazonaws.rum#AccessDeniedException":
|
|
@@ -505,10 +500,12 @@ const deserializeAws_restJson1GetAppMonitorDataCommandError = async (output, con
|
|
|
505
500
|
throw await deserializeAws_restJson1ValidationExceptionResponse(parsedOutput, context);
|
|
506
501
|
default:
|
|
507
502
|
const parsedBody = parsedOutput.body;
|
|
503
|
+
const $metadata = deserializeMetadata(output);
|
|
504
|
+
const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
508
505
|
response = new RUMServiceException_1.RUMServiceException({
|
|
509
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
506
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
510
507
|
$fault: "client",
|
|
511
|
-
$metadata
|
|
508
|
+
$metadata,
|
|
512
509
|
});
|
|
513
510
|
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
514
511
|
}
|
|
@@ -538,8 +535,7 @@ const deserializeAws_restJson1ListAppMonitorsCommandError = async (output, conte
|
|
|
538
535
|
body: await parseBody(output.body, context),
|
|
539
536
|
};
|
|
540
537
|
let response;
|
|
541
|
-
|
|
542
|
-
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
538
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
543
539
|
switch (errorCode) {
|
|
544
540
|
case "AccessDeniedException":
|
|
545
541
|
case "com.amazonaws.rum#AccessDeniedException":
|
|
@@ -555,10 +551,12 @@ const deserializeAws_restJson1ListAppMonitorsCommandError = async (output, conte
|
|
|
555
551
|
throw await deserializeAws_restJson1ValidationExceptionResponse(parsedOutput, context);
|
|
556
552
|
default:
|
|
557
553
|
const parsedBody = parsedOutput.body;
|
|
554
|
+
const $metadata = deserializeMetadata(output);
|
|
555
|
+
const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
558
556
|
response = new RUMServiceException_1.RUMServiceException({
|
|
559
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
557
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
560
558
|
$fault: "client",
|
|
561
|
-
$metadata
|
|
559
|
+
$metadata,
|
|
562
560
|
});
|
|
563
561
|
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
564
562
|
}
|
|
@@ -588,8 +586,7 @@ const deserializeAws_restJson1ListTagsForResourceCommandError = async (output, c
|
|
|
588
586
|
body: await parseBody(output.body, context),
|
|
589
587
|
};
|
|
590
588
|
let response;
|
|
591
|
-
|
|
592
|
-
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
589
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
593
590
|
switch (errorCode) {
|
|
594
591
|
case "InternalServerException":
|
|
595
592
|
case "com.amazonaws.rum#InternalServerException":
|
|
@@ -602,10 +599,12 @@ const deserializeAws_restJson1ListTagsForResourceCommandError = async (output, c
|
|
|
602
599
|
throw await deserializeAws_restJson1ValidationExceptionResponse(parsedOutput, context);
|
|
603
600
|
default:
|
|
604
601
|
const parsedBody = parsedOutput.body;
|
|
602
|
+
const $metadata = deserializeMetadata(output);
|
|
603
|
+
const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
605
604
|
response = new RUMServiceException_1.RUMServiceException({
|
|
606
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
605
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
607
606
|
$fault: "client",
|
|
608
|
-
$metadata
|
|
607
|
+
$metadata,
|
|
609
608
|
});
|
|
610
609
|
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
611
610
|
}
|
|
@@ -627,8 +626,7 @@ const deserializeAws_restJson1PutRumEventsCommandError = async (output, context)
|
|
|
627
626
|
body: await parseBody(output.body, context),
|
|
628
627
|
};
|
|
629
628
|
let response;
|
|
630
|
-
|
|
631
|
-
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
629
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
632
630
|
switch (errorCode) {
|
|
633
631
|
case "AccessDeniedException":
|
|
634
632
|
case "com.amazonaws.rum#AccessDeniedException":
|
|
@@ -647,10 +645,12 @@ const deserializeAws_restJson1PutRumEventsCommandError = async (output, context)
|
|
|
647
645
|
throw await deserializeAws_restJson1ValidationExceptionResponse(parsedOutput, context);
|
|
648
646
|
default:
|
|
649
647
|
const parsedBody = parsedOutput.body;
|
|
648
|
+
const $metadata = deserializeMetadata(output);
|
|
649
|
+
const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
650
650
|
response = new RUMServiceException_1.RUMServiceException({
|
|
651
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
651
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
652
652
|
$fault: "client",
|
|
653
|
-
$metadata
|
|
653
|
+
$metadata,
|
|
654
654
|
});
|
|
655
655
|
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
656
656
|
}
|
|
@@ -672,8 +672,7 @@ const deserializeAws_restJson1TagResourceCommandError = async (output, context)
|
|
|
672
672
|
body: await parseBody(output.body, context),
|
|
673
673
|
};
|
|
674
674
|
let response;
|
|
675
|
-
|
|
676
|
-
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
675
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
677
676
|
switch (errorCode) {
|
|
678
677
|
case "InternalServerException":
|
|
679
678
|
case "com.amazonaws.rum#InternalServerException":
|
|
@@ -686,10 +685,12 @@ const deserializeAws_restJson1TagResourceCommandError = async (output, context)
|
|
|
686
685
|
throw await deserializeAws_restJson1ValidationExceptionResponse(parsedOutput, context);
|
|
687
686
|
default:
|
|
688
687
|
const parsedBody = parsedOutput.body;
|
|
688
|
+
const $metadata = deserializeMetadata(output);
|
|
689
|
+
const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
689
690
|
response = new RUMServiceException_1.RUMServiceException({
|
|
690
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
691
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
691
692
|
$fault: "client",
|
|
692
|
-
$metadata
|
|
693
|
+
$metadata,
|
|
693
694
|
});
|
|
694
695
|
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
695
696
|
}
|
|
@@ -711,8 +712,7 @@ const deserializeAws_restJson1UntagResourceCommandError = async (output, context
|
|
|
711
712
|
body: await parseBody(output.body, context),
|
|
712
713
|
};
|
|
713
714
|
let response;
|
|
714
|
-
|
|
715
|
-
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
715
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
716
716
|
switch (errorCode) {
|
|
717
717
|
case "InternalServerException":
|
|
718
718
|
case "com.amazonaws.rum#InternalServerException":
|
|
@@ -725,10 +725,12 @@ const deserializeAws_restJson1UntagResourceCommandError = async (output, context
|
|
|
725
725
|
throw await deserializeAws_restJson1ValidationExceptionResponse(parsedOutput, context);
|
|
726
726
|
default:
|
|
727
727
|
const parsedBody = parsedOutput.body;
|
|
728
|
+
const $metadata = deserializeMetadata(output);
|
|
729
|
+
const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
728
730
|
response = new RUMServiceException_1.RUMServiceException({
|
|
729
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
731
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
730
732
|
$fault: "client",
|
|
731
|
-
$metadata
|
|
733
|
+
$metadata,
|
|
732
734
|
});
|
|
733
735
|
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
734
736
|
}
|
|
@@ -750,8 +752,7 @@ const deserializeAws_restJson1UpdateAppMonitorCommandError = async (output, cont
|
|
|
750
752
|
body: await parseBody(output.body, context),
|
|
751
753
|
};
|
|
752
754
|
let response;
|
|
753
|
-
|
|
754
|
-
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
755
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
755
756
|
switch (errorCode) {
|
|
756
757
|
case "AccessDeniedException":
|
|
757
758
|
case "com.amazonaws.rum#AccessDeniedException":
|
|
@@ -773,10 +774,12 @@ const deserializeAws_restJson1UpdateAppMonitorCommandError = async (output, cont
|
|
|
773
774
|
throw await deserializeAws_restJson1ValidationExceptionResponse(parsedOutput, context);
|
|
774
775
|
default:
|
|
775
776
|
const parsedBody = parsedOutput.body;
|
|
777
|
+
const $metadata = deserializeMetadata(output);
|
|
778
|
+
const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
776
779
|
response = new RUMServiceException_1.RUMServiceException({
|
|
777
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
780
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
778
781
|
$fault: "client",
|
|
779
|
-
$metadata
|
|
782
|
+
$metadata,
|
|
780
783
|
});
|
|
781
784
|
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
782
785
|
}
|
|
@@ -891,30 +894,24 @@ const deserializeAws_restJson1ValidationExceptionResponse = async (parsedOutput,
|
|
|
891
894
|
};
|
|
892
895
|
const serializeAws_restJson1AppMonitorConfiguration = (input, context) => {
|
|
893
896
|
return {
|
|
894
|
-
...(input.AllowCookies
|
|
895
|
-
...(input.EnableXRay
|
|
896
|
-
...(input.ExcludedPages
|
|
897
|
-
|
|
898
|
-
...(input.FavoritePages !== undefined &&
|
|
899
|
-
input.FavoritePages !== null && {
|
|
897
|
+
...(input.AllowCookies != null && { AllowCookies: input.AllowCookies }),
|
|
898
|
+
...(input.EnableXRay != null && { EnableXRay: input.EnableXRay }),
|
|
899
|
+
...(input.ExcludedPages != null && { ExcludedPages: serializeAws_restJson1Pages(input.ExcludedPages, context) }),
|
|
900
|
+
...(input.FavoritePages != null && {
|
|
900
901
|
FavoritePages: serializeAws_restJson1FavoritePages(input.FavoritePages, context),
|
|
901
902
|
}),
|
|
902
|
-
...(input.GuestRoleArn
|
|
903
|
-
...(input.IdentityPoolId
|
|
904
|
-
|
|
905
|
-
...(input.
|
|
906
|
-
|
|
907
|
-
...(input.SessionSampleRate !== undefined &&
|
|
908
|
-
input.SessionSampleRate !== null && { SessionSampleRate: (0, smithy_client_1.serializeFloat)(input.SessionSampleRate) }),
|
|
909
|
-
...(input.Telemetries !== undefined &&
|
|
910
|
-
input.Telemetries !== null && { Telemetries: serializeAws_restJson1Telemetries(input.Telemetries, context) }),
|
|
903
|
+
...(input.GuestRoleArn != null && { GuestRoleArn: input.GuestRoleArn }),
|
|
904
|
+
...(input.IdentityPoolId != null && { IdentityPoolId: input.IdentityPoolId }),
|
|
905
|
+
...(input.IncludedPages != null && { IncludedPages: serializeAws_restJson1Pages(input.IncludedPages, context) }),
|
|
906
|
+
...(input.SessionSampleRate != null && { SessionSampleRate: (0, smithy_client_1.serializeFloat)(input.SessionSampleRate) }),
|
|
907
|
+
...(input.Telemetries != null && { Telemetries: serializeAws_restJson1Telemetries(input.Telemetries, context) }),
|
|
911
908
|
};
|
|
912
909
|
};
|
|
913
910
|
const serializeAws_restJson1AppMonitorDetails = (input, context) => {
|
|
914
911
|
return {
|
|
915
|
-
...(input.id
|
|
916
|
-
...(input.name
|
|
917
|
-
...(input.version
|
|
912
|
+
...(input.id != null && { id: input.id }),
|
|
913
|
+
...(input.name != null && { name: input.name }),
|
|
914
|
+
...(input.version != null && { version: input.version }),
|
|
918
915
|
};
|
|
919
916
|
};
|
|
920
917
|
const serializeAws_restJson1FavoritePages = (input, context) => {
|
|
@@ -939,9 +936,8 @@ const serializeAws_restJson1Pages = (input, context) => {
|
|
|
939
936
|
};
|
|
940
937
|
const serializeAws_restJson1QueryFilter = (input, context) => {
|
|
941
938
|
return {
|
|
942
|
-
...(input.Name
|
|
943
|
-
...(input.Values
|
|
944
|
-
input.Values !== null && { Values: serializeAws_restJson1QueryFilterValueList(input.Values, context) }),
|
|
939
|
+
...(input.Name != null && { Name: input.Name }),
|
|
940
|
+
...(input.Values != null && { Values: serializeAws_restJson1QueryFilterValueList(input.Values, context) }),
|
|
945
941
|
};
|
|
946
942
|
};
|
|
947
943
|
const serializeAws_restJson1QueryFilters = (input, context) => {
|
|
@@ -966,14 +962,11 @@ const serializeAws_restJson1QueryFilterValueList = (input, context) => {
|
|
|
966
962
|
};
|
|
967
963
|
const serializeAws_restJson1RumEvent = (input, context) => {
|
|
968
964
|
return {
|
|
969
|
-
...(input.details
|
|
970
|
-
|
|
971
|
-
...(input.
|
|
972
|
-
...(input.
|
|
973
|
-
|
|
974
|
-
...(input.timestamp !== undefined &&
|
|
975
|
-
input.timestamp !== null && { timestamp: Math.round(input.timestamp.getTime() / 1000) }),
|
|
976
|
-
...(input.type !== undefined && input.type !== null && { type: input.type }),
|
|
965
|
+
...(input.details != null && { details: smithy_client_1.LazyJsonString.fromObject(input.details) }),
|
|
966
|
+
...(input.id != null && { id: input.id }),
|
|
967
|
+
...(input.metadata != null && { metadata: smithy_client_1.LazyJsonString.fromObject(input.metadata) }),
|
|
968
|
+
...(input.timestamp != null && { timestamp: Math.round(input.timestamp.getTime() / 1000) }),
|
|
969
|
+
...(input.type != null && { type: input.type }),
|
|
977
970
|
};
|
|
978
971
|
};
|
|
979
972
|
const serializeAws_restJson1RumEventList = (input, context) => {
|
|
@@ -1009,54 +1002,42 @@ const serializeAws_restJson1Telemetries = (input, context) => {
|
|
|
1009
1002
|
};
|
|
1010
1003
|
const serializeAws_restJson1TimeRange = (input, context) => {
|
|
1011
1004
|
return {
|
|
1012
|
-
...(input.After
|
|
1013
|
-
...(input.Before
|
|
1005
|
+
...(input.After != null && { After: input.After }),
|
|
1006
|
+
...(input.Before != null && { Before: input.Before }),
|
|
1014
1007
|
};
|
|
1015
1008
|
};
|
|
1016
1009
|
const serializeAws_restJson1UserDetails = (input, context) => {
|
|
1017
1010
|
return {
|
|
1018
|
-
...(input.sessionId
|
|
1019
|
-
...(input.userId
|
|
1011
|
+
...(input.sessionId != null && { sessionId: input.sessionId }),
|
|
1012
|
+
...(input.userId != null && { userId: input.userId }),
|
|
1020
1013
|
};
|
|
1021
1014
|
};
|
|
1022
1015
|
const deserializeAws_restJson1AppMonitor = (output, context) => {
|
|
1023
1016
|
return {
|
|
1024
|
-
AppMonitorConfiguration: output.AppMonitorConfiguration
|
|
1017
|
+
AppMonitorConfiguration: output.AppMonitorConfiguration != null
|
|
1025
1018
|
? deserializeAws_restJson1AppMonitorConfiguration(output.AppMonitorConfiguration, context)
|
|
1026
1019
|
: undefined,
|
|
1027
1020
|
Created: (0, smithy_client_1.expectString)(output.Created),
|
|
1028
|
-
DataStorage: output.DataStorage
|
|
1029
|
-
? deserializeAws_restJson1DataStorage(output.DataStorage, context)
|
|
1030
|
-
: undefined,
|
|
1021
|
+
DataStorage: output.DataStorage != null ? deserializeAws_restJson1DataStorage(output.DataStorage, context) : undefined,
|
|
1031
1022
|
Domain: (0, smithy_client_1.expectString)(output.Domain),
|
|
1032
1023
|
Id: (0, smithy_client_1.expectString)(output.Id),
|
|
1033
1024
|
LastModified: (0, smithy_client_1.expectString)(output.LastModified),
|
|
1034
1025
|
Name: (0, smithy_client_1.expectString)(output.Name),
|
|
1035
1026
|
State: (0, smithy_client_1.expectString)(output.State),
|
|
1036
|
-
Tags: output.Tags
|
|
1037
|
-
? deserializeAws_restJson1TagMap(output.Tags, context)
|
|
1038
|
-
: undefined,
|
|
1027
|
+
Tags: output.Tags != null ? deserializeAws_restJson1TagMap(output.Tags, context) : undefined,
|
|
1039
1028
|
};
|
|
1040
1029
|
};
|
|
1041
1030
|
const deserializeAws_restJson1AppMonitorConfiguration = (output, context) => {
|
|
1042
1031
|
return {
|
|
1043
1032
|
AllowCookies: (0, smithy_client_1.expectBoolean)(output.AllowCookies),
|
|
1044
1033
|
EnableXRay: (0, smithy_client_1.expectBoolean)(output.EnableXRay),
|
|
1045
|
-
ExcludedPages: output.ExcludedPages
|
|
1046
|
-
|
|
1047
|
-
: undefined,
|
|
1048
|
-
FavoritePages: output.FavoritePages !== undefined && output.FavoritePages !== null
|
|
1049
|
-
? deserializeAws_restJson1FavoritePages(output.FavoritePages, context)
|
|
1050
|
-
: undefined,
|
|
1034
|
+
ExcludedPages: output.ExcludedPages != null ? deserializeAws_restJson1Pages(output.ExcludedPages, context) : undefined,
|
|
1035
|
+
FavoritePages: output.FavoritePages != null ? deserializeAws_restJson1FavoritePages(output.FavoritePages, context) : undefined,
|
|
1051
1036
|
GuestRoleArn: (0, smithy_client_1.expectString)(output.GuestRoleArn),
|
|
1052
1037
|
IdentityPoolId: (0, smithy_client_1.expectString)(output.IdentityPoolId),
|
|
1053
|
-
IncludedPages: output.IncludedPages
|
|
1054
|
-
? deserializeAws_restJson1Pages(output.IncludedPages, context)
|
|
1055
|
-
: undefined,
|
|
1038
|
+
IncludedPages: output.IncludedPages != null ? deserializeAws_restJson1Pages(output.IncludedPages, context) : undefined,
|
|
1056
1039
|
SessionSampleRate: (0, smithy_client_1.limitedParseDouble)(output.SessionSampleRate),
|
|
1057
|
-
Telemetries: output.Telemetries
|
|
1058
|
-
? deserializeAws_restJson1Telemetries(output.Telemetries, context)
|
|
1059
|
-
: undefined,
|
|
1040
|
+
Telemetries: output.Telemetries != null ? deserializeAws_restJson1Telemetries(output.Telemetries, context) : undefined,
|
|
1060
1041
|
};
|
|
1061
1042
|
};
|
|
1062
1043
|
const deserializeAws_restJson1AppMonitorSummary = (output, context) => {
|
|
@@ -1087,9 +1068,7 @@ const deserializeAws_restJson1CwLog = (output, context) => {
|
|
|
1087
1068
|
};
|
|
1088
1069
|
const deserializeAws_restJson1DataStorage = (output, context) => {
|
|
1089
1070
|
return {
|
|
1090
|
-
CwLog: output.CwLog
|
|
1091
|
-
? deserializeAws_restJson1CwLog(output.CwLog, context)
|
|
1092
|
-
: undefined,
|
|
1071
|
+
CwLog: output.CwLog != null ? deserializeAws_restJson1CwLog(output.CwLog, context) : undefined,
|
|
1093
1072
|
};
|
|
1094
1073
|
};
|
|
1095
1074
|
const deserializeAws_restJson1EventDataList = (output, context) => {
|
|
@@ -1196,5 +1175,4 @@ const loadRestJsonErrorCode = (output, data) => {
|
|
|
1196
1175
|
if (data["__type"] !== undefined) {
|
|
1197
1176
|
return sanitizeErrorCode(data["__type"]);
|
|
1198
1177
|
}
|
|
1199
|
-
return "";
|
|
1200
1178
|
};
|
|
@@ -14,10 +14,9 @@ export var serializeAws_restJson1CreateAppMonitorCommand = function (input, cont
|
|
|
14
14
|
"content-type": "application/json",
|
|
15
15
|
};
|
|
16
16
|
resolvedPath = "".concat((basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || "") + "/appmonitor";
|
|
17
|
-
body = JSON.stringify(__assign(__assign(__assign(__assign(__assign({}, (input.AppMonitorConfiguration
|
|
18
|
-
input.AppMonitorConfiguration !== null && {
|
|
17
|
+
body = JSON.stringify(__assign(__assign(__assign(__assign(__assign({}, (input.AppMonitorConfiguration != null && {
|
|
19
18
|
AppMonitorConfiguration: serializeAws_restJson1AppMonitorConfiguration(input.AppMonitorConfiguration, context),
|
|
20
|
-
})), (input.CwLogEnabled
|
|
19
|
+
})), (input.CwLogEnabled != null && { CwLogEnabled: input.CwLogEnabled })), (input.Domain != null && { Domain: input.Domain })), (input.Name != null && { Name: input.Name })), (input.Tags != null && { Tags: serializeAws_restJson1TagMap(input.Tags, context) })));
|
|
21
20
|
return [2, new __HttpRequest({
|
|
22
21
|
protocol: protocol,
|
|
23
22
|
hostname: hostname,
|
|
@@ -113,9 +112,7 @@ export var serializeAws_restJson1GetAppMonitorDataCommand = function (input, con
|
|
|
113
112
|
else {
|
|
114
113
|
throw new Error("No value provided for input HTTP label: Name.");
|
|
115
114
|
}
|
|
116
|
-
body = JSON.stringify(__assign(__assign(__assign(__assign({}, (input.Filters
|
|
117
|
-
input.Filters !== null && { Filters: serializeAws_restJson1QueryFilters(input.Filters, context) })), (input.MaxResults !== undefined && input.MaxResults !== null && { MaxResults: input.MaxResults })), (input.NextToken !== undefined && input.NextToken !== null && { NextToken: input.NextToken })), (input.TimeRange !== undefined &&
|
|
118
|
-
input.TimeRange !== null && { TimeRange: serializeAws_restJson1TimeRange(input.TimeRange, context) })));
|
|
115
|
+
body = JSON.stringify(__assign(__assign(__assign(__assign({}, (input.Filters != null && { Filters: serializeAws_restJson1QueryFilters(input.Filters, context) })), (input.MaxResults != null && { MaxResults: input.MaxResults })), (input.NextToken != null && { NextToken: input.NextToken })), (input.TimeRange != null && { TimeRange: serializeAws_restJson1TimeRange(input.TimeRange, context) })));
|
|
119
116
|
return [2, new __HttpRequest({
|
|
120
117
|
protocol: protocol,
|
|
121
118
|
hostname: hostname,
|
|
@@ -203,12 +200,9 @@ export var serializeAws_restJson1PutRumEventsCommand = function (input, context)
|
|
|
203
200
|
else {
|
|
204
201
|
throw new Error("No value provided for input HTTP label: Id.");
|
|
205
202
|
}
|
|
206
|
-
body = JSON.stringify(__assign(__assign(__assign(__assign({}, (input.AppMonitorDetails
|
|
207
|
-
input.AppMonitorDetails !== null && {
|
|
203
|
+
body = JSON.stringify(__assign(__assign(__assign(__assign({}, (input.AppMonitorDetails != null && {
|
|
208
204
|
AppMonitorDetails: serializeAws_restJson1AppMonitorDetails(input.AppMonitorDetails, context),
|
|
209
|
-
})), (input.BatchId
|
|
210
|
-
input.RumEvents !== null && { RumEvents: serializeAws_restJson1RumEventList(input.RumEvents, context) })), (input.UserDetails !== undefined &&
|
|
211
|
-
input.UserDetails !== null && { UserDetails: serializeAws_restJson1UserDetails(input.UserDetails, context) })));
|
|
205
|
+
})), (input.BatchId != null && { BatchId: input.BatchId })), (input.RumEvents != null && { RumEvents: serializeAws_restJson1RumEventList(input.RumEvents, context) })), (input.UserDetails != null && { UserDetails: serializeAws_restJson1UserDetails(input.UserDetails, context) })));
|
|
212
206
|
return [4, context.endpoint()];
|
|
213
207
|
case 2:
|
|
214
208
|
resolvedHostname = (_c.sent()).hostname;
|
|
@@ -251,7 +245,7 @@ export var serializeAws_restJson1TagResourceCommand = function (input, context)
|
|
|
251
245
|
else {
|
|
252
246
|
throw new Error("No value provided for input HTTP label: ResourceArn.");
|
|
253
247
|
}
|
|
254
|
-
body = JSON.stringify(__assign({}, (input.Tags
|
|
248
|
+
body = JSON.stringify(__assign({}, (input.Tags != null && { Tags: serializeAws_restJson1TagMap(input.Tags, context) })));
|
|
255
249
|
return [2, new __HttpRequest({
|
|
256
250
|
protocol: protocol,
|
|
257
251
|
hostname: hostname,
|
|
@@ -318,10 +312,9 @@ export var serializeAws_restJson1UpdateAppMonitorCommand = function (input, cont
|
|
|
318
312
|
else {
|
|
319
313
|
throw new Error("No value provided for input HTTP label: Name.");
|
|
320
314
|
}
|
|
321
|
-
body = JSON.stringify(__assign(__assign(__assign({}, (input.AppMonitorConfiguration
|
|
322
|
-
input.AppMonitorConfiguration !== null && {
|
|
315
|
+
body = JSON.stringify(__assign(__assign(__assign({}, (input.AppMonitorConfiguration != null && {
|
|
323
316
|
AppMonitorConfiguration: serializeAws_restJson1AppMonitorConfiguration(input.AppMonitorConfiguration, context),
|
|
324
|
-
})), (input.CwLogEnabled
|
|
317
|
+
})), (input.CwLogEnabled != null && { CwLogEnabled: input.CwLogEnabled })), (input.Domain != null && { Domain: input.Domain })));
|
|
325
318
|
return [2, new __HttpRequest({
|
|
326
319
|
protocol: protocol,
|
|
327
320
|
hostname: hostname,
|
|
@@ -359,7 +352,7 @@ export var deserializeAws_restJson1CreateAppMonitorCommand = function (output, c
|
|
|
359
352
|
});
|
|
360
353
|
}); };
|
|
361
354
|
var deserializeAws_restJson1CreateAppMonitorCommandError = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
362
|
-
var parsedOutput, _a, response, errorCode, _b, parsedBody;
|
|
355
|
+
var parsedOutput, _a, response, errorCode, _b, parsedBody, $metadata, statusCode;
|
|
363
356
|
var _c;
|
|
364
357
|
return __generator(this, function (_d) {
|
|
365
358
|
switch (_d.label) {
|
|
@@ -369,7 +362,6 @@ var deserializeAws_restJson1CreateAppMonitorCommandError = function (output, con
|
|
|
369
362
|
return [4, parseBody(output.body, context)];
|
|
370
363
|
case 1:
|
|
371
364
|
parsedOutput = __assign.apply(void 0, _a.concat([(_c.body = _d.sent(), _c)]));
|
|
372
|
-
errorCode = "UnknownError";
|
|
373
365
|
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
374
366
|
_b = errorCode;
|
|
375
367
|
switch (_b) {
|
|
@@ -401,10 +393,12 @@ var deserializeAws_restJson1CreateAppMonitorCommandError = function (output, con
|
|
|
401
393
|
case 13: throw _d.sent();
|
|
402
394
|
case 14:
|
|
403
395
|
parsedBody = parsedOutput.body;
|
|
396
|
+
$metadata = deserializeMetadata(output);
|
|
397
|
+
statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
404
398
|
response = new __BaseException({
|
|
405
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
399
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
406
400
|
$fault: "client",
|
|
407
|
-
$metadata:
|
|
401
|
+
$metadata: $metadata,
|
|
408
402
|
});
|
|
409
403
|
throw __decorateServiceException(response, parsedBody);
|
|
410
404
|
}
|
|
@@ -429,7 +423,7 @@ export var deserializeAws_restJson1DeleteAppMonitorCommand = function (output, c
|
|
|
429
423
|
});
|
|
430
424
|
}); };
|
|
431
425
|
var deserializeAws_restJson1DeleteAppMonitorCommandError = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
432
|
-
var parsedOutput, _a, response, errorCode, _b, parsedBody;
|
|
426
|
+
var parsedOutput, _a, response, errorCode, _b, parsedBody, $metadata, statusCode;
|
|
433
427
|
var _c;
|
|
434
428
|
return __generator(this, function (_d) {
|
|
435
429
|
switch (_d.label) {
|
|
@@ -439,7 +433,6 @@ var deserializeAws_restJson1DeleteAppMonitorCommandError = function (output, con
|
|
|
439
433
|
return [4, parseBody(output.body, context)];
|
|
440
434
|
case 1:
|
|
441
435
|
parsedOutput = __assign.apply(void 0, _a.concat([(_c.body = _d.sent(), _c)]));
|
|
442
|
-
errorCode = "UnknownError";
|
|
443
436
|
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
444
437
|
_b = errorCode;
|
|
445
438
|
switch (_b) {
|
|
@@ -471,10 +464,12 @@ var deserializeAws_restJson1DeleteAppMonitorCommandError = function (output, con
|
|
|
471
464
|
case 13: throw _d.sent();
|
|
472
465
|
case 14:
|
|
473
466
|
parsedBody = parsedOutput.body;
|
|
467
|
+
$metadata = deserializeMetadata(output);
|
|
468
|
+
statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
474
469
|
response = new __BaseException({
|
|
475
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
470
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
476
471
|
$fault: "client",
|
|
477
|
-
$metadata:
|
|
472
|
+
$metadata: $metadata,
|
|
478
473
|
});
|
|
479
474
|
throw __decorateServiceException(response, parsedBody);
|
|
480
475
|
}
|
|
@@ -505,7 +500,7 @@ export var deserializeAws_restJson1GetAppMonitorCommand = function (output, cont
|
|
|
505
500
|
});
|
|
506
501
|
}); };
|
|
507
502
|
var deserializeAws_restJson1GetAppMonitorCommandError = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
508
|
-
var parsedOutput, _a, response, errorCode, _b, parsedBody;
|
|
503
|
+
var parsedOutput, _a, response, errorCode, _b, parsedBody, $metadata, statusCode;
|
|
509
504
|
var _c;
|
|
510
505
|
return __generator(this, function (_d) {
|
|
511
506
|
switch (_d.label) {
|
|
@@ -515,7 +510,6 @@ var deserializeAws_restJson1GetAppMonitorCommandError = function (output, contex
|
|
|
515
510
|
return [4, parseBody(output.body, context)];
|
|
516
511
|
case 1:
|
|
517
512
|
parsedOutput = __assign.apply(void 0, _a.concat([(_c.body = _d.sent(), _c)]));
|
|
518
|
-
errorCode = "UnknownError";
|
|
519
513
|
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
520
514
|
_b = errorCode;
|
|
521
515
|
switch (_b) {
|
|
@@ -543,10 +537,12 @@ var deserializeAws_restJson1GetAppMonitorCommandError = function (output, contex
|
|
|
543
537
|
case 11: throw _d.sent();
|
|
544
538
|
case 12:
|
|
545
539
|
parsedBody = parsedOutput.body;
|
|
540
|
+
$metadata = deserializeMetadata(output);
|
|
541
|
+
statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
546
542
|
response = new __BaseException({
|
|
547
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
543
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
548
544
|
$fault: "client",
|
|
549
|
-
$metadata:
|
|
545
|
+
$metadata: $metadata,
|
|
550
546
|
});
|
|
551
547
|
throw __decorateServiceException(response, parsedBody);
|
|
552
548
|
}
|
|
@@ -581,7 +577,7 @@ export var deserializeAws_restJson1GetAppMonitorDataCommand = function (output,
|
|
|
581
577
|
});
|
|
582
578
|
}); };
|
|
583
579
|
var deserializeAws_restJson1GetAppMonitorDataCommandError = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
584
|
-
var parsedOutput, _a, response, errorCode, _b, parsedBody;
|
|
580
|
+
var parsedOutput, _a, response, errorCode, _b, parsedBody, $metadata, statusCode;
|
|
585
581
|
var _c;
|
|
586
582
|
return __generator(this, function (_d) {
|
|
587
583
|
switch (_d.label) {
|
|
@@ -591,7 +587,6 @@ var deserializeAws_restJson1GetAppMonitorDataCommandError = function (output, co
|
|
|
591
587
|
return [4, parseBody(output.body, context)];
|
|
592
588
|
case 1:
|
|
593
589
|
parsedOutput = __assign.apply(void 0, _a.concat([(_c.body = _d.sent(), _c)]));
|
|
594
|
-
errorCode = "UnknownError";
|
|
595
590
|
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
596
591
|
_b = errorCode;
|
|
597
592
|
switch (_b) {
|
|
@@ -619,10 +614,12 @@ var deserializeAws_restJson1GetAppMonitorDataCommandError = function (output, co
|
|
|
619
614
|
case 11: throw _d.sent();
|
|
620
615
|
case 12:
|
|
621
616
|
parsedBody = parsedOutput.body;
|
|
617
|
+
$metadata = deserializeMetadata(output);
|
|
618
|
+
statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
622
619
|
response = new __BaseException({
|
|
623
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
620
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
624
621
|
$fault: "client",
|
|
625
|
-
$metadata:
|
|
622
|
+
$metadata: $metadata,
|
|
626
623
|
});
|
|
627
624
|
throw __decorateServiceException(response, parsedBody);
|
|
628
625
|
}
|
|
@@ -657,7 +654,7 @@ export var deserializeAws_restJson1ListAppMonitorsCommand = function (output, co
|
|
|
657
654
|
});
|
|
658
655
|
}); };
|
|
659
656
|
var deserializeAws_restJson1ListAppMonitorsCommandError = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
660
|
-
var parsedOutput, _a, response, errorCode, _b, parsedBody;
|
|
657
|
+
var parsedOutput, _a, response, errorCode, _b, parsedBody, $metadata, statusCode;
|
|
661
658
|
var _c;
|
|
662
659
|
return __generator(this, function (_d) {
|
|
663
660
|
switch (_d.label) {
|
|
@@ -667,7 +664,6 @@ var deserializeAws_restJson1ListAppMonitorsCommandError = function (output, cont
|
|
|
667
664
|
return [4, parseBody(output.body, context)];
|
|
668
665
|
case 1:
|
|
669
666
|
parsedOutput = __assign.apply(void 0, _a.concat([(_c.body = _d.sent(), _c)]));
|
|
670
|
-
errorCode = "UnknownError";
|
|
671
667
|
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
672
668
|
_b = errorCode;
|
|
673
669
|
switch (_b) {
|
|
@@ -691,10 +687,12 @@ var deserializeAws_restJson1ListAppMonitorsCommandError = function (output, cont
|
|
|
691
687
|
case 9: throw _d.sent();
|
|
692
688
|
case 10:
|
|
693
689
|
parsedBody = parsedOutput.body;
|
|
690
|
+
$metadata = deserializeMetadata(output);
|
|
691
|
+
statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
694
692
|
response = new __BaseException({
|
|
695
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
693
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
696
694
|
$fault: "client",
|
|
697
|
-
$metadata:
|
|
695
|
+
$metadata: $metadata,
|
|
698
696
|
});
|
|
699
697
|
throw __decorateServiceException(response, parsedBody);
|
|
700
698
|
}
|
|
@@ -729,7 +727,7 @@ export var deserializeAws_restJson1ListTagsForResourceCommand = function (output
|
|
|
729
727
|
});
|
|
730
728
|
}); };
|
|
731
729
|
var deserializeAws_restJson1ListTagsForResourceCommandError = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
732
|
-
var parsedOutput, _a, response, errorCode, _b, parsedBody;
|
|
730
|
+
var parsedOutput, _a, response, errorCode, _b, parsedBody, $metadata, statusCode;
|
|
733
731
|
var _c;
|
|
734
732
|
return __generator(this, function (_d) {
|
|
735
733
|
switch (_d.label) {
|
|
@@ -739,7 +737,6 @@ var deserializeAws_restJson1ListTagsForResourceCommandError = function (output,
|
|
|
739
737
|
return [4, parseBody(output.body, context)];
|
|
740
738
|
case 1:
|
|
741
739
|
parsedOutput = __assign.apply(void 0, _a.concat([(_c.body = _d.sent(), _c)]));
|
|
742
|
-
errorCode = "UnknownError";
|
|
743
740
|
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
744
741
|
_b = errorCode;
|
|
745
742
|
switch (_b) {
|
|
@@ -759,10 +756,12 @@ var deserializeAws_restJson1ListTagsForResourceCommandError = function (output,
|
|
|
759
756
|
case 7: throw _d.sent();
|
|
760
757
|
case 8:
|
|
761
758
|
parsedBody = parsedOutput.body;
|
|
759
|
+
$metadata = deserializeMetadata(output);
|
|
760
|
+
statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
762
761
|
response = new __BaseException({
|
|
763
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
762
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
764
763
|
$fault: "client",
|
|
765
|
-
$metadata:
|
|
764
|
+
$metadata: $metadata,
|
|
766
765
|
});
|
|
767
766
|
throw __decorateServiceException(response, parsedBody);
|
|
768
767
|
}
|
|
@@ -787,7 +786,7 @@ export var deserializeAws_restJson1PutRumEventsCommand = function (output, conte
|
|
|
787
786
|
});
|
|
788
787
|
}); };
|
|
789
788
|
var deserializeAws_restJson1PutRumEventsCommandError = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
790
|
-
var parsedOutput, _a, response, errorCode, _b, parsedBody;
|
|
789
|
+
var parsedOutput, _a, response, errorCode, _b, parsedBody, $metadata, statusCode;
|
|
791
790
|
var _c;
|
|
792
791
|
return __generator(this, function (_d) {
|
|
793
792
|
switch (_d.label) {
|
|
@@ -797,7 +796,6 @@ var deserializeAws_restJson1PutRumEventsCommandError = function (output, context
|
|
|
797
796
|
return [4, parseBody(output.body, context)];
|
|
798
797
|
case 1:
|
|
799
798
|
parsedOutput = __assign.apply(void 0, _a.concat([(_c.body = _d.sent(), _c)]));
|
|
800
|
-
errorCode = "UnknownError";
|
|
801
799
|
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
802
800
|
_b = errorCode;
|
|
803
801
|
switch (_b) {
|
|
@@ -825,10 +823,12 @@ var deserializeAws_restJson1PutRumEventsCommandError = function (output, context
|
|
|
825
823
|
case 11: throw _d.sent();
|
|
826
824
|
case 12:
|
|
827
825
|
parsedBody = parsedOutput.body;
|
|
826
|
+
$metadata = deserializeMetadata(output);
|
|
827
|
+
statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
828
828
|
response = new __BaseException({
|
|
829
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
829
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
830
830
|
$fault: "client",
|
|
831
|
-
$metadata:
|
|
831
|
+
$metadata: $metadata,
|
|
832
832
|
});
|
|
833
833
|
throw __decorateServiceException(response, parsedBody);
|
|
834
834
|
}
|
|
@@ -853,7 +853,7 @@ export var deserializeAws_restJson1TagResourceCommand = function (output, contex
|
|
|
853
853
|
});
|
|
854
854
|
}); };
|
|
855
855
|
var deserializeAws_restJson1TagResourceCommandError = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
856
|
-
var parsedOutput, _a, response, errorCode, _b, parsedBody;
|
|
856
|
+
var parsedOutput, _a, response, errorCode, _b, parsedBody, $metadata, statusCode;
|
|
857
857
|
var _c;
|
|
858
858
|
return __generator(this, function (_d) {
|
|
859
859
|
switch (_d.label) {
|
|
@@ -863,7 +863,6 @@ var deserializeAws_restJson1TagResourceCommandError = function (output, context)
|
|
|
863
863
|
return [4, parseBody(output.body, context)];
|
|
864
864
|
case 1:
|
|
865
865
|
parsedOutput = __assign.apply(void 0, _a.concat([(_c.body = _d.sent(), _c)]));
|
|
866
|
-
errorCode = "UnknownError";
|
|
867
866
|
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
868
867
|
_b = errorCode;
|
|
869
868
|
switch (_b) {
|
|
@@ -883,10 +882,12 @@ var deserializeAws_restJson1TagResourceCommandError = function (output, context)
|
|
|
883
882
|
case 7: throw _d.sent();
|
|
884
883
|
case 8:
|
|
885
884
|
parsedBody = parsedOutput.body;
|
|
885
|
+
$metadata = deserializeMetadata(output);
|
|
886
|
+
statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
886
887
|
response = new __BaseException({
|
|
887
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
888
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
888
889
|
$fault: "client",
|
|
889
|
-
$metadata:
|
|
890
|
+
$metadata: $metadata,
|
|
890
891
|
});
|
|
891
892
|
throw __decorateServiceException(response, parsedBody);
|
|
892
893
|
}
|
|
@@ -911,7 +912,7 @@ export var deserializeAws_restJson1UntagResourceCommand = function (output, cont
|
|
|
911
912
|
});
|
|
912
913
|
}); };
|
|
913
914
|
var deserializeAws_restJson1UntagResourceCommandError = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
914
|
-
var parsedOutput, _a, response, errorCode, _b, parsedBody;
|
|
915
|
+
var parsedOutput, _a, response, errorCode, _b, parsedBody, $metadata, statusCode;
|
|
915
916
|
var _c;
|
|
916
917
|
return __generator(this, function (_d) {
|
|
917
918
|
switch (_d.label) {
|
|
@@ -921,7 +922,6 @@ var deserializeAws_restJson1UntagResourceCommandError = function (output, contex
|
|
|
921
922
|
return [4, parseBody(output.body, context)];
|
|
922
923
|
case 1:
|
|
923
924
|
parsedOutput = __assign.apply(void 0, _a.concat([(_c.body = _d.sent(), _c)]));
|
|
924
|
-
errorCode = "UnknownError";
|
|
925
925
|
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
926
926
|
_b = errorCode;
|
|
927
927
|
switch (_b) {
|
|
@@ -941,10 +941,12 @@ var deserializeAws_restJson1UntagResourceCommandError = function (output, contex
|
|
|
941
941
|
case 7: throw _d.sent();
|
|
942
942
|
case 8:
|
|
943
943
|
parsedBody = parsedOutput.body;
|
|
944
|
+
$metadata = deserializeMetadata(output);
|
|
945
|
+
statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
944
946
|
response = new __BaseException({
|
|
945
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
947
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
946
948
|
$fault: "client",
|
|
947
|
-
$metadata:
|
|
949
|
+
$metadata: $metadata,
|
|
948
950
|
});
|
|
949
951
|
throw __decorateServiceException(response, parsedBody);
|
|
950
952
|
}
|
|
@@ -969,7 +971,7 @@ export var deserializeAws_restJson1UpdateAppMonitorCommand = function (output, c
|
|
|
969
971
|
});
|
|
970
972
|
}); };
|
|
971
973
|
var deserializeAws_restJson1UpdateAppMonitorCommandError = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
972
|
-
var parsedOutput, _a, response, errorCode, _b, parsedBody;
|
|
974
|
+
var parsedOutput, _a, response, errorCode, _b, parsedBody, $metadata, statusCode;
|
|
973
975
|
var _c;
|
|
974
976
|
return __generator(this, function (_d) {
|
|
975
977
|
switch (_d.label) {
|
|
@@ -979,7 +981,6 @@ var deserializeAws_restJson1UpdateAppMonitorCommandError = function (output, con
|
|
|
979
981
|
return [4, parseBody(output.body, context)];
|
|
980
982
|
case 1:
|
|
981
983
|
parsedOutput = __assign.apply(void 0, _a.concat([(_c.body = _d.sent(), _c)]));
|
|
982
|
-
errorCode = "UnknownError";
|
|
983
984
|
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
984
985
|
_b = errorCode;
|
|
985
986
|
switch (_b) {
|
|
@@ -1011,10 +1012,12 @@ var deserializeAws_restJson1UpdateAppMonitorCommandError = function (output, con
|
|
|
1011
1012
|
case 13: throw _d.sent();
|
|
1012
1013
|
case 14:
|
|
1013
1014
|
parsedBody = parsedOutput.body;
|
|
1015
|
+
$metadata = deserializeMetadata(output);
|
|
1016
|
+
statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
1014
1017
|
response = new __BaseException({
|
|
1015
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
1018
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
1016
1019
|
$fault: "client",
|
|
1017
|
-
$metadata:
|
|
1020
|
+
$metadata: $metadata,
|
|
1018
1021
|
});
|
|
1019
1022
|
throw __decorateServiceException(response, parsedBody);
|
|
1020
1023
|
}
|
|
@@ -1129,18 +1132,12 @@ var deserializeAws_restJson1ValidationExceptionResponse = function (parsedOutput
|
|
|
1129
1132
|
});
|
|
1130
1133
|
}); };
|
|
1131
1134
|
var serializeAws_restJson1AppMonitorConfiguration = function (input, context) {
|
|
1132
|
-
return __assign(__assign(__assign(__assign(__assign(__assign(__assign(__assign(__assign({}, (input.AllowCookies
|
|
1133
|
-
input.ExcludedPages !== null && { ExcludedPages: serializeAws_restJson1Pages(input.ExcludedPages, context) })), (input.FavoritePages !== undefined &&
|
|
1134
|
-
input.FavoritePages !== null && {
|
|
1135
|
+
return __assign(__assign(__assign(__assign(__assign(__assign(__assign(__assign(__assign({}, (input.AllowCookies != null && { AllowCookies: input.AllowCookies })), (input.EnableXRay != null && { EnableXRay: input.EnableXRay })), (input.ExcludedPages != null && { ExcludedPages: serializeAws_restJson1Pages(input.ExcludedPages, context) })), (input.FavoritePages != null && {
|
|
1135
1136
|
FavoritePages: serializeAws_restJson1FavoritePages(input.FavoritePages, context),
|
|
1136
|
-
})), (input.GuestRoleArn
|
|
1137
|
-
input.IdentityPoolId !== null && { IdentityPoolId: input.IdentityPoolId })), (input.IncludedPages !== undefined &&
|
|
1138
|
-
input.IncludedPages !== null && { IncludedPages: serializeAws_restJson1Pages(input.IncludedPages, context) })), (input.SessionSampleRate !== undefined &&
|
|
1139
|
-
input.SessionSampleRate !== null && { SessionSampleRate: __serializeFloat(input.SessionSampleRate) })), (input.Telemetries !== undefined &&
|
|
1140
|
-
input.Telemetries !== null && { Telemetries: serializeAws_restJson1Telemetries(input.Telemetries, context) }));
|
|
1137
|
+
})), (input.GuestRoleArn != null && { GuestRoleArn: input.GuestRoleArn })), (input.IdentityPoolId != null && { IdentityPoolId: input.IdentityPoolId })), (input.IncludedPages != null && { IncludedPages: serializeAws_restJson1Pages(input.IncludedPages, context) })), (input.SessionSampleRate != null && { SessionSampleRate: __serializeFloat(input.SessionSampleRate) })), (input.Telemetries != null && { Telemetries: serializeAws_restJson1Telemetries(input.Telemetries, context) }));
|
|
1141
1138
|
};
|
|
1142
1139
|
var serializeAws_restJson1AppMonitorDetails = function (input, context) {
|
|
1143
|
-
return __assign(__assign(__assign({}, (input.id
|
|
1140
|
+
return __assign(__assign(__assign({}, (input.id != null && { id: input.id })), (input.name != null && { name: input.name })), (input.version != null && { version: input.version }));
|
|
1144
1141
|
};
|
|
1145
1142
|
var serializeAws_restJson1FavoritePages = function (input, context) {
|
|
1146
1143
|
return input
|
|
@@ -1163,8 +1160,7 @@ var serializeAws_restJson1Pages = function (input, context) {
|
|
|
1163
1160
|
});
|
|
1164
1161
|
};
|
|
1165
1162
|
var serializeAws_restJson1QueryFilter = function (input, context) {
|
|
1166
|
-
return __assign(__assign({}, (input.Name
|
|
1167
|
-
input.Values !== null && { Values: serializeAws_restJson1QueryFilterValueList(input.Values, context) }));
|
|
1163
|
+
return __assign(__assign({}, (input.Name != null && { Name: input.Name })), (input.Values != null && { Values: serializeAws_restJson1QueryFilterValueList(input.Values, context) }));
|
|
1168
1164
|
};
|
|
1169
1165
|
var serializeAws_restJson1QueryFilters = function (input, context) {
|
|
1170
1166
|
return input
|
|
@@ -1187,10 +1183,7 @@ var serializeAws_restJson1QueryFilterValueList = function (input, context) {
|
|
|
1187
1183
|
});
|
|
1188
1184
|
};
|
|
1189
1185
|
var serializeAws_restJson1RumEvent = function (input, context) {
|
|
1190
|
-
return __assign(__assign(__assign(__assign(__assign({}, (input.details
|
|
1191
|
-
input.details !== null && { details: __LazyJsonString.fromObject(input.details) })), (input.id !== undefined && input.id !== null && { id: input.id })), (input.metadata !== undefined &&
|
|
1192
|
-
input.metadata !== null && { metadata: __LazyJsonString.fromObject(input.metadata) })), (input.timestamp !== undefined &&
|
|
1193
|
-
input.timestamp !== null && { timestamp: Math.round(input.timestamp.getTime() / 1000) })), (input.type !== undefined && input.type !== null && { type: input.type }));
|
|
1186
|
+
return __assign(__assign(__assign(__assign(__assign({}, (input.details != null && { details: __LazyJsonString.fromObject(input.details) })), (input.id != null && { id: input.id })), (input.metadata != null && { metadata: __LazyJsonString.fromObject(input.metadata) })), (input.timestamp != null && { timestamp: Math.round(input.timestamp.getTime() / 1000) })), (input.type != null && { type: input.type }));
|
|
1194
1187
|
};
|
|
1195
1188
|
var serializeAws_restJson1RumEventList = function (input, context) {
|
|
1196
1189
|
return input
|
|
@@ -1223,49 +1216,37 @@ var serializeAws_restJson1Telemetries = function (input, context) {
|
|
|
1223
1216
|
});
|
|
1224
1217
|
};
|
|
1225
1218
|
var serializeAws_restJson1TimeRange = function (input, context) {
|
|
1226
|
-
return __assign(__assign({}, (input.After
|
|
1219
|
+
return __assign(__assign({}, (input.After != null && { After: input.After })), (input.Before != null && { Before: input.Before }));
|
|
1227
1220
|
};
|
|
1228
1221
|
var serializeAws_restJson1UserDetails = function (input, context) {
|
|
1229
|
-
return __assign(__assign({}, (input.sessionId
|
|
1222
|
+
return __assign(__assign({}, (input.sessionId != null && { sessionId: input.sessionId })), (input.userId != null && { userId: input.userId }));
|
|
1230
1223
|
};
|
|
1231
1224
|
var deserializeAws_restJson1AppMonitor = function (output, context) {
|
|
1232
1225
|
return {
|
|
1233
|
-
AppMonitorConfiguration: output.AppMonitorConfiguration
|
|
1226
|
+
AppMonitorConfiguration: output.AppMonitorConfiguration != null
|
|
1234
1227
|
? deserializeAws_restJson1AppMonitorConfiguration(output.AppMonitorConfiguration, context)
|
|
1235
1228
|
: undefined,
|
|
1236
1229
|
Created: __expectString(output.Created),
|
|
1237
|
-
DataStorage: output.DataStorage
|
|
1238
|
-
? deserializeAws_restJson1DataStorage(output.DataStorage, context)
|
|
1239
|
-
: undefined,
|
|
1230
|
+
DataStorage: output.DataStorage != null ? deserializeAws_restJson1DataStorage(output.DataStorage, context) : undefined,
|
|
1240
1231
|
Domain: __expectString(output.Domain),
|
|
1241
1232
|
Id: __expectString(output.Id),
|
|
1242
1233
|
LastModified: __expectString(output.LastModified),
|
|
1243
1234
|
Name: __expectString(output.Name),
|
|
1244
1235
|
State: __expectString(output.State),
|
|
1245
|
-
Tags: output.Tags
|
|
1246
|
-
? deserializeAws_restJson1TagMap(output.Tags, context)
|
|
1247
|
-
: undefined,
|
|
1236
|
+
Tags: output.Tags != null ? deserializeAws_restJson1TagMap(output.Tags, context) : undefined,
|
|
1248
1237
|
};
|
|
1249
1238
|
};
|
|
1250
1239
|
var deserializeAws_restJson1AppMonitorConfiguration = function (output, context) {
|
|
1251
1240
|
return {
|
|
1252
1241
|
AllowCookies: __expectBoolean(output.AllowCookies),
|
|
1253
1242
|
EnableXRay: __expectBoolean(output.EnableXRay),
|
|
1254
|
-
ExcludedPages: output.ExcludedPages
|
|
1255
|
-
|
|
1256
|
-
: undefined,
|
|
1257
|
-
FavoritePages: output.FavoritePages !== undefined && output.FavoritePages !== null
|
|
1258
|
-
? deserializeAws_restJson1FavoritePages(output.FavoritePages, context)
|
|
1259
|
-
: undefined,
|
|
1243
|
+
ExcludedPages: output.ExcludedPages != null ? deserializeAws_restJson1Pages(output.ExcludedPages, context) : undefined,
|
|
1244
|
+
FavoritePages: output.FavoritePages != null ? deserializeAws_restJson1FavoritePages(output.FavoritePages, context) : undefined,
|
|
1260
1245
|
GuestRoleArn: __expectString(output.GuestRoleArn),
|
|
1261
1246
|
IdentityPoolId: __expectString(output.IdentityPoolId),
|
|
1262
|
-
IncludedPages: output.IncludedPages
|
|
1263
|
-
? deserializeAws_restJson1Pages(output.IncludedPages, context)
|
|
1264
|
-
: undefined,
|
|
1247
|
+
IncludedPages: output.IncludedPages != null ? deserializeAws_restJson1Pages(output.IncludedPages, context) : undefined,
|
|
1265
1248
|
SessionSampleRate: __limitedParseDouble(output.SessionSampleRate),
|
|
1266
|
-
Telemetries: output.Telemetries
|
|
1267
|
-
? deserializeAws_restJson1Telemetries(output.Telemetries, context)
|
|
1268
|
-
: undefined,
|
|
1249
|
+
Telemetries: output.Telemetries != null ? deserializeAws_restJson1Telemetries(output.Telemetries, context) : undefined,
|
|
1269
1250
|
};
|
|
1270
1251
|
};
|
|
1271
1252
|
var deserializeAws_restJson1AppMonitorSummary = function (output, context) {
|
|
@@ -1296,9 +1277,7 @@ var deserializeAws_restJson1CwLog = function (output, context) {
|
|
|
1296
1277
|
};
|
|
1297
1278
|
var deserializeAws_restJson1DataStorage = function (output, context) {
|
|
1298
1279
|
return {
|
|
1299
|
-
CwLog: output.CwLog
|
|
1300
|
-
? deserializeAws_restJson1CwLog(output.CwLog, context)
|
|
1301
|
-
: undefined,
|
|
1280
|
+
CwLog: output.CwLog != null ? deserializeAws_restJson1CwLog(output.CwLog, context) : undefined,
|
|
1302
1281
|
};
|
|
1303
1282
|
};
|
|
1304
1283
|
var deserializeAws_restJson1EventDataList = function (output, context) {
|
|
@@ -1411,5 +1390,4 @@ var loadRestJsonErrorCode = function (output, data) {
|
|
|
1411
1390
|
if (data["__type"] !== undefined) {
|
|
1412
1391
|
return sanitizeErrorCode(data["__type"]);
|
|
1413
1392
|
}
|
|
1414
|
-
return "";
|
|
1415
1393
|
};
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@aws-sdk/client-rum",
|
|
3
3
|
"description": "AWS SDK for JavaScript Rum Client for Node.js, Browser and React Native",
|
|
4
|
-
"version": "3.
|
|
4
|
+
"version": "3.127.0",
|
|
5
5
|
"scripts": {
|
|
6
6
|
"build": "concurrently 'yarn:build:cjs' 'yarn:build:es' 'yarn:build:types'",
|
|
7
7
|
"build:cjs": "tsc -p tsconfig.cjs.json",
|
|
@@ -18,35 +18,35 @@
|
|
|
18
18
|
"dependencies": {
|
|
19
19
|
"@aws-crypto/sha256-browser": "2.0.0",
|
|
20
20
|
"@aws-crypto/sha256-js": "2.0.0",
|
|
21
|
-
"@aws-sdk/client-sts": "3.
|
|
22
|
-
"@aws-sdk/config-resolver": "3.
|
|
23
|
-
"@aws-sdk/credential-provider-node": "3.
|
|
24
|
-
"@aws-sdk/fetch-http-handler": "3.
|
|
25
|
-
"@aws-sdk/hash-node": "3.
|
|
26
|
-
"@aws-sdk/invalid-dependency": "3.
|
|
27
|
-
"@aws-sdk/middleware-content-length": "3.
|
|
28
|
-
"@aws-sdk/middleware-host-header": "3.
|
|
29
|
-
"@aws-sdk/middleware-logger": "3.
|
|
30
|
-
"@aws-sdk/middleware-recursion-detection": "3.
|
|
31
|
-
"@aws-sdk/middleware-retry": "3.
|
|
32
|
-
"@aws-sdk/middleware-serde": "3.
|
|
33
|
-
"@aws-sdk/middleware-signing": "3.
|
|
34
|
-
"@aws-sdk/middleware-stack": "3.
|
|
35
|
-
"@aws-sdk/middleware-user-agent": "3.
|
|
36
|
-
"@aws-sdk/node-config-provider": "3.
|
|
37
|
-
"@aws-sdk/node-http-handler": "3.
|
|
38
|
-
"@aws-sdk/protocol-http": "3.
|
|
39
|
-
"@aws-sdk/smithy-client": "3.
|
|
40
|
-
"@aws-sdk/types": "3.
|
|
41
|
-
"@aws-sdk/url-parser": "3.
|
|
21
|
+
"@aws-sdk/client-sts": "3.127.0",
|
|
22
|
+
"@aws-sdk/config-resolver": "3.127.0",
|
|
23
|
+
"@aws-sdk/credential-provider-node": "3.127.0",
|
|
24
|
+
"@aws-sdk/fetch-http-handler": "3.127.0",
|
|
25
|
+
"@aws-sdk/hash-node": "3.127.0",
|
|
26
|
+
"@aws-sdk/invalid-dependency": "3.127.0",
|
|
27
|
+
"@aws-sdk/middleware-content-length": "3.127.0",
|
|
28
|
+
"@aws-sdk/middleware-host-header": "3.127.0",
|
|
29
|
+
"@aws-sdk/middleware-logger": "3.127.0",
|
|
30
|
+
"@aws-sdk/middleware-recursion-detection": "3.127.0",
|
|
31
|
+
"@aws-sdk/middleware-retry": "3.127.0",
|
|
32
|
+
"@aws-sdk/middleware-serde": "3.127.0",
|
|
33
|
+
"@aws-sdk/middleware-signing": "3.127.0",
|
|
34
|
+
"@aws-sdk/middleware-stack": "3.127.0",
|
|
35
|
+
"@aws-sdk/middleware-user-agent": "3.127.0",
|
|
36
|
+
"@aws-sdk/node-config-provider": "3.127.0",
|
|
37
|
+
"@aws-sdk/node-http-handler": "3.127.0",
|
|
38
|
+
"@aws-sdk/protocol-http": "3.127.0",
|
|
39
|
+
"@aws-sdk/smithy-client": "3.127.0",
|
|
40
|
+
"@aws-sdk/types": "3.127.0",
|
|
41
|
+
"@aws-sdk/url-parser": "3.127.0",
|
|
42
42
|
"@aws-sdk/util-base64-browser": "3.109.0",
|
|
43
43
|
"@aws-sdk/util-base64-node": "3.55.0",
|
|
44
44
|
"@aws-sdk/util-body-length-browser": "3.55.0",
|
|
45
45
|
"@aws-sdk/util-body-length-node": "3.55.0",
|
|
46
|
-
"@aws-sdk/util-defaults-mode-browser": "3.
|
|
47
|
-
"@aws-sdk/util-defaults-mode-node": "3.
|
|
48
|
-
"@aws-sdk/util-user-agent-browser": "3.
|
|
49
|
-
"@aws-sdk/util-user-agent-node": "3.
|
|
46
|
+
"@aws-sdk/util-defaults-mode-browser": "3.127.0",
|
|
47
|
+
"@aws-sdk/util-defaults-mode-node": "3.127.0",
|
|
48
|
+
"@aws-sdk/util-user-agent-browser": "3.127.0",
|
|
49
|
+
"@aws-sdk/util-user-agent-node": "3.127.0",
|
|
50
50
|
"@aws-sdk/util-utf8-browser": "3.109.0",
|
|
51
51
|
"@aws-sdk/util-utf8-node": "3.109.0",
|
|
52
52
|
"tslib": "^2.3.1"
|