Skip to content

Instance

  • Implements: github.com/alibabacloud-go/ros-cdk/alicloudroscdkmongodb.datasource.IInstance

This class encapsulates and extends the ROS resource type DATASOURCE::MONGODB::Instance.

Initializers

import "github.com/alibabacloud-go/ros-cdk/alicloudroscdkmongodb/datasource"
datasource.NewInstance(scope Construct, id *string, props InstanceProps, enableResourcePropertyConstraint *bool) Instance
Name Type Description
scope github.com/alibabacloud-go/ros-cdk/alicloudroscdkcore.Construct No description.
id *string No description.
props InstanceProps No description.
enableResourcePropertyConstraint *bool No description.

scopeRequired

  • Type: github.com/alibabacloud-go/ros-cdk/alicloudroscdkcore.Construct

idRequired

  • Type: *string

propsRequired


enableResourcePropertyConstraintOptional

  • Type: *bool

Methods

Name Description
ToString Returns a string representation of this construct.
Synthesize Allows this construct to emit artifacts into the cloud assembly during synthesis.
AddCondition No description.
AddCount No description.
AddDependency No description.
AddResourceDesc No description.
ApplyRemovalPolicy No description.
FetchCondition No description.
FetchDependency No description.
FetchResourceDesc No description.
GetAtt No description.
SetMetadata No description.

ToString

func ToString() *string

Returns a string representation of this construct.

Synthesize

func Synthesize(session ISynthesisSession)

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: github.com/alibabacloud-go/ros-cdk/alicloudroscdkcore.ISynthesisSession

The synthesis session.


AddCondition

func AddCondition(condition RosCondition)

conditionRequired

  • Type: github.com/alibabacloud-go/ros-cdk/alicloudroscdkcore.RosCondition

AddCount

func AddCount(count interface{})

countRequired

  • Type: interface{}

AddDependency

func AddDependency(resource Resource)

resourceRequired

  • Type: github.com/alibabacloud-go/ros-cdk/alicloudroscdkcore.Resource

AddResourceDesc

func AddResourceDesc(desc *string)

descRequired

  • Type: *string

ApplyRemovalPolicy

func ApplyRemovalPolicy(policy RemovalPolicy)

policyRequired

  • Type: github.com/alibabacloud-go/ros-cdk/alicloudroscdkcore.RemovalPolicy

FetchCondition

func FetchCondition() RosCondition

FetchDependency

func FetchDependency() *[]*string

FetchResourceDesc

func FetchResourceDesc() *string

GetAtt

func GetAtt(name *string) IResolvable

nameRequired

  • Type: *string

SetMetadata

func SetMetadata(key *string, value interface{})

keyRequired

  • Type: *string

valueRequired

  • Type: interface{}

Static Functions

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

IsConstruct

import "github.com/alibabacloud-go/ros-cdk/alicloudroscdkmongodb/datasource"
datasource.Instance_IsConstruct(x interface{}) *bool

Return whether the given object is a Construct.

xRequired

  • Type: interface{}

Properties

