# coding=utf-8
# *** WARNING: this file was generated by the Pulumi Terraform Bridge (tfgen) Tool. ***
# *** Do not edit by hand unless you're certain you know what you are doing! ***

import builtins
import copy
import warnings
import sys
import pulumi
import pulumi.runtime
from typing import Any, Mapping, Optional, Sequence, Union, overload
if sys.version_info >= (3, 11):
    from typing import NotRequired, TypedDict, TypeAlias
else:
    from typing_extensions import NotRequired, TypedDict, TypeAlias
from .. import _utilities

__all__ = ['RecordArgs', 'Record']

@pulumi.input_type
class RecordArgs:
    def __init__(__self__, *,
                 host: pulumi.Input[builtins.str],
                 type: pulumi.Input[builtins.str],
                 value: pulumi.Input[builtins.str],
                 zid: pulumi.Input[builtins.int],
                 enable: Optional[pulumi.Input[builtins.bool]] = None,
                 line: Optional[pulumi.Input[builtins.str]] = None,
                 remark: Optional[pulumi.Input[builtins.str]] = None,
                 ttl: Optional[pulumi.Input[builtins.int]] = None,
                 weight: Optional[pulumi.Input[builtins.int]] = None):
        """
        The set of arguments for constructing a Record resource.
        :param pulumi.Input[builtins.str] host: 子域名的域名前缀。
        :param pulumi.Input[builtins.str] type: 解析记录类型。该参数的取值如下：A：A 记录。AAAA：AAAA 记录。CNAME：CNAME 记录。TXT：TXT 记录。MX：MX 记录。PTR：PTR 记录。A：A 记录。AAAA：AAAA 记录。CNAME：CNAME 记录。TXT：TXT 记录。MX：MX 记录。PTR：PTR 记录。
        :param pulumi.Input[builtins.str] value: 记录值。
        :param pulumi.Input[builtins.int] zid: 域名 ID。
        :param pulumi.Input[builtins.bool] enable: 解析记录是否被启用。
        :param pulumi.Input[builtins.str] line: 解析记录的线路，只能是默认线路 default。
        :param pulumi.Input[builtins.str] remark: 备注。支持 UTF-8 字符。不能超过 16 个字符。默认值为空字符串。
        :param pulumi.Input[builtins.int] ttl: 解析记录的过期时间。单位为秒。默认值为 600。
        :param pulumi.Input[builtins.int] weight: 记录的权重。只有域名开启了负载均衡后，记录值的权重才会生效。
        """
        pulumi.set(__self__, "host", host)
        pulumi.set(__self__, "type", type)
        pulumi.set(__self__, "value", value)
        pulumi.set(__self__, "zid", zid)
        if enable is not None:
            pulumi.set(__self__, "enable", enable)
        if line is not None:
            pulumi.set(__self__, "line", line)
        if remark is not None:
            pulumi.set(__self__, "remark", remark)
        if ttl is not None:
            pulumi.set(__self__, "ttl", ttl)
        if weight is not None:
            pulumi.set(__self__, "weight", weight)

    @property
    @pulumi.getter
    def host(self) -> pulumi.Input[builtins.str]:
        """
        子域名的域名前缀。
        """
        return pulumi.get(self, "host")

    @host.setter
    def host(self, value: pulumi.Input[builtins.str]):
        pulumi.set(self, "host", value)

    @property
    @pulumi.getter
    def type(self) -> pulumi.Input[builtins.str]:
        """
        解析记录类型。该参数的取值如下：A：A 记录。AAAA：AAAA 记录。CNAME：CNAME 记录。TXT：TXT 记录。MX：MX 记录。PTR：PTR 记录。A：A 记录。AAAA：AAAA 记录。CNAME：CNAME 记录。TXT：TXT 记录。MX：MX 记录。PTR：PTR 记录。
        """
        return pulumi.get(self, "type")

    @type.setter
    def type(self, value: pulumi.Input[builtins.str]):
        pulumi.set(self, "type", value)

    @property
    @pulumi.getter
    def value(self) -> pulumi.Input[builtins.str]:
        """
        记录值。
        """
        return pulumi.get(self, "value")

    @value.setter
    def value(self, value: pulumi.Input[builtins.str]):
        pulumi.set(self, "value", value)

    @property
    @pulumi.getter
    def zid(self) -> pulumi.Input[builtins.int]:
        """
        域名 ID。
        """
        return pulumi.get(self, "zid")

    @zid.setter
    def zid(self, value: pulumi.Input[builtins.int]):
        pulumi.set(self, "zid", value)

    @property
    @pulumi.getter
    def enable(self) -> Optional[pulumi.Input[builtins.bool]]:
        """
        解析记录是否被启用。
        """
        return pulumi.get(self, "enable")

    @enable.setter
    def enable(self, value: Optional[pulumi.Input[builtins.bool]]):
        pulumi.set(self, "enable", value)

    @property
    @pulumi.getter
    def line(self) -> Optional[pulumi.Input[builtins.str]]:
        """
        解析记录的线路，只能是默认线路 default。
        """
        return pulumi.get(self, "line")

    @line.setter
    def line(self, value: Optional[pulumi.Input[builtins.str]]):
        pulumi.set(self, "line", value)

    @property
    @pulumi.getter
    def remark(self) -> Optional[pulumi.Input[builtins.str]]:
        """
        备注。支持 UTF-8 字符。不能超过 16 个字符。默认值为空字符串。
        """
        return pulumi.get(self, "remark")

    @remark.setter
    def remark(self, value: Optional[pulumi.Input[builtins.str]]):
        pulumi.set(self, "remark", value)

    @property
    @pulumi.getter
    def ttl(self) -> Optional[pulumi.Input[builtins.int]]:
        """
        解析记录的过期时间。单位为秒。默认值为 600。
        """
        return pulumi.get(self, "ttl")

    @ttl.setter
    def ttl(self, value: Optional[pulumi.Input[builtins.int]]):
        pulumi.set(self, "ttl", value)

    @property
    @pulumi.getter
    def weight(self) -> Optional[pulumi.Input[builtins.int]]:
        """
        记录的权重。只有域名开启了负载均衡后，记录值的权重才会生效。
        """
        return pulumi.get(self, "weight")

    @weight.setter
    def weight(self, value: Optional[pulumi.Input[builtins.int]]):
        pulumi.set(self, "weight", value)


