aws-cdk-lib.aws_sagemaker.CfnModelPackage.TransformJobDefinitionProperty

interface TransformJobDefinitionProperty

LanguageType name
.NETAmazon.CDK.AWS.Sagemaker.CfnModelPackage.TransformJobDefinitionProperty
Gogithub.com/aws/aws-cdk-go/awscdk/v2/awssagemaker#CfnModelPackage_TransformJobDefinitionProperty
Javasoftware.amazon.awscdk.services.sagemaker.CfnModelPackage.TransformJobDefinitionProperty
Pythonaws_cdk.aws_sagemaker.CfnModelPackage.TransformJobDefinitionProperty
TypeScript aws-cdk-lib » aws_sagemaker » CfnModelPackage » TransformJobDefinitionProperty

Defines the input needed to run a transform job using the inference specification specified in the algorithm.

Example

// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
import { aws_sagemaker as sagemaker } from 'aws-cdk-lib';
const transformJobDefinitionProperty: sagemaker.CfnModelPackage.TransformJobDefinitionProperty = {
  transformInput: {
    dataSource: {
      s3DataSource: {
        s3DataType: 's3DataType',
        s3Uri: 's3Uri',
      },
    },

    // the properties below are optional
    compressionType: 'compressionType',
    contentType: 'contentType',
    splitType: 'splitType',
  },
  transformOutput: {
    s3OutputPath: 's3OutputPath',

    // the properties below are optional
    accept: 'accept',
    assembleWith: 'assembleWith',
    kmsKeyId: 'kmsKeyId',
  },
  transformResources: {
    instanceCount: 123,
    instanceType: 'instanceType',

    // the properties below are optional
    volumeKmsKeyId: 'volumeKmsKeyId',
  },

  // the properties below are optional
  batchStrategy: 'batchStrategy',
  environment: {
    environmentKey: 'environment',
  },
  maxConcurrentTransforms: 123,
  maxPayloadInMb: 123,
};

Properties

NameTypeDescription
transformInputIResolvable | TransformInputPropertyA description of the input source and the way the transform job consumes it.
transformOutputIResolvable | TransformOutputPropertyIdentifies the Amazon S3 location where you want Amazon SageMaker to save the results from the transform job.
transformResourcesIResolvable | TransformResourcesPropertyIdentifies the ML compute instances for the transform job.
batchStrategy?stringA string that determines the number of records included in a single mini-batch.
environment?IResolvable | { [string]: string }The environment variables to set in the Docker container.
maxConcurrentTransforms?numberThe maximum number of parallel requests that can be sent to each instance in a transform job.
maxPayloadInMb?numberThe maximum payload size allowed, in MB.

transformInput

Type: IResolvable | TransformInputProperty

A description of the input source and the way the transform job consumes it.


transformOutput

Type: IResolvable | TransformOutputProperty

Identifies the Amazon S3 location where you want Amazon SageMaker to save the results from the transform job.


transformResources

Type: IResolvable | TransformResourcesProperty

Identifies the ML compute instances for the transform job.


batchStrategy?

Type: string (optional)

A string that determines the number of records included in a single mini-batch.

SingleRecord means only one record is used per mini-batch. MultiRecord means a mini-batch is set to contain as many records that can fit within the MaxPayloadInMB limit.


environment?

Type: IResolvable | { [string]: string } (optional)

The environment variables to set in the Docker container.

We support up to 16 key and values entries in the map.


maxConcurrentTransforms?

Type: number (optional)

The maximum number of parallel requests that can be sent to each instance in a transform job.

The default value is 1.


maxPayloadInMb?

Type: number (optional)

The maximum payload size allowed, in MB.

A payload is the data portion of a record (without metadata).