@aws-sdk/client-wafv2 3.419.0 → 3.422.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 (73) hide show
  1. package/README.md +7 -7
  2. package/dist-types/models/models_0.d.ts +26 -6
  3. package/dist-types/ts3.4/WAFV2.d.ts +438 -918
  4. package/dist-types/ts3.4/WAFV2Client.d.ts +277 -436
  5. package/dist-types/ts3.4/commands/AssociateWebACLCommand.d.ts +118 -38
  6. package/dist-types/ts3.4/commands/CheckCapacityCommand.d.ts +1093 -38
  7. package/dist-types/ts3.4/commands/CreateAPIKeyCommand.d.ts +115 -35
  8. package/dist-types/ts3.4/commands/CreateIPSetCommand.d.ts +144 -35
  9. package/dist-types/ts3.4/commands/CreateRegexPatternSetCommand.d.ts +143 -42
  10. package/dist-types/ts3.4/commands/CreateRuleGroupCommand.d.ts +1116 -38
  11. package/dist-types/ts3.4/commands/CreateWebACLCommand.d.ts +1145 -35
  12. package/dist-types/ts3.4/commands/DeleteFirewallManagerRuleGroupsCommand.d.ts +115 -42
  13. package/dist-types/ts3.4/commands/DeleteIPSetCommand.d.ts +124 -35
  14. package/dist-types/ts3.4/commands/DeleteLoggingConfigurationCommand.d.ts +110 -42
  15. package/dist-types/ts3.4/commands/DeletePermissionPolicyCommand.d.ts +103 -42
  16. package/dist-types/ts3.4/commands/DeleteRegexPatternSetCommand.d.ts +124 -42
  17. package/dist-types/ts3.4/commands/DeleteRuleGroupCommand.d.ts +124 -38
  18. package/dist-types/ts3.4/commands/DeleteWebACLCommand.d.ts +158 -35
  19. package/dist-types/ts3.4/commands/DescribeAllManagedProductsCommand.d.ts +92 -42
  20. package/dist-types/ts3.4/commands/DescribeManagedProductsByVendorCommand.d.ts +114 -42
  21. package/dist-types/ts3.4/commands/DescribeManagedRuleGroupCommand.d.ts +191 -42
  22. package/dist-types/ts3.4/commands/DisassociateWebACLCommand.d.ts +109 -39
  23. package/dist-types/ts3.4/commands/GenerateMobileSdkReleaseUrlCommand.d.ts +110 -42
  24. package/dist-types/ts3.4/commands/GetDecryptedAPIKeyCommand.d.ts +112 -39
  25. package/dist-types/ts3.4/commands/GetIPSetCommand.d.ts +119 -35
  26. package/dist-types/ts3.4/commands/GetLoggingConfigurationCommand.d.ts +192 -42
  27. package/dist-types/ts3.4/commands/GetManagedRuleSetCommand.d.ts +131 -39
  28. package/dist-types/ts3.4/commands/GetMobileSdkReleaseCommand.d.ts +121 -39
  29. package/dist-types/ts3.4/commands/GetPermissionPolicyCommand.d.ts +105 -39
  30. package/dist-types/ts3.4/commands/GetRateBasedStatementManagedKeysCommand.d.ts +142 -42
  31. package/dist-types/ts3.4/commands/GetRegexPatternSetCommand.d.ts +120 -39
  32. package/dist-types/ts3.4/commands/GetRuleGroupCommand.d.ts +1088 -35
  33. package/dist-types/ts3.4/commands/GetSampledRequestsCommand.d.ts +168 -39
  34. package/dist-types/ts3.4/commands/GetWebACLCommand.d.ts +1283 -35
  35. package/dist-types/ts3.4/commands/GetWebACLForResourceCommand.d.ts +1286 -42
  36. package/dist-types/ts3.4/commands/ListAPIKeysCommand.d.ts +121 -35
  37. package/dist-types/ts3.4/commands/ListAvailableManagedRuleGroupVersionsCommand.d.ts +118 -42
  38. package/dist-types/ts3.4/commands/ListAvailableManagedRuleGroupsCommand.d.ts +113 -42
  39. package/dist-types/ts3.4/commands/ListIPSetsCommand.d.ts +113 -35
  40. package/dist-types/ts3.4/commands/ListLoggingConfigurationsCommand.d.ts +191 -42
  41. package/dist-types/ts3.4/commands/ListManagedRuleSetsCommand.d.ts +117 -39
  42. package/dist-types/ts3.4/commands/ListMobileSdkReleasesCommand.d.ts +112 -42
  43. package/dist-types/ts3.4/commands/ListRegexPatternSetsCommand.d.ts +113 -42
  44. package/dist-types/ts3.4/commands/ListResourcesForWebACLCommand.d.ts +112 -42
  45. package/dist-types/ts3.4/commands/ListRuleGroupsCommand.d.ts +113 -38
  46. package/dist-types/ts3.4/commands/ListTagsForResourceCommand.d.ts +132 -39
  47. package/dist-types/ts3.4/commands/ListWebACLsCommand.d.ts +113 -35
  48. package/dist-types/ts3.4/commands/PutLoggingConfigurationCommand.d.ts +345 -42
  49. package/dist-types/ts3.4/commands/PutManagedRuleSetVersionsCommand.d.ts +133 -42
  50. package/dist-types/ts3.4/commands/PutPermissionPolicyCommand.d.ts +145 -39
  51. package/dist-types/ts3.4/commands/TagResourceCommand.d.ts +131 -35
  52. package/dist-types/ts3.4/commands/UntagResourceCommand.d.ts +118 -38
  53. package/dist-types/ts3.4/commands/UpdateIPSetCommand.d.ts +146 -35
  54. package/dist-types/ts3.4/commands/UpdateManagedRuleSetVersionExpiryDateCommand.d.ts +125 -42
  55. package/dist-types/ts3.4/commands/UpdateRegexPatternSetCommand.d.ts +148 -42
  56. package/dist-types/ts3.4/commands/UpdateRuleGroupCommand.d.ts +1128 -38
  57. package/dist-types/ts3.4/commands/UpdateWebACLCommand.d.ts +1146 -35
  58. package/dist-types/ts3.4/commands/index.d.ts +53 -53
  59. package/dist-types/ts3.4/endpoint/EndpointParameters.d.ts +22 -33
  60. package/dist-types/ts3.4/endpoint/endpointResolver.d.ts +5 -8
  61. package/dist-types/ts3.4/endpoint/ruleset.d.ts +2 -2
  62. package/dist-types/ts3.4/extensionConfiguration.d.ts +8 -7
  63. package/dist-types/ts3.4/index.d.ts +68 -6
  64. package/dist-types/ts3.4/models/WAFV2ServiceException.d.ts +13 -8
  65. package/dist-types/ts3.4/models/index.d.ts +1 -1
  66. package/dist-types/ts3.4/models/models_0.d.ts +7951 -1764
  67. package/dist-types/ts3.4/protocols/Aws_json1_1.d.ts +479 -641
  68. package/dist-types/ts3.4/runtimeConfig.browser.d.ts +46 -97
  69. package/dist-types/ts3.4/runtimeConfig.d.ts +46 -97
  70. package/dist-types/ts3.4/runtimeConfig.native.d.ts +45 -88
  71. package/dist-types/ts3.4/runtimeConfig.shared.d.ts +19 -19
  72. package/dist-types/ts3.4/runtimeExtensions.d.ts +17 -11
  73. package/package.json +3 -3
