Skip to content

InstanceProps

Properties for defining a Instance.

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

Initializer

import com.aliyun.ros.cdk.dns.InstanceProps;
InstanceProps.builder()
    .dnsSecurity(java.lang.String)
    .dnsSecurity(IResolvable)
    .domainNumbers(java.lang.Number)
    .domainNumbers(IResolvable)
    .period(java.lang.Number)
    .period(IResolvable)
    .periodUnit(java.lang.String)
    .periodUnit(IResolvable)
    .version(java.lang.String)
    .version(IResolvable)
//  .domain(java.lang.String)
//  .domain(IResolvable)
//  .instanceType(java.lang.String)
//  .instanceType(IResolvable)
//  .renewalStatus(java.lang.String)
//  .renewalStatus(IResolvable)
    .build();

Properties

Name Type Description
dnsSecurity java.lang.String OR com.aliyun.ros.cdk.core.IResolvable Property dnsSecurity: The DNS security policy.
domainNumbers java.lang.Number OR com.aliyun.ros.cdk.core.IResolvable Property domainNumbers: The number of domain names.
period java.lang.Number OR com.aliyun.ros.cdk.core.IResolvable Property period: The subscription duration.
periodUnit java.lang.String OR com.aliyun.ros.cdk.core.IResolvable Property periodUnit: The subscription duration unit.
version java.lang.String OR com.aliyun.ros.cdk.core.IResolvable Property version: The edition of Alibaba Cloud DNS.
domain java.lang.String OR com.aliyun.ros.cdk.core.IResolvable Property domain: The domain name that you want to bind to the instance.
instanceType java.lang.String OR com.aliyun.ros.cdk.core.IResolvable Property instanceType: The type of the instance.
renewalStatus java.lang.String OR com.aliyun.ros.cdk.core.IResolvable Property renewalStatus: The renewal method.

dnsSecurityRequired

public java.lang.Object getDnsSecurity();
  • Type: java.lang.String OR com.aliyun.ros.cdk.core.IResolvable

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

public java.lang.Object getDomainNumbers();
  • Type: java.lang.Number OR com.aliyun.ros.cdk.core.IResolvable

Property domainNumbers: The number of domain names.


periodRequired

public java.lang.Object getPeriod();
  • Type: java.lang.Number OR com.aliyun.ros.cdk.core.IResolvable

Property period: The subscription duration.

Valid values:

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

periodUnitRequired

public java.lang.Object getPeriodUnit();
  • Type: java.lang.String OR com.aliyun.ros.cdk.core.IResolvable

Property periodUnit: The subscription duration unit.


versionRequired

public java.lang.Object getVersion();
  • Type: java.lang.String OR com.aliyun.ros.cdk.core.IResolvable

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

public java.lang.Object getDomain();
  • Type: java.lang.String OR com.aliyun.ros.cdk.core.IResolvable

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

public java.lang.Object getInstanceType();
  • Type: java.lang.String OR com.aliyun.ros.cdk.core.IResolvable

Property instanceType: The type of the instance.

Valid values:

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

renewalStatusOptional

public java.lang.Object getRenewalStatus();
  • Type: java.lang.String OR com.aliyun.ros.cdk.core.IResolvable

Property renewalStatus: The renewal method.

Valid values:

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