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 ==
.