Skip to content

Instance

This class encapsulates and extends the ROS resource type ALIYUN::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.

scopeRequired

  • Type: @alicloud/ros-cdk-core.Construct

idRequired

  • Type: string

propsOptional


enableResourcePropertyConstraintOptional

  • 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.
fetchCondition No description.
fetchDependency No description.
fetchResourceDesc 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.

sessionRequired

  • Type: @alicloud/ros-cdk-core.ISynthesisSession

The synthesis session.


addCondition

public addCondition(condition: RosCondition): void

conditionRequired

  • Type: @alicloud/ros-cdk-core.RosCondition

addCount

public addCount(count: number | IResolvable): void

countRequired

  • Type: number | @alicloud/ros-cdk-core.IResolvable

addDependency

public addDependency(resource: Resource): void

resourceRequired

  • Type: @alicloud/ros-cdk-core.Resource

addResourceDesc

public addResourceDesc(desc: string): void

descRequired

  • Type: string

applyRemovalPolicy

public applyRemovalPolicy(policy: RemovalPolicy): void

policyRequired

  • Type: @alicloud/ros-cdk-core.RemovalPolicy

fetchCondition

public fetchCondition(): RosCondition

fetchDependency

public fetchDependency(): string[]

fetchResourceDesc

public fetchResourceDesc(): string

getAtt

public getAtt(name: string): IResolvable

nameRequired

  • Type: string

setMetadata

public setMetadata(key: string, value: any): void

keyRequired

  • Type: string

valueRequired

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

xRequired

  • Type: any

Properties

Name Type Description
node @alicloud/ros-cdk-core.ConstructNode The construct tree node associated with this construct.
env @alicloud/ros-cdk-core.IResourceEnvironment The environment this resource belongs to.
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 string | @alicloud/ros-cdk-core.IResolvable Attribute ArchitectureType: The architecture.
attrBandwidth string | @alicloud/ros-cdk-core.IResolvable Attribute Bandwidth: The bandwidth of the instance.
attrCapacity string | @alicloud/ros-cdk-core.IResolvable Attribute Capacity: The storage capacity of the instance.
attrChargeType string | @alicloud/ros-cdk-core.IResolvable Attribute ChargeType: The billing method of the instance.
attrClassicInnerConnectionPort string | @alicloud/ros-cdk-core.IResolvable Attribute ClassicInnerConnectionPort: The classic inner connection port of the instance.
attrClassicInnerConnectionString string | @alicloud/ros-cdk-core.IResolvable Attribute ClassicInnerConnectionString: The classic inner connection string of the instance.
attrConnectionDomain string | @alicloud/ros-cdk-core.IResolvable Attribute ConnectionDomain: Connection domain of created instance.
attrConnections string | @alicloud/ros-cdk-core.IResolvable Attribute Connections: The maximum number of connections supported by the instance.
attrDirectConnectionPort string | @alicloud/ros-cdk-core.IResolvable Attribute DirectConnectionPort: The direct connection port of the instance.
attrDirectConnectionString string | @alicloud/ros-cdk-core.IResolvable Attribute DirectConnectionString: The direct connection string of the instance.
attrEngineVersion string | @alicloud/ros-cdk-core.IResolvable Attribute EngineVersion: The engine version of the instance.
attrHasRenewChangeOrder string | @alicloud/ros-cdk-core.IResolvable Attribute HasRenewChangeOrder: Indicates whether the Alibaba Cloud account has pending renewal or scaling orders.
attrInstanceClass string | @alicloud/ros-cdk-core.IResolvable Attribute InstanceClass: Redis instance type.
attrInstanceId string | @alicloud/ros-cdk-core.IResolvable Attribute InstanceId: Instance id of created redis instance.
attrInstanceName string | @alicloud/ros-cdk-core.IResolvable Attribute InstanceName: Name of created redis instance.
attrInstanceType string | @alicloud/ros-cdk-core.IResolvable Attribute InstanceType: The engine type of the instance.
attrNetworkType string | @alicloud/ros-cdk-core.IResolvable Attribute NetworkType: The network type.
attrNodeType string | @alicloud/ros-cdk-core.IResolvable Attribute NodeType: The type of node.
attrOrderId string | @alicloud/ros-cdk-core.IResolvable Attribute OrderId: Order Id of created instance.
attrPackageType string | @alicloud/ros-cdk-core.IResolvable Attribute PackageType: The plan type.
attrPort string | @alicloud/ros-cdk-core.IResolvable Attribute Port: Port of created instance.
attrPrivateIp string | @alicloud/ros-cdk-core.IResolvable Attribute PrivateIp: The internal IP address of the instance.
attrPublicConnectionPort string | @alicloud/ros-cdk-core.IResolvable Attribute PublicConnectionPort: The public connection port of the instance.
attrPublicConnectionString string | @alicloud/ros-cdk-core.IResolvable Attribute PublicConnectionString: The public connection string of the instance.
attrQps string | @alicloud/ros-cdk-core.IResolvable Attribute QPS: The queries per second (QPS) supported by the instance.
attrResourceGroupId string | @alicloud/ros-cdk-core.IResolvable Attribute ResourceGroupId: The ID of the resource group to which the instance belongs.
attrVpcId string | @alicloud/ros-cdk-core.IResolvable Attribute VpcId: The ID of the VPC.
attrVpcPrivateConnectionPort string | @alicloud/ros-cdk-core.IResolvable Attribute VpcPrivateConnectionPort: The vpc private connection port of the instance.
attrVpcPrivateConnectionString string | @alicloud/ros-cdk-core.IResolvable Attribute VpcPrivateConnectionString: The vpc private connection string of the instance.
attrVSwitchId string | @alicloud/ros-cdk-core.IResolvable Attribute VSwitchId: The ID of the vSwitch.
attrZoneId string | @alicloud/ros-cdk-core.IResolvable Attribute ZoneId: The ID of the zone.
props InstanceProps No description.

