@aws-sdk/client-waf-regional 3.288.0 → 3.290.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.
Files changed (82) hide show
  1. package/dist-types/commands/AssociateWebACLCommand.d.ts +54 -0
  2. package/dist-types/commands/CreateByteMatchSetCommand.d.ts +58 -0
  3. package/dist-types/commands/CreateGeoMatchSetCommand.d.ts +58 -0
  4. package/dist-types/commands/CreateIPSetCommand.d.ts +85 -0
  5. package/dist-types/commands/CreateRateBasedRuleCommand.d.ts +64 -0
  6. package/dist-types/commands/CreateRegexMatchSetCommand.d.ts +15 -0
  7. package/dist-types/commands/CreateRegexPatternSetCommand.d.ts +15 -0
  8. package/dist-types/commands/CreateRuleCommand.d.ts +94 -0
  9. package/dist-types/commands/CreateRuleGroupCommand.d.ts +24 -0
  10. package/dist-types/commands/CreateSizeConstraintSetCommand.d.ts +89 -0
  11. package/dist-types/commands/CreateSqlInjectionMatchSetCommand.d.ts +87 -0
  12. package/dist-types/commands/CreateWebACLCommand.d.ts +105 -0
  13. package/dist-types/commands/CreateWebACLMigrationStackCommand.d.ts +103 -0
  14. package/dist-types/commands/CreateXssMatchSetCommand.d.ts +87 -0
  15. package/dist-types/commands/DeleteByteMatchSetCommand.d.ts +59 -0
  16. package/dist-types/commands/DeleteGeoMatchSetCommand.d.ts +42 -0
  17. package/dist-types/commands/DeleteIPSetCommand.d.ts +59 -0
  18. package/dist-types/commands/DeleteLoggingConfigurationCommand.d.ts +10 -0
  19. package/dist-types/commands/DeletePermissionPolicyCommand.d.ts +10 -0
  20. package/dist-types/commands/DeleteRateBasedRuleCommand.d.ts +48 -0
  21. package/dist-types/commands/DeleteRegexMatchSetCommand.d.ts +42 -0
  22. package/dist-types/commands/DeleteRegexPatternSetCommand.d.ts +42 -0
  23. package/dist-types/commands/DeleteRuleCommand.d.ts +65 -0
  24. package/dist-types/commands/DeleteRuleGroupCommand.d.ts +68 -0
  25. package/dist-types/commands/DeleteSizeConstraintSetCommand.d.ts +59 -0
  26. package/dist-types/commands/DeleteSqlInjectionMatchSetCommand.d.ts +59 -0
  27. package/dist-types/commands/DeleteWebACLCommand.d.ts +65 -0
  28. package/dist-types/commands/DeleteXssMatchSetCommand.d.ts +59 -0
  29. package/dist-types/commands/DisassociateWebACLCommand.d.ts +50 -0
  30. package/dist-types/commands/GetByteMatchSetCommand.d.ts +40 -0
  31. package/dist-types/commands/GetChangeTokenCommand.d.ts +18 -0
  32. package/dist-types/commands/GetChangeTokenStatusCommand.d.ts +23 -0
  33. package/dist-types/commands/GetGeoMatchSetCommand.d.ts +10 -0
  34. package/dist-types/commands/GetIPSetCommand.d.ts +35 -0
  35. package/dist-types/commands/GetLoggingConfigurationCommand.d.ts +7 -0
  36. package/dist-types/commands/GetPermissionPolicyCommand.d.ts +7 -0
  37. package/dist-types/commands/GetRateBasedRuleCommand.d.ts +10 -0
  38. package/dist-types/commands/GetRateBasedRuleManagedKeysCommand.d.ts +50 -0
  39. package/dist-types/commands/GetRegexMatchSetCommand.d.ts +10 -0
  40. package/dist-types/commands/GetRegexPatternSetCommand.d.ts +10 -0
  41. package/dist-types/commands/GetRuleCommand.d.ts +37 -0
  42. package/dist-types/commands/GetRuleGroupCommand.d.ts +7 -0
  43. package/dist-types/commands/GetSampledRequestsCommand.d.ts +52 -0
  44. package/dist-types/commands/GetSizeConstraintSetCommand.d.ts +39 -0
  45. package/dist-types/commands/GetSqlInjectionMatchSetCommand.d.ts +37 -0
  46. package/dist-types/commands/GetWebACLCommand.d.ts +42 -0
  47. package/dist-types/commands/GetWebACLForResourceCommand.d.ts +54 -0
  48. package/dist-types/commands/GetXssMatchSetCommand.d.ts +37 -0
  49. package/dist-types/commands/ListActivatedRulesInRuleGroupCommand.d.ts +47 -0
  50. package/dist-types/commands/ListByteMatchSetsCommand.d.ts +7 -0
  51. package/dist-types/commands/ListGeoMatchSetsCommand.d.ts +7 -0
  52. package/dist-types/commands/ListIPSetsCommand.d.ts +28 -0
  53. package/dist-types/commands/ListLoggingConfigurationsCommand.d.ts +47 -0
  54. package/dist-types/commands/ListRateBasedRulesCommand.d.ts +7 -0
  55. package/dist-types/commands/ListRegexMatchSetsCommand.d.ts +7 -0
  56. package/dist-types/commands/ListRegexPatternSetsCommand.d.ts +7 -0
  57. package/dist-types/commands/ListResourcesForWebACLCommand.d.ts +50 -0
  58. package/dist-types/commands/ListRuleGroupsCommand.d.ts +4 -0
  59. package/dist-types/commands/ListRulesCommand.d.ts +28 -0
  60. package/dist-types/commands/ListSizeConstraintSetsCommand.d.ts +28 -0
  61. package/dist-types/commands/ListSqlInjectionMatchSetsCommand.d.ts +28 -0
  62. package/dist-types/commands/ListSubscribedRuleGroupsCommand.d.ts +7 -0
  63. package/dist-types/commands/ListTagsForResourceCommand.d.ts +56 -0
  64. package/dist-types/commands/ListWebACLsCommand.d.ts +28 -0
  65. package/dist-types/commands/ListXssMatchSetsCommand.d.ts +28 -0
  66. package/dist-types/commands/PutLoggingConfigurationCommand.d.ts +13 -0
  67. package/dist-types/commands/PutPermissionPolicyCommand.d.ts +42 -0
  68. package/dist-types/commands/TagResourceCommand.d.ts +61 -0
  69. package/dist-types/commands/UntagResourceCommand.d.ts +56 -0
  70. package/dist-types/commands/UpdateByteMatchSetCommand.d.ts +130 -0
  71. package/dist-types/commands/UpdateGeoMatchSetCommand.d.ts +110 -0
  72. package/dist-types/commands/UpdateIPSetCommand.d.ts +136 -0
  73. package/dist-types/commands/UpdateRateBasedRuleCommand.d.ts +110 -0
  74. package/dist-types/commands/UpdateRegexMatchSetCommand.d.ts +62 -0
  75. package/dist-types/commands/UpdateRegexPatternSetCommand.d.ts +62 -0
  76. package/dist-types/commands/UpdateRuleCommand.d.ts +137 -0
  77. package/dist-types/commands/UpdateRuleGroupCommand.d.ts +96 -0
  78. package/dist-types/commands/UpdateSizeConstraintSetCommand.d.ts +140 -0
  79. package/dist-types/commands/UpdateSqlInjectionMatchSetCommand.d.ts +127 -0
  80. package/dist-types/commands/UpdateWebACLCommand.d.ts +145 -0
  81. package/dist-types/commands/UpdateXssMatchSetCommand.d.ts +127 -0
  82. package/package.json +29 -29
