UNPKG

@pulumi/aws

Version:

A Pulumi package for creating and managing Amazon Web Services (AWS) cloud resources.

56 lines 1.87 kB
"use strict"; // *** 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.getRepositoryOutput = exports.getRepository = void 0; const pulumi = require("@pulumi/pulumi"); const utilities = require("../utilities"); /** * The ECR Repository data source allows the ARN, Repository URI and Registry ID to be retrieved for an ECR repository. * * ## Example Usage * * ```typescript * import * as pulumi from "@pulumi/pulumi"; * import * as aws from "@pulumi/aws"; * * const service = aws.ecr.getRepository({ * name: "ecr-repository", * }); * ``` */ function getRepository(args, opts) { opts = pulumi.mergeOptions(utilities.resourceOptsDefaults(), opts || {}); return pulumi.runtime.invoke("aws:ecr/getRepository:getRepository", { "name": args.name, "region": args.region, "registryId": args.registryId, "tags": args.tags, }, opts); } exports.getRepository = getRepository; /** * The ECR Repository data source allows the ARN, Repository URI and Registry ID to be retrieved for an ECR repository. * * ## Example Usage * * ```typescript * import * as pulumi from "@pulumi/pulumi"; * import * as aws from "@pulumi/aws"; * * const service = aws.ecr.getRepository({ * name: "ecr-repository", * }); * ``` */ function getRepositoryOutput(args, opts) { opts = pulumi.mergeOptions(utilities.resourceOptsDefaults(), opts || {}); return pulumi.runtime.invokeOutput("aws:ecr/getRepository:getRepository", { "name": args.name, "region": args.region, "registryId": args.registryId, "tags": args.tags, }, opts); } exports.getRepositoryOutput = getRepositoryOutput; //# sourceMappingURL=getRepository.js.map