Class RunEcsEc2TaskProps.Builder
java.lang.Object
software.amazon.awscdk.services.stepfunctions.tasks.RunEcsEc2TaskProps.Builder
- All Implemented Interfaces:
software.amazon.jsii.Builder<RunEcsEc2TaskProps>
- Enclosing interface:
- RunEcsEc2TaskProps
@Stability(Deprecated)
@Deprecated
public static final class RunEcsEc2TaskProps.Builder
extends Object
implements software.amazon.jsii.Builder<RunEcsEc2TaskProps>
Deprecated.
A builder for
RunEcsEc2TaskProps-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbuild()Deprecated.Deprecated.Sets the value ofCommonEcsRunTaskProps.getCluster()containerOverrides(List<? extends ContainerOverride> containerOverrides) Deprecated.Sets the value ofCommonEcsRunTaskProps.getContainerOverrides()integrationPattern(ServiceIntegrationPattern integrationPattern) Deprecated.Sets the value ofCommonEcsRunTaskProps.getIntegrationPattern()placementConstraints(List<? extends PlacementConstraint> placementConstraints) Deprecated.placementStrategies(List<? extends PlacementStrategy> placementStrategies) Deprecated.securityGroup(ISecurityGroup securityGroup) Deprecated.subnets(SubnetSelection subnets) Deprecated.taskDefinition(TaskDefinition taskDefinition) Deprecated.Sets the value ofCommonEcsRunTaskProps.getTaskDefinition()
-
Constructor Details
-
Builder
public Builder()Deprecated.
-
-
Method Details
-
placementConstraints
@Stability(Deprecated) @Deprecated public RunEcsEc2TaskProps.Builder placementConstraints(List<? extends PlacementConstraint> placementConstraints) Deprecated.Sets the value ofRunEcsEc2TaskProps.getPlacementConstraints()- Parameters:
placementConstraints- Placement constraints.- Returns:
this
-
placementStrategies
@Stability(Deprecated) @Deprecated public RunEcsEc2TaskProps.Builder placementStrategies(List<? extends PlacementStrategy> placementStrategies) Deprecated.Sets the value ofRunEcsEc2TaskProps.getPlacementStrategies()- Parameters:
placementStrategies- Placement strategies.- Returns:
this
-
securityGroup
@Stability(Deprecated) @Deprecated public RunEcsEc2TaskProps.Builder securityGroup(ISecurityGroup securityGroup) Deprecated.Sets the value ofRunEcsEc2TaskProps.getSecurityGroup()- Parameters:
securityGroup- Existing security group to use for the task's ENIs. (Only applicable in case the TaskDefinition is configured for AwsVpc networking)- Returns:
this
-
subnets
@Stability(Deprecated) @Deprecated public RunEcsEc2TaskProps.Builder subnets(SubnetSelection subnets) Deprecated.Sets the value ofRunEcsEc2TaskProps.getSubnets()- Parameters:
subnets- In what subnets to place the task's ENIs. (Only applicable in case the TaskDefinition is configured for AwsVpc networking)- Returns:
this
-
cluster
Deprecated.Sets the value ofCommonEcsRunTaskProps.getCluster()- Parameters:
cluster- The topic to run the task on. This parameter is required.- Returns:
this
-
taskDefinition
Deprecated.Sets the value ofCommonEcsRunTaskProps.getTaskDefinition()- Parameters:
taskDefinition- Task Definition used for running tasks in the service. This parameter is required. Note: this must be TaskDefinition, and not ITaskDefinition, as it requires properties that are not known for imported task definitions- Returns:
this
-
containerOverrides
@Stability(Stable) public RunEcsEc2TaskProps.Builder containerOverrides(List<? extends ContainerOverride> containerOverrides) Deprecated.Sets the value ofCommonEcsRunTaskProps.getContainerOverrides()- Parameters:
containerOverrides- Container setting overrides. Key is the name of the container to override, value is the values you want to override.- Returns:
this
-
integrationPattern
@Stability(Stable) public RunEcsEc2TaskProps.Builder integrationPattern(ServiceIntegrationPattern integrationPattern) Deprecated.Sets the value ofCommonEcsRunTaskProps.getIntegrationPattern()- Parameters:
integrationPattern- The service integration pattern indicates different ways to call RunTask in ECS. The valid value for Lambda is FIRE_AND_FORGET, SYNC and WAIT_FOR_TASK_TOKEN.- Returns:
this
-
build
Deprecated.Builds the configured instance.- Specified by:
buildin interfacesoftware.amazon.jsii.Builder<RunEcsEc2TaskProps>- Returns:
- a new instance of
RunEcsEc2TaskProps - Throws:
NullPointerException- if any required attribute was not provided
-