Class TransformResources.Builder
java.lang.Object
software.amazon.awscdk.services.stepfunctions.tasks.TransformResources.Builder
- All Implemented Interfaces:
software.amazon.jsii.Builder<TransformResources>
- Enclosing interface:
- TransformResources
@Stability(Stable)
public static final class TransformResources.Builder
extends Object
implements software.amazon.jsii.Builder<TransformResources>
A builder for
TransformResources
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionbuild()
Builds the configured instance.instanceCount
(Number instanceCount) Sets the value ofTransformResources.getInstanceCount()
instanceType
(InstanceType instanceType) Sets the value ofTransformResources.getInstanceType()
volumeEncryptionKey
(IKey volumeEncryptionKey) Sets the value ofTransformResources.getVolumeEncryptionKey()
-
Constructor Details
-
Builder
public Builder()
-
-
Method Details
-
instanceCount
Sets the value ofTransformResources.getInstanceCount()
- Parameters:
instanceCount
- Number of ML compute instances to use in the transform job. This parameter is required.- Returns:
this
-
instanceType
Sets the value ofTransformResources.getInstanceType()
- Parameters:
instanceType
- ML compute instance type for the transform job. This parameter is required.- Returns:
this
-
volumeEncryptionKey
Sets the value ofTransformResources.getVolumeEncryptionKey()
- Parameters:
volumeEncryptionKey
- AWS KMS key that Amazon SageMaker uses to encrypt data on the storage volume attached to the ML compute instance(s).- Returns:
this
-
build
Builds the configured instance.- Specified by:
build
in interfacesoftware.amazon.jsii.Builder<TransformResources>
- Returns:
- a new instance of
TransformResources
- Throws:
NullPointerException
- if any required attribute was not provided
-