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

Description

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, Amazon Pinpoint responds with a customizable message.

If you specify a keyword that isn't valid, an Error is returned.

This operation returns paginated results.

Synopsis

Creating a Request

data DescribeKeywords Source #

See: newDescribeKeywords smart constructor.

Constructors

DescribeKeywords' 

Fields

  • filters :: Maybe [KeywordFilter]

    An array of keyword filters to filter the results.

  • keywords :: Maybe [Text]

    An array of keywords to search for.

  • maxResults :: Maybe Natural

    The maximum number of results to return per each request.

  • nextToken :: Maybe Text

    The token to be used for the next set of paginated results. You don't need to supply a value for this field in the initial request.

  • originationIdentity :: Text

    The origination identity to use such as a PhoneNumberId, PhoneNumberArn, SenderId or SenderIdArn. You can use DescribePhoneNumbers to find the values for PhoneNumberId and PhoneNumberArn while DescribeSenderIds can be used to get the values for SenderId and SenderIdArn.

Instances

Instances details
ToJSON DescribeKeywords Source # 
Instance details

Defined in Amazonka.PinpointSmsVoiceV2.DescribeKeywords

ToHeaders DescribeKeywords Source # 
Instance details

Defined in Amazonka.PinpointSmsVoiceV2.DescribeKeywords

ToPath DescribeKeywords Source # 
Instance details

Defined in Amazonka.PinpointSmsVoiceV2.DescribeKeywords

ToQuery DescribeKeywords Source # 
Instance details

Defined in Amazonka.PinpointSmsVoiceV2.DescribeKeywords

AWSPager DescribeKeywords Source # 
Instance details

Defined in Amazonka.PinpointSmsVoiceV2.DescribeKeywords

AWSRequest DescribeKeywords Source # 
Instance details

Defined in Amazonka.PinpointSmsVoiceV2.DescribeKeywords

Associated Types

type AWSResponse DescribeKeywords #

Generic DescribeKeywords Source # 
Instance details

Defined in Amazonka.PinpointSmsVoiceV2.DescribeKeywords

Associated Types

type Rep DescribeKeywords :: Type -> Type #

Read DescribeKeywords Source # 
Instance details

Defined in Amazonka.PinpointSmsVoiceV2.DescribeKeywords

Show DescribeKeywords Source # 
Instance details

Defined in Amazonka.PinpointSmsVoiceV2.DescribeKeywords

NFData DescribeKeywords Source # 
Instance details

Defined in Amazonka.PinpointSmsVoiceV2.DescribeKeywords

Methods

rnf :: DescribeKeywords -> () #

Eq DescribeKeywords Source # 
Instance details

Defined in Amazonka.PinpointSmsVoiceV2.DescribeKeywords

Hashable DescribeKeywords Source # 
Instance details

Defined in Amazonka.PinpointSmsVoiceV2.DescribeKeywords

type AWSResponse DescribeKeywords Source # 
Instance details

Defined in Amazonka.PinpointSmsVoiceV2.DescribeKeywords

type Rep DescribeKeywords Source # 
Instance details

Defined in Amazonka.PinpointSmsVoiceV2.DescribeKeywords

