@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
@@ -4,6 +4,7 @@ import { AssociateAvailabilityZonesCommand, } from "./commands/AssociateAvailabi
4
4
  import { AssociateFirewallPolicyCommand, } from "./commands/AssociateFirewallPolicyCommand";
5
5
  import { AssociateSubnetsCommand, } from "./commands/AssociateSubnetsCommand";
6
6
  import { AttachRuleGroupsToProxyConfigurationCommand, } from "./commands/AttachRuleGroupsToProxyConfigurationCommand";
7
+ import { CreateContainerAssociationCommand, } from "./commands/CreateContainerAssociationCommand";
7
8
  import { CreateFirewallCommand, } from "./commands/CreateFirewallCommand";
8
9
  import { CreateFirewallPolicyCommand, } from "./commands/CreateFirewallPolicyCommand";
9
10
  import { CreateProxyCommand, } from "./commands/CreateProxyCommand";
@@ -13,6 +14,7 @@ import { CreateProxyRulesCommand, } from "./commands/CreateProxyRulesCommand";
13
14
  import { CreateRuleGroupCommand, } from "./commands/CreateRuleGroupCommand";
14
15
  import { CreateTLSInspectionConfigurationCommand, } from "./commands/CreateTLSInspectionConfigurationCommand";
15
16
  import { CreateVpcEndpointAssociationCommand, } from "./commands/CreateVpcEndpointAssociationCommand";
17
+ import { DeleteContainerAssociationCommand, } from "./commands/DeleteContainerAssociationCommand";
16
18
  import { DeleteFirewallCommand, } from "./commands/DeleteFirewallCommand";
17
19
  import { DeleteFirewallPolicyCommand, } from "./commands/DeleteFirewallPolicyCommand";
18
20
  import { DeleteNetworkFirewallTransitGatewayAttachmentCommand, } from "./commands/DeleteNetworkFirewallTransitGatewayAttachmentCommand";
@@ -24,6 +26,7 @@ import { DeleteResourcePolicyCommand, } from "./commands/DeleteResourcePolicyCom
24
26
  import { DeleteRuleGroupCommand, } from "./commands/DeleteRuleGroupCommand";
25
27
  import { DeleteTLSInspectionConfigurationCommand, } from "./commands/DeleteTLSInspectionConfigurationCommand";
26
28
  import { DeleteVpcEndpointAssociationCommand, } from "./commands/DeleteVpcEndpointAssociationCommand";
29
+ import { DescribeContainerAssociationCommand, } from "./commands/DescribeContainerAssociationCommand";
27
30
  import { DescribeFirewallCommand, } from "./commands/DescribeFirewallCommand";
28
31
  import { DescribeFirewallMetadataCommand, } from "./commands/DescribeFirewallMetadataCommand";
29
32
  import { DescribeFirewallPolicyCommand, } from "./commands/DescribeFirewallPolicyCommand";
@@ -44,6 +47,7 @@ import { DisassociateAvailabilityZonesCommand, } from "./commands/DisassociateAv
44
47
  import { DisassociateSubnetsCommand, } from "./commands/DisassociateSubnetsCommand";
45
48
  import { GetAnalysisReportResultsCommand, } from "./commands/GetAnalysisReportResultsCommand";
46
49
  import { ListAnalysisReportsCommand, } from "./commands/ListAnalysisReportsCommand";
50
+ import { ListContainerAssociationsCommand, } from "./commands/ListContainerAssociationsCommand";
47
51
  import { ListFirewallPoliciesCommand, } from "./commands/ListFirewallPoliciesCommand";
48
52
  import { ListFirewallsCommand, } from "./commands/ListFirewallsCommand";
49
53
  import { ListFlowOperationResultsCommand, } from "./commands/ListFlowOperationResultsCommand";
@@ -63,6 +67,7 @@ import { StartFlowFlushCommand, } from "./commands/StartFlowFlushCommand";
63
67
  import { TagResourceCommand, } from "./commands/TagResourceCommand";
64
68
  import { UntagResourceCommand, } from "./commands/UntagResourceCommand";
65
69
  import { UpdateAvailabilityZoneChangeProtectionCommand, } from "./commands/UpdateAvailabilityZoneChangeProtectionCommand";
70
+ import { UpdateContainerAssociationCommand, } from "./commands/UpdateContainerAssociationCommand";
66
71
  import { UpdateFirewallAnalysisSettingsCommand, } from "./commands/UpdateFirewallAnalysisSettingsCommand";
