aws-sdk-wafv2 1.60.0 → 1.62.0

Sign up to get free protection for your applications and to get access to all the features.
@@ -18,11 +18,14 @@ module Aws::WAFV2
18
18
  APIKeySummary = Shapes::StructureShape.new(name: 'APIKeySummary')
19
19
  APIKeyTokenDomains = Shapes::ListShape.new(name: 'APIKeyTokenDomains')
20
20
  APIKeyVersion = Shapes::IntegerShape.new(name: 'APIKeyVersion')
21
+ AWSManagedRulesACFPRuleSet = Shapes::StructureShape.new(name: 'AWSManagedRulesACFPRuleSet')
21
22
  AWSManagedRulesATPRuleSet = Shapes::StructureShape.new(name: 'AWSManagedRulesATPRuleSet')
22
23
  AWSManagedRulesBotControlRuleSet = Shapes::StructureShape.new(name: 'AWSManagedRulesBotControlRuleSet')
23
24
  Action = Shapes::StringShape.new(name: 'Action')
24
25
  ActionCondition = Shapes::StructureShape.new(name: 'ActionCondition')
25
26
  ActionValue = Shapes::StringShape.new(name: 'ActionValue')
27
+ AddressField = Shapes::StructureShape.new(name: 'AddressField')
28
+ AddressFields = Shapes::ListShape.new(name: 'AddressFields')
26
29
  All = Shapes::StructureShape.new(name: 'All')
27
30
  AllQueryArguments = Shapes::StructureShape.new(name: 'AllQueryArguments')
28
31
  AllowAction = Shapes::StructureShape.new(name: 'AllowAction')
@@ -66,6 +69,7 @@ module Aws::WAFV2
66
69
  CreateRuleGroupResponse = Shapes::StructureShape.new(name: 'CreateRuleGroupResponse')
67
70
  CreateWebACLRequest = Shapes::StructureShape.new(name: 'CreateWebACLRequest')
68
71
  CreateWebACLResponse = Shapes::StructureShape.new(name: 'CreateWebACLResponse')
72
+ CreationPathString = Shapes::StringShape.new(name: 'CreationPathString')
69
73
  CustomHTTPHeader = Shapes::StructureShape.new(name: 'CustomHTTPHeader')
70
74
  CustomHTTPHeaderName = Shapes::StringShape.new(name: 'CustomHTTPHeaderName')
71
75
  CustomHTTPHeaderValue = Shapes::StringShape.new(name: 'CustomHTTPHeaderValue')
@@ -89,11 +93,16 @@ module Aws::WAFV2
89
93
  DeleteRuleGroupResponse = Shapes::StructureShape.new(name: 'DeleteRuleGroupResponse')
90
94
  DeleteWebACLRequest = Shapes::StructureShape.new(name: 'DeleteWebACLRequest')
91
95
  DeleteWebACLResponse = Shapes::StructureShape.new(name: 'DeleteWebACLResponse')
96
+ DescribeAllManagedProductsRequest = Shapes::StructureShape.new(name: 'DescribeAllManagedProductsRequest')
97
+ DescribeAllManagedProductsResponse = Shapes::StructureShape.new(name: 'DescribeAllManagedProductsResponse')
98
+ DescribeManagedProductsByVendorRequest = Shapes::StructureShape.new(name: 'DescribeManagedProductsByVendorRequest')
99
+ DescribeManagedProductsByVendorResponse = Shapes::StructureShape.new(name: 'DescribeManagedProductsByVendorResponse')
92
100
  DescribeManagedRuleGroupRequest = Shapes::StructureShape.new(name: 'DescribeManagedRuleGroupRequest')
93
101
  DescribeManagedRuleGroupResponse = Shapes::StructureShape.new(name: 'DescribeManagedRuleGroupResponse')
94
102
  DisassociateWebACLRequest = Shapes::StructureShape.new(name: 'DisassociateWebACLRequest')
95
103
  DisassociateWebACLResponse = Shapes::StructureShape.new(name: 'DisassociateWebACLResponse')
96
104
  DownloadUrl = Shapes::StringShape.new(name: 'DownloadUrl')
105
+ EmailField = Shapes::StructureShape.new(name: 'EmailField')
97
106
  EntityDescription = Shapes::StringShape.new(name: 'EntityDescription')
