libZSservicesZSamazonka-sesv2ZSamazonka-sesv2
Copyright(c) 2013-2021 Brendan Hay
LicenseMozilla Public License, v. 2.0.
MaintainerBrendan Hay <brendan.g.hay+amazonka@gmail.com>
Stabilityauto-generated
Portabilitynon-portable (GHC extensions)
Safe HaskellNone

Amazonka.SESV2.ListEmailTemplates

Description

Lists the email templates present in your Amazon SES account in the current Amazon Web Services Region.

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

Synopsis

Creating a Request

data ListEmailTemplates Source #

Represents a request to list the email templates present in your Amazon SES account in the current Amazon Web Services Region. For more information, see the Amazon SES Developer Guide.

See: newListEmailTemplates smart constructor.

Constructors

ListEmailTemplates' 

Fields

  • nextToken :: Maybe Text

    A token returned from a previous call to ListEmailTemplates to indicate the position in the list of email templates.

  • pageSize :: Maybe Int

    The number of results to show in a single call to ListEmailTemplates. If the number of results is larger than the number you specified in this parameter, then the response includes a NextToken element, which you can use to obtain additional results.

    The value you specify has to be at least 1, and can be no more than 10.

Instances

Instances details
Eq ListEmailTemplates Source # 
Instance details

Defined in Amazonka.SESV2.ListEmailTemplates

Read ListEmailTemplates Source # 
Instance details

Defined in Amazonka.SESV2.ListEmailTemplates

Show ListEmailTemplates Source # 
Instance details

Defined in Amazonka.SESV2.ListEmailTemplates

Generic ListEmailTemplates Source # 
Instance details

Defined in Amazonka.SESV2.ListEmailTemplates

Associated Types

type Rep ListEmailTemplates :: Type -> Type #

NFData ListEmailTemplates Source # 
Instance details

Defined in Amazonka.SESV2.ListEmailTemplates

Methods

rnf :: ListEmailTemplates -> () #

Hashable ListEmailTemplates Source # 
Instance details

Defined in Amazonka.SESV2.ListEmailTemplates

AWSRequest ListEmailTemplates Source # 
Instance details

Defined in Amazonka.SESV2.ListEmailTemplates

Associated Types

type AWSResponse ListEmailTemplates #

ToHeaders ListEmailTemplates Source # 
Instance details

Defined in Amazonka.SESV2.ListEmailTemplates

ToPath ListEmailTemplates Source # 
Instance details

Defined in Amazonka.SESV2.ListEmailTemplates

ToQuery ListEmailTemplates Source # 
Instance details

Defined in Amazonka.SESV2.ListEmailTemplates

type Rep ListEmailTemplates Source # 
Instance details

Defined in Amazonka.SESV2.ListEmailTemplates

