aws_sdk_cloudformation/client/
get_template.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 [`GetTemplate`](crate::operation::get_template::builders::GetTemplateFluentBuilder) operation.
4    ///
5    /// - The fluent builder is configurable:
6    ///   - [`stack_name(impl Into<String>)`](crate::operation::get_template::builders::GetTemplateFluentBuilder::stack_name) / [`set_stack_name(Option<String>)`](crate::operation::get_template::builders::GetTemplateFluentBuilder::set_stack_name):<br>required: **false**<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    ///   - [`change_set_name(impl Into<String>)`](crate::operation::get_template::builders::GetTemplateFluentBuilder::change_set_name) / [`set_change_set_name(Option<String>)`](crate::operation::get_template::builders::GetTemplateFluentBuilder::set_change_set_name):<br>required: **false**<br><p>The name or Amazon Resource Name (ARN) of a change set for which CloudFormation returns the associated template. If you specify a name, you must also specify the <code>StackName</code>.</p><br>
8    ///   - [`template_stage(TemplateStage)`](crate::operation::get_template::builders::GetTemplateFluentBuilder::template_stage) / [`set_template_stage(Option<TemplateStage>)`](crate::operation::get_template::builders::GetTemplateFluentBuilder::set_template_stage):<br>required: **false**<br><p>For templates that include transforms, the stage of the template that CloudFormation returns. To get the user-submitted template, specify <code>Original</code>. To get the template after CloudFormation has processed all transforms, specify <code>Processed</code>.</p> <p>If the template doesn't include transforms, <code>Original</code> and <code>Processed</code> return the same template. By default, CloudFormation specifies <code>Processed</code>.</p><br>
9    /// - On success, responds with [`GetTemplateOutput`](crate::operation::get_template::GetTemplateOutput) with field(s):
10    ///   - [`template_body(Option<String>)`](crate::operation::get_template::GetTemplateOutput::template_body): <p>Structure containing the template body.</p> <p>CloudFormation returns the same template that was used when the stack was created.</p>
11    ///   - [`stages_available(Option<Vec::<TemplateStage>>)`](crate::operation::get_template::GetTemplateOutput::stages_available): <p>The stage of the template that you can retrieve. For stacks, the <code>Original</code> and <code>Processed</code> templates are always available. For change sets, the <code>Original</code> template is always available. After CloudFormation finishes creating the change set, the <code>Processed</code> template becomes available.</p>
12    /// - On failure, responds with [`SdkError<GetTemplateError>`](crate::operation::get_template::GetTemplateError)
13    pub fn get_template(&self) -> crate::operation::get_template::builders::GetTemplateFluentBuilder {
14        crate::operation::get_template::builders::GetTemplateFluentBuilder::new(self.handle.clone())
15    }
16}