aws-sdk-wafv2 1.0.0 → 1.5.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -39,10 +39,14 @@ module Aws::WAFV2
39
39
  CreateWebACLRequest = Shapes::StructureShape.new(name: 'CreateWebACLRequest')
40
40
  CreateWebACLResponse = Shapes::StructureShape.new(name: 'CreateWebACLResponse')
41
41
  DefaultAction = Shapes::StructureShape.new(name: 'DefaultAction')
42
+ DeleteFirewallManagerRuleGroupsRequest = Shapes::StructureShape.new(name: 'DeleteFirewallManagerRuleGroupsRequest')
43
+ DeleteFirewallManagerRuleGroupsResponse = Shapes::StructureShape.new(name: 'DeleteFirewallManagerRuleGroupsResponse')
42
44
  DeleteIPSetRequest = Shapes::StructureShape.new(name: 'DeleteIPSetRequest')
43
45
  DeleteIPSetResponse = Shapes::StructureShape.new(name: 'DeleteIPSetResponse')
44
46
  DeleteLoggingConfigurationRequest = Shapes::StructureShape.new(name: 'DeleteLoggingConfigurationRequest')
45
47
  DeleteLoggingConfigurationResponse = Shapes::StructureShape.new(name: 'DeleteLoggingConfigurationResponse')
48
+ DeletePermissionPolicyRequest = Shapes::StructureShape.new(name: 'DeletePermissionPolicyRequest')
49
+ DeletePermissionPolicyResponse = Shapes::StructureShape.new(name: 'DeletePermissionPolicyResponse')
46
50
  DeleteRegexPatternSetRequest = Shapes::StructureShape.new(name: 'DeleteRegexPatternSetRequest')
47
51
  DeleteRegexPatternSetResponse = Shapes::StructureShape.new(name: 'DeleteRegexPatternSetResponse')
48
52
  DeleteRuleGroupRequest = Shapes::StructureShape.new(name: 'DeleteRuleGroupRequest')
@@ -62,11 +66,16 @@ module Aws::WAFV2
62
66
  ExcludedRules = Shapes::ListShape.new(name: 'ExcludedRules')
63
67
  FieldToMatch = Shapes::StructureShape.new(name: 'FieldToMatch')
64
68
  FieldToMatchData = Shapes::StringShape.new(name: 'FieldToMatchData')
69
+ FirewallManagerRuleGroup = Shapes::StructureShape.new(name: 'FirewallManagerRuleGroup')
70
+ FirewallManagerRuleGroups = Shapes::ListShape.new(name: 'FirewallManagerRuleGroups')
71
+ FirewallManagerStatement = Shapes::StructureShape.new(name: 'FirewallManagerStatement')
65
72
  GeoMatchStatement = Shapes::StructureShape.new(name: 'GeoMatchStatement')
66
73
  GetIPSetRequest = Shapes::StructureShape.new(name: 'GetIPSetRequest')
67
74
  GetIPSetResponse = Shapes::StructureShape.new(name: 'GetIPSetResponse')
68
75
  GetLoggingConfigurationRequest = Shapes::StructureShape.new(name: 'GetLoggingConfigurationRequest')
69
76
  GetLoggingConfigurationResponse = Shapes::StructureShape.new(name: 'GetLoggingConfigurationResponse')
77
+ GetPermissionPolicyRequest = Shapes::StructureShape.new(name: 'GetPermissionPolicyRequest')
78
+ GetPermissionPolicyResponse = Shapes::StructureShape.new(name: 'GetPermissionPolicyResponse')
70
79
  GetRateBasedStatementManagedKeysRequest = Shapes::StructureShape.new(name: 'GetRateBasedStatementManagedKeysRequest')
71
80
  GetRateBasedStatementManagedKeysResponse = Shapes::StructureShape.new(name: 'GetRateBasedStatementManagedKeysResponse')
72
81
  GetRegexPatternSetRequest = Shapes::StructureShape.new(name: 'GetRegexPatternSetRequest')
@@ -128,10 +137,13 @@ module Aws::WAFV2
128
137
  PaginationLimit = Shapes::IntegerShape.new(name: 'PaginationLimit')
129
138
  ParameterExceptionField = Shapes::StringShape.new(name: 'ParameterExceptionField')
130
139
  ParameterExceptionParameter = Shapes::StringShape.new(name: 'ParameterExceptionParameter')
140
+ PolicyString = Shapes::StringShape.new(name: 'PolicyString')
131
141
  PopulationSize = Shapes::IntegerShape.new(name: 'PopulationSize')
132
142
  PositionalConstraint = Shapes::StringShape.new(name: 'PositionalConstraint')
133
143
  PutLoggingConfigurationRequest = Shapes::StructureShape.new(name: 'PutLoggingConfigurationRequest')
134
144
  PutLoggingConfigurationResponse = Shapes::StructureShape.new(name: 'PutLoggingConfigurationResponse')
145
+ PutPermissionPolicyRequest = Shapes::StructureShape.new(name: 'PutPermissionPolicyRequest')
146
+ PutPermissionPolicyResponse = Shapes::StructureShape.new(name: 'PutPermissionPolicyResponse')
135
147
  QueryString = Shapes::StructureShape.new(name: 'QueryString')
136
148
  RateBasedStatement = Shapes::StructureShape.new(name: 'RateBasedStatement')
137
149
  RateBasedStatementAggregateKeyType = Shapes::StringShape.new(name: 'RateBasedStatementAggregateKeyType')
@@ -201,12 +213,15 @@ module Aws::WAFV2
201
213
  WAFAssociatedItemException = Shapes::StructureShape.new(name: 'WAFAssociatedItemException')
202
214
  WAFDuplicateItemException = Shapes::StructureShape.new(name: 'WAFDuplicateItemException')
203
215
  WAFInternalErrorException = Shapes::StructureShape.new(name: 'WAFInternalErrorException')
