UNPKG

@pulumi/gcp

Version:

A Pulumi package for creating and managing Google Cloud Platform resources.

74 lines 2.48 kB
"use strict"; // *** 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.getRecordSetOutput = exports.getRecordSet = void 0; const pulumi = require("@pulumi/pulumi"); const utilities = require("../utilities"); /** * Get a DNS record set within Google Cloud DNS * For more information see * [the official documentation](https://cloud.google.com/dns/docs/records) * and * [API](https://cloud.google.com/dns/docs/reference/v1/resourceRecordSets) * * ## Example Usage * * ```typescript * import * as pulumi from "@pulumi/pulumi"; * import * as gcp from "@pulumi/gcp"; * * const sample = gcp.dns.getManagedZone({ * name: "sample-zone", * }); * const rs = Promise.all([sample, sample]).then(([sample, sample1]) => gcp.dns.getRecordSet({ * managedZone: sample.name, * name: `my-record.${sample1.dnsName}`, * type: "A", * })); * ``` */ function getRecordSet(args, opts) { opts = pulumi.mergeOptions(utilities.resourceOptsDefaults(), opts || {}); return pulumi.runtime.invoke("gcp:dns/getRecordSet:getRecordSet", { "managedZone": args.managedZone, "name": args.name, "project": args.project, "type": args.type, }, opts); } exports.getRecordSet = getRecordSet; /** * Get a DNS record set within Google Cloud DNS * For more information see * [the official documentation](https://cloud.google.com/dns/docs/records) * and * [API](https://cloud.google.com/dns/docs/reference/v1/resourceRecordSets) * * ## Example Usage * * ```typescript * import * as pulumi from "@pulumi/pulumi"; * import * as gcp from "@pulumi/gcp"; * * const sample = gcp.dns.getManagedZone({ * name: "sample-zone", * }); * const rs = Promise.all([sample, sample]).then(([sample, sample1]) => gcp.dns.getRecordSet({ * managedZone: sample.name, * name: `my-record.${sample1.dnsName}`, * type: "A", * })); * ``` */ function getRecordSetOutput(args, opts) { opts = pulumi.mergeOptions(utilities.resourceOptsDefaults(), opts || {}); return pulumi.runtime.invokeOutput("gcp:dns/getRecordSet:getRecordSet", { "managedZone": args.managedZone, "name": args.name, "project": args.project, "type": args.type, }, opts); } exports.getRecordSetOutput = getRecordSetOutput; //# sourceMappingURL=getRecordSet.js.map