sttp.tapir.serverless.aws.lambda

Members list

Type members

Classlikes

abstract class AwsCatsEffectServerInterpreter[F[_]](implicit fa: Sync[F])

Attributes

Companion
object
Supertypes
class Object
trait Matchable
class Any

Attributes

Companion
class
Supertypes
class Object
trait Matchable
class Any
Self type

Attributes

Supertypes
class Object
trait Matchable
class Any
Self type
abstract class AwsFutureServerInterpreter(implicit ec: ExecutionContext)

Attributes

Companion
object
Supertypes
class Object
trait Matchable
class Any

Attributes

Companion
class
Supertypes
class Object
trait Matchable
class Any
Self type

Attributes

Supertypes
class Object
trait Matchable
class Any
Self type
case class AwsHttp(method: String, path: String, protocol: String, sourceIp: String, userAgent: String)

Attributes

Supertypes
trait Serializable
trait Product
trait Equals
class Object
trait Matchable
class Any
Show all
case class AwsRequest(rawPath: String, rawQueryString: String, headers: Map[String, String], requestContext: AwsRequestContext, body: Option[String], isBase64Encoded: Boolean)

Attributes

Supertypes
trait Serializable
trait Product
trait Equals
class Object
trait Matchable
class Any
Show all
case class AwsRequestContext(domainName: Option[String], http: AwsHttp)

Attributes

Supertypes
trait Serializable
trait Product
trait Equals
class Object
trait Matchable
class Any
Show all
case class AwsRequestV1(resource: String, path: String, httpMethod: String, queryStringParameters: Option[Map[String, String]], headers: Map[String, String], body: Option[String], requestContext: RequestContext, isBase64Encoded: Boolean)

As for this moment, CDK v2 does not provide high level typescript classes for generating stack for Api Gateway v2 with Lambda, this is why we need to use Api Gateway v1, and translate it's request to v2 by hand.

As for this moment, CDK v2 does not provide high level typescript classes for generating stack for Api Gateway v2 with Lambda, this is why we need to use Api Gateway v1, and translate it's request to v2 by hand.

Attributes

Supertypes
trait Serializable
trait Product
trait Equals
class Object
trait Matchable
class Any
Show all
case class AwsResponse(isBase64Encoded: Boolean, statusCode: Int, headers: Map[String, String], body: String)

Attributes

Companion
object
Supertypes
trait Serializable
trait Product
trait Equals
class Object
trait Matchable
class Any
Show all
object AwsResponse

Attributes

Companion
class
Supertypes
trait Product
trait Mirror
class Object
trait Matchable
class Any
Self type
case class AwsServerOptions[F[_]](encodeResponseBody: Boolean, interceptors: List[Interceptor[F]])

Attributes

Supertypes
trait Serializable
trait Product
trait Equals
class Object
trait Matchable
class Any
Show all
case class Identity(sourceIp: String, userAgent: String)

Attributes

Supertypes
trait Serializable
trait Product
trait Equals
class Object
trait Matchable
class Any
Show all
abstract class LambdaHandler[F[_], R] extends RequestStreamHandler

LambdaHandler is an entry point for handling requests sent to AWS Lambda application which exposes Tapir endpoints.

LambdaHandler is an entry point for handling requests sent to AWS Lambda application which exposes Tapir endpoints.

Type parameters

F

The effect type constructor used in the endpoint.

R

AWS API Gateway request type AwsRequestV1 or AwsRequest. At the moment mapping is required as there is no support for generating API Gateway V2 definitions with AWS CDK v2.

Attributes

Supertypes
trait RequestStreamHandler
class Object
trait Matchable
class Any
case class RequestContext(resourceId: String, resourcePath: String, httpMethod: String, protocol: String, identity: Identity, domainName: String, apiId: String)

Attributes

Supertypes
trait Serializable
trait Product
trait Equals
class Object
trait Matchable
class Any
Show all

Types

type Route[F[_]] = AwsRequest => F[AwsResponse]