Interface CfnServicePropsMixin.PlacementConstraintProperty

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

@Stability(Stable) public static interface CfnServicePropsMixin.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.mixins.preview.services.ecs.mixins.*;
 PlacementConstraintProperty placementConstraintProperty = PlacementConstraintProperty.builder()
         .expression("expression")
         .type("type")
         .build();
 

See Also: