# TransformJobDefinitionProperty

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

- Source: Generated code
- Type last changed: v2.93.0 · 23 Aug 2023

## Example

```ts
// 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

- `batchStrategy`: string — 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`: [IResolvable](/cdk/api/v2/docs/aws-cdk-lib.IResolvable.html) | { [key: string]: string } — The environment variables to set in the Docker container.

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

- `maxConcurrentTransforms`: number — The maximum number of parallel requests that can be sent to each instance in a transform job.

  The default value is 1.

- `maxPayloadInMb`: number — The maximum payload size allowed, in MB.

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

- `transformInput`: [IResolvable](/cdk/api/v2/docs/aws-cdk-lib.IResolvable.html) | [CfnModelPackage.TransformInputProperty](/cdk/api/v2/docs/aws-cdk-lib.aws_sagemaker.CfnModelPackage.TransformInputProperty.html) (required) — A description of the input source and the way the transform job consumes it.

- `transformOutput`: [IResolvable](/cdk/api/v2/docs/aws-cdk-lib.IResolvable.html) | [CfnModelPackage.TransformOutputProperty](/cdk/api/v2/docs/aws-cdk-lib.aws_sagemaker.CfnModelPackage.TransformOutputProperty.html) (required) — Identifies the Amazon S3 location where you want Amazon SageMaker to save the results from the transform job.

- `transformResources`: [IResolvable](/cdk/api/v2/docs/aws-cdk-lib.IResolvable.html) | [CfnModelPackage.TransformResourcesProperty](/cdk/api/v2/docs/aws-cdk-lib.aws_sagemaker.CfnModelPackage.TransformResourcesProperty.html) (required) — Identifies the ML compute instances for the transform job.
