UNPKG

@pulumi/linode

Version:

A Pulumi package for creating and managing linode cloud resources.

66 lines 2.19 kB
"use strict"; // *** 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.getDomainOutput = exports.getDomain = void 0; const pulumi = require("@pulumi/pulumi"); const utilities = require("./utilities"); /** * Provides information about a Linode domain. * For more information, see the [Linode APIv4 docs](https://techdocs.akamai.com/linode-api/reference/get-domain). * * ## Example Usage * * The following example shows how one might use this data source to access information about a Linode domain. * * ```typescript * import * as pulumi from "@pulumi/pulumi"; * import * as linode from "@pulumi/linode"; * * const foo = linode.getDomain({ * id: 1234567, * }); * const bar = linode.getDomain({ * domain: "bar.example.com", * }); * ``` */ function getDomain(args, opts) { args = args || {}; opts = pulumi.mergeOptions(utilities.resourceOptsDefaults(), opts || {}); return pulumi.runtime.invoke("linode:index/getDomain:getDomain", { "domain": args.domain, "id": args.id, }, opts); } exports.getDomain = getDomain; /** * Provides information about a Linode domain. * For more information, see the [Linode APIv4 docs](https://techdocs.akamai.com/linode-api/reference/get-domain). * * ## Example Usage * * The following example shows how one might use this data source to access information about a Linode domain. * * ```typescript * import * as pulumi from "@pulumi/pulumi"; * import * as linode from "@pulumi/linode"; * * const foo = linode.getDomain({ * id: 1234567, * }); * const bar = linode.getDomain({ * domain: "bar.example.com", * }); * ``` */ function getDomainOutput(args, opts) { args = args || {}; opts = pulumi.mergeOptions(utilities.resourceOptsDefaults(), opts || {}); return pulumi.runtime.invokeOutput("linode:index/getDomain:getDomain", { "domain": args.domain, "id": args.id, }, opts); } exports.getDomainOutput = getDomainOutput; //# sourceMappingURL=getDomain.js.map