describeImageAttribute  
  inline suspend fun Ec2Client.describeImageAttribute(crossinline block: DescribeImageAttributeRequest.Builder.() -> Unit): DescribeImageAttributeResponse
Describes the specified attribute of the specified AMI. You can specify only one attribute at a time.
The order of the elements in the response, including those within nested structures, might vary. Applications should not assume the elements appear in a particular order.
Samples
import aws.sdk.kotlin.services.ec2.model.ImageAttributeName
fun main() { 
   //sampleStart 
   // This example describes the launch permissions for the specified AMI.
val resp = ec2Client.describeImageAttribute {
    attribute = ImageAttributeName.fromValue("launchPermission")
    imageId = "ami-5731123e"
} 
   //sampleEnd
}