aws-sdk-waf 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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 60e018a96ff958f7856a5ec82bd25ac2d29e2f99
4
- data.tar.gz: 25b3901ba71e2a169010e4363497a08ad43c60b3
3
+ metadata.gz: 5245d973d9eea223e03e9a16c9db77af60e27b33
4
+ data.tar.gz: d8508271ba6b39384c9d02c395748689b00ddcda
5
5
  SHA512:
6
- metadata.gz: 58d153dbde100c894976a4dd79f0bc23b0b88781986bf40dbd8ddf2be532002d27e54ba55f7533832b219c5c94465279ae4b86ab643cb09818eea774583205bf
7
- data.tar.gz: e9f95fec861e83d7f44dcbb097f30039b4b5c9f2772a07c59585edfcb1e258629ee696008aa44c8adf79bf92b7b8089d47b6d7c9a98acc7992f6cf871410bf19
6
+ metadata.gz: fbdbb5c2645dff421f31a1a73235860c1c215c7a9a2c3212dd025d64746a08326306bc7443224f929973312c7c4dff2f44058a4588c154f692f8d3434e95e070
7
+ data.tar.gz: c336a8e98274745bde5424c2a47a76051f97550fb4785738bfc3100ef6bf85bfb15f0d58df5bb84e0c3a3fc411115573b1ccb5f8d2082eea30302effa3908aa2
@@ -42,6 +42,6 @@ require_relative 'aws-sdk-waf/customizations'
42
42
  # @service
43
43
  module Aws::WAF
44
44
 
45
- GEM_VERSION = '1.2.0'
45
+ GEM_VERSION = '1.3.0'
46
46
 
47
47
  end
@@ -762,6 +762,68 @@ module Aws::WAF
762
762
  req.send_request(options)
763
763
  end
764
764
 
765
+ # Creates a `RuleGroup`. A rule group is a collection of predefined
766
+ # rules that you add to a web ACL. You use UpdateRuleGroup to add rules
767
+ # to the rule group.
768
+ #
769
+ # Rule groups are subject to the following limits:
770
+ #
771
+ # * Three rule groups per account. You can request an increase to this
772
+ # limit by contacting customer support.
773
+ #
774
+ # * One rule group per web ACL.
775
+ #
776
+ # * Ten rules per rule group.
777
+ #
778
+ # For more information about how to use the AWS WAF API to allow or
779
+ # block HTTP requests, see the [AWS WAF Developer Guide][1].
780
+ #
781
+ #
782
+ #
783
+ # [1]: http://docs.aws.amazon.com/waf/latest/developerguide/
784
+ #
785
+ # @option params [required, String] :name
786
+ # A friendly name or description of the RuleGroup. You can't change
787
+ # `Name` after you create a `RuleGroup`.
788
+ #
789
+ # @option params [required, String] :metric_name
790
+ # A friendly name or description for the metrics for this `RuleGroup`.
791
+ # The name can contain only alphanumeric characters (A-Z, a-z, 0-9); the
792
+ # name can't contain whitespace. You can't change the name of the
793
+ # metric after you create the `RuleGroup`.
794
+ #
795
+ # @option params [required, String] :change_token
796
+ # The value returned by the most recent call to GetChangeToken.
797
+ #
798
+ # @return [Types::CreateRuleGroupResponse] Returns a {Seahorse::Client::Response response} object which responds to the following methods:
799
+ #
800
+ # * {Types::CreateRuleGroupResponse#rule_group #rule_group} => Types::RuleGroup
801
+ # * {Types::CreateRuleGroupResponse#change_token #change_token} => String
802
+ #
803
+ # @example Request syntax with placeholder values
804
+ #
805
+ # resp = client.create_rule_group({
806
+ # name: "ResourceName", # required
807
+ # metric_name: "MetricName", # required
808
+ # change_token: "ChangeToken", # required
809
+ # })
810
+ #
811
+ # @example Response structure
812
+ #
813
+ # resp.rule_group.rule_group_id #=> String
814
+ # resp.rule_group.name #=> String
815
+ # resp.rule_group.metric_name #=> String
816
+ # resp.change_token #=> String
817
+ #
818
+ # @see http://docs.aws.amazon.com/goto/WebAPI/waf-2015-08-24/CreateRuleGroup AWS API Documentation
819
+ #
820
+ # @overload create_rule_group(params = {})
821
+ # @param [Hash] params ({})
822
+ def create_rule_group(params = {}, options = {})
823
+ req = build_request(:create_rule_group, params)
824
+ req.send_request(options)
825
+ end
826
+
765
827
  # Creates a `SizeConstraintSet`. You then use UpdateSizeConstraintSet to
