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.

CreateTransformJobInput

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

type CreateTransformJobInput struct { BatchStrategy *string `type:"string" enum:"BatchStrategy"` Environment map[string]*string `type:"map"` MaxConcurrentTransforms *int64 `type:"integer"` MaxPayloadInMB *int64 `type:"integer"` ModelName *string `type:"string" required:"true"` Tags []*Tag `type:"list"` TransformInput *TransformInput `type:"structure" required:"true"` TransformJobName *string `min:"1" type:"string" required:"true"` TransformOutput *TransformOutput `type:"structure" required:"true"` TransformResources *TransformResources `type:"structure" required:"true"` }

BatchStrategy

Type: *string

Determines the number of records to include in a mini-batch. If you want to include only one record in a mini-batch, specify SingleRecord.. If you want mini-batches to contain a maximum of the number of records specified in the MaxPayloadInMB parameter, specify MultiRecord.

If you set SplitType to Line and BatchStrategy to MultiRecord, a batch transform automatically splits your input data into the specified payload size. There's no need to split the dataset into smaller files or to use larger payload sizes unless the records in your dataset are very large.

Environment

Type: map[string]*string

The environment variables to set in the Docker container. We support up to 16 key and values entries in the map.

MaxConcurrentTransforms

Type: *int64

The maximum number of parallel requests that can be sent to an algorithm container on an instance. This is good for algorithms that implement multiple workers on larger instances . The default value is 1. To allow Amazon SageMaker to determine the appropriate number for MaxConcurrentTransforms, do not set the value in the API.

MaxPayloadInMB

Type: *int64

The maximum payload size allowed, in MB. A payload is the data portion of a record (without metadata). The value in MaxPayloadInMB must be greater or equal to the size of a single record. You can approximate the size of a record by dividing the size of your dataset by the number of records. Then multiply this value by the number of records you want in a mini-batch. We recommend to enter a slightly larger value than this to ensure the records fit within the maximum payload size. The default value is 6 MB.

For cases where the payload might be arbitrarily large and is transmitted using HTTP chunked encoding, set the value to 0. This feature only works in supported algorithms. Currently, Amazon SageMaker built-in algorithms do not support this feature.

ModelName

Type: *string

The name of the model that you want to use for the transform job. ModelName must be the name of an existing Amazon SageMaker model within an AWS Region in an AWS account.

ModelName is a required field

Tags

Describes a tag.

TransformInput

Describes the input source of a transform job and the way the transform job consumes it.

TransformJobName

Type: *string

The name of the transform job. The name must be unique within an AWS Region in an AWS account.

TransformJobName is a required field

TransformOutput

Describes the results of a transform job output.

TransformResources

Describes the resources, including ML instance types and ML instance count, to use for transform job.

Method

GoString

func (s CreateTransformJobInput) GoString() string

GoString returns the string representation

SetBatchStrategy

func (s *CreateTransformJobInput) SetBatchStrategy(v string) *CreateTransformJobInput

SetBatchStrategy sets the BatchStrategy field's value.

SetEnvironment

func (s *CreateTransformJobInput) SetEnvironment(v map[string]*string) *CreateTransformJobInput

SetEnvironment sets the Environment field's value.

SetMaxConcurrentTransforms

func (s *CreateTransformJobInput) SetMaxConcurrentTransforms(v int64) *CreateTransformJobInput

SetMaxConcurrentTransforms sets the MaxConcurrentTransforms field's value.

SetMaxPayloadInMB

func (s *CreateTransformJobInput) SetMaxPayloadInMB(v int64) *CreateTransformJobInput

SetMaxPayloadInMB sets the MaxPayloadInMB field's value.

SetModelName

func (s *CreateTransformJobInput) SetModelName(v string) *CreateTransformJobInput

SetModelName sets the ModelName field's value.

SetTags

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

SetTags sets the Tags field's value.

SetTransformInput

func (s *CreateTransformJobInput) SetTransformInput(v *TransformInput) *CreateTransformJobInput

SetTransformInput sets the TransformInput field's value.

SetTransformJobName

func (s *CreateTransformJobInput) SetTransformJobName(v string) *CreateTransformJobInput

SetTransformJobName sets the TransformJobName field's value.

SetTransformOutput

func (s *CreateTransformJobInput) SetTransformOutput(v *TransformOutput) *CreateTransformJobInput

SetTransformOutput sets the TransformOutput field's value.

SetTransformResources

func (s *CreateTransformJobInput) SetTransformResources(v *TransformResources) *CreateTransformJobInput

SetTransformResources sets the TransformResources field's value.

String

func (s CreateTransformJobInput) String() string

String returns the string representation

Validate

func (s *CreateTransformJobInput) Validate() error

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

On this page: