@pulumiverse/scaleway
Version:
A Pulumi package for creating and managing Scaleway cloud resources.
121 lines • 5.5 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! ***
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
if (k2 === undefined) k2 = k;
var desc = Object.getOwnPropertyDescriptor(m, k);
if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
desc = { enumerable: true, get: function() { return m[k]; } };
}
Object.defineProperty(o, k2, desc);
}) : (function(o, m, k, k2) {
if (k2 === undefined) k2 = k;
o[k2] = m[k];
}));
var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) {
Object.defineProperty(o, "default", { enumerable: true, value: v });
}) : function(o, v) {
o["default"] = v;
});
var __importStar = (this && this.__importStar) || function (mod) {
if (mod && mod.__esModule) return mod;
var result = {};
if (mod != null) for (var k in mod) if (k !== "default" && Object.prototype.hasOwnProperty.call(mod, k)) __createBinding(result, mod, k);
__setModuleDefault(result, mod);
return result;
};
Object.defineProperty(exports, "__esModule", { value: true });
exports.getDomainRecordOutput = exports.getDomainRecord = void 0;
const pulumi = __importStar(require("@pulumi/pulumi"));
const utilities = __importStar(require("./utilities"));
/**
* The `scaleway.domain.Record` data source is used to get information about an existing domain record.
*
* Refer to the Domains and DNS [product documentation](https://www.scaleway.com/en/docs/network/domains-and-dns/) and [API documentation](https://www.scaleway.com/en/developers/api/domains-and-dns/) for more information.
*
* ## Query domain records
*
* The following commands allow you to:
*
* - query a domain record specified by the DNS zone (`domain.tld`), the record name (`www`), the record type (`A`), and the record content (`1.2.3.4`).
* - query a domain record specified by the DNS zone (`domain.tld`) and the unique record ID (`11111111-1111-1111-1111-111111111111`).
*
* ```typescript
* import * as pulumi from "@pulumi/pulumi";
* import * as scaleway from "@pulumiverse/scaleway";
*
* // Query record by DNS zone, record name, type and content
* const byContent = scaleway.domain.getRecord({
* dnsZone: "domain.tld",
* name: "www",
* type: "A",
* data: "1.2.3.4",
* });
* // Query record by DNS zone and record ID
* const byId = scaleway.domain.getRecord({
* dnsZone: "domain.tld",
* recordId: "11111111-1111-1111-1111-111111111111",
* });
* ```
*/
/** @deprecated scaleway.index/getdomainrecord.getDomainRecord has been deprecated in favor of scaleway.domain/getrecord.getRecord */
function getDomainRecord(args, opts) {
pulumi.log.warn("getDomainRecord is deprecated: scaleway.index/getdomainrecord.getDomainRecord has been deprecated in favor of scaleway.domain/getrecord.getRecord");
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,
"projectId": args.projectId,
"recordId": args.recordId,
"type": args.type,
}, opts);
}
exports.getDomainRecord = getDomainRecord;
/**
* The `scaleway.domain.Record` data source is used to get information about an existing domain record.
*
* Refer to the Domains and DNS [product documentation](https://www.scaleway.com/en/docs/network/domains-and-dns/) and [API documentation](https://www.scaleway.com/en/developers/api/domains-and-dns/) for more information.
*
* ## Query domain records
*
* The following commands allow you to:
*
* - query a domain record specified by the DNS zone (`domain.tld`), the record name (`www`), the record type (`A`), and the record content (`1.2.3.4`).
* - query a domain record specified by the DNS zone (`domain.tld`) and the unique record ID (`11111111-1111-1111-1111-111111111111`).
*
* ```typescript
* import * as pulumi from "@pulumi/pulumi";
* import * as scaleway from "@pulumiverse/scaleway";
*
* // Query record by DNS zone, record name, type and content
* const byContent = scaleway.domain.getRecord({
* dnsZone: "domain.tld",
* name: "www",
* type: "A",
* data: "1.2.3.4",
* });
* // Query record by DNS zone and record ID
* const byId = scaleway.domain.getRecord({
* dnsZone: "domain.tld",
* recordId: "11111111-1111-1111-1111-111111111111",
* });
* ```
*/
/** @deprecated scaleway.index/getdomainrecord.getDomainRecord has been deprecated in favor of scaleway.domain/getrecord.getRecord */
function getDomainRecordOutput(args, opts) {
pulumi.log.warn("getDomainRecord is deprecated: scaleway.index/getdomainrecord.getDomainRecord has been deprecated in favor of scaleway.domain/getrecord.getRecord");
args = args || {};
opts = pulumi.mergeOptions(utilities.resourceOptsDefaults(), opts || {});
return pulumi.runtime.invokeOutput("scaleway:index/getDomainRecord:getDomainRecord", {
"data": args.data,
"dnsZone": args.dnsZone,
"name": args.name,
"projectId": args.projectId,
"recordId": args.recordId,
"type": args.type,
}, opts);
}
exports.getDomainRecordOutput = getDomainRecordOutput;
//# sourceMappingURL=getDomainRecord.js.map