Enum cloudformatious::StackEvent [−][src]
pub enum StackEvent { Stack { resource_status: StackStatus, details: StackEventDetails, }, Resource { resource_status: ResourceStatus, details: StackEventDetails, }, }
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
An event for the stack itself.
Show fields
Fields of Stack
resource_status: StackStatus
Current status of the stack.
details: StackEventDetails
The details of the event.
Show fields
Fields of Resource
resource_status: ResourceStatus
Current status of the resource.
details: StackEventDetails
The details of the event.
Implementations
impl StackEvent
[src]
impl StackEvent
[src]#[must_use]pub fn resource_status(&self) -> &dyn Status
[src]
Get the resource status of the event.
This returns a trait object. You can match on self
if you need the specific status type.
#[must_use]pub fn details(&self) -> &StackEventDetails
[src]
Get the details of the event.
#[must_use]pub fn client_request_token(&self) -> Option<&str>
[src]
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
.
#[must_use]pub fn event_id(&self) -> &str
[src]
Get the unique ID of this event.
#[must_use]pub fn logical_resource_id(&self) -> &str
[src]
Get the logical name of the resource specified in the template.
#[must_use]pub fn physical_resource_id(&self) -> Option<&str>
[src]
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.
#[must_use]pub fn resource_status_reason(&self) -> Option<&str>
[src]
Get the success/failure message associated with the resource.
#[must_use]pub fn resource_type(&self) -> &str
[src]
Get the type of resource.
#[must_use]pub fn stack_id(&self) -> &str
[src]
Get the unique ID of the instance of the stack.
#[must_use]pub fn stack_name(&self) -> &str
[src]
Get the name associated with the stack.
#[must_use]pub fn timestamp(&self) -> &DateTime<Utc>
[src]
Get the time the status was updated.
#[must_use]pub fn is_terminal(&self) -> bool
[src]
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
impl Clone for StackEvent
[src]
impl Clone for StackEvent
[src]fn clone(&self) -> StackEvent
[src]
pub fn clone_from(&mut self, source: &Self)
1.0.0[src]
impl Eq for StackEvent
[src]
impl Eq for StackEvent
[src]impl PartialEq<StackEvent> for StackEvent
[src]
impl PartialEq<StackEvent> for StackEvent
[src]fn eq(&self, other: &StackEvent) -> bool
[src]
fn ne(&self, other: &StackEvent) -> bool
[src]
impl StructuralEq for StackEvent
[src]
impl StructuralEq for StackEvent
[src]impl StructuralPartialEq for StackEvent
[src]
impl StructuralPartialEq for StackEvent
[src]Auto Trait Implementations
impl RefUnwindSafe for StackEvent
impl RefUnwindSafe for StackEvent
impl Send for StackEvent
impl Send for StackEvent
impl Sync for StackEvent
impl Sync for StackEvent
impl Unpin for StackEvent
impl Unpin for StackEvent
impl UnwindSafe for StackEvent
impl UnwindSafe for StackEvent
Blanket Implementations
impl<T> Instrument for T
[src]
impl<T> Instrument for T
[src]pub fn instrument(self, span: Span) -> Instrumented<Self>
[src]
pub fn in_current_span(self) -> Instrumented<Self>
[src]
impl<T> Same<T> for T
impl<T> Same<T> for T
type Output = T
Should always be Self