Per my understanding, "task definition" for ECS is being created by Batch, and some fields, like env variables or mounting points, can be described in "job definition" and that is reflected in "task definition".
But what about other "task definition" parameters, which don't have a field in "job definition", like "portMappings"? How can I modify them?