CloudWatchLogsClient.create_import_task
rboto-cloudwatch-logs==0.4.0 · Service index · Types
Model summary (excerpt): Starts an import from a data source to CloudWatch Log and creates a managed log group as the destination for the imported data. Currently, CloudTrail Event Data Store is the only supported data source. The import task must satisfy the following constraints: The specified source must be in an ACTIVE state. The API caller must have permissions to access the data in the provided source and to...
Install and imports
from rboto import CloudWatchLogsClient
from rboto_cloudwatch_logs.types import (
CreateImportTaskOutput,
ImportFilter,
)
Signature
async def create_import_task(
*,
import_source_arn: str,
import_role_arn: str,
import_filter: ImportFilter | None = None,
) -> CreateImportTaskOutput: ...
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_source_arn |
Yes | The ARN of the source to import from. |
import_role_arn |
Yes | The ARN of the IAM role that grants CloudWatch Logs permission to import from the CloudTrail Lake Event Data Store. |
import_filter |
No | Optional filters to constrain the import by CloudTrail event time. Times are specified in Unix timestamp milliseconds. The range of data being imported must be within the specified source's retention period. |
Output
CreateImportTaskOutput.
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 | — |
import_destination_arn |
str | None |
Always present | — |
creation_time |
int | 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
CreateImportTaskOutput, ImportFilter
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, ConflictError, InvalidOperationError, InvalidParameterError, ResourceNotFoundError, ThrottlingError, ValidationError.
Other service failures use the service base error; credential, transport and timeout failures use shared errors.