216
+ WAFInvalidOperationException = Shapes::StructureShape.new(name: 'WAFInvalidOperationException')
204
217
  WAFInvalidParameterException = Shapes::StructureShape.new(name: 'WAFInvalidParameterException')
218
+ WAFInvalidPermissionPolicyException = Shapes::StructureShape.new(name: 'WAFInvalidPermissionPolicyException')
205
219
  WAFInvalidResourceException = Shapes::StructureShape.new(name: 'WAFInvalidResourceException')
206
220
  WAFLimitsExceededException = Shapes::StructureShape.new(name: 'WAFLimitsExceededException')
207
221
  WAFNonexistentItemException = Shapes::StructureShape.new(name: 'WAFNonexistentItemException')
208
222
  WAFOptimisticLockException = Shapes::StructureShape.new(name: 'WAFOptimisticLockException')
209
223
  WAFServiceLinkedRoleErrorException = Shapes::StructureShape.new(name: 'WAFServiceLinkedRoleErrorException')
224
+ WAFSubscriptionNotFoundException = Shapes::StructureShape.new(name: 'WAFSubscriptionNotFoundException')
210
225
  WAFTagOperationException = Shapes::StructureShape.new(name: 'WAFTagOperationException')
211
226
  WAFTagOperationInternalErrorException = Shapes::StructureShape.new(name: 'WAFTagOperationInternalErrorException')
212
227
  WAFUnavailableEntityException = Shapes::StructureShape.new(name: 'WAFUnavailableEntityException')
@@ -298,6 +313,13 @@ module Aws::WAFV2
298
313
  DefaultAction.add_member(:allow, Shapes::ShapeRef.new(shape: AllowAction, location_name: "Allow"))
299
314
  DefaultAction.struct_class = Types::DefaultAction
300
315
 
316
+ DeleteFirewallManagerRuleGroupsRequest.add_member(:web_acl_arn, Shapes::ShapeRef.new(shape: ResourceArn, required: true, location_name: "WebACLArn"))
317
+ DeleteFirewallManagerRuleGroupsRequest.add_member(:web_acl_lock_token, Shapes::ShapeRef.new(shape: LockToken, required: true, location_name: "WebACLLockToken"))
318
+ DeleteFirewallManagerRuleGroupsRequest.struct_class = Types::DeleteFirewallManagerRuleGroupsRequest
319
+
320
+ DeleteFirewallManagerRuleGroupsResponse.add_member(:next_web_acl_lock_token, Shapes::ShapeRef.new(shape: LockToken, location_name: "NextWebACLLockToken"))
321
+ DeleteFirewallManagerRuleGroupsResponse.struct_class = Types::DeleteFirewallManagerRuleGroupsResponse
322
+
301
323
  DeleteIPSetRequest.add_member(:name, Shapes::ShapeRef.new(shape: EntityName, required: true, location_name: "Name"))
302
324
  DeleteIPSetRequest.add_member(:scope, Shapes::ShapeRef.new(shape: Scope, required: true, location_name: "Scope"))
303
325
  DeleteIPSetRequest.add_member(:id, Shapes::ShapeRef.new(shape: EntityId, required: true, location_name: "Id"))
@@ -311,6 +333,11 @@ module Aws::WAFV2
311
333
 
312
334
  DeleteLoggingConfigurationResponse.struct_class = Types::DeleteLoggingConfigurationResponse
313
335
 
336
+ DeletePermissionPolicyRequest.add_member(:resource_arn, Shapes::ShapeRef.new(shape: ResourceArn, required: true, location_name: "ResourceArn"))
337
+ DeletePermissionPolicyRequest.struct_class = Types::DeletePermissionPolicyRequest
338
+
339
+ DeletePermissionPolicyResponse.struct_class = Types::DeletePermissionPolicyResponse
340
+
314
341
  DeleteRegexPatternSetRequest.add_member(:name, Shapes::ShapeRef.new(shape: EntityName, required: true, location_name: "Name"))
315
342
  DeleteRegexPatternSetRequest.add_member(:scope, Shapes::ShapeRef.new(shape: Scope, required: true, location_name: "Scope"))
316
343
  DeleteRegexPatternSetRequest.add_member(:id, Shapes::ShapeRef.new(shape: EntityId, required: true, location_name: "Id"))
@@ -363,6 +390,19 @@ module Aws::WAFV2
363
390
  FieldToMatch.add_member(:method, Shapes::ShapeRef.new(shape: Method, location_name: "Method"))
364
391
  FieldToMatch.struct_class = Types::FieldToMatch
365
392
 
393
+ FirewallManagerRuleGroup.add_member(:name, Shapes::ShapeRef.new(shape: EntityName, required: true, location_name: "Name"))
394
+ FirewallManagerRuleGroup.add_member(:priority, Shapes::ShapeRef.new(shape: RulePriority, required: true, location_name: "Priority"))
395
+ FirewallManagerRuleGroup.add_member(:firewall_manager_statement, Shapes::ShapeRef.new(shape: FirewallManagerStatement, required: true, location_name: "FirewallManagerStatement"))
396
+ FirewallManagerRuleGroup.add_member(:override_action, Shapes::ShapeRef.new(shape: OverrideAction, required: true, location_name: "OverrideAction"))
397
+ FirewallManagerRuleGroup.add_member(:visibility_config, Shapes::ShapeRef.new(shape: VisibilityConfig, required: true, location_name: "VisibilityConfig"))
398
+ FirewallManagerRuleGroup.struct_class = Types::FirewallManagerRuleGroup
399
+
400
+ FirewallManagerRuleGroups.member = Shapes::ShapeRef.new(shape: FirewallManagerRuleGroup)
401
+
402
+ FirewallManagerStatement.add_member(:managed_rule_group_statement, Shapes::ShapeRef.new(shape: ManagedRuleGroupStatement, location_name: "ManagedRuleGroupStatement"))
403
+ FirewallManagerStatement.add_member(:rule_group_reference_statement, Shapes::ShapeRef.new(shape: RuleGroupReferenceStatement, location_name: "RuleGroupReferenceStatement"))
404
+ FirewallManagerStatement.struct_class = Types::FirewallManagerStatement
405
+
366
406
  GeoMatchStatement.add_member(:country_codes, Shapes::ShapeRef.new(shape: CountryCodes, location_name: "CountryCodes"))
