Enum StackEvent

Source
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

Source

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.

Source

pub fn details(&self) -> &StackEventDetails

Get the details of the event.

Source

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.

Source

pub fn event_id(&self) -> &str

Get the unique ID of this event.

Source

pub fn logical_resource_id(&self) -> &str

Get the logical name of the resource specified in the template.

Source

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.

Source

pub fn resource_status_reason(&self) -> Option<&str>

Get the success/failure message associated with the resource.

Source

pub fn resource_type(&self) -> &str

Get the type of resource.

Source

pub fn stack_id(&self) -> &str

Get the unique ID of the instance of the stack.

Source

pub fn stack_name(&self) -> &str

Get the name associated with the stack.

Source

pub fn stack_alias(&self) -> Option<&str>

Get the alias for a nested stack.

Source

pub fn timestamp(&self) -> &DateTime<Utc>

Get the time the status was updated.

Source

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

Source§

fn clone(&self) -> StackEvent

Returns a copy of the value. Read more
1.0.0 · Source§

fn clone_from(&mut self, source: &Self)

Performs copy-assignment from source. Read more
Source§

impl Debug for StackEvent

Source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result

Formats the value using the given formatter. Read more
Source§

impl PartialEq for StackEvent

Source§

fn eq(&self, other: &StackEvent) -> bool

Tests for self and other values to be equal, and is used by ==.
1.0.0 · Source§

fn ne(&self, other: &Rhs) -> bool

Tests for !=. The default implementation is almost always sufficient, and should not be overridden without very good reason.
Source§

impl Eq for StackEvent

Source§

impl StructuralPartialEq for StackEvent

Auto Trait Implementations§

Blanket Implementations§

Source§

impl<T> Any for T
where T: 'static + ?Sized,

Source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
Source§

impl<T> Borrow<T> for T
where T: ?Sized,

Source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
Source§

impl<T> BorrowMut<T> for T
where T: ?Sized,

Source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
Source§

impl<T> CloneToUninit for T
where T: Clone,

Source§

unsafe fn clone_to_uninit(&self, dest: *mut u8)

🔬This is a nightly-only experimental API. (clone_to_uninit)
Performs copy-assignment from self to dest. Read more
Source§

impl<Q, K> Equivalent<K> for Q
where Q: Eq + ?Sized, K: Borrow<Q> + ?Sized,

Source§

fn equivalent(&self, key: &K) -> bool

Checks if this value is equivalent to the given key. Read more
Source§

impl<Q, K> Equivalent<K> for Q
where Q: Eq + ?Sized, K: Borrow<Q> + ?Sized,

Source§

fn equivalent(&self, key: &K) -> bool

Compare self to key and return true if they are equal.
Source§

impl<T> From<T> for T

Source§

fn from(t: T) -> T

Returns the argument unchanged.

Source§

impl<T> Instrument for T

Source§

fn instrument(self, span: Span) -> Instrumented<Self>

Instruments this type with the provided Span, returning an Instrumented wrapper. Read more
Source§

fn in_current_span(self) -> Instrumented<Self>

Instruments this type with the current Span, returning an Instrumented wrapper. Read more
Source§

impl<T, U> Into<U> for T
where U: From<T>,

Source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

Source§

impl<T> IntoEither for T

Source§

fn into_either(self, into_left: bool) -> Either<Self, Self>

Converts 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 more
Source§

fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
where F: FnOnce(&Self) -> bool,

Converts 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
Source§

impl<T> IntoResult<T> for T

Source§

impl<Unshared, Shared> IntoShared<Shared> for Unshared
where Shared: FromUnshared<Unshared>,

Source§

fn into_shared(self) -> Shared

Creates a shared type from an unshared type.
Source§

impl<T> Same for T

Source§

type Output = T

Should always be Self
Source§

impl<T> ToOwned for T
where T: Clone,

Source§

type Owned = T

The resulting type after obtaining ownership.
Source§

fn to_owned(&self) -> T

Creates owned data from borrowed data, usually by cloning. Read more
Source§

fn clone_into(&self, target: &mut T)

Uses borrowed data to replace owned data, usually by cloning. Read more
Source§

impl<T, U> TryFrom<U> for T
where U: Into<T>,

Source§

type Error = Infallible

The type returned in the event of a conversion error.
Source§

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

Performs the conversion.
Source§

impl<T, U> TryInto<U> for T
where U: TryFrom<T>,

Source§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
Source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.
Source§

impl<T> WithSubscriber for T

Source§

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
Source§

fn with_current_subscriber(self) -> WithDispatch<Self>

Attaches the current default Subscriber to this type, returning a WithDispatch wrapper. Read more
Source§

impl<T> ErasedDestructor for T
where T: 'static,