Class ResourceConfig.Builder

java.lang.Object
software.amazon.awscdk.services.stepfunctions.tasks.ResourceConfig.Builder
All Implemented Interfaces:
software.amazon.jsii.Builder<ResourceConfig>
Enclosing interface:
ResourceConfig

@Stability(Stable) public static final class ResourceConfig.Builder extends Object implements software.amazon.jsii.Builder<ResourceConfig>
A builder for ResourceConfig
  • Constructor Details

    • Builder

      public Builder()
  • Method Details

    • instanceCount

      @Stability(Stable) public ResourceConfig.Builder instanceCount(Number instanceCount)
      Parameters:
      instanceCount - The number of ML compute instances to use. This parameter is required.
      Returns:
      this
    • instanceType

      @Stability(Stable) public ResourceConfig.Builder instanceType(InstanceType instanceType)
      Parameters:
      instanceType - ML compute instance type. This parameter is required. To provide an instance type from the task input, supply an instance type in the following way where the value in the task input is an EC2 instance type prepended with "ml.":

                           new InstanceType(JsonPath.stringAt("$.path.to.instanceType"));
                           
      Returns:
      this
    • volumeSize

      @Stability(Stable) public ResourceConfig.Builder volumeSize(Size volumeSize)
      Parameters:
      volumeSize - Size of the ML storage volume that you want to provision. This parameter is required.
      Returns:
      this
    • volumeEncryptionKey

      @Stability(Stable) public ResourceConfig.Builder volumeEncryptionKey(IKey volumeEncryptionKey)
      Parameters:
      volumeEncryptionKey - 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.
      Returns:
      this
    • build

      @Stability(Stable) public ResourceConfig build()
      Builds the configured instance.
      Specified by:
      build in interface software.amazon.jsii.Builder<ResourceConfig>
      Returns:
      a new instance of ResourceConfig
      Throws:
      NullPointerException - if any required attribute was not provided