Skip to content

Instance

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

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

Initializers

import "github.com/alibabacloud-go/ros-cdk/alicloudroscdkredis/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/alicloudroscdkredis/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.
AttrArchitectureType interface{} Attribute ArchitectureType: Architecture type.
AttrBandwidth interface{} Attribute Bandwidth: Bandwidth.
AttrCapacity interface{} Attribute Capacity: Capacity.
AttrCloudType interface{} Attribute CloudType: Cloud category.
AttrConfig interface{} Attribute Config: Config.
AttrConnectionDomain interface{} Attribute ConnectionDomain: Connection domain.
AttrCreateTime interface{} Attribute CreateTime: Create time.
AttrDbInstanceId interface{} Attribute DBInstanceId: Database instance id.
AttrDbInstanceName interface{} Attribute DBInstanceName: Instance name.
AttrEndTime interface{} Attribute EndTime: End time.
AttrEngineVersion interface{} Attribute EngineVersion: Engine version.
AttrHasRenewChangeOrder interface{} Attribute HasRenewChangeOrder: Has renew change order.
AttrInstanceClass interface{} Attribute InstanceClass: Instance class.
AttrInstanceReleaseProtection interface{} Attribute InstanceReleaseProtection: Instance release protection.
AttrInstanceType interface{} Attribute InstanceType: Instance type.
AttrIsRds interface{} Attribute IsRds: is RDS.
AttrMaintainEndTime interface{} Attribute MaintainEndTime: Maintain end time.
AttrMaintainStartTime interface{} Attribute MaintainStartTime: Maintain start time.
AttrNetworkType interface{} Attribute NetworkType: Network type.
AttrPackageType interface{} Attribute PackageType: Package type.
AttrPaymentType interface{} Attribute PaymentType: Payment type.
AttrPort interface{} Attribute Port: Port.
AttrPrivateIp interface{} Attribute PrivateIp: Private IP.
AttrQps interface{} Attribute Qps: QPS.
AttrReadOnlyCount interface{} Attribute ReadOnlyCount: The number of read-only nodes.
AttrReplacateId interface{} Attribute ReplacateId: Replacate id.
AttrResourceGroupId interface{} Attribute ResourceGroupId: Resource group id.
AttrSecondaryZoneId interface{} Attribute SecondaryZoneId: The ID of the standby zone.
AttrSecurityGroupId interface{} Attribute SecurityGroupId: Security group id.
AttrSecurityIpGroupAttribute interface{} Attribute SecurityIpGroupAttribute: Security IP group attribute.
AttrSecurityIpGroupName interface{} Attribute SecurityIpGroupName: Security IP group name.
AttrSecurityIps interface{} Attribute SecurityIps: Security IPs.
AttrShardCount interface{} Attribute ShardCount: The number of slices.
AttrTags interface{} Attribute Tags: Tags.
AttrVpcAuthMode interface{} Attribute VpcAuthMode: Vpc auth mode.
AttrVpcCloudInstanceId interface{} Attribute VpcCloudInstanceId: Vpc cloud instance id.
AttrVpcId interface{} Attribute VpcId: Vpc id.
AttrVSwitchId interface{} Attribute VSwitchId: Vswitch id.
AttrZoneId interface{} Attribute ZoneId: Zone id.
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

AttrArchitectureTypeRequired

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

Attribute ArchitectureType: Architecture type.


AttrBandwidthRequired

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

Attribute Bandwidth: Bandwidth.


AttrCapacityRequired

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

Attribute Capacity: Capacity.


AttrCloudTypeRequired

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

Attribute CloudType: Cloud category.


AttrConfigRequired

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

Attribute Config: Config.


AttrConnectionDomainRequired

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

Attribute ConnectionDomain: Connection domain.


AttrCreateTimeRequired

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

Attribute CreateTime: Create time.


AttrDbInstanceIdRequired

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

Attribute DBInstanceId: Database instance id.


AttrDbInstanceNameRequired

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

Attribute DBInstanceName: Instance name.


AttrEndTimeRequired

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

Attribute EndTime: End time.


AttrEngineVersionRequired

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

Attribute EngineVersion: Engine version.


AttrHasRenewChangeOrderRequired

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

Attribute HasRenewChangeOrder: Has renew change order.


AttrInstanceClassRequired

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

Attribute InstanceClass: Instance class.


AttrInstanceReleaseProtectionRequired

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

Attribute InstanceReleaseProtection: Instance release protection.


AttrInstanceTypeRequired

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

Attribute InstanceType: Instance type.


AttrIsRdsRequired

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

Attribute IsRds: is RDS.


AttrMaintainEndTimeRequired

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

Attribute MaintainEndTime: Maintain end time.


AttrMaintainStartTimeRequired

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

Attribute MaintainStartTime: Maintain start time.


AttrNetworkTypeRequired

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

Attribute NetworkType: Network type.


AttrPackageTypeRequired

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

Attribute PackageType: Package type.


AttrPaymentTypeRequired

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

Attribute PaymentType: Payment type.


AttrPortRequired

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

Attribute Port: Port.


AttrPrivateIpRequired

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

Attribute PrivateIp: Private IP.


AttrQpsRequired

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

Attribute Qps: QPS.


AttrReadOnlyCountRequired

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

Attribute ReadOnlyCount: The number of read-only nodes.

This parameter is only applicable to the creation of read-write splitting instances in the cloud disk version. You can use this parameter to customize the number of read-only nodes. Valid values: 1 to 5.


AttrReplacateIdRequired

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

Attribute ReplacateId: Replacate id.


AttrResourceGroupIdRequired

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

Attribute ResourceGroupId: Resource group id.


AttrSecondaryZoneIdRequired

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

Attribute SecondaryZoneId: The ID of the standby zone.


AttrSecurityGroupIdRequired

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

Attribute SecurityGroupId: Security group id.


AttrSecurityIpGroupAttributeRequired

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

Attribute SecurityIpGroupAttribute: Security IP group attribute.


AttrSecurityIpGroupNameRequired

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

Attribute SecurityIpGroupName: Security IP group name.


AttrSecurityIpsRequired

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

Attribute SecurityIps: Security IPs.


AttrShardCountRequired

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

Attribute ShardCount: The number of slices.

This parameter is only applicable to creating a cloud disk cluster architecture instance. You can use this parameter to customize the number of slices.


AttrTagsRequired

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

Attribute Tags: Tags.


AttrVpcAuthModeRequired

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

Attribute VpcAuthMode: Vpc auth mode.


AttrVpcCloudInstanceIdRequired

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

Attribute VpcCloudInstanceId: Vpc cloud instance id.


AttrVpcIdRequired

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

Attribute VpcId: Vpc id.


AttrVSwitchIdRequired

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

Attribute VSwitchId: Vswitch id.


AttrZoneIdRequired

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

Attribute ZoneId: Zone id.


PropsRequired

func Props() InstanceProps