Interface TransformInput

All Superinterfaces:
software.amazon.jsii.JsiiSerializable
All Known Implementing Classes:
TransformInput.Jsii$Proxy

@Generated(value="jsii-pacmak/1.104.0 (build e79254c)", date="2024-11-06T23:25:17.837Z") @Stability(Stable) public interface TransformInput extends software.amazon.jsii.JsiiSerializable
Dataset to be transformed and the Amazon S3 location where it is stored.

Example:

 SageMakerCreateTransformJob.Builder.create(this, "Batch Inference")
         .transformJobName("MyTransformJob")
         .modelName("MyModelName")
         .modelClientOptions(ModelClientOptions.builder()
                 .invocationsMaxRetries(3) // default is 0
                 .invocationsTimeout(Duration.minutes(5))
                 .build())
         .transformInput(TransformInput.builder()
                 .transformDataSource(TransformDataSource.builder()
                         .s3DataSource(TransformS3DataSource.builder()
                                 .s3Uri("s3://inputbucket/train")
                                 .s3DataType(S3DataType.S3_PREFIX)
                                 .build())
                         .build())
                 .build())
         .transformOutput(TransformOutput.builder()
                 .s3OutputPath("s3://outputbucket/TransformJobOutputPath")
                 .build())
         .transformResources(TransformResources.builder()
                 .instanceCount(1)
                 .instanceType(InstanceType.of(InstanceClass.M4, InstanceSize.XLARGE))
                 .build())
         .build();
 
  • Method Details

    • getTransformDataSource

      @Stability(Stable) @NotNull TransformDataSource getTransformDataSource()
      S3 location of the channel data.
    • getCompressionType

      @Stability(Stable) @Nullable default CompressionType getCompressionType()
      The compression type of the transform data.

      Default: NONE

    • getContentType

      @Stability(Stable) @Nullable default String getContentType()
      Multipurpose internet mail extension (MIME) type of the data.

      Default: - None

    • getSplitType

      @Stability(Stable) @Nullable default SplitType getSplitType()
      Method to use to split the transform job's data files into smaller batches.

      Default: NONE

    • builder

      @Stability(Stable) static TransformInput.Builder builder()
      Returns:
      a TransformInput.Builder of TransformInput