Interface CfnTaskDefinitionPropsMixin.TaskDefinitionPlacementConstraintProperty
- All Superinterfaces:
software.amazon.jsii.JsiiSerializable
- All Known Implementing Classes:
CfnTaskDefinitionPropsMixin.TaskDefinitionPlacementConstraintProperty.Jsii$Proxy
- Enclosing class:
CfnTaskDefinitionPropsMixin
@Stability(Stable)
public static interface CfnTaskDefinitionPropsMixin.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.cfnpropertymixins.services.ecs.*;
TaskDefinitionPlacementConstraintProperty taskDefinitionPlacementConstraintProperty = TaskDefinitionPlacementConstraintProperty.builder()
.expression("expression")
.type("type")
.build();
- See Also:
-
Nested Class Summary
Nested ClassesModifier and TypeInterfaceDescriptionstatic final classstatic final classAn implementation forCfnTaskDefinitionPropsMixin.TaskDefinitionPlacementConstraintProperty -
Method Summary
Methods inherited from interface software.amazon.jsii.JsiiSerializable
$jsii$toJson
-
Method Details
-
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:
-
getType
The type of constraint.The
MemberOfconstraint restricts selection to be from a group of valid candidates.- See Also:
-
builder
@Stability(Stable) static CfnTaskDefinitionPropsMixin.TaskDefinitionPlacementConstraintProperty.Builder builder()
-