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

Description

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

Creating a Request

data DeleteKeyword Source #

See: newDeleteKeyword smart constructor.

Constructors

DeleteKeyword' 

Fields

  • originationIdentity :: Text

    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.

  • keyword :: Text

    The keyword to delete.

Instances

Instances details
ToJSON DeleteKeyword Source # 
Instance details

Defined in Amazonka.PinpointSmsVoiceV2.DeleteKeyword

ToHeaders DeleteKeyword Source # 
Instance details

Defined in Amazonka.PinpointSmsVoiceV2.DeleteKeyword

ToPath DeleteKeyword Source # 
Instance details

Defined in Amazonka.PinpointSmsVoiceV2.DeleteKeyword

ToQuery DeleteKeyword Source # 
Instance details

Defined in Amazonka.PinpointSmsVoiceV2.DeleteKeyword

AWSRequest DeleteKeyword Source # 
Instance details

Defined in Amazonka.PinpointSmsVoiceV2.DeleteKeyword

Associated Types

type AWSResponse DeleteKeyword #

Generic DeleteKeyword Source # 
Instance details

Defined in Amazonka.PinpointSmsVoiceV2.DeleteKeyword

Associated Types

type Rep DeleteKeyword :: Type -> Type #

Read DeleteKeyword Source # 
Instance details

Defined in Amazonka.PinpointSmsVoiceV2.DeleteKeyword

Show DeleteKeyword Source # 
Instance details

Defined in Amazonka.PinpointSmsVoiceV2.DeleteKeyword

NFData DeleteKeyword Source # 
Instance details

Defined in Amazonka.PinpointSmsVoiceV2.DeleteKeyword

Methods

rnf :: DeleteKeyword -> () #

Eq DeleteKeyword Source # 
Instance details

Defined in Amazonka.PinpointSmsVoiceV2.DeleteKeyword

Hashable DeleteKeyword Source # 
Instance details

Defined in Amazonka.PinpointSmsVoiceV2.DeleteKeyword

type AWSResponse DeleteKeyword Source # 
Instance details

Defined in Amazonka.PinpointSmsVoiceV2.DeleteKeyword

type Rep DeleteKeyword Source # 
Instance details

Defined in Amazonka.PinpointSmsVoiceV2.DeleteKeyword

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

newDeleteKeyword Source #

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.

Destructuring the Response

data DeleteKeywordResponse Source #

See: newDeleteKeywordResponse smart constructor.

Constructors

DeleteKeywordResponse' 

Fields

Instances

Instances details
Generic DeleteKeywordResponse Source # 
Instance details

Defined in Amazonka.PinpointSmsVoiceV2.DeleteKeyword

Associated Types

type Rep DeleteKeywordResponse :: Type -> Type #

Read DeleteKeywordResponse Source # 
Instance details

Defined in Amazonka.PinpointSmsVoiceV2.DeleteKeyword

Show DeleteKeywordResponse Source # 
Instance details

Defined in Amazonka.PinpointSmsVoiceV2.DeleteKeyword

NFData DeleteKeywordResponse Source # 
Instance details

Defined in Amazonka.PinpointSmsVoiceV2.DeleteKeyword

Methods

rnf :: DeleteKeywordResponse -> () #

Eq DeleteKeywordResponse Source # 
Instance details

Defined in Amazonka.PinpointSmsVoiceV2.DeleteKeyword

type Rep DeleteKeywordResponse Source # 
Instance details

Defined in Amazonka.PinpointSmsVoiceV2.DeleteKeyword

type Rep DeleteKeywordResponse = D1 ('MetaData "DeleteKeywordResponse" "Amazonka.PinpointSmsVoiceV2.DeleteKeyword" "amazonka-pinpoint-sms-voice-v2-2.0-HnPsQLyg04lAXcjcfRtbC7" 'False) (C1 ('MetaCons "DeleteKeywordResponse'" '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)))))

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