Skip to content

delete_partner_event_source

delete_partner_event_source(
    name: EventSourceName,
    account: AccountId,
    *,
    config_overrides: Optional[EventBridgeClientConfig] = None,
) -> None

This operation is used by SaaS partners to delete a partner event source. This operation is not used by Amazon Web Services customers.

When you delete an event source, the status of the corresponding partner event bus in the Amazon Web Services customer account becomes DELETED.

Parameters:

  • name (EventSourceName) –

    The name of the event source to delete.

  • account (AccountId) –

    The Amazon Web Services account ID of the Amazon Web Services customer that the event source was created for.

Raises:

Source code in docs_src/capo_eventbridge/_services/event_bridge.py
def delete_partner_event_source(
    self,
    name: "capo_eventbridge.types.event_source_name.EventSourceName",
    account: "capo_eventbridge.types.account_id.AccountId",
    *,
    config_overrides: Optional[EventBridgeClientConfig] = None,
) -> None:
    """<p>This operation is used by SaaS partners to delete a partner event source. This operation is not used by Amazon Web Services customers.</p> <p>When you delete an event source, the status of the corresponding partner event bus in the Amazon Web Services customer account becomes DELETED.</p> <p></p>

    Args:
        name: <p>The name of the event source to delete.</p>
        account: <p>The Amazon Web Services account ID of the Amazon Web Services customer that the event source was created for.</p>

    Raises:
        capo_eventbridge.errors.concurrent_modification_exception.ConcurrentModificationException: <p>There is concurrent modification on a rule, target, archive, or replay.</p>
        capo_eventbridge.errors.internal_exception.InternalException: <p>This exception occurs due to unexpected causes.</p>
        capo_eventbridge.errors.operation_disabled_exception.OperationDisabledException: <p>The operation you are attempting is not available in this region.</p>
        capo_eventbridge.errors.UnknownServiceError: The service returned an error code this client does not model.
    """

    def _handler(
        req: "OperationRequest[capo_eventbridge.types.delete_partner_event_source_request.DeletePartnerEventSourceRequest]",
    ) -> OperationResponse[None]:
        import capo_eventbridge._operations.aws_events.delete_partner_event_source

        output, http_response = (
            capo_eventbridge._operations.aws_events.delete_partner_event_source.delete_partner_event_source(
                req.options, req.input
            )
        )
        return OperationResponse(output=output, response=http_response)

    interceptors_, options_ = self.operation_options(
        config_overrides, OperationLogging("DeletePartnerEventSource")
    )
    input_: capo_eventbridge.types.delete_partner_event_source_request.DeletePartnerEventSourceRequest = {
        "name": name,
        "account": account,
    }

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