Copyright | (c) 2013-2018 Brendan Hay |
---|---|
License | Mozilla Public License, v. 2.0. |
Maintainer | Brendan Hay <brendan.g.hay+amazonka@gmail.com> |
Stability | auto-generated |
Portability | non-portable (GHC extensions) |
Safe Haskell | None |
Language | Haskell2010 |
Returns a list of the subscriptions to a specific topic. Each call returns a limited list of subscriptions, up to 100. If there are more subscriptions, a NextToken
is also returned. Use the NextToken
parameter in a new ListSubscriptionsByTopic
call to get further results.
This operation returns paginated results.
Synopsis
- listSubscriptionsByTopic :: Text -> ListSubscriptionsByTopic
- data ListSubscriptionsByTopic
- lsbtNextToken :: Lens' ListSubscriptionsByTopic (Maybe Text)
- lsbtTopicARN :: Lens' ListSubscriptionsByTopic Text
- listSubscriptionsByTopicResponse :: Int -> ListSubscriptionsByTopicResponse
- data ListSubscriptionsByTopicResponse
- lsbtrsNextToken :: Lens' ListSubscriptionsByTopicResponse (Maybe Text)
- lsbtrsSubscriptions :: Lens' ListSubscriptionsByTopicResponse [Subscription]
- lsbtrsResponseStatus :: Lens' ListSubscriptionsByTopicResponse Int
Creating a Request
listSubscriptionsByTopic Source #
Creates a value of ListSubscriptionsByTopic
with the minimum fields required to make a request.
Use one of the following lenses to modify other fields as desired:
lsbtNextToken
- Token returned by the previousListSubscriptionsByTopic
request.lsbtTopicARN
- The ARN of the topic for which you wish to find subscriptions.
data ListSubscriptionsByTopic Source #
Input for ListSubscriptionsByTopic action.
See: listSubscriptionsByTopic
smart constructor.
Instances
Request Lenses
lsbtNextToken :: Lens' ListSubscriptionsByTopic (Maybe Text) Source #
Token returned by the previous ListSubscriptionsByTopic
request.
lsbtTopicARN :: Lens' ListSubscriptionsByTopic Text Source #
The ARN of the topic for which you wish to find subscriptions.
Destructuring the Response
listSubscriptionsByTopicResponse Source #
Creates a value of ListSubscriptionsByTopicResponse
with the minimum fields required to make a request.
Use one of the following lenses to modify other fields as desired:
lsbtrsNextToken
- Token to pass along to the nextListSubscriptionsByTopic
request. This element is returned if there are more subscriptions to retrieve.lsbtrsSubscriptions
- A list of subscriptions.lsbtrsResponseStatus
- -- | The response status code.
data ListSubscriptionsByTopicResponse Source #
Response for ListSubscriptionsByTopic action.
See: listSubscriptionsByTopicResponse
smart constructor.
Instances
Response Lenses
lsbtrsNextToken :: Lens' ListSubscriptionsByTopicResponse (Maybe Text) Source #
Token to pass along to the next ListSubscriptionsByTopic
request. This element is returned if there are more subscriptions to retrieve.
lsbtrsSubscriptions :: Lens' ListSubscriptionsByTopicResponse [Subscription] Source #
A list of subscriptions.
lsbtrsResponseStatus :: Lens' ListSubscriptionsByTopicResponse Int Source #
- - | The response status code.