import * as pulumi from "@pulumi/pulumi"; /** * Get information on a DNS record. This data source provides the name, TTL, and zone file as configured on your Civo account. * * An error will be raised if the provided domain name or record are not in your Civo account. * * ## Example Usage * * ```typescript * import * as pulumi from "@pulumi/pulumi"; * import * as civo from "@pulumi/civo"; * * const domain = civo.getDnsDomainName({ * name: "domain.com", * }); * const www = domain.then(domain => civo.getDnsDomainRecord({ * domainId: domain.id, * name: "www", * })); * export const recordType = www.then(www => www.type); * export const recordTtl = www.then(www => www.ttl); * ``` */ export declare function getDnsDomainRecord(args: GetDnsDomainRecordArgs, opts?: pulumi.InvokeOptions): Promise; /** * A collection of arguments for invoking getDnsDomainRecord. */ export interface GetDnsDomainRecordArgs { /** * The ID of the domain */ domainId: string; /** * The name of the record */ name: string; } /** * A collection of values returned by getDnsDomainRecord. */ export interface GetDnsDomainRecordResult { /** * The ID account of the domain */ readonly accountId: string; /** * The date when it was created in UTC format */ readonly createdAt: string; /** * The ID of the domain */ readonly domainId: string; /** * The provider-assigned unique ID for this managed resource. */ readonly id: string; /** * The name of the record */ readonly name: string; /** * The priority of the record */ readonly priority: number; /** * How long caching DNS servers should cache this record */ readonly ttl: number; /** * The choice of record type from A, CNAME, MX, SRV or TXT */ readonly type: string; /** * The date when it was updated in UTC format */ readonly updatedAt: string; /** * The IP address (A or MX), hostname (CNAME or MX) or text value (TXT) to serve for this record */ readonly value: string; } /** * Get information on a DNS record. This data source provides the name, TTL, and zone file as configured on your Civo account. * * An error will be raised if the provided domain name or record are not in your Civo account. * * ## Example Usage * * ```typescript * import * as pulumi from "@pulumi/pulumi"; * import * as civo from "@pulumi/civo"; * * const domain = civo.getDnsDomainName({ * name: "domain.com", * }); * const www = domain.then(domain => civo.getDnsDomainRecord({ * domainId: domain.id, * name: "www", * })); * export const recordType = www.then(www => www.type); * export const recordTtl = www.then(www => www.ttl); * ``` */ export declare function getDnsDomainRecordOutput(args: GetDnsDomainRecordOutputArgs, opts?: pulumi.InvokeOutputOptions): pulumi.Output; /** * A collection of arguments for invoking getDnsDomainRecord. */ export interface GetDnsDomainRecordOutputArgs { /** * The ID of the domain */ domainId: pulumi.Input; /** * The name of the record */ name: pulumi.Input; }