@aws-sdk/client-network-firewall 3.1075.0 → 3.1077.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 (62) hide show
  1. package/README.md +35 -0
  2. package/dist-cjs/index.js +3284 -15
  3. package/dist-es/NetworkFirewall.js +12 -0
  4. package/dist-es/commands/CreateContainerAssociationCommand.js +16 -0
  5. package/dist-es/commands/DeleteContainerAssociationCommand.js +16 -0
  6. package/dist-es/commands/DescribeContainerAssociationCommand.js +16 -0
  7. package/dist-es/commands/ListContainerAssociationsCommand.js +16 -0
  8. package/dist-es/commands/UpdateContainerAssociationCommand.js +16 -0
  9. package/dist-es/commands/index.js +5 -0
  10. package/dist-es/models/enums.js +9 -0
  11. package/dist-es/pagination/ListContainerAssociationsPaginator.js +4 -0
  12. package/dist-es/pagination/index.js +1 -0
  13. package/dist-es/runtimeConfig.browser.js +0 -2
  14. package/dist-es/runtimeConfig.js +1 -2
  15. package/dist-es/runtimeConfig.native.js +0 -2
  16. package/dist-es/runtimeConfig.shared.js +2 -0
  17. package/dist-es/schemas/schemas_0.js +161 -45
  18. package/dist-types/NetworkFirewall.d.ts +45 -0
  19. package/dist-types/NetworkFirewallClient.d.ts +7 -2
  20. package/dist-types/commands/CreateContainerAssociationCommand.d.ts +149 -0
  21. package/dist-types/commands/DeleteContainerAssociationCommand.d.ts +109 -0
  22. package/dist-types/commands/DescribeContainerAssociationCommand.d.ts +127 -0
  23. package/dist-types/commands/ListContainerAssociationsCommand.d.ts +106 -0
  24. package/dist-types/commands/UpdateContainerAssociationCommand.d.ts +148 -0
  25. package/dist-types/commands/index.d.ts +5 -0
  26. package/dist-types/models/enums.d.ts +25 -0
  27. package/dist-types/models/models_0.d.ts +345 -2
  28. package/dist-types/pagination/ListContainerAssociationsPaginator.d.ts +7 -0
  29. package/dist-types/pagination/index.d.ts +1 -0
  30. package/dist-types/runtimeConfig.browser.d.ts +2 -2
  31. package/dist-types/runtimeConfig.d.ts +2 -2
  32. package/dist-types/runtimeConfig.native.d.ts +2 -2
  33. package/dist-types/runtimeConfig.shared.d.ts +1 -0
  34. package/dist-types/schemas/schemas_0.d.ts +18 -0
  35. package/dist-types/ts3.4/NetworkFirewall.d.ts +95 -0
  36. package/dist-types/ts3.4/NetworkFirewallClient.d.ts +30 -0
  37. package/dist-types/ts3.4/commands/CreateContainerAssociationCommand.d.ts +53 -0
  38. package/dist-types/ts3.4/commands/DeleteContainerAssociationCommand.d.ts +53 -0
  39. package/dist-types/ts3.4/commands/DescribeContainerAssociationCommand.d.ts +53 -0
  40. package/dist-types/ts3.4/commands/ListContainerAssociationsCommand.d.ts +53 -0
  41. package/dist-types/ts3.4/commands/UpdateContainerAssociationCommand.d.ts +53 -0
  42. package/dist-types/ts3.4/commands/index.d.ts +5 -0
  43. package/dist-types/ts3.4/models/enums.d.ts +13 -0
  44. package/dist-types/ts3.4/models/models_0.d.ts +93 -0
  45. package/dist-types/ts3.4/pagination/ListContainerAssociationsPaginator.d.ts +11 -0
  46. package/dist-types/ts3.4/pagination/index.d.ts +1 -0
  47. package/dist-types/ts3.4/runtimeConfig.browser.d.ts +8 -2
  48. package/dist-types/ts3.4/runtimeConfig.d.ts +8 -2
  49. package/dist-types/ts3.4/runtimeConfig.native.d.ts +8 -2
  50. package/dist-types/ts3.4/runtimeConfig.shared.d.ts +1 -0
  51. package/dist-types/ts3.4/schemas/schemas_0.d.ts +18 -0
  52. package/package.json +8 -10
  53. package/dist-cjs/auth/httpAuthSchemeProvider.js +0 -40
  54. package/dist-cjs/endpoint/bdd.js +0 -46
  55. package/dist-cjs/endpoint/endpointResolver.js +0 -14
  56. package/dist-cjs/models/NetworkFirewallServiceException.js +0 -8
  57. package/dist-cjs/models/errors.js +0 -169
  58. package/dist-cjs/runtimeConfig.browser.js +0 -32
  59. package/dist-cjs/runtimeConfig.js +0 -45
  60. package/dist-cjs/runtimeConfig.native.js +0 -12
  61. package/dist-cjs/runtimeConfig.shared.js +0 -38
  62. package/dist-cjs/schemas/schemas_0.js +0 -2637
