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 |
Deletes an existing opt-out list. All opted out phone numbers in the opt-out list are deleted.
If the specified opt-out list name doesn't exist or is in-use by an origination phone number or pool, an Error is returned.
Synopsis
- data DeleteOptOutList = DeleteOptOutList' {}
- newDeleteOptOutList :: Text -> DeleteOptOutList
- deleteOptOutList_optOutListName :: Lens' DeleteOptOutList Text
- data DeleteOptOutListResponse = DeleteOptOutListResponse' {}
- newDeleteOptOutListResponse :: Int -> DeleteOptOutListResponse
- deleteOptOutListResponse_createdTimestamp :: Lens' DeleteOptOutListResponse (Maybe UTCTime)
- deleteOptOutListResponse_optOutListArn :: Lens' DeleteOptOutListResponse (Maybe Text)
- deleteOptOutListResponse_optOutListName :: Lens' DeleteOptOutListResponse (Maybe Text)
- deleteOptOutListResponse_httpStatus :: Lens' DeleteOptOutListResponse Int
Creating a Request
data DeleteOptOutList Source #
See: newDeleteOptOutList
smart constructor.
DeleteOptOutList' | |
|
Instances
Create a value of DeleteOptOutList
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:
DeleteOptOutList
, deleteOptOutList_optOutListName
- The OptOutListName or OptOutListArn of the OptOutList to delete. You can
use DescribeOptOutLists to find the values for OptOutListName and
OptOutListArn.
Request Lenses
deleteOptOutList_optOutListName :: Lens' DeleteOptOutList Text Source #
The OptOutListName or OptOutListArn of the OptOutList to delete. You can use DescribeOptOutLists to find the values for OptOutListName and OptOutListArn.
Destructuring the Response
data DeleteOptOutListResponse Source #
See: newDeleteOptOutListResponse
smart constructor.
DeleteOptOutListResponse' | |
|
Instances
newDeleteOptOutListResponse Source #
Create a value of DeleteOptOutListResponse
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:
DeleteOptOutListResponse
, deleteOptOutListResponse_createdTimestamp
- The time when the OptOutList was created, in
UNIX epoch time format.
DeleteOptOutListResponse
, deleteOptOutListResponse_optOutListArn
- The Amazon Resource Name (ARN) of the OptOutList that was removed.
DeleteOptOutList
, deleteOptOutListResponse_optOutListName
- The name of the OptOutList that was removed.
$sel:httpStatus:DeleteOptOutListResponse'
, deleteOptOutListResponse_httpStatus
- The response's http status code.
Response Lenses
deleteOptOutListResponse_createdTimestamp :: Lens' DeleteOptOutListResponse (Maybe UTCTime) Source #
The time when the OptOutList was created, in UNIX epoch time format.
deleteOptOutListResponse_optOutListArn :: Lens' DeleteOptOutListResponse (Maybe Text) Source #
The Amazon Resource Name (ARN) of the OptOutList that was removed.
deleteOptOutListResponse_optOutListName :: Lens' DeleteOptOutListResponse (Maybe Text) Source #
The name of the OptOutList that was removed.
deleteOptOutListResponse_httpStatus :: Lens' DeleteOptOutListResponse Int Source #
The response's http status code.