@aws-sdk/client-waf 3.289.0 → 3.292.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 +58 -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 +64 -0
  8. package/dist-types/commands/CreateRuleGroupCommand.d.ts +24 -0
  9. package/dist-types/commands/CreateSizeConstraintSetCommand.d.ts +58 -0
  10. package/dist-types/commands/CreateSqlInjectionMatchSetCommand.d.ts +58 -0
  11. package/dist-types/commands/CreateWebACLCommand.d.ts +67 -0
  12. package/dist-types/commands/CreateWebACLMigrationStackCommand.d.ts +103 -0
  13. package/dist-types/commands/CreateXssMatchSetCommand.d.ts +58 -0
  14. package/dist-types/commands/DeleteByteMatchSetCommand.d.ts +42 -0
  15. package/dist-types/commands/DeleteGeoMatchSetCommand.d.ts +42 -0
  16. package/dist-types/commands/DeleteIPSetCommand.d.ts +42 -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 +48 -0
  23. package/dist-types/commands/DeleteRuleGroupCommand.d.ts +68 -0
  24. package/dist-types/commands/DeleteSizeConstraintSetCommand.d.ts +42 -0
  25. package/dist-types/commands/DeleteSqlInjectionMatchSetCommand.d.ts +42 -0
  26. package/dist-types/commands/DeleteWebACLCommand.d.ts +48 -0
  27. package/dist-types/commands/DeleteXssMatchSetCommand.d.ts +42 -0
  28. package/dist-types/commands/GetByteMatchSetCommand.d.ts +10 -0
  29. package/dist-types/commands/GetChangeTokenCommand.d.ts +4 -0
  30. package/dist-types/commands/GetChangeTokenStatusCommand.d.ts +7 -0
  31. package/dist-types/commands/GetGeoMatchSetCommand.d.ts +10 -0
  32. package/dist-types/commands/GetIPSetCommand.d.ts +10 -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 +10 -0
  40. package/dist-types/commands/GetRuleGroupCommand.d.ts +7 -0
  41. package/dist-types/commands/GetSampledRequestsCommand.d.ts +7 -0
  42. package/dist-types/commands/GetSizeConstraintSetCommand.d.ts +10 -0
  43. package/dist-types/commands/GetSqlInjectionMatchSetCommand.d.ts +10 -0
  44. package/dist-types/commands/GetWebACLCommand.d.ts +10 -0
  45. package/dist-types/commands/GetXssMatchSetCommand.d.ts +10 -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 +7 -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 +7 -0
  56. package/dist-types/commands/ListSizeConstraintSetsCommand.d.ts +7 -0
  57. package/dist-types/commands/ListSqlInjectionMatchSetsCommand.d.ts +7 -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 +7 -0
  61. package/dist-types/commands/ListXssMatchSetsCommand.d.ts +7 -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 +99 -0
  67. package/dist-types/commands/UpdateGeoMatchSetCommand.d.ts +110 -0
  68. package/dist-types/commands/UpdateIPSetCommand.d.ts +110 -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 +110 -0
  73. package/dist-types/commands/UpdateRuleGroupCommand.d.ts +96 -0
  74. package/dist-types/commands/UpdateSizeConstraintSetCommand.d.ts +110 -0
  75. package/dist-types/commands/UpdateSqlInjectionMatchSetCommand.d.ts +99 -0
  76. package/dist-types/commands/UpdateWebACLCommand.d.ts +113 -0
  77. package/dist-types/commands/UpdateXssMatchSetCommand.d.ts +99 -0
  78. package/package.json +35 -40
@@ -37,6 +37,13 @@ export interface ListIPSetsCommandOutput extends ListIPSetsResponse, __MetadataB
37
37
  * @see {@link ListIPSetsCommandOutput} for command's `response` shape.
38
38
  * @see {@link WAFClientResolvedConfig | config} for WAFClient'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
+ *
40
47
  * @example To list IP sets
