opensearch:GetDirectQuery

Read

opensearch:GetDirectQuery is a Read access-level action in the opensearch service. Grants permission to get the query status that are performed on the OpenSearch DataSource resource

Resource types

ARNs that opensearch:GetDirectQuery can be scoped to in an IAM policy.

arn:${Partition}:opensearch:${Region}:${Account}:datasource/${DataSourceName}
datasource

Condition keys

No condition keys are documented for this action.

Example IAM policy

A minimal policy that allows opensearch:GetDirectQuery. Replace "Resource": "*" with a specific ARN to follow least privilege.

{
  "Version": "2012-10-17",
  "Statement": [
    {
      "Sid": "AllowOpensearchGetDirectQuery",
      "Effect": "Allow",
      "Action": "opensearch:GetDirectQuery",
      "Resource": "*"
    }
  ]
}

Related actions in opensearch

View all opensearch actions →