Skip to content

CloudTrailClient.start_import

rboto-cloudtrail==0.4.0 · Service index · Types

Model summary (excerpt): CloudTrail Lake will no longer be open to new customers starting May 31, 2026. If you would like to use CloudTrail Lake, sign up prior to that date. Existing customers can continue to use the service as normal. For more information, see CloudTrail Lake availability change . Starts an import of logged trail events from a source S3 bucket to a destination event data store. By default, CloudTrail...

Install and imports

python -m pip install "rboto[cloudtrail]==0.4.0"
from rboto import CloudTrailClient
from collections.abc import Sequence
from rboto_cloudtrail.types import (
    ImportSource,
    StartImportOutput,
)

Signature

async def start_import(
    *,
    destinations: Sequence[str] | None = None,
    import_source: ImportSource | None = None,
    start_event_time: str | None = None,
    end_event_time: str | None = None,
    import_id: str | None = None,
) -> StartImportOutput: ...

Arguments without defaults are required. None omits an optional request argument. Static types do not validate resource existence, permissions, lengths, ranges, or conditional service requirements.

Arguments

Argument Required Model notes (excerpt)
destinations No The ARN of the destination event data store. Use this parameter for a new import.
import_source No The source S3 bucket for the import. Use this parameter for a new import.
start_event_time No 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.
end_event_time No 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.
import_id No The ID of the import. Use this parameter when you are retrying an import.

Output

StartImportOutput.

Read-only native attributes, accessed as response.field. Collection getters materialize Python values; to_dict() recursively materializes a mapping. Streams are consumed once.

Field Type Presence References
import_id str | None Always present —
destinations list[str] | None Always present —
import_source ImportSourceOutput | None Always present ImportSourceOutput
start_event_time str | None Always present —
end_event_time str | None Always present —
import_status ImportStatusOutput | None Always present ImportStatusOutput
created_timestamp str | None Always present —
updated_timestamp str | None Always present —

| None means a value can be absent. Output mappings include every declared key; optional input keys may be omitted. Unknown output enum/union variants are not automatically valid inputs.

ImportSource, StartImportOutput

Follow these links for nested inputs and outputs; recursive types link back to the same type page.

Pagination and streaming

No generated paginator for this operation.

No output stream.

Errors

Import from rboto_cloudtrail.exceptions:

AccountHasOngoingImportError, EventDataStoreARNInvalidError, EventDataStoreNotFoundError, ImportNotFoundError, InactiveEventDataStoreError, InsufficientEncryptionPolicyError, InvalidEventDataStoreCategoryError, InvalidEventDataStoreStatusError, InvalidImportSourceError, InvalidParameterError, OperationNotPermittedError, UnsupportedOperationError.

Other service failures use the service base error; credential, transport and timeout failures use shared errors.

Service guide · Pinned model