Class CfnFleet.AcceleratorCapabilitiesProperty.Builder

java.lang.Object
software.amazon.awscdk.services.deadline.CfnFleet.AcceleratorCapabilitiesProperty.Builder
All Implemented Interfaces:
software.amazon.jsii.Builder<CfnFleet.AcceleratorCapabilitiesProperty>
Enclosing interface:
CfnFleet.AcceleratorCapabilitiesProperty

@Stability(Stable) public static final class CfnFleet.AcceleratorCapabilitiesProperty.Builder extends Object implements software.amazon.jsii.Builder<CfnFleet.AcceleratorCapabilitiesProperty>
  • Constructor Details

    • Builder

      public Builder()
  • Method Details

    • selections

      @Stability(Stable) public CfnFleet.AcceleratorCapabilitiesProperty.Builder selections(IResolvable selections)
      Parameters:
      selections - A list of accelerator capabilities requested for this fleet. This parameter is required. Only Amazon Elastic Compute Cloud instances that provide these capabilities will be used. For example, if you specify both L4 and T4 chips, AWS Deadline Cloud will use Amazon EC2 instances that have either the L4 or the T4 chip installed.

      • You must specify at least one accelerator selection.
      • You cannot specify the same accelerator name multiple times in the selections list.
      • All accelerators in the selections must use the same runtime version.

      Returns:
      this
    • selections

      @Stability(Stable) public CfnFleet.AcceleratorCapabilitiesProperty.Builder selections(List<? extends Object> selections)
      Parameters:
      selections - A list of accelerator capabilities requested for this fleet. This parameter is required. Only Amazon Elastic Compute Cloud instances that provide these capabilities will be used. For example, if you specify both L4 and T4 chips, AWS Deadline Cloud will use Amazon EC2 instances that have either the L4 or the T4 chip installed.

      • You must specify at least one accelerator selection.
      • You cannot specify the same accelerator name multiple times in the selections list.
      • All accelerators in the selections must use the same runtime version.

      Returns:
      this
    • count

      @Stability(Stable) public CfnFleet.AcceleratorCapabilitiesProperty.Builder count(IResolvable count)
      Parameters:
      count - The number of GPU accelerators specified for worker hosts in this fleet.

      You must specify either acceleratorCapabilities.count.max or allowedInstanceTypes when using accelerator capabilities. If you don't specify a maximum count, AWS Deadline Cloud uses the instance types you specify in allowedInstanceTypes to determine the maximum number of accelerators.

      Returns:
      this
    • count

      Parameters:
      count - The number of GPU accelerators specified for worker hosts in this fleet.

      You must specify either acceleratorCapabilities.count.max or allowedInstanceTypes when using accelerator capabilities. If you don't specify a maximum count, AWS Deadline Cloud uses the instance types you specify in allowedInstanceTypes to determine the maximum number of accelerators.

      Returns:
      this
    • build

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