@Stability(value=Stable) public static final class CfnModelProps.Builder extends Object implements software.amazon.jsii.Builder<CfnModelProps>
CfnModelProps| Constructor and Description |
|---|
Builder() |
@Stability(value=Stable) public CfnModelProps.Builder executionRoleArn(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:PassRolepermission.
this@Stability(value=Stable) public CfnModelProps.Builder containers(IResolvable containers)
CfnModelProps.getContainers()containers - Specifies the containers in the inference pipeline.this@Stability(value=Stable) public CfnModelProps.Builder containers(List<? extends Object> containers)
CfnModelProps.getContainers()containers - Specifies the containers in the inference pipeline.this@Stability(value=Stable) public CfnModelProps.Builder enableNetworkIsolation(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@Stability(value=Stable) 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@Stability(value=Stable) public CfnModelProps.Builder inferenceExecutionConfig(CfnModel.InferenceExecutionConfigProperty inferenceExecutionConfig)
CfnModelProps.getInferenceExecutionConfig()inferenceExecutionConfig - Specifies details of how containers in a multi-container endpoint are called.this@Stability(value=Stable) public CfnModelProps.Builder inferenceExecutionConfig(IResolvable inferenceExecutionConfig)
CfnModelProps.getInferenceExecutionConfig()inferenceExecutionConfig - Specifies details of how containers in a multi-container endpoint are called.this@Stability(value=Stable) public CfnModelProps.Builder modelName(String modelName)
CfnModelProps.getModelName()modelName - The name of the new model.this@Stability(value=Stable) 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@Stability(value=Stable) 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@Stability(value=Stable) public CfnModelProps.Builder tags(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@Stability(value=Stable) 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@Stability(value=Stable) 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@Stability(value=Stable) public CfnModelProps build()
build in interface software.amazon.jsii.Builder<CfnModelProps>CfnModelPropsNullPointerException - if any required attribute was not providedCopyright © 2022. All rights reserved.