@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,39 +1,105 @@
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
- GetPermissionPolicyRequest,
11
- GetPermissionPolicyResponse,
12
- } from "../models/models_0";
13
- import {
14
- ServiceInputTypes,
15
- ServiceOutputTypes,
16
- WAFV2ClientResolvedConfig,
17
- } from "../WAFV2Client";
18
- export { __MetadataBearer, $Command };
19
- export interface GetPermissionPolicyCommandInput
20
- extends GetPermissionPolicyRequest {}
21
- export interface GetPermissionPolicyCommandOutput
22
- extends GetPermissionPolicyResponse,
23
- __MetadataBearer {}
24
- export declare class GetPermissionPolicyCommand extends $Command<
25
- GetPermissionPolicyCommandInput,
26
- GetPermissionPolicyCommandOutput,
27
- WAFV2ClientResolvedConfig
28
- > {
29
- readonly input: GetPermissionPolicyCommandInput;
30
- static getEndpointParameterInstructions(): EndpointParameterInstructions;
31
- constructor(input: GetPermissionPolicyCommandInput);
32
- resolveMiddleware(
33
- clientStack: MiddlewareStack<ServiceInputTypes, ServiceOutputTypes>,
34
- configuration: WAFV2ClientResolvedConfig,
35
- options?: __HttpHandlerOptions
36
- ): Handler<GetPermissionPolicyCommandInput, GetPermissionPolicyCommandOutput>;
37
- private serialize;
38
- private deserialize;
39
- }
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 { GetPermissionPolicyRequest, GetPermissionPolicyResponse } 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 GetPermissionPolicyCommand}.
14
+ */
15
+ export interface GetPermissionPolicyCommandInput extends GetPermissionPolicyRequest {
16
+ }
17
+ /**
18
+ * @public
19
+ *
20
+ * The output of {@link GetPermissionPolicyCommand}.
21
+ */
22
+ export interface GetPermissionPolicyCommandOutput extends GetPermissionPolicyResponse, __MetadataBearer {
23
+ }
24
+ /**
25
+ * @public
26
+ * <p>Returns the IAM policy that is attached to the specified rule group.</p>
27
+ * <p>You must be the owner of the rule group to perform this operation.</p>
28
+ * @example
29
+ * Use a bare-bones client and the command you need to make an API call.
30
+ * ```javascript
31
+ * import { WAFV2Client, GetPermissionPolicyCommand } from "@aws-sdk/client-wafv2"; // ES Modules import
32
+ * // const { WAFV2Client, GetPermissionPolicyCommand } = require("@aws-sdk/client-wafv2"); // CommonJS import
33
+ * const client = new WAFV2Client(config);
34
+ * const input = { // GetPermissionPolicyRequest
35
+ * ResourceArn: "STRING_VALUE", // required
36
+ * };
37
+ * const command = new GetPermissionPolicyCommand(input);
38
+ * const response = await client.send(command);
39
+ * // { // GetPermissionPolicyResponse
40
+ * // Policy: "STRING_VALUE",
41
+ * // };
42
+ *
43
+ * ```
44
+ *
45
+ * @param GetPermissionPolicyCommandInput - {@link GetPermissionPolicyCommandInput}
46
+ * @returns {@link GetPermissionPolicyCommandOutput}
47
+ * @see {@link GetPermissionPolicyCommandInput} for command's `input` shape.
48
+ * @see {@link GetPermissionPolicyCommandOutput} for command's `response` shape.
49
+ * @see {@link WAFV2ClientResolvedConfig | config} for WAFV2Client's `config` shape.
50
+ *
51
+ * @throws {@link WAFInternalErrorException} (server fault)
52
+ * <p>Your request is valid, but WAF couldn’t perform the operation because of a system
53
+ * problem. Retry your request. </p>
54
+ *
55
+ * @throws {@link WAFInvalidParameterException} (client fault)
56
+ * <p>The operation failed because WAF didn't recognize a parameter in the request. For
57
+ * example: </p>
58
+ * <ul>
59
+ * <li>
60
+ * <p>You specified a parameter name or value that isn't valid.</p>
61
+ * </li>
62
+ * <li>
63
+ * <p>Your nested statement isn't valid. You might have tried to nest a statement that
64
+ * can’t be nested. </p>
65
+ * </li>
66
+ * <li>
67
+ * <p>You tried to update a <code>WebACL</code> with a <code>DefaultAction</code> that
68
+ * isn't among the types available at <a>DefaultAction</a>.</p>
69
+ * </li>
70
+ * <li>
71
+ * <p>Your request references an ARN that is malformed, or corresponds to a resource
72
+ * with which a web ACL can't be associated.</p>
73
+ * </li>
74
+ * </ul>
75
+ *
76
+ * @throws {@link WAFNonexistentItemException} (client fault)
77
+ * <p>WAF couldn’t perform the operation because your resource doesn't exist.
78
+ * If you've just created a resource that you're using in this operation, you might
79
+ * just need to wait a few minutes. It can take from a few seconds to a number of minutes
80
+ * for changes to propagate. </p>
81
+ *
82
+ * @throws {@link WAFV2ServiceException}
83
+ * <p>Base exception class for all service exceptions from WAFV2 service.</p>
84
+ *
85
+ */
86
+ export declare class GetPermissionPolicyCommand extends $Command<GetPermissionPolicyCommandInput, GetPermissionPolicyCommandOutput, WAFV2ClientResolvedConfig> {
87
+ readonly input: GetPermissionPolicyCommandInput;
88
+ static getEndpointParameterInstructions(): EndpointParameterInstructions;
89
+ /**
90
+ * @public
91
+ */
92
+ constructor(input: GetPermissionPolicyCommandInput);
93
+ /**
94
+ * @internal
95
+ */
96
+ resolveMiddleware(clientStack: MiddlewareStack<ServiceInputTypes, ServiceOutputTypes>, configuration: WAFV2ClientResolvedConfig, options?: __HttpHandlerOptions): Handler<GetPermissionPolicyCommandInput, GetPermissionPolicyCommandOutput>;
97
+ /**
98
+ * @internal
99
+ */
100
+ private serialize;
101
+ /**
102
+ * @internal
103
+ */
104
+ private deserialize;
105
+ }
@@ -1,42 +1,142 @@
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
- GetRateBasedStatementManagedKeysRequest,
11
- GetRateBasedStatementManagedKeysResponse,
12
- } from "../models/models_0";
13
- import {
14
- ServiceInputTypes,
15
- ServiceOutputTypes,
16
- WAFV2ClientResolvedConfig,
17
- } from "../WAFV2Client";
18
- export { __MetadataBearer, $Command };
19
- export interface GetRateBasedStatementManagedKeysCommandInput
20
- extends GetRateBasedStatementManagedKeysRequest {}
21
- export interface GetRateBasedStatementManagedKeysCommandOutput
22
- extends GetRateBasedStatementManagedKeysResponse,
23
- __MetadataBearer {}
24
- export declare class GetRateBasedStatementManagedKeysCommand extends $Command<
25
- GetRateBasedStatementManagedKeysCommandInput,
26
- GetRateBasedStatementManagedKeysCommandOutput,
27
- WAFV2ClientResolvedConfig
28
- > {
29
- readonly input: GetRateBasedStatementManagedKeysCommandInput;
30
- static getEndpointParameterInstructions(): EndpointParameterInstructions;
31
- constructor(input: GetRateBasedStatementManagedKeysCommandInput);
32
- resolveMiddleware(
33
- clientStack: MiddlewareStack<ServiceInputTypes, ServiceOutputTypes>,
34
- configuration: WAFV2ClientResolvedConfig,
35
- options?: __HttpHandlerOptions
36
- ): Handler<
37
- GetRateBasedStatementManagedKeysCommandInput,
38
- GetRateBasedStatementManagedKeysCommandOutput
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 { GetRateBasedStatementManagedKeysRequest, GetRateBasedStatementManagedKeysResponse } 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 GetRateBasedStatementManagedKeysCommand}.
14
+ */
15
+ export interface GetRateBasedStatementManagedKeysCommandInput extends GetRateBasedStatementManagedKeysRequest {
16
+ }
17
+ /**
18
+ * @public
19
+ *
20
+ * The output of {@link GetRateBasedStatementManagedKeysCommand}.
21
+ */
22
+ export interface GetRateBasedStatementManagedKeysCommandOutput extends GetRateBasedStatementManagedKeysResponse, __MetadataBearer {
23
+ }
24
+ /**
25
+ * @public
26
+ * <p>Retrieves the IP addresses that are currently blocked by a rate-based rule instance. This
27
+ * is only available for rate-based rules that aggregate solely on the IP address or on the forwarded IP
28
+ * address. </p>
29
+ * <p>The maximum
30
+ * number of addresses that can be blocked for a single rate-based rule instance is 10,000.
31
+ * If more than 10,000 addresses exceed the rate limit, those with the highest rates are
32
+ * blocked.</p>
33
+ * <p>For a rate-based rule that you've defined inside a rule group, provide the name of the
34
+ * rule group reference statement in your request, in addition to the rate-based rule name and
35
+ * the web ACL name. </p>
36
+ * <p>WAF monitors web requests and manages keys independently for each unique combination
37
+ * of web ACL, optional rule group, and rate-based rule. For example, if you define a
38
+ * rate-based rule inside a rule group, and then use the rule group in a web ACL, WAF
39
+ * monitors web requests and manages keys for that web ACL, rule group reference statement,
40
+ * and rate-based rule instance. If you use the same rule group in a second web ACL, WAF
41
+ * monitors web requests and manages keys for this second usage completely independent of your
42
+ * first. </p>
43
+ * @example
44
+ * Use a bare-bones client and the command you need to make an API call.
45
+ * ```javascript
46
+ * import { WAFV2Client, GetRateBasedStatementManagedKeysCommand } from "@aws-sdk/client-wafv2"; // ES Modules import
47
+ * // const { WAFV2Client, GetRateBasedStatementManagedKeysCommand } = require("@aws-sdk/client-wafv2"); // CommonJS import
48
+ * const client = new WAFV2Client(config);
49
+ * const input = { // GetRateBasedStatementManagedKeysRequest
50
+ * Scope: "CLOUDFRONT" || "REGIONAL", // required
51
+ * WebACLName: "STRING_VALUE", // required
52
+ * WebACLId: "STRING_VALUE", // required
53
+ * RuleGroupRuleName: "STRING_VALUE",
54
+ * RuleName: "STRING_VALUE", // required
55
+ * };
56
+ * const command = new GetRateBasedStatementManagedKeysCommand(input);
57
+ * const response = await client.send(command);
58
+ * // { // GetRateBasedStatementManagedKeysResponse
59
+ * // ManagedKeysIPV4: { // RateBasedStatementManagedKeysIPSet
60
+ * // IPAddressVersion: "IPV4" || "IPV6",
61
+ * // Addresses: [ // IPAddresses
62
+ * // "STRING_VALUE",
63
+ * // ],
64
+ * // },
65
+ * // ManagedKeysIPV6: {
66
+ * // IPAddressVersion: "IPV4" || "IPV6",
67
+ * // Addresses: [
68
+ * // "STRING_VALUE",
69
+ * // ],
70
+ * // },
71
+ * // };
72
+ *
73
+ * ```
74
+ *
75
+ * @param GetRateBasedStatementManagedKeysCommandInput - {@link GetRateBasedStatementManagedKeysCommandInput}
76
+ * @returns {@link GetRateBasedStatementManagedKeysCommandOutput}
77
+ * @see {@link GetRateBasedStatementManagedKeysCommandInput} for command's `input` shape.
78
+ * @see {@link GetRateBasedStatementManagedKeysCommandOutput} for command's `response` shape.
79
+ * @see {@link WAFV2ClientResolvedConfig | config} for WAFV2Client's `config` shape.
80
+ *
81
+ * @throws {@link WAFInternalErrorException} (server fault)
82
+ * <p>Your request is valid, but WAF couldn’t perform the operation because of a system
83
+ * problem. Retry your request. </p>
84
+ *
85
+ * @throws {@link WAFInvalidOperationException} (client fault)
86
+ * <p>The operation isn't valid. </p>
87
+ *
88
+ * @throws {@link WAFInvalidParameterException} (client fault)
89
+ * <p>The operation failed because WAF didn't recognize a parameter in the request. For
90
+ * example: </p>
91
+ * <ul>
92
+ * <li>
93
+ * <p>You specified a parameter name or value that isn't valid.</p>
94
+ * </li>
95
+ * <li>
96
+ * <p>Your nested statement isn't valid. You might have tried to nest a statement that
97
+ * can’t be nested. </p>
98
+ * </li>
99
+ * <li>
100
+ * <p>You tried to update a <code>WebACL</code> with a <code>DefaultAction</code> that
101
+ * isn't among the types available at <a>DefaultAction</a>.</p>
102
+ * </li>
103
+ * <li>
104
+ * <p>Your request references an ARN that is malformed, or corresponds to a resource
105
+ * with which a web ACL can't be associated.</p>
106
+ * </li>
107
+ * </ul>
108
+ *
109
+ * @throws {@link WAFNonexistentItemException} (client fault)
110
+ * <p>WAF couldn’t perform the operation because your resource doesn't exist.
111
+ * If you've just created a resource that you're using in this operation, you might
112
+ * just need to wait a few minutes. It can take from a few seconds to a number of minutes
113
+ * for changes to propagate. </p>
114
+ *
115
+ * @throws {@link WAFUnsupportedAggregateKeyTypeException} (client fault)
116
+ * <p>The rule that you've named doesn't aggregate solely on the IP address or solely on the forwarded IP address. This call
117
+ * is only available for rate-based rules with an <code>AggregateKeyType</code> setting of <code>IP</code> or <code>FORWARDED_IP</code>.</p>
118
+ *
119
+ * @throws {@link WAFV2ServiceException}
120
+ * <p>Base exception class for all service exceptions from WAFV2 service.</p>
121
+ *
122
+ */
123
+ export declare class GetRateBasedStatementManagedKeysCommand extends $Command<GetRateBasedStatementManagedKeysCommandInput, GetRateBasedStatementManagedKeysCommandOutput, WAFV2ClientResolvedConfig> {
124
+ readonly input: GetRateBasedStatementManagedKeysCommandInput;
125
+ static getEndpointParameterInstructions(): EndpointParameterInstructions;
126
+ /**
127
+ * @public
128
+ */
129
+ constructor(input: GetRateBasedStatementManagedKeysCommandInput);
130
+ /**
131
+ * @internal
132
+ */
133
+ resolveMiddleware(clientStack: MiddlewareStack<ServiceInputTypes, ServiceOutputTypes>, configuration: WAFV2ClientResolvedConfig, options?: __HttpHandlerOptions): Handler<GetRateBasedStatementManagedKeysCommandInput, GetRateBasedStatementManagedKeysCommandOutput>;
134
+ /**
135
+ * @internal
136
+ */
137
+ private serialize;
138
+ /**
139
+ * @internal
140
+ */
141
+ private deserialize;
142
+ }
@@ -1,39 +1,120 @@
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
- GetRegexPatternSetRequest,
11
- GetRegexPatternSetResponse,
12
- } from "../models/models_0";
13
- import {
14
- ServiceInputTypes,
15
- ServiceOutputTypes,
16
- WAFV2ClientResolvedConfig,
17
- } from "../WAFV2Client";
18
- export { __MetadataBearer, $Command };
19
- export interface GetRegexPatternSetCommandInput
20
- extends GetRegexPatternSetRequest {}
21
- export interface GetRegexPatternSetCommandOutput
22
- extends GetRegexPatternSetResponse,
23
- __MetadataBearer {}
24
- export declare class GetRegexPatternSetCommand extends $Command<
25
- GetRegexPatternSetCommandInput,
26
- GetRegexPatternSetCommandOutput,
27
- WAFV2ClientResolvedConfig
28
- > {
29
- readonly input: GetRegexPatternSetCommandInput;
30
- static getEndpointParameterInstructions(): EndpointParameterInstructions;
31
- constructor(input: GetRegexPatternSetCommandInput);
32
- resolveMiddleware(
33
- clientStack: MiddlewareStack<ServiceInputTypes, ServiceOutputTypes>,
34
- configuration: WAFV2ClientResolvedConfig,
35
- options?: __HttpHandlerOptions
36
- ): Handler<GetRegexPatternSetCommandInput, GetRegexPatternSetCommandOutput>;
37
- private serialize;
38
- private deserialize;
39
- }
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 { GetRegexPatternSetRequest, GetRegexPatternSetResponse } 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 GetRegexPatternSetCommand}.
14
+ */
15
+ export interface GetRegexPatternSetCommandInput extends GetRegexPatternSetRequest {
16
+ }
17
+ /**
18
+ * @public
19
+ *
20
+ * The output of {@link GetRegexPatternSetCommand}.
21
+ */
22
+ export interface GetRegexPatternSetCommandOutput extends GetRegexPatternSetResponse, __MetadataBearer {
23
+ }
24
+ /**
25
+ * @public
26
+ * <p>Retrieves the specified <a>RegexPatternSet</a>.</p>
27
+ * @example
28
+ * Use a bare-bones client and the command you need to make an API call.
29
+ * ```javascript
30
+ * import { WAFV2Client, GetRegexPatternSetCommand } from "@aws-sdk/client-wafv2"; // ES Modules import
31
+ * // const { WAFV2Client, GetRegexPatternSetCommand } = require("@aws-sdk/client-wafv2"); // CommonJS import
32
+ * const client = new WAFV2Client(config);
33
+ * const input = { // GetRegexPatternSetRequest
34
+ * Name: "STRING_VALUE", // required
35
+ * Scope: "CLOUDFRONT" || "REGIONAL", // required
36
+ * Id: "STRING_VALUE", // required
37
+ * };
38
+ * const command = new GetRegexPatternSetCommand(input);
39
+ * const response = await client.send(command);
40
+ * // { // GetRegexPatternSetResponse
41
+ * // RegexPatternSet: { // RegexPatternSet
42
+ * // Name: "STRING_VALUE",
43
+ * // Id: "STRING_VALUE",
44
+ * // ARN: "STRING_VALUE",
45
+ * // Description: "STRING_VALUE",
46
+ * // RegularExpressionList: [ // RegularExpressionList
47
+ * // { // Regex
48
+ * // RegexString: "STRING_VALUE",
49
+ * // },
50
+ * // ],
51
+ * // },
52
+ * // LockToken: "STRING_VALUE",
53
+ * // };
54
+ *
55
+ * ```
56
+ *
57
+ * @param GetRegexPatternSetCommandInput - {@link GetRegexPatternSetCommandInput}
58
+ * @returns {@link GetRegexPatternSetCommandOutput}
59
+ * @see {@link GetRegexPatternSetCommandInput} for command's `input` shape.
60
+ * @see {@link GetRegexPatternSetCommandOutput} for command's `response` shape.
61
+ * @see {@link WAFV2ClientResolvedConfig | config} for WAFV2Client's `config` shape.
62
+ *
63
+ * @throws {@link WAFInternalErrorException} (server fault)
64
+ * <p>Your request is valid, but WAF couldn’t perform the operation because of a system
65
+ * problem. Retry your request. </p>
66
+ *
67
+ * @throws {@link WAFInvalidOperationException} (client fault)
68
+ * <p>The operation isn't valid. </p>
69
+ *
70
+ * @throws {@link WAFInvalidParameterException} (client fault)
71
+ * <p>The operation failed because WAF didn't recognize a parameter in the request. For
72
+ * example: </p>
73
+ * <ul>
74
+ * <li>
75
+ * <p>You specified a parameter name or value that isn't valid.</p>
76
+ * </li>
77
+ * <li>
78
+ * <p>Your nested statement isn't valid. You might have tried to nest a statement that
79
+ * can’t be nested. </p>
80
+ * </li>
81
+ * <li>
82
+ * <p>You tried to update a <code>WebACL</code> with a <code>DefaultAction</code> that
83
+ * isn't among the types available at <a>DefaultAction</a>.</p>
84
+ * </li>
85
+ * <li>
86
+ * <p>Your request references an ARN that is malformed, or corresponds to a resource
87
+ * with which a web ACL can't be associated.</p>
88
+ * </li>
89
+ * </ul>
90
+ *
91
+ * @throws {@link WAFNonexistentItemException} (client fault)
92
+ * <p>WAF couldn’t perform the operation because your resource doesn't exist.
93
+ * If you've just created a resource that you're using in this operation, you might
94
+ * just need to wait a few minutes. It can take from a few seconds to a number of minutes
95
+ * for changes to propagate. </p>
96
+ *
97
+ * @throws {@link WAFV2ServiceException}
98
+ * <p>Base exception class for all service exceptions from WAFV2 service.</p>
99
+ *
100
+ */
101
+ export declare class GetRegexPatternSetCommand extends $Command<GetRegexPatternSetCommandInput, GetRegexPatternSetCommandOutput, WAFV2ClientResolvedConfig> {
102
+ readonly input: GetRegexPatternSetCommandInput;
103
+ static getEndpointParameterInstructions(): EndpointParameterInstructions;
104
+ /**
105
+ * @public
106
+ */
107
+ constructor(input: GetRegexPatternSetCommandInput);
108
+ /**
109
+ * @internal
110
+ */
111
+ resolveMiddleware(clientStack: MiddlewareStack<ServiceInputTypes, ServiceOutputTypes>, configuration: WAFV2ClientResolvedConfig, options?: __HttpHandlerOptions): Handler<GetRegexPatternSetCommandInput, GetRegexPatternSetCommandOutput>;
112
+ /**
113
+ * @internal
114
+ */
115
+ private serialize;
116
+ /**
117
+ * @internal
118
+ */
119
+ private deserialize;
120
+ }