Options
All
  • Public
  • Public/Protected
  • All
Menu

Puts (sets or overwrites) a key-value entry by key.

example

Use a bare-bones client and the command you need to make an API call.

import { KvServiceClient, PutCommand } from "@rivet-gg/kv"; // ES Modules import
// const { KvServiceClient, PutCommand } = require("@rivet-gg/kv"); // CommonJS import
const client = new KvServiceClient(config);
const command = new PutCommand(input);
const response = await client.send(command);
see

PutCommandInput for command's input shape.

see

PutCommandOutput for command's response shape.

see

config for KvServiceClient's config shape.

Hierarchy

Implements

Index

Constructors

Properties

Constructors

constructor

  • Parameters

    Returns PutCommand

  • Parameters

    • input: PutCommandInput

    Returns PutCommand

Properties

Readonly input

input: PutCommandInput

Readonly middlewareStack

middlewareStack: IMiddlewareStack<PutCommandInput, PutCommandOutput>