@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
@@ -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,34 @@ 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
+ *
47
+ * @example To list rules
48
+ * ```javascript
49
+ * // The following example returns an array of up to 100 rules.
50
+ * const input = {
51
+ * "Limit": 100
52
+ * };
53
+ * const command = new ListRulesCommand(input);
54
+ * const response = await client.send(command);
55
+ * /* response ==
56
+ * {
57
+ * "Rules": [
58
+ * {
59
+ * "Name": "WAFByteHeaderRule",
60
+ * "RuleId": "WAFRule-1-Example"
61
+ * }
62
+ * ]
63
+ * }
64
+ * *\/
65
+ * // example id: listrules-1475258406433
66
+ * ```
67
+ *
40
68
  */
41
69
  export declare class ListRulesCommand extends $Command<ListRulesCommandInput, ListRulesCommandOutput, WAFClientResolvedConfig> {
42
70
  readonly input: ListRulesCommandInput;
@@ -37,6 +37,34 @@ 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
+ *
47
+ * @example To list a size constraint sets
48
+ * ```javascript
49
+ * // The following example returns an array of up to 100 size contraint match sets.
50
+ * const input = {
51
+ * "Limit": 100
52
+ * };
53
+ * const command = new ListSizeConstraintSetsCommand(input);
54
+ * const response = await client.send(command);
55
+ * /* response ==
56
+ * {
57
+ * "SizeConstraintSets": [
58
+ * {
59
+ * "Name": "MySampleSizeConstraintSet",
60
+ * "SizeConstraintSetId": "example1ds3t-46da-4fdb-b8d5-abc321j569j5"
61
+ * }
62
+ * ]
63
+ * }
64
+ * *\/
65
+ * // example id: listsizeconstraintsets-1474300067597
66
+ * ```
67
+ *
40
68
  */
41
69
  export declare class ListSizeConstraintSetsCommand extends $Command<ListSizeConstraintSetsCommandInput, ListSizeConstraintSetsCommandOutput, WAFClientResolvedConfig> {
42
70
  readonly input: ListSizeConstraintSetsCommandInput;
@@ -37,6 +37,34 @@ 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
+ *
47
+ * @example To list SQL injection match sets
48
+ * ```javascript
49
+ * // The following example returns an array of up to 100 SQL injection match sets.
50
+ * const input = {
51
+ * "Limit": 100
52
+ * };
53
+ * const command = new ListSqlInjectionMatchSetsCommand(input);
54
+ * const response = await client.send(command);
55
+ * /* response ==
56
+ * {
57
+ * "SqlInjectionMatchSets": [
58
+ * {
59
+ * "Name": "MySQLInjectionMatchSet",
60
+ * "SqlInjectionMatchSetId": "example1ds3t-46da-4fdb-b8d5-abc321j569j5"
61
+ * }
62
+ * ]
63
+ * }
64
+ * *\/
65
+ * // example id: listsqlinjectionmatchset-1474493560103
66
+ * ```
67
+ *
40
68
  */
41
69
  export declare class ListSqlInjectionMatchSetsCommand extends $Command<ListSqlInjectionMatchSetsCommandInput, ListSqlInjectionMatchSetsCommandOutput, WAFClientResolvedConfig> {
42
70
  readonly input: ListSqlInjectionMatchSetsCommandInput;
@@ -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,34 @@ 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
+ *
47
+ * @example To list Web ACLs
48
+ * ```javascript
49
+ * // The following example returns an array of up to 100 web ACLs.
50
+ * const input = {
51
+ * "Limit": 100
52
+ * };
53
+ * const command = new ListWebACLsCommand(input);
54
+ * const response = await client.send(command);
55
+ * /* response ==
56
+ * {
57
+ * "WebACLs": [
58
+ * {
59
+ * "Name": "WebACLexample",
60
+ * "WebACLId": "webacl-1472061481310"
61
+ * }
62
+ * ]
63
+ * }
64
+ * *\/
65
+ * // example id: listwebacls-1475258732691
66
+ * ```
67
+ *
40
68
  */
41
69
  export declare class ListWebACLsCommand extends $Command<ListWebACLsCommandInput, ListWebACLsCommandOutput, WAFClientResolvedConfig> {
42
70
  readonly input: ListWebACLsCommandInput;
@@ -37,6 +37,34 @@ 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
+ *
47
+ * @example To list XSS match sets
48
+ * ```javascript
49
+ * // The following example returns an array of up to 100 XSS match sets.
50
+ * const input = {
51
+ * "Limit": 100
52
+ * };
53
+ * const command = new ListXssMatchSetsCommand(input);
54
+ * const response = await client.send(command);
55
+ * /* response ==
56
+ * {
57
+ * "XssMatchSets": [
58
+ * {
59
+ * "Name": "MySampleXssMatchSet",
60
+ * "XssMatchSetId": "example1ds3t-46da-4fdb-b8d5-abc321j569j5"
61
+ * }
62
+ * ]
63
+ * }
64
+ * *\/
65
+ * // example id: listxssmatchsets-1474561481168
66
+ * ```
67
+ *
40
68
  */
41
69
  export declare class ListXssMatchSetsCommand extends $Command<ListXssMatchSetsCommandInput, ListXssMatchSetsCommandOutput, WAFClientResolvedConfig> {
42
70
  readonly input: ListXssMatchSetsCommandInput;
@@ -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;