41
48
  * ```javascript
42
49
  * // The following example returns an array of up to 100 IP match sets.
@@ -37,6 +37,53 @@ export interface ListLoggingConfigurationsCommandOutput extends ListLoggingConfi
37
37
  * @see {@link ListLoggingConfigurationsCommandOutput} for command's `response` shape.
38
38
  * @see {@link WAFClientResolvedConfig | config} for WAFClient'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 WAFInvalidParameterException} (client fault)
44
+ * <p>The operation failed because AWS WAF didn't recognize a parameter in the request. For example:</p>
45
+ * <ul>
46
+ * <li>
47
+ * <p>You specified an invalid parameter name.</p>
48
+ * </li>
49
+ * <li>
50
+ * <p>You specified an invalid value.</p>
51
+ * </li>
52
+ * <li>
53
+ * <p>You tried to update an object (<code>ByteMatchSet</code>, <code>IPSet</code>, <code>Rule</code>, or <code>WebACL</code>)
54
+ * using an action other than <code>INSERT</code> or <code>DELETE</code>.</p>
55
+ * </li>
56
+ * <li>
57
+ * <p>You tried to create a <code>WebACL</code> with a <code>DefaultAction</code>
58
+ * <code>Type</code> other than
59
+ * <code>ALLOW</code>, <code>BLOCK</code>, or <code>COUNT</code>.</p>
60
+ * </li>
61
+ * <li>
62
+ * <p>You tried to create a <code>RateBasedRule</code> with a <code>RateKey</code> value other than <code>IP</code>.</p>
63
+ * </li>
64
+ * <li>
65
+ * <p>You tried to update a <code>WebACL</code> with a <code>WafAction</code>
66
+ * <code>Type</code> other than
67
+ * <code>ALLOW</code>, <code>BLOCK</code>, or <code>COUNT</code>.</p>
68
+ * </li>
69
+ * <li>
70
+ * <p>You tried to update a <code>ByteMatchSet</code> with a <code>FieldToMatch</code>
71
+ * <code>Type</code> other than
72
+ * HEADER, METHOD, QUERY_STRING, URI, or BODY.</p>
73
+ * </li>
74
+ * <li>
75
+ * <p>You tried to update a <code>ByteMatchSet</code> with a <code>Field</code> of <code>HEADER</code>
76
+ * but no value for <code>Data</code>.</p>
77
+ * </li>
78
+ * <li>
79
+ * <p>Your request references an ARN that is malformed, or corresponds to a resource with which a web ACL cannot be associated.</p>
80
+ * </li>
81
+ * </ul>
82
+ *
83
+ * @throws {@link WAFNonexistentItemException} (client fault)
84
+ * <p>The operation failed because the referenced object doesn't exist.</p>
85
+ *
86
+ *
40
87
  */
41
88
  export declare class ListLoggingConfigurationsCommand extends $Command<ListLoggingConfigurationsCommandInput, ListLoggingConfigurationsCommandOutput, WAFClientResolvedConfig> {
42
89
  readonly input: ListLoggingConfigurationsCommandInput;
@@ -37,6 +37,13 @@ export interface ListRateBasedRulesCommandOutput extends ListRateBasedRulesRespo
37
37
  * @see {@link ListRateBasedRulesCommandOutput} for command's `response` shape.
38
38
  * @see {@link WAFClientResolvedConfig | config} for WAFClient'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
+ *
40
47
  */
41
48
  export declare class ListRateBasedRulesCommand extends $Command<ListRateBasedRulesCommandInput, ListRateBasedRulesCommandOutput, WAFClientResolvedConfig> {
42
49
  readonly input: ListRateBasedRulesCommandInput;
@@ -37,6 +37,13 @@ export interface ListRegexMatchSetsCommandOutput extends ListRegexMatchSetsRespo
37
37
  * @see {@link ListRegexMatchSetsCommandOutput} for command's `response` shape.
38
38
  * @see {@link WAFClientResolvedConfig | config} for WAFClient'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
+ *
40
47
  */
41
48
  export declare class ListRegexMatchSetsCommand extends $Command<ListRegexMatchSetsCommandInput, ListRegexMatchSetsCommandOutput, WAFClientResolvedConfig> {
42
49
  readonly input: ListRegexMatchSetsCommandInput;
@@ -37,6 +37,13 @@ export interface ListRegexPatternSetsCommandOutput extends ListRegexPatternSetsR
37
37
  * @see {@link ListRegexPatternSetsCommandOutput} for command's `response` shape.
38
38
  * @see {@link WAFClientResolvedConfig | config} for WAFClient'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
+ *
40
47
  */
41
48
  export declare class ListRegexPatternSetsCommand extends $Command<ListRegexPatternSetsCommandInput, ListRegexPatternSetsCommandOutput, WAFClientResolvedConfig> {
42
49
  readonly input: ListRegexPatternSetsCommandInput;
@@ -37,6 +37,10 @@ export interface ListRuleGroupsCommandOutput extends ListRuleGroupsResponse, __M
37
37
  * @see {@link ListRuleGroupsCommandOutput} for command's `response` shape.
38
38
  * @see {@link WAFClientResolvedConfig | config} for WAFClient'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
+ *
40
44
  */
41
45
  export declare class ListRuleGroupsCommand extends $Command<ListRuleGroupsCommandInput, ListRuleGroupsCommandOutput, WAFClientResolvedConfig> {
42
46
  readonly input: ListRuleGroupsCommandInput;
@@ -37,6 +37,13 @@ export interface ListRulesCommandOutput extends ListRulesResponse, __MetadataBea
37
37
  * @see {@link ListRulesCommandOutput} for command's `response` shape.
38
38
  * @see {@link WAFClientResolvedConfig | config} for WAFClient'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
+ *
40
47
  * @example To list rules
41
48
  * ```javascript