766
828
  # identify the part of a web request that you want AWS WAF to check for
767
829
  # length, such as the length of the `User-Agent` header or the length of
@@ -1074,7 +1136,8 @@ module Aws::WAF
1074
1136
  # resp.web_acl.rules[0].priority #=> Integer
1075
1137
  # resp.web_acl.rules[0].rule_id #=> String
1076
1138
  # resp.web_acl.rules[0].action.type #=> String, one of "BLOCK", "ALLOW", "COUNT"
1077
- # resp.web_acl.rules[0].type #=> String, one of "REGULAR", "RATE_BASED"
1139
+ # resp.web_acl.rules[0].override_action.type #=> String, one of "NONE", "COUNT"
1140
+ # resp.web_acl.rules[0].type #=> String, one of "REGULAR", "RATE_BASED", "GROUP"
1078
1141
  # resp.change_token #=> String
1079
1142
  #
1080
1143
  # @see http://docs.aws.amazon.com/goto/WebAPI/waf-2015-08-24/CreateWebACL AWS API Documentation
@@ -1549,6 +1612,55 @@ module Aws::WAF
1549
1612
  req.send_request(options)
1550
1613
  end
1551
1614
 
1615
+ # Permanently deletes a RuleGroup. You can't delete a `RuleGroup` if
1616
+ # it's still used in any `WebACL` objects or if it still includes any
1617
+ # rules.
1618
+ #
1619
+ # If you just want to remove a `RuleGroup` from a `WebACL`, use
1620
+ # UpdateWebACL.
1621
+ #
1622
+ # To permanently delete a `RuleGroup` from AWS WAF, perform the
1623
+ # following steps:
1624
+ #
1625
+ # 1. Update the `RuleGroup` to remove rules, if any. For more
1626
+ # information, see UpdateRuleGroup.
1627
+ #
1628
+ # 2. Use GetChangeToken to get the change token that you provide in the
1629
+ # `ChangeToken` parameter of a `DeleteRuleGroup` request.
1630
+ #
1631
+ # 3. Submit a `DeleteRuleGroup` request.
1632
+ #
1633
+ # @option params [required, String] :rule_group_id
1634
+ # The `RuleGroupId` of the RuleGroup that you want to delete.
1635
+ # `RuleGroupId` is returned by CreateRuleGroup and by ListRuleGroups.
1636
+ #
1637
+ # @option params [required, String] :change_token
1638
+ # The value returned by the most recent call to GetChangeToken.
1639
+ #
1640
+ # @return [Types::DeleteRuleGroupResponse] Returns a {Seahorse::Client::Response response} object which responds to the following methods:
1641
+ #
1642
+ # * {Types::DeleteRuleGroupResponse#change_token #change_token} => String
1643
+ #
1644
+ # @example Request syntax with placeholder values
1645
+ #
1646
+ # resp = client.delete_rule_group({
1647
+ # rule_group_id: "ResourceId", # required
1648
+ # change_token: "ChangeToken", # required
1649
+ # })
1650
+ #
1651
+ # @example Response structure
1652
+ #
1653
+ # resp.change_token #=> String
1654
+ #
1655
+ # @see http://docs.aws.amazon.com/goto/WebAPI/waf-2015-08-24/DeleteRuleGroup AWS API Documentation
1656
+ #
1657
+ # @overload delete_rule_group(params = {})
1658
+ # @param [Hash] params ({})
1659
+ def delete_rule_group(params = {}, options = {})
1660
+ req = build_request(:delete_rule_group, params)
1661
+ req.send_request(options)
1662
+ end
1663
+
1552
1664
  # Permanently deletes a SizeConstraintSet. You can't delete a
1553
1665
  # `SizeConstraintSet` if it's still used in any `Rules` or if it still
1554
1666
  # includes any SizeConstraint objects (any filters).
@@ -2267,6 +2379,40 @@ module Aws::WAF
2267
2379
  req.send_request(options)
2268
2380
  end
2269
2381
 
