getGeneratedTemplate
inline suspend fun CloudFormationClient.getGeneratedTemplate(crossinline block: GetGeneratedTemplateRequest.Builder.() -> Unit): GetGeneratedTemplateResponse
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.
Samples
fun main() {
//sampleStart
// This example gets a generated template ins JSON format.
val resp = cloudFormationClient.getGeneratedTemplate {
generatedTemplateName = "JazzyTemplate"
}
//sampleEnd
}
fun main() {
//sampleStart
// This example gets a generated template in YAML format.
val resp = cloudFormationClient.getGeneratedTemplate {
generatedTemplateName = "JazzyTemplate"
format = TemplateFormat.fromValue("YAML")
}
//sampleEnd
}