@pulumi/hcloud
Version:
A Pulumi package for creating and managing hcloud cloud resources.
66 lines • 2.13 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.getFirewallOutput = exports.getFirewall = void 0;
const pulumi = require("@pulumi/pulumi");
const utilities = require("./utilities");
/**
* Provides details about a specific Hetzner Cloud Firewall.
*
* ```typescript
* import * as pulumi from "@pulumi/pulumi";
* import * as hcloud from "@pulumi/hcloud";
*
* const sampleFirewall1 = hcloud.getFirewall({
* name: "sample-firewall-1",
* });
* const sampleFirewall2 = hcloud.getFirewall({
* id: 4711,
* });
* ```
*/
function getFirewall(args, opts) {
args = args || {};
opts = pulumi.mergeOptions(utilities.resourceOptsDefaults(), opts || {});
return pulumi.runtime.invoke("hcloud:index/getFirewall:getFirewall", {
"applyTos": args.applyTos,
"id": args.id,
"labels": args.labels,
"mostRecent": args.mostRecent,
"name": args.name,
"rules": args.rules,
"withSelector": args.withSelector,
}, opts);
}
exports.getFirewall = getFirewall;
/**
* Provides details about a specific Hetzner Cloud Firewall.
*
* ```typescript
* import * as pulumi from "@pulumi/pulumi";
* import * as hcloud from "@pulumi/hcloud";
*
* const sampleFirewall1 = hcloud.getFirewall({
* name: "sample-firewall-1",
* });
* const sampleFirewall2 = hcloud.getFirewall({
* id: 4711,
* });
* ```
*/
function getFirewallOutput(args, opts) {
args = args || {};
opts = pulumi.mergeOptions(utilities.resourceOptsDefaults(), opts || {});
return pulumi.runtime.invokeOutput("hcloud:index/getFirewall:getFirewall", {
"applyTos": args.applyTos,
"id": args.id,
"labels": args.labels,
"mostRecent": args.mostRecent,
"name": args.name,
"rules": args.rules,
"withSelector": args.withSelector,
}, opts);
}
exports.getFirewallOutput = getFirewallOutput;
//# sourceMappingURL=getFirewall.js.map