Skip to content

Commit 5f85002

Browse files
author
awstools
committed
feat(client-wafv2): AWS WAF adds support for ASN-based traffic filtering and support for ASN-based rate limiting.
1 parent 8d8b922 commit 5f85002

File tree

11 files changed

+320
-60
lines changed

11 files changed

+320
-60
lines changed

clients/client-wafv2/src/commands/CheckCapacityCommand.ts

Lines changed: 17 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -608,6 +608,7 @@ export interface CheckCapacityCommandOutput extends CheckCapacityResponse, __Met
608608
* JA4Fingerprint: { // RateLimitJA4Fingerprint
609609
* FallbackBehavior: "MATCH" || "NO_MATCH", // required
610610
* },
611+
* ASN: {},
611612
* },
612613
* ],
613614
* },
@@ -798,6 +799,15 @@ export interface CheckCapacityCommandOutput extends CheckCapacityResponse, __Met
798799
* FieldToMatch: "<FieldToMatch>", // required
799800
* TextTransformations: "<TextTransformations>", // required
800801
* },
802+
* AsnMatchStatement: { // AsnMatchStatement
803+
* AsnList: [ // AsnList // required
804+
* Number("long"),
805+
* ],
806+
* ForwardedIPConfig: {
807+
* HeaderName: "STRING_VALUE", // required
808+
* FallbackBehavior: "MATCH" || "NO_MATCH", // required
809+
* },
810+
* },
801811
* },
802812
* ForwardedIPConfig: {
803813
* HeaderName: "STRING_VALUE", // required
@@ -835,6 +845,7 @@ export interface CheckCapacityCommandOutput extends CheckCapacityResponse, __Met
835845
* JA4Fingerprint: {
836846
* FallbackBehavior: "MATCH" || "NO_MATCH", // required
837847
* },
848+
* ASN: {},
838849
* },
839850
* ],
840851
* },
@@ -1013,6 +1024,12 @@ export interface CheckCapacityCommandOutput extends CheckCapacityResponse, __Met
10131024
* FieldToMatch: "<FieldToMatch>", // required
10141025
* TextTransformations: "<TextTransformations>", // required
10151026
* },
1027+
* AsnMatchStatement: {
1028+
* AsnList: [ // required
1029+
* Number("long"),
1030+
* ],
1031+
* ForwardedIPConfig: "<ForwardedIPConfig>",
1032+
* },
10161033
* },
10171034
* Action: "<RuleAction>",
10181035
* OverrideAction: { // OverrideAction

clients/client-wafv2/src/commands/CreateRuleGroupCommand.ts

Lines changed: 17 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -601,6 +601,7 @@ export interface CreateRuleGroupCommandOutput extends CreateRuleGroupResponse, _
601601
* JA4Fingerprint: { // RateLimitJA4Fingerprint
602602
* FallbackBehavior: "MATCH" || "NO_MATCH", // required
603603
* },
604+
* ASN: {},
604605
* },
605606
* ],
606607
* },
@@ -791,6 +792,15 @@ export interface CreateRuleGroupCommandOutput extends CreateRuleGroupResponse, _
791792
* FieldToMatch: "<FieldToMatch>", // required
792793
* TextTransformations: "<TextTransformations>", // required
793794
* },
795+
* AsnMatchStatement: { // AsnMatchStatement
796+
* AsnList: [ // AsnList // required
797+
* Number("long"),
798+
* ],
799+
* ForwardedIPConfig: {
800+
* HeaderName: "STRING_VALUE", // required
801+
* FallbackBehavior: "MATCH" || "NO_MATCH", // required
802+
* },
803+
* },
794804
* },
795805
* ForwardedIPConfig: {
796806
* HeaderName: "STRING_VALUE", // required
@@ -828,6 +838,7 @@ export interface CreateRuleGroupCommandOutput extends CreateRuleGroupResponse, _
828838
* JA4Fingerprint: {
829839
* FallbackBehavior: "MATCH" || "NO_MATCH", // required
830840
* },
841+
* ASN: {},
831842
* },
832843
* ],
833844
* },
@@ -1006,6 +1017,12 @@ export interface CreateRuleGroupCommandOutput extends CreateRuleGroupResponse, _
10061017
* FieldToMatch: "<FieldToMatch>", // required
10071018
* TextTransformations: "<TextTransformations>", // required
10081019
* },
1020+
* AsnMatchStatement: {
1021+
* AsnList: [ // required
1022+
* Number("long"),
1023+
* ],
1024+
* ForwardedIPConfig: "<ForwardedIPConfig>",
1025+
* },
10091026
* },
10101027
* Action: "<RuleAction>",
10111028
* OverrideAction: { // OverrideAction

clients/client-wafv2/src/commands/CreateWebACLCommand.ts

Lines changed: 17 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -604,6 +604,7 @@ export interface CreateWebACLCommandOutput extends CreateWebACLResponse, __Metad
604604
* JA4Fingerprint: { // RateLimitJA4Fingerprint
605605
* FallbackBehavior: "MATCH" || "NO_MATCH", // required
606606
* },
607+
* ASN: {},
607608
* },
608609
* ],
609610
* },
@@ -786,6 +787,15 @@ export interface CreateWebACLCommandOutput extends CreateWebACLResponse, __Metad
786787
* FieldToMatch: "<FieldToMatch>", // required
787788
* TextTransformations: "<TextTransformations>", // required
788789
* },
790+
* AsnMatchStatement: { // AsnMatchStatement
791+
* AsnList: [ // AsnList // required
792+
* Number("long"),
793+
* ],
794+
* ForwardedIPConfig: {
795+
* HeaderName: "STRING_VALUE", // required
796+
* FallbackBehavior: "MATCH" || "NO_MATCH", // required
797+
* },
798+
* },
789799
* },
790800
* ForwardedIPConfig: {
791801
* HeaderName: "STRING_VALUE", // required
@@ -823,6 +833,7 @@ export interface CreateWebACLCommandOutput extends CreateWebACLResponse, __Metad
823833
* JA4Fingerprint: {
824834
* FallbackBehavior: "MATCH" || "NO_MATCH", // required
825835
* },
836+
* ASN: {},
826837
* },
827838
* ],
828839
* },
@@ -993,6 +1004,12 @@ export interface CreateWebACLCommandOutput extends CreateWebACLResponse, __Metad
9931004
* FieldToMatch: "<FieldToMatch>", // required
9941005
* TextTransformations: "<TextTransformations>", // required
9951006
* },
1007+
* AsnMatchStatement: {
1008+
* AsnList: [ // required
1009+
* Number("long"),
1010+
* ],
1011+
* ForwardedIPConfig: "<ForwardedIPConfig>",
1012+
* },
9961013
* },
9971014
* Action: "<RuleAction>",
9981015
* OverrideAction: { // OverrideAction

clients/client-wafv2/src/commands/GetRuleGroupCommand.ts

Lines changed: 17 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -610,6 +610,7 @@ export interface GetRuleGroupCommandOutput extends GetRuleGroupResponse, __Metad
610610
* // JA4Fingerprint: { // RateLimitJA4Fingerprint
611611
* // FallbackBehavior: "MATCH" || "NO_MATCH", // required
612612
* // },
613+
* // ASN: {},
613614
* // },
614615
* // ],
615616
* // },
@@ -800,6 +801,15 @@ export interface GetRuleGroupCommandOutput extends GetRuleGroupResponse, __Metad
800801
* // FieldToMatch: "<FieldToMatch>", // required
801802
* // TextTransformations: "<TextTransformations>", // required
802803
* // },
804+
* // AsnMatchStatement: { // AsnMatchStatement
805+
* // AsnList: [ // AsnList // required
806+
* // Number("long"),
807+
* // ],
808+
* // ForwardedIPConfig: {
809+
* // HeaderName: "STRING_VALUE", // required
810+
* // FallbackBehavior: "MATCH" || "NO_MATCH", // required
811+
* // },
812+
* // },
803813
* // },
804814
* // ForwardedIPConfig: {
805815
* // HeaderName: "STRING_VALUE", // required
@@ -837,6 +847,7 @@ export interface GetRuleGroupCommandOutput extends GetRuleGroupResponse, __Metad
837847
* // JA4Fingerprint: {
838848
* // FallbackBehavior: "MATCH" || "NO_MATCH", // required
839849
* // },
850+
* // ASN: {},
840851
* // },
841852
* // ],
842853
* // },
@@ -1015,6 +1026,12 @@ export interface GetRuleGroupCommandOutput extends GetRuleGroupResponse, __Metad
10151026
* // FieldToMatch: "<FieldToMatch>", // required
10161027
* // TextTransformations: "<TextTransformations>", // required
10171028
* // },
1029+
* // AsnMatchStatement: {
1030+
* // AsnList: [ // required
1031+
* // Number("long"),
1032+
* // ],
1033+
* // ForwardedIPConfig: "<ForwardedIPConfig>",
1034+
* // },
10181035
* // },
10191036
* // Action: "<RuleAction>",
10201037
* // OverrideAction: { // OverrideAction

clients/client-wafv2/src/commands/GetWebACLCommand.ts

Lines changed: 17 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -613,6 +613,7 @@ export interface GetWebACLCommandOutput extends GetWebACLResponse, __MetadataBea
613613
* // JA4Fingerprint: { // RateLimitJA4Fingerprint
614614
* // FallbackBehavior: "MATCH" || "NO_MATCH", // required
615615
* // },
616+
* // ASN: {},
616617
* // },
617618
* // ],
618619
* // },
@@ -795,6 +796,15 @@ export interface GetWebACLCommandOutput extends GetWebACLResponse, __MetadataBea
795796
* // FieldToMatch: "<FieldToMatch>", // required
796797
* // TextTransformations: "<TextTransformations>", // required
797798
* // },
799+
* // AsnMatchStatement: { // AsnMatchStatement
800+
* // AsnList: [ // AsnList // required
801+
* // Number("long"),
802+
* // ],
803+
* // ForwardedIPConfig: {
804+
* // HeaderName: "STRING_VALUE", // required
805+
* // FallbackBehavior: "MATCH" || "NO_MATCH", // required
806+
* // },
807+
* // },
798808
* // },
799809
* // ForwardedIPConfig: {
800810
* // HeaderName: "STRING_VALUE", // required
@@ -832,6 +842,7 @@ export interface GetWebACLCommandOutput extends GetWebACLResponse, __MetadataBea
832842
* // JA4Fingerprint: {
833843
* // FallbackBehavior: "MATCH" || "NO_MATCH", // required
834844
* // },
845+
* // ASN: {},
835846
* // },
836847
* // ],
837848
* // },
@@ -1002,6 +1013,12 @@ export interface GetWebACLCommandOutput extends GetWebACLResponse, __MetadataBea
10021013
* // FieldToMatch: "<FieldToMatch>", // required
10031014
* // TextTransformations: "<TextTransformations>", // required
10041015
* // },
1016+
* // AsnMatchStatement: {
1017+
* // AsnList: [ // required
1018+
* // Number("long"),
1019+
* // ],
1020+
* // ForwardedIPConfig: "<ForwardedIPConfig>",
1021+
* // },
10051022
* // },
10061023
* // Action: "<RuleAction>",
10071024
* // OverrideAction: { // OverrideAction

clients/client-wafv2/src/commands/GetWebACLForResourceCommand.ts

Lines changed: 17 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -620,6 +620,7 @@ export interface GetWebACLForResourceCommandOutput extends GetWebACLForResourceR
620620
* // JA4Fingerprint: { // RateLimitJA4Fingerprint
621621
* // FallbackBehavior: "MATCH" || "NO_MATCH", // required
622622
* // },
623+
* // ASN: {},
623624
* // },
624625
* // ],
625626
* // },
@@ -802,6 +803,15 @@ export interface GetWebACLForResourceCommandOutput extends GetWebACLForResourceR
802803
* // FieldToMatch: "<FieldToMatch>", // required
803804
* // TextTransformations: "<TextTransformations>", // required
804805
* // },
806+
* // AsnMatchStatement: { // AsnMatchStatement
807+
* // AsnList: [ // AsnList // required
808+
* // Number("long"),
809+
* // ],
810+
* // ForwardedIPConfig: {
811+
* // HeaderName: "STRING_VALUE", // required
812+
* // FallbackBehavior: "MATCH" || "NO_MATCH", // required
813+
* // },
814+
* // },
805815
* // },
806816
* // ForwardedIPConfig: {
807817
* // HeaderName: "STRING_VALUE", // required
@@ -839,6 +849,7 @@ export interface GetWebACLForResourceCommandOutput extends GetWebACLForResourceR
839849
* // JA4Fingerprint: {
840850
* // FallbackBehavior: "MATCH" || "NO_MATCH", // required
841851
* // },
852+
* // ASN: {},
842853
* // },
843854
* // ],
844855
* // },
@@ -1009,6 +1020,12 @@ export interface GetWebACLForResourceCommandOutput extends GetWebACLForResourceR
10091020
* // FieldToMatch: "<FieldToMatch>", // required
10101021
* // TextTransformations: "<TextTransformations>", // required
10111022
* // },
1023+
* // AsnMatchStatement: {
1024+
* // AsnList: [ // required
1025+
* // Number("long"),
1026+
* // ],
1027+
* // ForwardedIPConfig: "<ForwardedIPConfig>",
1028+
* // },
10121029
* // },
10131030
* // Action: "<RuleAction>",
10141031
* // OverrideAction: { // OverrideAction

clients/client-wafv2/src/commands/UpdateRuleGroupCommand.ts

Lines changed: 17 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -636,6 +636,7 @@ export interface UpdateRuleGroupCommandOutput extends UpdateRuleGroupResponse, _
636636
* JA4Fingerprint: { // RateLimitJA4Fingerprint
637637
* FallbackBehavior: "MATCH" || "NO_MATCH", // required
638638
* },
639+
* ASN: {},
639640
* },
640641
* ],
641642
* },
@@ -826,6 +827,15 @@ export interface UpdateRuleGroupCommandOutput extends UpdateRuleGroupResponse, _
826827
* FieldToMatch: "<FieldToMatch>", // required
827828
* TextTransformations: "<TextTransformations>", // required
828829
* },
830+
* AsnMatchStatement: { // AsnMatchStatement
831+
* AsnList: [ // AsnList // required
832+
* Number("long"),
833+
* ],
834+
* ForwardedIPConfig: {
835+
* HeaderName: "STRING_VALUE", // required
836+
* FallbackBehavior: "MATCH" || "NO_MATCH", // required
837+
* },
838+
* },
829839
* },
830840
* ForwardedIPConfig: {
831841
* HeaderName: "STRING_VALUE", // required
@@ -863,6 +873,7 @@ export interface UpdateRuleGroupCommandOutput extends UpdateRuleGroupResponse, _
863873
* JA4Fingerprint: {
864874
* FallbackBehavior: "MATCH" || "NO_MATCH", // required
865875
* },
876+
* ASN: {},
866877
* },
867878
* ],
868879
* },
@@ -1041,6 +1052,12 @@ export interface UpdateRuleGroupCommandOutput extends UpdateRuleGroupResponse, _
10411052
* FieldToMatch: "<FieldToMatch>", // required
10421053
* TextTransformations: "<TextTransformations>", // required
10431054
* },
1055+
* AsnMatchStatement: {
1056+
* AsnList: [ // required
1057+
* Number("long"),
1058+
* ],
1059+
* ForwardedIPConfig: "<ForwardedIPConfig>",
1060+
* },
10441061
* },
10451062
* Action: "<RuleAction>",
10461063
* OverrideAction: { // OverrideAction

clients/client-wafv2/src/commands/UpdateWebACLCommand.ts

Lines changed: 17 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -641,6 +641,7 @@ export interface UpdateWebACLCommandOutput extends UpdateWebACLResponse, __Metad
641641
* JA4Fingerprint: { // RateLimitJA4Fingerprint
642642
* FallbackBehavior: "MATCH" || "NO_MATCH", // required
643643
* },
644+
* ASN: {},
644645
* },
645646
* ],
646647
* },
@@ -823,6 +824,15 @@ export interface UpdateWebACLCommandOutput extends UpdateWebACLResponse, __Metad
823824
* FieldToMatch: "<FieldToMatch>", // required
824825
* TextTransformations: "<TextTransformations>", // required
825826
* },
827+
* AsnMatchStatement: { // AsnMatchStatement
828+
* AsnList: [ // AsnList // required
829+
* Number("long"),
830+
* ],
831+
* ForwardedIPConfig: {
832+
* HeaderName: "STRING_VALUE", // required
833+
* FallbackBehavior: "MATCH" || "NO_MATCH", // required
834+
* },
835+
* },
826836
* },
827837
* ForwardedIPConfig: {
828838
* HeaderName: "STRING_VALUE", // required
@@ -860,6 +870,7 @@ export interface UpdateWebACLCommandOutput extends UpdateWebACLResponse, __Metad
860870
* JA4Fingerprint: {
861871
* FallbackBehavior: "MATCH" || "NO_MATCH", // required
862872
* },
873+
* ASN: {},
863874
* },
864875
* ],
865876
* },
@@ -1030,6 +1041,12 @@ export interface UpdateWebACLCommandOutput extends UpdateWebACLResponse, __Metad
10301041
* FieldToMatch: "<FieldToMatch>", // required
10311042
* TextTransformations: "<TextTransformations>", // required
10321043
* },
1044+
* AsnMatchStatement: {
1045+
* AsnList: [ // required
1046+
* Number("long"),
1047+
* ],
1048+
* ForwardedIPConfig: "<ForwardedIPConfig>",
1049+
* },
10331050
* },
10341051
* Action: "<RuleAction>",
10351052
* OverrideAction: { // OverrideAction

0 commit comments

Comments
 (0)