Skip to content

InstanceProps

Properties for defining a Instance.

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

Initializer

import ros_cdk_dns
ros_cdk_dns.InstanceProps(
  dns_security: typing.Union[str, IResolvable],
  domain_numbers: typing.Union[typing.Union[int, float], IResolvable],
  period: typing.Union[typing.Union[int, float], IResolvable],
  period_unit: typing.Union[str, IResolvable],
  version: typing.Union[str, IResolvable],
  domain: typing.Union[str, IResolvable] = None,
  instance_type: typing.Union[str, IResolvable] = None,
  renewal_status: typing.Union[str, IResolvable] = None
)

Properties

Name Type Description
dns_security typing.Union[str, ros_cdk_core.IResolvable] Property dnsSecurity: The DNS security policy.
domain_numbers typing.Union[typing.Union[int, float], ros_cdk_core.IResolvable] Property domainNumbers: The number of domain names.
period typing.Union[typing.Union[int, float], ros_cdk_core.IResolvable] Property period: The subscription duration.
period_unit typing.Union[str, ros_cdk_core.IResolvable] Property periodUnit: The subscription duration unit.
version typing.Union[str, ros_cdk_core.IResolvable] Property version: The edition of Alibaba Cloud DNS.
domain typing.Union[str, ros_cdk_core.IResolvable] Property domain: The domain name that you want to bind to the instance.
instance_type typing.Union[str, ros_cdk_core.IResolvable] Property instanceType: The type of the instance.
renewal_status typing.Union[str, ros_cdk_core.IResolvable] Property renewalStatus: The renewal method.

dns_securityRequired

dns_security: typing.Union[str, IResolvable]
  • Type: typing.Union[str, 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.

domain_numbersRequired

domain_numbers: typing.Union[typing.Union[int, float], IResolvable]
  • Type: typing.Union[typing.Union[int, float], ros_cdk_core.IResolvable]

Property domainNumbers: The number of domain names.


periodRequired

period: typing.Union[typing.Union[int, float], IResolvable]
  • Type: typing.Union[typing.Union[int, float], 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

period_unitRequired

period_unit: typing.Union[str, IResolvable]
  • Type: typing.Union[str, ros_cdk_core.IResolvable]

Property periodUnit: The subscription duration unit.


versionRequired

version: typing.Union[str, IResolvable]
  • Type: typing.Union[str, 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

domain: typing.Union[str, IResolvable]
  • Type: typing.Union[str, 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 (,).


instance_typeOptional

instance_type: typing.Union[str, IResolvable]
  • Type: typing.Union[str, ros_cdk_core.IResolvable]

Property instanceType: The type of the instance.

Valid values:

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

renewal_statusOptional

renewal_status: typing.Union[str, IResolvable]
  • Type: typing.Union[str, 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.