amazonka-ses-1.6.0: 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 Source #

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 Source #

See: listTemplates smart constructor.

Instances

Eq ListTemplates Source # 
Data ListTemplates Source # 

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 Source # 
Show ListTemplates Source # 
Generic ListTemplates Source # 

Associated Types

type Rep ListTemplates :: * -> * #

Hashable ListTemplates Source # 
NFData ListTemplates Source # 

Methods

rnf :: ListTemplates -> () #

AWSRequest ListTemplates Source # 
ToHeaders ListTemplates Source # 
ToPath ListTemplates Source # 
ToQuery ListTemplates Source # 
type Rep ListTemplates Source # 
type Rep ListTemplates = D1 * (MetaData "ListTemplates" "Network.AWS.SES.ListTemplates" "amazonka-ses-1.6.0-Gb8e1E6FgybCfuSzgoBDRc" False) (C1 * (MetaCons "ListTemplates'" PrefixI True) ((:*:) * (S1 * (MetaSel (Just Symbol "_ltNextToken") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 * (Maybe Text))) (S1 * (MetaSel (Just Symbol "_ltMaxItems") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 * (Maybe Int)))))
type Rs ListTemplates Source # 

Request Lenses

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

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

ltMaxItems :: 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

listTemplatesResponse Source #

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 Source #

See: listTemplatesResponse smart constructor.

Instances

Eq ListTemplatesResponse Source # 
Data ListTemplatesResponse Source # 

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 Source # 
Show ListTemplatesResponse Source # 
Generic ListTemplatesResponse Source # 
NFData ListTemplatesResponse Source # 

Methods

rnf :: ListTemplatesResponse -> () #

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

Response Lenses

ltrsTemplatesMetadata :: Lens' ListTemplatesResponse [TemplateMetadata] Source #

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

ltrsNextToken :: 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.

ltrsResponseStatus :: Lens' ListTemplatesResponse Int Source #

  • - | The response status code.