Protected
Get a Value from a Keyspace. Always returns the latest Value that has been stored. Empty object is returned when the given key does not exist.
Use a bare-bones client and the command you need to make an API call.
import { StashClient, GetValueCommand } from "@stedi/sdk-client-stash"; // ES Modules import// const { StashClient, GetValueCommand } = require("@stedi/sdk-client-stash"); // CommonJS importconst client = new StashClient(config);const input = { // GetValueInput keyspaceName: "STRING_VALUE", // required key: "STRING_VALUE", // required};const command = new GetValueCommand(input);const response = await client.send(command);// { // ValueOutput// key: "STRING_VALUE",// value: "DOCUMENT_VALUE",// };
GetValueCommandInput
GetValueCommandOutput
input
response
config
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
Get a Value from a Keyspace. Always returns the latest Value that has been stored. Empty object is returned when the given key does not exist.
Example
Use a bare-bones client and the command you need to make an API call.
Param
GetValueCommandInput
Returns
GetValueCommandOutput
See
input
shape.response
shape.config
shape.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.