aws-sdk-wafregional 1.0.0.rc8 → 1.0.0.rc9
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.
- checksums.yaml +4 -4
- data/lib/aws-sdk-wafregional.rb +1 -1
- data/lib/aws-sdk-wafregional/client.rb +833 -1
- metadata +4 -4
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: c3355400d064f9d1fbffe1dbc981134811b535c3
|
4
|
+
data.tar.gz: 36df53d637c213b56fcc97f20302ed0e4e03a8ac
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 6bcedc01260fd832db00fdcd456a82d8dda481444aef1730d389046dfb5d2c7e776887e5b0eaa5d191624e3512429fa38f8734da3b66c1ca2cb6e059a46f6c91
|
7
|
+
data.tar.gz: f58ba2f8bf1bf498794c85fc653b9b60b8cf1b0ac59f85273b1008da017741ab4e48f520f0d9dfc8c1fabb0630e11f9e989502436446a54e38f86f06b9dd26b1
|
data/lib/aws-sdk-wafregional.rb
CHANGED
@@ -289,6 +289,31 @@ module Aws::WAFRegional
|
|
289
289
|
# * {Types::CreateIPSetResponse#ip_set #ip_set} => Types::IPSet
|
290
290
|
# * {Types::CreateIPSetResponse#change_token #change_token} => String
|
291
291
|
#
|
292
|
+
#
|
293
|
+
# @example Example: To create an IP set
|
294
|
+
#
|
295
|
+
# # The following example creates an IP match set named MyIPSetFriendlyName.
|
296
|
+
#
|
297
|
+
# resp = client.create_ip_set({
|
298
|
+
# change_token: "abcd12f2-46da-4fdb-b8d5-fbd4c466928f",
|
299
|
+
# name: "MyIPSetFriendlyName",
|
300
|
+
# })
|
301
|
+
#
|
302
|
+
# resp.to_h outputs the following:
|
303
|
+
# {
|
304
|
+
# change_token: "abcd12f2-46da-4fdb-b8d5-fbd4c466928f",
|
305
|
+
# ip_set: {
|
306
|
+
# ip_set_descriptors: [
|
307
|
+
# {
|
308
|
+
# type: "IPV4",
|
309
|
+
# value: "192.0.2.44/32",
|
310
|
+
# },
|
311
|
+
# ],
|
312
|
+
# ip_set_id: "example1ds3t-46da-4fdb-b8d5-abc321j569j5",
|
313
|
+
# name: "MyIPSetFriendlyName",
|
314
|
+
# },
|
315
|
+
# }
|
316
|
+
#
|
292
317
|
# @example Request syntax with placeholder values
|
293
318
|
#
|
294
319
|
# resp = client.create_ip_set({
|
@@ -511,6 +536,34 @@ module Aws::WAFRegional
|
|
511
536
|
# * {Types::CreateRuleResponse#rule #rule} => Types::Rule
|
512
537
|
# * {Types::CreateRuleResponse#change_token #change_token} => String
|
513
538
|
#
|
539
|
+
#
|
540
|
+
# @example Example: To create a rule
|
541
|
+
#
|
542
|
+
# # The following example creates a rule named WAFByteHeaderRule.
|
543
|
+
#
|
544
|
+
# resp = client.create_rule({
|
545
|
+
# change_token: "abcd12f2-46da-4fdb-b8d5-fbd4c466928f",
|
546
|
+
# metric_name: "WAFByteHeaderRule",
|
547
|
+
# name: "WAFByteHeaderRule",
|
548
|
+
# })
|
549
|
+
#
|
550
|
+
# resp.to_h outputs the following:
|
551
|
+
# {
|
552
|
+
# change_token: "abcd12f2-46da-4fdb-b8d5-fbd4c466928f",
|
553
|
+
# rule: {
|
554
|
+
# metric_name: "WAFByteHeaderRule",
|
555
|
+
# name: "WAFByteHeaderRule",
|
556
|
+
# predicates: [
|
557
|
+
# {
|
558
|
+
# data_id: "MyByteMatchSetID",
|
559
|
+
# negated: false,
|
560
|
+
# type: "ByteMatch",
|
561
|
+
# },
|
562
|
+
# ],
|
563
|
+
# rule_id: "WAFRule-1-Example",
|
564
|
+
# },
|
565
|
+
# }
|
566
|
+
#
|
514
567
|
# @example Request syntax with placeholder values
|
515
568
|
#
|
516
569
|
# resp = client.create_rule({
|
@@ -582,6 +635,35 @@ module Aws::WAFRegional
|
|
582
635
|
# * {Types::CreateSizeConstraintSetResponse#size_constraint_set #size_constraint_set} => Types::SizeConstraintSet
|
583
636
|
# * {Types::CreateSizeConstraintSetResponse#change_token #change_token} => String
|
584
637
|
#
|
638
|
+
#
|
639
|
+
# @example Example: To create a size constraint
|
640
|
+
#
|
641
|
+
# # The following example creates size constraint set named MySampleSizeConstraintSet.
|
642
|
+
#
|
643
|
+
# resp = client.create_size_constraint_set({
|
644
|
+
# change_token: "abcd12f2-46da-4fdb-b8d5-fbd4c466928f",
|
645
|
+
# name: "MySampleSizeConstraintSet",
|
646
|
+
# })
|
647
|
+
#
|
648
|
+
# resp.to_h outputs the following:
|
649
|
+
# {
|
650
|
+
# change_token: "abcd12f2-46da-4fdb-b8d5-fbd4c466928f",
|
651
|
+
# size_constraint_set: {
|
652
|
+
# name: "MySampleSizeConstraintSet",
|
653
|
+
# size_constraint_set_id: "example1ds3t-46da-4fdb-b8d5-abc321j569j5",
|
654
|
+
# size_constraints: [
|
655
|
+
# {
|
656
|
+
# comparison_operator: "GT",
|
657
|
+
# field_to_match: {
|
658
|
+
# type: "QUERY_STRING",
|
659
|
+
# },
|
660
|
+
# size: 0,
|
661
|
+
# text_transformation: "NONE",
|
662
|
+
# },
|
663
|
+
# ],
|
664
|
+
# },
|
665
|
+
# }
|
666
|
+
#
|
585
667
|
# @example Request syntax with placeholder values
|
586
668
|
#
|
587
669
|
# resp = client.create_size_constraint_set({
|
@@ -651,6 +733,33 @@ module Aws::WAFRegional
|
|
651
733
|
# * {Types::CreateSqlInjectionMatchSetResponse#sql_injection_match_set #sql_injection_match_set} => Types::SqlInjectionMatchSet
|
652
734
|
# * {Types::CreateSqlInjectionMatchSetResponse#change_token #change_token} => String
|
653
735
|
#
|
736
|
+
#
|
737
|
+
# @example Example: To create a SQL injection match set
|
738
|
+
#
|
739
|
+
# # The following example creates a SQL injection match set named MySQLInjectionMatchSet.
|
740
|
+
#
|
741
|
+
# resp = client.create_sql_injection_match_set({
|
742
|
+
# change_token: "abcd12f2-46da-4fdb-b8d5-fbd4c466928f",
|
743
|
+
# name: "MySQLInjectionMatchSet",
|
744
|
+
# })
|
745
|
+
#
|
746
|
+
# resp.to_h outputs the following:
|
747
|
+
# {
|
748
|
+
# change_token: "abcd12f2-46da-4fdb-b8d5-fbd4c466928f",
|
749
|
+
# sql_injection_match_set: {
|
750
|
+
# name: "MySQLInjectionMatchSet",
|
751
|
+
# sql_injection_match_set_id: "example1ds3t-46da-4fdb-b8d5-abc321j569j5",
|
752
|
+
# sql_injection_match_tuples: [
|
753
|
+
# {
|
754
|
+
# field_to_match: {
|
755
|
+
# type: "QUERY_STRING",
|
756
|
+
# },
|
757
|
+
# text_transformation: "URL_DECODE",
|
758
|
+
# },
|
759
|
+
# ],
|
760
|
+
# },
|
761
|
+
# }
|
762
|
+
#
|
654
763
|
# @example Request syntax with placeholder values
|
655
764
|
#
|
656
765
|
# resp = client.create_sql_injection_match_set({
|
@@ -738,6 +847,42 @@ module Aws::WAFRegional
|
|
738
847
|
# * {Types::CreateWebACLResponse#web_acl #web_acl} => Types::WebACL
|
739
848
|
# * {Types::CreateWebACLResponse#change_token #change_token} => String
|
740
849
|
#
|
850
|
+
#
|
851
|
+
# @example Example: To create a web ACL
|
852
|
+
#
|
853
|
+
# # The following example creates a web ACL named CreateExample.
|
854
|
+
#
|
855
|
+
# resp = client.create_web_acl({
|
856
|
+
# change_token: "abcd12f2-46da-4fdb-b8d5-fbd4c466928f",
|
857
|
+
# default_action: {
|
858
|
+
# type: "ALLOW",
|
859
|
+
# },
|
860
|
+
# metric_name: "CreateExample",
|
861
|
+
# name: "CreateExample",
|
862
|
+
# })
|
863
|
+
#
|
864
|
+
# resp.to_h outputs the following:
|
865
|
+
# {
|
866
|
+
# change_token: "abcd12f2-46da-4fdb-b8d5-fbd4c466928f",
|
867
|
+
# web_acl: {
|
868
|
+
# default_action: {
|
869
|
+
# type: "ALLOW",
|
870
|
+
# },
|
871
|
+
# metric_name: "CreateExample",
|
872
|
+
# name: "CreateExample",
|
873
|
+
# rules: [
|
874
|
+
# {
|
875
|
+
# action: {
|
876
|
+
# type: "ALLOW",
|
877
|
+
# },
|
878
|
+
# priority: 1,
|
879
|
+
# rule_id: "WAFRule-1-Example",
|
880
|
+
# },
|
881
|
+
# ],
|
882
|
+
# web_acl_id: "example-46da-4444-5555-example",
|
883
|
+
# },
|
884
|
+
# }
|
885
|
+
#
|
741
886
|
# @example Request syntax with placeholder values
|
742
887
|
#
|
743
888
|
# resp = client.create_web_acl({
|
@@ -809,6 +954,33 @@ module Aws::WAFRegional
|
|
809
954
|
# * {Types::CreateXssMatchSetResponse#xss_match_set #xss_match_set} => Types::XssMatchSet
|
810
955
|
# * {Types::CreateXssMatchSetResponse#change_token #change_token} => String
|
811
956
|
#
|
957
|
+
#
|
958
|
+
# @example Example: To create an XSS match set
|
959
|
+
#
|
960
|
+
# # The following example creates an XSS match set named MySampleXssMatchSet.
|
961
|
+
#
|
962
|
+
# resp = client.create_xss_match_set({
|
963
|
+
# change_token: "abcd12f2-46da-4fdb-b8d5-fbd4c466928f",
|
964
|
+
# name: "MySampleXssMatchSet",
|
965
|
+
# })
|
966
|
+
#
|
967
|
+
# resp.to_h outputs the following:
|
968
|
+
# {
|
969
|
+
# change_token: "abcd12f2-46da-4fdb-b8d5-fbd4c466928f",
|
970
|
+
# xss_match_set: {
|
971
|
+
# name: "MySampleXssMatchSet",
|
972
|
+
# xss_match_set_id: "example1ds3t-46da-4fdb-b8d5-abc321j569j5",
|
973
|
+
# xss_match_tuples: [
|
974
|
+
# {
|
975
|
+
# field_to_match: {
|
976
|
+
# type: "QUERY_STRING",
|
977
|
+
# },
|
978
|
+
# text_transformation: "URL_DECODE",
|
979
|
+
# },
|
980
|
+
# ],
|
981
|
+
# },
|
982
|
+
# }
|
983
|
+
#
|
812
984
|
# @example Request syntax with placeholder values
|
813
985
|
#
|
814
986
|
# resp = client.create_xss_match_set({
|
@@ -864,6 +1036,21 @@ module Aws::WAFRegional
|
|
864
1036
|
#
|
865
1037
|
# * {Types::DeleteByteMatchSetResponse#change_token #change_token} => String
|
866
1038
|
#
|
1039
|
+
#
|
1040
|
+
# @example Example: To delete a byte match set
|
1041
|
+
#
|
1042
|
+
# # The following example deletes a byte match set with the ID exampleIDs3t-46da-4fdb-b8d5-abc321j569j5.
|
1043
|
+
#
|
1044
|
+
# resp = client.delete_byte_match_set({
|
1045
|
+
# byte_match_set_id: "exampleIDs3t-46da-4fdb-b8d5-abc321j569j5",
|
1046
|
+
# change_token: "abcd12f2-46da-4fdb-b8d5-fbd4c466928f",
|
1047
|
+
# })
|
1048
|
+
#
|
1049
|
+
# resp.to_h outputs the following:
|
1050
|
+
# {
|
1051
|
+
# change_token: "abcd12f2-46da-4fdb-b8d5-fbd4c466928f",
|
1052
|
+
# }
|
1053
|
+
#
|
867
1054
|
# @example Request syntax with placeholder values
|
868
1055
|
#
|
869
1056
|
# resp = client.delete_byte_match_set({
|
@@ -911,6 +1098,21 @@ module Aws::WAFRegional
|
|
911
1098
|
#
|
912
1099
|
# * {Types::DeleteIPSetResponse#change_token #change_token} => String
|
913
1100
|
#
|
1101
|
+
#
|
1102
|
+
# @example Example: To delete an IP set
|
1103
|
+
#
|
1104
|
+
# # The following example deletes an IP match set with the ID example1ds3t-46da-4fdb-b8d5-abc321j569j5.
|
1105
|
+
#
|
1106
|
+
# resp = client.delete_ip_set({
|
1107
|
+
# change_token: "abcd12f2-46da-4fdb-b8d5-fbd4c466928f",
|
1108
|
+
# ip_set_id: "example1ds3t-46da-4fdb-b8d5-abc321j569j5",
|
1109
|
+
# })
|
1110
|
+
#
|
1111
|
+
# resp.to_h outputs the following:
|
1112
|
+
# {
|
1113
|
+
# change_token: "abcd12f2-46da-4fdb-b8d5-fbd4c466928f",
|
1114
|
+
# }
|
1115
|
+
#
|
914
1116
|
# @example Request syntax with placeholder values
|
915
1117
|
#
|
916
1118
|
# resp = client.delete_ip_set({
|
@@ -1007,6 +1209,21 @@ module Aws::WAFRegional
|
|
1007
1209
|
#
|
1008
1210
|
# * {Types::DeleteRuleResponse#change_token #change_token} => String
|
1009
1211
|
#
|
1212
|
+
#
|
1213
|
+
# @example Example: To delete a rule
|
1214
|
+
#
|
1215
|
+
# # The following example deletes a rule with the ID WAFRule-1-Example.
|
1216
|
+
#
|
1217
|
+
# resp = client.delete_rule({
|
1218
|
+
# change_token: "abcd12f2-46da-4fdb-b8d5-fbd4c466928f",
|
1219
|
+
# rule_id: "WAFRule-1-Example",
|
1220
|
+
# })
|
1221
|
+
#
|
1222
|
+
# resp.to_h outputs the following:
|
1223
|
+
# {
|
1224
|
+
# change_token: "abcd12f2-46da-4fdb-b8d5-fbd4c466928f",
|
1225
|
+
# }
|
1226
|
+
#
|
1010
1227
|
# @example Request syntax with placeholder values
|
1011
1228
|
#
|
1012
1229
|
# resp = client.delete_rule({
|
@@ -1057,6 +1274,21 @@ module Aws::WAFRegional
|
|
1057
1274
|
#
|
1058
1275
|
# * {Types::DeleteSizeConstraintSetResponse#change_token #change_token} => String
|
1059
1276
|
#
|
1277
|
+
#
|
1278
|
+
# @example Example: To delete a size constraint set
|
1279
|
+
#
|
1280
|
+
# # The following example deletes a size constraint set with the ID example1ds3t-46da-4fdb-b8d5-abc321j569j5.
|
1281
|
+
#
|
1282
|
+
# resp = client.delete_size_constraint_set({
|
1283
|
+
# change_token: "abcd12f2-46da-4fdb-b8d5-fbd4c466928f",
|
1284
|
+
# size_constraint_set_id: "example1ds3t-46da-4fdb-b8d5-abc321j569j5",
|
1285
|
+
# })
|
1286
|
+
#
|
1287
|
+
# resp.to_h outputs the following:
|
1288
|
+
# {
|
1289
|
+
# change_token: "abcd12f2-46da-4fdb-b8d5-fbd4c466928f",
|
1290
|
+
# }
|
1291
|
+
#
|
1060
1292
|
# @example Request syntax with placeholder values
|
1061
1293
|
#
|
1062
1294
|
# resp = client.delete_size_constraint_set({
|
@@ -1107,6 +1339,21 @@ module Aws::WAFRegional
|
|
1107
1339
|
#
|
1108
1340
|
# * {Types::DeleteSqlInjectionMatchSetResponse#change_token #change_token} => String
|
1109
1341
|
#
|
1342
|
+
#
|
1343
|
+
# @example Example: To delete a SQL injection match set
|
1344
|
+
#
|
1345
|
+
# # The following example deletes a SQL injection match set with the ID example1ds3t-46da-4fdb-b8d5-abc321j569j5.
|
1346
|
+
#
|
1347
|
+
# resp = client.delete_sql_injection_match_set({
|
1348
|
+
# change_token: "abcd12f2-46da-4fdb-b8d5-fbd4c466928f",
|
1349
|
+
# sql_injection_match_set_id: "example1ds3t-46da-4fdb-b8d5-abc321j569j5",
|
1350
|
+
# })
|
1351
|
+
#
|
1352
|
+
# resp.to_h outputs the following:
|
1353
|
+
# {
|
1354
|
+
# change_token: "abcd12f2-46da-4fdb-b8d5-fbd4c466928f",
|
1355
|
+
# }
|
1356
|
+
#
|
1110
1357
|
# @example Request syntax with placeholder values
|
1111
1358
|
#
|
1112
1359
|
# resp = client.delete_sql_injection_match_set({
|
@@ -1151,6 +1398,21 @@ module Aws::WAFRegional
|
|
1151
1398
|
#
|
1152
1399
|
# * {Types::DeleteWebACLResponse#change_token #change_token} => String
|
1153
1400
|
#
|
1401
|
+
#
|
1402
|
+
# @example Example: To delete a web ACL
|
1403
|
+
#
|
1404
|
+
# # The following example deletes a web ACL with the ID example-46da-4444-5555-example.
|
1405
|
+
#
|
1406
|
+
# resp = client.delete_web_acl({
|
1407
|
+
# change_token: "abcd12f2-46da-4fdb-b8d5-fbd4c466928f",
|
1408
|
+
# web_acl_id: "example-46da-4444-5555-example",
|
1409
|
+
# })
|
1410
|
+
#
|
1411
|
+
# resp.to_h outputs the following:
|
1412
|
+
# {
|
1413
|
+
# change_token: "abcd12f2-46da-4fdb-b8d5-fbd4c466928f",
|
1414
|
+
# }
|
1415
|
+
#
|
1154
1416
|
# @example Request syntax with placeholder values
|
1155
1417
|
#
|
1156
1418
|
# resp = client.delete_web_acl({
|
@@ -1201,6 +1463,21 @@ module Aws::WAFRegional
|
|
1201
1463
|
#
|
1202
1464
|
# * {Types::DeleteXssMatchSetResponse#change_token #change_token} => String
|
1203
1465
|
#
|
1466
|
+
#
|
1467
|
+
# @example Example: To delete an XSS match set
|
1468
|
+
#
|
1469
|
+
# # The following example deletes an XSS match set with the ID example1ds3t-46da-4fdb-b8d5-abc321j569j5.
|
1470
|
+
#
|
1471
|
+
# resp = client.delete_xss_match_set({
|
1472
|
+
# change_token: "abcd12f2-46da-4fdb-b8d5-fbd4c466928f",
|
1473
|
+
# xss_match_set_id: "example1ds3t-46da-4fdb-b8d5-abc321j569j5",
|
1474
|
+
# })
|
1475
|
+
#
|
1476
|
+
# resp.to_h outputs the following:
|
1477
|
+
# {
|
1478
|
+
# change_token: "abcd12f2-46da-4fdb-b8d5-fbd4c466928f",
|
1479
|
+
# }
|
1480
|
+
#
|
1204
1481
|
# @example Request syntax with placeholder values
|
1205
1482
|
#
|
1206
1483
|
# resp = client.delete_xss_match_set({
|
@@ -1255,6 +1532,34 @@ module Aws::WAFRegional
|
|
1255
1532
|
#
|
1256
1533
|
# * {Types::GetByteMatchSetResponse#byte_match_set #byte_match_set} => Types::ByteMatchSet
|
1257
1534
|
#
|
1535
|
+
#
|
1536
|
+
# @example Example: To get a byte match set
|
1537
|
+
#
|
1538
|
+
# # The following example returns the details of a byte match set with the ID exampleIDs3t-46da-4fdb-b8d5-abc321j569j5.
|
1539
|
+
#
|
1540
|
+
# resp = client.get_byte_match_set({
|
1541
|
+
# byte_match_set_id: "exampleIDs3t-46da-4fdb-b8d5-abc321j569j5",
|
1542
|
+
# })
|
1543
|
+
#
|
1544
|
+
# resp.to_h outputs the following:
|
1545
|
+
# {
|
1546
|
+
# byte_match_set: {
|
1547
|
+
# byte_match_set_id: "exampleIDs3t-46da-4fdb-b8d5-abc321j569j5",
|
1548
|
+
# byte_match_tuples: [
|
1549
|
+
# {
|
1550
|
+
# field_to_match: {
|
1551
|
+
# data: "referer",
|
1552
|
+
# type: "HEADER",
|
1553
|
+
# },
|
1554
|
+
# positional_constraint: "CONTAINS",
|
1555
|
+
# target_string: "badrefer1",
|
1556
|
+
# text_transformation: "NONE",
|
1557
|
+
# },
|
1558
|
+
# ],
|
1559
|
+
# name: "ByteMatchNameExample",
|
1560
|
+
# },
|
1561
|
+
# }
|
1562
|
+
#
|
1258
1563
|
# @example Request syntax with placeholder values
|
1259
1564
|
#
|
1260
1565
|
# resp = client.get_byte_match_set({
|
@@ -1301,6 +1606,19 @@ module Aws::WAFRegional
|
|
1301
1606
|
#
|
1302
1607
|
# * {Types::GetChangeTokenResponse#change_token #change_token} => String
|
1303
1608
|
#
|
1609
|
+
#
|
1610
|
+
# @example Example: To get a change token
|
1611
|
+
#
|
1612
|
+
# # The following example returns a change token to use for a create, update or delete operation.
|
1613
|
+
#
|
1614
|
+
# resp = client.get_change_token({
|
1615
|
+
# })
|
1616
|
+
#
|
1617
|
+
# resp.to_h outputs the following:
|
1618
|
+
# {
|
1619
|
+
# change_token: "abcd12f2-46da-4fdb-b8d5-fbd4c466928f",
|
1620
|
+
# }
|
1621
|
+
#
|
1304
1622
|
# @example Response structure
|
1305
1623
|
#
|
1306
1624
|
# resp.change_token #=> String
|
@@ -1334,6 +1652,20 @@ module Aws::WAFRegional
|
|
1334
1652
|
#
|
1335
1653
|
# * {Types::GetChangeTokenStatusResponse#change_token_status #change_token_status} => String
|
1336
1654
|
#
|
1655
|
+
#
|
1656
|
+
# @example Example: To get the change token status
|
1657
|
+
#
|
1658
|
+
# # The following example returns the status of a change token with the ID abcd12f2-46da-4fdb-b8d5-fbd4c466928f.
|
1659
|
+
#
|
1660
|
+
# resp = client.get_change_token_status({
|
1661
|
+
# change_token: "abcd12f2-46da-4fdb-b8d5-fbd4c466928f",
|
1662
|
+
# })
|
1663
|
+
#
|
1664
|
+
# resp.to_h outputs the following:
|
1665
|
+
# {
|
1666
|
+
# change_token_status: "PENDING",
|
1667
|
+
# }
|
1668
|
+
#
|
1337
1669
|
# @example Request syntax with placeholder values
|
1338
1670
|
#
|
1339
1671
|
# resp = client.get_change_token_status({
|
@@ -1363,6 +1695,29 @@ module Aws::WAFRegional
|
|
1363
1695
|
#
|
1364
1696
|
# * {Types::GetIPSetResponse#ip_set #ip_set} => Types::IPSet
|
1365
1697
|
#
|
1698
|
+
#
|
1699
|
+
# @example Example: To get an IP set
|
1700
|
+
#
|
1701
|
+
# # The following example returns the details of an IP match set with the ID example1ds3t-46da-4fdb-b8d5-abc321j569j5.
|
1702
|
+
#
|
1703
|
+
# resp = client.get_ip_set({
|
1704
|
+
# ip_set_id: "example1ds3t-46da-4fdb-b8d5-abc321j569j5",
|
1705
|
+
# })
|
1706
|
+
#
|
1707
|
+
# resp.to_h outputs the following:
|
1708
|
+
# {
|
1709
|
+
# ip_set: {
|
1710
|
+
# ip_set_descriptors: [
|
1711
|
+
# {
|
1712
|
+
# type: "IPV4",
|
1713
|
+
# value: "192.0.2.44/32",
|
1714
|
+
# },
|
1715
|
+
# ],
|
1716
|
+
# ip_set_id: "example1ds3t-46da-4fdb-b8d5-abc321j569j5",
|
1717
|
+
# name: "MyIPSetFriendlyName",
|
1718
|
+
# },
|
1719
|
+
# }
|
1720
|
+
#
|
1366
1721
|
# @example Request syntax with placeholder values
|
1367
1722
|
#
|
1368
1723
|
# resp = client.get_ip_set({
|
@@ -1477,6 +1832,31 @@ module Aws::WAFRegional
|
|
1477
1832
|
#
|
1478
1833
|
# * {Types::GetRuleResponse#rule #rule} => Types::Rule
|
1479
1834
|
#
|
1835
|
+
#
|
1836
|
+
# @example Example: To get a rule
|
1837
|
+
#
|
1838
|
+
# # The following example returns the details of a rule with the ID example1ds3t-46da-4fdb-b8d5-abc321j569j5.
|
1839
|
+
#
|
1840
|
+
# resp = client.get_rule({
|
1841
|
+
# rule_id: "example1ds3t-46da-4fdb-b8d5-abc321j569j5",
|
1842
|
+
# })
|
1843
|
+
#
|
1844
|
+
# resp.to_h outputs the following:
|
1845
|
+
# {
|
1846
|
+
# rule: {
|
1847
|
+
# metric_name: "WAFByteHeaderRule",
|
1848
|
+
# name: "WAFByteHeaderRule",
|
1849
|
+
# predicates: [
|
1850
|
+
# {
|
1851
|
+
# data_id: "MyByteMatchSetID",
|
1852
|
+
# negated: false,
|
1853
|
+
# type: "ByteMatch",
|
1854
|
+
# },
|
1855
|
+
# ],
|
1856
|
+
# rule_id: "example1ds3t-46da-4fdb-b8d5-abc321j569j5",
|
1857
|
+
# },
|
1858
|
+
# }
|
1859
|
+
#
|
1480
1860
|
# @example Request syntax with placeholder values
|
1481
1861
|
#
|
1482
1862
|
# resp = client.get_rule({
|
@@ -1549,6 +1929,49 @@ module Aws::WAFRegional
|
|
1549
1929
|
# * {Types::GetSampledRequestsResponse#population_size #population_size} => Integer
|
1550
1930
|
# * {Types::GetSampledRequestsResponse#time_window #time_window} => Types::TimeWindow
|
1551
1931
|
#
|
1932
|
+
#
|
1933
|
+
# @example Example: To get a sampled requests
|
1934
|
+
#
|
1935
|
+
# # The following example returns detailed information about 100 requests --a sample-- that AWS WAF randomly selects from among the first 5,000 requests that your AWS resource received between the time period 2016-09-27T15:50Z to 2016-09-27T15:50Z.
|
1936
|
+
#
|
1937
|
+
# resp = client.get_sampled_requests({
|
1938
|
+
# max_items: 100,
|
1939
|
+
# rule_id: "WAFRule-1-Example",
|
1940
|
+
# time_window: {
|
1941
|
+
# end_time: Time.parse("2016-09-27T15:50Z"),
|
1942
|
+
# start_time: Time.parse("2016-09-27T15:50Z"),
|
1943
|
+
# },
|
1944
|
+
# web_acl_id: "createwebacl-1472061481310",
|
1945
|
+
# })
|
1946
|
+
#
|
1947
|
+
# resp.to_h outputs the following:
|
1948
|
+
# {
|
1949
|
+
# population_size: 50,
|
1950
|
+
# sampled_requests: [
|
1951
|
+
# {
|
1952
|
+
# action: "BLOCK",
|
1953
|
+
# request: {
|
1954
|
+
# client_ip: "192.0.2.44",
|
1955
|
+
# country: "US",
|
1956
|
+
# http_version: "HTTP/1.1",
|
1957
|
+
# headers: [
|
1958
|
+
# {
|
1959
|
+
# name: "User-Agent",
|
1960
|
+
# value: "BadBot ",
|
1961
|
+
# },
|
1962
|
+
# ],
|
1963
|
+
# method: "HEAD",
|
1964
|
+
# },
|
1965
|
+
# timestamp: Time.parse("2016-09-27T14:55Z"),
|
1966
|
+
# weight: 1,
|
1967
|
+
# },
|
1968
|
+
# ],
|
1969
|
+
# time_window: {
|
1970
|
+
# end_time: Time.parse("2016-09-27T15:50Z"),
|
1971
|
+
# start_time: Time.parse("2016-09-27T14:50Z"),
|
1972
|
+
# },
|
1973
|
+
# }
|
1974
|
+
#
|
1552
1975
|
# @example Request syntax with placeholder values
|
1553
1976
|
#
|
1554
1977
|
# resp = client.get_sampled_requests({
|
@@ -1599,6 +2022,33 @@ module Aws::WAFRegional
|
|
1599
2022
|
#
|
1600
2023
|
# * {Types::GetSizeConstraintSetResponse#size_constraint_set #size_constraint_set} => Types::SizeConstraintSet
|
1601
2024
|
#
|
2025
|
+
#
|
2026
|
+
# @example Example: To get a size constraint set
|
2027
|
+
#
|
2028
|
+
# # The following example returns the details of a size constraint match set with the ID example1ds3t-46da-4fdb-b8d5-abc321j569j5.
|
2029
|
+
#
|
2030
|
+
# resp = client.get_size_constraint_set({
|
2031
|
+
# size_constraint_set_id: "example1ds3t-46da-4fdb-b8d5-abc321j569j5",
|
2032
|
+
# })
|
2033
|
+
#
|
2034
|
+
# resp.to_h outputs the following:
|
2035
|
+
# {
|
2036
|
+
# size_constraint_set: {
|
2037
|
+
# name: "MySampleSizeConstraintSet",
|
2038
|
+
# size_constraint_set_id: "example1ds3t-46da-4fdb-b8d5-abc321j569j5",
|
2039
|
+
# size_constraints: [
|
2040
|
+
# {
|
2041
|
+
# comparison_operator: "GT",
|
2042
|
+
# field_to_match: {
|
2043
|
+
# type: "QUERY_STRING",
|
2044
|
+
# },
|
2045
|
+
# size: 0,
|
2046
|
+
# text_transformation: "NONE",
|
2047
|
+
# },
|
2048
|
+
# ],
|
2049
|
+
# },
|
2050
|
+
# }
|
2051
|
+
#
|
1602
2052
|
# @example Request syntax with placeholder values
|
1603
2053
|
#
|
1604
2054
|
# resp = client.get_size_constraint_set({
|
@@ -1637,6 +2087,31 @@ module Aws::WAFRegional
|
|
1637
2087
|
#
|
1638
2088
|
# * {Types::GetSqlInjectionMatchSetResponse#sql_injection_match_set #sql_injection_match_set} => Types::SqlInjectionMatchSet
|
1639
2089
|
#
|
2090
|
+
#
|
2091
|
+
# @example Example: To get a SQL injection match set
|
2092
|
+
#
|
2093
|
+
# # The following example returns the details of a SQL injection match set with the ID example1ds3t-46da-4fdb-b8d5-abc321j569j5.
|
2094
|
+
#
|
2095
|
+
# resp = client.get_sql_injection_match_set({
|
2096
|
+
# sql_injection_match_set_id: "example1ds3t-46da-4fdb-b8d5-abc321j569j5",
|
2097
|
+
# })
|
2098
|
+
#
|
2099
|
+
# resp.to_h outputs the following:
|
2100
|
+
# {
|
2101
|
+
# sql_injection_match_set: {
|
2102
|
+
# name: "MySQLInjectionMatchSet",
|
2103
|
+
# sql_injection_match_set_id: "example1ds3t-46da-4fdb-b8d5-abc321j569j5",
|
2104
|
+
# sql_injection_match_tuples: [
|
2105
|
+
# {
|
2106
|
+
# field_to_match: {
|
2107
|
+
# type: "QUERY_STRING",
|
2108
|
+
# },
|
2109
|
+
# text_transformation: "URL_DECODE",
|
2110
|
+
# },
|
2111
|
+
# ],
|
2112
|
+
# },
|
2113
|
+
# }
|
2114
|
+
#
|
1640
2115
|
# @example Request syntax with placeholder values
|
1641
2116
|
#
|
1642
2117
|
# resp = client.get_sql_injection_match_set({
|
@@ -1671,6 +2146,36 @@ module Aws::WAFRegional
|
|
1671
2146
|
#
|
1672
2147
|
# * {Types::GetWebACLResponse#web_acl #web_acl} => Types::WebACL
|
1673
2148
|
#
|
2149
|
+
#
|
2150
|
+
# @example Example: To get a web ACL
|
2151
|
+
#
|
2152
|
+
# # The following example returns the details of a web ACL with the ID createwebacl-1472061481310.
|
2153
|
+
#
|
2154
|
+
# resp = client.get_web_acl({
|
2155
|
+
# web_acl_id: "createwebacl-1472061481310",
|
2156
|
+
# })
|
2157
|
+
#
|
2158
|
+
# resp.to_h outputs the following:
|
2159
|
+
# {
|
2160
|
+
# web_acl: {
|
2161
|
+
# default_action: {
|
2162
|
+
# type: "ALLOW",
|
2163
|
+
# },
|
2164
|
+
# metric_name: "CreateExample",
|
2165
|
+
# name: "CreateExample",
|
2166
|
+
# rules: [
|
2167
|
+
# {
|
2168
|
+
# action: {
|
2169
|
+
# type: "ALLOW",
|
2170
|
+
# },
|
2171
|
+
# priority: 1,
|
2172
|
+
# rule_id: "WAFRule-1-Example",
|
2173
|
+
# },
|
2174
|
+
# ],
|
2175
|
+
# web_acl_id: "createwebacl-1472061481310",
|
2176
|
+
# },
|
2177
|
+
# }
|
2178
|
+
#
|
1674
2179
|
# @example Request syntax with placeholder values
|
1675
2180
|
#
|
1676
2181
|
# resp = client.get_web_acl({
|
@@ -1739,6 +2244,31 @@ module Aws::WAFRegional
|
|
1739
2244
|
#
|
1740
2245
|
# * {Types::GetXssMatchSetResponse#xss_match_set #xss_match_set} => Types::XssMatchSet
|
1741
2246
|
#
|
2247
|
+
#
|
2248
|
+
# @example Example: To get an XSS match set
|
2249
|
+
#
|
2250
|
+
# # The following example returns the details of an XSS match set with the ID example1ds3t-46da-4fdb-b8d5-abc321j569j5.
|
2251
|
+
#
|
2252
|
+
# resp = client.get_xss_match_set({
|
2253
|
+
# xss_match_set_id: "example1ds3t-46da-4fdb-b8d5-abc321j569j5",
|
2254
|
+
# })
|
2255
|
+
#
|
2256
|
+
# resp.to_h outputs the following:
|
2257
|
+
# {
|
2258
|
+
# xss_match_set: {
|
2259
|
+
# name: "MySampleXssMatchSet",
|
2260
|
+
# xss_match_set_id: "example1ds3t-46da-4fdb-b8d5-abc321j569j5",
|
2261
|
+
# xss_match_tuples: [
|
2262
|
+
# {
|
2263
|
+
# field_to_match: {
|
2264
|
+
# type: "QUERY_STRING",
|
2265
|
+
# },
|
2266
|
+
# text_transformation: "URL_DECODE",
|
2267
|
+
# },
|
2268
|
+
# ],
|
2269
|
+
# },
|
2270
|
+
# }
|
2271
|
+
#
|
1742
2272
|
# @example Request syntax with placeholder values
|
1743
2273
|
#
|
1744
2274
|
# resp = client.get_xss_match_set({
|
@@ -1829,6 +2359,25 @@ module Aws::WAFRegional
|
|
1829
2359
|
# * {Types::ListIPSetsResponse#next_marker #next_marker} => String
|
1830
2360
|
# * {Types::ListIPSetsResponse#ip_sets #ip_sets} => Array<Types::IPSetSummary>
|
1831
2361
|
#
|
2362
|
+
#
|
2363
|
+
# @example Example: To list IP sets
|
2364
|
+
#
|
2365
|
+
# # The following example returns an array of up to 100 IP match sets.
|
2366
|
+
#
|
2367
|
+
# resp = client.list_ip_sets({
|
2368
|
+
# limit: 100,
|
2369
|
+
# })
|
2370
|
+
#
|
2371
|
+
# resp.to_h outputs the following:
|
2372
|
+
# {
|
2373
|
+
# ip_sets: [
|
2374
|
+
# {
|
2375
|
+
# ip_set_id: "abcd12f2-46da-4fdb-b8d5-fbd4c466928f",
|
2376
|
+
# name: "MyIPSetFriendlyName",
|
2377
|
+
# },
|
2378
|
+
# ],
|
2379
|
+
# }
|
2380
|
+
#
|
1832
2381
|
# @example Request syntax with placeholder values
|
1833
2382
|
#
|
1834
2383
|
# resp = client.list_ip_sets({
|
@@ -1947,6 +2496,25 @@ module Aws::WAFRegional
|
|
1947
2496
|
# * {Types::ListRulesResponse#next_marker #next_marker} => String
|
1948
2497
|
# * {Types::ListRulesResponse#rules #rules} => Array<Types::RuleSummary>
|
1949
2498
|
#
|
2499
|
+
#
|
2500
|
+
# @example Example: To list rules
|
2501
|
+
#
|
2502
|
+
# # The following example returns an array of up to 100 rules.
|
2503
|
+
#
|
2504
|
+
# resp = client.list_rules({
|
2505
|
+
# limit: 100,
|
2506
|
+
# })
|
2507
|
+
#
|
2508
|
+
# resp.to_h outputs the following:
|
2509
|
+
# {
|
2510
|
+
# rules: [
|
2511
|
+
# {
|
2512
|
+
# name: "WAFByteHeaderRule",
|
2513
|
+
# rule_id: "WAFRule-1-Example",
|
2514
|
+
# },
|
2515
|
+
# ],
|
2516
|
+
# }
|
2517
|
+
#
|
1950
2518
|
# @example Request syntax with placeholder values
|
1951
2519
|
#
|
1952
2520
|
# resp = client.list_rules({
|
@@ -1993,6 +2561,25 @@ module Aws::WAFRegional
|
|
1993
2561
|
# * {Types::ListSizeConstraintSetsResponse#next_marker #next_marker} => String
|
1994
2562
|
# * {Types::ListSizeConstraintSetsResponse#size_constraint_sets #size_constraint_sets} => Array<Types::SizeConstraintSetSummary>
|
1995
2563
|
#
|
2564
|
+
#
|
2565
|
+
# @example Example: To list a size constraint sets
|
2566
|
+
#
|
2567
|
+
# # The following example returns an array of up to 100 size contraint match sets.
|
2568
|
+
#
|
2569
|
+
# resp = client.list_size_constraint_sets({
|
2570
|
+
# limit: 100,
|
2571
|
+
# })
|
2572
|
+
#
|
2573
|
+
# resp.to_h outputs the following:
|
2574
|
+
# {
|
2575
|
+
# size_constraint_sets: [
|
2576
|
+
# {
|
2577
|
+
# name: "MySampleSizeConstraintSet",
|
2578
|
+
# size_constraint_set_id: "example1ds3t-46da-4fdb-b8d5-abc321j569j5",
|
2579
|
+
# },
|
2580
|
+
# ],
|
2581
|
+
# }
|
2582
|
+
#
|
1996
2583
|
# @example Request syntax with placeholder values
|
1997
2584
|
#
|
1998
2585
|
# resp = client.list_size_constraint_sets({
|
@@ -2039,6 +2626,25 @@ module Aws::WAFRegional
|
|
2039
2626
|
# * {Types::ListSqlInjectionMatchSetsResponse#next_marker #next_marker} => String
|
2040
2627
|
# * {Types::ListSqlInjectionMatchSetsResponse#sql_injection_match_sets #sql_injection_match_sets} => Array<Types::SqlInjectionMatchSetSummary>
|
2041
2628
|
#
|
2629
|
+
#
|
2630
|
+
# @example Example: To list SQL injection match sets
|
2631
|
+
#
|
2632
|
+
# # The following example returns an array of up to 100 SQL injection match sets.
|
2633
|
+
#
|
2634
|
+
# resp = client.list_sql_injection_match_sets({
|
2635
|
+
# limit: 100,
|
2636
|
+
# })
|
2637
|
+
#
|
2638
|
+
# resp.to_h outputs the following:
|
2639
|
+
# {
|
2640
|
+
# sql_injection_match_sets: [
|
2641
|
+
# {
|
2642
|
+
# name: "MySQLInjectionMatchSet",
|
2643
|
+
# sql_injection_match_set_id: "example1ds3t-46da-4fdb-b8d5-abc321j569j5",
|
2644
|
+
# },
|
2645
|
+
# ],
|
2646
|
+
# }
|
2647
|
+
#
|
2042
2648
|
# @example Request syntax with placeholder values
|
2043
2649
|
#
|
2044
2650
|
# resp = client.list_sql_injection_match_sets({
|
@@ -2084,6 +2690,25 @@ module Aws::WAFRegional
|
|
2084
2690
|
# * {Types::ListWebACLsResponse#next_marker #next_marker} => String
|
2085
2691
|
# * {Types::ListWebACLsResponse#web_acls #web_acls} => Array<Types::WebACLSummary>
|
2086
2692
|
#
|
2693
|
+
#
|
2694
|
+
# @example Example: To list Web ACLs
|
2695
|
+
#
|
2696
|
+
# # The following example returns an array of up to 100 web ACLs.
|
2697
|
+
#
|
2698
|
+
# resp = client.list_web_acls({
|
2699
|
+
# limit: 100,
|
2700
|
+
# })
|
2701
|
+
#
|
2702
|
+
# resp.to_h outputs the following:
|
2703
|
+
# {
|
2704
|
+
# web_acls: [
|
2705
|
+
# {
|
2706
|
+
# name: "WebACLexample",
|
2707
|
+
# web_acl_id: "webacl-1472061481310",
|
2708
|
+
# },
|
2709
|
+
# ],
|
2710
|
+
# }
|
2711
|
+
#
|
2087
2712
|
# @example Request syntax with placeholder values
|
2088
2713
|
#
|
2089
2714
|
# resp = client.list_web_acls({
|
@@ -2128,6 +2753,25 @@ module Aws::WAFRegional
|
|
2128
2753
|
# * {Types::ListXssMatchSetsResponse#next_marker #next_marker} => String
|
2129
2754
|
# * {Types::ListXssMatchSetsResponse#xss_match_sets #xss_match_sets} => Array<Types::XssMatchSetSummary>
|
2130
2755
|
#
|
2756
|
+
#
|
2757
|
+
# @example Example: To list XSS match sets
|
2758
|
+
#
|
2759
|
+
# # The following example returns an array of up to 100 XSS match sets.
|
2760
|
+
#
|
2761
|
+
# resp = client.list_xss_match_sets({
|
2762
|
+
# limit: 100,
|
2763
|
+
# })
|
2764
|
+
#
|
2765
|
+
# resp.to_h outputs the following:
|
2766
|
+
# {
|
2767
|
+
# xss_match_sets: [
|
2768
|
+
# {
|
2769
|
+
# name: "MySampleXssMatchSet",
|
2770
|
+
# xss_match_set_id: "example1ds3t-46da-4fdb-b8d5-abc321j569j5",
|
2771
|
+
# },
|
2772
|
+
# ],
|
2773
|
+
# }
|
2774
|
+
#
|
2131
2775
|
# @example Request syntax with placeholder values
|
2132
2776
|
#
|
2133
2777
|
# resp = client.list_xss_match_sets({
|
@@ -2220,6 +2864,35 @@ module Aws::WAFRegional
|
|
2220
2864
|
#
|
2221
2865
|
# * {Types::UpdateByteMatchSetResponse#change_token #change_token} => String
|
2222
2866
|
#
|
2867
|
+
#
|
2868
|
+
# @example Example: To update a byte match set
|
2869
|
+
#
|
2870
|
+
# # The following example deletes a ByteMatchTuple object (filters) in an byte match set with the ID exampleIDs3t-46da-4fdb-b8d5-abc321j569j5.
|
2871
|
+
#
|
2872
|
+
# resp = client.update_byte_match_set({
|
2873
|
+
# byte_match_set_id: "exampleIDs3t-46da-4fdb-b8d5-abc321j569j5",
|
2874
|
+
# change_token: "abcd12f2-46da-4fdb-b8d5-fbd4c466928f",
|
2875
|
+
# updates: [
|
2876
|
+
# {
|
2877
|
+
# action: "DELETE",
|
2878
|
+
# byte_match_tuple: {
|
2879
|
+
# field_to_match: {
|
2880
|
+
# data: "referer",
|
2881
|
+
# type: "HEADER",
|
2882
|
+
# },
|
2883
|
+
# positional_constraint: "CONTAINS",
|
2884
|
+
# target_string: "badrefer1",
|
2885
|
+
# text_transformation: "NONE",
|
2886
|
+
# },
|
2887
|
+
# },
|
2888
|
+
# ],
|
2889
|
+
# })
|
2890
|
+
#
|
2891
|
+
# resp.to_h outputs the following:
|
2892
|
+
# {
|
2893
|
+
# change_token: "abcd12f2-46da-4fdb-b8d5-fbd4c466928f",
|
2894
|
+
# }
|
2895
|
+
#
|
2223
2896
|
# @example Request syntax with placeholder values
|
2224
2897
|
#
|
2225
2898
|
# resp = client.update_byte_match_set({
|
@@ -2332,6 +3005,30 @@ module Aws::WAFRegional
|
|
2332
3005
|
#
|
2333
3006
|
# * {Types::UpdateIPSetResponse#change_token #change_token} => String
|
2334
3007
|
#
|
3008
|
+
#
|
3009
|
+
# @example Example: To update an IP set
|
3010
|
+
#
|
3011
|
+
# # The following example deletes an IPSetDescriptor object in an IP match set with the ID example1ds3t-46da-4fdb-b8d5-abc321j569j5.
|
3012
|
+
#
|
3013
|
+
# resp = client.update_ip_set({
|
3014
|
+
# change_token: "abcd12f2-46da-4fdb-b8d5-fbd4c466928f",
|
3015
|
+
# ip_set_id: "example1ds3t-46da-4fdb-b8d5-abc321j569j5",
|
3016
|
+
# updates: [
|
3017
|
+
# {
|
3018
|
+
# action: "DELETE",
|
3019
|
+
# ip_set_descriptor: {
|
3020
|
+
# type: "IPV4",
|
3021
|
+
# value: "192.0.2.44/32",
|
3022
|
+
# },
|
3023
|
+
# },
|
3024
|
+
# ],
|
3025
|
+
# })
|
3026
|
+
#
|
3027
|
+
# resp.to_h outputs the following:
|
3028
|
+
# {
|
3029
|
+
# change_token: "abcd12f2-46da-4fdb-b8d5-fbd4c466928f",
|
3030
|
+
# }
|
3031
|
+
#
|
2335
3032
|
# @example Request syntax with placeholder values
|
2336
3033
|
#
|
2337
3034
|
# resp = client.update_ip_set({
|
@@ -2520,6 +3217,31 @@ module Aws::WAFRegional
|
|
2520
3217
|
#
|
2521
3218
|
# * {Types::UpdateRuleResponse#change_token #change_token} => String
|
2522
3219
|
#
|
3220
|
+
#
|
3221
|
+
# @example Example: To update a rule
|
3222
|
+
#
|
3223
|
+
# # The following example deletes a Predicate object in a rule with the ID example1ds3t-46da-4fdb-b8d5-abc321j569j5.
|
3224
|
+
#
|
3225
|
+
# resp = client.update_rule({
|
3226
|
+
# change_token: "abcd12f2-46da-4fdb-b8d5-fbd4c466928f",
|
3227
|
+
# rule_id: "example1ds3t-46da-4fdb-b8d5-abc321j569j5",
|
3228
|
+
# updates: [
|
3229
|
+
# {
|
3230
|
+
# action: "DELETE",
|
3231
|
+
# predicate: {
|
3232
|
+
# data_id: "MyByteMatchSetID",
|
3233
|
+
# negated: false,
|
3234
|
+
# type: "ByteMatch",
|
3235
|
+
# },
|
3236
|
+
# },
|
3237
|
+
# ],
|
3238
|
+
# })
|
3239
|
+
#
|
3240
|
+
# resp.to_h outputs the following:
|
3241
|
+
# {
|
3242
|
+
# change_token: "abcd12f2-46da-4fdb-b8d5-fbd4c466928f",
|
3243
|
+
# }
|
3244
|
+
#
|
2523
3245
|
# @example Request syntax with placeholder values
|
2524
3246
|
#
|
2525
3247
|
# resp = client.update_rule({
|
@@ -2626,6 +3348,34 @@ module Aws::WAFRegional
|
|
2626
3348
|
#
|
2627
3349
|
# * {Types::UpdateSizeConstraintSetResponse#change_token #change_token} => String
|
2628
3350
|
#
|
3351
|
+
#
|
3352
|
+
# @example Example: To update a size constraint set
|
3353
|
+
#
|
3354
|
+
# # The following example deletes a SizeConstraint object (filters) in a size constraint set with the ID example1ds3t-46da-4fdb-b8d5-abc321j569j5.
|
3355
|
+
#
|
3356
|
+
# resp = client.update_size_constraint_set({
|
3357
|
+
# change_token: "abcd12f2-46da-4fdb-b8d5-fbd4c466928f",
|
3358
|
+
# size_constraint_set_id: "example1ds3t-46da-4fdb-b8d5-abc321j569j5",
|
3359
|
+
# updates: [
|
3360
|
+
# {
|
3361
|
+
# action: "DELETE",
|
3362
|
+
# size_constraint: {
|
3363
|
+
# comparison_operator: "GT",
|
3364
|
+
# field_to_match: {
|
3365
|
+
# type: "QUERY_STRING",
|
3366
|
+
# },
|
3367
|
+
# size: 0,
|
3368
|
+
# text_transformation: "NONE",
|
3369
|
+
# },
|
3370
|
+
# },
|
3371
|
+
# ],
|
3372
|
+
# })
|
3373
|
+
#
|
3374
|
+
# resp.to_h outputs the following:
|
3375
|
+
# {
|
3376
|
+
# change_token: "abcd12f2-46da-4fdb-b8d5-fbd4c466928f",
|
3377
|
+
# }
|
3378
|
+
#
|
2629
3379
|
# @example Request syntax with placeholder values
|
2630
3380
|
#
|
2631
3381
|
# resp = client.update_size_constraint_set({
|
@@ -2727,6 +3477,32 @@ module Aws::WAFRegional
|
|
2727
3477
|
#
|
2728
3478
|
# * {Types::UpdateSqlInjectionMatchSetResponse#change_token #change_token} => String
|
2729
3479
|
#
|
3480
|
+
#
|
3481
|
+
# @example Example: To update a SQL injection match set
|
3482
|
+
#
|
3483
|
+
# # The following example deletes a SqlInjectionMatchTuple object (filters) in a SQL injection match set with the ID example1ds3t-46da-4fdb-b8d5-abc321j569j5.
|
3484
|
+
#
|
3485
|
+
# resp = client.update_sql_injection_match_set({
|
3486
|
+
# change_token: "abcd12f2-46da-4fdb-b8d5-fbd4c466928f",
|
3487
|
+
# sql_injection_match_set_id: "example1ds3t-46da-4fdb-b8d5-abc321j569j5",
|
3488
|
+
# updates: [
|
3489
|
+
# {
|
3490
|
+
# action: "DELETE",
|
3491
|
+
# sql_injection_match_tuple: {
|
3492
|
+
# field_to_match: {
|
3493
|
+
# type: "QUERY_STRING",
|
3494
|
+
# },
|
3495
|
+
# text_transformation: "URL_DECODE",
|
3496
|
+
# },
|
3497
|
+
# },
|
3498
|
+
# ],
|
3499
|
+
# })
|
3500
|
+
#
|
3501
|
+
# resp.to_h outputs the following:
|
3502
|
+
# {
|
3503
|
+
# change_token: "abcd12f2-46da-4fdb-b8d5-fbd4c466928f",
|
3504
|
+
# }
|
3505
|
+
#
|
2730
3506
|
# @example Request syntax with placeholder values
|
2731
3507
|
#
|
2732
3508
|
# resp = client.update_sql_injection_match_set({
|
@@ -2845,6 +3621,36 @@ module Aws::WAFRegional
|
|
2845
3621
|
#
|
2846
3622
|
# * {Types::UpdateWebACLResponse#change_token #change_token} => String
|
2847
3623
|
#
|
3624
|
+
#
|
3625
|
+
# @example Example: To update a Web ACL
|
3626
|
+
#
|
3627
|
+
# # The following example deletes an ActivatedRule object in a WebACL with the ID webacl-1472061481310.
|
3628
|
+
#
|
3629
|
+
# resp = client.update_web_acl({
|
3630
|
+
# change_token: "abcd12f2-46da-4fdb-b8d5-fbd4c466928f",
|
3631
|
+
# default_action: {
|
3632
|
+
# type: "ALLOW",
|
3633
|
+
# },
|
3634
|
+
# updates: [
|
3635
|
+
# {
|
3636
|
+
# action: "DELETE",
|
3637
|
+
# activated_rule: {
|
3638
|
+
# action: {
|
3639
|
+
# type: "ALLOW",
|
3640
|
+
# },
|
3641
|
+
# priority: 1,
|
3642
|
+
# rule_id: "WAFRule-1-Example",
|
3643
|
+
# },
|
3644
|
+
# },
|
3645
|
+
# ],
|
3646
|
+
# web_acl_id: "webacl-1472061481310",
|
3647
|
+
# })
|
3648
|
+
#
|
3649
|
+
# resp.to_h outputs the following:
|
3650
|
+
# {
|
3651
|
+
# change_token: "abcd12f2-46da-4fdb-b8d5-fbd4c466928f",
|
3652
|
+
# }
|
3653
|
+
#
|
2848
3654
|
# @example Request syntax with placeholder values
|
2849
3655
|
#
|
2850
3656
|
# resp = client.update_web_acl({
|
@@ -2944,6 +3750,32 @@ module Aws::WAFRegional
|
|
2944
3750
|
#
|
2945
3751
|
# * {Types::UpdateXssMatchSetResponse#change_token #change_token} => String
|
2946
3752
|
#
|
3753
|
+
#
|
3754
|
+
# @example Example: To update an XSS match set
|
3755
|
+
#
|
3756
|
+
# # The following example deletes an XssMatchTuple object (filters) in an XssMatchSet with the ID example1ds3t-46da-4fdb-b8d5-abc321j569j5.
|
3757
|
+
#
|
3758
|
+
# resp = client.update_xss_match_set({
|
3759
|
+
# change_token: "abcd12f2-46da-4fdb-b8d5-fbd4c466928f",
|
3760
|
+
# updates: [
|
3761
|
+
# {
|
3762
|
+
# action: "DELETE",
|
3763
|
+
# xss_match_tuple: {
|
3764
|
+
# field_to_match: {
|
3765
|
+
# type: "QUERY_STRING",
|
3766
|
+
# },
|
3767
|
+
# text_transformation: "URL_DECODE",
|
3768
|
+
# },
|
3769
|
+
# },
|
3770
|
+
# ],
|
3771
|
+
# xss_match_set_id: "example1ds3t-46da-4fdb-b8d5-abc321j569j5",
|
3772
|
+
# })
|
3773
|
+
#
|
3774
|
+
# resp.to_h outputs the following:
|
3775
|
+
# {
|
3776
|
+
# change_token: "abcd12f2-46da-4fdb-b8d5-fbd4c466928f",
|
3777
|
+
# }
|
3778
|
+
#
|
2947
3779
|
# @example Request syntax with placeholder values
|
2948
3780
|
#
|
2949
3781
|
# resp = client.update_xss_match_set({
|
@@ -2989,7 +3821,7 @@ module Aws::WAFRegional
|
|
2989
3821
|
params: params,
|
2990
3822
|
config: config)
|
2991
3823
|
context[:gem_name] = 'aws-sdk-wafregional'
|
2992
|
-
context[:gem_version] = '1.0.0.
|
3824
|
+
context[:gem_version] = '1.0.0.rc9'
|
2993
3825
|
Seahorse::Client::Request.new(handlers, context)
|
2994
3826
|
end
|
2995
3827
|
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: aws-sdk-wafregional
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 1.0.0.
|
4
|
+
version: 1.0.0.rc9
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Amazon Web Services
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2017-06-
|
11
|
+
date: 2017-06-29 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: aws-sdk-core
|
@@ -16,14 +16,14 @@ dependencies:
|
|
16
16
|
requirements:
|
17
17
|
- - "~>"
|
18
18
|
- !ruby/object:Gem::Version
|
19
|
-
version: 3.0.0.
|
19
|
+
version: 3.0.0.rc14
|
20
20
|
type: :runtime
|
21
21
|
prerelease: false
|
22
22
|
version_requirements: !ruby/object:Gem::Requirement
|
23
23
|
requirements:
|
24
24
|
- - "~>"
|
25
25
|
- !ruby/object:Gem::Version
|
26
|
-
version: 3.0.0.
|
26
|
+
version: 3.0.0.rc14
|
27
27
|
- !ruby/object:Gem::Dependency
|
28
28
|
name: aws-sigv4
|
29
29
|
requirement: !ruby/object:Gem::Requirement
|