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 |
Creates a new opt-out list.
If the opt-out list name already exists, an Error is returned.
An opt-out list is a list of phone numbers that are opted out, meaning you can't send SMS or voice messages to them. If end user replies with the keyword "STOP," an entry for the phone number is added to the opt-out list. In addition to STOP, your recipients can use any supported opt-out keyword, such as CANCEL or OPTOUT. For a list of supported opt-out keywords, see SMS opt out in the Amazon Pinpoint User Guide.
Synopsis
- data CreateOptOutList = CreateOptOutList' {
- clientToken :: Maybe Text
- tags :: Maybe [Tag]
- optOutListName :: Text
- newCreateOptOutList :: Text -> CreateOptOutList
- createOptOutList_clientToken :: Lens' CreateOptOutList (Maybe Text)
- createOptOutList_tags :: Lens' CreateOptOutList (Maybe [Tag])
- createOptOutList_optOutListName :: Lens' CreateOptOutList Text
- data CreateOptOutListResponse = CreateOptOutListResponse' {
- createdTimestamp :: Maybe POSIX
- optOutListArn :: Maybe Text
- optOutListName :: Maybe Text
- tags :: Maybe [Tag]
- httpStatus :: Int
- newCreateOptOutListResponse :: Int -> CreateOptOutListResponse
- createOptOutListResponse_createdTimestamp :: Lens' CreateOptOutListResponse (Maybe UTCTime)
- createOptOutListResponse_optOutListArn :: Lens' CreateOptOutListResponse (Maybe Text)
- createOptOutListResponse_optOutListName :: Lens' CreateOptOutListResponse (Maybe Text)
- createOptOutListResponse_tags :: Lens' CreateOptOutListResponse (Maybe [Tag])
- createOptOutListResponse_httpStatus :: Lens' CreateOptOutListResponse Int
Creating a Request
data CreateOptOutList Source #
See: newCreateOptOutList
smart constructor.
CreateOptOutList' | |
|
Instances
Create a value of CreateOptOutList
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:clientToken:CreateOptOutList'
, createOptOutList_clientToken
- Unique, case-sensitive identifier that you provide to ensure the
idempotency of the request. If you don't specify a client token, a
randomly generated token is used for the request to ensure idempotency.
CreateOptOutList
, createOptOutList_tags
- An array of tags (key and value pairs) to associate with the new
OptOutList.
CreateOptOutList
, createOptOutList_optOutListName
- The name of the new OptOutList.
Request Lenses
createOptOutList_clientToken :: Lens' CreateOptOutList (Maybe Text) Source #
Unique, case-sensitive identifier that you provide to ensure the idempotency of the request. If you don't specify a client token, a randomly generated token is used for the request to ensure idempotency.
createOptOutList_tags :: Lens' CreateOptOutList (Maybe [Tag]) Source #
An array of tags (key and value pairs) to associate with the new OptOutList.
createOptOutList_optOutListName :: Lens' CreateOptOutList Text Source #
The name of the new OptOutList.
Destructuring the Response
data CreateOptOutListResponse Source #
See: newCreateOptOutListResponse
smart constructor.
CreateOptOutListResponse' | |
|
Instances
newCreateOptOutListResponse Source #
Create a value of CreateOptOutListResponse
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:
CreateOptOutListResponse
, createOptOutListResponse_createdTimestamp
- The time when the pool was created, in
UNIX epoch time format.
CreateOptOutListResponse
, createOptOutListResponse_optOutListArn
- The Amazon Resource Name (ARN) for the OptOutList.
CreateOptOutList
, createOptOutListResponse_optOutListName
- The name of the new OptOutList.
CreateOptOutList
, createOptOutListResponse_tags
- An array of tags (key and value pairs) associated with the new
OptOutList.
$sel:httpStatus:CreateOptOutListResponse'
, createOptOutListResponse_httpStatus
- The response's http status code.
Response Lenses
createOptOutListResponse_createdTimestamp :: Lens' CreateOptOutListResponse (Maybe UTCTime) Source #
The time when the pool was created, in UNIX epoch time format.
createOptOutListResponse_optOutListArn :: Lens' CreateOptOutListResponse (Maybe Text) Source #
The Amazon Resource Name (ARN) for the OptOutList.
createOptOutListResponse_optOutListName :: Lens' CreateOptOutListResponse (Maybe Text) Source #
The name of the new OptOutList.
createOptOutListResponse_tags :: Lens' CreateOptOutListResponse (Maybe [Tag]) Source #
An array of tags (key and value pairs) associated with the new OptOutList.
createOptOutListResponse_httpStatus :: Lens' CreateOptOutListResponse Int Source #
The response's http status code.