Struct aws_sdk_cloudformation::types::ResourceDetail
source · #[non_exhaustive]pub struct ResourceDetail {
pub resource_type: Option<String>,
pub logical_resource_id: Option<String>,
pub resource_identifier: Option<HashMap<String, String>>,
pub resource_status: Option<GeneratedTemplateResourceStatus>,
pub resource_status_reason: Option<String>,
pub warnings: Option<Vec<WarningDetail>>,
}
Expand description
Details about a resource in a generated template
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.resource_type: Option<String>
The type of the resource, such as AWS::DynamoDB::Table
. For the list of supported resources, see IaC generator supported resource types In the CloudFormation User Guide
logical_resource_id: Option<String>
The logical id for this resource in the final generated template.
resource_identifier: Option<HashMap<String, String>>
A list of up to 256 key-value pairs that identifies the resource in the generated template. The key is the name of one of the primary identifiers for the resource. (Primary identifiers are specified in the primaryIdentifier
list in the resource schema.) The value is the value of that primary identifier. For example, for a AWS::DynamoDB::Table
resource, the primary identifiers is TableName
so the key-value pair could be "TableName": "MyDDBTable"
. For more information, see primaryIdentifier in the CloudFormation Command Line Interface User guide for extension development.
resource_status: Option<GeneratedTemplateResourceStatus>
Status of the processing of a resource in a generated template.
- InProgress
-
The resource processing is still in progress.
- Complete
-
The resource processing is complete.
- Pending
-
The resource processing is pending.
- Failed
-
The resource processing has failed.
resource_status_reason: Option<String>
The reason for the resource detail, providing more information if a failure happened.
warnings: Option<Vec<WarningDetail>>
The warnings generated for this resource.
Implementations§
source§impl ResourceDetail
impl ResourceDetail
sourcepub fn resource_type(&self) -> Option<&str>
pub fn resource_type(&self) -> Option<&str>
The type of the resource, such as AWS::DynamoDB::Table
. For the list of supported resources, see IaC generator supported resource types In the CloudFormation User Guide
sourcepub fn logical_resource_id(&self) -> Option<&str>
pub fn logical_resource_id(&self) -> Option<&str>
The logical id for this resource in the final generated template.
sourcepub fn resource_identifier(&self) -> Option<&HashMap<String, String>>
pub fn resource_identifier(&self) -> Option<&HashMap<String, String>>
A list of up to 256 key-value pairs that identifies the resource in the generated template. The key is the name of one of the primary identifiers for the resource. (Primary identifiers are specified in the primaryIdentifier
list in the resource schema.) The value is the value of that primary identifier. For example, for a AWS::DynamoDB::Table
resource, the primary identifiers is TableName
so the key-value pair could be "TableName": "MyDDBTable"
. For more information, see primaryIdentifier in the CloudFormation Command Line Interface User guide for extension development.
sourcepub fn resource_status(&self) -> Option<&GeneratedTemplateResourceStatus>
pub fn resource_status(&self) -> Option<&GeneratedTemplateResourceStatus>
Status of the processing of a resource in a generated template.
- InProgress
-
The resource processing is still in progress.
- Complete
-
The resource processing is complete.
- Pending
-
The resource processing is pending.
- Failed
-
The resource processing has failed.
sourcepub fn resource_status_reason(&self) -> Option<&str>
pub fn resource_status_reason(&self) -> Option<&str>
The reason for the resource detail, providing more information if a failure happened.
sourcepub fn warnings(&self) -> &[WarningDetail]
pub fn warnings(&self) -> &[WarningDetail]
The warnings generated for this resource.
If no value was sent for this field, a default will be set. If you want to determine if no value was sent, use .warnings.is_none()
.
source§impl ResourceDetail
impl ResourceDetail
sourcepub fn builder() -> ResourceDetailBuilder
pub fn builder() -> ResourceDetailBuilder
Creates a new builder-style object to manufacture ResourceDetail
.
Trait Implementations§
source§impl Clone for ResourceDetail
impl Clone for ResourceDetail
source§fn clone(&self) -> ResourceDetail
fn clone(&self) -> ResourceDetail
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read moresource§impl Debug for ResourceDetail
impl Debug for ResourceDetail
source§impl PartialEq for ResourceDetail
impl PartialEq for ResourceDetail
source§fn eq(&self, other: &ResourceDetail) -> bool
fn eq(&self, other: &ResourceDetail) -> bool
self
and other
values to be equal, and is used
by ==
.impl StructuralPartialEq for ResourceDetail
Auto Trait Implementations§
impl Freeze for ResourceDetail
impl RefUnwindSafe for ResourceDetail
impl Send for ResourceDetail
impl Sync for ResourceDetail
impl Unpin for ResourceDetail
impl UnwindSafe for ResourceDetail
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