Interface AwsEcsServicePlacementConstraintsDetails.Builder

    • Method Detail

      • expression

        AwsEcsServicePlacementConstraintsDetails.Builder expression​(String expression)

        A cluster query language expression to apply to the constraint. You cannot specify an expression if the constraint type is distinctInstance.

        Parameters:
        expression - A cluster query language expression to apply to the constraint. You cannot specify an expression if the constraint type is distinctInstance.
        Returns:
        Returns a reference to this object so that method calls can be chained together.
      • type

        AwsEcsServicePlacementConstraintsDetails.Builder type​(String type)

        The type of constraint. Use distinctInstance to run each task in a particular group on a different container instance. Use memberOf to restrict the selection to a group of valid candidates.

        Valid values: distinctInstance | memberOf

        Parameters:
        type - The type of constraint. Use distinctInstance to run each task in a particular group on a different container instance. Use memberOf to restrict the selection to a group of valid candidates.

        Valid values: distinctInstance | memberOf

        Returns:
        Returns a reference to this object so that method calls can be chained together.