lambda_tag_resource: Adds tags to a function

Description Usage Arguments Value Request syntax Examples

View source: R/lambda_operations.R

Description

Adds tags to a function.

Usage

1
lambda_tag_resource(Resource, Tags)

Arguments

Resource

[required] The function's Amazon Resource Name (ARN).

Tags

[required] A list of tags to apply to the function.

Value

An empty list.

Request syntax

1
2
3
4
5
6
svc$tag_resource(
  Resource = "string",
  Tags = list(
    "string"
  )
)

Examples

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
## Not run: 
# The following example adds a tag with the key name DEPARTMENT and a
# value of 'Department A' to the specified Lambda function.
svc$tag_resource(
  Resource = "arn:aws:lambda:us-west-2:123456789012:function:my-function",
  Tags = list(
    DEPARTMENT = "Department A"
  )
)

## End(Not run)

paws.compute documentation built on March 7, 2021, 5:10 p.m.