@pulumi.input_type
class _RecordState:
    def __init__(__self__, *,
                 created_at: Optional[pulumi.Input[builtins.str]] = None,
                 enable: Optional[pulumi.Input[builtins.bool]] = None,
                 host: Optional[pulumi.Input[builtins.str]] = None,
                 last_operator: Optional[pulumi.Input[builtins.str]] = None,
                 line: Optional[pulumi.Input[builtins.str]] = None,
                 record_id: Optional[pulumi.Input[builtins.str]] = None,
                 remark: Optional[pulumi.Input[builtins.str]] = None,
                 ttl: Optional[pulumi.Input[builtins.int]] = None,
                 type: Optional[pulumi.Input[builtins.str]] = None,
                 updated_at: Optional[pulumi.Input[builtins.str]] = None,
                 value: Optional[pulumi.Input[builtins.str]] = None,
                 weight: Optional[pulumi.Input[builtins.int]] = None,
                 zid: Optional[pulumi.Input[builtins.int]] = None):
        """
        Input properties used for looking up and filtering Record resources.
        :param pulumi.Input[builtins.str] created_at: 解析记录的创建时间。
        :param pulumi.Input[builtins.bool] enable: 解析记录是否被启用。
        :param pulumi.Input[builtins.str] host: 子域名的域名前缀。
        :param pulumi.Input[builtins.str] last_operator: 最近一次更新解析记录的账号 ID。
        :param pulumi.Input[builtins.str] line: 解析记录的线路，只能是默认线路 default。
        :param pulumi.Input[builtins.str] record_id: 解析记录 ID。
        :param pulumi.Input[builtins.str] remark: 备注。支持 UTF-8 字符。不能超过 16 个字符。默认值为空字符串。
        :param pulumi.Input[builtins.int] ttl: 解析记录的过期时间。单位为秒。默认值为 600。
        :param pulumi.Input[builtins.str] type: 解析记录类型。该参数的取值如下：A：A 记录。AAAA：AAAA 记录。CNAME：CNAME 记录。TXT：TXT 记录。MX：MX 记录。PTR：PTR 记录。A：A 记录。AAAA：AAAA 记录。CNAME：CNAME 记录。TXT：TXT 记录。MX：MX 记录。PTR：PTR 记录。
        :param pulumi.Input[builtins.str] updated_at: 解析记录最近一次的更新时间。
        :param pulumi.Input[builtins.str] value: 记录值。
        :param pulumi.Input[builtins.int] weight: 记录的权重。只有域名开启了负载均衡后，记录值的权重才会生效。
        :param pulumi.Input[builtins.int] zid: 域名 ID。
        """
        if created_at is not None:
            pulumi.set(__self__, "created_at", created_at)
        if enable is not None:
            pulumi.set(__self__, "enable", enable)
        if host is not None:
            pulumi.set(__self__, "host", host)
        if last_operator is not None:
            pulumi.set(__self__, "last_operator", last_operator)
        if line is not None:
            pulumi.set(__self__, "line", line)
        if record_id is not None:
            pulumi.set(__self__, "record_id", record_id)
        if remark is not None:
            pulumi.set(__self__, "remark", remark)
        if ttl is not None:
            pulumi.set(__self__, "ttl", ttl)
        if type is not None:
            pulumi.set(__self__, "type", type)
        if updated_at is not None:
            pulumi.set(__self__, "updated_at", updated_at)
        if value is not None:
            pulumi.set(__self__, "value", value)
        if weight is not None:
            pulumi.set(__self__, "weight", weight)
        if zid is not None:
            pulumi.set(__self__, "zid", zid)

    @property
    @pulumi.getter(name="createdAt")
    def created_at(self) -> Optional[pulumi.Input[builtins.str]]:
        """
        解析记录的创建时间。
        """
        return pulumi.get(self, "created_at")

    @created_at.setter
    def created_at(self, value: Optional[pulumi.Input[builtins.str]]):
        pulumi.set(self, "created_at", value)

    @property
    @pulumi.getter
    def enable(self) -> Optional[pulumi.Input[builtins.bool]]:
        """
        解析记录是否被启用。
        """
        return pulumi.get(self, "enable")

    @enable.setter
    def enable(self, value: Optional[pulumi.Input[builtins.bool]]):
        pulumi.set(self, "enable", value)

    @property
    @pulumi.getter
    def host(self) -> Optional[pulumi.Input[builtins.str]]:
        """
        子域名的域名前缀。
        """
        return pulumi.get(self, "host")

    @host.setter
    def host(self, value: Optional[pulumi.Input[builtins.str]]):
        pulumi.set(self, "host", value)

    @property
    @pulumi.getter(name="lastOperator")
    def last_operator(self) -> Optional[pulumi.Input[builtins.str]]:
        """
        最近一次更新解析记录的账号 ID。
        """
        return pulumi.get(self, "last_operator")

    @last_operator.setter
    def last_operator(self, value: Optional[pulumi.Input[builtins.str]]):
        pulumi.set(self, "last_operator", value)

    @property
    @pulumi.getter
    def line(self) -> Optional[pulumi.Input[builtins.str]]:
        """
        解析记录的线路，只能是默认线路 default。
        """
        return pulumi.get(self, "line")

    @line.setter
    def line(self, value: Optional[pulumi.Input[builtins.str]]):
        pulumi.set(self, "line", value)

    @property
    @pulumi.getter(name="recordId")
    def record_id(self) -> Optional[pulumi.Input[builtins.str]]:
        """
        解析记录 ID。
        """
        return pulumi.get(self, "record_id")

    @record_id.setter
    def record_id(self, value: Optional[pulumi.Input[builtins.str]]):
        pulumi.set(self, "record_id", value)

    @property
    @pulumi.getter
    def remark(self) -> Optional[pulumi.Input[builtins.str]]:
        """
        备注。支持 UTF-8 字符。不能超过 16 个字符。默认值为空字符串。
        """
        return pulumi.get(self, "remark")

    @remark.setter
    def remark(self, value: Optional[pulumi.Input[builtins.str]]):
        pulumi.set(self, "remark", value)

    @property
    @pulumi.getter
    def ttl(self) -> Optional[pulumi.Input[builtins.int]]:
        """
        解析记录的过期时间。单位为秒。默认值为 600。
        """
        return pulumi.get(self, "ttl")

    @ttl.setter
    def ttl(self, value: Optional[pulumi.Input[builtins.int]]):
        pulumi.set(self, "ttl", value)

    @property
    @pulumi.getter
    def type(self) -> Optional[pulumi.Input[builtins.str]]:
        """
        解析记录类型。该参数的取值如下：A：A 记录。AAAA：AAAA 记录。CNAME：CNAME 记录。TXT：TXT 记录。MX：MX 记录。PTR：PTR 记录。A：A 记录。AAAA：AAAA 记录。CNAME：CNAME 记录。TXT：TXT 记录。MX：MX 记录。PTR：PTR 记录。
        """
        return pulumi.get(self, "type")

    @type.setter
    def type(self, value: Optional[pulumi.Input[builtins.str]]):
        pulumi.set(self, "type", value)

    @property
    @pulumi.getter(name="updatedAt")
    def updated_at(self) -> Optional[pulumi.Input[builtins.str]]:
        """
        解析记录最近一次的更新时间。
        """
        return pulumi.get(self, "updated_at")

    @updated_at.setter
    def updated_at(self, value: Optional[pulumi.Input[builtins.str]]):
        pulumi.set(self, "updated_at", value)

    @property
    @pulumi.getter
    def value(self) -> Optional[pulumi.Input[builtins.str]]:
        """
        记录值。
        """
        return pulumi.get(self, "value")

    @value.setter
    def value(self, value: Optional[pulumi.Input[builtins.str]]):
        pulumi.set(self, "value", value)

    @property
    @pulumi.getter
    def weight(self) -> Optional[pulumi.Input[builtins.int]]:
        """
        记录的权重。只有域名开启了负载均衡后，记录值的权重才会生效。
        """
        return pulumi.get(self, "weight")

    @weight.setter
    def weight(self, value: Optional[pulumi.Input[builtins.int]]):
        pulumi.set(self, "weight", value)

    @property
    @pulumi.getter
    def zid(self) -> Optional[pulumi.Input[builtins.int]]:
        """
        域名 ID。
        """
        return pulumi.get(self, "zid")

    @zid.setter
    def zid(self, value: Optional[pulumi.Input[builtins.int]]):
        pulumi.set(self, "zid", value)


