gamelift:TagResource

Tagging

gamelift:TagResource is a Tagging access-level action in the gamelift service. Grants permission to tag GameLift resources

Resource types

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

arn:${Partition}:gamelift:${Region}::alias/${AliasId}
alias
arn:${Partition}:gamelift:${Region}:${Account}:build/${BuildId}
build
arn:${Partition}:gamelift:${Region}:${Account}:containerfleet/${FleetId}
containerFleet
arn:${Partition}:gamelift:${Region}:${Account}:containergroupdefinition/${Name}
containerGroupDefinition
arn:${Partition}:gamelift:${Region}:${Account}:fleet/${FleetId}
fleet
arn:${Partition}:gamelift:${Region}:${Account}:gameservergroup/${GameServerGroupName}
gameServerGroup
arn:${Partition}:gamelift:${Region}:${Account}:gamesessionqueue/${GameSessionQueueName}
gameSessionQueue
arn:${Partition}:gamelift:${Region}:${Account}:location/${LocationId}
location
arn:${Partition}:gamelift:${Region}:${Account}:matchmakingconfiguration/${MatchmakingConfigurationName}
matchmakingConfiguration
arn:${Partition}:gamelift:${Region}:${Account}:matchmakingruleset/${MatchmakingRuleSetName}
matchmakingRuleSet
arn:${Partition}:gamelift:${Region}:${Account}:script/${ScriptId}
script

Condition keys

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

aws:ResourceTag/${TagKey} String

Filters access by the tags associated with the resource

Example IAM policy

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

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

Related actions in gamelift

View all gamelift actions →