UNPKG

@lbrlabs/pulumi-scaleway

Version:

A Pulumi package for creating and managing scaleway cloud resources.

66 lines 2.01 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.getDomainRecordOutput = exports.getDomainRecord = void 0; const pulumi = require("@pulumi/pulumi"); const utilities = require("./utilities"); /** * Gets information about a domain record. * * ## Example Usage * * ```typescript * import * as pulumi from "@pulumi/pulumi"; * import * as scaleway from "@pulumi/scaleway"; * * const byContent = scaleway.getDomainRecord({ * data: "1.2.3.4", * dnsZone: "domain.tld", * name: "www", * type: "A", * }); * const byId = scaleway.getDomainRecord({ * dnsZone: "domain.tld", * recordId: "11111111-1111-1111-1111-111111111111", * }); * ``` */ function getDomainRecord(args, opts) { args = args || {}; opts = pulumi.mergeOptions(utilities.resourceOptsDefaults(), opts || {}); return pulumi.runtime.invoke("scaleway:index/getDomainRecord:getDomainRecord", { "data": args.data, "dnsZone": args.dnsZone, "name": args.name, "recordId": args.recordId, "type": args.type, }, opts); } exports.getDomainRecord = getDomainRecord; /** * Gets information about a domain record. * * ## Example Usage * * ```typescript * import * as pulumi from "@pulumi/pulumi"; * import * as scaleway from "@pulumi/scaleway"; * * const byContent = scaleway.getDomainRecord({ * data: "1.2.3.4", * dnsZone: "domain.tld", * name: "www", * type: "A", * }); * const byId = scaleway.getDomainRecord({ * dnsZone: "domain.tld", * recordId: "11111111-1111-1111-1111-111111111111", * }); * ``` */ function getDomainRecordOutput(args, opts) { return pulumi.output(args).apply((a) => getDomainRecord(a, opts)); } exports.getDomainRecordOutput = getDomainRecordOutput; //# sourceMappingURL=getDomainRecord.js.map