@aws-sdk/client-cloudtrail 3.121.0 → 3.130.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_json1_1.js +167 -265
- package/dist-es/protocols/Aws_json1_1.js +105 -203
- package/package.json +26 -26
|
@@ -2577,18 +2577,16 @@ const deserializeAws_json1_1UnsupportedOperationExceptionResponse = async (parse
|
|
|
2577
2577
|
};
|
|
2578
2578
|
const serializeAws_json1_1AddTagsRequest = (input, context) => {
|
|
2579
2579
|
return {
|
|
2580
|
-
...(input.ResourceId
|
|
2581
|
-
...(input.TagsList
|
|
2582
|
-
input.TagsList !== null && { TagsList: serializeAws_json1_1TagsList(input.TagsList, context) }),
|
|
2580
|
+
...(input.ResourceId != null && { ResourceId: input.ResourceId }),
|
|
2581
|
+
...(input.TagsList != null && { TagsList: serializeAws_json1_1TagsList(input.TagsList, context) }),
|
|
2583
2582
|
};
|
|
2584
2583
|
};
|
|
2585
2584
|
const serializeAws_json1_1AdvancedEventSelector = (input, context) => {
|
|
2586
2585
|
return {
|
|
2587
|
-
...(input.FieldSelectors
|
|
2588
|
-
input.FieldSelectors !== null && {
|
|
2586
|
+
...(input.FieldSelectors != null && {
|
|
2589
2587
|
FieldSelectors: serializeAws_json1_1AdvancedFieldSelectors(input.FieldSelectors, context),
|
|
2590
2588
|
}),
|
|
2591
|
-
...(input.Name
|
|
2589
|
+
...(input.Name != null && { Name: input.Name }),
|
|
2592
2590
|
};
|
|
2593
2591
|
};
|
|
2594
2592
|
const serializeAws_json1_1AdvancedEventSelectors = (input, context) => {
|
|
@@ -2603,19 +2601,13 @@ const serializeAws_json1_1AdvancedEventSelectors = (input, context) => {
|
|
|
2603
2601
|
};
|
|
2604
2602
|
const serializeAws_json1_1AdvancedFieldSelector = (input, context) => {
|
|
2605
2603
|
return {
|
|
2606
|
-
...(input.EndsWith
|
|
2607
|
-
|
|
2608
|
-
...(input.
|
|
2609
|
-
|
|
2610
|
-
...(input.
|
|
2611
|
-
...(input.
|
|
2612
|
-
|
|
2613
|
-
...(input.NotEquals !== undefined &&
|
|
2614
|
-
input.NotEquals !== null && { NotEquals: serializeAws_json1_1Operator(input.NotEquals, context) }),
|
|
2615
|
-
...(input.NotStartsWith !== undefined &&
|
|
2616
|
-
input.NotStartsWith !== null && { NotStartsWith: serializeAws_json1_1Operator(input.NotStartsWith, context) }),
|
|
2617
|
-
...(input.StartsWith !== undefined &&
|
|
2618
|
-
input.StartsWith !== null && { StartsWith: serializeAws_json1_1Operator(input.StartsWith, context) }),
|
|
2604
|
+
...(input.EndsWith != null && { EndsWith: serializeAws_json1_1Operator(input.EndsWith, context) }),
|
|
2605
|
+
...(input.Equals != null && { Equals: serializeAws_json1_1Operator(input.Equals, context) }),
|
|
2606
|
+
...(input.Field != null && { Field: input.Field }),
|
|
2607
|
+
...(input.NotEndsWith != null && { NotEndsWith: serializeAws_json1_1Operator(input.NotEndsWith, context) }),
|
|
2608
|
+
...(input.NotEquals != null && { NotEquals: serializeAws_json1_1Operator(input.NotEquals, context) }),
|
|
2609
|
+
...(input.NotStartsWith != null && { NotStartsWith: serializeAws_json1_1Operator(input.NotStartsWith, context) }),
|
|
2610
|
+
...(input.StartsWith != null && { StartsWith: serializeAws_json1_1Operator(input.StartsWith, context) }),
|
|
2619
2611
|
};
|
|
2620
2612
|
};
|
|
2621
2613
|
const serializeAws_json1_1AdvancedFieldSelectors = (input, context) => {
|
|
@@ -2630,60 +2622,45 @@ const serializeAws_json1_1AdvancedFieldSelectors = (input, context) => {
|
|
|
2630
2622
|
};
|
|
2631
2623
|
const serializeAws_json1_1CancelQueryRequest = (input, context) => {
|
|
2632
2624
|
return {
|
|
2633
|
-
...(input.EventDataStore
|
|
2634
|
-
|
|
2635
|
-
...(input.QueryId !== undefined && input.QueryId !== null && { QueryId: input.QueryId }),
|
|
2625
|
+
...(input.EventDataStore != null && { EventDataStore: input.EventDataStore }),
|
|
2626
|
+
...(input.QueryId != null && { QueryId: input.QueryId }),
|
|
2636
2627
|
};
|
|
2637
2628
|
};
|
|
2638
2629
|
const serializeAws_json1_1CreateEventDataStoreRequest = (input, context) => {
|
|
2639
2630
|
return {
|
|
2640
|
-
...(input.AdvancedEventSelectors
|
|
2641
|
-
input.AdvancedEventSelectors !== null && {
|
|
2631
|
+
...(input.AdvancedEventSelectors != null && {
|
|
2642
2632
|
AdvancedEventSelectors: serializeAws_json1_1AdvancedEventSelectors(input.AdvancedEventSelectors, context),
|
|
2643
2633
|
}),
|
|
2644
|
-
...(input.MultiRegionEnabled
|
|
2645
|
-
|
|
2646
|
-
...(input.
|
|
2647
|
-
...(input.
|
|
2648
|
-
|
|
2649
|
-
...(input.
|
|
2650
|
-
input.RetentionPeriod !== null && { RetentionPeriod: input.RetentionPeriod }),
|
|
2651
|
-
...(input.TagsList !== undefined &&
|
|
2652
|
-
input.TagsList !== null && { TagsList: serializeAws_json1_1TagsList(input.TagsList, context) }),
|
|
2653
|
-
...(input.TerminationProtectionEnabled !== undefined &&
|
|
2654
|
-
input.TerminationProtectionEnabled !== null && {
|
|
2634
|
+
...(input.MultiRegionEnabled != null && { MultiRegionEnabled: input.MultiRegionEnabled }),
|
|
2635
|
+
...(input.Name != null && { Name: input.Name }),
|
|
2636
|
+
...(input.OrganizationEnabled != null && { OrganizationEnabled: input.OrganizationEnabled }),
|
|
2637
|
+
...(input.RetentionPeriod != null && { RetentionPeriod: input.RetentionPeriod }),
|
|
2638
|
+
...(input.TagsList != null && { TagsList: serializeAws_json1_1TagsList(input.TagsList, context) }),
|
|
2639
|
+
...(input.TerminationProtectionEnabled != null && {
|
|
2655
2640
|
TerminationProtectionEnabled: input.TerminationProtectionEnabled,
|
|
2656
2641
|
}),
|
|
2657
2642
|
};
|
|
2658
2643
|
};
|
|
2659
2644
|
const serializeAws_json1_1CreateTrailRequest = (input, context) => {
|
|
2660
2645
|
return {
|
|
2661
|
-
...(input.CloudWatchLogsLogGroupArn
|
|
2662
|
-
|
|
2663
|
-
...(input.
|
|
2664
|
-
|
|
2665
|
-
...(input.
|
|
2666
|
-
|
|
2667
|
-
...(input.
|
|
2668
|
-
|
|
2669
|
-
...(input.
|
|
2670
|
-
|
|
2671
|
-
...(input.
|
|
2672
|
-
|
|
2673
|
-
...(input.KmsKeyId !== undefined && input.KmsKeyId !== null && { KmsKeyId: input.KmsKeyId }),
|
|
2674
|
-
...(input.Name !== undefined && input.Name !== null && { Name: input.Name }),
|
|
2675
|
-
...(input.S3BucketName !== undefined && input.S3BucketName !== null && { S3BucketName: input.S3BucketName }),
|
|
2676
|
-
...(input.S3KeyPrefix !== undefined && input.S3KeyPrefix !== null && { S3KeyPrefix: input.S3KeyPrefix }),
|
|
2677
|
-
...(input.SnsTopicName !== undefined && input.SnsTopicName !== null && { SnsTopicName: input.SnsTopicName }),
|
|
2678
|
-
...(input.TagsList !== undefined &&
|
|
2679
|
-
input.TagsList !== null && { TagsList: serializeAws_json1_1TagsList(input.TagsList, context) }),
|
|
2646
|
+
...(input.CloudWatchLogsLogGroupArn != null && { CloudWatchLogsLogGroupArn: input.CloudWatchLogsLogGroupArn }),
|
|
2647
|
+
...(input.CloudWatchLogsRoleArn != null && { CloudWatchLogsRoleArn: input.CloudWatchLogsRoleArn }),
|
|
2648
|
+
...(input.EnableLogFileValidation != null && { EnableLogFileValidation: input.EnableLogFileValidation }),
|
|
2649
|
+
...(input.IncludeGlobalServiceEvents != null && { IncludeGlobalServiceEvents: input.IncludeGlobalServiceEvents }),
|
|
2650
|
+
...(input.IsMultiRegionTrail != null && { IsMultiRegionTrail: input.IsMultiRegionTrail }),
|
|
2651
|
+
...(input.IsOrganizationTrail != null && { IsOrganizationTrail: input.IsOrganizationTrail }),
|
|
2652
|
+
...(input.KmsKeyId != null && { KmsKeyId: input.KmsKeyId }),
|
|
2653
|
+
...(input.Name != null && { Name: input.Name }),
|
|
2654
|
+
...(input.S3BucketName != null && { S3BucketName: input.S3BucketName }),
|
|
2655
|
+
...(input.S3KeyPrefix != null && { S3KeyPrefix: input.S3KeyPrefix }),
|
|
2656
|
+
...(input.SnsTopicName != null && { SnsTopicName: input.SnsTopicName }),
|
|
2657
|
+
...(input.TagsList != null && { TagsList: serializeAws_json1_1TagsList(input.TagsList, context) }),
|
|
2680
2658
|
};
|
|
2681
2659
|
};
|
|
2682
2660
|
const serializeAws_json1_1DataResource = (input, context) => {
|
|
2683
2661
|
return {
|
|
2684
|
-
...(input.Type
|
|
2685
|
-
...(input.Values
|
|
2686
|
-
input.Values !== null && { Values: serializeAws_json1_1DataResourceValues(input.Values, context) }),
|
|
2662
|
+
...(input.Type != null && { Type: input.Type }),
|
|
2663
|
+
...(input.Values != null && { Values: serializeAws_json1_1DataResourceValues(input.Values, context) }),
|
|
2687
2664
|
};
|
|
2688
2665
|
};
|
|
2689
2666
|
const serializeAws_json1_1DataResources = (input, context) => {
|
|
@@ -2708,45 +2685,38 @@ const serializeAws_json1_1DataResourceValues = (input, context) => {
|
|
|
2708
2685
|
};
|
|
2709
2686
|
const serializeAws_json1_1DeleteEventDataStoreRequest = (input, context) => {
|
|
2710
2687
|
return {
|
|
2711
|
-
...(input.EventDataStore
|
|
2712
|
-
input.EventDataStore !== null && { EventDataStore: input.EventDataStore }),
|
|
2688
|
+
...(input.EventDataStore != null && { EventDataStore: input.EventDataStore }),
|
|
2713
2689
|
};
|
|
2714
2690
|
};
|
|
2715
2691
|
const serializeAws_json1_1DeleteTrailRequest = (input, context) => {
|
|
2716
2692
|
return {
|
|
2717
|
-
...(input.Name
|
|
2693
|
+
...(input.Name != null && { Name: input.Name }),
|
|
2718
2694
|
};
|
|
2719
2695
|
};
|
|
2720
2696
|
const serializeAws_json1_1DescribeQueryRequest = (input, context) => {
|
|
2721
2697
|
return {
|
|
2722
|
-
...(input.EventDataStore
|
|
2723
|
-
|
|
2724
|
-
...(input.QueryId !== undefined && input.QueryId !== null && { QueryId: input.QueryId }),
|
|
2698
|
+
...(input.EventDataStore != null && { EventDataStore: input.EventDataStore }),
|
|
2699
|
+
...(input.QueryId != null && { QueryId: input.QueryId }),
|
|
2725
2700
|
};
|
|
2726
2701
|
};
|
|
2727
2702
|
const serializeAws_json1_1DescribeTrailsRequest = (input, context) => {
|
|
2728
2703
|
return {
|
|
2729
|
-
...(input.includeShadowTrails
|
|
2730
|
-
|
|
2731
|
-
...(input.trailNameList !== undefined &&
|
|
2732
|
-
input.trailNameList !== null && {
|
|
2704
|
+
...(input.includeShadowTrails != null && { includeShadowTrails: input.includeShadowTrails }),
|
|
2705
|
+
...(input.trailNameList != null && {
|
|
2733
2706
|
trailNameList: serializeAws_json1_1TrailNameList(input.trailNameList, context),
|
|
2734
2707
|
}),
|
|
2735
2708
|
};
|
|
2736
2709
|
};
|
|
2737
2710
|
const serializeAws_json1_1EventSelector = (input, context) => {
|
|
2738
2711
|
return {
|
|
2739
|
-
...(input.DataResources
|
|
2740
|
-
input.DataResources !== null && {
|
|
2712
|
+
...(input.DataResources != null && {
|
|
2741
2713
|
DataResources: serializeAws_json1_1DataResources(input.DataResources, context),
|
|
2742
2714
|
}),
|
|
2743
|
-
...(input.ExcludeManagementEventSources
|
|
2744
|
-
input.ExcludeManagementEventSources !== null && {
|
|
2715
|
+
...(input.ExcludeManagementEventSources != null && {
|
|
2745
2716
|
ExcludeManagementEventSources: serializeAws_json1_1ExcludeManagementEventSources(input.ExcludeManagementEventSources, context),
|
|
2746
2717
|
}),
|
|
2747
|
-
...(input.IncludeManagementEvents
|
|
2748
|
-
|
|
2749
|
-
...(input.ReadWriteType !== undefined && input.ReadWriteType !== null && { ReadWriteType: input.ReadWriteType }),
|
|
2718
|
+
...(input.IncludeManagementEvents != null && { IncludeManagementEvents: input.IncludeManagementEvents }),
|
|
2719
|
+
...(input.ReadWriteType != null && { ReadWriteType: input.ReadWriteType }),
|
|
2750
2720
|
};
|
|
2751
2721
|
};
|
|
2752
2722
|
const serializeAws_json1_1EventSelectors = (input, context) => {
|
|
@@ -2771,43 +2741,40 @@ const serializeAws_json1_1ExcludeManagementEventSources = (input, context) => {
|
|
|
2771
2741
|
};
|
|
2772
2742
|
const serializeAws_json1_1GetEventDataStoreRequest = (input, context) => {
|
|
2773
2743
|
return {
|
|
2774
|
-
...(input.EventDataStore
|
|
2775
|
-
input.EventDataStore !== null && { EventDataStore: input.EventDataStore }),
|
|
2744
|
+
...(input.EventDataStore != null && { EventDataStore: input.EventDataStore }),
|
|
2776
2745
|
};
|
|
2777
2746
|
};
|
|
2778
2747
|
const serializeAws_json1_1GetEventSelectorsRequest = (input, context) => {
|
|
2779
2748
|
return {
|
|
2780
|
-
...(input.TrailName
|
|
2749
|
+
...(input.TrailName != null && { TrailName: input.TrailName }),
|
|
2781
2750
|
};
|
|
2782
2751
|
};
|
|
2783
2752
|
const serializeAws_json1_1GetInsightSelectorsRequest = (input, context) => {
|
|
2784
2753
|
return {
|
|
2785
|
-
...(input.TrailName
|
|
2754
|
+
...(input.TrailName != null && { TrailName: input.TrailName }),
|
|
2786
2755
|
};
|
|
2787
2756
|
};
|
|
2788
2757
|
const serializeAws_json1_1GetQueryResultsRequest = (input, context) => {
|
|
2789
2758
|
return {
|
|
2790
|
-
...(input.EventDataStore
|
|
2791
|
-
|
|
2792
|
-
...(input.
|
|
2793
|
-
|
|
2794
|
-
...(input.NextToken !== undefined && input.NextToken !== null && { NextToken: input.NextToken }),
|
|
2795
|
-
...(input.QueryId !== undefined && input.QueryId !== null && { QueryId: input.QueryId }),
|
|
2759
|
+
...(input.EventDataStore != null && { EventDataStore: input.EventDataStore }),
|
|
2760
|
+
...(input.MaxQueryResults != null && { MaxQueryResults: input.MaxQueryResults }),
|
|
2761
|
+
...(input.NextToken != null && { NextToken: input.NextToken }),
|
|
2762
|
+
...(input.QueryId != null && { QueryId: input.QueryId }),
|
|
2796
2763
|
};
|
|
2797
2764
|
};
|
|
2798
2765
|
const serializeAws_json1_1GetTrailRequest = (input, context) => {
|
|
2799
2766
|
return {
|
|
2800
|
-
...(input.Name
|
|
2767
|
+
...(input.Name != null && { Name: input.Name }),
|
|
2801
2768
|
};
|
|
2802
2769
|
};
|
|
2803
2770
|
const serializeAws_json1_1GetTrailStatusRequest = (input, context) => {
|
|
2804
2771
|
return {
|
|
2805
|
-
...(input.Name
|
|
2772
|
+
...(input.Name != null && { Name: input.Name }),
|
|
2806
2773
|
};
|
|
2807
2774
|
};
|
|
2808
2775
|
const serializeAws_json1_1InsightSelector = (input, context) => {
|
|
2809
2776
|
return {
|
|
2810
|
-
...(input.InsightType
|
|
2777
|
+
...(input.InsightType != null && { InsightType: input.InsightType }),
|
|
2811
2778
|
};
|
|
2812
2779
|
};
|
|
2813
2780
|
const serializeAws_json1_1InsightSelectors = (input, context) => {
|
|
@@ -2822,51 +2789,44 @@ const serializeAws_json1_1InsightSelectors = (input, context) => {
|
|
|
2822
2789
|
};
|
|
2823
2790
|
const serializeAws_json1_1ListEventDataStoresRequest = (input, context) => {
|
|
2824
2791
|
return {
|
|
2825
|
-
...(input.MaxResults
|
|
2826
|
-
...(input.NextToken
|
|
2792
|
+
...(input.MaxResults != null && { MaxResults: input.MaxResults }),
|
|
2793
|
+
...(input.NextToken != null && { NextToken: input.NextToken }),
|
|
2827
2794
|
};
|
|
2828
2795
|
};
|
|
2829
2796
|
const serializeAws_json1_1ListPublicKeysRequest = (input, context) => {
|
|
2830
2797
|
return {
|
|
2831
|
-
...(input.EndTime
|
|
2832
|
-
|
|
2833
|
-
...(input.
|
|
2834
|
-
...(input.StartTime !== undefined &&
|
|
2835
|
-
input.StartTime !== null && { StartTime: Math.round(input.StartTime.getTime() / 1000) }),
|
|
2798
|
+
...(input.EndTime != null && { EndTime: Math.round(input.EndTime.getTime() / 1000) }),
|
|
2799
|
+
...(input.NextToken != null && { NextToken: input.NextToken }),
|
|
2800
|
+
...(input.StartTime != null && { StartTime: Math.round(input.StartTime.getTime() / 1000) }),
|
|
2836
2801
|
};
|
|
2837
2802
|
};
|
|
2838
2803
|
const serializeAws_json1_1ListQueriesRequest = (input, context) => {
|
|
2839
2804
|
return {
|
|
2840
|
-
...(input.EndTime
|
|
2841
|
-
|
|
2842
|
-
...(input.
|
|
2843
|
-
|
|
2844
|
-
...(input.
|
|
2845
|
-
...(input.
|
|
2846
|
-
...(input.QueryStatus !== undefined && input.QueryStatus !== null && { QueryStatus: input.QueryStatus }),
|
|
2847
|
-
...(input.StartTime !== undefined &&
|
|
2848
|
-
input.StartTime !== null && { StartTime: Math.round(input.StartTime.getTime() / 1000) }),
|
|
2805
|
+
...(input.EndTime != null && { EndTime: Math.round(input.EndTime.getTime() / 1000) }),
|
|
2806
|
+
...(input.EventDataStore != null && { EventDataStore: input.EventDataStore }),
|
|
2807
|
+
...(input.MaxResults != null && { MaxResults: input.MaxResults }),
|
|
2808
|
+
...(input.NextToken != null && { NextToken: input.NextToken }),
|
|
2809
|
+
...(input.QueryStatus != null && { QueryStatus: input.QueryStatus }),
|
|
2810
|
+
...(input.StartTime != null && { StartTime: Math.round(input.StartTime.getTime() / 1000) }),
|
|
2849
2811
|
};
|
|
2850
2812
|
};
|
|
2851
2813
|
const serializeAws_json1_1ListTagsRequest = (input, context) => {
|
|
2852
2814
|
return {
|
|
2853
|
-
...(input.NextToken
|
|
2854
|
-
...(input.ResourceIdList
|
|
2855
|
-
input.ResourceIdList !== null && {
|
|
2815
|
+
...(input.NextToken != null && { NextToken: input.NextToken }),
|
|
2816
|
+
...(input.ResourceIdList != null && {
|
|
2856
2817
|
ResourceIdList: serializeAws_json1_1ResourceIdList(input.ResourceIdList, context),
|
|
2857
2818
|
}),
|
|
2858
2819
|
};
|
|
2859
2820
|
};
|
|
2860
2821
|
const serializeAws_json1_1ListTrailsRequest = (input, context) => {
|
|
2861
2822
|
return {
|
|
2862
|
-
...(input.NextToken
|
|
2823
|
+
...(input.NextToken != null && { NextToken: input.NextToken }),
|
|
2863
2824
|
};
|
|
2864
2825
|
};
|
|
2865
2826
|
const serializeAws_json1_1LookupAttribute = (input, context) => {
|
|
2866
2827
|
return {
|
|
2867
|
-
...(input.AttributeKey
|
|
2868
|
-
...(input.AttributeValue
|
|
2869
|
-
input.AttributeValue !== null && { AttributeValue: input.AttributeValue }),
|
|
2828
|
+
...(input.AttributeKey != null && { AttributeKey: input.AttributeKey }),
|
|
2829
|
+
...(input.AttributeValue != null && { AttributeValue: input.AttributeValue }),
|
|
2870
2830
|
};
|
|
2871
2831
|
};
|
|
2872
2832
|
const serializeAws_json1_1LookupAttributesList = (input, context) => {
|
|
@@ -2881,17 +2841,14 @@ const serializeAws_json1_1LookupAttributesList = (input, context) => {
|
|
|
2881
2841
|
};
|
|
2882
2842
|
const serializeAws_json1_1LookupEventsRequest = (input, context) => {
|
|
2883
2843
|
return {
|
|
2884
|
-
...(input.EndTime
|
|
2885
|
-
|
|
2886
|
-
...(input.
|
|
2887
|
-
...(input.LookupAttributes !== undefined &&
|
|
2888
|
-
input.LookupAttributes !== null && {
|
|
2844
|
+
...(input.EndTime != null && { EndTime: Math.round(input.EndTime.getTime() / 1000) }),
|
|
2845
|
+
...(input.EventCategory != null && { EventCategory: input.EventCategory }),
|
|
2846
|
+
...(input.LookupAttributes != null && {
|
|
2889
2847
|
LookupAttributes: serializeAws_json1_1LookupAttributesList(input.LookupAttributes, context),
|
|
2890
2848
|
}),
|
|
2891
|
-
...(input.MaxResults
|
|
2892
|
-
...(input.NextToken
|
|
2893
|
-
...(input.StartTime
|
|
2894
|
-
input.StartTime !== null && { StartTime: Math.round(input.StartTime.getTime() / 1000) }),
|
|
2849
|
+
...(input.MaxResults != null && { MaxResults: input.MaxResults }),
|
|
2850
|
+
...(input.NextToken != null && { NextToken: input.NextToken }),
|
|
2851
|
+
...(input.StartTime != null && { StartTime: Math.round(input.StartTime.getTime() / 1000) }),
|
|
2895
2852
|
};
|
|
2896
2853
|
};
|
|
2897
2854
|
const serializeAws_json1_1Operator = (input, context) => {
|
|
@@ -2906,31 +2863,27 @@ const serializeAws_json1_1Operator = (input, context) => {
|
|
|
2906
2863
|
};
|
|
2907
2864
|
const serializeAws_json1_1PutEventSelectorsRequest = (input, context) => {
|
|
2908
2865
|
return {
|
|
2909
|
-
...(input.AdvancedEventSelectors
|
|
2910
|
-
input.AdvancedEventSelectors !== null && {
|
|
2866
|
+
...(input.AdvancedEventSelectors != null && {
|
|
2911
2867
|
AdvancedEventSelectors: serializeAws_json1_1AdvancedEventSelectors(input.AdvancedEventSelectors, context),
|
|
2912
2868
|
}),
|
|
2913
|
-
...(input.EventSelectors
|
|
2914
|
-
input.EventSelectors !== null && {
|
|
2869
|
+
...(input.EventSelectors != null && {
|
|
2915
2870
|
EventSelectors: serializeAws_json1_1EventSelectors(input.EventSelectors, context),
|
|
2916
2871
|
}),
|
|
2917
|
-
...(input.TrailName
|
|
2872
|
+
...(input.TrailName != null && { TrailName: input.TrailName }),
|
|
2918
2873
|
};
|
|
2919
2874
|
};
|
|
2920
2875
|
const serializeAws_json1_1PutInsightSelectorsRequest = (input, context) => {
|
|
2921
2876
|
return {
|
|
2922
|
-
...(input.InsightSelectors
|
|
2923
|
-
input.InsightSelectors !== null && {
|
|
2877
|
+
...(input.InsightSelectors != null && {
|
|
2924
2878
|
InsightSelectors: serializeAws_json1_1InsightSelectors(input.InsightSelectors, context),
|
|
2925
2879
|
}),
|
|
2926
|
-
...(input.TrailName
|
|
2880
|
+
...(input.TrailName != null && { TrailName: input.TrailName }),
|
|
2927
2881
|
};
|
|
2928
2882
|
};
|
|
2929
2883
|
const serializeAws_json1_1RemoveTagsRequest = (input, context) => {
|
|
2930
2884
|
return {
|
|
2931
|
-
...(input.ResourceId
|
|
2932
|
-
...(input.TagsList
|
|
2933
|
-
input.TagsList !== null && { TagsList: serializeAws_json1_1TagsList(input.TagsList, context) }),
|
|
2885
|
+
...(input.ResourceId != null && { ResourceId: input.ResourceId }),
|
|
2886
|
+
...(input.TagsList != null && { TagsList: serializeAws_json1_1TagsList(input.TagsList, context) }),
|
|
2934
2887
|
};
|
|
2935
2888
|
};
|
|
2936
2889
|
const serializeAws_json1_1ResourceIdList = (input, context) => {
|
|
@@ -2945,30 +2898,28 @@ const serializeAws_json1_1ResourceIdList = (input, context) => {
|
|
|
2945
2898
|
};
|
|
2946
2899
|
const serializeAws_json1_1RestoreEventDataStoreRequest = (input, context) => {
|
|
2947
2900
|
return {
|
|
2948
|
-
...(input.EventDataStore
|
|
2949
|
-
input.EventDataStore !== null && { EventDataStore: input.EventDataStore }),
|
|
2901
|
+
...(input.EventDataStore != null && { EventDataStore: input.EventDataStore }),
|
|
2950
2902
|
};
|
|
2951
2903
|
};
|
|
2952
2904
|
const serializeAws_json1_1StartLoggingRequest = (input, context) => {
|
|
2953
2905
|
return {
|
|
2954
|
-
...(input.Name
|
|
2906
|
+
...(input.Name != null && { Name: input.Name }),
|
|
2955
2907
|
};
|
|
2956
2908
|
};
|
|
2957
2909
|
const serializeAws_json1_1StartQueryRequest = (input, context) => {
|
|
2958
2910
|
return {
|
|
2959
|
-
...(input.QueryStatement
|
|
2960
|
-
input.QueryStatement !== null && { QueryStatement: input.QueryStatement }),
|
|
2911
|
+
...(input.QueryStatement != null && { QueryStatement: input.QueryStatement }),
|
|
2961
2912
|
};
|
|
2962
2913
|
};
|
|
2963
2914
|
const serializeAws_json1_1StopLoggingRequest = (input, context) => {
|
|
2964
2915
|
return {
|
|
2965
|
-
...(input.Name
|
|
2916
|
+
...(input.Name != null && { Name: input.Name }),
|
|
2966
2917
|
};
|
|
2967
2918
|
};
|
|
2968
2919
|
const serializeAws_json1_1Tag = (input, context) => {
|
|
2969
2920
|
return {
|
|
2970
|
-
...(input.Key
|
|
2971
|
-
...(input.Value
|
|
2921
|
+
...(input.Key != null && { Key: input.Key }),
|
|
2922
|
+
...(input.Value != null && { Value: input.Value }),
|
|
2972
2923
|
};
|
|
2973
2924
|
};
|
|
2974
2925
|
const serializeAws_json1_1TagsList = (input, context) => {
|
|
@@ -2993,44 +2944,32 @@ const serializeAws_json1_1TrailNameList = (input, context) => {
|
|
|
2993
2944
|
};
|
|
2994
2945
|
const serializeAws_json1_1UpdateEventDataStoreRequest = (input, context) => {
|
|
2995
2946
|
return {
|
|
2996
|
-
...(input.AdvancedEventSelectors
|
|
2997
|
-
input.AdvancedEventSelectors !== null && {
|
|
2947
|
+
...(input.AdvancedEventSelectors != null && {
|
|
2998
2948
|
AdvancedEventSelectors: serializeAws_json1_1AdvancedEventSelectors(input.AdvancedEventSelectors, context),
|
|
2999
2949
|
}),
|
|
3000
|
-
...(input.EventDataStore
|
|
3001
|
-
|
|
3002
|
-
...(input.
|
|
3003
|
-
|
|
3004
|
-
...(input.
|
|
3005
|
-
...(input.
|
|
3006
|
-
input.OrganizationEnabled !== null && { OrganizationEnabled: input.OrganizationEnabled }),
|
|
3007
|
-
...(input.RetentionPeriod !== undefined &&
|
|
3008
|
-
input.RetentionPeriod !== null && { RetentionPeriod: input.RetentionPeriod }),
|
|
3009
|
-
...(input.TerminationProtectionEnabled !== undefined &&
|
|
3010
|
-
input.TerminationProtectionEnabled !== null && {
|
|
2950
|
+
...(input.EventDataStore != null && { EventDataStore: input.EventDataStore }),
|
|
2951
|
+
...(input.MultiRegionEnabled != null && { MultiRegionEnabled: input.MultiRegionEnabled }),
|
|
2952
|
+
...(input.Name != null && { Name: input.Name }),
|
|
2953
|
+
...(input.OrganizationEnabled != null && { OrganizationEnabled: input.OrganizationEnabled }),
|
|
2954
|
+
...(input.RetentionPeriod != null && { RetentionPeriod: input.RetentionPeriod }),
|
|
2955
|
+
...(input.TerminationProtectionEnabled != null && {
|
|
3011
2956
|
TerminationProtectionEnabled: input.TerminationProtectionEnabled,
|
|
3012
2957
|
}),
|
|
3013
2958
|
};
|
|
3014
2959
|
};
|
|
3015
2960
|
const serializeAws_json1_1UpdateTrailRequest = (input, context) => {
|
|
3016
2961
|
return {
|
|
3017
|
-
...(input.CloudWatchLogsLogGroupArn
|
|
3018
|
-
|
|
3019
|
-
...(input.
|
|
3020
|
-
|
|
3021
|
-
...(input.
|
|
3022
|
-
|
|
3023
|
-
...(input.
|
|
3024
|
-
|
|
3025
|
-
...(input.
|
|
3026
|
-
|
|
3027
|
-
...(input.
|
|
3028
|
-
input.IsOrganizationTrail !== null && { IsOrganizationTrail: input.IsOrganizationTrail }),
|
|
3029
|
-
...(input.KmsKeyId !== undefined && input.KmsKeyId !== null && { KmsKeyId: input.KmsKeyId }),
|
|
3030
|
-
...(input.Name !== undefined && input.Name !== null && { Name: input.Name }),
|
|
3031
|
-
...(input.S3BucketName !== undefined && input.S3BucketName !== null && { S3BucketName: input.S3BucketName }),
|
|
3032
|
-
...(input.S3KeyPrefix !== undefined && input.S3KeyPrefix !== null && { S3KeyPrefix: input.S3KeyPrefix }),
|
|
3033
|
-
...(input.SnsTopicName !== undefined && input.SnsTopicName !== null && { SnsTopicName: input.SnsTopicName }),
|
|
2962
|
+
...(input.CloudWatchLogsLogGroupArn != null && { CloudWatchLogsLogGroupArn: input.CloudWatchLogsLogGroupArn }),
|
|
2963
|
+
...(input.CloudWatchLogsRoleArn != null && { CloudWatchLogsRoleArn: input.CloudWatchLogsRoleArn }),
|
|
2964
|
+
...(input.EnableLogFileValidation != null && { EnableLogFileValidation: input.EnableLogFileValidation }),
|
|
2965
|
+
...(input.IncludeGlobalServiceEvents != null && { IncludeGlobalServiceEvents: input.IncludeGlobalServiceEvents }),
|
|
2966
|
+
...(input.IsMultiRegionTrail != null && { IsMultiRegionTrail: input.IsMultiRegionTrail }),
|
|
2967
|
+
...(input.IsOrganizationTrail != null && { IsOrganizationTrail: input.IsOrganizationTrail }),
|
|
2968
|
+
...(input.KmsKeyId != null && { KmsKeyId: input.KmsKeyId }),
|
|
2969
|
+
...(input.Name != null && { Name: input.Name }),
|
|
2970
|
+
...(input.S3BucketName != null && { S3BucketName: input.S3BucketName }),
|
|
2971
|
+
...(input.S3KeyPrefix != null && { S3KeyPrefix: input.S3KeyPrefix }),
|
|
2972
|
+
...(input.SnsTopicName != null && { SnsTopicName: input.SnsTopicName }),
|
|
3034
2973
|
};
|
|
3035
2974
|
};
|
|
3036
2975
|
const deserializeAws_json1_1AddTagsResponse = (output, context) => {
|
|
@@ -3038,7 +2977,7 @@ const deserializeAws_json1_1AddTagsResponse = (output, context) => {
|
|
|
3038
2977
|
};
|
|
3039
2978
|
const deserializeAws_json1_1AdvancedEventSelector = (output, context) => {
|
|
3040
2979
|
return {
|
|
3041
|
-
FieldSelectors: output.FieldSelectors
|
|
2980
|
+
FieldSelectors: output.FieldSelectors != null
|
|
3042
2981
|
? deserializeAws_json1_1AdvancedFieldSelectors(output.FieldSelectors, context)
|
|
3043
2982
|
: undefined,
|
|
3044
2983
|
Name: (0, smithy_client_1.expectString)(output.Name),
|
|
@@ -3057,25 +2996,13 @@ const deserializeAws_json1_1AdvancedEventSelectors = (output, context) => {
|
|
|
3057
2996
|
};
|
|
3058
2997
|
const deserializeAws_json1_1AdvancedFieldSelector = (output, context) => {
|
|
3059
2998
|
return {
|
|
3060
|
-
EndsWith: output.EndsWith
|
|
3061
|
-
|
|
3062
|
-
: undefined,
|
|
3063
|
-
Equals: output.Equals !== undefined && output.Equals !== null
|
|
3064
|
-
? deserializeAws_json1_1Operator(output.Equals, context)
|
|
3065
|
-
: undefined,
|
|
2999
|
+
EndsWith: output.EndsWith != null ? deserializeAws_json1_1Operator(output.EndsWith, context) : undefined,
|
|
3000
|
+
Equals: output.Equals != null ? deserializeAws_json1_1Operator(output.Equals, context) : undefined,
|
|
3066
3001
|
Field: (0, smithy_client_1.expectString)(output.Field),
|
|
3067
|
-
NotEndsWith: output.NotEndsWith
|
|
3068
|
-
|
|
3069
|
-
|
|
3070
|
-
|
|
3071
|
-
? deserializeAws_json1_1Operator(output.NotEquals, context)
|
|
3072
|
-
: undefined,
|
|
3073
|
-
NotStartsWith: output.NotStartsWith !== undefined && output.NotStartsWith !== null
|
|
3074
|
-
? deserializeAws_json1_1Operator(output.NotStartsWith, context)
|
|
3075
|
-
: undefined,
|
|
3076
|
-
StartsWith: output.StartsWith !== undefined && output.StartsWith !== null
|
|
3077
|
-
? deserializeAws_json1_1Operator(output.StartsWith, context)
|
|
3078
|
-
: undefined,
|
|
3002
|
+
NotEndsWith: output.NotEndsWith != null ? deserializeAws_json1_1Operator(output.NotEndsWith, context) : undefined,
|
|
3003
|
+
NotEquals: output.NotEquals != null ? deserializeAws_json1_1Operator(output.NotEquals, context) : undefined,
|
|
3004
|
+
NotStartsWith: output.NotStartsWith != null ? deserializeAws_json1_1Operator(output.NotStartsWith, context) : undefined,
|
|
3005
|
+
StartsWith: output.StartsWith != null ? deserializeAws_json1_1Operator(output.StartsWith, context) : undefined,
|
|
3079
3006
|
};
|
|
3080
3007
|
};
|
|
3081
3008
|
const deserializeAws_json1_1AdvancedFieldSelectors = (output, context) => {
|
|
@@ -3122,10 +3049,10 @@ const deserializeAws_json1_1ConflictException = (output, context) => {
|
|
|
3122
3049
|
};
|
|
3123
3050
|
const deserializeAws_json1_1CreateEventDataStoreResponse = (output, context) => {
|
|
3124
3051
|
return {
|
|
3125
|
-
AdvancedEventSelectors: output.AdvancedEventSelectors
|
|
3052
|
+
AdvancedEventSelectors: output.AdvancedEventSelectors != null
|
|
3126
3053
|
? deserializeAws_json1_1AdvancedEventSelectors(output.AdvancedEventSelectors, context)
|
|
3127
3054
|
: undefined,
|
|
3128
|
-
CreatedTimestamp: output.CreatedTimestamp
|
|
3055
|
+
CreatedTimestamp: output.CreatedTimestamp != null
|
|
3129
3056
|
? (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(output.CreatedTimestamp)))
|
|
3130
3057
|
: undefined,
|
|
3131
3058
|
EventDataStoreArn: (0, smithy_client_1.expectString)(output.EventDataStoreArn),
|
|
@@ -3134,11 +3061,9 @@ const deserializeAws_json1_1CreateEventDataStoreResponse = (output, context) =>
|
|
|
3134
3061
|
OrganizationEnabled: (0, smithy_client_1.expectBoolean)(output.OrganizationEnabled),
|
|
3135
3062
|
RetentionPeriod: (0, smithy_client_1.expectInt32)(output.RetentionPeriod),
|
|
3136
3063
|
Status: (0, smithy_client_1.expectString)(output.Status),
|
|
3137
|
-
TagsList: output.TagsList
|
|
3138
|
-
? deserializeAws_json1_1TagsList(output.TagsList, context)
|
|
3139
|
-
: undefined,
|
|
3064
|
+
TagsList: output.TagsList != null ? deserializeAws_json1_1TagsList(output.TagsList, context) : undefined,
|
|
3140
3065
|
TerminationProtectionEnabled: (0, smithy_client_1.expectBoolean)(output.TerminationProtectionEnabled),
|
|
3141
|
-
UpdatedTimestamp: output.UpdatedTimestamp
|
|
3066
|
+
UpdatedTimestamp: output.UpdatedTimestamp != null
|
|
3142
3067
|
? (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(output.UpdatedTimestamp)))
|
|
3143
3068
|
: undefined,
|
|
3144
3069
|
};
|
|
@@ -3163,9 +3088,7 @@ const deserializeAws_json1_1CreateTrailResponse = (output, context) => {
|
|
|
3163
3088
|
const deserializeAws_json1_1DataResource = (output, context) => {
|
|
3164
3089
|
return {
|
|
3165
3090
|
Type: (0, smithy_client_1.expectString)(output.Type),
|
|
3166
|
-
Values: output.Values
|
|
3167
|
-
? deserializeAws_json1_1DataResourceValues(output.Values, context)
|
|
3168
|
-
: undefined,
|
|
3091
|
+
Values: output.Values != null ? deserializeAws_json1_1DataResourceValues(output.Values, context) : undefined,
|
|
3169
3092
|
};
|
|
3170
3093
|
};
|
|
3171
3094
|
const deserializeAws_json1_1DataResources = (output, context) => {
|
|
@@ -3200,7 +3123,7 @@ const deserializeAws_json1_1DescribeQueryResponse = (output, context) => {
|
|
|
3200
3123
|
return {
|
|
3201
3124
|
ErrorMessage: (0, smithy_client_1.expectString)(output.ErrorMessage),
|
|
3202
3125
|
QueryId: (0, smithy_client_1.expectString)(output.QueryId),
|
|
3203
|
-
QueryStatistics: output.QueryStatistics
|
|
3126
|
+
QueryStatistics: output.QueryStatistics != null
|
|
3204
3127
|
? deserializeAws_json1_1QueryStatisticsForDescribeQuery(output.QueryStatistics, context)
|
|
3205
3128
|
: undefined,
|
|
3206
3129
|
QueryStatus: (0, smithy_client_1.expectString)(output.QueryStatus),
|
|
@@ -3209,9 +3132,7 @@ const deserializeAws_json1_1DescribeQueryResponse = (output, context) => {
|
|
|
3209
3132
|
};
|
|
3210
3133
|
const deserializeAws_json1_1DescribeTrailsResponse = (output, context) => {
|
|
3211
3134
|
return {
|
|
3212
|
-
trailList: output.trailList
|
|
3213
|
-
? deserializeAws_json1_1TrailList(output.trailList, context)
|
|
3214
|
-
: undefined,
|
|
3135
|
+
trailList: output.trailList != null ? deserializeAws_json1_1TrailList(output.trailList, context) : undefined,
|
|
3215
3136
|
};
|
|
3216
3137
|
};
|
|
3217
3138
|
const deserializeAws_json1_1Event = (output, context) => {
|
|
@@ -3221,22 +3142,18 @@ const deserializeAws_json1_1Event = (output, context) => {
|
|
|
3221
3142
|
EventId: (0, smithy_client_1.expectString)(output.EventId),
|
|
3222
3143
|
EventName: (0, smithy_client_1.expectString)(output.EventName),
|
|
3223
3144
|
EventSource: (0, smithy_client_1.expectString)(output.EventSource),
|
|
3224
|
-
EventTime: output.EventTime
|
|
3225
|
-
? (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(output.EventTime)))
|
|
3226
|
-
: undefined,
|
|
3145
|
+
EventTime: output.EventTime != null ? (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(output.EventTime))) : undefined,
|
|
3227
3146
|
ReadOnly: (0, smithy_client_1.expectString)(output.ReadOnly),
|
|
3228
|
-
Resources: output.Resources
|
|
3229
|
-
? deserializeAws_json1_1ResourceList(output.Resources, context)
|
|
3230
|
-
: undefined,
|
|
3147
|
+
Resources: output.Resources != null ? deserializeAws_json1_1ResourceList(output.Resources, context) : undefined,
|
|
3231
3148
|
Username: (0, smithy_client_1.expectString)(output.Username),
|
|
3232
3149
|
};
|
|
3233
3150
|
};
|
|
3234
3151
|
const deserializeAws_json1_1EventDataStore = (output, context) => {
|
|
3235
3152
|
return {
|
|
3236
|
-
AdvancedEventSelectors: output.AdvancedEventSelectors
|
|
3153
|
+
AdvancedEventSelectors: output.AdvancedEventSelectors != null
|
|
3237
3154
|
? deserializeAws_json1_1AdvancedEventSelectors(output.AdvancedEventSelectors, context)
|
|
3238
3155
|
: undefined,
|
|
3239
|
-
CreatedTimestamp: output.CreatedTimestamp
|
|
3156
|
+
CreatedTimestamp: output.CreatedTimestamp != null
|
|
3240
3157
|
? (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(output.CreatedTimestamp)))
|
|
3241
3158
|
: undefined,
|
|
3242
3159
|
EventDataStoreArn: (0, smithy_client_1.expectString)(output.EventDataStoreArn),
|
|
@@ -3246,7 +3163,7 @@ const deserializeAws_json1_1EventDataStore = (output, context) => {
|
|
|
3246
3163
|
RetentionPeriod: (0, smithy_client_1.expectInt32)(output.RetentionPeriod),
|
|
3247
3164
|
Status: (0, smithy_client_1.expectString)(output.Status),
|
|
3248
3165
|
TerminationProtectionEnabled: (0, smithy_client_1.expectBoolean)(output.TerminationProtectionEnabled),
|
|
3249
|
-
UpdatedTimestamp: output.UpdatedTimestamp
|
|
3166
|
+
UpdatedTimestamp: output.UpdatedTimestamp != null
|
|
3250
3167
|
? (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(output.UpdatedTimestamp)))
|
|
3251
3168
|
: undefined,
|
|
3252
3169
|
};
|
|
@@ -3289,10 +3206,8 @@ const deserializeAws_json1_1EventDataStoreTerminationProtectedException = (outpu
|
|
|
3289
3206
|
};
|
|
3290
3207
|
const deserializeAws_json1_1EventSelector = (output, context) => {
|
|
3291
3208
|
return {
|
|
3292
|
-
DataResources: output.DataResources
|
|
3293
|
-
|
|
3294
|
-
: undefined,
|
|
3295
|
-
ExcludeManagementEventSources: output.ExcludeManagementEventSources !== undefined && output.ExcludeManagementEventSources !== null
|
|
3209
|
+
DataResources: output.DataResources != null ? deserializeAws_json1_1DataResources(output.DataResources, context) : undefined,
|
|
3210
|
+
ExcludeManagementEventSources: output.ExcludeManagementEventSources != null
|
|
3296
3211
|
? deserializeAws_json1_1ExcludeManagementEventSources(output.ExcludeManagementEventSources, context)
|
|
3297
3212
|
: undefined,
|
|
3298
3213
|
IncludeManagementEvents: (0, smithy_client_1.expectBoolean)(output.IncludeManagementEvents),
|
|
@@ -3334,10 +3249,10 @@ const deserializeAws_json1_1ExcludeManagementEventSources = (output, context) =>
|
|
|
3334
3249
|
};
|
|
3335
3250
|
const deserializeAws_json1_1GetEventDataStoreResponse = (output, context) => {
|
|
3336
3251
|
return {
|
|
3337
|
-
AdvancedEventSelectors: output.AdvancedEventSelectors
|
|
3252
|
+
AdvancedEventSelectors: output.AdvancedEventSelectors != null
|
|
3338
3253
|
? deserializeAws_json1_1AdvancedEventSelectors(output.AdvancedEventSelectors, context)
|
|
3339
3254
|
: undefined,
|
|
3340
|
-
CreatedTimestamp: output.CreatedTimestamp
|
|
3255
|
+
CreatedTimestamp: output.CreatedTimestamp != null
|
|
3341
3256
|
? (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(output.CreatedTimestamp)))
|
|
3342
3257
|
: undefined,
|
|
3343
3258
|
EventDataStoreArn: (0, smithy_client_1.expectString)(output.EventDataStoreArn),
|
|
@@ -3347,25 +3262,23 @@ const deserializeAws_json1_1GetEventDataStoreResponse = (output, context) => {
|
|
|
3347
3262
|
RetentionPeriod: (0, smithy_client_1.expectInt32)(output.RetentionPeriod),
|
|
3348
3263
|
Status: (0, smithy_client_1.expectString)(output.Status),
|
|
3349
3264
|
TerminationProtectionEnabled: (0, smithy_client_1.expectBoolean)(output.TerminationProtectionEnabled),
|
|
3350
|
-
UpdatedTimestamp: output.UpdatedTimestamp
|
|
3265
|
+
UpdatedTimestamp: output.UpdatedTimestamp != null
|
|
3351
3266
|
? (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(output.UpdatedTimestamp)))
|
|
3352
3267
|
: undefined,
|
|
3353
3268
|
};
|
|
3354
3269
|
};
|
|
3355
3270
|
const deserializeAws_json1_1GetEventSelectorsResponse = (output, context) => {
|
|
3356
3271
|
return {
|
|
3357
|
-
AdvancedEventSelectors: output.AdvancedEventSelectors
|
|
3272
|
+
AdvancedEventSelectors: output.AdvancedEventSelectors != null
|
|
3358
3273
|
? deserializeAws_json1_1AdvancedEventSelectors(output.AdvancedEventSelectors, context)
|
|
3359
3274
|
: undefined,
|
|
3360
|
-
EventSelectors: output.EventSelectors
|
|
3361
|
-
? deserializeAws_json1_1EventSelectors(output.EventSelectors, context)
|
|
3362
|
-
: undefined,
|
|
3275
|
+
EventSelectors: output.EventSelectors != null ? deserializeAws_json1_1EventSelectors(output.EventSelectors, context) : undefined,
|
|
3363
3276
|
TrailARN: (0, smithy_client_1.expectString)(output.TrailARN),
|
|
3364
3277
|
};
|
|
3365
3278
|
};
|
|
3366
3279
|
const deserializeAws_json1_1GetInsightSelectorsResponse = (output, context) => {
|
|
3367
3280
|
return {
|
|
3368
|
-
InsightSelectors: output.InsightSelectors
|
|
3281
|
+
InsightSelectors: output.InsightSelectors != null
|
|
3369
3282
|
? deserializeAws_json1_1InsightSelectors(output.InsightSelectors, context)
|
|
3370
3283
|
: undefined,
|
|
3371
3284
|
TrailARN: (0, smithy_client_1.expectString)(output.TrailARN),
|
|
@@ -3375,10 +3288,10 @@ const deserializeAws_json1_1GetQueryResultsResponse = (output, context) => {
|
|
|
3375
3288
|
return {
|
|
3376
3289
|
ErrorMessage: (0, smithy_client_1.expectString)(output.ErrorMessage),
|
|
3377
3290
|
NextToken: (0, smithy_client_1.expectString)(output.NextToken),
|
|
3378
|
-
QueryResultRows: output.QueryResultRows
|
|
3291
|
+
QueryResultRows: output.QueryResultRows != null
|
|
3379
3292
|
? deserializeAws_json1_1QueryResultRows(output.QueryResultRows, context)
|
|
3380
3293
|
: undefined,
|
|
3381
|
-
QueryStatistics: output.QueryStatistics
|
|
3294
|
+
QueryStatistics: output.QueryStatistics != null
|
|
3382
3295
|
? deserializeAws_json1_1QueryStatistics(output.QueryStatistics, context)
|
|
3383
3296
|
: undefined,
|
|
3384
3297
|
QueryStatus: (0, smithy_client_1.expectString)(output.QueryStatus),
|
|
@@ -3386,38 +3299,36 @@ const deserializeAws_json1_1GetQueryResultsResponse = (output, context) => {
|
|
|
3386
3299
|
};
|
|
3387
3300
|
const deserializeAws_json1_1GetTrailResponse = (output, context) => {
|
|
3388
3301
|
return {
|
|
3389
|
-
Trail: output.Trail
|
|
3390
|
-
? deserializeAws_json1_1Trail(output.Trail, context)
|
|
3391
|
-
: undefined,
|
|
3302
|
+
Trail: output.Trail != null ? deserializeAws_json1_1Trail(output.Trail, context) : undefined,
|
|
3392
3303
|
};
|
|
3393
3304
|
};
|
|
3394
3305
|
const deserializeAws_json1_1GetTrailStatusResponse = (output, context) => {
|
|
3395
3306
|
return {
|
|
3396
3307
|
IsLogging: (0, smithy_client_1.expectBoolean)(output.IsLogging),
|
|
3397
3308
|
LatestCloudWatchLogsDeliveryError: (0, smithy_client_1.expectString)(output.LatestCloudWatchLogsDeliveryError),
|
|
3398
|
-
LatestCloudWatchLogsDeliveryTime: output.LatestCloudWatchLogsDeliveryTime
|
|
3309
|
+
LatestCloudWatchLogsDeliveryTime: output.LatestCloudWatchLogsDeliveryTime != null
|
|
3399
3310
|
? (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(output.LatestCloudWatchLogsDeliveryTime)))
|
|
3400
3311
|
: undefined,
|
|
3401
3312
|
LatestDeliveryAttemptSucceeded: (0, smithy_client_1.expectString)(output.LatestDeliveryAttemptSucceeded),
|
|
3402
3313
|
LatestDeliveryAttemptTime: (0, smithy_client_1.expectString)(output.LatestDeliveryAttemptTime),
|
|
3403
3314
|
LatestDeliveryError: (0, smithy_client_1.expectString)(output.LatestDeliveryError),
|
|
3404
|
-
LatestDeliveryTime: output.LatestDeliveryTime
|
|
3315
|
+
LatestDeliveryTime: output.LatestDeliveryTime != null
|
|
3405
3316
|
? (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(output.LatestDeliveryTime)))
|
|
3406
3317
|
: undefined,
|
|
3407
3318
|
LatestDigestDeliveryError: (0, smithy_client_1.expectString)(output.LatestDigestDeliveryError),
|
|
3408
|
-
LatestDigestDeliveryTime: output.LatestDigestDeliveryTime
|
|
3319
|
+
LatestDigestDeliveryTime: output.LatestDigestDeliveryTime != null
|
|
3409
3320
|
? (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(output.LatestDigestDeliveryTime)))
|
|
3410
3321
|
: undefined,
|
|
3411
3322
|
LatestNotificationAttemptSucceeded: (0, smithy_client_1.expectString)(output.LatestNotificationAttemptSucceeded),
|
|
3412
3323
|
LatestNotificationAttemptTime: (0, smithy_client_1.expectString)(output.LatestNotificationAttemptTime),
|
|
3413
3324
|
LatestNotificationError: (0, smithy_client_1.expectString)(output.LatestNotificationError),
|
|
3414
|
-
LatestNotificationTime: output.LatestNotificationTime
|
|
3325
|
+
LatestNotificationTime: output.LatestNotificationTime != null
|
|
3415
3326
|
? (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(output.LatestNotificationTime)))
|
|
3416
3327
|
: undefined,
|
|
3417
|
-
StartLoggingTime: output.StartLoggingTime
|
|
3328
|
+
StartLoggingTime: output.StartLoggingTime != null
|
|
3418
3329
|
? (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(output.StartLoggingTime)))
|
|
3419
3330
|
: undefined,
|
|
3420
|
-
StopLoggingTime: output.StopLoggingTime
|
|
3331
|
+
StopLoggingTime: output.StopLoggingTime != null
|
|
3421
3332
|
? (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(output.StopLoggingTime)))
|
|
3422
3333
|
: undefined,
|
|
3423
3334
|
TimeLoggingStarted: (0, smithy_client_1.expectString)(output.TimeLoggingStarted),
|
|
@@ -3607,7 +3518,7 @@ const deserializeAws_json1_1KmsKeyNotFoundException = (output, context) => {
|
|
|
3607
3518
|
};
|
|
3608
3519
|
const deserializeAws_json1_1ListEventDataStoresResponse = (output, context) => {
|
|
3609
3520
|
return {
|
|
3610
|
-
EventDataStores: output.EventDataStores
|
|
3521
|
+
EventDataStores: output.EventDataStores != null
|
|
3611
3522
|
? deserializeAws_json1_1EventDataStores(output.EventDataStores, context)
|
|
3612
3523
|
: undefined,
|
|
3613
3524
|
NextToken: (0, smithy_client_1.expectString)(output.NextToken),
|
|
@@ -3616,23 +3527,19 @@ const deserializeAws_json1_1ListEventDataStoresResponse = (output, context) => {
|
|
|
3616
3527
|
const deserializeAws_json1_1ListPublicKeysResponse = (output, context) => {
|
|
3617
3528
|
return {
|
|
3618
3529
|
NextToken: (0, smithy_client_1.expectString)(output.NextToken),
|
|
3619
|
-
PublicKeyList: output.PublicKeyList
|
|
3620
|
-
? deserializeAws_json1_1PublicKeyList(output.PublicKeyList, context)
|
|
3621
|
-
: undefined,
|
|
3530
|
+
PublicKeyList: output.PublicKeyList != null ? deserializeAws_json1_1PublicKeyList(output.PublicKeyList, context) : undefined,
|
|
3622
3531
|
};
|
|
3623
3532
|
};
|
|
3624
3533
|
const deserializeAws_json1_1ListQueriesResponse = (output, context) => {
|
|
3625
3534
|
return {
|
|
3626
3535
|
NextToken: (0, smithy_client_1.expectString)(output.NextToken),
|
|
3627
|
-
Queries: output.Queries
|
|
3628
|
-
? deserializeAws_json1_1Queries(output.Queries, context)
|
|
3629
|
-
: undefined,
|
|
3536
|
+
Queries: output.Queries != null ? deserializeAws_json1_1Queries(output.Queries, context) : undefined,
|
|
3630
3537
|
};
|
|
3631
3538
|
};
|
|
3632
3539
|
const deserializeAws_json1_1ListTagsResponse = (output, context) => {
|
|
3633
3540
|
return {
|
|
3634
3541
|
NextToken: (0, smithy_client_1.expectString)(output.NextToken),
|
|
3635
|
-
ResourceTagList: output.ResourceTagList
|
|
3542
|
+
ResourceTagList: output.ResourceTagList != null
|
|
3636
3543
|
? deserializeAws_json1_1ResourceTagList(output.ResourceTagList, context)
|
|
3637
3544
|
: undefined,
|
|
3638
3545
|
};
|
|
@@ -3640,16 +3547,12 @@ const deserializeAws_json1_1ListTagsResponse = (output, context) => {
|
|
|
3640
3547
|
const deserializeAws_json1_1ListTrailsResponse = (output, context) => {
|
|
3641
3548
|
return {
|
|
3642
3549
|
NextToken: (0, smithy_client_1.expectString)(output.NextToken),
|
|
3643
|
-
Trails: output.Trails
|
|
3644
|
-
? deserializeAws_json1_1Trails(output.Trails, context)
|
|
3645
|
-
: undefined,
|
|
3550
|
+
Trails: output.Trails != null ? deserializeAws_json1_1Trails(output.Trails, context) : undefined,
|
|
3646
3551
|
};
|
|
3647
3552
|
};
|
|
3648
3553
|
const deserializeAws_json1_1LookupEventsResponse = (output, context) => {
|
|
3649
3554
|
return {
|
|
3650
|
-
Events: output.Events
|
|
3651
|
-
? deserializeAws_json1_1EventsList(output.Events, context)
|
|
3652
|
-
: undefined,
|
|
3555
|
+
Events: output.Events != null ? deserializeAws_json1_1EventsList(output.Events, context) : undefined,
|
|
3653
3556
|
NextToken: (0, smithy_client_1.expectString)(output.NextToken),
|
|
3654
3557
|
};
|
|
3655
3558
|
};
|
|
@@ -3697,13 +3600,13 @@ const deserializeAws_json1_1OrganizationsNotInUseException = (output, context) =
|
|
|
3697
3600
|
const deserializeAws_json1_1PublicKey = (output, context) => {
|
|
3698
3601
|
return {
|
|
3699
3602
|
Fingerprint: (0, smithy_client_1.expectString)(output.Fingerprint),
|
|
3700
|
-
ValidityEndTime: output.ValidityEndTime
|
|
3603
|
+
ValidityEndTime: output.ValidityEndTime != null
|
|
3701
3604
|
? (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(output.ValidityEndTime)))
|
|
3702
3605
|
: undefined,
|
|
3703
|
-
ValidityStartTime: output.ValidityStartTime
|
|
3606
|
+
ValidityStartTime: output.ValidityStartTime != null
|
|
3704
3607
|
? (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(output.ValidityStartTime)))
|
|
3705
3608
|
: undefined,
|
|
3706
|
-
Value: output.Value
|
|
3609
|
+
Value: output.Value != null ? context.base64Decoder(output.Value) : undefined,
|
|
3707
3610
|
};
|
|
3708
3611
|
};
|
|
3709
3612
|
const deserializeAws_json1_1PublicKeyList = (output, context) => {
|
|
@@ -3719,18 +3622,16 @@ const deserializeAws_json1_1PublicKeyList = (output, context) => {
|
|
|
3719
3622
|
};
|
|
3720
3623
|
const deserializeAws_json1_1PutEventSelectorsResponse = (output, context) => {
|
|
3721
3624
|
return {
|
|
3722
|
-
AdvancedEventSelectors: output.AdvancedEventSelectors
|
|
3625
|
+
AdvancedEventSelectors: output.AdvancedEventSelectors != null
|
|
3723
3626
|
? deserializeAws_json1_1AdvancedEventSelectors(output.AdvancedEventSelectors, context)
|
|
3724
3627
|
: undefined,
|
|
3725
|
-
EventSelectors: output.EventSelectors
|
|
3726
|
-
? deserializeAws_json1_1EventSelectors(output.EventSelectors, context)
|
|
3727
|
-
: undefined,
|
|
3628
|
+
EventSelectors: output.EventSelectors != null ? deserializeAws_json1_1EventSelectors(output.EventSelectors, context) : undefined,
|
|
3728
3629
|
TrailARN: (0, smithy_client_1.expectString)(output.TrailARN),
|
|
3729
3630
|
};
|
|
3730
3631
|
};
|
|
3731
3632
|
const deserializeAws_json1_1PutInsightSelectorsResponse = (output, context) => {
|
|
3732
3633
|
return {
|
|
3733
|
-
InsightSelectors: output.InsightSelectors
|
|
3634
|
+
InsightSelectors: output.InsightSelectors != null
|
|
3734
3635
|
? deserializeAws_json1_1InsightSelectors(output.InsightSelectors, context)
|
|
3735
3636
|
: undefined,
|
|
3736
3637
|
TrailARN: (0, smithy_client_1.expectString)(output.TrailARN),
|
|
@@ -3749,7 +3650,7 @@ const deserializeAws_json1_1Queries = (output, context) => {
|
|
|
3749
3650
|
};
|
|
3750
3651
|
const deserializeAws_json1_1Query = (output, context) => {
|
|
3751
3652
|
return {
|
|
3752
|
-
CreationTime: output.CreationTime
|
|
3653
|
+
CreationTime: output.CreationTime != null
|
|
3753
3654
|
? (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(output.CreationTime)))
|
|
3754
3655
|
: undefined,
|
|
3755
3656
|
QueryId: (0, smithy_client_1.expectString)(output.QueryId),
|
|
@@ -3804,7 +3705,7 @@ const deserializeAws_json1_1QueryStatistics = (output, context) => {
|
|
|
3804
3705
|
const deserializeAws_json1_1QueryStatisticsForDescribeQuery = (output, context) => {
|
|
3805
3706
|
return {
|
|
3806
3707
|
BytesScanned: (0, smithy_client_1.expectLong)(output.BytesScanned),
|
|
3807
|
-
CreationTime: output.CreationTime
|
|
3708
|
+
CreationTime: output.CreationTime != null
|
|
3808
3709
|
? (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(output.CreationTime)))
|
|
3809
3710
|
: undefined,
|
|
3810
3711
|
EventsMatched: (0, smithy_client_1.expectLong)(output.EventsMatched),
|
|
@@ -3840,9 +3741,7 @@ const deserializeAws_json1_1ResourceNotFoundException = (output, context) => {
|
|
|
3840
3741
|
const deserializeAws_json1_1ResourceTag = (output, context) => {
|
|
3841
3742
|
return {
|
|
3842
3743
|
ResourceId: (0, smithy_client_1.expectString)(output.ResourceId),
|
|
3843
|
-
TagsList: output.TagsList
|
|
3844
|
-
? deserializeAws_json1_1TagsList(output.TagsList, context)
|
|
3845
|
-
: undefined,
|
|
3744
|
+
TagsList: output.TagsList != null ? deserializeAws_json1_1TagsList(output.TagsList, context) : undefined,
|
|
3846
3745
|
};
|
|
3847
3746
|
};
|
|
3848
3747
|
const deserializeAws_json1_1ResourceTagList = (output, context) => {
|
|
@@ -3863,10 +3762,10 @@ const deserializeAws_json1_1ResourceTypeNotSupportedException = (output, context
|
|
|
3863
3762
|
};
|
|
3864
3763
|
const deserializeAws_json1_1RestoreEventDataStoreResponse = (output, context) => {
|
|
3865
3764
|
return {
|
|
3866
|
-
AdvancedEventSelectors: output.AdvancedEventSelectors
|
|
3765
|
+
AdvancedEventSelectors: output.AdvancedEventSelectors != null
|
|
3867
3766
|
? deserializeAws_json1_1AdvancedEventSelectors(output.AdvancedEventSelectors, context)
|
|
3868
3767
|
: undefined,
|
|
3869
|
-
CreatedTimestamp: output.CreatedTimestamp
|
|
3768
|
+
CreatedTimestamp: output.CreatedTimestamp != null
|
|
3870
3769
|
? (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(output.CreatedTimestamp)))
|
|
3871
3770
|
: undefined,
|
|
3872
3771
|
EventDataStoreArn: (0, smithy_client_1.expectString)(output.EventDataStoreArn),
|
|
@@ -3876,7 +3775,7 @@ const deserializeAws_json1_1RestoreEventDataStoreResponse = (output, context) =>
|
|
|
3876
3775
|
RetentionPeriod: (0, smithy_client_1.expectInt32)(output.RetentionPeriod),
|
|
3877
3776
|
Status: (0, smithy_client_1.expectString)(output.Status),
|
|
3878
3777
|
TerminationProtectionEnabled: (0, smithy_client_1.expectBoolean)(output.TerminationProtectionEnabled),
|
|
3879
|
-
UpdatedTimestamp: output.UpdatedTimestamp
|
|
3778
|
+
UpdatedTimestamp: output.UpdatedTimestamp != null
|
|
3880
3779
|
? (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(output.UpdatedTimestamp)))
|
|
3881
3780
|
: undefined,
|
|
3882
3781
|
};
|
|
@@ -3990,10 +3889,10 @@ const deserializeAws_json1_1UnsupportedOperationException = (output, context) =>
|
|
|
3990
3889
|
};
|
|
3991
3890
|
const deserializeAws_json1_1UpdateEventDataStoreResponse = (output, context) => {
|
|
3992
3891
|
return {
|
|
3993
|
-
AdvancedEventSelectors: output.AdvancedEventSelectors
|
|
3892
|
+
AdvancedEventSelectors: output.AdvancedEventSelectors != null
|
|
3994
3893
|
? deserializeAws_json1_1AdvancedEventSelectors(output.AdvancedEventSelectors, context)
|
|
3995
3894
|
: undefined,
|
|
3996
|
-
CreatedTimestamp: output.CreatedTimestamp
|
|
3895
|
+
CreatedTimestamp: output.CreatedTimestamp != null
|
|
3997
3896
|
? (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(output.CreatedTimestamp)))
|
|
3998
3897
|
: undefined,
|
|
3999
3898
|
EventDataStoreArn: (0, smithy_client_1.expectString)(output.EventDataStoreArn),
|
|
@@ -4003,7 +3902,7 @@ const deserializeAws_json1_1UpdateEventDataStoreResponse = (output, context) =>
|
|
|
4003
3902
|
RetentionPeriod: (0, smithy_client_1.expectInt32)(output.RetentionPeriod),
|
|
4004
3903
|
Status: (0, smithy_client_1.expectString)(output.Status),
|
|
4005
3904
|
TerminationProtectionEnabled: (0, smithy_client_1.expectBoolean)(output.TerminationProtectionEnabled),
|
|
4006
|
-
UpdatedTimestamp: output.UpdatedTimestamp
|
|
3905
|
+
UpdatedTimestamp: output.UpdatedTimestamp != null
|
|
4007
3906
|
? (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(output.UpdatedTimestamp)))
|
|
4008
3907
|
: undefined,
|
|
4009
3908
|
};
|
|
@@ -4069,6 +3968,9 @@ const loadRestJsonErrorCode = (output, data) => {
|
|
|
4069
3968
|
const findKey = (object, key) => Object.keys(object).find((k) => k.toLowerCase() === key.toLowerCase());
|
|
4070
3969
|
const sanitizeErrorCode = (rawValue) => {
|
|
4071
3970
|
let cleanValue = rawValue;
|
|
3971
|
+
if (typeof cleanValue === "number") {
|
|
3972
|
+
cleanValue = cleanValue.toString();
|
|
3973
|
+
}
|
|
4072
3974
|
if (cleanValue.indexOf(":") >= 0) {
|
|
4073
3975
|
cleanValue = cleanValue.split(":")[0];
|
|
4074
3976
|
}
|