Class EcsFargateLaunchTarget.Builder

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

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

    • create

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

      @Stability(Stable) public EcsFargateLaunchTarget.Builder platformVersion(FargatePlatformVersion platformVersion)
      Refers to a specific runtime environment for Fargate task infrastructure.

      Fargate platform version is a combination of the kernel and container runtime versions.

      Parameters:
      platformVersion - Refers to a specific runtime environment for Fargate task infrastructure. This parameter is required.
      Returns:
      this
      See Also:
    • capacityProviderOptions

      @Stability(Stable) public EcsFargateLaunchTarget.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(). This is required to use the FARGATE_SPOT capacity provider.

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

      Default: - 'FARGATE' LaunchType running tasks on AWS Fargate On-Demand infrastructure is used without the capacity provider strategy.

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

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