Deleted a generated template.
Parameters:
Raises:
Examples:
To delete a generated template
This example deletes a generated template
>>> client.delete_generated_template(generated_template_name='JazzyTemplate')
Source code in docs_src/capo_cloudformation/_services/cloud_formation.py
| def delete_generated_template(
self,
*,
config_overrides: Optional[CloudFormationClientConfig] = None,
generated_template_name: Optional[
"capo_cloudformation.types.generated_template_name.GeneratedTemplateName"
] = None,
) -> None:
"""<p>Deleted a generated template.</p>
Args:
generated_template_name: <p>The name or Amazon Resource Name (ARN) of a generated template.</p>
Raises:
capo_cloudformation.errors.concurrent_resources_limit_exceeded_exception.ConcurrentResourcesLimitExceededException: <p>No more than 5 generated templates can be in an <code>InProgress</code> or <code>Pending</code> status at one time. This error is also returned if a generated template that is in an <code>InProgress</code> or <code>Pending</code> status is attempted to be updated or deleted.</p>
capo_cloudformation.errors.generated_template_not_found_exception.GeneratedTemplateNotFoundException: <p>The generated template was not found.</p>
capo_cloudformation.errors.UnknownServiceError: The service returned an error code this client does not model.
Examples:
To delete a generated template
This example deletes a generated template
>>> client.delete_generated_template(generated_template_name='JazzyTemplate')
"""
def _handler(
req: "OperationRequest[capo_cloudformation.types.delete_generated_template_input.DeleteGeneratedTemplateInput]",
) -> OperationResponse[None]:
import capo_cloudformation._operations.cloud_formation.delete_generated_template
output, http_response = (
capo_cloudformation._operations.cloud_formation.delete_generated_template.delete_generated_template(
req.options, req.input
)
)
return OperationResponse(output=output, response=http_response)
interceptors_, options_ = self.operation_options(
config_overrides, OperationLogging("DeleteGeneratedTemplate")
)
input_: capo_cloudformation.types.delete_generated_template_input.DeleteGeneratedTemplateInput = {}
if generated_template_name is not None:
input_["generated_template_name"] = generated_template_name
response = execute_pipeline(
OperationRequest(input=input_, options=options_),
handler=_handler,
interceptors=list(interceptors_),
)
response.response.close()
return response.output
|