listDeployments
inline suspend fun LaunchWizardClient.listDeployments(crossinline block: ListDeploymentsRequest.Builder.() -> Unit): ListDeploymentsResponse
Lists the deployments that have been created.
Samples
import aws.sdk.kotlin.services.launchwizard.model.DeploymentFilter
import aws.sdk.kotlin.services.launchwizard.model.DeploymentFilterKey
fun main() {
//sampleStart
// List deployments in the account with filters.
val resp = launchWizardClient.listDeployments {
filters = listOf<DeploymentFilter>(
DeploymentFilter {
name = DeploymentFilterKey.fromValue("DEPLOYMENT_STATUS")
values = listOf<String>(
"IN_PROGRESS"
)
}
)
}
//sampleEnd
}