es:GetDirectQueryDataSource

Read

es:GetDirectQueryDataSource is a Read access-level action in the es service. Grants permission to get the data source for the provided OpenSearch arns

Resource types

ARNs that es:GetDirectQueryDataSource can be scoped to in an IAM policy.

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

Condition keys

Keys you can use in the Condition block of a policy that grants es:GetDirectQueryDataSource.

aws:ResourceTag/${TagKey} String

Filters access based on the tags associated with the resource

Example IAM policy

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

{
  "Version": "2012-10-17",
  "Statement": [
    {
      "Sid": "AllowEsGetDirectQueryDataSource",
      "Effect": "Allow",
      "Action": "es:GetDirectQueryDataSource",
      "Resource": "*"
    }
  ]
}

Related actions in es

View all es actions →