2382
+ # Returns the RuleGroup that is specified by the `RuleGroupId` that you
2383
+ # included in the `GetRuleGroup` request.
2384
+ #
2385
+ # To view the rules in a rule group, use ListActivatedRulesInRuleGroup.
2386
+ #
2387
+ # @option params [required, String] :rule_group_id
2388
+ # The `RuleGroupId` of the RuleGroup that you want to get. `RuleGroupId`
2389
+ # is returned by CreateRuleGroup and by ListRuleGroups.
2390
+ #
2391
+ # @return [Types::GetRuleGroupResponse] Returns a {Seahorse::Client::Response response} object which responds to the following methods:
2392
+ #
2393
+ # * {Types::GetRuleGroupResponse#rule_group #rule_group} => Types::RuleGroup
2394
+ #
2395
+ # @example Request syntax with placeholder values
2396
+ #
2397
+ # resp = client.get_rule_group({
2398
+ # rule_group_id: "ResourceId", # required
2399
+ # })
2400
+ #
2401
+ # @example Response structure
2402
+ #
2403
+ # resp.rule_group.rule_group_id #=> String
2404
+ # resp.rule_group.name #=> String
2405
+ # resp.rule_group.metric_name #=> String
2406
+ #
2407
+ # @see http://docs.aws.amazon.com/goto/WebAPI/waf-2015-08-24/GetRuleGroup AWS API Documentation
2408
+ #
2409
+ # @overload get_rule_group(params = {})
2410
+ # @param [Hash] params ({})
2411
+ def get_rule_group(params = {}, options = {})
2412
+ req = build_request(:get_rule_group, params)
2413
+ req.send_request(options)
2414
+ end
2415
+
2270
2416
  # Gets detailed information about a specified number of requests--a
2271
2417
  # sample--that AWS WAF randomly selects from among the first 5,000
2272
2418
  # requests that your AWS resource received during a time range that you
@@ -2285,10 +2431,11 @@ module Aws::WAF
2285
2431
  # to return a sample of requests.
2286
2432
  #
2287
2433
  # @option params [required, String] :rule_id
2288
- # `RuleId` is one of two values:
2434
+ # `RuleId` is one of three values:
2289
2435
  #
2290
- # * The `RuleId` of the `Rule` for which you want `GetSampledRequests`
2291
- # to return a sample of requests.
2436
+ # * The `RuleId` of the `Rule` or the `RuleGroupId` of the `RuleGroup`
2437
+ # for which you want `GetSampledRequests` to return a sample of
2438
+ # requests.
2292
2439
  #
2293
2440
  # * `Default_Action`, which causes `GetSampledRequests` to return a
2294
2441
  # sample of the requests that didn't match any of the rules in the
@@ -2385,6 +2532,7 @@ module Aws::WAF
2385
2532
  # resp.sampled_requests[0].weight #=> Integer
2386
2533
  # resp.sampled_requests[0].timestamp #=> Time
2387
2534
  # resp.sampled_requests[0].action #=> String
2535
+ # resp.sampled_requests[0].rule_within_rule_group #=> String
2388
2536
  # resp.population_size #=> Integer
2389
2537
  # resp.time_window.start_time #=> Time
2390
2538
  # resp.time_window.end_time #=> Time
@@ -2581,7 +2729,8 @@ module Aws::WAF
2581
2729
  # resp.web_acl.rules[0].priority #=> Integer
2582
2730
  # resp.web_acl.rules[0].rule_id #=> String
2583
2731
  # resp.web_acl.rules[0].action.type #=> String, one of "BLOCK", "ALLOW", "COUNT"
2584
- # resp.web_acl.rules[0].type #=> String, one of "REGULAR", "RATE_BASED"
2732
+ # resp.web_acl.rules[0].override_action.type #=> String, one of "NONE", "COUNT"
2733
+ # resp.web_acl.rules[0].type #=> String, one of "REGULAR", "RATE_BASED", "GROUP"
2585
2734
  #
2586
2735
  # @see http://docs.aws.amazon.com/goto/WebAPI/waf-2015-08-24/GetWebACL AWS API Documentation
2587
2736
  #
@@ -2652,6 +2801,59 @@ module Aws::WAF
2652
2801
  req.send_request(options)
2653
2802
  end
2654
2803
 
