Skip to content

list_managed_notification_channel_associations async

list_managed_notification_channel_associations(
    managed_notification_configuration_arn: ManagedNotificationConfigurationOsArn,
    *,
    config_overrides: Optional[AsyncNotificationsClientConfig] = None,
    max_results: Optional[int] = None,
    next_token: Optional[NextToken] = None,
) -> ListManagedNotificationChannelAssociationsResponse

Returns a list of Account contacts and Channels associated with a ManagedNotificationConfiguration, in paginated format.

Parameters:

  • managed_notification_configuration_arn (ManagedNotificationConfigurationOsArn) –

    The Amazon Resource Name (ARN) of the ManagedNotificationConfiguration to match.

  • 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.

Raises:

Source code in docs_src/capo_notifications/_services/async_notifications.py
async def list_managed_notification_channel_associations(
    self,
    managed_notification_configuration_arn: "capo_notifications.types.managed_notification_configuration_os_arn.ManagedNotificationConfigurationOsArn",
    *,
    config_overrides: Optional[AsyncNotificationsClientConfig] = None,
    max_results: Optional[int] = None,
    next_token: Optional["capo_notifications.types.next_token.NextToken"] = None,
) -> "capo_notifications.types.list_managed_notification_channel_associations_response.ListManagedNotificationChannelAssociationsResponse":
    """<p>Returns a list of Account contacts and Channels associated with a <code>ManagedNotificationConfiguration</code>, in paginated format.</p>

    Args:
        managed_notification_configuration_arn: <p>The Amazon Resource Name (ARN) of the <code>ManagedNotificationConfiguration</code> to match.</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 <code>ListManagedNotificationChannelAssociations</code> call.</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.resource_not_found_exception.ResourceNotFoundException: <p>Request references a resource which does not exist. </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.
    """

    async def _handler(
        req: "AsyncOperationRequest[capo_notifications.types.list_managed_notification_channel_associations_request.ListManagedNotificationChannelAssociationsRequest]",
    ) -> AsyncOperationResponse[
        "capo_notifications.types.list_managed_notification_channel_associations_response.ListManagedNotificationChannelAssociationsResponse"
    ]:
        import capo_notifications._operations.notifications.list_managed_notification_channel_associations

        (
            output,
            http_response,
        ) = await capo_notifications._operations.notifications.list_managed_notification_channel_associations.async_list_managed_notification_channel_associations(
            req.options, req.input
        )
        return AsyncOperationResponse(output=output, response=http_response)

    interceptors_, options_ = self.operation_options(
        config_overrides,
        OperationLogging("ListManagedNotificationChannelAssociations"),
    )
    input_: capo_notifications.types.list_managed_notification_channel_associations_request.ListManagedNotificationChannelAssociationsRequest = {
        "managed_notification_configuration_arn": managed_notification_configuration_arn
    }
    if max_results is not None:
        input_["max_results"] = max_results
    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