CloudWatchLogsClient.describe_import_tasks
rboto-cloudwatch-logs==0.4.0 · Service index · Types
Model summary (excerpt): Lists and describes import tasks, with optional filtering by import status and source ARN.
Install and imports
from rboto import CloudWatchLogsClient
from rboto_cloudwatch_logs.types import (
DescribeImportTasksOutput,
ImportStatus,
)
Signature
async def describe_import_tasks(
*,
import_id: str | None = None,
import_status: ImportStatus | None = None,
import_source_arn: str | None = None,
limit: int | None = None,
next_token: str | None = None,
) -> DescribeImportTasksOutput: ...
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 |
No | Optional filter to describe a specific import task by its ID. |
import_status |
No | Optional filter to list imports by their status. Valid values are IN_PROGRESS, CANCELLED, COMPLETED and FAILED. |
import_source_arn |
No | Optional filter to list imports from a specific source |
limit |
No | The maximum number of import tasks to return in the response. Default: 50 |
next_token |
No | The pagination token for the next set of results. |
Output
DescribeImportTasksOutput.
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 |
|---|---|---|---|
imports |
list[ImportOutput] | None |
Always present | ImportOutput |
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.
Related types
DescribeImportTasksOutput, 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.