@@ -1,6 +1,8 @@
1
1
  import {
2
2
  AttachmentStatus,
3
3
  ConfigurationSyncState,
4
+ ContainerAssociationStatus,
5
+ ContainerMonitoringType,
4
6
  EnabledAnalysisType,
5
7
  EncryptionType,
6
8
  FirewallStatusValue,
@@ -196,6 +198,39 @@ export interface CheckCertificateRevocationStatusActions {
196
198
  RevokedStatusAction?: RevocationCheckAction | undefined;
197
199
  UnknownStatusAction?: RevocationCheckAction | undefined;
198
200
  }
201
+ export interface ContainerAssociationSummary {
202
+ Arn?: string | undefined;
203
+ Name?: string | undefined;
204
+ }
205
+ export interface ContainerAttribute {
206
+ Key: string | undefined;
207
+ Value: string | undefined;
208
+ }
209
+ export interface ContainerMonitoringConfiguration {
210
+ ClusterArn: string | undefined;
211
+ AttributeFilters?: ContainerAttribute[] | undefined;
212
+ }
213
+ export interface CreateContainerAssociationRequest {
214
+ ContainerAssociationName: string | undefined;
215
+ Description?: string | undefined;
216
+ Type: ContainerMonitoringType | undefined;
217
+ ContainerMonitoringConfigurations:
218
+ | ContainerMonitoringConfiguration[]
219
+ | undefined;
220
+ Tags?: Tag[] | undefined;
221
+ }
222
+ export interface CreateContainerAssociationResponse {
223
+ ContainerAssociationName?: string | undefined;
224
+ ContainerAssociationArn?: string | undefined;
225
+ Description?: string | undefined;
226
+ Type?: ContainerMonitoringType | undefined;
227
+ ContainerMonitoringConfigurations?:
228
+ | ContainerMonitoringConfiguration[]
229
+ | undefined;
230
+ Status?: ContainerAssociationStatus | undefined;
231
+ Tags?: Tag[] | undefined;
232
+ UpdateToken?: string | undefined;
233
+ }
199
234
  export interface EncryptionConfiguration {
200
235
  KeyId?: string | undefined;
201
236
  Type: EncryptionType | undefined;
@@ -641,6 +676,15 @@ export interface CreateVpcEndpointAssociationResponse {
641
676
  VpcEndpointAssociation?: VpcEndpointAssociation | undefined;
642
677
  VpcEndpointAssociationStatus?: VpcEndpointAssociationStatus | undefined;
643
678
  }
679
+ export interface DeleteContainerAssociationRequest {
680
+ ContainerAssociationName?: string | undefined;
681
+ ContainerAssociationArn?: string | undefined;
682
+ }
683
+ export interface DeleteContainerAssociationResponse {
684
+ ContainerAssociationName?: string | undefined;
685
+ ContainerAssociationArn?: string | undefined;
686
+ Status?: ContainerAssociationStatus | undefined;
687
+ }
644
688
  export interface DeleteFirewallRequest {
645
689
  FirewallName?: string | undefined;
646
690
  FirewallArn?: string | undefined;
@@ -725,6 +769,24 @@ export interface DeleteVpcEndpointAssociationResponse {
725
769
  VpcEndpointAssociation?: VpcEndpointAssociation | undefined;
726
770
  VpcEndpointAssociationStatus?: VpcEndpointAssociationStatus | undefined;
727
771
  }
772
+ export interface DescribeContainerAssociationRequest {
773
+ ContainerAssociationName?: string | undefined;
774
+ ContainerAssociationArn?: string | undefined;
775
+ }
776
+ export interface DescribeContainerAssociationResponse {
777
+ ContainerAssociationName?: string | undefined;
778
+ ContainerAssociationArn?: string | undefined;
779
+ Description?: string | undefined;
780
+ Type?: ContainerMonitoringType | undefined;
781
+ ContainerMonitoringConfigurations?:
782
+ | ContainerMonitoringConfiguration[]
783
+ | undefined;
784
+ Status?: ContainerAssociationStatus | undefined;
785
+ ResolvedCidrCount?: number | undefined;
786
+ LastUpdatedTime?: Date | undefined;
787
+ Tags?: Tag[] | undefined;
788
+ UpdateToken?: string | undefined;
789
+ }
728
790
  export interface DescribeFirewallRequest {
729
791
  FirewallName?: string | undefined;
730
792
  FirewallArn?: string | undefined;
@@ -1011,6 +1073,14 @@ export interface ListAnalysisReportsResponse {
1011
1073
  AnalysisReports?: AnalysisReport[] | undefined;
1012
1074
  NextToken?: string | undefined;
1013
1075
  }
1076
+ export interface ListContainerAssociationsRequest {
1077
+ MaxResults?: number | undefined;
1078
+ NextToken?: string | undefined;
1079
+ }
1080
+ export interface ListContainerAssociationsResponse {
1081
+ ContainerAssociations?: ContainerAssociationSummary[] | undefined;
1082
+ NextToken?: string | undefined;
1083
+ }
1014
1084
  export interface ListFirewallPoliciesRequest {
1015
1085
  NextToken?: string | undefined;
1016
1086
  MaxResults?: number | undefined;
@@ -1218,6 +1288,29 @@ export interface UpdateAvailabilityZoneChangeProtectionResponse {
1218
1288
  FirewallName?: string | undefined;
1219
1289
  AvailabilityZoneChangeProtection?: boolean | undefined;
1220
1290
  }
1291
+ export interface UpdateContainerAssociationRequest {
1292
+ ContainerAssociationName?: string | undefined;
1293
+ ContainerAssociationArn?: string | undefined;
1294
+ Description?: string | undefined;
1295
+ Type: ContainerMonitoringType | undefined;
1296
+ ContainerMonitoringConfigurations:
1297
+ | ContainerMonitoringConfiguration[]
1298
+ | undefined;
1299
+ Tags?: Tag[] | undefined;
1300
+ UpdateToken: string | undefined;
1301
+ }
1302
+ export interface UpdateContainerAssociationResponse {
1303
+ ContainerAssociationName?: string | undefined;
1304
+ ContainerAssociationArn?: string | undefined;
1305
+ Description?: string | undefined;
1306
+ Type?: ContainerMonitoringType | undefined;
1307
+ ContainerMonitoringConfigurations?:
1308
+ | ContainerMonitoringConfiguration[]
1309
+ | undefined;
1310
+ Status?: ContainerAssociationStatus | undefined;
1311
+ Tags?: Tag[] | undefined;
1312
+ UpdateToken?: string | undefined;
1313
+ }
1221
1314
  export interface UpdateFirewallAnalysisSettingsRequest {
1222
1315
  EnabledAnalysisTypes?: EnabledAnalysisType[] | undefined;
1223
1316
  FirewallArn?: string | undefined;
@@ -0,0 +1,11 @@
1
+ import { Paginator } from "@smithy/types";
2
+ import {
3
+ ListContainerAssociationsCommandInput,
4
+ ListContainerAssociationsCommandOutput,
5
+ } from "../commands/ListContainerAssociationsCommand";
6
+ import { NetworkFirewallPaginationConfiguration } from "./Interfaces";
7
+ export declare const paginateListContainerAssociations: (
8
+ config: NetworkFirewallPaginationConfiguration,
9
+ input: ListContainerAssociationsCommandInput,
10
+ ...rest: any[]
11
+ ) => Paginator<ListContainerAssociationsCommandOutput>;
@@ -1,6 +1,7 @@
1
1
  export * from "./Interfaces";
2
2
  export * from "./GetAnalysisReportResultsPaginator";
3
3
  export * from "./ListAnalysisReportsPaginator";
4
+ export * from "./ListContainerAssociationsPaginator";
4
5
  export * from "./ListFirewallPoliciesPaginator";
5
6
  export * from "./ListFirewallsPaginator";
6
7
  export * from "./ListFlowOperationResultsPaginator";
@@ -22,8 +22,13 @@ export declare const getRuntimeConfig: (
22
22
  | import("@smithy/core/protocols").HttpHandler<any>
23
23
  | RequestHandler;
24
24
  retryMode: string | import("@smithy/types").Provider<string>;
25
- sha256: import("@smithy/types").HashConstructor;
26
- streamCollector: import("@smithy/types").StreamCollector;
25
+ streamCollector: (
26
+ stream:
27
+ | import("stream").Readable
28
+ | import("stream/web").ReadableStream
29
+ | ReadableStream
30
+ | Blob
31
+ ) => Promise<Uint8Array>;
27
32
  useDualstackEndpoint: (boolean | import("@smithy/types").Provider<boolean>) &
28
33
  (boolean | import("@smithy/types").Provider<boolean | undefined>);
29
34
  useFipsEndpoint: (boolean | import("@smithy/types").Provider<boolean>) &
@@ -38,6 +43,7 @@ export declare const getRuntimeConfig: (
38
43
  [setting: string]: unknown;
39
44
  };
40
45
  apiVersion: string;
46
+ sha256: import("@smithy/types").HashConstructor;
41
47
  urlParser: import("@smithy/types").UrlParser;
42
48
  base64Decoder: import("@smithy/types").Decoder;
43
49
  base64Encoder: (_input: Uint8Array | string) => string;
@@ -23,8 +23,13 @@ export declare const getRuntimeConfig: (
23
23
  | RequestHandler
24
24
  | import("@smithy/core/protocols").HttpHandler<any>;
25
25
  retryMode: string | import("@smithy/types").Provider<string>;
26
- sha256: import("@smithy/types").HashConstructor;
27
- streamCollector: import("@smithy/types").StreamCollector;
26
+ streamCollector: (
27
+ stream:
28
+ | import("stream").Readable
29
+ | import("stream/web").ReadableStream
30
+ | ReadableStream
31
+ | Blob
32
+ ) => Promise<Uint8Array>;
28
33
  useDualstackEndpoint: boolean | import("@smithy/types").Provider<boolean>;
29
34
  useFipsEndpoint: boolean | import("@smithy/types").Provider<boolean>;
30
35
  userAgentAppId: string | import("@smithy/types").Provider<string | undefined>;
@@ -38,6 +43,7 @@ export declare const getRuntimeConfig: (
38
43
  [setting: string]: unknown;
39
44
  };
40
45
  apiVersion: string;
46
+ sha256: import("@smithy/types").HashConstructor;
41
47
  urlParser: import("@smithy/types").UrlParser;
42
48
  base64Decoder: import("@smithy/types").Decoder;
43
49
  base64Encoder: (_input: Uint8Array | string) => string;
@@ -3,7 +3,6 @@ export declare const getRuntimeConfig: (
3
3
  config: NetworkFirewallClientConfig
4
4
  ) => {
5
5
  runtime: string;
6
- sha256: import("@smithy/types").HashConstructor;
7
6
  requestHandler:
8
7
  | import("@smithy/types").NodeHttpHandlerOptions
9
8
  | import("@smithy/types").FetchHttpHandlerOptions
@@ -20,9 +19,16 @@ export declare const getRuntimeConfig: (
20
19
  [setting: string]: unknown;
21
20
  };
22
21
  apiVersion: string;
22
+ sha256: import("@smithy/types").HashConstructor;
23
23
  urlParser: import("@smithy/types").UrlParser;
24
24
  bodyLengthChecker: import("@smithy/types").BodyLengthCalculator;
25
- streamCollector: import("@smithy/types").StreamCollector;
25
+ streamCollector: (
26
+ stream:
27
+ | import("stream").Readable
28
+ | import("stream/web").ReadableStream
29
+ | ReadableStream
30
+ | Blob
31
+ ) => Promise<Uint8Array>;
26
32
  base64Decoder: import("@smithy/types").Decoder;
27
33
  base64Encoder: (_input: Uint8Array | string) => string;
28
34
  utf8Decoder: import("@smithy/types").Decoder;
@@ -26,6 +26,7 @@ export declare const getRuntimeConfig: (
26
26
  defaultNamespace?: string;
27
27
  };
28
28
  serviceId: string;
29
+ sha256: import("@smithy/types").HashConstructor;
29
30
  urlParser: import("@smithy/types").UrlParser;
30
31
  utf8Decoder: import("@smithy/types").Decoder;
31
32
  utf8Encoder: (input: Uint8Array | string) => string;
@@ -40,6 +40,11 @@ export declare var AZSyncState$: StaticStructureSchema;
40
40
  export declare var CapacityUsageSummary$: StaticStructureSchema;
41
41
  export declare var CheckCertificateRevocationStatusActions$: StaticStructureSchema;
42
42
  export declare var CIDRSummary$: StaticStructureSchema;
43
+ export declare var ContainerAssociationSummary$: StaticStructureSchema;
44
+ export declare var ContainerAttribute$: StaticStructureSchema;
45
+ export declare var ContainerMonitoringConfiguration$: StaticStructureSchema;
46
+ export declare var CreateContainerAssociationRequest$: StaticStructureSchema;
47
+ export declare var CreateContainerAssociationResponse$: StaticStructureSchema;
43
48
  export declare var CreateFirewallPolicyRequest$: StaticStructureSchema;
44
49
  export declare var CreateFirewallPolicyResponse$: StaticStructureSchema;
45
50
  export declare var CreateFirewallRequest$: StaticStructureSchema;
@@ -61,6 +66,8 @@ export declare var CreateTLSInspectionConfigurationResponse$: StaticStructureSch
61
66
  export declare var CreateVpcEndpointAssociationRequest$: StaticStructureSchema;
62
67
  export declare var CreateVpcEndpointAssociationResponse$: StaticStructureSchema;
63
68
  export declare var CustomAction$: StaticStructureSchema;
69
+ export declare var DeleteContainerAssociationRequest$: StaticStructureSchema;
70
+ export declare var DeleteContainerAssociationResponse$: StaticStructureSchema;
64
71
  export declare var DeleteFirewallPolicyRequest$: StaticStructureSchema;
65
72
  export declare var DeleteFirewallPolicyResponse$: StaticStructureSchema;
66
73
  export declare var DeleteFirewallRequest$: StaticStructureSchema;
@@ -83,6 +90,8 @@ export declare var DeleteTLSInspectionConfigurationRequest$: StaticStructureSche
83
90
  export declare var DeleteTLSInspectionConfigurationResponse$: StaticStructureSchema;
84
91
  export declare var DeleteVpcEndpointAssociationRequest$: StaticStructureSchema;
85
92
  export declare var DeleteVpcEndpointAssociationResponse$: StaticStructureSchema;
93
+ export declare var DescribeContainerAssociationRequest$: StaticStructureSchema;
94
+ export declare var DescribeContainerAssociationResponse$: StaticStructureSchema;
86
95
  export declare var DescribeFirewallMetadataRequest$: StaticStructureSchema;
87
96
  export declare var DescribeFirewallMetadataResponse$: StaticStructureSchema;
88
97
  export declare var DescribeFirewallPolicyRequest$: StaticStructureSchema;
@@ -142,6 +151,8 @@ export declare var IPSetMetadata$: StaticStructureSchema;
142
151
  export declare var IPSetReference$: StaticStructureSchema;
143
152
  export declare var ListAnalysisReportsRequest$: StaticStructureSchema;
144
153
  export declare var ListAnalysisReportsResponse$: StaticStructureSchema;
154
+ export declare var ListContainerAssociationsRequest$: StaticStructureSchema;
155
+ export declare var ListContainerAssociationsResponse$: StaticStructureSchema;
145
156
  export declare var ListenerProperty$: StaticStructureSchema;
146
157
  export declare var ListenerPropertyRequest$: StaticStructureSchema;
147
158
  export declare var ListFirewallPoliciesRequest$: StaticStructureSchema;
@@ -241,6 +252,8 @@ export declare var UntagResourceRequest$: StaticStructureSchema;
241
252
  export declare var UntagResourceResponse$: StaticStructureSchema;
242
253
  export declare var UpdateAvailabilityZoneChangeProtectionRequest$: StaticStructureSchema;
243
254
  export declare var UpdateAvailabilityZoneChangeProtectionResponse$: StaticStructureSchema;
255
+ export declare var UpdateContainerAssociationRequest$: StaticStructureSchema;
256
+ export declare var UpdateContainerAssociationResponse$: StaticStructureSchema;
244
257
  export declare var UpdateFirewallAnalysisSettingsRequest$: StaticStructureSchema;
245
258
  export declare var UpdateFirewallAnalysisSettingsResponse$: StaticStructureSchema;
246
259
  export declare var UpdateFirewallDeleteProtectionRequest$: StaticStructureSchema;
@@ -279,6 +292,7 @@ export declare var AssociateAvailabilityZones$: StaticOperationSchema;
279
292
  export declare var AssociateFirewallPolicy$: StaticOperationSchema;
280
293
  export declare var AssociateSubnets$: StaticOperationSchema;
281
294
  export declare var AttachRuleGroupsToProxyConfiguration$: StaticOperationSchema;
295
+ export declare var CreateContainerAssociation$: StaticOperationSchema;
282
296
  export declare var CreateFirewall$: StaticOperationSchema;
283
297
  export declare var CreateFirewallPolicy$: StaticOperationSchema;
284
298
  export declare var CreateProxy$: StaticOperationSchema;
@@ -288,6 +302,7 @@ export declare var CreateProxyRules$: StaticOperationSchema;
288
302
  export declare var CreateRuleGroup$: StaticOperationSchema;
289
303
  export declare var CreateTLSInspectionConfiguration$: StaticOperationSchema;
290
304
  export declare var CreateVpcEndpointAssociation$: StaticOperationSchema;
305
+ export declare var DeleteContainerAssociation$: StaticOperationSchema;
291
306
  export declare var DeleteFirewall$: StaticOperationSchema;
292
307
  export declare var DeleteFirewallPolicy$: StaticOperationSchema;
293
308
  export declare var DeleteNetworkFirewallTransitGatewayAttachment$: StaticOperationSchema;
@@ -299,6 +314,7 @@ export declare var DeleteResourcePolicy$: StaticOperationSchema;
299
314
  export declare var DeleteRuleGroup$: StaticOperationSchema;
300
315
  export declare var DeleteTLSInspectionConfiguration$: StaticOperationSchema;
301
316
  export declare var DeleteVpcEndpointAssociation$: StaticOperationSchema;
317
+ export declare var DescribeContainerAssociation$: StaticOperationSchema;
302
318
  export declare var DescribeFirewall$: StaticOperationSchema;
303
319
  export declare var DescribeFirewallMetadata$: StaticOperationSchema;
304
320
  export declare var DescribeFirewallPolicy$: StaticOperationSchema;
@@ -319,6 +335,7 @@ export declare var DisassociateAvailabilityZones$: StaticOperationSchema;
319
335
  export declare var DisassociateSubnets$: StaticOperationSchema;
320
336
  export declare var GetAnalysisReportResults$: StaticOperationSchema;
321
337
  export declare var ListAnalysisReports$: StaticOperationSchema;
338
+ export declare var ListContainerAssociations$: StaticOperationSchema;
322
339
  export declare var ListFirewallPolicies$: StaticOperationSchema;
323
340
  export declare var ListFirewalls$: StaticOperationSchema;
324
341
  export declare var ListFlowOperationResults$: StaticOperationSchema;
@@ -338,6 +355,7 @@ export declare var StartFlowFlush$: StaticOperationSchema;
338
355
  export declare var TagResource$: StaticOperationSchema;
339
356
  export declare var UntagResource$: StaticOperationSchema;
340
357
  export declare var UpdateAvailabilityZoneChangeProtection$: StaticOperationSchema;
358
+ export declare var UpdateContainerAssociation$: StaticOperationSchema;
341
359
  export declare var UpdateFirewallAnalysisSettings$: StaticOperationSchema;
342
360
  export declare var UpdateFirewallDeleteProtection$: StaticOperationSchema;
343
361
  export declare var UpdateFirewallDescription$: StaticOperationSchema;
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@aws-sdk/client-network-firewall",
3
3
  "description": "AWS SDK for JavaScript Network Firewall Client for Node.js, Browser and React Native",
4
- "version": "3.1075.0",
4
+ "version": "3.1077.0",
5
5
  "scripts": {
6
6
  "build": "concurrently 'yarn:build:types' 'yarn:build:es' && yarn build:cjs",
7
7
  "build:cjs": "node ../../scripts/compilation/inline",
@@ -19,15 +19,13 @@
19
19
  "module": "./dist-es/index.js",
20
20
  "sideEffects": false,
21
21
  "dependencies": {
22
- "@aws-crypto/sha256-browser": "5.2.0",
23
- "@aws-crypto/sha256-js": "5.2.0",
24
- "@aws-sdk/core": "^3.974.23",
25
- "@aws-sdk/credential-provider-node": "^3.972.58",
26
- "@aws-sdk/types": "^3.973.13",
27
- "@smithy/core": "^3.24.6",
28
- "@smithy/fetch-http-handler": "^5.4.6",
29
- "@smithy/node-http-handler": "^4.7.6",
30
- "@smithy/types": "^4.14.3",
22
+ "@aws-sdk/core": "^3.974.25",
23
+ "@aws-sdk/credential-provider-node": "^3.972.60",
24
+ "@aws-sdk/types": "^3.973.14",
25
+ "@smithy/core": "^3.28.0",
26
+ "@smithy/fetch-http-handler": "^5.6.1",
27
+ "@smithy/node-http-handler": "^4.9.1",
28
+ "@smithy/types": "^4.15.0",
31
29
  "tslib": "^2.6.2"
32
30
  },
33
31
  "devDependencies": {
@@ -1,40 +0,0 @@
1
- const { resolveAwsSdkSigV4Config } = require("@aws-sdk/core/httpAuthSchemes");
2
- const { getSmithyContext, normalizeProvider } = require("@smithy/core/client");
3
- exports.defaultNetworkFirewallHttpAuthSchemeParametersProvider = async (config, context, input) => {
4
- return {
5
- operation: getSmithyContext(context).operation,
6
- region: await normalizeProvider(config.region)() || (() => {
7
- throw new Error("expected `region` to be configured for `aws.auth#sigv4`");
8
- })(),
9
- };
10
- };
11
- function createAwsAuthSigv4HttpAuthOption(authParameters) {
12
- return {
13
- schemeId: "aws.auth#sigv4",
14
- signingProperties: {
15
- name: "network-firewall",
16
- region: authParameters.region,
17
- },
18
- propertiesExtractor: (config, context) => ({
19
- signingProperties: {
20
- config,
21
- context,
22
- },
23
- }),
24
- };
25
- }
26
- exports.defaultNetworkFirewallHttpAuthSchemeProvider = (authParameters) => {
27
- const options = [];
28
- switch (authParameters.operation) {
29
- default: {
30
- options.push(createAwsAuthSigv4HttpAuthOption(authParameters));
31
- }
32
- }
33
- return options;
34
- };
35
- exports.resolveHttpAuthSchemeConfig = (config) => {
36
- const config_0 = resolveAwsSdkSigV4Config(config);
37
- return Object.assign(config_0, {
38
- authSchemePreference: normalizeProvider(config.authSchemePreference ?? []),
39
- });
40
- };
@@ -1,46 +0,0 @@
1
- const { BinaryDecisionDiagram } = require("@smithy/core/endpoints");
2
- const k = "ref";
3
- const a = -1, b = true, c = "isSet", d = "PartitionResult", e = "booleanEquals", f = "getAttr", g = { [k]: "Endpoint" }, h = { [k]: d }, i = {}, j = [{ [k]: "Region" }];
4
- const _data = {
5
- conditions: [
6
- [c, [g]],
7
- [c, j],
8
- ["aws.partition", j, d],
9
- [e, [{ [k]: "UseFIPS" }, b]],
10
- [e, [{ [k]: "UseDualStack" }, b]],
11
- [e, [{ fn: f, argv: [h, "supportsDualStack"] }, b]],
12
- [e, [{ fn: f, argv: [h, "supportsFIPS"] }, b]]
13
- ],
14
- results: [
15
- [a],
16
- [a, "Invalid Configuration: FIPS and custom endpoint are not supported"],
17
- [a, "Invalid Configuration: Dualstack and custom endpoint are not supported"],
18
- [g, i],
19
- ["https://network-firewall-fips.{Region}.{PartitionResult#dualStackDnsSuffix}", i],
20
- [a, "FIPS and DualStack are enabled, but this partition does not support one or both"],
21
- ["https://network-firewall-fips.{Region}.{PartitionResult#dnsSuffix}", i],
22
- [a, "FIPS is enabled but this partition does not support FIPS"],
23
- ["https://network-firewall.{Region}.{PartitionResult#dualStackDnsSuffix}", i],
24
- [a, "DualStack is enabled but this partition does not support DualStack"],
25
- ["https://network-firewall.{Region}.{PartitionResult#dnsSuffix}", i],
26
- [a, "Invalid Configuration: Missing Region"]
27
- ]
28
- };
29
- const root = 2;
30
- const r = 100_000_000;
31
- const nodes = new Int32Array([
32
- -1, 1, -1,
33
- 0, 12, 3,
34
- 1, 4, r + 11,
35
- 2, 5, r + 11,
36
- 3, 8, 6,
37
- 4, 7, r + 10,
38
- 5, r + 8, r + 9,
39
- 4, 10, 9,
40
- 6, r + 6, r + 7,
41
- 5, 11, r + 5,
42
- 6, r + 4, r + 5,
43
- 3, r + 1, 13,
44
- 4, r + 2, r + 3,
45
- ]);
46
- exports.bdd = BinaryDecisionDiagram.from(nodes, root, _data.conditions, _data.results);
@@ -1,14 +0,0 @@
1
- const { awsEndpointFunctions } = require("@aws-sdk/core/client");
2
- const { customEndpointFunctions, decideEndpoint, EndpointCache } = require("@smithy/core/endpoints");
3
- const { bdd } = require("./bdd");
4
- const cache = new EndpointCache({
5
- size: 50,
6
- params: ["Endpoint", "Region", "UseDualStack", "UseFIPS"],
7
- });
8
- exports.defaultEndpointResolver = (endpointParams, context = {}) => {
9
- return cache.get(endpointParams, () => decideEndpoint(bdd, {
10
- endpointParams: endpointParams,
11
- logger: context.logger,
12
- }));
13
- };
14
- customEndpointFunctions.aws = awsEndpointFunctions;
@@ -1,8 +0,0 @@
1
- const { ServiceException: __ServiceException } = require("@smithy/core/client");
2
- exports.__ServiceException = __ServiceException;
3
- exports.NetworkFirewallServiceException = class NetworkFirewallServiceException extends __ServiceException {
4
- constructor(options) {
5
- super(options);
6
- Object.setPrototypeOf(this, NetworkFirewallServiceException.prototype);
7
- }
8
- };
@@ -1,169 +0,0 @@
1
- const { NetworkFirewallServiceException: __BaseException } = require("./NetworkFirewallServiceException");
2
- exports.InternalServerError = class InternalServerError extends __BaseException {
3
- name = "InternalServerError";
4
- $fault = "server";
5
- Message;
6
- constructor(opts) {
7
- super({
8
- name: "InternalServerError",
9
- $fault: "server",
10
- ...opts,
11
- });
12
- Object.setPrototypeOf(this, InternalServerError.prototype);
13
- this.Message = opts.Message;
14
- }
15
- };
16
- exports.InvalidRequestException = class InvalidRequestException extends __BaseException {
17
- name = "InvalidRequestException";
18
- $fault = "client";
19
- Message;
20
- constructor(opts) {
21
- super({
22
- name: "InvalidRequestException",
23
- $fault: "client",
24
- ...opts,
25
- });
26
- Object.setPrototypeOf(this, InvalidRequestException.prototype);
27
- this.Message = opts.Message;
28
- }
29
- };
30
- exports.ResourceNotFoundException = class ResourceNotFoundException extends __BaseException {
31
- name = "ResourceNotFoundException";
32
- $fault = "client";
33
- Message;
34
- constructor(opts) {
35
- super({
36
- name: "ResourceNotFoundException",
37
- $fault: "client",
38
- ...opts,
39
- });
40
- Object.setPrototypeOf(this, ResourceNotFoundException.prototype);
41
- this.Message = opts.Message;
42
- }
43
- };
44
- exports.ThrottlingException = class ThrottlingException extends __BaseException {
45
- name = "ThrottlingException";
46
- $fault = "client";
47
- Message;
48
- constructor(opts) {
49
- super({
50
- name: "ThrottlingException",
51
- $fault: "client",
52
- ...opts,
53
- });
54
- Object.setPrototypeOf(this, ThrottlingException.prototype);
55
- this.Message = opts.Message;
56
- }
57
- };
58
- exports.InsufficientCapacityException = class InsufficientCapacityException extends __BaseException {
59
- name = "InsufficientCapacityException";
60
- $fault = "server";
61
- Message;
62
- constructor(opts) {
63
- super({
64
- name: "InsufficientCapacityException",
65
- $fault: "server",
66
- ...opts,
67
- });
68
- Object.setPrototypeOf(this, InsufficientCapacityException.prototype);
69
- this.Message = opts.Message;
70
- }
71
- };
72
- exports.InvalidOperationException = class InvalidOperationException extends __BaseException {
73
- name = "InvalidOperationException";
74
- $fault = "client";
75
- Message;
76
- constructor(opts) {
77
- super({
78
- name: "InvalidOperationException",
79
- $fault: "client",
80
- ...opts,
81
- });
82
- Object.setPrototypeOf(this, InvalidOperationException.prototype);
83
- this.Message = opts.Message;
84
- }
85
- };
86
- exports.InvalidTokenException = class InvalidTokenException extends __BaseException {
87
- name = "InvalidTokenException";
88
- $fault = "client";
89
- Message;
90
- constructor(opts) {
91
- super({
92
- name: "InvalidTokenException",
93
- $fault: "client",
94
- ...opts,
95
- });
96
- Object.setPrototypeOf(this, InvalidTokenException.prototype);
97
- this.Message = opts.Message;
98
- }
99
- };
100
- exports.LimitExceededException = class LimitExceededException extends __BaseException {
101
- name = "LimitExceededException";
102
- $fault = "client";
103
- Message;
104
- constructor(opts) {
105
- super({
106
- name: "LimitExceededException",
107
- $fault: "client",
108
- ...opts,
109
- });
110
- Object.setPrototypeOf(this, LimitExceededException.prototype);
111
- this.Message = opts.Message;
112
- }
113
- };
114
- exports.UnsupportedOperationException = class UnsupportedOperationException extends __BaseException {
115
- name = "UnsupportedOperationException";
116
- $fault = "client";
117
- Message;
118
- constructor(opts) {
119
- super({
120
- name: "UnsupportedOperationException",
121
- $fault: "client",
122
- ...opts,
123
- });
124
- Object.setPrototypeOf(this, UnsupportedOperationException.prototype);
125
- this.Message = opts.Message;
126
- }
127
- };
128
- exports.InvalidResourcePolicyException = class InvalidResourcePolicyException extends __BaseException {
129
- name = "InvalidResourcePolicyException";
130
- $fault = "client";
131
- Message;
132
- constructor(opts) {
133
- super({
134
- name: "InvalidResourcePolicyException",
135
- $fault: "client",
136
- ...opts,
137
- });
138
- Object.setPrototypeOf(this, InvalidResourcePolicyException.prototype);
139
- this.Message = opts.Message;
140
- }
141
- };
142
- exports.LogDestinationPermissionException = class LogDestinationPermissionException extends __BaseException {
143
- name = "LogDestinationPermissionException";
144
- $fault = "client";
145
- Message;
146
- constructor(opts) {
147
- super({
148
- name: "LogDestinationPermissionException",
149
- $fault: "client",
150
- ...opts,
151
- });
152
- Object.setPrototypeOf(this, LogDestinationPermissionException.prototype);
153
- this.Message = opts.Message;
154
- }
155
- };
156
- exports.ResourceOwnerCheckException = class ResourceOwnerCheckException extends __BaseException {
157
- name = "ResourceOwnerCheckException";
158
- $fault = "client";
159
- Message;
160
- constructor(opts) {
161
- super({
162
- name: "ResourceOwnerCheckException",
163
- $fault: "client",
164
- ...opts,
165
- });
166
- Object.setPrototypeOf(this, ResourceOwnerCheckException.prototype);
167
- this.Message = opts.Message;
168
- }
169
- };