list_actions

list_actions(**kwargs)

Lists the actions in your account and their properties.

See also: AWS API Documentation

Request Syntax

response = client.list_actions(
    SourceUri='string',
    ActionType='string',
    CreatedAfter=datetime(2015, 1, 1),
    CreatedBefore=datetime(2015, 1, 1),
    SortBy='Name'|'CreationTime',
    SortOrder='Ascending'|'Descending',
    NextToken='string',
    MaxResults=123
)
Parameters
  • SourceUri (string) -- A filter that returns only actions with the specified source URI.
  • ActionType (string) -- A filter that returns only actions of the specified type.
  • CreatedAfter (datetime) -- A filter that returns only actions created on or after the specified time.
  • CreatedBefore (datetime) -- A filter that returns only actions created on or before the specified time.
  • SortBy (string) -- The property used to sort results. The default value is CreationTime .
  • SortOrder (string) -- The sort order. The default value is Descending .
  • NextToken (string) -- If the previous call to ListActions didn't return the full set of actions, the call returns a token for getting the next set of actions.
  • MaxResults (integer) -- The maximum number of actions to return in the response. The default value is 10.
Return type

dict

Returns

Response Syntax

{
    'ActionSummaries': [
        {
            'ActionArn': 'string',
            'ActionName': 'string',
            'Source': {
                'SourceUri': 'string',
                'SourceType': 'string',
                'SourceId': 'string'
            },
            'ActionType': 'string',
            'Status': 'Unknown'|'InProgress'|'Completed'|'Failed'|'Stopping'|'Stopped',
            'CreationTime': datetime(2015, 1, 1),
            'LastModifiedTime': datetime(2015, 1, 1)
        },
    ],
    'NextToken': 'string'
}

Response Structure

  • (dict) --

    • ActionSummaries (list) --

      A list of actions and their properties.

      • (dict) --

        Lists the properties of an action . An action represents an action or activity. Some examples are a workflow step and a model deployment. Generally, an action involves at least one input artifact or output artifact.

        • ActionArn (string) --

          The Amazon Resource Name (ARN) of the action.

        • ActionName (string) --

          The name of the action.

        • Source (dict) --

          The source of the action.

          • SourceUri (string) --

            The URI of the source.

          • SourceType (string) --

            The type of the source.

          • SourceId (string) --

            The ID of the source.

        • ActionType (string) --

          The type of the action.

        • Status (string) --

          The status of the action.

        • CreationTime (datetime) --

          When the action was created.

        • LastModifiedTime (datetime) --

          When the action was last modified.

    • NextToken (string) --

      A token for getting the next set of actions, if there are any.

Exceptions

  • SageMaker.Client.exceptions.ResourceNotFound