import * as pulumi from "@pulumi/pulumi"; /** * ## Example Usage * * ```typescript * import * as pulumi from "@pulumi/pulumi"; * import * as ovh from "@ovhcloud/pulumi-ovh"; * * // Add a record to a sub-domain * const test = new ovh.domain.ZoneRecord("test", { * zone: "testdemo.ovh", * subdomain: "test", * fieldtype: "A", * ttl: 3600, * target: "0.0.0.0", * }); * ``` * * ## Import * * OVHcloud domain zone record can be imported using the `id`, which can be retrieved by using [OVH API portal](https://api.ovh.com/console/#/domain/zone/%7BzoneName%7D/record~GET), and the `zone`, separated by "." E.g., * * bash * * ```sh * $ pulumi import ovh:Domain/zoneRecord:ZoneRecord test id.zone * ``` */ export declare class ZoneRecord extends pulumi.CustomResource { /** * Get an existing ZoneRecord 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?: ZoneRecordState, opts?: pulumi.CustomResourceOptions): ZoneRecord; /** * Returns true if the given object is an instance of ZoneRecord. 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 ZoneRecord; /** * The type of the record */ readonly fieldtype: pulumi.Output; /** * The name of the record. It can be an empty string. */ readonly subdomain: pulumi.Output; /** * The value of the record */ readonly target: pulumi.Output; /** * The TTL of the record, it shall be >= to 60. */ readonly ttl: pulumi.Output; /** * The domain to add the record to */ readonly zone: pulumi.Output; /** * Create a ZoneRecord 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: ZoneRecordArgs, opts?: pulumi.CustomResourceOptions); } /** * Input properties used for looking up and filtering ZoneRecord resources. */ export interface ZoneRecordState { /** * The type of the record */ fieldtype?: pulumi.Input; /** * The name of the record. It can be an empty string. */ subdomain?: pulumi.Input; /** * The value of the record */ target?: pulumi.Input; /** * The TTL of the record, it shall be >= to 60. */ ttl?: pulumi.Input; /** * The domain to add the record to */ zone?: pulumi.Input; } /** * The set of arguments for constructing a ZoneRecord resource. */ export interface ZoneRecordArgs { /** * The type of the record */ fieldtype: pulumi.Input; /** * The name of the record. It can be an empty string. */ subdomain?: pulumi.Input; /** * The value of the record */ target: pulumi.Input; /** * The TTL of the record, it shall be >= to 60. */ ttl?: pulumi.Input; /** * The domain to add the record to */ zone: pulumi.Input; }