Skip to content

KvProps

Properties for defining a Kv.

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

Initializer

import "github.com/alibabacloud-go/ros-cdk/alicloudroscdkesa"
&alicloudroscdkesa.KvProps {
    Key: interface{},
    Namespace: interface{},
    Value: interface{},
    Expiration: interface{},
    ExpirationTtl: interface{},
}

Properties

Name Type Description
Key interface{} Property key: The key name.
Namespace interface{} Property namespace: The name specified when calling [CreatevNamespace] https:\/\/help.aliyun.com\/document_detail\/2850317.html.
Value interface{} Property value: The content of the key.
Expiration interface{} Property expiration: The content of the key, which can be up to 2 MB (2 × 1000 × 1000).
ExpirationTtl interface{} Property expirationTtl: The time when the key-value pair expires, which cannot be earlier than the current time.

KeyRequired

Key interface{}
  • Type: interface{}

Property key: The key name.

The name can be up to 512 characters in length and cannot contain spaces or backslashes ().


NamespaceRequired

Namespace interface{}
  • Type: interface{}

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


ValueRequired

Value interface{}
  • Type: interface{}

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 interface{}
  • Type: interface{}

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

ExpirationTtl interface{}
  • Type: interface{}

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.