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

Class: Aws::SageMaker::Types::HumanTaskConfig

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

Overview

Note:

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

{
  workteam_arn: "WorkteamArn", # required
  ui_config: { # required
    ui_template_s3_uri: "S3Uri", # required
  },
  pre_human_task_lambda_arn: "LambdaFunctionArn", # required
  task_keywords: ["TaskKeyword"],
  task_title: "TaskTitle", # required
  task_description: "TaskDescription", # required
  number_of_human_workers_per_data_object: 1, # required
  task_time_limit_in_seconds: 1, # required
  task_availability_lifetime_in_seconds: 1,
  max_concurrent_task_count: 1,
  annotation_consolidation_config: { # required
    annotation_consolidation_lambda_arn: "LambdaFunctionArn", # required
  },
  public_workforce_task_price: {
    amount_in_usd: {
      dollars: 1,
      cents: 1,
      tenth_fractions_of_a_cent: 1,
    },
  },
}

Information required for human workers to complete a labeling task.

Returned by:

Instance Attribute Summary collapse

Instance Attribute Details

#annotation_consolidation_configTypes::AnnotationConsolidationConfig

Configures how labels are consolidated across human workers.

Returns:

#max_concurrent_task_countInteger

Defines the maximum number of data objects that can be labeled by human workers at the same time. Each object may have more than one worker at one time.

Returns:

  • (Integer)

    Defines the maximum number of data objects that can be labeled by human workers at the same time.

#number_of_human_workers_per_data_objectInteger

The number of human workers that will label an object.

Returns:

  • (Integer)

    The number of human workers that will label an object.

#pre_human_task_lambda_arnString

The Amazon Resource Name (ARN) of a Lambda function that is run before a data object is sent to a human worker. Use this function to provide input to a custom labeling job.

For the built-in bounding box, image classification, semantic segmentation, and text classification task types, Amazon SageMaker Ground Truth provides the following Lambda functions:

US East (Northern Virginia) (us-east-1):

  • arn:aws:lambda:us-east-1:432418664414:function:PRE-BoundingBox

  • arn:aws:lambda:us-east-1:432418664414:function:PRE-ImageMultiClass

  • arn:aws:lambda:us-east-1:432418664414:function:PRE-SemanticSegmentation

  • arn:aws:lambda:us-east-1:432418664414:function:PRE-TextMultiClass

US East (Ohio) (us-east-2):

  • arn:aws:lambda:us-east-2:266458841044:function:PRE-BoundingBox

  • arn:aws:lambda:us-east-2:266458841044:function:PRE-ImageMultiClass

  • arn:aws:lambda:us-east-2:266458841044:function:PRE-SemanticSegmentation

  • arn:aws:lambda:us-east-2:266458841044:function:PRE-TextMultiClass

US West (Oregon) (us-west-2):

  • arn:aws:lambda:us-west-2:081040173940:function:PRE-BoundingBox

  • arn:aws:lambda:us-west-2:081040173940:function:PRE-ImageMultiClass

  • arn:aws:lambda:us-west-2:081040173940:function:PRE-SemanticSegmentation

  • arn:aws:lambda:us-west-2:081040173940:function:PRE-TextMultiClass

EU (Ireland) (eu-west-1):

  • arn:aws:lambda:eu-west-1:568282634449:function:PRE-BoundingBox

  • arn:aws:lambda:eu-west-1:568282634449:function:PRE-ImageMultiClass

  • arn:aws:lambda:eu-west-1:568282634449:function:PRE-SemanticSegmentation

  • arn:aws:lambda:eu-west-1:568282634449:function:PRE-TextMultiClass

Asia Pacific (Tokyo) (ap-northeast-1):

  • arn:aws:lambda:ap-northeast-1:477331159723:function:PRE-BoundingBox

  • arn:aws:lambda:ap-northeast-1:477331159723:function:PRE-ImageMultiClass

  • arn:aws:lambda:ap-northeast-1:477331159723:function:PRE-SemanticSegmentation

  • arn:aws:lambda:ap-northeast-1:477331159723:function:PRE-TextMultiClass

Asia Pacific (Sydney) (ap-southeast-1):

  • arn:aws:lambda:ap-southeast-2:454466003867:function:PRE-BoundingBox

  • arn:aws:lambda:ap-southeast-2:454466003867:function:PRE-ImageMultiClass

  • arn:aws:lambda:ap-southeast-2:454466003867:function:PRE-SemanticSegmentation

  • arn:aws:lambda:ap-southeast-2:454466003867:function:PRE-TextMultiClass

Returns:

  • (String)

    The Amazon Resource Name (ARN) of a Lambda function that is run before a data object is sent to a human worker.

#public_workforce_task_priceTypes::PublicWorkforceTaskPrice

The price that you pay for each task performed by a public worker.

Returns:

#task_availability_lifetime_in_secondsInteger

The length of time that a task remains available for labelling by human workers.

Returns:

  • (Integer)

    The length of time that a task remains available for labelling by human workers.

#task_descriptionString

A description of the task for your human workers.

Returns:

  • (String)

    A description of the task for your human workers.

#task_keywordsArray<String>

Keywords used to describe the task so that workers on Amazon Mechanical Turk can discover the task.

Returns:

  • (Array<String>)

    Keywords used to describe the task so that workers on Amazon Mechanical Turk can discover the task.

#task_time_limit_in_secondsInteger

The amount of time that a worker has to complete a task.

Returns:

  • (Integer)

    The amount of time that a worker has to complete a task.

#task_titleString

A title for the task for your human workers.

Returns:

  • (String)

    A title for the task for your human workers.

#ui_configTypes::UiConfig

Information about the user interface that workers use to complete the labeling task.

Returns:

  • (Types::UiConfig)

    Information about the user interface that workers use to complete the labeling task.

#workteam_arnString

The Amazon Resource Name (ARN) of the work team assigned to complete the tasks.

Returns:

  • (String)

    The Amazon Resource Name (ARN) of the work team assigned to complete the tasks.