Skip to content

list_event_actions async

list_event_actions(
    *,
    config_overrides: Optional[AsyncDataExchangeClientConfig] = None,
    event_source_id: Optional[__string] = None,
    max_results: Optional[MaxResults] = None,
    next_token: Optional[__string] = None,
) -> ListEventActionsResponse

This operation lists your event actions.

Parameters:

  • event_source_id (Optional[__string], default: None ) –

    The unique identifier for the event source.

  • max_results (Optional[MaxResults], default: None ) –

    The maximum number of results returned by a single call.

  • next_token (Optional[__string], default: None ) –

    The token value retrieved from a previous call to access the next page of results.

Raises:

Source code in docs_src/capo_dataexchange/_services/async_data_exchange.py
async def list_event_actions(
    self,
    *,
    config_overrides: Optional[AsyncDataExchangeClientConfig] = None,
    event_source_id: Optional["capo_dataexchange.types.__string.__string"] = None,
    max_results: Optional["capo_dataexchange.types.max_results.MaxResults"] = None,
    next_token: Optional["capo_dataexchange.types.__string.__string"] = None,
) -> "capo_dataexchange.types.list_event_actions_response.ListEventActionsResponse":
    """<p>This operation lists your event actions.</p>

    Args:
        event_source_id: <p>The unique identifier for the event source.</p>
        max_results: <p>The maximum number of results returned by a single call.</p>
        next_token: <p>The token value retrieved from a previous call to access the next page of results.</p>

    Raises:
        capo_dataexchange.errors.internal_server_exception.InternalServerException: <p>An exception occurred with the service.</p>
        capo_dataexchange.errors.resource_not_found_exception.ResourceNotFoundException: <p>The resource couldn't be found.</p>
        capo_dataexchange.errors.throttling_exception.ThrottlingException: <p>The limit on the number of requests per second was exceeded.</p>
        capo_dataexchange.errors.validation_exception.ValidationException: <p>The request was invalid.</p>
        capo_dataexchange.errors.UnknownServiceError: The service returned an error code this client does not model.
    """

    async def _handler(
        req: "AsyncOperationRequest[capo_dataexchange.types.list_event_actions_request.ListEventActionsRequest]",
    ) -> AsyncOperationResponse[
        "capo_dataexchange.types.list_event_actions_response.ListEventActionsResponse"
    ]:
        import capo_dataexchange._operations.data_exchange.list_event_actions

        (
            output,
            http_response,
        ) = await capo_dataexchange._operations.data_exchange.list_event_actions.async_list_event_actions(
            req.options, req.input
        )
        return AsyncOperationResponse(output=output, response=http_response)

    interceptors_, options_ = self.operation_options(
        config_overrides, OperationLogging("ListEventActions")
    )
    input_: capo_dataexchange.types.list_event_actions_request.ListEventActionsRequest = {}
    if event_source_id is not None:
        input_["event_source_id"] = event_source_id
    if max_results is not None:
        input_["max_results"] = max_results
    if next_token is not None:
        input_["next_token"] = next_token

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