Module Values.StartImportResponseSource

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. importId : UUID.t option;
    (*

    The ID of the import.

    *)
  2. destinations : ImportDestinations.t option;
    (*

    The ARN of the destination event data store.

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

    The source S3 bucket for the import.

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

    Used with EndEventTime to bound a StartImport request, and limit imported trail events to only those events logged within a specified time period.

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

    Used with StartEventTime to bound a StartImport request, and limit imported trail events to only those events logged within a specified time period.

    *)
  6. importStatus : ImportStatus.t option;
    (*

    Shows the status of the import after a StartImport request. An import finishes with a status of COMPLETED if there were no failures, or FAILED if there were failures.

    *)
  7. createdTimestamp : Date.t option;
    (*

    The timestamp for the import's creation.

    *)
  8. updatedTimestamp : Date.t option;
    (*

    The timestamp of the import's last update, if applicable.

    *)
}
Sourcetype nonrec error = [
  1. | `AccountHasOngoingImportException of AccountHasOngoingImportException.t
  2. | `EventDataStoreARNInvalidException of EventDataStoreARNInvalidException.t
  3. | `EventDataStoreNotFoundException of EventDataStoreNotFoundException.t
  4. | `ImportNotFoundException of ImportNotFoundException.t
  5. | `InactiveEventDataStoreException of InactiveEventDataStoreException.t
  6. | `InsufficientEncryptionPolicyException of InsufficientEncryptionPolicyException.t
  7. | `InvalidEventDataStoreCategoryException of InvalidEventDataStoreCategoryException.t
  8. | `InvalidEventDataStoreStatusException of InvalidEventDataStoreStatusException.t
  9. | `InvalidImportSourceException of InvalidImportSourceException.t
  10. | `InvalidParameterException of InvalidParameterException.t
  11. | `OperationNotPermittedException of OperationNotPermittedException.t
  12. | `UnsupportedOperationException of UnsupportedOperationException.t
  13. | `Unknown_operation_error of string * string option
]
Sourceval make : ?importId:??? -> ?destinations:??? -> ?importSource:??? -> ?startEventTime:??? -> ?endEventTime:??? -> ?importStatus:??? -> ?createdTimestamp:??? -> ?updatedTimestamp:??? -> unit -> t
Sourceval error_of_json : string -> Yojson.Safe.t -> [> `AccountHasOngoingImportException of unit | `EventDataStoreARNInvalidException of unit | `EventDataStoreNotFoundException of unit | `ImportNotFoundException of unit | `InactiveEventDataStoreException of unit | `InsufficientEncryptionPolicyException of unit | `InvalidEventDataStoreCategoryException of unit | `InvalidEventDataStoreStatusException of unit | `InvalidImportSourceException of unit | `InvalidParameterException of unit | `OperationNotPermittedException of unit | `Unknown_operation_error of string * string option | `UnsupportedOperationException of unit ]
Sourceval error_of_xml : string -> Awso.Xml.t -> [> `AccountHasOngoingImportException of unit | `EventDataStoreARNInvalidException of unit | `EventDataStoreNotFoundException of unit | `ImportNotFoundException of unit | `InactiveEventDataStoreException of unit | `InsufficientEncryptionPolicyException of unit | `InvalidEventDataStoreCategoryException of unit | `InvalidEventDataStoreStatusException of unit | `InvalidImportSourceException of unit | `InvalidParameterException of unit | `OperationNotPermittedException of unit | `Unknown_operation_error of string * string option | `UnsupportedOperationException of unit ]
Sourceval error_to_json : error -> Yojson.Safe.t
Sourceval to_value : t -> [> `Structure of (string * [> `Enum 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