@aws-sdk/client-waf 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 (78) hide show
  1. package/dist-types/commands/CreateByteMatchSetCommand.d.ts +58 -0
  2. package/dist-types/commands/CreateGeoMatchSetCommand.d.ts +58 -0
  3. package/dist-types/commands/CreateIPSetCommand.d.ts +85 -0
  4. package/dist-types/commands/CreateRateBasedRuleCommand.d.ts +64 -0
  5. package/dist-types/commands/CreateRegexMatchSetCommand.d.ts +15 -0
  6. package/dist-types/commands/CreateRegexPatternSetCommand.d.ts +15 -0
  7. package/dist-types/commands/CreateRuleCommand.d.ts +94 -0
  8. package/dist-types/commands/CreateRuleGroupCommand.d.ts +24 -0
  9. package/dist-types/commands/CreateSizeConstraintSetCommand.d.ts +89 -0
  10. package/dist-types/commands/CreateSqlInjectionMatchSetCommand.d.ts +87 -0
  11. package/dist-types/commands/CreateWebACLCommand.d.ts +105 -0
  12. package/dist-types/commands/CreateWebACLMigrationStackCommand.d.ts +103 -0
  13. package/dist-types/commands/CreateXssMatchSetCommand.d.ts +87 -0
  14. package/dist-types/commands/DeleteByteMatchSetCommand.d.ts +59 -0
  15. package/dist-types/commands/DeleteGeoMatchSetCommand.d.ts +42 -0
  16. package/dist-types/commands/DeleteIPSetCommand.d.ts +59 -0
  17. package/dist-types/commands/DeleteLoggingConfigurationCommand.d.ts +10 -0
  18. package/dist-types/commands/DeletePermissionPolicyCommand.d.ts +10 -0
  19. package/dist-types/commands/DeleteRateBasedRuleCommand.d.ts +48 -0
  20. package/dist-types/commands/DeleteRegexMatchSetCommand.d.ts +42 -0
  21. package/dist-types/commands/DeleteRegexPatternSetCommand.d.ts +42 -0
  22. package/dist-types/commands/DeleteRuleCommand.d.ts +65 -0
  23. package/dist-types/commands/DeleteRuleGroupCommand.d.ts +68 -0
  24. package/dist-types/commands/DeleteSizeConstraintSetCommand.d.ts +59 -0
  25. package/dist-types/commands/DeleteSqlInjectionMatchSetCommand.d.ts +59 -0
  26. package/dist-types/commands/DeleteWebACLCommand.d.ts +65 -0
  27. package/dist-types/commands/DeleteXssMatchSetCommand.d.ts +59 -0
  28. package/dist-types/commands/GetByteMatchSetCommand.d.ts +40 -0
  29. package/dist-types/commands/GetChangeTokenCommand.d.ts +18 -0
  30. package/dist-types/commands/GetChangeTokenStatusCommand.d.ts +23 -0
  31. package/dist-types/commands/GetGeoMatchSetCommand.d.ts +10 -0
  32. package/dist-types/commands/GetIPSetCommand.d.ts +35 -0
  33. package/dist-types/commands/GetLoggingConfigurationCommand.d.ts +7 -0
  34. package/dist-types/commands/GetPermissionPolicyCommand.d.ts +7 -0
  35. package/dist-types/commands/GetRateBasedRuleCommand.d.ts +10 -0
  36. package/dist-types/commands/GetRateBasedRuleManagedKeysCommand.d.ts +50 -0
  37. package/dist-types/commands/GetRegexMatchSetCommand.d.ts +10 -0
  38. package/dist-types/commands/GetRegexPatternSetCommand.d.ts +10 -0
  39. package/dist-types/commands/GetRuleCommand.d.ts +37 -0
  40. package/dist-types/commands/GetRuleGroupCommand.d.ts +7 -0
  41. package/dist-types/commands/GetSampledRequestsCommand.d.ts +52 -0
  42. package/dist-types/commands/GetSizeConstraintSetCommand.d.ts +39 -0
  43. package/dist-types/commands/GetSqlInjectionMatchSetCommand.d.ts +37 -0
  44. package/dist-types/commands/GetWebACLCommand.d.ts +42 -0
  45. package/dist-types/commands/GetXssMatchSetCommand.d.ts +37 -0
  46. package/dist-types/commands/ListActivatedRulesInRuleGroupCommand.d.ts +47 -0
  47. package/dist-types/commands/ListByteMatchSetsCommand.d.ts +7 -0
  48. package/dist-types/commands/ListGeoMatchSetsCommand.d.ts +7 -0
  49. package/dist-types/commands/ListIPSetsCommand.d.ts +28 -0
  50. package/dist-types/commands/ListLoggingConfigurationsCommand.d.ts +47 -0
  51. package/dist-types/commands/ListRateBasedRulesCommand.d.ts +7 -0
  52. package/dist-types/commands/ListRegexMatchSetsCommand.d.ts +7 -0
  53. package/dist-types/commands/ListRegexPatternSetsCommand.d.ts +7 -0
  54. package/dist-types/commands/ListRuleGroupsCommand.d.ts +4 -0
  55. package/dist-types/commands/ListRulesCommand.d.ts +28 -0
  56. package/dist-types/commands/ListSizeConstraintSetsCommand.d.ts +28 -0
  57. package/dist-types/commands/ListSqlInjectionMatchSetsCommand.d.ts +28 -0
  58. package/dist-types/commands/ListSubscribedRuleGroupsCommand.d.ts +7 -0
  59. package/dist-types/commands/ListTagsForResourceCommand.d.ts +56 -0
  60. package/dist-types/commands/ListWebACLsCommand.d.ts +28 -0
  61. package/dist-types/commands/ListXssMatchSetsCommand.d.ts +28 -0
  62. package/dist-types/commands/PutLoggingConfigurationCommand.d.ts +13 -0
  63. package/dist-types/commands/PutPermissionPolicyCommand.d.ts +42 -0
  64. package/dist-types/commands/TagResourceCommand.d.ts +61 -0
  65. package/dist-types/commands/UntagResourceCommand.d.ts +56 -0
  66. package/dist-types/commands/UpdateByteMatchSetCommand.d.ts +130 -0
  67. package/dist-types/commands/UpdateGeoMatchSetCommand.d.ts +110 -0
  68. package/dist-types/commands/UpdateIPSetCommand.d.ts +136 -0
  69. package/dist-types/commands/UpdateRateBasedRuleCommand.d.ts +110 -0
  70. package/dist-types/commands/UpdateRegexMatchSetCommand.d.ts +62 -0
  71. package/dist-types/commands/UpdateRegexPatternSetCommand.d.ts +62 -0
  72. package/dist-types/commands/UpdateRuleCommand.d.ts +137 -0
  73. package/dist-types/commands/UpdateRuleGroupCommand.d.ts +96 -0
  74. package/dist-types/commands/UpdateSizeConstraintSetCommand.d.ts +140 -0
  75. package/dist-types/commands/UpdateSqlInjectionMatchSetCommand.d.ts +127 -0
  76. package/dist-types/commands/UpdateWebACLCommand.d.ts +145 -0
  77. package/dist-types/commands/UpdateXssMatchSetCommand.d.ts +127 -0
  78. package/package.json +29 -29
