servicediscovery_tag_resource: Adds one or more tags to the specified resource

Description Usage Arguments Value Request syntax Examples

View source: R/servicediscovery_operations.R

Description

Adds one or more tags to the specified resource.

Usage

1
servicediscovery_tag_resource(ResourceARN, Tags)

Arguments

ResourceARN

[required] The Amazon Resource Name (ARN) of the resource that you want to retrieve tags for.

Tags

[required] The tags to add to the specified resource. Specifying the tag key is required. You can set the value of a tag to an empty string, but you can't set the value of a tag to null.

Value

An empty list.

Request syntax

1
2
3
4
5
6
7
8
9
svc$tag_resource(
  ResourceARN = "string",
  Tags = list(
    list(
      Key = "string",
      Value = "string"
    )
  )
)

Examples

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
15
16
17
## Not run: 
# This example adds "Department" and "Project" tags to a resource.
svc$tag_resource(
  ResourceARN = "arn:aws:servicediscovery:us-east-1:123456789012:namespace/...",
  Tags = list(
    list(
      Key = "Department",
      Value = "Engineering"
    ),
    list(
      Key = "Project",
      Value = "Zeta"
    )
  )
)

## End(Not run)

paws.networking documentation built on March 7, 2021, 5:08 p.m.