367
407
  GeoMatchStatement.struct_class = Types::GeoMatchStatement
368
408
 
@@ -381,6 +421,12 @@ module Aws::WAFV2
381
421
  GetLoggingConfigurationResponse.add_member(:logging_configuration, Shapes::ShapeRef.new(shape: LoggingConfiguration, location_name: "LoggingConfiguration"))
382
422
  GetLoggingConfigurationResponse.struct_class = Types::GetLoggingConfigurationResponse
383
423
 
424
+ GetPermissionPolicyRequest.add_member(:resource_arn, Shapes::ShapeRef.new(shape: ResourceArn, required: true, location_name: "ResourceArn"))
425
+ GetPermissionPolicyRequest.struct_class = Types::GetPermissionPolicyRequest
426
+
427
+ GetPermissionPolicyResponse.add_member(:policy, Shapes::ShapeRef.new(shape: PolicyString, location_name: "Policy"))
428
+ GetPermissionPolicyResponse.struct_class = Types::GetPermissionPolicyResponse
429
+
384
430
  GetRateBasedStatementManagedKeysRequest.add_member(:scope, Shapes::ShapeRef.new(shape: Scope, required: true, location_name: "Scope"))
385
431
  GetRateBasedStatementManagedKeysRequest.add_member(:web_acl_name, Shapes::ShapeRef.new(shape: EntityName, required: true, location_name: "WebACLName"))
386
432
  GetRateBasedStatementManagedKeysRequest.add_member(:web_acl_id, Shapes::ShapeRef.new(shape: EntityId, required: true, location_name: "WebACLId"))
@@ -583,6 +629,12 @@ module Aws::WAFV2
583
629
  PutLoggingConfigurationResponse.add_member(:logging_configuration, Shapes::ShapeRef.new(shape: LoggingConfiguration, location_name: "LoggingConfiguration"))
584
630
  PutLoggingConfigurationResponse.struct_class = Types::PutLoggingConfigurationResponse
585
631
 
632
+ PutPermissionPolicyRequest.add_member(:resource_arn, Shapes::ShapeRef.new(shape: ResourceArn, required: true, location_name: "ResourceArn"))
633
+ PutPermissionPolicyRequest.add_member(:policy, Shapes::ShapeRef.new(shape: PolicyString, required: true, location_name: "Policy"))
634
+ PutPermissionPolicyRequest.struct_class = Types::PutPermissionPolicyRequest
635
+
636
+ PutPermissionPolicyResponse.struct_class = Types::PutPermissionPolicyResponse
637
+
586
638
  QueryString.struct_class = Types::QueryString
587
639
 
588
640
  RateBasedStatement.add_member(:limit, Shapes::ShapeRef.new(shape: RateLimit, required: true, location_name: "Limit"))
@@ -806,12 +858,18 @@ module Aws::WAFV2
806
858
  WAFInternalErrorException.add_member(:message, Shapes::ShapeRef.new(shape: ErrorMessage, location_name: "Message"))
807
859
  WAFInternalErrorException.struct_class = Types::WAFInternalErrorException
808
860
 
861
+ WAFInvalidOperationException.add_member(:message, Shapes::ShapeRef.new(shape: ErrorMessage, location_name: "Message"))
862
+ WAFInvalidOperationException.struct_class = Types::WAFInvalidOperationException
863
+
809
864
  WAFInvalidParameterException.add_member(:message, Shapes::ShapeRef.new(shape: ErrorMessage, location_name: "message"))
810
865
  WAFInvalidParameterException.add_member(:field, Shapes::ShapeRef.new(shape: ParameterExceptionField, location_name: "Field"))
811
866
  WAFInvalidParameterException.add_member(:parameter, Shapes::ShapeRef.new(shape: ParameterExceptionParameter, location_name: "Parameter"))
812
867
  WAFInvalidParameterException.add_member(:reason, Shapes::ShapeRef.new(shape: ErrorReason, location_name: "Reason"))
813
868
  WAFInvalidParameterException.struct_class = Types::WAFInvalidParameterException
814
869
 
870
+ WAFInvalidPermissionPolicyException.add_member(:message, Shapes::ShapeRef.new(shape: ErrorMessage, location_name: "Message"))
871
+ WAFInvalidPermissionPolicyException.struct_class = Types::WAFInvalidPermissionPolicyException
872
+
815
873
  WAFInvalidResourceException.add_member(:message, Shapes::ShapeRef.new(shape: ErrorMessage, location_name: "Message"))
816
874
  WAFInvalidResourceException.struct_class = Types::WAFInvalidResourceException
817
875
 
@@ -827,6 +885,9 @@ module Aws::WAFV2
827
885
  WAFServiceLinkedRoleErrorException.add_member(:message, Shapes::ShapeRef.new(shape: ErrorMessage, location_name: "message"))
828
886
  WAFServiceLinkedRoleErrorException.struct_class = Types::WAFServiceLinkedRoleErrorException
829
887
 
888
+ WAFSubscriptionNotFoundException.add_member(:message, Shapes::ShapeRef.new(shape: ErrorMessage, location_name: "Message"))
889
+ WAFSubscriptionNotFoundException.struct_class = Types::WAFSubscriptionNotFoundException
890
+
830
891
  WAFTagOperationException.add_member(:message, Shapes::ShapeRef.new(shape: ErrorMessage, location_name: "Message"))
