Skip to content

get_savings_plan_purchase_recommendation_details

get_savings_plan_purchase_recommendation_details(
    recommendation_detail_id: RecommendationDetailId,
    *,
    config_overrides: Optional[CostExplorerClientConfig] = None,
) -> GetSavingsPlanPurchaseRecommendationDetailsResponse

Retrieves the details for a Savings Plan recommendation. These details include the hourly data-points that construct the cost, coverage, and utilization charts.

Parameters:

  • recommendation_detail_id (RecommendationDetailId) –

    The ID that is associated with the Savings Plan recommendation.

Raises:

Source code in docs_src/capo_cost_explorer/_services/cost_explorer.py
def get_savings_plan_purchase_recommendation_details(
    self,
    recommendation_detail_id: "capo_cost_explorer.types.recommendation_detail_id.RecommendationDetailId",
    *,
    config_overrides: Optional[CostExplorerClientConfig] = None,
) -> "capo_cost_explorer.types.get_savings_plan_purchase_recommendation_details_response.GetSavingsPlanPurchaseRecommendationDetailsResponse":
    """<p>Retrieves the details for a Savings Plan recommendation. These details include the hourly data-points that construct the cost, coverage, and utilization charts.</p>

    Args:
        recommendation_detail_id: <p>The ID that is associated with the Savings Plan recommendation.</p>

    Raises:
        capo_cost_explorer.errors.data_unavailable_exception.DataUnavailableException: <p>The requested data is unavailable.</p>
        capo_cost_explorer.errors.limit_exceeded_exception.LimitExceededException: <p>You made too many calls in a short period of time. Try again later.</p>
        capo_cost_explorer.errors.UnknownServiceError: The service returned an error code this client does not model.
    """

    def _handler(
        req: "OperationRequest[capo_cost_explorer.types.get_savings_plan_purchase_recommendation_details_request.GetSavingsPlanPurchaseRecommendationDetailsRequest]",
    ) -> OperationResponse[
        "capo_cost_explorer.types.get_savings_plan_purchase_recommendation_details_response.GetSavingsPlanPurchaseRecommendationDetailsResponse"
    ]:
        import capo_cost_explorer._operations.aws_insights_index_service.get_savings_plan_purchase_recommendation_details

        output, http_response = (
            capo_cost_explorer._operations.aws_insights_index_service.get_savings_plan_purchase_recommendation_details.get_savings_plan_purchase_recommendation_details(
                req.options, req.input
            )
        )
        return OperationResponse(output=output, response=http_response)

    interceptors_, options_ = self.operation_options(
        config_overrides,
        OperationLogging("GetSavingsPlanPurchaseRecommendationDetails"),
    )
    input_: capo_cost_explorer.types.get_savings_plan_purchase_recommendation_details_request.GetSavingsPlanPurchaseRecommendationDetailsRequest = {
        "recommendation_detail_id": recommendation_detail_id
    }

    response = execute_pipeline(
        OperationRequest(input=input_, options=options_),
        handler=_handler,
        interceptors=list(interceptors_),
    )
    response.response.close()
    return response.output