2804
+ # Returns an array of ActivatedRule objects.
2805
+ #
2806
+ # @option params [String] :rule_group_id
2807
+ # The `RuleGroupId` of the RuleGroup for which you want to get a list of
2808
+ # ActivatedRule objects.
2809
+ #
2810
+ # @option params [String] :next_marker
2811
+ # If you specify a value for `Limit` and you have more `ActivatedRules`
2812
+ # than the value of `Limit`, AWS WAF returns a `NextMarker` value in the
2813
+ # response that allows you to list another group of `ActivatedRules`.
2814
+ # For the second and subsequent `ListActivatedRulesInRuleGroup`
2815
+ # requests, specify the value of `NextMarker` from the previous response
2816
+ # to get information about another batch of `ActivatedRules`.
2817
+ #
2818
+ # @option params [Integer] :limit
2819
+ # Specifies the number of `ActivatedRules` that you want AWS WAF to
2820
+ # return for this request. If you have more `ActivatedRules` than the
2821
+ # number that you specify for `Limit`, the response includes a
2822
+ # `NextMarker` value that you can use to get another batch of
2823
+ # `ActivatedRules`.
2824
+ #
2825
+ # @return [Types::ListActivatedRulesInRuleGroupResponse] Returns a {Seahorse::Client::Response response} object which responds to the following methods:
2826
+ #
2827
+ # * {Types::ListActivatedRulesInRuleGroupResponse#next_marker #next_marker} => String
2828
+ # * {Types::ListActivatedRulesInRuleGroupResponse#activated_rules #activated_rules} => Array<Types::ActivatedRule>
2829
+ #
2830
+ # @example Request syntax with placeholder values
2831
+ #
2832
+ # resp = client.list_activated_rules_in_rule_group({
2833
+ # rule_group_id: "ResourceId",
2834
+ # next_marker: "NextMarker",
2835
+ # limit: 1,
2836
+ # })
2837
+ #
2838
+ # @example Response structure
2839
+ #
2840
+ # resp.next_marker #=> String
2841
+ # resp.activated_rules #=> Array
2842
+ # resp.activated_rules[0].priority #=> Integer
2843
+ # resp.activated_rules[0].rule_id #=> String
2844
+ # resp.activated_rules[0].action.type #=> String, one of "BLOCK", "ALLOW", "COUNT"
2845
+ # resp.activated_rules[0].override_action.type #=> String, one of "NONE", "COUNT"
2846
+ # resp.activated_rules[0].type #=> String, one of "REGULAR", "RATE_BASED", "GROUP"
2847
+ #
2848
+ # @see http://docs.aws.amazon.com/goto/WebAPI/waf-2015-08-24/ListActivatedRulesInRuleGroup AWS API Documentation
2849
+ #
2850
+ # @overload list_activated_rules_in_rule_group(params = {})
2851
+ # @param [Hash] params ({})
2852
+ def list_activated_rules_in_rule_group(params = {}, options = {})
2853
+ req = build_request(:list_activated_rules_in_rule_group, params)
2854
+ req.send_request(options)
2855
+ end
2856
+
2655
2857
  # Returns an array of ByteMatchSetSummary objects.
2656
2858
  #
2657
2859
  # @option params [String] :next_marker
@@ -2940,6 +3142,50 @@ module Aws::WAF
2940
3142
  req.send_request(options)
2941
3143
  end
2942
3144
 
