@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.
Files changed (83) 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/AssociateFirewallPolicyCommand.d.ts +1 -1
  29. package/dist-types/commands/AssociateSubnetsCommand.d.ts +3 -3
  30. package/dist-types/commands/CreateFirewallCommand.d.ts +6 -6
  31. package/dist-types/commands/CreateFirewallPolicyCommand.d.ts +20 -19
  32. package/dist-types/commands/CreateRuleGroupCommand.d.ts +46 -46
  33. package/dist-types/commands/CreateTLSInspectionConfigurationCommand.d.ts +145 -0
  34. package/dist-types/commands/DeleteFirewallCommand.d.ts +1 -1
  35. package/dist-types/commands/DeleteFirewallPolicyCommand.d.ts +1 -1
  36. package/dist-types/commands/DeleteResourcePolicyCommand.d.ts +1 -1
  37. package/dist-types/commands/DeleteRuleGroupCommand.d.ts +1 -1
  38. package/dist-types/commands/DeleteTLSInspectionConfigurationCommand.d.ts +94 -0
  39. package/dist-types/commands/DescribeFirewallCommand.d.ts +1 -1
  40. package/dist-types/commands/DescribeFirewallPolicyCommand.d.ts +1 -1
  41. package/dist-types/commands/DescribeLoggingConfigurationCommand.d.ts +1 -1
  42. package/dist-types/commands/DescribeResourcePolicyCommand.d.ts +1 -1
  43. package/dist-types/commands/DescribeRuleGroupCommand.d.ts +1 -1
  44. package/dist-types/commands/DescribeRuleGroupMetadataCommand.d.ts +1 -1
  45. package/dist-types/commands/DescribeTLSInspectionConfigurationCommand.d.ts +90 -0
  46. package/dist-types/commands/DisassociateSubnetsCommand.d.ts +2 -2
  47. package/dist-types/commands/ListFirewallPoliciesCommand.d.ts +1 -1
  48. package/dist-types/commands/ListFirewallsCommand.d.ts +2 -2
  49. package/dist-types/commands/ListRuleGroupsCommand.d.ts +1 -1
  50. package/dist-types/commands/ListTLSInspectionConfigurationsCommand.d.ts +87 -0
  51. package/dist-types/commands/ListTagsForResourceCommand.d.ts +1 -1
  52. package/dist-types/commands/PutResourcePolicyCommand.d.ts +1 -1
  53. package/dist-types/commands/TagResourceCommand.d.ts +3 -3
  54. package/dist-types/commands/UntagResourceCommand.d.ts +2 -2
  55. package/dist-types/commands/UpdateFirewallDeleteProtectionCommand.d.ts +1 -1
  56. package/dist-types/commands/UpdateFirewallDescriptionCommand.d.ts +1 -1
  57. package/dist-types/commands/UpdateFirewallEncryptionConfigurationCommand.d.ts +2 -2
  58. package/dist-types/commands/UpdateFirewallPolicyChangeProtectionCommand.d.ts +1 -1
  59. package/dist-types/commands/UpdateFirewallPolicyCommand.d.ts +18 -17
  60. package/dist-types/commands/UpdateLoggingConfigurationCommand.d.ts +5 -5
  61. package/dist-types/commands/UpdateRuleGroupCommand.d.ts +44 -44
  62. package/dist-types/commands/UpdateSubnetChangeProtectionCommand.d.ts +1 -1
  63. package/dist-types/commands/UpdateTLSInspectionConfigurationCommand.d.ts +144 -0
  64. package/dist-types/commands/index.d.ts +5 -0
  65. package/dist-types/endpoint/EndpointParameters.d.ts +1 -1
  66. package/dist-types/models/models_0.d.ts +558 -115
  67. package/dist-types/pagination/ListTLSInspectionConfigurationsPaginator.d.ts +7 -0
  68. package/dist-types/pagination/index.d.ts +1 -0
  69. package/dist-types/protocols/Aws_json1_0.d.ts +15 -0
  70. package/dist-types/ts3.4/NetworkFirewall.d.ts +91 -0
  71. package/dist-types/ts3.4/NetworkFirewallClient.d.ts +32 -2
  72. package/dist-types/ts3.4/commands/CreateTLSInspectionConfigurationCommand.d.ts +41 -0
  73. package/dist-types/ts3.4/commands/DeleteTLSInspectionConfigurationCommand.d.ts +41 -0
  74. package/dist-types/ts3.4/commands/DescribeTLSInspectionConfigurationCommand.d.ts +41 -0
  75. package/dist-types/ts3.4/commands/ListTLSInspectionConfigurationsCommand.d.ts +41 -0
  76. package/dist-types/ts3.4/commands/UpdateTLSInspectionConfigurationCommand.d.ts +41 -0
  77. package/dist-types/ts3.4/commands/index.d.ts +5 -0
  78. package/dist-types/ts3.4/endpoint/EndpointParameters.d.ts +1 -1
  79. package/dist-types/ts3.4/models/models_0.d.ts +244 -113
  80. package/dist-types/ts3.4/pagination/ListTLSInspectionConfigurationsPaginator.d.ts +11 -0
  81. package/dist-types/ts3.4/pagination/index.d.ts +1 -0
  82. package/dist-types/ts3.4/protocols/Aws_json1_0.d.ts +60 -0
  83. 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 var IPAddressType;
