aws_sdk_cloudformation/client/
describe_stack_resource.rs

1// Code generated by software.amazon.smithy.rust.codegen.smithy-rs. DO NOT EDIT.
2impl super::Client {
3    /// Constructs a fluent builder for the [`DescribeStackResource`](crate::operation::describe_stack_resource::builders::DescribeStackResourceFluentBuilder) operation.
4    ///
5    /// - The fluent builder is configurable:
6    ///   - [`stack_name(impl Into<String>)`](crate::operation::describe_stack_resource::builders::DescribeStackResourceFluentBuilder::stack_name) / [`set_stack_name(Option<String>)`](crate::operation::describe_stack_resource::builders::DescribeStackResourceFluentBuilder::set_stack_name):<br>required: **true**<br><p>The name or the unique stack ID that's associated with the stack, which aren't always interchangeable:</p> <ul>  <li>   <p>Running stacks: You can specify either the stack's name or its unique stack ID.</p></li>  <li>   <p>Deleted stacks: You must specify the unique stack ID.</p></li> </ul><br>
7    ///   - [`logical_resource_id(impl Into<String>)`](crate::operation::describe_stack_resource::builders::DescribeStackResourceFluentBuilder::logical_resource_id) / [`set_logical_resource_id(Option<String>)`](crate::operation::describe_stack_resource::builders::DescribeStackResourceFluentBuilder::set_logical_resource_id):<br>required: **true**<br><p>The logical name of the resource as specified in the template.</p><br>
8    /// - On success, responds with [`DescribeStackResourceOutput`](crate::operation::describe_stack_resource::DescribeStackResourceOutput) with field(s):
9    ///   - [`stack_resource_detail(Option<StackResourceDetail>)`](crate::operation::describe_stack_resource::DescribeStackResourceOutput::stack_resource_detail): <p>A <code>StackResourceDetail</code> structure that contains the description of the specified resource in the specified stack.</p>
10    /// - On failure, responds with [`SdkError<DescribeStackResourceError>`](crate::operation::describe_stack_resource::DescribeStackResourceError)
11    pub fn describe_stack_resource(&self) -> crate::operation::describe_stack_resource::builders::DescribeStackResourceFluentBuilder {
12        crate::operation::describe_stack_resource::builders::DescribeStackResourceFluentBuilder::new(self.handle.clone())
13    }
14}