831
892
  WAFTagOperationException.struct_class = Types::WAFTagOperationException
832
893
 
@@ -844,6 +905,9 @@ module Aws::WAFV2
844
905
  WebACL.add_member(:rules, Shapes::ShapeRef.new(shape: Rules, location_name: "Rules"))
845
906
  WebACL.add_member(:visibility_config, Shapes::ShapeRef.new(shape: VisibilityConfig, required: true, location_name: "VisibilityConfig"))
846
907
  WebACL.add_member(:capacity, Shapes::ShapeRef.new(shape: ConsumedCapacity, location_name: "Capacity"))
908
+ WebACL.add_member(:pre_process_firewall_manager_rule_groups, Shapes::ShapeRef.new(shape: FirewallManagerRuleGroups, location_name: "PreProcessFirewallManagerRuleGroups"))
909
+ WebACL.add_member(:post_process_firewall_manager_rule_groups, Shapes::ShapeRef.new(shape: FirewallManagerRuleGroups, location_name: "PostProcessFirewallManagerRuleGroups"))
910
+ WebACL.add_member(:managed_by_firewall_manager, Shapes::ShapeRef.new(shape: Boolean, location_name: "ManagedByFirewallManager"))
847
911
  WebACL.struct_class = Types::WebACL
848
912
 
849
913
  WebACLSummaries.member = Shapes::ShapeRef.new(shape: WebACLSummary)
@@ -888,6 +952,7 @@ module Aws::WAFV2
888
952
  o.errors << Shapes::ShapeRef.new(shape: WAFInvalidParameterException)
889
953
  o.errors << Shapes::ShapeRef.new(shape: WAFNonexistentItemException)
890
954
  o.errors << Shapes::ShapeRef.new(shape: WAFUnavailableEntityException)
955
+ o.errors << Shapes::ShapeRef.new(shape: WAFInvalidOperationException)
891
956
  end)
892
957
 
893
958
  api.add_operation(:check_capacity, Seahorse::Model::Operation.new.tap do |o|
@@ -902,6 +967,7 @@ module Aws::WAFV2
902
967
  o.errors << Shapes::ShapeRef.new(shape: WAFLimitsExceededException)
903
968
  o.errors << Shapes::ShapeRef.new(shape: WAFInvalidResourceException)
904
969
  o.errors << Shapes::ShapeRef.new(shape: WAFUnavailableEntityException)
970
+ o.errors << Shapes::ShapeRef.new(shape: WAFSubscriptionNotFoundException)
905
971
  end)
906
972
 
907
973
  api.add_operation(:create_ip_set, Seahorse::Model::Operation.new.tap do |o|
@@ -917,6 +983,7 @@ module Aws::WAFV2
917
983
  o.errors << Shapes::ShapeRef.new(shape: WAFLimitsExceededException)
918
984
  o.errors << Shapes::ShapeRef.new(shape: WAFTagOperationException)
919
985
  o.errors << Shapes::ShapeRef.new(shape: WAFTagOperationInternalErrorException)
986
+ o.errors << Shapes::ShapeRef.new(shape: WAFInvalidOperationException)
920
987
  end)
921
988
 
922
989
  api.add_operation(:create_regex_pattern_set, Seahorse::Model::Operation.new.tap do |o|
@@ -932,6 +999,7 @@ module Aws::WAFV2
932
999
  o.errors << Shapes::ShapeRef.new(shape: WAFLimitsExceededException)
933
1000
  o.errors << Shapes::ShapeRef.new(shape: WAFTagOperationException)
934
1001
  o.errors << Shapes::ShapeRef.new(shape: WAFTagOperationInternalErrorException)
1002
+ o.errors << Shapes::ShapeRef.new(shape: WAFInvalidOperationException)
935
1003
  end)
936
1004
 
937
1005
  api.add_operation(:create_rule_group, Seahorse::Model::Operation.new.tap do |o|
@@ -948,6 +1016,9 @@ module Aws::WAFV2
948
1016
  o.errors << Shapes::ShapeRef.new(shape: WAFUnavailableEntityException)
949
1017
  o.errors << Shapes::ShapeRef.new(shape: WAFTagOperationException)
950
1018
  o.errors << Shapes::ShapeRef.new(shape: WAFTagOperationInternalErrorException)
1019
+ o.errors << Shapes::ShapeRef.new(shape: WAFSubscriptionNotFoundException)
1020
+ o.errors << Shapes::ShapeRef.new(shape: WAFNonexistentItemException)
1021
+ o.errors << Shapes::ShapeRef.new(shape: WAFInvalidOperationException)
951
1022
  end)
952
1023
 
953
1024
  api.add_operation(:create_web_acl, Seahorse::Model::Operation.new.tap do |o|
@@ -966,6 +1037,21 @@ module Aws::WAFV2
966
1037
  o.errors << Shapes::ShapeRef.new(shape: WAFNonexistentItemException)
967
1038
  o.errors << Shapes::ShapeRef.new(shape: WAFTagOperationException)
968
1039
  o.errors << Shapes::ShapeRef.new(shape: WAFTagOperationInternalErrorException)
1040
+ o.errors << Shapes::ShapeRef.new(shape: WAFSubscriptionNotFoundException)
1041
+ o.errors << Shapes::ShapeRef.new(shape: WAFInvalidOperationException)
1042
+ end)
1043
+
1044
+ api.add_operation(:delete_firewall_manager_rule_groups, Seahorse::Model::Operation.new.tap do |o|
1045
+ o.name = "DeleteFirewallManagerRuleGroups"
1046
+ o.http_method = "POST"
1047
+ o.http_request_uri = "/"
1048
+ o.input = Shapes::ShapeRef.new(shape: DeleteFirewallManagerRuleGroupsRequest)
1049
+ o.output = Shapes::ShapeRef.new(shape: DeleteFirewallManagerRuleGroupsResponse)
1050
+ o.errors << Shapes::ShapeRef.new(shape: WAFInternalErrorException)
1051
+ o.errors << Shapes::ShapeRef.new(shape: WAFInvalidParameterException)
1052
+ o.errors << Shapes::ShapeRef.new(shape: WAFNonexistentItemException)
1053
+ o.errors << Shapes::ShapeRef.new(shape: WAFOptimisticLockException)
1054
+ o.errors << Shapes::ShapeRef.new(shape: WAFInvalidOperationException)
969
1055
  end)
