SageMaker / Client / delete_artifact

delete_artifact#

SageMaker.Client.delete_artifact(**kwargs)#

Deletes an artifact. Either ArtifactArn or Source must be specified.

See also: AWS API Documentation

Request Syntax

response = client.delete_artifact(
    ArtifactArn='string',
    Source={
        'SourceUri': 'string',
        'SourceTypes': [
            {
                'SourceIdType': 'MD5Hash'|'S3ETag'|'S3Version'|'Custom',
                'Value': 'string'
            },
        ]
    }
)
Parameters:
  • ArtifactArn (string) – The Amazon Resource Name (ARN) of the artifact to delete.

  • Source (dict) –

    The URI of the source.

    • SourceUri (string) – [REQUIRED]

      The URI of the source.

    • SourceTypes (list) –

      A list of source types.

      • (dict) –

        The ID and ID type of an artifact source.

        • SourceIdType (string) – [REQUIRED]

          The type of ID.

        • Value (string) – [REQUIRED]

          The ID.

Return type:

dict

Returns:

Response Syntax

{
    'ArtifactArn': 'string'
}

Response Structure

  • (dict) –

    • ArtifactArn (string) –

      The Amazon Resource Name (ARN) of the artifact.

Exceptions

  • SageMaker.Client.exceptions.ResourceNotFound