Skip to content

InstanceV2Props

Properties for defining a InstanceV2.

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

Initializer

import ros_cdk_cr
ros_cdk_cr.InstanceV2Props(
  instance_name: typing.Union[str, IResolvable],
  instance_type: typing.Union[str, IResolvable],
  payment_type: typing.Union[str, IResolvable],
  custom_oss_bucket: typing.Union[str, IResolvable] = None,
  default_oss_bucket: typing.Union[bool, IResolvable] = None,
  image_scanner: typing.Union[str, IResolvable] = None,
  password: typing.Union[str, IResolvable] = None,
  period: typing.Union[typing.Union[int, float], 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
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.
payment_type typing.Union[str, ros_cdk_core.IResolvable] Property paymentType: Payment type, value: - Subscription: Prepaid.
custom_oss_bucket typing.Union[str, ros_cdk_core.IResolvable] Property customOssBucket: Custom OSS Bucket name.
default_oss_bucket typing.Union[bool, ros_cdk_core.IResolvable] Property defaultOssBucket: Whether to use the default OSS Bucket.
image_scanner typing.Union[str, ros_cdk_core.IResolvable] Property imageScanner: The security scan engine used by the Enterprise Edition of Container Image Service.
password typing.Union[str, ros_cdk_core.IResolvable] Property password: Login password, 8-32 digits, must contain at least two letters, symbols, or numbers.
period typing.Union[typing.Union[int, float], ros_cdk_core.IResolvable] Property period: Prepaid cycle.
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.

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.


payment_typeRequired

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

Property paymentType: Payment type, value: - Subscription: Prepaid.


custom_oss_bucketOptional

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

Property customOssBucket: Custom OSS Bucket name.


default_oss_bucketOptional

default_oss_bucket: typing.Union[bool, IResolvable]
  • Type: typing.Union[bool, ros_cdk_core.IResolvable]

Property defaultOssBucket: Whether to use the default OSS Bucket.

Value: true: Use the default OSS Bucket. false: Use a custom OSS Bucket.


image_scannerOptional

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

Property imageScanner: The security scan engine used by the Enterprise Edition of Container Image Service.

Value: ACR: Uses the Trivy scan engine provided by default. SAS: uses the enhanced cloud security scan engine.


passwordOptional

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

Property password: Login password, 8-32 digits, must contain at least two letters, symbols, or numbers.


periodOptional

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.

must be set when creating a prepaid instance.


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.