aws-cdk-lib.aws_stepfunctions_tasks.TransformInput

interface TransformInput

LanguageType name
.NETAmazon.CDK.AWS.StepFunctions.Tasks.TransformInput
Gogithub.com/aws/aws-cdk-go/awscdk/v2/awsstepfunctionstasks#TransformInput
Javasoftware.amazon.awscdk.services.stepfunctions.tasks.TransformInput
Pythonaws_cdk.aws_stepfunctions_tasks.TransformInput
TypeScript (source)aws-cdk-lib » aws_stepfunctions_tasks » TransformInput

Dataset to be transformed and the Amazon S3 location where it is stored.

Example

new tasks.SageMakerCreateTransformJob(this, 'Batch Inference', {
  transformJobName: 'MyTransformJob',
  modelName: 'MyModelName',
  modelClientOptions: {
    invocationsMaxRetries: 3,  // default is 0
    invocationsTimeout: Duration.minutes(5),  // default is 60 seconds
  },
  transformInput: {
    transformDataSource: {
      s3DataSource: {
        s3Uri: 's3://inputbucket/train',
        s3DataType: tasks.S3DataType.S3_PREFIX,
      }
    }
  },
  transformOutput: {
    s3OutputPath: 's3://outputbucket/TransformJobOutputPath',
  },
  transformResources: {
    instanceCount: 1,
    instanceType: ec2.InstanceType.of(ec2.InstanceClass.M4, ec2.InstanceSize.XLARGE),
  }
});

Properties

NameTypeDescription
transformDataSourceTransformDataSourceS3 location of the channel data.
compressionType?CompressionTypeThe compression type of the transform data.
contentType?stringMultipurpose internet mail extension (MIME) type of the data.
splitType?SplitTypeMethod to use to split the transform job's data files into smaller batches.

transformDataSource

Type: TransformDataSource

S3 location of the channel data.


compressionType?

Type: CompressionType (optional, default: NONE)

The compression type of the transform data.


contentType?

Type: string (optional, default: None)

Multipurpose internet mail extension (MIME) type of the data.


splitType?

Type: SplitType (optional, default: NONE)

Method to use to split the transform job's data files into smaller batches.