Name Type Description
Node github.com/alibabacloud-go/ros-cdk/alicloudroscdkcore.ConstructNode The construct tree node associated with this construct.
Env github.com/alibabacloud-go/ros-cdk/alicloudroscdkcore.IResourceEnvironment The environment this resource belongs to.
Ref *string No description.
Stack github.com/alibabacloud-go/ros-cdk/alicloudroscdkcore.Stack The stack in which this resource is defined.
Resource github.com/alibabacloud-go/ros-cdk/alicloudroscdkcore.RosResource No description.
AttrAccountDescription interface{} Attribute AccountDescription: The description of the account.
AttrAccountName interface{} Attribute AccountName: The name of the account.
AttrAutoRenew interface{} Attribute AutoRenew: Indicates whether auto-renewal is enabled for the instance.
AttrAutoRenewDuration interface{} Attribute AutoRenewDuration: Auto Renew Duration.
AttrBackupInterval interface{} Attribute BackupInterval: The frequency at which high-frequency backup is created.
AttrBackupRetentionPeriod interface{} Attribute BackupRetentionPeriod: The retention period of the backup data.
AttrCreateTime interface{} Attribute CreateTime: The Database create time.
AttrDbInstanceClass interface{} Attribute DBInstanceClass: The instance type of the instance.
AttrDbInstanceDescription interface{} Attribute DBInstanceDescription: The name of the instance.
AttrDbInstanceReleaseProtection interface{} Attribute DBInstanceReleaseProtection: Indicates whether release protection is enabled for the instance.
AttrDbInstanceStorage interface{} Attribute DbInstanceStorage: The storage capacity of the instance.
AttrDbInstanceType interface{} Attribute DBInstanceType: The architecture of the instance.
AttrEnableBackupLog interface{} Attribute EnableBackupLog: Indicates whether the log backup feature is enabled.
AttrEngine interface{} Attribute Engine: The database engine of the instance.
AttrEngineVersion interface{} Attribute EngineVersion: The database engine version of the instance.
AttrExpireTime interface{} Attribute ExpireTime: The time when the subscription instance expires.
AttrHiddenZoneId interface{} Attribute HiddenZoneId: The zone where the hidden node resides for multi-zone deployment.
AttrInstanceId interface{} Attribute InstanceId: The ID of the mongos.
AttrKindCode interface{} Attribute KindCode: The kind code of the instance.
AttrLastDowngradeTime interface{} Attribute LastDowngradeTime: The date when the last downgrade operation was performed on the instance.
AttrLockMode interface{} Attribute LockMode: The lock status of the instance.
AttrLogBackupRetentionPeriod interface{} Attribute LogBackupRetentionPeriod: The number of days for which log backups are retained.
AttrMaintainEndTime interface{} Attribute MaintainEndTime: The end time of the maintenance window.
AttrMaintainStartTime interface{} Attribute MaintainStartTime: The start time of the maintenance window.
AttrMongosList interface{} Attribute MongosList: The information of the mongos nodes.
AttrNetworkAddresses interface{} Attribute NetworkAddresses: The endpoints of ApsaraDB for MongoDB instances.
AttrNetworkType interface{} Attribute NetworkType: The network type of the instance.
AttrParameters interface{} Attribute Parameters: The settings of the parameters that have taken effect.
AttrPaymentType interface{} Attribute PaymentType: The billing method of the Database.
AttrPreferredBackupPeriod interface{} Attribute PreferredBackupPeriod: The day of a week on which to back up data.
AttrPreferredBackupTime interface{} Attribute PreferredBackupTime: The time range during which the backup was created.
AttrProtocolType interface{} Attribute ProtocolType: The access protocol type of the instance.
AttrReadonlyReplicas interface{} Attribute ReadonlyReplicas: The number of read-only nodes in the shard node.
AttrReplicaSetsConnections interface{} Attribute ReplicaSetsConnections: ReplicaSets Connections.
AttrReplicationFactor interface{} Attribute ReplicationFactor: The number of nodes in the instance.
AttrResourceGroupId interface{} Attribute ResourceGroupId: The ID of the resource group to which the instance belongs.
AttrSecondaryZoneId interface{} Attribute SecondaryZoneId: The zone where the secondary node resides for multi-zone deployment.
AttrSecurityGroupId interface{} Attribute SecurityGroupId: The ID of the ECS security group.
AttrSecurityIpList interface{} Attribute SecurityIpList: The name of the IP whitelist.
AttrSecurityIps interface{} Attribute SecurityIps: The IP addresses in the default whitelist.
AttrShardList interface{} Attribute ShardList: The information of the shard nodes.
AttrSnapshotBackupType interface{} Attribute SnapshotBackupType: The snapshot backup type.
AttrSslExpiredTime interface{} Attribute SslExpiredTime: The time when the SSL certificate expires.
AttrSslStatus interface{} Attribute SslStatus: The status of the SSL feature.
AttrStorageEngine interface{} Attribute StorageEngine: The Storage Engine Of The Instance Type.
AttrTags interface{} Attribute Tags: The details of the instance tags.
AttrTdeStatus interface{} Attribute TdeStatus: The TDE status.
AttrVpcAuthMode interface{} Attribute VpcAuthMode: Indicates whether password-free access within the VPC is enabled.
AttrVpcId interface{} Attribute VpcId: The VPC ID of the instance.
AttrVSwitchId interface{} Attribute VSwitchId: The vSwitch ID of the instance.
AttrZoneId interface{} Attribute ZoneId: The ID of the zone in which the instance resides.
Props InstanceProps No description.

