All Downloads are FREE. Search and download functionalities are using the official Maven repository.

commonMain.io.github.trueangle.knative.lambda.runtime.events.ALBTargetGroupRequest.kt Maven / Gradle / Ivy

package io.github.trueangle.knative.lambda.runtime.events

import kotlinx.serialization.SerialName
import kotlinx.serialization.Serializable

@Serializable
data class ALBTargetGroupRequest(
    @SerialName("httpMethod") val httpMethod: String,
    @SerialName("path") val path: String,
    @SerialName("queryStringParameters") val queryStringParameters: Map,
    @SerialName("headers") val headers: Map?,
    @SerialName("multiValueHeaders") val multiValueHeaders: Map?,
    @SerialName("requestContext") val requestContext: Context,
    @SerialName("isBase64Encoded") val isBase64Encoded: Boolean,
    @SerialName("body") val body: String?
) {
    @Serializable
    data class Context(
        @SerialName("elb") val elb: ELBContext
    ) {
        @Serializable
        data class ELBContext(
            @SerialName("targetGroupArn") val targetGroupArn: String
        )
    }
}

@Serializable
data class ALBTargetGroupResponse(
    @SerialName("statusCode") val statusCode: Int,
    @SerialName("statusDescription") val statusDescription: String?,
    @SerialName("headers") val headers: Map?,
    @SerialName("multiValueHeaders") val multiValueHeaders: Map?,
    @SerialName("body") val body: T,
    @SerialName("isBase64Encoded") val isBase64Encoded: Boolean
)




© 2015 - 2024 Weber Informatics LLC | Privacy Policy