listTaskDefinitions
abstract suspend fun listTaskDefinitions(input: ListTaskDefinitionsRequest = ListTaskDefinitionsRequest { }): ListTaskDefinitionsResponse
Returns a list of task definitions that are registered to your account. You can filter the results by family name with the familyPrefix parameter or by status with the status parameter.
Samples
// This example lists all of your registered task definitions.
val resp = ecsClient.listTaskDefinitions()Content copied to clipboard
// This example lists the task definition revisions of a specified family.
val resp = ecsClient.listTaskDefinitions {
familyPrefix = "wordpress"
}Content copied to clipboard