code: public java.util.List<TaskDefinitionPlacementConstraint> getPlacementConstraints() {
          if (placementConstraints == null) {
              placementConstraints = new com.amazonaws.internal.SdkInternalList<TaskDefinitionPlacementConstraint>();
          }
          return placementConstraints;
      }
docs: <p>
  An array of placement constraint objects to use for tasks. This field is not valid if you are using the Fargate
  launch type for your task.
  </p>
  
  @return An array of placement constraint objects to use for tasks. This field is not valid if you are using the
  Fargate launch type for your task.