import * as pulumi from "@pulumi/pulumi"; import * as inputs from "../types/input"; import * as outputs from "../types/output"; /** * A DNS record maps a domain name to resource information within a VPC. * * ## Example Usage * * ```typescript * import * as pulumi from "@pulumi/pulumi"; * import * as volcenginecc from "@volcengine/pulumi-volcenginecc"; * * const privateZoneRecordDemo = new volcenginecc.privatezone.Record("PrivateZoneRecordDemo", { * host: "ccapi-test-1", * line: "default", * remark: "test", * ttl: 600, * type: "AAAA", * value: "ff03:0:0:0:0:0:0:c1", * weight: 1, * zid: 403215, * enable: true, * }); * ``` * * ## Import * * ```sh * $ pulumi import volcenginecc:privatezone/record:Record example "record_id" * ``` */ export declare class Record extends pulumi.CustomResource { /** * Get an existing Record 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?: RecordState, opts?: pulumi.CustomResourceOptions): Record; /** * Returns true if the given object is an instance of Record. 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 Record; /** * Creation time of the DNS record. */ readonly createdAt: pulumi.Output; /** * Indicates whether the DNS record is enabled. */ readonly enable: pulumi.Output; /** * Domain prefix for the subdomain. */ readonly host: pulumi.Output; /** * Account ID of the most recent update to the DNS record. */ readonly lastOperator: pulumi.Output; /** * DNS record route, only the default route 'default' is supported. */ readonly line: pulumi.Output; /** * DNS record ID. */ readonly recordId: pulumi.Output; readonly recordSets: pulumi.Output; /** * Remarks. Supports UTF-8 characters. Maximum 16 characters. Default is an empty string. */ readonly remark: pulumi.Output; /** * DNS record TTL (time to live), in seconds. Default is 600. */ readonly ttl: pulumi.Output; /** * DNS record type. Valid values are: A: A record. AAAA: AAAA record. CNAME: CNAME record. TXT: TXT record. MX: MX record. PTR: PTR record. A: A record. AAAA: AAAA record. CNAME: CNAME record. TXT: TXT record. MX: MX record. PTR: PTR record. */ readonly type: pulumi.Output; /** * Last update time of the DNS record. */ readonly updatedAt: pulumi.Output; /** * Record value. */ readonly value: pulumi.Output; /** * Record weight. The weight takes effect only when load balancing is enabled for the domain name. */ readonly weight: pulumi.Output; /** * Indicates whether load balancing is enabled for this record set. */ readonly weightEnabled: pulumi.Output; /** * Domain name ID. */ readonly zid: pulumi.Output; /** * Create a Record 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: RecordArgs, opts?: pulumi.CustomResourceOptions); } /** * Input properties used for looking up and filtering Record resources. */ export interface RecordState { /** * Creation time of the DNS record. */ createdAt?: pulumi.Input; /** * Indicates whether the DNS record is enabled. */ enable?: pulumi.Input; /** * Domain prefix for the subdomain. */ host?: pulumi.Input; /** * Account ID of the most recent update to the DNS record. */ lastOperator?: pulumi.Input; /** * DNS record route, only the default route 'default' is supported. */ line?: pulumi.Input; /** * DNS record ID. */ recordId?: pulumi.Input; recordSets?: pulumi.Input[]>; /** * Remarks. Supports UTF-8 characters. Maximum 16 characters. Default is an empty string. */ remark?: pulumi.Input; /** * DNS record TTL (time to live), in seconds. Default is 600. */ ttl?: pulumi.Input; /** * DNS record type. Valid values are: A: A record. AAAA: AAAA record. CNAME: CNAME record. TXT: TXT record. MX: MX record. PTR: PTR record. A: A record. AAAA: AAAA record. CNAME: CNAME record. TXT: TXT record. MX: MX record. PTR: PTR record. */ type?: pulumi.Input; /** * Last update time of the DNS record. */ updatedAt?: pulumi.Input; /** * Record value. */ value?: pulumi.Input; /** * Record weight. The weight takes effect only when load balancing is enabled for the domain name. */ weight?: pulumi.Input; /** * Indicates whether load balancing is enabled for this record set. */ weightEnabled?: pulumi.Input; /** * Domain name ID. */ zid?: pulumi.Input; } /** * The set of arguments for constructing a Record resource. */ export interface RecordArgs { /** * Indicates whether the DNS record is enabled. */ enable?: pulumi.Input; /** * Domain prefix for the subdomain. */ host: pulumi.Input; /** * DNS record route, only the default route 'default' is supported. */ line?: pulumi.Input; /** * Remarks. Supports UTF-8 characters. Maximum 16 characters. Default is an empty string. */ remark?: pulumi.Input; /** * DNS record TTL (time to live), in seconds. Default is 600. */ ttl?: pulumi.Input; /** * DNS record type. Valid values are: A: A record. AAAA: AAAA record. CNAME: CNAME record. TXT: TXT record. MX: MX record. PTR: PTR record. A: A record. AAAA: AAAA record. CNAME: CNAME record. TXT: TXT record. MX: MX record. PTR: PTR record. */ type: pulumi.Input; /** * Record value. */ value: pulumi.Input; /** * Record weight. The weight takes effect only when load balancing is enabled for the domain name. */ weight?: pulumi.Input; /** * Indicates whether load balancing is enabled for this record set. */ weightEnabled?: pulumi.Input; /** * Domain name ID. */ zid: pulumi.Input; }