42
49
  * // The following example returns an array of up to 100 rules.
@@ -37,6 +37,13 @@ export interface ListSizeConstraintSetsCommandOutput extends ListSizeConstraintS
37
37
  * @see {@link ListSizeConstraintSetsCommandOutput} for command's `response` shape.
38
38
  * @see {@link WAFClientResolvedConfig | config} for WAFClient'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
+ *
40
47
  * @example To list a size constraint sets
41
48
  * ```javascript
42
49
  * // The following example returns an array of up to 100 size contraint match sets.
@@ -37,6 +37,13 @@ export interface ListSqlInjectionMatchSetsCommandOutput extends ListSqlInjection
37
37
  * @see {@link ListSqlInjectionMatchSetsCommandOutput} for command's `response` shape.
38
38
  * @see {@link WAFClientResolvedConfig | config} for WAFClient'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
+ *
40
47
  * @example To list SQL injection match sets
41
48
  * ```javascript
42
49
  * // The following example returns an array of up to 100 SQL injection match sets.
@@ -37,6 +37,13 @@ export interface ListSubscribedRuleGroupsCommandOutput extends ListSubscribedRul
37
37
  * @see {@link ListSubscribedRuleGroupsCommandOutput} for command's `response` shape.
38
38
  * @see {@link WAFClientResolvedConfig | config} for WAFClient'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 WAFNonexistentItemException} (client fault)
44
+ * <p>The operation failed because the referenced object doesn't exist.</p>
45
+ *
46
+ *
40
47
  */