type Rep ListEmailTemplates = D1 ('MetaData "ListEmailTemplates" "Amazonka.SESV2.ListEmailTemplates" "libZSservicesZSamazonka-sesv2ZSamazonka-sesv2" 'False) (C1 ('MetaCons "ListEmailTemplates'" 'PrefixI 'True) (S1 ('MetaSel ('Just "nextToken") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe Text)) :*: S1 ('MetaSel ('Just "pageSize") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe Int))))
type AWSResponse ListEmailTemplates Source # 
Instance details

Defined in Amazonka.SESV2.ListEmailTemplates

newListEmailTemplates :: ListEmailTemplates Source #

Create a value of ListEmailTemplates with all optional fields omitted.

Use generic-lens or optics to modify other optional fields.

The following record fields are available, with the corresponding lenses provided for backwards compatibility:

$sel:nextToken:ListEmailTemplates', listEmailTemplates_nextToken - A token returned from a previous call to ListEmailTemplates to indicate the position in the list of email templates.

$sel:pageSize:ListEmailTemplates', listEmailTemplates_pageSize - The number of results to show in a single call to ListEmailTemplates. If the number of results is larger than the number you specified in this parameter, then the response includes a NextToken element, which you can use to obtain additional results.

The value you specify has to be at least 1, and can be no more than 10.

Request Lenses

listEmailTemplates_nextToken :: Lens' ListEmailTemplates (Maybe Text) Source #

A token returned from a previous call to ListEmailTemplates to indicate the position in the list of email templates.

listEmailTemplates_pageSize :: Lens' ListEmailTemplates (Maybe Int) Source #

The number of results to show in a single call to ListEmailTemplates. If the number of results is larger than the number you specified in this parameter, then the response includes a NextToken element, which you can use to obtain additional results.

The value you specify has to be at least 1, and can be no more than 10.

Destructuring the Response

data ListEmailTemplatesResponse Source #

The following elements are returned by the service.

See: newListEmailTemplatesResponse smart constructor.

Constructors

ListEmailTemplatesResponse' 

Fields

  • templatesMetadata :: Maybe [EmailTemplateMetadata]

    An array the contains the name and creation time stamp for each template in your Amazon SES account.

  • nextToken :: Maybe Text

    A token indicating that there are additional email templates available to be listed. Pass this token to a subsequent ListEmailTemplates call to retrieve the next 10 email templates.

  • httpStatus :: Int

    The response's http status code.

Instances

Instances details
Eq ListEmailTemplatesResponse Source # 
Instance details

Defined in Amazonka.SESV2.ListEmailTemplates

Read ListEmailTemplatesResponse Source # 
Instance details

Defined in Amazonka.SESV2.ListEmailTemplates

Show ListEmailTemplatesResponse Source # 
Instance details

Defined in Amazonka.SESV2.ListEmailTemplates

Generic ListEmailTemplatesResponse Source # 
Instance details

Defined in Amazonka.SESV2.ListEmailTemplates

Associated Types

type Rep ListEmailTemplatesResponse :: Type -> Type #

NFData ListEmailTemplatesResponse Source # 
Instance details

Defined in Amazonka.SESV2.ListEmailTemplates

type Rep ListEmailTemplatesResponse Source # 
Instance details

Defined in Amazonka.SESV2.ListEmailTemplates

type Rep ListEmailTemplatesResponse = D1 ('MetaData "ListEmailTemplatesResponse" "Amazonka.SESV2.ListEmailTemplates" "libZSservicesZSamazonka-sesv2ZSamazonka-sesv2" 'False) (C1 ('MetaCons "ListEmailTemplatesResponse'" 'PrefixI 'True) (S1 ('MetaSel ('Just "templatesMetadata") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe [EmailTemplateMetadata])) :*: (S1 ('MetaSel ('Just "nextToken") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe Text)) :*: S1 ('MetaSel ('Just "httpStatus") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 Int))))

newListEmailTemplatesResponse Source #

Create a value of ListEmailTemplatesResponse with all optional fields omitted.

Use generic-lens or optics to modify other optional fields.

The following record fields are available, with the corresponding lenses provided for backwards compatibility:

$sel:templatesMetadata:ListEmailTemplatesResponse', listEmailTemplatesResponse_templatesMetadata - An array the contains the name and creation time stamp for each template in your Amazon SES account.

$sel:nextToken:ListEmailTemplates', listEmailTemplatesResponse_nextToken - A token indicating that there are additional email templates available to be listed. Pass this token to a subsequent ListEmailTemplates call to retrieve the next 10 email templates.

$sel:httpStatus:ListEmailTemplatesResponse', listEmailTemplatesResponse_httpStatus - The response's http status code.

Response Lenses

listEmailTemplatesResponse_templatesMetadata :: Lens' ListEmailTemplatesResponse (Maybe [EmailTemplateMetadata]) Source #

An array the contains the name and creation time stamp for each template in your Amazon SES account.

listEmailTemplatesResponse_nextToken :: Lens' ListEmailTemplatesResponse (Maybe Text) Source #

A token indicating that there are additional email templates available to be listed. Pass this token to a subsequent ListEmailTemplates call to retrieve the next 10 email templates.