Skip to main content

artifacts

Creates, updates, deletes, gets or lists an artifacts resource.

Overview

Nameartifacts
TypeResource
Idaws.sagemaker.artifacts

Fields

The following fields are returned by SELECT queries:

NameDatatypeDescription
artifact_arnstringThe Amazon Resource Name (ARN) of the artifact. (pattern: <code>arn:aws[a-z-]:sagemaker:[a-z0-9-]:[0-9]{12}:artifact/.*</code>)
artifact_namestringThe name of the artifact. (pattern: <code>(arn:aws[a-z-]:sagemaker:[a-z0-9-]:[0-9]{12}:(experiment|experiment-trial|experiment-trial-component|artifact|action|context)/)?([a-zA-Z0-9](-*[a-zA-Z0-9]){0,119})</code>)
artifact_typestringThe type of the artifact.
created_byobjectInformation about the user who created or modified a SageMaker resource.
creation_timestring (date-time)When the artifact was created.
last_modified_byobjectInformation about the user who created or modified a SageMaker resource.
last_modified_timestring (date-time)When the artifact was last modified.
lineage_group_arnstringThe Amazon Resource Name (ARN) of the lineage group. (pattern: <code>arn:aws[a-z-]:sagemaker:[a-z0-9-]:[0-9]{12}:lineage-group/.*</code>)
metadata_propertiesobjectMetadata properties of the tracking entity, trial, or trial component.
propertiesobjectA list of the artifact's properties.
sourceobjectThe source of the artifact.

Methods

The following methods are available for this resource:

NameAccessible byRequired ParamsOptional ParamsDescription
describe_artifactselectregionDescribes an artifact.
list_artifactsselectregionLists the artifacts in your account and their properties.
create_artifactinsertregion, ArtifactTypeCreates an artifact. An artifact is a lineage tracking entity that represents a URI addressable object or data. Some examples are the S3 URI of a dataset and the ECR registry path of an image. For more information, see Amazon SageMaker ML Lineage Tracking.
update_artifactupdateregion, ArtifactArnUpdates an artifact.
delete_artifactdeleteregionDeletes an artifact. Either ArtifactArn or Source must be specified.

Parameters

Parameters can be passed in the WHERE clause of a query. Check the Methods section to see which parameters are required or optional for each operation.

NameDatatypeDescription
regionstringAWS region (default: us-east-1)

SELECT examples

Describes an artifact.

SELECT
artifact_arn,
artifact_name,
artifact_type,
created_by,
creation_time,
last_modified_by,
last_modified_time,
lineage_group_arn,
metadata_properties,
properties,
source
FROM aws.sagemaker.artifacts
WHERE region = '{{ region }}' -- required
;

INSERT examples

Creates an artifact. An artifact is a lineage tracking entity that represents a URI addressable object or data. Some examples are the S3 URI of a dataset and the ECR registry path of an image. For more information, see Amazon SageMaker ML Lineage Tracking.

INSERT INTO aws.sagemaker.artifacts (
ArtifactName,
Source,
ArtifactType,
Properties,
MetadataProperties,
Tags,
region
)
SELECT
'{{ ArtifactName }}',
'{{ Source }}',
'{{ ArtifactType }}' /* required */,
'{{ Properties }}',
'{{ MetadataProperties }}',
'{{ Tags }}',
'{{ region }}'
RETURNING
artifact_arn
;

UPDATE examples

Updates an artifact.

UPDATE aws.sagemaker.artifacts
SET
ArtifactArn = '{{ ArtifactArn }}',
ArtifactName = '{{ ArtifactName }}',
Properties = '{{ Properties }}',
PropertiesToRemove = '{{ PropertiesToRemove }}'
WHERE
region = '{{ region }}' --required
AND ArtifactArn = '{{ ArtifactArn }}' --required
RETURNING
artifact_arn;

DELETE examples

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

DELETE FROM aws.sagemaker.artifacts
WHERE region = '{{ region }}' --required
;