(key dynamodbKey)
| 334 | } |
| 335 | |
| 336 | func generateItemKey(key dynamodbKey) map[string]types.AttributeValue { |
| 337 | resp := map[string]types.AttributeValue{ |
| 338 | primaryKey: &types.AttributeValueMemberS{Value: key.primaryKey}, |
| 339 | } |
| 340 | if len(key.sortKey) > 0 { |
| 341 | resp[sortKey] = &types.AttributeValueMemberS{Value: key.sortKey} |
| 342 | } |
| 343 | return resp |
| 344 | } |
| 345 | |
| 346 | func getCapacityUnits(cap *types.ConsumedCapacity) float64 { |
| 347 | if cap != nil && cap.CapacityUnits != nil { |
no outgoing calls
no test coverage detected