listServiceDeployments

This operation lists all the service deployments that meet the specified filter criteria.

A service deployment happens when you release a software update for the service. You route traffic from the running service revisions to the new service revison and control the number of running tasks.

This API returns the values that you use for the request parameters in DescribeServiceRevisions.

Samples

import aws.sdk.kotlin.services.ecs.model.ServiceDeploymentStatus

fun main() { 
   //sampleStart 
   // This example lists all successful service deployments for the service "sd-example" in the cluster
// "example".
val resp = ecsClient.listServiceDeployments {
    service = "sd-example"
    cluster = "example"
    status = listOf<ServiceDeploymentStatus>(
        ServiceDeploymentStatus.fromValue("SUCCESSFUL")
    )
} 
   //sampleEnd
}