aws-sdk-wafregional 1.10.0 → 1.11.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 +17 -13
- data/lib/aws-sdk-wafregional/client_api.rb +6 -0
- data/lib/aws-sdk-wafregional/types.rb +21 -9
- 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: 496bc49c6deee43190c8d467f19332680688d583
|
4
|
+
data.tar.gz: b7cbb38fddc76b87fd121c7e54a71c9177a96c33
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: defcb8a41317656206c9dfd929b74b1c571e5a7de622adacaaea40f15a895b9d0a3a94c209aba33326aba88f108db65766f5ad52729fe281ae1606418b3ca08f
|
7
|
+
data.tar.gz: 1e338133d8b96565e2b642982bfe84c130f901df3c46165cc2086f014e37e025fbc8b87a0fd6c0c998b409487aab3c7ace9ee609eda511469628d5b75c35f658
|
data/lib/aws-sdk-wafregional.rb
CHANGED
@@ -1197,6 +1197,7 @@ module Aws::WAFRegional
|
|
1197
1197
|
# resp.web_acl.rules[0].action.type #=> String, one of "BLOCK", "ALLOW", "COUNT"
|
1198
1198
|
# resp.web_acl.rules[0].override_action.type #=> String, one of "NONE", "COUNT"
|
1199
1199
|
# resp.web_acl.rules[0].type #=> String, one of "REGULAR", "RATE_BASED", "GROUP"
|
1200
|
+
# resp.web_acl.web_acl_arn #=> String
|
1200
1201
|
# resp.change_token #=> String
|
1201
1202
|
#
|
1202
1203
|
# @see http://docs.aws.amazon.com/goto/WebAPI/waf-regional-2016-11-28/CreateWebACL AWS API Documentation
|
@@ -2927,6 +2928,7 @@ module Aws::WAFRegional
|
|
2927
2928
|
# resp.web_acl.rules[0].action.type #=> String, one of "BLOCK", "ALLOW", "COUNT"
|
2928
2929
|
# resp.web_acl.rules[0].override_action.type #=> String, one of "NONE", "COUNT"
|
2929
2930
|
# resp.web_acl.rules[0].type #=> String, one of "REGULAR", "RATE_BASED", "GROUP"
|
2931
|
+
# resp.web_acl.web_acl_arn #=> String
|
2930
2932
|
#
|
2931
2933
|
# @see http://docs.aws.amazon.com/goto/WebAPI/waf-regional-2016-11-28/GetWebACL AWS API Documentation
|
2932
2934
|
#
|
@@ -3424,6 +3426,10 @@ module Aws::WAFRegional
|
|
3424
3426
|
# The unique identifier (ID) of the web ACL for which to list the
|
3425
3427
|
# associated resources.
|
3426
3428
|
#
|
3429
|
+
# @option params [String] :resource_type
|
3430
|
+
# The type of resource to list, either and application load balancer or
|
3431
|
+
# Amazon API Gateway.
|
3432
|
+
#
|
3427
3433
|
# @return [Types::ListResourcesForWebACLResponse] Returns a {Seahorse::Client::Response response} object which responds to the following methods:
|
3428
3434
|
#
|
3429
3435
|
# * {Types::ListResourcesForWebACLResponse#resource_arns #resource_arns} => Array<String>
|
@@ -3432,6 +3438,7 @@ module Aws::WAFRegional
|
|
3432
3438
|
#
|
3433
3439
|
# resp = client.list_resources_for_web_acl({
|
3434
3440
|
# web_acl_id: "ResourceId", # required
|
3441
|
+
# resource_type: "APPLICATION_LOAD_BALANCER", # accepts APPLICATION_LOAD_BALANCER, API_GATEWAY
|
3435
3442
|
# })
|
3436
3443
|
#
|
3437
3444
|
# @example Response structure
|
@@ -3863,28 +3870,25 @@ module Aws::WAFRegional
|
|
3863
3870
|
# You can access information about all traffic that AWS WAF inspects
|
3864
3871
|
# using the following steps:
|
3865
3872
|
#
|
3866
|
-
# 1. Create an Amazon Kinesis Data Firehose
|
3867
|
-
# information, see [Creating an Amazon Kinesis Data Firehose
|
3868
|
-
# Delivery Stream][1].
|
3873
|
+
# 1. Create an Amazon Kinesis Data Firehose .
|
3869
3874
|
#
|
3870
|
-
# 2. Associate that
|
3875
|
+
# 2. Associate that firehose to your web ACL using a
|
3871
3876
|
# `PutLoggingConfiguration` request.
|
3872
3877
|
#
|
3873
3878
|
# When you successfully enable logging using a `PutLoggingConfiguration`
|
3874
3879
|
# request, AWS WAF will create a service linked role with the necessary
|
3875
|
-
# permissions to write logs to the Amazon Kinesis Data Firehose
|
3876
|
-
#
|
3877
|
-
#
|
3880
|
+
# permissions to write logs to the Amazon Kinesis Data Firehose. For
|
3881
|
+
# more information, see [Logging Web ACL Traffic Information][1] in the
|
3882
|
+
# *AWS WAF Developer Guide*.
|
3878
3883
|
#
|
3879
3884
|
#
|
3880
3885
|
#
|
3881
|
-
# [1]:
|
3882
|
-
# [2]: http://docs.aws.amazon.com/waf/latest/developerguide/logging.html
|
3886
|
+
# [1]: http://docs.aws.amazon.com/waf/latest/developerguide/logging.html
|
3883
3887
|
#
|
3884
3888
|
# @option params [required, Types::LoggingConfiguration] :logging_configuration
|
3885
|
-
# The Amazon Kinesis Data Firehose
|
3886
|
-
#
|
3887
|
-
#
|
3889
|
+
# The Amazon Kinesis Data Firehose that contains the inspected traffic
|
3890
|
+
# information, the redacted fields details, and the Amazon Resource Name
|
3891
|
+
# (ARN) of the web ACL to monitor.
|
3888
3892
|
#
|
3889
3893
|
# @return [Types::PutLoggingConfigurationResponse] Returns a {Seahorse::Client::Response response} object which responds to the following methods:
|
3890
3894
|
#
|
@@ -5385,7 +5389,7 @@ module Aws::WAFRegional
|
|
5385
5389
|
params: params,
|
5386
5390
|
config: config)
|
5387
5391
|
context[:gem_name] = 'aws-sdk-wafregional'
|
5388
|
-
context[:gem_version] = '1.
|
5392
|
+
context[:gem_version] = '1.11.0'
|
5389
5393
|
Seahorse::Client::Request.new(handlers, context)
|
5390
5394
|
end
|
5391
5395
|
|
@@ -227,6 +227,7 @@ module Aws::WAFRegional
|
|
227
227
|
ResourceArns = Shapes::ListShape.new(name: 'ResourceArns')
|
228
228
|
ResourceId = Shapes::StringShape.new(name: 'ResourceId')
|
229
229
|
ResourceName = Shapes::StringShape.new(name: 'ResourceName')
|
230
|
+
ResourceType = Shapes::StringShape.new(name: 'ResourceType')
|
230
231
|
Rule = Shapes::StructureShape.new(name: 'Rule')
|
231
232
|
RuleGroup = Shapes::StructureShape.new(name: 'RuleGroup')
|
232
233
|
RuleGroupSummaries = Shapes::ListShape.new(name: 'RuleGroupSummaries')
|
@@ -298,6 +299,7 @@ module Aws::WAFRegional
|
|
298
299
|
WAFNonexistentContainerException = Shapes::StructureShape.new(name: 'WAFNonexistentContainerException')
|
299
300
|
WAFNonexistentItemException = Shapes::StructureShape.new(name: 'WAFNonexistentItemException')
|
300
301
|
WAFReferencedItemException = Shapes::StructureShape.new(name: 'WAFReferencedItemException')
|
302
|
+
WAFServiceLinkedRoleErrorException = Shapes::StructureShape.new(name: 'WAFServiceLinkedRoleErrorException')
|
301
303
|
WAFStaleDataException = Shapes::StructureShape.new(name: 'WAFStaleDataException')
|
302
304
|
WAFSubscriptionNotFoundException = Shapes::StructureShape.new(name: 'WAFSubscriptionNotFoundException')
|
303
305
|
WAFUnavailableEntityException = Shapes::StructureShape.new(name: 'WAFUnavailableEntityException')
|
@@ -812,6 +814,7 @@ module Aws::WAFRegional
|
|
812
814
|
ListRegexPatternSetsResponse.struct_class = Types::ListRegexPatternSetsResponse
|
813
815
|
|
814
816
|
ListResourcesForWebACLRequest.add_member(:web_acl_id, Shapes::ShapeRef.new(shape: ResourceId, required: true, location_name: "WebACLId"))
|
817
|
+
ListResourcesForWebACLRequest.add_member(:resource_type, Shapes::ShapeRef.new(shape: ResourceType, location_name: "ResourceType"))
|
815
818
|
ListResourcesForWebACLRequest.struct_class = Types::ListResourcesForWebACLRequest
|
816
819
|
|
817
820
|
ListResourcesForWebACLResponse.add_member(:resource_arns, Shapes::ShapeRef.new(shape: ResourceArns, location_name: "ResourceArns"))
|
@@ -1170,6 +1173,7 @@ module Aws::WAFRegional
|
|
1170
1173
|
WebACL.add_member(:metric_name, Shapes::ShapeRef.new(shape: MetricName, location_name: "MetricName"))
|
1171
1174
|
WebACL.add_member(:default_action, Shapes::ShapeRef.new(shape: WafAction, required: true, location_name: "DefaultAction"))
|
1172
1175
|
WebACL.add_member(:rules, Shapes::ShapeRef.new(shape: ActivatedRules, required: true, location_name: "Rules"))
|
1176
|
+
WebACL.add_member(:web_acl_arn, Shapes::ShapeRef.new(shape: ResourceArn, location_name: "WebACLArn"))
|
1173
1177
|
WebACL.struct_class = Types::WebACL
|
1174
1178
|
|
1175
1179
|
WebACLSummaries.member = Shapes::ShapeRef.new(shape: WebACLSummary)
|
@@ -1897,6 +1901,7 @@ module Aws::WAFRegional
|
|
1897
1901
|
o.errors << Shapes::ShapeRef.new(shape: WAFInternalErrorException)
|
1898
1902
|
o.errors << Shapes::ShapeRef.new(shape: WAFInvalidAccountException)
|
1899
1903
|
o.errors << Shapes::ShapeRef.new(shape: WAFNonexistentItemException)
|
1904
|
+
o.errors << Shapes::ShapeRef.new(shape: WAFInvalidParameterException)
|
1900
1905
|
end)
|
1901
1906
|
|
1902
1907
|
api.add_operation(:list_rule_groups, Seahorse::Model::Operation.new.tap do |o|
|
@@ -1977,6 +1982,7 @@ module Aws::WAFRegional
|
|
1977
1982
|
o.errors << Shapes::ShapeRef.new(shape: WAFInternalErrorException)
|
1978
1983
|
o.errors << Shapes::ShapeRef.new(shape: WAFNonexistentItemException)
|
1979
1984
|
o.errors << Shapes::ShapeRef.new(shape: WAFStaleDataException)
|
1985
|
+
o.errors << Shapes::ShapeRef.new(shape: WAFServiceLinkedRoleErrorException)
|
1980
1986
|
end)
|
1981
1987
|
|
1982
1988
|
api.add_operation(:put_permission_policy, Seahorse::Model::Operation.new.tap do |o|
|
@@ -3201,6 +3201,7 @@ module Aws::WAFRegional
|
|
3201
3201
|
#
|
3202
3202
|
# {
|
3203
3203
|
# web_acl_id: "ResourceId", # required
|
3204
|
+
# resource_type: "APPLICATION_LOAD_BALANCER", # accepts APPLICATION_LOAD_BALANCER, API_GATEWAY
|
3204
3205
|
# }
|
3205
3206
|
#
|
3206
3207
|
# @!attribute [rw] web_acl_id
|
@@ -3208,10 +3209,16 @@ module Aws::WAFRegional
|
|
3208
3209
|
# associated resources.
|
3209
3210
|
# @return [String]
|
3210
3211
|
#
|
3212
|
+
# @!attribute [rw] resource_type
|
3213
|
+
# The type of resource to list, either and application load balancer
|
3214
|
+
# or Amazon API Gateway.
|
3215
|
+
# @return [String]
|
3216
|
+
#
|
3211
3217
|
# @see http://docs.aws.amazon.com/goto/WebAPI/waf-regional-2016-11-28/ListResourcesForWebACLRequest AWS API Documentation
|
3212
3218
|
#
|
3213
3219
|
class ListResourcesForWebACLRequest < Struct.new(
|
3214
|
-
:web_acl_id
|
3220
|
+
:web_acl_id,
|
3221
|
+
:resource_type)
|
3215
3222
|
include Aws::Structure
|
3216
3223
|
end
|
3217
3224
|
|
@@ -3612,8 +3619,8 @@ module Aws::WAFRegional
|
|
3612
3619
|
include Aws::Structure
|
3613
3620
|
end
|
3614
3621
|
|
3615
|
-
# The Amazon Kinesis Data Firehose
|
3616
|
-
#
|
3622
|
+
# The Amazon Kinesis Data Firehose, `RedactedFields` information, and
|
3623
|
+
# the web ACL Amazon Resource Name (ARN).
|
3617
3624
|
#
|
3618
3625
|
# @note When making an API call, you may pass LoggingConfiguration
|
3619
3626
|
# data as a hash:
|
@@ -3635,13 +3642,13 @@ module Aws::WAFRegional
|
|
3635
3642
|
# @return [String]
|
3636
3643
|
#
|
3637
3644
|
# @!attribute [rw] log_destination_configs
|
3638
|
-
# An array of Amazon Kinesis Data Firehose
|
3645
|
+
# An array of Amazon Kinesis Data Firehose ARNs.
|
3639
3646
|
# @return [Array<String>]
|
3640
3647
|
#
|
3641
3648
|
# @!attribute [rw] redacted_fields
|
3642
3649
|
# The parts of the request that you want redacted from the logs. For
|
3643
3650
|
# example, if you redact the cookie field, the cookie field in the
|
3644
|
-
#
|
3651
|
+
# firehose will be `xxx`.
|
3645
3652
|
# @return [Array<Types::FieldToMatch>]
|
3646
3653
|
#
|
3647
3654
|
# @see http://docs.aws.amazon.com/goto/WebAPI/waf-regional-2016-11-28/LoggingConfiguration AWS API Documentation
|
@@ -3720,9 +3727,9 @@ module Aws::WAFRegional
|
|
3720
3727
|
# }
|
3721
3728
|
#
|
3722
3729
|
# @!attribute [rw] logging_configuration
|
3723
|
-
# The Amazon Kinesis Data Firehose
|
3724
|
-
#
|
3725
|
-
#
|
3730
|
+
# The Amazon Kinesis Data Firehose that contains the inspected traffic
|
3731
|
+
# information, the redacted fields details, and the Amazon Resource
|
3732
|
+
# Name (ARN) of the web ACL to monitor.
|
3726
3733
|
# @return [Types::LoggingConfiguration]
|
3727
3734
|
#
|
3728
3735
|
# @see http://docs.aws.amazon.com/goto/WebAPI/waf-regional-2016-11-28/PutLoggingConfigurationRequest AWS API Documentation
|
@@ -5875,6 +5882,10 @@ module Aws::WAFRegional
|
|
5875
5882
|
# priority of the `Rule`, and the ID of the `Rule`.
|
5876
5883
|
# @return [Array<Types::ActivatedRule>]
|
5877
5884
|
#
|
5885
|
+
# @!attribute [rw] web_acl_arn
|
5886
|
+
# Tha Amazon Resource Name (ARN) of the web ACL.
|
5887
|
+
# @return [String]
|
5888
|
+
#
|
5878
5889
|
# @see http://docs.aws.amazon.com/goto/WebAPI/waf-regional-2016-11-28/WebACL AWS API Documentation
|
5879
5890
|
#
|
5880
5891
|
class WebACL < Struct.new(
|
@@ -5882,7 +5893,8 @@ module Aws::WAFRegional
|
|
5882
5893
|
:name,
|
5883
5894
|
:metric_name,
|
5884
5895
|
:default_action,
|
5885
|
-
:rules
|
5896
|
+
:rules,
|
5897
|
+
:web_acl_arn)
|
5886
5898
|
include Aws::Structure
|
5887
5899
|
end
|
5888
5900
|
|
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.
|
4
|
+
version: 1.11.0
|
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: 2018-
|
11
|
+
date: 2018-11-06 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: aws-sdk-core
|