98
107
  EntityId = Shapes::StringShape.new(name: 'EntityId')
99
108
  EntityName = Shapes::StringShape.new(name: 'EntityName')
@@ -213,6 +222,8 @@ module Aws::WAFV2
213
222
  LoggingConfigurations = Shapes::ListShape.new(name: 'LoggingConfigurations')
214
223
  LoggingFilter = Shapes::StructureShape.new(name: 'LoggingFilter')
215
224
  LoginPathString = Shapes::StringShape.new(name: 'LoginPathString')
225
+ ManagedProductDescriptor = Shapes::StructureShape.new(name: 'ManagedProductDescriptor')
226
+ ManagedProductDescriptors = Shapes::ListShape.new(name: 'ManagedProductDescriptors')
216
227
  ManagedRuleGroupConfig = Shapes::StructureShape.new(name: 'ManagedRuleGroupConfig')
217
228
  ManagedRuleGroupConfigs = Shapes::ListShape.new(name: 'ManagedRuleGroupConfigs')
218
229
  ManagedRuleGroupStatement = Shapes::StructureShape.new(name: 'ManagedRuleGroupStatement')
@@ -240,10 +251,16 @@ module Aws::WAFV2
240
251
  ParameterExceptionParameter = Shapes::StringShape.new(name: 'ParameterExceptionParameter')
241
252
  PasswordField = Shapes::StructureShape.new(name: 'PasswordField')
242
253
  PayloadType = Shapes::StringShape.new(name: 'PayloadType')
254
+ PhoneNumberField = Shapes::StructureShape.new(name: 'PhoneNumberField')
255
+ PhoneNumberFields = Shapes::ListShape.new(name: 'PhoneNumberFields')
243
256
  Platform = Shapes::StringShape.new(name: 'Platform')
244
257
  PolicyString = Shapes::StringShape.new(name: 'PolicyString')
245
258
  PopulationSize = Shapes::IntegerShape.new(name: 'PopulationSize')
246
259
  PositionalConstraint = Shapes::StringShape.new(name: 'PositionalConstraint')
260
+ ProductDescription = Shapes::StringShape.new(name: 'ProductDescription')
261
+ ProductId = Shapes::StringShape.new(name: 'ProductId')
262
+ ProductLink = Shapes::StringShape.new(name: 'ProductLink')
263
+ ProductTitle = Shapes::StringShape.new(name: 'ProductTitle')
247
264
  PublishedVersions = Shapes::MapShape.new(name: 'PublishedVersions')
248
265
  PutLoggingConfigurationRequest = Shapes::StructureShape.new(name: 'PutLoggingConfigurationRequest')
249
266
  PutLoggingConfigurationResponse = Shapes::StructureShape.new(name: 'PutLoggingConfigurationResponse')
@@ -274,6 +291,7 @@ module Aws::WAFV2
274
291
  RegexPatternSetSummaries = Shapes::ListShape.new(name: 'RegexPatternSetSummaries')
275
292
  RegexPatternSetSummary = Shapes::StructureShape.new(name: 'RegexPatternSetSummary')
276
293
  RegexPatternString = Shapes::StringShape.new(name: 'RegexPatternString')
294
+ RegistrationPagePathString = Shapes::StringShape.new(name: 'RegistrationPagePathString')
277
295
  RegularExpressionList = Shapes::ListShape.new(name: 'RegularExpressionList')
278
296
  ReleaseNotes = Shapes::StringShape.new(name: 'ReleaseNotes')
279
297
  ReleaseSummaries = Shapes::ListShape.new(name: 'ReleaseSummaries')
@@ -281,6 +299,7 @@ module Aws::WAFV2
281
299
  RequestBody = Shapes::MapShape.new(name: 'RequestBody')
282
300
  RequestBodyAssociatedResourceTypeConfig = Shapes::StructureShape.new(name: 'RequestBodyAssociatedResourceTypeConfig')
283
301
  RequestInspection = Shapes::StructureShape.new(name: 'RequestInspection')
302
+ RequestInspectionACFP = Shapes::StructureShape.new(name: 'RequestInspectionACFP')
284
303
  ResourceArn = Shapes::StringShape.new(name: 'ResourceArn')
285
304
  ResourceArns = Shapes::ListShape.new(name: 'ResourceArns')
