@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,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 { DeleteRuleGroupRequest, DeleteRuleGroupResponse } from "../models/models_0";
|
|
15
|
-
import { NetworkFirewallClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes } from "../NetworkFirewallClient";
|
|
16
|
-
import {
|
|
17
|
-
deserializeAws_json1_0DeleteRuleGroupCommand,
|
|
18
|
-
serializeAws_json1_0DeleteRuleGroupCommand,
|
|
19
|
-
} from "../protocols/Aws_json1_0";
|
|
20
|
-
|
|
21
|
-
export interface DeleteRuleGroupCommandInput extends DeleteRuleGroupRequest {}
|
|
22
|
-
export interface DeleteRuleGroupCommandOutput extends DeleteRuleGroupResponse, __MetadataBearer {}
|
|
23
|
-
|
|
24
|
-
/**
|
|
25
|
-
* <p>Deletes the specified <a>RuleGroup</a>. </p>
|
|
26
|
-
* @example
|
|
27
|
-
* Use a bare-bones client and the command you need to make an API call.
|
|
28
|
-
* ```javascript
|
|
29
|
-
* import { NetworkFirewallClient, DeleteRuleGroupCommand } from "@aws-sdk/client-network-firewall"; // ES Modules import
|
|
30
|
-
* // const { NetworkFirewallClient, DeleteRuleGroupCommand } = require("@aws-sdk/client-network-firewall"); // CommonJS import
|
|
31
|
-
* const client = new NetworkFirewallClient(config);
|
|
32
|
-
* const command = new DeleteRuleGroupCommand(input);
|
|
33
|
-
* const response = await client.send(command);
|
|
34
|
-
* ```
|
|
35
|
-
*
|
|
36
|
-
* @see {@link DeleteRuleGroupCommandInput} for command's `input` shape.
|
|
37
|
-
* @see {@link DeleteRuleGroupCommandOutput} for command's `response` shape.
|
|
38
|
-
* @see {@link NetworkFirewallClientResolvedConfig | config} for command's `input` shape.
|
|
39
|
-
*
|
|
40
|
-
*/
|
|
41
|
-
export class DeleteRuleGroupCommand extends $Command<
|
|
42
|
-
DeleteRuleGroupCommandInput,
|
|
43
|
-
DeleteRuleGroupCommandOutput,
|
|
44
|
-
NetworkFirewallClientResolvedConfig
|
|
45
|
-
> {
|
|
46
|
-
// Start section: command_properties
|
|
47
|
-
// End section: command_properties
|
|
48
|
-
|
|
49
|
-
constructor(readonly input: DeleteRuleGroupCommandInput) {
|
|
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<DeleteRuleGroupCommandInput, DeleteRuleGroupCommandOutput> {
|
|
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 = "DeleteRuleGroupCommand";
|
|
70
|
-
const handlerExecutionContext: HandlerExecutionContext = {
|
|
71
|
-
logger,
|
|
72
|
-
clientName,
|
|
73
|
-
commandName,
|
|
74
|
-
inputFilterSensitiveLog: DeleteRuleGroupRequest.filterSensitiveLog,
|
|
75
|
-
outputFilterSensitiveLog: DeleteRuleGroupResponse.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: DeleteRuleGroupCommandInput, context: __SerdeContext): Promise<__HttpRequest> {
|
|
86
|
-
return serializeAws_json1_0DeleteRuleGroupCommand(input, context);
|
|
87
|
-
}
|
|
88
|
-
|
|
89
|
-
private deserialize(output: __HttpResponse, context: __SerdeContext): Promise<DeleteRuleGroupCommandOutput> {
|
|
90
|
-
return deserializeAws_json1_0DeleteRuleGroupCommand(output, context);
|
|
91
|
-
}
|
|
92
|
-
|
|
93
|
-
// Start section: command_body_extra
|
|
94
|
-
// End section: command_body_extra
|
|
95
|
-
}
|
|
@@ -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 { DescribeFirewallRequest, DescribeFirewallResponse } from "../models/models_0";
|
|
15
|
-
import { NetworkFirewallClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes } from "../NetworkFirewallClient";
|
|
16
|
-
import {
|
|
17
|
-
deserializeAws_json1_0DescribeFirewallCommand,
|
|
18
|
-
serializeAws_json1_0DescribeFirewallCommand,
|
|
19
|
-
} from "../protocols/Aws_json1_0";
|
|
20
|
-
|
|
21
|
-
export interface DescribeFirewallCommandInput extends DescribeFirewallRequest {}
|
|
22
|
-
export interface DescribeFirewallCommandOutput extends DescribeFirewallResponse, __MetadataBearer {}
|
|
23
|
-
|
|
24
|
-
/**
|
|
25
|
-
* <p>Returns the data objects for the specified firewall. </p>
|
|
26
|
-
* @example
|
|
27
|
-
* Use a bare-bones client and the command you need to make an API call.
|
|
28
|
-
* ```javascript
|
|
29
|
-
* import { NetworkFirewallClient, DescribeFirewallCommand } from "@aws-sdk/client-network-firewall"; // ES Modules import
|
|
30
|
-
* // const { NetworkFirewallClient, DescribeFirewallCommand } = require("@aws-sdk/client-network-firewall"); // CommonJS import
|
|
31
|
-
* const client = new NetworkFirewallClient(config);
|
|
32
|
-
* const command = new DescribeFirewallCommand(input);
|
|
33
|
-
* const response = await client.send(command);
|
|
34
|
-
* ```
|
|
35
|
-
*
|
|
36
|
-
* @see {@link DescribeFirewallCommandInput} for command's `input` shape.
|
|
37
|
-
* @see {@link DescribeFirewallCommandOutput} for command's `response` shape.
|
|
38
|
-
* @see {@link NetworkFirewallClientResolvedConfig | config} for command's `input` shape.
|
|
39
|
-
*
|
|
40
|
-
*/
|
|
41
|
-
export class DescribeFirewallCommand extends $Command<
|
|
42
|
-
DescribeFirewallCommandInput,
|
|
43
|
-
DescribeFirewallCommandOutput,
|
|
44
|
-
NetworkFirewallClientResolvedConfig
|
|
45
|
-
> {
|
|
46
|
-
// Start section: command_properties
|
|
47
|
-
// End section: command_properties
|
|
48
|
-
|
|
49
|
-
constructor(readonly input: DescribeFirewallCommandInput) {
|
|
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<DescribeFirewallCommandInput, DescribeFirewallCommandOutput> {
|
|
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 = "DescribeFirewallCommand";
|
|
70
|
-
const handlerExecutionContext: HandlerExecutionContext = {
|
|
71
|
-
logger,
|
|
72
|
-
clientName,
|
|
73
|
-
commandName,
|
|
74
|
-
inputFilterSensitiveLog: DescribeFirewallRequest.filterSensitiveLog,
|
|
75
|
-
outputFilterSensitiveLog: DescribeFirewallResponse.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: DescribeFirewallCommandInput, context: __SerdeContext): Promise<__HttpRequest> {
|
|
86
|
-
return serializeAws_json1_0DescribeFirewallCommand(input, context);
|
|
87
|
-
}
|
|
88
|
-
|
|
89
|
-
private deserialize(output: __HttpResponse, context: __SerdeContext): Promise<DescribeFirewallCommandOutput> {
|
|
90
|
-
return deserializeAws_json1_0DescribeFirewallCommand(output, context);
|
|
91
|
-
}
|
|
92
|
-
|
|
93
|
-
// Start section: command_body_extra
|
|
94
|
-
// End section: command_body_extra
|
|
95
|
-
}
|
|
@@ -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 { DescribeFirewallPolicyRequest, DescribeFirewallPolicyResponse } from "../models/models_0";
|
|
15
|
-
import { NetworkFirewallClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes } from "../NetworkFirewallClient";
|
|
16
|
-
import {
|
|
17
|
-
deserializeAws_json1_0DescribeFirewallPolicyCommand,
|
|
18
|
-
serializeAws_json1_0DescribeFirewallPolicyCommand,
|
|
19
|
-
} from "../protocols/Aws_json1_0";
|
|
20
|
-
|
|
21
|
-
export interface DescribeFirewallPolicyCommandInput extends DescribeFirewallPolicyRequest {}
|
|
22
|
-
export interface DescribeFirewallPolicyCommandOutput extends DescribeFirewallPolicyResponse, __MetadataBearer {}
|
|
23
|
-
|
|
24
|
-
/**
|
|
25
|
-
* <p>Returns the data objects for 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, DescribeFirewallPolicyCommand } from "@aws-sdk/client-network-firewall"; // ES Modules import
|
|
30
|
-
* // const { NetworkFirewallClient, DescribeFirewallPolicyCommand } = require("@aws-sdk/client-network-firewall"); // CommonJS import
|
|
31
|
-
* const client = new NetworkFirewallClient(config);
|
|
32
|
-
* const command = new DescribeFirewallPolicyCommand(input);
|
|
33
|
-
* const response = await client.send(command);
|
|
34
|
-
* ```
|
|
35
|
-
*
|
|
36
|
-
* @see {@link DescribeFirewallPolicyCommandInput} for command's `input` shape.
|
|
37
|
-
* @see {@link DescribeFirewallPolicyCommandOutput} for command's `response` shape.
|
|
38
|
-
* @see {@link NetworkFirewallClientResolvedConfig | config} for command's `input` shape.
|
|
39
|
-
*
|
|
40
|
-
*/
|
|
41
|
-
export class DescribeFirewallPolicyCommand extends $Command<
|
|
42
|
-
DescribeFirewallPolicyCommandInput,
|
|
43
|
-
DescribeFirewallPolicyCommandOutput,
|
|
44
|
-
NetworkFirewallClientResolvedConfig
|
|
45
|
-
> {
|
|
46
|
-
// Start section: command_properties
|
|
47
|
-
// End section: command_properties
|
|
48
|
-
|
|
49
|
-
constructor(readonly input: DescribeFirewallPolicyCommandInput) {
|
|
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<DescribeFirewallPolicyCommandInput, DescribeFirewallPolicyCommandOutput> {
|
|
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 = "DescribeFirewallPolicyCommand";
|
|
70
|
-
const handlerExecutionContext: HandlerExecutionContext = {
|
|
71
|
-
logger,
|
|
72
|
-
clientName,
|
|
73
|
-
commandName,
|
|
74
|
-
inputFilterSensitiveLog: DescribeFirewallPolicyRequest.filterSensitiveLog,
|
|
75
|
-
outputFilterSensitiveLog: DescribeFirewallPolicyResponse.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: DescribeFirewallPolicyCommandInput, context: __SerdeContext): Promise<__HttpRequest> {
|
|
86
|
-
return serializeAws_json1_0DescribeFirewallPolicyCommand(input, context);
|
|
87
|
-
}
|
|
88
|
-
|
|
89
|
-
private deserialize(output: __HttpResponse, context: __SerdeContext): Promise<DescribeFirewallPolicyCommandOutput> {
|
|
90
|
-
return deserializeAws_json1_0DescribeFirewallPolicyCommand(output, context);
|
|
91
|
-
}
|
|
92
|
-
|
|
93
|
-
// Start section: command_body_extra
|
|
94
|
-
// End section: command_body_extra
|
|
95
|
-
}
|
|
@@ -1,100 +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 { DescribeLoggingConfigurationRequest, DescribeLoggingConfigurationResponse } from "../models/models_0";
|
|
15
|
-
import { NetworkFirewallClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes } from "../NetworkFirewallClient";
|
|
16
|
-
import {
|
|
17
|
-
deserializeAws_json1_0DescribeLoggingConfigurationCommand,
|
|
18
|
-
serializeAws_json1_0DescribeLoggingConfigurationCommand,
|
|
19
|
-
} from "../protocols/Aws_json1_0";
|
|
20
|
-
|
|
21
|
-
export interface DescribeLoggingConfigurationCommandInput extends DescribeLoggingConfigurationRequest {}
|
|
22
|
-
export interface DescribeLoggingConfigurationCommandOutput
|
|
23
|
-
extends DescribeLoggingConfigurationResponse,
|
|
24
|
-
__MetadataBearer {}
|
|
25
|
-
|
|
26
|
-
/**
|
|
27
|
-
* <p>Returns the logging configuration for the specified firewall. </p>
|
|
28
|
-
* @example
|
|
29
|
-
* Use a bare-bones client and the command you need to make an API call.
|
|
30
|
-
* ```javascript
|
|
31
|
-
* import { NetworkFirewallClient, DescribeLoggingConfigurationCommand } from "@aws-sdk/client-network-firewall"; // ES Modules import
|
|
32
|
-
* // const { NetworkFirewallClient, DescribeLoggingConfigurationCommand } = require("@aws-sdk/client-network-firewall"); // CommonJS import
|
|
33
|
-
* const client = new NetworkFirewallClient(config);
|
|
34
|
-
* const command = new DescribeLoggingConfigurationCommand(input);
|
|
35
|
-
* const response = await client.send(command);
|
|
36
|
-
* ```
|
|
37
|
-
*
|
|
38
|
-
* @see {@link DescribeLoggingConfigurationCommandInput} for command's `input` shape.
|
|
39
|
-
* @see {@link DescribeLoggingConfigurationCommandOutput} for command's `response` shape.
|
|
40
|
-
* @see {@link NetworkFirewallClientResolvedConfig | config} for command's `input` shape.
|
|
41
|
-
*
|
|
42
|
-
*/
|
|
43
|
-
export class DescribeLoggingConfigurationCommand extends $Command<
|
|
44
|
-
DescribeLoggingConfigurationCommandInput,
|
|
45
|
-
DescribeLoggingConfigurationCommandOutput,
|
|
46
|
-
NetworkFirewallClientResolvedConfig
|
|
47
|
-
> {
|
|
48
|
-
// Start section: command_properties
|
|
49
|
-
// End section: command_properties
|
|
50
|
-
|
|
51
|
-
constructor(readonly input: DescribeLoggingConfigurationCommandInput) {
|
|
52
|
-
// Start section: command_constructor
|
|
53
|
-
super();
|
|
54
|
-
// End section: command_constructor
|
|
55
|
-
}
|
|
56
|
-
|
|
57
|
-
/**
|
|
58
|
-
* @internal
|
|
59
|
-
*/
|
|
60
|
-
resolveMiddleware(
|
|
61
|
-
clientStack: MiddlewareStack<ServiceInputTypes, ServiceOutputTypes>,
|
|
62
|
-
configuration: NetworkFirewallClientResolvedConfig,
|
|
63
|
-
options?: __HttpHandlerOptions
|
|
64
|
-
): Handler<DescribeLoggingConfigurationCommandInput, DescribeLoggingConfigurationCommandOutput> {
|
|
65
|
-
this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize));
|
|
66
|
-
|
|
67
|
-
const stack = clientStack.concat(this.middlewareStack);
|
|
68
|
-
|
|
69
|
-
const { logger } = configuration;
|
|
70
|
-
const clientName = "NetworkFirewallClient";
|
|
71
|
-
const commandName = "DescribeLoggingConfigurationCommand";
|
|
72
|
-
const handlerExecutionContext: HandlerExecutionContext = {
|
|
73
|
-
logger,
|
|
74
|
-
clientName,
|
|
75
|
-
commandName,
|
|
76
|
-
inputFilterSensitiveLog: DescribeLoggingConfigurationRequest.filterSensitiveLog,
|
|
77
|
-
outputFilterSensitiveLog: DescribeLoggingConfigurationResponse.filterSensitiveLog,
|
|
78
|
-
};
|
|
79
|
-
const { requestHandler } = configuration;
|
|
80
|
-
return stack.resolve(
|
|
81
|
-
(request: FinalizeHandlerArguments<any>) =>
|
|
82
|
-
requestHandler.handle(request.request as __HttpRequest, options || {}),
|
|
83
|
-
handlerExecutionContext
|
|
84
|
-
);
|
|
85
|
-
}
|
|
86
|
-
|
|
87
|
-
private serialize(input: DescribeLoggingConfigurationCommandInput, context: __SerdeContext): Promise<__HttpRequest> {
|
|
88
|
-
return serializeAws_json1_0DescribeLoggingConfigurationCommand(input, context);
|
|
89
|
-
}
|
|
90
|
-
|
|
91
|
-
private deserialize(
|
|
92
|
-
output: __HttpResponse,
|
|
93
|
-
context: __SerdeContext
|
|
94
|
-
): Promise<DescribeLoggingConfigurationCommandOutput> {
|
|
95
|
-
return deserializeAws_json1_0DescribeLoggingConfigurationCommand(output, context);
|
|
96
|
-
}
|
|
97
|
-
|
|
98
|
-
// Start section: command_body_extra
|
|
99
|
-
// End section: command_body_extra
|
|
100
|
-
}
|
|
@@ -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 { DescribeResourcePolicyRequest, DescribeResourcePolicyResponse } from "../models/models_0";
|
|
15
|
-
import { NetworkFirewallClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes } from "../NetworkFirewallClient";
|
|
16
|
-
import {
|
|
17
|
-
deserializeAws_json1_0DescribeResourcePolicyCommand,
|
|
18
|
-
serializeAws_json1_0DescribeResourcePolicyCommand,
|
|
19
|
-
} from "../protocols/Aws_json1_0";
|
|
20
|
-
|
|
21
|
-
export interface DescribeResourcePolicyCommandInput extends DescribeResourcePolicyRequest {}
|
|
22
|
-
export interface DescribeResourcePolicyCommandOutput extends DescribeResourcePolicyResponse, __MetadataBearer {}
|
|
23
|
-
|
|
24
|
-
/**
|
|
25
|
-
* <p>Retrieves a resource policy that you created in a <a>PutResourcePolicy</a> request. </p>
|
|
26
|
-
* @example
|
|
27
|
-
* Use a bare-bones client and the command you need to make an API call.
|
|
28
|
-
* ```javascript
|
|
29
|
-
* import { NetworkFirewallClient, DescribeResourcePolicyCommand } from "@aws-sdk/client-network-firewall"; // ES Modules import
|
|
30
|
-
* // const { NetworkFirewallClient, DescribeResourcePolicyCommand } = require("@aws-sdk/client-network-firewall"); // CommonJS import
|
|
31
|
-
* const client = new NetworkFirewallClient(config);
|
|
32
|
-
* const command = new DescribeResourcePolicyCommand(input);
|
|
33
|
-
* const response = await client.send(command);
|
|
34
|
-
* ```
|
|
35
|
-
*
|
|
36
|
-
* @see {@link DescribeResourcePolicyCommandInput} for command's `input` shape.
|
|
37
|
-
* @see {@link DescribeResourcePolicyCommandOutput} for command's `response` shape.
|
|
38
|
-
* @see {@link NetworkFirewallClientResolvedConfig | config} for command's `input` shape.
|
|
39
|
-
*
|
|
40
|
-
*/
|
|
41
|
-
export class DescribeResourcePolicyCommand extends $Command<
|
|
42
|
-
DescribeResourcePolicyCommandInput,
|
|
43
|
-
DescribeResourcePolicyCommandOutput,
|
|
44
|
-
NetworkFirewallClientResolvedConfig
|
|
45
|
-
> {
|
|
46
|
-
// Start section: command_properties
|
|
47
|
-
// End section: command_properties
|
|
48
|
-
|
|
49
|
-
constructor(readonly input: DescribeResourcePolicyCommandInput) {
|
|
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<DescribeResourcePolicyCommandInput, DescribeResourcePolicyCommandOutput> {
|
|
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 = "DescribeResourcePolicyCommand";
|
|
70
|
-
const handlerExecutionContext: HandlerExecutionContext = {
|
|
71
|
-
logger,
|
|
72
|
-
clientName,
|
|
73
|
-
commandName,
|
|
74
|
-
inputFilterSensitiveLog: DescribeResourcePolicyRequest.filterSensitiveLog,
|
|
75
|
-
outputFilterSensitiveLog: DescribeResourcePolicyResponse.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: DescribeResourcePolicyCommandInput, context: __SerdeContext): Promise<__HttpRequest> {
|
|
86
|
-
return serializeAws_json1_0DescribeResourcePolicyCommand(input, context);
|
|
87
|
-
}
|
|
88
|
-
|
|
89
|
-
private deserialize(output: __HttpResponse, context: __SerdeContext): Promise<DescribeResourcePolicyCommandOutput> {
|
|
90
|
-
return deserializeAws_json1_0DescribeResourcePolicyCommand(output, context);
|
|
91
|
-
}
|
|
92
|
-
|
|
93
|
-
// Start section: command_body_extra
|
|
94
|
-
// End section: command_body_extra
|
|
95
|
-
}
|
|
@@ -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 { DescribeRuleGroupRequest, DescribeRuleGroupResponse } from "../models/models_0";
|
|
15
|
-
import { NetworkFirewallClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes } from "../NetworkFirewallClient";
|
|
16
|
-
import {
|
|
17
|
-
deserializeAws_json1_0DescribeRuleGroupCommand,
|
|
18
|
-
serializeAws_json1_0DescribeRuleGroupCommand,
|
|
19
|
-
} from "../protocols/Aws_json1_0";
|
|
20
|
-
|
|
21
|
-
export interface DescribeRuleGroupCommandInput extends DescribeRuleGroupRequest {}
|
|
22
|
-
export interface DescribeRuleGroupCommandOutput extends DescribeRuleGroupResponse, __MetadataBearer {}
|
|
23
|
-
|
|
24
|
-
/**
|
|
25
|
-
* <p>Returns the data objects for the specified rule group. </p>
|
|
26
|
-
* @example
|
|
27
|
-
* Use a bare-bones client and the command you need to make an API call.
|
|
28
|
-
* ```javascript
|
|
29
|
-
* import { NetworkFirewallClient, DescribeRuleGroupCommand } from "@aws-sdk/client-network-firewall"; // ES Modules import
|
|
30
|
-
* // const { NetworkFirewallClient, DescribeRuleGroupCommand } = require("@aws-sdk/client-network-firewall"); // CommonJS import
|
|
31
|
-
* const client = new NetworkFirewallClient(config);
|
|
32
|
-
* const command = new DescribeRuleGroupCommand(input);
|
|
33
|
-
* const response = await client.send(command);
|
|
34
|
-
* ```
|
|
35
|
-
*
|
|
36
|
-
* @see {@link DescribeRuleGroupCommandInput} for command's `input` shape.
|
|
37
|
-
* @see {@link DescribeRuleGroupCommandOutput} for command's `response` shape.
|
|
38
|
-
* @see {@link NetworkFirewallClientResolvedConfig | config} for command's `input` shape.
|
|
39
|
-
*
|
|
40
|
-
*/
|
|
41
|
-
export class DescribeRuleGroupCommand extends $Command<
|
|
42
|
-
DescribeRuleGroupCommandInput,
|
|
43
|
-
DescribeRuleGroupCommandOutput,
|
|
44
|
-
NetworkFirewallClientResolvedConfig
|
|
45
|
-
> {
|
|
46
|
-
// Start section: command_properties
|
|
47
|
-
// End section: command_properties
|
|
48
|
-
|
|
49
|
-
constructor(readonly input: DescribeRuleGroupCommandInput) {
|
|
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<DescribeRuleGroupCommandInput, DescribeRuleGroupCommandOutput> {
|
|
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 = "DescribeRuleGroupCommand";
|
|
70
|
-
const handlerExecutionContext: HandlerExecutionContext = {
|
|
71
|
-
logger,
|
|
72
|
-
clientName,
|
|
73
|
-
commandName,
|
|
74
|
-
inputFilterSensitiveLog: DescribeRuleGroupRequest.filterSensitiveLog,
|
|
75
|
-
outputFilterSensitiveLog: DescribeRuleGroupResponse.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: DescribeRuleGroupCommandInput, context: __SerdeContext): Promise<__HttpRequest> {
|
|
86
|
-
return serializeAws_json1_0DescribeRuleGroupCommand(input, context);
|
|
87
|
-
}
|
|
88
|
-
|
|
89
|
-
private deserialize(output: __HttpResponse, context: __SerdeContext): Promise<DescribeRuleGroupCommandOutput> {
|
|
90
|
-
return deserializeAws_json1_0DescribeRuleGroupCommand(output, context);
|
|
91
|
-
}
|
|
92
|
-
|
|
93
|
-
// Start section: command_body_extra
|
|
94
|
-
// End section: command_body_extra
|
|
95
|
-
}
|
|
@@ -1,98 +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 { DisassociateSubnetsRequest, DisassociateSubnetsResponse } from "../models/models_0";
|
|
15
|
-
import { NetworkFirewallClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes } from "../NetworkFirewallClient";
|
|
16
|
-
import {
|
|
17
|
-
deserializeAws_json1_0DisassociateSubnetsCommand,
|
|
18
|
-
serializeAws_json1_0DisassociateSubnetsCommand,
|
|
19
|
-
} from "../protocols/Aws_json1_0";
|
|
20
|
-
|
|
21
|
-
export interface DisassociateSubnetsCommandInput extends DisassociateSubnetsRequest {}
|
|
22
|
-
export interface DisassociateSubnetsCommandOutput extends DisassociateSubnetsResponse, __MetadataBearer {}
|
|
23
|
-
|
|
24
|
-
/**
|
|
25
|
-
* <p>Removes the specified subnet associations from the firewall. This removes the
|
|
26
|
-
* firewall endpoints from the subnets and removes any network filtering protections that the endpoints
|
|
27
|
-
* were providing.
|
|
28
|
-
* </p>
|
|
29
|
-
* @example
|
|
30
|
-
* Use a bare-bones client and the command you need to make an API call.
|
|
31
|
-
* ```javascript
|
|
32
|
-
* import { NetworkFirewallClient, DisassociateSubnetsCommand } from "@aws-sdk/client-network-firewall"; // ES Modules import
|
|
33
|
-
* // const { NetworkFirewallClient, DisassociateSubnetsCommand } = require("@aws-sdk/client-network-firewall"); // CommonJS import
|
|
34
|
-
* const client = new NetworkFirewallClient(config);
|
|
35
|
-
* const command = new DisassociateSubnetsCommand(input);
|
|
36
|
-
* const response = await client.send(command);
|
|
37
|
-
* ```
|
|
38
|
-
*
|
|
39
|
-
* @see {@link DisassociateSubnetsCommandInput} for command's `input` shape.
|
|
40
|
-
* @see {@link DisassociateSubnetsCommandOutput} for command's `response` shape.
|
|
41
|
-
* @see {@link NetworkFirewallClientResolvedConfig | config} for command's `input` shape.
|
|
42
|
-
*
|
|
43
|
-
*/
|
|
44
|
-
export class DisassociateSubnetsCommand extends $Command<
|
|
45
|
-
DisassociateSubnetsCommandInput,
|
|
46
|
-
DisassociateSubnetsCommandOutput,
|
|
47
|
-
NetworkFirewallClientResolvedConfig
|
|
48
|
-
> {
|
|
49
|
-
// Start section: command_properties
|
|
50
|
-
// End section: command_properties
|
|
51
|
-
|
|
52
|
-
constructor(readonly input: DisassociateSubnetsCommandInput) {
|
|
53
|
-
// Start section: command_constructor
|
|
54
|
-
super();
|
|
55
|
-
// End section: command_constructor
|
|
56
|
-
}
|
|
57
|
-
|
|
58
|
-
/**
|
|
59
|
-
* @internal
|
|
60
|
-
*/
|
|
61
|
-
resolveMiddleware(
|
|
62
|
-
clientStack: MiddlewareStack<ServiceInputTypes, ServiceOutputTypes>,
|
|
63
|
-
configuration: NetworkFirewallClientResolvedConfig,
|
|
64
|
-
options?: __HttpHandlerOptions
|
|
65
|
-
): Handler<DisassociateSubnetsCommandInput, DisassociateSubnetsCommandOutput> {
|
|
66
|
-
this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize));
|
|
67
|
-
|
|
68
|
-
const stack = clientStack.concat(this.middlewareStack);
|
|
69
|
-
|
|
70
|
-
const { logger } = configuration;
|
|
71
|
-
const clientName = "NetworkFirewallClient";
|
|
72
|
-
const commandName = "DisassociateSubnetsCommand";
|
|
73
|
-
const handlerExecutionContext: HandlerExecutionContext = {
|
|
74
|
-
logger,
|
|
75
|
-
clientName,
|
|
76
|
-
commandName,
|
|
77
|
-
inputFilterSensitiveLog: DisassociateSubnetsRequest.filterSensitiveLog,
|
|
78
|
-
outputFilterSensitiveLog: DisassociateSubnetsResponse.filterSensitiveLog,
|
|
79
|
-
};
|
|
80
|
-
const { requestHandler } = configuration;
|
|
81
|
-
return stack.resolve(
|
|
82
|
-
(request: FinalizeHandlerArguments<any>) =>
|
|
83
|
-
requestHandler.handle(request.request as __HttpRequest, options || {}),
|
|
84
|
-
handlerExecutionContext
|
|
85
|
-
);
|
|
86
|
-
}
|
|
87
|
-
|
|
88
|
-
private serialize(input: DisassociateSubnetsCommandInput, context: __SerdeContext): Promise<__HttpRequest> {
|
|
89
|
-
return serializeAws_json1_0DisassociateSubnetsCommand(input, context);
|
|
90
|
-
}
|
|
91
|
-
|
|
92
|
-
private deserialize(output: __HttpResponse, context: __SerdeContext): Promise<DisassociateSubnetsCommandOutput> {
|
|
93
|
-
return deserializeAws_json1_0DisassociateSubnetsCommand(output, context);
|
|
94
|
-
}
|
|
95
|
-
|
|
96
|
-
// Start section: command_body_extra
|
|
97
|
-
// End section: command_body_extra
|
|
98
|
-
}
|