@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,42 +1,113 @@
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
- ListRegexPatternSetsRequest,
11
- ListRegexPatternSetsResponse,
12
- } from "../models/models_0";
13
- import {
14
- ServiceInputTypes,
15
- ServiceOutputTypes,
16
- WAFV2ClientResolvedConfig,
17
- } from "../WAFV2Client";
18
- export { __MetadataBearer, $Command };
19
- export interface ListRegexPatternSetsCommandInput
20
- extends ListRegexPatternSetsRequest {}
21
- export interface ListRegexPatternSetsCommandOutput
22
- extends ListRegexPatternSetsResponse,
23
- __MetadataBearer {}
24
- export declare class ListRegexPatternSetsCommand extends $Command<
25
- ListRegexPatternSetsCommandInput,
26
- ListRegexPatternSetsCommandOutput,
27
- WAFV2ClientResolvedConfig
28
- > {
29
- readonly input: ListRegexPatternSetsCommandInput;
30
- static getEndpointParameterInstructions(): EndpointParameterInstructions;
31
- constructor(input: ListRegexPatternSetsCommandInput);
32
- resolveMiddleware(
33
- clientStack: MiddlewareStack<ServiceInputTypes, ServiceOutputTypes>,
34
- configuration: WAFV2ClientResolvedConfig,
35
- options?: __HttpHandlerOptions
36
- ): Handler<
37
- ListRegexPatternSetsCommandInput,
38
- ListRegexPatternSetsCommandOutput
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 { ListRegexPatternSetsRequest, ListRegexPatternSetsResponse } 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 ListRegexPatternSetsCommand}.
14
+ */
15
+ export interface ListRegexPatternSetsCommandInput extends ListRegexPatternSetsRequest {
16
+ }
17
+ /**
18
+ * @public
19
+ *
20
+ * The output of {@link ListRegexPatternSetsCommand}.
21
+ */
22
+ export interface ListRegexPatternSetsCommandOutput extends ListRegexPatternSetsResponse, __MetadataBearer {
23
+ }
24
+ /**
25
+ * @public
26
+ * <p>Retrieves an array of <a>RegexPatternSetSummary</a> objects for the regex
27
+ * pattern sets that you manage.</p>
28
+ * @example
29
+ * Use a bare-bones client and the command you need to make an API call.
30
+ * ```javascript
31
+ * import { WAFV2Client, ListRegexPatternSetsCommand } from "@aws-sdk/client-wafv2"; // ES Modules import
32
+ * // const { WAFV2Client, ListRegexPatternSetsCommand } = require("@aws-sdk/client-wafv2"); // CommonJS import
33
+ * const client = new WAFV2Client(config);
34
+ * const input = { // ListRegexPatternSetsRequest
35
+ * Scope: "CLOUDFRONT" || "REGIONAL", // required
36
+ * NextMarker: "STRING_VALUE",
37
+ * Limit: Number("int"),
38
+ * };
39
+ * const command = new ListRegexPatternSetsCommand(input);
40
+ * const response = await client.send(command);
41
+ * // { // ListRegexPatternSetsResponse
42
+ * // NextMarker: "STRING_VALUE",
43
+ * // RegexPatternSets: [ // RegexPatternSetSummaries
44
+ * // { // RegexPatternSetSummary
45
+ * // Name: "STRING_VALUE",
46
+ * // Id: "STRING_VALUE",
47
+ * // Description: "STRING_VALUE",
48
+ * // LockToken: "STRING_VALUE",
49
+ * // ARN: "STRING_VALUE",
50
+ * // },
51
+ * // ],
52
+ * // };
53
+ *
54
+ * ```
55
+ *
56
+ * @param ListRegexPatternSetsCommandInput - {@link ListRegexPatternSetsCommandInput}
57
+ * @returns {@link ListRegexPatternSetsCommandOutput}
58
+ * @see {@link ListRegexPatternSetsCommandInput} for command's `input` shape.
59
+ * @see {@link ListRegexPatternSetsCommandOutput} for command's `response` shape.
60
+ * @see {@link WAFV2ClientResolvedConfig | config} for WAFV2Client's `config` shape.
61
+ *
62
+ * @throws {@link WAFInternalErrorException} (server fault)
63
+ * <p>Your request is valid, but WAF couldn’t perform the operation because of a system
64
+ * problem. Retry your request. </p>
65
+ *
66
+ * @throws {@link WAFInvalidOperationException} (client fault)
67
+ * <p>The operation isn't valid. </p>
68
+ *
69
+ * @throws {@link WAFInvalidParameterException} (client fault)
70
+ * <p>The operation failed because WAF didn't recognize a parameter in the request. For
71
+ * example: </p>
72
+ * <ul>
73
+ * <li>
74
+ * <p>You specified a parameter name or value that isn't valid.</p>
75
+ * </li>
76
+ * <li>
77
+ * <p>Your nested statement isn't valid. You might have tried to nest a statement that
78
+ * can’t be nested. </p>
79
+ * </li>
80
+ * <li>
81
+ * <p>You tried to update a <code>WebACL</code> with a <code>DefaultAction</code> that
82
+ * isn't among the types available at <a>DefaultAction</a>.</p>
83
+ * </li>
84
+ * <li>
85
+ * <p>Your request references an ARN that is malformed, or corresponds to a resource
86
+ * with which a web ACL can't be associated.</p>
87
+ * </li>
88
+ * </ul>
89
+ *
90
+ * @throws {@link WAFV2ServiceException}
91
+ * <p>Base exception class for all service exceptions from WAFV2 service.</p>
92
+ *
93
+ */
94
+ export declare class ListRegexPatternSetsCommand extends $Command<ListRegexPatternSetsCommandInput, ListRegexPatternSetsCommandOutput, WAFV2ClientResolvedConfig> {
95
+ readonly input: ListRegexPatternSetsCommandInput;
96
+ static getEndpointParameterInstructions(): EndpointParameterInstructions;
97
+ /**
98
+ * @public
99
+ */
100
+ constructor(input: ListRegexPatternSetsCommandInput);
101
+ /**
102
+ * @internal
103
+ */
104
+ resolveMiddleware(clientStack: MiddlewareStack<ServiceInputTypes, ServiceOutputTypes>, configuration: WAFV2ClientResolvedConfig, options?: __HttpHandlerOptions): Handler<ListRegexPatternSetsCommandInput, ListRegexPatternSetsCommandOutput>;
105
+ /**
106
+ * @internal
107
+ */
108
+ private serialize;
109
+ /**
110
+ * @internal
111
+ */
112
+ private deserialize;
113
+ }
@@ -1,42 +1,112 @@
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
- ListResourcesForWebACLRequest,
11
- ListResourcesForWebACLResponse,
12
- } from "../models/models_0";
13
- import {
14
- ServiceInputTypes,
15
- ServiceOutputTypes,
16
- WAFV2ClientResolvedConfig,
17
- } from "../WAFV2Client";
18
- export { __MetadataBearer, $Command };
19
- export interface ListResourcesForWebACLCommandInput
20
- extends ListResourcesForWebACLRequest {}
21
- export interface ListResourcesForWebACLCommandOutput
22
- extends ListResourcesForWebACLResponse,
23
- __MetadataBearer {}
24
- export declare class ListResourcesForWebACLCommand extends $Command<
25
- ListResourcesForWebACLCommandInput,
26
- ListResourcesForWebACLCommandOutput,
27
- WAFV2ClientResolvedConfig
28
- > {
29
- readonly input: ListResourcesForWebACLCommandInput;
30
- static getEndpointParameterInstructions(): EndpointParameterInstructions;
31
- constructor(input: ListResourcesForWebACLCommandInput);
32
- resolveMiddleware(
33
- clientStack: MiddlewareStack<ServiceInputTypes, ServiceOutputTypes>,
34
- configuration: WAFV2ClientResolvedConfig,
35
- options?: __HttpHandlerOptions
36
- ): Handler<
37
- ListResourcesForWebACLCommandInput,
38
- ListResourcesForWebACLCommandOutput
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 { ListResourcesForWebACLRequest, ListResourcesForWebACLResponse } 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 ListResourcesForWebACLCommand}.
14
+ */
15
+ export interface ListResourcesForWebACLCommandInput extends ListResourcesForWebACLRequest {
16
+ }
17
+ /**
18
+ * @public
19
+ *
20
+ * The output of {@link ListResourcesForWebACLCommand}.
21
+ */
22
+ export interface ListResourcesForWebACLCommandOutput extends ListResourcesForWebACLResponse, __MetadataBearer {
23
+ }
24
+ /**
25
+ * @public
26
+ * <p>Retrieves an array of the Amazon Resource Names (ARNs) for the regional resources that
27
+ * are associated with the specified web ACL. If you want the list of Amazon CloudFront resources, use
28
+ * the CloudFront call <code>ListDistributionsByWebACLId</code>. </p>
29
+ * @example
30
+ * Use a bare-bones client and the command you need to make an API call.
31
+ * ```javascript
32
+ * import { WAFV2Client, ListResourcesForWebACLCommand } from "@aws-sdk/client-wafv2"; // ES Modules import
33
+ * // const { WAFV2Client, ListResourcesForWebACLCommand } = require("@aws-sdk/client-wafv2"); // CommonJS import
34
+ * const client = new WAFV2Client(config);
35
+ * const input = { // ListResourcesForWebACLRequest
36
+ * WebACLArn: "STRING_VALUE", // required
37
+ * ResourceType: "APPLICATION_LOAD_BALANCER" || "API_GATEWAY" || "APPSYNC" || "COGNITO_USER_POOL" || "APP_RUNNER_SERVICE" || "VERIFIED_ACCESS_INSTANCE",
38
+ * };
39
+ * const command = new ListResourcesForWebACLCommand(input);
40
+ * const response = await client.send(command);
41
+ * // { // ListResourcesForWebACLResponse
42
+ * // ResourceArns: [ // ResourceArns
43
+ * // "STRING_VALUE",
44
+ * // ],
45
+ * // };
46
+ *
47
+ * ```
48
+ *
49
+ * @param ListResourcesForWebACLCommandInput - {@link ListResourcesForWebACLCommandInput}
50
+ * @returns {@link ListResourcesForWebACLCommandOutput}
51
+ * @see {@link ListResourcesForWebACLCommandInput} for command's `input` shape.
52
+ * @see {@link ListResourcesForWebACLCommandOutput} for command's `response` shape.
53
+ * @see {@link WAFV2ClientResolvedConfig | config} for WAFV2Client's `config` shape.
54
+ *
55
+ * @throws {@link WAFInternalErrorException} (server fault)
56
+ * <p>Your request is valid, but WAF couldn’t perform the operation because of a system
57
+ * problem. Retry your request. </p>
58
+ *
59
+ * @throws {@link WAFInvalidOperationException} (client fault)
60
+ * <p>The operation isn't valid. </p>
61
+ *
62
+ * @throws {@link WAFInvalidParameterException} (client fault)
63
+ * <p>The operation failed because WAF didn't recognize a parameter in the request. For
64
+ * example: </p>
65
+ * <ul>
66
+ * <li>
67
+ * <p>You specified a parameter name or value that isn't valid.</p>
68
+ * </li>
69
+ * <li>
70
+ * <p>Your nested statement isn't valid. You might have tried to nest a statement that
71
+ * can’t be nested. </p>
72
+ * </li>
73
+ * <li>
74
+ * <p>You tried to update a <code>WebACL</code> with a <code>DefaultAction</code> that
75
+ * isn't among the types available at <a>DefaultAction</a>.</p>
76
+ * </li>
77
+ * <li>
78
+ * <p>Your request references an ARN that is malformed, or corresponds to a resource
79
+ * with which a web ACL can't be associated.</p>
80
+ * </li>
81
+ * </ul>
82
+ *
83
+ * @throws {@link WAFNonexistentItemException} (client fault)
84
+ * <p>WAF couldn’t perform the operation because your resource doesn't exist.
85
+ * If you've just created a resource that you're using in this operation, you might
86
+ * just need to wait a few minutes. It can take from a few seconds to a number of minutes
87
+ * for changes to propagate. </p>
88
+ *
89
+ * @throws {@link WAFV2ServiceException}
90
+ * <p>Base exception class for all service exceptions from WAFV2 service.</p>
91
+ *
92
+ */
93
+ export declare class ListResourcesForWebACLCommand extends $Command<ListResourcesForWebACLCommandInput, ListResourcesForWebACLCommandOutput, WAFV2ClientResolvedConfig> {
94
+ readonly input: ListResourcesForWebACLCommandInput;
95
+ static getEndpointParameterInstructions(): EndpointParameterInstructions;
96
+ /**
97
+ * @public
98
+ */
99
+ constructor(input: ListResourcesForWebACLCommandInput);
100
+ /**
101
+ * @internal
102
+ */
103
+ resolveMiddleware(clientStack: MiddlewareStack<ServiceInputTypes, ServiceOutputTypes>, configuration: WAFV2ClientResolvedConfig, options?: __HttpHandlerOptions): Handler<ListResourcesForWebACLCommandInput, ListResourcesForWebACLCommandOutput>;
104
+ /**
105
+ * @internal
106
+ */
107
+ private serialize;
108
+ /**
109
+ * @internal
110
+ */
111
+ private deserialize;
112
+ }
@@ -1,38 +1,113 @@
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
- ListRuleGroupsRequest,
11
- ListRuleGroupsResponse,
12
- } from "../models/models_0";
13
- import {
14
- ServiceInputTypes,
15
- ServiceOutputTypes,
16
- WAFV2ClientResolvedConfig,
17
- } from "../WAFV2Client";
18
- export { __MetadataBearer, $Command };
19
- export interface ListRuleGroupsCommandInput extends ListRuleGroupsRequest {}
20
- export interface ListRuleGroupsCommandOutput
21
- extends ListRuleGroupsResponse,
22
- __MetadataBearer {}
23
- export declare class ListRuleGroupsCommand extends $Command<
24
- ListRuleGroupsCommandInput,
25
- ListRuleGroupsCommandOutput,
26
- WAFV2ClientResolvedConfig
27
- > {
28
- readonly input: ListRuleGroupsCommandInput;
29
- static getEndpointParameterInstructions(): EndpointParameterInstructions;
30
- constructor(input: ListRuleGroupsCommandInput);
31
- resolveMiddleware(
32
- clientStack: MiddlewareStack<ServiceInputTypes, ServiceOutputTypes>,
33
- configuration: WAFV2ClientResolvedConfig,
34
- options?: __HttpHandlerOptions
35
- ): Handler<ListRuleGroupsCommandInput, ListRuleGroupsCommandOutput>;
36
- private serialize;
37
- private deserialize;
38
- }
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 { ListRuleGroupsRequest, ListRuleGroupsResponse } 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 ListRuleGroupsCommand}.
14
+ */
15
+ export interface ListRuleGroupsCommandInput extends ListRuleGroupsRequest {
16
+ }
17
+ /**
18
+ * @public
19
+ *
20
+ * The output of {@link ListRuleGroupsCommand}.
21
+ */
22
+ export interface ListRuleGroupsCommandOutput extends ListRuleGroupsResponse, __MetadataBearer {
23
+ }
24
+ /**
25
+ * @public
26
+ * <p>Retrieves an array of <a>RuleGroupSummary</a> objects for the rule groups
27
+ * that you manage. </p>
28
+ * @example
29
+ * Use a bare-bones client and the command you need to make an API call.
30
+ * ```javascript
31
+ * import { WAFV2Client, ListRuleGroupsCommand } from "@aws-sdk/client-wafv2"; // ES Modules import
32
+ * // const { WAFV2Client, ListRuleGroupsCommand } = require("@aws-sdk/client-wafv2"); // CommonJS import
33
+ * const client = new WAFV2Client(config);
34
+ * const input = { // ListRuleGroupsRequest
35
+ * Scope: "CLOUDFRONT" || "REGIONAL", // required
36
+ * NextMarker: "STRING_VALUE",
37
+ * Limit: Number("int"),
38
+ * };
39
+ * const command = new ListRuleGroupsCommand(input);
40
+ * const response = await client.send(command);
41
+ * // { // ListRuleGroupsResponse
42
+ * // NextMarker: "STRING_VALUE",
43
+ * // RuleGroups: [ // RuleGroupSummaries
44
+ * // { // RuleGroupSummary
45
+ * // Name: "STRING_VALUE",
46
+ * // Id: "STRING_VALUE",
47
+ * // Description: "STRING_VALUE",
48
+ * // LockToken: "STRING_VALUE",
49
+ * // ARN: "STRING_VALUE",
50
+ * // },
51
+ * // ],
52
+ * // };
53
+ *
54
+ * ```
55
+ *
56
+ * @param ListRuleGroupsCommandInput - {@link ListRuleGroupsCommandInput}
57
+ * @returns {@link ListRuleGroupsCommandOutput}
58
+ * @see {@link ListRuleGroupsCommandInput} for command's `input` shape.
59
+ * @see {@link ListRuleGroupsCommandOutput} for command's `response` shape.
60
+ * @see {@link WAFV2ClientResolvedConfig | config} for WAFV2Client's `config` shape.
61
+ *
62
+ * @throws {@link WAFInternalErrorException} (server fault)
63
+ * <p>Your request is valid, but WAF couldn’t perform the operation because of a system
64
+ * problem. Retry your request. </p>
65
+ *
66
+ * @throws {@link WAFInvalidOperationException} (client fault)
67
+ * <p>The operation isn't valid. </p>
68
+ *
69
+ * @throws {@link WAFInvalidParameterException} (client fault)
70
+ * <p>The operation failed because WAF didn't recognize a parameter in the request. For
71
+ * example: </p>
72
+ * <ul>
73
+ * <li>
74
+ * <p>You specified a parameter name or value that isn't valid.</p>
75
+ * </li>
76
+ * <li>
77
+ * <p>Your nested statement isn't valid. You might have tried to nest a statement that
78
+ * can’t be nested. </p>
79
+ * </li>
80
+ * <li>
81
+ * <p>You tried to update a <code>WebACL</code> with a <code>DefaultAction</code> that
82
+ * isn't among the types available at <a>DefaultAction</a>.</p>
83
+ * </li>
84
+ * <li>
85
+ * <p>Your request references an ARN that is malformed, or corresponds to a resource
86
+ * with which a web ACL can't be associated.</p>
87
+ * </li>
88
+ * </ul>
89
+ *
90
+ * @throws {@link WAFV2ServiceException}
91
+ * <p>Base exception class for all service exceptions from WAFV2 service.</p>
92
+ *
93
+ */
94
+ export declare class ListRuleGroupsCommand extends $Command<ListRuleGroupsCommandInput, ListRuleGroupsCommandOutput, WAFV2ClientResolvedConfig> {
95
+ readonly input: ListRuleGroupsCommandInput;
96
+ static getEndpointParameterInstructions(): EndpointParameterInstructions;
97
+ /**
98
+ * @public
99
+ */
100
+ constructor(input: ListRuleGroupsCommandInput);
101
+ /**
102
+ * @internal
103
+ */
104
+ resolveMiddleware(clientStack: MiddlewareStack<ServiceInputTypes, ServiceOutputTypes>, configuration: WAFV2ClientResolvedConfig, options?: __HttpHandlerOptions): Handler<ListRuleGroupsCommandInput, ListRuleGroupsCommandOutput>;
105
+ /**
106
+ * @internal
107
+ */
108
+ private serialize;
109
+ /**
110
+ * @internal
111
+ */
112
+ private deserialize;
113
+ }
@@ -1,39 +1,132 @@
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
- ListTagsForResourceRequest,
11
- ListTagsForResourceResponse,
12
- } from "../models/models_0";
13
- import {
14
- ServiceInputTypes,
15
- ServiceOutputTypes,
16
- WAFV2ClientResolvedConfig,
17
- } from "../WAFV2Client";
18
- export { __MetadataBearer, $Command };
19
- export interface ListTagsForResourceCommandInput
20
- extends ListTagsForResourceRequest {}
21
- export interface ListTagsForResourceCommandOutput
22
- extends ListTagsForResourceResponse,
23
- __MetadataBearer {}
24
- export declare class ListTagsForResourceCommand extends $Command<
25
- ListTagsForResourceCommandInput,
26
- ListTagsForResourceCommandOutput,
27
- WAFV2ClientResolvedConfig
28
- > {
29
- readonly input: ListTagsForResourceCommandInput;
30
- static getEndpointParameterInstructions(): EndpointParameterInstructions;
31
- constructor(input: ListTagsForResourceCommandInput);
32
- resolveMiddleware(
33
- clientStack: MiddlewareStack<ServiceInputTypes, ServiceOutputTypes>,
34
- configuration: WAFV2ClientResolvedConfig,
35
- options?: __HttpHandlerOptions
36
- ): Handler<ListTagsForResourceCommandInput, ListTagsForResourceCommandOutput>;
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 { ListTagsForResourceRequest, ListTagsForResourceResponse } 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 ListTagsForResourceCommand}.
14
+ */
15
+ export interface ListTagsForResourceCommandInput extends ListTagsForResourceRequest {
16
+ }
17
+ /**
18
+ * @public
19
+ *
20
+ * The output of {@link ListTagsForResourceCommand}.
21
+ */
22
+ export interface ListTagsForResourceCommandOutput extends ListTagsForResourceResponse, __MetadataBearer {
23
+ }
24
+ /**
25
+ * @public
26
+ * <p>Retrieves the <a>TagInfoForResource</a> for the specified resource. Tags are
27
+ * key:value pairs that you can use to categorize and manage your resources, for purposes like
28
+ * billing. For example, you might set the tag key to "customer" and the value to the customer
29
+ * name or ID. You can specify one or more tags to add to each Amazon Web Services resource, up to 50 tags
30
+ * for a resource.</p>
31
+ * <p>You can tag the Amazon Web Services resources that you manage through WAF: web ACLs, rule
32
+ * groups, IP sets, and regex pattern sets. You can't manage or view tags through the WAF
33
+ * console. </p>
34
+ * @example
35
+ * Use a bare-bones client and the command you need to make an API call.
36
+ * ```javascript
37
+ * import { WAFV2Client, ListTagsForResourceCommand } from "@aws-sdk/client-wafv2"; // ES Modules import
38
+ * // const { WAFV2Client, ListTagsForResourceCommand } = require("@aws-sdk/client-wafv2"); // CommonJS import
39
+ * const client = new WAFV2Client(config);
40
+ * const input = { // ListTagsForResourceRequest
41
+ * NextMarker: "STRING_VALUE",
42
+ * Limit: Number("int"),
43
+ * ResourceARN: "STRING_VALUE", // required
44
+ * };
45
+ * const command = new ListTagsForResourceCommand(input);
46
+ * const response = await client.send(command);
47
+ * // { // ListTagsForResourceResponse
48
+ * // NextMarker: "STRING_VALUE",
49
+ * // TagInfoForResource: { // TagInfoForResource
50
+ * // ResourceARN: "STRING_VALUE",
51
+ * // TagList: [ // TagList
52
+ * // { // Tag
53
+ * // Key: "STRING_VALUE", // required
54
+ * // Value: "STRING_VALUE", // required
55
+ * // },
56
+ * // ],
57
+ * // },
58
+ * // };
59
+ *
60
+ * ```
61
+ *
62
+ * @param ListTagsForResourceCommandInput - {@link ListTagsForResourceCommandInput}
63
+ * @returns {@link ListTagsForResourceCommandOutput}
64
+ * @see {@link ListTagsForResourceCommandInput} for command's `input` shape.
65
+ * @see {@link ListTagsForResourceCommandOutput} for command's `response` shape.
66
+ * @see {@link WAFV2ClientResolvedConfig | config} for WAFV2Client's `config` shape.
67
+ *
68
+ * @throws {@link WAFInternalErrorException} (server fault)
69
+ * <p>Your request is valid, but WAF couldn’t perform the operation because of a system
70
+ * problem. Retry your request. </p>
71
+ *
72
+ * @throws {@link WAFInvalidOperationException} (client fault)
73
+ * <p>The operation isn't valid. </p>
74
+ *
75
+ * @throws {@link WAFInvalidParameterException} (client fault)
76
+ * <p>The operation failed because WAF didn't recognize a parameter in the request. For
77
+ * example: </p>
78
+ * <ul>
79
+ * <li>
80
+ * <p>You specified a parameter name or value that isn't valid.</p>
81
+ * </li>
82
+ * <li>
83
+ * <p>Your nested statement isn't valid. You might have tried to nest a statement that
84
+ * can’t be nested. </p>
85
+ * </li>
86
+ * <li>
87
+ * <p>You tried to update a <code>WebACL</code> with a <code>DefaultAction</code> that
88
+ * isn't among the types available at <a>DefaultAction</a>.</p>
89
+ * </li>
90
+ * <li>
91
+ * <p>Your request references an ARN that is malformed, or corresponds to a resource
92
+ * with which a web ACL can't be associated.</p>
93
+ * </li>
94
+ * </ul>
95
+ *
96
+ * @throws {@link WAFNonexistentItemException} (client fault)
97
+ * <p>WAF couldn’t perform the operation because your resource doesn't exist.
98
+ * If you've just created a resource that you're using in this operation, you might
99
+ * just need to wait a few minutes. It can take from a few seconds to a number of minutes
100
+ * for changes to propagate. </p>
101
+ *
102
+ * @throws {@link WAFTagOperationException} (client fault)
103
+ * <p>An error occurred during the tagging operation. Retry your request.</p>
104
+ *
105
+ * @throws {@link WAFTagOperationInternalErrorException} (server fault)
106
+ * <p>WAF couldn’t perform your tagging operation because of an internal error. Retry
107
+ * your request.</p>
108
+ *
109
+ * @throws {@link WAFV2ServiceException}
110
+ * <p>Base exception class for all service exceptions from WAFV2 service.</p>
111
+ *
112
+ */
113
+ export declare class ListTagsForResourceCommand extends $Command<ListTagsForResourceCommandInput, ListTagsForResourceCommandOutput, WAFV2ClientResolvedConfig> {
114
+ readonly input: ListTagsForResourceCommandInput;
115
+ static getEndpointParameterInstructions(): EndpointParameterInstructions;
116
+ /**
117
+ * @public
118
+ */
119
+ constructor(input: ListTagsForResourceCommandInput);
120
+ /**
121
+ * @internal
122
+ */
123
+ resolveMiddleware(clientStack: MiddlewareStack<ServiceInputTypes, ServiceOutputTypes>, configuration: WAFV2ClientResolvedConfig, options?: __HttpHandlerOptions): Handler<ListTagsForResourceCommandInput, ListTagsForResourceCommandOutput>;
124
+ /**
125
+ * @internal
126
+ */
127
+ private serialize;
128
+ /**
129
+ * @internal
130
+ */
131
+ private deserialize;
132
+ }