Skip to content

KvProps

Properties for defining a Kv.

See https://www.alibabacloud.com/help/ros/developer-reference/aliyun-esa-kv

Initializer

import { KvProps } from '@alicloud/ros-cdk-esa'
const kvProps: KvProps = { ... }

Properties

Name Type Description
key string | @alicloud/ros-cdk-core.IResolvable Property key: The key name.
namespace string | @alicloud/ros-cdk-core.IResolvable Property namespace: The name specified when calling [CreatevNamespace] https:\/\/help.aliyun.com\/document_detail\/2850317.html.
value string | @alicloud/ros-cdk-core.IResolvable Property value: The content of the key.
expiration number | @alicloud/ros-cdk-core.IResolvable Property expiration: The content of the key, which can be up to 2 MB (2 × 1000 × 1000).
expirationTtl number | @alicloud/ros-cdk-core.IResolvable Property expirationTtl: The time when the key-value pair expires, which cannot be earlier than the current time.

keyRequired

public readonly key: string | IResolvable;
  • Type: string | @alicloud/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

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

Property namespace: The name specified when calling [CreatevNamespace] https:\/\/help.aliyun.com\/document_detail\/2850317.html.


valueRequired

public readonly value: string | IResolvable;
  • Type: string | @alicloud/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

public readonly expiration: number | IResolvable;
  • Type: number | @alicloud/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.


expirationTtlOptional

public readonly expirationTtl: number | IResolvable;
  • Type: number | @alicloud/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.