updateClusterSettings
inline suspend fun EcsClient.updateClusterSettings(crossinline block: UpdateClusterSettingsRequest.Builder.() -> Unit): UpdateClusterSettingsResponse
Modifies the settings to use for a cluster.
Samples
import aws.sdk.kotlin.services.ecs.model.ClusterSetting
import aws.sdk.kotlin.services.ecs.model.ClusterSettingName
fun main() {
//sampleStart
// This example enables CloudWatch Container Insights for the default cluster.
val resp = ecsClient.updateClusterSettings {
cluster = "default"
settings = listOf<ClusterSetting>(
ClusterSetting {
name = ClusterSettingName.fromValue("containerInsights")
value = "enabled"
}
)
}
//sampleEnd
}