@aws-sdk/client-shield 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 +112 -181
- package/dist-es/protocols/Aws_json1_1.js +82 -151
- package/package.json +26 -26
|
@@ -2777,18 +2777,16 @@ var deserializeAws_json1_1ResourceNotFoundExceptionResponse = function (parsedOu
|
|
|
2777
2777
|
});
|
|
2778
2778
|
}); };
|
|
2779
2779
|
var serializeAws_json1_1AssociateDRTLogBucketRequest = function (input, context) {
|
|
2780
|
-
return __assign({}, (input.LogBucket
|
|
2780
|
+
return __assign({}, (input.LogBucket != null && { LogBucket: input.LogBucket }));
|
|
2781
2781
|
};
|
|
2782
2782
|
var serializeAws_json1_1AssociateDRTRoleRequest = function (input, context) {
|
|
2783
|
-
return __assign({}, (input.RoleArn
|
|
2783
|
+
return __assign({}, (input.RoleArn != null && { RoleArn: input.RoleArn }));
|
|
2784
2784
|
};
|
|
2785
2785
|
var serializeAws_json1_1AssociateHealthCheckRequest = function (input, context) {
|
|
2786
|
-
return __assign(__assign({}, (input.HealthCheckArn
|
|
2787
|
-
input.HealthCheckArn !== null && { HealthCheckArn: input.HealthCheckArn })), (input.ProtectionId !== undefined && input.ProtectionId !== null && { ProtectionId: input.ProtectionId }));
|
|
2786
|
+
return __assign(__assign({}, (input.HealthCheckArn != null && { HealthCheckArn: input.HealthCheckArn })), (input.ProtectionId != null && { ProtectionId: input.ProtectionId }));
|
|
2788
2787
|
};
|
|
2789
2788
|
var serializeAws_json1_1AssociateProactiveEngagementDetailsRequest = function (input, context) {
|
|
2790
|
-
return __assign({}, (input.EmergencyContactList
|
|
2791
|
-
input.EmergencyContactList !== null && {
|
|
2789
|
+
return __assign({}, (input.EmergencyContactList != null && {
|
|
2792
2790
|
EmergencyContactList: serializeAws_json1_1EmergencyContactList(input.EmergencyContactList, context),
|
|
2793
2791
|
}));
|
|
2794
2792
|
};
|
|
@@ -2799,28 +2797,25 @@ var serializeAws_json1_1CountAction = function (input, context) {
|
|
|
2799
2797
|
return {};
|
|
2800
2798
|
};
|
|
2801
2799
|
var serializeAws_json1_1CreateProtectionGroupRequest = function (input, context) {
|
|
2802
|
-
return __assign(__assign(__assign(__assign(__assign(__assign({}, (input.Aggregation
|
|
2803
|
-
input.Members !== null && { Members: serializeAws_json1_1ProtectionGroupMembers(input.Members, context) })), (input.Pattern !== undefined && input.Pattern !== null && { Pattern: input.Pattern })), (input.ProtectionGroupId !== undefined &&
|
|
2804
|
-
input.ProtectionGroupId !== null && { ProtectionGroupId: input.ProtectionGroupId })), (input.ResourceType !== undefined && input.ResourceType !== null && { ResourceType: input.ResourceType })), (input.Tags !== undefined && input.Tags !== null && { Tags: serializeAws_json1_1TagList(input.Tags, context) }));
|
|
2800
|
+
return __assign(__assign(__assign(__assign(__assign(__assign({}, (input.Aggregation != null && { Aggregation: input.Aggregation })), (input.Members != null && { Members: serializeAws_json1_1ProtectionGroupMembers(input.Members, context) })), (input.Pattern != null && { Pattern: input.Pattern })), (input.ProtectionGroupId != null && { ProtectionGroupId: input.ProtectionGroupId })), (input.ResourceType != null && { ResourceType: input.ResourceType })), (input.Tags != null && { Tags: serializeAws_json1_1TagList(input.Tags, context) }));
|
|
2805
2801
|
};
|
|
2806
2802
|
var serializeAws_json1_1CreateProtectionRequest = function (input, context) {
|
|
2807
|
-
return __assign(__assign(__assign({}, (input.Name
|
|
2803
|
+
return __assign(__assign(__assign({}, (input.Name != null && { Name: input.Name })), (input.ResourceArn != null && { ResourceArn: input.ResourceArn })), (input.Tags != null && { Tags: serializeAws_json1_1TagList(input.Tags, context) }));
|
|
2808
2804
|
};
|
|
2809
2805
|
var serializeAws_json1_1CreateSubscriptionRequest = function (input, context) {
|
|
2810
2806
|
return {};
|
|
2811
2807
|
};
|
|
2812
2808
|
var serializeAws_json1_1DeleteProtectionGroupRequest = function (input, context) {
|
|
2813
|
-
return __assign({}, (input.ProtectionGroupId
|
|
2814
|
-
input.ProtectionGroupId !== null && { ProtectionGroupId: input.ProtectionGroupId }));
|
|
2809
|
+
return __assign({}, (input.ProtectionGroupId != null && { ProtectionGroupId: input.ProtectionGroupId }));
|
|
2815
2810
|
};
|
|
2816
2811
|
var serializeAws_json1_1DeleteProtectionRequest = function (input, context) {
|
|
2817
|
-
return __assign({}, (input.ProtectionId
|
|
2812
|
+
return __assign({}, (input.ProtectionId != null && { ProtectionId: input.ProtectionId }));
|
|
2818
2813
|
};
|
|
2819
2814
|
var serializeAws_json1_1DeleteSubscriptionRequest = function (input, context) {
|
|
2820
2815
|
return {};
|
|
2821
2816
|
};
|
|
2822
2817
|
var serializeAws_json1_1DescribeAttackRequest = function (input, context) {
|
|
2823
|
-
return __assign({}, (input.AttackId
|
|
2818
|
+
return __assign({}, (input.AttackId != null && { AttackId: input.AttackId }));
|
|
2824
2819
|
};
|
|
2825
2820
|
var serializeAws_json1_1DescribeAttackStatisticsRequest = function (input, context) {
|
|
2826
2821
|
return {};
|
|
@@ -2832,33 +2827,31 @@ var serializeAws_json1_1DescribeEmergencyContactSettingsRequest = function (inpu
|
|
|
2832
2827
|
return {};
|
|
2833
2828
|
};
|
|
2834
2829
|
var serializeAws_json1_1DescribeProtectionGroupRequest = function (input, context) {
|
|
2835
|
-
return __assign({}, (input.ProtectionGroupId
|
|
2836
|
-
input.ProtectionGroupId !== null && { ProtectionGroupId: input.ProtectionGroupId }));
|
|
2830
|
+
return __assign({}, (input.ProtectionGroupId != null && { ProtectionGroupId: input.ProtectionGroupId }));
|
|
2837
2831
|
};
|
|
2838
2832
|
var serializeAws_json1_1DescribeProtectionRequest = function (input, context) {
|
|
2839
|
-
return __assign(__assign({}, (input.ProtectionId
|
|
2833
|
+
return __assign(__assign({}, (input.ProtectionId != null && { ProtectionId: input.ProtectionId })), (input.ResourceArn != null && { ResourceArn: input.ResourceArn }));
|
|
2840
2834
|
};
|
|
2841
2835
|
var serializeAws_json1_1DescribeSubscriptionRequest = function (input, context) {
|
|
2842
2836
|
return {};
|
|
2843
2837
|
};
|
|
2844
2838
|
var serializeAws_json1_1DisableApplicationLayerAutomaticResponseRequest = function (input, context) {
|
|
2845
|
-
return __assign({}, (input.ResourceArn
|
|
2839
|
+
return __assign({}, (input.ResourceArn != null && { ResourceArn: input.ResourceArn }));
|
|
2846
2840
|
};
|
|
2847
2841
|
var serializeAws_json1_1DisableProactiveEngagementRequest = function (input, context) {
|
|
2848
2842
|
return {};
|
|
2849
2843
|
};
|
|
2850
2844
|
var serializeAws_json1_1DisassociateDRTLogBucketRequest = function (input, context) {
|
|
2851
|
-
return __assign({}, (input.LogBucket
|
|
2845
|
+
return __assign({}, (input.LogBucket != null && { LogBucket: input.LogBucket }));
|
|
2852
2846
|
};
|
|
2853
2847
|
var serializeAws_json1_1DisassociateDRTRoleRequest = function (input, context) {
|
|
2854
2848
|
return {};
|
|
2855
2849
|
};
|
|
2856
2850
|
var serializeAws_json1_1DisassociateHealthCheckRequest = function (input, context) {
|
|
2857
|
-
return __assign(__assign({}, (input.HealthCheckArn
|
|
2858
|
-
input.HealthCheckArn !== null && { HealthCheckArn: input.HealthCheckArn })), (input.ProtectionId !== undefined && input.ProtectionId !== null && { ProtectionId: input.ProtectionId }));
|
|
2851
|
+
return __assign(__assign({}, (input.HealthCheckArn != null && { HealthCheckArn: input.HealthCheckArn })), (input.ProtectionId != null && { ProtectionId: input.ProtectionId }));
|
|
2859
2852
|
};
|
|
2860
2853
|
var serializeAws_json1_1EmergencyContact = function (input, context) {
|
|
2861
|
-
return __assign(__assign(__assign({}, (input.ContactNotes
|
|
2854
|
+
return __assign(__assign(__assign({}, (input.ContactNotes != null && { ContactNotes: input.ContactNotes })), (input.EmailAddress != null && { EmailAddress: input.EmailAddress })), (input.PhoneNumber != null && { PhoneNumber: input.PhoneNumber }));
|
|
2862
2855
|
};
|
|
2863
2856
|
var serializeAws_json1_1EmergencyContactList = function (input, context) {
|
|
2864
2857
|
return input
|
|
@@ -2871,8 +2864,7 @@ var serializeAws_json1_1EmergencyContactList = function (input, context) {
|
|
|
2871
2864
|
});
|
|
2872
2865
|
};
|
|
2873
2866
|
var serializeAws_json1_1EnableApplicationLayerAutomaticResponseRequest = function (input, context) {
|
|
2874
|
-
return __assign(__assign({}, (input.Action
|
|
2875
|
-
input.Action !== null && { Action: serializeAws_json1_1ResponseAction(input.Action, context) })), (input.ResourceArn !== undefined && input.ResourceArn !== null && { ResourceArn: input.ResourceArn }));
|
|
2867
|
+
return __assign(__assign({}, (input.Action != null && { Action: serializeAws_json1_1ResponseAction(input.Action, context) })), (input.ResourceArn != null && { ResourceArn: input.ResourceArn }));
|
|
2876
2868
|
};
|
|
2877
2869
|
var serializeAws_json1_1EnableProactiveEngagementRequest = function (input, context) {
|
|
2878
2870
|
return {};
|
|
@@ -2881,25 +2873,21 @@ var serializeAws_json1_1GetSubscriptionStateRequest = function (input, context)
|
|
|
2881
2873
|
return {};
|
|
2882
2874
|
};
|
|
2883
2875
|
var serializeAws_json1_1ListAttacksRequest = function (input, context) {
|
|
2884
|
-
return __assign(__assign(__assign(__assign(__assign({}, (input.EndTime
|
|
2885
|
-
input.EndTime !== null && { EndTime: serializeAws_json1_1TimeRange(input.EndTime, context) })), (input.MaxResults !== undefined && input.MaxResults !== null && { MaxResults: input.MaxResults })), (input.NextToken !== undefined && input.NextToken !== null && { NextToken: input.NextToken })), (input.ResourceArns !== undefined &&
|
|
2886
|
-
input.ResourceArns !== null && {
|
|
2876
|
+
return __assign(__assign(__assign(__assign(__assign({}, (input.EndTime != null && { EndTime: serializeAws_json1_1TimeRange(input.EndTime, context) })), (input.MaxResults != null && { MaxResults: input.MaxResults })), (input.NextToken != null && { NextToken: input.NextToken })), (input.ResourceArns != null && {
|
|
2887
2877
|
ResourceArns: serializeAws_json1_1ResourceArnFilterList(input.ResourceArns, context),
|
|
2888
|
-
})), (input.StartTime
|
|
2889
|
-
input.StartTime !== null && { StartTime: serializeAws_json1_1TimeRange(input.StartTime, context) }));
|
|
2878
|
+
})), (input.StartTime != null && { StartTime: serializeAws_json1_1TimeRange(input.StartTime, context) }));
|
|
2890
2879
|
};
|
|
2891
2880
|
var serializeAws_json1_1ListProtectionGroupsRequest = function (input, context) {
|
|
2892
|
-
return __assign(__assign({}, (input.MaxResults
|
|
2881
|
+
return __assign(__assign({}, (input.MaxResults != null && { MaxResults: input.MaxResults })), (input.NextToken != null && { NextToken: input.NextToken }));
|
|
2893
2882
|
};
|
|
2894
2883
|
var serializeAws_json1_1ListProtectionsRequest = function (input, context) {
|
|
2895
|
-
return __assign(__assign({}, (input.MaxResults
|
|
2884
|
+
return __assign(__assign({}, (input.MaxResults != null && { MaxResults: input.MaxResults })), (input.NextToken != null && { NextToken: input.NextToken }));
|
|
2896
2885
|
};
|
|
2897
2886
|
var serializeAws_json1_1ListResourcesInProtectionGroupRequest = function (input, context) {
|
|
2898
|
-
return __assign(__assign(__assign({}, (input.MaxResults
|
|
2899
|
-
input.ProtectionGroupId !== null && { ProtectionGroupId: input.ProtectionGroupId }));
|
|
2887
|
+
return __assign(__assign(__assign({}, (input.MaxResults != null && { MaxResults: input.MaxResults })), (input.NextToken != null && { NextToken: input.NextToken })), (input.ProtectionGroupId != null && { ProtectionGroupId: input.ProtectionGroupId }));
|
|
2900
2888
|
};
|
|
2901
2889
|
var serializeAws_json1_1ListTagsForResourceRequest = function (input, context) {
|
|
2902
|
-
return __assign({}, (input.ResourceARN
|
|
2890
|
+
return __assign({}, (input.ResourceARN != null && { ResourceARN: input.ResourceARN }));
|
|
2903
2891
|
};
|
|
2904
2892
|
var serializeAws_json1_1ProtectionGroupMembers = function (input, context) {
|
|
2905
2893
|
return input
|
|
@@ -2922,12 +2910,10 @@ var serializeAws_json1_1ResourceArnFilterList = function (input, context) {
|
|
|
2922
2910
|
});
|
|
2923
2911
|
};
|
|
2924
2912
|
var serializeAws_json1_1ResponseAction = function (input, context) {
|
|
2925
|
-
return __assign(__assign({}, (input.Block
|
|
2926
|
-
input.Block !== null && { Block: serializeAws_json1_1BlockAction(input.Block, context) })), (input.Count !== undefined &&
|
|
2927
|
-
input.Count !== null && { Count: serializeAws_json1_1CountAction(input.Count, context) }));
|
|
2913
|
+
return __assign(__assign({}, (input.Block != null && { Block: serializeAws_json1_1BlockAction(input.Block, context) })), (input.Count != null && { Count: serializeAws_json1_1CountAction(input.Count, context) }));
|
|
2928
2914
|
};
|
|
2929
2915
|
var serializeAws_json1_1Tag = function (input, context) {
|
|
2930
|
-
return __assign(__assign({}, (input.Key
|
|
2916
|
+
return __assign(__assign({}, (input.Key != null && { Key: input.Key })), (input.Value != null && { Value: input.Value }));
|
|
2931
2917
|
};
|
|
2932
2918
|
var serializeAws_json1_1TagKeyList = function (input, context) {
|
|
2933
2919
|
return input
|
|
@@ -2950,34 +2936,27 @@ var serializeAws_json1_1TagList = function (input, context) {
|
|
|
2950
2936
|
});
|
|
2951
2937
|
};
|
|
2952
2938
|
var serializeAws_json1_1TagResourceRequest = function (input, context) {
|
|
2953
|
-
return __assign(__assign({}, (input.ResourceARN
|
|
2939
|
+
return __assign(__assign({}, (input.ResourceARN != null && { ResourceARN: input.ResourceARN })), (input.Tags != null && { Tags: serializeAws_json1_1TagList(input.Tags, context) }));
|
|
2954
2940
|
};
|
|
2955
2941
|
var serializeAws_json1_1TimeRange = function (input, context) {
|
|
2956
|
-
return __assign(__assign({}, (input.FromInclusive
|
|
2957
|
-
input.FromInclusive !== null && { FromInclusive: Math.round(input.FromInclusive.getTime() / 1000) })), (input.ToExclusive !== undefined &&
|
|
2958
|
-
input.ToExclusive !== null && { ToExclusive: Math.round(input.ToExclusive.getTime() / 1000) }));
|
|
2942
|
+
return __assign(__assign({}, (input.FromInclusive != null && { FromInclusive: Math.round(input.FromInclusive.getTime() / 1000) })), (input.ToExclusive != null && { ToExclusive: Math.round(input.ToExclusive.getTime() / 1000) }));
|
|
2959
2943
|
};
|
|
2960
2944
|
var serializeAws_json1_1UntagResourceRequest = function (input, context) {
|
|
2961
|
-
return __assign(__assign({}, (input.ResourceARN
|
|
2962
|
-
input.TagKeys !== null && { TagKeys: serializeAws_json1_1TagKeyList(input.TagKeys, context) }));
|
|
2945
|
+
return __assign(__assign({}, (input.ResourceARN != null && { ResourceARN: input.ResourceARN })), (input.TagKeys != null && { TagKeys: serializeAws_json1_1TagKeyList(input.TagKeys, context) }));
|
|
2963
2946
|
};
|
|
2964
2947
|
var serializeAws_json1_1UpdateApplicationLayerAutomaticResponseRequest = function (input, context) {
|
|
2965
|
-
return __assign(__assign({}, (input.Action
|
|
2966
|
-
input.Action !== null && { Action: serializeAws_json1_1ResponseAction(input.Action, context) })), (input.ResourceArn !== undefined && input.ResourceArn !== null && { ResourceArn: input.ResourceArn }));
|
|
2948
|
+
return __assign(__assign({}, (input.Action != null && { Action: serializeAws_json1_1ResponseAction(input.Action, context) })), (input.ResourceArn != null && { ResourceArn: input.ResourceArn }));
|
|
2967
2949
|
};
|
|
2968
2950
|
var serializeAws_json1_1UpdateEmergencyContactSettingsRequest = function (input, context) {
|
|
2969
|
-
return __assign({}, (input.EmergencyContactList
|
|
2970
|
-
input.EmergencyContactList !== null && {
|
|
2951
|
+
return __assign({}, (input.EmergencyContactList != null && {
|
|
2971
2952
|
EmergencyContactList: serializeAws_json1_1EmergencyContactList(input.EmergencyContactList, context),
|
|
2972
2953
|
}));
|
|
2973
2954
|
};
|
|
2974
2955
|
var serializeAws_json1_1UpdateProtectionGroupRequest = function (input, context) {
|
|
2975
|
-
return __assign(__assign(__assign(__assign(__assign({}, (input.Aggregation
|
|
2976
|
-
input.Members !== null && { Members: serializeAws_json1_1ProtectionGroupMembers(input.Members, context) })), (input.Pattern !== undefined && input.Pattern !== null && { Pattern: input.Pattern })), (input.ProtectionGroupId !== undefined &&
|
|
2977
|
-
input.ProtectionGroupId !== null && { ProtectionGroupId: input.ProtectionGroupId })), (input.ResourceType !== undefined && input.ResourceType !== null && { ResourceType: input.ResourceType }));
|
|
2956
|
+
return __assign(__assign(__assign(__assign(__assign({}, (input.Aggregation != null && { Aggregation: input.Aggregation })), (input.Members != null && { Members: serializeAws_json1_1ProtectionGroupMembers(input.Members, context) })), (input.Pattern != null && { Pattern: input.Pattern })), (input.ProtectionGroupId != null && { ProtectionGroupId: input.ProtectionGroupId })), (input.ResourceType != null && { ResourceType: input.ResourceType }));
|
|
2978
2957
|
};
|
|
2979
2958
|
var serializeAws_json1_1UpdateSubscriptionRequest = function (input, context) {
|
|
2980
|
-
return __assign({}, (input.AutoRenew
|
|
2959
|
+
return __assign({}, (input.AutoRenew != null && { AutoRenew: input.AutoRenew }));
|
|
2981
2960
|
};
|
|
2982
2961
|
var deserializeAws_json1_1AccessDeniedException = function (output, context) {
|
|
2983
2962
|
return {
|
|
@@ -2991,9 +2970,7 @@ var deserializeAws_json1_1AccessDeniedForDependencyException = function (output,
|
|
|
2991
2970
|
};
|
|
2992
2971
|
var deserializeAws_json1_1ApplicationLayerAutomaticResponseConfiguration = function (output, context) {
|
|
2993
2972
|
return {
|
|
2994
|
-
Action: output.Action
|
|
2995
|
-
? deserializeAws_json1_1ResponseAction(output.Action, context)
|
|
2996
|
-
: undefined,
|
|
2973
|
+
Action: output.Action != null ? deserializeAws_json1_1ResponseAction(output.Action, context) : undefined,
|
|
2997
2974
|
Status: __expectString(output.Status),
|
|
2998
2975
|
};
|
|
2999
2976
|
};
|
|
@@ -3011,24 +2988,18 @@ var deserializeAws_json1_1AssociateProactiveEngagementDetailsResponse = function
|
|
|
3011
2988
|
};
|
|
3012
2989
|
var deserializeAws_json1_1AttackDetail = function (output, context) {
|
|
3013
2990
|
return {
|
|
3014
|
-
AttackCounters: output.AttackCounters
|
|
2991
|
+
AttackCounters: output.AttackCounters != null
|
|
3015
2992
|
? deserializeAws_json1_1SummarizedCounterList(output.AttackCounters, context)
|
|
3016
2993
|
: undefined,
|
|
3017
2994
|
AttackId: __expectString(output.AttackId),
|
|
3018
|
-
AttackProperties: output.AttackProperties
|
|
2995
|
+
AttackProperties: output.AttackProperties != null
|
|
3019
2996
|
? deserializeAws_json1_1AttackProperties(output.AttackProperties, context)
|
|
3020
2997
|
: undefined,
|
|
3021
|
-
EndTime: output.EndTime
|
|
3022
|
-
|
|
3023
|
-
: undefined,
|
|
3024
|
-
Mitigations: output.Mitigations !== undefined && output.Mitigations !== null
|
|
3025
|
-
? deserializeAws_json1_1MitigationList(output.Mitigations, context)
|
|
3026
|
-
: undefined,
|
|
2998
|
+
EndTime: output.EndTime != null ? __expectNonNull(__parseEpochTimestamp(__expectNumber(output.EndTime))) : undefined,
|
|
2999
|
+
Mitigations: output.Mitigations != null ? deserializeAws_json1_1MitigationList(output.Mitigations, context) : undefined,
|
|
3027
3000
|
ResourceArn: __expectString(output.ResourceArn),
|
|
3028
|
-
StartTime: output.StartTime
|
|
3029
|
-
|
|
3030
|
-
: undefined,
|
|
3031
|
-
SubResources: output.SubResources !== undefined && output.SubResources !== null
|
|
3001
|
+
StartTime: output.StartTime != null ? __expectNonNull(__parseEpochTimestamp(__expectNumber(output.StartTime))) : undefined,
|
|
3002
|
+
SubResources: output.SubResources != null
|
|
3032
3003
|
? deserializeAws_json1_1SubResourceSummaryList(output.SubResources, context)
|
|
3033
3004
|
: undefined,
|
|
3034
3005
|
};
|
|
@@ -3048,7 +3019,7 @@ var deserializeAws_json1_1AttackProperty = function (output, context) {
|
|
|
3048
3019
|
return {
|
|
3049
3020
|
AttackLayer: __expectString(output.AttackLayer),
|
|
3050
3021
|
AttackPropertyIdentifier: __expectString(output.AttackPropertyIdentifier),
|
|
3051
|
-
TopContributors: output.TopContributors
|
|
3022
|
+
TopContributors: output.TopContributors != null
|
|
3052
3023
|
? deserializeAws_json1_1TopContributors(output.TopContributors, context)
|
|
3053
3024
|
: undefined,
|
|
3054
3025
|
Total: __expectLong(output.Total),
|
|
@@ -3058,9 +3029,7 @@ var deserializeAws_json1_1AttackProperty = function (output, context) {
|
|
|
3058
3029
|
var deserializeAws_json1_1AttackStatisticsDataItem = function (output, context) {
|
|
3059
3030
|
return {
|
|
3060
3031
|
AttackCount: __expectLong(output.AttackCount),
|
|
3061
|
-
AttackVolume: output.AttackVolume
|
|
3062
|
-
? deserializeAws_json1_1AttackVolume(output.AttackVolume, context)
|
|
3063
|
-
: undefined,
|
|
3032
|
+
AttackVolume: output.AttackVolume != null ? deserializeAws_json1_1AttackVolume(output.AttackVolume, context) : undefined,
|
|
3064
3033
|
};
|
|
3065
3034
|
};
|
|
3066
3035
|
var deserializeAws_json1_1AttackStatisticsDataList = function (output, context) {
|
|
@@ -3088,16 +3057,12 @@ var deserializeAws_json1_1AttackSummaries = function (output, context) {
|
|
|
3088
3057
|
var deserializeAws_json1_1AttackSummary = function (output, context) {
|
|
3089
3058
|
return {
|
|
3090
3059
|
AttackId: __expectString(output.AttackId),
|
|
3091
|
-
AttackVectors: output.AttackVectors
|
|
3060
|
+
AttackVectors: output.AttackVectors != null
|
|
3092
3061
|
? deserializeAws_json1_1AttackVectorDescriptionList(output.AttackVectors, context)
|
|
3093
3062
|
: undefined,
|
|
3094
|
-
EndTime: output.EndTime
|
|
3095
|
-
? __expectNonNull(__parseEpochTimestamp(__expectNumber(output.EndTime)))
|
|
3096
|
-
: undefined,
|
|
3063
|
+
EndTime: output.EndTime != null ? __expectNonNull(__parseEpochTimestamp(__expectNumber(output.EndTime))) : undefined,
|
|
3097
3064
|
ResourceArn: __expectString(output.ResourceArn),
|
|
3098
|
-
StartTime: output.StartTime
|
|
3099
|
-
? __expectNonNull(__parseEpochTimestamp(__expectNumber(output.StartTime)))
|
|
3100
|
-
: undefined,
|
|
3065
|
+
StartTime: output.StartTime != null ? __expectNonNull(__parseEpochTimestamp(__expectNumber(output.StartTime))) : undefined,
|
|
3101
3066
|
};
|
|
3102
3067
|
};
|
|
3103
3068
|
var deserializeAws_json1_1AttackVectorDescription = function (output, context) {
|
|
@@ -3118,13 +3083,13 @@ var deserializeAws_json1_1AttackVectorDescriptionList = function (output, contex
|
|
|
3118
3083
|
};
|
|
3119
3084
|
var deserializeAws_json1_1AttackVolume = function (output, context) {
|
|
3120
3085
|
return {
|
|
3121
|
-
BitsPerSecond: output.BitsPerSecond
|
|
3086
|
+
BitsPerSecond: output.BitsPerSecond != null
|
|
3122
3087
|
? deserializeAws_json1_1AttackVolumeStatistics(output.BitsPerSecond, context)
|
|
3123
3088
|
: undefined,
|
|
3124
|
-
PacketsPerSecond: output.PacketsPerSecond
|
|
3089
|
+
PacketsPerSecond: output.PacketsPerSecond != null
|
|
3125
3090
|
? deserializeAws_json1_1AttackVolumeStatistics(output.PacketsPerSecond, context)
|
|
3126
3091
|
: undefined,
|
|
3127
|
-
RequestsPerSecond: output.RequestsPerSecond
|
|
3092
|
+
RequestsPerSecond: output.RequestsPerSecond != null
|
|
3128
3093
|
? deserializeAws_json1_1AttackVolumeStatistics(output.RequestsPerSecond, context)
|
|
3129
3094
|
: undefined,
|
|
3130
3095
|
};
|
|
@@ -3168,55 +3133,43 @@ var deserializeAws_json1_1DeleteSubscriptionResponse = function (output, context
|
|
|
3168
3133
|
};
|
|
3169
3134
|
var deserializeAws_json1_1DescribeAttackResponse = function (output, context) {
|
|
3170
3135
|
return {
|
|
3171
|
-
Attack: output.Attack
|
|
3172
|
-
? deserializeAws_json1_1AttackDetail(output.Attack, context)
|
|
3173
|
-
: undefined,
|
|
3136
|
+
Attack: output.Attack != null ? deserializeAws_json1_1AttackDetail(output.Attack, context) : undefined,
|
|
3174
3137
|
};
|
|
3175
3138
|
};
|
|
3176
3139
|
var deserializeAws_json1_1DescribeAttackStatisticsResponse = function (output, context) {
|
|
3177
3140
|
return {
|
|
3178
|
-
DataItems: output.DataItems
|
|
3179
|
-
|
|
3180
|
-
: undefined,
|
|
3181
|
-
TimeRange: output.TimeRange !== undefined && output.TimeRange !== null
|
|
3182
|
-
? deserializeAws_json1_1TimeRange(output.TimeRange, context)
|
|
3183
|
-
: undefined,
|
|
3141
|
+
DataItems: output.DataItems != null ? deserializeAws_json1_1AttackStatisticsDataList(output.DataItems, context) : undefined,
|
|
3142
|
+
TimeRange: output.TimeRange != null ? deserializeAws_json1_1TimeRange(output.TimeRange, context) : undefined,
|
|
3184
3143
|
};
|
|
3185
3144
|
};
|
|
3186
3145
|
var deserializeAws_json1_1DescribeDRTAccessResponse = function (output, context) {
|
|
3187
3146
|
return {
|
|
3188
|
-
LogBucketList: output.LogBucketList
|
|
3189
|
-
? deserializeAws_json1_1LogBucketList(output.LogBucketList, context)
|
|
3190
|
-
: undefined,
|
|
3147
|
+
LogBucketList: output.LogBucketList != null ? deserializeAws_json1_1LogBucketList(output.LogBucketList, context) : undefined,
|
|
3191
3148
|
RoleArn: __expectString(output.RoleArn),
|
|
3192
3149
|
};
|
|
3193
3150
|
};
|
|
3194
3151
|
var deserializeAws_json1_1DescribeEmergencyContactSettingsResponse = function (output, context) {
|
|
3195
3152
|
return {
|
|
3196
|
-
EmergencyContactList: output.EmergencyContactList
|
|
3153
|
+
EmergencyContactList: output.EmergencyContactList != null
|
|
3197
3154
|
? deserializeAws_json1_1EmergencyContactList(output.EmergencyContactList, context)
|
|
3198
3155
|
: undefined,
|
|
3199
3156
|
};
|
|
3200
3157
|
};
|
|
3201
3158
|
var deserializeAws_json1_1DescribeProtectionGroupResponse = function (output, context) {
|
|
3202
3159
|
return {
|
|
3203
|
-
ProtectionGroup: output.ProtectionGroup
|
|
3160
|
+
ProtectionGroup: output.ProtectionGroup != null
|
|
3204
3161
|
? deserializeAws_json1_1ProtectionGroup(output.ProtectionGroup, context)
|
|
3205
3162
|
: undefined,
|
|
3206
3163
|
};
|
|
3207
3164
|
};
|
|
3208
3165
|
var deserializeAws_json1_1DescribeProtectionResponse = function (output, context) {
|
|
3209
3166
|
return {
|
|
3210
|
-
Protection: output.Protection
|
|
3211
|
-
? deserializeAws_json1_1Protection(output.Protection, context)
|
|
3212
|
-
: undefined,
|
|
3167
|
+
Protection: output.Protection != null ? deserializeAws_json1_1Protection(output.Protection, context) : undefined,
|
|
3213
3168
|
};
|
|
3214
3169
|
};
|
|
3215
3170
|
var deserializeAws_json1_1DescribeSubscriptionResponse = function (output, context) {
|
|
3216
3171
|
return {
|
|
3217
|
-
Subscription: output.Subscription
|
|
3218
|
-
? deserializeAws_json1_1Subscription(output.Subscription, context)
|
|
3219
|
-
: undefined,
|
|
3172
|
+
Subscription: output.Subscription != null ? deserializeAws_json1_1Subscription(output.Subscription, context) : undefined,
|
|
3220
3173
|
};
|
|
3221
3174
|
};
|
|
3222
3175
|
var deserializeAws_json1_1DisableApplicationLayerAutomaticResponseResponse = function (output, context) {
|
|
@@ -3291,9 +3244,7 @@ var deserializeAws_json1_1InvalidPaginationTokenException = function (output, co
|
|
|
3291
3244
|
};
|
|
3292
3245
|
var deserializeAws_json1_1InvalidParameterException = function (output, context) {
|
|
3293
3246
|
return {
|
|
3294
|
-
fields: output.fields
|
|
3295
|
-
? deserializeAws_json1_1ValidationExceptionFieldList(output.fields, context)
|
|
3296
|
-
: undefined,
|
|
3247
|
+
fields: output.fields != null ? deserializeAws_json1_1ValidationExceptionFieldList(output.fields, context) : undefined,
|
|
3297
3248
|
message: __expectString(output.message),
|
|
3298
3249
|
reason: __expectString(output.reason),
|
|
3299
3250
|
};
|
|
@@ -3329,7 +3280,7 @@ var deserializeAws_json1_1LimitsExceededException = function (output, context) {
|
|
|
3329
3280
|
};
|
|
3330
3281
|
var deserializeAws_json1_1ListAttacksResponse = function (output, context) {
|
|
3331
3282
|
return {
|
|
3332
|
-
AttackSummaries: output.AttackSummaries
|
|
3283
|
+
AttackSummaries: output.AttackSummaries != null
|
|
3333
3284
|
? deserializeAws_json1_1AttackSummaries(output.AttackSummaries, context)
|
|
3334
3285
|
: undefined,
|
|
3335
3286
|
NextToken: __expectString(output.NextToken),
|
|
@@ -3338,7 +3289,7 @@ var deserializeAws_json1_1ListAttacksResponse = function (output, context) {
|
|
|
3338
3289
|
var deserializeAws_json1_1ListProtectionGroupsResponse = function (output, context) {
|
|
3339
3290
|
return {
|
|
3340
3291
|
NextToken: __expectString(output.NextToken),
|
|
3341
|
-
ProtectionGroups: output.ProtectionGroups
|
|
3292
|
+
ProtectionGroups: output.ProtectionGroups != null
|
|
3342
3293
|
? deserializeAws_json1_1ProtectionGroups(output.ProtectionGroups, context)
|
|
3343
3294
|
: undefined,
|
|
3344
3295
|
};
|
|
@@ -3346,24 +3297,18 @@ var deserializeAws_json1_1ListProtectionGroupsResponse = function (output, conte
|
|
|
3346
3297
|
var deserializeAws_json1_1ListProtectionsResponse = function (output, context) {
|
|
3347
3298
|
return {
|
|
3348
3299
|
NextToken: __expectString(output.NextToken),
|
|
3349
|
-
Protections: output.Protections
|
|
3350
|
-
? deserializeAws_json1_1Protections(output.Protections, context)
|
|
3351
|
-
: undefined,
|
|
3300
|
+
Protections: output.Protections != null ? deserializeAws_json1_1Protections(output.Protections, context) : undefined,
|
|
3352
3301
|
};
|
|
3353
3302
|
};
|
|
3354
3303
|
var deserializeAws_json1_1ListResourcesInProtectionGroupResponse = function (output, context) {
|
|
3355
3304
|
return {
|
|
3356
3305
|
NextToken: __expectString(output.NextToken),
|
|
3357
|
-
ResourceArns: output.ResourceArns
|
|
3358
|
-
? deserializeAws_json1_1ResourceArnList(output.ResourceArns, context)
|
|
3359
|
-
: undefined,
|
|
3306
|
+
ResourceArns: output.ResourceArns != null ? deserializeAws_json1_1ResourceArnList(output.ResourceArns, context) : undefined,
|
|
3360
3307
|
};
|
|
3361
3308
|
};
|
|
3362
3309
|
var deserializeAws_json1_1ListTagsForResourceResponse = function (output, context) {
|
|
3363
3310
|
return {
|
|
3364
|
-
Tags: output.Tags
|
|
3365
|
-
? deserializeAws_json1_1TagList(output.Tags, context)
|
|
3366
|
-
: undefined,
|
|
3311
|
+
Tags: output.Tags != null ? deserializeAws_json1_1TagList(output.Tags, context) : undefined,
|
|
3367
3312
|
};
|
|
3368
3313
|
};
|
|
3369
3314
|
var deserializeAws_json1_1LockedSubscriptionException = function (output, context) {
|
|
@@ -3410,13 +3355,10 @@ var deserializeAws_json1_1OptimisticLockException = function (output, context) {
|
|
|
3410
3355
|
};
|
|
3411
3356
|
var deserializeAws_json1_1Protection = function (output, context) {
|
|
3412
3357
|
return {
|
|
3413
|
-
ApplicationLayerAutomaticResponseConfiguration: output.ApplicationLayerAutomaticResponseConfiguration
|
|
3414
|
-
output.ApplicationLayerAutomaticResponseConfiguration !== null
|
|
3358
|
+
ApplicationLayerAutomaticResponseConfiguration: output.ApplicationLayerAutomaticResponseConfiguration != null
|
|
3415
3359
|
? deserializeAws_json1_1ApplicationLayerAutomaticResponseConfiguration(output.ApplicationLayerAutomaticResponseConfiguration, context)
|
|
3416
3360
|
: undefined,
|
|
3417
|
-
HealthCheckIds: output.HealthCheckIds
|
|
3418
|
-
? deserializeAws_json1_1HealthCheckIds(output.HealthCheckIds, context)
|
|
3419
|
-
: undefined,
|
|
3361
|
+
HealthCheckIds: output.HealthCheckIds != null ? deserializeAws_json1_1HealthCheckIds(output.HealthCheckIds, context) : undefined,
|
|
3420
3362
|
Id: __expectString(output.Id),
|
|
3421
3363
|
Name: __expectString(output.Name),
|
|
3422
3364
|
ProtectionArn: __expectString(output.ProtectionArn),
|
|
@@ -3426,9 +3368,7 @@ var deserializeAws_json1_1Protection = function (output, context) {
|
|
|
3426
3368
|
var deserializeAws_json1_1ProtectionGroup = function (output, context) {
|
|
3427
3369
|
return {
|
|
3428
3370
|
Aggregation: __expectString(output.Aggregation),
|
|
3429
|
-
Members: output.Members
|
|
3430
|
-
? deserializeAws_json1_1ProtectionGroupMembers(output.Members, context)
|
|
3431
|
-
: undefined,
|
|
3371
|
+
Members: output.Members != null ? deserializeAws_json1_1ProtectionGroupMembers(output.Members, context) : undefined,
|
|
3432
3372
|
Pattern: __expectString(output.Pattern),
|
|
3433
3373
|
ProtectionGroupArn: __expectString(output.ProtectionGroupArn),
|
|
3434
3374
|
ProtectionGroupId: __expectString(output.ProtectionGroupId),
|
|
@@ -3443,7 +3383,7 @@ var deserializeAws_json1_1ProtectionGroupArbitraryPatternLimits = function (outp
|
|
|
3443
3383
|
var deserializeAws_json1_1ProtectionGroupLimits = function (output, context) {
|
|
3444
3384
|
return {
|
|
3445
3385
|
MaxProtectionGroups: __expectLong(output.MaxProtectionGroups),
|
|
3446
|
-
PatternTypeLimits: output.PatternTypeLimits
|
|
3386
|
+
PatternTypeLimits: output.PatternTypeLimits != null
|
|
3447
3387
|
? deserializeAws_json1_1ProtectionGroupPatternTypeLimits(output.PatternTypeLimits, context)
|
|
3448
3388
|
: undefined,
|
|
3449
3389
|
};
|
|
@@ -3461,7 +3401,7 @@ var deserializeAws_json1_1ProtectionGroupMembers = function (output, context) {
|
|
|
3461
3401
|
};
|
|
3462
3402
|
var deserializeAws_json1_1ProtectionGroupPatternTypeLimits = function (output, context) {
|
|
3463
3403
|
return {
|
|
3464
|
-
ArbitraryPatternLimits: output.ArbitraryPatternLimits
|
|
3404
|
+
ArbitraryPatternLimits: output.ArbitraryPatternLimits != null
|
|
3465
3405
|
? deserializeAws_json1_1ProtectionGroupArbitraryPatternLimits(output.ArbitraryPatternLimits, context)
|
|
3466
3406
|
: undefined,
|
|
3467
3407
|
};
|
|
@@ -3479,7 +3419,7 @@ var deserializeAws_json1_1ProtectionGroups = function (output, context) {
|
|
|
3479
3419
|
};
|
|
3480
3420
|
var deserializeAws_json1_1ProtectionLimits = function (output, context) {
|
|
3481
3421
|
return {
|
|
3482
|
-
ProtectedResourceTypeLimits: output.ProtectedResourceTypeLimits
|
|
3422
|
+
ProtectedResourceTypeLimits: output.ProtectedResourceTypeLimits != null
|
|
3483
3423
|
? deserializeAws_json1_1Limits(output.ProtectedResourceTypeLimits, context)
|
|
3484
3424
|
: undefined,
|
|
3485
3425
|
};
|
|
@@ -3520,22 +3460,16 @@ var deserializeAws_json1_1ResourceNotFoundException = function (output, context)
|
|
|
3520
3460
|
};
|
|
3521
3461
|
var deserializeAws_json1_1ResponseAction = function (output, context) {
|
|
3522
3462
|
return {
|
|
3523
|
-
Block: output.Block
|
|
3524
|
-
|
|
3525
|
-
: undefined,
|
|
3526
|
-
Count: output.Count !== undefined && output.Count !== null
|
|
3527
|
-
? deserializeAws_json1_1CountAction(output.Count, context)
|
|
3528
|
-
: undefined,
|
|
3463
|
+
Block: output.Block != null ? deserializeAws_json1_1BlockAction(output.Block, context) : undefined,
|
|
3464
|
+
Count: output.Count != null ? deserializeAws_json1_1CountAction(output.Count, context) : undefined,
|
|
3529
3465
|
};
|
|
3530
3466
|
};
|
|
3531
3467
|
var deserializeAws_json1_1SubResourceSummary = function (output, context) {
|
|
3532
3468
|
return {
|
|
3533
|
-
AttackVectors: output.AttackVectors
|
|
3469
|
+
AttackVectors: output.AttackVectors != null
|
|
3534
3470
|
? deserializeAws_json1_1SummarizedAttackVectorList(output.AttackVectors, context)
|
|
3535
3471
|
: undefined,
|
|
3536
|
-
Counters: output.Counters
|
|
3537
|
-
? deserializeAws_json1_1SummarizedCounterList(output.Counters, context)
|
|
3538
|
-
: undefined,
|
|
3472
|
+
Counters: output.Counters != null ? deserializeAws_json1_1SummarizedCounterList(output.Counters, context) : undefined,
|
|
3539
3473
|
Id: __expectString(output.Id),
|
|
3540
3474
|
Type: __expectString(output.Type),
|
|
3541
3475
|
};
|
|
@@ -3554,18 +3488,12 @@ var deserializeAws_json1_1SubResourceSummaryList = function (output, context) {
|
|
|
3554
3488
|
var deserializeAws_json1_1Subscription = function (output, context) {
|
|
3555
3489
|
return {
|
|
3556
3490
|
AutoRenew: __expectString(output.AutoRenew),
|
|
3557
|
-
EndTime: output.EndTime
|
|
3558
|
-
|
|
3559
|
-
: undefined,
|
|
3560
|
-
Limits: output.Limits !== undefined && output.Limits !== null
|
|
3561
|
-
? deserializeAws_json1_1Limits(output.Limits, context)
|
|
3562
|
-
: undefined,
|
|
3491
|
+
EndTime: output.EndTime != null ? __expectNonNull(__parseEpochTimestamp(__expectNumber(output.EndTime))) : undefined,
|
|
3492
|
+
Limits: output.Limits != null ? deserializeAws_json1_1Limits(output.Limits, context) : undefined,
|
|
3563
3493
|
ProactiveEngagementStatus: __expectString(output.ProactiveEngagementStatus),
|
|
3564
|
-
StartTime: output.StartTime
|
|
3565
|
-
? __expectNonNull(__parseEpochTimestamp(__expectNumber(output.StartTime)))
|
|
3566
|
-
: undefined,
|
|
3494
|
+
StartTime: output.StartTime != null ? __expectNonNull(__parseEpochTimestamp(__expectNumber(output.StartTime))) : undefined,
|
|
3567
3495
|
SubscriptionArn: __expectString(output.SubscriptionArn),
|
|
3568
|
-
SubscriptionLimits: output.SubscriptionLimits
|
|
3496
|
+
SubscriptionLimits: output.SubscriptionLimits != null
|
|
3569
3497
|
? deserializeAws_json1_1SubscriptionLimits(output.SubscriptionLimits, context)
|
|
3570
3498
|
: undefined,
|
|
3571
3499
|
TimeCommitmentInSeconds: __expectLong(output.TimeCommitmentInSeconds),
|
|
@@ -3573,17 +3501,17 @@ var deserializeAws_json1_1Subscription = function (output, context) {
|
|
|
3573
3501
|
};
|
|
3574
3502
|
var deserializeAws_json1_1SubscriptionLimits = function (output, context) {
|
|
3575
3503
|
return {
|
|
3576
|
-
ProtectionGroupLimits: output.ProtectionGroupLimits
|
|
3504
|
+
ProtectionGroupLimits: output.ProtectionGroupLimits != null
|
|
3577
3505
|
? deserializeAws_json1_1ProtectionGroupLimits(output.ProtectionGroupLimits, context)
|
|
3578
3506
|
: undefined,
|
|
3579
|
-
ProtectionLimits: output.ProtectionLimits
|
|
3507
|
+
ProtectionLimits: output.ProtectionLimits != null
|
|
3580
3508
|
? deserializeAws_json1_1ProtectionLimits(output.ProtectionLimits, context)
|
|
3581
3509
|
: undefined,
|
|
3582
3510
|
};
|
|
3583
3511
|
};
|
|
3584
3512
|
var deserializeAws_json1_1SummarizedAttackVector = function (output, context) {
|
|
3585
3513
|
return {
|
|
3586
|
-
VectorCounters: output.VectorCounters
|
|
3514
|
+
VectorCounters: output.VectorCounters != null
|
|
3587
3515
|
? deserializeAws_json1_1SummarizedCounterList(output.VectorCounters, context)
|
|
3588
3516
|
: undefined,
|
|
3589
3517
|
VectorType: __expectString(output.VectorType),
|
|
@@ -3643,10 +3571,10 @@ var deserializeAws_json1_1TagResourceResponse = function (output, context) {
|
|
|
3643
3571
|
};
|
|
3644
3572
|
var deserializeAws_json1_1TimeRange = function (output, context) {
|
|
3645
3573
|
return {
|
|
3646
|
-
FromInclusive: output.FromInclusive
|
|
3574
|
+
FromInclusive: output.FromInclusive != null
|
|
3647
3575
|
? __expectNonNull(__parseEpochTimestamp(__expectNumber(output.FromInclusive)))
|
|
3648
3576
|
: undefined,
|
|
3649
|
-
ToExclusive: output.ToExclusive
|
|
3577
|
+
ToExclusive: output.ToExclusive != null
|
|
3650
3578
|
? __expectNonNull(__parseEpochTimestamp(__expectNumber(output.ToExclusive)))
|
|
3651
3579
|
: undefined,
|
|
3652
3580
|
};
|
|
@@ -3750,6 +3678,9 @@ var loadRestJsonErrorCode = function (output, data) {
|
|
|
3750
3678
|
var findKey = function (object, key) { return Object.keys(object).find(function (k) { return k.toLowerCase() === key.toLowerCase(); }); };
|
|
3751
3679
|
var sanitizeErrorCode = function (rawValue) {
|
|
3752
3680
|
var cleanValue = rawValue;
|
|
3681
|
+
if (typeof cleanValue === "number") {
|
|
3682
|
+
cleanValue = cleanValue.toString();
|
|
3683
|
+
}
|
|
3753
3684
|
if (cleanValue.indexOf(":") >= 0) {
|
|
3754
3685
|
cleanValue = cleanValue.split(":")[0];
|
|
3755
3686
|
}
|