Skip to main content

actions

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

Overview

Nameactions
TypeResource
Idaws.sagemaker.actions

Fields

The following fields are returned by SELECT queries:

NameDatatypeDescription
action_arnstringThe Amazon Resource Name (ARN) of the action. (pattern: <code>arn:aws[a-z-]:sagemaker:[a-z0-9-]:[0-9]{12}:action/.*</code>)
action_namestringThe name of the action. (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>)
action_typestringThe type of the action.
created_byobjectInformation about the user who created or modified a SageMaker resource.
creation_timestring (date-time)When the action was created.
descriptionstringThe description of the action. (pattern: <code>.*</code>)
last_modified_byobjectInformation about the user who created or modified a SageMaker resource.
last_modified_timestring (date-time)When the action 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 action's properties.
sourceobjectThe source of the action.
statusstringThe status of the action. (Unknown, InProgress, Completed, Failed, Stopping, Stopped)

Methods

The following methods are available for this resource:

NameAccessible byRequired ParamsOptional ParamsDescription
describe_actionselectregionDescribes an action.
list_actionsselectregionLists the actions in your account and their properties.
create_actioninsertregion, ActionName, ActionTypeCreates an action. An action is a lineage tracking entity that represents an action or activity. For example, a model deployment or an HPO job. Generally, an action involves at least one input or output artifact. For more information, see Amazon SageMaker ML Lineage Tracking.
update_actionupdateregion, ActionNameUpdates an action.
delete_actiondeleteregionDeletes an action.

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 action.

SELECT
action_arn,
action_name,
action_type,
created_by,
creation_time,
description,
last_modified_by,
last_modified_time,
lineage_group_arn,
metadata_properties,
properties,
source,
status
FROM aws.sagemaker.actions
WHERE region = '{{ region }}' -- required
;

INSERT examples

Creates an action. An action is a lineage tracking entity that represents an action or activity. For example, a model deployment or an HPO job. Generally, an action involves at least one input or output artifact. For more information, see Amazon SageMaker ML Lineage Tracking.

INSERT INTO aws.sagemaker.actions (
ActionName,
Source,
ActionType,
Description,
Status,
Properties,
MetadataProperties,
Tags,
region
)
SELECT
'{{ ActionName }}' /* required */,
'{{ Source }}',
'{{ ActionType }}' /* required */,
'{{ Description }}',
'{{ Status }}',
'{{ Properties }}',
'{{ MetadataProperties }}',
'{{ Tags }}',
'{{ region }}'
RETURNING
action_arn
;

UPDATE examples

Updates an action.

UPDATE aws.sagemaker.actions
SET
ActionName = '{{ ActionName }}',
Description = '{{ Description }}',
Status = '{{ Status }}',
Properties = '{{ Properties }}',
PropertiesToRemove = '{{ PropertiesToRemove }}'
WHERE
region = '{{ region }}' --required
AND ActionName = '{{ ActionName }}' --required
RETURNING
action_arn;

DELETE examples

Deletes an action.

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