CipherStashDocs
StackLatestPackagesStackSrcDynamodbClasses

BulkEncryptModelsOperation

BulkEncryptModelsOperation is a class in @cipherstash/stack. TypeScript API reference with its signature, parameters, and usage.

@cipherstash/stack


Class: BulkEncryptModelsOperation<T>

Defined in: packages/stack/src/dynamodb/operations/bulk-encrypt-models.ts:12

Extends

  • DynamoDBOperation<T[]>

Type Parameters

T

T extends Record<string, unknown>

Constructors

Constructor

new BulkEncryptModelsOperation&lt;T&gt;(
   encryptionClient, 
   items, 
   table, 
   options?): BulkEncryptModelsOperation&lt;T&gt;;

Defined in: packages/stack/src/dynamodb/operations/bulk-encrypt-models.ts:19

Parameters

encryptionClient

EncryptionClient

items

T[]

table

EncryptedTable<EncryptedTableColumn>

options?

DynamoDBOperationOptions

Returns

BulkEncryptModelsOperation<T>

Overrides

DynamoDBOperation&lt;T[]&gt;.constructor

Methods

audit()

audit(config): this;

Defined in: packages/stack/src/dynamodb/operations/base-operation.ts:32

Attach audit metadata to this operation. Can be chained.

Parameters

config

AuditConfig

Returns

this

Inherited from

DynamoDBOperation.audit

then()

then&lt;TResult1, TResult2&gt;(onfulfilled?, onrejected?): Promise&lt;TResult1 | TResult2&gt;;

Defined in: packages/stack/src/dynamodb/operations/base-operation.ts:54

Make the operation thenable

Type Parameters

TResult1

TResult1 = Result<T[], EncryptedDynamoDBError>

TResult2

TResult2 = never

Parameters

onfulfilled?

(value) => TResult1 | PromiseLike<TResult1> | null

onrejected?

(reason) => TResult2 | PromiseLike<TResult2> | null

Returns

Promise<TResult1 | TResult2>

Inherited from

DynamoDBOperation.then

execute()

execute(): Promise&lt;Result&lt;T[], EncryptedDynamoDBError&gt;>;

Defined in: packages/stack/src/dynamodb/operations/bulk-encrypt-models.ts:31

Execute the operation and return a Result

Returns

Promise<Result<T[], EncryptedDynamoDBError>>

Overrides

DynamoDBOperation.execute

On this page