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).
Parameters:
-
next_token
(Optional[UuidNextToken], default:
None
)
–
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.
Raises:
-
AccessDeniedException
–
You don't have permissions to perform the requested operation. The user or role that is making the request must have at least one IAM permissions policy attached that grants the required permissions. For more information, see Access Management in the IAM User Guide.
-
InternalServerException
–
An internal failure in an Amazon service occurred.
-
ThrottlingException
–
The request was denied due to a request throttling.
-
ValidationException
–
Contains information about data passed in to a field during a request that is not valid.
-
UnknownServiceError
–
The service returned an error code this client does not model.
Source code in docs_src/capo_devops_guru/_services/async_dev_ops_guru.py
| async def list_notification_channels(
self,
*,
config_overrides: Optional[AsyncDevOpsGuruClientConfig] = None,
next_token: Optional[
"capo_devops_guru.types.uuid_next_token.UuidNextToken"
] = None,
) -> "capo_devops_guru.types.list_notification_channels_response.ListNotificationChannelsResponse":
"""<p> 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). </p>
Args:
next_token: <p>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.</p>
Raises:
capo_devops_guru.errors.access_denied_exception.AccessDeniedException: <p> You don't have permissions to perform the requested operation. The user or role that is making the request must have at least one IAM permissions policy attached that grants the required permissions. For more information, see <a href="https://docs.aws.amazon.com/IAM/latest/UserGuide/access.html">Access Management</a> in the <i>IAM User Guide</i>. </p>
capo_devops_guru.errors.internal_server_exception.InternalServerException: <p>An internal failure in an Amazon service occurred.</p>
capo_devops_guru.errors.throttling_exception.ThrottlingException: <p>The request was denied due to a request throttling.</p>
capo_devops_guru.errors.validation_exception.ValidationException: <p> Contains information about data passed in to a field during a request that is not valid. </p>
capo_devops_guru.errors.UnknownServiceError: The service returned an error code this client does not model.
"""
async def _handler(
req: "AsyncOperationRequest[capo_devops_guru.types.list_notification_channels_request.ListNotificationChannelsRequest]",
) -> AsyncOperationResponse[
"capo_devops_guru.types.list_notification_channels_response.ListNotificationChannelsResponse"
]:
import capo_devops_guru._operations.capstone_control_plane_service.list_notification_channels
(
output,
http_response,
) = await capo_devops_guru._operations.capstone_control_plane_service.list_notification_channels.async_list_notification_channels(
req.options, req.input
)
return AsyncOperationResponse(output=output, response=http_response)
interceptors_, options_ = self.operation_options(
config_overrides, OperationLogging("ListNotificationChannels")
)
input_: capo_devops_guru.types.list_notification_channels_request.ListNotificationChannelsRequest = {}
if next_token is not None:
input_["next_token"] = next_token
response = await aexecute_pipeline(
AsyncOperationRequest(input=input_, options=options_),
handler=_handler,
interceptors=list(interceptors_),
)
await response.response.aclose()
return response.output
|