aws-sdk-wafv2 1.54.0 → 1.56.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/CHANGELOG.md +10 -0
- data/VERSION +1 -1
- data/lib/aws-sdk-wafv2/client.rb +284 -38
- data/lib/aws-sdk-wafv2/client_api.rb +82 -0
- data/lib/aws-sdk-wafv2/endpoints.rb +42 -0
- data/lib/aws-sdk-wafv2/plugins/endpoints.rb +6 -0
- data/lib/aws-sdk-wafv2/types.rb +304 -70
- data/lib/aws-sdk-wafv2.rb +1 -1
- metadata +2 -2
@@ -13,6 +13,11 @@ module Aws::WAFV2
|
|
13
13
|
|
14
14
|
include Seahorse::Model
|
15
15
|
|
16
|
+
APIKey = Shapes::StringShape.new(name: 'APIKey')
|
17
|
+
APIKeySummaries = Shapes::ListShape.new(name: 'APIKeySummaries')
|
18
|
+
APIKeySummary = Shapes::StructureShape.new(name: 'APIKeySummary')
|
19
|
+
APIKeyTokenDomains = Shapes::ListShape.new(name: 'APIKeyTokenDomains')
|
20
|
+
APIKeyVersion = Shapes::IntegerShape.new(name: 'APIKeyVersion')
|
16
21
|
AWSManagedRulesATPRuleSet = Shapes::StructureShape.new(name: 'AWSManagedRulesATPRuleSet')
|
17
22
|
AWSManagedRulesBotControlRuleSet = Shapes::StructureShape.new(name: 'AWSManagedRulesBotControlRuleSet')
|
18
23
|
Action = Shapes::StringShape.new(name: 'Action')
|
@@ -51,6 +56,8 @@ module Aws::WAFV2
|
|
51
56
|
Country = Shapes::StringShape.new(name: 'Country')
|
52
57
|
CountryCode = Shapes::StringShape.new(name: 'CountryCode')
|
53
58
|
CountryCodes = Shapes::ListShape.new(name: 'CountryCodes')
|
59
|
+
CreateAPIKeyRequest = Shapes::StructureShape.new(name: 'CreateAPIKeyRequest')
|
60
|
+
CreateAPIKeyResponse = Shapes::StructureShape.new(name: 'CreateAPIKeyResponse')
|
54
61
|
CreateIPSetRequest = Shapes::StructureShape.new(name: 'CreateIPSetRequest')
|
55
62
|
CreateIPSetResponse = Shapes::StructureShape.new(name: 'CreateIPSetResponse')
|
56
63
|
CreateRegexPatternSetRequest = Shapes::StructureShape.new(name: 'CreateRegexPatternSetRequest')
|
@@ -114,6 +121,8 @@ module Aws::WAFV2
|
|
114
121
|
GenerateMobileSdkReleaseUrlRequest = Shapes::StructureShape.new(name: 'GenerateMobileSdkReleaseUrlRequest')
|
115
122
|
GenerateMobileSdkReleaseUrlResponse = Shapes::StructureShape.new(name: 'GenerateMobileSdkReleaseUrlResponse')
|
116
123
|
GeoMatchStatement = Shapes::StructureShape.new(name: 'GeoMatchStatement')
|
124
|
+
GetDecryptedAPIKeyRequest = Shapes::StructureShape.new(name: 'GetDecryptedAPIKeyRequest')
|
125
|
+
GetDecryptedAPIKeyResponse = Shapes::StructureShape.new(name: 'GetDecryptedAPIKeyResponse')
|
117
126
|
GetIPSetRequest = Shapes::StructureShape.new(name: 'GetIPSetRequest')
|
118
127
|
GetIPSetResponse = Shapes::StructureShape.new(name: 'GetIPSetResponse')
|
119
128
|
GetLoggingConfigurationRequest = Shapes::StructureShape.new(name: 'GetLoggingConfigurationRequest')
|
@@ -171,6 +180,8 @@ module Aws::WAFV2
|
|
171
180
|
LabelSummaries = Shapes::ListShape.new(name: 'LabelSummaries')
|
172
181
|
LabelSummary = Shapes::StructureShape.new(name: 'LabelSummary')
|
173
182
|
Labels = Shapes::ListShape.new(name: 'Labels')
|
183
|
+
ListAPIKeysRequest = Shapes::StructureShape.new(name: 'ListAPIKeysRequest')
|
184
|
+
ListAPIKeysResponse = Shapes::StructureShape.new(name: 'ListAPIKeysResponse')
|
174
185
|
ListAvailableManagedRuleGroupVersionsRequest = Shapes::StructureShape.new(name: 'ListAvailableManagedRuleGroupVersionsRequest')
|
175
186
|
ListAvailableManagedRuleGroupVersionsResponse = Shapes::StructureShape.new(name: 'ListAvailableManagedRuleGroupVersionsResponse')
|
176
187
|
ListAvailableManagedRuleGroupsRequest = Shapes::StructureShape.new(name: 'ListAvailableManagedRuleGroupsRequest')
|
@@ -371,6 +382,16 @@ module Aws::WAFV2
|
|
371
382
|
WebACLSummary = Shapes::StructureShape.new(name: 'WebACLSummary')
|
372
383
|
XssMatchStatement = Shapes::StructureShape.new(name: 'XssMatchStatement')
|
373
384
|
|
385
|
+
APIKeySummaries.member = Shapes::ShapeRef.new(shape: APIKeySummary)
|
386
|
+
|
387
|
+
APIKeySummary.add_member(:token_domains, Shapes::ShapeRef.new(shape: TokenDomains, location_name: "TokenDomains"))
|
388
|
+
APIKeySummary.add_member(:api_key, Shapes::ShapeRef.new(shape: APIKey, location_name: "APIKey"))
|
389
|
+
APIKeySummary.add_member(:creation_timestamp, Shapes::ShapeRef.new(shape: Timestamp, location_name: "CreationTimestamp"))
|
390
|
+
APIKeySummary.add_member(:version, Shapes::ShapeRef.new(shape: APIKeyVersion, location_name: "Version"))
|
391
|
+
APIKeySummary.struct_class = Types::APIKeySummary
|
392
|
+
|
393
|
+
APIKeyTokenDomains.member = Shapes::ShapeRef.new(shape: TokenDomain)
|
394
|
+
|
374
395
|
AWSManagedRulesATPRuleSet.add_member(:login_path, Shapes::ShapeRef.new(shape: String, required: true, location_name: "LoginPath"))
|
375
396
|
AWSManagedRulesATPRuleSet.add_member(:request_inspection, Shapes::ShapeRef.new(shape: RequestInspection, location_name: "RequestInspection"))
|
376
397
|
AWSManagedRulesATPRuleSet.add_member(:response_inspection, Shapes::ShapeRef.new(shape: ResponseInspection, location_name: "ResponseInspection"))
|
@@ -465,6 +486,13 @@ module Aws::WAFV2
|
|
465
486
|
|
466
487
|
CountryCodes.member = Shapes::ShapeRef.new(shape: CountryCode)
|
467
488
|
|
489
|
+
CreateAPIKeyRequest.add_member(:scope, Shapes::ShapeRef.new(shape: Scope, required: true, location_name: "Scope"))
|
490
|
+
CreateAPIKeyRequest.add_member(:token_domains, Shapes::ShapeRef.new(shape: APIKeyTokenDomains, required: true, location_name: "TokenDomains"))
|
491
|
+
CreateAPIKeyRequest.struct_class = Types::CreateAPIKeyRequest
|
492
|
+
|
493
|
+
CreateAPIKeyResponse.add_member(:api_key, Shapes::ShapeRef.new(shape: APIKey, location_name: "APIKey"))
|
494
|
+
CreateAPIKeyResponse.struct_class = Types::CreateAPIKeyResponse
|
495
|
+
|
468
496
|
CreateIPSetRequest.add_member(:name, Shapes::ShapeRef.new(shape: EntityName, required: true, location_name: "Name"))
|
469
497
|
CreateIPSetRequest.add_member(:scope, Shapes::ShapeRef.new(shape: Scope, required: true, location_name: "Scope"))
|
470
498
|
CreateIPSetRequest.add_member(:description, Shapes::ShapeRef.new(shape: EntityDescription, location_name: "Description"))
|
@@ -662,6 +690,14 @@ module Aws::WAFV2
|
|
662
690
|
GeoMatchStatement.add_member(:forwarded_ip_config, Shapes::ShapeRef.new(shape: ForwardedIPConfig, location_name: "ForwardedIPConfig"))
|
663
691
|
GeoMatchStatement.struct_class = Types::GeoMatchStatement
|
664
692
|
|
693
|
+
GetDecryptedAPIKeyRequest.add_member(:scope, Shapes::ShapeRef.new(shape: Scope, required: true, location_name: "Scope"))
|
694
|
+
GetDecryptedAPIKeyRequest.add_member(:api_key, Shapes::ShapeRef.new(shape: APIKey, required: true, location_name: "APIKey"))
|
695
|
+
GetDecryptedAPIKeyRequest.struct_class = Types::GetDecryptedAPIKeyRequest
|
696
|
+
|
697
|
+
GetDecryptedAPIKeyResponse.add_member(:token_domains, Shapes::ShapeRef.new(shape: TokenDomains, location_name: "TokenDomains"))
|
698
|
+
GetDecryptedAPIKeyResponse.add_member(:creation_timestamp, Shapes::ShapeRef.new(shape: Timestamp, location_name: "CreationTimestamp"))
|
699
|
+
GetDecryptedAPIKeyResponse.struct_class = Types::GetDecryptedAPIKeyResponse
|
700
|
+
|
665
701
|
GetIPSetRequest.add_member(:name, Shapes::ShapeRef.new(shape: EntityName, required: true, location_name: "Name"))
|
666
702
|
GetIPSetRequest.add_member(:scope, Shapes::ShapeRef.new(shape: Scope, required: true, location_name: "Scope"))
|
667
703
|
GetIPSetRequest.add_member(:id, Shapes::ShapeRef.new(shape: EntityId, required: true, location_name: "Id"))
|
@@ -843,6 +879,16 @@ module Aws::WAFV2
|
|
843
879
|
|
844
880
|
Labels.member = Shapes::ShapeRef.new(shape: Label)
|
845
881
|
|
882
|
+
ListAPIKeysRequest.add_member(:scope, Shapes::ShapeRef.new(shape: Scope, required: true, location_name: "Scope"))
|
883
|
+
ListAPIKeysRequest.add_member(:next_marker, Shapes::ShapeRef.new(shape: NextMarker, location_name: "NextMarker"))
|
884
|
+
ListAPIKeysRequest.add_member(:limit, Shapes::ShapeRef.new(shape: PaginationLimit, location_name: "Limit"))
|
885
|
+
ListAPIKeysRequest.struct_class = Types::ListAPIKeysRequest
|
886
|
+
|
887
|
+
ListAPIKeysResponse.add_member(:next_marker, Shapes::ShapeRef.new(shape: NextMarker, location_name: "NextMarker"))
|
888
|
+
ListAPIKeysResponse.add_member(:api_key_summaries, Shapes::ShapeRef.new(shape: APIKeySummaries, location_name: "APIKeySummaries"))
|
889
|
+
ListAPIKeysResponse.add_member(:application_integration_url, Shapes::ShapeRef.new(shape: OutputUrl, location_name: "ApplicationIntegrationURL"))
|
890
|
+
ListAPIKeysResponse.struct_class = Types::ListAPIKeysResponse
|
891
|
+
|
846
892
|
ListAvailableManagedRuleGroupVersionsRequest.add_member(:vendor_name, Shapes::ShapeRef.new(shape: VendorName, required: true, location_name: "VendorName"))
|
847
893
|
ListAvailableManagedRuleGroupVersionsRequest.add_member(:name, Shapes::ShapeRef.new(shape: EntityName, required: true, location_name: "Name"))
|
848
894
|
ListAvailableManagedRuleGroupVersionsRequest.add_member(:scope, Shapes::ShapeRef.new(shape: Scope, required: true, location_name: "Scope"))
|
@@ -1538,6 +1584,18 @@ module Aws::WAFV2
|
|
1538
1584
|
o.errors << Shapes::ShapeRef.new(shape: WAFInvalidOperationException)
|
1539
1585
|
end)
|
1540
1586
|
|
1587
|
+
api.add_operation(:create_api_key, Seahorse::Model::Operation.new.tap do |o|
|
1588
|
+
o.name = "CreateAPIKey"
|
1589
|
+
o.http_method = "POST"
|
1590
|
+
o.http_request_uri = "/"
|
1591
|
+
o.input = Shapes::ShapeRef.new(shape: CreateAPIKeyRequest)
|
1592
|
+
o.output = Shapes::ShapeRef.new(shape: CreateAPIKeyResponse)
|
1593
|
+
o.errors << Shapes::ShapeRef.new(shape: WAFInternalErrorException)
|
1594
|
+
o.errors << Shapes::ShapeRef.new(shape: WAFInvalidParameterException)
|
1595
|
+
o.errors << Shapes::ShapeRef.new(shape: WAFInvalidOperationException)
|
1596
|
+
o.errors << Shapes::ShapeRef.new(shape: WAFLimitsExceededException)
|
1597
|
+
end)
|
1598
|
+
|
1541
1599
|
api.add_operation(:create_ip_set, Seahorse::Model::Operation.new.tap do |o|
|
1542
1600
|
o.name = "CreateIPSet"
|
1543
1601
|
o.http_method = "POST"
|
@@ -1750,6 +1808,18 @@ module Aws::WAFV2
|
|
1750
1808
|
o.errors << Shapes::ShapeRef.new(shape: WAFInvalidOperationException)
|
1751
1809
|
end)
|
1752
1810
|
|
1811
|
+
api.add_operation(:get_decrypted_api_key, Seahorse::Model::Operation.new.tap do |o|
|
1812
|
+
o.name = "GetDecryptedAPIKey"
|
1813
|
+
o.http_method = "POST"
|
1814
|
+
o.http_request_uri = "/"
|
1815
|
+
o.input = Shapes::ShapeRef.new(shape: GetDecryptedAPIKeyRequest)
|
1816
|
+
o.output = Shapes::ShapeRef.new(shape: GetDecryptedAPIKeyResponse)
|
1817
|
+
o.errors << Shapes::ShapeRef.new(shape: WAFInternalErrorException)
|
1818
|
+
o.errors << Shapes::ShapeRef.new(shape: WAFInvalidParameterException)
|
1819
|
+
o.errors << Shapes::ShapeRef.new(shape: WAFInvalidOperationException)
|
1820
|
+
o.errors << Shapes::ShapeRef.new(shape: WAFInvalidResourceException)
|
1821
|
+
end)
|
1822
|
+
|
1753
1823
|
api.add_operation(:get_ip_set, Seahorse::Model::Operation.new.tap do |o|
|
1754
1824
|
o.name = "GetIPSet"
|
1755
1825
|
o.http_method = "POST"
|
@@ -1881,6 +1951,18 @@ module Aws::WAFV2
|
|
1881
1951
|
o.errors << Shapes::ShapeRef.new(shape: WAFInvalidOperationException)
|
1882
1952
|
end)
|
1883
1953
|
|
1954
|
+
api.add_operation(:list_api_keys, Seahorse::Model::Operation.new.tap do |o|
|
1955
|
+
o.name = "ListAPIKeys"
|
1956
|
+
o.http_method = "POST"
|
1957
|
+
o.http_request_uri = "/"
|
1958
|
+
o.input = Shapes::ShapeRef.new(shape: ListAPIKeysRequest)
|
1959
|
+
o.output = Shapes::ShapeRef.new(shape: ListAPIKeysResponse)
|
1960
|
+
o.errors << Shapes::ShapeRef.new(shape: WAFInternalErrorException)
|
1961
|
+
o.errors << Shapes::ShapeRef.new(shape: WAFInvalidParameterException)
|
1962
|
+
o.errors << Shapes::ShapeRef.new(shape: WAFInvalidOperationException)
|
1963
|
+
o.errors << Shapes::ShapeRef.new(shape: WAFInvalidResourceException)
|
1964
|
+
end)
|
1965
|
+
|
1884
1966
|
api.add_operation(:list_available_managed_rule_group_versions, Seahorse::Model::Operation.new.tap do |o|
|
1885
1967
|
o.name = "ListAvailableManagedRuleGroupVersions"
|
1886
1968
|
o.http_method = "POST"
|
@@ -39,6 +39,20 @@ module Aws::WAFV2
|
|
39
39
|
end
|
40
40
|
end
|
41
41
|
|
42
|
+
class CreateAPIKey
|
43
|
+
def self.build(context)
|
44
|
+
unless context.config.regional_endpoint
|
45
|
+
endpoint = context.config.endpoint.to_s
|
46
|
+
end
|
47
|
+
Aws::WAFV2::EndpointParameters.new(
|
48
|
+
region: context.config.region,
|
49
|
+
use_dual_stack: context.config.use_dualstack_endpoint,
|
50
|
+
use_fips: context.config.use_fips_endpoint,
|
51
|
+
endpoint: endpoint,
|
52
|
+
)
|
53
|
+
end
|
54
|
+
end
|
55
|
+
|
42
56
|
class CreateIPSet
|
43
57
|
def self.build(context)
|
44
58
|
unless context.config.regional_endpoint
|
@@ -235,6 +249,20 @@ module Aws::WAFV2
|
|
235
249
|
end
|
236
250
|
end
|
237
251
|
|
252
|
+
class GetDecryptedAPIKey
|
253
|
+
def self.build(context)
|
254
|
+
unless context.config.regional_endpoint
|
255
|
+
endpoint = context.config.endpoint.to_s
|
256
|
+
end
|
257
|
+
Aws::WAFV2::EndpointParameters.new(
|
258
|
+
region: context.config.region,
|
259
|
+
use_dual_stack: context.config.use_dualstack_endpoint,
|
260
|
+
use_fips: context.config.use_fips_endpoint,
|
261
|
+
endpoint: endpoint,
|
262
|
+
)
|
263
|
+
end
|
264
|
+
end
|
265
|
+
|
238
266
|
class GetIPSet
|
239
267
|
def self.build(context)
|
240
268
|
unless context.config.regional_endpoint
|
@@ -389,6 +417,20 @@ module Aws::WAFV2
|
|
389
417
|
end
|
390
418
|
end
|
391
419
|
|
420
|
+
class ListAPIKeys
|
421
|
+
def self.build(context)
|
422
|
+
unless context.config.regional_endpoint
|
423
|
+
endpoint = context.config.endpoint.to_s
|
424
|
+
end
|
425
|
+
Aws::WAFV2::EndpointParameters.new(
|
426
|
+
region: context.config.region,
|
427
|
+
use_dual_stack: context.config.use_dualstack_endpoint,
|
428
|
+
use_fips: context.config.use_fips_endpoint,
|
429
|
+
endpoint: endpoint,
|
430
|
+
)
|
431
|
+
end
|
432
|
+
end
|
433
|
+
|
392
434
|
class ListAvailableManagedRuleGroupVersions
|
393
435
|
def self.build(context)
|
394
436
|
unless context.config.regional_endpoint
|
@@ -60,6 +60,8 @@ module Aws::WAFV2
|
|
60
60
|
Aws::WAFV2::Endpoints::AssociateWebACL.build(context)
|
61
61
|
when :check_capacity
|
62
62
|
Aws::WAFV2::Endpoints::CheckCapacity.build(context)
|
63
|
+
when :create_api_key
|
64
|
+
Aws::WAFV2::Endpoints::CreateAPIKey.build(context)
|
63
65
|
when :create_ip_set
|
64
66
|
Aws::WAFV2::Endpoints::CreateIPSet.build(context)
|
65
67
|
when :create_regex_pattern_set
|
@@ -88,6 +90,8 @@ module Aws::WAFV2
|
|
88
90
|
Aws::WAFV2::Endpoints::DisassociateWebACL.build(context)
|
89
91
|
when :generate_mobile_sdk_release_url
|
90
92
|
Aws::WAFV2::Endpoints::GenerateMobileSdkReleaseUrl.build(context)
|
93
|
+
when :get_decrypted_api_key
|
94
|
+
Aws::WAFV2::Endpoints::GetDecryptedAPIKey.build(context)
|
91
95
|
when :get_ip_set
|
92
96
|
Aws::WAFV2::Endpoints::GetIPSet.build(context)
|
93
97
|
when :get_logging_configuration
|
@@ -110,6 +114,8 @@ module Aws::WAFV2
|
|
110
114
|
Aws::WAFV2::Endpoints::GetWebACL.build(context)
|
111
115
|
when :get_web_acl_for_resource
|
112
116
|
Aws::WAFV2::Endpoints::GetWebACLForResource.build(context)
|
117
|
+
when :list_api_keys
|
118
|
+
Aws::WAFV2::Endpoints::ListAPIKeys.build(context)
|
113
119
|
when :list_available_managed_rule_group_versions
|
114
120
|
Aws::WAFV2::Endpoints::ListAvailableManagedRuleGroupVersions.build(context)
|
115
121
|
when :list_available_managed_rule_groups
|