3145
+ # Returns an array of RuleGroup objects.
3146
+ #
3147
+ # @option params [String] :next_marker
3148
+ # If you specify a value for `Limit` and you have more `RuleGroups` than
3149
+ # the value of `Limit`, AWS WAF returns a `NextMarker` value in the
3150
+ # response that allows you to list another group of `RuleGroups`. For
3151
+ # the second and subsequent `ListRuleGroups` requests, specify the value
3152
+ # of `NextMarker` from the previous response to get information about
3153
+ # another batch of `RuleGroups`.
3154
+ #
3155
+ # @option params [Integer] :limit
3156
+ # Specifies the number of `RuleGroups` that you want AWS WAF to return
3157
+ # for this request. If you have more `RuleGroups` than the number that
3158
+ # you specify for `Limit`, the response includes a `NextMarker` value
3159
+ # that you can use to get another batch of `RuleGroups`.
3160
+ #
3161
+ # @return [Types::ListRuleGroupsResponse] Returns a {Seahorse::Client::Response response} object which responds to the following methods:
3162
+ #
3163
+ # * {Types::ListRuleGroupsResponse#next_marker #next_marker} => String
3164
+ # * {Types::ListRuleGroupsResponse#rule_groups #rule_groups} => Array<Types::RuleGroupSummary>
3165
+ #
3166
+ # @example Request syntax with placeholder values
3167
+ #
3168
+ # resp = client.list_rule_groups({
3169
+ # next_marker: "NextMarker",
3170
+ # limit: 1,
3171
+ # })
3172
+ #
3173
+ # @example Response structure
3174
+ #
3175
+ # resp.next_marker #=> String
3176
+ # resp.rule_groups #=> Array
3177
+ # resp.rule_groups[0].rule_group_id #=> String
3178
+ # resp.rule_groups[0].name #=> String
3179
+ #
3180
+ # @see http://docs.aws.amazon.com/goto/WebAPI/waf-2015-08-24/ListRuleGroups AWS API Documentation
3181
+ #
3182
+ # @overload list_rule_groups(params = {})
3183
+ # @param [Hash] params ({})
3184
+ def list_rule_groups(params = {}, options = {})
3185
+ req = build_request(:list_rule_groups, params)
3186
+ req.send_request(options)
3187
+ end
3188
+
2943
3189
  # Returns an array of RuleSummary objects.
2944
3190
  #
2945
3191
  # @option params [String] :next_marker
@@ -3133,6 +3379,52 @@ module Aws::WAF
3133
3379
  req.send_request(options)
3134
3380
  end
3135
3381
 
3382
+ # Returns an array of RuleGroup objects that you are subscribed to.
3383
+ #
3384
+ # @option params [String] :next_marker
3385
+ # If you specify a value for `Limit` and you have more
3386
+ # `ByteMatchSets`subscribed rule groups than the value of `Limit`, AWS
3387
+ # WAF returns a `NextMarker` value in the response that allows you to
3388
+ # list another group of subscribed rule groups. For the second and
3389
+ # subsequent `ListSubscribedRuleGroupsRequest` requests, specify the
3390
+ # value of `NextMarker` from the previous response to get information
3391
+ # about another batch of subscribed rule groups.
3392
+ #
3393
+ # @option params [Integer] :limit
3394
+ # Specifies the number of subscribed rule groups that you want AWS WAF
3395
+ # to return for this request. If you have more objects than the number
3396
+ # you specify for `Limit`, the response includes a `NextMarker` value
3397
+ # that you can use to get another batch of objects.
3398
+ #
3399
+ # @return [Types::ListSubscribedRuleGroupsResponse] Returns a {Seahorse::Client::Response response} object which responds to the following methods:
3400
+ #
3401
+ # * {Types::ListSubscribedRuleGroupsResponse#next_marker #next_marker} => String
3402
+ # * {Types::ListSubscribedRuleGroupsResponse#rule_groups #rule_groups} => Array<Types::SubscribedRuleGroupSummary>
3403
+ #
3404
+ # @example Request syntax with placeholder values
3405
+ #
3406
+ # resp = client.list_subscribed_rule_groups({
3407
+ # next_marker: "NextMarker",
3408
+ # limit: 1,
3409
+ # })
3410
+ #
3411
+ # @example Response structure
3412
+ #
3413
+ # resp.next_marker #=> String
3414
+ # resp.rule_groups #=> Array
3415
+ # resp.rule_groups[0].rule_group_id #=> String
3416
+ # resp.rule_groups[0].name #=> String
3417
+ # resp.rule_groups[0].metric_name #=> String
3418
+ #
3419
+ # @see http://docs.aws.amazon.com/goto/WebAPI/waf-2015-08-24/ListSubscribedRuleGroups AWS API Documentation
3420
+ #
3421
+ # @overload list_subscribed_rule_groups(params = {})
3422
+ # @param [Hash] params ({})
3423
+ def list_subscribed_rule_groups(params = {}, options = {})
3424
+ req = build_request(:list_subscribed_rule_groups, params)
3425
+ req.send_request(options)
3426
+ end
3427
+
3136
3428
  # Returns an array of WebACLSummary objects in the response.
3137
3429
  #
3138
3430
  # @option params [String] :next_marker
