Skip to content

InstancesProps

Properties for defining a Instances.

See https://www.alibabacloud.com/help/ros/developer-reference/datasource-mongodb-instances

Initializer

import "github.com/alibabacloud-go/ros-cdk/alicloudroscdkmongodb/datasource"
&datasource.InstancesProps {
    ChargeType: interface{},
    ConnectionDomain: interface{},
    DbInstanceClass: interface{},
    DbInstanceDescription: interface{},
    DbInstanceId: interface{},
    DbInstanceStatus: interface{},
    DbInstanceType: interface{},
    EngineVersion: interface{},
    Expired: interface{},
    NetworkType: interface{},
    RefreshOptions: interface{},
    ReplicationFactor: interface{},
    ResourceGroupId: interface{},
    Tags: *[]github.com/alibabacloud-go/ros-cdk/alicloudroscdkmongodb.datasource.RosInstances.TagsProperty,
    VpcId: interface{},
    VSwitchId: interface{},
    ZoneId: interface{},
}

Properties

Name Type Description
ChargeType interface{} Property chargeType: The billing method of the instance.
ConnectionDomain interface{} Property connectionDomain: The endpoint of the node.
DbInstanceClass interface{} Property dbInstanceClass: The instance type.
DbInstanceDescription interface{} Property dbInstanceDescription: The description of the instance.
DbInstanceId interface{} Property dbInstanceId: The ID of the instance.
DbInstanceStatus interface{} Property dbInstanceStatus: The state of the instance.
DbInstanceType interface{} Property dbInstanceType: The category of the instance.
EngineVersion interface{} Property engineVersion: The database engine version of the instance.
Expired interface{} Property expired: Specifies whether the instance expires.
NetworkType interface{} Property networkType: The network type of the instance.
RefreshOptions interface{} Property refreshOptions: The refresh strategy for the datasource resource when the stack is updated.
ReplicationFactor interface{} Property replicationFactor: The number of nodes in a replica set instance.
ResourceGroupId interface{} Property resourceGroupId: The ID of the resource group.
Tags *[]github.com/alibabacloud-go/ros-cdk/alicloudroscdkmongodb.datasource.RosInstances.TagsProperty Property tags: Tags of instance.
VpcId interface{} Property vpcId: The VPC ID of the instance.
VSwitchId interface{} Property vSwitchId: The vSwitch ID of the instance.
ZoneId interface{} Property zoneId: The zone ID of the instance.

ChargeTypeOptional

ChargeType interface{}
  • Type: interface{}

Property chargeType: The billing method of the instance.

Valid values: PostPaid: pay-as-you-go PrePaid: subscription


ConnectionDomainOptional

ConnectionDomain interface{}
  • Type: interface{}

Property connectionDomain: The endpoint of the node.

You can call the DescribeDBInstanceAttribute operation to query the endpoint of the node.


DbInstanceClassOptional

DbInstanceClass interface{}
  • Type: interface{}

Property dbInstanceClass: The instance type.

For more information about valid values, see Instance types.


DbInstanceDescriptionOptional

DbInstanceDescription interface{}
  • Type: interface{}

Property dbInstanceDescription: The description of the instance.


DbInstanceIdOptional

DbInstanceId interface{}
  • Type: interface{}

Property dbInstanceId: The ID of the instance.


DbInstanceStatusOptional

DbInstanceStatus interface{}
  • Type: interface{}

Property dbInstanceStatus: The state of the instance.

For more information about valid values, see Instance states.


DbInstanceTypeOptional

DbInstanceType interface{}
  • Type: interface{}

Property dbInstanceType: The category of the instance.

Default value: replicate. Valid values: sharding: sharded cluster instance replicate: replica set or standalone instance Note To query the list of sharded cluster instances, you must set the parameter to sharding. This operation displays the list of replica set and standalone instances when the parameter uses the default value replicate.


EngineVersionOptional

EngineVersion interface{}
  • Type: interface{}

Property engineVersion: The database engine version of the instance.

Valid values: 5.0 4.4 4.2 4.0 3.4


ExpiredOptional

Expired interface{}
  • Type: interface{}

Property expired: Specifies whether the instance expires.

Valid values: true: The instance expires. false: The instance does not expire.


NetworkTypeOptional

NetworkType interface{}
  • Type: interface{}

Property networkType: The network type of the instance.

Valid values: Classic Vpc


RefreshOptionsOptional

RefreshOptions interface{}
  • Type: interface{}

Property refreshOptions: The refresh strategy for the datasource resource when the stack is updated.

Valid values:

  • Never: Never refresh the datasource resource when the stack is updated.
  • Always: Always refresh the datasource resource when the stack is updated. Default is Never.

ReplicationFactorOptional

ReplicationFactor interface{}
  • Type: interface{}

Property replicationFactor: The number of nodes in a replica set instance.

Valid values: 3, 5, and 7.


ResourceGroupIdOptional

ResourceGroupId interface{}
  • Type: interface{}

Property resourceGroupId: The ID of the resource group.


TagsOptional

Tags *[]TagsProperty
  • Type: *[]github.com/alibabacloud-go/ros-cdk/alicloudroscdkmongodb.datasource.RosInstances.TagsProperty

Property tags: Tags of instance.


VpcIdOptional

VpcId interface{}
  • Type: interface{}

Property vpcId: The VPC ID of the instance.


VSwitchIdOptional

VSwitchId interface{}
  • Type: interface{}

Property vSwitchId: The vSwitch ID of the instance.


ZoneIdOptional

ZoneId interface{}
  • Type: interface{}

Property zoneId: The zone ID of the instance.

You can call the DescribeRegions operation to query the most recent zone list.