Interface SageMakerCreateModelProps
- All Superinterfaces:
software.amazon.jsii.JsiiSerializable
,TaskStateBaseProps
- All Known Implementing Classes:
SageMakerCreateModelProps.Jsii$Proxy
@Generated(value="jsii-pacmak/1.103.1 (build bef2dea)",
date="2024-10-25T14:21:24.617Z")
@Stability(Stable)
public interface SageMakerCreateModelProps
extends software.amazon.jsii.JsiiSerializable, TaskStateBaseProps
Properties for creating an Amazon SageMaker model.
Example:
SageMakerCreateModel.Builder.create(this, "Sagemaker") .modelName("MyModel") .primaryContainer(ContainerDefinition.Builder.create() .image(DockerImage.fromJsonExpression(JsonPath.stringAt("$.Model.imageName"))) .mode(Mode.SINGLE_MODEL) .modelS3Location(S3Location.fromJsonExpression("$.TrainingJob.ModelArtifacts.S3ModelArtifacts")) .build()) .build();
- See Also:
-
Nested Class Summary
Modifier and TypeInterfaceDescriptionstatic final class
A builder forSageMakerCreateModelProps
static final class
An implementation forSageMakerCreateModelProps
-
Method Summary
Modifier and TypeMethodDescriptionbuilder()
default List<IContainerDefinition>
Specifies the containers in the inference pipeline.default Boolean
Isolates the model container.The name of the new model.The definition of the primary docker image containing inference code, associated artifacts, and custom environment map that the inference code uses when the model is deployed for predictions.default IRole
getRole()
An execution role that you can pass in a CreateModel API request.default SubnetSelection
The subnets of the VPC to which the hosted model is connected (Note this parameter is only used when VPC is provided).default TaskInput
getTags()
Tags to be applied to the model.default IVpc
getVpc()
The VPC that is accessible by the hosted model.Methods inherited from interface software.amazon.jsii.JsiiSerializable
$jsii$toJson
Methods inherited from interface software.amazon.awscdk.services.stepfunctions.TaskStateBaseProps
getComment, getCredentials, getHeartbeat, getHeartbeatTimeout, getInputPath, getIntegrationPattern, getOutputPath, getResultPath, getResultSelector, getStateName, getTaskTimeout, getTimeout
-
Method Details
-
getModelName
The name of the new model. -
getPrimaryContainer
The definition of the primary docker image containing inference code, associated artifacts, and custom environment map that the inference code uses when the model is deployed for predictions. -
getContainers
Specifies the containers in the inference pipeline.Default: - None
-
getEnableNetworkIsolation
Isolates the model container.No inbound or outbound network calls can be made to or from the model container.
Default: false
-
getRole
An execution role that you can pass in a CreateModel API request.Default: - a role will be created.
-
getSubnetSelection
The subnets of the VPC to which the hosted model is connected (Note this parameter is only used when VPC is provided).Default: - Private Subnets are selected
-
getTags
Tags to be applied to the model.Default: - No tags
-
getVpc
The VPC that is accessible by the hosted model.Default: - None
-
builder
- Returns:
- a
SageMakerCreateModelProps.Builder
ofSageMakerCreateModelProps
-