nodeRequired

public readonly node: ConstructNode;
  • Type: @alicloud/ros-cdk-core.ConstructNode

The construct tree node associated with this construct.


envRequired

public readonly env: IResourceEnvironment;
  • Type: @alicloud/ros-cdk-core.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

public readonly ref: string;
  • Type: string

stackRequired

public readonly stack: Stack;
  • Type: @alicloud/ros-cdk-core.Stack

The stack in which this resource is defined.


resourceOptional

public readonly resource: RosResource;
  • Type: @alicloud/ros-cdk-core.RosResource

attrArchitectureTypeRequired

public readonly attrArchitectureType: string | IResolvable;
  • Type: string | @alicloud/ros-cdk-core.IResolvable

Attribute ArchitectureType: The architecture.


attrBandwidthRequired

public readonly attrBandwidth: string | IResolvable;
  • Type: string | @alicloud/ros-cdk-core.IResolvable

Attribute Bandwidth: The bandwidth of the instance.

Unit: Mbit/s.


attrCapacityRequired

public readonly attrCapacity: string | IResolvable;
  • Type: string | @alicloud/ros-cdk-core.IResolvable

Attribute Capacity: The storage capacity of the instance.

Unit: MB.


attrChargeTypeRequired

public readonly attrChargeType: string | IResolvable;
  • Type: string | @alicloud/ros-cdk-core.IResolvable

Attribute ChargeType: The billing method of the instance.


attrClassicInnerConnectionPortRequired

public readonly attrClassicInnerConnectionPort: string | IResolvable;
  • Type: string | @alicloud/ros-cdk-core.IResolvable

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


attrClassicInnerConnectionStringRequired

public readonly attrClassicInnerConnectionString: string | IResolvable;
  • Type: string | @alicloud/ros-cdk-core.IResolvable

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


attrConnectionDomainRequired

public readonly attrConnectionDomain: string | IResolvable;
  • Type: string | @alicloud/ros-cdk-core.IResolvable

Attribute ConnectionDomain: Connection domain of created instance.


attrConnectionsRequired

public readonly attrConnections: string | IResolvable;
  • Type: string | @alicloud/ros-cdk-core.IResolvable

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


attrDirectConnectionPortRequired

public readonly attrDirectConnectionPort: string | IResolvable;
  • Type: string | @alicloud/ros-cdk-core.IResolvable

Attribute DirectConnectionPort: The direct connection port of the instance.


attrDirectConnectionStringRequired

public readonly attrDirectConnectionString: string | IResolvable;
  • Type: string | @alicloud/ros-cdk-core.IResolvable

