describeImageAttribute
abstract suspend fun describeImageAttribute(input: DescribeImageAttributeRequest): DescribeImageAttributeResponse
Describes the specified attribute of the specified AMI. You can specify only one attribute at a time.
Samples
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
}