@aws-sdk/client-network-firewall 3.301.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.
Files changed (54) hide show
  1. package/README.md +40 -0
  2. package/dist-cjs/NetworkFirewall.js +75 -0
  3. package/dist-cjs/commands/CreateTLSInspectionConfigurationCommand.js +45 -0
  4. package/dist-cjs/commands/DeleteTLSInspectionConfigurationCommand.js +45 -0
  5. package/dist-cjs/commands/DescribeTLSInspectionConfigurationCommand.js +45 -0
  6. package/dist-cjs/commands/ListTLSInspectionConfigurationsCommand.js +45 -0
  7. package/dist-cjs/commands/UpdateTLSInspectionConfigurationCommand.js +45 -0
  8. package/dist-cjs/commands/index.js +5 -0
  9. package/dist-cjs/endpoint/ruleset.js +3 -3
  10. package/dist-cjs/models/models_0.js +114 -135
  11. package/dist-cjs/pagination/ListTLSInspectionConfigurationsPaginator.js +29 -0
  12. package/dist-cjs/pagination/index.js +1 -0
  13. package/dist-cjs/protocols/Aws_json1_0.js +540 -2
  14. package/dist-es/NetworkFirewall.js +75 -0
  15. package/dist-es/commands/CreateTLSInspectionConfigurationCommand.js +41 -0
  16. package/dist-es/commands/DeleteTLSInspectionConfigurationCommand.js +41 -0
  17. package/dist-es/commands/DescribeTLSInspectionConfigurationCommand.js +41 -0
  18. package/dist-es/commands/ListTLSInspectionConfigurationsCommand.js +41 -0
  19. package/dist-es/commands/UpdateTLSInspectionConfigurationCommand.js +41 -0
  20. package/dist-es/commands/index.js +5 -0
  21. package/dist-es/endpoint/ruleset.js +3 -3
  22. package/dist-es/models/models_0.js +114 -135
  23. package/dist-es/pagination/ListTLSInspectionConfigurationsPaginator.js +25 -0
  24. package/dist-es/pagination/index.js +1 -0
  25. package/dist-es/protocols/Aws_json1_0.js +528 -0
  26. package/dist-types/NetworkFirewall.d.ts +53 -0
  27. package/dist-types/NetworkFirewallClient.d.ts +7 -2
  28. package/dist-types/commands/CreateFirewallPolicyCommand.d.ts +1 -0
  29. package/dist-types/commands/CreateTLSInspectionConfigurationCommand.d.ts +145 -0
  30. package/dist-types/commands/DeleteTLSInspectionConfigurationCommand.d.ts +94 -0
  31. package/dist-types/commands/DescribeTLSInspectionConfigurationCommand.d.ts +90 -0
  32. package/dist-types/commands/ListTLSInspectionConfigurationsCommand.d.ts +87 -0
  33. package/dist-types/commands/UpdateFirewallPolicyCommand.d.ts +1 -0
  34. package/dist-types/commands/UpdateTLSInspectionConfigurationCommand.d.ts +144 -0
  35. package/dist-types/commands/index.d.ts +5 -0
  36. package/dist-types/endpoint/EndpointParameters.d.ts +1 -1
  37. package/dist-types/models/models_0.d.ts +558 -115
  38. package/dist-types/pagination/ListTLSInspectionConfigurationsPaginator.d.ts +7 -0
  39. package/dist-types/pagination/index.d.ts +1 -0
  40. package/dist-types/protocols/Aws_json1_0.d.ts +15 -0
  41. package/dist-types/ts3.4/NetworkFirewall.d.ts +91 -0
  42. package/dist-types/ts3.4/NetworkFirewallClient.d.ts +32 -2
  43. package/dist-types/ts3.4/commands/CreateTLSInspectionConfigurationCommand.d.ts +41 -0
  44. package/dist-types/ts3.4/commands/DeleteTLSInspectionConfigurationCommand.d.ts +41 -0
  45. package/dist-types/ts3.4/commands/DescribeTLSInspectionConfigurationCommand.d.ts +41 -0
  46. package/dist-types/ts3.4/commands/ListTLSInspectionConfigurationsCommand.d.ts +41 -0
  47. package/dist-types/ts3.4/commands/UpdateTLSInspectionConfigurationCommand.d.ts +41 -0
  48. package/dist-types/ts3.4/commands/index.d.ts +5 -0
  49. package/dist-types/ts3.4/endpoint/EndpointParameters.d.ts +1 -1
  50. package/dist-types/ts3.4/models/models_0.d.ts +244 -113
  51. package/dist-types/ts3.4/pagination/ListTLSInspectionConfigurationsPaginator.d.ts +11 -0
  52. package/dist-types/ts3.4/pagination/index.d.ts +1 -0
  53. package/dist-types/ts3.4/protocols/Aws_json1_0.d.ts +60 -0
  54. 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
