getTaskProtection
Retrieves the protection status of tasks in an Amazon ECS service.
Samples
fun main() {
//sampleStart
// In this example, we get the protection status for a single task.
val resp = ecsClient.getTaskProtection {
cluster = "test-task-protection"
tasks = listOf<String>(
"b8b1cf532d0e46ba8d44a40d1de16772"
)
}
//sampleEnd
}