@aws-sdk/client-network-firewall 3.300.0 → 3.303.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +40 -0
- package/dist-cjs/NetworkFirewall.js +75 -0
- package/dist-cjs/commands/CreateTLSInspectionConfigurationCommand.js +45 -0
- package/dist-cjs/commands/DeleteTLSInspectionConfigurationCommand.js +45 -0
- package/dist-cjs/commands/DescribeTLSInspectionConfigurationCommand.js +45 -0
- package/dist-cjs/commands/ListTLSInspectionConfigurationsCommand.js +45 -0
- package/dist-cjs/commands/UpdateTLSInspectionConfigurationCommand.js +45 -0
- package/dist-cjs/commands/index.js +5 -0
- package/dist-cjs/endpoint/ruleset.js +3 -3
- package/dist-cjs/models/models_0.js +114 -135
- package/dist-cjs/pagination/ListTLSInspectionConfigurationsPaginator.js +29 -0
- package/dist-cjs/pagination/index.js +1 -0
- package/dist-cjs/protocols/Aws_json1_0.js +540 -2
- package/dist-es/NetworkFirewall.js +75 -0
- package/dist-es/commands/CreateTLSInspectionConfigurationCommand.js +41 -0
- package/dist-es/commands/DeleteTLSInspectionConfigurationCommand.js +41 -0
- package/dist-es/commands/DescribeTLSInspectionConfigurationCommand.js +41 -0
- package/dist-es/commands/ListTLSInspectionConfigurationsCommand.js +41 -0
- package/dist-es/commands/UpdateTLSInspectionConfigurationCommand.js +41 -0
- package/dist-es/commands/index.js +5 -0
- package/dist-es/endpoint/ruleset.js +3 -3
- package/dist-es/models/models_0.js +114 -135
- package/dist-es/pagination/ListTLSInspectionConfigurationsPaginator.js +25 -0
- package/dist-es/pagination/index.js +1 -0
- package/dist-es/protocols/Aws_json1_0.js +528 -0
- package/dist-types/NetworkFirewall.d.ts +53 -0
- package/dist-types/NetworkFirewallClient.d.ts +7 -2
- package/dist-types/commands/AssociateFirewallPolicyCommand.d.ts +1 -1
- package/dist-types/commands/AssociateSubnetsCommand.d.ts +3 -3
- package/dist-types/commands/CreateFirewallCommand.d.ts +6 -6
- package/dist-types/commands/CreateFirewallPolicyCommand.d.ts +20 -19
- package/dist-types/commands/CreateRuleGroupCommand.d.ts +46 -46
- package/dist-types/commands/CreateTLSInspectionConfigurationCommand.d.ts +145 -0
- package/dist-types/commands/DeleteFirewallCommand.d.ts +1 -1
- package/dist-types/commands/DeleteFirewallPolicyCommand.d.ts +1 -1
- package/dist-types/commands/DeleteResourcePolicyCommand.d.ts +1 -1
- package/dist-types/commands/DeleteRuleGroupCommand.d.ts +1 -1
- package/dist-types/commands/DeleteTLSInspectionConfigurationCommand.d.ts +94 -0
- package/dist-types/commands/DescribeFirewallCommand.d.ts +1 -1
- package/dist-types/commands/DescribeFirewallPolicyCommand.d.ts +1 -1
- package/dist-types/commands/DescribeLoggingConfigurationCommand.d.ts +1 -1
- package/dist-types/commands/DescribeResourcePolicyCommand.d.ts +1 -1
- package/dist-types/commands/DescribeRuleGroupCommand.d.ts +1 -1
- package/dist-types/commands/DescribeRuleGroupMetadataCommand.d.ts +1 -1
- package/dist-types/commands/DescribeTLSInspectionConfigurationCommand.d.ts +90 -0
- package/dist-types/commands/DisassociateSubnetsCommand.d.ts +2 -2
- package/dist-types/commands/ListFirewallPoliciesCommand.d.ts +1 -1
- package/dist-types/commands/ListFirewallsCommand.d.ts +2 -2
- package/dist-types/commands/ListRuleGroupsCommand.d.ts +1 -1
- package/dist-types/commands/ListTLSInspectionConfigurationsCommand.d.ts +87 -0
- package/dist-types/commands/ListTagsForResourceCommand.d.ts +1 -1
- package/dist-types/commands/PutResourcePolicyCommand.d.ts +1 -1
- package/dist-types/commands/TagResourceCommand.d.ts +3 -3
- package/dist-types/commands/UntagResourceCommand.d.ts +2 -2
- package/dist-types/commands/UpdateFirewallDeleteProtectionCommand.d.ts +1 -1
- package/dist-types/commands/UpdateFirewallDescriptionCommand.d.ts +1 -1
- package/dist-types/commands/UpdateFirewallEncryptionConfigurationCommand.d.ts +2 -2
- package/dist-types/commands/UpdateFirewallPolicyChangeProtectionCommand.d.ts +1 -1
- package/dist-types/commands/UpdateFirewallPolicyCommand.d.ts +18 -17
- package/dist-types/commands/UpdateLoggingConfigurationCommand.d.ts +5 -5
- package/dist-types/commands/UpdateRuleGroupCommand.d.ts +44 -44
- package/dist-types/commands/UpdateSubnetChangeProtectionCommand.d.ts +1 -1
- package/dist-types/commands/UpdateTLSInspectionConfigurationCommand.d.ts +144 -0
- package/dist-types/commands/index.d.ts +5 -0
- package/dist-types/endpoint/EndpointParameters.d.ts +1 -1
- package/dist-types/models/models_0.d.ts +558 -115
- package/dist-types/pagination/ListTLSInspectionConfigurationsPaginator.d.ts +7 -0
- package/dist-types/pagination/index.d.ts +1 -0
- package/dist-types/protocols/Aws_json1_0.d.ts +15 -0
- package/dist-types/ts3.4/NetworkFirewall.d.ts +91 -0
- package/dist-types/ts3.4/NetworkFirewallClient.d.ts +32 -2
- package/dist-types/ts3.4/commands/CreateTLSInspectionConfigurationCommand.d.ts +41 -0
- package/dist-types/ts3.4/commands/DeleteTLSInspectionConfigurationCommand.d.ts +41 -0
- package/dist-types/ts3.4/commands/DescribeTLSInspectionConfigurationCommand.d.ts +41 -0
- package/dist-types/ts3.4/commands/ListTLSInspectionConfigurationsCommand.d.ts +41 -0
- package/dist-types/ts3.4/commands/UpdateTLSInspectionConfigurationCommand.d.ts +41 -0
- package/dist-types/ts3.4/commands/index.d.ts +5 -0
- package/dist-types/ts3.4/endpoint/EndpointParameters.d.ts +1 -1
- package/dist-types/ts3.4/models/models_0.d.ts +244 -113
- package/dist-types/ts3.4/pagination/ListTLSInspectionConfigurationsPaginator.d.ts +11 -0
- package/dist-types/ts3.4/pagination/index.d.ts +1 -0
- package/dist-types/ts3.4/protocols/Aws_json1_0.d.ts +60 -0
- package/package.json +34 -34
|
@@ -77,11 +77,10 @@ export class ThrottlingException extends __BaseException {
|
|
|
77
77
|
this.Message = opts.Message;
|
|
78
78
|
}
|
|
79
79
|
}
|
|
80
|
-
export
|
|
81
|
-
|
|
82
|
-
|
|
83
|
-
|
|
84
|
-
})(IPAddressType || (IPAddressType = {}));
|
|
80
|
+
export const IPAddressType = {
|
|
81
|
+
DUALSTACK: "DUALSTACK",
|
|
82
|
+
IPV4: "IPV4",
|
|
83
|
+
};
|
|
85
84
|
export class InsufficientCapacityException extends __BaseException {
|
|
86
85
|
constructor(opts) {
|
|
87
86
|
super({
|
|
@@ -95,36 +94,31 @@ export class InsufficientCapacityException extends __BaseException {
|
|
|
95
94
|
this.Message = opts.Message;
|
|
96
95
|
}
|
|
97
96
|
}
|
|
98
|
-
export
|
|
99
|
-
|
|
100
|
-
|
|
101
|
-
|
|
102
|
-
|
|
103
|
-
|
|
104
|
-
|
|
105
|
-
|
|
106
|
-
|
|
107
|
-
|
|
108
|
-
|
|
109
|
-
|
|
110
|
-
|
|
111
|
-
|
|
112
|
-
|
|
113
|
-
|
|
114
|
-
|
|
115
|
-
|
|
116
|
-
|
|
117
|
-
|
|
118
|
-
|
|
119
|
-
|
|
120
|
-
|
|
121
|
-
|
|
122
|
-
|
|
123
|
-
(function (PerObjectSyncStatus) {
|
|
124
|
-
PerObjectSyncStatus["CAPACITY_CONSTRAINED"] = "CAPACITY_CONSTRAINED";
|
|
125
|
-
PerObjectSyncStatus["IN_SYNC"] = "IN_SYNC";
|
|
126
|
-
PerObjectSyncStatus["PENDING"] = "PENDING";
|
|
127
|
-
})(PerObjectSyncStatus || (PerObjectSyncStatus = {}));
|
|
97
|
+
export const AttachmentStatus = {
|
|
98
|
+
CREATING: "CREATING",
|
|
99
|
+
DELETING: "DELETING",
|
|
100
|
+
READY: "READY",
|
|
101
|
+
SCALING: "SCALING",
|
|
102
|
+
};
|
|
103
|
+
export const ConfigurationSyncState = {
|
|
104
|
+
CAPACITY_CONSTRAINED: "CAPACITY_CONSTRAINED",
|
|
105
|
+
IN_SYNC: "IN_SYNC",
|
|
106
|
+
PENDING: "PENDING",
|
|
107
|
+
};
|
|
108
|
+
export const EncryptionType = {
|
|
109
|
+
AWS_OWNED_KMS_KEY: "AWS_OWNED_KMS_KEY",
|
|
110
|
+
CUSTOMER_KMS: "CUSTOMER_KMS",
|
|
111
|
+
};
|
|
112
|
+
export const FirewallStatusValue = {
|
|
113
|
+
DELETING: "DELETING",
|
|
114
|
+
PROVISIONING: "PROVISIONING",
|
|
115
|
+
READY: "READY",
|
|
116
|
+
};
|
|
117
|
+
export const PerObjectSyncStatus = {
|
|
118
|
+
CAPACITY_CONSTRAINED: "CAPACITY_CONSTRAINED",
|
|
119
|
+
IN_SYNC: "IN_SYNC",
|
|
120
|
+
PENDING: "PENDING",
|
|
121
|
+
};
|
|
128
122
|
export class LimitExceededException extends __BaseException {
|
|
129
123
|
constructor(opts) {
|
|
130
124
|
super({
|
|
@@ -138,85 +132,74 @@ export class LimitExceededException extends __BaseException {
|
|
|
138
132
|
this.Message = opts.Message;
|
|
139
133
|
}
|
|
140
134
|
}
|
|
141
|
-
export
|
|
142
|
-
|
|
143
|
-
|
|
144
|
-
|
|
145
|
-
|
|
146
|
-
|
|
147
|
-
|
|
148
|
-
|
|
149
|
-
|
|
150
|
-
|
|
151
|
-
|
|
152
|
-
|
|
153
|
-
|
|
154
|
-
|
|
155
|
-
|
|
156
|
-
|
|
157
|
-
|
|
158
|
-
|
|
159
|
-
}
|
|
160
|
-
export
|
|
161
|
-
|
|
162
|
-
|
|
163
|
-
|
|
164
|
-
|
|
165
|
-
|
|
166
|
-
|
|
167
|
-
|
|
168
|
-
|
|
169
|
-
}
|
|
170
|
-
export
|
|
171
|
-
|
|
172
|
-
|
|
173
|
-
|
|
174
|
-
|
|
175
|
-
|
|
176
|
-
|
|
177
|
-
|
|
178
|
-
|
|
179
|
-
|
|
180
|
-
|
|
181
|
-
|
|
182
|
-
|
|
183
|
-
|
|
184
|
-
|
|
185
|
-
|
|
186
|
-
|
|
187
|
-
|
|
188
|
-
|
|
189
|
-
|
|
190
|
-
|
|
191
|
-
|
|
192
|
-
|
|
193
|
-
|
|
194
|
-
|
|
195
|
-
|
|
196
|
-
|
|
197
|
-
|
|
198
|
-
|
|
199
|
-
|
|
200
|
-
|
|
201
|
-
|
|
202
|
-
|
|
203
|
-
|
|
204
|
-
|
|
205
|
-
|
|
206
|
-
|
|
207
|
-
|
|
208
|
-
|
|
209
|
-
TCPFlag["FIN"] = "FIN";
|
|
210
|
-
TCPFlag["PSH"] = "PSH";
|
|
211
|
-
TCPFlag["RST"] = "RST";
|
|
212
|
-
TCPFlag["SYN"] = "SYN";
|
|
213
|
-
TCPFlag["URG"] = "URG";
|
|
214
|
-
})(TCPFlag || (TCPFlag = {}));
|
|
215
|
-
export var RuleGroupType;
|
|
216
|
-
(function (RuleGroupType) {
|
|
217
|
-
RuleGroupType["STATEFUL"] = "STATEFUL";
|
|
218
|
-
RuleGroupType["STATELESS"] = "STATELESS";
|
|
219
|
-
})(RuleGroupType || (RuleGroupType = {}));
|
|
135
|
+
export const RuleOrder = {
|
|
136
|
+
DEFAULT_ACTION_ORDER: "DEFAULT_ACTION_ORDER",
|
|
137
|
+
STRICT_ORDER: "STRICT_ORDER",
|
|
138
|
+
};
|
|
139
|
+
export const StreamExceptionPolicy = {
|
|
140
|
+
CONTINUE: "CONTINUE",
|
|
141
|
+
DROP: "DROP",
|
|
142
|
+
};
|
|
143
|
+
export const OverrideAction = {
|
|
144
|
+
DROP_TO_ALERT: "DROP_TO_ALERT",
|
|
145
|
+
};
|
|
146
|
+
export const ResourceStatus = {
|
|
147
|
+
ACTIVE: "ACTIVE",
|
|
148
|
+
DELETING: "DELETING",
|
|
149
|
+
};
|
|
150
|
+
export const GeneratedRulesType = {
|
|
151
|
+
ALLOWLIST: "ALLOWLIST",
|
|
152
|
+
DENYLIST: "DENYLIST",
|
|
153
|
+
};
|
|
154
|
+
export const TargetType = {
|
|
155
|
+
HTTP_HOST: "HTTP_HOST",
|
|
156
|
+
TLS_SNI: "TLS_SNI",
|
|
157
|
+
};
|
|
158
|
+
export const StatefulAction = {
|
|
159
|
+
ALERT: "ALERT",
|
|
160
|
+
DROP: "DROP",
|
|
161
|
+
PASS: "PASS",
|
|
162
|
+
REJECT: "REJECT",
|
|
163
|
+
};
|
|
164
|
+
export const StatefulRuleDirection = {
|
|
165
|
+
ANY: "ANY",
|
|
166
|
+
FORWARD: "FORWARD",
|
|
167
|
+
};
|
|
168
|
+
export const StatefulRuleProtocol = {
|
|
169
|
+
ANY: "IP",
|
|
170
|
+
DCERPC: "DCERPC",
|
|
171
|
+
DHCP: "DHCP",
|
|
172
|
+
DNS: "DNS",
|
|
173
|
+
FTP: "FTP",
|
|
174
|
+
HTTP: "HTTP",
|
|
175
|
+
ICMP: "ICMP",
|
|
176
|
+
IKEV2: "IKEV2",
|
|
177
|
+
IMAP: "IMAP",
|
|
178
|
+
KRB5: "KRB5",
|
|
179
|
+
MSN: "MSN",
|
|
180
|
+
NTP: "NTP",
|
|
181
|
+
SMB: "SMB",
|
|
182
|
+
SMTP: "SMTP",
|
|
183
|
+
SSH: "SSH",
|
|
184
|
+
TCP: "TCP",
|
|
185
|
+
TFTP: "TFTP",
|
|
186
|
+
TLS: "TLS",
|
|
187
|
+
UDP: "UDP",
|
|
188
|
+
};
|
|
189
|
+
export const TCPFlag = {
|
|
190
|
+
ACK: "ACK",
|
|
191
|
+
CWR: "CWR",
|
|
192
|
+
ECE: "ECE",
|
|
193
|
+
FIN: "FIN",
|
|
194
|
+
PSH: "PSH",
|
|
195
|
+
RST: "RST",
|
|
196
|
+
SYN: "SYN",
|
|
197
|
+
URG: "URG",
|
|
198
|
+
};
|
|
199
|
+
export const RuleGroupType = {
|
|
200
|
+
STATEFUL: "STATEFUL",
|
|
201
|
+
STATELESS: "STATELESS",
|
|
202
|
+
};
|
|
220
203
|
export class UnsupportedOperationException extends __BaseException {
|
|
221
204
|
constructor(opts) {
|
|
222
205
|
super({
|
|
@@ -243,27 +226,23 @@ export class InvalidResourcePolicyException extends __BaseException {
|
|
|
243
226
|
this.Message = opts.Message;
|
|
244
227
|
}
|
|
245
228
|
}
|
|
246
|
-
export
|
|
247
|
-
|
|
248
|
-
|
|
249
|
-
|
|
250
|
-
|
|
251
|
-
|
|
252
|
-
|
|
253
|
-
|
|
254
|
-
|
|
255
|
-
|
|
256
|
-
|
|
257
|
-
|
|
258
|
-
|
|
259
|
-
|
|
260
|
-
|
|
261
|
-
|
|
262
|
-
|
|
263
|
-
(function (ResourceManagedStatus) {
|
|
264
|
-
ResourceManagedStatus["ACCOUNT"] = "ACCOUNT";
|
|
265
|
-
ResourceManagedStatus["MANAGED"] = "MANAGED";
|
|
266
|
-
})(ResourceManagedStatus || (ResourceManagedStatus = {}));
|
|
229
|
+
export const LogDestinationType = {
|
|
230
|
+
CLOUDWATCH_LOGS: "CloudWatchLogs",
|
|
231
|
+
KINESIS_DATA_FIREHOSE: "KinesisDataFirehose",
|
|
232
|
+
S3: "S3",
|
|
233
|
+
};
|
|
234
|
+
export const LogType = {
|
|
235
|
+
ALERT: "ALERT",
|
|
236
|
+
FLOW: "FLOW",
|
|
237
|
+
};
|
|
238
|
+
export const ResourceManagedType = {
|
|
239
|
+
AWS_MANAGED_DOMAIN_LISTS: "AWS_MANAGED_DOMAIN_LISTS",
|
|
240
|
+
AWS_MANAGED_THREAT_SIGNATURES: "AWS_MANAGED_THREAT_SIGNATURES",
|
|
241
|
+
};
|
|
242
|
+
export const ResourceManagedStatus = {
|
|
243
|
+
ACCOUNT: "ACCOUNT",
|
|
244
|
+
MANAGED: "MANAGED",
|
|
245
|
+
};
|
|
267
246
|
export class LogDestinationPermissionException extends __BaseException {
|
|
268
247
|
constructor(opts) {
|
|
269
248
|
super({
|
|
@@ -0,0 +1,25 @@
|
|
|
1
|
+
import { ListTLSInspectionConfigurationsCommand, } from "../commands/ListTLSInspectionConfigurationsCommand";
|
|
2
|
+
import { NetworkFirewallClient } from "../NetworkFirewallClient";
|
|
3
|
+
const makePagedClientRequest = async (client, input, ...args) => {
|
|
4
|
+
return await client.send(new ListTLSInspectionConfigurationsCommand(input), ...args);
|
|
5
|
+
};
|
|
6
|
+
export async function* paginateListTLSInspectionConfigurations(config, input, ...additionalArguments) {
|
|
7
|
+
let token = config.startingToken || undefined;
|
|
8
|
+
let hasNext = true;
|
|
9
|
+
let page;
|
|
10
|
+
while (hasNext) {
|
|
11
|
+
input.NextToken = token;
|
|
12
|
+
input["MaxResults"] = config.pageSize;
|
|
13
|
+
if (config.client instanceof NetworkFirewallClient) {
|
|
14
|
+
page = await makePagedClientRequest(config.client, input, ...additionalArguments);
|
|
15
|
+
}
|
|
16
|
+
else {
|
|
17
|
+
throw new Error("Invalid client, expected NetworkFirewall | NetworkFirewallClient");
|
|
18
|
+
}
|
|
19
|
+
yield page;
|
|
20
|
+
const prevToken = token;
|
|
21
|
+
token = page.NextToken;
|
|
22
|
+
hasNext = !!(token && (!config.stopOnSameToken || token !== prevToken));
|
|
23
|
+
}
|
|
24
|
+
return undefined;
|
|
25
|
+
}
|
|
@@ -2,4 +2,5 @@ export * from "./Interfaces";
|
|
|
2
2
|
export * from "./ListFirewallPoliciesPaginator";
|
|
3
3
|
export * from "./ListFirewallsPaginator";
|
|
4
4
|
export * from "./ListRuleGroupsPaginator";
|
|
5
|
+
export * from "./ListTLSInspectionConfigurationsPaginator";
|
|
5
6
|
export * from "./ListTagsForResourcePaginator";
|