@aws-sdk/client-network-firewall 3.301.0 → 3.306.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 +40 -0
- package/dist-cjs/NetworkFirewall.js +75 -0
- package/dist-cjs/commands/CreateTLSInspectionConfigurationCommand.js +45 -0
- package/dist-cjs/commands/DeleteTLSInspectionConfigurationCommand.js +45 -0
- package/dist-cjs/commands/DescribeTLSInspectionConfigurationCommand.js +45 -0
- package/dist-cjs/commands/ListTLSInspectionConfigurationsCommand.js +45 -0
- package/dist-cjs/commands/UpdateTLSInspectionConfigurationCommand.js +45 -0
- package/dist-cjs/commands/index.js +5 -0
- package/dist-cjs/endpoint/ruleset.js +3 -3
- package/dist-cjs/models/models_0.js +114 -135
- package/dist-cjs/pagination/ListTLSInspectionConfigurationsPaginator.js +29 -0
- package/dist-cjs/pagination/index.js +1 -0
- package/dist-cjs/protocols/Aws_json1_0.js +540 -2
- package/dist-es/NetworkFirewall.js +75 -0
- package/dist-es/commands/CreateTLSInspectionConfigurationCommand.js +41 -0
- package/dist-es/commands/DeleteTLSInspectionConfigurationCommand.js +41 -0
- package/dist-es/commands/DescribeTLSInspectionConfigurationCommand.js +41 -0
- package/dist-es/commands/ListTLSInspectionConfigurationsCommand.js +41 -0
- package/dist-es/commands/UpdateTLSInspectionConfigurationCommand.js +41 -0
- package/dist-es/commands/index.js +5 -0
- package/dist-es/endpoint/ruleset.js +3 -3
- package/dist-es/models/models_0.js +114 -135
- package/dist-es/pagination/ListTLSInspectionConfigurationsPaginator.js +25 -0
- package/dist-es/pagination/index.js +1 -0
- package/dist-es/protocols/Aws_json1_0.js +528 -0
- package/dist-types/NetworkFirewall.d.ts +53 -0
- package/dist-types/NetworkFirewallClient.d.ts +7 -2
- package/dist-types/commands/CreateFirewallPolicyCommand.d.ts +1 -0
- package/dist-types/commands/CreateTLSInspectionConfigurationCommand.d.ts +145 -0
- package/dist-types/commands/DeleteTLSInspectionConfigurationCommand.d.ts +94 -0
- package/dist-types/commands/DescribeTLSInspectionConfigurationCommand.d.ts +90 -0
- package/dist-types/commands/ListTLSInspectionConfigurationsCommand.d.ts +87 -0
- package/dist-types/commands/UpdateFirewallPolicyCommand.d.ts +1 -0
- package/dist-types/commands/UpdateTLSInspectionConfigurationCommand.d.ts +144 -0
- package/dist-types/commands/index.d.ts +5 -0
- package/dist-types/endpoint/EndpointParameters.d.ts +1 -1
- package/dist-types/models/models_0.d.ts +558 -115
- package/dist-types/pagination/ListTLSInspectionConfigurationsPaginator.d.ts +7 -0
- package/dist-types/pagination/index.d.ts +1 -0
- package/dist-types/protocols/Aws_json1_0.d.ts +15 -0
- package/dist-types/ts3.4/NetworkFirewall.d.ts +91 -0
- package/dist-types/ts3.4/NetworkFirewallClient.d.ts +32 -2
- package/dist-types/ts3.4/commands/CreateTLSInspectionConfigurationCommand.d.ts +41 -0
- package/dist-types/ts3.4/commands/DeleteTLSInspectionConfigurationCommand.d.ts +41 -0
- package/dist-types/ts3.4/commands/DescribeTLSInspectionConfigurationCommand.d.ts +41 -0
- package/dist-types/ts3.4/commands/ListTLSInspectionConfigurationsCommand.d.ts +41 -0
- package/dist-types/ts3.4/commands/UpdateTLSInspectionConfigurationCommand.d.ts +41 -0
- package/dist-types/ts3.4/commands/index.d.ts +5 -0
- package/dist-types/ts3.4/endpoint/EndpointParameters.d.ts +1 -1
- package/dist-types/ts3.4/models/models_0.d.ts +244 -113
- package/dist-types/ts3.4/pagination/ListTLSInspectionConfigurationsPaginator.d.ts +11 -0
- package/dist-types/ts3.4/pagination/index.d.ts +1 -0
- package/dist-types/ts3.4/protocols/Aws_json1_0.d.ts +60 -0
- package/package.json +34 -34
|
@@ -3,21 +3,25 @@ import { AssociateSubnetsCommand, } from "./commands/AssociateSubnetsCommand";
|
|
|
3
3
|
import { CreateFirewallCommand, } from "./commands/CreateFirewallCommand";
|
|
4
4
|
import { CreateFirewallPolicyCommand, } from "./commands/CreateFirewallPolicyCommand";
|
|
5
5
|
import { CreateRuleGroupCommand, } from "./commands/CreateRuleGroupCommand";
|
|
6
|
+
import { CreateTLSInspectionConfigurationCommand, } from "./commands/CreateTLSInspectionConfigurationCommand";
|
|
6
7
|
import { DeleteFirewallCommand, } from "./commands/DeleteFirewallCommand";
|
|
7
8
|
import { DeleteFirewallPolicyCommand, } from "./commands/DeleteFirewallPolicyCommand";
|
|
8
9
|
import { DeleteResourcePolicyCommand, } from "./commands/DeleteResourcePolicyCommand";
|
|
9
10
|
import { DeleteRuleGroupCommand, } from "./commands/DeleteRuleGroupCommand";
|
|
11
|
+
import { DeleteTLSInspectionConfigurationCommand, } from "./commands/DeleteTLSInspectionConfigurationCommand";
|
|
10
12
|
import { DescribeFirewallCommand, } from "./commands/DescribeFirewallCommand";
|
|
11
13
|
import { DescribeFirewallPolicyCommand, } from "./commands/DescribeFirewallPolicyCommand";
|
|
12
14
|
import { DescribeLoggingConfigurationCommand, } from "./commands/DescribeLoggingConfigurationCommand";
|
|
13
15
|
import { DescribeResourcePolicyCommand, } from "./commands/DescribeResourcePolicyCommand";
|
|
14
16
|
import { DescribeRuleGroupCommand, } from "./commands/DescribeRuleGroupCommand";
|
|
15
17
|
import { DescribeRuleGroupMetadataCommand, } from "./commands/DescribeRuleGroupMetadataCommand";
|
|
18
|
+
import { DescribeTLSInspectionConfigurationCommand, } from "./commands/DescribeTLSInspectionConfigurationCommand";
|
|
16
19
|
import { DisassociateSubnetsCommand, } from "./commands/DisassociateSubnetsCommand";
|
|
17
20
|
import { ListFirewallPoliciesCommand, } from "./commands/ListFirewallPoliciesCommand";
|
|
18
21
|
import { ListFirewallsCommand, } from "./commands/ListFirewallsCommand";
|
|
19
22
|
import { ListRuleGroupsCommand, } from "./commands/ListRuleGroupsCommand";
|
|
20
23
|
import { ListTagsForResourceCommand, } from "./commands/ListTagsForResourceCommand";
|
|
24
|
+
import { ListTLSInspectionConfigurationsCommand, } from "./commands/ListTLSInspectionConfigurationsCommand";
|
|
21
25
|
import { PutResourcePolicyCommand, } from "./commands/PutResourcePolicyCommand";
|
|
22
26
|
import { TagResourceCommand } from "./commands/TagResourceCommand";
|
|
23
27
|
import { UntagResourceCommand, } from "./commands/UntagResourceCommand";
|
|
@@ -29,6 +33,7 @@ import { UpdateFirewallPolicyCommand, } from "./commands/UpdateFirewallPolicyCom
|
|
|
29
33
|
import { UpdateLoggingConfigurationCommand, } from "./commands/UpdateLoggingConfigurationCommand";
|
|
30
34
|
import { UpdateRuleGroupCommand, } from "./commands/UpdateRuleGroupCommand";
|
|
31
35
|
import { UpdateSubnetChangeProtectionCommand, } from "./commands/UpdateSubnetChangeProtectionCommand";
|
|
36
|
+
import { UpdateTLSInspectionConfigurationCommand, } from "./commands/UpdateTLSInspectionConfigurationCommand";
|
|
32
37
|
import { NetworkFirewallClient } from "./NetworkFirewallClient";
|
|
33
38
|
export class NetworkFirewall extends NetworkFirewallClient {
|
|
34
39
|
associateFirewallPolicy(args, optionsOrCb, cb) {
|
|
@@ -101,6 +106,20 @@ export class NetworkFirewall extends NetworkFirewallClient {
|
|
|
101
106
|
return this.send(command, optionsOrCb);
|
|
102
107
|
}
|
|
103
108
|
}
|
|
109
|
+
createTLSInspectionConfiguration(args, optionsOrCb, cb) {
|
|
110
|
+
const command = new CreateTLSInspectionConfigurationCommand(args);
|
|
111
|
+
if (typeof optionsOrCb === "function") {
|
|
112
|
+
this.send(command, optionsOrCb);
|
|
113
|
+
}
|
|
114
|
+
else if (typeof cb === "function") {
|
|
115
|
+
if (typeof optionsOrCb !== "object")
|
|
116
|
+
throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
|
|
117
|
+
this.send(command, optionsOrCb || {}, cb);
|
|
118
|
+
}
|
|
119
|
+
else {
|
|
120
|
+
return this.send(command, optionsOrCb);
|
|
121
|
+
}
|
|
122
|
+
}
|
|
104
123
|
deleteFirewall(args, optionsOrCb, cb) {
|
|
105
124
|
const command = new DeleteFirewallCommand(args);
|
|
106
125
|
if (typeof optionsOrCb === "function") {
|
|
@@ -157,6 +176,20 @@ export class NetworkFirewall extends NetworkFirewallClient {
|
|
|
157
176
|
return this.send(command, optionsOrCb);
|
|
158
177
|
}
|
|
159
178
|
}
|
|
179
|
+
deleteTLSInspectionConfiguration(args, optionsOrCb, cb) {
|
|
180
|
+
const command = new DeleteTLSInspectionConfigurationCommand(args);
|
|
181
|
+
if (typeof optionsOrCb === "function") {
|
|
182
|
+
this.send(command, optionsOrCb);
|
|
183
|
+
}
|
|
184
|
+
else if (typeof cb === "function") {
|
|
185
|
+
if (typeof optionsOrCb !== "object")
|
|
186
|
+
throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
|
|
187
|
+
this.send(command, optionsOrCb || {}, cb);
|
|
188
|
+
}
|
|
189
|
+
else {
|
|
190
|
+
return this.send(command, optionsOrCb);
|
|
191
|
+
}
|
|
192
|
+
}
|
|
160
193
|
describeFirewall(args, optionsOrCb, cb) {
|
|
161
194
|
const command = new DescribeFirewallCommand(args);
|
|
162
195
|
if (typeof optionsOrCb === "function") {
|
|
@@ -241,6 +274,20 @@ export class NetworkFirewall extends NetworkFirewallClient {
|
|
|
241
274
|
return this.send(command, optionsOrCb);
|
|
242
275
|
}
|
|
243
276
|
}
|
|
277
|
+
describeTLSInspectionConfiguration(args, optionsOrCb, cb) {
|
|
278
|
+
const command = new DescribeTLSInspectionConfigurationCommand(args);
|
|
279
|
+
if (typeof optionsOrCb === "function") {
|
|
280
|
+
this.send(command, optionsOrCb);
|
|
281
|
+
}
|
|
282
|
+
else if (typeof cb === "function") {
|
|
283
|
+
if (typeof optionsOrCb !== "object")
|
|
284
|
+
throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
|
|
285
|
+
this.send(command, optionsOrCb || {}, cb);
|
|
286
|
+
}
|
|
287
|
+
else {
|
|
288
|
+
return this.send(command, optionsOrCb);
|
|
289
|
+
}
|
|
290
|
+
}
|
|
244
291
|
disassociateSubnets(args, optionsOrCb, cb) {
|
|
245
292
|
const command = new DisassociateSubnetsCommand(args);
|
|
246
293
|
if (typeof optionsOrCb === "function") {
|
|
@@ -311,6 +358,20 @@ export class NetworkFirewall extends NetworkFirewallClient {
|
|
|
311
358
|
return this.send(command, optionsOrCb);
|
|
312
359
|
}
|
|
313
360
|
}
|
|
361
|
+
listTLSInspectionConfigurations(args, optionsOrCb, cb) {
|
|
362
|
+
const command = new ListTLSInspectionConfigurationsCommand(args);
|
|
363
|
+
if (typeof optionsOrCb === "function") {
|
|
364
|
+
this.send(command, optionsOrCb);
|
|
365
|
+
}
|
|
366
|
+
else if (typeof cb === "function") {
|
|
367
|
+
if (typeof optionsOrCb !== "object")
|
|
368
|
+
throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
|
|
369
|
+
this.send(command, optionsOrCb || {}, cb);
|
|
370
|
+
}
|
|
371
|
+
else {
|
|
372
|
+
return this.send(command, optionsOrCb);
|
|
373
|
+
}
|
|
374
|
+
}
|
|
314
375
|
putResourcePolicy(args, optionsOrCb, cb) {
|
|
315
376
|
const command = new PutResourcePolicyCommand(args);
|
|
316
377
|
if (typeof optionsOrCb === "function") {
|
|
@@ -465,4 +526,18 @@ export class NetworkFirewall extends NetworkFirewallClient {
|
|
|
465
526
|
return this.send(command, optionsOrCb);
|
|
466
527
|
}
|
|
467
528
|
}
|
|
529
|
+
updateTLSInspectionConfiguration(args, optionsOrCb, cb) {
|
|
530
|
+
const command = new UpdateTLSInspectionConfigurationCommand(args);
|
|
531
|
+
if (typeof optionsOrCb === "function") {
|
|
532
|
+
this.send(command, optionsOrCb);
|
|
533
|
+
}
|
|
534
|
+
else if (typeof cb === "function") {
|
|
535
|
+
if (typeof optionsOrCb !== "object")
|
|
536
|
+
throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
|
|
537
|
+
this.send(command, optionsOrCb || {}, cb);
|
|
538
|
+
}
|
|
539
|
+
else {
|
|
540
|
+
return this.send(command, optionsOrCb);
|
|
541
|
+
}
|
|
542
|
+
}
|
|
468
543
|
}
|
|
@@ -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 { deserializeAws_json1_0CreateTLSInspectionConfigurationCommand, serializeAws_json1_0CreateTLSInspectionConfigurationCommand, } from "../protocols/Aws_json1_0";
|
|
5
|
+
export class CreateTLSInspectionConfigurationCommand 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, CreateTLSInspectionConfigurationCommand.getEndpointParameterInstructions()));
|
|
21
|
+
const stack = clientStack.concat(this.middlewareStack);
|
|
22
|
+
const { logger } = configuration;
|
|
23
|
+
const clientName = "NetworkFirewallClient";
|
|
24
|
+
const commandName = "CreateTLSInspectionConfigurationCommand";
|
|
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 serializeAws_json1_0CreateTLSInspectionConfigurationCommand(input, context);
|
|
37
|
+
}
|
|
38
|
+
deserialize(output, context) {
|
|
39
|
+
return deserializeAws_json1_0CreateTLSInspectionConfigurationCommand(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 { deserializeAws_json1_0DeleteTLSInspectionConfigurationCommand, serializeAws_json1_0DeleteTLSInspectionConfigurationCommand, } from "../protocols/Aws_json1_0";
|
|
5
|
+
export class DeleteTLSInspectionConfigurationCommand 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, DeleteTLSInspectionConfigurationCommand.getEndpointParameterInstructions()));
|
|
21
|
+
const stack = clientStack.concat(this.middlewareStack);
|
|
22
|
+
const { logger } = configuration;
|
|
23
|
+
const clientName = "NetworkFirewallClient";
|
|
24
|
+
const commandName = "DeleteTLSInspectionConfigurationCommand";
|
|
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 serializeAws_json1_0DeleteTLSInspectionConfigurationCommand(input, context);
|
|
37
|
+
}
|
|
38
|
+
deserialize(output, context) {
|
|
39
|
+
return deserializeAws_json1_0DeleteTLSInspectionConfigurationCommand(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 { deserializeAws_json1_0DescribeTLSInspectionConfigurationCommand, serializeAws_json1_0DescribeTLSInspectionConfigurationCommand, } from "../protocols/Aws_json1_0";
|
|
5
|
+
export class DescribeTLSInspectionConfigurationCommand 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, DescribeTLSInspectionConfigurationCommand.getEndpointParameterInstructions()));
|
|
21
|
+
const stack = clientStack.concat(this.middlewareStack);
|
|
22
|
+
const { logger } = configuration;
|
|
23
|
+
const clientName = "NetworkFirewallClient";
|
|
24
|
+
const commandName = "DescribeTLSInspectionConfigurationCommand";
|
|
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 serializeAws_json1_0DescribeTLSInspectionConfigurationCommand(input, context);
|
|
37
|
+
}
|
|
38
|
+
deserialize(output, context) {
|
|
39
|
+
return deserializeAws_json1_0DescribeTLSInspectionConfigurationCommand(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 { deserializeAws_json1_0ListTLSInspectionConfigurationsCommand, serializeAws_json1_0ListTLSInspectionConfigurationsCommand, } from "../protocols/Aws_json1_0";
|
|
5
|
+
export class ListTLSInspectionConfigurationsCommand 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, ListTLSInspectionConfigurationsCommand.getEndpointParameterInstructions()));
|
|
21
|
+
const stack = clientStack.concat(this.middlewareStack);
|
|
22
|
+
const { logger } = configuration;
|
|
23
|
+
const clientName = "NetworkFirewallClient";
|
|
24
|
+
const commandName = "ListTLSInspectionConfigurationsCommand";
|
|
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 serializeAws_json1_0ListTLSInspectionConfigurationsCommand(input, context);
|
|
37
|
+
}
|
|
38
|
+
deserialize(output, context) {
|
|
39
|
+
return deserializeAws_json1_0ListTLSInspectionConfigurationsCommand(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 { deserializeAws_json1_0UpdateTLSInspectionConfigurationCommand, serializeAws_json1_0UpdateTLSInspectionConfigurationCommand, } from "../protocols/Aws_json1_0";
|
|
5
|
+
export class UpdateTLSInspectionConfigurationCommand 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, UpdateTLSInspectionConfigurationCommand.getEndpointParameterInstructions()));
|
|
21
|
+
const stack = clientStack.concat(this.middlewareStack);
|
|
22
|
+
const { logger } = configuration;
|
|
23
|
+
const clientName = "NetworkFirewallClient";
|
|
24
|
+
const commandName = "UpdateTLSInspectionConfigurationCommand";
|
|
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 serializeAws_json1_0UpdateTLSInspectionConfigurationCommand(input, context);
|
|
37
|
+
}
|
|
38
|
+
deserialize(output, context) {
|
|
39
|
+
return deserializeAws_json1_0UpdateTLSInspectionConfigurationCommand(output, context);
|
|
40
|
+
}
|
|
41
|
+
}
|
|
@@ -3,20 +3,24 @@ export * from "./AssociateSubnetsCommand";
|
|
|
3
3
|
export * from "./CreateFirewallCommand";
|
|
4
4
|
export * from "./CreateFirewallPolicyCommand";
|
|
5
5
|
export * from "./CreateRuleGroupCommand";
|
|
6
|
+
export * from "./CreateTLSInspectionConfigurationCommand";
|
|
6
7
|
export * from "./DeleteFirewallCommand";
|
|
7
8
|
export * from "./DeleteFirewallPolicyCommand";
|
|
8
9
|
export * from "./DeleteResourcePolicyCommand";
|
|
9
10
|
export * from "./DeleteRuleGroupCommand";
|
|
11
|
+
export * from "./DeleteTLSInspectionConfigurationCommand";
|
|
10
12
|
export * from "./DescribeFirewallCommand";
|
|
11
13
|
export * from "./DescribeFirewallPolicyCommand";
|
|
12
14
|
export * from "./DescribeLoggingConfigurationCommand";
|
|
13
15
|
export * from "./DescribeResourcePolicyCommand";
|
|
14
16
|
export * from "./DescribeRuleGroupCommand";
|
|
15
17
|
export * from "./DescribeRuleGroupMetadataCommand";
|
|
18
|
+
export * from "./DescribeTLSInspectionConfigurationCommand";
|
|
16
19
|
export * from "./DisassociateSubnetsCommand";
|
|
17
20
|
export * from "./ListFirewallPoliciesCommand";
|
|
18
21
|
export * from "./ListFirewallsCommand";
|
|
19
22
|
export * from "./ListRuleGroupsCommand";
|
|
23
|
+
export * from "./ListTLSInspectionConfigurationsCommand";
|
|
20
24
|
export * from "./ListTagsForResourceCommand";
|
|
21
25
|
export * from "./PutResourcePolicyCommand";
|
|
22
26
|
export * from "./TagResourceCommand";
|
|
@@ -29,3 +33,4 @@ export * from "./UpdateFirewallPolicyCommand";
|
|
|
29
33
|
export * from "./UpdateLoggingConfigurationCommand";
|
|
30
34
|
export * from "./UpdateRuleGroupCommand";
|
|
31
35
|
export * from "./UpdateSubnetChangeProtectionCommand";
|
|
36
|
+
export * from "./UpdateTLSInspectionConfigurationCommand";
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
const q = "
|
|
2
|
-
const a =
|
|
3
|
-
const _data = { version: "1.0", parameters: { Region:
|
|
1
|
+
const q = "required", r = "fn", s = "argv", t = "ref";
|
|
2
|
+
const a = "isSet", b = "tree", c = "error", d = "endpoint", e = "PartitionResult", f = { [q]: false, "type": "String" }, g = { [q]: true, "default": false, "type": "Boolean" }, h = { [t]: "Endpoint" }, i = { [r]: "booleanEquals", [s]: [{ [t]: "UseFIPS" }, true] }, j = { [r]: "booleanEquals", [s]: [{ [t]: "UseDualStack" }, true] }, k = {}, l = { [r]: "booleanEquals", [s]: [true, { [r]: "getAttr", [s]: [{ [t]: e }, "supportsFIPS"] }] }, m = { [r]: "booleanEquals", [s]: [true, { [r]: "getAttr", [s]: [{ [t]: e }, "supportsDualStack"] }] }, n = [i], o = [j], p = [{ [t]: "Region" }];
|
|
3
|
+
const _data = { version: "1.0", parameters: { Region: f, UseDualStack: g, UseFIPS: g, Endpoint: f }, rules: [{ conditions: [{ [r]: a, [s]: [h] }], type: b, rules: [{ conditions: n, error: "Invalid Configuration: FIPS and custom endpoint are not supported", type: c }, { type: b, rules: [{ conditions: o, error: "Invalid Configuration: Dualstack and custom endpoint are not supported", type: c }, { endpoint: { url: h, properties: k, headers: k }, type: d }] }] }, { type: b, rules: [{ conditions: [{ [r]: a, [s]: p }], type: b, rules: [{ conditions: [{ [r]: "aws.partition", [s]: p, assign: e }], type: b, rules: [{ conditions: [i, j], type: b, rules: [{ conditions: [l, m], type: b, rules: [{ type: b, rules: [{ endpoint: { url: "https://network-firewall-fips.{Region}.{PartitionResult#dualStackDnsSuffix}", properties: k, headers: k }, type: d }] }] }, { error: "FIPS and DualStack are enabled, but this partition does not support one or both", type: c }] }, { conditions: n, type: b, rules: [{ conditions: [l], type: b, rules: [{ type: b, rules: [{ endpoint: { url: "https://network-firewall-fips.{Region}.{PartitionResult#dnsSuffix}", properties: k, headers: k }, type: d }] }] }, { error: "FIPS is enabled but this partition does not support FIPS", type: c }] }, { conditions: o, type: b, rules: [{ conditions: [m], type: b, rules: [{ type: b, rules: [{ endpoint: { url: "https://network-firewall.{Region}.{PartitionResult#dualStackDnsSuffix}", properties: k, headers: k }, type: d }] }] }, { error: "DualStack is enabled but this partition does not support DualStack", type: c }] }, { type: b, rules: [{ endpoint: { url: "https://network-firewall.{Region}.{PartitionResult#dnsSuffix}", properties: k, headers: k }, type: d }] }] }] }, { error: "Invalid Configuration: Missing Region", type: c }] }] };
|
|
4
4
|
export const ruleSet = _data;
|