tagResource

abstract suspend fun tagResource(input: TagResourceRequest): TagResourceResponse

Adds tags to a function, event source mapping, or code signing configuration.

Samples


fun main() { 
   //sampleStart 
   // The following example adds a tag with the key name DEPARTMENT and a value of Department A to the
// specified Lambda function.
lambdaClient.tagResource {
    resource = "arn:aws:lambda:us-west-2:123456789012:function:my-function"
    tags = mapOf<String, String>(
        "DEPARTMENT" to "Department A"
    )
} 
   //sampleEnd
}