Interface CfnModelPackage.TransformJobDefinitionProperty

All Superinterfaces:
software.amazon.jsii.JsiiSerializable
All Known Implementing Classes:
CfnModelPackage.TransformJobDefinitionProperty.Jsii$Proxy
Enclosing class:
CfnModelPackage

@Stability(Stable) public static interface CfnModelPackage.TransformJobDefinitionProperty extends software.amazon.jsii.JsiiSerializable
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 software.amazon.awscdk.services.sagemaker.*;
 TransformJobDefinitionProperty transformJobDefinitionProperty = TransformJobDefinitionProperty.builder()
         .transformInput(TransformInputProperty.builder()
                 .dataSource(DataSourceProperty.builder()
                         .s3DataSource(S3DataSourceProperty.builder()
                                 .s3DataType("s3DataType")
                                 .s3Uri("s3Uri")
                                 .build())
                         .build())
                 // the properties below are optional
                 .compressionType("compressionType")
                 .contentType("contentType")
                 .splitType("splitType")
                 .build())
         .transformOutput(TransformOutputProperty.builder()
                 .s3OutputPath("s3OutputPath")
                 // the properties below are optional
                 .accept("accept")
                 .assembleWith("assembleWith")
                 .kmsKeyId("kmsKeyId")
                 .build())
         .transformResources(TransformResourcesProperty.builder()
                 .instanceCount(123)
                 .instanceType("instanceType")
                 // the properties below are optional
                 .volumeKmsKeyId("volumeKmsKeyId")
                 .build())
         // the properties below are optional
         .batchStrategy("batchStrategy")
         .environment(Map.of(
                 "environmentKey", "environment"))
         .maxConcurrentTransforms(123)
         .maxPayloadInMb(123)
         .build();
 
  • Method Details

    • getTransformInput

      @Stability(Stable) @NotNull Object getTransformInput()
      A description of the input source and the way the transform job consumes it.
    • getTransformOutput

      @Stability(Stable) @NotNull Object getTransformOutput()
      Identifies the Amazon S3 location where you want Amazon SageMaker to save the results from the transform job.
    • getTransformResources

      @Stability(Stable) @NotNull Object getTransformResources()
      Identifies the ML compute instances for the transform job.
    • getBatchStrategy

      @Stability(Stable) @Nullable default String getBatchStrategy()
      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.

    • getEnvironment

      @Stability(Stable) @Nullable default Object getEnvironment()
      The environment variables to set in the Docker container.

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

    • getMaxConcurrentTransforms

      @Stability(Stable) @Nullable default Number getMaxConcurrentTransforms()
      The maximum number of parallel requests that can be sent to each instance in a transform job.

      The default value is 1.

    • getMaxPayloadInMb

      @Stability(Stable) @Nullable default Number getMaxPayloadInMb()
      The maximum payload size allowed, in MB.

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

    • builder

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