286
305
  ResourceType = Shapes::StringShape.new(name: 'ResourceType')
@@ -405,9 +424,17 @@ module Aws::WAFV2
405
424
 
406
425
  APIKeyTokenDomains.member = Shapes::ShapeRef.new(shape: TokenDomain)
407
426
 
427
+ AWSManagedRulesACFPRuleSet.add_member(:creation_path, Shapes::ShapeRef.new(shape: CreationPathString, required: true, location_name: "CreationPath"))
428
+ AWSManagedRulesACFPRuleSet.add_member(:registration_page_path, Shapes::ShapeRef.new(shape: RegistrationPagePathString, required: true, location_name: "RegistrationPagePath"))
429
+ AWSManagedRulesACFPRuleSet.add_member(:request_inspection, Shapes::ShapeRef.new(shape: RequestInspectionACFP, required: true, location_name: "RequestInspection"))
430
+ AWSManagedRulesACFPRuleSet.add_member(:response_inspection, Shapes::ShapeRef.new(shape: ResponseInspection, location_name: "ResponseInspection"))
431
+ AWSManagedRulesACFPRuleSet.add_member(:enable_regex_in_path, Shapes::ShapeRef.new(shape: Boolean, location_name: "EnableRegexInPath"))
432
+ AWSManagedRulesACFPRuleSet.struct_class = Types::AWSManagedRulesACFPRuleSet
433
+
408
434
  AWSManagedRulesATPRuleSet.add_member(:login_path, Shapes::ShapeRef.new(shape: String, required: true, location_name: "LoginPath"))
409
435
  AWSManagedRulesATPRuleSet.add_member(:request_inspection, Shapes::ShapeRef.new(shape: RequestInspection, location_name: "RequestInspection"))
410
436
  AWSManagedRulesATPRuleSet.add_member(:response_inspection, Shapes::ShapeRef.new(shape: ResponseInspection, location_name: "ResponseInspection"))
437
+ AWSManagedRulesATPRuleSet.add_member(:enable_regex_in_path, Shapes::ShapeRef.new(shape: Boolean, location_name: "EnableRegexInPath"))
411
438
  AWSManagedRulesATPRuleSet.struct_class = Types::AWSManagedRulesATPRuleSet
412
439
 
413
440
  AWSManagedRulesBotControlRuleSet.add_member(:inspection_level, Shapes::ShapeRef.new(shape: InspectionLevel, required: true, location_name: "InspectionLevel"))
@@ -416,6 +443,11 @@ module Aws::WAFV2
416
443
  ActionCondition.add_member(:action, Shapes::ShapeRef.new(shape: ActionValue, required: true, location_name: "Action"))
417
444
  ActionCondition.struct_class = Types::ActionCondition
418
445
 
446
+ AddressField.add_member(:identifier, Shapes::ShapeRef.new(shape: FieldIdentifier, required: true, location_name: "Identifier"))
447
+ AddressField.struct_class = Types::AddressField
448
+
449
+ AddressFields.member = Shapes::ShapeRef.new(shape: AddressField)
450
+
419
451
  All.struct_class = Types::All
420
452
 
421
453
  AllQueryArguments.struct_class = Types::AllQueryArguments
@@ -631,6 +663,19 @@ module Aws::WAFV2
631
663
 
632
664
  DeleteWebACLResponse.struct_class = Types::DeleteWebACLResponse
633
665
 
666
+ DescribeAllManagedProductsRequest.add_member(:scope, Shapes::ShapeRef.new(shape: Scope, required: true, location_name: "Scope"))
667
+ DescribeAllManagedProductsRequest.struct_class = Types::DescribeAllManagedProductsRequest
668
+
669
+ DescribeAllManagedProductsResponse.add_member(:managed_products, Shapes::ShapeRef.new(shape: ManagedProductDescriptors, location_name: "ManagedProducts"))
670
+ DescribeAllManagedProductsResponse.struct_class = Types::DescribeAllManagedProductsResponse
671
+
672
+ DescribeManagedProductsByVendorRequest.add_member(:vendor_name, Shapes::ShapeRef.new(shape: VendorName, required: true, location_name: "VendorName"))
673
+ DescribeManagedProductsByVendorRequest.add_member(:scope, Shapes::ShapeRef.new(shape: Scope, required: true, location_name: "Scope"))
674
+ DescribeManagedProductsByVendorRequest.struct_class = Types::DescribeManagedProductsByVendorRequest
675
+
676
+ DescribeManagedProductsByVendorResponse.add_member(:managed_products, Shapes::ShapeRef.new(shape: ManagedProductDescriptors, location_name: "ManagedProducts"))
677
+ DescribeManagedProductsByVendorResponse.struct_class = Types::DescribeManagedProductsByVendorResponse
678
+
634
679
  DescribeManagedRuleGroupRequest.add_member(:vendor_name, Shapes::ShapeRef.new(shape: VendorName, required: true, location_name: "VendorName"))
