@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
@@ -56,6 +56,54 @@ export interface DeleteRateBasedRuleCommandOutput extends DeleteRateBasedRuleRes
56
56
  * @see {@link DeleteRateBasedRuleCommandOutput} for command's `response` shape.
57
57
  * @see {@link WAFClientResolvedConfig | config} for WAFClient's `config` shape.
58
58
  *
59
+ * @throws {@link WAFInternalErrorException} (server fault)
60
+ * <p>The operation failed because of a system problem, even though the request was valid. Retry your request.</p>
61
+ *
62
+ * @throws {@link WAFInvalidAccountException} (client fault)
63
+ * <p>The operation failed because you tried to create, update, or delete an object by using an invalid account identifier.</p>
64
+ *
65
+ * @throws {@link WAFNonEmptyEntityException} (client fault)
66
+ * <p>The operation failed because you tried to delete an object that isn't empty. For example:</p>
67
+ * <ul>
68
+ * <li>
69
+ * <p>You tried to delete a <code>WebACL</code> that still contains one or more <code>Rule</code> objects.</p>
70
+ * </li>
71
+ * <li>
72
+ * <p>You tried to delete a <code>Rule</code> that still contains one or more <code>ByteMatchSet</code> objects
73
+ * or other predicates.</p>
74
+ * </li>
75
+ * <li>
76
+ * <p>You tried to delete a <code>ByteMatchSet</code> that contains one or more <code>ByteMatchTuple</code> objects.</p>
77
+ * </li>
78
+ * <li>
79
+ * <p>You tried to delete an <code>IPSet</code> that references one or more IP addresses.</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
+ * @throws {@link WAFReferencedItemException} (client fault)
87
+ * <p>The operation failed because you tried to delete an object that is still in use. For example:</p>
88
+ * <ul>
89
+ * <li>
90
+ * <p>You tried to delete a <code>ByteMatchSet</code> that is still referenced by a <code>Rule</code>.</p>
91
+ * </li>
92
+ * <li>
93
+ * <p>You tried to delete a <code>Rule</code> that is still referenced by a <code>WebACL</code>.</p>
94
+ * </li>
95
+ * </ul>
96
+ *
97
+ * @throws {@link WAFStaleDataException} (client fault)
98
+ * <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>
99
+ *
100
+ * @throws {@link WAFTagOperationException} (client fault)
101
+ * <p></p>
102
+ *
103
+ * @throws {@link WAFTagOperationInternalErrorException} (server fault)
104
+ * <p></p>
105
+ *
106
+ *
59
107
  */
