@pulumiverse/scaleway
Version:
A Pulumi package for creating and managing Scaleway cloud resources.
98 lines • 4.45 kB
JavaScript
;
// *** 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");
/**
* 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 "@pulumi/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 "@pulumi/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