| Copyright | (c) 2013-2023 Brendan Hay |
|---|---|
| License | Mozilla Public License, v. 2.0. |
| Maintainer | Brendan Hay |
| Stability | auto-generated |
| Portability | non-portable (GHC extensions) |
| Safe Haskell | Safe-Inferred |
| Language | Haskell2010 |
Amazonka.SESV2.PutSuppressedDestination
Description
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.
Constructors
| PutSuppressedDestination' | |
Fields
| |
Instances
newPutSuppressedDestination Source #
Arguments
| :: Text | |
| -> SuppressionListReason | |
| -> PutSuppressedDestination |
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:
PutSuppressedDestination, putSuppressedDestination_emailAddress - The email address that should be added to the suppression list for your
account.
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.
Constructors
| PutSuppressedDestinationResponse' | |
Fields
| |
Instances
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.