| Modifier and Type | Method and Description |
|---|---|
static PlacementConstraint |
PlacementConstraint.distinctInstances()
Use distinctInstance to ensure that each task in a particular group is running on a different container instance.
|
static PlacementConstraint |
PlacementConstraint.memberOf(String... expressions)
Use memberOf to restrict the selection to a group of valid candidates specified by a query expression.
|
| Modifier and Type | Method and Description |
|---|---|
default List<PlacementConstraint> |
Ec2TaskDefinitionProps.getPlacementConstraints()
An array of placement constraint objects to use for the task.
|
List<PlacementConstraint> |
Ec2TaskDefinitionProps.Jsii$Proxy.getPlacementConstraints() |
default List<PlacementConstraint> |
Ec2ServiceProps.getPlacementConstraints()
The placement constraints to use for tasks in the service.
|
List<PlacementConstraint> |
Ec2ServiceProps.Jsii$Proxy.getPlacementConstraints() |
default List<PlacementConstraint> |
TaskDefinitionProps.getPlacementConstraints()
The placement constraints to use for tasks in the service.
|
List<PlacementConstraint> |
TaskDefinitionProps.Jsii$Proxy.getPlacementConstraints() |
| Modifier and Type | Method and Description |
|---|---|
void |
TaskDefinition.addPlacementConstraint(PlacementConstraint constraint)
Adds the specified placement constraint to the task definition.
|
void |
Ec2Service.addPlacementConstraints(PlacementConstraint... constraints)
Adds one or more placement constraints to use for tasks in the service.
|
| Modifier and Type | Method and Description |
|---|---|
Ec2TaskDefinitionProps.Builder |
Ec2TaskDefinitionProps.Builder.placementConstraints(List<? extends PlacementConstraint> placementConstraints)
Sets the value of
Ec2TaskDefinitionProps.getPlacementConstraints() |
TaskDefinition.Builder |
TaskDefinition.Builder.placementConstraints(List<? extends PlacementConstraint> placementConstraints)
The placement constraints to use for tasks in the service.
|
Ec2Service.Builder |
Ec2Service.Builder.placementConstraints(List<? extends PlacementConstraint> placementConstraints)
The placement constraints to use for tasks in the service.
|
Ec2ServiceProps.Builder |
Ec2ServiceProps.Builder.placementConstraints(List<? extends PlacementConstraint> placementConstraints)
Sets the value of
Ec2ServiceProps.getPlacementConstraints() |
TaskDefinitionProps.Builder |
TaskDefinitionProps.Builder.placementConstraints(List<? extends PlacementConstraint> placementConstraints)
Sets the value of
TaskDefinitionProps.getPlacementConstraints() |
Ec2TaskDefinition.Builder |
Ec2TaskDefinition.Builder.placementConstraints(List<? extends PlacementConstraint> placementConstraints)
An array of placement constraint objects to use for the task.
|
Copyright © 2021. All rights reserved.