Skip to content

CloudWatchLogsClient.describe_import_task_batches

rboto-cloudwatch-logs==0.4.0 · Service index · Types

Model summary (excerpt): Gets detailed information about the individual batches within an import task, including their status and any error messages. For CloudTrail Event Data Store sources, a batch refers to a subset of stored events grouped by their eventTime.

Install and imports

python -m pip install "rboto[cloudwatch-logs]==0.4.0"
from rboto import CloudWatchLogsClient
from collections.abc import Sequence
from rboto_cloudwatch_logs.types import (
    DescribeImportTaskBatchesOutput,
    ImportStatus,
)

Signature

async def describe_import_task_batches(
    *,
    import_id: str,
    batch_import_status: Sequence[ImportStatus] | None = None,
    limit: int | None = None,
    next_token: str | None = None,
) -> DescribeImportTaskBatchesOutput: ...

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)
import_id Yes The ID of the import task to get batch information for.
batch_import_status No Optional filter to list import batches by their status. Accepts multiple status values: IN_PROGRESS, CANCELLED, COMPLETED and FAILED.
limit No The maximum number of import batches to return in the response. Default: 10
next_token No The pagination token for the next set of results.

Output

DescribeImportTaskBatchesOutput.

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_source_arn str | None Always present —
import_id str | None Always present —
import_batches list[ImportBatchOutput] | None Always present ImportBatchOutput
next_token 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.

DescribeImportTaskBatchesOutput, ImportStatus

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_cloudwatch_logs.exceptions:

AccessDeniedError, InvalidOperationError, InvalidParameterError, ResourceNotFoundError, ThrottlingError.

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

Service guide · Pinned model