uk.co.developmentanddinosaurs.gatling.lambda.protocol.LambdaProtocol.scala Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of gatling-lambda-extension Show documentation
Show all versions of gatling-lambda-extension Show documentation
A Gatling extension for invoking lambda functions.
The newest version!
package uk.co.developmentanddinosaurs.gatling.lambda.protocol
import io.gatling.core.config.GatlingConfiguration
import io.gatling.core.protocol.{Protocol, ProtocolKey}
import software.amazon.awssdk.services.lambda.LambdaClient
object LambdaProtocol {
val lambdaProtocolKey: ProtocolKey[LambdaProtocol, LambdaComponents] =
LambdaProtocolKey()
def apply(configuration: GatlingConfiguration): LambdaProtocol =
new LambdaProtocol(lambdaClient = LambdaClient.create())
}
final case class LambdaProtocol(lambdaClient: LambdaClient) extends Protocol {
type Components = LambdaComponents
}