@pulumi.type_token("bytepluscc:privatezone/record:Record")
class Record(pulumi.CustomResource):
    @overload
    def __init__(__self__,
                 resource_name: str,
                 opts: Optional[pulumi.ResourceOptions] = None,
                 enable: Optional[pulumi.Input[builtins.bool]] = None,
                 host: Optional[pulumi.Input[builtins.str]] = None,
                 line: Optional[pulumi.Input[builtins.str]] = None,
                 remark: Optional[pulumi.Input[builtins.str]] = None,
                 ttl: Optional[pulumi.Input[builtins.int]] = None,
                 type: Optional[pulumi.Input[builtins.str]] = None,
                 value: Optional[pulumi.Input[builtins.str]] = None,
                 weight: Optional[pulumi.Input[builtins.int]] = None,
                 zid: Optional[pulumi.Input[builtins.int]] = None,
                 __props__=None):
        """
        解析记录是域名与 VPC 内资源信息的映射。

        ## Example Usage

        ```python
        import pulumi
        import pulumi_bytepluscc as bytepluscc

        private_zone_record_demo = bytepluscc.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 bytepluscc:privatezone/record:Record example "record_id"
        ```

        :param str resource_name: The name of the resource.
        :param pulumi.ResourceOptions opts: Options for the resource.
        :param pulumi.Input[builtins.bool] enable: 解析记录是否被启用。
        :param pulumi.Input[builtins.str] host: 子域名的域名前缀。
        :param pulumi.Input[builtins.str] line: 解析记录的线路，只能是默认线路 default。
        :param pulumi.Input[builtins.str] remark: 备注。支持 UTF-8 字符。不能超过 16 个字符。默认值为空字符串。
        :param pulumi.Input[builtins.int] ttl: 解析记录的过期时间。单位为秒。默认值为 600。
        :param pulumi.Input[builtins.str] type: 解析记录类型。该参数的取值如下：A：A 记录。AAAA：AAAA 记录。CNAME：CNAME 记录。TXT：TXT 记录。MX：MX 记录。PTR：PTR 记录。A：A 记录。AAAA：AAAA 记录。CNAME：CNAME 记录。TXT：TXT 记录。MX：MX 记录。PTR：PTR 记录。
        :param pulumi.Input[builtins.str] value: 记录值。
        :param pulumi.Input[builtins.int] weight: 记录的权重。只有域名开启了负载均衡后，记录值的权重才会生效。
        :param pulumi.Input[builtins.int] zid: 域名 ID。
        """
        ...
    @overload
    def __init__(__self__,
                 resource_name: str,
                 args: RecordArgs,
                 opts: Optional[pulumi.ResourceOptions] = None):
        """
        解析记录是域名与 VPC 内资源信息的映射。

        ## Example Usage

        ```python
        import pulumi
        import pulumi_bytepluscc as bytepluscc

        private_zone_record_demo = bytepluscc.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 bytepluscc:privatezone/record:Record example "record_id"
        ```

        :param str resource_name: The name of the resource.
        :param RecordArgs args: The arguments to use to populate this resource's properties.
        :param pulumi.ResourceOptions opts: Options for the resource.
        """
        ...
    def __init__(__self__, resource_name: str, *args, **kwargs):
        resource_args, opts = _utilities.get_resource_args_opts(RecordArgs, pulumi.ResourceOptions, *args, **kwargs)
        if resource_args is not None:
            __self__._internal_init(resource_name, opts, **resource_args.__dict__)
        else:
            __self__._internal_init(resource_name, *args, **kwargs)

    def _internal_init(__self__,
                 resource_name: str,
                 opts: Optional[pulumi.ResourceOptions] = None,
                 enable: Optional[pulumi.Input[builtins.bool]] = None,
                 host: Optional[pulumi.Input[builtins.str]] = None,
                 line: Optional[pulumi.Input[builtins.str]] = None,
                 remark: Optional[pulumi.Input[builtins.str]] = None,
                 ttl: Optional[pulumi.Input[builtins.int]] = None,
                 type: Optional[pulumi.Input[builtins.str]] = None,
                 value: Optional[pulumi.Input[builtins.str]] = None,
                 weight: Optional[pulumi.Input[builtins.int]] = None,
                 zid: Optional[pulumi.Input[builtins.int]] = None,
                 __props__=None):
        opts = pulumi.ResourceOptions.merge(_utilities.get_resource_opts_defaults(), opts)
        if not isinstance(opts, pulumi.ResourceOptions):
            raise TypeError('Expected resource options to be a ResourceOptions instance')
        if opts.id is None:
            if __props__ is not None:
                raise TypeError('__props__ is only valid when passed in combination with a valid opts.id to get an existing resource')
            __props__ = RecordArgs.__new__(RecordArgs)

            __props__.__dict__["enable"] = enable
            if host is None and not opts.urn:
                raise TypeError("Missing required property 'host'")
            __props__.__dict__["host"] = host
            __props__.__dict__["line"] = line
            __props__.__dict__["remark"] = remark
            __props__.__dict__["ttl"] = ttl
            if type is None and not opts.urn:
                raise TypeError("Missing required property 'type'")
            __props__.__dict__["type"] = type
            if value is None and not opts.urn:
                raise TypeError("Missing required property 'value'")
            __props__.__dict__["value"] = value
            __props__.__dict__["weight"] = weight
            if zid is None and not opts.urn:
                raise TypeError("Missing required property 'zid'")
            __props__.__dict__["zid"] = zid
            __props__.__dict__["created_at"] = None
            __props__.__dict__["last_operator"] = None
            __props__.__dict__["record_id"] = None
            __props__.__dict__["updated_at"] = None
        super(Record, __self__).__init__(
            'bytepluscc:privatezone/record:Record',
            resource_name,
            __props__,
            opts)

    @staticmethod
    def get(resource_name: str,
            id: pulumi.Input[str],
            opts: Optional[pulumi.ResourceOptions] = None,
            created_at: Optional[pulumi.Input[builtins.str]] = None,
            enable: Optional[pulumi.Input[builtins.bool]] = None,
            host: Optional[pulumi.Input[builtins.str]] = None,
            last_operator: Optional[pulumi.Input[builtins.str]] = None,
            line: Optional[pulumi.Input[builtins.str]] = None,
            record_id: Optional[pulumi.Input[builtins.str]] = None,
            remark: Optional[pulumi.Input[builtins.str]] = None,
            ttl: Optional[pulumi.Input[builtins.int]] = None,
            type: Optional[pulumi.Input[builtins.str]] = None,
            updated_at: Optional[pulumi.Input[builtins.str]] = None,
            value: Optional[pulumi.Input[builtins.str]] = None,
            weight: Optional[pulumi.Input[builtins.int]] = None,
            zid: Optional[pulumi.Input[builtins.int]] = None) -> 'Record':
        """
        Get an existing Record resource's state with the given name, id, and optional extra
        properties used to qualify the lookup.

        :param str resource_name: The unique name of the resulting resource.
        :param pulumi.Input[str] id: The unique provider ID of the resource to lookup.
        :param pulumi.ResourceOptions opts: Options for the resource.
        :param pulumi.Input[builtins.str] created_at: 解析记录的创建时间。
        :param pulumi.Input[builtins.bool] enable: 解析记录是否被启用。
        :param pulumi.Input[builtins.str] host: 子域名的域名前缀。
        :param pulumi.Input[builtins.str] last_operator: 最近一次更新解析记录的账号 ID。
        :param pulumi.Input[builtins.str] line: 解析记录的线路，只能是默认线路 default。
        :param pulumi.Input[builtins.str] record_id: 解析记录 ID。
        :param pulumi.Input[builtins.str] remark: 备注。支持 UTF-8 字符。不能超过 16 个字符。默认值为空字符串。
        :param pulumi.Input[builtins.int] ttl: 解析记录的过期时间。单位为秒。默认值为 600。
        :param pulumi.Input[builtins.str] type: 解析记录类型。该参数的取值如下：A：A 记录。AAAA：AAAA 记录。CNAME：CNAME 记录。TXT：TXT 记录。MX：MX 记录。PTR：PTR 记录。A：A 记录。AAAA：AAAA 记录。CNAME：CNAME 记录。TXT：TXT 记录。MX：MX 记录。PTR：PTR 记录。
        :param pulumi.Input[builtins.str] updated_at: 解析记录最近一次的更新时间。
        :param pulumi.Input[builtins.str] value: 记录值。
        :param pulumi.Input[builtins.int] weight: 记录的权重。只有域名开启了负载均衡后，记录值的权重才会生效。
        :param pulumi.Input[builtins.int] zid: 域名 ID。
        """
        opts = pulumi.ResourceOptions.merge(opts, pulumi.ResourceOptions(id=id))

        __props__ = _RecordState.__new__(_RecordState)

        __props__.__dict__["created_at"] = created_at
        __props__.__dict__["enable"] = enable
        __props__.__dict__["host"] = host
        __props__.__dict__["last_operator"] = last_operator
        __props__.__dict__["line"] = line
        __props__.__dict__["record_id"] = record_id
        __props__.__dict__["remark"] = remark
        __props__.__dict__["ttl"] = ttl
        __props__.__dict__["type"] = type
        __props__.__dict__["updated_at"] = updated_at
        __props__.__dict__["value"] = value
        __props__.__dict__["weight"] = weight
        __props__.__dict__["zid"] = zid
        return Record(resource_name, opts=opts, __props__=__props__)

    @property
    @pulumi.getter(name="createdAt")
    def created_at(self) -> pulumi.Output[builtins.str]:
        """
        解析记录的创建时间。
        """
        return pulumi.get(self, "created_at")

    @property
    @pulumi.getter
    def enable(self) -> pulumi.Output[builtins.bool]:
        """
        解析记录是否被启用。
        """
        return pulumi.get(self, "enable")

    @property
    @pulumi.getter
    def host(self) -> pulumi.Output[builtins.str]:
        """
        子域名的域名前缀。
        """
        return pulumi.get(self, "host")

    @property
    @pulumi.getter(name="lastOperator")
    def last_operator(self) -> pulumi.Output[builtins.str]:
        """
        最近一次更新解析记录的账号 ID。
        """
        return pulumi.get(self, "last_operator")

    @property
    @pulumi.getter
    def line(self) -> pulumi.Output[builtins.str]:
        """
        解析记录的线路，只能是默认线路 default。
        """
        return pulumi.get(self, "line")

    @property
    @pulumi.getter(name="recordId")
    def record_id(self) -> pulumi.Output[builtins.str]:
        """
        解析记录 ID。
        """
        return pulumi.get(self, "record_id")

    @property
    @pulumi.getter
    def remark(self) -> pulumi.Output[builtins.str]:
        """
        备注。支持 UTF-8 字符。不能超过 16 个字符。默认值为空字符串。
        """
        return pulumi.get(self, "remark")

    @property
    @pulumi.getter
    def ttl(self) -> pulumi.Output[builtins.int]:
        """
        解析记录的过期时间。单位为秒。默认值为 600。
        """
        return pulumi.get(self, "ttl")

    @property
    @pulumi.getter
    def type(self) -> pulumi.Output[builtins.str]:
        """
        解析记录类型。该参数的取值如下：A：A 记录。AAAA：AAAA 记录。CNAME：CNAME 记录。TXT：TXT 记录。MX：MX 记录。PTR：PTR 记录。A：A 记录。AAAA：AAAA 记录。CNAME：CNAME 记录。TXT：TXT 记录。MX：MX 记录。PTR：PTR 记录。
        """
        return pulumi.get(self, "type")

    @property
    @pulumi.getter(name="updatedAt")
    def updated_at(self) -> pulumi.Output[builtins.str]:
        """
        解析记录最近一次的更新时间。
        """
        return pulumi.get(self, "updated_at")

    @property
    @pulumi.getter
    def value(self) -> pulumi.Output[builtins.str]:
        """
        记录值。
        """
        return pulumi.get(self, "value")

    @property
    @pulumi.getter
    def weight(self) -> pulumi.Output[builtins.int]:
        """
        记录的权重。只有域名开启了负载均衡后，记录值的权重才会生效。
        """
        return pulumi.get(self, "weight")

    @property
    @pulumi.getter
    def zid(self) -> pulumi.Output[builtins.int]:
        """
        域名 ID。
        """
        return pulumi.get(self, "zid")

