UNPKG

@pulumi/digitalocean

Version:

A Pulumi package for creating and managing DigitalOcean cloud resources.

68 lines 2.46 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.getContainerRegistryOutput = exports.getContainerRegistry = void 0; const pulumi = require("@pulumi/pulumi"); const utilities = require("./utilities"); /** * Get information on a container registry. This data source provides the name as * configured on your DigitalOcean account. This is useful if the container * registry name in question is not managed by this provider or you need validate if * the container registry exists in the account. * * An error is triggered if the provided container registry name does not exist. * * ## Example Usage * * ### Basic Example * * Get the container registry: * * ```typescript * import * as pulumi from "@pulumi/pulumi"; * import * as digitalocean from "@pulumi/digitalocean"; * * const example = digitalocean.getContainerRegistry({ * name: "example", * }); * ``` */ function getContainerRegistry(args, opts) { opts = pulumi.mergeOptions(utilities.resourceOptsDefaults(), opts || {}); return pulumi.runtime.invoke("digitalocean:index/getContainerRegistry:getContainerRegistry", { "name": args.name, }, opts); } exports.getContainerRegistry = getContainerRegistry; /** * Get information on a container registry. This data source provides the name as * configured on your DigitalOcean account. This is useful if the container * registry name in question is not managed by this provider or you need validate if * the container registry exists in the account. * * An error is triggered if the provided container registry name does not exist. * * ## Example Usage * * ### Basic Example * * Get the container registry: * * ```typescript * import * as pulumi from "@pulumi/pulumi"; * import * as digitalocean from "@pulumi/digitalocean"; * * const example = digitalocean.getContainerRegistry({ * name: "example", * }); * ``` */ function getContainerRegistryOutput(args, opts) { opts = pulumi.mergeOptions(utilities.resourceOptsDefaults(), opts || {}); return pulumi.runtime.invokeOutput("digitalocean:index/getContainerRegistry:getContainerRegistry", { "name": args.name, }, opts); } exports.getContainerRegistryOutput = getContainerRegistryOutput; //# sourceMappingURL=getContainerRegistry.js.map