Skip to content

describe_partner_event_source

describe_partner_event_source(
    name: EventSourceName,
    *,
    config_overrides: Optional[CloudWatchEventsClientConfig] = None,
) -> DescribePartnerEventSourceResponse

An SaaS partner can use this operation to list details about a partner event source that they have created. Amazon Web Services customers do not use this operation. Instead, Amazon Web Services customers can use DescribeEventSource to see details about a partner event source that is shared with them.

Parameters:

Raises:

Source code in docs_src/capo_cloudwatch_events/_services/cloud_watch_events.py
def describe_partner_event_source(
    self,
    name: "capo_cloudwatch_events.types.event_source_name.EventSourceName",
    *,
    config_overrides: Optional[CloudWatchEventsClientConfig] = None,
) -> "capo_cloudwatch_events.types.describe_partner_event_source_response.DescribePartnerEventSourceResponse":
    """<p>An SaaS partner can use this operation to list details about a partner event source that they have created. Amazon Web Services customers do not use this operation. Instead, Amazon Web Services customers can use <a href="https://docs.aws.amazon.com/eventbridge/latest/APIReference/API_DescribeEventSource.html">DescribeEventSource</a> to see details about a partner event source that is shared with them.</p>

    Args:
        name: <p>The name of the event source to display.</p>

    Raises:
        capo_cloudwatch_events.errors.internal_exception.InternalException: <p>This exception occurs due to unexpected causes.</p>
        capo_cloudwatch_events.errors.operation_disabled_exception.OperationDisabledException: <p>The operation you are attempting is not available in this region.</p>
        capo_cloudwatch_events.errors.resource_not_found_exception.ResourceNotFoundException: <p>An entity that you specified does not exist.</p>
        capo_cloudwatch_events.errors.UnknownServiceError: The service returned an error code this client does not model.
    """

    def _handler(
        req: "OperationRequest[capo_cloudwatch_events.types.describe_partner_event_source_request.DescribePartnerEventSourceRequest]",
    ) -> OperationResponse[
        "capo_cloudwatch_events.types.describe_partner_event_source_response.DescribePartnerEventSourceResponse"
    ]:
        import capo_cloudwatch_events._operations.aws_events.describe_partner_event_source

        output, http_response = (
            capo_cloudwatch_events._operations.aws_events.describe_partner_event_source.describe_partner_event_source(
                req.options, req.input
            )
        )
        return OperationResponse(output=output, response=http_response)

    interceptors_, options_ = self.operation_options(
        config_overrides, OperationLogging("DescribePartnerEventSource")
    )
    input_: capo_cloudwatch_events.types.describe_partner_event_source_request.DescribePartnerEventSourceRequest = {
        "name": name
    }

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