Skip to content

update_inference_component_runtime_config async

update_inference_component_runtime_config(
    *,
    config_overrides: Optional[AsyncSageMakerClientConfig] = None,
    inference_component_name: Optional[InferenceComponentName] = None,
    desired_runtime_config: Optional[InferenceComponentRuntimeConfig] = None,
) -> UpdateInferenceComponentRuntimeConfigOutput

Runtime settings for a model that is deployed with an inference component.

Parameters:

Raises:

  • ResourceLimitExceeded –

    You have exceeded an SageMaker resource limit. For example, you might have too many training jobs created.

  • UnknownServiceError –

    The service returned an error code this client does not model.

Source code in docs_src/capo_sagemaker/_services/async_sage_maker.py
async def update_inference_component_runtime_config(
    self,
    *,
    config_overrides: Optional[AsyncSageMakerClientConfig] = None,
    inference_component_name: Optional[
        "capo_sagemaker.types.inference_component_name.InferenceComponentName"
    ] = None,
    desired_runtime_config: Optional[
        "capo_sagemaker.types.inference_component_runtime_config.InferenceComponentRuntimeConfig"
    ] = None,
) -> "capo_sagemaker.types.update_inference_component_runtime_config_output.UpdateInferenceComponentRuntimeConfigOutput":
    """<p>Runtime settings for a model that is deployed with an inference component.</p>

    Args:
        inference_component_name: <p>The name of the inference component to update.</p>
        desired_runtime_config: <p>Runtime settings for a model that is deployed with an inference component.</p>

    Raises:
        capo_sagemaker.errors.resource_limit_exceeded.ResourceLimitExceeded: <p> You have exceeded an SageMaker resource limit. For example, you might have too many training jobs created. </p>
        capo_sagemaker.errors.UnknownServiceError: The service returned an error code this client does not model.
    """

    async def _handler(
        req: "AsyncOperationRequest[capo_sagemaker.types.update_inference_component_runtime_config_input.UpdateInferenceComponentRuntimeConfigInput]",
    ) -> AsyncOperationResponse[
        "capo_sagemaker.types.update_inference_component_runtime_config_output.UpdateInferenceComponentRuntimeConfigOutput"
    ]:
        import capo_sagemaker._operations.sage_maker.update_inference_component_runtime_config

        (
            output,
            http_response,
        ) = await capo_sagemaker._operations.sage_maker.update_inference_component_runtime_config.async_update_inference_component_runtime_config(
            req.options, req.input
        )
        return AsyncOperationResponse(output=output, response=http_response)

    interceptors_, options_ = self.operation_options(
        config_overrides, OperationLogging("UpdateInferenceComponentRuntimeConfig")
    )
    input_: capo_sagemaker.types.update_inference_component_runtime_config_input.UpdateInferenceComponentRuntimeConfigInput = {}
    if inference_component_name is not None:
        input_["inference_component_name"] = inference_component_name
    if desired_runtime_config is not None:
        input_["desired_runtime_config"] = desired_runtime_config

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