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 notification channels configured for DevOps Guru. Each notification channel is used to notify you when DevOps Guru generates an insight that contains information about how to improve your operations. The one supported notification channel is Amazon Simple Notification Service (Amazon SNS).
This operation returns paginated results.
Synopsis
- data ListNotificationChannels = ListNotificationChannels' {}
- newListNotificationChannels :: ListNotificationChannels
- listNotificationChannels_nextToken :: Lens' ListNotificationChannels (Maybe Text)
- data ListNotificationChannelsResponse = ListNotificationChannelsResponse' {
- channels :: Maybe [NotificationChannel]
- nextToken :: Maybe Text
- httpStatus :: Int
- newListNotificationChannelsResponse :: Int -> ListNotificationChannelsResponse
- listNotificationChannelsResponse_channels :: Lens' ListNotificationChannelsResponse (Maybe [NotificationChannel])
- listNotificationChannelsResponse_nextToken :: Lens' ListNotificationChannelsResponse (Maybe Text)
- listNotificationChannelsResponse_httpStatus :: Lens' ListNotificationChannelsResponse Int
Creating a Request
data ListNotificationChannels Source #
See: newListNotificationChannels
smart constructor.
Instances
newListNotificationChannels :: ListNotificationChannels Source #
Create a value of ListNotificationChannels
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:ListNotificationChannels'
, listNotificationChannels_nextToken
- The pagination token to use to retrieve the next page of results for
this operation. If this value is null, it retrieves the first page.
Request Lenses
listNotificationChannels_nextToken :: Lens' ListNotificationChannels (Maybe Text) Source #
The pagination token to use to retrieve the next page of results for this operation. If this value is null, it retrieves the first page.
Destructuring the Response
data ListNotificationChannelsResponse Source #
See: newListNotificationChannelsResponse
smart constructor.
ListNotificationChannelsResponse' | |
|
Instances
newListNotificationChannelsResponse Source #
Create a value of ListNotificationChannelsResponse
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:ListNotificationChannelsResponse'
, listNotificationChannelsResponse_channels
- An array that contains the requested notification channels.
$sel:nextToken:ListNotificationChannels'
, listNotificationChannelsResponse_nextToken
- The pagination token to use to retrieve the next page of results for
this operation. If there are no more pages, this value is null.
$sel:httpStatus:ListNotificationChannelsResponse'
, listNotificationChannelsResponse_httpStatus
- The response's http status code.
Response Lenses
listNotificationChannelsResponse_channels :: Lens' ListNotificationChannelsResponse (Maybe [NotificationChannel]) Source #
An array that contains the requested notification channels.
listNotificationChannelsResponse_nextToken :: Lens' ListNotificationChannelsResponse (Maybe Text) Source #
The pagination token to use to retrieve the next page of results for this operation. If there are no more pages, this value is null.
listNotificationChannelsResponse_httpStatus :: Lens' ListNotificationChannelsResponse Int Source #
The response's http status code.