Skip to content

Instance

This class encapsulates and extends the ROS resource type ALIYUN::REDIS::Instance, which is used to create a Tair (Redis OSS-compatible) instance.

Initializers

import "github.com/alibabacloud-go/ros-cdk/alicloudroscdkredis"
alicloudroscdkredis.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

propsOptional


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.
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

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"
alicloudroscdkredis.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.
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 github.com/alibabacloud-go/ros-cdk/alicloudroscdkcore.IResolvable Attribute ArchitectureType: The architecture.
AttrBandwidth github.com/alibabacloud-go/ros-cdk/alicloudroscdkcore.IResolvable Attribute Bandwidth: The bandwidth of the instance.
AttrCapacity github.com/alibabacloud-go/ros-cdk/alicloudroscdkcore.IResolvable Attribute Capacity: The storage capacity of the instance.
AttrChargeType github.com/alibabacloud-go/ros-cdk/alicloudroscdkcore.IResolvable Attribute ChargeType: The billing method of the instance.
AttrClassicInnerConnectionPort github.com/alibabacloud-go/ros-cdk/alicloudroscdkcore.IResolvable Attribute ClassicInnerConnectionPort: The classic inner connection port of the instance.
AttrClassicInnerConnectionString github.com/alibabacloud-go/ros-cdk/alicloudroscdkcore.IResolvable Attribute ClassicInnerConnectionString: The classic inner connection string of the instance.
AttrConnectionDomain github.com/alibabacloud-go/ros-cdk/alicloudroscdkcore.IResolvable Attribute ConnectionDomain: Connection domain of created instance.
AttrConnections github.com/alibabacloud-go/ros-cdk/alicloudroscdkcore.IResolvable Attribute Connections: The maximum number of connections supported by the instance.
AttrDirectConnectionPort github.com/alibabacloud-go/ros-cdk/alicloudroscdkcore.IResolvable Attribute DirectConnectionPort: The direct connection port of the instance.
AttrDirectConnectionString github.com/alibabacloud-go/ros-cdk/alicloudroscdkcore.IResolvable Attribute DirectConnectionString: The direct connection string of the instance.
AttrEngineVersion github.com/alibabacloud-go/ros-cdk/alicloudroscdkcore.IResolvable Attribute EngineVersion: The engine version of the instance.
AttrHasRenewChangeOrder github.com/alibabacloud-go/ros-cdk/alicloudroscdkcore.IResolvable Attribute HasRenewChangeOrder: Indicates whether the Alibaba Cloud account has pending renewal or scaling orders.
AttrInstanceClass github.com/alibabacloud-go/ros-cdk/alicloudroscdkcore.IResolvable Attribute InstanceClass: Redis instance type.
AttrInstanceId github.com/alibabacloud-go/ros-cdk/alicloudroscdkcore.IResolvable Attribute InstanceId: Instance id of created redis instance.
AttrInstanceName github.com/alibabacloud-go/ros-cdk/alicloudroscdkcore.IResolvable Attribute InstanceName: Name of created redis instance.
AttrInstanceType github.com/alibabacloud-go/ros-cdk/alicloudroscdkcore.IResolvable Attribute InstanceType: The engine type of the instance.
AttrNetworkType github.com/alibabacloud-go/ros-cdk/alicloudroscdkcore.IResolvable Attribute NetworkType: The network type.
AttrNodeType github.com/alibabacloud-go/ros-cdk/alicloudroscdkcore.IResolvable Attribute NodeType: The type of node.
AttrOrderId github.com/alibabacloud-go/ros-cdk/alicloudroscdkcore.IResolvable Attribute OrderId: Order Id of created instance.
AttrPackageType github.com/alibabacloud-go/ros-cdk/alicloudroscdkcore.IResolvable Attribute PackageType: The plan type.
AttrPort github.com/alibabacloud-go/ros-cdk/alicloudroscdkcore.IResolvable Attribute Port: Port of created instance.
AttrPrivateIp github.com/alibabacloud-go/ros-cdk/alicloudroscdkcore.IResolvable Attribute PrivateIp: The internal IP address of the instance.
AttrPublicConnectionPort github.com/alibabacloud-go/ros-cdk/alicloudroscdkcore.IResolvable Attribute PublicConnectionPort: The public connection port of the instance.
AttrPublicConnectionString github.com/alibabacloud-go/ros-cdk/alicloudroscdkcore.IResolvable Attribute PublicConnectionString: The public connection string of the instance.
AttrQps github.com/alibabacloud-go/ros-cdk/alicloudroscdkcore.IResolvable Attribute QPS: The queries per second (QPS) supported by the instance.
AttrResourceGroupId github.com/alibabacloud-go/ros-cdk/alicloudroscdkcore.IResolvable Attribute ResourceGroupId: The ID of the resource group to which the instance belongs.
AttrVpcId github.com/alibabacloud-go/ros-cdk/alicloudroscdkcore.IResolvable Attribute VpcId: The ID of the VPC.
AttrVpcPrivateConnectionPort github.com/alibabacloud-go/ros-cdk/alicloudroscdkcore.IResolvable Attribute VpcPrivateConnectionPort: The vpc private connection port of the instance.
AttrVpcPrivateConnectionString github.com/alibabacloud-go/ros-cdk/alicloudroscdkcore.IResolvable Attribute VpcPrivateConnectionString: The vpc private connection string of the instance.
AttrVSwitchId github.com/alibabacloud-go/ros-cdk/alicloudroscdkcore.IResolvable Attribute VSwitchId: The ID of the vSwitch.
AttrZoneId github.com/alibabacloud-go/ros-cdk/alicloudroscdkcore.IResolvable Attribute ZoneId: The ID of the zone.

