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 #

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

Associated Types

type Rep ListTemplates :: * -> * #

Hashable ListTemplates # 
NFData ListTemplates # 

Methods

rnf :: ListTemplates -> () #

AWSRequest ListTemplates # 
ToHeaders ListTemplates # 
ToPath ListTemplates # 
ToQuery ListTemplates # 
type Rep ListTemplates # 
type Rep ListTemplates = D1 * (MetaData "ListTemplates" "Network.AWS.SES.ListTemplates" "amazonka-ses-1.6.0-5nUPGbFUhEuKgCCmp7O4es" 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 # 

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 # 
Data ListTemplatesResponse # 

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

Methods

rnf :: ListTemplatesResponse -> () #

type Rep ListTemplatesResponse # 
type Rep ListTemplatesResponse = D1 * (MetaData "ListTemplatesResponse" "Network.AWS.SES.ListTemplates" "amazonka-ses-1.6.0-5nUPGbFUhEuKgCCmp7O4es" 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] #

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.