ModelClientOptions
- class aws_cdk.aws_stepfunctions_tasks.ModelClientOptions(*, invocations_max_retries=None, invocations_timeout=None)
Bases:
object
Configures the timeout and maximum number of retries for processing a transform job invocation.
- Parameters:
invocations_max_retries (
Union
[int
,float
,None
]) – The maximum number of retries when invocation requests are failing. Default: 0invocations_timeout (
Optional
[Duration
]) – The timeout duration for an invocation request. Default: Duration.minutes(1)
- 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
- invocations_max_retries
The maximum number of retries when invocation requests are failing.
- Default:
0
- invocations_timeout
The timeout duration for an invocation request.
- Default:
Duration.minutes(1)