67
72
  import { UpdateFirewallDeleteProtectionCommand, } from "./commands/UpdateFirewallDeleteProtectionCommand";
68
73
  import { UpdateFirewallDescriptionCommand, } from "./commands/UpdateFirewallDescriptionCommand";
@@ -81,6 +86,7 @@ import { UpdateTLSInspectionConfigurationCommand, } from "./commands/UpdateTLSIn
81
86
  import { NetworkFirewallClient } from "./NetworkFirewallClient";
82
87
  import { paginateGetAnalysisReportResults } from "./pagination/GetAnalysisReportResultsPaginator";
83
88
  import { paginateListAnalysisReports } from "./pagination/ListAnalysisReportsPaginator";
89
+ import { paginateListContainerAssociations } from "./pagination/ListContainerAssociationsPaginator";
84
90
  import { paginateListFirewallPolicies } from "./pagination/ListFirewallPoliciesPaginator";
85
91
  import { paginateListFirewalls } from "./pagination/ListFirewallsPaginator";
86
92
  import { paginateListFlowOperationResults } from "./pagination/ListFlowOperationResultsPaginator";
@@ -98,6 +104,7 @@ const commands = {
98
104
  AssociateFirewallPolicyCommand,
99
105
  AssociateSubnetsCommand,
100
106
  AttachRuleGroupsToProxyConfigurationCommand,
107
+ CreateContainerAssociationCommand,
101
108
  CreateFirewallCommand,
102
109
  CreateFirewallPolicyCommand,
103
110
  CreateProxyCommand,
@@ -107,6 +114,7 @@ const commands = {
107
114
  CreateRuleGroupCommand,
108
115
  CreateTLSInspectionConfigurationCommand,
109
116
  CreateVpcEndpointAssociationCommand,
117
+ DeleteContainerAssociationCommand,
110
118
  DeleteFirewallCommand,
111
119
  DeleteFirewallPolicyCommand,
112
120
  DeleteNetworkFirewallTransitGatewayAttachmentCommand,
@@ -118,6 +126,7 @@ const commands = {
118
126
  DeleteRuleGroupCommand,
119
127
  DeleteTLSInspectionConfigurationCommand,
120
128
  DeleteVpcEndpointAssociationCommand,
129
+ DescribeContainerAssociationCommand,
121
130
  DescribeFirewallCommand,
122
131
  DescribeFirewallMetadataCommand,
123
132
  DescribeFirewallPolicyCommand,
@@ -138,6 +147,7 @@ const commands = {
138
147
  DisassociateSubnetsCommand,
139
148
  GetAnalysisReportResultsCommand,
140
149
  ListAnalysisReportsCommand,
150
+ ListContainerAssociationsCommand,
141
151
  ListFirewallPoliciesCommand,
142
152
  ListFirewallsCommand,
143
153
  ListFlowOperationResultsCommand,
@@ -157,6 +167,7 @@ const commands = {
157
167
  TagResourceCommand,
158
168
  UntagResourceCommand,
159
169
  UpdateAvailabilityZoneChangeProtectionCommand,
170
+ UpdateContainerAssociationCommand,
160
171
  UpdateFirewallAnalysisSettingsCommand,
161
172
  UpdateFirewallDeleteProtectionCommand,
162
173
  UpdateFirewallDescriptionCommand,
@@ -176,6 +187,7 @@ const commands = {
176
187
  const paginators = {
177
188
  paginateGetAnalysisReportResults,
178
189
  paginateListAnalysisReports,
190
+ paginateListContainerAssociations,
179
191
  paginateListFirewallPolicies,
180
192
  paginateListFirewalls,
181
193
  paginateListFlowOperationResults,
@@ -0,0 +1,16 @@
1
+ import { Command as $Command } from "@smithy/core/client";
2
+ import { getEndpointPlugin } from "@smithy/core/endpoints";
3
+ import { commonParams } from "../endpoint/EndpointParameters";
4
+ import { CreateContainerAssociation$ } from "../schemas/schemas_0";
5
+ export { $Command };
6
+ export class CreateContainerAssociationCommand extends $Command
7
+ .classBuilder()
8
+ .ep(commonParams)
9
+ .m(function (Command, cs, config, o) {
10
+ return [getEndpointPlugin(config, Command.getEndpointParameterInstructions())];
11
+ })
12
+ .s("NetworkFirewall_20201112", "CreateContainerAssociation", {})
13
+ .n("NetworkFirewallClient", "CreateContainerAssociationCommand")
14
+ .sc(CreateContainerAssociation$)
15
+ .build() {
16
+ }
@@ -0,0 +1,16 @@
1
+ import { Command as $Command } from "@smithy/core/client";
2
+ import { getEndpointPlugin } from "@smithy/core/endpoints";
3
+ import { commonParams } from "../endpoint/EndpointParameters";
4
+ import { DeleteContainerAssociation$ } from "../schemas/schemas_0";
5
+ export { $Command };
6
+ export class DeleteContainerAssociationCommand extends $Command
7
+ .classBuilder()
8
+ .ep(commonParams)
9
+ .m(function (Command, cs, config, o) {
10
+ return [getEndpointPlugin(config, Command.getEndpointParameterInstructions())];
11
+ })
12
+ .s("NetworkFirewall_20201112", "DeleteContainerAssociation", {})
13
+ .n("NetworkFirewallClient", "DeleteContainerAssociationCommand")
14
+ .sc(DeleteContainerAssociation$)
15
+ .build() {
16
+ }
@@ -0,0 +1,16 @@
1
+ import { Command as $Command } from "@smithy/core/client";
2
+ import { getEndpointPlugin } from "@smithy/core/endpoints";
3
+ import { commonParams } from "../endpoint/EndpointParameters";
4
+ import { DescribeContainerAssociation$ } from "../schemas/schemas_0";
5
+ export { $Command };
6
+ export class DescribeContainerAssociationCommand extends $Command
7
+ .classBuilder()
8
+ .ep(commonParams)
9
+ .m(function (Command, cs, config, o) {
10
+ return [getEndpointPlugin(config, Command.getEndpointParameterInstructions())];
11
+ })
12
+ .s("NetworkFirewall_20201112", "DescribeContainerAssociation", {})
13
+ .n("NetworkFirewallClient", "DescribeContainerAssociationCommand")
14
+ .sc(DescribeContainerAssociation$)
15
+ .build() {
16
+ }
@@ -0,0 +1,16 @@
1
+ import { Command as $Command } from "@smithy/core/client";
2
+ import { getEndpointPlugin } from "@smithy/core/endpoints";
3
+ import { commonParams } from "../endpoint/EndpointParameters";
4
+ import { ListContainerAssociations$ } from "../schemas/schemas_0";
5
+ export { $Command };
6
+ export class ListContainerAssociationsCommand extends $Command
7
+ .classBuilder()
8
+ .ep(commonParams)
9
+ .m(function (Command, cs, config, o) {
10
+ return [getEndpointPlugin(config, Command.getEndpointParameterInstructions())];
11
+ })
12
+ .s("NetworkFirewall_20201112", "ListContainerAssociations", {})
13
+ .n("NetworkFirewallClient", "ListContainerAssociationsCommand")
14
+ .sc(ListContainerAssociations$)
15
+ .build() {
16
+ }
@@ -0,0 +1,16 @@
1
+ import { Command as $Command } from "@smithy/core/client";
2
+ import { getEndpointPlugin } from "@smithy/core/endpoints";
3
+ import { commonParams } from "../endpoint/EndpointParameters";
4
+ import { UpdateContainerAssociation$ } from "../schemas/schemas_0";
5
+ export { $Command };
6
+ export class UpdateContainerAssociationCommand extends $Command
7
+ .classBuilder()
8
+ .ep(commonParams)
9
+ .m(function (Command, cs, config, o) {
10
+ return [getEndpointPlugin(config, Command.getEndpointParameterInstructions())];
11
+ })
12
+ .s("NetworkFirewall_20201112", "UpdateContainerAssociation", {})
13
+ .n("NetworkFirewallClient", "UpdateContainerAssociationCommand")
14
+ .sc(UpdateContainerAssociation$)
15
+ .build() {
16
+ }
@@ -3,6 +3,7 @@ export * from "./AssociateAvailabilityZonesCommand";
3
3
  export * from "./AssociateFirewallPolicyCommand";
4
4
  export * from "./AssociateSubnetsCommand";
5
5
  export * from "./AttachRuleGroupsToProxyConfigurationCommand";
6
+ export * from "./CreateContainerAssociationCommand";
6
7
  export * from "./CreateFirewallCommand";
7
8
  export * from "./CreateFirewallPolicyCommand";
8
9
  export * from "./CreateProxyCommand";
@@ -12,6 +13,7 @@ export * from "./CreateProxyRulesCommand";
12
13
  export * from "./CreateRuleGroupCommand";
13
14
  export * from "./CreateTLSInspectionConfigurationCommand";
14
15
  export * from "./CreateVpcEndpointAssociationCommand";
16
+ export * from "./DeleteContainerAssociationCommand";
15
17
  export * from "./DeleteFirewallCommand";
16
18
  export * from "./DeleteFirewallPolicyCommand";
17
19
  export * from "./DeleteNetworkFirewallTransitGatewayAttachmentCommand";
@@ -23,6 +25,7 @@ export * from "./DeleteResourcePolicyCommand";
23
25
  export * from "./DeleteRuleGroupCommand";
24
26
  export * from "./DeleteTLSInspectionConfigurationCommand";
25
27
  export * from "./DeleteVpcEndpointAssociationCommand";
28
+ export * from "./DescribeContainerAssociationCommand";
26
29
  export * from "./DescribeFirewallCommand";
27
30
  export * from "./DescribeFirewallMetadataCommand";
28
31
  export * from "./DescribeFirewallPolicyCommand";
@@ -43,6 +46,7 @@ export * from "./DisassociateAvailabilityZonesCommand";
43
46
  export * from "./DisassociateSubnetsCommand";
44
47
  export * from "./GetAnalysisReportResultsCommand";
45
48
  export * from "./ListAnalysisReportsCommand";
49
+ export * from "./ListContainerAssociationsCommand";
46
50
  export * from "./ListFirewallPoliciesCommand";
47
51
  export * from "./ListFirewallsCommand";
48
52
  export * from "./ListFlowOperationResultsCommand";
@@ -62,6 +66,7 @@ export * from "./StartFlowFlushCommand";
62
66
  export * from "./TagResourceCommand";
63
67
  export * from "./UntagResourceCommand";
64
68
  export * from "./UpdateAvailabilityZoneChangeProtectionCommand";
69
+ export * from "./UpdateContainerAssociationCommand";
65
70
  export * from "./UpdateFirewallAnalysisSettingsCommand";
66
71
  export * from "./UpdateFirewallDeleteProtectionCommand";
67
72
  export * from "./UpdateFirewallDescriptionCommand";
@@ -45,6 +45,15 @@ export const ConfigurationSyncState = {
45
45
  IN_SYNC: "IN_SYNC",
46
46
  PENDING: "PENDING",
47
47
  };
48
+ export const ContainerAssociationStatus = {
49
+ ACTIVE: "ACTIVE",
50
+ CREATING: "CREATING",
51
+ DELETING: "DELETING",
52
+ };
53
+ export const ContainerMonitoringType = {
54
+ ECS: "ECS",
55
+ EKS: "EKS",
56
+ };
48
57
  export const EncryptionType = {
49
58
  AWS_OWNED_KMS_KEY: "AWS_OWNED_KMS_KEY",
50
59
  CUSTOMER_KMS: "CUSTOMER_KMS",
@@ -0,0 +1,4 @@
1
+ import { createPaginator } from "@smithy/core";
2
+ import { ListContainerAssociationsCommand, } from "../commands/ListContainerAssociationsCommand";
3
+ import { NetworkFirewallClient } from "../NetworkFirewallClient";
4
+ export const paginateListContainerAssociations = createPaginator(NetworkFirewallClient, ListContainerAssociationsCommand, "NextToken", "NextToken", "MaxResults");
@@ -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";
@@ -1,5 +1,4 @@
1
1
  import packageInfo from "../package.json";
2
- import { Sha256 } from "@aws-crypto/sha256-browser";
3
2
  import { createDefaultUserAgentProvider } from "@aws-sdk/core/client";
4
3
  import { invalidProvider, loadConfigsForDefaultMode } from "@smithy/core/client";
5
4
  import { DEFAULT_USE_DUALSTACK_ENDPOINT, DEFAULT_USE_FIPS_ENDPOINT, resolveDefaultsModeConfig, } from "@smithy/core/config";
@@ -23,7 +22,6 @@ export const getRuntimeConfig = (config) => {
23
22
  region: config?.region ?? invalidProvider("Region is missing"),
24
23
  requestHandler: RequestHandler.create(config?.requestHandler ?? defaultConfigProvider),
25
24
  retryMode: config?.retryMode ?? (async () => (await defaultConfigProvider()).retryMode || DEFAULT_RETRY_MODE),
26
- sha256: config?.sha256 ?? Sha256,
27
25
  streamCollector: config?.streamCollector ?? streamCollector,
28
26
  useDualstackEndpoint: config?.useDualstackEndpoint ?? (() => Promise.resolve(DEFAULT_USE_DUALSTACK_ENDPOINT)),
29
27
  useFipsEndpoint: config?.useFipsEndpoint ?? (() => Promise.resolve(DEFAULT_USE_FIPS_ENDPOINT)),
@@ -5,7 +5,7 @@ import { defaultProvider as credentialDefaultProvider } from "@aws-sdk/credentia
5
5
  import { emitWarningIfUnsupportedVersion, loadConfigsForDefaultMode } from "@smithy/core/client";
6
6
  import { loadConfig as loadNodeConfig, NODE_REGION_CONFIG_FILE_OPTIONS, NODE_REGION_CONFIG_OPTIONS, NODE_USE_DUALSTACK_ENDPOINT_CONFIG_OPTIONS, NODE_USE_FIPS_ENDPOINT_CONFIG_OPTIONS, resolveDefaultsModeConfig, } from "@smithy/core/config";
7
7
  import { DEFAULT_RETRY_MODE, NODE_MAX_ATTEMPT_CONFIG_OPTIONS, NODE_RETRY_MODE_CONFIG_OPTIONS, } from "@smithy/core/retry";
8
- import { calculateBodyLength, Hash } from "@smithy/core/serde";
8
+ import { calculateBodyLength } from "@smithy/core/serde";
9
9
  import { NodeHttpHandler as RequestHandler, streamCollector } from "@smithy/node-http-handler";
10
10
  import { getRuntimeConfig as getSharedRuntimeConfig } from "./runtimeConfig.shared";
11
11
  export const getRuntimeConfig = (config) => {
@@ -35,7 +35,6 @@ export const getRuntimeConfig = (config) => {
35
35
  ...NODE_RETRY_MODE_CONFIG_OPTIONS,
36
36
  default: async () => (await defaultConfigProvider()).retryMode || DEFAULT_RETRY_MODE,
37
37
  }, config),
38
- sha256: config?.sha256 ?? Hash.bind(null, "sha256"),
39
38
  streamCollector: config?.streamCollector ?? streamCollector,
40
39
  useDualstackEndpoint: config?.useDualstackEndpoint ?? loadNodeConfig(NODE_USE_DUALSTACK_ENDPOINT_CONFIG_OPTIONS, loaderConfig),
41
40
  useFipsEndpoint: config?.useFipsEndpoint ?? loadNodeConfig(NODE_USE_FIPS_ENDPOINT_CONFIG_OPTIONS, loaderConfig),
@@ -1,4 +1,3 @@
1
- import { Sha256 } from "@aws-crypto/sha256-js";
2
1
  import { getRuntimeConfig as getBrowserRuntimeConfig } from "./runtimeConfig.browser";
3
2
  export const getRuntimeConfig = (config) => {
4
3
  const browserDefaults = getBrowserRuntimeConfig(config);
@@ -6,6 +5,5 @@ export const getRuntimeConfig = (config) => {
6
5
  ...browserDefaults,
7
6
  ...config,
8
7
  runtime: "react-native",
9
- sha256: config?.sha256 ?? Sha256,
10
8
  };
11
9
  };
@@ -1,5 +1,6 @@
1
1
  import { AwsSdkSigV4Signer } from "@aws-sdk/core/httpAuthSchemes";
2
2
  import { AwsJson1_0Protocol } from "@aws-sdk/core/protocols";
3
+ import { Sha256 } from "@smithy/core/checksum";
3
4
  import { NoOpLogger } from "@smithy/core/client";
4
5
  import { parseUrl } from "@smithy/core/protocols";
5
6
  import { fromBase64, fromUtf8, toBase64, toUtf8 } from "@smithy/core/serde";
@@ -31,6 +32,7 @@ export const getRuntimeConfig = (config) => {
31
32
  serviceTarget: "NetworkFirewall_20201112",
32
33
  },
33
34
  serviceId: config?.serviceId ?? "Network Firewall",
35
+ sha256: config?.sha256 ?? Sha256,
34
36
  urlParser: config?.urlParser ?? parseUrl,
35
37
  utf8Decoder: config?.utf8Decoder ?? fromUtf8,
36
38
  utf8Encoder: config?.utf8Encoder ?? toUtf8,