@aws-sdk/client-waf-regional 3.288.0 → 3.290.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (82) hide show
  1. package/dist-types/commands/AssociateWebACLCommand.d.ts +54 -0
  2. package/dist-types/commands/CreateByteMatchSetCommand.d.ts +58 -0
  3. package/dist-types/commands/CreateGeoMatchSetCommand.d.ts +58 -0
  4. package/dist-types/commands/CreateIPSetCommand.d.ts +85 -0
  5. package/dist-types/commands/CreateRateBasedRuleCommand.d.ts +64 -0
  6. package/dist-types/commands/CreateRegexMatchSetCommand.d.ts +15 -0
  7. package/dist-types/commands/CreateRegexPatternSetCommand.d.ts +15 -0
  8. package/dist-types/commands/CreateRuleCommand.d.ts +94 -0
  9. package/dist-types/commands/CreateRuleGroupCommand.d.ts +24 -0
  10. package/dist-types/commands/CreateSizeConstraintSetCommand.d.ts +89 -0
  11. package/dist-types/commands/CreateSqlInjectionMatchSetCommand.d.ts +87 -0
  12. package/dist-types/commands/CreateWebACLCommand.d.ts +105 -0
  13. package/dist-types/commands/CreateWebACLMigrationStackCommand.d.ts +103 -0
  14. package/dist-types/commands/CreateXssMatchSetCommand.d.ts +87 -0
  15. package/dist-types/commands/DeleteByteMatchSetCommand.d.ts +59 -0
  16. package/dist-types/commands/DeleteGeoMatchSetCommand.d.ts +42 -0
  17. package/dist-types/commands/DeleteIPSetCommand.d.ts +59 -0
  18. package/dist-types/commands/DeleteLoggingConfigurationCommand.d.ts +10 -0
  19. package/dist-types/commands/DeletePermissionPolicyCommand.d.ts +10 -0
  20. package/dist-types/commands/DeleteRateBasedRuleCommand.d.ts +48 -0
  21. package/dist-types/commands/DeleteRegexMatchSetCommand.d.ts +42 -0
  22. package/dist-types/commands/DeleteRegexPatternSetCommand.d.ts +42 -0
  23. package/dist-types/commands/DeleteRuleCommand.d.ts +65 -0
  24. package/dist-types/commands/DeleteRuleGroupCommand.d.ts +68 -0
  25. package/dist-types/commands/DeleteSizeConstraintSetCommand.d.ts +59 -0
  26. package/dist-types/commands/DeleteSqlInjectionMatchSetCommand.d.ts +59 -0
  27. package/dist-types/commands/DeleteWebACLCommand.d.ts +65 -0
  28. package/dist-types/commands/DeleteXssMatchSetCommand.d.ts +59 -0
  29. package/dist-types/commands/DisassociateWebACLCommand.d.ts +50 -0
  30. package/dist-types/commands/GetByteMatchSetCommand.d.ts +40 -0
  31. package/dist-types/commands/GetChangeTokenCommand.d.ts +18 -0
  32. package/dist-types/commands/GetChangeTokenStatusCommand.d.ts +23 -0
  33. package/dist-types/commands/GetGeoMatchSetCommand.d.ts +10 -0
  34. package/dist-types/commands/GetIPSetCommand.d.ts +35 -0
  35. package/dist-types/commands/GetLoggingConfigurationCommand.d.ts +7 -0
  36. package/dist-types/commands/GetPermissionPolicyCommand.d.ts +7 -0
  37. package/dist-types/commands/GetRateBasedRuleCommand.d.ts +10 -0
  38. package/dist-types/commands/GetRateBasedRuleManagedKeysCommand.d.ts +50 -0
  39. package/dist-types/commands/GetRegexMatchSetCommand.d.ts +10 -0
  40. package/dist-types/commands/GetRegexPatternSetCommand.d.ts +10 -0
  41. package/dist-types/commands/GetRuleCommand.d.ts +37 -0
  42. package/dist-types/commands/GetRuleGroupCommand.d.ts +7 -0
  43. package/dist-types/commands/GetSampledRequestsCommand.d.ts +52 -0
  44. package/dist-types/commands/GetSizeConstraintSetCommand.d.ts +39 -0
  45. package/dist-types/commands/GetSqlInjectionMatchSetCommand.d.ts +37 -0
  46. package/dist-types/commands/GetWebACLCommand.d.ts +42 -0
  47. package/dist-types/commands/GetWebACLForResourceCommand.d.ts +54 -0
  48. package/dist-types/commands/GetXssMatchSetCommand.d.ts +37 -0
  49. package/dist-types/commands/ListActivatedRulesInRuleGroupCommand.d.ts +47 -0
  50. package/dist-types/commands/ListByteMatchSetsCommand.d.ts +7 -0
  51. package/dist-types/commands/ListGeoMatchSetsCommand.d.ts +7 -0
  52. package/dist-types/commands/ListIPSetsCommand.d.ts +28 -0
  53. package/dist-types/commands/ListLoggingConfigurationsCommand.d.ts +47 -0
  54. package/dist-types/commands/ListRateBasedRulesCommand.d.ts +7 -0
  55. package/dist-types/commands/ListRegexMatchSetsCommand.d.ts +7 -0
  56. package/dist-types/commands/ListRegexPatternSetsCommand.d.ts +7 -0
  57. package/dist-types/commands/ListResourcesForWebACLCommand.d.ts +50 -0
  58. package/dist-types/commands/ListRuleGroupsCommand.d.ts +4 -0
  59. package/dist-types/commands/ListRulesCommand.d.ts +28 -0
  60. package/dist-types/commands/ListSizeConstraintSetsCommand.d.ts +28 -0
  61. package/dist-types/commands/ListSqlInjectionMatchSetsCommand.d.ts +28 -0
  62. package/dist-types/commands/ListSubscribedRuleGroupsCommand.d.ts +7 -0
  63. package/dist-types/commands/ListTagsForResourceCommand.d.ts +56 -0
  64. package/dist-types/commands/ListWebACLsCommand.d.ts +28 -0
  65. package/dist-types/commands/ListXssMatchSetsCommand.d.ts +28 -0
  66. package/dist-types/commands/PutLoggingConfigurationCommand.d.ts +13 -0
  67. package/dist-types/commands/PutPermissionPolicyCommand.d.ts +42 -0
  68. package/dist-types/commands/TagResourceCommand.d.ts +61 -0
  69. package/dist-types/commands/UntagResourceCommand.d.ts +56 -0
  70. package/dist-types/commands/UpdateByteMatchSetCommand.d.ts +130 -0
  71. package/dist-types/commands/UpdateGeoMatchSetCommand.d.ts +110 -0
  72. package/dist-types/commands/UpdateIPSetCommand.d.ts +136 -0
  73. package/dist-types/commands/UpdateRateBasedRuleCommand.d.ts +110 -0
  74. package/dist-types/commands/UpdateRegexMatchSetCommand.d.ts +62 -0
  75. package/dist-types/commands/UpdateRegexPatternSetCommand.d.ts +62 -0
  76. package/dist-types/commands/UpdateRuleCommand.d.ts +137 -0
  77. package/dist-types/commands/UpdateRuleGroupCommand.d.ts +96 -0
  78. package/dist-types/commands/UpdateSizeConstraintSetCommand.d.ts +140 -0
  79. package/dist-types/commands/UpdateSqlInjectionMatchSetCommand.d.ts +127 -0
  80. package/dist-types/commands/UpdateWebACLCommand.d.ts +145 -0
  81. package/dist-types/commands/UpdateXssMatchSetCommand.d.ts +127 -0
  82. package/package.json +29 -29
