Skip to content

kondaurovDev/aws-sdk

Repository files navigation

Effect AWS SDK

TypeScript-first AWS development with Effect-TS.

NPM Version NPM Downloads

Code generator that creates Effect-TS wrappers for AWS SDK v3 clients.

Features

  • Effect-wrapped AWS operations with automatic tracing
  • Type-safe error handling with command-specific type guards
  • Automatic code generation from AWS SDK packages

Quick Example

import { Effect } from "effect";
import { s3 } from "@effect-ak/aws-sdk";

const program = Effect.gen(function* () {
  const result = yield* s3.make("create_bucket", { Bucket: "my-bucket" });
  return result;
}).pipe(
  Effect.catchIf(_ => _.$is("BucketAlreadyExists"), () => Effect.succeed("exists")),
  Effect.provide(s3.S3Client.Default())
);

License

MIT

About

Generates an AWS SDK wrapper for the Effect-ts

Topics

Resources

Stars

Watchers

Forks

Packages

 
 
 

Contributors