@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
|
@@ -86,11 +86,10 @@ class ThrottlingException extends NetworkFirewallServiceException_1.NetworkFirew
|
|
|
86
86
|
}
|
|
87
87
|
}
|
|
88
88
|
exports.ThrottlingException = ThrottlingException;
|
|
89
|
-
|
|
90
|
-
|
|
91
|
-
|
|
92
|
-
|
|
93
|
-
})(IPAddressType = exports.IPAddressType || (exports.IPAddressType = {}));
|
|
89
|
+
exports.IPAddressType = {
|
|
90
|
+
DUALSTACK: "DUALSTACK",
|
|
91
|
+
IPV4: "IPV4",
|
|
92
|
+
};
|
|
94
93
|
class InsufficientCapacityException extends NetworkFirewallServiceException_1.NetworkFirewallServiceException {
|
|
95
94
|
constructor(opts) {
|
|
96
95
|
super({
|
|
@@ -105,36 +104,31 @@ class InsufficientCapacityException extends NetworkFirewallServiceException_1.Ne
|
|
|
105
104
|
}
|
|
106
105
|
}
|
|
107
106
|
exports.InsufficientCapacityException = InsufficientCapacityException;
|
|
108
|
-
|
|
109
|
-
|
|
110
|
-
|
|
111
|
-
|
|
112
|
-
|
|
113
|
-
|
|
114
|
-
|
|
115
|
-
|
|
116
|
-
|
|
117
|
-
|
|
118
|
-
|
|
119
|
-
|
|
120
|
-
|
|
121
|
-
|
|
122
|
-
|
|
123
|
-
|
|
124
|
-
|
|
125
|
-
|
|
126
|
-
|
|
127
|
-
|
|
128
|
-
|
|
129
|
-
|
|
130
|
-
|
|
131
|
-
|
|
132
|
-
|
|
133
|
-
(function (PerObjectSyncStatus) {
|
|
134
|
-
PerObjectSyncStatus["CAPACITY_CONSTRAINED"] = "CAPACITY_CONSTRAINED";
|
|
135
|
-
PerObjectSyncStatus["IN_SYNC"] = "IN_SYNC";
|
|
136
|
-
PerObjectSyncStatus["PENDING"] = "PENDING";
|
|
137
|
-
})(PerObjectSyncStatus = exports.PerObjectSyncStatus || (exports.PerObjectSyncStatus = {}));
|
|
107
|
+
exports.AttachmentStatus = {
|
|
108
|
+
CREATING: "CREATING",
|
|
109
|
+
DELETING: "DELETING",
|
|
110
|
+
READY: "READY",
|
|
111
|
+
SCALING: "SCALING",
|
|
112
|
+
};
|
|
113
|
+
exports.ConfigurationSyncState = {
|
|
114
|
+
CAPACITY_CONSTRAINED: "CAPACITY_CONSTRAINED",
|
|
115
|
+
IN_SYNC: "IN_SYNC",
|
|
116
|
+
PENDING: "PENDING",
|
|
117
|
+
};
|
|
118
|
+
exports.EncryptionType = {
|
|
119
|
+
AWS_OWNED_KMS_KEY: "AWS_OWNED_KMS_KEY",
|
|
120
|
+
CUSTOMER_KMS: "CUSTOMER_KMS",
|
|
121
|
+
};
|
|
122
|
+
exports.FirewallStatusValue = {
|
|
123
|
+
DELETING: "DELETING",
|
|
124
|
+
PROVISIONING: "PROVISIONING",
|
|
125
|
+
READY: "READY",
|
|
126
|
+
};
|
|
127
|
+
exports.PerObjectSyncStatus = {
|
|
128
|
+
CAPACITY_CONSTRAINED: "CAPACITY_CONSTRAINED",
|
|
129
|
+
IN_SYNC: "IN_SYNC",
|
|
130
|
+
PENDING: "PENDING",
|
|
131
|
+
};
|
|
138
132
|
class LimitExceededException extends NetworkFirewallServiceException_1.NetworkFirewallServiceException {
|
|
139
133
|
constructor(opts) {
|
|
140
134
|
super({
|
|
@@ -149,85 +143,74 @@ class LimitExceededException extends NetworkFirewallServiceException_1.NetworkFi
|
|
|
149
143
|
}
|
|
150
144
|
}
|
|
151
145
|
exports.LimitExceededException = LimitExceededException;
|
|
152
|
-
|
|
153
|
-
|
|
154
|
-
|
|
155
|
-
|
|
156
|
-
|
|
157
|
-
|
|
158
|
-
|
|
159
|
-
|
|
160
|
-
|
|
161
|
-
|
|
162
|
-
|
|
163
|
-
|
|
164
|
-
|
|
165
|
-
|
|
166
|
-
|
|
167
|
-
|
|
168
|
-
|
|
169
|
-
|
|
170
|
-
}
|
|
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
|
-
|
|
210
|
-
|
|
211
|
-
|
|
212
|
-
|
|
213
|
-
|
|
214
|
-
|
|
215
|
-
|
|
216
|
-
|
|
217
|
-
|
|
218
|
-
|
|
219
|
-
|
|
220
|
-
TCPFlag["FIN"] = "FIN";
|
|
221
|
-
TCPFlag["PSH"] = "PSH";
|
|
222
|
-
TCPFlag["RST"] = "RST";
|
|
223
|
-
TCPFlag["SYN"] = "SYN";
|
|
224
|
-
TCPFlag["URG"] = "URG";
|
|
225
|
-
})(TCPFlag = exports.TCPFlag || (exports.TCPFlag = {}));
|
|
226
|
-
var RuleGroupType;
|
|
227
|
-
(function (RuleGroupType) {
|
|
228
|
-
RuleGroupType["STATEFUL"] = "STATEFUL";
|
|
229
|
-
RuleGroupType["STATELESS"] = "STATELESS";
|
|
230
|
-
})(RuleGroupType = exports.RuleGroupType || (exports.RuleGroupType = {}));
|
|
146
|
+
exports.RuleOrder = {
|
|
147
|
+
DEFAULT_ACTION_ORDER: "DEFAULT_ACTION_ORDER",
|
|
148
|
+
STRICT_ORDER: "STRICT_ORDER",
|
|
149
|
+
};
|
|
150
|
+
exports.StreamExceptionPolicy = {
|
|
151
|
+
CONTINUE: "CONTINUE",
|
|
152
|
+
DROP: "DROP",
|
|
153
|
+
};
|
|
154
|
+
exports.OverrideAction = {
|
|
155
|
+
DROP_TO_ALERT: "DROP_TO_ALERT",
|
|
156
|
+
};
|
|
157
|
+
exports.ResourceStatus = {
|
|
158
|
+
ACTIVE: "ACTIVE",
|
|
159
|
+
DELETING: "DELETING",
|
|
160
|
+
};
|
|
161
|
+
exports.GeneratedRulesType = {
|
|
162
|
+
ALLOWLIST: "ALLOWLIST",
|
|
163
|
+
DENYLIST: "DENYLIST",
|
|
164
|
+
};
|
|
165
|
+
exports.TargetType = {
|
|
166
|
+
HTTP_HOST: "HTTP_HOST",
|
|
167
|
+
TLS_SNI: "TLS_SNI",
|
|
168
|
+
};
|
|
169
|
+
exports.StatefulAction = {
|
|
170
|
+
ALERT: "ALERT",
|
|
171
|
+
DROP: "DROP",
|
|
172
|
+
PASS: "PASS",
|
|
173
|
+
REJECT: "REJECT",
|
|
174
|
+
};
|
|
175
|
+
exports.StatefulRuleDirection = {
|
|
176
|
+
ANY: "ANY",
|
|
177
|
+
FORWARD: "FORWARD",
|
|
178
|
+
};
|
|
179
|
+
exports.StatefulRuleProtocol = {
|
|
180
|
+
ANY: "IP",
|
|
181
|
+
DCERPC: "DCERPC",
|
|
182
|
+
DHCP: "DHCP",
|
|
183
|
+
DNS: "DNS",
|
|
184
|
+
FTP: "FTP",
|
|
185
|
+
HTTP: "HTTP",
|
|
186
|
+
ICMP: "ICMP",
|
|
187
|
+
IKEV2: "IKEV2",
|
|
188
|
+
IMAP: "IMAP",
|
|
189
|
+
KRB5: "KRB5",
|
|
190
|
+
MSN: "MSN",
|
|
191
|
+
NTP: "NTP",
|
|
192
|
+
SMB: "SMB",
|
|
193
|
+
SMTP: "SMTP",
|
|
194
|
+
SSH: "SSH",
|
|
195
|
+
TCP: "TCP",
|
|
196
|
+
TFTP: "TFTP",
|
|
197
|
+
TLS: "TLS",
|
|
198
|
+
UDP: "UDP",
|
|
199
|
+
};
|
|
200
|
+
exports.TCPFlag = {
|
|
201
|
+
ACK: "ACK",
|
|
202
|
+
CWR: "CWR",
|
|
203
|
+
ECE: "ECE",
|
|
204
|
+
FIN: "FIN",
|
|
205
|
+
PSH: "PSH",
|
|
206
|
+
RST: "RST",
|
|
207
|
+
SYN: "SYN",
|
|
208
|
+
URG: "URG",
|
|
209
|
+
};
|
|
210
|
+
exports.RuleGroupType = {
|
|
211
|
+
STATEFUL: "STATEFUL",
|
|
212
|
+
STATELESS: "STATELESS",
|
|
213
|
+
};
|
|
231
214
|
class UnsupportedOperationException extends NetworkFirewallServiceException_1.NetworkFirewallServiceException {
|
|
232
215
|
constructor(opts) {
|
|
233
216
|
super({
|
|
@@ -256,27 +239,23 @@ class InvalidResourcePolicyException extends NetworkFirewallServiceException_1.N
|
|
|
256
239
|
}
|
|
257
240
|
}
|
|
258
241
|
exports.InvalidResourcePolicyException = InvalidResourcePolicyException;
|
|
259
|
-
|
|
260
|
-
|
|
261
|
-
|
|
262
|
-
|
|
263
|
-
|
|
264
|
-
|
|
265
|
-
|
|
266
|
-
|
|
267
|
-
|
|
268
|
-
|
|
269
|
-
|
|
270
|
-
|
|
271
|
-
|
|
272
|
-
|
|
273
|
-
|
|
274
|
-
|
|
275
|
-
|
|
276
|
-
(function (ResourceManagedStatus) {
|
|
277
|
-
ResourceManagedStatus["ACCOUNT"] = "ACCOUNT";
|
|
278
|
-
ResourceManagedStatus["MANAGED"] = "MANAGED";
|
|
279
|
-
})(ResourceManagedStatus = exports.ResourceManagedStatus || (exports.ResourceManagedStatus = {}));
|
|
242
|
+
exports.LogDestinationType = {
|
|
243
|
+
CLOUDWATCH_LOGS: "CloudWatchLogs",
|
|
244
|
+
KINESIS_DATA_FIREHOSE: "KinesisDataFirehose",
|
|
245
|
+
S3: "S3",
|
|
246
|
+
};
|
|
247
|
+
exports.LogType = {
|
|
248
|
+
ALERT: "ALERT",
|
|
249
|
+
FLOW: "FLOW",
|
|
250
|
+
};
|
|
251
|
+
exports.ResourceManagedType = {
|
|
252
|
+
AWS_MANAGED_DOMAIN_LISTS: "AWS_MANAGED_DOMAIN_LISTS",
|
|
253
|
+
AWS_MANAGED_THREAT_SIGNATURES: "AWS_MANAGED_THREAT_SIGNATURES",
|
|
254
|
+
};
|
|
255
|
+
exports.ResourceManagedStatus = {
|
|
256
|
+
ACCOUNT: "ACCOUNT",
|
|
257
|
+
MANAGED: "MANAGED",
|
|
258
|
+
};
|
|
280
259
|
class LogDestinationPermissionException extends NetworkFirewallServiceException_1.NetworkFirewallServiceException {
|
|
281
260
|
constructor(opts) {
|
|
282
261
|
super({
|
|
@@ -0,0 +1,29 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.paginateListTLSInspectionConfigurations = void 0;
|
|
4
|
+
const ListTLSInspectionConfigurationsCommand_1 = require("../commands/ListTLSInspectionConfigurationsCommand");
|
|
5
|
+
const NetworkFirewallClient_1 = require("../NetworkFirewallClient");
|
|
6
|
+
const makePagedClientRequest = async (client, input, ...args) => {
|
|
7
|
+
return await client.send(new ListTLSInspectionConfigurationsCommand_1.ListTLSInspectionConfigurationsCommand(input), ...args);
|
|
8
|
+
};
|
|
9
|
+
async function* paginateListTLSInspectionConfigurations(config, input, ...additionalArguments) {
|
|
10
|
+
let token = config.startingToken || undefined;
|
|
11
|
+
let hasNext = true;
|
|
12
|
+
let page;
|
|
13
|
+
while (hasNext) {
|
|
14
|
+
input.NextToken = token;
|
|
15
|
+
input["MaxResults"] = config.pageSize;
|
|
16
|
+
if (config.client instanceof NetworkFirewallClient_1.NetworkFirewallClient) {
|
|
17
|
+
page = await makePagedClientRequest(config.client, input, ...additionalArguments);
|
|
18
|
+
}
|
|
19
|
+
else {
|
|
20
|
+
throw new Error("Invalid client, expected NetworkFirewall | NetworkFirewallClient");
|
|
21
|
+
}
|
|
22
|
+
yield page;
|
|
23
|
+
const prevToken = token;
|
|
24
|
+
token = page.NextToken;
|
|
25
|
+
hasNext = !!(token && (!config.stopOnSameToken || token !== prevToken));
|
|
26
|
+
}
|
|
27
|
+
return undefined;
|
|
28
|
+
}
|
|
29
|
+
exports.paginateListTLSInspectionConfigurations = paginateListTLSInspectionConfigurations;
|
|
@@ -5,4 +5,5 @@ tslib_1.__exportStar(require("./Interfaces"), exports);
|
|
|
5
5
|
tslib_1.__exportStar(require("./ListFirewallPoliciesPaginator"), exports);
|
|
6
6
|
tslib_1.__exportStar(require("./ListFirewallsPaginator"), exports);
|
|
7
7
|
tslib_1.__exportStar(require("./ListRuleGroupsPaginator"), exports);
|
|
8
|
+
tslib_1.__exportStar(require("./ListTLSInspectionConfigurationsPaginator"), exports);
|
|
8
9
|
tslib_1.__exportStar(require("./ListTagsForResourcePaginator"), exports);
|