Copyright | (c) 2013-2021 Brendan Hay |
---|---|
License | Mozilla Public License, v. 2.0. |
Maintainer | Brendan Hay <brendan.g.hay+amazonka@gmail.com> |
Stability | auto-generated |
Portability | non-portable (GHC extensions) |
Safe Haskell | None |
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
- data CreateReceiptRule = CreateReceiptRule' {
- after :: Maybe Text
- ruleSetName :: Text
- rule :: ReceiptRule
- newCreateReceiptRule :: Text -> ReceiptRule -> CreateReceiptRule
- createReceiptRule_after :: Lens' CreateReceiptRule (Maybe Text)
- createReceiptRule_ruleSetName :: Lens' CreateReceiptRule Text
- createReceiptRule_rule :: Lens' CreateReceiptRule ReceiptRule
- data CreateReceiptRuleResponse = CreateReceiptRuleResponse' {
- httpStatus :: Int
- newCreateReceiptRuleResponse :: Int -> CreateReceiptRuleResponse
- createReceiptRuleResponse_httpStatus :: Lens' CreateReceiptRuleResponse Int
Creating a Request
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: newCreateReceiptRule
smart constructor.
CreateReceiptRule' | |
|
Instances
:: Text | |
-> ReceiptRule | |
-> CreateReceiptRule |
Create a value of CreateReceiptRule
with all optional fields omitted.
Use generic-lens or optics to modify other optional fields.
The following record fields are available, with the corresponding lenses provided for backwards compatibility:
$sel:after:CreateReceiptRule'
, createReceiptRule_after
- 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.
$sel:ruleSetName:CreateReceiptRule'
, createReceiptRule_ruleSetName
- The name of the rule set that the receipt rule will be added to.
$sel:rule:CreateReceiptRule'
, createReceiptRule_rule
- A data structure that contains the specified rule's name, actions,
recipients, domains, enabled status, scan status, and TLS policy.
Request Lenses
createReceiptRule_after :: 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.
createReceiptRule_ruleSetName :: Lens' CreateReceiptRule Text Source #
The name of the rule set that the receipt rule will be added to.
createReceiptRule_rule :: 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
data CreateReceiptRuleResponse Source #
An empty element returned on a successful request.
See: newCreateReceiptRuleResponse
smart constructor.
CreateReceiptRuleResponse' | |
|
Instances
newCreateReceiptRuleResponse Source #
Create a value of CreateReceiptRuleResponse
with all optional fields omitted.
Use generic-lens or optics to modify other optional fields.
The following record fields are available, with the corresponding lenses provided for backwards compatibility:
$sel:httpStatus:CreateReceiptRuleResponse'
, createReceiptRuleResponse_httpStatus
- The response's http status code.
Response Lenses
createReceiptRuleResponse_httpStatus :: Lens' CreateReceiptRuleResponse Int Source #
The response's http status code.