NodeRequired

func Node() ConstructNode
  • Type: github.com/alibabacloud-go/ros-cdk/alicloudroscdkcore.ConstructNode

The construct tree node associated with this construct.


EnvRequired

func Env() IResourceEnvironment
  • Type: github.com/alibabacloud-go/ros-cdk/alicloudroscdkcore.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

func Ref() *string
  • Type: *string

StackRequired

func Stack() Stack
  • Type: github.com/alibabacloud-go/ros-cdk/alicloudroscdkcore.Stack

The stack in which this resource is defined.


ResourceOptional

func Resource() RosResource
  • Type: github.com/alibabacloud-go/ros-cdk/alicloudroscdkcore.RosResource

AttrAccountDescriptionRequired

func AttrAccountDescription() interface{}
  • Type: interface{}

Attribute AccountDescription: The description of the account.


AttrAccountNameRequired

func AttrAccountName() interface{}
  • Type: interface{}

Attribute AccountName: The name of the account.

Value: *root * .


AttrAutoRenewRequired

func AttrAutoRenew() interface{}
  • Type: interface{}

Attribute AutoRenew: Indicates whether auto-renewal is enabled for the instance.

Valid values: true: Auto-renewal is enabled for the instance. false: Auto-renewal is disabled for the instance.


AttrAutoRenewDurationRequired

func AttrAutoRenewDuration() interface{}
  • Type: interface{}

Attribute AutoRenewDuration: Auto Renew Duration.


AttrBackupIntervalRequired

func AttrBackupInterval() interface{}
  • Type: interface{}

Attribute BackupInterval: The frequency at which high-frequency backup is created.

Valid values: -1: High-frequency backup is disabled. 15: every 15 minutes. 30: every 30 minutes. 60: every hour. 120: every 2 hours. 180: every 3 hours. 240: every 4 hours. 360: every 6 hours. 480: every 8 hours. 720: every 12 hours.


AttrBackupRetentionPeriodRequired

func AttrBackupRetentionPeriod() interface{}
  • Type: interface{}

Attribute BackupRetentionPeriod: The retention period of the backup data.

Unit: day.


AttrCreateTimeRequired

func AttrCreateTime() interface{}
  • Type: interface{}

Attribute CreateTime: The Database create time.


AttrDbInstanceClassRequired

func AttrDbInstanceClass() interface{}
  • Type: interface{}

Attribute DBInstanceClass: The instance type of the instance.


AttrDbInstanceDescriptionRequired

func AttrDbInstanceDescription() interface{}
  • Type: interface{}

Attribute DBInstanceDescription: The name of the instance.


AttrDbInstanceReleaseProtectionRequired

func AttrDbInstanceReleaseProtection() interface{}
  • Type: interface{}

Attribute DBInstanceReleaseProtection: Indicates whether release protection is enabled for the instance.

Valid values: true false


AttrDbInstanceStorageRequired

func AttrDbInstanceStorage() interface{}
  • Type: interface{}

Attribute DbInstanceStorage: The storage capacity of the instance.


AttrDbInstanceTypeRequired

func AttrDbInstanceType() interface{}
  • Type: interface{}

Attribute DBInstanceType: The architecture of the instance.

Valid values: replicate: replica set instance sharding: sharded cluster instance


AttrEnableBackupLogRequired

func AttrEnableBackupLog() interface{}
  • Type: interface{}

Attribute EnableBackupLog: Indicates whether the log backup feature is enabled.

Valid values: 0 (default): The log backup feature is disabled. 1: The log backup feature is enabled.


