[ AWS CLI Command Reference ](../../index.html)

  * [ Home ](../../index.html)
  * [ User Guide ](https://docs.aws.amazon.com/cli/latest/userguide/)
  * [ Forum ](https://forums.aws.amazon.com/forum.jspa?forumID=150)
  * [ GitHub ](https://github.com/aws/aws-cli)

###  Navigation

  * [ index ](../../genindex.html "General Index")
  * [ next ](get-stack-policy.html "get-stack-policy") | 
  * [ previous ](execute-change-set.html "execute-change-set") | 
  * [ AWS CLI 2.15.40 Command Reference ](../../index.html) » 
  * [ aws ](../index.html) » 
  * [ cloudformation ](index.html) » 

  * [ ← execute-change-set ](execute-change-set.html "previous chapter \(use the left arrow\)") / 
  * [ get-stack-policy → ](get-stack-policy.html "next chapter \(use the right arrow\)")

[ ![Amazon Web Services logo](../../_static/logo.png) ](../../index.html)

###  [ Table of Contents ](../../index.html)

  * get-generated-template 
    * Description 
    * Synopsis 
    * Options 
    * Global Options 
    * Output 

###  Quick search

Search box  Search

###  Feedback

Did you find this page useful? Do you have a suggestion to improve the
documentation? [ Give us feedback ](https://docs.aws.amazon.com/forms/aws-doc-
feedback?hidden_service_name=AWS%20Command%20Line%20Interface&hidden_guide_name=Reference&topic_url=https%3A%2F%2Fdocs.aws.amazon.com%2Fcli%2Flatest%2Freference/cloudformation/get-
generated-template.html) .  
If you would like to suggest an improvement or fix for the AWS CLI, check out
our [ contributing guide ](https://github.com/aws/aws-
cli/blob/develop/CONTRIBUTING.md) on GitHub.

###  User Guide

First time using the AWS CLI? See the [ User Guide
](https://docs.aws.amazon.com/cli/latest/userguide/) for help getting started.

[ [ aws  ](../index.html#cli-aws) . [ cloudformation  ](index.html#cli-aws-
cloudformation) ]

#  get-generated-template  Â¶

##  Description  Â¶

Retrieves a generated template. If the template is in an ` InProgress  ` or `
Pending  ` status then the template returned will be the template when the
template was last in a ` Complete  ` status. If the template has not yet been
in a ` Complete  ` status then an empty template will be returned.

See also: [ AWS API Documentation
](https://docs.aws.amazon.com/goto/WebAPI/cloudformation-2010-05-15/GetGeneratedTemplate)

##  Synopsis  Â¶

    
    
      get-generated-template
    [--format <value>]
    --generated-template-name <value>
    [--cli-input-json | --cli-input-yaml]
    [--generate-cli-skeleton <value>]
    [--debug]
    [--endpoint-url <value>]
    [--no-verify-ssl]
    [--no-paginate]
    [--output <value>]
    [--query <value>]
    [--profile <value>]
    [--region <value>]
    [--version <value>]
    [--color <value>]
    [--no-sign-request]
    [--ca-bundle <value>]
    [--cli-read-timeout <value>]
    [--cli-connect-timeout <value>]
    [--cli-binary-format <value>]
    [--no-cli-pager]
    [--cli-auto-prompt]
    [--no-cli-auto-prompt]
    

##  Options  Â¶

` --format  ` (string)

> The language to use to retrieve for the generated template. Supported values
> are:
>
>   * ` JSON  `
>   * ` YAML  `
>

>
> Possible values:
>
>   * ` JSON  `
>   * ` YAML  `
>

` --generated-template-name  ` (string)

> The name or Amazon Resource Name (ARN) of the generated template. The format
> is `
> arn:${Partition}:cloudformation:${Region}:${Account}:generatedtemplate/${Id}
> ` . For example,  ``  arn:aws:cloudformation: _us-east-1_ : _123456789012_
> :generatedtemplate/ _2e8465c1-9a80-43ea-a3a3-4f2d692fe6dc_ `` .

` --cli-input-json  ` | ` --cli-input-yaml  ` (string) Reads arguments from the JSON string provided. The JSON string follows the format provided by ` --generate-cli-skeleton  ` . If other arguments are provided on the command line, those values will override the JSON-provided values. It is not possible to pass arbitrary binary values using a JSON-provided value as the string will be taken literally. This may not be specified along with ` --cli-