@aws-sdk/client-bcm-pricing-calculator 3.699.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/LICENSE +201 -0
- package/README.md +504 -0
- package/dist-cjs/BCMPricingCalculator.js +83 -0
- package/dist-cjs/BCMPricingCalculatorClient.js +50 -0
- package/dist-cjs/auth/httpAuthExtensionConfiguration.js +43 -0
- package/dist-cjs/auth/httpAuthSchemeProvider.js +47 -0
- package/dist-cjs/commands/BatchCreateBillScenarioCommitmentModificationCommand.js +26 -0
- package/dist-cjs/commands/BatchCreateBillScenarioUsageModificationCommand.js +26 -0
- package/dist-cjs/commands/BatchCreateWorkloadEstimateUsageCommand.js +26 -0
- package/dist-cjs/commands/BatchDeleteBillScenarioCommitmentModificationCommand.js +26 -0
- package/dist-cjs/commands/BatchDeleteBillScenarioUsageModificationCommand.js +26 -0
- package/dist-cjs/commands/BatchDeleteWorkloadEstimateUsageCommand.js +26 -0
- package/dist-cjs/commands/BatchUpdateBillScenarioCommitmentModificationCommand.js +26 -0
- package/dist-cjs/commands/BatchUpdateBillScenarioUsageModificationCommand.js +26 -0
- package/dist-cjs/commands/BatchUpdateWorkloadEstimateUsageCommand.js +26 -0
- package/dist-cjs/commands/CreateBillEstimateCommand.js +26 -0
- package/dist-cjs/commands/CreateBillScenarioCommand.js +26 -0
- package/dist-cjs/commands/CreateWorkloadEstimateCommand.js +26 -0
- package/dist-cjs/commands/DeleteBillEstimateCommand.js +26 -0
- package/dist-cjs/commands/DeleteBillScenarioCommand.js +26 -0
- package/dist-cjs/commands/DeleteWorkloadEstimateCommand.js +26 -0
- package/dist-cjs/commands/GetBillEstimateCommand.js +26 -0
- package/dist-cjs/commands/GetBillScenarioCommand.js +26 -0
- package/dist-cjs/commands/GetPreferencesCommand.js +26 -0
- package/dist-cjs/commands/GetWorkloadEstimateCommand.js +26 -0
- package/dist-cjs/commands/ListBillEstimateCommitmentsCommand.js +26 -0
- package/dist-cjs/commands/ListBillEstimateInputCommitmentModificationsCommand.js +26 -0
- package/dist-cjs/commands/ListBillEstimateInputUsageModificationsCommand.js +26 -0
- package/dist-cjs/commands/ListBillEstimateLineItemsCommand.js +26 -0
- package/dist-cjs/commands/ListBillEstimatesCommand.js +26 -0
- package/dist-cjs/commands/ListBillScenarioCommitmentModificationsCommand.js +26 -0
- package/dist-cjs/commands/ListBillScenarioUsageModificationsCommand.js +26 -0
- package/dist-cjs/commands/ListBillScenariosCommand.js +26 -0
- package/dist-cjs/commands/ListTagsForResourceCommand.js +26 -0
- package/dist-cjs/commands/ListWorkloadEstimateUsageCommand.js +26 -0
- package/dist-cjs/commands/ListWorkloadEstimatesCommand.js +26 -0
- package/dist-cjs/commands/TagResourceCommand.js +26 -0
- package/dist-cjs/commands/UntagResourceCommand.js +26 -0
- package/dist-cjs/commands/UpdateBillEstimateCommand.js +26 -0
- package/dist-cjs/commands/UpdateBillScenarioCommand.js +26 -0
- package/dist-cjs/commands/UpdatePreferencesCommand.js +26 -0
- package/dist-cjs/commands/UpdateWorkloadEstimateCommand.js +26 -0
- package/dist-cjs/commands/index.js +39 -0
- package/dist-cjs/endpoint/EndpointParameters.js +16 -0
- package/dist-cjs/endpoint/endpointResolver.js +18 -0
- package/dist-cjs/endpoint/ruleset.js +7 -0
- package/dist-cjs/extensionConfiguration.js +2 -0
- package/dist-cjs/index.js +11 -0
- package/dist-cjs/models/BCMPricingCalculatorServiceException.js +12 -0
- package/dist-cjs/models/index.js +4 -0
- package/dist-cjs/models/models_0.js +263 -0
- package/dist-cjs/pagination/Interfaces.js +2 -0
- package/dist-cjs/pagination/ListBillEstimateCommitmentsPaginator.js +7 -0
- package/dist-cjs/pagination/ListBillEstimateInputCommitmentModificationsPaginator.js +7 -0
- package/dist-cjs/pagination/ListBillEstimateInputUsageModificationsPaginator.js +7 -0
- package/dist-cjs/pagination/ListBillEstimateLineItemsPaginator.js +7 -0
- package/dist-cjs/pagination/ListBillEstimatesPaginator.js +7 -0
- package/dist-cjs/pagination/ListBillScenarioCommitmentModificationsPaginator.js +7 -0
- package/dist-cjs/pagination/ListBillScenarioUsageModificationsPaginator.js +7 -0
- package/dist-cjs/pagination/ListBillScenariosPaginator.js +7 -0
- package/dist-cjs/pagination/ListWorkloadEstimateUsagePaginator.js +7 -0
- package/dist-cjs/pagination/ListWorkloadEstimatesPaginator.js +7 -0
- package/dist-cjs/pagination/index.js +14 -0
- package/dist-cjs/protocols/Aws_json1_0.js +1761 -0
- package/dist-cjs/runtimeConfig.browser.js +39 -0
- package/dist-cjs/runtimeConfig.js +50 -0
- package/dist-cjs/runtimeConfig.native.js +15 -0
- package/dist-cjs/runtimeConfig.shared.js +34 -0
- package/dist-cjs/runtimeExtensions.js +25 -0
- package/dist-es/BCMPricingCalculator.js +79 -0
- package/dist-es/BCMPricingCalculatorClient.js +46 -0
- package/dist-es/auth/httpAuthExtensionConfiguration.js +38 -0
- package/dist-es/auth/httpAuthSchemeProvider.js +41 -0
- package/dist-es/commands/BatchCreateBillScenarioCommitmentModificationCommand.js +22 -0
- package/dist-es/commands/BatchCreateBillScenarioUsageModificationCommand.js +22 -0
- package/dist-es/commands/BatchCreateWorkloadEstimateUsageCommand.js +22 -0
- package/dist-es/commands/BatchDeleteBillScenarioCommitmentModificationCommand.js +22 -0
- package/dist-es/commands/BatchDeleteBillScenarioUsageModificationCommand.js +22 -0
- package/dist-es/commands/BatchDeleteWorkloadEstimateUsageCommand.js +22 -0
- package/dist-es/commands/BatchUpdateBillScenarioCommitmentModificationCommand.js +22 -0
- package/dist-es/commands/BatchUpdateBillScenarioUsageModificationCommand.js +22 -0
- package/dist-es/commands/BatchUpdateWorkloadEstimateUsageCommand.js +22 -0
- package/dist-es/commands/CreateBillEstimateCommand.js +22 -0
- package/dist-es/commands/CreateBillScenarioCommand.js +22 -0
- package/dist-es/commands/CreateWorkloadEstimateCommand.js +22 -0
- package/dist-es/commands/DeleteBillEstimateCommand.js +22 -0
- package/dist-es/commands/DeleteBillScenarioCommand.js +22 -0
- package/dist-es/commands/DeleteWorkloadEstimateCommand.js +22 -0
- package/dist-es/commands/GetBillEstimateCommand.js +22 -0
- package/dist-es/commands/GetBillScenarioCommand.js +22 -0
- package/dist-es/commands/GetPreferencesCommand.js +22 -0
- package/dist-es/commands/GetWorkloadEstimateCommand.js +22 -0
- package/dist-es/commands/ListBillEstimateCommitmentsCommand.js +22 -0
- package/dist-es/commands/ListBillEstimateInputCommitmentModificationsCommand.js +22 -0
- package/dist-es/commands/ListBillEstimateInputUsageModificationsCommand.js +22 -0
- package/dist-es/commands/ListBillEstimateLineItemsCommand.js +22 -0
- package/dist-es/commands/ListBillEstimatesCommand.js +22 -0
- package/dist-es/commands/ListBillScenarioCommitmentModificationsCommand.js +22 -0
- package/dist-es/commands/ListBillScenarioUsageModificationsCommand.js +22 -0
- package/dist-es/commands/ListBillScenariosCommand.js +22 -0
- package/dist-es/commands/ListTagsForResourceCommand.js +22 -0
- package/dist-es/commands/ListWorkloadEstimateUsageCommand.js +22 -0
- package/dist-es/commands/ListWorkloadEstimatesCommand.js +22 -0
- package/dist-es/commands/TagResourceCommand.js +22 -0
- package/dist-es/commands/UntagResourceCommand.js +22 -0
- package/dist-es/commands/UpdateBillEstimateCommand.js +22 -0
- package/dist-es/commands/UpdateBillScenarioCommand.js +22 -0
- package/dist-es/commands/UpdatePreferencesCommand.js +22 -0
- package/dist-es/commands/UpdateWorkloadEstimateCommand.js +22 -0
- package/dist-es/commands/index.js +36 -0
- package/dist-es/endpoint/EndpointParameters.js +12 -0
- package/dist-es/endpoint/endpointResolver.js +14 -0
- package/dist-es/endpoint/ruleset.js +4 -0
- package/dist-es/extensionConfiguration.js +1 -0
- package/dist-es/index.js +6 -0
- package/dist-es/models/BCMPricingCalculatorServiceException.js +8 -0
- package/dist-es/models/index.js +1 -0
- package/dist-es/models/models_0.js +252 -0
- package/dist-es/pagination/Interfaces.js +1 -0
- package/dist-es/pagination/ListBillEstimateCommitmentsPaginator.js +4 -0
- package/dist-es/pagination/ListBillEstimateInputCommitmentModificationsPaginator.js +4 -0
- package/dist-es/pagination/ListBillEstimateInputUsageModificationsPaginator.js +4 -0
- package/dist-es/pagination/ListBillEstimateLineItemsPaginator.js +4 -0
- package/dist-es/pagination/ListBillEstimatesPaginator.js +4 -0
- package/dist-es/pagination/ListBillScenarioCommitmentModificationsPaginator.js +4 -0
- package/dist-es/pagination/ListBillScenarioUsageModificationsPaginator.js +4 -0
- package/dist-es/pagination/ListBillScenariosPaginator.js +4 -0
- package/dist-es/pagination/ListWorkloadEstimateUsagePaginator.js +4 -0
- package/dist-es/pagination/ListWorkloadEstimatesPaginator.js +4 -0
- package/dist-es/pagination/index.js +11 -0
- package/dist-es/protocols/Aws_json1_0.js +1685 -0
- package/dist-es/runtimeConfig.browser.js +34 -0
- package/dist-es/runtimeConfig.js +45 -0
- package/dist-es/runtimeConfig.native.js +11 -0
- package/dist-es/runtimeConfig.shared.js +30 -0
- package/dist-es/runtimeExtensions.js +21 -0
- package/dist-types/BCMPricingCalculator.d.ts +278 -0
- package/dist-types/BCMPricingCalculatorClient.d.ts +216 -0
- package/dist-types/auth/httpAuthExtensionConfiguration.d.ts +29 -0
- package/dist-types/auth/httpAuthSchemeProvider.d.ts +61 -0
- package/dist-types/commands/BatchCreateBillScenarioCommitmentModificationCommand.d.ts +162 -0
- package/dist-types/commands/BatchCreateBillScenarioUsageModificationCommand.d.ts +285 -0
- package/dist-types/commands/BatchCreateWorkloadEstimateUsageCommand.d.ts +278 -0
- package/dist-types/commands/BatchDeleteBillScenarioCommitmentModificationCommand.d.ts +117 -0
- package/dist-types/commands/BatchDeleteBillScenarioUsageModificationCommand.d.ts +120 -0
- package/dist-types/commands/BatchDeleteWorkloadEstimateUsageCommand.d.ts +120 -0
- package/dist-types/commands/BatchUpdateBillScenarioCommitmentModificationCommand.d.ts +138 -0
- package/dist-types/commands/BatchUpdateBillScenarioUsageModificationCommand.d.ts +209 -0
- package/dist-types/commands/BatchUpdateWorkloadEstimateUsageCommand.d.ts +203 -0
- package/dist-types/commands/CreateBillEstimateCommand.d.ts +146 -0
- package/dist-types/commands/CreateBillScenarioCommand.d.ts +121 -0
- package/dist-types/commands/CreateWorkloadEstimateCommand.d.ts +122 -0
- package/dist-types/commands/DeleteBillEstimateCommand.d.ts +96 -0
- package/dist-types/commands/DeleteBillScenarioCommand.d.ts +96 -0
- package/dist-types/commands/DeleteWorkloadEstimateCommand.d.ts +96 -0
- package/dist-types/commands/GetBillEstimateCommand.d.ts +136 -0
- package/dist-types/commands/GetBillScenarioCommand.d.ts +112 -0
- package/dist-types/commands/GetPreferencesCommand.d.ts +101 -0
- package/dist-types/commands/GetWorkloadEstimateCommand.d.ts +112 -0
- package/dist-types/commands/ListBillEstimateCommitmentsCommand.d.ts +124 -0
- package/dist-types/commands/ListBillEstimateInputCommitmentModificationsCommand.d.ts +128 -0
- package/dist-types/commands/ListBillEstimateInputUsageModificationsCommand.d.ts +197 -0
- package/dist-types/commands/ListBillEstimateLineItemsCommand.d.ts +147 -0
- package/dist-types/commands/ListBillEstimatesCommand.d.ts +129 -0
- package/dist-types/commands/ListBillScenarioCommitmentModificationsCommand.d.ts +128 -0
- package/dist-types/commands/ListBillScenarioUsageModificationsCommand.d.ts +197 -0
- package/dist-types/commands/ListBillScenariosCommand.d.ts +130 -0
- package/dist-types/commands/ListTagsForResourceCommand.d.ts +100 -0
- package/dist-types/commands/ListWorkloadEstimateUsageCommand.d.ts +196 -0
- package/dist-types/commands/ListWorkloadEstimatesCommand.d.ts +130 -0
- package/dist-types/commands/TagResourceCommand.d.ts +104 -0
- package/dist-types/commands/UntagResourceCommand.d.ts +99 -0
- package/dist-types/commands/UpdateBillEstimateCommand.d.ts +143 -0
- package/dist-types/commands/UpdateBillScenarioCommand.d.ts +119 -0
- package/dist-types/commands/UpdatePreferencesCommand.d.ts +113 -0
- package/dist-types/commands/UpdateWorkloadEstimateCommand.d.ts +119 -0
- package/dist-types/commands/index.d.ts +36 -0
- package/dist-types/endpoint/EndpointParameters.d.ts +34 -0
- package/dist-types/endpoint/endpointResolver.d.ts +5 -0
- package/dist-types/endpoint/ruleset.d.ts +2 -0
- package/dist-types/extensionConfiguration.d.ts +9 -0
- package/dist-types/index.d.ts +25 -0
- package/dist-types/models/BCMPricingCalculatorServiceException.d.ts +14 -0
- package/dist-types/models/index.d.ts +1 -0
- package/dist-types/models/models_0.d.ts +4474 -0
- package/dist-types/pagination/Interfaces.d.ts +8 -0
- package/dist-types/pagination/ListBillEstimateCommitmentsPaginator.d.ts +7 -0
- package/dist-types/pagination/ListBillEstimateInputCommitmentModificationsPaginator.d.ts +7 -0
- package/dist-types/pagination/ListBillEstimateInputUsageModificationsPaginator.d.ts +7 -0
- package/dist-types/pagination/ListBillEstimateLineItemsPaginator.d.ts +7 -0
- package/dist-types/pagination/ListBillEstimatesPaginator.d.ts +7 -0
- package/dist-types/pagination/ListBillScenarioCommitmentModificationsPaginator.d.ts +7 -0
- package/dist-types/pagination/ListBillScenarioUsageModificationsPaginator.d.ts +7 -0
- package/dist-types/pagination/ListBillScenariosPaginator.d.ts +7 -0
- package/dist-types/pagination/ListWorkloadEstimateUsagePaginator.d.ts +7 -0
- package/dist-types/pagination/ListWorkloadEstimatesPaginator.d.ts +7 -0
- package/dist-types/pagination/index.d.ts +11 -0
- package/dist-types/protocols/Aws_json1_0.d.ts +326 -0
- package/dist-types/runtimeConfig.browser.d.ts +48 -0
- package/dist-types/runtimeConfig.d.ts +48 -0
- package/dist-types/runtimeConfig.native.d.ts +47 -0
- package/dist-types/runtimeConfig.shared.d.ts +21 -0
- package/dist-types/runtimeExtensions.d.ts +17 -0
- package/dist-types/ts3.4/BCMPricingCalculator.d.ts +684 -0
- package/dist-types/ts3.4/BCMPricingCalculatorClient.d.ts +337 -0
- package/dist-types/ts3.4/auth/httpAuthExtensionConfiguration.d.ts +32 -0
- package/dist-types/ts3.4/auth/httpAuthSchemeProvider.d.ts +44 -0
- package/dist-types/ts3.4/commands/BatchCreateBillScenarioCommitmentModificationCommand.d.ts +51 -0
- package/dist-types/ts3.4/commands/BatchCreateBillScenarioUsageModificationCommand.d.ts +51 -0
- package/dist-types/ts3.4/commands/BatchCreateWorkloadEstimateUsageCommand.d.ts +51 -0
- package/dist-types/ts3.4/commands/BatchDeleteBillScenarioCommitmentModificationCommand.d.ts +51 -0
- package/dist-types/ts3.4/commands/BatchDeleteBillScenarioUsageModificationCommand.d.ts +51 -0
- package/dist-types/ts3.4/commands/BatchDeleteWorkloadEstimateUsageCommand.d.ts +51 -0
- package/dist-types/ts3.4/commands/BatchUpdateBillScenarioCommitmentModificationCommand.d.ts +51 -0
- package/dist-types/ts3.4/commands/BatchUpdateBillScenarioUsageModificationCommand.d.ts +51 -0
- package/dist-types/ts3.4/commands/BatchUpdateWorkloadEstimateUsageCommand.d.ts +51 -0
- package/dist-types/ts3.4/commands/CreateBillEstimateCommand.d.ts +51 -0
- package/dist-types/ts3.4/commands/CreateBillScenarioCommand.d.ts +51 -0
- package/dist-types/ts3.4/commands/CreateWorkloadEstimateCommand.d.ts +51 -0
- package/dist-types/ts3.4/commands/DeleteBillEstimateCommand.d.ts +51 -0
- package/dist-types/ts3.4/commands/DeleteBillScenarioCommand.d.ts +51 -0
- package/dist-types/ts3.4/commands/DeleteWorkloadEstimateCommand.d.ts +51 -0
- package/dist-types/ts3.4/commands/GetBillEstimateCommand.d.ts +50 -0
- package/dist-types/ts3.4/commands/GetBillScenarioCommand.d.ts +50 -0
- package/dist-types/ts3.4/commands/GetPreferencesCommand.d.ts +50 -0
- package/dist-types/ts3.4/commands/GetWorkloadEstimateCommand.d.ts +51 -0
- package/dist-types/ts3.4/commands/ListBillEstimateCommitmentsCommand.d.ts +51 -0
- package/dist-types/ts3.4/commands/ListBillEstimateInputCommitmentModificationsCommand.d.ts +51 -0
- package/dist-types/ts3.4/commands/ListBillEstimateInputUsageModificationsCommand.d.ts +51 -0
- package/dist-types/ts3.4/commands/ListBillEstimateLineItemsCommand.d.ts +51 -0
- package/dist-types/ts3.4/commands/ListBillEstimatesCommand.d.ts +51 -0
- package/dist-types/ts3.4/commands/ListBillScenarioCommitmentModificationsCommand.d.ts +51 -0
- package/dist-types/ts3.4/commands/ListBillScenarioUsageModificationsCommand.d.ts +51 -0
- package/dist-types/ts3.4/commands/ListBillScenariosCommand.d.ts +51 -0
- package/dist-types/ts3.4/commands/ListTagsForResourceCommand.d.ts +51 -0
- package/dist-types/ts3.4/commands/ListWorkloadEstimateUsageCommand.d.ts +51 -0
- package/dist-types/ts3.4/commands/ListWorkloadEstimatesCommand.d.ts +51 -0
- package/dist-types/ts3.4/commands/TagResourceCommand.d.ts +47 -0
- package/dist-types/ts3.4/commands/UntagResourceCommand.d.ts +50 -0
- package/dist-types/ts3.4/commands/UpdateBillEstimateCommand.d.ts +51 -0
- package/dist-types/ts3.4/commands/UpdateBillScenarioCommand.d.ts +51 -0
- package/dist-types/ts3.4/commands/UpdatePreferencesCommand.d.ts +51 -0
- package/dist-types/ts3.4/commands/UpdateWorkloadEstimateCommand.d.ts +51 -0
- package/dist-types/ts3.4/commands/index.d.ts +36 -0
- package/dist-types/ts3.4/endpoint/EndpointParameters.d.ts +45 -0
- package/dist-types/ts3.4/endpoint/endpointResolver.d.ts +8 -0
- package/dist-types/ts3.4/endpoint/ruleset.d.ts +2 -0
- package/dist-types/ts3.4/extensionConfiguration.d.ts +9 -0
- package/dist-types/ts3.4/index.d.ts +9 -0
- package/dist-types/ts3.4/models/BCMPricingCalculatorServiceException.d.ts +9 -0
- package/dist-types/ts3.4/models/index.d.ts +1 -0
- package/dist-types/ts3.4/models/models_0.d.ts +985 -0
- package/dist-types/ts3.4/pagination/Interfaces.d.ts +6 -0
- package/dist-types/ts3.4/pagination/ListBillEstimateCommitmentsPaginator.d.ts +11 -0
- package/dist-types/ts3.4/pagination/ListBillEstimateInputCommitmentModificationsPaginator.d.ts +11 -0
- package/dist-types/ts3.4/pagination/ListBillEstimateInputUsageModificationsPaginator.d.ts +11 -0
- package/dist-types/ts3.4/pagination/ListBillEstimateLineItemsPaginator.d.ts +11 -0
- package/dist-types/ts3.4/pagination/ListBillEstimatesPaginator.d.ts +11 -0
- package/dist-types/ts3.4/pagination/ListBillScenarioCommitmentModificationsPaginator.d.ts +11 -0
- package/dist-types/ts3.4/pagination/ListBillScenarioUsageModificationsPaginator.d.ts +11 -0
- package/dist-types/ts3.4/pagination/ListBillScenariosPaginator.d.ts +11 -0
- package/dist-types/ts3.4/pagination/ListWorkloadEstimateUsagePaginator.d.ts +11 -0
- package/dist-types/ts3.4/pagination/ListWorkloadEstimatesPaginator.d.ts +11 -0
- package/dist-types/ts3.4/pagination/index.d.ts +11 -0
- package/dist-types/ts3.4/protocols/Aws_json1_0.d.ts +437 -0
- package/dist-types/ts3.4/runtimeConfig.browser.d.ts +95 -0
- package/dist-types/ts3.4/runtimeConfig.d.ts +96 -0
- package/dist-types/ts3.4/runtimeConfig.native.d.ts +89 -0
- package/dist-types/ts3.4/runtimeConfig.shared.d.ts +23 -0
- package/dist-types/ts3.4/runtimeExtensions.d.ts +13 -0
- package/package.json +103 -0
|
@@ -0,0 +1,39 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.getRuntimeConfig = void 0;
|
|
4
|
+
const tslib_1 = require("tslib");
|
|
5
|
+
const package_json_1 = tslib_1.__importDefault(require("../package.json"));
|
|
6
|
+
const sha256_browser_1 = require("@aws-crypto/sha256-browser");
|
|
7
|
+
const util_user_agent_browser_1 = require("@aws-sdk/util-user-agent-browser");
|
|
8
|
+
const config_resolver_1 = require("@smithy/config-resolver");
|
|
9
|
+
const fetch_http_handler_1 = require("@smithy/fetch-http-handler");
|
|
10
|
+
const invalid_dependency_1 = require("@smithy/invalid-dependency");
|
|
11
|
+
const util_body_length_browser_1 = require("@smithy/util-body-length-browser");
|
|
12
|
+
const util_retry_1 = require("@smithy/util-retry");
|
|
13
|
+
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
|
+
const getRuntimeConfig = (config) => {
|
|
17
|
+
const defaultsMode = (0, util_defaults_mode_browser_1.resolveDefaultsModeConfig)(config);
|
|
18
|
+
const defaultConfigProvider = () => defaultsMode().then(smithy_client_1.loadConfigsForDefaultMode);
|
|
19
|
+
const clientSharedValues = (0, runtimeConfig_shared_1.getRuntimeConfig)(config);
|
|
20
|
+
return {
|
|
21
|
+
...clientSharedValues,
|
|
22
|
+
...config,
|
|
23
|
+
runtime: "browser",
|
|
24
|
+
defaultsMode,
|
|
25
|
+
bodyLengthChecker: config?.bodyLengthChecker ?? util_body_length_browser_1.calculateBodyLength,
|
|
26
|
+
credentialDefaultProvider: config?.credentialDefaultProvider ?? ((_) => () => Promise.reject(new Error("Credential is missing"))),
|
|
27
|
+
defaultUserAgentProvider: config?.defaultUserAgentProvider ??
|
|
28
|
+
(0, util_user_agent_browser_1.createDefaultUserAgentProvider)({ serviceId: clientSharedValues.serviceId, clientVersion: package_json_1.default.version }),
|
|
29
|
+
maxAttempts: config?.maxAttempts ?? util_retry_1.DEFAULT_MAX_ATTEMPTS,
|
|
30
|
+
region: config?.region ?? (0, invalid_dependency_1.invalidProvider)("Region is missing"),
|
|
31
|
+
requestHandler: fetch_http_handler_1.FetchHttpHandler.create(config?.requestHandler ?? defaultConfigProvider),
|
|
32
|
+
retryMode: config?.retryMode ?? (async () => (await defaultConfigProvider()).retryMode || util_retry_1.DEFAULT_RETRY_MODE),
|
|
33
|
+
sha256: config?.sha256 ?? sha256_browser_1.Sha256,
|
|
34
|
+
streamCollector: config?.streamCollector ?? fetch_http_handler_1.streamCollector,
|
|
35
|
+
useDualstackEndpoint: config?.useDualstackEndpoint ?? (() => Promise.resolve(config_resolver_1.DEFAULT_USE_DUALSTACK_ENDPOINT)),
|
|
36
|
+
useFipsEndpoint: config?.useFipsEndpoint ?? (() => Promise.resolve(config_resolver_1.DEFAULT_USE_FIPS_ENDPOINT)),
|
|
37
|
+
};
|
|
38
|
+
};
|
|
39
|
+
exports.getRuntimeConfig = getRuntimeConfig;
|
|
@@ -0,0 +1,50 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.getRuntimeConfig = void 0;
|
|
4
|
+
const tslib_1 = require("tslib");
|
|
5
|
+
const package_json_1 = tslib_1.__importDefault(require("../package.json"));
|
|
6
|
+
const core_1 = require("@aws-sdk/core");
|
|
7
|
+
const credential_provider_node_1 = require("@aws-sdk/credential-provider-node");
|
|
8
|
+
const util_user_agent_node_1 = require("@aws-sdk/util-user-agent-node");
|
|
9
|
+
const config_resolver_1 = require("@smithy/config-resolver");
|
|
10
|
+
const hash_node_1 = require("@smithy/hash-node");
|
|
11
|
+
const middleware_retry_1 = require("@smithy/middleware-retry");
|
|
12
|
+
const node_config_provider_1 = require("@smithy/node-config-provider");
|
|
13
|
+
const node_http_handler_1 = require("@smithy/node-http-handler");
|
|
14
|
+
const util_body_length_node_1 = require("@smithy/util-body-length-node");
|
|
15
|
+
const util_retry_1 = require("@smithy/util-retry");
|
|
16
|
+
const runtimeConfig_shared_1 = require("./runtimeConfig.shared");
|
|
17
|
+
const smithy_client_1 = require("@smithy/smithy-client");
|
|
18
|
+
const util_defaults_mode_node_1 = require("@smithy/util-defaults-mode-node");
|
|
19
|
+
const smithy_client_2 = require("@smithy/smithy-client");
|
|
20
|
+
const getRuntimeConfig = (config) => {
|
|
21
|
+
(0, smithy_client_2.emitWarningIfUnsupportedVersion)(process.version);
|
|
22
|
+
const defaultsMode = (0, util_defaults_mode_node_1.resolveDefaultsModeConfig)(config);
|
|
23
|
+
const defaultConfigProvider = () => defaultsMode().then(smithy_client_1.loadConfigsForDefaultMode);
|
|
24
|
+
const clientSharedValues = (0, runtimeConfig_shared_1.getRuntimeConfig)(config);
|
|
25
|
+
(0, core_1.emitWarningIfUnsupportedVersion)(process.version);
|
|
26
|
+
return {
|
|
27
|
+
...clientSharedValues,
|
|
28
|
+
...config,
|
|
29
|
+
runtime: "node",
|
|
30
|
+
defaultsMode,
|
|
31
|
+
bodyLengthChecker: config?.bodyLengthChecker ?? util_body_length_node_1.calculateBodyLength,
|
|
32
|
+
credentialDefaultProvider: config?.credentialDefaultProvider ?? credential_provider_node_1.defaultProvider,
|
|
33
|
+
defaultUserAgentProvider: config?.defaultUserAgentProvider ??
|
|
34
|
+
(0, util_user_agent_node_1.createDefaultUserAgentProvider)({ serviceId: clientSharedValues.serviceId, clientVersion: package_json_1.default.version }),
|
|
35
|
+
maxAttempts: config?.maxAttempts ?? (0, node_config_provider_1.loadConfig)(middleware_retry_1.NODE_MAX_ATTEMPT_CONFIG_OPTIONS),
|
|
36
|
+
region: config?.region ?? (0, node_config_provider_1.loadConfig)(config_resolver_1.NODE_REGION_CONFIG_OPTIONS, config_resolver_1.NODE_REGION_CONFIG_FILE_OPTIONS),
|
|
37
|
+
requestHandler: node_http_handler_1.NodeHttpHandler.create(config?.requestHandler ?? defaultConfigProvider),
|
|
38
|
+
retryMode: config?.retryMode ??
|
|
39
|
+
(0, node_config_provider_1.loadConfig)({
|
|
40
|
+
...middleware_retry_1.NODE_RETRY_MODE_CONFIG_OPTIONS,
|
|
41
|
+
default: async () => (await defaultConfigProvider()).retryMode || util_retry_1.DEFAULT_RETRY_MODE,
|
|
42
|
+
}),
|
|
43
|
+
sha256: config?.sha256 ?? hash_node_1.Hash.bind(null, "sha256"),
|
|
44
|
+
streamCollector: config?.streamCollector ?? node_http_handler_1.streamCollector,
|
|
45
|
+
useDualstackEndpoint: config?.useDualstackEndpoint ?? (0, node_config_provider_1.loadConfig)(config_resolver_1.NODE_USE_DUALSTACK_ENDPOINT_CONFIG_OPTIONS),
|
|
46
|
+
useFipsEndpoint: config?.useFipsEndpoint ?? (0, node_config_provider_1.loadConfig)(config_resolver_1.NODE_USE_FIPS_ENDPOINT_CONFIG_OPTIONS),
|
|
47
|
+
userAgentAppId: config?.userAgentAppId ?? (0, node_config_provider_1.loadConfig)(util_user_agent_node_1.NODE_APP_ID_CONFIG_OPTIONS),
|
|
48
|
+
};
|
|
49
|
+
};
|
|
50
|
+
exports.getRuntimeConfig = getRuntimeConfig;
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.getRuntimeConfig = void 0;
|
|
4
|
+
const sha256_js_1 = require("@aws-crypto/sha256-js");
|
|
5
|
+
const runtimeConfig_browser_1 = require("./runtimeConfig.browser");
|
|
6
|
+
const getRuntimeConfig = (config) => {
|
|
7
|
+
const browserDefaults = (0, runtimeConfig_browser_1.getRuntimeConfig)(config);
|
|
8
|
+
return {
|
|
9
|
+
...browserDefaults,
|
|
10
|
+
...config,
|
|
11
|
+
runtime: "react-native",
|
|
12
|
+
sha256: config?.sha256 ?? sha256_js_1.Sha256,
|
|
13
|
+
};
|
|
14
|
+
};
|
|
15
|
+
exports.getRuntimeConfig = getRuntimeConfig;
|
|
@@ -0,0 +1,34 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.getRuntimeConfig = void 0;
|
|
4
|
+
const core_1 = require("@aws-sdk/core");
|
|
5
|
+
const smithy_client_1 = require("@smithy/smithy-client");
|
|
6
|
+
const url_parser_1 = require("@smithy/url-parser");
|
|
7
|
+
const util_base64_1 = require("@smithy/util-base64");
|
|
8
|
+
const util_utf8_1 = require("@smithy/util-utf8");
|
|
9
|
+
const httpAuthSchemeProvider_1 = require("./auth/httpAuthSchemeProvider");
|
|
10
|
+
const endpointResolver_1 = require("./endpoint/endpointResolver");
|
|
11
|
+
const getRuntimeConfig = (config) => {
|
|
12
|
+
return {
|
|
13
|
+
apiVersion: "2024-06-19",
|
|
14
|
+
base64Decoder: config?.base64Decoder ?? util_base64_1.fromBase64,
|
|
15
|
+
base64Encoder: config?.base64Encoder ?? util_base64_1.toBase64,
|
|
16
|
+
disableHostPrefix: config?.disableHostPrefix ?? false,
|
|
17
|
+
endpointProvider: config?.endpointProvider ?? endpointResolver_1.defaultEndpointResolver,
|
|
18
|
+
extensions: config?.extensions ?? [],
|
|
19
|
+
httpAuthSchemeProvider: config?.httpAuthSchemeProvider ?? httpAuthSchemeProvider_1.defaultBCMPricingCalculatorHttpAuthSchemeProvider,
|
|
20
|
+
httpAuthSchemes: config?.httpAuthSchemes ?? [
|
|
21
|
+
{
|
|
22
|
+
schemeId: "aws.auth#sigv4",
|
|
23
|
+
identityProvider: (ipc) => ipc.getIdentityProvider("aws.auth#sigv4"),
|
|
24
|
+
signer: new core_1.AwsSdkSigV4Signer(),
|
|
25
|
+
},
|
|
26
|
+
],
|
|
27
|
+
logger: config?.logger ?? new smithy_client_1.NoOpLogger(),
|
|
28
|
+
serviceId: config?.serviceId ?? "BCM Pricing Calculator",
|
|
29
|
+
urlParser: config?.urlParser ?? url_parser_1.parseUrl,
|
|
30
|
+
utf8Decoder: config?.utf8Decoder ?? util_utf8_1.fromUtf8,
|
|
31
|
+
utf8Encoder: config?.utf8Encoder ?? util_utf8_1.toUtf8,
|
|
32
|
+
};
|
|
33
|
+
};
|
|
34
|
+
exports.getRuntimeConfig = getRuntimeConfig;
|
|
@@ -0,0 +1,25 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.resolveRuntimeExtensions = void 0;
|
|
4
|
+
const region_config_resolver_1 = require("@aws-sdk/region-config-resolver");
|
|
5
|
+
const protocol_http_1 = require("@smithy/protocol-http");
|
|
6
|
+
const smithy_client_1 = require("@smithy/smithy-client");
|
|
7
|
+
const httpAuthExtensionConfiguration_1 = require("./auth/httpAuthExtensionConfiguration");
|
|
8
|
+
const asPartial = (t) => t;
|
|
9
|
+
const resolveRuntimeExtensions = (runtimeConfig, extensions) => {
|
|
10
|
+
const extensionConfiguration = {
|
|
11
|
+
...asPartial((0, region_config_resolver_1.getAwsRegionExtensionConfiguration)(runtimeConfig)),
|
|
12
|
+
...asPartial((0, smithy_client_1.getDefaultExtensionConfiguration)(runtimeConfig)),
|
|
13
|
+
...asPartial((0, protocol_http_1.getHttpHandlerExtensionConfiguration)(runtimeConfig)),
|
|
14
|
+
...asPartial((0, httpAuthExtensionConfiguration_1.getHttpAuthExtensionConfiguration)(runtimeConfig)),
|
|
15
|
+
};
|
|
16
|
+
extensions.forEach((extension) => extension.configure(extensionConfiguration));
|
|
17
|
+
return {
|
|
18
|
+
...runtimeConfig,
|
|
19
|
+
...(0, region_config_resolver_1.resolveAwsRegionExtensionConfiguration)(extensionConfiguration),
|
|
20
|
+
...(0, smithy_client_1.resolveDefaultRuntimeConfig)(extensionConfiguration),
|
|
21
|
+
...(0, protocol_http_1.resolveHttpHandlerRuntimeConfig)(extensionConfiguration),
|
|
22
|
+
...(0, httpAuthExtensionConfiguration_1.resolveHttpAuthRuntimeConfig)(extensionConfiguration),
|
|
23
|
+
};
|
|
24
|
+
};
|
|
25
|
+
exports.resolveRuntimeExtensions = resolveRuntimeExtensions;
|
|
@@ -0,0 +1,79 @@
|
|
|
1
|
+
import { createAggregatedClient } from "@smithy/smithy-client";
|
|
2
|
+
import { BCMPricingCalculatorClient } from "./BCMPricingCalculatorClient";
|
|
3
|
+
import { BatchCreateBillScenarioCommitmentModificationCommand, } from "./commands/BatchCreateBillScenarioCommitmentModificationCommand";
|
|
4
|
+
import { BatchCreateBillScenarioUsageModificationCommand, } from "./commands/BatchCreateBillScenarioUsageModificationCommand";
|
|
5
|
+
import { BatchCreateWorkloadEstimateUsageCommand, } from "./commands/BatchCreateWorkloadEstimateUsageCommand";
|
|
6
|
+
import { BatchDeleteBillScenarioCommitmentModificationCommand, } from "./commands/BatchDeleteBillScenarioCommitmentModificationCommand";
|
|
7
|
+
import { BatchDeleteBillScenarioUsageModificationCommand, } from "./commands/BatchDeleteBillScenarioUsageModificationCommand";
|
|
8
|
+
import { BatchDeleteWorkloadEstimateUsageCommand, } from "./commands/BatchDeleteWorkloadEstimateUsageCommand";
|
|
9
|
+
import { BatchUpdateBillScenarioCommitmentModificationCommand, } from "./commands/BatchUpdateBillScenarioCommitmentModificationCommand";
|
|
10
|
+
import { BatchUpdateBillScenarioUsageModificationCommand, } from "./commands/BatchUpdateBillScenarioUsageModificationCommand";
|
|
11
|
+
import { BatchUpdateWorkloadEstimateUsageCommand, } from "./commands/BatchUpdateWorkloadEstimateUsageCommand";
|
|
12
|
+
import { CreateBillEstimateCommand, } from "./commands/CreateBillEstimateCommand";
|
|
13
|
+
import { CreateBillScenarioCommand, } from "./commands/CreateBillScenarioCommand";
|
|
14
|
+
import { CreateWorkloadEstimateCommand, } from "./commands/CreateWorkloadEstimateCommand";
|
|
15
|
+
import { DeleteBillEstimateCommand, } from "./commands/DeleteBillEstimateCommand";
|
|
16
|
+
import { DeleteBillScenarioCommand, } from "./commands/DeleteBillScenarioCommand";
|
|
17
|
+
import { DeleteWorkloadEstimateCommand, } from "./commands/DeleteWorkloadEstimateCommand";
|
|
18
|
+
import { GetBillEstimateCommand, } from "./commands/GetBillEstimateCommand";
|
|
19
|
+
import { GetBillScenarioCommand, } from "./commands/GetBillScenarioCommand";
|
|
20
|
+
import { GetPreferencesCommand, } from "./commands/GetPreferencesCommand";
|
|
21
|
+
import { GetWorkloadEstimateCommand, } from "./commands/GetWorkloadEstimateCommand";
|
|
22
|
+
import { ListBillEstimateCommitmentsCommand, } from "./commands/ListBillEstimateCommitmentsCommand";
|
|
23
|
+
import { ListBillEstimateInputCommitmentModificationsCommand, } from "./commands/ListBillEstimateInputCommitmentModificationsCommand";
|
|
24
|
+
import { ListBillEstimateInputUsageModificationsCommand, } from "./commands/ListBillEstimateInputUsageModificationsCommand";
|
|
25
|
+
import { ListBillEstimateLineItemsCommand, } from "./commands/ListBillEstimateLineItemsCommand";
|
|
26
|
+
import { ListBillEstimatesCommand, } from "./commands/ListBillEstimatesCommand";
|
|
27
|
+
import { ListBillScenarioCommitmentModificationsCommand, } from "./commands/ListBillScenarioCommitmentModificationsCommand";
|
|
28
|
+
import { ListBillScenariosCommand, } from "./commands/ListBillScenariosCommand";
|
|
29
|
+
import { ListBillScenarioUsageModificationsCommand, } from "./commands/ListBillScenarioUsageModificationsCommand";
|
|
30
|
+
import { ListTagsForResourceCommand, } from "./commands/ListTagsForResourceCommand";
|
|
31
|
+
import { ListWorkloadEstimatesCommand, } from "./commands/ListWorkloadEstimatesCommand";
|
|
32
|
+
import { ListWorkloadEstimateUsageCommand, } from "./commands/ListWorkloadEstimateUsageCommand";
|
|
33
|
+
import { TagResourceCommand } from "./commands/TagResourceCommand";
|
|
34
|
+
import { UntagResourceCommand, } from "./commands/UntagResourceCommand";
|
|
35
|
+
import { UpdateBillEstimateCommand, } from "./commands/UpdateBillEstimateCommand";
|
|
36
|
+
import { UpdateBillScenarioCommand, } from "./commands/UpdateBillScenarioCommand";
|
|
37
|
+
import { UpdatePreferencesCommand, } from "./commands/UpdatePreferencesCommand";
|
|
38
|
+
import { UpdateWorkloadEstimateCommand, } from "./commands/UpdateWorkloadEstimateCommand";
|
|
39
|
+
const commands = {
|
|
40
|
+
BatchCreateBillScenarioCommitmentModificationCommand,
|
|
41
|
+
BatchCreateBillScenarioUsageModificationCommand,
|
|
42
|
+
BatchCreateWorkloadEstimateUsageCommand,
|
|
43
|
+
BatchDeleteBillScenarioCommitmentModificationCommand,
|
|
44
|
+
BatchDeleteBillScenarioUsageModificationCommand,
|
|
45
|
+
BatchDeleteWorkloadEstimateUsageCommand,
|
|
46
|
+
BatchUpdateBillScenarioCommitmentModificationCommand,
|
|
47
|
+
BatchUpdateBillScenarioUsageModificationCommand,
|
|
48
|
+
BatchUpdateWorkloadEstimateUsageCommand,
|
|
49
|
+
CreateBillEstimateCommand,
|
|
50
|
+
CreateBillScenarioCommand,
|
|
51
|
+
CreateWorkloadEstimateCommand,
|
|
52
|
+
DeleteBillEstimateCommand,
|
|
53
|
+
DeleteBillScenarioCommand,
|
|
54
|
+
DeleteWorkloadEstimateCommand,
|
|
55
|
+
GetBillEstimateCommand,
|
|
56
|
+
GetBillScenarioCommand,
|
|
57
|
+
GetPreferencesCommand,
|
|
58
|
+
GetWorkloadEstimateCommand,
|
|
59
|
+
ListBillEstimateCommitmentsCommand,
|
|
60
|
+
ListBillEstimateInputCommitmentModificationsCommand,
|
|
61
|
+
ListBillEstimateInputUsageModificationsCommand,
|
|
62
|
+
ListBillEstimateLineItemsCommand,
|
|
63
|
+
ListBillEstimatesCommand,
|
|
64
|
+
ListBillScenarioCommitmentModificationsCommand,
|
|
65
|
+
ListBillScenariosCommand,
|
|
66
|
+
ListBillScenarioUsageModificationsCommand,
|
|
67
|
+
ListTagsForResourceCommand,
|
|
68
|
+
ListWorkloadEstimatesCommand,
|
|
69
|
+
ListWorkloadEstimateUsageCommand,
|
|
70
|
+
TagResourceCommand,
|
|
71
|
+
UntagResourceCommand,
|
|
72
|
+
UpdateBillEstimateCommand,
|
|
73
|
+
UpdateBillScenarioCommand,
|
|
74
|
+
UpdatePreferencesCommand,
|
|
75
|
+
UpdateWorkloadEstimateCommand,
|
|
76
|
+
};
|
|
77
|
+
export class BCMPricingCalculator extends BCMPricingCalculatorClient {
|
|
78
|
+
}
|
|
79
|
+
createAggregatedClient(commands, BCMPricingCalculator);
|
|
@@ -0,0 +1,46 @@
|
|
|
1
|
+
import { getHostHeaderPlugin, resolveHostHeaderConfig, } from "@aws-sdk/middleware-host-header";
|
|
2
|
+
import { getLoggerPlugin } from "@aws-sdk/middleware-logger";
|
|
3
|
+
import { getRecursionDetectionPlugin } from "@aws-sdk/middleware-recursion-detection";
|
|
4
|
+
import { getUserAgentPlugin, resolveUserAgentConfig, } from "@aws-sdk/middleware-user-agent";
|
|
5
|
+
import { resolveRegionConfig } from "@smithy/config-resolver";
|
|
6
|
+
import { DefaultIdentityProviderConfig, getHttpAuthSchemeEndpointRuleSetPlugin, getHttpSigningPlugin, } from "@smithy/core";
|
|
7
|
+
import { getContentLengthPlugin } from "@smithy/middleware-content-length";
|
|
8
|
+
import { resolveEndpointConfig } from "@smithy/middleware-endpoint";
|
|
9
|
+
import { getRetryPlugin, resolveRetryConfig } from "@smithy/middleware-retry";
|
|
10
|
+
import { Client as __Client, } from "@smithy/smithy-client";
|
|
11
|
+
import { defaultBCMPricingCalculatorHttpAuthSchemeParametersProvider, resolveHttpAuthSchemeConfig, } from "./auth/httpAuthSchemeProvider";
|
|
12
|
+
import { resolveClientEndpointParameters, } from "./endpoint/EndpointParameters";
|
|
13
|
+
import { getRuntimeConfig as __getRuntimeConfig } from "./runtimeConfig";
|
|
14
|
+
import { resolveRuntimeExtensions } from "./runtimeExtensions";
|
|
15
|
+
export { __Client };
|
|
16
|
+
export class BCMPricingCalculatorClient extends __Client {
|
|
17
|
+
constructor(...[configuration]) {
|
|
18
|
+
const _config_0 = __getRuntimeConfig(configuration || {});
|
|
19
|
+
const _config_1 = resolveClientEndpointParameters(_config_0);
|
|
20
|
+
const _config_2 = resolveUserAgentConfig(_config_1);
|
|
21
|
+
const _config_3 = resolveRetryConfig(_config_2);
|
|
22
|
+
const _config_4 = resolveRegionConfig(_config_3);
|
|
23
|
+
const _config_5 = resolveHostHeaderConfig(_config_4);
|
|
24
|
+
const _config_6 = resolveEndpointConfig(_config_5);
|
|
25
|
+
const _config_7 = resolveHttpAuthSchemeConfig(_config_6);
|
|
26
|
+
const _config_8 = resolveRuntimeExtensions(_config_7, configuration?.extensions || []);
|
|
27
|
+
super(_config_8);
|
|
28
|
+
this.config = _config_8;
|
|
29
|
+
this.middlewareStack.use(getUserAgentPlugin(this.config));
|
|
30
|
+
this.middlewareStack.use(getRetryPlugin(this.config));
|
|
31
|
+
this.middlewareStack.use(getContentLengthPlugin(this.config));
|
|
32
|
+
this.middlewareStack.use(getHostHeaderPlugin(this.config));
|
|
33
|
+
this.middlewareStack.use(getLoggerPlugin(this.config));
|
|
34
|
+
this.middlewareStack.use(getRecursionDetectionPlugin(this.config));
|
|
35
|
+
this.middlewareStack.use(getHttpAuthSchemeEndpointRuleSetPlugin(this.config, {
|
|
36
|
+
httpAuthSchemeParametersProvider: defaultBCMPricingCalculatorHttpAuthSchemeParametersProvider,
|
|
37
|
+
identityProviderConfigProvider: async (config) => new DefaultIdentityProviderConfig({
|
|
38
|
+
"aws.auth#sigv4": config.credentials,
|
|
39
|
+
}),
|
|
40
|
+
}));
|
|
41
|
+
this.middlewareStack.use(getHttpSigningPlugin(this.config));
|
|
42
|
+
}
|
|
43
|
+
destroy() {
|
|
44
|
+
super.destroy();
|
|
45
|
+
}
|
|
46
|
+
}
|
|
@@ -0,0 +1,38 @@
|
|
|
1
|
+
export const getHttpAuthExtensionConfiguration = (runtimeConfig) => {
|
|
2
|
+
const _httpAuthSchemes = runtimeConfig.httpAuthSchemes;
|
|
3
|
+
let _httpAuthSchemeProvider = runtimeConfig.httpAuthSchemeProvider;
|
|
4
|
+
let _credentials = runtimeConfig.credentials;
|
|
5
|
+
return {
|
|
6
|
+
setHttpAuthScheme(httpAuthScheme) {
|
|
7
|
+
const index = _httpAuthSchemes.findIndex((scheme) => scheme.schemeId === httpAuthScheme.schemeId);
|
|
8
|
+
if (index === -1) {
|
|
9
|
+
_httpAuthSchemes.push(httpAuthScheme);
|
|
10
|
+
}
|
|
11
|
+
else {
|
|
12
|
+
_httpAuthSchemes.splice(index, 1, httpAuthScheme);
|
|
13
|
+
}
|
|
14
|
+
},
|
|
15
|
+
httpAuthSchemes() {
|
|
16
|
+
return _httpAuthSchemes;
|
|
17
|
+
},
|
|
18
|
+
setHttpAuthSchemeProvider(httpAuthSchemeProvider) {
|
|
19
|
+
_httpAuthSchemeProvider = httpAuthSchemeProvider;
|
|
20
|
+
},
|
|
21
|
+
httpAuthSchemeProvider() {
|
|
22
|
+
return _httpAuthSchemeProvider;
|
|
23
|
+
},
|
|
24
|
+
setCredentials(credentials) {
|
|
25
|
+
_credentials = credentials;
|
|
26
|
+
},
|
|
27
|
+
credentials() {
|
|
28
|
+
return _credentials;
|
|
29
|
+
},
|
|
30
|
+
};
|
|
31
|
+
};
|
|
32
|
+
export const resolveHttpAuthRuntimeConfig = (config) => {
|
|
33
|
+
return {
|
|
34
|
+
httpAuthSchemes: config.httpAuthSchemes(),
|
|
35
|
+
httpAuthSchemeProvider: config.httpAuthSchemeProvider(),
|
|
36
|
+
credentials: config.credentials(),
|
|
37
|
+
};
|
|
38
|
+
};
|
|
@@ -0,0 +1,41 @@
|
|
|
1
|
+
import { resolveAwsSdkSigV4Config, } from "@aws-sdk/core";
|
|
2
|
+
import { getSmithyContext, normalizeProvider } from "@smithy/util-middleware";
|
|
3
|
+
export const defaultBCMPricingCalculatorHttpAuthSchemeParametersProvider = async (config, context, input) => {
|
|
4
|
+
return {
|
|
5
|
+
operation: getSmithyContext(context).operation,
|
|
6
|
+
region: (await normalizeProvider(config.region)()) ||
|
|
7
|
+
(() => {
|
|
8
|
+
throw new Error("expected `region` to be configured for `aws.auth#sigv4`");
|
|
9
|
+
})(),
|
|
10
|
+
};
|
|
11
|
+
};
|
|
12
|
+
function createAwsAuthSigv4HttpAuthOption(authParameters) {
|
|
13
|
+
return {
|
|
14
|
+
schemeId: "aws.auth#sigv4",
|
|
15
|
+
signingProperties: {
|
|
16
|
+
name: "bcm-pricing-calculator",
|
|
17
|
+
region: authParameters.region,
|
|
18
|
+
},
|
|
19
|
+
propertiesExtractor: (config, context) => ({
|
|
20
|
+
signingProperties: {
|
|
21
|
+
config,
|
|
22
|
+
context,
|
|
23
|
+
},
|
|
24
|
+
}),
|
|
25
|
+
};
|
|
26
|
+
}
|
|
27
|
+
export const defaultBCMPricingCalculatorHttpAuthSchemeProvider = (authParameters) => {
|
|
28
|
+
const options = [];
|
|
29
|
+
switch (authParameters.operation) {
|
|
30
|
+
default: {
|
|
31
|
+
options.push(createAwsAuthSigv4HttpAuthOption(authParameters));
|
|
32
|
+
}
|
|
33
|
+
}
|
|
34
|
+
return options;
|
|
35
|
+
};
|
|
36
|
+
export const resolveHttpAuthSchemeConfig = (config) => {
|
|
37
|
+
const config_0 = resolveAwsSdkSigV4Config(config);
|
|
38
|
+
return {
|
|
39
|
+
...config_0,
|
|
40
|
+
};
|
|
41
|
+
};
|
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
import { getEndpointPlugin } from "@smithy/middleware-endpoint";
|
|
2
|
+
import { getSerdePlugin } from "@smithy/middleware-serde";
|
|
3
|
+
import { Command as $Command } from "@smithy/smithy-client";
|
|
4
|
+
import { commonParams } from "../endpoint/EndpointParameters";
|
|
5
|
+
import { de_BatchCreateBillScenarioCommitmentModificationCommand, se_BatchCreateBillScenarioCommitmentModificationCommand, } from "../protocols/Aws_json1_0";
|
|
6
|
+
export { $Command };
|
|
7
|
+
export class BatchCreateBillScenarioCommitmentModificationCommand extends $Command
|
|
8
|
+
.classBuilder()
|
|
9
|
+
.ep(commonParams)
|
|
10
|
+
.m(function (Command, cs, config, o) {
|
|
11
|
+
return [
|
|
12
|
+
getSerdePlugin(config, this.serialize, this.deserialize),
|
|
13
|
+
getEndpointPlugin(config, Command.getEndpointParameterInstructions()),
|
|
14
|
+
];
|
|
15
|
+
})
|
|
16
|
+
.s("AWSBCMPricingCalculator", "BatchCreateBillScenarioCommitmentModification", {})
|
|
17
|
+
.n("BCMPricingCalculatorClient", "BatchCreateBillScenarioCommitmentModificationCommand")
|
|
18
|
+
.f(void 0, void 0)
|
|
19
|
+
.ser(se_BatchCreateBillScenarioCommitmentModificationCommand)
|
|
20
|
+
.de(de_BatchCreateBillScenarioCommitmentModificationCommand)
|
|
21
|
+
.build() {
|
|
22
|
+
}
|
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
import { getEndpointPlugin } from "@smithy/middleware-endpoint";
|
|
2
|
+
import { getSerdePlugin } from "@smithy/middleware-serde";
|
|
3
|
+
import { Command as $Command } from "@smithy/smithy-client";
|
|
4
|
+
import { commonParams } from "../endpoint/EndpointParameters";
|
|
5
|
+
import { de_BatchCreateBillScenarioUsageModificationCommand, se_BatchCreateBillScenarioUsageModificationCommand, } from "../protocols/Aws_json1_0";
|
|
6
|
+
export { $Command };
|
|
7
|
+
export class BatchCreateBillScenarioUsageModificationCommand extends $Command
|
|
8
|
+
.classBuilder()
|
|
9
|
+
.ep(commonParams)
|
|
10
|
+
.m(function (Command, cs, config, o) {
|
|
11
|
+
return [
|
|
12
|
+
getSerdePlugin(config, this.serialize, this.deserialize),
|
|
13
|
+
getEndpointPlugin(config, Command.getEndpointParameterInstructions()),
|
|
14
|
+
];
|
|
15
|
+
})
|
|
16
|
+
.s("AWSBCMPricingCalculator", "BatchCreateBillScenarioUsageModification", {})
|
|
17
|
+
.n("BCMPricingCalculatorClient", "BatchCreateBillScenarioUsageModificationCommand")
|
|
18
|
+
.f(void 0, void 0)
|
|
19
|
+
.ser(se_BatchCreateBillScenarioUsageModificationCommand)
|
|
20
|
+
.de(de_BatchCreateBillScenarioUsageModificationCommand)
|
|
21
|
+
.build() {
|
|
22
|
+
}
|
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
import { getEndpointPlugin } from "@smithy/middleware-endpoint";
|
|
2
|
+
import { getSerdePlugin } from "@smithy/middleware-serde";
|
|
3
|
+
import { Command as $Command } from "@smithy/smithy-client";
|
|
4
|
+
import { commonParams } from "../endpoint/EndpointParameters";
|
|
5
|
+
import { de_BatchCreateWorkloadEstimateUsageCommand, se_BatchCreateWorkloadEstimateUsageCommand, } from "../protocols/Aws_json1_0";
|
|
6
|
+
export { $Command };
|
|
7
|
+
export class BatchCreateWorkloadEstimateUsageCommand extends $Command
|
|
8
|
+
.classBuilder()
|
|
9
|
+
.ep(commonParams)
|
|
10
|
+
.m(function (Command, cs, config, o) {
|
|
11
|
+
return [
|
|
12
|
+
getSerdePlugin(config, this.serialize, this.deserialize),
|
|
13
|
+
getEndpointPlugin(config, Command.getEndpointParameterInstructions()),
|
|
14
|
+
];
|
|
15
|
+
})
|
|
16
|
+
.s("AWSBCMPricingCalculator", "BatchCreateWorkloadEstimateUsage", {})
|
|
17
|
+
.n("BCMPricingCalculatorClient", "BatchCreateWorkloadEstimateUsageCommand")
|
|
18
|
+
.f(void 0, void 0)
|
|
19
|
+
.ser(se_BatchCreateWorkloadEstimateUsageCommand)
|
|
20
|
+
.de(de_BatchCreateWorkloadEstimateUsageCommand)
|
|
21
|
+
.build() {
|
|
22
|
+
}
|
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
import { getEndpointPlugin } from "@smithy/middleware-endpoint";
|
|
2
|
+
import { getSerdePlugin } from "@smithy/middleware-serde";
|
|
3
|
+
import { Command as $Command } from "@smithy/smithy-client";
|
|
4
|
+
import { commonParams } from "../endpoint/EndpointParameters";
|
|
5
|
+
import { de_BatchDeleteBillScenarioCommitmentModificationCommand, se_BatchDeleteBillScenarioCommitmentModificationCommand, } from "../protocols/Aws_json1_0";
|
|
6
|
+
export { $Command };
|
|
7
|
+
export class BatchDeleteBillScenarioCommitmentModificationCommand extends $Command
|
|
8
|
+
.classBuilder()
|
|
9
|
+
.ep(commonParams)
|
|
10
|
+
.m(function (Command, cs, config, o) {
|
|
11
|
+
return [
|
|
12
|
+
getSerdePlugin(config, this.serialize, this.deserialize),
|
|
13
|
+
getEndpointPlugin(config, Command.getEndpointParameterInstructions()),
|
|
14
|
+
];
|
|
15
|
+
})
|
|
16
|
+
.s("AWSBCMPricingCalculator", "BatchDeleteBillScenarioCommitmentModification", {})
|
|
17
|
+
.n("BCMPricingCalculatorClient", "BatchDeleteBillScenarioCommitmentModificationCommand")
|
|
18
|
+
.f(void 0, void 0)
|
|
19
|
+
.ser(se_BatchDeleteBillScenarioCommitmentModificationCommand)
|
|
20
|
+
.de(de_BatchDeleteBillScenarioCommitmentModificationCommand)
|
|
21
|
+
.build() {
|
|
22
|
+
}
|
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
import { getEndpointPlugin } from "@smithy/middleware-endpoint";
|
|
2
|
+
import { getSerdePlugin } from "@smithy/middleware-serde";
|
|
3
|
+
import { Command as $Command } from "@smithy/smithy-client";
|
|
4
|
+
import { commonParams } from "../endpoint/EndpointParameters";
|
|
5
|
+
import { de_BatchDeleteBillScenarioUsageModificationCommand, se_BatchDeleteBillScenarioUsageModificationCommand, } from "../protocols/Aws_json1_0";
|
|
6
|
+
export { $Command };
|
|
7
|
+
export class BatchDeleteBillScenarioUsageModificationCommand extends $Command
|
|
8
|
+
.classBuilder()
|
|
9
|
+
.ep(commonParams)
|
|
10
|
+
.m(function (Command, cs, config, o) {
|
|
11
|
+
return [
|
|
12
|
+
getSerdePlugin(config, this.serialize, this.deserialize),
|
|
13
|
+
getEndpointPlugin(config, Command.getEndpointParameterInstructions()),
|
|
14
|
+
];
|
|
15
|
+
})
|
|
16
|
+
.s("AWSBCMPricingCalculator", "BatchDeleteBillScenarioUsageModification", {})
|
|
17
|
+
.n("BCMPricingCalculatorClient", "BatchDeleteBillScenarioUsageModificationCommand")
|
|
18
|
+
.f(void 0, void 0)
|
|
19
|
+
.ser(se_BatchDeleteBillScenarioUsageModificationCommand)
|
|
20
|
+
.de(de_BatchDeleteBillScenarioUsageModificationCommand)
|
|
21
|
+
.build() {
|
|
22
|
+
}
|
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
import { getEndpointPlugin } from "@smithy/middleware-endpoint";
|
|
2
|
+
import { getSerdePlugin } from "@smithy/middleware-serde";
|
|
3
|
+
import { Command as $Command } from "@smithy/smithy-client";
|
|
4
|
+
import { commonParams } from "../endpoint/EndpointParameters";
|
|
5
|
+
import { de_BatchDeleteWorkloadEstimateUsageCommand, se_BatchDeleteWorkloadEstimateUsageCommand, } from "../protocols/Aws_json1_0";
|
|
6
|
+
export { $Command };
|
|
7
|
+
export class BatchDeleteWorkloadEstimateUsageCommand extends $Command
|
|
8
|
+
.classBuilder()
|
|
9
|
+
.ep(commonParams)
|
|
10
|
+
.m(function (Command, cs, config, o) {
|
|
11
|
+
return [
|
|
12
|
+
getSerdePlugin(config, this.serialize, this.deserialize),
|
|
13
|
+
getEndpointPlugin(config, Command.getEndpointParameterInstructions()),
|
|
14
|
+
];
|
|
15
|
+
})
|
|
16
|
+
.s("AWSBCMPricingCalculator", "BatchDeleteWorkloadEstimateUsage", {})
|
|
17
|
+
.n("BCMPricingCalculatorClient", "BatchDeleteWorkloadEstimateUsageCommand")
|
|
18
|
+
.f(void 0, void 0)
|
|
19
|
+
.ser(se_BatchDeleteWorkloadEstimateUsageCommand)
|
|
20
|
+
.de(de_BatchDeleteWorkloadEstimateUsageCommand)
|
|
21
|
+
.build() {
|
|
22
|
+
}
|
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
import { getEndpointPlugin } from "@smithy/middleware-endpoint";
|
|
2
|
+
import { getSerdePlugin } from "@smithy/middleware-serde";
|
|
3
|
+
import { Command as $Command } from "@smithy/smithy-client";
|
|
4
|
+
import { commonParams } from "../endpoint/EndpointParameters";
|
|
5
|
+
import { de_BatchUpdateBillScenarioCommitmentModificationCommand, se_BatchUpdateBillScenarioCommitmentModificationCommand, } from "../protocols/Aws_json1_0";
|
|
6
|
+
export { $Command };
|
|
7
|
+
export class BatchUpdateBillScenarioCommitmentModificationCommand extends $Command
|
|
8
|
+
.classBuilder()
|
|
9
|
+
.ep(commonParams)
|
|
10
|
+
.m(function (Command, cs, config, o) {
|
|
11
|
+
return [
|
|
12
|
+
getSerdePlugin(config, this.serialize, this.deserialize),
|
|
13
|
+
getEndpointPlugin(config, Command.getEndpointParameterInstructions()),
|
|
14
|
+
];
|
|
15
|
+
})
|
|
16
|
+
.s("AWSBCMPricingCalculator", "BatchUpdateBillScenarioCommitmentModification", {})
|
|
17
|
+
.n("BCMPricingCalculatorClient", "BatchUpdateBillScenarioCommitmentModificationCommand")
|
|
18
|
+
.f(void 0, void 0)
|
|
19
|
+
.ser(se_BatchUpdateBillScenarioCommitmentModificationCommand)
|
|
20
|
+
.de(de_BatchUpdateBillScenarioCommitmentModificationCommand)
|
|
21
|
+
.build() {
|
|
22
|
+
}
|
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
import { getEndpointPlugin } from "@smithy/middleware-endpoint";
|
|
2
|
+
import { getSerdePlugin } from "@smithy/middleware-serde";
|
|
3
|
+
import { Command as $Command } from "@smithy/smithy-client";
|
|
4
|
+
import { commonParams } from "../endpoint/EndpointParameters";
|
|
5
|
+
import { de_BatchUpdateBillScenarioUsageModificationCommand, se_BatchUpdateBillScenarioUsageModificationCommand, } from "../protocols/Aws_json1_0";
|
|
6
|
+
export { $Command };
|
|
7
|
+
export class BatchUpdateBillScenarioUsageModificationCommand extends $Command
|
|
8
|
+
.classBuilder()
|
|
9
|
+
.ep(commonParams)
|
|
10
|
+
.m(function (Command, cs, config, o) {
|
|
11
|
+
return [
|
|
12
|
+
getSerdePlugin(config, this.serialize, this.deserialize),
|
|
13
|
+
getEndpointPlugin(config, Command.getEndpointParameterInstructions()),
|
|
14
|
+
];
|
|
15
|
+
})
|
|
16
|
+
.s("AWSBCMPricingCalculator", "BatchUpdateBillScenarioUsageModification", {})
|
|
17
|
+
.n("BCMPricingCalculatorClient", "BatchUpdateBillScenarioUsageModificationCommand")
|
|
18
|
+
.f(void 0, void 0)
|
|
19
|
+
.ser(se_BatchUpdateBillScenarioUsageModificationCommand)
|
|
20
|
+
.de(de_BatchUpdateBillScenarioUsageModificationCommand)
|
|
21
|
+
.build() {
|
|
22
|
+
}
|
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
import { getEndpointPlugin } from "@smithy/middleware-endpoint";
|
|
2
|
+
import { getSerdePlugin } from "@smithy/middleware-serde";
|
|
3
|
+
import { Command as $Command } from "@smithy/smithy-client";
|
|
4
|
+
import { commonParams } from "../endpoint/EndpointParameters";
|
|
5
|
+
import { de_BatchUpdateWorkloadEstimateUsageCommand, se_BatchUpdateWorkloadEstimateUsageCommand, } from "../protocols/Aws_json1_0";
|
|
6
|
+
export { $Command };
|
|
7
|
+
export class BatchUpdateWorkloadEstimateUsageCommand extends $Command
|
|
8
|
+
.classBuilder()
|
|
9
|
+
.ep(commonParams)
|
|
10
|
+
.m(function (Command, cs, config, o) {
|
|
11
|
+
return [
|
|
12
|
+
getSerdePlugin(config, this.serialize, this.deserialize),
|
|
13
|
+
getEndpointPlugin(config, Command.getEndpointParameterInstructions()),
|
|
14
|
+
];
|
|
15
|
+
})
|
|
16
|
+
.s("AWSBCMPricingCalculator", "BatchUpdateWorkloadEstimateUsage", {})
|
|
17
|
+
.n("BCMPricingCalculatorClient", "BatchUpdateWorkloadEstimateUsageCommand")
|
|
18
|
+
.f(void 0, void 0)
|
|
19
|
+
.ser(se_BatchUpdateWorkloadEstimateUsageCommand)
|
|
20
|
+
.de(de_BatchUpdateWorkloadEstimateUsageCommand)
|
|
21
|
+
.build() {
|
|
22
|
+
}
|
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
import { getEndpointPlugin } from "@smithy/middleware-endpoint";
|
|
2
|
+
import { getSerdePlugin } from "@smithy/middleware-serde";
|
|
3
|
+
import { Command as $Command } from "@smithy/smithy-client";
|
|
4
|
+
import { commonParams } from "../endpoint/EndpointParameters";
|
|
5
|
+
import { de_CreateBillEstimateCommand, se_CreateBillEstimateCommand } from "../protocols/Aws_json1_0";
|
|
6
|
+
export { $Command };
|
|
7
|
+
export class CreateBillEstimateCommand extends $Command
|
|
8
|
+
.classBuilder()
|
|
9
|
+
.ep(commonParams)
|
|
10
|
+
.m(function (Command, cs, config, o) {
|
|
11
|
+
return [
|
|
12
|
+
getSerdePlugin(config, this.serialize, this.deserialize),
|
|
13
|
+
getEndpointPlugin(config, Command.getEndpointParameterInstructions()),
|
|
14
|
+
];
|
|
15
|
+
})
|
|
16
|
+
.s("AWSBCMPricingCalculator", "CreateBillEstimate", {})
|
|
17
|
+
.n("BCMPricingCalculatorClient", "CreateBillEstimateCommand")
|
|
18
|
+
.f(void 0, void 0)
|
|
19
|
+
.ser(se_CreateBillEstimateCommand)
|
|
20
|
+
.de(de_CreateBillEstimateCommand)
|
|
21
|
+
.build() {
|
|
22
|
+
}
|
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
import { getEndpointPlugin } from "@smithy/middleware-endpoint";
|
|
2
|
+
import { getSerdePlugin } from "@smithy/middleware-serde";
|
|
3
|
+
import { Command as $Command } from "@smithy/smithy-client";
|
|
4
|
+
import { commonParams } from "../endpoint/EndpointParameters";
|
|
5
|
+
import { de_CreateBillScenarioCommand, se_CreateBillScenarioCommand } from "../protocols/Aws_json1_0";
|
|
6
|
+
export { $Command };
|
|
7
|
+
export class CreateBillScenarioCommand extends $Command
|
|
8
|
+
.classBuilder()
|
|
9
|
+
.ep(commonParams)
|
|
10
|
+
.m(function (Command, cs, config, o) {
|
|
11
|
+
return [
|
|
12
|
+
getSerdePlugin(config, this.serialize, this.deserialize),
|
|
13
|
+
getEndpointPlugin(config, Command.getEndpointParameterInstructions()),
|
|
14
|
+
];
|
|
15
|
+
})
|
|
16
|
+
.s("AWSBCMPricingCalculator", "CreateBillScenario", {})
|
|
17
|
+
.n("BCMPricingCalculatorClient", "CreateBillScenarioCommand")
|
|
18
|
+
.f(void 0, void 0)
|
|
19
|
+
.ser(se_CreateBillScenarioCommand)
|
|
20
|
+
.de(de_CreateBillScenarioCommand)
|
|
21
|
+
.build() {
|
|
22
|
+
}
|