Skip to content

describe_artifact async

describe_artifact(
    *,
    config_overrides: Optional[AsyncSageMakerClientConfig] = None,
    artifact_arn: Optional[ArtifactArn] = None,
) -> DescribeArtifactResponse

Describes an artifact.

Parameters:

  • artifact_arn (Optional[ArtifactArn], default: None ) –

    The Amazon Resource Name (ARN) of the artifact to describe.

Raises:

Source code in docs_src/capo_sagemaker/_services/async_sage_maker.py
async def describe_artifact(
    self,
    *,
    config_overrides: Optional[AsyncSageMakerClientConfig] = None,
    artifact_arn: Optional["capo_sagemaker.types.artifact_arn.ArtifactArn"] = None,
) -> "capo_sagemaker.types.describe_artifact_response.DescribeArtifactResponse":
    """<p>Describes an artifact.</p>

    Args:
        artifact_arn: <p>The Amazon Resource Name (ARN) of the artifact to describe.</p>

    Raises:
        capo_sagemaker.errors.resource_not_found.ResourceNotFound: <p>Resource being access is not found.</p>
        capo_sagemaker.errors.UnknownServiceError: The service returned an error code this client does not model.
    """

    async def _handler(
        req: "AsyncOperationRequest[capo_sagemaker.types.describe_artifact_request.DescribeArtifactRequest]",
    ) -> AsyncOperationResponse[
        "capo_sagemaker.types.describe_artifact_response.DescribeArtifactResponse"
    ]:
        import capo_sagemaker._operations.sage_maker.describe_artifact

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

    interceptors_, options_ = self.operation_options(
        config_overrides, OperationLogging("DescribeArtifact")
    )
    input_: capo_sagemaker.types.describe_artifact_request.DescribeArtifactRequest = {}
    if artifact_arn is not None:
        input_["artifact_arn"] = artifact_arn

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