KvProps
Properties for defining a Kv.
See https://www.alibabacloud.com/help/ros/developer-reference/aliyun-esa-kv
Initializer
import ros_cdk_esa
ros_cdk_esa.KvProps(
key: typing.Union[str, IResolvable],
namespace: typing.Union[str, IResolvable],
value: typing.Union[str, IResolvable],
expiration: typing.Union[typing.Union[int, float], IResolvable] = None,
expiration_ttl: typing.Union[typing.Union[int, float], IResolvable] = None
)
Properties
| Name | Type | Description |
|---|---|---|
key | typing.Union[str, ros_cdk_core.IResolvable] | Property key: The key name. |
namespace | typing.Union[str, ros_cdk_core.IResolvable] | Property namespace: The name specified when calling [CreatevNamespace] https:\/\/help.aliyun.com\/document_detail\/2850317.html. |
value | typing.Union[str, ros_cdk_core.IResolvable] | Property value: The content of the key. |
expiration | typing.Union[typing.Union[int, float], ros_cdk_core.IResolvable] | Property expiration: The content of the key, which can be up to 2 MB (2 Ã 1000 Ã 1000). |
expiration_ttl | typing.Union[typing.Union[int, float], ros_cdk_core.IResolvable] | Property expirationTtl: The time when the key-value pair expires, which cannot be earlier than the current time. |
keyRequired
key: typing.Union[str, IResolvable]
- Type: typing.Union[str, ros_cdk_core.IResolvable]
Property key: The key name.
The name can be up to 512 characters in length and cannot contain spaces or backslashes ().
namespaceRequired
namespace: typing.Union[str, IResolvable]
- Type: typing.Union[str, ros_cdk_core.IResolvable]
Property namespace: The name specified when calling [CreatevNamespace] https:\/\/help.aliyun.com\/document_detail\/2850317.html.
valueRequired
value: typing.Union[str, IResolvable]
- Type: typing.Union[str, ros_cdk_core.IResolvable]
Property value: The content of the key.
If the content has more than 256 characters in length, the system displays the first 100 and the last 100 characters, and omits the middle part.
expirationOptional
expiration: typing.Union[typing.Union[int, float], IResolvable]
- Type: typing.Union[typing.Union[int, float], ros_cdk_core.IResolvable]
Property expiration: The content of the key, which can be up to 2 MB (2 Ã 1000 Ã 1000).
If the content is larger than 2 MB, call [PutKvWithHighCapacity] https://www.alibabacloud.com/help/en/doc-detail/2850486.html.
expiration_ttlOptional
expiration_ttl: typing.Union[typing.Union[int, float], IResolvable]
- Type: typing.Union[typing.Union[int, float], ros_cdk_core.IResolvable]
Property expirationTtl: The time when the key-value pair expires, which cannot be earlier than the current time.
The value is a timestamp in seconds. If you specify both Expiration and ExpirationTtl, only ExpirationTtl takes effect.