Skip to content

InstanceProps

Properties for defining a Instance.

See https://www.alibabacloud.com/help/ros/developer-reference/aliyun-dns-instance

Initializer

import "github.com/alibabacloud-go/ros-cdk/alicloudroscdkdns"
&alicloudroscdkdns.InstanceProps {
    DnsSecurity: interface{},
    DomainNumbers: interface{},
    Period: interface{},
    PeriodUnit: interface{},
    Version: interface{},
    Domain: interface{},
    InstanceType: interface{},
    RenewalStatus: interface{},
}

Properties

Name Type Description
DnsSecurity interface{} Property dnsSecurity: The DNS security policy.
DomainNumbers interface{} Property domainNumbers: The number of domain names.
Period interface{} Property period: The subscription duration.
PeriodUnit interface{} Property periodUnit: The subscription duration unit.
Version interface{} Property version: The edition of Alibaba Cloud DNS.
Domain interface{} Property domain: The domain name that you want to bind to the instance.
InstanceType interface{} Property instanceType: The type of the instance.
RenewalStatus interface{} Property renewalStatus: The renewal method.

DnsSecurityRequired

DnsSecurity interface{}
  • Type: interface{}

Property dnsSecurity: The DNS security policy.

Valid values:

  • no: No protection against DNS attacks is provided.
  • basic: Basic protection against DNS attacks is provided.
  • advanced: Advanced protection against DNS attacks is provided.

DomainNumbersRequired

DomainNumbers interface{}
  • Type: interface{}

Property domainNumbers: The number of domain names.


PeriodRequired

Period interface{}
  • Type: interface{}

Property period: The subscription duration.

Valid values:

  • If unit is month: 1, 2, 3, 6
  • If unit is year: 1, 2

PeriodUnitRequired

PeriodUnit interface{}
  • Type: interface{}

Property periodUnit: The subscription duration unit.


VersionRequired

Version interface{}
  • Type: interface{}

Property version: The edition of Alibaba Cloud DNS.

Valid values: If create hosted public zone:

  • version_personal: Personal Edition.
  • version_enterprise_basic: Enterprise Standard Edition.
  • version_enterprise_advanced: Enterprise Ultimate Edition. If create cached public zone:
  • version_cached_basicNote: Only upgrade operations are supported after instance creation.

DomainOptional

Domain interface{}
  • Type: interface{}

Property domain: The domain name that you want to bind to the instance.

If you want to bind multiple domain names to the instance, separate these domain names with commas (,).


InstanceTypeOptional

InstanceType interface{}
  • Type: interface{}

Property instanceType: The type of the instance.

Valid values:

  • HostedPublicZone: Hosted Public Zone
  • CachedPublicZone: Cached Public Zone.

RenewalStatusOptional

RenewalStatus interface{}
  • Type: interface{}

Property renewalStatus: The renewal method.

Valid values:

  • AutoRenewal: The instance is automatically renewed.
  • ManualRenewal: The instance is manually renewed. Default value: ManualRenewal.