41
48
  export declare class ListSubscribedRuleGroupsCommand extends $Command<ListSubscribedRuleGroupsCommandInput, ListSubscribedRuleGroupsCommandOutput, WAFClientResolvedConfig> {
42
49
  readonly input: ListSubscribedRuleGroupsCommandInput;
@@ -38,6 +38,62 @@ export interface ListTagsForResourceCommandOutput extends ListTagsForResourceRes
38
38
  * @see {@link ListTagsForResourceCommandOutput} for command's `response` shape.
39
39
  * @see {@link WAFClientResolvedConfig | config} for WAFClient's `config` shape.
40
40
  *
41
+ * @throws {@link WAFBadRequestException} (client fault)
42
+ * <p></p>
43
+ *
44
+ * @throws {@link WAFInternalErrorException} (server fault)
45
+ * <p>The operation failed because of a system problem, even though the request was valid. Retry your request.</p>
46
+ *
47
+ * @throws {@link WAFInvalidParameterException} (client fault)
48
+ * <p>The operation failed because AWS WAF didn't recognize a parameter in the request. For example:</p>
49
+ * <ul>
50
+ * <li>
51
+ * <p>You specified an invalid parameter name.</p>
52
+ * </li>
53
+ * <li>
54
+ * <p>You specified an invalid value.</p>
55
+ * </li>
56
+ * <li>
57
+ * <p>You tried to update an object (<code>ByteMatchSet</code>, <code>IPSet</code>, <code>Rule</code>, or <code>WebACL</code>)
58
+ * using an action other than <code>INSERT</code> or <code>DELETE</code>.</p>
59
+ * </li>
60
+ * <li>
61
+ * <p>You tried to create a <code>WebACL</code> with a <code>DefaultAction</code>
62
+ * <code>Type</code> other than
63
+ * <code>ALLOW</code>, <code>BLOCK</code>, or <code>COUNT</code>.</p>
64
+ * </li>
65
+ * <li>
66
+ * <p>You tried to create a <code>RateBasedRule</code> with a <code>RateKey</code> value other than <code>IP</code>.</p>
67
+ * </li>
68
+ * <li>
69
+ * <p>You tried to update a <code>WebACL</code> with a <code>WafAction</code>
70
+ * <code>Type</code> other than
71
+ * <code>ALLOW</code>, <code>BLOCK</code>, or <code>COUNT</code>.</p>
72
+ * </li>
73
+ * <li>
74
+ * <p>You tried to update a <code>ByteMatchSet</code> with a <code>FieldToMatch</code>
75
+ * <code>Type</code> other than
76
+ * HEADER, METHOD, QUERY_STRING, URI, or BODY.</p>
77
+ * </li>
78
+ * <li>
79
+ * <p>You tried to update a <code>ByteMatchSet</code> with a <code>Field</code> of <code>HEADER</code>
80
+ * but no value for <code>Data</code>.</p>
81
+ * </li>
82
+ * <li>
83
+ * <p>Your request references an ARN that is malformed, or corresponds to a resource with which a web ACL cannot be associated.</p>
84
+ * </li>
85
+ * </ul>
86
+ *
87
+ * @throws {@link WAFNonexistentItemException} (client fault)
88
+ * <p>The operation failed because the referenced object doesn't exist.</p>
89
+ *
90
+ * @throws {@link WAFTagOperationException} (client fault)
91
+ * <p></p>
92
+ *
93
+ * @throws {@link WAFTagOperationInternalErrorException} (server fault)
94
+ * <p></p>
95
+ *
96
+ *
41
97
  */
42
98
  export declare class ListTagsForResourceCommand extends $Command<ListTagsForResourceCommandInput, ListTagsForResourceCommandOutput, WAFClientResolvedConfig> {
43
99
  readonly input: ListTagsForResourceCommandInput;
@@ -37,6 +37,13 @@ export interface ListWebACLsCommandOutput extends ListWebACLsResponse, __Metadat
37
37
  * @see {@link ListWebACLsCommandOutput} for command's `response` shape.
38
38
  * @see {@link WAFClientResolvedConfig | config} for WAFClient'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
+ *
40
47
  * @example To list Web ACLs
41
48
  * ```javascript
42
49
  * // The following example returns an array of up to 100 web ACLs.
@@ -37,6 +37,13 @@ export interface ListXssMatchSetsCommandOutput extends ListXssMatchSetsResponse,
37
37
  * @see {@link ListXssMatchSetsCommandOutput} for command's `response` shape.
38
38
  * @see {@link WAFClientResolvedConfig | config} for WAFClient'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
+ *
40
47
  * @example To list XSS match sets
41
48
  * ```javascript
42
49
  * // The following example returns an array of up to 100 XSS match sets.
@@ -54,6 +54,19 @@ export interface PutLoggingConfigurationCommandOutput extends PutLoggingConfigur
54
54
  * @see {@link PutLoggingConfigurationCommandOutput} for command's `response` shape.
55
55
  * @see {@link WAFClientResolvedConfig | config} for WAFClient's `config` shape.
56
56
  *
57
+ * @throws {@link WAFInternalErrorException} (server fault)
58
+ * <p>The operation failed because of a system problem, even though the request was valid. Retry your request.</p>
59
+ *
60
+ * @throws {@link WAFNonexistentItemException} (client fault)
61
+ * <p>The operation failed because the referenced object doesn't exist.</p>
62
+ *
63
+ * @throws {@link WAFServiceLinkedRoleErrorException} (client fault)
64
+ * <p>AWS WAF is not able to access the service linked role. This can be caused by a previous <code>PutLoggingConfiguration</code> request, which can lock the service linked role for about 20 seconds. Please try your request again. The service linked role can also be locked by a previous <code>DeleteServiceLinkedRole</code> request, which can lock the role for 15 minutes or more. If you recently made a <code>DeleteServiceLinkedRole</code>, wait at least 15 minutes and try the request again. If you receive this same exception again, you will have to wait additional time until the role is unlocked.</p>
65
+ *
66
+ * @throws {@link WAFStaleDataException} (client fault)
67
+ * <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>
68
+ *
69
+ *
57
70
  */
58
71
  export declare class PutLoggingConfigurationCommand extends $Command<PutLoggingConfigurationCommandInput, PutLoggingConfigurationCommandOutput, WAFClientResolvedConfig> {
59
72
  readonly input: PutLoggingConfigurationCommandInput;
@@ -69,6 +69,48 @@ export interface PutPermissionPolicyCommandOutput extends PutPermissionPolicyRes
69
69
  * @see {@link PutPermissionPolicyCommandOutput} for command's `response` shape.
70
70
  * @see {@link WAFClientResolvedConfig | config} for WAFClient's `config` shape.
71
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 WAFInvalidPermissionPolicyException} (client fault)
76
+ * <p>The operation failed because the specified policy is not in the proper format. </p>
77
+ * <p>The policy is subject to the following restrictions:</p>
78
+ * <ul>
79
+ * <li>
80
+ * <p>You can attach only one policy with each <code>PutPermissionPolicy</code> request.</p>
81
+ * </li>
82
+ * <li>
83
+ * <p>The policy must include an <code>Effect</code>, <code>Action</code> and <code>Principal</code>. </p>
84
+ * </li>
85
+ * <li>
86
+ *
87
+ * <p>
88
+ * <code>Effect</code> must specify <code>Allow</code>.</p>
89
+ * </li>
90
+ * <li>
91
+ * <p>The <code>Action</code> in the policy must be <code>waf:UpdateWebACL</code>, <code>waf-regional:UpdateWebACL</code>, <code>waf:GetRuleGroup</code> and <code>waf-regional:GetRuleGroup</code> . Any extra or wildcard actions in the policy will be rejected.</p>
92
+ * </li>
93
+ * <li>
94
+ * <p>The policy cannot include a <code>Resource</code> parameter.</p>
95
+ * </li>
96
+ * <li>
97
+ * <p>The ARN in the request must be a valid WAF RuleGroup ARN and the RuleGroup must exist in the same region.</p>
98
+ * </li>
99
+ * <li>
100
+ * <p>The user making the request must be the owner of the RuleGroup.</p>
101
+ * </li>
102
+ * <li>
103
+ * <p>Your policy must be composed using IAM Policy version 2012-10-17.</p>
104
+ * </li>
105
+ * </ul>
106
+ *
107
+ * @throws {@link WAFNonexistentItemException} (client fault)
108
+ * <p>The operation failed because the referenced object doesn't exist.</p>
109
+ *
110
+ * @throws {@link WAFStaleDataException} (client fault)
111
+ * <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>
112
+ *
113
+ *
72
114
  */
73
115
  export declare class PutPermissionPolicyCommand extends $Command<PutPermissionPolicyCommandInput, PutPermissionPolicyCommandOutput, WAFClientResolvedConfig> {
74
116
  readonly input: PutPermissionPolicyCommandInput;
@@ -38,6 +38,67 @@ export interface TagResourceCommandOutput extends TagResourceResponse, __Metadat
38
38
  * @see {@link TagResourceCommandOutput} for command's `response` shape.
39
39
  * @see {@link WAFClientResolvedConfig | config} for WAFClient's `config` shape.
40
40
  *
41
+ * @throws {@link WAFBadRequestException} (client fault)
42
+ * <p></p>
43
+ *
44
+ * @throws {@link WAFInternalErrorException} (server fault)
45
+ * <p>The operation failed because of a system problem, even though the request was valid. Retry your request.</p>
46
+ *
47
+ * @throws {@link WAFInvalidParameterException} (client fault)
48
+ * <p>The operation failed because AWS WAF didn't recognize a parameter in the request. For example:</p>
49
+ * <ul>
50
+ * <li>
51
+ * <p>You specified an invalid parameter name.</p>
52
+ * </li>
53
+ * <li>
54
+ * <p>You specified an invalid value.</p>
55
+ * </li>
56
+ * <li>
57
+ * <p>You tried to update an object (<code>ByteMatchSet</code>, <code>IPSet</code>, <code>Rule</code>, or <code>WebACL</code>)
58
+ * using an action other than <code>INSERT</code> or <code>DELETE</code>.</p>
59
+ * </li>
60
+ * <li>
61
+ * <p>You tried to create a <code>WebACL</code> with a <code>DefaultAction</code>
62
+ * <code>Type</code> other than
63
+ * <code>ALLOW</code>, <code>BLOCK</code>, or <code>COUNT</code>.</p>
64
+ * </li>
65
+ * <li>
66
+ * <p>You tried to create a <code>RateBasedRule</code> with a <code>RateKey</code> value other than <code>IP</code>.</p>
67
+ * </li>
68
+ * <li>
69
+ * <p>You tried to update a <code>WebACL</code> with a <code>WafAction</code>
70
+ * <code>Type</code> other than
71
+ * <code>ALLOW</code>, <code>BLOCK</code>, or <code>COUNT</code>.</p>
72
+ * </li>
73
+ * <li>
74
+ * <p>You tried to update a <code>ByteMatchSet</code> with a <code>FieldToMatch</code>
75
+ * <code>Type</code> other than
76
+ * HEADER, METHOD, QUERY_STRING, URI, or BODY.</p>
77
+ * </li>
78
+ * <li>
79
+ * <p>You tried to update a <code>ByteMatchSet</code> with a <code>Field</code> of <code>HEADER</code>
80
+ * but no value for <code>Data</code>.</p>
81
+ * </li>
82
+ * <li>
83
+ * <p>Your request references an ARN that is malformed, or corresponds to a resource with which a web ACL cannot be associated.</p>
84
+ * </li>
85
+ * </ul>
86
+ *
87
+ * @throws {@link WAFLimitsExceededException} (client fault)
88
+ * <p>The operation exceeds a resource limit, for example, the maximum number of <code>WebACL</code> objects that you can create
89
+ * for an AWS account. For more information, see
90
+ * <a href="https://docs.aws.amazon.com/waf/latest/developerguide/limits.html">Limits</a> in the <i>AWS WAF Developer Guide</i>.</p>
91
+ *
92
+ * @throws {@link WAFNonexistentItemException} (client fault)
93
+ * <p>The operation failed because the referenced object doesn't exist.</p>
94
+ *
95
+ * @throws {@link WAFTagOperationException} (client fault)
96
+ * <p></p>
97
+ *
98
+ * @throws {@link WAFTagOperationInternalErrorException} (server fault)
99
+ * <p></p>
100
+ *
101
+ *
41
102
  */
42
103
  export declare class TagResourceCommand extends $Command<TagResourceCommandInput, TagResourceCommandOutput, WAFClientResolvedConfig> {
43
104
  readonly input: TagResourceCommandInput;
@@ -37,6 +37,62 @@ export interface UntagResourceCommandOutput extends UntagResourceResponse, __Met
37
37
  * @see {@link UntagResourceCommandOutput} for command's `response` shape.
38
38
  * @see {@link WAFClientResolvedConfig | config} for WAFClient's `config` shape.
39
39
  *
40
+ * @throws {@link WAFBadRequestException} (client fault)
41
+ * <p></p>
42
+ *
43
+ * @throws {@link WAFInternalErrorException} (server fault)
44
+ * <p>The operation failed because of a system problem, even though the request was valid. Retry your request.</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 WAFTagOperationException} (client fault)
90
+ * <p></p>
91
+ *
92
+ * @throws {@link WAFTagOperationInternalErrorException} (server fault)
93
+ * <p></p>
94
+ *
95
+ *
40
96
  */
41
97
  export declare class UntagResourceCommand extends $Command<UntagResourceCommandInput, UntagResourceCommandOutput, WAFClientResolvedConfig> {
42
98
  readonly input: UntagResourceCommandInput;
@@ -75,6 +75,105 @@ export interface UpdateByteMatchSetCommandOutput extends UpdateByteMatchSetRespo
75
75
  * @see {@link UpdateByteMatchSetCommandOutput} for command's `response` shape.
76
76
  * @see {@link WAFClientResolvedConfig | config} for WAFClient's `config` shape.
77
77
  *
78
+ * @throws {@link WAFInternalErrorException} (server fault)
79
+ * <p>The operation failed because of a system problem, even though the request was valid. Retry your request.</p>
80
+ *
81
+ * @throws {@link WAFInvalidAccountException} (client fault)
82
+ * <p>The operation failed because you tried to create, update, or delete an object by using an invalid account identifier.</p>
83
+ *
84
+ * @throws {@link WAFInvalidOperationException} (client fault)
85
+ * <p>The operation failed because there was nothing to do. For example:</p>
86
+ * <ul>
87
+ * <li>
88
+ * <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>
89
+ * </li>
90
+ * <li>
91
+ * <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>
92
+ * </li>
93
+ * <li>
94
+ * <p>You tried to remove a <code>ByteMatchTuple</code> from a <code>ByteMatchSet</code>, but the <code>ByteMatchTuple</code>
95
+ * isn't in the specified <code>WebACL</code>.</p>
96
+ * </li>
97
+ * <li>
98
+ * <p>You tried to add a <code>Rule</code> to a <code>WebACL</code>, but the <code>Rule</code> already exists in the
99
+ * specified <code>WebACL</code>.</p>
100
+ * </li>
101
+ * <li>
102
+ * <p>You tried to add a <code>ByteMatchTuple</code> to a <code>ByteMatchSet</code>, but the <code>ByteMatchTuple</code>
103
+ * already exists in the specified <code>WebACL</code>.</p>
104
+ * </li>
105
+ * </ul>
106
+ *
107
+ * @throws {@link WAFInvalidParameterException} (client fault)
108
+ * <p>The operation failed because AWS WAF didn't recognize a parameter in the request. For example:</p>
109
+ * <ul>
110
+ * <li>
111
+ * <p>You specified an invalid parameter name.</p>
112
+ * </li>
113
+ * <li>
114
+ * <p>You specified an invalid value.</p>
115
+ * </li>
116
+ * <li>
117
+ * <p>You tried to update an object (<code>ByteMatchSet</code>, <code>IPSet</code>, <code>Rule</code>, or <code>WebACL</code>)
118
+ * using an action other than <code>INSERT</code> or <code>DELETE</code>.</p>
119
+ * </li>
120
+ * <li>
121
+ * <p>You tried to create a <code>WebACL</code> with a <code>DefaultAction</code>
122
+ * <code>Type</code> other than
123
+ * <code>ALLOW</code>, <code>BLOCK</code>, or <code>COUNT</code>.</p>
124
+ * </li>
125
+ * <li>
126
+ * <p>You tried to create a <code>RateBasedRule</code> with a <code>RateKey</code> value other than <code>IP</code>.</p>
127
+ * </li>
128
+ * <li>
129
+ * <p>You tried to update a <code>WebACL</code> with a <code>WafAction</code>
130
+ * <code>Type</code> other than
131
+ * <code>ALLOW</code>, <code>BLOCK</code>, or <code>COUNT</code>.</p>
132
+ * </li>
133
+ * <li>
134
+ * <p>You tried to update a <code>ByteMatchSet</code> with a <code>FieldToMatch</code>
135
+ * <code>Type</code> other than
136
+ * HEADER, METHOD, QUERY_STRING, URI, or BODY.</p>
137
+ * </li>
138
+ * <li>
139
+ * <p>You tried to update a <code>ByteMatchSet</code> with a <code>Field</code> of <code>HEADER</code>
140
+ * but no value for <code>Data</code>.</p>
141
+ * </li>
142
+ * <li>
143
+ * <p>Your request references an ARN that is malformed, or corresponds to a resource with which a web ACL cannot be associated.</p>
144
+ * </li>
145
+ * </ul>
146
+ *
147
+ * @throws {@link WAFLimitsExceededException} (client fault)
148
+ * <p>The operation exceeds a resource limit, for example, the maximum number of <code>WebACL</code> objects that you can create
149
+ * for an AWS account. For more information, see
150
+ * <a href="https://docs.aws.amazon.com/waf/latest/developerguide/limits.html">Limits</a> in the <i>AWS WAF Developer Guide</i>.</p>
151
+ *
152
+ * @throws {@link WAFNonexistentContainerException} (client fault)
153
+ * <p>The operation failed because you tried to add an object to or delete an object from another object that doesn't exist. For example:</p>
154
+ * <ul>
155
+ * <li>
156
+ * <p>You tried to add a <code>Rule</code> to or delete a <code>Rule</code> from a <code>WebACL</code> that doesn't exist.</p>
157
+ * </li>
158
+ * <li>
159
+ * <p>You tried to add a <code>ByteMatchSet</code> to or delete a <code>ByteMatchSet</code> from a <code>Rule</code> that doesn't exist.</p>
160
+ * </li>
161
+ * <li>
162
+ * <p>You tried to add an IP address to or delete an IP address from an <code>IPSet</code> that doesn't exist.</p>
163
+ * </li>
164
+ * <li>
165
+ * <p>You tried to add a <code>ByteMatchTuple</code> to or delete a <code>ByteMatchTuple</code> from a <code>ByteMatchSet</code>
166
+ * that doesn't exist.</p>
167
+ * </li>
168
+ * </ul>
169
+ *
170
+ * @throws {@link WAFNonexistentItemException} (client fault)
171
+ * <p>The operation failed because the referenced object doesn't exist.</p>
172
+ *
173
+ * @throws {@link WAFStaleDataException} (client fault)
174
+ * <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>
175
+ *
176
+ *
78
177
  * @example To update a byte match set
79
178
  * ```javascript
80
179
  * // The following example deletes a ByteMatchTuple object (filters) in an byte match set with the ID exampleIDs3t-46da-4fdb-b8d5-abc321j569j5.