Skip to content

CloudWatchLogsClient.describe_field_indexes

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

Model summary (excerpt): Returns a list of field indexes discovered in log data. By default, the response includes the DEFAULT , CUSTOM , and INACTIVE index categories. To return indexes from other categories, use the indexCategories parameter. For more information about field index policies, see PutIndexPolicy .

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 (
    DescribeFieldIndexesOutput,
    IndexCategory,
)

Signature

async def describe_field_indexes(
    *,
    log_group_identifiers: Sequence[str],
    index_categories: Sequence[IndexCategory] | None = None,
    next_token: str | None = None,
) -> DescribeFieldIndexesOutput: ...

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)
log_group_identifiers Yes An array containing the names or ARNs of the log groups that you want to retrieve field indexes for.
index_categories No The index categories to return. The following values are supported: DEFAULT : Fields that CloudWatch Logs indexes by default. Examples include @logStream and @data_format . CUSTOM : Fields that you added manually to the field index policy. CloudWatch Logs always indexes these fields. These fields count toward the quota of 20 fields for each log group. AUTO : Fields that CloudWatch Logs indexes...
next_token No

Output

DescribeFieldIndexesOutput.

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
field_indexes list[FieldIndexOutput] | None Always present FieldIndexOutput
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.

DescribeFieldIndexesOutput, IndexCategory

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:

InvalidParameterError, LimitExceededError, OperationAbortedError, ResourceNotFoundError, ServiceUnavailableError.

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

Service guide · Pinned model