Skip to content

InstanceProps

Properties for defining a Instance.

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

Initializer

import ros_cdk_cr
ros_cdk_cr.InstanceProps(
  image_scanner: typing.Union[str, IResolvable],
  instance_name: typing.Union[str, IResolvable],
  instance_type: typing.Union[str, IResolvable],
  period: typing.Union[typing.Union[int, float], IResolvable],
  instance_storage_name: typing.Union[str, IResolvable] = None,
  renewal_status: typing.Union[str, IResolvable] = None,
  renew_period: typing.Union[typing.Union[int, float], IResolvable] = None,
  resource_group_id: typing.Union[str, IResolvable] = None
)

Properties

Name Type Description
image_scanner typing.Union[str, ros_cdk_core.IResolvable] Property imageScanner: Security scan engine.
instance_name typing.Union[str, ros_cdk_core.IResolvable] Property instanceName: Instance name.The value contains 3 to 30 lowercase letters, digits, and delimiters "-"(it can not be first or last).
instance_type typing.Union[str, ros_cdk_core.IResolvable] Property instanceType: The Value configuration of the Group 1 attribute of Container Mirror Service Enterprise Edition.
period typing.Union[typing.Union[int, float], ros_cdk_core.IResolvable] Property period: Prepaid cycle.
instance_storage_name typing.Union[str, ros_cdk_core.IResolvable] Property instanceStorageName: Custom OSS Bucket name.
renewal_status typing.Union[str, ros_cdk_core.IResolvable] Property renewalStatus: Automatic renewal status, value: - AutoRenewal: automatic renewal.
renew_period typing.Union[typing.Union[int, float], ros_cdk_core.IResolvable] Property renewPeriod: Automatic renewal cycle, in months.
resource_group_id typing.Union[str, ros_cdk_core.IResolvable] Property resourceGroupId: The ID of the resource group.

image_scannerRequired

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

Property imageScanner: Security scan engine.


instance_nameRequired

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

Property instanceName: Instance name.The value contains 3 to 30 lowercase letters, digits, and delimiters "-"(it can not be first or last).


instance_typeRequired

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

Property instanceType: The Value configuration of the Group 1 attribute of Container Mirror Service Enterprise Edition.

Valid values: Basic: Basic instance Standard: Standard instance Advanced: Advanced Edition Instance.


periodRequired

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

Property period: Prepaid cycle.

The unit is Monthly, please enter an integer multiple of 12 for annual paid products.


instance_storage_nameOptional

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

Property instanceStorageName: Custom OSS Bucket name.


renewal_statusOptional

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

Property renewalStatus: Automatic renewal status, value: - AutoRenewal: automatic renewal.

  • ManualRenewal: manual renewal. Default ManualRenewal.

renew_periodOptional

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

Property renewPeriod: Automatic renewal cycle, in months.

When RenewalStatus is set to AutoRenewal, it must be set.


resource_group_idOptional

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

Property resourceGroupId: The ID of the resource group.