pub struct PutClusterCapacityProvidersRequest {
pub capacity_providers: Vec<String>,
pub cluster: String,
pub default_capacity_provider_strategy: Vec<CapacityProviderStrategyItem>,
}
Fields
capacity_providers: Vec<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 AWS Fargate capacity provider, specify either the FARGATE
or FARGATE_SPOT
capacity providers. The AWS Fargate capacity providers are available to all accounts and only need to be associated with a cluster to be used.
cluster: String
The short name or full Amazon Resource Name (ARN) of the cluster to modify the capacity provider settings for. If you do not specify a cluster, the default cluster is assumed.
default_capacity_provider_strategy: Vec<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 AWS Fargate capacity provider, specify either the FARGATE
or FARGATE_SPOT
capacity providers. The AWS 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 PutClusterCapacityProvidersRequest
impl Clone for PutClusterCapacityProvidersRequest
sourcefn clone(&self) -> PutClusterCapacityProvidersRequest
fn clone(&self) -> PutClusterCapacityProvidersRequest
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 Default for PutClusterCapacityProvidersRequest
impl Default for PutClusterCapacityProvidersRequest
sourcefn default() -> PutClusterCapacityProvidersRequest
fn default() -> PutClusterCapacityProvidersRequest
Returns the “default value” for a type. Read more
sourceimpl PartialEq<PutClusterCapacityProvidersRequest> for PutClusterCapacityProvidersRequest
impl PartialEq<PutClusterCapacityProvidersRequest> for PutClusterCapacityProvidersRequest
sourcefn eq(&self, other: &PutClusterCapacityProvidersRequest) -> bool
fn eq(&self, other: &PutClusterCapacityProvidersRequest) -> bool
This method tests for self
and other
values to be equal, and is used
by ==
. Read more
sourcefn ne(&self, other: &PutClusterCapacityProvidersRequest) -> bool
fn ne(&self, other: &PutClusterCapacityProvidersRequest) -> bool
This method tests for !=
.
impl StructuralPartialEq for PutClusterCapacityProvidersRequest
Auto Trait Implementations
impl RefUnwindSafe for PutClusterCapacityProvidersRequest
impl Send for PutClusterCapacityProvidersRequest
impl Sync for PutClusterCapacityProvidersRequest
impl Unpin for PutClusterCapacityProvidersRequest
impl UnwindSafe for PutClusterCapacityProvidersRequest
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> ToOwned for T where
T: Clone,
impl<T> ToOwned for T where
T: Clone,
type Owned = T
type Owned = T
The resulting type after obtaining ownership.
sourcefn clone_into(&self, target: &mut T)
fn clone_into(&self, target: &mut T)
toowned_clone_into
)Uses borrowed data to replace owned data, usually by cloning. Read more
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