tagResource (original) (raw)
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
}
© 2025, Amazon Web Services, Inc. or its affiliates. All rights reserved.Generated by dokka