RecordProps
Properties for defining a Record.
See https://www.alibabacloud.com/help/ros/developer-reference/aliyun-esa-record
Initializer
import "github.com/alibabacloud-go/ros-cdk/alicloudroscdkesa"
&alicloudroscdkesa.RecordProps {
Data: interface{},
RecordName: interface{},
RecordType: interface{},
SiteId: interface{},
AuthConf: interface{},
BizName: interface{},
Comment: interface{},
HostPolicy: interface{},
Proxied: interface{},
SourceType: interface{},
Ttl: interface{},
}
Properties
| Name | Type | Description |
|---|---|---|
Data | interface{} | Property data: The DNS record information. |
RecordName | interface{} | Property recordName: The record name. |
RecordType | interface{} | Property recordType: The type of the DNS record, such as A\/AAAA, CNAME, and TXT. |
SiteId | interface{} | Property siteId: The website ID. |
AuthConf | interface{} | Property authConf: The origin authentication information of the CNAME record. |
BizName | interface{} | Property bizName: The business scenario of the record for acceleration. |
Comment | interface{} | Property comment: The comment of the record. |
HostPolicy | interface{} | Property hostPolicy: The origin host policy. |
Proxied | interface{} | Property proxied: Specifies whether to proxy the record. |
SourceType | interface{} | Property sourceType: The origin type for the CNAME record. |
Ttl | interface{} | Property ttl: The TTL of the record. |
DataRequired
Data interface{}
- Type: interface{}
Property data: The DNS record information.
The format of this field varies based on the record type. For more information, see [References] https://www.alibabacloud.com/help/doc-detail/2708761.html?spm=openapi-amp.newDocPublishment.0.0.6a0f281feoeVWr.
RecordNameRequired
RecordName interface{}
- Type: interface{}
Property recordName: The record name.
This parameter specifies a filter condition for the query.
RecordTypeRequired
RecordType interface{}
- Type: interface{}
Property recordType: The type of the DNS record, such as A\/AAAA, CNAME, and TXT.
SiteIdRequired
SiteId interface{}
- Type: interface{}
Property siteId: The website ID.
AuthConfOptional
AuthConf interface{}
- Type: interface{}
Property authConf: The origin authentication information of the CNAME record.
BizNameOptional
BizName interface{}
- Type: interface{}
Property bizName: The business scenario of the record for acceleration.
Leave the parameter empty if your record is not proxied. Valid values: image_video: video and image. api: API. web: web page.
CommentOptional
Comment interface{}
- Type: interface{}
Property comment: The comment of the record.
The maximum length is 100 characters.
HostPolicyOptional
HostPolicy interface{}
- Type: interface{}
Property hostPolicy: The origin host policy.
This policy takes effect when the record type is CNAME. You can set the policy in two modes: follow_hostname: Follow the host record. follow_origin_domain: match the origin's domain name.
ProxiedOptional
Proxied interface{}
- Type: interface{}
Property proxied: Specifies whether to proxy the record.
Only CNAME and A/AAAA records can be proxied. Valid values: true false.
SourceTypeOptional
SourceType interface{}
- Type: interface{}
Property sourceType: The origin type for the CNAME record.
This parameter is required when you add a CNAME record. Valid values: OSS: OSS bucket. S3: S3 bucket. LB: load balancer. OP: origin pool. Domain: domain name. If you do not pass this parameter or if you leave its value empty, Domain is used by default.
TtlOptional
Ttl interface{}
- Type: interface{}
Property ttl: The TTL of the record.
Unit: seconds. If the value is 1, the TTL of the record is determined by the system.