tagResource
inline suspend fun MarketplaceDeploymentClient.tagResource(crossinline block: TagResourceRequest.Builder.() -> Unit): TagResourceResponse
Tags a resource.
Samples
fun main() {
//sampleStart
// The following example demonstrates adding two tags to a deployment parameter. There is no output
// from this API.
val resp = marketplaceDeploymentClient.tagResource {
resourceArn = "arn:aws:aws-marketplace:us-east-1:123456789012:DeploymentParameter:catalogs/AWSMarketplace/products/product-1234/dp-uniqueidentifier"
tags = mapOf<String, String>(
"FooKey" to "BarValue",
"HelloKey" to "WorldValue"
)
}
//sampleEnd
}