AWS V1
This module allows users to configure common clients for the V1 AWS SDK that are compliant with Localstack.
Installation
libraryDependencies += "io.github.etspaceman" %% "kinesis4cats-aws-v1-localstack" % "0.0.32"
Usage
import cats.effect.IO
import kinesis4cats.localstack.aws.v1.AwsClients
import kinesis4cats.localstack.TestStreamConfig
// Load an AmazonKinesisAsync as an effect
AwsClients.kinesisClient[IO]()
// Load an AmazonKinesisAsync as a resource
AwsClients.kinesisClientResource[IO]()
// Load a AmazonKinesisAsync as a resource.
// Also creates and deletes streams during it's usage. Useful for tests.
AwsClients.kinesisStreamResource[IO](
List(
TestStreamConfig.default[IO]("my-stream", 1),
TestStreamConfig.default[IO]("my-stream-2", 1)
)
)