amazonka-ses-1.6.1: Amazon Simple Email Service SDK.

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

Network.AWS.SES.ListTemplates

Contents

Description

Lists the email templates present in your Amazon SES account.

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

Synopsis

Creating a Request

listTemplates :: ListTemplates #

Creates a value of ListTemplates with the minimum fields required to make a request.

Use one of the following lenses to modify other fields as desired:

  • ltNextToken - A token returned from a previous call to ListTemplates to indicate the position in the list of email templates.
  • ltMaxItems - 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.

data ListTemplates #

See: listTemplates smart constructor.

Instances
Eq ListTemplates # 
Instance details

Defined in Network.AWS.SES.ListTemplates

Data ListTemplates # 
Instance details

Defined in Network.AWS.SES.ListTemplates

Methods

gfoldl :: (forall d b. Data d => c (d -> b) -> d -> c b) -> (forall g. g -> c g) -> ListTemplates -> c ListTemplates #

gunfold :: (forall b r. Data b => c (b -> r) -> c r) -> (forall r. r -> c r) -> Constr -> c ListTemplates #

toConstr :: ListTemplates -> Constr #

dataTypeOf :: ListTemplates -> DataType #

dataCast1 :: Typeable t => (forall d. Data d => c (t d)) -> Maybe (c ListTemplates) #

dataCast2 :: Typeable t => (forall d e. (Data d, Data e) => c (t d e)) -> Maybe (c ListTemplates) #

gmapT :: (forall b. Data b => b -> b) -> ListTemplates -> ListTemplates #

gmapQl :: (r -> r' -> r) -> r -> (forall d. Data d => d -> r') -> ListTemplates -> r #

gmapQr :: (r' -> r -> r) -> r -> (forall d. Data d => d -> r') -> ListTemplates -> r #

gmapQ :: (forall d. Data d => d -> u) -> ListTemplates -> [u] #

gmapQi :: Int -> (forall d. Data d => d -> u) -> ListTemplates -> u #

gmapM :: Monad m => (forall d. Data d => d -> m d) -> ListTemplates -> m ListTemplates #

gmapMp :: MonadPlus m => (forall d. Data d => d -> m d) -> ListTemplates -> m ListTemplates #

gmapMo :: MonadPlus m => (forall d. Data d => d -> m d) -> ListTemplates -> m ListTemplates #

Read ListTemplates # 
Instance details

Defined in Network.AWS.SES.ListTemplates

Show ListTemplates # 
Instance details

Defined in Network.AWS.SES.ListTemplates

Generic ListTemplates # 
Instance details

Defined in Network.AWS.SES.ListTemplates

Associated Types

type Rep ListTemplates :: Type -> Type #

Hashable ListTemplates # 
Instance details

Defined in Network.AWS.SES.ListTemplates

AWSRequest ListTemplates # 
Instance details

Defined in Network.AWS.SES.ListTemplates

Associated Types

type Rs ListTemplates :: Type #

ToHeaders ListTemplates # 
Instance details

Defined in Network.AWS.SES.ListTemplates

ToPath ListTemplates # 
Instance details

Defined in Network.AWS.SES.ListTemplates

ToQuery ListTemplates # 
Instance details

Defined in Network.AWS.SES.ListTemplates

NFData ListTemplates # 
Instance details

Defined in Network.AWS.SES.ListTemplates

Methods

rnf :: ListTemplates -> () #

type Rep ListTemplates # 
Instance details

Defined in Network.AWS.SES.ListTemplates

type Rep ListTemplates = D1 (MetaData "ListTemplates" "Network.AWS.SES.ListTemplates" "amazonka-ses-1.6.1-GyciVs3kElCGWDMAMMcZl5" False) (C1 (MetaCons "ListTemplates'" PrefixI True) (S1 (MetaSel (Just "_ltNextToken") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 (Maybe Text)) :*: S1 (MetaSel (Just "_ltMaxItems") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 (Maybe Int))))
type Rs ListTemplates # 
Instance details

Defined in Network.AWS.SES.ListTemplates

Request Lenses

