listTaskDefinitions
inline suspend fun EcsClient.listTaskDefinitions(crossinline block: ListTaskDefinitionsRequest.Builder.() -> Unit): 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
fun main() {
//sampleStart
// This example lists the task definition revisions of a specified family.
val resp = ecsClient.listTaskDefinitions {
familyPrefix = "wordpress"
}
//sampleEnd
}
fun main() {
//sampleStart
// This example lists all of your registered task definitions.
val resp = ecsClient.listTaskDefinitions()
//sampleEnd
}