60
108
  export declare class DeleteRateBasedRuleCommand extends $Command<DeleteRateBasedRuleCommandInput, DeleteRateBasedRuleCommandOutput, WAFClientResolvedConfig> {
61
109
  readonly input: DeleteRateBasedRuleCommandInput;
@@ -52,6 +52,48 @@ export interface DeleteRegexMatchSetCommandOutput extends DeleteRegexMatchSetRes
52
52
  * @see {@link DeleteRegexMatchSetCommandOutput} for command's `response` shape.
53
53
  * @see {@link WAFClientResolvedConfig | config} for WAFClient's `config` shape.
54
54
  *
55
+ * @throws {@link WAFInternalErrorException} (server fault)
56
+ * <p>The operation failed because of a system problem, even though the request was valid. Retry your request.</p>
57
+ *
58
+ * @throws {@link WAFInvalidAccountException} (client fault)
59
+ * <p>The operation failed because you tried to create, update, or delete an object by using an invalid account identifier.</p>
60
+ *
61
+ * @throws {@link WAFNonEmptyEntityException} (client fault)
62
+ * <p>The operation failed because you tried to delete an object that isn't empty. For example:</p>
63
+ * <ul>
64
+ * <li>
65
+ * <p>You tried to delete a <code>WebACL</code> that still contains one or more <code>Rule</code> objects.</p>
66
+ * </li>
67
+ * <li>
68
+ * <p>You tried to delete a <code>Rule</code> that still contains one or more <code>ByteMatchSet</code> objects
69
+ * or other predicates.</p>
70
+ * </li>
71
+ * <li>
72
+ * <p>You tried to delete a <code>ByteMatchSet</code> that contains one or more <code>ByteMatchTuple</code> objects.</p>
73
+ * </li>
74
+ * <li>
75
+ * <p>You tried to delete an <code>IPSet</code> that references one or more IP addresses.</p>
76
+ * </li>
77
+ * </ul>
78
+ *
79
+ * @throws {@link WAFNonexistentItemException} (client fault)
80
+ * <p>The operation failed because the referenced object doesn't exist.</p>
81
+ *
82
+ * @throws {@link WAFReferencedItemException} (client fault)
83
+ * <p>The operation failed because you tried to delete an object that is still in use. For example:</p>
84
+ * <ul>
85
+ * <li>
86
+ * <p>You tried to delete a <code>ByteMatchSet</code> that is still referenced by a <code>Rule</code>.</p>
87
+ * </li>
88
+ * <li>
89
+ * <p>You tried to delete a <code>Rule</code> that is still referenced by a <code>WebACL</code>.</p>
90
+ * </li>
91
+ * </ul>
92
+ *
93
+ * @throws {@link WAFStaleDataException} (client fault)
94
+ * <p>The operation failed because you tried to create, update, or delete an object by using a change token that has already been used.</p>
95
+ *
96
+ *
55
97
  */
56
98
  export declare class DeleteRegexMatchSetCommand extends $Command<DeleteRegexMatchSetCommandInput, DeleteRegexMatchSetCommandOutput, WAFClientResolvedConfig> {
57
99
  readonly input: DeleteRegexMatchSetCommandInput;
@@ -38,6 +38,48 @@ export interface DeleteRegexPatternSetCommandOutput extends DeleteRegexPatternSe
38
38
  * @see {@link DeleteRegexPatternSetCommandOutput} for command's `response` shape.
39
39
  * @see {@link WAFClientResolvedConfig | config} for WAFClient's `config` shape.
40
40
  *
41
+ * @throws {@link WAFInternalErrorException} (server fault)
42
+ * <p>The operation failed because of a system problem, even though the request was valid. Retry your request.</p>
43
+ *
44
+ * @throws {@link WAFInvalidAccountException} (client fault)
45
+ * <p>The operation failed because you tried to create, update, or delete an object by using an invalid account identifier.</p>
46
+ *
47
+ * @throws {@link WAFNonEmptyEntityException} (client fault)
48
+ * <p>The operation failed because you tried to delete an object that isn't empty. For example:</p>
49
+ * <ul>
50
+ * <li>
51
+ * <p>You tried to delete a <code>WebACL</code> that still contains one or more <code>Rule</code> objects.</p>
52
+ * </li>
53
+ * <li>
54
+ * <p>You tried to delete a <code>Rule</code> that still contains one or more <code>ByteMatchSet</code> objects
55
+ * or other predicates.</p>
56
+ * </li>
57
+ * <li>
58
+ * <p>You tried to delete a <code>ByteMatchSet</code> that contains one or more <code>ByteMatchTuple</code> objects.</p>
59
+ * </li>
60
+ * <li>
61
+ * <p>You tried to delete an <code>IPSet</code> that references one or more IP addresses.</p>
62
+ * </li>
63
+ * </ul>
64
+ *
65
+ * @throws {@link WAFNonexistentItemException} (client fault)
66
+ * <p>The operation failed because the referenced object doesn't exist.</p>
67
+ *
68
+ * @throws {@link WAFReferencedItemException} (client fault)
69
+ * <p>The operation failed because you tried to delete an object that is still in use. For example:</p>
70
+ * <ul>
71
+ * <li>
72
+ * <p>You tried to delete a <code>ByteMatchSet</code> that is still referenced by a <code>Rule</code>.</p>
73
+ * </li>
74
+ * <li>
75
+ * <p>You tried to delete a <code>Rule</code> that is still referenced by a <code>WebACL</code>.</p>
76
+ * </li>
77
+ * </ul>
78
+ *
79
+ * @throws {@link WAFStaleDataException} (client fault)
80
+ * <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>
81
+ *
82
+ *
41
83
  */
42
84
  export declare class DeleteRegexPatternSetCommand extends $Command<DeleteRegexPatternSetCommandInput, DeleteRegexPatternSetCommandOutput, WAFClientResolvedConfig> {
43
85
  readonly input: DeleteRegexPatternSetCommandInput;
@@ -52,6 +52,71 @@ export interface DeleteRuleCommandOutput extends DeleteRuleResponse, __MetadataB
52
52
  * @see {@link DeleteRuleCommandOutput} for command's `response` shape.
53
53
  * @see {@link WAFClientResolvedConfig | config} for WAFClient's `config` shape.
54
54
  *
55
+ * @throws {@link WAFInternalErrorException} (server fault)
56
+ * <p>The operation failed because of a system problem, even though the request was valid. Retry your request.</p>
57
+ *
58
+ * @throws {@link WAFInvalidAccountException} (client fault)
59
+ * <p>The operation failed because you tried to create, update, or delete an object by using an invalid account identifier.</p>
60
+ *
61
+ * @throws {@link WAFNonEmptyEntityException} (client fault)
62
+ * <p>The operation failed because you tried to delete an object that isn't empty. For example:</p>
63
+ * <ul>
64
+ * <li>
65
+ * <p>You tried to delete a <code>WebACL</code> that still contains one or more <code>Rule</code> objects.</p>
66
+ * </li>
67
+ * <li>
68
+ * <p>You tried to delete a <code>Rule</code> that still contains one or more <code>ByteMatchSet</code> objects
69
+ * or other predicates.</p>
70
+ * </li>
71
+ * <li>
72
+ * <p>You tried to delete a <code>ByteMatchSet</code> that contains one or more <code>ByteMatchTuple</code> objects.</p>
73
+ * </li>
74
+ * <li>
75
+ * <p>You tried to delete an <code>IPSet</code> that references one or more IP addresses.</p>
76
+ * </li>
77
+ * </ul>
78
+ *
79
+ * @throws {@link WAFNonexistentItemException} (client fault)
80
+ * <p>The operation failed because the referenced object doesn't exist.</p>
81
+ *
82
+ * @throws {@link WAFReferencedItemException} (client fault)
83
+ * <p>The operation failed because you tried to delete an object that is still in use. For example:</p>
84
+ * <ul>
85
+ * <li>
86
+ * <p>You tried to delete a <code>ByteMatchSet</code> that is still referenced by a <code>Rule</code>.</p>
87
+ * </li>
88
+ * <li>
89
+ * <p>You tried to delete a <code>Rule</code> that is still referenced by a <code>WebACL</code>.</p>
90
+ * </li>
91
+ * </ul>
92
+ *
93
+ * @throws {@link WAFStaleDataException} (client fault)
94
+ * <p>The operation failed because you tried to create, update, or delete an object by using a change token that has already been used.</p>
95
+ *
96
+ * @throws {@link WAFTagOperationException} (client fault)
97
+ * <p></p>
98
+ *
99
+ * @throws {@link WAFTagOperationInternalErrorException} (server fault)
100
+ * <p></p>
101
+ *
102
+ *
103
+ * @example To delete a rule
104
+ * ```javascript
105
+ * // The following example deletes a rule with the ID WAFRule-1-Example.
106
+ * const input = {
107
+ * "ChangeToken": "abcd12f2-46da-4fdb-b8d5-fbd4c466928f",
108
+ * "RuleId": "WAFRule-1-Example"
109
+ * };
110
+ * const command = new DeleteRuleCommand(input);
111
+ * const response = await client.send(command);
112
+ * /* response ==
113
+ * {
114
+ * "ChangeToken": "abcd12f2-46da-4fdb-b8d5-fbd4c466928f"
115
+ * }
116
+ * *\/
117
+ * // example id: deleterule-1474073108749
118
+ * ```
119
+ *
55
120
  */
56
121
  export declare class DeleteRuleCommand extends $Command<DeleteRuleCommandInput, DeleteRuleCommandOutput, WAFClientResolvedConfig> {
57
122
  readonly input: DeleteRuleCommandInput;
@@ -52,6 +52,74 @@ export interface DeleteRuleGroupCommandOutput extends DeleteRuleGroupResponse, _
52
52
  * @see {@link DeleteRuleGroupCommandOutput} for command's `response` shape.
53
53
  * @see {@link WAFClientResolvedConfig | config} for WAFClient's `config` shape.
54
54
  *
55
+ * @throws {@link WAFInternalErrorException} (server fault)
56
+ * <p>The operation failed because of a system problem, even though the request was valid. Retry your request.</p>
57
+ *
58
+ * @throws {@link WAFInvalidOperationException} (client fault)
59
+ * <p>The operation failed because there was nothing to do. For example:</p>
60
+ * <ul>
61
+ * <li>
62
+ * <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>
63
+ * </li>
64
+ * <li>
65
+ * <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>
66
+ * </li>
67
+ * <li>
68
+ * <p>You tried to remove a <code>ByteMatchTuple</code> from a <code>ByteMatchSet</code>, but the <code>ByteMatchTuple</code>
69
+ * isn't in the specified <code>WebACL</code>.</p>
70
+ * </li>
71
+ * <li>
72
+ * <p>You tried to add a <code>Rule</code> to a <code>WebACL</code>, but the <code>Rule</code> already exists in the
73
+ * specified <code>WebACL</code>.</p>
74
+ * </li>
75
+ * <li>
76
+ * <p>You tried to add a <code>ByteMatchTuple</code> to a <code>ByteMatchSet</code>, but the <code>ByteMatchTuple</code>
77
+ * already exists in the specified <code>WebACL</code>.</p>
78
+ * </li>
79
+ * </ul>
80
+ *
81
+ * @throws {@link WAFNonEmptyEntityException} (client fault)
82
+ * <p>The operation failed because you tried to delete an object that isn't empty. For example:</p>
83
+ * <ul>
84
+ * <li>
85
+ * <p>You tried to delete a <code>WebACL</code> that still contains one or more <code>Rule</code> objects.</p>
86
+ * </li>
87
+ * <li>
88
+ * <p>You tried to delete a <code>Rule</code> that still contains one or more <code>ByteMatchSet</code> objects
89
+ * or other predicates.</p>
90
+ * </li>
91
+ * <li>
92
+ * <p>You tried to delete a <code>ByteMatchSet</code> that contains one or more <code>ByteMatchTuple</code> objects.</p>
93
+ * </li>
94
+ * <li>
95
+ * <p>You tried to delete an <code>IPSet</code> that references one or more IP addresses.</p>
96
+ * </li>
97
+ * </ul>
98
+ *
99
+ * @throws {@link WAFNonexistentItemException} (client fault)
100
+ * <p>The operation failed because the referenced object doesn't exist.</p>
101
+ *
102
+ * @throws {@link WAFReferencedItemException} (client fault)
103
+ * <p>The operation failed because you tried to delete an object that is still in use. For example:</p>
104
+ * <ul>
105
+ * <li>
106
+ * <p>You tried to delete a <code>ByteMatchSet</code> that is still referenced by a <code>Rule</code>.</p>
107
+ * </li>
108
+ * <li>
109
+ * <p>You tried to delete a <code>Rule</code> that is still referenced by a <code>WebACL</code>.</p>
110
+ * </li>
111
+ * </ul>
112
+ *
113
+ * @throws {@link WAFStaleDataException} (client fault)
114
+ * <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>
115
+ *
116
+ * @throws {@link WAFTagOperationException} (client fault)
117
+ * <p></p>
118
+ *
119
+ * @throws {@link WAFTagOperationInternalErrorException} (server fault)
120
+ * <p></p>
121
+ *
122
+ *
55
123
  */
56
124
  export declare class DeleteRuleGroupCommand extends $Command<DeleteRuleGroupCommandInput, DeleteRuleGroupCommandOutput, WAFClientResolvedConfig> {
57
125
  readonly input: DeleteRuleGroupCommandInput;
@@ -52,6 +52,65 @@ export interface DeleteSizeConstraintSetCommandOutput extends DeleteSizeConstrai
52
52
  * @see {@link DeleteSizeConstraintSetCommandOutput} for command's `response` shape.
53
53
  * @see {@link WAFClientResolvedConfig | config} for WAFClient's `config` shape.
54
54
  *
55
+ * @throws {@link WAFInternalErrorException} (server fault)
56
+ * <p>The operation failed because of a system problem, even though the request was valid. Retry your request.</p>
57
+ *
58
+ * @throws {@link WAFInvalidAccountException} (client fault)
59
+ * <p>The operation failed because you tried to create, update, or delete an object by using an invalid account identifier.</p>
60
+ *
61
+ * @throws {@link WAFNonEmptyEntityException} (client fault)
62
+ * <p>The operation failed because you tried to delete an object that isn't empty. For example:</p>
63
+ * <ul>
64
+ * <li>
65
+ * <p>You tried to delete a <code>WebACL</code> that still contains one or more <code>Rule</code> objects.</p>
66
+ * </li>
67
+ * <li>
68
+ * <p>You tried to delete a <code>Rule</code> that still contains one or more <code>ByteMatchSet</code> objects
69
+ * or other predicates.</p>
70
+ * </li>
71
+ * <li>
72
+ * <p>You tried to delete a <code>ByteMatchSet</code> that contains one or more <code>ByteMatchTuple</code> objects.</p>
73
+ * </li>
74
+ * <li>
75
+ * <p>You tried to delete an <code>IPSet</code> that references one or more IP addresses.</p>
76
+ * </li>
77
+ * </ul>
78
+ *
79
+ * @throws {@link WAFNonexistentItemException} (client fault)
80
+ * <p>The operation failed because the referenced object doesn't exist.</p>
81
+ *
82
+ * @throws {@link WAFReferencedItemException} (client fault)
83
+ * <p>The operation failed because you tried to delete an object that is still in use. For example:</p>
84
+ * <ul>
85
+ * <li>
86
+ * <p>You tried to delete a <code>ByteMatchSet</code> that is still referenced by a <code>Rule</code>.</p>
87
+ * </li>
88
+ * <li>
89
+ * <p>You tried to delete a <code>Rule</code> that is still referenced by a <code>WebACL</code>.</p>
90
+ * </li>
91
+ * </ul>
92
+ *
93
+ * @throws {@link WAFStaleDataException} (client fault)
94
+ * <p>The operation failed because you tried to create, update, or delete an object by using a change token that has already been used.</p>
95
+ *
96
+ *
97
+ * @example To delete a size constraint set
98
+ * ```javascript
99
+ * // The following example deletes a size constraint set with the ID example1ds3t-46da-4fdb-b8d5-abc321j569j5.
100
+ * const input = {
101
+ * "ChangeToken": "abcd12f2-46da-4fdb-b8d5-fbd4c466928f",
102
+ * "SizeConstraintSetId": "example1ds3t-46da-4fdb-b8d5-abc321j569j5"
103
+ * };
104
+ * const command = new DeleteSizeConstraintSetCommand(input);
105
+ * const response = await client.send(command);
106
+ * /* response ==
107
+ * {
108
+ * "ChangeToken": "abcd12f2-46da-4fdb-b8d5-fbd4c466928f"
109
+ * }
110
+ * *\/
111
+ * // example id: deletesizeconstraintset-1474299857905
112
+ * ```
113
+ *
55
114
  */
56
115
  export declare class DeleteSizeConstraintSetCommand extends $Command<DeleteSizeConstraintSetCommandInput, DeleteSizeConstraintSetCommandOutput, WAFClientResolvedConfig> {
57
116
  readonly input: DeleteSizeConstraintSetCommandInput;
@@ -53,6 +53,65 @@ export interface DeleteSqlInjectionMatchSetCommandOutput extends DeleteSqlInject
53
53
  * @see {@link DeleteSqlInjectionMatchSetCommandOutput} for command's `response` shape.
54
54
  * @see {@link WAFClientResolvedConfig | config} for WAFClient's `config` shape.
55
55
  *
56
+ * @throws {@link WAFInternalErrorException} (server fault)
57
+ * <p>The operation failed because of a system problem, even though the request was valid. Retry your request.</p>
58
+ *
59
+ * @throws {@link WAFInvalidAccountException} (client fault)
60
+ * <p>The operation failed because you tried to create, update, or delete an object by using an invalid account identifier.</p>
61
+ *
62
+ * @throws {@link WAFNonEmptyEntityException} (client fault)
63
+ * <p>The operation failed because you tried to delete an object that isn't empty. For example:</p>
64
+ * <ul>
65
+ * <li>
66
+ * <p>You tried to delete a <code>WebACL</code> that still contains one or more <code>Rule</code> objects.</p>
67
+ * </li>
68
+ * <li>
69
+ * <p>You tried to delete a <code>Rule</code> that still contains one or more <code>ByteMatchSet</code> objects
70
+ * or other predicates.</p>
71
+ * </li>
72
+ * <li>
73
+ * <p>You tried to delete a <code>ByteMatchSet</code> that contains one or more <code>ByteMatchTuple</code> objects.</p>
74
+ * </li>
75
+ * <li>
76
+ * <p>You tried to delete an <code>IPSet</code> that references one or more IP addresses.</p>
77
+ * </li>
78
+ * </ul>
79
+ *
80
+ * @throws {@link WAFNonexistentItemException} (client fault)
81
+ * <p>The operation failed because the referenced object doesn't exist.</p>
82
+ *
83
+ * @throws {@link WAFReferencedItemException} (client fault)
84
+ * <p>The operation failed because you tried to delete an object that is still in use. For example:</p>
85
+ * <ul>
86
+ * <li>
87
+ * <p>You tried to delete a <code>ByteMatchSet</code> that is still referenced by a <code>Rule</code>.</p>
88
+ * </li>
89
+ * <li>
90
+ * <p>You tried to delete a <code>Rule</code> that is still referenced by a <code>WebACL</code>.</p>
91
+ * </li>
92
+ * </ul>
93
+ *
94
+ * @throws {@link WAFStaleDataException} (client fault)
95
+ * <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>
96
+ *
97
+ *
98
+ * @example To delete a SQL injection match set
99
+ * ```javascript
100
+ * // The following example deletes a SQL injection match set with the ID example1ds3t-46da-4fdb-b8d5-abc321j569j5.
101
+ * const input = {
102
+ * "ChangeToken": "abcd12f2-46da-4fdb-b8d5-fbd4c466928f",
103
+ * "SqlInjectionMatchSetId": "example1ds3t-46da-4fdb-b8d5-abc321j569j5"
104
+ * };
105
+ * const command = new DeleteSqlInjectionMatchSetCommand(input);
106
+ * const response = await client.send(command);
107
+ * /* response ==
108
+ * {
109
+ * "ChangeToken": "abcd12f2-46da-4fdb-b8d5-fbd4c466928f"
110
+ * }
111
+ * *\/
112
+ * // example id: deletesqlinjectionmatchset-1474493373197
113
+ * ```
114
+ *
56
115
  */
57
116
  export declare class DeleteSqlInjectionMatchSetCommand extends $Command<DeleteSqlInjectionMatchSetCommandInput, DeleteSqlInjectionMatchSetCommandOutput, WAFClientResolvedConfig> {
58
117
  readonly input: DeleteSqlInjectionMatchSetCommandInput;
@@ -50,6 +50,71 @@ export interface DeleteWebACLCommandOutput extends DeleteWebACLResponse, __Metad
50
50
  * @see {@link DeleteWebACLCommandOutput} for command's `response` shape.
51
51
  * @see {@link WAFClientResolvedConfig | config} for WAFClient's `config` shape.
52
52
  *
53
+ * @throws {@link WAFInternalErrorException} (server fault)
54
+ * <p>The operation failed because of a system problem, even though the request was valid. Retry your request.</p>
55
+ *
56
+ * @throws {@link WAFInvalidAccountException} (client fault)
57
+ * <p>The operation failed because you tried to create, update, or delete an object by using an invalid account identifier.</p>
58
+ *
59
+ * @throws {@link WAFNonEmptyEntityException} (client fault)
60
+ * <p>The operation failed because you tried to delete an object that isn't empty. For example:</p>
61
+ * <ul>
62
+ * <li>
63
+ * <p>You tried to delete a <code>WebACL</code> that still contains one or more <code>Rule</code> objects.</p>
64
+ * </li>
65
+ * <li>
66
+ * <p>You tried to delete a <code>Rule</code> that still contains one or more <code>ByteMatchSet</code> objects
67
+ * or other predicates.</p>
68
+ * </li>
69
+ * <li>
70
+ * <p>You tried to delete a <code>ByteMatchSet</code> that contains one or more <code>ByteMatchTuple</code> objects.</p>
71
+ * </li>
72
+ * <li>
73
+ * <p>You tried to delete an <code>IPSet</code> that references one or more IP addresses.</p>
74
+ * </li>
75
+ * </ul>
76
+ *
77
+ * @throws {@link WAFNonexistentItemException} (client fault)
78
+ * <p>The operation failed because the referenced object doesn't exist.</p>
79
+ *
80
+ * @throws {@link WAFReferencedItemException} (client fault)
81
+ * <p>The operation failed because you tried to delete an object that is still in use. For example:</p>
82
+ * <ul>
83
+ * <li>
84
+ * <p>You tried to delete a <code>ByteMatchSet</code> that is still referenced by a <code>Rule</code>.</p>
85
+ * </li>
86
+ * <li>
87
+ * <p>You tried to delete a <code>Rule</code> that is still referenced by a <code>WebACL</code>.</p>
88
+ * </li>
89
+ * </ul>
90
+ *
91
+ * @throws {@link WAFStaleDataException} (client fault)
92
+ * <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>
93
+ *
94
+ * @throws {@link WAFTagOperationException} (client fault)
95
+ * <p></p>
96
+ *
97
+ * @throws {@link WAFTagOperationInternalErrorException} (server fault)
98
+ * <p></p>
99
+ *
100
+ *
101
+ * @example To delete a web ACL
102
+ * ```javascript
103
+ * // The following example deletes a web ACL with the ID example-46da-4444-5555-example.
104
+ * const input = {
105
+ * "ChangeToken": "abcd12f2-46da-4fdb-b8d5-fbd4c466928f",
106
+ * "WebACLId": "example-46da-4444-5555-example"
107
+ * };
108
+ * const command = new DeleteWebACLCommand(input);
109
+ * const response = await client.send(command);
110
+ * /* response ==
111
+ * {
112
+ * "ChangeToken": "abcd12f2-46da-4fdb-b8d5-fbd4c466928f"
113
+ * }
114
+ * *\/
115
+ * // example id: deletewebacl-1472767755931
116
+ * ```
117
+ *
53
118
  */
54
119
  export declare class DeleteWebACLCommand extends $Command<DeleteWebACLCommandInput, DeleteWebACLCommandOutput, WAFClientResolvedConfig> {
55
120
  readonly input: DeleteWebACLCommandInput;
@@ -53,6 +53,65 @@ export interface DeleteXssMatchSetCommandOutput extends DeleteXssMatchSetRespons
53
53
  * @see {@link DeleteXssMatchSetCommandOutput} for command's `response` shape.
54
54
  * @see {@link WAFClientResolvedConfig | config} for WAFClient's `config` shape.
55
55
  *
56
+ * @throws {@link WAFInternalErrorException} (server fault)
57
+ * <p>The operation failed because of a system problem, even though the request was valid. Retry your request.</p>
58
+ *
59
+ * @throws {@link WAFInvalidAccountException} (client fault)
60
+ * <p>The operation failed because you tried to create, update, or delete an object by using an invalid account identifier.</p>
61
+ *
62
+ * @throws {@link WAFNonEmptyEntityException} (client fault)
63
+ * <p>The operation failed because you tried to delete an object that isn't empty. For example:</p>
64
+ * <ul>
65
+ * <li>
66
+ * <p>You tried to delete a <code>WebACL</code> that still contains one or more <code>Rule</code> objects.</p>
67
+ * </li>
68
+ * <li>
69
+ * <p>You tried to delete a <code>Rule</code> that still contains one or more <code>ByteMatchSet</code> objects
70
+ * or other predicates.</p>
71
+ * </li>
72
+ * <li>
73
+ * <p>You tried to delete a <code>ByteMatchSet</code> that contains one or more <code>ByteMatchTuple</code> objects.</p>
74
+ * </li>
75
+ * <li>
76
+ * <p>You tried to delete an <code>IPSet</code> that references one or more IP addresses.</p>
77
+ * </li>
78
+ * </ul>
79
+ *
80
+ * @throws {@link WAFNonexistentItemException} (client fault)
81
+ * <p>The operation failed because the referenced object doesn't exist.</p>
82
+ *
83
+ * @throws {@link WAFReferencedItemException} (client fault)
84
+ * <p>The operation failed because you tried to delete an object that is still in use. For example:</p>
85
+ * <ul>
86
+ * <li>
87
+ * <p>You tried to delete a <code>ByteMatchSet</code> that is still referenced by a <code>Rule</code>.</p>
88
+ * </li>
89
+ * <li>
90
+ * <p>You tried to delete a <code>Rule</code> that is still referenced by a <code>WebACL</code>.</p>
91
+ * </li>
92
+ * </ul>
93
+ *
94
+ * @throws {@link WAFStaleDataException} (client fault)
95
+ * <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>
96
+ *
97
+ *
98
+ * @example To delete an XSS match set
99
+ * ```javascript
100
+ * // The following example deletes an XSS match set with the ID example1ds3t-46da-4fdb-b8d5-abc321j569j5.
101
+ * const input = {
102
+ * "ChangeToken": "abcd12f2-46da-4fdb-b8d5-fbd4c466928f",
103
+ * "XssMatchSetId": "example1ds3t-46da-4fdb-b8d5-abc321j569j5"
104
+ * };
105
+ * const command = new DeleteXssMatchSetCommand(input);
106
+ * const response = await client.send(command);
107
+ * /* response ==
108
+ * {
109
+ * "ChangeToken": "abcd12f2-46da-4fdb-b8d5-fbd4c466928f"
110
+ * }
111
+ * *\/
112
+ * // example id: deletexssmatchset-1474561302618
113
+ * ```
114
+ *
56
115
  */
57
116
  export declare class DeleteXssMatchSetCommand extends $Command<DeleteXssMatchSetCommandInput, DeleteXssMatchSetCommandOutput, WAFClientResolvedConfig> {
58
117
  readonly input: DeleteXssMatchSetCommandInput;
@@ -37,6 +37,46 @@ export interface GetByteMatchSetCommandOutput extends GetByteMatchSetResponse, _
37
37
  * @see {@link GetByteMatchSetCommandOutput} 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
+ * @throws {@link WAFNonexistentItemException} (client fault)
47
+ * <p>The operation failed because the referenced object doesn't exist.</p>
48
+ *
49
+ *
50
+ * @example To get a byte match set
51
+ * ```javascript
52
+ * // The following example returns the details of a byte match set with the ID exampleIDs3t-46da-4fdb-b8d5-abc321j569j5.
53
+ * const input = {
54
+ * "ByteMatchSetId": "exampleIDs3t-46da-4fdb-b8d5-abc321j569j5"
55
+ * };
56
+ * const command = new GetByteMatchSetCommand(input);
57
+ * const response = await client.send(command);
58
+ * /* response ==
59
+ * {
60
+ * "ByteMatchSet": {
61
+ * "ByteMatchSetId": "exampleIDs3t-46da-4fdb-b8d5-abc321j569j5",
62
+ * "ByteMatchTuples": [
63
+ * {
64
+ * "FieldToMatch": {
65
+ * "Data": "referer",
66
+ * "Type": "HEADER"
67
+ * },
68
+ * "PositionalConstraint": "CONTAINS",
69
+ * "TargetString": "badrefer1",
70
+ * "TextTransformation": "NONE"
71
+ * }
72
+ * ],
73
+ * "Name": "ByteMatchNameExample"
74
+ * }
75
+ * }
76
+ * *\/
77
+ * // example id: getbytematchset-1473273311532
78
+ * ```
79
+ *
40
80
  */
41
81
  export declare class GetByteMatchSetCommand extends $Command<GetByteMatchSetCommandInput, GetByteMatchSetCommandOutput, WAFClientResolvedConfig> {
42
82
  readonly input: GetByteMatchSetCommandInput;
@@ -43,6 +43,24 @@ export interface GetChangeTokenCommandOutput extends GetChangeTokenResponse, __M
43
43
  * @see {@link GetChangeTokenCommandOutput} for command's `response` shape.
44
44
  * @see {@link WAFClientResolvedConfig | config} for WAFClient's `config` shape.
45
45
  *
46
+ * @throws {@link WAFInternalErrorException} (server fault)
47
+ * <p>The operation failed because of a system problem, even though the request was valid. Retry your request.</p>
48
+ *
49
+ *
50
+ * @example To get a change token
51
+ * ```javascript
52
+ * // The following example returns a change token to use for a create, update or delete operation.
53
+ * const input = {};
54
+ * const command = new GetChangeTokenCommand(input);
55
+ * const response = await client.send(command);
56
+ * /* response ==
57
+ * {
58
+ * "ChangeToken": "abcd12f2-46da-4fdb-b8d5-fbd4c466928f"
59
+ * }
60
+ * *\/
61
+ * // example id: get-change-token-example-1471635120794
62
+ * ```
63
+ *
46
64
  */
47
65
  export declare class GetChangeTokenCommand extends $Command<GetChangeTokenCommandInput, GetChangeTokenCommandOutput, WAFClientResolvedConfig> {
48
66
  readonly input: GetChangeTokenCommandInput;