Struct rusoto_codedeploy::MinimumHealthyHosts
source · [−]Expand description
Information about minimum healthy instance.
Fields
type_: Option<String>
The minimum healthy instance type:
-
HOST_COUNT
: The minimum number of healthy instances as an absolute value. -
FLEET_PERCENT
: The minimum number of healthy instances as a percentage of the total number of instances in the deployment.
In an example of nine instances, if a HOST_COUNT of six is specified, deploy to up to three instances at a time. The deployment is successful if six or more instances are deployed to successfully. Otherwise, the deployment fails. If a FLEET_PERCENT of 40 is specified, deploy to up to five instances at a time. The deployment is successful if four or more instances are deployed to successfully. Otherwise, the deployment fails.
In a call to the GetDeploymentConfig
, CodeDeployDefault.OneAtATime returns a minimum healthy instance type of MOST_CONCURRENCY and a value of 1. This means a deployment to only one instance at a time. (You cannot set the type to MOST_CONCURRENCY, only to HOST_COUNT or FLEET_PERCENT.) In addition, with CodeDeployDefault.OneAtATime, AWS CodeDeploy attempts to ensure that all instances but one are kept in a healthy state during the deployment. Although this allows one instance at a time to be taken offline for a new deployment, it also means that if the deployment to the last instance fails, the overall deployment is still successful.
For more information, see AWS CodeDeploy Instance Health in the AWS CodeDeploy User Guide.
value: Option<i64>
The minimum healthy instance value.
Trait Implementations
sourceimpl Clone for MinimumHealthyHosts
impl Clone for MinimumHealthyHosts
sourcefn clone(&self) -> MinimumHealthyHosts
fn clone(&self) -> MinimumHealthyHosts
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 Debug for MinimumHealthyHosts
impl Debug for MinimumHealthyHosts
sourceimpl Default for MinimumHealthyHosts
impl Default for MinimumHealthyHosts
sourcefn default() -> MinimumHealthyHosts
fn default() -> MinimumHealthyHosts
Returns the “default value” for a type. Read more
sourceimpl<'de> Deserialize<'de> for MinimumHealthyHosts
impl<'de> Deserialize<'de> for MinimumHealthyHosts
sourcefn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error> where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error> where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
sourceimpl PartialEq<MinimumHealthyHosts> for MinimumHealthyHosts
impl PartialEq<MinimumHealthyHosts> for MinimumHealthyHosts
sourcefn eq(&self, other: &MinimumHealthyHosts) -> bool
fn eq(&self, other: &MinimumHealthyHosts) -> bool
This method tests for self
and other
values to be equal, and is used
by ==
. Read more
sourcefn ne(&self, other: &MinimumHealthyHosts) -> bool
fn ne(&self, other: &MinimumHealthyHosts) -> bool
This method tests for !=
.
sourceimpl Serialize for MinimumHealthyHosts
impl Serialize for MinimumHealthyHosts
impl StructuralPartialEq for MinimumHealthyHosts
Auto Trait Implementations
impl RefUnwindSafe for MinimumHealthyHosts
impl Send for MinimumHealthyHosts
impl Sync for MinimumHealthyHosts
impl Unpin for MinimumHealthyHosts
impl UnwindSafe for MinimumHealthyHosts
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