updateCustomVerificationEmailTemplate method

Future<void> updateCustomVerificationEmailTemplate({
  1. required String templateName,
  2. String? failureRedirectionURL,
  3. String? fromEmailAddress,
  4. String? successRedirectionURL,
  5. String? templateContent,
  6. String? templateSubject,
})

Updates an existing custom verification email template.

For more information about custom verification email templates, see Using Custom Verification Email Templates in the Amazon SES Developer Guide.

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

May throw CustomVerificationEmailTemplateDoesNotExistException. May throw FromEmailAddressNotVerifiedException. May throw CustomVerificationEmailInvalidContentException.

Parameter templateName : The name of the custom verification email template that you want to update.

Parameter failureRedirectionURL : The URL that the recipient of the verification email is sent to if his or her address is not successfully verified.

Parameter fromEmailAddress : The email address that the custom verification email is sent from.

Parameter successRedirectionURL : The URL that the recipient of the verification email is sent to if his or her address is successfully verified.

Parameter templateContent : The content of the custom verification email. The total size of the email must be less than 10 MB. The message body may contain HTML, with some limitations. For more information, see Custom Verification Email Frequently Asked Questions in the Amazon SES Developer Guide.

Parameter templateSubject : The subject line of the custom verification email.

Implementation

Future<void> updateCustomVerificationEmailTemplate({
  required String templateName,
  String? failureRedirectionURL,
  String? fromEmailAddress,
  String? successRedirectionURL,
  String? templateContent,
  String? templateSubject,
}) async {
  ArgumentError.checkNotNull(templateName, 'templateName');
  final $request = <String, dynamic>{};
  $request['TemplateName'] = templateName;
  failureRedirectionURL
      ?.also((arg) => $request['FailureRedirectionURL'] = arg);
  fromEmailAddress?.also((arg) => $request['FromEmailAddress'] = arg);
  successRedirectionURL
      ?.also((arg) => $request['SuccessRedirectionURL'] = arg);
  templateContent?.also((arg) => $request['TemplateContent'] = arg);
  templateSubject?.also((arg) => $request['TemplateSubject'] = arg);
  await _protocol.send(
    $request,
    action: 'UpdateCustomVerificationEmailTemplate',
    version: '2010-12-01',
    method: 'POST',
    requestUri: '/',
    exceptionFnMap: _exceptionFns,
    shape: shapes['UpdateCustomVerificationEmailTemplateRequest'],
    shapes: shapes,
  );
}