UNPKG

@pulumi/gcp

Version:

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

70 lines 2.47 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.getManagedZoneOutput = exports.getManagedZone = void 0; const pulumi = require("@pulumi/pulumi"); const utilities = require("../utilities"); /** * Provides access to a zone's attributes within Google Cloud DNS. * For more information see * [the official documentation](https://cloud.google.com/dns/zones/) * and * [API](https://cloud.google.com/dns/api/v1/managedZones). * * ```typescript * import * as pulumi from "@pulumi/pulumi"; * import * as gcp from "@pulumi/gcp"; * * const envDnsZone = gcp.dns.getManagedZone({ * name: "qa-zone", * }); * const dns = new gcp.dns.RecordSet("dns", { * name: envDnsZone.then(envDnsZone => `my-address.${envDnsZone.dnsName}`), * type: "TXT", * ttl: 300, * managedZone: envDnsZone.then(envDnsZone => envDnsZone.name), * rrdatas: ["test"], * }); * ``` */ function getManagedZone(args, opts) { opts = pulumi.mergeOptions(utilities.resourceOptsDefaults(), opts || {}); return pulumi.runtime.invoke("gcp:dns/getManagedZone:getManagedZone", { "name": args.name, "project": args.project, }, opts); } exports.getManagedZone = getManagedZone; /** * Provides access to a zone's attributes within Google Cloud DNS. * For more information see * [the official documentation](https://cloud.google.com/dns/zones/) * and * [API](https://cloud.google.com/dns/api/v1/managedZones). * * ```typescript * import * as pulumi from "@pulumi/pulumi"; * import * as gcp from "@pulumi/gcp"; * * const envDnsZone = gcp.dns.getManagedZone({ * name: "qa-zone", * }); * const dns = new gcp.dns.RecordSet("dns", { * name: envDnsZone.then(envDnsZone => `my-address.${envDnsZone.dnsName}`), * type: "TXT", * ttl: 300, * managedZone: envDnsZone.then(envDnsZone => envDnsZone.name), * rrdatas: ["test"], * }); * ``` */ function getManagedZoneOutput(args, opts) { opts = pulumi.mergeOptions(utilities.resourceOptsDefaults(), opts || {}); return pulumi.runtime.invokeOutput("gcp:dns/getManagedZone:getManagedZone", { "name": args.name, "project": args.project, }, opts); } exports.getManagedZoneOutput = getManagedZoneOutput; //# sourceMappingURL=getManagedZone.js.map