CloudFormationClient.get_template_summary
rboto-cloudformation==0.4.0 · Service index · Types
Model summary (excerpt): 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 StackSet. You can use the GetTemplateSummary action when you submit a template, or you can get template information for a StackSet, or a running or deleted stack. For deleted...
Install and imports
from rboto import CloudFormationClient
from rboto_cloudformation.types import (
CallAs,
GetTemplateSummaryOutput,
TemplateSummaryConfig,
)
Signature
async def get_template_summary(
*,
template_body: str | None = None,
template_url: str | None = None,
stack_name: str | None = None,
stack_set_name: str | None = None,
call_as: CallAs | None = None,
template_summary_config: TemplateSummaryConfig | None = None,
) -> GetTemplateSummaryOutput: ...
Arguments without defaults are required. None omits an optional request argument. Static types do not validate resource existence, permissions, lengths, ranges, or conditional service requirements.
Arguments
| Argument | Required | Model notes (excerpt) |
|---|---|---|
template_body |
No | Structure that contains the template body with a minimum length of 1 byte and a maximum length of 51,200 bytes. Conditional: You must specify only one of the following parameters: StackName , StackSetName , TemplateBody , or TemplateURL . |
template_url |
No | The URL of a file that contains the template body. The URL must point to a template (max size: 1 MB) that's located in an Amazon S3 bucket or a Systems Manager document. 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 . |
stack_name |
No | 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 . |
stack_set_name |
No | The name or unique ID of the StackSet from which the stack was created. Conditional: You must specify only one of the following parameters: StackName , StackSetName , TemplateBody , or TemplateURL . |
call_as |
No | [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 StackSets 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,... |
template_summary_config |
No | Specifies options for the GetTemplateSummary API action. |
Output
GetTemplateSummaryOutput.
Read-only native attributes, accessed as response.field. Collection getters materialize Python values; to_dict() recursively materializes a mapping. Streams are consumed once.
| Field | Type | Presence | References |
|---|---|---|---|
parameters |
list[ParameterDeclarationOutput] | None |
Always present | ParameterDeclarationOutput |
description |
str | None |
Always present | — |
capabilities |
list[CapabilityOutput] | None |
Always present | CapabilityOutput |
capabilities_reason |
str | None |
Always present | — |
resource_types |
list[str] | None |
Always present | — |
version |
str | None |
Always present | — |
metadata |
str | None |
Always present | — |
declared_transforms |
list[str] | None |
Always present | — |
resource_identifier_summaries |
list[ResourceIdentifierSummaryOutput] | None |
Always present | ResourceIdentifierSummaryOutput |
warnings |
WarningsOutput | None |
Always present | WarningsOutput |
| None means a value can be absent. Output mappings include every declared key; optional input keys may be omitted. Unknown output enum/union variants are not automatically valid inputs.
Related types
CallAs, GetTemplateSummaryOutput, TemplateSummaryConfig
Follow these links for nested inputs and outputs; recursive types link back to the same type page.
Pagination and streaming
No generated paginator for this operation.
No output stream.
Errors
Import from rboto_cloudformation.exceptions:
Other service failures use the service base error; credential, transport and timeout failures use shared errors.