Skip to content

disassociate_managed_notification_account_contact

disassociate_managed_notification_account_contact(
    contact_identifier: AccountContactType,
    managed_notification_configuration_arn: ManagedNotificationConfigurationOsArn,
    *,
    config_overrides: Optional[NotificationsClientConfig] = None,
) -> DisassociateManagedNotificationAccountContactResponse

Disassociates an Account Contact with a particular ManagedNotificationConfiguration.

Parameters:

  • contact_identifier (AccountContactType) –

    The unique value of an Account Contact Type to associate with the ManagedNotificationConfiguration.

  • managed_notification_configuration_arn (ManagedNotificationConfigurationOsArn) –

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

Raises:

Source code in docs_src/capo_notifications/_services/notifications.py
def disassociate_managed_notification_account_contact(
    self,
    contact_identifier: "capo_notifications.types.account_contact_type.AccountContactType",
    managed_notification_configuration_arn: "capo_notifications.types.managed_notification_configuration_os_arn.ManagedNotificationConfigurationOsArn",
    *,
    config_overrides: Optional[NotificationsClientConfig] = None,
) -> "capo_notifications.types.disassociate_managed_notification_account_contact_response.DisassociateManagedNotificationAccountContactResponse":
    """<p>Disassociates an Account Contact with a particular <code>ManagedNotificationConfiguration</code>.</p>

    Args:
        contact_identifier: <p>The unique value of an Account Contact Type to associate with the <code>ManagedNotificationConfiguration</code>.</p>
        managed_notification_configuration_arn: <p>The Amazon Resource Name (ARN) of the <code>ManagedNotificationConfiguration</code> to associate with the Account Contact.</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.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.disassociate_managed_notification_account_contact_request.DisassociateManagedNotificationAccountContactRequest]",
    ) -> OperationResponse[
        "capo_notifications.types.disassociate_managed_notification_account_contact_response.DisassociateManagedNotificationAccountContactResponse"
    ]:
        import capo_notifications._operations.notifications.disassociate_managed_notification_account_contact

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

    interceptors_, options_ = self.operation_options(
        config_overrides,
        OperationLogging("DisassociateManagedNotificationAccountContact"),
    )
    input_: capo_notifications.types.disassociate_managed_notification_account_contact_request.DisassociateManagedNotificationAccountContactRequest = {
        "contact_identifier": contact_identifier,
        "managed_notification_configuration_arn": managed_notification_configuration_arn,
    }

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