635
680
  DescribeManagedRuleGroupRequest.add_member(:name, Shapes::ShapeRef.new(shape: EntityName, required: true, location_name: "Name"))
636
681
  DescribeManagedRuleGroupRequest.add_member(:scope, Shapes::ShapeRef.new(shape: Scope, required: true, location_name: "Scope"))
@@ -651,6 +696,9 @@ module Aws::WAFV2
651
696
 
652
697
  DisassociateWebACLResponse.struct_class = Types::DisassociateWebACLResponse
653
698
 
699
+ EmailField.add_member(:identifier, Shapes::ShapeRef.new(shape: FieldIdentifier, required: true, location_name: "Identifier"))
700
+ EmailField.struct_class = Types::EmailField
701
+
654
702
  ExcludedRule.add_member(:name, Shapes::ShapeRef.new(shape: EntityName, required: true, location_name: "Name"))
655
703
  ExcludedRule.struct_class = Types::ExcludedRule
656
704
 
@@ -1021,12 +1069,26 @@ module Aws::WAFV2
1021
1069
  LoggingFilter.add_member(:default_behavior, Shapes::ShapeRef.new(shape: FilterBehavior, required: true, location_name: "DefaultBehavior"))
1022
1070
  LoggingFilter.struct_class = Types::LoggingFilter
1023
1071
 
1072
+ ManagedProductDescriptor.add_member(:vendor_name, Shapes::ShapeRef.new(shape: VendorName, location_name: "VendorName"))
1073
+ ManagedProductDescriptor.add_member(:managed_rule_set_name, Shapes::ShapeRef.new(shape: EntityName, location_name: "ManagedRuleSetName"))
1074
+ ManagedProductDescriptor.add_member(:product_id, Shapes::ShapeRef.new(shape: ProductId, location_name: "ProductId"))
1075
+ ManagedProductDescriptor.add_member(:product_link, Shapes::ShapeRef.new(shape: ProductLink, location_name: "ProductLink"))
1076
+ ManagedProductDescriptor.add_member(:product_title, Shapes::ShapeRef.new(shape: ProductTitle, location_name: "ProductTitle"))
1077
+ ManagedProductDescriptor.add_member(:product_description, Shapes::ShapeRef.new(shape: ProductDescription, location_name: "ProductDescription"))
1078
+ ManagedProductDescriptor.add_member(:sns_topic_arn, Shapes::ShapeRef.new(shape: ResourceArn, location_name: "SnsTopicArn"))
1079
+ ManagedProductDescriptor.add_member(:is_versioning_supported, Shapes::ShapeRef.new(shape: Boolean, location_name: "IsVersioningSupported"))
1080
+ ManagedProductDescriptor.add_member(:is_advanced_managed_rule_set, Shapes::ShapeRef.new(shape: Boolean, location_name: "IsAdvancedManagedRuleSet"))
1081
+ ManagedProductDescriptor.struct_class = Types::ManagedProductDescriptor
1082
+
1083
+ ManagedProductDescriptors.member = Shapes::ShapeRef.new(shape: ManagedProductDescriptor)
1084
+
1024
1085
  ManagedRuleGroupConfig.add_member(:login_path, Shapes::ShapeRef.new(shape: LoginPathString, deprecated: true, location_name: "LoginPath", metadata: {"deprecatedMessage"=>"Deprecated. Use AWSManagedRulesATPRuleSet LoginPath"}))
