describeImages
abstract suspend fun describeImages(input: DescribeImagesRequest = DescribeImagesRequest { }): DescribeImagesResponse
Describes the specified images (AMIs, AKIs, and ARIs) available to you or all of the images available to you.
The images available to you include public images, private images that you own, and private images owned by other Amazon Web Services accounts for which you have explicit launch permissions.
Recently deregistered images appear in the returned results for a short interval and then return empty results. After all instances that reference a deregistered AMI are terminated, specifying the ID of the image will eventually return an error indicating that the AMI ID cannot be found.
Samples
fun main() {
//sampleStart
// This example describes the specified AMI.
val resp = ec2Client.describeImages {
imageIds = listOf<String>(
"ami-5731123e"
)
}
//sampleEnd
}