@@ -37,6 +37,60 @@ export interface AssociateWebACLCommandOutput extends AssociateWebACLResponse, _
37
37
  * @see {@link AssociateWebACLCommandOutput} for command's `response` shape.
38
38
  * @see {@link WAFRegionalClientResolvedConfig | config} for WAFRegionalClient's `config` shape.
39
39
  *
40
+ * @throws {@link WAFInternalErrorException} (server fault)
41
+ * <p>The operation failed because of a system problem, even though the request was valid. Retry your request.</p>
42
+ *
43
+ * @throws {@link WAFInvalidAccountException} (client fault)
44
+ * <p>The operation failed because you tried to create, update, or delete an object by using an invalid account identifier.</p>
45
+ *
46
+ * @throws {@link WAFInvalidParameterException} (client fault)
47
+ * <p>The operation failed because AWS WAF didn't recognize a parameter in the request. For example:</p>
48
+ * <ul>
49
+ * <li>
50
+ * <p>You specified an invalid parameter name.</p>
51
+ * </li>
52
+ * <li>
53
+ * <p>You specified an invalid value.</p>
54
+ * </li>
55
+ * <li>
56
+ * <p>You tried to update an object (<code>ByteMatchSet</code>, <code>IPSet</code>, <code>Rule</code>, or <code>WebACL</code>)
57
+ * using an action other than <code>INSERT</code> or <code>DELETE</code>.</p>
58
+ * </li>
59
+ * <li>
60
+ * <p>You tried to create a <code>WebACL</code> with a <code>DefaultAction</code>
61
+ * <code>Type</code> other than
62
+ * <code>ALLOW</code>, <code>BLOCK</code>, or <code>COUNT</code>.</p>
63
+ * </li>
64
+ * <li>
65
+ * <p>You tried to create a <code>RateBasedRule</code> with a <code>RateKey</code> value other than <code>IP</code>.</p>
66
+ * </li>
67
+ * <li>
68
+ * <p>You tried to update a <code>WebACL</code> with a <code>WafAction</code>
69
+ * <code>Type</code> other than
70
+ * <code>ALLOW</code>, <code>BLOCK</code>, or <code>COUNT</code>.</p>
71
+ * </li>
72
+ * <li>
73
+ * <p>You tried to update a <code>ByteMatchSet</code> with a <code>FieldToMatch</code>
74
+ * <code>Type</code> other than
75
+ * HEADER, METHOD, QUERY_STRING, URI, or BODY.</p>
76
+ * </li>
77
+ * <li>
78
+ * <p>You tried to update a <code>ByteMatchSet</code> with a <code>Field</code> of <code>HEADER</code>
79
+ * but no value for <code>Data</code>.</p>
80
+ * </li>
81
+ * <li>
82
+ * <p>Your request references an ARN that is malformed, or corresponds to a resource with which a web ACL cannot be associated.</p>
83
+ * </li>
84
+ * </ul>
85
+ *
86
+ * @throws {@link WAFNonexistentItemException} (client fault)
87
+ * <p>The operation failed because the referenced object doesn't exist.</p>
88
+ *
89
+ * @throws {@link WAFUnavailableEntityException} (client fault)
90
+ * <p>The operation failed because the entity
91
+ * referenced is temporarily unavailable. Retry your request.</p>
92
+ *
93
+ *
40
94
  */
