Modifier and Type | Method and Description |
---|---|
CfnModel |
build() |
CfnModel.Builder |
containers(IResolvable containers)
Specifies the containers in the inference pipeline.
|
CfnModel.Builder |
containers(java.util.List<? extends java.lang.Object> containers)
Specifies the containers in the inference pipeline.
|
static CfnModel.Builder |
create(Construct scope,
java.lang.String id) |
CfnModel.Builder |
enableNetworkIsolation(java.lang.Boolean enableNetworkIsolation)
Isolates the model container.
|
CfnModel.Builder |
enableNetworkIsolation(IResolvable enableNetworkIsolation)
Isolates the model container.
|
CfnModel.Builder |
executionRoleArn(java.lang.String executionRoleArn)
The Amazon Resource Name (ARN) of the IAM role that SageMaker can assume to access model artifacts and docker image for deployment on ML compute instances or for batch transform jobs.
|
CfnModel.Builder |
inferenceExecutionConfig(CfnModel.InferenceExecutionConfigProperty inferenceExecutionConfig)
Specifies details of how containers in a multi-container endpoint are called.
|
CfnModel.Builder |
inferenceExecutionConfig(IResolvable inferenceExecutionConfig)
Specifies details of how containers in a multi-container endpoint are called.
|
CfnModel.Builder |
modelName(java.lang.String modelName)
The name of the new model.
|
CfnModel.Builder |
primaryContainer(CfnModel.ContainerDefinitionProperty primaryContainer)
The location 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.
|
CfnModel.Builder |
primaryContainer(IResolvable primaryContainer)
The location 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.
|
CfnModel.Builder |
tags(java.util.List<? extends CfnTag> tags)
A list of key-value pairs to apply to this resource.
|
CfnModel.Builder |
vpcConfig(CfnModel.VpcConfigProperty vpcConfig)
A [VpcConfig](https://docs.aws.amazon.com/sagemaker/latest/dg/API_VpcConfig.html) object that specifies the VPC that you want your model to connect to.
|
CfnModel.Builder |
vpcConfig(IResolvable vpcConfig)
A [VpcConfig](https://docs.aws.amazon.com/sagemaker/latest/dg/API_VpcConfig.html) object that specifies the VPC that you want your model to connect to.
|
public static CfnModel.Builder create(Construct scope, java.lang.String id)
scope
- - scope in which this resource is defined. This parameter is required.id
- - scoped id of the resource. This parameter is required.CfnModel.ContainerDefinitionProperty.Builder
.public CfnModel.Builder executionRoleArn(java.lang.String executionRoleArn)
Deploying on ML compute instances is part of model hosting. For more information, see SageMaker Roles .
To be able to pass this role to SageMaker, the caller of this API must have the
iam:PassRole
permission.
executionRoleArn
- The Amazon Resource Name (ARN) of the IAM role that SageMaker can assume to access model artifacts and docker image for deployment on ML compute instances or for batch transform jobs. This parameter is required.this
public CfnModel.Builder containers(IResolvable containers)
containers
- Specifies the containers in the inference pipeline. This parameter is required.this
public CfnModel.Builder containers(java.util.List<? extends java.lang.Object> containers)
containers
- Specifies the containers in the inference pipeline. This parameter is required.this
public CfnModel.Builder enableNetworkIsolation(java.lang.Boolean enableNetworkIsolation)
No inbound or outbound network calls can be made to or from the model container.
enableNetworkIsolation
- Isolates the model container. This parameter is required.this
public CfnModel.Builder enableNetworkIsolation(IResolvable enableNetworkIsolation)
No inbound or outbound network calls can be made to or from the model container.
enableNetworkIsolation
- Isolates the model container. This parameter is required.this
public CfnModel.Builder inferenceExecutionConfig(IResolvable inferenceExecutionConfig)
inferenceExecutionConfig
- Specifies details of how containers in a multi-container endpoint are called. This parameter is required.this
public CfnModel.Builder inferenceExecutionConfig(CfnModel.InferenceExecutionConfigProperty inferenceExecutionConfig)
inferenceExecutionConfig
- Specifies details of how containers in a multi-container endpoint are called. This parameter is required.this
public CfnModel.Builder modelName(java.lang.String modelName)
modelName
- The name of the new model. This parameter is required.this
public CfnModel.Builder primaryContainer(IResolvable primaryContainer)
primaryContainer
- The location 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. This parameter is required.this
public CfnModel.Builder primaryContainer(CfnModel.ContainerDefinitionProperty primaryContainer)
primaryContainer
- The location 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. This parameter is required.this
public CfnModel.Builder tags(java.util.List<? extends CfnTag> tags)
For more information, see Resource Tag and Using Cost Allocation Tags in the AWS Billing and Cost Management User Guide .
tags
- A list of key-value pairs to apply to this resource. This parameter is required.this
public CfnModel.Builder vpcConfig(IResolvable vpcConfig)
vpcConfig
- A [VpcConfig](https://docs.aws.amazon.com/sagemaker/latest/dg/API_VpcConfig.html) object that specifies the VPC that you want your model to connect to. Control access to and from your model container by configuring the VPC. `VpcConfig` is used in hosting services and in batch transform. For more information, see [Protect Endpoints by Using an Amazon Virtual Private Cloud](https://docs.aws.amazon.com/sagemaker/latest/dg/host-vpc.html) and [Protect Data in Batch Transform Jobs by Using an Amazon Virtual Private Cloud](https://docs.aws.amazon.com/sagemaker/latest/dg/batch-vpc.html) . This parameter is required.this
public CfnModel.Builder vpcConfig(CfnModel.VpcConfigProperty vpcConfig)
vpcConfig
- A [VpcConfig](https://docs.aws.amazon.com/sagemaker/latest/dg/API_VpcConfig.html) object that specifies the VPC that you want your model to connect to. Control access to and from your model container by configuring the VPC. `VpcConfig` is used in hosting services and in batch transform. For more information, see [Protect Endpoints by Using an Amazon Virtual Private Cloud](https://docs.aws.amazon.com/sagemaker/latest/dg/host-vpc.html) and [Protect Data in Batch Transform Jobs by Using an Amazon Virtual Private Cloud](https://docs.aws.amazon.com/sagemaker/latest/dg/batch-vpc.html) . This parameter is required.this
public CfnModel build()