Class EcsEc2LaunchTarget.Builder

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

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

    • create

      @Stability(Stable) public static EcsEc2LaunchTarget.Builder create()
      Returns:
      a new instance of EcsEc2LaunchTarget.Builder.
    • capacityProviderOptions

      @Stability(Stable) public EcsEc2LaunchTarget.Builder capacityProviderOptions(CapacityProviderOptions capacityProviderOptions)
      The capacity provider options to use for the task.

      This property allows you to set the capacity provider strategy for the task.

      If you want to set the capacity provider strategy for the task, specify CapacityProviderOptions.custom().

      If you want to use the cluster's default capacity provider strategy, specify CapacityProviderOptions.default().

      Default: - 'EC2' LaunchType running tasks on Amazon EC2 instances registered to your cluster is used without the capacity provider strategy.

      Parameters:
      capacityProviderOptions - The capacity provider options to use for the task. This parameter is required.
      Returns:
      this
    • placementConstraints

      @Stability(Stable) public EcsEc2LaunchTarget.Builder placementConstraints(List<? extends PlacementConstraint> placementConstraints)
      Placement constraints.

      Default: - None

      Parameters:
      placementConstraints - Placement constraints. This parameter is required.
      Returns:
      this
    • placementStrategies

      @Stability(Stable) public EcsEc2LaunchTarget.Builder placementStrategies(List<? extends PlacementStrategy> placementStrategies)
      Placement strategies.

      Default: - None

      Parameters:
      placementStrategies - Placement strategies. This parameter is required.
      Returns:
      this
    • build

      @Stability(Stable) public EcsEc2LaunchTarget build()
      Specified by:
      build in interface software.amazon.jsii.Builder<EcsEc2LaunchTarget>
      Returns:
      a newly built instance of EcsEc2LaunchTarget.