@@ -3708,7 +4000,7 @@ module Aws::WAF
3708
4000
  req.send_request(options)
3709
4001
  end
3710
4002
 
3711
- # Inserts or deletes RegexMatchSetUpdate objects (filters) in a
4003
+ # Inserts or deletes RegexMatchTuple objects (filters) in a
3712
4004
  # RegexMatchSet. For each `RegexMatchSetUpdate` object, you specify the
3713
4005
  # following values:
3714
4006
  #
@@ -3716,8 +4008,8 @@ module Aws::WAF
3716
4008
  # to change a `RegexMatchSetUpdate` object, you delete the existing
3717
4009
  # object and add a new one.
3718
4010
  #
3719
- # * The part of a web request that you want AWS WAF to inspect, such as
3720
- # a query string or the value of the `User-Agent` header.
4011
+ # * The part of a web request that you want AWS WAF to inspectupdate,
4012
+ # such as a query string or the value of the `User-Agent` header.
3721
4013
  #
3722
4014
  # * The identifier of the pattern (a regular expression) that you want
3723
4015
  # AWS WAF to look for. For more information, see RegexPatternSet.
@@ -3803,15 +4095,13 @@ module Aws::WAF
3803
4095
  req.send_request(options)
3804
4096
  end
3805
4097
 
3806
- # Inserts or deletes RegexMatchSetUpdate objects (filters) in a
3807
- # RegexPatternSet. For each `RegexPatternSet` object, you specify the
3808
- # following values:
4098
+ # Inserts or deletes `RegexPatternString` objects in a RegexPatternSet.
4099
+ # For each `RegexPatternString` object, you specify the following
4100
+ # values:
3809
4101
  #
3810
- # * Whether to insert or delete the object from the array. If you want
3811
- # to change a `RegexPatternSet` object, you delete the existing object
3812
- # and add a new one.
4102
+ # * Whether to insert or delete the `RegexPatternString`.
3813
4103
  #
3814
- # * The regular expression pattern that you want AWS WAF to look for.
4104
+ # * The regular expression pattern that you want to insert or delete.
3815
4105
  # For more information, see RegexPatternSet.
3816
4106
  #
3817
4107
  # For example, you can create a `RegexPatternString` such as
@@ -4005,6 +4295,93 @@ module Aws::WAF
4005
4295
  req.send_request(options)
4006
4296
  end
4007
4297
 
