Skip to content

list_managed_notification_configurations

list_managed_notification_configurations(
    *,
    config_overrides: Optional[NotificationsClientConfig] = None,
    channel_identifier: Optional[ChannelIdentifier] = None,
    max_results: Optional[int] = None,
    next_token: Optional[NextToken] = None,
) -> ListManagedNotificationConfigurationsResponse

Returns a list of Managed Notification Configurations according to specified filters, ordered by creation time in reverse chronological order (newest first).

Parameters:

  • channel_identifier (Optional[ChannelIdentifier], default: None ) –

    The identifier or ARN of the notification channel to filter configurations by.

  • max_results (Optional[int], default: None ) –

    The maximum number of results to be returned in this call. Defaults to 20.

  • next_token (Optional[NextToken], default: None ) –

    The start token for paginated calls. Retrieved from the response of a previous ListManagedNotificationChannelAssociations call. Next token uses Base64 encoding.

Raises:

Source code in docs_src/capo_notifications/_services/notifications.py
def list_managed_notification_configurations(
    self,
    *,
    config_overrides: Optional[NotificationsClientConfig] = None,
    channel_identifier: Optional[
        "capo_notifications.types.channel_identifier.ChannelIdentifier"
    ] = None,
    max_results: Optional[int] = None,
    next_token: Optional["capo_notifications.types.next_token.NextToken"] = None,
) -> "capo_notifications.types.list_managed_notification_configurations_response.ListManagedNotificationConfigurationsResponse":
    """<p>Returns a list of Managed Notification Configurations according to specified filters, ordered by creation time in reverse chronological order (newest first).</p>

    Args:
        channel_identifier: <p>The identifier or ARN of the notification channel to filter configurations by.</p>
        max_results: <p>The maximum number of results to be returned in this call. Defaults to 20.</p>
        next_token: <p>The start token for paginated calls. Retrieved from the response of a previous ListManagedNotificationChannelAssociations call. Next token uses Base64 encoding.</p>

    Raises:
        capo_notifications.errors.access_denied_exception.AccessDeniedException: <p>User does not have sufficient access to perform this action.</p>
        capo_notifications.errors.internal_server_exception.InternalServerException: <p>Unexpected error during processing of request.</p>
        capo_notifications.errors.throttling_exception.ThrottlingException: <p>Request was denied due to request throttling. </p>
        capo_notifications.errors.validation_exception.ValidationException: <p>This exception is thrown when the notification event fails validation.</p>
        capo_notifications.errors.UnknownServiceError: The service returned an error code this client does not model.
    """

    def _handler(
        req: "OperationRequest[capo_notifications.types.list_managed_notification_configurations_request.ListManagedNotificationConfigurationsRequest]",
    ) -> OperationResponse[
        "capo_notifications.types.list_managed_notification_configurations_response.ListManagedNotificationConfigurationsResponse"
    ]:
        import capo_notifications._operations.notifications.list_managed_notification_configurations

        output, http_response = (
            capo_notifications._operations.notifications.list_managed_notification_configurations.list_managed_notification_configurations(
                req.options, req.input
            )
        )
        return OperationResponse(output=output, response=http_response)

    interceptors_, options_ = self.operation_options(
        config_overrides, OperationLogging("ListManagedNotificationConfigurations")
    )
    input_: capo_notifications.types.list_managed_notification_configurations_request.ListManagedNotificationConfigurationsRequest = {}
    if channel_identifier is not None:
        input_["channel_identifier"] = channel_identifier
    if max_results is not None:
        input_["max_results"] = max_results
    if next_token is not None:
        input_["next_token"] = next_token

    response = execute_pipeline(
        OperationRequest(input=input_, options=options_),
        handler=_handler,
        interceptors=list(interceptors_),
    )
    response.response.close()
    return response.output