@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,448 +0,0 @@
|
|
|
1
|
-
import {
|
|
2
|
-
EndpointsInputConfig,
|
|
3
|
-
EndpointsResolvedConfig,
|
|
4
|
-
RegionInputConfig,
|
|
5
|
-
RegionResolvedConfig,
|
|
6
|
-
resolveEndpointsConfig,
|
|
7
|
-
resolveRegionConfig,
|
|
8
|
-
} from "@aws-sdk/config-resolver";
|
|
9
|
-
import { getContentLengthPlugin } from "@aws-sdk/middleware-content-length";
|
|
10
|
-
import {
|
|
11
|
-
getHostHeaderPlugin,
|
|
12
|
-
HostHeaderInputConfig,
|
|
13
|
-
HostHeaderResolvedConfig,
|
|
14
|
-
resolveHostHeaderConfig,
|
|
15
|
-
} from "@aws-sdk/middleware-host-header";
|
|
16
|
-
import { getLoggerPlugin } from "@aws-sdk/middleware-logger";
|
|
17
|
-
import { getRetryPlugin, resolveRetryConfig, RetryInputConfig, RetryResolvedConfig } from "@aws-sdk/middleware-retry";
|
|
18
|
-
import {
|
|
19
|
-
AwsAuthInputConfig,
|
|
20
|
-
AwsAuthResolvedConfig,
|
|
21
|
-
getAwsAuthPlugin,
|
|
22
|
-
resolveAwsAuthConfig,
|
|
23
|
-
} from "@aws-sdk/middleware-signing";
|
|
24
|
-
import {
|
|
25
|
-
getUserAgentPlugin,
|
|
26
|
-
resolveUserAgentConfig,
|
|
27
|
-
UserAgentInputConfig,
|
|
28
|
-
UserAgentResolvedConfig,
|
|
29
|
-
} from "@aws-sdk/middleware-user-agent";
|
|
30
|
-
import { HttpHandler as __HttpHandler } from "@aws-sdk/protocol-http";
|
|
31
|
-
import {
|
|
32
|
-
Client as __Client,
|
|
33
|
-
SmithyConfiguration as __SmithyConfiguration,
|
|
34
|
-
SmithyResolvedConfiguration as __SmithyResolvedConfiguration,
|
|
35
|
-
} from "@aws-sdk/smithy-client";
|
|
36
|
-
import {
|
|
37
|
-
Credentials as __Credentials,
|
|
38
|
-
Decoder as __Decoder,
|
|
39
|
-
Encoder as __Encoder,
|
|
40
|
-
Hash as __Hash,
|
|
41
|
-
HashConstructor as __HashConstructor,
|
|
42
|
-
HttpHandlerOptions as __HttpHandlerOptions,
|
|
43
|
-
Logger as __Logger,
|
|
44
|
-
Provider as __Provider,
|
|
45
|
-
Provider,
|
|
46
|
-
RegionInfoProvider,
|
|
47
|
-
StreamCollector as __StreamCollector,
|
|
48
|
-
UrlParser as __UrlParser,
|
|
49
|
-
UserAgent as __UserAgent,
|
|
50
|
-
} from "@aws-sdk/types";
|
|
51
|
-
|
|
52
|
-
import {
|
|
53
|
-
AssociateFirewallPolicyCommandInput,
|
|
54
|
-
AssociateFirewallPolicyCommandOutput,
|
|
55
|
-
} from "./commands/AssociateFirewallPolicyCommand";
|
|
56
|
-
import { AssociateSubnetsCommandInput, AssociateSubnetsCommandOutput } from "./commands/AssociateSubnetsCommand";
|
|
57
|
-
import { CreateFirewallCommandInput, CreateFirewallCommandOutput } from "./commands/CreateFirewallCommand";
|
|
58
|
-
import {
|
|
59
|
-
CreateFirewallPolicyCommandInput,
|
|
60
|
-
CreateFirewallPolicyCommandOutput,
|
|
61
|
-
} from "./commands/CreateFirewallPolicyCommand";
|
|
62
|
-
import { CreateRuleGroupCommandInput, CreateRuleGroupCommandOutput } from "./commands/CreateRuleGroupCommand";
|
|
63
|
-
import { DeleteFirewallCommandInput, DeleteFirewallCommandOutput } from "./commands/DeleteFirewallCommand";
|
|
64
|
-
import {
|
|
65
|
-
DeleteFirewallPolicyCommandInput,
|
|
66
|
-
DeleteFirewallPolicyCommandOutput,
|
|
67
|
-
} from "./commands/DeleteFirewallPolicyCommand";
|
|
68
|
-
import {
|
|
69
|
-
DeleteResourcePolicyCommandInput,
|
|
70
|
-
DeleteResourcePolicyCommandOutput,
|
|
71
|
-
} from "./commands/DeleteResourcePolicyCommand";
|
|
72
|
-
import { DeleteRuleGroupCommandInput, DeleteRuleGroupCommandOutput } from "./commands/DeleteRuleGroupCommand";
|
|
73
|
-
import { DescribeFirewallCommandInput, DescribeFirewallCommandOutput } from "./commands/DescribeFirewallCommand";
|
|
74
|
-
import {
|
|
75
|
-
DescribeFirewallPolicyCommandInput,
|
|
76
|
-
DescribeFirewallPolicyCommandOutput,
|
|
77
|
-
} from "./commands/DescribeFirewallPolicyCommand";
|
|
78
|
-
import {
|
|
79
|
-
DescribeLoggingConfigurationCommandInput,
|
|
80
|
-
DescribeLoggingConfigurationCommandOutput,
|
|
81
|
-
} from "./commands/DescribeLoggingConfigurationCommand";
|
|
82
|
-
import {
|
|
83
|
-
DescribeResourcePolicyCommandInput,
|
|
84
|
-
DescribeResourcePolicyCommandOutput,
|
|
85
|
-
} from "./commands/DescribeResourcePolicyCommand";
|
|
86
|
-
import { DescribeRuleGroupCommandInput, DescribeRuleGroupCommandOutput } from "./commands/DescribeRuleGroupCommand";
|
|
87
|
-
import {
|
|
88
|
-
DisassociateSubnetsCommandInput,
|
|
89
|
-
DisassociateSubnetsCommandOutput,
|
|
90
|
-
} from "./commands/DisassociateSubnetsCommand";
|
|
91
|
-
import {
|
|
92
|
-
ListFirewallPoliciesCommandInput,
|
|
93
|
-
ListFirewallPoliciesCommandOutput,
|
|
94
|
-
} from "./commands/ListFirewallPoliciesCommand";
|
|
95
|
-
import { ListFirewallsCommandInput, ListFirewallsCommandOutput } from "./commands/ListFirewallsCommand";
|
|
96
|
-
import { ListRuleGroupsCommandInput, ListRuleGroupsCommandOutput } from "./commands/ListRuleGroupsCommand";
|
|
97
|
-
import {
|
|
98
|
-
ListTagsForResourceCommandInput,
|
|
99
|
-
ListTagsForResourceCommandOutput,
|
|
100
|
-
} from "./commands/ListTagsForResourceCommand";
|
|
101
|
-
import { PutResourcePolicyCommandInput, PutResourcePolicyCommandOutput } from "./commands/PutResourcePolicyCommand";
|
|
102
|
-
import { TagResourceCommandInput, TagResourceCommandOutput } from "./commands/TagResourceCommand";
|
|
103
|
-
import { UntagResourceCommandInput, UntagResourceCommandOutput } from "./commands/UntagResourceCommand";
|
|
104
|
-
import {
|
|
105
|
-
UpdateFirewallDeleteProtectionCommandInput,
|
|
106
|
-
UpdateFirewallDeleteProtectionCommandOutput,
|
|
107
|
-
} from "./commands/UpdateFirewallDeleteProtectionCommand";
|
|
108
|
-
import {
|
|
109
|
-
UpdateFirewallDescriptionCommandInput,
|
|
110
|
-
UpdateFirewallDescriptionCommandOutput,
|
|
111
|
-
} from "./commands/UpdateFirewallDescriptionCommand";
|
|
112
|
-
import {
|
|
113
|
-
UpdateFirewallPolicyChangeProtectionCommandInput,
|
|
114
|
-
UpdateFirewallPolicyChangeProtectionCommandOutput,
|
|
115
|
-
} from "./commands/UpdateFirewallPolicyChangeProtectionCommand";
|
|
116
|
-
import {
|
|
117
|
-
UpdateFirewallPolicyCommandInput,
|
|
118
|
-
UpdateFirewallPolicyCommandOutput,
|
|
119
|
-
} from "./commands/UpdateFirewallPolicyCommand";
|
|
120
|
-
import {
|
|
121
|
-
UpdateLoggingConfigurationCommandInput,
|
|
122
|
-
UpdateLoggingConfigurationCommandOutput,
|
|
123
|
-
} from "./commands/UpdateLoggingConfigurationCommand";
|
|
124
|
-
import { UpdateRuleGroupCommandInput, UpdateRuleGroupCommandOutput } from "./commands/UpdateRuleGroupCommand";
|
|
125
|
-
import {
|
|
126
|
-
UpdateSubnetChangeProtectionCommandInput,
|
|
127
|
-
UpdateSubnetChangeProtectionCommandOutput,
|
|
128
|
-
} from "./commands/UpdateSubnetChangeProtectionCommand";
|
|
129
|
-
import { getRuntimeConfig as __getRuntimeConfig } from "./runtimeConfig";
|
|
130
|
-
|
|
131
|
-
export type ServiceInputTypes =
|
|
132
|
-
| AssociateFirewallPolicyCommandInput
|
|
133
|
-
| AssociateSubnetsCommandInput
|
|
134
|
-
| CreateFirewallCommandInput
|
|
135
|
-
| CreateFirewallPolicyCommandInput
|
|
136
|
-
| CreateRuleGroupCommandInput
|
|
137
|
-
| DeleteFirewallCommandInput
|
|
138
|
-
| DeleteFirewallPolicyCommandInput
|
|
139
|
-
| DeleteResourcePolicyCommandInput
|
|
140
|
-
| DeleteRuleGroupCommandInput
|
|
141
|
-
| DescribeFirewallCommandInput
|
|
142
|
-
| DescribeFirewallPolicyCommandInput
|
|
143
|
-
| DescribeLoggingConfigurationCommandInput
|
|
144
|
-
| DescribeResourcePolicyCommandInput
|
|
145
|
-
| DescribeRuleGroupCommandInput
|
|
146
|
-
| DisassociateSubnetsCommandInput
|
|
147
|
-
| ListFirewallPoliciesCommandInput
|
|
148
|
-
| ListFirewallsCommandInput
|
|
149
|
-
| ListRuleGroupsCommandInput
|
|
150
|
-
| ListTagsForResourceCommandInput
|
|
151
|
-
| PutResourcePolicyCommandInput
|
|
152
|
-
| TagResourceCommandInput
|
|
153
|
-
| UntagResourceCommandInput
|
|
154
|
-
| UpdateFirewallDeleteProtectionCommandInput
|
|
155
|
-
| UpdateFirewallDescriptionCommandInput
|
|
156
|
-
| UpdateFirewallPolicyChangeProtectionCommandInput
|
|
157
|
-
| UpdateFirewallPolicyCommandInput
|
|
158
|
-
| UpdateLoggingConfigurationCommandInput
|
|
159
|
-
| UpdateRuleGroupCommandInput
|
|
160
|
-
| UpdateSubnetChangeProtectionCommandInput;
|
|
161
|
-
|
|
162
|
-
export type ServiceOutputTypes =
|
|
163
|
-
| AssociateFirewallPolicyCommandOutput
|
|
164
|
-
| AssociateSubnetsCommandOutput
|
|
165
|
-
| CreateFirewallCommandOutput
|
|
166
|
-
| CreateFirewallPolicyCommandOutput
|
|
167
|
-
| CreateRuleGroupCommandOutput
|
|
168
|
-
| DeleteFirewallCommandOutput
|
|
169
|
-
| DeleteFirewallPolicyCommandOutput
|
|
170
|
-
| DeleteResourcePolicyCommandOutput
|
|
171
|
-
| DeleteRuleGroupCommandOutput
|
|
172
|
-
| DescribeFirewallCommandOutput
|
|
173
|
-
| DescribeFirewallPolicyCommandOutput
|
|
174
|
-
| DescribeLoggingConfigurationCommandOutput
|
|
175
|
-
| DescribeResourcePolicyCommandOutput
|
|
176
|
-
| DescribeRuleGroupCommandOutput
|
|
177
|
-
| DisassociateSubnetsCommandOutput
|
|
178
|
-
| ListFirewallPoliciesCommandOutput
|
|
179
|
-
| ListFirewallsCommandOutput
|
|
180
|
-
| ListRuleGroupsCommandOutput
|
|
181
|
-
| ListTagsForResourceCommandOutput
|
|
182
|
-
| PutResourcePolicyCommandOutput
|
|
183
|
-
| TagResourceCommandOutput
|
|
184
|
-
| UntagResourceCommandOutput
|
|
185
|
-
| UpdateFirewallDeleteProtectionCommandOutput
|
|
186
|
-
| UpdateFirewallDescriptionCommandOutput
|
|
187
|
-
| UpdateFirewallPolicyChangeProtectionCommandOutput
|
|
188
|
-
| UpdateFirewallPolicyCommandOutput
|
|
189
|
-
| UpdateLoggingConfigurationCommandOutput
|
|
190
|
-
| UpdateRuleGroupCommandOutput
|
|
191
|
-
| UpdateSubnetChangeProtectionCommandOutput;
|
|
192
|
-
|
|
193
|
-
export interface ClientDefaults extends Partial<__SmithyResolvedConfiguration<__HttpHandlerOptions>> {
|
|
194
|
-
/**
|
|
195
|
-
* The HTTP handler to use. Fetch in browser and Https in Nodejs.
|
|
196
|
-
*/
|
|
197
|
-
requestHandler?: __HttpHandler;
|
|
198
|
-
|
|
199
|
-
/**
|
|
200
|
-
* A constructor for a class implementing the {@link __Hash} interface
|
|
201
|
-
* that computes the SHA-256 HMAC or checksum of a string or binary buffer.
|
|
202
|
-
* @internal
|
|
203
|
-
*/
|
|
204
|
-
sha256?: __HashConstructor;
|
|
205
|
-
|
|
206
|
-
/**
|
|
207
|
-
* The function that will be used to convert strings into HTTP endpoints.
|
|
208
|
-
* @internal
|
|
209
|
-
*/
|
|
210
|
-
urlParser?: __UrlParser;
|
|
211
|
-
|
|
212
|
-
/**
|
|
213
|
-
* A function that can calculate the length of a request body.
|
|
214
|
-
* @internal
|
|
215
|
-
*/
|
|
216
|
-
bodyLengthChecker?: (body: any) => number | undefined;
|
|
217
|
-
|
|
218
|
-
/**
|
|
219
|
-
* A function that converts a stream into an array of bytes.
|
|
220
|
-
* @internal
|
|
221
|
-
*/
|
|
222
|
-
streamCollector?: __StreamCollector;
|
|
223
|
-
|
|
224
|
-
/**
|
|
225
|
-
* The function that will be used to convert a base64-encoded string to a byte array.
|
|
226
|
-
* @internal
|
|
227
|
-
*/
|
|
228
|
-
base64Decoder?: __Decoder;
|
|
229
|
-
|
|
230
|
-
/**
|
|
231
|
-
* The function that will be used to convert binary data to a base64-encoded string.
|
|
232
|
-
* @internal
|
|
233
|
-
*/
|
|
234
|
-
base64Encoder?: __Encoder;
|
|
235
|
-
|
|
236
|
-
/**
|
|
237
|
-
* The function that will be used to convert a UTF8-encoded string to a byte array.
|
|
238
|
-
* @internal
|
|
239
|
-
*/
|
|
240
|
-
utf8Decoder?: __Decoder;
|
|
241
|
-
|
|
242
|
-
/**
|
|
243
|
-
* The function that will be used to convert binary data to a UTF-8 encoded string.
|
|
244
|
-
* @internal
|
|
245
|
-
*/
|
|
246
|
-
utf8Encoder?: __Encoder;
|
|
247
|
-
|
|
248
|
-
/**
|
|
249
|
-
* The runtime environment.
|
|
250
|
-
* @internal
|
|
251
|
-
*/
|
|
252
|
-
runtime?: string;
|
|
253
|
-
|
|
254
|
-
/**
|
|
255
|
-
* Disable dyanamically changing the endpoint of the client based on the hostPrefix
|
|
256
|
-
* trait of an operation.
|
|
257
|
-
*/
|
|
258
|
-
disableHostPrefix?: boolean;
|
|
259
|
-
|
|
260
|
-
/**
|
|
261
|
-
* Value for how many times a request will be made at most in case of retry.
|
|
262
|
-
*/
|
|
263
|
-
maxAttempts?: number | __Provider<number>;
|
|
264
|
-
|
|
265
|
-
/**
|
|
266
|
-
* Specifies which retry algorithm to use.
|
|
267
|
-
*/
|
|
268
|
-
retryMode?: string | __Provider<string>;
|
|
269
|
-
|
|
270
|
-
/**
|
|
271
|
-
* Optional logger for logging debug/info/warn/error.
|
|
272
|
-
*/
|
|
273
|
-
logger?: __Logger;
|
|
274
|
-
|
|
275
|
-
/**
|
|
276
|
-
* Unique service identifier.
|
|
277
|
-
* @internal
|
|
278
|
-
*/
|
|
279
|
-
serviceId?: string;
|
|
280
|
-
|
|
281
|
-
/**
|
|
282
|
-
* The AWS region to which this client will send requests
|
|
283
|
-
*/
|
|
284
|
-
region?: string | __Provider<string>;
|
|
285
|
-
|
|
286
|
-
/**
|
|
287
|
-
* Default credentials provider; Not available in browser runtime.
|
|
288
|
-
* @internal
|
|
289
|
-
*/
|
|
290
|
-
credentialDefaultProvider?: (input: any) => __Provider<__Credentials>;
|
|
291
|
-
|
|
292
|
-
/**
|
|
293
|
-
* Fetch related hostname, signing name or signing region with given region.
|
|
294
|
-
* @internal
|
|
295
|
-
*/
|
|
296
|
-
regionInfoProvider?: RegionInfoProvider;
|
|
297
|
-
|
|
298
|
-
/**
|
|
299
|
-
* The provider populating default tracking information to be sent with `user-agent`, `x-amz-user-agent` header
|
|
300
|
-
* @internal
|
|
301
|
-
*/
|
|
302
|
-
defaultUserAgentProvider?: Provider<__UserAgent>;
|
|
303
|
-
}
|
|
304
|
-
|
|
305
|
-
type NetworkFirewallClientConfigType = Partial<__SmithyConfiguration<__HttpHandlerOptions>> &
|
|
306
|
-
ClientDefaults &
|
|
307
|
-
RegionInputConfig &
|
|
308
|
-
EndpointsInputConfig &
|
|
309
|
-
RetryInputConfig &
|
|
310
|
-
HostHeaderInputConfig &
|
|
311
|
-
AwsAuthInputConfig &
|
|
312
|
-
UserAgentInputConfig;
|
|
313
|
-
/**
|
|
314
|
-
* The configuration interface of NetworkFirewallClient class constructor that set the region, credentials and other options.
|
|
315
|
-
*/
|
|
316
|
-
export interface NetworkFirewallClientConfig extends NetworkFirewallClientConfigType {}
|
|
317
|
-
|
|
318
|
-
type NetworkFirewallClientResolvedConfigType = __SmithyResolvedConfiguration<__HttpHandlerOptions> &
|
|
319
|
-
Required<ClientDefaults> &
|
|
320
|
-
RegionResolvedConfig &
|
|
321
|
-
EndpointsResolvedConfig &
|
|
322
|
-
RetryResolvedConfig &
|
|
323
|
-
HostHeaderResolvedConfig &
|
|
324
|
-
AwsAuthResolvedConfig &
|
|
325
|
-
UserAgentResolvedConfig;
|
|
326
|
-
/**
|
|
327
|
-
* The resolved configuration interface of NetworkFirewallClient class. This is resolved and normalized from the {@link NetworkFirewallClientConfig | constructor configuration interface}.
|
|
328
|
-
*/
|
|
329
|
-
export interface NetworkFirewallClientResolvedConfig extends NetworkFirewallClientResolvedConfigType {}
|
|
330
|
-
|
|
331
|
-
/**
|
|
332
|
-
* <p>This is the API Reference for AWS Network Firewall. This guide is for developers who need
|
|
333
|
-
* detailed information about the Network Firewall API actions, data types, and errors. </p>
|
|
334
|
-
* <ul>
|
|
335
|
-
* <li>
|
|
336
|
-
* <p>The REST API requires you to handle connection details, such as calculating
|
|
337
|
-
* signatures, handling request retries, and error handling. For general information
|
|
338
|
-
* about using the AWS REST APIs, see <a href="https://docs.aws.amazon.com/general/latest/gr/aws-apis.html">AWS APIs</a>. </p>
|
|
339
|
-
* <p>To access Network Firewall using the REST API endpoint:
|
|
340
|
-
* <code>https://network-firewall.<region>.amazonaws.com </code>
|
|
341
|
-
* </p>
|
|
342
|
-
* </li>
|
|
343
|
-
* <li>
|
|
344
|
-
* <p>Alternatively, you can use one of the AWS SDKs to access an API that's tailored to
|
|
345
|
-
* the programming language or platform that you're using. For more information, see
|
|
346
|
-
* <a href="http://aws.amazon.com/tools/#SDKs">AWS SDKs</a>.</p>
|
|
347
|
-
* </li>
|
|
348
|
-
* <li>
|
|
349
|
-
* <p>For descriptions of Network Firewall features, including and step-by-step
|
|
350
|
-
* instructions on how to use them through the Network Firewall console, see the <a href="https://docs.aws.amazon.com/network-firewall/latest/developerguide/">Network Firewall Developer
|
|
351
|
-
* Guide</a>.</p>
|
|
352
|
-
* </li>
|
|
353
|
-
* </ul>
|
|
354
|
-
* <p>Network Firewall is a stateful, managed, network firewall and intrusion detection and
|
|
355
|
-
* prevention service for Amazon Virtual Private Cloud (Amazon VPC). With Network Firewall, you can filter traffic at the
|
|
356
|
-
* perimeter of your VPC. This includes filtering traffic going to and coming from an internet
|
|
357
|
-
* gateway, NAT gateway, or over VPN or AWS Direct Connect. Network Firewall uses rules that are compatible
|
|
358
|
-
* with Suricata, a free, open source intrusion detection system (IDS) engine.
|
|
359
|
-
* AWS Network Firewall supports Suricata version 5.0.2. For information about Suricata,
|
|
360
|
-
* see the <a href="https://suricata-ids.org/">Suricata website</a>.</p>
|
|
361
|
-
* <p>You can use Network Firewall to monitor and protect your VPC traffic in a number of ways.
|
|
362
|
-
* The following are just a few examples: </p>
|
|
363
|
-
* <ul>
|
|
364
|
-
* <li>
|
|
365
|
-
* <p>Allow domains or IP addresses for known AWS service endpoints, such as Amazon S3, and
|
|
366
|
-
* block all other forms of traffic.</p>
|
|
367
|
-
* </li>
|
|
368
|
-
* <li>
|
|
369
|
-
* <p>Use custom lists of known bad domains to limit the types of domain names that your
|
|
370
|
-
* applications can access.</p>
|
|
371
|
-
* </li>
|
|
372
|
-
* <li>
|
|
373
|
-
* <p>Perform deep packet inspection on traffic entering or leaving your VPC.</p>
|
|
374
|
-
* </li>
|
|
375
|
-
* <li>
|
|
376
|
-
* <p>Use stateful protocol detection to filter protocols like HTTPS, regardless of the
|
|
377
|
-
* port used.</p>
|
|
378
|
-
* </li>
|
|
379
|
-
* </ul>
|
|
380
|
-
* <p>To enable Network Firewall for your VPCs, you perform steps in both Amazon VPC and in
|
|
381
|
-
* Network Firewall. For information about using Amazon VPC, see <a href="https://docs.aws.amazon.com/vpc/latest/userguide/">Amazon VPC User Guide</a>.</p>
|
|
382
|
-
* <p>To start using Network Firewall, do the following: </p>
|
|
383
|
-
* <ol>
|
|
384
|
-
* <li>
|
|
385
|
-
* <p>(Optional) If you don't already have a VPC that you want to protect, create it in
|
|
386
|
-
* Amazon VPC. </p>
|
|
387
|
-
* </li>
|
|
388
|
-
* <li>
|
|
389
|
-
* <p>In Amazon VPC, in each Availability Zone where you want to have a firewall endpoint, create a
|
|
390
|
-
* subnet for the sole use of Network Firewall. </p>
|
|
391
|
-
* </li>
|
|
392
|
-
* <li>
|
|
393
|
-
* <p>In Network Firewall, create stateless and stateful rule groups,
|
|
394
|
-
* to define the components of the network traffic filtering behavior that you want your firewall to have. </p>
|
|
395
|
-
* </li>
|
|
396
|
-
* <li>
|
|
397
|
-
* <p>In Network Firewall, create a firewall policy that uses your rule groups and
|
|
398
|
-
* specifies additional default traffic filtering behavior. </p>
|
|
399
|
-
* </li>
|
|
400
|
-
* <li>
|
|
401
|
-
* <p>In Network Firewall, create a firewall and specify your new firewall policy and
|
|
402
|
-
* VPC subnets. Network Firewall creates a firewall endpoint in each subnet that you
|
|
403
|
-
* specify, with the behavior that's defined in the firewall policy.</p>
|
|
404
|
-
* </li>
|
|
405
|
-
* <li>
|
|
406
|
-
* <p>In Amazon VPC, use ingress routing enhancements to route traffic through the new firewall
|
|
407
|
-
* endpoints.</p>
|
|
408
|
-
* </li>
|
|
409
|
-
* </ol>
|
|
410
|
-
*/
|
|
411
|
-
export class NetworkFirewallClient extends __Client<
|
|
412
|
-
__HttpHandlerOptions,
|
|
413
|
-
ServiceInputTypes,
|
|
414
|
-
ServiceOutputTypes,
|
|
415
|
-
NetworkFirewallClientResolvedConfig
|
|
416
|
-
> {
|
|
417
|
-
/**
|
|
418
|
-
* The resolved configuration of NetworkFirewallClient class. This is resolved and normalized from the {@link NetworkFirewallClientConfig | constructor configuration interface}.
|
|
419
|
-
*/
|
|
420
|
-
readonly config: NetworkFirewallClientResolvedConfig;
|
|
421
|
-
|
|
422
|
-
constructor(configuration: NetworkFirewallClientConfig) {
|
|
423
|
-
const _config_0 = __getRuntimeConfig(configuration);
|
|
424
|
-
const _config_1 = resolveRegionConfig(_config_0);
|
|
425
|
-
const _config_2 = resolveEndpointsConfig(_config_1);
|
|
426
|
-
const _config_3 = resolveRetryConfig(_config_2);
|
|
427
|
-
const _config_4 = resolveHostHeaderConfig(_config_3);
|
|
428
|
-
const _config_5 = resolveAwsAuthConfig(_config_4);
|
|
429
|
-
const _config_6 = resolveUserAgentConfig(_config_5);
|
|
430
|
-
super(_config_6);
|
|
431
|
-
this.config = _config_6;
|
|
432
|
-
this.middlewareStack.use(getRetryPlugin(this.config));
|
|
433
|
-
this.middlewareStack.use(getContentLengthPlugin(this.config));
|
|
434
|
-
this.middlewareStack.use(getHostHeaderPlugin(this.config));
|
|
435
|
-
this.middlewareStack.use(getLoggerPlugin(this.config));
|
|
436
|
-
this.middlewareStack.use(getAwsAuthPlugin(this.config));
|
|
437
|
-
this.middlewareStack.use(getUserAgentPlugin(this.config));
|
|
438
|
-
}
|
|
439
|
-
|
|
440
|
-
/**
|
|
441
|
-
* Destroy underlying resources, like sockets. It's usually not necessary to do this.
|
|
442
|
-
* However in Node.js, it's best to explicitly shut down the client's agent when it is no longer needed.
|
|
443
|
-
* Otherwise, sockets might stay open for quite a long time before the server terminates them.
|
|
444
|
-
*/
|
|
445
|
-
destroy(): void {
|
|
446
|
-
super.destroy();
|
|
447
|
-
}
|
|
448
|
-
}
|
|
@@ -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 { AssociateFirewallPolicyRequest, AssociateFirewallPolicyResponse } from "../models/models_0";
|
|
15
|
-
import { NetworkFirewallClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes } from "../NetworkFirewallClient";
|
|
16
|
-
import {
|
|
17
|
-
deserializeAws_json1_0AssociateFirewallPolicyCommand,
|
|
18
|
-
serializeAws_json1_0AssociateFirewallPolicyCommand,
|
|
19
|
-
} from "../protocols/Aws_json1_0";
|
|
20
|
-
|
|
21
|
-
export interface AssociateFirewallPolicyCommandInput extends AssociateFirewallPolicyRequest {}
|
|
22
|
-
export interface AssociateFirewallPolicyCommandOutput extends AssociateFirewallPolicyResponse, __MetadataBearer {}
|
|
23
|
-
|
|
24
|
-
/**
|
|
25
|
-
* <p>Associates a <a>FirewallPolicy</a> to a <a>Firewall</a>. </p>
|
|
26
|
-
* <p>A firewall policy defines how to monitor and manage your VPC network traffic, using a
|
|
27
|
-
* collection of inspection rule groups and other settings. Each firewall requires one
|
|
28
|
-
* firewall policy association, and you can use the same firewall policy for multiple
|
|
29
|
-
* firewalls. </p>
|
|
30
|
-
* @example
|
|
31
|
-
* Use a bare-bones client and the command you need to make an API call.
|
|
32
|
-
* ```javascript
|
|
33
|
-
* import { NetworkFirewallClient, AssociateFirewallPolicyCommand } from "@aws-sdk/client-network-firewall"; // ES Modules import
|
|
34
|
-
* // const { NetworkFirewallClient, AssociateFirewallPolicyCommand } = require("@aws-sdk/client-network-firewall"); // CommonJS import
|
|
35
|
-
* const client = new NetworkFirewallClient(config);
|
|
36
|
-
* const command = new AssociateFirewallPolicyCommand(input);
|
|
37
|
-
* const response = await client.send(command);
|
|
38
|
-
* ```
|
|
39
|
-
*
|
|
40
|
-
* @see {@link AssociateFirewallPolicyCommandInput} for command's `input` shape.
|
|
41
|
-
* @see {@link AssociateFirewallPolicyCommandOutput} for command's `response` shape.
|
|
42
|
-
* @see {@link NetworkFirewallClientResolvedConfig | config} for command's `input` shape.
|
|
43
|
-
*
|
|
44
|
-
*/
|
|
45
|
-
export class AssociateFirewallPolicyCommand extends $Command<
|
|
46
|
-
AssociateFirewallPolicyCommandInput,
|
|
47
|
-
AssociateFirewallPolicyCommandOutput,
|
|
48
|
-
NetworkFirewallClientResolvedConfig
|
|
49
|
-
> {
|
|
50
|
-
// Start section: command_properties
|
|
51
|
-
// End section: command_properties
|
|
52
|
-
|
|
53
|
-
constructor(readonly input: AssociateFirewallPolicyCommandInput) {
|
|
54
|
-
// Start section: command_constructor
|
|
55
|
-
super();
|
|
56
|
-
// End section: command_constructor
|
|
57
|
-
}
|
|
58
|
-
|
|
59
|
-
/**
|
|
60
|
-
* @internal
|
|
61
|
-
*/
|
|
62
|
-
resolveMiddleware(
|
|
63
|
-
clientStack: MiddlewareStack<ServiceInputTypes, ServiceOutputTypes>,
|
|
64
|
-
configuration: NetworkFirewallClientResolvedConfig,
|
|
65
|
-
options?: __HttpHandlerOptions
|
|
66
|
-
): Handler<AssociateFirewallPolicyCommandInput, AssociateFirewallPolicyCommandOutput> {
|
|
67
|
-
this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize));
|
|
68
|
-
|
|
69
|
-
const stack = clientStack.concat(this.middlewareStack);
|
|
70
|
-
|
|
71
|
-
const { logger } = configuration;
|
|
72
|
-
const clientName = "NetworkFirewallClient";
|
|
73
|
-
const commandName = "AssociateFirewallPolicyCommand";
|
|
74
|
-
const handlerExecutionContext: HandlerExecutionContext = {
|
|
75
|
-
logger,
|
|
76
|
-
clientName,
|
|
77
|
-
commandName,
|
|
78
|
-
inputFilterSensitiveLog: AssociateFirewallPolicyRequest.filterSensitiveLog,
|
|
79
|
-
outputFilterSensitiveLog: AssociateFirewallPolicyResponse.filterSensitiveLog,
|
|
80
|
-
};
|
|
81
|
-
const { requestHandler } = configuration;
|
|
82
|
-
return stack.resolve(
|
|
83
|
-
(request: FinalizeHandlerArguments<any>) =>
|
|
84
|
-
requestHandler.handle(request.request as __HttpRequest, options || {}),
|
|
85
|
-
handlerExecutionContext
|
|
86
|
-
);
|
|
87
|
-
}
|
|
88
|
-
|
|
89
|
-
private serialize(input: AssociateFirewallPolicyCommandInput, context: __SerdeContext): Promise<__HttpRequest> {
|
|
90
|
-
return serializeAws_json1_0AssociateFirewallPolicyCommand(input, context);
|
|
91
|
-
}
|
|
92
|
-
|
|
93
|
-
private deserialize(output: __HttpResponse, context: __SerdeContext): Promise<AssociateFirewallPolicyCommandOutput> {
|
|
94
|
-
return deserializeAws_json1_0AssociateFirewallPolicyCommand(output, context);
|
|
95
|
-
}
|
|
96
|
-
|
|
97
|
-
// Start section: command_body_extra
|
|
98
|
-
// End section: command_body_extra
|
|
99
|
-
}
|
|
@@ -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 { AssociateSubnetsRequest, AssociateSubnetsResponse } from "../models/models_0";
|
|
15
|
-
import { NetworkFirewallClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes } from "../NetworkFirewallClient";
|
|
16
|
-
import {
|
|
17
|
-
deserializeAws_json1_0AssociateSubnetsCommand,
|
|
18
|
-
serializeAws_json1_0AssociateSubnetsCommand,
|
|
19
|
-
} from "../protocols/Aws_json1_0";
|
|
20
|
-
|
|
21
|
-
export interface AssociateSubnetsCommandInput extends AssociateSubnetsRequest {}
|
|
22
|
-
export interface AssociateSubnetsCommandOutput extends AssociateSubnetsResponse, __MetadataBearer {}
|
|
23
|
-
|
|
24
|
-
/**
|
|
25
|
-
* <p>Associates the specified subnets in the Amazon VPC to the firewall. You can specify one
|
|
26
|
-
* subnet for each of the Availability Zones that the VPC spans. </p>
|
|
27
|
-
* <p>This request creates an AWS Network Firewall firewall endpoint in each of the subnets. To
|
|
28
|
-
* enable the firewall's protections, you must also modify the VPC's route tables for each
|
|
29
|
-
* subnet's Availability Zone, to redirect the traffic that's coming into and going out of the
|
|
30
|
-
* zone through the firewall endpoint. </p>
|
|
31
|
-
* @example
|
|
32
|
-
* Use a bare-bones client and the command you need to make an API call.
|
|
33
|
-
* ```javascript
|
|
34
|
-
* import { NetworkFirewallClient, AssociateSubnetsCommand } from "@aws-sdk/client-network-firewall"; // ES Modules import
|
|
35
|
-
* // const { NetworkFirewallClient, AssociateSubnetsCommand } = require("@aws-sdk/client-network-firewall"); // CommonJS import
|
|
36
|
-
* const client = new NetworkFirewallClient(config);
|
|
37
|
-
* const command = new AssociateSubnetsCommand(input);
|
|
38
|
-
* const response = await client.send(command);
|
|
39
|
-
* ```
|
|
40
|
-
*
|
|
41
|
-
* @see {@link AssociateSubnetsCommandInput} for command's `input` shape.
|
|
42
|
-
* @see {@link AssociateSubnetsCommandOutput} for command's `response` shape.
|
|
43
|
-
* @see {@link NetworkFirewallClientResolvedConfig | config} for command's `input` shape.
|
|
44
|
-
*
|
|
45
|
-
*/
|
|
46
|
-
export class AssociateSubnetsCommand extends $Command<
|
|
47
|
-
AssociateSubnetsCommandInput,
|
|
48
|
-
AssociateSubnetsCommandOutput,
|
|
49
|
-
NetworkFirewallClientResolvedConfig
|
|
50
|
-
> {
|
|
51
|
-
// Start section: command_properties
|
|
52
|
-
// End section: command_properties
|
|
53
|
-
|
|
54
|
-
constructor(readonly input: AssociateSubnetsCommandInput) {
|
|
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<AssociateSubnetsCommandInput, AssociateSubnetsCommandOutput> {
|
|
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 = "AssociateSubnetsCommand";
|
|
75
|
-
const handlerExecutionContext: HandlerExecutionContext = {
|
|
76
|
-
logger,
|
|
77
|
-
clientName,
|
|
78
|
-
commandName,
|
|
79
|
-
inputFilterSensitiveLog: AssociateSubnetsRequest.filterSensitiveLog,
|
|
80
|
-
outputFilterSensitiveLog: AssociateSubnetsResponse.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(input: AssociateSubnetsCommandInput, context: __SerdeContext): Promise<__HttpRequest> {
|
|
91
|
-
return serializeAws_json1_0AssociateSubnetsCommand(input, context);
|
|
92
|
-
}
|
|
93
|
-
|
|
94
|
-
private deserialize(output: __HttpResponse, context: __SerdeContext): Promise<AssociateSubnetsCommandOutput> {
|
|
95
|
-
return deserializeAws_json1_0AssociateSubnetsCommand(output, context);
|
|
96
|
-
}
|
|
97
|
-
|
|
98
|
-
// Start section: command_body_extra
|
|
99
|
-
// End section: command_body_extra
|
|
100
|
-
}
|