// Performs all the write operations in a batch. Either all the operations succeed
// or none.
Performs all the write operations in a batch. Either all the operations succeed
or none.
// Performs all the write operations in a batch . Either all the operations succeed // or none .
func (c *Client) BatchWrite(ctx context.Context, params *BatchWriteInput, optFns ...func(*Options)) (*BatchWriteOutput, error) {
	if params == nil {
		params = &BatchWriteInput{}
	}
	result, metadata, err := c.invokeOperation(ctx, "BatchWrite", params, optFns, addOperationBatchWriteMiddlewares)
	if err != nil {
		return nil, err
	}
	out := result.(*BatchWriteOutput)
	out.ResultMetadata = metadata
	return out, nil
}
func ( c * Client ) BatchWrite ( ctx context . Context , params * BatchWriteInput , optFns ... func ( * Options ) ) ( * BatchWriteOutput , error ) { if params == nil { params = & BatchWriteInput { } } result , metadata , err := c . invokeOperation ( ctx , " " , params , optFns , addOperationBatchWriteMiddlewares ) if err != nil { return nil , err } out := result . ( * BatchWriteOutput ) out . ResultMetadata = metadata return out , nil }
Performs all the write operations in a batch.
Performs all the write operations in a batch .