You are viewing documentation for version 2 of the AWS SDK for Ruby. Version 3 documentation can be found here.

Class: Aws::SageMaker::Types::CreateFlowDefinitionRequest

Inherits:
Struct
  • Object
show all
Defined in:
(unknown)

Overview

Note:

When passing CreateFlowDefinitionRequest as input to an Aws::Client method, you can use a vanilla Hash:

{
  flow_definition_name: "FlowDefinitionName", # required
  human_loop_request_source: {
    aws_managed_human_loop_request_source: "AWS/Rekognition/DetectModerationLabels/Image/V3", # required, accepts AWS/Rekognition/DetectModerationLabels/Image/V3, AWS/Textract/AnalyzeDocument/Forms/V1
  },
  human_loop_activation_config: {
    human_loop_activation_conditions_config: { # required
      human_loop_activation_conditions: "HumanLoopActivationConditions", # required
    },
  },
  human_loop_config: { # required
    workteam_arn: "WorkteamArn", # required
    human_task_ui_arn: "HumanTaskUiArn", # required
    task_title: "FlowDefinitionTaskTitle", # required
    task_description: "FlowDefinitionTaskDescription", # required
    task_count: 1, # required
    task_availability_lifetime_in_seconds: 1,
    task_time_limit_in_seconds: 1,
    task_keywords: ["FlowDefinitionTaskKeyword"],
    public_workforce_task_price: {
      amount_in_usd: {
        dollars: 1,
        cents: 1,
        tenth_fractions_of_a_cent: 1,
      },
    },
  },
  output_config: { # required
    s3_output_path: "S3Uri", # required
    kms_key_id: "KmsKeyId",
  },
  role_arn: "RoleArn", # required
  tags: [
    {
      key: "TagKey", # required
      value: "TagValue", # required
    },
  ],
}

Instance Attribute Summary collapse

Instance Attribute Details

#flow_definition_nameString

The name of your flow definition.

Returns:

  • (String)

    The name of your flow definition.

#human_loop_activation_configTypes::HumanLoopActivationConfig

An object containing information about the events that trigger a human workflow.

Returns:

#human_loop_configTypes::HumanLoopConfig

An object containing information about the tasks the human reviewers will perform.

Returns:

  • (Types::HumanLoopConfig)

    An object containing information about the tasks the human reviewers will perform.

#human_loop_request_sourceTypes::HumanLoopRequestSource

Container for configuring the source of human task requests. Use to specify if Amazon Rekognition or Amazon Textract is used as an integration source.

Returns:

#output_configTypes::FlowDefinitionOutputConfig

An object containing information about where the human review results will be uploaded.

Returns:

#role_arnString

The Amazon Resource Name (ARN) of the role needed to call other services on your behalf. For example, arn:aws:iam::1234567890:role/service-role/AmazonSageMaker-ExecutionRole-20180111T151298.

Returns:

  • (String)

    The Amazon Resource Name (ARN) of the role needed to call other services on your behalf.

#tagsArray<Types::Tag>

An array of key-value pairs that contain metadata to help you categorize and organize a flow definition. Each tag consists of a key and a value, both of which you define.

Returns:

  • (Array<Types::Tag>)

    An array of key-value pairs that contain metadata to help you categorize and organize a flow definition.