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 |
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' {
- nextToken :: Maybe Text
- resourceArn :: Maybe Text
- maxResults :: Maybe Int
- newListEventSubscriptions :: ListEventSubscriptions
- listEventSubscriptions_nextToken :: Lens' ListEventSubscriptions (Maybe Text)
- listEventSubscriptions_resourceArn :: Lens' ListEventSubscriptions (Maybe Text)
- listEventSubscriptions_maxResults :: Lens' ListEventSubscriptions (Maybe Int)
- 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:nextToken: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.
$sel:resourceArn:ListEventSubscriptions'
, listEventSubscriptions_resourceArn
- The ARN of the assessment template for which you want to list the
existing event subscriptions.
$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.
Request Lenses
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.
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.
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:
$sel:nextToken: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.