@aws-sdk/client-cost-explorer 3.1045.0 → 3.1046.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/dist-cjs/auth/httpAuthSchemeProvider.js +4 -4
- package/dist-cjs/endpoint/bdd.js +2 -2
- package/dist-cjs/endpoint/endpointResolver.js +4 -4
- package/dist-cjs/index.js +110 -111
- package/dist-cjs/models/CostExplorerServiceException.js +3 -3
- package/dist-cjs/runtimeConfig.browser.js +12 -14
- package/dist-cjs/runtimeConfig.js +18 -22
- package/dist-cjs/runtimeConfig.shared.js +9 -10
- package/dist-es/CostExplorer.js +1 -1
- package/dist-es/CostExplorerClient.js +5 -5
- package/dist-es/auth/httpAuthSchemeProvider.js +1 -1
- package/dist-es/commands/CreateAnomalyMonitorCommand.js +2 -2
- package/dist-es/commands/CreateAnomalySubscriptionCommand.js +2 -2
- package/dist-es/commands/CreateCostCategoryDefinitionCommand.js +2 -2
- package/dist-es/commands/DeleteAnomalyMonitorCommand.js +2 -2
- package/dist-es/commands/DeleteAnomalySubscriptionCommand.js +2 -2
- package/dist-es/commands/DeleteCostCategoryDefinitionCommand.js +2 -2
- package/dist-es/commands/DescribeCostCategoryDefinitionCommand.js +2 -2
- package/dist-es/commands/GetAnomaliesCommand.js +2 -2
- package/dist-es/commands/GetAnomalyMonitorsCommand.js +2 -2
- package/dist-es/commands/GetAnomalySubscriptionsCommand.js +2 -2
- package/dist-es/commands/GetApproximateUsageRecordsCommand.js +2 -2
- package/dist-es/commands/GetCommitmentPurchaseAnalysisCommand.js +2 -2
- package/dist-es/commands/GetCostAndUsageCommand.js +2 -2
- package/dist-es/commands/GetCostAndUsageComparisonsCommand.js +2 -2
- package/dist-es/commands/GetCostAndUsageWithResourcesCommand.js +2 -2
- package/dist-es/commands/GetCostCategoriesCommand.js +2 -2
- package/dist-es/commands/GetCostComparisonDriversCommand.js +2 -2
- package/dist-es/commands/GetCostForecastCommand.js +2 -2
- package/dist-es/commands/GetDimensionValuesCommand.js +2 -2
- package/dist-es/commands/GetReservationCoverageCommand.js +2 -2
- package/dist-es/commands/GetReservationPurchaseRecommendationCommand.js +2 -2
- package/dist-es/commands/GetReservationUtilizationCommand.js +2 -2
- package/dist-es/commands/GetRightsizingRecommendationCommand.js +2 -2
- package/dist-es/commands/GetSavingsPlanPurchaseRecommendationDetailsCommand.js +2 -2
- package/dist-es/commands/GetSavingsPlansCoverageCommand.js +2 -2
- package/dist-es/commands/GetSavingsPlansPurchaseRecommendationCommand.js +2 -2
- package/dist-es/commands/GetSavingsPlansUtilizationCommand.js +2 -2
- package/dist-es/commands/GetSavingsPlansUtilizationDetailsCommand.js +2 -2
- package/dist-es/commands/GetTagsCommand.js +2 -2
- package/dist-es/commands/GetUsageForecastCommand.js +2 -2
- package/dist-es/commands/ListCommitmentPurchaseAnalysesCommand.js +2 -2
- package/dist-es/commands/ListCostAllocationTagBackfillHistoryCommand.js +2 -2
- package/dist-es/commands/ListCostAllocationTagsCommand.js +2 -2
- package/dist-es/commands/ListCostCategoryDefinitionsCommand.js +2 -2
- package/dist-es/commands/ListCostCategoryResourceAssociationsCommand.js +2 -2
- package/dist-es/commands/ListSavingsPlansPurchaseRecommendationGenerationCommand.js +2 -2
- package/dist-es/commands/ListTagsForResourceCommand.js +2 -2
- package/dist-es/commands/ProvideAnomalyFeedbackCommand.js +2 -2
- package/dist-es/commands/StartCommitmentPurchaseAnalysisCommand.js +2 -2
- package/dist-es/commands/StartCostAllocationTagBackfillCommand.js +2 -2
- package/dist-es/commands/StartSavingsPlansPurchaseRecommendationGenerationCommand.js +2 -2
- package/dist-es/commands/TagResourceCommand.js +2 -2
- package/dist-es/commands/UntagResourceCommand.js +2 -2
- package/dist-es/commands/UpdateAnomalyMonitorCommand.js +2 -2
- package/dist-es/commands/UpdateAnomalySubscriptionCommand.js +2 -2
- package/dist-es/commands/UpdateCostAllocationTagsStatusCommand.js +2 -2
- package/dist-es/commands/UpdateCostCategoryDefinitionCommand.js +2 -2
- package/dist-es/endpoint/bdd.js +1 -1
- package/dist-es/endpoint/endpointResolver.js +1 -1
- package/dist-es/models/CostExplorerServiceException.js +1 -1
- package/dist-es/runtimeConfig.browser.js +4 -6
- package/dist-es/runtimeConfig.js +4 -8
- package/dist-es/runtimeConfig.shared.js +3 -4
- package/dist-es/runtimeExtensions.js +2 -2
- package/dist-types/CostExplorerClient.d.ts +5 -5
- package/dist-types/commands/CreateAnomalyMonitorCommand.d.ts +6 -4
- package/dist-types/commands/CreateAnomalySubscriptionCommand.d.ts +6 -4
- package/dist-types/commands/CreateCostCategoryDefinitionCommand.d.ts +6 -4
- package/dist-types/commands/DeleteAnomalyMonitorCommand.d.ts +6 -4
- package/dist-types/commands/DeleteAnomalySubscriptionCommand.d.ts +6 -4
- package/dist-types/commands/DeleteCostCategoryDefinitionCommand.d.ts +6 -4
- package/dist-types/commands/DescribeCostCategoryDefinitionCommand.d.ts +6 -4
- package/dist-types/commands/GetAnomaliesCommand.d.ts +6 -4
- package/dist-types/commands/GetAnomalyMonitorsCommand.d.ts +6 -4
- package/dist-types/commands/GetAnomalySubscriptionsCommand.d.ts +6 -4
- package/dist-types/commands/GetApproximateUsageRecordsCommand.d.ts +6 -4
- package/dist-types/commands/GetCommitmentPurchaseAnalysisCommand.d.ts +6 -4
- package/dist-types/commands/GetCostAndUsageCommand.d.ts +6 -4
- package/dist-types/commands/GetCostAndUsageComparisonsCommand.d.ts +6 -4
- package/dist-types/commands/GetCostAndUsageWithResourcesCommand.d.ts +6 -4
- package/dist-types/commands/GetCostCategoriesCommand.d.ts +6 -4
- package/dist-types/commands/GetCostComparisonDriversCommand.d.ts +6 -4
- package/dist-types/commands/GetCostForecastCommand.d.ts +6 -4
- package/dist-types/commands/GetDimensionValuesCommand.d.ts +6 -4
- package/dist-types/commands/GetReservationCoverageCommand.d.ts +6 -4
- package/dist-types/commands/GetReservationPurchaseRecommendationCommand.d.ts +6 -4
- package/dist-types/commands/GetReservationUtilizationCommand.d.ts +6 -4
- package/dist-types/commands/GetRightsizingRecommendationCommand.d.ts +6 -4
- package/dist-types/commands/GetSavingsPlanPurchaseRecommendationDetailsCommand.d.ts +6 -4
- package/dist-types/commands/GetSavingsPlansCoverageCommand.d.ts +6 -4
- package/dist-types/commands/GetSavingsPlansPurchaseRecommendationCommand.d.ts +6 -4
- package/dist-types/commands/GetSavingsPlansUtilizationCommand.d.ts +6 -4
- package/dist-types/commands/GetSavingsPlansUtilizationDetailsCommand.d.ts +6 -4
- package/dist-types/commands/GetTagsCommand.d.ts +6 -4
- package/dist-types/commands/GetUsageForecastCommand.d.ts +6 -4
- package/dist-types/commands/ListCommitmentPurchaseAnalysesCommand.d.ts +6 -4
- package/dist-types/commands/ListCostAllocationTagBackfillHistoryCommand.d.ts +6 -4
- package/dist-types/commands/ListCostAllocationTagsCommand.d.ts +6 -4
- package/dist-types/commands/ListCostCategoryDefinitionsCommand.d.ts +6 -4
- package/dist-types/commands/ListCostCategoryResourceAssociationsCommand.d.ts +6 -4
- package/dist-types/commands/ListSavingsPlansPurchaseRecommendationGenerationCommand.d.ts +6 -4
- package/dist-types/commands/ListTagsForResourceCommand.d.ts +6 -4
- package/dist-types/commands/ProvideAnomalyFeedbackCommand.d.ts +6 -4
- package/dist-types/commands/StartCommitmentPurchaseAnalysisCommand.d.ts +6 -4
- package/dist-types/commands/StartCostAllocationTagBackfillCommand.d.ts +6 -4
- package/dist-types/commands/StartSavingsPlansPurchaseRecommendationGenerationCommand.d.ts +6 -4
- package/dist-types/commands/TagResourceCommand.d.ts +6 -4
- package/dist-types/commands/UntagResourceCommand.d.ts +6 -4
- package/dist-types/commands/UpdateAnomalyMonitorCommand.d.ts +6 -4
- package/dist-types/commands/UpdateAnomalySubscriptionCommand.d.ts +6 -4
- package/dist-types/commands/UpdateCostAllocationTagsStatusCommand.d.ts +6 -4
- package/dist-types/commands/UpdateCostCategoryDefinitionCommand.d.ts +6 -4
- package/dist-types/endpoint/bdd.d.ts +1 -1
- package/dist-types/extensionConfiguration.d.ts +1 -1
- package/dist-types/models/CostExplorerServiceException.d.ts +1 -1
- package/dist-types/models/errors.d.ts +1 -1
- package/dist-types/runtimeConfig.browser.d.ts +2 -2
- package/dist-types/runtimeConfig.d.ts +2 -2
- package/dist-types/runtimeConfig.native.d.ts +2 -2
- package/dist-types/ts3.4/CostExplorerClient.d.ts +8 -14
- package/dist-types/ts3.4/commands/CreateAnomalyMonitorCommand.d.ts +6 -4
- package/dist-types/ts3.4/commands/CreateAnomalySubscriptionCommand.d.ts +6 -4
- package/dist-types/ts3.4/commands/CreateCostCategoryDefinitionCommand.d.ts +6 -4
- package/dist-types/ts3.4/commands/DeleteAnomalyMonitorCommand.d.ts +6 -4
- package/dist-types/ts3.4/commands/DeleteAnomalySubscriptionCommand.d.ts +6 -4
- package/dist-types/ts3.4/commands/DeleteCostCategoryDefinitionCommand.d.ts +6 -4
- package/dist-types/ts3.4/commands/DescribeCostCategoryDefinitionCommand.d.ts +6 -4
- package/dist-types/ts3.4/commands/GetAnomaliesCommand.d.ts +6 -4
- package/dist-types/ts3.4/commands/GetAnomalyMonitorsCommand.d.ts +6 -4
- package/dist-types/ts3.4/commands/GetAnomalySubscriptionsCommand.d.ts +6 -4
- package/dist-types/ts3.4/commands/GetApproximateUsageRecordsCommand.d.ts +6 -4
- package/dist-types/ts3.4/commands/GetCommitmentPurchaseAnalysisCommand.d.ts +6 -4
- package/dist-types/ts3.4/commands/GetCostAndUsageCommand.d.ts +6 -4
- package/dist-types/ts3.4/commands/GetCostAndUsageComparisonsCommand.d.ts +6 -4
- package/dist-types/ts3.4/commands/GetCostAndUsageWithResourcesCommand.d.ts +6 -4
- package/dist-types/ts3.4/commands/GetCostCategoriesCommand.d.ts +6 -4
- package/dist-types/ts3.4/commands/GetCostComparisonDriversCommand.d.ts +6 -4
- package/dist-types/ts3.4/commands/GetCostForecastCommand.d.ts +6 -4
- package/dist-types/ts3.4/commands/GetDimensionValuesCommand.d.ts +6 -4
- package/dist-types/ts3.4/commands/GetReservationCoverageCommand.d.ts +6 -4
- package/dist-types/ts3.4/commands/GetReservationPurchaseRecommendationCommand.d.ts +6 -4
- package/dist-types/ts3.4/commands/GetReservationUtilizationCommand.d.ts +6 -4
- package/dist-types/ts3.4/commands/GetRightsizingRecommendationCommand.d.ts +6 -4
- package/dist-types/ts3.4/commands/GetSavingsPlanPurchaseRecommendationDetailsCommand.d.ts +6 -4
- package/dist-types/ts3.4/commands/GetSavingsPlansCoverageCommand.d.ts +6 -4
- package/dist-types/ts3.4/commands/GetSavingsPlansPurchaseRecommendationCommand.d.ts +6 -4
- package/dist-types/ts3.4/commands/GetSavingsPlansUtilizationCommand.d.ts +6 -4
- package/dist-types/ts3.4/commands/GetSavingsPlansUtilizationDetailsCommand.d.ts +6 -4
- package/dist-types/ts3.4/commands/GetTagsCommand.d.ts +6 -4
- package/dist-types/ts3.4/commands/GetUsageForecastCommand.d.ts +6 -4
- package/dist-types/ts3.4/commands/ListCommitmentPurchaseAnalysesCommand.d.ts +6 -4
- package/dist-types/ts3.4/commands/ListCostAllocationTagBackfillHistoryCommand.d.ts +6 -4
- package/dist-types/ts3.4/commands/ListCostAllocationTagsCommand.d.ts +6 -4
- package/dist-types/ts3.4/commands/ListCostCategoryDefinitionsCommand.d.ts +6 -4
- package/dist-types/ts3.4/commands/ListCostCategoryResourceAssociationsCommand.d.ts +6 -4
- package/dist-types/ts3.4/commands/ListSavingsPlansPurchaseRecommendationGenerationCommand.d.ts +6 -4
- package/dist-types/ts3.4/commands/ListTagsForResourceCommand.d.ts +6 -4
- package/dist-types/ts3.4/commands/ProvideAnomalyFeedbackCommand.d.ts +6 -4
- package/dist-types/ts3.4/commands/StartCommitmentPurchaseAnalysisCommand.d.ts +6 -4
- package/dist-types/ts3.4/commands/StartCostAllocationTagBackfillCommand.d.ts +6 -4
- package/dist-types/ts3.4/commands/StartSavingsPlansPurchaseRecommendationGenerationCommand.d.ts +6 -4
- package/dist-types/ts3.4/commands/TagResourceCommand.d.ts +6 -4
- package/dist-types/ts3.4/commands/UntagResourceCommand.d.ts +6 -4
- package/dist-types/ts3.4/commands/UpdateAnomalyMonitorCommand.d.ts +6 -4
- package/dist-types/ts3.4/commands/UpdateAnomalySubscriptionCommand.d.ts +6 -4
- package/dist-types/ts3.4/commands/UpdateCostAllocationTagsStatusCommand.d.ts +6 -4
- package/dist-types/ts3.4/commands/UpdateCostCategoryDefinitionCommand.d.ts +6 -4
- package/dist-types/ts3.4/endpoint/bdd.d.ts +1 -1
- package/dist-types/ts3.4/extensionConfiguration.d.ts +1 -1
- package/dist-types/ts3.4/models/CostExplorerServiceException.d.ts +1 -1
- package/dist-types/ts3.4/models/errors.d.ts +1 -1
- package/dist-types/ts3.4/runtimeConfig.browser.d.ts +2 -2
- package/dist-types/ts3.4/runtimeConfig.d.ts +2 -2
- package/dist-types/ts3.4/runtimeConfig.native.d.ts +3 -3
- package/package.json +13 -34
|
@@ -2,11 +2,11 @@
|
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
3
|
exports.resolveHttpAuthSchemeConfig = exports.defaultCostExplorerHttpAuthSchemeProvider = exports.defaultCostExplorerHttpAuthSchemeParametersProvider = void 0;
|
|
4
4
|
const httpAuthSchemes_1 = require("@aws-sdk/core/httpAuthSchemes");
|
|
5
|
-
const
|
|
5
|
+
const client_1 = require("@smithy/core/client");
|
|
6
6
|
const defaultCostExplorerHttpAuthSchemeParametersProvider = async (config, context, input) => {
|
|
7
7
|
return {
|
|
8
|
-
operation: (0,
|
|
9
|
-
region: await (0,
|
|
8
|
+
operation: (0, client_1.getSmithyContext)(context).operation,
|
|
9
|
+
region: await (0, client_1.normalizeProvider)(config.region)() || (() => {
|
|
10
10
|
throw new Error("expected `region` to be configured for `aws.auth#sigv4`");
|
|
11
11
|
})(),
|
|
12
12
|
};
|
|
@@ -40,7 +40,7 @@ exports.defaultCostExplorerHttpAuthSchemeProvider = defaultCostExplorerHttpAuthS
|
|
|
40
40
|
const resolveHttpAuthSchemeConfig = (config) => {
|
|
41
41
|
const config_0 = (0, httpAuthSchemes_1.resolveAwsSdkSigV4Config)(config);
|
|
42
42
|
return Object.assign(config_0, {
|
|
43
|
-
authSchemePreference: (0,
|
|
43
|
+
authSchemePreference: (0, client_1.normalizeProvider)(config.authSchemePreference ?? []),
|
|
44
44
|
});
|
|
45
45
|
};
|
|
46
46
|
exports.resolveHttpAuthSchemeConfig = resolveHttpAuthSchemeConfig;
|
package/dist-cjs/endpoint/bdd.js
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
3
|
exports.bdd = void 0;
|
|
4
|
-
const
|
|
4
|
+
const endpoints_1 = require("@smithy/core/endpoints");
|
|
5
5
|
const n = "ref";
|
|
6
6
|
const a = -1, b = true, c = "isSet", d = "PartitionResult", e = "booleanEquals", f = "getAttr", g = "stringEquals", h = "sigv4", i = { [n]: "Endpoint" }, j = { [n]: d }, k = { "fn": f, "argv": [j, "name"] }, l = { "authSchemes": [{ "name": h, "signingRegion": "{PartitionResult#implicitGlobalRegion}" }] }, m = [{ [n]: "Region" }];
|
|
7
7
|
const _data = {
|
|
@@ -68,4 +68,4 @@ const nodes = new Int32Array([
|
|
|
68
68
|
3, r + 1, 21,
|
|
69
69
|
5, r + 2, r + 3,
|
|
70
70
|
]);
|
|
71
|
-
exports.bdd =
|
|
71
|
+
exports.bdd = endpoints_1.BinaryDecisionDiagram.from(nodes, root, _data.conditions, _data.results);
|
|
@@ -2,17 +2,17 @@
|
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
3
|
exports.defaultEndpointResolver = void 0;
|
|
4
4
|
const util_endpoints_1 = require("@aws-sdk/util-endpoints");
|
|
5
|
-
const
|
|
5
|
+
const endpoints_1 = require("@smithy/core/endpoints");
|
|
6
6
|
const bdd_1 = require("./bdd");
|
|
7
|
-
const cache = new
|
|
7
|
+
const cache = new endpoints_1.EndpointCache({
|
|
8
8
|
size: 50,
|
|
9
9
|
params: ["Endpoint", "Region", "UseDualStack", "UseFIPS"],
|
|
10
10
|
});
|
|
11
11
|
const defaultEndpointResolver = (endpointParams, context = {}) => {
|
|
12
|
-
return cache.get(endpointParams, () => (0,
|
|
12
|
+
return cache.get(endpointParams, () => (0, endpoints_1.decideEndpoint)(bdd_1.bdd, {
|
|
13
13
|
endpointParams: endpointParams,
|
|
14
14
|
logger: context.logger,
|
|
15
15
|
}));
|
|
16
16
|
};
|
|
17
17
|
exports.defaultEndpointResolver = defaultEndpointResolver;
|
|
18
|
-
|
|
18
|
+
endpoints_1.customEndpointFunctions.aws = util_endpoints_1.awsEndpointFunctions;
|