81
- (function (IPAddressType) {
82
- IPAddressType["DUALSTACK"] = "DUALSTACK";
83
- IPAddressType["IPV4"] = "IPV4";
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 var AttachmentStatus;
99
- (function (AttachmentStatus) {
100
- AttachmentStatus["CREATING"] = "CREATING";
101
- AttachmentStatus["DELETING"] = "DELETING";
102
- AttachmentStatus["READY"] = "READY";
103
- AttachmentStatus["SCALING"] = "SCALING";
104
- })(AttachmentStatus || (AttachmentStatus = {}));
105
- export var ConfigurationSyncState;
106
- (function (ConfigurationSyncState) {
107
- ConfigurationSyncState["CAPACITY_CONSTRAINED"] = "CAPACITY_CONSTRAINED";
108
- ConfigurationSyncState["IN_SYNC"] = "IN_SYNC";
109
- ConfigurationSyncState["PENDING"] = "PENDING";
110
- })(ConfigurationSyncState || (ConfigurationSyncState = {}));
111
- export var EncryptionType;
112
- (function (EncryptionType) {
113
- EncryptionType["AWS_OWNED_KMS_KEY"] = "AWS_OWNED_KMS_KEY";
114
- EncryptionType["CUSTOMER_KMS"] = "CUSTOMER_KMS";
115
- })(EncryptionType || (EncryptionType = {}));
116
- export var FirewallStatusValue;
117
- (function (FirewallStatusValue) {
118
- FirewallStatusValue["DELETING"] = "DELETING";
119
- FirewallStatusValue["PROVISIONING"] = "PROVISIONING";
120
- FirewallStatusValue["READY"] = "READY";
121
- })(FirewallStatusValue || (FirewallStatusValue = {}));
122
- export var PerObjectSyncStatus;
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 var RuleOrder;
142
- (function (RuleOrder) {
143
- RuleOrder["DEFAULT_ACTION_ORDER"] = "DEFAULT_ACTION_ORDER";
144
- RuleOrder["STRICT_ORDER"] = "STRICT_ORDER";
145
- })(RuleOrder || (RuleOrder = {}));
146
- export var StreamExceptionPolicy;
147
- (function (StreamExceptionPolicy) {
148
- StreamExceptionPolicy["CONTINUE"] = "CONTINUE";
149
- StreamExceptionPolicy["DROP"] = "DROP";
150
- })(StreamExceptionPolicy || (StreamExceptionPolicy = {}));
151
- export var OverrideAction;
152
- (function (OverrideAction) {
153
- OverrideAction["DROP_TO_ALERT"] = "DROP_TO_ALERT";
154
- })(OverrideAction || (OverrideAction = {}));
155
- export var ResourceStatus;
156
- (function (ResourceStatus) {
157
- ResourceStatus["ACTIVE"] = "ACTIVE";
158
- ResourceStatus["DELETING"] = "DELETING";
159
- })(ResourceStatus || (ResourceStatus = {}));
160
- export var GeneratedRulesType;
161
- (function (GeneratedRulesType) {
162
- GeneratedRulesType["ALLOWLIST"] = "ALLOWLIST";
163
- GeneratedRulesType["DENYLIST"] = "DENYLIST";
164
- })(GeneratedRulesType || (GeneratedRulesType = {}));
165
- export var TargetType;
166
- (function (TargetType) {
167
- TargetType["HTTP_HOST"] = "HTTP_HOST";
168
- TargetType["TLS_SNI"] = "TLS_SNI";
169
- })(TargetType || (TargetType = {}));
170
- export var StatefulAction;
171
- (function (StatefulAction) {
172
- StatefulAction["ALERT"] = "ALERT";
173
- StatefulAction["DROP"] = "DROP";
174
- StatefulAction["PASS"] = "PASS";
175
- StatefulAction["REJECT"] = "REJECT";
176
- })(StatefulAction || (StatefulAction = {}));
177
- export var StatefulRuleDirection;
178
- (function (StatefulRuleDirection) {
179
- StatefulRuleDirection["ANY"] = "ANY";
180
- StatefulRuleDirection["FORWARD"] = "FORWARD";
181
- })(StatefulRuleDirection || (StatefulRuleDirection = {}));
182
- export var StatefulRuleProtocol;
183
- (function (StatefulRuleProtocol) {
184
- StatefulRuleProtocol["ANY"] = "IP";
185
- StatefulRuleProtocol["DCERPC"] = "DCERPC";
186
- StatefulRuleProtocol["DHCP"] = "DHCP";
187
- StatefulRuleProtocol["DNS"] = "DNS";
188
- StatefulRuleProtocol["FTP"] = "FTP";
189
- StatefulRuleProtocol["HTTP"] = "HTTP";
190
- StatefulRuleProtocol["ICMP"] = "ICMP";
191
- StatefulRuleProtocol["IKEV2"] = "IKEV2";
192
- StatefulRuleProtocol["IMAP"] = "IMAP";
193
- StatefulRuleProtocol["KRB5"] = "KRB5";
194
- StatefulRuleProtocol["MSN"] = "MSN";
195
- StatefulRuleProtocol["NTP"] = "NTP";
196
- StatefulRuleProtocol["SMB"] = "SMB";
197
- StatefulRuleProtocol["SMTP"] = "SMTP";
198
- StatefulRuleProtocol["SSH"] = "SSH";
199
- StatefulRuleProtocol["TCP"] = "TCP";
200
- StatefulRuleProtocol["TFTP"] = "TFTP";
201
- StatefulRuleProtocol["TLS"] = "TLS";
202
- StatefulRuleProtocol["UDP"] = "UDP";
203
- })(StatefulRuleProtocol || (StatefulRuleProtocol = {}));
204
- export var TCPFlag;
205
- (function (TCPFlag) {
206
- TCPFlag["ACK"] = "ACK";
207
- TCPFlag["CWR"] = "CWR";
208
- TCPFlag["ECE"] = "ECE";
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 var LogDestinationType;
247
- (function (LogDestinationType) {
248
- LogDestinationType["CLOUDWATCH_LOGS"] = "CloudWatchLogs";
249
- LogDestinationType["KINESIS_DATA_FIREHOSE"] = "KinesisDataFirehose";
250
- LogDestinationType["S3"] = "S3";
251
- })(LogDestinationType || (LogDestinationType = {}));
252
- export var LogType;
253
- (function (LogType) {
254
- LogType["ALERT"] = "ALERT";
255
- LogType["FLOW"] = "FLOW";
256
- })(LogType || (LogType = {}));
257
- export var ResourceManagedType;
258
- (function (ResourceManagedType) {
259
- ResourceManagedType["AWS_MANAGED_DOMAIN_LISTS"] = "AWS_MANAGED_DOMAIN_LISTS";
260
- ResourceManagedType["AWS_MANAGED_THREAT_SIGNATURES"] = "AWS_MANAGED_THREAT_SIGNATURES";
261
- })(ResourceManagedType || (ResourceManagedType = {}));
262
- export var ResourceManagedStatus;
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";