@aws-sdk/client-waf 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 +303 -453
- package/dist-es/protocols/Aws_json1_1.js +184 -334
- package/package.json +26 -26
|
@@ -4694,26 +4694,22 @@ const deserializeAws_json1_1WAFTagOperationInternalErrorExceptionResponse = asyn
|
|
|
4694
4694
|
};
|
|
4695
4695
|
const serializeAws_json1_1ActivatedRule = (input, context) => {
|
|
4696
4696
|
return {
|
|
4697
|
-
...(input.Action
|
|
4698
|
-
|
|
4699
|
-
...(input.ExcludedRules !== undefined &&
|
|
4700
|
-
input.ExcludedRules !== null && {
|
|
4697
|
+
...(input.Action != null && { Action: serializeAws_json1_1WafAction(input.Action, context) }),
|
|
4698
|
+
...(input.ExcludedRules != null && {
|
|
4701
4699
|
ExcludedRules: serializeAws_json1_1ExcludedRules(input.ExcludedRules, context),
|
|
4702
4700
|
}),
|
|
4703
|
-
...(input.OverrideAction
|
|
4704
|
-
input.OverrideAction !== null && {
|
|
4701
|
+
...(input.OverrideAction != null && {
|
|
4705
4702
|
OverrideAction: serializeAws_json1_1WafOverrideAction(input.OverrideAction, context),
|
|
4706
4703
|
}),
|
|
4707
|
-
...(input.Priority
|
|
4708
|
-
...(input.RuleId
|
|
4709
|
-
...(input.Type
|
|
4704
|
+
...(input.Priority != null && { Priority: input.Priority }),
|
|
4705
|
+
...(input.RuleId != null && { RuleId: input.RuleId }),
|
|
4706
|
+
...(input.Type != null && { Type: input.Type }),
|
|
4710
4707
|
};
|
|
4711
4708
|
};
|
|
4712
4709
|
const serializeAws_json1_1ByteMatchSetUpdate = (input, context) => {
|
|
4713
4710
|
return {
|
|
4714
|
-
...(input.Action
|
|
4715
|
-
...(input.ByteMatchTuple
|
|
4716
|
-
input.ByteMatchTuple !== null && {
|
|
4711
|
+
...(input.Action != null && { Action: input.Action }),
|
|
4712
|
+
...(input.ByteMatchTuple != null && {
|
|
4717
4713
|
ByteMatchTuple: serializeAws_json1_1ByteMatchTuple(input.ByteMatchTuple, context),
|
|
4718
4714
|
}),
|
|
4719
4715
|
};
|
|
@@ -4730,198 +4726,187 @@ const serializeAws_json1_1ByteMatchSetUpdates = (input, context) => {
|
|
|
4730
4726
|
};
|
|
4731
4727
|
const serializeAws_json1_1ByteMatchTuple = (input, context) => {
|
|
4732
4728
|
return {
|
|
4733
|
-
...(input.FieldToMatch
|
|
4734
|
-
|
|
4735
|
-
...(input.
|
|
4736
|
-
|
|
4737
|
-
...(input.TargetString !== undefined &&
|
|
4738
|
-
input.TargetString !== null && { TargetString: context.base64Encoder(input.TargetString) }),
|
|
4739
|
-
...(input.TextTransformation !== undefined &&
|
|
4740
|
-
input.TextTransformation !== null && { TextTransformation: input.TextTransformation }),
|
|
4729
|
+
...(input.FieldToMatch != null && { FieldToMatch: serializeAws_json1_1FieldToMatch(input.FieldToMatch, context) }),
|
|
4730
|
+
...(input.PositionalConstraint != null && { PositionalConstraint: input.PositionalConstraint }),
|
|
4731
|
+
...(input.TargetString != null && { TargetString: context.base64Encoder(input.TargetString) }),
|
|
4732
|
+
...(input.TextTransformation != null && { TextTransformation: input.TextTransformation }),
|
|
4741
4733
|
};
|
|
4742
4734
|
};
|
|
4743
4735
|
const serializeAws_json1_1CreateByteMatchSetRequest = (input, context) => {
|
|
4744
4736
|
return {
|
|
4745
|
-
...(input.ChangeToken
|
|
4746
|
-
...(input.Name
|
|
4737
|
+
...(input.ChangeToken != null && { ChangeToken: input.ChangeToken }),
|
|
4738
|
+
...(input.Name != null && { Name: input.Name }),
|
|
4747
4739
|
};
|
|
4748
4740
|
};
|
|
4749
4741
|
const serializeAws_json1_1CreateGeoMatchSetRequest = (input, context) => {
|
|
4750
4742
|
return {
|
|
4751
|
-
...(input.ChangeToken
|
|
4752
|
-
...(input.Name
|
|
4743
|
+
...(input.ChangeToken != null && { ChangeToken: input.ChangeToken }),
|
|
4744
|
+
...(input.Name != null && { Name: input.Name }),
|
|
4753
4745
|
};
|
|
4754
4746
|
};
|
|
4755
4747
|
const serializeAws_json1_1CreateIPSetRequest = (input, context) => {
|
|
4756
4748
|
return {
|
|
4757
|
-
...(input.ChangeToken
|
|
4758
|
-
...(input.Name
|
|
4749
|
+
...(input.ChangeToken != null && { ChangeToken: input.ChangeToken }),
|
|
4750
|
+
...(input.Name != null && { Name: input.Name }),
|
|
4759
4751
|
};
|
|
4760
4752
|
};
|
|
4761
4753
|
const serializeAws_json1_1CreateRateBasedRuleRequest = (input, context) => {
|
|
4762
4754
|
return {
|
|
4763
|
-
...(input.ChangeToken
|
|
4764
|
-
...(input.MetricName
|
|
4765
|
-
...(input.Name
|
|
4766
|
-
...(input.RateKey
|
|
4767
|
-
...(input.RateLimit
|
|
4768
|
-
...(input.Tags
|
|
4755
|
+
...(input.ChangeToken != null && { ChangeToken: input.ChangeToken }),
|
|
4756
|
+
...(input.MetricName != null && { MetricName: input.MetricName }),
|
|
4757
|
+
...(input.Name != null && { Name: input.Name }),
|
|
4758
|
+
...(input.RateKey != null && { RateKey: input.RateKey }),
|
|
4759
|
+
...(input.RateLimit != null && { RateLimit: input.RateLimit }),
|
|
4760
|
+
...(input.Tags != null && { Tags: serializeAws_json1_1TagList(input.Tags, context) }),
|
|
4769
4761
|
};
|
|
4770
4762
|
};
|
|
4771
4763
|
const serializeAws_json1_1CreateRegexMatchSetRequest = (input, context) => {
|
|
4772
4764
|
return {
|
|
4773
|
-
...(input.ChangeToken
|
|
4774
|
-
...(input.Name
|
|
4765
|
+
...(input.ChangeToken != null && { ChangeToken: input.ChangeToken }),
|
|
4766
|
+
...(input.Name != null && { Name: input.Name }),
|
|
4775
4767
|
};
|
|
4776
4768
|
};
|
|
4777
4769
|
const serializeAws_json1_1CreateRegexPatternSetRequest = (input, context) => {
|
|
4778
4770
|
return {
|
|
4779
|
-
...(input.ChangeToken
|
|
4780
|
-
...(input.Name
|
|
4771
|
+
...(input.ChangeToken != null && { ChangeToken: input.ChangeToken }),
|
|
4772
|
+
...(input.Name != null && { Name: input.Name }),
|
|
4781
4773
|
};
|
|
4782
4774
|
};
|
|
4783
4775
|
const serializeAws_json1_1CreateRuleGroupRequest = (input, context) => {
|
|
4784
4776
|
return {
|
|
4785
|
-
...(input.ChangeToken
|
|
4786
|
-
...(input.MetricName
|
|
4787
|
-
...(input.Name
|
|
4788
|
-
...(input.Tags
|
|
4777
|
+
...(input.ChangeToken != null && { ChangeToken: input.ChangeToken }),
|
|
4778
|
+
...(input.MetricName != null && { MetricName: input.MetricName }),
|
|
4779
|
+
...(input.Name != null && { Name: input.Name }),
|
|
4780
|
+
...(input.Tags != null && { Tags: serializeAws_json1_1TagList(input.Tags, context) }),
|
|
4789
4781
|
};
|
|
4790
4782
|
};
|
|
4791
4783
|
const serializeAws_json1_1CreateRuleRequest = (input, context) => {
|
|
4792
4784
|
return {
|
|
4793
|
-
...(input.ChangeToken
|
|
4794
|
-
...(input.MetricName
|
|
4795
|
-
...(input.Name
|
|
4796
|
-
...(input.Tags
|
|
4785
|
+
...(input.ChangeToken != null && { ChangeToken: input.ChangeToken }),
|
|
4786
|
+
...(input.MetricName != null && { MetricName: input.MetricName }),
|
|
4787
|
+
...(input.Name != null && { Name: input.Name }),
|
|
4788
|
+
...(input.Tags != null && { Tags: serializeAws_json1_1TagList(input.Tags, context) }),
|
|
4797
4789
|
};
|
|
4798
4790
|
};
|
|
4799
4791
|
const serializeAws_json1_1CreateSizeConstraintSetRequest = (input, context) => {
|
|
4800
4792
|
return {
|
|
4801
|
-
...(input.ChangeToken
|
|
4802
|
-
...(input.Name
|
|
4793
|
+
...(input.ChangeToken != null && { ChangeToken: input.ChangeToken }),
|
|
4794
|
+
...(input.Name != null && { Name: input.Name }),
|
|
4803
4795
|
};
|
|
4804
4796
|
};
|
|
4805
4797
|
const serializeAws_json1_1CreateSqlInjectionMatchSetRequest = (input, context) => {
|
|
4806
4798
|
return {
|
|
4807
|
-
...(input.ChangeToken
|
|
4808
|
-
...(input.Name
|
|
4799
|
+
...(input.ChangeToken != null && { ChangeToken: input.ChangeToken }),
|
|
4800
|
+
...(input.Name != null && { Name: input.Name }),
|
|
4809
4801
|
};
|
|
4810
4802
|
};
|
|
4811
4803
|
const serializeAws_json1_1CreateWebACLMigrationStackRequest = (input, context) => {
|
|
4812
4804
|
return {
|
|
4813
|
-
...(input.IgnoreUnsupportedType
|
|
4814
|
-
|
|
4815
|
-
...(input.
|
|
4816
|
-
...(input.WebACLId !== undefined && input.WebACLId !== null && { WebACLId: input.WebACLId }),
|
|
4805
|
+
...(input.IgnoreUnsupportedType != null && { IgnoreUnsupportedType: input.IgnoreUnsupportedType }),
|
|
4806
|
+
...(input.S3BucketName != null && { S3BucketName: input.S3BucketName }),
|
|
4807
|
+
...(input.WebACLId != null && { WebACLId: input.WebACLId }),
|
|
4817
4808
|
};
|
|
4818
4809
|
};
|
|
4819
4810
|
const serializeAws_json1_1CreateWebACLRequest = (input, context) => {
|
|
4820
4811
|
return {
|
|
4821
|
-
...(input.ChangeToken
|
|
4822
|
-
...(input.DefaultAction
|
|
4823
|
-
|
|
4824
|
-
...(input.
|
|
4825
|
-
...(input.
|
|
4826
|
-
...(input.Tags !== undefined && input.Tags !== null && { Tags: serializeAws_json1_1TagList(input.Tags, context) }),
|
|
4812
|
+
...(input.ChangeToken != null && { ChangeToken: input.ChangeToken }),
|
|
4813
|
+
...(input.DefaultAction != null && { DefaultAction: serializeAws_json1_1WafAction(input.DefaultAction, context) }),
|
|
4814
|
+
...(input.MetricName != null && { MetricName: input.MetricName }),
|
|
4815
|
+
...(input.Name != null && { Name: input.Name }),
|
|
4816
|
+
...(input.Tags != null && { Tags: serializeAws_json1_1TagList(input.Tags, context) }),
|
|
4827
4817
|
};
|
|
4828
4818
|
};
|
|
4829
4819
|
const serializeAws_json1_1CreateXssMatchSetRequest = (input, context) => {
|
|
4830
4820
|
return {
|
|
4831
|
-
...(input.ChangeToken
|
|
4832
|
-
...(input.Name
|
|
4821
|
+
...(input.ChangeToken != null && { ChangeToken: input.ChangeToken }),
|
|
4822
|
+
...(input.Name != null && { Name: input.Name }),
|
|
4833
4823
|
};
|
|
4834
4824
|
};
|
|
4835
4825
|
const serializeAws_json1_1DeleteByteMatchSetRequest = (input, context) => {
|
|
4836
4826
|
return {
|
|
4837
|
-
...(input.ByteMatchSetId
|
|
4838
|
-
|
|
4839
|
-
...(input.ChangeToken !== undefined && input.ChangeToken !== null && { ChangeToken: input.ChangeToken }),
|
|
4827
|
+
...(input.ByteMatchSetId != null && { ByteMatchSetId: input.ByteMatchSetId }),
|
|
4828
|
+
...(input.ChangeToken != null && { ChangeToken: input.ChangeToken }),
|
|
4840
4829
|
};
|
|
4841
4830
|
};
|
|
4842
4831
|
const serializeAws_json1_1DeleteGeoMatchSetRequest = (input, context) => {
|
|
4843
4832
|
return {
|
|
4844
|
-
...(input.ChangeToken
|
|
4845
|
-
...(input.GeoMatchSetId
|
|
4833
|
+
...(input.ChangeToken != null && { ChangeToken: input.ChangeToken }),
|
|
4834
|
+
...(input.GeoMatchSetId != null && { GeoMatchSetId: input.GeoMatchSetId }),
|
|
4846
4835
|
};
|
|
4847
4836
|
};
|
|
4848
4837
|
const serializeAws_json1_1DeleteIPSetRequest = (input, context) => {
|
|
4849
4838
|
return {
|
|
4850
|
-
...(input.ChangeToken
|
|
4851
|
-
...(input.IPSetId
|
|
4839
|
+
...(input.ChangeToken != null && { ChangeToken: input.ChangeToken }),
|
|
4840
|
+
...(input.IPSetId != null && { IPSetId: input.IPSetId }),
|
|
4852
4841
|
};
|
|
4853
4842
|
};
|
|
4854
4843
|
const serializeAws_json1_1DeleteLoggingConfigurationRequest = (input, context) => {
|
|
4855
4844
|
return {
|
|
4856
|
-
...(input.ResourceArn
|
|
4845
|
+
...(input.ResourceArn != null && { ResourceArn: input.ResourceArn }),
|
|
4857
4846
|
};
|
|
4858
4847
|
};
|
|
4859
4848
|
const serializeAws_json1_1DeletePermissionPolicyRequest = (input, context) => {
|
|
4860
4849
|
return {
|
|
4861
|
-
...(input.ResourceArn
|
|
4850
|
+
...(input.ResourceArn != null && { ResourceArn: input.ResourceArn }),
|
|
4862
4851
|
};
|
|
4863
4852
|
};
|
|
4864
4853
|
const serializeAws_json1_1DeleteRateBasedRuleRequest = (input, context) => {
|
|
4865
4854
|
return {
|
|
4866
|
-
...(input.ChangeToken
|
|
4867
|
-
...(input.RuleId
|
|
4855
|
+
...(input.ChangeToken != null && { ChangeToken: input.ChangeToken }),
|
|
4856
|
+
...(input.RuleId != null && { RuleId: input.RuleId }),
|
|
4868
4857
|
};
|
|
4869
4858
|
};
|
|
4870
4859
|
const serializeAws_json1_1DeleteRegexMatchSetRequest = (input, context) => {
|
|
4871
4860
|
return {
|
|
4872
|
-
...(input.ChangeToken
|
|
4873
|
-
...(input.RegexMatchSetId
|
|
4874
|
-
input.RegexMatchSetId !== null && { RegexMatchSetId: input.RegexMatchSetId }),
|
|
4861
|
+
...(input.ChangeToken != null && { ChangeToken: input.ChangeToken }),
|
|
4862
|
+
...(input.RegexMatchSetId != null && { RegexMatchSetId: input.RegexMatchSetId }),
|
|
4875
4863
|
};
|
|
4876
4864
|
};
|
|
4877
4865
|
const serializeAws_json1_1DeleteRegexPatternSetRequest = (input, context) => {
|
|
4878
4866
|
return {
|
|
4879
|
-
...(input.ChangeToken
|
|
4880
|
-
...(input.RegexPatternSetId
|
|
4881
|
-
input.RegexPatternSetId !== null && { RegexPatternSetId: input.RegexPatternSetId }),
|
|
4867
|
+
...(input.ChangeToken != null && { ChangeToken: input.ChangeToken }),
|
|
4868
|
+
...(input.RegexPatternSetId != null && { RegexPatternSetId: input.RegexPatternSetId }),
|
|
4882
4869
|
};
|
|
4883
4870
|
};
|
|
4884
4871
|
const serializeAws_json1_1DeleteRuleGroupRequest = (input, context) => {
|
|
4885
4872
|
return {
|
|
4886
|
-
...(input.ChangeToken
|
|
4887
|
-
...(input.RuleGroupId
|
|
4873
|
+
...(input.ChangeToken != null && { ChangeToken: input.ChangeToken }),
|
|
4874
|
+
...(input.RuleGroupId != null && { RuleGroupId: input.RuleGroupId }),
|
|
4888
4875
|
};
|
|
4889
4876
|
};
|
|
4890
4877
|
const serializeAws_json1_1DeleteRuleRequest = (input, context) => {
|
|
4891
4878
|
return {
|
|
4892
|
-
...(input.ChangeToken
|
|
4893
|
-
...(input.RuleId
|
|
4879
|
+
...(input.ChangeToken != null && { ChangeToken: input.ChangeToken }),
|
|
4880
|
+
...(input.RuleId != null && { RuleId: input.RuleId }),
|
|
4894
4881
|
};
|
|
4895
4882
|
};
|
|
4896
4883
|
const serializeAws_json1_1DeleteSizeConstraintSetRequest = (input, context) => {
|
|
4897
4884
|
return {
|
|
4898
|
-
...(input.ChangeToken
|
|
4899
|
-
...(input.SizeConstraintSetId
|
|
4900
|
-
input.SizeConstraintSetId !== null && { SizeConstraintSetId: input.SizeConstraintSetId }),
|
|
4885
|
+
...(input.ChangeToken != null && { ChangeToken: input.ChangeToken }),
|
|
4886
|
+
...(input.SizeConstraintSetId != null && { SizeConstraintSetId: input.SizeConstraintSetId }),
|
|
4901
4887
|
};
|
|
4902
4888
|
};
|
|
4903
4889
|
const serializeAws_json1_1DeleteSqlInjectionMatchSetRequest = (input, context) => {
|
|
4904
4890
|
return {
|
|
4905
|
-
...(input.ChangeToken
|
|
4906
|
-
...(input.SqlInjectionMatchSetId
|
|
4907
|
-
input.SqlInjectionMatchSetId !== null && { SqlInjectionMatchSetId: input.SqlInjectionMatchSetId }),
|
|
4891
|
+
...(input.ChangeToken != null && { ChangeToken: input.ChangeToken }),
|
|
4892
|
+
...(input.SqlInjectionMatchSetId != null && { SqlInjectionMatchSetId: input.SqlInjectionMatchSetId }),
|
|
4908
4893
|
};
|
|
4909
4894
|
};
|
|
4910
4895
|
const serializeAws_json1_1DeleteWebACLRequest = (input, context) => {
|
|
4911
4896
|
return {
|
|
4912
|
-
...(input.ChangeToken
|
|
4913
|
-
...(input.WebACLId
|
|
4897
|
+
...(input.ChangeToken != null && { ChangeToken: input.ChangeToken }),
|
|
4898
|
+
...(input.WebACLId != null && { WebACLId: input.WebACLId }),
|
|
4914
4899
|
};
|
|
4915
4900
|
};
|
|
4916
4901
|
const serializeAws_json1_1DeleteXssMatchSetRequest = (input, context) => {
|
|
4917
4902
|
return {
|
|
4918
|
-
...(input.ChangeToken
|
|
4919
|
-
...(input.XssMatchSetId
|
|
4903
|
+
...(input.ChangeToken != null && { ChangeToken: input.ChangeToken }),
|
|
4904
|
+
...(input.XssMatchSetId != null && { XssMatchSetId: input.XssMatchSetId }),
|
|
4920
4905
|
};
|
|
4921
4906
|
};
|
|
4922
4907
|
const serializeAws_json1_1ExcludedRule = (input, context) => {
|
|
4923
4908
|
return {
|
|
4924
|
-
...(input.RuleId
|
|
4909
|
+
...(input.RuleId != null && { RuleId: input.RuleId }),
|
|
4925
4910
|
};
|
|
4926
4911
|
};
|
|
4927
4912
|
const serializeAws_json1_1ExcludedRules = (input, context) => {
|
|
@@ -4936,21 +4921,20 @@ const serializeAws_json1_1ExcludedRules = (input, context) => {
|
|
|
4936
4921
|
};
|
|
4937
4922
|
const serializeAws_json1_1FieldToMatch = (input, context) => {
|
|
4938
4923
|
return {
|
|
4939
|
-
...(input.Data
|
|
4940
|
-
...(input.Type
|
|
4924
|
+
...(input.Data != null && { Data: input.Data }),
|
|
4925
|
+
...(input.Type != null && { Type: input.Type }),
|
|
4941
4926
|
};
|
|
4942
4927
|
};
|
|
4943
4928
|
const serializeAws_json1_1GeoMatchConstraint = (input, context) => {
|
|
4944
4929
|
return {
|
|
4945
|
-
...(input.Type
|
|
4946
|
-
...(input.Value
|
|
4930
|
+
...(input.Type != null && { Type: input.Type }),
|
|
4931
|
+
...(input.Value != null && { Value: input.Value }),
|
|
4947
4932
|
};
|
|
4948
4933
|
};
|
|
4949
4934
|
const serializeAws_json1_1GeoMatchSetUpdate = (input, context) => {
|
|
4950
4935
|
return {
|
|
4951
|
-
...(input.Action
|
|
4952
|
-
...(input.GeoMatchConstraint
|
|
4953
|
-
input.GeoMatchConstraint !== null && {
|
|
4936
|
+
...(input.Action != null && { Action: input.Action }),
|
|
4937
|
+
...(input.GeoMatchConstraint != null && {
|
|
4954
4938
|
GeoMatchConstraint: serializeAws_json1_1GeoMatchConstraint(input.GeoMatchConstraint, context),
|
|
4955
4939
|
}),
|
|
4956
4940
|
};
|
|
@@ -4967,8 +4951,7 @@ const serializeAws_json1_1GeoMatchSetUpdates = (input, context) => {
|
|
|
4967
4951
|
};
|
|
4968
4952
|
const serializeAws_json1_1GetByteMatchSetRequest = (input, context) => {
|
|
4969
4953
|
return {
|
|
4970
|
-
...(input.ByteMatchSetId
|
|
4971
|
-
input.ByteMatchSetId !== null && { ByteMatchSetId: input.ByteMatchSetId }),
|
|
4954
|
+
...(input.ByteMatchSetId != null && { ByteMatchSetId: input.ByteMatchSetId }),
|
|
4972
4955
|
};
|
|
4973
4956
|
};
|
|
4974
4957
|
const serializeAws_json1_1GetChangeTokenRequest = (input, context) => {
|
|
@@ -4976,104 +4959,98 @@ const serializeAws_json1_1GetChangeTokenRequest = (input, context) => {
|
|
|
4976
4959
|
};
|
|
4977
4960
|
const serializeAws_json1_1GetChangeTokenStatusRequest = (input, context) => {
|
|
4978
4961
|
return {
|
|
4979
|
-
...(input.ChangeToken
|
|
4962
|
+
...(input.ChangeToken != null && { ChangeToken: input.ChangeToken }),
|
|
4980
4963
|
};
|
|
4981
4964
|
};
|
|
4982
4965
|
const serializeAws_json1_1GetGeoMatchSetRequest = (input, context) => {
|
|
4983
4966
|
return {
|
|
4984
|
-
...(input.GeoMatchSetId
|
|
4967
|
+
...(input.GeoMatchSetId != null && { GeoMatchSetId: input.GeoMatchSetId }),
|
|
4985
4968
|
};
|
|
4986
4969
|
};
|
|
4987
4970
|
const serializeAws_json1_1GetIPSetRequest = (input, context) => {
|
|
4988
4971
|
return {
|
|
4989
|
-
...(input.IPSetId
|
|
4972
|
+
...(input.IPSetId != null && { IPSetId: input.IPSetId }),
|
|
4990
4973
|
};
|
|
4991
4974
|
};
|
|
4992
4975
|
const serializeAws_json1_1GetLoggingConfigurationRequest = (input, context) => {
|
|
4993
4976
|
return {
|
|
4994
|
-
...(input.ResourceArn
|
|
4977
|
+
...(input.ResourceArn != null && { ResourceArn: input.ResourceArn }),
|
|
4995
4978
|
};
|
|
4996
4979
|
};
|
|
4997
4980
|
const serializeAws_json1_1GetPermissionPolicyRequest = (input, context) => {
|
|
4998
4981
|
return {
|
|
4999
|
-
...(input.ResourceArn
|
|
4982
|
+
...(input.ResourceArn != null && { ResourceArn: input.ResourceArn }),
|
|
5000
4983
|
};
|
|
5001
4984
|
};
|
|
5002
4985
|
const serializeAws_json1_1GetRateBasedRuleManagedKeysRequest = (input, context) => {
|
|
5003
4986
|
return {
|
|
5004
|
-
...(input.NextMarker
|
|
5005
|
-
...(input.RuleId
|
|
4987
|
+
...(input.NextMarker != null && { NextMarker: input.NextMarker }),
|
|
4988
|
+
...(input.RuleId != null && { RuleId: input.RuleId }),
|
|
5006
4989
|
};
|
|
5007
4990
|
};
|
|
5008
4991
|
const serializeAws_json1_1GetRateBasedRuleRequest = (input, context) => {
|
|
5009
4992
|
return {
|
|
5010
|
-
...(input.RuleId
|
|
4993
|
+
...(input.RuleId != null && { RuleId: input.RuleId }),
|
|
5011
4994
|
};
|
|
5012
4995
|
};
|
|
5013
4996
|
const serializeAws_json1_1GetRegexMatchSetRequest = (input, context) => {
|
|
5014
4997
|
return {
|
|
5015
|
-
...(input.RegexMatchSetId
|
|
5016
|
-
input.RegexMatchSetId !== null && { RegexMatchSetId: input.RegexMatchSetId }),
|
|
4998
|
+
...(input.RegexMatchSetId != null && { RegexMatchSetId: input.RegexMatchSetId }),
|
|
5017
4999
|
};
|
|
5018
5000
|
};
|
|
5019
5001
|
const serializeAws_json1_1GetRegexPatternSetRequest = (input, context) => {
|
|
5020
5002
|
return {
|
|
5021
|
-
...(input.RegexPatternSetId
|
|
5022
|
-
input.RegexPatternSetId !== null && { RegexPatternSetId: input.RegexPatternSetId }),
|
|
5003
|
+
...(input.RegexPatternSetId != null && { RegexPatternSetId: input.RegexPatternSetId }),
|
|
5023
5004
|
};
|
|
5024
5005
|
};
|
|
5025
5006
|
const serializeAws_json1_1GetRuleGroupRequest = (input, context) => {
|
|
5026
5007
|
return {
|
|
5027
|
-
...(input.RuleGroupId
|
|
5008
|
+
...(input.RuleGroupId != null && { RuleGroupId: input.RuleGroupId }),
|
|
5028
5009
|
};
|
|
5029
5010
|
};
|
|
5030
5011
|
const serializeAws_json1_1GetRuleRequest = (input, context) => {
|
|
5031
5012
|
return {
|
|
5032
|
-
...(input.RuleId
|
|
5013
|
+
...(input.RuleId != null && { RuleId: input.RuleId }),
|
|
5033
5014
|
};
|
|
5034
5015
|
};
|
|
5035
5016
|
const serializeAws_json1_1GetSampledRequestsRequest = (input, context) => {
|
|
5036
5017
|
return {
|
|
5037
|
-
...(input.MaxItems
|
|
5038
|
-
...(input.RuleId
|
|
5039
|
-
...(input.TimeWindow
|
|
5040
|
-
|
|
5041
|
-
...(input.WebAclId !== undefined && input.WebAclId !== null && { WebAclId: input.WebAclId }),
|
|
5018
|
+
...(input.MaxItems != null && { MaxItems: input.MaxItems }),
|
|
5019
|
+
...(input.RuleId != null && { RuleId: input.RuleId }),
|
|
5020
|
+
...(input.TimeWindow != null && { TimeWindow: serializeAws_json1_1TimeWindow(input.TimeWindow, context) }),
|
|
5021
|
+
...(input.WebAclId != null && { WebAclId: input.WebAclId }),
|
|
5042
5022
|
};
|
|
5043
5023
|
};
|
|
5044
5024
|
const serializeAws_json1_1GetSizeConstraintSetRequest = (input, context) => {
|
|
5045
5025
|
return {
|
|
5046
|
-
...(input.SizeConstraintSetId
|
|
5047
|
-
input.SizeConstraintSetId !== null && { SizeConstraintSetId: input.SizeConstraintSetId }),
|
|
5026
|
+
...(input.SizeConstraintSetId != null && { SizeConstraintSetId: input.SizeConstraintSetId }),
|
|
5048
5027
|
};
|
|
5049
5028
|
};
|
|
5050
5029
|
const serializeAws_json1_1GetSqlInjectionMatchSetRequest = (input, context) => {
|
|
5051
5030
|
return {
|
|
5052
|
-
...(input.SqlInjectionMatchSetId
|
|
5053
|
-
input.SqlInjectionMatchSetId !== null && { SqlInjectionMatchSetId: input.SqlInjectionMatchSetId }),
|
|
5031
|
+
...(input.SqlInjectionMatchSetId != null && { SqlInjectionMatchSetId: input.SqlInjectionMatchSetId }),
|
|
5054
5032
|
};
|
|
5055
5033
|
};
|
|
5056
5034
|
const serializeAws_json1_1GetWebACLRequest = (input, context) => {
|
|
5057
5035
|
return {
|
|
5058
|
-
...(input.WebACLId
|
|
5036
|
+
...(input.WebACLId != null && { WebACLId: input.WebACLId }),
|
|
5059
5037
|
};
|
|
5060
5038
|
};
|
|
5061
5039
|
const serializeAws_json1_1GetXssMatchSetRequest = (input, context) => {
|
|
5062
5040
|
return {
|
|
5063
|
-
...(input.XssMatchSetId
|
|
5041
|
+
...(input.XssMatchSetId != null && { XssMatchSetId: input.XssMatchSetId }),
|
|
5064
5042
|
};
|
|
5065
5043
|
};
|
|
5066
5044
|
const serializeAws_json1_1IPSetDescriptor = (input, context) => {
|
|
5067
5045
|
return {
|
|
5068
|
-
...(input.Type
|
|
5069
|
-
...(input.Value
|
|
5046
|
+
...(input.Type != null && { Type: input.Type }),
|
|
5047
|
+
...(input.Value != null && { Value: input.Value }),
|
|
5070
5048
|
};
|
|
5071
5049
|
};
|
|
5072
5050
|
const serializeAws_json1_1IPSetUpdate = (input, context) => {
|
|
5073
5051
|
return {
|
|
5074
|
-
...(input.Action
|
|
5075
|
-
...(input.IPSetDescriptor
|
|
5076
|
-
input.IPSetDescriptor !== null && {
|
|
5052
|
+
...(input.Action != null && { Action: input.Action }),
|
|
5053
|
+
...(input.IPSetDescriptor != null && {
|
|
5077
5054
|
IPSetDescriptor: serializeAws_json1_1IPSetDescriptor(input.IPSetDescriptor, context),
|
|
5078
5055
|
}),
|
|
5079
5056
|
};
|
|
@@ -5090,100 +5067,100 @@ const serializeAws_json1_1IPSetUpdates = (input, context) => {
|
|
|
5090
5067
|
};
|
|
5091
5068
|
const serializeAws_json1_1ListActivatedRulesInRuleGroupRequest = (input, context) => {
|
|
5092
5069
|
return {
|
|
5093
|
-
...(input.Limit
|
|
5094
|
-
...(input.NextMarker
|
|
5095
|
-
...(input.RuleGroupId
|
|
5070
|
+
...(input.Limit != null && { Limit: input.Limit }),
|
|
5071
|
+
...(input.NextMarker != null && { NextMarker: input.NextMarker }),
|
|
5072
|
+
...(input.RuleGroupId != null && { RuleGroupId: input.RuleGroupId }),
|
|
5096
5073
|
};
|
|
5097
5074
|
};
|
|
5098
5075
|
const serializeAws_json1_1ListByteMatchSetsRequest = (input, context) => {
|
|
5099
5076
|
return {
|
|
5100
|
-
...(input.Limit
|
|
5101
|
-
...(input.NextMarker
|
|
5077
|
+
...(input.Limit != null && { Limit: input.Limit }),
|
|
5078
|
+
...(input.NextMarker != null && { NextMarker: input.NextMarker }),
|
|
5102
5079
|
};
|
|
5103
5080
|
};
|
|
5104
5081
|
const serializeAws_json1_1ListGeoMatchSetsRequest = (input, context) => {
|
|
5105
5082
|
return {
|
|
5106
|
-
...(input.Limit
|
|
5107
|
-
...(input.NextMarker
|
|
5083
|
+
...(input.Limit != null && { Limit: input.Limit }),
|
|
5084
|
+
...(input.NextMarker != null && { NextMarker: input.NextMarker }),
|
|
5108
5085
|
};
|
|
5109
5086
|
};
|
|
5110
5087
|
const serializeAws_json1_1ListIPSetsRequest = (input, context) => {
|
|
5111
5088
|
return {
|
|
5112
|
-
...(input.Limit
|
|
5113
|
-
...(input.NextMarker
|
|
5089
|
+
...(input.Limit != null && { Limit: input.Limit }),
|
|
5090
|
+
...(input.NextMarker != null && { NextMarker: input.NextMarker }),
|
|
5114
5091
|
};
|
|
5115
5092
|
};
|
|
5116
5093
|
const serializeAws_json1_1ListLoggingConfigurationsRequest = (input, context) => {
|
|
5117
5094
|
return {
|
|
5118
|
-
...(input.Limit
|
|
5119
|
-
...(input.NextMarker
|
|
5095
|
+
...(input.Limit != null && { Limit: input.Limit }),
|
|
5096
|
+
...(input.NextMarker != null && { NextMarker: input.NextMarker }),
|
|
5120
5097
|
};
|
|
5121
5098
|
};
|
|
5122
5099
|
const serializeAws_json1_1ListRateBasedRulesRequest = (input, context) => {
|
|
5123
5100
|
return {
|
|
5124
|
-
...(input.Limit
|
|
5125
|
-
...(input.NextMarker
|
|
5101
|
+
...(input.Limit != null && { Limit: input.Limit }),
|
|
5102
|
+
...(input.NextMarker != null && { NextMarker: input.NextMarker }),
|
|
5126
5103
|
};
|
|
5127
5104
|
};
|
|
5128
5105
|
const serializeAws_json1_1ListRegexMatchSetsRequest = (input, context) => {
|
|
5129
5106
|
return {
|
|
5130
|
-
...(input.Limit
|
|
5131
|
-
...(input.NextMarker
|
|
5107
|
+
...(input.Limit != null && { Limit: input.Limit }),
|
|
5108
|
+
...(input.NextMarker != null && { NextMarker: input.NextMarker }),
|
|
5132
5109
|
};
|
|
5133
5110
|
};
|
|
5134
5111
|
const serializeAws_json1_1ListRegexPatternSetsRequest = (input, context) => {
|
|
5135
5112
|
return {
|
|
5136
|
-
...(input.Limit
|
|
5137
|
-
...(input.NextMarker
|
|
5113
|
+
...(input.Limit != null && { Limit: input.Limit }),
|
|
5114
|
+
...(input.NextMarker != null && { NextMarker: input.NextMarker }),
|
|
5138
5115
|
};
|
|
5139
5116
|
};
|
|
5140
5117
|
const serializeAws_json1_1ListRuleGroupsRequest = (input, context) => {
|
|
5141
5118
|
return {
|
|
5142
|
-
...(input.Limit
|
|
5143
|
-
...(input.NextMarker
|
|
5119
|
+
...(input.Limit != null && { Limit: input.Limit }),
|
|
5120
|
+
...(input.NextMarker != null && { NextMarker: input.NextMarker }),
|
|
5144
5121
|
};
|
|
5145
5122
|
};
|
|
5146
5123
|
const serializeAws_json1_1ListRulesRequest = (input, context) => {
|
|
5147
5124
|
return {
|
|
5148
|
-
...(input.Limit
|
|
5149
|
-
...(input.NextMarker
|
|
5125
|
+
...(input.Limit != null && { Limit: input.Limit }),
|
|
5126
|
+
...(input.NextMarker != null && { NextMarker: input.NextMarker }),
|
|
5150
5127
|
};
|
|
5151
5128
|
};
|
|
5152
5129
|
const serializeAws_json1_1ListSizeConstraintSetsRequest = (input, context) => {
|
|
5153
5130
|
return {
|
|
5154
|
-
...(input.Limit
|
|
5155
|
-
...(input.NextMarker
|
|
5131
|
+
...(input.Limit != null && { Limit: input.Limit }),
|
|
5132
|
+
...(input.NextMarker != null && { NextMarker: input.NextMarker }),
|
|
5156
5133
|
};
|
|
5157
5134
|
};
|
|
5158
5135
|
const serializeAws_json1_1ListSqlInjectionMatchSetsRequest = (input, context) => {
|
|
5159
5136
|
return {
|
|
5160
|
-
...(input.Limit
|
|
5161
|
-
...(input.NextMarker
|
|
5137
|
+
...(input.Limit != null && { Limit: input.Limit }),
|
|
5138
|
+
...(input.NextMarker != null && { NextMarker: input.NextMarker }),
|
|
5162
5139
|
};
|
|
5163
5140
|
};
|
|
5164
5141
|
const serializeAws_json1_1ListSubscribedRuleGroupsRequest = (input, context) => {
|
|
5165
5142
|
return {
|
|
5166
|
-
...(input.Limit
|
|
5167
|
-
...(input.NextMarker
|
|
5143
|
+
...(input.Limit != null && { Limit: input.Limit }),
|
|
5144
|
+
...(input.NextMarker != null && { NextMarker: input.NextMarker }),
|
|
5168
5145
|
};
|
|
5169
5146
|
};
|
|
5170
5147
|
const serializeAws_json1_1ListTagsForResourceRequest = (input, context) => {
|
|
5171
5148
|
return {
|
|
5172
|
-
...(input.Limit
|
|
5173
|
-
...(input.NextMarker
|
|
5174
|
-
...(input.ResourceARN
|
|
5149
|
+
...(input.Limit != null && { Limit: input.Limit }),
|
|
5150
|
+
...(input.NextMarker != null && { NextMarker: input.NextMarker }),
|
|
5151
|
+
...(input.ResourceARN != null && { ResourceARN: input.ResourceARN }),
|
|
5175
5152
|
};
|
|
5176
5153
|
};
|
|
5177
5154
|
const serializeAws_json1_1ListWebACLsRequest = (input, context) => {
|
|
5178
5155
|
return {
|
|
5179
|
-
...(input.Limit
|
|
5180
|
-
...(input.NextMarker
|
|
5156
|
+
...(input.Limit != null && { Limit: input.Limit }),
|
|
5157
|
+
...(input.NextMarker != null && { NextMarker: input.NextMarker }),
|
|
5181
5158
|
};
|
|
5182
5159
|
};
|
|
5183
5160
|
const serializeAws_json1_1ListXssMatchSetsRequest = (input, context) => {
|
|
5184
5161
|
return {
|
|
5185
|
-
...(input.Limit
|
|
5186
|
-
...(input.NextMarker
|
|
5162
|
+
...(input.Limit != null && { Limit: input.Limit }),
|
|
5163
|
+
...(input.NextMarker != null && { NextMarker: input.NextMarker }),
|
|
5187
5164
|
};
|
|
5188
5165
|
};
|
|
5189
5166
|
const serializeAws_json1_1LogDestinationConfigs = (input, context) => {
|
|
@@ -5198,36 +5175,33 @@ const serializeAws_json1_1LogDestinationConfigs = (input, context) => {
|
|
|
5198
5175
|
};
|
|
5199
5176
|
const serializeAws_json1_1LoggingConfiguration = (input, context) => {
|
|
5200
5177
|
return {
|
|
5201
|
-
...(input.LogDestinationConfigs
|
|
5202
|
-
input.LogDestinationConfigs !== null && {
|
|
5178
|
+
...(input.LogDestinationConfigs != null && {
|
|
5203
5179
|
LogDestinationConfigs: serializeAws_json1_1LogDestinationConfigs(input.LogDestinationConfigs, context),
|
|
5204
5180
|
}),
|
|
5205
|
-
...(input.RedactedFields
|
|
5206
|
-
input.RedactedFields !== null && {
|
|
5181
|
+
...(input.RedactedFields != null && {
|
|
5207
5182
|
RedactedFields: serializeAws_json1_1RedactedFields(input.RedactedFields, context),
|
|
5208
5183
|
}),
|
|
5209
|
-
...(input.ResourceArn
|
|
5184
|
+
...(input.ResourceArn != null && { ResourceArn: input.ResourceArn }),
|
|
5210
5185
|
};
|
|
5211
5186
|
};
|
|
5212
5187
|
const serializeAws_json1_1Predicate = (input, context) => {
|
|
5213
5188
|
return {
|
|
5214
|
-
...(input.DataId
|
|
5215
|
-
...(input.Negated
|
|
5216
|
-
...(input.Type
|
|
5189
|
+
...(input.DataId != null && { DataId: input.DataId }),
|
|
5190
|
+
...(input.Negated != null && { Negated: input.Negated }),
|
|
5191
|
+
...(input.Type != null && { Type: input.Type }),
|
|
5217
5192
|
};
|
|
5218
5193
|
};
|
|
5219
5194
|
const serializeAws_json1_1PutLoggingConfigurationRequest = (input, context) => {
|
|
5220
5195
|
return {
|
|
5221
|
-
...(input.LoggingConfiguration
|
|
5222
|
-
input.LoggingConfiguration !== null && {
|
|
5196
|
+
...(input.LoggingConfiguration != null && {
|
|
5223
5197
|
LoggingConfiguration: serializeAws_json1_1LoggingConfiguration(input.LoggingConfiguration, context),
|
|
5224
5198
|
}),
|
|
5225
5199
|
};
|
|
5226
5200
|
};
|
|
5227
5201
|
const serializeAws_json1_1PutPermissionPolicyRequest = (input, context) => {
|
|
5228
5202
|
return {
|
|
5229
|
-
...(input.Policy
|
|
5230
|
-
...(input.ResourceArn
|
|
5203
|
+
...(input.Policy != null && { Policy: input.Policy }),
|
|
5204
|
+
...(input.ResourceArn != null && { ResourceArn: input.ResourceArn }),
|
|
5231
5205
|
};
|
|
5232
5206
|
};
|
|
5233
5207
|
const serializeAws_json1_1RedactedFields = (input, context) => {
|
|
@@ -5242,9 +5216,8 @@ const serializeAws_json1_1RedactedFields = (input, context) => {
|
|
|
5242
5216
|
};
|
|
5243
5217
|
const serializeAws_json1_1RegexMatchSetUpdate = (input, context) => {
|
|
5244
5218
|
return {
|
|
5245
|
-
...(input.Action
|
|
5246
|
-
...(input.RegexMatchTuple
|
|
5247
|
-
input.RegexMatchTuple !== null && {
|
|
5219
|
+
...(input.Action != null && { Action: input.Action }),
|
|
5220
|
+
...(input.RegexMatchTuple != null && {
|
|
5248
5221
|
RegexMatchTuple: serializeAws_json1_1RegexMatchTuple(input.RegexMatchTuple, context),
|
|
5249
5222
|
}),
|
|
5250
5223
|
};
|
|
@@ -5261,19 +5234,15 @@ const serializeAws_json1_1RegexMatchSetUpdates = (input, context) => {
|
|
|
5261
5234
|
};
|
|
5262
5235
|
const serializeAws_json1_1RegexMatchTuple = (input, context) => {
|
|
5263
5236
|
return {
|
|
5264
|
-
...(input.FieldToMatch
|
|
5265
|
-
|
|
5266
|
-
...(input.
|
|
5267
|
-
input.RegexPatternSetId !== null && { RegexPatternSetId: input.RegexPatternSetId }),
|
|
5268
|
-
...(input.TextTransformation !== undefined &&
|
|
5269
|
-
input.TextTransformation !== null && { TextTransformation: input.TextTransformation }),
|
|
5237
|
+
...(input.FieldToMatch != null && { FieldToMatch: serializeAws_json1_1FieldToMatch(input.FieldToMatch, context) }),
|
|
5238
|
+
...(input.RegexPatternSetId != null && { RegexPatternSetId: input.RegexPatternSetId }),
|
|
5239
|
+
...(input.TextTransformation != null && { TextTransformation: input.TextTransformation }),
|
|
5270
5240
|
};
|
|
5271
5241
|
};
|
|
5272
5242
|
const serializeAws_json1_1RegexPatternSetUpdate = (input, context) => {
|
|
5273
5243
|
return {
|
|
5274
|
-
...(input.Action
|
|
5275
|
-
...(input.RegexPatternString
|
|
5276
|
-
input.RegexPatternString !== null && { RegexPatternString: input.RegexPatternString }),
|
|
5244
|
+
...(input.Action != null && { Action: input.Action }),
|
|
5245
|
+
...(input.RegexPatternString != null && { RegexPatternString: input.RegexPatternString }),
|
|
5277
5246
|
};
|
|
5278
5247
|
};
|
|
5279
5248
|
const serializeAws_json1_1RegexPatternSetUpdates = (input, context) => {
|
|
@@ -5288,9 +5257,8 @@ const serializeAws_json1_1RegexPatternSetUpdates = (input, context) => {
|
|
|
5288
5257
|
};
|
|
5289
5258
|
const serializeAws_json1_1RuleGroupUpdate = (input, context) => {
|
|
5290
5259
|
return {
|
|
5291
|
-
...(input.Action
|
|
5292
|
-
...(input.ActivatedRule
|
|
5293
|
-
input.ActivatedRule !== null && {
|
|
5260
|
+
...(input.Action != null && { Action: input.Action }),
|
|
5261
|
+
...(input.ActivatedRule != null && {
|
|
5294
5262
|
ActivatedRule: serializeAws_json1_1ActivatedRule(input.ActivatedRule, context),
|
|
5295
5263
|
}),
|
|
5296
5264
|
};
|
|
@@ -5307,9 +5275,8 @@ const serializeAws_json1_1RuleGroupUpdates = (input, context) => {
|
|
|
5307
5275
|
};
|
|
5308
5276
|
const serializeAws_json1_1RuleUpdate = (input, context) => {
|
|
5309
5277
|
return {
|
|
5310
|
-
...(input.Action
|
|
5311
|
-
...(input.Predicate
|
|
5312
|
-
input.Predicate !== null && { Predicate: serializeAws_json1_1Predicate(input.Predicate, context) }),
|
|
5278
|
+
...(input.Action != null && { Action: input.Action }),
|
|
5279
|
+
...(input.Predicate != null && { Predicate: serializeAws_json1_1Predicate(input.Predicate, context) }),
|
|
5313
5280
|
};
|
|
5314
5281
|
};
|
|
5315
5282
|
const serializeAws_json1_1RuleUpdates = (input, context) => {
|
|
@@ -5324,20 +5291,16 @@ const serializeAws_json1_1RuleUpdates = (input, context) => {
|
|
|
5324
5291
|
};
|
|
5325
5292
|
const serializeAws_json1_1SizeConstraint = (input, context) => {
|
|
5326
5293
|
return {
|
|
5327
|
-
...(input.ComparisonOperator
|
|
5328
|
-
|
|
5329
|
-
...(input.
|
|
5330
|
-
|
|
5331
|
-
...(input.Size !== undefined && input.Size !== null && { Size: input.Size }),
|
|
5332
|
-
...(input.TextTransformation !== undefined &&
|
|
5333
|
-
input.TextTransformation !== null && { TextTransformation: input.TextTransformation }),
|
|
5294
|
+
...(input.ComparisonOperator != null && { ComparisonOperator: input.ComparisonOperator }),
|
|
5295
|
+
...(input.FieldToMatch != null && { FieldToMatch: serializeAws_json1_1FieldToMatch(input.FieldToMatch, context) }),
|
|
5296
|
+
...(input.Size != null && { Size: input.Size }),
|
|
5297
|
+
...(input.TextTransformation != null && { TextTransformation: input.TextTransformation }),
|
|
5334
5298
|
};
|
|
5335
5299
|
};
|
|
5336
5300
|
const serializeAws_json1_1SizeConstraintSetUpdate = (input, context) => {
|
|
5337
5301
|
return {
|
|
5338
|
-
...(input.Action
|
|
5339
|
-
...(input.SizeConstraint
|
|
5340
|
-
input.SizeConstraint !== null && {
|
|
5302
|
+
...(input.Action != null && { Action: input.Action }),
|
|
5303
|
+
...(input.SizeConstraint != null && {
|
|
5341
5304
|
SizeConstraint: serializeAws_json1_1SizeConstraint(input.SizeConstraint, context),
|
|
5342
5305
|
}),
|
|
5343
5306
|
};
|
|
@@ -5354,9 +5317,8 @@ const serializeAws_json1_1SizeConstraintSetUpdates = (input, context) => {
|
|
|
5354
5317
|
};
|
|
5355
5318
|
const serializeAws_json1_1SqlInjectionMatchSetUpdate = (input, context) => {
|
|
5356
5319
|
return {
|
|
5357
|
-
...(input.Action
|
|
5358
|
-
...(input.SqlInjectionMatchTuple
|
|
5359
|
-
input.SqlInjectionMatchTuple !== null && {
|
|
5320
|
+
...(input.Action != null && { Action: input.Action }),
|
|
5321
|
+
...(input.SqlInjectionMatchTuple != null && {
|
|
5360
5322
|
SqlInjectionMatchTuple: serializeAws_json1_1SqlInjectionMatchTuple(input.SqlInjectionMatchTuple, context),
|
|
5361
5323
|
}),
|
|
5362
5324
|
};
|
|
@@ -5373,16 +5335,14 @@ const serializeAws_json1_1SqlInjectionMatchSetUpdates = (input, context) => {
|
|
|
5373
5335
|
};
|
|
5374
5336
|
const serializeAws_json1_1SqlInjectionMatchTuple = (input, context) => {
|
|
5375
5337
|
return {
|
|
5376
|
-
...(input.FieldToMatch
|
|
5377
|
-
|
|
5378
|
-
...(input.TextTransformation !== undefined &&
|
|
5379
|
-
input.TextTransformation !== null && { TextTransformation: input.TextTransformation }),
|
|
5338
|
+
...(input.FieldToMatch != null && { FieldToMatch: serializeAws_json1_1FieldToMatch(input.FieldToMatch, context) }),
|
|
5339
|
+
...(input.TextTransformation != null && { TextTransformation: input.TextTransformation }),
|
|
5380
5340
|
};
|
|
5381
5341
|
};
|
|
5382
5342
|
const serializeAws_json1_1Tag = (input, context) => {
|
|
5383
5343
|
return {
|
|
5384
|
-
...(input.Key
|
|
5385
|
-
...(input.Value
|
|
5344
|
+
...(input.Key != null && { Key: input.Key }),
|
|
5345
|
+
...(input.Value != null && { Value: input.Value }),
|
|
5386
5346
|
};
|
|
5387
5347
|
};
|
|
5388
5348
|
const serializeAws_json1_1TagKeyList = (input, context) => {
|
|
@@ -5407,144 +5367,122 @@ const serializeAws_json1_1TagList = (input, context) => {
|
|
|
5407
5367
|
};
|
|
5408
5368
|
const serializeAws_json1_1TagResourceRequest = (input, context) => {
|
|
5409
5369
|
return {
|
|
5410
|
-
...(input.ResourceARN
|
|
5411
|
-
...(input.Tags
|
|
5370
|
+
...(input.ResourceARN != null && { ResourceARN: input.ResourceARN }),
|
|
5371
|
+
...(input.Tags != null && { Tags: serializeAws_json1_1TagList(input.Tags, context) }),
|
|
5412
5372
|
};
|
|
5413
5373
|
};
|
|
5414
5374
|
const serializeAws_json1_1TimeWindow = (input, context) => {
|
|
5415
5375
|
return {
|
|
5416
|
-
...(input.EndTime
|
|
5417
|
-
|
|
5418
|
-
...(input.StartTime !== undefined &&
|
|
5419
|
-
input.StartTime !== null && { StartTime: Math.round(input.StartTime.getTime() / 1000) }),
|
|
5376
|
+
...(input.EndTime != null && { EndTime: Math.round(input.EndTime.getTime() / 1000) }),
|
|
5377
|
+
...(input.StartTime != null && { StartTime: Math.round(input.StartTime.getTime() / 1000) }),
|
|
5420
5378
|
};
|
|
5421
5379
|
};
|
|
5422
5380
|
const serializeAws_json1_1UntagResourceRequest = (input, context) => {
|
|
5423
5381
|
return {
|
|
5424
|
-
...(input.ResourceARN
|
|
5425
|
-
...(input.TagKeys
|
|
5426
|
-
input.TagKeys !== null && { TagKeys: serializeAws_json1_1TagKeyList(input.TagKeys, context) }),
|
|
5382
|
+
...(input.ResourceARN != null && { ResourceARN: input.ResourceARN }),
|
|
5383
|
+
...(input.TagKeys != null && { TagKeys: serializeAws_json1_1TagKeyList(input.TagKeys, context) }),
|
|
5427
5384
|
};
|
|
5428
5385
|
};
|
|
5429
5386
|
const serializeAws_json1_1UpdateByteMatchSetRequest = (input, context) => {
|
|
5430
5387
|
return {
|
|
5431
|
-
...(input.ByteMatchSetId
|
|
5432
|
-
|
|
5433
|
-
...(input.
|
|
5434
|
-
...(input.Updates !== undefined &&
|
|
5435
|
-
input.Updates !== null && { Updates: serializeAws_json1_1ByteMatchSetUpdates(input.Updates, context) }),
|
|
5388
|
+
...(input.ByteMatchSetId != null && { ByteMatchSetId: input.ByteMatchSetId }),
|
|
5389
|
+
...(input.ChangeToken != null && { ChangeToken: input.ChangeToken }),
|
|
5390
|
+
...(input.Updates != null && { Updates: serializeAws_json1_1ByteMatchSetUpdates(input.Updates, context) }),
|
|
5436
5391
|
};
|
|
5437
5392
|
};
|
|
5438
5393
|
const serializeAws_json1_1UpdateGeoMatchSetRequest = (input, context) => {
|
|
5439
5394
|
return {
|
|
5440
|
-
...(input.ChangeToken
|
|
5441
|
-
...(input.GeoMatchSetId
|
|
5442
|
-
...(input.Updates
|
|
5443
|
-
input.Updates !== null && { Updates: serializeAws_json1_1GeoMatchSetUpdates(input.Updates, context) }),
|
|
5395
|
+
...(input.ChangeToken != null && { ChangeToken: input.ChangeToken }),
|
|
5396
|
+
...(input.GeoMatchSetId != null && { GeoMatchSetId: input.GeoMatchSetId }),
|
|
5397
|
+
...(input.Updates != null && { Updates: serializeAws_json1_1GeoMatchSetUpdates(input.Updates, context) }),
|
|
5444
5398
|
};
|
|
5445
5399
|
};
|
|
5446
5400
|
const serializeAws_json1_1UpdateIPSetRequest = (input, context) => {
|
|
5447
5401
|
return {
|
|
5448
|
-
...(input.ChangeToken
|
|
5449
|
-
...(input.IPSetId
|
|
5450
|
-
...(input.Updates
|
|
5451
|
-
input.Updates !== null && { Updates: serializeAws_json1_1IPSetUpdates(input.Updates, context) }),
|
|
5402
|
+
...(input.ChangeToken != null && { ChangeToken: input.ChangeToken }),
|
|
5403
|
+
...(input.IPSetId != null && { IPSetId: input.IPSetId }),
|
|
5404
|
+
...(input.Updates != null && { Updates: serializeAws_json1_1IPSetUpdates(input.Updates, context) }),
|
|
5452
5405
|
};
|
|
5453
5406
|
};
|
|
5454
5407
|
const serializeAws_json1_1UpdateRateBasedRuleRequest = (input, context) => {
|
|
5455
5408
|
return {
|
|
5456
|
-
...(input.ChangeToken
|
|
5457
|
-
...(input.RateLimit
|
|
5458
|
-
...(input.RuleId
|
|
5459
|
-
...(input.Updates
|
|
5460
|
-
input.Updates !== null && { Updates: serializeAws_json1_1RuleUpdates(input.Updates, context) }),
|
|
5409
|
+
...(input.ChangeToken != null && { ChangeToken: input.ChangeToken }),
|
|
5410
|
+
...(input.RateLimit != null && { RateLimit: input.RateLimit }),
|
|
5411
|
+
...(input.RuleId != null && { RuleId: input.RuleId }),
|
|
5412
|
+
...(input.Updates != null && { Updates: serializeAws_json1_1RuleUpdates(input.Updates, context) }),
|
|
5461
5413
|
};
|
|
5462
5414
|
};
|
|
5463
5415
|
const serializeAws_json1_1UpdateRegexMatchSetRequest = (input, context) => {
|
|
5464
5416
|
return {
|
|
5465
|
-
...(input.ChangeToken
|
|
5466
|
-
...(input.RegexMatchSetId
|
|
5467
|
-
|
|
5468
|
-
...(input.Updates !== undefined &&
|
|
5469
|
-
input.Updates !== null && { Updates: serializeAws_json1_1RegexMatchSetUpdates(input.Updates, context) }),
|
|
5417
|
+
...(input.ChangeToken != null && { ChangeToken: input.ChangeToken }),
|
|
5418
|
+
...(input.RegexMatchSetId != null && { RegexMatchSetId: input.RegexMatchSetId }),
|
|
5419
|
+
...(input.Updates != null && { Updates: serializeAws_json1_1RegexMatchSetUpdates(input.Updates, context) }),
|
|
5470
5420
|
};
|
|
5471
5421
|
};
|
|
5472
5422
|
const serializeAws_json1_1UpdateRegexPatternSetRequest = (input, context) => {
|
|
5473
5423
|
return {
|
|
5474
|
-
...(input.ChangeToken
|
|
5475
|
-
...(input.RegexPatternSetId
|
|
5476
|
-
|
|
5477
|
-
...(input.Updates !== undefined &&
|
|
5478
|
-
input.Updates !== null && { Updates: serializeAws_json1_1RegexPatternSetUpdates(input.Updates, context) }),
|
|
5424
|
+
...(input.ChangeToken != null && { ChangeToken: input.ChangeToken }),
|
|
5425
|
+
...(input.RegexPatternSetId != null && { RegexPatternSetId: input.RegexPatternSetId }),
|
|
5426
|
+
...(input.Updates != null && { Updates: serializeAws_json1_1RegexPatternSetUpdates(input.Updates, context) }),
|
|
5479
5427
|
};
|
|
5480
5428
|
};
|
|
5481
5429
|
const serializeAws_json1_1UpdateRuleGroupRequest = (input, context) => {
|
|
5482
5430
|
return {
|
|
5483
|
-
...(input.ChangeToken
|
|
5484
|
-
...(input.RuleGroupId
|
|
5485
|
-
...(input.Updates
|
|
5486
|
-
input.Updates !== null && { Updates: serializeAws_json1_1RuleGroupUpdates(input.Updates, context) }),
|
|
5431
|
+
...(input.ChangeToken != null && { ChangeToken: input.ChangeToken }),
|
|
5432
|
+
...(input.RuleGroupId != null && { RuleGroupId: input.RuleGroupId }),
|
|
5433
|
+
...(input.Updates != null && { Updates: serializeAws_json1_1RuleGroupUpdates(input.Updates, context) }),
|
|
5487
5434
|
};
|
|
5488
5435
|
};
|
|
5489
5436
|
const serializeAws_json1_1UpdateRuleRequest = (input, context) => {
|
|
5490
5437
|
return {
|
|
5491
|
-
...(input.ChangeToken
|
|
5492
|
-
...(input.RuleId
|
|
5493
|
-
...(input.Updates
|
|
5494
|
-
input.Updates !== null && { Updates: serializeAws_json1_1RuleUpdates(input.Updates, context) }),
|
|
5438
|
+
...(input.ChangeToken != null && { ChangeToken: input.ChangeToken }),
|
|
5439
|
+
...(input.RuleId != null && { RuleId: input.RuleId }),
|
|
5440
|
+
...(input.Updates != null && { Updates: serializeAws_json1_1RuleUpdates(input.Updates, context) }),
|
|
5495
5441
|
};
|
|
5496
5442
|
};
|
|
5497
5443
|
const serializeAws_json1_1UpdateSizeConstraintSetRequest = (input, context) => {
|
|
5498
5444
|
return {
|
|
5499
|
-
...(input.ChangeToken
|
|
5500
|
-
...(input.SizeConstraintSetId
|
|
5501
|
-
|
|
5502
|
-
...(input.Updates !== undefined &&
|
|
5503
|
-
input.Updates !== null && { Updates: serializeAws_json1_1SizeConstraintSetUpdates(input.Updates, context) }),
|
|
5445
|
+
...(input.ChangeToken != null && { ChangeToken: input.ChangeToken }),
|
|
5446
|
+
...(input.SizeConstraintSetId != null && { SizeConstraintSetId: input.SizeConstraintSetId }),
|
|
5447
|
+
...(input.Updates != null && { Updates: serializeAws_json1_1SizeConstraintSetUpdates(input.Updates, context) }),
|
|
5504
5448
|
};
|
|
5505
5449
|
};
|
|
5506
5450
|
const serializeAws_json1_1UpdateSqlInjectionMatchSetRequest = (input, context) => {
|
|
5507
5451
|
return {
|
|
5508
|
-
...(input.ChangeToken
|
|
5509
|
-
...(input.SqlInjectionMatchSetId
|
|
5510
|
-
|
|
5511
|
-
...(input.Updates !== undefined &&
|
|
5512
|
-
input.Updates !== null && { Updates: serializeAws_json1_1SqlInjectionMatchSetUpdates(input.Updates, context) }),
|
|
5452
|
+
...(input.ChangeToken != null && { ChangeToken: input.ChangeToken }),
|
|
5453
|
+
...(input.SqlInjectionMatchSetId != null && { SqlInjectionMatchSetId: input.SqlInjectionMatchSetId }),
|
|
5454
|
+
...(input.Updates != null && { Updates: serializeAws_json1_1SqlInjectionMatchSetUpdates(input.Updates, context) }),
|
|
5513
5455
|
};
|
|
5514
5456
|
};
|
|
5515
5457
|
const serializeAws_json1_1UpdateWebACLRequest = (input, context) => {
|
|
5516
5458
|
return {
|
|
5517
|
-
...(input.ChangeToken
|
|
5518
|
-
...(input.DefaultAction
|
|
5519
|
-
|
|
5520
|
-
...(input.
|
|
5521
|
-
input.Updates !== null && { Updates: serializeAws_json1_1WebACLUpdates(input.Updates, context) }),
|
|
5522
|
-
...(input.WebACLId !== undefined && input.WebACLId !== null && { WebACLId: input.WebACLId }),
|
|
5459
|
+
...(input.ChangeToken != null && { ChangeToken: input.ChangeToken }),
|
|
5460
|
+
...(input.DefaultAction != null && { DefaultAction: serializeAws_json1_1WafAction(input.DefaultAction, context) }),
|
|
5461
|
+
...(input.Updates != null && { Updates: serializeAws_json1_1WebACLUpdates(input.Updates, context) }),
|
|
5462
|
+
...(input.WebACLId != null && { WebACLId: input.WebACLId }),
|
|
5523
5463
|
};
|
|
5524
5464
|
};
|
|
5525
5465
|
const serializeAws_json1_1UpdateXssMatchSetRequest = (input, context) => {
|
|
5526
5466
|
return {
|
|
5527
|
-
...(input.ChangeToken
|
|
5528
|
-
...(input.Updates
|
|
5529
|
-
|
|
5530
|
-
...(input.XssMatchSetId !== undefined && input.XssMatchSetId !== null && { XssMatchSetId: input.XssMatchSetId }),
|
|
5467
|
+
...(input.ChangeToken != null && { ChangeToken: input.ChangeToken }),
|
|
5468
|
+
...(input.Updates != null && { Updates: serializeAws_json1_1XssMatchSetUpdates(input.Updates, context) }),
|
|
5469
|
+
...(input.XssMatchSetId != null && { XssMatchSetId: input.XssMatchSetId }),
|
|
5531
5470
|
};
|
|
5532
5471
|
};
|
|
5533
5472
|
const serializeAws_json1_1WafAction = (input, context) => {
|
|
5534
5473
|
return {
|
|
5535
|
-
...(input.Type
|
|
5474
|
+
...(input.Type != null && { Type: input.Type }),
|
|
5536
5475
|
};
|
|
5537
5476
|
};
|
|
5538
5477
|
const serializeAws_json1_1WafOverrideAction = (input, context) => {
|
|
5539
5478
|
return {
|
|
5540
|
-
...(input.Type
|
|
5479
|
+
...(input.Type != null && { Type: input.Type }),
|
|
5541
5480
|
};
|
|
5542
5481
|
};
|
|
5543
5482
|
const serializeAws_json1_1WebACLUpdate = (input, context) => {
|
|
5544
5483
|
return {
|
|
5545
|
-
...(input.Action
|
|
5546
|
-
...(input.ActivatedRule
|
|
5547
|
-
input.ActivatedRule !== null && {
|
|
5484
|
+
...(input.Action != null && { Action: input.Action }),
|
|
5485
|
+
...(input.ActivatedRule != null && {
|
|
5548
5486
|
ActivatedRule: serializeAws_json1_1ActivatedRule(input.ActivatedRule, context),
|
|
5549
5487
|
}),
|
|
5550
5488
|
};
|
|
@@ -5561,9 +5499,8 @@ const serializeAws_json1_1WebACLUpdates = (input, context) => {
|
|
|
5561
5499
|
};
|
|
5562
5500
|
const serializeAws_json1_1XssMatchSetUpdate = (input, context) => {
|
|
5563
5501
|
return {
|
|
5564
|
-
...(input.Action
|
|
5565
|
-
...(input.XssMatchTuple
|
|
5566
|
-
input.XssMatchTuple !== null && {
|
|
5502
|
+
...(input.Action != null && { Action: input.Action }),
|
|
5503
|
+
...(input.XssMatchTuple != null && {
|
|
5567
5504
|
XssMatchTuple: serializeAws_json1_1XssMatchTuple(input.XssMatchTuple, context),
|
|
5568
5505
|
}),
|
|
5569
5506
|
};
|
|
@@ -5580,21 +5517,15 @@ const serializeAws_json1_1XssMatchSetUpdates = (input, context) => {
|
|
|
5580
5517
|
};
|
|
5581
5518
|
const serializeAws_json1_1XssMatchTuple = (input, context) => {
|
|
5582
5519
|
return {
|
|
5583
|
-
...(input.FieldToMatch
|
|
5584
|
-
|
|
5585
|
-
...(input.TextTransformation !== undefined &&
|
|
5586
|
-
input.TextTransformation !== null && { TextTransformation: input.TextTransformation }),
|
|
5520
|
+
...(input.FieldToMatch != null && { FieldToMatch: serializeAws_json1_1FieldToMatch(input.FieldToMatch, context) }),
|
|
5521
|
+
...(input.TextTransformation != null && { TextTransformation: input.TextTransformation }),
|
|
5587
5522
|
};
|
|
5588
5523
|
};
|
|
5589
5524
|
const deserializeAws_json1_1ActivatedRule = (output, context) => {
|
|
5590
5525
|
return {
|
|
5591
|
-
Action: output.Action
|
|
5592
|
-
|
|
5593
|
-
|
|
5594
|
-
ExcludedRules: output.ExcludedRules !== undefined && output.ExcludedRules !== null
|
|
5595
|
-
? deserializeAws_json1_1ExcludedRules(output.ExcludedRules, context)
|
|
5596
|
-
: undefined,
|
|
5597
|
-
OverrideAction: output.OverrideAction !== undefined && output.OverrideAction !== null
|
|
5526
|
+
Action: output.Action != null ? deserializeAws_json1_1WafAction(output.Action, context) : undefined,
|
|
5527
|
+
ExcludedRules: output.ExcludedRules != null ? deserializeAws_json1_1ExcludedRules(output.ExcludedRules, context) : undefined,
|
|
5528
|
+
OverrideAction: output.OverrideAction != null
|
|
5598
5529
|
? deserializeAws_json1_1WafOverrideAction(output.OverrideAction, context)
|
|
5599
5530
|
: undefined,
|
|
5600
5531
|
Priority: (0, smithy_client_1.expectInt32)(output.Priority),
|
|
@@ -5616,7 +5547,7 @@ const deserializeAws_json1_1ActivatedRules = (output, context) => {
|
|
|
5616
5547
|
const deserializeAws_json1_1ByteMatchSet = (output, context) => {
|
|
5617
5548
|
return {
|
|
5618
5549
|
ByteMatchSetId: (0, smithy_client_1.expectString)(output.ByteMatchSetId),
|
|
5619
|
-
ByteMatchTuples: output.ByteMatchTuples
|
|
5550
|
+
ByteMatchTuples: output.ByteMatchTuples != null
|
|
5620
5551
|
? deserializeAws_json1_1ByteMatchTuples(output.ByteMatchTuples, context)
|
|
5621
5552
|
: undefined,
|
|
5622
5553
|
Name: (0, smithy_client_1.expectString)(output.Name),
|
|
@@ -5641,13 +5572,9 @@ const deserializeAws_json1_1ByteMatchSetSummary = (output, context) => {
|
|
|
5641
5572
|
};
|
|
5642
5573
|
const deserializeAws_json1_1ByteMatchTuple = (output, context) => {
|
|
5643
5574
|
return {
|
|
5644
|
-
FieldToMatch: output.FieldToMatch
|
|
5645
|
-
? deserializeAws_json1_1FieldToMatch(output.FieldToMatch, context)
|
|
5646
|
-
: undefined,
|
|
5575
|
+
FieldToMatch: output.FieldToMatch != null ? deserializeAws_json1_1FieldToMatch(output.FieldToMatch, context) : undefined,
|
|
5647
5576
|
PositionalConstraint: (0, smithy_client_1.expectString)(output.PositionalConstraint),
|
|
5648
|
-
TargetString: output.TargetString
|
|
5649
|
-
? context.base64Decoder(output.TargetString)
|
|
5650
|
-
: undefined,
|
|
5577
|
+
TargetString: output.TargetString != null ? context.base64Decoder(output.TargetString) : undefined,
|
|
5651
5578
|
TextTransformation: (0, smithy_client_1.expectString)(output.TextTransformation),
|
|
5652
5579
|
};
|
|
5653
5580
|
};
|
|
@@ -5664,48 +5591,38 @@ const deserializeAws_json1_1ByteMatchTuples = (output, context) => {
|
|
|
5664
5591
|
};
|
|
5665
5592
|
const deserializeAws_json1_1CreateByteMatchSetResponse = (output, context) => {
|
|
5666
5593
|
return {
|
|
5667
|
-
ByteMatchSet: output.ByteMatchSet
|
|
5668
|
-
? deserializeAws_json1_1ByteMatchSet(output.ByteMatchSet, context)
|
|
5669
|
-
: undefined,
|
|
5594
|
+
ByteMatchSet: output.ByteMatchSet != null ? deserializeAws_json1_1ByteMatchSet(output.ByteMatchSet, context) : undefined,
|
|
5670
5595
|
ChangeToken: (0, smithy_client_1.expectString)(output.ChangeToken),
|
|
5671
5596
|
};
|
|
5672
5597
|
};
|
|
5673
5598
|
const deserializeAws_json1_1CreateGeoMatchSetResponse = (output, context) => {
|
|
5674
5599
|
return {
|
|
5675
5600
|
ChangeToken: (0, smithy_client_1.expectString)(output.ChangeToken),
|
|
5676
|
-
GeoMatchSet: output.GeoMatchSet
|
|
5677
|
-
? deserializeAws_json1_1GeoMatchSet(output.GeoMatchSet, context)
|
|
5678
|
-
: undefined,
|
|
5601
|
+
GeoMatchSet: output.GeoMatchSet != null ? deserializeAws_json1_1GeoMatchSet(output.GeoMatchSet, context) : undefined,
|
|
5679
5602
|
};
|
|
5680
5603
|
};
|
|
5681
5604
|
const deserializeAws_json1_1CreateIPSetResponse = (output, context) => {
|
|
5682
5605
|
return {
|
|
5683
5606
|
ChangeToken: (0, smithy_client_1.expectString)(output.ChangeToken),
|
|
5684
|
-
IPSet: output.IPSet
|
|
5685
|
-
? deserializeAws_json1_1IPSet(output.IPSet, context)
|
|
5686
|
-
: undefined,
|
|
5607
|
+
IPSet: output.IPSet != null ? deserializeAws_json1_1IPSet(output.IPSet, context) : undefined,
|
|
5687
5608
|
};
|
|
5688
5609
|
};
|
|
5689
5610
|
const deserializeAws_json1_1CreateRateBasedRuleResponse = (output, context) => {
|
|
5690
5611
|
return {
|
|
5691
5612
|
ChangeToken: (0, smithy_client_1.expectString)(output.ChangeToken),
|
|
5692
|
-
Rule: output.Rule
|
|
5693
|
-
? deserializeAws_json1_1RateBasedRule(output.Rule, context)
|
|
5694
|
-
: undefined,
|
|
5613
|
+
Rule: output.Rule != null ? deserializeAws_json1_1RateBasedRule(output.Rule, context) : undefined,
|
|
5695
5614
|
};
|
|
5696
5615
|
};
|
|
5697
5616
|
const deserializeAws_json1_1CreateRegexMatchSetResponse = (output, context) => {
|
|
5698
5617
|
return {
|
|
5699
5618
|
ChangeToken: (0, smithy_client_1.expectString)(output.ChangeToken),
|
|
5700
|
-
RegexMatchSet: output.RegexMatchSet
|
|
5701
|
-
? deserializeAws_json1_1RegexMatchSet(output.RegexMatchSet, context)
|
|
5702
|
-
: undefined,
|
|
5619
|
+
RegexMatchSet: output.RegexMatchSet != null ? deserializeAws_json1_1RegexMatchSet(output.RegexMatchSet, context) : undefined,
|
|
5703
5620
|
};
|
|
5704
5621
|
};
|
|
5705
5622
|
const deserializeAws_json1_1CreateRegexPatternSetResponse = (output, context) => {
|
|
5706
5623
|
return {
|
|
5707
5624
|
ChangeToken: (0, smithy_client_1.expectString)(output.ChangeToken),
|
|
5708
|
-
RegexPatternSet: output.RegexPatternSet
|
|
5625
|
+
RegexPatternSet: output.RegexPatternSet != null
|
|
5709
5626
|
? deserializeAws_json1_1RegexPatternSet(output.RegexPatternSet, context)
|
|
5710
5627
|
: undefined,
|
|
5711
5628
|
};
|
|
@@ -5713,21 +5630,19 @@ const deserializeAws_json1_1CreateRegexPatternSetResponse = (output, context) =>
|
|
|
5713
5630
|
const deserializeAws_json1_1CreateRuleGroupResponse = (output, context) => {
|
|
5714
5631
|
return {
|
|
5715
5632
|
ChangeToken: (0, smithy_client_1.expectString)(output.ChangeToken),
|
|
5716
|
-
RuleGroup: output.RuleGroup
|
|
5717
|
-
? deserializeAws_json1_1RuleGroup(output.RuleGroup, context)
|
|
5718
|
-
: undefined,
|
|
5633
|
+
RuleGroup: output.RuleGroup != null ? deserializeAws_json1_1RuleGroup(output.RuleGroup, context) : undefined,
|
|
5719
5634
|
};
|
|
5720
5635
|
};
|
|
5721
5636
|
const deserializeAws_json1_1CreateRuleResponse = (output, context) => {
|
|
5722
5637
|
return {
|
|
5723
5638
|
ChangeToken: (0, smithy_client_1.expectString)(output.ChangeToken),
|
|
5724
|
-
Rule: output.Rule
|
|
5639
|
+
Rule: output.Rule != null ? deserializeAws_json1_1Rule(output.Rule, context) : undefined,
|
|
5725
5640
|
};
|
|
5726
5641
|
};
|
|
5727
5642
|
const deserializeAws_json1_1CreateSizeConstraintSetResponse = (output, context) => {
|
|
5728
5643
|
return {
|
|
5729
5644
|
ChangeToken: (0, smithy_client_1.expectString)(output.ChangeToken),
|
|
5730
|
-
SizeConstraintSet: output.SizeConstraintSet
|
|
5645
|
+
SizeConstraintSet: output.SizeConstraintSet != null
|
|
5731
5646
|
? deserializeAws_json1_1SizeConstraintSet(output.SizeConstraintSet, context)
|
|
5732
5647
|
: undefined,
|
|
5733
5648
|
};
|
|
@@ -5735,7 +5650,7 @@ const deserializeAws_json1_1CreateSizeConstraintSetResponse = (output, context)
|
|
|
5735
5650
|
const deserializeAws_json1_1CreateSqlInjectionMatchSetResponse = (output, context) => {
|
|
5736
5651
|
return {
|
|
5737
5652
|
ChangeToken: (0, smithy_client_1.expectString)(output.ChangeToken),
|
|
5738
|
-
SqlInjectionMatchSet: output.SqlInjectionMatchSet
|
|
5653
|
+
SqlInjectionMatchSet: output.SqlInjectionMatchSet != null
|
|
5739
5654
|
? deserializeAws_json1_1SqlInjectionMatchSet(output.SqlInjectionMatchSet, context)
|
|
5740
5655
|
: undefined,
|
|
5741
5656
|
};
|
|
@@ -5748,17 +5663,13 @@ const deserializeAws_json1_1CreateWebACLMigrationStackResponse = (output, contex
|
|
|
5748
5663
|
const deserializeAws_json1_1CreateWebACLResponse = (output, context) => {
|
|
5749
5664
|
return {
|
|
5750
5665
|
ChangeToken: (0, smithy_client_1.expectString)(output.ChangeToken),
|
|
5751
|
-
WebACL: output.WebACL
|
|
5752
|
-
? deserializeAws_json1_1WebACL(output.WebACL, context)
|
|
5753
|
-
: undefined,
|
|
5666
|
+
WebACL: output.WebACL != null ? deserializeAws_json1_1WebACL(output.WebACL, context) : undefined,
|
|
5754
5667
|
};
|
|
5755
5668
|
};
|
|
5756
5669
|
const deserializeAws_json1_1CreateXssMatchSetResponse = (output, context) => {
|
|
5757
5670
|
return {
|
|
5758
5671
|
ChangeToken: (0, smithy_client_1.expectString)(output.ChangeToken),
|
|
5759
|
-
XssMatchSet: output.XssMatchSet
|
|
5760
|
-
? deserializeAws_json1_1XssMatchSet(output.XssMatchSet, context)
|
|
5761
|
-
: undefined,
|
|
5672
|
+
XssMatchSet: output.XssMatchSet != null ? deserializeAws_json1_1XssMatchSet(output.XssMatchSet, context) : undefined,
|
|
5762
5673
|
};
|
|
5763
5674
|
};
|
|
5764
5675
|
const deserializeAws_json1_1DeleteByteMatchSetResponse = (output, context) => {
|
|
@@ -5868,7 +5779,7 @@ const deserializeAws_json1_1GeoMatchConstraints = (output, context) => {
|
|
|
5868
5779
|
};
|
|
5869
5780
|
const deserializeAws_json1_1GeoMatchSet = (output, context) => {
|
|
5870
5781
|
return {
|
|
5871
|
-
GeoMatchConstraints: output.GeoMatchConstraints
|
|
5782
|
+
GeoMatchConstraints: output.GeoMatchConstraints != null
|
|
5872
5783
|
? deserializeAws_json1_1GeoMatchConstraints(output.GeoMatchConstraints, context)
|
|
5873
5784
|
: undefined,
|
|
5874
5785
|
GeoMatchSetId: (0, smithy_client_1.expectString)(output.GeoMatchSetId),
|
|
@@ -5894,9 +5805,7 @@ const deserializeAws_json1_1GeoMatchSetSummary = (output, context) => {
|
|
|
5894
5805
|
};
|
|
5895
5806
|
const deserializeAws_json1_1GetByteMatchSetResponse = (output, context) => {
|
|
5896
5807
|
return {
|
|
5897
|
-
ByteMatchSet: output.ByteMatchSet
|
|
5898
|
-
? deserializeAws_json1_1ByteMatchSet(output.ByteMatchSet, context)
|
|
5899
|
-
: undefined,
|
|
5808
|
+
ByteMatchSet: output.ByteMatchSet != null ? deserializeAws_json1_1ByteMatchSet(output.ByteMatchSet, context) : undefined,
|
|
5900
5809
|
};
|
|
5901
5810
|
};
|
|
5902
5811
|
const deserializeAws_json1_1GetChangeTokenResponse = (output, context) => {
|
|
@@ -5911,21 +5820,17 @@ const deserializeAws_json1_1GetChangeTokenStatusResponse = (output, context) =>
|
|
|
5911
5820
|
};
|
|
5912
5821
|
const deserializeAws_json1_1GetGeoMatchSetResponse = (output, context) => {
|
|
5913
5822
|
return {
|
|
5914
|
-
GeoMatchSet: output.GeoMatchSet
|
|
5915
|
-
? deserializeAws_json1_1GeoMatchSet(output.GeoMatchSet, context)
|
|
5916
|
-
: undefined,
|
|
5823
|
+
GeoMatchSet: output.GeoMatchSet != null ? deserializeAws_json1_1GeoMatchSet(output.GeoMatchSet, context) : undefined,
|
|
5917
5824
|
};
|
|
5918
5825
|
};
|
|
5919
5826
|
const deserializeAws_json1_1GetIPSetResponse = (output, context) => {
|
|
5920
5827
|
return {
|
|
5921
|
-
IPSet: output.IPSet
|
|
5922
|
-
? deserializeAws_json1_1IPSet(output.IPSet, context)
|
|
5923
|
-
: undefined,
|
|
5828
|
+
IPSet: output.IPSet != null ? deserializeAws_json1_1IPSet(output.IPSet, context) : undefined,
|
|
5924
5829
|
};
|
|
5925
5830
|
};
|
|
5926
5831
|
const deserializeAws_json1_1GetLoggingConfigurationResponse = (output, context) => {
|
|
5927
5832
|
return {
|
|
5928
|
-
LoggingConfiguration: output.LoggingConfiguration
|
|
5833
|
+
LoggingConfiguration: output.LoggingConfiguration != null
|
|
5929
5834
|
? deserializeAws_json1_1LoggingConfiguration(output.LoggingConfiguration, context)
|
|
5930
5835
|
: undefined,
|
|
5931
5836
|
};
|
|
@@ -5937,82 +5842,68 @@ const deserializeAws_json1_1GetPermissionPolicyResponse = (output, context) => {
|
|
|
5937
5842
|
};
|
|
5938
5843
|
const deserializeAws_json1_1GetRateBasedRuleManagedKeysResponse = (output, context) => {
|
|
5939
5844
|
return {
|
|
5940
|
-
ManagedKeys: output.ManagedKeys
|
|
5941
|
-
? deserializeAws_json1_1ManagedKeys(output.ManagedKeys, context)
|
|
5942
|
-
: undefined,
|
|
5845
|
+
ManagedKeys: output.ManagedKeys != null ? deserializeAws_json1_1ManagedKeys(output.ManagedKeys, context) : undefined,
|
|
5943
5846
|
NextMarker: (0, smithy_client_1.expectString)(output.NextMarker),
|
|
5944
5847
|
};
|
|
5945
5848
|
};
|
|
5946
5849
|
const deserializeAws_json1_1GetRateBasedRuleResponse = (output, context) => {
|
|
5947
5850
|
return {
|
|
5948
|
-
Rule: output.Rule
|
|
5949
|
-
? deserializeAws_json1_1RateBasedRule(output.Rule, context)
|
|
5950
|
-
: undefined,
|
|
5851
|
+
Rule: output.Rule != null ? deserializeAws_json1_1RateBasedRule(output.Rule, context) : undefined,
|
|
5951
5852
|
};
|
|
5952
5853
|
};
|
|
5953
5854
|
const deserializeAws_json1_1GetRegexMatchSetResponse = (output, context) => {
|
|
5954
5855
|
return {
|
|
5955
|
-
RegexMatchSet: output.RegexMatchSet
|
|
5956
|
-
? deserializeAws_json1_1RegexMatchSet(output.RegexMatchSet, context)
|
|
5957
|
-
: undefined,
|
|
5856
|
+
RegexMatchSet: output.RegexMatchSet != null ? deserializeAws_json1_1RegexMatchSet(output.RegexMatchSet, context) : undefined,
|
|
5958
5857
|
};
|
|
5959
5858
|
};
|
|
5960
5859
|
const deserializeAws_json1_1GetRegexPatternSetResponse = (output, context) => {
|
|
5961
5860
|
return {
|
|
5962
|
-
RegexPatternSet: output.RegexPatternSet
|
|
5861
|
+
RegexPatternSet: output.RegexPatternSet != null
|
|
5963
5862
|
? deserializeAws_json1_1RegexPatternSet(output.RegexPatternSet, context)
|
|
5964
5863
|
: undefined,
|
|
5965
5864
|
};
|
|
5966
5865
|
};
|
|
5967
5866
|
const deserializeAws_json1_1GetRuleGroupResponse = (output, context) => {
|
|
5968
5867
|
return {
|
|
5969
|
-
RuleGroup: output.RuleGroup
|
|
5970
|
-
? deserializeAws_json1_1RuleGroup(output.RuleGroup, context)
|
|
5971
|
-
: undefined,
|
|
5868
|
+
RuleGroup: output.RuleGroup != null ? deserializeAws_json1_1RuleGroup(output.RuleGroup, context) : undefined,
|
|
5972
5869
|
};
|
|
5973
5870
|
};
|
|
5974
5871
|
const deserializeAws_json1_1GetRuleResponse = (output, context) => {
|
|
5975
5872
|
return {
|
|
5976
|
-
Rule: output.Rule
|
|
5873
|
+
Rule: output.Rule != null ? deserializeAws_json1_1Rule(output.Rule, context) : undefined,
|
|
5977
5874
|
};
|
|
5978
5875
|
};
|
|
5979
5876
|
const deserializeAws_json1_1GetSampledRequestsResponse = (output, context) => {
|
|
5980
5877
|
return {
|
|
5981
5878
|
PopulationSize: (0, smithy_client_1.expectLong)(output.PopulationSize),
|
|
5982
|
-
SampledRequests: output.SampledRequests
|
|
5879
|
+
SampledRequests: output.SampledRequests != null
|
|
5983
5880
|
? deserializeAws_json1_1SampledHTTPRequests(output.SampledRequests, context)
|
|
5984
5881
|
: undefined,
|
|
5985
|
-
TimeWindow: output.TimeWindow
|
|
5986
|
-
? deserializeAws_json1_1TimeWindow(output.TimeWindow, context)
|
|
5987
|
-
: undefined,
|
|
5882
|
+
TimeWindow: output.TimeWindow != null ? deserializeAws_json1_1TimeWindow(output.TimeWindow, context) : undefined,
|
|
5988
5883
|
};
|
|
5989
5884
|
};
|
|
5990
5885
|
const deserializeAws_json1_1GetSizeConstraintSetResponse = (output, context) => {
|
|
5991
5886
|
return {
|
|
5992
|
-
SizeConstraintSet: output.SizeConstraintSet
|
|
5887
|
+
SizeConstraintSet: output.SizeConstraintSet != null
|
|
5993
5888
|
? deserializeAws_json1_1SizeConstraintSet(output.SizeConstraintSet, context)
|
|
5994
5889
|
: undefined,
|
|
5995
5890
|
};
|
|
5996
5891
|
};
|
|
5997
5892
|
const deserializeAws_json1_1GetSqlInjectionMatchSetResponse = (output, context) => {
|
|
5998
5893
|
return {
|
|
5999
|
-
SqlInjectionMatchSet: output.SqlInjectionMatchSet
|
|
5894
|
+
SqlInjectionMatchSet: output.SqlInjectionMatchSet != null
|
|
6000
5895
|
? deserializeAws_json1_1SqlInjectionMatchSet(output.SqlInjectionMatchSet, context)
|
|
6001
5896
|
: undefined,
|
|
6002
5897
|
};
|
|
6003
5898
|
};
|
|
6004
5899
|
const deserializeAws_json1_1GetWebACLResponse = (output, context) => {
|
|
6005
5900
|
return {
|
|
6006
|
-
WebACL: output.WebACL
|
|
6007
|
-
? deserializeAws_json1_1WebACL(output.WebACL, context)
|
|
6008
|
-
: undefined,
|
|
5901
|
+
WebACL: output.WebACL != null ? deserializeAws_json1_1WebACL(output.WebACL, context) : undefined,
|
|
6009
5902
|
};
|
|
6010
5903
|
};
|
|
6011
5904
|
const deserializeAws_json1_1GetXssMatchSetResponse = (output, context) => {
|
|
6012
5905
|
return {
|
|
6013
|
-
XssMatchSet: output.XssMatchSet
|
|
6014
|
-
? deserializeAws_json1_1XssMatchSet(output.XssMatchSet, context)
|
|
6015
|
-
: undefined,
|
|
5906
|
+
XssMatchSet: output.XssMatchSet != null ? deserializeAws_json1_1XssMatchSet(output.XssMatchSet, context) : undefined,
|
|
6016
5907
|
};
|
|
6017
5908
|
};
|
|
6018
5909
|
const deserializeAws_json1_1HTTPHeader = (output, context) => {
|
|
@@ -6037,16 +5928,14 @@ const deserializeAws_json1_1HTTPRequest = (output, context) => {
|
|
|
6037
5928
|
ClientIP: (0, smithy_client_1.expectString)(output.ClientIP),
|
|
6038
5929
|
Country: (0, smithy_client_1.expectString)(output.Country),
|
|
6039
5930
|
HTTPVersion: (0, smithy_client_1.expectString)(output.HTTPVersion),
|
|
6040
|
-
Headers: output.Headers
|
|
6041
|
-
? deserializeAws_json1_1HTTPHeaders(output.Headers, context)
|
|
6042
|
-
: undefined,
|
|
5931
|
+
Headers: output.Headers != null ? deserializeAws_json1_1HTTPHeaders(output.Headers, context) : undefined,
|
|
6043
5932
|
Method: (0, smithy_client_1.expectString)(output.Method),
|
|
6044
5933
|
URI: (0, smithy_client_1.expectString)(output.URI),
|
|
6045
5934
|
};
|
|
6046
5935
|
};
|
|
6047
5936
|
const deserializeAws_json1_1IPSet = (output, context) => {
|
|
6048
5937
|
return {
|
|
6049
|
-
IPSetDescriptors: output.IPSetDescriptors
|
|
5938
|
+
IPSetDescriptors: output.IPSetDescriptors != null
|
|
6050
5939
|
? deserializeAws_json1_1IPSetDescriptors(output.IPSetDescriptors, context)
|
|
6051
5940
|
: undefined,
|
|
6052
5941
|
IPSetId: (0, smithy_client_1.expectString)(output.IPSetId),
|
|
@@ -6089,15 +5978,13 @@ const deserializeAws_json1_1IPSetSummary = (output, context) => {
|
|
|
6089
5978
|
};
|
|
6090
5979
|
const deserializeAws_json1_1ListActivatedRulesInRuleGroupResponse = (output, context) => {
|
|
6091
5980
|
return {
|
|
6092
|
-
ActivatedRules: output.ActivatedRules
|
|
6093
|
-
? deserializeAws_json1_1ActivatedRules(output.ActivatedRules, context)
|
|
6094
|
-
: undefined,
|
|
5981
|
+
ActivatedRules: output.ActivatedRules != null ? deserializeAws_json1_1ActivatedRules(output.ActivatedRules, context) : undefined,
|
|
6095
5982
|
NextMarker: (0, smithy_client_1.expectString)(output.NextMarker),
|
|
6096
5983
|
};
|
|
6097
5984
|
};
|
|
6098
5985
|
const deserializeAws_json1_1ListByteMatchSetsResponse = (output, context) => {
|
|
6099
5986
|
return {
|
|
6100
|
-
ByteMatchSets: output.ByteMatchSets
|
|
5987
|
+
ByteMatchSets: output.ByteMatchSets != null
|
|
6101
5988
|
? deserializeAws_json1_1ByteMatchSetSummaries(output.ByteMatchSets, context)
|
|
6102
5989
|
: undefined,
|
|
6103
5990
|
NextMarker: (0, smithy_client_1.expectString)(output.NextMarker),
|
|
@@ -6105,7 +5992,7 @@ const deserializeAws_json1_1ListByteMatchSetsResponse = (output, context) => {
|
|
|
6105
5992
|
};
|
|
6106
5993
|
const deserializeAws_json1_1ListGeoMatchSetsResponse = (output, context) => {
|
|
6107
5994
|
return {
|
|
6108
|
-
GeoMatchSets: output.GeoMatchSets
|
|
5995
|
+
GeoMatchSets: output.GeoMatchSets != null
|
|
6109
5996
|
? deserializeAws_json1_1GeoMatchSetSummaries(output.GeoMatchSets, context)
|
|
6110
5997
|
: undefined,
|
|
6111
5998
|
NextMarker: (0, smithy_client_1.expectString)(output.NextMarker),
|
|
@@ -6113,15 +6000,13 @@ const deserializeAws_json1_1ListGeoMatchSetsResponse = (output, context) => {
|
|
|
6113
6000
|
};
|
|
6114
6001
|
const deserializeAws_json1_1ListIPSetsResponse = (output, context) => {
|
|
6115
6002
|
return {
|
|
6116
|
-
IPSets: output.IPSets
|
|
6117
|
-
? deserializeAws_json1_1IPSetSummaries(output.IPSets, context)
|
|
6118
|
-
: undefined,
|
|
6003
|
+
IPSets: output.IPSets != null ? deserializeAws_json1_1IPSetSummaries(output.IPSets, context) : undefined,
|
|
6119
6004
|
NextMarker: (0, smithy_client_1.expectString)(output.NextMarker),
|
|
6120
6005
|
};
|
|
6121
6006
|
};
|
|
6122
6007
|
const deserializeAws_json1_1ListLoggingConfigurationsResponse = (output, context) => {
|
|
6123
6008
|
return {
|
|
6124
|
-
LoggingConfigurations: output.LoggingConfigurations
|
|
6009
|
+
LoggingConfigurations: output.LoggingConfigurations != null
|
|
6125
6010
|
? deserializeAws_json1_1LoggingConfigurations(output.LoggingConfigurations, context)
|
|
6126
6011
|
: undefined,
|
|
6127
6012
|
NextMarker: (0, smithy_client_1.expectString)(output.NextMarker),
|
|
@@ -6130,15 +6015,13 @@ const deserializeAws_json1_1ListLoggingConfigurationsResponse = (output, context
|
|
|
6130
6015
|
const deserializeAws_json1_1ListRateBasedRulesResponse = (output, context) => {
|
|
6131
6016
|
return {
|
|
6132
6017
|
NextMarker: (0, smithy_client_1.expectString)(output.NextMarker),
|
|
6133
|
-
Rules: output.Rules
|
|
6134
|
-
? deserializeAws_json1_1RuleSummaries(output.Rules, context)
|
|
6135
|
-
: undefined,
|
|
6018
|
+
Rules: output.Rules != null ? deserializeAws_json1_1RuleSummaries(output.Rules, context) : undefined,
|
|
6136
6019
|
};
|
|
6137
6020
|
};
|
|
6138
6021
|
const deserializeAws_json1_1ListRegexMatchSetsResponse = (output, context) => {
|
|
6139
6022
|
return {
|
|
6140
6023
|
NextMarker: (0, smithy_client_1.expectString)(output.NextMarker),
|
|
6141
|
-
RegexMatchSets: output.RegexMatchSets
|
|
6024
|
+
RegexMatchSets: output.RegexMatchSets != null
|
|
6142
6025
|
? deserializeAws_json1_1RegexMatchSetSummaries(output.RegexMatchSets, context)
|
|
6143
6026
|
: undefined,
|
|
6144
6027
|
};
|
|
@@ -6146,7 +6029,7 @@ const deserializeAws_json1_1ListRegexMatchSetsResponse = (output, context) => {
|
|
|
6146
6029
|
const deserializeAws_json1_1ListRegexPatternSetsResponse = (output, context) => {
|
|
6147
6030
|
return {
|
|
6148
6031
|
NextMarker: (0, smithy_client_1.expectString)(output.NextMarker),
|
|
6149
|
-
RegexPatternSets: output.RegexPatternSets
|
|
6032
|
+
RegexPatternSets: output.RegexPatternSets != null
|
|
6150
6033
|
? deserializeAws_json1_1RegexPatternSetSummaries(output.RegexPatternSets, context)
|
|
6151
6034
|
: undefined,
|
|
6152
6035
|
};
|
|
@@ -6154,23 +6037,19 @@ const deserializeAws_json1_1ListRegexPatternSetsResponse = (output, context) =>
|
|
|
6154
6037
|
const deserializeAws_json1_1ListRuleGroupsResponse = (output, context) => {
|
|
6155
6038
|
return {
|
|
6156
6039
|
NextMarker: (0, smithy_client_1.expectString)(output.NextMarker),
|
|
6157
|
-
RuleGroups: output.RuleGroups
|
|
6158
|
-
? deserializeAws_json1_1RuleGroupSummaries(output.RuleGroups, context)
|
|
6159
|
-
: undefined,
|
|
6040
|
+
RuleGroups: output.RuleGroups != null ? deserializeAws_json1_1RuleGroupSummaries(output.RuleGroups, context) : undefined,
|
|
6160
6041
|
};
|
|
6161
6042
|
};
|
|
6162
6043
|
const deserializeAws_json1_1ListRulesResponse = (output, context) => {
|
|
6163
6044
|
return {
|
|
6164
6045
|
NextMarker: (0, smithy_client_1.expectString)(output.NextMarker),
|
|
6165
|
-
Rules: output.Rules
|
|
6166
|
-
? deserializeAws_json1_1RuleSummaries(output.Rules, context)
|
|
6167
|
-
: undefined,
|
|
6046
|
+
Rules: output.Rules != null ? deserializeAws_json1_1RuleSummaries(output.Rules, context) : undefined,
|
|
6168
6047
|
};
|
|
6169
6048
|
};
|
|
6170
6049
|
const deserializeAws_json1_1ListSizeConstraintSetsResponse = (output, context) => {
|
|
6171
6050
|
return {
|
|
6172
6051
|
NextMarker: (0, smithy_client_1.expectString)(output.NextMarker),
|
|
6173
|
-
SizeConstraintSets: output.SizeConstraintSets
|
|
6052
|
+
SizeConstraintSets: output.SizeConstraintSets != null
|
|
6174
6053
|
? deserializeAws_json1_1SizeConstraintSetSummaries(output.SizeConstraintSets, context)
|
|
6175
6054
|
: undefined,
|
|
6176
6055
|
};
|
|
@@ -6178,7 +6057,7 @@ const deserializeAws_json1_1ListSizeConstraintSetsResponse = (output, context) =
|
|
|
6178
6057
|
const deserializeAws_json1_1ListSqlInjectionMatchSetsResponse = (output, context) => {
|
|
6179
6058
|
return {
|
|
6180
6059
|
NextMarker: (0, smithy_client_1.expectString)(output.NextMarker),
|
|
6181
|
-
SqlInjectionMatchSets: output.SqlInjectionMatchSets
|
|
6060
|
+
SqlInjectionMatchSets: output.SqlInjectionMatchSets != null
|
|
6182
6061
|
? deserializeAws_json1_1SqlInjectionMatchSetSummaries(output.SqlInjectionMatchSets, context)
|
|
6183
6062
|
: undefined,
|
|
6184
6063
|
};
|
|
@@ -6186,7 +6065,7 @@ const deserializeAws_json1_1ListSqlInjectionMatchSetsResponse = (output, context
|
|
|
6186
6065
|
const deserializeAws_json1_1ListSubscribedRuleGroupsResponse = (output, context) => {
|
|
6187
6066
|
return {
|
|
6188
6067
|
NextMarker: (0, smithy_client_1.expectString)(output.NextMarker),
|
|
6189
|
-
RuleGroups: output.RuleGroups
|
|
6068
|
+
RuleGroups: output.RuleGroups != null
|
|
6190
6069
|
? deserializeAws_json1_1SubscribedRuleGroupSummaries(output.RuleGroups, context)
|
|
6191
6070
|
: undefined,
|
|
6192
6071
|
};
|
|
@@ -6194,7 +6073,7 @@ const deserializeAws_json1_1ListSubscribedRuleGroupsResponse = (output, context)
|
|
|
6194
6073
|
const deserializeAws_json1_1ListTagsForResourceResponse = (output, context) => {
|
|
6195
6074
|
return {
|
|
6196
6075
|
NextMarker: (0, smithy_client_1.expectString)(output.NextMarker),
|
|
6197
|
-
TagInfoForResource: output.TagInfoForResource
|
|
6076
|
+
TagInfoForResource: output.TagInfoForResource != null
|
|
6198
6077
|
? deserializeAws_json1_1TagInfoForResource(output.TagInfoForResource, context)
|
|
6199
6078
|
: undefined,
|
|
6200
6079
|
};
|
|
@@ -6202,15 +6081,13 @@ const deserializeAws_json1_1ListTagsForResourceResponse = (output, context) => {
|
|
|
6202
6081
|
const deserializeAws_json1_1ListWebACLsResponse = (output, context) => {
|
|
6203
6082
|
return {
|
|
6204
6083
|
NextMarker: (0, smithy_client_1.expectString)(output.NextMarker),
|
|
6205
|
-
WebACLs: output.WebACLs
|
|
6206
|
-
? deserializeAws_json1_1WebACLSummaries(output.WebACLs, context)
|
|
6207
|
-
: undefined,
|
|
6084
|
+
WebACLs: output.WebACLs != null ? deserializeAws_json1_1WebACLSummaries(output.WebACLs, context) : undefined,
|
|
6208
6085
|
};
|
|
6209
6086
|
};
|
|
6210
6087
|
const deserializeAws_json1_1ListXssMatchSetsResponse = (output, context) => {
|
|
6211
6088
|
return {
|
|
6212
6089
|
NextMarker: (0, smithy_client_1.expectString)(output.NextMarker),
|
|
6213
|
-
XssMatchSets: output.XssMatchSets
|
|
6090
|
+
XssMatchSets: output.XssMatchSets != null
|
|
6214
6091
|
? deserializeAws_json1_1XssMatchSetSummaries(output.XssMatchSets, context)
|
|
6215
6092
|
: undefined,
|
|
6216
6093
|
};
|
|
@@ -6228,12 +6105,10 @@ const deserializeAws_json1_1LogDestinationConfigs = (output, context) => {
|
|
|
6228
6105
|
};
|
|
6229
6106
|
const deserializeAws_json1_1LoggingConfiguration = (output, context) => {
|
|
6230
6107
|
return {
|
|
6231
|
-
LogDestinationConfigs: output.LogDestinationConfigs
|
|
6108
|
+
LogDestinationConfigs: output.LogDestinationConfigs != null
|
|
6232
6109
|
? deserializeAws_json1_1LogDestinationConfigs(output.LogDestinationConfigs, context)
|
|
6233
6110
|
: undefined,
|
|
6234
|
-
RedactedFields: output.RedactedFields
|
|
6235
|
-
? deserializeAws_json1_1RedactedFields(output.RedactedFields, context)
|
|
6236
|
-
: undefined,
|
|
6111
|
+
RedactedFields: output.RedactedFields != null ? deserializeAws_json1_1RedactedFields(output.RedactedFields, context) : undefined,
|
|
6237
6112
|
ResourceArn: (0, smithy_client_1.expectString)(output.ResourceArn),
|
|
6238
6113
|
};
|
|
6239
6114
|
};
|
|
@@ -6279,7 +6154,7 @@ const deserializeAws_json1_1Predicates = (output, context) => {
|
|
|
6279
6154
|
};
|
|
6280
6155
|
const deserializeAws_json1_1PutLoggingConfigurationResponse = (output, context) => {
|
|
6281
6156
|
return {
|
|
6282
|
-
LoggingConfiguration: output.LoggingConfiguration
|
|
6157
|
+
LoggingConfiguration: output.LoggingConfiguration != null
|
|
6283
6158
|
? deserializeAws_json1_1LoggingConfiguration(output.LoggingConfiguration, context)
|
|
6284
6159
|
: undefined,
|
|
6285
6160
|
};
|
|
@@ -6289,9 +6164,7 @@ const deserializeAws_json1_1PutPermissionPolicyResponse = (output, context) => {
|
|
|
6289
6164
|
};
|
|
6290
6165
|
const deserializeAws_json1_1RateBasedRule = (output, context) => {
|
|
6291
6166
|
return {
|
|
6292
|
-
MatchPredicates: output.MatchPredicates
|
|
6293
|
-
? deserializeAws_json1_1Predicates(output.MatchPredicates, context)
|
|
6294
|
-
: undefined,
|
|
6167
|
+
MatchPredicates: output.MatchPredicates != null ? deserializeAws_json1_1Predicates(output.MatchPredicates, context) : undefined,
|
|
6295
6168
|
MetricName: (0, smithy_client_1.expectString)(output.MetricName),
|
|
6296
6169
|
Name: (0, smithy_client_1.expectString)(output.Name),
|
|
6297
6170
|
RateKey: (0, smithy_client_1.expectString)(output.RateKey),
|
|
@@ -6314,7 +6187,7 @@ const deserializeAws_json1_1RegexMatchSet = (output, context) => {
|
|
|
6314
6187
|
return {
|
|
6315
6188
|
Name: (0, smithy_client_1.expectString)(output.Name),
|
|
6316
6189
|
RegexMatchSetId: (0, smithy_client_1.expectString)(output.RegexMatchSetId),
|
|
6317
|
-
RegexMatchTuples: output.RegexMatchTuples
|
|
6190
|
+
RegexMatchTuples: output.RegexMatchTuples != null
|
|
6318
6191
|
? deserializeAws_json1_1RegexMatchTuples(output.RegexMatchTuples, context)
|
|
6319
6192
|
: undefined,
|
|
6320
6193
|
};
|
|
@@ -6338,9 +6211,7 @@ const deserializeAws_json1_1RegexMatchSetSummary = (output, context) => {
|
|
|
6338
6211
|
};
|
|
6339
6212
|
const deserializeAws_json1_1RegexMatchTuple = (output, context) => {
|
|
6340
6213
|
return {
|
|
6341
|
-
FieldToMatch: output.FieldToMatch
|
|
6342
|
-
? deserializeAws_json1_1FieldToMatch(output.FieldToMatch, context)
|
|
6343
|
-
: undefined,
|
|
6214
|
+
FieldToMatch: output.FieldToMatch != null ? deserializeAws_json1_1FieldToMatch(output.FieldToMatch, context) : undefined,
|
|
6344
6215
|
RegexPatternSetId: (0, smithy_client_1.expectString)(output.RegexPatternSetId),
|
|
6345
6216
|
TextTransformation: (0, smithy_client_1.expectString)(output.TextTransformation),
|
|
6346
6217
|
};
|
|
@@ -6360,7 +6231,7 @@ const deserializeAws_json1_1RegexPatternSet = (output, context) => {
|
|
|
6360
6231
|
return {
|
|
6361
6232
|
Name: (0, smithy_client_1.expectString)(output.Name),
|
|
6362
6233
|
RegexPatternSetId: (0, smithy_client_1.expectString)(output.RegexPatternSetId),
|
|
6363
|
-
RegexPatternStrings: output.RegexPatternStrings
|
|
6234
|
+
RegexPatternStrings: output.RegexPatternStrings != null
|
|
6364
6235
|
? deserializeAws_json1_1RegexPatternStrings(output.RegexPatternStrings, context)
|
|
6365
6236
|
: undefined,
|
|
6366
6237
|
};
|
|
@@ -6397,9 +6268,7 @@ const deserializeAws_json1_1Rule = (output, context) => {
|
|
|
6397
6268
|
return {
|
|
6398
6269
|
MetricName: (0, smithy_client_1.expectString)(output.MetricName),
|
|
6399
6270
|
Name: (0, smithy_client_1.expectString)(output.Name),
|
|
6400
|
-
Predicates: output.Predicates
|
|
6401
|
-
? deserializeAws_json1_1Predicates(output.Predicates, context)
|
|
6402
|
-
: undefined,
|
|
6271
|
+
Predicates: output.Predicates != null ? deserializeAws_json1_1Predicates(output.Predicates, context) : undefined,
|
|
6403
6272
|
RuleId: (0, smithy_client_1.expectString)(output.RuleId),
|
|
6404
6273
|
};
|
|
6405
6274
|
};
|
|
@@ -6447,13 +6316,9 @@ const deserializeAws_json1_1RuleSummary = (output, context) => {
|
|
|
6447
6316
|
const deserializeAws_json1_1SampledHTTPRequest = (output, context) => {
|
|
6448
6317
|
return {
|
|
6449
6318
|
Action: (0, smithy_client_1.expectString)(output.Action),
|
|
6450
|
-
Request: output.Request
|
|
6451
|
-
? deserializeAws_json1_1HTTPRequest(output.Request, context)
|
|
6452
|
-
: undefined,
|
|
6319
|
+
Request: output.Request != null ? deserializeAws_json1_1HTTPRequest(output.Request, context) : undefined,
|
|
6453
6320
|
RuleWithinRuleGroup: (0, smithy_client_1.expectString)(output.RuleWithinRuleGroup),
|
|
6454
|
-
Timestamp: output.Timestamp
|
|
6455
|
-
? (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(output.Timestamp)))
|
|
6456
|
-
: undefined,
|
|
6321
|
+
Timestamp: output.Timestamp != null ? (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(output.Timestamp))) : undefined,
|
|
6457
6322
|
Weight: (0, smithy_client_1.expectLong)(output.Weight),
|
|
6458
6323
|
};
|
|
6459
6324
|
};
|
|
@@ -6471,9 +6336,7 @@ const deserializeAws_json1_1SampledHTTPRequests = (output, context) => {
|
|
|
6471
6336
|
const deserializeAws_json1_1SizeConstraint = (output, context) => {
|
|
6472
6337
|
return {
|
|
6473
6338
|
ComparisonOperator: (0, smithy_client_1.expectString)(output.ComparisonOperator),
|
|
6474
|
-
FieldToMatch: output.FieldToMatch
|
|
6475
|
-
? deserializeAws_json1_1FieldToMatch(output.FieldToMatch, context)
|
|
6476
|
-
: undefined,
|
|
6339
|
+
FieldToMatch: output.FieldToMatch != null ? deserializeAws_json1_1FieldToMatch(output.FieldToMatch, context) : undefined,
|
|
6477
6340
|
Size: (0, smithy_client_1.expectLong)(output.Size),
|
|
6478
6341
|
TextTransformation: (0, smithy_client_1.expectString)(output.TextTransformation),
|
|
6479
6342
|
};
|
|
@@ -6493,7 +6356,7 @@ const deserializeAws_json1_1SizeConstraintSet = (output, context) => {
|
|
|
6493
6356
|
return {
|
|
6494
6357
|
Name: (0, smithy_client_1.expectString)(output.Name),
|
|
6495
6358
|
SizeConstraintSetId: (0, smithy_client_1.expectString)(output.SizeConstraintSetId),
|
|
6496
|
-
SizeConstraints: output.SizeConstraints
|
|
6359
|
+
SizeConstraints: output.SizeConstraints != null
|
|
6497
6360
|
? deserializeAws_json1_1SizeConstraints(output.SizeConstraints, context)
|
|
6498
6361
|
: undefined,
|
|
6499
6362
|
};
|
|
@@ -6519,7 +6382,7 @@ const deserializeAws_json1_1SqlInjectionMatchSet = (output, context) => {
|
|
|
6519
6382
|
return {
|
|
6520
6383
|
Name: (0, smithy_client_1.expectString)(output.Name),
|
|
6521
6384
|
SqlInjectionMatchSetId: (0, smithy_client_1.expectString)(output.SqlInjectionMatchSetId),
|
|
6522
|
-
SqlInjectionMatchTuples: output.SqlInjectionMatchTuples
|
|
6385
|
+
SqlInjectionMatchTuples: output.SqlInjectionMatchTuples != null
|
|
6523
6386
|
? deserializeAws_json1_1SqlInjectionMatchTuples(output.SqlInjectionMatchTuples, context)
|
|
6524
6387
|
: undefined,
|
|
6525
6388
|
};
|
|
@@ -6543,9 +6406,7 @@ const deserializeAws_json1_1SqlInjectionMatchSetSummary = (output, context) => {
|
|
|
6543
6406
|
};
|
|
6544
6407
|
const deserializeAws_json1_1SqlInjectionMatchTuple = (output, context) => {
|
|
6545
6408
|
return {
|
|
6546
|
-
FieldToMatch: output.FieldToMatch
|
|
6547
|
-
? deserializeAws_json1_1FieldToMatch(output.FieldToMatch, context)
|
|
6548
|
-
: undefined,
|
|
6409
|
+
FieldToMatch: output.FieldToMatch != null ? deserializeAws_json1_1FieldToMatch(output.FieldToMatch, context) : undefined,
|
|
6549
6410
|
TextTransformation: (0, smithy_client_1.expectString)(output.TextTransformation),
|
|
6550
6411
|
};
|
|
6551
6412
|
};
|
|
@@ -6587,9 +6448,7 @@ const deserializeAws_json1_1Tag = (output, context) => {
|
|
|
6587
6448
|
const deserializeAws_json1_1TagInfoForResource = (output, context) => {
|
|
6588
6449
|
return {
|
|
6589
6450
|
ResourceARN: (0, smithy_client_1.expectString)(output.ResourceARN),
|
|
6590
|
-
TagList: output.TagList
|
|
6591
|
-
? deserializeAws_json1_1TagList(output.TagList, context)
|
|
6592
|
-
: undefined,
|
|
6451
|
+
TagList: output.TagList != null ? deserializeAws_json1_1TagList(output.TagList, context) : undefined,
|
|
6593
6452
|
};
|
|
6594
6453
|
};
|
|
6595
6454
|
const deserializeAws_json1_1TagList = (output, context) => {
|
|
@@ -6608,12 +6467,8 @@ const deserializeAws_json1_1TagResourceResponse = (output, context) => {
|
|
|
6608
6467
|
};
|
|
6609
6468
|
const deserializeAws_json1_1TimeWindow = (output, context) => {
|
|
6610
6469
|
return {
|
|
6611
|
-
EndTime: output.EndTime
|
|
6612
|
-
|
|
6613
|
-
: undefined,
|
|
6614
|
-
StartTime: output.StartTime !== undefined && output.StartTime !== null
|
|
6615
|
-
? (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(output.StartTime)))
|
|
6616
|
-
: undefined,
|
|
6470
|
+
EndTime: output.EndTime != null ? (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(output.EndTime))) : undefined,
|
|
6471
|
+
StartTime: output.StartTime != null ? (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(output.StartTime))) : undefined,
|
|
6617
6472
|
};
|
|
6618
6473
|
};
|
|
6619
6474
|
const deserializeAws_json1_1UntagResourceResponse = (output, context) => {
|
|
@@ -6788,14 +6643,10 @@ const deserializeAws_json1_1WAFTagOperationInternalErrorException = (output, con
|
|
|
6788
6643
|
};
|
|
6789
6644
|
const deserializeAws_json1_1WebACL = (output, context) => {
|
|
6790
6645
|
return {
|
|
6791
|
-
DefaultAction: output.DefaultAction
|
|
6792
|
-
? deserializeAws_json1_1WafAction(output.DefaultAction, context)
|
|
6793
|
-
: undefined,
|
|
6646
|
+
DefaultAction: output.DefaultAction != null ? deserializeAws_json1_1WafAction(output.DefaultAction, context) : undefined,
|
|
6794
6647
|
MetricName: (0, smithy_client_1.expectString)(output.MetricName),
|
|
6795
6648
|
Name: (0, smithy_client_1.expectString)(output.Name),
|
|
6796
|
-
Rules: output.Rules
|
|
6797
|
-
? deserializeAws_json1_1ActivatedRules(output.Rules, context)
|
|
6798
|
-
: undefined,
|
|
6649
|
+
Rules: output.Rules != null ? deserializeAws_json1_1ActivatedRules(output.Rules, context) : undefined,
|
|
6799
6650
|
WebACLArn: (0, smithy_client_1.expectString)(output.WebACLArn),
|
|
6800
6651
|
WebACLId: (0, smithy_client_1.expectString)(output.WebACLId),
|
|
6801
6652
|
};
|
|
@@ -6821,9 +6672,7 @@ const deserializeAws_json1_1XssMatchSet = (output, context) => {
|
|
|
6821
6672
|
return {
|
|
6822
6673
|
Name: (0, smithy_client_1.expectString)(output.Name),
|
|
6823
6674
|
XssMatchSetId: (0, smithy_client_1.expectString)(output.XssMatchSetId),
|
|
6824
|
-
XssMatchTuples: output.XssMatchTuples
|
|
6825
|
-
? deserializeAws_json1_1XssMatchTuples(output.XssMatchTuples, context)
|
|
6826
|
-
: undefined,
|
|
6675
|
+
XssMatchTuples: output.XssMatchTuples != null ? deserializeAws_json1_1XssMatchTuples(output.XssMatchTuples, context) : undefined,
|
|
6827
6676
|
};
|
|
6828
6677
|
};
|
|
6829
6678
|
const deserializeAws_json1_1XssMatchSetSummaries = (output, context) => {
|
|
@@ -6845,9 +6694,7 @@ const deserializeAws_json1_1XssMatchSetSummary = (output, context) => {
|
|
|
6845
6694
|
};
|
|
6846
6695
|
const deserializeAws_json1_1XssMatchTuple = (output, context) => {
|
|
6847
6696
|
return {
|
|
6848
|
-
FieldToMatch: output.FieldToMatch
|
|
6849
|
-
? deserializeAws_json1_1FieldToMatch(output.FieldToMatch, context)
|
|
6850
|
-
: undefined,
|
|
6697
|
+
FieldToMatch: output.FieldToMatch != null ? deserializeAws_json1_1FieldToMatch(output.FieldToMatch, context) : undefined,
|
|
6851
6698
|
TextTransformation: (0, smithy_client_1.expectString)(output.TextTransformation),
|
|
6852
6699
|
};
|
|
6853
6700
|
};
|
|
@@ -6906,6 +6753,9 @@ const loadRestJsonErrorCode = (output, data) => {
|
|
|
6906
6753
|
const findKey = (object, key) => Object.keys(object).find((k) => k.toLowerCase() === key.toLowerCase());
|
|
6907
6754
|
const sanitizeErrorCode = (rawValue) => {
|
|
6908
6755
|
let cleanValue = rawValue;
|
|
6756
|
+
if (typeof cleanValue === "number") {
|
|
6757
|
+
cleanValue = cleanValue.toString();
|
|
6758
|
+
}
|
|
6909
6759
|
if (cleanValue.indexOf(":") >= 0) {
|
|
6910
6760
|
cleanValue = cleanValue.split(":")[0];
|
|
6911
6761
|
}
|