Copyright | (c) 2013-2016 Brendan Hay |
---|---|
License | Mozilla Public License, v. 2.0. |
Maintainer | Brendan Hay <brendan.g.hay@gmail.com> |
Stability | auto-generated |
Portability | non-portable (GHC extensions) |
Safe Haskell | None |
Language | Haskell2010 |
Creates a receipt rule.
For information about setting up receipt rules, see the Amazon SES Developer Guide .
This action is throttled at one request per second.
- createReceiptRule :: Text -> ReceiptRule -> CreateReceiptRule
- data CreateReceiptRule
- crrAfter :: Lens' CreateReceiptRule (Maybe Text)
- crrRuleSetName :: Lens' CreateReceiptRule Text
- crrRule :: Lens' CreateReceiptRule ReceiptRule
- createReceiptRuleResponse :: Int -> CreateReceiptRuleResponse
- data CreateReceiptRuleResponse
- crrrsResponseStatus :: Lens' CreateReceiptRuleResponse Int
Creating a Request
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 to which to add the rule.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.
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 to which to add the rule.
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:
crrrsResponseStatus
- -- | The response status code.
data CreateReceiptRuleResponse Source #
An empty element returned on a successful request.
See: createReceiptRuleResponse
smart constructor.
Response Lenses
crrrsResponseStatus :: Lens' CreateReceiptRuleResponse Int Source #
- - | The response status code.