Copyright | (c) 2013-2023 Brendan Hay |
---|---|
License | Mozilla Public License, v. 2.0. |
Maintainer | Brendan Hay |
Stability | auto-generated |
Portability | non-portable (GHC extensions) |
Safe Haskell | Safe-Inferred |
Language | Haskell2010 |
Assigns a tag to a GameLift resource. Amazon Web Services resource tags provide an additional management tool set. You can use tags to organize resources, create IAM permissions policies to manage access to groups of resources, customize Amazon Web Services cost breakdowns, etc. This operation handles the permissions necessary to manage tags for the following GameLift resource types:
- Build
- Script
- Fleet
- Alias
- GameSessionQueue
- MatchmakingConfiguration
- MatchmakingRuleSet
To add a tag to a resource, specify the unique ARN value for the resource and provide a tag list containing one or more tags. The operation succeeds even if the list includes tags that are already assigned to the specified resource.
Learn more
Tagging Amazon Web Services Resources in the Amazon Web Services General Reference
Amazon Web Services Tagging Strategies
Related actions
Synopsis
- data TagResource = TagResource' {
- resourceARN :: Text
- tags :: [Tag]
- newTagResource :: Text -> TagResource
- tagResource_resourceARN :: Lens' TagResource Text
- tagResource_tags :: Lens' TagResource [Tag]
- data TagResourceResponse = TagResourceResponse' {
- httpStatus :: Int
- newTagResourceResponse :: Int -> TagResourceResponse
- tagResourceResponse_httpStatus :: Lens' TagResourceResponse Int
Creating a Request
data TagResource Source #
See: newTagResource
smart constructor.
TagResource' | |
|
Instances
Create a value of TagResource
with all optional fields omitted.
Use generic-lens or optics to modify other optional fields.
The following record fields are available, with the corresponding lenses provided for backwards compatibility:
$sel:resourceARN:TagResource'
, tagResource_resourceARN
- The Amazon Resource Name
(ARN)
that is assigned to and uniquely identifies the GameLift resource that
you want to assign tags to. GameLift resource ARNs are included in the
data object for the resource, which can be retrieved by calling a List
or Describe operation for the resource type.
$sel:tags:TagResource'
, tagResource_tags
- A list of one or more tags to assign to the specified GameLift resource.
Tags are developer-defined and structured as key-value pairs. The
maximum tag limit may be lower than stated. See
Tagging Amazon Web Services Resources
for actual tagging limits.
Request Lenses
tagResource_resourceARN :: Lens' TagResource Text Source #
The Amazon Resource Name (ARN) that is assigned to and uniquely identifies the GameLift resource that you want to assign tags to. GameLift resource ARNs are included in the data object for the resource, which can be retrieved by calling a List or Describe operation for the resource type.
tagResource_tags :: Lens' TagResource [Tag] Source #
A list of one or more tags to assign to the specified GameLift resource. Tags are developer-defined and structured as key-value pairs. The maximum tag limit may be lower than stated. See Tagging Amazon Web Services Resources for actual tagging limits.
Destructuring the Response
data TagResourceResponse Source #
See: newTagResourceResponse
smart constructor.
TagResourceResponse' | |
|
Instances
newTagResourceResponse Source #
Create a value of TagResourceResponse
with all optional fields omitted.
Use generic-lens or optics to modify other optional fields.
The following record fields are available, with the corresponding lenses provided for backwards compatibility:
$sel:httpStatus:TagResourceResponse'
, tagResourceResponse_httpStatus
- The response's http status code.
Response Lenses
tagResourceResponse_httpStatus :: Lens' TagResourceResponse Int Source #
The response's http status code.