@@ -58,6 +58,93 @@ export interface CreateSqlInjectionMatchSetCommandOutput extends CreateSqlInject
58
58
  * @see {@link CreateSqlInjectionMatchSetCommandOutput} for command's `response` shape.
59
59
  * @see {@link WAFClientResolvedConfig | config} for WAFClient's `config` shape.
60
60
  *
61
+ * @throws {@link WAFDisallowedNameException} (client fault)
62
+ * <p>The name specified is invalid.</p>
63
+ *
64
+ * @throws {@link WAFInternalErrorException} (server fault)
65
+ * <p>The operation failed because of a system problem, even though the request was valid. Retry your request.</p>
66
+ *
67
+ * @throws {@link WAFInvalidAccountException} (client fault)
68
+ * <p>The operation failed because you tried to create, update, or delete an object by using an invalid account identifier.</p>
69
+ *
70
+ * @throws {@link WAFInvalidParameterException} (client fault)
71
+ * <p>The operation failed because AWS WAF didn't recognize a parameter in the request. For example:</p>
72
+ * <ul>
73
+ * <li>
74
+ * <p>You specified an invalid parameter name.</p>
75
+ * </li>
76
+ * <li>
77
+ * <p>You specified an invalid value.</p>
78
+ * </li>
79
+ * <li>
80
+ * <p>You tried to update an object (<code>ByteMatchSet</code>, <code>IPSet</code>, <code>Rule</code>, or <code>WebACL</code>)
81
+ * using an action other than <code>INSERT</code> or <code>DELETE</code>.</p>
82
+ * </li>
83
+ * <li>
84
+ * <p>You tried to create a <code>WebACL</code> with a <code>DefaultAction</code>
85
+ * <code>Type</code> other than
86
+ * <code>ALLOW</code>, <code>BLOCK</code>, or <code>COUNT</code>.</p>
87
+ * </li>
88
+ * <li>
89
+ * <p>You tried to create a <code>RateBasedRule</code> with a <code>RateKey</code> value other than <code>IP</code>.</p>
90
+ * </li>
91
+ * <li>
92
+ * <p>You tried to update a <code>WebACL</code> with a <code>WafAction</code>
93
+ * <code>Type</code> other than
94
+ * <code>ALLOW</code>, <code>BLOCK</code>, or <code>COUNT</code>.</p>
95
+ * </li>
96
+ * <li>
97
+ * <p>You tried to update a <code>ByteMatchSet</code> with a <code>FieldToMatch</code>
98
+ * <code>Type</code> other than
99
+ * HEADER, METHOD, QUERY_STRING, URI, or BODY.</p>
100
+ * </li>
101
+ * <li>
102
+ * <p>You tried to update a <code>ByteMatchSet</code> with a <code>Field</code> of <code>HEADER</code>
103
+ * but no value for <code>Data</code>.</p>
104
+ * </li>
105
+ * <li>
106
+ * <p>Your request references an ARN that is malformed, or corresponds to a resource with which a web ACL cannot be associated.</p>
107
+ * </li>
108
+ * </ul>
109
+ *
110
+ * @throws {@link WAFLimitsExceededException} (client fault)
111
+ * <p>The operation exceeds a resource limit, for example, the maximum number of <code>WebACL</code> objects that you can create
112
+ * for an AWS account. For more information, see
113
+ * <a href="https://docs.aws.amazon.com/waf/latest/developerguide/limits.html">Limits</a> in the <i>AWS WAF Developer Guide</i>.</p>
114
+ *
115
+ * @throws {@link WAFStaleDataException} (client fault)
116
+ * <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>
117
+ *
118
+ *
119
+ * @example To create a SQL injection match set
120
+ * ```javascript
121
+ * // The following example creates a SQL injection match set named MySQLInjectionMatchSet.
122
+ * const input = {
123
+ * "ChangeToken": "abcd12f2-46da-4fdb-b8d5-fbd4c466928f",
124
+ * "Name": "MySQLInjectionMatchSet"
125
+ * };
126
+ * const command = new CreateSqlInjectionMatchSetCommand(input);
127
+ * const response = await client.send(command);
128
+ * /* response ==
129
+ * {
130
+ * "ChangeToken": "abcd12f2-46da-4fdb-b8d5-fbd4c466928f",
131
+ * "SqlInjectionMatchSet": {
132
+ * "Name": "MySQLInjectionMatchSet",
133
+ * "SqlInjectionMatchSetId": "example1ds3t-46da-4fdb-b8d5-abc321j569j5",
134
+ * "SqlInjectionMatchTuples": [
135
+ * {
136
+ * "FieldToMatch": {
137
+ * "Type": "QUERY_STRING"
138
+ * },
139
+ * "TextTransformation": "URL_DECODE"
140
+ * }
141
+ * ]
142
+ * }
143
+ * }
144
+ * *\/
145
+ * // example id: createsqlinjectionmatchset-1474492796105
146
+ * ```
147
+ *
61
148
  */
