Struct aws_sdk_cloudformation::model::StackResourceDetail
source · #[non_exhaustive]pub struct StackResourceDetail { /* private fields */ }Expand description
Contains detailed information about the specified stack resource.
Implementations§
source§impl StackResourceDetail
impl StackResourceDetail
sourcepub fn stack_name(&self) -> Option<&str>
pub fn stack_name(&self) -> Option<&str>
The name associated with the stack.
sourcepub fn logical_resource_id(&self) -> Option<&str>
pub fn logical_resource_id(&self) -> Option<&str>
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>
The name or unique identifier that corresponds to a physical instance ID of a resource supported by CloudFormation.
sourcepub fn resource_type(&self) -> Option<&str>
pub fn resource_type(&self) -> Option<&str>
Type of resource. For more information, go to Amazon Web Services Resource Types Reference in the CloudFormation User Guide.
sourcepub fn last_updated_timestamp(&self) -> Option<&DateTime>
pub fn last_updated_timestamp(&self) -> Option<&DateTime>
Time the status was updated.
sourcepub fn resource_status(&self) -> Option<&ResourceStatus>
pub fn resource_status(&self) -> Option<&ResourceStatus>
Current status of the resource.
sourcepub fn resource_status_reason(&self) -> Option<&str>
pub fn resource_status_reason(&self) -> Option<&str>
Success/failure message associated with the resource.
sourcepub fn description(&self) -> Option<&str>
pub fn description(&self) -> Option<&str>
User defined description associated with the resource.
sourcepub fn metadata(&self) -> Option<&str>
pub fn metadata(&self) -> Option<&str>
The content of the Metadata attribute declared for the resource. For more information, see Metadata Attribute in the CloudFormation User Guide.
sourcepub fn drift_information(&self) -> Option<&StackResourceDriftInformation>
pub fn drift_information(&self) -> Option<&StackResourceDriftInformation>
Information about whether the resource's actual configuration differs, or has drifted, from its expected configuration, as defined in the stack template and any values specified as template parameters. For more information, see Detecting Unregulated Configuration Changes to Stacks and Resources.
sourcepub fn module_info(&self) -> Option<&ModuleInfo>
pub fn module_info(&self) -> Option<&ModuleInfo>
Contains information about the module from which the resource was created, if the resource was created from a module included in the stack template.
source§impl StackResourceDetail
impl StackResourceDetail
sourcepub fn builder() -> Builder
pub fn builder() -> Builder
Creates a new builder-style object to manufacture StackResourceDetail.
Examples found in repository?
5098 5099 5100 5101 5102 5103 5104 5105 5106 5107 5108 5109 5110 5111 5112 5113 5114 5115 5116 5117 5118 5119 5120 5121 5122 5123 5124 5125 5126 5127 5128 5129 5130 5131 5132 5133 5134 5135 5136 5137 5138 5139 5140 5141 5142 5143 5144 5145 5146 5147 5148 5149 5150 5151 5152 5153 5154 5155 5156 5157 5158 5159 5160 5161 5162 5163 5164 5165 5166 5167 5168 5169 5170 5171 5172 5173 5174 5175 5176 5177 5178 5179 5180 5181 5182 5183 5184 5185 5186 5187 5188 5189 5190 5191 5192 5193 5194 5195 5196 5197 5198 5199 5200 5201 5202 5203 5204 5205 5206 5207 5208 5209 5210 5211 5212 5213 5214 5215 5216 5217 5218 5219 5220 5221 5222 5223 5224 5225 5226 5227 5228 5229 5230 5231 5232 5233 5234 5235 5236 5237 5238 5239 5240 5241 5242 5243 5244 5245 5246 5247 5248 5249 5250 5251 5252 5253 5254 5255 5256 5257 5258 5259 5260 5261
pub fn deser_structure_crate_model_stack_resource_detail(
decoder: &mut aws_smithy_xml::decode::ScopedDecoder,
) -> Result<crate::model::StackResourceDetail, aws_smithy_xml::decode::XmlDecodeError> {
#[allow(unused_mut)]
let mut builder = crate::model::StackResourceDetail::builder();
while let Some(mut tag) = decoder.next_tag() {
match tag.start_el() {
s if s.matches("StackName") /* StackName com.amazonaws.cloudformation#StackResourceDetail$StackName */ => {
let var_183 =
Some(
Result::<std::string::String, aws_smithy_xml::decode::XmlDecodeError>::Ok(
aws_smithy_xml::decode::try_data(&mut tag)?.as_ref()
.into()
)
?
)
;
builder = builder.set_stack_name(var_183);
}
,
s if s.matches("StackId") /* StackId com.amazonaws.cloudformation#StackResourceDetail$StackId */ => {
let var_184 =
Some(
Result::<std::string::String, aws_smithy_xml::decode::XmlDecodeError>::Ok(
aws_smithy_xml::decode::try_data(&mut tag)?.as_ref()
.into()
)
?
)
;
builder = builder.set_stack_id(var_184);
}
,
s if s.matches("LogicalResourceId") /* LogicalResourceId com.amazonaws.cloudformation#StackResourceDetail$LogicalResourceId */ => {
let var_185 =
Some(
Result::<std::string::String, aws_smithy_xml::decode::XmlDecodeError>::Ok(
aws_smithy_xml::decode::try_data(&mut tag)?.as_ref()
.into()
)
?
)
;
builder = builder.set_logical_resource_id(var_185);
}
,
s if s.matches("PhysicalResourceId") /* PhysicalResourceId com.amazonaws.cloudformation#StackResourceDetail$PhysicalResourceId */ => {
let var_186 =
Some(
Result::<std::string::String, aws_smithy_xml::decode::XmlDecodeError>::Ok(
aws_smithy_xml::decode::try_data(&mut tag)?.as_ref()
.into()
)
?
)
;
builder = builder.set_physical_resource_id(var_186);
}
,
s if s.matches("ResourceType") /* ResourceType com.amazonaws.cloudformation#StackResourceDetail$ResourceType */ => {
let var_187 =
Some(
Result::<std::string::String, aws_smithy_xml::decode::XmlDecodeError>::Ok(
aws_smithy_xml::decode::try_data(&mut tag)?.as_ref()
.into()
)
?
)
;
builder = builder.set_resource_type(var_187);
}
,
s if s.matches("LastUpdatedTimestamp") /* LastUpdatedTimestamp com.amazonaws.cloudformation#StackResourceDetail$LastUpdatedTimestamp */ => {
let var_188 =
Some(
aws_smithy_types::DateTime::from_str(
aws_smithy_xml::decode::try_data(&mut tag)?.as_ref()
, aws_smithy_types::date_time::Format::DateTime
)
.map_err(|_|aws_smithy_xml::decode::XmlDecodeError::custom("expected (timestamp: `com.amazonaws.cloudformation#Timestamp`)"))
?
)
;
builder = builder.set_last_updated_timestamp(var_188);
}
,
s if s.matches("ResourceStatus") /* ResourceStatus com.amazonaws.cloudformation#StackResourceDetail$ResourceStatus */ => {
let var_189 =
Some(
Result::<crate::model::ResourceStatus, aws_smithy_xml::decode::XmlDecodeError>::Ok(
crate::model::ResourceStatus::from(
aws_smithy_xml::decode::try_data(&mut tag)?.as_ref()
)
)
?
)
;
builder = builder.set_resource_status(var_189);
}
,
s if s.matches("ResourceStatusReason") /* ResourceStatusReason com.amazonaws.cloudformation#StackResourceDetail$ResourceStatusReason */ => {
let var_190 =
Some(
Result::<std::string::String, aws_smithy_xml::decode::XmlDecodeError>::Ok(
aws_smithy_xml::decode::try_data(&mut tag)?.as_ref()
.into()
)
?
)
;
builder = builder.set_resource_status_reason(var_190);
}
,
s if s.matches("Description") /* Description com.amazonaws.cloudformation#StackResourceDetail$Description */ => {
let var_191 =
Some(
Result::<std::string::String, aws_smithy_xml::decode::XmlDecodeError>::Ok(
aws_smithy_xml::decode::try_data(&mut tag)?.as_ref()
.into()
)
?
)
;
builder = builder.set_description(var_191);
}
,
s if s.matches("Metadata") /* Metadata com.amazonaws.cloudformation#StackResourceDetail$Metadata */ => {
let var_192 =
Some(
Result::<std::string::String, aws_smithy_xml::decode::XmlDecodeError>::Ok(
aws_smithy_xml::decode::try_data(&mut tag)?.as_ref()
.into()
)
?
)
;
builder = builder.set_metadata(var_192);
}
,
s if s.matches("DriftInformation") /* DriftInformation com.amazonaws.cloudformation#StackResourceDetail$DriftInformation */ => {
let var_193 =
Some(
crate::xml_deser::deser_structure_crate_model_stack_resource_drift_information(&mut tag)
?
)
;
builder = builder.set_drift_information(var_193);
}
,
s if s.matches("ModuleInfo") /* ModuleInfo com.amazonaws.cloudformation#StackResourceDetail$ModuleInfo */ => {
let var_194 =
Some(
crate::xml_deser::deser_structure_crate_model_module_info(&mut tag)
?
)
;
builder = builder.set_module_info(var_194);
}
,
_ => {}
}
}
Ok(builder.build())
}Trait Implementations§
source§impl Clone for StackResourceDetail
impl Clone for StackResourceDetail
source§fn clone(&self) -> StackResourceDetail
fn clone(&self) -> StackResourceDetail
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read more