Copyright | (c) 2013-2015 Brendan Hay |
---|---|
License | Mozilla Public License, v. 2.0. |
Maintainer | Brendan Hay <brendan.g.hay@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.
See: AWS API Reference for ListSubscriptionsByTopic.
This operation returns paginated results.
- 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:
data ListSubscriptionsByTopic Source
Input for ListSubscriptionsByTopic action.
See: listSubscriptionsByTopic
smart constructor.
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:
data ListSubscriptionsByTopicResponse Source
Response for ListSubscriptionsByTopic action.
See: listSubscriptionsByTopicResponse
smart constructor.
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.