TransformDataSource
- class aws_cdk.aws_stepfunctions_tasks.TransformDataSource(*, s3_data_source)
Bases:
object
S3 location of the input data that the model can consume.
- Parameters:
s3_data_source (
Union
[TransformS3DataSource
,Dict
[str
,Any
]]) – S3 location of the input data.- ExampleMetadata:
infused
Example:
tasks.SageMakerCreateTransformJob(self, "Batch Inference", transform_job_name="MyTransformJob", model_name="MyModelName", model_client_options=tasks.ModelClientOptions( invocations_max_retries=3, # default is 0 invocations_timeout=Duration.minutes(5) ), transform_input=tasks.TransformInput( transform_data_source=tasks.TransformDataSource( s3_data_source=tasks.TransformS3DataSource( s3_uri="s3://inputbucket/train", s3_data_type=tasks.S3DataType.S3_PREFIX ) ) ), transform_output=tasks.TransformOutput( s3_output_path="s3://outputbucket/TransformJobOutputPath" ), transform_resources=tasks.TransformResources( instance_count=1, instance_type=ec2.InstanceType.of(ec2.InstanceClass.M4, ec2.InstanceSize.XLARGE) ) )
Attributes
- s3_data_source
S3 location of the input data.