UNPKG

@volcengine/pulumi

Version:

A Pulumi package for creating and managing volcengine cloud resources.

221 lines (220 loc) 6.04 kB
import * as pulumi from "@pulumi/pulumi"; /** * Provides a resource to manage dns record * ## Example Usage * * ```typescript * import * as pulumi from "@pulumi/pulumi"; * import * as volcengine from "@volcengine/pulumi"; * * const foo = new volcengine.dns.Record("foo", { * host: "a.com", * type: "A", * value: "1.1.1.2", * zid: 58846, * }); * ``` * * ## Import * * DnsRecord can be imported using the id, e.g. * * ```sh * $ pulumi import volcengine:dns/record:Record default ZID:recordId * ``` */ 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<pulumi.ID>, 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; /** * The creation time of the domain. */ readonly createdAt: pulumi.Output<string>; /** * Whether the DNS record is enabled. */ readonly enable: pulumi.Output<boolean>; /** * The host record, which is the domain prefix of the subdomain. */ readonly host: pulumi.Output<string>; /** * The value of the DNS record. */ readonly line: pulumi.Output<string>; /** * The account ID that called this API. */ readonly operators: pulumi.Output<string[]>; /** * The account ID that called this API. */ readonly pqdn: pulumi.Output<string>; /** * The ID of the DNS record. */ readonly recordId: pulumi.Output<string>; /** * The ID of the record set where the DNS record is located. */ readonly recordSetId: pulumi.Output<string>; /** * The remark for the DNS record. */ readonly remark: pulumi.Output<string>; /** * The tag information of the DNS record. */ readonly tags: pulumi.Output<string[]>; /** * The Time-To-Live (TTL) of the DNS record, in seconds. */ readonly ttl: pulumi.Output<number>; /** * The record type. */ readonly type: pulumi.Output<string>; /** * The update time of the domain. */ readonly updatedAt: pulumi.Output<string>; /** * The value of the DNS record. */ readonly value: pulumi.Output<string>; /** * The weight of the DNS record. */ readonly weight: pulumi.Output<number>; /** * The ID of the domain to which you want to add a DNS record. */ readonly zid: pulumi.Output<number>; /** * 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 { /** * The creation time of the domain. */ createdAt?: pulumi.Input<string>; /** * Whether the DNS record is enabled. */ enable?: pulumi.Input<boolean>; /** * The host record, which is the domain prefix of the subdomain. */ host?: pulumi.Input<string>; /** * The value of the DNS record. */ line?: pulumi.Input<string>; /** * The account ID that called this API. */ operators?: pulumi.Input<pulumi.Input<string>[]>; /** * The account ID that called this API. */ pqdn?: pulumi.Input<string>; /** * The ID of the DNS record. */ recordId?: pulumi.Input<string>; /** * The ID of the record set where the DNS record is located. */ recordSetId?: pulumi.Input<string>; /** * The remark for the DNS record. */ remark?: pulumi.Input<string>; /** * The tag information of the DNS record. */ tags?: pulumi.Input<pulumi.Input<string>[]>; /** * The Time-To-Live (TTL) of the DNS record, in seconds. */ ttl?: pulumi.Input<number>; /** * The record type. */ type?: pulumi.Input<string>; /** * The update time of the domain. */ updatedAt?: pulumi.Input<string>; /** * The value of the DNS record. */ value?: pulumi.Input<string>; /** * The weight of the DNS record. */ weight?: pulumi.Input<number>; /** * The ID of the domain to which you want to add a DNS record. */ zid?: pulumi.Input<number>; } /** * The set of arguments for constructing a Record resource. */ export interface RecordArgs { /** * The host record, which is the domain prefix of the subdomain. */ host: pulumi.Input<string>; /** * The value of the DNS record. */ line?: pulumi.Input<string>; /** * The remark for the DNS record. */ remark?: pulumi.Input<string>; /** * The Time-To-Live (TTL) of the DNS record, in seconds. */ ttl?: pulumi.Input<number>; /** * The record type. */ type: pulumi.Input<string>; /** * The value of the DNS record. */ value: pulumi.Input<string>; /** * The weight of the DNS record. */ weight?: pulumi.Input<number>; /** * The ID of the domain to which you want to add a DNS record. */ zid: pulumi.Input<number>; }