1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
// Code generated by software.amazon.smithy.rust.codegen.smithy-rs. DO NOT EDIT.
impl super::Client {
    /// Constructs a fluent builder for the [`GetGeneratedTemplate`](crate::operation::get_generated_template::builders::GetGeneratedTemplateFluentBuilder) operation.
    ///
    /// - The fluent builder is configurable:
    ///   - [`format(TemplateFormat)`](crate::operation::get_generated_template::builders::GetGeneratedTemplateFluentBuilder::format) / [`set_format(Option<TemplateFormat>)`](crate::operation::get_generated_template::builders::GetGeneratedTemplateFluentBuilder::set_format):<br>required: **false**<br><p>The language to use to retrieve for the generated template. Supported values are:</p> <ul>  <li>   <p><code>JSON</code></p></li>  <li>   <p><code>YAML</code></p></li> </ul><br>
    ///   - [`generated_template_name(impl Into<String>)`](crate::operation::get_generated_template::builders::GetGeneratedTemplateFluentBuilder::generated_template_name) / [`set_generated_template_name(Option<String>)`](crate::operation::get_generated_template::builders::GetGeneratedTemplateFluentBuilder::set_generated_template_name):<br>required: **true**<br><p>The name or Amazon Resource Name (ARN) of the generated template. The format is <code>arn:${Partition}:cloudformation:${Region}:${Account}:generatedtemplate/${Id}</code>. For example, <code>arn:aws:cloudformation:<i>us-east-1</i>:<i>123456789012</i>:generatedtemplate/<i>2e8465c1-9a80-43ea-a3a3-4f2d692fe6dc</i> </code>.</p><br>
    /// - On success, responds with [`GetGeneratedTemplateOutput`](crate::operation::get_generated_template::GetGeneratedTemplateOutput) with field(s):
    ///   - [`status(Option<GeneratedTemplateStatus>)`](crate::operation::get_generated_template::GetGeneratedTemplateOutput::status): <p>The status of the template generation. Supported values are:</p> <ul>  <li>   <p><code>CreatePending</code> - the creation of the template is pending.</p></li>  <li>   <p><code>CreateInProgress</code> - the creation of the template is in progress.</p></li>  <li>   <p><code>DeletePending</code> - the deletion of the template is pending.</p></li>  <li>   <p><code>DeleteInProgress</code> - the deletion of the template is in progress.</p></li>  <li>   <p><code>UpdatePending</code> - the update of the template is pending.</p></li>  <li>   <p><code>UpdateInProgress</code> - the update of the template is in progress.</p></li>  <li>   <p><code>Failed</code> - the template operation failed.</p></li>  <li>   <p><code>Complete</code> - the template operation is complete.</p></li> </ul>
    ///   - [`template_body(Option<String>)`](crate::operation::get_generated_template::GetGeneratedTemplateOutput::template_body): <p>The template body of the generated template, in the language specified by the <code>Language</code> parameter.</p>
    /// - On failure, responds with [`SdkError<GetGeneratedTemplateError>`](crate::operation::get_generated_template::GetGeneratedTemplateError)
    pub fn get_generated_template(&self) -> crate::operation::get_generated_template::builders::GetGeneratedTemplateFluentBuilder {
        crate::operation::get_generated_template::builders::GetGeneratedTemplateFluentBuilder::new(self.handle.clone())
    }
}