Class TaskDefinitionPlacementConstraint


  • public final class TaskDefinitionPlacementConstraint
    extends java.lang.Object
    • Method Detail

      • expression

        public java.util.Optional<java.lang.String> expression()
        Returns:
        Cluster Query Language expression to apply to the constraint. For more information, see [Cluster Query Language in the Amazon EC2 Container Service Developer Guide](http://docs.aws.amazon.com/AmazonECS/latest/developerguide/cluster-query-language.html).
      • type

        public java.lang.String type()
        Returns:
        Type of constraint. Use `memberOf` to restrict selection to a group of valid candidates. Note that `distinctInstance` is not supported in task definitions.