CfnTransformJobProps

class aws_cdk.aws_sagemaker.CfnTransformJobProps(*, model_name, transform_input, transform_output, transform_resources, batch_strategy=None, data_capture_config=None, data_processing=None, environment=None, experiment_config=None, max_concurrent_transforms=None, max_payload_in_mb=None, model_client_config=None, tags=None)

Bases: object

Properties for defining a CfnTransformJob.

Parameters:
  • model_name (str) – The name of the model that you want to use for the transform job.

  • transform_input (Union[IResolvable, TransformInputProperty, Dict[str, Any]]) – Describes the input source and the way the transform job consumes it.

  • transform_output (Union[IResolvable, TransformOutputProperty, Dict[str, Any]]) – Describes the results of the transform job.

  • transform_resources (Union[IResolvable, TransformResourcesProperty, Dict[str, Any]]) – Describes the resources, including ML instance types and ML instance count, to use for the transform job.

  • batch_strategy (Optional[str]) – Specifies the number of records to include in a mini-batch for an HTTP inference request.

  • data_capture_config (Union[IResolvable, DataCaptureConfigProperty, Dict[str, Any], None]) – Configuration to control how SageMaker captures inference data.

  • data_processing (Union[IResolvable, DataProcessingProperty, Dict[str, Any], None]) – The data structure used to specify the data to be used for inference in a batch transform job.

  • environment (Union[IResolvable, Mapping[str, str], None]) – The environment variables to set in the Docker container.

  • experiment_config (Union[IResolvable, ExperimentConfigProperty, Dict[str, Any], None]) – Associates a SageMaker job as a trial component with an experiment and trial.

  • max_concurrent_transforms (Union[int, float, None]) – The maximum number of parallel requests that can be sent to each instance in a transform job.

  • max_payload_in_mb (Union[int, float, None]) – The maximum allowed size of the payload, in MB.

  • model_client_config (Union[IResolvable, ModelClientConfigProperty, Dict[str, Any], None]) – Configures the timeout and maximum number of retries for processing a transform job invocation.

  • tags (Optional[Sequence[Union[TagsItemsProperty, Dict[str, Any]]]]) – An array of key-value pairs.

See:

http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-sagemaker-transformjob.html

ExampleMetadata:

fixture=_generated

Example:

# The code below shows an example of how to instantiate this type.
# The values are placeholders you should change.
from aws_cdk import aws_sagemaker as sagemaker

cfn_transform_job_props = sagemaker.CfnTransformJobProps(
    model_name="modelName",
    transform_input=sagemaker.CfnTransformJob.TransformInputProperty(
        data_source=sagemaker.CfnTransformJob.DataSourceProperty(
            s3_data_source=sagemaker.CfnTransformJob.S3DataSourceProperty(
                s3_data_type="s3DataType",
                s3_uri="s3Uri"
            )
        ),

        # the properties below are optional
        compression_type="compressionType",
        content_type="contentType",
        split_type="splitType"
    ),
    transform_output=sagemaker.CfnTransformJob.TransformOutputProperty(
        s3_output_path="s3OutputPath",

        # the properties below are optional
        accept="accept",
        assemble_with="assembleWith",
        kms_key_id="kmsKeyId"
    ),
    transform_resources=sagemaker.CfnTransformJob.TransformResourcesProperty(
        instance_count=123,
        instance_type="instanceType",

        # the properties below are optional
        volume_kms_key_id="volumeKmsKeyId"
    ),

    # the properties below are optional
    batch_strategy="batchStrategy",
    data_capture_config=sagemaker.CfnTransformJob.DataCaptureConfigProperty(
        destination_s3_uri="destinationS3Uri",

        # the properties below are optional
        generate_inference_id=False,
        kms_key_id="kmsKeyId"
    ),
    data_processing=sagemaker.CfnTransformJob.DataProcessingProperty(
        input_filter="inputFilter",
        join_source="joinSource",
        output_filter="outputFilter"
    ),
    environment={
        "environment_key": "environment"
    },
    experiment_config=sagemaker.CfnTransformJob.ExperimentConfigProperty(
        experiment_name="experimentName",
        trial_component_display_name="trialComponentDisplayName",
        trial_name="trialName"
    ),
    max_concurrent_transforms=123,
    max_payload_in_mb=123,
    model_client_config=sagemaker.CfnTransformJob.ModelClientConfigProperty(
        invocations_max_retries=123,
        invocations_timeout_in_seconds=123
    ),
    tags=[sagemaker.CfnTransformJob.TagsItemsProperty(
        key="key",
        value="value"
    )]
)

Attributes

batch_strategy

Specifies the number of records to include in a mini-batch for an HTTP inference request.

See:

http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-sagemaker-transformjob.html#cfn-sagemaker-transformjob-batchstrategy

data_capture_config

Configuration to control how SageMaker captures inference data.

See:

http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-sagemaker-transformjob.html#cfn-sagemaker-transformjob-datacaptureconfig

data_processing

The data structure used to specify the data to be used for inference in a batch transform job.

See:

http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-sagemaker-transformjob.html#cfn-sagemaker-transformjob-dataprocessing

environment

The environment variables to set in the Docker container.

See:

http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-sagemaker-transformjob.html#cfn-sagemaker-transformjob-environment

experiment_config

Associates a SageMaker job as a trial component with an experiment and trial.

See:

http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-sagemaker-transformjob.html#cfn-sagemaker-transformjob-experimentconfig

max_concurrent_transforms

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

See:

http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-sagemaker-transformjob.html#cfn-sagemaker-transformjob-maxconcurrenttransforms

max_payload_in_mb

The maximum allowed size of the payload, in MB.

See:

http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-sagemaker-transformjob.html#cfn-sagemaker-transformjob-maxpayloadinmb

model_client_config

Configures the timeout and maximum number of retries for processing a transform job invocation.

See:

http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-sagemaker-transformjob.html#cfn-sagemaker-transformjob-modelclientconfig

model_name

The name of the model that you want to use for the transform job.

See:

http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-sagemaker-transformjob.html#cfn-sagemaker-transformjob-modelname

tags

An array of key-value pairs.

See:

http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-sagemaker-transformjob.html#cfn-sagemaker-transformjob-tags

transform_input

Describes the input source and the way the transform job consumes it.

See:

http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-sagemaker-transformjob.html#cfn-sagemaker-transformjob-transforminput

transform_output

Describes the results of the transform job.

See:

http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-sagemaker-transformjob.html#cfn-sagemaker-transformjob-transformoutput

transform_resources

Describes the resources, including ML instance types and ML instance count, to use for the transform job.

See:

http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-sagemaker-transformjob.html#cfn-sagemaker-transformjob-transformresources