Skip to content

delete_configured_model_algorithm async

delete_configured_model_algorithm(
    configured_model_algorithm_arn: ConfiguredModelAlgorithmArn,
    *,
    config_overrides: Optional[AsyncCleanRoomsMLClientConfig] = None,
) -> None

Deletes a configured model algorithm.

Parameters:

  • configured_model_algorithm_arn (ConfiguredModelAlgorithmArn) –

    The Amazon Resource Name (ARN) of the configured model algorithm that you want to delete.

Raises:

Source code in docs_src/capo_cleanroomsml/_services/async_clean_rooms_ml.py
async def delete_configured_model_algorithm(
    self,
    configured_model_algorithm_arn: "capo_cleanroomsml.types.configured_model_algorithm_arn.ConfiguredModelAlgorithmArn",
    *,
    config_overrides: Optional[AsyncCleanRoomsMLClientConfig] = None,
) -> None:
    """<p>Deletes a configured model algorithm.</p>

    Args:
        configured_model_algorithm_arn: <p>The Amazon Resource Name (ARN) of the configured model algorithm that you want to delete.</p>

    Raises:
        capo_cleanroomsml.errors.access_denied_exception.AccessDeniedException: <p>You do not have sufficient access to perform this action.</p>
        capo_cleanroomsml.errors.conflict_exception.ConflictException: <p>You can't complete this action because another resource depends on this resource.</p>
        capo_cleanroomsml.errors.resource_not_found_exception.ResourceNotFoundException: <p>The resource you are requesting does not exist.</p>
        capo_cleanroomsml.errors.throttling_exception.ThrottlingException: <p>The request was denied due to request throttling.</p>
        capo_cleanroomsml.errors.validation_exception.ValidationException: <p>The request parameters for this request are incorrect.</p>
        capo_cleanroomsml.errors.UnknownServiceError: The service returned an error code this client does not model.
    """

    async def _handler(
        req: "AsyncOperationRequest[capo_cleanroomsml.types.delete_configured_model_algorithm_request.DeleteConfiguredModelAlgorithmRequest]",
    ) -> AsyncOperationResponse[None]:
        import capo_cleanroomsml._operations.aws_stark_control_service.delete_configured_model_algorithm

        (
            output,
            http_response,
        ) = await capo_cleanroomsml._operations.aws_stark_control_service.delete_configured_model_algorithm.async_delete_configured_model_algorithm(
            req.options, req.input
        )
        return AsyncOperationResponse(output=output, response=http_response)

    interceptors_, options_ = self.operation_options(
        config_overrides, OperationLogging("DeleteConfiguredModelAlgorithm")
    )
    input_: capo_cleanroomsml.types.delete_configured_model_algorithm_request.DeleteConfiguredModelAlgorithmRequest = {
        "configured_model_algorithm_arn": configured_model_algorithm_arn
    }

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