ltNextToken :: Lens' ListTemplates (Maybe Text) #

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

ltMaxItems :: Lens' ListTemplates (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.

Destructuring the Response

listTemplatesResponse #

Creates a value of ListTemplatesResponse with the minimum fields required to make a request.

Use one of the following lenses to modify other fields as desired:

  • ltrsTemplatesMetadata - An array the contains the name and creation time stamp for each template in your Amazon SES account.
  • ltrsNextToken - 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.
  • ltrsResponseStatus - -- | The response status code.

data ListTemplatesResponse #

See: listTemplatesResponse smart constructor.

Instances
Eq ListTemplatesResponse # 
Instance details

Defined in Network.AWS.SES.ListTemplates

Data ListTemplatesResponse # 
Instance details

Defined in Network.AWS.SES.ListTemplates

Methods

gfoldl :: (forall d b. Data d => c (d -> b) -> d -> c b) -> (forall g. g -> c g) -> ListTemplatesResponse -> c ListTemplatesResponse #

gunfold :: (forall b r. Data b => c (b -> r) -> c r) -> (forall r. r -> c r) -> Constr -> c ListTemplatesResponse #

toConstr :: ListTemplatesResponse -> Constr #

dataTypeOf :: ListTemplatesResponse -> DataType #

dataCast1 :: Typeable t => (forall d. Data d => c (t d)) -> Maybe (c ListTemplatesResponse) #

dataCast2 :: Typeable t => (forall d e. (Data d, Data e) => c (t d e)) -> Maybe (c ListTemplatesResponse) #

gmapT :: (forall b. Data b => b -> b) -> ListTemplatesResponse -> ListTemplatesResponse #

gmapQl :: (r -> r' -> r) -> r -> (forall d. Data d => d -> r') -> ListTemplatesResponse -> r #

gmapQr :: (r' -> r -> r) -> r -> (forall d. Data d => d -> r') -> ListTemplatesResponse -> r #

gmapQ :: (forall d. Data d => d -> u) -> ListTemplatesResponse -> [u] #

gmapQi :: Int -> (forall d. Data d => d -> u) -> ListTemplatesResponse -> u #

gmapM :: Monad m => (forall d. Data d => d -> m d) -> ListTemplatesResponse -> m ListTemplatesResponse #

gmapMp :: MonadPlus m => (forall d. Data d => d -> m d) -> ListTemplatesResponse -> m ListTemplatesResponse #

gmapMo :: MonadPlus m => (forall d. Data d => d -> m d) -> ListTemplatesResponse -> m ListTemplatesResponse #

Read ListTemplatesResponse # 
Instance details

Defined in Network.AWS.SES.ListTemplates

Show ListTemplatesResponse # 
Instance details

Defined in Network.AWS.SES.ListTemplates

Generic ListTemplatesResponse # 
Instance details

Defined in Network.AWS.SES.ListTemplates

Associated Types

type Rep ListTemplatesResponse :: Type -> Type #

NFData ListTemplatesResponse # 
Instance details

Defined in Network.AWS.SES.ListTemplates

Methods

rnf :: ListTemplatesResponse -> () #

type Rep ListTemplatesResponse # 
Instance details

Defined in Network.AWS.SES.ListTemplates

type Rep ListTemplatesResponse = D1 (MetaData "ListTemplatesResponse" "Network.AWS.SES.ListTemplates" "amazonka-ses-1.6.1-GyciVs3kElCGWDMAMMcZl5" False) (C1 (MetaCons "ListTemplatesResponse'" PrefixI True) (S1 (MetaSel (Just "_ltrsTemplatesMetadata") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 (Maybe [TemplateMetadata])) :*: (S1 (MetaSel (Just "_ltrsNextToken") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 (Maybe Text)) :*: S1 (MetaSel (Just "_ltrsResponseStatus") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 Int))))

Response Lenses

ltrsTemplatesMetadata :: Lens' ListTemplatesResponse [TemplateMetadata] #

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

ltrsNextToken :: Lens' ListTemplatesResponse (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.

ltrsResponseStatus :: Lens' ListTemplatesResponse Int #

  • - | The response status code.