Skip to content

get_workload_estimate

get_workload_estimate(
    identifier: ResourceId,
    *,
    config_overrides: Optional[BCMPricingCalculatorClientConfig] = None,
) -> GetWorkloadEstimateResponse

Retrieves details of a specific workload estimate.

Parameters:

  • identifier (ResourceId) –

    The unique identifier of the workload estimate to retrieve.

Raises:

Source code in docs_src/capo_bcm_pricing_calculator/_services/bcm_pricing_calculator.py
def get_workload_estimate(
    self,
    identifier: "capo_bcm_pricing_calculator.types.resource_id.ResourceId",
    *,
    config_overrides: Optional[BCMPricingCalculatorClientConfig] = None,
) -> "capo_bcm_pricing_calculator.types.get_workload_estimate_response.GetWorkloadEstimateResponse":
    """<p> Retrieves details of a specific workload estimate. </p>

    Args:
        identifier: <p> The unique identifier of the workload estimate to retrieve. </p>

    Raises:
        capo_bcm_pricing_calculator.errors.access_denied_exception.AccessDeniedException: <p> You do not have sufficient access to perform this action. </p>
        capo_bcm_pricing_calculator.errors.internal_server_exception.InternalServerException: <p> An internal error has occurred. Retry your request, but if the problem persists, contact Amazon Web Services support. </p>
        capo_bcm_pricing_calculator.errors.throttling_exception.ThrottlingException: <p> The request was denied due to request throttling. </p>
        capo_bcm_pricing_calculator.errors.validation_exception.ValidationException: <p> The input provided fails to satisfy the constraints specified by an Amazon Web Services service. </p>
        capo_bcm_pricing_calculator.errors.data_unavailable_exception.DataUnavailableException: <p> The requested data is currently unavailable. </p>
        capo_bcm_pricing_calculator.errors.resource_not_found_exception.ResourceNotFoundException: <p> The specified resource was not found. </p>
        capo_bcm_pricing_calculator.errors.UnknownServiceError: The service returned an error code this client does not model.
    """

    def _handler(
        req: "OperationRequest[capo_bcm_pricing_calculator.types.get_workload_estimate_request.GetWorkloadEstimateRequest]",
    ) -> OperationResponse[
        "capo_bcm_pricing_calculator.types.get_workload_estimate_response.GetWorkloadEstimateResponse"
    ]:
        import capo_bcm_pricing_calculator._operations.awsbcm_pricing_calculator.get_workload_estimate

        output, http_response = (
            capo_bcm_pricing_calculator._operations.awsbcm_pricing_calculator.get_workload_estimate.get_workload_estimate(
                req.options, req.input
            )
        )
        return OperationResponse(output=output, response=http_response)

    interceptors_, options_ = self.operation_options(
        config_overrides, OperationLogging("GetWorkloadEstimate")
    )
    input_: capo_bcm_pricing_calculator.types.get_workload_estimate_request.GetWorkloadEstimateRequest = {
        "identifier": identifier
    }

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