@@ -37,6 +37,43 @@ export interface GetXssMatchSetCommandOutput extends GetXssMatchSetResponse, __M
37
37
  * @see {@link GetXssMatchSetCommandOutput} for command's `response` shape.
38
38
  * @see {@link WAFRegionalClientResolvedConfig | config} for WAFRegionalClient's `config` shape.
39
39
  *
40
+ * @throws {@link WAFInternalErrorException} (server fault)
41
+ * <p>The operation failed because of a system problem, even though the request was valid. Retry your request.</p>
42
+ *
43
+ * @throws {@link WAFInvalidAccountException} (client fault)
44
+ * <p>The operation failed because you tried to create, update, or delete an object by using an invalid account identifier.</p>
45
+ *
46
+ * @throws {@link WAFNonexistentItemException} (client fault)
47
+ * <p>The operation failed because the referenced object doesn't exist.</p>
48
+ *
49
+ *
50
+ * @example To get an XSS match set
51
+ * ```javascript
52
+ * // The following example returns the details of an XSS match set with the ID example1ds3t-46da-4fdb-b8d5-abc321j569j5.
53
+ * const input = {
54
+ * "XssMatchSetId": "example1ds3t-46da-4fdb-b8d5-abc321j569j5"
55
+ * };
56
+ * const command = new GetXssMatchSetCommand(input);
57
+ * const response = await client.send(command);
58
+ * /* response ==
59
+ * {
60
+ * "XssMatchSet": {
61
+ * "Name": "MySampleXssMatchSet",
62
+ * "XssMatchSetId": "example1ds3t-46da-4fdb-b8d5-abc321j569j5",
63
+ * "XssMatchTuples": [
64
+ * {
65
+ * "FieldToMatch": {
66
+ * "Type": "QUERY_STRING"
67
+ * },
68
+ * "TextTransformation": "URL_DECODE"
69
+ * }
70
+ * ]
71
+ * }
72
+ * }
73
+ * *\/
74
+ * // example id: getxssmatchset-1475187879017
75
+ * ```
76
+ *
40
77
  */
