public static final class CfnModelProps.Builder
extends java.lang.Object
CfnModelProps
Constructor and Description |
---|
Builder() |
public CfnModelProps.Builder executionRoleArn(java.lang.String executionRoleArn)
CfnModelProps.getExecutionRoleArn()
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.
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.
this
public CfnModelProps.Builder containers(IResolvable containers)
CfnModelProps.getContainers()
containers
- Specifies the containers in the inference pipeline.this
public CfnModelProps.Builder containers(java.util.List<? extends java.lang.Object> containers)
CfnModelProps.getContainers()
containers
- Specifies the containers in the inference pipeline.this
public CfnModelProps.Builder enableNetworkIsolation(java.lang.Boolean enableNetworkIsolation)
CfnModelProps.getEnableNetworkIsolation()
enableNetworkIsolation
- Isolates the model container.
No inbound or outbound network calls can be made to or from the model container.this
public CfnModelProps.Builder enableNetworkIsolation(IResolvable enableNetworkIsolation)
CfnModelProps.getEnableNetworkIsolation()
enableNetworkIsolation
- Isolates the model container.
No inbound or outbound network calls can be made to or from the model container.this
public CfnModelProps.Builder inferenceExecutionConfig(IResolvable inferenceExecutionConfig)
CfnModelProps.getInferenceExecutionConfig()
inferenceExecutionConfig
- Specifies details of how containers in a multi-container endpoint are called.this
public CfnModelProps.Builder inferenceExecutionConfig(CfnModel.InferenceExecutionConfigProperty inferenceExecutionConfig)
CfnModelProps.getInferenceExecutionConfig()
inferenceExecutionConfig
- Specifies details of how containers in a multi-container endpoint are called.this
public CfnModelProps.Builder modelName(java.lang.String modelName)
CfnModelProps.getModelName()
modelName
- The name of the new model.this
public CfnModelProps.Builder primaryContainer(IResolvable primaryContainer)
CfnModelProps.getPrimaryContainer()
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
public CfnModelProps.Builder primaryContainer(CfnModel.ContainerDefinitionProperty primaryContainer)
CfnModelProps.getPrimaryContainer()
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
public CfnModelProps.Builder tags(java.util.List<? extends CfnTag> tags)
CfnModelProps.getTags()
tags
- A list of key-value pairs to apply to this resource.
For more information, see Resource Tag and Using Cost Allocation Tags in the AWS Billing and Cost Management User Guide .this
public CfnModelProps.Builder vpcConfig(IResolvable vpcConfig)
CfnModelProps.getVpcConfig()
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
public CfnModelProps.Builder vpcConfig(CfnModel.VpcConfigProperty vpcConfig)
CfnModelProps.getVpcConfig()
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
public CfnModelProps build()
CfnModelProps
java.lang.NullPointerException
- if any required attribute was not provided