Copyright | (c) 2013-2015 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.
See: AWS API Reference for CreateReceiptRule.
- 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:
data CreateReceiptRule Source
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:
data CreateReceiptRuleResponse Source
See: createReceiptRuleResponse
smart constructor.
Response Lenses
crrrsResponseStatus :: Lens' CreateReceiptRuleResponse Int Source
The response status code.