listTemplates method
Lists the email templates present in your Amazon SES account in the current AWS Region.
You can execute this operation no more than once per second.
Parameter maxItems
:
The maximum number of templates to return. This value must be at least 1
and less than or equal to 10. If you do not specify a value, or if you
specify a value less than 1 or greater than 10, the operation will return
up to 10 results.
Parameter nextToken
:
A token returned from a previous call to ListTemplates
to
indicate the position in the list of email templates.
Implementation
Future<ListTemplatesResponse> listTemplates({
int? maxItems,
String? nextToken,
}) async {
final $request = <String, dynamic>{};
maxItems?.also((arg) => $request['MaxItems'] = arg);
nextToken?.also((arg) => $request['NextToken'] = arg);
final $result = await _protocol.send(
$request,
action: 'ListTemplates',
version: '2010-12-01',
method: 'POST',
requestUri: '/',
exceptionFnMap: _exceptionFns,
shape: shapes['ListTemplatesRequest'],
shapes: shapes,
resultWrapper: 'ListTemplatesResult',
);
return ListTemplatesResponse.fromXml($result);
}