Struct cloudformatious::StackEventDetails
source · pub struct StackEventDetails {
pub client_request_token: Option<String>,
pub event_id: String,
pub logical_resource_id: String,
pub physical_resource_id: Option<String>,
pub resource_status_reason: Option<String>,
pub resource_type: String,
pub stack_id: String,
pub stack_name: String,
pub stack_alias: Option<String>,
pub timestamp: DateTime<Utc>,
}
Expand description
Event details from the DescribeStackEvents
API that are common for stack and resource events.
Fields§
§client_request_token: Option<String>
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
.
event_id: String
The unique ID of this event.
logical_resource_id: String
The logical name of the resource specified in the template.
physical_resource_id: Option<String>
The name or 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.
resource_status_reason: Option<String>
Success/failure message associated with the resource.
resource_type: String
Type of resource.
stack_id: String
The unique ID of the instance of the stack.
stack_name: String
The name associated with the stack.
stack_alias: Option<String>
The alias for a nested stack.
This is built up of the logical IDs of the nested stacks.
timestamp: DateTime<Utc>
Time the status was updated.
Implementations§
source§impl StackEventDetails
impl StackEventDetails
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) -> StatusReason<'_>
pub fn resource_status_reason(&self) -> StatusReason<'_>
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.
Trait Implementations§
source§impl Clone for StackEventDetails
impl Clone for StackEventDetails
source§fn clone(&self) -> StackEventDetails
fn clone(&self) -> StackEventDetails
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read moresource§impl Debug for StackEventDetails
impl Debug for StackEventDetails
source§impl PartialEq for StackEventDetails
impl PartialEq for StackEventDetails
source§fn eq(&self, other: &StackEventDetails) -> bool
fn eq(&self, other: &StackEventDetails) -> bool
self
and other
values to be equal, and is used
by ==
.impl Eq for StackEventDetails
impl StructuralPartialEq for StackEventDetails
Auto Trait Implementations§
impl Freeze for StackEventDetails
impl RefUnwindSafe for StackEventDetails
impl Send for StackEventDetails
impl Sync for StackEventDetails
impl Unpin for StackEventDetails
impl UnwindSafe for StackEventDetails
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<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.