MCPcopy Create free account

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

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

↓ 10 callersMethodcreateActionableErrorMessage
( entityType: string, operationType: string, entityId: string | number | undefined, errors: Va
workshops/modernizer/backend/src/database/wrappers/DualReadErrorHandler.ts:84
↓ 10 callersMethodexistsByUsername
* Check if username exists * @param username Username to check * @returns Promise resolving to boolean indicating existence
workshops/modernizer/backend/src/database/interfaces/IUserRepository.ts:63
↓ 10 callersFunctiongetBrushColor
(index, val)
examples/tester/app/lib/brushcolor.js:3
↓ 10 callersMethodgetTokenExpirationInfo
()
workshops/modernizer/clean-start/frontend/src/services/secureStorage.ts:204
↓ 10 callersMethodgetTokenExpirationInfo
()
workshops/modernizer/frontend/src/services/secureStorage.ts:204
↓ 10 callersMethodparseApiError
(error: any)
workshops/modernizer/clean-start/frontend/src/services/errorService.ts:58
↓ 10 callersMethodparseApiError
(error: any)
workshops/modernizer/frontend/src/services/errorService.ts:58
↓ 10 callersFunctionquery
( keyConditionExpression: string, expressionAttributeValues: Record<string, any>, indexName?: stri
workshops/modernizer/backend/src/database/implementations/dynamodb/BaseDynamoDBRepository.ts:107
↓ 10 callersMethodvalidateAddToCart
(data: any)
workshops/modernizer/clean-start/backend/src/models/ShoppingCart.ts:38
↓ 10 callersMethodvalidateAddToCart
(data: any)
workshops/modernizer/backend/src/models/ShoppingCart.ts:38
↓ 9 callersMethodcreateOrderItem
* Create an order item * @param orderId Order ID * @param productId Product ID * @param quantity Quantity * @param priceAtTime Price at ti
workshops/modernizer/backend/src/database/interfaces/IOrderRepository.ts:25
↓ 9 callersMethodexistsByEmail
* Check if email exists * @param email Email to check * @returns Promise resolving to boolean indicating existence
workshops/modernizer/backend/src/database/interfaces/IUserRepository.ts:70
↓ 9 callersMethodexistsById
* Check if category exists by ID * @param id Category ID * @returns Promise resolving to boolean
workshops/modernizer/backend/src/database/interfaces/ICategoryRepository.ts:76
↓ 9 callersMethodfindById
(id: number)
workshops/modernizer/backend/src/database/implementations/dynamodb/DynamoDBUserRepository.ts:47
↓ 9 callersMethodfindByParentId
* Find categories by parent ID * @param parentId Parent category ID (null for root categories) * @returns Promise resolving to array of Categori
workshops/modernizer/backend/src/database/interfaces/ICategoryRepository.ts:26
↓ 9 callersMethodgetProductsByCategory
* Get products by category * @param categoryId Category ID * @param page Page number * @param limit Items per page * @returns Promise reso
workshops/modernizer/backend/src/database/interfaces/IProductRepository.ts:72
↓ 9 callersMethodgetProductsBySeller
* Get products by seller * @param sellerId Seller ID * @param page Page number * @param limit Items per page * @returns Promise resolving
workshops/modernizer/backend/src/database/interfaces/IProductRepository.ts:63
↓ 9 callersFunctionisDatabaseAvailable
()
workshops/modernizer/clean-start/backend/src/test-configs/integration-setup.ts:32
↓ 8 callersMethodbuild
()
examples/SDK/java/sdk_v1/data_plane/WorkingWithItems/TransactWriteItem.java:297
↓ 8 callersMethodgenerate
()
workshops/modernizer/backend/src/utils/CorrelationId.ts:4
↓ 8 callersMethodgetCartItemCount
* Get count of items in cart * @param userId User ID * @returns Promise resolving to item count
workshops/modernizer/backend/src/database/interfaces/IShoppingCartRepository.ts:53
↓ 8 callersMethodgetUserProfile
(userId: number)
workshops/modernizer/clean-start/backend/src/services/AuthService.ts:90
↓ 8 callersMethodgetUserProfile
(userId: number)
workshops/modernizer/backend/src/services/AuthService.ts:93
↓ 8 callersFunctionhandle_error
Determine action based on error type and attempt count. Decision logic: 1. If error is permanent -> FAIL_IMMEDIATELY 2. If max retries re
scripts/dynamodb-local-bulk-loader/src/error_handler.py:143
↓ 8 callersFunctionis_throttling_error
Check if an error is due to throttling. Throttling errors include: - ProvisionedThroughputExceededException: DynamoDB throttling - Thrott
scripts/dynamodb-local-bulk-loader/src/error_handler.py:73
↓ 8 callersMethodlogin
(loginData: LoginRequest)
workshops/modernizer/clean-start/backend/src/services/AuthService.ts:60
↓ 8 callersMethodlogin
(loginData: LoginRequest)
workshops/modernizer/backend/src/services/AuthService.ts:63
↓ 8 callersMethodprocessPayment
* Simulated payment processing service * In a real application, this would integrate with actual payment gateways * like Stripe, PayPal, Square,
workshops/modernizer/clean-start/backend/src/services/PaymentService.ts:10
↓ 8 callersMethodprocessPayment
* Simulated payment processing service * In a real application, this would integrate with actual payment gateways * like Stripe, PayPal, Square,
workshops/modernizer/backend/src/services/PaymentService.ts:10
↓ 8 callersMethodrecordMetric
(name: string, value: number, unit: string, tags?: Record<string, string>)
workshops/modernizer/clean-start/backend/src/utils/performanceMonitor.ts:45
↓ 8 callersMethodrecordMetric
(name: string, value: number, unit: string, tags?: Record<string, string>)
workshops/modernizer/backend/src/utils/performanceMonitor.ts:45
↓ 8 callersFunctionsafe_add
(d,_)
examples/tester/jobs/lib/util.js:49
↓ 8 callersMethodvalidatePaymentDetails
* Validate payment method and details
workshops/modernizer/clean-start/backend/src/services/PaymentService.ts:112
↓ 8 callersMethodvalidatePaymentDetails
* Validate payment method and details
workshops/modernizer/backend/src/services/PaymentService.ts:123
↓ 8 callersMethodwouldCreateCycle
* Check if setting parent would create a cycle * @param categoryId Category ID * @param newParentId New parent ID * @returns Promise resolvin
workshops/modernizer/backend/src/database/interfaces/ICategoryRepository.ts:91
↓ 7 callersMethodcreateCategory
* Create a new category
workshops/modernizer/clean-start/backend/src/services/CategoryService.ts:63
↓ 7 callersMethodcreateCategory
* Create a new category
workshops/modernizer/backend/src/services/CategoryService.ts:66
↓ 7 callersMethodcreateProductRepository
()
workshops/modernizer/backend/src/database/factory/DatabaseFactory.ts:110
↓ 7 callersMethodcreateUserRepository
()
workshops/modernizer/backend/src/database/factory/DatabaseFactory.ts:93
↓ 7 callersMethodfindChildCategories
* Find child categories of a parent * @param parentId Parent category ID * @returns Promise resolving to array of child Categories
workshops/modernizer/backend/src/database/interfaces/ICategoryRepository.ts:39
↓ 7 callersMethodformatOrderResponse
(order: OrderWithItems)
workshops/modernizer/clean-start/backend/src/models/Order.ts:95
↓ 7 callersMethodformatOrderResponse
(order: OrderWithItems)
workshops/modernizer/backend/src/models/Order.ts:95
↓ 7 callersMethodgetProductWithDetails
* Get product with details (includes category and seller info) * @param productId Product ID * @returns Promise resolving to ProductWithDetails
workshops/modernizer/backend/src/database/interfaces/IProductRepository.ts:28
↓ 7 callersMethodgetUserEmail
(userId: number)
workshops/modernizer/backend/src/database/implementations/dynamodb/DynamoDBShoppingCartRepository.ts:13
↓ 7 callersFunctionisDatabaseAvailable
()
workshops/modernizer/backend/src/test-configs/integration-setup.ts:62
↓ 7 callersMethodload_csv
Load CSV file into DynamoDB with shuffling and parallel processing. This method: 1. Reads all records from the CSV file 2. Sh
scripts/dynamodb-local-bulk-loader/src/async_loader.py:87
↓ 7 callersMethodmakeRequest
* Make request with reliability improvements
workshops/modernizer/clean-start/backend/src/test-configs/test-helpers/e2e-helpers.ts:250
↓ 7 callersMethodmakeRequest
* Make request with reliability improvements
workshops/modernizer/backend/src/test-configs/test-helpers/e2e-helpers.ts:250
↓ 7 callersMethodsecurityEvent
(event: string, details?: any)
workshops/modernizer/clean-start/frontend/src/services/logger.ts:223
↓ 7 callersMethodsecurityEvent
(event: string, details?: any)
workshops/modernizer/frontend/src/services/logger.ts:223
↓ 7 callersMethodsendToMonitoring
(entry: LogEntry)
workshops/modernizer/clean-start/frontend/src/services/logger.ts:85
↓ 7 callersMethodsendToMonitoring
(entry: LogEntry)
workshops/modernizer/frontend/src/services/logger.ts:85
↓ 7 callersMethodsuccess_rate
Calculate success rate percentage. Returns: Success rate as a percentage (0-100)
scripts/dynamodb-local-bulk-loader/src/models.py:62
↓ 7 callersMethodtransformFromDynamoDB
(item: any)
workshops/modernizer/backend/src/database/implementations/dynamodb/DynamoDBUserRepository.ts:10
↓ 7 callersMethodvalidateUpdateCartItem
(data: any)
workshops/modernizer/clean-start/backend/src/models/ShoppingCart.ts:56
↓ 7 callersMethodvalidateUpdateCartItem
(data: any)
workshops/modernizer/backend/src/models/ShoppingCart.ts:56
↓ 7 callersFunctionvalidateUpdateProductRequest
(data: any)
workshops/modernizer/clean-start/backend/src/models/Product.ts:153
↓ 7 callersFunctionvalidateUpdateProductRequest
(data: any)
workshops/modernizer/backend/src/models/Product.ts:166
↓ 6 callersMethodcalculateCartTotals
(items: ShoppingCartItemWithProduct[])
workshops/modernizer/clean-start/backend/src/models/ShoppingCart.ts:97
↓ 6 callersMethodcalculateCartTotals
(items: ShoppingCartItemWithProduct[])
workshops/modernizer/backend/src/models/ShoppingCart.ts:97
↓ 6 callersFunctioncallApi
(action)
workshops/relational-migration/webapp/api.js:1
↓ 6 callersMethodclearAll
()
workshops/modernizer/frontend/src/services/secureStorage.ts:17
↓ 6 callersMethodcreateTestProduct
* Create a test product
workshops/modernizer/clean-start/backend/src/test-configs/test-helpers/e2e-helpers.ts:177
↓ 6 callersMethodcreateTestProduct
* Create a test product
workshops/modernizer/backend/src/test-configs/test-helpers/e2e-helpers.ts:177
↓ 6 callersFunctionexecuteWithTracking
( query: string, params: any[] = [] )
workshops/modernizer/clean-start/backend/src/config/database.ts:201
↓ 6 callersFunctionexecuteWithTracking
( query: string, params: any[] = [] )
workshops/modernizer/backend/src/config/database.ts:201
↓ 6 callersMethodfindById
(id: number)
workshops/modernizer/backend/src/database/implementations/dynamodb/DynamoDBOrderRepository.ts:138
↓ 6 callersMethodfindById
(id: number)
workshops/modernizer/backend/src/repositories/UserRepository.ts:7
↓ 6 callersMethodformatCartResponse
(cart: ShoppingCart)
workshops/modernizer/clean-start/backend/src/models/ShoppingCart.ts:70
↓ 6 callersMethodformatCartResponse
(cart: ShoppingCart)
workshops/modernizer/backend/src/models/ShoppingCart.ts:70
↓ 6 callersFunctiongetCategoryId
(categoryName: string)
workshops/modernizer/clean-start/backend/src/database/seed.ts:187
↓ 6 callersFunctiongetCategoryId
(categoryName: string)
workshops/modernizer/backend/src/database/seed.ts:187
↓ 6 callersFunctiongetCategorySubtreeIds
(categoryId: number, categoryTree: CategoryTreeResponse[])
workshops/modernizer/clean-start/backend/src/models/Category.ts:100
↓ 6 callersFunctiongetCategorySubtreeIds
(categoryId: number, categoryTree: CategoryTreeResponse[])
workshops/modernizer/backend/src/models/Category.ts:110
↓ 6 callersMethodgetOrdersByStatus
* Get orders by status * @param status Order status * @param limit Maximum number of orders to return * @returns Promise resolving to array o
workshops/modernizer/backend/src/database/interfaces/IOrderRepository.ts:64
↓ 6 callersMethodgetUserFriendlyMessage
(error: AppError)
workshops/modernizer/clean-start/frontend/src/services/errorService.ts:202
↓ 6 callersMethodgetUserFriendlyMessage
(error: AppError)
workshops/modernizer/frontend/src/services/errorService.ts:202
↓ 6 callersMethodgetUserOrderCount
* Get count of user orders * @param userId User ID * @returns Promise resolving to order count
workshops/modernizer/backend/src/database/interfaces/IOrderRepository.ts:56
↓ 6 callersMethodhedgeRequests
Executes a request with hedging strategy. This method sends an initial request and then sends additional identical requests (hedged requests) after sp
examples/hedging/java/ddb-hedging-sample/src/main/java/com/example/dynamodbhedging/DDBHedgingRequestHandler.java:35
↓ 6 callersMethodload_csv
Load CSV file into DynamoDB with shuffling and parallel processing. This method: 1. Reads all records from the CSV file 2. Sh
scripts/dynamodb-local-bulk-loader/src/threaded_loader.py:92
↓ 6 callersFunctionpostApi
(action, body)
workshops/relational-migration/webapp/api.js:27
↓ 6 callersMethodremoveToken
()
workshops/modernizer/frontend/src/services/secureStorage.ts:13
↓ 6 callersFunctionroundNum
(num, places)
examples/tester/app/lib/statistics.js:135
↓ 6 callersMethodupdateCategory
* Update an existing category
workshops/modernizer/clean-start/backend/src/services/CategoryService.ts:102
↓ 6 callersMethodupdateCategory
* Update an existing category
workshops/modernizer/backend/src/services/CategoryService.ts:105
↓ 6 callersMethodvalidateParentId
* Validate parent ID exists * @param parentId Parent ID to validate * @returns Promise resolving to boolean
workshops/modernizer/backend/src/database/interfaces/ICategoryRepository.ts:83
↓ 6 callersMethodverifyToken
(token: string)
workshops/modernizer/clean-start/backend/src/services/AuthService.ts:140
↓ 6 callersMethodverifyToken
(token: string)
workshops/modernizer/backend/src/services/AuthService.ts:143
↓ 5 callersMethod_create_batches
Split records into batches. Args: records: List of records Returns: List of batches, where each batch is a l
scripts/dynamodb-local-bulk-loader/src/async_loader.py:214
↓ 5 callersFunctionbuildCategoryTree
(categories: Category[])
workshops/modernizer/clean-start/backend/src/models/Category.ts:52
↓ 5 callersFunctionbuildCategoryTree
(categories: Category[])
workshops/modernizer/backend/src/models/Category.ts:61
↓ 5 callersMethodcleanupTestData
* Clean up all test data created during tests
workshops/modernizer/clean-start/backend/src/test-configs/test-helpers/e2e-helpers.ts:371
↓ 5 callersMethodcleanupTestData
* Clean up all test data created during tests
workshops/modernizer/backend/src/test-configs/test-helpers/e2e-helpers.ts:371
↓ 5 callersMethodcreateTable
(String tableName, ScalarAttributeType skType)
scripts/PrintDistinctPKs/java/loader/src/main/java/org/example/LoadMaxValues.java:93
↓ 5 callersMethoddecrypt
(encryptedData: string)
workshops/modernizer/clean-start/frontend/src/services/secureStorage.ts:54
↓ 5 callersMethoddecrypt
(encryptedData: string)
workshops/modernizer/frontend/src/services/secureStorage.ts:54
↓ 5 callersMethodextractEntityId
(data: User | boolean)
workshops/modernizer/backend/src/database/wrappers/UserDualWriteWrapper.ts:138
↓ 5 callersMethodfindRootCategories
* Find root categories (categories with no parent) * @returns Promise resolving to array of root Categories
workshops/modernizer/backend/src/database/interfaces/ICategoryRepository.ts:32
↓ 5 callersMethodhandleError
* Handle errors consistently across components
workshops/modernizer/clean-start/frontend/src/utils/errorHandling.tsx:30
↓ 5 callersMethodhandleError
* Handle errors consistently across components
workshops/modernizer/frontend/src/utils/errorHandling.tsx:30
← previousnext →101–200 of 2,858, ranked by callers