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 |
Adds an email address to the suppression list for your account.
Synopsis
- data PutSuppressedDestination = PutSuppressedDestination' {}
- newPutSuppressedDestination :: Text -> SuppressionListReason -> PutSuppressedDestination
- putSuppressedDestination_emailAddress :: Lens' PutSuppressedDestination Text
- putSuppressedDestination_reason :: Lens' PutSuppressedDestination SuppressionListReason
- data PutSuppressedDestinationResponse = PutSuppressedDestinationResponse' {
- httpStatus :: Int
- newPutSuppressedDestinationResponse :: Int -> PutSuppressedDestinationResponse
- putSuppressedDestinationResponse_httpStatus :: Lens' PutSuppressedDestinationResponse Int
Creating a Request
data PutSuppressedDestination Source #
A request to add an email destination to the suppression list for your account.
See: newPutSuppressedDestination
smart constructor.
PutSuppressedDestination' | |
|
Instances
newPutSuppressedDestination Source #
Create a value of PutSuppressedDestination
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:emailAddress:PutSuppressedDestination'
, putSuppressedDestination_emailAddress
- The email address that should be added to the suppression list for your
account.
$sel:reason:PutSuppressedDestination'
, putSuppressedDestination_reason
- The factors that should cause the email address to be added to the
suppression list for your account.
Request Lenses
putSuppressedDestination_emailAddress :: Lens' PutSuppressedDestination Text Source #
The email address that should be added to the suppression list for your account.
putSuppressedDestination_reason :: Lens' PutSuppressedDestination SuppressionListReason Source #
The factors that should cause the email address to be added to the suppression list for your account.
Destructuring the Response
data PutSuppressedDestinationResponse Source #
An HTTP 200 response if the request succeeds, or an error message if the request fails.
See: newPutSuppressedDestinationResponse
smart constructor.
PutSuppressedDestinationResponse' | |
|
Instances
Eq PutSuppressedDestinationResponse Source # | |
Read PutSuppressedDestinationResponse Source # | |
Show PutSuppressedDestinationResponse Source # | |
Defined in Amazonka.SESV2.PutSuppressedDestination | |
Generic PutSuppressedDestinationResponse Source # | |
NFData PutSuppressedDestinationResponse Source # | |
Defined in Amazonka.SESV2.PutSuppressedDestination rnf :: PutSuppressedDestinationResponse -> () # | |
type Rep PutSuppressedDestinationResponse Source # | |
Defined in Amazonka.SESV2.PutSuppressedDestination type Rep PutSuppressedDestinationResponse = D1 ('MetaData "PutSuppressedDestinationResponse" "Amazonka.SESV2.PutSuppressedDestination" "libZSservicesZSamazonka-sesv2ZSamazonka-sesv2" 'False) (C1 ('MetaCons "PutSuppressedDestinationResponse'" 'PrefixI 'True) (S1 ('MetaSel ('Just "httpStatus") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 Int))) |
newPutSuppressedDestinationResponse Source #
Create a value of PutSuppressedDestinationResponse
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:PutSuppressedDestinationResponse'
, putSuppressedDestinationResponse_httpStatus
- The response's http status code.
Response Lenses
putSuppressedDestinationResponse_httpStatus :: Lens' PutSuppressedDestinationResponse Int Source #
The response's http status code.