Class CfnModelPackage.TransformResourcesProperty.Builder
java.lang.Object
software.amazon.awscdk.services.sagemaker.CfnModelPackage.TransformResourcesProperty.Builder
- All Implemented Interfaces:
software.amazon.jsii.Builder<CfnModelPackage.TransformResourcesProperty>
- Enclosing interface:
CfnModelPackage.TransformResourcesProperty
@Stability(Stable)
public static final class CfnModelPackage.TransformResourcesProperty.Builder
extends Object
implements software.amazon.jsii.Builder<CfnModelPackage.TransformResourcesProperty>
A builder for
CfnModelPackage.TransformResourcesProperty
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionbuild()
Builds the configured instance.instanceCount
(Number instanceCount) Sets the value ofCfnModelPackage.TransformResourcesProperty.getInstanceCount()
instanceType
(String instanceType) Sets the value ofCfnModelPackage.TransformResourcesProperty.getInstanceType()
volumeKmsKeyId
(String volumeKmsKeyId) Sets the value ofCfnModelPackage.TransformResourcesProperty.getVolumeKmsKeyId()
-
Constructor Details
-
Builder
public Builder()
-
-
Method Details
-
instanceCount
@Stability(Stable) public CfnModelPackage.TransformResourcesProperty.Builder instanceCount(Number instanceCount) Sets the value ofCfnModelPackage.TransformResourcesProperty.getInstanceCount()
- Parameters:
instanceCount
- The number of ML compute instances to use in the transform job. This parameter is required. The default value is1
, and the maximum is100
. For distributed transform jobs, specify a value greater than1
.- Returns:
this
-
instanceType
@Stability(Stable) public CfnModelPackage.TransformResourcesProperty.Builder instanceType(String instanceType) Sets the value ofCfnModelPackage.TransformResourcesProperty.getInstanceType()
- Parameters:
instanceType
- The ML compute instance type for the transform job. This parameter is required. If you are using built-in algorithms to transform moderately sized datasets, we recommend using ml.m4.xlarge orml.m5.large
instance types.- Returns:
this
-
volumeKmsKeyId
@Stability(Stable) public CfnModelPackage.TransformResourcesProperty.Builder volumeKmsKeyId(String volumeKmsKeyId) Sets the value ofCfnModelPackage.TransformResourcesProperty.getVolumeKmsKeyId()
- Parameters:
volumeKmsKeyId
- The AWS Key Management Service ( AWS KMS) key that Amazon SageMaker uses to encrypt model data on the storage volume attached to the ML compute instance(s) that run the batch transform job.Certain Nitro-based instances include local storage, dependent on the instance type. Local storage volumes are encrypted using a hardware module on the instance. You can't request a
VolumeKmsKeyId
when using an instance type with local storage.For a list of instance types that support local instance storage, see Instance Store Volumes .
For more information about local instance storage encryption, see SSD Instance Store Volumes .
The
VolumeKmsKeyId
can be any of the following formats:- Key ID:
1234abcd-12ab-34cd-56ef-1234567890ab
- Key ARN:
arn:aws:kms:us-west-2:111122223333:key/1234abcd-12ab-34cd-56ef-1234567890ab
- Alias name:
alias/ExampleAlias
- Alias name ARN:
arn:aws:kms:us-west-2:111122223333:alias/ExampleAlias
- Key ID:
- Returns:
this
-
build
Builds the configured instance.- Specified by:
build
in interfacesoftware.amazon.jsii.Builder<CfnModelPackage.TransformResourcesProperty>
- Returns:
- a new instance of
CfnModelPackage.TransformResourcesProperty
- Throws:
NullPointerException
- if any required attribute was not provided
-