support basic auth and create deployment container

This commit is contained in:
2026-03-06 03:50:52 -05:00
parent 5ee3df86f1
commit 6450f905c3
6 changed files with 207 additions and 18 deletions

View File

@@ -334,6 +334,8 @@ DynamoDB_Error_Type :: enum {
ItemCollectionSizeLimitExceededException,
InternalServerError,
SerializationException,
MissingAuthenticationTokenException, // HTTP 403
UnrecognizedClientException, // HTTP 400 Dynamo uses 400 for some invalid auth stuff
}
error_to_response :: proc(err_type: DynamoDB_Error_Type, message: string) -> string {
@@ -356,6 +358,10 @@ error_to_response :: proc(err_type: DynamoDB_Error_Type, message: string) -> str
type_str = "com.amazonaws.dynamodb.v20120810#InternalServerError"
case .SerializationException:
type_str = "com.amazonaws.dynamodb.v20120810#SerializationException"
case .MissingAuthenticationTokenException:
type_str = "com.amazonaws.dynamodb.v20120810#MissingAuthenticationTokenException"
case .UnrecognizedClientException:
type_str = "com.amazonaws.dynamodb.v20120810#UnrecognizedClientException"
}
return fmt.aprintf(`{{"__type":"%s","message":"%s"}}`, type_str, message)