#[non_exhaustive]pub struct PutClusterCapacityProvidersInput { /* private fields */ }
Implementations
sourceimpl PutClusterCapacityProvidersInput
impl PutClusterCapacityProvidersInput
sourcepub async fn make_operation(
&self,
_config: &Config
) -> Result<Operation<PutClusterCapacityProviders, AwsErrorRetryPolicy>, BuildError>
pub async fn make_operation(
&self,
_config: &Config
) -> Result<Operation<PutClusterCapacityProviders, AwsErrorRetryPolicy>, BuildError>
Consumes the builder and constructs an Operation<PutClusterCapacityProviders
>
sourcepub fn builder() -> Builder
pub fn builder() -> Builder
Creates a new builder-style object to manufacture PutClusterCapacityProvidersInput
.
sourceimpl PutClusterCapacityProvidersInput
impl PutClusterCapacityProvidersInput
sourcepub fn cluster(&self) -> Option<&str>
pub fn cluster(&self) -> Option<&str>
The short name or full Amazon Resource Name (ARN) of the cluster to modify the capacity provider settings for. If you don't specify a cluster, the default cluster is assumed.
sourcepub fn capacity_providers(&self) -> Option<&[String]>
pub fn capacity_providers(&self) -> Option<&[String]>
The name of one or more capacity providers to associate with the cluster.
If specifying a capacity provider that uses an Auto Scaling group, the capacity provider must already be created. New capacity providers can be created with the CreateCapacityProvider
API operation.
To use a Fargate capacity provider, specify either the FARGATE
or FARGATE_SPOT
capacity providers. The Fargate capacity providers are available to all accounts and only need to be associated with a cluster to be used.
sourcepub fn default_capacity_provider_strategy(
&self
) -> Option<&[CapacityProviderStrategyItem]>
pub fn default_capacity_provider_strategy(
&self
) -> Option<&[CapacityProviderStrategyItem]>
The capacity provider strategy to use by default for the cluster.
When creating a service or running a task on a cluster, if no capacity provider or launch type is specified then the default capacity provider strategy for the cluster is used.
A capacity provider strategy consists of one or more capacity providers along with the base
and weight
to assign to them. A capacity provider must be associated with the cluster to be used in a capacity provider strategy. The PutClusterCapacityProviders
API is used to associate a capacity provider with a cluster. Only capacity providers with an ACTIVE
or UPDATING
status can be used.
If specifying a capacity provider that uses an Auto Scaling group, the capacity provider must already be created. New capacity providers can be created with the CreateCapacityProvider
API operation.
To use a Fargate capacity provider, specify either the FARGATE
or FARGATE_SPOT
capacity providers. The Fargate capacity providers are available to all accounts and only need to be associated with a cluster to be used.
Trait Implementations
sourceimpl Clone for PutClusterCapacityProvidersInput
impl Clone for PutClusterCapacityProvidersInput
sourcefn clone(&self) -> PutClusterCapacityProvidersInput
fn clone(&self) -> PutClusterCapacityProvidersInput
Returns a copy of the value. Read more
1.0.0 · sourcefn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from source
. Read more
sourceimpl PartialEq<PutClusterCapacityProvidersInput> for PutClusterCapacityProvidersInput
impl PartialEq<PutClusterCapacityProvidersInput> for PutClusterCapacityProvidersInput
sourcefn eq(&self, other: &PutClusterCapacityProvidersInput) -> bool
fn eq(&self, other: &PutClusterCapacityProvidersInput) -> bool
This method tests for self
and other
values to be equal, and is used
by ==
. Read more
impl StructuralPartialEq for PutClusterCapacityProvidersInput
Auto Trait Implementations
impl RefUnwindSafe for PutClusterCapacityProvidersInput
impl Send for PutClusterCapacityProvidersInput
impl Sync for PutClusterCapacityProvidersInput
impl Unpin for PutClusterCapacityProvidersInput
impl UnwindSafe for PutClusterCapacityProvidersInput
Blanket Implementations
sourceimpl<T> BorrowMut<T> for T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
sourceimpl<T> Instrument for T
impl<T> Instrument for T
sourcefn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
sourcefn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
sourceimpl<T> WithSubscriber for T
impl<T> WithSubscriber for T
sourcefn with_subscriber<S>(self, subscriber: S) -> WithDispatch<Self> where
S: Into<Dispatch>,
fn with_subscriber<S>(self, subscriber: S) -> WithDispatch<Self> where
S: Into<Dispatch>,
Attaches the provided Subscriber
to this type, returning a
WithDispatch
wrapper. Read more
sourcefn with_current_subscriber(self) -> WithDispatch<Self>
fn with_current_subscriber(self) -> WithDispatch<Self>
Attaches the current default Subscriber
to this type, returning a
WithDispatch
wrapper. Read more