listTaskDefinitionFamilies
abstract suspend fun listTaskDefinitionFamilies(input: ListTaskDefinitionFamiliesRequest = ListTaskDefinitionFamiliesRequest { }): ListTaskDefinitionFamiliesResponse
Returns a list of task definition families that are registered to your account. This list includes task definition families that no longer have any ACTIVE
task definition revisions.
You can filter out task definition families that don't contain any ACTIVE
task definition revisions by setting the status
parameter to ACTIVE
. You can also filter the results with the familyPrefix
parameter.
Samples
fun main() {
//sampleStart
// This example lists the task definition revisions that start with "hpcc".
val resp = ecsClient.listTaskDefinitionFamilies {
familyPrefix = "hpcc"
}
//sampleEnd
}
fun main() {
//sampleStart
// This example lists all of your registered task definition families.
val resp = ecsClient.listTaskDefinitionFamilies()
//sampleEnd
}