Class EcsFargateLaunchTargetOptions.Builder
java.lang.Object
software.amazon.awscdk.services.stepfunctions.tasks.EcsFargateLaunchTargetOptions.Builder
- All Implemented Interfaces:
software.amazon.jsii.Builder<EcsFargateLaunchTargetOptions>
- Enclosing interface:
EcsFargateLaunchTargetOptions
@Stability(Stable)
public static final class EcsFargateLaunchTargetOptions.Builder
extends Object
implements software.amazon.jsii.Builder<EcsFargateLaunchTargetOptions>
A builder for
EcsFargateLaunchTargetOptions-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbuild()Builds the configured instance.capacityProviderOptions(CapacityProviderOptions capacityProviderOptions) Sets the value ofEcsFargateLaunchTargetOptions.getCapacityProviderOptions()platformVersion(FargatePlatformVersion platformVersion) Sets the value ofEcsFargateLaunchTargetOptions.getPlatformVersion()
-
Constructor Details
-
Builder
public Builder()
-
-
Method Details
-
platformVersion
@Stability(Stable) public EcsFargateLaunchTargetOptions.Builder platformVersion(FargatePlatformVersion platformVersion) Sets the value ofEcsFargateLaunchTargetOptions.getPlatformVersion()- Parameters:
platformVersion- Refers to a specific runtime environment for Fargate task infrastructure. This parameter is required. Fargate platform version is a combination of the kernel and container runtime versions.- Returns:
this
-
capacityProviderOptions
@Stability(Stable) public EcsFargateLaunchTargetOptions.Builder capacityProviderOptions(CapacityProviderOptions capacityProviderOptions) Sets the value ofEcsFargateLaunchTargetOptions.getCapacityProviderOptions()- Parameters:
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().- Returns:
this
-
build
Builds the configured instance.- Specified by:
buildin interfacesoftware.amazon.jsii.Builder<EcsFargateLaunchTargetOptions>- Returns:
- a new instance of
EcsFargateLaunchTargetOptions - Throws:
NullPointerException- if any required attribute was not provided
-