sqlworkbench:GetSavedQuery

Read

sqlworkbench:GetSavedQuery is a Read access-level action in the sqlworkbench service. Grants permission to get saved query on your account

Resource types

ARNs that sqlworkbench:GetSavedQuery can be scoped to in an IAM policy.

arn:${Partition}:sqlworkbench:${Region}:${Account}:query/${ResourceId}
query

Condition keys

Keys you can use in the Condition block of a policy that grants sqlworkbench:GetSavedQuery.

aws:ResourceTag/${TagKey} String

Filters access by the tags that are associated with the resource

Example IAM policy

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

{
  "Version": "2012-10-17",
  "Statement": [
    {
      "Sid": "AllowSqlworkbenchGetSavedQuery",
      "Effect": "Allow",
      "Action": "sqlworkbench:GetSavedQuery",
      "Resource": "*"
    }
  ]
}

Related actions in sqlworkbench

View all sqlworkbench actions →