NodeRequired

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

The construct tree node associated with this construct.


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

Attribute ArchitectureType: The architecture.


AttrBandwidthRequired

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

Attribute Bandwidth: The bandwidth of the instance.

Unit: Mbit/s.


AttrCapacityRequired

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

Attribute Capacity: The storage capacity of the instance.

Unit: MB.


AttrChargeTypeRequired

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

Attribute ChargeType: The billing method of the instance.


AttrClassicInnerConnectionPortRequired

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

Attribute ClassicInnerConnectionPort: The classic inner connection port of the instance.


AttrClassicInnerConnectionStringRequired

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

Attribute ClassicInnerConnectionString: The classic inner connection string of the instance.


AttrConnectionDomainRequired

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

Attribute ConnectionDomain: Connection domain of created instance.


AttrConnectionsRequired

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

Attribute Connections: The maximum number of connections supported by the instance.


AttrDirectConnectionPortRequired

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

Attribute DirectConnectionPort: The direct connection port of the instance.


AttrDirectConnectionStringRequired

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

Attribute DirectConnectionString: The direct connection string of the instance.


AttrEngineVersionRequired

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

Attribute EngineVersion: The engine version of the instance.


AttrHasRenewChangeOrderRequired

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

Attribute HasRenewChangeOrder: Indicates whether the Alibaba Cloud account has pending renewal or scaling orders.


AttrInstanceClassRequired

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

Attribute InstanceClass: Redis instance type.


AttrInstanceIdRequired

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

Attribute InstanceId: Instance id of created redis instance.


AttrInstanceNameRequired

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

Attribute InstanceName: Name of created redis instance.


AttrInstanceTypeRequired

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

Attribute InstanceType: The engine type of the instance.


AttrNetworkTypeRequired

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

Attribute NetworkType: The network type.


AttrNodeTypeRequired

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

Attribute NodeType: The type of node.


AttrOrderIdRequired

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

Attribute OrderId: Order Id of created instance.


AttrPackageTypeRequired

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

Attribute PackageType: The plan type.


AttrPortRequired

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

Attribute Port: Port of created instance.


AttrPrivateIpRequired

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

Attribute PrivateIp: The internal IP address of the instance.


AttrPublicConnectionPortRequired

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

Attribute PublicConnectionPort: The public connection port of the instance.


AttrPublicConnectionStringRequired

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

Attribute PublicConnectionString: The public connection string of the instance.


AttrQpsRequired

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

Attribute QPS: The queries per second (QPS) supported by the instance.


AttrResourceGroupIdRequired

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

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


AttrVpcIdRequired

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

Attribute VpcId: The ID of the VPC.


AttrVpcPrivateConnectionPortRequired

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

Attribute VpcPrivateConnectionPort: The vpc private connection port of the instance.


AttrVpcPrivateConnectionStringRequired

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

Attribute VpcPrivateConnectionString: The vpc private connection string of the instance.


AttrVSwitchIdRequired

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

Attribute VSwitchId: The ID of the vSwitch.


AttrZoneIdRequired

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

Attribute ZoneId: The ID of the zone.