tagResource
inline suspend fun ImagebuilderClient.tagResource(crossinline block: TagResourceRequest.Builder.() -> Unit): TagResourceResponse
Adds a tag to a resource.
Samples
// The following example adds two tags to a component build version.
val resp = imagebuilderClient.tagResource {
resourceArn = "arn:aws:imagebuilder:us-west-2:111122223333:component/my-example-tagged-component/1.0.0/1"
tags = mapOf<String, String>(
"Environment" to "Production",
"CostCenter" to "12345"
)
}Content copied to clipboard