41
95
  export declare class AssociateWebACLCommand extends $Command<AssociateWebACLCommandInput, AssociateWebACLCommandOutput, WAFRegionalClientResolvedConfig> {
42
96
  readonly input: AssociateWebACLCommandInput;
@@ -60,6 +60,64 @@ export interface CreateByteMatchSetCommandOutput extends CreateByteMatchSetRespo
60
60
  * @see {@link CreateByteMatchSetCommandOutput} for command's `response` shape.
61
61
  * @see {@link WAFRegionalClientResolvedConfig | config} for WAFRegionalClient's `config` shape.
62
62
  *
63
+ * @throws {@link WAFDisallowedNameException} (client fault)
64
+ * <p>The name specified is invalid.</p>
65
+ *
66
+ * @throws {@link WAFInternalErrorException} (server fault)
67
+ * <p>The operation failed because of a system problem, even though the request was valid. Retry your request.</p>
68
+ *
69
+ * @throws {@link WAFInvalidAccountException} (client fault)
70
+ * <p>The operation failed because you tried to create, update, or delete an object by using an invalid account identifier.</p>
71
+ *
72
+ * @throws {@link WAFInvalidParameterException} (client fault)
73
+ * <p>The operation failed because AWS WAF didn't recognize a parameter in the request. For example:</p>
74
+ * <ul>
75
+ * <li>
76
+ * <p>You specified an invalid parameter name.</p>
77
+ * </li>
78
+ * <li>
79
+ * <p>You specified an invalid value.</p>
80
+ * </li>
81
+ * <li>
82
+ * <p>You tried to update an object (<code>ByteMatchSet</code>, <code>IPSet</code>, <code>Rule</code>, or <code>WebACL</code>)
83
+ * using an action other than <code>INSERT</code> or <code>DELETE</code>.</p>
84
+ * </li>
85
+ * <li>
86
+ * <p>You tried to create a <code>WebACL</code> with a <code>DefaultAction</code>
87
+ * <code>Type</code> other than
88
+ * <code>ALLOW</code>, <code>BLOCK</code>, or <code>COUNT</code>.</p>
89
+ * </li>
90
+ * <li>
91
+ * <p>You tried to create a <code>RateBasedRule</code> with a <code>RateKey</code> value other than <code>IP</code>.</p>
92
+ * </li>
93
+ * <li>
94
+ * <p>You tried to update a <code>WebACL</code> with a <code>WafAction</code>
95
+ * <code>Type</code> other than
96
+ * <code>ALLOW</code>, <code>BLOCK</code>, or <code>COUNT</code>.</p>
97
+ * </li>
98
+ * <li>
99
+ * <p>You tried to update a <code>ByteMatchSet</code> with a <code>FieldToMatch</code>
100
+ * <code>Type</code> other than
101
+ * HEADER, METHOD, QUERY_STRING, URI, or BODY.</p>
102
+ * </li>
103
+ * <li>
104
+ * <p>You tried to update a <code>ByteMatchSet</code> with a <code>Field</code> of <code>HEADER</code>
105
+ * but no value for <code>Data</code>.</p>
106
+ * </li>
107
+ * <li>
108
+ * <p>Your request references an ARN that is malformed, or corresponds to a resource with which a web ACL cannot be associated.</p>
109
+ * </li>
110
+ * </ul>
111
+ *
112
+ * @throws {@link WAFLimitsExceededException} (client fault)
113
+ * <p>The operation exceeds a resource limit, for example, the maximum number of <code>WebACL</code> objects that you can create
114
+ * for an AWS account. For more information, see
115
+ * <a href="https://docs.aws.amazon.com/waf/latest/developerguide/limits.html">Limits</a> in the <i>AWS WAF Developer Guide</i>.</p>
116
+ *
117
+ * @throws {@link WAFStaleDataException} (client fault)
118
+ * <p>The operation failed because you tried to create, update, or delete an object by using a change token that has already been used.</p>
119
+ *
120
+ *
63
121
  */
64
122
  export declare class CreateByteMatchSetCommand extends $Command<CreateByteMatchSetCommandInput, CreateByteMatchSetCommandOutput, WAFRegionalClientResolvedConfig> {
65
123
  readonly input: CreateByteMatchSetCommandInput;
@@ -57,6 +57,64 @@ export interface CreateGeoMatchSetCommandOutput extends CreateGeoMatchSetRespons
57
57
  * @see {@link CreateGeoMatchSetCommandOutput} for command's `response` shape.
58
58
  * @see {@link WAFRegionalClientResolvedConfig | config} for WAFRegionalClient's `config` shape.
59
59
  *
60
+ * @throws {@link WAFDisallowedNameException} (client fault)
61
+ * <p>The name specified is invalid.</p>
62
+ *
63
+ * @throws {@link WAFInternalErrorException} (server fault)
64
+ * <p>The operation failed because of a system problem, even though the request was valid. Retry your request.</p>
65
+ *
66
+ * @throws {@link WAFInvalidAccountException} (client fault)
67
+ * <p>The operation failed because you tried to create, update, or delete an object by using an invalid account identifier.</p>
68
+ *
69
+ * @throws {@link WAFInvalidParameterException} (client fault)
70
+ * <p>The operation failed because AWS WAF didn't recognize a parameter in the request. For example:</p>
71
+ * <ul>
72
+ * <li>
73
+ * <p>You specified an invalid parameter name.</p>
74
+ * </li>
75
+ * <li>
76
+ * <p>You specified an invalid value.</p>
77
+ * </li>
78
+ * <li>
79
+ * <p>You tried to update an object (<code>ByteMatchSet</code>, <code>IPSet</code>, <code>Rule</code>, or <code>WebACL</code>)
80
+ * using an action other than <code>INSERT</code> or <code>DELETE</code>.</p>
81
+ * </li>
82
+ * <li>
83
+ * <p>You tried to create a <code>WebACL</code> with a <code>DefaultAction</code>
84
+ * <code>Type</code> other than
85
+ * <code>ALLOW</code>, <code>BLOCK</code>, or <code>COUNT</code>.</p>
86
+ * </li>
87
+ * <li>
88
+ * <p>You tried to create a <code>RateBasedRule</code> with a <code>RateKey</code> value other than <code>IP</code>.</p>
89
+ * </li>
90
+ * <li>
91
+ * <p>You tried to update a <code>WebACL</code> with a <code>WafAction</code>
92
+ * <code>Type</code> other than
93
+ * <code>ALLOW</code>, <code>BLOCK</code>, or <code>COUNT</code>.</p>
94
+ * </li>
95
+ * <li>
96
+ * <p>You tried to update a <code>ByteMatchSet</code> with a <code>FieldToMatch</code>
97
+ * <code>Type</code> other than
98
+ * HEADER, METHOD, QUERY_STRING, URI, or BODY.</p>
99
+ * </li>
100
+ * <li>
101
+ * <p>You tried to update a <code>ByteMatchSet</code> with a <code>Field</code> of <code>HEADER</code>
102
+ * but no value for <code>Data</code>.</p>
103
+ * </li>
104
+ * <li>
105
+ * <p>Your request references an ARN that is malformed, or corresponds to a resource with which a web ACL cannot be associated.</p>
106
+ * </li>
107
+ * </ul>
108
+ *
109
+ * @throws {@link WAFLimitsExceededException} (client fault)
110
+ * <p>The operation exceeds a resource limit, for example, the maximum number of <code>WebACL</code> objects that you can create
111
+ * for an AWS account. For more information, see
112
+ * <a href="https://docs.aws.amazon.com/waf/latest/developerguide/limits.html">Limits</a> in the <i>AWS WAF Developer Guide</i>.</p>
113
+ *
114
+ * @throws {@link WAFStaleDataException} (client fault)
115
+ * <p>The operation failed because you tried to create, update, or delete an object by using a change token that has already been used.</p>
116
+ *
117
+ *
60
118
  */
61
119
  export declare class CreateGeoMatchSetCommand extends $Command<CreateGeoMatchSetCommandInput, CreateGeoMatchSetCommandOutput, WAFRegionalClientResolvedConfig> {
62
120
  readonly input: CreateGeoMatchSetCommandInput;
@@ -62,6 +62,91 @@ export interface CreateIPSetCommandOutput extends CreateIPSetResponse, __Metadat
62
62
  * @see {@link CreateIPSetCommandOutput} for command's `response` shape.
63
63
  * @see {@link WAFRegionalClientResolvedConfig | config} for WAFRegionalClient's `config` shape.
64
64
  *
65
+ * @throws {@link WAFDisallowedNameException} (client fault)
66
+ * <p>The name specified is invalid.</p>
67
+ *
68
+ * @throws {@link WAFInternalErrorException} (server fault)
69
+ * <p>The operation failed because of a system problem, even though the request was valid. Retry your request.</p>
70
+ *
71
+ * @throws {@link WAFInvalidAccountException} (client fault)
72
+ * <p>The operation failed because you tried to create, update, or delete an object by using an invalid account identifier.</p>
73
+ *
74
+ * @throws {@link WAFInvalidParameterException} (client fault)
75
+ * <p>The operation failed because AWS WAF didn't recognize a parameter in the request. For example:</p>
76
+ * <ul>
77
+ * <li>
78
+ * <p>You specified an invalid parameter name.</p>
79
+ * </li>
80
+ * <li>
81
+ * <p>You specified an invalid value.</p>
82
+ * </li>
83
+ * <li>
84
+ * <p>You tried to update an object (<code>ByteMatchSet</code>, <code>IPSet</code>, <code>Rule</code>, or <code>WebACL</code>)
85
+ * using an action other than <code>INSERT</code> or <code>DELETE</code>.</p>
86
+ * </li>
87
+ * <li>
88
+ * <p>You tried to create a <code>WebACL</code> with a <code>DefaultAction</code>
89
+ * <code>Type</code> other than
90
+ * <code>ALLOW</code>, <code>BLOCK</code>, or <code>COUNT</code>.</p>
91
+ * </li>
92
+ * <li>
93
+ * <p>You tried to create a <code>RateBasedRule</code> with a <code>RateKey</code> value other than <code>IP</code>.</p>
94
+ * </li>
95
+ * <li>
96
+ * <p>You tried to update a <code>WebACL</code> with a <code>WafAction</code>
97
+ * <code>Type</code> other than
98
+ * <code>ALLOW</code>, <code>BLOCK</code>, or <code>COUNT</code>.</p>
99
+ * </li>
100
+ * <li>
101
+ * <p>You tried to update a <code>ByteMatchSet</code> with a <code>FieldToMatch</code>
102
+ * <code>Type</code> other than
103
+ * HEADER, METHOD, QUERY_STRING, URI, or BODY.</p>
104
+ * </li>
105
+ * <li>
106
+ * <p>You tried to update a <code>ByteMatchSet</code> with a <code>Field</code> of <code>HEADER</code>
107
+ * but no value for <code>Data</code>.</p>
108
+ * </li>
109
+ * <li>
110
+ * <p>Your request references an ARN that is malformed, or corresponds to a resource with which a web ACL cannot be associated.</p>
111
+ * </li>
112
+ * </ul>
113
+ *
114
+ * @throws {@link WAFLimitsExceededException} (client fault)
115
+ * <p>The operation exceeds a resource limit, for example, the maximum number of <code>WebACL</code> objects that you can create
116
+ * for an AWS account. For more information, see
117
+ * <a href="https://docs.aws.amazon.com/waf/latest/developerguide/limits.html">Limits</a> in the <i>AWS WAF Developer Guide</i>.</p>
118
+ *
119
+ * @throws {@link WAFStaleDataException} (client fault)
120
+ * <p>The operation failed because you tried to create, update, or delete an object by using a change token that has already been used.</p>
121
+ *
122
+ *
123
+ * @example To create an IP set
124
+ * ```javascript
125
+ * // The following example creates an IP match set named MyIPSetFriendlyName.
126
+ * const input = {
127
+ * "ChangeToken": "abcd12f2-46da-4fdb-b8d5-fbd4c466928f",
128
+ * "Name": "MyIPSetFriendlyName"
129
+ * };
130
+ * const command = new CreateIPSetCommand(input);
131
+ * const response = await client.send(command);
132
+ * /* response ==
133
+ * {
134
+ * "ChangeToken": "abcd12f2-46da-4fdb-b8d5-fbd4c466928f",
135
+ * "IPSet": {
136
+ * "IPSetDescriptors": [
137
+ * {
138
+ * "Type": "IPV4",
139
+ * "Value": "192.0.2.44/32"
140
+ * }
141
+ * ],
142
+ * "IPSetId": "example1ds3t-46da-4fdb-b8d5-abc321j569j5",
143
+ * "Name": "MyIPSetFriendlyName"
144
+ * }
145
+ * }
146
+ * *\/
147
+ * // example id: createipset-1472501003122
148
+ * ```
149
+ *
65
150
  */
66
151
  export declare class CreateIPSetCommand extends $Command<CreateIPSetCommandInput, CreateIPSetCommandOutput, WAFRegionalClientResolvedConfig> {
67
152
  readonly input: CreateIPSetCommandInput;
@@ -122,6 +122,70 @@ export interface CreateRateBasedRuleCommandOutput extends CreateRateBasedRuleRes
122
122
  * @see {@link CreateRateBasedRuleCommandOutput} for command's `response` shape.
123
123
  * @see {@link WAFRegionalClientResolvedConfig | config} for WAFRegionalClient's `config` shape.
124
124
  *
125
+ * @throws {@link WAFBadRequestException} (client fault)
126
+ * <p></p>
127
+ *
128
+ * @throws {@link WAFDisallowedNameException} (client fault)
129
+ * <p>The name specified is invalid.</p>
130
+ *
131
+ * @throws {@link WAFInternalErrorException} (server fault)
132
+ * <p>The operation failed because of a system problem, even though the request was valid. Retry your request.</p>
133
+ *
134
+ * @throws {@link WAFInvalidParameterException} (client fault)
135
+ * <p>The operation failed because AWS WAF didn't recognize a parameter in the request. For example:</p>
136
+ * <ul>
137
+ * <li>
138
+ * <p>You specified an invalid parameter name.</p>
139
+ * </li>
140
+ * <li>
141
+ * <p>You specified an invalid value.</p>
142
+ * </li>
143
+ * <li>
144
+ * <p>You tried to update an object (<code>ByteMatchSet</code>, <code>IPSet</code>, <code>Rule</code>, or <code>WebACL</code>)
145
+ * using an action other than <code>INSERT</code> or <code>DELETE</code>.</p>
146
+ * </li>
147
+ * <li>
148
+ * <p>You tried to create a <code>WebACL</code> with a <code>DefaultAction</code>
149
+ * <code>Type</code> other than
150
+ * <code>ALLOW</code>, <code>BLOCK</code>, or <code>COUNT</code>.</p>
151
+ * </li>
152
+ * <li>
153
+ * <p>You tried to create a <code>RateBasedRule</code> with a <code>RateKey</code> value other than <code>IP</code>.</p>
154
+ * </li>
155
+ * <li>
156
+ * <p>You tried to update a <code>WebACL</code> with a <code>WafAction</code>
157
+ * <code>Type</code> other than
158
+ * <code>ALLOW</code>, <code>BLOCK</code>, or <code>COUNT</code>.</p>
159
+ * </li>
160
+ * <li>
161
+ * <p>You tried to update a <code>ByteMatchSet</code> with a <code>FieldToMatch</code>
162
+ * <code>Type</code> other than
163
+ * HEADER, METHOD, QUERY_STRING, URI, or BODY.</p>
164
+ * </li>
165
+ * <li>
166
+ * <p>You tried to update a <code>ByteMatchSet</code> with a <code>Field</code> of <code>HEADER</code>
167
+ * but no value for <code>Data</code>.</p>
168
+ * </li>
169
+ * <li>
170
+ * <p>Your request references an ARN that is malformed, or corresponds to a resource with which a web ACL cannot be associated.</p>
171
+ * </li>
172
+ * </ul>
173
+ *
174
+ * @throws {@link WAFLimitsExceededException} (client fault)
175
+ * <p>The operation exceeds a resource limit, for example, the maximum number of <code>WebACL</code> objects that you can create
176
+ * for an AWS account. For more information, see
177
+ * <a href="https://docs.aws.amazon.com/waf/latest/developerguide/limits.html">Limits</a> in the <i>AWS WAF Developer Guide</i>.</p>
178
+ *
179
+ * @throws {@link WAFStaleDataException} (client fault)
180
+ * <p>The operation failed because you tried to create, update, or delete an object by using a change token that has already been used.</p>
181
+ *
182
+ * @throws {@link WAFTagOperationException} (client fault)
183
+ * <p></p>
184
+ *
185
+ * @throws {@link WAFTagOperationInternalErrorException} (server fault)
186
+ * <p></p>
187
+ *
188
+ *
125
189
  */
126
190
  export declare class CreateRateBasedRuleCommand extends $Command<CreateRateBasedRuleCommandInput, CreateRateBasedRuleCommandOutput, WAFRegionalClientResolvedConfig> {
127
191
  readonly input: CreateRateBasedRuleCommandInput;
@@ -60,6 +60,21 @@ export interface CreateRegexMatchSetCommandOutput extends CreateRegexMatchSetRes
60
60
  * @see {@link CreateRegexMatchSetCommandOutput} for command's `response` shape.
61
61
  * @see {@link WAFRegionalClientResolvedConfig | config} for WAFRegionalClient's `config` shape.
62
62
  *
63
+ * @throws {@link WAFDisallowedNameException} (client fault)
64
+ * <p>The name specified is invalid.</p>
65
+ *
66
+ * @throws {@link WAFInternalErrorException} (server fault)
67
+ * <p>The operation failed because of a system problem, even though the request was valid. Retry your request.</p>
68
+ *
69
+ * @throws {@link WAFLimitsExceededException} (client fault)
70
+ * <p>The operation exceeds a resource limit, for example, the maximum number of <code>WebACL</code> objects that you can create
71
+ * for an AWS account. For more information, see
72
+ * <a href="https://docs.aws.amazon.com/waf/latest/developerguide/limits.html">Limits</a> in the <i>AWS WAF Developer Guide</i>.</p>
73
+ *
74
+ * @throws {@link WAFStaleDataException} (client fault)
75
+ * <p>The operation failed because you tried to create, update, or delete an object by using a change token that has already been used.</p>
76
+ *
77
+ *
63
78
  */
64
79
  export declare class CreateRegexMatchSetCommand extends $Command<CreateRegexMatchSetCommandInput, CreateRegexMatchSetCommandOutput, WAFRegionalClientResolvedConfig> {
65
80
  readonly input: CreateRegexMatchSetCommandInput;
@@ -56,6 +56,21 @@ export interface CreateRegexPatternSetCommandOutput extends CreateRegexPatternSe
56
56
  * @see {@link CreateRegexPatternSetCommandOutput} for command's `response` shape.
57
57
  * @see {@link WAFRegionalClientResolvedConfig | config} for WAFRegionalClient's `config` shape.
58
58
  *
59
+ * @throws {@link WAFDisallowedNameException} (client fault)
60
+ * <p>The name specified is invalid.</p>
61
+ *
62
+ * @throws {@link WAFInternalErrorException} (server fault)
63
+ * <p>The operation failed because of a system problem, even though the request was valid. Retry your request.</p>
64
+ *
65
+ * @throws {@link WAFLimitsExceededException} (client fault)
66
+ * <p>The operation exceeds a resource limit, for example, the maximum number of <code>WebACL</code> objects that you can create
67
+ * for an AWS account. For more information, see
68
+ * <a href="https://docs.aws.amazon.com/waf/latest/developerguide/limits.html">Limits</a> in the <i>AWS WAF Developer Guide</i>.</p>
69
+ *
70
+ * @throws {@link WAFStaleDataException} (client fault)
71
+ * <p>The operation failed because you tried to create, update, or delete an object by using a change token that has already been used.</p>
72
+ *
73
+ *
59
74
  */
60
75
  export declare class CreateRegexPatternSetCommand extends $Command<CreateRegexPatternSetCommandInput, CreateRegexPatternSetCommandOutput, WAFRegionalClientResolvedConfig> {
61
76
  readonly input: CreateRegexPatternSetCommandInput;
@@ -80,6 +80,100 @@ export interface CreateRuleCommandOutput extends CreateRuleResponse, __MetadataB
80
80
  * @see {@link CreateRuleCommandOutput} for command's `response` shape.
81
81
  * @see {@link WAFRegionalClientResolvedConfig | config} for WAFRegionalClient's `config` shape.
82
82
  *
83
+ * @throws {@link WAFBadRequestException} (client fault)
84
+ * <p></p>
85
+ *
86
+ * @throws {@link WAFDisallowedNameException} (client fault)
87
+ * <p>The name specified is invalid.</p>
88
+ *
89
+ * @throws {@link WAFInternalErrorException} (server fault)
90
+ * <p>The operation failed because of a system problem, even though the request was valid. Retry your request.</p>
91
+ *
92
+ * @throws {@link WAFInvalidParameterException} (client fault)
93
+ * <p>The operation failed because AWS WAF didn't recognize a parameter in the request. For example:</p>
94
+ * <ul>
95
+ * <li>
96
+ * <p>You specified an invalid parameter name.</p>
97
+ * </li>
98
+ * <li>
99
+ * <p>You specified an invalid value.</p>
100
+ * </li>
101
+ * <li>
102
+ * <p>You tried to update an object (<code>ByteMatchSet</code>, <code>IPSet</code>, <code>Rule</code>, or <code>WebACL</code>)
103
+ * using an action other than <code>INSERT</code> or <code>DELETE</code>.</p>
104
+ * </li>
105
+ * <li>
106
+ * <p>You tried to create a <code>WebACL</code> with a <code>DefaultAction</code>
107
+ * <code>Type</code> other than
108
+ * <code>ALLOW</code>, <code>BLOCK</code>, or <code>COUNT</code>.</p>
109
+ * </li>
110
+ * <li>
111
+ * <p>You tried to create a <code>RateBasedRule</code> with a <code>RateKey</code> value other than <code>IP</code>.</p>
112
+ * </li>
113
+ * <li>
114
+ * <p>You tried to update a <code>WebACL</code> with a <code>WafAction</code>
115
+ * <code>Type</code> other than
116
+ * <code>ALLOW</code>, <code>BLOCK</code>, or <code>COUNT</code>.</p>
117
+ * </li>
118
+ * <li>
119
+ * <p>You tried to update a <code>ByteMatchSet</code> with a <code>FieldToMatch</code>
120
+ * <code>Type</code> other than
121
+ * HEADER, METHOD, QUERY_STRING, URI, or BODY.</p>
122
+ * </li>
123
+ * <li>
124
+ * <p>You tried to update a <code>ByteMatchSet</code> with a <code>Field</code> of <code>HEADER</code>
125
+ * but no value for <code>Data</code>.</p>
126
+ * </li>
127
+ * <li>
128
+ * <p>Your request references an ARN that is malformed, or corresponds to a resource with which a web ACL cannot be associated.</p>
129
+ * </li>
130
+ * </ul>
131
+ *
132
+ * @throws {@link WAFLimitsExceededException} (client fault)
133
+ * <p>The operation exceeds a resource limit, for example, the maximum number of <code>WebACL</code> objects that you can create
134
+ * for an AWS account. For more information, see
135
+ * <a href="https://docs.aws.amazon.com/waf/latest/developerguide/limits.html">Limits</a> in the <i>AWS WAF Developer Guide</i>.</p>
136
+ *
137
+ * @throws {@link WAFStaleDataException} (client fault)
138
+ * <p>The operation failed because you tried to create, update, or delete an object by using a change token that has already been used.</p>
139
+ *
140
+ * @throws {@link WAFTagOperationException} (client fault)
141
+ * <p></p>
142
+ *
143
+ * @throws {@link WAFTagOperationInternalErrorException} (server fault)
144
+ * <p></p>
145
+ *
146
+ *
147
+ * @example To create a rule
148
+ * ```javascript
149
+ * // The following example creates a rule named WAFByteHeaderRule.
150
+ * const input = {
151
+ * "ChangeToken": "abcd12f2-46da-4fdb-b8d5-fbd4c466928f",
152
+ * "MetricName": "WAFByteHeaderRule",
153
+ * "Name": "WAFByteHeaderRule"
154
+ * };
155
+ * const command = new CreateRuleCommand(input);
156
+ * const response = await client.send(command);
157
+ * /* response ==
158
+ * {
159
+ * "ChangeToken": "abcd12f2-46da-4fdb-b8d5-fbd4c466928f",
160
+ * "Rule": {
161
+ * "MetricName": "WAFByteHeaderRule",
162
+ * "Name": "WAFByteHeaderRule",
163
+ * "Predicates": [
164
+ * {
165
+ * "DataId": "MyByteMatchSetID",
166
+ * "Negated": false,
167
+ * "Type": "ByteMatch"
168
+ * }
169
+ * ],
170
+ * "RuleId": "WAFRule-1-Example"
171
+ * }
172
+ * }
173
+ * *\/
174
+ * // example id: createrule-1474072675555
175
+ * ```
176
+ *
83
177
  */
84
178
  export declare class CreateRuleCommand extends $Command<CreateRuleCommandInput, CreateRuleCommandOutput, WAFRegionalClientResolvedConfig> {
85
179
  readonly input: CreateRuleCommandInput;
@@ -51,6 +51,30 @@ export interface CreateRuleGroupCommandOutput extends CreateRuleGroupResponse, _
51
51
  * @see {@link CreateRuleGroupCommandOutput} for command's `response` shape.
52
52
  * @see {@link WAFRegionalClientResolvedConfig | config} for WAFRegionalClient's `config` shape.
53
53
  *
54
+ * @throws {@link WAFBadRequestException} (client fault)
55
+ * <p></p>
56
+ *
57
+ * @throws {@link WAFDisallowedNameException} (client fault)
58
+ * <p>The name specified is invalid.</p>
59
+ *
60
+ * @throws {@link WAFInternalErrorException} (server fault)
61
+ * <p>The operation failed because of a system problem, even though the request was valid. Retry your request.</p>
62
+ *
63
+ * @throws {@link WAFLimitsExceededException} (client fault)
64
+ * <p>The operation exceeds a resource limit, for example, the maximum number of <code>WebACL</code> objects that you can create
65
+ * for an AWS account. For more information, see
66
+ * <a href="https://docs.aws.amazon.com/waf/latest/developerguide/limits.html">Limits</a> in the <i>AWS WAF Developer Guide</i>.</p>
67
+ *
68
+ * @throws {@link WAFStaleDataException} (client fault)
69
+ * <p>The operation failed because you tried to create, update, or delete an object by using a change token that has already been used.</p>
70
+ *
71
+ * @throws {@link WAFTagOperationException} (client fault)
72
+ * <p></p>
73
+ *
74
+ * @throws {@link WAFTagOperationInternalErrorException} (server fault)
75
+ * <p></p>
76
+ *
77
+ *
54
78
  */
55
79
  export declare class CreateRuleGroupCommand extends $Command<CreateRuleGroupCommandInput, CreateRuleGroupCommandOutput, WAFRegionalClientResolvedConfig> {
56
80
  readonly input: CreateRuleGroupCommandInput;
@@ -60,6 +60,95 @@ export interface CreateSizeConstraintSetCommandOutput extends CreateSizeConstrai
60
60
  * @see {@link CreateSizeConstraintSetCommandOutput} for command's `response` shape.
61
61
  * @see {@link WAFRegionalClientResolvedConfig | config} for WAFRegionalClient's `config` shape.
62
62
  *
63
+ * @throws {@link WAFDisallowedNameException} (client fault)
64
+ * <p>The name specified is invalid.</p>
65
+ *
66
+ * @throws {@link WAFInternalErrorException} (server fault)
67
+ * <p>The operation failed because of a system problem, even though the request was valid. Retry your request.</p>
68
+ *
69
+ * @throws {@link WAFInvalidAccountException} (client fault)
70
+ * <p>The operation failed because you tried to create, update, or delete an object by using an invalid account identifier.</p>
71
+ *
72
+ * @throws {@link WAFInvalidParameterException} (client fault)
73
+ * <p>The operation failed because AWS WAF didn't recognize a parameter in the request. For example:</p>
74
+ * <ul>
75
+ * <li>
76
+ * <p>You specified an invalid parameter name.</p>
77
+ * </li>
78
+ * <li>
79
+ * <p>You specified an invalid value.</p>
80
+ * </li>
81
+ * <li>
82
+ * <p>You tried to update an object (<code>ByteMatchSet</code>, <code>IPSet</code>, <code>Rule</code>, or <code>WebACL</code>)
83
+ * using an action other than <code>INSERT</code> or <code>DELETE</code>.</p>
84
+ * </li>
85
+ * <li>
86
+ * <p>You tried to create a <code>WebACL</code> with a <code>DefaultAction</code>
87
+ * <code>Type</code> other than
88
+ * <code>ALLOW</code>, <code>BLOCK</code>, or <code>COUNT</code>.</p>
89
+ * </li>
90
+ * <li>
91
+ * <p>You tried to create a <code>RateBasedRule</code> with a <code>RateKey</code> value other than <code>IP</code>.</p>
92
+ * </li>
93
+ * <li>
94
+ * <p>You tried to update a <code>WebACL</code> with a <code>WafAction</code>
95
+ * <code>Type</code> other than
96
+ * <code>ALLOW</code>, <code>BLOCK</code>, or <code>COUNT</code>.</p>
97
+ * </li>
98
+ * <li>
99
+ * <p>You tried to update a <code>ByteMatchSet</code> with a <code>FieldToMatch</code>
100
+ * <code>Type</code> other than
101
+ * HEADER, METHOD, QUERY_STRING, URI, or BODY.</p>
102
+ * </li>
103
+ * <li>
104
+ * <p>You tried to update a <code>ByteMatchSet</code> with a <code>Field</code> of <code>HEADER</code>
105
+ * but no value for <code>Data</code>.</p>
106
+ * </li>
107
+ * <li>
108
+ * <p>Your request references an ARN that is malformed, or corresponds to a resource with which a web ACL cannot be associated.</p>
109
+ * </li>
110
+ * </ul>
111
+ *
112
+ * @throws {@link WAFLimitsExceededException} (client fault)
113
+ * <p>The operation exceeds a resource limit, for example, the maximum number of <code>WebACL</code> objects that you can create
114
+ * for an AWS account. For more information, see
115
+ * <a href="https://docs.aws.amazon.com/waf/latest/developerguide/limits.html">Limits</a> in the <i>AWS WAF Developer Guide</i>.</p>
116
+ *
117
+ * @throws {@link WAFStaleDataException} (client fault)
118
+ * <p>The operation failed because you tried to create, update, or delete an object by using a change token that has already been used.</p>
119
+ *
120
+ *
121
+ * @example To create a size constraint
122
+ * ```javascript
123
+ * // The following example creates size constraint set named MySampleSizeConstraintSet.
124
+ * const input = {
125
+ * "ChangeToken": "abcd12f2-46da-4fdb-b8d5-fbd4c466928f",
126
+ * "Name": "MySampleSizeConstraintSet"
127
+ * };
128
+ * const command = new CreateSizeConstraintSetCommand(input);
129
+ * const response = await client.send(command);
130
+ * /* response ==
131
+ * {
132
+ * "ChangeToken": "abcd12f2-46da-4fdb-b8d5-fbd4c466928f",
133
+ * "SizeConstraintSet": {
134
+ * "Name": "MySampleSizeConstraintSet",
135
+ * "SizeConstraintSetId": "example1ds3t-46da-4fdb-b8d5-abc321j569j5",
136
+ * "SizeConstraints": [
137
+ * {
138
+ * "ComparisonOperator": "GT",
139
+ * "FieldToMatch": {
140
+ * "Type": "QUERY_STRING"
141
+ * },
142
+ * "Size": 0,
143
+ * "TextTransformation": "NONE"
144
+ * }
145
+ * ]
146
+ * }
147
+ * }
148
+ * *\/
149
+ * // example id: createsizeconstraint-1474299140754
150
+ * ```
151
+ *
63
152
  */
64
153
  export declare class CreateSizeConstraintSetCommand extends $Command<CreateSizeConstraintSetCommandInput, CreateSizeConstraintSetCommandOutput, WAFRegionalClientResolvedConfig> {
65
154
  readonly input: CreateSizeConstraintSetCommandInput;