Skip to content

stop_import

Operation

stop_import

stop_import(request: StopImportInput | StopImportInputDict | None = None, /, *, plugins: list[Plugin] | None = None, **kwargs: Unpack[StopImportInputDict]) -> StopImportOutput
Warning

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.

Stops a specified import.

Parameters:

Name Type Description Default
request StopImportInput | StopImportInputDict | None

The input as a model or dictionary. Pass this or keyword arguments, not both.

None
plugins list[Plugin] | None

A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the operation execution and will not affect any other operation invocations.

None
**kwargs Unpack[StopImportInputDict]

The input fields as keyword arguments.

{}

Returns:

Type Description
StopImportOutput

An instance of StopImportOutput.

stop_import async

stop_import(request: StopImportInput | StopImportInputDict | None = None, /, *, plugins: list[Plugin] | None = None, **kwargs: Unpack[StopImportInputDict]) -> StopImportOutput
Warning

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.

Stops a specified import.

Parameters:

Name Type Description Default
request StopImportInput | StopImportInputDict | None

The input as a model or dictionary. Pass this or keyword arguments, not both.

None
plugins list[Plugin] | None

A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the operation execution and will not affect any other operation invocations.

None
**kwargs Unpack[StopImportInputDict]

The input fields as keyword arguments.

{}

Returns:

Type Description
StopImportOutput

An instance of StopImportOutput.

Input

Pass the input as keyword arguments, a positional dictionary, or a positional model object. Pass plugins separately as a keyword argument.

StopImportInputDict

Bases: TypedDict

Dictionary form of StopImportInput.

Attributes

import_id instance-attribute
import_id: Required[str]

The ID of the import.

StopImportInput dataclass

Bases: _SerdeShape

Dataclass for StopImportInput structure.

Attributes

import_id class-attribute instance-attribute
import_id: str | None = ...

The ID of the import.

Output

StopImportOutput dataclass

Bases: _SerdeShape

Dataclass for StopImportOutput structure.

Attributes

created_timestamp class-attribute instance-attribute
created_timestamp: datetime | None = ...

The timestamp of the import's creation.

destinations class-attribute instance-attribute
destinations: list[str] | None = ...

The ARN of the destination event data store.

end_event_time class-attribute instance-attribute
end_event_time: datetime | None = ...

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

import_id class-attribute instance-attribute
import_id: str | None = ...

The ID for the import.

import_source class-attribute instance-attribute
import_source: ImportSource | None = ...

The source S3 bucket for the import.

import_statistics class-attribute instance-attribute
import_statistics: ImportStatistics | None = ...

Returns information on the stopped import.

import_status class-attribute instance-attribute
import_status: str | None = ...

The status of the import.

response_metadata class-attribute instance-attribute
response_metadata: ResponseMetadata = ...

Metadata about the response that produced this output. Use this to recover the request identifiers a service's support team needs in order to investigate a call. Members of the metadata are individually optional.

start_event_time class-attribute instance-attribute
start_event_time: datetime | None = ...

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

updated_timestamp class-attribute instance-attribute
updated_timestamp: datetime | None = ...

The timestamp of the import's last update.