# `ExAws.Location.Tags`

API calls for Amazon Location Service resource tagging.

Tags on Amazon Location resources (geofence collections, trackers, API keys, ...).

Every function returns an operation struct to be passed to `ExAws.request/2`.

## Operations

* `list_tags_for_resource` - ListTagsForResource
* `tag_resource` - TagResource
* `untag_resource` - UntagResource

See https://docs.aws.amazon.com/location/previous/APIReference/API_Operations.html

# `list_tags_for_resource`

```elixir
@spec list_tags_for_resource(String.t()) :: ExAws.Operation.RestQuery.t()
```

Returns a list of tags that are applied to the specified Amazon Location resource.

## Parameters

* `resource_arn` - The Amazon Resource Name (ARN) of the resource whose tags you want to
  retrieve.

See https://docs.aws.amazon.com/location/previous/APIReference/API_ListTagsForResource.html

# `tag_resource`

```elixir
@spec tag_resource(String.t(), %{optional(String.t()) =&gt; String.t()}) ::
  ExAws.Operation.JSON.t()
```

Assigns one or more tags (key-value pairs) to the specified Amazon Location Service resource.

Tags can help you organize and categorize your resources. You can also use them to scope user
permissions, by granting a user permission to access or change only resources with certain tag
values.

You can use the `TagResource` operation with an Amazon Location Service resource that already
has tags. If you specify a new tag key for the resource, this tag is appended to the tags
already associated with the resource. If you specify a tag key that's already associated with
the resource, the new tag value that you specify replaces the previous value for that tag.

You can associate up to 50 tags with a resource.

## Parameters

* `resource_arn` - The Amazon Resource Name (ARN) of the resource whose tags you want to
  update.

* `tags` - Applies one or more tags to specific resource. A tag is a key-value pair that helps
  you manage, identify, search, and filter your resources.

See https://docs.aws.amazon.com/location/previous/APIReference/API_TagResource.html

# `untag_resource`

```elixir
@spec untag_resource(String.t(), [String.t()]) :: ExAws.Operation.RestQuery.t()
```

Removes one or more tags from the specified Amazon Location resource.

## Parameters

* `resource_arn` - The Amazon Resource Name (ARN) of the resource from which you want to
  remove tags.

* `tag_keys` - The list of tag keys to remove from the specified resource.

See https://docs.aws.amazon.com/location/previous/APIReference/API_UntagResource.html

---

*Consult [api-reference.md](api-reference.md) for complete listing*
