@aws-sdk/client-wafv2 3.316.0 → 3.319.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 +6 -0
- 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 +6 -0
- 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 +21 -0
- 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 +51 -0
- 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 +5 -5
package/README.md
CHANGED
|
@@ -279,6 +279,14 @@ CheckCapacity
|
|
|
279
279
|
|
|
280
280
|
[Command API Reference](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/clients/client-wafv2/classes/checkcapacitycommand.html) / [Input](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/clients/client-wafv2/interfaces/checkcapacitycommandinput.html) / [Output](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/clients/client-wafv2/interfaces/checkcapacitycommandoutput.html)
|
|
281
281
|
|
|
282
|
+
</details>
|
|
283
|
+
<details>
|
|
284
|
+
<summary>
|
|
285
|
+
CreateAPIKey
|
|
286
|
+
</summary>
|
|
287
|
+
|
|
288
|
+
[Command API Reference](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/clients/client-wafv2/classes/createapikeycommand.html) / [Input](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/clients/client-wafv2/interfaces/createapikeycommandinput.html) / [Output](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/clients/client-wafv2/interfaces/createapikeycommandoutput.html)
|
|
289
|
+
|
|
282
290
|
</details>
|
|
283
291
|
<details>
|
|
284
292
|
<summary>
|
|
@@ -391,6 +399,14 @@ GenerateMobileSdkReleaseUrl
|
|
|
391
399
|
|
|
392
400
|
[Command API Reference](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/clients/client-wafv2/classes/generatemobilesdkreleaseurlcommand.html) / [Input](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/clients/client-wafv2/interfaces/generatemobilesdkreleaseurlcommandinput.html) / [Output](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/clients/client-wafv2/interfaces/generatemobilesdkreleaseurlcommandoutput.html)
|
|
393
401
|
|
|
402
|
+
</details>
|
|
403
|
+
<details>
|
|
404
|
+
<summary>
|
|
405
|
+
GetDecryptedAPIKey
|
|
406
|
+
</summary>
|
|
407
|
+
|
|
408
|
+
[Command API Reference](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/clients/client-wafv2/classes/getdecryptedapikeycommand.html) / [Input](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/clients/client-wafv2/interfaces/getdecryptedapikeycommandinput.html) / [Output](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/clients/client-wafv2/interfaces/getdecryptedapikeycommandoutput.html)
|
|
409
|
+
|
|
394
410
|
</details>
|
|
395
411
|
<details>
|
|
396
412
|
<summary>
|
|
@@ -479,6 +495,14 @@ GetWebACLForResource
|
|
|
479
495
|
|
|
480
496
|
[Command API Reference](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/clients/client-wafv2/classes/getwebaclforresourcecommand.html) / [Input](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/clients/client-wafv2/interfaces/getwebaclforresourcecommandinput.html) / [Output](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/clients/client-wafv2/interfaces/getwebaclforresourcecommandoutput.html)
|
|
481
497
|
|
|
498
|
+
</details>
|
|
499
|
+
<details>
|
|
500
|
+
<summary>
|
|
501
|
+
ListAPIKeys
|
|
502
|
+
</summary>
|
|
503
|
+
|
|
504
|
+
[Command API Reference](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/clients/client-wafv2/classes/listapikeyscommand.html) / [Input](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/clients/client-wafv2/interfaces/listapikeyscommandinput.html) / [Output](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/clients/client-wafv2/interfaces/listapikeyscommandoutput.html)
|
|
505
|
+
|
|
482
506
|
</details>
|
|
483
507
|
<details>
|
|
484
508
|
<summary>
|
package/dist-cjs/WAFV2.js
CHANGED
|
@@ -4,6 +4,7 @@ exports.WAFV2 = void 0;
|
|
|
4
4
|
const smithy_client_1 = require("@aws-sdk/smithy-client");
|
|
5
5
|
const AssociateWebACLCommand_1 = require("./commands/AssociateWebACLCommand");
|
|
6
6
|
const CheckCapacityCommand_1 = require("./commands/CheckCapacityCommand");
|
|
7
|
+
const CreateAPIKeyCommand_1 = require("./commands/CreateAPIKeyCommand");
|
|
7
8
|
const CreateIPSetCommand_1 = require("./commands/CreateIPSetCommand");
|
|
8
9
|
const CreateRegexPatternSetCommand_1 = require("./commands/CreateRegexPatternSetCommand");
|
|
9
10
|
const CreateRuleGroupCommand_1 = require("./commands/CreateRuleGroupCommand");
|
|
@@ -18,6 +19,7 @@ const DeleteWebACLCommand_1 = require("./commands/DeleteWebACLCommand");
|
|
|
18
19
|
const DescribeManagedRuleGroupCommand_1 = require("./commands/DescribeManagedRuleGroupCommand");
|
|
19
20
|
const DisassociateWebACLCommand_1 = require("./commands/DisassociateWebACLCommand");
|
|
20
21
|
const GenerateMobileSdkReleaseUrlCommand_1 = require("./commands/GenerateMobileSdkReleaseUrlCommand");
|
|
22
|
+
const GetDecryptedAPIKeyCommand_1 = require("./commands/GetDecryptedAPIKeyCommand");
|
|
21
23
|
const GetIPSetCommand_1 = require("./commands/GetIPSetCommand");
|
|
22
24
|
const GetLoggingConfigurationCommand_1 = require("./commands/GetLoggingConfigurationCommand");
|
|
23
25
|
const GetManagedRuleSetCommand_1 = require("./commands/GetManagedRuleSetCommand");
|
|
@@ -29,6 +31,7 @@ const GetRuleGroupCommand_1 = require("./commands/GetRuleGroupCommand");
|
|
|
29
31
|
const GetSampledRequestsCommand_1 = require("./commands/GetSampledRequestsCommand");
|
|
30
32
|
const GetWebACLCommand_1 = require("./commands/GetWebACLCommand");
|
|
31
33
|
const GetWebACLForResourceCommand_1 = require("./commands/GetWebACLForResourceCommand");
|
|
34
|
+
const ListAPIKeysCommand_1 = require("./commands/ListAPIKeysCommand");
|
|
32
35
|
const ListAvailableManagedRuleGroupsCommand_1 = require("./commands/ListAvailableManagedRuleGroupsCommand");
|
|
33
36
|
const ListAvailableManagedRuleGroupVersionsCommand_1 = require("./commands/ListAvailableManagedRuleGroupVersionsCommand");
|
|
34
37
|
const ListIPSetsCommand_1 = require("./commands/ListIPSetsCommand");
|
|
@@ -54,6 +57,7 @@ const WAFV2Client_1 = require("./WAFV2Client");
|
|
|
54
57
|
const commands = {
|
|
55
58
|
AssociateWebACLCommand: AssociateWebACLCommand_1.AssociateWebACLCommand,
|
|
56
59
|
CheckCapacityCommand: CheckCapacityCommand_1.CheckCapacityCommand,
|
|
60
|
+
CreateAPIKeyCommand: CreateAPIKeyCommand_1.CreateAPIKeyCommand,
|
|
57
61
|
CreateIPSetCommand: CreateIPSetCommand_1.CreateIPSetCommand,
|
|
58
62
|
CreateRegexPatternSetCommand: CreateRegexPatternSetCommand_1.CreateRegexPatternSetCommand,
|
|
59
63
|
CreateRuleGroupCommand: CreateRuleGroupCommand_1.CreateRuleGroupCommand,
|
|
@@ -68,6 +72,7 @@ const commands = {
|
|
|
68
72
|
DescribeManagedRuleGroupCommand: DescribeManagedRuleGroupCommand_1.DescribeManagedRuleGroupCommand,
|
|
69
73
|
DisassociateWebACLCommand: DisassociateWebACLCommand_1.DisassociateWebACLCommand,
|
|
70
74
|
GenerateMobileSdkReleaseUrlCommand: GenerateMobileSdkReleaseUrlCommand_1.GenerateMobileSdkReleaseUrlCommand,
|
|
75
|
+
GetDecryptedAPIKeyCommand: GetDecryptedAPIKeyCommand_1.GetDecryptedAPIKeyCommand,
|
|
71
76
|
GetIPSetCommand: GetIPSetCommand_1.GetIPSetCommand,
|
|
72
77
|
GetLoggingConfigurationCommand: GetLoggingConfigurationCommand_1.GetLoggingConfigurationCommand,
|
|
73
78
|
GetManagedRuleSetCommand: GetManagedRuleSetCommand_1.GetManagedRuleSetCommand,
|
|
@@ -79,6 +84,7 @@ const commands = {
|
|
|
79
84
|
GetSampledRequestsCommand: GetSampledRequestsCommand_1.GetSampledRequestsCommand,
|
|
80
85
|
GetWebACLCommand: GetWebACLCommand_1.GetWebACLCommand,
|
|
81
86
|
GetWebACLForResourceCommand: GetWebACLForResourceCommand_1.GetWebACLForResourceCommand,
|
|
87
|
+
ListAPIKeysCommand: ListAPIKeysCommand_1.ListAPIKeysCommand,
|
|
82
88
|
ListAvailableManagedRuleGroupsCommand: ListAvailableManagedRuleGroupsCommand_1.ListAvailableManagedRuleGroupsCommand,
|
|
83
89
|
ListAvailableManagedRuleGroupVersionsCommand: ListAvailableManagedRuleGroupVersionsCommand_1.ListAvailableManagedRuleGroupVersionsCommand,
|
|
84
90
|
ListIPSetsCommand: ListIPSetsCommand_1.ListIPSetsCommand,
|
|
@@ -0,0 +1,45 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.CreateAPIKeyCommand = void 0;
|
|
4
|
+
const middleware_endpoint_1 = require("@aws-sdk/middleware-endpoint");
|
|
5
|
+
const middleware_serde_1 = require("@aws-sdk/middleware-serde");
|
|
6
|
+
const smithy_client_1 = require("@aws-sdk/smithy-client");
|
|
7
|
+
const Aws_json1_1_1 = require("../protocols/Aws_json1_1");
|
|
8
|
+
class CreateAPIKeyCommand extends smithy_client_1.Command {
|
|
9
|
+
static getEndpointParameterInstructions() {
|
|
10
|
+
return {
|
|
11
|
+
UseFIPS: { type: "builtInParams", name: "useFipsEndpoint" },
|
|
12
|
+
Endpoint: { type: "builtInParams", name: "endpoint" },
|
|
13
|
+
Region: { type: "builtInParams", name: "region" },
|
|
14
|
+
UseDualStack: { type: "builtInParams", name: "useDualstackEndpoint" },
|
|
15
|
+
};
|
|
16
|
+
}
|
|
17
|
+
constructor(input) {
|
|
18
|
+
super();
|
|
19
|
+
this.input = input;
|
|
20
|
+
}
|
|
21
|
+
resolveMiddleware(clientStack, configuration, options) {
|
|
22
|
+
this.middlewareStack.use((0, middleware_serde_1.getSerdePlugin)(configuration, this.serialize, this.deserialize));
|
|
23
|
+
this.middlewareStack.use((0, middleware_endpoint_1.getEndpointPlugin)(configuration, CreateAPIKeyCommand.getEndpointParameterInstructions()));
|
|
24
|
+
const stack = clientStack.concat(this.middlewareStack);
|
|
25
|
+
const { logger } = configuration;
|
|
26
|
+
const clientName = "WAFV2Client";
|
|
27
|
+
const commandName = "CreateAPIKeyCommand";
|
|
28
|
+
const handlerExecutionContext = {
|
|
29
|
+
logger,
|
|
30
|
+
clientName,
|
|
31
|
+
commandName,
|
|
32
|
+
inputFilterSensitiveLog: (_) => _,
|
|
33
|
+
outputFilterSensitiveLog: (_) => _,
|
|
34
|
+
};
|
|
35
|
+
const { requestHandler } = configuration;
|
|
36
|
+
return stack.resolve((request) => requestHandler.handle(request.request, options || {}), handlerExecutionContext);
|
|
37
|
+
}
|
|
38
|
+
serialize(input, context) {
|
|
39
|
+
return (0, Aws_json1_1_1.se_CreateAPIKeyCommand)(input, context);
|
|
40
|
+
}
|
|
41
|
+
deserialize(output, context) {
|
|
42
|
+
return (0, Aws_json1_1_1.de_CreateAPIKeyCommand)(output, context);
|
|
43
|
+
}
|
|
44
|
+
}
|
|
45
|
+
exports.CreateAPIKeyCommand = CreateAPIKeyCommand;
|
|
@@ -0,0 +1,45 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.GetDecryptedAPIKeyCommand = void 0;
|
|
4
|
+
const middleware_endpoint_1 = require("@aws-sdk/middleware-endpoint");
|
|
5
|
+
const middleware_serde_1 = require("@aws-sdk/middleware-serde");
|
|
6
|
+
const smithy_client_1 = require("@aws-sdk/smithy-client");
|
|
7
|
+
const Aws_json1_1_1 = require("../protocols/Aws_json1_1");
|
|
8
|
+
class GetDecryptedAPIKeyCommand extends smithy_client_1.Command {
|
|
9
|
+
static getEndpointParameterInstructions() {
|
|
10
|
+
return {
|
|
11
|
+
UseFIPS: { type: "builtInParams", name: "useFipsEndpoint" },
|
|
12
|
+
Endpoint: { type: "builtInParams", name: "endpoint" },
|
|
13
|
+
Region: { type: "builtInParams", name: "region" },
|
|
14
|
+
UseDualStack: { type: "builtInParams", name: "useDualstackEndpoint" },
|
|
15
|
+
};
|
|
16
|
+
}
|
|
17
|
+
constructor(input) {
|
|
18
|
+
super();
|
|
19
|
+
this.input = input;
|
|
20
|
+
}
|
|
21
|
+
resolveMiddleware(clientStack, configuration, options) {
|
|
22
|
+
this.middlewareStack.use((0, middleware_serde_1.getSerdePlugin)(configuration, this.serialize, this.deserialize));
|
|
23
|
+
this.middlewareStack.use((0, middleware_endpoint_1.getEndpointPlugin)(configuration, GetDecryptedAPIKeyCommand.getEndpointParameterInstructions()));
|
|
24
|
+
const stack = clientStack.concat(this.middlewareStack);
|
|
25
|
+
const { logger } = configuration;
|
|
26
|
+
const clientName = "WAFV2Client";
|
|
27
|
+
const commandName = "GetDecryptedAPIKeyCommand";
|
|
28
|
+
const handlerExecutionContext = {
|
|
29
|
+
logger,
|
|
30
|
+
clientName,
|
|
31
|
+
commandName,
|
|
32
|
+
inputFilterSensitiveLog: (_) => _,
|
|
33
|
+
outputFilterSensitiveLog: (_) => _,
|
|
34
|
+
};
|
|
35
|
+
const { requestHandler } = configuration;
|
|
36
|
+
return stack.resolve((request) => requestHandler.handle(request.request, options || {}), handlerExecutionContext);
|
|
37
|
+
}
|
|
38
|
+
serialize(input, context) {
|
|
39
|
+
return (0, Aws_json1_1_1.se_GetDecryptedAPIKeyCommand)(input, context);
|
|
40
|
+
}
|
|
41
|
+
deserialize(output, context) {
|
|
42
|
+
return (0, Aws_json1_1_1.de_GetDecryptedAPIKeyCommand)(output, context);
|
|
43
|
+
}
|
|
44
|
+
}
|
|
45
|
+
exports.GetDecryptedAPIKeyCommand = GetDecryptedAPIKeyCommand;
|
|
@@ -0,0 +1,45 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.ListAPIKeysCommand = void 0;
|
|
4
|
+
const middleware_endpoint_1 = require("@aws-sdk/middleware-endpoint");
|
|
5
|
+
const middleware_serde_1 = require("@aws-sdk/middleware-serde");
|
|
6
|
+
const smithy_client_1 = require("@aws-sdk/smithy-client");
|
|
7
|
+
const Aws_json1_1_1 = require("../protocols/Aws_json1_1");
|
|
8
|
+
class ListAPIKeysCommand extends smithy_client_1.Command {
|
|
9
|
+
static getEndpointParameterInstructions() {
|
|
10
|
+
return {
|
|
11
|
+
UseFIPS: { type: "builtInParams", name: "useFipsEndpoint" },
|
|
12
|
+
Endpoint: { type: "builtInParams", name: "endpoint" },
|
|
13
|
+
Region: { type: "builtInParams", name: "region" },
|
|
14
|
+
UseDualStack: { type: "builtInParams", name: "useDualstackEndpoint" },
|
|
15
|
+
};
|
|
16
|
+
}
|
|
17
|
+
constructor(input) {
|
|
18
|
+
super();
|
|
19
|
+
this.input = input;
|
|
20
|
+
}
|
|
21
|
+
resolveMiddleware(clientStack, configuration, options) {
|
|
22
|
+
this.middlewareStack.use((0, middleware_serde_1.getSerdePlugin)(configuration, this.serialize, this.deserialize));
|
|
23
|
+
this.middlewareStack.use((0, middleware_endpoint_1.getEndpointPlugin)(configuration, ListAPIKeysCommand.getEndpointParameterInstructions()));
|
|
24
|
+
const stack = clientStack.concat(this.middlewareStack);
|
|
25
|
+
const { logger } = configuration;
|
|
26
|
+
const clientName = "WAFV2Client";
|
|
27
|
+
const commandName = "ListAPIKeysCommand";
|
|
28
|
+
const handlerExecutionContext = {
|
|
29
|
+
logger,
|
|
30
|
+
clientName,
|
|
31
|
+
commandName,
|
|
32
|
+
inputFilterSensitiveLog: (_) => _,
|
|
33
|
+
outputFilterSensitiveLog: (_) => _,
|
|
34
|
+
};
|
|
35
|
+
const { requestHandler } = configuration;
|
|
36
|
+
return stack.resolve((request) => requestHandler.handle(request.request, options || {}), handlerExecutionContext);
|
|
37
|
+
}
|
|
38
|
+
serialize(input, context) {
|
|
39
|
+
return (0, Aws_json1_1_1.se_ListAPIKeysCommand)(input, context);
|
|
40
|
+
}
|
|
41
|
+
deserialize(output, context) {
|
|
42
|
+
return (0, Aws_json1_1_1.de_ListAPIKeysCommand)(output, context);
|
|
43
|
+
}
|
|
44
|
+
}
|
|
45
|
+
exports.ListAPIKeysCommand = ListAPIKeysCommand;
|
|
@@ -3,6 +3,7 @@ Object.defineProperty(exports, "__esModule", { value: true });
|
|
|
3
3
|
const tslib_1 = require("tslib");
|
|
4
4
|
tslib_1.__exportStar(require("./AssociateWebACLCommand"), exports);
|
|
5
5
|
tslib_1.__exportStar(require("./CheckCapacityCommand"), exports);
|
|
6
|
+
tslib_1.__exportStar(require("./CreateAPIKeyCommand"), exports);
|
|
6
7
|
tslib_1.__exportStar(require("./CreateIPSetCommand"), exports);
|
|
7
8
|
tslib_1.__exportStar(require("./CreateRegexPatternSetCommand"), exports);
|
|
8
9
|
tslib_1.__exportStar(require("./CreateRuleGroupCommand"), exports);
|
|
@@ -17,6 +18,7 @@ tslib_1.__exportStar(require("./DeleteWebACLCommand"), exports);
|
|
|
17
18
|
tslib_1.__exportStar(require("./DescribeManagedRuleGroupCommand"), exports);
|
|
18
19
|
tslib_1.__exportStar(require("./DisassociateWebACLCommand"), exports);
|
|
19
20
|
tslib_1.__exportStar(require("./GenerateMobileSdkReleaseUrlCommand"), exports);
|
|
21
|
+
tslib_1.__exportStar(require("./GetDecryptedAPIKeyCommand"), exports);
|
|
20
22
|
tslib_1.__exportStar(require("./GetIPSetCommand"), exports);
|
|
21
23
|
tslib_1.__exportStar(require("./GetLoggingConfigurationCommand"), exports);
|
|
22
24
|
tslib_1.__exportStar(require("./GetManagedRuleSetCommand"), exports);
|
|
@@ -28,6 +30,7 @@ tslib_1.__exportStar(require("./GetRuleGroupCommand"), exports);
|
|
|
28
30
|
tslib_1.__exportStar(require("./GetSampledRequestsCommand"), exports);
|
|
29
31
|
tslib_1.__exportStar(require("./GetWebACLCommand"), exports);
|
|
30
32
|
tslib_1.__exportStar(require("./GetWebACLForResourceCommand"), exports);
|
|
33
|
+
tslib_1.__exportStar(require("./ListAPIKeysCommand"), exports);
|
|
31
34
|
tslib_1.__exportStar(require("./ListAvailableManagedRuleGroupVersionsCommand"), exports);
|
|
32
35
|
tslib_1.__exportStar(require("./ListAvailableManagedRuleGroupsCommand"), exports);
|
|
33
36
|
tslib_1.__exportStar(require("./ListIPSetsCommand"), exports);
|
|
@@ -1,7 +1,8 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.
|
|
4
|
-
exports.
|
|
3
|
+
exports.se_UpdateRuleGroupCommand = exports.se_UpdateRegexPatternSetCommand = exports.se_UpdateManagedRuleSetVersionExpiryDateCommand = exports.se_UpdateIPSetCommand = exports.se_UntagResourceCommand = exports.se_TagResourceCommand = exports.se_PutPermissionPolicyCommand = exports.se_PutManagedRuleSetVersionsCommand = exports.se_PutLoggingConfigurationCommand = exports.se_ListWebACLsCommand = exports.se_ListTagsForResourceCommand = exports.se_ListRuleGroupsCommand = exports.se_ListResourcesForWebACLCommand = exports.se_ListRegexPatternSetsCommand = exports.se_ListMobileSdkReleasesCommand = exports.se_ListManagedRuleSetsCommand = exports.se_ListLoggingConfigurationsCommand = exports.se_ListIPSetsCommand = exports.se_ListAvailableManagedRuleGroupVersionsCommand = exports.se_ListAvailableManagedRuleGroupsCommand = exports.se_ListAPIKeysCommand = exports.se_GetWebACLForResourceCommand = exports.se_GetWebACLCommand = exports.se_GetSampledRequestsCommand = exports.se_GetRuleGroupCommand = exports.se_GetRegexPatternSetCommand = exports.se_GetRateBasedStatementManagedKeysCommand = exports.se_GetPermissionPolicyCommand = exports.se_GetMobileSdkReleaseCommand = exports.se_GetManagedRuleSetCommand = exports.se_GetLoggingConfigurationCommand = exports.se_GetIPSetCommand = exports.se_GetDecryptedAPIKeyCommand = exports.se_GenerateMobileSdkReleaseUrlCommand = exports.se_DisassociateWebACLCommand = exports.se_DescribeManagedRuleGroupCommand = exports.se_DeleteWebACLCommand = exports.se_DeleteRuleGroupCommand = exports.se_DeleteRegexPatternSetCommand = exports.se_DeletePermissionPolicyCommand = exports.se_DeleteLoggingConfigurationCommand = exports.se_DeleteIPSetCommand = exports.se_DeleteFirewallManagerRuleGroupsCommand = exports.se_CreateWebACLCommand = exports.se_CreateRuleGroupCommand = exports.se_CreateRegexPatternSetCommand = exports.se_CreateIPSetCommand = exports.se_CreateAPIKeyCommand = exports.se_CheckCapacityCommand = exports.se_AssociateWebACLCommand = void 0;
|
|
4
|
+
exports.de_UpdateRegexPatternSetCommand = exports.de_UpdateManagedRuleSetVersionExpiryDateCommand = exports.de_UpdateIPSetCommand = exports.de_UntagResourceCommand = exports.de_TagResourceCommand = exports.de_PutPermissionPolicyCommand = exports.de_PutManagedRuleSetVersionsCommand = exports.de_PutLoggingConfigurationCommand = exports.de_ListWebACLsCommand = exports.de_ListTagsForResourceCommand = exports.de_ListRuleGroupsCommand = exports.de_ListResourcesForWebACLCommand = exports.de_ListRegexPatternSetsCommand = exports.de_ListMobileSdkReleasesCommand = exports.de_ListManagedRuleSetsCommand = exports.de_ListLoggingConfigurationsCommand = exports.de_ListIPSetsCommand = exports.de_ListAvailableManagedRuleGroupVersionsCommand = exports.de_ListAvailableManagedRuleGroupsCommand = exports.de_ListAPIKeysCommand = exports.de_GetWebACLForResourceCommand = exports.de_GetWebACLCommand = exports.de_GetSampledRequestsCommand = exports.de_GetRuleGroupCommand = exports.de_GetRegexPatternSetCommand = exports.de_GetRateBasedStatementManagedKeysCommand = exports.de_GetPermissionPolicyCommand = exports.de_GetMobileSdkReleaseCommand = exports.de_GetManagedRuleSetCommand = exports.de_GetLoggingConfigurationCommand = exports.de_GetIPSetCommand = exports.de_GetDecryptedAPIKeyCommand = exports.de_GenerateMobileSdkReleaseUrlCommand = exports.de_DisassociateWebACLCommand = exports.de_DescribeManagedRuleGroupCommand = exports.de_DeleteWebACLCommand = exports.de_DeleteRuleGroupCommand = exports.de_DeleteRegexPatternSetCommand = exports.de_DeletePermissionPolicyCommand = exports.de_DeleteLoggingConfigurationCommand = exports.de_DeleteIPSetCommand = exports.de_DeleteFirewallManagerRuleGroupsCommand = exports.de_CreateWebACLCommand = exports.de_CreateRuleGroupCommand = exports.de_CreateRegexPatternSetCommand = exports.de_CreateIPSetCommand = exports.de_CreateAPIKeyCommand = exports.de_CheckCapacityCommand = exports.de_AssociateWebACLCommand = exports.se_UpdateWebACLCommand = void 0;
|
|
5
|
+
exports.de_UpdateWebACLCommand = exports.de_UpdateRuleGroupCommand = void 0;
|
|
5
6
|
const protocol_http_1 = require("@aws-sdk/protocol-http");
|
|
6
7
|
const smithy_client_1 = require("@aws-sdk/smithy-client");
|
|
7
8
|
const models_0_1 = require("../models/models_0");
|
|
@@ -20,6 +21,13 @@ const se_CheckCapacityCommand = async (input, context) => {
|
|
|
20
21
|
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
21
22
|
};
|
|
22
23
|
exports.se_CheckCapacityCommand = se_CheckCapacityCommand;
|
|
24
|
+
const se_CreateAPIKeyCommand = async (input, context) => {
|
|
25
|
+
const headers = sharedHeaders("CreateAPIKey");
|
|
26
|
+
let body;
|
|
27
|
+
body = JSON.stringify((0, smithy_client_1._json)(input));
|
|
28
|
+
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
29
|
+
};
|
|
30
|
+
exports.se_CreateAPIKeyCommand = se_CreateAPIKeyCommand;
|
|
23
31
|
const se_CreateIPSetCommand = async (input, context) => {
|
|
24
32
|
const headers = sharedHeaders("CreateIPSet");
|
|
25
33
|
let body;
|
|
@@ -118,6 +126,13 @@ const se_GenerateMobileSdkReleaseUrlCommand = async (input, context) => {
|
|
|
118
126
|
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
119
127
|
};
|
|
120
128
|
exports.se_GenerateMobileSdkReleaseUrlCommand = se_GenerateMobileSdkReleaseUrlCommand;
|
|
129
|
+
const se_GetDecryptedAPIKeyCommand = async (input, context) => {
|
|
130
|
+
const headers = sharedHeaders("GetDecryptedAPIKey");
|
|
131
|
+
let body;
|
|
132
|
+
body = JSON.stringify((0, smithy_client_1._json)(input));
|
|
133
|
+
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
134
|
+
};
|
|
135
|
+
exports.se_GetDecryptedAPIKeyCommand = se_GetDecryptedAPIKeyCommand;
|
|
121
136
|
const se_GetIPSetCommand = async (input, context) => {
|
|
122
137
|
const headers = sharedHeaders("GetIPSet");
|
|
123
138
|
let body;
|
|
@@ -195,6 +210,13 @@ const se_GetWebACLForResourceCommand = async (input, context) => {
|
|
|
195
210
|
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
196
211
|
};
|
|
197
212
|
exports.se_GetWebACLForResourceCommand = se_GetWebACLForResourceCommand;
|
|
213
|
+
const se_ListAPIKeysCommand = async (input, context) => {
|
|
214
|
+
const headers = sharedHeaders("ListAPIKeys");
|
|
215
|
+
let body;
|
|
216
|
+
body = JSON.stringify((0, smithy_client_1._json)(input));
|
|
217
|
+
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
218
|
+
};
|
|
219
|
+
exports.se_ListAPIKeysCommand = se_ListAPIKeysCommand;
|
|
198
220
|
const se_ListAvailableManagedRuleGroupsCommand = async (input, context) => {
|
|
199
221
|
const headers = sharedHeaders("ListAvailableManagedRuleGroups");
|
|
200
222
|
let body;
|
|
@@ -444,6 +466,48 @@ const de_CheckCapacityCommandError = async (output, context) => {
|
|
|
444
466
|
});
|
|
445
467
|
}
|
|
446
468
|
};
|
|
469
|
+
const de_CreateAPIKeyCommand = async (output, context) => {
|
|
470
|
+
if (output.statusCode >= 300) {
|
|
471
|
+
return de_CreateAPIKeyCommandError(output, context);
|
|
472
|
+
}
|
|
473
|
+
const data = await parseBody(output.body, context);
|
|
474
|
+
let contents = {};
|
|
475
|
+
contents = (0, smithy_client_1._json)(data);
|
|
476
|
+
const response = {
|
|
477
|
+
$metadata: deserializeMetadata(output),
|
|
478
|
+
...contents,
|
|
479
|
+
};
|
|
480
|
+
return response;
|
|
481
|
+
};
|
|
482
|
+
exports.de_CreateAPIKeyCommand = de_CreateAPIKeyCommand;
|
|
483
|
+
const de_CreateAPIKeyCommandError = async (output, context) => {
|
|
484
|
+
const parsedOutput = {
|
|
485
|
+
...output,
|
|
486
|
+
body: await parseErrorBody(output.body, context),
|
|
487
|
+
};
|
|
488
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
489
|
+
switch (errorCode) {
|
|
490
|
+
case "WAFInternalErrorException":
|
|
491
|
+
case "com.amazonaws.wafv2#WAFInternalErrorException":
|
|
492
|
+
throw await de_WAFInternalErrorExceptionRes(parsedOutput, context);
|
|
493
|
+
case "WAFInvalidOperationException":
|
|
494
|
+
case "com.amazonaws.wafv2#WAFInvalidOperationException":
|
|
495
|
+
throw await de_WAFInvalidOperationExceptionRes(parsedOutput, context);
|
|
496
|
+
case "WAFInvalidParameterException":
|
|
497
|
+
case "com.amazonaws.wafv2#WAFInvalidParameterException":
|
|
498
|
+
throw await de_WAFInvalidParameterExceptionRes(parsedOutput, context);
|
|
499
|
+
case "WAFLimitsExceededException":
|
|
500
|
+
case "com.amazonaws.wafv2#WAFLimitsExceededException":
|
|
501
|
+
throw await de_WAFLimitsExceededExceptionRes(parsedOutput, context);
|
|
502
|
+
default:
|
|
503
|
+
const parsedBody = parsedOutput.body;
|
|
504
|
+
return throwDefaultError({
|
|
505
|
+
output,
|
|
506
|
+
parsedBody,
|
|
507
|
+
errorCode,
|
|
508
|
+
});
|
|
509
|
+
}
|
|
510
|
+
};
|
|
447
511
|
const de_CreateIPSetCommand = async (output, context) => {
|
|
448
512
|
if (output.statusCode >= 300) {
|
|
449
513
|
return de_CreateIPSetCommandError(output, context);
|
|
@@ -1164,6 +1228,48 @@ const de_GenerateMobileSdkReleaseUrlCommandError = async (output, context) => {
|
|
|
1164
1228
|
});
|
|
1165
1229
|
}
|
|
1166
1230
|
};
|
|
1231
|
+
const de_GetDecryptedAPIKeyCommand = async (output, context) => {
|
|
1232
|
+
if (output.statusCode >= 300) {
|
|
1233
|
+
return de_GetDecryptedAPIKeyCommandError(output, context);
|
|
1234
|
+
}
|
|
1235
|
+
const data = await parseBody(output.body, context);
|
|
1236
|
+
let contents = {};
|
|
1237
|
+
contents = de_GetDecryptedAPIKeyResponse(data, context);
|
|
1238
|
+
const response = {
|
|
1239
|
+
$metadata: deserializeMetadata(output),
|
|
1240
|
+
...contents,
|
|
1241
|
+
};
|
|
1242
|
+
return response;
|
|
1243
|
+
};
|
|
1244
|
+
exports.de_GetDecryptedAPIKeyCommand = de_GetDecryptedAPIKeyCommand;
|
|
1245
|
+
const de_GetDecryptedAPIKeyCommandError = async (output, context) => {
|
|
1246
|
+
const parsedOutput = {
|
|
1247
|
+
...output,
|
|
1248
|
+
body: await parseErrorBody(output.body, context),
|
|
1249
|
+
};
|
|
1250
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1251
|
+
switch (errorCode) {
|
|
1252
|
+
case "WAFInternalErrorException":
|
|
1253
|
+
case "com.amazonaws.wafv2#WAFInternalErrorException":
|
|
1254
|
+
throw await de_WAFInternalErrorExceptionRes(parsedOutput, context);
|
|
1255
|
+
case "WAFInvalidOperationException":
|
|
1256
|
+
case "com.amazonaws.wafv2#WAFInvalidOperationException":
|
|
1257
|
+
throw await de_WAFInvalidOperationExceptionRes(parsedOutput, context);
|
|
1258
|
+
case "WAFInvalidParameterException":
|
|
1259
|
+
case "com.amazonaws.wafv2#WAFInvalidParameterException":
|
|
1260
|
+
throw await de_WAFInvalidParameterExceptionRes(parsedOutput, context);
|
|
1261
|
+
case "WAFInvalidResourceException":
|
|
1262
|
+
case "com.amazonaws.wafv2#WAFInvalidResourceException":
|
|
1263
|
+
throw await de_WAFInvalidResourceExceptionRes(parsedOutput, context);
|
|
1264
|
+
default:
|
|
1265
|
+
const parsedBody = parsedOutput.body;
|
|
1266
|
+
return throwDefaultError({
|
|
1267
|
+
output,
|
|
1268
|
+
parsedBody,
|
|
1269
|
+
errorCode,
|
|
1270
|
+
});
|
|
1271
|
+
}
|
|
1272
|
+
};
|
|
1167
1273
|
const de_GetIPSetCommand = async (output, context) => {
|
|
1168
1274
|
if (output.statusCode >= 300) {
|
|
1169
1275
|
return de_GetIPSetCommandError(output, context);
|
|
@@ -1623,6 +1729,48 @@ const de_GetWebACLForResourceCommandError = async (output, context) => {
|
|
|
1623
1729
|
});
|
|
1624
1730
|
}
|
|
1625
1731
|
};
|
|
1732
|
+
const de_ListAPIKeysCommand = async (output, context) => {
|
|
1733
|
+
if (output.statusCode >= 300) {
|
|
1734
|
+
return de_ListAPIKeysCommandError(output, context);
|
|
1735
|
+
}
|
|
1736
|
+
const data = await parseBody(output.body, context);
|
|
1737
|
+
let contents = {};
|
|
1738
|
+
contents = de_ListAPIKeysResponse(data, context);
|
|
1739
|
+
const response = {
|
|
1740
|
+
$metadata: deserializeMetadata(output),
|
|
1741
|
+
...contents,
|
|
1742
|
+
};
|
|
1743
|
+
return response;
|
|
1744
|
+
};
|
|
1745
|
+
exports.de_ListAPIKeysCommand = de_ListAPIKeysCommand;
|
|
1746
|
+
const de_ListAPIKeysCommandError = async (output, context) => {
|
|
1747
|
+
const parsedOutput = {
|
|
1748
|
+
...output,
|
|
1749
|
+
body: await parseErrorBody(output.body, context),
|
|
1750
|
+
};
|
|
1751
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1752
|
+
switch (errorCode) {
|
|
1753
|
+
case "WAFInternalErrorException":
|
|
1754
|
+
case "com.amazonaws.wafv2#WAFInternalErrorException":
|
|
1755
|
+
throw await de_WAFInternalErrorExceptionRes(parsedOutput, context);
|
|
1756
|
+
case "WAFInvalidOperationException":
|
|
1757
|
+
case "com.amazonaws.wafv2#WAFInvalidOperationException":
|
|
1758
|
+
throw await de_WAFInvalidOperationExceptionRes(parsedOutput, context);
|
|
1759
|
+
case "WAFInvalidParameterException":
|
|
1760
|
+
case "com.amazonaws.wafv2#WAFInvalidParameterException":
|
|
1761
|
+
throw await de_WAFInvalidParameterExceptionRes(parsedOutput, context);
|
|
1762
|
+
case "WAFInvalidResourceException":
|
|
1763
|
+
case "com.amazonaws.wafv2#WAFInvalidResourceException":
|
|
1764
|
+
throw await de_WAFInvalidResourceExceptionRes(parsedOutput, context);
|
|
1765
|
+
default:
|
|
1766
|
+
const parsedBody = parsedOutput.body;
|
|
1767
|
+
return throwDefaultError({
|
|
1768
|
+
output,
|
|
1769
|
+
parsedBody,
|
|
1770
|
+
errorCode,
|
|
1771
|
+
});
|
|
1772
|
+
}
|
|
1773
|
+
};
|
|
1626
1774
|
const de_ListAvailableManagedRuleGroupsCommand = async (output, context) => {
|
|
1627
1775
|
if (output.statusCode >= 300) {
|
|
1628
1776
|
return de_ListAvailableManagedRuleGroupsCommandError(output, context);
|
|
@@ -2923,6 +3071,22 @@ const de_AndStatement = (output, context) => {
|
|
|
2923
3071
|
Statements: (_) => de_Statements(_, context),
|
|
2924
3072
|
});
|
|
2925
3073
|
};
|
|
3074
|
+
const de_APIKeySummaries = (output, context) => {
|
|
3075
|
+
const retVal = (output || [])
|
|
3076
|
+
.filter((e) => e != null)
|
|
3077
|
+
.map((entry) => {
|
|
3078
|
+
return de_APIKeySummary(entry, context);
|
|
3079
|
+
});
|
|
3080
|
+
return retVal;
|
|
3081
|
+
};
|
|
3082
|
+
const de_APIKeySummary = (output, context) => {
|
|
3083
|
+
return (0, smithy_client_1.take)(output, {
|
|
3084
|
+
APIKey: smithy_client_1.expectString,
|
|
3085
|
+
CreationTimestamp: (_) => (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(_))),
|
|
3086
|
+
TokenDomains: smithy_client_1._json,
|
|
3087
|
+
Version: smithy_client_1.expectInt32,
|
|
3088
|
+
});
|
|
3089
|
+
};
|
|
2926
3090
|
const de_ByteMatchStatement = (output, context) => {
|
|
2927
3091
|
return (0, smithy_client_1.take)(output, {
|
|
2928
3092
|
FieldToMatch: smithy_client_1._json,
|
|
@@ -2954,6 +3118,12 @@ const de_FirewallManagerStatement = (output, context) => {
|
|
|
2954
3118
|
RuleGroupReferenceStatement: smithy_client_1._json,
|
|
2955
3119
|
});
|
|
2956
3120
|
};
|
|
3121
|
+
const de_GetDecryptedAPIKeyResponse = (output, context) => {
|
|
3122
|
+
return (0, smithy_client_1.take)(output, {
|
|
3123
|
+
CreationTimestamp: (_) => (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(_))),
|
|
3124
|
+
TokenDomains: smithy_client_1._json,
|
|
3125
|
+
});
|
|
3126
|
+
};
|
|
2957
3127
|
const de_GetManagedRuleSetResponse = (output, context) => {
|
|
2958
3128
|
return (0, smithy_client_1.take)(output, {
|
|
2959
3129
|
LockToken: smithy_client_1.expectString,
|
|
@@ -2990,6 +3160,13 @@ const de_GetWebACLResponse = (output, context) => {
|
|
|
2990
3160
|
WebACL: (_) => de_WebACL(_, context),
|
|
2991
3161
|
});
|
|
2992
3162
|
};
|
|
3163
|
+
const de_ListAPIKeysResponse = (output, context) => {
|
|
3164
|
+
return (0, smithy_client_1.take)(output, {
|
|
3165
|
+
APIKeySummaries: (_) => de_APIKeySummaries(_, context),
|
|
3166
|
+
ApplicationIntegrationURL: smithy_client_1.expectString,
|
|
3167
|
+
NextMarker: smithy_client_1.expectString,
|
|
3168
|
+
});
|
|
3169
|
+
};
|
|
2993
3170
|
const de_ListAvailableManagedRuleGroupVersionsResponse = (output, context) => {
|
|
2994
3171
|
return (0, smithy_client_1.take)(output, {
|
|
2995
3172
|
CurrentDefaultVersion: smithy_client_1.expectString,
|
package/dist-es/WAFV2.js
CHANGED
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
import { createAggregatedClient } from "@aws-sdk/smithy-client";
|
|
2
2
|
import { AssociateWebACLCommand, } from "./commands/AssociateWebACLCommand";
|
|
3
3
|
import { CheckCapacityCommand, } from "./commands/CheckCapacityCommand";
|
|
4
|
+
import { CreateAPIKeyCommand, } from "./commands/CreateAPIKeyCommand";
|
|
4
5
|
import { CreateIPSetCommand } from "./commands/CreateIPSetCommand";
|
|
5
6
|
import { CreateRegexPatternSetCommand, } from "./commands/CreateRegexPatternSetCommand";
|
|
6
7
|
import { CreateRuleGroupCommand, } from "./commands/CreateRuleGroupCommand";
|
|
@@ -15,6 +16,7 @@ import { DeleteWebACLCommand, } from "./commands/DeleteWebACLCommand";
|
|
|
15
16
|
import { DescribeManagedRuleGroupCommand, } from "./commands/DescribeManagedRuleGroupCommand";
|
|
16
17
|
import { DisassociateWebACLCommand, } from "./commands/DisassociateWebACLCommand";
|
|
17
18
|
import { GenerateMobileSdkReleaseUrlCommand, } from "./commands/GenerateMobileSdkReleaseUrlCommand";
|
|
19
|
+
import { GetDecryptedAPIKeyCommand, } from "./commands/GetDecryptedAPIKeyCommand";
|
|
18
20
|
import { GetIPSetCommand } from "./commands/GetIPSetCommand";
|
|
19
21
|
import { GetLoggingConfigurationCommand, } from "./commands/GetLoggingConfigurationCommand";
|
|
20
22
|
import { GetManagedRuleSetCommand, } from "./commands/GetManagedRuleSetCommand";
|
|
@@ -26,6 +28,7 @@ import { GetRuleGroupCommand, } from "./commands/GetRuleGroupCommand";
|
|
|
26
28
|
import { GetSampledRequestsCommand, } from "./commands/GetSampledRequestsCommand";
|
|
27
29
|
import { GetWebACLCommand } from "./commands/GetWebACLCommand";
|
|
28
30
|
import { GetWebACLForResourceCommand, } from "./commands/GetWebACLForResourceCommand";
|
|
31
|
+
import { ListAPIKeysCommand } from "./commands/ListAPIKeysCommand";
|
|
29
32
|
import { ListAvailableManagedRuleGroupsCommand, } from "./commands/ListAvailableManagedRuleGroupsCommand";
|
|
30
33
|
import { ListAvailableManagedRuleGroupVersionsCommand, } from "./commands/ListAvailableManagedRuleGroupVersionsCommand";
|
|
31
34
|
import { ListIPSetsCommand } from "./commands/ListIPSetsCommand";
|
|
@@ -51,6 +54,7 @@ import { WAFV2Client } from "./WAFV2Client";
|
|
|
51
54
|
const commands = {
|
|
52
55
|
AssociateWebACLCommand,
|
|
53
56
|
CheckCapacityCommand,
|
|
57
|
+
CreateAPIKeyCommand,
|
|
54
58
|
CreateIPSetCommand,
|
|
55
59
|
CreateRegexPatternSetCommand,
|
|
56
60
|
CreateRuleGroupCommand,
|
|
@@ -65,6 +69,7 @@ const commands = {
|
|
|
65
69
|
DescribeManagedRuleGroupCommand,
|
|
66
70
|
DisassociateWebACLCommand,
|
|
67
71
|
GenerateMobileSdkReleaseUrlCommand,
|
|
72
|
+
GetDecryptedAPIKeyCommand,
|
|
68
73
|
GetIPSetCommand,
|
|
69
74
|
GetLoggingConfigurationCommand,
|
|
70
75
|
GetManagedRuleSetCommand,
|
|
@@ -76,6 +81,7 @@ const commands = {
|
|
|
76
81
|
GetSampledRequestsCommand,
|
|
77
82
|
GetWebACLCommand,
|
|
78
83
|
GetWebACLForResourceCommand,
|
|
84
|
+
ListAPIKeysCommand,
|
|
79
85
|
ListAvailableManagedRuleGroupsCommand,
|
|
80
86
|
ListAvailableManagedRuleGroupVersionsCommand,
|
|
81
87
|
ListIPSetsCommand,
|
|
@@ -0,0 +1,41 @@
|
|
|
1
|
+
import { getEndpointPlugin } from "@aws-sdk/middleware-endpoint";
|
|
2
|
+
import { getSerdePlugin } from "@aws-sdk/middleware-serde";
|
|
3
|
+
import { Command as $Command } from "@aws-sdk/smithy-client";
|
|
4
|
+
import { de_CreateAPIKeyCommand, se_CreateAPIKeyCommand } from "../protocols/Aws_json1_1";
|
|
5
|
+
export class CreateAPIKeyCommand extends $Command {
|
|
6
|
+
static getEndpointParameterInstructions() {
|
|
7
|
+
return {
|
|
8
|
+
UseFIPS: { type: "builtInParams", name: "useFipsEndpoint" },
|
|
9
|
+
Endpoint: { type: "builtInParams", name: "endpoint" },
|
|
10
|
+
Region: { type: "builtInParams", name: "region" },
|
|
11
|
+
UseDualStack: { type: "builtInParams", name: "useDualstackEndpoint" },
|
|
12
|
+
};
|
|
13
|
+
}
|
|
14
|
+
constructor(input) {
|
|
15
|
+
super();
|
|
16
|
+
this.input = input;
|
|
17
|
+
}
|
|
18
|
+
resolveMiddleware(clientStack, configuration, options) {
|
|
19
|
+
this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize));
|
|
20
|
+
this.middlewareStack.use(getEndpointPlugin(configuration, CreateAPIKeyCommand.getEndpointParameterInstructions()));
|
|
21
|
+
const stack = clientStack.concat(this.middlewareStack);
|
|
22
|
+
const { logger } = configuration;
|
|
23
|
+
const clientName = "WAFV2Client";
|
|
24
|
+
const commandName = "CreateAPIKeyCommand";
|
|
25
|
+
const handlerExecutionContext = {
|
|
26
|
+
logger,
|
|
27
|
+
clientName,
|
|
28
|
+
commandName,
|
|
29
|
+
inputFilterSensitiveLog: (_) => _,
|
|
30
|
+
outputFilterSensitiveLog: (_) => _,
|
|
31
|
+
};
|
|
32
|
+
const { requestHandler } = configuration;
|
|
33
|
+
return stack.resolve((request) => requestHandler.handle(request.request, options || {}), handlerExecutionContext);
|
|
34
|
+
}
|
|
35
|
+
serialize(input, context) {
|
|
36
|
+
return se_CreateAPIKeyCommand(input, context);
|
|
37
|
+
}
|
|
38
|
+
deserialize(output, context) {
|
|
39
|
+
return de_CreateAPIKeyCommand(output, context);
|
|
40
|
+
}
|
|
41
|
+
}
|
|
@@ -0,0 +1,41 @@
|
|
|
1
|
+
import { getEndpointPlugin } from "@aws-sdk/middleware-endpoint";
|
|
2
|
+
import { getSerdePlugin } from "@aws-sdk/middleware-serde";
|
|
3
|
+
import { Command as $Command } from "@aws-sdk/smithy-client";
|
|
4
|
+
import { de_GetDecryptedAPIKeyCommand, se_GetDecryptedAPIKeyCommand } from "../protocols/Aws_json1_1";
|
|
5
|
+
export class GetDecryptedAPIKeyCommand extends $Command {
|
|
6
|
+
static getEndpointParameterInstructions() {
|
|
7
|
+
return {
|
|
8
|
+
UseFIPS: { type: "builtInParams", name: "useFipsEndpoint" },
|
|
9
|
+
Endpoint: { type: "builtInParams", name: "endpoint" },
|
|
10
|
+
Region: { type: "builtInParams", name: "region" },
|
|
11
|
+
UseDualStack: { type: "builtInParams", name: "useDualstackEndpoint" },
|
|
12
|
+
};
|
|
13
|
+
}
|
|
14
|
+
constructor(input) {
|
|
15
|
+
super();
|
|
16
|
+
this.input = input;
|
|
17
|
+
}
|
|
18
|
+
resolveMiddleware(clientStack, configuration, options) {
|
|
19
|
+
this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize));
|
|
20
|
+
this.middlewareStack.use(getEndpointPlugin(configuration, GetDecryptedAPIKeyCommand.getEndpointParameterInstructions()));
|
|
21
|
+
const stack = clientStack.concat(this.middlewareStack);
|
|
22
|
+
const { logger } = configuration;
|
|
23
|
+
const clientName = "WAFV2Client";
|
|
24
|
+
const commandName = "GetDecryptedAPIKeyCommand";
|
|
25
|
+
const handlerExecutionContext = {
|
|
26
|
+
logger,
|
|
27
|
+
clientName,
|
|
28
|
+
commandName,
|
|
29
|
+
inputFilterSensitiveLog: (_) => _,
|
|
30
|
+
outputFilterSensitiveLog: (_) => _,
|
|
31
|
+
};
|
|
32
|
+
const { requestHandler } = configuration;
|
|
33
|
+
return stack.resolve((request) => requestHandler.handle(request.request, options || {}), handlerExecutionContext);
|
|
34
|
+
}
|
|
35
|
+
serialize(input, context) {
|
|
36
|
+
return se_GetDecryptedAPIKeyCommand(input, context);
|
|
37
|
+
}
|
|
38
|
+
deserialize(output, context) {
|
|
39
|
+
return de_GetDecryptedAPIKeyCommand(output, context);
|
|
40
|
+
}
|
|
41
|
+
}
|