Skip to main content

keywords

Creates, updates, deletes, gets or lists a keywords resource.

Overview

Namekeywords
TypeResource
Idaws.pinpoint_sms_voice_v2.keywords

Fields

The following fields are returned by SELECT queries:

NameDatatypeDescription
keywordstringThe keyword as a string. (pattern: <code>[ \S]+</code>)
keyword_actionstringThe action to perform for the keyword. (AUTOMATIC_RESPONSE, OPT_OUT, OPT_IN)
keyword_messagestringA custom message that can be used with the keyword. (pattern: <code>(?!\s*$)[\s\S]+</code>)

Methods

The following methods are available for this resource:

NameAccessible byRequired ParamsOptional ParamsDescription
describe_keywordsselectregionDescribes the specified keywords or all keywords on your 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, End User Messaging SMS responds with a customizable message. If you specify a keyword that isn't valid, an error is returned.
put_keywordreplaceregion, OriginationIdentity, KeywordMessageCreates 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, End User Messaging SMS responds with a customizable message. If you specify a keyword that isn't valid, an error is returned.
delete_keyworddeleteregionDeletes 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, End User Messaging SMS responds with a customizable message. Keywords "HELP" and "STOP" can't be deleted or modified.

Parameters

Parameters can be passed in the WHERE clause of a query. Check the Methods section to see which parameters are required or optional for each operation.

NameDatatypeDescription
regionstringAWS region (default: us-east-1)

SELECT examples

Describes the specified keywords or all keywords on your 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, End User Messaging SMS responds with a customizable message. If you specify a keyword that isn't valid, an error is returned.

SELECT
keyword,
keyword_action,
keyword_message
FROM aws.pinpoint_sms_voice_v2.keywords
WHERE region = '{{ region }}' -- required
;

REPLACE examples

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, End User Messaging SMS responds with a customizable message. If you specify a keyword that isn't valid, an error is returned.

REPLACE aws.pinpoint_sms_voice_v2.keywords
SET
OriginationIdentity = '{{ OriginationIdentity }}',
Keyword = '{{ Keyword }}',
KeywordMessage = '{{ KeywordMessage }}',
KeywordAction = '{{ KeywordAction }}'
WHERE
region = '{{ region }}' --required
AND OriginationIdentity = '{{ OriginationIdentity }}' --required
AND KeywordMessage = '{{ KeywordMessage }}' --required
RETURNING
keyword,
keyword_action,
keyword_message,
origination_identity,
origination_identity_arn;

DELETE examples

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, End User Messaging SMS responds with a customizable message. Keywords "HELP" and "STOP" can't be deleted or modified.

DELETE FROM aws.pinpoint_sms_voice_v2.keywords
WHERE region = '{{ region }}' --required
;