62
149
  export declare class CreateSqlInjectionMatchSetCommand extends $Command<CreateSqlInjectionMatchSetCommandInput, CreateSqlInjectionMatchSetCommandOutput, WAFClientResolvedConfig> {
63
150
  readonly input: CreateSqlInjectionMatchSetCommandInput;
@@ -68,6 +68,111 @@ export interface CreateWebACLCommandOutput extends CreateWebACLResponse, __Metad
68
68
  * @see {@link CreateWebACLCommandOutput} for command's `response` shape.
69
69
  * @see {@link WAFClientResolvedConfig | config} for WAFClient's `config` shape.
70
70
  *
71
+ * @throws {@link WAFBadRequestException} (client fault)
72
+ * <p></p>
73
+ *
74
+ * @throws {@link WAFDisallowedNameException} (client fault)
75
+ * <p>The name specified is invalid.</p>
76
+ *
77
+ * @throws {@link WAFInternalErrorException} (server fault)
78
+ * <p>The operation failed because of a system problem, even though the request was valid. Retry your request.</p>
79
+ *
80
+ * @throws {@link WAFInvalidAccountException} (client fault)
81
+ * <p>The operation failed because you tried to create, update, or delete an object by using an invalid account identifier.</p>
82
+ *
83
+ * @throws {@link WAFInvalidParameterException} (client fault)
84
+ * <p>The operation failed because AWS WAF didn't recognize a parameter in the request. For example:</p>
85
+ * <ul>
86
+ * <li>
87
+ * <p>You specified an invalid parameter name.</p>
88
+ * </li>
89
+ * <li>
90
+ * <p>You specified an invalid value.</p>
91
+ * </li>
92
+ * <li>
93
+ * <p>You tried to update an object (<code>ByteMatchSet</code>, <code>IPSet</code>, <code>Rule</code>, or <code>WebACL</code>)
94
+ * using an action other than <code>INSERT</code> or <code>DELETE</code>.</p>
95
+ * </li>
96
+ * <li>
97
+ * <p>You tried to create a <code>WebACL</code> with a <code>DefaultAction</code>
98
+ * <code>Type</code> other than
99
+ * <code>ALLOW</code>, <code>BLOCK</code>, or <code>COUNT</code>.</p>
100
+ * </li>
101
+ * <li>
102
+ * <p>You tried to create a <code>RateBasedRule</code> with a <code>RateKey</code> value other than <code>IP</code>.</p>
103
+ * </li>
104
+ * <li>
105
+ * <p>You tried to update a <code>WebACL</code> with a <code>WafAction</code>
106
+ * <code>Type</code> other than
107
+ * <code>ALLOW</code>, <code>BLOCK</code>, or <code>COUNT</code>.</p>
108
+ * </li>
109
+ * <li>
110
+ * <p>You tried to update a <code>ByteMatchSet</code> with a <code>FieldToMatch</code>
111
+ * <code>Type</code> other than
112
+ * HEADER, METHOD, QUERY_STRING, URI, or BODY.</p>
113
+ * </li>
114
+ * <li>
115
+ * <p>You tried to update a <code>ByteMatchSet</code> with a <code>Field</code> of <code>HEADER</code>
116
+ * but no value for <code>Data</code>.</p>
117
+ * </li>
118
+ * <li>
119
+ * <p>Your request references an ARN that is malformed, or corresponds to a resource with which a web ACL cannot be associated.</p>
120
+ * </li>
121
+ * </ul>
122
+ *
123
+ * @throws {@link WAFLimitsExceededException} (client fault)
124
+ * <p>The operation exceeds a resource limit, for example, the maximum number of <code>WebACL</code> objects that you can create
125
+ * for an AWS account. For more information, see
126
+ * <a href="https://docs.aws.amazon.com/waf/latest/developerguide/limits.html">Limits</a> in the <i>AWS WAF Developer Guide</i>.</p>
127
+ *
128
+ * @throws {@link WAFStaleDataException} (client fault)
129
+ * <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>
130
+ *
131
+ * @throws {@link WAFTagOperationException} (client fault)
132
+ * <p></p>
133
+ *
134
+ * @throws {@link WAFTagOperationInternalErrorException} (server fault)
135
+ * <p></p>
136
+ *
137
+ *
138
+ * @example To create a web ACL
139
+ * ```javascript
140
+ * // The following example creates a web ACL named CreateExample.
141
+ * const input = {
142
+ * "ChangeToken": "abcd12f2-46da-4fdb-b8d5-fbd4c466928f",
143
+ * "DefaultAction": {
144
+ * "Type": "ALLOW"
145
+ * },
146
+ * "MetricName": "CreateExample",
147
+ * "Name": "CreateExample"
148
+ * };
149
+ * const command = new CreateWebACLCommand(input);
150
+ * const response = await client.send(command);
151
+ * /* response ==
152
+ * {
153
+ * "ChangeToken": "abcd12f2-46da-4fdb-b8d5-fbd4c466928f",
154
+ * "WebACL": {
155
+ * "DefaultAction": {
156
+ * "Type": "ALLOW"
157
+ * },
158
+ * "MetricName": "CreateExample",
159
+ * "Name": "CreateExample",
160
+ * "Rules": [
161
+ * {
162
+ * "Action": {
163
+ * "Type": "ALLOW"
164
+ * },
165
+ * "Priority": 1,
166
+ * "RuleId": "WAFRule-1-Example"
167
+ * }
168
+ * ],
169
+ * "WebACLId": "example-46da-4444-5555-example"
170
+ * }
171
+ * }
172
+ * *\/
173
+ * // example id: createwebacl-1472061481310
174
+ * ```
175
+ *
71
176
  */
72
177
  export declare class CreateWebACLCommand extends $Command<CreateWebACLCommandInput, CreateWebACLCommandOutput, WAFClientResolvedConfig> {
73
178
  readonly input: CreateWebACLCommandInput;
@@ -36,6 +36,109 @@ export interface CreateWebACLMigrationStackCommandOutput extends CreateWebACLMig
36
36
  * @see {@link CreateWebACLMigrationStackCommandOutput} for command's `response` shape.
37
37
  * @see {@link WAFClientResolvedConfig | config} for WAFClient's `config` shape.
38
38
  *
39
+ * @throws {@link WAFEntityMigrationException} (client fault)
40
+ * <p>The operation failed due to a problem with the migration. The failure cause is provided in the exception, in the <code>MigrationErrorType</code>: </p>
41
+ * <ul>
42
+ * <li>
43
+ * <p>
44
+ * <code>ENTITY_NOT_SUPPORTED</code> - The web ACL has an unsupported entity but the <code>IgnoreUnsupportedType</code> is not set to true.</p>
45
+ * </li>
46
+ * <li>
47
+ * <p>
48
+ * <code>ENTITY_NOT_FOUND</code> - The web ACL doesn't exist. </p>
49
+ * </li>
50
+ * <li>
51
+ * <p>
52
+ * <code>S3_BUCKET_NO_PERMISSION</code> - You don't have permission to perform the <code>PutObject</code> action to the specified Amazon S3 bucket.</p>
53
+ * </li>
54
+ * <li>
55
+ * <p>
56
+ * <code>S3_BUCKET_NOT_ACCESSIBLE</code> - The bucket policy doesn't allow AWS WAF to perform the <code>PutObject</code> action in the bucket.</p>
57
+ * </li>
58
+ * <li>
59
+ * <p>
60
+ * <code>S3_BUCKET_NOT_FOUND</code> - The S3 bucket doesn't exist. </p>
61
+ * </li>
62
+ * <li>
63
+ * <p>
64
+ * <code>S3_BUCKET_INVALID_REGION</code> - The S3 bucket is not in the same Region as the web ACL.</p>
65
+ * </li>
66
+ * <li>
67
+ * <p>
68
+ * <code>S3_INTERNAL_ERROR</code> - AWS WAF failed to create the template in the S3 bucket for another reason.</p>
69
+ * </li>
70
+ * </ul>
71
+ *
72
+ * @throws {@link WAFInternalErrorException} (server fault)
73
+ * <p>The operation failed because of a system problem, even though the request was valid. Retry your request.</p>
74
+ *
75
+ * @throws {@link WAFInvalidOperationException} (client fault)
76
+ * <p>The operation failed because there was nothing to do. For example:</p>
77
+ * <ul>
78
+ * <li>
79
+ * <p>You tried to remove a <code>Rule</code> from a <code>WebACL</code>, but the <code>Rule</code> isn't in the specified <code>WebACL</code>.</p>
80
+ * </li>
81
+ * <li>
82
+ * <p>You tried to remove an IP address from an <code>IPSet</code>, but the IP address isn't in the specified <code>IPSet</code>.</p>
83
+ * </li>
84
+ * <li>
85
+ * <p>You tried to remove a <code>ByteMatchTuple</code> from a <code>ByteMatchSet</code>, but the <code>ByteMatchTuple</code>
86
+ * isn't in the specified <code>WebACL</code>.</p>
87
+ * </li>
88
+ * <li>
89
+ * <p>You tried to add a <code>Rule</code> to a <code>WebACL</code>, but the <code>Rule</code> already exists in the
90
+ * specified <code>WebACL</code>.</p>
91
+ * </li>
92
+ * <li>
93
+ * <p>You tried to add a <code>ByteMatchTuple</code> to a <code>ByteMatchSet</code>, but the <code>ByteMatchTuple</code>
94
+ * already exists in the specified <code>WebACL</code>.</p>
95
+ * </li>
96
+ * </ul>
97
+ *
98
+ * @throws {@link WAFInvalidParameterException} (client fault)
99
+ * <p>The operation failed because AWS WAF didn't recognize a parameter in the request. For example:</p>
100
+ * <ul>
101
+ * <li>
102
+ * <p>You specified an invalid parameter name.</p>
103
+ * </li>
104
+ * <li>
105
+ * <p>You specified an invalid value.</p>
106
+ * </li>
107
+ * <li>
108
+ * <p>You tried to update an object (<code>ByteMatchSet</code>, <code>IPSet</code>, <code>Rule</code>, or <code>WebACL</code>)
109
+ * using an action other than <code>INSERT</code> or <code>DELETE</code>.</p>
110
+ * </li>
111
+ * <li>
112
+ * <p>You tried to create a <code>WebACL</code> with a <code>DefaultAction</code>
113
+ * <code>Type</code> other than
114
+ * <code>ALLOW</code>, <code>BLOCK</code>, or <code>COUNT</code>.</p>
115
+ * </li>
116
+ * <li>
117
+ * <p>You tried to create a <code>RateBasedRule</code> with a <code>RateKey</code> value other than <code>IP</code>.</p>
118
+ * </li>
119
+ * <li>
120
+ * <p>You tried to update a <code>WebACL</code> with a <code>WafAction</code>
121
+ * <code>Type</code> other than
122
+ * <code>ALLOW</code>, <code>BLOCK</code>, or <code>COUNT</code>.</p>
123
+ * </li>
124
+ * <li>
125
+ * <p>You tried to update a <code>ByteMatchSet</code> with a <code>FieldToMatch</code>
126
+ * <code>Type</code> other than
127
+ * HEADER, METHOD, QUERY_STRING, URI, or BODY.</p>
128
+ * </li>
129
+ * <li>
130
+ * <p>You tried to update a <code>ByteMatchSet</code> with a <code>Field</code> of <code>HEADER</code>
131
+ * but no value for <code>Data</code>.</p>
132
+ * </li>
133
+ * <li>
134
+ * <p>Your request references an ARN that is malformed, or corresponds to a resource with which a web ACL cannot be associated.</p>
135
+ * </li>
136
+ * </ul>
137
+ *
138
+ * @throws {@link WAFNonexistentItemException} (client fault)
139
+ * <p>The operation failed because the referenced object doesn't exist.</p>
140
+ *
141
+ *
39
142
  */
40
143
  export declare class CreateWebACLMigrationStackCommand extends $Command<CreateWebACLMigrationStackCommandInput, CreateWebACLMigrationStackCommandOutput, WAFClientResolvedConfig> {
41
144
  readonly input: CreateWebACLMigrationStackCommandInput;
@@ -58,6 +58,93 @@ export interface CreateXssMatchSetCommandOutput extends CreateXssMatchSetRespons
58
58
  * @see {@link CreateXssMatchSetCommandOutput} for command's `response` shape.
59
59
  * @see {@link WAFClientResolvedConfig | config} for WAFClient's `config` shape.
60
60
  *
61
+ * @throws {@link WAFDisallowedNameException} (client fault)
62
+ * <p>The name specified is invalid.</p>
63
+ *
64
+ * @throws {@link WAFInternalErrorException} (server fault)
65
+ * <p>The operation failed because of a system problem, even though the request was valid. Retry your request.</p>
66
+ *
67
+ * @throws {@link WAFInvalidAccountException} (client fault)
68
+ * <p>The operation failed because you tried to create, update, or delete an object by using an invalid account identifier.</p>
69
+ *
70
+ * @throws {@link WAFInvalidParameterException} (client fault)
71
+ * <p>The operation failed because AWS WAF didn't recognize a parameter in the request. For example:</p>
72
+ * <ul>
73
+ * <li>
74
+ * <p>You specified an invalid parameter name.</p>
75
+ * </li>
76
+ * <li>
77
+ * <p>You specified an invalid value.</p>
78
+ * </li>
79
+ * <li>
80
+ * <p>You tried to update an object (<code>ByteMatchSet</code>, <code>IPSet</code>, <code>Rule</code>, or <code>WebACL</code>)
81
+ * using an action other than <code>INSERT</code> or <code>DELETE</code>.</p>
82
+ * </li>
83
+ * <li>
84
+ * <p>You tried to create a <code>WebACL</code> with a <code>DefaultAction</code>
85
+ * <code>Type</code> other than
86
+ * <code>ALLOW</code>, <code>BLOCK</code>, or <code>COUNT</code>.</p>
87
+ * </li>
88
+ * <li>
89
+ * <p>You tried to create a <code>RateBasedRule</code> with a <code>RateKey</code> value other than <code>IP</code>.</p>
90
+ * </li>
91
+ * <li>
92
+ * <p>You tried to update a <code>WebACL</code> with a <code>WafAction</code>
93
+ * <code>Type</code> other than
94
+ * <code>ALLOW</code>, <code>BLOCK</code>, or <code>COUNT</code>.</p>
95
+ * </li>
96
+ * <li>
97
+ * <p>You tried to update a <code>ByteMatchSet</code> with a <code>FieldToMatch</code>
98
+ * <code>Type</code> other than
99
+ * HEADER, METHOD, QUERY_STRING, URI, or BODY.</p>
100
+ * </li>
101
+ * <li>
102
+ * <p>You tried to update a <code>ByteMatchSet</code> with a <code>Field</code> of <code>HEADER</code>
103
+ * but no value for <code>Data</code>.</p>
104
+ * </li>
105
+ * <li>
106
+ * <p>Your request references an ARN that is malformed, or corresponds to a resource with which a web ACL cannot be associated.</p>
107
+ * </li>
108
+ * </ul>
109
+ *
110
+ * @throws {@link WAFLimitsExceededException} (client fault)
111
+ * <p>The operation exceeds a resource limit, for example, the maximum number of <code>WebACL</code> objects that you can create
112
+ * for an AWS account. For more information, see
113
+ * <a href="https://docs.aws.amazon.com/waf/latest/developerguide/limits.html">Limits</a> in the <i>AWS WAF Developer Guide</i>.</p>
114
+ *
115
+ * @throws {@link WAFStaleDataException} (client fault)
116
+ * <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>
117
+ *
118
+ *
119
+ * @example To create an XSS match set
120
+ * ```javascript
121
+ * // The following example creates an XSS match set named MySampleXssMatchSet.
122
+ * const input = {
123
+ * "ChangeToken": "abcd12f2-46da-4fdb-b8d5-fbd4c466928f",
124
+ * "Name": "MySampleXssMatchSet"
125
+ * };
126
+ * const command = new CreateXssMatchSetCommand(input);
127
+ * const response = await client.send(command);
128
+ * /* response ==
129
+ * {
130
+ * "ChangeToken": "abcd12f2-46da-4fdb-b8d5-fbd4c466928f",
131
+ * "XssMatchSet": {
132
+ * "Name": "MySampleXssMatchSet",
133
+ * "XssMatchSetId": "example1ds3t-46da-4fdb-b8d5-abc321j569j5",
134
+ * "XssMatchTuples": [
135
+ * {
136
+ * "FieldToMatch": {
137
+ * "Type": "QUERY_STRING"
138
+ * },
139
+ * "TextTransformation": "URL_DECODE"
140
+ * }
141
+ * ]
142
+ * }
143
+ * }
144
+ * *\/
145
+ * // example id: createxssmatchset-1474560868500
146
+ * ```
147
+ *
61
148
  */
62
149
  export declare class CreateXssMatchSetCommand extends $Command<CreateXssMatchSetCommandInput, CreateXssMatchSetCommandOutput, WAFClientResolvedConfig> {
63
150
  readonly input: CreateXssMatchSetCommandInput;
@@ -52,6 +52,65 @@ export interface DeleteByteMatchSetCommandOutput extends DeleteByteMatchSetRespo
52
52
  * @see {@link DeleteByteMatchSetCommandOutput} for command's `response` shape.
53
53
  * @see {@link WAFClientResolvedConfig | config} for WAFClient's `config` shape.
54
54
  *
55
+ * @throws {@link WAFInternalErrorException} (server fault)
56
+ * <p>The operation failed because of a system problem, even though the request was valid. Retry your request.</p>
57
+ *
58
+ * @throws {@link WAFInvalidAccountException} (client fault)
59
+ * <p>The operation failed because you tried to create, update, or delete an object by using an invalid account identifier.</p>
60
+ *
61
+ * @throws {@link WAFNonEmptyEntityException} (client fault)
62
+ * <p>The operation failed because you tried to delete an object that isn't empty. For example:</p>
63
+ * <ul>
64
+ * <li>
65
+ * <p>You tried to delete a <code>WebACL</code> that still contains one or more <code>Rule</code> objects.</p>
66
+ * </li>
67
+ * <li>
68
+ * <p>You tried to delete a <code>Rule</code> that still contains one or more <code>ByteMatchSet</code> objects
69
+ * or other predicates.</p>
70
+ * </li>
71
+ * <li>
72
+ * <p>You tried to delete a <code>ByteMatchSet</code> that contains one or more <code>ByteMatchTuple</code> objects.</p>
73
+ * </li>
74
+ * <li>
75
+ * <p>You tried to delete an <code>IPSet</code> that references one or more IP addresses.</p>
76
+ * </li>
77
+ * </ul>
78
+ *
79
+ * @throws {@link WAFNonexistentItemException} (client fault)
80
+ * <p>The operation failed because the referenced object doesn't exist.</p>
81
+ *
82
+ * @throws {@link WAFReferencedItemException} (client fault)
83
+ * <p>The operation failed because you tried to delete an object that is still in use. For example:</p>
84
+ * <ul>
85
+ * <li>
86
+ * <p>You tried to delete a <code>ByteMatchSet</code> that is still referenced by a <code>Rule</code>.</p>
87
+ * </li>
88
+ * <li>
89
+ * <p>You tried to delete a <code>Rule</code> that is still referenced by a <code>WebACL</code>.</p>
90
+ * </li>
91
+ * </ul>
92
+ *
93
+ * @throws {@link WAFStaleDataException} (client fault)
94
+ * <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>
95
+ *
96
+ *
97
+ * @example To delete a byte match set
98
+ * ```javascript
99
+ * // The following example deletes a byte match set with the ID exampleIDs3t-46da-4fdb-b8d5-abc321j569j5.
100
+ * const input = {
101
+ * "ByteMatchSetId": "exampleIDs3t-46da-4fdb-b8d5-abc321j569j5",
102
+ * "ChangeToken": "abcd12f2-46da-4fdb-b8d5-fbd4c466928f"
103
+ * };
104
+ * const command = new DeleteByteMatchSetCommand(input);
105
+ * const response = await client.send(command);
106
+ * /* response ==
107
+ * {
108
+ * "ChangeToken": "abcd12f2-46da-4fdb-b8d5-fbd4c466928f"
109
+ * }
110
+ * *\/
111
+ * // example id: deletebytematchset-1473367566229
112
+ * ```
113
+ *
55
114
  */
56
115
  export declare class DeleteByteMatchSetCommand extends $Command<DeleteByteMatchSetCommandInput, DeleteByteMatchSetCommandOutput, WAFClientResolvedConfig> {
57
116
  readonly input: DeleteByteMatchSetCommandInput;
@@ -52,6 +52,48 @@ export interface DeleteGeoMatchSetCommandOutput extends DeleteGeoMatchSetRespons
52
52
  * @see {@link DeleteGeoMatchSetCommandOutput} for command's `response` shape.
53
53
  * @see {@link WAFClientResolvedConfig | config} for WAFClient's `config` shape.
54
54
  *
55
+ * @throws {@link WAFInternalErrorException} (server fault)
56
+ * <p>The operation failed because of a system problem, even though the request was valid. Retry your request.</p>
57
+ *
58
+ * @throws {@link WAFInvalidAccountException} (client fault)
59
+ * <p>The operation failed because you tried to create, update, or delete an object by using an invalid account identifier.</p>
60
+ *
61
+ * @throws {@link WAFNonEmptyEntityException} (client fault)
62
+ * <p>The operation failed because you tried to delete an object that isn't empty. For example:</p>
63
+ * <ul>
64
+ * <li>
65
+ * <p>You tried to delete a <code>WebACL</code> that still contains one or more <code>Rule</code> objects.</p>
66
+ * </li>
67
+ * <li>
68
+ * <p>You tried to delete a <code>Rule</code> that still contains one or more <code>ByteMatchSet</code> objects
69
+ * or other predicates.</p>
70
+ * </li>
71
+ * <li>
72
+ * <p>You tried to delete a <code>ByteMatchSet</code> that contains one or more <code>ByteMatchTuple</code> objects.</p>
73
+ * </li>
74
+ * <li>
75
+ * <p>You tried to delete an <code>IPSet</code> that references one or more IP addresses.</p>
76
+ * </li>
77
+ * </ul>
78
+ *
79
+ * @throws {@link WAFNonexistentItemException} (client fault)
80
+ * <p>The operation failed because the referenced object doesn't exist.</p>
81
+ *
82
+ * @throws {@link WAFReferencedItemException} (client fault)
83
+ * <p>The operation failed because you tried to delete an object that is still in use. For example:</p>
84
+ * <ul>
85
+ * <li>
86
+ * <p>You tried to delete a <code>ByteMatchSet</code> that is still referenced by a <code>Rule</code>.</p>
87
+ * </li>
88
+ * <li>
89
+ * <p>You tried to delete a <code>Rule</code> that is still referenced by a <code>WebACL</code>.</p>
90
+ * </li>
91
+ * </ul>
92
+ *
93
+ * @throws {@link WAFStaleDataException} (client fault)
94
+ * <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>
95
+ *
96
+ *
55
97
  */
56
98
  export declare class DeleteGeoMatchSetCommand extends $Command<DeleteGeoMatchSetCommandInput, DeleteGeoMatchSetCommandOutput, WAFClientResolvedConfig> {
57
99
  readonly input: DeleteGeoMatchSetCommandInput;
@@ -52,6 +52,65 @@ export interface DeleteIPSetCommandOutput extends DeleteIPSetResponse, __Metadat
52
52
  * @see {@link DeleteIPSetCommandOutput} for command's `response` shape.
53
53
  * @see {@link WAFClientResolvedConfig | config} for WAFClient's `config` shape.
54
54
  *
55
+ * @throws {@link WAFInternalErrorException} (server fault)
56
+ * <p>The operation failed because of a system problem, even though the request was valid. Retry your request.</p>
57
+ *
58
+ * @throws {@link WAFInvalidAccountException} (client fault)
59
+ * <p>The operation failed because you tried to create, update, or delete an object by using an invalid account identifier.</p>
60
+ *
61
+ * @throws {@link WAFNonEmptyEntityException} (client fault)
62
+ * <p>The operation failed because you tried to delete an object that isn't empty. For example:</p>
63
+ * <ul>
64
+ * <li>
65
+ * <p>You tried to delete a <code>WebACL</code> that still contains one or more <code>Rule</code> objects.</p>
66
+ * </li>
67
+ * <li>
68
+ * <p>You tried to delete a <code>Rule</code> that still contains one or more <code>ByteMatchSet</code> objects
69
+ * or other predicates.</p>
70
+ * </li>
71
+ * <li>
72
+ * <p>You tried to delete a <code>ByteMatchSet</code> that contains one or more <code>ByteMatchTuple</code> objects.</p>
73
+ * </li>
74
+ * <li>
75
+ * <p>You tried to delete an <code>IPSet</code> that references one or more IP addresses.</p>
76
+ * </li>
77
+ * </ul>
78
+ *
79
+ * @throws {@link WAFNonexistentItemException} (client fault)
80
+ * <p>The operation failed because the referenced object doesn't exist.</p>
81
+ *
82
+ * @throws {@link WAFReferencedItemException} (client fault)
83
+ * <p>The operation failed because you tried to delete an object that is still in use. For example:</p>
84
+ * <ul>
85
+ * <li>
86
+ * <p>You tried to delete a <code>ByteMatchSet</code> that is still referenced by a <code>Rule</code>.</p>
87
+ * </li>
88
+ * <li>
89
+ * <p>You tried to delete a <code>Rule</code> that is still referenced by a <code>WebACL</code>.</p>
90
+ * </li>
91
+ * </ul>
92
+ *
93
+ * @throws {@link WAFStaleDataException} (client fault)
94
+ * <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>
95
+ *
96
+ *
97
+ * @example To delete an IP set
98
+ * ```javascript
99
+ * // The following example deletes an IP match set with the ID example1ds3t-46da-4fdb-b8d5-abc321j569j5.
100
+ * const input = {
101
+ * "ChangeToken": "abcd12f2-46da-4fdb-b8d5-fbd4c466928f",
102
+ * "IPSetId": "example1ds3t-46da-4fdb-b8d5-abc321j569j5"
103
+ * };
104
+ * const command = new DeleteIPSetCommand(input);
105
+ * const response = await client.send(command);
106
+ * /* response ==
107
+ * {
108
+ * "ChangeToken": "abcd12f2-46da-4fdb-b8d5-fbd4c466928f"
109
+ * }
110
+ * *\/
111
+ * // example id: deleteipset-1472767434306
112
+ * ```
113
+ *
55
114
  */
56
115
  export declare class DeleteIPSetCommand extends $Command<DeleteIPSetCommandInput, DeleteIPSetCommandOutput, WAFClientResolvedConfig> {
57
116
  readonly input: DeleteIPSetCommandInput;
@@ -38,6 +38,16 @@ export interface DeleteLoggingConfigurationCommandOutput extends DeleteLoggingCo
38
38
  * @see {@link DeleteLoggingConfigurationCommandOutput} for command's `response` shape.
39
39
  * @see {@link WAFClientResolvedConfig | config} for WAFClient's `config` shape.
40
40
  *
41
+ * @throws {@link WAFInternalErrorException} (server fault)
42
+ * <p>The operation failed because of a system problem, even though the request was valid. Retry your request.</p>
43
+ *
44
+ * @throws {@link WAFNonexistentItemException} (client fault)
45
+ * <p>The operation failed because the referenced object doesn't exist.</p>
46
+ *
47
+ * @throws {@link WAFStaleDataException} (client fault)
48
+ * <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>
49
+ *
50
+ *
41
51
  */
42
52
  export declare class DeleteLoggingConfigurationCommand extends $Command<DeleteLoggingConfigurationCommandInput, DeleteLoggingConfigurationCommandOutput, WAFClientResolvedConfig> {
43
53
  readonly input: DeleteLoggingConfigurationCommandInput;
@@ -38,6 +38,16 @@ export interface DeletePermissionPolicyCommandOutput extends DeletePermissionPol
38
38
  * @see {@link DeletePermissionPolicyCommandOutput} for command's `response` shape.
39
39
  * @see {@link WAFClientResolvedConfig | config} for WAFClient's `config` shape.
40
40
  *
41
+ * @throws {@link WAFInternalErrorException} (server fault)
42
+ * <p>The operation failed because of a system problem, even though the request was valid. Retry your request.</p>
43
+ *
44
+ * @throws {@link WAFNonexistentItemException} (client fault)
45
+ * <p>The operation failed because the referenced object doesn't exist.</p>
46
+ *
47
+ * @throws {@link WAFStaleDataException} (client fault)
48
+ * <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>
49
+ *
50
+ *
41
51
  */
42
52
  export declare class DeletePermissionPolicyCommand extends $Command<DeletePermissionPolicyCommandInput, DeletePermissionPolicyCommandOutput, WAFClientResolvedConfig> {
43
53
  readonly input: DeletePermissionPolicyCommandInput;