Skip to content

get_ml_transform async

get_ml_transform(
    transform_id: HashString,
    *,
    config_overrides: Optional[AsyncGlueClientConfig] = None,
) -> GetMLTransformResponse

Gets an Glue machine learning transform artifact and all its corresponding metadata. Machine learning transforms are a special type of transform that use machine learning to learn the details of the transformation to be performed by learning from examples provided by humans. These transformations are then saved by Glue. You can retrieve their metadata by calling GetMLTransform.

Parameters:

  • transform_id (HashString) –

    The unique identifier of the transform, generated at the time that the transform was created.

Raises:

Source code in docs_src/capo_glue/_services/async_glue.py
async def get_ml_transform(
    self,
    transform_id: "capo_glue.types.hash_string.HashString",
    *,
    config_overrides: Optional[AsyncGlueClientConfig] = None,
) -> "capo_glue.types.get_ml_transform_response.GetMLTransformResponse":
    """<p>Gets an Glue machine learning transform artifact and all its corresponding metadata. Machine learning transforms are a special type of transform that use machine learning to learn the details of the transformation to be performed by learning from examples provided by humans. These transformations are then saved by Glue. You can retrieve their metadata by calling <code>GetMLTransform</code>.</p>

    Args:
        transform_id: <p>The unique identifier of the transform, generated at the time that the transform was created.</p>

    Raises:
        capo_glue.errors.entity_not_found_exception.EntityNotFoundException: <p>A specified entity does not exist</p>
        capo_glue.errors.internal_service_exception.InternalServiceException: <p>An internal service error occurred.</p>
        capo_glue.errors.invalid_input_exception.InvalidInputException: <p>The input provided was not valid.</p>
        capo_glue.errors.operation_timeout_exception.OperationTimeoutException: <p>The operation timed out.</p>
        capo_glue.errors.UnknownServiceError: The service returned an error code this client does not model.
    """

    async def _handler(
        req: "AsyncOperationRequest[capo_glue.types.get_ml_transform_request.GetMLTransformRequest]",
    ) -> AsyncOperationResponse[
        "capo_glue.types.get_ml_transform_response.GetMLTransformResponse"
    ]:
        import capo_glue._operations.aws_glue.get_ml_transform

        (
            output,
            http_response,
        ) = await capo_glue._operations.aws_glue.get_ml_transform.async_get_ml_transform(
            req.options, req.input
        )
        return AsyncOperationResponse(output=output, response=http_response)

    interceptors_, options_ = self.operation_options(
        config_overrides, OperationLogging("GetMLTransform")
    )
    input_: capo_glue.types.get_ml_transform_request.GetMLTransformRequest = {
        "transform_id": transform_id
    }

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