type Rep DescribeKeywords = D1 ('MetaData "DescribeKeywords" "Amazonka.PinpointSmsVoiceV2.DescribeKeywords" "amazonka-pinpoint-sms-voice-v2-2.0-HnPsQLyg04lAXcjcfRtbC7" 'False) (C1 ('MetaCons "DescribeKeywords'" 'PrefixI 'True) ((S1 ('MetaSel ('Just "filters") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe [KeywordFilter])) :*: S1 ('MetaSel ('Just "keywords") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe [Text]))) :*: (S1 ('MetaSel ('Just "maxResults") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe Natural)) :*: (S1 ('MetaSel ('Just "nextToken") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe Text)) :*: S1 ('MetaSel ('Just "originationIdentity") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 Text)))))

newDescribeKeywords Source #

Create a value of DescribeKeywords 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:

$sel:filters:DescribeKeywords', describeKeywords_filters - An array of keyword filters to filter the results.

DescribeKeywords, describeKeywords_keywords - An array of keywords to search for.

$sel:maxResults:DescribeKeywords', describeKeywords_maxResults - The maximum number of results to return per each request.

DescribeKeywords, describeKeywords_nextToken - The token to be used for the next set of paginated results. You don't need to supply a value for this field in the initial request.

DescribeKeywords, describeKeywords_originationIdentity - The origination identity to use such as a PhoneNumberId, PhoneNumberArn, SenderId or SenderIdArn. You can use DescribePhoneNumbers to find the values for PhoneNumberId and PhoneNumberArn while DescribeSenderIds can be used to get the values for SenderId and SenderIdArn.

Request Lenses

describeKeywords_filters :: Lens' DescribeKeywords (Maybe [KeywordFilter]) Source #

An array of keyword filters to filter the results.

describeKeywords_keywords :: Lens' DescribeKeywords (Maybe [Text]) Source #

An array of keywords to search for.

describeKeywords_maxResults :: Lens' DescribeKeywords (Maybe Natural) Source #

The maximum number of results to return per each request.

describeKeywords_nextToken :: Lens' DescribeKeywords (Maybe Text) Source #

The token to be used for the next set of paginated results. You don't need to supply a value for this field in the initial request.

describeKeywords_originationIdentity :: Lens' DescribeKeywords Text Source #

The origination identity to use such as a PhoneNumberId, PhoneNumberArn, SenderId or SenderIdArn. You can use DescribePhoneNumbers to find the values for PhoneNumberId and PhoneNumberArn while DescribeSenderIds can be used to get the values for SenderId and SenderIdArn.

Destructuring the Response

data DescribeKeywordsResponse Source #

See: newDescribeKeywordsResponse smart constructor.

Constructors

DescribeKeywordsResponse' 

Fields

Instances

Instances details
Generic DescribeKeywordsResponse Source # 
Instance details

Defined in Amazonka.PinpointSmsVoiceV2.DescribeKeywords

Associated Types

type Rep DescribeKeywordsResponse :: Type -> Type #

Read DescribeKeywordsResponse Source # 
Instance details

Defined in Amazonka.PinpointSmsVoiceV2.DescribeKeywords

Show DescribeKeywordsResponse Source # 
Instance details

Defined in Amazonka.PinpointSmsVoiceV2.DescribeKeywords

NFData DescribeKeywordsResponse Source # 
Instance details

Defined in Amazonka.PinpointSmsVoiceV2.DescribeKeywords

Eq DescribeKeywordsResponse Source # 
Instance details

Defined in Amazonka.PinpointSmsVoiceV2.DescribeKeywords

type Rep DescribeKeywordsResponse Source # 
Instance details

Defined in Amazonka.PinpointSmsVoiceV2.DescribeKeywords

type Rep DescribeKeywordsResponse = D1 ('MetaData "DescribeKeywordsResponse" "Amazonka.PinpointSmsVoiceV2.DescribeKeywords" "amazonka-pinpoint-sms-voice-v2-2.0-HnPsQLyg04lAXcjcfRtbC7" 'False) (C1 ('MetaCons "DescribeKeywordsResponse'" 'PrefixI 'True) ((S1 ('MetaSel ('Just "keywords") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe [KeywordInformation])) :*: S1 ('MetaSel ('Just "nextToken") '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)))))

newDescribeKeywordsResponse Source #

Create a value of DescribeKeywordsResponse 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:

DescribeKeywords, describeKeywordsResponse_keywords - An array of KeywordInformation objects that contain the results.

DescribeKeywords, describeKeywordsResponse_nextToken - The token to be used for the next set of paginated results. If this field is empty then there are no more results.

DescribeKeywords, describeKeywordsResponse_originationIdentity - The PhoneNumberId or PoolId that is associated with the OriginationIdentity.

DescribeKeywordsResponse, describeKeywordsResponse_originationIdentityArn - The PhoneNumberArn or PoolArn that is associated with the OriginationIdentity.

$sel:httpStatus:DescribeKeywordsResponse', describeKeywordsResponse_httpStatus - The response's http status code.

Response Lenses

describeKeywordsResponse_keywords :: Lens' DescribeKeywordsResponse (Maybe [KeywordInformation]) Source #

An array of KeywordInformation objects that contain the results.

describeKeywordsResponse_nextToken :: Lens' DescribeKeywordsResponse (Maybe Text) Source #

The token to be used for the next set of paginated results. If this field is empty then there are no more results.

describeKeywordsResponse_originationIdentity :: Lens' DescribeKeywordsResponse (Maybe Text) Source #

The PhoneNumberId or PoolId that is associated with the OriginationIdentity.

describeKeywordsResponse_originationIdentityArn :: Lens' DescribeKeywordsResponse (Maybe Text) Source #

The PhoneNumberArn or PoolArn that is associated with the OriginationIdentity.