getImage

suspend fun getImage(argument: GetImagePlainArgs): GetImageResult

The ECR Image data source allows the details of an image with a particular tag or digest to be retrieved.

Example Usage

package generated_program;
import com.pulumi.Context;
import com.pulumi.Pulumi;
import com.pulumi.core.Output;
import com.pulumi.aws.ecr.EcrFunctions;
import com.pulumi.aws.ecr.inputs.GetImageArgs;
import java.util.List;
import java.util.ArrayList;
import java.util.Map;
import java.io.File;
import java.nio.file.Files;
import java.nio.file.Paths;
public class App {
public static void main(String[] args) {
Pulumi.run(App::stack);
}
public static void stack(Context ctx) {
final var serviceImage = EcrFunctions.getImage(GetImageArgs.builder()
.imageTag("latest")
.repositoryName("my/service")
.build());
}
}

Return

A collection of values returned by getImage.

Parameters

argument

A collection of arguments for invoking getImage.


suspend fun getImage(imageDigest: String? = null, imageTag: String? = null, mostRecent: Boolean? = null, registryId: String? = null, repositoryName: String): GetImageResult

Return

A collection of values returned by getImage.

Parameters

imageDigest

Sha256 digest of the image manifest. At least one of image_digest, image_tag, or most_recent must be specified.

imageTag

Tag associated with this image. At least one of image_digest, image_tag, or most_recent must be specified.

mostRecent

Return the most recently pushed image. At least one of image_digest, image_tag, or most_recent must be specified.

registryId

ID of the Registry where the repository resides.

repositoryName

Name of the ECR Repository.

See also


suspend fun getImage(argument: suspend GetImagePlainArgsBuilder.() -> Unit): GetImageResult

Return

A collection of values returned by getImage.

Parameters

argument

Builder for com.pulumi.aws.ecr.kotlin.inputs.GetImagePlainArgs.

See also