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();
 
  • Method Details

    • getAllowAllOutbound

      @Stability(Experimental) @Nullable default Boolean 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

      @Stability(Experimental) @Nullable default List<ContainerDefinition> 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

      @Stability(Experimental) @Nullable default String 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

      @Stability(Experimental) @Nullable default Boolean 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

      @Stability(Experimental) @Nullable default IRole 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

      @Stability(Experimental) @Nullable default List<ISecurityGroup> 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

      @Stability(Experimental) @Nullable default IVpc getVpc()
      (experimental) The VPC to deploy model containers to.

      Default: - none

    • getVpcSubnets

      @Stability(Experimental) @Nullable default SubnetSelection getVpcSubnets()
      (experimental) The VPC subnets to use when deploying model containers.

      Default: - none

    • builder

      @Stability(Experimental) static ModelProps.Builder builder()
      Returns:
      a ModelProps.Builder of ModelProps