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 keyword from an origination phone number or pool.
A keyword is a word that you can search for on a particular phone number or pool. It is also a specific word or phrase that an end user can send to your number to elicit a response, such as an informational message or a special offer. When your number receives a message that begins with a keyword, Amazon Pinpoint responds with a customizable message.
Keywords "HELP" and "STOP" can't be deleted or modified.
Synopsis
- data DeleteKeyword = DeleteKeyword' {}
- newDeleteKeyword :: Text -> Text -> DeleteKeyword
- deleteKeyword_originationIdentity :: Lens' DeleteKeyword Text
- deleteKeyword_keyword :: Lens' DeleteKeyword Text
- data DeleteKeywordResponse = DeleteKeywordResponse' {}
- newDeleteKeywordResponse :: Int -> DeleteKeywordResponse
- deleteKeywordResponse_keyword :: Lens' DeleteKeywordResponse (Maybe Text)
- deleteKeywordResponse_keywordAction :: Lens' DeleteKeywordResponse (Maybe KeywordAction)
- deleteKeywordResponse_keywordMessage :: Lens' DeleteKeywordResponse (Maybe Text)
- deleteKeywordResponse_originationIdentity :: Lens' DeleteKeywordResponse (Maybe Text)
- deleteKeywordResponse_originationIdentityArn :: Lens' DeleteKeywordResponse (Maybe Text)
- deleteKeywordResponse_httpStatus :: Lens' DeleteKeywordResponse Int
Creating a Request
data DeleteKeyword Source #
See: newDeleteKeyword
smart constructor.
DeleteKeyword' | |
|
Instances
Create a value of DeleteKeyword
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:
DeleteKeyword
, deleteKeyword_originationIdentity
- The origination identity to use such as a PhoneNumberId, PhoneNumberArn,
PoolId or PoolArn. You can use DescribePhoneNumbers to find the values
for PhoneNumberId and PhoneNumberArn and DescribePools to find the
values of PoolId and PoolArn.
DeleteKeyword
, deleteKeyword_keyword
- The keyword to delete.
Request Lenses
deleteKeyword_originationIdentity :: Lens' DeleteKeyword Text Source #
The origination identity to use such as a PhoneNumberId, PhoneNumberArn, PoolId or PoolArn. You can use DescribePhoneNumbers to find the values for PhoneNumberId and PhoneNumberArn and DescribePools to find the values of PoolId and PoolArn.
deleteKeyword_keyword :: Lens' DeleteKeyword Text Source #
The keyword to delete.
Destructuring the Response
data DeleteKeywordResponse Source #
See: newDeleteKeywordResponse
smart constructor.
DeleteKeywordResponse' | |
|
Instances
newDeleteKeywordResponse Source #
Create a value of DeleteKeywordResponse
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:
DeleteKeyword
, deleteKeywordResponse_keyword
- The keyword that was deleted.
DeleteKeywordResponse
, deleteKeywordResponse_keywordAction
- The action that was associated with the deleted keyword.
DeleteKeywordResponse
, deleteKeywordResponse_keywordMessage
- The message that was associated with the deleted keyword.
DeleteKeyword
, deleteKeywordResponse_originationIdentity
- The PhoneNumberId or PoolId that the keyword was associated with.
DeleteKeywordResponse
, deleteKeywordResponse_originationIdentityArn
- The PhoneNumberArn or PoolArn that the keyword was associated with.
$sel:httpStatus:DeleteKeywordResponse'
, deleteKeywordResponse_httpStatus
- The response's http status code.
Response Lenses
deleteKeywordResponse_keyword :: Lens' DeleteKeywordResponse (Maybe Text) Source #
The keyword that was deleted.
deleteKeywordResponse_keywordAction :: Lens' DeleteKeywordResponse (Maybe KeywordAction) Source #
The action that was associated with the deleted keyword.
deleteKeywordResponse_keywordMessage :: Lens' DeleteKeywordResponse (Maybe Text) Source #
The message that was associated with the deleted keyword.
deleteKeywordResponse_originationIdentity :: Lens' DeleteKeywordResponse (Maybe Text) Source #
The PhoneNumberId or PoolId that the keyword was associated with.
deleteKeywordResponse_originationIdentityArn :: Lens' DeleteKeywordResponse (Maybe Text) Source #
The PhoneNumberArn or PoolArn that the keyword was associated with.
deleteKeywordResponse_httpStatus :: Lens' DeleteKeywordResponse Int Source #
The response's http status code.