@pulumi/aws
Version:
A Pulumi package for creating and managing Amazon Web Services (AWS) cloud resources.
62 lines • 2.06 kB
JavaScript
// *** WARNING: this file was generated by pulumi-language-nodejs. ***
// *** Do not edit by hand unless you're certain you know what you are doing! ***
Object.defineProperty(exports, "__esModule", { value: true });
exports.getImageOutput = exports.getImage = void 0;
const pulumi = require("@pulumi/pulumi");
const utilities = require("../utilities");
/**
* The ECR Image data source allows the details of an image with a particular tag or digest to be retrieved.
*
* ## Example Usage
*
* ```typescript
* import * as pulumi from "@pulumi/pulumi";
* import * as aws from "@pulumi/aws";
*
* const serviceImage = aws.ecr.getImage({
* repositoryName: "my/service",
* imageTag: "latest",
* });
* ```
*/
function getImage(args, opts) {
opts = pulumi.mergeOptions(utilities.resourceOptsDefaults(), opts || {});
return pulumi.runtime.invoke("aws:ecr/getImage:getImage", {
"imageDigest": args.imageDigest,
"imageTag": args.imageTag,
"mostRecent": args.mostRecent,
"region": args.region,
"registryId": args.registryId,
"repositoryName": args.repositoryName,
}, opts);
}
exports.getImage = getImage;
/**
* The ECR Image data source allows the details of an image with a particular tag or digest to be retrieved.
*
* ## Example Usage
*
* ```typescript
* import * as pulumi from "@pulumi/pulumi";
* import * as aws from "@pulumi/aws";
*
* const serviceImage = aws.ecr.getImage({
* repositoryName: "my/service",
* imageTag: "latest",
* });
* ```
*/
function getImageOutput(args, opts) {
opts = pulumi.mergeOptions(utilities.resourceOptsDefaults(), opts || {});
return pulumi.runtime.invokeOutput("aws:ecr/getImage:getImage", {
"imageDigest": args.imageDigest,
"imageTag": args.imageTag,
"mostRecent": args.mostRecent,
"region": args.region,
"registryId": args.registryId,
"repositoryName": args.repositoryName,
}, opts);
}
exports.getImageOutput = getImageOutput;
//# sourceMappingURL=getImage.js.map
;