Skip to content

/AWS1/CL_FRM=>GETTEMPLATESUMMARY()

About GetTemplateSummary

Returns information about a new or existing template. The GetTemplateSummary action is useful for viewing parameter information, such as default parameter values and parameter types, before you create or update a stack or stack set.

You can use the GetTemplateSummary action when you submit a template, or you can get template information for a stack set, or a running or deleted stack.

For deleted stacks, GetTemplateSummary returns the template information for up to 90 days after the stack has been deleted. If the template doesn't exist, a ValidationError is returned.

Method Signature

IMPORTING

Optional arguments:

IV_TEMPLATEBODY TYPE /AWS1/FRMTEMPLATEBODY /AWS1/FRMTEMPLATEBODY

Structure containing the template body with a minimum length of 1 byte and a maximum length of 51,200 bytes. For more information about templates, see Template anatomy in the CloudFormation User Guide.

Conditional: You must specify only one of the following parameters: StackName, StackSetName, TemplateBody, or TemplateURL.

IV_TEMPLATEURL TYPE /AWS1/FRMTEMPLATEURL /AWS1/FRMTEMPLATEURL

Location of file containing the template body. The URL must point to a template (max size: 460,800 bytes) that's located in an Amazon S3 bucket or a Systems Manager document. For more information about templates, see Template anatomy in the CloudFormation User Guide. The location for an Amazon S3 bucket must start with https://.

Conditional: You must specify only one of the following parameters: StackName, StackSetName, TemplateBody, or TemplateURL.

IV_STACKNAME TYPE /AWS1/FRMSTACKNAMEORID /AWS1/FRMSTACKNAMEORID

The name or the stack ID that's associated with the stack, which aren't always interchangeable. For running stacks, you can specify either the stack's name or its unique stack ID. For deleted stack, you must specify the unique stack ID.

Conditional: You must specify only one of the following parameters: StackName, StackSetName, TemplateBody, or TemplateURL.

IV_STACKSETNAME TYPE /AWS1/FRMSTACKSETNAMEORID /AWS1/FRMSTACKSETNAMEORID

The name or unique ID of the stack set from which the stack was created.

Conditional: You must specify only one of the following parameters: StackName, StackSetName, TemplateBody, or TemplateURL.

IV_CALLAS TYPE /AWS1/FRMCALLAS /AWS1/FRMCALLAS

[Service-managed permissions] Specifies whether you are acting as an account administrator in the organization's management account or as a delegated administrator in a member account.

By default, SELF is specified. Use SELF for stack sets with self-managed permissions.

  • If you are signed in to the management account, specify SELF.

  • If you are signed in to a delegated administrator account, specify DELEGATED_ADMIN.

    Your Amazon Web Services account must be registered as a delegated administrator in the management account. For more information, see Register a delegated administrator in the CloudFormation User Guide.

IO_TEMPLATESUMMARYCONFIG TYPE REF TO /AWS1/CL_FRMTMPLSUMMARYCONFIG /AWS1/CL_FRMTMPLSUMMARYCONFIG

Specifies options for the GetTemplateSummary API action.

RETURNING

OO_OUTPUT TYPE REF TO /AWS1/CL_FRMGETTMPLSUMMOUTPUT /AWS1/CL_FRMGETTMPLSUMMOUTPUT