AttrEngineRequired

func AttrEngine() interface{}
  • Type: interface{}

Attribute Engine: The database engine of the instance.

Default value: mongodb.


AttrEngineVersionRequired

func AttrEngineVersion() interface{}
  • Type: interface{}

Attribute EngineVersion: The database engine version of the instance.

6.0 5.0 4.4 4.2 4.0


AttrExpireTimeRequired

func AttrExpireTime() interface{}
  • Type: interface{}

Attribute ExpireTime: The time when the subscription instance expires.

The time follows the ISO 8601 standard in the yyyy-MM-ddTHH:mmZ format. The time is displayed in UTC.


AttrHiddenZoneIdRequired

func AttrHiddenZoneId() interface{}
  • Type: interface{}

Attribute HiddenZoneId: The zone where the hidden node resides for multi-zone deployment.


AttrInstanceIdRequired

func AttrInstanceId() interface{}
  • Type: interface{}

Attribute InstanceId: The ID of the mongos.


AttrKindCodeRequired

func AttrKindCode() interface{}
  • Type: interface{}

Attribute KindCode: The kind code of the instance.

Valid values: 0: physical machine 1: Elastic Compute Service (ECS) instance 2: Docker cluster 18: Kubernetes cluster


AttrLastDowngradeTimeRequired

func AttrLastDowngradeTime() interface{}
  • Type: interface{}

Attribute LastDowngradeTime: The date when the last downgrade operation was performed on the instance.


AttrLockModeRequired

func AttrLockMode() interface{}
  • Type: interface{}

Attribute LockMode: The lock status of the instance.

Valid values: Unlock: The instance is not locked. ManualLock: The instance is manually locked. LockByExpiration: The instance is automatically locked due to instance expiration. LockByRestoration: The instance is automatically locked before the instance is rolled back. LockByDiskQuota: The instance is automatically locked after the storage space is exhausted. Released: The instance is released.


AttrLogBackupRetentionPeriodRequired

func AttrLogBackupRetentionPeriod() interface{}
  • Type: interface{}

Attribute LogBackupRetentionPeriod: The number of days for which log backups are retained.

Valid values: 7 to 730.


AttrMaintainEndTimeRequired

func AttrMaintainEndTime() interface{}
  • Type: interface{}

Attribute MaintainEndTime: The end time of the maintenance window.

The time follows the ISO 8601 standard in the HH:mmZ format. The time is displayed in UTC.


AttrMaintainStartTimeRequired

func AttrMaintainStartTime() interface{}
  • Type: interface{}

Attribute MaintainStartTime: The start time of the maintenance window.

The time follows the ISO 8601 standard in the HH:mmZ format. The time is displayed in UTC.


AttrMongosListRequired

func AttrMongosList() interface{}
  • Type: interface{}

Attribute MongosList: The information of the mongos nodes.


AttrNetworkAddressesRequired

func AttrNetworkAddresses() interface{}
  • Type: interface{}

Attribute NetworkAddresses: The endpoints of ApsaraDB for MongoDB instances.


AttrNetworkTypeRequired

func AttrNetworkType() interface{}
  • Type: interface{}

Attribute NetworkType: The network type of the instance.

Valid values: Classic: classic network VPC: VPC


AttrParametersRequired

func AttrParameters() interface{}
  • Type: interface{}

Attribute Parameters: The settings of the parameters that have taken effect.


AttrPaymentTypeRequired

func AttrPaymentType() interface{}
  • Type: interface{}

Attribute PaymentType: The billing method of the Database.

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


AttrPreferredBackupPeriodRequired

func AttrPreferredBackupPeriod() interface{}
  • Type: interface{}

Attribute PreferredBackupPeriod: The day of a week on which to back up data.

Valid values: Monday Tuesday Wednesday Thursday Friday Saturday Sunday


AttrPreferredBackupTimeRequired

func AttrPreferredBackupTime() interface{}
  • Type: interface{}

Attribute PreferredBackupTime: The time range during which the backup was created.

The time follows the ISO 8601 standard in the HH:mmZ-HH:mmZ format. The time is displayed in UTC.


