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 #

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 #

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

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

Methods

rnf :: CreateReceiptRule -> () #

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

Request Lenses

crrAfter :: Lens' CreateReceiptRule (Maybe Text) #

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 #

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

crrRule :: Lens' CreateReceiptRule ReceiptRule #

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

Destructuring the Response

createReceiptRuleResponse #

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 #

An empty element returned on a successful request.

See: createReceiptRuleResponse smart constructor.

Instances

Eq CreateReceiptRuleResponse # 
Data CreateReceiptRuleResponse # 

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 # 
Show CreateReceiptRuleResponse # 
Generic CreateReceiptRuleResponse # 
NFData CreateReceiptRuleResponse # 
type Rep CreateReceiptRuleResponse # 
type Rep CreateReceiptRuleResponse = D1 * (MetaData "CreateReceiptRuleResponse" "Network.AWS.SES.CreateReceiptRule" "amazonka-ses-1.6.0-5nUPGbFUhEuKgCCmp7O4es" True) (C1 * (MetaCons "CreateReceiptRuleResponse'" PrefixI True) (S1 * (MetaSel (Just Symbol "_crrrsResponseStatus") NoSourceUnpackedness NoSourceStrictness DecidedLazy) (Rec0 * Int)))

Response Lenses

crrrsResponseStatus :: Lens' CreateReceiptRuleResponse Int #

  • - | The response status code.