Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/aws-samples/aws-dynamodb-examples
/ functions
Functions
2,858 in github.com/aws-samples/aws-dynamodb-examples
⨍
Functions
2,858
◇
Types & classes
598
↳
Endpoints
15
↓ 344 callers
Method
error
(message: string, error?: Error, data?: any)
workshops/modernizer/frontend/src/services/logger.ts:209
↓ 132 callers
Method
error
(message: string, error?: Error, data?: any)
workshops/modernizer/clean-start/frontend/src/services/logger.ts:209
↓ 131 callers
Method
getFlag
(flagName: K)
workshops/modernizer/backend/src/services/FeatureFlagService.ts:18
↓ 108 callers
Method
findById
* Find user by ID * @param id User ID * @returns Promise resolving to User or null if not found
workshops/modernizer/backend/src/database/interfaces/IUserRepository.ts:13
↓ 80 callers
Method
setFlag
(flagName: K, value: FeatureFlags[K])
workshops/modernizer/backend/src/services/FeatureFlagService.ts:22
↓ 77 callers
Method
delete
* Delete user by ID * @param id User ID * @returns Promise resolving to boolean indicating success
workshops/modernizer/backend/src/database/interfaces/IUserRepository.ts:49
↓ 69 callers
Method
create
* Create a new user * @param userData User data including password hash * @returns Promise resolving to created User
workshops/modernizer/backend/src/database/interfaces/IUserRepository.ts:34
↓ 67 callers
Method
build
()
examples/SDK/java/sdk_v1/data_plane/WorkingWithItems/PutItem.java:172
↓ 62 callers
Method
makeAuthenticatedRequest
* Make authenticated request with reliability improvements
workshops/modernizer/clean-start/backend/src/test-configs/test-helpers/e2e-helpers.ts:231
↓ 62 callers
Method
makeAuthenticatedRequest
* Make authenticated request with reliability improvements
workshops/modernizer/backend/src/test-configs/test-helpers/e2e-helpers.ts:231
↓ 61 callers
Method
makeRequest
* Make HTTP request to test server
workshops/modernizer/clean-start/backend/src/test-configs/test-helpers/server.ts:119
↓ 61 callers
Method
makeRequest
* Make HTTP request to test server
workshops/modernizer/backend/src/test-configs/test-helpers/server.ts:119
↓ 54 callers
Method
setToken
(token: string, expiresIn?: number, refreshToken?: string)
workshops/modernizer/frontend/src/services/secureStorage.ts:11
↓ 48 callers
Method
getToken
()
workshops/modernizer/frontend/src/services/secureStorage.ts:12
↓ 47 callers
Method
warn
(message: string, data?: any)
workshops/modernizer/frontend/src/services/logger.ts:197
↓ 43 callers
Method
setMigrationPhase
(req: Request, res: Response)
workshops/modernizer/backend/src/controllers/AdminController.ts:127
↓ 42 callers
Method
info
(message: string, data?: any)
workshops/modernizer/frontend/src/services/logger.ts:185
↓ 41 callers
Method
update
* Update user information * @param id User ID * @param userData Updated user data * @returns Promise resolving to updated User or null if not
workshops/modernizer/backend/src/database/interfaces/IUserRepository.ts:42
↓ 39 callers
Method
warn
(message: string, data?: any)
workshops/modernizer/clean-start/frontend/src/services/logger.ts:197
↓ 34 callers
Method
isTokenValid
()
workshops/modernizer/frontend/src/services/secureStorage.ts:14
↓ 34 callers
Method
removeItem
* Remove item from cart * @param userId User ID * @param productId Product ID * @returns Promise resolving to boolean indicating success
workshops/modernizer/backend/src/database/interfaces/IShoppingCartRepository.ts:39
↓ 33 callers
Method
createOrder
* Create a new order * @param userId User ID * @param totalAmount Total order amount * @param mysqlResult Optional MySQL result for dual-writ
workshops/modernizer/backend/src/database/interfaces/IOrderRepository.ts:15
↓ 32 callers
Method
createTestUser
* Create a test user with authentication
workshops/modernizer/clean-start/backend/src/test-configs/test-helpers/e2e-helpers.ts:44
↓ 32 callers
Method
createTestUser
* Create a test user with authentication
workshops/modernizer/backend/src/test-configs/test-helpers/e2e-helpers.ts:44
↓ 30 callers
Function
create_client_error
Helper to create a ClientError with specified error code.
scripts/dynamodb-local-bulk-loader/tests/unit/test_error_handler.py:29
↓ 29 callers
Function
asyncHandler
(fn: Function)
workshops/modernizer/clean-start/backend/src/middleware/errorHandler.ts:154
↓ 29 callers
Function
asyncHandler
(fn: Function)
workshops/modernizer/backend/src/middleware/errorHandler.ts:154
↓ 29 callers
Method
initialize
(databaseType: DatabaseType)
workshops/modernizer/backend/src/database/factory/DatabaseFactory.ts:32
↓ 28 callers
Method
getProductById
* Get product by ID * @param productId Product ID * @returns Promise resolving to Product or null if not found
workshops/modernizer/backend/src/database/interfaces/IProductRepository.ts:21
↓ 25 callers
Method
updateProduct
* Update product information * @param productId Product ID * @param sellerId Seller ID (for ownership verification) * @param productData Upda
workshops/modernizer/backend/src/database/interfaces/IProductRepository.ts:37
↓ 24 callers
Method
deleteProduct
* Delete product * @param productId Product ID * @param sellerId Seller ID (for ownership verification) * @returns Promise resolving to boole
workshops/modernizer/backend/src/database/interfaces/IProductRepository.ts:45
↓ 24 callers
Method
getCategoryRepository
()
workshops/modernizer/backend/src/services/CategoryService.ts:17
↓ 24 callers
Method
getRefreshToken
()
workshops/modernizer/frontend/src/services/secureStorage.ts:15
↓ 24 callers
Method
validate
Validate configuration parameters. Raises: ValueError: If any configuration parameter is invalid
scripts/dynamodb-local-bulk-loader/src/models.py:96
↓ 23 callers
Function
clear
(element)
workshops/relational-migration/webapp/api.js:324
↓ 23 callers
Method
createProduct
* Create a new product * @param sellerId Seller ID * @param productData Product creation data * @returns Promise resolving to created Product
workshops/modernizer/backend/src/database/interfaces/IProductRepository.ts:14
↓ 23 callers
Method
updateInventory
* Update product inventory * @param productId Product ID * @param quantity New inventory quantity * @returns Promise resolving to boolean ind
workshops/modernizer/backend/src/database/interfaces/IProductRepository.ts:89
↓ 21 callers
Method
addToCart
(userId: number, request: AddToCartRequest)
workshops/modernizer/clean-start/backend/src/services/ShoppingCartService.ts:20
↓ 21 callers
Method
addToCart
(userId: number, request: AddToCartRequest)
workshops/modernizer/backend/src/services/ShoppingCartService.ts:26
↓ 21 callers
Method
debug
(message: string, data?: any)
workshops/modernizer/frontend/src/services/logger.ts:173
↓ 21 callers
Method
getUserOrders
* Get user orders with pagination * @param userId User ID * @param limit Maximum number of orders to return * @param offset Number of orders
workshops/modernizer/backend/src/database/interfaces/IOrderRepository.ts:41
↓ 21 callers
Method
put_item
(self, Item)
scripts/dynamodb-local-bulk-loader/tests/property/test_threaded_loader.py:95
↓ 21 callers
Function
runJob
(params)
examples/tester/jobs/lib/jobExec.js:19
↓ 20 callers
Method
createValidationError
( attribute: string, mysqlValue: any, dynamodbValue: any, customMessage?: string )
workshops/modernizer/backend/src/database/wrappers/DualReadErrorHandler.ts:21
↓ 20 callers
Function
useAuth
()
workshops/modernizer/frontend/src/contexts/AuthContext.tsx:31
↓ 19 callers
Method
debug
(message: string, data?: any)
workshops/modernizer/clean-start/frontend/src/services/logger.ts:173
↓ 19 callers
Method
upgradeToSeller
* Upgrade user to seller status * @param id User ID * @returns Promise resolving to updated User or null if not found
workshops/modernizer/backend/src/database/interfaces/IUserRepository.ts:56
↓ 19 callers
Function
useAuth
()
workshops/modernizer/clean-start/frontend/src/contexts/AuthContext.tsx:30
↓ 18 callers
Method
clearCart
* Clear all items from user's cart * @param userId User ID * @returns Promise resolving to boolean indicating success
workshops/modernizer/backend/src/database/interfaces/IShoppingCartRepository.ts:46
↓ 18 callers
Function
log
(msg, status)
workshops/relational-migration/webapp/index.js:720
↓ 18 callers
Method
updateOrderStatus
* Update order status * @param orderId Order ID * @param status New order status * @returns Promise resolving to boolean indicating success
workshops/modernizer/backend/src/database/interfaces/IOrderRepository.ts:49
↓ 18 callers
Method
validateErrorResponse
* Validate error response
workshops/modernizer/clean-start/backend/src/test-configs/test-helpers/e2e-helpers.ts:416
↓ 18 callers
Method
validateErrorResponse
* Validate error response
workshops/modernizer/backend/src/test-configs/test-helpers/e2e-helpers.ts:416
↓ 17 callers
Method
addItem
* Add item to cart or update quantity if exists * @param userId User ID * @param productId Product ID * @param quantity Quantity to add *
workshops/modernizer/backend/src/database/interfaces/IShoppingCartRepository.ts:15
↓ 17 callers
Method
generate
Generate CSV file with sorted timestamps. Creates records with chronologically sorted timestamps to simulate a hot partition scenario
scripts/dynamodb-local-bulk-loader/src/csv_generator.py:45
↓ 17 callers
Method
getProducts
* Get products with filtering and pagination * @param filters Search filters * @param page Page number * @param limit Items per page * @re
workshops/modernizer/backend/src/database/interfaces/IProductRepository.ts:54
↓ 17 callers
Method
reset
()
workshops/modernizer/backend/src/services/FeatureFlagService.ts:72
↓ 17 callers
Method
searchProducts
* Search products by term * @param searchTerm Search term * @param page Page number * @param limit Items per page * @returns Promise resol
workshops/modernizer/backend/src/database/interfaces/IProductRepository.ts:81
↓ 16 callers
Function
bucketUploader
(bucketName, objName, body)
examples/tester/jobs/lib/s3.js:3
↓ 16 callers
Method
close
()
examples/hedging/java/ddb-hedging-sample/src/main/java/com/example/dynamodbhedging/DynamoDBHedgedQuery.java:96
↓ 16 callers
Method
findAll
* Get all categories * @returns Promise resolving to array of Categories
workshops/modernizer/backend/src/database/interfaces/ICategoryRepository.ts:12
↓ 16 callers
Method
findByUsername
* Find user by username * @param username Username to search for * @returns Promise resolving to User or null if not found
workshops/modernizer/backend/src/database/interfaces/IUserRepository.ts:20
↓ 16 callers
Method
getCart
(userId: number)
workshops/modernizer/clean-start/backend/src/services/ShoppingCartService.ts:49
↓ 16 callers
Method
getCart
(userId: number)
workshops/modernizer/backend/src/services/ShoppingCartService.ts:57
↓ 16 callers
Method
getCartItemByUserAndProduct
* Get specific cart item by user and product * @param userId User ID * @param productId Product ID * @returns Promise resolving to ShoppingCa
workshops/modernizer/backend/src/database/interfaces/IShoppingCartRepository.ts:61
↓ 16 callers
Method
getOrderById
* Get order by ID with items * @param orderId Order ID * @returns Promise resolving to OrderWithItems or null if not found
workshops/modernizer/backend/src/database/interfaces/IOrderRepository.ts:32
↓ 16 callers
Method
info
(message: string, data?: any)
workshops/modernizer/clean-start/frontend/src/services/logger.ts:185
↓ 16 callers
Function
md5_ff
(d,_,m,f,r,i,n)
examples/tester/jobs/lib/util.js:49
↓ 16 callers
Function
md5_gg
(d,_,m,f,r,i,n)
examples/tester/jobs/lib/util.js:49
↓ 16 callers
Function
md5_hh
(d,_,m,f,r,i,n)
examples/tester/jobs/lib/util.js:49
↓ 16 callers
Function
md5_ii
(d,_,m,f,r,i,n)
examples/tester/jobs/lib/util.js:49
↓ 16 callers
Method
setupUniqueScenario
* Setup complete scenario with unique usernames for each call
workshops/modernizer/clean-start/backend/src/test-configs/test-helpers/e2e-helpers.ts:477
↓ 16 callers
Method
setupUniqueScenario
* Setup complete scenario with unique usernames for each call
workshops/modernizer/backend/src/test-configs/test-helpers/e2e-helpers.ts:477
↓ 15 callers
Method
existsByName
* Check if category name exists * @param name Category name * @param excludeId Optional ID to exclude from check * @returns Promise resolving
workshops/modernizer/backend/src/database/interfaces/ICategoryRepository.ts:69
↓ 15 callers
Method
findByEmail
* Find user by email * @param email Email to search for * @returns Promise resolving to User or null if not found
workshops/modernizer/backend/src/database/interfaces/IUserRepository.ts:27
↓ 15 callers
Method
getOrderRepository
()
workshops/modernizer/backend/src/services/OrderService.ts:22
↓ 15 callers
Method
updateItemQuantity
* Update cart item quantity * @param userId User ID * @param productId Product ID * @param quantity New quantity * @returns Promise resolv
workshops/modernizer/backend/src/database/interfaces/IShoppingCartRepository.ts:31
↓ 14 callers
Method
getCategoryPath
* Get category path from root to category * @param categoryId Category ID * @returns Promise resolving to array of Categories in path
workshops/modernizer/backend/src/database/interfaces/ICategoryRepository.ts:98
↓ 14 callers
Method
register
(userData: CreateUserRequest)
workshops/modernizer/backend/src/services/AuthService.ts:24
↓ 14 callers
Method
validateCartInventory
* Validate cart inventory availability * @param userId User ID * @returns Promise resolving to validation result
workshops/modernizer/backend/src/database/interfaces/IShoppingCartRepository.ts:68
↓ 14 callers
Function
validateCreateProductRequest
(data: any)
workshops/modernizer/clean-start/backend/src/models/Product.ts:102
↓ 14 callers
Function
validateCreateProductRequest
(data: any)
workshops/modernizer/backend/src/models/Product.ts:115
↓ 13 callers
Method
getAllFlags
()
workshops/modernizer/backend/src/services/FeatureFlagService.ts:26
↓ 13 callers
Method
getCartRepository
()
workshops/modernizer/backend/src/services/ShoppingCartService.ts:18
↓ 13 callers
Method
getProductRepository
()
workshops/modernizer/backend/src/services/ProductService.ts:19
↓ 13 callers
Method
register
(userData: CreateUserRequest)
workshops/modernizer/clean-start/backend/src/services/AuthService.ts:21
↓ 13 callers
Method
sleep
* Wait for a specific amount of time
workshops/modernizer/backend/src/test-configs/test-helpers/reliability.ts:72
↓ 12 callers
Method
build
()
examples/SDK/java/sdk_v1/control_plane/WorkingWithTables/DeleteTable.java:143
↓ 12 callers
Function
createLazyComponent
( importFn: () => Promise<{ default: ComponentType<T> }>, fallback?: React.ReactNode )
workshops/modernizer/clean-start/frontend/src/utils/lazyLoad.tsx:19
↓ 12 callers
Function
createLazyComponent
( importFn: () => Promise<{ default: ComponentType<T> }>, fallback?: React.ReactNode )
workshops/modernizer/frontend/src/utils/lazyLoad.tsx:19
↓ 12 callers
Method
getCartItems
* Get all cart items for a user with product details * @param userId User ID * @returns Promise resolving to array of ShoppingCartItemWithProduc
workshops/modernizer/backend/src/database/interfaces/IShoppingCartRepository.ts:22
↓ 12 callers
Method
hasInventory
* Check if product has sufficient inventory * @param productId Product ID * @param requiredQuantity Required quantity * @returns Promise reso
workshops/modernizer/backend/src/database/interfaces/IProductRepository.ts:105
↓ 12 callers
Method
validateResponse
* Validate response structure
workshops/modernizer/clean-start/backend/src/test-configs/test-helpers/e2e-helpers.ts:401
↓ 12 callers
Method
validateResponse
* Validate response structure
workshops/modernizer/backend/src/test-configs/test-helpers/e2e-helpers.ts:401
↓ 11 callers
Method
findById
(id: number)
workshops/modernizer/backend/src/database/implementations/dynamodb/DynamoDBCategoryRepository.ts:15
↓ 11 callers
Function
is_permanent_error
Check if an error is permanent and should not be retried. Permanent errors include: - ValidationException: Invalid data format - Resource
scripts/dynamodb-local-bulk-loader/src/error_handler.py:33
↓ 11 callers
Function
is_transient_error
Check if an error is transient and can be retried. Transient errors include: - ServiceUnavailable: Temporary service issues - InternalSer
scripts/dynamodb-local-bulk-loader/src/error_handler.py:102
↓ 11 callers
Method
reduceInventory
* Reduce product inventory * @param productId Product ID * @param quantity Quantity to reduce * @returns Promise resolving to boolean indicat
workshops/modernizer/backend/src/database/interfaces/IProductRepository.ts:97
↓ 11 callers
Method
validateCheckoutRequest
(data: any)
workshops/modernizer/clean-start/backend/src/models/Order.ts:58
↓ 11 callers
Method
validateCheckoutRequest
(data: any)
workshops/modernizer/backend/src/models/Order.ts:58
next →
1–100 of 2,858, ranked by callers