Skip to content

BatchPutAttributes

Source: src/AWS/SimpleDB/BatchPutAttributes.ts

Runtime binding for sdb:BatchPutAttributes.

Bind this operation to a Domain inside a function runtime to get a callable that automatically injects the domain name. Puts attributes on up to 25 items in a single call.

const batchPutAttributes = yield* AWS.SimpleDB.BatchPutAttributes(domain);
yield* batchPutAttributes({
Items: [
{
ItemName: "user#1",
Attributes: [{ Name: "plan", Value: "free", Replace: true }],
},
{
ItemName: "user#2",
Attributes: [{ Name: "plan", Value: "pro", Replace: true }],
},
],
});