import * as pulumi from "@pulumi/pulumi"; import * as inputs from "../types/input"; import * as outputs from "../types/output"; /** * The zone in the resource is the domain name, which can be a primary domain such as example.com or a subdomain such as abc.example.com * * ## Example Usage * * ```typescript * import * as pulumi from "@pulumi/pulumi"; * import * as volcenginecc from "@volcengine/pulumi-volcenginecc"; * * const dnsZoneDemo = new volcenginecc.dns.Zone("DnsZoneDemo", { * zoneName: "DnsZoneDemo", * remark: "test", * projectName: "default", * tags: [{ * key: "env", * value: "test", * }], * }); * ``` * * ## Import * * ```sh * $ pulumi import volcenginecc:dns/zone:Zone example "zid" * ``` */ export declare class Zone extends pulumi.CustomResource { /** * Get an existing Zone 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?: ZoneState, opts?: pulumi.CustomResourceOptions): Zone; /** * Returns true if the given object is an instance of Zone. 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 Zone; /** * List of DNS servers assigned to the domain by Cloud DNS */ readonly allocateDnsServerLists: pulumi.Output; /** * Whether domain auto-renewal is enabled. true: Auto-renewal enabled. false: Auto-renewal disabled. */ readonly autoRenew: pulumi.Output; /** * Domain ownership status. This parameter has the following values: 0: You are the domain owner. After adding this domain, you can manage its DNS resolution. 1: You are not the domain owner. After adding this domain, its status is 'domain reclaim pending.' To manage DNS resolution, you must verify domain ownership in the console as prompted. */ readonly cacheStage: pulumi.Output; /** * Domain creation time. */ readonly createdTime: pulumi.Output; /** * Version of DNS DDoS protection service. dns*security*standard_inner: Standard protection edition. "": No protection edition. */ readonly dnsSecurity: pulumi.Output; /** * Instance expiration time. Format is Unix timestamp. For Cloud DNS Free Edition, this field is null. */ readonly expiredTime: pulumi.Output; /** * Instance ID. For Cloud DNS Free Edition, this field is null. */ readonly instanceId: pulumi.Output; /** * Instance ID. For Cloud DNS Free Edition, this field is null. */ readonly instanceNo: pulumi.Output; /** * Whether the DNS server configuration is correct. If configured correctly, the domain status in Cloud DNS is Normal. This parameter has the following values: true: The DNS server list in RealDNSServerList includes all DNS servers in AllocateDNSServerList. In this case, the DNS server configuration is correct. false: The DNS server list in RealDNSServerList includes only some or none of the DNS servers in AllocateDNSServerList. In this case, the DNS server configuration is incorrect. */ readonly isNsCorrect: pulumi.Output; /** * Whether it is a subdomain. true: Subdomain. false: Primary domain. */ readonly isSubDomain: pulumi.Output; /** * ID of the account that created the domain. */ readonly lastOperator: pulumi.Output; /** * Domain project. */ readonly projectName: pulumi.Output; /** * List of DNS servers actually used by the domain. */ readonly realDnsServerLists: pulumi.Output; /** * Total number of DNS records contained in the domain. */ readonly recordCount: pulumi.Output; /** * Domain notes */ readonly remark: pulumi.Output; /** * Domain status. This parameter has the following values: 0: Normal. In this state, the domain's DNS resolution records are active. 1: Domain reclaim pending. In this state, the domain's DNS resolution records are inactive. This status indicates you are not the owner of the domain. If you need to manage DNS resolution, you must verify domain ownership. 2: TrafficRoute not used for resolution. In this state, the domain's DNS resolution records are inactive. This status means the DNS server assigned to the domain is not a Cloud DNS server. 3: Abnormal. In this state, the domain's DNS resolution records are inactive. Common causes for this status include: the domain is disabled by the registry or registrar due to lack of real-name verification; DNS server not configured; domain not registered; API timeout when querying the domain, possibly due to network issues. 5: Please change DNS server. This status means you need to update the domain's DNS server to the newly assigned Cloud DNS server due to service upgrade or change. */ readonly stage: pulumi.Output; /** * Prefix of the subdomain. If the domain is not a subdomain, this parameter is null. */ readonly subDomainHost: pulumi.Output; readonly tags: pulumi.Output; /** * Domain feature version. This parameter has the following values: free*inner: Free Edition; professional*inner: Professional Edition; enterprise*inner: Enterprise Edition; ultimate*inner: Flagship Edition; ultimate*exclusive*inner: Premium Edition. */ readonly tradeCode: pulumi.Output; /** * Last update time for the domain. Update operations include: updating domain remarks, creating DNS records under the domain. */ readonly updatedTime: pulumi.Output; /** * Domain ID. */ readonly zid: pulumi.Output; /** * Domain name. */ readonly zoneName: pulumi.Output; /** * Create a Zone 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: ZoneArgs, opts?: pulumi.CustomResourceOptions); } /** * Input properties used for looking up and filtering Zone resources. */ export interface ZoneState { /** * List of DNS servers assigned to the domain by Cloud DNS */ allocateDnsServerLists?: pulumi.Input[]>; /** * Whether domain auto-renewal is enabled. true: Auto-renewal enabled. false: Auto-renewal disabled. */ autoRenew?: pulumi.Input; /** * Domain ownership status. This parameter has the following values: 0: You are the domain owner. After adding this domain, you can manage its DNS resolution. 1: You are not the domain owner. After adding this domain, its status is 'domain reclaim pending.' To manage DNS resolution, you must verify domain ownership in the console as prompted. */ cacheStage?: pulumi.Input; /** * Domain creation time. */ createdTime?: pulumi.Input; /** * Version of DNS DDoS protection service. dns*security*standard_inner: Standard protection edition. "": No protection edition. */ dnsSecurity?: pulumi.Input; /** * Instance expiration time. Format is Unix timestamp. For Cloud DNS Free Edition, this field is null. */ expiredTime?: pulumi.Input; /** * Instance ID. For Cloud DNS Free Edition, this field is null. */ instanceId?: pulumi.Input; /** * Instance ID. For Cloud DNS Free Edition, this field is null. */ instanceNo?: pulumi.Input; /** * Whether the DNS server configuration is correct. If configured correctly, the domain status in Cloud DNS is Normal. This parameter has the following values: true: The DNS server list in RealDNSServerList includes all DNS servers in AllocateDNSServerList. In this case, the DNS server configuration is correct. false: The DNS server list in RealDNSServerList includes only some or none of the DNS servers in AllocateDNSServerList. In this case, the DNS server configuration is incorrect. */ isNsCorrect?: pulumi.Input; /** * Whether it is a subdomain. true: Subdomain. false: Primary domain. */ isSubDomain?: pulumi.Input; /** * ID of the account that created the domain. */ lastOperator?: pulumi.Input; /** * Domain project. */ projectName?: pulumi.Input; /** * List of DNS servers actually used by the domain. */ realDnsServerLists?: pulumi.Input[]>; /** * Total number of DNS records contained in the domain. */ recordCount?: pulumi.Input; /** * Domain notes */ remark?: pulumi.Input; /** * Domain status. This parameter has the following values: 0: Normal. In this state, the domain's DNS resolution records are active. 1: Domain reclaim pending. In this state, the domain's DNS resolution records are inactive. This status indicates you are not the owner of the domain. If you need to manage DNS resolution, you must verify domain ownership. 2: TrafficRoute not used for resolution. In this state, the domain's DNS resolution records are inactive. This status means the DNS server assigned to the domain is not a Cloud DNS server. 3: Abnormal. In this state, the domain's DNS resolution records are inactive. Common causes for this status include: the domain is disabled by the registry or registrar due to lack of real-name verification; DNS server not configured; domain not registered; API timeout when querying the domain, possibly due to network issues. 5: Please change DNS server. This status means you need to update the domain's DNS server to the newly assigned Cloud DNS server due to service upgrade or change. */ stage?: pulumi.Input; /** * Prefix of the subdomain. If the domain is not a subdomain, this parameter is null. */ subDomainHost?: pulumi.Input; tags?: pulumi.Input[]>; /** * Domain feature version. This parameter has the following values: free*inner: Free Edition; professional*inner: Professional Edition; enterprise*inner: Enterprise Edition; ultimate*inner: Flagship Edition; ultimate*exclusive*inner: Premium Edition. */ tradeCode?: pulumi.Input; /** * Last update time for the domain. Update operations include: updating domain remarks, creating DNS records under the domain. */ updatedTime?: pulumi.Input; /** * Domain ID. */ zid?: pulumi.Input; /** * Domain name. */ zoneName?: pulumi.Input; } /** * The set of arguments for constructing a Zone resource. */ export interface ZoneArgs { /** * Domain project. */ projectName?: pulumi.Input; /** * Domain notes */ remark?: pulumi.Input; tags?: pulumi.Input[]>; /** * Domain name. */ zoneName: pulumi.Input; }