Skip to content

ConnectionProps

Properties for defining a Connection.

See https://www.alibabacloud.com/help/ros/developer-reference/aliyun-redis-connection

Initializer

import { ConnectionProps } from '@alicloud/ros-cdk-redis'
const connectionProps: ConnectionProps = { ... }

Properties

Name Type Description
connectionStringPrefix string | @alicloud/ros-cdk-core.IResolvable Property connectionStringPrefix: The prefix of the public endpoint.
connectionType string | @alicloud/ros-cdk-core.IResolvable Property connectionType: Allowed values: - Public: Public address.
instanceId string | @alicloud/ros-cdk-core.IResolvable Property instanceId: Instance ID (globally unique).
port number | @alicloud/ros-cdk-core.IResolvable Property port: The service port number of the ApsaraDB for Redis instance.

connectionStringPrefixRequired

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

Property connectionStringPrefix: The prefix of the public endpoint.

The prefix must be 8 to 64 characters in length, and can contain lowercase letters and digits. It must start with a lowercase letter.


connectionTypeRequired

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

Property connectionType: Allowed values: - Public: Public address.

Direct: Direct connection address. The instance is a cluster instance. You can apply for a direct connection endpoint as required.


instanceIdRequired

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

Property instanceId: Instance ID (globally unique).


portRequired

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

Property port: The service port number of the ApsaraDB for Redis instance.

Valid values: 1024 to 65535.