Interface ModelProps
- All Superinterfaces:
software.amazon.jsii.JsiiSerializable
- All Known Implementing Classes:
ModelProps.Jsii$Proxy
@Generated(value="jsii-pacmak/1.103.1 (build bef2dea)",
date="2024-10-25T14:21:26.126Z")
@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
Modifier and TypeInterfaceDescriptionstatic final class
A builder forModelProps
static final class
An implementation forModelProps
-
Method Summary
Modifier and TypeMethodDescriptionstatic ModelProps.Builder
builder()
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 IRole
getRole()
(experimental) The IAM role that the Amazon SageMaker service assumes.default List<ISecurityGroup>
(experimental) The security groups to associate to the Model.default IVpc
getVpc()
(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.Builder
ofModelProps
-