gamelift:ListGameServers

List

gamelift:ListGameServers is a List access-level action in the gamelift service. Grants permission to retrieve all game servers that are currently running in a game server group

Resource types

ARNs that gamelift:ListGameServers can be scoped to in an IAM policy.

arn:${Partition}:gamelift:${Region}:${Account}:gameservergroup/${GameServerGroupName}
gameServerGroup

Condition keys

Keys you can use in the Condition block of a policy that grants gamelift:ListGameServers.

aws:ResourceTag/${TagKey} String

Filters access by the tags associated with the resource

Example IAM policy

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

{
  "Version": "2012-10-17",
  "Statement": [
    {
      "Sid": "AllowGameliftListGameServers",
      "Effect": "Allow",
      "Action": "gamelift:ListGameServers",
      "Resource": "*"
    }
  ]
}

Related actions in gamelift

View all gamelift actions →