Skip to content

Describe Index Policies

cloudwatchlogs_describe_index_policies R Documentation

Returns the field index policies of one or more log groups

Description

Returns the field index policies of one or more log groups. For more information about field index policies, see put_index_policy.

If a specified log group has a log-group level index policy, that policy is returned by this operation.

If a specified log group doesn't have a log-group level index policy, but an account-wide index policy applies to it, that account-wide policy is returned by this operation.

To find information about only account-level policies, use describe_account_policies instead.

Usage

cloudwatchlogs_describe_index_policies(logGroupIdentifiers, nextToken)

Arguments

logGroupIdentifiers

[required] An array containing the name or ARN of the log group that you want to retrieve field index policies for.

nextToken

Value

A list with the following syntax:

list(
  indexPolicies = list(
    list(
      logGroupIdentifier = "string",
      lastUpdateTime = 123,
      policyDocument = "string",
      policyName = "string",
      source = "ACCOUNT"|"LOG_GROUP"
    )
  ),
  nextToken = "string"
)

Request syntax

svc$describe_index_policies(
  logGroupIdentifiers = list(
    "string"
  ),
  nextToken = "string"
)