Interface ModelClientOptions
- All Superinterfaces:
software.amazon.jsii.JsiiSerializable
- All Known Implementing Classes:
ModelClientOptions.Jsii$Proxy
@Generated(value="jsii-pacmak/1.104.0 (build e79254c)",
date="2025-01-07T10:36:15.828Z")
@Stability(Stable)
public interface ModelClientOptions
extends software.amazon.jsii.JsiiSerializable
Configures the timeout and maximum number of retries for processing a transform job invocation.
Example:
SageMakerCreateTransformJob.Builder.create(this, "Batch Inference") .transformJobName("MyTransformJob") .modelName("MyModelName") .modelClientOptions(ModelClientOptions.builder() .invocationsMaxRetries(3) // default is 0 .invocationsTimeout(Duration.minutes(5)) .build()) .transformInput(TransformInput.builder() .transformDataSource(TransformDataSource.builder() .s3DataSource(TransformS3DataSource.builder() .s3Uri("s3://inputbucket/train") .s3DataType(S3DataType.S3_PREFIX) .build()) .build()) .build()) .transformOutput(TransformOutput.builder() .s3OutputPath("s3://outputbucket/TransformJobOutputPath") .build()) .transformResources(TransformResources.builder() .instanceCount(1) .instanceType(InstanceType.of(InstanceClass.M4, InstanceSize.XLARGE)) .build()) .build();
-
Nested Class Summary
Modifier and TypeInterfaceDescriptionstatic final class
A builder forModelClientOptions
static final class
An implementation forModelClientOptions
-
Method Summary
Modifier and TypeMethodDescriptionstatic ModelClientOptions.Builder
builder()
default Number
The maximum number of retries when invocation requests are failing.default Duration
The timeout duration for an invocation request.Methods inherited from interface software.amazon.jsii.JsiiSerializable
$jsii$toJson
-
Method Details
-
getInvocationsMaxRetries
The maximum number of retries when invocation requests are failing.Default: 0
-
getInvocationsTimeout
The timeout duration for an invocation request.Default: Duration.minutes(1)
-
builder
- Returns:
- a
ModelClientOptions.Builder
ofModelClientOptions
-