Class CfnMonitoringSchedule.ClusterConfigProperty.Builder
java.lang.Object
software.amazon.awscdk.services.sagemaker.CfnMonitoringSchedule.ClusterConfigProperty.Builder
- All Implemented Interfaces:
software.amazon.jsii.Builder<CfnMonitoringSchedule.ClusterConfigProperty>
- Enclosing interface:
CfnMonitoringSchedule.ClusterConfigProperty
@Stability(Stable)
public static final class CfnMonitoringSchedule.ClusterConfigProperty.Builder
extends Object
implements software.amazon.jsii.Builder<CfnMonitoringSchedule.ClusterConfigProperty>
A builder for
CfnMonitoringSchedule.ClusterConfigProperty
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionbuild()
Builds the configured instance.instanceCount
(Number instanceCount) Sets the value ofCfnMonitoringSchedule.ClusterConfigProperty.getInstanceCount()
instanceType
(String instanceType) Sets the value ofCfnMonitoringSchedule.ClusterConfigProperty.getInstanceType()
volumeKmsKeyId
(String volumeKmsKeyId) Sets the value ofCfnMonitoringSchedule.ClusterConfigProperty.getVolumeKmsKeyId()
volumeSizeInGb
(Number volumeSizeInGb) Sets the value ofCfnMonitoringSchedule.ClusterConfigProperty.getVolumeSizeInGb()
-
Constructor Details
-
Builder
public Builder()
-
-
Method Details
-
instanceCount
@Stability(Stable) public CfnMonitoringSchedule.ClusterConfigProperty.Builder instanceCount(Number instanceCount) Sets the value ofCfnMonitoringSchedule.ClusterConfigProperty.getInstanceCount()
- Parameters:
instanceCount
- The number of ML compute instances to use in the model monitoring job. This parameter is required. For distributed processing jobs, specify a value greater than 1. The default value is 1.- Returns:
this
-
instanceType
@Stability(Stable) public CfnMonitoringSchedule.ClusterConfigProperty.Builder instanceType(String instanceType) Sets the value ofCfnMonitoringSchedule.ClusterConfigProperty.getInstanceType()
- Parameters:
instanceType
- The ML compute instance type for the processing job. This parameter is required.- Returns:
this
-
volumeSizeInGb
@Stability(Stable) public CfnMonitoringSchedule.ClusterConfigProperty.Builder volumeSizeInGb(Number volumeSizeInGb) Sets the value ofCfnMonitoringSchedule.ClusterConfigProperty.getVolumeSizeInGb()
- Parameters:
volumeSizeInGb
- The size of the ML storage volume, in gigabytes, that you want to provision. This parameter is required. You must specify sufficient ML storage for your scenario.- Returns:
this
-
volumeKmsKeyId
@Stability(Stable) public CfnMonitoringSchedule.ClusterConfigProperty.Builder volumeKmsKeyId(String volumeKmsKeyId) Sets the value ofCfnMonitoringSchedule.ClusterConfigProperty.getVolumeKmsKeyId()
- Parameters:
volumeKmsKeyId
- The AWS Key Management Service ( AWS KMS) key that Amazon SageMaker uses to encrypt data on the storage volume attached to the ML compute instance(s) that run the model monitoring job.- Returns:
this
-
build
Builds the configured instance.- Specified by:
build
in interfacesoftware.amazon.jsii.Builder<CfnMonitoringSchedule.ClusterConfigProperty>
- Returns:
- a new instance of
CfnMonitoringSchedule.ClusterConfigProperty
- Throws:
NullPointerException
- if any required attribute was not provided
-