get_template_summary
¶
get_template_summary(
*,
config_overrides: Optional[CloudFormationClientConfig] = None,
template_body: Optional[TemplateBody] = None,
template_url: Optional[TemplateURL] = None,
stack_name: Optional[StackNameOrId] = None,
stack_set_name: Optional[StackSetNameOrId] = None,
call_as: Optional[CallAs] = None,
template_summary_config: Optional[TemplateSummaryConfig] = None,
) -> GetTemplateSummaryOutput
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 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.
Parameters:
-
template_body(Optional[TemplateBody], default:None) –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, orTemplateURL. -
template_url(Optional[TemplateURL], default:None) –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, orTemplateURL. -
stack_name(Optional[StackNameOrId], default:None) –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, orTemplateURL. -
stack_set_name(Optional[StackSetNameOrId], default:None) –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, orTemplateURL. -
call_as(Optional[CallAs], default:None) –[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,
SELFis specified. UseSELFfor 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, 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.
-
-
template_summary_config(Optional[TemplateSummaryConfig], default:None) –Specifies options for the
GetTemplateSummaryAPI action.
Raises:
-
StackSetNotFoundException–The specified StackSet doesn't exist.
-
UnknownServiceError–The service returned an error code this client does not model.
Source code in docs_src/capo_cloudformation/_services/cloud_formation.py
3761 3762 3763 3764 3765 3766 3767 3768 3769 3770 3771 3772 3773 3774 3775 3776 3777 3778 3779 3780 3781 3782 3783 3784 3785 3786 3787 3788 3789 3790 3791 3792 3793 3794 3795 3796 3797 3798 3799 3800 3801 3802 3803 3804 3805 3806 3807 3808 3809 3810 3811 3812 3813 3814 3815 3816 3817 3818 3819 3820 3821 3822 3823 3824 3825 3826 3827 3828 3829 3830 3831 3832 3833 3834 3835 3836 | |