aws_sdk_ecs/client/
update_cluster.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 [`UpdateCluster`](crate::operation::update_cluster::builders::UpdateClusterFluentBuilder) operation.
4    ///
5    /// - The fluent builder is configurable:
6    ///   - [`cluster(impl Into<String>)`](crate::operation::update_cluster::builders::UpdateClusterFluentBuilder::cluster) / [`set_cluster(Option<String>)`](crate::operation::update_cluster::builders::UpdateClusterFluentBuilder::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::builders::UpdateClusterFluentBuilder::settings) / [`set_settings(Option<Vec::<ClusterSetting>>)`](crate::operation::update_cluster::builders::UpdateClusterFluentBuilder::set_settings):<br>required: **false**<br><p>The cluster settings for your cluster.</p><br>
8    ///   - [`configuration(ClusterConfiguration)`](crate::operation::update_cluster::builders::UpdateClusterFluentBuilder::configuration) / [`set_configuration(Option<ClusterConfiguration>)`](crate::operation::update_cluster::builders::UpdateClusterFluentBuilder::set_configuration):<br>required: **false**<br><p>The execute command configuration for the cluster.</p><br>
9    ///   - [`service_connect_defaults(ClusterServiceConnectDefaultsRequest)`](crate::operation::update_cluster::builders::UpdateClusterFluentBuilder::service_connect_defaults) / [`set_service_connect_defaults(Option<ClusterServiceConnectDefaultsRequest>)`](crate::operation::update_cluster::builders::UpdateClusterFluentBuilder::set_service_connect_defaults):<br>required: **false**<br><p>Use this parameter to set a default Service Connect namespace. After you set a default Service Connect namespace, any new services with Service Connect turned on that are created in the cluster are added as client services in the namespace. This setting only applies to new services that set the <code>enabled</code> parameter to <code>true</code> in the <code>ServiceConnectConfiguration</code>. You can set the namespace of each service individually in the <code>ServiceConnectConfiguration</code> to override this default parameter.</p> <p>Tasks that run in a namespace can use short names to connect to services in the namespace. Tasks can connect to services across all of the clusters in the namespace. Tasks connect through a managed proxy container that collects logs and metrics for increased visibility. Only the tasks that Amazon ECS services create are supported with Service Connect. For more information, see <a href="https://docs.aws.amazon.com/AmazonECS/latest/developerguide/service-connect.html">Service Connect</a> in the <i>Amazon Elastic Container Service Developer Guide</i>.</p><br>
10    /// - On success, responds with [`UpdateClusterOutput`](crate::operation::update_cluster::UpdateClusterOutput) with field(s):
11    ///   - [`cluster(Option<Cluster>)`](crate::operation::update_cluster::UpdateClusterOutput::cluster): <p>Details about the cluster.</p>
12    /// - On failure, responds with [`SdkError<UpdateClusterError>`](crate::operation::update_cluster::UpdateClusterError)
13    pub fn update_cluster(&self) -> crate::operation::update_cluster::builders::UpdateClusterFluentBuilder {
14        crate::operation::update_cluster::builders::UpdateClusterFluentBuilder::new(self.handle.clone())
15    }
16}