@aws-sdk/client-cost-explorer 3.34.0 → 3.37.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/CHANGELOG.md +47 -0
- package/{dist/cjs → dist-cjs}/CostExplorer.js +1 -20
- package/dist-cjs/CostExplorerClient.js +35 -0
- package/{dist/cjs → dist-cjs}/commands/CreateAnomalyMonitorCommand.js +2 -28
- package/{dist/cjs → dist-cjs}/commands/CreateAnomalySubscriptionCommand.js +2 -29
- package/{dist/cjs → dist-cjs}/commands/CreateCostCategoryDefinitionCommand.js +2 -27
- package/{dist/cjs → dist-cjs}/commands/DeleteAnomalyMonitorCommand.js +2 -27
- package/{dist/cjs → dist-cjs}/commands/DeleteAnomalySubscriptionCommand.js +2 -27
- package/{dist/cjs → dist-cjs}/commands/DeleteCostCategoryDefinitionCommand.js +2 -27
- package/{dist/cjs → dist-cjs}/commands/DescribeCostCategoryDefinitionCommand.js +2 -28
- package/{dist/cjs → dist-cjs}/commands/GetAnomaliesCommand.js +2 -28
- package/{dist/cjs → dist-cjs}/commands/GetAnomalyMonitorsCommand.js +2 -28
- package/{dist/cjs → dist-cjs}/commands/GetAnomalySubscriptionsCommand.js +2 -28
- package/dist-cjs/commands/GetCostAndUsageCommand.js +36 -0
- package/dist-cjs/commands/GetCostAndUsageWithResourcesCommand.js +36 -0
- package/{dist/cjs → dist-cjs}/commands/GetCostCategoriesCommand.js +2 -30
- package/{dist/cjs → dist-cjs}/commands/GetCostForecastCommand.js +2 -27
- package/{dist/cjs → dist-cjs}/commands/GetDimensionValuesCommand.js +2 -27
- package/dist-cjs/commands/GetReservationCoverageCommand.js +36 -0
- package/dist-cjs/commands/GetReservationPurchaseRecommendationCommand.js +36 -0
- package/{dist/cjs → dist-cjs}/commands/GetReservationUtilizationCommand.js +2 -29
- package/{dist/cjs → dist-cjs}/commands/GetRightsizingRecommendationCommand.js +2 -36
- package/dist-cjs/commands/GetSavingsPlansCoverageCommand.js +36 -0
- package/{dist/cjs → dist-cjs}/commands/GetSavingsPlansPurchaseRecommendationCommand.js +2 -27
- package/{dist/cjs → dist-cjs}/commands/GetSavingsPlansUtilizationCommand.js +2 -30
- package/{dist/cjs → dist-cjs}/commands/GetSavingsPlansUtilizationDetailsCommand.js +2 -31
- package/{dist/cjs → dist-cjs}/commands/GetTagsCommand.js +2 -27
- package/{dist/cjs → dist-cjs}/commands/GetUsageForecastCommand.js +2 -27
- package/{dist/cjs → dist-cjs}/commands/ListCostCategoryDefinitionsCommand.js +2 -27
- package/{dist/cjs → dist-cjs}/commands/ProvideAnomalyFeedbackCommand.js +2 -27
- package/{dist/cjs → dist-cjs}/commands/UpdateAnomalyMonitorCommand.js +2 -28
- package/{dist/cjs → dist-cjs}/commands/UpdateAnomalySubscriptionCommand.js +2 -27
- package/{dist/cjs → dist-cjs}/commands/UpdateCostCategoryDefinitionCommand.js +2 -27
- package/{dist/cjs → dist-cjs}/endpoints.js +1 -2
- package/{dist/cjs → dist-cjs}/index.js +0 -1
- package/{dist/cjs → dist-cjs}/models/index.js +0 -1
- package/{dist/cjs → dist-cjs}/models/models_0.js +0 -442
- package/{dist/cjs → dist-cjs}/pagination/GetSavingsPlansCoveragePaginator.js +1 -12
- package/{dist/cjs → dist-cjs}/pagination/GetSavingsPlansUtilizationDetailsPaginator.js +1 -12
- package/{dist/cjs → dist-cjs}/pagination/Interfaces.js +0 -1
- package/{dist/cjs → dist-cjs}/pagination/ListCostCategoryDefinitionsPaginator.js +1 -12
- package/{dist/cjs → dist-cjs}/protocols/Aws_json1_1.js +0 -6
- package/{dist/cjs → dist-cjs}/runtimeConfig.browser.js +1 -5
- package/{dist/cjs → dist-cjs}/runtimeConfig.js +1 -5
- package/{dist/cjs → dist-cjs}/runtimeConfig.native.js +0 -4
- package/{dist/cjs → dist-cjs}/runtimeConfig.shared.js +1 -5
- package/{dist/es → dist-es}/CostExplorer.js +1 -2
- package/{dist/es → dist-es}/CostExplorerClient.js +1 -2
- package/{dist/es → dist-es}/commands/CreateAnomalyMonitorCommand.js +2 -3
- package/{dist/es → dist-es}/commands/CreateAnomalySubscriptionCommand.js +2 -3
- package/{dist/es → dist-es}/commands/CreateCostCategoryDefinitionCommand.js +2 -3
- package/{dist/es → dist-es}/commands/DeleteAnomalyMonitorCommand.js +2 -3
- package/{dist/es → dist-es}/commands/DeleteAnomalySubscriptionCommand.js +2 -3
- package/{dist/es → dist-es}/commands/DeleteCostCategoryDefinitionCommand.js +2 -3
- package/{dist/es → dist-es}/commands/DescribeCostCategoryDefinitionCommand.js +2 -3
- package/{dist/es → dist-es}/commands/GetAnomaliesCommand.js +2 -3
- package/{dist/es → dist-es}/commands/GetAnomalyMonitorsCommand.js +2 -3
- package/{dist/es → dist-es}/commands/GetAnomalySubscriptionsCommand.js +2 -3
- package/{dist/es → dist-es}/commands/GetCostAndUsageCommand.js +2 -3
- package/{dist/es → dist-es}/commands/GetCostAndUsageWithResourcesCommand.js +2 -3
- package/{dist/es → dist-es}/commands/GetCostCategoriesCommand.js +2 -3
- package/{dist/es → dist-es}/commands/GetCostForecastCommand.js +2 -3
- package/{dist/es → dist-es}/commands/GetDimensionValuesCommand.js +2 -3
- package/{dist/es → dist-es}/commands/GetReservationCoverageCommand.js +2 -3
- package/{dist/es → dist-es}/commands/GetReservationPurchaseRecommendationCommand.js +2 -3
- package/{dist/es → dist-es}/commands/GetReservationUtilizationCommand.js +2 -3
- package/{dist/es → dist-es}/commands/GetRightsizingRecommendationCommand.js +2 -3
- package/{dist/es → dist-es}/commands/GetSavingsPlansCoverageCommand.js +2 -3
- package/{dist/es → dist-es}/commands/GetSavingsPlansPurchaseRecommendationCommand.js +2 -3
- package/{dist/es → dist-es}/commands/GetSavingsPlansUtilizationCommand.js +2 -3
- package/{dist/es → dist-es}/commands/GetSavingsPlansUtilizationDetailsCommand.js +2 -3
- package/{dist/es → dist-es}/commands/GetTagsCommand.js +2 -3
- package/{dist/es → dist-es}/commands/GetUsageForecastCommand.js +2 -3
- package/{dist/es → dist-es}/commands/ListCostCategoryDefinitionsCommand.js +2 -3
- package/{dist/es → dist-es}/commands/ProvideAnomalyFeedbackCommand.js +2 -3
- package/{dist/es → dist-es}/commands/UpdateAnomalyMonitorCommand.js +2 -3
- package/{dist/es → dist-es}/commands/UpdateAnomalySubscriptionCommand.js +2 -3
- package/{dist/es → dist-es}/commands/UpdateCostCategoryDefinitionCommand.js +2 -3
- package/{dist/es → dist-es}/endpoints.js +1 -2
- package/{dist/types/index.d.ts → dist-es/index.js} +0 -0
- package/{dist/types/models/index.d.ts → dist-es/models/index.js} +0 -0
- package/{dist/es → dist-es}/models/models_0.js +0 -1
- package/{dist/es → dist-es}/pagination/GetSavingsPlansCoveragePaginator.js +1 -2
- package/{dist/es → dist-es}/pagination/GetSavingsPlansUtilizationDetailsPaginator.js +1 -2
- package/dist-es/pagination/Interfaces.js +1 -0
- package/{dist/es → dist-es}/pagination/ListCostCategoryDefinitionsPaginator.js +1 -2
- package/{dist/es → dist-es}/protocols/Aws_json1_1.js +0 -1
- package/{dist/es → dist-es}/runtimeConfig.browser.js +1 -2
- package/{dist/es → dist-es}/runtimeConfig.js +1 -2
- package/{dist/es → dist-es}/runtimeConfig.native.js +0 -1
- package/{dist/es → dist-es}/runtimeConfig.shared.js +1 -2
- package/{dist/types → dist-types}/CostExplorer.d.ts +2 -2
- package/{dist/types → dist-types}/CostExplorerClient.d.ts +8 -8
- package/{dist/types → dist-types}/commands/CreateAnomalyMonitorCommand.d.ts +2 -2
- package/{dist/types → dist-types}/commands/CreateAnomalySubscriptionCommand.d.ts +2 -2
- package/{dist/types → dist-types}/commands/CreateCostCategoryDefinitionCommand.d.ts +2 -2
- package/{dist/types → dist-types}/commands/DeleteAnomalyMonitorCommand.d.ts +2 -2
- package/{dist/types → dist-types}/commands/DeleteAnomalySubscriptionCommand.d.ts +2 -2
- package/{dist/types → dist-types}/commands/DeleteCostCategoryDefinitionCommand.d.ts +2 -2
- package/{dist/types → dist-types}/commands/DescribeCostCategoryDefinitionCommand.d.ts +2 -2
- package/{dist/types → dist-types}/commands/GetAnomaliesCommand.d.ts +2 -2
- package/{dist/types → dist-types}/commands/GetAnomalyMonitorsCommand.d.ts +2 -2
- package/{dist/types → dist-types}/commands/GetAnomalySubscriptionsCommand.d.ts +2 -2
- package/{dist/types → dist-types}/commands/GetCostAndUsageCommand.d.ts +2 -2
- package/{dist/types → dist-types}/commands/GetCostAndUsageWithResourcesCommand.d.ts +2 -2
- package/{dist/types → dist-types}/commands/GetCostCategoriesCommand.d.ts +2 -2
- package/{dist/types → dist-types}/commands/GetCostForecastCommand.d.ts +2 -2
- package/{dist/types → dist-types}/commands/GetDimensionValuesCommand.d.ts +2 -2
- package/{dist/types → dist-types}/commands/GetReservationCoverageCommand.d.ts +2 -2
- package/{dist/types → dist-types}/commands/GetReservationPurchaseRecommendationCommand.d.ts +2 -2
- package/{dist/types → dist-types}/commands/GetReservationUtilizationCommand.d.ts +2 -2
- package/{dist/types → dist-types}/commands/GetRightsizingRecommendationCommand.d.ts +2 -2
- package/{dist/types → dist-types}/commands/GetSavingsPlansCoverageCommand.d.ts +2 -2
- package/{dist/types → dist-types}/commands/GetSavingsPlansPurchaseRecommendationCommand.d.ts +2 -2
- package/{dist/types → dist-types}/commands/GetSavingsPlansUtilizationCommand.d.ts +2 -2
- package/{dist/types → dist-types}/commands/GetSavingsPlansUtilizationDetailsCommand.d.ts +2 -2
- package/{dist/types → dist-types}/commands/GetTagsCommand.d.ts +2 -2
- package/{dist/types → dist-types}/commands/GetUsageForecastCommand.d.ts +2 -2
- package/{dist/types → dist-types}/commands/ListCostCategoryDefinitionsCommand.d.ts +2 -2
- package/{dist/types → dist-types}/commands/ProvideAnomalyFeedbackCommand.d.ts +2 -2
- package/{dist/types → dist-types}/commands/UpdateAnomalyMonitorCommand.d.ts +2 -2
- package/{dist/types → dist-types}/commands/UpdateAnomalySubscriptionCommand.d.ts +2 -2
- package/{dist/types → dist-types}/commands/UpdateCostCategoryDefinitionCommand.d.ts +2 -2
- package/{dist/types → dist-types}/endpoints.d.ts +0 -0
- package/{index.ts → dist-types/index.d.ts} +0 -0
- package/{models/index.ts → dist-types/models/index.d.ts} +0 -0
- package/{dist/types → dist-types}/models/models_0.d.ts +0 -0
- package/{dist/types → dist-types}/pagination/GetSavingsPlansCoveragePaginator.d.ts +1 -1
- package/{dist/types → dist-types}/pagination/GetSavingsPlansUtilizationDetailsPaginator.d.ts +1 -1
- package/{dist/types → dist-types}/pagination/Interfaces.d.ts +1 -1
- package/{dist/types → dist-types}/pagination/ListCostCategoryDefinitionsPaginator.d.ts +1 -1
- package/{dist/types → dist-types}/protocols/Aws_json1_1.d.ts +2 -2
- package/{dist/types → dist-types}/runtimeConfig.browser.d.ts +0 -0
- package/{dist/types → dist-types}/runtimeConfig.d.ts +1 -1
- package/{dist/types → dist-types}/runtimeConfig.native.d.ts +0 -0
- package/{dist/types → dist-types}/runtimeConfig.shared.d.ts +0 -0
- package/{dist/types → dist-types}/ts3.4/CostExplorer.d.ts +33 -224
- package/{dist/types → dist-types}/ts3.4/CostExplorerClient.d.ts +32 -112
- package/dist-types/ts3.4/commands/CreateAnomalyMonitorCommand.d.ts +17 -0
- package/dist-types/ts3.4/commands/CreateAnomalySubscriptionCommand.d.ts +17 -0
- package/{dist/types → dist-types}/ts3.4/commands/CreateCostCategoryDefinitionCommand.d.ts +4 -22
- package/{dist/types → dist-types}/ts3.4/commands/DeleteAnomalyMonitorCommand.d.ts +4 -22
- package/{dist/types → dist-types}/ts3.4/commands/DeleteAnomalySubscriptionCommand.d.ts +4 -22
- package/{dist/types → dist-types}/ts3.4/commands/DeleteCostCategoryDefinitionCommand.d.ts +4 -22
- package/dist-types/ts3.4/commands/DescribeCostCategoryDefinitionCommand.d.ts +17 -0
- package/dist-types/ts3.4/commands/GetAnomaliesCommand.d.ts +17 -0
- package/dist-types/ts3.4/commands/GetAnomalyMonitorsCommand.d.ts +17 -0
- package/dist-types/ts3.4/commands/GetAnomalySubscriptionsCommand.d.ts +17 -0
- package/dist-types/ts3.4/commands/GetCostAndUsageCommand.d.ts +17 -0
- package/dist-types/ts3.4/commands/GetCostAndUsageWithResourcesCommand.d.ts +17 -0
- package/dist-types/ts3.4/commands/GetCostCategoriesCommand.d.ts +17 -0
- package/dist-types/ts3.4/commands/GetCostForecastCommand.d.ts +17 -0
- package/dist-types/ts3.4/commands/GetDimensionValuesCommand.d.ts +17 -0
- package/dist-types/ts3.4/commands/GetReservationCoverageCommand.d.ts +17 -0
- package/dist-types/ts3.4/commands/GetReservationPurchaseRecommendationCommand.d.ts +17 -0
- package/dist-types/ts3.4/commands/GetReservationUtilizationCommand.d.ts +17 -0
- package/dist-types/ts3.4/commands/GetRightsizingRecommendationCommand.d.ts +17 -0
- package/dist-types/ts3.4/commands/GetSavingsPlansCoverageCommand.d.ts +17 -0
- package/{dist/types → dist-types}/ts3.4/commands/GetSavingsPlansPurchaseRecommendationCommand.d.ts +4 -22
- package/dist-types/ts3.4/commands/GetSavingsPlansUtilizationCommand.d.ts +17 -0
- package/dist-types/ts3.4/commands/GetSavingsPlansUtilizationDetailsCommand.d.ts +17 -0
- package/dist-types/ts3.4/commands/GetTagsCommand.d.ts +17 -0
- package/dist-types/ts3.4/commands/GetUsageForecastCommand.d.ts +17 -0
- package/dist-types/ts3.4/commands/ListCostCategoryDefinitionsCommand.d.ts +17 -0
- package/{dist/types → dist-types}/ts3.4/commands/ProvideAnomalyFeedbackCommand.d.ts +4 -22
- package/dist-types/ts3.4/commands/UpdateAnomalyMonitorCommand.d.ts +17 -0
- package/{dist/types → dist-types}/ts3.4/commands/UpdateAnomalySubscriptionCommand.d.ts +4 -22
- package/dist-types/ts3.4/commands/UpdateCostCategoryDefinitionCommand.d.ts +17 -0
- package/{dist/types → dist-types}/ts3.4/endpoints.d.ts +0 -0
- package/{dist/types → dist-types}/ts3.4/index.d.ts +0 -0
- package/{dist/types → dist-types}/ts3.4/models/index.d.ts +0 -0
- package/dist-types/ts3.4/models/models_0.d.ts +2345 -0
- package/{dist/types → dist-types}/ts3.4/pagination/GetSavingsPlansCoveragePaginator.d.ts +1 -1
- package/{dist/types → dist-types}/ts3.4/pagination/GetSavingsPlansUtilizationDetailsPaginator.d.ts +1 -1
- package/{dist/types → dist-types}/ts3.4/pagination/Interfaces.d.ts +1 -1
- package/{dist/types → dist-types}/ts3.4/pagination/ListCostCategoryDefinitionsPaginator.d.ts +1 -1
- package/{dist/types → dist-types}/ts3.4/protocols/Aws_json1_1.d.ts +2 -2
- package/{dist/types → dist-types}/ts3.4/runtimeConfig.browser.d.ts +1 -3
- package/{dist/types → dist-types}/ts3.4/runtimeConfig.d.ts +2 -4
- package/{dist/types → dist-types}/ts3.4/runtimeConfig.native.d.ts +1 -3
- package/{dist/types → dist-types}/ts3.4/runtimeConfig.shared.d.ts +1 -3
- package/package.json +45 -42
- package/CostExplorer.ts +0 -1235
- package/CostExplorerClient.ts +0 -406
- package/commands/CreateAnomalyMonitorCommand.ts +0 -95
- package/commands/CreateAnomalySubscriptionCommand.ts +0 -99
- package/commands/CreateCostCategoryDefinitionCommand.ts +0 -99
- package/commands/DeleteAnomalyMonitorCommand.ts +0 -94
- package/commands/DeleteAnomalySubscriptionCommand.ts +0 -97
- package/commands/DeleteCostCategoryDefinitionCommand.ts +0 -99
- package/commands/DescribeCostCategoryDefinitionCommand.ts +0 -103
- package/commands/GetAnomaliesCommand.ts +0 -95
- package/commands/GetAnomalyMonitorsCommand.ts +0 -95
- package/commands/GetAnomalySubscriptionsCommand.ts +0 -95
- package/commands/GetCostAndUsageCommand.ts +0 -99
- package/commands/GetCostAndUsageWithResourcesCommand.ts +0 -106
- package/commands/GetCostCategoriesCommand.ts +0 -97
- package/commands/GetCostForecastCommand.ts +0 -94
- package/commands/GetDimensionValuesCommand.ts +0 -94
- package/commands/GetReservationCoverageCommand.ts +0 -135
- package/commands/GetReservationPurchaseRecommendationCommand.ts +0 -114
- package/commands/GetReservationUtilizationCommand.ts +0 -99
- package/commands/GetRightsizingRecommendationCommand.ts +0 -108
- package/commands/GetSavingsPlansCoverageCommand.ts +0 -117
- package/commands/GetSavingsPlansPurchaseRecommendationCommand.ts +0 -106
- package/commands/GetSavingsPlansUtilizationCommand.ts +0 -100
- package/commands/GetSavingsPlansUtilizationDetailsCommand.ts +0 -109
- package/commands/GetTagsCommand.ts +0 -91
- package/commands/GetUsageForecastCommand.ts +0 -94
- package/commands/ListCostCategoryDefinitionsCommand.ts +0 -99
- package/commands/ProvideAnomalyFeedbackCommand.ts +0 -94
- package/commands/UpdateAnomalyMonitorCommand.ts +0 -95
- package/commands/UpdateAnomalySubscriptionCommand.ts +0 -97
- package/commands/UpdateCostCategoryDefinitionCommand.ts +0 -99
- package/dist/cjs/CostExplorer.js.map +0 -1
- package/dist/cjs/CostExplorerClient.js +0 -59
- package/dist/cjs/CostExplorerClient.js.map +0 -1
- package/dist/cjs/commands/CreateAnomalyMonitorCommand.js.map +0 -1
- package/dist/cjs/commands/CreateAnomalySubscriptionCommand.js.map +0 -1
- package/dist/cjs/commands/CreateCostCategoryDefinitionCommand.js.map +0 -1
- package/dist/cjs/commands/DeleteAnomalyMonitorCommand.js.map +0 -1
- package/dist/cjs/commands/DeleteAnomalySubscriptionCommand.js.map +0 -1
- package/dist/cjs/commands/DeleteCostCategoryDefinitionCommand.js.map +0 -1
- package/dist/cjs/commands/DescribeCostCategoryDefinitionCommand.js.map +0 -1
- package/dist/cjs/commands/GetAnomaliesCommand.js.map +0 -1
- package/dist/cjs/commands/GetAnomalyMonitorsCommand.js.map +0 -1
- package/dist/cjs/commands/GetAnomalySubscriptionsCommand.js.map +0 -1
- package/dist/cjs/commands/GetCostAndUsageCommand.js +0 -66
- package/dist/cjs/commands/GetCostAndUsageCommand.js.map +0 -1
- package/dist/cjs/commands/GetCostAndUsageWithResourcesCommand.js +0 -68
- package/dist/cjs/commands/GetCostAndUsageWithResourcesCommand.js.map +0 -1
- package/dist/cjs/commands/GetCostCategoriesCommand.js.map +0 -1
- package/dist/cjs/commands/GetCostForecastCommand.js.map +0 -1
- package/dist/cjs/commands/GetDimensionValuesCommand.js.map +0 -1
- package/dist/cjs/commands/GetReservationCoverageCommand.js +0 -102
- package/dist/cjs/commands/GetReservationCoverageCommand.js.map +0 -1
- package/dist/cjs/commands/GetReservationPurchaseRecommendationCommand.js +0 -70
- package/dist/cjs/commands/GetReservationPurchaseRecommendationCommand.js.map +0 -1
- package/dist/cjs/commands/GetReservationUtilizationCommand.js.map +0 -1
- package/dist/cjs/commands/GetRightsizingRecommendationCommand.js.map +0 -1
- package/dist/cjs/commands/GetSavingsPlansCoverageCommand.js +0 -84
- package/dist/cjs/commands/GetSavingsPlansCoverageCommand.js.map +0 -1
- package/dist/cjs/commands/GetSavingsPlansPurchaseRecommendationCommand.js.map +0 -1
- package/dist/cjs/commands/GetSavingsPlansUtilizationCommand.js.map +0 -1
- package/dist/cjs/commands/GetSavingsPlansUtilizationDetailsCommand.js.map +0 -1
- package/dist/cjs/commands/GetTagsCommand.js.map +0 -1
- package/dist/cjs/commands/GetUsageForecastCommand.js.map +0 -1
- package/dist/cjs/commands/ListCostCategoryDefinitionsCommand.js.map +0 -1
- package/dist/cjs/commands/ProvideAnomalyFeedbackCommand.js.map +0 -1
- package/dist/cjs/commands/UpdateAnomalyMonitorCommand.js.map +0 -1
- package/dist/cjs/commands/UpdateAnomalySubscriptionCommand.js.map +0 -1
- package/dist/cjs/commands/UpdateCostCategoryDefinitionCommand.js.map +0 -1
- package/dist/cjs/endpoints.js.map +0 -1
- package/dist/cjs/index.js.map +0 -1
- package/dist/cjs/models/index.js.map +0 -1
- package/dist/cjs/models/models_0.js.map +0 -1
- package/dist/cjs/package.json +0 -91
- package/dist/cjs/pagination/GetSavingsPlansCoveragePaginator.js.map +0 -1
- package/dist/cjs/pagination/GetSavingsPlansUtilizationDetailsPaginator.js.map +0 -1
- package/dist/cjs/pagination/Interfaces.js.map +0 -1
- package/dist/cjs/pagination/ListCostCategoryDefinitionsPaginator.js.map +0 -1
- package/dist/cjs/protocols/Aws_json1_1.js.map +0 -1
- package/dist/cjs/runtimeConfig.browser.js.map +0 -1
- package/dist/cjs/runtimeConfig.js.map +0 -1
- package/dist/cjs/runtimeConfig.native.js.map +0 -1
- package/dist/cjs/runtimeConfig.shared.js.map +0 -1
- package/dist/es/CostExplorer.js.map +0 -1
- package/dist/es/CostExplorerClient.js.map +0 -1
- package/dist/es/commands/CreateAnomalyMonitorCommand.js.map +0 -1
- package/dist/es/commands/CreateAnomalySubscriptionCommand.js.map +0 -1
- package/dist/es/commands/CreateCostCategoryDefinitionCommand.js.map +0 -1
- package/dist/es/commands/DeleteAnomalyMonitorCommand.js.map +0 -1
- package/dist/es/commands/DeleteAnomalySubscriptionCommand.js.map +0 -1
- package/dist/es/commands/DeleteCostCategoryDefinitionCommand.js.map +0 -1
- package/dist/es/commands/DescribeCostCategoryDefinitionCommand.js.map +0 -1
- package/dist/es/commands/GetAnomaliesCommand.js.map +0 -1
- package/dist/es/commands/GetAnomalyMonitorsCommand.js.map +0 -1
- package/dist/es/commands/GetAnomalySubscriptionsCommand.js.map +0 -1
- package/dist/es/commands/GetCostAndUsageCommand.js.map +0 -1
- package/dist/es/commands/GetCostAndUsageWithResourcesCommand.js.map +0 -1
- package/dist/es/commands/GetCostCategoriesCommand.js.map +0 -1
- package/dist/es/commands/GetCostForecastCommand.js.map +0 -1
- package/dist/es/commands/GetDimensionValuesCommand.js.map +0 -1
- package/dist/es/commands/GetReservationCoverageCommand.js.map +0 -1
- package/dist/es/commands/GetReservationPurchaseRecommendationCommand.js.map +0 -1
- package/dist/es/commands/GetReservationUtilizationCommand.js.map +0 -1
- package/dist/es/commands/GetRightsizingRecommendationCommand.js.map +0 -1
- package/dist/es/commands/GetSavingsPlansCoverageCommand.js.map +0 -1
- package/dist/es/commands/GetSavingsPlansPurchaseRecommendationCommand.js.map +0 -1
- package/dist/es/commands/GetSavingsPlansUtilizationCommand.js.map +0 -1
- package/dist/es/commands/GetSavingsPlansUtilizationDetailsCommand.js.map +0 -1
- package/dist/es/commands/GetTagsCommand.js.map +0 -1
- package/dist/es/commands/GetUsageForecastCommand.js.map +0 -1
- package/dist/es/commands/ListCostCategoryDefinitionsCommand.js.map +0 -1
- package/dist/es/commands/ProvideAnomalyFeedbackCommand.js.map +0 -1
- package/dist/es/commands/UpdateAnomalyMonitorCommand.js.map +0 -1
- package/dist/es/commands/UpdateAnomalySubscriptionCommand.js.map +0 -1
- package/dist/es/commands/UpdateCostCategoryDefinitionCommand.js.map +0 -1
- package/dist/es/endpoints.js.map +0 -1
- package/dist/es/index.js +0 -38
- package/dist/es/index.js.map +0 -1
- package/dist/es/models/index.js +0 -2
- package/dist/es/models/index.js.map +0 -1
- package/dist/es/models/models_0.js.map +0 -1
- package/dist/es/package.json +0 -91
- package/dist/es/pagination/GetSavingsPlansCoveragePaginator.js.map +0 -1
- package/dist/es/pagination/GetSavingsPlansUtilizationDetailsPaginator.js.map +0 -1
- package/dist/es/pagination/Interfaces.js +0 -2
- package/dist/es/pagination/Interfaces.js.map +0 -1
- package/dist/es/pagination/ListCostCategoryDefinitionsPaginator.js.map +0 -1
- package/dist/es/protocols/Aws_json1_1.js.map +0 -1
- package/dist/es/runtimeConfig.browser.js.map +0 -1
- package/dist/es/runtimeConfig.js.map +0 -1
- package/dist/es/runtimeConfig.native.js.map +0 -1
- package/dist/es/runtimeConfig.shared.js.map +0 -1
- package/dist/types/ts3.4/commands/CreateAnomalyMonitorCommand.d.ts +0 -36
- package/dist/types/ts3.4/commands/CreateAnomalySubscriptionCommand.d.ts +0 -37
- package/dist/types/ts3.4/commands/DescribeCostCategoryDefinitionCommand.d.ts +0 -36
- package/dist/types/ts3.4/commands/GetAnomaliesCommand.d.ts +0 -36
- package/dist/types/ts3.4/commands/GetAnomalyMonitorsCommand.d.ts +0 -36
- package/dist/types/ts3.4/commands/GetAnomalySubscriptionsCommand.d.ts +0 -36
- package/dist/types/ts3.4/commands/GetCostAndUsageCommand.d.ts +0 -40
- package/dist/types/ts3.4/commands/GetCostAndUsageWithResourcesCommand.d.ts +0 -42
- package/dist/types/ts3.4/commands/GetCostCategoriesCommand.d.ts +0 -38
- package/dist/types/ts3.4/commands/GetCostForecastCommand.d.ts +0 -35
- package/dist/types/ts3.4/commands/GetDimensionValuesCommand.d.ts +0 -35
- package/dist/types/ts3.4/commands/GetReservationCoverageCommand.d.ts +0 -76
- package/dist/types/ts3.4/commands/GetReservationPurchaseRecommendationCommand.d.ts +0 -44
- package/dist/types/ts3.4/commands/GetReservationUtilizationCommand.d.ts +0 -37
- package/dist/types/ts3.4/commands/GetRightsizingRecommendationCommand.d.ts +0 -44
- package/dist/types/ts3.4/commands/GetSavingsPlansCoverageCommand.d.ts +0 -58
- package/dist/types/ts3.4/commands/GetSavingsPlansUtilizationCommand.d.ts +0 -38
- package/dist/types/ts3.4/commands/GetSavingsPlansUtilizationDetailsCommand.d.ts +0 -39
- package/dist/types/ts3.4/commands/GetTagsCommand.d.ts +0 -35
- package/dist/types/ts3.4/commands/GetUsageForecastCommand.d.ts +0 -35
- package/dist/types/ts3.4/commands/ListCostCategoryDefinitionsCommand.d.ts +0 -35
- package/dist/types/ts3.4/commands/UpdateAnomalyMonitorCommand.d.ts +0 -36
- package/dist/types/ts3.4/commands/UpdateCostCategoryDefinitionCommand.d.ts +0 -35
- package/dist/types/ts3.4/models/models_0.d.ts +0 -5807
- package/endpoints.ts +0 -67
- package/jest.config.js +0 -4
- package/models/models_0.ts +0 -6842
- package/pagination/GetSavingsPlansCoveragePaginator.ts +0 -58
- package/pagination/GetSavingsPlansUtilizationDetailsPaginator.ts +0 -58
- package/pagination/Interfaces.ts +0 -7
- package/pagination/ListCostCategoryDefinitionsPaginator.ts +0 -58
- package/protocols/Aws_json1_1.ts +0 -5865
- package/runtimeConfig.browser.ts +0 -40
- package/runtimeConfig.native.ts +0 -16
- package/runtimeConfig.shared.ts +0 -16
- package/runtimeConfig.ts +0 -45
- package/tsconfig.es.json +0 -10
- package/tsconfig.json +0 -31
- package/tsconfig.types.json +0 -8
|
@@ -1,135 +0,0 @@
|
|
|
1
|
-
import { CostExplorerClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes } from "../CostExplorerClient";
|
|
2
|
-
import { GetReservationCoverageRequest, GetReservationCoverageResponse } from "../models/models_0";
|
|
3
|
-
import {
|
|
4
|
-
deserializeAws_json1_1GetReservationCoverageCommand,
|
|
5
|
-
serializeAws_json1_1GetReservationCoverageCommand,
|
|
6
|
-
} from "../protocols/Aws_json1_1";
|
|
7
|
-
import { getSerdePlugin } from "@aws-sdk/middleware-serde";
|
|
8
|
-
import { HttpRequest as __HttpRequest, HttpResponse as __HttpResponse } from "@aws-sdk/protocol-http";
|
|
9
|
-
import { Command as $Command } from "@aws-sdk/smithy-client";
|
|
10
|
-
import {
|
|
11
|
-
FinalizeHandlerArguments,
|
|
12
|
-
Handler,
|
|
13
|
-
HandlerExecutionContext,
|
|
14
|
-
MiddlewareStack,
|
|
15
|
-
HttpHandlerOptions as __HttpHandlerOptions,
|
|
16
|
-
MetadataBearer as __MetadataBearer,
|
|
17
|
-
SerdeContext as __SerdeContext,
|
|
18
|
-
} from "@aws-sdk/types";
|
|
19
|
-
|
|
20
|
-
export interface GetReservationCoverageCommandInput extends GetReservationCoverageRequest {}
|
|
21
|
-
export interface GetReservationCoverageCommandOutput extends GetReservationCoverageResponse, __MetadataBearer {}
|
|
22
|
-
|
|
23
|
-
/**
|
|
24
|
-
* <p>Retrieves the reservation coverage for your account. This enables you to see how much of your Amazon Elastic Compute Cloud, Amazon ElastiCache, Amazon Relational Database Service, or
|
|
25
|
-
* Amazon Redshift usage is covered by a reservation. An organization's management account can see the coverage of the associated member accounts. This supports dimensions, Cost Categories, and nested expressions.
|
|
26
|
-
* For any time period, you can filter data about reservation usage by the following dimensions:</p>
|
|
27
|
-
* <ul>
|
|
28
|
-
* <li>
|
|
29
|
-
* <p>AZ</p>
|
|
30
|
-
* </li>
|
|
31
|
-
* <li>
|
|
32
|
-
* <p>CACHE_ENGINE</p>
|
|
33
|
-
* </li>
|
|
34
|
-
* <li>
|
|
35
|
-
* <p>DATABASE_ENGINE</p>
|
|
36
|
-
* </li>
|
|
37
|
-
* <li>
|
|
38
|
-
* <p>DEPLOYMENT_OPTION</p>
|
|
39
|
-
* </li>
|
|
40
|
-
* <li>
|
|
41
|
-
* <p>INSTANCE_TYPE</p>
|
|
42
|
-
* </li>
|
|
43
|
-
* <li>
|
|
44
|
-
* <p>LINKED_ACCOUNT</p>
|
|
45
|
-
* </li>
|
|
46
|
-
* <li>
|
|
47
|
-
* <p>OPERATING_SYSTEM</p>
|
|
48
|
-
* </li>
|
|
49
|
-
* <li>
|
|
50
|
-
* <p>PLATFORM</p>
|
|
51
|
-
* </li>
|
|
52
|
-
* <li>
|
|
53
|
-
* <p>REGION</p>
|
|
54
|
-
* </li>
|
|
55
|
-
* <li>
|
|
56
|
-
* <p>SERVICE</p>
|
|
57
|
-
* </li>
|
|
58
|
-
* <li>
|
|
59
|
-
* <p>TAG</p>
|
|
60
|
-
* </li>
|
|
61
|
-
* <li>
|
|
62
|
-
* <p>TENANCY</p>
|
|
63
|
-
* </li>
|
|
64
|
-
* </ul>
|
|
65
|
-
* <p>To determine valid values for a dimension, use the <code>GetDimensionValues</code> operation. </p>
|
|
66
|
-
* @example
|
|
67
|
-
* Use a bare-bones client and the command you need to make an API call.
|
|
68
|
-
* ```javascript
|
|
69
|
-
* import { CostExplorerClient, GetReservationCoverageCommand } from "@aws-sdk/client-cost-explorer"; // ES Modules import
|
|
70
|
-
* // const { CostExplorerClient, GetReservationCoverageCommand } = require("@aws-sdk/client-cost-explorer"); // CommonJS import
|
|
71
|
-
* const client = new CostExplorerClient(config);
|
|
72
|
-
* const command = new GetReservationCoverageCommand(input);
|
|
73
|
-
* const response = await client.send(command);
|
|
74
|
-
* ```
|
|
75
|
-
*
|
|
76
|
-
* @see {@link GetReservationCoverageCommandInput} for command's `input` shape.
|
|
77
|
-
* @see {@link GetReservationCoverageCommandOutput} for command's `response` shape.
|
|
78
|
-
* @see {@link CostExplorerClientResolvedConfig | config} for command's `input` shape.
|
|
79
|
-
*
|
|
80
|
-
*/
|
|
81
|
-
export class GetReservationCoverageCommand extends $Command<
|
|
82
|
-
GetReservationCoverageCommandInput,
|
|
83
|
-
GetReservationCoverageCommandOutput,
|
|
84
|
-
CostExplorerClientResolvedConfig
|
|
85
|
-
> {
|
|
86
|
-
// Start section: command_properties
|
|
87
|
-
// End section: command_properties
|
|
88
|
-
|
|
89
|
-
constructor(readonly input: GetReservationCoverageCommandInput) {
|
|
90
|
-
// Start section: command_constructor
|
|
91
|
-
super();
|
|
92
|
-
// End section: command_constructor
|
|
93
|
-
}
|
|
94
|
-
|
|
95
|
-
/**
|
|
96
|
-
* @internal
|
|
97
|
-
*/
|
|
98
|
-
resolveMiddleware(
|
|
99
|
-
clientStack: MiddlewareStack<ServiceInputTypes, ServiceOutputTypes>,
|
|
100
|
-
configuration: CostExplorerClientResolvedConfig,
|
|
101
|
-
options?: __HttpHandlerOptions
|
|
102
|
-
): Handler<GetReservationCoverageCommandInput, GetReservationCoverageCommandOutput> {
|
|
103
|
-
this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize));
|
|
104
|
-
|
|
105
|
-
const stack = clientStack.concat(this.middlewareStack);
|
|
106
|
-
|
|
107
|
-
const { logger } = configuration;
|
|
108
|
-
const clientName = "CostExplorerClient";
|
|
109
|
-
const commandName = "GetReservationCoverageCommand";
|
|
110
|
-
const handlerExecutionContext: HandlerExecutionContext = {
|
|
111
|
-
logger,
|
|
112
|
-
clientName,
|
|
113
|
-
commandName,
|
|
114
|
-
inputFilterSensitiveLog: GetReservationCoverageRequest.filterSensitiveLog,
|
|
115
|
-
outputFilterSensitiveLog: GetReservationCoverageResponse.filterSensitiveLog,
|
|
116
|
-
};
|
|
117
|
-
const { requestHandler } = configuration;
|
|
118
|
-
return stack.resolve(
|
|
119
|
-
(request: FinalizeHandlerArguments<any>) =>
|
|
120
|
-
requestHandler.handle(request.request as __HttpRequest, options || {}),
|
|
121
|
-
handlerExecutionContext
|
|
122
|
-
);
|
|
123
|
-
}
|
|
124
|
-
|
|
125
|
-
private serialize(input: GetReservationCoverageCommandInput, context: __SerdeContext): Promise<__HttpRequest> {
|
|
126
|
-
return serializeAws_json1_1GetReservationCoverageCommand(input, context);
|
|
127
|
-
}
|
|
128
|
-
|
|
129
|
-
private deserialize(output: __HttpResponse, context: __SerdeContext): Promise<GetReservationCoverageCommandOutput> {
|
|
130
|
-
return deserializeAws_json1_1GetReservationCoverageCommand(output, context);
|
|
131
|
-
}
|
|
132
|
-
|
|
133
|
-
// Start section: command_body_extra
|
|
134
|
-
// End section: command_body_extra
|
|
135
|
-
}
|
|
@@ -1,114 +0,0 @@
|
|
|
1
|
-
import { CostExplorerClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes } from "../CostExplorerClient";
|
|
2
|
-
import {
|
|
3
|
-
GetReservationPurchaseRecommendationRequest,
|
|
4
|
-
GetReservationPurchaseRecommendationResponse,
|
|
5
|
-
} from "../models/models_0";
|
|
6
|
-
import {
|
|
7
|
-
deserializeAws_json1_1GetReservationPurchaseRecommendationCommand,
|
|
8
|
-
serializeAws_json1_1GetReservationPurchaseRecommendationCommand,
|
|
9
|
-
} from "../protocols/Aws_json1_1";
|
|
10
|
-
import { getSerdePlugin } from "@aws-sdk/middleware-serde";
|
|
11
|
-
import { HttpRequest as __HttpRequest, HttpResponse as __HttpResponse } from "@aws-sdk/protocol-http";
|
|
12
|
-
import { Command as $Command } from "@aws-sdk/smithy-client";
|
|
13
|
-
import {
|
|
14
|
-
FinalizeHandlerArguments,
|
|
15
|
-
Handler,
|
|
16
|
-
HandlerExecutionContext,
|
|
17
|
-
MiddlewareStack,
|
|
18
|
-
HttpHandlerOptions as __HttpHandlerOptions,
|
|
19
|
-
MetadataBearer as __MetadataBearer,
|
|
20
|
-
SerdeContext as __SerdeContext,
|
|
21
|
-
} from "@aws-sdk/types";
|
|
22
|
-
|
|
23
|
-
export interface GetReservationPurchaseRecommendationCommandInput extends GetReservationPurchaseRecommendationRequest {}
|
|
24
|
-
export interface GetReservationPurchaseRecommendationCommandOutput
|
|
25
|
-
extends GetReservationPurchaseRecommendationResponse,
|
|
26
|
-
__MetadataBearer {}
|
|
27
|
-
|
|
28
|
-
/**
|
|
29
|
-
* <p>Gets recommendations for which reservations to purchase. These recommendations could help you reduce your costs.
|
|
30
|
-
* Reservations provide a discounted hourly rate (up to 75%) compared to On-Demand pricing.</p>
|
|
31
|
-
* <p>Amazon Web Services generates your recommendations by identifying your On-Demand usage during a specific time period and collecting your usage
|
|
32
|
-
* into categories that are eligible for a reservation. After Amazon Web Services has these categories, it simulates every combination of reservations
|
|
33
|
-
* in each category of usage to identify the best number of each type of RI to purchase to maximize your estimated savings. </p>
|
|
34
|
-
* <p>For example, Amazon Web Services automatically aggregates your Amazon EC2 Linux, shared tenancy, and c4 family usage in the US West (Oregon) Region
|
|
35
|
-
* and recommends that you buy size-flexible regional reservations to apply to the c4 family usage. Amazon Web Services recommends the smallest size instance
|
|
36
|
-
* in an instance family. This makes it easier to purchase a size-flexible RI. Amazon Web Services also shows the equal number of normalized units
|
|
37
|
-
* so that you can purchase any instance size that you want. For this example, your RI recommendation would be for <code>c4.large</code>
|
|
38
|
-
* because that is the smallest size instance in the c4 instance family.</p>
|
|
39
|
-
* @example
|
|
40
|
-
* Use a bare-bones client and the command you need to make an API call.
|
|
41
|
-
* ```javascript
|
|
42
|
-
* import { CostExplorerClient, GetReservationPurchaseRecommendationCommand } from "@aws-sdk/client-cost-explorer"; // ES Modules import
|
|
43
|
-
* // const { CostExplorerClient, GetReservationPurchaseRecommendationCommand } = require("@aws-sdk/client-cost-explorer"); // CommonJS import
|
|
44
|
-
* const client = new CostExplorerClient(config);
|
|
45
|
-
* const command = new GetReservationPurchaseRecommendationCommand(input);
|
|
46
|
-
* const response = await client.send(command);
|
|
47
|
-
* ```
|
|
48
|
-
*
|
|
49
|
-
* @see {@link GetReservationPurchaseRecommendationCommandInput} for command's `input` shape.
|
|
50
|
-
* @see {@link GetReservationPurchaseRecommendationCommandOutput} for command's `response` shape.
|
|
51
|
-
* @see {@link CostExplorerClientResolvedConfig | config} for command's `input` shape.
|
|
52
|
-
*
|
|
53
|
-
*/
|
|
54
|
-
export class GetReservationPurchaseRecommendationCommand extends $Command<
|
|
55
|
-
GetReservationPurchaseRecommendationCommandInput,
|
|
56
|
-
GetReservationPurchaseRecommendationCommandOutput,
|
|
57
|
-
CostExplorerClientResolvedConfig
|
|
58
|
-
> {
|
|
59
|
-
// Start section: command_properties
|
|
60
|
-
// End section: command_properties
|
|
61
|
-
|
|
62
|
-
constructor(readonly input: GetReservationPurchaseRecommendationCommandInput) {
|
|
63
|
-
// Start section: command_constructor
|
|
64
|
-
super();
|
|
65
|
-
// End section: command_constructor
|
|
66
|
-
}
|
|
67
|
-
|
|
68
|
-
/**
|
|
69
|
-
* @internal
|
|
70
|
-
*/
|
|
71
|
-
resolveMiddleware(
|
|
72
|
-
clientStack: MiddlewareStack<ServiceInputTypes, ServiceOutputTypes>,
|
|
73
|
-
configuration: CostExplorerClientResolvedConfig,
|
|
74
|
-
options?: __HttpHandlerOptions
|
|
75
|
-
): Handler<GetReservationPurchaseRecommendationCommandInput, GetReservationPurchaseRecommendationCommandOutput> {
|
|
76
|
-
this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize));
|
|
77
|
-
|
|
78
|
-
const stack = clientStack.concat(this.middlewareStack);
|
|
79
|
-
|
|
80
|
-
const { logger } = configuration;
|
|
81
|
-
const clientName = "CostExplorerClient";
|
|
82
|
-
const commandName = "GetReservationPurchaseRecommendationCommand";
|
|
83
|
-
const handlerExecutionContext: HandlerExecutionContext = {
|
|
84
|
-
logger,
|
|
85
|
-
clientName,
|
|
86
|
-
commandName,
|
|
87
|
-
inputFilterSensitiveLog: GetReservationPurchaseRecommendationRequest.filterSensitiveLog,
|
|
88
|
-
outputFilterSensitiveLog: GetReservationPurchaseRecommendationResponse.filterSensitiveLog,
|
|
89
|
-
};
|
|
90
|
-
const { requestHandler } = configuration;
|
|
91
|
-
return stack.resolve(
|
|
92
|
-
(request: FinalizeHandlerArguments<any>) =>
|
|
93
|
-
requestHandler.handle(request.request as __HttpRequest, options || {}),
|
|
94
|
-
handlerExecutionContext
|
|
95
|
-
);
|
|
96
|
-
}
|
|
97
|
-
|
|
98
|
-
private serialize(
|
|
99
|
-
input: GetReservationPurchaseRecommendationCommandInput,
|
|
100
|
-
context: __SerdeContext
|
|
101
|
-
): Promise<__HttpRequest> {
|
|
102
|
-
return serializeAws_json1_1GetReservationPurchaseRecommendationCommand(input, context);
|
|
103
|
-
}
|
|
104
|
-
|
|
105
|
-
private deserialize(
|
|
106
|
-
output: __HttpResponse,
|
|
107
|
-
context: __SerdeContext
|
|
108
|
-
): Promise<GetReservationPurchaseRecommendationCommandOutput> {
|
|
109
|
-
return deserializeAws_json1_1GetReservationPurchaseRecommendationCommand(output, context);
|
|
110
|
-
}
|
|
111
|
-
|
|
112
|
-
// Start section: command_body_extra
|
|
113
|
-
// End section: command_body_extra
|
|
114
|
-
}
|
|
@@ -1,99 +0,0 @@
|
|
|
1
|
-
import { CostExplorerClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes } from "../CostExplorerClient";
|
|
2
|
-
import { GetReservationUtilizationRequest, GetReservationUtilizationResponse } from "../models/models_0";
|
|
3
|
-
import {
|
|
4
|
-
deserializeAws_json1_1GetReservationUtilizationCommand,
|
|
5
|
-
serializeAws_json1_1GetReservationUtilizationCommand,
|
|
6
|
-
} from "../protocols/Aws_json1_1";
|
|
7
|
-
import { getSerdePlugin } from "@aws-sdk/middleware-serde";
|
|
8
|
-
import { HttpRequest as __HttpRequest, HttpResponse as __HttpResponse } from "@aws-sdk/protocol-http";
|
|
9
|
-
import { Command as $Command } from "@aws-sdk/smithy-client";
|
|
10
|
-
import {
|
|
11
|
-
FinalizeHandlerArguments,
|
|
12
|
-
Handler,
|
|
13
|
-
HandlerExecutionContext,
|
|
14
|
-
MiddlewareStack,
|
|
15
|
-
HttpHandlerOptions as __HttpHandlerOptions,
|
|
16
|
-
MetadataBearer as __MetadataBearer,
|
|
17
|
-
SerdeContext as __SerdeContext,
|
|
18
|
-
} from "@aws-sdk/types";
|
|
19
|
-
|
|
20
|
-
export interface GetReservationUtilizationCommandInput extends GetReservationUtilizationRequest {}
|
|
21
|
-
export interface GetReservationUtilizationCommandOutput extends GetReservationUtilizationResponse, __MetadataBearer {}
|
|
22
|
-
|
|
23
|
-
/**
|
|
24
|
-
* <p>Retrieves the reservation utilization for your account. Management account in an organization have access to member accounts.
|
|
25
|
-
* You can filter data by dimensions in a time period. You can use <code>GetDimensionValues</code> to determine the possible
|
|
26
|
-
* dimension values. Currently, you can group only by <code>SUBSCRIPTION_ID</code>. </p>
|
|
27
|
-
* @example
|
|
28
|
-
* Use a bare-bones client and the command you need to make an API call.
|
|
29
|
-
* ```javascript
|
|
30
|
-
* import { CostExplorerClient, GetReservationUtilizationCommand } from "@aws-sdk/client-cost-explorer"; // ES Modules import
|
|
31
|
-
* // const { CostExplorerClient, GetReservationUtilizationCommand } = require("@aws-sdk/client-cost-explorer"); // CommonJS import
|
|
32
|
-
* const client = new CostExplorerClient(config);
|
|
33
|
-
* const command = new GetReservationUtilizationCommand(input);
|
|
34
|
-
* const response = await client.send(command);
|
|
35
|
-
* ```
|
|
36
|
-
*
|
|
37
|
-
* @see {@link GetReservationUtilizationCommandInput} for command's `input` shape.
|
|
38
|
-
* @see {@link GetReservationUtilizationCommandOutput} for command's `response` shape.
|
|
39
|
-
* @see {@link CostExplorerClientResolvedConfig | config} for command's `input` shape.
|
|
40
|
-
*
|
|
41
|
-
*/
|
|
42
|
-
export class GetReservationUtilizationCommand extends $Command<
|
|
43
|
-
GetReservationUtilizationCommandInput,
|
|
44
|
-
GetReservationUtilizationCommandOutput,
|
|
45
|
-
CostExplorerClientResolvedConfig
|
|
46
|
-
> {
|
|
47
|
-
// Start section: command_properties
|
|
48
|
-
// End section: command_properties
|
|
49
|
-
|
|
50
|
-
constructor(readonly input: GetReservationUtilizationCommandInput) {
|
|
51
|
-
// Start section: command_constructor
|
|
52
|
-
super();
|
|
53
|
-
// End section: command_constructor
|
|
54
|
-
}
|
|
55
|
-
|
|
56
|
-
/**
|
|
57
|
-
* @internal
|
|
58
|
-
*/
|
|
59
|
-
resolveMiddleware(
|
|
60
|
-
clientStack: MiddlewareStack<ServiceInputTypes, ServiceOutputTypes>,
|
|
61
|
-
configuration: CostExplorerClientResolvedConfig,
|
|
62
|
-
options?: __HttpHandlerOptions
|
|
63
|
-
): Handler<GetReservationUtilizationCommandInput, GetReservationUtilizationCommandOutput> {
|
|
64
|
-
this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize));
|
|
65
|
-
|
|
66
|
-
const stack = clientStack.concat(this.middlewareStack);
|
|
67
|
-
|
|
68
|
-
const { logger } = configuration;
|
|
69
|
-
const clientName = "CostExplorerClient";
|
|
70
|
-
const commandName = "GetReservationUtilizationCommand";
|
|
71
|
-
const handlerExecutionContext: HandlerExecutionContext = {
|
|
72
|
-
logger,
|
|
73
|
-
clientName,
|
|
74
|
-
commandName,
|
|
75
|
-
inputFilterSensitiveLog: GetReservationUtilizationRequest.filterSensitiveLog,
|
|
76
|
-
outputFilterSensitiveLog: GetReservationUtilizationResponse.filterSensitiveLog,
|
|
77
|
-
};
|
|
78
|
-
const { requestHandler } = configuration;
|
|
79
|
-
return stack.resolve(
|
|
80
|
-
(request: FinalizeHandlerArguments<any>) =>
|
|
81
|
-
requestHandler.handle(request.request as __HttpRequest, options || {}),
|
|
82
|
-
handlerExecutionContext
|
|
83
|
-
);
|
|
84
|
-
}
|
|
85
|
-
|
|
86
|
-
private serialize(input: GetReservationUtilizationCommandInput, context: __SerdeContext): Promise<__HttpRequest> {
|
|
87
|
-
return serializeAws_json1_1GetReservationUtilizationCommand(input, context);
|
|
88
|
-
}
|
|
89
|
-
|
|
90
|
-
private deserialize(
|
|
91
|
-
output: __HttpResponse,
|
|
92
|
-
context: __SerdeContext
|
|
93
|
-
): Promise<GetReservationUtilizationCommandOutput> {
|
|
94
|
-
return deserializeAws_json1_1GetReservationUtilizationCommand(output, context);
|
|
95
|
-
}
|
|
96
|
-
|
|
97
|
-
// Start section: command_body_extra
|
|
98
|
-
// End section: command_body_extra
|
|
99
|
-
}
|
|
@@ -1,108 +0,0 @@
|
|
|
1
|
-
import { CostExplorerClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes } from "../CostExplorerClient";
|
|
2
|
-
import { GetRightsizingRecommendationRequest, GetRightsizingRecommendationResponse } from "../models/models_0";
|
|
3
|
-
import {
|
|
4
|
-
deserializeAws_json1_1GetRightsizingRecommendationCommand,
|
|
5
|
-
serializeAws_json1_1GetRightsizingRecommendationCommand,
|
|
6
|
-
} from "../protocols/Aws_json1_1";
|
|
7
|
-
import { getSerdePlugin } from "@aws-sdk/middleware-serde";
|
|
8
|
-
import { HttpRequest as __HttpRequest, HttpResponse as __HttpResponse } from "@aws-sdk/protocol-http";
|
|
9
|
-
import { Command as $Command } from "@aws-sdk/smithy-client";
|
|
10
|
-
import {
|
|
11
|
-
FinalizeHandlerArguments,
|
|
12
|
-
Handler,
|
|
13
|
-
HandlerExecutionContext,
|
|
14
|
-
MiddlewareStack,
|
|
15
|
-
HttpHandlerOptions as __HttpHandlerOptions,
|
|
16
|
-
MetadataBearer as __MetadataBearer,
|
|
17
|
-
SerdeContext as __SerdeContext,
|
|
18
|
-
} from "@aws-sdk/types";
|
|
19
|
-
|
|
20
|
-
export interface GetRightsizingRecommendationCommandInput extends GetRightsizingRecommendationRequest {}
|
|
21
|
-
export interface GetRightsizingRecommendationCommandOutput
|
|
22
|
-
extends GetRightsizingRecommendationResponse,
|
|
23
|
-
__MetadataBearer {}
|
|
24
|
-
|
|
25
|
-
/**
|
|
26
|
-
* <p>Creates recommendations that
|
|
27
|
-
* help you save cost
|
|
28
|
-
* by identifying idle and underutilized Amazon EC2 instances.</p>
|
|
29
|
-
* <p>Recommendations are generated to either downsize or terminate instances, along with
|
|
30
|
-
* providing savings detail and metrics. For details on calculation and function, see
|
|
31
|
-
* <a href="https://docs.aws.amazon.com/awsaccountbilling/latest/aboutv2/ce-rightsizing.html">Optimizing
|
|
32
|
-
* Your Cost with Rightsizing
|
|
33
|
-
* Recommendations</a>
|
|
34
|
-
* in the <i>Billing and Cost Management User
|
|
35
|
-
* Guide</i>.</p>
|
|
36
|
-
* @example
|
|
37
|
-
* Use a bare-bones client and the command you need to make an API call.
|
|
38
|
-
* ```javascript
|
|
39
|
-
* import { CostExplorerClient, GetRightsizingRecommendationCommand } from "@aws-sdk/client-cost-explorer"; // ES Modules import
|
|
40
|
-
* // const { CostExplorerClient, GetRightsizingRecommendationCommand } = require("@aws-sdk/client-cost-explorer"); // CommonJS import
|
|
41
|
-
* const client = new CostExplorerClient(config);
|
|
42
|
-
* const command = new GetRightsizingRecommendationCommand(input);
|
|
43
|
-
* const response = await client.send(command);
|
|
44
|
-
* ```
|
|
45
|
-
*
|
|
46
|
-
* @see {@link GetRightsizingRecommendationCommandInput} for command's `input` shape.
|
|
47
|
-
* @see {@link GetRightsizingRecommendationCommandOutput} for command's `response` shape.
|
|
48
|
-
* @see {@link CostExplorerClientResolvedConfig | config} for command's `input` shape.
|
|
49
|
-
*
|
|
50
|
-
*/
|
|
51
|
-
export class GetRightsizingRecommendationCommand extends $Command<
|
|
52
|
-
GetRightsizingRecommendationCommandInput,
|
|
53
|
-
GetRightsizingRecommendationCommandOutput,
|
|
54
|
-
CostExplorerClientResolvedConfig
|
|
55
|
-
> {
|
|
56
|
-
// Start section: command_properties
|
|
57
|
-
// End section: command_properties
|
|
58
|
-
|
|
59
|
-
constructor(readonly input: GetRightsizingRecommendationCommandInput) {
|
|
60
|
-
// Start section: command_constructor
|
|
61
|
-
super();
|
|
62
|
-
// End section: command_constructor
|
|
63
|
-
}
|
|
64
|
-
|
|
65
|
-
/**
|
|
66
|
-
* @internal
|
|
67
|
-
*/
|
|
68
|
-
resolveMiddleware(
|
|
69
|
-
clientStack: MiddlewareStack<ServiceInputTypes, ServiceOutputTypes>,
|
|
70
|
-
configuration: CostExplorerClientResolvedConfig,
|
|
71
|
-
options?: __HttpHandlerOptions
|
|
72
|
-
): Handler<GetRightsizingRecommendationCommandInput, GetRightsizingRecommendationCommandOutput> {
|
|
73
|
-
this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize));
|
|
74
|
-
|
|
75
|
-
const stack = clientStack.concat(this.middlewareStack);
|
|
76
|
-
|
|
77
|
-
const { logger } = configuration;
|
|
78
|
-
const clientName = "CostExplorerClient";
|
|
79
|
-
const commandName = "GetRightsizingRecommendationCommand";
|
|
80
|
-
const handlerExecutionContext: HandlerExecutionContext = {
|
|
81
|
-
logger,
|
|
82
|
-
clientName,
|
|
83
|
-
commandName,
|
|
84
|
-
inputFilterSensitiveLog: GetRightsizingRecommendationRequest.filterSensitiveLog,
|
|
85
|
-
outputFilterSensitiveLog: GetRightsizingRecommendationResponse.filterSensitiveLog,
|
|
86
|
-
};
|
|
87
|
-
const { requestHandler } = configuration;
|
|
88
|
-
return stack.resolve(
|
|
89
|
-
(request: FinalizeHandlerArguments<any>) =>
|
|
90
|
-
requestHandler.handle(request.request as __HttpRequest, options || {}),
|
|
91
|
-
handlerExecutionContext
|
|
92
|
-
);
|
|
93
|
-
}
|
|
94
|
-
|
|
95
|
-
private serialize(input: GetRightsizingRecommendationCommandInput, context: __SerdeContext): Promise<__HttpRequest> {
|
|
96
|
-
return serializeAws_json1_1GetRightsizingRecommendationCommand(input, context);
|
|
97
|
-
}
|
|
98
|
-
|
|
99
|
-
private deserialize(
|
|
100
|
-
output: __HttpResponse,
|
|
101
|
-
context: __SerdeContext
|
|
102
|
-
): Promise<GetRightsizingRecommendationCommandOutput> {
|
|
103
|
-
return deserializeAws_json1_1GetRightsizingRecommendationCommand(output, context);
|
|
104
|
-
}
|
|
105
|
-
|
|
106
|
-
// Start section: command_body_extra
|
|
107
|
-
// End section: command_body_extra
|
|
108
|
-
}
|
|
@@ -1,117 +0,0 @@
|
|
|
1
|
-
import { CostExplorerClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes } from "../CostExplorerClient";
|
|
2
|
-
import { GetSavingsPlansCoverageRequest, GetSavingsPlansCoverageResponse } from "../models/models_0";
|
|
3
|
-
import {
|
|
4
|
-
deserializeAws_json1_1GetSavingsPlansCoverageCommand,
|
|
5
|
-
serializeAws_json1_1GetSavingsPlansCoverageCommand,
|
|
6
|
-
} from "../protocols/Aws_json1_1";
|
|
7
|
-
import { getSerdePlugin } from "@aws-sdk/middleware-serde";
|
|
8
|
-
import { HttpRequest as __HttpRequest, HttpResponse as __HttpResponse } from "@aws-sdk/protocol-http";
|
|
9
|
-
import { Command as $Command } from "@aws-sdk/smithy-client";
|
|
10
|
-
import {
|
|
11
|
-
FinalizeHandlerArguments,
|
|
12
|
-
Handler,
|
|
13
|
-
HandlerExecutionContext,
|
|
14
|
-
MiddlewareStack,
|
|
15
|
-
HttpHandlerOptions as __HttpHandlerOptions,
|
|
16
|
-
MetadataBearer as __MetadataBearer,
|
|
17
|
-
SerdeContext as __SerdeContext,
|
|
18
|
-
} from "@aws-sdk/types";
|
|
19
|
-
|
|
20
|
-
export interface GetSavingsPlansCoverageCommandInput extends GetSavingsPlansCoverageRequest {}
|
|
21
|
-
export interface GetSavingsPlansCoverageCommandOutput extends GetSavingsPlansCoverageResponse, __MetadataBearer {}
|
|
22
|
-
|
|
23
|
-
/**
|
|
24
|
-
* <p>Retrieves the Savings Plans covered for your account. This enables you to see how much of your cost is covered by a Savings Plan. An organization’s management account can see the coverage of the associated member accounts. This supports dimensions, Cost Categories, and nested expressions. For any time period, you can filter data for Savings Plans usage with the following dimensions:</p>
|
|
25
|
-
* <ul>
|
|
26
|
-
* <li>
|
|
27
|
-
* <p>
|
|
28
|
-
* <code>LINKED_ACCOUNT</code>
|
|
29
|
-
* </p>
|
|
30
|
-
* </li>
|
|
31
|
-
* <li>
|
|
32
|
-
* <p>
|
|
33
|
-
* <code>REGION</code>
|
|
34
|
-
* </p>
|
|
35
|
-
* </li>
|
|
36
|
-
* <li>
|
|
37
|
-
* <p>
|
|
38
|
-
* <code>SERVICE</code>
|
|
39
|
-
* </p>
|
|
40
|
-
* </li>
|
|
41
|
-
* <li>
|
|
42
|
-
* <p>
|
|
43
|
-
* <code>INSTANCE_FAMILY</code>
|
|
44
|
-
* </p>
|
|
45
|
-
* </li>
|
|
46
|
-
* </ul>
|
|
47
|
-
* <p>To determine valid values for a dimension, use the <code>GetDimensionValues</code> operation.</p>
|
|
48
|
-
* @example
|
|
49
|
-
* Use a bare-bones client and the command you need to make an API call.
|
|
50
|
-
* ```javascript
|
|
51
|
-
* import { CostExplorerClient, GetSavingsPlansCoverageCommand } from "@aws-sdk/client-cost-explorer"; // ES Modules import
|
|
52
|
-
* // const { CostExplorerClient, GetSavingsPlansCoverageCommand } = require("@aws-sdk/client-cost-explorer"); // CommonJS import
|
|
53
|
-
* const client = new CostExplorerClient(config);
|
|
54
|
-
* const command = new GetSavingsPlansCoverageCommand(input);
|
|
55
|
-
* const response = await client.send(command);
|
|
56
|
-
* ```
|
|
57
|
-
*
|
|
58
|
-
* @see {@link GetSavingsPlansCoverageCommandInput} for command's `input` shape.
|
|
59
|
-
* @see {@link GetSavingsPlansCoverageCommandOutput} for command's `response` shape.
|
|
60
|
-
* @see {@link CostExplorerClientResolvedConfig | config} for command's `input` shape.
|
|
61
|
-
*
|
|
62
|
-
*/
|
|
63
|
-
export class GetSavingsPlansCoverageCommand extends $Command<
|
|
64
|
-
GetSavingsPlansCoverageCommandInput,
|
|
65
|
-
GetSavingsPlansCoverageCommandOutput,
|
|
66
|
-
CostExplorerClientResolvedConfig
|
|
67
|
-
> {
|
|
68
|
-
// Start section: command_properties
|
|
69
|
-
// End section: command_properties
|
|
70
|
-
|
|
71
|
-
constructor(readonly input: GetSavingsPlansCoverageCommandInput) {
|
|
72
|
-
// Start section: command_constructor
|
|
73
|
-
super();
|
|
74
|
-
// End section: command_constructor
|
|
75
|
-
}
|
|
76
|
-
|
|
77
|
-
/**
|
|
78
|
-
* @internal
|
|
79
|
-
*/
|
|
80
|
-
resolveMiddleware(
|
|
81
|
-
clientStack: MiddlewareStack<ServiceInputTypes, ServiceOutputTypes>,
|
|
82
|
-
configuration: CostExplorerClientResolvedConfig,
|
|
83
|
-
options?: __HttpHandlerOptions
|
|
84
|
-
): Handler<GetSavingsPlansCoverageCommandInput, GetSavingsPlansCoverageCommandOutput> {
|
|
85
|
-
this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize));
|
|
86
|
-
|
|
87
|
-
const stack = clientStack.concat(this.middlewareStack);
|
|
88
|
-
|
|
89
|
-
const { logger } = configuration;
|
|
90
|
-
const clientName = "CostExplorerClient";
|
|
91
|
-
const commandName = "GetSavingsPlansCoverageCommand";
|
|
92
|
-
const handlerExecutionContext: HandlerExecutionContext = {
|
|
93
|
-
logger,
|
|
94
|
-
clientName,
|
|
95
|
-
commandName,
|
|
96
|
-
inputFilterSensitiveLog: GetSavingsPlansCoverageRequest.filterSensitiveLog,
|
|
97
|
-
outputFilterSensitiveLog: GetSavingsPlansCoverageResponse.filterSensitiveLog,
|
|
98
|
-
};
|
|
99
|
-
const { requestHandler } = configuration;
|
|
100
|
-
return stack.resolve(
|
|
101
|
-
(request: FinalizeHandlerArguments<any>) =>
|
|
102
|
-
requestHandler.handle(request.request as __HttpRequest, options || {}),
|
|
103
|
-
handlerExecutionContext
|
|
104
|
-
);
|
|
105
|
-
}
|
|
106
|
-
|
|
107
|
-
private serialize(input: GetSavingsPlansCoverageCommandInput, context: __SerdeContext): Promise<__HttpRequest> {
|
|
108
|
-
return serializeAws_json1_1GetSavingsPlansCoverageCommand(input, context);
|
|
109
|
-
}
|
|
110
|
-
|
|
111
|
-
private deserialize(output: __HttpResponse, context: __SerdeContext): Promise<GetSavingsPlansCoverageCommandOutput> {
|
|
112
|
-
return deserializeAws_json1_1GetSavingsPlansCoverageCommand(output, context);
|
|
113
|
-
}
|
|
114
|
-
|
|
115
|
-
// Start section: command_body_extra
|
|
116
|
-
// End section: command_body_extra
|
|
117
|
-
}
|
|
@@ -1,106 +0,0 @@
|
|
|
1
|
-
import { CostExplorerClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes } from "../CostExplorerClient";
|
|
2
|
-
import {
|
|
3
|
-
GetSavingsPlansPurchaseRecommendationRequest,
|
|
4
|
-
GetSavingsPlansPurchaseRecommendationResponse,
|
|
5
|
-
} from "../models/models_0";
|
|
6
|
-
import {
|
|
7
|
-
deserializeAws_json1_1GetSavingsPlansPurchaseRecommendationCommand,
|
|
8
|
-
serializeAws_json1_1GetSavingsPlansPurchaseRecommendationCommand,
|
|
9
|
-
} from "../protocols/Aws_json1_1";
|
|
10
|
-
import { getSerdePlugin } from "@aws-sdk/middleware-serde";
|
|
11
|
-
import { HttpRequest as __HttpRequest, HttpResponse as __HttpResponse } from "@aws-sdk/protocol-http";
|
|
12
|
-
import { Command as $Command } from "@aws-sdk/smithy-client";
|
|
13
|
-
import {
|
|
14
|
-
FinalizeHandlerArguments,
|
|
15
|
-
Handler,
|
|
16
|
-
HandlerExecutionContext,
|
|
17
|
-
MiddlewareStack,
|
|
18
|
-
HttpHandlerOptions as __HttpHandlerOptions,
|
|
19
|
-
MetadataBearer as __MetadataBearer,
|
|
20
|
-
SerdeContext as __SerdeContext,
|
|
21
|
-
} from "@aws-sdk/types";
|
|
22
|
-
|
|
23
|
-
export interface GetSavingsPlansPurchaseRecommendationCommandInput
|
|
24
|
-
extends GetSavingsPlansPurchaseRecommendationRequest {}
|
|
25
|
-
export interface GetSavingsPlansPurchaseRecommendationCommandOutput
|
|
26
|
-
extends GetSavingsPlansPurchaseRecommendationResponse,
|
|
27
|
-
__MetadataBearer {}
|
|
28
|
-
|
|
29
|
-
/**
|
|
30
|
-
* <p>Retrieves your request parameters, Savings Plan Recommendations Summary and Details. </p>
|
|
31
|
-
* @example
|
|
32
|
-
* Use a bare-bones client and the command you need to make an API call.
|
|
33
|
-
* ```javascript
|
|
34
|
-
* import { CostExplorerClient, GetSavingsPlansPurchaseRecommendationCommand } from "@aws-sdk/client-cost-explorer"; // ES Modules import
|
|
35
|
-
* // const { CostExplorerClient, GetSavingsPlansPurchaseRecommendationCommand } = require("@aws-sdk/client-cost-explorer"); // CommonJS import
|
|
36
|
-
* const client = new CostExplorerClient(config);
|
|
37
|
-
* const command = new GetSavingsPlansPurchaseRecommendationCommand(input);
|
|
38
|
-
* const response = await client.send(command);
|
|
39
|
-
* ```
|
|
40
|
-
*
|
|
41
|
-
* @see {@link GetSavingsPlansPurchaseRecommendationCommandInput} for command's `input` shape.
|
|
42
|
-
* @see {@link GetSavingsPlansPurchaseRecommendationCommandOutput} for command's `response` shape.
|
|
43
|
-
* @see {@link CostExplorerClientResolvedConfig | config} for command's `input` shape.
|
|
44
|
-
*
|
|
45
|
-
*/
|
|
46
|
-
export class GetSavingsPlansPurchaseRecommendationCommand extends $Command<
|
|
47
|
-
GetSavingsPlansPurchaseRecommendationCommandInput,
|
|
48
|
-
GetSavingsPlansPurchaseRecommendationCommandOutput,
|
|
49
|
-
CostExplorerClientResolvedConfig
|
|
50
|
-
> {
|
|
51
|
-
// Start section: command_properties
|
|
52
|
-
// End section: command_properties
|
|
53
|
-
|
|
54
|
-
constructor(readonly input: GetSavingsPlansPurchaseRecommendationCommandInput) {
|
|
55
|
-
// Start section: command_constructor
|
|
56
|
-
super();
|
|
57
|
-
// End section: command_constructor
|
|
58
|
-
}
|
|
59
|
-
|
|
60
|
-
/**
|
|
61
|
-
* @internal
|
|
62
|
-
*/
|
|
63
|
-
resolveMiddleware(
|
|
64
|
-
clientStack: MiddlewareStack<ServiceInputTypes, ServiceOutputTypes>,
|
|
65
|
-
configuration: CostExplorerClientResolvedConfig,
|
|
66
|
-
options?: __HttpHandlerOptions
|
|
67
|
-
): Handler<GetSavingsPlansPurchaseRecommendationCommandInput, GetSavingsPlansPurchaseRecommendationCommandOutput> {
|
|
68
|
-
this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize));
|
|
69
|
-
|
|
70
|
-
const stack = clientStack.concat(this.middlewareStack);
|
|
71
|
-
|
|
72
|
-
const { logger } = configuration;
|
|
73
|
-
const clientName = "CostExplorerClient";
|
|
74
|
-
const commandName = "GetSavingsPlansPurchaseRecommendationCommand";
|
|
75
|
-
const handlerExecutionContext: HandlerExecutionContext = {
|
|
76
|
-
logger,
|
|
77
|
-
clientName,
|
|
78
|
-
commandName,
|
|
79
|
-
inputFilterSensitiveLog: GetSavingsPlansPurchaseRecommendationRequest.filterSensitiveLog,
|
|
80
|
-
outputFilterSensitiveLog: GetSavingsPlansPurchaseRecommendationResponse.filterSensitiveLog,
|
|
81
|
-
};
|
|
82
|
-
const { requestHandler } = configuration;
|
|
83
|
-
return stack.resolve(
|
|
84
|
-
(request: FinalizeHandlerArguments<any>) =>
|
|
85
|
-
requestHandler.handle(request.request as __HttpRequest, options || {}),
|
|
86
|
-
handlerExecutionContext
|
|
87
|
-
);
|
|
88
|
-
}
|
|
89
|
-
|
|
90
|
-
private serialize(
|
|
91
|
-
input: GetSavingsPlansPurchaseRecommendationCommandInput,
|
|
92
|
-
context: __SerdeContext
|
|
93
|
-
): Promise<__HttpRequest> {
|
|
94
|
-
return serializeAws_json1_1GetSavingsPlansPurchaseRecommendationCommand(input, context);
|
|
95
|
-
}
|
|
96
|
-
|
|
97
|
-
private deserialize(
|
|
98
|
-
output: __HttpResponse,
|
|
99
|
-
context: __SerdeContext
|
|
100
|
-
): Promise<GetSavingsPlansPurchaseRecommendationCommandOutput> {
|
|
101
|
-
return deserializeAws_json1_1GetSavingsPlansPurchaseRecommendationCommand(output, context);
|
|
102
|
-
}
|
|
103
|
-
|
|
104
|
-
// Start section: command_body_extra
|
|
105
|
-
// End section: command_body_extra
|
|
106
|
-
}
|