@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,1685 @@
|
|
|
1
|
+
import { awsExpectUnion as __expectUnion, loadRestJsonErrorCode, parseJsonBody as parseBody, parseJsonErrorBody as parseErrorBody, } from "@aws-sdk/core";
|
|
2
|
+
import { HttpRequest as __HttpRequest } from "@smithy/protocol-http";
|
|
3
|
+
import { _json, collectBody, decorateServiceException as __decorateServiceException, expectNonNull as __expectNonNull, expectNumber as __expectNumber, expectString as __expectString, limitedParseDouble as __limitedParseDouble, parseEpochTimestamp as __parseEpochTimestamp, serializeFloat as __serializeFloat, take, withBaseException, } from "@smithy/smithy-client";
|
|
4
|
+
import { v4 as generateIdempotencyToken } from "uuid";
|
|
5
|
+
import { BCMPricingCalculatorServiceException as __BaseException } from "../models/BCMPricingCalculatorServiceException";
|
|
6
|
+
import { AccessDeniedException, BillScenarioCommitmentModificationAction, ConflictException, DataUnavailableException, InternalServerException, ResourceNotFoundException, ServiceQuotaExceededException, ThrottlingException, ValidationException, } from "../models/models_0";
|
|
7
|
+
export const se_BatchCreateBillScenarioCommitmentModificationCommand = async (input, context) => {
|
|
8
|
+
const headers = sharedHeaders("BatchCreateBillScenarioCommitmentModification");
|
|
9
|
+
let body;
|
|
10
|
+
body = JSON.stringify(se_BatchCreateBillScenarioCommitmentModificationRequest(input, context));
|
|
11
|
+
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
12
|
+
};
|
|
13
|
+
export const se_BatchCreateBillScenarioUsageModificationCommand = async (input, context) => {
|
|
14
|
+
const headers = sharedHeaders("BatchCreateBillScenarioUsageModification");
|
|
15
|
+
let body;
|
|
16
|
+
body = JSON.stringify(se_BatchCreateBillScenarioUsageModificationRequest(input, context));
|
|
17
|
+
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
18
|
+
};
|
|
19
|
+
export const se_BatchCreateWorkloadEstimateUsageCommand = async (input, context) => {
|
|
20
|
+
const headers = sharedHeaders("BatchCreateWorkloadEstimateUsage");
|
|
21
|
+
let body;
|
|
22
|
+
body = JSON.stringify(se_BatchCreateWorkloadEstimateUsageRequest(input, context));
|
|
23
|
+
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
24
|
+
};
|
|
25
|
+
export const se_BatchDeleteBillScenarioCommitmentModificationCommand = async (input, context) => {
|
|
26
|
+
const headers = sharedHeaders("BatchDeleteBillScenarioCommitmentModification");
|
|
27
|
+
let body;
|
|
28
|
+
body = JSON.stringify(_json(input));
|
|
29
|
+
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
30
|
+
};
|
|
31
|
+
export const se_BatchDeleteBillScenarioUsageModificationCommand = async (input, context) => {
|
|
32
|
+
const headers = sharedHeaders("BatchDeleteBillScenarioUsageModification");
|
|
33
|
+
let body;
|
|
34
|
+
body = JSON.stringify(_json(input));
|
|
35
|
+
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
36
|
+
};
|
|
37
|
+
export const se_BatchDeleteWorkloadEstimateUsageCommand = async (input, context) => {
|
|
38
|
+
const headers = sharedHeaders("BatchDeleteWorkloadEstimateUsage");
|
|
39
|
+
let body;
|
|
40
|
+
body = JSON.stringify(_json(input));
|
|
41
|
+
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
42
|
+
};
|
|
43
|
+
export const se_BatchUpdateBillScenarioCommitmentModificationCommand = async (input, context) => {
|
|
44
|
+
const headers = sharedHeaders("BatchUpdateBillScenarioCommitmentModification");
|
|
45
|
+
let body;
|
|
46
|
+
body = JSON.stringify(_json(input));
|
|
47
|
+
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
48
|
+
};
|
|
49
|
+
export const se_BatchUpdateBillScenarioUsageModificationCommand = async (input, context) => {
|
|
50
|
+
const headers = sharedHeaders("BatchUpdateBillScenarioUsageModification");
|
|
51
|
+
let body;
|
|
52
|
+
body = JSON.stringify(se_BatchUpdateBillScenarioUsageModificationRequest(input, context));
|
|
53
|
+
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
54
|
+
};
|
|
55
|
+
export const se_BatchUpdateWorkloadEstimateUsageCommand = async (input, context) => {
|
|
56
|
+
const headers = sharedHeaders("BatchUpdateWorkloadEstimateUsage");
|
|
57
|
+
let body;
|
|
58
|
+
body = JSON.stringify(se_BatchUpdateWorkloadEstimateUsageRequest(input, context));
|
|
59
|
+
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
60
|
+
};
|
|
61
|
+
export const se_CreateBillEstimateCommand = async (input, context) => {
|
|
62
|
+
const headers = sharedHeaders("CreateBillEstimate");
|
|
63
|
+
let body;
|
|
64
|
+
body = JSON.stringify(se_CreateBillEstimateRequest(input, context));
|
|
65
|
+
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
66
|
+
};
|
|
67
|
+
export const se_CreateBillScenarioCommand = async (input, context) => {
|
|
68
|
+
const headers = sharedHeaders("CreateBillScenario");
|
|
69
|
+
let body;
|
|
70
|
+
body = JSON.stringify(se_CreateBillScenarioRequest(input, context));
|
|
71
|
+
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
72
|
+
};
|
|
73
|
+
export const se_CreateWorkloadEstimateCommand = async (input, context) => {
|
|
74
|
+
const headers = sharedHeaders("CreateWorkloadEstimate");
|
|
75
|
+
let body;
|
|
76
|
+
body = JSON.stringify(se_CreateWorkloadEstimateRequest(input, context));
|
|
77
|
+
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
78
|
+
};
|
|
79
|
+
export const se_DeleteBillEstimateCommand = async (input, context) => {
|
|
80
|
+
const headers = sharedHeaders("DeleteBillEstimate");
|
|
81
|
+
let body;
|
|
82
|
+
body = JSON.stringify(_json(input));
|
|
83
|
+
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
84
|
+
};
|
|
85
|
+
export const se_DeleteBillScenarioCommand = async (input, context) => {
|
|
86
|
+
const headers = sharedHeaders("DeleteBillScenario");
|
|
87
|
+
let body;
|
|
88
|
+
body = JSON.stringify(_json(input));
|
|
89
|
+
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
90
|
+
};
|
|
91
|
+
export const se_DeleteWorkloadEstimateCommand = async (input, context) => {
|
|
92
|
+
const headers = sharedHeaders("DeleteWorkloadEstimate");
|
|
93
|
+
let body;
|
|
94
|
+
body = JSON.stringify(_json(input));
|
|
95
|
+
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
96
|
+
};
|
|
97
|
+
export const se_GetBillEstimateCommand = async (input, context) => {
|
|
98
|
+
const headers = sharedHeaders("GetBillEstimate");
|
|
99
|
+
let body;
|
|
100
|
+
body = JSON.stringify(_json(input));
|
|
101
|
+
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
102
|
+
};
|
|
103
|
+
export const se_GetBillScenarioCommand = async (input, context) => {
|
|
104
|
+
const headers = sharedHeaders("GetBillScenario");
|
|
105
|
+
let body;
|
|
106
|
+
body = JSON.stringify(_json(input));
|
|
107
|
+
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
108
|
+
};
|
|
109
|
+
export const se_GetPreferencesCommand = async (input, context) => {
|
|
110
|
+
const headers = sharedHeaders("GetPreferences");
|
|
111
|
+
let body;
|
|
112
|
+
body = JSON.stringify(_json(input));
|
|
113
|
+
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
114
|
+
};
|
|
115
|
+
export const se_GetWorkloadEstimateCommand = async (input, context) => {
|
|
116
|
+
const headers = sharedHeaders("GetWorkloadEstimate");
|
|
117
|
+
let body;
|
|
118
|
+
body = JSON.stringify(_json(input));
|
|
119
|
+
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
120
|
+
};
|
|
121
|
+
export const se_ListBillEstimateCommitmentsCommand = async (input, context) => {
|
|
122
|
+
const headers = sharedHeaders("ListBillEstimateCommitments");
|
|
123
|
+
let body;
|
|
124
|
+
body = JSON.stringify(_json(input));
|
|
125
|
+
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
126
|
+
};
|
|
127
|
+
export const se_ListBillEstimateInputCommitmentModificationsCommand = async (input, context) => {
|
|
128
|
+
const headers = sharedHeaders("ListBillEstimateInputCommitmentModifications");
|
|
129
|
+
let body;
|
|
130
|
+
body = JSON.stringify(_json(input));
|
|
131
|
+
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
132
|
+
};
|
|
133
|
+
export const se_ListBillEstimateInputUsageModificationsCommand = async (input, context) => {
|
|
134
|
+
const headers = sharedHeaders("ListBillEstimateInputUsageModifications");
|
|
135
|
+
let body;
|
|
136
|
+
body = JSON.stringify(_json(input));
|
|
137
|
+
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
138
|
+
};
|
|
139
|
+
export const se_ListBillEstimateLineItemsCommand = async (input, context) => {
|
|
140
|
+
const headers = sharedHeaders("ListBillEstimateLineItems");
|
|
141
|
+
let body;
|
|
142
|
+
body = JSON.stringify(_json(input));
|
|
143
|
+
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
144
|
+
};
|
|
145
|
+
export const se_ListBillEstimatesCommand = async (input, context) => {
|
|
146
|
+
const headers = sharedHeaders("ListBillEstimates");
|
|
147
|
+
let body;
|
|
148
|
+
body = JSON.stringify(se_ListBillEstimatesRequest(input, context));
|
|
149
|
+
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
150
|
+
};
|
|
151
|
+
export const se_ListBillScenarioCommitmentModificationsCommand = async (input, context) => {
|
|
152
|
+
const headers = sharedHeaders("ListBillScenarioCommitmentModifications");
|
|
153
|
+
let body;
|
|
154
|
+
body = JSON.stringify(_json(input));
|
|
155
|
+
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
156
|
+
};
|
|
157
|
+
export const se_ListBillScenariosCommand = async (input, context) => {
|
|
158
|
+
const headers = sharedHeaders("ListBillScenarios");
|
|
159
|
+
let body;
|
|
160
|
+
body = JSON.stringify(se_ListBillScenariosRequest(input, context));
|
|
161
|
+
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
162
|
+
};
|
|
163
|
+
export const se_ListBillScenarioUsageModificationsCommand = async (input, context) => {
|
|
164
|
+
const headers = sharedHeaders("ListBillScenarioUsageModifications");
|
|
165
|
+
let body;
|
|
166
|
+
body = JSON.stringify(_json(input));
|
|
167
|
+
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
168
|
+
};
|
|
169
|
+
export const se_ListTagsForResourceCommand = async (input, context) => {
|
|
170
|
+
const headers = sharedHeaders("ListTagsForResource");
|
|
171
|
+
let body;
|
|
172
|
+
body = JSON.stringify(_json(input));
|
|
173
|
+
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
174
|
+
};
|
|
175
|
+
export const se_ListWorkloadEstimatesCommand = async (input, context) => {
|
|
176
|
+
const headers = sharedHeaders("ListWorkloadEstimates");
|
|
177
|
+
let body;
|
|
178
|
+
body = JSON.stringify(se_ListWorkloadEstimatesRequest(input, context));
|
|
179
|
+
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
180
|
+
};
|
|
181
|
+
export const se_ListWorkloadEstimateUsageCommand = async (input, context) => {
|
|
182
|
+
const headers = sharedHeaders("ListWorkloadEstimateUsage");
|
|
183
|
+
let body;
|
|
184
|
+
body = JSON.stringify(_json(input));
|
|
185
|
+
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
186
|
+
};
|
|
187
|
+
export const se_TagResourceCommand = async (input, context) => {
|
|
188
|
+
const headers = sharedHeaders("TagResource");
|
|
189
|
+
let body;
|
|
190
|
+
body = JSON.stringify(_json(input));
|
|
191
|
+
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
192
|
+
};
|
|
193
|
+
export const se_UntagResourceCommand = async (input, context) => {
|
|
194
|
+
const headers = sharedHeaders("UntagResource");
|
|
195
|
+
let body;
|
|
196
|
+
body = JSON.stringify(_json(input));
|
|
197
|
+
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
198
|
+
};
|
|
199
|
+
export const se_UpdateBillEstimateCommand = async (input, context) => {
|
|
200
|
+
const headers = sharedHeaders("UpdateBillEstimate");
|
|
201
|
+
let body;
|
|
202
|
+
body = JSON.stringify(se_UpdateBillEstimateRequest(input, context));
|
|
203
|
+
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
204
|
+
};
|
|
205
|
+
export const se_UpdateBillScenarioCommand = async (input, context) => {
|
|
206
|
+
const headers = sharedHeaders("UpdateBillScenario");
|
|
207
|
+
let body;
|
|
208
|
+
body = JSON.stringify(se_UpdateBillScenarioRequest(input, context));
|
|
209
|
+
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
210
|
+
};
|
|
211
|
+
export const se_UpdatePreferencesCommand = async (input, context) => {
|
|
212
|
+
const headers = sharedHeaders("UpdatePreferences");
|
|
213
|
+
let body;
|
|
214
|
+
body = JSON.stringify(_json(input));
|
|
215
|
+
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
216
|
+
};
|
|
217
|
+
export const se_UpdateWorkloadEstimateCommand = async (input, context) => {
|
|
218
|
+
const headers = sharedHeaders("UpdateWorkloadEstimate");
|
|
219
|
+
let body;
|
|
220
|
+
body = JSON.stringify(se_UpdateWorkloadEstimateRequest(input, context));
|
|
221
|
+
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
222
|
+
};
|
|
223
|
+
export const de_BatchCreateBillScenarioCommitmentModificationCommand = async (output, context) => {
|
|
224
|
+
if (output.statusCode >= 300) {
|
|
225
|
+
return de_CommandError(output, context);
|
|
226
|
+
}
|
|
227
|
+
const data = await parseBody(output.body, context);
|
|
228
|
+
let contents = {};
|
|
229
|
+
contents = de_BatchCreateBillScenarioCommitmentModificationResponse(data, context);
|
|
230
|
+
const response = {
|
|
231
|
+
$metadata: deserializeMetadata(output),
|
|
232
|
+
...contents,
|
|
233
|
+
};
|
|
234
|
+
return response;
|
|
235
|
+
};
|
|
236
|
+
export const de_BatchCreateBillScenarioUsageModificationCommand = async (output, context) => {
|
|
237
|
+
if (output.statusCode >= 300) {
|
|
238
|
+
return de_CommandError(output, context);
|
|
239
|
+
}
|
|
240
|
+
const data = await parseBody(output.body, context);
|
|
241
|
+
let contents = {};
|
|
242
|
+
contents = de_BatchCreateBillScenarioUsageModificationResponse(data, context);
|
|
243
|
+
const response = {
|
|
244
|
+
$metadata: deserializeMetadata(output),
|
|
245
|
+
...contents,
|
|
246
|
+
};
|
|
247
|
+
return response;
|
|
248
|
+
};
|
|
249
|
+
export const de_BatchCreateWorkloadEstimateUsageCommand = async (output, context) => {
|
|
250
|
+
if (output.statusCode >= 300) {
|
|
251
|
+
return de_CommandError(output, context);
|
|
252
|
+
}
|
|
253
|
+
const data = await parseBody(output.body, context);
|
|
254
|
+
let contents = {};
|
|
255
|
+
contents = de_BatchCreateWorkloadEstimateUsageResponse(data, context);
|
|
256
|
+
const response = {
|
|
257
|
+
$metadata: deserializeMetadata(output),
|
|
258
|
+
...contents,
|
|
259
|
+
};
|
|
260
|
+
return response;
|
|
261
|
+
};
|
|
262
|
+
export const de_BatchDeleteBillScenarioCommitmentModificationCommand = async (output, context) => {
|
|
263
|
+
if (output.statusCode >= 300) {
|
|
264
|
+
return de_CommandError(output, context);
|
|
265
|
+
}
|
|
266
|
+
const data = await parseBody(output.body, context);
|
|
267
|
+
let contents = {};
|
|
268
|
+
contents = _json(data);
|
|
269
|
+
const response = {
|
|
270
|
+
$metadata: deserializeMetadata(output),
|
|
271
|
+
...contents,
|
|
272
|
+
};
|
|
273
|
+
return response;
|
|
274
|
+
};
|
|
275
|
+
export const de_BatchDeleteBillScenarioUsageModificationCommand = async (output, context) => {
|
|
276
|
+
if (output.statusCode >= 300) {
|
|
277
|
+
return de_CommandError(output, context);
|
|
278
|
+
}
|
|
279
|
+
const data = await parseBody(output.body, context);
|
|
280
|
+
let contents = {};
|
|
281
|
+
contents = _json(data);
|
|
282
|
+
const response = {
|
|
283
|
+
$metadata: deserializeMetadata(output),
|
|
284
|
+
...contents,
|
|
285
|
+
};
|
|
286
|
+
return response;
|
|
287
|
+
};
|
|
288
|
+
export const de_BatchDeleteWorkloadEstimateUsageCommand = async (output, context) => {
|
|
289
|
+
if (output.statusCode >= 300) {
|
|
290
|
+
return de_CommandError(output, context);
|
|
291
|
+
}
|
|
292
|
+
const data = await parseBody(output.body, context);
|
|
293
|
+
let contents = {};
|
|
294
|
+
contents = _json(data);
|
|
295
|
+
const response = {
|
|
296
|
+
$metadata: deserializeMetadata(output),
|
|
297
|
+
...contents,
|
|
298
|
+
};
|
|
299
|
+
return response;
|
|
300
|
+
};
|
|
301
|
+
export const de_BatchUpdateBillScenarioCommitmentModificationCommand = async (output, context) => {
|
|
302
|
+
if (output.statusCode >= 300) {
|
|
303
|
+
return de_CommandError(output, context);
|
|
304
|
+
}
|
|
305
|
+
const data = await parseBody(output.body, context);
|
|
306
|
+
let contents = {};
|
|
307
|
+
contents = de_BatchUpdateBillScenarioCommitmentModificationResponse(data, context);
|
|
308
|
+
const response = {
|
|
309
|
+
$metadata: deserializeMetadata(output),
|
|
310
|
+
...contents,
|
|
311
|
+
};
|
|
312
|
+
return response;
|
|
313
|
+
};
|
|
314
|
+
export const de_BatchUpdateBillScenarioUsageModificationCommand = async (output, context) => {
|
|
315
|
+
if (output.statusCode >= 300) {
|
|
316
|
+
return de_CommandError(output, context);
|
|
317
|
+
}
|
|
318
|
+
const data = await parseBody(output.body, context);
|
|
319
|
+
let contents = {};
|
|
320
|
+
contents = de_BatchUpdateBillScenarioUsageModificationResponse(data, context);
|
|
321
|
+
const response = {
|
|
322
|
+
$metadata: deserializeMetadata(output),
|
|
323
|
+
...contents,
|
|
324
|
+
};
|
|
325
|
+
return response;
|
|
326
|
+
};
|
|
327
|
+
export const de_BatchUpdateWorkloadEstimateUsageCommand = async (output, context) => {
|
|
328
|
+
if (output.statusCode >= 300) {
|
|
329
|
+
return de_CommandError(output, context);
|
|
330
|
+
}
|
|
331
|
+
const data = await parseBody(output.body, context);
|
|
332
|
+
let contents = {};
|
|
333
|
+
contents = de_BatchUpdateWorkloadEstimateUsageResponse(data, context);
|
|
334
|
+
const response = {
|
|
335
|
+
$metadata: deserializeMetadata(output),
|
|
336
|
+
...contents,
|
|
337
|
+
};
|
|
338
|
+
return response;
|
|
339
|
+
};
|
|
340
|
+
export const de_CreateBillEstimateCommand = async (output, context) => {
|
|
341
|
+
if (output.statusCode >= 300) {
|
|
342
|
+
return de_CommandError(output, context);
|
|
343
|
+
}
|
|
344
|
+
const data = await parseBody(output.body, context);
|
|
345
|
+
let contents = {};
|
|
346
|
+
contents = de_CreateBillEstimateResponse(data, context);
|
|
347
|
+
const response = {
|
|
348
|
+
$metadata: deserializeMetadata(output),
|
|
349
|
+
...contents,
|
|
350
|
+
};
|
|
351
|
+
return response;
|
|
352
|
+
};
|
|
353
|
+
export const de_CreateBillScenarioCommand = async (output, context) => {
|
|
354
|
+
if (output.statusCode >= 300) {
|
|
355
|
+
return de_CommandError(output, context);
|
|
356
|
+
}
|
|
357
|
+
const data = await parseBody(output.body, context);
|
|
358
|
+
let contents = {};
|
|
359
|
+
contents = de_CreateBillScenarioResponse(data, context);
|
|
360
|
+
const response = {
|
|
361
|
+
$metadata: deserializeMetadata(output),
|
|
362
|
+
...contents,
|
|
363
|
+
};
|
|
364
|
+
return response;
|
|
365
|
+
};
|
|
366
|
+
export const de_CreateWorkloadEstimateCommand = async (output, context) => {
|
|
367
|
+
if (output.statusCode >= 300) {
|
|
368
|
+
return de_CommandError(output, context);
|
|
369
|
+
}
|
|
370
|
+
const data = await parseBody(output.body, context);
|
|
371
|
+
let contents = {};
|
|
372
|
+
contents = de_CreateWorkloadEstimateResponse(data, context);
|
|
373
|
+
const response = {
|
|
374
|
+
$metadata: deserializeMetadata(output),
|
|
375
|
+
...contents,
|
|
376
|
+
};
|
|
377
|
+
return response;
|
|
378
|
+
};
|
|
379
|
+
export const de_DeleteBillEstimateCommand = async (output, context) => {
|
|
380
|
+
if (output.statusCode >= 300) {
|
|
381
|
+
return de_CommandError(output, context);
|
|
382
|
+
}
|
|
383
|
+
const data = await parseBody(output.body, context);
|
|
384
|
+
let contents = {};
|
|
385
|
+
contents = _json(data);
|
|
386
|
+
const response = {
|
|
387
|
+
$metadata: deserializeMetadata(output),
|
|
388
|
+
...contents,
|
|
389
|
+
};
|
|
390
|
+
return response;
|
|
391
|
+
};
|
|
392
|
+
export const de_DeleteBillScenarioCommand = async (output, context) => {
|
|
393
|
+
if (output.statusCode >= 300) {
|
|
394
|
+
return de_CommandError(output, context);
|
|
395
|
+
}
|
|
396
|
+
const data = await parseBody(output.body, context);
|
|
397
|
+
let contents = {};
|
|
398
|
+
contents = _json(data);
|
|
399
|
+
const response = {
|
|
400
|
+
$metadata: deserializeMetadata(output),
|
|
401
|
+
...contents,
|
|
402
|
+
};
|
|
403
|
+
return response;
|
|
404
|
+
};
|
|
405
|
+
export const de_DeleteWorkloadEstimateCommand = async (output, context) => {
|
|
406
|
+
if (output.statusCode >= 300) {
|
|
407
|
+
return de_CommandError(output, context);
|
|
408
|
+
}
|
|
409
|
+
const data = await parseBody(output.body, context);
|
|
410
|
+
let contents = {};
|
|
411
|
+
contents = _json(data);
|
|
412
|
+
const response = {
|
|
413
|
+
$metadata: deserializeMetadata(output),
|
|
414
|
+
...contents,
|
|
415
|
+
};
|
|
416
|
+
return response;
|
|
417
|
+
};
|
|
418
|
+
export const de_GetBillEstimateCommand = async (output, context) => {
|
|
419
|
+
if (output.statusCode >= 300) {
|
|
420
|
+
return de_CommandError(output, context);
|
|
421
|
+
}
|
|
422
|
+
const data = await parseBody(output.body, context);
|
|
423
|
+
let contents = {};
|
|
424
|
+
contents = de_GetBillEstimateResponse(data, context);
|
|
425
|
+
const response = {
|
|
426
|
+
$metadata: deserializeMetadata(output),
|
|
427
|
+
...contents,
|
|
428
|
+
};
|
|
429
|
+
return response;
|
|
430
|
+
};
|
|
431
|
+
export const de_GetBillScenarioCommand = async (output, context) => {
|
|
432
|
+
if (output.statusCode >= 300) {
|
|
433
|
+
return de_CommandError(output, context);
|
|
434
|
+
}
|
|
435
|
+
const data = await parseBody(output.body, context);
|
|
436
|
+
let contents = {};
|
|
437
|
+
contents = de_GetBillScenarioResponse(data, context);
|
|
438
|
+
const response = {
|
|
439
|
+
$metadata: deserializeMetadata(output),
|
|
440
|
+
...contents,
|
|
441
|
+
};
|
|
442
|
+
return response;
|
|
443
|
+
};
|
|
444
|
+
export const de_GetPreferencesCommand = async (output, context) => {
|
|
445
|
+
if (output.statusCode >= 300) {
|
|
446
|
+
return de_CommandError(output, context);
|
|
447
|
+
}
|
|
448
|
+
const data = await parseBody(output.body, context);
|
|
449
|
+
let contents = {};
|
|
450
|
+
contents = _json(data);
|
|
451
|
+
const response = {
|
|
452
|
+
$metadata: deserializeMetadata(output),
|
|
453
|
+
...contents,
|
|
454
|
+
};
|
|
455
|
+
return response;
|
|
456
|
+
};
|
|
457
|
+
export const de_GetWorkloadEstimateCommand = async (output, context) => {
|
|
458
|
+
if (output.statusCode >= 300) {
|
|
459
|
+
return de_CommandError(output, context);
|
|
460
|
+
}
|
|
461
|
+
const data = await parseBody(output.body, context);
|
|
462
|
+
let contents = {};
|
|
463
|
+
contents = de_GetWorkloadEstimateResponse(data, context);
|
|
464
|
+
const response = {
|
|
465
|
+
$metadata: deserializeMetadata(output),
|
|
466
|
+
...contents,
|
|
467
|
+
};
|
|
468
|
+
return response;
|
|
469
|
+
};
|
|
470
|
+
export const de_ListBillEstimateCommitmentsCommand = async (output, context) => {
|
|
471
|
+
if (output.statusCode >= 300) {
|
|
472
|
+
return de_CommandError(output, context);
|
|
473
|
+
}
|
|
474
|
+
const data = await parseBody(output.body, context);
|
|
475
|
+
let contents = {};
|
|
476
|
+
contents = de_ListBillEstimateCommitmentsResponse(data, context);
|
|
477
|
+
const response = {
|
|
478
|
+
$metadata: deserializeMetadata(output),
|
|
479
|
+
...contents,
|
|
480
|
+
};
|
|
481
|
+
return response;
|
|
482
|
+
};
|
|
483
|
+
export const de_ListBillEstimateInputCommitmentModificationsCommand = async (output, context) => {
|
|
484
|
+
if (output.statusCode >= 300) {
|
|
485
|
+
return de_CommandError(output, context);
|
|
486
|
+
}
|
|
487
|
+
const data = await parseBody(output.body, context);
|
|
488
|
+
let contents = {};
|
|
489
|
+
contents = de_ListBillEstimateInputCommitmentModificationsResponse(data, context);
|
|
490
|
+
const response = {
|
|
491
|
+
$metadata: deserializeMetadata(output),
|
|
492
|
+
...contents,
|
|
493
|
+
};
|
|
494
|
+
return response;
|
|
495
|
+
};
|
|
496
|
+
export const de_ListBillEstimateInputUsageModificationsCommand = async (output, context) => {
|
|
497
|
+
if (output.statusCode >= 300) {
|
|
498
|
+
return de_CommandError(output, context);
|
|
499
|
+
}
|
|
500
|
+
const data = await parseBody(output.body, context);
|
|
501
|
+
let contents = {};
|
|
502
|
+
contents = de_ListBillEstimateInputUsageModificationsResponse(data, context);
|
|
503
|
+
const response = {
|
|
504
|
+
$metadata: deserializeMetadata(output),
|
|
505
|
+
...contents,
|
|
506
|
+
};
|
|
507
|
+
return response;
|
|
508
|
+
};
|
|
509
|
+
export const de_ListBillEstimateLineItemsCommand = async (output, context) => {
|
|
510
|
+
if (output.statusCode >= 300) {
|
|
511
|
+
return de_CommandError(output, context);
|
|
512
|
+
}
|
|
513
|
+
const data = await parseBody(output.body, context);
|
|
514
|
+
let contents = {};
|
|
515
|
+
contents = de_ListBillEstimateLineItemsResponse(data, context);
|
|
516
|
+
const response = {
|
|
517
|
+
$metadata: deserializeMetadata(output),
|
|
518
|
+
...contents,
|
|
519
|
+
};
|
|
520
|
+
return response;
|
|
521
|
+
};
|
|
522
|
+
export const de_ListBillEstimatesCommand = async (output, context) => {
|
|
523
|
+
if (output.statusCode >= 300) {
|
|
524
|
+
return de_CommandError(output, context);
|
|
525
|
+
}
|
|
526
|
+
const data = await parseBody(output.body, context);
|
|
527
|
+
let contents = {};
|
|
528
|
+
contents = de_ListBillEstimatesResponse(data, context);
|
|
529
|
+
const response = {
|
|
530
|
+
$metadata: deserializeMetadata(output),
|
|
531
|
+
...contents,
|
|
532
|
+
};
|
|
533
|
+
return response;
|
|
534
|
+
};
|
|
535
|
+
export const de_ListBillScenarioCommitmentModificationsCommand = async (output, context) => {
|
|
536
|
+
if (output.statusCode >= 300) {
|
|
537
|
+
return de_CommandError(output, context);
|
|
538
|
+
}
|
|
539
|
+
const data = await parseBody(output.body, context);
|
|
540
|
+
let contents = {};
|
|
541
|
+
contents = de_ListBillScenarioCommitmentModificationsResponse(data, context);
|
|
542
|
+
const response = {
|
|
543
|
+
$metadata: deserializeMetadata(output),
|
|
544
|
+
...contents,
|
|
545
|
+
};
|
|
546
|
+
return response;
|
|
547
|
+
};
|
|
548
|
+
export const de_ListBillScenariosCommand = async (output, context) => {
|
|
549
|
+
if (output.statusCode >= 300) {
|
|
550
|
+
return de_CommandError(output, context);
|
|
551
|
+
}
|
|
552
|
+
const data = await parseBody(output.body, context);
|
|
553
|
+
let contents = {};
|
|
554
|
+
contents = de_ListBillScenariosResponse(data, context);
|
|
555
|
+
const response = {
|
|
556
|
+
$metadata: deserializeMetadata(output),
|
|
557
|
+
...contents,
|
|
558
|
+
};
|
|
559
|
+
return response;
|
|
560
|
+
};
|
|
561
|
+
export const de_ListBillScenarioUsageModificationsCommand = async (output, context) => {
|
|
562
|
+
if (output.statusCode >= 300) {
|
|
563
|
+
return de_CommandError(output, context);
|
|
564
|
+
}
|
|
565
|
+
const data = await parseBody(output.body, context);
|
|
566
|
+
let contents = {};
|
|
567
|
+
contents = de_ListBillScenarioUsageModificationsResponse(data, context);
|
|
568
|
+
const response = {
|
|
569
|
+
$metadata: deserializeMetadata(output),
|
|
570
|
+
...contents,
|
|
571
|
+
};
|
|
572
|
+
return response;
|
|
573
|
+
};
|
|
574
|
+
export const de_ListTagsForResourceCommand = async (output, context) => {
|
|
575
|
+
if (output.statusCode >= 300) {
|
|
576
|
+
return de_CommandError(output, context);
|
|
577
|
+
}
|
|
578
|
+
const data = await parseBody(output.body, context);
|
|
579
|
+
let contents = {};
|
|
580
|
+
contents = _json(data);
|
|
581
|
+
const response = {
|
|
582
|
+
$metadata: deserializeMetadata(output),
|
|
583
|
+
...contents,
|
|
584
|
+
};
|
|
585
|
+
return response;
|
|
586
|
+
};
|
|
587
|
+
export const de_ListWorkloadEstimatesCommand = async (output, context) => {
|
|
588
|
+
if (output.statusCode >= 300) {
|
|
589
|
+
return de_CommandError(output, context);
|
|
590
|
+
}
|
|
591
|
+
const data = await parseBody(output.body, context);
|
|
592
|
+
let contents = {};
|
|
593
|
+
contents = de_ListWorkloadEstimatesResponse(data, context);
|
|
594
|
+
const response = {
|
|
595
|
+
$metadata: deserializeMetadata(output),
|
|
596
|
+
...contents,
|
|
597
|
+
};
|
|
598
|
+
return response;
|
|
599
|
+
};
|
|
600
|
+
export const de_ListWorkloadEstimateUsageCommand = async (output, context) => {
|
|
601
|
+
if (output.statusCode >= 300) {
|
|
602
|
+
return de_CommandError(output, context);
|
|
603
|
+
}
|
|
604
|
+
const data = await parseBody(output.body, context);
|
|
605
|
+
let contents = {};
|
|
606
|
+
contents = de_ListWorkloadEstimateUsageResponse(data, context);
|
|
607
|
+
const response = {
|
|
608
|
+
$metadata: deserializeMetadata(output),
|
|
609
|
+
...contents,
|
|
610
|
+
};
|
|
611
|
+
return response;
|
|
612
|
+
};
|
|
613
|
+
export const de_TagResourceCommand = async (output, context) => {
|
|
614
|
+
if (output.statusCode >= 300) {
|
|
615
|
+
return de_CommandError(output, context);
|
|
616
|
+
}
|
|
617
|
+
const data = await parseBody(output.body, context);
|
|
618
|
+
let contents = {};
|
|
619
|
+
contents = _json(data);
|
|
620
|
+
const response = {
|
|
621
|
+
$metadata: deserializeMetadata(output),
|
|
622
|
+
...contents,
|
|
623
|
+
};
|
|
624
|
+
return response;
|
|
625
|
+
};
|
|
626
|
+
export const de_UntagResourceCommand = async (output, context) => {
|
|
627
|
+
if (output.statusCode >= 300) {
|
|
628
|
+
return de_CommandError(output, context);
|
|
629
|
+
}
|
|
630
|
+
const data = await parseBody(output.body, context);
|
|
631
|
+
let contents = {};
|
|
632
|
+
contents = _json(data);
|
|
633
|
+
const response = {
|
|
634
|
+
$metadata: deserializeMetadata(output),
|
|
635
|
+
...contents,
|
|
636
|
+
};
|
|
637
|
+
return response;
|
|
638
|
+
};
|
|
639
|
+
export const de_UpdateBillEstimateCommand = async (output, context) => {
|
|
640
|
+
if (output.statusCode >= 300) {
|
|
641
|
+
return de_CommandError(output, context);
|
|
642
|
+
}
|
|
643
|
+
const data = await parseBody(output.body, context);
|
|
644
|
+
let contents = {};
|
|
645
|
+
contents = de_UpdateBillEstimateResponse(data, context);
|
|
646
|
+
const response = {
|
|
647
|
+
$metadata: deserializeMetadata(output),
|
|
648
|
+
...contents,
|
|
649
|
+
};
|
|
650
|
+
return response;
|
|
651
|
+
};
|
|
652
|
+
export const de_UpdateBillScenarioCommand = async (output, context) => {
|
|
653
|
+
if (output.statusCode >= 300) {
|
|
654
|
+
return de_CommandError(output, context);
|
|
655
|
+
}
|
|
656
|
+
const data = await parseBody(output.body, context);
|
|
657
|
+
let contents = {};
|
|
658
|
+
contents = de_UpdateBillScenarioResponse(data, context);
|
|
659
|
+
const response = {
|
|
660
|
+
$metadata: deserializeMetadata(output),
|
|
661
|
+
...contents,
|
|
662
|
+
};
|
|
663
|
+
return response;
|
|
664
|
+
};
|
|
665
|
+
export const de_UpdatePreferencesCommand = async (output, context) => {
|
|
666
|
+
if (output.statusCode >= 300) {
|
|
667
|
+
return de_CommandError(output, context);
|
|
668
|
+
}
|
|
669
|
+
const data = await parseBody(output.body, context);
|
|
670
|
+
let contents = {};
|
|
671
|
+
contents = _json(data);
|
|
672
|
+
const response = {
|
|
673
|
+
$metadata: deserializeMetadata(output),
|
|
674
|
+
...contents,
|
|
675
|
+
};
|
|
676
|
+
return response;
|
|
677
|
+
};
|
|
678
|
+
export const de_UpdateWorkloadEstimateCommand = async (output, context) => {
|
|
679
|
+
if (output.statusCode >= 300) {
|
|
680
|
+
return de_CommandError(output, context);
|
|
681
|
+
}
|
|
682
|
+
const data = await parseBody(output.body, context);
|
|
683
|
+
let contents = {};
|
|
684
|
+
contents = de_UpdateWorkloadEstimateResponse(data, context);
|
|
685
|
+
const response = {
|
|
686
|
+
$metadata: deserializeMetadata(output),
|
|
687
|
+
...contents,
|
|
688
|
+
};
|
|
689
|
+
return response;
|
|
690
|
+
};
|
|
691
|
+
const de_CommandError = async (output, context) => {
|
|
692
|
+
const parsedOutput = {
|
|
693
|
+
...output,
|
|
694
|
+
body: await parseErrorBody(output.body, context),
|
|
695
|
+
};
|
|
696
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
697
|
+
switch (errorCode) {
|
|
698
|
+
case "AccessDeniedException":
|
|
699
|
+
case "com.amazonaws.bcmpricingcalculator#AccessDeniedException":
|
|
700
|
+
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
701
|
+
case "ConflictException":
|
|
702
|
+
case "com.amazonaws.bcmpricingcalculator#ConflictException":
|
|
703
|
+
throw await de_ConflictExceptionRes(parsedOutput, context);
|
|
704
|
+
case "DataUnavailableException":
|
|
705
|
+
case "com.amazonaws.bcmpricingcalculator#DataUnavailableException":
|
|
706
|
+
throw await de_DataUnavailableExceptionRes(parsedOutput, context);
|
|
707
|
+
case "InternalServerException":
|
|
708
|
+
case "com.amazonaws.bcmpricingcalculator#InternalServerException":
|
|
709
|
+
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
710
|
+
case "ResourceNotFoundException":
|
|
711
|
+
case "com.amazonaws.bcmpricingcalculator#ResourceNotFoundException":
|
|
712
|
+
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
713
|
+
case "ThrottlingException":
|
|
714
|
+
case "com.amazonaws.bcmpricingcalculator#ThrottlingException":
|
|
715
|
+
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
716
|
+
case "ValidationException":
|
|
717
|
+
case "com.amazonaws.bcmpricingcalculator#ValidationException":
|
|
718
|
+
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
719
|
+
case "ServiceQuotaExceededException":
|
|
720
|
+
case "com.amazonaws.bcmpricingcalculator#ServiceQuotaExceededException":
|
|
721
|
+
throw await de_ServiceQuotaExceededExceptionRes(parsedOutput, context);
|
|
722
|
+
default:
|
|
723
|
+
const parsedBody = parsedOutput.body;
|
|
724
|
+
return throwDefaultError({
|
|
725
|
+
output,
|
|
726
|
+
parsedBody,
|
|
727
|
+
errorCode,
|
|
728
|
+
});
|
|
729
|
+
}
|
|
730
|
+
};
|
|
731
|
+
const de_AccessDeniedExceptionRes = async (parsedOutput, context) => {
|
|
732
|
+
const body = parsedOutput.body;
|
|
733
|
+
const deserialized = _json(body);
|
|
734
|
+
const exception = new AccessDeniedException({
|
|
735
|
+
$metadata: deserializeMetadata(parsedOutput),
|
|
736
|
+
...deserialized,
|
|
737
|
+
});
|
|
738
|
+
return __decorateServiceException(exception, body);
|
|
739
|
+
};
|
|
740
|
+
const de_ConflictExceptionRes = async (parsedOutput, context) => {
|
|
741
|
+
const body = parsedOutput.body;
|
|
742
|
+
const deserialized = _json(body);
|
|
743
|
+
const exception = new ConflictException({
|
|
744
|
+
$metadata: deserializeMetadata(parsedOutput),
|
|
745
|
+
...deserialized,
|
|
746
|
+
});
|
|
747
|
+
return __decorateServiceException(exception, body);
|
|
748
|
+
};
|
|
749
|
+
const de_DataUnavailableExceptionRes = async (parsedOutput, context) => {
|
|
750
|
+
const body = parsedOutput.body;
|
|
751
|
+
const deserialized = _json(body);
|
|
752
|
+
const exception = new DataUnavailableException({
|
|
753
|
+
$metadata: deserializeMetadata(parsedOutput),
|
|
754
|
+
...deserialized,
|
|
755
|
+
});
|
|
756
|
+
return __decorateServiceException(exception, body);
|
|
757
|
+
};
|
|
758
|
+
const de_InternalServerExceptionRes = async (parsedOutput, context) => {
|
|
759
|
+
const body = parsedOutput.body;
|
|
760
|
+
const deserialized = _json(body);
|
|
761
|
+
const exception = new InternalServerException({
|
|
762
|
+
$metadata: deserializeMetadata(parsedOutput),
|
|
763
|
+
...deserialized,
|
|
764
|
+
});
|
|
765
|
+
return __decorateServiceException(exception, body);
|
|
766
|
+
};
|
|
767
|
+
const de_ResourceNotFoundExceptionRes = async (parsedOutput, context) => {
|
|
768
|
+
const body = parsedOutput.body;
|
|
769
|
+
const deserialized = _json(body);
|
|
770
|
+
const exception = new ResourceNotFoundException({
|
|
771
|
+
$metadata: deserializeMetadata(parsedOutput),
|
|
772
|
+
...deserialized,
|
|
773
|
+
});
|
|
774
|
+
return __decorateServiceException(exception, body);
|
|
775
|
+
};
|
|
776
|
+
const de_ServiceQuotaExceededExceptionRes = async (parsedOutput, context) => {
|
|
777
|
+
const body = parsedOutput.body;
|
|
778
|
+
const deserialized = _json(body);
|
|
779
|
+
const exception = new ServiceQuotaExceededException({
|
|
780
|
+
$metadata: deserializeMetadata(parsedOutput),
|
|
781
|
+
...deserialized,
|
|
782
|
+
});
|
|
783
|
+
return __decorateServiceException(exception, body);
|
|
784
|
+
};
|
|
785
|
+
const de_ThrottlingExceptionRes = async (parsedOutput, context) => {
|
|
786
|
+
const body = parsedOutput.body;
|
|
787
|
+
const deserialized = _json(body);
|
|
788
|
+
const exception = new ThrottlingException({
|
|
789
|
+
$metadata: deserializeMetadata(parsedOutput),
|
|
790
|
+
...deserialized,
|
|
791
|
+
});
|
|
792
|
+
return __decorateServiceException(exception, body);
|
|
793
|
+
};
|
|
794
|
+
const de_ValidationExceptionRes = async (parsedOutput, context) => {
|
|
795
|
+
const body = parsedOutput.body;
|
|
796
|
+
const deserialized = _json(body);
|
|
797
|
+
const exception = new ValidationException({
|
|
798
|
+
$metadata: deserializeMetadata(parsedOutput),
|
|
799
|
+
...deserialized,
|
|
800
|
+
});
|
|
801
|
+
return __decorateServiceException(exception, body);
|
|
802
|
+
};
|
|
803
|
+
const se_AddSavingsPlanAction = (input, context) => {
|
|
804
|
+
return take(input, {
|
|
805
|
+
commitment: __serializeFloat,
|
|
806
|
+
savingsPlanOfferingId: [],
|
|
807
|
+
});
|
|
808
|
+
};
|
|
809
|
+
const se_BatchCreateBillScenarioCommitmentModificationEntries = (input, context) => {
|
|
810
|
+
return input
|
|
811
|
+
.filter((e) => e != null)
|
|
812
|
+
.map((entry) => {
|
|
813
|
+
return se_BatchCreateBillScenarioCommitmentModificationEntry(entry, context);
|
|
814
|
+
});
|
|
815
|
+
};
|
|
816
|
+
const se_BatchCreateBillScenarioCommitmentModificationEntry = (input, context) => {
|
|
817
|
+
return take(input, {
|
|
818
|
+
commitmentAction: (_) => se_BillScenarioCommitmentModificationAction(_, context),
|
|
819
|
+
group: [],
|
|
820
|
+
key: [],
|
|
821
|
+
usageAccountId: [],
|
|
822
|
+
});
|
|
823
|
+
};
|
|
824
|
+
const se_BatchCreateBillScenarioCommitmentModificationRequest = (input, context) => {
|
|
825
|
+
return take(input, {
|
|
826
|
+
billScenarioId: [],
|
|
827
|
+
clientToken: [true, (_) => _ ?? generateIdempotencyToken()],
|
|
828
|
+
commitmentModifications: (_) => se_BatchCreateBillScenarioCommitmentModificationEntries(_, context),
|
|
829
|
+
});
|
|
830
|
+
};
|
|
831
|
+
const se_BatchCreateBillScenarioUsageModificationEntries = (input, context) => {
|
|
832
|
+
return input
|
|
833
|
+
.filter((e) => e != null)
|
|
834
|
+
.map((entry) => {
|
|
835
|
+
return se_BatchCreateBillScenarioUsageModificationEntry(entry, context);
|
|
836
|
+
});
|
|
837
|
+
};
|
|
838
|
+
const se_BatchCreateBillScenarioUsageModificationEntry = (input, context) => {
|
|
839
|
+
return take(input, {
|
|
840
|
+
amounts: (_) => se_UsageAmounts(_, context),
|
|
841
|
+
availabilityZone: [],
|
|
842
|
+
group: [],
|
|
843
|
+
historicalUsage: (_) => se_HistoricalUsageEntity(_, context),
|
|
844
|
+
key: [],
|
|
845
|
+
operation: [],
|
|
846
|
+
serviceCode: [],
|
|
847
|
+
usageAccountId: [],
|
|
848
|
+
usageType: [],
|
|
849
|
+
});
|
|
850
|
+
};
|
|
851
|
+
const se_BatchCreateBillScenarioUsageModificationRequest = (input, context) => {
|
|
852
|
+
return take(input, {
|
|
853
|
+
billScenarioId: [],
|
|
854
|
+
clientToken: [true, (_) => _ ?? generateIdempotencyToken()],
|
|
855
|
+
usageModifications: (_) => se_BatchCreateBillScenarioUsageModificationEntries(_, context),
|
|
856
|
+
});
|
|
857
|
+
};
|
|
858
|
+
const se_BatchCreateWorkloadEstimateUsageEntries = (input, context) => {
|
|
859
|
+
return input
|
|
860
|
+
.filter((e) => e != null)
|
|
861
|
+
.map((entry) => {
|
|
862
|
+
return se_BatchCreateWorkloadEstimateUsageEntry(entry, context);
|
|
863
|
+
});
|
|
864
|
+
};
|
|
865
|
+
const se_BatchCreateWorkloadEstimateUsageEntry = (input, context) => {
|
|
866
|
+
return take(input, {
|
|
867
|
+
amount: __serializeFloat,
|
|
868
|
+
group: [],
|
|
869
|
+
historicalUsage: (_) => se_HistoricalUsageEntity(_, context),
|
|
870
|
+
key: [],
|
|
871
|
+
operation: [],
|
|
872
|
+
serviceCode: [],
|
|
873
|
+
usageAccountId: [],
|
|
874
|
+
usageType: [],
|
|
875
|
+
});
|
|
876
|
+
};
|
|
877
|
+
const se_BatchCreateWorkloadEstimateUsageRequest = (input, context) => {
|
|
878
|
+
return take(input, {
|
|
879
|
+
clientToken: [true, (_) => _ ?? generateIdempotencyToken()],
|
|
880
|
+
usage: (_) => se_BatchCreateWorkloadEstimateUsageEntries(_, context),
|
|
881
|
+
workloadEstimateId: [],
|
|
882
|
+
});
|
|
883
|
+
};
|
|
884
|
+
const se_BatchUpdateBillScenarioUsageModificationEntries = (input, context) => {
|
|
885
|
+
return input
|
|
886
|
+
.filter((e) => e != null)
|
|
887
|
+
.map((entry) => {
|
|
888
|
+
return se_BatchUpdateBillScenarioUsageModificationEntry(entry, context);
|
|
889
|
+
});
|
|
890
|
+
};
|
|
891
|
+
const se_BatchUpdateBillScenarioUsageModificationEntry = (input, context) => {
|
|
892
|
+
return take(input, {
|
|
893
|
+
amounts: (_) => se_UsageAmounts(_, context),
|
|
894
|
+
group: [],
|
|
895
|
+
id: [],
|
|
896
|
+
});
|
|
897
|
+
};
|
|
898
|
+
const se_BatchUpdateBillScenarioUsageModificationRequest = (input, context) => {
|
|
899
|
+
return take(input, {
|
|
900
|
+
billScenarioId: [],
|
|
901
|
+
usageModifications: (_) => se_BatchUpdateBillScenarioUsageModificationEntries(_, context),
|
|
902
|
+
});
|
|
903
|
+
};
|
|
904
|
+
const se_BatchUpdateWorkloadEstimateUsageEntries = (input, context) => {
|
|
905
|
+
return input
|
|
906
|
+
.filter((e) => e != null)
|
|
907
|
+
.map((entry) => {
|
|
908
|
+
return se_BatchUpdateWorkloadEstimateUsageEntry(entry, context);
|
|
909
|
+
});
|
|
910
|
+
};
|
|
911
|
+
const se_BatchUpdateWorkloadEstimateUsageEntry = (input, context) => {
|
|
912
|
+
return take(input, {
|
|
913
|
+
amount: __serializeFloat,
|
|
914
|
+
group: [],
|
|
915
|
+
id: [],
|
|
916
|
+
});
|
|
917
|
+
};
|
|
918
|
+
const se_BatchUpdateWorkloadEstimateUsageRequest = (input, context) => {
|
|
919
|
+
return take(input, {
|
|
920
|
+
usage: (_) => se_BatchUpdateWorkloadEstimateUsageEntries(_, context),
|
|
921
|
+
workloadEstimateId: [],
|
|
922
|
+
});
|
|
923
|
+
};
|
|
924
|
+
const se_BillInterval = (input, context) => {
|
|
925
|
+
return take(input, {
|
|
926
|
+
end: (_) => _.getTime() / 1000,
|
|
927
|
+
start: (_) => _.getTime() / 1000,
|
|
928
|
+
});
|
|
929
|
+
};
|
|
930
|
+
const se_BillScenarioCommitmentModificationAction = (input, context) => {
|
|
931
|
+
return BillScenarioCommitmentModificationAction.visit(input, {
|
|
932
|
+
addReservedInstanceAction: (value) => ({ addReservedInstanceAction: _json(value) }),
|
|
933
|
+
addSavingsPlanAction: (value) => ({ addSavingsPlanAction: se_AddSavingsPlanAction(value, context) }),
|
|
934
|
+
negateReservedInstanceAction: (value) => ({ negateReservedInstanceAction: _json(value) }),
|
|
935
|
+
negateSavingsPlanAction: (value) => ({ negateSavingsPlanAction: _json(value) }),
|
|
936
|
+
_: (name, value) => ({ name: value }),
|
|
937
|
+
});
|
|
938
|
+
};
|
|
939
|
+
const se_CreateBillEstimateRequest = (input, context) => {
|
|
940
|
+
return take(input, {
|
|
941
|
+
billScenarioId: [],
|
|
942
|
+
clientToken: [true, (_) => _ ?? generateIdempotencyToken()],
|
|
943
|
+
name: [],
|
|
944
|
+
tags: _json,
|
|
945
|
+
});
|
|
946
|
+
};
|
|
947
|
+
const se_CreateBillScenarioRequest = (input, context) => {
|
|
948
|
+
return take(input, {
|
|
949
|
+
clientToken: [true, (_) => _ ?? generateIdempotencyToken()],
|
|
950
|
+
name: [],
|
|
951
|
+
tags: _json,
|
|
952
|
+
});
|
|
953
|
+
};
|
|
954
|
+
const se_CreateWorkloadEstimateRequest = (input, context) => {
|
|
955
|
+
return take(input, {
|
|
956
|
+
clientToken: [true, (_) => _ ?? generateIdempotencyToken()],
|
|
957
|
+
name: [],
|
|
958
|
+
rateType: [],
|
|
959
|
+
tags: _json,
|
|
960
|
+
});
|
|
961
|
+
};
|
|
962
|
+
const se_Expression = (input, context) => {
|
|
963
|
+
return take(input, {
|
|
964
|
+
and: (_) => se_ExpressionList(_, context),
|
|
965
|
+
costCategories: _json,
|
|
966
|
+
dimensions: _json,
|
|
967
|
+
not: (_) => se_Expression(_, context),
|
|
968
|
+
or: (_) => se_ExpressionList(_, context),
|
|
969
|
+
tags: _json,
|
|
970
|
+
});
|
|
971
|
+
};
|
|
972
|
+
const se_ExpressionList = (input, context) => {
|
|
973
|
+
return input
|
|
974
|
+
.filter((e) => e != null)
|
|
975
|
+
.map((entry) => {
|
|
976
|
+
return se_Expression(entry, context);
|
|
977
|
+
});
|
|
978
|
+
};
|
|
979
|
+
const se_FilterTimestamp = (input, context) => {
|
|
980
|
+
return take(input, {
|
|
981
|
+
afterTimestamp: (_) => _.getTime() / 1000,
|
|
982
|
+
beforeTimestamp: (_) => _.getTime() / 1000,
|
|
983
|
+
});
|
|
984
|
+
};
|
|
985
|
+
const se_HistoricalUsageEntity = (input, context) => {
|
|
986
|
+
return take(input, {
|
|
987
|
+
billInterval: (_) => se_BillInterval(_, context),
|
|
988
|
+
filterExpression: (_) => se_Expression(_, context),
|
|
989
|
+
location: [],
|
|
990
|
+
operation: [],
|
|
991
|
+
serviceCode: [],
|
|
992
|
+
usageAccountId: [],
|
|
993
|
+
usageType: [],
|
|
994
|
+
});
|
|
995
|
+
};
|
|
996
|
+
const se_ListBillEstimatesRequest = (input, context) => {
|
|
997
|
+
return take(input, {
|
|
998
|
+
createdAtFilter: (_) => se_FilterTimestamp(_, context),
|
|
999
|
+
expiresAtFilter: (_) => se_FilterTimestamp(_, context),
|
|
1000
|
+
filters: _json,
|
|
1001
|
+
maxResults: [],
|
|
1002
|
+
nextToken: [],
|
|
1003
|
+
});
|
|
1004
|
+
};
|
|
1005
|
+
const se_ListBillScenariosRequest = (input, context) => {
|
|
1006
|
+
return take(input, {
|
|
1007
|
+
createdAtFilter: (_) => se_FilterTimestamp(_, context),
|
|
1008
|
+
expiresAtFilter: (_) => se_FilterTimestamp(_, context),
|
|
1009
|
+
filters: _json,
|
|
1010
|
+
maxResults: [],
|
|
1011
|
+
nextToken: [],
|
|
1012
|
+
});
|
|
1013
|
+
};
|
|
1014
|
+
const se_ListWorkloadEstimatesRequest = (input, context) => {
|
|
1015
|
+
return take(input, {
|
|
1016
|
+
createdAtFilter: (_) => se_FilterTimestamp(_, context),
|
|
1017
|
+
expiresAtFilter: (_) => se_FilterTimestamp(_, context),
|
|
1018
|
+
filters: _json,
|
|
1019
|
+
maxResults: [],
|
|
1020
|
+
nextToken: [],
|
|
1021
|
+
});
|
|
1022
|
+
};
|
|
1023
|
+
const se_UpdateBillEstimateRequest = (input, context) => {
|
|
1024
|
+
return take(input, {
|
|
1025
|
+
expiresAt: (_) => _.getTime() / 1000,
|
|
1026
|
+
identifier: [],
|
|
1027
|
+
name: [],
|
|
1028
|
+
});
|
|
1029
|
+
};
|
|
1030
|
+
const se_UpdateBillScenarioRequest = (input, context) => {
|
|
1031
|
+
return take(input, {
|
|
1032
|
+
expiresAt: (_) => _.getTime() / 1000,
|
|
1033
|
+
identifier: [],
|
|
1034
|
+
name: [],
|
|
1035
|
+
});
|
|
1036
|
+
};
|
|
1037
|
+
const se_UpdateWorkloadEstimateRequest = (input, context) => {
|
|
1038
|
+
return take(input, {
|
|
1039
|
+
expiresAt: (_) => _.getTime() / 1000,
|
|
1040
|
+
identifier: [],
|
|
1041
|
+
name: [],
|
|
1042
|
+
});
|
|
1043
|
+
};
|
|
1044
|
+
const se_UsageAmount = (input, context) => {
|
|
1045
|
+
return take(input, {
|
|
1046
|
+
amount: __serializeFloat,
|
|
1047
|
+
startHour: (_) => _.getTime() / 1000,
|
|
1048
|
+
});
|
|
1049
|
+
};
|
|
1050
|
+
const se_UsageAmounts = (input, context) => {
|
|
1051
|
+
return input
|
|
1052
|
+
.filter((e) => e != null)
|
|
1053
|
+
.map((entry) => {
|
|
1054
|
+
return se_UsageAmount(entry, context);
|
|
1055
|
+
});
|
|
1056
|
+
};
|
|
1057
|
+
const de_AddSavingsPlanAction = (output, context) => {
|
|
1058
|
+
return take(output, {
|
|
1059
|
+
commitment: __limitedParseDouble,
|
|
1060
|
+
savingsPlanOfferingId: __expectString,
|
|
1061
|
+
});
|
|
1062
|
+
};
|
|
1063
|
+
const de_BatchCreateBillScenarioCommitmentModificationItem = (output, context) => {
|
|
1064
|
+
return take(output, {
|
|
1065
|
+
commitmentAction: (_) => de_BillScenarioCommitmentModificationAction(__expectUnion(_), context),
|
|
1066
|
+
group: __expectString,
|
|
1067
|
+
id: __expectString,
|
|
1068
|
+
key: __expectString,
|
|
1069
|
+
usageAccountId: __expectString,
|
|
1070
|
+
});
|
|
1071
|
+
};
|
|
1072
|
+
const de_BatchCreateBillScenarioCommitmentModificationItems = (output, context) => {
|
|
1073
|
+
const retVal = (output || [])
|
|
1074
|
+
.filter((e) => e != null)
|
|
1075
|
+
.map((entry) => {
|
|
1076
|
+
return de_BatchCreateBillScenarioCommitmentModificationItem(entry, context);
|
|
1077
|
+
});
|
|
1078
|
+
return retVal;
|
|
1079
|
+
};
|
|
1080
|
+
const de_BatchCreateBillScenarioCommitmentModificationResponse = (output, context) => {
|
|
1081
|
+
return take(output, {
|
|
1082
|
+
errors: _json,
|
|
1083
|
+
items: (_) => de_BatchCreateBillScenarioCommitmentModificationItems(_, context),
|
|
1084
|
+
});
|
|
1085
|
+
};
|
|
1086
|
+
const de_BatchCreateBillScenarioUsageModificationItem = (output, context) => {
|
|
1087
|
+
return take(output, {
|
|
1088
|
+
availabilityZone: __expectString,
|
|
1089
|
+
group: __expectString,
|
|
1090
|
+
historicalUsage: (_) => de_HistoricalUsageEntity(_, context),
|
|
1091
|
+
id: __expectString,
|
|
1092
|
+
key: __expectString,
|
|
1093
|
+
location: __expectString,
|
|
1094
|
+
operation: __expectString,
|
|
1095
|
+
quantities: (_) => de_UsageQuantities(_, context),
|
|
1096
|
+
serviceCode: __expectString,
|
|
1097
|
+
usageAccountId: __expectString,
|
|
1098
|
+
usageType: __expectString,
|
|
1099
|
+
});
|
|
1100
|
+
};
|
|
1101
|
+
const de_BatchCreateBillScenarioUsageModificationItems = (output, context) => {
|
|
1102
|
+
const retVal = (output || [])
|
|
1103
|
+
.filter((e) => e != null)
|
|
1104
|
+
.map((entry) => {
|
|
1105
|
+
return de_BatchCreateBillScenarioUsageModificationItem(entry, context);
|
|
1106
|
+
});
|
|
1107
|
+
return retVal;
|
|
1108
|
+
};
|
|
1109
|
+
const de_BatchCreateBillScenarioUsageModificationResponse = (output, context) => {
|
|
1110
|
+
return take(output, {
|
|
1111
|
+
errors: _json,
|
|
1112
|
+
items: (_) => de_BatchCreateBillScenarioUsageModificationItems(_, context),
|
|
1113
|
+
});
|
|
1114
|
+
};
|
|
1115
|
+
const de_BatchCreateWorkloadEstimateUsageItem = (output, context) => {
|
|
1116
|
+
return take(output, {
|
|
1117
|
+
cost: __limitedParseDouble,
|
|
1118
|
+
currency: __expectString,
|
|
1119
|
+
group: __expectString,
|
|
1120
|
+
historicalUsage: (_) => de_HistoricalUsageEntity(_, context),
|
|
1121
|
+
id: __expectString,
|
|
1122
|
+
key: __expectString,
|
|
1123
|
+
location: __expectString,
|
|
1124
|
+
operation: __expectString,
|
|
1125
|
+
quantity: (_) => de_WorkloadEstimateUsageQuantity(_, context),
|
|
1126
|
+
serviceCode: __expectString,
|
|
1127
|
+
status: __expectString,
|
|
1128
|
+
usageAccountId: __expectString,
|
|
1129
|
+
usageType: __expectString,
|
|
1130
|
+
});
|
|
1131
|
+
};
|
|
1132
|
+
const de_BatchCreateWorkloadEstimateUsageItems = (output, context) => {
|
|
1133
|
+
const retVal = (output || [])
|
|
1134
|
+
.filter((e) => e != null)
|
|
1135
|
+
.map((entry) => {
|
|
1136
|
+
return de_BatchCreateWorkloadEstimateUsageItem(entry, context);
|
|
1137
|
+
});
|
|
1138
|
+
return retVal;
|
|
1139
|
+
};
|
|
1140
|
+
const de_BatchCreateWorkloadEstimateUsageResponse = (output, context) => {
|
|
1141
|
+
return take(output, {
|
|
1142
|
+
errors: _json,
|
|
1143
|
+
items: (_) => de_BatchCreateWorkloadEstimateUsageItems(_, context),
|
|
1144
|
+
});
|
|
1145
|
+
};
|
|
1146
|
+
const de_BatchUpdateBillScenarioCommitmentModificationResponse = (output, context) => {
|
|
1147
|
+
return take(output, {
|
|
1148
|
+
errors: _json,
|
|
1149
|
+
items: (_) => de_BillScenarioCommitmentModificationItems(_, context),
|
|
1150
|
+
});
|
|
1151
|
+
};
|
|
1152
|
+
const de_BatchUpdateBillScenarioUsageModificationResponse = (output, context) => {
|
|
1153
|
+
return take(output, {
|
|
1154
|
+
errors: _json,
|
|
1155
|
+
items: (_) => de_BillScenarioUsageModificationItems(_, context),
|
|
1156
|
+
});
|
|
1157
|
+
};
|
|
1158
|
+
const de_BatchUpdateWorkloadEstimateUsageResponse = (output, context) => {
|
|
1159
|
+
return take(output, {
|
|
1160
|
+
errors: _json,
|
|
1161
|
+
items: (_) => de_WorkloadEstimateUsageItems(_, context),
|
|
1162
|
+
});
|
|
1163
|
+
};
|
|
1164
|
+
const de_BillEstimateCommitmentSummaries = (output, context) => {
|
|
1165
|
+
const retVal = (output || [])
|
|
1166
|
+
.filter((e) => e != null)
|
|
1167
|
+
.map((entry) => {
|
|
1168
|
+
return de_BillEstimateCommitmentSummary(entry, context);
|
|
1169
|
+
});
|
|
1170
|
+
return retVal;
|
|
1171
|
+
};
|
|
1172
|
+
const de_BillEstimateCommitmentSummary = (output, context) => {
|
|
1173
|
+
return take(output, {
|
|
1174
|
+
id: __expectString,
|
|
1175
|
+
monthlyPayment: (_) => de_CostAmount(_, context),
|
|
1176
|
+
offeringId: __expectString,
|
|
1177
|
+
paymentOption: __expectString,
|
|
1178
|
+
purchaseAgreementType: __expectString,
|
|
1179
|
+
region: __expectString,
|
|
1180
|
+
termLength: __expectString,
|
|
1181
|
+
upfrontPayment: (_) => de_CostAmount(_, context),
|
|
1182
|
+
usageAccountId: __expectString,
|
|
1183
|
+
});
|
|
1184
|
+
};
|
|
1185
|
+
const de_BillEstimateCostSummary = (output, context) => {
|
|
1186
|
+
return take(output, {
|
|
1187
|
+
serviceCostDifferences: (_) => de_ServiceCostDifferenceMap(_, context),
|
|
1188
|
+
totalCostDifference: (_) => de_CostDifference(_, context),
|
|
1189
|
+
});
|
|
1190
|
+
};
|
|
1191
|
+
const de_BillEstimateInputCommitmentModificationSummaries = (output, context) => {
|
|
1192
|
+
const retVal = (output || [])
|
|
1193
|
+
.filter((e) => e != null)
|
|
1194
|
+
.map((entry) => {
|
|
1195
|
+
return de_BillEstimateInputCommitmentModificationSummary(entry, context);
|
|
1196
|
+
});
|
|
1197
|
+
return retVal;
|
|
1198
|
+
};
|
|
1199
|
+
const de_BillEstimateInputCommitmentModificationSummary = (output, context) => {
|
|
1200
|
+
return take(output, {
|
|
1201
|
+
commitmentAction: (_) => de_BillScenarioCommitmentModificationAction(__expectUnion(_), context),
|
|
1202
|
+
group: __expectString,
|
|
1203
|
+
id: __expectString,
|
|
1204
|
+
usageAccountId: __expectString,
|
|
1205
|
+
});
|
|
1206
|
+
};
|
|
1207
|
+
const de_BillEstimateInputUsageModificationSummaries = (output, context) => {
|
|
1208
|
+
const retVal = (output || [])
|
|
1209
|
+
.filter((e) => e != null)
|
|
1210
|
+
.map((entry) => {
|
|
1211
|
+
return de_BillEstimateInputUsageModificationSummary(entry, context);
|
|
1212
|
+
});
|
|
1213
|
+
return retVal;
|
|
1214
|
+
};
|
|
1215
|
+
const de_BillEstimateInputUsageModificationSummary = (output, context) => {
|
|
1216
|
+
return take(output, {
|
|
1217
|
+
availabilityZone: __expectString,
|
|
1218
|
+
group: __expectString,
|
|
1219
|
+
historicalUsage: (_) => de_HistoricalUsageEntity(_, context),
|
|
1220
|
+
id: __expectString,
|
|
1221
|
+
location: __expectString,
|
|
1222
|
+
operation: __expectString,
|
|
1223
|
+
quantities: (_) => de_UsageQuantities(_, context),
|
|
1224
|
+
serviceCode: __expectString,
|
|
1225
|
+
usageAccountId: __expectString,
|
|
1226
|
+
usageType: __expectString,
|
|
1227
|
+
});
|
|
1228
|
+
};
|
|
1229
|
+
const de_BillEstimateLineItemSummaries = (output, context) => {
|
|
1230
|
+
const retVal = (output || [])
|
|
1231
|
+
.filter((e) => e != null)
|
|
1232
|
+
.map((entry) => {
|
|
1233
|
+
return de_BillEstimateLineItemSummary(entry, context);
|
|
1234
|
+
});
|
|
1235
|
+
return retVal;
|
|
1236
|
+
};
|
|
1237
|
+
const de_BillEstimateLineItemSummary = (output, context) => {
|
|
1238
|
+
return take(output, {
|
|
1239
|
+
availabilityZone: __expectString,
|
|
1240
|
+
estimatedCost: (_) => de_CostAmount(_, context),
|
|
1241
|
+
estimatedUsageQuantity: (_) => de_UsageQuantityResult(_, context),
|
|
1242
|
+
historicalCost: (_) => de_CostAmount(_, context),
|
|
1243
|
+
historicalUsageQuantity: (_) => de_UsageQuantityResult(_, context),
|
|
1244
|
+
id: __expectString,
|
|
1245
|
+
lineItemId: __expectString,
|
|
1246
|
+
lineItemType: __expectString,
|
|
1247
|
+
location: __expectString,
|
|
1248
|
+
operation: __expectString,
|
|
1249
|
+
payerAccountId: __expectString,
|
|
1250
|
+
savingsPlanArns: _json,
|
|
1251
|
+
serviceCode: __expectString,
|
|
1252
|
+
usageAccountId: __expectString,
|
|
1253
|
+
usageType: __expectString,
|
|
1254
|
+
});
|
|
1255
|
+
};
|
|
1256
|
+
const de_BillEstimateSummaries = (output, context) => {
|
|
1257
|
+
const retVal = (output || [])
|
|
1258
|
+
.filter((e) => e != null)
|
|
1259
|
+
.map((entry) => {
|
|
1260
|
+
return de_BillEstimateSummary(entry, context);
|
|
1261
|
+
});
|
|
1262
|
+
return retVal;
|
|
1263
|
+
};
|
|
1264
|
+
const de_BillEstimateSummary = (output, context) => {
|
|
1265
|
+
return take(output, {
|
|
1266
|
+
billInterval: (_) => de_BillInterval(_, context),
|
|
1267
|
+
createdAt: (_) => __expectNonNull(__parseEpochTimestamp(__expectNumber(_))),
|
|
1268
|
+
expiresAt: (_) => __expectNonNull(__parseEpochTimestamp(__expectNumber(_))),
|
|
1269
|
+
id: __expectString,
|
|
1270
|
+
name: __expectString,
|
|
1271
|
+
status: __expectString,
|
|
1272
|
+
});
|
|
1273
|
+
};
|
|
1274
|
+
const de_BillInterval = (output, context) => {
|
|
1275
|
+
return take(output, {
|
|
1276
|
+
end: (_) => __expectNonNull(__parseEpochTimestamp(__expectNumber(_))),
|
|
1277
|
+
start: (_) => __expectNonNull(__parseEpochTimestamp(__expectNumber(_))),
|
|
1278
|
+
});
|
|
1279
|
+
};
|
|
1280
|
+
const de_BillScenarioCommitmentModificationAction = (output, context) => {
|
|
1281
|
+
if (output.addReservedInstanceAction != null) {
|
|
1282
|
+
return {
|
|
1283
|
+
addReservedInstanceAction: _json(output.addReservedInstanceAction),
|
|
1284
|
+
};
|
|
1285
|
+
}
|
|
1286
|
+
if (output.addSavingsPlanAction != null) {
|
|
1287
|
+
return {
|
|
1288
|
+
addSavingsPlanAction: de_AddSavingsPlanAction(output.addSavingsPlanAction, context),
|
|
1289
|
+
};
|
|
1290
|
+
}
|
|
1291
|
+
if (output.negateReservedInstanceAction != null) {
|
|
1292
|
+
return {
|
|
1293
|
+
negateReservedInstanceAction: _json(output.negateReservedInstanceAction),
|
|
1294
|
+
};
|
|
1295
|
+
}
|
|
1296
|
+
if (output.negateSavingsPlanAction != null) {
|
|
1297
|
+
return {
|
|
1298
|
+
negateSavingsPlanAction: _json(output.negateSavingsPlanAction),
|
|
1299
|
+
};
|
|
1300
|
+
}
|
|
1301
|
+
return { $unknown: Object.entries(output)[0] };
|
|
1302
|
+
};
|
|
1303
|
+
const de_BillScenarioCommitmentModificationItem = (output, context) => {
|
|
1304
|
+
return take(output, {
|
|
1305
|
+
commitmentAction: (_) => de_BillScenarioCommitmentModificationAction(__expectUnion(_), context),
|
|
1306
|
+
group: __expectString,
|
|
1307
|
+
id: __expectString,
|
|
1308
|
+
usageAccountId: __expectString,
|
|
1309
|
+
});
|
|
1310
|
+
};
|
|
1311
|
+
const de_BillScenarioCommitmentModificationItems = (output, context) => {
|
|
1312
|
+
const retVal = (output || [])
|
|
1313
|
+
.filter((e) => e != null)
|
|
1314
|
+
.map((entry) => {
|
|
1315
|
+
return de_BillScenarioCommitmentModificationItem(entry, context);
|
|
1316
|
+
});
|
|
1317
|
+
return retVal;
|
|
1318
|
+
};
|
|
1319
|
+
const de_BillScenarioSummaries = (output, context) => {
|
|
1320
|
+
const retVal = (output || [])
|
|
1321
|
+
.filter((e) => e != null)
|
|
1322
|
+
.map((entry) => {
|
|
1323
|
+
return de_BillScenarioSummary(entry, context);
|
|
1324
|
+
});
|
|
1325
|
+
return retVal;
|
|
1326
|
+
};
|
|
1327
|
+
const de_BillScenarioSummary = (output, context) => {
|
|
1328
|
+
return take(output, {
|
|
1329
|
+
billInterval: (_) => de_BillInterval(_, context),
|
|
1330
|
+
createdAt: (_) => __expectNonNull(__parseEpochTimestamp(__expectNumber(_))),
|
|
1331
|
+
expiresAt: (_) => __expectNonNull(__parseEpochTimestamp(__expectNumber(_))),
|
|
1332
|
+
failureMessage: __expectString,
|
|
1333
|
+
id: __expectString,
|
|
1334
|
+
name: __expectString,
|
|
1335
|
+
status: __expectString,
|
|
1336
|
+
});
|
|
1337
|
+
};
|
|
1338
|
+
const de_BillScenarioUsageModificationItem = (output, context) => {
|
|
1339
|
+
return take(output, {
|
|
1340
|
+
availabilityZone: __expectString,
|
|
1341
|
+
group: __expectString,
|
|
1342
|
+
historicalUsage: (_) => de_HistoricalUsageEntity(_, context),
|
|
1343
|
+
id: __expectString,
|
|
1344
|
+
location: __expectString,
|
|
1345
|
+
operation: __expectString,
|
|
1346
|
+
quantities: (_) => de_UsageQuantities(_, context),
|
|
1347
|
+
serviceCode: __expectString,
|
|
1348
|
+
usageAccountId: __expectString,
|
|
1349
|
+
usageType: __expectString,
|
|
1350
|
+
});
|
|
1351
|
+
};
|
|
1352
|
+
const de_BillScenarioUsageModificationItems = (output, context) => {
|
|
1353
|
+
const retVal = (output || [])
|
|
1354
|
+
.filter((e) => e != null)
|
|
1355
|
+
.map((entry) => {
|
|
1356
|
+
return de_BillScenarioUsageModificationItem(entry, context);
|
|
1357
|
+
});
|
|
1358
|
+
return retVal;
|
|
1359
|
+
};
|
|
1360
|
+
const de_CostAmount = (output, context) => {
|
|
1361
|
+
return take(output, {
|
|
1362
|
+
amount: __limitedParseDouble,
|
|
1363
|
+
currency: __expectString,
|
|
1364
|
+
});
|
|
1365
|
+
};
|
|
1366
|
+
const de_CostDifference = (output, context) => {
|
|
1367
|
+
return take(output, {
|
|
1368
|
+
estimatedCost: (_) => de_CostAmount(_, context),
|
|
1369
|
+
historicalCost: (_) => de_CostAmount(_, context),
|
|
1370
|
+
});
|
|
1371
|
+
};
|
|
1372
|
+
const de_CreateBillEstimateResponse = (output, context) => {
|
|
1373
|
+
return take(output, {
|
|
1374
|
+
billInterval: (_) => de_BillInterval(_, context),
|
|
1375
|
+
costSummary: (_) => de_BillEstimateCostSummary(_, context),
|
|
1376
|
+
createdAt: (_) => __expectNonNull(__parseEpochTimestamp(__expectNumber(_))),
|
|
1377
|
+
expiresAt: (_) => __expectNonNull(__parseEpochTimestamp(__expectNumber(_))),
|
|
1378
|
+
failureMessage: __expectString,
|
|
1379
|
+
id: __expectString,
|
|
1380
|
+
name: __expectString,
|
|
1381
|
+
status: __expectString,
|
|
1382
|
+
});
|
|
1383
|
+
};
|
|
1384
|
+
const de_CreateBillScenarioResponse = (output, context) => {
|
|
1385
|
+
return take(output, {
|
|
1386
|
+
billInterval: (_) => de_BillInterval(_, context),
|
|
1387
|
+
createdAt: (_) => __expectNonNull(__parseEpochTimestamp(__expectNumber(_))),
|
|
1388
|
+
expiresAt: (_) => __expectNonNull(__parseEpochTimestamp(__expectNumber(_))),
|
|
1389
|
+
failureMessage: __expectString,
|
|
1390
|
+
id: __expectString,
|
|
1391
|
+
name: __expectString,
|
|
1392
|
+
status: __expectString,
|
|
1393
|
+
});
|
|
1394
|
+
};
|
|
1395
|
+
const de_CreateWorkloadEstimateResponse = (output, context) => {
|
|
1396
|
+
return take(output, {
|
|
1397
|
+
costCurrency: __expectString,
|
|
1398
|
+
createdAt: (_) => __expectNonNull(__parseEpochTimestamp(__expectNumber(_))),
|
|
1399
|
+
expiresAt: (_) => __expectNonNull(__parseEpochTimestamp(__expectNumber(_))),
|
|
1400
|
+
failureMessage: __expectString,
|
|
1401
|
+
id: __expectString,
|
|
1402
|
+
name: __expectString,
|
|
1403
|
+
rateTimestamp: (_) => __expectNonNull(__parseEpochTimestamp(__expectNumber(_))),
|
|
1404
|
+
rateType: __expectString,
|
|
1405
|
+
status: __expectString,
|
|
1406
|
+
totalCost: __limitedParseDouble,
|
|
1407
|
+
});
|
|
1408
|
+
};
|
|
1409
|
+
const de_Expression = (output, context) => {
|
|
1410
|
+
return take(output, {
|
|
1411
|
+
and: (_) => de_ExpressionList(_, context),
|
|
1412
|
+
costCategories: _json,
|
|
1413
|
+
dimensions: _json,
|
|
1414
|
+
not: (_) => de_Expression(_, context),
|
|
1415
|
+
or: (_) => de_ExpressionList(_, context),
|
|
1416
|
+
tags: _json,
|
|
1417
|
+
});
|
|
1418
|
+
};
|
|
1419
|
+
const de_ExpressionList = (output, context) => {
|
|
1420
|
+
const retVal = (output || [])
|
|
1421
|
+
.filter((e) => e != null)
|
|
1422
|
+
.map((entry) => {
|
|
1423
|
+
return de_Expression(entry, context);
|
|
1424
|
+
});
|
|
1425
|
+
return retVal;
|
|
1426
|
+
};
|
|
1427
|
+
const de_GetBillEstimateResponse = (output, context) => {
|
|
1428
|
+
return take(output, {
|
|
1429
|
+
billInterval: (_) => de_BillInterval(_, context),
|
|
1430
|
+
costSummary: (_) => de_BillEstimateCostSummary(_, context),
|
|
1431
|
+
createdAt: (_) => __expectNonNull(__parseEpochTimestamp(__expectNumber(_))),
|
|
1432
|
+
expiresAt: (_) => __expectNonNull(__parseEpochTimestamp(__expectNumber(_))),
|
|
1433
|
+
failureMessage: __expectString,
|
|
1434
|
+
id: __expectString,
|
|
1435
|
+
name: __expectString,
|
|
1436
|
+
status: __expectString,
|
|
1437
|
+
});
|
|
1438
|
+
};
|
|
1439
|
+
const de_GetBillScenarioResponse = (output, context) => {
|
|
1440
|
+
return take(output, {
|
|
1441
|
+
billInterval: (_) => de_BillInterval(_, context),
|
|
1442
|
+
createdAt: (_) => __expectNonNull(__parseEpochTimestamp(__expectNumber(_))),
|
|
1443
|
+
expiresAt: (_) => __expectNonNull(__parseEpochTimestamp(__expectNumber(_))),
|
|
1444
|
+
failureMessage: __expectString,
|
|
1445
|
+
id: __expectString,
|
|
1446
|
+
name: __expectString,
|
|
1447
|
+
status: __expectString,
|
|
1448
|
+
});
|
|
1449
|
+
};
|
|
1450
|
+
const de_GetWorkloadEstimateResponse = (output, context) => {
|
|
1451
|
+
return take(output, {
|
|
1452
|
+
costCurrency: __expectString,
|
|
1453
|
+
createdAt: (_) => __expectNonNull(__parseEpochTimestamp(__expectNumber(_))),
|
|
1454
|
+
expiresAt: (_) => __expectNonNull(__parseEpochTimestamp(__expectNumber(_))),
|
|
1455
|
+
failureMessage: __expectString,
|
|
1456
|
+
id: __expectString,
|
|
1457
|
+
name: __expectString,
|
|
1458
|
+
rateTimestamp: (_) => __expectNonNull(__parseEpochTimestamp(__expectNumber(_))),
|
|
1459
|
+
rateType: __expectString,
|
|
1460
|
+
status: __expectString,
|
|
1461
|
+
totalCost: __limitedParseDouble,
|
|
1462
|
+
});
|
|
1463
|
+
};
|
|
1464
|
+
const de_HistoricalUsageEntity = (output, context) => {
|
|
1465
|
+
return take(output, {
|
|
1466
|
+
billInterval: (_) => de_BillInterval(_, context),
|
|
1467
|
+
filterExpression: (_) => de_Expression(_, context),
|
|
1468
|
+
location: __expectString,
|
|
1469
|
+
operation: __expectString,
|
|
1470
|
+
serviceCode: __expectString,
|
|
1471
|
+
usageAccountId: __expectString,
|
|
1472
|
+
usageType: __expectString,
|
|
1473
|
+
});
|
|
1474
|
+
};
|
|
1475
|
+
const de_ListBillEstimateCommitmentsResponse = (output, context) => {
|
|
1476
|
+
return take(output, {
|
|
1477
|
+
items: (_) => de_BillEstimateCommitmentSummaries(_, context),
|
|
1478
|
+
nextToken: __expectString,
|
|
1479
|
+
});
|
|
1480
|
+
};
|
|
1481
|
+
const de_ListBillEstimateInputCommitmentModificationsResponse = (output, context) => {
|
|
1482
|
+
return take(output, {
|
|
1483
|
+
items: (_) => de_BillEstimateInputCommitmentModificationSummaries(_, context),
|
|
1484
|
+
nextToken: __expectString,
|
|
1485
|
+
});
|
|
1486
|
+
};
|
|
1487
|
+
const de_ListBillEstimateInputUsageModificationsResponse = (output, context) => {
|
|
1488
|
+
return take(output, {
|
|
1489
|
+
items: (_) => de_BillEstimateInputUsageModificationSummaries(_, context),
|
|
1490
|
+
nextToken: __expectString,
|
|
1491
|
+
});
|
|
1492
|
+
};
|
|
1493
|
+
const de_ListBillEstimateLineItemsResponse = (output, context) => {
|
|
1494
|
+
return take(output, {
|
|
1495
|
+
items: (_) => de_BillEstimateLineItemSummaries(_, context),
|
|
1496
|
+
nextToken: __expectString,
|
|
1497
|
+
});
|
|
1498
|
+
};
|
|
1499
|
+
const de_ListBillEstimatesResponse = (output, context) => {
|
|
1500
|
+
return take(output, {
|
|
1501
|
+
items: (_) => de_BillEstimateSummaries(_, context),
|
|
1502
|
+
nextToken: __expectString,
|
|
1503
|
+
});
|
|
1504
|
+
};
|
|
1505
|
+
const de_ListBillScenarioCommitmentModificationsResponse = (output, context) => {
|
|
1506
|
+
return take(output, {
|
|
1507
|
+
items: (_) => de_BillScenarioCommitmentModificationItems(_, context),
|
|
1508
|
+
nextToken: __expectString,
|
|
1509
|
+
});
|
|
1510
|
+
};
|
|
1511
|
+
const de_ListBillScenariosResponse = (output, context) => {
|
|
1512
|
+
return take(output, {
|
|
1513
|
+
items: (_) => de_BillScenarioSummaries(_, context),
|
|
1514
|
+
nextToken: __expectString,
|
|
1515
|
+
});
|
|
1516
|
+
};
|
|
1517
|
+
const de_ListBillScenarioUsageModificationsResponse = (output, context) => {
|
|
1518
|
+
return take(output, {
|
|
1519
|
+
items: (_) => de_BillScenarioUsageModificationItems(_, context),
|
|
1520
|
+
nextToken: __expectString,
|
|
1521
|
+
});
|
|
1522
|
+
};
|
|
1523
|
+
const de_ListWorkloadEstimatesResponse = (output, context) => {
|
|
1524
|
+
return take(output, {
|
|
1525
|
+
items: (_) => de_WorkloadEstimateSummaries(_, context),
|
|
1526
|
+
nextToken: __expectString,
|
|
1527
|
+
});
|
|
1528
|
+
};
|
|
1529
|
+
const de_ListWorkloadEstimateUsageResponse = (output, context) => {
|
|
1530
|
+
return take(output, {
|
|
1531
|
+
items: (_) => de_WorkloadEstimateUsageItems(_, context),
|
|
1532
|
+
nextToken: __expectString,
|
|
1533
|
+
});
|
|
1534
|
+
};
|
|
1535
|
+
const de_ServiceCostDifferenceMap = (output, context) => {
|
|
1536
|
+
return Object.entries(output).reduce((acc, [key, value]) => {
|
|
1537
|
+
if (value === null) {
|
|
1538
|
+
return acc;
|
|
1539
|
+
}
|
|
1540
|
+
acc[key] = de_CostDifference(value, context);
|
|
1541
|
+
return acc;
|
|
1542
|
+
}, {});
|
|
1543
|
+
};
|
|
1544
|
+
const de_UpdateBillEstimateResponse = (output, context) => {
|
|
1545
|
+
return take(output, {
|
|
1546
|
+
billInterval: (_) => de_BillInterval(_, context),
|
|
1547
|
+
costSummary: (_) => de_BillEstimateCostSummary(_, context),
|
|
1548
|
+
createdAt: (_) => __expectNonNull(__parseEpochTimestamp(__expectNumber(_))),
|
|
1549
|
+
expiresAt: (_) => __expectNonNull(__parseEpochTimestamp(__expectNumber(_))),
|
|
1550
|
+
failureMessage: __expectString,
|
|
1551
|
+
id: __expectString,
|
|
1552
|
+
name: __expectString,
|
|
1553
|
+
status: __expectString,
|
|
1554
|
+
});
|
|
1555
|
+
};
|
|
1556
|
+
const de_UpdateBillScenarioResponse = (output, context) => {
|
|
1557
|
+
return take(output, {
|
|
1558
|
+
billInterval: (_) => de_BillInterval(_, context),
|
|
1559
|
+
createdAt: (_) => __expectNonNull(__parseEpochTimestamp(__expectNumber(_))),
|
|
1560
|
+
expiresAt: (_) => __expectNonNull(__parseEpochTimestamp(__expectNumber(_))),
|
|
1561
|
+
failureMessage: __expectString,
|
|
1562
|
+
id: __expectString,
|
|
1563
|
+
name: __expectString,
|
|
1564
|
+
status: __expectString,
|
|
1565
|
+
});
|
|
1566
|
+
};
|
|
1567
|
+
const de_UpdateWorkloadEstimateResponse = (output, context) => {
|
|
1568
|
+
return take(output, {
|
|
1569
|
+
costCurrency: __expectString,
|
|
1570
|
+
createdAt: (_) => __expectNonNull(__parseEpochTimestamp(__expectNumber(_))),
|
|
1571
|
+
expiresAt: (_) => __expectNonNull(__parseEpochTimestamp(__expectNumber(_))),
|
|
1572
|
+
failureMessage: __expectString,
|
|
1573
|
+
id: __expectString,
|
|
1574
|
+
name: __expectString,
|
|
1575
|
+
rateTimestamp: (_) => __expectNonNull(__parseEpochTimestamp(__expectNumber(_))),
|
|
1576
|
+
rateType: __expectString,
|
|
1577
|
+
status: __expectString,
|
|
1578
|
+
totalCost: __limitedParseDouble,
|
|
1579
|
+
});
|
|
1580
|
+
};
|
|
1581
|
+
const de_UsageQuantities = (output, context) => {
|
|
1582
|
+
const retVal = (output || [])
|
|
1583
|
+
.filter((e) => e != null)
|
|
1584
|
+
.map((entry) => {
|
|
1585
|
+
return de_UsageQuantity(entry, context);
|
|
1586
|
+
});
|
|
1587
|
+
return retVal;
|
|
1588
|
+
};
|
|
1589
|
+
const de_UsageQuantity = (output, context) => {
|
|
1590
|
+
return take(output, {
|
|
1591
|
+
amount: __limitedParseDouble,
|
|
1592
|
+
startHour: (_) => __expectNonNull(__parseEpochTimestamp(__expectNumber(_))),
|
|
1593
|
+
unit: __expectString,
|
|
1594
|
+
});
|
|
1595
|
+
};
|
|
1596
|
+
const de_UsageQuantityResult = (output, context) => {
|
|
1597
|
+
return take(output, {
|
|
1598
|
+
amount: __limitedParseDouble,
|
|
1599
|
+
unit: __expectString,
|
|
1600
|
+
});
|
|
1601
|
+
};
|
|
1602
|
+
const de_WorkloadEstimateSummaries = (output, context) => {
|
|
1603
|
+
const retVal = (output || [])
|
|
1604
|
+
.filter((e) => e != null)
|
|
1605
|
+
.map((entry) => {
|
|
1606
|
+
return de_WorkloadEstimateSummary(entry, context);
|
|
1607
|
+
});
|
|
1608
|
+
return retVal;
|
|
1609
|
+
};
|
|
1610
|
+
const de_WorkloadEstimateSummary = (output, context) => {
|
|
1611
|
+
return take(output, {
|
|
1612
|
+
costCurrency: __expectString,
|
|
1613
|
+
createdAt: (_) => __expectNonNull(__parseEpochTimestamp(__expectNumber(_))),
|
|
1614
|
+
expiresAt: (_) => __expectNonNull(__parseEpochTimestamp(__expectNumber(_))),
|
|
1615
|
+
failureMessage: __expectString,
|
|
1616
|
+
id: __expectString,
|
|
1617
|
+
name: __expectString,
|
|
1618
|
+
rateTimestamp: (_) => __expectNonNull(__parseEpochTimestamp(__expectNumber(_))),
|
|
1619
|
+
rateType: __expectString,
|
|
1620
|
+
status: __expectString,
|
|
1621
|
+
totalCost: __limitedParseDouble,
|
|
1622
|
+
});
|
|
1623
|
+
};
|
|
1624
|
+
const de_WorkloadEstimateUsageItem = (output, context) => {
|
|
1625
|
+
return take(output, {
|
|
1626
|
+
cost: __limitedParseDouble,
|
|
1627
|
+
currency: __expectString,
|
|
1628
|
+
group: __expectString,
|
|
1629
|
+
historicalUsage: (_) => de_HistoricalUsageEntity(_, context),
|
|
1630
|
+
id: __expectString,
|
|
1631
|
+
location: __expectString,
|
|
1632
|
+
operation: __expectString,
|
|
1633
|
+
quantity: (_) => de_WorkloadEstimateUsageQuantity(_, context),
|
|
1634
|
+
serviceCode: __expectString,
|
|
1635
|
+
status: __expectString,
|
|
1636
|
+
usageAccountId: __expectString,
|
|
1637
|
+
usageType: __expectString,
|
|
1638
|
+
});
|
|
1639
|
+
};
|
|
1640
|
+
const de_WorkloadEstimateUsageItems = (output, context) => {
|
|
1641
|
+
const retVal = (output || [])
|
|
1642
|
+
.filter((e) => e != null)
|
|
1643
|
+
.map((entry) => {
|
|
1644
|
+
return de_WorkloadEstimateUsageItem(entry, context);
|
|
1645
|
+
});
|
|
1646
|
+
return retVal;
|
|
1647
|
+
};
|
|
1648
|
+
const de_WorkloadEstimateUsageQuantity = (output, context) => {
|
|
1649
|
+
return take(output, {
|
|
1650
|
+
amount: __limitedParseDouble,
|
|
1651
|
+
unit: __expectString,
|
|
1652
|
+
});
|
|
1653
|
+
};
|
|
1654
|
+
const deserializeMetadata = (output) => ({
|
|
1655
|
+
httpStatusCode: output.statusCode,
|
|
1656
|
+
requestId: output.headers["x-amzn-requestid"] ?? output.headers["x-amzn-request-id"] ?? output.headers["x-amz-request-id"],
|
|
1657
|
+
extendedRequestId: output.headers["x-amz-id-2"],
|
|
1658
|
+
cfId: output.headers["x-amz-cf-id"],
|
|
1659
|
+
});
|
|
1660
|
+
const collectBodyString = (streamBody, context) => collectBody(streamBody, context).then((body) => context.utf8Encoder(body));
|
|
1661
|
+
const throwDefaultError = withBaseException(__BaseException);
|
|
1662
|
+
const buildHttpRpcRequest = async (context, headers, path, resolvedHostname, body) => {
|
|
1663
|
+
const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
|
|
1664
|
+
const contents = {
|
|
1665
|
+
protocol,
|
|
1666
|
+
hostname,
|
|
1667
|
+
port,
|
|
1668
|
+
method: "POST",
|
|
1669
|
+
path: basePath.endsWith("/") ? basePath.slice(0, -1) + path : basePath + path,
|
|
1670
|
+
headers,
|
|
1671
|
+
};
|
|
1672
|
+
if (resolvedHostname !== undefined) {
|
|
1673
|
+
contents.hostname = resolvedHostname;
|
|
1674
|
+
}
|
|
1675
|
+
if (body !== undefined) {
|
|
1676
|
+
contents.body = body;
|
|
1677
|
+
}
|
|
1678
|
+
return new __HttpRequest(contents);
|
|
1679
|
+
};
|
|
1680
|
+
function sharedHeaders(operation) {
|
|
1681
|
+
return {
|
|
1682
|
+
"content-type": "application/x-amz-json-1.0",
|
|
1683
|
+
"x-amz-target": `AWSBCMPricingCalculator.${operation}`,
|
|
1684
|
+
};
|
|
1685
|
+
}
|