970
1056
 
971
1057
  api.add_operation(:delete_ip_set, Seahorse::Model::Operation.new.tap do |o|
@@ -978,8 +1064,10 @@ module Aws::WAFV2
978
1064
  o.errors << Shapes::ShapeRef.new(shape: WAFInvalidParameterException)
979
1065
  o.errors << Shapes::ShapeRef.new(shape: WAFNonexistentItemException)
980
1066
  o.errors << Shapes::ShapeRef.new(shape: WAFOptimisticLockException)
1067
+ o.errors << Shapes::ShapeRef.new(shape: WAFAssociatedItemException)
981
1068
  o.errors << Shapes::ShapeRef.new(shape: WAFTagOperationException)
982
1069
  o.errors << Shapes::ShapeRef.new(shape: WAFTagOperationInternalErrorException)
1070
+ o.errors << Shapes::ShapeRef.new(shape: WAFInvalidOperationException)
983
1071
  end)
984
1072
 
985
1073
  api.add_operation(:delete_logging_configuration, Seahorse::Model::Operation.new.tap do |o|
@@ -991,6 +1079,19 @@ module Aws::WAFV2
991
1079
  o.errors << Shapes::ShapeRef.new(shape: WAFInternalErrorException)
992
1080
  o.errors << Shapes::ShapeRef.new(shape: WAFNonexistentItemException)
993
1081
  o.errors << Shapes::ShapeRef.new(shape: WAFOptimisticLockException)
1082
+ o.errors << Shapes::ShapeRef.new(shape: WAFInvalidParameterException)
1083
+ o.errors << Shapes::ShapeRef.new(shape: WAFInvalidOperationException)
1084
+ end)
1085
+
1086
+ api.add_operation(:delete_permission_policy, Seahorse::Model::Operation.new.tap do |o|
1087
+ o.name = "DeletePermissionPolicy"
1088
+ o.http_method = "POST"
1089
+ o.http_request_uri = "/"
1090
+ o.input = Shapes::ShapeRef.new(shape: DeletePermissionPolicyRequest)
1091
+ o.output = Shapes::ShapeRef.new(shape: DeletePermissionPolicyResponse)
1092
+ o.errors << Shapes::ShapeRef.new(shape: WAFNonexistentItemException)
1093
+ o.errors << Shapes::ShapeRef.new(shape: WAFInternalErrorException)
1094
+ o.errors << Shapes::ShapeRef.new(shape: WAFInvalidParameterException)
994
1095
  end)
995
1096
 
996
1097
  api.add_operation(:delete_regex_pattern_set, Seahorse::Model::Operation.new.tap do |o|
@@ -1003,8 +1104,10 @@ module Aws::WAFV2
1003
1104
  o.errors << Shapes::ShapeRef.new(shape: WAFInvalidParameterException)
1004
1105
  o.errors << Shapes::ShapeRef.new(shape: WAFNonexistentItemException)
1005
1106
  o.errors << Shapes::ShapeRef.new(shape: WAFOptimisticLockException)
1107
+ o.errors << Shapes::ShapeRef.new(shape: WAFAssociatedItemException)
1006
1108
  o.errors << Shapes::ShapeRef.new(shape: WAFTagOperationException)
1007
1109
  o.errors << Shapes::ShapeRef.new(shape: WAFTagOperationInternalErrorException)
1110
+ o.errors << Shapes::ShapeRef.new(shape: WAFInvalidOperationException)
1008
1111
  end)
1009
1112
 
1010
1113
  api.add_operation(:delete_rule_group, Seahorse::Model::Operation.new.tap do |o|
@@ -1017,8 +1120,10 @@ module Aws::WAFV2
1017
1120
  o.errors << Shapes::ShapeRef.new(shape: WAFInvalidParameterException)
1018
1121
  o.errors << Shapes::ShapeRef.new(shape: WAFNonexistentItemException)
1019
1122
  o.errors << Shapes::ShapeRef.new(shape: WAFOptimisticLockException)
1123
+ o.errors << Shapes::ShapeRef.new(shape: WAFAssociatedItemException)
1020
1124
  o.errors << Shapes::ShapeRef.new(shape: WAFTagOperationException)
1021
1125
  o.errors << Shapes::ShapeRef.new(shape: WAFTagOperationInternalErrorException)
1126
+ o.errors << Shapes::ShapeRef.new(shape: WAFInvalidOperationException)
1022
1127
  end)
1023
1128
 
1024
1129
  api.add_operation(:delete_web_acl, Seahorse::Model::Operation.new.tap do |o|
@@ -1034,6 +1139,7 @@ module Aws::WAFV2
1034
1139
  o.errors << Shapes::ShapeRef.new(shape: WAFAssociatedItemException)
1035
1140
  o.errors << Shapes::ShapeRef.new(shape: WAFTagOperationException)
1036
1141
  o.errors << Shapes::ShapeRef.new(shape: WAFTagOperationInternalErrorException)
1142
+ o.errors << Shapes::ShapeRef.new(shape: WAFInvalidOperationException)
1037
1143
  end)
1038
1144
 
