toggle menu
http4k
6.9.0.0
jvm
switch theme
search in API
http4k-connect-amazon-core
/
org.http4k.connect.amazon
/
AwsJsonFake
Aws
Json
Fake
class
AwsJsonFake
(
val
autoMarshalling
:
AutoMarshalling
,
val
awsService
:
AwsService
)
Members
Constructors
Aws
Json
Fake
Link copied to clipboard
constructor
(
autoMarshalling
:
AutoMarshalling
,
awsService
:
AwsService
)
Properties
auto
Marshalling
Link copied to clipboard
val
autoMarshalling
:
AutoMarshalling
aws
Service
Link copied to clipboard
val
awsService
:
AwsService
Functions
calculate
Operation
Name
Link copied to clipboard
inline
fun
<
Req
:
Any
>
String
.
calculateOperationName
(
)
:
String
?
route
Link copied to clipboard
inline
fun
<
Req
:
Any
>
route
(
crossinline
responseFn
:
(
Any
)
->
Response
=
{ Response(OK).body(autoMarshalling.asFormatString(it)) }
,
crossinline
errorFn
:
(
JsonError
)
->
Response
=
{ Response(BAD_REQUEST).body(autoMarshalling.asFormatString(it)) }
,
crossinline
fn
:
(
Req
)
->
Any
?
)
:
RoutingHttpHandler