Show / Hide Table of Contents

Interface IModelClientOptions

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

Namespace: Amazon.CDK.AWS.StepFunctions.Tasks
Assembly: Amazon.CDK.Lib.dll
Syntax (csharp)
public interface IModelClientOptions
Syntax (vb)
Public Interface IModelClientOptions
Remarks

ExampleMetadata: infused

Examples
new SageMakerCreateTransformJob(this, "Batch Inference", new SageMakerCreateTransformJobProps {
                TransformJobName = "MyTransformJob",
                ModelName = "MyModelName",
                ModelClientOptions = new ModelClientOptions {
                    InvocationsMaxRetries = 3,  // default is 0
                    InvocationsTimeout = Duration.Minutes(5)
                },
                TransformInput = new TransformInput {
                    TransformDataSource = new TransformDataSource {
                        S3DataSource = new TransformS3DataSource {
                            S3Uri = "s3://inputbucket/train",
                            S3DataType = S3DataType.S3_PREFIX
                        }
                    }
                },
                TransformOutput = new TransformOutput {
                    S3OutputPath = "s3://outputbucket/TransformJobOutputPath"
                },
                TransformResources = new TransformResources {
                    InstanceCount = 1,
                    InstanceType = InstanceType.Of(InstanceClass.M4, InstanceSize.XLARGE)
                }
            });

Synopsis

Properties

InvocationsMaxRetries

The maximum number of retries when invocation requests are failing.

InvocationsTimeout

The timeout duration for an invocation request.

Properties

InvocationsMaxRetries

The maximum number of retries when invocation requests are failing.

double? InvocationsMaxRetries { get; }
Property Value

double?

Remarks

Default: 0

InvocationsTimeout

The timeout duration for an invocation request.

Duration? InvocationsTimeout { get; }
Property Value

Duration

Remarks

Default: Duration.minutes(1)

Back to top Generated by DocFX