1025
1086
  ManagedRuleGroupConfig.add_member(:payload_type, Shapes::ShapeRef.new(shape: PayloadType, deprecated: true, location_name: "PayloadType", metadata: {"deprecatedMessage"=>"Deprecated. Use AWSManagedRulesATPRuleSet RequestInspection PayloadType"}))
1026
1087
  ManagedRuleGroupConfig.add_member(:username_field, Shapes::ShapeRef.new(shape: UsernameField, deprecated: true, location_name: "UsernameField", metadata: {"deprecatedMessage"=>"Deprecated. Use AWSManagedRulesATPRuleSet RequestInspection UsernameField"}))
1027
1088
  ManagedRuleGroupConfig.add_member(:password_field, Shapes::ShapeRef.new(shape: PasswordField, deprecated: true, location_name: "PasswordField", metadata: {"deprecatedMessage"=>"Deprecated. Use AWSManagedRulesATPRuleSet RequestInspection PasswordField"}))
1028
1089
  ManagedRuleGroupConfig.add_member(:aws_managed_rules_bot_control_rule_set, Shapes::ShapeRef.new(shape: AWSManagedRulesBotControlRuleSet, location_name: "AWSManagedRulesBotControlRuleSet"))
1029
1090
  ManagedRuleGroupConfig.add_member(:aws_managed_rules_atp_rule_set, Shapes::ShapeRef.new(shape: AWSManagedRulesATPRuleSet, location_name: "AWSManagedRulesATPRuleSet"))
1091
+ ManagedRuleGroupConfig.add_member(:aws_managed_rules_acfp_rule_set, Shapes::ShapeRef.new(shape: AWSManagedRulesACFPRuleSet, location_name: "AWSManagedRulesACFPRuleSet"))
1030
1092
  ManagedRuleGroupConfig.struct_class = Types::ManagedRuleGroupConfig
1031
1093
 
1032
1094
  ManagedRuleGroupConfigs.member = Shapes::ShapeRef.new(shape: ManagedRuleGroupConfig)
@@ -1104,6 +1166,11 @@ module Aws::WAFV2
1104
1166
  PasswordField.add_member(:identifier, Shapes::ShapeRef.new(shape: FieldIdentifier, required: true, location_name: "Identifier"))
1105
1167
  PasswordField.struct_class = Types::PasswordField
1106
1168
 
1169
+ PhoneNumberField.add_member(:identifier, Shapes::ShapeRef.new(shape: FieldIdentifier, required: true, location_name: "Identifier"))
1170
+ PhoneNumberField.struct_class = Types::PhoneNumberField
1171
+
1172
+ PhoneNumberFields.member = Shapes::ShapeRef.new(shape: PhoneNumberField)
1173
+
1107
1174
  PublishedVersions.key = Shapes::ShapeRef.new(shape: VersionKeyString)
1108
1175
  PublishedVersions.value = Shapes::ShapeRef.new(shape: ManagedRuleSetVersion)
1109
1176
 
@@ -1229,6 +1296,14 @@ module Aws::WAFV2
1229
1296
  RequestInspection.add_member(:password_field, Shapes::ShapeRef.new(shape: PasswordField, required: true, location_name: "PasswordField"))
1230
1297
  RequestInspection.struct_class = Types::RequestInspection
1231
1298
 
1299
+ RequestInspectionACFP.add_member(:payload_type, Shapes::ShapeRef.new(shape: PayloadType, required: true, location_name: "PayloadType"))
1300
+ RequestInspectionACFP.add_member(:username_field, Shapes::ShapeRef.new(shape: UsernameField, location_name: "UsernameField"))
1301
+ RequestInspectionACFP.add_member(:password_field, Shapes::ShapeRef.new(shape: PasswordField, location_name: "PasswordField"))
1302
+ RequestInspectionACFP.add_member(:email_field, Shapes::ShapeRef.new(shape: EmailField, location_name: "EmailField"))
1303
+ RequestInspectionACFP.add_member(:phone_number_fields, Shapes::ShapeRef.new(shape: PhoneNumberFields, location_name: "PhoneNumberFields"))
1304
+ RequestInspectionACFP.add_member(:address_fields, Shapes::ShapeRef.new(shape: AddressFields, location_name: "AddressFields"))
1305
+ RequestInspectionACFP.struct_class = Types::RequestInspectionACFP
1306
+
1232
1307
  ResourceArns.member = Shapes::ShapeRef.new(shape: ResourceArn)