4298
+ # Inserts or deletes ActivatedRule objects in a `RuleGroup`.
4299
+ #
4300
+ # You can only insert `REGULAR` rules into a rule group.
4301
+ #
4302
+ # You can have a maximum of ten rules per rule group.
4303
+ #
4304
+ # To create and configure a `RuleGroup`, perform the following steps:
4305
+ #
4306
+ # 1. Create and update the `Rules` that you want to include in the
4307
+ # `RuleGroup`. See CreateRule.
4308
+ #
4309
+ # 2. Use `GetChangeToken` to get the change token that you provide in
4310
+ # the `ChangeToken` parameter of an UpdateRuleGroup request.
4311
+ #
4312
+ # 3. Submit an `UpdateRuleGroup` request to add `Rules` to the
4313
+ # `RuleGroup`.
4314
+ #
4315
+ # 4. Create and update a `WebACL` that contains the `RuleGroup`. See
4316
+ # CreateWebACL.
4317
+ #
4318
+ # If you want to replace one `Rule` with another, you delete the
4319
+ # existing one and add the new one.
4320
+ #
4321
+ # For more information about how to use the AWS WAF API to allow or
4322
+ # block HTTP requests, see the [AWS WAF Developer Guide][1].
4323
+ #
4324
+ #
4325
+ #
4326
+ # [1]: http://docs.aws.amazon.com/waf/latest/developerguide/
4327
+ #
4328
+ # @option params [required, String] :rule_group_id
4329
+ # The `RuleGroupId` of the RuleGroup that you want to update.
4330
+ # `RuleGroupId` is returned by CreateRuleGroup and by ListRuleGroups.
4331
+ #
4332
+ # @option params [required, Array<Types::RuleGroupUpdate>] :updates
4333
+ # An array of `RuleGroupUpdate` objects that you want to insert into or
4334
+ # delete from a RuleGroup.
4335
+ #
4336
+ # You can only insert `REGULAR` rules into a rule group.
4337
+ #
4338
+ # The `Action` data type within `ActivatedRule` is used only when
4339
+ # submitting an `UpdateWebACL` request. `ActivatedRule|Action` is not
4340
+ # applicable and therefore not available for `UpdateRuleGroup`.
4341
+ #
4342
+ # @option params [required, String] :change_token
4343
+ # The value returned by the most recent call to GetChangeToken.
4344
+ #
4345
+ # @return [Types::UpdateRuleGroupResponse] Returns a {Seahorse::Client::Response response} object which responds to the following methods:
4346
+ #
4347
+ # * {Types::UpdateRuleGroupResponse#change_token #change_token} => String
4348
+ #
4349
+ # @example Request syntax with placeholder values
4350
+ #
4351
+ # resp = client.update_rule_group({
4352
+ # rule_group_id: "ResourceId", # required
4353
+ # updates: [ # required
4354
+ # {
4355
+ # action: "INSERT", # required, accepts INSERT, DELETE
4356
+ # activated_rule: { # required
4357
+ # priority: 1, # required
4358
+ # rule_id: "ResourceId", # required
4359
+ # action: {
4360
+ # type: "BLOCK", # required, accepts BLOCK, ALLOW, COUNT
4361
+ # },
4362
+ # override_action: {
4363
+ # type: "NONE", # required, accepts NONE, COUNT
4364
+ # },
4365
+ # type: "REGULAR", # accepts REGULAR, RATE_BASED, GROUP
4366
+ # },
4367
+ # },
4368
+ # ],
4369
+ # change_token: "ChangeToken", # required
4370
+ # })
4371
+ #
4372
+ # @example Response structure
4373
+ #
4374
+ # resp.change_token #=> String
4375
+ #
4376
+ # @see http://docs.aws.amazon.com/goto/WebAPI/waf-2015-08-24/UpdateRuleGroup AWS API Documentation
4377
+ #
4378
+ # @overload update_rule_group(params = {})
4379
+ # @param [Hash] params ({})
4380
+ def update_rule_group(params = {}, options = {})
4381
+ req = build_request(:update_rule_group, params)
4382
+ req.send_request(options)
4383
+ end
4384
+
4008
4385
  # Inserts or deletes SizeConstraint objects (filters) in a
4009
4386
  # SizeConstraintSet. For each `SizeConstraint` object, you specify the
4010
4387
  # following values:
@@ -4343,7 +4720,11 @@ module Aws::WAF
4343
4720
  #
4344
4721
  # * WebACLUpdate: Contains `Action` and `ActivatedRule`
4345
4722
  #
4346
- # * ActivatedRule: Contains `Action`, `Priority`, `RuleId`, and `Type`
4723
+ # * ActivatedRule: Contains `Action`, `Priority`, `RuleId`, and `Type`.
4724
+ # The `OverrideAction` data type within `ActivatedRule` is used only
4725
+ # when submitting an `UpdateRuleGroup` request.
4726
+ # `ActivatedRule|OverrideAction` is not applicable and therefore not
4727
+ # available for `UpdateWebACL`.
4347
4728
  #
4348
4729
  # * WafAction: Contains `Type`
4349
4730
  #
@@ -4397,10 +4778,13 @@ module Aws::WAF
4397
4778
  # activated_rule: { # required
4398
4779
  # priority: 1, # required
4399
4780
  # rule_id: "ResourceId", # required
4400
- # action: { # required
4781
+ # action: {
4401
4782
  # type: "BLOCK", # required, accepts BLOCK, ALLOW, COUNT
4402
4783
  # },
4403
- # type: "REGULAR", # accepts REGULAR, RATE_BASED
4784
+ # override_action: {
4785
+ # type: "NONE", # required, accepts NONE, COUNT
4786
+ # },
4787
+ # type: "REGULAR", # accepts REGULAR, RATE_BASED, GROUP
4404
4788
  # },
4405
4789
  # },
4406
4790
  # ],
@@ -4557,7 +4941,7 @@ module Aws::WAF
4557
4941
  params: params,
4558
4942
  config: config)
4559
4943
  context[:gem_name] = 'aws-sdk-waf'
4560
- context[:gem_version] = '1.2.0'
4944
+ context[:gem_version] = '1.3.0'
4561
4945
  Seahorse::Client::Request.new(handlers, context)
4562
4946
  end
4563
4947