MCPcopy Create free account

hub / github.com/aws-samples/aws-dynamodb-examples / functions

Functions2,858 in github.com/aws-samples/aws-dynamodb-examples

↓ 344 callersMethoderror
(message: string, error?: Error, data?: any)
workshops/modernizer/frontend/src/services/logger.ts:209
↓ 132 callersMethoderror
(message: string, error?: Error, data?: any)
workshops/modernizer/clean-start/frontend/src/services/logger.ts:209
↓ 131 callersMethodgetFlag
(flagName: K)
workshops/modernizer/backend/src/services/FeatureFlagService.ts:18
↓ 108 callersMethodfindById
* 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 callersMethodsetFlag
(flagName: K, value: FeatureFlags[K])
workshops/modernizer/backend/src/services/FeatureFlagService.ts:22
↓ 77 callersMethoddelete
* 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 callersMethodcreate
* 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 callersMethodbuild
()
examples/SDK/java/sdk_v1/data_plane/WorkingWithItems/PutItem.java:172
↓ 62 callersMethodmakeAuthenticatedRequest
* Make authenticated request with reliability improvements
workshops/modernizer/clean-start/backend/src/test-configs/test-helpers/e2e-helpers.ts:231
↓ 62 callersMethodmakeAuthenticatedRequest
* Make authenticated request with reliability improvements
workshops/modernizer/backend/src/test-configs/test-helpers/e2e-helpers.ts:231
↓ 61 callersMethodmakeRequest
* Make HTTP request to test server
workshops/modernizer/clean-start/backend/src/test-configs/test-helpers/server.ts:119
↓ 61 callersMethodmakeRequest
* Make HTTP request to test server
workshops/modernizer/backend/src/test-configs/test-helpers/server.ts:119
↓ 54 callersMethodsetToken
(token: string, expiresIn?: number, refreshToken?: string)
workshops/modernizer/frontend/src/services/secureStorage.ts:11
↓ 48 callersMethodgetToken
()
workshops/modernizer/frontend/src/services/secureStorage.ts:12
↓ 47 callersMethodwarn
(message: string, data?: any)
workshops/modernizer/frontend/src/services/logger.ts:197
↓ 43 callersMethodsetMigrationPhase
(req: Request, res: Response)
workshops/modernizer/backend/src/controllers/AdminController.ts:127
↓ 42 callersMethodinfo
(message: string, data?: any)
workshops/modernizer/frontend/src/services/logger.ts:185
↓ 41 callersMethodupdate
* 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 callersMethodwarn
(message: string, data?: any)
workshops/modernizer/clean-start/frontend/src/services/logger.ts:197
↓ 34 callersMethodisTokenValid
()
workshops/modernizer/frontend/src/services/secureStorage.ts:14
↓ 34 callersMethodremoveItem
* 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 callersMethodcreateOrder
* 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 callersMethodcreateTestUser
* Create a test user with authentication
workshops/modernizer/clean-start/backend/src/test-configs/test-helpers/e2e-helpers.ts:44
↓ 32 callersMethodcreateTestUser
* Create a test user with authentication
workshops/modernizer/backend/src/test-configs/test-helpers/e2e-helpers.ts:44
↓ 30 callersFunctioncreate_client_error
Helper to create a ClientError with specified error code.
scripts/dynamodb-local-bulk-loader/tests/unit/test_error_handler.py:29
↓ 29 callersFunctionasyncHandler
(fn: Function)
workshops/modernizer/clean-start/backend/src/middleware/errorHandler.ts:154
↓ 29 callersFunctionasyncHandler
(fn: Function)
workshops/modernizer/backend/src/middleware/errorHandler.ts:154
↓ 29 callersMethodinitialize
(databaseType: DatabaseType)
workshops/modernizer/backend/src/database/factory/DatabaseFactory.ts:32
↓ 28 callersMethodgetProductById
* 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 callersMethodupdateProduct
* 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 callersMethoddeleteProduct
* 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 callersMethodgetCategoryRepository
()
workshops/modernizer/backend/src/services/CategoryService.ts:17
↓ 24 callersMethodgetRefreshToken
()
workshops/modernizer/frontend/src/services/secureStorage.ts:15
↓ 24 callersMethodvalidate
Validate configuration parameters. Raises: ValueError: If any configuration parameter is invalid
scripts/dynamodb-local-bulk-loader/src/models.py:96
↓ 23 callersFunctionclear
(element)
workshops/relational-migration/webapp/api.js:324
↓ 23 callersMethodcreateProduct
* 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 callersMethodupdateInventory
* 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 callersMethodaddToCart
(userId: number, request: AddToCartRequest)
workshops/modernizer/clean-start/backend/src/services/ShoppingCartService.ts:20
↓ 21 callersMethodaddToCart
(userId: number, request: AddToCartRequest)
workshops/modernizer/backend/src/services/ShoppingCartService.ts:26
↓ 21 callersMethoddebug
(message: string, data?: any)
workshops/modernizer/frontend/src/services/logger.ts:173
↓ 21 callersMethodgetUserOrders
* 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 callersMethodput_item
(self, Item)
scripts/dynamodb-local-bulk-loader/tests/property/test_threaded_loader.py:95
↓ 21 callersFunctionrunJob
(params)
examples/tester/jobs/lib/jobExec.js:19
↓ 20 callersMethodcreateValidationError
( attribute: string, mysqlValue: any, dynamodbValue: any, customMessage?: string )
workshops/modernizer/backend/src/database/wrappers/DualReadErrorHandler.ts:21
↓ 20 callersFunctionuseAuth
()
workshops/modernizer/frontend/src/contexts/AuthContext.tsx:31
↓ 19 callersMethoddebug
(message: string, data?: any)
workshops/modernizer/clean-start/frontend/src/services/logger.ts:173
↓ 19 callersMethodupgradeToSeller
* 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 callersFunctionuseAuth
()
workshops/modernizer/clean-start/frontend/src/contexts/AuthContext.tsx:30
↓ 18 callersMethodclearCart
* 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 callersFunctionlog
(msg, status)
workshops/relational-migration/webapp/index.js:720
↓ 18 callersMethodupdateOrderStatus
* 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 callersMethodvalidateErrorResponse
* Validate error response
workshops/modernizer/clean-start/backend/src/test-configs/test-helpers/e2e-helpers.ts:416
↓ 18 callersMethodvalidateErrorResponse
* Validate error response
workshops/modernizer/backend/src/test-configs/test-helpers/e2e-helpers.ts:416
↓ 17 callersMethodaddItem
* 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 callersMethodgenerate
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 callersMethodgetProducts
* 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 callersMethodreset
()
workshops/modernizer/backend/src/services/FeatureFlagService.ts:72
↓ 17 callersMethodsearchProducts
* 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 callersFunctionbucketUploader
(bucketName, objName, body)
examples/tester/jobs/lib/s3.js:3
↓ 16 callersMethodclose
()
examples/hedging/java/ddb-hedging-sample/src/main/java/com/example/dynamodbhedging/DynamoDBHedgedQuery.java:96
↓ 16 callersMethodfindAll
* Get all categories * @returns Promise resolving to array of Categories
workshops/modernizer/backend/src/database/interfaces/ICategoryRepository.ts:12
↓ 16 callersMethodfindByUsername
* 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 callersMethodgetCart
(userId: number)
workshops/modernizer/clean-start/backend/src/services/ShoppingCartService.ts:49
↓ 16 callersMethodgetCart
(userId: number)
workshops/modernizer/backend/src/services/ShoppingCartService.ts:57
↓ 16 callersMethodgetCartItemByUserAndProduct
* 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 callersMethodgetOrderById
* 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 callersMethodinfo
(message: string, data?: any)
workshops/modernizer/clean-start/frontend/src/services/logger.ts:185
↓ 16 callersFunctionmd5_ff
(d,_,m,f,r,i,n)
examples/tester/jobs/lib/util.js:49
↓ 16 callersFunctionmd5_gg
(d,_,m,f,r,i,n)
examples/tester/jobs/lib/util.js:49
↓ 16 callersFunctionmd5_hh
(d,_,m,f,r,i,n)
examples/tester/jobs/lib/util.js:49
↓ 16 callersFunctionmd5_ii
(d,_,m,f,r,i,n)
examples/tester/jobs/lib/util.js:49
↓ 16 callersMethodsetupUniqueScenario
* Setup complete scenario with unique usernames for each call
workshops/modernizer/clean-start/backend/src/test-configs/test-helpers/e2e-helpers.ts:477
↓ 16 callersMethodsetupUniqueScenario
* Setup complete scenario with unique usernames for each call
workshops/modernizer/backend/src/test-configs/test-helpers/e2e-helpers.ts:477
↓ 15 callersMethodexistsByName
* 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 callersMethodfindByEmail
* 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 callersMethodgetOrderRepository
()
workshops/modernizer/backend/src/services/OrderService.ts:22
↓ 15 callersMethodupdateItemQuantity
* 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 callersMethodgetCategoryPath
* 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 callersMethodregister
(userData: CreateUserRequest)
workshops/modernizer/backend/src/services/AuthService.ts:24
↓ 14 callersMethodvalidateCartInventory
* Validate cart inventory availability * @param userId User ID * @returns Promise resolving to validation result
workshops/modernizer/backend/src/database/interfaces/IShoppingCartRepository.ts:68
↓ 14 callersFunctionvalidateCreateProductRequest
(data: any)
workshops/modernizer/clean-start/backend/src/models/Product.ts:102
↓ 14 callersFunctionvalidateCreateProductRequest
(data: any)
workshops/modernizer/backend/src/models/Product.ts:115
↓ 13 callersMethodgetAllFlags
()
workshops/modernizer/backend/src/services/FeatureFlagService.ts:26
↓ 13 callersMethodgetCartRepository
()
workshops/modernizer/backend/src/services/ShoppingCartService.ts:18
↓ 13 callersMethodgetProductRepository
()
workshops/modernizer/backend/src/services/ProductService.ts:19
↓ 13 callersMethodregister
(userData: CreateUserRequest)
workshops/modernizer/clean-start/backend/src/services/AuthService.ts:21
↓ 13 callersMethodsleep
* Wait for a specific amount of time
workshops/modernizer/backend/src/test-configs/test-helpers/reliability.ts:72
↓ 12 callersMethodbuild
()
examples/SDK/java/sdk_v1/control_plane/WorkingWithTables/DeleteTable.java:143
↓ 12 callersFunctioncreateLazyComponent
( importFn: () => Promise<{ default: ComponentType<T> }>, fallback?: React.ReactNode )
workshops/modernizer/clean-start/frontend/src/utils/lazyLoad.tsx:19
↓ 12 callersFunctioncreateLazyComponent
( importFn: () => Promise<{ default: ComponentType<T> }>, fallback?: React.ReactNode )
workshops/modernizer/frontend/src/utils/lazyLoad.tsx:19
↓ 12 callersMethodgetCartItems
* 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 callersMethodhasInventory
* 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 callersMethodvalidateResponse
* Validate response structure
workshops/modernizer/clean-start/backend/src/test-configs/test-helpers/e2e-helpers.ts:401
↓ 12 callersMethodvalidateResponse
* Validate response structure
workshops/modernizer/backend/src/test-configs/test-helpers/e2e-helpers.ts:401
↓ 11 callersMethodfindById
(id: number)
workshops/modernizer/backend/src/database/implementations/dynamodb/DynamoDBCategoryRepository.ts:15
↓ 11 callersFunctionis_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 callersFunctionis_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 callersMethodreduceInventory
* 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 callersMethodvalidateCheckoutRequest
(data: any)
workshops/modernizer/clean-start/backend/src/models/Order.ts:58
↓ 11 callersMethodvalidateCheckoutRequest
(data: any)
workshops/modernizer/backend/src/models/Order.ts:58
next →1–100 of 2,858, ranked by callers