Instance
This class encapsulates and extends the ROS resource type ALIYUN::REDIS::Instance
, which is used to create an ApsaraDB for Redis instance.
Initializers
import { Instance } from '@alicloud/ros-cdk-redis'
new Instance(scope: Construct, id: string, props?: InstanceProps, enableResourcePropertyConstraint?: boolean)
Name | Type | Description |
---|---|---|
scope |
@alicloud/ros-cdk-core.Construct |
No description. |
id |
string |
No description. |
props |
InstanceProps |
No description. |
enableResourcePropertyConstraint |
boolean |
No description. |
scope
Required
- Type: @alicloud/ros-cdk-core.Construct
id
Required
- Type: string
props
Optional
- Type: InstanceProps
enableResourcePropertyConstraint
Optional
- Type: boolean
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
public toString(): string
Returns a string representation of this construct.
synthesize
public synthesize(session: ISynthesisSession): void
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.
- Type: @alicloud/ros-cdk-core.ISynthesisSession
The synthesis session.
addCondition
public addCondition(condition: RosCondition): void
- Type: @alicloud/ros-cdk-core.RosCondition
addCount
public addCount(count: number | IResolvable): void
- Type: number | @alicloud/ros-cdk-core.IResolvable
addDependency
public addDependency(resource: Resource): void
- Type: @alicloud/ros-cdk-core.Resource
addResourceDesc
public addResourceDesc(desc: string): void
- Type: string
applyRemovalPolicy
public applyRemovalPolicy(policy: RemovalPolicy): void
- Type: @alicloud/ros-cdk-core.RemovalPolicy
getAtt
public getAtt(name: string): IResolvable
- Type: string
setMetadata
public setMetadata(key: string, value: any): void
- Type: string
- Type: any
Static Functions
Name | Description |
---|---|
isConstruct |
Return whether the given object is a Construct. |
isConstruct
import { Instance } from '@alicloud/ros-cdk-redis'
Instance.isConstruct(x: any)
Return whether the given object is a Construct.
- Type: any
Properties
Name | Type | Description |
---|---|---|
node |
@alicloud/ros-cdk-core.ConstructNode |
The construct tree node associated with this construct. |
ref |
string |
No description. |
stack |
@alicloud/ros-cdk-core.Stack |
The stack in which this resource is defined. |
resource |
@alicloud/ros-cdk-core.RosResource |
No description. |
attrArchitectureType |
@alicloud/ros-cdk-core.IResolvable |
Attribute ArchitectureType: The architecture. |
attrBandwidth |
@alicloud/ros-cdk-core.IResolvable |
Attribute Bandwidth: The bandwidth of the instance. |
attrCapacity |
@alicloud/ros-cdk-core.IResolvable |
Attribute Capacity: The storage capacity of the instance. |
attrChargeType |
@alicloud/ros-cdk-core.IResolvable |
Attribute ChargeType: The billing method of the instance. |
attrClassicInnerConnectionPort |
@alicloud/ros-cdk-core.IResolvable |
Attribute ClassicInnerConnectionPort: The classic inner connection port of the instance. |
attrClassicInnerConnectionString |
@alicloud/ros-cdk-core.IResolvable |
Attribute ClassicInnerConnectionString: The classic inner connection string of the instance. |
attrConnectionDomain |
@alicloud/ros-cdk-core.IResolvable |
Attribute ConnectionDomain: Connection domain of created instance. |
attrConnections |
@alicloud/ros-cdk-core.IResolvable |
Attribute Connections: The maximum number of connections supported by the instance. |
attrDirectConnectionPort |
@alicloud/ros-cdk-core.IResolvable |
Attribute DirectConnectionPort: The direct connection port of the instance. |
attrDirectConnectionString |
@alicloud/ros-cdk-core.IResolvable |
Attribute DirectConnectionString: The direct connection string of the instance. |
attrEngineVersion |
@alicloud/ros-cdk-core.IResolvable |
Attribute EngineVersion: The engine version of the instance. |
attrHasRenewChangeOrder |
@alicloud/ros-cdk-core.IResolvable |
Attribute HasRenewChangeOrder: Indicates whether the Alibaba Cloud account has pending renewal or scaling orders. |
attrInstanceClass |
@alicloud/ros-cdk-core.IResolvable |
Attribute InstanceClass: Redis instance type. |
attrInstanceId |
@alicloud/ros-cdk-core.IResolvable |
Attribute InstanceId: Instance id of created redis instance. |
attrInstanceName |
@alicloud/ros-cdk-core.IResolvable |
Attribute InstanceName: Name of created redis instance. |
attrInstanceType |
@alicloud/ros-cdk-core.IResolvable |
Attribute InstanceType: The engine type of the instance. |
attrNetworkType |
@alicloud/ros-cdk-core.IResolvable |
Attribute NetworkType: The network type. |
attrNodeType |
@alicloud/ros-cdk-core.IResolvable |
Attribute NodeType: The type of node. |
attrOrderId |
@alicloud/ros-cdk-core.IResolvable |
Attribute OrderId: Order Id of created instance. |
attrPackageType |
@alicloud/ros-cdk-core.IResolvable |
Attribute PackageType: The plan type. |
attrPort |
@alicloud/ros-cdk-core.IResolvable |
Attribute Port: Port of created instance. |
attrPrivateIp |
@alicloud/ros-cdk-core.IResolvable |
Attribute PrivateIp: The internal IP address of the instance. |
attrPublicConnectionPort |
@alicloud/ros-cdk-core.IResolvable |
Attribute PublicConnectionPort: The public connection port of the instance. |
attrPublicConnectionString |
@alicloud/ros-cdk-core.IResolvable |
Attribute PublicConnectionString: The public connection string of the instance. |
attrQps |
@alicloud/ros-cdk-core.IResolvable |
Attribute QPS: The queries per second (QPS) supported by the instance. |
attrResourceGroupId |
@alicloud/ros-cdk-core.IResolvable |
Attribute ResourceGroupId: The ID of the resource group to which the instance belongs. |
attrVpcId |
@alicloud/ros-cdk-core.IResolvable |
Attribute VpcId: The ID of the VPC. |
attrVpcPrivateConnectionPort |
@alicloud/ros-cdk-core.IResolvable |
Attribute VpcPrivateConnectionPort: The vpc private connection port of the instance. |
attrVpcPrivateConnectionString |
@alicloud/ros-cdk-core.IResolvable |
Attribute VpcPrivateConnectionString: The vpc private connection string of the instance. |
attrVSwitchId |
@alicloud/ros-cdk-core.IResolvable |
Attribute VSwitchId: The ID of the vSwitch. |
attrZoneId |
@alicloud/ros-cdk-core.IResolvable |
Attribute ZoneId: The ID of the zone. |
node
Required
public readonly node: ConstructNode;
- Type: @alicloud/ros-cdk-core.ConstructNode
The construct tree node associated with this construct.
ref
Required
public readonly ref: string;
- Type: string
stack
Required
public readonly stack: Stack;
- Type: @alicloud/ros-cdk-core.Stack
The stack in which this resource is defined.
resource
Optional
public readonly resource: RosResource;
- Type: @alicloud/ros-cdk-core.RosResource
attrArchitectureType
Required
public readonly attrArchitectureType: IResolvable;
- Type: @alicloud/ros-cdk-core.IResolvable
Attribute ArchitectureType: The architecture.
attrBandwidth
Required
public readonly attrBandwidth: IResolvable;
- Type: @alicloud/ros-cdk-core.IResolvable
Attribute Bandwidth: The bandwidth of the instance.
Unit: Mbit/s.
attrCapacity
Required
public readonly attrCapacity: IResolvable;
- Type: @alicloud/ros-cdk-core.IResolvable
Attribute Capacity: The storage capacity of the instance.
Unit: MB.
attrChargeType
Required
public readonly attrChargeType: IResolvable;
- Type: @alicloud/ros-cdk-core.IResolvable
Attribute ChargeType: The billing method of the instance.
attrClassicInnerConnectionPort
Required
public readonly attrClassicInnerConnectionPort: IResolvable;
- Type: @alicloud/ros-cdk-core.IResolvable
Attribute ClassicInnerConnectionPort: The classic inner connection port of the instance.
attrClassicInnerConnectionString
Required
public readonly attrClassicInnerConnectionString: IResolvable;
- Type: @alicloud/ros-cdk-core.IResolvable
Attribute ClassicInnerConnectionString: The classic inner connection string of the instance.
attrConnectionDomain
Required
public readonly attrConnectionDomain: IResolvable;
- Type: @alicloud/ros-cdk-core.IResolvable
Attribute ConnectionDomain: Connection domain of created instance.
attrConnections
Required
public readonly attrConnections: IResolvable;
- Type: @alicloud/ros-cdk-core.IResolvable
Attribute Connections: The maximum number of connections supported by the instance.
attrDirectConnectionPort
Required
public readonly attrDirectConnectionPort: IResolvable;
- Type: @alicloud/ros-cdk-core.IResolvable
Attribute DirectConnectionPort: The direct connection port of the instance.
attrDirectConnectionString
Required
public readonly attrDirectConnectionString: IResolvable;
- Type: @alicloud/ros-cdk-core.IResolvable
Attribute DirectConnectionString: The direct connection string of the instance.
attrEngineVersion
Required
public readonly attrEngineVersion: IResolvable;
- Type: @alicloud/ros-cdk-core.IResolvable
Attribute EngineVersion: The engine version of the instance.
attrHasRenewChangeOrder
Required
public readonly attrHasRenewChangeOrder: IResolvable;
- Type: @alicloud/ros-cdk-core.IResolvable
Attribute HasRenewChangeOrder: Indicates whether the Alibaba Cloud account has pending renewal or scaling orders.
attrInstanceClass
Required
public readonly attrInstanceClass: IResolvable;
- Type: @alicloud/ros-cdk-core.IResolvable
Attribute InstanceClass: Redis instance type.
attrInstanceId
Required
public readonly attrInstanceId: IResolvable;
- Type: @alicloud/ros-cdk-core.IResolvable
Attribute InstanceId: Instance id of created redis instance.
attrInstanceName
Required
public readonly attrInstanceName: IResolvable;
- Type: @alicloud/ros-cdk-core.IResolvable
Attribute InstanceName: Name of created redis instance.
attrInstanceType
Required
public readonly attrInstanceType: IResolvable;
- Type: @alicloud/ros-cdk-core.IResolvable
Attribute InstanceType: The engine type of the instance.
attrNetworkType
Required
public readonly attrNetworkType: IResolvable;
- Type: @alicloud/ros-cdk-core.IResolvable
Attribute NetworkType: The network type.
attrNodeType
Required
public readonly attrNodeType: IResolvable;
- Type: @alicloud/ros-cdk-core.IResolvable
Attribute NodeType: The type of node.
attrOrderId
Required
public readonly attrOrderId: IResolvable;
- Type: @alicloud/ros-cdk-core.IResolvable
Attribute OrderId: Order Id of created instance.
attrPackageType
Required
public readonly attrPackageType: IResolvable;
- Type: @alicloud/ros-cdk-core.IResolvable
Attribute PackageType: The plan type.
attrPort
Required
public readonly attrPort: IResolvable;
- Type: @alicloud/ros-cdk-core.IResolvable
Attribute Port: Port of created instance.
attrPrivateIp
Required
public readonly attrPrivateIp: IResolvable;
- Type: @alicloud/ros-cdk-core.IResolvable
Attribute PrivateIp: The internal IP address of the instance.
attrPublicConnectionPort
Required
public readonly attrPublicConnectionPort: IResolvable;
- Type: @alicloud/ros-cdk-core.IResolvable
Attribute PublicConnectionPort: The public connection port of the instance.
attrPublicConnectionString
Required
public readonly attrPublicConnectionString: IResolvable;
- Type: @alicloud/ros-cdk-core.IResolvable
Attribute PublicConnectionString: The public connection string of the instance.
attrQps
Required
public readonly attrQps: IResolvable;
- Type: @alicloud/ros-cdk-core.IResolvable
Attribute QPS: The queries per second (QPS) supported by the instance.
attrResourceGroupId
Required
public readonly attrResourceGroupId: IResolvable;
- Type: @alicloud/ros-cdk-core.IResolvable
Attribute ResourceGroupId: The ID of the resource group to which the instance belongs.
attrVpcId
Required
public readonly attrVpcId: IResolvable;
- Type: @alicloud/ros-cdk-core.IResolvable
Attribute VpcId: The ID of the VPC.
attrVpcPrivateConnectionPort
Required
public readonly attrVpcPrivateConnectionPort: IResolvable;
- Type: @alicloud/ros-cdk-core.IResolvable
Attribute VpcPrivateConnectionPort: The vpc private connection port of the instance.
attrVpcPrivateConnectionString
Required
public readonly attrVpcPrivateConnectionString: IResolvable;
- Type: @alicloud/ros-cdk-core.IResolvable
Attribute VpcPrivateConnectionString: The vpc private connection string of the instance.
attrVSwitchId
Required
public readonly attrVSwitchId: IResolvable;
- Type: @alicloud/ros-cdk-core.IResolvable
Attribute VSwitchId: The ID of the vSwitch.
attrZoneId
Required
public readonly attrZoneId: IResolvable;
- Type: @alicloud/ros-cdk-core.IResolvable
Attribute ZoneId: The ID of the zone.