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.CreateReceiptRule

Contents

Description

Creates a receipt rule.

For information about setting up receipt rules, see the Amazon SES Developer Guide .

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

Synopsis

Creating a Request

createReceiptRule Source #

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

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

  • crrAfter - The name of an existing rule after which the new rule will be placed. If this parameter is null, the new rule will be inserted at the beginning of the rule list.
  • crrRuleSetName - The name of the rule set that the receipt rule will be added to.
  • crrRule - A data structure that contains the specified rule's name, actions, recipients, domains, enabled status, scan status, and TLS policy.

data CreateReceiptRule Source #

Represents a request to create a receipt rule. You use receipt rules to receive email with Amazon SES. For more information, see the Amazon SES Developer Guide .

See: createReceiptRule smart constructor.

Instances

Eq CreateReceiptRule Source # 
Data CreateReceiptRule Source # 

Methods

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

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

toConstr :: CreateReceiptRule -> Constr #

dataTypeOf :: CreateReceiptRule -> DataType #

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

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

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

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

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

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

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

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

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

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

Read CreateReceiptRule Source # 
Show CreateReceiptRule Source # 
Generic CreateReceiptRule Source # 
Hashable CreateReceiptRule Source # 
NFData CreateReceiptRule Source # 

Methods

rnf :: CreateReceiptRule -> () #

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

Request Lenses

crrAfter :: Lens' CreateReceiptRule (Maybe Text) Source #

The name of an existing rule after which the new rule will be placed. If this parameter is null, the new rule will be inserted at the beginning of the rule list.

crrRuleSetName :: Lens' CreateReceiptRule Text Source #

The name of the rule set that the receipt rule will be added to.

crrRule :: Lens' CreateReceiptRule ReceiptRule Source #

A data structure that contains the specified rule's name, actions, recipients, domains, enabled status, scan status, and TLS policy.

Destructuring the Response

createReceiptRuleResponse Source #

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

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

data CreateReceiptRuleResponse Source #

An empty element returned on a successful request.

See: createReceiptRuleResponse smart constructor.

Instances

Eq CreateReceiptRuleResponse Source # 
Data CreateReceiptRuleResponse Source # 

Methods

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

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

toConstr :: CreateReceiptRuleResponse -> Constr #

dataTypeOf :: CreateReceiptRuleResponse -> DataType #

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

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

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

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

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

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

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

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

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

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

Read CreateReceiptRuleResponse Source # 
Show CreateReceiptRuleResponse Source # 
Generic CreateReceiptRuleResponse Source # 
NFData CreateReceiptRuleResponse Source # 
type Rep CreateReceiptRuleResponse Source # 
type Rep CreateReceiptRuleResponse = D1 * (MetaData "CreateReceiptRuleResponse" "Network.AWS.SES.CreateReceiptRule" "amazonka-ses-1.6.0-Gb8e1E6FgybCfuSzgoBDRc" True) (C1 * (MetaCons "CreateReceiptRuleResponse'" PrefixI True) (S1 * (MetaSel (Just Symbol "_crrrsResponseStatus") NoSourceUnpackedness NoSourceStrictness DecidedLazy) (Rec0 * Int)))

Response Lenses