View source: R/ecs_operations.R
ecs_tag_resource | R Documentation |
Associates the specified tags to a resource with the specified resourceArn
. If existing tags on a resource aren't specified in the request parameters, they aren't changed. When a resource is deleted, the tags that are associated with that resource are deleted as well.
See https://www.paws-r-sdk.com/docs/ecs_tag_resource/ for full documentation.
ecs_tag_resource(resourceArn, tags)
resourceArn |
[required] The Amazon Resource Name (ARN) of the resource to add tags to. Currently, the supported resources are Amazon ECS capacity providers, tasks, services, task definitions, clusters, and container instances. In order to tag a service that has the following ARN format, you need to migrate the service to the long ARN. For more information, see Migrate an Amazon ECS short service ARN to a long ARN in the Amazon Elastic Container Service Developer Guide.
After the migration is complete, the service has the long ARN format, as shown below. Use this ARN to tag the service.
If you try to tag a service with a short ARN, you receive an
|
tags |
[required] The tags to add to the resource. A tag is an array of key-value pairs. The following basic restrictions apply to tags:
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.