Protected
Set a Value in a Keyspace.
This operation will overwrite any previous Values that have been stored in the same Key.
Use a bare-bones client and the command you need to make an API call.
import { StashClient, SetValueCommand } from "@stedi/sdk-client-stash"; // ES Modules import// const { StashClient, SetValueCommand } = require("@stedi/sdk-client-stash"); // CommonJS importconst client = new StashClient(config);const input = { // SetValueInput keyspaceName: "STRING_VALUE", // required key: "STRING_VALUE", // required value: "DOCUMENT_VALUE", // required};const command = new SetValueCommand(input);const response = await client.send(command);// {};
SetValueCommandInput
SetValueCommandOutput
input
response
config
ValueSizeLimitReachedError (client fault)
KeyspaceNotFoundError (client fault)
AccessDeniedError (client fault)
InternalServerError (server fault)
ThrottledError (client fault)
UnauthorizedError (client fault)
ValidationError (client fault)
StashServiceException
Base exception class for all service exceptions from Stash service.
Readonly
Set a Value in a Keyspace.
This operation will overwrite any previous Values that have been stored in the same Key.
Example
Use a bare-bones client and the command you need to make an API call.
Param
SetValueCommandInput
Returns
SetValueCommandOutput
See
input
shape.response
shape.config
shape.Throws
ValueSizeLimitReachedError (client fault)
Throws
KeyspaceNotFoundError (client fault)
Throws
AccessDeniedError (client fault)
Throws
InternalServerError (server fault)
Throws
ThrottledError (client fault)
Throws
UnauthorizedError (client fault)
Throws
ValidationError (client fault)
Throws
StashServiceException
Base exception class for all service exceptions from Stash service.