#[non_exhaustive]pub struct CloudFormationStackRecord {
pub name: Option<String>,
pub arn: Option<String>,
pub created_at: Option<DateTime>,
pub location: Option<ResourceLocation>,
pub resource_type: Option<ResourceType>,
pub state: Option<RecordState>,
pub source_info: Option<Vec<CloudFormationStackRecordSourceInfo>>,
pub destination_info: Option<DestinationInfo>,
}
Expand description
Describes a CloudFormation stack record created as a result of the create cloud formation stack
action.
A CloudFormation stack record provides information about the AWS CloudFormation stack used to create a new Amazon Elastic Compute Cloud instance from an exported Lightsail instance snapshot.
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.name: Option<String>
The name of the CloudFormation stack record. It starts with CloudFormationStackRecord
followed by a GUID.
arn: Option<String>
The Amazon Resource Name (ARN) of the CloudFormation stack record.
created_at: Option<DateTime>
The date when the CloudFormation stack record was created.
location: Option<ResourceLocation>
A list of objects describing the Availability Zone and Amazon Web Services Region of the CloudFormation stack record.
resource_type: Option<ResourceType>
The Lightsail resource type (CloudFormationStackRecord
).
state: Option<RecordState>
The current state of the CloudFormation stack record.
source_info: Option<Vec<CloudFormationStackRecordSourceInfo>>
A list of objects describing the source of the CloudFormation stack record.
destination_info: Option<DestinationInfo>
A list of objects describing the destination service, which is AWS CloudFormation, and the Amazon Resource Name (ARN) of the AWS CloudFormation stack.
Implementations§
source§impl CloudFormationStackRecord
impl CloudFormationStackRecord
sourcepub fn name(&self) -> Option<&str>
pub fn name(&self) -> Option<&str>
The name of the CloudFormation stack record. It starts with CloudFormationStackRecord
followed by a GUID.
sourcepub fn arn(&self) -> Option<&str>
pub fn arn(&self) -> Option<&str>
The Amazon Resource Name (ARN) of the CloudFormation stack record.
sourcepub fn created_at(&self) -> Option<&DateTime>
pub fn created_at(&self) -> Option<&DateTime>
The date when the CloudFormation stack record was created.
sourcepub fn location(&self) -> Option<&ResourceLocation>
pub fn location(&self) -> Option<&ResourceLocation>
A list of objects describing the Availability Zone and Amazon Web Services Region of the CloudFormation stack record.
sourcepub fn resource_type(&self) -> Option<&ResourceType>
pub fn resource_type(&self) -> Option<&ResourceType>
The Lightsail resource type (CloudFormationStackRecord
).
sourcepub fn state(&self) -> Option<&RecordState>
pub fn state(&self) -> Option<&RecordState>
The current state of the CloudFormation stack record.
sourcepub fn source_info(&self) -> &[CloudFormationStackRecordSourceInfo]
pub fn source_info(&self) -> &[CloudFormationStackRecordSourceInfo]
A list of objects describing the source of the CloudFormation stack record.
If no value was sent for this field, a default will be set. If you want to determine if no value was sent, use .source_info.is_none()
.
sourcepub fn destination_info(&self) -> Option<&DestinationInfo>
pub fn destination_info(&self) -> Option<&DestinationInfo>
A list of objects describing the destination service, which is AWS CloudFormation, and the Amazon Resource Name (ARN) of the AWS CloudFormation stack.
source§impl CloudFormationStackRecord
impl CloudFormationStackRecord
sourcepub fn builder() -> CloudFormationStackRecordBuilder
pub fn builder() -> CloudFormationStackRecordBuilder
Creates a new builder-style object to manufacture CloudFormationStackRecord
.
Trait Implementations§
source§impl Clone for CloudFormationStackRecord
impl Clone for CloudFormationStackRecord
source§fn clone(&self) -> CloudFormationStackRecord
fn clone(&self) -> CloudFormationStackRecord
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read moresource§impl Debug for CloudFormationStackRecord
impl Debug for CloudFormationStackRecord
source§impl PartialEq for CloudFormationStackRecord
impl PartialEq for CloudFormationStackRecord
source§fn eq(&self, other: &CloudFormationStackRecord) -> bool
fn eq(&self, other: &CloudFormationStackRecord) -> bool
self
and other
values to be equal, and is used
by ==
.impl StructuralPartialEq for CloudFormationStackRecord
Auto Trait Implementations§
impl Freeze for CloudFormationStackRecord
impl RefUnwindSafe for CloudFormationStackRecord
impl Send for CloudFormationStackRecord
impl Sync for CloudFormationStackRecord
impl Unpin for CloudFormationStackRecord
impl UnwindSafe for CloudFormationStackRecord
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> 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