1039
1145
  api.add_operation(:describe_managed_rule_group, Seahorse::Model::Operation.new.tap do |o|
@@ -1046,6 +1152,7 @@ module Aws::WAFV2
1046
1152
  o.errors << Shapes::ShapeRef.new(shape: WAFInvalidParameterException)
1047
1153
  o.errors << Shapes::ShapeRef.new(shape: WAFInvalidResourceException)
1048
1154
  o.errors << Shapes::ShapeRef.new(shape: WAFNonexistentItemException)
1155
+ o.errors << Shapes::ShapeRef.new(shape: WAFInvalidOperationException)
1049
1156
  end)
1050
1157
 
1051
1158
  api.add_operation(:disassociate_web_acl, Seahorse::Model::Operation.new.tap do |o|
@@ -1057,6 +1164,7 @@ module Aws::WAFV2
1057
1164
  o.errors << Shapes::ShapeRef.new(shape: WAFInternalErrorException)
1058
1165
  o.errors << Shapes::ShapeRef.new(shape: WAFInvalidParameterException)
1059
1166
  o.errors << Shapes::ShapeRef.new(shape: WAFNonexistentItemException)
1167
+ o.errors << Shapes::ShapeRef.new(shape: WAFInvalidOperationException)
1060
1168
  end)
1061
1169
 
1062
1170
  api.add_operation(:get_ip_set, Seahorse::Model::Operation.new.tap do |o|
@@ -1068,6 +1176,7 @@ module Aws::WAFV2
1068
1176
  o.errors << Shapes::ShapeRef.new(shape: WAFInternalErrorException)
1069
1177
  o.errors << Shapes::ShapeRef.new(shape: WAFInvalidParameterException)
1070
1178
  o.errors << Shapes::ShapeRef.new(shape: WAFNonexistentItemException)
1179
+ o.errors << Shapes::ShapeRef.new(shape: WAFInvalidOperationException)
1071
1180
  end)
1072
1181
 
1073
1182
  api.add_operation(:get_logging_configuration, Seahorse::Model::Operation.new.tap do |o|
@@ -1078,6 +1187,19 @@ module Aws::WAFV2
1078
1187
  o.output = Shapes::ShapeRef.new(shape: GetLoggingConfigurationResponse)
1079
1188
  o.errors << Shapes::ShapeRef.new(shape: WAFInternalErrorException)
1080
1189
  o.errors << Shapes::ShapeRef.new(shape: WAFNonexistentItemException)
1190
+ o.errors << Shapes::ShapeRef.new(shape: WAFInvalidParameterException)
1191
+ o.errors << Shapes::ShapeRef.new(shape: WAFInvalidOperationException)
1192
+ end)
1193
+
1194
+ api.add_operation(:get_permission_policy, Seahorse::Model::Operation.new.tap do |o|
1195
+ o.name = "GetPermissionPolicy"
1196
+ o.http_method = "POST"
1197
+ o.http_request_uri = "/"
1198
+ o.input = Shapes::ShapeRef.new(shape: GetPermissionPolicyRequest)
1199
+ o.output = Shapes::ShapeRef.new(shape: GetPermissionPolicyResponse)
1200
+ o.errors << Shapes::ShapeRef.new(shape: WAFNonexistentItemException)
1201
+ o.errors << Shapes::ShapeRef.new(shape: WAFInternalErrorException)
1202
+ o.errors << Shapes::ShapeRef.new(shape: WAFInvalidParameterException)
1081
1203
  end)
1082
1204
 
1083
1205
  api.add_operation(:get_rate_based_statement_managed_keys, Seahorse::Model::Operation.new.tap do |o|
@@ -1089,6 +1211,7 @@ module Aws::WAFV2
1089
1211
  o.errors << Shapes::ShapeRef.new(shape: WAFInternalErrorException)
1090
1212
  o.errors << Shapes::ShapeRef.new(shape: WAFInvalidParameterException)
1091
1213
  o.errors << Shapes::ShapeRef.new(shape: WAFNonexistentItemException)
1214
+ o.errors << Shapes::ShapeRef.new(shape: WAFInvalidOperationException)
1092
1215
  end)
1093
1216
 
1094
1217
  api.add_operation(:get_regex_pattern_set, Seahorse::Model::Operation.new.tap do |o|
@@ -1100,6 +1223,7 @@ module Aws::WAFV2
1100
1223
  o.errors << Shapes::ShapeRef.new(shape: WAFInternalErrorException)
1101
1224
  o.errors << Shapes::ShapeRef.new(shape: WAFInvalidParameterException)
1102
1225
  o.errors << Shapes::ShapeRef.new(shape: WAFNonexistentItemException)
1226
+ o.errors << Shapes::ShapeRef.new(shape: WAFInvalidOperationException)
1103
1227
  end)
1104
1228
 
1105
1229
  api.add_operation(:get_rule_group, Seahorse::Model::Operation.new.tap do |o|
@@ -1111,6 +1235,7 @@ module Aws::WAFV2
1111
1235
  o.errors << Shapes::ShapeRef.new(shape: WAFInternalErrorException)
1112
1236
  o.errors << Shapes::ShapeRef.new(shape: WAFInvalidParameterException)
1113
1237
  o.errors << Shapes::ShapeRef.new(shape: WAFNonexistentItemException)
1238
+ o.errors << Shapes::ShapeRef.new(shape: WAFInvalidOperationException)
1114
1239
  end)
1115
1240
 
1116
1241
  api.add_operation(:get_sampled_requests, Seahorse::Model::Operation.new.tap do |o|
@@ -1133,6 +1258,7 @@ module Aws::WAFV2
1133
1258
  o.errors << Shapes::ShapeRef.new(shape: WAFInternalErrorException)
1134
1259
  o.errors << Shapes::ShapeRef.new(shape: WAFInvalidParameterException)
1135
1260
  o.errors << Shapes::ShapeRef.new(shape: WAFNonexistentItemException)
1261
+ o.errors << Shapes::ShapeRef.new(shape: WAFInvalidOperationException)
1136
1262
  end)
