Module Values.StartImportRequestSource

Starts an import of logged trail events from a source S3 bucket to a destination event data store. By default, CloudTrail only imports events contained in the S3 bucket's CloudTrail prefix and the prefixes inside the CloudTrail prefix, and does not check prefixes for other Amazon Web Services services. If you want to import CloudTrail events contained in another prefix, you must include the prefix in the S3LocationUri. For more considerations about importing trail events, see Considerations for copying trail events in the CloudTrail User Guide. When you start a new import, the Destinations and ImportSource parameters are required. Before starting a new import, disable any access control lists (ACLs) attached to the source S3 bucket. For more information about disabling ACLs, see Controlling ownership of objects and disabling ACLs for your bucket. When you retry an import, the ImportID parameter is required. If the destination event data store is for an organization, you must use the management account to import trail events. You cannot use the delegated administrator account for the organization.

Sourcetype nonrec t = {
  1. destinations : ImportDestinations.t option;
    (*

    The ARN of the destination event data store. Use this parameter for a new import.

    *)
  2. importSource : ImportSource.t option;
    (*

    The source S3 bucket for the import. Use this parameter for a new import.

    *)
  3. startEventTime : Date.t option;
    (*

    Use with EndEventTime to bound a StartImport request, and limit imported trail events to only those events logged within a specified time period. When you specify a time range, CloudTrail checks the prefix and log file names to verify the names contain a date between the specified StartEventTime and EndEventTime before attempting to import events.

    *)
  4. endEventTime : Date.t option;
    (*

    Use with StartEventTime to bound a StartImport request, and limit imported trail events to only those events logged within a specified time period. When you specify a time range, CloudTrail checks the prefix and log file names to verify the names contain a date between the specified StartEventTime and EndEventTime before attempting to import events.

    *)
  5. importId : UUID.t option;
    (*

    The ID of the import. Use this parameter when you are retrying an import.

    *)
}
Sourceval make : ?destinations:??? -> ?importSource:??? -> ?startEventTime:??? -> ?endEventTime:??? -> ?importId:??? -> unit -> t
Sourceval to_value : t -> [> `Structure of (string * [> `List of [> `String of EventDataStoreArn.t ] list | `String of UUID.t | `Structure of (string * [> `Structure of (string * [> `String of String_.t ]) list ]) list | `Timestamp of Date.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