Skip to content

Instance

This class encapsulates and extends the ROS resource type ALIYUN::Milvus::Instance.

Initializers

import ros_cdk_milvus
ros_cdk_milvus.Instance(
  scope: Construct,
  id: str,
  components: typing.Union[IResolvable, typing.List[typing.Union[ComponentsProperty, IResolvable]]],
  db_admin_password: typing.Union[str, IResolvable],
  db_version: typing.Union[str, IResolvable],
  instance_name: typing.Union[str, IResolvable],
  payment_type: typing.Union[str, IResolvable],
  vpc_id: typing.Union[str, IResolvable],
  v_switch_ids: typing.Union[IResolvable, typing.List[typing.Union[IResolvable, VSwitchIdsProperty]]],
  zone_id: typing.Union[str, IResolvable],
  ai_function: typing.Union[bool, IResolvable] = None,
  auto_backup: typing.Union[bool, IResolvable] = None,
  auto_pay: typing.Union[bool, IResolvable] = None,
  auto_renew: typing.Union[bool, IResolvable] = None,
  backup_restore_info: typing.Union[IResolvable, BackupRestoreInfoProperty] = None,
  configuration: typing.Union[str, IResolvable] = None,
  encrypted: typing.Union[bool, IResolvable] = None,
  ha: typing.Union[bool, IResolvable] = None,
  is_multi_az_storage: typing.Union[bool, IResolvable] = None,
  kms_key_id: typing.Union[str, IResolvable] = None,
  load_replicas: typing.Union[typing.Union[int, float], IResolvable] = None,
  multi_zone_mode: typing.Union[str, IResolvable] = None,
  payment_duration: typing.Union[typing.Union[int, float], IResolvable] = None,
  payment_duration_unit: typing.Union[str, IResolvable] = None,
  promotion_no: typing.Union[str, IResolvable] = None,
  resource_group_id: typing.Union[str, IResolvable] = None,
  tags: typing.List[TagsProperty] = None,
  enable_resource_property_constraint: bool = None
)
Name Type Description
scope ros_cdk_core.Construct No description.
id str No description.
components typing.Union[ros_cdk_core.IResolvable, typing.List[typing.Union[ComponentsProperty, ros_cdk_core.IResolvable]]] Property components: The component specifications of the instance.
db_admin_password typing.Union[str, ros_cdk_core.IResolvable] Property dbAdminPassword: The database administrator password.
db_version typing.Union[str, ros_cdk_core.IResolvable] Property dbVersion: The database engine version.
instance_name typing.Union[str, ros_cdk_core.IResolvable] Property instanceName: The name of the instance.
payment_type typing.Union[str, ros_cdk_core.IResolvable] Property paymentType: The billing method of the instance.
vpc_id typing.Union[str, ros_cdk_core.IResolvable] Property vpcId: The VPC ID.
v_switch_ids typing.Union[ros_cdk_core.IResolvable, typing.List[typing.Union[ros_cdk_core.IResolvable, VSwitchIdsProperty]]] Property vSwitchIds: The vSwitch configurations.
zone_id typing.Union[str, ros_cdk_core.IResolvable] Property zoneId: The primary zone ID of the instance.
ai_function typing.Union[bool, ros_cdk_core.IResolvable] Property aiFunction: Whether the AI function is enabled.
auto_backup typing.Union[bool, ros_cdk_core.IResolvable] Property autoBackup: Whether automatic backup is enabled.
auto_pay typing.Union[bool, ros_cdk_core.IResolvable] Property autoPay: Whether the order is automatically paid.
auto_renew typing.Union[bool, ros_cdk_core.IResolvable] Property autoRenew: Whether the subscription is automatically renewed.
backup_restore_info typing.Union[ros_cdk_core.IResolvable, BackupRestoreInfoProperty] Property backupRestoreInfo: The backup restore information.
configuration typing.Union[str, ros_cdk_core.IResolvable] Property configuration: The instance configuration in YAML format.
encrypted typing.Union[bool, ros_cdk_core.IResolvable] Property encrypted: Whether OSS encryption is enabled.
ha typing.Union[bool, ros_cdk_core.IResolvable] Property ha: Whether high availability is enabled.
is_multi_az_storage typing.Union[bool, ros_cdk_core.IResolvable] Property isMultiAzStorage: Whether multi-zone storage is enabled.
kms_key_id typing.Union[str, ros_cdk_core.IResolvable] Property kmsKeyId: The ID of the KMS key used for encryption.
load_replicas typing.Union[typing.Union[int, float], ros_cdk_core.IResolvable] Property loadReplicas: The number of load replicas.
multi_zone_mode typing.Union[str, ros_cdk_core.IResolvable] Property multiZoneMode: The multi-zone deployment mode.
payment_duration typing.Union[typing.Union[int, float], ros_cdk_core.IResolvable] Property paymentDuration: The subscription duration.
payment_duration_unit typing.Union[str, ros_cdk_core.IResolvable] Property paymentDurationUnit: The unit of the subscription duration.
promotion_no typing.Union[str, ros_cdk_core.IResolvable] Property promotionNo: The promotion number.
resource_group_id typing.Union[str, ros_cdk_core.IResolvable] Property resourceGroupId: The resource group ID.
tags typing.List[TagsProperty] Property tags: Tags to attach to Milvus instance.
enable_resource_property_constraint bool No description.

scopeRequired

  • Type: ros_cdk_core.Construct

idRequired

  • Type: str

componentsRequired

  • Type: typing.Union[ros_cdk_core.IResolvable, typing.List[typing.Union[ComponentsProperty, ros_cdk_core.IResolvable]]]

Property components: The component specifications of the instance.


db_admin_passwordRequired

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

Property dbAdminPassword: The database administrator password.