41
78
  export declare class GetXssMatchSetCommand extends $Command<GetXssMatchSetCommandInput, GetXssMatchSetCommandOutput, WAFRegionalClientResolvedConfig> {
42
79
  readonly input: GetXssMatchSetCommandInput;
@@ -37,6 +37,53 @@ export interface ListActivatedRulesInRuleGroupCommandOutput extends ListActivate
37
37
  * @see {@link ListActivatedRulesInRuleGroupCommandOutput} for command's `response` shape.
38
38
  * @see {@link WAFRegionalClientResolvedConfig | config} for WAFRegionalClient's `config` shape.
39
39
  *
40
+ * @throws {@link WAFInternalErrorException} (server fault)
41
+ * <p>The operation failed because of a system problem, even though the request was valid. Retry your request.</p>
42
+ *
43
+ * @throws {@link 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 ListActivatedRulesInRuleGroupCommand extends $Command<ListActivatedRulesInRuleGroupCommandInput, ListActivatedRulesInRuleGroupCommandOutput, WAFRegionalClientResolvedConfig> {
42
89
  readonly input: ListActivatedRulesInRuleGroupCommandInput;
@@ -37,6 +37,13 @@ export interface ListByteMatchSetsCommandOutput extends ListByteMatchSetsRespons
37
37
  * @see {@link ListByteMatchSetsCommandOutput} for command's `response` shape.
38
38
  * @see {@link WAFRegionalClientResolvedConfig | config} for WAFRegionalClient's `config` shape.
39
39
  *
40
+ * @throws {@link WAFInternalErrorException} (server fault)
41
+ * <p>The operation failed because of a system problem, even though the request was valid. Retry your request.</p>
42
+ *
43
+ * @throws {@link WAFInvalidAccountException} (client fault)
44
+ * <p>The operation failed because you tried to create, update, or delete an object by using an invalid account identifier.</p>
45
+ *
46
+ *
40
47
  */
41
48
  export declare class ListByteMatchSetsCommand extends $Command<ListByteMatchSetsCommandInput, ListByteMatchSetsCommandOutput, WAFRegionalClientResolvedConfig> {
42
49
  readonly input: ListByteMatchSetsCommandInput;
@@ -37,6 +37,13 @@ export interface ListGeoMatchSetsCommandOutput extends ListGeoMatchSetsResponse,
37
37
  * @see {@link ListGeoMatchSetsCommandOutput} for command's `response` shape.
38
38
  * @see {@link WAFRegionalClientResolvedConfig | config} for WAFRegionalClient's `config` shape.
39
39
  *
40
+ * @throws {@link WAFInternalErrorException} (server fault)
41
+ * <p>The operation failed because of a system problem, even though the request was valid. Retry your request.</p>
42
+ *
43
+ * @throws {@link WAFInvalidAccountException} (client fault)
44
+ * <p>The operation failed because you tried to create, update, or delete an object by using an invalid account identifier.</p>
45
+ *
46
+ *
40
47
  */
41
48
  export declare class ListGeoMatchSetsCommand extends $Command<ListGeoMatchSetsCommandInput, ListGeoMatchSetsCommandOutput, WAFRegionalClientResolvedConfig> {
42
49
  readonly input: ListGeoMatchSetsCommandInput;
@@ -37,6 +37,34 @@ export interface ListIPSetsCommandOutput extends ListIPSetsResponse, __MetadataB
37
37
  * @see {@link ListIPSetsCommandOutput} for command's `response` shape.
38
38
  * @see {@link WAFRegionalClientResolvedConfig | config} for WAFRegionalClient's `config` shape.
39
39
  *
40
+ * @throws {@link WAFInternalErrorException} (server fault)
41
+ * <p>The operation failed because of a system problem, even though the request was valid. Retry your request.</p>
42
+ *
43
+ * @throws {@link WAFInvalidAccountException} (client fault)
44
+ * <p>The operation failed because you tried to create, update, or delete an object by using an invalid account identifier.</p>
45
+ *
46
+ *
47
+ * @example To list IP sets
48
+ * ```javascript
49
+ * // The following example returns an array of up to 100 IP match sets.
50
+ * const input = {
51
+ * "Limit": 100
52
+ * };
53
+ * const command = new ListIPSetsCommand(input);
54
+ * const response = await client.send(command);
55
+ * /* response ==
56
+ * {
57
+ * "IPSets": [
58
+ * {
59
+ * "IPSetId": "abcd12f2-46da-4fdb-b8d5-fbd4c466928f",
60
+ * "Name": "MyIPSetFriendlyName"
61
+ * }
62
+ * ]
63
+ * }
64
+ * *\/
65
+ * // example id: listipsets-1472235676229
66
+ * ```
67
+ *
40
68
  */
41
69
  export declare class ListIPSetsCommand extends $Command<ListIPSetsCommandInput, ListIPSetsCommandOutput, WAFRegionalClientResolvedConfig> {
42
70
  readonly input: ListIPSetsCommandInput;
@@ -37,6 +37,53 @@ export interface ListLoggingConfigurationsCommandOutput extends ListLoggingConfi
37
37
  * @see {@link ListLoggingConfigurationsCommandOutput} for command's `response` shape.
38
38
  * @see {@link WAFRegionalClientResolvedConfig | config} for WAFRegionalClient's `config` shape.
39
39
  *
40
+ * @throws {@link WAFInternalErrorException} (server fault)
41
+ * <p>The operation failed because of a system problem, even though the request was valid. Retry your request.</p>
42
+ *
43
+ * @throws {@link 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, WAFRegionalClientResolvedConfig> {
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 WAFRegionalClientResolvedConfig | config} for WAFRegionalClient's `config` shape.
39
39
  *
40
+ * @throws {@link WAFInternalErrorException} (server fault)
41
+ * <p>The operation failed because of a system problem, even though the request was valid. Retry your request.</p>
42
+ *
43
+ * @throws {@link WAFInvalidAccountException} (client fault)
44
+ * <p>The operation failed because you tried to create, update, or delete an object by using an invalid account identifier.</p>
45
+ *
46
+ *
40
47
  */
41
48
  export declare class ListRateBasedRulesCommand extends $Command<ListRateBasedRulesCommandInput, ListRateBasedRulesCommandOutput, WAFRegionalClientResolvedConfig> {
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 WAFRegionalClientResolvedConfig | config} for WAFRegionalClient's `config` shape.
39
39
  *
40
+ * @throws {@link WAFInternalErrorException} (server fault)
41
+ * <p>The operation failed because of a system problem, even though the request was valid. Retry your request.</p>
42
+ *
43
+ * @throws {@link WAFInvalidAccountException} (client fault)
44
+ * <p>The operation failed because you tried to create, update, or delete an object by using an invalid account identifier.</p>
45
+ *
46
+ *
40
47
  */
41
48
  export declare class ListRegexMatchSetsCommand extends $Command<ListRegexMatchSetsCommandInput, ListRegexMatchSetsCommandOutput, WAFRegionalClientResolvedConfig> {
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 WAFRegionalClientResolvedConfig | config} for WAFRegionalClient's `config` shape.
39
39
  *
40
+ * @throws {@link WAFInternalErrorException} (server fault)
41
+ * <p>The operation failed because of a system problem, even though the request was valid. Retry your request.</p>
42
+ *
43
+ * @throws {@link WAFInvalidAccountException} (client fault)
44
+ * <p>The operation failed because you tried to create, update, or delete an object by using an invalid account identifier.</p>
45
+ *
46
+ *
40
47
  */
41
48
  export declare class ListRegexPatternSetsCommand extends $Command<ListRegexPatternSetsCommandInput, ListRegexPatternSetsCommandOutput, WAFRegionalClientResolvedConfig> {
42
49
  readonly input: ListRegexPatternSetsCommandInput;
@@ -37,6 +37,56 @@ export interface ListResourcesForWebACLCommandOutput extends ListResourcesForWeb
37
37
  * @see {@link ListResourcesForWebACLCommandOutput} for command's `response` shape.
38
38
  * @see {@link WAFRegionalClientResolvedConfig | config} for WAFRegionalClient's `config` shape.
39
39
  *
40
+ * @throws {@link WAFInternalErrorException} (server fault)
41
+ * <p>The operation failed because of a system problem, even though the request was valid. Retry your request.</p>
42
+ *
43
+ * @throws {@link WAFInvalidAccountException} (client fault)
44
+ * <p>The operation failed because you tried to create, update, or delete an object by using an invalid account identifier.</p>
45
+ *
46
+ * @throws {@link WAFInvalidParameterException} (client fault)
47
+ * <p>The operation failed because AWS WAF didn't recognize a parameter in the request. For example:</p>
48
+ * <ul>
49
+ * <li>
50
+ * <p>You specified an invalid parameter name.</p>
51
+ * </li>
52
+ * <li>
53
+ * <p>You specified an invalid value.</p>
54
+ * </li>
55
+ * <li>
56
+ * <p>You tried to update an object (<code>ByteMatchSet</code>, <code>IPSet</code>, <code>Rule</code>, or <code>WebACL</code>)
57
+ * using an action other than <code>INSERT</code> or <code>DELETE</code>.</p>
58
+ * </li>
59
+ * <li>
60
+ * <p>You tried to create a <code>WebACL</code> with a <code>DefaultAction</code>
61
+ * <code>Type</code> other than
62
+ * <code>ALLOW</code>, <code>BLOCK</code>, or <code>COUNT</code>.</p>
63
+ * </li>
64
+ * <li>
65
+ * <p>You tried to create a <code>RateBasedRule</code> with a <code>RateKey</code> value other than <code>IP</code>.</p>
66
+ * </li>
67
+ * <li>
68
+ * <p>You tried to update a <code>WebACL</code> with a <code>WafAction</code>
69
+ * <code>Type</code> other than
70
+ * <code>ALLOW</code>, <code>BLOCK</code>, or <code>COUNT</code>.</p>
71
+ * </li>
72
+ * <li>
73
+ * <p>You tried to update a <code>ByteMatchSet</code> with a <code>FieldToMatch</code>
74
+ * <code>Type</code> other than
75
+ * HEADER, METHOD, QUERY_STRING, URI, or BODY.</p>
76
+ * </li>
77
+ * <li>
78
+ * <p>You tried to update a <code>ByteMatchSet</code> with a <code>Field</code> of <code>HEADER</code>
79
+ * but no value for <code>Data</code>.</p>
80
+ * </li>
81
+ * <li>
82
+ * <p>Your request references an ARN that is malformed, or corresponds to a resource with which a web ACL cannot be associated.</p>
83
+ * </li>
84
+ * </ul>
85
+ *
86
+ * @throws {@link WAFNonexistentItemException} (client fault)
87
+ * <p>The operation failed because the referenced object doesn't exist.</p>
88
+ *
89
+ *
40
90
  */
41
91
  export declare class ListResourcesForWebACLCommand extends $Command<ListResourcesForWebACLCommandInput, ListResourcesForWebACLCommandOutput, WAFRegionalClientResolvedConfig> {
42
92
  readonly input: ListResourcesForWebACLCommandInput;
@@ -37,6 +37,10 @@ export interface ListRuleGroupsCommandOutput extends ListRuleGroupsResponse, __M
37
37
  * @see {@link ListRuleGroupsCommandOutput} for command's `response` shape.
38
38
  * @see {@link WAFRegionalClientResolvedConfig | config} for WAFRegionalClient's `config` shape.
39
39
  *
40
+ * @throws {@link WAFInternalErrorException} (server fault)
41
+ * <p>The operation failed because of a system problem, even though the request was valid. Retry your request.</p>
42
+ *
43
+ *
40
44
  */
41
45
  export declare class ListRuleGroupsCommand extends $Command<ListRuleGroupsCommandInput, ListRuleGroupsCommandOutput, WAFRegionalClientResolvedConfig> {
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 WAFRegionalClientResolvedConfig | config} for WAFRegionalClient's `config` shape.
39
39
  *
40
+ * @throws {@link WAFInternalErrorException} (server fault)
41
+ * <p>The operation failed because of a system problem, even though the request was valid. Retry your request.</p>
42
+ *
43
+ * @throws {@link WAFInvalidAccountException} (client fault)
44
+ * <p>The operation failed because you tried to create, update, or delete an object by using an invalid account identifier.</p>
45
+ *
46
+ *
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, WAFRegionalClientResolvedConfig> {
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 WAFRegionalClientResolvedConfig | config} for WAFRegionalClient's `config` shape.
39
39
  *
40
+ * @throws {@link WAFInternalErrorException} (server fault)
41
+ * <p>The operation failed because of a system problem, even though the request was valid. Retry your request.</p>
42
+ *
43
+ * @throws {@link WAFInvalidAccountException} (client fault)
44
+ * <p>The operation failed because you tried to create, update, or delete an object by using an invalid account identifier.</p>
45
+ *
46
+ *
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, WAFRegionalClientResolvedConfig> {
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 WAFRegionalClientResolvedConfig | config} for WAFRegionalClient's `config` shape.
39
39
  *
40
+ * @throws {@link WAFInternalErrorException} (server fault)
41
+ * <p>The operation failed because of a system problem, even though the request was valid. Retry your request.</p>
42
+ *
43
+ * @throws {@link WAFInvalidAccountException} (client fault)
44
+ * <p>The operation failed because you tried to create, update, or delete an object by using an invalid account identifier.</p>
45
+ *
46
+ *
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, WAFRegionalClientResolvedConfig> {
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 WAFRegionalClientResolvedConfig | config} for WAFRegionalClient's `config` shape.
39
39
  *
40
+ * @throws {@link WAFInternalErrorException} (server fault)
41
+ * <p>The operation failed because of a system problem, even though the request was valid. Retry your request.</p>
42
+ *
43
+ * @throws {@link 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, WAFRegionalClientResolvedConfig> {
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 WAFRegionalClientResolvedConfig | config} for WAFRegionalClient'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, WAFRegionalClientResolvedConfig> {
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 WAFRegionalClientResolvedConfig | config} for WAFRegionalClient's `config` shape.
39
39
  *
40
+ * @throws {@link WAFInternalErrorException} (server fault)
41
+ * <p>The operation failed because of a system problem, even though the request was valid. Retry your request.</p>
42
+ *
43
+ * @throws {@link WAFInvalidAccountException} (client fault)
44
+ * <p>The operation failed because you tried to create, update, or delete an object by using an invalid account identifier.</p>
45
+ *
46
+ *
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, WAFRegionalClientResolvedConfig> {
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 WAFRegionalClientResolvedConfig | config} for WAFRegionalClient's `config` shape.
39
39
  *
40
+ * @throws {@link WAFInternalErrorException} (server fault)
41
+ * <p>The operation failed because of a system problem, even though the request was valid. Retry your request.</p>
42
+ *
43
+ * @throws {@link WAFInvalidAccountException} (client fault)
44
+ * <p>The operation failed because you tried to create, update, or delete an object by using an invalid account identifier.</p>
45
+ *
46
+ *
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, WAFRegionalClientResolvedConfig> {
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 WAFRegionalClientResolvedConfig | config} for WAFRegionalClient'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, WAFRegionalClientResolvedConfig> {
59
72
  readonly input: PutLoggingConfigurationCommandInput;