batchGetImage
inline suspend fun EcrClient.batchGetImage(crossinline block: BatchGetImageRequest.Builder.() -> Unit): BatchGetImageResponse
Gets detailed information for an image. Images are specified with either an imageTag
or imageDigest
.
When an image is pulled, the BatchGetImage API is called once to retrieve the image manifest.
Samples
import aws.sdk.kotlin.services.ecr.model.ImageIdentifier
fun main() {
//sampleStart
// This example obtains information for an image with a specified image digest ID from the repository
// named ubuntu in the current account.
val resp = ecrClient.batchGetImage {
repositoryName = "ubuntu"
imageIds = listOf<ImageIdentifier>(
ImageIdentifier {
imageTag = "precise"
}
)
}
//sampleEnd
}