ConnectionProps
Properties for defining a Connection
.
See https://www.alibabacloud.com/help/ros/developer-reference/aliyun-redis-connection
Initializer
import ros_cdk_redis
ros_cdk_redis.ConnectionProps(
connection_string_prefix: typing.Union[str, IResolvable],
connection_type: typing.Union[str, IResolvable],
instance_id: typing.Union[str, IResolvable],
port: typing.Union[typing.Union[int, float], IResolvable]
)
Properties
Name | Type | Description |
---|---|---|
connection_string_prefix |
typing.Union[str, ros_cdk_core.IResolvable] |
Property connectionStringPrefix: The prefix of the public endpoint. |
connection_type |
typing.Union[str, ros_cdk_core.IResolvable] |
Property connectionType: Allowed values: - Public: Public address. |
instance_id |
typing.Union[str, ros_cdk_core.IResolvable] |
Property instanceId: Instance ID (globally unique). |
port |
typing.Union[typing.Union[int, float], ros_cdk_core.IResolvable] |
Property port: The service port number of the ApsaraDB for Redis instance. |
connection_string_prefix
Required
connection_string_prefix: typing.Union[str, IResolvable]
- Type: typing.Union[str, 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.
connection_type
Required
connection_type: typing.Union[str, IResolvable]
- Type: typing.Union[str, 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.
instance_id
Required
instance_id: typing.Union[str, IResolvable]
- Type: typing.Union[str, ros_cdk_core.IResolvable]
Property instanceId: Instance ID (globally unique).
port
Required
port: typing.Union[typing.Union[int, float], IResolvable]
- Type: typing.Union[typing.Union[int, float], ros_cdk_core.IResolvable]
Property port: The service port number of the ApsaraDB for Redis instance.
Valid values: 1024 to 65535.