The password must be 8 to 30 characters in length and contain at least one uppercase letter, lowercase letter, digit, and special character from @#$%^*_+-.


db_versionRequired

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

Property dbVersion: The database engine version.


instance_nameRequired

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

Property instanceName: The name of the instance.


payment_typeRequired

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

Property paymentType: The billing method of the instance.


vpc_idRequired

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

Property vpcId: The VPC ID.


v_switch_idsRequired

  • Type: typing.Union[ros_cdk_core.IResolvable, typing.List[typing.Union[ros_cdk_core.IResolvable, VSwitchIdsProperty]]]

Property vSwitchIds: The vSwitch configurations.


zone_idRequired

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

Property zoneId: The primary zone ID of the instance.


ai_functionOptional

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

Property aiFunction: Whether the AI function is enabled.


auto_backupOptional

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

Property autoBackup: Whether automatic backup is enabled.


auto_payOptional

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

Property autoPay: Whether the order is automatically paid.


auto_renewOptional

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

Property autoRenew: Whether the subscription is automatically renewed.


backup_restore_infoOptional

Property backupRestoreInfo: The backup restore information.


configurationOptional

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

Property configuration: The instance configuration in YAML format.


encryptedOptional

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

Property encrypted: Whether OSS encryption is enabled.


haOptional

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

Property ha: Whether high availability is enabled.


is_multi_az_storageOptional

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

Property isMultiAzStorage: Whether multi-zone storage is enabled.


kms_key_idOptional

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

Property kmsKeyId: The ID of the KMS key used for encryption.


load_replicasOptional

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

Property loadReplicas: The number of load replicas.


multi_zone_modeOptional

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

Property multiZoneMode: The multi-zone deployment mode.


payment_durationOptional

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

Property paymentDuration: The subscription duration.


payment_duration_unitOptional

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

Property paymentDurationUnit: The unit of the subscription duration.


promotion_noOptional

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

Property promotionNo: The promotion number.


resource_group_idOptional

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

Property resourceGroupId: The resource group ID.


tagsOptional

Property tags: Tags to attach to Milvus instance.

Max support 20 tags to add during create Milvus instance. Each tag with two properties Key and Value, and Key is required.


enable_resource_property_constraintOptional

  • Type: bool

Methods

Name Description
to_string Returns a string representation of this construct.
synthesize Allows this construct to emit artifacts into the cloud assembly during synthesis.
add_condition No description.
add_count No description.
add_dependency No description.
add_resource_desc No description.
apply_removal_policy No description.
fetch_condition No description.
fetch_dependency No description.
fetch_resource_desc No description.
get_att No description.
set_metadata No description.

to_string

def to_string() -> str

Returns a string representation of this construct.

synthesize

def synthesize(
  session: ISynthesisSession
) -> None

Allows this construct to emit artifacts into the cloud assembly during synthesis.

This method is usually implemented by framework-level constructs such as Stack and Asset as they participate in synthesizing the cloud assembly.

sessionRequired

  • Type: ros_cdk_core.ISynthesisSession

The synthesis session.


add_condition

def add_condition(
  condition: RosCondition
) -> None

conditionRequired

  • Type: ros_cdk_core.RosCondition

add_count

def add_count(
  count: typing.Union[typing.Union[int, float], IResolvable]
) -> None

countRequired

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

add_dependency

def add_dependency(
  resource: Resource
) -> None

resourceRequired

  • Type: ros_cdk_core.Resource

add_resource_desc

def add_resource_desc(
  desc: str
) -> None

descRequired

  • Type: str

apply_removal_policy

def apply_removal_policy(
  policy: RemovalPolicy
) -> None

policyRequired

  • Type: ros_cdk_core.RemovalPolicy

fetch_condition

def fetch_condition() -> RosCondition

fetch_dependency

def fetch_dependency() -> typing.List[str]

fetch_resource_desc

def fetch_resource_desc() -> str

get_att

def get_att(
  name: str
) -> IResolvable

nameRequired

  • Type: str

set_metadata

def set_metadata(
  key: str,
  value: typing.Any
) -> None

keyRequired

  • Type: str

valueRequired

  • Type: typing.Any

Static Functions

Name Description
is_construct Return whether the given object is a Construct.

is_construct

import ros_cdk_milvus
ros_cdk_milvus.Instance.is_construct(
  x: typing.Any
)

Return whether the given object is a Construct.

xRequired

  • Type: typing.Any

Properties

Name Type Description
node ros_cdk_core.ConstructNode The construct tree node associated with this construct.
env ros_cdk_core.IResourceEnvironment The environment this resource belongs to.
ref str No description.
stack ros_cdk_core.Stack The stack in which this resource is defined.
resource ros_cdk_core.RosResource No description.
attr_instance_id typing.Union[str, ros_cdk_core.IResolvable] Attribute InstanceId: The ID of the instance.
props InstanceProps No description.

nodeRequired

node: ConstructNode
  • Type: ros_cdk_core.ConstructNode

The construct tree node associated with this construct.


envRequired

env: IResourceEnvironment
  • Type: ros_cdk_core.IResourceEnvironment

The environment this resource belongs to.

For resources that are created and managed by the CDK (generally, those created by creating new class instances like Role, Bucket, etc.), this is always the same as the environment of the stack they belong to; however, for imported resources (those obtained from static methods like fromRoleArn, fromBucketName, etc.), that might be different than the stack they were imported into.


refRequired

ref: str
  • Type: str

stackRequired

stack: Stack
  • Type: ros_cdk_core.Stack

The stack in which this resource is defined.


resourceOptional

resource: RosResource
  • Type: ros_cdk_core.RosResource

attr_instance_idRequired

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

Attribute InstanceId: The ID of the instance.


propsRequired

props: InstanceProps