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 |
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
- data DescribeKeywords = DescribeKeywords' {
- filters :: Maybe [KeywordFilter]
- keywords :: Maybe [Text]
- maxResults :: Maybe Natural
- nextToken :: Maybe Text
- originationIdentity :: Text
- newDescribeKeywords :: Text -> DescribeKeywords
- describeKeywords_filters :: Lens' DescribeKeywords (Maybe [KeywordFilter])
- describeKeywords_keywords :: Lens' DescribeKeywords (Maybe [Text])
- describeKeywords_maxResults :: Lens' DescribeKeywords (Maybe Natural)
- describeKeywords_nextToken :: Lens' DescribeKeywords (Maybe Text)
- describeKeywords_originationIdentity :: Lens' DescribeKeywords Text
- data DescribeKeywordsResponse = DescribeKeywordsResponse' {}
- newDescribeKeywordsResponse :: Int -> DescribeKeywordsResponse
- describeKeywordsResponse_keywords :: Lens' DescribeKeywordsResponse (Maybe [KeywordInformation])
- describeKeywordsResponse_nextToken :: Lens' DescribeKeywordsResponse (Maybe Text)
- describeKeywordsResponse_originationIdentity :: Lens' DescribeKeywordsResponse (Maybe Text)
- describeKeywordsResponse_originationIdentityArn :: Lens' DescribeKeywordsResponse (Maybe Text)
- describeKeywordsResponse_httpStatus :: Lens' DescribeKeywordsResponse Int
Creating a Request
data DescribeKeywords Source #
See: newDescribeKeywords
smart constructor.
DescribeKeywords' | |
|
Instances
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.
DescribeKeywordsResponse' | |
|
Instances
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.
describeKeywordsResponse_httpStatus :: Lens' DescribeKeywordsResponse Int Source #
The response's http status code.