interface ModelProps
Language | Type name |
---|---|
![]() | Amazon.CDK.AWS.Sagemaker.Alpha.ModelProps |
![]() | github.com/aws/aws-cdk-go/awscdksagemakeralpha/v2#ModelProps |
![]() | software.amazon.awscdk.services.sagemaker.alpha.ModelProps |
![]() | aws_cdk.aws_sagemaker_alpha.ModelProps |
![]() | @aws-cdk/aws-sagemaker-alpha ยป ModelProps |
Construction properties for a SageMaker Model.
Example
import * as sagemaker from '@aws-cdk/aws-sagemaker-alpha';
declare const image: sagemaker.ContainerImage;
declare const modelData: sagemaker.ModelData;
const model = new sagemaker.Model(this, 'ContainerModel', {
containers: [
{
image,
modelData,
}
],
networkIsolation: true,
});
Properties
Name | Type | Description |
---|---|---|
allow | boolean | Whether to allow the SageMaker Model to send all network traffic. |
containers? | Container [] | Specifies the container definitions for this model, consisting of either a single primary container or an inference pipeline of multiple containers. |
model | string | Name of the SageMaker Model. |
network | boolean | Whether to enable network isolation for the model container. |
role? | IRole | The IAM role that the Amazon SageMaker service assumes. |
security | ISecurity [] | The security groups to associate to the Model. |
vpc? | IVpc | The VPC to deploy model containers to. |
vpc | Subnet | The VPC subnets to use when deploying model containers. |
allowAllOutbound?
Type:
boolean
(optional, default: true)
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.
containers?
Type:
Container
[]
(optional, default: none)
Specifies the container definitions for this model, consisting of either a single primary container or an inference pipeline of multiple containers.
modelName?
Type:
string
(optional, default: AWS CloudFormation generates a unique physical ID and uses that ID for the model's
name.)
Name of the SageMaker Model.
networkIsolation?
Type:
boolean
(optional, default: false)
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.
role?
Type:
IRole
(optional, default: a new IAM role will be created with the AmazonSageMakerFullAccess
policy attached.)
The IAM role that the Amazon SageMaker service assumes.
securityGroups?
Type:
ISecurity
[]
(optional, default: A security group will be automatically created if 'vpc' is supplied)
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.
vpc?
Type:
IVpc
(optional, default: none)
The VPC to deploy model containers to.
vpcSubnets?
Type:
Subnet
(optional, default: none)
The VPC subnets to use when deploying model containers.