@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.
- package/README.md +7 -7
- package/dist-types/models/models_0.d.ts +26 -6
- package/dist-types/ts3.4/WAFV2.d.ts +438 -918
- package/dist-types/ts3.4/WAFV2Client.d.ts +277 -436
- package/dist-types/ts3.4/commands/AssociateWebACLCommand.d.ts +118 -38
- package/dist-types/ts3.4/commands/CheckCapacityCommand.d.ts +1093 -38
- package/dist-types/ts3.4/commands/CreateAPIKeyCommand.d.ts +115 -35
- package/dist-types/ts3.4/commands/CreateIPSetCommand.d.ts +144 -35
- package/dist-types/ts3.4/commands/CreateRegexPatternSetCommand.d.ts +143 -42
- package/dist-types/ts3.4/commands/CreateRuleGroupCommand.d.ts +1116 -38
- package/dist-types/ts3.4/commands/CreateWebACLCommand.d.ts +1145 -35
- package/dist-types/ts3.4/commands/DeleteFirewallManagerRuleGroupsCommand.d.ts +115 -42
- package/dist-types/ts3.4/commands/DeleteIPSetCommand.d.ts +124 -35
- package/dist-types/ts3.4/commands/DeleteLoggingConfigurationCommand.d.ts +110 -42
- package/dist-types/ts3.4/commands/DeletePermissionPolicyCommand.d.ts +103 -42
- package/dist-types/ts3.4/commands/DeleteRegexPatternSetCommand.d.ts +124 -42
- package/dist-types/ts3.4/commands/DeleteRuleGroupCommand.d.ts +124 -38
- package/dist-types/ts3.4/commands/DeleteWebACLCommand.d.ts +158 -35
- package/dist-types/ts3.4/commands/DescribeAllManagedProductsCommand.d.ts +92 -42
- package/dist-types/ts3.4/commands/DescribeManagedProductsByVendorCommand.d.ts +114 -42
- package/dist-types/ts3.4/commands/DescribeManagedRuleGroupCommand.d.ts +191 -42
- package/dist-types/ts3.4/commands/DisassociateWebACLCommand.d.ts +109 -39
- package/dist-types/ts3.4/commands/GenerateMobileSdkReleaseUrlCommand.d.ts +110 -42
- package/dist-types/ts3.4/commands/GetDecryptedAPIKeyCommand.d.ts +112 -39
- package/dist-types/ts3.4/commands/GetIPSetCommand.d.ts +119 -35
- package/dist-types/ts3.4/commands/GetLoggingConfigurationCommand.d.ts +192 -42
- package/dist-types/ts3.4/commands/GetManagedRuleSetCommand.d.ts +131 -39
- package/dist-types/ts3.4/commands/GetMobileSdkReleaseCommand.d.ts +121 -39
- package/dist-types/ts3.4/commands/GetPermissionPolicyCommand.d.ts +105 -39
- package/dist-types/ts3.4/commands/GetRateBasedStatementManagedKeysCommand.d.ts +142 -42
- package/dist-types/ts3.4/commands/GetRegexPatternSetCommand.d.ts +120 -39
- package/dist-types/ts3.4/commands/GetRuleGroupCommand.d.ts +1088 -35
- package/dist-types/ts3.4/commands/GetSampledRequestsCommand.d.ts +168 -39
- package/dist-types/ts3.4/commands/GetWebACLCommand.d.ts +1283 -35
- package/dist-types/ts3.4/commands/GetWebACLForResourceCommand.d.ts +1286 -42
- package/dist-types/ts3.4/commands/ListAPIKeysCommand.d.ts +121 -35
- package/dist-types/ts3.4/commands/ListAvailableManagedRuleGroupVersionsCommand.d.ts +118 -42
- package/dist-types/ts3.4/commands/ListAvailableManagedRuleGroupsCommand.d.ts +113 -42
- package/dist-types/ts3.4/commands/ListIPSetsCommand.d.ts +113 -35
- package/dist-types/ts3.4/commands/ListLoggingConfigurationsCommand.d.ts +191 -42
- package/dist-types/ts3.4/commands/ListManagedRuleSetsCommand.d.ts +117 -39
- package/dist-types/ts3.4/commands/ListMobileSdkReleasesCommand.d.ts +112 -42
- package/dist-types/ts3.4/commands/ListRegexPatternSetsCommand.d.ts +113 -42
- package/dist-types/ts3.4/commands/ListResourcesForWebACLCommand.d.ts +112 -42
- package/dist-types/ts3.4/commands/ListRuleGroupsCommand.d.ts +113 -38
- package/dist-types/ts3.4/commands/ListTagsForResourceCommand.d.ts +132 -39
- package/dist-types/ts3.4/commands/ListWebACLsCommand.d.ts +113 -35
- package/dist-types/ts3.4/commands/PutLoggingConfigurationCommand.d.ts +345 -42
- package/dist-types/ts3.4/commands/PutManagedRuleSetVersionsCommand.d.ts +133 -42
- package/dist-types/ts3.4/commands/PutPermissionPolicyCommand.d.ts +145 -39
- package/dist-types/ts3.4/commands/TagResourceCommand.d.ts +131 -35
- package/dist-types/ts3.4/commands/UntagResourceCommand.d.ts +118 -38
- package/dist-types/ts3.4/commands/UpdateIPSetCommand.d.ts +146 -35
- package/dist-types/ts3.4/commands/UpdateManagedRuleSetVersionExpiryDateCommand.d.ts +125 -42
- package/dist-types/ts3.4/commands/UpdateRegexPatternSetCommand.d.ts +148 -42
- package/dist-types/ts3.4/commands/UpdateRuleGroupCommand.d.ts +1128 -38
- package/dist-types/ts3.4/commands/UpdateWebACLCommand.d.ts +1146 -35
- package/dist-types/ts3.4/commands/index.d.ts +53 -53
- package/dist-types/ts3.4/endpoint/EndpointParameters.d.ts +22 -33
- package/dist-types/ts3.4/endpoint/endpointResolver.d.ts +5 -8
- package/dist-types/ts3.4/endpoint/ruleset.d.ts +2 -2
- package/dist-types/ts3.4/extensionConfiguration.d.ts +8 -7
- package/dist-types/ts3.4/index.d.ts +68 -6
- package/dist-types/ts3.4/models/WAFV2ServiceException.d.ts +13 -8
- package/dist-types/ts3.4/models/index.d.ts +1 -1
- package/dist-types/ts3.4/models/models_0.d.ts +7951 -1764
- package/dist-types/ts3.4/protocols/Aws_json1_1.d.ts +479 -641
- package/dist-types/ts3.4/runtimeConfig.browser.d.ts +46 -97
- package/dist-types/ts3.4/runtimeConfig.d.ts +46 -97
- package/dist-types/ts3.4/runtimeConfig.native.d.ts +45 -88
- package/dist-types/ts3.4/runtimeConfig.shared.d.ts +19 -19
- package/dist-types/ts3.4/runtimeExtensions.d.ts +17 -11
- package/package.json +3 -3
|
@@ -1,39 +1,168 @@
|
|
|
1
|
-
import { EndpointParameterInstructions } from "@smithy/middleware-endpoint";
|
|
2
|
-
import { Command as $Command } from "@smithy/smithy-client";
|
|
3
|
-
import {
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
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 { GetSampledRequestsRequest, GetSampledRequestsResponse } 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 GetSampledRequestsCommand}.
|
|
14
|
+
*/
|
|
15
|
+
export interface GetSampledRequestsCommandInput extends GetSampledRequestsRequest {
|
|
16
|
+
}
|
|
17
|
+
/**
|
|
18
|
+
* @public
|
|
19
|
+
*
|
|
20
|
+
* The output of {@link GetSampledRequestsCommand}.
|
|
21
|
+
*/
|
|
22
|
+
export interface GetSampledRequestsCommandOutput extends GetSampledRequestsResponse, __MetadataBearer {
|
|
23
|
+
}
|
|
24
|
+
/**
|
|
25
|
+
* @public
|
|
26
|
+
* <p>Gets detailed information about a specified number of requests--a sample--that WAF
|
|
27
|
+
* randomly selects from among the first 5,000 requests that your Amazon Web Services resource received
|
|
28
|
+
* during a time range that you choose. You can specify a sample size of up to 500 requests,
|
|
29
|
+
* and you can specify any time range in the previous three hours.</p>
|
|
30
|
+
* <p>
|
|
31
|
+
* <code>GetSampledRequests</code> returns a time range, which is usually the time range that
|
|
32
|
+
* you specified. However, if your resource (such as a CloudFront distribution) received 5,000
|
|
33
|
+
* requests before the specified time range elapsed, <code>GetSampledRequests</code> returns
|
|
34
|
+
* an updated time range. This new time range indicates the actual period during which WAF
|
|
35
|
+
* selected the requests in the sample.</p>
|
|
36
|
+
* @example
|
|
37
|
+
* Use a bare-bones client and the command you need to make an API call.
|
|
38
|
+
* ```javascript
|
|
39
|
+
* import { WAFV2Client, GetSampledRequestsCommand } from "@aws-sdk/client-wafv2"; // ES Modules import
|
|
40
|
+
* // const { WAFV2Client, GetSampledRequestsCommand } = require("@aws-sdk/client-wafv2"); // CommonJS import
|
|
41
|
+
* const client = new WAFV2Client(config);
|
|
42
|
+
* const input = { // GetSampledRequestsRequest
|
|
43
|
+
* WebAclArn: "STRING_VALUE", // required
|
|
44
|
+
* RuleMetricName: "STRING_VALUE", // required
|
|
45
|
+
* Scope: "CLOUDFRONT" || "REGIONAL", // required
|
|
46
|
+
* TimeWindow: { // TimeWindow
|
|
47
|
+
* StartTime: new Date("TIMESTAMP"), // required
|
|
48
|
+
* EndTime: new Date("TIMESTAMP"), // required
|
|
49
|
+
* },
|
|
50
|
+
* MaxItems: Number("long"), // required
|
|
51
|
+
* };
|
|
52
|
+
* const command = new GetSampledRequestsCommand(input);
|
|
53
|
+
* const response = await client.send(command);
|
|
54
|
+
* // { // GetSampledRequestsResponse
|
|
55
|
+
* // SampledRequests: [ // SampledHTTPRequests
|
|
56
|
+
* // { // SampledHTTPRequest
|
|
57
|
+
* // Request: { // HTTPRequest
|
|
58
|
+
* // ClientIP: "STRING_VALUE",
|
|
59
|
+
* // Country: "STRING_VALUE",
|
|
60
|
+
* // URI: "STRING_VALUE",
|
|
61
|
+
* // Method: "STRING_VALUE",
|
|
62
|
+
* // HTTPVersion: "STRING_VALUE",
|
|
63
|
+
* // Headers: [ // HTTPHeaders
|
|
64
|
+
* // { // HTTPHeader
|
|
65
|
+
* // Name: "STRING_VALUE",
|
|
66
|
+
* // Value: "STRING_VALUE",
|
|
67
|
+
* // },
|
|
68
|
+
* // ],
|
|
69
|
+
* // },
|
|
70
|
+
* // Weight: Number("long"), // required
|
|
71
|
+
* // Timestamp: new Date("TIMESTAMP"),
|
|
72
|
+
* // Action: "STRING_VALUE",
|
|
73
|
+
* // RuleNameWithinRuleGroup: "STRING_VALUE",
|
|
74
|
+
* // RequestHeadersInserted: [
|
|
75
|
+
* // {
|
|
76
|
+
* // Name: "STRING_VALUE",
|
|
77
|
+
* // Value: "STRING_VALUE",
|
|
78
|
+
* // },
|
|
79
|
+
* // ],
|
|
80
|
+
* // ResponseCodeSent: Number("int"),
|
|
81
|
+
* // Labels: [ // Labels
|
|
82
|
+
* // { // Label
|
|
83
|
+
* // Name: "STRING_VALUE", // required
|
|
84
|
+
* // },
|
|
85
|
+
* // ],
|
|
86
|
+
* // CaptchaResponse: { // CaptchaResponse
|
|
87
|
+
* // ResponseCode: Number("int"),
|
|
88
|
+
* // SolveTimestamp: Number("long"),
|
|
89
|
+
* // FailureReason: "TOKEN_MISSING" || "TOKEN_EXPIRED" || "TOKEN_INVALID" || "TOKEN_DOMAIN_MISMATCH",
|
|
90
|
+
* // },
|
|
91
|
+
* // ChallengeResponse: { // ChallengeResponse
|
|
92
|
+
* // ResponseCode: Number("int"),
|
|
93
|
+
* // SolveTimestamp: Number("long"),
|
|
94
|
+
* // FailureReason: "TOKEN_MISSING" || "TOKEN_EXPIRED" || "TOKEN_INVALID" || "TOKEN_DOMAIN_MISMATCH",
|
|
95
|
+
* // },
|
|
96
|
+
* // OverriddenAction: "STRING_VALUE",
|
|
97
|
+
* // },
|
|
98
|
+
* // ],
|
|
99
|
+
* // PopulationSize: Number("long"),
|
|
100
|
+
* // TimeWindow: { // TimeWindow
|
|
101
|
+
* // StartTime: new Date("TIMESTAMP"), // required
|
|
102
|
+
* // EndTime: new Date("TIMESTAMP"), // required
|
|
103
|
+
* // },
|
|
104
|
+
* // };
|
|
105
|
+
*
|
|
106
|
+
* ```
|
|
107
|
+
*
|
|
108
|
+
* @param GetSampledRequestsCommandInput - {@link GetSampledRequestsCommandInput}
|
|
109
|
+
* @returns {@link GetSampledRequestsCommandOutput}
|
|
110
|
+
* @see {@link GetSampledRequestsCommandInput} for command's `input` shape.
|
|
111
|
+
* @see {@link GetSampledRequestsCommandOutput} for command's `response` shape.
|
|
112
|
+
* @see {@link WAFV2ClientResolvedConfig | config} for WAFV2Client's `config` shape.
|
|
113
|
+
*
|
|
114
|
+
* @throws {@link WAFInternalErrorException} (server fault)
|
|
115
|
+
* <p>Your request is valid, but WAF couldn’t perform the operation because of a system
|
|
116
|
+
* problem. Retry your request. </p>
|
|
117
|
+
*
|
|
118
|
+
* @throws {@link WAFInvalidParameterException} (client fault)
|
|
119
|
+
* <p>The operation failed because WAF didn't recognize a parameter in the request. For
|
|
120
|
+
* example: </p>
|
|
121
|
+
* <ul>
|
|
122
|
+
* <li>
|
|
123
|
+
* <p>You specified a parameter name or value that isn't valid.</p>
|
|
124
|
+
* </li>
|
|
125
|
+
* <li>
|
|
126
|
+
* <p>Your nested statement isn't valid. You might have tried to nest a statement that
|
|
127
|
+
* can’t be nested. </p>
|
|
128
|
+
* </li>
|
|
129
|
+
* <li>
|
|
130
|
+
* <p>You tried to update a <code>WebACL</code> with a <code>DefaultAction</code> that
|
|
131
|
+
* isn't among the types available at <a>DefaultAction</a>.</p>
|
|
132
|
+
* </li>
|
|
133
|
+
* <li>
|
|
134
|
+
* <p>Your request references an ARN that is malformed, or corresponds to a resource
|
|
135
|
+
* with which a web ACL can't be associated.</p>
|
|
136
|
+
* </li>
|
|
137
|
+
* </ul>
|
|
138
|
+
*
|
|
139
|
+
* @throws {@link WAFNonexistentItemException} (client fault)
|
|
140
|
+
* <p>WAF couldn’t perform the operation because your resource doesn't exist.
|
|
141
|
+
* If you've just created a resource that you're using in this operation, you might
|
|
142
|
+
* just need to wait a few minutes. It can take from a few seconds to a number of minutes
|
|
143
|
+
* for changes to propagate. </p>
|
|
144
|
+
*
|
|
145
|
+
* @throws {@link WAFV2ServiceException}
|
|
146
|
+
* <p>Base exception class for all service exceptions from WAFV2 service.</p>
|
|
147
|
+
*
|
|
148
|
+
*/
|
|
149
|
+
export declare class GetSampledRequestsCommand extends $Command<GetSampledRequestsCommandInput, GetSampledRequestsCommandOutput, WAFV2ClientResolvedConfig> {
|
|
150
|
+
readonly input: GetSampledRequestsCommandInput;
|
|
151
|
+
static getEndpointParameterInstructions(): EndpointParameterInstructions;
|
|
152
|
+
/**
|
|
153
|
+
* @public
|
|
154
|
+
*/
|
|
155
|
+
constructor(input: GetSampledRequestsCommandInput);
|
|
156
|
+
/**
|
|
157
|
+
* @internal
|
|
158
|
+
*/
|
|
159
|
+
resolveMiddleware(clientStack: MiddlewareStack<ServiceInputTypes, ServiceOutputTypes>, configuration: WAFV2ClientResolvedConfig, options?: __HttpHandlerOptions): Handler<GetSampledRequestsCommandInput, GetSampledRequestsCommandOutput>;
|
|
160
|
+
/**
|
|
161
|
+
* @internal
|
|
162
|
+
*/
|
|
163
|
+
private serialize;
|
|
164
|
+
/**
|
|
165
|
+
* @internal
|
|
166
|
+
*/
|
|
167
|
+
private deserialize;
|
|
168
|
+
}
|