AwsRestJsonFake

class AwsRestJsonFake(val autoMarshalling: AutoMarshalling, val awsService: AwsService, val region: Region, val accountId: AwsAccount)

Constructors

Link copied to clipboard
constructor(autoMarshalling: AutoMarshalling, awsService: AwsService, region: Region, accountId: AwsAccount)

Properties

Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard

Functions

Link copied to clipboard
inline fun <RequestBody : Any> route(crossinline responseFn: (Any) -> Response = { Response(OK).body(autoMarshalling.asFormatString(it)) }, crossinline errorFn: (Any) -> Response = { Response(BAD_REQUEST).body(autoMarshalling.asFormatString(it)) .also { println(it) } }, crossinline fn: Request.(RequestBody) -> Result<Any, Any>): HttpHandler