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 or updates a keyword configuration on 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.
If you specify a keyword that isn't valid, an Error is returned.
Synopsis
- data PutKeyword = PutKeyword' {}
- newPutKeyword :: Text -> Text -> Text -> PutKeyword
- putKeyword_keywordAction :: Lens' PutKeyword (Maybe KeywordAction)
- putKeyword_originationIdentity :: Lens' PutKeyword Text
- putKeyword_keyword :: Lens' PutKeyword Text
- putKeyword_keywordMessage :: Lens' PutKeyword Text
- data PutKeywordResponse = PutKeywordResponse' {}
- newPutKeywordResponse :: Int -> PutKeywordResponse
- putKeywordResponse_keyword :: Lens' PutKeywordResponse (Maybe Text)
- putKeywordResponse_keywordAction :: Lens' PutKeywordResponse (Maybe KeywordAction)
- putKeywordResponse_keywordMessage :: Lens' PutKeywordResponse (Maybe Text)
- putKeywordResponse_originationIdentity :: Lens' PutKeywordResponse (Maybe Text)
- putKeywordResponse_originationIdentityArn :: Lens' PutKeywordResponse (Maybe Text)
- putKeywordResponse_httpStatus :: Lens' PutKeywordResponse Int
Creating a Request
data PutKeyword Source #
See: newPutKeyword
smart constructor.
PutKeyword' | |
|
Instances
Create a value of PutKeyword
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:
PutKeyword
, putKeyword_keywordAction
- The action to perform for the new keyword when it is received.
PutKeyword
, putKeyword_originationIdentity
- The origination identity to use such as a PhoneNumberId, PhoneNumberArn,
SenderId or SenderIdArn. You can use DescribePhoneNumbers get the values
for PhoneNumberId and PhoneNumberArn while DescribeSenderIds can be used
to get the values for SenderId and SenderIdArn.
PutKeyword
, putKeyword_keyword
- The new keyword to add.
PutKeyword
, putKeyword_keywordMessage
- The message associated with the keyword.
- AUTOMATIC_RESPONSE: A message is sent to the recipient.
- OPT_OUT: Keeps the recipient from receiving future messages.
- OPT_IN: The recipient wants to receive future messages.
Request Lenses
putKeyword_keywordAction :: Lens' PutKeyword (Maybe KeywordAction) Source #
The action to perform for the new keyword when it is received.
putKeyword_originationIdentity :: Lens' PutKeyword Text Source #
The origination identity to use such as a PhoneNumberId, PhoneNumberArn, SenderId or SenderIdArn. You can use DescribePhoneNumbers get the values for PhoneNumberId and PhoneNumberArn while DescribeSenderIds can be used to get the values for SenderId and SenderIdArn.
putKeyword_keyword :: Lens' PutKeyword Text Source #
The new keyword to add.
putKeyword_keywordMessage :: Lens' PutKeyword Text Source #
The message associated with the keyword.
- AUTOMATIC_RESPONSE: A message is sent to the recipient.
- OPT_OUT: Keeps the recipient from receiving future messages.
- OPT_IN: The recipient wants to receive future messages.
Destructuring the Response
data PutKeywordResponse Source #
See: newPutKeywordResponse
smart constructor.
PutKeywordResponse' | |
|
Instances
newPutKeywordResponse Source #
Create a value of PutKeywordResponse
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:
PutKeyword
, putKeywordResponse_keyword
- The keyword that was added.
PutKeyword
, putKeywordResponse_keywordAction
- The action to perform when the keyword is used.
PutKeyword
, putKeywordResponse_keywordMessage
- The message associated with the keyword.
PutKeyword
, putKeywordResponse_originationIdentity
- The PhoneNumberId or PoolId that the keyword was associated with.
PutKeywordResponse
, putKeywordResponse_originationIdentityArn
- The PhoneNumberArn or PoolArn that the keyword was associated with.
$sel:httpStatus:PutKeywordResponse'
, putKeywordResponse_httpStatus
- The response's http status code.
Response Lenses
putKeywordResponse_keyword :: Lens' PutKeywordResponse (Maybe Text) Source #
The keyword that was added.
putKeywordResponse_keywordAction :: Lens' PutKeywordResponse (Maybe KeywordAction) Source #
The action to perform when the keyword is used.
putKeywordResponse_keywordMessage :: Lens' PutKeywordResponse (Maybe Text) Source #
The message associated with the keyword.
putKeywordResponse_originationIdentity :: Lens' PutKeywordResponse (Maybe Text) Source #
The PhoneNumberId or PoolId that the keyword was associated with.
putKeywordResponse_originationIdentityArn :: Lens' PutKeywordResponse (Maybe Text) Source #
The PhoneNumberArn or PoolArn that the keyword was associated with.
putKeywordResponse_httpStatus :: Lens' PutKeywordResponse Int Source #
The response's http status code.