libZSservicesZSamazonka-sesZSamazonka-ses
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.SES.ListTemplates

Description

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.

This operation returns paginated results.

Synopsis

Creating a Request

data ListTemplates Source #

See: newListTemplates smart constructor.

Constructors

ListTemplates' 

Fields

  • nextToken :: Maybe Text

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

  • maxItems :: Maybe Int

    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.

Instances

Instances details
Eq ListTemplates Source # 
Instance details

Defined in Amazonka.SES.ListTemplates

Read ListTemplates Source # 
Instance details

Defined in Amazonka.SES.ListTemplates

Show ListTemplates Source # 
Instance details

Defined in Amazonka.SES.ListTemplates

Generic ListTemplates Source # 
Instance details

Defined in Amazonka.SES.ListTemplates

Associated Types

type Rep ListTemplates :: Type -> Type #

NFData ListTemplates Source # 
Instance details

Defined in Amazonka.SES.ListTemplates

Methods

rnf :: ListTemplates -> () #

Hashable ListTemplates Source # 
Instance details

Defined in Amazonka.SES.ListTemplates

AWSPager ListTemplates Source # 
Instance details

Defined in Amazonka.SES.ListTemplates

AWSRequest ListTemplates Source # 
Instance details

Defined in Amazonka.SES.ListTemplates

Associated Types

type AWSResponse ListTemplates #

ToHeaders ListTemplates Source # 
Instance details

Defined in Amazonka.SES.ListTemplates

ToPath ListTemplates Source # 
Instance details

Defined in Amazonka.SES.ListTemplates

ToQuery ListTemplates Source # 
Instance details

Defined in Amazonka.SES.ListTemplates

type Rep ListTemplates Source # 
Instance details

Defined in Amazonka.SES.ListTemplates

type Rep ListTemplates = D1 ('MetaData "ListTemplates" "Amazonka.SES.ListTemplates" "libZSservicesZSamazonka-sesZSamazonka-ses" 'False) (C1 ('MetaCons "ListTemplates'" 'PrefixI 'True) (S1 ('MetaSel ('Just "nextToken") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe Text)) :*: S1 ('MetaSel ('Just "maxItems") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe Int))))
type AWSResponse ListTemplates Source # 
Instance details

Defined in Amazonka.SES.ListTemplates

newListTemplates :: ListTemplates Source #

Create a value of ListTemplates 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:ListTemplates', listTemplates_nextToken - A token returned from a previous call to ListTemplates to indicate the position in the list of email templates.

$sel:maxItems:ListTemplates', listTemplates_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.

Request Lenses

listTemplates_nextToken :: Lens' ListTemplates (Maybe Text) Source #

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

listTemplates_maxItems :: Lens' ListTemplates (Maybe Int) Source #

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.

Destructuring the Response

data ListTemplatesResponse Source #

See: newListTemplatesResponse smart constructor.

Constructors

ListTemplatesResponse' 

Fields

  • templatesMetadata :: Maybe [TemplateMetadata]

    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 call to ListTemplates to retrieve the next 50 email templates.

  • httpStatus :: Int

    The response's http status code.

Instances

Instances details
Eq ListTemplatesResponse Source # 
Instance details

Defined in Amazonka.SES.ListTemplates

Read ListTemplatesResponse Source # 
Instance details

Defined in Amazonka.SES.ListTemplates

Show ListTemplatesResponse Source # 
Instance details

Defined in Amazonka.SES.ListTemplates

Generic ListTemplatesResponse Source # 
Instance details

Defined in Amazonka.SES.ListTemplates

Associated Types

type Rep ListTemplatesResponse :: Type -> Type #

NFData ListTemplatesResponse Source # 
Instance details

Defined in Amazonka.SES.ListTemplates

Methods

rnf :: ListTemplatesResponse -> () #

type Rep ListTemplatesResponse Source # 
Instance details

Defined in Amazonka.SES.ListTemplates

type Rep ListTemplatesResponse = D1 ('MetaData "ListTemplatesResponse" "Amazonka.SES.ListTemplates" "libZSservicesZSamazonka-sesZSamazonka-ses" 'False) (C1 ('MetaCons "ListTemplatesResponse'" 'PrefixI 'True) (S1 ('MetaSel ('Just "templatesMetadata") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe [TemplateMetadata])) :*: (S1 ('MetaSel ('Just "nextToken") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe Text)) :*: S1 ('MetaSel ('Just "httpStatus") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 Int))))

newListTemplatesResponse Source #

Create a value of ListTemplatesResponse 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:ListTemplatesResponse', listTemplatesResponse_templatesMetadata - An array the contains the name and creation time stamp for each template in your Amazon SES account.

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

$sel:httpStatus:ListTemplatesResponse', listTemplatesResponse_httpStatus - The response's http status code.

Response Lenses

listTemplatesResponse_templatesMetadata :: Lens' ListTemplatesResponse (Maybe [TemplateMetadata]) Source #

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

listTemplatesResponse_nextToken :: Lens' ListTemplatesResponse (Maybe Text) Source #

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