Skip to content

associate_managed_notification_additional_channel

associate_managed_notification_additional_channel(
    channel_arn: ChannelArn,
    managed_notification_configuration_arn: ManagedNotificationConfigurationOsArn,
    *,
    config_overrides: Optional[NotificationsClientConfig] = None,
    is_sensitive_events_subscribed: Optional[bool] = None,
) -> AssociateManagedNotificationAdditionalChannelResponse

Associates an additional Channel with a particular ManagedNotificationConfiguration.

Supported Channels include Amazon Q Developer in chat applications, the Console Mobile Application, and emails (notifications-contacts).

Parameters:

  • channel_arn (ChannelArn) –

    The Amazon Resource Name (ARN) of the Channel to associate with the ManagedNotificationConfiguration.

    Supported ARNs include Amazon Q Developer in chat applications, the Console Mobile Application, and email (notifications-contacts).

  • managed_notification_configuration_arn (ManagedNotificationConfigurationOsArn) –

    The Amazon Resource Name (ARN) of the ManagedNotificationConfiguration to associate with the additional Channel.

  • is_sensitive_events_subscribed (Optional[bool], default: None ) –

    Specifies whether this channel is subscribed to sensitive events. The notifications:SubscribeSensitiveEvents permission controls access to sensitive events. Defaults to false.

Raises:

Source code in docs_src/capo_notifications/_services/notifications.py
def associate_managed_notification_additional_channel(
    self,
    channel_arn: "capo_notifications.types.channel_arn.ChannelArn",
    managed_notification_configuration_arn: "capo_notifications.types.managed_notification_configuration_os_arn.ManagedNotificationConfigurationOsArn",
    *,
    config_overrides: Optional[NotificationsClientConfig] = None,
    is_sensitive_events_subscribed: Optional[bool] = None,
) -> "capo_notifications.types.associate_managed_notification_additional_channel_response.AssociateManagedNotificationAdditionalChannelResponse":
    """<p>Associates an additional Channel with a particular <code>ManagedNotificationConfiguration</code>.</p> <p>Supported Channels include Amazon Q Developer in chat applications, the Console Mobile Application, and emails (notifications-contacts).</p>

    Args:
        channel_arn: <p>The Amazon Resource Name (ARN) of the Channel to associate with the <code>ManagedNotificationConfiguration</code>.</p> <p>Supported ARNs include Amazon Q Developer in chat applications, the Console Mobile Application, and email (notifications-contacts).</p>
        managed_notification_configuration_arn: <p>The Amazon Resource Name (ARN) of the <code>ManagedNotificationConfiguration</code> to associate with the additional Channel.</p>
        is_sensitive_events_subscribed: <p>Specifies whether this channel is subscribed to sensitive events. The <code>notifications:SubscribeSensitiveEvents</code> permission controls access to sensitive events. Defaults to false.</p>

    Raises:
        capo_notifications.errors.access_denied_exception.AccessDeniedException: <p>User does not have sufficient access to perform this action.</p>
        capo_notifications.errors.conflict_exception.ConflictException: <p>Updating or deleting a resource can cause an inconsistent state.</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.service_quota_exceeded_exception.ServiceQuotaExceededException: <p>Request would cause a service quota to be exceeded.</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.associate_managed_notification_additional_channel_request.AssociateManagedNotificationAdditionalChannelRequest]",
    ) -> OperationResponse[
        "capo_notifications.types.associate_managed_notification_additional_channel_response.AssociateManagedNotificationAdditionalChannelResponse"
    ]:
        import capo_notifications._operations.notifications.associate_managed_notification_additional_channel

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

    interceptors_, options_ = self.operation_options(
        config_overrides,
        OperationLogging("AssociateManagedNotificationAdditionalChannel"),
    )
    input_: capo_notifications.types.associate_managed_notification_additional_channel_request.AssociateManagedNotificationAdditionalChannelRequest = {
        "channel_arn": channel_arn,
        "managed_notification_configuration_arn": managed_notification_configuration_arn,
    }
    if is_sensitive_events_subscribed is not None:
        input_["is_sensitive_events_subscribed"] = is_sensitive_events_subscribed

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