@@ -1,35 +1,115 @@
1
- import { EndpointParameterInstructions } from "@smithy/middleware-endpoint";
2
- import { Command as $Command } from "@smithy/smithy-client";
3
- import {
4
- Handler,
5
- HttpHandlerOptions as __HttpHandlerOptions,
6
- MetadataBearer as __MetadataBearer,
7
- MiddlewareStack,
8
- } from "@smithy/types";
9
- import { CreateAPIKeyRequest, CreateAPIKeyResponse } from "../models/models_0";
10
- import {
11
- ServiceInputTypes,
12
- ServiceOutputTypes,
13
- WAFV2ClientResolvedConfig,
14
- } from "../WAFV2Client";
15
- export { __MetadataBearer, $Command };
16
- export interface CreateAPIKeyCommandInput extends CreateAPIKeyRequest {}
17
- export interface CreateAPIKeyCommandOutput
18
- extends CreateAPIKeyResponse,
19
- __MetadataBearer {}
20
- export declare class CreateAPIKeyCommand extends $Command<
21
- CreateAPIKeyCommandInput,
22
- CreateAPIKeyCommandOutput,
23
- WAFV2ClientResolvedConfig
24
- > {
25
- readonly input: CreateAPIKeyCommandInput;
26
- static getEndpointParameterInstructions(): EndpointParameterInstructions;
27
- constructor(input: CreateAPIKeyCommandInput);
28
- resolveMiddleware(
29
- clientStack: MiddlewareStack<ServiceInputTypes, ServiceOutputTypes>,
30
- configuration: WAFV2ClientResolvedConfig,
31
- options?: __HttpHandlerOptions
32
- ): Handler<CreateAPIKeyCommandInput, CreateAPIKeyCommandOutput>;
33
- private serialize;
34
- private deserialize;
35
- }
1
+ import { EndpointParameterInstructions } from "@smithy/middleware-endpoint";
2
+ import { Command as $Command } from "@smithy/smithy-client";
3
+ import { Handler, HttpHandlerOptions as __HttpHandlerOptions, MetadataBearer as __MetadataBearer, MiddlewareStack } from "@smithy/types";
4
+ import { CreateAPIKeyRequest, CreateAPIKeyResponse } from "../models/models_0";
5
+ import { ServiceInputTypes, ServiceOutputTypes, WAFV2ClientResolvedConfig } from "../WAFV2Client";
6
+ /**
7
+ * @public
8
+ */
9
+ export { __MetadataBearer, $Command };
10
+ /**
11
+ * @public
12
+ *
13
+ * The input for {@link CreateAPIKeyCommand}.
14
+ */
15
+ export interface CreateAPIKeyCommandInput extends CreateAPIKeyRequest {
16
+ }
17
+ /**
18
+ * @public
19
+ *
20
+ * The output of {@link CreateAPIKeyCommand}.
21
+ */
22
+ export interface CreateAPIKeyCommandOutput extends CreateAPIKeyResponse, __MetadataBearer {
23
+ }
24
+ /**
25
+ * @public
26
+ * <p>Creates an API key that contains a set of token domains.</p>
27
+ * <p>API keys are required for the integration of the CAPTCHA API in your JavaScript client applications.
28
+ * The API lets you customize the placement and characteristics of the CAPTCHA puzzle for your end users.
29
+ * For more information about the CAPTCHA JavaScript integration, see <a href="https://docs.aws.amazon.com/waf/latest/developerguide/waf-application-integration.html">WAF client application integration</a> in the <i>WAF Developer Guide</i>.</p>
30
+ * <p>You can use a single key for up to 5 domains. After you generate a key, you can copy it for use in your JavaScript
31
+ * integration. </p>
32
+ * @example
33
+ * Use a bare-bones client and the command you need to make an API call.
34
+ * ```javascript
35
+ * import { WAFV2Client, CreateAPIKeyCommand } from "@aws-sdk/client-wafv2"; // ES Modules import
36
+ * // const { WAFV2Client, CreateAPIKeyCommand } = require("@aws-sdk/client-wafv2"); // CommonJS import
37
+ * const client = new WAFV2Client(config);
38
+ * const input = { // CreateAPIKeyRequest
39
+ * Scope: "CLOUDFRONT" || "REGIONAL", // required
40
+ * TokenDomains: [ // APIKeyTokenDomains // required
41
+ * "STRING_VALUE",
42
+ * ],
43
+ * };
44
+ * const command = new CreateAPIKeyCommand(input);
45
+ * const response = await client.send(command);
46
+ * // { // CreateAPIKeyResponse
47
+ * // APIKey: "STRING_VALUE",
48
+ * // };
49
+ *
50
+ * ```
51
+ *
52
+ * @param CreateAPIKeyCommandInput - {@link CreateAPIKeyCommandInput}
53
+ * @returns {@link CreateAPIKeyCommandOutput}
54
+ * @see {@link CreateAPIKeyCommandInput} for command's `input` shape.
55
+ * @see {@link CreateAPIKeyCommandOutput} for command's `response` shape.
56
+ * @see {@link WAFV2ClientResolvedConfig | config} for WAFV2Client's `config` shape.
57
+ *
58
+ * @throws {@link WAFInternalErrorException} (server fault)
59
+ * <p>Your request is valid, but WAF couldn’t perform the operation because of a system
60
+ * problem. Retry your request. </p>
61
+ *
62
+ * @throws {@link WAFInvalidOperationException} (client fault)
63
+ * <p>The operation isn't valid. </p>
64
+ *
65
+ * @throws {@link WAFInvalidParameterException} (client fault)
66
+ * <p>The operation failed because WAF didn't recognize a parameter in the request. For
67
+ * example: </p>
68
+ * <ul>
69
+ * <li>
70
+ * <p>You specified a parameter name or value that isn't valid.</p>
71
+ * </li>
72
+ * <li>
73
+ * <p>Your nested statement isn't valid. You might have tried to nest a statement that
74
+ * can’t be nested. </p>
75
+ * </li>
76
+ * <li>
77
+ * <p>You tried to update a <code>WebACL</code> with a <code>DefaultAction</code> that
78
+ * isn't among the types available at <a>DefaultAction</a>.</p>
79
+ * </li>
80
+ * <li>
81
+ * <p>Your request references an ARN that is malformed, or corresponds to a resource
82
+ * with which a web ACL can't be associated.</p>
83
+ * </li>
84
+ * </ul>
85
+ *
86
+ * @throws {@link WAFLimitsExceededException} (client fault)
87
+ * <p>WAF couldn’t perform the operation because you exceeded your resource limit. For
88
+ * example, the maximum number of <code>WebACL</code> objects that you can create for an Amazon Web Services
89
+ * account. For more information, see <a href="https://docs.aws.amazon.com/waf/latest/developerguide/limits.html">WAF quotas</a> in the
90
+ * <i>WAF Developer Guide</i>.</p>
91
+ *
92
+ * @throws {@link WAFV2ServiceException}
93
+ * <p>Base exception class for all service exceptions from WAFV2 service.</p>
94
+ *
95
+ */
96
+ export declare class CreateAPIKeyCommand extends $Command<CreateAPIKeyCommandInput, CreateAPIKeyCommandOutput, WAFV2ClientResolvedConfig> {
97
+ readonly input: CreateAPIKeyCommandInput;
98
+ static getEndpointParameterInstructions(): EndpointParameterInstructions;
99
+ /**
100
+ * @public
101
+ */
102
+ constructor(input: CreateAPIKeyCommandInput);
103
+ /**
104
+ * @internal
105
+ */
106
+ resolveMiddleware(clientStack: MiddlewareStack<ServiceInputTypes, ServiceOutputTypes>, configuration: WAFV2ClientResolvedConfig, options?: __HttpHandlerOptions): Handler<CreateAPIKeyCommandInput, CreateAPIKeyCommandOutput>;
107
+ /**
108
+ * @internal
109
+ */
110
+ private serialize;
111
+ /**
112
+ * @internal
113
+ */
114
+ private deserialize;
115
+ }
@@ -1,35 +1,144 @@
1
- import { EndpointParameterInstructions } from "@smithy/middleware-endpoint";
2
- import { Command as $Command } from "@smithy/smithy-client";
3
- import {
4
- Handler,
5
- HttpHandlerOptions as __HttpHandlerOptions,
6
- MetadataBearer as __MetadataBearer,
7
- MiddlewareStack,
8
- } from "@smithy/types";
9
- import { CreateIPSetRequest, CreateIPSetResponse } from "../models/models_0";
10
- import {
11
- ServiceInputTypes,
12
- ServiceOutputTypes,
13
- WAFV2ClientResolvedConfig,
14
- } from "../WAFV2Client";
15
- export { __MetadataBearer, $Command };
16
- export interface CreateIPSetCommandInput extends CreateIPSetRequest {}
17
- export interface CreateIPSetCommandOutput
18
- extends CreateIPSetResponse,
19
- __MetadataBearer {}
20
- export declare class CreateIPSetCommand extends $Command<
21
- CreateIPSetCommandInput,
22
- CreateIPSetCommandOutput,
23
- WAFV2ClientResolvedConfig
24
- > {
25
- readonly input: CreateIPSetCommandInput;
26
- static getEndpointParameterInstructions(): EndpointParameterInstructions;
27
- constructor(input: CreateIPSetCommandInput);
28
- resolveMiddleware(
29
- clientStack: MiddlewareStack<ServiceInputTypes, ServiceOutputTypes>,
30
- configuration: WAFV2ClientResolvedConfig,
31
- options?: __HttpHandlerOptions
32
- ): Handler<CreateIPSetCommandInput, CreateIPSetCommandOutput>;
33
- private serialize;
34
- private deserialize;
35
- }
1
+ import { EndpointParameterInstructions } from "@smithy/middleware-endpoint";
2
+ import { Command as $Command } from "@smithy/smithy-client";
3
+ import { Handler, HttpHandlerOptions as __HttpHandlerOptions, MetadataBearer as __MetadataBearer, MiddlewareStack } from "@smithy/types";
4
+ import { CreateIPSetRequest, CreateIPSetResponse } from "../models/models_0";
5
+ import { ServiceInputTypes, ServiceOutputTypes, WAFV2ClientResolvedConfig } from "../WAFV2Client";
6
+ /**
7
+ * @public
8
+ */
9
+ export { __MetadataBearer, $Command };
10
+ /**
11
+ * @public
12
+ *
13
+ * The input for {@link CreateIPSetCommand}.
14
+ */
15
+ export interface CreateIPSetCommandInput extends CreateIPSetRequest {
16
+ }
17
+ /**
18
+ * @public
19
+ *
20
+ * The output of {@link CreateIPSetCommand}.
21
+ */
22
+ export interface CreateIPSetCommandOutput extends CreateIPSetResponse, __MetadataBearer {
23
+ }
24
+ /**
25
+ * @public
26
+ * <p>Creates an <a>IPSet</a>, which you use to identify web requests that
27
+ * originate from specific IP addresses or ranges of IP addresses. For example, if you're
28
+ * receiving a lot of requests from a ranges of IP addresses, you can configure WAF to
29
+ * block them using an IPSet that lists those IP addresses. </p>
30
+ * @example
31
+ * Use a bare-bones client and the command you need to make an API call.
32
+ * ```javascript
33
+ * import { WAFV2Client, CreateIPSetCommand } from "@aws-sdk/client-wafv2"; // ES Modules import
34
+ * // const { WAFV2Client, CreateIPSetCommand } = require("@aws-sdk/client-wafv2"); // CommonJS import
35
+ * const client = new WAFV2Client(config);
36
+ * const input = { // CreateIPSetRequest
37
+ * Name: "STRING_VALUE", // required
38
+ * Scope: "CLOUDFRONT" || "REGIONAL", // required
39
+ * Description: "STRING_VALUE",
40
+ * IPAddressVersion: "IPV4" || "IPV6", // required
41
+ * Addresses: [ // IPAddresses // required
42
+ * "STRING_VALUE",
43
+ * ],
44
+ * Tags: [ // TagList
45
+ * { // Tag
46
+ * Key: "STRING_VALUE", // required
47
+ * Value: "STRING_VALUE", // required
48
+ * },
49
+ * ],
50
+ * };
51
+ * const command = new CreateIPSetCommand(input);
52
+ * const response = await client.send(command);
53
+ * // { // CreateIPSetResponse
54
+ * // Summary: { // IPSetSummary
55
+ * // Name: "STRING_VALUE",
56
+ * // Id: "STRING_VALUE",
57
+ * // Description: "STRING_VALUE",
58
+ * // LockToken: "STRING_VALUE",
59
+ * // ARN: "STRING_VALUE",
60
+ * // },
61
+ * // };
62
+ *
63
+ * ```
64
+ *
65
+ * @param CreateIPSetCommandInput - {@link CreateIPSetCommandInput}
66
+ * @returns {@link CreateIPSetCommandOutput}
67
+ * @see {@link CreateIPSetCommandInput} for command's `input` shape.
68
+ * @see {@link CreateIPSetCommandOutput} for command's `response` shape.
69
+ * @see {@link WAFV2ClientResolvedConfig | config} for WAFV2Client's `config` shape.
70
+ *
71
+ * @throws {@link WAFDuplicateItemException} (client fault)
72
+ * <p>WAF couldn’t perform the operation because the resource that you tried to save is
73
+ * a duplicate of an existing one.</p>
74
+ *
75
+ * @throws {@link WAFInternalErrorException} (server fault)
76
+ * <p>Your request is valid, but WAF couldn’t perform the operation because of a system
77
+ * problem. Retry your request. </p>
78
+ *
79
+ * @throws {@link WAFInvalidOperationException} (client fault)
80
+ * <p>The operation isn't valid. </p>
81
+ *
82
+ * @throws {@link WAFInvalidParameterException} (client fault)
83
+ * <p>The operation failed because WAF didn't recognize a parameter in the request. For
84
+ * example: </p>
85
+ * <ul>
86
+ * <li>
87
+ * <p>You specified a parameter name or value that isn't valid.</p>
88
+ * </li>
89
+ * <li>
90
+ * <p>Your nested statement isn't valid. You might have tried to nest a statement that
91
+ * can’t be nested. </p>
92
+ * </li>
93
+ * <li>
94
+ * <p>You tried to update a <code>WebACL</code> with a <code>DefaultAction</code> that
95
+ * isn't among the types available at <a>DefaultAction</a>.</p>
96
+ * </li>
97
+ * <li>
98
+ * <p>Your request references an ARN that is malformed, or corresponds to a resource
99
+ * with which a web ACL can't be associated.</p>
100
+ * </li>
101
+ * </ul>
102
+ *
103
+ * @throws {@link WAFLimitsExceededException} (client fault)
104
+ * <p>WAF couldn’t perform the operation because you exceeded your resource limit. For
105
+ * example, the maximum number of <code>WebACL</code> objects that you can create for an Amazon Web Services
106
+ * account. For more information, see <a href="https://docs.aws.amazon.com/waf/latest/developerguide/limits.html">WAF quotas</a> in the
107
+ * <i>WAF Developer Guide</i>.</p>
108
+ *
109
+ * @throws {@link WAFOptimisticLockException} (client fault)
110
+ * <p>WAF couldn’t save your changes because you tried to update or delete a resource
111
+ * that has changed since you last retrieved it. Get the resource again, make any changes you
112
+ * need to make to the new copy, and retry your operation. </p>
113
+ *
114
+ * @throws {@link WAFTagOperationException} (client fault)
115
+ * <p>An error occurred during the tagging operation. Retry your request.</p>
116
+ *
117
+ * @throws {@link WAFTagOperationInternalErrorException} (server fault)
118
+ * <p>WAF couldn’t perform your tagging operation because of an internal error. Retry
119
+ * your request.</p>
120
+ *
121
+ * @throws {@link WAFV2ServiceException}
122
+ * <p>Base exception class for all service exceptions from WAFV2 service.</p>
123
+ *
124
+ */
125
+ export declare class CreateIPSetCommand extends $Command<CreateIPSetCommandInput, CreateIPSetCommandOutput, WAFV2ClientResolvedConfig> {
126
+ readonly input: CreateIPSetCommandInput;
127
+ static getEndpointParameterInstructions(): EndpointParameterInstructions;
128
+ /**
129
+ * @public
130
+ */
131
+ constructor(input: CreateIPSetCommandInput);
132
+ /**
133
+ * @internal
134
+ */
135
+ resolveMiddleware(clientStack: MiddlewareStack<ServiceInputTypes, ServiceOutputTypes>, configuration: WAFV2ClientResolvedConfig, options?: __HttpHandlerOptions): Handler<CreateIPSetCommandInput, CreateIPSetCommandOutput>;
136
+ /**
137
+ * @internal
138
+ */
139
+ private serialize;
140
+ /**
141
+ * @internal
142
+ */
143
+ private deserialize;
144
+ }
@@ -1,42 +1,143 @@
1
- import { EndpointParameterInstructions } from "@smithy/middleware-endpoint";
2
- import { Command as $Command } from "@smithy/smithy-client";
3
- import {
4
- Handler,
5
- HttpHandlerOptions as __HttpHandlerOptions,
6
- MetadataBearer as __MetadataBearer,
7
- MiddlewareStack,
8
- } from "@smithy/types";
9
- import {
10
- CreateRegexPatternSetRequest,
11
- CreateRegexPatternSetResponse,
12
- } from "../models/models_0";
13
- import {
14
- ServiceInputTypes,
15
- ServiceOutputTypes,
16
- WAFV2ClientResolvedConfig,
17
- } from "../WAFV2Client";
18
- export { __MetadataBearer, $Command };
19
- export interface CreateRegexPatternSetCommandInput
20
- extends CreateRegexPatternSetRequest {}
21
- export interface CreateRegexPatternSetCommandOutput
22
- extends CreateRegexPatternSetResponse,
23
- __MetadataBearer {}
24
- export declare class CreateRegexPatternSetCommand extends $Command<
25
- CreateRegexPatternSetCommandInput,
26
- CreateRegexPatternSetCommandOutput,
27
- WAFV2ClientResolvedConfig
28
- > {
29
- readonly input: CreateRegexPatternSetCommandInput;
30
- static getEndpointParameterInstructions(): EndpointParameterInstructions;
31
- constructor(input: CreateRegexPatternSetCommandInput);
32
- resolveMiddleware(
33
- clientStack: MiddlewareStack<ServiceInputTypes, ServiceOutputTypes>,
34
- configuration: WAFV2ClientResolvedConfig,
35
- options?: __HttpHandlerOptions
36
- ): Handler<
37
- CreateRegexPatternSetCommandInput,
38
- CreateRegexPatternSetCommandOutput
39
- >;
40
- private serialize;
41
- private deserialize;
42
- }
1
+ import { EndpointParameterInstructions } from "@smithy/middleware-endpoint";
2
+ import { Command as $Command } from "@smithy/smithy-client";
3
+ import { Handler, HttpHandlerOptions as __HttpHandlerOptions, MetadataBearer as __MetadataBearer, MiddlewareStack } from "@smithy/types";
4
+ import { CreateRegexPatternSetRequest, CreateRegexPatternSetResponse } from "../models/models_0";
5
+ import { ServiceInputTypes, ServiceOutputTypes, WAFV2ClientResolvedConfig } from "../WAFV2Client";
6
+ /**
7
+ * @public
8
+ */
9
+ export { __MetadataBearer, $Command };
10
+ /**
11
+ * @public
12
+ *
13
+ * The input for {@link CreateRegexPatternSetCommand}.
14
+ */
15
+ export interface CreateRegexPatternSetCommandInput extends CreateRegexPatternSetRequest {
16
+ }
17
+ /**
18
+ * @public
19
+ *
20
+ * The output of {@link CreateRegexPatternSetCommand}.
21
+ */
22
+ export interface CreateRegexPatternSetCommandOutput extends CreateRegexPatternSetResponse, __MetadataBearer {
23
+ }
24
+ /**
25
+ * @public
26
+ * <p>Creates a <a>RegexPatternSet</a>, which you reference in a <a>RegexPatternSetReferenceStatement</a>, to have WAF inspect a web request
27
+ * component for the specified patterns.</p>
28
+ * @example
29
+ * Use a bare-bones client and the command you need to make an API call.
30
+ * ```javascript
31
+ * import { WAFV2Client, CreateRegexPatternSetCommand } from "@aws-sdk/client-wafv2"; // ES Modules import
32
+ * // const { WAFV2Client, CreateRegexPatternSetCommand } = require("@aws-sdk/client-wafv2"); // CommonJS import
33
+ * const client = new WAFV2Client(config);
34
+ * const input = { // CreateRegexPatternSetRequest
35
+ * Name: "STRING_VALUE", // required
36
+ * Scope: "CLOUDFRONT" || "REGIONAL", // required
37
+ * Description: "STRING_VALUE",
38
+ * RegularExpressionList: [ // RegularExpressionList // required
39
+ * { // Regex
40
+ * RegexString: "STRING_VALUE",
41
+ * },
42
+ * ],
43
+ * Tags: [ // TagList
44
+ * { // Tag
45
+ * Key: "STRING_VALUE", // required
46
+ * Value: "STRING_VALUE", // required
47
+ * },
48
+ * ],
49
+ * };
50
+ * const command = new CreateRegexPatternSetCommand(input);
51
+ * const response = await client.send(command);
52
+ * // { // CreateRegexPatternSetResponse
53
+ * // Summary: { // RegexPatternSetSummary
54
+ * // Name: "STRING_VALUE",
55
+ * // Id: "STRING_VALUE",
56
+ * // Description: "STRING_VALUE",
57
+ * // LockToken: "STRING_VALUE",
58
+ * // ARN: "STRING_VALUE",
59
+ * // },
60
+ * // };
61
+ *
62
+ * ```
63
+ *
64
+ * @param CreateRegexPatternSetCommandInput - {@link CreateRegexPatternSetCommandInput}
65
+ * @returns {@link CreateRegexPatternSetCommandOutput}
66
+ * @see {@link CreateRegexPatternSetCommandInput} for command's `input` shape.
67
+ * @see {@link CreateRegexPatternSetCommandOutput} for command's `response` shape.
68
+ * @see {@link WAFV2ClientResolvedConfig | config} for WAFV2Client's `config` shape.
69
+ *
70
+ * @throws {@link WAFDuplicateItemException} (client fault)
71
+ * <p>WAF couldn’t perform the operation because the resource that you tried to save is
72
+ * a duplicate of an existing one.</p>
73
+ *
74
+ * @throws {@link WAFInternalErrorException} (server fault)
75
+ * <p>Your request is valid, but WAF couldn’t perform the operation because of a system
76
+ * problem. Retry your request. </p>
77
+ *
78
+ * @throws {@link WAFInvalidOperationException} (client fault)
79
+ * <p>The operation isn't valid. </p>
80
+ *
81
+ * @throws {@link WAFInvalidParameterException} (client fault)
82
+ * <p>The operation failed because WAF didn't recognize a parameter in the request. For
83
+ * example: </p>
84
+ * <ul>
85
+ * <li>
86
+ * <p>You specified a parameter name or value that isn't valid.</p>
87
+ * </li>
88
+ * <li>
89
+ * <p>Your nested statement isn't valid. You might have tried to nest a statement that
90
+ * can’t be nested. </p>
91
+ * </li>
92
+ * <li>
93
+ * <p>You tried to update a <code>WebACL</code> with a <code>DefaultAction</code> that
94
+ * isn't among the types available at <a>DefaultAction</a>.</p>
95
+ * </li>
96
+ * <li>
97
+ * <p>Your request references an ARN that is malformed, or corresponds to a resource
98
+ * with which a web ACL can't be associated.</p>
99
+ * </li>
100
+ * </ul>
101
+ *
102
+ * @throws {@link WAFLimitsExceededException} (client fault)
103
+ * <p>WAF couldn’t perform the operation because you exceeded your resource limit. For
104
+ * example, the maximum number of <code>WebACL</code> objects that you can create for an Amazon Web Services
105
+ * account. For more information, see <a href="https://docs.aws.amazon.com/waf/latest/developerguide/limits.html">WAF quotas</a> in the
106
+ * <i>WAF Developer Guide</i>.</p>
107
+ *
108
+ * @throws {@link WAFOptimisticLockException} (client fault)
109
+ * <p>WAF couldn’t save your changes because you tried to update or delete a resource
110
+ * that has changed since you last retrieved it. Get the resource again, make any changes you
111
+ * need to make to the new copy, and retry your operation. </p>
112
+ *
113
+ * @throws {@link WAFTagOperationException} (client fault)
114
+ * <p>An error occurred during the tagging operation. Retry your request.</p>
115
+ *
116
+ * @throws {@link WAFTagOperationInternalErrorException} (server fault)
117
+ * <p>WAF couldn’t perform your tagging operation because of an internal error. Retry
118
+ * your request.</p>
119
+ *
120
+ * @throws {@link WAFV2ServiceException}
121
+ * <p>Base exception class for all service exceptions from WAFV2 service.</p>
122
+ *
123
+ */
124
+ export declare class CreateRegexPatternSetCommand extends $Command<CreateRegexPatternSetCommandInput, CreateRegexPatternSetCommandOutput, WAFV2ClientResolvedConfig> {
125
+ readonly input: CreateRegexPatternSetCommandInput;
126
+ static getEndpointParameterInstructions(): EndpointParameterInstructions;
127
+ /**
128
+ * @public
129
+ */
130
+ constructor(input: CreateRegexPatternSetCommandInput);
131
+ /**
132
+ * @internal
133
+ */
134
+ resolveMiddleware(clientStack: MiddlewareStack<ServiceInputTypes, ServiceOutputTypes>, configuration: WAFV2ClientResolvedConfig, options?: __HttpHandlerOptions): Handler<CreateRegexPatternSetCommandInput, CreateRegexPatternSetCommandOutput>;
135
+ /**
136
+ * @internal
137
+ */
138
+ private serialize;
139
+ /**
140
+ * @internal
141
+ */
142
+ private deserialize;
143
+ }