describeServiceDeployments
inline suspend fun EcsClient.describeServiceDeployments(crossinline block: DescribeServiceDeploymentsRequest.Builder.() -> Unit): DescribeServiceDeploymentsResponse
Describes one or more of your service deployments.
A service deployment happens when you release a software update for the service. For more information, see View service history using Amazon ECS service deployments.
Samples
// This example describes a service deployment for the service sd example in the example cluster.
val resp = ecsClient.describeServiceDeployments {
serviceDeploymentArns = listOf<String>(
"arn:aws:ecs:us-west-2:123456789012:service-deployment/example/sd-example/NCWGC2ZR-taawPAYrIaU5"
)
}Content copied to clipboard
// This example describes a service deployment that is currently paused at a lifecycle hook. The
// lifecycleHookDetails field shows the status of the pause hook, including when it will expire and what action will be
// taken if the timeout is reached.
val resp = ecsClient.describeServiceDeployments {
serviceDeploymentArns = listOf<String>(
"arn:aws:ecs:us-east-1:123456789012:service-deployment/MyCluster/MyService/r9i43YFjvgF_xlg7m2eJ1r"
)
}Content copied to clipboard