- var IPAddressType;
90
- (function (IPAddressType) {
91
- IPAddressType["DUALSTACK"] = "DUALSTACK";
92
- IPAddressType["IPV4"] = "IPV4";
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
- var AttachmentStatus;
109
- (function (AttachmentStatus) {
110
- AttachmentStatus["CREATING"] = "CREATING";
111
- AttachmentStatus["DELETING"] = "DELETING";
112
- AttachmentStatus["READY"] = "READY";
113
- AttachmentStatus["SCALING"] = "SCALING";
114
- })(AttachmentStatus = exports.AttachmentStatus || (exports.AttachmentStatus = {}));
115
- var ConfigurationSyncState;
116
- (function (ConfigurationSyncState) {
117
- ConfigurationSyncState["CAPACITY_CONSTRAINED"] = "CAPACITY_CONSTRAINED";
118
- ConfigurationSyncState["IN_SYNC"] = "IN_SYNC";
119
- ConfigurationSyncState["PENDING"] = "PENDING";
120
- })(ConfigurationSyncState = exports.ConfigurationSyncState || (exports.ConfigurationSyncState = {}));
121
- var EncryptionType;
122
- (function (EncryptionType) {
123
- EncryptionType["AWS_OWNED_KMS_KEY"] = "AWS_OWNED_KMS_KEY";
124
- EncryptionType["CUSTOMER_KMS"] = "CUSTOMER_KMS";
125
- })(EncryptionType = exports.EncryptionType || (exports.EncryptionType = {}));
126
- var FirewallStatusValue;
127
- (function (FirewallStatusValue) {
128
- FirewallStatusValue["DELETING"] = "DELETING";
129
- FirewallStatusValue["PROVISIONING"] = "PROVISIONING";
130
- FirewallStatusValue["READY"] = "READY";
131
- })(FirewallStatusValue = exports.FirewallStatusValue || (exports.FirewallStatusValue = {}));
132
- var PerObjectSyncStatus;
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
- var RuleOrder;
153
- (function (RuleOrder) {
154
- RuleOrder["DEFAULT_ACTION_ORDER"] = "DEFAULT_ACTION_ORDER";
155
- RuleOrder["STRICT_ORDER"] = "STRICT_ORDER";
156
- })(RuleOrder = exports.RuleOrder || (exports.RuleOrder = {}));
157
- var StreamExceptionPolicy;
158
- (function (StreamExceptionPolicy) {
159
- StreamExceptionPolicy["CONTINUE"] = "CONTINUE";
160
- StreamExceptionPolicy["DROP"] = "DROP";
161
- })(StreamExceptionPolicy = exports.StreamExceptionPolicy || (exports.StreamExceptionPolicy = {}));
162
- var OverrideAction;
163
- (function (OverrideAction) {
164
- OverrideAction["DROP_TO_ALERT"] = "DROP_TO_ALERT";
165
- })(OverrideAction = exports.OverrideAction || (exports.OverrideAction = {}));
166
- var ResourceStatus;
167
- (function (ResourceStatus) {
168
- ResourceStatus["ACTIVE"] = "ACTIVE";
169
- ResourceStatus["DELETING"] = "DELETING";
170
- })(ResourceStatus = exports.ResourceStatus || (exports.ResourceStatus = {}));
171
- var GeneratedRulesType;
172
- (function (GeneratedRulesType) {
173
- GeneratedRulesType["ALLOWLIST"] = "ALLOWLIST";
174
- GeneratedRulesType["DENYLIST"] = "DENYLIST";
175
- })(GeneratedRulesType = exports.GeneratedRulesType || (exports.GeneratedRulesType = {}));
176
- var TargetType;
177
- (function (TargetType) {
178
- TargetType["HTTP_HOST"] = "HTTP_HOST";
179
- TargetType["TLS_SNI"] = "TLS_SNI";
180
- })(TargetType = exports.TargetType || (exports.TargetType = {}));
181
- var StatefulAction;
182
- (function (StatefulAction) {
183
- StatefulAction["ALERT"] = "ALERT";
184
- StatefulAction["DROP"] = "DROP";
185
- StatefulAction["PASS"] = "PASS";
186
- StatefulAction["REJECT"] = "REJECT";
187
- })(StatefulAction = exports.StatefulAction || (exports.StatefulAction = {}));
188
- var StatefulRuleDirection;
189
- (function (StatefulRuleDirection) {
190
- StatefulRuleDirection["ANY"] = "ANY";
191
- StatefulRuleDirection["FORWARD"] = "FORWARD";
192
- })(StatefulRuleDirection = exports.StatefulRuleDirection || (exports.StatefulRuleDirection = {}));
193
- var StatefulRuleProtocol;
194
- (function (StatefulRuleProtocol) {
195
- StatefulRuleProtocol["ANY"] = "IP";
196
- StatefulRuleProtocol["DCERPC"] = "DCERPC";
197
- StatefulRuleProtocol["DHCP"] = "DHCP";
198
- StatefulRuleProtocol["DNS"] = "DNS";
199
- StatefulRuleProtocol["FTP"] = "FTP";
200
- StatefulRuleProtocol["HTTP"] = "HTTP";
201
- StatefulRuleProtocol["ICMP"] = "ICMP";
202
- StatefulRuleProtocol["IKEV2"] = "IKEV2";
203
- StatefulRuleProtocol["IMAP"] = "IMAP";
204
- StatefulRuleProtocol["KRB5"] = "KRB5";
205
- StatefulRuleProtocol["MSN"] = "MSN";
206
- StatefulRuleProtocol["NTP"] = "NTP";
207
- StatefulRuleProtocol["SMB"] = "SMB";
208
- StatefulRuleProtocol["SMTP"] = "SMTP";
209
- StatefulRuleProtocol["SSH"] = "SSH";
210
- StatefulRuleProtocol["TCP"] = "TCP";
211
- StatefulRuleProtocol["TFTP"] = "TFTP";
212
- StatefulRuleProtocol["TLS"] = "TLS";
213
- StatefulRuleProtocol["UDP"] = "UDP";
214
- })(StatefulRuleProtocol = exports.StatefulRuleProtocol || (exports.StatefulRuleProtocol = {}));
215
- var TCPFlag;
216
- (function (TCPFlag) {
217
- TCPFlag["ACK"] = "ACK";
218
- TCPFlag["CWR"] = "CWR";
219
- TCPFlag["ECE"] = "ECE";
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
- var LogDestinationType;
260
- (function (LogDestinationType) {
261
- LogDestinationType["CLOUDWATCH_LOGS"] = "CloudWatchLogs";
262
- LogDestinationType["KINESIS_DATA_FIREHOSE"] = "KinesisDataFirehose";
263
- LogDestinationType["S3"] = "S3";
264
- })(LogDestinationType = exports.LogDestinationType || (exports.LogDestinationType = {}));
265
- var LogType;
266
- (function (LogType) {
267
- LogType["ALERT"] = "ALERT";
268
- LogType["FLOW"] = "FLOW";
269
- })(LogType = exports.LogType || (exports.LogType = {}));
270
- var ResourceManagedType;
271
- (function (ResourceManagedType) {
272
- ResourceManagedType["AWS_MANAGED_DOMAIN_LISTS"] = "AWS_MANAGED_DOMAIN_LISTS";
273
- ResourceManagedType["AWS_MANAGED_THREAT_SIGNATURES"] = "AWS_MANAGED_THREAT_SIGNATURES";
274
- })(ResourceManagedType = exports.ResourceManagedType || (exports.ResourceManagedType = {}));
275
- var ResourceManagedStatus;
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);