Struct aws_sdk_codedeploy::types::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§
source§impl 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) -> &[LifecycleEvent]
pub fn lifecycle_events(&self) -> &[LifecycleEvent]
A list of lifecycle events for this instance.
If no value was sent for this field, a default will be set. If you want to determine if no value was sent, use .lifecycle_events.is_none()
.
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.
source§impl InstanceSummary
impl InstanceSummary
sourcepub fn builder() -> InstanceSummaryBuilder
pub fn builder() -> InstanceSummaryBuilder
Creates a new builder-style object to manufacture InstanceSummary
.
Trait Implementations§
source§impl Clone for InstanceSummary
impl Clone for InstanceSummary
source§fn clone(&self) -> InstanceSummary
fn clone(&self) -> InstanceSummary
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read moresource§impl Debug for InstanceSummary
impl Debug for InstanceSummary
source§impl PartialEq for InstanceSummary
impl PartialEq for InstanceSummary
source§fn eq(&self, other: &InstanceSummary) -> bool
fn eq(&self, other: &InstanceSummary) -> bool
self
and other
values to be equal, and is used
by ==
.impl StructuralPartialEq for InstanceSummary
Auto Trait Implementations§
impl Freeze for InstanceSummary
impl RefUnwindSafe for InstanceSummary
impl Send for InstanceSummary
impl Sync for InstanceSummary
impl Unpin for InstanceSummary
impl UnwindSafe for InstanceSummary
Blanket Implementations§
source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
source§default unsafe fn clone_to_uninit(&self, dst: *mut T)
default unsafe fn clone_to_uninit(&self, dst: *mut T)
clone_to_uninit
)source§impl<T> Instrument for T
impl<T> Instrument for T
source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
source§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
source§impl<T> IntoEither for T
impl<T> IntoEither for T
source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
self
into a Left
variant of Either<Self, Self>
if into_left
is true
.
Converts self
into a Right
variant of Either<Self, Self>
otherwise. Read moresource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
self
into a Left
variant of Either<Self, Self>
if into_left(&self)
returns true
.
Converts self
into a Right
variant of Either<Self, Self>
otherwise. Read more