Copyright | (c) 2013-2023 Brendan Hay |
---|---|
License | Mozilla Public License, v. 2.0. |
Maintainer | Brendan Hay |
Stability | auto-generated |
Portability | non-portable (GHC extensions) |
Safe Haskell | Safe-Inferred |
Language | Haskell2010 |
Lists all the event subscriptions for the assessment template that is specified by the ARN of the assessment template. For more information, see SubscribeToEvent and UnsubscribeFromEvent.
This operation returns paginated results.
Synopsis
- data ListEventSubscriptions = ListEventSubscriptions' {
- maxResults :: Maybe Int
- nextToken :: Maybe Text
- resourceArn :: Maybe Text
- newListEventSubscriptions :: ListEventSubscriptions
- listEventSubscriptions_maxResults :: Lens' ListEventSubscriptions (Maybe Int)
- listEventSubscriptions_nextToken :: Lens' ListEventSubscriptions (Maybe Text)
- listEventSubscriptions_resourceArn :: Lens' ListEventSubscriptions (Maybe Text)
- data ListEventSubscriptionsResponse = ListEventSubscriptionsResponse' {
- nextToken :: Maybe Text
- httpStatus :: Int
- subscriptions :: [Subscription]
- newListEventSubscriptionsResponse :: Int -> ListEventSubscriptionsResponse
- listEventSubscriptionsResponse_nextToken :: Lens' ListEventSubscriptionsResponse (Maybe Text)
- listEventSubscriptionsResponse_httpStatus :: Lens' ListEventSubscriptionsResponse Int
- listEventSubscriptionsResponse_subscriptions :: Lens' ListEventSubscriptionsResponse [Subscription]
Creating a Request
data ListEventSubscriptions Source #
See: newListEventSubscriptions
smart constructor.
ListEventSubscriptions' | |
|
Instances
newListEventSubscriptions :: ListEventSubscriptions Source #
Create a value of ListEventSubscriptions
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:maxResults:ListEventSubscriptions'
, listEventSubscriptions_maxResults
- You can use this parameter to indicate the maximum number of items you
want in the response. The default value is 10. The maximum value is 500.
ListEventSubscriptions
, listEventSubscriptions_nextToken
- You can use this parameter when paginating results. Set the value of
this parameter to null on your first call to the
ListEventSubscriptions action. Subsequent calls to the action fill
nextToken in the request with the value of NextToken from the
previous response to continue listing data.
ListEventSubscriptions
, listEventSubscriptions_resourceArn
- The ARN of the assessment template for which you want to list the
existing event subscriptions.
Request Lenses
listEventSubscriptions_maxResults :: Lens' ListEventSubscriptions (Maybe Int) Source #
You can use this parameter to indicate the maximum number of items you want in the response. The default value is 10. The maximum value is 500.
listEventSubscriptions_nextToken :: Lens' ListEventSubscriptions (Maybe Text) Source #
You can use this parameter when paginating results. Set the value of this parameter to null on your first call to the ListEventSubscriptions action. Subsequent calls to the action fill nextToken in the request with the value of NextToken from the previous response to continue listing data.
listEventSubscriptions_resourceArn :: Lens' ListEventSubscriptions (Maybe Text) Source #
The ARN of the assessment template for which you want to list the existing event subscriptions.
Destructuring the Response
data ListEventSubscriptionsResponse Source #
See: newListEventSubscriptionsResponse
smart constructor.
ListEventSubscriptionsResponse' | |
|
Instances
newListEventSubscriptionsResponse Source #
Create a value of ListEventSubscriptionsResponse
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:
ListEventSubscriptions
, listEventSubscriptionsResponse_nextToken
- When a response is generated, if there is more data to be listed, this
parameter is present in the response and contains the value to use for
the nextToken parameter in a subsequent pagination request. If there
is no more data to be listed, this parameter is set to null.
$sel:httpStatus:ListEventSubscriptionsResponse'
, listEventSubscriptionsResponse_httpStatus
- The response's http status code.
$sel:subscriptions:ListEventSubscriptionsResponse'
, listEventSubscriptionsResponse_subscriptions
- Details of the returned event subscriptions.
Response Lenses
listEventSubscriptionsResponse_nextToken :: Lens' ListEventSubscriptionsResponse (Maybe Text) Source #
When a response is generated, if there is more data to be listed, this parameter is present in the response and contains the value to use for the nextToken parameter in a subsequent pagination request. If there is no more data to be listed, this parameter is set to null.
listEventSubscriptionsResponse_httpStatus :: Lens' ListEventSubscriptionsResponse Int Source #
The response's http status code.
listEventSubscriptionsResponse_subscriptions :: Lens' ListEventSubscriptionsResponse [Subscription] Source #
Details of the returned event subscriptions.