AWS SDK for Go (PILOT)
API Reference

PREVIEW DOCUMENTATION - This is a preview of a new format for the AWS SDK for Go API Reference documentation. For the current AWS SDK for Go API Reference, see https://docs.aws.amazon.com/sdk-for-go/api/.

We welcome your feedback on this new version of the documentation. Send your comments to aws-sdkdocs-feedback@amazon.com.

CreateLabelingJobInput

import "github.com/aws/aws-sdk-go/service/sagemaker"

type CreateLabelingJobInput struct { HumanTaskConfig *HumanTaskConfig `type:"structure" required:"true"` InputConfig *LabelingJobInputConfig `type:"structure" required:"true"` LabelAttributeName *string `min:"1" type:"string" required:"true"` LabelCategoryConfigS3Uri *string `type:"string"` LabelingJobAlgorithmsConfig *LabelingJobAlgorithmsConfig `type:"structure"` LabelingJobName *string `min:"1" type:"string" required:"true"` OutputConfig *LabelingJobOutputConfig `type:"structure" required:"true"` RoleArn *string `min:"20" type:"string" required:"true"` StoppingConditions *LabelingJobStoppingConditions `type:"structure"` Tags []*Tag `type:"list"` }

HumanTaskConfig

Information required for human workers to complete a labeling task.

InputConfig

Input configuration information for a labeling job.

LabelAttributeName

Type: *string

The attribute name to use for the label in the output manifest file. This is the key for the key/value pair formed with the label that a worker assigns to the object. The name can't end with "-metadata". If you are running a semantic segmentation labeling job, the attribute name must end with "-ref". If you are running any other kind of labeling job, the attribute name must not end with "-ref".

LabelAttributeName is a required field

LabelCategoryConfigS3Uri

Type: *string

The S3 URL of the file that defines the categories used to label the data objects.

The file is a JSON structure in the following format:

{

"document-version": "2018-11-28"

"labels": [

{

"label": "label 1"

},

{

"label": "label 2"

},

...

{

"label": "label n"

}

]

}

LabelingJobAlgorithmsConfig

Provides configuration information for auto-labeling of your data objects. A LabelingJobAlgorithmsConfig object must be supplied in order to use auto-labeling.

LabelingJobName

Type: *string

The name of the labeling job. This name is used to identify the job in a list of labeling jobs.

LabelingJobName is a required field

OutputConfig

Output configuration information for a labeling job.

RoleArn

Type: *string

The Amazon Resource Number (ARN) that Amazon SageMaker assumes to perform tasks on your behalf during data labeling. You must grant this role the necessary permissions so that Amazon SageMaker can successfully complete data labeling.

RoleArn is a required field

StoppingConditions

A set of conditions for stopping a labeling job. If any of the conditions are met, the job is automatically stopped. You can use these conditions to control the cost of data labeling.

Tags

Describes a tag.

Method

GoString

func (s CreateLabelingJobInput) GoString() string

GoString returns the string representation

SetHumanTaskConfig

func (s *CreateLabelingJobInput) SetHumanTaskConfig(v *HumanTaskConfig) *CreateLabelingJobInput

SetHumanTaskConfig sets the HumanTaskConfig field's value.

SetInputConfig

func (s *CreateLabelingJobInput) SetInputConfig(v *LabelingJobInputConfig) *CreateLabelingJobInput

SetInputConfig sets the InputConfig field's value.

SetLabelAttributeName

func (s *CreateLabelingJobInput) SetLabelAttributeName(v string) *CreateLabelingJobInput

SetLabelAttributeName sets the LabelAttributeName field's value.

SetLabelCategoryConfigS3Uri

func (s *CreateLabelingJobInput) SetLabelCategoryConfigS3Uri(v string) *CreateLabelingJobInput

SetLabelCategoryConfigS3Uri sets the LabelCategoryConfigS3Uri field's value.

SetLabelingJobAlgorithmsConfig

func (s *CreateLabelingJobInput) SetLabelingJobAlgorithmsConfig(v *LabelingJobAlgorithmsConfig) *CreateLabelingJobInput

SetLabelingJobAlgorithmsConfig sets the LabelingJobAlgorithmsConfig field's value.

SetLabelingJobName

func (s *CreateLabelingJobInput) SetLabelingJobName(v string) *CreateLabelingJobInput

SetLabelingJobName sets the LabelingJobName field's value.

SetOutputConfig

func (s *CreateLabelingJobInput) SetOutputConfig(v *LabelingJobOutputConfig) *CreateLabelingJobInput

SetOutputConfig sets the OutputConfig field's value.

SetRoleArn

func (s *CreateLabelingJobInput) SetRoleArn(v string) *CreateLabelingJobInput

SetRoleArn sets the RoleArn field's value.

SetStoppingConditions

func (s *CreateLabelingJobInput) SetStoppingConditions(v *LabelingJobStoppingConditions) *CreateLabelingJobInput

SetStoppingConditions sets the StoppingConditions field's value.

SetTags

func (s *CreateLabelingJobInput) SetTags(v []*Tag) *CreateLabelingJobInput

SetTags sets the Tags field's value.

String

func (s CreateLabelingJobInput) String() string

String returns the string representation

Validate

func (s *CreateLabelingJobInput) Validate() error

Validate inspects the fields of the type to determine if they are valid.

On this page: