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 the channels in the current account, and their source names. Amazon Web Services services create service-linked channels get information about CloudTrail events on your behalf. For more information about service-linked channels, see Viewing service-linked channels for CloudTrail by using the CLI.
Synopsis
- data ListChannels = ListChannels' {}
- newListChannels :: ListChannels
- listChannels_maxResults :: Lens' ListChannels (Maybe Natural)
- listChannels_nextToken :: Lens' ListChannels (Maybe Text)
- data ListChannelsResponse = ListChannelsResponse' {}
- newListChannelsResponse :: Int -> ListChannelsResponse
- listChannelsResponse_channels :: Lens' ListChannelsResponse (Maybe [Channel])
- listChannelsResponse_nextToken :: Lens' ListChannelsResponse (Maybe Text)
- listChannelsResponse_httpStatus :: Lens' ListChannelsResponse Int
Creating a Request
data ListChannels Source #
See: newListChannels
smart constructor.
ListChannels' | |
|
Instances
newListChannels :: ListChannels Source #
Create a value of ListChannels
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:ListChannels'
, listChannels_maxResults
- The maximum number of CloudTrail channels to display on a single page.
ListChannels
, listChannels_nextToken
- The token to use to get the next page of results after a previous API
call. This token must be passed in with the same parameters that were
specified in the original call. For example, if the original call
specified an AttributeKey of 'Username' with a value of 'root', the
call with NextToken should include those same parameters.
Request Lenses
listChannels_maxResults :: Lens' ListChannels (Maybe Natural) Source #
The maximum number of CloudTrail channels to display on a single page.
listChannels_nextToken :: Lens' ListChannels (Maybe Text) Source #
The token to use to get the next page of results after a previous API call. This token must be passed in with the same parameters that were specified in the original call. For example, if the original call specified an AttributeKey of 'Username' with a value of 'root', the call with NextToken should include those same parameters.
Destructuring the Response
data ListChannelsResponse Source #
See: newListChannelsResponse
smart constructor.
Instances
newListChannelsResponse Source #
Create a value of ListChannelsResponse
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:channels:ListChannelsResponse'
, listChannelsResponse_channels
- The list of channels in the account.
ListChannels
, listChannelsResponse_nextToken
- The token to use to get the next page of results after a previous API
call.
$sel:httpStatus:ListChannelsResponse'
, listChannelsResponse_httpStatus
- The response's http status code.
Response Lenses
listChannelsResponse_channels :: Lens' ListChannelsResponse (Maybe [Channel]) Source #
The list of channels in the account.
listChannelsResponse_nextToken :: Lens' ListChannelsResponse (Maybe Text) Source #
The token to use to get the next page of results after a previous API call.
listChannelsResponse_httpStatus :: Lens' ListChannelsResponse Int Source #
The response's http status code.