tagResource

abstract suspend fun tagResource(input: TagResourceRequest): TagResourceResponse

Adds or updates tags for a specified resource.

Samples

import aws.sdk.kotlin.services.partnercentralchannel.model.Tag

fun main() { 
   //sampleStart 
   // Example for TagResource
val resp = partnerCentralChannelClient.tagResource {
    resourceArn = "arn:aws:partnercentral:us-east-1:123456789012:catalog/AWS/program-management-account/pma-u8ic702rtzng8/relationship/rs-l9o4fj3b5zb91"
    tags = listOf<Tag>(
        Tag {
            key = "ExampleKey"
            value = "ExampleValue"
        }            
    )
} 
   //sampleEnd
}