Skip to content

get_recommendation_report_details async

get_recommendation_report_details(
    id: RecommendationTaskId,
    *,
    config_overrides: Optional[AsyncMigrationHubStrategyClientConfig] = None,
) -> GetRecommendationReportDetailsResponse

Retrieves detailed information about the specified recommendation report.

Parameters:

Raises:

Source code in docs_src/capo_migrationhubstrategy/_services/async_migration_hub_strategy.py
async def get_recommendation_report_details(
    self,
    id: "capo_migrationhubstrategy.types.recommendation_task_id.RecommendationTaskId",
    *,
    config_overrides: Optional[AsyncMigrationHubStrategyClientConfig] = None,
) -> "capo_migrationhubstrategy.types.get_recommendation_report_details_response.GetRecommendationReportDetailsResponse":
    """<p> Retrieves detailed information about the specified recommendation report. </p>

    Args:
        id: <p> The recommendation report generation task <code>id</code> returned by <a>StartRecommendationReportGeneration</a>. </p>

    Raises:
        capo_migrationhubstrategy.errors.access_denied_exception.AccessDeniedException: <p> The user does not have permission to perform the action. Check the AWS Identity and Access Management (IAM) policy associated with this user.</p>
        capo_migrationhubstrategy.errors.internal_server_exception.InternalServerException: <p> The server experienced an internal error. Try again. </p>
        capo_migrationhubstrategy.errors.resource_not_found_exception.ResourceNotFoundException: <p> The specified ID in the request is not found. </p>
        capo_migrationhubstrategy.errors.throttling_exception.ThrottlingException: <p> The request was denied due to request throttling. </p>
        capo_migrationhubstrategy.errors.validation_exception.ValidationException: <p> The request body isn't valid. </p>
        capo_migrationhubstrategy.errors.UnknownServiceError: The service returned an error code this client does not model.
    """

    async def _handler(
        req: "AsyncOperationRequest[capo_migrationhubstrategy.types.get_recommendation_report_details_request.GetRecommendationReportDetailsRequest]",
    ) -> AsyncOperationResponse[
        "capo_migrationhubstrategy.types.get_recommendation_report_details_response.GetRecommendationReportDetailsResponse"
    ]:
        import capo_migrationhubstrategy._operations.aws_migration_hub_strategy_recommendation.get_recommendation_report_details

        (
            output,
            http_response,
        ) = await capo_migrationhubstrategy._operations.aws_migration_hub_strategy_recommendation.get_recommendation_report_details.async_get_recommendation_report_details(
            req.options, req.input
        )
        return AsyncOperationResponse(output=output, response=http_response)

    interceptors_, options_ = self.operation_options(
        config_overrides, OperationLogging("GetRecommendationReportDetails")
    )
    input_: capo_migrationhubstrategy.types.get_recommendation_report_details_request.GetRecommendationReportDetailsRequest = {
        "id": id
    }

    response = await aexecute_pipeline(
        AsyncOperationRequest(input=input_, options=options_),
        handler=_handler,
        interceptors=list(interceptors_),
    )
    await response.response.aclose()
    return response.output