@aws-sdk/client-wafv2 3.315.0 → 3.317.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 +24 -0
- package/dist-cjs/WAFV2.js +58 -672
- package/dist-cjs/commands/CreateAPIKeyCommand.js +45 -0
- package/dist-cjs/commands/GetDecryptedAPIKeyCommand.js +45 -0
- package/dist-cjs/commands/ListAPIKeysCommand.js +45 -0
- package/dist-cjs/commands/index.js +3 -0
- package/dist-cjs/protocols/Aws_json1_1.js +179 -2
- package/dist-es/WAFV2.js +58 -672
- package/dist-es/commands/CreateAPIKeyCommand.js +41 -0
- package/dist-es/commands/GetDecryptedAPIKeyCommand.js +41 -0
- package/dist-es/commands/ListAPIKeysCommand.js +41 -0
- package/dist-es/commands/index.js +3 -0
- package/dist-es/protocols/Aws_json1_1.js +170 -0
- package/dist-types/WAFV2.d.ts +133 -432
- package/dist-types/WAFV2Client.d.ts +5 -2
- package/dist-types/commands/CreateAPIKeyCommand.d.ts +105 -0
- package/dist-types/commands/GetDecryptedAPIKeyCommand.d.ts +96 -0
- package/dist-types/commands/ListAPIKeysCommand.d.ts +97 -0
- package/dist-types/commands/index.d.ts +3 -0
- package/dist-types/models/models_0.d.ts +150 -11
- package/dist-types/protocols/Aws_json1_1.d.ts +27 -0
- package/dist-types/ts3.4/WAFV2.d.ts +53 -1
- package/dist-types/ts3.4/WAFV2Client.d.ts +18 -0
- package/dist-types/ts3.4/commands/CreateAPIKeyCommand.d.ts +34 -0
- package/dist-types/ts3.4/commands/GetDecryptedAPIKeyCommand.d.ts +38 -0
- package/dist-types/ts3.4/commands/ListAPIKeysCommand.d.ts +34 -0
- package/dist-types/ts3.4/commands/index.d.ts +3 -0
- package/dist-types/ts3.4/models/models_0.d.ts +31 -0
- package/dist-types/ts3.4/protocols/Aws_json1_1.d.ts +36 -0
- package/package.json +6 -6
|
@@ -2,6 +2,7 @@ import { HttpRequest as __HttpRequest, HttpResponse as __HttpResponse } from "@a
|
|
|
2
2
|
import { SerdeContext as __SerdeContext } from "@aws-sdk/types";
|
|
3
3
|
import { AssociateWebACLCommandInput, AssociateWebACLCommandOutput } from "../commands/AssociateWebACLCommand";
|
|
4
4
|
import { CheckCapacityCommandInput, CheckCapacityCommandOutput } from "../commands/CheckCapacityCommand";
|
|
5
|
+
import { CreateAPIKeyCommandInput, CreateAPIKeyCommandOutput } from "../commands/CreateAPIKeyCommand";
|
|
5
6
|
import { CreateIPSetCommandInput, CreateIPSetCommandOutput } from "../commands/CreateIPSetCommand";
|
|
6
7
|
import { CreateRegexPatternSetCommandInput, CreateRegexPatternSetCommandOutput } from "../commands/CreateRegexPatternSetCommand";
|
|
7
8
|
import { CreateRuleGroupCommandInput, CreateRuleGroupCommandOutput } from "../commands/CreateRuleGroupCommand";
|
|
@@ -16,6 +17,7 @@ import { DeleteWebACLCommandInput, DeleteWebACLCommandOutput } from "../commands
|
|
|
16
17
|
import { DescribeManagedRuleGroupCommandInput, DescribeManagedRuleGroupCommandOutput } from "../commands/DescribeManagedRuleGroupCommand";
|
|
17
18
|
import { DisassociateWebACLCommandInput, DisassociateWebACLCommandOutput } from "../commands/DisassociateWebACLCommand";
|
|
18
19
|
import { GenerateMobileSdkReleaseUrlCommandInput, GenerateMobileSdkReleaseUrlCommandOutput } from "../commands/GenerateMobileSdkReleaseUrlCommand";
|
|
20
|
+
import { GetDecryptedAPIKeyCommandInput, GetDecryptedAPIKeyCommandOutput } from "../commands/GetDecryptedAPIKeyCommand";
|
|
19
21
|
import { GetIPSetCommandInput, GetIPSetCommandOutput } from "../commands/GetIPSetCommand";
|
|
20
22
|
import { GetLoggingConfigurationCommandInput, GetLoggingConfigurationCommandOutput } from "../commands/GetLoggingConfigurationCommand";
|
|
21
23
|
import { GetManagedRuleSetCommandInput, GetManagedRuleSetCommandOutput } from "../commands/GetManagedRuleSetCommand";
|
|
@@ -27,6 +29,7 @@ import { GetRuleGroupCommandInput, GetRuleGroupCommandOutput } from "../commands
|
|
|
27
29
|
import { GetSampledRequestsCommandInput, GetSampledRequestsCommandOutput } from "../commands/GetSampledRequestsCommand";
|
|
28
30
|
import { GetWebACLCommandInput, GetWebACLCommandOutput } from "../commands/GetWebACLCommand";
|
|
29
31
|
import { GetWebACLForResourceCommandInput, GetWebACLForResourceCommandOutput } from "../commands/GetWebACLForResourceCommand";
|
|
32
|
+
import { ListAPIKeysCommandInput, ListAPIKeysCommandOutput } from "../commands/ListAPIKeysCommand";
|
|
30
33
|
import { ListAvailableManagedRuleGroupsCommandInput, ListAvailableManagedRuleGroupsCommandOutput } from "../commands/ListAvailableManagedRuleGroupsCommand";
|
|
31
34
|
import { ListAvailableManagedRuleGroupVersionsCommandInput, ListAvailableManagedRuleGroupVersionsCommandOutput } from "../commands/ListAvailableManagedRuleGroupVersionsCommand";
|
|
32
35
|
import { ListIPSetsCommandInput, ListIPSetsCommandOutput } from "../commands/ListIPSetsCommand";
|
|
@@ -56,6 +59,10 @@ export declare const se_AssociateWebACLCommand: (input: AssociateWebACLCommandIn
|
|
|
56
59
|
* serializeAws_json1_1CheckCapacityCommand
|
|
57
60
|
*/
|
|
58
61
|
export declare const se_CheckCapacityCommand: (input: CheckCapacityCommandInput, context: __SerdeContext) => Promise<__HttpRequest>;
|
|
62
|
+
/**
|
|
63
|
+
* serializeAws_json1_1CreateAPIKeyCommand
|
|
64
|
+
*/
|
|
65
|
+
export declare const se_CreateAPIKeyCommand: (input: CreateAPIKeyCommandInput, context: __SerdeContext) => Promise<__HttpRequest>;
|
|
59
66
|
/**
|
|
60
67
|
* serializeAws_json1_1CreateIPSetCommand
|
|
61
68
|
*/
|
|
@@ -112,6 +119,10 @@ export declare const se_DisassociateWebACLCommand: (input: DisassociateWebACLCom
|
|
|
112
119
|
* serializeAws_json1_1GenerateMobileSdkReleaseUrlCommand
|
|
113
120
|
*/
|
|
114
121
|
export declare const se_GenerateMobileSdkReleaseUrlCommand: (input: GenerateMobileSdkReleaseUrlCommandInput, context: __SerdeContext) => Promise<__HttpRequest>;
|
|
122
|
+
/**
|
|
123
|
+
* serializeAws_json1_1GetDecryptedAPIKeyCommand
|
|
124
|
+
*/
|
|
125
|
+
export declare const se_GetDecryptedAPIKeyCommand: (input: GetDecryptedAPIKeyCommandInput, context: __SerdeContext) => Promise<__HttpRequest>;
|
|
115
126
|
/**
|
|
116
127
|
* serializeAws_json1_1GetIPSetCommand
|
|
117
128
|
*/
|
|
@@ -156,6 +167,10 @@ export declare const se_GetWebACLCommand: (input: GetWebACLCommandInput, context
|
|
|
156
167
|
* serializeAws_json1_1GetWebACLForResourceCommand
|
|
157
168
|
*/
|
|
158
169
|
export declare const se_GetWebACLForResourceCommand: (input: GetWebACLForResourceCommandInput, context: __SerdeContext) => Promise<__HttpRequest>;
|
|
170
|
+
/**
|
|
171
|
+
* serializeAws_json1_1ListAPIKeysCommand
|
|
172
|
+
*/
|
|
173
|
+
export declare const se_ListAPIKeysCommand: (input: ListAPIKeysCommandInput, context: __SerdeContext) => Promise<__HttpRequest>;
|
|
159
174
|
/**
|
|
160
175
|
* serializeAws_json1_1ListAvailableManagedRuleGroupsCommand
|
|
161
176
|
*/
|
|
@@ -248,6 +263,10 @@ export declare const de_AssociateWebACLCommand: (output: __HttpResponse, context
|
|
|
248
263
|
* deserializeAws_json1_1CheckCapacityCommand
|
|
249
264
|
*/
|
|
250
265
|
export declare const de_CheckCapacityCommand: (output: __HttpResponse, context: __SerdeContext) => Promise<CheckCapacityCommandOutput>;
|
|
266
|
+
/**
|
|
267
|
+
* deserializeAws_json1_1CreateAPIKeyCommand
|
|
268
|
+
*/
|
|
269
|
+
export declare const de_CreateAPIKeyCommand: (output: __HttpResponse, context: __SerdeContext) => Promise<CreateAPIKeyCommandOutput>;
|
|
251
270
|
/**
|
|
252
271
|
* deserializeAws_json1_1CreateIPSetCommand
|
|
253
272
|
*/
|
|
@@ -304,6 +323,10 @@ export declare const de_DisassociateWebACLCommand: (output: __HttpResponse, cont
|
|
|
304
323
|
* deserializeAws_json1_1GenerateMobileSdkReleaseUrlCommand
|
|
305
324
|
*/
|
|
306
325
|
export declare const de_GenerateMobileSdkReleaseUrlCommand: (output: __HttpResponse, context: __SerdeContext) => Promise<GenerateMobileSdkReleaseUrlCommandOutput>;
|
|
326
|
+
/**
|
|
327
|
+
* deserializeAws_json1_1GetDecryptedAPIKeyCommand
|
|
328
|
+
*/
|
|
329
|
+
export declare const de_GetDecryptedAPIKeyCommand: (output: __HttpResponse, context: __SerdeContext) => Promise<GetDecryptedAPIKeyCommandOutput>;
|
|
307
330
|
/**
|
|
308
331
|
* deserializeAws_json1_1GetIPSetCommand
|
|
309
332
|
*/
|
|
@@ -348,6 +371,10 @@ export declare const de_GetWebACLCommand: (output: __HttpResponse, context: __Se
|
|
|
348
371
|
* deserializeAws_json1_1GetWebACLForResourceCommand
|
|
349
372
|
*/
|
|
350
373
|
export declare const de_GetWebACLForResourceCommand: (output: __HttpResponse, context: __SerdeContext) => Promise<GetWebACLForResourceCommandOutput>;
|
|
374
|
+
/**
|
|
375
|
+
* deserializeAws_json1_1ListAPIKeysCommand
|
|
376
|
+
*/
|
|
377
|
+
export declare const de_ListAPIKeysCommand: (output: __HttpResponse, context: __SerdeContext) => Promise<ListAPIKeysCommandOutput>;
|
|
351
378
|
/**
|
|
352
379
|
* deserializeAws_json1_1ListAvailableManagedRuleGroupsCommand
|
|
353
380
|
*/
|
|
@@ -7,6 +7,10 @@ import {
|
|
|
7
7
|
CheckCapacityCommandInput,
|
|
8
8
|
CheckCapacityCommandOutput,
|
|
9
9
|
} from "./commands/CheckCapacityCommand";
|
|
10
|
+
import {
|
|
11
|
+
CreateAPIKeyCommandInput,
|
|
12
|
+
CreateAPIKeyCommandOutput,
|
|
13
|
+
} from "./commands/CreateAPIKeyCommand";
|
|
10
14
|
import {
|
|
11
15
|
CreateIPSetCommandInput,
|
|
12
16
|
CreateIPSetCommandOutput,
|
|
@@ -63,6 +67,10 @@ import {
|
|
|
63
67
|
GenerateMobileSdkReleaseUrlCommandInput,
|
|
64
68
|
GenerateMobileSdkReleaseUrlCommandOutput,
|
|
65
69
|
} from "./commands/GenerateMobileSdkReleaseUrlCommand";
|
|
70
|
+
import {
|
|
71
|
+
GetDecryptedAPIKeyCommandInput,
|
|
72
|
+
GetDecryptedAPIKeyCommandOutput,
|
|
73
|
+
} from "./commands/GetDecryptedAPIKeyCommand";
|
|
66
74
|
import {
|
|
67
75
|
GetIPSetCommandInput,
|
|
68
76
|
GetIPSetCommandOutput,
|
|
@@ -107,6 +115,10 @@ import {
|
|
|
107
115
|
GetWebACLForResourceCommandInput,
|
|
108
116
|
GetWebACLForResourceCommandOutput,
|
|
109
117
|
} from "./commands/GetWebACLForResourceCommand";
|
|
118
|
+
import {
|
|
119
|
+
ListAPIKeysCommandInput,
|
|
120
|
+
ListAPIKeysCommandOutput,
|
|
121
|
+
} from "./commands/ListAPIKeysCommand";
|
|
110
122
|
import {
|
|
111
123
|
ListAvailableManagedRuleGroupsCommandInput,
|
|
112
124
|
ListAvailableManagedRuleGroupsCommandOutput,
|
|
@@ -192,7 +204,7 @@ import {
|
|
|
192
204
|
UpdateWebACLCommandOutput,
|
|
193
205
|
} from "./commands/UpdateWebACLCommand";
|
|
194
206
|
import { WAFV2Client } from "./WAFV2Client";
|
|
195
|
-
export
|
|
207
|
+
export interface WAFV2 {
|
|
196
208
|
associateWebACL(
|
|
197
209
|
args: AssociateWebACLCommandInput,
|
|
198
210
|
options?: __HttpHandlerOptions
|
|
@@ -219,6 +231,19 @@ export declare class WAFV2 extends WAFV2Client {
|
|
|
219
231
|
options: __HttpHandlerOptions,
|
|
220
232
|
cb: (err: any, data?: CheckCapacityCommandOutput) => void
|
|
221
233
|
): void;
|
|
234
|
+
createAPIKey(
|
|
235
|
+
args: CreateAPIKeyCommandInput,
|
|
236
|
+
options?: __HttpHandlerOptions
|
|
237
|
+
): Promise<CreateAPIKeyCommandOutput>;
|
|
238
|
+
createAPIKey(
|
|
239
|
+
args: CreateAPIKeyCommandInput,
|
|
240
|
+
cb: (err: any, data?: CreateAPIKeyCommandOutput) => void
|
|
241
|
+
): void;
|
|
242
|
+
createAPIKey(
|
|
243
|
+
args: CreateAPIKeyCommandInput,
|
|
244
|
+
options: __HttpHandlerOptions,
|
|
245
|
+
cb: (err: any, data?: CreateAPIKeyCommandOutput) => void
|
|
246
|
+
): void;
|
|
222
247
|
createIPSet(
|
|
223
248
|
args: CreateIPSetCommandInput,
|
|
224
249
|
options?: __HttpHandlerOptions
|
|
@@ -401,6 +426,19 @@ export declare class WAFV2 extends WAFV2Client {
|
|
|
401
426
|
options: __HttpHandlerOptions,
|
|
402
427
|
cb: (err: any, data?: GenerateMobileSdkReleaseUrlCommandOutput) => void
|
|
403
428
|
): void;
|
|
429
|
+
getDecryptedAPIKey(
|
|
430
|
+
args: GetDecryptedAPIKeyCommandInput,
|
|
431
|
+
options?: __HttpHandlerOptions
|
|
432
|
+
): Promise<GetDecryptedAPIKeyCommandOutput>;
|
|
433
|
+
getDecryptedAPIKey(
|
|
434
|
+
args: GetDecryptedAPIKeyCommandInput,
|
|
435
|
+
cb: (err: any, data?: GetDecryptedAPIKeyCommandOutput) => void
|
|
436
|
+
): void;
|
|
437
|
+
getDecryptedAPIKey(
|
|
438
|
+
args: GetDecryptedAPIKeyCommandInput,
|
|
439
|
+
options: __HttpHandlerOptions,
|
|
440
|
+
cb: (err: any, data?: GetDecryptedAPIKeyCommandOutput) => void
|
|
441
|
+
): void;
|
|
404
442
|
getIPSet(
|
|
405
443
|
args: GetIPSetCommandInput,
|
|
406
444
|
options?: __HttpHandlerOptions
|
|
@@ -544,6 +582,19 @@ export declare class WAFV2 extends WAFV2Client {
|
|
|
544
582
|
options: __HttpHandlerOptions,
|
|
545
583
|
cb: (err: any, data?: GetWebACLForResourceCommandOutput) => void
|
|
546
584
|
): void;
|
|
585
|
+
listAPIKeys(
|
|
586
|
+
args: ListAPIKeysCommandInput,
|
|
587
|
+
options?: __HttpHandlerOptions
|
|
588
|
+
): Promise<ListAPIKeysCommandOutput>;
|
|
589
|
+
listAPIKeys(
|
|
590
|
+
args: ListAPIKeysCommandInput,
|
|
591
|
+
cb: (err: any, data?: ListAPIKeysCommandOutput) => void
|
|
592
|
+
): void;
|
|
593
|
+
listAPIKeys(
|
|
594
|
+
args: ListAPIKeysCommandInput,
|
|
595
|
+
options: __HttpHandlerOptions,
|
|
596
|
+
cb: (err: any, data?: ListAPIKeysCommandOutput) => void
|
|
597
|
+
): void;
|
|
547
598
|
listAvailableManagedRuleGroups(
|
|
548
599
|
args: ListAvailableManagedRuleGroupsCommandInput,
|
|
549
600
|
options?: __HttpHandlerOptions
|
|
@@ -830,3 +881,4 @@ export declare class WAFV2 extends WAFV2Client {
|
|
|
830
881
|
cb: (err: any, data?: UpdateWebACLCommandOutput) => void
|
|
831
882
|
): void;
|
|
832
883
|
}
|
|
884
|
+
export declare class WAFV2 extends WAFV2Client implements WAFV2 {}
|
|
@@ -52,6 +52,10 @@ import {
|
|
|
52
52
|
CheckCapacityCommandInput,
|
|
53
53
|
CheckCapacityCommandOutput,
|
|
54
54
|
} from "./commands/CheckCapacityCommand";
|
|
55
|
+
import {
|
|
56
|
+
CreateAPIKeyCommandInput,
|
|
57
|
+
CreateAPIKeyCommandOutput,
|
|
58
|
+
} from "./commands/CreateAPIKeyCommand";
|
|
55
59
|
import {
|
|
56
60
|
CreateIPSetCommandInput,
|
|
57
61
|
CreateIPSetCommandOutput,
|
|
@@ -108,6 +112,10 @@ import {
|
|
|
108
112
|
GenerateMobileSdkReleaseUrlCommandInput,
|
|
109
113
|
GenerateMobileSdkReleaseUrlCommandOutput,
|
|
110
114
|
} from "./commands/GenerateMobileSdkReleaseUrlCommand";
|
|
115
|
+
import {
|
|
116
|
+
GetDecryptedAPIKeyCommandInput,
|
|
117
|
+
GetDecryptedAPIKeyCommandOutput,
|
|
118
|
+
} from "./commands/GetDecryptedAPIKeyCommand";
|
|
111
119
|
import {
|
|
112
120
|
GetIPSetCommandInput,
|
|
113
121
|
GetIPSetCommandOutput,
|
|
@@ -152,6 +160,10 @@ import {
|
|
|
152
160
|
GetWebACLForResourceCommandInput,
|
|
153
161
|
GetWebACLForResourceCommandOutput,
|
|
154
162
|
} from "./commands/GetWebACLForResourceCommand";
|
|
163
|
+
import {
|
|
164
|
+
ListAPIKeysCommandInput,
|
|
165
|
+
ListAPIKeysCommandOutput,
|
|
166
|
+
} from "./commands/ListAPIKeysCommand";
|
|
155
167
|
import {
|
|
156
168
|
ListAvailableManagedRuleGroupsCommandInput,
|
|
157
169
|
ListAvailableManagedRuleGroupsCommandOutput,
|
|
@@ -244,6 +256,7 @@ import {
|
|
|
244
256
|
export type ServiceInputTypes =
|
|
245
257
|
| AssociateWebACLCommandInput
|
|
246
258
|
| CheckCapacityCommandInput
|
|
259
|
+
| CreateAPIKeyCommandInput
|
|
247
260
|
| CreateIPSetCommandInput
|
|
248
261
|
| CreateRegexPatternSetCommandInput
|
|
249
262
|
| CreateRuleGroupCommandInput
|
|
@@ -258,6 +271,7 @@ export type ServiceInputTypes =
|
|
|
258
271
|
| DescribeManagedRuleGroupCommandInput
|
|
259
272
|
| DisassociateWebACLCommandInput
|
|
260
273
|
| GenerateMobileSdkReleaseUrlCommandInput
|
|
274
|
+
| GetDecryptedAPIKeyCommandInput
|
|
261
275
|
| GetIPSetCommandInput
|
|
262
276
|
| GetLoggingConfigurationCommandInput
|
|
263
277
|
| GetManagedRuleSetCommandInput
|
|
@@ -269,6 +283,7 @@ export type ServiceInputTypes =
|
|
|
269
283
|
| GetSampledRequestsCommandInput
|
|
270
284
|
| GetWebACLCommandInput
|
|
271
285
|
| GetWebACLForResourceCommandInput
|
|
286
|
+
| ListAPIKeysCommandInput
|
|
272
287
|
| ListAvailableManagedRuleGroupVersionsCommandInput
|
|
273
288
|
| ListAvailableManagedRuleGroupsCommandInput
|
|
274
289
|
| ListIPSetsCommandInput
|
|
@@ -293,6 +308,7 @@ export type ServiceInputTypes =
|
|
|
293
308
|
export type ServiceOutputTypes =
|
|
294
309
|
| AssociateWebACLCommandOutput
|
|
295
310
|
| CheckCapacityCommandOutput
|
|
311
|
+
| CreateAPIKeyCommandOutput
|
|
296
312
|
| CreateIPSetCommandOutput
|
|
297
313
|
| CreateRegexPatternSetCommandOutput
|
|
298
314
|
| CreateRuleGroupCommandOutput
|
|
@@ -307,6 +323,7 @@ export type ServiceOutputTypes =
|
|
|
307
323
|
| DescribeManagedRuleGroupCommandOutput
|
|
308
324
|
| DisassociateWebACLCommandOutput
|
|
309
325
|
| GenerateMobileSdkReleaseUrlCommandOutput
|
|
326
|
+
| GetDecryptedAPIKeyCommandOutput
|
|
310
327
|
| GetIPSetCommandOutput
|
|
311
328
|
| GetLoggingConfigurationCommandOutput
|
|
312
329
|
| GetManagedRuleSetCommandOutput
|
|
@@ -318,6 +335,7 @@ export type ServiceOutputTypes =
|
|
|
318
335
|
| GetSampledRequestsCommandOutput
|
|
319
336
|
| GetWebACLCommandOutput
|
|
320
337
|
| GetWebACLForResourceCommandOutput
|
|
338
|
+
| ListAPIKeysCommandOutput
|
|
321
339
|
| ListAvailableManagedRuleGroupVersionsCommandOutput
|
|
322
340
|
| ListAvailableManagedRuleGroupsCommandOutput
|
|
323
341
|
| ListIPSetsCommandOutput
|
|
@@ -0,0 +1,34 @@
|
|
|
1
|
+
import { EndpointParameterInstructions } from "@aws-sdk/middleware-endpoint";
|
|
2
|
+
import { Command as $Command } from "@aws-sdk/smithy-client";
|
|
3
|
+
import {
|
|
4
|
+
Handler,
|
|
5
|
+
HttpHandlerOptions as __HttpHandlerOptions,
|
|
6
|
+
MetadataBearer as __MetadataBearer,
|
|
7
|
+
MiddlewareStack,
|
|
8
|
+
} from "@aws-sdk/types";
|
|
9
|
+
import { CreateAPIKeyRequest, CreateAPIKeyResponse } from "../models/models_0";
|
|
10
|
+
import {
|
|
11
|
+
ServiceInputTypes,
|
|
12
|
+
ServiceOutputTypes,
|
|
13
|
+
WAFV2ClientResolvedConfig,
|
|
14
|
+
} from "../WAFV2Client";
|
|
15
|
+
export interface CreateAPIKeyCommandInput extends CreateAPIKeyRequest {}
|
|
16
|
+
export interface CreateAPIKeyCommandOutput
|
|
17
|
+
extends CreateAPIKeyResponse,
|
|
18
|
+
__MetadataBearer {}
|
|
19
|
+
export declare class CreateAPIKeyCommand extends $Command<
|
|
20
|
+
CreateAPIKeyCommandInput,
|
|
21
|
+
CreateAPIKeyCommandOutput,
|
|
22
|
+
WAFV2ClientResolvedConfig
|
|
23
|
+
> {
|
|
24
|
+
readonly input: CreateAPIKeyCommandInput;
|
|
25
|
+
static getEndpointParameterInstructions(): EndpointParameterInstructions;
|
|
26
|
+
constructor(input: CreateAPIKeyCommandInput);
|
|
27
|
+
resolveMiddleware(
|
|
28
|
+
clientStack: MiddlewareStack<ServiceInputTypes, ServiceOutputTypes>,
|
|
29
|
+
configuration: WAFV2ClientResolvedConfig,
|
|
30
|
+
options?: __HttpHandlerOptions
|
|
31
|
+
): Handler<CreateAPIKeyCommandInput, CreateAPIKeyCommandOutput>;
|
|
32
|
+
private serialize;
|
|
33
|
+
private deserialize;
|
|
34
|
+
}
|
|
@@ -0,0 +1,38 @@
|
|
|
1
|
+
import { EndpointParameterInstructions } from "@aws-sdk/middleware-endpoint";
|
|
2
|
+
import { Command as $Command } from "@aws-sdk/smithy-client";
|
|
3
|
+
import {
|
|
4
|
+
Handler,
|
|
5
|
+
HttpHandlerOptions as __HttpHandlerOptions,
|
|
6
|
+
MetadataBearer as __MetadataBearer,
|
|
7
|
+
MiddlewareStack,
|
|
8
|
+
} from "@aws-sdk/types";
|
|
9
|
+
import {
|
|
10
|
+
GetDecryptedAPIKeyRequest,
|
|
11
|
+
GetDecryptedAPIKeyResponse,
|
|
12
|
+
} from "../models/models_0";
|
|
13
|
+
import {
|
|
14
|
+
ServiceInputTypes,
|
|
15
|
+
ServiceOutputTypes,
|
|
16
|
+
WAFV2ClientResolvedConfig,
|
|
17
|
+
} from "../WAFV2Client";
|
|
18
|
+
export interface GetDecryptedAPIKeyCommandInput
|
|
19
|
+
extends GetDecryptedAPIKeyRequest {}
|
|
20
|
+
export interface GetDecryptedAPIKeyCommandOutput
|
|
21
|
+
extends GetDecryptedAPIKeyResponse,
|
|
22
|
+
__MetadataBearer {}
|
|
23
|
+
export declare class GetDecryptedAPIKeyCommand extends $Command<
|
|
24
|
+
GetDecryptedAPIKeyCommandInput,
|
|
25
|
+
GetDecryptedAPIKeyCommandOutput,
|
|
26
|
+
WAFV2ClientResolvedConfig
|
|
27
|
+
> {
|
|
28
|
+
readonly input: GetDecryptedAPIKeyCommandInput;
|
|
29
|
+
static getEndpointParameterInstructions(): EndpointParameterInstructions;
|
|
30
|
+
constructor(input: GetDecryptedAPIKeyCommandInput);
|
|
31
|
+
resolveMiddleware(
|
|
32
|
+
clientStack: MiddlewareStack<ServiceInputTypes, ServiceOutputTypes>,
|
|
33
|
+
configuration: WAFV2ClientResolvedConfig,
|
|
34
|
+
options?: __HttpHandlerOptions
|
|
35
|
+
): Handler<GetDecryptedAPIKeyCommandInput, GetDecryptedAPIKeyCommandOutput>;
|
|
36
|
+
private serialize;
|
|
37
|
+
private deserialize;
|
|
38
|
+
}
|
|
@@ -0,0 +1,34 @@
|
|
|
1
|
+
import { EndpointParameterInstructions } from "@aws-sdk/middleware-endpoint";
|
|
2
|
+
import { Command as $Command } from "@aws-sdk/smithy-client";
|
|
3
|
+
import {
|
|
4
|
+
Handler,
|
|
5
|
+
HttpHandlerOptions as __HttpHandlerOptions,
|
|
6
|
+
MetadataBearer as __MetadataBearer,
|
|
7
|
+
MiddlewareStack,
|
|
8
|
+
} from "@aws-sdk/types";
|
|
9
|
+
import { ListAPIKeysRequest, ListAPIKeysResponse } from "../models/models_0";
|
|
10
|
+
import {
|
|
11
|
+
ServiceInputTypes,
|
|
12
|
+
ServiceOutputTypes,
|
|
13
|
+
WAFV2ClientResolvedConfig,
|
|
14
|
+
} from "../WAFV2Client";
|
|
15
|
+
export interface ListAPIKeysCommandInput extends ListAPIKeysRequest {}
|
|
16
|
+
export interface ListAPIKeysCommandOutput
|
|
17
|
+
extends ListAPIKeysResponse,
|
|
18
|
+
__MetadataBearer {}
|
|
19
|
+
export declare class ListAPIKeysCommand extends $Command<
|
|
20
|
+
ListAPIKeysCommandInput,
|
|
21
|
+
ListAPIKeysCommandOutput,
|
|
22
|
+
WAFV2ClientResolvedConfig
|
|
23
|
+
> {
|
|
24
|
+
readonly input: ListAPIKeysCommandInput;
|
|
25
|
+
static getEndpointParameterInstructions(): EndpointParameterInstructions;
|
|
26
|
+
constructor(input: ListAPIKeysCommandInput);
|
|
27
|
+
resolveMiddleware(
|
|
28
|
+
clientStack: MiddlewareStack<ServiceInputTypes, ServiceOutputTypes>,
|
|
29
|
+
configuration: WAFV2ClientResolvedConfig,
|
|
30
|
+
options?: __HttpHandlerOptions
|
|
31
|
+
): Handler<ListAPIKeysCommandInput, ListAPIKeysCommandOutput>;
|
|
32
|
+
private serialize;
|
|
33
|
+
private deserialize;
|
|
34
|
+
}
|
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
export * from "./AssociateWebACLCommand";
|
|
2
2
|
export * from "./CheckCapacityCommand";
|
|
3
|
+
export * from "./CreateAPIKeyCommand";
|
|
3
4
|
export * from "./CreateIPSetCommand";
|
|
4
5
|
export * from "./CreateRegexPatternSetCommand";
|
|
5
6
|
export * from "./CreateRuleGroupCommand";
|
|
@@ -14,6 +15,7 @@ export * from "./DeleteWebACLCommand";
|
|
|
14
15
|
export * from "./DescribeManagedRuleGroupCommand";
|
|
15
16
|
export * from "./DisassociateWebACLCommand";
|
|
16
17
|
export * from "./GenerateMobileSdkReleaseUrlCommand";
|
|
18
|
+
export * from "./GetDecryptedAPIKeyCommand";
|
|
17
19
|
export * from "./GetIPSetCommand";
|
|
18
20
|
export * from "./GetLoggingConfigurationCommand";
|
|
19
21
|
export * from "./GetManagedRuleSetCommand";
|
|
@@ -25,6 +27,7 @@ export * from "./GetRuleGroupCommand";
|
|
|
25
27
|
export * from "./GetSampledRequestsCommand";
|
|
26
28
|
export * from "./GetWebACLCommand";
|
|
27
29
|
export * from "./GetWebACLForResourceCommand";
|
|
30
|
+
export * from "./ListAPIKeysCommand";
|
|
28
31
|
export * from "./ListAvailableManagedRuleGroupVersionsCommand";
|
|
29
32
|
export * from "./ListAvailableManagedRuleGroupsCommand";
|
|
30
33
|
export * from "./ListIPSetsCommand";
|
|
@@ -587,6 +587,12 @@ export interface XssMatchStatement {
|
|
|
587
587
|
FieldToMatch: FieldToMatch | undefined;
|
|
588
588
|
TextTransformations: TextTransformation[] | undefined;
|
|
589
589
|
}
|
|
590
|
+
export interface APIKeySummary {
|
|
591
|
+
TokenDomains?: string[];
|
|
592
|
+
APIKey?: string;
|
|
593
|
+
CreationTimestamp?: Date;
|
|
594
|
+
Version?: number;
|
|
595
|
+
}
|
|
590
596
|
export declare const AssociatedResourceType: {
|
|
591
597
|
readonly CLOUDFRONT: "CLOUDFRONT";
|
|
592
598
|
};
|
|
@@ -792,6 +798,13 @@ export declare class WAFSubscriptionNotFoundException extends __BaseException {
|
|
|
792
798
|
>
|
|
793
799
|
);
|
|
794
800
|
}
|
|
801
|
+
export interface CreateAPIKeyRequest {
|
|
802
|
+
Scope: Scope | string | undefined;
|
|
803
|
+
TokenDomains: string[] | undefined;
|
|
804
|
+
}
|
|
805
|
+
export interface CreateAPIKeyResponse {
|
|
806
|
+
APIKey?: string;
|
|
807
|
+
}
|
|
795
808
|
export declare const IPAddressVersion: {
|
|
796
809
|
readonly IPV4: "IPV4";
|
|
797
810
|
readonly IPV6: "IPV6";
|
|
@@ -1010,6 +1023,14 @@ export interface GenerateMobileSdkReleaseUrlRequest {
|
|
|
1010
1023
|
export interface GenerateMobileSdkReleaseUrlResponse {
|
|
1011
1024
|
Url?: string;
|
|
1012
1025
|
}
|
|
1026
|
+
export interface GetDecryptedAPIKeyRequest {
|
|
1027
|
+
Scope: Scope | string | undefined;
|
|
1028
|
+
APIKey: string | undefined;
|
|
1029
|
+
}
|
|
1030
|
+
export interface GetDecryptedAPIKeyResponse {
|
|
1031
|
+
TokenDomains?: string[];
|
|
1032
|
+
CreationTimestamp?: Date;
|
|
1033
|
+
}
|
|
1013
1034
|
export interface GetIPSetRequest {
|
|
1014
1035
|
Name: string | undefined;
|
|
1015
1036
|
Scope: Scope | string | undefined;
|
|
@@ -1216,6 +1237,16 @@ export interface GetWebACLRequest {
|
|
|
1216
1237
|
export interface GetWebACLForResourceRequest {
|
|
1217
1238
|
ResourceArn: string | undefined;
|
|
1218
1239
|
}
|
|
1240
|
+
export interface ListAPIKeysRequest {
|
|
1241
|
+
Scope: Scope | string | undefined;
|
|
1242
|
+
NextMarker?: string;
|
|
1243
|
+
Limit?: number;
|
|
1244
|
+
}
|
|
1245
|
+
export interface ListAPIKeysResponse {
|
|
1246
|
+
NextMarker?: string;
|
|
1247
|
+
APIKeySummaries?: APIKeySummary[];
|
|
1248
|
+
ApplicationIntegrationURL?: string;
|
|
1249
|
+
}
|
|
1219
1250
|
export interface ListAvailableManagedRuleGroupsRequest {
|
|
1220
1251
|
Scope: Scope | string | undefined;
|
|
1221
1252
|
NextMarker?: string;
|
|
@@ -11,6 +11,10 @@ import {
|
|
|
11
11
|
CheckCapacityCommandInput,
|
|
12
12
|
CheckCapacityCommandOutput,
|
|
13
13
|
} from "../commands/CheckCapacityCommand";
|
|
14
|
+
import {
|
|
15
|
+
CreateAPIKeyCommandInput,
|
|
16
|
+
CreateAPIKeyCommandOutput,
|
|
17
|
+
} from "../commands/CreateAPIKeyCommand";
|
|
14
18
|
import {
|
|
15
19
|
CreateIPSetCommandInput,
|
|
16
20
|
CreateIPSetCommandOutput,
|
|
@@ -67,6 +71,10 @@ import {
|
|
|
67
71
|
GenerateMobileSdkReleaseUrlCommandInput,
|
|
68
72
|
GenerateMobileSdkReleaseUrlCommandOutput,
|
|
69
73
|
} from "../commands/GenerateMobileSdkReleaseUrlCommand";
|
|
74
|
+
import {
|
|
75
|
+
GetDecryptedAPIKeyCommandInput,
|
|
76
|
+
GetDecryptedAPIKeyCommandOutput,
|
|
77
|
+
} from "../commands/GetDecryptedAPIKeyCommand";
|
|
70
78
|
import {
|
|
71
79
|
GetIPSetCommandInput,
|
|
72
80
|
GetIPSetCommandOutput,
|
|
@@ -111,6 +119,10 @@ import {
|
|
|
111
119
|
GetWebACLForResourceCommandInput,
|
|
112
120
|
GetWebACLForResourceCommandOutput,
|
|
113
121
|
} from "../commands/GetWebACLForResourceCommand";
|
|
122
|
+
import {
|
|
123
|
+
ListAPIKeysCommandInput,
|
|
124
|
+
ListAPIKeysCommandOutput,
|
|
125
|
+
} from "../commands/ListAPIKeysCommand";
|
|
114
126
|
import {
|
|
115
127
|
ListAvailableManagedRuleGroupsCommandInput,
|
|
116
128
|
ListAvailableManagedRuleGroupsCommandOutput,
|
|
@@ -203,6 +215,10 @@ export declare const se_CheckCapacityCommand: (
|
|
|
203
215
|
input: CheckCapacityCommandInput,
|
|
204
216
|
context: __SerdeContext
|
|
205
217
|
) => Promise<__HttpRequest>;
|
|
218
|
+
export declare const se_CreateAPIKeyCommand: (
|
|
219
|
+
input: CreateAPIKeyCommandInput,
|
|
220
|
+
context: __SerdeContext
|
|
221
|
+
) => Promise<__HttpRequest>;
|
|
206
222
|
export declare const se_CreateIPSetCommand: (
|
|
207
223
|
input: CreateIPSetCommandInput,
|
|
208
224
|
context: __SerdeContext
|
|
@@ -259,6 +275,10 @@ export declare const se_GenerateMobileSdkReleaseUrlCommand: (
|
|
|
259
275
|
input: GenerateMobileSdkReleaseUrlCommandInput,
|
|
260
276
|
context: __SerdeContext
|
|
261
277
|
) => Promise<__HttpRequest>;
|
|
278
|
+
export declare const se_GetDecryptedAPIKeyCommand: (
|
|
279
|
+
input: GetDecryptedAPIKeyCommandInput,
|
|
280
|
+
context: __SerdeContext
|
|
281
|
+
) => Promise<__HttpRequest>;
|
|
262
282
|
export declare const se_GetIPSetCommand: (
|
|
263
283
|
input: GetIPSetCommandInput,
|
|
264
284
|
context: __SerdeContext
|
|
@@ -303,6 +323,10 @@ export declare const se_GetWebACLForResourceCommand: (
|
|
|
303
323
|
input: GetWebACLForResourceCommandInput,
|
|
304
324
|
context: __SerdeContext
|
|
305
325
|
) => Promise<__HttpRequest>;
|
|
326
|
+
export declare const se_ListAPIKeysCommand: (
|
|
327
|
+
input: ListAPIKeysCommandInput,
|
|
328
|
+
context: __SerdeContext
|
|
329
|
+
) => Promise<__HttpRequest>;
|
|
306
330
|
export declare const se_ListAvailableManagedRuleGroupsCommand: (
|
|
307
331
|
input: ListAvailableManagedRuleGroupsCommandInput,
|
|
308
332
|
context: __SerdeContext
|
|
@@ -395,6 +419,10 @@ export declare const de_CheckCapacityCommand: (
|
|
|
395
419
|
output: __HttpResponse,
|
|
396
420
|
context: __SerdeContext
|
|
397
421
|
) => Promise<CheckCapacityCommandOutput>;
|
|
422
|
+
export declare const de_CreateAPIKeyCommand: (
|
|
423
|
+
output: __HttpResponse,
|
|
424
|
+
context: __SerdeContext
|
|
425
|
+
) => Promise<CreateAPIKeyCommandOutput>;
|
|
398
426
|
export declare const de_CreateIPSetCommand: (
|
|
399
427
|
output: __HttpResponse,
|
|
400
428
|
context: __SerdeContext
|
|
@@ -451,6 +479,10 @@ export declare const de_GenerateMobileSdkReleaseUrlCommand: (
|
|
|
451
479
|
output: __HttpResponse,
|
|
452
480
|
context: __SerdeContext
|
|
453
481
|
) => Promise<GenerateMobileSdkReleaseUrlCommandOutput>;
|
|
482
|
+
export declare const de_GetDecryptedAPIKeyCommand: (
|
|
483
|
+
output: __HttpResponse,
|
|
484
|
+
context: __SerdeContext
|
|
485
|
+
) => Promise<GetDecryptedAPIKeyCommandOutput>;
|
|
454
486
|
export declare const de_GetIPSetCommand: (
|
|
455
487
|
output: __HttpResponse,
|
|
456
488
|
context: __SerdeContext
|
|
@@ -495,6 +527,10 @@ export declare const de_GetWebACLForResourceCommand: (
|
|
|
495
527
|
output: __HttpResponse,
|
|
496
528
|
context: __SerdeContext
|
|
497
529
|
) => Promise<GetWebACLForResourceCommandOutput>;
|
|
530
|
+
export declare const de_ListAPIKeysCommand: (
|
|
531
|
+
output: __HttpResponse,
|
|
532
|
+
context: __SerdeContext
|
|
533
|
+
) => Promise<ListAPIKeysCommandOutput>;
|
|
498
534
|
export declare const de_ListAvailableManagedRuleGroupsCommand: (
|
|
499
535
|
output: __HttpResponse,
|
|
500
536
|
context: __SerdeContext
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@aws-sdk/client-wafv2",
|
|
3
3
|
"description": "AWS SDK for JavaScript Wafv2 Client for Node.js, Browser and React Native",
|
|
4
|
-
"version": "3.
|
|
4
|
+
"version": "3.317.0",
|
|
5
5
|
"scripts": {
|
|
6
6
|
"build": "concurrently 'yarn:build:cjs' 'yarn:build:es' 'yarn:build:types'",
|
|
7
7
|
"build:cjs": "tsc -p tsconfig.cjs.json",
|
|
@@ -21,9 +21,9 @@
|
|
|
21
21
|
"dependencies": {
|
|
22
22
|
"@aws-crypto/sha256-browser": "3.0.0",
|
|
23
23
|
"@aws-crypto/sha256-js": "3.0.0",
|
|
24
|
-
"@aws-sdk/client-sts": "3.
|
|
24
|
+
"@aws-sdk/client-sts": "3.316.0",
|
|
25
25
|
"@aws-sdk/config-resolver": "3.310.0",
|
|
26
|
-
"@aws-sdk/credential-provider-node": "3.
|
|
26
|
+
"@aws-sdk/credential-provider-node": "3.316.0",
|
|
27
27
|
"@aws-sdk/fetch-http-handler": "3.310.0",
|
|
28
28
|
"@aws-sdk/hash-node": "3.310.0",
|
|
29
29
|
"@aws-sdk/invalid-dependency": "3.310.0",
|
|
@@ -40,14 +40,14 @@
|
|
|
40
40
|
"@aws-sdk/node-config-provider": "3.310.0",
|
|
41
41
|
"@aws-sdk/node-http-handler": "3.310.0",
|
|
42
42
|
"@aws-sdk/protocol-http": "3.310.0",
|
|
43
|
-
"@aws-sdk/smithy-client": "3.
|
|
43
|
+
"@aws-sdk/smithy-client": "3.316.0",
|
|
44
44
|
"@aws-sdk/types": "3.310.0",
|
|
45
45
|
"@aws-sdk/url-parser": "3.310.0",
|
|
46
46
|
"@aws-sdk/util-base64": "3.310.0",
|
|
47
47
|
"@aws-sdk/util-body-length-browser": "3.310.0",
|
|
48
48
|
"@aws-sdk/util-body-length-node": "3.310.0",
|
|
49
|
-
"@aws-sdk/util-defaults-mode-browser": "3.
|
|
50
|
-
"@aws-sdk/util-defaults-mode-node": "3.
|
|
49
|
+
"@aws-sdk/util-defaults-mode-browser": "3.316.0",
|
|
50
|
+
"@aws-sdk/util-defaults-mode-node": "3.316.0",
|
|
51
51
|
"@aws-sdk/util-endpoints": "3.310.0",
|
|
52
52
|
"@aws-sdk/util-retry": "3.310.0",
|
|
53
53
|
"@aws-sdk/util-user-agent-browser": "3.310.0",
|