describeTasks
inline suspend fun EcsClient.describeTasks(crossinline block: DescribeTasksRequest.Builder.() -> Unit): DescribeTasksResponse
Describes a specified task or tasks.
Currently, stopped tasks appear in the returned results for at least one hour.
If you have tasks with tags, and then delete the cluster, the tagged tasks are returned in the response. If you create a new cluster with the same name as the deleted cluster, the tagged tasks are not included in the response.
Samples
fun main() {
//sampleStart
// This example provides a description of the specified task, using the task UUID as an identifier.
val resp = ecsClient.describeTasks {
tasks = listOf<String>(
"c5cba4eb-5dad-405e-96db-71ef8eefe6a8"
)
}
//sampleEnd
}