Skip to main content

imports

Creates, updates, deletes, gets or lists an imports resource.

Overview

Nameimports
TypeResource
Idaws.cloudtrail.imports

Fields

The following fields are returned by SELECT queries:

NameDatatypeDescription
created_timestampstring (date-time)The timestamp of the import's creation.
destinationsarrayThe ARN of the destination event data store.
end_event_timestring (date-time)Used with StartEventTime to bound a StartImport request, and limit imported trail events to only those events logged within a specified time period.
import_idstringThe ID of the import. (pattern: <code>^[a-f0-9-]+$</code>)
import_sourceobjectThe source S3 bucket.
import_statisticsobjectProvides statistics for the import. CloudTrail does not update import statistics in real-time. Returned values for parameters such as EventsCompleted may be lower than the actual value, because CloudTrail updates statistics incrementally over the course of the import.
import_statusstringThe status of the import. (INITIALIZING, IN_PROGRESS, FAILED, STOPPED, COMPLETED)
start_event_timestring (date-time)Used with EndEventTime to bound a StartImport request, and limit imported trail events to only those events logged within a specified time period.
updated_timestampstring (date-time)The timestamp of when the import was updated.

Methods

The following methods are available for this resource:

NameAccessible byRequired ParamsOptional ParamsDescription
get_importselectregionReturns information about a specific import.
list_importsselectregionReturns information on all imports, or a select set of imports by ImportStatus or Destination.

Parameters

Parameters can be passed in the WHERE clause of a query. Check the Methods section to see which parameters are required or optional for each operation.

NameDatatypeDescription
regionstringAWS region (default: us-east-1)

SELECT examples

Returns information about a specific import.

SELECT
created_timestamp,
destinations,
end_event_time,
import_id,
import_source,
import_statistics,
import_status,
start_event_time,
updated_timestamp
FROM aws.cloudtrail.imports
WHERE region = '{{ region }}' -- required
;