Learn R Programming

paws.compute (version 0.1.12)

lambda_tag_resource: Adds tags to a function

Description

Adds tags to a function.

Usage

lambda_tag_resource(Resource, Tags)

Value

An empty list.

Arguments

Resource

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

Tags

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

Request syntax

svc$tag_resource(
  Resource = "string",
  Tags = list(
    "string"
  )
)

Examples

Run this code
if (FALSE) {
# 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"
  )
)
}

Run the code above in your browser using DataLab