amazonka-pinpoint-sms-voice-v2-2.0: Amazon Pinpoint SMS Voice V2 SDK.
Copyright(c) 2013-2023 Brendan Hay
LicenseMozilla Public License, v. 2.0.
MaintainerBrendan Hay
Stabilityauto-generated
Portabilitynon-portable (GHC extensions)
Safe HaskellSafe-Inferred
LanguageHaskell2010

Amazonka.PinpointSmsVoiceV2.PutKeyword

Description

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

Creating a Request

data PutKeyword Source #

See: newPutKeyword smart constructor.

Constructors

PutKeyword' 

Fields

  • keywordAction :: Maybe KeywordAction

    The action to perform for the new keyword when it is received.

  • originationIdentity :: Text

    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.

  • keyword :: Text

    The new keyword to add.

  • keywordMessage :: Text

    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.

Instances

Instances details
ToJSON PutKeyword Source # 
Instance details

Defined in Amazonka.PinpointSmsVoiceV2.PutKeyword

ToHeaders PutKeyword Source # 
Instance details

Defined in Amazonka.PinpointSmsVoiceV2.PutKeyword

Methods

toHeaders :: PutKeyword -> [Header] #

ToPath PutKeyword Source # 
Instance details

Defined in Amazonka.PinpointSmsVoiceV2.PutKeyword

ToQuery PutKeyword Source # 
Instance details

Defined in Amazonka.PinpointSmsVoiceV2.PutKeyword

AWSRequest PutKeyword Source # 
Instance details

Defined in Amazonka.PinpointSmsVoiceV2.PutKeyword

Associated Types

type AWSResponse PutKeyword #

Generic PutKeyword Source # 
Instance details

Defined in Amazonka.PinpointSmsVoiceV2.PutKeyword

Associated Types

type Rep PutKeyword :: Type -> Type #

Read PutKeyword Source # 
Instance details

Defined in Amazonka.PinpointSmsVoiceV2.PutKeyword

Show PutKeyword Source # 
Instance details

Defined in Amazonka.PinpointSmsVoiceV2.PutKeyword

NFData PutKeyword Source # 
Instance details

Defined in Amazonka.PinpointSmsVoiceV2.PutKeyword

Methods

rnf :: PutKeyword -> () #

Eq PutKeyword Source # 
Instance details

Defined in Amazonka.PinpointSmsVoiceV2.PutKeyword

Hashable PutKeyword Source # 
Instance details

Defined in Amazonka.PinpointSmsVoiceV2.PutKeyword

type AWSResponse PutKeyword Source # 
Instance details

Defined in Amazonka.PinpointSmsVoiceV2.PutKeyword

type Rep PutKeyword Source # 
Instance details

Defined in Amazonka.PinpointSmsVoiceV2.PutKeyword

type Rep PutKeyword = D1 ('MetaData "PutKeyword" "Amazonka.PinpointSmsVoiceV2.PutKeyword" "amazonka-pinpoint-sms-voice-v2-2.0-HnPsQLyg04lAXcjcfRtbC7" 'False) (C1 ('MetaCons "PutKeyword'" 'PrefixI 'True) ((S1 ('MetaSel ('Just "keywordAction") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe KeywordAction)) :*: S1 ('MetaSel ('Just "originationIdentity") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 Text)) :*: (S1 ('MetaSel ('Just "keyword") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 Text) :*: S1 ('MetaSel ('Just "keywordMessage") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 Text))))

newPutKeyword Source #

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.

Constructors

PutKeywordResponse' 

Fields

Instances

Instances details
Generic PutKeywordResponse Source # 
Instance details

Defined in Amazonka.PinpointSmsVoiceV2.PutKeyword

Associated Types

type Rep PutKeywordResponse :: Type -> Type #

Read PutKeywordResponse Source # 
Instance details

Defined in Amazonka.PinpointSmsVoiceV2.PutKeyword

Show PutKeywordResponse Source # 
Instance details

Defined in Amazonka.PinpointSmsVoiceV2.PutKeyword

NFData PutKeywordResponse Source # 
Instance details

Defined in Amazonka.PinpointSmsVoiceV2.PutKeyword

Methods

rnf :: PutKeywordResponse -> () #

Eq PutKeywordResponse Source # 
Instance details

Defined in Amazonka.PinpointSmsVoiceV2.PutKeyword

type Rep PutKeywordResponse Source # 
Instance details

Defined in Amazonka.PinpointSmsVoiceV2.PutKeyword

type Rep PutKeywordResponse = D1 ('MetaData "PutKeywordResponse" "Amazonka.PinpointSmsVoiceV2.PutKeyword" "amazonka-pinpoint-sms-voice-v2-2.0-HnPsQLyg04lAXcjcfRtbC7" 'False) (C1 ('MetaCons "PutKeywordResponse'" 'PrefixI 'True) ((S1 ('MetaSel ('Just "keyword") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe Text)) :*: (S1 ('MetaSel ('Just "keywordAction") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe KeywordAction)) :*: S1 ('MetaSel ('Just "keywordMessage") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe Text)))) :*: (S1 ('MetaSel ('Just "originationIdentity") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe Text)) :*: (S1 ('MetaSel ('Just "originationIdentityArn") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe Text)) :*: S1 ('MetaSel ('Just "httpStatus") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 Int)))))

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_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.