aws_sdk_ecs/client/
update_capacity_provider.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 [`UpdateCapacityProvider`](crate::operation::update_capacity_provider::builders::UpdateCapacityProviderFluentBuilder) operation.
4    ///
5    /// - The fluent builder is configurable:
6    ///   - [`name(impl Into<String>)`](crate::operation::update_capacity_provider::builders::UpdateCapacityProviderFluentBuilder::name) / [`set_name(Option<String>)`](crate::operation::update_capacity_provider::builders::UpdateCapacityProviderFluentBuilder::set_name):<br>required: **true**<br><p>The name of the capacity provider to update.</p><br>
7    ///   - [`cluster(impl Into<String>)`](crate::operation::update_capacity_provider::builders::UpdateCapacityProviderFluentBuilder::cluster) / [`set_cluster(Option<String>)`](crate::operation::update_capacity_provider::builders::UpdateCapacityProviderFluentBuilder::set_cluster):<br>required: **false**<br><p>The name of the cluster that contains the capacity provider to update. Managed instances capacity providers are cluster-scoped and can only be updated within their associated cluster.</p><br>
8    ///   - [`auto_scaling_group_provider(AutoScalingGroupProviderUpdate)`](crate::operation::update_capacity_provider::builders::UpdateCapacityProviderFluentBuilder::auto_scaling_group_provider) / [`set_auto_scaling_group_provider(Option<AutoScalingGroupProviderUpdate>)`](crate::operation::update_capacity_provider::builders::UpdateCapacityProviderFluentBuilder::set_auto_scaling_group_provider):<br>required: **false**<br><p>An object that represent the parameters to update for the Auto Scaling group capacity provider.</p><br>
9    ///   - [`managed_instances_provider(UpdateManagedInstancesProviderConfiguration)`](crate::operation::update_capacity_provider::builders::UpdateCapacityProviderFluentBuilder::managed_instances_provider) / [`set_managed_instances_provider(Option<UpdateManagedInstancesProviderConfiguration>)`](crate::operation::update_capacity_provider::builders::UpdateCapacityProviderFluentBuilder::set_managed_instances_provider):<br>required: **false**<br><p>The updated configuration for the Amazon ECS Managed Instances provider. You can modify the infrastructure role, instance launch template, and tag propagation settings. Changes take effect for new instances launched after the update.</p><br>
10    /// - On success, responds with [`UpdateCapacityProviderOutput`](crate::operation::update_capacity_provider::UpdateCapacityProviderOutput) with field(s):
11    ///   - [`capacity_provider(Option<CapacityProvider>)`](crate::operation::update_capacity_provider::UpdateCapacityProviderOutput::capacity_provider): <p>Details about the capacity provider.</p>
12    /// - On failure, responds with [`SdkError<UpdateCapacityProviderError>`](crate::operation::update_capacity_provider::UpdateCapacityProviderError)
13    pub fn update_capacity_provider(&self) -> crate::operation::update_capacity_provider::builders::UpdateCapacityProviderFluentBuilder {
14        crate::operation::update_capacity_provider::builders::UpdateCapacityProviderFluentBuilder::new(self.handle.clone())
15    }
16}