Module Values.PutEventsResultEntrySource

Represents the results of an event submitted to an event bus. If the submission was successful, the entry has the event ID in it. Otherwise, you can use the error code and error message to identify the problem with the entry. For information about the errors that are common to all actions, see Common Errors.

Sourcetype nonrec t = {
  1. eventId : EventId.t option;
    (*

    The ID of the event.

    *)
  2. errorCode : ErrorCode.t option;
    (*

    The error code that indicates why the event submission failed. Retryable errors include: InternalFailure The request processing has failed because of an unknown error, exception or failure. ThrottlingException The request was denied due to request throttling. Non-retryable errors include: AccessDeniedException You do not have sufficient access to perform this action. InvalidAccountIdException The account ID provided is not valid. InvalidArgument A specified parameter is not valid. MalformedDetail The JSON provided is not valid. RedactionFailure Redacting the CloudTrail event failed. NotAuthorizedForSourceException You do not have permissions to publish events with this source onto this event bus. NotAuthorizedForDetailTypeException You do not have permissions to publish events with this detail type onto this event bus.

    *)
  3. errorMessage : ErrorMessage.t option;
    (*

    The error message that explains why the event submission failed.

    *)
}
Sourceval make : ?eventId:??? -> ?errorCode:??? -> ?errorMessage:??? -> unit -> t
Sourceval to_value : t -> [> `Structure of (string * [> `String of EventId.t ]) list ]
Sourceval to_query : t -> Awso.Client.Query.t
Sourceval of_xml : Awso.Xml.t -> t
Sourceval of_string : string -> t
Sourceval of_json : Yojson.Safe.t -> t
Sourceval to_json : t -> Yojson.Safe.t