aws_sdk_ses/client/test_render_template.rs
1// Code generated by software.amazon.smithy.rust.codegen.smithy-rs. DO NOT EDIT.
2impl super::Client {
3 /// Constructs a fluent builder for the [`TestRenderTemplate`](crate::operation::test_render_template::builders::TestRenderTemplateFluentBuilder) operation.
4 ///
5 /// - The fluent builder is configurable:
6 /// - [`template_name(impl Into<String>)`](crate::operation::test_render_template::builders::TestRenderTemplateFluentBuilder::template_name) / [`set_template_name(Option<String>)`](crate::operation::test_render_template::builders::TestRenderTemplateFluentBuilder::set_template_name):<br>required: **true**<br><p>The name of the template to render.</p><br>
7 /// - [`template_data(impl Into<String>)`](crate::operation::test_render_template::builders::TestRenderTemplateFluentBuilder::template_data) / [`set_template_data(Option<String>)`](crate::operation::test_render_template::builders::TestRenderTemplateFluentBuilder::set_template_data):<br>required: **true**<br><p>A list of replacement values to apply to the template. This parameter is a JSON object, typically consisting of key-value pairs in which the keys correspond to replacement tags in the email template.</p><br>
8 /// - On success, responds with [`TestRenderTemplateOutput`](crate::operation::test_render_template::TestRenderTemplateOutput) with field(s):
9 /// - [`rendered_template(Option<String>)`](crate::operation::test_render_template::TestRenderTemplateOutput::rendered_template): <p>The complete MIME message rendered by applying the data in the TemplateData parameter to the template specified in the TemplateName parameter.</p>
10 /// - On failure, responds with [`SdkError<TestRenderTemplateError>`](crate::operation::test_render_template::TestRenderTemplateError)
11 pub fn test_render_template(&self) -> crate::operation::test_render_template::builders::TestRenderTemplateFluentBuilder {
12 crate::operation::test_render_template::builders::TestRenderTemplateFluentBuilder::new(self.handle.clone())
13 }
14}