@Stability(value=Experimental) public static final class ResourceConfig.Builder extends Object
ResourceConfig| Constructor and Description |
|---|
Builder() |
| Modifier and Type | Method and Description |
|---|---|
ResourceConfig |
build()
Builds the configured instance.
|
ResourceConfig.Builder |
withInstanceCount(Number value)
Sets the value of InstanceCount
|
ResourceConfig.Builder |
withInstanceType(software.amazon.awscdk.services.ec2.InstanceType value)
Sets the value of InstanceType
|
ResourceConfig.Builder |
withVolumeEncryptionKey(software.amazon.awscdk.services.kms.IKey value)
Sets the value of VolumeEncryptionKey
|
ResourceConfig.Builder |
withVolumeSizeInGb(Number value)
Sets the value of VolumeSizeInGb
|
@Stability(value=Experimental) public ResourceConfig.Builder withInstanceCount(Number value)
value - The number of ML compute instances to use.this@Stability(value=Experimental) public ResourceConfig.Builder withInstanceType(software.amazon.awscdk.services.ec2.InstanceType value)
value - ML compute instance type.this@Stability(value=Experimental) public ResourceConfig.Builder withVolumeSizeInGb(Number value)
value - Size of the ML storage volume that you want to provision.this@Stability(value=Experimental) public ResourceConfig.Builder withVolumeEncryptionKey(@Nullable software.amazon.awscdk.services.kms.IKey value)
value - KMS key that Amazon SageMaker uses to encrypt data on the storage volume attached to the ML compute instance(s) that run the training job.this@Stability(value=Experimental) public ResourceConfig build()
ResourceConfigNullPointerException - if any required attribute was not providedCopyright © 2019. All rights reserved.