@aws-sdk/client-bedrock 3.943.0 → 3.946.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 +8 -0
- package/dist-cjs/index.js +306 -1079
- package/dist-cjs/runtimeConfig.browser.js +2 -2
- package/dist-cjs/runtimeConfig.js +3 -4
- package/dist-es/Bedrock.js +2 -0
- package/dist-es/BedrockClient.js +2 -2
- package/dist-es/commands/UpdateCustomModelDeploymentCommand.js +16 -0
- package/dist-es/commands/index.js +1 -0
- package/dist-es/models/enums.js +11 -0
- package/dist-es/runtimeConfig.browser.js +2 -2
- package/dist-es/runtimeConfig.js +2 -3
- package/dist-es/schemas/schemas_0.js +279 -1079
- package/dist-types/Bedrock.d.ts +8 -1
- package/dist-types/BedrockClient.d.ts +13 -12
- package/dist-types/auth/httpAuthExtensionConfiguration.d.ts +2 -2
- package/dist-types/auth/httpAuthSchemeProvider.d.ts +2 -2
- package/dist-types/commands/BatchDeleteEvaluationJobCommand.d.ts +3 -3
- package/dist-types/commands/CancelAutomatedReasoningPolicyBuildWorkflowCommand.d.ts +3 -3
- package/dist-types/commands/CreateAutomatedReasoningPolicyCommand.d.ts +3 -3
- package/dist-types/commands/CreateAutomatedReasoningPolicyTestCaseCommand.d.ts +3 -3
- package/dist-types/commands/CreateAutomatedReasoningPolicyVersionCommand.d.ts +3 -3
- package/dist-types/commands/CreateCustomModelCommand.d.ts +3 -3
- package/dist-types/commands/CreateCustomModelDeploymentCommand.d.ts +3 -3
- package/dist-types/commands/CreateEvaluationJobCommand.d.ts +4 -4
- package/dist-types/commands/CreateFoundationModelAgreementCommand.d.ts +3 -3
- package/dist-types/commands/CreateGuardrailCommand.d.ts +3 -3
- package/dist-types/commands/CreateGuardrailVersionCommand.d.ts +3 -3
- package/dist-types/commands/CreateInferenceProfileCommand.d.ts +3 -3
- package/dist-types/commands/CreateMarketplaceModelEndpointCommand.d.ts +3 -3
- package/dist-types/commands/CreateModelCopyJobCommand.d.ts +3 -3
- package/dist-types/commands/CreateModelCustomizationJobCommand.d.ts +21 -4
- package/dist-types/commands/CreateModelImportJobCommand.d.ts +3 -3
- package/dist-types/commands/CreateModelInvocationJobCommand.d.ts +3 -3
- package/dist-types/commands/CreatePromptRouterCommand.d.ts +3 -3
- package/dist-types/commands/CreateProvisionedModelThroughputCommand.d.ts +3 -3
- package/dist-types/commands/DeleteAutomatedReasoningPolicyBuildWorkflowCommand.d.ts +3 -3
- package/dist-types/commands/DeleteAutomatedReasoningPolicyCommand.d.ts +3 -3
- package/dist-types/commands/DeleteAutomatedReasoningPolicyTestCaseCommand.d.ts +3 -3
- package/dist-types/commands/DeleteCustomModelCommand.d.ts +3 -3
- package/dist-types/commands/DeleteCustomModelDeploymentCommand.d.ts +3 -3
- package/dist-types/commands/DeleteEnforcedGuardrailConfigurationCommand.d.ts +3 -3
- package/dist-types/commands/DeleteFoundationModelAgreementCommand.d.ts +3 -3
- package/dist-types/commands/DeleteGuardrailCommand.d.ts +3 -3
- package/dist-types/commands/DeleteImportedModelCommand.d.ts +3 -3
- package/dist-types/commands/DeleteInferenceProfileCommand.d.ts +4 -3
- package/dist-types/commands/DeleteMarketplaceModelEndpointCommand.d.ts +3 -3
- package/dist-types/commands/DeleteModelInvocationLoggingConfigurationCommand.d.ts +3 -3
- package/dist-types/commands/DeletePromptRouterCommand.d.ts +3 -3
- package/dist-types/commands/DeleteProvisionedModelThroughputCommand.d.ts +3 -3
- package/dist-types/commands/DeregisterMarketplaceModelEndpointCommand.d.ts +3 -3
- package/dist-types/commands/ExportAutomatedReasoningPolicyVersionCommand.d.ts +3 -3
- package/dist-types/commands/GetAutomatedReasoningPolicyAnnotationsCommand.d.ts +3 -3
- package/dist-types/commands/GetAutomatedReasoningPolicyBuildWorkflowCommand.d.ts +3 -3
- package/dist-types/commands/GetAutomatedReasoningPolicyBuildWorkflowResultAssetsCommand.d.ts +3 -3
- package/dist-types/commands/GetAutomatedReasoningPolicyCommand.d.ts +3 -3
- package/dist-types/commands/GetAutomatedReasoningPolicyNextScenarioCommand.d.ts +3 -3
- package/dist-types/commands/GetAutomatedReasoningPolicyTestCaseCommand.d.ts +3 -3
- package/dist-types/commands/GetAutomatedReasoningPolicyTestResultCommand.d.ts +3 -3
- package/dist-types/commands/GetCustomModelCommand.d.ts +21 -4
- package/dist-types/commands/GetCustomModelDeploymentCommand.d.ts +7 -3
- package/dist-types/commands/GetEvaluationJobCommand.d.ts +4 -4
- package/dist-types/commands/GetFoundationModelAvailabilityCommand.d.ts +3 -3
- package/dist-types/commands/GetFoundationModelCommand.d.ts +3 -3
- package/dist-types/commands/GetGuardrailCommand.d.ts +3 -3
- package/dist-types/commands/GetImportedModelCommand.d.ts +3 -3
- package/dist-types/commands/GetInferenceProfileCommand.d.ts +3 -3
- package/dist-types/commands/GetMarketplaceModelEndpointCommand.d.ts +3 -3
- package/dist-types/commands/GetModelCopyJobCommand.d.ts +3 -3
- package/dist-types/commands/GetModelCustomizationJobCommand.d.ts +21 -4
- package/dist-types/commands/GetModelImportJobCommand.d.ts +3 -3
- package/dist-types/commands/GetModelInvocationJobCommand.d.ts +3 -3
- package/dist-types/commands/GetModelInvocationLoggingConfigurationCommand.d.ts +3 -3
- package/dist-types/commands/GetPromptRouterCommand.d.ts +3 -3
- package/dist-types/commands/GetProvisionedModelThroughputCommand.d.ts +3 -3
- package/dist-types/commands/GetUseCaseForModelAccessCommand.d.ts +3 -3
- package/dist-types/commands/ListAutomatedReasoningPoliciesCommand.d.ts +3 -3
- package/dist-types/commands/ListAutomatedReasoningPolicyBuildWorkflowsCommand.d.ts +3 -3
- package/dist-types/commands/ListAutomatedReasoningPolicyTestCasesCommand.d.ts +3 -3
- package/dist-types/commands/ListAutomatedReasoningPolicyTestResultsCommand.d.ts +3 -3
- package/dist-types/commands/ListCustomModelDeploymentsCommand.d.ts +3 -3
- package/dist-types/commands/ListCustomModelsCommand.d.ts +4 -4
- package/dist-types/commands/ListEnforcedGuardrailsConfigurationCommand.d.ts +3 -3
- package/dist-types/commands/ListEvaluationJobsCommand.d.ts +3 -3
- package/dist-types/commands/ListFoundationModelAgreementOffersCommand.d.ts +3 -3
- package/dist-types/commands/ListFoundationModelsCommand.d.ts +3 -3
- package/dist-types/commands/ListGuardrailsCommand.d.ts +3 -3
- package/dist-types/commands/ListImportedModelsCommand.d.ts +3 -3
- package/dist-types/commands/ListInferenceProfilesCommand.d.ts +3 -3
- package/dist-types/commands/ListMarketplaceModelEndpointsCommand.d.ts +3 -3
- package/dist-types/commands/ListModelCopyJobsCommand.d.ts +3 -3
- package/dist-types/commands/ListModelCustomizationJobsCommand.d.ts +4 -4
- package/dist-types/commands/ListModelImportJobsCommand.d.ts +3 -3
- package/dist-types/commands/ListModelInvocationJobsCommand.d.ts +3 -3
- package/dist-types/commands/ListPromptRoutersCommand.d.ts +3 -3
- package/dist-types/commands/ListProvisionedModelThroughputsCommand.d.ts +3 -3
- package/dist-types/commands/ListTagsForResourceCommand.d.ts +3 -3
- package/dist-types/commands/PutEnforcedGuardrailConfigurationCommand.d.ts +3 -3
- package/dist-types/commands/PutModelInvocationLoggingConfigurationCommand.d.ts +3 -3
- package/dist-types/commands/PutUseCaseForModelAccessCommand.d.ts +3 -3
- package/dist-types/commands/RegisterMarketplaceModelEndpointCommand.d.ts +3 -3
- package/dist-types/commands/StartAutomatedReasoningPolicyBuildWorkflowCommand.d.ts +3 -3
- package/dist-types/commands/StartAutomatedReasoningPolicyTestWorkflowCommand.d.ts +3 -3
- package/dist-types/commands/StopEvaluationJobCommand.d.ts +3 -3
- package/dist-types/commands/StopModelCustomizationJobCommand.d.ts +3 -3
- package/dist-types/commands/StopModelInvocationJobCommand.d.ts +3 -3
- package/dist-types/commands/TagResourceCommand.d.ts +3 -3
- package/dist-types/commands/UntagResourceCommand.d.ts +3 -3
- package/dist-types/commands/UpdateAutomatedReasoningPolicyAnnotationsCommand.d.ts +3 -3
- package/dist-types/commands/UpdateAutomatedReasoningPolicyCommand.d.ts +3 -3
- package/dist-types/commands/UpdateAutomatedReasoningPolicyTestCaseCommand.d.ts +3 -3
- package/dist-types/commands/UpdateCustomModelDeploymentCommand.d.ts +90 -0
- package/dist-types/commands/UpdateGuardrailCommand.d.ts +3 -3
- package/dist-types/commands/UpdateMarketplaceModelEndpointCommand.d.ts +3 -3
- package/dist-types/commands/UpdateProvisionedModelThroughputCommand.d.ts +3 -3
- package/dist-types/commands/index.d.ts +1 -0
- package/dist-types/endpoint/EndpointParameters.d.ts +13 -1
- package/dist-types/endpoint/endpointResolver.d.ts +5 -2
- package/dist-types/extensionConfiguration.d.ts +4 -4
- package/dist-types/models/BedrockServiceException.d.ts +1 -1
- package/dist-types/models/enums.d.ts +27 -0
- package/dist-types/models/errors.d.ts +1 -1
- package/dist-types/models/models_0.d.ts +166 -164
- package/dist-types/models/models_1.d.ts +164 -2
- package/dist-types/pagination/Interfaces.d.ts +1 -1
- package/dist-types/pagination/ListAutomatedReasoningPoliciesPaginator.d.ts +1 -1
- package/dist-types/pagination/ListAutomatedReasoningPolicyBuildWorkflowsPaginator.d.ts +1 -1
- package/dist-types/pagination/ListAutomatedReasoningPolicyTestCasesPaginator.d.ts +1 -1
- package/dist-types/pagination/ListAutomatedReasoningPolicyTestResultsPaginator.d.ts +1 -1
- package/dist-types/pagination/ListCustomModelDeploymentsPaginator.d.ts +1 -1
- package/dist-types/pagination/ListCustomModelsPaginator.d.ts +1 -1
- package/dist-types/pagination/ListEnforcedGuardrailsConfigurationPaginator.d.ts +1 -1
- package/dist-types/pagination/ListEvaluationJobsPaginator.d.ts +1 -1
- package/dist-types/pagination/ListGuardrailsPaginator.d.ts +1 -1
- package/dist-types/pagination/ListImportedModelsPaginator.d.ts +1 -1
- package/dist-types/pagination/ListInferenceProfilesPaginator.d.ts +1 -1
- package/dist-types/pagination/ListMarketplaceModelEndpointsPaginator.d.ts +1 -1
- package/dist-types/pagination/ListModelCopyJobsPaginator.d.ts +1 -1
- package/dist-types/pagination/ListModelCustomizationJobsPaginator.d.ts +1 -1
- package/dist-types/pagination/ListModelImportJobsPaginator.d.ts +1 -1
- package/dist-types/pagination/ListModelInvocationJobsPaginator.d.ts +1 -1
- package/dist-types/pagination/ListPromptRoutersPaginator.d.ts +1 -1
- package/dist-types/pagination/ListProvisionedModelThroughputsPaginator.d.ts +1 -1
- package/dist-types/runtimeConfig.browser.d.ts +1 -1
- package/dist-types/runtimeConfig.d.ts +2 -2
- package/dist-types/runtimeConfig.native.d.ts +1 -1
- package/dist-types/runtimeConfig.shared.d.ts +2 -2
- package/dist-types/runtimeExtensions.d.ts +1 -1
- package/dist-types/schemas/schemas_0.d.ts +9 -1
- package/dist-types/ts3.4/Bedrock.d.ts +17 -0
- package/dist-types/ts3.4/BedrockClient.d.ts +9 -3
- package/dist-types/ts3.4/auth/httpAuthExtensionConfiguration.d.ts +1 -1
- package/dist-types/ts3.4/auth/httpAuthSchemeProvider.d.ts +1 -1
- package/dist-types/ts3.4/commands/DeleteInferenceProfileCommand.d.ts +2 -4
- package/dist-types/ts3.4/commands/GetInferenceProfileCommand.d.ts +1 -1
- package/dist-types/ts3.4/commands/ListInferenceProfilesCommand.d.ts +1 -1
- package/dist-types/ts3.4/commands/UpdateCustomModelDeploymentCommand.d.ts +51 -0
- package/dist-types/ts3.4/commands/index.d.ts +1 -0
- package/dist-types/ts3.4/models/BedrockServiceException.d.ts +1 -1
- package/dist-types/ts3.4/models/enums.d.ts +15 -0
- package/dist-types/ts3.4/models/models_0.d.ts +57 -39
- package/dist-types/ts3.4/models/models_1.d.ts +45 -5
- package/dist-types/ts3.4/schemas/schemas_0.d.ts +8 -0
- package/package.json +14 -13
|
@@ -8,11 +8,11 @@ const util_user_agent_browser_1 = require("@aws-sdk/util-user-agent-browser");
|
|
|
8
8
|
const config_resolver_1 = require("@smithy/config-resolver");
|
|
9
9
|
const fetch_http_handler_1 = require("@smithy/fetch-http-handler");
|
|
10
10
|
const invalid_dependency_1 = require("@smithy/invalid-dependency");
|
|
11
|
+
const smithy_client_1 = require("@smithy/smithy-client");
|
|
11
12
|
const util_body_length_browser_1 = require("@smithy/util-body-length-browser");
|
|
13
|
+
const util_defaults_mode_browser_1 = require("@smithy/util-defaults-mode-browser");
|
|
12
14
|
const util_retry_1 = require("@smithy/util-retry");
|
|
13
15
|
const runtimeConfig_shared_1 = require("./runtimeConfig.shared");
|
|
14
|
-
const smithy_client_1 = require("@smithy/smithy-client");
|
|
15
|
-
const util_defaults_mode_browser_1 = require("@smithy/util-defaults-mode-browser");
|
|
16
16
|
const getRuntimeConfig = (config) => {
|
|
17
17
|
const defaultsMode = (0, util_defaults_mode_browser_1.resolveDefaultsModeConfig)(config);
|
|
18
18
|
const defaultConfigProvider = () => defaultsMode().then(smithy_client_1.loadConfigsForDefaultMode);
|
|
@@ -13,14 +13,13 @@ const hash_node_1 = require("@smithy/hash-node");
|
|
|
13
13
|
const middleware_retry_1 = require("@smithy/middleware-retry");
|
|
14
14
|
const node_config_provider_1 = require("@smithy/node-config-provider");
|
|
15
15
|
const node_http_handler_1 = require("@smithy/node-http-handler");
|
|
16
|
+
const smithy_client_1 = require("@smithy/smithy-client");
|
|
16
17
|
const util_body_length_node_1 = require("@smithy/util-body-length-node");
|
|
18
|
+
const util_defaults_mode_node_1 = require("@smithy/util-defaults-mode-node");
|
|
17
19
|
const util_retry_1 = require("@smithy/util-retry");
|
|
18
20
|
const runtimeConfig_shared_1 = require("./runtimeConfig.shared");
|
|
19
|
-
const smithy_client_1 = require("@smithy/smithy-client");
|
|
20
|
-
const util_defaults_mode_node_1 = require("@smithy/util-defaults-mode-node");
|
|
21
|
-
const smithy_client_2 = require("@smithy/smithy-client");
|
|
22
21
|
const getRuntimeConfig = (config) => {
|
|
23
|
-
(0,
|
|
22
|
+
(0, smithy_client_1.emitWarningIfUnsupportedVersion)(process.version);
|
|
24
23
|
const defaultsMode = (0, util_defaults_mode_node_1.resolveDefaultsModeConfig)(config);
|
|
25
24
|
const defaultConfigProvider = () => defaultsMode().then(smithy_client_1.loadConfigsForDefaultMode);
|
|
26
25
|
const clientSharedValues = (0, runtimeConfig_shared_1.getRuntimeConfig)(config);
|
package/dist-es/Bedrock.js
CHANGED
|
@@ -94,6 +94,7 @@ import { UntagResourceCommand, } from "./commands/UntagResourceCommand";
|
|
|
94
94
|
import { UpdateAutomatedReasoningPolicyAnnotationsCommand, } from "./commands/UpdateAutomatedReasoningPolicyAnnotationsCommand";
|
|
95
95
|
import { UpdateAutomatedReasoningPolicyCommand, } from "./commands/UpdateAutomatedReasoningPolicyCommand";
|
|
96
96
|
import { UpdateAutomatedReasoningPolicyTestCaseCommand, } from "./commands/UpdateAutomatedReasoningPolicyTestCaseCommand";
|
|
97
|
+
import { UpdateCustomModelDeploymentCommand, } from "./commands/UpdateCustomModelDeploymentCommand";
|
|
97
98
|
import { UpdateGuardrailCommand, } from "./commands/UpdateGuardrailCommand";
|
|
98
99
|
import { UpdateMarketplaceModelEndpointCommand, } from "./commands/UpdateMarketplaceModelEndpointCommand";
|
|
99
100
|
import { UpdateProvisionedModelThroughputCommand, } from "./commands/UpdateProvisionedModelThroughputCommand";
|
|
@@ -192,6 +193,7 @@ const commands = {
|
|
|
192
193
|
UpdateAutomatedReasoningPolicyCommand,
|
|
193
194
|
UpdateAutomatedReasoningPolicyAnnotationsCommand,
|
|
194
195
|
UpdateAutomatedReasoningPolicyTestCaseCommand,
|
|
196
|
+
UpdateCustomModelDeploymentCommand,
|
|
195
197
|
UpdateGuardrailCommand,
|
|
196
198
|
UpdateMarketplaceModelEndpointCommand,
|
|
197
199
|
UpdateProvisionedModelThroughputCommand,
|
package/dist-es/BedrockClient.js
CHANGED
|
@@ -6,8 +6,8 @@ import { resolveRegionConfig } from "@smithy/config-resolver";
|
|
|
6
6
|
import { DefaultIdentityProviderConfig, getHttpAuthSchemeEndpointRuleSetPlugin, getHttpSigningPlugin, } from "@smithy/core";
|
|
7
7
|
import { getSchemaSerdePlugin } from "@smithy/core/schema";
|
|
8
8
|
import { getContentLengthPlugin } from "@smithy/middleware-content-length";
|
|
9
|
-
import { resolveEndpointConfig } from "@smithy/middleware-endpoint";
|
|
10
|
-
import { getRetryPlugin, resolveRetryConfig } from "@smithy/middleware-retry";
|
|
9
|
+
import { resolveEndpointConfig, } from "@smithy/middleware-endpoint";
|
|
10
|
+
import { getRetryPlugin, resolveRetryConfig, } from "@smithy/middleware-retry";
|
|
11
11
|
import { Client as __Client, } from "@smithy/smithy-client";
|
|
12
12
|
import { defaultBedrockHttpAuthSchemeParametersProvider, resolveHttpAuthSchemeConfig, } from "./auth/httpAuthSchemeProvider";
|
|
13
13
|
import { resolveClientEndpointParameters, } from "./endpoint/EndpointParameters";
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
import { getEndpointPlugin } from "@smithy/middleware-endpoint";
|
|
2
|
+
import { Command as $Command } from "@smithy/smithy-client";
|
|
3
|
+
import { commonParams } from "../endpoint/EndpointParameters";
|
|
4
|
+
import { UpdateCustomModelDeployment } from "../schemas/schemas_0";
|
|
5
|
+
export { $Command };
|
|
6
|
+
export class UpdateCustomModelDeploymentCommand extends $Command
|
|
7
|
+
.classBuilder()
|
|
8
|
+
.ep(commonParams)
|
|
9
|
+
.m(function (Command, cs, config, o) {
|
|
10
|
+
return [getEndpointPlugin(config, Command.getEndpointParameterInstructions())];
|
|
11
|
+
})
|
|
12
|
+
.s("AmazonBedrockControlPlaneService", "UpdateCustomModelDeployment", {})
|
|
13
|
+
.n("BedrockClient", "UpdateCustomModelDeploymentCommand")
|
|
14
|
+
.sc(UpdateCustomModelDeployment)
|
|
15
|
+
.build() {
|
|
16
|
+
}
|
|
@@ -92,6 +92,7 @@ export * from "./UntagResourceCommand";
|
|
|
92
92
|
export * from "./UpdateAutomatedReasoningPolicyAnnotationsCommand";
|
|
93
93
|
export * from "./UpdateAutomatedReasoningPolicyCommand";
|
|
94
94
|
export * from "./UpdateAutomatedReasoningPolicyTestCaseCommand";
|
|
95
|
+
export * from "./UpdateCustomModelDeploymentCommand";
|
|
95
96
|
export * from "./UpdateGuardrailCommand";
|
|
96
97
|
export * from "./UpdateMarketplaceModelEndpointCommand";
|
|
97
98
|
export * from "./UpdateProvisionedModelThroughputCommand";
|
package/dist-es/models/enums.js
CHANGED
|
@@ -78,6 +78,11 @@ export const CustomModelDeploymentStatus = {
|
|
|
78
78
|
CREATING: "Creating",
|
|
79
79
|
FAILED: "Failed",
|
|
80
80
|
};
|
|
81
|
+
export const CustomModelDeploymentUpdateStatus = {
|
|
82
|
+
UPDATE_COMPLETED: "UpdateCompleted",
|
|
83
|
+
UPDATE_FAILED: "UpdateFailed",
|
|
84
|
+
UPDATING: "Updating",
|
|
85
|
+
};
|
|
81
86
|
export const SortModelsBy = {
|
|
82
87
|
CREATION_TIME: "CreationTime",
|
|
83
88
|
};
|
|
@@ -85,11 +90,17 @@ export const SortOrder = {
|
|
|
85
90
|
ASCENDING: "Ascending",
|
|
86
91
|
DESCENDING: "Descending",
|
|
87
92
|
};
|
|
93
|
+
export const ReasoningEffort = {
|
|
94
|
+
HIGH: "high",
|
|
95
|
+
LOW: "low",
|
|
96
|
+
MEDIUM: "medium",
|
|
97
|
+
};
|
|
88
98
|
export const CustomizationType = {
|
|
89
99
|
CONTINUED_PRE_TRAINING: "CONTINUED_PRE_TRAINING",
|
|
90
100
|
DISTILLATION: "DISTILLATION",
|
|
91
101
|
FINE_TUNING: "FINE_TUNING",
|
|
92
102
|
IMPORTED: "IMPORTED",
|
|
103
|
+
REINFORCEMENT_FINE_TUNING: "REINFORCEMENT_FINE_TUNING",
|
|
93
104
|
};
|
|
94
105
|
export const ModelStatus = {
|
|
95
106
|
ACTIVE: "Active",
|
|
@@ -4,11 +4,11 @@ import { createDefaultUserAgentProvider } from "@aws-sdk/util-user-agent-browser
|
|
|
4
4
|
import { DEFAULT_USE_DUALSTACK_ENDPOINT, DEFAULT_USE_FIPS_ENDPOINT } from "@smithy/config-resolver";
|
|
5
5
|
import { FetchHttpHandler as RequestHandler, streamCollector } from "@smithy/fetch-http-handler";
|
|
6
6
|
import { invalidProvider } from "@smithy/invalid-dependency";
|
|
7
|
+
import { loadConfigsForDefaultMode } from "@smithy/smithy-client";
|
|
7
8
|
import { calculateBodyLength } from "@smithy/util-body-length-browser";
|
|
9
|
+
import { resolveDefaultsModeConfig } from "@smithy/util-defaults-mode-browser";
|
|
8
10
|
import { DEFAULT_MAX_ATTEMPTS, DEFAULT_RETRY_MODE } from "@smithy/util-retry";
|
|
9
11
|
import { getRuntimeConfig as getSharedRuntimeConfig } from "./runtimeConfig.shared";
|
|
10
|
-
import { loadConfigsForDefaultMode } from "@smithy/smithy-client";
|
|
11
|
-
import { resolveDefaultsModeConfig } from "@smithy/util-defaults-mode-browser";
|
|
12
12
|
export const getRuntimeConfig = (config) => {
|
|
13
13
|
const defaultsMode = resolveDefaultsModeConfig(config);
|
|
14
14
|
const defaultConfigProvider = () => defaultsMode().then(loadConfigsForDefaultMode);
|
package/dist-es/runtimeConfig.js
CHANGED
|
@@ -9,12 +9,11 @@ import { Hash } from "@smithy/hash-node";
|
|
|
9
9
|
import { NODE_MAX_ATTEMPT_CONFIG_OPTIONS, NODE_RETRY_MODE_CONFIG_OPTIONS } from "@smithy/middleware-retry";
|
|
10
10
|
import { loadConfig as loadNodeConfig } from "@smithy/node-config-provider";
|
|
11
11
|
import { NodeHttpHandler as RequestHandler, streamCollector } from "@smithy/node-http-handler";
|
|
12
|
+
import { emitWarningIfUnsupportedVersion, loadConfigsForDefaultMode } from "@smithy/smithy-client";
|
|
12
13
|
import { calculateBodyLength } from "@smithy/util-body-length-node";
|
|
14
|
+
import { resolveDefaultsModeConfig } from "@smithy/util-defaults-mode-node";
|
|
13
15
|
import { DEFAULT_RETRY_MODE } from "@smithy/util-retry";
|
|
14
16
|
import { getRuntimeConfig as getSharedRuntimeConfig } from "./runtimeConfig.shared";
|
|
15
|
-
import { loadConfigsForDefaultMode } from "@smithy/smithy-client";
|
|
16
|
-
import { resolveDefaultsModeConfig } from "@smithy/util-defaults-mode-node";
|
|
17
|
-
import { emitWarningIfUnsupportedVersion } from "@smithy/smithy-client";
|
|
18
17
|
export const getRuntimeConfig = (config) => {
|
|
19
18
|
emitWarningIfUnsupportedVersion(process.version);
|
|
20
19
|
const defaultsMode = resolveDefaultsModeConfig(config);
|