Interface CfnService.PlacementConstraintProperty

All Superinterfaces:
software.amazon.jsii.JsiiSerializable
All Known Implementing Classes:
CfnService.PlacementConstraintProperty.Jsii$Proxy
Enclosing class:
CfnService

@Stability(Stable) public static interface CfnService.PlacementConstraintProperty extends software.amazon.jsii.JsiiSerializable
An object representing a constraint on task placement.

For more information, see Task placement constraints in the Amazon Elastic Container Service Developer Guide .

If you're using the Fargate launch type, task placement constraints aren't supported.

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.*;
 PlacementConstraintProperty placementConstraintProperty = PlacementConstraintProperty.builder()
         .type("type")
         // the properties below are optional
         .expression("expression")
         .build();
 

See Also: