createTemplate method

Future<void> createTemplate({
  1. required Template template,
})

Creates an email template. Email templates enable you to send personalized email to one or more destinations in a single API operation. For more information, see the Amazon SES Developer Guide.

You can execute this operation no more than once per second.

May throw AlreadyExistsException. May throw InvalidTemplateException. May throw LimitExceededException.

Parameter template : The content of the email, composed of a subject line, an HTML part, and a text-only part.

Implementation

Future<void> createTemplate({
  required Template template,
}) async {
  ArgumentError.checkNotNull(template, 'template');
  final $request = <String, dynamic>{};
  $request['Template'] = template;
  await _protocol.send(
    $request,
    action: 'CreateTemplate',
    version: '2010-12-01',
    method: 'POST',
    requestUri: '/',
    exceptionFnMap: _exceptionFns,
    shape: shapes['CreateTemplateRequest'],
    shapes: shapes,
    resultWrapper: 'CreateTemplateResult',
  );
}