aws_sdk_sesv2/client/list_email_templates.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 [`ListEmailTemplates`](crate::operation::list_email_templates::builders::ListEmailTemplatesFluentBuilder) operation.
4 /// This operation supports pagination; See [`into_paginator()`](crate::operation::list_email_templates::builders::ListEmailTemplatesFluentBuilder::into_paginator).
5 ///
6 /// - The fluent builder is configurable:
7 /// - [`next_token(impl Into<String>)`](crate::operation::list_email_templates::builders::ListEmailTemplatesFluentBuilder::next_token) / [`set_next_token(Option<String>)`](crate::operation::list_email_templates::builders::ListEmailTemplatesFluentBuilder::set_next_token):<br>required: **false**<br><p>A token returned from a previous call to <code>ListEmailTemplates</code> to indicate the position in the list of email templates.</p><br>
8 /// - [`page_size(i32)`](crate::operation::list_email_templates::builders::ListEmailTemplatesFluentBuilder::page_size) / [`set_page_size(Option<i32>)`](crate::operation::list_email_templates::builders::ListEmailTemplatesFluentBuilder::set_page_size):<br>required: **false**<br><p>The number of results to show in a single call to <code>ListEmailTemplates</code>. If the number of results is larger than the number you specified in this parameter, then the response includes a <code>NextToken</code> element, which you can use to obtain additional results.</p> <p>The value you specify has to be at least 1, and can be no more than 100.</p><br>
9 /// - On success, responds with [`ListEmailTemplatesOutput`](crate::operation::list_email_templates::ListEmailTemplatesOutput) with field(s):
10 /// - [`templates_metadata(Option<Vec::<EmailTemplateMetadata>>)`](crate::operation::list_email_templates::ListEmailTemplatesOutput::templates_metadata): <p>An array the contains the name and creation time stamp for each template in your Amazon SES account.</p>
11 /// - [`next_token(Option<String>)`](crate::operation::list_email_templates::ListEmailTemplatesOutput::next_token): <p>A token indicating that there are additional email templates available to be listed. Pass this token to a subsequent <code>ListEmailTemplates</code> call to retrieve the next 10 email templates.</p>
12 /// - On failure, responds with [`SdkError<ListEmailTemplatesError>`](crate::operation::list_email_templates::ListEmailTemplatesError)
13 pub fn list_email_templates(&self) -> crate::operation::list_email_templates::builders::ListEmailTemplatesFluentBuilder {
14 crate::operation::list_email_templates::builders::ListEmailTemplatesFluentBuilder::new(self.handle.clone())
15 }
16}