listDaemonDeployments
abstract suspend fun listDaemonDeployments(input: ListDaemonDeploymentsRequest): ListDaemonDeploymentsResponse
Returns a list of daemon deployments for a specified daemon. You can filter the results by status or creation time.
Samples
import aws.sdk.kotlin.services.ecs.model.DaemonDeploymentStatus
fun main() {
//sampleStart
// This example lists all successful daemon deployments for the my monitoring daemon daemon.
val resp = ecsClient.listDaemonDeployments {
daemonArn = "arn:aws:ecs:us-east-1:123456789012:daemon/my-cluster/my-monitoring-daemon"
status = listOf<DaemonDeploymentStatus>(
DaemonDeploymentStatus.fromValue("SUCCESSFUL")
)
}
//sampleEnd
}