Skip to main content

flow_definitions

Creates, updates, deletes, gets or lists a flow_definitions resource.

Overview

Nameflow_definitions
TypeResource
Idaws.sagemaker.flow_definitions

Fields

The following fields are returned by SELECT queries:

NameDatatypeDescription
creation_timestring (date-time)The timestamp when the flow definition was created.
failure_reasonstringThe reason your flow definition failed.
flow_definition_arnstringThe Amazon Resource Name (ARN) of the flow defintion. (pattern: <code>arn:aws[a-z-]:sagemaker:[a-z0-9-]+:[0-9]{12}:flow-definition/.</code>)
flow_definition_namestringThe Amazon Resource Name (ARN) of the flow definition. (pattern: <code>[a-z0-9](-*[a-z0-9]){0,62}</code>)
flow_definition_statusstringThe status of the flow definition. Valid values are listed below. (Initializing, Active, Failed, Deleting)
human_loop_activation_configobjectAn object containing information about what triggers a human review workflow.
human_loop_configobjectAn object containing information about who works on the task, the workforce task price, and other task details.
human_loop_request_sourceobjectContainer for configuring the source of human task requests. Used to specify if Amazon Rekognition or Amazon Textract is used as an integration source.
output_configobjectAn object containing information about the output file.
role_arnstringThe Amazon Resource Name (ARN) of the Amazon Web Services Identity and Access Management (IAM) execution role for the flow definition. (pattern: <code>arn:aws[a-z-]*:iam::\d{12}:role/?[a-zA-Z_0-9+=,.@-_/]+</code>)

Methods

The following methods are available for this resource:

NameAccessible byRequired ParamsOptional ParamsDescription
describe_flow_definitionselectregionReturns information about the specified flow definition.
list_flow_definitionsselectregionReturns information about the flow definitions in your account.
create_flow_definitioninsertregion, FlowDefinitionName, OutputConfig, RoleArnCreates a flow definition.
delete_flow_definitiondeleteregionDeletes the specified flow definition.

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

Returns information about the specified flow definition.

SELECT
creation_time,
failure_reason,
flow_definition_arn,
flow_definition_name,
flow_definition_status,
human_loop_activation_config,
human_loop_config,
human_loop_request_source,
output_config,
role_arn
FROM aws.sagemaker.flow_definitions
WHERE region = '{{ region }}' -- required
;

INSERT examples

Creates a flow definition.

INSERT INTO aws.sagemaker.flow_definitions (
FlowDefinitionName,
HumanLoopRequestSource,
HumanLoopActivationConfig,
HumanLoopConfig,
OutputConfig,
RoleArn,
Tags,
region
)
SELECT
'{{ FlowDefinitionName }}' /* required */,
'{{ HumanLoopRequestSource }}',
'{{ HumanLoopActivationConfig }}',
'{{ HumanLoopConfig }}',
'{{ OutputConfig }}' /* required */,
'{{ RoleArn }}' /* required */,
'{{ Tags }}',
'{{ region }}'
RETURNING
flow_definition_arn
;

DELETE examples

Deletes the specified flow definition.

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