@aws-sdk/client-rum 3.310.0 → 3.315.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist-cjs/protocols/Aws_restJson1.js +209 -543
- package/dist-es/protocols/Aws_restJson1.js +180 -514
- package/package.json +6 -6
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { HttpRequest as __HttpRequest, isValidHostname as __isValidHostname, } from "@aws-sdk/protocol-http";
|
|
2
|
-
import { decorateServiceException as __decorateServiceException, expectBoolean as __expectBoolean, expectNonNull as __expectNonNull, expectObject as __expectObject, expectString as __expectString, LazyJsonString as __LazyJsonString, limitedParseDouble as __limitedParseDouble, map
|
|
2
|
+
import { _json, decorateServiceException as __decorateServiceException, expectBoolean as __expectBoolean, expectNonNull as __expectNonNull, expectObject as __expectObject, expectString as __expectString, LazyJsonString as __LazyJsonString, limitedParseDouble as __limitedParseDouble, map, resolvedPath as __resolvedPath, serializeFloat as __serializeFloat, strictParseInt32 as __strictParseInt32, take, withBaseException, } from "@aws-sdk/smithy-client";
|
|
3
3
|
import { AccessDeniedException, ConflictException, InternalServerException, ResourceNotFoundException, ServiceQuotaExceededException, ThrottlingException, ValidationException, } from "../models/models_0";
|
|
4
4
|
import { RUMServiceException as __BaseException } from "../models/RUMServiceException";
|
|
5
5
|
export const se_BatchCreateRumMetricDefinitionsCommand = async (input, context) => {
|
|
@@ -10,13 +10,11 @@ export const se_BatchCreateRumMetricDefinitionsCommand = async (input, context)
|
|
|
10
10
|
let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/rummetrics/{AppMonitorName}/metrics";
|
|
11
11
|
resolvedPath = __resolvedPath(resolvedPath, input, "AppMonitorName", () => input.AppMonitorName, "{AppMonitorName}", false);
|
|
12
12
|
let body;
|
|
13
|
-
body = JSON.stringify({
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
}),
|
|
19
|
-
});
|
|
13
|
+
body = JSON.stringify(take(input, {
|
|
14
|
+
Destination: [],
|
|
15
|
+
DestinationArn: [],
|
|
16
|
+
MetricDefinitions: (_) => _json(_),
|
|
17
|
+
}));
|
|
20
18
|
return new __HttpRequest({
|
|
21
19
|
protocol,
|
|
22
20
|
hostname,
|
|
@@ -82,16 +80,14 @@ export const se_CreateAppMonitorCommand = async (input, context) => {
|
|
|
82
80
|
};
|
|
83
81
|
const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/appmonitor";
|
|
84
82
|
let body;
|
|
85
|
-
body = JSON.stringify({
|
|
86
|
-
|
|
87
|
-
|
|
88
|
-
|
|
89
|
-
|
|
90
|
-
|
|
91
|
-
|
|
92
|
-
|
|
93
|
-
...(input.Tags != null && { Tags: se_TagMap(input.Tags, context) }),
|
|
94
|
-
});
|
|
83
|
+
body = JSON.stringify(take(input, {
|
|
84
|
+
AppMonitorConfiguration: (_) => se_AppMonitorConfiguration(_, context),
|
|
85
|
+
CustomEvents: (_) => _json(_),
|
|
86
|
+
CwLogEnabled: [],
|
|
87
|
+
Domain: [],
|
|
88
|
+
Name: [],
|
|
89
|
+
Tags: (_) => _json(_),
|
|
90
|
+
}));
|
|
95
91
|
return new __HttpRequest({
|
|
96
92
|
protocol,
|
|
97
93
|
hostname,
|
|
@@ -164,12 +160,12 @@ export const se_GetAppMonitorDataCommand = async (input, context) => {
|
|
|
164
160
|
let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/appmonitor/{Name}/data";
|
|
165
161
|
resolvedPath = __resolvedPath(resolvedPath, input, "Name", () => input.Name, "{Name}", false);
|
|
166
162
|
let body;
|
|
167
|
-
body = JSON.stringify({
|
|
168
|
-
|
|
169
|
-
|
|
170
|
-
|
|
171
|
-
|
|
172
|
-
});
|
|
163
|
+
body = JSON.stringify(take(input, {
|
|
164
|
+
Filters: (_) => _json(_),
|
|
165
|
+
MaxResults: [],
|
|
166
|
+
NextToken: [],
|
|
167
|
+
TimeRange: (_) => _json(_),
|
|
168
|
+
}));
|
|
173
169
|
return new __HttpRequest({
|
|
174
170
|
protocol,
|
|
175
171
|
hostname,
|
|
@@ -246,14 +242,12 @@ export const se_PutRumEventsCommand = async (input, context) => {
|
|
|
246
242
|
let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/appmonitors/{Id}";
|
|
247
243
|
resolvedPath = __resolvedPath(resolvedPath, input, "Id", () => input.Id, "{Id}", false);
|
|
248
244
|
let body;
|
|
249
|
-
body = JSON.stringify({
|
|
250
|
-
|
|
251
|
-
|
|
252
|
-
|
|
253
|
-
|
|
254
|
-
|
|
255
|
-
...(input.UserDetails != null && { UserDetails: se_UserDetails(input.UserDetails, context) }),
|
|
256
|
-
});
|
|
245
|
+
body = JSON.stringify(take(input, {
|
|
246
|
+
AppMonitorDetails: (_) => _json(_),
|
|
247
|
+
BatchId: [],
|
|
248
|
+
RumEvents: (_) => se_RumEventList(_, context),
|
|
249
|
+
UserDetails: (_) => _json(_),
|
|
250
|
+
}));
|
|
257
251
|
let { hostname: resolvedHostname } = await context.endpoint();
|
|
258
252
|
if (context.disableHostPrefix !== true) {
|
|
259
253
|
resolvedHostname = "dataplane." + resolvedHostname;
|
|
@@ -280,11 +274,11 @@ export const se_PutRumMetricsDestinationCommand = async (input, context) => {
|
|
|
280
274
|
"/rummetrics/{AppMonitorName}/metricsdestination";
|
|
281
275
|
resolvedPath = __resolvedPath(resolvedPath, input, "AppMonitorName", () => input.AppMonitorName, "{AppMonitorName}", false);
|
|
282
276
|
let body;
|
|
283
|
-
body = JSON.stringify({
|
|
284
|
-
|
|
285
|
-
|
|
286
|
-
|
|
287
|
-
});
|
|
277
|
+
body = JSON.stringify(take(input, {
|
|
278
|
+
Destination: [],
|
|
279
|
+
DestinationArn: [],
|
|
280
|
+
IamRoleArn: [],
|
|
281
|
+
}));
|
|
288
282
|
return new __HttpRequest({
|
|
289
283
|
protocol,
|
|
290
284
|
hostname,
|
|
@@ -303,9 +297,9 @@ export const se_TagResourceCommand = async (input, context) => {
|
|
|
303
297
|
let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/tags/{ResourceArn}";
|
|
304
298
|
resolvedPath = __resolvedPath(resolvedPath, input, "ResourceArn", () => input.ResourceArn, "{ResourceArn}", false);
|
|
305
299
|
let body;
|
|
306
|
-
body = JSON.stringify({
|
|
307
|
-
|
|
308
|
-
});
|
|
300
|
+
body = JSON.stringify(take(input, {
|
|
301
|
+
Tags: (_) => _json(_),
|
|
302
|
+
}));
|
|
309
303
|
return new __HttpRequest({
|
|
310
304
|
protocol,
|
|
311
305
|
hostname,
|
|
@@ -347,14 +341,12 @@ export const se_UpdateAppMonitorCommand = async (input, context) => {
|
|
|
347
341
|
let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/appmonitor/{Name}";
|
|
348
342
|
resolvedPath = __resolvedPath(resolvedPath, input, "Name", () => input.Name, "{Name}", false);
|
|
349
343
|
let body;
|
|
350
|
-
body = JSON.stringify({
|
|
351
|
-
|
|
352
|
-
|
|
353
|
-
|
|
354
|
-
|
|
355
|
-
|
|
356
|
-
...(input.Domain != null && { Domain: input.Domain }),
|
|
357
|
-
});
|
|
344
|
+
body = JSON.stringify(take(input, {
|
|
345
|
+
AppMonitorConfiguration: (_) => se_AppMonitorConfiguration(_, context),
|
|
346
|
+
CustomEvents: (_) => _json(_),
|
|
347
|
+
CwLogEnabled: [],
|
|
348
|
+
Domain: [],
|
|
349
|
+
}));
|
|
358
350
|
return new __HttpRequest({
|
|
359
351
|
protocol,
|
|
360
352
|
hostname,
|
|
@@ -373,14 +365,12 @@ export const se_UpdateRumMetricDefinitionCommand = async (input, context) => {
|
|
|
373
365
|
let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/rummetrics/{AppMonitorName}/metrics";
|
|
374
366
|
resolvedPath = __resolvedPath(resolvedPath, input, "AppMonitorName", () => input.AppMonitorName, "{AppMonitorName}", false);
|
|
375
367
|
let body;
|
|
376
|
-
body = JSON.stringify({
|
|
377
|
-
|
|
378
|
-
|
|
379
|
-
|
|
380
|
-
|
|
381
|
-
|
|
382
|
-
...(input.MetricDefinitionId != null && { MetricDefinitionId: input.MetricDefinitionId }),
|
|
383
|
-
});
|
|
368
|
+
body = JSON.stringify(take(input, {
|
|
369
|
+
Destination: [],
|
|
370
|
+
DestinationArn: [],
|
|
371
|
+
MetricDefinition: (_) => _json(_),
|
|
372
|
+
MetricDefinitionId: [],
|
|
373
|
+
}));
|
|
384
374
|
return new __HttpRequest({
|
|
385
375
|
protocol,
|
|
386
376
|
hostname,
|
|
@@ -399,12 +389,11 @@ export const de_BatchCreateRumMetricDefinitionsCommand = async (output, context)
|
|
|
399
389
|
$metadata: deserializeMetadata(output),
|
|
400
390
|
});
|
|
401
391
|
const data = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body");
|
|
402
|
-
|
|
403
|
-
|
|
404
|
-
|
|
405
|
-
|
|
406
|
-
|
|
407
|
-
}
|
|
392
|
+
const doc = take(data, {
|
|
393
|
+
Errors: _json,
|
|
394
|
+
MetricDefinitions: _json,
|
|
395
|
+
});
|
|
396
|
+
Object.assign(contents, doc);
|
|
408
397
|
return contents;
|
|
409
398
|
};
|
|
410
399
|
const de_BatchCreateRumMetricDefinitionsCommandError = async (output, context) => {
|
|
@@ -437,10 +426,9 @@ const de_BatchCreateRumMetricDefinitionsCommandError = async (output, context) =
|
|
|
437
426
|
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
438
427
|
default:
|
|
439
428
|
const parsedBody = parsedOutput.body;
|
|
440
|
-
throwDefaultError({
|
|
429
|
+
return throwDefaultError({
|
|
441
430
|
output,
|
|
442
431
|
parsedBody,
|
|
443
|
-
exceptionCtor: __BaseException,
|
|
444
432
|
errorCode,
|
|
445
433
|
});
|
|
446
434
|
}
|
|
@@ -453,12 +441,11 @@ export const de_BatchDeleteRumMetricDefinitionsCommand = async (output, context)
|
|
|
453
441
|
$metadata: deserializeMetadata(output),
|
|
454
442
|
});
|
|
455
443
|
const data = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body");
|
|
456
|
-
|
|
457
|
-
|
|
458
|
-
|
|
459
|
-
|
|
460
|
-
|
|
461
|
-
}
|
|
444
|
+
const doc = take(data, {
|
|
445
|
+
Errors: _json,
|
|
446
|
+
MetricDefinitionIds: _json,
|
|
447
|
+
});
|
|
448
|
+
Object.assign(contents, doc);
|
|
462
449
|
return contents;
|
|
463
450
|
};
|
|
464
451
|
const de_BatchDeleteRumMetricDefinitionsCommandError = async (output, context) => {
|
|
@@ -488,10 +475,9 @@ const de_BatchDeleteRumMetricDefinitionsCommandError = async (output, context) =
|
|
|
488
475
|
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
489
476
|
default:
|
|
490
477
|
const parsedBody = parsedOutput.body;
|
|
491
|
-
throwDefaultError({
|
|
478
|
+
return throwDefaultError({
|
|
492
479
|
output,
|
|
493
480
|
parsedBody,
|
|
494
|
-
exceptionCtor: __BaseException,
|
|
495
481
|
errorCode,
|
|
496
482
|
});
|
|
497
483
|
}
|
|
@@ -504,12 +490,11 @@ export const de_BatchGetRumMetricDefinitionsCommand = async (output, context) =>
|
|
|
504
490
|
$metadata: deserializeMetadata(output),
|
|
505
491
|
});
|
|
506
492
|
const data = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body");
|
|
507
|
-
|
|
508
|
-
|
|
509
|
-
|
|
510
|
-
|
|
511
|
-
|
|
512
|
-
}
|
|
493
|
+
const doc = take(data, {
|
|
494
|
+
MetricDefinitions: _json,
|
|
495
|
+
NextToken: __expectString,
|
|
496
|
+
});
|
|
497
|
+
Object.assign(contents, doc);
|
|
513
498
|
return contents;
|
|
514
499
|
};
|
|
515
500
|
const de_BatchGetRumMetricDefinitionsCommandError = async (output, context) => {
|
|
@@ -533,10 +518,9 @@ const de_BatchGetRumMetricDefinitionsCommandError = async (output, context) => {
|
|
|
533
518
|
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
534
519
|
default:
|
|
535
520
|
const parsedBody = parsedOutput.body;
|
|
536
|
-
throwDefaultError({
|
|
521
|
+
return throwDefaultError({
|
|
537
522
|
output,
|
|
538
523
|
parsedBody,
|
|
539
|
-
exceptionCtor: __BaseException,
|
|
540
524
|
errorCode,
|
|
541
525
|
});
|
|
542
526
|
}
|
|
@@ -549,9 +533,10 @@ export const de_CreateAppMonitorCommand = async (output, context) => {
|
|
|
549
533
|
$metadata: deserializeMetadata(output),
|
|
550
534
|
});
|
|
551
535
|
const data = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body");
|
|
552
|
-
|
|
553
|
-
|
|
554
|
-
}
|
|
536
|
+
const doc = take(data, {
|
|
537
|
+
Id: __expectString,
|
|
538
|
+
});
|
|
539
|
+
Object.assign(contents, doc);
|
|
555
540
|
return contents;
|
|
556
541
|
};
|
|
557
542
|
const de_CreateAppMonitorCommandError = async (output, context) => {
|
|
@@ -584,10 +569,9 @@ const de_CreateAppMonitorCommandError = async (output, context) => {
|
|
|
584
569
|
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
585
570
|
default:
|
|
586
571
|
const parsedBody = parsedOutput.body;
|
|
587
|
-
throwDefaultError({
|
|
572
|
+
return throwDefaultError({
|
|
588
573
|
output,
|
|
589
574
|
parsedBody,
|
|
590
|
-
exceptionCtor: __BaseException,
|
|
591
575
|
errorCode,
|
|
592
576
|
});
|
|
593
577
|
}
|
|
@@ -629,10 +613,9 @@ const de_DeleteAppMonitorCommandError = async (output, context) => {
|
|
|
629
613
|
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
630
614
|
default:
|
|
631
615
|
const parsedBody = parsedOutput.body;
|
|
632
|
-
throwDefaultError({
|
|
616
|
+
return throwDefaultError({
|
|
633
617
|
output,
|
|
634
618
|
parsedBody,
|
|
635
|
-
exceptionCtor: __BaseException,
|
|
636
619
|
errorCode,
|
|
637
620
|
});
|
|
638
621
|
}
|
|
@@ -674,10 +657,9 @@ const de_DeleteRumMetricsDestinationCommandError = async (output, context) => {
|
|
|
674
657
|
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
675
658
|
default:
|
|
676
659
|
const parsedBody = parsedOutput.body;
|
|
677
|
-
throwDefaultError({
|
|
660
|
+
return throwDefaultError({
|
|
678
661
|
output,
|
|
679
662
|
parsedBody,
|
|
680
|
-
exceptionCtor: __BaseException,
|
|
681
663
|
errorCode,
|
|
682
664
|
});
|
|
683
665
|
}
|
|
@@ -690,9 +672,10 @@ export const de_GetAppMonitorCommand = async (output, context) => {
|
|
|
690
672
|
$metadata: deserializeMetadata(output),
|
|
691
673
|
});
|
|
692
674
|
const data = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body");
|
|
693
|
-
|
|
694
|
-
|
|
695
|
-
}
|
|
675
|
+
const doc = take(data, {
|
|
676
|
+
AppMonitor: (_) => de_AppMonitor(_, context),
|
|
677
|
+
});
|
|
678
|
+
Object.assign(contents, doc);
|
|
696
679
|
return contents;
|
|
697
680
|
};
|
|
698
681
|
const de_GetAppMonitorCommandError = async (output, context) => {
|
|
@@ -719,10 +702,9 @@ const de_GetAppMonitorCommandError = async (output, context) => {
|
|
|
719
702
|
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
720
703
|
default:
|
|
721
704
|
const parsedBody = parsedOutput.body;
|
|
722
|
-
throwDefaultError({
|
|
705
|
+
return throwDefaultError({
|
|
723
706
|
output,
|
|
724
707
|
parsedBody,
|
|
725
|
-
exceptionCtor: __BaseException,
|
|
726
708
|
errorCode,
|
|
727
709
|
});
|
|
728
710
|
}
|
|
@@ -735,12 +717,11 @@ export const de_GetAppMonitorDataCommand = async (output, context) => {
|
|
|
735
717
|
$metadata: deserializeMetadata(output),
|
|
736
718
|
});
|
|
737
719
|
const data = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body");
|
|
738
|
-
|
|
739
|
-
|
|
740
|
-
|
|
741
|
-
|
|
742
|
-
|
|
743
|
-
}
|
|
720
|
+
const doc = take(data, {
|
|
721
|
+
Events: _json,
|
|
722
|
+
NextToken: __expectString,
|
|
723
|
+
});
|
|
724
|
+
Object.assign(contents, doc);
|
|
744
725
|
return contents;
|
|
745
726
|
};
|
|
746
727
|
const de_GetAppMonitorDataCommandError = async (output, context) => {
|
|
@@ -767,10 +748,9 @@ const de_GetAppMonitorDataCommandError = async (output, context) => {
|
|
|
767
748
|
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
768
749
|
default:
|
|
769
750
|
const parsedBody = parsedOutput.body;
|
|
770
|
-
throwDefaultError({
|
|
751
|
+
return throwDefaultError({
|
|
771
752
|
output,
|
|
772
753
|
parsedBody,
|
|
773
|
-
exceptionCtor: __BaseException,
|
|
774
754
|
errorCode,
|
|
775
755
|
});
|
|
776
756
|
}
|
|
@@ -783,12 +763,11 @@ export const de_ListAppMonitorsCommand = async (output, context) => {
|
|
|
783
763
|
$metadata: deserializeMetadata(output),
|
|
784
764
|
});
|
|
785
765
|
const data = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body");
|
|
786
|
-
|
|
787
|
-
|
|
788
|
-
|
|
789
|
-
|
|
790
|
-
|
|
791
|
-
}
|
|
766
|
+
const doc = take(data, {
|
|
767
|
+
AppMonitorSummaries: _json,
|
|
768
|
+
NextToken: __expectString,
|
|
769
|
+
});
|
|
770
|
+
Object.assign(contents, doc);
|
|
792
771
|
return contents;
|
|
793
772
|
};
|
|
794
773
|
const de_ListAppMonitorsCommandError = async (output, context) => {
|
|
@@ -812,10 +791,9 @@ const de_ListAppMonitorsCommandError = async (output, context) => {
|
|
|
812
791
|
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
813
792
|
default:
|
|
814
793
|
const parsedBody = parsedOutput.body;
|
|
815
|
-
throwDefaultError({
|
|
794
|
+
return throwDefaultError({
|
|
816
795
|
output,
|
|
817
796
|
parsedBody,
|
|
818
|
-
exceptionCtor: __BaseException,
|
|
819
797
|
errorCode,
|
|
820
798
|
});
|
|
821
799
|
}
|
|
@@ -828,12 +806,11 @@ export const de_ListRumMetricsDestinationsCommand = async (output, context) => {
|
|
|
828
806
|
$metadata: deserializeMetadata(output),
|
|
829
807
|
});
|
|
830
808
|
const data = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body");
|
|
831
|
-
|
|
832
|
-
|
|
833
|
-
|
|
834
|
-
|
|
835
|
-
|
|
836
|
-
}
|
|
809
|
+
const doc = take(data, {
|
|
810
|
+
Destinations: _json,
|
|
811
|
+
NextToken: __expectString,
|
|
812
|
+
});
|
|
813
|
+
Object.assign(contents, doc);
|
|
837
814
|
return contents;
|
|
838
815
|
};
|
|
839
816
|
const de_ListRumMetricsDestinationsCommandError = async (output, context) => {
|
|
@@ -857,10 +834,9 @@ const de_ListRumMetricsDestinationsCommandError = async (output, context) => {
|
|
|
857
834
|
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
858
835
|
default:
|
|
859
836
|
const parsedBody = parsedOutput.body;
|
|
860
|
-
throwDefaultError({
|
|
837
|
+
return throwDefaultError({
|
|
861
838
|
output,
|
|
862
839
|
parsedBody,
|
|
863
|
-
exceptionCtor: __BaseException,
|
|
864
840
|
errorCode,
|
|
865
841
|
});
|
|
866
842
|
}
|
|
@@ -873,12 +849,11 @@ export const de_ListTagsForResourceCommand = async (output, context) => {
|
|
|
873
849
|
$metadata: deserializeMetadata(output),
|
|
874
850
|
});
|
|
875
851
|
const data = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body");
|
|
876
|
-
|
|
877
|
-
|
|
878
|
-
|
|
879
|
-
|
|
880
|
-
|
|
881
|
-
}
|
|
852
|
+
const doc = take(data, {
|
|
853
|
+
ResourceArn: __expectString,
|
|
854
|
+
Tags: _json,
|
|
855
|
+
});
|
|
856
|
+
Object.assign(contents, doc);
|
|
882
857
|
return contents;
|
|
883
858
|
};
|
|
884
859
|
const de_ListTagsForResourceCommandError = async (output, context) => {
|
|
@@ -899,10 +874,9 @@ const de_ListTagsForResourceCommandError = async (output, context) => {
|
|
|
899
874
|
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
900
875
|
default:
|
|
901
876
|
const parsedBody = parsedOutput.body;
|
|
902
|
-
throwDefaultError({
|
|
877
|
+
return throwDefaultError({
|
|
903
878
|
output,
|
|
904
879
|
parsedBody,
|
|
905
|
-
exceptionCtor: __BaseException,
|
|
906
880
|
errorCode,
|
|
907
881
|
});
|
|
908
882
|
}
|
|
@@ -941,10 +915,9 @@ const de_PutRumEventsCommandError = async (output, context) => {
|
|
|
941
915
|
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
942
916
|
default:
|
|
943
917
|
const parsedBody = parsedOutput.body;
|
|
944
|
-
throwDefaultError({
|
|
918
|
+
return throwDefaultError({
|
|
945
919
|
output,
|
|
946
920
|
parsedBody,
|
|
947
|
-
exceptionCtor: __BaseException,
|
|
948
921
|
errorCode,
|
|
949
922
|
});
|
|
950
923
|
}
|
|
@@ -986,10 +959,9 @@ const de_PutRumMetricsDestinationCommandError = async (output, context) => {
|
|
|
986
959
|
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
987
960
|
default:
|
|
988
961
|
const parsedBody = parsedOutput.body;
|
|
989
|
-
throwDefaultError({
|
|
962
|
+
return throwDefaultError({
|
|
990
963
|
output,
|
|
991
964
|
parsedBody,
|
|
992
|
-
exceptionCtor: __BaseException,
|
|
993
965
|
errorCode,
|
|
994
966
|
});
|
|
995
967
|
}
|
|
@@ -1022,10 +994,9 @@ const de_TagResourceCommandError = async (output, context) => {
|
|
|
1022
994
|
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
1023
995
|
default:
|
|
1024
996
|
const parsedBody = parsedOutput.body;
|
|
1025
|
-
throwDefaultError({
|
|
997
|
+
return throwDefaultError({
|
|
1026
998
|
output,
|
|
1027
999
|
parsedBody,
|
|
1028
|
-
exceptionCtor: __BaseException,
|
|
1029
1000
|
errorCode,
|
|
1030
1001
|
});
|
|
1031
1002
|
}
|
|
@@ -1058,10 +1029,9 @@ const de_UntagResourceCommandError = async (output, context) => {
|
|
|
1058
1029
|
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
1059
1030
|
default:
|
|
1060
1031
|
const parsedBody = parsedOutput.body;
|
|
1061
|
-
throwDefaultError({
|
|
1032
|
+
return throwDefaultError({
|
|
1062
1033
|
output,
|
|
1063
1034
|
parsedBody,
|
|
1064
|
-
exceptionCtor: __BaseException,
|
|
1065
1035
|
errorCode,
|
|
1066
1036
|
});
|
|
1067
1037
|
}
|
|
@@ -1103,10 +1073,9 @@ const de_UpdateAppMonitorCommandError = async (output, context) => {
|
|
|
1103
1073
|
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
1104
1074
|
default:
|
|
1105
1075
|
const parsedBody = parsedOutput.body;
|
|
1106
|
-
throwDefaultError({
|
|
1076
|
+
return throwDefaultError({
|
|
1107
1077
|
output,
|
|
1108
1078
|
parsedBody,
|
|
1109
|
-
exceptionCtor: __BaseException,
|
|
1110
1079
|
errorCode,
|
|
1111
1080
|
});
|
|
1112
1081
|
}
|
|
@@ -1151,21 +1120,21 @@ const de_UpdateRumMetricDefinitionCommandError = async (output, context) => {
|
|
|
1151
1120
|
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
1152
1121
|
default:
|
|
1153
1122
|
const parsedBody = parsedOutput.body;
|
|
1154
|
-
throwDefaultError({
|
|
1123
|
+
return throwDefaultError({
|
|
1155
1124
|
output,
|
|
1156
1125
|
parsedBody,
|
|
1157
|
-
exceptionCtor: __BaseException,
|
|
1158
1126
|
errorCode,
|
|
1159
1127
|
});
|
|
1160
1128
|
}
|
|
1161
1129
|
};
|
|
1162
|
-
const
|
|
1130
|
+
const throwDefaultError = withBaseException(__BaseException);
|
|
1163
1131
|
const de_AccessDeniedExceptionRes = async (parsedOutput, context) => {
|
|
1164
1132
|
const contents = map({});
|
|
1165
1133
|
const data = parsedOutput.body;
|
|
1166
|
-
|
|
1167
|
-
|
|
1168
|
-
}
|
|
1134
|
+
const doc = take(data, {
|
|
1135
|
+
message: __expectString,
|
|
1136
|
+
});
|
|
1137
|
+
Object.assign(contents, doc);
|
|
1169
1138
|
const exception = new AccessDeniedException({
|
|
1170
1139
|
$metadata: deserializeMetadata(parsedOutput),
|
|
1171
1140
|
...contents,
|
|
@@ -1175,15 +1144,12 @@ const de_AccessDeniedExceptionRes = async (parsedOutput, context) => {
|
|
|
1175
1144
|
const de_ConflictExceptionRes = async (parsedOutput, context) => {
|
|
1176
1145
|
const contents = map({});
|
|
1177
1146
|
const data = parsedOutput.body;
|
|
1178
|
-
|
|
1179
|
-
|
|
1180
|
-
|
|
1181
|
-
|
|
1182
|
-
|
|
1183
|
-
|
|
1184
|
-
if (data.resourceType != null) {
|
|
1185
|
-
contents.resourceType = __expectString(data.resourceType);
|
|
1186
|
-
}
|
|
1147
|
+
const doc = take(data, {
|
|
1148
|
+
message: __expectString,
|
|
1149
|
+
resourceName: __expectString,
|
|
1150
|
+
resourceType: __expectString,
|
|
1151
|
+
});
|
|
1152
|
+
Object.assign(contents, doc);
|
|
1187
1153
|
const exception = new ConflictException({
|
|
1188
1154
|
$metadata: deserializeMetadata(parsedOutput),
|
|
1189
1155
|
...contents,
|
|
@@ -1198,9 +1164,10 @@ const de_InternalServerExceptionRes = async (parsedOutput, context) => {
|
|
|
1198
1164
|
],
|
|
1199
1165
|
});
|
|
1200
1166
|
const data = parsedOutput.body;
|
|
1201
|
-
|
|
1202
|
-
|
|
1203
|
-
}
|
|
1167
|
+
const doc = take(data, {
|
|
1168
|
+
message: __expectString,
|
|
1169
|
+
});
|
|
1170
|
+
Object.assign(contents, doc);
|
|
1204
1171
|
const exception = new InternalServerException({
|
|
1205
1172
|
$metadata: deserializeMetadata(parsedOutput),
|
|
1206
1173
|
...contents,
|
|
@@ -1210,15 +1177,12 @@ const de_InternalServerExceptionRes = async (parsedOutput, context) => {
|
|
|
1210
1177
|
const de_ResourceNotFoundExceptionRes = async (parsedOutput, context) => {
|
|
1211
1178
|
const contents = map({});
|
|
1212
1179
|
const data = parsedOutput.body;
|
|
1213
|
-
|
|
1214
|
-
|
|
1215
|
-
|
|
1216
|
-
|
|
1217
|
-
|
|
1218
|
-
|
|
1219
|
-
if (data.resourceType != null) {
|
|
1220
|
-
contents.resourceType = __expectString(data.resourceType);
|
|
1221
|
-
}
|
|
1180
|
+
const doc = take(data, {
|
|
1181
|
+
message: __expectString,
|
|
1182
|
+
resourceName: __expectString,
|
|
1183
|
+
resourceType: __expectString,
|
|
1184
|
+
});
|
|
1185
|
+
Object.assign(contents, doc);
|
|
1222
1186
|
const exception = new ResourceNotFoundException({
|
|
1223
1187
|
$metadata: deserializeMetadata(parsedOutput),
|
|
1224
1188
|
...contents,
|
|
@@ -1228,9 +1192,10 @@ const de_ResourceNotFoundExceptionRes = async (parsedOutput, context) => {
|
|
|
1228
1192
|
const de_ServiceQuotaExceededExceptionRes = async (parsedOutput, context) => {
|
|
1229
1193
|
const contents = map({});
|
|
1230
1194
|
const data = parsedOutput.body;
|
|
1231
|
-
|
|
1232
|
-
|
|
1233
|
-
}
|
|
1195
|
+
const doc = take(data, {
|
|
1196
|
+
message: __expectString,
|
|
1197
|
+
});
|
|
1198
|
+
Object.assign(contents, doc);
|
|
1234
1199
|
const exception = new ServiceQuotaExceededException({
|
|
1235
1200
|
$metadata: deserializeMetadata(parsedOutput),
|
|
1236
1201
|
...contents,
|
|
@@ -1245,15 +1210,12 @@ const de_ThrottlingExceptionRes = async (parsedOutput, context) => {
|
|
|
1245
1210
|
],
|
|
1246
1211
|
});
|
|
1247
1212
|
const data = parsedOutput.body;
|
|
1248
|
-
|
|
1249
|
-
|
|
1250
|
-
|
|
1251
|
-
|
|
1252
|
-
|
|
1253
|
-
|
|
1254
|
-
if (data.serviceCode != null) {
|
|
1255
|
-
contents.serviceCode = __expectString(data.serviceCode);
|
|
1256
|
-
}
|
|
1213
|
+
const doc = take(data, {
|
|
1214
|
+
message: __expectString,
|
|
1215
|
+
quotaCode: __expectString,
|
|
1216
|
+
serviceCode: __expectString,
|
|
1217
|
+
});
|
|
1218
|
+
Object.assign(contents, doc);
|
|
1257
1219
|
const exception = new ThrottlingException({
|
|
1258
1220
|
$metadata: deserializeMetadata(parsedOutput),
|
|
1259
1221
|
...contents,
|
|
@@ -1263,9 +1225,10 @@ const de_ThrottlingExceptionRes = async (parsedOutput, context) => {
|
|
|
1263
1225
|
const de_ValidationExceptionRes = async (parsedOutput, context) => {
|
|
1264
1226
|
const contents = map({});
|
|
1265
1227
|
const data = parsedOutput.body;
|
|
1266
|
-
|
|
1267
|
-
|
|
1268
|
-
}
|
|
1228
|
+
const doc = take(data, {
|
|
1229
|
+
message: __expectString,
|
|
1230
|
+
});
|
|
1231
|
+
Object.assign(contents, doc);
|
|
1269
1232
|
const exception = new ValidationException({
|
|
1270
1233
|
$metadata: deserializeMetadata(parsedOutput),
|
|
1271
1234
|
...contents,
|
|
@@ -1273,98 +1236,26 @@ const de_ValidationExceptionRes = async (parsedOutput, context) => {
|
|
|
1273
1236
|
return __decorateServiceException(exception, parsedOutput.body);
|
|
1274
1237
|
};
|
|
1275
1238
|
const se_AppMonitorConfiguration = (input, context) => {
|
|
1276
|
-
return {
|
|
1277
|
-
|
|
1278
|
-
|
|
1279
|
-
|
|
1280
|
-
|
|
1281
|
-
|
|
1282
|
-
|
|
1283
|
-
|
|
1284
|
-
|
|
1285
|
-
|
|
1286
|
-
};
|
|
1287
|
-
};
|
|
1288
|
-
const se_AppMonitorDetails = (input, context) => {
|
|
1289
|
-
return {
|
|
1290
|
-
...(input.id != null && { id: input.id }),
|
|
1291
|
-
...(input.name != null && { name: input.name }),
|
|
1292
|
-
...(input.version != null && { version: input.version }),
|
|
1293
|
-
};
|
|
1294
|
-
};
|
|
1295
|
-
const se_CustomEvents = (input, context) => {
|
|
1296
|
-
return {
|
|
1297
|
-
...(input.Status != null && { Status: input.Status }),
|
|
1298
|
-
};
|
|
1299
|
-
};
|
|
1300
|
-
const se_DimensionKeysMap = (input, context) => {
|
|
1301
|
-
return Object.entries(input).reduce((acc, [key, value]) => {
|
|
1302
|
-
if (value === null) {
|
|
1303
|
-
return acc;
|
|
1304
|
-
}
|
|
1305
|
-
acc[key] = value;
|
|
1306
|
-
return acc;
|
|
1307
|
-
}, {});
|
|
1308
|
-
};
|
|
1309
|
-
const se_FavoritePages = (input, context) => {
|
|
1310
|
-
return input
|
|
1311
|
-
.filter((e) => e != null)
|
|
1312
|
-
.map((entry) => {
|
|
1313
|
-
return entry;
|
|
1314
|
-
});
|
|
1315
|
-
};
|
|
1316
|
-
const se_MetricDefinitionRequest = (input, context) => {
|
|
1317
|
-
return {
|
|
1318
|
-
...(input.DimensionKeys != null && { DimensionKeys: se_DimensionKeysMap(input.DimensionKeys, context) }),
|
|
1319
|
-
...(input.EventPattern != null && { EventPattern: input.EventPattern }),
|
|
1320
|
-
...(input.Name != null && { Name: input.Name }),
|
|
1321
|
-
...(input.Namespace != null && { Namespace: input.Namespace }),
|
|
1322
|
-
...(input.UnitLabel != null && { UnitLabel: input.UnitLabel }),
|
|
1323
|
-
...(input.ValueKey != null && { ValueKey: input.ValueKey }),
|
|
1324
|
-
};
|
|
1325
|
-
};
|
|
1326
|
-
const se_MetricDefinitionsRequest = (input, context) => {
|
|
1327
|
-
return input
|
|
1328
|
-
.filter((e) => e != null)
|
|
1329
|
-
.map((entry) => {
|
|
1330
|
-
return se_MetricDefinitionRequest(entry, context);
|
|
1331
|
-
});
|
|
1332
|
-
};
|
|
1333
|
-
const se_Pages = (input, context) => {
|
|
1334
|
-
return input
|
|
1335
|
-
.filter((e) => e != null)
|
|
1336
|
-
.map((entry) => {
|
|
1337
|
-
return entry;
|
|
1338
|
-
});
|
|
1339
|
-
};
|
|
1340
|
-
const se_QueryFilter = (input, context) => {
|
|
1341
|
-
return {
|
|
1342
|
-
...(input.Name != null && { Name: input.Name }),
|
|
1343
|
-
...(input.Values != null && { Values: se_QueryFilterValueList(input.Values, context) }),
|
|
1344
|
-
};
|
|
1345
|
-
};
|
|
1346
|
-
const se_QueryFilters = (input, context) => {
|
|
1347
|
-
return input
|
|
1348
|
-
.filter((e) => e != null)
|
|
1349
|
-
.map((entry) => {
|
|
1350
|
-
return se_QueryFilter(entry, context);
|
|
1351
|
-
});
|
|
1352
|
-
};
|
|
1353
|
-
const se_QueryFilterValueList = (input, context) => {
|
|
1354
|
-
return input
|
|
1355
|
-
.filter((e) => e != null)
|
|
1356
|
-
.map((entry) => {
|
|
1357
|
-
return entry;
|
|
1239
|
+
return take(input, {
|
|
1240
|
+
AllowCookies: [],
|
|
1241
|
+
EnableXRay: [],
|
|
1242
|
+
ExcludedPages: _json,
|
|
1243
|
+
FavoritePages: _json,
|
|
1244
|
+
GuestRoleArn: [],
|
|
1245
|
+
IdentityPoolId: [],
|
|
1246
|
+
IncludedPages: _json,
|
|
1247
|
+
SessionSampleRate: __serializeFloat,
|
|
1248
|
+
Telemetries: _json,
|
|
1358
1249
|
});
|
|
1359
1250
|
};
|
|
1360
1251
|
const se_RumEvent = (input, context) => {
|
|
1361
|
-
return {
|
|
1362
|
-
|
|
1363
|
-
|
|
1364
|
-
|
|
1365
|
-
|
|
1366
|
-
|
|
1367
|
-
};
|
|
1252
|
+
return take(input, {
|
|
1253
|
+
details: __LazyJsonString.fromObject,
|
|
1254
|
+
id: [],
|
|
1255
|
+
metadata: __LazyJsonString.fromObject,
|
|
1256
|
+
timestamp: (_) => Math.round(_.getTime() / 1000),
|
|
1257
|
+
type: [],
|
|
1258
|
+
});
|
|
1368
1259
|
};
|
|
1369
1260
|
const se_RumEventList = (input, context) => {
|
|
1370
1261
|
return input
|
|
@@ -1373,257 +1264,32 @@ const se_RumEventList = (input, context) => {
|
|
|
1373
1264
|
return se_RumEvent(entry, context);
|
|
1374
1265
|
});
|
|
1375
1266
|
};
|
|
1376
|
-
const se_TagMap = (input, context) => {
|
|
1377
|
-
return Object.entries(input).reduce((acc, [key, value]) => {
|
|
1378
|
-
if (value === null) {
|
|
1379
|
-
return acc;
|
|
1380
|
-
}
|
|
1381
|
-
acc[key] = value;
|
|
1382
|
-
return acc;
|
|
1383
|
-
}, {});
|
|
1384
|
-
};
|
|
1385
|
-
const se_Telemetries = (input, context) => {
|
|
1386
|
-
return input
|
|
1387
|
-
.filter((e) => e != null)
|
|
1388
|
-
.map((entry) => {
|
|
1389
|
-
return entry;
|
|
1390
|
-
});
|
|
1391
|
-
};
|
|
1392
|
-
const se_TimeRange = (input, context) => {
|
|
1393
|
-
return {
|
|
1394
|
-
...(input.After != null && { After: input.After }),
|
|
1395
|
-
...(input.Before != null && { Before: input.Before }),
|
|
1396
|
-
};
|
|
1397
|
-
};
|
|
1398
|
-
const se_UserDetails = (input, context) => {
|
|
1399
|
-
return {
|
|
1400
|
-
...(input.sessionId != null && { sessionId: input.sessionId }),
|
|
1401
|
-
...(input.userId != null && { userId: input.userId }),
|
|
1402
|
-
};
|
|
1403
|
-
};
|
|
1404
1267
|
const de_AppMonitor = (output, context) => {
|
|
1405
|
-
return {
|
|
1406
|
-
AppMonitorConfiguration:
|
|
1407
|
-
|
|
1408
|
-
|
|
1409
|
-
|
|
1410
|
-
|
|
1411
|
-
|
|
1412
|
-
|
|
1413
|
-
|
|
1414
|
-
|
|
1415
|
-
|
|
1416
|
-
State: __expectString(output.State),
|
|
1417
|
-
Tags: output.Tags != null ? de_TagMap(output.Tags, context) : undefined,
|
|
1418
|
-
};
|
|
1419
|
-
};
|
|
1420
|
-
const de_AppMonitorConfiguration = (output, context) => {
|
|
1421
|
-
return {
|
|
1422
|
-
AllowCookies: __expectBoolean(output.AllowCookies),
|
|
1423
|
-
EnableXRay: __expectBoolean(output.EnableXRay),
|
|
1424
|
-
ExcludedPages: output.ExcludedPages != null ? de_Pages(output.ExcludedPages, context) : undefined,
|
|
1425
|
-
FavoritePages: output.FavoritePages != null ? de_FavoritePages(output.FavoritePages, context) : undefined,
|
|
1426
|
-
GuestRoleArn: __expectString(output.GuestRoleArn),
|
|
1427
|
-
IdentityPoolId: __expectString(output.IdentityPoolId),
|
|
1428
|
-
IncludedPages: output.IncludedPages != null ? de_Pages(output.IncludedPages, context) : undefined,
|
|
1429
|
-
SessionSampleRate: __limitedParseDouble(output.SessionSampleRate),
|
|
1430
|
-
Telemetries: output.Telemetries != null ? de_Telemetries(output.Telemetries, context) : undefined,
|
|
1431
|
-
};
|
|
1432
|
-
};
|
|
1433
|
-
const de_AppMonitorSummary = (output, context) => {
|
|
1434
|
-
return {
|
|
1435
|
-
Created: __expectString(output.Created),
|
|
1436
|
-
Id: __expectString(output.Id),
|
|
1437
|
-
LastModified: __expectString(output.LastModified),
|
|
1438
|
-
Name: __expectString(output.Name),
|
|
1439
|
-
State: __expectString(output.State),
|
|
1440
|
-
};
|
|
1441
|
-
};
|
|
1442
|
-
const de_AppMonitorSummaryList = (output, context) => {
|
|
1443
|
-
const retVal = (output || [])
|
|
1444
|
-
.filter((e) => e != null)
|
|
1445
|
-
.map((entry) => {
|
|
1446
|
-
if (entry === null) {
|
|
1447
|
-
return null;
|
|
1448
|
-
}
|
|
1449
|
-
return de_AppMonitorSummary(entry, context);
|
|
1268
|
+
return take(output, {
|
|
1269
|
+
AppMonitorConfiguration: (_) => de_AppMonitorConfiguration(_, context),
|
|
1270
|
+
Created: __expectString,
|
|
1271
|
+
CustomEvents: _json,
|
|
1272
|
+
DataStorage: _json,
|
|
1273
|
+
Domain: __expectString,
|
|
1274
|
+
Id: __expectString,
|
|
1275
|
+
LastModified: __expectString,
|
|
1276
|
+
Name: __expectString,
|
|
1277
|
+
State: __expectString,
|
|
1278
|
+
Tags: _json,
|
|
1450
1279
|
});
|
|
1451
|
-
return retVal;
|
|
1452
|
-
};
|
|
1453
|
-
const de_BatchCreateRumMetricDefinitionsError = (output, context) => {
|
|
1454
|
-
return {
|
|
1455
|
-
ErrorCode: __expectString(output.ErrorCode),
|
|
1456
|
-
ErrorMessage: __expectString(output.ErrorMessage),
|
|
1457
|
-
MetricDefinition: output.MetricDefinition != null ? de_MetricDefinitionRequest(output.MetricDefinition, context) : undefined,
|
|
1458
|
-
};
|
|
1459
|
-
};
|
|
1460
|
-
const de_BatchCreateRumMetricDefinitionsErrors = (output, context) => {
|
|
1461
|
-
const retVal = (output || [])
|
|
1462
|
-
.filter((e) => e != null)
|
|
1463
|
-
.map((entry) => {
|
|
1464
|
-
if (entry === null) {
|
|
1465
|
-
return null;
|
|
1466
|
-
}
|
|
1467
|
-
return de_BatchCreateRumMetricDefinitionsError(entry, context);
|
|
1468
|
-
});
|
|
1469
|
-
return retVal;
|
|
1470
|
-
};
|
|
1471
|
-
const de_BatchDeleteRumMetricDefinitionsError = (output, context) => {
|
|
1472
|
-
return {
|
|
1473
|
-
ErrorCode: __expectString(output.ErrorCode),
|
|
1474
|
-
ErrorMessage: __expectString(output.ErrorMessage),
|
|
1475
|
-
MetricDefinitionId: __expectString(output.MetricDefinitionId),
|
|
1476
|
-
};
|
|
1477
|
-
};
|
|
1478
|
-
const de_BatchDeleteRumMetricDefinitionsErrors = (output, context) => {
|
|
1479
|
-
const retVal = (output || [])
|
|
1480
|
-
.filter((e) => e != null)
|
|
1481
|
-
.map((entry) => {
|
|
1482
|
-
if (entry === null) {
|
|
1483
|
-
return null;
|
|
1484
|
-
}
|
|
1485
|
-
return de_BatchDeleteRumMetricDefinitionsError(entry, context);
|
|
1486
|
-
});
|
|
1487
|
-
return retVal;
|
|
1488
|
-
};
|
|
1489
|
-
const de_CustomEvents = (output, context) => {
|
|
1490
|
-
return {
|
|
1491
|
-
Status: __expectString(output.Status),
|
|
1492
|
-
};
|
|
1493
|
-
};
|
|
1494
|
-
const de_CwLog = (output, context) => {
|
|
1495
|
-
return {
|
|
1496
|
-
CwLogEnabled: __expectBoolean(output.CwLogEnabled),
|
|
1497
|
-
CwLogGroup: __expectString(output.CwLogGroup),
|
|
1498
|
-
};
|
|
1499
1280
|
};
|
|
1500
|
-
const
|
|
1501
|
-
return {
|
|
1502
|
-
|
|
1503
|
-
|
|
1504
|
-
|
|
1505
|
-
|
|
1506
|
-
|
|
1507
|
-
|
|
1508
|
-
|
|
1509
|
-
|
|
1510
|
-
|
|
1511
|
-
return acc;
|
|
1512
|
-
}, {});
|
|
1513
|
-
};
|
|
1514
|
-
const de_EventDataList = (output, context) => {
|
|
1515
|
-
const retVal = (output || [])
|
|
1516
|
-
.filter((e) => e != null)
|
|
1517
|
-
.map((entry) => {
|
|
1518
|
-
if (entry === null) {
|
|
1519
|
-
return null;
|
|
1520
|
-
}
|
|
1521
|
-
return __expectString(entry);
|
|
1522
|
-
});
|
|
1523
|
-
return retVal;
|
|
1524
|
-
};
|
|
1525
|
-
const de_FavoritePages = (output, context) => {
|
|
1526
|
-
const retVal = (output || [])
|
|
1527
|
-
.filter((e) => e != null)
|
|
1528
|
-
.map((entry) => {
|
|
1529
|
-
if (entry === null) {
|
|
1530
|
-
return null;
|
|
1531
|
-
}
|
|
1532
|
-
return __expectString(entry);
|
|
1533
|
-
});
|
|
1534
|
-
return retVal;
|
|
1535
|
-
};
|
|
1536
|
-
const de_MetricDefinition = (output, context) => {
|
|
1537
|
-
return {
|
|
1538
|
-
DimensionKeys: output.DimensionKeys != null ? de_DimensionKeysMap(output.DimensionKeys, context) : undefined,
|
|
1539
|
-
EventPattern: __expectString(output.EventPattern),
|
|
1540
|
-
MetricDefinitionId: __expectString(output.MetricDefinitionId),
|
|
1541
|
-
Name: __expectString(output.Name),
|
|
1542
|
-
Namespace: __expectString(output.Namespace),
|
|
1543
|
-
UnitLabel: __expectString(output.UnitLabel),
|
|
1544
|
-
ValueKey: __expectString(output.ValueKey),
|
|
1545
|
-
};
|
|
1546
|
-
};
|
|
1547
|
-
const de_MetricDefinitionIds = (output, context) => {
|
|
1548
|
-
const retVal = (output || [])
|
|
1549
|
-
.filter((e) => e != null)
|
|
1550
|
-
.map((entry) => {
|
|
1551
|
-
if (entry === null) {
|
|
1552
|
-
return null;
|
|
1553
|
-
}
|
|
1554
|
-
return __expectString(entry);
|
|
1555
|
-
});
|
|
1556
|
-
return retVal;
|
|
1557
|
-
};
|
|
1558
|
-
const de_MetricDefinitionRequest = (output, context) => {
|
|
1559
|
-
return {
|
|
1560
|
-
DimensionKeys: output.DimensionKeys != null ? de_DimensionKeysMap(output.DimensionKeys, context) : undefined,
|
|
1561
|
-
EventPattern: __expectString(output.EventPattern),
|
|
1562
|
-
Name: __expectString(output.Name),
|
|
1563
|
-
Namespace: __expectString(output.Namespace),
|
|
1564
|
-
UnitLabel: __expectString(output.UnitLabel),
|
|
1565
|
-
ValueKey: __expectString(output.ValueKey),
|
|
1566
|
-
};
|
|
1567
|
-
};
|
|
1568
|
-
const de_MetricDefinitions = (output, context) => {
|
|
1569
|
-
const retVal = (output || [])
|
|
1570
|
-
.filter((e) => e != null)
|
|
1571
|
-
.map((entry) => {
|
|
1572
|
-
if (entry === null) {
|
|
1573
|
-
return null;
|
|
1574
|
-
}
|
|
1575
|
-
return de_MetricDefinition(entry, context);
|
|
1576
|
-
});
|
|
1577
|
-
return retVal;
|
|
1578
|
-
};
|
|
1579
|
-
const de_MetricDestinationSummary = (output, context) => {
|
|
1580
|
-
return {
|
|
1581
|
-
Destination: __expectString(output.Destination),
|
|
1582
|
-
DestinationArn: __expectString(output.DestinationArn),
|
|
1583
|
-
IamRoleArn: __expectString(output.IamRoleArn),
|
|
1584
|
-
};
|
|
1585
|
-
};
|
|
1586
|
-
const de_MetricDestinationSummaryList = (output, context) => {
|
|
1587
|
-
const retVal = (output || [])
|
|
1588
|
-
.filter((e) => e != null)
|
|
1589
|
-
.map((entry) => {
|
|
1590
|
-
if (entry === null) {
|
|
1591
|
-
return null;
|
|
1592
|
-
}
|
|
1593
|
-
return de_MetricDestinationSummary(entry, context);
|
|
1594
|
-
});
|
|
1595
|
-
return retVal;
|
|
1596
|
-
};
|
|
1597
|
-
const de_Pages = (output, context) => {
|
|
1598
|
-
const retVal = (output || [])
|
|
1599
|
-
.filter((e) => e != null)
|
|
1600
|
-
.map((entry) => {
|
|
1601
|
-
if (entry === null) {
|
|
1602
|
-
return null;
|
|
1603
|
-
}
|
|
1604
|
-
return __expectString(entry);
|
|
1605
|
-
});
|
|
1606
|
-
return retVal;
|
|
1607
|
-
};
|
|
1608
|
-
const de_TagMap = (output, context) => {
|
|
1609
|
-
return Object.entries(output).reduce((acc, [key, value]) => {
|
|
1610
|
-
if (value === null) {
|
|
1611
|
-
return acc;
|
|
1612
|
-
}
|
|
1613
|
-
acc[key] = __expectString(value);
|
|
1614
|
-
return acc;
|
|
1615
|
-
}, {});
|
|
1616
|
-
};
|
|
1617
|
-
const de_Telemetries = (output, context) => {
|
|
1618
|
-
const retVal = (output || [])
|
|
1619
|
-
.filter((e) => e != null)
|
|
1620
|
-
.map((entry) => {
|
|
1621
|
-
if (entry === null) {
|
|
1622
|
-
return null;
|
|
1623
|
-
}
|
|
1624
|
-
return __expectString(entry);
|
|
1281
|
+
const de_AppMonitorConfiguration = (output, context) => {
|
|
1282
|
+
return take(output, {
|
|
1283
|
+
AllowCookies: __expectBoolean,
|
|
1284
|
+
EnableXRay: __expectBoolean,
|
|
1285
|
+
ExcludedPages: _json,
|
|
1286
|
+
FavoritePages: _json,
|
|
1287
|
+
GuestRoleArn: __expectString,
|
|
1288
|
+
IdentityPoolId: __expectString,
|
|
1289
|
+
IncludedPages: _json,
|
|
1290
|
+
SessionSampleRate: __limitedParseDouble,
|
|
1291
|
+
Telemetries: _json,
|
|
1625
1292
|
});
|
|
1626
|
-
return retVal;
|
|
1627
1293
|
};
|
|
1628
1294
|
const deserializeMetadata = (output) => ({
|
|
1629
1295
|
httpStatusCode: output.statusCode,
|