Interface CfnTaskDefinition.TaskDefinitionPlacementConstraintProperty
- All Superinterfaces:
software.amazon.jsii.JsiiSerializable
- All Known Implementing Classes:
CfnTaskDefinition.TaskDefinitionPlacementConstraintProperty.Jsii$Proxy
- Enclosing class:
CfnTaskDefinition
@Stability(Stable)
public static interface CfnTaskDefinition.TaskDefinitionPlacementConstraintProperty
extends software.amazon.jsii.JsiiSerializable
The constraint on task placement in the task definition.
For more information, see Task placement constraints in the Amazon Elastic Container Service Developer Guide .
Task placement constraints aren't supported for tasks run on AWS Fargate .
Example:
// The code below shows an example of how to instantiate this type. // The values are placeholders you should change. import software.amazon.awscdk.services.ecs.*; TaskDefinitionPlacementConstraintProperty taskDefinitionPlacementConstraintProperty = TaskDefinitionPlacementConstraintProperty.builder() .type("type") // the properties below are optional .expression("expression") .build();
- See Also:
-
Nested Class Summary
Modifier and TypeInterfaceDescriptionstatic final class
static final class
An implementation forCfnTaskDefinition.TaskDefinitionPlacementConstraintProperty
-
Method Summary
Methods inherited from interface software.amazon.jsii.JsiiSerializable
$jsii$toJson
-
Method Details
-
getType
The type of constraint.The
MemberOf
constraint restricts selection to be from a group of valid candidates.- See Also:
-
getExpression
A cluster query language expression to apply to the constraint.For more information, see Cluster query language in the Amazon Elastic Container Service Developer Guide .
- See Also:
-
builder
@Stability(Stable) static CfnTaskDefinition.TaskDefinitionPlacementConstraintProperty.Builder builder()
-