Properties
| Name | Type | Description |
|---|---|---|
| taskDefinition | string | The family and revision or full ARN of the task definition to run. |
| cluster | string | The short name or full ARN of the cluster to run the task on. |
| count | integer | The number of instantiations of the specified task to place on your cluster (1-10). |
| launchType | string | The launch type on which to run your task. |
| capacityProviderStrategy | array | |
| platformVersion | string | The platform version the task uses (Fargate launch type only). |
| placementConstraints | array | |
| placementStrategy | array | |
| group | string | The name of the task group to associate with the task. |
| startedBy | string | An optional tag specified when a task is started. |
| tags | array | |
| enableECSManagedTags | boolean | |
| enableExecuteCommand | boolean | Whether to enable Amazon ECS Exec for the task. |
| propagateTags | string | |
| clientToken | string | An identifier you provide to ensure the idempotency of the request. |
JSON Schema
{
"$schema": "https://json-schema.org/draft/2020-12/schema",
"title": "RunTaskRequest",
"type": "object",
"properties": {
"taskDefinition": {
"type": "string",
"description": "The family and revision or full ARN of the task definition to run."
},
"cluster": {
"type": "string",
"description": "The short name or full ARN of the cluster to run the task on."
},
"count": {
"type": "integer",
"description": "The number of instantiations of the specified task to place on your cluster (1-10)."
},
"launchType": {
"type": "string",
"description": "The launch type on which to run your task."
},
"capacityProviderStrategy": {
"type": "array"
},
"platformVersion": {
"type": "string",
"description": "The platform version the task uses (Fargate launch type only)."
},
"placementConstraints": {
"type": "array"
},
"placementStrategy": {
"type": "array"
},
"group": {
"type": "string",
"description": "The name of the task group to associate with the task."
},
"startedBy": {
"type": "string",
"description": "An optional tag specified when a task is started."
},
"tags": {
"type": "array"
},
"enableECSManagedTags": {
"type": "boolean"
},
"enableExecuteCommand": {
"type": "boolean",
"description": "Whether to enable Amazon ECS Exec for the task."
},
"propagateTags": {
"type": "string"
},
"clientToken": {
"type": "string",
"description": "An identifier you provide to ensure the idempotency of the request."
}
}
}