Struct aws_sdk_codedeploy::model::InstanceSummary
source · [−]#[non_exhaustive]pub struct InstanceSummary {
pub deployment_id: Option<String>,
pub instance_id: Option<String>,
pub status: Option<InstanceStatus>,
pub last_updated_at: Option<DateTime>,
pub lifecycle_events: Option<Vec<LifecycleEvent>>,
pub instance_type: Option<InstanceType>,
}
Expand description
Information about an instance in a deployment.
Fields (Non-exhaustive)
This struct is marked as non-exhaustive
Struct { .. }
syntax; cannot be matched against without a wildcard ..
; and struct update syntax will not work.deployment_id: Option<String>
The unique ID of a deployment.
instance_id: Option<String>
The instance ID.
status: Option<InstanceStatus>
The deployment status for this instance:
-
Pending
: The deployment is pending for this instance. -
In Progress
: The deployment is in progress for this instance. -
Succeeded
: The deployment has succeeded for this instance. -
Failed
: The deployment has failed for this instance. -
Skipped
: The deployment has been skipped for this instance. -
Unknown
: The deployment status is unknown for this instance.
last_updated_at: Option<DateTime>
A timestamp that indicates when the instance information was last updated.
lifecycle_events: Option<Vec<LifecycleEvent>>
A list of lifecycle events for this instance.
instance_type: Option<InstanceType>
Information about which environment an instance belongs to in a blue/green deployment.
-
BLUE: The instance is part of the original environment.
-
GREEN: The instance is part of the replacement environment.
Implementations
sourceimpl InstanceSummary
impl InstanceSummary
sourcepub fn deployment_id(&self) -> Option<&str>
pub fn deployment_id(&self) -> Option<&str>
The unique ID of a deployment.
sourcepub fn instance_id(&self) -> Option<&str>
pub fn instance_id(&self) -> Option<&str>
The instance ID.
sourcepub fn status(&self) -> Option<&InstanceStatus>
pub fn status(&self) -> Option<&InstanceStatus>
The deployment status for this instance:
-
Pending
: The deployment is pending for this instance. -
In Progress
: The deployment is in progress for this instance. -
Succeeded
: The deployment has succeeded for this instance. -
Failed
: The deployment has failed for this instance. -
Skipped
: The deployment has been skipped for this instance. -
Unknown
: The deployment status is unknown for this instance.
sourcepub fn last_updated_at(&self) -> Option<&DateTime>
pub fn last_updated_at(&self) -> Option<&DateTime>
A timestamp that indicates when the instance information was last updated.
sourcepub fn lifecycle_events(&self) -> Option<&[LifecycleEvent]>
pub fn lifecycle_events(&self) -> Option<&[LifecycleEvent]>
A list of lifecycle events for this instance.
sourcepub fn instance_type(&self) -> Option<&InstanceType>
pub fn instance_type(&self) -> Option<&InstanceType>
Information about which environment an instance belongs to in a blue/green deployment.
-
BLUE: The instance is part of the original environment.
-
GREEN: The instance is part of the replacement environment.
sourceimpl InstanceSummary
impl InstanceSummary
sourcepub fn builder() -> Builder
pub fn builder() -> Builder
Creates a new builder-style object to manufacture InstanceSummary
Trait Implementations
sourceimpl Clone for InstanceSummary
impl Clone for InstanceSummary
sourcefn clone(&self) -> InstanceSummary
fn clone(&self) -> InstanceSummary
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 InstanceSummary
impl Debug for InstanceSummary
sourceimpl PartialEq<InstanceSummary> for InstanceSummary
impl PartialEq<InstanceSummary> for InstanceSummary
sourcefn eq(&self, other: &InstanceSummary) -> bool
fn eq(&self, other: &InstanceSummary) -> bool
This method tests for self
and other
values to be equal, and is used
by ==
. Read more
sourcefn ne(&self, other: &InstanceSummary) -> bool
fn ne(&self, other: &InstanceSummary) -> bool
This method tests for !=
.
impl StructuralPartialEq for InstanceSummary
Auto Trait Implementations
impl RefUnwindSafe for InstanceSummary
impl Send for InstanceSummary
impl Sync for InstanceSummary
impl Unpin for InstanceSummary
impl UnwindSafe for InstanceSummary
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