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 |
Amazonka.SES.SetActiveReceiptRuleSet
Description
Sets the specified receipt rule set as the active receipt rule set.
To disable your email-receiving through Amazon SES completely, you can call this API with RuleSetName set to null.
For information about managing receipt rule sets, see the Amazon SES Developer Guide.
You can execute this operation no more than once per second.
Synopsis
- data SetActiveReceiptRuleSet = SetActiveReceiptRuleSet' {
- ruleSetName :: Maybe Text
- newSetActiveReceiptRuleSet :: SetActiveReceiptRuleSet
- setActiveReceiptRuleSet_ruleSetName :: Lens' SetActiveReceiptRuleSet (Maybe Text)
- data SetActiveReceiptRuleSetResponse = SetActiveReceiptRuleSetResponse' {
- httpStatus :: Int
- newSetActiveReceiptRuleSetResponse :: Int -> SetActiveReceiptRuleSetResponse
- setActiveReceiptRuleSetResponse_httpStatus :: Lens' SetActiveReceiptRuleSetResponse Int
Creating a Request
data SetActiveReceiptRuleSet Source #
Represents a request to set a receipt rule set as the active receipt rule set. You use receipt rule sets to receive email with Amazon SES. For more information, see the Amazon SES Developer Guide.
See: newSetActiveReceiptRuleSet
smart constructor.
Constructors
SetActiveReceiptRuleSet' | |
Fields
|
Instances
newSetActiveReceiptRuleSet :: SetActiveReceiptRuleSet Source #
Create a value of SetActiveReceiptRuleSet
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:ruleSetName:SetActiveReceiptRuleSet'
, setActiveReceiptRuleSet_ruleSetName
- The name of the receipt rule set to make active. Setting this value to
null disables all email receiving.
Request Lenses
setActiveReceiptRuleSet_ruleSetName :: Lens' SetActiveReceiptRuleSet (Maybe Text) Source #
The name of the receipt rule set to make active. Setting this value to null disables all email receiving.
Destructuring the Response
data SetActiveReceiptRuleSetResponse Source #
An empty element returned on a successful request.
See: newSetActiveReceiptRuleSetResponse
smart constructor.
Constructors
SetActiveReceiptRuleSetResponse' | |
Fields
|
Instances
newSetActiveReceiptRuleSetResponse Source #
Create a value of SetActiveReceiptRuleSetResponse
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:SetActiveReceiptRuleSetResponse'
, setActiveReceiptRuleSetResponse_httpStatus
- The response's http status code.
Response Lenses
setActiveReceiptRuleSetResponse_httpStatus :: Lens' SetActiveReceiptRuleSetResponse Int Source #
The response's http status code.