Attribute DirectConnectionString: The direct connection string of the instance.


attrEngineVersionRequired

public readonly attrEngineVersion: string | IResolvable;
  • Type: string | @alicloud/ros-cdk-core.IResolvable

Attribute EngineVersion: The engine version of the instance.


attrHasRenewChangeOrderRequired

public readonly attrHasRenewChangeOrder: string | IResolvable;
  • Type: string | @alicloud/ros-cdk-core.IResolvable

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


attrInstanceClassRequired

public readonly attrInstanceClass: string | IResolvable;
  • Type: string | @alicloud/ros-cdk-core.IResolvable

Attribute InstanceClass: Redis instance type.


attrInstanceIdRequired

public readonly attrInstanceId: string | IResolvable;
  • Type: string | @alicloud/ros-cdk-core.IResolvable

Attribute InstanceId: Instance id of created redis instance.


attrInstanceNameRequired

public readonly attrInstanceName: string | IResolvable;
  • Type: string | @alicloud/ros-cdk-core.IResolvable

Attribute InstanceName: Name of created redis instance.


attrInstanceTypeRequired

public readonly attrInstanceType: string | IResolvable;
  • Type: string | @alicloud/ros-cdk-core.IResolvable

Attribute InstanceType: The engine type of the instance.


attrNetworkTypeRequired

public readonly attrNetworkType: string | IResolvable;
  • Type: string | @alicloud/ros-cdk-core.IResolvable

Attribute NetworkType: The network type.


attrNodeTypeRequired

public readonly attrNodeType: string | IResolvable;
  • Type: string | @alicloud/ros-cdk-core.IResolvable

Attribute NodeType: The type of node.


attrOrderIdRequired

public readonly attrOrderId: string | IResolvable;
  • Type: string | @alicloud/ros-cdk-core.IResolvable

Attribute OrderId: Order Id of created instance.


attrPackageTypeRequired

public readonly attrPackageType: string | IResolvable;
  • Type: string | @alicloud/ros-cdk-core.IResolvable

Attribute PackageType: The plan type.


attrPortRequired

public readonly attrPort: string | IResolvable;
  • Type: string | @alicloud/ros-cdk-core.IResolvable

Attribute Port: Port of created instance.


attrPrivateIpRequired

public readonly attrPrivateIp: string | IResolvable;
  • Type: string | @alicloud/ros-cdk-core.IResolvable

Attribute PrivateIp: The internal IP address of the instance.


attrPublicConnectionPortRequired

public readonly attrPublicConnectionPort: string | IResolvable;
  • Type: string | @alicloud/ros-cdk-core.IResolvable

Attribute PublicConnectionPort: The public connection port of the instance.


attrPublicConnectionStringRequired

public readonly attrPublicConnectionString: string | IResolvable;
  • Type: string | @alicloud/ros-cdk-core.IResolvable

Attribute PublicConnectionString: The public connection string of the instance.


attrQpsRequired

public readonly attrQps: string | IResolvable;
  • Type: string | @alicloud/ros-cdk-core.IResolvable

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


attrResourceGroupIdRequired

public readonly attrResourceGroupId: string | IResolvable;
  • Type: string | @alicloud/ros-cdk-core.IResolvable

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


attrVpcIdRequired

public readonly attrVpcId: string | IResolvable;
  • Type: string | @alicloud/ros-cdk-core.IResolvable

Attribute VpcId: The ID of the VPC.


attrVpcPrivateConnectionPortRequired

public readonly attrVpcPrivateConnectionPort: string | IResolvable;
  • Type: string | @alicloud/ros-cdk-core.IResolvable

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


attrVpcPrivateConnectionStringRequired

public readonly attrVpcPrivateConnectionString: string | IResolvable;
  • Type: string | @alicloud/ros-cdk-core.IResolvable

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


attrVSwitchIdRequired

public readonly attrVSwitchId: string | IResolvable;
  • Type: string | @alicloud/ros-cdk-core.IResolvable

Attribute VSwitchId: The ID of the vSwitch.


attrZoneIdRequired

public readonly attrZoneId: string | IResolvable;
  • Type: string | @alicloud/ros-cdk-core.IResolvable

Attribute ZoneId: The ID of the zone.


propsRequired

public readonly props: InstanceProps;