import * as pulumi from "@pulumi/pulumi"; /** * DNS record resource, used to create, query, update, delete, and list a single DNS record under a specified domain name. * * ## Example Usage * * ```typescript * import * as pulumi from "@pulumi/pulumi"; * import * as volcenginecc from "@volcengine/pulumi-volcenginecc"; * * const dNSRecordDemo = new volcenginecc.dns.Record("DNSRecordDemo", { * zid: "xxxxxx", * host: "test", * type: "CNAME", * value: "test1.example1.com", * line: "default", * remark: "test", * ttl: 601, * weight: 2, * enable: false, * }); * ``` * * ## Import * * ```sh * $ pulumi import volcenginecc:dns/record:Record example "zid|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; /** * Whether the DNS record is enabled; if disabled, the record is inactive. */ readonly enable: pulumi.Output; /** * Host name included in the DNS record, using FQDN (Fully Qualified Domain Name) format; this field is deprecated. */ readonly fqdn: pulumi.Output; /** * Host record, the prefix of the subdomain; `@` represents the root domain itself. */ readonly host: pulumi.Output; /** * Line code corresponding to the DNS record, such as `default`. */ readonly line: pulumi.Output; /** * List of account IDs that recently operated on this DNS record. */ readonly operators: pulumi.Output; /** * Host name included in the DNS record, using PQDN (Partially Qualified Domain Name) format. */ readonly pqdn: pulumi.Output; /** * Unique ID of the DNS record. */ readonly recordId: pulumi.Output; /** * ID of the record set containing the DNS record; returned only for A, AAAA, and CNAME types. */ readonly recordSetId: pulumi.Output; /** * Remarks for the DNS record, supports UTF-8 encoding and up to 16 characters. */ readonly remark: pulumi.Output; /** * Tag information for the DNS record; if it contains `GTMLock`, the record is associated with a GTM instance. */ readonly tags: pulumi.Output; /** * Expiration time of the DNS record, in seconds. */ readonly ttl: pulumi.Output; /** * Record type, such as `A`, `AAAA`, `CNAME`, `NS`, `MX`, `SRV`, `TXT`. */ readonly type: pulumi.Output; /** * Last updated time of the DNS record. */ readonly updatedAt: pulumi.Output; /** * Record value of the DNS record. */ readonly value: pulumi.Output; /** * Weight of the DNS record, effective only when load balancing is enabled for the record set. */ readonly weight: pulumi.Output; /** * Domain name ID, can be obtained via interfaces such as `ListZones`. */ 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; /** * Whether the DNS record is enabled; if disabled, the record is inactive. */ enable?: pulumi.Input; /** * Host name included in the DNS record, using FQDN (Fully Qualified Domain Name) format; this field is deprecated. */ fqdn?: pulumi.Input; /** * Host record, the prefix of the subdomain; `@` represents the root domain itself. */ host?: pulumi.Input; /** * Line code corresponding to the DNS record, such as `default`. */ line?: pulumi.Input; /** * List of account IDs that recently operated on this DNS record. */ operators?: pulumi.Input[]>; /** * Host name included in the DNS record, using PQDN (Partially Qualified Domain Name) format. */ pqdn?: pulumi.Input; /** * Unique ID of the DNS record. */ recordId?: pulumi.Input; /** * ID of the record set containing the DNS record; returned only for A, AAAA, and CNAME types. */ recordSetId?: pulumi.Input; /** * Remarks for the DNS record, supports UTF-8 encoding and up to 16 characters. */ remark?: pulumi.Input; /** * Tag information for the DNS record; if it contains `GTMLock`, the record is associated with a GTM instance. */ tags?: pulumi.Input[]>; /** * Expiration time of the DNS record, in seconds. */ ttl?: pulumi.Input; /** * Record type, such as `A`, `AAAA`, `CNAME`, `NS`, `MX`, `SRV`, `TXT`. */ type?: pulumi.Input; /** * Last updated time of the DNS record. */ updatedAt?: pulumi.Input; /** * Record value of the DNS record. */ value?: pulumi.Input; /** * Weight of the DNS record, effective only when load balancing is enabled for the record set. */ weight?: pulumi.Input; /** * Domain name ID, can be obtained via interfaces such as `ListZones`. */ zid?: pulumi.Input; } /** * The set of arguments for constructing a Record resource. */ export interface RecordArgs { /** * Whether the DNS record is enabled; if disabled, the record is inactive. */ enable?: pulumi.Input; /** * Host record, the prefix of the subdomain; `@` represents the root domain itself. */ host: pulumi.Input; /** * Line code corresponding to the DNS record, such as `default`. */ line?: pulumi.Input; /** * Remarks for the DNS record, supports UTF-8 encoding and up to 16 characters. */ remark?: pulumi.Input; /** * Expiration time of the DNS record, in seconds. */ ttl?: pulumi.Input; /** * Record type, such as `A`, `AAAA`, `CNAME`, `NS`, `MX`, `SRV`, `TXT`. */ type: pulumi.Input; /** * Record value of the DNS record. */ value: pulumi.Input; /** * Weight of the DNS record, effective only when load balancing is enabled for the record set. */ weight?: pulumi.Input; /** * Domain name ID, can be obtained via interfaces such as `ListZones`. */ zid: pulumi.Input; }