tagResource

abstract suspend fun tagResource(input: TagResourceRequest): TagResourceResponse

Attaches a key-value pair to a resource, as identified by its Amazon Resource Name (ARN). Resources are capability, partnership, profile, transformers and other entities.

There is no response returned from this call.

Samples

import aws.sdk.kotlin.services.b2bi.model.Tag
fun main() { 
   //sampleStart 
   // Sample TagResource call
b2BiClient.tagResource {
    resourceArn = "arn:aws:b2bi:us-west-2:123456789012:profile/p-60fbc37c87f04fce9"
    tags = listOf<Tag>(
        Tag {
            key = "sampleKey"
            value = "SampleValue"
        }            
    )
} 
   //sampleEnd
}