Interface SageMakerEndpoint.Builder
- All Superinterfaces:
Buildable
,CopyableBuilder<SageMakerEndpoint.Builder,
,SageMakerEndpoint> SdkBuilder<SageMakerEndpoint.Builder,
,SageMakerEndpoint> SdkPojo
- Enclosing class:
SageMakerEndpoint
@Mutable
@NotThreadSafe
public static interface SageMakerEndpoint.Builder
extends SdkPojo, CopyableBuilder<SageMakerEndpoint.Builder,SageMakerEndpoint>
-
Method Summary
Modifier and TypeMethodDescriptionexecutionRole
(String executionRole) The ARN of the IAM role that Amazon SageMaker can assume to access model artifacts and docker image for deployment on Amazon EC2 compute instances or for batch transform jobs.initialInstanceCount
(Integer initialInstanceCount) The number of Amazon EC2 compute instances to deploy for initial endpoint creation.instanceType
(String instanceType) The Amazon EC2 compute instance type to deploy for hosting the model.kmsEncryptionKey
(String kmsEncryptionKey) The Amazon Web Services KMS key that Amazon SageMaker uses to encrypt data on the storage volume attached to the Amazon EC2 compute instance that hosts the endpoint.default SageMakerEndpoint.Builder
vpc
(Consumer<VpcConfig.Builder> vpc) The VPC configuration for the endpoint.The VPC configuration for the endpoint.Methods inherited from interface software.amazon.awssdk.utils.builder.CopyableBuilder
copy
Methods inherited from interface software.amazon.awssdk.utils.builder.SdkBuilder
applyMutation, build
Methods inherited from interface software.amazon.awssdk.core.SdkPojo
equalsBySdkFields, sdkFieldNameToField, sdkFields
-
Method Details
-
initialInstanceCount
The number of Amazon EC2 compute instances to deploy for initial endpoint creation.
- Parameters:
initialInstanceCount
- The number of Amazon EC2 compute instances to deploy for initial endpoint creation.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
instanceType
The Amazon EC2 compute instance type to deploy for hosting the model.
- Parameters:
instanceType
- The Amazon EC2 compute instance type to deploy for hosting the model.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
executionRole
The ARN of the IAM role that Amazon SageMaker can assume to access model artifacts and docker image for deployment on Amazon EC2 compute instances or for batch transform jobs.
- Parameters:
executionRole
- The ARN of the IAM role that Amazon SageMaker can assume to access model artifacts and docker image for deployment on Amazon EC2 compute instances or for batch transform jobs.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
kmsEncryptionKey
The Amazon Web Services KMS key that Amazon SageMaker uses to encrypt data on the storage volume attached to the Amazon EC2 compute instance that hosts the endpoint.
- Parameters:
kmsEncryptionKey
- The Amazon Web Services KMS key that Amazon SageMaker uses to encrypt data on the storage volume attached to the Amazon EC2 compute instance that hosts the endpoint.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
vpc
The VPC configuration for the endpoint.
- Parameters:
vpc
- The VPC configuration for the endpoint.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
vpc
The VPC configuration for the endpoint.
This is a convenience method that creates an instance of theVpcConfig.Builder
avoiding the need to create one manually viaVpcConfig.builder()
.When the
Consumer
completes,SdkBuilder.build()
is called immediately and its result is passed tovpc(VpcConfig)
.- Parameters:
vpc
- a consumer that will call methods onVpcConfig.Builder
- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-