aws-sdk-wafregional 1.2.0 → 1.3.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/aws-sdk-wafregional.rb +1 -1
- data/lib/aws-sdk-wafregional/client.rb +403 -19
- data/lib/aws-sdk-wafregional/client_api.rb +191 -1
- data/lib/aws-sdk-wafregional/types.rb +577 -17
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 2c900ea537ae6013975b336d2a785039647ca4d2
|
4
|
+
data.tar.gz: 95ad53f3593d761fdc7b1b78414e013f1f321001
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 866390100efbe5e51161bfd7656dcadc261776c17418fadc155f100ed8f84c72332bb53cefbe5a55c0d74f2c057b582f1fb6cfdb463807d26799c5c9bbee85e1
|
7
|
+
data.tar.gz: bf6bec3414533b9cb9217ffa2aed3b67ea643766b9e8e0db5d207634ad22a16b09013d62028ac503da3ccc8faa6db3558db3d4fd7772a0a50d9597166f15902c
|
data/lib/aws-sdk-wafregional.rb
CHANGED
@@ -788,6 +788,68 @@ module Aws::WAFRegional
|
|
788
788
|
req.send_request(options)
|
789
789
|
end
|
790
790
|
|
791
|
+
# Creates a `RuleGroup`. A rule group is a collection of predefined
|
792
|
+
# rules that you add to a web ACL. You use UpdateRuleGroup to add rules
|
793
|
+
# to the rule group.
|
794
|
+
#
|
795
|
+
# Rule groups are subject to the following limits:
|
796
|
+
#
|
797
|
+
# * Three rule groups per account. You can request an increase to this
|
798
|
+
# limit by contacting customer support.
|
799
|
+
#
|
800
|
+
# * One rule group per web ACL.
|
801
|
+
#
|
802
|
+
# * Ten rules per rule group.
|
803
|
+
#
|
804
|
+
# For more information about how to use the AWS WAF API to allow or
|
805
|
+
# block HTTP requests, see the [AWS WAF Developer Guide][1].
|
806
|
+
#
|
807
|
+
#
|
808
|
+
#
|
809
|
+
# [1]: http://docs.aws.amazon.com/waf/latest/developerguide/
|
810
|
+
#
|
811
|
+
# @option params [required, String] :name
|
812
|
+
# A friendly name or description of the RuleGroup. You can't change
|
813
|
+
# `Name` after you create a `RuleGroup`.
|
814
|
+
#
|
815
|
+
# @option params [required, String] :metric_name
|
816
|
+
# A friendly name or description for the metrics for this `RuleGroup`.
|
817
|
+
# The name can contain only alphanumeric characters (A-Z, a-z, 0-9); the
|
818
|
+
# name can't contain whitespace. You can't change the name of the
|
819
|
+
# metric after you create the `RuleGroup`.
|
820
|
+
#
|
821
|
+
# @option params [required, String] :change_token
|
822
|
+
# The value returned by the most recent call to GetChangeToken.
|
823
|
+
#
|
824
|
+
# @return [Types::CreateRuleGroupResponse] Returns a {Seahorse::Client::Response response} object which responds to the following methods:
|
825
|
+
#
|
826
|
+
# * {Types::CreateRuleGroupResponse#rule_group #rule_group} => Types::RuleGroup
|
827
|
+
# * {Types::CreateRuleGroupResponse#change_token #change_token} => String
|
828
|
+
#
|
829
|
+
# @example Request syntax with placeholder values
|
830
|
+
#
|
831
|
+
# resp = client.create_rule_group({
|
832
|
+
# name: "ResourceName", # required
|
833
|
+
# metric_name: "MetricName", # required
|
834
|
+
# change_token: "ChangeToken", # required
|
835
|
+
# })
|
836
|
+
#
|
837
|
+
# @example Response structure
|
838
|
+
#
|
839
|
+
# resp.rule_group.rule_group_id #=> String
|
840
|
+
# resp.rule_group.name #=> String
|
841
|
+
# resp.rule_group.metric_name #=> String
|
842
|
+
# resp.change_token #=> String
|
843
|
+
#
|
844
|
+
# @see http://docs.aws.amazon.com/goto/WebAPI/waf-regional-2016-11-28/CreateRuleGroup AWS API Documentation
|
845
|
+
#
|
846
|
+
# @overload create_rule_group(params = {})
|
847
|
+
# @param [Hash] params ({})
|
848
|
+
def create_rule_group(params = {}, options = {})
|
849
|
+
req = build_request(:create_rule_group, params)
|
850
|
+
req.send_request(options)
|
851
|
+
end
|
852
|
+
|
791
853
|
# Creates a `SizeConstraintSet`. You then use UpdateSizeConstraintSet to
|
792
854
|
# identify the part of a web request that you want AWS WAF to check for
|
793
855
|
# length, such as the length of the `User-Agent` header or the length of
|
@@ -1100,7 +1162,8 @@ module Aws::WAFRegional
|
|
1100
1162
|
# resp.web_acl.rules[0].priority #=> Integer
|
1101
1163
|
# resp.web_acl.rules[0].rule_id #=> String
|
1102
1164
|
# resp.web_acl.rules[0].action.type #=> String, one of "BLOCK", "ALLOW", "COUNT"
|
1103
|
-
# resp.web_acl.rules[0].type #=> String, one of "
|
1165
|
+
# resp.web_acl.rules[0].override_action.type #=> String, one of "NONE", "COUNT"
|
1166
|
+
# resp.web_acl.rules[0].type #=> String, one of "REGULAR", "RATE_BASED", "GROUP"
|
1104
1167
|
# resp.change_token #=> String
|
1105
1168
|
#
|
1106
1169
|
# @see http://docs.aws.amazon.com/goto/WebAPI/waf-regional-2016-11-28/CreateWebACL AWS API Documentation
|
@@ -1575,6 +1638,55 @@ module Aws::WAFRegional
|
|
1575
1638
|
req.send_request(options)
|
1576
1639
|
end
|
1577
1640
|
|
1641
|
+
# Permanently deletes a RuleGroup. You can't delete a `RuleGroup` if
|
1642
|
+
# it's still used in any `WebACL` objects or if it still includes any
|
1643
|
+
# rules.
|
1644
|
+
#
|
1645
|
+
# If you just want to remove a `RuleGroup` from a `WebACL`, use
|
1646
|
+
# UpdateWebACL.
|
1647
|
+
#
|
1648
|
+
# To permanently delete a `RuleGroup` from AWS WAF, perform the
|
1649
|
+
# following steps:
|
1650
|
+
#
|
1651
|
+
# 1. Update the `RuleGroup` to remove rules, if any. For more
|
1652
|
+
# information, see UpdateRuleGroup.
|
1653
|
+
#
|
1654
|
+
# 2. Use GetChangeToken to get the change token that you provide in the
|
1655
|
+
# `ChangeToken` parameter of a `DeleteRuleGroup` request.
|
1656
|
+
#
|
1657
|
+
# 3. Submit a `DeleteRuleGroup` request.
|
1658
|
+
#
|
1659
|
+
# @option params [required, String] :rule_group_id
|
1660
|
+
# The `RuleGroupId` of the RuleGroup that you want to delete.
|
1661
|
+
# `RuleGroupId` is returned by CreateRuleGroup and by ListRuleGroups.
|
1662
|
+
#
|
1663
|
+
# @option params [required, String] :change_token
|
1664
|
+
# The value returned by the most recent call to GetChangeToken.
|
1665
|
+
#
|
1666
|
+
# @return [Types::DeleteRuleGroupResponse] Returns a {Seahorse::Client::Response response} object which responds to the following methods:
|
1667
|
+
#
|
1668
|
+
# * {Types::DeleteRuleGroupResponse#change_token #change_token} => String
|
1669
|
+
#
|
1670
|
+
# @example Request syntax with placeholder values
|
1671
|
+
#
|
1672
|
+
# resp = client.delete_rule_group({
|
1673
|
+
# rule_group_id: "ResourceId", # required
|
1674
|
+
# change_token: "ChangeToken", # required
|
1675
|
+
# })
|
1676
|
+
#
|
1677
|
+
# @example Response structure
|
1678
|
+
#
|
1679
|
+
# resp.change_token #=> String
|
1680
|
+
#
|
1681
|
+
# @see http://docs.aws.amazon.com/goto/WebAPI/waf-regional-2016-11-28/DeleteRuleGroup AWS API Documentation
|
1682
|
+
#
|
1683
|
+
# @overload delete_rule_group(params = {})
|
1684
|
+
# @param [Hash] params ({})
|
1685
|
+
def delete_rule_group(params = {}, options = {})
|
1686
|
+
req = build_request(:delete_rule_group, params)
|
1687
|
+
req.send_request(options)
|
1688
|
+
end
|
1689
|
+
|
1578
1690
|
# Permanently deletes a SizeConstraintSet. You can't delete a
|
1579
1691
|
# `SizeConstraintSet` if it's still used in any `Rules` or if it still
|
1580
1692
|
# includes any SizeConstraint objects (any filters).
|
@@ -2316,6 +2428,40 @@ module Aws::WAFRegional
|
|
2316
2428
|
req.send_request(options)
|
2317
2429
|
end
|
2318
2430
|
|
2431
|
+
# Returns the RuleGroup that is specified by the `RuleGroupId` that you
|
2432
|
+
# included in the `GetRuleGroup` request.
|
2433
|
+
#
|
2434
|
+
# To view the rules in a rule group, use ListActivatedRulesInRuleGroup.
|
2435
|
+
#
|
2436
|
+
# @option params [required, String] :rule_group_id
|
2437
|
+
# The `RuleGroupId` of the RuleGroup that you want to get. `RuleGroupId`
|
2438
|
+
# is returned by CreateRuleGroup and by ListRuleGroups.
|
2439
|
+
#
|
2440
|
+
# @return [Types::GetRuleGroupResponse] Returns a {Seahorse::Client::Response response} object which responds to the following methods:
|
2441
|
+
#
|
2442
|
+
# * {Types::GetRuleGroupResponse#rule_group #rule_group} => Types::RuleGroup
|
2443
|
+
#
|
2444
|
+
# @example Request syntax with placeholder values
|
2445
|
+
#
|
2446
|
+
# resp = client.get_rule_group({
|
2447
|
+
# rule_group_id: "ResourceId", # required
|
2448
|
+
# })
|
2449
|
+
#
|
2450
|
+
# @example Response structure
|
2451
|
+
#
|
2452
|
+
# resp.rule_group.rule_group_id #=> String
|
2453
|
+
# resp.rule_group.name #=> String
|
2454
|
+
# resp.rule_group.metric_name #=> String
|
2455
|
+
#
|
2456
|
+
# @see http://docs.aws.amazon.com/goto/WebAPI/waf-regional-2016-11-28/GetRuleGroup AWS API Documentation
|
2457
|
+
#
|
2458
|
+
# @overload get_rule_group(params = {})
|
2459
|
+
# @param [Hash] params ({})
|
2460
|
+
def get_rule_group(params = {}, options = {})
|
2461
|
+
req = build_request(:get_rule_group, params)
|
2462
|
+
req.send_request(options)
|
2463
|
+
end
|
2464
|
+
|
2319
2465
|
# Gets detailed information about a specified number of requests--a
|
2320
2466
|
# sample--that AWS WAF randomly selects from among the first 5,000
|
2321
2467
|
# requests that your AWS resource received during a time range that you
|
@@ -2334,10 +2480,11 @@ module Aws::WAFRegional
|
|
2334
2480
|
# to return a sample of requests.
|
2335
2481
|
#
|
2336
2482
|
# @option params [required, String] :rule_id
|
2337
|
-
# `RuleId` is one of
|
2483
|
+
# `RuleId` is one of three values:
|
2338
2484
|
#
|
2339
|
-
# * The `RuleId` of the `Rule`
|
2340
|
-
# to return a sample of
|
2485
|
+
# * The `RuleId` of the `Rule` or the `RuleGroupId` of the `RuleGroup`
|
2486
|
+
# for which you want `GetSampledRequests` to return a sample of
|
2487
|
+
# requests.
|
2341
2488
|
#
|
2342
2489
|
# * `Default_Action`, which causes `GetSampledRequests` to return a
|
2343
2490
|
# sample of the requests that didn't match any of the rules in the
|
@@ -2434,6 +2581,7 @@ module Aws::WAFRegional
|
|
2434
2581
|
# resp.sampled_requests[0].weight #=> Integer
|
2435
2582
|
# resp.sampled_requests[0].timestamp #=> Time
|
2436
2583
|
# resp.sampled_requests[0].action #=> String
|
2584
|
+
# resp.sampled_requests[0].rule_within_rule_group #=> String
|
2437
2585
|
# resp.population_size #=> Integer
|
2438
2586
|
# resp.time_window.start_time #=> Time
|
2439
2587
|
# resp.time_window.end_time #=> Time
|
@@ -2630,7 +2778,8 @@ module Aws::WAFRegional
|
|
2630
2778
|
# resp.web_acl.rules[0].priority #=> Integer
|
2631
2779
|
# resp.web_acl.rules[0].rule_id #=> String
|
2632
2780
|
# resp.web_acl.rules[0].action.type #=> String, one of "BLOCK", "ALLOW", "COUNT"
|
2633
|
-
# resp.web_acl.rules[0].type #=> String, one of "
|
2781
|
+
# resp.web_acl.rules[0].override_action.type #=> String, one of "NONE", "COUNT"
|
2782
|
+
# resp.web_acl.rules[0].type #=> String, one of "REGULAR", "RATE_BASED", "GROUP"
|
2634
2783
|
#
|
2635
2784
|
# @see http://docs.aws.amazon.com/goto/WebAPI/waf-regional-2016-11-28/GetWebACL AWS API Documentation
|
2636
2785
|
#
|
@@ -2731,6 +2880,59 @@ module Aws::WAFRegional
|
|
2731
2880
|
req.send_request(options)
|
2732
2881
|
end
|
2733
2882
|
|
2883
|
+
# Returns an array of ActivatedRule objects.
|
2884
|
+
#
|
2885
|
+
# @option params [String] :rule_group_id
|
2886
|
+
# The `RuleGroupId` of the RuleGroup for which you want to get a list of
|
2887
|
+
# ActivatedRule objects.
|
2888
|
+
#
|
2889
|
+
# @option params [String] :next_marker
|
2890
|
+
# If you specify a value for `Limit` and you have more `ActivatedRules`
|
2891
|
+
# than the value of `Limit`, AWS WAF returns a `NextMarker` value in the
|
2892
|
+
# response that allows you to list another group of `ActivatedRules`.
|
2893
|
+
# For the second and subsequent `ListActivatedRulesInRuleGroup`
|
2894
|
+
# requests, specify the value of `NextMarker` from the previous response
|
2895
|
+
# to get information about another batch of `ActivatedRules`.
|
2896
|
+
#
|
2897
|
+
# @option params [Integer] :limit
|
2898
|
+
# Specifies the number of `ActivatedRules` that you want AWS WAF to
|
2899
|
+
# return for this request. If you have more `ActivatedRules` than the
|
2900
|
+
# number that you specify for `Limit`, the response includes a
|
2901
|
+
# `NextMarker` value that you can use to get another batch of
|
2902
|
+
# `ActivatedRules`.
|
2903
|
+
#
|
2904
|
+
# @return [Types::ListActivatedRulesInRuleGroupResponse] Returns a {Seahorse::Client::Response response} object which responds to the following methods:
|
2905
|
+
#
|
2906
|
+
# * {Types::ListActivatedRulesInRuleGroupResponse#next_marker #next_marker} => String
|
2907
|
+
# * {Types::ListActivatedRulesInRuleGroupResponse#activated_rules #activated_rules} => Array<Types::ActivatedRule>
|
2908
|
+
#
|
2909
|
+
# @example Request syntax with placeholder values
|
2910
|
+
#
|
2911
|
+
# resp = client.list_activated_rules_in_rule_group({
|
2912
|
+
# rule_group_id: "ResourceId",
|
2913
|
+
# next_marker: "NextMarker",
|
2914
|
+
# limit: 1,
|
2915
|
+
# })
|
2916
|
+
#
|
2917
|
+
# @example Response structure
|
2918
|
+
#
|
2919
|
+
# resp.next_marker #=> String
|
2920
|
+
# resp.activated_rules #=> Array
|
2921
|
+
# resp.activated_rules[0].priority #=> Integer
|
2922
|
+
# resp.activated_rules[0].rule_id #=> String
|
2923
|
+
# resp.activated_rules[0].action.type #=> String, one of "BLOCK", "ALLOW", "COUNT"
|
2924
|
+
# resp.activated_rules[0].override_action.type #=> String, one of "NONE", "COUNT"
|
2925
|
+
# resp.activated_rules[0].type #=> String, one of "REGULAR", "RATE_BASED", "GROUP"
|
2926
|
+
#
|
2927
|
+
# @see http://docs.aws.amazon.com/goto/WebAPI/waf-regional-2016-11-28/ListActivatedRulesInRuleGroup AWS API Documentation
|
2928
|
+
#
|
2929
|
+
# @overload list_activated_rules_in_rule_group(params = {})
|
2930
|
+
# @param [Hash] params ({})
|
2931
|
+
def list_activated_rules_in_rule_group(params = {}, options = {})
|
2932
|
+
req = build_request(:list_activated_rules_in_rule_group, params)
|
2933
|
+
req.send_request(options)
|
2934
|
+
end
|
2935
|
+
|
2734
2936
|
# Returns an array of ByteMatchSetSummary objects.
|
2735
2937
|
#
|
2736
2938
|
# @option params [String] :next_marker
|
@@ -3049,6 +3251,50 @@ module Aws::WAFRegional
|
|
3049
3251
|
req.send_request(options)
|
3050
3252
|
end
|
3051
3253
|
|
3254
|
+
# Returns an array of RuleGroup objects.
|
3255
|
+
#
|
3256
|
+
# @option params [String] :next_marker
|
3257
|
+
# If you specify a value for `Limit` and you have more `RuleGroups` than
|
3258
|
+
# the value of `Limit`, AWS WAF returns a `NextMarker` value in the
|
3259
|
+
# response that allows you to list another group of `RuleGroups`. For
|
3260
|
+
# the second and subsequent `ListRuleGroups` requests, specify the value
|
3261
|
+
# of `NextMarker` from the previous response to get information about
|
3262
|
+
# another batch of `RuleGroups`.
|
3263
|
+
#
|
3264
|
+
# @option params [Integer] :limit
|
3265
|
+
# Specifies the number of `RuleGroups` that you want AWS WAF to return
|
3266
|
+
# for this request. If you have more `RuleGroups` than the number that
|
3267
|
+
# you specify for `Limit`, the response includes a `NextMarker` value
|
3268
|
+
# that you can use to get another batch of `RuleGroups`.
|
3269
|
+
#
|
3270
|
+
# @return [Types::ListRuleGroupsResponse] Returns a {Seahorse::Client::Response response} object which responds to the following methods:
|
3271
|
+
#
|
3272
|
+
# * {Types::ListRuleGroupsResponse#next_marker #next_marker} => String
|
3273
|
+
# * {Types::ListRuleGroupsResponse#rule_groups #rule_groups} => Array<Types::RuleGroupSummary>
|
3274
|
+
#
|
3275
|
+
# @example Request syntax with placeholder values
|
3276
|
+
#
|
3277
|
+
# resp = client.list_rule_groups({
|
3278
|
+
# next_marker: "NextMarker",
|
3279
|
+
# limit: 1,
|
3280
|
+
# })
|
3281
|
+
#
|
3282
|
+
# @example Response structure
|
3283
|
+
#
|
3284
|
+
# resp.next_marker #=> String
|
3285
|
+
# resp.rule_groups #=> Array
|
3286
|
+
# resp.rule_groups[0].rule_group_id #=> String
|
3287
|
+
# resp.rule_groups[0].name #=> String
|
3288
|
+
#
|
3289
|
+
# @see http://docs.aws.amazon.com/goto/WebAPI/waf-regional-2016-11-28/ListRuleGroups AWS API Documentation
|
3290
|
+
#
|
3291
|
+
# @overload list_rule_groups(params = {})
|
3292
|
+
# @param [Hash] params ({})
|
3293
|
+
def list_rule_groups(params = {}, options = {})
|
3294
|
+
req = build_request(:list_rule_groups, params)
|
3295
|
+
req.send_request(options)
|
3296
|
+
end
|
3297
|
+
|
3052
3298
|
# Returns an array of RuleSummary objects.
|
3053
3299
|
#
|
3054
3300
|
# @option params [String] :next_marker
|
@@ -3242,6 +3488,52 @@ module Aws::WAFRegional
|
|
3242
3488
|
req.send_request(options)
|
3243
3489
|
end
|
3244
3490
|
|
3491
|
+
# Returns an array of RuleGroup objects that you are subscribed to.
|
3492
|
+
#
|
3493
|
+
# @option params [String] :next_marker
|
3494
|
+
# If you specify a value for `Limit` and you have more
|
3495
|
+
# `ByteMatchSets`subscribed rule groups than the value of `Limit`, AWS
|
3496
|
+
# WAF returns a `NextMarker` value in the response that allows you to
|
3497
|
+
# list another group of subscribed rule groups. For the second and
|
3498
|
+
# subsequent `ListSubscribedRuleGroupsRequest` requests, specify the
|
3499
|
+
# value of `NextMarker` from the previous response to get information
|
3500
|
+
# about another batch of subscribed rule groups.
|
3501
|
+
#
|
3502
|
+
# @option params [Integer] :limit
|
3503
|
+
# Specifies the number of subscribed rule groups that you want AWS WAF
|
3504
|
+
# to return for this request. If you have more objects than the number
|
3505
|
+
# you specify for `Limit`, the response includes a `NextMarker` value
|
3506
|
+
# that you can use to get another batch of objects.
|
3507
|
+
#
|
3508
|
+
# @return [Types::ListSubscribedRuleGroupsResponse] Returns a {Seahorse::Client::Response response} object which responds to the following methods:
|
3509
|
+
#
|
3510
|
+
# * {Types::ListSubscribedRuleGroupsResponse#next_marker #next_marker} => String
|
3511
|
+
# * {Types::ListSubscribedRuleGroupsResponse#rule_groups #rule_groups} => Array<Types::SubscribedRuleGroupSummary>
|
3512
|
+
#
|
3513
|
+
# @example Request syntax with placeholder values
|
3514
|
+
#
|
3515
|
+
# resp = client.list_subscribed_rule_groups({
|
3516
|
+
# next_marker: "NextMarker",
|
3517
|
+
# limit: 1,
|
3518
|
+
# })
|
3519
|
+
#
|
3520
|
+
# @example Response structure
|
3521
|
+
#
|
3522
|
+
# resp.next_marker #=> String
|
3523
|
+
# resp.rule_groups #=> Array
|
3524
|
+
# resp.rule_groups[0].rule_group_id #=> String
|
3525
|
+
# resp.rule_groups[0].name #=> String
|
3526
|
+
# resp.rule_groups[0].metric_name #=> String
|
3527
|
+
#
|
3528
|
+
# @see http://docs.aws.amazon.com/goto/WebAPI/waf-regional-2016-11-28/ListSubscribedRuleGroups AWS API Documentation
|
3529
|
+
#
|
3530
|
+
# @overload list_subscribed_rule_groups(params = {})
|
3531
|
+
# @param [Hash] params ({})
|
3532
|
+
def list_subscribed_rule_groups(params = {}, options = {})
|
3533
|
+
req = build_request(:list_subscribed_rule_groups, params)
|
3534
|
+
req.send_request(options)
|
3535
|
+
end
|
3536
|
+
|
3245
3537
|
# Returns an array of WebACLSummary objects in the response.
|
3246
3538
|
#
|
3247
3539
|
# @option params [String] :next_marker
|
@@ -3817,7 +4109,7 @@ module Aws::WAFRegional
|
|
3817
4109
|
req.send_request(options)
|
3818
4110
|
end
|
3819
4111
|
|
3820
|
-
# Inserts or deletes
|
4112
|
+
# Inserts or deletes RegexMatchTuple objects (filters) in a
|
3821
4113
|
# RegexMatchSet. For each `RegexMatchSetUpdate` object, you specify the
|
3822
4114
|
# following values:
|
3823
4115
|
#
|
@@ -3825,8 +4117,8 @@ module Aws::WAFRegional
|
|
3825
4117
|
# to change a `RegexMatchSetUpdate` object, you delete the existing
|
3826
4118
|
# object and add a new one.
|
3827
4119
|
#
|
3828
|
-
# * The part of a web request that you want AWS WAF to
|
3829
|
-
# a query string or the value of the `User-Agent` header.
|
4120
|
+
# * The part of a web request that you want AWS WAF to inspectupdate,
|
4121
|
+
# such as a query string or the value of the `User-Agent` header.
|
3830
4122
|
#
|
3831
4123
|
# * The identifier of the pattern (a regular expression) that you want
|
3832
4124
|
# AWS WAF to look for. For more information, see RegexPatternSet.
|
@@ -3912,15 +4204,13 @@ module Aws::WAFRegional
|
|
3912
4204
|
req.send_request(options)
|
3913
4205
|
end
|
3914
4206
|
|
3915
|
-
# Inserts or deletes
|
3916
|
-
#
|
3917
|
-
#
|
4207
|
+
# Inserts or deletes `RegexPatternString` objects in a RegexPatternSet.
|
4208
|
+
# For each `RegexPatternString` object, you specify the following
|
4209
|
+
# values:
|
3918
4210
|
#
|
3919
|
-
# * Whether to insert or delete the
|
3920
|
-
# to change a `RegexPatternSet` object, you delete the existing object
|
3921
|
-
# and add a new one.
|
4211
|
+
# * Whether to insert or delete the `RegexPatternString`.
|
3922
4212
|
#
|
3923
|
-
# * The regular expression pattern that you want
|
4213
|
+
# * The regular expression pattern that you want to insert or delete.
|
3924
4214
|
# For more information, see RegexPatternSet.
|
3925
4215
|
#
|
3926
4216
|
# For example, you can create a `RegexPatternString` such as
|
@@ -4114,6 +4404,93 @@ module Aws::WAFRegional
|
|
4114
4404
|
req.send_request(options)
|
4115
4405
|
end
|
4116
4406
|
|
4407
|
+
# Inserts or deletes ActivatedRule objects in a `RuleGroup`.
|
4408
|
+
#
|
4409
|
+
# You can only insert `REGULAR` rules into a rule group.
|
4410
|
+
#
|
4411
|
+
# You can have a maximum of ten rules per rule group.
|
4412
|
+
#
|
4413
|
+
# To create and configure a `RuleGroup`, perform the following steps:
|
4414
|
+
#
|
4415
|
+
# 1. Create and update the `Rules` that you want to include in the
|
4416
|
+
# `RuleGroup`. See CreateRule.
|
4417
|
+
#
|
4418
|
+
# 2. Use `GetChangeToken` to get the change token that you provide in
|
4419
|
+
# the `ChangeToken` parameter of an UpdateRuleGroup request.
|
4420
|
+
#
|
4421
|
+
# 3. Submit an `UpdateRuleGroup` request to add `Rules` to the
|
4422
|
+
# `RuleGroup`.
|
4423
|
+
#
|
4424
|
+
# 4. Create and update a `WebACL` that contains the `RuleGroup`. See
|
4425
|
+
# CreateWebACL.
|
4426
|
+
#
|
4427
|
+
# If you want to replace one `Rule` with another, you delete the
|
4428
|
+
# existing one and add the new one.
|
4429
|
+
#
|
4430
|
+
# For more information about how to use the AWS WAF API to allow or
|
4431
|
+
# block HTTP requests, see the [AWS WAF Developer Guide][1].
|
4432
|
+
#
|
4433
|
+
#
|
4434
|
+
#
|
4435
|
+
# [1]: http://docs.aws.amazon.com/waf/latest/developerguide/
|
4436
|
+
#
|
4437
|
+
# @option params [required, String] :rule_group_id
|
4438
|
+
# The `RuleGroupId` of the RuleGroup that you want to update.
|
4439
|
+
# `RuleGroupId` is returned by CreateRuleGroup and by ListRuleGroups.
|
4440
|
+
#
|
4441
|
+
# @option params [required, Array<Types::RuleGroupUpdate>] :updates
|
4442
|
+
# An array of `RuleGroupUpdate` objects that you want to insert into or
|
4443
|
+
# delete from a RuleGroup.
|
4444
|
+
#
|
4445
|
+
# You can only insert `REGULAR` rules into a rule group.
|
4446
|
+
#
|
4447
|
+
# The `Action` data type within `ActivatedRule` is used only when
|
4448
|
+
# submitting an `UpdateWebACL` request. `ActivatedRule|Action` is not
|
4449
|
+
# applicable and therefore not available for `UpdateRuleGroup`.
|
4450
|
+
#
|
4451
|
+
# @option params [required, String] :change_token
|
4452
|
+
# The value returned by the most recent call to GetChangeToken.
|
4453
|
+
#
|
4454
|
+
# @return [Types::UpdateRuleGroupResponse] Returns a {Seahorse::Client::Response response} object which responds to the following methods:
|
4455
|
+
#
|
4456
|
+
# * {Types::UpdateRuleGroupResponse#change_token #change_token} => String
|
4457
|
+
#
|
4458
|
+
# @example Request syntax with placeholder values
|
4459
|
+
#
|
4460
|
+
# resp = client.update_rule_group({
|
4461
|
+
# rule_group_id: "ResourceId", # required
|
4462
|
+
# updates: [ # required
|
4463
|
+
# {
|
4464
|
+
# action: "INSERT", # required, accepts INSERT, DELETE
|
4465
|
+
# activated_rule: { # required
|
4466
|
+
# priority: 1, # required
|
4467
|
+
# rule_id: "ResourceId", # required
|
4468
|
+
# action: {
|
4469
|
+
# type: "BLOCK", # required, accepts BLOCK, ALLOW, COUNT
|
4470
|
+
# },
|
4471
|
+
# override_action: {
|
4472
|
+
# type: "NONE", # required, accepts NONE, COUNT
|
4473
|
+
# },
|
4474
|
+
# type: "REGULAR", # accepts REGULAR, RATE_BASED, GROUP
|
4475
|
+
# },
|
4476
|
+
# },
|
4477
|
+
# ],
|
4478
|
+
# change_token: "ChangeToken", # required
|
4479
|
+
# })
|
4480
|
+
#
|
4481
|
+
# @example Response structure
|
4482
|
+
#
|
4483
|
+
# resp.change_token #=> String
|
4484
|
+
#
|
4485
|
+
# @see http://docs.aws.amazon.com/goto/WebAPI/waf-regional-2016-11-28/UpdateRuleGroup AWS API Documentation
|
4486
|
+
#
|
4487
|
+
# @overload update_rule_group(params = {})
|
4488
|
+
# @param [Hash] params ({})
|
4489
|
+
def update_rule_group(params = {}, options = {})
|
4490
|
+
req = build_request(:update_rule_group, params)
|
4491
|
+
req.send_request(options)
|
4492
|
+
end
|
4493
|
+
|
4117
4494
|
# Inserts or deletes SizeConstraint objects (filters) in a
|
4118
4495
|
# SizeConstraintSet. For each `SizeConstraint` object, you specify the
|
4119
4496
|
# following values:
|
@@ -4452,7 +4829,11 @@ module Aws::WAFRegional
|
|
4452
4829
|
#
|
4453
4830
|
# * WebACLUpdate: Contains `Action` and `ActivatedRule`
|
4454
4831
|
#
|
4455
|
-
# * ActivatedRule: Contains `Action`, `Priority`, `RuleId`, and `Type
|
4832
|
+
# * ActivatedRule: Contains `Action`, `Priority`, `RuleId`, and `Type`.
|
4833
|
+
# The `OverrideAction` data type within `ActivatedRule` is used only
|
4834
|
+
# when submitting an `UpdateRuleGroup` request.
|
4835
|
+
# `ActivatedRule|OverrideAction` is not applicable and therefore not
|
4836
|
+
# available for `UpdateWebACL`.
|
4456
4837
|
#
|
4457
4838
|
# * WafAction: Contains `Type`
|
4458
4839
|
#
|
@@ -4506,10 +4887,13 @@ module Aws::WAFRegional
|
|
4506
4887
|
# activated_rule: { # required
|
4507
4888
|
# priority: 1, # required
|
4508
4889
|
# rule_id: "ResourceId", # required
|
4509
|
-
# action: {
|
4890
|
+
# action: {
|
4510
4891
|
# type: "BLOCK", # required, accepts BLOCK, ALLOW, COUNT
|
4511
4892
|
# },
|
4512
|
-
#
|
4893
|
+
# override_action: {
|
4894
|
+
# type: "NONE", # required, accepts NONE, COUNT
|
4895
|
+
# },
|
4896
|
+
# type: "REGULAR", # accepts REGULAR, RATE_BASED, GROUP
|
4513
4897
|
# },
|
4514
4898
|
# },
|
4515
4899
|
# ],
|
@@ -4666,7 +5050,7 @@ module Aws::WAFRegional
|
|
4666
5050
|
params: params,
|
4667
5051
|
config: config)
|
4668
5052
|
context[:gem_name] = 'aws-sdk-wafregional'
|
4669
|
-
context[:gem_version] = '1.
|
5053
|
+
context[:gem_version] = '1.3.0'
|
4670
5054
|
Seahorse::Client::Request.new(handlers, context)
|
4671
5055
|
end
|
4672
5056
|
|