@aws-sdk/client-network-firewall 3.35.0 → 3.36.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/CHANGELOG.md +13 -0
- package/dist-cjs/NetworkFirewall.js +0 -1
- package/dist-cjs/NetworkFirewallClient.js +0 -1
- package/dist-cjs/commands/AssociateFirewallPolicyCommand.js +0 -1
- package/dist-cjs/commands/AssociateSubnetsCommand.js +0 -1
- package/dist-cjs/commands/CreateFirewallCommand.js +0 -1
- package/dist-cjs/commands/CreateFirewallPolicyCommand.js +0 -1
- package/dist-cjs/commands/CreateRuleGroupCommand.js +0 -1
- package/dist-cjs/commands/DeleteFirewallCommand.js +0 -1
- package/dist-cjs/commands/DeleteFirewallPolicyCommand.js +0 -1
- package/dist-cjs/commands/DeleteResourcePolicyCommand.js +0 -1
- package/dist-cjs/commands/DeleteRuleGroupCommand.js +0 -1
- package/dist-cjs/commands/DescribeFirewallCommand.js +0 -1
- package/dist-cjs/commands/DescribeFirewallPolicyCommand.js +0 -1
- package/dist-cjs/commands/DescribeLoggingConfigurationCommand.js +0 -1
- package/dist-cjs/commands/DescribeResourcePolicyCommand.js +0 -1
- package/dist-cjs/commands/DescribeRuleGroupCommand.js +0 -1
- package/dist-cjs/commands/DisassociateSubnetsCommand.js +0 -1
- package/dist-cjs/commands/ListFirewallPoliciesCommand.js +0 -1
- package/dist-cjs/commands/ListFirewallsCommand.js +0 -1
- package/dist-cjs/commands/ListRuleGroupsCommand.js +0 -1
- package/dist-cjs/commands/ListTagsForResourceCommand.js +0 -1
- package/dist-cjs/commands/PutResourcePolicyCommand.js +0 -1
- package/dist-cjs/commands/TagResourceCommand.js +0 -1
- package/dist-cjs/commands/UntagResourceCommand.js +0 -1
- package/dist-cjs/commands/UpdateFirewallDeleteProtectionCommand.js +0 -1
- package/dist-cjs/commands/UpdateFirewallDescriptionCommand.js +0 -1
- package/dist-cjs/commands/UpdateFirewallPolicyChangeProtectionCommand.js +0 -1
- package/dist-cjs/commands/UpdateFirewallPolicyCommand.js +0 -1
- package/dist-cjs/commands/UpdateLoggingConfigurationCommand.js +0 -1
- package/dist-cjs/commands/UpdateRuleGroupCommand.js +0 -1
- package/dist-cjs/commands/UpdateSubnetChangeProtectionCommand.js +0 -1
- package/dist-cjs/endpoints.js +0 -1
- package/dist-cjs/index.js +0 -1
- package/dist-cjs/models/index.js +0 -1
- package/dist-cjs/models/models_0.js +0 -1
- package/dist-cjs/pagination/Interfaces.js +0 -1
- package/dist-cjs/pagination/ListFirewallPoliciesPaginator.js +0 -1
- package/dist-cjs/pagination/ListFirewallsPaginator.js +0 -1
- package/dist-cjs/pagination/ListRuleGroupsPaginator.js +0 -1
- package/dist-cjs/pagination/ListTagsForResourcePaginator.js +0 -1
- package/dist-cjs/protocols/Aws_json1_0.js +0 -1
- package/dist-cjs/runtimeConfig.browser.js +2 -3
- package/dist-cjs/runtimeConfig.js +3 -4
- package/dist-cjs/runtimeConfig.native.js +0 -1
- package/dist-cjs/runtimeConfig.shared.js +0 -1
- package/dist-es/NetworkFirewall.js +0 -1
- package/dist-es/NetworkFirewallClient.js +0 -1
- package/dist-es/commands/AssociateFirewallPolicyCommand.js +0 -1
- package/dist-es/commands/AssociateSubnetsCommand.js +0 -1
- package/dist-es/commands/CreateFirewallCommand.js +0 -1
- package/dist-es/commands/CreateFirewallPolicyCommand.js +0 -1
- package/dist-es/commands/CreateRuleGroupCommand.js +0 -1
- package/dist-es/commands/DeleteFirewallCommand.js +0 -1
- package/dist-es/commands/DeleteFirewallPolicyCommand.js +0 -1
- package/dist-es/commands/DeleteResourcePolicyCommand.js +0 -1
- package/dist-es/commands/DeleteRuleGroupCommand.js +0 -1
- package/dist-es/commands/DescribeFirewallCommand.js +0 -1
- package/dist-es/commands/DescribeFirewallPolicyCommand.js +0 -1
- package/dist-es/commands/DescribeLoggingConfigurationCommand.js +0 -1
- package/dist-es/commands/DescribeResourcePolicyCommand.js +0 -1
- package/dist-es/commands/DescribeRuleGroupCommand.js +0 -1
- package/dist-es/commands/DisassociateSubnetsCommand.js +0 -1
- package/dist-es/commands/ListFirewallPoliciesCommand.js +0 -1
- package/dist-es/commands/ListFirewallsCommand.js +0 -1
- package/dist-es/commands/ListRuleGroupsCommand.js +0 -1
- package/dist-es/commands/ListTagsForResourceCommand.js +0 -1
- package/dist-es/commands/PutResourcePolicyCommand.js +0 -1
- package/dist-es/commands/TagResourceCommand.js +0 -1
- package/dist-es/commands/UntagResourceCommand.js +0 -1
- package/dist-es/commands/UpdateFirewallDeleteProtectionCommand.js +0 -1
- package/dist-es/commands/UpdateFirewallDescriptionCommand.js +0 -1
- package/dist-es/commands/UpdateFirewallPolicyChangeProtectionCommand.js +0 -1
- package/dist-es/commands/UpdateFirewallPolicyCommand.js +0 -1
- package/dist-es/commands/UpdateLoggingConfigurationCommand.js +0 -1
- package/dist-es/commands/UpdateRuleGroupCommand.js +0 -1
- package/dist-es/commands/UpdateSubnetChangeProtectionCommand.js +0 -1
- package/dist-es/endpoints.js +0 -1
- package/dist-es/index.js +0 -1
- package/dist-es/models/index.js +0 -1
- package/dist-es/models/models_0.js +0 -1
- package/dist-es/pagination/Interfaces.js +0 -1
- package/dist-es/pagination/ListFirewallPoliciesPaginator.js +0 -1
- package/dist-es/pagination/ListFirewallsPaginator.js +0 -1
- package/dist-es/pagination/ListRuleGroupsPaginator.js +0 -1
- package/dist-es/pagination/ListTagsForResourcePaginator.js +0 -1
- package/dist-es/protocols/Aws_json1_0.js +0 -1
- package/dist-es/runtimeConfig.browser.js +1 -2
- package/dist-es/runtimeConfig.js +2 -3
- package/dist-es/runtimeConfig.native.js +0 -1
- package/dist-es/runtimeConfig.shared.js +0 -1
- package/package.json +33 -30
- package/dist-cjs/NetworkFirewall.js.map +0 -1
- package/dist-cjs/NetworkFirewallClient.js.map +0 -1
- package/dist-cjs/commands/AssociateFirewallPolicyCommand.js.map +0 -1
- package/dist-cjs/commands/AssociateSubnetsCommand.js.map +0 -1
- package/dist-cjs/commands/CreateFirewallCommand.js.map +0 -1
- package/dist-cjs/commands/CreateFirewallPolicyCommand.js.map +0 -1
- package/dist-cjs/commands/CreateRuleGroupCommand.js.map +0 -1
- package/dist-cjs/commands/DeleteFirewallCommand.js.map +0 -1
- package/dist-cjs/commands/DeleteFirewallPolicyCommand.js.map +0 -1
- package/dist-cjs/commands/DeleteResourcePolicyCommand.js.map +0 -1
- package/dist-cjs/commands/DeleteRuleGroupCommand.js.map +0 -1
- package/dist-cjs/commands/DescribeFirewallCommand.js.map +0 -1
- package/dist-cjs/commands/DescribeFirewallPolicyCommand.js.map +0 -1
- package/dist-cjs/commands/DescribeLoggingConfigurationCommand.js.map +0 -1
- package/dist-cjs/commands/DescribeResourcePolicyCommand.js.map +0 -1
- package/dist-cjs/commands/DescribeRuleGroupCommand.js.map +0 -1
- package/dist-cjs/commands/DisassociateSubnetsCommand.js.map +0 -1
- package/dist-cjs/commands/ListFirewallPoliciesCommand.js.map +0 -1
- package/dist-cjs/commands/ListFirewallsCommand.js.map +0 -1
- package/dist-cjs/commands/ListRuleGroupsCommand.js.map +0 -1
- package/dist-cjs/commands/ListTagsForResourceCommand.js.map +0 -1
- package/dist-cjs/commands/PutResourcePolicyCommand.js.map +0 -1
- package/dist-cjs/commands/TagResourceCommand.js.map +0 -1
- package/dist-cjs/commands/UntagResourceCommand.js.map +0 -1
- package/dist-cjs/commands/UpdateFirewallDeleteProtectionCommand.js.map +0 -1
- package/dist-cjs/commands/UpdateFirewallDescriptionCommand.js.map +0 -1
- package/dist-cjs/commands/UpdateFirewallPolicyChangeProtectionCommand.js.map +0 -1
- package/dist-cjs/commands/UpdateFirewallPolicyCommand.js.map +0 -1
- package/dist-cjs/commands/UpdateLoggingConfigurationCommand.js.map +0 -1
- package/dist-cjs/commands/UpdateRuleGroupCommand.js.map +0 -1
- package/dist-cjs/commands/UpdateSubnetChangeProtectionCommand.js.map +0 -1
- package/dist-cjs/endpoints.js.map +0 -1
- package/dist-cjs/index.js.map +0 -1
- package/dist-cjs/models/index.js.map +0 -1
- package/dist-cjs/models/models_0.js.map +0 -1
- package/dist-cjs/pagination/Interfaces.js.map +0 -1
- package/dist-cjs/pagination/ListFirewallPoliciesPaginator.js.map +0 -1
- package/dist-cjs/pagination/ListFirewallsPaginator.js.map +0 -1
- package/dist-cjs/pagination/ListRuleGroupsPaginator.js.map +0 -1
- package/dist-cjs/pagination/ListTagsForResourcePaginator.js.map +0 -1
- package/dist-cjs/protocols/Aws_json1_0.js.map +0 -1
- package/dist-cjs/runtimeConfig.browser.js.map +0 -1
- package/dist-cjs/runtimeConfig.js.map +0 -1
- package/dist-cjs/runtimeConfig.native.js.map +0 -1
- package/dist-cjs/runtimeConfig.shared.js.map +0 -1
- package/dist-es/NetworkFirewall.js.map +0 -1
- package/dist-es/NetworkFirewallClient.js.map +0 -1
- package/dist-es/commands/AssociateFirewallPolicyCommand.js.map +0 -1
- package/dist-es/commands/AssociateSubnetsCommand.js.map +0 -1
- package/dist-es/commands/CreateFirewallCommand.js.map +0 -1
- package/dist-es/commands/CreateFirewallPolicyCommand.js.map +0 -1
- package/dist-es/commands/CreateRuleGroupCommand.js.map +0 -1
- package/dist-es/commands/DeleteFirewallCommand.js.map +0 -1
- package/dist-es/commands/DeleteFirewallPolicyCommand.js.map +0 -1
- package/dist-es/commands/DeleteResourcePolicyCommand.js.map +0 -1
- package/dist-es/commands/DeleteRuleGroupCommand.js.map +0 -1
- package/dist-es/commands/DescribeFirewallCommand.js.map +0 -1
- package/dist-es/commands/DescribeFirewallPolicyCommand.js.map +0 -1
- package/dist-es/commands/DescribeLoggingConfigurationCommand.js.map +0 -1
- package/dist-es/commands/DescribeResourcePolicyCommand.js.map +0 -1
- package/dist-es/commands/DescribeRuleGroupCommand.js.map +0 -1
- package/dist-es/commands/DisassociateSubnetsCommand.js.map +0 -1
- package/dist-es/commands/ListFirewallPoliciesCommand.js.map +0 -1
- package/dist-es/commands/ListFirewallsCommand.js.map +0 -1
- package/dist-es/commands/ListRuleGroupsCommand.js.map +0 -1
- package/dist-es/commands/ListTagsForResourceCommand.js.map +0 -1
- package/dist-es/commands/PutResourcePolicyCommand.js.map +0 -1
- package/dist-es/commands/TagResourceCommand.js.map +0 -1
- package/dist-es/commands/UntagResourceCommand.js.map +0 -1
- package/dist-es/commands/UpdateFirewallDeleteProtectionCommand.js.map +0 -1
- package/dist-es/commands/UpdateFirewallDescriptionCommand.js.map +0 -1
- package/dist-es/commands/UpdateFirewallPolicyChangeProtectionCommand.js.map +0 -1
- package/dist-es/commands/UpdateFirewallPolicyCommand.js.map +0 -1
- package/dist-es/commands/UpdateLoggingConfigurationCommand.js.map +0 -1
- package/dist-es/commands/UpdateRuleGroupCommand.js.map +0 -1
- package/dist-es/commands/UpdateSubnetChangeProtectionCommand.js.map +0 -1
- package/dist-es/endpoints.js.map +0 -1
- package/dist-es/index.js.map +0 -1
- package/dist-es/models/index.js.map +0 -1
- package/dist-es/models/models_0.js.map +0 -1
- package/dist-es/pagination/Interfaces.js.map +0 -1
- package/dist-es/pagination/ListFirewallPoliciesPaginator.js.map +0 -1
- package/dist-es/pagination/ListFirewallsPaginator.js.map +0 -1
- package/dist-es/pagination/ListRuleGroupsPaginator.js.map +0 -1
- package/dist-es/pagination/ListTagsForResourcePaginator.js.map +0 -1
- package/dist-es/protocols/Aws_json1_0.js.map +0 -1
- package/dist-es/runtimeConfig.browser.js.map +0 -1
- package/dist-es/runtimeConfig.js.map +0 -1
- package/dist-es/runtimeConfig.native.js.map +0 -1
- package/dist-es/runtimeConfig.shared.js.map +0 -1
- package/jest.config.js +0 -4
- package/src/NetworkFirewall.ts +0 -1254
- package/src/NetworkFirewallClient.ts +0 -448
- package/src/commands/AssociateFirewallPolicyCommand.ts +0 -99
- package/src/commands/AssociateSubnetsCommand.ts +0 -100
- package/src/commands/CreateFirewallCommand.ts +0 -101
- package/src/commands/CreateFirewallPolicyCommand.ts +0 -98
- package/src/commands/CreateRuleGroupCommand.ts +0 -98
- package/src/commands/DeleteFirewallCommand.ts +0 -105
- package/src/commands/DeleteFirewallPolicyCommand.ts +0 -95
- package/src/commands/DeleteResourcePolicyCommand.ts +0 -95
- package/src/commands/DeleteRuleGroupCommand.ts +0 -95
- package/src/commands/DescribeFirewallCommand.ts +0 -95
- package/src/commands/DescribeFirewallPolicyCommand.ts +0 -95
- package/src/commands/DescribeLoggingConfigurationCommand.ts +0 -100
- package/src/commands/DescribeResourcePolicyCommand.ts +0 -95
- package/src/commands/DescribeRuleGroupCommand.ts +0 -95
- package/src/commands/DisassociateSubnetsCommand.ts +0 -98
- package/src/commands/ListFirewallPoliciesCommand.ts +0 -97
- package/src/commands/ListFirewallsCommand.ts +0 -98
- package/src/commands/ListRuleGroupsCommand.ts +0 -97
- package/src/commands/ListTagsForResourceCommand.ts +0 -101
- package/src/commands/PutResourcePolicyCommand.ts +0 -109
- package/src/commands/TagResourceCommand.ts +0 -100
- package/src/commands/UntagResourceCommand.ts +0 -101
- package/src/commands/UpdateFirewallDeleteProtectionCommand.ts +0 -106
- package/src/commands/UpdateFirewallDescriptionCommand.ts +0 -99
- package/src/commands/UpdateFirewallPolicyChangeProtectionCommand.ts +0 -106
- package/src/commands/UpdateFirewallPolicyCommand.ts +0 -95
- package/src/commands/UpdateLoggingConfigurationCommand.ts +0 -123
- package/src/commands/UpdateRuleGroupCommand.ts +0 -100
- package/src/commands/UpdateSubnetChangeProtectionCommand.ts +0 -100
- package/src/endpoints.ts +0 -91
- package/src/index.ts +0 -37
- package/src/models/index.ts +0 -1
- package/src/models/models_0.ts +0 -3567
- package/src/pagination/Interfaces.ts +0 -8
- package/src/pagination/ListFirewallPoliciesPaginator.ts +0 -59
- package/src/pagination/ListFirewallsPaginator.ts +0 -59
- package/src/pagination/ListRuleGroupsPaginator.ts +0 -59
- package/src/pagination/ListTagsForResourcePaginator.ts +0 -59
- package/src/protocols/Aws_json1_0.ts +0 -5479
- package/src/runtimeConfig.browser.ts +0 -41
- package/src/runtimeConfig.native.ts +0 -17
- package/src/runtimeConfig.shared.ts +0 -17
- package/src/runtimeConfig.ts +0 -46
- package/tsconfig.es.json +0 -10
- package/tsconfig.json +0 -33
- package/tsconfig.types.json +0 -9
|
@@ -1,101 +0,0 @@
|
|
|
1
|
-
import { getSerdePlugin } from "@aws-sdk/middleware-serde";
|
|
2
|
-
import { HttpRequest as __HttpRequest, HttpResponse as __HttpResponse } from "@aws-sdk/protocol-http";
|
|
3
|
-
import { Command as $Command } from "@aws-sdk/smithy-client";
|
|
4
|
-
import {
|
|
5
|
-
FinalizeHandlerArguments,
|
|
6
|
-
Handler,
|
|
7
|
-
HandlerExecutionContext,
|
|
8
|
-
HttpHandlerOptions as __HttpHandlerOptions,
|
|
9
|
-
MetadataBearer as __MetadataBearer,
|
|
10
|
-
MiddlewareStack,
|
|
11
|
-
SerdeContext as __SerdeContext,
|
|
12
|
-
} from "@aws-sdk/types";
|
|
13
|
-
|
|
14
|
-
import { UntagResourceRequest, UntagResourceResponse } from "../models/models_0";
|
|
15
|
-
import { NetworkFirewallClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes } from "../NetworkFirewallClient";
|
|
16
|
-
import {
|
|
17
|
-
deserializeAws_json1_0UntagResourceCommand,
|
|
18
|
-
serializeAws_json1_0UntagResourceCommand,
|
|
19
|
-
} from "../protocols/Aws_json1_0";
|
|
20
|
-
|
|
21
|
-
export interface UntagResourceCommandInput extends UntagResourceRequest {}
|
|
22
|
-
export interface UntagResourceCommandOutput extends UntagResourceResponse, __MetadataBearer {}
|
|
23
|
-
|
|
24
|
-
/**
|
|
25
|
-
* <p>Removes the tags with the specified keys from the specified resource. Tags are key:value
|
|
26
|
-
* pairs that you can use to categorize and manage your resources, for purposes like billing.
|
|
27
|
-
* For example, you might set the tag key to "customer" and the value to the customer name or
|
|
28
|
-
* ID. You can specify one or more tags to add to each AWS resource, up to 50 tags for a
|
|
29
|
-
* resource.</p>
|
|
30
|
-
* <p>You can manage tags for the AWS resources that you manage through AWS Network Firewall:
|
|
31
|
-
* firewalls, firewall policies, and rule groups. </p>
|
|
32
|
-
* @example
|
|
33
|
-
* Use a bare-bones client and the command you need to make an API call.
|
|
34
|
-
* ```javascript
|
|
35
|
-
* import { NetworkFirewallClient, UntagResourceCommand } from "@aws-sdk/client-network-firewall"; // ES Modules import
|
|
36
|
-
* // const { NetworkFirewallClient, UntagResourceCommand } = require("@aws-sdk/client-network-firewall"); // CommonJS import
|
|
37
|
-
* const client = new NetworkFirewallClient(config);
|
|
38
|
-
* const command = new UntagResourceCommand(input);
|
|
39
|
-
* const response = await client.send(command);
|
|
40
|
-
* ```
|
|
41
|
-
*
|
|
42
|
-
* @see {@link UntagResourceCommandInput} for command's `input` shape.
|
|
43
|
-
* @see {@link UntagResourceCommandOutput} for command's `response` shape.
|
|
44
|
-
* @see {@link NetworkFirewallClientResolvedConfig | config} for command's `input` shape.
|
|
45
|
-
*
|
|
46
|
-
*/
|
|
47
|
-
export class UntagResourceCommand extends $Command<
|
|
48
|
-
UntagResourceCommandInput,
|
|
49
|
-
UntagResourceCommandOutput,
|
|
50
|
-
NetworkFirewallClientResolvedConfig
|
|
51
|
-
> {
|
|
52
|
-
// Start section: command_properties
|
|
53
|
-
// End section: command_properties
|
|
54
|
-
|
|
55
|
-
constructor(readonly input: UntagResourceCommandInput) {
|
|
56
|
-
// Start section: command_constructor
|
|
57
|
-
super();
|
|
58
|
-
// End section: command_constructor
|
|
59
|
-
}
|
|
60
|
-
|
|
61
|
-
/**
|
|
62
|
-
* @internal
|
|
63
|
-
*/
|
|
64
|
-
resolveMiddleware(
|
|
65
|
-
clientStack: MiddlewareStack<ServiceInputTypes, ServiceOutputTypes>,
|
|
66
|
-
configuration: NetworkFirewallClientResolvedConfig,
|
|
67
|
-
options?: __HttpHandlerOptions
|
|
68
|
-
): Handler<UntagResourceCommandInput, UntagResourceCommandOutput> {
|
|
69
|
-
this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize));
|
|
70
|
-
|
|
71
|
-
const stack = clientStack.concat(this.middlewareStack);
|
|
72
|
-
|
|
73
|
-
const { logger } = configuration;
|
|
74
|
-
const clientName = "NetworkFirewallClient";
|
|
75
|
-
const commandName = "UntagResourceCommand";
|
|
76
|
-
const handlerExecutionContext: HandlerExecutionContext = {
|
|
77
|
-
logger,
|
|
78
|
-
clientName,
|
|
79
|
-
commandName,
|
|
80
|
-
inputFilterSensitiveLog: UntagResourceRequest.filterSensitiveLog,
|
|
81
|
-
outputFilterSensitiveLog: UntagResourceResponse.filterSensitiveLog,
|
|
82
|
-
};
|
|
83
|
-
const { requestHandler } = configuration;
|
|
84
|
-
return stack.resolve(
|
|
85
|
-
(request: FinalizeHandlerArguments<any>) =>
|
|
86
|
-
requestHandler.handle(request.request as __HttpRequest, options || {}),
|
|
87
|
-
handlerExecutionContext
|
|
88
|
-
);
|
|
89
|
-
}
|
|
90
|
-
|
|
91
|
-
private serialize(input: UntagResourceCommandInput, context: __SerdeContext): Promise<__HttpRequest> {
|
|
92
|
-
return serializeAws_json1_0UntagResourceCommand(input, context);
|
|
93
|
-
}
|
|
94
|
-
|
|
95
|
-
private deserialize(output: __HttpResponse, context: __SerdeContext): Promise<UntagResourceCommandOutput> {
|
|
96
|
-
return deserializeAws_json1_0UntagResourceCommand(output, context);
|
|
97
|
-
}
|
|
98
|
-
|
|
99
|
-
// Start section: command_body_extra
|
|
100
|
-
// End section: command_body_extra
|
|
101
|
-
}
|
|
@@ -1,106 +0,0 @@
|
|
|
1
|
-
import { getSerdePlugin } from "@aws-sdk/middleware-serde";
|
|
2
|
-
import { HttpRequest as __HttpRequest, HttpResponse as __HttpResponse } from "@aws-sdk/protocol-http";
|
|
3
|
-
import { Command as $Command } from "@aws-sdk/smithy-client";
|
|
4
|
-
import {
|
|
5
|
-
FinalizeHandlerArguments,
|
|
6
|
-
Handler,
|
|
7
|
-
HandlerExecutionContext,
|
|
8
|
-
HttpHandlerOptions as __HttpHandlerOptions,
|
|
9
|
-
MetadataBearer as __MetadataBearer,
|
|
10
|
-
MiddlewareStack,
|
|
11
|
-
SerdeContext as __SerdeContext,
|
|
12
|
-
} from "@aws-sdk/types";
|
|
13
|
-
|
|
14
|
-
import { UpdateFirewallDeleteProtectionRequest, UpdateFirewallDeleteProtectionResponse } from "../models/models_0";
|
|
15
|
-
import { NetworkFirewallClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes } from "../NetworkFirewallClient";
|
|
16
|
-
import {
|
|
17
|
-
deserializeAws_json1_0UpdateFirewallDeleteProtectionCommand,
|
|
18
|
-
serializeAws_json1_0UpdateFirewallDeleteProtectionCommand,
|
|
19
|
-
} from "../protocols/Aws_json1_0";
|
|
20
|
-
|
|
21
|
-
export interface UpdateFirewallDeleteProtectionCommandInput extends UpdateFirewallDeleteProtectionRequest {}
|
|
22
|
-
export interface UpdateFirewallDeleteProtectionCommandOutput
|
|
23
|
-
extends UpdateFirewallDeleteProtectionResponse,
|
|
24
|
-
__MetadataBearer {}
|
|
25
|
-
|
|
26
|
-
/**
|
|
27
|
-
* <p>Modifies the flag, <code>DeleteProtection</code>, which indicates whether it is possible
|
|
28
|
-
* to delete the firewall. If the flag is set to <code>TRUE</code>, the firewall is protected
|
|
29
|
-
* against deletion. This setting helps protect against accidentally deleting a firewall
|
|
30
|
-
* that's in use. </p>
|
|
31
|
-
* @example
|
|
32
|
-
* Use a bare-bones client and the command you need to make an API call.
|
|
33
|
-
* ```javascript
|
|
34
|
-
* import { NetworkFirewallClient, UpdateFirewallDeleteProtectionCommand } from "@aws-sdk/client-network-firewall"; // ES Modules import
|
|
35
|
-
* // const { NetworkFirewallClient, UpdateFirewallDeleteProtectionCommand } = require("@aws-sdk/client-network-firewall"); // CommonJS import
|
|
36
|
-
* const client = new NetworkFirewallClient(config);
|
|
37
|
-
* const command = new UpdateFirewallDeleteProtectionCommand(input);
|
|
38
|
-
* const response = await client.send(command);
|
|
39
|
-
* ```
|
|
40
|
-
*
|
|
41
|
-
* @see {@link UpdateFirewallDeleteProtectionCommandInput} for command's `input` shape.
|
|
42
|
-
* @see {@link UpdateFirewallDeleteProtectionCommandOutput} for command's `response` shape.
|
|
43
|
-
* @see {@link NetworkFirewallClientResolvedConfig | config} for command's `input` shape.
|
|
44
|
-
*
|
|
45
|
-
*/
|
|
46
|
-
export class UpdateFirewallDeleteProtectionCommand extends $Command<
|
|
47
|
-
UpdateFirewallDeleteProtectionCommandInput,
|
|
48
|
-
UpdateFirewallDeleteProtectionCommandOutput,
|
|
49
|
-
NetworkFirewallClientResolvedConfig
|
|
50
|
-
> {
|
|
51
|
-
// Start section: command_properties
|
|
52
|
-
// End section: command_properties
|
|
53
|
-
|
|
54
|
-
constructor(readonly input: UpdateFirewallDeleteProtectionCommandInput) {
|
|
55
|
-
// Start section: command_constructor
|
|
56
|
-
super();
|
|
57
|
-
// End section: command_constructor
|
|
58
|
-
}
|
|
59
|
-
|
|
60
|
-
/**
|
|
61
|
-
* @internal
|
|
62
|
-
*/
|
|
63
|
-
resolveMiddleware(
|
|
64
|
-
clientStack: MiddlewareStack<ServiceInputTypes, ServiceOutputTypes>,
|
|
65
|
-
configuration: NetworkFirewallClientResolvedConfig,
|
|
66
|
-
options?: __HttpHandlerOptions
|
|
67
|
-
): Handler<UpdateFirewallDeleteProtectionCommandInput, UpdateFirewallDeleteProtectionCommandOutput> {
|
|
68
|
-
this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize));
|
|
69
|
-
|
|
70
|
-
const stack = clientStack.concat(this.middlewareStack);
|
|
71
|
-
|
|
72
|
-
const { logger } = configuration;
|
|
73
|
-
const clientName = "NetworkFirewallClient";
|
|
74
|
-
const commandName = "UpdateFirewallDeleteProtectionCommand";
|
|
75
|
-
const handlerExecutionContext: HandlerExecutionContext = {
|
|
76
|
-
logger,
|
|
77
|
-
clientName,
|
|
78
|
-
commandName,
|
|
79
|
-
inputFilterSensitiveLog: UpdateFirewallDeleteProtectionRequest.filterSensitiveLog,
|
|
80
|
-
outputFilterSensitiveLog: UpdateFirewallDeleteProtectionResponse.filterSensitiveLog,
|
|
81
|
-
};
|
|
82
|
-
const { requestHandler } = configuration;
|
|
83
|
-
return stack.resolve(
|
|
84
|
-
(request: FinalizeHandlerArguments<any>) =>
|
|
85
|
-
requestHandler.handle(request.request as __HttpRequest, options || {}),
|
|
86
|
-
handlerExecutionContext
|
|
87
|
-
);
|
|
88
|
-
}
|
|
89
|
-
|
|
90
|
-
private serialize(
|
|
91
|
-
input: UpdateFirewallDeleteProtectionCommandInput,
|
|
92
|
-
context: __SerdeContext
|
|
93
|
-
): Promise<__HttpRequest> {
|
|
94
|
-
return serializeAws_json1_0UpdateFirewallDeleteProtectionCommand(input, context);
|
|
95
|
-
}
|
|
96
|
-
|
|
97
|
-
private deserialize(
|
|
98
|
-
output: __HttpResponse,
|
|
99
|
-
context: __SerdeContext
|
|
100
|
-
): Promise<UpdateFirewallDeleteProtectionCommandOutput> {
|
|
101
|
-
return deserializeAws_json1_0UpdateFirewallDeleteProtectionCommand(output, context);
|
|
102
|
-
}
|
|
103
|
-
|
|
104
|
-
// Start section: command_body_extra
|
|
105
|
-
// End section: command_body_extra
|
|
106
|
-
}
|
|
@@ -1,99 +0,0 @@
|
|
|
1
|
-
import { getSerdePlugin } from "@aws-sdk/middleware-serde";
|
|
2
|
-
import { HttpRequest as __HttpRequest, HttpResponse as __HttpResponse } from "@aws-sdk/protocol-http";
|
|
3
|
-
import { Command as $Command } from "@aws-sdk/smithy-client";
|
|
4
|
-
import {
|
|
5
|
-
FinalizeHandlerArguments,
|
|
6
|
-
Handler,
|
|
7
|
-
HandlerExecutionContext,
|
|
8
|
-
HttpHandlerOptions as __HttpHandlerOptions,
|
|
9
|
-
MetadataBearer as __MetadataBearer,
|
|
10
|
-
MiddlewareStack,
|
|
11
|
-
SerdeContext as __SerdeContext,
|
|
12
|
-
} from "@aws-sdk/types";
|
|
13
|
-
|
|
14
|
-
import { UpdateFirewallDescriptionRequest, UpdateFirewallDescriptionResponse } from "../models/models_0";
|
|
15
|
-
import { NetworkFirewallClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes } from "../NetworkFirewallClient";
|
|
16
|
-
import {
|
|
17
|
-
deserializeAws_json1_0UpdateFirewallDescriptionCommand,
|
|
18
|
-
serializeAws_json1_0UpdateFirewallDescriptionCommand,
|
|
19
|
-
} from "../protocols/Aws_json1_0";
|
|
20
|
-
|
|
21
|
-
export interface UpdateFirewallDescriptionCommandInput extends UpdateFirewallDescriptionRequest {}
|
|
22
|
-
export interface UpdateFirewallDescriptionCommandOutput extends UpdateFirewallDescriptionResponse, __MetadataBearer {}
|
|
23
|
-
|
|
24
|
-
/**
|
|
25
|
-
* <p>Modifies the description for the specified firewall. Use the description to help you
|
|
26
|
-
* identify the firewall when you're working with it. </p>
|
|
27
|
-
* @example
|
|
28
|
-
* Use a bare-bones client and the command you need to make an API call.
|
|
29
|
-
* ```javascript
|
|
30
|
-
* import { NetworkFirewallClient, UpdateFirewallDescriptionCommand } from "@aws-sdk/client-network-firewall"; // ES Modules import
|
|
31
|
-
* // const { NetworkFirewallClient, UpdateFirewallDescriptionCommand } = require("@aws-sdk/client-network-firewall"); // CommonJS import
|
|
32
|
-
* const client = new NetworkFirewallClient(config);
|
|
33
|
-
* const command = new UpdateFirewallDescriptionCommand(input);
|
|
34
|
-
* const response = await client.send(command);
|
|
35
|
-
* ```
|
|
36
|
-
*
|
|
37
|
-
* @see {@link UpdateFirewallDescriptionCommandInput} for command's `input` shape.
|
|
38
|
-
* @see {@link UpdateFirewallDescriptionCommandOutput} for command's `response` shape.
|
|
39
|
-
* @see {@link NetworkFirewallClientResolvedConfig | config} for command's `input` shape.
|
|
40
|
-
*
|
|
41
|
-
*/
|
|
42
|
-
export class UpdateFirewallDescriptionCommand extends $Command<
|
|
43
|
-
UpdateFirewallDescriptionCommandInput,
|
|
44
|
-
UpdateFirewallDescriptionCommandOutput,
|
|
45
|
-
NetworkFirewallClientResolvedConfig
|
|
46
|
-
> {
|
|
47
|
-
// Start section: command_properties
|
|
48
|
-
// End section: command_properties
|
|
49
|
-
|
|
50
|
-
constructor(readonly input: UpdateFirewallDescriptionCommandInput) {
|
|
51
|
-
// Start section: command_constructor
|
|
52
|
-
super();
|
|
53
|
-
// End section: command_constructor
|
|
54
|
-
}
|
|
55
|
-
|
|
56
|
-
/**
|
|
57
|
-
* @internal
|
|
58
|
-
*/
|
|
59
|
-
resolveMiddleware(
|
|
60
|
-
clientStack: MiddlewareStack<ServiceInputTypes, ServiceOutputTypes>,
|
|
61
|
-
configuration: NetworkFirewallClientResolvedConfig,
|
|
62
|
-
options?: __HttpHandlerOptions
|
|
63
|
-
): Handler<UpdateFirewallDescriptionCommandInput, UpdateFirewallDescriptionCommandOutput> {
|
|
64
|
-
this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize));
|
|
65
|
-
|
|
66
|
-
const stack = clientStack.concat(this.middlewareStack);
|
|
67
|
-
|
|
68
|
-
const { logger } = configuration;
|
|
69
|
-
const clientName = "NetworkFirewallClient";
|
|
70
|
-
const commandName = "UpdateFirewallDescriptionCommand";
|
|
71
|
-
const handlerExecutionContext: HandlerExecutionContext = {
|
|
72
|
-
logger,
|
|
73
|
-
clientName,
|
|
74
|
-
commandName,
|
|
75
|
-
inputFilterSensitiveLog: UpdateFirewallDescriptionRequest.filterSensitiveLog,
|
|
76
|
-
outputFilterSensitiveLog: UpdateFirewallDescriptionResponse.filterSensitiveLog,
|
|
77
|
-
};
|
|
78
|
-
const { requestHandler } = configuration;
|
|
79
|
-
return stack.resolve(
|
|
80
|
-
(request: FinalizeHandlerArguments<any>) =>
|
|
81
|
-
requestHandler.handle(request.request as __HttpRequest, options || {}),
|
|
82
|
-
handlerExecutionContext
|
|
83
|
-
);
|
|
84
|
-
}
|
|
85
|
-
|
|
86
|
-
private serialize(input: UpdateFirewallDescriptionCommandInput, context: __SerdeContext): Promise<__HttpRequest> {
|
|
87
|
-
return serializeAws_json1_0UpdateFirewallDescriptionCommand(input, context);
|
|
88
|
-
}
|
|
89
|
-
|
|
90
|
-
private deserialize(
|
|
91
|
-
output: __HttpResponse,
|
|
92
|
-
context: __SerdeContext
|
|
93
|
-
): Promise<UpdateFirewallDescriptionCommandOutput> {
|
|
94
|
-
return deserializeAws_json1_0UpdateFirewallDescriptionCommand(output, context);
|
|
95
|
-
}
|
|
96
|
-
|
|
97
|
-
// Start section: command_body_extra
|
|
98
|
-
// End section: command_body_extra
|
|
99
|
-
}
|
|
@@ -1,106 +0,0 @@
|
|
|
1
|
-
import { getSerdePlugin } from "@aws-sdk/middleware-serde";
|
|
2
|
-
import { HttpRequest as __HttpRequest, HttpResponse as __HttpResponse } from "@aws-sdk/protocol-http";
|
|
3
|
-
import { Command as $Command } from "@aws-sdk/smithy-client";
|
|
4
|
-
import {
|
|
5
|
-
FinalizeHandlerArguments,
|
|
6
|
-
Handler,
|
|
7
|
-
HandlerExecutionContext,
|
|
8
|
-
HttpHandlerOptions as __HttpHandlerOptions,
|
|
9
|
-
MetadataBearer as __MetadataBearer,
|
|
10
|
-
MiddlewareStack,
|
|
11
|
-
SerdeContext as __SerdeContext,
|
|
12
|
-
} from "@aws-sdk/types";
|
|
13
|
-
|
|
14
|
-
import {
|
|
15
|
-
UpdateFirewallPolicyChangeProtectionRequest,
|
|
16
|
-
UpdateFirewallPolicyChangeProtectionResponse,
|
|
17
|
-
} from "../models/models_0";
|
|
18
|
-
import { NetworkFirewallClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes } from "../NetworkFirewallClient";
|
|
19
|
-
import {
|
|
20
|
-
deserializeAws_json1_0UpdateFirewallPolicyChangeProtectionCommand,
|
|
21
|
-
serializeAws_json1_0UpdateFirewallPolicyChangeProtectionCommand,
|
|
22
|
-
} from "../protocols/Aws_json1_0";
|
|
23
|
-
|
|
24
|
-
export interface UpdateFirewallPolicyChangeProtectionCommandInput extends UpdateFirewallPolicyChangeProtectionRequest {}
|
|
25
|
-
export interface UpdateFirewallPolicyChangeProtectionCommandOutput
|
|
26
|
-
extends UpdateFirewallPolicyChangeProtectionResponse,
|
|
27
|
-
__MetadataBearer {}
|
|
28
|
-
|
|
29
|
-
/**
|
|
30
|
-
* <p></p>
|
|
31
|
-
* @example
|
|
32
|
-
* Use a bare-bones client and the command you need to make an API call.
|
|
33
|
-
* ```javascript
|
|
34
|
-
* import { NetworkFirewallClient, UpdateFirewallPolicyChangeProtectionCommand } from "@aws-sdk/client-network-firewall"; // ES Modules import
|
|
35
|
-
* // const { NetworkFirewallClient, UpdateFirewallPolicyChangeProtectionCommand } = require("@aws-sdk/client-network-firewall"); // CommonJS import
|
|
36
|
-
* const client = new NetworkFirewallClient(config);
|
|
37
|
-
* const command = new UpdateFirewallPolicyChangeProtectionCommand(input);
|
|
38
|
-
* const response = await client.send(command);
|
|
39
|
-
* ```
|
|
40
|
-
*
|
|
41
|
-
* @see {@link UpdateFirewallPolicyChangeProtectionCommandInput} for command's `input` shape.
|
|
42
|
-
* @see {@link UpdateFirewallPolicyChangeProtectionCommandOutput} for command's `response` shape.
|
|
43
|
-
* @see {@link NetworkFirewallClientResolvedConfig | config} for command's `input` shape.
|
|
44
|
-
*
|
|
45
|
-
*/
|
|
46
|
-
export class UpdateFirewallPolicyChangeProtectionCommand extends $Command<
|
|
47
|
-
UpdateFirewallPolicyChangeProtectionCommandInput,
|
|
48
|
-
UpdateFirewallPolicyChangeProtectionCommandOutput,
|
|
49
|
-
NetworkFirewallClientResolvedConfig
|
|
50
|
-
> {
|
|
51
|
-
// Start section: command_properties
|
|
52
|
-
// End section: command_properties
|
|
53
|
-
|
|
54
|
-
constructor(readonly input: UpdateFirewallPolicyChangeProtectionCommandInput) {
|
|
55
|
-
// Start section: command_constructor
|
|
56
|
-
super();
|
|
57
|
-
// End section: command_constructor
|
|
58
|
-
}
|
|
59
|
-
|
|
60
|
-
/**
|
|
61
|
-
* @internal
|
|
62
|
-
*/
|
|
63
|
-
resolveMiddleware(
|
|
64
|
-
clientStack: MiddlewareStack<ServiceInputTypes, ServiceOutputTypes>,
|
|
65
|
-
configuration: NetworkFirewallClientResolvedConfig,
|
|
66
|
-
options?: __HttpHandlerOptions
|
|
67
|
-
): Handler<UpdateFirewallPolicyChangeProtectionCommandInput, UpdateFirewallPolicyChangeProtectionCommandOutput> {
|
|
68
|
-
this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize));
|
|
69
|
-
|
|
70
|
-
const stack = clientStack.concat(this.middlewareStack);
|
|
71
|
-
|
|
72
|
-
const { logger } = configuration;
|
|
73
|
-
const clientName = "NetworkFirewallClient";
|
|
74
|
-
const commandName = "UpdateFirewallPolicyChangeProtectionCommand";
|
|
75
|
-
const handlerExecutionContext: HandlerExecutionContext = {
|
|
76
|
-
logger,
|
|
77
|
-
clientName,
|
|
78
|
-
commandName,
|
|
79
|
-
inputFilterSensitiveLog: UpdateFirewallPolicyChangeProtectionRequest.filterSensitiveLog,
|
|
80
|
-
outputFilterSensitiveLog: UpdateFirewallPolicyChangeProtectionResponse.filterSensitiveLog,
|
|
81
|
-
};
|
|
82
|
-
const { requestHandler } = configuration;
|
|
83
|
-
return stack.resolve(
|
|
84
|
-
(request: FinalizeHandlerArguments<any>) =>
|
|
85
|
-
requestHandler.handle(request.request as __HttpRequest, options || {}),
|
|
86
|
-
handlerExecutionContext
|
|
87
|
-
);
|
|
88
|
-
}
|
|
89
|
-
|
|
90
|
-
private serialize(
|
|
91
|
-
input: UpdateFirewallPolicyChangeProtectionCommandInput,
|
|
92
|
-
context: __SerdeContext
|
|
93
|
-
): Promise<__HttpRequest> {
|
|
94
|
-
return serializeAws_json1_0UpdateFirewallPolicyChangeProtectionCommand(input, context);
|
|
95
|
-
}
|
|
96
|
-
|
|
97
|
-
private deserialize(
|
|
98
|
-
output: __HttpResponse,
|
|
99
|
-
context: __SerdeContext
|
|
100
|
-
): Promise<UpdateFirewallPolicyChangeProtectionCommandOutput> {
|
|
101
|
-
return deserializeAws_json1_0UpdateFirewallPolicyChangeProtectionCommand(output, context);
|
|
102
|
-
}
|
|
103
|
-
|
|
104
|
-
// Start section: command_body_extra
|
|
105
|
-
// End section: command_body_extra
|
|
106
|
-
}
|
|
@@ -1,95 +0,0 @@
|
|
|
1
|
-
import { getSerdePlugin } from "@aws-sdk/middleware-serde";
|
|
2
|
-
import { HttpRequest as __HttpRequest, HttpResponse as __HttpResponse } from "@aws-sdk/protocol-http";
|
|
3
|
-
import { Command as $Command } from "@aws-sdk/smithy-client";
|
|
4
|
-
import {
|
|
5
|
-
FinalizeHandlerArguments,
|
|
6
|
-
Handler,
|
|
7
|
-
HandlerExecutionContext,
|
|
8
|
-
HttpHandlerOptions as __HttpHandlerOptions,
|
|
9
|
-
MetadataBearer as __MetadataBearer,
|
|
10
|
-
MiddlewareStack,
|
|
11
|
-
SerdeContext as __SerdeContext,
|
|
12
|
-
} from "@aws-sdk/types";
|
|
13
|
-
|
|
14
|
-
import { UpdateFirewallPolicyRequest, UpdateFirewallPolicyResponse } from "../models/models_0";
|
|
15
|
-
import { NetworkFirewallClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes } from "../NetworkFirewallClient";
|
|
16
|
-
import {
|
|
17
|
-
deserializeAws_json1_0UpdateFirewallPolicyCommand,
|
|
18
|
-
serializeAws_json1_0UpdateFirewallPolicyCommand,
|
|
19
|
-
} from "../protocols/Aws_json1_0";
|
|
20
|
-
|
|
21
|
-
export interface UpdateFirewallPolicyCommandInput extends UpdateFirewallPolicyRequest {}
|
|
22
|
-
export interface UpdateFirewallPolicyCommandOutput extends UpdateFirewallPolicyResponse, __MetadataBearer {}
|
|
23
|
-
|
|
24
|
-
/**
|
|
25
|
-
* <p>Updates the properties of the specified firewall policy.</p>
|
|
26
|
-
* @example
|
|
27
|
-
* Use a bare-bones client and the command you need to make an API call.
|
|
28
|
-
* ```javascript
|
|
29
|
-
* import { NetworkFirewallClient, UpdateFirewallPolicyCommand } from "@aws-sdk/client-network-firewall"; // ES Modules import
|
|
30
|
-
* // const { NetworkFirewallClient, UpdateFirewallPolicyCommand } = require("@aws-sdk/client-network-firewall"); // CommonJS import
|
|
31
|
-
* const client = new NetworkFirewallClient(config);
|
|
32
|
-
* const command = new UpdateFirewallPolicyCommand(input);
|
|
33
|
-
* const response = await client.send(command);
|
|
34
|
-
* ```
|
|
35
|
-
*
|
|
36
|
-
* @see {@link UpdateFirewallPolicyCommandInput} for command's `input` shape.
|
|
37
|
-
* @see {@link UpdateFirewallPolicyCommandOutput} for command's `response` shape.
|
|
38
|
-
* @see {@link NetworkFirewallClientResolvedConfig | config} for command's `input` shape.
|
|
39
|
-
*
|
|
40
|
-
*/
|
|
41
|
-
export class UpdateFirewallPolicyCommand extends $Command<
|
|
42
|
-
UpdateFirewallPolicyCommandInput,
|
|
43
|
-
UpdateFirewallPolicyCommandOutput,
|
|
44
|
-
NetworkFirewallClientResolvedConfig
|
|
45
|
-
> {
|
|
46
|
-
// Start section: command_properties
|
|
47
|
-
// End section: command_properties
|
|
48
|
-
|
|
49
|
-
constructor(readonly input: UpdateFirewallPolicyCommandInput) {
|
|
50
|
-
// Start section: command_constructor
|
|
51
|
-
super();
|
|
52
|
-
// End section: command_constructor
|
|
53
|
-
}
|
|
54
|
-
|
|
55
|
-
/**
|
|
56
|
-
* @internal
|
|
57
|
-
*/
|
|
58
|
-
resolveMiddleware(
|
|
59
|
-
clientStack: MiddlewareStack<ServiceInputTypes, ServiceOutputTypes>,
|
|
60
|
-
configuration: NetworkFirewallClientResolvedConfig,
|
|
61
|
-
options?: __HttpHandlerOptions
|
|
62
|
-
): Handler<UpdateFirewallPolicyCommandInput, UpdateFirewallPolicyCommandOutput> {
|
|
63
|
-
this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize));
|
|
64
|
-
|
|
65
|
-
const stack = clientStack.concat(this.middlewareStack);
|
|
66
|
-
|
|
67
|
-
const { logger } = configuration;
|
|
68
|
-
const clientName = "NetworkFirewallClient";
|
|
69
|
-
const commandName = "UpdateFirewallPolicyCommand";
|
|
70
|
-
const handlerExecutionContext: HandlerExecutionContext = {
|
|
71
|
-
logger,
|
|
72
|
-
clientName,
|
|
73
|
-
commandName,
|
|
74
|
-
inputFilterSensitiveLog: UpdateFirewallPolicyRequest.filterSensitiveLog,
|
|
75
|
-
outputFilterSensitiveLog: UpdateFirewallPolicyResponse.filterSensitiveLog,
|
|
76
|
-
};
|
|
77
|
-
const { requestHandler } = configuration;
|
|
78
|
-
return stack.resolve(
|
|
79
|
-
(request: FinalizeHandlerArguments<any>) =>
|
|
80
|
-
requestHandler.handle(request.request as __HttpRequest, options || {}),
|
|
81
|
-
handlerExecutionContext
|
|
82
|
-
);
|
|
83
|
-
}
|
|
84
|
-
|
|
85
|
-
private serialize(input: UpdateFirewallPolicyCommandInput, context: __SerdeContext): Promise<__HttpRequest> {
|
|
86
|
-
return serializeAws_json1_0UpdateFirewallPolicyCommand(input, context);
|
|
87
|
-
}
|
|
88
|
-
|
|
89
|
-
private deserialize(output: __HttpResponse, context: __SerdeContext): Promise<UpdateFirewallPolicyCommandOutput> {
|
|
90
|
-
return deserializeAws_json1_0UpdateFirewallPolicyCommand(output, context);
|
|
91
|
-
}
|
|
92
|
-
|
|
93
|
-
// Start section: command_body_extra
|
|
94
|
-
// End section: command_body_extra
|
|
95
|
-
}
|
|
@@ -1,123 +0,0 @@
|
|
|
1
|
-
import { getSerdePlugin } from "@aws-sdk/middleware-serde";
|
|
2
|
-
import { HttpRequest as __HttpRequest, HttpResponse as __HttpResponse } from "@aws-sdk/protocol-http";
|
|
3
|
-
import { Command as $Command } from "@aws-sdk/smithy-client";
|
|
4
|
-
import {
|
|
5
|
-
FinalizeHandlerArguments,
|
|
6
|
-
Handler,
|
|
7
|
-
HandlerExecutionContext,
|
|
8
|
-
HttpHandlerOptions as __HttpHandlerOptions,
|
|
9
|
-
MetadataBearer as __MetadataBearer,
|
|
10
|
-
MiddlewareStack,
|
|
11
|
-
SerdeContext as __SerdeContext,
|
|
12
|
-
} from "@aws-sdk/types";
|
|
13
|
-
|
|
14
|
-
import { UpdateLoggingConfigurationRequest, UpdateLoggingConfigurationResponse } from "../models/models_0";
|
|
15
|
-
import { NetworkFirewallClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes } from "../NetworkFirewallClient";
|
|
16
|
-
import {
|
|
17
|
-
deserializeAws_json1_0UpdateLoggingConfigurationCommand,
|
|
18
|
-
serializeAws_json1_0UpdateLoggingConfigurationCommand,
|
|
19
|
-
} from "../protocols/Aws_json1_0";
|
|
20
|
-
|
|
21
|
-
export interface UpdateLoggingConfigurationCommandInput extends UpdateLoggingConfigurationRequest {}
|
|
22
|
-
export interface UpdateLoggingConfigurationCommandOutput extends UpdateLoggingConfigurationResponse, __MetadataBearer {}
|
|
23
|
-
|
|
24
|
-
/**
|
|
25
|
-
* <p>Sets the logging configuration for the specified firewall. </p>
|
|
26
|
-
* <p>To change the logging configuration, retrieve the <a>LoggingConfiguration</a> by calling <a>DescribeLoggingConfiguration</a>, then change it and provide
|
|
27
|
-
* the modified object to this update call. You must change the logging configuration one
|
|
28
|
-
* <a>LogDestinationConfig</a> at a time inside the retrieved <a>LoggingConfiguration</a> object. </p>
|
|
29
|
-
* <p>You can perform only one of the following actions in any call to
|
|
30
|
-
* <code>UpdateLoggingConfiguration</code>: </p>
|
|
31
|
-
* <ul>
|
|
32
|
-
* <li>
|
|
33
|
-
* <p>Create a new log destination object by adding a single
|
|
34
|
-
* <code>LogDestinationConfig</code> array element to
|
|
35
|
-
* <code>LogDestinationConfigs</code>.</p>
|
|
36
|
-
* </li>
|
|
37
|
-
* <li>
|
|
38
|
-
* <p>Delete a log destination object by removing a single
|
|
39
|
-
* <code>LogDestinationConfig</code> array element from
|
|
40
|
-
* <code>LogDestinationConfigs</code>.</p>
|
|
41
|
-
* </li>
|
|
42
|
-
* <li>
|
|
43
|
-
* <p>Change the <code>LogDestination</code> setting in a single
|
|
44
|
-
* <code>LogDestinationConfig</code> array element.</p>
|
|
45
|
-
* </li>
|
|
46
|
-
* </ul>
|
|
47
|
-
* <p>You can't change the <code>LogDestinationType</code> or <code>LogType</code> in a
|
|
48
|
-
* <code>LogDestinationConfig</code>. To change these settings, delete the existing
|
|
49
|
-
* <code>LogDestinationConfig</code> object and create a new one, using two separate calls
|
|
50
|
-
* to this update operation.</p>
|
|
51
|
-
* @example
|
|
52
|
-
* Use a bare-bones client and the command you need to make an API call.
|
|
53
|
-
* ```javascript
|
|
54
|
-
* import { NetworkFirewallClient, UpdateLoggingConfigurationCommand } from "@aws-sdk/client-network-firewall"; // ES Modules import
|
|
55
|
-
* // const { NetworkFirewallClient, UpdateLoggingConfigurationCommand } = require("@aws-sdk/client-network-firewall"); // CommonJS import
|
|
56
|
-
* const client = new NetworkFirewallClient(config);
|
|
57
|
-
* const command = new UpdateLoggingConfigurationCommand(input);
|
|
58
|
-
* const response = await client.send(command);
|
|
59
|
-
* ```
|
|
60
|
-
*
|
|
61
|
-
* @see {@link UpdateLoggingConfigurationCommandInput} for command's `input` shape.
|
|
62
|
-
* @see {@link UpdateLoggingConfigurationCommandOutput} for command's `response` shape.
|
|
63
|
-
* @see {@link NetworkFirewallClientResolvedConfig | config} for command's `input` shape.
|
|
64
|
-
*
|
|
65
|
-
*/
|
|
66
|
-
export class UpdateLoggingConfigurationCommand extends $Command<
|
|
67
|
-
UpdateLoggingConfigurationCommandInput,
|
|
68
|
-
UpdateLoggingConfigurationCommandOutput,
|
|
69
|
-
NetworkFirewallClientResolvedConfig
|
|
70
|
-
> {
|
|
71
|
-
// Start section: command_properties
|
|
72
|
-
// End section: command_properties
|
|
73
|
-
|
|
74
|
-
constructor(readonly input: UpdateLoggingConfigurationCommandInput) {
|
|
75
|
-
// Start section: command_constructor
|
|
76
|
-
super();
|
|
77
|
-
// End section: command_constructor
|
|
78
|
-
}
|
|
79
|
-
|
|
80
|
-
/**
|
|
81
|
-
* @internal
|
|
82
|
-
*/
|
|
83
|
-
resolveMiddleware(
|
|
84
|
-
clientStack: MiddlewareStack<ServiceInputTypes, ServiceOutputTypes>,
|
|
85
|
-
configuration: NetworkFirewallClientResolvedConfig,
|
|
86
|
-
options?: __HttpHandlerOptions
|
|
87
|
-
): Handler<UpdateLoggingConfigurationCommandInput, UpdateLoggingConfigurationCommandOutput> {
|
|
88
|
-
this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize));
|
|
89
|
-
|
|
90
|
-
const stack = clientStack.concat(this.middlewareStack);
|
|
91
|
-
|
|
92
|
-
const { logger } = configuration;
|
|
93
|
-
const clientName = "NetworkFirewallClient";
|
|
94
|
-
const commandName = "UpdateLoggingConfigurationCommand";
|
|
95
|
-
const handlerExecutionContext: HandlerExecutionContext = {
|
|
96
|
-
logger,
|
|
97
|
-
clientName,
|
|
98
|
-
commandName,
|
|
99
|
-
inputFilterSensitiveLog: UpdateLoggingConfigurationRequest.filterSensitiveLog,
|
|
100
|
-
outputFilterSensitiveLog: UpdateLoggingConfigurationResponse.filterSensitiveLog,
|
|
101
|
-
};
|
|
102
|
-
const { requestHandler } = configuration;
|
|
103
|
-
return stack.resolve(
|
|
104
|
-
(request: FinalizeHandlerArguments<any>) =>
|
|
105
|
-
requestHandler.handle(request.request as __HttpRequest, options || {}),
|
|
106
|
-
handlerExecutionContext
|
|
107
|
-
);
|
|
108
|
-
}
|
|
109
|
-
|
|
110
|
-
private serialize(input: UpdateLoggingConfigurationCommandInput, context: __SerdeContext): Promise<__HttpRequest> {
|
|
111
|
-
return serializeAws_json1_0UpdateLoggingConfigurationCommand(input, context);
|
|
112
|
-
}
|
|
113
|
-
|
|
114
|
-
private deserialize(
|
|
115
|
-
output: __HttpResponse,
|
|
116
|
-
context: __SerdeContext
|
|
117
|
-
): Promise<UpdateLoggingConfigurationCommandOutput> {
|
|
118
|
-
return deserializeAws_json1_0UpdateLoggingConfigurationCommand(output, context);
|
|
119
|
-
}
|
|
120
|
-
|
|
121
|
-
// Start section: command_body_extra
|
|
122
|
-
// End section: command_body_extra
|
|
123
|
-
}
|