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 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 action is throttled at 30 transactions per second (TPS).
This operation returns paginated results.
Synopsis
- data ListSubscriptionsByTopic = ListSubscriptionsByTopic' {}
- newListSubscriptionsByTopic :: Text -> ListSubscriptionsByTopic
- listSubscriptionsByTopic_nextToken :: Lens' ListSubscriptionsByTopic (Maybe Text)
- listSubscriptionsByTopic_topicArn :: Lens' ListSubscriptionsByTopic Text
- data ListSubscriptionsByTopicResponse = ListSubscriptionsByTopicResponse' {
- nextToken :: Maybe Text
- subscriptions :: Maybe [Subscription]
- httpStatus :: Int
- newListSubscriptionsByTopicResponse :: Int -> ListSubscriptionsByTopicResponse
- listSubscriptionsByTopicResponse_nextToken :: Lens' ListSubscriptionsByTopicResponse (Maybe Text)
- listSubscriptionsByTopicResponse_subscriptions :: Lens' ListSubscriptionsByTopicResponse (Maybe [Subscription])
- listSubscriptionsByTopicResponse_httpStatus :: Lens' ListSubscriptionsByTopicResponse Int
Creating a Request
data ListSubscriptionsByTopic Source #
Input for ListSubscriptionsByTopic action.
See: newListSubscriptionsByTopic
smart constructor.
Instances
newListSubscriptionsByTopic Source #
Create a value of ListSubscriptionsByTopic
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:ListSubscriptionsByTopic'
, listSubscriptionsByTopic_nextToken
- Token returned by the previous ListSubscriptionsByTopic
request.
$sel:topicArn:ListSubscriptionsByTopic'
, listSubscriptionsByTopic_topicArn
- The ARN of the topic for which you wish to find subscriptions.
Request Lenses
listSubscriptionsByTopic_nextToken :: Lens' ListSubscriptionsByTopic (Maybe Text) Source #
Token returned by the previous ListSubscriptionsByTopic
request.
listSubscriptionsByTopic_topicArn :: Lens' ListSubscriptionsByTopic Text Source #
The ARN of the topic for which you wish to find subscriptions.
Destructuring the Response
data ListSubscriptionsByTopicResponse Source #
Response for ListSubscriptionsByTopic action.
See: newListSubscriptionsByTopicResponse
smart constructor.
ListSubscriptionsByTopicResponse' | |
|
Instances
newListSubscriptionsByTopicResponse Source #
Create a value of ListSubscriptionsByTopicResponse
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:ListSubscriptionsByTopic'
, listSubscriptionsByTopicResponse_nextToken
- Token to pass along to the next ListSubscriptionsByTopic
request. This
element is returned if there are more subscriptions to retrieve.
$sel:subscriptions:ListSubscriptionsByTopicResponse'
, listSubscriptionsByTopicResponse_subscriptions
- A list of subscriptions.
$sel:httpStatus:ListSubscriptionsByTopicResponse'
, listSubscriptionsByTopicResponse_httpStatus
- The response's http status code.
Response Lenses
listSubscriptionsByTopicResponse_nextToken :: 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.
listSubscriptionsByTopicResponse_subscriptions :: Lens' ListSubscriptionsByTopicResponse (Maybe [Subscription]) Source #
A list of subscriptions.
listSubscriptionsByTopicResponse_httpStatus :: Lens' ListSubscriptionsByTopicResponse Int Source #
The response's http status code.