UNPKG

@pulumi/aws

Version:

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

52 lines 1.92 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 CodeCommit Repository data source allows the ARN, Repository ID, Repository URL for HTTP and Repository URL for SSH to be retrieved for an CodeCommit repository. * * ## Example Usage * * ```typescript * import * as pulumi from "@pulumi/pulumi"; * import * as aws from "@pulumi/aws"; * * const test = aws.codecommit.getRepository({ * repositoryName: "MyTestRepository", * }); * ``` */ function getRepository(args, opts) { opts = pulumi.mergeOptions(utilities.resourceOptsDefaults(), opts || {}); return pulumi.runtime.invoke("aws:codecommit/getRepository:getRepository", { "region": args.region, "repositoryName": args.repositoryName, }, opts); } exports.getRepository = getRepository; /** * The CodeCommit Repository data source allows the ARN, Repository ID, Repository URL for HTTP and Repository URL for SSH to be retrieved for an CodeCommit repository. * * ## Example Usage * * ```typescript * import * as pulumi from "@pulumi/pulumi"; * import * as aws from "@pulumi/aws"; * * const test = aws.codecommit.getRepository({ * repositoryName: "MyTestRepository", * }); * ``` */ function getRepositoryOutput(args, opts) { opts = pulumi.mergeOptions(utilities.resourceOptsDefaults(), opts || {}); return pulumi.runtime.invokeOutput("aws:codecommit/getRepository:getRepository", { "region": args.region, "repositoryName": args.repositoryName, }, opts); } exports.getRepositoryOutput = getRepositoryOutput; //# sourceMappingURL=getRepository.js.map