1137
1263
 
1138
1264
  api.add_operation(:get_web_acl_for_resource, Seahorse::Model::Operation.new.tap do |o|
@@ -1145,6 +1271,7 @@ module Aws::WAFV2
1145
1271
  o.errors << Shapes::ShapeRef.new(shape: WAFNonexistentItemException)
1146
1272
  o.errors << Shapes::ShapeRef.new(shape: WAFInvalidParameterException)
1147
1273
  o.errors << Shapes::ShapeRef.new(shape: WAFUnavailableEntityException)
1274
+ o.errors << Shapes::ShapeRef.new(shape: WAFInvalidOperationException)
1148
1275
  end)
1149
1276
 
1150
1277
  api.add_operation(:list_available_managed_rule_groups, Seahorse::Model::Operation.new.tap do |o|
@@ -1155,6 +1282,7 @@ module Aws::WAFV2
1155
1282
  o.output = Shapes::ShapeRef.new(shape: ListAvailableManagedRuleGroupsResponse)
1156
1283
  o.errors << Shapes::ShapeRef.new(shape: WAFInternalErrorException)
1157
1284
  o.errors << Shapes::ShapeRef.new(shape: WAFInvalidParameterException)
1285
+ o.errors << Shapes::ShapeRef.new(shape: WAFInvalidOperationException)
1158
1286
  end)
1159
1287
 
1160
1288
  api.add_operation(:list_ip_sets, Seahorse::Model::Operation.new.tap do |o|
@@ -1165,6 +1293,7 @@ module Aws::WAFV2
1165
1293
  o.output = Shapes::ShapeRef.new(shape: ListIPSetsResponse)
1166
1294
  o.errors << Shapes::ShapeRef.new(shape: WAFInternalErrorException)
1167
1295
  o.errors << Shapes::ShapeRef.new(shape: WAFInvalidParameterException)
1296
+ o.errors << Shapes::ShapeRef.new(shape: WAFInvalidOperationException)
1168
1297
  end)
1169
1298
 
1170
1299
  api.add_operation(:list_logging_configurations, Seahorse::Model::Operation.new.tap do |o|
@@ -1175,6 +1304,7 @@ module Aws::WAFV2
1175
1304
  o.output = Shapes::ShapeRef.new(shape: ListLoggingConfigurationsResponse)
1176
1305
  o.errors << Shapes::ShapeRef.new(shape: WAFInternalErrorException)
1177
1306
  o.errors << Shapes::ShapeRef.new(shape: WAFInvalidParameterException)
1307
+ o.errors << Shapes::ShapeRef.new(shape: WAFInvalidOperationException)
1178
1308
  end)
1179
1309
 
1180
1310
  api.add_operation(:list_regex_pattern_sets, Seahorse::Model::Operation.new.tap do |o|
@@ -1185,6 +1315,7 @@ module Aws::WAFV2
1185
1315
  o.output = Shapes::ShapeRef.new(shape: ListRegexPatternSetsResponse)
1186
1316
  o.errors << Shapes::ShapeRef.new(shape: WAFInternalErrorException)
1187
1317
  o.errors << Shapes::ShapeRef.new(shape: WAFInvalidParameterException)
1318
+ o.errors << Shapes::ShapeRef.new(shape: WAFInvalidOperationException)
1188
1319
  end)
1189
1320
 
1190
1321
  api.add_operation(:list_resources_for_web_acl, Seahorse::Model::Operation.new.tap do |o|
@@ -1196,6 +1327,7 @@ module Aws::WAFV2
1196
1327
  o.errors << Shapes::ShapeRef.new(shape: WAFInternalErrorException)
1197
1328
  o.errors << Shapes::ShapeRef.new(shape: WAFNonexistentItemException)
1198
1329
  o.errors << Shapes::ShapeRef.new(shape: WAFInvalidParameterException)
1330
+ o.errors << Shapes::ShapeRef.new(shape: WAFInvalidOperationException)
1199
1331
  end)
1200
1332
 
1201
1333
  api.add_operation(:list_rule_groups, Seahorse::Model::Operation.new.tap do |o|
@@ -1206,6 +1338,7 @@ module Aws::WAFV2
1206
1338
  o.output = Shapes::ShapeRef.new(shape: ListRuleGroupsResponse)
1207
1339
  o.errors << Shapes::ShapeRef.new(shape: WAFInternalErrorException)
1208
1340
  o.errors << Shapes::ShapeRef.new(shape: WAFInvalidParameterException)
1341
+ o.errors << Shapes::ShapeRef.new(shape: WAFInvalidOperationException)
1209
1342
  end)
1210
1343
 
1211
1344
  api.add_operation(:list_tags_for_resource, Seahorse::Model::Operation.new.tap do |o|
@@ -1219,6 +1352,7 @@ module Aws::WAFV2
1219
1352
  o.errors << Shapes::ShapeRef.new(shape: WAFNonexistentItemException)
1220
1353
  o.errors << Shapes::ShapeRef.new(shape: WAFTagOperationException)
1221
1354
  o.errors << Shapes::ShapeRef.new(shape: WAFTagOperationInternalErrorException)
1355
+ o.errors << Shapes::ShapeRef.new(shape: WAFInvalidOperationException)
1222
1356
  end)
1223
1357
 
1224
1358
  api.add_operation(:list_web_acls, Seahorse::Model::Operation.new.tap do |o|
@@ -1229,6 +1363,7 @@ module Aws::WAFV2
1229
1363
  o.output = Shapes::ShapeRef.new(shape: ListWebACLsResponse)
1230
1364
  o.errors << Shapes::ShapeRef.new(shape: WAFInternalErrorException)
1231
1365
  o.errors << Shapes::ShapeRef.new(shape: WAFInvalidParameterException)
1366
+ o.errors << Shapes::ShapeRef.new(shape: WAFInvalidOperationException)
1232
1367
  end)
