@pulumi/dnsimple
Version:
A Pulumi package for creating and managing dnsimple cloud resources.
74 lines • 2.17 kB
JavaScript
;
// *** 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.getZoneOutput = exports.getZone = void 0;
const pulumi = require("@pulumi/pulumi");
const utilities = require("./utilities");
/**
* Get information about a DNSimple zone.
*
* !> Data source is getting deprecated in favor of `dnsimple\_zone` resource.
*
* Get zone:
*
* ```typescript
* import * as pulumi from "@pulumi/pulumi";
* import * as dnsimple from "@pulumi/dnsimple";
*
* const foobar = dnsimple.getZone({
* name: "dnsimple.com",
* });
* ```
*
* The following arguments are supported:
*
* * `name` - (Required) The name of the zone
*
* The following additional attributes are exported:
*
* * `id` - The zone ID
* * `accountId` - The account ID
* * `reverse` - True for a reverse zone, false for a forward zone.
*/
function getZone(args, opts) {
opts = pulumi.mergeOptions(utilities.resourceOptsDefaults(), opts || {});
return pulumi.runtime.invoke("dnsimple:index/getZone:getZone", {
"name": args.name,
}, opts);
}
exports.getZone = getZone;
/**
* Get information about a DNSimple zone.
*
* !> Data source is getting deprecated in favor of `dnsimple\_zone` resource.
*
* Get zone:
*
* ```typescript
* import * as pulumi from "@pulumi/pulumi";
* import * as dnsimple from "@pulumi/dnsimple";
*
* const foobar = dnsimple.getZone({
* name: "dnsimple.com",
* });
* ```
*
* The following arguments are supported:
*
* * `name` - (Required) The name of the zone
*
* The following additional attributes are exported:
*
* * `id` - The zone ID
* * `accountId` - The account ID
* * `reverse` - True for a reverse zone, false for a forward zone.
*/
function getZoneOutput(args, opts) {
opts = pulumi.mergeOptions(utilities.resourceOptsDefaults(), opts || {});
return pulumi.runtime.invokeOutput("dnsimple:index/getZone:getZone", {
"name": args.name,
}, opts);
}
exports.getZoneOutput = getZoneOutput;
//# sourceMappingURL=getZone.js.map