import * as pulumi from "@pulumi/pulumi"; /** * Manages a DNS Recordset. * * ## Example Usage * * ```typescript * import * as pulumi from "@pulumi/pulumi"; * import * as yandex from "@pulumi/yandex"; * * const foo = new yandex.VpcNetwork("foo", {}); * const zone1 = new yandex.DnsZone("zone1", { * description: "desc", * labels: { * label1: "label-1-value", * }, * zone: "example.com.", * "public": false, * privateNetworks: [foo.id], * }); * const rs1 = new yandex.DnsRecordSet("rs1", { * zoneId: zone1.id, * type: "A", * ttl: 200, * datas: ["10.1.0.1"], * }); * const rs2 = new yandex.DnsRecordSet("rs2", { * zoneId: zone1.id, * type: "A", * ttl: 200, * datas: ["10.1.0.2"], * }); * ``` * * ## Import * * DNS recordset can be imported using this format * * ```sh * $ pulumi import yandex:index/dnsRecordSet:DnsRecordSet rs1 {{zone_id}}/{{name}}/{{type}} * ``` */ export declare class DnsRecordSet extends pulumi.CustomResource { /** * Get an existing DnsRecordSet resource's state with the given name, ID, and optional extra * properties used to qualify the lookup. * * @param name The _unique_ name of the resulting resource. * @param id The _unique_ provider ID of the resource to lookup. * @param state Any extra arguments used during the lookup. * @param opts Optional settings to control the behavior of the CustomResource. */ static get(name: string, id: pulumi.Input, state?: DnsRecordSetState, opts?: pulumi.CustomResourceOptions): DnsRecordSet; /** * Returns true if the given object is an instance of DnsRecordSet. This is designed to work even * when multiple copies of the Pulumi SDK have been loaded into the same process. */ static isInstance(obj: any): obj is DnsRecordSet; /** * The string data for the records in this record set. */ readonly datas: pulumi.Output; /** * The DNS name this record set will apply to. */ readonly name: pulumi.Output; /** * The time-to-live of this record set (seconds). */ readonly ttl: pulumi.Output; /** * The DNS record set type. */ readonly type: pulumi.Output; /** * The id of the zone in which this record set will reside. */ readonly zoneId: pulumi.Output; /** * Create a DnsRecordSet resource with the given unique name, arguments, and options. * * @param name The _unique_ name of the resource. * @param args The arguments to use to populate this resource's properties. * @param opts A bag of options that control this resource's behavior. */ constructor(name: string, args: DnsRecordSetArgs, opts?: pulumi.CustomResourceOptions); } /** * Input properties used for looking up and filtering DnsRecordSet resources. */ export interface DnsRecordSetState { /** * The string data for the records in this record set. */ datas?: pulumi.Input[]>; /** * The DNS name this record set will apply to. */ name?: pulumi.Input; /** * The time-to-live of this record set (seconds). */ ttl?: pulumi.Input; /** * The DNS record set type. */ type?: pulumi.Input; /** * The id of the zone in which this record set will reside. */ zoneId?: pulumi.Input; } /** * The set of arguments for constructing a DnsRecordSet resource. */ export interface DnsRecordSetArgs { /** * The string data for the records in this record set. */ datas: pulumi.Input[]>; /** * The DNS name this record set will apply to. */ name?: pulumi.Input; /** * The time-to-live of this record set (seconds). */ ttl: pulumi.Input; /** * The DNS record set type. */ type: pulumi.Input; /** * The id of the zone in which this record set will reside. */ zoneId: pulumi.Input; }