get_template_summary
async
¶
get_template_summary(
*,
config_overrides: Optional[AsyncCloudFormationClientConfig] = 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/async_cloud_formation.py
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 3837 3838 3839 3840 3841 3842 3843 3844 3845 3846 3847 3848 3849 3850 3851 3852 3853 3854 3855 3856 3857 3858 3859 3860 3861 3862 3863 3864 3865 3866 3867 3868 3869 3870 3871 3872 3873 3874 3875 3876 3877 3878 3879 3880 3881 3882 3883 3884 3885 3886 3887 | |