aws_sdk_ecs/client/update_cluster_settings.rs
1// Code generated by software.amazon.smithy.rust.codegen.smithy-rs. DO NOT EDIT.
2impl super::Client {
3 /// Constructs a fluent builder for the [`UpdateClusterSettings`](crate::operation::update_cluster_settings::builders::UpdateClusterSettingsFluentBuilder) operation.
4 ///
5 /// - The fluent builder is configurable:
6 /// - [`cluster(impl Into<String>)`](crate::operation::update_cluster_settings::builders::UpdateClusterSettingsFluentBuilder::cluster) / [`set_cluster(Option<String>)`](crate::operation::update_cluster_settings::builders::UpdateClusterSettingsFluentBuilder::set_cluster):<br>required: **true**<br><p>The name of the cluster to modify the settings for.</p><br>
7 /// - [`settings(ClusterSetting)`](crate::operation::update_cluster_settings::builders::UpdateClusterSettingsFluentBuilder::settings) / [`set_settings(Option<Vec::<ClusterSetting>>)`](crate::operation::update_cluster_settings::builders::UpdateClusterSettingsFluentBuilder::set_settings):<br>required: **true**<br><p>The setting to use by default for a cluster. This parameter is used to turn on CloudWatch Container Insights for a cluster. If this value is specified, it overrides the <code>containerInsights</code> value set with <a href="https://docs.aws.amazon.com/AmazonECS/latest/APIReference/API_PutAccountSetting.html">PutAccountSetting</a> or <a href="https://docs.aws.amazon.com/AmazonECS/latest/APIReference/API_PutAccountSettingDefault.html">PutAccountSettingDefault</a>.</p><important> <p>Currently, if you delete an existing cluster that does not have Container Insights turned on, and then create a new cluster with the same name with Container Insights tuned on, Container Insights will not actually be turned on. If you want to preserve the same name for your existing cluster and turn on Container Insights, you must wait 7 days before you can re-create it.</p> </important><br>
8 /// - On success, responds with [`UpdateClusterSettingsOutput`](crate::operation::update_cluster_settings::UpdateClusterSettingsOutput) with field(s):
9 /// - [`cluster(Option<Cluster>)`](crate::operation::update_cluster_settings::UpdateClusterSettingsOutput::cluster): <p>Details about the cluster</p>
10 /// - On failure, responds with [`SdkError<UpdateClusterSettingsError>`](crate::operation::update_cluster_settings::UpdateClusterSettingsError)
11 pub fn update_cluster_settings(&self) -> crate::operation::update_cluster_settings::builders::UpdateClusterSettingsFluentBuilder {
12 crate::operation::update_cluster_settings::builders::UpdateClusterSettingsFluentBuilder::new(self.handle.clone())
13 }
14}