Interface ModelProps
- All Superinterfaces:
software.amazon.jsii.JsiiSerializable
- All Known Implementing Classes:
ModelProps.Jsii$Proxy
@Generated(value="jsii-pacmak/1.113.0 (build fc68b25)",
date="2025-10-14T12:28:23.846Z")
@Stability(Experimental)
public interface ModelProps
extends software.amazon.jsii.JsiiSerializable
(experimental) Construction properties for a SageMaker Model.
Example:
import software.amazon.awscdk.services.sagemaker.alpha.*;
ContainerImage image;
ModelData modelData;
Model model = Model.Builder.create(this, "ContainerModel")
.containers(List.of(ContainerDefinition.builder()
.image(image)
.modelData(modelData)
.build()))
.networkIsolation(true)
.build();
-
Nested Class Summary
Nested ClassesModifier and TypeInterfaceDescriptionstatic final classA builder forModelPropsstatic final classAn implementation forModelProps -
Method Summary
Modifier and TypeMethodDescriptionstatic ModelProps.Builderbuilder()default Boolean(experimental) Whether to allow the SageMaker Model to send all network traffic.default List<ContainerDefinition> (experimental) Specifies the container definitions for this model, consisting of either a single primary container or an inference pipeline of multiple containers.default String(experimental) Name of the SageMaker Model.default Boolean(experimental) Whether to enable network isolation for the model container.default IRolegetRole()(experimental) The IAM role that the Amazon SageMaker service assumes.default List<ISecurityGroup> (experimental) The security groups to associate to the Model.default IVpcgetVpc()(experimental) The VPC to deploy model containers to.default SubnetSelection(experimental) The VPC subnets to use when deploying model containers.Methods inherited from interface software.amazon.jsii.JsiiSerializable
$jsii$toJson
-
Method Details
-
getAllowAllOutbound
(experimental) Whether to allow the SageMaker Model to send all network traffic.If set to false, you must individually add traffic rules to allow the SageMaker Model to connect to network targets.
Only used if 'vpc' is supplied.
Default: true
-
getContainers
(experimental) Specifies the container definitions for this model, consisting of either a single primary container or an inference pipeline of multiple containers.Default: - none
-
getModelName
(experimental) Name of the SageMaker Model.Default: - AWS CloudFormation generates a unique physical ID and uses that ID for the model's name.
-
getNetworkIsolation
(experimental) Whether to enable network isolation for the model container.When enabled, no inbound or outbound network calls can be made to or from the model container.
Default: false
- See Also:
-
getRole
(experimental) The IAM role that the Amazon SageMaker service assumes.Default: - a new IAM role will be created with the `AmazonSageMakerFullAccess` policy attached.
- See Also:
-
getSecurityGroups
(experimental) The security groups to associate to the Model.If no security groups are provided and 'vpc' is configured, one security group will be created automatically.
Default: - A security group will be automatically created if 'vpc' is supplied
-
getVpc
(experimental) The VPC to deploy model containers to.Default: - none
-
getVpcSubnets
(experimental) The VPC subnets to use when deploying model containers.Default: - none
-
builder
- Returns:
- a
ModelProps.BuilderofModelProps
-