Copyright | (c) 2013-2021 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 |
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.
This action is throttled at 30 transactions per second (TPS).
This operation returns paginated results.
Synopsis
- data ListSubscriptions = ListSubscriptions' {}
- newListSubscriptions :: ListSubscriptions
- listSubscriptions_nextToken :: Lens' ListSubscriptions (Maybe Text)
- data ListSubscriptionsResponse = ListSubscriptionsResponse' {
- nextToken :: Maybe Text
- subscriptions :: Maybe [Subscription]
- httpStatus :: Int
- newListSubscriptionsResponse :: Int -> ListSubscriptionsResponse
- listSubscriptionsResponse_nextToken :: Lens' ListSubscriptionsResponse (Maybe Text)
- listSubscriptionsResponse_subscriptions :: Lens' ListSubscriptionsResponse (Maybe [Subscription])
- listSubscriptionsResponse_httpStatus :: Lens' ListSubscriptionsResponse Int
Creating a Request
data ListSubscriptions Source #
Input for ListSubscriptions action.
See: newListSubscriptions
smart constructor.
Instances
newListSubscriptions :: ListSubscriptions Source #
Create a value of ListSubscriptions
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:nextToken:ListSubscriptions'
, listSubscriptions_nextToken
- Token returned by the previous ListSubscriptions
request.
Request Lenses
listSubscriptions_nextToken :: Lens' ListSubscriptions (Maybe Text) Source #
Token returned by the previous ListSubscriptions
request.
Destructuring the Response
data ListSubscriptionsResponse Source #
Response for ListSubscriptions action
See: newListSubscriptionsResponse
smart constructor.
ListSubscriptionsResponse' | |
|
Instances
newListSubscriptionsResponse Source #
Create a value of ListSubscriptionsResponse
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:nextToken:ListSubscriptions'
, listSubscriptionsResponse_nextToken
- Token to pass along to the next ListSubscriptions
request. This
element is returned if there are more subscriptions to retrieve.
$sel:subscriptions:ListSubscriptionsResponse'
, listSubscriptionsResponse_subscriptions
- A list of subscriptions.
$sel:httpStatus:ListSubscriptionsResponse'
, listSubscriptionsResponse_httpStatus
- The response's http status code.
Response Lenses
listSubscriptionsResponse_nextToken :: 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.
listSubscriptionsResponse_subscriptions :: Lens' ListSubscriptionsResponse (Maybe [Subscription]) Source #
A list of subscriptions.
listSubscriptionsResponse_httpStatus :: Lens' ListSubscriptionsResponse Int Source #
The response's http status code.