tagResource

abstract suspend fun tagResource(input: TagResourceRequest): TagResourceResponse

Add new tags to the specified resource.

Samples


fun main() { 
   //sampleStart 
   // Apply Tags
val resp = interconnectClient.tagResource {
    arn = "arn:aws:interconnect:us-east-1:000000000000:connection/mcc-abc12345"
    tags = mapOf<String, String>(
        "TagKey1" to "TagValue1",
        "TagKey2" to "TagValue2"
    )
} 
   //sampleEnd
}