1233
1368
 
1234
1369
  api.add_operation(:put_logging_configuration, Seahorse::Model::Operation.new.tap do |o|
@@ -1242,6 +1377,19 @@ module Aws::WAFV2
1242
1377
  o.errors << Shapes::ShapeRef.new(shape: WAFOptimisticLockException)
1243
1378
  o.errors << Shapes::ShapeRef.new(shape: WAFServiceLinkedRoleErrorException)
1244
1379
  o.errors << Shapes::ShapeRef.new(shape: WAFInvalidParameterException)
1380
+ o.errors << Shapes::ShapeRef.new(shape: WAFInvalidOperationException)
1381
+ end)
1382
+
1383
+ api.add_operation(:put_permission_policy, Seahorse::Model::Operation.new.tap do |o|
1384
+ o.name = "PutPermissionPolicy"
1385
+ o.http_method = "POST"
1386
+ o.http_request_uri = "/"
1387
+ o.input = Shapes::ShapeRef.new(shape: PutPermissionPolicyRequest)
1388
+ o.output = Shapes::ShapeRef.new(shape: PutPermissionPolicyResponse)
1389
+ o.errors << Shapes::ShapeRef.new(shape: WAFNonexistentItemException)
1390
+ o.errors << Shapes::ShapeRef.new(shape: WAFInternalErrorException)
1391
+ o.errors << Shapes::ShapeRef.new(shape: WAFInvalidParameterException)
1392
+ o.errors << Shapes::ShapeRef.new(shape: WAFInvalidPermissionPolicyException)
1245
1393
  end)
1246
1394
 
1247
1395
  api.add_operation(:tag_resource, Seahorse::Model::Operation.new.tap do |o|
@@ -1256,6 +1404,7 @@ module Aws::WAFV2
1256
1404
  o.errors << Shapes::ShapeRef.new(shape: WAFNonexistentItemException)
1257
1405
  o.errors << Shapes::ShapeRef.new(shape: WAFTagOperationException)
1258
1406
  o.errors << Shapes::ShapeRef.new(shape: WAFTagOperationInternalErrorException)
1407
+ o.errors << Shapes::ShapeRef.new(shape: WAFInvalidOperationException)
1259
1408
  end)
1260
1409
 
1261
1410
  api.add_operation(:untag_resource, Seahorse::Model::Operation.new.tap do |o|
@@ -1269,6 +1418,7 @@ module Aws::WAFV2
1269
1418
  o.errors << Shapes::ShapeRef.new(shape: WAFNonexistentItemException)
1270
1419
  o.errors << Shapes::ShapeRef.new(shape: WAFTagOperationException)
1271
1420
  o.errors << Shapes::ShapeRef.new(shape: WAFTagOperationInternalErrorException)
1421
+ o.errors << Shapes::ShapeRef.new(shape: WAFInvalidOperationException)
1272
1422
  end)
1273
1423
 
1274
1424
  api.add_operation(:update_ip_set, Seahorse::Model::Operation.new.tap do |o|
@@ -1283,6 +1433,7 @@ module Aws::WAFV2
1283
1433
  o.errors << Shapes::ShapeRef.new(shape: WAFDuplicateItemException)
1284
1434
  o.errors << Shapes::ShapeRef.new(shape: WAFOptimisticLockException)
1285
1435
  o.errors << Shapes::ShapeRef.new(shape: WAFLimitsExceededException)
1436
+ o.errors << Shapes::ShapeRef.new(shape: WAFInvalidOperationException)
1286
1437
  end)
1287
1438
 
1288
1439
  api.add_operation(:update_regex_pattern_set, Seahorse::Model::Operation.new.tap do |o|
@@ -1297,6 +1448,7 @@ module Aws::WAFV2
1297
1448
  o.errors << Shapes::ShapeRef.new(shape: WAFDuplicateItemException)
1298
1449
  o.errors << Shapes::ShapeRef.new(shape: WAFOptimisticLockException)
1299
1450
  o.errors << Shapes::ShapeRef.new(shape: WAFLimitsExceededException)
1451
+ o.errors << Shapes::ShapeRef.new(shape: WAFInvalidOperationException)
1300
1452
  end)
1301
1453
 
1302
1454
  api.add_operation(:update_rule_group, Seahorse::Model::Operation.new.tap do |o|
@@ -1312,6 +1464,8 @@ module Aws::WAFV2
1312
1464
  o.errors << Shapes::ShapeRef.new(shape: WAFOptimisticLockException)
1313
1465
  o.errors << Shapes::ShapeRef.new(shape: WAFLimitsExceededException)
1314
1466
  o.errors << Shapes::ShapeRef.new(shape: WAFUnavailableEntityException)
1467
+ o.errors << Shapes::ShapeRef.new(shape: WAFSubscriptionNotFoundException)
1468
+ o.errors << Shapes::ShapeRef.new(shape: WAFInvalidOperationException)
1315
1469
  end)
1316
1470
 
1317
1471
  api.add_operation(:update_web_acl, Seahorse::Model::Operation.new.tap do |o|
@@ -1328,6 +1482,8 @@ module Aws::WAFV2
1328
1482
  o.errors << Shapes::ShapeRef.new(shape: WAFLimitsExceededException)
1329
1483
  o.errors << Shapes::ShapeRef.new(shape: WAFInvalidResourceException)
1330
1484
  o.errors << Shapes::ShapeRef.new(shape: WAFUnavailableEntityException)
1485
+ o.errors << Shapes::ShapeRef.new(shape: WAFSubscriptionNotFoundException)
1486
+ o.errors << Shapes::ShapeRef.new(shape: WAFInvalidOperationException)
1331
1487
  end)
1332
1488
  end
1333
1489