pub enum StackEvent {
Stack {
resource_status: StackStatus,
details: StackEventDetails,
},
Resource {
resource_status: ResourceStatus,
details: StackEventDetails,
},
}
Expand description
A stack event from the DescribeStackEvents
API.
Stack events are represented as an enum because the API reports both events for the stack and events for the resources in the stack, but these can have different sets of statuses.
Variants§
Stack
An event for the stack itself.
Fields
resource_status: StackStatus
Current status of the stack.
details: StackEventDetails
The details of the event.
Resource
Fields
resource_status: ResourceStatus
Current status of the resource.
details: StackEventDetails
The details of the event.
Implementations§
Source§impl StackEvent
impl StackEvent
Sourcepub fn resource_status(&self) -> &dyn Status
pub fn resource_status(&self) -> &dyn Status
Get the resource status of the event.
This returns a trait object. You can match on self
if you need the specific status type.
Sourcepub fn details(&self) -> &StackEventDetails
pub fn details(&self) -> &StackEventDetails
Get the details of the event.
Sourcepub fn client_request_token(&self) -> Option<&str>
pub fn client_request_token(&self) -> Option<&str>
Get the token passed to the operation that generated this event.
All events triggerd by a given stack operation are assigne dthe same client request token,
you can use to track operations. For example, if you execute a CreateStack
operation with
the token token1
, then all the StackEvents
generated by that operation will have
ClientRequestToken
set as token1
.
In the console, stack operations display the client request token on the Events tab. Stack
operations that are initiated from the console use the token format
Console-StackOperation-ID, which helps you easily identify the stack operation. For
example, if you create a stack using the console, each stack event would be assigned the
same token in the following format:
Console-CreateStack-7f59c3cf-00d2-40c7-b2ff-e75db0987002
.
Sourcepub fn logical_resource_id(&self) -> &str
pub fn logical_resource_id(&self) -> &str
Get the logical name of the resource specified in the template.
Sourcepub fn physical_resource_id(&self) -> Option<&str>
pub fn physical_resource_id(&self) -> Option<&str>
Get the name of unique identifier associated with the physical instance of the resource.
This is unset when a physical resource does not exist, e.g. when creation is still in progress or has failed.
Sourcepub fn resource_status_reason(&self) -> Option<&str>
pub fn resource_status_reason(&self) -> Option<&str>
Get the success/failure message associated with the resource.
Sourcepub fn resource_type(&self) -> &str
pub fn resource_type(&self) -> &str
Get the type of resource.
Sourcepub fn stack_name(&self) -> &str
pub fn stack_name(&self) -> &str
Get the name associated with the stack.
Sourcepub fn stack_alias(&self) -> Option<&str>
pub fn stack_alias(&self) -> Option<&str>
Get the alias for a nested stack.
Sourcepub fn is_terminal(&self) -> bool
pub fn is_terminal(&self) -> bool
Indicates whether or not an event is terminal.
A terminal event is the last one that will occur during the current stack operation. By
definition, the terminal event is an event for the stack itself with a terminal
StackStatus
.
Trait Implementations§
Source§impl Clone for StackEvent
impl Clone for StackEvent
Source§fn clone(&self) -> StackEvent
fn clone(&self) -> StackEvent
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read moreSource§impl Debug for StackEvent
impl Debug for StackEvent
Source§impl PartialEq for StackEvent
impl PartialEq for StackEvent
impl Eq for StackEvent
impl StructuralPartialEq for StackEvent
Auto Trait Implementations§
impl Freeze for StackEvent
impl RefUnwindSafe for StackEvent
impl Send for StackEvent
impl Sync for StackEvent
impl Unpin for StackEvent
impl UnwindSafe for StackEvent
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§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
key
and return true
if they are equal.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