Skip to content

update_event_action

update_event_action(
    event_action_id: __string,
    *,
    config_overrides: Optional[DataExchangeClientConfig] = None,
    action: Optional[Action] = None,
) -> UpdateEventActionResponse

This operation updates the event action.

Parameters:

  • action (Optional[Action], default: None ) –

    What occurs after a certain event.

  • event_action_id (__string) –

    The unique identifier for the event action.

Raises:

Source code in docs_src/capo_dataexchange/_services/data_exchange.py
def update_event_action(
    self,
    event_action_id: "capo_dataexchange.types.__string.__string",
    *,
    config_overrides: Optional[DataExchangeClientConfig] = None,
    action: Optional["capo_dataexchange.types.action.Action"] = None,
) -> (
    "capo_dataexchange.types.update_event_action_response.UpdateEventActionResponse"
):
    """<p>This operation updates the event action.</p>

    Args:
        action: <p>What occurs after a certain event.</p>
        event_action_id: <p>The unique identifier for the event action.</p>

    Raises:
        capo_dataexchange.errors.access_denied_exception.AccessDeniedException: <p>Access to the resource is denied.</p>
        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.
    """

    def _handler(
        req: "OperationRequest[capo_dataexchange.types.update_event_action_request.UpdateEventActionRequest]",
    ) -> OperationResponse[
        "capo_dataexchange.types.update_event_action_response.UpdateEventActionResponse"
    ]:
        import capo_dataexchange._operations.data_exchange.update_event_action

        output, http_response = (
            capo_dataexchange._operations.data_exchange.update_event_action.update_event_action(
                req.options, req.input
            )
        )
        return OperationResponse(output=output, response=http_response)

    interceptors_, options_ = self.operation_options(
        config_overrides, OperationLogging("UpdateEventAction")
    )
    input_: capo_dataexchange.types.update_event_action_request.UpdateEventActionRequest = {
        "event_action_id": event_action_id
    }
    if action is not None:
        input_["action"] = action

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