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 the active log subscriptions for the Amazon Web Services account.
This operation returns paginated results.
Synopsis
- data ListLogSubscriptions = ListLogSubscriptions' {}
- newListLogSubscriptions :: ListLogSubscriptions
- listLogSubscriptions_directoryId :: Lens' ListLogSubscriptions (Maybe Text)
- listLogSubscriptions_nextToken :: Lens' ListLogSubscriptions (Maybe Text)
- listLogSubscriptions_limit :: Lens' ListLogSubscriptions (Maybe Natural)
- data ListLogSubscriptionsResponse = ListLogSubscriptionsResponse' {}
- newListLogSubscriptionsResponse :: Int -> ListLogSubscriptionsResponse
- listLogSubscriptionsResponse_nextToken :: Lens' ListLogSubscriptionsResponse (Maybe Text)
- listLogSubscriptionsResponse_logSubscriptions :: Lens' ListLogSubscriptionsResponse (Maybe [LogSubscription])
- listLogSubscriptionsResponse_httpStatus :: Lens' ListLogSubscriptionsResponse Int
Creating a Request
data ListLogSubscriptions Source #
See: newListLogSubscriptions
smart constructor.
ListLogSubscriptions' | |
|
Instances
newListLogSubscriptions :: ListLogSubscriptions Source #
Create a value of ListLogSubscriptions
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:directoryId:ListLogSubscriptions'
, listLogSubscriptions_directoryId
- If a DirectoryID is provided, lists only the log subscription
associated with that directory. If no DirectoryId is provided, lists
all log subscriptions associated with your Amazon Web Services account.
If there are no log subscriptions for the Amazon Web Services account or
the directory, an empty list will be returned.
$sel:nextToken:ListLogSubscriptions'
, listLogSubscriptions_nextToken
- The token for the next set of items to return.
$sel:limit:ListLogSubscriptions'
, listLogSubscriptions_limit
- The maximum number of items returned.
Request Lenses
listLogSubscriptions_directoryId :: Lens' ListLogSubscriptions (Maybe Text) Source #
If a DirectoryID is provided, lists only the log subscription associated with that directory. If no DirectoryId is provided, lists all log subscriptions associated with your Amazon Web Services account. If there are no log subscriptions for the Amazon Web Services account or the directory, an empty list will be returned.
listLogSubscriptions_nextToken :: Lens' ListLogSubscriptions (Maybe Text) Source #
The token for the next set of items to return.
listLogSubscriptions_limit :: Lens' ListLogSubscriptions (Maybe Natural) Source #
The maximum number of items returned.
Destructuring the Response
data ListLogSubscriptionsResponse Source #
See: newListLogSubscriptionsResponse
smart constructor.
ListLogSubscriptionsResponse' | |
|
Instances
newListLogSubscriptionsResponse Source #
Create a value of ListLogSubscriptionsResponse
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:ListLogSubscriptions'
, listLogSubscriptionsResponse_nextToken
- The token for the next set of items to return.
$sel:logSubscriptions:ListLogSubscriptionsResponse'
, listLogSubscriptionsResponse_logSubscriptions
- A list of active LogSubscription objects for calling the Amazon Web
Services account.
$sel:httpStatus:ListLogSubscriptionsResponse'
, listLogSubscriptionsResponse_httpStatus
- The response's http status code.
Response Lenses
listLogSubscriptionsResponse_nextToken :: Lens' ListLogSubscriptionsResponse (Maybe Text) Source #
The token for the next set of items to return.
listLogSubscriptionsResponse_logSubscriptions :: Lens' ListLogSubscriptionsResponse (Maybe [LogSubscription]) Source #
A list of active LogSubscription objects for calling the Amazon Web Services account.
listLogSubscriptionsResponse_httpStatus :: Lens' ListLogSubscriptionsResponse Int Source #
The response's http status code.