| 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 |
Network.AWS.SNS.ListSubscriptions
Description
Returns a list of the requester's subscriptions. 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 ListSubscriptions call to get further results.
See: AWS API Reference for ListSubscriptions.
This operation returns paginated results.
- listSubscriptions :: ListSubscriptions
- data ListSubscriptions
- lsNextToken :: Lens' ListSubscriptions (Maybe Text)
- listSubscriptionsResponse :: Int -> ListSubscriptionsResponse
- data ListSubscriptionsResponse
- lsrsNextToken :: Lens' ListSubscriptionsResponse (Maybe Text)
- lsrsSubscriptions :: Lens' ListSubscriptionsResponse [Subscription]
- lsrsResponseStatus :: Lens' ListSubscriptionsResponse Int
Creating a Request
listSubscriptions :: ListSubscriptions Source
Creates a value of ListSubscriptions with the minimum fields required to make a request.
Use one of the following lenses to modify other fields as desired:
data ListSubscriptions Source
Input for ListSubscriptions action.
See: listSubscriptions smart constructor.
Instances
Request Lenses
lsNextToken :: Lens' ListSubscriptions (Maybe Text) Source
Token returned by the previous ListSubscriptions request.
Destructuring the Response
listSubscriptionsResponse Source
Arguments
| :: Int | |
| -> ListSubscriptionsResponse |
Creates a value of ListSubscriptionsResponse with the minimum fields required to make a request.
Use one of the following lenses to modify other fields as desired:
data ListSubscriptionsResponse Source
Response for ListSubscriptions action
See: listSubscriptionsResponse smart constructor.
Response Lenses
lsrsNextToken :: Lens' ListSubscriptionsResponse (Maybe Text) Source
Token to pass along to the next ListSubscriptions request. This
element is returned if there are more subscriptions to retrieve.
lsrsSubscriptions :: Lens' ListSubscriptionsResponse [Subscription] Source
A list of subscriptions.
lsrsResponseStatus :: Lens' ListSubscriptionsResponse Int Source
The response status code.