AttrProtocolTypeRequired

func AttrProtocolType() interface{}
  • Type: interface{}

Attribute ProtocolType: The access protocol type of the instance.

Valid values: mongodb dynamodb


AttrReadonlyReplicasRequired

func AttrReadonlyReplicas() interface{}
  • Type: interface{}

Attribute ReadonlyReplicas: The number of read-only nodes in the shard node.

Valid values: 0 to 5. The value must be an integer.


AttrReplicaSetsConnectionsRequired

func AttrReplicaSetsConnections() interface{}
  • Type: interface{}

Attribute ReplicaSetsConnections: ReplicaSets Connections.


AttrReplicationFactorRequired

func AttrReplicationFactor() interface{}
  • Type: interface{}

Attribute ReplicationFactor: The number of nodes in the instance.


AttrResourceGroupIdRequired

func AttrResourceGroupId() interface{}
  • Type: interface{}

Attribute ResourceGroupId: The ID of the resource group to which the instance belongs.


AttrSecondaryZoneIdRequired

func AttrSecondaryZoneId() interface{}
  • Type: interface{}

Attribute SecondaryZoneId: The zone where the secondary node resides for multi-zone deployment.


AttrSecurityGroupIdRequired

func AttrSecurityGroupId() interface{}
  • Type: interface{}

Attribute SecurityGroupId: The ID of the ECS security group.


AttrSecurityIpListRequired

func AttrSecurityIpList() interface{}
  • Type: interface{}

Attribute SecurityIpList: The name of the IP whitelist.


AttrSecurityIpsRequired

func AttrSecurityIps() interface{}
  • Type: interface{}

Attribute SecurityIps: The IP addresses in the default whitelist.


AttrShardListRequired

func AttrShardList() interface{}
  • Type: interface{}

Attribute ShardList: The information of the shard nodes.


AttrSnapshotBackupTypeRequired

func AttrSnapshotBackupType() interface{}
  • Type: interface{}

Attribute SnapshotBackupType: The snapshot backup type.

Valid values: Flash: single-digit second backup Standard (default): standard backup


AttrSslExpiredTimeRequired

func AttrSslExpiredTime() interface{}
  • Type: interface{}

Attribute SslExpiredTime: The time when the SSL certificate expires.

The time follows the ISO 8601 standard in the yyyy-MM-ddTHH:mm:ssZ format. The time is displayed in Coordinated Universal Time (UTC).


AttrSslStatusRequired

func AttrSslStatus() interface{}
  • Type: interface{}

Attribute SslStatus: The status of the SSL feature.

Valid values: Open: The SSL feature is enabled. Closed: The SSL feature is disabled.


AttrStorageEngineRequired

func AttrStorageEngine() interface{}
  • Type: interface{}

Attribute StorageEngine: The Storage Engine Of The Instance Type.


AttrTagsRequired

func AttrTags() interface{}
  • Type: interface{}

Attribute Tags: The details of the instance tags.


AttrTdeStatusRequired

func AttrTdeStatus() interface{}
  • Type: interface{}

Attribute TdeStatus: The TDE status.

Valid values: enabled disabled


AttrVpcAuthModeRequired

func AttrVpcAuthMode() interface{}
  • Type: interface{}

Attribute VpcAuthMode: Indicates whether password-free access within the VPC is enabled.

Valid values: Open: Password-free access within the VPC is enabled. Close: Password-free access within the VPC is disabled, and you must use a password for access. NotSupport: Password-free access within the VPC is not supported.


AttrVpcIdRequired

func AttrVpcId() interface{}
  • Type: interface{}

Attribute VpcId: The VPC ID of the instance.


AttrVSwitchIdRequired

func AttrVSwitchId() interface{}
  • Type: interface{}

Attribute VSwitchId: The vSwitch ID of the instance.


AttrZoneIdRequired

func AttrZoneId() interface{}
  • Type: interface{}

Attribute ZoneId: The ID of the zone in which the instance resides.


PropsRequired

func Props() InstanceProps