Skip to content

describe_event_source async

describe_event_source(
    name: EventSourceName,
    *,
    config_overrides: Optional[AsyncCloudWatchEventsClientConfig] = None,
) -> DescribeEventSourceResponse

This operation lists details about a partner event source that is shared with your account.

Parameters:

  • name (EventSourceName) –

    The name of the partner event source to display the details of.

Raises:

Source code in docs_src/capo_cloudwatch_events/_services/async_cloud_watch_events.py
async def describe_event_source(
    self,
    name: "capo_cloudwatch_events.types.event_source_name.EventSourceName",
    *,
    config_overrides: Optional[AsyncCloudWatchEventsClientConfig] = None,
) -> "capo_cloudwatch_events.types.describe_event_source_response.DescribeEventSourceResponse":
    """<p>This operation lists details about a partner event source that is shared with your account.</p>

    Args:
        name: <p>The name of the partner event source to display the details of.</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.
    """

    async def _handler(
        req: "AsyncOperationRequest[capo_cloudwatch_events.types.describe_event_source_request.DescribeEventSourceRequest]",
    ) -> AsyncOperationResponse[
        "capo_cloudwatch_events.types.describe_event_source_response.DescribeEventSourceResponse"
    ]:
        import capo_cloudwatch_events._operations.aws_events.describe_event_source

        (
            output,
            http_response,
        ) = await capo_cloudwatch_events._operations.aws_events.describe_event_source.async_describe_event_source(
            req.options, req.input
        )
        return AsyncOperationResponse(output=output, response=http_response)

    interceptors_, options_ = self.operation_options(
        config_overrides, OperationLogging("DescribeEventSource")
    )
    input_: capo_cloudwatch_events.types.describe_event_source_request.DescribeEventSourceRequest = {
        "name": name
    }

    response = await aexecute_pipeline(
        AsyncOperationRequest(input=input_, options=options_),
        handler=_handler,
        interceptors=list(interceptors_),
    )
    await response.response.aclose()
    return response.output