1233
1308
 
1234
1309
  ResponseInspection.add_member(:status_code, Shapes::ShapeRef.new(shape: ResponseInspectionStatusCode, location_name: "StatusCode"))
@@ -1827,6 +1902,27 @@ module Aws::WAFV2
1827
1902
  o.errors << Shapes::ShapeRef.new(shape: WAFInvalidOperationException)
1828
1903
  end)
1829
1904
 
1905
+ api.add_operation(:describe_all_managed_products, Seahorse::Model::Operation.new.tap do |o|
1906
+ o.name = "DescribeAllManagedProducts"
1907
+ o.http_method = "POST"
1908
+ o.http_request_uri = "/"
1909
+ o.input = Shapes::ShapeRef.new(shape: DescribeAllManagedProductsRequest)
1910
+ o.output = Shapes::ShapeRef.new(shape: DescribeAllManagedProductsResponse)
1911
+ o.errors << Shapes::ShapeRef.new(shape: WAFInvalidOperationException)
1912
+ o.errors << Shapes::ShapeRef.new(shape: WAFInternalErrorException)
1913
+ end)
1914
+
1915
+ api.add_operation(:describe_managed_products_by_vendor, Seahorse::Model::Operation.new.tap do |o|
1916
+ o.name = "DescribeManagedProductsByVendor"
1917
+ o.http_method = "POST"
1918
+ o.http_request_uri = "/"
1919
+ o.input = Shapes::ShapeRef.new(shape: DescribeManagedProductsByVendorRequest)
1920
+ o.output = Shapes::ShapeRef.new(shape: DescribeManagedProductsByVendorResponse)
1921
+ o.errors << Shapes::ShapeRef.new(shape: WAFInvalidOperationException)
1922
+ o.errors << Shapes::ShapeRef.new(shape: WAFInternalErrorException)
1923
+ o.errors << Shapes::ShapeRef.new(shape: WAFInvalidParameterException)
1924
+ end)
1925
+
1830
1926
  api.add_operation(:describe_managed_rule_group, Seahorse::Model::Operation.new.tap do |o|
1831
1927
  o.name = "DescribeManagedRuleGroup"
1832
1928
  o.http_method = "POST"
@@ -207,6 +207,34 @@ module Aws::WAFV2
207
207
  end
208
208
  end
209
209
 
210
+ class DescribeAllManagedProducts
211
+ def self.build(context)
212
+ unless context.config.regional_endpoint
213
+ endpoint = context.config.endpoint.to_s
214
+ end
215
+ Aws::WAFV2::EndpointParameters.new(
216
+ region: context.config.region,
217
+ use_dual_stack: context.config.use_dualstack_endpoint,
218
+ use_fips: context.config.use_fips_endpoint,
219
+ endpoint: endpoint,
220
+ )
221
+ end
222
+ end
223
+
224
+ class DescribeManagedProductsByVendor
225
+ def self.build(context)
226
+ unless context.config.regional_endpoint
227
+ endpoint = context.config.endpoint.to_s
228
+ end
229
+ Aws::WAFV2::EndpointParameters.new(
230
+ region: context.config.region,
231
+ use_dual_stack: context.config.use_dualstack_endpoint,
232
+ use_fips: context.config.use_fips_endpoint,
233
+ endpoint: endpoint,
234
+ )
235
+ end
236
+ end
237
+
210
238
  class DescribeManagedRuleGroup
211
239
  def self.build(context)
212
240
  unless context.config.regional_endpoint
@@ -84,6 +84,10 @@ module Aws::WAFV2
84
84
  Aws::WAFV2::Endpoints::DeleteRuleGroup.build(context)
85
85
  when :delete_web_acl
86
86
  Aws::WAFV2::Endpoints::DeleteWebACL.build(context)
87
+ when :describe_all_managed_products
88
+ Aws::WAFV2::Endpoints::DescribeAllManagedProducts.build(context)
89
+ when :describe_managed_products_by_vendor
90
+ Aws::WAFV2::Endpoints::DescribeManagedProductsByVendor.build(context)
87
91
  when :describe_managed_rule_group
88
92
  Aws::WAFV2::Endpoints::DescribeManagedRuleGroup.build(context)
89
93
  when :disassociate_web_acl