@pulumi/hcloud
Version:
A Pulumi package for creating and managing hcloud cloud resources.
64 lines • 1.91 kB
JavaScript
;
// *** WARNING: this file was generated by the Pulumi Terraform Bridge (tfgen) Tool. ***
// *** Do not edit by hand unless you're certain you know what you are doing! ***
Object.defineProperty(exports, "__esModule", { value: true });
exports.getLocationOutput = exports.getLocation = void 0;
const pulumi = require("@pulumi/pulumi");
const utilities = require("./utilities");
/**
* Provides details about a specific Hetzner Cloud Location.
*
* Use this resource to get detailed information about a specific Location.
*
* ## Example Usage
*
* ```typescript
* import * as pulumi from "@pulumi/pulumi";
* import * as hcloud from "@pulumi/hcloud";
*
* const byId = hcloud.getLocation({
* id: 1,
* });
* const byName = hcloud.getLocation({
* name: "fsn1",
* });
* ```
*/
function getLocation(args, opts) {
args = args || {};
opts = pulumi.mergeOptions(utilities.resourceOptsDefaults(), opts || {});
return pulumi.runtime.invoke("hcloud:index/getLocation:getLocation", {
"id": args.id,
"name": args.name,
}, opts);
}
exports.getLocation = getLocation;
/**
* Provides details about a specific Hetzner Cloud Location.
*
* Use this resource to get detailed information about a specific Location.
*
* ## Example Usage
*
* ```typescript
* import * as pulumi from "@pulumi/pulumi";
* import * as hcloud from "@pulumi/hcloud";
*
* const byId = hcloud.getLocation({
* id: 1,
* });
* const byName = hcloud.getLocation({
* name: "fsn1",
* });
* ```
*/
function getLocationOutput(args, opts) {
args = args || {};
opts = pulumi.mergeOptions(utilities.resourceOptsDefaults(), opts || {});
return pulumi.runtime.invokeOutput("hcloud:index/getLocation:getLocation", {
"id": args.id,
"name": args.name,
}, opts);
}
exports.getLocationOutput = getLocationOutput;
//# sourceMappingURL=getLocation.js.map