From 2b9840b61e94c439d57ac78158761eec047a1cea Mon Sep 17 00:00:00 2001 From: Victor Korzunin <5180700+floydspace@users.noreply.github.com> Date: Fri, 20 Feb 2026 21:17:34 +0100 Subject: [PATCH 1/7] feat: add documentation for code style, code generation, effect patterns, testing patterns, and agent rules --- .github/agents/code-style.md | 80 ++++++++++++++ .github/agents/codegen.md | 55 ++++++++++ .github/agents/effect-patterns.md | 111 +++++++++++++++++++ .github/agents/testing.md | 78 ++++++++++++++ .github/copilot-instructions.md | 174 ++++-------------------------- AGENTS.md | 38 +++++++ 6 files changed, 382 insertions(+), 154 deletions(-) create mode 100644 .github/agents/code-style.md create mode 100644 .github/agents/codegen.md create mode 100644 .github/agents/effect-patterns.md create mode 100644 .github/agents/testing.md create mode 100644 AGENTS.md diff --git a/.github/agents/code-style.md b/.github/agents/code-style.md new file mode 100644 index 00000000..d7d0e422 --- /dev/null +++ b/.github/agents/code-style.md @@ -0,0 +1,80 @@ +# Code Style & Formatting + +Formatting is enforced by `@effect/eslint-plugin` (dprint integration), not Prettier. Run `pnpm eslint --fix` to auto-format. + +## Formatting Rules + +| Rule | Value | +|---|---| +| Indent | 2 spaces | +| Line width | 120 characters | +| Semicolons | Always | +| Quotes | Double quotes | +| Trailing commas | Multiline only | +| Arrow function parens | Always (`force`) | +| Quote props | As needed | + +## Imports + +```typescript +// 1. Use `import type` for type-only imports +import type { S3ClientConfig } from "@aws-sdk/client-s3"; + +// 2. Internal imports use .js extension +import { Service } from "./Service.js"; + +// 3. Effect modules: destructure from "effect" or namespace from subpath +import { Data, Effect, Layer } from "effect"; +import * as Effect from "effect/Effect"; // alternative + +// 4. Newline required after import block (import/newline-after-import) +// 5. No duplicate imports (import/no-duplicates) +``` + +Import sort order is not enforced (simple-import-sort is OFF). + +## Type Conventions + +```typescript +// Use Array, not T[] +const items: Array = []; +const nested: Array> = []; + +// Destructure keys must be sorted alphabetically +const { alpha, beta, gamma } = obj; // correct +const { gamma, alpha, beta } = obj; // ESLint error + +// Unused variables: prefix with _ to suppress error +const _unused = someValue; +function handler(_event: Event) { ... } + +// Object shorthand required +const obj = { name, value }; // correct +const obj = { name: name }; // ESLint error +``` + +## Naming + +- Service classes: PascalCase (`S3Service`, `DynamoDBDocumentService`) +- Service interfaces: PascalCase with `$` suffix (`S3Service$`, `DynamoDBDocumentService$`) +- Service factories: camelCase with `make` prefix (`makeS3Service`) +- Error types: PascalCase (`NoSuchKeyError`, `SdkError`) +- Tag identifiers: scoped string (`"@effect-aws/client-s3/S3Service"`) + +## Module Exports + +```typescript +// index.ts -- namespace re-export for modules, barrel re-export for types +export * as Service from "./Service.js"; +export * from "./Errors.js"; +``` + +All public exports require JSDoc `@since` annotations for `@effect/docgen`: + +```typescript +/** + * @since 1.0.0 + * @category constructors + */ +export const make = ... +``` diff --git a/.github/agents/codegen.md b/.github/agents/codegen.md new file mode 100644 index 00000000..034fb0bc --- /dev/null +++ b/.github/agents/codegen.md @@ -0,0 +1,55 @@ +# Code Generation & Projen + +## Projen (Project Configuration) + +This monorepo uses [Projen](https://projen.io/) for infrastructure-as-code project management. All project config (package.json, tsconfig, vitest config, etc.) is generated from `.projenrc.ts`. + +**Rules:** +- Edit `.projenrc.ts` (or files in `projenrc/`) to change project structure, deps, or config. +- Run `pnpm default` after any change -- this synthesizes all managed files. +- Files with `// ~~ Generated by projen` headers must not be edited manually. + +### Adding a new package + +1. Add the package definition in `.projenrc.ts` using `TypeScriptLibProject`. +2. Set `workspaceDeps` for internal dependencies and `workspacePeerDeps` for peer relationships. +3. Run `pnpm default` to generate the package scaffolding. + +## Code Generation (AWS Client Wrappers) + +The `packages/client-*` packages are auto-generated from AWS SDK v3 client definitions. **Never edit files in `packages/client-*/src/`** -- they will be overwritten. + +### Adding a new AWS client + +```bash +# 1. Add the service definition to the registry +# Edit scripts/client-singularities.ts -- add description + commandToTest + +# 2. If the SDK package name needs normalization (e.g., apigatewayv2 -> api-gateway-v2), +# update scripts/utils.ts + +# 3. Regenerate project structure +pnpm default + +# 4. Generate the client wrapper code (interactive CLI) +pnpm codegen-client + +# 5. Format the generated code +pnpm eslint --fix +``` + +### What gets generated + +For each client, the codegen produces: + +| File | Contents | +|---|---| +| `{Service}Service.ts` | Service interface, factory, Tag class with `defaultLayer`/`layer`/`baseLayer` | +| `{Service}ServiceConfig.ts` | Configuration layer for the AWS SDK client | +| `{Service}ClientInstance.ts` | Client instance layer wrapping the raw SDK client | +| `Errors.ts` | Tagged error types derived from SDK `ServiceException` subclasses | +| `index.ts` | Public re-exports | + +### Modifying generated client behavior + +If you need to customize a generated client (e.g., `client-s3` has extra deps like `@aws-sdk/s3-request-presigner`), add special-case logic in `.projenrc.ts` rather than editing the generated source. diff --git a/.github/agents/effect-patterns.md b/.github/agents/effect-patterns.md new file mode 100644 index 00000000..287a6a6b --- /dev/null +++ b/.github/agents/effect-patterns.md @@ -0,0 +1,111 @@ +# Effect Patterns + +This project uses [Effect](https://www.effect.website/) for typed functional programming with dependency injection, structured errors, and composable layers. + +## Service Layer Pattern + +Every AWS client wrapper follows this structure: + +```typescript +import type { GetObjectCommandInput, GetObjectCommandOutput } from "@aws-sdk/client-s3"; +import { Data, Effect, Layer } from "effect"; + +// 1. Service interface (branded with unique symbol) +interface S3Service$ { + readonly _: unique symbol; + getObject(args: GetObjectCommandInput): Effect.Effect; +} + +// 2. Factory -- constructs the service from a client instance +const makeS3Service = Effect.gen(function*() { + const client = yield* S3ClientInstance; + return yield* Service.fromClientAndCommands(client, commands); +}); + +// 3. Tag class -- provides DI token + layer constructors +export class S3Service extends Effect.Tag("@effect-aws/client-s3/S3Service")() { + static readonly defaultLayer = Layer.effect(this, makeS3Service).pipe( + Layer.provide(S3ClientInstance.layer), + ); + static readonly layer = (config: S3ClientConfig) => + Layer.effect(this, makeS3Service).pipe( + Layer.provide(S3ClientInstance.layer(config)), + ); + static readonly baseLayer = (evaluate: LazyArg) => + Layer.effect(this, makeS3Service).pipe( + Layer.provide(S3ClientInstance.baseLayer(evaluate)), + ); +} +``` + +The three layer constructors: +- `defaultLayer` -- zero-config, uses AWS SDK defaults +- `layer(config)` -- accepts SDK client config +- `baseLayer(evaluate)` -- accepts a lazy client instance for full control + +## Effect.gen + +Use `Effect.gen(function*() { ... })` with `yield*` for sequencing effects: + +```typescript +const program = Effect.gen(function*() { + const s3 = yield* S3Service; + const result = yield* s3.getObject({ Bucket: "b", Key: "k" }); + return result.Body; +}); +``` + +Do not mix raw `Promise`/`async-await` into Effect pipelines. Use `Effect.tryPromise` to wrap external promise-based APIs. + +## Error Handling + +All AWS SDK exceptions are converted to tagged errors via `Data.tagged`: + +```typescript +// Catch a specific error +program.pipe( + Effect.catchTag("NoSuchKey", (error) => Effect.succeed(null)), +); + +// Catch multiple errors +program.pipe( + Effect.catchTags({ + NoSuchKey: () => Effect.succeed(null), + SdkError: (error) => Effect.fail(new AppError(error.message)), + }), +); +``` + +`SdkError` is the catch-all for unrecognized exceptions and generic `Error` instances. + +## Providing Layers + +Always: `Effect.provide(program, layer)` -- program first, layer second. + +```typescript +// Correct +const result = await program.pipe( + Effect.provide(S3Service.defaultLayer), + Effect.runPromiseExit, +); + +// Also correct (pipe-last style) +const result = await Effect.runPromiseExit( + Effect.provide(program, S3Service.defaultLayer), +); +``` + +## Companion Namespaces + +Service classes use companion `declare namespace` blocks for associated types: + +```typescript +export class DynamoDBDocumentService extends Effect.Tag(...)(...) { + // ... layer methods +} + +export declare namespace DynamoDBDocumentService { + export type Config = typeof makeConfig; + export type Type = Effect.Effect.Success; +} +``` diff --git a/.github/agents/testing.md b/.github/agents/testing.md new file mode 100644 index 00000000..7628d6c2 --- /dev/null +++ b/.github/agents/testing.md @@ -0,0 +1,78 @@ +# Testing Patterns + +Framework: **Vitest** with **aws-sdk-client-mock** for mocking AWS SDK clients. + +## Running Tests + +```bash +pnpm vitest run --reporter verbose packages/dynamodb # one package +pnpm vitest run --reporter verbose packages/lambda/test/LambdaHandler.test.ts # one file +pnpm vitest run --reporter verbose -t "pattern" packages/client-s3 # by name +``` + +## Standard Test Structure + +```typescript +import { mockClient } from "aws-sdk-client-mock"; +import { GetCommand } from "@aws-sdk/lib-dynamodb"; +import { DynamoDBDocumentClient } from "@aws-sdk/lib-dynamodb"; +import { DynamoDBDocumentService, SdkError } from "@effect-aws/dynamodb"; +import { Effect, Exit } from "effect"; + +const clientMock = mockClient(DynamoDBDocumentClient); + +afterEach(() => { + clientMock.mockClear(); +}); + +describe("DynamoDBDocumentService", () => { + it("returns item on success", async () => { + clientMock.on(GetCommand).resolves({ Item: { id: "1" } }); + + const result = await DynamoDBDocumentService.get({ + TableName: "t", + Key: { id: "1" }, + }).pipe( + Effect.provide(DynamoDBDocumentService.defaultLayer), + Effect.runPromiseExit, + ); + + expect(result).toEqual(Exit.succeed({ Item: { id: "1" } })); + }); + + it("returns SdkError on failure", async () => { + clientMock.on(GetCommand).rejects(new Error("boom")); + + const result = await DynamoDBDocumentService.get({ + TableName: "t", + Key: { id: "1" }, + }).pipe( + Effect.provide(DynamoDBDocumentService.defaultLayer), + Effect.runPromiseExit, + ); + + expect(result).toEqual( + Exit.fail(SdkError({ ...new Error("boom"), name: "SdkError" })), + ); + }); +}); +``` + +## Key Patterns + +**Assert with `Exit`**: Always use `Effect.runPromiseExit` and compare against `Exit.succeed(...)` / `Exit.fail(...)`. Do not use `.runPromise` with try/catch. + +**Custom AWS matchers** (from `aws-sdk-client-mock-vitest`, registered in `vitest.setup.ts`): + +```typescript +expect(clientMock).toHaveReceivedCommandOnce(); +expect(clientMock).toHaveReceivedCommandTimes(GetCommand, 2); +expect(clientMock).toHaveReceivedCommandWith(GetCommand, { + TableName: "t", + Key: { id: "1" }, +}); +``` + +**Testing layers**: Test `defaultLayer`, `layer(config)`, and `baseLayer(evaluate)` separately. Use `vi.spyOn` to verify config values reach the SDK client. + +**Lambda handlers**: For `LambdaHandler.make` tests, construct mock events/contexts inline. Use `vi.fn()` to assert callbacks and `process.emit("SIGTERM")` to test graceful shutdown. diff --git a/.github/copilot-instructions.md b/.github/copilot-instructions.md index e425cef2..1a4b17fc 100644 --- a/.github/copilot-instructions.md +++ b/.github/copilot-instructions.md @@ -1,161 +1,27 @@ -# Effect AWS - AI Coding Agent Instructions +# Effect AWS - Copilot Instructions -## Architecture Overview +Monorepo of Effect-based wrappers for AWS SDK v3 clients (pnpm@10.x, TypeScript ESM). -This is a monorepo providing **Effect-based wrappers** for AWS SDK v3 clients. The project bridges AWS services with the [Effect](https://www.effect.website/) ecosystem, enabling type-safe, composable AWS operations with built-in error handling. +See [AGENTS.md](../../AGENTS.md) for critical rules and commands. Detailed guides: -**Key Components:** -- **`packages/client-*`**: Auto-generated Effect wrappers for 50+ AWS SDK v3 clients (S3, DynamoDB, Lambda, etc.) -- **`packages/commons`**: Shared utilities for all clients - `Service.ts` (command execution), `ServiceLogger.ts`, error handling -- **`packages/{dynamodb,s3,lambda,etc.}`**: Higher-level helper libraries built on top of clients -- **`scripts/`**: Code generation tooling that reads AWS SDK specs and generates Effect services -- **`projenrc/`**: Projen configuration for managing monorepo structure +- [Code style & formatting](agents/code-style.md) +- [Effect patterns](agents/effect-patterns.md) +- [Testing patterns](agents/testing.md) +- [Code generation & Projen](agents/codegen.md) -## Critical Workflows +## Architecture -### Building & Testing -```bash -pnpm install # Install dependencies (requires pnpm@9.x) -pnpm build # Build all packages -pnpm test # Run tests across all packages -pnpm watch # Watch mode for development -``` +- `packages/client-*` -- auto-generated Effect wrappers for 57+ AWS SDK v3 clients (**do not edit src/**) +- `packages/commons` -- shared utilities: `Service.ts` (command execution), `ServiceLogger.ts`, errors +- `packages/{dynamodb,s3,lambda,...}` -- higher-level helper libraries +- `packages/http-handler` -- Effect-based HTTP handler for AWS SDK middleware +- `packages/powertools-logger` / `powertools-tracer` -- AWS Lambda Powertools integration +- `scripts/` -- code generation tooling +- `projenrc/` -- Projen components for monorepo config -### Code Generation (Adding New AWS Clients) -**IMPORTANT**: Most client packages are auto-generated. Follow this exact process: +## Workspace Dependencies -1. Add service to `scripts/client-singularities.ts` with `description` and `commandToTest` -2. Update name normalization in `scripts/utils.ts` if needed (e.g., `apigatewayv2` → `api-gateway-v2`) -3. Run `pnpm default` - regenerates project structure via Projen -4. Run `pnpm codegen-client` - interactive CLI to generate service code -5. Run `pnpm eslint --fix` - format generated code -6. Commit changes - -**Never manually edit** files in `packages/client-*/src/` - they'll be overwritten. - -### Project Structure Changes -This project uses **Projen** for infrastructure-as-code project management: -- Edit `.projenrc.ts` to add packages, dependencies, or configuration -- Run `pnpm default` (alias for `pnpm exec projen`) to synthesize changes -- Files with headers `~~ Generated by projen` are managed - don't edit directly - -## Effect-Specific Patterns - -### Service Layer Pattern -All AWS clients follow this architecture (see `packages/client-s3/src/S3Service.ts`): - -```typescript -// 1. Service interface with Effect-wrapped methods -interface S3Service$ { - getObject(args, options?): Effect.Effect -} - -// 2. Service factory using Effect.gen -const makeS3Service = Effect.gen(function*() { - const client = yield* S3ClientInstance - return yield* Service.fromCommandsAndServiceFn(commands, ...) -}) - -// 3. Effect.Tag for dependency injection -export class S3Service extends Effect.Tag("@effect-aws/client-s3/S3Service")() { - static readonly defaultLayer = Layer.effect(this, makeS3Service) - static readonly layer = (config) => ... - static readonly baseLayer = (evaluate) => ... -} -``` - -Usage: -```typescript -import { S3 } from "@effect-aws/client-s3" -import { Effect } from "effect" - -// With defaultLayer -const program = S3.getObject({ Bucket: "test", Key: "file" }) -Effect.provide(program, S3.defaultLayer) - -// With custom config -Effect.provide(program, S3.layer({ region: "us-west-2", logger: true })) -``` - -### Error Handling -All services use tagged errors (see `packages/commons/src/Service.ts`): -```typescript -// Errors are automatically tagged from AWS ServiceException -Effect.catchTag("NoSuchKeyError", (error) => ...) -Effect.catchTags({ - NoSuchKeyError: () => ..., - SdkError: () => ... -}) -``` - -### Testing Pattern -Tests use `aws-sdk-client-mock` with Effect's `runPromiseExit` (see `packages/client-sns/test/SNS.test.ts`): - -```typescript -import { mockClient } from "aws-sdk-client-mock" -import { SNS } from "@effect-aws/client-sns" -import { Effect, Exit } from "effect" - -const clientMock = mockClient(SNSClient) -clientMock.on(PublishCommand).resolves({}) - -const result = await Effect.runPromiseExit( - SNS.publish(args).pipe(Effect.provide(SNS.defaultLayer)) -) -expect(result).toEqual(Exit.succeed({})) -``` - -## Package Conventions - -### Workspace Dependencies -- Use `workspaceDeps: [commons]` in `.projenrc.ts` for internal dependencies -- Use `workspacePeerDeps: [clientPackage]` for helper packages (e.g., `dynamodb` depends on `client-dynamodb`) -- `peerDeps` for Effect packages use range `"effect@>=3.15.5 <4.0.0"` - -### File Structure (Client Packages) -``` -packages/client-{service}/ - src/ - {Service}Service.ts # Main service implementation (auto-generated) - {Service}ServiceConfig.ts # Service configuration layer - {Service}ClientInstance.ts # AWS SDK client instance layer - Errors.ts # Tagged error types (auto-generated) - index.ts # Public exports - test/ - {Service}.test.ts # Service tests -``` - -### File Structure (Helper Packages) -``` -packages/{helper}/ - src/ - index.ts # Public API - examples/ (optional) - handler.ts # Usage examples for Lambda, Tracer, etc. -``` - -## Integration Points - -### Custom HTTP Handlers -`packages/http-handler` provides Effect-based HTTP request handling via `@effect/platform`. Services check for `HttpHandler.RequestHandler` in context and inject it into AWS SDK middleware (see `Service.ts:95-98`). - -### AWS Powertools Integration -- `powertools-logger`: Wraps AWS Lambda Powertools Logger with Effect -- `powertools-tracer`: Wraps AWS Lambda Powertools Tracer with Effect + X-Ray - -### Lambda Handlers -`packages/lambda` provides `makeLambda(handler, layer?)` to convert Effect handlers to AWS Lambda handlers with graceful shutdown support. - -## Documentation - -- API docs generated via `@effect/docgen` - run `pnpm docgen` -- Website built with VitePress in `pages/` - `pnpm pages:dev` -- Each package has its own README with usage examples - -## Common Pitfalls - -1. **Don't edit generated files** - anything in `client-*/src/` is regenerated -2. **Always run `pnpm default` after `.projenrc.ts` changes** - Projen must synthesize -3. **Use Effect.gen syntax** for async operations - avoid mixing Promises -4. **Provide layers correctly** - `Effect.provide(program, layer)` not the reverse -5. **Test with mockClient** - never use real AWS credentials in tests +In `.projenrc.ts`: +- `workspaceDeps: [commons]` for internal compile-time dependencies +- `workspacePeerDeps: [clientPackage]` for helper packages (e.g., `dynamodb` depends on `client-dynamodb`) +- Effect peer dep range: `"effect@>=3.0.4 <4.0.0"` diff --git a/AGENTS.md b/AGENTS.md new file mode 100644 index 00000000..0c22861c --- /dev/null +++ b/AGENTS.md @@ -0,0 +1,38 @@ +# AGENTS.md + +Monorepo of Effect-based wrappers for AWS SDK v3 clients (pnpm@10.x, TypeScript ESM). + +## Critical Rules + +1. **NEVER edit** files in `packages/client-*/src/` -- auto-generated, will be overwritten. +2. **NEVER edit** files with `// ~~ Generated by projen` headers -- run `pnpm default` instead. + +## Commands + +```bash +pnpm eslint --fix # Lint + format (uses dprint, not Prettier) +pnpm default # Synthesize Projen config (after editing .projenrc.ts) +``` + +### Single Test + +```bash +pnpm vitest run --reporter verbose packages/dynamodb +pnpm vitest run --reporter verbose packages/lambda/test/LambdaHandler.test.ts +pnpm vitest run --reporter verbose -t "pattern" packages/client-s3 +``` + +## Key Conventions + +- `Array` not `T[]` -- enforced by ESLint +- `import type` for type-only imports -- enforced by ESLint +- Internal imports use `.js` extension: `import { Foo } from "./Foo.js"` +- Destructure keys sorted alphabetically -- enforced by ESLint +- No `console.*` in `packages/*/src/` or `packages/*/test/` + +## Further Reading + +- [Code style & formatting](.github/agents/code-style.md) -- imports, naming, formatting rules +- [Effect patterns](.github/agents/effect-patterns.md) -- service layers, error handling, Effect.gen +- [Testing patterns](.github/agents/testing.md) -- Vitest, aws-sdk-client-mock, assertions +- [Code generation & Projen](.github/agents/codegen.md) -- adding AWS clients, Projen workflow From 65ddb4c315b4b7e7754247ea87e2749b0503953d Mon Sep 17 00:00:00 2001 From: Victor Korzunin <5180700+floydspace@users.noreply.github.com> Date: Sat, 21 Feb 2026 04:48:45 +0100 Subject: [PATCH 2/7] refactor(lambda): update ManagedRuntime options and improve signal handling refactor(lambda): switch from Context.GenericTag to ServiceMap.Service for event and context tags refactor(stream): replace custom isStream function with Stream.isStream for clarity test(lambda): update tests to reflect changes in LambdaHandler and HttpApi usage chore(licenses): update copyright year to 2026 in various package licenses chore(deps): upgrade dependencies in pnpm-lock.yaml to latest versions and clean up unused ones --- .changeset/sour-parents-clean.md | 5 + .projenrc.ts | 4 +- LICENSE | 2 +- packages/client-account/LICENSE | 2 +- .../client-api-gateway-management-api/LICENSE | 2 +- packages/client-api-gateway-v2/LICENSE | 2 +- packages/client-api-gateway/LICENSE | 2 +- packages/client-athena/LICENSE | 2 +- packages/client-auto-scaling/LICENSE | 2 +- packages/client-bedrock-runtime/LICENSE | 2 +- packages/client-bedrock/LICENSE | 2 +- packages/client-cloudformation/LICENSE | 2 +- packages/client-cloudsearch/LICENSE | 2 +- packages/client-cloudtrail/LICENSE | 2 +- packages/client-cloudwatch-events/LICENSE | 2 +- packages/client-cloudwatch-logs/LICENSE | 2 +- packages/client-cloudwatch/LICENSE | 2 +- packages/client-codedeploy/LICENSE | 2 +- .../client-cognito-identity-provider/LICENSE | 2 +- packages/client-data-pipeline/LICENSE | 2 +- packages/client-dsql/LICENSE | 2 +- packages/client-dynamodb/LICENSE | 2 +- packages/client-ec2/LICENSE | 2 +- packages/client-ecr/LICENSE | 2 +- packages/client-ecs/LICENSE | 2 +- packages/client-elasticache/LICENSE | 2 +- packages/client-eventbridge/LICENSE | 2 +- packages/client-firehose/LICENSE | 2 +- packages/client-glue/LICENSE | 2 +- packages/client-iam/LICENSE | 2 +- packages/client-iot-data-plane/LICENSE | 2 +- packages/client-iot-events-data/LICENSE | 2 +- packages/client-iot-events/LICENSE | 2 +- packages/client-iot-jobs-data-plane/LICENSE | 2 +- packages/client-iot-wireless/LICENSE | 2 +- packages/client-iot/LICENSE | 2 +- packages/client-ivs/LICENSE | 2 +- packages/client-kafka/LICENSE | 2 +- packages/client-kafkaconnect/LICENSE | 2 +- packages/client-kinesis/LICENSE | 2 +- packages/client-kms/LICENSE | 2 +- packages/client-lambda/LICENSE | 2 +- packages/client-mq/LICENSE | 2 +- packages/client-opensearch-serverless/LICENSE | 2 +- packages/client-opensearch/LICENSE | 2 +- packages/client-organizations/LICENSE | 2 +- packages/client-rds/LICENSE | 2 +- packages/client-s3/LICENSE | 2 +- packages/client-scheduler/LICENSE | 2 +- packages/client-secrets-manager/LICENSE | 2 +- packages/client-ses/LICENSE | 2 +- packages/client-sfn/LICENSE | 2 +- packages/client-sns/LICENSE | 2 +- packages/client-sqs/LICENSE | 2 +- packages/client-ssm/LICENSE | 2 +- packages/client-sts/LICENSE | 2 +- packages/client-textract/LICENSE | 2 +- packages/client-timestream-influxdb/LICENSE | 2 +- packages/client-timestream-query/LICENSE | 2 +- packages/client-timestream-write/LICENSE | 2 +- packages/commons/LICENSE | 2 +- packages/dsql/LICENSE | 2 +- packages/dynamodb/LICENSE | 2 +- packages/http-handler/LICENSE | 2 +- packages/lambda/.projen/deps.json | 15 +- packages/lambda/LICENSE | 2 +- packages/lambda/examples/fromHttpApi.ts | 35 ++--- packages/lambda/package.json | 10 +- packages/lambda/src/LambdaHandler.ts | 105 ++++++-------- packages/lambda/src/LambdaRuntime.ts | 2 +- packages/lambda/src/internal/lambdaHandler.ts | 6 +- packages/lambda/src/internal/stream.ts | 7 +- packages/lambda/test/LambdaHandler.test.ts | 72 ++++++---- packages/lib-dynamodb/LICENSE | 2 +- packages/powertools-logger/LICENSE | 2 +- packages/powertools-tracer/LICENSE | 2 +- packages/s3/LICENSE | 2 +- packages/secrets-manager/LICENSE | 2 +- packages/ssm/LICENSE | 2 +- pnpm-lock.yaml | 136 ++++++++++++++++-- 80 files changed, 310 insertions(+), 225 deletions(-) create mode 100644 .changeset/sour-parents-clean.md diff --git a/.changeset/sour-parents-clean.md b/.changeset/sour-parents-clean.md new file mode 100644 index 00000000..81755e5f --- /dev/null +++ b/.changeset/sour-parents-clean.md @@ -0,0 +1,5 @@ +--- +"@effect-aws/lambda": major +--- + +Migrate to effect v4 diff --git a/.projenrc.ts b/.projenrc.ts index 53882308..2e6adee1 100644 --- a/.projenrc.ts +++ b/.projenrc.ts @@ -121,8 +121,8 @@ const lambda = new TypeScriptLibProject({ parent: project, name: "lambda", description: "Effectful AWS Lambda handler", - devDeps: [...effectDeps, "@effect/platform", "@effect/platform-node-shared", "@types/aws-lambda"], - peerDeps: ["effect@>=3.15.5 <4.0.0", "@effect/platform@>=0.83.0", "@effect/platform-node-shared@>=0.36.0"], + devDeps: ["effect@4.0.0-beta.8", "@effect/platform-node-shared@4.0.0-beta.8", "@types/aws-lambda"], + peerDeps: ["effect@>=4.0.0 <5.0.0", "@effect/platform-node-shared@>=4.0.0 <5.0.0"], addExamples: true, }); diff --git a/LICENSE b/LICENSE index ced0788c..dc1bf0b6 100644 --- a/LICENSE +++ b/LICENSE @@ -1,4 +1,4 @@ -Copyright (c) 2025 Victor Korzunin +Copyright (c) 2026 Victor Korzunin Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal diff --git a/packages/client-account/LICENSE b/packages/client-account/LICENSE index ced0788c..dc1bf0b6 100644 --- a/packages/client-account/LICENSE +++ b/packages/client-account/LICENSE @@ -1,4 +1,4 @@ -Copyright (c) 2025 Victor Korzunin +Copyright (c) 2026 Victor Korzunin Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal diff --git a/packages/client-api-gateway-management-api/LICENSE b/packages/client-api-gateway-management-api/LICENSE index ced0788c..dc1bf0b6 100644 --- a/packages/client-api-gateway-management-api/LICENSE +++ b/packages/client-api-gateway-management-api/LICENSE @@ -1,4 +1,4 @@ -Copyright (c) 2025 Victor Korzunin +Copyright (c) 2026 Victor Korzunin Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal diff --git a/packages/client-api-gateway-v2/LICENSE b/packages/client-api-gateway-v2/LICENSE index ced0788c..dc1bf0b6 100644 --- a/packages/client-api-gateway-v2/LICENSE +++ b/packages/client-api-gateway-v2/LICENSE @@ -1,4 +1,4 @@ -Copyright (c) 2025 Victor Korzunin +Copyright (c) 2026 Victor Korzunin Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal diff --git a/packages/client-api-gateway/LICENSE b/packages/client-api-gateway/LICENSE index ced0788c..dc1bf0b6 100644 --- a/packages/client-api-gateway/LICENSE +++ b/packages/client-api-gateway/LICENSE @@ -1,4 +1,4 @@ -Copyright (c) 2025 Victor Korzunin +Copyright (c) 2026 Victor Korzunin Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal diff --git a/packages/client-athena/LICENSE b/packages/client-athena/LICENSE index ced0788c..dc1bf0b6 100644 --- a/packages/client-athena/LICENSE +++ b/packages/client-athena/LICENSE @@ -1,4 +1,4 @@ -Copyright (c) 2025 Victor Korzunin +Copyright (c) 2026 Victor Korzunin Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal diff --git a/packages/client-auto-scaling/LICENSE b/packages/client-auto-scaling/LICENSE index ced0788c..dc1bf0b6 100644 --- a/packages/client-auto-scaling/LICENSE +++ b/packages/client-auto-scaling/LICENSE @@ -1,4 +1,4 @@ -Copyright (c) 2025 Victor Korzunin +Copyright (c) 2026 Victor Korzunin Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal diff --git a/packages/client-bedrock-runtime/LICENSE b/packages/client-bedrock-runtime/LICENSE index ced0788c..dc1bf0b6 100644 --- a/packages/client-bedrock-runtime/LICENSE +++ b/packages/client-bedrock-runtime/LICENSE @@ -1,4 +1,4 @@ -Copyright (c) 2025 Victor Korzunin +Copyright (c) 2026 Victor Korzunin Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal diff --git a/packages/client-bedrock/LICENSE b/packages/client-bedrock/LICENSE index ced0788c..dc1bf0b6 100644 --- a/packages/client-bedrock/LICENSE +++ b/packages/client-bedrock/LICENSE @@ -1,4 +1,4 @@ -Copyright (c) 2025 Victor Korzunin +Copyright (c) 2026 Victor Korzunin Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal diff --git a/packages/client-cloudformation/LICENSE b/packages/client-cloudformation/LICENSE index ced0788c..dc1bf0b6 100644 --- a/packages/client-cloudformation/LICENSE +++ b/packages/client-cloudformation/LICENSE @@ -1,4 +1,4 @@ -Copyright (c) 2025 Victor Korzunin +Copyright (c) 2026 Victor Korzunin Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal diff --git a/packages/client-cloudsearch/LICENSE b/packages/client-cloudsearch/LICENSE index ced0788c..dc1bf0b6 100644 --- a/packages/client-cloudsearch/LICENSE +++ b/packages/client-cloudsearch/LICENSE @@ -1,4 +1,4 @@ -Copyright (c) 2025 Victor Korzunin +Copyright (c) 2026 Victor Korzunin Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal diff --git a/packages/client-cloudtrail/LICENSE b/packages/client-cloudtrail/LICENSE index ced0788c..dc1bf0b6 100644 --- a/packages/client-cloudtrail/LICENSE +++ b/packages/client-cloudtrail/LICENSE @@ -1,4 +1,4 @@ -Copyright (c) 2025 Victor Korzunin +Copyright (c) 2026 Victor Korzunin Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal diff --git a/packages/client-cloudwatch-events/LICENSE b/packages/client-cloudwatch-events/LICENSE index ced0788c..dc1bf0b6 100644 --- a/packages/client-cloudwatch-events/LICENSE +++ b/packages/client-cloudwatch-events/LICENSE @@ -1,4 +1,4 @@ -Copyright (c) 2025 Victor Korzunin +Copyright (c) 2026 Victor Korzunin Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal diff --git a/packages/client-cloudwatch-logs/LICENSE b/packages/client-cloudwatch-logs/LICENSE index ced0788c..dc1bf0b6 100644 --- a/packages/client-cloudwatch-logs/LICENSE +++ b/packages/client-cloudwatch-logs/LICENSE @@ -1,4 +1,4 @@ -Copyright (c) 2025 Victor Korzunin +Copyright (c) 2026 Victor Korzunin Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal diff --git a/packages/client-cloudwatch/LICENSE b/packages/client-cloudwatch/LICENSE index ced0788c..dc1bf0b6 100644 --- a/packages/client-cloudwatch/LICENSE +++ b/packages/client-cloudwatch/LICENSE @@ -1,4 +1,4 @@ -Copyright (c) 2025 Victor Korzunin +Copyright (c) 2026 Victor Korzunin Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal diff --git a/packages/client-codedeploy/LICENSE b/packages/client-codedeploy/LICENSE index ced0788c..dc1bf0b6 100644 --- a/packages/client-codedeploy/LICENSE +++ b/packages/client-codedeploy/LICENSE @@ -1,4 +1,4 @@ -Copyright (c) 2025 Victor Korzunin +Copyright (c) 2026 Victor Korzunin Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal diff --git a/packages/client-cognito-identity-provider/LICENSE b/packages/client-cognito-identity-provider/LICENSE index ced0788c..dc1bf0b6 100644 --- a/packages/client-cognito-identity-provider/LICENSE +++ b/packages/client-cognito-identity-provider/LICENSE @@ -1,4 +1,4 @@ -Copyright (c) 2025 Victor Korzunin +Copyright (c) 2026 Victor Korzunin Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal diff --git a/packages/client-data-pipeline/LICENSE b/packages/client-data-pipeline/LICENSE index ced0788c..dc1bf0b6 100644 --- a/packages/client-data-pipeline/LICENSE +++ b/packages/client-data-pipeline/LICENSE @@ -1,4 +1,4 @@ -Copyright (c) 2025 Victor Korzunin +Copyright (c) 2026 Victor Korzunin Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal diff --git a/packages/client-dsql/LICENSE b/packages/client-dsql/LICENSE index ced0788c..dc1bf0b6 100644 --- a/packages/client-dsql/LICENSE +++ b/packages/client-dsql/LICENSE @@ -1,4 +1,4 @@ -Copyright (c) 2025 Victor Korzunin +Copyright (c) 2026 Victor Korzunin Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal diff --git a/packages/client-dynamodb/LICENSE b/packages/client-dynamodb/LICENSE index ced0788c..dc1bf0b6 100644 --- a/packages/client-dynamodb/LICENSE +++ b/packages/client-dynamodb/LICENSE @@ -1,4 +1,4 @@ -Copyright (c) 2025 Victor Korzunin +Copyright (c) 2026 Victor Korzunin Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal diff --git a/packages/client-ec2/LICENSE b/packages/client-ec2/LICENSE index ced0788c..dc1bf0b6 100644 --- a/packages/client-ec2/LICENSE +++ b/packages/client-ec2/LICENSE @@ -1,4 +1,4 @@ -Copyright (c) 2025 Victor Korzunin +Copyright (c) 2026 Victor Korzunin Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal diff --git a/packages/client-ecr/LICENSE b/packages/client-ecr/LICENSE index ced0788c..dc1bf0b6 100644 --- a/packages/client-ecr/LICENSE +++ b/packages/client-ecr/LICENSE @@ -1,4 +1,4 @@ -Copyright (c) 2025 Victor Korzunin +Copyright (c) 2026 Victor Korzunin Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal diff --git a/packages/client-ecs/LICENSE b/packages/client-ecs/LICENSE index ced0788c..dc1bf0b6 100644 --- a/packages/client-ecs/LICENSE +++ b/packages/client-ecs/LICENSE @@ -1,4 +1,4 @@ -Copyright (c) 2025 Victor Korzunin +Copyright (c) 2026 Victor Korzunin Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal diff --git a/packages/client-elasticache/LICENSE b/packages/client-elasticache/LICENSE index ced0788c..dc1bf0b6 100644 --- a/packages/client-elasticache/LICENSE +++ b/packages/client-elasticache/LICENSE @@ -1,4 +1,4 @@ -Copyright (c) 2025 Victor Korzunin +Copyright (c) 2026 Victor Korzunin Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal diff --git a/packages/client-eventbridge/LICENSE b/packages/client-eventbridge/LICENSE index ced0788c..dc1bf0b6 100644 --- a/packages/client-eventbridge/LICENSE +++ b/packages/client-eventbridge/LICENSE @@ -1,4 +1,4 @@ -Copyright (c) 2025 Victor Korzunin +Copyright (c) 2026 Victor Korzunin Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal diff --git a/packages/client-firehose/LICENSE b/packages/client-firehose/LICENSE index ced0788c..dc1bf0b6 100644 --- a/packages/client-firehose/LICENSE +++ b/packages/client-firehose/LICENSE @@ -1,4 +1,4 @@ -Copyright (c) 2025 Victor Korzunin +Copyright (c) 2026 Victor Korzunin Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal diff --git a/packages/client-glue/LICENSE b/packages/client-glue/LICENSE index ced0788c..dc1bf0b6 100644 --- a/packages/client-glue/LICENSE +++ b/packages/client-glue/LICENSE @@ -1,4 +1,4 @@ -Copyright (c) 2025 Victor Korzunin +Copyright (c) 2026 Victor Korzunin Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal diff --git a/packages/client-iam/LICENSE b/packages/client-iam/LICENSE index ced0788c..dc1bf0b6 100644 --- a/packages/client-iam/LICENSE +++ b/packages/client-iam/LICENSE @@ -1,4 +1,4 @@ -Copyright (c) 2025 Victor Korzunin +Copyright (c) 2026 Victor Korzunin Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal diff --git a/packages/client-iot-data-plane/LICENSE b/packages/client-iot-data-plane/LICENSE index ced0788c..dc1bf0b6 100644 --- a/packages/client-iot-data-plane/LICENSE +++ b/packages/client-iot-data-plane/LICENSE @@ -1,4 +1,4 @@ -Copyright (c) 2025 Victor Korzunin +Copyright (c) 2026 Victor Korzunin Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal diff --git a/packages/client-iot-events-data/LICENSE b/packages/client-iot-events-data/LICENSE index ced0788c..dc1bf0b6 100644 --- a/packages/client-iot-events-data/LICENSE +++ b/packages/client-iot-events-data/LICENSE @@ -1,4 +1,4 @@ -Copyright (c) 2025 Victor Korzunin +Copyright (c) 2026 Victor Korzunin Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal diff --git a/packages/client-iot-events/LICENSE b/packages/client-iot-events/LICENSE index ced0788c..dc1bf0b6 100644 --- a/packages/client-iot-events/LICENSE +++ b/packages/client-iot-events/LICENSE @@ -1,4 +1,4 @@ -Copyright (c) 2025 Victor Korzunin +Copyright (c) 2026 Victor Korzunin Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal diff --git a/packages/client-iot-jobs-data-plane/LICENSE b/packages/client-iot-jobs-data-plane/LICENSE index ced0788c..dc1bf0b6 100644 --- a/packages/client-iot-jobs-data-plane/LICENSE +++ b/packages/client-iot-jobs-data-plane/LICENSE @@ -1,4 +1,4 @@ -Copyright (c) 2025 Victor Korzunin +Copyright (c) 2026 Victor Korzunin Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal diff --git a/packages/client-iot-wireless/LICENSE b/packages/client-iot-wireless/LICENSE index ced0788c..dc1bf0b6 100644 --- a/packages/client-iot-wireless/LICENSE +++ b/packages/client-iot-wireless/LICENSE @@ -1,4 +1,4 @@ -Copyright (c) 2025 Victor Korzunin +Copyright (c) 2026 Victor Korzunin Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal diff --git a/packages/client-iot/LICENSE b/packages/client-iot/LICENSE index ced0788c..dc1bf0b6 100644 --- a/packages/client-iot/LICENSE +++ b/packages/client-iot/LICENSE @@ -1,4 +1,4 @@ -Copyright (c) 2025 Victor Korzunin +Copyright (c) 2026 Victor Korzunin Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal diff --git a/packages/client-ivs/LICENSE b/packages/client-ivs/LICENSE index ced0788c..dc1bf0b6 100644 --- a/packages/client-ivs/LICENSE +++ b/packages/client-ivs/LICENSE @@ -1,4 +1,4 @@ -Copyright (c) 2025 Victor Korzunin +Copyright (c) 2026 Victor Korzunin Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal diff --git a/packages/client-kafka/LICENSE b/packages/client-kafka/LICENSE index ced0788c..dc1bf0b6 100644 --- a/packages/client-kafka/LICENSE +++ b/packages/client-kafka/LICENSE @@ -1,4 +1,4 @@ -Copyright (c) 2025 Victor Korzunin +Copyright (c) 2026 Victor Korzunin Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal diff --git a/packages/client-kafkaconnect/LICENSE b/packages/client-kafkaconnect/LICENSE index ced0788c..dc1bf0b6 100644 --- a/packages/client-kafkaconnect/LICENSE +++ b/packages/client-kafkaconnect/LICENSE @@ -1,4 +1,4 @@ -Copyright (c) 2025 Victor Korzunin +Copyright (c) 2026 Victor Korzunin Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal diff --git a/packages/client-kinesis/LICENSE b/packages/client-kinesis/LICENSE index ced0788c..dc1bf0b6 100644 --- a/packages/client-kinesis/LICENSE +++ b/packages/client-kinesis/LICENSE @@ -1,4 +1,4 @@ -Copyright (c) 2025 Victor Korzunin +Copyright (c) 2026 Victor Korzunin Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal diff --git a/packages/client-kms/LICENSE b/packages/client-kms/LICENSE index ced0788c..dc1bf0b6 100644 --- a/packages/client-kms/LICENSE +++ b/packages/client-kms/LICENSE @@ -1,4 +1,4 @@ -Copyright (c) 2025 Victor Korzunin +Copyright (c) 2026 Victor Korzunin Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal diff --git a/packages/client-lambda/LICENSE b/packages/client-lambda/LICENSE index ced0788c..dc1bf0b6 100644 --- a/packages/client-lambda/LICENSE +++ b/packages/client-lambda/LICENSE @@ -1,4 +1,4 @@ -Copyright (c) 2025 Victor Korzunin +Copyright (c) 2026 Victor Korzunin Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal diff --git a/packages/client-mq/LICENSE b/packages/client-mq/LICENSE index ced0788c..dc1bf0b6 100644 --- a/packages/client-mq/LICENSE +++ b/packages/client-mq/LICENSE @@ -1,4 +1,4 @@ -Copyright (c) 2025 Victor Korzunin +Copyright (c) 2026 Victor Korzunin Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal diff --git a/packages/client-opensearch-serverless/LICENSE b/packages/client-opensearch-serverless/LICENSE index ced0788c..dc1bf0b6 100644 --- a/packages/client-opensearch-serverless/LICENSE +++ b/packages/client-opensearch-serverless/LICENSE @@ -1,4 +1,4 @@ -Copyright (c) 2025 Victor Korzunin +Copyright (c) 2026 Victor Korzunin Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal diff --git a/packages/client-opensearch/LICENSE b/packages/client-opensearch/LICENSE index ced0788c..dc1bf0b6 100644 --- a/packages/client-opensearch/LICENSE +++ b/packages/client-opensearch/LICENSE @@ -1,4 +1,4 @@ -Copyright (c) 2025 Victor Korzunin +Copyright (c) 2026 Victor Korzunin Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal diff --git a/packages/client-organizations/LICENSE b/packages/client-organizations/LICENSE index ced0788c..dc1bf0b6 100644 --- a/packages/client-organizations/LICENSE +++ b/packages/client-organizations/LICENSE @@ -1,4 +1,4 @@ -Copyright (c) 2025 Victor Korzunin +Copyright (c) 2026 Victor Korzunin Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal diff --git a/packages/client-rds/LICENSE b/packages/client-rds/LICENSE index ced0788c..dc1bf0b6 100644 --- a/packages/client-rds/LICENSE +++ b/packages/client-rds/LICENSE @@ -1,4 +1,4 @@ -Copyright (c) 2025 Victor Korzunin +Copyright (c) 2026 Victor Korzunin Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal diff --git a/packages/client-s3/LICENSE b/packages/client-s3/LICENSE index ced0788c..dc1bf0b6 100644 --- a/packages/client-s3/LICENSE +++ b/packages/client-s3/LICENSE @@ -1,4 +1,4 @@ -Copyright (c) 2025 Victor Korzunin +Copyright (c) 2026 Victor Korzunin Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal diff --git a/packages/client-scheduler/LICENSE b/packages/client-scheduler/LICENSE index ced0788c..dc1bf0b6 100644 --- a/packages/client-scheduler/LICENSE +++ b/packages/client-scheduler/LICENSE @@ -1,4 +1,4 @@ -Copyright (c) 2025 Victor Korzunin +Copyright (c) 2026 Victor Korzunin Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal diff --git a/packages/client-secrets-manager/LICENSE b/packages/client-secrets-manager/LICENSE index ced0788c..dc1bf0b6 100644 --- a/packages/client-secrets-manager/LICENSE +++ b/packages/client-secrets-manager/LICENSE @@ -1,4 +1,4 @@ -Copyright (c) 2025 Victor Korzunin +Copyright (c) 2026 Victor Korzunin Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal diff --git a/packages/client-ses/LICENSE b/packages/client-ses/LICENSE index ced0788c..dc1bf0b6 100644 --- a/packages/client-ses/LICENSE +++ b/packages/client-ses/LICENSE @@ -1,4 +1,4 @@ -Copyright (c) 2025 Victor Korzunin +Copyright (c) 2026 Victor Korzunin Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal diff --git a/packages/client-sfn/LICENSE b/packages/client-sfn/LICENSE index ced0788c..dc1bf0b6 100644 --- a/packages/client-sfn/LICENSE +++ b/packages/client-sfn/LICENSE @@ -1,4 +1,4 @@ -Copyright (c) 2025 Victor Korzunin +Copyright (c) 2026 Victor Korzunin Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal diff --git a/packages/client-sns/LICENSE b/packages/client-sns/LICENSE index ced0788c..dc1bf0b6 100644 --- a/packages/client-sns/LICENSE +++ b/packages/client-sns/LICENSE @@ -1,4 +1,4 @@ -Copyright (c) 2025 Victor Korzunin +Copyright (c) 2026 Victor Korzunin Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal diff --git a/packages/client-sqs/LICENSE b/packages/client-sqs/LICENSE index ced0788c..dc1bf0b6 100644 --- a/packages/client-sqs/LICENSE +++ b/packages/client-sqs/LICENSE @@ -1,4 +1,4 @@ -Copyright (c) 2025 Victor Korzunin +Copyright (c) 2026 Victor Korzunin Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal diff --git a/packages/client-ssm/LICENSE b/packages/client-ssm/LICENSE index ced0788c..dc1bf0b6 100644 --- a/packages/client-ssm/LICENSE +++ b/packages/client-ssm/LICENSE @@ -1,4 +1,4 @@ -Copyright (c) 2025 Victor Korzunin +Copyright (c) 2026 Victor Korzunin Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal diff --git a/packages/client-sts/LICENSE b/packages/client-sts/LICENSE index ced0788c..dc1bf0b6 100644 --- a/packages/client-sts/LICENSE +++ b/packages/client-sts/LICENSE @@ -1,4 +1,4 @@ -Copyright (c) 2025 Victor Korzunin +Copyright (c) 2026 Victor Korzunin Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal diff --git a/packages/client-textract/LICENSE b/packages/client-textract/LICENSE index ced0788c..dc1bf0b6 100644 --- a/packages/client-textract/LICENSE +++ b/packages/client-textract/LICENSE @@ -1,4 +1,4 @@ -Copyright (c) 2025 Victor Korzunin +Copyright (c) 2026 Victor Korzunin Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal diff --git a/packages/client-timestream-influxdb/LICENSE b/packages/client-timestream-influxdb/LICENSE index ced0788c..dc1bf0b6 100644 --- a/packages/client-timestream-influxdb/LICENSE +++ b/packages/client-timestream-influxdb/LICENSE @@ -1,4 +1,4 @@ -Copyright (c) 2025 Victor Korzunin +Copyright (c) 2026 Victor Korzunin Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal diff --git a/packages/client-timestream-query/LICENSE b/packages/client-timestream-query/LICENSE index ced0788c..dc1bf0b6 100644 --- a/packages/client-timestream-query/LICENSE +++ b/packages/client-timestream-query/LICENSE @@ -1,4 +1,4 @@ -Copyright (c) 2025 Victor Korzunin +Copyright (c) 2026 Victor Korzunin Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal diff --git a/packages/client-timestream-write/LICENSE b/packages/client-timestream-write/LICENSE index ced0788c..dc1bf0b6 100644 --- a/packages/client-timestream-write/LICENSE +++ b/packages/client-timestream-write/LICENSE @@ -1,4 +1,4 @@ -Copyright (c) 2025 Victor Korzunin +Copyright (c) 2026 Victor Korzunin Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal diff --git a/packages/commons/LICENSE b/packages/commons/LICENSE index ced0788c..dc1bf0b6 100644 --- a/packages/commons/LICENSE +++ b/packages/commons/LICENSE @@ -1,4 +1,4 @@ -Copyright (c) 2025 Victor Korzunin +Copyright (c) 2026 Victor Korzunin Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal diff --git a/packages/dsql/LICENSE b/packages/dsql/LICENSE index ced0788c..dc1bf0b6 100644 --- a/packages/dsql/LICENSE +++ b/packages/dsql/LICENSE @@ -1,4 +1,4 @@ -Copyright (c) 2025 Victor Korzunin +Copyright (c) 2026 Victor Korzunin Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal diff --git a/packages/dynamodb/LICENSE b/packages/dynamodb/LICENSE index ced0788c..dc1bf0b6 100644 --- a/packages/dynamodb/LICENSE +++ b/packages/dynamodb/LICENSE @@ -1,4 +1,4 @@ -Copyright (c) 2025 Victor Korzunin +Copyright (c) 2026 Victor Korzunin Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal diff --git a/packages/http-handler/LICENSE b/packages/http-handler/LICENSE index ced0788c..dc1bf0b6 100644 --- a/packages/http-handler/LICENSE +++ b/packages/http-handler/LICENSE @@ -1,4 +1,4 @@ -Copyright (c) 2025 Victor Korzunin +Copyright (c) 2026 Victor Korzunin Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal diff --git a/packages/lambda/.projen/deps.json b/packages/lambda/.projen/deps.json index d2b87fe6..b6a03ddd 100644 --- a/packages/lambda/.projen/deps.json +++ b/packages/lambda/.projen/deps.json @@ -1,11 +1,8 @@ { "dependencies": [ - { - "name": "@effect/platform", - "type": "build" - }, { "name": "@effect/platform-node-shared", + "version": "4.0.0-beta.8", "type": "build" }, { @@ -19,6 +16,7 @@ }, { "name": "effect", + "version": "4.0.0-beta.8", "type": "build" }, { @@ -28,17 +26,12 @@ }, { "name": "@effect/platform-node-shared", - "version": ">=0.36.0", - "type": "peer" - }, - { - "name": "@effect/platform", - "version": ">=0.83.0", + "version": ">=4.0.0 <5.0.0", "type": "peer" }, { "name": "effect", - "version": ">=3.15.5 <4.0.0", + "version": ">=4.0.0 <5.0.0", "type": "peer" } ], diff --git a/packages/lambda/LICENSE b/packages/lambda/LICENSE index ced0788c..dc1bf0b6 100644 --- a/packages/lambda/LICENSE +++ b/packages/lambda/LICENSE @@ -1,4 +1,4 @@ -Copyright (c) 2025 Victor Korzunin +Copyright (c) 2026 Victor Korzunin Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal diff --git a/packages/lambda/examples/fromHttpApi.ts b/packages/lambda/examples/fromHttpApi.ts index 3cabfadf..1e0dca9a 100644 --- a/packages/lambda/examples/fromHttpApi.ts +++ b/packages/lambda/examples/fromHttpApi.ts @@ -1,16 +1,7 @@ import { LambdaHandler } from "@effect-aws/lambda"; -import { - FetchHttpClient, - HttpApi, - HttpApiBuilder, - HttpApiEndpoint, - HttpApiGroup, - HttpApiSchema, - HttpClient, - HttpClientResponse, - HttpServer, -} from "@effect/platform"; import { Effect, Layer, Schema } from "effect"; +import { FetchHttpClient, HttpClient, HttpClientResponse, HttpServer } from "effect/unstable/http"; +import { HttpApi, HttpApiBuilder, HttpApiEndpoint, HttpApiGroup } from "effect/unstable/httpapi"; const YahooResponse = Schema.Struct({ chart: Schema.Struct({ @@ -29,11 +20,11 @@ const YahooResponse = Schema.Struct({ }), }); -const symbolParam = HttpApiSchema.param("symbol", Schema.String); - const getQuote = HttpApiEndpoint.get( "getQuote", -)`/quote/${symbolParam}`.addSuccess(YahooResponse); + `/quote/:symbol`, + { success: YahooResponse, params: { symbol: Schema.String } }, +); const quotesGroup = HttpApiGroup.make("quotes").add(getQuote); @@ -46,8 +37,8 @@ const QuotesLive = HttpApiBuilder.group( (handlers) => handlers.handle( "getQuote", - ({ path }) => - HttpClient.get(`https://query2.finance.yahoo.com/v8/finance/chart/${path.symbol}`, { + ({ params }) => + HttpClient.get(`https://query2.finance.yahoo.com/v8/finance/chart/${params.symbol}`, { urlParams: { interval: "1d" }, }).pipe( Effect.andThen(HttpClientResponse.schemaBodyJson(YahooResponse)), @@ -57,17 +48,11 @@ const QuotesLive = HttpApiBuilder.group( ); // Provide the implementation for the API -const MyApiLive = HttpApiBuilder.api(MyApi).pipe( +const MyApiLive = HttpApiBuilder.layer(MyApi).pipe( Layer.provide(QuotesLive), Layer.provide(FetchHttpClient.layer), + Layer.provide(HttpServer.layerServices), ); // Create the Lambda handler -export const handler = LambdaHandler.fromHttpApi( - Layer.mergeAll( - MyApiLive, - // you could also use NodeHttpServer.layerContext, depending on your - // server's platform - HttpServer.layerContext, - ), -); +export const handler = LambdaHandler.fromHttpApi(MyApiLive); diff --git a/packages/lambda/package.json b/packages/lambda/package.json index 3b46b31b..06af1964 100644 --- a/packages/lambda/package.json +++ b/packages/lambda/package.json @@ -25,17 +25,15 @@ "organization": false }, "devDependencies": { - "@effect/platform": "^0.84.8", - "@effect/platform-node-shared": "^0.39.7", + "@effect/platform-node-shared": "4.0.0-beta.8", "@types/aws-lambda": "^8.10.159", "@types/node": "ts5.4", - "effect": "^3.16.4", + "effect": "4.0.0-beta.8", "typescript": "^5.4.2" }, "peerDependencies": { - "@effect/platform": ">=0.83.0", - "@effect/platform-node-shared": ">=0.36.0", - "effect": ">=3.15.5 <4.0.0" + "@effect/platform-node-shared": ">=4.0.0 <5.0.0", + "effect": ">=4.0.0 <5.0.0" }, "main": "build/cjs/index.js", "license": "MIT", diff --git a/packages/lambda/src/LambdaHandler.ts b/packages/lambda/src/LambdaHandler.ts index af59f247..cfc3f691 100644 --- a/packages/lambda/src/LambdaHandler.ts +++ b/packages/lambda/src/LambdaHandler.ts @@ -1,10 +1,10 @@ /** * @since 1.4.0 */ -import type { HttpApi, HttpRouter } from "@effect/platform"; -import { HttpApiBuilder, HttpApp } from "@effect/platform"; import type { Cause } from "effect"; -import { Context, Effect, Function, Layer } from "effect"; +import { Effect, Layer, Predicate, ServiceMap } from "effect"; +import type { HttpMiddleware } from "effect/unstable/http"; +import { HttpRouter } from "effect/unstable/http"; import { getEventSource } from "./internal/index.js"; import * as internal from "./internal/lambdaHandler.js"; import { pipeTo } from "./internal/stream.js"; @@ -72,8 +72,8 @@ export declare namespace LambdaHandler { */ export const event = (): Effect.Effect => Effect.map( - Effect.context(), - (context) => Context.unsafeGet(context, internal.lambdaEventTag), + Effect.services(), + (context) => ServiceMap.getUnsafe(context, internal.lambdaEventTag), ) as Effect.Effect; /** @@ -82,8 +82,8 @@ export const event = (): Effect.Effect => */ export const context = (): Effect.Effect => Effect.map( - Effect.context(), - (context) => Context.unsafeGet(context, internal.lambdaContextTag), + Effect.services(), + (context) => ServiceMap.getUnsafe(context, internal.lambdaContextTag), ); /** @@ -121,28 +121,10 @@ export const context = (): Effect.Effect => export const make: { (options: EffectHandlerWithLayer): Handler; (handler: EffectHandler): Handler; - /** - * @deprecated Prefer using the `EffectHandlerWithLayer` type to provide a global layer. - * @example - * ```ts - * export const handler = makeLambda({ - * handler: effectHandler, - * layer: LambdaLayer, - * }); - * ``` - */ - (handler: EffectHandler, globalLayer: Layer.Layer): Handler; } = ( handlerOrOptions: EffectHandler | EffectHandlerWithLayer, - globalLayer?: Layer.Layer, ): Handler => { - if (Function.isFunction(handlerOrOptions)) { - // Deprecated case - if (globalLayer) { - const runtime = LambdaRuntime.fromLayer(globalLayer); - return async (event, context) => handlerOrOptions(event, context).pipe(runtime.runPromise); - } - + if (Predicate.isFunction(handlerOrOptions)) { return async (event, context) => handlerOrOptions(event, context).pipe(Effect.runPromise as (effect: Effect.Effect) => Promise); } @@ -192,7 +174,7 @@ export const stream: { } = ( handlerOrOptions: StreamHandler | StreamHandlerWithLayer, ): Handler => { - if (Function.isFunction(handlerOrOptions)) { + if (Predicate.isFunction(handlerOrOptions)) { return global.awslambda?.streamifyResponse(async (event, responseStream, context) => handlerOrOptions(event, context).pipe( pipeTo(responseStream, { end: true }), @@ -212,41 +194,32 @@ export const stream: { }; interface HttpApiOptions { - readonly middleware?: (httpApp: HttpApp.Default) => HttpApp.Default< - never, - HttpApi.Api | HttpApiBuilder.Router | HttpRouter.HttpRouter.DefaultServices - >; + readonly middleware?: HttpMiddleware.HttpMiddleware; readonly memoMap?: Layer.MemoMap; } -type WebHandler = ReturnType; -const WebHandler = Context.GenericTag("@effect-aws/lambda/WebHandler"); +type WebHandler = ( + request: globalThis.Request, + services: ServiceMap.ServiceMap, +) => Promise; +const WebHandler = ServiceMap.Service("@effect-aws/lambda/WebHandler"); /** - * Construct an `WebHandler` from an `HttpApi` instance. + * Construct an `WebHandler` from an `HttpRouter` instance. * * @since 1.4.0 * @category constructors */ -export const makeWebHandler = (options?: Pick): Effect.Effect< - WebHandler, - never, - | HttpApiBuilder.Router - | HttpApi.Api - | HttpRouter.HttpRouter.DefaultServices - | HttpApiBuilder.Middleware - | LambdaHandler.Event - | LambdaContext -> => - Effect.gen(function*() { - const app = yield* HttpApiBuilder.httpApp; - const rt = yield* Effect.runtime< - HttpRouter.HttpRouter.DefaultServices | LambdaHandler.Event | LambdaContext - >(); - return HttpApp.toWebHandlerRuntime(rt)( - options?.middleware ? options.middleware(app as any) as any : app, - ); - }); +export const makeWebHandler = ( + httpRouter: Layer.Layer, + options?: HttpApiOptions, +) => { + const layer = Layer.provide(httpRouter, HttpRouter.layer); + return Effect.acquireRelease( + Effect.sync(() => HttpRouter.toWebHandler(layer, options)), + ({ dispose }) => Effect.promise(() => dispose()), + ).pipe(Effect.map(({ handler }) => handler)); +}; /** * Construct an `EffectHandler` from an `HttpApi` instance. @@ -254,13 +227,12 @@ export const makeWebHandler = (options?: Pick): Ef * @since 1.4.0 * @category constructors */ -export const httpApiHandler = (options?: Pick): EffectHandler< +export const httpApiHandler: EffectHandler< LambdaHandler.Event, - HttpApi.Api | HttpApiBuilder.Router | HttpRouter.HttpRouter.DefaultServices | HttpApiBuilder.Middleware, - Cause.UnknownException, + WebHandler, + Cause.UnknownError, LambdaHandler.Result -> => -(event, context) => +> = (event, context) => Effect.gen(function*() { const eventSource = getEventSource(event) as EventSource; const requestValues = eventSource.getRequest(event); @@ -274,12 +246,15 @@ export const httpApiHandler = (options?: Pick): Ef }, ); - const res = yield* makeWebHandler(options).pipe( - Effect.provideService(internal.lambdaEventTag, event), - Effect.provideService(internal.lambdaContextTag, context), - Effect.andThen((handler) => handler(req)), + const handler = yield* Effect.service(WebHandler); + + const ctx = ServiceMap.empty().pipe( + ServiceMap.add(internal.lambdaEventTag, event), + ServiceMap.add(internal.lambdaContextTag, context), ); + const res: globalThis.Response = yield* Effect.tryPromise(() => handler(req, ctx)); + const contentType = res.headers.get("content-type"); let isBase64Encoded = contentType && isContentTypeBinary(contentType) ? true : false; @@ -347,9 +322,9 @@ export const httpApiHandler = (options?: Pick): Ef * @category constructors */ export const fromHttpApi = ( - layer: Layer.Layer, + layer: Layer.Layer, options?: HttpApiOptions, ): Handler => { - const httpApiLayer = Layer.mergeAll(layer, HttpApiBuilder.Router.Live, HttpApiBuilder.Middleware.layer); - return make({ handler: httpApiHandler(options), layer: httpApiLayer, memoMap: options?.memoMap }); + const WebHandlerLive = Layer.effect(WebHandler, makeWebHandler(layer, options)); + return make({ handler: httpApiHandler, layer: WebHandlerLive, memoMap: options?.memoMap }); }; diff --git a/packages/lambda/src/LambdaRuntime.ts b/packages/lambda/src/LambdaRuntime.ts index dd610944..f273b57f 100644 --- a/packages/lambda/src/LambdaRuntime.ts +++ b/packages/lambda/src/LambdaRuntime.ts @@ -27,7 +27,7 @@ export const fromLayer = ( layer: Layer.Layer, options?: { readonly memoMap?: Layer.MemoMap }, ): ManagedRuntime.ManagedRuntime => { - const rt = ManagedRuntime.make(layer, options?.memoMap); + const rt = ManagedRuntime.make(layer, options); const signalHandler: NodeJS.SignalsListener = (signal) => { Effect.runFork( diff --git a/packages/lambda/src/internal/lambdaHandler.ts b/packages/lambda/src/internal/lambdaHandler.ts index 117d93cd..e8723e1b 100644 --- a/packages/lambda/src/internal/lambdaHandler.ts +++ b/packages/lambda/src/internal/lambdaHandler.ts @@ -1,13 +1,13 @@ -import { Context } from "effect"; +import { ServiceMap } from "effect"; import type { LambdaHandler } from "../LambdaHandler.js"; import type { LambdaContext } from "../Types.js"; /** @internal */ -export const lambdaEventTag = Context.GenericTag( +export const lambdaEventTag = ServiceMap.Service( "@effect-aws/lambda/LambdaHandler/Event", ); /** @internal */ -export const lambdaContextTag = Context.GenericTag( +export const lambdaContextTag = ServiceMap.Service( "@effect-aws/lambda/LambdaHandler/Context", ); diff --git a/packages/lambda/src/internal/stream.ts b/packages/lambda/src/internal/stream.ts index 206b25bd..dec186ca 100644 --- a/packages/lambda/src/internal/stream.ts +++ b/packages/lambda/src/internal/stream.ts @@ -1,13 +1,10 @@ import { Error } from "@effect/platform"; import * as NodeStream from "@effect/platform-node-shared/NodeStream"; -import { Effect, Predicate, Stream } from "effect"; +import { Effect, Stream } from "effect"; import { dual } from "effect/Function"; import type { PipelineDestination, PipelineSource } from "node:stream"; import * as NS from "node:stream/promises"; -/** @internal */ -const isStream = (u: unknown): u is Stream.Stream => Predicate.hasProperty(u, Stream.StreamTypeId); - const handleErrnoException = (module: Error.SystemError["module"], method: string) => (err: unknown): Error.PlatformError => { const reason: Error.SystemErrorReason = "Unknown"; @@ -48,7 +45,7 @@ export const pipeTo: { options?: Omit, ): Effect.Effect; } = dual( - (args) => isStream(args[0]), + (args) => Stream.isStream(args[0]), ( stream: Stream.Stream, writable: NodeJS.WritableStream, diff --git a/packages/lambda/test/LambdaHandler.test.ts b/packages/lambda/test/LambdaHandler.test.ts index b173cbaf..d7bd66ff 100644 --- a/packages/lambda/test/LambdaHandler.test.ts +++ b/packages/lambda/test/LambdaHandler.test.ts @@ -8,17 +8,9 @@ import type { SNSEvent, } from "@effect-aws/lambda"; import { LambdaHandler } from "@effect-aws/lambda"; -import { - HttpApi, - HttpApiBuilder, - HttpApiEndpoint, - HttpApiGroup, - HttpApiSchema, - HttpApp, - HttpServer, - HttpServerResponse, -} from "@effect/platform"; -import { Context, Effect, Layer } from "effect"; +import { Effect, Layer, Schema, ServiceMap } from "effect"; +import { HttpEffect, HttpServer, HttpServerResponse } from "effect/unstable/http"; +import { HttpApi, HttpApiBuilder, HttpApiEndpoint, HttpApiGroup, HttpApiSchema } from "effect/unstable/httpapi"; import { describe, expect, it, vi } from "vitest"; import { albEvent } from "./fixtures/alb-event.js"; import { apiGatewayV1Event } from "./fixtures/api-gateway-v1-event.js"; @@ -48,7 +40,7 @@ describe("LambdaHandler", () => { interface FooService { bar: () => Effect.Effect; } - const FooService = Context.GenericTag("@services/FooService"); + const FooService = ServiceMap.Service("@services/FooService"); const FooServiceLive = Layer.succeed( FooService, FooService.of({ bar: () => Effect.succeed("Not implemented") }), @@ -60,7 +52,7 @@ describe("LambdaHandler", () => { return yield* service.bar(); }); - const handler = LambdaHandler.make(myEffectHandler, FooServiceLive); + const handler = LambdaHandler.make({ handler: myEffectHandler, layer: FooServiceLive }); const result = await handler(event, context); @@ -84,8 +76,8 @@ describe("LambdaHandler", () => { interface FooService { bar: () => Effect.Effect; } - const FooService = Context.GenericTag("@services/FooService"); - const FooServiceLive = Layer.scoped( + const FooService = ServiceMap.Service("@services/FooService"); + const FooServiceLive = Layer.effect( FooService, Effect.gen(function*() { yield* resource; @@ -126,7 +118,9 @@ describe("LambdaHandler", () => { awsRequestId: "8ad41330-f092-4037-bc7c-63ffb7d6d4e7", } as LambdaContext; - const hello = HttpApiEndpoint.get("hello")`/hello`.addSuccess(HttpApiSchema.Text()); + const hello = HttpApiEndpoint.get("hello", `/hello`, { + success: Schema.String.pipe(HttpApiSchema.asText()), + }); const quotesGroup = HttpApiGroup.make("hello").add(hello); @@ -140,7 +134,7 @@ describe("LambdaHandler", () => { "hello", () => Effect.gen(function*() { - yield* HttpApp.appendPreResponseHandler((_req, response) => + yield* HttpEffect.appendPreResponseHandler((_req, response) => Effect.orDie( HttpServerResponse.setCookie(response, "cookie key", "cookie value"), ) @@ -157,9 +151,12 @@ describe("LambdaHandler", () => { ), ); - const MyApiLive = HttpApiBuilder.api(MyApi).pipe(Layer.provide(HelloLive)); + const MyApiLive = HttpApiBuilder.layer(MyApi).pipe( + Layer.provide(HelloLive), + Layer.provide(HttpServer.layerServices), + ); - const handler = LambdaHandler.fromHttpApi(Layer.mergeAll(MyApiLive, HttpServer.layerContext)); + const handler = LambdaHandler.fromHttpApi(MyApiLive); const result = await handler(apiGatewayV1Event, context); @@ -190,7 +187,9 @@ describe("LambdaHandler", () => { awsRequestId: "8ad41330-f092-4037-bc7c-63ffb7d6d4e7", } as LambdaContext; - const hello = HttpApiEndpoint.post("hello")`/my/path`.addSuccess(HttpApiSchema.Text()); + const hello = HttpApiEndpoint.post("hello", `/my/path`, { + success: Schema.String.pipe(HttpApiSchema.asText()), + }); const quotesGroup = HttpApiGroup.make("hello").add(hello); @@ -203,7 +202,7 @@ describe("LambdaHandler", () => { handlers.handle( "hello", () => - HttpApp.appendPreResponseHandler((_req, response) => + HttpEffect.appendPreResponseHandler((_req, response) => Effect.orDie( HttpServerResponse.setCookie(response, "cookie key", "cookie value"), ) @@ -213,9 +212,12 @@ describe("LambdaHandler", () => { ), ); - const MyApiLive = HttpApiBuilder.api(MyApi).pipe(Layer.provide(HelloLive)); + const MyApiLive = HttpApiBuilder.layer(MyApi).pipe( + Layer.provide(HelloLive), + Layer.provide(HttpServer.layerServices), + ); - const handler = LambdaHandler.fromHttpApi(Layer.mergeAll(MyApiLive, HttpServer.layerContext)); + const handler = LambdaHandler.fromHttpApi(MyApiLive); const result = await handler(apiGatewayV2Event, context); @@ -243,7 +245,9 @@ describe("LambdaHandler", () => { awsRequestId: "8ad41330-f092-4037-bc7c-63ffb7d6d4e7", } as LambdaContext; - const hello = HttpApiEndpoint.post("hello")`/users`.addSuccess(HttpApiSchema.Text()); + const hello = HttpApiEndpoint.post("hello", `/users`, { + success: Schema.String.pipe(HttpApiSchema.asText()), + }); const quotesGroup = HttpApiGroup.make("hello").add(hello); @@ -256,7 +260,7 @@ describe("LambdaHandler", () => { handlers.handle( "hello", () => - HttpApp.appendPreResponseHandler((_req, response) => + HttpEffect.appendPreResponseHandler((_req, response) => Effect.orDie( HttpServerResponse.setCookie(response, "cookie key", "cookie value"), ) @@ -266,9 +270,12 @@ describe("LambdaHandler", () => { ), ); - const MyApiLive = HttpApiBuilder.api(MyApi).pipe(Layer.provide(HelloLive)); + const MyApiLive = HttpApiBuilder.layer(MyApi).pipe( + Layer.provide(HelloLive), + Layer.provide(HttpServer.layerServices), + ); - const handler = LambdaHandler.fromHttpApi(Layer.mergeAll(MyApiLive, HttpServer.layerContext)); + const handler = LambdaHandler.fromHttpApi(MyApiLive); const result = await handler(albEvent, context); @@ -295,7 +302,9 @@ describe("LambdaHandler", () => { awsRequestId: "8ad41330-f092-4037-bc7c-63ffb7d6d4e7", } as LambdaContext; - const hello = HttpApiEndpoint.get("hello")`/no-route`.addSuccess(HttpApiSchema.Text()); + const hello = HttpApiEndpoint.get("hello", `/no-route`, { + success: Schema.String.pipe(HttpApiSchema.asText()), + }); const quotesGroup = HttpApiGroup.make("hello").add(hello); @@ -307,9 +316,12 @@ describe("LambdaHandler", () => { (handlers) => handlers.handle("hello", () => Effect.succeed("Hello, World!")), ); - const MyApiLive = HttpApiBuilder.api(MyApi).pipe(Layer.provide(HelloLive)); + const MyApiLive = HttpApiBuilder.layer(MyApi).pipe( + Layer.provide(HelloLive), + Layer.provide(HttpServer.layerServices), + ); - const handler = LambdaHandler.fromHttpApi(Layer.mergeAll(MyApiLive, HttpServer.layerContext)); + const handler = LambdaHandler.fromHttpApi(MyApiLive); const result = await handler(albEvent, context); diff --git a/packages/lib-dynamodb/LICENSE b/packages/lib-dynamodb/LICENSE index ced0788c..dc1bf0b6 100644 --- a/packages/lib-dynamodb/LICENSE +++ b/packages/lib-dynamodb/LICENSE @@ -1,4 +1,4 @@ -Copyright (c) 2025 Victor Korzunin +Copyright (c) 2026 Victor Korzunin Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal diff --git a/packages/powertools-logger/LICENSE b/packages/powertools-logger/LICENSE index ced0788c..dc1bf0b6 100644 --- a/packages/powertools-logger/LICENSE +++ b/packages/powertools-logger/LICENSE @@ -1,4 +1,4 @@ -Copyright (c) 2025 Victor Korzunin +Copyright (c) 2026 Victor Korzunin Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal diff --git a/packages/powertools-tracer/LICENSE b/packages/powertools-tracer/LICENSE index ced0788c..dc1bf0b6 100644 --- a/packages/powertools-tracer/LICENSE +++ b/packages/powertools-tracer/LICENSE @@ -1,4 +1,4 @@ -Copyright (c) 2025 Victor Korzunin +Copyright (c) 2026 Victor Korzunin Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal diff --git a/packages/s3/LICENSE b/packages/s3/LICENSE index ced0788c..dc1bf0b6 100644 --- a/packages/s3/LICENSE +++ b/packages/s3/LICENSE @@ -1,4 +1,4 @@ -Copyright (c) 2025 Victor Korzunin +Copyright (c) 2026 Victor Korzunin Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal diff --git a/packages/secrets-manager/LICENSE b/packages/secrets-manager/LICENSE index ced0788c..dc1bf0b6 100644 --- a/packages/secrets-manager/LICENSE +++ b/packages/secrets-manager/LICENSE @@ -1,4 +1,4 @@ -Copyright (c) 2025 Victor Korzunin +Copyright (c) 2026 Victor Korzunin Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal diff --git a/packages/ssm/LICENSE b/packages/ssm/LICENSE index ced0788c..dc1bf0b6 100644 --- a/packages/ssm/LICENSE +++ b/packages/ssm/LICENSE @@ -1,4 +1,4 @@ -Copyright (c) 2025 Victor Korzunin +Copyright (c) 2026 Victor Korzunin Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal diff --git a/pnpm-lock.yaml b/pnpm-lock.yaml index 4e0a343c..4f928938 100644 --- a/pnpm-lock.yaml +++ b/pnpm-lock.yaml @@ -1369,12 +1369,9 @@ importers: packages/lambda: devDependencies: - '@effect/platform': - specifier: ^0.84.8 - version: 0.84.8(effect@3.16.4) '@effect/platform-node-shared': - specifier: ^0.39.7 - version: 0.39.7(@effect/cluster@0.38.7(@effect/platform@0.84.8(effect@3.16.4))(@effect/rpc@0.61.8(@effect/platform@0.84.8(effect@3.16.4))(effect@3.16.4))(@effect/sql@0.37.9(@effect/experimental@0.48.9(@effect/platform@0.84.8(effect@3.16.4))(effect@3.16.4))(@effect/platform@0.84.8(effect@3.16.4))(effect@3.16.4))(@effect/workflow@0.1.5(@effect/platform@0.84.8(effect@3.16.4))(@effect/rpc@0.61.8(@effect/platform@0.84.8(effect@3.16.4))(effect@3.16.4))(effect@3.16.4))(effect@3.16.4))(@effect/platform@0.84.8(effect@3.16.4))(@effect/rpc@0.61.8(@effect/platform@0.84.8(effect@3.16.4))(effect@3.16.4))(@effect/sql@0.37.9(@effect/experimental@0.48.9(@effect/platform@0.84.8(effect@3.16.4))(effect@3.16.4))(@effect/platform@0.84.8(effect@3.16.4))(effect@3.16.4))(effect@3.16.4) + specifier: 4.0.0-beta.8 + version: 4.0.0-beta.8(effect@4.0.0-beta.8) '@types/aws-lambda': specifier: ^8.10.159 version: 8.10.159 @@ -1382,8 +1379,8 @@ importers: specifier: ts5.4 version: 25.0.3 effect: - specifier: ^3.16.4 - version: 3.16.4 + specifier: 4.0.0-beta.8 + version: 4.0.0-beta.8 typescript: specifier: ^5.4.2 version: 5.4.5 @@ -2318,6 +2315,12 @@ packages: '@effect/sql': ^0.37.9 effect: ^3.16.4 + '@effect/platform-node-shared@4.0.0-beta.8': + resolution: {integrity: sha512-OK5E2FURY244KxIG2itHIvV58GvJvR+jiSXt/DiG9m4SmsVUXCVaLmKpYQWo0e27U3s73+0s3gX+1PEzBBVVbA==} + engines: {node: '>=18.0.0'} + peerDependencies: + effect: ^4.0.0-beta.8 + '@effect/platform-node@0.85.7': resolution: {integrity: sha512-dTiPVSNCfGBn/u+yBD/0MdvorV+Oj5jlBW4RL9BYDBMKpslcC1T3RaVvW8D6mtPBPUrdgSCfMazPCGU43hO3OA==} peerDependencies: @@ -3325,6 +3328,9 @@ packages: '@standard-schema/spec@1.0.0': resolution: {integrity: sha512-m2bOd0f2RT9k8QJx1JN85cZYyH1RqFBdlwtkSlf4tBDYLCiiZnv1fIIwacK6cqwXavOydf0NPToMQgpKq+dVlA==} + '@standard-schema/spec@1.1.0': + resolution: {integrity: sha512-l2aFy5jALhniG5HgqrD6jXLi/rUWrKvqN/qJx6yoJsgKhblVd+iqqU4RCXavm/jPityDo5TCvKMnpjKnOriy0w==} + '@tsconfig/node10@1.0.9': resolution: {integrity: sha512-jNsYVVxU8v5g43Erja32laIDHXeoNvFEpX33OK4d6hljo3jDhCBDhx5dhCCTMWUojscpAagGiRkBKxpdl9fxqA==} @@ -3412,6 +3418,9 @@ packages: '@types/node@25.0.3': resolution: {integrity: sha512-W609buLVRVmeW693xKfzHeIV6nJGGz98uCPfeXI1ELMLXVeKYZ9m15fAMSaUPBHYLGFsVRcMmSCksQOrZV9BYA==} + '@types/node@25.3.0': + resolution: {integrity: sha512-4K3bqJpXpqfg2XKGK9bpDTc6xO/xoUP/RBWS7AtRMug6zZFaRekiLzjVtAoZMquxoAbzBvy5nxQ7veS5eYzf8A==} + '@types/normalize-package-data@2.4.4': resolution: {integrity: sha512-37i+OaWTh9qeK4LSHPsyRC7NahnGotNuZvjLSgcPzblpHB3rrCJxAOgI5gCdKm7coonsaX1Of0ILiTcnZjbfxA==} @@ -3433,6 +3442,9 @@ packages: '@types/web-bluetooth@0.0.21': resolution: {integrity: sha512-oIQLCGWtcFZy2JW77j9k8nHzAOpqMHLQejDA48XXMWH6tjCQHz5RCFz1bzsmROyL6PUm+LLnUiI4BCn221inxA==} + '@types/ws@8.18.1': + resolution: {integrity: sha512-ThVF6DCVhA8kUGy+aazFQ4kXQ7E1Ty7A3ypFOe0IcJV8O/M511G99AW24irKrW56Wt44yG9+ij8FaqoBGkuBXg==} + '@types/yargs-parser@21.0.3': resolution: {integrity: sha512-I4q9QU9MQv4oEOz4tAHJtNz1cwuLxn2F3xcc2iV5WdqLPpUnj30aUuxt1mAxYTG+oe8CZMV/+6rU4S4gRDzqtQ==} @@ -4003,6 +4015,9 @@ packages: effect@3.16.4: resolution: {integrity: sha512-zJo5MRPEMROLjTHyrOJs0PUeEnRLy0ABwum3+HWlP8Y9LNF+NjipIRldVAcjSVQpJ7vY/OEGBxzw0USPzTfWag==} + effect@4.0.0-beta.8: + resolution: {integrity: sha512-8Df3vdVY8ahZcn2oC27lAfMGXHId1I5YDHqGgLe4UCQ9D8Kzmb5oq+qZVXvmY9fZANabnu47AE41040kc52QCg==} + electron-to-chromium@1.5.88: resolution: {integrity: sha512-K3C2qf1o+bGzbilTDCTBhTQcMS9KW60yTAaTeeXsfvQuTDDwlokLam/AdqlqcSy9u4UainDgsHV23ksXAOgamw==} @@ -4237,6 +4252,10 @@ packages: resolution: {integrity: sha512-h5+1OzzfCC3Ef7VbtKdcv7zsstUQwUDlYpUTvjeUsJAssPgLn7QzbboPtL5ro04Mq0rPOsMzl7q5hIbRs2wD1A==} engines: {node: '>=8.0.0'} + fast-check@4.5.3: + resolution: {integrity: sha512-IE9csY7lnhxBnA8g/WI5eg/hygA6MGWJMSNfFRrBlXUciADEhS1EDB0SIsMSvzubzIlOBbVITSsypCsW717poA==} + engines: {node: '>=12.17.0'} + fast-deep-equal@3.1.3: resolution: {integrity: sha512-f3qQ9oQy9j2AhBe/H9VC91wLmKBCCU/gDOnKNAYG5hswO7BLKj09Hc5HYNz9cGI++xlpDCIgDaitVs03ATR84Q==} @@ -4287,6 +4306,9 @@ packages: find-my-way-ts@0.1.5: resolution: {integrity: sha512-4GOTMrpGQVzsCH2ruUn2vmwzV/02zF4q+ybhCIrw/Rkt3L8KWcycdC6aJMctJzwN4fXD4SD5F/4B9Sksh5rE0A==} + find-my-way-ts@0.1.6: + resolution: {integrity: sha512-a85L9ZoXtNAey3Y6Z+eBWW658kO/MwR7zIafkIUPUMf3isZG0NCs2pjW2wtjxAKuJPxMAsHUIP4ZPGv0o5gyTA==} + find-up@4.1.0: resolution: {integrity: sha512-PpOwAdQ/YlXQ2vj8a3h8IipDuYRi3wceVQQGYWxNINccq40Anw7BlsEXCMbt1Zt+OLA6Fq9suIpIWD0OsnISlw==} engines: {node: '>=8'} @@ -4483,6 +4505,10 @@ packages: resolution: {integrity: sha512-X7rqawQBvfdjS10YU1y1YVreA3SsLrW9dX2CewP2EbBJM4ypVNLDkO5y04gejPwKIY9lR+7r9gn3rFPt/kmWFg==} engines: {node: ^14.17.0 || ^16.13.0 || >=18.0.0} + ini@6.0.0: + resolution: {integrity: sha512-IBTdIkzZNOpqm7q3dRqJvMaldXjDHWkEDfrwGEQTs5eaQMWV+djAhR+wahyNNMAa+qpbDUhBMVt4ZKNwpPm7xQ==} + engines: {node: ^20.17.0 || >=22.9.0} + internal-slot@1.1.0: resolution: {integrity: sha512-4gd7VpWNQNB4UKKCFFVcp1AVv+FMOgs9NKzjHKusc8jTMhd5eL1NqQqOpE0KzMds804/yHlglp3uxgluOqAPLw==} engines: {node: '>= 0.4'} @@ -4773,6 +4799,9 @@ packages: kolorist@1.8.0: resolution: {integrity: sha512-Y+60/zizpJ3HRH8DCss+q95yr6145JXZo46OTpFvDZWLfRCE4qChOyk1b26nMaNpfHHgxagk9dXT5OP0Tfe+dQ==} + kubernetes-types@1.30.0: + resolution: {integrity: sha512-Dew1okvhM/SQcIa2rcgujNndZwU8VnSapDgdxlYoB84ZlpAD43U6KLAFqYo17ykSFGHNPrg0qry0bP+GJd9v7Q==} + lazy-cache@2.0.2: resolution: {integrity: sha512-7vp2Acd2+Kz4XkzxGxaB1FWOi8KjWIWsgdfD5MCb86DWvlLqhRPM+d6Pro3iNEL5VT9mstz5hKAlcd+QR6H3aA==} engines: {node: '>=0.10.0'} @@ -4949,9 +4978,15 @@ packages: msgpackr@1.11.4: resolution: {integrity: sha512-uaff7RG9VIC4jacFW9xzL3jc0iM32DNHe4jYVycBcjUePT/Klnfj7pqtWJt9khvDFizmjN2TlYniYmSS2LIaZg==} + msgpackr@1.11.8: + resolution: {integrity: sha512-bC4UGzHhVvgDNS7kn9tV8fAucIYUBuGojcaLiz7v+P63Lmtm0Xeji8B/8tYKddALXxJLpwIeBmUN3u64C4YkRA==} + multipasta@0.2.5: resolution: {integrity: sha512-c8eMDb1WwZcE02WVjHoOmUVk7fnKU/RmUcosHACglrWAuPQsEJv+E8430sXj6jNc1jHw0zrS16aCjQh4BcEb4A==} + multipasta@0.2.7: + resolution: {integrity: sha512-KPA58d68KgGil15oDqXjkUBEBYc00XvbPj5/X+dyzeo/lWm9Nc25pQRlf1D+gv4OpK7NM0J1odrbu9JNNGvynA==} + nanoid@3.3.11: resolution: {integrity: sha512-N8SpfPUnUp1bK+PMYW8qSWdl9U+wwNWI4QKxOYDy9JAro3WMX7p2OeVRF9v+347pnakNevPmiHhNmZ2HbFA76w==} engines: {node: ^10 || ^12 || ^13.7 || ^14 || >=15.0.1} @@ -5212,6 +5247,9 @@ packages: pure-rand@6.1.0: resolution: {integrity: sha512-bVWawvoZoBYpp6yIoQtQXHZjmz35RSVHnUOTefl8Vcjr8snTPY1wnpSPMWekcFwbxI6gtmT7rSYPFvz71ldiOA==} + pure-rand@7.0.1: + resolution: {integrity: sha512-oTUZM/NAZS8p7ANR3SHh30kXB+zK2r2BPcEn/awJIbOvq82WoMN4p62AWWp3Hhw50G0xMsw1mhIBLqHw64EcNQ==} + quansync@0.2.10: resolution: {integrity: sha512-t41VRkMYbkHyCYmOvx/6URnN80H7k4X0lLdBMGsz+maAwrJQYB1djpV6vHrQIBE0WBSGqhtEHrK9U3DWWH8v7A==} @@ -5682,6 +5720,9 @@ packages: undici-types@7.16.0: resolution: {integrity: sha512-Zz+aZWSj8LE6zoxD+xrjh4VfkIG8Ya6LvYkZqtUQGJPZjYl53ypCaUwWqo7eI0x66KBGeRo+mlBEkMSeSZ38Nw==} + undici-types@7.18.2: + resolution: {integrity: sha512-AsuCzffGHJybSaRrmr5eHr81mwJU3kjw6M+uprWvCXiNeN9SOGwQ3Jn8jb8m3Z6izVgknn1R0FTCEAP2QrLY/w==} + undici@7.10.0: resolution: {integrity: sha512-u5otvFBOBZvmdjWLVW+5DAc9Nkq8f24g0O9oY7qw2JVIF1VocIFoyz9JFkuVOS2j41AufeO0xnlweJ2RLT8nGw==} engines: {node: '>=20.18.1'} @@ -5724,6 +5765,10 @@ packages: resolution: {integrity: sha512-0/A9rDy9P7cJ+8w1c9WD9V//9Wj15Ce2MPz8Ri6032usz+NfePxx5AcN3bN+r6ZL6jEo066/yNYB3tn4pQEx+A==} hasBin: true + uuid@13.0.0: + resolution: {integrity: sha512-XQegIaBTVUjSHliKqcnFqYypAd4S+WCYt5NIeRs6w/UAry7z8Y9j5ZwRRL4kzq9U3sD6v+85er9FvkEaBpji2w==} + hasBin: true + v8-compile-cache-lib@3.0.1: resolution: {integrity: sha512-wa7YjyUGfNZngI/vtK0UHAN+lgDCxBPCylVXGp0zu59Fz5aiGtNXaq3DhIov063MorB+VfufLh3JlF2KdTK3xg==} @@ -5888,6 +5933,18 @@ packages: utf-8-validate: optional: true + ws@8.19.0: + resolution: {integrity: sha512-blAT2mjOEIi0ZzruJfIhb3nps74PRWTCz1IjglWEEpQl5XS/UNama6u2/rjFkDDouqr4L67ry+1aGIALViWjDg==} + engines: {node: '>=10.0.0'} + peerDependencies: + bufferutil: ^4.0.1 + utf-8-validate: '>=5.0.2' + peerDependenciesMeta: + bufferutil: + optional: true + utf-8-validate: + optional: true + xtend@4.0.2: resolution: {integrity: sha512-LKYU1iAXJXUgAXn9URjiu+MWhyUXHsvfp7mcuYm9dSUKK0/CjtrUwFAxD82/mCWbtLsGjFIad0wIsod4zrTAEQ==} engines: {node: '>=0.4'} @@ -5900,6 +5957,11 @@ packages: engines: {node: '>= 14'} hasBin: true + yaml@2.8.2: + resolution: {integrity: sha512-mplynKqc1C2hTVYxd0PU2xQAc22TI1vShAYGksCCfxbn/dFwnHTNi1bvYsBTkhdUNtGIf5xNOg938rrSSYvS9A==} + engines: {node: '>= 14.6'} + hasBin: true + yn@3.1.1: resolution: {integrity: sha512-Ux4ygGWsu2c7isFWe8Yu1YluJmqVhxqK2cLXNQA5AcC3QfbGNpM7fu0Y8b/z16pXLnFxZYvWhd3fhBY9DLmC6Q==} engines: {node: '>=6'} @@ -9626,6 +9688,15 @@ snapshots: - bufferutil - utf-8-validate + '@effect/platform-node-shared@4.0.0-beta.8(effect@4.0.0-beta.8)': + dependencies: + '@types/ws': 8.18.1 + effect: 4.0.0-beta.8 + ws: 8.19.0 + transitivePeerDependencies: + - bufferutil + - utf-8-validate + '@effect/platform-node@0.85.7(@effect/cluster@0.38.7(@effect/platform@0.84.8(effect@3.16.4))(@effect/rpc@0.61.8(@effect/platform@0.84.8(effect@3.16.4))(effect@3.16.4))(@effect/sql@0.37.9(@effect/experimental@0.48.9(@effect/platform@0.84.8(effect@3.16.4))(effect@3.16.4))(@effect/platform@0.84.8(effect@3.16.4))(effect@3.16.4))(@effect/workflow@0.1.5(@effect/platform@0.84.8(effect@3.16.4))(@effect/rpc@0.61.8(@effect/platform@0.84.8(effect@3.16.4))(effect@3.16.4))(effect@3.16.4))(effect@3.16.4))(@effect/platform@0.84.8(effect@3.16.4))(@effect/rpc@0.61.8(@effect/platform@0.84.8(effect@3.16.4))(effect@3.16.4))(@effect/sql@0.37.9(@effect/experimental@0.48.9(@effect/platform@0.84.8(effect@3.16.4))(effect@3.16.4))(@effect/platform@0.84.8(effect@3.16.4))(effect@3.16.4))(effect@3.16.4)': dependencies: '@effect/cluster': 0.38.7(@effect/platform@0.84.8(effect@3.16.4))(@effect/rpc@0.61.8(@effect/platform@0.84.8(effect@3.16.4))(effect@3.16.4))(@effect/sql@0.37.9(@effect/experimental@0.48.9(@effect/platform@0.84.8(effect@3.16.4))(effect@3.16.4))(@effect/platform@0.84.8(effect@3.16.4))(effect@3.16.4))(@effect/workflow@0.1.5(@effect/platform@0.84.8(effect@3.16.4))(@effect/rpc@0.61.8(@effect/platform@0.84.8(effect@3.16.4))(effect@3.16.4))(effect@3.16.4))(effect@3.16.4) @@ -9947,7 +10018,7 @@ snapshots: '@jest/schemas': 29.6.3 '@types/istanbul-lib-coverage': 2.0.6 '@types/istanbul-reports': 3.0.4 - '@types/node': 25.0.3 + '@types/node': 25.3.0 '@types/yargs': 17.0.33 chalk: 4.1.2 @@ -10572,6 +10643,8 @@ snapshots: '@standard-schema/spec@1.0.0': {} + '@standard-schema/spec@1.1.0': {} + '@tsconfig/node10@1.0.9': {} '@tsconfig/node12@1.0.11': {} @@ -10658,6 +10731,10 @@ snapshots: dependencies: undici-types: 7.16.0 + '@types/node@25.3.0': + dependencies: + undici-types: 7.18.2 + '@types/normalize-package-data@2.4.4': {} '@types/sinon@17.0.4': @@ -10674,6 +10751,10 @@ snapshots: '@types/web-bluetooth@0.0.21': {} + '@types/ws@8.18.1': + dependencies: + '@types/node': 25.3.0 + '@types/yargs-parser@21.0.3': {} '@types/yargs@17.0.33': @@ -11302,6 +11383,19 @@ snapshots: '@standard-schema/spec': 1.0.0 fast-check: 3.23.2 + effect@4.0.0-beta.8: + dependencies: + '@standard-schema/spec': 1.1.0 + fast-check: 4.5.3 + find-my-way-ts: 0.1.6 + ini: 6.0.0 + kubernetes-types: 1.30.0 + msgpackr: 1.11.8 + multipasta: 0.2.7 + toml: 3.0.0 + uuid: 13.0.0 + yaml: 2.8.2 + electron-to-chromium@1.5.88: {} emitter-listener@1.1.2: @@ -11685,6 +11779,10 @@ snapshots: dependencies: pure-rand: 6.1.0 + fast-check@4.5.3: + dependencies: + pure-rand: 7.0.1 + fast-deep-equal@3.1.3: {} fast-diff@1.3.0: {} @@ -11733,6 +11831,8 @@ snapshots: find-my-way-ts@0.1.5: {} + find-my-way-ts@0.1.6: {} + find-up@4.1.0: dependencies: locate-path: 5.0.0 @@ -11948,6 +12048,8 @@ snapshots: ini@4.1.3: {} + ini@6.0.0: {} + internal-slot@1.1.0: dependencies: es-errors: 1.3.0 @@ -12240,6 +12342,8 @@ snapshots: kolorist@1.8.0: {} + kubernetes-types@1.30.0: {} + lazy-cache@2.0.2: dependencies: set-getter: 0.1.1 @@ -12445,8 +12549,14 @@ snapshots: optionalDependencies: msgpackr-extract: 3.0.3 + msgpackr@1.11.8: + optionalDependencies: + msgpackr-extract: 3.0.3 + multipasta@0.2.5: {} + multipasta@0.2.7: {} + nanoid@3.3.11: {} natural-compare-lite@1.4.0: {} @@ -12678,6 +12788,8 @@ snapshots: pure-rand@6.1.0: {} + pure-rand@7.0.1: {} + quansync@0.2.10: {} queue-microtask@1.2.3: {} @@ -13203,6 +13315,8 @@ snapshots: undici-types@7.16.0: {} + undici-types@7.18.2: {} + undici@7.10.0: {} unist-util-is@6.0.0: @@ -13248,6 +13362,8 @@ snapshots: uuid@11.1.0: {} + uuid@13.0.0: {} + v8-compile-cache-lib@3.0.1: {} validate-npm-package-license@3.0.4: @@ -13477,12 +13593,16 @@ snapshots: ws@8.18.2: {} + ws@8.19.0: {} + xtend@4.0.2: {} yallist@3.1.1: {} yaml@2.7.0: {} + yaml@2.8.2: {} + yn@3.1.1: {} yocto-queue@0.1.0: {} From a3d4597671b4f72dafd03bef01647c3ba09be6d0 Mon Sep 17 00:00:00 2001 From: Victor Korzunin <5180700+floydspace@users.noreply.github.com> Date: Sat, 21 Feb 2026 04:54:16 +0100 Subject: [PATCH 3/7] chore: remove deprecated lib-dynamodb package and related files --- .projenrc.ts | 10 +- packages/lib-dynamodb/.gitattributes | 21 -- packages/lib-dynamodb/.gitignore | 44 ---- packages/lib-dynamodb/.npmignore | 19 -- packages/lib-dynamodb/.projen/deps.json | 30 --- packages/lib-dynamodb/.projen/files.json | 19 -- packages/lib-dynamodb/.projen/tasks.json | 120 ---------- packages/lib-dynamodb/CHANGELOG.md | 271 ----------------------- packages/lib-dynamodb/LICENSE | 19 -- packages/lib-dynamodb/README.md | 65 ------ packages/lib-dynamodb/docgen.json | 8 - packages/lib-dynamodb/package.json | 49 ---- packages/lib-dynamodb/src/index.ts | 28 --- packages/lib-dynamodb/test/index.test.ts | 170 -------------- packages/lib-dynamodb/tsconfig.cjs.json | 15 -- packages/lib-dynamodb/tsconfig.dev.json | 23 -- packages/lib-dynamodb/tsconfig.esm.json | 15 -- packages/lib-dynamodb/tsconfig.json | 13 -- packages/lib-dynamodb/tsconfig.src.json | 17 -- packages/lib-dynamodb/vitest.config.ts | 6 - pnpm-workspace.yaml | 1 - tsconfig.base.json | 9 - tsconfig.build.json | 3 - tsconfig.json | 3 - vitest.shared.ts | 1 - 25 files changed, 1 insertion(+), 978 deletions(-) delete mode 100644 packages/lib-dynamodb/.gitattributes delete mode 100644 packages/lib-dynamodb/.gitignore delete mode 100644 packages/lib-dynamodb/.npmignore delete mode 100644 packages/lib-dynamodb/.projen/deps.json delete mode 100644 packages/lib-dynamodb/.projen/files.json delete mode 100644 packages/lib-dynamodb/.projen/tasks.json delete mode 100644 packages/lib-dynamodb/CHANGELOG.md delete mode 100644 packages/lib-dynamodb/LICENSE delete mode 100644 packages/lib-dynamodb/README.md delete mode 100644 packages/lib-dynamodb/docgen.json delete mode 100644 packages/lib-dynamodb/package.json delete mode 100644 packages/lib-dynamodb/src/index.ts delete mode 100644 packages/lib-dynamodb/test/index.test.ts delete mode 100644 packages/lib-dynamodb/tsconfig.cjs.json delete mode 100644 packages/lib-dynamodb/tsconfig.dev.json delete mode 100644 packages/lib-dynamodb/tsconfig.esm.json delete mode 100644 packages/lib-dynamodb/tsconfig.json delete mode 100644 packages/lib-dynamodb/tsconfig.src.json delete mode 100644 packages/lib-dynamodb/vitest.config.ts diff --git a/.projenrc.ts b/.projenrc.ts index 2e6adee1..32a8e7e3 100644 --- a/.projenrc.ts +++ b/.projenrc.ts @@ -98,7 +98,7 @@ const dynamodbClient = TypeScriptLibProject.childOf(project, "client-dynamodb"); const secretsManagerClient = TypeScriptLibProject.childOf(project, "client-secrets-manager"); const ssmClient = TypeScriptLibProject.childOf(project, "client-ssm"); -const dynamodb = new TypeScriptLibProject({ +new TypeScriptLibProject({ parent: project, name: "dynamodb", description: "Effectful AWS DynamoDB library & functions", @@ -109,14 +109,6 @@ const dynamodb = new TypeScriptLibProject({ workspacePeerDeps: [dynamodbClient], }); -new TypeScriptLibProject({ - parent: project, - name: "lib-dynamodb", - description: "DEPRECATED Effectful AWS DynamoDB library", - devDeps: ["@aws-sdk/client-dynamodb@^3", "@aws-sdk/lib-dynamodb@^3"], - workspaceDeps: [dynamodb], -}); - const lambda = new TypeScriptLibProject({ parent: project, name: "lambda", diff --git a/packages/lib-dynamodb/.gitattributes b/packages/lib-dynamodb/.gitattributes deleted file mode 100644 index 44ee1f36..00000000 --- a/packages/lib-dynamodb/.gitattributes +++ /dev/null @@ -1,21 +0,0 @@ -# ~~ Generated by projen. To modify, edit .projenrc.js and run "npx projen". - -* text=auto eol=lf -/.gitattributes linguist-generated -/.gitignore linguist-generated -/.npmignore linguist-generated -/.npmrc linguist-generated -/.projen/** linguist-generated -/.projen/deps.json linguist-generated -/.projen/files.json linguist-generated -/.projen/tasks.json linguist-generated -/docgen.json linguist-generated -/LICENSE linguist-generated -/package.json linguist-generated -/pnpm-lock.yaml linguist-generated -/tsconfig.cjs.json linguist-generated -/tsconfig.dev.json linguist-generated -/tsconfig.esm.json linguist-generated -/tsconfig.json linguist-generated -/tsconfig.src.json linguist-generated -/vitest.config.ts linguist-generated \ No newline at end of file diff --git a/packages/lib-dynamodb/.gitignore b/packages/lib-dynamodb/.gitignore deleted file mode 100644 index 9b3e7285..00000000 --- a/packages/lib-dynamodb/.gitignore +++ /dev/null @@ -1,44 +0,0 @@ -# ~~ Generated by projen. To modify, edit .projenrc.js and run "npx projen". -!/.gitattributes -!/.projen/tasks.json -!/.projen/deps.json -!/.projen/files.json -!/package.json -!/LICENSE -!/.npmignore -logs -*.log -npm-debug.log* -yarn-debug.log* -yarn-error.log* -lerna-debug.log* -report.[0-9]*.[0-9]*.[0-9]*.[0-9]*.json -pids -*.pid -*.seed -*.pid.lock -lib-cov -coverage -*.lcov -.nyc_output -build/Release -node_modules/ -jspm_packages/ -*.tsbuildinfo -.eslintcache -*.tgz -.yarn-integrity -.cache -!/.npmrc -!/test/ -!/tsconfig.json -!/src/ -/build -/dist/ -!/tsconfig.src.json -!/tsconfig.dev.json -!/tsconfig.esm.json -!/tsconfig.cjs.json -!/docgen.json -docs/ -!/vitest.config.ts diff --git a/packages/lib-dynamodb/.npmignore b/packages/lib-dynamodb/.npmignore deleted file mode 100644 index fe4e41d6..00000000 --- a/packages/lib-dynamodb/.npmignore +++ /dev/null @@ -1,19 +0,0 @@ -# ~~ Generated by projen. To modify, edit .projenrc.js and run "npx projen". -/.projen/ -/test/ -/src/ -!/build/ -!/build/**/*.js -!/build/**/*.d.ts -dist -/tsconfig.json -/.github/ -/.vscode/ -/.idea/ -/.projenrc.js -tsconfig.tsbuildinfo -/tsconfig.src.json -/tsconfig.dev.json -/tsconfig.esm.json -/tsconfig.cjs.json -/.gitattributes diff --git a/packages/lib-dynamodb/.projen/deps.json b/packages/lib-dynamodb/.projen/deps.json deleted file mode 100644 index 23f513f1..00000000 --- a/packages/lib-dynamodb/.projen/deps.json +++ /dev/null @@ -1,30 +0,0 @@ -{ - "dependencies": [ - { - "name": "@aws-sdk/client-dynamodb", - "version": "^3", - "type": "build" - }, - { - "name": "@aws-sdk/lib-dynamodb", - "version": "^3", - "type": "build" - }, - { - "name": "@types/node", - "version": "ts5.4", - "type": "build" - }, - { - "name": "typescript", - "version": "^5.4.2", - "type": "build" - }, - { - "name": "@effect-aws/dynamodb", - "version": "workspace:^", - "type": "runtime" - } - ], - "//": "~~ Generated by projen. To modify, edit .projenrc.js and run \"npx projen\"." -} diff --git a/packages/lib-dynamodb/.projen/files.json b/packages/lib-dynamodb/.projen/files.json deleted file mode 100644 index e57ad5f8..00000000 --- a/packages/lib-dynamodb/.projen/files.json +++ /dev/null @@ -1,19 +0,0 @@ -{ - "files": [ - ".gitattributes", - ".gitignore", - ".npmignore", - ".projen/deps.json", - ".projen/files.json", - ".projen/tasks.json", - "docgen.json", - "LICENSE", - "tsconfig.cjs.json", - "tsconfig.dev.json", - "tsconfig.esm.json", - "tsconfig.json", - "tsconfig.src.json", - "vitest.config.ts" - ], - "//": "~~ Generated by projen. To modify, edit .projenrc.js and run \"npx projen\"." -} diff --git a/packages/lib-dynamodb/.projen/tasks.json b/packages/lib-dynamodb/.projen/tasks.json deleted file mode 100644 index ad983f13..00000000 --- a/packages/lib-dynamodb/.projen/tasks.json +++ /dev/null @@ -1,120 +0,0 @@ -{ - "tasks": { - "build": { - "name": "build", - "description": "Full release build", - "steps": [ - { - "spawn": "pre-compile" - }, - { - "spawn": "compile" - }, - { - "spawn": "post-compile" - }, - { - "spawn": "test" - }, - { - "spawn": "package" - } - ] - }, - "compile": { - "name": "compile", - "description": "Only compile", - "steps": [ - { - "exec": "tsc -b ./tsconfig.cjs.json ./tsconfig.esm.json" - } - ] - }, - "default": { - "name": "default", - "description": "Synthesize project files" - }, - "eslint": { - "name": "eslint", - "description": "Runs eslint against the codebase", - "steps": [ - { - "exec": "eslint $@ src test", - "receiveArgs": true - } - ] - }, - "install": { - "name": "install", - "description": "Install project dependencies and update lockfile (non-frozen)", - "steps": [ - { - "exec": "pnpm i --no-frozen-lockfile" - } - ] - }, - "install:ci": { - "name": "install:ci", - "description": "Install project dependencies using frozen lockfile", - "steps": [ - { - "exec": "pnpm i --frozen-lockfile" - } - ] - }, - "package": { - "name": "package", - "description": "Creates the distribution package", - "steps": [ - { - "exec": "build-utils pack-v2" - } - ] - }, - "post-compile": { - "name": "post-compile", - "description": "Runs after successful compilation" - }, - "pre-compile": { - "name": "pre-compile", - "description": "Prepare the project for compilation", - "steps": [ - { - "spawn": "eslint" - } - ] - }, - "test": { - "name": "test", - "description": "Run tests", - "steps": [ - { - "exec": "vitest run --reporter verbose", - "receiveArgs": true - } - ] - }, - "test:watch": { - "name": "test:watch", - "description": "Run tests in watch mode", - "steps": [ - { - "exec": "vitest --reporter verbose" - } - ] - }, - "watch": { - "name": "watch", - "description": "Watch & compile in the background", - "steps": [ - { - "exec": "tsc --build -w" - } - ] - } - }, - "env": { - "PATH": "$(pnpm -c exec \"node --print process.env.PATH\")" - }, - "//": "~~ Generated by projen. To modify, edit .projenrc.js and run \"npx projen\"." -} diff --git a/packages/lib-dynamodb/CHANGELOG.md b/packages/lib-dynamodb/CHANGELOG.md deleted file mode 100644 index 49bec9f3..00000000 --- a/packages/lib-dynamodb/CHANGELOG.md +++ /dev/null @@ -1,271 +0,0 @@ -# @effect-aws/lib-dynamodb - -## 1.10.5 - -### Patch Changes - -- Updated dependencies [[`126967b`](https://github.com/floydspace/effect-aws/commit/126967b668fae2c109425ee66bf28b5145f42100)]: - - @effect-aws/dynamodb@1.0.1 - -## 1.10.4 - -### Patch Changes - -- [#171](https://github.com/floydspace/effect-aws/pull/171) [`780342f`](https://github.com/floydspace/effect-aws/commit/780342f09d99b547fcf9d409bdf7bdca57f9320a) Thanks [@floydspace](https://github.com/floydspace)! - Implement `dynamodb` package in favour of `lib-dynamodb` for consistency - - `lib-dynamodb` re-exports the `dynamodb` package, so this change is not breaking. - - `dynamodb` package additionally provides DynamoDBStore datatype: - - ```ts - import { DynamoDBDocumentService, DynamoDBStore } from "@effect-aws/dynamodb"; - import { Effect } from "effect"; - - const program = DynamoDBStore.scan({}); - - program.pipe( - Effect.provide(DynamoDBStore.layer({ tableName: "my-table" })), - Effect.provide(DynamoDBDocumentService.defaultLayer), - Effect.runPromise, - ); - ``` - - provides simpler API for operating with DynamoDB as a single store. - -- Updated dependencies [[`780342f`](https://github.com/floydspace/effect-aws/commit/780342f09d99b547fcf9d409bdf7bdca57f9320a)]: - - @effect-aws/dynamodb@1.0.0 - -## 1.10.3 - -### Patch Changes - -- [#165](https://github.com/floydspace/effect-aws/pull/165) [`192aad7`](https://github.com/floydspace/effect-aws/commit/192aad72a154951e5814f12cae90cc3d1b63621c) Thanks [@floydspace](https://github.com/floydspace)! - expose service shape type as alternative of inferring it with Context.Tag.Service - -- Updated dependencies [[`192aad7`](https://github.com/floydspace/effect-aws/commit/192aad72a154951e5814f12cae90cc3d1b63621c)]: - - @effect-aws/client-dynamodb@1.10.3 - -## 1.10.2 - -### Patch Changes - -- [#162](https://github.com/floydspace/effect-aws/pull/162) [`bccec21`](https://github.com/floydspace/effect-aws/commit/bccec2132338db2c04444baf249c48efbb42e80e) Thanks [@floydspace](https://github.com/floydspace)! - Fix "cannot be named without a reference" error - -- Updated dependencies [[`bccec21`](https://github.com/floydspace/effect-aws/commit/bccec2132338db2c04444baf249c48efbb42e80e)]: - - @effect-aws/client-dynamodb@1.10.2 - -## 1.10.0 - -### Minor Changes - -- [#150](https://github.com/floydspace/effect-aws/pull/150) [`6215146`](https://github.com/floydspace/effect-aws/commit/62151460cb125298b24375a4c69dcf8d562148f8) Thanks [@floydspace](https://github.com/floydspace)! - add expected Cause.TimeoutException in error channel to all the methods - -### Patch Changes - -- Updated dependencies [[`6215146`](https://github.com/floydspace/effect-aws/commit/62151460cb125298b24375a4c69dcf8d562148f8), [`6215146`](https://github.com/floydspace/effect-aws/commit/62151460cb125298b24375a4c69dcf8d562148f8)]: - - @effect-aws/client-dynamodb@1.10.0 - - @effect-aws/commons@0.3.0 - -## 1.9.5 - -### Patch Changes - -- Updated dependencies [[`2bc82e9`](https://github.com/floydspace/effect-aws/commit/2bc82e9ae2e5b0ca423d0adce578b16ca4ea024a)]: - - @effect-aws/commons@0.2.1 - - @effect-aws/client-dynamodb@1.9.5 - -## 1.9.3 - -### Patch Changes - -- [#117](https://github.com/floydspace/effect-aws/pull/117) [`6989a08`](https://github.com/floydspace/effect-aws/commit/6989a08df041108ad3a2b08272647a20f1a5d662) Thanks [@floydspace](https://github.com/floydspace)! - fix service logger, so it respect loglevel configuration within current scope - - For example this snipped produced following output Before/After - - ```typescript - import { S3 } from "@effect-aws/client-s3"; - import { Effect, Logger, LogLevel } from "effect"; - - S3.listBuckets({}).pipe( - Logger.withMinimumLogLevel(LogLevel.Warning), - Effect.tap(() => Effect.logInfo("Done")), - Effect.provide(Logger.structured), - Effect.provide(S3.layer({ logger: true })), - Effect.runPromise, - ); - ``` - - Before - - ```log - timestamp=2025-03-12T22:49:37.007Z level=INFO fiber=#5 message="{ - \"clientName\": \"S3Client\", - \"commandName\": \"ListBucketsCommand\", - \"input\": {}, - \"output\": { - \"Buckets\": [], - \"Owner\": { - \"ID\": \"\" - } - }, - \"metadata\": { - \"httpStatusCode\": 200, - \"requestId\": \"\", - \"extendedRequestId\": \"\", - \"attempts\": 1, - \"totalRetryDelay\": 0 - } - }" - { - message: 'Done', - logLevel: 'INFO', - timestamp: '2025-03-12T22:49:37.009Z', - cause: undefined, - annotations: {}, - spans: {}, - fiberId: '#0' - } - ``` - - After - - ```log - { - message: 'Done', - logLevel: 'INFO', - timestamp: '2025-03-12T22:51:13.799Z', - cause: undefined, - annotations: {}, - spans: {}, - fiberId: '#0' - } - ``` - - closes #92 - -- Updated dependencies [[`6989a08`](https://github.com/floydspace/effect-aws/commit/6989a08df041108ad3a2b08272647a20f1a5d662)]: - - @effect-aws/commons@0.2.0 - - @effect-aws/client-dynamodb@1.9.3 - -## 1.9.0 - -### Minor Changes - -- [#106](https://github.com/floydspace/effect-aws/pull/106) [`e07e3c0`](https://github.com/floydspace/effect-aws/commit/e07e3c0d8e9e03650e1fd443b1c5a6bdc14baa3f) Thanks [@floydspace](https://github.com/floydspace)! - ## Refactored service configuration and layer management - - Since this version the effectful logger is not added into native AWS client constructor. Providing logger by default causes risk of logging sensitive information. The logger should be added explicitly by the choice of a user. It can be done by using extended `logger` option: - - ```ts - import { DynamoDB } from "@effect-aws/client-dynamodb"; - - // using default logger - DynamoDB.layer({ logger: true }); - - // or using custom logger (the same as default) - DynamoDB.layer({ - logger: { - trace: Effect.logTrace, - debug: Effect.logDebug, - info: Effect.logInfo, - warn: Effect.logWarning, - error: Effect.logError, - }, - }); - - // and you could remap logger methods as you want - DynamoDB.layer({ - logger: { - debug: Effect.logDebug, - info: Effect.logDebug, - warn: Effect.logWarning, - error: Effect.logError, - }, - }); - ``` - - Additionally to that, the whole service configuration was refactored in better way, now it is not a strict layer dependency, but the global value which defaults to empty object. The global value can be configured by using the effect higher order function or the layer setter. - - ```ts - import { DynamoDBServiceConfig } from "@effect-aws/client-dynamodb"; - - // using effect higher order function - DynamoDBServiceConfig.withDynamoDBServiceConfig({ logger: true }); - - // or using layer setter - Layer.provide( - DynamoDBServiceConfig.setDynamoDBServiceConfig({ logger: true }), - ); - ``` - - ### Breaking changes - - This release is not a breaking change if you just use service methods and service layer, which in most cases should be the case. - - If you had to use custom configuration, you should update your code to use new configuration methods. - -### Patch Changes - -- [#106](https://github.com/floydspace/effect-aws/pull/106) [`e07e3c0`](https://github.com/floydspace/effect-aws/commit/e07e3c0d8e9e03650e1fd443b1c5a6bdc14baa3f) Thanks [@floydspace](https://github.com/floydspace)! - drop support for effect version lower than 3.0.4 - -- Updated dependencies [[`e07e3c0`](https://github.com/floydspace/effect-aws/commit/e07e3c0d8e9e03650e1fd443b1c5a6bdc14baa3f), [`e07e3c0`](https://github.com/floydspace/effect-aws/commit/e07e3c0d8e9e03650e1fd443b1c5a6bdc14baa3f), [`e07e3c0`](https://github.com/floydspace/effect-aws/commit/e07e3c0d8e9e03650e1fd443b1c5a6bdc14baa3f)]: - - @effect-aws/client-dynamodb@1.9.0 - - @effect-aws/commons@0.1.0 - -## 1.4.1 - -### Patch Changes - -- [#93](https://github.com/floydspace/effect-aws/pull/93) [`a96fbd8`](https://github.com/floydspace/effect-aws/commit/a96fbd8840a7a6cfb795a2a6ab96aa32d32a3525) Thanks [@godu](https://github.com/godu)! - Destroy client after layer lifecycle to release idle connections. - -## 1.4.0 - -### Minor Changes - -- [`cc97eae`](https://github.com/floydspace/effect-aws/commit/cc97eaed1f8df72b8e7fde05069e8ce8eaac578f) Thanks [@floydspace](https://github.com/floydspace)! - simplify layers configuration (closes #78) - -## 1.3.1 - -### Patch Changes - -- [#75](https://github.com/floydspace/effect-aws/pull/75) [`9dc170d`](https://github.com/floydspace/effect-aws/commit/9dc170d975c04888bbc7ca7b241b4b5265668fb5) Thanks [@godu](https://github.com/godu)! - export the HttpHandlerOptions type - -## 1.3.0 - -### Minor Changes - -- [`e540420`](https://github.com/floydspace/effect-aws/commit/e5404208c2438e1e1546637a8edbbdc1c9468850) Thanks [@floydspace](https://github.com/floydspace)! - integrate aws-sdk abort signal with effect interruption - -## 1.2.0 - -### Minor Changes - -- [`0cfcda0`](https://github.com/floydspace/effect-aws/commit/0cfcda0d5617916d966807f5d5120df9ba461c12) Thanks [@floydspace](https://github.com/floydspace)! - upgrade effect to v3 - -## 1.1.1 - -### Patch Changes - -- [`b2f00db`](https://github.com/floydspace/effect-aws/commit/b2f00db5fdffaa74bcb124324db7313bd4f218df) Thanks [@floydspace](https://github.com/floydspace)! - update effect peer version - -## 1.1.0 - -### Minor Changes - -- [`82eaea7`](https://github.com/floydspace/effect-aws/commit/82eaea778048c9ebba98682196448b0aa1586d2e) Thanks [@floydspace](https://github.com/floydspace)! - upgrade effect to v2.3 and fix breaking changes - -## 1.0.2 - -### Patch Changes - -- [`88676ae`](https://github.com/floydspace/effect-aws/commit/88676ae3a5f7fa514cab58ba83a50a0774be1aa1) Thanks [@floydspace](https://github.com/floydspace)! - use effect@~2.2 as maximum allowed peer version - -## 1.0.1 - -### Patch Changes - -- [#29](https://github.com/floydspace/effect-aws/pull/29) [`4b6c521`](https://github.com/floydspace/effect-aws/commit/4b6c521206c8ff76ff878938f6b90ee474cc8da2) Thanks [@godu](https://github.com/godu)! - improve tree shaking by using sideEffects flag - -## 1.0.0 - -### Major Changes - -- [#26](https://github.com/floydspace/effect-aws/pull/26) [`511c0a7`](https://github.com/floydspace/effect-aws/commit/511c0a7e6ce788e2f8e87b51e57b2cd38c1eec06) Thanks [@godu](https://github.com/godu)! - implement effectful dynamodb document client diff --git a/packages/lib-dynamodb/LICENSE b/packages/lib-dynamodb/LICENSE deleted file mode 100644 index dc1bf0b6..00000000 --- a/packages/lib-dynamodb/LICENSE +++ /dev/null @@ -1,19 +0,0 @@ -Copyright (c) 2026 Victor Korzunin - -Permission is hereby granted, free of charge, to any person obtaining a copy -of this software and associated documentation files (the "Software"), to deal -in the Software without restriction, including without limitation the rights -to use, copy, modify, merge, publish, distribute, sublicense, and/or sell -copies of the Software, and to permit persons to whom the Software is -furnished to do so, subject to the following conditions: - -The above copyright notice and this permission notice shall be included in all -copies or substantial portions of the Software. - -THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR -IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, -FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE -AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER -LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, -OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE -SOFTWARE. diff --git a/packages/lib-dynamodb/README.md b/packages/lib-dynamodb/README.md deleted file mode 100644 index 8efc4ab1..00000000 --- a/packages/lib-dynamodb/README.md +++ /dev/null @@ -1,65 +0,0 @@ -# @effect-aws/lib-dynamodb - -[![npm version](https://img.shields.io/npm/v/%40effect-aws%2Flib-dynamodb?color=brightgreen&label=npm%20package)](https://www.npmjs.com/package/@effect-aws/lib-dynamodb) -[![npm downloads](https://img.shields.io/npm/dm/%40effect-aws%2Flib-dynamodb)](https://www.npmjs.com/package/@effect-aws/lib-dynamodb) - -## Installation - -```bash -npm install --save @effect-aws/lib-dynamodb -``` - -## Usage - -With default DynamoDBClient instance: - -```typescript -import { DynamoDBDocument } from "@effect-aws/lib-dynamodb" - -const program = DynamoDBDocument.put(args) - -const result = pipe( - program, - Effect.provide(DynamoDBDocument.defaultLayer), - Effect.runPromise -) -``` - -With custom DynamoDBClient instance: - -```typescript -import { DynamoDBDocument } from "@effect-aws/lib-dynamodb" - -const program = DynamoDBDocument.put(args) - -const result = await pipe( - program, - Effect.provide( - DynamoDBDocumentClient.from( - new DynamoDBClient({ region: "eu-central-1" }), - { marshallOptions: { removeUndefinedValues: true } } - ) - ), - Effect.runPromise -) -``` - -With custom DynamoDBClient configuration: - -```typescript -import { DynamoDBDocument } from "@effect-aws/lib-dynamodb" - -const program = DynamoDBDocument.put(args) - -const result = await pipe( - program, - Effect.provide( - DynamoDBDocument.layer({ - marshallOptions: { removeUndefinedValues: true } - }) - ), - Effect.runPromiseExit -) -``` - -or use `DynamoDBDocument.baseLayer((default) => DynamoDBDocumentClient.from(new DynamoDBClient({ ...default, region: "eu-central-1" }), { marshallOptions: { removeUndefinedValues: true } }))` diff --git a/packages/lib-dynamodb/docgen.json b/packages/lib-dynamodb/docgen.json deleted file mode 100644 index cc12dbc6..00000000 --- a/packages/lib-dynamodb/docgen.json +++ /dev/null @@ -1,8 +0,0 @@ -{ - "$schema": "../../node_modules/@effect/docgen/schema.json", - "exclude": [ - "src/internal/**/*.ts", - "src/Errors.ts" - ], - "//": "~~ Generated by projen. To modify, edit .projenrc.js and run \"npx projen\"." -} diff --git a/packages/lib-dynamodb/package.json b/packages/lib-dynamodb/package.json deleted file mode 100644 index e0bc1483..00000000 --- a/packages/lib-dynamodb/package.json +++ /dev/null @@ -1,49 +0,0 @@ -{ - "name": "@effect-aws/lib-dynamodb", - "description": "DEPRECATED Effectful AWS DynamoDB library", - "repository": { - "type": "git", - "url": "github:floydspace/effect-aws", - "directory": "packages/lib-dynamodb" - }, - "scripts": { - "build": "npx projen build", - "compile": "npx projen compile", - "default": "npx projen default", - "eslint": "npx projen eslint", - "package": "npx projen package", - "post-compile": "npx projen post-compile", - "pre-compile": "npx projen pre-compile", - "test": "npx projen test", - "test:watch": "npx projen test:watch", - "watch": "npx projen watch", - "docgen": "docgen" - }, - "author": { - "name": "Victor Korzunin", - "email": "ifloydrose@gmail.com", - "organization": false - }, - "devDependencies": { - "@aws-sdk/client-dynamodb": "^3", - "@aws-sdk/lib-dynamodb": "^3", - "@types/node": "ts5.4", - "typescript": "^5.4.2" - }, - "dependencies": { - "@effect-aws/dynamodb": "workspace:^" - }, - "main": "build/cjs/index.js", - "license": "MIT", - "homepage": "https://floydspace.github.io/effect-aws/docs/lib-dynamodb", - "publishConfig": { - "access": "public", - "directory": "dist" - }, - "version": "1.10.5", - "types": "build/dts/index.d.ts", - "type": "module", - "module": "build/esm/index.js", - "sideEffects": [], - "//": "~~ Generated by projen. To modify, edit .projenrc.js and run \"npx projen\"." -} diff --git a/packages/lib-dynamodb/src/index.ts b/packages/lib-dynamodb/src/index.ts deleted file mode 100644 index c025b183..00000000 --- a/packages/lib-dynamodb/src/index.ts +++ /dev/null @@ -1,28 +0,0 @@ -/** - * Re-exporting everything except the `DynamoDBStore` from the `@effect-aws/dynamodb` package - * for backward compatibility. - * - * @since 1.0.0 - */ -export { - /** - * @since 1.0.0 - */ - DynamoDBDocument, - /** - * @since 1.0.0 - */ - DynamoDBDocumentClientInstance, - /** - * @since 1.0.0 - */ - DynamoDBDocumentService, - /** - * @since 1.0.0 - */ - DynamoDBDocumentServiceConfig, - /** - * @since 1.0.0 - */ - makeDynamoDBDocumentService, -} from "@effect-aws/dynamodb"; diff --git a/packages/lib-dynamodb/test/index.test.ts b/packages/lib-dynamodb/test/index.test.ts deleted file mode 100644 index d0fa2d47..00000000 --- a/packages/lib-dynamodb/test/index.test.ts +++ /dev/null @@ -1,170 +0,0 @@ -import { DynamoDBClient } from "@aws-sdk/client-dynamodb"; -// @ts-ignore -import * as runtimeConfig from "@aws-sdk/client-dynamodb/dist-cjs/runtimeConfig"; -import { DynamoDBDocumentClient, PutCommand, type PutCommandInput } from "@aws-sdk/lib-dynamodb"; -import { DynamoDBServiceConfig } from "@effect-aws/client-dynamodb"; -import { SdkError } from "@effect-aws/commons"; -import { DynamoDBDocument } from "@effect-aws/lib-dynamodb"; -import { mockClient } from "aws-sdk-client-mock"; -import * as Effect from "effect/Effect"; -import * as Exit from "effect/Exit"; -import { pipe } from "effect/Function"; -import { afterEach, describe, expect, it, vi } from "vitest"; - -const getRuntimeConfig = vi.spyOn(runtimeConfig, "getRuntimeConfig"); -const clientMock = mockClient(DynamoDBDocumentClient); - -describe("DynamoDBDocumentClientImpl", () => { - afterEach(() => { - getRuntimeConfig.mockClear(); - }); - - it("default", async () => { - clientMock.reset().on(PutCommand).resolves({}); - - const args: PutCommandInput = { - TableName: "test", - Item: { testAttr: "test" }, - }; - - const program = DynamoDBDocument.put(args); - - const result = await pipe( - program, - Effect.provide(DynamoDBDocument.defaultLayer), - Effect.runPromiseExit, - ); - - expect(result).toEqual(Exit.succeed({})); - expect(getRuntimeConfig).toHaveBeenCalledTimes(1); - expect(getRuntimeConfig).toHaveBeenCalledWith({}); - expect(clientMock).toHaveReceivedCommandTimes(PutCommand, 1); - expect(clientMock).toHaveReceivedCommandWith(PutCommand, args); - }); - - it("configurable", async () => { - clientMock.reset().on(PutCommand).resolves({}); - - const args: PutCommandInput = { - TableName: "test", - Item: { testAttr: "test" }, - }; - - const program = DynamoDBDocument.put(args); - - const result = await pipe( - program, - Effect.provide( - DynamoDBDocument.layer({ - marshallOptions: { removeUndefinedValues: true }, - }), - ), - DynamoDBServiceConfig.withDynamoDBServiceConfig({ logger: true }), - Effect.runPromiseExit, - ); - - expect(result).toEqual(Exit.succeed({})); - expect(getRuntimeConfig).toHaveBeenCalledTimes(1); - expect(getRuntimeConfig).toHaveBeenCalledWith({ - logger: expect.any(Object), - }); - expect(clientMock).toHaveReceivedCommandTimes(PutCommand, 1); - expect(clientMock).toHaveReceivedCommandWith(PutCommand, args); - }); - - it("base", async () => { - clientMock.reset().on(PutCommand).resolves({}); - - const args: PutCommandInput = { - TableName: "test", - Item: { testAttr: "test" }, - }; - - const program = DynamoDBDocument.put(args); - - const result = await pipe( - program, - Effect.provide( - DynamoDBDocument.baseLayer(() => - DynamoDBDocumentClient.from( - new DynamoDBClient({ region: "eu-central-1" }), - { marshallOptions: { removeUndefinedValues: true } }, - ) - ), - ), - Effect.runPromiseExit, - ); - - expect(result).toEqual(Exit.succeed({})); - expect(getRuntimeConfig).toHaveBeenCalledTimes(1); - expect(getRuntimeConfig).toHaveBeenCalledWith({ - region: "eu-central-1", - }); - expect(clientMock).toHaveReceivedCommandTimes(PutCommand, 1); - expect(clientMock).toHaveReceivedCommandWith(PutCommand, args); - }); - - it("extended", async () => { - clientMock.reset().on(PutCommand).resolves({}); - - const args: PutCommandInput = { - TableName: "test", - Item: { testAttr: "test" }, - }; - - const program = DynamoDBDocument.put(args); - - const result = await pipe( - program, - Effect.provide( - DynamoDBDocument.baseLayer((config) => - DynamoDBDocumentClient.from( - new DynamoDBClient({ ...config, region: "eu-central-1" }), - { marshallOptions: { removeUndefinedValues: true } }, - ) - ), - ), - DynamoDBServiceConfig.withDynamoDBServiceConfig({ logger: true }), - Effect.runPromiseExit, - ); - - expect(result).toEqual(Exit.succeed({})); - expect(getRuntimeConfig).toHaveBeenCalledTimes(1); - expect(getRuntimeConfig).toHaveBeenCalledWith({ - region: "eu-central-1", - logger: expect.any(Object), - }); - expect(clientMock).toHaveReceivedCommandTimes(PutCommand, 1); - expect(clientMock).toHaveReceivedCommandWith(PutCommand, args); - }); - - it("fail", async () => { - clientMock.reset().on(PutCommand).rejects(new Error("test")); - - const args: PutCommandInput = { - TableName: "test", - Item: { testAttr: "test" }, - }; - - const program = DynamoDBDocument.put(args, { requestTimeout: 1000 }); - - const result = await pipe( - program, - Effect.provide(DynamoDBDocument.defaultLayer), - Effect.runPromiseExit, - ); - - expect(result).toEqual( - Exit.fail( - SdkError({ - ...new Error("test"), - name: "SdkError", - message: "test", - stack: expect.any(String), - }), - ), - ); - expect(clientMock).toHaveReceivedCommandTimes(PutCommand, 1); - expect(clientMock).toHaveReceivedCommandWith(PutCommand, args); - }); -}); diff --git a/packages/lib-dynamodb/tsconfig.cjs.json b/packages/lib-dynamodb/tsconfig.cjs.json deleted file mode 100644 index ae890e99..00000000 --- a/packages/lib-dynamodb/tsconfig.cjs.json +++ /dev/null @@ -1,15 +0,0 @@ -// ~~ Generated by projen. To modify, edit .projenrc.js and run "npx projen". -{ - "extends": "./tsconfig.src.json", - "compilerOptions": { - "tsBuildInfoFile": ".tsbuildinfo/cjs.tsbuildinfo", - "outDir": "build/cjs", - "moduleResolution": "node", - "module": "CommonJS" - }, - "references": [ - { - "path": "../dynamodb/tsconfig.cjs.json" - } - ] -} diff --git a/packages/lib-dynamodb/tsconfig.dev.json b/packages/lib-dynamodb/tsconfig.dev.json deleted file mode 100644 index 517b7405..00000000 --- a/packages/lib-dynamodb/tsconfig.dev.json +++ /dev/null @@ -1,23 +0,0 @@ -// ~~ Generated by projen. To modify, edit .projenrc.js and run "npx projen". -{ - "extends": "../../tsconfig.base.json", - "compilerOptions": { - "tsBuildInfoFile": ".tsbuildinfo/test.tsbuildinfo", - "noEmit": true, - "rootDir": "test", - "types": [ - "../../vitest.d.ts" - ] - }, - "include": [ - "test" - ], - "references": [ - { - "path": "tsconfig.src.json" - }, - { - "path": "../dynamodb" - } - ] -} diff --git a/packages/lib-dynamodb/tsconfig.esm.json b/packages/lib-dynamodb/tsconfig.esm.json deleted file mode 100644 index d39d6719..00000000 --- a/packages/lib-dynamodb/tsconfig.esm.json +++ /dev/null @@ -1,15 +0,0 @@ -// ~~ Generated by projen. To modify, edit .projenrc.js and run "npx projen". -{ - "extends": "./tsconfig.src.json", - "compilerOptions": { - "tsBuildInfoFile": ".tsbuildinfo/esm.tsbuildinfo", - "outDir": "build/esm", - "declarationDir": "build/dts", - "stripInternal": true - }, - "references": [ - { - "path": "../dynamodb/tsconfig.esm.json" - } - ] -} diff --git a/packages/lib-dynamodb/tsconfig.json b/packages/lib-dynamodb/tsconfig.json deleted file mode 100644 index c1c93439..00000000 --- a/packages/lib-dynamodb/tsconfig.json +++ /dev/null @@ -1,13 +0,0 @@ -// ~~ Generated by projen. To modify, edit .projenrc.js and run "npx projen". -{ - "extends": "../../tsconfig.base.json", - "include": [], - "references": [ - { - "path": "tsconfig.src.json" - }, - { - "path": "tsconfig.dev.json" - } - ] -} diff --git a/packages/lib-dynamodb/tsconfig.src.json b/packages/lib-dynamodb/tsconfig.src.json deleted file mode 100644 index 08ad6829..00000000 --- a/packages/lib-dynamodb/tsconfig.src.json +++ /dev/null @@ -1,17 +0,0 @@ -// ~~ Generated by projen. To modify, edit .projenrc.js and run "npx projen". -{ - "extends": "../../tsconfig.base.json", - "compilerOptions": { - "tsBuildInfoFile": ".tsbuildinfo/src.tsbuildinfo", - "outDir": "build/src", - "rootDir": "src" - }, - "include": [ - "src" - ], - "references": [ - { - "path": "../dynamodb" - } - ] -} diff --git a/packages/lib-dynamodb/vitest.config.ts b/packages/lib-dynamodb/vitest.config.ts deleted file mode 100644 index 2cf045fa..00000000 --- a/packages/lib-dynamodb/vitest.config.ts +++ /dev/null @@ -1,6 +0,0 @@ -import { mergeConfig, type UserConfigExport } from "vitest/config"; -import configShared from "../../vitest.shared.js"; - -const config: UserConfigExport = {}; - -export default mergeConfig(configShared, config); diff --git a/pnpm-workspace.yaml b/pnpm-workspace.yaml index d5ac0ebb..77fb7af1 100644 --- a/pnpm-workspace.yaml +++ b/pnpm-workspace.yaml @@ -63,7 +63,6 @@ packages: - packages/dynamodb - packages/http-handler - packages/lambda - - packages/lib-dynamodb - packages/powertools-logger - packages/powertools-tracer - packages/s3 diff --git a/tsconfig.base.json b/tsconfig.base.json index 71e70501..8f5b59c8 100644 --- a/tsconfig.base.json +++ b/tsconfig.base.json @@ -579,15 +579,6 @@ "@effect-aws/dynamodb/test/*": [ "./packages/dynamodb/test/*.js" ], - "@effect-aws/lib-dynamodb": [ - "./packages/lib-dynamodb/src/index.js" - ], - "@effect-aws/lib-dynamodb/*": [ - "./packages/lib-dynamodb/src/*.js" - ], - "@effect-aws/lib-dynamodb/test/*": [ - "./packages/lib-dynamodb/test/*.js" - ], "@effect-aws/lambda": [ "./packages/lambda/src/index.js" ], diff --git a/tsconfig.build.json b/tsconfig.build.json index a459c723..0ef6bbcc 100644 --- a/tsconfig.build.json +++ b/tsconfig.build.json @@ -180,9 +180,6 @@ { "path": "packages/dynamodb/tsconfig.esm.json" }, - { - "path": "packages/lib-dynamodb/tsconfig.esm.json" - }, { "path": "packages/lambda/tsconfig.esm.json" }, diff --git a/tsconfig.json b/tsconfig.json index 7f547162..8328126c 100644 --- a/tsconfig.json +++ b/tsconfig.json @@ -185,9 +185,6 @@ { "path": "packages/dynamodb" }, - { - "path": "packages/lib-dynamodb" - }, { "path": "packages/lambda" }, diff --git a/vitest.shared.ts b/vitest.shared.ts index c7aa5e64..f8152c00 100644 --- a/vitest.shared.ts +++ b/vitest.shared.ts @@ -77,7 +77,6 @@ const config: UserConfig = { ...alias("client-kafka"), ...alias("client-kafkaconnect"), ...alias("dynamodb"), - ...alias("lib-dynamodb"), ...alias("lambda"), ...alias("powertools-logger"), ...alias("powertools-tracer"), From c53e60e9a4aa19c5a36d87537110329708fc8851 Mon Sep 17 00:00:00 2001 From: Victor Korzunin <5180700+floydspace@users.noreply.github.com> Date: Sat, 21 Feb 2026 06:47:34 +0100 Subject: [PATCH 4/7] feat: WIP migrate to effect 4 --- .changeset/config.json | 3 - .changeset/pre.json | 74 + .changeset/sour-parents-clean.md | 66 + .projen/deps.json | 11 +- .projenrc.ts | 21 +- package.json | 8 +- packages/client-account/.projen/deps.json | 3 +- packages/client-account/README.md | 6 +- packages/client-account/package.json | 4 +- .../src/AccountClientInstance.ts | 8 +- packages/client-account/src/AccountService.ts | 36 +- .../src/AccountServiceConfig.ts | 13 +- packages/client-account/test/Account.test.ts | 18 +- .../.projen/deps.json | 3 +- .../README.md | 6 +- .../package.json | 4 +- .../ApiGatewayManagementApiClientInstance.ts | 12 +- .../src/ApiGatewayManagementApiService.ts | 18 +- .../ApiGatewayManagementApiServiceConfig.ts | 13 +- .../test/ApiGatewayManagementApi.test.ts | 18 +- .../client-api-gateway-v2/.projen/deps.json | 3 +- packages/client-api-gateway-v2/README.md | 6 +- packages/client-api-gateway-v2/package.json | 4 +- .../src/ApiGatewayV2ClientInstance.ts | 8 +- .../src/ApiGatewayV2Service.ts | 212 +- .../src/ApiGatewayV2ServiceConfig.ts | 13 +- .../test/ApiGatewayV2.test.ts | 18 +- packages/client-api-gateway/.projen/deps.json | 3 +- packages/client-api-gateway/README.md | 6 +- packages/client-api-gateway/package.json | 4 +- .../src/APIGatewayClientInstance.ts | 8 +- .../src/APIGatewayService.ts | 254 +- .../src/APIGatewayServiceConfig.ts | 13 +- .../test/APIGateway.test.ts | 18 +- packages/client-athena/.projen/deps.json | 3 +- packages/client-athena/README.md | 6 +- packages/client-athena/package.json | 4 +- .../client-athena/src/AthenaClientInstance.ts | 8 +- packages/client-athena/src/AthenaService.ts | 146 +- .../client-athena/src/AthenaServiceConfig.ts | 13 +- packages/client-athena/test/Athena.test.ts | 18 +- .../client-auto-scaling/.projen/deps.json | 3 +- packages/client-auto-scaling/README.md | 6 +- packages/client-auto-scaling/package.json | 4 +- .../src/AutoScalingClientInstance.ts | 8 +- .../src/AutoScalingService.ts | 138 +- .../src/AutoScalingServiceConfig.ts | 13 +- .../test/AutoScaling.test.ts | 18 +- .../client-bedrock-runtime/.projen/deps.json | 3 +- packages/client-bedrock-runtime/README.md | 6 +- packages/client-bedrock-runtime/package.json | 4 +- .../src/BedrockRuntimeClientInstance.ts | 12 +- .../src/BedrockRuntimeService.ts | 26 +- .../src/BedrockRuntimeServiceConfig.ts | 13 +- .../test/BedrockRuntime.test.ts | 18 +- packages/client-bedrock/.projen/deps.json | 3 +- packages/client-bedrock/README.md | 6 +- packages/client-bedrock/package.json | 4 +- .../src/BedrockClientInstance.ts | 8 +- packages/client-bedrock/src/BedrockService.ts | 207 +- .../src/BedrockServiceConfig.ts | 13 +- packages/client-bedrock/test/Bedrock.test.ts | 18 +- .../client-cloudformation/.projen/deps.json | 3 +- packages/client-cloudformation/README.md | 6 +- packages/client-cloudformation/package.json | 4 +- .../src/CloudFormationClientInstance.ts | 12 +- .../src/CloudFormationService.ts | 186 +- .../src/CloudFormationServiceConfig.ts | 13 +- .../test/CloudFormation.test.ts | 18 +- packages/client-cloudsearch/.projen/deps.json | 3 +- packages/client-cloudsearch/README.md | 6 +- packages/client-cloudsearch/package.json | 4 +- .../src/CloudSearchClientInstance.ts | 8 +- .../src/CloudSearchService.ts | 58 +- .../src/CloudSearchServiceConfig.ts | 13 +- .../test/CloudSearch.test.ts | 18 +- packages/client-cloudtrail/.projen/deps.json | 3 +- packages/client-cloudtrail/README.md | 6 +- packages/client-cloudtrail/package.json | 4 +- .../src/CloudTrailClientInstance.ts | 8 +- .../src/CloudTrailService.ts | 126 +- .../src/CloudTrailServiceConfig.ts | 13 +- .../client-cloudtrail/test/CloudTrail.test.ts | 18 +- .../.projen/deps.json | 3 +- packages/client-cloudwatch-events/README.md | 6 +- .../client-cloudwatch-events/package.json | 4 +- .../src/CloudWatchEventsClientInstance.ts | 12 +- .../src/CloudWatchEventsService.ts | 108 +- .../src/CloudWatchEventsServiceConfig.ts | 13 +- .../test/CloudWatchEvents.test.ts | 18 +- .../client-cloudwatch-logs/.projen/deps.json | 3 +- packages/client-cloudwatch-logs/README.md | 6 +- packages/client-cloudwatch-logs/package.json | 4 +- .../src/CloudWatchLogsClientInstance.ts | 12 +- .../src/CloudWatchLogsService.ts | 235 +- .../src/CloudWatchLogsServiceConfig.ts | 13 +- .../test/CloudWatchLogs.test.ts | 18 +- packages/client-cloudwatch/.projen/deps.json | 3 +- packages/client-cloudwatch/README.md | 6 +- packages/client-cloudwatch/package.json | 4 +- .../src/CloudWatchClientInstance.ts | 8 +- .../src/CloudWatchService.ts | 88 +- .../src/CloudWatchServiceConfig.ts | 13 +- .../client-cloudwatch/test/CloudWatch.test.ts | 18 +- packages/client-codedeploy/.projen/deps.json | 3 +- packages/client-codedeploy/README.md | 6 +- packages/client-codedeploy/package.json | 4 +- .../src/CodeDeployClientInstance.ts | 8 +- .../src/CodeDeployService.ts | 108 +- .../src/CodeDeployServiceConfig.ts | 13 +- .../client-codedeploy/test/CodeDeploy.test.ts | 18 +- .../.projen/deps.json | 3 +- .../README.md | 6 +- .../package.json | 4 +- .../CognitoIdentityProviderClientInstance.ts | 12 +- .../src/CognitoIdentityProviderService.ts | 260 +- .../CognitoIdentityProviderServiceConfig.ts | 13 +- .../test/CognitoIdentityProvider.test.ts | 18 +- .../client-data-pipeline/.projen/deps.json | 3 +- packages/client-data-pipeline/README.md | 6 +- packages/client-data-pipeline/package.json | 4 +- .../src/DataPipelineClientInstance.ts | 8 +- .../src/DataPipelineService.ts | 44 +- .../src/DataPipelineServiceConfig.ts | 13 +- .../test/DataPipeline.test.ts | 18 +- packages/client-dsql/.projen/deps.json | 3 +- packages/client-dsql/README.md | 6 +- packages/client-dsql/package.json | 4 +- .../client-dsql/src/DSQLClientInstance.ts | 8 +- packages/client-dsql/src/DSQLService.ts | 30 +- packages/client-dsql/src/DSQLServiceConfig.ts | 14 +- packages/client-dsql/test/DSQL.test.ts | 18 +- packages/client-dynamodb/.projen/deps.json | 3 +- packages/client-dynamodb/README.md | 6 +- packages/client-dynamodb/package.json | 4 +- .../src/DynamoDBClientInstance.ts | 8 +- .../client-dynamodb/src/DynamoDBService.ts | 125 +- .../src/DynamoDBServiceConfig.ts | 13 +- .../client-dynamodb/test/DynamoDB.test.ts | 18 +- packages/client-ec2/.projen/deps.json | 3 +- packages/client-ec2/README.md | 6 +- packages/client-ec2/package.json | 4 +- packages/client-ec2/src/EC2ClientInstance.ts | 8 +- packages/client-ec2/src/EC2Service.ts | 1609 ++-- packages/client-ec2/src/EC2ServiceConfig.ts | 13 +- packages/client-ec2/src/Errors.ts | 9 +- packages/client-ec2/test/EC2.test.ts | 12 +- packages/client-ecr/.projen/deps.json | 3 +- packages/client-ecr/README.md | 6 +- packages/client-ecr/package.json | 4 +- packages/client-ecr/src/ECRClientInstance.ts | 8 +- packages/client-ecr/src/ECRService.ts | 137 +- packages/client-ecr/src/ECRServiceConfig.ts | 13 +- packages/client-ecr/test/ECR.test.ts | 18 +- packages/client-ecs/.projen/deps.json | 3 +- packages/client-ecs/README.md | 6 +- packages/client-ecs/package.json | 4 +- packages/client-ecs/src/ECSClientInstance.ts | 8 +- packages/client-ecs/src/ECSService.ts | 134 +- packages/client-ecs/src/ECSServiceConfig.ts | 13 +- packages/client-ecs/test/ECS.test.ts | 18 +- packages/client-elasticache/.projen/deps.json | 3 +- packages/client-elasticache/README.md | 6 +- packages/client-elasticache/package.json | 4 +- .../src/ElastiCacheClientInstance.ts | 8 +- .../src/ElastiCacheService.ts | 156 +- .../src/ElastiCacheServiceConfig.ts | 13 +- .../test/ElastiCache.test.ts | 18 +- packages/client-eventbridge/.projen/deps.json | 3 +- packages/client-eventbridge/README.md | 6 +- packages/client-eventbridge/package.json | 4 +- .../src/EventBridgeClientInstance.ts | 8 +- .../src/EventBridgeService.ts | 120 +- .../src/EventBridgeServiceConfig.ts | 13 +- .../test/EventBridge.test.ts | 18 +- packages/client-firehose/.projen/deps.json | 3 +- packages/client-firehose/README.md | 6 +- packages/client-firehose/package.json | 4 +- .../src/FirehoseClientInstance.ts | 8 +- .../client-firehose/src/FirehoseService.ts | 30 +- .../src/FirehoseServiceConfig.ts | 13 +- .../client-firehose/test/Firehose.test.ts | 18 +- packages/client-glue/.projen/deps.json | 3 +- packages/client-glue/README.md | 6 +- packages/client-glue/package.json | 4 +- packages/client-glue/src/Errors.ts | 11 + .../client-glue/src/GlueClientInstance.ts | 8 +- packages/client-glue/src/GlueService.ts | 694 +- packages/client-glue/src/GlueServiceConfig.ts | 14 +- packages/client-glue/test/Glue.test.ts | 18 +- packages/client-iam/.projen/deps.json | 3 +- packages/client-iam/README.md | 6 +- packages/client-iam/package.json | 4 +- packages/client-iam/src/IAMClientInstance.ts | 8 +- packages/client-iam/src/IAMService.ts | 373 +- packages/client-iam/src/IAMServiceConfig.ts | 13 +- packages/client-iam/test/IAM.test.ts | 18 +- .../client-iot-data-plane/.projen/deps.json | 3 +- packages/client-iot-data-plane/README.md | 6 +- packages/client-iot-data-plane/package.json | 4 +- .../src/IoTDataPlaneClientInstance.ts | 8 +- .../src/IoTDataPlaneService.ts | 22 +- .../src/IoTDataPlaneServiceConfig.ts | 13 +- .../test/IoTDataPlane.test.ts | 18 +- .../client-iot-events-data/.projen/deps.json | 3 +- packages/client-iot-events-data/README.md | 6 +- packages/client-iot-events-data/package.json | 4 +- .../src/IoTEventsDataClientInstance.ts | 8 +- .../src/IoTEventsDataService.ts | 30 +- .../src/IoTEventsDataServiceConfig.ts | 13 +- .../test/IoTEventsData.test.ts | 18 +- packages/client-iot-events/.projen/deps.json | 3 +- packages/client-iot-events/README.md | 6 +- packages/client-iot-events/package.json | 4 +- .../src/IoTEventsClientInstance.ts | 8 +- .../client-iot-events/src/IoTEventsService.ts | 58 +- .../src/IoTEventsServiceConfig.ts | 13 +- .../client-iot-events/test/IoTEvents.test.ts | 18 +- .../.projen/deps.json | 3 +- packages/client-iot-jobs-data-plane/README.md | 6 +- .../client-iot-jobs-data-plane/package.json | 4 +- .../src/IoTJobsDataPlaneClientInstance.ts | 12 +- .../src/IoTJobsDataPlaneService.ts | 22 +- .../src/IoTJobsDataPlaneServiceConfig.ts | 13 +- .../test/IoTJobsDataPlane.test.ts | 18 +- .../client-iot-wireless/.projen/deps.json | 3 +- packages/client-iot-wireless/README.md | 6 +- packages/client-iot-wireless/package.json | 4 +- .../src/IoTWirelessClientInstance.ts | 8 +- .../src/IoTWirelessService.ts | 230 +- .../src/IoTWirelessServiceConfig.ts | 13 +- .../test/IoTWireless.test.ts | 18 +- packages/client-iot/.projen/deps.json | 3 +- packages/client-iot/README.md | 6 +- packages/client-iot/package.json | 4 +- packages/client-iot/src/IoTClientInstance.ts | 8 +- packages/client-iot/src/IoTService.ts | 830 +- packages/client-iot/src/IoTServiceConfig.ts | 13 +- packages/client-iot/test/IoT.test.ts | 18 +- packages/client-ivs/.projen/deps.json | 3 +- packages/client-ivs/README.md | 6 +- packages/client-ivs/package.json | 4 +- packages/client-ivs/src/IvsClientInstance.ts | 8 +- packages/client-ivs/src/IvsService.ts | 81 +- packages/client-ivs/src/IvsServiceConfig.ts | 13 +- packages/client-ivs/test/Ivs.test.ts | 18 +- packages/client-kafka/.projen/deps.json | 3 +- packages/client-kafka/README.md | 6 +- packages/client-kafka/package.json | 4 +- packages/client-kafka/src/Errors.ts | 27 + .../client-kafka/src/KafkaClientInstance.ts | 8 +- packages/client-kafka/src/KafkaService.ts | 217 +- .../client-kafka/src/KafkaServiceConfig.ts | 14 +- packages/client-kafka/test/Kafka.test.ts | 18 +- .../client-kafkaconnect/.projen/deps.json | 3 +- packages/client-kafkaconnect/README.md | 6 +- packages/client-kafkaconnect/package.json | 4 +- .../src/KafkaConnectClientInstance.ts | 8 +- .../src/KafkaConnectService.ts | 42 +- .../src/KafkaConnectServiceConfig.ts | 13 +- .../test/KafkaConnect.test.ts | 18 +- packages/client-kinesis/.projen/deps.json | 3 +- packages/client-kinesis/README.md | 6 +- packages/client-kinesis/package.json | 4 +- .../src/KinesisClientInstance.ts | 8 +- packages/client-kinesis/src/KinesisService.ts | 84 +- .../src/KinesisServiceConfig.ts | 13 +- packages/client-kinesis/test/Kinesis.test.ts | 18 +- packages/client-kms/.projen/deps.json | 3 +- packages/client-kms/README.md | 6 +- packages/client-kms/package.json | 4 +- packages/client-kms/src/KMSClientInstance.ts | 8 +- packages/client-kms/src/KMSService.ts | 118 +- packages/client-kms/src/KMSServiceConfig.ts | 13 +- packages/client-kms/test/KMS.test.ts | 18 +- packages/client-lambda/.projen/deps.json | 3 +- packages/client-lambda/README.md | 6 +- packages/client-lambda/package.json | 4 +- .../client-lambda/src/LambdaClientInstance.ts | 8 +- packages/client-lambda/src/LambdaService.ts | 181 +- .../client-lambda/src/LambdaServiceConfig.ts | 13 +- packages/client-lambda/test/Lambda.test.ts | 18 +- packages/client-mq/.projen/deps.json | 3 +- packages/client-mq/README.md | 6 +- packages/client-mq/package.json | 4 +- packages/client-mq/src/MqClientInstance.ts | 8 +- packages/client-mq/src/MqService.ts | 54 +- packages/client-mq/src/MqServiceConfig.ts | 13 +- packages/client-mq/test/Mq.test.ts | 18 +- .../.projen/deps.json | 3 +- .../client-opensearch-serverless/README.md | 6 +- .../client-opensearch-serverless/package.json | 4 +- .../src/OpenSearchServerlessClientInstance.ts | 12 +- .../src/OpenSearchServerlessService.ts | 194 +- .../src/OpenSearchServerlessServiceConfig.ts | 13 +- .../test/OpenSearchServerless.test.ts | 18 +- packages/client-opensearch/.projen/deps.json | 3 +- packages/client-opensearch/README.md | 6 +- packages/client-opensearch/package.json | 4 +- .../src/OpenSearchClientInstance.ts | 8 +- .../src/OpenSearchService.ts | 170 +- .../src/OpenSearchServiceConfig.ts | 13 +- .../client-opensearch/test/OpenSearch.test.ts | 18 +- .../client-organizations/.projen/deps.json | 3 +- packages/client-organizations/README.md | 6 +- packages/client-organizations/package.json | 4 +- .../src/OrganizationsClientInstance.ts | 8 +- .../src/OrganizationsService.ts | 132 +- .../src/OrganizationsServiceConfig.ts | 13 +- .../test/Organizations.test.ts | 18 +- packages/client-rds/.projen/deps.json | 3 +- packages/client-rds/README.md | 6 +- packages/client-rds/package.json | 4 +- packages/client-rds/src/RDSClientInstance.ts | 8 +- packages/client-rds/src/RDSService.ts | 348 +- packages/client-rds/src/RDSServiceConfig.ts | 13 +- packages/client-rds/test/RDS.test.ts | 18 +- packages/client-s3/.projen/deps.json | 3 +- packages/client-s3/README.md | 6 +- packages/client-s3/package.json | 4 +- packages/client-s3/src/Errors.ts | 12 +- packages/client-s3/src/S3ClientInstance.ts | 8 +- packages/client-s3/src/S3Service.ts | 264 +- packages/client-s3/src/S3ServiceConfig.ts | 13 +- packages/client-s3/test/S3.test.ts | 20 +- packages/client-scheduler/.projen/deps.json | 3 +- packages/client-scheduler/README.md | 6 +- packages/client-scheduler/package.json | 4 +- .../src/SchedulerClientInstance.ts | 8 +- .../client-scheduler/src/SchedulerService.ts | 30 +- .../src/SchedulerServiceConfig.ts | 13 +- .../client-scheduler/test/Scheduler.test.ts | 18 +- .../client-secrets-manager/.projen/deps.json | 3 +- packages/client-secrets-manager/README.md | 6 +- packages/client-secrets-manager/package.json | 4 +- .../src/SecretsManagerClientInstance.ts | 12 +- .../src/SecretsManagerService.ts | 52 +- .../src/SecretsManagerServiceConfig.ts | 13 +- .../test/SecretsManager.test.ts | 18 +- packages/client-ses/.projen/deps.json | 3 +- packages/client-ses/README.md | 6 +- packages/client-ses/package.json | 4 +- packages/client-ses/src/SESClientInstance.ts | 8 +- packages/client-ses/src/SESService.ts | 148 +- packages/client-ses/src/SESServiceConfig.ts | 13 +- packages/client-ses/test/SES.test.ts | 18 +- packages/client-sfn/.projen/deps.json | 3 +- packages/client-sfn/README.md | 6 +- packages/client-sfn/package.json | 4 +- packages/client-sfn/src/SFNClientInstance.ts | 8 +- packages/client-sfn/src/SFNService.ts | 80 +- packages/client-sfn/src/SFNServiceConfig.ts | 13 +- packages/client-sfn/test/SFN.test.ts | 18 +- packages/client-sns/.projen/deps.json | 3 +- packages/client-sns/README.md | 6 +- packages/client-sns/package.json | 4 +- packages/client-sns/src/SNSClientInstance.ts | 8 +- packages/client-sns/src/SNSService.ts | 90 +- packages/client-sns/src/SNSServiceConfig.ts | 13 +- packages/client-sns/test/SNS.test.ts | 18 +- packages/client-sqs/.projen/deps.json | 3 +- packages/client-sqs/README.md | 6 +- packages/client-sqs/package.json | 4 +- packages/client-sqs/src/SQSClientInstance.ts | 8 +- packages/client-sqs/src/SQSService.ts | 52 +- packages/client-sqs/src/SQSServiceConfig.ts | 13 +- packages/client-sqs/test/SQS.test.ts | 18 +- packages/client-ssm/.projen/deps.json | 3 +- packages/client-ssm/README.md | 6 +- packages/client-ssm/package.json | 4 +- packages/client-ssm/src/SSMClientInstance.ts | 8 +- packages/client-ssm/src/SSMService.ts | 310 +- packages/client-ssm/src/SSMServiceConfig.ts | 13 +- packages/client-ssm/test/SSM.test.ts | 18 +- packages/client-sts/.projen/deps.json | 3 +- packages/client-sts/README.md | 6 +- packages/client-sts/package.json | 4 +- packages/client-sts/src/STSClientInstance.ts | 8 +- packages/client-sts/src/STSService.ts | 28 +- packages/client-sts/src/STSServiceConfig.ts | 13 +- packages/client-sts/test/STS.test.ts | 18 +- packages/client-textract/.projen/deps.json | 3 +- packages/client-textract/README.md | 6 +- packages/client-textract/package.json | 4 +- .../src/TextractClientInstance.ts | 8 +- .../client-textract/src/TextractService.ts | 56 +- .../src/TextractServiceConfig.ts | 13 +- .../client-textract/test/Textract.test.ts | 18 +- .../.projen/deps.json | 3 +- packages/client-timestream-influxdb/README.md | 6 +- .../client-timestream-influxdb/package.json | 4 +- .../src/TimestreamInfluxDBClientInstance.ts | 12 +- .../src/TimestreamInfluxDBService.ts | 50 +- .../src/TimestreamInfluxDBServiceConfig.ts | 13 +- .../test/TimestreamInfluxDB.test.ts | 18 +- .../client-timestream-query/.projen/deps.json | 3 +- packages/client-timestream-query/README.md | 6 +- packages/client-timestream-query/package.json | 4 +- .../src/TimestreamQueryClientInstance.ts | 12 +- .../src/TimestreamQueryService.ts | 36 +- .../src/TimestreamQueryServiceConfig.ts | 13 +- .../test/TimestreamQuery.test.ts | 18 +- .../client-timestream-write/.projen/deps.json | 3 +- packages/client-timestream-write/README.md | 6 +- packages/client-timestream-write/package.json | 4 +- .../src/TimestreamWriteClientInstance.ts | 12 +- .../src/TimestreamWriteService.ts | 44 +- .../src/TimestreamWriteServiceConfig.ts | 13 +- .../test/TimestreamWrite.test.ts | 18 +- packages/commons/.projen/deps.json | 3 +- packages/commons/package.json | 12 +- packages/commons/src/Errors.ts | 3 +- packages/commons/src/HttpHandler.ts | 12 +- packages/commons/src/Service.ts | 22 +- packages/commons/src/ServiceLogger.ts | 6 +- packages/commons/src/internal/httpHandler.ts | 4 +- packages/commons/test/Service.test.ts | 25 +- packages/commons/test/ServiceLogger.test.ts | 26 +- .../test/fixtures/TestClientInstance.ts | 14 +- packages/commons/test/fixtures/TestService.ts | 6 +- .../test/fixtures/TestServiceConfig.ts | 12 +- packages/dsql/.projen/deps.json | 3 +- packages/dsql/package.json | 4 +- packages/dsql/src/DsqlSigner.ts | 6 +- packages/dsql/src/DsqlSignerInstance.ts | 6 +- packages/dsql/test/DsqlSignerService.test.ts | 4 +- packages/dynamodb/.projen/deps.json | 3 +- packages/dynamodb/package.json | 4 +- .../src/DynamoDBDocumentClientInstance.ts | 14 +- .../dynamodb/src/DynamoDBDocumentService.ts | 32 +- .../src/DynamoDBDocumentServiceConfig.ts | 13 +- packages/dynamodb/src/DynamoDBStore.ts | 20 +- .../dynamodb/test/DynamoDBDocument.test.ts | 12 +- packages/http-handler/.projen/deps.json | 12 +- packages/http-handler/package.json | 12 +- .../http-handler/src/internal/httpHandler.ts | 17 +- packages/lambda/README.md | 13 +- packages/lambda/examples/stream.ts | 10 +- packages/lambda/src/Compatibility.ts | 62 - packages/lambda/src/index.ts | 5 - packages/lambda/src/internal/stream.ts | 24 +- packages/powertools-logger/.projen/deps.json | 3 +- packages/powertools-logger/package.json | 4 +- packages/powertools-logger/src/Logger.ts | 66 +- .../powertools-logger/src/LoggerInstance.ts | 6 +- .../powertools-logger/src/LoggerOptions.ts | 13 +- .../powertools-logger/test/Logger.test.ts | 377 +- packages/powertools-tracer/.projen/deps.json | 3 +- .../powertools-tracer/examples/example.ts | 8 +- packages/powertools-tracer/package.json | 4 +- packages/powertools-tracer/src/Tracer.ts | 4 +- .../powertools-tracer/src/internal/tracer.ts | 28 +- packages/s3/.projen/deps.json | 12 +- packages/s3/examples/file-upload.ts | 3 +- packages/s3/package.json | 6 +- packages/s3/src/MultipartUpload.ts | 9 +- packages/s3/src/S3FileSystem.ts | 8 +- packages/s3/src/internal/multipartUpload.ts | 45 +- packages/s3/src/internal/s3FileSystem.ts | 81 +- packages/s3/test/MultipartUpload.test.ts | 7 +- packages/s3/test/S3FileSystem.test.ts | 83 +- packages/secrets-manager/.projen/deps.json | 3 +- packages/secrets-manager/package.json | 4 +- .../secrets-manager/src/ConfigProvider.ts | 156 +- packages/secrets-manager/src/index.ts | 12 - .../test/ConfigProvider.test.ts | 54 +- packages/ssm/.projen/deps.json | 3 +- packages/ssm/package.json | 4 +- packages/ssm/src/ConfigProvider.ts | 160 +- packages/ssm/src/index.ts | 12 - packages/ssm/test/ConfigProvider.test.ts | 54 +- pnpm-lock.yaml | 7123 ++++++++--------- scripts/codegen-cli.ts | 12 +- scripts/generate-client.ts | 57 +- scripts/manifest.ts | 8 +- 475 files changed, 10708 insertions(+), 11109 deletions(-) create mode 100644 .changeset/pre.json delete mode 100644 packages/lambda/src/Compatibility.ts diff --git a/.changeset/config.json b/.changeset/config.json index 6522ed89..d48456b2 100644 --- a/.changeset/config.json +++ b/.changeset/config.json @@ -15,9 +15,6 @@ "access": "restricted", "baseBranch": "main", "updateInternalDependencies": "patch", - "ignore": [ - "@effect-aws/lib-*" - ], "___experimentalUnsafeOptions_WILL_CHANGE_IN_PATCH": { "onlyUpdatePeerDependentsWhenOutOfRange": true }, diff --git a/.changeset/pre.json b/.changeset/pre.json new file mode 100644 index 00000000..65e3e01e --- /dev/null +++ b/.changeset/pre.json @@ -0,0 +1,74 @@ +{ + "mode": "pre", + "tag": "beta", + "initialVersions": { + "@effect-aws/client-account": "1.10.9", + "@effect-aws/client-api-gateway": "1.10.9", + "@effect-aws/client-api-gateway-management-api": "1.10.9", + "@effect-aws/client-api-gateway-v2": "1.10.9", + "@effect-aws/client-athena": "1.10.9", + "@effect-aws/client-auto-scaling": "1.10.9", + "@effect-aws/client-bedrock": "1.10.9", + "@effect-aws/client-bedrock-runtime": "1.10.9", + "@effect-aws/client-cloudformation": "1.10.9", + "@effect-aws/client-cloudsearch": "1.10.9", + "@effect-aws/client-cloudtrail": "1.10.9", + "@effect-aws/client-cloudwatch": "1.10.9", + "@effect-aws/client-cloudwatch-events": "1.10.9", + "@effect-aws/client-cloudwatch-logs": "1.10.9", + "@effect-aws/client-codedeploy": "1.10.9", + "@effect-aws/client-cognito-identity-provider": "1.10.9", + "@effect-aws/client-data-pipeline": "1.10.9", + "@effect-aws/client-dsql": "1.10.9", + "@effect-aws/client-dynamodb": "1.10.9", + "@effect-aws/client-ec2": "1.10.9", + "@effect-aws/client-ecr": "1.10.9", + "@effect-aws/client-ecs": "1.10.9", + "@effect-aws/client-elasticache": "1.10.9", + "@effect-aws/client-eventbridge": "1.10.9", + "@effect-aws/client-firehose": "1.10.9", + "@effect-aws/client-glue": "1.10.9", + "@effect-aws/client-iam": "1.10.9", + "@effect-aws/client-iot": "1.10.9", + "@effect-aws/client-iot-data-plane": "1.10.9", + "@effect-aws/client-iot-events": "1.10.9", + "@effect-aws/client-iot-events-data": "1.10.9", + "@effect-aws/client-iot-jobs-data-plane": "1.10.9", + "@effect-aws/client-iot-wireless": "1.10.9", + "@effect-aws/client-ivs": "1.10.9", + "@effect-aws/client-kafka": "1.10.9", + "@effect-aws/client-kafkaconnect": "1.10.9", + "@effect-aws/client-kinesis": "1.10.9", + "@effect-aws/client-kms": "1.10.9", + "@effect-aws/client-lambda": "1.10.9", + "@effect-aws/client-mq": "1.10.9", + "@effect-aws/client-opensearch": "1.10.9", + "@effect-aws/client-opensearch-serverless": "1.10.9", + "@effect-aws/client-organizations": "1.10.9", + "@effect-aws/client-rds": "1.10.9", + "@effect-aws/client-s3": "1.10.9", + "@effect-aws/client-scheduler": "1.10.9", + "@effect-aws/client-secrets-manager": "1.10.9", + "@effect-aws/client-ses": "1.10.9", + "@effect-aws/client-sfn": "1.10.9", + "@effect-aws/client-sns": "1.10.9", + "@effect-aws/client-sqs": "1.10.9", + "@effect-aws/client-ssm": "1.10.9", + "@effect-aws/client-sts": "1.10.9", + "@effect-aws/client-textract": "1.10.9", + "@effect-aws/client-timestream-influxdb": "1.10.9", + "@effect-aws/client-timestream-query": "1.10.9", + "@effect-aws/client-timestream-write": "1.10.9", + "@effect-aws/commons": "0.3.1", + "@effect-aws/dsql": "0.1.0", + "@effect-aws/dynamodb": "1.0.3", + "@effect-aws/http-handler": "0.1.2", + "@effect-aws/lambda": "1.5.2", + "@effect-aws/powertools-logger": "1.5.1", + "@effect-aws/powertools-tracer": "1.0.1", + "@effect-aws/s3": "0.2.6", + "@effect-aws/secrets-manager": "1.3.3", + "@effect-aws/ssm": "1.3.6" + }, + "changesets": [] +} diff --git a/.changeset/sour-parents-clean.md b/.changeset/sour-parents-clean.md index 81755e5f..4148f0e3 100644 --- a/.changeset/sour-parents-clean.md +++ b/.changeset/sour-parents-clean.md @@ -1,5 +1,71 @@ --- +"@effect-aws/client-api-gateway-management-api": major +"@effect-aws/client-cognito-identity-provider": major +"@effect-aws/client-opensearch-serverless": major +"@effect-aws/client-iot-jobs-data-plane": major +"@effect-aws/client-timestream-influxdb": major +"@effect-aws/client-cloudwatch-events": major +"@effect-aws/client-timestream-query": major +"@effect-aws/client-timestream-write": major +"@effect-aws/client-bedrock-runtime": major +"@effect-aws/client-cloudwatch-logs": major +"@effect-aws/client-iot-events-data": major +"@effect-aws/client-secrets-manager": major +"@effect-aws/client-api-gateway-v2": major +"@effect-aws/client-cloudformation": major +"@effect-aws/client-iot-data-plane": major +"@effect-aws/client-data-pipeline": major +"@effect-aws/client-organizations": major +"@effect-aws/client-auto-scaling": major +"@effect-aws/client-iot-wireless": major +"@effect-aws/client-kafkaconnect": major +"@effect-aws/client-api-gateway": major +"@effect-aws/client-cloudsearch": major +"@effect-aws/client-elasticache": major +"@effect-aws/client-eventbridge": major +"@effect-aws/client-cloudtrail": major +"@effect-aws/client-cloudwatch": major +"@effect-aws/client-codedeploy": major +"@effect-aws/client-iot-events": major +"@effect-aws/client-opensearch": major +"@effect-aws/powertools-logger": major +"@effect-aws/powertools-tracer": major +"@effect-aws/client-scheduler": major +"@effect-aws/client-dynamodb": major +"@effect-aws/client-firehose": major +"@effect-aws/client-textract": major +"@effect-aws/secrets-manager": major +"@effect-aws/client-account": major +"@effect-aws/client-bedrock": major +"@effect-aws/client-kinesis": major +"@effect-aws/client-athena": major +"@effect-aws/client-lambda": major +"@effect-aws/client-kafka": major +"@effect-aws/http-handler": major +"@effect-aws/client-dsql": major +"@effect-aws/client-glue": major +"@effect-aws/client-ec2": major +"@effect-aws/client-ecr": major +"@effect-aws/client-ecs": major +"@effect-aws/client-iam": major +"@effect-aws/client-iot": major +"@effect-aws/client-ivs": major +"@effect-aws/client-kms": major +"@effect-aws/client-rds": major +"@effect-aws/client-ses": major +"@effect-aws/client-sfn": major +"@effect-aws/client-sns": major +"@effect-aws/client-sqs": major +"@effect-aws/client-ssm": major +"@effect-aws/client-sts": major +"@effect-aws/client-mq": major +"@effect-aws/client-s3": major +"@effect-aws/dynamodb": major +"@effect-aws/commons": major "@effect-aws/lambda": major +"@effect-aws/dsql": major +"@effect-aws/ssm": major +"@effect-aws/s3": major --- Migrate to effect v4 diff --git a/.projen/deps.json b/.projen/deps.json index 98edfe18..e0cbfd27 100644 --- a/.projen/deps.json +++ b/.projen/deps.json @@ -26,6 +26,7 @@ }, { "name": "@effect/vitest", + "version": "4.0.0-beta.8", "type": "build" }, { @@ -132,20 +133,14 @@ "name": "vitest-mock-extended", "type": "build" }, - { - "name": "@effect/cli", - "type": "runtime" - }, - { - "name": "@effect/platform", - "type": "runtime" - }, { "name": "@effect/platform-node", + "version": "4.0.0-beta.8", "type": "runtime" }, { "name": "effect", + "version": "4.0.0-beta.8", "type": "runtime" } ], diff --git a/.projenrc.ts b/.projenrc.ts index 32a8e7e3..3f998e8d 100644 --- a/.projenrc.ts +++ b/.projenrc.ts @@ -29,7 +29,6 @@ new Changesets(project, { repo, onlyUpdatePeerDependentsWhenOutOfRange: true, linked: [`@${name}/client-*`], - ignore: [`@${name}/lib-*`], }); project.package.manifest.pnpm.patchedDependencies = { "@changesets/assemble-release-plan": "patches/@changesets__assemble-release-plan.patch", @@ -43,11 +42,11 @@ new Vitest(project, { sharedSetupFiles: ["vitest.setup.ts"] }); project.addDevDeps("vitest-mock-extended"); project.addDevDeps("aws-sdk-client-mock", "aws-sdk-client-mock-vitest@^6.2.1"); -const effectDeps = ["effect"]; +const effectDeps = ["effect@4.0.0-beta.8"]; project.addScripts({ "codegen-client": "tsx ./scripts/codegen-cli.ts" }); -project.addDeps(...effectDeps, "@effect/cli", "@effect/platform", "@effect/platform-node"); -project.addDevDeps("@effect/language-service", "@effect/vitest"); +project.addDeps(...effectDeps, "@effect/platform-node@4.0.0-beta.8"); +project.addDevDeps("@effect/language-service", "@effect/vitest@4.0.0-beta.8"); project.tsconfigBase?.file.addOverride("compilerOptions.plugins", [ { name: "@effect/language-service" }, ]); @@ -59,7 +58,7 @@ project.addTask("pages:build", { exec: "vitepress build pages" }); project.addTask("pages:preview", { exec: "vitepress preview pages" }); const commonDevDeps = [...effectDeps]; -const commonPeerDeps = ["effect@>=3.0.4 <4.0.0"]; +const commonPeerDeps = ["effect@>=4.0.0 <5.0.0"]; const commons = new TypeScriptLibProject({ parent: project, @@ -113,7 +112,7 @@ const lambda = new TypeScriptLibProject({ parent: project, name: "lambda", description: "Effectful AWS Lambda handler", - devDeps: ["effect@4.0.0-beta.8", "@effect/platform-node-shared@4.0.0-beta.8", "@types/aws-lambda"], + devDeps: [...effectDeps, "@effect/platform-node-shared@4.0.0-beta.8", "@types/aws-lambda"], peerDeps: ["effect@>=4.0.0 <5.0.0", "@effect/platform-node-shared@>=4.0.0 <5.0.0"], addExamples: true, }); @@ -169,8 +168,8 @@ new TypeScriptLibProject({ parent: project, name: "s3", description: "Effectful AWS S3 functions", - devDeps: [...effectDeps, "@effect/platform", "@aws-sdk/client-s3@^3"], - peerDeps: ["effect@>=3.15.5 <4.0.0", "@effect/platform@>=0.83.0"], + devDeps: [...effectDeps, "@aws-sdk/client-s3@^3"], + peerDeps: ["effect@>=4.0.0 <5.0.0"], workspacePeerDeps: [s3Client], addExamples: true, }); @@ -180,8 +179,8 @@ new TypeScriptLibProject({ name: "http-handler", description: "Effectful AWS HTTP handler", deps: ["@smithy/types", "@smithy/protocol-http", "@smithy/querystring-builder"], - devDeps: [...effectDeps, "@effect/platform"], - peerDeps: ["effect@>=3.15.5 <4.0.0", "@effect/platform@>=0.83.0"], + devDeps: [...effectDeps], + peerDeps: ["effect@>=4.0.0 <5.0.0"], workspacePeerDeps: [commons], }); @@ -191,7 +190,7 @@ new TypeScriptLibProject({ description: "Effectful AWS Aurora DSQL modules", deps: ["@aws-sdk/dsql-signer@^3"], devDeps: [...effectDeps], - peerDeps: ["effect@>=3.15.5 <4.0.0"], + peerDeps: ["effect@>=4.0.0 <5.0.0"], }); project.addGitIgnore("/.direnv"); // flake environment creates .direnv folder diff --git a/package.json b/package.json index 422b116f..52eb9bdf 100644 --- a/package.json +++ b/package.json @@ -39,7 +39,7 @@ "@effect/docgen": "^0.5.2", "@effect/eslint-plugin": "^0.3.2", "@effect/language-service": "^0.19.0", - "@effect/vitest": "^0.23.4", + "@effect/vitest": "4.0.0-beta.8", "@eslint/compat": "^1.2.5", "@eslint/eslintrc": "^3.2.0", "@eslint/js": "^9.19.0", @@ -67,10 +67,8 @@ "vitest-mock-extended": "^3.1.0" }, "dependencies": { - "@effect/cli": "^0.63.8", - "@effect/platform": "^0.84.8", - "@effect/platform-node": "^0.85.7", - "effect": "^3.16.4" + "@effect/platform-node": "4.0.0-beta.8", + "effect": "4.0.0-beta.8" }, "pnpm": { "patchedDependencies": { diff --git a/packages/client-account/.projen/deps.json b/packages/client-account/.projen/deps.json index ccc08597..1cd3b6b5 100644 --- a/packages/client-account/.projen/deps.json +++ b/packages/client-account/.projen/deps.json @@ -7,6 +7,7 @@ }, { "name": "effect", + "version": "4.0.0-beta.8", "type": "build" }, { @@ -16,7 +17,7 @@ }, { "name": "effect", - "version": ">=3.0.4 <4.0.0", + "version": ">=4.0.0 <5.0.0", "type": "peer" }, { diff --git a/packages/client-account/README.md b/packages/client-account/README.md index 17510c3b..9d9718cc 100644 --- a/packages/client-account/README.md +++ b/packages/client-account/README.md @@ -16,7 +16,7 @@ With default AccountClient instance: ```typescript import { Account } from "@effect-aws/client-account"; -const program = Account.listRegions(args); +const program = Account.use((svc) => svc.listRegions(args)); const result = pipe( program, @@ -30,7 +30,7 @@ With custom AccountClient instance: ```typescript import { Account } from "@effect-aws/client-account"; -const program = Account.listRegions(args); +const program = Account.use((svc) => svc.listRegions(args)); const result = await pipe( program, @@ -46,7 +46,7 @@ With custom AccountClient configuration: ```typescript import { Account } from "@effect-aws/client-account"; -const program = Account.listRegions(args); +const program = Account.use((svc) => svc.listRegions(args)); const result = await pipe( program, diff --git a/packages/client-account/package.json b/packages/client-account/package.json index 284da8d5..e3e02aab 100644 --- a/packages/client-account/package.json +++ b/packages/client-account/package.json @@ -26,11 +26,11 @@ }, "devDependencies": { "@types/node": "ts5.4", - "effect": "^3.16.4", + "effect": "4.0.0-beta.8", "typescript": "^5.4.2" }, "peerDependencies": { - "effect": ">=3.0.4 <4.0.0" + "effect": ">=4.0.0 <5.0.0" }, "dependencies": { "@aws-sdk/client-account": "^3", diff --git a/packages/client-account/src/AccountClientInstance.ts b/packages/client-account/src/AccountClientInstance.ts index 1c9b20c6..ddb15713 100644 --- a/packages/client-account/src/AccountClientInstance.ts +++ b/packages/client-account/src/AccountClientInstance.ts @@ -2,16 +2,16 @@ * @since 1.0.0 */ import { AccountClient } from "@aws-sdk/client-account"; -import { Context, Effect, Layer } from "effect"; +import { Effect, Layer, ServiceMap } from "effect"; import * as AccountServiceConfig from "./AccountServiceConfig.js"; /** * @since 1.0.0 * @category tags */ -export class AccountClientInstance extends Context.Tag( +export class AccountClientInstance extends ServiceMap.Service()( "@effect-aws/client-account/AccountClientInstance", -)() {} +) {} /** * @since 1.0.0 @@ -30,4 +30,4 @@ export const make = Effect.flatMap( * @since 1.0.0 * @category layers */ -export const layer = Layer.scoped(AccountClientInstance, make); +export const layer = Layer.effect(AccountClientInstance, make); diff --git a/packages/client-account/src/AccountService.ts b/packages/client-account/src/AccountService.ts index e7fd7f03..0c0ec6b3 100644 --- a/packages/client-account/src/AccountService.ts +++ b/packages/client-account/src/AccountService.ts @@ -53,7 +53,7 @@ import { import type { HttpHandlerOptions, ServiceLogger } from "@effect-aws/commons"; import { Service } from "@effect-aws/commons"; import type { Cause } from "effect"; -import { Effect, Layer } from "effect"; +import { Effect, Layer, ServiceMap } from "effect"; import * as Instance from "./AccountClientInstance.js"; import * as AccountServiceConfig from "./AccountServiceConfig.js"; import type { @@ -97,7 +97,7 @@ interface AccountService$ { options?: HttpHandlerOptions, ): Effect.Effect< AcceptPrimaryEmailUpdateCommandOutput, - | Cause.TimeoutException + | Cause.TimeoutError | SdkError | AccessDeniedError | ConflictError @@ -115,7 +115,7 @@ interface AccountService$ { options?: HttpHandlerOptions, ): Effect.Effect< DeleteAlternateContactCommandOutput, - | Cause.TimeoutException + | Cause.TimeoutError | SdkError | AccessDeniedError | InternalServerError @@ -132,7 +132,7 @@ interface AccountService$ { options?: HttpHandlerOptions, ): Effect.Effect< DisableRegionCommandOutput, - | Cause.TimeoutException + | Cause.TimeoutError | SdkError | AccessDeniedError | ConflictError @@ -149,7 +149,7 @@ interface AccountService$ { options?: HttpHandlerOptions, ): Effect.Effect< EnableRegionCommandOutput, - | Cause.TimeoutException + | Cause.TimeoutError | SdkError | AccessDeniedError | ConflictError @@ -166,7 +166,7 @@ interface AccountService$ { options?: HttpHandlerOptions, ): Effect.Effect< GetAccountInformationCommandOutput, - Cause.TimeoutException | SdkError | AccessDeniedError | InternalServerError | TooManyRequestsError | ValidationError + Cause.TimeoutError | SdkError | AccessDeniedError | InternalServerError | TooManyRequestsError | ValidationError >; /** @@ -177,7 +177,7 @@ interface AccountService$ { options?: HttpHandlerOptions, ): Effect.Effect< GetAlternateContactCommandOutput, - | Cause.TimeoutException + | Cause.TimeoutError | SdkError | AccessDeniedError | InternalServerError @@ -194,7 +194,7 @@ interface AccountService$ { options?: HttpHandlerOptions, ): Effect.Effect< GetContactInformationCommandOutput, - | Cause.TimeoutException + | Cause.TimeoutError | SdkError | AccessDeniedError | InternalServerError @@ -211,7 +211,7 @@ interface AccountService$ { options?: HttpHandlerOptions, ): Effect.Effect< GetGovCloudAccountInformationCommandOutput, - | Cause.TimeoutException + | Cause.TimeoutError | SdkError | AccessDeniedError | InternalServerError @@ -229,7 +229,7 @@ interface AccountService$ { options?: HttpHandlerOptions, ): Effect.Effect< GetPrimaryEmailCommandOutput, - | Cause.TimeoutException + | Cause.TimeoutError | SdkError | AccessDeniedError | InternalServerError @@ -246,7 +246,7 @@ interface AccountService$ { options?: HttpHandlerOptions, ): Effect.Effect< GetRegionOptStatusCommandOutput, - Cause.TimeoutException | SdkError | AccessDeniedError | InternalServerError | TooManyRequestsError | ValidationError + Cause.TimeoutError | SdkError | AccessDeniedError | InternalServerError | TooManyRequestsError | ValidationError >; /** @@ -257,7 +257,7 @@ interface AccountService$ { options?: HttpHandlerOptions, ): Effect.Effect< ListRegionsCommandOutput, - Cause.TimeoutException | SdkError | AccessDeniedError | InternalServerError | TooManyRequestsError | ValidationError + Cause.TimeoutError | SdkError | AccessDeniedError | InternalServerError | TooManyRequestsError | ValidationError >; /** @@ -268,7 +268,7 @@ interface AccountService$ { options?: HttpHandlerOptions, ): Effect.Effect< PutAccountNameCommandOutput, - Cause.TimeoutException | SdkError | AccessDeniedError | InternalServerError | TooManyRequestsError | ValidationError + Cause.TimeoutError | SdkError | AccessDeniedError | InternalServerError | TooManyRequestsError | ValidationError >; /** @@ -279,7 +279,7 @@ interface AccountService$ { options?: HttpHandlerOptions, ): Effect.Effect< PutAlternateContactCommandOutput, - Cause.TimeoutException | SdkError | AccessDeniedError | InternalServerError | TooManyRequestsError | ValidationError + Cause.TimeoutError | SdkError | AccessDeniedError | InternalServerError | TooManyRequestsError | ValidationError >; /** @@ -290,7 +290,7 @@ interface AccountService$ { options?: HttpHandlerOptions, ): Effect.Effect< PutContactInformationCommandOutput, - Cause.TimeoutException | SdkError | AccessDeniedError | InternalServerError | TooManyRequestsError | ValidationError + Cause.TimeoutError | SdkError | AccessDeniedError | InternalServerError | TooManyRequestsError | ValidationError >; /** @@ -301,7 +301,7 @@ interface AccountService$ { options?: HttpHandlerOptions, ): Effect.Effect< StartPrimaryEmailUpdateCommandOutput, - | Cause.TimeoutException + | Cause.TimeoutError | SdkError | AccessDeniedError | ConflictError @@ -333,10 +333,10 @@ export const makeAccountService = Effect.gen(function*() { * @since 1.0.0 * @category models */ -export class AccountService extends Effect.Tag("@effect-aws/client-account/AccountService")< +export class AccountService extends ServiceMap.Service< AccountService, AccountService$ ->() { +>()("@effect-aws/client-account/AccountService") { static readonly defaultLayer = Layer.effect(this, makeAccountService).pipe(Layer.provide(Instance.layer)); static readonly layer = (config: AccountService.Config) => Layer.effect(this, makeAccountService).pipe( diff --git a/packages/client-account/src/AccountServiceConfig.ts b/packages/client-account/src/AccountServiceConfig.ts index b45dcf7c..cd114b34 100644 --- a/packages/client-account/src/AccountServiceConfig.ts +++ b/packages/client-account/src/AccountServiceConfig.ts @@ -3,18 +3,17 @@ */ import type { AccountClientConfig } from "@aws-sdk/client-account"; import { ServiceLogger } from "@effect-aws/commons"; -import { Effect, FiberRef, Layer } from "effect"; +import { Effect, Layer, ServiceMap } from "effect"; import { dual } from "effect/Function"; -import { globalValue } from "effect/GlobalValue"; import type { AccountService } from "./AccountService.js"; /** * @since 1.0.0 * @category account service config */ -const currentAccountServiceConfig = globalValue( +const currentAccountServiceConfig = ServiceMap.Reference( "@effect-aws/client-account/currentAccountServiceConfig", - () => FiberRef.unsafeMake({}), + { defaultValue: () => ({}) }, ); /** @@ -27,7 +26,7 @@ export const withAccountServiceConfig: { } = dual( 2, (effect: Effect.Effect, config: AccountService.Config): Effect.Effect => - Effect.locally(effect, currentAccountServiceConfig, config), + Effect.provideService(effect, currentAccountServiceConfig, config), ); /** @@ -35,14 +34,14 @@ export const withAccountServiceConfig: { * @category account service config */ export const setAccountServiceConfig = (config: AccountService.Config) => - Layer.locallyScoped(currentAccountServiceConfig, config); + Layer.succeed(currentAccountServiceConfig, config); /** * @since 1.0.0 * @category adapters */ export const toAccountClientConfig: Effect.Effect = Effect.gen(function*() { - const { logger: serviceLogger, ...config } = yield* FiberRef.get(currentAccountServiceConfig); + const { logger: serviceLogger, ...config } = yield* currentAccountServiceConfig; const logger = serviceLogger === true ? yield* ServiceLogger.toClientLogger(ServiceLogger.defaultServiceLogger) diff --git a/packages/client-account/test/Account.test.ts b/packages/client-account/test/Account.test.ts index 5e7fc54c..f7988b92 100644 --- a/packages/client-account/test/Account.test.ts +++ b/packages/client-account/test/Account.test.ts @@ -26,7 +26,7 @@ describe("AccountClientImpl", () => { const args = {} as unknown as ListRegionsCommandInput; - const program = Account.listRegions(args); + const program = Account.use((svc) => svc.listRegions(args)); const result = await pipe( program, @@ -46,7 +46,7 @@ describe("AccountClientImpl", () => { const args = {} as unknown as ListRegionsCommandInput; - const program = Account.listRegions(args); + const program = Account.use((svc) => svc.listRegions(args)); const result = await pipe( program, @@ -69,7 +69,7 @@ describe("AccountClientImpl", () => { const args = {} as unknown as ListRegionsCommandInput; - const program = Account.listRegions(args); + const program = Account.use((svc) => svc.listRegions(args)); const result = await pipe( program, @@ -93,7 +93,7 @@ describe("AccountClientImpl", () => { const args = {} as unknown as ListRegionsCommandInput; - const program = Account.listRegions(args); + const program = Account.use((svc) => svc.listRegions(args)); const result = await pipe( program, @@ -121,7 +121,7 @@ describe("AccountClientImpl", () => { const args = {} as unknown as ListRegionsCommandInput; - const program = Account.listRegions(args); + const program = Account.use((svc) => svc.listRegions(args)); const result = await pipe( program, @@ -131,7 +131,7 @@ describe("AccountClientImpl", () => { expect(result).toEqual( Exit.fail( - SdkError({ + new SdkError({ ...new Error("test"), name: "SdkError", message: "test", @@ -156,7 +156,7 @@ describe("AccountClientImpl", () => { const args = {} as unknown as ListRegionsCommandInput; - const program = Account.listRegions(args).pipe( + const program = Account.use((svc) => svc.listRegions(args)).pipe( Effect.catchTag("NotHandledException" as any, () => Effect.succeed(null)), ); @@ -166,9 +166,9 @@ describe("AccountClientImpl", () => { Effect.runPromiseExit, ); - expect(result).toEqual( + expect(result).toContainEqual( Exit.fail( - SdkError({ + new SdkError({ ...new Error("test"), name: "SdkError", message: "test", diff --git a/packages/client-api-gateway-management-api/.projen/deps.json b/packages/client-api-gateway-management-api/.projen/deps.json index 238b4e09..a9b9e4ad 100644 --- a/packages/client-api-gateway-management-api/.projen/deps.json +++ b/packages/client-api-gateway-management-api/.projen/deps.json @@ -7,6 +7,7 @@ }, { "name": "effect", + "version": "4.0.0-beta.8", "type": "build" }, { @@ -16,7 +17,7 @@ }, { "name": "effect", - "version": ">=3.0.4 <4.0.0", + "version": ">=4.0.0 <5.0.0", "type": "peer" }, { diff --git a/packages/client-api-gateway-management-api/README.md b/packages/client-api-gateway-management-api/README.md index a6fcaf4a..c3ecda6a 100644 --- a/packages/client-api-gateway-management-api/README.md +++ b/packages/client-api-gateway-management-api/README.md @@ -16,7 +16,7 @@ With default ApiGatewayManagementApiClient instance: ```typescript import { ApiGatewayManagementApi } from "@effect-aws/client-api-gateway-management-api"; -const program = ApiGatewayManagementApi.postToConnection(args); +const program = ApiGatewayManagementApi.use((svc) => svc.postToConnection(args)); const result = pipe( program, @@ -30,7 +30,7 @@ With custom ApiGatewayManagementApiClient instance: ```typescript import { ApiGatewayManagementApi } from "@effect-aws/client-api-gateway-management-api"; -const program = ApiGatewayManagementApi.postToConnection(args); +const program = ApiGatewayManagementApi.use((svc) => svc.postToConnection(args)); const result = await pipe( program, @@ -46,7 +46,7 @@ With custom ApiGatewayManagementApiClient configuration: ```typescript import { ApiGatewayManagementApi } from "@effect-aws/client-api-gateway-management-api"; -const program = ApiGatewayManagementApi.postToConnection(args); +const program = ApiGatewayManagementApi.use((svc) => svc.postToConnection(args)); const result = await pipe( program, diff --git a/packages/client-api-gateway-management-api/package.json b/packages/client-api-gateway-management-api/package.json index 7b23acd5..bd4007c6 100644 --- a/packages/client-api-gateway-management-api/package.json +++ b/packages/client-api-gateway-management-api/package.json @@ -26,11 +26,11 @@ }, "devDependencies": { "@types/node": "ts5.4", - "effect": "^3.16.4", + "effect": "4.0.0-beta.8", "typescript": "^5.4.2" }, "peerDependencies": { - "effect": ">=3.0.4 <4.0.0" + "effect": ">=4.0.0 <5.0.0" }, "dependencies": { "@aws-sdk/client-apigatewaymanagementapi": "^3", diff --git a/packages/client-api-gateway-management-api/src/ApiGatewayManagementApiClientInstance.ts b/packages/client-api-gateway-management-api/src/ApiGatewayManagementApiClientInstance.ts index 918e0fba..25991c6b 100644 --- a/packages/client-api-gateway-management-api/src/ApiGatewayManagementApiClientInstance.ts +++ b/packages/client-api-gateway-management-api/src/ApiGatewayManagementApiClientInstance.ts @@ -2,16 +2,18 @@ * @since 1.0.0 */ import { ApiGatewayManagementApiClient } from "@aws-sdk/client-apigatewaymanagementapi"; -import { Context, Effect, Layer } from "effect"; +import { Effect, Layer, ServiceMap } from "effect"; import * as ApiGatewayManagementApiServiceConfig from "./ApiGatewayManagementApiServiceConfig.js"; /** * @since 1.0.0 * @category tags */ -export class ApiGatewayManagementApiClientInstance extends Context.Tag( - "@effect-aws/client-api-gateway-management-api/ApiGatewayManagementApiClientInstance", -)() {} +export class ApiGatewayManagementApiClientInstance + extends ServiceMap.Service()( + "@effect-aws/client-api-gateway-management-api/ApiGatewayManagementApiClientInstance", + ) +{} /** * @since 1.0.0 @@ -30,4 +32,4 @@ export const make = Effect.flatMap( * @since 1.0.0 * @category layers */ -export const layer = Layer.scoped(ApiGatewayManagementApiClientInstance, make); +export const layer = Layer.effect(ApiGatewayManagementApiClientInstance, make); diff --git a/packages/client-api-gateway-management-api/src/ApiGatewayManagementApiService.ts b/packages/client-api-gateway-management-api/src/ApiGatewayManagementApiService.ts index 5108c0e5..e79ba284 100644 --- a/packages/client-api-gateway-management-api/src/ApiGatewayManagementApiService.ts +++ b/packages/client-api-gateway-management-api/src/ApiGatewayManagementApiService.ts @@ -17,7 +17,7 @@ import { import type { HttpHandlerOptions, ServiceLogger } from "@effect-aws/commons"; import { Service } from "@effect-aws/commons"; import type { Cause } from "effect"; -import { Effect, Layer } from "effect"; +import { Effect, Layer, ServiceMap } from "effect"; import * as Instance from "./ApiGatewayManagementApiClientInstance.js"; import * as ApiGatewayManagementApiServiceConfig from "./ApiGatewayManagementApiServiceConfig.js"; import type { ForbiddenError, GoneError, LimitExceededError, PayloadTooLargeError, SdkError } from "./Errors.js"; @@ -40,7 +40,7 @@ interface ApiGatewayManagementApiService$ { options?: HttpHandlerOptions, ): Effect.Effect< DeleteConnectionCommandOutput, - Cause.TimeoutException | SdkError | ForbiddenError | GoneError | LimitExceededError + Cause.TimeoutError | SdkError | ForbiddenError | GoneError | LimitExceededError >; /** @@ -51,7 +51,7 @@ interface ApiGatewayManagementApiService$ { options?: HttpHandlerOptions, ): Effect.Effect< GetConnectionCommandOutput, - Cause.TimeoutException | SdkError | ForbiddenError | GoneError | LimitExceededError + Cause.TimeoutError | SdkError | ForbiddenError | GoneError | LimitExceededError >; /** @@ -62,7 +62,7 @@ interface ApiGatewayManagementApiService$ { options?: HttpHandlerOptions, ): Effect.Effect< PostToConnectionCommandOutput, - Cause.TimeoutException | SdkError | ForbiddenError | GoneError | LimitExceededError | PayloadTooLargeError + Cause.TimeoutError | SdkError | ForbiddenError | GoneError | LimitExceededError | PayloadTooLargeError >; } @@ -87,12 +87,10 @@ export const makeApiGatewayManagementApiService = Effect.gen(function*() { * @since 1.0.0 * @category models */ -export class ApiGatewayManagementApiService - extends Effect.Tag("@effect-aws/client-api-gateway-management-api/ApiGatewayManagementApiService")< - ApiGatewayManagementApiService, - ApiGatewayManagementApiService$ - >() -{ +export class ApiGatewayManagementApiService extends ServiceMap.Service< + ApiGatewayManagementApiService, + ApiGatewayManagementApiService$ +>()("@effect-aws/client-api-gateway-management-api/ApiGatewayManagementApiService") { static readonly defaultLayer = Layer.effect(this, makeApiGatewayManagementApiService).pipe( Layer.provide(Instance.layer), ); diff --git a/packages/client-api-gateway-management-api/src/ApiGatewayManagementApiServiceConfig.ts b/packages/client-api-gateway-management-api/src/ApiGatewayManagementApiServiceConfig.ts index 68a2e4b2..3deab7d9 100644 --- a/packages/client-api-gateway-management-api/src/ApiGatewayManagementApiServiceConfig.ts +++ b/packages/client-api-gateway-management-api/src/ApiGatewayManagementApiServiceConfig.ts @@ -3,18 +3,17 @@ */ import type { ApiGatewayManagementApiClientConfig } from "@aws-sdk/client-apigatewaymanagementapi"; import { ServiceLogger } from "@effect-aws/commons"; -import { Effect, FiberRef, Layer } from "effect"; +import { Effect, Layer, ServiceMap } from "effect"; import { dual } from "effect/Function"; -import { globalValue } from "effect/GlobalValue"; import type { ApiGatewayManagementApiService } from "./ApiGatewayManagementApiService.js"; /** * @since 1.0.0 * @category api-gateway-management-api service config */ -const currentApiGatewayManagementApiServiceConfig = globalValue( +const currentApiGatewayManagementApiServiceConfig = ServiceMap.Reference( "@effect-aws/client-api-gateway-management-api/currentApiGatewayManagementApiServiceConfig", - () => FiberRef.unsafeMake({}), + { defaultValue: () => ({}) }, ); /** @@ -27,7 +26,7 @@ export const withApiGatewayManagementApiServiceConfig: { } = dual( 2, (effect: Effect.Effect, config: ApiGatewayManagementApiService.Config): Effect.Effect => - Effect.locally(effect, currentApiGatewayManagementApiServiceConfig, config), + Effect.provideService(effect, currentApiGatewayManagementApiServiceConfig, config), ); /** @@ -35,7 +34,7 @@ export const withApiGatewayManagementApiServiceConfig: { * @category api-gateway-management-api service config */ export const setApiGatewayManagementApiServiceConfig = (config: ApiGatewayManagementApiService.Config) => - Layer.locallyScoped(currentApiGatewayManagementApiServiceConfig, config); + Layer.succeed(currentApiGatewayManagementApiServiceConfig, config); /** * @since 1.0.0 @@ -43,7 +42,7 @@ export const setApiGatewayManagementApiServiceConfig = (config: ApiGatewayManage */ export const toApiGatewayManagementApiClientConfig: Effect.Effect = Effect.gen( function*() { - const { logger: serviceLogger, ...config } = yield* FiberRef.get(currentApiGatewayManagementApiServiceConfig); + const { logger: serviceLogger, ...config } = yield* currentApiGatewayManagementApiServiceConfig; const logger = serviceLogger === true ? yield* ServiceLogger.toClientLogger(ServiceLogger.defaultServiceLogger) diff --git a/packages/client-api-gateway-management-api/test/ApiGatewayManagementApi.test.ts b/packages/client-api-gateway-management-api/test/ApiGatewayManagementApi.test.ts index 4cf96c5b..ca42513f 100644 --- a/packages/client-api-gateway-management-api/test/ApiGatewayManagementApi.test.ts +++ b/packages/client-api-gateway-management-api/test/ApiGatewayManagementApi.test.ts @@ -29,7 +29,7 @@ describe("ApiGatewayManagementApiClientImpl", () => { const args: PostToConnectionCommandInput = { ConnectionId: "test", Data: "test" }; - const program = ApiGatewayManagementApi.postToConnection(args); + const program = ApiGatewayManagementApi.use((svc) => svc.postToConnection(args)); const result = await pipe( program, @@ -49,7 +49,7 @@ describe("ApiGatewayManagementApiClientImpl", () => { const args: PostToConnectionCommandInput = { ConnectionId: "test", Data: "test" }; - const program = ApiGatewayManagementApi.postToConnection(args); + const program = ApiGatewayManagementApi.use((svc) => svc.postToConnection(args)); const result = await pipe( program, @@ -72,7 +72,7 @@ describe("ApiGatewayManagementApiClientImpl", () => { const args: PostToConnectionCommandInput = { ConnectionId: "test", Data: "test" }; - const program = ApiGatewayManagementApi.postToConnection(args); + const program = ApiGatewayManagementApi.use((svc) => svc.postToConnection(args)); const result = await pipe( program, @@ -96,7 +96,7 @@ describe("ApiGatewayManagementApiClientImpl", () => { const args: PostToConnectionCommandInput = { ConnectionId: "test", Data: "test" }; - const program = ApiGatewayManagementApi.postToConnection(args); + const program = ApiGatewayManagementApi.use((svc) => svc.postToConnection(args)); const result = await pipe( program, @@ -124,7 +124,7 @@ describe("ApiGatewayManagementApiClientImpl", () => { const args: PostToConnectionCommandInput = { ConnectionId: "test", Data: "test" }; - const program = ApiGatewayManagementApi.postToConnection(args); + const program = ApiGatewayManagementApi.use((svc) => svc.postToConnection(args)); const result = await pipe( program, @@ -134,7 +134,7 @@ describe("ApiGatewayManagementApiClientImpl", () => { expect(result).toEqual( Exit.fail( - SdkError({ + new SdkError({ ...new Error("test"), name: "SdkError", message: "test", @@ -159,7 +159,7 @@ describe("ApiGatewayManagementApiClientImpl", () => { const args: PostToConnectionCommandInput = { ConnectionId: "test", Data: "test" }; - const program = ApiGatewayManagementApi.postToConnection(args).pipe( + const program = ApiGatewayManagementApi.use((svc) => svc.postToConnection(args)).pipe( Effect.catchTag("NotHandledException" as any, () => Effect.succeed(null)), ); @@ -169,9 +169,9 @@ describe("ApiGatewayManagementApiClientImpl", () => { Effect.runPromiseExit, ); - expect(result).toEqual( + expect(result).toContainEqual( Exit.fail( - SdkError({ + new SdkError({ ...new Error("test"), name: "SdkError", message: "test", diff --git a/packages/client-api-gateway-v2/.projen/deps.json b/packages/client-api-gateway-v2/.projen/deps.json index cae54096..d47df3c1 100644 --- a/packages/client-api-gateway-v2/.projen/deps.json +++ b/packages/client-api-gateway-v2/.projen/deps.json @@ -7,6 +7,7 @@ }, { "name": "effect", + "version": "4.0.0-beta.8", "type": "build" }, { @@ -16,7 +17,7 @@ }, { "name": "effect", - "version": ">=3.0.4 <4.0.0", + "version": ">=4.0.0 <5.0.0", "type": "peer" }, { diff --git a/packages/client-api-gateway-v2/README.md b/packages/client-api-gateway-v2/README.md index 6bd3caf5..10f6f1a6 100644 --- a/packages/client-api-gateway-v2/README.md +++ b/packages/client-api-gateway-v2/README.md @@ -16,7 +16,7 @@ With default ApiGatewayV2Client instance: ```typescript import { ApiGatewayV2 } from "@effect-aws/client-api-gateway-v2"; -const program = ApiGatewayV2.getApi(args); +const program = ApiGatewayV2.use((svc) => svc.getApi(args)); const result = pipe( program, @@ -30,7 +30,7 @@ With custom ApiGatewayV2Client instance: ```typescript import { ApiGatewayV2 } from "@effect-aws/client-api-gateway-v2"; -const program = ApiGatewayV2.getApi(args); +const program = ApiGatewayV2.use((svc) => svc.getApi(args)); const result = await pipe( program, @@ -46,7 +46,7 @@ With custom ApiGatewayV2Client configuration: ```typescript import { ApiGatewayV2 } from "@effect-aws/client-api-gateway-v2"; -const program = ApiGatewayV2.getApi(args); +const program = ApiGatewayV2.use((svc) => svc.getApi(args)); const result = await pipe( program, diff --git a/packages/client-api-gateway-v2/package.json b/packages/client-api-gateway-v2/package.json index 3f36b56a..5ba9034d 100644 --- a/packages/client-api-gateway-v2/package.json +++ b/packages/client-api-gateway-v2/package.json @@ -26,11 +26,11 @@ }, "devDependencies": { "@types/node": "ts5.4", - "effect": "^3.16.4", + "effect": "4.0.0-beta.8", "typescript": "^5.4.2" }, "peerDependencies": { - "effect": ">=3.0.4 <4.0.0" + "effect": ">=4.0.0 <5.0.0" }, "dependencies": { "@aws-sdk/client-apigatewayv2": "^3", diff --git a/packages/client-api-gateway-v2/src/ApiGatewayV2ClientInstance.ts b/packages/client-api-gateway-v2/src/ApiGatewayV2ClientInstance.ts index 628914c9..1b2af694 100644 --- a/packages/client-api-gateway-v2/src/ApiGatewayV2ClientInstance.ts +++ b/packages/client-api-gateway-v2/src/ApiGatewayV2ClientInstance.ts @@ -2,16 +2,16 @@ * @since 1.0.0 */ import { ApiGatewayV2Client } from "@aws-sdk/client-apigatewayv2"; -import { Context, Effect, Layer } from "effect"; +import { Effect, Layer, ServiceMap } from "effect"; import * as ApiGatewayV2ServiceConfig from "./ApiGatewayV2ServiceConfig.js"; /** * @since 1.0.0 * @category tags */ -export class ApiGatewayV2ClientInstance extends Context.Tag( +export class ApiGatewayV2ClientInstance extends ServiceMap.Service()( "@effect-aws/client-api-gateway-v2/ApiGatewayV2ClientInstance", -)() {} +) {} /** * @since 1.0.0 @@ -30,4 +30,4 @@ export const make = Effect.flatMap( * @since 1.0.0 * @category layers */ -export const layer = Layer.scoped(ApiGatewayV2ClientInstance, make); +export const layer = Layer.effect(ApiGatewayV2ClientInstance, make); diff --git a/packages/client-api-gateway-v2/src/ApiGatewayV2Service.ts b/packages/client-api-gateway-v2/src/ApiGatewayV2Service.ts index 480772f4..51970271 100644 --- a/packages/client-api-gateway-v2/src/ApiGatewayV2Service.ts +++ b/packages/client-api-gateway-v2/src/ApiGatewayV2Service.ts @@ -317,7 +317,7 @@ import { import type { HttpHandlerOptions, ServiceLogger } from "@effect-aws/commons"; import { Service } from "@effect-aws/commons"; import type { Cause } from "effect"; -import { Effect, Layer } from "effect"; +import { Effect, Layer, ServiceMap } from "effect"; import * as Instance from "./ApiGatewayV2ClientInstance.js"; import * as ApiGatewayV2ServiceConfig from "./ApiGatewayV2ServiceConfig.js"; import type { @@ -447,7 +447,7 @@ interface ApiGatewayV2Service$ { options?: HttpHandlerOptions, ): Effect.Effect< CreateApiCommandOutput, - Cause.TimeoutException | SdkError | BadRequestError | ConflictError | NotFoundError | TooManyRequestsError + Cause.TimeoutError | SdkError | BadRequestError | ConflictError | NotFoundError | TooManyRequestsError >; /** @@ -458,7 +458,7 @@ interface ApiGatewayV2Service$ { options?: HttpHandlerOptions, ): Effect.Effect< CreateApiMappingCommandOutput, - Cause.TimeoutException | SdkError | BadRequestError | ConflictError | NotFoundError | TooManyRequestsError + Cause.TimeoutError | SdkError | BadRequestError | ConflictError | NotFoundError | TooManyRequestsError >; /** @@ -469,7 +469,7 @@ interface ApiGatewayV2Service$ { options?: HttpHandlerOptions, ): Effect.Effect< CreateAuthorizerCommandOutput, - Cause.TimeoutException | SdkError | BadRequestError | ConflictError | NotFoundError | TooManyRequestsError + Cause.TimeoutError | SdkError | BadRequestError | ConflictError | NotFoundError | TooManyRequestsError >; /** @@ -480,7 +480,7 @@ interface ApiGatewayV2Service$ { options?: HttpHandlerOptions, ): Effect.Effect< CreateDeploymentCommandOutput, - Cause.TimeoutException | SdkError | BadRequestError | ConflictError | NotFoundError | TooManyRequestsError + Cause.TimeoutError | SdkError | BadRequestError | ConflictError | NotFoundError | TooManyRequestsError >; /** @@ -491,7 +491,7 @@ interface ApiGatewayV2Service$ { options?: HttpHandlerOptions, ): Effect.Effect< CreateDomainNameCommandOutput, - | Cause.TimeoutException + | Cause.TimeoutError | SdkError | AccessDeniedError | BadRequestError @@ -508,7 +508,7 @@ interface ApiGatewayV2Service$ { options?: HttpHandlerOptions, ): Effect.Effect< CreateIntegrationCommandOutput, - Cause.TimeoutException | SdkError | BadRequestError | ConflictError | NotFoundError | TooManyRequestsError + Cause.TimeoutError | SdkError | BadRequestError | ConflictError | NotFoundError | TooManyRequestsError >; /** @@ -519,7 +519,7 @@ interface ApiGatewayV2Service$ { options?: HttpHandlerOptions, ): Effect.Effect< CreateIntegrationResponseCommandOutput, - Cause.TimeoutException | SdkError | BadRequestError | ConflictError | NotFoundError | TooManyRequestsError + Cause.TimeoutError | SdkError | BadRequestError | ConflictError | NotFoundError | TooManyRequestsError >; /** @@ -530,7 +530,7 @@ interface ApiGatewayV2Service$ { options?: HttpHandlerOptions, ): Effect.Effect< CreateModelCommandOutput, - Cause.TimeoutException | SdkError | BadRequestError | ConflictError | NotFoundError | TooManyRequestsError + Cause.TimeoutError | SdkError | BadRequestError | ConflictError | NotFoundError | TooManyRequestsError >; /** @@ -541,7 +541,7 @@ interface ApiGatewayV2Service$ { options?: HttpHandlerOptions, ): Effect.Effect< CreatePortalCommandOutput, - Cause.TimeoutException | SdkError | AccessDeniedError | BadRequestError | TooManyRequestsError + Cause.TimeoutError | SdkError | AccessDeniedError | BadRequestError | TooManyRequestsError >; /** @@ -552,7 +552,7 @@ interface ApiGatewayV2Service$ { options?: HttpHandlerOptions, ): Effect.Effect< CreatePortalProductCommandOutput, - Cause.TimeoutException | SdkError | AccessDeniedError | BadRequestError | TooManyRequestsError + Cause.TimeoutError | SdkError | AccessDeniedError | BadRequestError | TooManyRequestsError >; /** @@ -563,7 +563,7 @@ interface ApiGatewayV2Service$ { options?: HttpHandlerOptions, ): Effect.Effect< CreateProductPageCommandOutput, - Cause.TimeoutException | SdkError | AccessDeniedError | BadRequestError | NotFoundError | TooManyRequestsError + Cause.TimeoutError | SdkError | AccessDeniedError | BadRequestError | NotFoundError | TooManyRequestsError >; /** @@ -574,7 +574,7 @@ interface ApiGatewayV2Service$ { options?: HttpHandlerOptions, ): Effect.Effect< CreateProductRestEndpointPageCommandOutput, - Cause.TimeoutException | SdkError | AccessDeniedError | BadRequestError | NotFoundError | TooManyRequestsError + Cause.TimeoutError | SdkError | AccessDeniedError | BadRequestError | NotFoundError | TooManyRequestsError >; /** @@ -585,7 +585,7 @@ interface ApiGatewayV2Service$ { options?: HttpHandlerOptions, ): Effect.Effect< CreateRouteCommandOutput, - Cause.TimeoutException | SdkError | BadRequestError | ConflictError | NotFoundError | TooManyRequestsError + Cause.TimeoutError | SdkError | BadRequestError | ConflictError | NotFoundError | TooManyRequestsError >; /** @@ -596,7 +596,7 @@ interface ApiGatewayV2Service$ { options?: HttpHandlerOptions, ): Effect.Effect< CreateRouteResponseCommandOutput, - Cause.TimeoutException | SdkError | BadRequestError | ConflictError | NotFoundError | TooManyRequestsError + Cause.TimeoutError | SdkError | BadRequestError | ConflictError | NotFoundError | TooManyRequestsError >; /** @@ -607,7 +607,7 @@ interface ApiGatewayV2Service$ { options?: HttpHandlerOptions, ): Effect.Effect< CreateRoutingRuleCommandOutput, - Cause.TimeoutException | SdkError | BadRequestError | ConflictError | NotFoundError | TooManyRequestsError + Cause.TimeoutError | SdkError | BadRequestError | ConflictError | NotFoundError | TooManyRequestsError >; /** @@ -618,7 +618,7 @@ interface ApiGatewayV2Service$ { options?: HttpHandlerOptions, ): Effect.Effect< CreateStageCommandOutput, - Cause.TimeoutException | SdkError | BadRequestError | ConflictError | NotFoundError | TooManyRequestsError + Cause.TimeoutError | SdkError | BadRequestError | ConflictError | NotFoundError | TooManyRequestsError >; /** @@ -629,7 +629,7 @@ interface ApiGatewayV2Service$ { options?: HttpHandlerOptions, ): Effect.Effect< CreateVpcLinkCommandOutput, - Cause.TimeoutException | SdkError | BadRequestError | TooManyRequestsError + Cause.TimeoutError | SdkError | BadRequestError | TooManyRequestsError >; /** @@ -640,7 +640,7 @@ interface ApiGatewayV2Service$ { options?: HttpHandlerOptions, ): Effect.Effect< DeleteAccessLogSettingsCommandOutput, - Cause.TimeoutException | SdkError | NotFoundError | TooManyRequestsError + Cause.TimeoutError | SdkError | NotFoundError | TooManyRequestsError >; /** @@ -651,7 +651,7 @@ interface ApiGatewayV2Service$ { options?: HttpHandlerOptions, ): Effect.Effect< DeleteApiCommandOutput, - Cause.TimeoutException | SdkError | NotFoundError | TooManyRequestsError + Cause.TimeoutError | SdkError | NotFoundError | TooManyRequestsError >; /** @@ -662,7 +662,7 @@ interface ApiGatewayV2Service$ { options?: HttpHandlerOptions, ): Effect.Effect< DeleteApiMappingCommandOutput, - Cause.TimeoutException | SdkError | BadRequestError | NotFoundError | TooManyRequestsError + Cause.TimeoutError | SdkError | BadRequestError | NotFoundError | TooManyRequestsError >; /** @@ -673,7 +673,7 @@ interface ApiGatewayV2Service$ { options?: HttpHandlerOptions, ): Effect.Effect< DeleteAuthorizerCommandOutput, - Cause.TimeoutException | SdkError | NotFoundError | TooManyRequestsError + Cause.TimeoutError | SdkError | NotFoundError | TooManyRequestsError >; /** @@ -684,7 +684,7 @@ interface ApiGatewayV2Service$ { options?: HttpHandlerOptions, ): Effect.Effect< DeleteCorsConfigurationCommandOutput, - Cause.TimeoutException | SdkError | NotFoundError | TooManyRequestsError + Cause.TimeoutError | SdkError | NotFoundError | TooManyRequestsError >; /** @@ -695,7 +695,7 @@ interface ApiGatewayV2Service$ { options?: HttpHandlerOptions, ): Effect.Effect< DeleteDeploymentCommandOutput, - Cause.TimeoutException | SdkError | NotFoundError | TooManyRequestsError + Cause.TimeoutError | SdkError | NotFoundError | TooManyRequestsError >; /** @@ -706,7 +706,7 @@ interface ApiGatewayV2Service$ { options?: HttpHandlerOptions, ): Effect.Effect< DeleteDomainNameCommandOutput, - Cause.TimeoutException | SdkError | NotFoundError | TooManyRequestsError + Cause.TimeoutError | SdkError | NotFoundError | TooManyRequestsError >; /** @@ -717,7 +717,7 @@ interface ApiGatewayV2Service$ { options?: HttpHandlerOptions, ): Effect.Effect< DeleteIntegrationCommandOutput, - Cause.TimeoutException | SdkError | NotFoundError | TooManyRequestsError + Cause.TimeoutError | SdkError | NotFoundError | TooManyRequestsError >; /** @@ -728,7 +728,7 @@ interface ApiGatewayV2Service$ { options?: HttpHandlerOptions, ): Effect.Effect< DeleteIntegrationResponseCommandOutput, - Cause.TimeoutException | SdkError | NotFoundError | TooManyRequestsError + Cause.TimeoutError | SdkError | NotFoundError | TooManyRequestsError >; /** @@ -739,7 +739,7 @@ interface ApiGatewayV2Service$ { options?: HttpHandlerOptions, ): Effect.Effect< DeleteModelCommandOutput, - Cause.TimeoutException | SdkError | NotFoundError | TooManyRequestsError + Cause.TimeoutError | SdkError | NotFoundError | TooManyRequestsError >; /** @@ -750,7 +750,7 @@ interface ApiGatewayV2Service$ { options?: HttpHandlerOptions, ): Effect.Effect< DeletePortalCommandOutput, - Cause.TimeoutException | SdkError | AccessDeniedError | BadRequestError | TooManyRequestsError + Cause.TimeoutError | SdkError | AccessDeniedError | BadRequestError | TooManyRequestsError >; /** @@ -761,7 +761,7 @@ interface ApiGatewayV2Service$ { options?: HttpHandlerOptions, ): Effect.Effect< DeletePortalProductCommandOutput, - Cause.TimeoutException | SdkError | AccessDeniedError | BadRequestError | NotFoundError | TooManyRequestsError + Cause.TimeoutError | SdkError | AccessDeniedError | BadRequestError | NotFoundError | TooManyRequestsError >; /** @@ -772,7 +772,7 @@ interface ApiGatewayV2Service$ { options?: HttpHandlerOptions, ): Effect.Effect< DeletePortalProductSharingPolicyCommandOutput, - Cause.TimeoutException | SdkError | AccessDeniedError | BadRequestError | NotFoundError | TooManyRequestsError + Cause.TimeoutError | SdkError | AccessDeniedError | BadRequestError | NotFoundError | TooManyRequestsError >; /** @@ -783,7 +783,7 @@ interface ApiGatewayV2Service$ { options?: HttpHandlerOptions, ): Effect.Effect< DeleteProductPageCommandOutput, - Cause.TimeoutException | SdkError | AccessDeniedError | BadRequestError | NotFoundError | TooManyRequestsError + Cause.TimeoutError | SdkError | AccessDeniedError | BadRequestError | NotFoundError | TooManyRequestsError >; /** @@ -794,7 +794,7 @@ interface ApiGatewayV2Service$ { options?: HttpHandlerOptions, ): Effect.Effect< DeleteProductRestEndpointPageCommandOutput, - Cause.TimeoutException | SdkError | AccessDeniedError | BadRequestError | NotFoundError | TooManyRequestsError + Cause.TimeoutError | SdkError | AccessDeniedError | BadRequestError | NotFoundError | TooManyRequestsError >; /** @@ -805,7 +805,7 @@ interface ApiGatewayV2Service$ { options?: HttpHandlerOptions, ): Effect.Effect< DeleteRouteCommandOutput, - Cause.TimeoutException | SdkError | NotFoundError | TooManyRequestsError + Cause.TimeoutError | SdkError | NotFoundError | TooManyRequestsError >; /** @@ -816,7 +816,7 @@ interface ApiGatewayV2Service$ { options?: HttpHandlerOptions, ): Effect.Effect< DeleteRouteRequestParameterCommandOutput, - Cause.TimeoutException | SdkError | NotFoundError | TooManyRequestsError + Cause.TimeoutError | SdkError | NotFoundError | TooManyRequestsError >; /** @@ -827,7 +827,7 @@ interface ApiGatewayV2Service$ { options?: HttpHandlerOptions, ): Effect.Effect< DeleteRouteResponseCommandOutput, - Cause.TimeoutException | SdkError | NotFoundError | TooManyRequestsError + Cause.TimeoutError | SdkError | NotFoundError | TooManyRequestsError >; /** @@ -838,7 +838,7 @@ interface ApiGatewayV2Service$ { options?: HttpHandlerOptions, ): Effect.Effect< DeleteRouteSettingsCommandOutput, - Cause.TimeoutException | SdkError | NotFoundError | TooManyRequestsError + Cause.TimeoutError | SdkError | NotFoundError | TooManyRequestsError >; /** @@ -849,7 +849,7 @@ interface ApiGatewayV2Service$ { options?: HttpHandlerOptions, ): Effect.Effect< DeleteRoutingRuleCommandOutput, - Cause.TimeoutException | SdkError | BadRequestError | NotFoundError | TooManyRequestsError + Cause.TimeoutError | SdkError | BadRequestError | NotFoundError | TooManyRequestsError >; /** @@ -860,7 +860,7 @@ interface ApiGatewayV2Service$ { options?: HttpHandlerOptions, ): Effect.Effect< DeleteStageCommandOutput, - Cause.TimeoutException | SdkError | NotFoundError | TooManyRequestsError + Cause.TimeoutError | SdkError | NotFoundError | TooManyRequestsError >; /** @@ -871,7 +871,7 @@ interface ApiGatewayV2Service$ { options?: HttpHandlerOptions, ): Effect.Effect< DeleteVpcLinkCommandOutput, - Cause.TimeoutException | SdkError | NotFoundError | TooManyRequestsError + Cause.TimeoutError | SdkError | NotFoundError | TooManyRequestsError >; /** @@ -882,7 +882,7 @@ interface ApiGatewayV2Service$ { options?: HttpHandlerOptions, ): Effect.Effect< DisablePortalCommandOutput, - | Cause.TimeoutException + | Cause.TimeoutError | SdkError | AccessDeniedError | BadRequestError @@ -899,7 +899,7 @@ interface ApiGatewayV2Service$ { options?: HttpHandlerOptions, ): Effect.Effect< ExportApiCommandOutput, - Cause.TimeoutException | SdkError | BadRequestError | NotFoundError | TooManyRequestsError + Cause.TimeoutError | SdkError | BadRequestError | NotFoundError | TooManyRequestsError >; /** @@ -910,7 +910,7 @@ interface ApiGatewayV2Service$ { options?: HttpHandlerOptions, ): Effect.Effect< GetApiCommandOutput, - Cause.TimeoutException | SdkError | NotFoundError | TooManyRequestsError + Cause.TimeoutError | SdkError | NotFoundError | TooManyRequestsError >; /** @@ -921,7 +921,7 @@ interface ApiGatewayV2Service$ { options?: HttpHandlerOptions, ): Effect.Effect< GetApiMappingCommandOutput, - Cause.TimeoutException | SdkError | BadRequestError | NotFoundError | TooManyRequestsError + Cause.TimeoutError | SdkError | BadRequestError | NotFoundError | TooManyRequestsError >; /** @@ -932,7 +932,7 @@ interface ApiGatewayV2Service$ { options?: HttpHandlerOptions, ): Effect.Effect< GetApiMappingsCommandOutput, - Cause.TimeoutException | SdkError | BadRequestError | NotFoundError | TooManyRequestsError + Cause.TimeoutError | SdkError | BadRequestError | NotFoundError | TooManyRequestsError >; /** @@ -943,7 +943,7 @@ interface ApiGatewayV2Service$ { options?: HttpHandlerOptions, ): Effect.Effect< GetApisCommandOutput, - Cause.TimeoutException | SdkError | BadRequestError | NotFoundError | TooManyRequestsError + Cause.TimeoutError | SdkError | BadRequestError | NotFoundError | TooManyRequestsError >; /** @@ -954,7 +954,7 @@ interface ApiGatewayV2Service$ { options?: HttpHandlerOptions, ): Effect.Effect< GetAuthorizerCommandOutput, - Cause.TimeoutException | SdkError | NotFoundError | TooManyRequestsError + Cause.TimeoutError | SdkError | NotFoundError | TooManyRequestsError >; /** @@ -965,7 +965,7 @@ interface ApiGatewayV2Service$ { options?: HttpHandlerOptions, ): Effect.Effect< GetAuthorizersCommandOutput, - Cause.TimeoutException | SdkError | BadRequestError | NotFoundError | TooManyRequestsError + Cause.TimeoutError | SdkError | BadRequestError | NotFoundError | TooManyRequestsError >; /** @@ -976,7 +976,7 @@ interface ApiGatewayV2Service$ { options?: HttpHandlerOptions, ): Effect.Effect< GetDeploymentCommandOutput, - Cause.TimeoutException | SdkError | NotFoundError | TooManyRequestsError + Cause.TimeoutError | SdkError | NotFoundError | TooManyRequestsError >; /** @@ -987,7 +987,7 @@ interface ApiGatewayV2Service$ { options?: HttpHandlerOptions, ): Effect.Effect< GetDeploymentsCommandOutput, - Cause.TimeoutException | SdkError | BadRequestError | NotFoundError | TooManyRequestsError + Cause.TimeoutError | SdkError | BadRequestError | NotFoundError | TooManyRequestsError >; /** @@ -998,7 +998,7 @@ interface ApiGatewayV2Service$ { options?: HttpHandlerOptions, ): Effect.Effect< GetDomainNameCommandOutput, - Cause.TimeoutException | SdkError | NotFoundError | TooManyRequestsError + Cause.TimeoutError | SdkError | NotFoundError | TooManyRequestsError >; /** @@ -1009,7 +1009,7 @@ interface ApiGatewayV2Service$ { options?: HttpHandlerOptions, ): Effect.Effect< GetDomainNamesCommandOutput, - Cause.TimeoutException | SdkError | BadRequestError | NotFoundError | TooManyRequestsError + Cause.TimeoutError | SdkError | BadRequestError | NotFoundError | TooManyRequestsError >; /** @@ -1020,7 +1020,7 @@ interface ApiGatewayV2Service$ { options?: HttpHandlerOptions, ): Effect.Effect< GetIntegrationCommandOutput, - Cause.TimeoutException | SdkError | NotFoundError | TooManyRequestsError + Cause.TimeoutError | SdkError | NotFoundError | TooManyRequestsError >; /** @@ -1031,7 +1031,7 @@ interface ApiGatewayV2Service$ { options?: HttpHandlerOptions, ): Effect.Effect< GetIntegrationResponseCommandOutput, - Cause.TimeoutException | SdkError | NotFoundError | TooManyRequestsError + Cause.TimeoutError | SdkError | NotFoundError | TooManyRequestsError >; /** @@ -1042,7 +1042,7 @@ interface ApiGatewayV2Service$ { options?: HttpHandlerOptions, ): Effect.Effect< GetIntegrationResponsesCommandOutput, - Cause.TimeoutException | SdkError | BadRequestError | NotFoundError | TooManyRequestsError + Cause.TimeoutError | SdkError | BadRequestError | NotFoundError | TooManyRequestsError >; /** @@ -1053,7 +1053,7 @@ interface ApiGatewayV2Service$ { options?: HttpHandlerOptions, ): Effect.Effect< GetIntegrationsCommandOutput, - Cause.TimeoutException | SdkError | BadRequestError | NotFoundError | TooManyRequestsError + Cause.TimeoutError | SdkError | BadRequestError | NotFoundError | TooManyRequestsError >; /** @@ -1064,7 +1064,7 @@ interface ApiGatewayV2Service$ { options?: HttpHandlerOptions, ): Effect.Effect< GetModelCommandOutput, - Cause.TimeoutException | SdkError | NotFoundError | TooManyRequestsError + Cause.TimeoutError | SdkError | NotFoundError | TooManyRequestsError >; /** @@ -1075,7 +1075,7 @@ interface ApiGatewayV2Service$ { options?: HttpHandlerOptions, ): Effect.Effect< GetModelTemplateCommandOutput, - Cause.TimeoutException | SdkError | NotFoundError | TooManyRequestsError + Cause.TimeoutError | SdkError | NotFoundError | TooManyRequestsError >; /** @@ -1086,7 +1086,7 @@ interface ApiGatewayV2Service$ { options?: HttpHandlerOptions, ): Effect.Effect< GetModelsCommandOutput, - Cause.TimeoutException | SdkError | BadRequestError | NotFoundError | TooManyRequestsError + Cause.TimeoutError | SdkError | BadRequestError | NotFoundError | TooManyRequestsError >; /** @@ -1097,7 +1097,7 @@ interface ApiGatewayV2Service$ { options?: HttpHandlerOptions, ): Effect.Effect< GetPortalCommandOutput, - Cause.TimeoutException | SdkError | AccessDeniedError | BadRequestError | NotFoundError | TooManyRequestsError + Cause.TimeoutError | SdkError | AccessDeniedError | BadRequestError | NotFoundError | TooManyRequestsError >; /** @@ -1108,7 +1108,7 @@ interface ApiGatewayV2Service$ { options?: HttpHandlerOptions, ): Effect.Effect< GetPortalProductCommandOutput, - Cause.TimeoutException | SdkError | AccessDeniedError | BadRequestError | NotFoundError | TooManyRequestsError + Cause.TimeoutError | SdkError | AccessDeniedError | BadRequestError | NotFoundError | TooManyRequestsError >; /** @@ -1119,7 +1119,7 @@ interface ApiGatewayV2Service$ { options?: HttpHandlerOptions, ): Effect.Effect< GetPortalProductSharingPolicyCommandOutput, - Cause.TimeoutException | SdkError | AccessDeniedError | BadRequestError | NotFoundError | TooManyRequestsError + Cause.TimeoutError | SdkError | AccessDeniedError | BadRequestError | NotFoundError | TooManyRequestsError >; /** @@ -1130,7 +1130,7 @@ interface ApiGatewayV2Service$ { options?: HttpHandlerOptions, ): Effect.Effect< GetProductPageCommandOutput, - Cause.TimeoutException | SdkError | AccessDeniedError | BadRequestError | NotFoundError | TooManyRequestsError + Cause.TimeoutError | SdkError | AccessDeniedError | BadRequestError | NotFoundError | TooManyRequestsError >; /** @@ -1141,7 +1141,7 @@ interface ApiGatewayV2Service$ { options?: HttpHandlerOptions, ): Effect.Effect< GetProductRestEndpointPageCommandOutput, - Cause.TimeoutException | SdkError | AccessDeniedError | BadRequestError | NotFoundError | TooManyRequestsError + Cause.TimeoutError | SdkError | AccessDeniedError | BadRequestError | NotFoundError | TooManyRequestsError >; /** @@ -1152,7 +1152,7 @@ interface ApiGatewayV2Service$ { options?: HttpHandlerOptions, ): Effect.Effect< GetRouteCommandOutput, - Cause.TimeoutException | SdkError | NotFoundError | TooManyRequestsError + Cause.TimeoutError | SdkError | NotFoundError | TooManyRequestsError >; /** @@ -1163,7 +1163,7 @@ interface ApiGatewayV2Service$ { options?: HttpHandlerOptions, ): Effect.Effect< GetRouteResponseCommandOutput, - Cause.TimeoutException | SdkError | NotFoundError | TooManyRequestsError + Cause.TimeoutError | SdkError | NotFoundError | TooManyRequestsError >; /** @@ -1174,7 +1174,7 @@ interface ApiGatewayV2Service$ { options?: HttpHandlerOptions, ): Effect.Effect< GetRouteResponsesCommandOutput, - Cause.TimeoutException | SdkError | BadRequestError | NotFoundError | TooManyRequestsError + Cause.TimeoutError | SdkError | BadRequestError | NotFoundError | TooManyRequestsError >; /** @@ -1185,7 +1185,7 @@ interface ApiGatewayV2Service$ { options?: HttpHandlerOptions, ): Effect.Effect< GetRoutesCommandOutput, - Cause.TimeoutException | SdkError | BadRequestError | NotFoundError | TooManyRequestsError + Cause.TimeoutError | SdkError | BadRequestError | NotFoundError | TooManyRequestsError >; /** @@ -1196,7 +1196,7 @@ interface ApiGatewayV2Service$ { options?: HttpHandlerOptions, ): Effect.Effect< GetRoutingRuleCommandOutput, - Cause.TimeoutException | SdkError | BadRequestError | NotFoundError | TooManyRequestsError + Cause.TimeoutError | SdkError | BadRequestError | NotFoundError | TooManyRequestsError >; /** @@ -1207,7 +1207,7 @@ interface ApiGatewayV2Service$ { options?: HttpHandlerOptions, ): Effect.Effect< GetStageCommandOutput, - Cause.TimeoutException | SdkError | NotFoundError | TooManyRequestsError + Cause.TimeoutError | SdkError | NotFoundError | TooManyRequestsError >; /** @@ -1218,7 +1218,7 @@ interface ApiGatewayV2Service$ { options?: HttpHandlerOptions, ): Effect.Effect< GetStagesCommandOutput, - Cause.TimeoutException | SdkError | BadRequestError | NotFoundError | TooManyRequestsError + Cause.TimeoutError | SdkError | BadRequestError | NotFoundError | TooManyRequestsError >; /** @@ -1229,7 +1229,7 @@ interface ApiGatewayV2Service$ { options?: HttpHandlerOptions, ): Effect.Effect< GetTagsCommandOutput, - Cause.TimeoutException | SdkError | BadRequestError | ConflictError | NotFoundError | TooManyRequestsError + Cause.TimeoutError | SdkError | BadRequestError | ConflictError | NotFoundError | TooManyRequestsError >; /** @@ -1240,7 +1240,7 @@ interface ApiGatewayV2Service$ { options?: HttpHandlerOptions, ): Effect.Effect< GetVpcLinkCommandOutput, - Cause.TimeoutException | SdkError | NotFoundError | TooManyRequestsError + Cause.TimeoutError | SdkError | NotFoundError | TooManyRequestsError >; /** @@ -1251,7 +1251,7 @@ interface ApiGatewayV2Service$ { options?: HttpHandlerOptions, ): Effect.Effect< GetVpcLinksCommandOutput, - Cause.TimeoutException | SdkError | BadRequestError | TooManyRequestsError + Cause.TimeoutError | SdkError | BadRequestError | TooManyRequestsError >; /** @@ -1262,7 +1262,7 @@ interface ApiGatewayV2Service$ { options?: HttpHandlerOptions, ): Effect.Effect< ImportApiCommandOutput, - Cause.TimeoutException | SdkError | BadRequestError | ConflictError | NotFoundError | TooManyRequestsError + Cause.TimeoutError | SdkError | BadRequestError | ConflictError | NotFoundError | TooManyRequestsError >; /** @@ -1273,7 +1273,7 @@ interface ApiGatewayV2Service$ { options?: HttpHandlerOptions, ): Effect.Effect< ListPortalProductsCommandOutput, - Cause.TimeoutException | SdkError | AccessDeniedError | BadRequestError | TooManyRequestsError + Cause.TimeoutError | SdkError | AccessDeniedError | BadRequestError | TooManyRequestsError >; /** @@ -1284,7 +1284,7 @@ interface ApiGatewayV2Service$ { options?: HttpHandlerOptions, ): Effect.Effect< ListPortalsCommandOutput, - Cause.TimeoutException | SdkError | AccessDeniedError | BadRequestError | TooManyRequestsError + Cause.TimeoutError | SdkError | AccessDeniedError | BadRequestError | TooManyRequestsError >; /** @@ -1295,7 +1295,7 @@ interface ApiGatewayV2Service$ { options?: HttpHandlerOptions, ): Effect.Effect< ListProductPagesCommandOutput, - Cause.TimeoutException | SdkError | AccessDeniedError | BadRequestError | NotFoundError | TooManyRequestsError + Cause.TimeoutError | SdkError | AccessDeniedError | BadRequestError | NotFoundError | TooManyRequestsError >; /** @@ -1306,7 +1306,7 @@ interface ApiGatewayV2Service$ { options?: HttpHandlerOptions, ): Effect.Effect< ListProductRestEndpointPagesCommandOutput, - Cause.TimeoutException | SdkError | AccessDeniedError | BadRequestError | NotFoundError | TooManyRequestsError + Cause.TimeoutError | SdkError | AccessDeniedError | BadRequestError | NotFoundError | TooManyRequestsError >; /** @@ -1317,7 +1317,7 @@ interface ApiGatewayV2Service$ { options?: HttpHandlerOptions, ): Effect.Effect< ListRoutingRulesCommandOutput, - Cause.TimeoutException | SdkError | BadRequestError | NotFoundError | TooManyRequestsError + Cause.TimeoutError | SdkError | BadRequestError | NotFoundError | TooManyRequestsError >; /** @@ -1328,7 +1328,7 @@ interface ApiGatewayV2Service$ { options?: HttpHandlerOptions, ): Effect.Effect< PreviewPortalCommandOutput, - | Cause.TimeoutException + | Cause.TimeoutError | SdkError | AccessDeniedError | BadRequestError @@ -1345,7 +1345,7 @@ interface ApiGatewayV2Service$ { options?: HttpHandlerOptions, ): Effect.Effect< PublishPortalCommandOutput, - | Cause.TimeoutException + | Cause.TimeoutError | SdkError | AccessDeniedError | BadRequestError @@ -1362,7 +1362,7 @@ interface ApiGatewayV2Service$ { options?: HttpHandlerOptions, ): Effect.Effect< PutPortalProductSharingPolicyCommandOutput, - Cause.TimeoutException | SdkError | AccessDeniedError | BadRequestError | NotFoundError | TooManyRequestsError + Cause.TimeoutError | SdkError | AccessDeniedError | BadRequestError | NotFoundError | TooManyRequestsError >; /** @@ -1373,7 +1373,7 @@ interface ApiGatewayV2Service$ { options?: HttpHandlerOptions, ): Effect.Effect< PutRoutingRuleCommandOutput, - Cause.TimeoutException | SdkError | BadRequestError | ConflictError | NotFoundError | TooManyRequestsError + Cause.TimeoutError | SdkError | BadRequestError | ConflictError | NotFoundError | TooManyRequestsError >; /** @@ -1384,7 +1384,7 @@ interface ApiGatewayV2Service$ { options?: HttpHandlerOptions, ): Effect.Effect< ReimportApiCommandOutput, - Cause.TimeoutException | SdkError | BadRequestError | ConflictError | NotFoundError | TooManyRequestsError + Cause.TimeoutError | SdkError | BadRequestError | ConflictError | NotFoundError | TooManyRequestsError >; /** @@ -1395,7 +1395,7 @@ interface ApiGatewayV2Service$ { options?: HttpHandlerOptions, ): Effect.Effect< ResetAuthorizersCacheCommandOutput, - Cause.TimeoutException | SdkError | NotFoundError | TooManyRequestsError + Cause.TimeoutError | SdkError | NotFoundError | TooManyRequestsError >; /** @@ -1406,7 +1406,7 @@ interface ApiGatewayV2Service$ { options?: HttpHandlerOptions, ): Effect.Effect< TagResourceCommandOutput, - Cause.TimeoutException | SdkError | BadRequestError | ConflictError | NotFoundError | TooManyRequestsError + Cause.TimeoutError | SdkError | BadRequestError | ConflictError | NotFoundError | TooManyRequestsError >; /** @@ -1417,7 +1417,7 @@ interface ApiGatewayV2Service$ { options?: HttpHandlerOptions, ): Effect.Effect< UntagResourceCommandOutput, - Cause.TimeoutException | SdkError | BadRequestError | ConflictError | NotFoundError | TooManyRequestsError + Cause.TimeoutError | SdkError | BadRequestError | ConflictError | NotFoundError | TooManyRequestsError >; /** @@ -1428,7 +1428,7 @@ interface ApiGatewayV2Service$ { options?: HttpHandlerOptions, ): Effect.Effect< UpdateApiCommandOutput, - Cause.TimeoutException | SdkError | BadRequestError | ConflictError | NotFoundError | TooManyRequestsError + Cause.TimeoutError | SdkError | BadRequestError | ConflictError | NotFoundError | TooManyRequestsError >; /** @@ -1439,7 +1439,7 @@ interface ApiGatewayV2Service$ { options?: HttpHandlerOptions, ): Effect.Effect< UpdateApiMappingCommandOutput, - Cause.TimeoutException | SdkError | BadRequestError | ConflictError | NotFoundError | TooManyRequestsError + Cause.TimeoutError | SdkError | BadRequestError | ConflictError | NotFoundError | TooManyRequestsError >; /** @@ -1450,7 +1450,7 @@ interface ApiGatewayV2Service$ { options?: HttpHandlerOptions, ): Effect.Effect< UpdateAuthorizerCommandOutput, - Cause.TimeoutException | SdkError | BadRequestError | ConflictError | NotFoundError | TooManyRequestsError + Cause.TimeoutError | SdkError | BadRequestError | ConflictError | NotFoundError | TooManyRequestsError >; /** @@ -1461,7 +1461,7 @@ interface ApiGatewayV2Service$ { options?: HttpHandlerOptions, ): Effect.Effect< UpdateDeploymentCommandOutput, - Cause.TimeoutException | SdkError | BadRequestError | ConflictError | NotFoundError | TooManyRequestsError + Cause.TimeoutError | SdkError | BadRequestError | ConflictError | NotFoundError | TooManyRequestsError >; /** @@ -1472,7 +1472,7 @@ interface ApiGatewayV2Service$ { options?: HttpHandlerOptions, ): Effect.Effect< UpdateDomainNameCommandOutput, - Cause.TimeoutException | SdkError | BadRequestError | ConflictError | NotFoundError | TooManyRequestsError + Cause.TimeoutError | SdkError | BadRequestError | ConflictError | NotFoundError | TooManyRequestsError >; /** @@ -1483,7 +1483,7 @@ interface ApiGatewayV2Service$ { options?: HttpHandlerOptions, ): Effect.Effect< UpdateIntegrationCommandOutput, - Cause.TimeoutException | SdkError | BadRequestError | ConflictError | NotFoundError | TooManyRequestsError + Cause.TimeoutError | SdkError | BadRequestError | ConflictError | NotFoundError | TooManyRequestsError >; /** @@ -1494,7 +1494,7 @@ interface ApiGatewayV2Service$ { options?: HttpHandlerOptions, ): Effect.Effect< UpdateIntegrationResponseCommandOutput, - Cause.TimeoutException | SdkError | BadRequestError | ConflictError | NotFoundError | TooManyRequestsError + Cause.TimeoutError | SdkError | BadRequestError | ConflictError | NotFoundError | TooManyRequestsError >; /** @@ -1505,7 +1505,7 @@ interface ApiGatewayV2Service$ { options?: HttpHandlerOptions, ): Effect.Effect< UpdateModelCommandOutput, - Cause.TimeoutException | SdkError | BadRequestError | ConflictError | NotFoundError | TooManyRequestsError + Cause.TimeoutError | SdkError | BadRequestError | ConflictError | NotFoundError | TooManyRequestsError >; /** @@ -1516,7 +1516,7 @@ interface ApiGatewayV2Service$ { options?: HttpHandlerOptions, ): Effect.Effect< UpdatePortalCommandOutput, - | Cause.TimeoutException + | Cause.TimeoutError | SdkError | AccessDeniedError | BadRequestError @@ -1533,7 +1533,7 @@ interface ApiGatewayV2Service$ { options?: HttpHandlerOptions, ): Effect.Effect< UpdatePortalProductCommandOutput, - Cause.TimeoutException | SdkError | AccessDeniedError | BadRequestError | NotFoundError | TooManyRequestsError + Cause.TimeoutError | SdkError | AccessDeniedError | BadRequestError | NotFoundError | TooManyRequestsError >; /** @@ -1544,7 +1544,7 @@ interface ApiGatewayV2Service$ { options?: HttpHandlerOptions, ): Effect.Effect< UpdateProductPageCommandOutput, - Cause.TimeoutException | SdkError | AccessDeniedError | BadRequestError | NotFoundError | TooManyRequestsError + Cause.TimeoutError | SdkError | AccessDeniedError | BadRequestError | NotFoundError | TooManyRequestsError >; /** @@ -1555,7 +1555,7 @@ interface ApiGatewayV2Service$ { options?: HttpHandlerOptions, ): Effect.Effect< UpdateProductRestEndpointPageCommandOutput, - Cause.TimeoutException | SdkError | AccessDeniedError | BadRequestError | NotFoundError | TooManyRequestsError + Cause.TimeoutError | SdkError | AccessDeniedError | BadRequestError | NotFoundError | TooManyRequestsError >; /** @@ -1566,7 +1566,7 @@ interface ApiGatewayV2Service$ { options?: HttpHandlerOptions, ): Effect.Effect< UpdateRouteCommandOutput, - Cause.TimeoutException | SdkError | BadRequestError | ConflictError | NotFoundError | TooManyRequestsError + Cause.TimeoutError | SdkError | BadRequestError | ConflictError | NotFoundError | TooManyRequestsError >; /** @@ -1577,7 +1577,7 @@ interface ApiGatewayV2Service$ { options?: HttpHandlerOptions, ): Effect.Effect< UpdateRouteResponseCommandOutput, - Cause.TimeoutException | SdkError | BadRequestError | ConflictError | NotFoundError | TooManyRequestsError + Cause.TimeoutError | SdkError | BadRequestError | ConflictError | NotFoundError | TooManyRequestsError >; /** @@ -1588,7 +1588,7 @@ interface ApiGatewayV2Service$ { options?: HttpHandlerOptions, ): Effect.Effect< UpdateStageCommandOutput, - Cause.TimeoutException | SdkError | BadRequestError | ConflictError | NotFoundError | TooManyRequestsError + Cause.TimeoutError | SdkError | BadRequestError | ConflictError | NotFoundError | TooManyRequestsError >; /** @@ -1599,7 +1599,7 @@ interface ApiGatewayV2Service$ { options?: HttpHandlerOptions, ): Effect.Effect< UpdateVpcLinkCommandOutput, - Cause.TimeoutException | SdkError | BadRequestError | NotFoundError | TooManyRequestsError + Cause.TimeoutError | SdkError | BadRequestError | NotFoundError | TooManyRequestsError >; } @@ -1624,10 +1624,10 @@ export const makeApiGatewayV2Service = Effect.gen(function*() { * @since 1.0.0 * @category models */ -export class ApiGatewayV2Service extends Effect.Tag("@effect-aws/client-api-gateway-v2/ApiGatewayV2Service")< +export class ApiGatewayV2Service extends ServiceMap.Service< ApiGatewayV2Service, ApiGatewayV2Service$ ->() { +>()("@effect-aws/client-api-gateway-v2/ApiGatewayV2Service") { static readonly defaultLayer = Layer.effect(this, makeApiGatewayV2Service).pipe(Layer.provide(Instance.layer)); static readonly layer = (config: ApiGatewayV2Service.Config) => Layer.effect(this, makeApiGatewayV2Service).pipe( diff --git a/packages/client-api-gateway-v2/src/ApiGatewayV2ServiceConfig.ts b/packages/client-api-gateway-v2/src/ApiGatewayV2ServiceConfig.ts index 74054522..10aaa0a5 100644 --- a/packages/client-api-gateway-v2/src/ApiGatewayV2ServiceConfig.ts +++ b/packages/client-api-gateway-v2/src/ApiGatewayV2ServiceConfig.ts @@ -3,18 +3,17 @@ */ import type { ApiGatewayV2ClientConfig } from "@aws-sdk/client-apigatewayv2"; import { ServiceLogger } from "@effect-aws/commons"; -import { Effect, FiberRef, Layer } from "effect"; +import { Effect, Layer, ServiceMap } from "effect"; import { dual } from "effect/Function"; -import { globalValue } from "effect/GlobalValue"; import type { ApiGatewayV2Service } from "./ApiGatewayV2Service.js"; /** * @since 1.0.0 * @category api-gateway-v2 service config */ -const currentApiGatewayV2ServiceConfig = globalValue( +const currentApiGatewayV2ServiceConfig = ServiceMap.Reference( "@effect-aws/client-api-gateway-v2/currentApiGatewayV2ServiceConfig", - () => FiberRef.unsafeMake({}), + { defaultValue: () => ({}) }, ); /** @@ -27,7 +26,7 @@ export const withApiGatewayV2ServiceConfig: { } = dual( 2, (effect: Effect.Effect, config: ApiGatewayV2Service.Config): Effect.Effect => - Effect.locally(effect, currentApiGatewayV2ServiceConfig, config), + Effect.provideService(effect, currentApiGatewayV2ServiceConfig, config), ); /** @@ -35,14 +34,14 @@ export const withApiGatewayV2ServiceConfig: { * @category api-gateway-v2 service config */ export const setApiGatewayV2ServiceConfig = (config: ApiGatewayV2Service.Config) => - Layer.locallyScoped(currentApiGatewayV2ServiceConfig, config); + Layer.succeed(currentApiGatewayV2ServiceConfig, config); /** * @since 1.0.0 * @category adapters */ export const toApiGatewayV2ClientConfig: Effect.Effect = Effect.gen(function*() { - const { logger: serviceLogger, ...config } = yield* FiberRef.get(currentApiGatewayV2ServiceConfig); + const { logger: serviceLogger, ...config } = yield* currentApiGatewayV2ServiceConfig; const logger = serviceLogger === true ? yield* ServiceLogger.toClientLogger(ServiceLogger.defaultServiceLogger) diff --git a/packages/client-api-gateway-v2/test/ApiGatewayV2.test.ts b/packages/client-api-gateway-v2/test/ApiGatewayV2.test.ts index 18ef9f5d..ee4d6bcf 100644 --- a/packages/client-api-gateway-v2/test/ApiGatewayV2.test.ts +++ b/packages/client-api-gateway-v2/test/ApiGatewayV2.test.ts @@ -26,7 +26,7 @@ describe("ApiGatewayV2ClientImpl", () => { const args: GetApiCommandInput = { ApiId: "test" }; - const program = ApiGatewayV2.getApi(args); + const program = ApiGatewayV2.use((svc) => svc.getApi(args)); const result = await pipe( program, @@ -46,7 +46,7 @@ describe("ApiGatewayV2ClientImpl", () => { const args: GetApiCommandInput = { ApiId: "test" }; - const program = ApiGatewayV2.getApi(args); + const program = ApiGatewayV2.use((svc) => svc.getApi(args)); const result = await pipe( program, @@ -69,7 +69,7 @@ describe("ApiGatewayV2ClientImpl", () => { const args: GetApiCommandInput = { ApiId: "test" }; - const program = ApiGatewayV2.getApi(args); + const program = ApiGatewayV2.use((svc) => svc.getApi(args)); const result = await pipe( program, @@ -93,7 +93,7 @@ describe("ApiGatewayV2ClientImpl", () => { const args: GetApiCommandInput = { ApiId: "test" }; - const program = ApiGatewayV2.getApi(args); + const program = ApiGatewayV2.use((svc) => svc.getApi(args)); const result = await pipe( program, @@ -121,7 +121,7 @@ describe("ApiGatewayV2ClientImpl", () => { const args: GetApiCommandInput = { ApiId: "test" }; - const program = ApiGatewayV2.getApi(args); + const program = ApiGatewayV2.use((svc) => svc.getApi(args)); const result = await pipe( program, @@ -131,7 +131,7 @@ describe("ApiGatewayV2ClientImpl", () => { expect(result).toEqual( Exit.fail( - SdkError({ + new SdkError({ ...new Error("test"), name: "SdkError", message: "test", @@ -156,7 +156,7 @@ describe("ApiGatewayV2ClientImpl", () => { const args: GetApiCommandInput = { ApiId: "test" }; - const program = ApiGatewayV2.getApi(args).pipe( + const program = ApiGatewayV2.use((svc) => svc.getApi(args)).pipe( Effect.catchTag("NotHandledException" as any, () => Effect.succeed(null)), ); @@ -166,9 +166,9 @@ describe("ApiGatewayV2ClientImpl", () => { Effect.runPromiseExit, ); - expect(result).toEqual( + expect(result).toContainEqual( Exit.fail( - SdkError({ + new SdkError({ ...new Error("test"), name: "SdkError", message: "test", diff --git a/packages/client-api-gateway/.projen/deps.json b/packages/client-api-gateway/.projen/deps.json index 0a0c6cd1..fee0325d 100644 --- a/packages/client-api-gateway/.projen/deps.json +++ b/packages/client-api-gateway/.projen/deps.json @@ -7,6 +7,7 @@ }, { "name": "effect", + "version": "4.0.0-beta.8", "type": "build" }, { @@ -16,7 +17,7 @@ }, { "name": "effect", - "version": ">=3.0.4 <4.0.0", + "version": ">=4.0.0 <5.0.0", "type": "peer" }, { diff --git a/packages/client-api-gateway/README.md b/packages/client-api-gateway/README.md index 1345d9b1..a9127a5b 100644 --- a/packages/client-api-gateway/README.md +++ b/packages/client-api-gateway/README.md @@ -16,7 +16,7 @@ With default APIGatewayClient instance: ```typescript import { APIGateway } from "@effect-aws/client-api-gateway"; -const program = APIGateway.getApiKey(args); +const program = APIGateway.use((svc) => svc.getApiKey(args)); const result = pipe( program, @@ -30,7 +30,7 @@ With custom APIGatewayClient instance: ```typescript import { APIGateway } from "@effect-aws/client-api-gateway"; -const program = APIGateway.getApiKey(args); +const program = APIGateway.use((svc) => svc.getApiKey(args)); const result = await pipe( program, @@ -46,7 +46,7 @@ With custom APIGatewayClient configuration: ```typescript import { APIGateway } from "@effect-aws/client-api-gateway"; -const program = APIGateway.getApiKey(args); +const program = APIGateway.use((svc) => svc.getApiKey(args)); const result = await pipe( program, diff --git a/packages/client-api-gateway/package.json b/packages/client-api-gateway/package.json index 52945aa0..0db0a275 100644 --- a/packages/client-api-gateway/package.json +++ b/packages/client-api-gateway/package.json @@ -26,11 +26,11 @@ }, "devDependencies": { "@types/node": "ts5.4", - "effect": "^3.16.4", + "effect": "4.0.0-beta.8", "typescript": "^5.4.2" }, "peerDependencies": { - "effect": ">=3.0.4 <4.0.0" + "effect": ">=4.0.0 <5.0.0" }, "dependencies": { "@aws-sdk/client-api-gateway": "^3", diff --git a/packages/client-api-gateway/src/APIGatewayClientInstance.ts b/packages/client-api-gateway/src/APIGatewayClientInstance.ts index 9c027fd3..28cf842c 100644 --- a/packages/client-api-gateway/src/APIGatewayClientInstance.ts +++ b/packages/client-api-gateway/src/APIGatewayClientInstance.ts @@ -2,16 +2,16 @@ * @since 1.0.0 */ import { APIGatewayClient } from "@aws-sdk/client-api-gateway"; -import { Context, Effect, Layer } from "effect"; +import { Effect, Layer, ServiceMap } from "effect"; import * as APIGatewayServiceConfig from "./APIGatewayServiceConfig.js"; /** * @since 1.0.0 * @category tags */ -export class APIGatewayClientInstance extends Context.Tag( +export class APIGatewayClientInstance extends ServiceMap.Service()( "@effect-aws/client-api-gateway/APIGatewayClientInstance", -)() {} +) {} /** * @since 1.0.0 @@ -30,4 +30,4 @@ export const make = Effect.flatMap( * @since 1.0.0 * @category layers */ -export const layer = Layer.scoped(APIGatewayClientInstance, make); +export const layer = Layer.effect(APIGatewayClientInstance, make); diff --git a/packages/client-api-gateway/src/APIGatewayService.ts b/packages/client-api-gateway/src/APIGatewayService.ts index d6c5d434..03077a91 100644 --- a/packages/client-api-gateway/src/APIGatewayService.ts +++ b/packages/client-api-gateway/src/APIGatewayService.ts @@ -380,7 +380,7 @@ import { import type { HttpHandlerOptions, ServiceLogger } from "@effect-aws/commons"; import { Service } from "@effect-aws/commons"; import type { Cause } from "effect"; -import { Effect, Layer } from "effect"; +import { Effect, Layer, ServiceMap } from "effect"; import * as Instance from "./APIGatewayClientInstance.js"; import * as APIGatewayServiceConfig from "./APIGatewayServiceConfig.js"; import type { @@ -533,7 +533,7 @@ interface APIGatewayService$ { options?: HttpHandlerOptions, ): Effect.Effect< CreateApiKeyCommandOutput, - | Cause.TimeoutException + | Cause.TimeoutError | SdkError | BadRequestError | ConflictError @@ -551,7 +551,7 @@ interface APIGatewayService$ { options?: HttpHandlerOptions, ): Effect.Effect< CreateAuthorizerCommandOutput, - | Cause.TimeoutException + | Cause.TimeoutError | SdkError | BadRequestError | ConflictError @@ -569,7 +569,7 @@ interface APIGatewayService$ { options?: HttpHandlerOptions, ): Effect.Effect< CreateBasePathMappingCommandOutput, - | Cause.TimeoutException + | Cause.TimeoutError | SdkError | BadRequestError | ConflictError @@ -587,7 +587,7 @@ interface APIGatewayService$ { options?: HttpHandlerOptions, ): Effect.Effect< CreateDeploymentCommandOutput, - | Cause.TimeoutException + | Cause.TimeoutError | SdkError | BadRequestError | ConflictError @@ -606,7 +606,7 @@ interface APIGatewayService$ { options?: HttpHandlerOptions, ): Effect.Effect< CreateDocumentationPartCommandOutput, - | Cause.TimeoutException + | Cause.TimeoutError | SdkError | BadRequestError | ConflictError @@ -624,7 +624,7 @@ interface APIGatewayService$ { options?: HttpHandlerOptions, ): Effect.Effect< CreateDocumentationVersionCommandOutput, - | Cause.TimeoutException + | Cause.TimeoutError | SdkError | BadRequestError | ConflictError @@ -642,7 +642,7 @@ interface APIGatewayService$ { options?: HttpHandlerOptions, ): Effect.Effect< CreateDomainNameCommandOutput, - | Cause.TimeoutException + | Cause.TimeoutError | SdkError | BadRequestError | ConflictError @@ -659,7 +659,7 @@ interface APIGatewayService$ { options?: HttpHandlerOptions, ): Effect.Effect< CreateDomainNameAccessAssociationCommandOutput, - | Cause.TimeoutException + | Cause.TimeoutError | SdkError | BadRequestError | ConflictError @@ -676,7 +676,7 @@ interface APIGatewayService$ { options?: HttpHandlerOptions, ): Effect.Effect< CreateModelCommandOutput, - | Cause.TimeoutException + | Cause.TimeoutError | SdkError | BadRequestError | ConflictError @@ -694,7 +694,7 @@ interface APIGatewayService$ { options?: HttpHandlerOptions, ): Effect.Effect< CreateRequestValidatorCommandOutput, - | Cause.TimeoutException + | Cause.TimeoutError | SdkError | BadRequestError | ConflictError @@ -712,7 +712,7 @@ interface APIGatewayService$ { options?: HttpHandlerOptions, ): Effect.Effect< CreateResourceCommandOutput, - | Cause.TimeoutException + | Cause.TimeoutError | SdkError | BadRequestError | ConflictError @@ -730,7 +730,7 @@ interface APIGatewayService$ { options?: HttpHandlerOptions, ): Effect.Effect< CreateRestApiCommandOutput, - | Cause.TimeoutException + | Cause.TimeoutError | SdkError | BadRequestError | ConflictError @@ -747,7 +747,7 @@ interface APIGatewayService$ { options?: HttpHandlerOptions, ): Effect.Effect< CreateStageCommandOutput, - | Cause.TimeoutException + | Cause.TimeoutError | SdkError | BadRequestError | ConflictError @@ -765,7 +765,7 @@ interface APIGatewayService$ { options?: HttpHandlerOptions, ): Effect.Effect< CreateUsagePlanCommandOutput, - | Cause.TimeoutException + | Cause.TimeoutError | SdkError | BadRequestError | ConflictError @@ -783,7 +783,7 @@ interface APIGatewayService$ { options?: HttpHandlerOptions, ): Effect.Effect< CreateUsagePlanKeyCommandOutput, - | Cause.TimeoutException + | Cause.TimeoutError | SdkError | BadRequestError | ConflictError @@ -801,7 +801,7 @@ interface APIGatewayService$ { options?: HttpHandlerOptions, ): Effect.Effect< CreateVpcLinkCommandOutput, - | Cause.TimeoutException + | Cause.TimeoutError | SdkError | BadRequestError | ConflictError @@ -818,7 +818,7 @@ interface APIGatewayService$ { options?: HttpHandlerOptions, ): Effect.Effect< DeleteApiKeyCommandOutput, - | Cause.TimeoutException + | Cause.TimeoutError | SdkError | BadRequestError | ConflictError @@ -835,7 +835,7 @@ interface APIGatewayService$ { options?: HttpHandlerOptions, ): Effect.Effect< DeleteAuthorizerCommandOutput, - | Cause.TimeoutException + | Cause.TimeoutError | SdkError | BadRequestError | ConflictError @@ -852,7 +852,7 @@ interface APIGatewayService$ { options?: HttpHandlerOptions, ): Effect.Effect< DeleteBasePathMappingCommandOutput, - | Cause.TimeoutException + | Cause.TimeoutError | SdkError | BadRequestError | ConflictError @@ -869,7 +869,7 @@ interface APIGatewayService$ { options?: HttpHandlerOptions, ): Effect.Effect< DeleteClientCertificateCommandOutput, - | Cause.TimeoutException + | Cause.TimeoutError | SdkError | BadRequestError | ConflictError @@ -886,7 +886,7 @@ interface APIGatewayService$ { options?: HttpHandlerOptions, ): Effect.Effect< DeleteDeploymentCommandOutput, - | Cause.TimeoutException + | Cause.TimeoutError | SdkError | BadRequestError | ConflictError @@ -904,7 +904,7 @@ interface APIGatewayService$ { options?: HttpHandlerOptions, ): Effect.Effect< DeleteDocumentationPartCommandOutput, - | Cause.TimeoutException + | Cause.TimeoutError | SdkError | BadRequestError | ConflictError @@ -921,7 +921,7 @@ interface APIGatewayService$ { options?: HttpHandlerOptions, ): Effect.Effect< DeleteDocumentationVersionCommandOutput, - | Cause.TimeoutException + | Cause.TimeoutError | SdkError | BadRequestError | ConflictError @@ -938,7 +938,7 @@ interface APIGatewayService$ { options?: HttpHandlerOptions, ): Effect.Effect< DeleteDomainNameCommandOutput, - | Cause.TimeoutException + | Cause.TimeoutError | SdkError | BadRequestError | ConflictError @@ -955,7 +955,7 @@ interface APIGatewayService$ { options?: HttpHandlerOptions, ): Effect.Effect< DeleteDomainNameAccessAssociationCommandOutput, - | Cause.TimeoutException + | Cause.TimeoutError | SdkError | BadRequestError | ConflictError @@ -972,7 +972,7 @@ interface APIGatewayService$ { options?: HttpHandlerOptions, ): Effect.Effect< DeleteGatewayResponseCommandOutput, - | Cause.TimeoutException + | Cause.TimeoutError | SdkError | BadRequestError | ConflictError @@ -989,7 +989,7 @@ interface APIGatewayService$ { options?: HttpHandlerOptions, ): Effect.Effect< DeleteIntegrationCommandOutput, - | Cause.TimeoutException + | Cause.TimeoutError | SdkError | BadRequestError | ConflictError @@ -1006,7 +1006,7 @@ interface APIGatewayService$ { options?: HttpHandlerOptions, ): Effect.Effect< DeleteIntegrationResponseCommandOutput, - | Cause.TimeoutException + | Cause.TimeoutError | SdkError | BadRequestError | ConflictError @@ -1023,7 +1023,7 @@ interface APIGatewayService$ { options?: HttpHandlerOptions, ): Effect.Effect< DeleteMethodCommandOutput, - Cause.TimeoutException | SdkError | ConflictError | NotFoundError | TooManyRequestsError | UnauthorizedError + Cause.TimeoutError | SdkError | ConflictError | NotFoundError | TooManyRequestsError | UnauthorizedError >; /** @@ -1034,7 +1034,7 @@ interface APIGatewayService$ { options?: HttpHandlerOptions, ): Effect.Effect< DeleteMethodResponseCommandOutput, - | Cause.TimeoutException + | Cause.TimeoutError | SdkError | BadRequestError | ConflictError @@ -1051,7 +1051,7 @@ interface APIGatewayService$ { options?: HttpHandlerOptions, ): Effect.Effect< DeleteModelCommandOutput, - | Cause.TimeoutException + | Cause.TimeoutError | SdkError | BadRequestError | ConflictError @@ -1068,7 +1068,7 @@ interface APIGatewayService$ { options?: HttpHandlerOptions, ): Effect.Effect< DeleteRequestValidatorCommandOutput, - | Cause.TimeoutException + | Cause.TimeoutError | SdkError | BadRequestError | ConflictError @@ -1085,7 +1085,7 @@ interface APIGatewayService$ { options?: HttpHandlerOptions, ): Effect.Effect< DeleteResourceCommandOutput, - | Cause.TimeoutException + | Cause.TimeoutError | SdkError | BadRequestError | ConflictError @@ -1102,7 +1102,7 @@ interface APIGatewayService$ { options?: HttpHandlerOptions, ): Effect.Effect< DeleteRestApiCommandOutput, - | Cause.TimeoutException + | Cause.TimeoutError | SdkError | BadRequestError | ConflictError @@ -1119,7 +1119,7 @@ interface APIGatewayService$ { options?: HttpHandlerOptions, ): Effect.Effect< DeleteStageCommandOutput, - | Cause.TimeoutException + | Cause.TimeoutError | SdkError | BadRequestError | ConflictError @@ -1137,7 +1137,7 @@ interface APIGatewayService$ { options?: HttpHandlerOptions, ): Effect.Effect< DeleteUsagePlanCommandOutput, - | Cause.TimeoutException + | Cause.TimeoutError | SdkError | BadRequestError | ConflictError @@ -1154,7 +1154,7 @@ interface APIGatewayService$ { options?: HttpHandlerOptions, ): Effect.Effect< DeleteUsagePlanKeyCommandOutput, - | Cause.TimeoutException + | Cause.TimeoutError | SdkError | BadRequestError | ConflictError @@ -1171,7 +1171,7 @@ interface APIGatewayService$ { options?: HttpHandlerOptions, ): Effect.Effect< DeleteVpcLinkCommandOutput, - | Cause.TimeoutException + | Cause.TimeoutError | SdkError | BadRequestError | ConflictError @@ -1188,7 +1188,7 @@ interface APIGatewayService$ { options?: HttpHandlerOptions, ): Effect.Effect< FlushStageAuthorizersCacheCommandOutput, - | Cause.TimeoutException + | Cause.TimeoutError | SdkError | BadRequestError | ConflictError @@ -1206,7 +1206,7 @@ interface APIGatewayService$ { options?: HttpHandlerOptions, ): Effect.Effect< FlushStageCacheCommandOutput, - | Cause.TimeoutException + | Cause.TimeoutError | SdkError | BadRequestError | ConflictError @@ -1224,7 +1224,7 @@ interface APIGatewayService$ { options?: HttpHandlerOptions, ): Effect.Effect< GenerateClientCertificateCommandOutput, - | Cause.TimeoutException + | Cause.TimeoutError | SdkError | BadRequestError | ConflictError @@ -1241,7 +1241,7 @@ interface APIGatewayService$ { options?: HttpHandlerOptions, ): Effect.Effect< GetAccountCommandOutput, - Cause.TimeoutException | SdkError | BadRequestError | NotFoundError | TooManyRequestsError | UnauthorizedError + Cause.TimeoutError | SdkError | BadRequestError | NotFoundError | TooManyRequestsError | UnauthorizedError >; /** @@ -1252,7 +1252,7 @@ interface APIGatewayService$ { options?: HttpHandlerOptions, ): Effect.Effect< GetApiKeyCommandOutput, - Cause.TimeoutException | SdkError | BadRequestError | NotFoundError | TooManyRequestsError | UnauthorizedError + Cause.TimeoutError | SdkError | BadRequestError | NotFoundError | TooManyRequestsError | UnauthorizedError >; /** @@ -1263,7 +1263,7 @@ interface APIGatewayService$ { options?: HttpHandlerOptions, ): Effect.Effect< GetApiKeysCommandOutput, - Cause.TimeoutException | SdkError | BadRequestError | NotFoundError | TooManyRequestsError | UnauthorizedError + Cause.TimeoutError | SdkError | BadRequestError | NotFoundError | TooManyRequestsError | UnauthorizedError >; /** @@ -1274,7 +1274,7 @@ interface APIGatewayService$ { options?: HttpHandlerOptions, ): Effect.Effect< GetAuthorizerCommandOutput, - Cause.TimeoutException | SdkError | BadRequestError | NotFoundError | TooManyRequestsError | UnauthorizedError + Cause.TimeoutError | SdkError | BadRequestError | NotFoundError | TooManyRequestsError | UnauthorizedError >; /** @@ -1285,7 +1285,7 @@ interface APIGatewayService$ { options?: HttpHandlerOptions, ): Effect.Effect< GetAuthorizersCommandOutput, - Cause.TimeoutException | SdkError | BadRequestError | NotFoundError | TooManyRequestsError | UnauthorizedError + Cause.TimeoutError | SdkError | BadRequestError | NotFoundError | TooManyRequestsError | UnauthorizedError >; /** @@ -1296,7 +1296,7 @@ interface APIGatewayService$ { options?: HttpHandlerOptions, ): Effect.Effect< GetBasePathMappingCommandOutput, - Cause.TimeoutException | SdkError | BadRequestError | NotFoundError | TooManyRequestsError | UnauthorizedError + Cause.TimeoutError | SdkError | BadRequestError | NotFoundError | TooManyRequestsError | UnauthorizedError >; /** @@ -1307,7 +1307,7 @@ interface APIGatewayService$ { options?: HttpHandlerOptions, ): Effect.Effect< GetBasePathMappingsCommandOutput, - Cause.TimeoutException | SdkError | BadRequestError | NotFoundError | TooManyRequestsError | UnauthorizedError + Cause.TimeoutError | SdkError | BadRequestError | NotFoundError | TooManyRequestsError | UnauthorizedError >; /** @@ -1318,7 +1318,7 @@ interface APIGatewayService$ { options?: HttpHandlerOptions, ): Effect.Effect< GetClientCertificateCommandOutput, - Cause.TimeoutException | SdkError | BadRequestError | NotFoundError | TooManyRequestsError | UnauthorizedError + Cause.TimeoutError | SdkError | BadRequestError | NotFoundError | TooManyRequestsError | UnauthorizedError >; /** @@ -1329,7 +1329,7 @@ interface APIGatewayService$ { options?: HttpHandlerOptions, ): Effect.Effect< GetClientCertificatesCommandOutput, - Cause.TimeoutException | SdkError | BadRequestError | NotFoundError | TooManyRequestsError | UnauthorizedError + Cause.TimeoutError | SdkError | BadRequestError | NotFoundError | TooManyRequestsError | UnauthorizedError >; /** @@ -1340,7 +1340,7 @@ interface APIGatewayService$ { options?: HttpHandlerOptions, ): Effect.Effect< GetDeploymentCommandOutput, - | Cause.TimeoutException + | Cause.TimeoutError | SdkError | BadRequestError | NotFoundError @@ -1357,7 +1357,7 @@ interface APIGatewayService$ { options?: HttpHandlerOptions, ): Effect.Effect< GetDeploymentsCommandOutput, - | Cause.TimeoutException + | Cause.TimeoutError | SdkError | BadRequestError | NotFoundError @@ -1374,7 +1374,7 @@ interface APIGatewayService$ { options?: HttpHandlerOptions, ): Effect.Effect< GetDocumentationPartCommandOutput, - Cause.TimeoutException | SdkError | BadRequestError | NotFoundError | TooManyRequestsError | UnauthorizedError + Cause.TimeoutError | SdkError | BadRequestError | NotFoundError | TooManyRequestsError | UnauthorizedError >; /** @@ -1385,7 +1385,7 @@ interface APIGatewayService$ { options?: HttpHandlerOptions, ): Effect.Effect< GetDocumentationPartsCommandOutput, - Cause.TimeoutException | SdkError | BadRequestError | NotFoundError | TooManyRequestsError | UnauthorizedError + Cause.TimeoutError | SdkError | BadRequestError | NotFoundError | TooManyRequestsError | UnauthorizedError >; /** @@ -1396,7 +1396,7 @@ interface APIGatewayService$ { options?: HttpHandlerOptions, ): Effect.Effect< GetDocumentationVersionCommandOutput, - Cause.TimeoutException | SdkError | NotFoundError | TooManyRequestsError | UnauthorizedError + Cause.TimeoutError | SdkError | NotFoundError | TooManyRequestsError | UnauthorizedError >; /** @@ -1407,7 +1407,7 @@ interface APIGatewayService$ { options?: HttpHandlerOptions, ): Effect.Effect< GetDocumentationVersionsCommandOutput, - Cause.TimeoutException | SdkError | BadRequestError | NotFoundError | TooManyRequestsError | UnauthorizedError + Cause.TimeoutError | SdkError | BadRequestError | NotFoundError | TooManyRequestsError | UnauthorizedError >; /** @@ -1418,7 +1418,7 @@ interface APIGatewayService$ { options?: HttpHandlerOptions, ): Effect.Effect< GetDomainNameCommandOutput, - Cause.TimeoutException | SdkError | BadRequestError | NotFoundError | TooManyRequestsError | UnauthorizedError + Cause.TimeoutError | SdkError | BadRequestError | NotFoundError | TooManyRequestsError | UnauthorizedError >; /** @@ -1429,7 +1429,7 @@ interface APIGatewayService$ { options?: HttpHandlerOptions, ): Effect.Effect< GetDomainNameAccessAssociationsCommandOutput, - Cause.TimeoutException | SdkError | BadRequestError | NotFoundError | TooManyRequestsError | UnauthorizedError + Cause.TimeoutError | SdkError | BadRequestError | NotFoundError | TooManyRequestsError | UnauthorizedError >; /** @@ -1440,7 +1440,7 @@ interface APIGatewayService$ { options?: HttpHandlerOptions, ): Effect.Effect< GetDomainNamesCommandOutput, - Cause.TimeoutException | SdkError | BadRequestError | NotFoundError | TooManyRequestsError | UnauthorizedError + Cause.TimeoutError | SdkError | BadRequestError | NotFoundError | TooManyRequestsError | UnauthorizedError >; /** @@ -1451,7 +1451,7 @@ interface APIGatewayService$ { options?: HttpHandlerOptions, ): Effect.Effect< GetExportCommandOutput, - | Cause.TimeoutException + | Cause.TimeoutError | SdkError | BadRequestError | ConflictError @@ -1469,7 +1469,7 @@ interface APIGatewayService$ { options?: HttpHandlerOptions, ): Effect.Effect< GetGatewayResponseCommandOutput, - Cause.TimeoutException | SdkError | BadRequestError | NotFoundError | TooManyRequestsError | UnauthorizedError + Cause.TimeoutError | SdkError | BadRequestError | NotFoundError | TooManyRequestsError | UnauthorizedError >; /** @@ -1480,7 +1480,7 @@ interface APIGatewayService$ { options?: HttpHandlerOptions, ): Effect.Effect< GetGatewayResponsesCommandOutput, - Cause.TimeoutException | SdkError | BadRequestError | NotFoundError | TooManyRequestsError | UnauthorizedError + Cause.TimeoutError | SdkError | BadRequestError | NotFoundError | TooManyRequestsError | UnauthorizedError >; /** @@ -1491,7 +1491,7 @@ interface APIGatewayService$ { options?: HttpHandlerOptions, ): Effect.Effect< GetIntegrationCommandOutput, - Cause.TimeoutException | SdkError | BadRequestError | NotFoundError | TooManyRequestsError | UnauthorizedError + Cause.TimeoutError | SdkError | BadRequestError | NotFoundError | TooManyRequestsError | UnauthorizedError >; /** @@ -1502,7 +1502,7 @@ interface APIGatewayService$ { options?: HttpHandlerOptions, ): Effect.Effect< GetIntegrationResponseCommandOutput, - Cause.TimeoutException | SdkError | BadRequestError | NotFoundError | TooManyRequestsError | UnauthorizedError + Cause.TimeoutError | SdkError | BadRequestError | NotFoundError | TooManyRequestsError | UnauthorizedError >; /** @@ -1513,7 +1513,7 @@ interface APIGatewayService$ { options?: HttpHandlerOptions, ): Effect.Effect< GetMethodCommandOutput, - Cause.TimeoutException | SdkError | NotFoundError | TooManyRequestsError | UnauthorizedError + Cause.TimeoutError | SdkError | NotFoundError | TooManyRequestsError | UnauthorizedError >; /** @@ -1524,7 +1524,7 @@ interface APIGatewayService$ { options?: HttpHandlerOptions, ): Effect.Effect< GetMethodResponseCommandOutput, - Cause.TimeoutException | SdkError | NotFoundError | TooManyRequestsError | UnauthorizedError + Cause.TimeoutError | SdkError | NotFoundError | TooManyRequestsError | UnauthorizedError >; /** @@ -1535,7 +1535,7 @@ interface APIGatewayService$ { options?: HttpHandlerOptions, ): Effect.Effect< GetModelCommandOutput, - Cause.TimeoutException | SdkError | BadRequestError | NotFoundError | TooManyRequestsError | UnauthorizedError + Cause.TimeoutError | SdkError | BadRequestError | NotFoundError | TooManyRequestsError | UnauthorizedError >; /** @@ -1546,7 +1546,7 @@ interface APIGatewayService$ { options?: HttpHandlerOptions, ): Effect.Effect< GetModelTemplateCommandOutput, - Cause.TimeoutException | SdkError | BadRequestError | NotFoundError | TooManyRequestsError | UnauthorizedError + Cause.TimeoutError | SdkError | BadRequestError | NotFoundError | TooManyRequestsError | UnauthorizedError >; /** @@ -1557,7 +1557,7 @@ interface APIGatewayService$ { options?: HttpHandlerOptions, ): Effect.Effect< GetModelsCommandOutput, - Cause.TimeoutException | SdkError | BadRequestError | NotFoundError | TooManyRequestsError | UnauthorizedError + Cause.TimeoutError | SdkError | BadRequestError | NotFoundError | TooManyRequestsError | UnauthorizedError >; /** @@ -1568,7 +1568,7 @@ interface APIGatewayService$ { options?: HttpHandlerOptions, ): Effect.Effect< GetRequestValidatorCommandOutput, - Cause.TimeoutException | SdkError | BadRequestError | NotFoundError | TooManyRequestsError | UnauthorizedError + Cause.TimeoutError | SdkError | BadRequestError | NotFoundError | TooManyRequestsError | UnauthorizedError >; /** @@ -1579,7 +1579,7 @@ interface APIGatewayService$ { options?: HttpHandlerOptions, ): Effect.Effect< GetRequestValidatorsCommandOutput, - Cause.TimeoutException | SdkError | BadRequestError | NotFoundError | TooManyRequestsError | UnauthorizedError + Cause.TimeoutError | SdkError | BadRequestError | NotFoundError | TooManyRequestsError | UnauthorizedError >; /** @@ -1590,7 +1590,7 @@ interface APIGatewayService$ { options?: HttpHandlerOptions, ): Effect.Effect< GetResourceCommandOutput, - Cause.TimeoutException | SdkError | NotFoundError | TooManyRequestsError | UnauthorizedError + Cause.TimeoutError | SdkError | NotFoundError | TooManyRequestsError | UnauthorizedError >; /** @@ -1601,7 +1601,7 @@ interface APIGatewayService$ { options?: HttpHandlerOptions, ): Effect.Effect< GetResourcesCommandOutput, - Cause.TimeoutException | SdkError | BadRequestError | NotFoundError | TooManyRequestsError | UnauthorizedError + Cause.TimeoutError | SdkError | BadRequestError | NotFoundError | TooManyRequestsError | UnauthorizedError >; /** @@ -1612,7 +1612,7 @@ interface APIGatewayService$ { options?: HttpHandlerOptions, ): Effect.Effect< GetRestApiCommandOutput, - Cause.TimeoutException | SdkError | BadRequestError | NotFoundError | TooManyRequestsError | UnauthorizedError + Cause.TimeoutError | SdkError | BadRequestError | NotFoundError | TooManyRequestsError | UnauthorizedError >; /** @@ -1623,7 +1623,7 @@ interface APIGatewayService$ { options?: HttpHandlerOptions, ): Effect.Effect< GetRestApisCommandOutput, - Cause.TimeoutException | SdkError | BadRequestError | NotFoundError | TooManyRequestsError | UnauthorizedError + Cause.TimeoutError | SdkError | BadRequestError | NotFoundError | TooManyRequestsError | UnauthorizedError >; /** @@ -1634,7 +1634,7 @@ interface APIGatewayService$ { options?: HttpHandlerOptions, ): Effect.Effect< GetSdkCommandOutput, - | Cause.TimeoutException + | Cause.TimeoutError | SdkError | BadRequestError | ConflictError @@ -1652,7 +1652,7 @@ interface APIGatewayService$ { options?: HttpHandlerOptions, ): Effect.Effect< GetSdkTypeCommandOutput, - Cause.TimeoutException | SdkError | BadRequestError | NotFoundError | TooManyRequestsError | UnauthorizedError + Cause.TimeoutError | SdkError | BadRequestError | NotFoundError | TooManyRequestsError | UnauthorizedError >; /** @@ -1663,7 +1663,7 @@ interface APIGatewayService$ { options?: HttpHandlerOptions, ): Effect.Effect< GetSdkTypesCommandOutput, - Cause.TimeoutException | SdkError | BadRequestError | NotFoundError | TooManyRequestsError | UnauthorizedError + Cause.TimeoutError | SdkError | BadRequestError | NotFoundError | TooManyRequestsError | UnauthorizedError >; /** @@ -1674,7 +1674,7 @@ interface APIGatewayService$ { options?: HttpHandlerOptions, ): Effect.Effect< GetStageCommandOutput, - | Cause.TimeoutException + | Cause.TimeoutError | SdkError | BadRequestError | ConflictError @@ -1692,7 +1692,7 @@ interface APIGatewayService$ { options?: HttpHandlerOptions, ): Effect.Effect< GetStagesCommandOutput, - | Cause.TimeoutException + | Cause.TimeoutError | SdkError | BadRequestError | ConflictError @@ -1710,7 +1710,7 @@ interface APIGatewayService$ { options?: HttpHandlerOptions, ): Effect.Effect< GetTagsCommandOutput, - Cause.TimeoutException | SdkError | BadRequestError | NotFoundError | TooManyRequestsError | UnauthorizedError + Cause.TimeoutError | SdkError | BadRequestError | NotFoundError | TooManyRequestsError | UnauthorizedError >; /** @@ -1721,7 +1721,7 @@ interface APIGatewayService$ { options?: HttpHandlerOptions, ): Effect.Effect< GetUsageCommandOutput, - Cause.TimeoutException | SdkError | BadRequestError | NotFoundError | TooManyRequestsError | UnauthorizedError + Cause.TimeoutError | SdkError | BadRequestError | NotFoundError | TooManyRequestsError | UnauthorizedError >; /** @@ -1732,7 +1732,7 @@ interface APIGatewayService$ { options?: HttpHandlerOptions, ): Effect.Effect< GetUsagePlanCommandOutput, - Cause.TimeoutException | SdkError | BadRequestError | NotFoundError | TooManyRequestsError | UnauthorizedError + Cause.TimeoutError | SdkError | BadRequestError | NotFoundError | TooManyRequestsError | UnauthorizedError >; /** @@ -1743,7 +1743,7 @@ interface APIGatewayService$ { options?: HttpHandlerOptions, ): Effect.Effect< GetUsagePlanKeyCommandOutput, - Cause.TimeoutException | SdkError | BadRequestError | NotFoundError | TooManyRequestsError | UnauthorizedError + Cause.TimeoutError | SdkError | BadRequestError | NotFoundError | TooManyRequestsError | UnauthorizedError >; /** @@ -1754,7 +1754,7 @@ interface APIGatewayService$ { options?: HttpHandlerOptions, ): Effect.Effect< GetUsagePlanKeysCommandOutput, - Cause.TimeoutException | SdkError | BadRequestError | NotFoundError | TooManyRequestsError | UnauthorizedError + Cause.TimeoutError | SdkError | BadRequestError | NotFoundError | TooManyRequestsError | UnauthorizedError >; /** @@ -1765,7 +1765,7 @@ interface APIGatewayService$ { options?: HttpHandlerOptions, ): Effect.Effect< GetUsagePlansCommandOutput, - Cause.TimeoutException | SdkError | BadRequestError | NotFoundError | TooManyRequestsError | UnauthorizedError + Cause.TimeoutError | SdkError | BadRequestError | NotFoundError | TooManyRequestsError | UnauthorizedError >; /** @@ -1776,7 +1776,7 @@ interface APIGatewayService$ { options?: HttpHandlerOptions, ): Effect.Effect< GetVpcLinkCommandOutput, - Cause.TimeoutException | SdkError | BadRequestError | NotFoundError | TooManyRequestsError | UnauthorizedError + Cause.TimeoutError | SdkError | BadRequestError | NotFoundError | TooManyRequestsError | UnauthorizedError >; /** @@ -1787,7 +1787,7 @@ interface APIGatewayService$ { options?: HttpHandlerOptions, ): Effect.Effect< GetVpcLinksCommandOutput, - Cause.TimeoutException | SdkError | BadRequestError | NotFoundError | TooManyRequestsError | UnauthorizedError + Cause.TimeoutError | SdkError | BadRequestError | NotFoundError | TooManyRequestsError | UnauthorizedError >; /** @@ -1798,7 +1798,7 @@ interface APIGatewayService$ { options?: HttpHandlerOptions, ): Effect.Effect< ImportApiKeysCommandOutput, - | Cause.TimeoutException + | Cause.TimeoutError | SdkError | BadRequestError | ConflictError @@ -1816,7 +1816,7 @@ interface APIGatewayService$ { options?: HttpHandlerOptions, ): Effect.Effect< ImportDocumentationPartsCommandOutput, - | Cause.TimeoutException + | Cause.TimeoutError | SdkError | BadRequestError | ConflictError @@ -1834,7 +1834,7 @@ interface APIGatewayService$ { options?: HttpHandlerOptions, ): Effect.Effect< ImportRestApiCommandOutput, - | Cause.TimeoutException + | Cause.TimeoutError | SdkError | BadRequestError | ConflictError @@ -1852,7 +1852,7 @@ interface APIGatewayService$ { options?: HttpHandlerOptions, ): Effect.Effect< PutGatewayResponseCommandOutput, - | Cause.TimeoutException + | Cause.TimeoutError | SdkError | BadRequestError | ConflictError @@ -1870,7 +1870,7 @@ interface APIGatewayService$ { options?: HttpHandlerOptions, ): Effect.Effect< PutIntegrationCommandOutput, - | Cause.TimeoutException + | Cause.TimeoutError | SdkError | BadRequestError | ConflictError @@ -1888,7 +1888,7 @@ interface APIGatewayService$ { options?: HttpHandlerOptions, ): Effect.Effect< PutIntegrationResponseCommandOutput, - | Cause.TimeoutException + | Cause.TimeoutError | SdkError | BadRequestError | ConflictError @@ -1906,7 +1906,7 @@ interface APIGatewayService$ { options?: HttpHandlerOptions, ): Effect.Effect< PutMethodCommandOutput, - | Cause.TimeoutException + | Cause.TimeoutError | SdkError | BadRequestError | ConflictError @@ -1924,7 +1924,7 @@ interface APIGatewayService$ { options?: HttpHandlerOptions, ): Effect.Effect< PutMethodResponseCommandOutput, - | Cause.TimeoutException + | Cause.TimeoutError | SdkError | BadRequestError | ConflictError @@ -1942,7 +1942,7 @@ interface APIGatewayService$ { options?: HttpHandlerOptions, ): Effect.Effect< PutRestApiCommandOutput, - | Cause.TimeoutException + | Cause.TimeoutError | SdkError | BadRequestError | ConflictError @@ -1960,7 +1960,7 @@ interface APIGatewayService$ { options?: HttpHandlerOptions, ): Effect.Effect< RejectDomainNameAccessAssociationCommandOutput, - | Cause.TimeoutException + | Cause.TimeoutError | SdkError | BadRequestError | ConflictError @@ -1977,7 +1977,7 @@ interface APIGatewayService$ { options?: HttpHandlerOptions, ): Effect.Effect< TagResourceCommandOutput, - | Cause.TimeoutException + | Cause.TimeoutError | SdkError | BadRequestError | ConflictError @@ -1995,7 +1995,7 @@ interface APIGatewayService$ { options?: HttpHandlerOptions, ): Effect.Effect< TestInvokeAuthorizerCommandOutput, - Cause.TimeoutException | SdkError | BadRequestError | NotFoundError | TooManyRequestsError | UnauthorizedError + Cause.TimeoutError | SdkError | BadRequestError | NotFoundError | TooManyRequestsError | UnauthorizedError >; /** @@ -2006,7 +2006,7 @@ interface APIGatewayService$ { options?: HttpHandlerOptions, ): Effect.Effect< TestInvokeMethodCommandOutput, - Cause.TimeoutException | SdkError | BadRequestError | NotFoundError | TooManyRequestsError | UnauthorizedError + Cause.TimeoutError | SdkError | BadRequestError | NotFoundError | TooManyRequestsError | UnauthorizedError >; /** @@ -2017,7 +2017,7 @@ interface APIGatewayService$ { options?: HttpHandlerOptions, ): Effect.Effect< UntagResourceCommandOutput, - | Cause.TimeoutException + | Cause.TimeoutError | SdkError | BadRequestError | ConflictError @@ -2035,7 +2035,7 @@ interface APIGatewayService$ { options?: HttpHandlerOptions, ): Effect.Effect< UpdateAccountCommandOutput, - | Cause.TimeoutException + | Cause.TimeoutError | SdkError | BadRequestError | ConflictError @@ -2053,7 +2053,7 @@ interface APIGatewayService$ { options?: HttpHandlerOptions, ): Effect.Effect< UpdateApiKeyCommandOutput, - | Cause.TimeoutException + | Cause.TimeoutError | SdkError | BadRequestError | ConflictError @@ -2071,7 +2071,7 @@ interface APIGatewayService$ { options?: HttpHandlerOptions, ): Effect.Effect< UpdateAuthorizerCommandOutput, - | Cause.TimeoutException + | Cause.TimeoutError | SdkError | BadRequestError | ConflictError @@ -2089,7 +2089,7 @@ interface APIGatewayService$ { options?: HttpHandlerOptions, ): Effect.Effect< UpdateBasePathMappingCommandOutput, - | Cause.TimeoutException + | Cause.TimeoutError | SdkError | BadRequestError | ConflictError @@ -2107,7 +2107,7 @@ interface APIGatewayService$ { options?: HttpHandlerOptions, ): Effect.Effect< UpdateClientCertificateCommandOutput, - | Cause.TimeoutException + | Cause.TimeoutError | SdkError | BadRequestError | ConflictError @@ -2125,7 +2125,7 @@ interface APIGatewayService$ { options?: HttpHandlerOptions, ): Effect.Effect< UpdateDeploymentCommandOutput, - | Cause.TimeoutException + | Cause.TimeoutError | SdkError | BadRequestError | ConflictError @@ -2144,7 +2144,7 @@ interface APIGatewayService$ { options?: HttpHandlerOptions, ): Effect.Effect< UpdateDocumentationPartCommandOutput, - | Cause.TimeoutException + | Cause.TimeoutError | SdkError | BadRequestError | ConflictError @@ -2162,7 +2162,7 @@ interface APIGatewayService$ { options?: HttpHandlerOptions, ): Effect.Effect< UpdateDocumentationVersionCommandOutput, - | Cause.TimeoutException + | Cause.TimeoutError | SdkError | BadRequestError | ConflictError @@ -2180,7 +2180,7 @@ interface APIGatewayService$ { options?: HttpHandlerOptions, ): Effect.Effect< UpdateDomainNameCommandOutput, - | Cause.TimeoutException + | Cause.TimeoutError | SdkError | BadRequestError | ConflictError @@ -2198,7 +2198,7 @@ interface APIGatewayService$ { options?: HttpHandlerOptions, ): Effect.Effect< UpdateGatewayResponseCommandOutput, - | Cause.TimeoutException + | Cause.TimeoutError | SdkError | BadRequestError | ConflictError @@ -2216,7 +2216,7 @@ interface APIGatewayService$ { options?: HttpHandlerOptions, ): Effect.Effect< UpdateIntegrationCommandOutput, - | Cause.TimeoutException + | Cause.TimeoutError | SdkError | BadRequestError | ConflictError @@ -2234,7 +2234,7 @@ interface APIGatewayService$ { options?: HttpHandlerOptions, ): Effect.Effect< UpdateIntegrationResponseCommandOutput, - | Cause.TimeoutException + | Cause.TimeoutError | SdkError | BadRequestError | ConflictError @@ -2252,7 +2252,7 @@ interface APIGatewayService$ { options?: HttpHandlerOptions, ): Effect.Effect< UpdateMethodCommandOutput, - | Cause.TimeoutException + | Cause.TimeoutError | SdkError | BadRequestError | ConflictError @@ -2269,7 +2269,7 @@ interface APIGatewayService$ { options?: HttpHandlerOptions, ): Effect.Effect< UpdateMethodResponseCommandOutput, - | Cause.TimeoutException + | Cause.TimeoutError | SdkError | BadRequestError | ConflictError @@ -2287,7 +2287,7 @@ interface APIGatewayService$ { options?: HttpHandlerOptions, ): Effect.Effect< UpdateModelCommandOutput, - | Cause.TimeoutException + | Cause.TimeoutError | SdkError | BadRequestError | ConflictError @@ -2305,7 +2305,7 @@ interface APIGatewayService$ { options?: HttpHandlerOptions, ): Effect.Effect< UpdateRequestValidatorCommandOutput, - | Cause.TimeoutException + | Cause.TimeoutError | SdkError | BadRequestError | ConflictError @@ -2323,7 +2323,7 @@ interface APIGatewayService$ { options?: HttpHandlerOptions, ): Effect.Effect< UpdateResourceCommandOutput, - | Cause.TimeoutException + | Cause.TimeoutError | SdkError | BadRequestError | ConflictError @@ -2340,7 +2340,7 @@ interface APIGatewayService$ { options?: HttpHandlerOptions, ): Effect.Effect< UpdateRestApiCommandOutput, - | Cause.TimeoutException + | Cause.TimeoutError | SdkError | BadRequestError | ConflictError @@ -2358,7 +2358,7 @@ interface APIGatewayService$ { options?: HttpHandlerOptions, ): Effect.Effect< UpdateStageCommandOutput, - | Cause.TimeoutException + | Cause.TimeoutError | SdkError | BadRequestError | ConflictError @@ -2376,7 +2376,7 @@ interface APIGatewayService$ { options?: HttpHandlerOptions, ): Effect.Effect< UpdateUsageCommandOutput, - | Cause.TimeoutException + | Cause.TimeoutError | SdkError | BadRequestError | ConflictError @@ -2394,7 +2394,7 @@ interface APIGatewayService$ { options?: HttpHandlerOptions, ): Effect.Effect< UpdateUsagePlanCommandOutput, - | Cause.TimeoutException + | Cause.TimeoutError | SdkError | BadRequestError | ConflictError @@ -2412,7 +2412,7 @@ interface APIGatewayService$ { options?: HttpHandlerOptions, ): Effect.Effect< UpdateVpcLinkCommandOutput, - | Cause.TimeoutException + | Cause.TimeoutError | SdkError | BadRequestError | ConflictError @@ -2444,10 +2444,10 @@ export const makeAPIGatewayService = Effect.gen(function*() { * @since 1.0.0 * @category models */ -export class APIGatewayService extends Effect.Tag("@effect-aws/client-api-gateway/APIGatewayService")< +export class APIGatewayService extends ServiceMap.Service< APIGatewayService, APIGatewayService$ ->() { +>()("@effect-aws/client-api-gateway/APIGatewayService") { static readonly defaultLayer = Layer.effect(this, makeAPIGatewayService).pipe(Layer.provide(Instance.layer)); static readonly layer = (config: APIGatewayService.Config) => Layer.effect(this, makeAPIGatewayService).pipe( diff --git a/packages/client-api-gateway/src/APIGatewayServiceConfig.ts b/packages/client-api-gateway/src/APIGatewayServiceConfig.ts index 1d08f149..47e5f54f 100644 --- a/packages/client-api-gateway/src/APIGatewayServiceConfig.ts +++ b/packages/client-api-gateway/src/APIGatewayServiceConfig.ts @@ -3,18 +3,17 @@ */ import type { APIGatewayClientConfig } from "@aws-sdk/client-api-gateway"; import { ServiceLogger } from "@effect-aws/commons"; -import { Effect, FiberRef, Layer } from "effect"; +import { Effect, Layer, ServiceMap } from "effect"; import { dual } from "effect/Function"; -import { globalValue } from "effect/GlobalValue"; import type { APIGatewayService } from "./APIGatewayService.js"; /** * @since 1.0.0 * @category api-gateway service config */ -const currentAPIGatewayServiceConfig = globalValue( +const currentAPIGatewayServiceConfig = ServiceMap.Reference( "@effect-aws/client-api-gateway/currentAPIGatewayServiceConfig", - () => FiberRef.unsafeMake({}), + { defaultValue: () => ({}) }, ); /** @@ -27,7 +26,7 @@ export const withAPIGatewayServiceConfig: { } = dual( 2, (effect: Effect.Effect, config: APIGatewayService.Config): Effect.Effect => - Effect.locally(effect, currentAPIGatewayServiceConfig, config), + Effect.provideService(effect, currentAPIGatewayServiceConfig, config), ); /** @@ -35,14 +34,14 @@ export const withAPIGatewayServiceConfig: { * @category api-gateway service config */ export const setAPIGatewayServiceConfig = (config: APIGatewayService.Config) => - Layer.locallyScoped(currentAPIGatewayServiceConfig, config); + Layer.succeed(currentAPIGatewayServiceConfig, config); /** * @since 1.0.0 * @category adapters */ export const toAPIGatewayClientConfig: Effect.Effect = Effect.gen(function*() { - const { logger: serviceLogger, ...config } = yield* FiberRef.get(currentAPIGatewayServiceConfig); + const { logger: serviceLogger, ...config } = yield* currentAPIGatewayServiceConfig; const logger = serviceLogger === true ? yield* ServiceLogger.toClientLogger(ServiceLogger.defaultServiceLogger) diff --git a/packages/client-api-gateway/test/APIGateway.test.ts b/packages/client-api-gateway/test/APIGateway.test.ts index 8316db8a..b75278bf 100644 --- a/packages/client-api-gateway/test/APIGateway.test.ts +++ b/packages/client-api-gateway/test/APIGateway.test.ts @@ -26,7 +26,7 @@ describe("APIGatewayClientImpl", () => { const args: GetApiKeyCommandInput = { apiKey: "test" }; - const program = APIGateway.getApiKey(args); + const program = APIGateway.use((svc) => svc.getApiKey(args)); const result = await pipe( program, @@ -46,7 +46,7 @@ describe("APIGatewayClientImpl", () => { const args: GetApiKeyCommandInput = { apiKey: "test" }; - const program = APIGateway.getApiKey(args); + const program = APIGateway.use((svc) => svc.getApiKey(args)); const result = await pipe( program, @@ -69,7 +69,7 @@ describe("APIGatewayClientImpl", () => { const args: GetApiKeyCommandInput = { apiKey: "test" }; - const program = APIGateway.getApiKey(args); + const program = APIGateway.use((svc) => svc.getApiKey(args)); const result = await pipe( program, @@ -93,7 +93,7 @@ describe("APIGatewayClientImpl", () => { const args: GetApiKeyCommandInput = { apiKey: "test" }; - const program = APIGateway.getApiKey(args); + const program = APIGateway.use((svc) => svc.getApiKey(args)); const result = await pipe( program, @@ -121,7 +121,7 @@ describe("APIGatewayClientImpl", () => { const args: GetApiKeyCommandInput = { apiKey: "test" }; - const program = APIGateway.getApiKey(args); + const program = APIGateway.use((svc) => svc.getApiKey(args)); const result = await pipe( program, @@ -131,7 +131,7 @@ describe("APIGatewayClientImpl", () => { expect(result).toEqual( Exit.fail( - SdkError({ + new SdkError({ ...new Error("test"), name: "SdkError", message: "test", @@ -156,7 +156,7 @@ describe("APIGatewayClientImpl", () => { const args: GetApiKeyCommandInput = { apiKey: "test" }; - const program = APIGateway.getApiKey(args).pipe( + const program = APIGateway.use((svc) => svc.getApiKey(args)).pipe( Effect.catchTag("NotHandledException" as any, () => Effect.succeed(null)), ); @@ -166,9 +166,9 @@ describe("APIGatewayClientImpl", () => { Effect.runPromiseExit, ); - expect(result).toEqual( + expect(result).toContainEqual( Exit.fail( - SdkError({ + new SdkError({ ...new Error("test"), name: "SdkError", message: "test", diff --git a/packages/client-athena/.projen/deps.json b/packages/client-athena/.projen/deps.json index 7f068207..c86f00b9 100644 --- a/packages/client-athena/.projen/deps.json +++ b/packages/client-athena/.projen/deps.json @@ -7,6 +7,7 @@ }, { "name": "effect", + "version": "4.0.0-beta.8", "type": "build" }, { @@ -16,7 +17,7 @@ }, { "name": "effect", - "version": ">=3.0.4 <4.0.0", + "version": ">=4.0.0 <5.0.0", "type": "peer" }, { diff --git a/packages/client-athena/README.md b/packages/client-athena/README.md index 420dff30..9c5a1836 100644 --- a/packages/client-athena/README.md +++ b/packages/client-athena/README.md @@ -16,7 +16,7 @@ With default AthenaClient instance: ```typescript import { Athena } from "@effect-aws/client-athena"; -const program = Athena.startQueryExecution(args); +const program = Athena.use((svc) => svc.startQueryExecution(args)); const result = pipe( program, @@ -30,7 +30,7 @@ With custom AthenaClient instance: ```typescript import { Athena } from "@effect-aws/client-athena"; -const program = Athena.startQueryExecution(args); +const program = Athena.use((svc) => svc.startQueryExecution(args)); const result = await pipe( program, @@ -46,7 +46,7 @@ With custom AthenaClient configuration: ```typescript import { Athena } from "@effect-aws/client-athena"; -const program = Athena.startQueryExecution(args); +const program = Athena.use((svc) => svc.startQueryExecution(args)); const result = await pipe( program, diff --git a/packages/client-athena/package.json b/packages/client-athena/package.json index 968476d9..9f8b96cb 100644 --- a/packages/client-athena/package.json +++ b/packages/client-athena/package.json @@ -26,11 +26,11 @@ }, "devDependencies": { "@types/node": "ts5.4", - "effect": "^3.16.4", + "effect": "4.0.0-beta.8", "typescript": "^5.4.2" }, "peerDependencies": { - "effect": ">=3.0.4 <4.0.0" + "effect": ">=4.0.0 <5.0.0" }, "dependencies": { "@aws-sdk/client-athena": "^3", diff --git a/packages/client-athena/src/AthenaClientInstance.ts b/packages/client-athena/src/AthenaClientInstance.ts index b006846b..59c3fa83 100644 --- a/packages/client-athena/src/AthenaClientInstance.ts +++ b/packages/client-athena/src/AthenaClientInstance.ts @@ -2,16 +2,16 @@ * @since 1.0.0 */ import { AthenaClient } from "@aws-sdk/client-athena"; -import { Context, Effect, Layer } from "effect"; +import { Effect, Layer, ServiceMap } from "effect"; import * as AthenaServiceConfig from "./AthenaServiceConfig.js"; /** * @since 1.0.0 * @category tags */ -export class AthenaClientInstance extends Context.Tag( +export class AthenaClientInstance extends ServiceMap.Service()( "@effect-aws/client-athena/AthenaClientInstance", -)() {} +) {} /** * @since 1.0.0 @@ -30,4 +30,4 @@ export const make = Effect.flatMap( * @since 1.0.0 * @category layers */ -export const layer = Layer.scoped(AthenaClientInstance, make); +export const layer = Layer.effect(AthenaClientInstance, make); diff --git a/packages/client-athena/src/AthenaService.ts b/packages/client-athena/src/AthenaService.ts index 395d0a70..2d74d767 100644 --- a/packages/client-athena/src/AthenaService.ts +++ b/packages/client-athena/src/AthenaService.ts @@ -218,7 +218,7 @@ import { import type { HttpHandlerOptions, ServiceLogger } from "@effect-aws/commons"; import { Service } from "@effect-aws/commons"; import type { Cause } from "effect"; -import { Effect, Layer } from "effect"; +import { Effect, Layer, ServiceMap } from "effect"; import * as Instance from "./AthenaClientInstance.js"; import * as AthenaServiceConfig from "./AthenaServiceConfig.js"; import type { @@ -316,7 +316,7 @@ interface AthenaService$ { options?: HttpHandlerOptions, ): Effect.Effect< BatchGetNamedQueryCommandOutput, - Cause.TimeoutException | SdkError | InternalServerError | InvalidRequestError + Cause.TimeoutError | SdkError | InternalServerError | InvalidRequestError >; /** @@ -327,7 +327,7 @@ interface AthenaService$ { options?: HttpHandlerOptions, ): Effect.Effect< BatchGetPreparedStatementCommandOutput, - Cause.TimeoutException | SdkError | InternalServerError | InvalidRequestError + Cause.TimeoutError | SdkError | InternalServerError | InvalidRequestError >; /** @@ -338,7 +338,7 @@ interface AthenaService$ { options?: HttpHandlerOptions, ): Effect.Effect< BatchGetQueryExecutionCommandOutput, - Cause.TimeoutException | SdkError | InternalServerError | InvalidRequestError + Cause.TimeoutError | SdkError | InternalServerError | InvalidRequestError >; /** @@ -349,7 +349,7 @@ interface AthenaService$ { options?: HttpHandlerOptions, ): Effect.Effect< CancelCapacityReservationCommandOutput, - Cause.TimeoutException | SdkError | InternalServerError | InvalidRequestError + Cause.TimeoutError | SdkError | InternalServerError | InvalidRequestError >; /** @@ -360,7 +360,7 @@ interface AthenaService$ { options?: HttpHandlerOptions, ): Effect.Effect< CreateCapacityReservationCommandOutput, - Cause.TimeoutException | SdkError | InternalServerError | InvalidRequestError + Cause.TimeoutError | SdkError | InternalServerError | InvalidRequestError >; /** @@ -371,7 +371,7 @@ interface AthenaService$ { options?: HttpHandlerOptions, ): Effect.Effect< CreateDataCatalogCommandOutput, - Cause.TimeoutException | SdkError | InternalServerError | InvalidRequestError + Cause.TimeoutError | SdkError | InternalServerError | InvalidRequestError >; /** @@ -382,7 +382,7 @@ interface AthenaService$ { options?: HttpHandlerOptions, ): Effect.Effect< CreateNamedQueryCommandOutput, - Cause.TimeoutException | SdkError | InternalServerError | InvalidRequestError + Cause.TimeoutError | SdkError | InternalServerError | InvalidRequestError >; /** @@ -393,7 +393,7 @@ interface AthenaService$ { options?: HttpHandlerOptions, ): Effect.Effect< CreateNotebookCommandOutput, - Cause.TimeoutException | SdkError | InternalServerError | InvalidRequestError | TooManyRequestsError + Cause.TimeoutError | SdkError | InternalServerError | InvalidRequestError | TooManyRequestsError >; /** @@ -404,7 +404,7 @@ interface AthenaService$ { options?: HttpHandlerOptions, ): Effect.Effect< CreatePreparedStatementCommandOutput, - Cause.TimeoutException | SdkError | InternalServerError | InvalidRequestError + Cause.TimeoutError | SdkError | InternalServerError | InvalidRequestError >; /** @@ -415,7 +415,7 @@ interface AthenaService$ { options?: HttpHandlerOptions, ): Effect.Effect< CreatePresignedNotebookUrlCommandOutput, - Cause.TimeoutException | SdkError | InternalServerError | InvalidRequestError | ResourceNotFoundError + Cause.TimeoutError | SdkError | InternalServerError | InvalidRequestError | ResourceNotFoundError >; /** @@ -426,7 +426,7 @@ interface AthenaService$ { options?: HttpHandlerOptions, ): Effect.Effect< CreateWorkGroupCommandOutput, - Cause.TimeoutException | SdkError | InternalServerError | InvalidRequestError + Cause.TimeoutError | SdkError | InternalServerError | InvalidRequestError >; /** @@ -437,7 +437,7 @@ interface AthenaService$ { options?: HttpHandlerOptions, ): Effect.Effect< DeleteCapacityReservationCommandOutput, - Cause.TimeoutException | SdkError | InternalServerError | InvalidRequestError + Cause.TimeoutError | SdkError | InternalServerError | InvalidRequestError >; /** @@ -448,7 +448,7 @@ interface AthenaService$ { options?: HttpHandlerOptions, ): Effect.Effect< DeleteDataCatalogCommandOutput, - Cause.TimeoutException | SdkError | InternalServerError | InvalidRequestError + Cause.TimeoutError | SdkError | InternalServerError | InvalidRequestError >; /** @@ -459,7 +459,7 @@ interface AthenaService$ { options?: HttpHandlerOptions, ): Effect.Effect< DeleteNamedQueryCommandOutput, - Cause.TimeoutException | SdkError | InternalServerError | InvalidRequestError + Cause.TimeoutError | SdkError | InternalServerError | InvalidRequestError >; /** @@ -470,7 +470,7 @@ interface AthenaService$ { options?: HttpHandlerOptions, ): Effect.Effect< DeleteNotebookCommandOutput, - Cause.TimeoutException | SdkError | InternalServerError | InvalidRequestError | TooManyRequestsError + Cause.TimeoutError | SdkError | InternalServerError | InvalidRequestError | TooManyRequestsError >; /** @@ -481,7 +481,7 @@ interface AthenaService$ { options?: HttpHandlerOptions, ): Effect.Effect< DeletePreparedStatementCommandOutput, - Cause.TimeoutException | SdkError | InternalServerError | InvalidRequestError | ResourceNotFoundError + Cause.TimeoutError | SdkError | InternalServerError | InvalidRequestError | ResourceNotFoundError >; /** @@ -492,7 +492,7 @@ interface AthenaService$ { options?: HttpHandlerOptions, ): Effect.Effect< DeleteWorkGroupCommandOutput, - Cause.TimeoutException | SdkError | InternalServerError | InvalidRequestError + Cause.TimeoutError | SdkError | InternalServerError | InvalidRequestError >; /** @@ -503,7 +503,7 @@ interface AthenaService$ { options?: HttpHandlerOptions, ): Effect.Effect< ExportNotebookCommandOutput, - Cause.TimeoutException | SdkError | InternalServerError | InvalidRequestError | TooManyRequestsError + Cause.TimeoutError | SdkError | InternalServerError | InvalidRequestError | TooManyRequestsError >; /** @@ -514,7 +514,7 @@ interface AthenaService$ { options?: HttpHandlerOptions, ): Effect.Effect< GetCalculationExecutionCommandOutput, - Cause.TimeoutException | SdkError | InternalServerError | InvalidRequestError | ResourceNotFoundError + Cause.TimeoutError | SdkError | InternalServerError | InvalidRequestError | ResourceNotFoundError >; /** @@ -525,7 +525,7 @@ interface AthenaService$ { options?: HttpHandlerOptions, ): Effect.Effect< GetCalculationExecutionCodeCommandOutput, - Cause.TimeoutException | SdkError | InternalServerError | InvalidRequestError | ResourceNotFoundError + Cause.TimeoutError | SdkError | InternalServerError | InvalidRequestError | ResourceNotFoundError >; /** @@ -536,7 +536,7 @@ interface AthenaService$ { options?: HttpHandlerOptions, ): Effect.Effect< GetCalculationExecutionStatusCommandOutput, - Cause.TimeoutException | SdkError | InternalServerError | InvalidRequestError | ResourceNotFoundError + Cause.TimeoutError | SdkError | InternalServerError | InvalidRequestError | ResourceNotFoundError >; /** @@ -547,7 +547,7 @@ interface AthenaService$ { options?: HttpHandlerOptions, ): Effect.Effect< GetCapacityAssignmentConfigurationCommandOutput, - Cause.TimeoutException | SdkError | InternalServerError | InvalidRequestError + Cause.TimeoutError | SdkError | InternalServerError | InvalidRequestError >; /** @@ -558,7 +558,7 @@ interface AthenaService$ { options?: HttpHandlerOptions, ): Effect.Effect< GetCapacityReservationCommandOutput, - Cause.TimeoutException | SdkError | InternalServerError | InvalidRequestError + Cause.TimeoutError | SdkError | InternalServerError | InvalidRequestError >; /** @@ -569,7 +569,7 @@ interface AthenaService$ { options?: HttpHandlerOptions, ): Effect.Effect< GetDataCatalogCommandOutput, - Cause.TimeoutException | SdkError | InternalServerError | InvalidRequestError + Cause.TimeoutError | SdkError | InternalServerError | InvalidRequestError >; /** @@ -580,7 +580,7 @@ interface AthenaService$ { options?: HttpHandlerOptions, ): Effect.Effect< GetDatabaseCommandOutput, - Cause.TimeoutException | SdkError | InternalServerError | InvalidRequestError | MetadataError + Cause.TimeoutError | SdkError | InternalServerError | InvalidRequestError | MetadataError >; /** @@ -591,7 +591,7 @@ interface AthenaService$ { options?: HttpHandlerOptions, ): Effect.Effect< GetNamedQueryCommandOutput, - Cause.TimeoutException | SdkError | InternalServerError | InvalidRequestError + Cause.TimeoutError | SdkError | InternalServerError | InvalidRequestError >; /** @@ -602,7 +602,7 @@ interface AthenaService$ { options?: HttpHandlerOptions, ): Effect.Effect< GetNotebookMetadataCommandOutput, - Cause.TimeoutException | SdkError | InternalServerError | InvalidRequestError | TooManyRequestsError + Cause.TimeoutError | SdkError | InternalServerError | InvalidRequestError | TooManyRequestsError >; /** @@ -613,7 +613,7 @@ interface AthenaService$ { options?: HttpHandlerOptions, ): Effect.Effect< GetPreparedStatementCommandOutput, - Cause.TimeoutException | SdkError | InternalServerError | InvalidRequestError | ResourceNotFoundError + Cause.TimeoutError | SdkError | InternalServerError | InvalidRequestError | ResourceNotFoundError >; /** @@ -624,7 +624,7 @@ interface AthenaService$ { options?: HttpHandlerOptions, ): Effect.Effect< GetQueryExecutionCommandOutput, - Cause.TimeoutException | SdkError | InternalServerError | InvalidRequestError + Cause.TimeoutError | SdkError | InternalServerError | InvalidRequestError >; /** @@ -635,7 +635,7 @@ interface AthenaService$ { options?: HttpHandlerOptions, ): Effect.Effect< GetQueryResultsCommandOutput, - Cause.TimeoutException | SdkError | InternalServerError | InvalidRequestError | TooManyRequestsError + Cause.TimeoutError | SdkError | InternalServerError | InvalidRequestError | TooManyRequestsError >; /** @@ -646,7 +646,7 @@ interface AthenaService$ { options?: HttpHandlerOptions, ): Effect.Effect< GetQueryRuntimeStatisticsCommandOutput, - Cause.TimeoutException | SdkError | InternalServerError | InvalidRequestError + Cause.TimeoutError | SdkError | InternalServerError | InvalidRequestError >; /** @@ -657,7 +657,7 @@ interface AthenaService$ { options?: HttpHandlerOptions, ): Effect.Effect< GetResourceDashboardCommandOutput, - Cause.TimeoutException | SdkError | InternalServerError | InvalidRequestError | ResourceNotFoundError + Cause.TimeoutError | SdkError | InternalServerError | InvalidRequestError | ResourceNotFoundError >; /** @@ -668,7 +668,7 @@ interface AthenaService$ { options?: HttpHandlerOptions, ): Effect.Effect< GetSessionCommandOutput, - Cause.TimeoutException | SdkError | InternalServerError | InvalidRequestError | ResourceNotFoundError + Cause.TimeoutError | SdkError | InternalServerError | InvalidRequestError | ResourceNotFoundError >; /** @@ -679,7 +679,7 @@ interface AthenaService$ { options?: HttpHandlerOptions, ): Effect.Effect< GetSessionEndpointCommandOutput, - Cause.TimeoutException | SdkError | InternalServerError | InvalidRequestError | ResourceNotFoundError + Cause.TimeoutError | SdkError | InternalServerError | InvalidRequestError | ResourceNotFoundError >; /** @@ -690,7 +690,7 @@ interface AthenaService$ { options?: HttpHandlerOptions, ): Effect.Effect< GetSessionStatusCommandOutput, - Cause.TimeoutException | SdkError | InternalServerError | InvalidRequestError | ResourceNotFoundError + Cause.TimeoutError | SdkError | InternalServerError | InvalidRequestError | ResourceNotFoundError >; /** @@ -701,7 +701,7 @@ interface AthenaService$ { options?: HttpHandlerOptions, ): Effect.Effect< GetTableMetadataCommandOutput, - Cause.TimeoutException | SdkError | InternalServerError | InvalidRequestError | MetadataError + Cause.TimeoutError | SdkError | InternalServerError | InvalidRequestError | MetadataError >; /** @@ -712,7 +712,7 @@ interface AthenaService$ { options?: HttpHandlerOptions, ): Effect.Effect< GetWorkGroupCommandOutput, - Cause.TimeoutException | SdkError | InternalServerError | InvalidRequestError + Cause.TimeoutError | SdkError | InternalServerError | InvalidRequestError >; /** @@ -723,7 +723,7 @@ interface AthenaService$ { options?: HttpHandlerOptions, ): Effect.Effect< ImportNotebookCommandOutput, - Cause.TimeoutException | SdkError | InternalServerError | InvalidRequestError | TooManyRequestsError + Cause.TimeoutError | SdkError | InternalServerError | InvalidRequestError | TooManyRequestsError >; /** @@ -734,7 +734,7 @@ interface AthenaService$ { options?: HttpHandlerOptions, ): Effect.Effect< ListApplicationDPUSizesCommandOutput, - Cause.TimeoutException | SdkError | InternalServerError | InvalidRequestError | TooManyRequestsError + Cause.TimeoutError | SdkError | InternalServerError | InvalidRequestError | TooManyRequestsError >; /** @@ -745,7 +745,7 @@ interface AthenaService$ { options?: HttpHandlerOptions, ): Effect.Effect< ListCalculationExecutionsCommandOutput, - Cause.TimeoutException | SdkError | InternalServerError | InvalidRequestError | ResourceNotFoundError + Cause.TimeoutError | SdkError | InternalServerError | InvalidRequestError | ResourceNotFoundError >; /** @@ -756,7 +756,7 @@ interface AthenaService$ { options?: HttpHandlerOptions, ): Effect.Effect< ListCapacityReservationsCommandOutput, - Cause.TimeoutException | SdkError | InternalServerError | InvalidRequestError + Cause.TimeoutError | SdkError | InternalServerError | InvalidRequestError >; /** @@ -767,7 +767,7 @@ interface AthenaService$ { options?: HttpHandlerOptions, ): Effect.Effect< ListDataCatalogsCommandOutput, - Cause.TimeoutException | SdkError | InternalServerError | InvalidRequestError + Cause.TimeoutError | SdkError | InternalServerError | InvalidRequestError >; /** @@ -778,7 +778,7 @@ interface AthenaService$ { options?: HttpHandlerOptions, ): Effect.Effect< ListDatabasesCommandOutput, - Cause.TimeoutException | SdkError | InternalServerError | InvalidRequestError | MetadataError + Cause.TimeoutError | SdkError | InternalServerError | InvalidRequestError | MetadataError >; /** @@ -789,7 +789,7 @@ interface AthenaService$ { options?: HttpHandlerOptions, ): Effect.Effect< ListEngineVersionsCommandOutput, - Cause.TimeoutException | SdkError | InternalServerError | InvalidRequestError + Cause.TimeoutError | SdkError | InternalServerError | InvalidRequestError >; /** @@ -800,7 +800,7 @@ interface AthenaService$ { options?: HttpHandlerOptions, ): Effect.Effect< ListExecutorsCommandOutput, - Cause.TimeoutException | SdkError | InternalServerError | InvalidRequestError | ResourceNotFoundError + Cause.TimeoutError | SdkError | InternalServerError | InvalidRequestError | ResourceNotFoundError >; /** @@ -811,7 +811,7 @@ interface AthenaService$ { options?: HttpHandlerOptions, ): Effect.Effect< ListNamedQueriesCommandOutput, - Cause.TimeoutException | SdkError | InternalServerError | InvalidRequestError + Cause.TimeoutError | SdkError | InternalServerError | InvalidRequestError >; /** @@ -822,7 +822,7 @@ interface AthenaService$ { options?: HttpHandlerOptions, ): Effect.Effect< ListNotebookMetadataCommandOutput, - Cause.TimeoutException | SdkError | InternalServerError | InvalidRequestError | TooManyRequestsError + Cause.TimeoutError | SdkError | InternalServerError | InvalidRequestError | TooManyRequestsError >; /** @@ -833,7 +833,7 @@ interface AthenaService$ { options?: HttpHandlerOptions, ): Effect.Effect< ListNotebookSessionsCommandOutput, - Cause.TimeoutException | SdkError | InternalServerError | InvalidRequestError | ResourceNotFoundError + Cause.TimeoutError | SdkError | InternalServerError | InvalidRequestError | ResourceNotFoundError >; /** @@ -844,7 +844,7 @@ interface AthenaService$ { options?: HttpHandlerOptions, ): Effect.Effect< ListPreparedStatementsCommandOutput, - Cause.TimeoutException | SdkError | InternalServerError | InvalidRequestError + Cause.TimeoutError | SdkError | InternalServerError | InvalidRequestError >; /** @@ -855,7 +855,7 @@ interface AthenaService$ { options?: HttpHandlerOptions, ): Effect.Effect< ListQueryExecutionsCommandOutput, - Cause.TimeoutException | SdkError | InternalServerError | InvalidRequestError + Cause.TimeoutError | SdkError | InternalServerError | InvalidRequestError >; /** @@ -866,7 +866,7 @@ interface AthenaService$ { options?: HttpHandlerOptions, ): Effect.Effect< ListSessionsCommandOutput, - Cause.TimeoutException | SdkError | InternalServerError | InvalidRequestError | ResourceNotFoundError + Cause.TimeoutError | SdkError | InternalServerError | InvalidRequestError | ResourceNotFoundError >; /** @@ -877,7 +877,7 @@ interface AthenaService$ { options?: HttpHandlerOptions, ): Effect.Effect< ListTableMetadataCommandOutput, - Cause.TimeoutException | SdkError | InternalServerError | InvalidRequestError | MetadataError + Cause.TimeoutError | SdkError | InternalServerError | InvalidRequestError | MetadataError >; /** @@ -888,7 +888,7 @@ interface AthenaService$ { options?: HttpHandlerOptions, ): Effect.Effect< ListTagsForResourceCommandOutput, - Cause.TimeoutException | SdkError | InternalServerError | InvalidRequestError | ResourceNotFoundError + Cause.TimeoutError | SdkError | InternalServerError | InvalidRequestError | ResourceNotFoundError >; /** @@ -899,7 +899,7 @@ interface AthenaService$ { options?: HttpHandlerOptions, ): Effect.Effect< ListWorkGroupsCommandOutput, - Cause.TimeoutException | SdkError | InternalServerError | InvalidRequestError + Cause.TimeoutError | SdkError | InternalServerError | InvalidRequestError >; /** @@ -910,7 +910,7 @@ interface AthenaService$ { options?: HttpHandlerOptions, ): Effect.Effect< PutCapacityAssignmentConfigurationCommandOutput, - Cause.TimeoutException | SdkError | InternalServerError | InvalidRequestError + Cause.TimeoutError | SdkError | InternalServerError | InvalidRequestError >; /** @@ -921,7 +921,7 @@ interface AthenaService$ { options?: HttpHandlerOptions, ): Effect.Effect< StartCalculationExecutionCommandOutput, - Cause.TimeoutException | SdkError | InternalServerError | InvalidRequestError | ResourceNotFoundError + Cause.TimeoutError | SdkError | InternalServerError | InvalidRequestError | ResourceNotFoundError >; /** @@ -932,7 +932,7 @@ interface AthenaService$ { options?: HttpHandlerOptions, ): Effect.Effect< StartQueryExecutionCommandOutput, - Cause.TimeoutException | SdkError | InternalServerError | InvalidRequestError | TooManyRequestsError + Cause.TimeoutError | SdkError | InternalServerError | InvalidRequestError | TooManyRequestsError >; /** @@ -943,7 +943,7 @@ interface AthenaService$ { options?: HttpHandlerOptions, ): Effect.Effect< StartSessionCommandOutput, - | Cause.TimeoutException + | Cause.TimeoutError | SdkError | InternalServerError | InvalidRequestError @@ -960,7 +960,7 @@ interface AthenaService$ { options?: HttpHandlerOptions, ): Effect.Effect< StopCalculationExecutionCommandOutput, - Cause.TimeoutException | SdkError | InternalServerError | InvalidRequestError | ResourceNotFoundError + Cause.TimeoutError | SdkError | InternalServerError | InvalidRequestError | ResourceNotFoundError >; /** @@ -971,7 +971,7 @@ interface AthenaService$ { options?: HttpHandlerOptions, ): Effect.Effect< StopQueryExecutionCommandOutput, - Cause.TimeoutException | SdkError | InternalServerError | InvalidRequestError + Cause.TimeoutError | SdkError | InternalServerError | InvalidRequestError >; /** @@ -982,7 +982,7 @@ interface AthenaService$ { options?: HttpHandlerOptions, ): Effect.Effect< TagResourceCommandOutput, - Cause.TimeoutException | SdkError | InternalServerError | InvalidRequestError | ResourceNotFoundError + Cause.TimeoutError | SdkError | InternalServerError | InvalidRequestError | ResourceNotFoundError >; /** @@ -993,7 +993,7 @@ interface AthenaService$ { options?: HttpHandlerOptions, ): Effect.Effect< TerminateSessionCommandOutput, - Cause.TimeoutException | SdkError | InternalServerError | InvalidRequestError | ResourceNotFoundError + Cause.TimeoutError | SdkError | InternalServerError | InvalidRequestError | ResourceNotFoundError >; /** @@ -1004,7 +1004,7 @@ interface AthenaService$ { options?: HttpHandlerOptions, ): Effect.Effect< UntagResourceCommandOutput, - Cause.TimeoutException | SdkError | InternalServerError | InvalidRequestError | ResourceNotFoundError + Cause.TimeoutError | SdkError | InternalServerError | InvalidRequestError | ResourceNotFoundError >; /** @@ -1015,7 +1015,7 @@ interface AthenaService$ { options?: HttpHandlerOptions, ): Effect.Effect< UpdateCapacityReservationCommandOutput, - Cause.TimeoutException | SdkError | InternalServerError | InvalidRequestError + Cause.TimeoutError | SdkError | InternalServerError | InvalidRequestError >; /** @@ -1026,7 +1026,7 @@ interface AthenaService$ { options?: HttpHandlerOptions, ): Effect.Effect< UpdateDataCatalogCommandOutput, - Cause.TimeoutException | SdkError | InternalServerError | InvalidRequestError + Cause.TimeoutError | SdkError | InternalServerError | InvalidRequestError >; /** @@ -1037,7 +1037,7 @@ interface AthenaService$ { options?: HttpHandlerOptions, ): Effect.Effect< UpdateNamedQueryCommandOutput, - Cause.TimeoutException | SdkError | InternalServerError | InvalidRequestError + Cause.TimeoutError | SdkError | InternalServerError | InvalidRequestError >; /** @@ -1048,7 +1048,7 @@ interface AthenaService$ { options?: HttpHandlerOptions, ): Effect.Effect< UpdateNotebookCommandOutput, - Cause.TimeoutException | SdkError | InternalServerError | InvalidRequestError | TooManyRequestsError + Cause.TimeoutError | SdkError | InternalServerError | InvalidRequestError | TooManyRequestsError >; /** @@ -1059,7 +1059,7 @@ interface AthenaService$ { options?: HttpHandlerOptions, ): Effect.Effect< UpdateNotebookMetadataCommandOutput, - Cause.TimeoutException | SdkError | InternalServerError | InvalidRequestError | TooManyRequestsError + Cause.TimeoutError | SdkError | InternalServerError | InvalidRequestError | TooManyRequestsError >; /** @@ -1070,7 +1070,7 @@ interface AthenaService$ { options?: HttpHandlerOptions, ): Effect.Effect< UpdatePreparedStatementCommandOutput, - Cause.TimeoutException | SdkError | InternalServerError | InvalidRequestError | ResourceNotFoundError + Cause.TimeoutError | SdkError | InternalServerError | InvalidRequestError | ResourceNotFoundError >; /** @@ -1081,7 +1081,7 @@ interface AthenaService$ { options?: HttpHandlerOptions, ): Effect.Effect< UpdateWorkGroupCommandOutput, - Cause.TimeoutException | SdkError | InternalServerError | InvalidRequestError + Cause.TimeoutError | SdkError | InternalServerError | InvalidRequestError >; } @@ -1106,10 +1106,10 @@ export const makeAthenaService = Effect.gen(function*() { * @since 1.0.0 * @category models */ -export class AthenaService extends Effect.Tag("@effect-aws/client-athena/AthenaService")< +export class AthenaService extends ServiceMap.Service< AthenaService, AthenaService$ ->() { +>()("@effect-aws/client-athena/AthenaService") { static readonly defaultLayer = Layer.effect(this, makeAthenaService).pipe(Layer.provide(Instance.layer)); static readonly layer = (config: AthenaService.Config) => Layer.effect(this, makeAthenaService).pipe( diff --git a/packages/client-athena/src/AthenaServiceConfig.ts b/packages/client-athena/src/AthenaServiceConfig.ts index 4047922c..d55d2a64 100644 --- a/packages/client-athena/src/AthenaServiceConfig.ts +++ b/packages/client-athena/src/AthenaServiceConfig.ts @@ -3,18 +3,17 @@ */ import type { AthenaClientConfig } from "@aws-sdk/client-athena"; import { ServiceLogger } from "@effect-aws/commons"; -import { Effect, FiberRef, Layer } from "effect"; +import { Effect, Layer, ServiceMap } from "effect"; import { dual } from "effect/Function"; -import { globalValue } from "effect/GlobalValue"; import type { AthenaService } from "./AthenaService.js"; /** * @since 1.0.0 * @category athena service config */ -const currentAthenaServiceConfig = globalValue( +const currentAthenaServiceConfig = ServiceMap.Reference( "@effect-aws/client-athena/currentAthenaServiceConfig", - () => FiberRef.unsafeMake({}), + { defaultValue: () => ({}) }, ); /** @@ -27,7 +26,7 @@ export const withAthenaServiceConfig: { } = dual( 2, (effect: Effect.Effect, config: AthenaService.Config): Effect.Effect => - Effect.locally(effect, currentAthenaServiceConfig, config), + Effect.provideService(effect, currentAthenaServiceConfig, config), ); /** @@ -35,14 +34,14 @@ export const withAthenaServiceConfig: { * @category athena service config */ export const setAthenaServiceConfig = (config: AthenaService.Config) => - Layer.locallyScoped(currentAthenaServiceConfig, config); + Layer.succeed(currentAthenaServiceConfig, config); /** * @since 1.0.0 * @category adapters */ export const toAthenaClientConfig: Effect.Effect = Effect.gen(function*() { - const { logger: serviceLogger, ...config } = yield* FiberRef.get(currentAthenaServiceConfig); + const { logger: serviceLogger, ...config } = yield* currentAthenaServiceConfig; const logger = serviceLogger === true ? yield* ServiceLogger.toClientLogger(ServiceLogger.defaultServiceLogger) diff --git a/packages/client-athena/test/Athena.test.ts b/packages/client-athena/test/Athena.test.ts index f6547ac0..8fc50fba 100644 --- a/packages/client-athena/test/Athena.test.ts +++ b/packages/client-athena/test/Athena.test.ts @@ -26,7 +26,7 @@ describe("AthenaClientImpl", () => { const args: StartQueryExecutionCommandInput = { QueryString: "test" }; - const program = Athena.startQueryExecution(args); + const program = Athena.use((svc) => svc.startQueryExecution(args)); const result = await pipe( program, @@ -46,7 +46,7 @@ describe("AthenaClientImpl", () => { const args: StartQueryExecutionCommandInput = { QueryString: "test" }; - const program = Athena.startQueryExecution(args); + const program = Athena.use((svc) => svc.startQueryExecution(args)); const result = await pipe( program, @@ -69,7 +69,7 @@ describe("AthenaClientImpl", () => { const args: StartQueryExecutionCommandInput = { QueryString: "test" }; - const program = Athena.startQueryExecution(args); + const program = Athena.use((svc) => svc.startQueryExecution(args)); const result = await pipe( program, @@ -93,7 +93,7 @@ describe("AthenaClientImpl", () => { const args: StartQueryExecutionCommandInput = { QueryString: "test" }; - const program = Athena.startQueryExecution(args); + const program = Athena.use((svc) => svc.startQueryExecution(args)); const result = await pipe( program, @@ -121,7 +121,7 @@ describe("AthenaClientImpl", () => { const args: StartQueryExecutionCommandInput = { QueryString: "test" }; - const program = Athena.startQueryExecution(args); + const program = Athena.use((svc) => svc.startQueryExecution(args)); const result = await pipe( program, @@ -131,7 +131,7 @@ describe("AthenaClientImpl", () => { expect(result).toEqual( Exit.fail( - SdkError({ + new SdkError({ ...new Error("test"), name: "SdkError", message: "test", @@ -156,7 +156,7 @@ describe("AthenaClientImpl", () => { const args: StartQueryExecutionCommandInput = { QueryString: "test" }; - const program = Athena.startQueryExecution(args).pipe( + const program = Athena.use((svc) => svc.startQueryExecution(args)).pipe( Effect.catchTag("NotHandledException" as any, () => Effect.succeed(null)), ); @@ -166,9 +166,9 @@ describe("AthenaClientImpl", () => { Effect.runPromiseExit, ); - expect(result).toEqual( + expect(result).toContainEqual( Exit.fail( - SdkError({ + new SdkError({ ...new Error("test"), name: "SdkError", message: "test", diff --git a/packages/client-auto-scaling/.projen/deps.json b/packages/client-auto-scaling/.projen/deps.json index a8f30162..a09bb419 100644 --- a/packages/client-auto-scaling/.projen/deps.json +++ b/packages/client-auto-scaling/.projen/deps.json @@ -7,6 +7,7 @@ }, { "name": "effect", + "version": "4.0.0-beta.8", "type": "build" }, { @@ -16,7 +17,7 @@ }, { "name": "effect", - "version": ">=3.0.4 <4.0.0", + "version": ">=4.0.0 <5.0.0", "type": "peer" }, { diff --git a/packages/client-auto-scaling/README.md b/packages/client-auto-scaling/README.md index 464e912b..ed6fb3e6 100644 --- a/packages/client-auto-scaling/README.md +++ b/packages/client-auto-scaling/README.md @@ -16,7 +16,7 @@ With default AutoScalingClient instance: ```typescript import { AutoScaling } from "@effect-aws/client-auto-scaling"; -const program = AutoScaling.describeAutoScalingGroups(args); +const program = AutoScaling.use((svc) => svc.describeAutoScalingGroups(args)); const result = pipe( program, @@ -30,7 +30,7 @@ With custom AutoScalingClient instance: ```typescript import { AutoScaling } from "@effect-aws/client-auto-scaling"; -const program = AutoScaling.describeAutoScalingGroups(args); +const program = AutoScaling.use((svc) => svc.describeAutoScalingGroups(args)); const result = await pipe( program, @@ -46,7 +46,7 @@ With custom AutoScalingClient configuration: ```typescript import { AutoScaling } from "@effect-aws/client-auto-scaling"; -const program = AutoScaling.describeAutoScalingGroups(args); +const program = AutoScaling.use((svc) => svc.describeAutoScalingGroups(args)); const result = await pipe( program, diff --git a/packages/client-auto-scaling/package.json b/packages/client-auto-scaling/package.json index 62785abc..da0a6823 100644 --- a/packages/client-auto-scaling/package.json +++ b/packages/client-auto-scaling/package.json @@ -26,11 +26,11 @@ }, "devDependencies": { "@types/node": "ts5.4", - "effect": "^3.16.4", + "effect": "4.0.0-beta.8", "typescript": "^5.4.2" }, "peerDependencies": { - "effect": ">=3.0.4 <4.0.0" + "effect": ">=4.0.0 <5.0.0" }, "dependencies": { "@aws-sdk/client-auto-scaling": "^3", diff --git a/packages/client-auto-scaling/src/AutoScalingClientInstance.ts b/packages/client-auto-scaling/src/AutoScalingClientInstance.ts index 393f1f17..14cf1ba8 100644 --- a/packages/client-auto-scaling/src/AutoScalingClientInstance.ts +++ b/packages/client-auto-scaling/src/AutoScalingClientInstance.ts @@ -2,16 +2,16 @@ * @since 1.0.0 */ import { AutoScalingClient } from "@aws-sdk/client-auto-scaling"; -import { Context, Effect, Layer } from "effect"; +import { Effect, Layer, ServiceMap } from "effect"; import * as AutoScalingServiceConfig from "./AutoScalingServiceConfig.js"; /** * @since 1.0.0 * @category tags */ -export class AutoScalingClientInstance extends Context.Tag( +export class AutoScalingClientInstance extends ServiceMap.Service()( "@effect-aws/client-auto-scaling/AutoScalingClientInstance", -)() {} +) {} /** * @since 1.0.0 @@ -30,4 +30,4 @@ export const make = Effect.flatMap( * @since 1.0.0 * @category layers */ -export const layer = Layer.scoped(AutoScalingClientInstance, make); +export const layer = Layer.effect(AutoScalingClientInstance, make); diff --git a/packages/client-auto-scaling/src/AutoScalingService.ts b/packages/client-auto-scaling/src/AutoScalingService.ts index baf6da5f..415aa524 100644 --- a/packages/client-auto-scaling/src/AutoScalingService.ts +++ b/packages/client-auto-scaling/src/AutoScalingService.ts @@ -206,7 +206,7 @@ import { import type { HttpHandlerOptions, ServiceLogger } from "@effect-aws/commons"; import { Service } from "@effect-aws/commons"; import type { Cause } from "effect"; -import { Effect, Layer } from "effect"; +import { Effect, Layer, ServiceMap } from "effect"; import * as Instance from "./AutoScalingClientInstance.js"; import * as AutoScalingServiceConfig from "./AutoScalingServiceConfig.js"; import type { @@ -305,7 +305,7 @@ interface AutoScalingService$ { options?: HttpHandlerOptions, ): Effect.Effect< AttachInstancesCommandOutput, - Cause.TimeoutException | SdkError | ResourceContentionFaultError | ServiceLinkedRoleError + Cause.TimeoutError | SdkError | ResourceContentionFaultError | ServiceLinkedRoleError >; /** @@ -316,7 +316,7 @@ interface AutoScalingService$ { options?: HttpHandlerOptions, ): Effect.Effect< AttachLoadBalancerTargetGroupsCommandOutput, - | Cause.TimeoutException + | Cause.TimeoutError | SdkError | InstanceRefreshInProgressFaultError | ResourceContentionFaultError @@ -331,7 +331,7 @@ interface AutoScalingService$ { options?: HttpHandlerOptions, ): Effect.Effect< AttachLoadBalancersCommandOutput, - | Cause.TimeoutException + | Cause.TimeoutError | SdkError | InstanceRefreshInProgressFaultError | ResourceContentionFaultError @@ -346,7 +346,7 @@ interface AutoScalingService$ { options?: HttpHandlerOptions, ): Effect.Effect< AttachTrafficSourcesCommandOutput, - | Cause.TimeoutException + | Cause.TimeoutError | SdkError | InstanceRefreshInProgressFaultError | ResourceContentionFaultError @@ -361,7 +361,7 @@ interface AutoScalingService$ { options?: HttpHandlerOptions, ): Effect.Effect< BatchDeleteScheduledActionCommandOutput, - Cause.TimeoutException | SdkError | ResourceContentionFaultError + Cause.TimeoutError | SdkError | ResourceContentionFaultError >; /** @@ -372,7 +372,7 @@ interface AutoScalingService$ { options?: HttpHandlerOptions, ): Effect.Effect< BatchPutScheduledUpdateGroupActionCommandOutput, - Cause.TimeoutException | SdkError | AlreadyExistsFaultError | LimitExceededFaultError | ResourceContentionFaultError + Cause.TimeoutError | SdkError | AlreadyExistsFaultError | LimitExceededFaultError | ResourceContentionFaultError >; /** @@ -383,7 +383,7 @@ interface AutoScalingService$ { options?: HttpHandlerOptions, ): Effect.Effect< CancelInstanceRefreshCommandOutput, - | Cause.TimeoutException + | Cause.TimeoutError | SdkError | ActiveInstanceRefreshNotFoundFaultError | LimitExceededFaultError @@ -398,7 +398,7 @@ interface AutoScalingService$ { options?: HttpHandlerOptions, ): Effect.Effect< CompleteLifecycleActionCommandOutput, - Cause.TimeoutException | SdkError | ResourceContentionFaultError + Cause.TimeoutError | SdkError | ResourceContentionFaultError >; /** @@ -409,7 +409,7 @@ interface AutoScalingService$ { options?: HttpHandlerOptions, ): Effect.Effect< CreateAutoScalingGroupCommandOutput, - | Cause.TimeoutException + | Cause.TimeoutError | SdkError | AlreadyExistsFaultError | LimitExceededFaultError @@ -425,7 +425,7 @@ interface AutoScalingService$ { options?: HttpHandlerOptions, ): Effect.Effect< CreateLaunchConfigurationCommandOutput, - Cause.TimeoutException | SdkError | AlreadyExistsFaultError | LimitExceededFaultError | ResourceContentionFaultError + Cause.TimeoutError | SdkError | AlreadyExistsFaultError | LimitExceededFaultError | ResourceContentionFaultError >; /** @@ -436,7 +436,7 @@ interface AutoScalingService$ { options?: HttpHandlerOptions, ): Effect.Effect< CreateOrUpdateTagsCommandOutput, - | Cause.TimeoutException + | Cause.TimeoutError | SdkError | AlreadyExistsFaultError | LimitExceededFaultError @@ -452,7 +452,7 @@ interface AutoScalingService$ { options?: HttpHandlerOptions, ): Effect.Effect< DeleteAutoScalingGroupCommandOutput, - | Cause.TimeoutException + | Cause.TimeoutError | SdkError | ResourceContentionFaultError | ResourceInUseFaultError @@ -467,7 +467,7 @@ interface AutoScalingService$ { options?: HttpHandlerOptions, ): Effect.Effect< DeleteLaunchConfigurationCommandOutput, - Cause.TimeoutException | SdkError | ResourceContentionFaultError | ResourceInUseFaultError + Cause.TimeoutError | SdkError | ResourceContentionFaultError | ResourceInUseFaultError >; /** @@ -478,7 +478,7 @@ interface AutoScalingService$ { options?: HttpHandlerOptions, ): Effect.Effect< DeleteLifecycleHookCommandOutput, - Cause.TimeoutException | SdkError | ResourceContentionFaultError + Cause.TimeoutError | SdkError | ResourceContentionFaultError >; /** @@ -489,7 +489,7 @@ interface AutoScalingService$ { options?: HttpHandlerOptions, ): Effect.Effect< DeleteNotificationConfigurationCommandOutput, - Cause.TimeoutException | SdkError | ResourceContentionFaultError + Cause.TimeoutError | SdkError | ResourceContentionFaultError >; /** @@ -500,7 +500,7 @@ interface AutoScalingService$ { options?: HttpHandlerOptions, ): Effect.Effect< DeletePolicyCommandOutput, - Cause.TimeoutException | SdkError | ResourceContentionFaultError | ServiceLinkedRoleError + Cause.TimeoutError | SdkError | ResourceContentionFaultError | ServiceLinkedRoleError >; /** @@ -511,7 +511,7 @@ interface AutoScalingService$ { options?: HttpHandlerOptions, ): Effect.Effect< DeleteScheduledActionCommandOutput, - Cause.TimeoutException | SdkError | ResourceContentionFaultError + Cause.TimeoutError | SdkError | ResourceContentionFaultError >; /** @@ -522,7 +522,7 @@ interface AutoScalingService$ { options?: HttpHandlerOptions, ): Effect.Effect< DeleteTagsCommandOutput, - Cause.TimeoutException | SdkError | ResourceContentionFaultError | ResourceInUseFaultError + Cause.TimeoutError | SdkError | ResourceContentionFaultError | ResourceInUseFaultError >; /** @@ -533,7 +533,7 @@ interface AutoScalingService$ { options?: HttpHandlerOptions, ): Effect.Effect< DeleteWarmPoolCommandOutput, - | Cause.TimeoutException + | Cause.TimeoutError | SdkError | LimitExceededFaultError | ResourceContentionFaultError @@ -549,7 +549,7 @@ interface AutoScalingService$ { options?: HttpHandlerOptions, ): Effect.Effect< DescribeAccountLimitsCommandOutput, - Cause.TimeoutException | SdkError | ResourceContentionFaultError + Cause.TimeoutError | SdkError | ResourceContentionFaultError >; /** @@ -560,7 +560,7 @@ interface AutoScalingService$ { options?: HttpHandlerOptions, ): Effect.Effect< DescribeAdjustmentTypesCommandOutput, - Cause.TimeoutException | SdkError | ResourceContentionFaultError + Cause.TimeoutError | SdkError | ResourceContentionFaultError >; /** @@ -571,7 +571,7 @@ interface AutoScalingService$ { options?: HttpHandlerOptions, ): Effect.Effect< DescribeAutoScalingGroupsCommandOutput, - Cause.TimeoutException | SdkError | InvalidNextTokenError | ResourceContentionFaultError + Cause.TimeoutError | SdkError | InvalidNextTokenError | ResourceContentionFaultError >; /** @@ -582,7 +582,7 @@ interface AutoScalingService$ { options?: HttpHandlerOptions, ): Effect.Effect< DescribeAutoScalingInstancesCommandOutput, - Cause.TimeoutException | SdkError | InvalidNextTokenError | ResourceContentionFaultError + Cause.TimeoutError | SdkError | InvalidNextTokenError | ResourceContentionFaultError >; /** @@ -593,7 +593,7 @@ interface AutoScalingService$ { options?: HttpHandlerOptions, ): Effect.Effect< DescribeAutoScalingNotificationTypesCommandOutput, - Cause.TimeoutException | SdkError | ResourceContentionFaultError + Cause.TimeoutError | SdkError | ResourceContentionFaultError >; /** @@ -604,7 +604,7 @@ interface AutoScalingService$ { options?: HttpHandlerOptions, ): Effect.Effect< DescribeInstanceRefreshesCommandOutput, - Cause.TimeoutException | SdkError | InvalidNextTokenError | ResourceContentionFaultError + Cause.TimeoutError | SdkError | InvalidNextTokenError | ResourceContentionFaultError >; /** @@ -615,7 +615,7 @@ interface AutoScalingService$ { options?: HttpHandlerOptions, ): Effect.Effect< DescribeLaunchConfigurationsCommandOutput, - Cause.TimeoutException | SdkError | InvalidNextTokenError | ResourceContentionFaultError + Cause.TimeoutError | SdkError | InvalidNextTokenError | ResourceContentionFaultError >; /** @@ -626,7 +626,7 @@ interface AutoScalingService$ { options?: HttpHandlerOptions, ): Effect.Effect< DescribeLifecycleHookTypesCommandOutput, - Cause.TimeoutException | SdkError | ResourceContentionFaultError + Cause.TimeoutError | SdkError | ResourceContentionFaultError >; /** @@ -637,7 +637,7 @@ interface AutoScalingService$ { options?: HttpHandlerOptions, ): Effect.Effect< DescribeLifecycleHooksCommandOutput, - Cause.TimeoutException | SdkError | ResourceContentionFaultError + Cause.TimeoutError | SdkError | ResourceContentionFaultError >; /** @@ -648,7 +648,7 @@ interface AutoScalingService$ { options?: HttpHandlerOptions, ): Effect.Effect< DescribeLoadBalancerTargetGroupsCommandOutput, - Cause.TimeoutException | SdkError | InvalidNextTokenError | ResourceContentionFaultError + Cause.TimeoutError | SdkError | InvalidNextTokenError | ResourceContentionFaultError >; /** @@ -659,7 +659,7 @@ interface AutoScalingService$ { options?: HttpHandlerOptions, ): Effect.Effect< DescribeLoadBalancersCommandOutput, - Cause.TimeoutException | SdkError | InvalidNextTokenError | ResourceContentionFaultError + Cause.TimeoutError | SdkError | InvalidNextTokenError | ResourceContentionFaultError >; /** @@ -670,7 +670,7 @@ interface AutoScalingService$ { options?: HttpHandlerOptions, ): Effect.Effect< DescribeMetricCollectionTypesCommandOutput, - Cause.TimeoutException | SdkError | ResourceContentionFaultError + Cause.TimeoutError | SdkError | ResourceContentionFaultError >; /** @@ -681,7 +681,7 @@ interface AutoScalingService$ { options?: HttpHandlerOptions, ): Effect.Effect< DescribeNotificationConfigurationsCommandOutput, - Cause.TimeoutException | SdkError | InvalidNextTokenError | ResourceContentionFaultError + Cause.TimeoutError | SdkError | InvalidNextTokenError | ResourceContentionFaultError >; /** @@ -692,7 +692,7 @@ interface AutoScalingService$ { options?: HttpHandlerOptions, ): Effect.Effect< DescribePoliciesCommandOutput, - Cause.TimeoutException | SdkError | InvalidNextTokenError | ResourceContentionFaultError | ServiceLinkedRoleError + Cause.TimeoutError | SdkError | InvalidNextTokenError | ResourceContentionFaultError | ServiceLinkedRoleError >; /** @@ -703,7 +703,7 @@ interface AutoScalingService$ { options?: HttpHandlerOptions, ): Effect.Effect< DescribeScalingActivitiesCommandOutput, - Cause.TimeoutException | SdkError | InvalidNextTokenError | ResourceContentionFaultError + Cause.TimeoutError | SdkError | InvalidNextTokenError | ResourceContentionFaultError >; /** @@ -714,7 +714,7 @@ interface AutoScalingService$ { options?: HttpHandlerOptions, ): Effect.Effect< DescribeScalingProcessTypesCommandOutput, - Cause.TimeoutException | SdkError | ResourceContentionFaultError + Cause.TimeoutError | SdkError | ResourceContentionFaultError >; /** @@ -725,7 +725,7 @@ interface AutoScalingService$ { options?: HttpHandlerOptions, ): Effect.Effect< DescribeScheduledActionsCommandOutput, - Cause.TimeoutException | SdkError | InvalidNextTokenError | ResourceContentionFaultError + Cause.TimeoutError | SdkError | InvalidNextTokenError | ResourceContentionFaultError >; /** @@ -736,7 +736,7 @@ interface AutoScalingService$ { options?: HttpHandlerOptions, ): Effect.Effect< DescribeTagsCommandOutput, - Cause.TimeoutException | SdkError | InvalidNextTokenError | ResourceContentionFaultError + Cause.TimeoutError | SdkError | InvalidNextTokenError | ResourceContentionFaultError >; /** @@ -747,7 +747,7 @@ interface AutoScalingService$ { options?: HttpHandlerOptions, ): Effect.Effect< DescribeTerminationPolicyTypesCommandOutput, - Cause.TimeoutException | SdkError | ResourceContentionFaultError + Cause.TimeoutError | SdkError | ResourceContentionFaultError >; /** @@ -758,7 +758,7 @@ interface AutoScalingService$ { options?: HttpHandlerOptions, ): Effect.Effect< DescribeTrafficSourcesCommandOutput, - Cause.TimeoutException | SdkError | InvalidNextTokenError | ResourceContentionFaultError + Cause.TimeoutError | SdkError | InvalidNextTokenError | ResourceContentionFaultError >; /** @@ -769,7 +769,7 @@ interface AutoScalingService$ { options?: HttpHandlerOptions, ): Effect.Effect< DescribeWarmPoolCommandOutput, - Cause.TimeoutException | SdkError | InvalidNextTokenError | LimitExceededFaultError | ResourceContentionFaultError + Cause.TimeoutError | SdkError | InvalidNextTokenError | LimitExceededFaultError | ResourceContentionFaultError >; /** @@ -780,7 +780,7 @@ interface AutoScalingService$ { options?: HttpHandlerOptions, ): Effect.Effect< DetachInstancesCommandOutput, - Cause.TimeoutException | SdkError | ResourceContentionFaultError + Cause.TimeoutError | SdkError | ResourceContentionFaultError >; /** @@ -791,7 +791,7 @@ interface AutoScalingService$ { options?: HttpHandlerOptions, ): Effect.Effect< DetachLoadBalancerTargetGroupsCommandOutput, - Cause.TimeoutException | SdkError | ResourceContentionFaultError + Cause.TimeoutError | SdkError | ResourceContentionFaultError >; /** @@ -802,7 +802,7 @@ interface AutoScalingService$ { options?: HttpHandlerOptions, ): Effect.Effect< DetachLoadBalancersCommandOutput, - Cause.TimeoutException | SdkError | ResourceContentionFaultError + Cause.TimeoutError | SdkError | ResourceContentionFaultError >; /** @@ -813,7 +813,7 @@ interface AutoScalingService$ { options?: HttpHandlerOptions, ): Effect.Effect< DetachTrafficSourcesCommandOutput, - Cause.TimeoutException | SdkError | ResourceContentionFaultError + Cause.TimeoutError | SdkError | ResourceContentionFaultError >; /** @@ -824,7 +824,7 @@ interface AutoScalingService$ { options?: HttpHandlerOptions, ): Effect.Effect< DisableMetricsCollectionCommandOutput, - Cause.TimeoutException | SdkError | ResourceContentionFaultError + Cause.TimeoutError | SdkError | ResourceContentionFaultError >; /** @@ -835,7 +835,7 @@ interface AutoScalingService$ { options?: HttpHandlerOptions, ): Effect.Effect< EnableMetricsCollectionCommandOutput, - Cause.TimeoutException | SdkError | ResourceContentionFaultError + Cause.TimeoutError | SdkError | ResourceContentionFaultError >; /** @@ -846,7 +846,7 @@ interface AutoScalingService$ { options?: HttpHandlerOptions, ): Effect.Effect< EnterStandbyCommandOutput, - Cause.TimeoutException | SdkError | ResourceContentionFaultError + Cause.TimeoutError | SdkError | ResourceContentionFaultError >; /** @@ -857,7 +857,7 @@ interface AutoScalingService$ { options?: HttpHandlerOptions, ): Effect.Effect< ExecutePolicyCommandOutput, - Cause.TimeoutException | SdkError | ResourceContentionFaultError | ScalingActivityInProgressFaultError + Cause.TimeoutError | SdkError | ResourceContentionFaultError | ScalingActivityInProgressFaultError >; /** @@ -868,7 +868,7 @@ interface AutoScalingService$ { options?: HttpHandlerOptions, ): Effect.Effect< ExitStandbyCommandOutput, - Cause.TimeoutException | SdkError | ResourceContentionFaultError + Cause.TimeoutError | SdkError | ResourceContentionFaultError >; /** @@ -879,7 +879,7 @@ interface AutoScalingService$ { options?: HttpHandlerOptions, ): Effect.Effect< GetPredictiveScalingForecastCommandOutput, - Cause.TimeoutException | SdkError | ResourceContentionFaultError + Cause.TimeoutError | SdkError | ResourceContentionFaultError >; /** @@ -890,7 +890,7 @@ interface AutoScalingService$ { options?: HttpHandlerOptions, ): Effect.Effect< LaunchInstancesCommandOutput, - Cause.TimeoutException | SdkError | IdempotentParameterMismatchError | ResourceContentionFaultError + Cause.TimeoutError | SdkError | IdempotentParameterMismatchError | ResourceContentionFaultError >; /** @@ -901,7 +901,7 @@ interface AutoScalingService$ { options?: HttpHandlerOptions, ): Effect.Effect< PutLifecycleHookCommandOutput, - Cause.TimeoutException | SdkError | LimitExceededFaultError | ResourceContentionFaultError + Cause.TimeoutError | SdkError | LimitExceededFaultError | ResourceContentionFaultError >; /** @@ -912,7 +912,7 @@ interface AutoScalingService$ { options?: HttpHandlerOptions, ): Effect.Effect< PutNotificationConfigurationCommandOutput, - Cause.TimeoutException | SdkError | LimitExceededFaultError | ResourceContentionFaultError | ServiceLinkedRoleError + Cause.TimeoutError | SdkError | LimitExceededFaultError | ResourceContentionFaultError | ServiceLinkedRoleError >; /** @@ -923,7 +923,7 @@ interface AutoScalingService$ { options?: HttpHandlerOptions, ): Effect.Effect< PutScalingPolicyCommandOutput, - Cause.TimeoutException | SdkError | LimitExceededFaultError | ResourceContentionFaultError | ServiceLinkedRoleError + Cause.TimeoutError | SdkError | LimitExceededFaultError | ResourceContentionFaultError | ServiceLinkedRoleError >; /** @@ -934,7 +934,7 @@ interface AutoScalingService$ { options?: HttpHandlerOptions, ): Effect.Effect< PutScheduledUpdateGroupActionCommandOutput, - Cause.TimeoutException | SdkError | AlreadyExistsFaultError | LimitExceededFaultError | ResourceContentionFaultError + Cause.TimeoutError | SdkError | AlreadyExistsFaultError | LimitExceededFaultError | ResourceContentionFaultError >; /** @@ -945,7 +945,7 @@ interface AutoScalingService$ { options?: HttpHandlerOptions, ): Effect.Effect< PutWarmPoolCommandOutput, - | Cause.TimeoutException + | Cause.TimeoutError | SdkError | InstanceRefreshInProgressFaultError | LimitExceededFaultError @@ -960,7 +960,7 @@ interface AutoScalingService$ { options?: HttpHandlerOptions, ): Effect.Effect< RecordLifecycleActionHeartbeatCommandOutput, - Cause.TimeoutException | SdkError | ResourceContentionFaultError + Cause.TimeoutError | SdkError | ResourceContentionFaultError >; /** @@ -971,7 +971,7 @@ interface AutoScalingService$ { options?: HttpHandlerOptions, ): Effect.Effect< ResumeProcessesCommandOutput, - Cause.TimeoutException | SdkError | ResourceContentionFaultError | ResourceInUseFaultError + Cause.TimeoutError | SdkError | ResourceContentionFaultError | ResourceInUseFaultError >; /** @@ -982,7 +982,7 @@ interface AutoScalingService$ { options?: HttpHandlerOptions, ): Effect.Effect< RollbackInstanceRefreshCommandOutput, - | Cause.TimeoutException + | Cause.TimeoutError | SdkError | ActiveInstanceRefreshNotFoundFaultError | IrreversibleInstanceRefreshFaultError @@ -998,7 +998,7 @@ interface AutoScalingService$ { options?: HttpHandlerOptions, ): Effect.Effect< SetDesiredCapacityCommandOutput, - Cause.TimeoutException | SdkError | ResourceContentionFaultError | ScalingActivityInProgressFaultError + Cause.TimeoutError | SdkError | ResourceContentionFaultError | ScalingActivityInProgressFaultError >; /** @@ -1009,7 +1009,7 @@ interface AutoScalingService$ { options?: HttpHandlerOptions, ): Effect.Effect< SetInstanceHealthCommandOutput, - Cause.TimeoutException | SdkError | ResourceContentionFaultError + Cause.TimeoutError | SdkError | ResourceContentionFaultError >; /** @@ -1020,7 +1020,7 @@ interface AutoScalingService$ { options?: HttpHandlerOptions, ): Effect.Effect< SetInstanceProtectionCommandOutput, - Cause.TimeoutException | SdkError | LimitExceededFaultError | ResourceContentionFaultError + Cause.TimeoutError | SdkError | LimitExceededFaultError | ResourceContentionFaultError >; /** @@ -1031,7 +1031,7 @@ interface AutoScalingService$ { options?: HttpHandlerOptions, ): Effect.Effect< StartInstanceRefreshCommandOutput, - | Cause.TimeoutException + | Cause.TimeoutError | SdkError | InstanceRefreshInProgressFaultError | LimitExceededFaultError @@ -1046,7 +1046,7 @@ interface AutoScalingService$ { options?: HttpHandlerOptions, ): Effect.Effect< SuspendProcessesCommandOutput, - Cause.TimeoutException | SdkError | ResourceContentionFaultError | ResourceInUseFaultError + Cause.TimeoutError | SdkError | ResourceContentionFaultError | ResourceInUseFaultError >; /** @@ -1057,7 +1057,7 @@ interface AutoScalingService$ { options?: HttpHandlerOptions, ): Effect.Effect< TerminateInstanceInAutoScalingGroupCommandOutput, - Cause.TimeoutException | SdkError | ResourceContentionFaultError | ScalingActivityInProgressFaultError + Cause.TimeoutError | SdkError | ResourceContentionFaultError | ScalingActivityInProgressFaultError >; /** @@ -1068,7 +1068,7 @@ interface AutoScalingService$ { options?: HttpHandlerOptions, ): Effect.Effect< UpdateAutoScalingGroupCommandOutput, - | Cause.TimeoutException + | Cause.TimeoutError | SdkError | ResourceContentionFaultError | ScalingActivityInProgressFaultError @@ -1097,10 +1097,10 @@ export const makeAutoScalingService = Effect.gen(function*() { * @since 1.0.0 * @category models */ -export class AutoScalingService extends Effect.Tag("@effect-aws/client-auto-scaling/AutoScalingService")< +export class AutoScalingService extends ServiceMap.Service< AutoScalingService, AutoScalingService$ ->() { +>()("@effect-aws/client-auto-scaling/AutoScalingService") { static readonly defaultLayer = Layer.effect(this, makeAutoScalingService).pipe(Layer.provide(Instance.layer)); static readonly layer = (config: AutoScalingService.Config) => Layer.effect(this, makeAutoScalingService).pipe( diff --git a/packages/client-auto-scaling/src/AutoScalingServiceConfig.ts b/packages/client-auto-scaling/src/AutoScalingServiceConfig.ts index a28040c3..2f0c3f36 100644 --- a/packages/client-auto-scaling/src/AutoScalingServiceConfig.ts +++ b/packages/client-auto-scaling/src/AutoScalingServiceConfig.ts @@ -3,18 +3,17 @@ */ import type { AutoScalingClientConfig } from "@aws-sdk/client-auto-scaling"; import { ServiceLogger } from "@effect-aws/commons"; -import { Effect, FiberRef, Layer } from "effect"; +import { Effect, Layer, ServiceMap } from "effect"; import { dual } from "effect/Function"; -import { globalValue } from "effect/GlobalValue"; import type { AutoScalingService } from "./AutoScalingService.js"; /** * @since 1.0.0 * @category auto-scaling service config */ -const currentAutoScalingServiceConfig = globalValue( +const currentAutoScalingServiceConfig = ServiceMap.Reference( "@effect-aws/client-auto-scaling/currentAutoScalingServiceConfig", - () => FiberRef.unsafeMake({}), + { defaultValue: () => ({}) }, ); /** @@ -27,7 +26,7 @@ export const withAutoScalingServiceConfig: { } = dual( 2, (effect: Effect.Effect, config: AutoScalingService.Config): Effect.Effect => - Effect.locally(effect, currentAutoScalingServiceConfig, config), + Effect.provideService(effect, currentAutoScalingServiceConfig, config), ); /** @@ -35,14 +34,14 @@ export const withAutoScalingServiceConfig: { * @category auto-scaling service config */ export const setAutoScalingServiceConfig = (config: AutoScalingService.Config) => - Layer.locallyScoped(currentAutoScalingServiceConfig, config); + Layer.succeed(currentAutoScalingServiceConfig, config); /** * @since 1.0.0 * @category adapters */ export const toAutoScalingClientConfig: Effect.Effect = Effect.gen(function*() { - const { logger: serviceLogger, ...config } = yield* FiberRef.get(currentAutoScalingServiceConfig); + const { logger: serviceLogger, ...config } = yield* currentAutoScalingServiceConfig; const logger = serviceLogger === true ? yield* ServiceLogger.toClientLogger(ServiceLogger.defaultServiceLogger) diff --git a/packages/client-auto-scaling/test/AutoScaling.test.ts b/packages/client-auto-scaling/test/AutoScaling.test.ts index c89c53dd..c0a85c05 100644 --- a/packages/client-auto-scaling/test/AutoScaling.test.ts +++ b/packages/client-auto-scaling/test/AutoScaling.test.ts @@ -26,7 +26,7 @@ describe("AutoScalingClientImpl", () => { const args = {} as unknown as DescribeAutoScalingGroupsCommandInput; - const program = AutoScaling.describeAutoScalingGroups(args); + const program = AutoScaling.use((svc) => svc.describeAutoScalingGroups(args)); const result = await pipe( program, @@ -46,7 +46,7 @@ describe("AutoScalingClientImpl", () => { const args = {} as unknown as DescribeAutoScalingGroupsCommandInput; - const program = AutoScaling.describeAutoScalingGroups(args); + const program = AutoScaling.use((svc) => svc.describeAutoScalingGroups(args)); const result = await pipe( program, @@ -69,7 +69,7 @@ describe("AutoScalingClientImpl", () => { const args = {} as unknown as DescribeAutoScalingGroupsCommandInput; - const program = AutoScaling.describeAutoScalingGroups(args); + const program = AutoScaling.use((svc) => svc.describeAutoScalingGroups(args)); const result = await pipe( program, @@ -93,7 +93,7 @@ describe("AutoScalingClientImpl", () => { const args = {} as unknown as DescribeAutoScalingGroupsCommandInput; - const program = AutoScaling.describeAutoScalingGroups(args); + const program = AutoScaling.use((svc) => svc.describeAutoScalingGroups(args)); const result = await pipe( program, @@ -121,7 +121,7 @@ describe("AutoScalingClientImpl", () => { const args = {} as unknown as DescribeAutoScalingGroupsCommandInput; - const program = AutoScaling.describeAutoScalingGroups(args); + const program = AutoScaling.use((svc) => svc.describeAutoScalingGroups(args)); const result = await pipe( program, @@ -131,7 +131,7 @@ describe("AutoScalingClientImpl", () => { expect(result).toEqual( Exit.fail( - SdkError({ + new SdkError({ ...new Error("test"), name: "SdkError", message: "test", @@ -156,7 +156,7 @@ describe("AutoScalingClientImpl", () => { const args = {} as unknown as DescribeAutoScalingGroupsCommandInput; - const program = AutoScaling.describeAutoScalingGroups(args).pipe( + const program = AutoScaling.use((svc) => svc.describeAutoScalingGroups(args)).pipe( Effect.catchTag("NotHandledException" as any, () => Effect.succeed(null)), ); @@ -166,9 +166,9 @@ describe("AutoScalingClientImpl", () => { Effect.runPromiseExit, ); - expect(result).toEqual( + expect(result).toContainEqual( Exit.fail( - SdkError({ + new SdkError({ ...new Error("test"), name: "SdkError", message: "test", diff --git a/packages/client-bedrock-runtime/.projen/deps.json b/packages/client-bedrock-runtime/.projen/deps.json index 3af8de52..49b3f1d9 100644 --- a/packages/client-bedrock-runtime/.projen/deps.json +++ b/packages/client-bedrock-runtime/.projen/deps.json @@ -7,6 +7,7 @@ }, { "name": "effect", + "version": "4.0.0-beta.8", "type": "build" }, { @@ -16,7 +17,7 @@ }, { "name": "effect", - "version": ">=3.0.4 <4.0.0", + "version": ">=4.0.0 <5.0.0", "type": "peer" }, { diff --git a/packages/client-bedrock-runtime/README.md b/packages/client-bedrock-runtime/README.md index 7859346d..2cbe5231 100644 --- a/packages/client-bedrock-runtime/README.md +++ b/packages/client-bedrock-runtime/README.md @@ -16,7 +16,7 @@ With default BedrockRuntimeClient instance: ```typescript import { BedrockRuntime } from "@effect-aws/client-bedrock-runtime"; -const program = BedrockRuntime.invokeModel(args); +const program = BedrockRuntime.use((svc) => svc.invokeModel(args)); const result = pipe( program, @@ -30,7 +30,7 @@ With custom BedrockRuntimeClient instance: ```typescript import { BedrockRuntime } from "@effect-aws/client-bedrock-runtime"; -const program = BedrockRuntime.invokeModel(args); +const program = BedrockRuntime.use((svc) => svc.invokeModel(args)); const result = await pipe( program, @@ -46,7 +46,7 @@ With custom BedrockRuntimeClient configuration: ```typescript import { BedrockRuntime } from "@effect-aws/client-bedrock-runtime"; -const program = BedrockRuntime.invokeModel(args); +const program = BedrockRuntime.use((svc) => svc.invokeModel(args)); const result = await pipe( program, diff --git a/packages/client-bedrock-runtime/package.json b/packages/client-bedrock-runtime/package.json index 800ebe05..73ebdfaa 100644 --- a/packages/client-bedrock-runtime/package.json +++ b/packages/client-bedrock-runtime/package.json @@ -26,11 +26,11 @@ }, "devDependencies": { "@types/node": "ts5.4", - "effect": "^3.16.4", + "effect": "4.0.0-beta.8", "typescript": "^5.4.2" }, "peerDependencies": { - "effect": ">=3.0.4 <4.0.0" + "effect": ">=4.0.0 <5.0.0" }, "dependencies": { "@aws-sdk/client-bedrock-runtime": "^3", diff --git a/packages/client-bedrock-runtime/src/BedrockRuntimeClientInstance.ts b/packages/client-bedrock-runtime/src/BedrockRuntimeClientInstance.ts index 2346d7f5..536dc405 100644 --- a/packages/client-bedrock-runtime/src/BedrockRuntimeClientInstance.ts +++ b/packages/client-bedrock-runtime/src/BedrockRuntimeClientInstance.ts @@ -2,16 +2,18 @@ * @since 1.0.0 */ import { BedrockRuntimeClient } from "@aws-sdk/client-bedrock-runtime"; -import { Context, Effect, Layer } from "effect"; +import { Effect, Layer, ServiceMap } from "effect"; import * as BedrockRuntimeServiceConfig from "./BedrockRuntimeServiceConfig.js"; /** * @since 1.0.0 * @category tags */ -export class BedrockRuntimeClientInstance extends Context.Tag( - "@effect-aws/client-bedrock-runtime/BedrockRuntimeClientInstance", -)() {} +export class BedrockRuntimeClientInstance + extends ServiceMap.Service()( + "@effect-aws/client-bedrock-runtime/BedrockRuntimeClientInstance", + ) +{} /** * @since 1.0.0 @@ -30,4 +32,4 @@ export const make = Effect.flatMap( * @since 1.0.0 * @category layers */ -export const layer = Layer.scoped(BedrockRuntimeClientInstance, make); +export const layer = Layer.effect(BedrockRuntimeClientInstance, make); diff --git a/packages/client-bedrock-runtime/src/BedrockRuntimeService.ts b/packages/client-bedrock-runtime/src/BedrockRuntimeService.ts index 5d611f70..32284dd7 100644 --- a/packages/client-bedrock-runtime/src/BedrockRuntimeService.ts +++ b/packages/client-bedrock-runtime/src/BedrockRuntimeService.ts @@ -38,7 +38,7 @@ import { import type { HttpHandlerOptions, ServiceLogger } from "@effect-aws/commons"; import { Service } from "@effect-aws/commons"; import type { Cause } from "effect"; -import { Effect, Layer } from "effect"; +import { Effect, Layer, ServiceMap } from "effect"; import * as Instance from "./BedrockRuntimeClientInstance.js"; import * as BedrockRuntimeServiceConfig from "./BedrockRuntimeServiceConfig.js"; import type { @@ -82,7 +82,7 @@ interface BedrockRuntimeService$ { options?: HttpHandlerOptions, ): Effect.Effect< ApplyGuardrailCommandOutput, - | Cause.TimeoutException + | Cause.TimeoutError | SdkError | AccessDeniedError | InternalServerError @@ -101,7 +101,7 @@ interface BedrockRuntimeService$ { options?: HttpHandlerOptions, ): Effect.Effect< ConverseCommandOutput, - | Cause.TimeoutException + | Cause.TimeoutError | SdkError | AccessDeniedError | InternalServerError @@ -122,7 +122,7 @@ interface BedrockRuntimeService$ { options?: HttpHandlerOptions, ): Effect.Effect< ConverseStreamCommandOutput, - | Cause.TimeoutException + | Cause.TimeoutError | SdkError | AccessDeniedError | InternalServerError @@ -143,7 +143,7 @@ interface BedrockRuntimeService$ { options?: HttpHandlerOptions, ): Effect.Effect< CountTokensCommandOutput, - | Cause.TimeoutException + | Cause.TimeoutError | SdkError | AccessDeniedError | InternalServerError @@ -161,7 +161,7 @@ interface BedrockRuntimeService$ { options?: HttpHandlerOptions, ): Effect.Effect< GetAsyncInvokeCommandOutput, - Cause.TimeoutException | SdkError | AccessDeniedError | InternalServerError | ThrottlingError | ValidationError + Cause.TimeoutError | SdkError | AccessDeniedError | InternalServerError | ThrottlingError | ValidationError >; /** @@ -172,7 +172,7 @@ interface BedrockRuntimeService$ { options?: HttpHandlerOptions, ): Effect.Effect< InvokeModelCommandOutput, - | Cause.TimeoutException + | Cause.TimeoutError | SdkError | AccessDeniedError | InternalServerError @@ -194,7 +194,7 @@ interface BedrockRuntimeService$ { options?: HttpHandlerOptions, ): Effect.Effect< InvokeModelWithBidirectionalStreamCommandOutput, - | Cause.TimeoutException + | Cause.TimeoutError | SdkError | AccessDeniedError | InternalServerError @@ -217,7 +217,7 @@ interface BedrockRuntimeService$ { options?: HttpHandlerOptions, ): Effect.Effect< InvokeModelWithResponseStreamCommandOutput, - | Cause.TimeoutException + | Cause.TimeoutError | SdkError | AccessDeniedError | InternalServerError @@ -240,7 +240,7 @@ interface BedrockRuntimeService$ { options?: HttpHandlerOptions, ): Effect.Effect< ListAsyncInvokesCommandOutput, - Cause.TimeoutException | SdkError | AccessDeniedError | InternalServerError | ThrottlingError | ValidationError + Cause.TimeoutError | SdkError | AccessDeniedError | InternalServerError | ThrottlingError | ValidationError >; /** @@ -251,7 +251,7 @@ interface BedrockRuntimeService$ { options?: HttpHandlerOptions, ): Effect.Effect< StartAsyncInvokeCommandOutput, - | Cause.TimeoutException + | Cause.TimeoutError | SdkError | AccessDeniedError | ConflictError @@ -285,10 +285,10 @@ export const makeBedrockRuntimeService = Effect.gen(function*() { * @since 1.0.0 * @category models */ -export class BedrockRuntimeService extends Effect.Tag("@effect-aws/client-bedrock-runtime/BedrockRuntimeService")< +export class BedrockRuntimeService extends ServiceMap.Service< BedrockRuntimeService, BedrockRuntimeService$ ->() { +>()("@effect-aws/client-bedrock-runtime/BedrockRuntimeService") { static readonly defaultLayer = Layer.effect(this, makeBedrockRuntimeService).pipe(Layer.provide(Instance.layer)); static readonly layer = (config: BedrockRuntimeService.Config) => Layer.effect(this, makeBedrockRuntimeService).pipe( diff --git a/packages/client-bedrock-runtime/src/BedrockRuntimeServiceConfig.ts b/packages/client-bedrock-runtime/src/BedrockRuntimeServiceConfig.ts index b9e54f75..fdb20627 100644 --- a/packages/client-bedrock-runtime/src/BedrockRuntimeServiceConfig.ts +++ b/packages/client-bedrock-runtime/src/BedrockRuntimeServiceConfig.ts @@ -3,18 +3,17 @@ */ import type { BedrockRuntimeClientConfig } from "@aws-sdk/client-bedrock-runtime"; import { ServiceLogger } from "@effect-aws/commons"; -import { Effect, FiberRef, Layer } from "effect"; +import { Effect, Layer, ServiceMap } from "effect"; import { dual } from "effect/Function"; -import { globalValue } from "effect/GlobalValue"; import type { BedrockRuntimeService } from "./BedrockRuntimeService.js"; /** * @since 1.0.0 * @category bedrock-runtime service config */ -const currentBedrockRuntimeServiceConfig = globalValue( +const currentBedrockRuntimeServiceConfig = ServiceMap.Reference( "@effect-aws/client-bedrock-runtime/currentBedrockRuntimeServiceConfig", - () => FiberRef.unsafeMake({}), + { defaultValue: () => ({}) }, ); /** @@ -27,7 +26,7 @@ export const withBedrockRuntimeServiceConfig: { } = dual( 2, (effect: Effect.Effect, config: BedrockRuntimeService.Config): Effect.Effect => - Effect.locally(effect, currentBedrockRuntimeServiceConfig, config), + Effect.provideService(effect, currentBedrockRuntimeServiceConfig, config), ); /** @@ -35,14 +34,14 @@ export const withBedrockRuntimeServiceConfig: { * @category bedrock-runtime service config */ export const setBedrockRuntimeServiceConfig = (config: BedrockRuntimeService.Config) => - Layer.locallyScoped(currentBedrockRuntimeServiceConfig, config); + Layer.succeed(currentBedrockRuntimeServiceConfig, config); /** * @since 1.0.0 * @category adapters */ export const toBedrockRuntimeClientConfig: Effect.Effect = Effect.gen(function*() { - const { logger: serviceLogger, ...config } = yield* FiberRef.get(currentBedrockRuntimeServiceConfig); + const { logger: serviceLogger, ...config } = yield* currentBedrockRuntimeServiceConfig; const logger = serviceLogger === true ? yield* ServiceLogger.toClientLogger(ServiceLogger.defaultServiceLogger) diff --git a/packages/client-bedrock-runtime/test/BedrockRuntime.test.ts b/packages/client-bedrock-runtime/test/BedrockRuntime.test.ts index b60a1ec7..c4c4bf2b 100644 --- a/packages/client-bedrock-runtime/test/BedrockRuntime.test.ts +++ b/packages/client-bedrock-runtime/test/BedrockRuntime.test.ts @@ -26,7 +26,7 @@ describe("BedrockRuntimeClientImpl", () => { const args = {} as unknown as InvokeModelCommandInput; - const program = BedrockRuntime.invokeModel(args); + const program = BedrockRuntime.use((svc) => svc.invokeModel(args)); const result = await pipe( program, @@ -46,7 +46,7 @@ describe("BedrockRuntimeClientImpl", () => { const args = {} as unknown as InvokeModelCommandInput; - const program = BedrockRuntime.invokeModel(args); + const program = BedrockRuntime.use((svc) => svc.invokeModel(args)); const result = await pipe( program, @@ -69,7 +69,7 @@ describe("BedrockRuntimeClientImpl", () => { const args = {} as unknown as InvokeModelCommandInput; - const program = BedrockRuntime.invokeModel(args); + const program = BedrockRuntime.use((svc) => svc.invokeModel(args)); const result = await pipe( program, @@ -93,7 +93,7 @@ describe("BedrockRuntimeClientImpl", () => { const args = {} as unknown as InvokeModelCommandInput; - const program = BedrockRuntime.invokeModel(args); + const program = BedrockRuntime.use((svc) => svc.invokeModel(args)); const result = await pipe( program, @@ -121,7 +121,7 @@ describe("BedrockRuntimeClientImpl", () => { const args = {} as unknown as InvokeModelCommandInput; - const program = BedrockRuntime.invokeModel(args); + const program = BedrockRuntime.use((svc) => svc.invokeModel(args)); const result = await pipe( program, @@ -131,7 +131,7 @@ describe("BedrockRuntimeClientImpl", () => { expect(result).toEqual( Exit.fail( - SdkError({ + new SdkError({ ...new Error("test"), name: "SdkError", message: "test", @@ -156,7 +156,7 @@ describe("BedrockRuntimeClientImpl", () => { const args = {} as unknown as InvokeModelCommandInput; - const program = BedrockRuntime.invokeModel(args).pipe( + const program = BedrockRuntime.use((svc) => svc.invokeModel(args)).pipe( Effect.catchTag("NotHandledException" as any, () => Effect.succeed(null)), ); @@ -166,9 +166,9 @@ describe("BedrockRuntimeClientImpl", () => { Effect.runPromiseExit, ); - expect(result).toEqual( + expect(result).toContainEqual( Exit.fail( - SdkError({ + new SdkError({ ...new Error("test"), name: "SdkError", message: "test", diff --git a/packages/client-bedrock/.projen/deps.json b/packages/client-bedrock/.projen/deps.json index 139cf6f3..0fedf083 100644 --- a/packages/client-bedrock/.projen/deps.json +++ b/packages/client-bedrock/.projen/deps.json @@ -7,6 +7,7 @@ }, { "name": "effect", + "version": "4.0.0-beta.8", "type": "build" }, { @@ -16,7 +17,7 @@ }, { "name": "effect", - "version": ">=3.0.4 <4.0.0", + "version": ">=4.0.0 <5.0.0", "type": "peer" }, { diff --git a/packages/client-bedrock/README.md b/packages/client-bedrock/README.md index 027aab0c..61979e24 100644 --- a/packages/client-bedrock/README.md +++ b/packages/client-bedrock/README.md @@ -16,7 +16,7 @@ With default BedrockClient instance: ```typescript import { Bedrock } from "@effect-aws/client-bedrock"; -const program = Bedrock.listCustomModels(args); +const program = Bedrock.use((svc) => svc.listCustomModels(args)); const result = pipe( program, @@ -30,7 +30,7 @@ With custom BedrockClient instance: ```typescript import { Bedrock } from "@effect-aws/client-bedrock"; -const program = Bedrock.listCustomModels(args); +const program = Bedrock.use((svc) => svc.listCustomModels(args)); const result = await pipe( program, @@ -46,7 +46,7 @@ With custom BedrockClient configuration: ```typescript import { Bedrock } from "@effect-aws/client-bedrock"; -const program = Bedrock.listCustomModels(args); +const program = Bedrock.use((svc) => svc.listCustomModels(args)); const result = await pipe( program, diff --git a/packages/client-bedrock/package.json b/packages/client-bedrock/package.json index 8c67c9b1..c1983874 100644 --- a/packages/client-bedrock/package.json +++ b/packages/client-bedrock/package.json @@ -26,11 +26,11 @@ }, "devDependencies": { "@types/node": "ts5.4", - "effect": "^3.16.4", + "effect": "4.0.0-beta.8", "typescript": "^5.4.2" }, "peerDependencies": { - "effect": ">=3.0.4 <4.0.0" + "effect": ">=4.0.0 <5.0.0" }, "dependencies": { "@aws-sdk/client-bedrock": "^3", diff --git a/packages/client-bedrock/src/BedrockClientInstance.ts b/packages/client-bedrock/src/BedrockClientInstance.ts index 4bee2e73..931ea99a 100644 --- a/packages/client-bedrock/src/BedrockClientInstance.ts +++ b/packages/client-bedrock/src/BedrockClientInstance.ts @@ -2,16 +2,16 @@ * @since 1.0.0 */ import { BedrockClient } from "@aws-sdk/client-bedrock"; -import { Context, Effect, Layer } from "effect"; +import { Effect, Layer, ServiceMap } from "effect"; import * as BedrockServiceConfig from "./BedrockServiceConfig.js"; /** * @since 1.0.0 * @category tags */ -export class BedrockClientInstance extends Context.Tag( +export class BedrockClientInstance extends ServiceMap.Service()( "@effect-aws/client-bedrock/BedrockClientInstance", -)() {} +) {} /** * @since 1.0.0 @@ -30,4 +30,4 @@ export const make = Effect.flatMap( * @since 1.0.0 * @category layers */ -export const layer = Layer.scoped(BedrockClientInstance, make); +export const layer = Layer.effect(BedrockClientInstance, make); diff --git a/packages/client-bedrock/src/BedrockService.ts b/packages/client-bedrock/src/BedrockService.ts index e684b3ce..1ed2aca6 100644 --- a/packages/client-bedrock/src/BedrockService.ts +++ b/packages/client-bedrock/src/BedrockService.ts @@ -302,7 +302,7 @@ import { import type { HttpHandlerOptions, ServiceLogger } from "@effect-aws/commons"; import { Service } from "@effect-aws/commons"; import type { Cause } from "effect"; -import { Effect, Layer } from "effect"; +import { Effect, Layer, ServiceMap } from "effect"; import * as Instance from "./BedrockClientInstance.js"; import * as BedrockServiceConfig from "./BedrockServiceConfig.js"; import type { @@ -432,7 +432,7 @@ interface BedrockService$ { options?: HttpHandlerOptions, ): Effect.Effect< BatchDeleteEvaluationJobCommandOutput, - | Cause.TimeoutException + | Cause.TimeoutError | SdkError | AccessDeniedError | ConflictError @@ -450,7 +450,7 @@ interface BedrockService$ { options?: HttpHandlerOptions, ): Effect.Effect< CancelAutomatedReasoningPolicyBuildWorkflowCommandOutput, - | Cause.TimeoutException + | Cause.TimeoutError | SdkError | AccessDeniedError | InternalServerError @@ -467,7 +467,7 @@ interface BedrockService$ { options?: HttpHandlerOptions, ): Effect.Effect< CreateAutomatedReasoningPolicyCommandOutput, - | Cause.TimeoutException + | Cause.TimeoutError | SdkError | AccessDeniedError | ConflictError @@ -487,7 +487,7 @@ interface BedrockService$ { options?: HttpHandlerOptions, ): Effect.Effect< CreateAutomatedReasoningPolicyTestCaseCommandOutput, - | Cause.TimeoutException + | Cause.TimeoutError | SdkError | AccessDeniedError | ConflictError @@ -506,7 +506,7 @@ interface BedrockService$ { options?: HttpHandlerOptions, ): Effect.Effect< CreateAutomatedReasoningPolicyVersionCommandOutput, - | Cause.TimeoutException + | Cause.TimeoutError | SdkError | AccessDeniedError | ConflictError @@ -526,7 +526,7 @@ interface BedrockService$ { options?: HttpHandlerOptions, ): Effect.Effect< CreateCustomModelCommandOutput, - | Cause.TimeoutException + | Cause.TimeoutError | SdkError | AccessDeniedError | ConflictError @@ -546,7 +546,7 @@ interface BedrockService$ { options?: HttpHandlerOptions, ): Effect.Effect< CreateCustomModelDeploymentCommandOutput, - | Cause.TimeoutException + | Cause.TimeoutError | SdkError | AccessDeniedError | InternalServerError @@ -565,7 +565,7 @@ interface BedrockService$ { options?: HttpHandlerOptions, ): Effect.Effect< CreateEvaluationJobCommandOutput, - | Cause.TimeoutException + | Cause.TimeoutError | SdkError | AccessDeniedError | ConflictError @@ -584,7 +584,7 @@ interface BedrockService$ { options?: HttpHandlerOptions, ): Effect.Effect< CreateFoundationModelAgreementCommandOutput, - | Cause.TimeoutException + | Cause.TimeoutError | SdkError | AccessDeniedError | ConflictError @@ -602,7 +602,7 @@ interface BedrockService$ { options?: HttpHandlerOptions, ): Effect.Effect< CreateGuardrailCommandOutput, - | Cause.TimeoutException + | Cause.TimeoutError | SdkError | AccessDeniedError | ConflictError @@ -622,7 +622,7 @@ interface BedrockService$ { options?: HttpHandlerOptions, ): Effect.Effect< CreateGuardrailVersionCommandOutput, - | Cause.TimeoutException + | Cause.TimeoutError | SdkError | AccessDeniedError | ConflictError @@ -641,7 +641,7 @@ interface BedrockService$ { options?: HttpHandlerOptions, ): Effect.Effect< CreateInferenceProfileCommandOutput, - | Cause.TimeoutException + | Cause.TimeoutError | SdkError | AccessDeniedError | ConflictError @@ -661,7 +661,7 @@ interface BedrockService$ { options?: HttpHandlerOptions, ): Effect.Effect< CreateMarketplaceModelEndpointCommandOutput, - | Cause.TimeoutException + | Cause.TimeoutError | SdkError | AccessDeniedError | ConflictError @@ -680,12 +680,7 @@ interface BedrockService$ { options?: HttpHandlerOptions, ): Effect.Effect< CreateModelCopyJobCommandOutput, - | Cause.TimeoutException - | SdkError - | AccessDeniedError - | InternalServerError - | ResourceNotFoundError - | TooManyTagsError + Cause.TimeoutError | SdkError | AccessDeniedError | InternalServerError | ResourceNotFoundError | TooManyTagsError >; /** @@ -696,7 +691,7 @@ interface BedrockService$ { options?: HttpHandlerOptions, ): Effect.Effect< CreateModelCustomizationJobCommandOutput, - | Cause.TimeoutException + | Cause.TimeoutError | SdkError | AccessDeniedError | ConflictError @@ -716,7 +711,7 @@ interface BedrockService$ { options?: HttpHandlerOptions, ): Effect.Effect< CreateModelImportJobCommandOutput, - | Cause.TimeoutException + | Cause.TimeoutError | SdkError | AccessDeniedError | ConflictError @@ -736,7 +731,7 @@ interface BedrockService$ { options?: HttpHandlerOptions, ): Effect.Effect< CreateModelInvocationJobCommandOutput, - | Cause.TimeoutException + | Cause.TimeoutError | SdkError | AccessDeniedError | ConflictError @@ -755,7 +750,7 @@ interface BedrockService$ { options?: HttpHandlerOptions, ): Effect.Effect< CreatePromptRouterCommandOutput, - | Cause.TimeoutException + | Cause.TimeoutError | SdkError | AccessDeniedError | ConflictError @@ -775,7 +770,7 @@ interface BedrockService$ { options?: HttpHandlerOptions, ): Effect.Effect< CreateProvisionedModelThroughputCommandOutput, - | Cause.TimeoutException + | Cause.TimeoutError | SdkError | AccessDeniedError | InternalServerError @@ -794,7 +789,7 @@ interface BedrockService$ { options?: HttpHandlerOptions, ): Effect.Effect< DeleteAutomatedReasoningPolicyCommandOutput, - | Cause.TimeoutException + | Cause.TimeoutError | SdkError | AccessDeniedError | ConflictError @@ -813,7 +808,7 @@ interface BedrockService$ { options?: HttpHandlerOptions, ): Effect.Effect< DeleteAutomatedReasoningPolicyBuildWorkflowCommandOutput, - | Cause.TimeoutException + | Cause.TimeoutError | SdkError | AccessDeniedError | ConflictError @@ -832,7 +827,7 @@ interface BedrockService$ { options?: HttpHandlerOptions, ): Effect.Effect< DeleteAutomatedReasoningPolicyTestCaseCommandOutput, - | Cause.TimeoutException + | Cause.TimeoutError | SdkError | AccessDeniedError | ConflictError @@ -851,7 +846,7 @@ interface BedrockService$ { options?: HttpHandlerOptions, ): Effect.Effect< DeleteCustomModelCommandOutput, - | Cause.TimeoutException + | Cause.TimeoutError | SdkError | AccessDeniedError | ConflictError @@ -869,7 +864,7 @@ interface BedrockService$ { options?: HttpHandlerOptions, ): Effect.Effect< DeleteCustomModelDeploymentCommandOutput, - | Cause.TimeoutException + | Cause.TimeoutError | SdkError | AccessDeniedError | ConflictError @@ -887,7 +882,7 @@ interface BedrockService$ { options?: HttpHandlerOptions, ): Effect.Effect< DeleteEnforcedGuardrailConfigurationCommandOutput, - | Cause.TimeoutException + | Cause.TimeoutError | SdkError | AccessDeniedError | InternalServerError @@ -904,7 +899,7 @@ interface BedrockService$ { options?: HttpHandlerOptions, ): Effect.Effect< DeleteFoundationModelAgreementCommandOutput, - | Cause.TimeoutException + | Cause.TimeoutError | SdkError | AccessDeniedError | ConflictError @@ -922,7 +917,7 @@ interface BedrockService$ { options?: HttpHandlerOptions, ): Effect.Effect< DeleteGuardrailCommandOutput, - | Cause.TimeoutException + | Cause.TimeoutError | SdkError | AccessDeniedError | ConflictError @@ -940,7 +935,7 @@ interface BedrockService$ { options?: HttpHandlerOptions, ): Effect.Effect< DeleteImportedModelCommandOutput, - | Cause.TimeoutException + | Cause.TimeoutError | SdkError | AccessDeniedError | ConflictError @@ -958,7 +953,7 @@ interface BedrockService$ { options?: HttpHandlerOptions, ): Effect.Effect< DeleteInferenceProfileCommandOutput, - | Cause.TimeoutException + | Cause.TimeoutError | SdkError | AccessDeniedError | ConflictError @@ -976,7 +971,7 @@ interface BedrockService$ { options?: HttpHandlerOptions, ): Effect.Effect< DeleteMarketplaceModelEndpointCommandOutput, - | Cause.TimeoutException + | Cause.TimeoutError | SdkError | AccessDeniedError | InternalServerError @@ -993,7 +988,7 @@ interface BedrockService$ { options?: HttpHandlerOptions, ): Effect.Effect< DeleteModelInvocationLoggingConfigurationCommandOutput, - Cause.TimeoutException | SdkError | AccessDeniedError | InternalServerError | ThrottlingError + Cause.TimeoutError | SdkError | AccessDeniedError | InternalServerError | ThrottlingError >; /** @@ -1004,7 +999,7 @@ interface BedrockService$ { options?: HttpHandlerOptions, ): Effect.Effect< DeletePromptRouterCommandOutput, - | Cause.TimeoutException + | Cause.TimeoutError | SdkError | AccessDeniedError | InternalServerError @@ -1021,7 +1016,7 @@ interface BedrockService$ { options?: HttpHandlerOptions, ): Effect.Effect< DeleteProvisionedModelThroughputCommandOutput, - | Cause.TimeoutException + | Cause.TimeoutError | SdkError | AccessDeniedError | ConflictError @@ -1039,7 +1034,7 @@ interface BedrockService$ { options?: HttpHandlerOptions, ): Effect.Effect< DeregisterMarketplaceModelEndpointCommandOutput, - | Cause.TimeoutException + | Cause.TimeoutError | SdkError | AccessDeniedError | InternalServerError @@ -1057,7 +1052,7 @@ interface BedrockService$ { options?: HttpHandlerOptions, ): Effect.Effect< ExportAutomatedReasoningPolicyVersionCommandOutput, - | Cause.TimeoutException + | Cause.TimeoutError | SdkError | AccessDeniedError | InternalServerError @@ -1074,7 +1069,7 @@ interface BedrockService$ { options?: HttpHandlerOptions, ): Effect.Effect< GetAutomatedReasoningPolicyCommandOutput, - | Cause.TimeoutException + | Cause.TimeoutError | SdkError | AccessDeniedError | InternalServerError @@ -1091,7 +1086,7 @@ interface BedrockService$ { options?: HttpHandlerOptions, ): Effect.Effect< GetAutomatedReasoningPolicyAnnotationsCommandOutput, - | Cause.TimeoutException + | Cause.TimeoutError | SdkError | AccessDeniedError | InternalServerError @@ -1108,7 +1103,7 @@ interface BedrockService$ { options?: HttpHandlerOptions, ): Effect.Effect< GetAutomatedReasoningPolicyBuildWorkflowCommandOutput, - | Cause.TimeoutException + | Cause.TimeoutError | SdkError | AccessDeniedError | InternalServerError @@ -1125,7 +1120,7 @@ interface BedrockService$ { options?: HttpHandlerOptions, ): Effect.Effect< GetAutomatedReasoningPolicyBuildWorkflowResultAssetsCommandOutput, - | Cause.TimeoutException + | Cause.TimeoutError | SdkError | AccessDeniedError | InternalServerError @@ -1142,7 +1137,7 @@ interface BedrockService$ { options?: HttpHandlerOptions, ): Effect.Effect< GetAutomatedReasoningPolicyNextScenarioCommandOutput, - | Cause.TimeoutException + | Cause.TimeoutError | SdkError | AccessDeniedError | InternalServerError @@ -1159,7 +1154,7 @@ interface BedrockService$ { options?: HttpHandlerOptions, ): Effect.Effect< GetAutomatedReasoningPolicyTestCaseCommandOutput, - | Cause.TimeoutException + | Cause.TimeoutError | SdkError | AccessDeniedError | InternalServerError @@ -1176,7 +1171,7 @@ interface BedrockService$ { options?: HttpHandlerOptions, ): Effect.Effect< GetAutomatedReasoningPolicyTestResultCommandOutput, - | Cause.TimeoutException + | Cause.TimeoutError | SdkError | AccessDeniedError | InternalServerError @@ -1193,7 +1188,7 @@ interface BedrockService$ { options?: HttpHandlerOptions, ): Effect.Effect< GetCustomModelCommandOutput, - | Cause.TimeoutException + | Cause.TimeoutError | SdkError | AccessDeniedError | InternalServerError @@ -1210,7 +1205,7 @@ interface BedrockService$ { options?: HttpHandlerOptions, ): Effect.Effect< GetCustomModelDeploymentCommandOutput, - | Cause.TimeoutException + | Cause.TimeoutError | SdkError | AccessDeniedError | InternalServerError @@ -1227,7 +1222,7 @@ interface BedrockService$ { options?: HttpHandlerOptions, ): Effect.Effect< GetEvaluationJobCommandOutput, - | Cause.TimeoutException + | Cause.TimeoutError | SdkError | AccessDeniedError | InternalServerError @@ -1244,7 +1239,7 @@ interface BedrockService$ { options?: HttpHandlerOptions, ): Effect.Effect< GetFoundationModelCommandOutput, - | Cause.TimeoutException + | Cause.TimeoutError | SdkError | AccessDeniedError | InternalServerError @@ -1261,7 +1256,7 @@ interface BedrockService$ { options?: HttpHandlerOptions, ): Effect.Effect< GetFoundationModelAvailabilityCommandOutput, - | Cause.TimeoutException + | Cause.TimeoutError | SdkError | AccessDeniedError | InternalServerError @@ -1278,7 +1273,7 @@ interface BedrockService$ { options?: HttpHandlerOptions, ): Effect.Effect< GetGuardrailCommandOutput, - | Cause.TimeoutException + | Cause.TimeoutError | SdkError | AccessDeniedError | InternalServerError @@ -1295,7 +1290,7 @@ interface BedrockService$ { options?: HttpHandlerOptions, ): Effect.Effect< GetImportedModelCommandOutput, - | Cause.TimeoutException + | Cause.TimeoutError | SdkError | AccessDeniedError | InternalServerError @@ -1312,7 +1307,7 @@ interface BedrockService$ { options?: HttpHandlerOptions, ): Effect.Effect< GetInferenceProfileCommandOutput, - | Cause.TimeoutException + | Cause.TimeoutError | SdkError | AccessDeniedError | InternalServerError @@ -1329,7 +1324,7 @@ interface BedrockService$ { options?: HttpHandlerOptions, ): Effect.Effect< GetMarketplaceModelEndpointCommandOutput, - | Cause.TimeoutException + | Cause.TimeoutError | SdkError | AccessDeniedError | InternalServerError @@ -1346,7 +1341,7 @@ interface BedrockService$ { options?: HttpHandlerOptions, ): Effect.Effect< GetModelCopyJobCommandOutput, - | Cause.TimeoutException + | Cause.TimeoutError | SdkError | AccessDeniedError | InternalServerError @@ -1363,7 +1358,7 @@ interface BedrockService$ { options?: HttpHandlerOptions, ): Effect.Effect< GetModelCustomizationJobCommandOutput, - | Cause.TimeoutException + | Cause.TimeoutError | SdkError | AccessDeniedError | InternalServerError @@ -1380,7 +1375,7 @@ interface BedrockService$ { options?: HttpHandlerOptions, ): Effect.Effect< GetModelImportJobCommandOutput, - | Cause.TimeoutException + | Cause.TimeoutError | SdkError | AccessDeniedError | InternalServerError @@ -1397,7 +1392,7 @@ interface BedrockService$ { options?: HttpHandlerOptions, ): Effect.Effect< GetModelInvocationJobCommandOutput, - | Cause.TimeoutException + | Cause.TimeoutError | SdkError | AccessDeniedError | InternalServerError @@ -1414,7 +1409,7 @@ interface BedrockService$ { options?: HttpHandlerOptions, ): Effect.Effect< GetModelInvocationLoggingConfigurationCommandOutput, - Cause.TimeoutException | SdkError | AccessDeniedError | InternalServerError | ThrottlingError + Cause.TimeoutError | SdkError | AccessDeniedError | InternalServerError | ThrottlingError >; /** @@ -1425,7 +1420,7 @@ interface BedrockService$ { options?: HttpHandlerOptions, ): Effect.Effect< GetPromptRouterCommandOutput, - | Cause.TimeoutException + | Cause.TimeoutError | SdkError | AccessDeniedError | InternalServerError @@ -1442,7 +1437,7 @@ interface BedrockService$ { options?: HttpHandlerOptions, ): Effect.Effect< GetProvisionedModelThroughputCommandOutput, - | Cause.TimeoutException + | Cause.TimeoutError | SdkError | AccessDeniedError | InternalServerError @@ -1459,7 +1454,7 @@ interface BedrockService$ { options?: HttpHandlerOptions, ): Effect.Effect< GetUseCaseForModelAccessCommandOutput, - Cause.TimeoutException | SdkError | InternalServerError | ResourceNotFoundError | ThrottlingError | ValidationError + Cause.TimeoutError | SdkError | InternalServerError | ResourceNotFoundError | ThrottlingError | ValidationError >; /** @@ -1470,7 +1465,7 @@ interface BedrockService$ { options?: HttpHandlerOptions, ): Effect.Effect< ListAutomatedReasoningPoliciesCommandOutput, - | Cause.TimeoutException + | Cause.TimeoutError | SdkError | AccessDeniedError | InternalServerError @@ -1487,7 +1482,7 @@ interface BedrockService$ { options?: HttpHandlerOptions, ): Effect.Effect< ListAutomatedReasoningPolicyBuildWorkflowsCommandOutput, - | Cause.TimeoutException + | Cause.TimeoutError | SdkError | AccessDeniedError | InternalServerError @@ -1504,7 +1499,7 @@ interface BedrockService$ { options?: HttpHandlerOptions, ): Effect.Effect< ListAutomatedReasoningPolicyTestCasesCommandOutput, - | Cause.TimeoutException + | Cause.TimeoutError | SdkError | AccessDeniedError | InternalServerError @@ -1521,7 +1516,7 @@ interface BedrockService$ { options?: HttpHandlerOptions, ): Effect.Effect< ListAutomatedReasoningPolicyTestResultsCommandOutput, - | Cause.TimeoutException + | Cause.TimeoutError | SdkError | AccessDeniedError | InternalServerError @@ -1539,7 +1534,7 @@ interface BedrockService$ { options?: HttpHandlerOptions, ): Effect.Effect< ListCustomModelDeploymentsCommandOutput, - Cause.TimeoutException | SdkError | AccessDeniedError | InternalServerError | ThrottlingError | ValidationError + Cause.TimeoutError | SdkError | AccessDeniedError | InternalServerError | ThrottlingError | ValidationError >; /** @@ -1550,7 +1545,7 @@ interface BedrockService$ { options?: HttpHandlerOptions, ): Effect.Effect< ListCustomModelsCommandOutput, - Cause.TimeoutException | SdkError | AccessDeniedError | InternalServerError | ThrottlingError | ValidationError + Cause.TimeoutError | SdkError | AccessDeniedError | InternalServerError | ThrottlingError | ValidationError >; /** @@ -1561,7 +1556,7 @@ interface BedrockService$ { options?: HttpHandlerOptions, ): Effect.Effect< ListEnforcedGuardrailsConfigurationCommandOutput, - | Cause.TimeoutException + | Cause.TimeoutError | SdkError | AccessDeniedError | InternalServerError @@ -1578,7 +1573,7 @@ interface BedrockService$ { options?: HttpHandlerOptions, ): Effect.Effect< ListEvaluationJobsCommandOutput, - Cause.TimeoutException | SdkError | AccessDeniedError | InternalServerError | ThrottlingError | ValidationError + Cause.TimeoutError | SdkError | AccessDeniedError | InternalServerError | ThrottlingError | ValidationError >; /** @@ -1589,7 +1584,7 @@ interface BedrockService$ { options?: HttpHandlerOptions, ): Effect.Effect< ListFoundationModelAgreementOffersCommandOutput, - | Cause.TimeoutException + | Cause.TimeoutError | SdkError | AccessDeniedError | InternalServerError @@ -1606,7 +1601,7 @@ interface BedrockService$ { options?: HttpHandlerOptions, ): Effect.Effect< ListFoundationModelsCommandOutput, - Cause.TimeoutException | SdkError | AccessDeniedError | InternalServerError | ThrottlingError | ValidationError + Cause.TimeoutError | SdkError | AccessDeniedError | InternalServerError | ThrottlingError | ValidationError >; /** @@ -1617,7 +1612,7 @@ interface BedrockService$ { options?: HttpHandlerOptions, ): Effect.Effect< ListGuardrailsCommandOutput, - | Cause.TimeoutException + | Cause.TimeoutError | SdkError | AccessDeniedError | InternalServerError @@ -1634,7 +1629,7 @@ interface BedrockService$ { options?: HttpHandlerOptions, ): Effect.Effect< ListImportedModelsCommandOutput, - Cause.TimeoutException | SdkError | AccessDeniedError | InternalServerError | ThrottlingError | ValidationError + Cause.TimeoutError | SdkError | AccessDeniedError | InternalServerError | ThrottlingError | ValidationError >; /** @@ -1645,7 +1640,7 @@ interface BedrockService$ { options?: HttpHandlerOptions, ): Effect.Effect< ListInferenceProfilesCommandOutput, - Cause.TimeoutException | SdkError | AccessDeniedError | InternalServerError | ThrottlingError | ValidationError + Cause.TimeoutError | SdkError | AccessDeniedError | InternalServerError | ThrottlingError | ValidationError >; /** @@ -1656,7 +1651,7 @@ interface BedrockService$ { options?: HttpHandlerOptions, ): Effect.Effect< ListMarketplaceModelEndpointsCommandOutput, - | Cause.TimeoutException + | Cause.TimeoutError | SdkError | AccessDeniedError | InternalServerError @@ -1673,7 +1668,7 @@ interface BedrockService$ { options?: HttpHandlerOptions, ): Effect.Effect< ListModelCopyJobsCommandOutput, - | Cause.TimeoutException + | Cause.TimeoutError | SdkError | AccessDeniedError | InternalServerError @@ -1690,7 +1685,7 @@ interface BedrockService$ { options?: HttpHandlerOptions, ): Effect.Effect< ListModelCustomizationJobsCommandOutput, - Cause.TimeoutException | SdkError | AccessDeniedError | InternalServerError | ThrottlingError | ValidationError + Cause.TimeoutError | SdkError | AccessDeniedError | InternalServerError | ThrottlingError | ValidationError >; /** @@ -1701,7 +1696,7 @@ interface BedrockService$ { options?: HttpHandlerOptions, ): Effect.Effect< ListModelImportJobsCommandOutput, - Cause.TimeoutException | SdkError | AccessDeniedError | InternalServerError | ThrottlingError | ValidationError + Cause.TimeoutError | SdkError | AccessDeniedError | InternalServerError | ThrottlingError | ValidationError >; /** @@ -1712,7 +1707,7 @@ interface BedrockService$ { options?: HttpHandlerOptions, ): Effect.Effect< ListModelInvocationJobsCommandOutput, - Cause.TimeoutException | SdkError | AccessDeniedError | InternalServerError | ThrottlingError | ValidationError + Cause.TimeoutError | SdkError | AccessDeniedError | InternalServerError | ThrottlingError | ValidationError >; /** @@ -1723,7 +1718,7 @@ interface BedrockService$ { options?: HttpHandlerOptions, ): Effect.Effect< ListPromptRoutersCommandOutput, - Cause.TimeoutException | SdkError | AccessDeniedError | InternalServerError | ThrottlingError | ValidationError + Cause.TimeoutError | SdkError | AccessDeniedError | InternalServerError | ThrottlingError | ValidationError >; /** @@ -1734,7 +1729,7 @@ interface BedrockService$ { options?: HttpHandlerOptions, ): Effect.Effect< ListProvisionedModelThroughputsCommandOutput, - Cause.TimeoutException | SdkError | AccessDeniedError | InternalServerError | ThrottlingError | ValidationError + Cause.TimeoutError | SdkError | AccessDeniedError | InternalServerError | ThrottlingError | ValidationError >; /** @@ -1745,7 +1740,7 @@ interface BedrockService$ { options?: HttpHandlerOptions, ): Effect.Effect< ListTagsForResourceCommandOutput, - | Cause.TimeoutException + | Cause.TimeoutError | SdkError | AccessDeniedError | InternalServerError @@ -1762,7 +1757,7 @@ interface BedrockService$ { options?: HttpHandlerOptions, ): Effect.Effect< PutEnforcedGuardrailConfigurationCommandOutput, - | Cause.TimeoutException + | Cause.TimeoutError | SdkError | AccessDeniedError | ConflictError @@ -1780,7 +1775,7 @@ interface BedrockService$ { options?: HttpHandlerOptions, ): Effect.Effect< PutModelInvocationLoggingConfigurationCommandOutput, - Cause.TimeoutException | SdkError | AccessDeniedError | InternalServerError | ThrottlingError | ValidationError + Cause.TimeoutError | SdkError | AccessDeniedError | InternalServerError | ThrottlingError | ValidationError >; /** @@ -1791,7 +1786,7 @@ interface BedrockService$ { options?: HttpHandlerOptions, ): Effect.Effect< PutUseCaseForModelAccessCommandOutput, - Cause.TimeoutException | SdkError | AccessDeniedError | InternalServerError | ThrottlingError | ValidationError + Cause.TimeoutError | SdkError | AccessDeniedError | InternalServerError | ThrottlingError | ValidationError >; /** @@ -1802,7 +1797,7 @@ interface BedrockService$ { options?: HttpHandlerOptions, ): Effect.Effect< RegisterMarketplaceModelEndpointCommandOutput, - | Cause.TimeoutException + | Cause.TimeoutError | SdkError | AccessDeniedError | InternalServerError @@ -1820,7 +1815,7 @@ interface BedrockService$ { options?: HttpHandlerOptions, ): Effect.Effect< StartAutomatedReasoningPolicyBuildWorkflowCommandOutput, - | Cause.TimeoutException + | Cause.TimeoutError | SdkError | AccessDeniedError | ConflictError @@ -1840,7 +1835,7 @@ interface BedrockService$ { options?: HttpHandlerOptions, ): Effect.Effect< StartAutomatedReasoningPolicyTestWorkflowCommandOutput, - | Cause.TimeoutException + | Cause.TimeoutError | SdkError | AccessDeniedError | InternalServerError @@ -1858,7 +1853,7 @@ interface BedrockService$ { options?: HttpHandlerOptions, ): Effect.Effect< StopEvaluationJobCommandOutput, - | Cause.TimeoutException + | Cause.TimeoutError | SdkError | AccessDeniedError | ConflictError @@ -1876,7 +1871,7 @@ interface BedrockService$ { options?: HttpHandlerOptions, ): Effect.Effect< StopModelCustomizationJobCommandOutput, - | Cause.TimeoutException + | Cause.TimeoutError | SdkError | AccessDeniedError | ConflictError @@ -1894,7 +1889,7 @@ interface BedrockService$ { options?: HttpHandlerOptions, ): Effect.Effect< StopModelInvocationJobCommandOutput, - | Cause.TimeoutException + | Cause.TimeoutError | SdkError | AccessDeniedError | ConflictError @@ -1912,7 +1907,7 @@ interface BedrockService$ { options?: HttpHandlerOptions, ): Effect.Effect< TagResourceCommandOutput, - | Cause.TimeoutException + | Cause.TimeoutError | SdkError | AccessDeniedError | InternalServerError @@ -1930,7 +1925,7 @@ interface BedrockService$ { options?: HttpHandlerOptions, ): Effect.Effect< UntagResourceCommandOutput, - | Cause.TimeoutException + | Cause.TimeoutError | SdkError | AccessDeniedError | InternalServerError @@ -1947,7 +1942,7 @@ interface BedrockService$ { options?: HttpHandlerOptions, ): Effect.Effect< UpdateAutomatedReasoningPolicyCommandOutput, - | Cause.TimeoutException + | Cause.TimeoutError | SdkError | AccessDeniedError | ConflictError @@ -1966,7 +1961,7 @@ interface BedrockService$ { options?: HttpHandlerOptions, ): Effect.Effect< UpdateAutomatedReasoningPolicyAnnotationsCommandOutput, - | Cause.TimeoutException + | Cause.TimeoutError | SdkError | AccessDeniedError | ConflictError @@ -1984,7 +1979,7 @@ interface BedrockService$ { options?: HttpHandlerOptions, ): Effect.Effect< UpdateAutomatedReasoningPolicyTestCaseCommandOutput, - | Cause.TimeoutException + | Cause.TimeoutError | SdkError | AccessDeniedError | ConflictError @@ -2003,7 +1998,7 @@ interface BedrockService$ { options?: HttpHandlerOptions, ): Effect.Effect< UpdateCustomModelDeploymentCommandOutput, - | Cause.TimeoutException + | Cause.TimeoutError | SdkError | AccessDeniedError | InternalServerError @@ -2020,7 +2015,7 @@ interface BedrockService$ { options?: HttpHandlerOptions, ): Effect.Effect< UpdateGuardrailCommandOutput, - | Cause.TimeoutException + | Cause.TimeoutError | SdkError | AccessDeniedError | ConflictError @@ -2039,7 +2034,7 @@ interface BedrockService$ { options?: HttpHandlerOptions, ): Effect.Effect< UpdateMarketplaceModelEndpointCommandOutput, - | Cause.TimeoutException + | Cause.TimeoutError | SdkError | AccessDeniedError | ConflictError @@ -2058,7 +2053,7 @@ interface BedrockService$ { options?: HttpHandlerOptions, ): Effect.Effect< UpdateProvisionedModelThroughputCommandOutput, - | Cause.TimeoutException + | Cause.TimeoutError | SdkError | AccessDeniedError | InternalServerError @@ -2089,10 +2084,10 @@ export const makeBedrockService = Effect.gen(function*() { * @since 1.0.0 * @category models */ -export class BedrockService extends Effect.Tag("@effect-aws/client-bedrock/BedrockService")< +export class BedrockService extends ServiceMap.Service< BedrockService, BedrockService$ ->() { +>()("@effect-aws/client-bedrock/BedrockService") { static readonly defaultLayer = Layer.effect(this, makeBedrockService).pipe(Layer.provide(Instance.layer)); static readonly layer = (config: BedrockService.Config) => Layer.effect(this, makeBedrockService).pipe( diff --git a/packages/client-bedrock/src/BedrockServiceConfig.ts b/packages/client-bedrock/src/BedrockServiceConfig.ts index 027c1455..7537f0e8 100644 --- a/packages/client-bedrock/src/BedrockServiceConfig.ts +++ b/packages/client-bedrock/src/BedrockServiceConfig.ts @@ -3,18 +3,17 @@ */ import type { BedrockClientConfig } from "@aws-sdk/client-bedrock"; import { ServiceLogger } from "@effect-aws/commons"; -import { Effect, FiberRef, Layer } from "effect"; +import { Effect, Layer, ServiceMap } from "effect"; import { dual } from "effect/Function"; -import { globalValue } from "effect/GlobalValue"; import type { BedrockService } from "./BedrockService.js"; /** * @since 1.0.0 * @category bedrock service config */ -const currentBedrockServiceConfig = globalValue( +const currentBedrockServiceConfig = ServiceMap.Reference( "@effect-aws/client-bedrock/currentBedrockServiceConfig", - () => FiberRef.unsafeMake({}), + { defaultValue: () => ({}) }, ); /** @@ -27,7 +26,7 @@ export const withBedrockServiceConfig: { } = dual( 2, (effect: Effect.Effect, config: BedrockService.Config): Effect.Effect => - Effect.locally(effect, currentBedrockServiceConfig, config), + Effect.provideService(effect, currentBedrockServiceConfig, config), ); /** @@ -35,14 +34,14 @@ export const withBedrockServiceConfig: { * @category bedrock service config */ export const setBedrockServiceConfig = (config: BedrockService.Config) => - Layer.locallyScoped(currentBedrockServiceConfig, config); + Layer.succeed(currentBedrockServiceConfig, config); /** * @since 1.0.0 * @category adapters */ export const toBedrockClientConfig: Effect.Effect = Effect.gen(function*() { - const { logger: serviceLogger, ...config } = yield* FiberRef.get(currentBedrockServiceConfig); + const { logger: serviceLogger, ...config } = yield* currentBedrockServiceConfig; const logger = serviceLogger === true ? yield* ServiceLogger.toClientLogger(ServiceLogger.defaultServiceLogger) diff --git a/packages/client-bedrock/test/Bedrock.test.ts b/packages/client-bedrock/test/Bedrock.test.ts index b295669d..7b1b9ecd 100644 --- a/packages/client-bedrock/test/Bedrock.test.ts +++ b/packages/client-bedrock/test/Bedrock.test.ts @@ -26,7 +26,7 @@ describe("BedrockClientImpl", () => { const args = {} as unknown as ListCustomModelsCommandInput; - const program = Bedrock.listCustomModels(args); + const program = Bedrock.use((svc) => svc.listCustomModels(args)); const result = await pipe( program, @@ -46,7 +46,7 @@ describe("BedrockClientImpl", () => { const args = {} as unknown as ListCustomModelsCommandInput; - const program = Bedrock.listCustomModels(args); + const program = Bedrock.use((svc) => svc.listCustomModels(args)); const result = await pipe( program, @@ -69,7 +69,7 @@ describe("BedrockClientImpl", () => { const args = {} as unknown as ListCustomModelsCommandInput; - const program = Bedrock.listCustomModels(args); + const program = Bedrock.use((svc) => svc.listCustomModels(args)); const result = await pipe( program, @@ -93,7 +93,7 @@ describe("BedrockClientImpl", () => { const args = {} as unknown as ListCustomModelsCommandInput; - const program = Bedrock.listCustomModels(args); + const program = Bedrock.use((svc) => svc.listCustomModels(args)); const result = await pipe( program, @@ -121,7 +121,7 @@ describe("BedrockClientImpl", () => { const args = {} as unknown as ListCustomModelsCommandInput; - const program = Bedrock.listCustomModels(args); + const program = Bedrock.use((svc) => svc.listCustomModels(args)); const result = await pipe( program, @@ -131,7 +131,7 @@ describe("BedrockClientImpl", () => { expect(result).toEqual( Exit.fail( - SdkError({ + new SdkError({ ...new Error("test"), name: "SdkError", message: "test", @@ -156,7 +156,7 @@ describe("BedrockClientImpl", () => { const args = {} as unknown as ListCustomModelsCommandInput; - const program = Bedrock.listCustomModels(args).pipe( + const program = Bedrock.use((svc) => svc.listCustomModels(args)).pipe( Effect.catchTag("NotHandledException" as any, () => Effect.succeed(null)), ); @@ -166,9 +166,9 @@ describe("BedrockClientImpl", () => { Effect.runPromiseExit, ); - expect(result).toEqual( + expect(result).toContainEqual( Exit.fail( - SdkError({ + new SdkError({ ...new Error("test"), name: "SdkError", message: "test", diff --git a/packages/client-cloudformation/.projen/deps.json b/packages/client-cloudformation/.projen/deps.json index d370b64e..cad0b8ed 100644 --- a/packages/client-cloudformation/.projen/deps.json +++ b/packages/client-cloudformation/.projen/deps.json @@ -7,6 +7,7 @@ }, { "name": "effect", + "version": "4.0.0-beta.8", "type": "build" }, { @@ -16,7 +17,7 @@ }, { "name": "effect", - "version": ">=3.0.4 <4.0.0", + "version": ">=4.0.0 <5.0.0", "type": "peer" }, { diff --git a/packages/client-cloudformation/README.md b/packages/client-cloudformation/README.md index dd2538d3..37d1102a 100644 --- a/packages/client-cloudformation/README.md +++ b/packages/client-cloudformation/README.md @@ -16,7 +16,7 @@ With default CloudFormationClient instance: ```typescript import { CloudFormation } from "@effect-aws/client-cloudformation"; -const program = CloudFormation.listStacks(args); +const program = CloudFormation.use((svc) => svc.listStacks(args)); const result = pipe( program, @@ -30,7 +30,7 @@ With custom CloudFormationClient instance: ```typescript import { CloudFormation } from "@effect-aws/client-cloudformation"; -const program = CloudFormation.listStacks(args); +const program = CloudFormation.use((svc) => svc.listStacks(args)); const result = await pipe( program, @@ -46,7 +46,7 @@ With custom CloudFormationClient configuration: ```typescript import { CloudFormation } from "@effect-aws/client-cloudformation"; -const program = CloudFormation.listStacks(args); +const program = CloudFormation.use((svc) => svc.listStacks(args)); const result = await pipe( program, diff --git a/packages/client-cloudformation/package.json b/packages/client-cloudformation/package.json index efd5a083..55c7608d 100644 --- a/packages/client-cloudformation/package.json +++ b/packages/client-cloudformation/package.json @@ -26,11 +26,11 @@ }, "devDependencies": { "@types/node": "ts5.4", - "effect": "^3.16.4", + "effect": "4.0.0-beta.8", "typescript": "^5.4.2" }, "peerDependencies": { - "effect": ">=3.0.4 <4.0.0" + "effect": ">=4.0.0 <5.0.0" }, "dependencies": { "@aws-sdk/client-cloudformation": "^3", diff --git a/packages/client-cloudformation/src/CloudFormationClientInstance.ts b/packages/client-cloudformation/src/CloudFormationClientInstance.ts index 74041016..207b2330 100644 --- a/packages/client-cloudformation/src/CloudFormationClientInstance.ts +++ b/packages/client-cloudformation/src/CloudFormationClientInstance.ts @@ -2,16 +2,18 @@ * @since 1.0.0 */ import { CloudFormationClient } from "@aws-sdk/client-cloudformation"; -import { Context, Effect, Layer } from "effect"; +import { Effect, Layer, ServiceMap } from "effect"; import * as CloudFormationServiceConfig from "./CloudFormationServiceConfig.js"; /** * @since 1.0.0 * @category tags */ -export class CloudFormationClientInstance extends Context.Tag( - "@effect-aws/client-cloudformation/CloudFormationClientInstance", -)() {} +export class CloudFormationClientInstance + extends ServiceMap.Service()( + "@effect-aws/client-cloudformation/CloudFormationClientInstance", + ) +{} /** * @since 1.0.0 @@ -30,4 +32,4 @@ export const make = Effect.flatMap( * @since 1.0.0 * @category layers */ -export const layer = Layer.scoped(CloudFormationClientInstance, make); +export const layer = Layer.effect(CloudFormationClientInstance, make); diff --git a/packages/client-cloudformation/src/CloudFormationService.ts b/packages/client-cloudformation/src/CloudFormationService.ts index 8020a744..58723b29 100644 --- a/packages/client-cloudformation/src/CloudFormationService.ts +++ b/packages/client-cloudformation/src/CloudFormationService.ts @@ -278,7 +278,7 @@ import { import type { HttpHandlerOptions, ServiceLogger } from "@effect-aws/commons"; import { Service } from "@effect-aws/commons"; import type { Cause } from "effect"; -import { Effect, Layer } from "effect"; +import { Effect, Layer, ServiceMap } from "effect"; import * as Instance from "./CloudFormationClientInstance.js"; import * as CloudFormationServiceConfig from "./CloudFormationServiceConfig.js"; import type { @@ -419,7 +419,7 @@ interface CloudFormationService$ { options?: HttpHandlerOptions, ): Effect.Effect< ActivateOrganizationsAccessCommandOutput, - Cause.TimeoutException | SdkError | InvalidOperationError | OperationNotFoundError + Cause.TimeoutError | SdkError | InvalidOperationError | OperationNotFoundError >; /** @@ -430,7 +430,7 @@ interface CloudFormationService$ { options?: HttpHandlerOptions, ): Effect.Effect< ActivateTypeCommandOutput, - Cause.TimeoutException | SdkError | CFNRegistryError | TypeNotFoundError + Cause.TimeoutError | SdkError | CFNRegistryError | TypeNotFoundError >; /** @@ -441,7 +441,7 @@ interface CloudFormationService$ { options?: HttpHandlerOptions, ): Effect.Effect< BatchDescribeTypeConfigurationsCommandOutput, - Cause.TimeoutException | SdkError | CFNRegistryError | TypeConfigurationNotFoundError + Cause.TimeoutError | SdkError | CFNRegistryError | TypeConfigurationNotFoundError >; /** @@ -452,7 +452,7 @@ interface CloudFormationService$ { options?: HttpHandlerOptions, ): Effect.Effect< CancelUpdateStackCommandOutput, - Cause.TimeoutException | SdkError | TokenAlreadyExistsError + Cause.TimeoutError | SdkError | TokenAlreadyExistsError >; /** @@ -463,7 +463,7 @@ interface CloudFormationService$ { options?: HttpHandlerOptions, ): Effect.Effect< ContinueUpdateRollbackCommandOutput, - Cause.TimeoutException | SdkError | TokenAlreadyExistsError + Cause.TimeoutError | SdkError | TokenAlreadyExistsError >; /** @@ -474,7 +474,7 @@ interface CloudFormationService$ { options?: HttpHandlerOptions, ): Effect.Effect< CreateChangeSetCommandOutput, - Cause.TimeoutException | SdkError | AlreadyExistsError | InsufficientCapabilitiesError | LimitExceededError + Cause.TimeoutError | SdkError | AlreadyExistsError | InsufficientCapabilitiesError | LimitExceededError >; /** @@ -485,7 +485,7 @@ interface CloudFormationService$ { options?: HttpHandlerOptions, ): Effect.Effect< CreateGeneratedTemplateCommandOutput, - Cause.TimeoutException | SdkError | AlreadyExistsError | ConcurrentResourcesLimitExceededError | LimitExceededError + Cause.TimeoutError | SdkError | AlreadyExistsError | ConcurrentResourcesLimitExceededError | LimitExceededError >; /** @@ -496,7 +496,7 @@ interface CloudFormationService$ { options?: HttpHandlerOptions, ): Effect.Effect< CreateStackCommandOutput, - | Cause.TimeoutException + | Cause.TimeoutError | SdkError | AlreadyExistsError | InsufficientCapabilitiesError @@ -512,7 +512,7 @@ interface CloudFormationService$ { options?: HttpHandlerOptions, ): Effect.Effect< CreateStackInstancesCommandOutput, - | Cause.TimeoutException + | Cause.TimeoutError | SdkError | InvalidOperationError | LimitExceededError @@ -530,7 +530,7 @@ interface CloudFormationService$ { options?: HttpHandlerOptions, ): Effect.Effect< CreateStackRefactorCommandOutput, - Cause.TimeoutException | SdkError + Cause.TimeoutError | SdkError >; /** @@ -541,7 +541,7 @@ interface CloudFormationService$ { options?: HttpHandlerOptions, ): Effect.Effect< CreateStackSetCommandOutput, - Cause.TimeoutException | SdkError | CreatedButModifiedError | LimitExceededError | NameAlreadyExistsError + Cause.TimeoutError | SdkError | CreatedButModifiedError | LimitExceededError | NameAlreadyExistsError >; /** @@ -552,7 +552,7 @@ interface CloudFormationService$ { options?: HttpHandlerOptions, ): Effect.Effect< DeactivateOrganizationsAccessCommandOutput, - Cause.TimeoutException | SdkError | InvalidOperationError | OperationNotFoundError + Cause.TimeoutError | SdkError | InvalidOperationError | OperationNotFoundError >; /** @@ -563,7 +563,7 @@ interface CloudFormationService$ { options?: HttpHandlerOptions, ): Effect.Effect< DeactivateTypeCommandOutput, - Cause.TimeoutException | SdkError | CFNRegistryError | TypeNotFoundError + Cause.TimeoutError | SdkError | CFNRegistryError | TypeNotFoundError >; /** @@ -574,7 +574,7 @@ interface CloudFormationService$ { options?: HttpHandlerOptions, ): Effect.Effect< DeleteChangeSetCommandOutput, - Cause.TimeoutException | SdkError | InvalidChangeSetStatusError + Cause.TimeoutError | SdkError | InvalidChangeSetStatusError >; /** @@ -585,7 +585,7 @@ interface CloudFormationService$ { options?: HttpHandlerOptions, ): Effect.Effect< DeleteGeneratedTemplateCommandOutput, - Cause.TimeoutException | SdkError | ConcurrentResourcesLimitExceededError | GeneratedTemplateNotFoundError + Cause.TimeoutError | SdkError | ConcurrentResourcesLimitExceededError | GeneratedTemplateNotFoundError >; /** @@ -596,7 +596,7 @@ interface CloudFormationService$ { options?: HttpHandlerOptions, ): Effect.Effect< DeleteStackCommandOutput, - Cause.TimeoutException | SdkError | TokenAlreadyExistsError + Cause.TimeoutError | SdkError | TokenAlreadyExistsError >; /** @@ -607,7 +607,7 @@ interface CloudFormationService$ { options?: HttpHandlerOptions, ): Effect.Effect< DeleteStackInstancesCommandOutput, - | Cause.TimeoutException + | Cause.TimeoutError | SdkError | InvalidOperationError | OperationIdAlreadyExistsError @@ -624,7 +624,7 @@ interface CloudFormationService$ { options?: HttpHandlerOptions, ): Effect.Effect< DeleteStackSetCommandOutput, - Cause.TimeoutException | SdkError | OperationInProgressError | StackSetNotEmptyError + Cause.TimeoutError | SdkError | OperationInProgressError | StackSetNotEmptyError >; /** @@ -635,7 +635,7 @@ interface CloudFormationService$ { options?: HttpHandlerOptions, ): Effect.Effect< DeregisterTypeCommandOutput, - Cause.TimeoutException | SdkError | CFNRegistryError | TypeNotFoundError + Cause.TimeoutError | SdkError | CFNRegistryError | TypeNotFoundError >; /** @@ -646,7 +646,7 @@ interface CloudFormationService$ { options?: HttpHandlerOptions, ): Effect.Effect< DescribeAccountLimitsCommandOutput, - Cause.TimeoutException | SdkError + Cause.TimeoutError | SdkError >; /** @@ -657,7 +657,7 @@ interface CloudFormationService$ { options?: HttpHandlerOptions, ): Effect.Effect< DescribeChangeSetCommandOutput, - Cause.TimeoutException | SdkError | ChangeSetNotFoundError + Cause.TimeoutError | SdkError | ChangeSetNotFoundError >; /** @@ -668,7 +668,7 @@ interface CloudFormationService$ { options?: HttpHandlerOptions, ): Effect.Effect< DescribeChangeSetHooksCommandOutput, - Cause.TimeoutException | SdkError | ChangeSetNotFoundError + Cause.TimeoutError | SdkError | ChangeSetNotFoundError >; /** @@ -679,7 +679,7 @@ interface CloudFormationService$ { options?: HttpHandlerOptions, ): Effect.Effect< DescribeEventsCommandOutput, - Cause.TimeoutException | SdkError + Cause.TimeoutError | SdkError >; /** @@ -690,7 +690,7 @@ interface CloudFormationService$ { options?: HttpHandlerOptions, ): Effect.Effect< DescribeGeneratedTemplateCommandOutput, - Cause.TimeoutException | SdkError | GeneratedTemplateNotFoundError + Cause.TimeoutError | SdkError | GeneratedTemplateNotFoundError >; /** @@ -701,7 +701,7 @@ interface CloudFormationService$ { options?: HttpHandlerOptions, ): Effect.Effect< DescribeOrganizationsAccessCommandOutput, - Cause.TimeoutException | SdkError | InvalidOperationError | OperationNotFoundError + Cause.TimeoutError | SdkError | InvalidOperationError | OperationNotFoundError >; /** @@ -712,7 +712,7 @@ interface CloudFormationService$ { options?: HttpHandlerOptions, ): Effect.Effect< DescribePublisherCommandOutput, - Cause.TimeoutException | SdkError | CFNRegistryError + Cause.TimeoutError | SdkError | CFNRegistryError >; /** @@ -723,7 +723,7 @@ interface CloudFormationService$ { options?: HttpHandlerOptions, ): Effect.Effect< DescribeResourceScanCommandOutput, - Cause.TimeoutException | SdkError | ResourceScanNotFoundError + Cause.TimeoutError | SdkError | ResourceScanNotFoundError >; /** @@ -734,7 +734,7 @@ interface CloudFormationService$ { options?: HttpHandlerOptions, ): Effect.Effect< DescribeStackDriftDetectionStatusCommandOutput, - Cause.TimeoutException | SdkError + Cause.TimeoutError | SdkError >; /** @@ -745,7 +745,7 @@ interface CloudFormationService$ { options?: HttpHandlerOptions, ): Effect.Effect< DescribeStackEventsCommandOutput, - Cause.TimeoutException | SdkError + Cause.TimeoutError | SdkError >; /** @@ -756,7 +756,7 @@ interface CloudFormationService$ { options?: HttpHandlerOptions, ): Effect.Effect< DescribeStackInstanceCommandOutput, - Cause.TimeoutException | SdkError | StackInstanceNotFoundError | StackSetNotFoundError + Cause.TimeoutError | SdkError | StackInstanceNotFoundError | StackSetNotFoundError >; /** @@ -767,7 +767,7 @@ interface CloudFormationService$ { options?: HttpHandlerOptions, ): Effect.Effect< DescribeStackRefactorCommandOutput, - Cause.TimeoutException | SdkError | StackRefactorNotFoundError + Cause.TimeoutError | SdkError | StackRefactorNotFoundError >; /** @@ -778,7 +778,7 @@ interface CloudFormationService$ { options?: HttpHandlerOptions, ): Effect.Effect< DescribeStackResourceCommandOutput, - Cause.TimeoutException | SdkError + Cause.TimeoutError | SdkError >; /** @@ -789,7 +789,7 @@ interface CloudFormationService$ { options?: HttpHandlerOptions, ): Effect.Effect< DescribeStackResourceDriftsCommandOutput, - Cause.TimeoutException | SdkError + Cause.TimeoutError | SdkError >; /** @@ -800,7 +800,7 @@ interface CloudFormationService$ { options?: HttpHandlerOptions, ): Effect.Effect< DescribeStackResourcesCommandOutput, - Cause.TimeoutException | SdkError + Cause.TimeoutError | SdkError >; /** @@ -811,7 +811,7 @@ interface CloudFormationService$ { options?: HttpHandlerOptions, ): Effect.Effect< DescribeStackSetCommandOutput, - Cause.TimeoutException | SdkError | StackSetNotFoundError + Cause.TimeoutError | SdkError | StackSetNotFoundError >; /** @@ -822,7 +822,7 @@ interface CloudFormationService$ { options?: HttpHandlerOptions, ): Effect.Effect< DescribeStackSetOperationCommandOutput, - Cause.TimeoutException | SdkError | OperationNotFoundError | StackSetNotFoundError + Cause.TimeoutError | SdkError | OperationNotFoundError | StackSetNotFoundError >; /** @@ -833,7 +833,7 @@ interface CloudFormationService$ { options?: HttpHandlerOptions, ): Effect.Effect< DescribeStacksCommandOutput, - Cause.TimeoutException | SdkError + Cause.TimeoutError | SdkError >; /** @@ -844,7 +844,7 @@ interface CloudFormationService$ { options?: HttpHandlerOptions, ): Effect.Effect< DescribeTypeCommandOutput, - Cause.TimeoutException | SdkError | CFNRegistryError | TypeNotFoundError + Cause.TimeoutError | SdkError | CFNRegistryError | TypeNotFoundError >; /** @@ -855,7 +855,7 @@ interface CloudFormationService$ { options?: HttpHandlerOptions, ): Effect.Effect< DescribeTypeRegistrationCommandOutput, - Cause.TimeoutException | SdkError | CFNRegistryError + Cause.TimeoutError | SdkError | CFNRegistryError >; /** @@ -866,7 +866,7 @@ interface CloudFormationService$ { options?: HttpHandlerOptions, ): Effect.Effect< DetectStackDriftCommandOutput, - Cause.TimeoutException | SdkError + Cause.TimeoutError | SdkError >; /** @@ -877,7 +877,7 @@ interface CloudFormationService$ { options?: HttpHandlerOptions, ): Effect.Effect< DetectStackResourceDriftCommandOutput, - Cause.TimeoutException | SdkError + Cause.TimeoutError | SdkError >; /** @@ -888,7 +888,7 @@ interface CloudFormationService$ { options?: HttpHandlerOptions, ): Effect.Effect< DetectStackSetDriftCommandOutput, - Cause.TimeoutException | SdkError | InvalidOperationError | OperationInProgressError | StackSetNotFoundError + Cause.TimeoutError | SdkError | InvalidOperationError | OperationInProgressError | StackSetNotFoundError >; /** @@ -899,7 +899,7 @@ interface CloudFormationService$ { options?: HttpHandlerOptions, ): Effect.Effect< EstimateTemplateCostCommandOutput, - Cause.TimeoutException | SdkError + Cause.TimeoutError | SdkError >; /** @@ -910,7 +910,7 @@ interface CloudFormationService$ { options?: HttpHandlerOptions, ): Effect.Effect< ExecuteChangeSetCommandOutput, - | Cause.TimeoutException + | Cause.TimeoutError | SdkError | ChangeSetNotFoundError | InsufficientCapabilitiesError @@ -926,7 +926,7 @@ interface CloudFormationService$ { options?: HttpHandlerOptions, ): Effect.Effect< ExecuteStackRefactorCommandOutput, - Cause.TimeoutException | SdkError + Cause.TimeoutError | SdkError >; /** @@ -937,7 +937,7 @@ interface CloudFormationService$ { options?: HttpHandlerOptions, ): Effect.Effect< GetGeneratedTemplateCommandOutput, - Cause.TimeoutException | SdkError | GeneratedTemplateNotFoundError + Cause.TimeoutError | SdkError | GeneratedTemplateNotFoundError >; /** @@ -948,7 +948,7 @@ interface CloudFormationService$ { options?: HttpHandlerOptions, ): Effect.Effect< GetHookResultCommandOutput, - Cause.TimeoutException | SdkError | HookResultNotFoundError + Cause.TimeoutError | SdkError | HookResultNotFoundError >; /** @@ -959,7 +959,7 @@ interface CloudFormationService$ { options?: HttpHandlerOptions, ): Effect.Effect< GetStackPolicyCommandOutput, - Cause.TimeoutException | SdkError + Cause.TimeoutError | SdkError >; /** @@ -970,7 +970,7 @@ interface CloudFormationService$ { options?: HttpHandlerOptions, ): Effect.Effect< GetTemplateCommandOutput, - Cause.TimeoutException | SdkError | ChangeSetNotFoundError + Cause.TimeoutError | SdkError | ChangeSetNotFoundError >; /** @@ -981,7 +981,7 @@ interface CloudFormationService$ { options?: HttpHandlerOptions, ): Effect.Effect< GetTemplateSummaryCommandOutput, - Cause.TimeoutException | SdkError | StackSetNotFoundError + Cause.TimeoutError | SdkError | StackSetNotFoundError >; /** @@ -992,7 +992,7 @@ interface CloudFormationService$ { options?: HttpHandlerOptions, ): Effect.Effect< ImportStacksToStackSetCommandOutput, - | Cause.TimeoutException + | Cause.TimeoutError | SdkError | InvalidOperationError | LimitExceededError @@ -1011,7 +1011,7 @@ interface CloudFormationService$ { options?: HttpHandlerOptions, ): Effect.Effect< ListChangeSetsCommandOutput, - Cause.TimeoutException | SdkError + Cause.TimeoutError | SdkError >; /** @@ -1022,7 +1022,7 @@ interface CloudFormationService$ { options?: HttpHandlerOptions, ): Effect.Effect< ListExportsCommandOutput, - Cause.TimeoutException | SdkError + Cause.TimeoutError | SdkError >; /** @@ -1033,7 +1033,7 @@ interface CloudFormationService$ { options?: HttpHandlerOptions, ): Effect.Effect< ListGeneratedTemplatesCommandOutput, - Cause.TimeoutException | SdkError + Cause.TimeoutError | SdkError >; /** @@ -1044,7 +1044,7 @@ interface CloudFormationService$ { options?: HttpHandlerOptions, ): Effect.Effect< ListHookResultsCommandOutput, - Cause.TimeoutException | SdkError | HookResultNotFoundError + Cause.TimeoutError | SdkError | HookResultNotFoundError >; /** @@ -1055,7 +1055,7 @@ interface CloudFormationService$ { options?: HttpHandlerOptions, ): Effect.Effect< ListImportsCommandOutput, - Cause.TimeoutException | SdkError + Cause.TimeoutError | SdkError >; /** @@ -1066,7 +1066,7 @@ interface CloudFormationService$ { options?: HttpHandlerOptions, ): Effect.Effect< ListResourceScanRelatedResourcesCommandOutput, - Cause.TimeoutException | SdkError | ResourceScanInProgressError | ResourceScanNotFoundError + Cause.TimeoutError | SdkError | ResourceScanInProgressError | ResourceScanNotFoundError >; /** @@ -1077,7 +1077,7 @@ interface CloudFormationService$ { options?: HttpHandlerOptions, ): Effect.Effect< ListResourceScanResourcesCommandOutput, - Cause.TimeoutException | SdkError | ResourceScanInProgressError | ResourceScanNotFoundError + Cause.TimeoutError | SdkError | ResourceScanInProgressError | ResourceScanNotFoundError >; /** @@ -1088,7 +1088,7 @@ interface CloudFormationService$ { options?: HttpHandlerOptions, ): Effect.Effect< ListResourceScansCommandOutput, - Cause.TimeoutException | SdkError + Cause.TimeoutError | SdkError >; /** @@ -1099,7 +1099,7 @@ interface CloudFormationService$ { options?: HttpHandlerOptions, ): Effect.Effect< ListStackInstanceResourceDriftsCommandOutput, - Cause.TimeoutException | SdkError | OperationNotFoundError | StackInstanceNotFoundError | StackSetNotFoundError + Cause.TimeoutError | SdkError | OperationNotFoundError | StackInstanceNotFoundError | StackSetNotFoundError >; /** @@ -1110,7 +1110,7 @@ interface CloudFormationService$ { options?: HttpHandlerOptions, ): Effect.Effect< ListStackInstancesCommandOutput, - Cause.TimeoutException | SdkError | StackSetNotFoundError + Cause.TimeoutError | SdkError | StackSetNotFoundError >; /** @@ -1121,7 +1121,7 @@ interface CloudFormationService$ { options?: HttpHandlerOptions, ): Effect.Effect< ListStackRefactorActionsCommandOutput, - Cause.TimeoutException | SdkError + Cause.TimeoutError | SdkError >; /** @@ -1132,7 +1132,7 @@ interface CloudFormationService$ { options?: HttpHandlerOptions, ): Effect.Effect< ListStackRefactorsCommandOutput, - Cause.TimeoutException | SdkError + Cause.TimeoutError | SdkError >; /** @@ -1143,7 +1143,7 @@ interface CloudFormationService$ { options?: HttpHandlerOptions, ): Effect.Effect< ListStackResourcesCommandOutput, - Cause.TimeoutException | SdkError + Cause.TimeoutError | SdkError >; /** @@ -1154,7 +1154,7 @@ interface CloudFormationService$ { options?: HttpHandlerOptions, ): Effect.Effect< ListStackSetAutoDeploymentTargetsCommandOutput, - Cause.TimeoutException | SdkError | StackSetNotFoundError + Cause.TimeoutError | SdkError | StackSetNotFoundError >; /** @@ -1165,7 +1165,7 @@ interface CloudFormationService$ { options?: HttpHandlerOptions, ): Effect.Effect< ListStackSetOperationResultsCommandOutput, - Cause.TimeoutException | SdkError | OperationNotFoundError | StackSetNotFoundError + Cause.TimeoutError | SdkError | OperationNotFoundError | StackSetNotFoundError >; /** @@ -1176,7 +1176,7 @@ interface CloudFormationService$ { options?: HttpHandlerOptions, ): Effect.Effect< ListStackSetOperationsCommandOutput, - Cause.TimeoutException | SdkError | StackSetNotFoundError + Cause.TimeoutError | SdkError | StackSetNotFoundError >; /** @@ -1187,7 +1187,7 @@ interface CloudFormationService$ { options?: HttpHandlerOptions, ): Effect.Effect< ListStackSetsCommandOutput, - Cause.TimeoutException | SdkError + Cause.TimeoutError | SdkError >; /** @@ -1198,7 +1198,7 @@ interface CloudFormationService$ { options?: HttpHandlerOptions, ): Effect.Effect< ListStacksCommandOutput, - Cause.TimeoutException | SdkError + Cause.TimeoutError | SdkError >; /** @@ -1209,7 +1209,7 @@ interface CloudFormationService$ { options?: HttpHandlerOptions, ): Effect.Effect< ListTypeRegistrationsCommandOutput, - Cause.TimeoutException | SdkError | CFNRegistryError + Cause.TimeoutError | SdkError | CFNRegistryError >; /** @@ -1220,7 +1220,7 @@ interface CloudFormationService$ { options?: HttpHandlerOptions, ): Effect.Effect< ListTypeVersionsCommandOutput, - Cause.TimeoutException | SdkError | CFNRegistryError + Cause.TimeoutError | SdkError | CFNRegistryError >; /** @@ -1231,7 +1231,7 @@ interface CloudFormationService$ { options?: HttpHandlerOptions, ): Effect.Effect< ListTypesCommandOutput, - Cause.TimeoutException | SdkError | CFNRegistryError + Cause.TimeoutError | SdkError | CFNRegistryError >; /** @@ -1242,7 +1242,7 @@ interface CloudFormationService$ { options?: HttpHandlerOptions, ): Effect.Effect< PublishTypeCommandOutput, - Cause.TimeoutException | SdkError | CFNRegistryError | TypeNotFoundError + Cause.TimeoutError | SdkError | CFNRegistryError | TypeNotFoundError >; /** @@ -1253,7 +1253,7 @@ interface CloudFormationService$ { options?: HttpHandlerOptions, ): Effect.Effect< RecordHandlerProgressCommandOutput, - Cause.TimeoutException | SdkError | InvalidStateTransitionError | OperationStatusCheckFailedError + Cause.TimeoutError | SdkError | InvalidStateTransitionError | OperationStatusCheckFailedError >; /** @@ -1264,7 +1264,7 @@ interface CloudFormationService$ { options?: HttpHandlerOptions, ): Effect.Effect< RegisterPublisherCommandOutput, - Cause.TimeoutException | SdkError | CFNRegistryError + Cause.TimeoutError | SdkError | CFNRegistryError >; /** @@ -1275,7 +1275,7 @@ interface CloudFormationService$ { options?: HttpHandlerOptions, ): Effect.Effect< RegisterTypeCommandOutput, - Cause.TimeoutException | SdkError | CFNRegistryError + Cause.TimeoutError | SdkError | CFNRegistryError >; /** @@ -1286,7 +1286,7 @@ interface CloudFormationService$ { options?: HttpHandlerOptions, ): Effect.Effect< RollbackStackCommandOutput, - Cause.TimeoutException | SdkError | TokenAlreadyExistsError + Cause.TimeoutError | SdkError | TokenAlreadyExistsError >; /** @@ -1297,7 +1297,7 @@ interface CloudFormationService$ { options?: HttpHandlerOptions, ): Effect.Effect< SetStackPolicyCommandOutput, - Cause.TimeoutException | SdkError + Cause.TimeoutError | SdkError >; /** @@ -1308,7 +1308,7 @@ interface CloudFormationService$ { options?: HttpHandlerOptions, ): Effect.Effect< SetTypeConfigurationCommandOutput, - Cause.TimeoutException | SdkError | CFNRegistryError | TypeNotFoundError + Cause.TimeoutError | SdkError | CFNRegistryError | TypeNotFoundError >; /** @@ -1319,7 +1319,7 @@ interface CloudFormationService$ { options?: HttpHandlerOptions, ): Effect.Effect< SetTypeDefaultVersionCommandOutput, - Cause.TimeoutException | SdkError | CFNRegistryError | TypeNotFoundError + Cause.TimeoutError | SdkError | CFNRegistryError | TypeNotFoundError >; /** @@ -1330,7 +1330,7 @@ interface CloudFormationService$ { options?: HttpHandlerOptions, ): Effect.Effect< SignalResourceCommandOutput, - Cause.TimeoutException | SdkError + Cause.TimeoutError | SdkError >; /** @@ -1341,7 +1341,7 @@ interface CloudFormationService$ { options?: HttpHandlerOptions, ): Effect.Effect< StartResourceScanCommandOutput, - Cause.TimeoutException | SdkError | ResourceScanInProgressError | ResourceScanLimitExceededError + Cause.TimeoutError | SdkError | ResourceScanInProgressError | ResourceScanLimitExceededError >; /** @@ -1352,7 +1352,7 @@ interface CloudFormationService$ { options?: HttpHandlerOptions, ): Effect.Effect< StopStackSetOperationCommandOutput, - Cause.TimeoutException | SdkError | InvalidOperationError | OperationNotFoundError | StackSetNotFoundError + Cause.TimeoutError | SdkError | InvalidOperationError | OperationNotFoundError | StackSetNotFoundError >; /** @@ -1363,7 +1363,7 @@ interface CloudFormationService$ { options?: HttpHandlerOptions, ): Effect.Effect< TestTypeCommandOutput, - Cause.TimeoutException | SdkError | CFNRegistryError | TypeNotFoundError + Cause.TimeoutError | SdkError | CFNRegistryError | TypeNotFoundError >; /** @@ -1374,7 +1374,7 @@ interface CloudFormationService$ { options?: HttpHandlerOptions, ): Effect.Effect< UpdateGeneratedTemplateCommandOutput, - Cause.TimeoutException | SdkError | AlreadyExistsError | GeneratedTemplateNotFoundError | LimitExceededError + Cause.TimeoutError | SdkError | AlreadyExistsError | GeneratedTemplateNotFoundError | LimitExceededError >; /** @@ -1385,7 +1385,7 @@ interface CloudFormationService$ { options?: HttpHandlerOptions, ): Effect.Effect< UpdateStackCommandOutput, - Cause.TimeoutException | SdkError | InsufficientCapabilitiesError | TokenAlreadyExistsError + Cause.TimeoutError | SdkError | InsufficientCapabilitiesError | TokenAlreadyExistsError >; /** @@ -1396,7 +1396,7 @@ interface CloudFormationService$ { options?: HttpHandlerOptions, ): Effect.Effect< UpdateStackInstancesCommandOutput, - | Cause.TimeoutException + | Cause.TimeoutError | SdkError | InvalidOperationError | OperationIdAlreadyExistsError @@ -1414,7 +1414,7 @@ interface CloudFormationService$ { options?: HttpHandlerOptions, ): Effect.Effect< UpdateStackSetCommandOutput, - | Cause.TimeoutException + | Cause.TimeoutError | SdkError | InvalidOperationError | OperationIdAlreadyExistsError @@ -1432,7 +1432,7 @@ interface CloudFormationService$ { options?: HttpHandlerOptions, ): Effect.Effect< UpdateTerminationProtectionCommandOutput, - Cause.TimeoutException | SdkError + Cause.TimeoutError | SdkError >; /** @@ -1443,7 +1443,7 @@ interface CloudFormationService$ { options?: HttpHandlerOptions, ): Effect.Effect< ValidateTemplateCommandOutput, - Cause.TimeoutException | SdkError + Cause.TimeoutError | SdkError >; } @@ -1468,10 +1468,10 @@ export const makeCloudFormationService = Effect.gen(function*() { * @since 1.0.0 * @category models */ -export class CloudFormationService extends Effect.Tag("@effect-aws/client-cloudformation/CloudFormationService")< +export class CloudFormationService extends ServiceMap.Service< CloudFormationService, CloudFormationService$ ->() { +>()("@effect-aws/client-cloudformation/CloudFormationService") { static readonly defaultLayer = Layer.effect(this, makeCloudFormationService).pipe(Layer.provide(Instance.layer)); static readonly layer = (config: CloudFormationService.Config) => Layer.effect(this, makeCloudFormationService).pipe( diff --git a/packages/client-cloudformation/src/CloudFormationServiceConfig.ts b/packages/client-cloudformation/src/CloudFormationServiceConfig.ts index f7dcc6b2..c3db945a 100644 --- a/packages/client-cloudformation/src/CloudFormationServiceConfig.ts +++ b/packages/client-cloudformation/src/CloudFormationServiceConfig.ts @@ -3,18 +3,17 @@ */ import type { CloudFormationClientConfig } from "@aws-sdk/client-cloudformation"; import { ServiceLogger } from "@effect-aws/commons"; -import { Effect, FiberRef, Layer } from "effect"; +import { Effect, Layer, ServiceMap } from "effect"; import { dual } from "effect/Function"; -import { globalValue } from "effect/GlobalValue"; import type { CloudFormationService } from "./CloudFormationService.js"; /** * @since 1.0.0 * @category cloudformation service config */ -const currentCloudFormationServiceConfig = globalValue( +const currentCloudFormationServiceConfig = ServiceMap.Reference( "@effect-aws/client-cloudformation/currentCloudFormationServiceConfig", - () => FiberRef.unsafeMake({}), + { defaultValue: () => ({}) }, ); /** @@ -27,7 +26,7 @@ export const withCloudFormationServiceConfig: { } = dual( 2, (effect: Effect.Effect, config: CloudFormationService.Config): Effect.Effect => - Effect.locally(effect, currentCloudFormationServiceConfig, config), + Effect.provideService(effect, currentCloudFormationServiceConfig, config), ); /** @@ -35,14 +34,14 @@ export const withCloudFormationServiceConfig: { * @category cloudformation service config */ export const setCloudFormationServiceConfig = (config: CloudFormationService.Config) => - Layer.locallyScoped(currentCloudFormationServiceConfig, config); + Layer.succeed(currentCloudFormationServiceConfig, config); /** * @since 1.0.0 * @category adapters */ export const toCloudFormationClientConfig: Effect.Effect = Effect.gen(function*() { - const { logger: serviceLogger, ...config } = yield* FiberRef.get(currentCloudFormationServiceConfig); + const { logger: serviceLogger, ...config } = yield* currentCloudFormationServiceConfig; const logger = serviceLogger === true ? yield* ServiceLogger.toClientLogger(ServiceLogger.defaultServiceLogger) diff --git a/packages/client-cloudformation/test/CloudFormation.test.ts b/packages/client-cloudformation/test/CloudFormation.test.ts index c8c48eb1..f3ffde4a 100644 --- a/packages/client-cloudformation/test/CloudFormation.test.ts +++ b/packages/client-cloudformation/test/CloudFormation.test.ts @@ -26,7 +26,7 @@ describe("CloudFormationClientImpl", () => { const args = {} as unknown as ListStacksCommandInput; - const program = CloudFormation.listStacks(args); + const program = CloudFormation.use((svc) => svc.listStacks(args)); const result = await pipe( program, @@ -46,7 +46,7 @@ describe("CloudFormationClientImpl", () => { const args = {} as unknown as ListStacksCommandInput; - const program = CloudFormation.listStacks(args); + const program = CloudFormation.use((svc) => svc.listStacks(args)); const result = await pipe( program, @@ -69,7 +69,7 @@ describe("CloudFormationClientImpl", () => { const args = {} as unknown as ListStacksCommandInput; - const program = CloudFormation.listStacks(args); + const program = CloudFormation.use((svc) => svc.listStacks(args)); const result = await pipe( program, @@ -93,7 +93,7 @@ describe("CloudFormationClientImpl", () => { const args = {} as unknown as ListStacksCommandInput; - const program = CloudFormation.listStacks(args); + const program = CloudFormation.use((svc) => svc.listStacks(args)); const result = await pipe( program, @@ -121,7 +121,7 @@ describe("CloudFormationClientImpl", () => { const args = {} as unknown as ListStacksCommandInput; - const program = CloudFormation.listStacks(args); + const program = CloudFormation.use((svc) => svc.listStacks(args)); const result = await pipe( program, @@ -131,7 +131,7 @@ describe("CloudFormationClientImpl", () => { expect(result).toEqual( Exit.fail( - SdkError({ + new SdkError({ ...new Error("test"), name: "SdkError", message: "test", @@ -156,7 +156,7 @@ describe("CloudFormationClientImpl", () => { const args = {} as unknown as ListStacksCommandInput; - const program = CloudFormation.listStacks(args).pipe( + const program = CloudFormation.use((svc) => svc.listStacks(args)).pipe( Effect.catchTag("NotHandledException" as any, () => Effect.succeed(null)), ); @@ -166,9 +166,9 @@ describe("CloudFormationClientImpl", () => { Effect.runPromiseExit, ); - expect(result).toEqual( + expect(result).toContainEqual( Exit.fail( - SdkError({ + new SdkError({ ...new Error("test"), name: "SdkError", message: "test", diff --git a/packages/client-cloudsearch/.projen/deps.json b/packages/client-cloudsearch/.projen/deps.json index c9fd602e..4fbb543c 100644 --- a/packages/client-cloudsearch/.projen/deps.json +++ b/packages/client-cloudsearch/.projen/deps.json @@ -7,6 +7,7 @@ }, { "name": "effect", + "version": "4.0.0-beta.8", "type": "build" }, { @@ -16,7 +17,7 @@ }, { "name": "effect", - "version": ">=3.0.4 <4.0.0", + "version": ">=4.0.0 <5.0.0", "type": "peer" }, { diff --git a/packages/client-cloudsearch/README.md b/packages/client-cloudsearch/README.md index dc5bfbc1..03bc6280 100644 --- a/packages/client-cloudsearch/README.md +++ b/packages/client-cloudsearch/README.md @@ -16,7 +16,7 @@ With default CloudSearchClient instance: ```typescript import { CloudSearch } from "@effect-aws/client-cloudsearch"; -const program = CloudSearch.describeDomains(args); +const program = CloudSearch.use((svc) => svc.describeDomains(args)); const result = pipe( program, @@ -30,7 +30,7 @@ With custom CloudSearchClient instance: ```typescript import { CloudSearch } from "@effect-aws/client-cloudsearch"; -const program = CloudSearch.describeDomains(args); +const program = CloudSearch.use((svc) => svc.describeDomains(args)); const result = await pipe( program, @@ -46,7 +46,7 @@ With custom CloudSearchClient configuration: ```typescript import { CloudSearch } from "@effect-aws/client-cloudsearch"; -const program = CloudSearch.describeDomains(args); +const program = CloudSearch.use((svc) => svc.describeDomains(args)); const result = await pipe( program, diff --git a/packages/client-cloudsearch/package.json b/packages/client-cloudsearch/package.json index c43bd6d1..b235fcd4 100644 --- a/packages/client-cloudsearch/package.json +++ b/packages/client-cloudsearch/package.json @@ -26,11 +26,11 @@ }, "devDependencies": { "@types/node": "ts5.4", - "effect": "^3.16.4", + "effect": "4.0.0-beta.8", "typescript": "^5.4.2" }, "peerDependencies": { - "effect": ">=3.0.4 <4.0.0" + "effect": ">=4.0.0 <5.0.0" }, "dependencies": { "@aws-sdk/client-cloudsearch": "^3", diff --git a/packages/client-cloudsearch/src/CloudSearchClientInstance.ts b/packages/client-cloudsearch/src/CloudSearchClientInstance.ts index e6b5eee8..932fdab3 100644 --- a/packages/client-cloudsearch/src/CloudSearchClientInstance.ts +++ b/packages/client-cloudsearch/src/CloudSearchClientInstance.ts @@ -2,16 +2,16 @@ * @since 1.0.0 */ import { CloudSearchClient } from "@aws-sdk/client-cloudsearch"; -import { Context, Effect, Layer } from "effect"; +import { Effect, Layer, ServiceMap } from "effect"; import * as CloudSearchServiceConfig from "./CloudSearchServiceConfig.js"; /** * @since 1.0.0 * @category tags */ -export class CloudSearchClientInstance extends Context.Tag( +export class CloudSearchClientInstance extends ServiceMap.Service()( "@effect-aws/client-cloudsearch/CloudSearchClientInstance", -)() {} +) {} /** * @since 1.0.0 @@ -30,4 +30,4 @@ export const make = Effect.flatMap( * @since 1.0.0 * @category layers */ -export const layer = Layer.scoped(CloudSearchClientInstance, make); +export const layer = Layer.effect(CloudSearchClientInstance, make); diff --git a/packages/client-cloudsearch/src/CloudSearchService.ts b/packages/client-cloudsearch/src/CloudSearchService.ts index 65c1b57a..740e2aef 100644 --- a/packages/client-cloudsearch/src/CloudSearchService.ts +++ b/packages/client-cloudsearch/src/CloudSearchService.ts @@ -86,7 +86,7 @@ import { import type { HttpHandlerOptions, ServiceLogger } from "@effect-aws/commons"; import { Service } from "@effect-aws/commons"; import type { Cause } from "effect"; -import { Effect, Layer } from "effect"; +import { Effect, Layer, ServiceMap } from "effect"; import * as Instance from "./CloudSearchClientInstance.js"; import * as CloudSearchServiceConfig from "./CloudSearchServiceConfig.js"; import type { @@ -142,7 +142,7 @@ interface CloudSearchService$ { options?: HttpHandlerOptions, ): Effect.Effect< BuildSuggestersCommandOutput, - Cause.TimeoutException | SdkError | BaseError | InternalError | ResourceNotFoundError | ValidationError + Cause.TimeoutError | SdkError | BaseError | InternalError | ResourceNotFoundError | ValidationError >; /** @@ -153,7 +153,7 @@ interface CloudSearchService$ { options?: HttpHandlerOptions, ): Effect.Effect< CreateDomainCommandOutput, - | Cause.TimeoutException + | Cause.TimeoutError | SdkError | BaseError | InternalError @@ -170,7 +170,7 @@ interface CloudSearchService$ { options?: HttpHandlerOptions, ): Effect.Effect< DefineAnalysisSchemeCommandOutput, - | Cause.TimeoutException + | Cause.TimeoutError | SdkError | BaseError | InternalError @@ -188,7 +188,7 @@ interface CloudSearchService$ { options?: HttpHandlerOptions, ): Effect.Effect< DefineExpressionCommandOutput, - | Cause.TimeoutException + | Cause.TimeoutError | SdkError | BaseError | InternalError @@ -206,7 +206,7 @@ interface CloudSearchService$ { options?: HttpHandlerOptions, ): Effect.Effect< DefineIndexFieldCommandOutput, - | Cause.TimeoutException + | Cause.TimeoutError | SdkError | BaseError | InternalError @@ -224,7 +224,7 @@ interface CloudSearchService$ { options?: HttpHandlerOptions, ): Effect.Effect< DefineSuggesterCommandOutput, - | Cause.TimeoutException + | Cause.TimeoutError | SdkError | BaseError | InternalError @@ -242,7 +242,7 @@ interface CloudSearchService$ { options?: HttpHandlerOptions, ): Effect.Effect< DeleteAnalysisSchemeCommandOutput, - | Cause.TimeoutException + | Cause.TimeoutError | SdkError | BaseError | InternalError @@ -259,7 +259,7 @@ interface CloudSearchService$ { options?: HttpHandlerOptions, ): Effect.Effect< DeleteDomainCommandOutput, - Cause.TimeoutException | SdkError | BaseError | InternalError + Cause.TimeoutError | SdkError | BaseError | InternalError >; /** @@ -270,7 +270,7 @@ interface CloudSearchService$ { options?: HttpHandlerOptions, ): Effect.Effect< DeleteExpressionCommandOutput, - | Cause.TimeoutException + | Cause.TimeoutError | SdkError | BaseError | InternalError @@ -287,7 +287,7 @@ interface CloudSearchService$ { options?: HttpHandlerOptions, ): Effect.Effect< DeleteIndexFieldCommandOutput, - | Cause.TimeoutException + | Cause.TimeoutError | SdkError | BaseError | InternalError @@ -304,7 +304,7 @@ interface CloudSearchService$ { options?: HttpHandlerOptions, ): Effect.Effect< DeleteSuggesterCommandOutput, - | Cause.TimeoutException + | Cause.TimeoutError | SdkError | BaseError | InternalError @@ -321,7 +321,7 @@ interface CloudSearchService$ { options?: HttpHandlerOptions, ): Effect.Effect< DescribeAnalysisSchemesCommandOutput, - Cause.TimeoutException | SdkError | BaseError | InternalError | ResourceNotFoundError + Cause.TimeoutError | SdkError | BaseError | InternalError | ResourceNotFoundError >; /** @@ -332,7 +332,7 @@ interface CloudSearchService$ { options?: HttpHandlerOptions, ): Effect.Effect< DescribeAvailabilityOptionsCommandOutput, - | Cause.TimeoutException + | Cause.TimeoutError | SdkError | BaseError | DisabledOperationError @@ -350,7 +350,7 @@ interface CloudSearchService$ { options?: HttpHandlerOptions, ): Effect.Effect< DescribeDomainEndpointOptionsCommandOutput, - | Cause.TimeoutException + | Cause.TimeoutError | SdkError | BaseError | DisabledOperationError @@ -367,7 +367,7 @@ interface CloudSearchService$ { options?: HttpHandlerOptions, ): Effect.Effect< DescribeDomainsCommandOutput, - Cause.TimeoutException | SdkError | BaseError | InternalError + Cause.TimeoutError | SdkError | BaseError | InternalError >; /** @@ -378,7 +378,7 @@ interface CloudSearchService$ { options?: HttpHandlerOptions, ): Effect.Effect< DescribeExpressionsCommandOutput, - Cause.TimeoutException | SdkError | BaseError | InternalError | ResourceNotFoundError + Cause.TimeoutError | SdkError | BaseError | InternalError | ResourceNotFoundError >; /** @@ -389,7 +389,7 @@ interface CloudSearchService$ { options?: HttpHandlerOptions, ): Effect.Effect< DescribeIndexFieldsCommandOutput, - Cause.TimeoutException | SdkError | BaseError | InternalError | ResourceNotFoundError + Cause.TimeoutError | SdkError | BaseError | InternalError | ResourceNotFoundError >; /** @@ -400,7 +400,7 @@ interface CloudSearchService$ { options?: HttpHandlerOptions, ): Effect.Effect< DescribeScalingParametersCommandOutput, - Cause.TimeoutException | SdkError | BaseError | InternalError | ResourceNotFoundError + Cause.TimeoutError | SdkError | BaseError | InternalError | ResourceNotFoundError >; /** @@ -411,7 +411,7 @@ interface CloudSearchService$ { options?: HttpHandlerOptions, ): Effect.Effect< DescribeServiceAccessPoliciesCommandOutput, - Cause.TimeoutException | SdkError | BaseError | InternalError | ResourceNotFoundError + Cause.TimeoutError | SdkError | BaseError | InternalError | ResourceNotFoundError >; /** @@ -422,7 +422,7 @@ interface CloudSearchService$ { options?: HttpHandlerOptions, ): Effect.Effect< DescribeSuggestersCommandOutput, - Cause.TimeoutException | SdkError | BaseError | InternalError | ResourceNotFoundError + Cause.TimeoutError | SdkError | BaseError | InternalError | ResourceNotFoundError >; /** @@ -433,7 +433,7 @@ interface CloudSearchService$ { options?: HttpHandlerOptions, ): Effect.Effect< IndexDocumentsCommandOutput, - Cause.TimeoutException | SdkError | BaseError | InternalError | ResourceNotFoundError | ValidationError + Cause.TimeoutError | SdkError | BaseError | InternalError | ResourceNotFoundError | ValidationError >; /** @@ -444,7 +444,7 @@ interface CloudSearchService$ { options?: HttpHandlerOptions, ): Effect.Effect< ListDomainNamesCommandOutput, - Cause.TimeoutException | SdkError | BaseError + Cause.TimeoutError | SdkError | BaseError >; /** @@ -455,7 +455,7 @@ interface CloudSearchService$ { options?: HttpHandlerOptions, ): Effect.Effect< UpdateAvailabilityOptionsCommandOutput, - | Cause.TimeoutException + | Cause.TimeoutError | SdkError | BaseError | DisabledOperationError @@ -474,7 +474,7 @@ interface CloudSearchService$ { options?: HttpHandlerOptions, ): Effect.Effect< UpdateDomainEndpointOptionsCommandOutput, - | Cause.TimeoutException + | Cause.TimeoutError | SdkError | BaseError | DisabledOperationError @@ -493,7 +493,7 @@ interface CloudSearchService$ { options?: HttpHandlerOptions, ): Effect.Effect< UpdateScalingParametersCommandOutput, - | Cause.TimeoutException + | Cause.TimeoutError | SdkError | BaseError | InternalError @@ -511,7 +511,7 @@ interface CloudSearchService$ { options?: HttpHandlerOptions, ): Effect.Effect< UpdateServiceAccessPoliciesCommandOutput, - | Cause.TimeoutException + | Cause.TimeoutError | SdkError | BaseError | InternalError @@ -543,10 +543,10 @@ export const makeCloudSearchService = Effect.gen(function*() { * @since 1.0.0 * @category models */ -export class CloudSearchService extends Effect.Tag("@effect-aws/client-cloudsearch/CloudSearchService")< +export class CloudSearchService extends ServiceMap.Service< CloudSearchService, CloudSearchService$ ->() { +>()("@effect-aws/client-cloudsearch/CloudSearchService") { static readonly defaultLayer = Layer.effect(this, makeCloudSearchService).pipe(Layer.provide(Instance.layer)); static readonly layer = (config: CloudSearchService.Config) => Layer.effect(this, makeCloudSearchService).pipe( diff --git a/packages/client-cloudsearch/src/CloudSearchServiceConfig.ts b/packages/client-cloudsearch/src/CloudSearchServiceConfig.ts index f62f3abd..021d1954 100644 --- a/packages/client-cloudsearch/src/CloudSearchServiceConfig.ts +++ b/packages/client-cloudsearch/src/CloudSearchServiceConfig.ts @@ -3,18 +3,17 @@ */ import type { CloudSearchClientConfig } from "@aws-sdk/client-cloudsearch"; import { ServiceLogger } from "@effect-aws/commons"; -import { Effect, FiberRef, Layer } from "effect"; +import { Effect, Layer, ServiceMap } from "effect"; import { dual } from "effect/Function"; -import { globalValue } from "effect/GlobalValue"; import type { CloudSearchService } from "./CloudSearchService.js"; /** * @since 1.0.0 * @category cloudsearch service config */ -const currentCloudSearchServiceConfig = globalValue( +const currentCloudSearchServiceConfig = ServiceMap.Reference( "@effect-aws/client-cloudsearch/currentCloudSearchServiceConfig", - () => FiberRef.unsafeMake({}), + { defaultValue: () => ({}) }, ); /** @@ -27,7 +26,7 @@ export const withCloudSearchServiceConfig: { } = dual( 2, (effect: Effect.Effect, config: CloudSearchService.Config): Effect.Effect => - Effect.locally(effect, currentCloudSearchServiceConfig, config), + Effect.provideService(effect, currentCloudSearchServiceConfig, config), ); /** @@ -35,14 +34,14 @@ export const withCloudSearchServiceConfig: { * @category cloudsearch service config */ export const setCloudSearchServiceConfig = (config: CloudSearchService.Config) => - Layer.locallyScoped(currentCloudSearchServiceConfig, config); + Layer.succeed(currentCloudSearchServiceConfig, config); /** * @since 1.0.0 * @category adapters */ export const toCloudSearchClientConfig: Effect.Effect = Effect.gen(function*() { - const { logger: serviceLogger, ...config } = yield* FiberRef.get(currentCloudSearchServiceConfig); + const { logger: serviceLogger, ...config } = yield* currentCloudSearchServiceConfig; const logger = serviceLogger === true ? yield* ServiceLogger.toClientLogger(ServiceLogger.defaultServiceLogger) diff --git a/packages/client-cloudsearch/test/CloudSearch.test.ts b/packages/client-cloudsearch/test/CloudSearch.test.ts index 4dca3698..23b1634b 100644 --- a/packages/client-cloudsearch/test/CloudSearch.test.ts +++ b/packages/client-cloudsearch/test/CloudSearch.test.ts @@ -26,7 +26,7 @@ describe("CloudSearchClientImpl", () => { const args = {} as unknown as DescribeDomainsCommandInput; - const program = CloudSearch.describeDomains(args); + const program = CloudSearch.use((svc) => svc.describeDomains(args)); const result = await pipe( program, @@ -46,7 +46,7 @@ describe("CloudSearchClientImpl", () => { const args = {} as unknown as DescribeDomainsCommandInput; - const program = CloudSearch.describeDomains(args); + const program = CloudSearch.use((svc) => svc.describeDomains(args)); const result = await pipe( program, @@ -69,7 +69,7 @@ describe("CloudSearchClientImpl", () => { const args = {} as unknown as DescribeDomainsCommandInput; - const program = CloudSearch.describeDomains(args); + const program = CloudSearch.use((svc) => svc.describeDomains(args)); const result = await pipe( program, @@ -93,7 +93,7 @@ describe("CloudSearchClientImpl", () => { const args = {} as unknown as DescribeDomainsCommandInput; - const program = CloudSearch.describeDomains(args); + const program = CloudSearch.use((svc) => svc.describeDomains(args)); const result = await pipe( program, @@ -121,7 +121,7 @@ describe("CloudSearchClientImpl", () => { const args = {} as unknown as DescribeDomainsCommandInput; - const program = CloudSearch.describeDomains(args); + const program = CloudSearch.use((svc) => svc.describeDomains(args)); const result = await pipe( program, @@ -131,7 +131,7 @@ describe("CloudSearchClientImpl", () => { expect(result).toEqual( Exit.fail( - SdkError({ + new SdkError({ ...new Error("test"), name: "SdkError", message: "test", @@ -156,7 +156,7 @@ describe("CloudSearchClientImpl", () => { const args = {} as unknown as DescribeDomainsCommandInput; - const program = CloudSearch.describeDomains(args).pipe( + const program = CloudSearch.use((svc) => svc.describeDomains(args)).pipe( Effect.catchTag("NotHandledException" as any, () => Effect.succeed(null)), ); @@ -166,9 +166,9 @@ describe("CloudSearchClientImpl", () => { Effect.runPromiseExit, ); - expect(result).toEqual( + expect(result).toContainEqual( Exit.fail( - SdkError({ + new SdkError({ ...new Error("test"), name: "SdkError", message: "test", diff --git a/packages/client-cloudtrail/.projen/deps.json b/packages/client-cloudtrail/.projen/deps.json index ca08b70c..79fda80f 100644 --- a/packages/client-cloudtrail/.projen/deps.json +++ b/packages/client-cloudtrail/.projen/deps.json @@ -7,6 +7,7 @@ }, { "name": "effect", + "version": "4.0.0-beta.8", "type": "build" }, { @@ -16,7 +17,7 @@ }, { "name": "effect", - "version": ">=3.0.4 <4.0.0", + "version": ">=4.0.0 <5.0.0", "type": "peer" }, { diff --git a/packages/client-cloudtrail/README.md b/packages/client-cloudtrail/README.md index faf25631..f29413c4 100644 --- a/packages/client-cloudtrail/README.md +++ b/packages/client-cloudtrail/README.md @@ -16,7 +16,7 @@ With default CloudTrailClient instance: ```typescript import { CloudTrail } from "@effect-aws/client-cloudtrail"; -const program = CloudTrail.listTrails(args); +const program = CloudTrail.use((svc) => svc.listTrails(args)); const result = pipe( program, @@ -30,7 +30,7 @@ With custom CloudTrailClient instance: ```typescript import { CloudTrail } from "@effect-aws/client-cloudtrail"; -const program = CloudTrail.listTrails(args); +const program = CloudTrail.use((svc) => svc.listTrails(args)); const result = await pipe( program, @@ -46,7 +46,7 @@ With custom CloudTrailClient configuration: ```typescript import { CloudTrail } from "@effect-aws/client-cloudtrail"; -const program = CloudTrail.listTrails(args); +const program = CloudTrail.use((svc) => svc.listTrails(args)); const result = await pipe( program, diff --git a/packages/client-cloudtrail/package.json b/packages/client-cloudtrail/package.json index 28dc7186..778fb343 100644 --- a/packages/client-cloudtrail/package.json +++ b/packages/client-cloudtrail/package.json @@ -26,11 +26,11 @@ }, "devDependencies": { "@types/node": "ts5.4", - "effect": "^3.16.4", + "effect": "4.0.0-beta.8", "typescript": "^5.4.2" }, "peerDependencies": { - "effect": ">=3.0.4 <4.0.0" + "effect": ">=4.0.0 <5.0.0" }, "dependencies": { "@aws-sdk/client-cloudtrail": "^3", diff --git a/packages/client-cloudtrail/src/CloudTrailClientInstance.ts b/packages/client-cloudtrail/src/CloudTrailClientInstance.ts index d83f720a..bf84d1d2 100644 --- a/packages/client-cloudtrail/src/CloudTrailClientInstance.ts +++ b/packages/client-cloudtrail/src/CloudTrailClientInstance.ts @@ -2,16 +2,16 @@ * @since 1.0.0 */ import { CloudTrailClient } from "@aws-sdk/client-cloudtrail"; -import { Context, Effect, Layer } from "effect"; +import { Effect, Layer, ServiceMap } from "effect"; import * as CloudTrailServiceConfig from "./CloudTrailServiceConfig.js"; /** * @since 1.0.0 * @category tags */ -export class CloudTrailClientInstance extends Context.Tag( +export class CloudTrailClientInstance extends ServiceMap.Service()( "@effect-aws/client-cloudtrail/CloudTrailClientInstance", -)() {} +) {} /** * @since 1.0.0 @@ -30,4 +30,4 @@ export const make = Effect.flatMap( * @since 1.0.0 * @category layers */ -export const layer = Layer.scoped(CloudTrailClientInstance, make); +export const layer = Layer.effect(CloudTrailClientInstance, make); diff --git a/packages/client-cloudtrail/src/CloudTrailService.ts b/packages/client-cloudtrail/src/CloudTrailService.ts index de1dcc0c..10cd3bba 100644 --- a/packages/client-cloudtrail/src/CloudTrailService.ts +++ b/packages/client-cloudtrail/src/CloudTrailService.ts @@ -188,7 +188,7 @@ import { import type { HttpHandlerOptions, ServiceLogger } from "@effect-aws/commons"; import { Service } from "@effect-aws/commons"; import type { Cause } from "effect"; -import { Effect, Layer } from "effect"; +import { Effect, Layer, ServiceMap } from "effect"; import * as Instance from "./CloudTrailClientInstance.js"; import * as CloudTrailServiceConfig from "./CloudTrailServiceConfig.js"; import type { @@ -356,7 +356,7 @@ interface CloudTrailService$ { options?: HttpHandlerOptions, ): Effect.Effect< AddTagsCommandOutput, - | Cause.TimeoutException + | Cause.TimeoutError | SdkError | ChannelARNInvalidError | ChannelNotFoundError @@ -384,7 +384,7 @@ interface CloudTrailService$ { options?: HttpHandlerOptions, ): Effect.Effect< CancelQueryCommandOutput, - | Cause.TimeoutException + | Cause.TimeoutError | SdkError | ConflictError | EventDataStoreARNInvalidError @@ -406,7 +406,7 @@ interface CloudTrailService$ { options?: HttpHandlerOptions, ): Effect.Effect< CreateChannelCommandOutput, - | Cause.TimeoutException + | Cause.TimeoutError | SdkError | ChannelAlreadyExistsError | ChannelMaxLimitExceededError @@ -430,7 +430,7 @@ interface CloudTrailService$ { options?: HttpHandlerOptions, ): Effect.Effect< CreateDashboardCommandOutput, - | Cause.TimeoutException + | Cause.TimeoutError | SdkError | ConflictError | EventDataStoreNotFoundError @@ -450,7 +450,7 @@ interface CloudTrailService$ { options?: HttpHandlerOptions, ): Effect.Effect< CreateEventDataStoreCommandOutput, - | Cause.TimeoutException + | Cause.TimeoutError | SdkError | CloudTrailAccessNotEnabledError | ConflictError @@ -481,7 +481,7 @@ interface CloudTrailService$ { options?: HttpHandlerOptions, ): Effect.Effect< CreateTrailCommandOutput, - | Cause.TimeoutException + | Cause.TimeoutError | SdkError | CloudTrailAccessNotEnabledError | CloudTrailInvalidClientTokenIdError @@ -526,7 +526,7 @@ interface CloudTrailService$ { options?: HttpHandlerOptions, ): Effect.Effect< DeleteChannelCommandOutput, - | Cause.TimeoutException + | Cause.TimeoutError | SdkError | ChannelARNInvalidError | ChannelNotFoundError @@ -542,7 +542,7 @@ interface CloudTrailService$ { options?: HttpHandlerOptions, ): Effect.Effect< DeleteDashboardCommandOutput, - Cause.TimeoutException | SdkError | ConflictError | ResourceNotFoundError | UnsupportedOperationError + Cause.TimeoutError | SdkError | ConflictError | ResourceNotFoundError | UnsupportedOperationError >; /** @@ -553,7 +553,7 @@ interface CloudTrailService$ { options?: HttpHandlerOptions, ): Effect.Effect< DeleteEventDataStoreCommandOutput, - | Cause.TimeoutException + | Cause.TimeoutError | SdkError | ChannelExistsForEDSError | ConflictError @@ -579,7 +579,7 @@ interface CloudTrailService$ { options?: HttpHandlerOptions, ): Effect.Effect< DeleteResourcePolicyCommandOutput, - | Cause.TimeoutException + | Cause.TimeoutError | SdkError | ConflictError | OperationNotPermittedError @@ -598,7 +598,7 @@ interface CloudTrailService$ { options?: HttpHandlerOptions, ): Effect.Effect< DeleteTrailCommandOutput, - | Cause.TimeoutException + | Cause.TimeoutError | SdkError | CloudTrailARNInvalidError | ConflictError @@ -621,7 +621,7 @@ interface CloudTrailService$ { options?: HttpHandlerOptions, ): Effect.Effect< DeregisterOrganizationDelegatedAdminCommandOutput, - | Cause.TimeoutException + | Cause.TimeoutError | SdkError | AccountNotFoundError | AccountNotRegisteredError @@ -644,7 +644,7 @@ interface CloudTrailService$ { options?: HttpHandlerOptions, ): Effect.Effect< DescribeQueryCommandOutput, - | Cause.TimeoutException + | Cause.TimeoutError | SdkError | EventDataStoreARNInvalidError | EventDataStoreNotFoundError @@ -664,7 +664,7 @@ interface CloudTrailService$ { options?: HttpHandlerOptions, ): Effect.Effect< DescribeTrailsCommandOutput, - | Cause.TimeoutException + | Cause.TimeoutError | SdkError | CloudTrailARNInvalidError | InvalidTrailNameError @@ -681,7 +681,7 @@ interface CloudTrailService$ { options?: HttpHandlerOptions, ): Effect.Effect< DisableFederationCommandOutput, - | Cause.TimeoutException + | Cause.TimeoutError | SdkError | AccessDeniedError | CloudTrailAccessNotEnabledError @@ -707,7 +707,7 @@ interface CloudTrailService$ { options?: HttpHandlerOptions, ): Effect.Effect< EnableFederationCommandOutput, - | Cause.TimeoutException + | Cause.TimeoutError | SdkError | AccessDeniedError | CloudTrailAccessNotEnabledError @@ -734,7 +734,7 @@ interface CloudTrailService$ { options?: HttpHandlerOptions, ): Effect.Effect< GenerateQueryCommandOutput, - | Cause.TimeoutException + | Cause.TimeoutError | SdkError | EventDataStoreARNInvalidError | EventDataStoreNotFoundError @@ -754,7 +754,7 @@ interface CloudTrailService$ { options?: HttpHandlerOptions, ): Effect.Effect< GetChannelCommandOutput, - | Cause.TimeoutException + | Cause.TimeoutError | SdkError | ChannelARNInvalidError | ChannelNotFoundError @@ -770,7 +770,7 @@ interface CloudTrailService$ { options?: HttpHandlerOptions, ): Effect.Effect< GetDashboardCommandOutput, - Cause.TimeoutException | SdkError | ResourceNotFoundError | UnsupportedOperationError + Cause.TimeoutError | SdkError | ResourceNotFoundError | UnsupportedOperationError >; /** @@ -781,7 +781,7 @@ interface CloudTrailService$ { options?: HttpHandlerOptions, ): Effect.Effect< GetEventConfigurationCommandOutput, - | Cause.TimeoutException + | Cause.TimeoutError | SdkError | CloudTrailARNInvalidError | EventDataStoreARNInvalidError @@ -805,7 +805,7 @@ interface CloudTrailService$ { options?: HttpHandlerOptions, ): Effect.Effect< GetEventDataStoreCommandOutput, - | Cause.TimeoutException + | Cause.TimeoutError | SdkError | EventDataStoreARNInvalidError | EventDataStoreNotFoundError @@ -823,7 +823,7 @@ interface CloudTrailService$ { options?: HttpHandlerOptions, ): Effect.Effect< GetEventSelectorsCommandOutput, - | Cause.TimeoutException + | Cause.TimeoutError | SdkError | CloudTrailARNInvalidError | InvalidTrailNameError @@ -841,7 +841,7 @@ interface CloudTrailService$ { options?: HttpHandlerOptions, ): Effect.Effect< GetImportCommandOutput, - | Cause.TimeoutException + | Cause.TimeoutError | SdkError | ImportNotFoundError | InvalidParameterError @@ -857,7 +857,7 @@ interface CloudTrailService$ { options?: HttpHandlerOptions, ): Effect.Effect< GetInsightSelectorsCommandOutput, - | Cause.TimeoutException + | Cause.TimeoutError | SdkError | CloudTrailARNInvalidError | InsightNotEnabledError @@ -879,7 +879,7 @@ interface CloudTrailService$ { options?: HttpHandlerOptions, ): Effect.Effect< GetQueryResultsCommandOutput, - | Cause.TimeoutException + | Cause.TimeoutError | SdkError | EventDataStoreARNInvalidError | EventDataStoreNotFoundError @@ -902,7 +902,7 @@ interface CloudTrailService$ { options?: HttpHandlerOptions, ): Effect.Effect< GetResourcePolicyCommandOutput, - | Cause.TimeoutException + | Cause.TimeoutError | SdkError | OperationNotPermittedError | ResourceARNNotValidError @@ -920,7 +920,7 @@ interface CloudTrailService$ { options?: HttpHandlerOptions, ): Effect.Effect< GetTrailCommandOutput, - | Cause.TimeoutException + | Cause.TimeoutError | SdkError | CloudTrailARNInvalidError | InvalidTrailNameError @@ -937,7 +937,7 @@ interface CloudTrailService$ { options?: HttpHandlerOptions, ): Effect.Effect< GetTrailStatusCommandOutput, - | Cause.TimeoutException + | Cause.TimeoutError | SdkError | CloudTrailARNInvalidError | InvalidTrailNameError @@ -954,7 +954,7 @@ interface CloudTrailService$ { options?: HttpHandlerOptions, ): Effect.Effect< ListChannelsCommandOutput, - Cause.TimeoutException | SdkError | InvalidNextTokenError | OperationNotPermittedError | UnsupportedOperationError + Cause.TimeoutError | SdkError | InvalidNextTokenError | OperationNotPermittedError | UnsupportedOperationError >; /** @@ -965,7 +965,7 @@ interface CloudTrailService$ { options?: HttpHandlerOptions, ): Effect.Effect< ListDashboardsCommandOutput, - Cause.TimeoutException | SdkError | UnsupportedOperationError + Cause.TimeoutError | SdkError | UnsupportedOperationError >; /** @@ -976,7 +976,7 @@ interface CloudTrailService$ { options?: HttpHandlerOptions, ): Effect.Effect< ListEventDataStoresCommandOutput, - | Cause.TimeoutException + | Cause.TimeoutError | SdkError | InvalidMaxResultsError | InvalidNextTokenError @@ -993,7 +993,7 @@ interface CloudTrailService$ { options?: HttpHandlerOptions, ): Effect.Effect< ListImportFailuresCommandOutput, - | Cause.TimeoutException + | Cause.TimeoutError | SdkError | InvalidNextTokenError | InvalidParameterError @@ -1009,7 +1009,7 @@ interface CloudTrailService$ { options?: HttpHandlerOptions, ): Effect.Effect< ListImportsCommandOutput, - | Cause.TimeoutException + | Cause.TimeoutError | SdkError | EventDataStoreARNInvalidError | InvalidNextTokenError @@ -1026,7 +1026,7 @@ interface CloudTrailService$ { options?: HttpHandlerOptions, ): Effect.Effect< ListInsightsDataCommandOutput, - Cause.TimeoutException | SdkError | InvalidParameterError | OperationNotPermittedError | UnsupportedOperationError + Cause.TimeoutError | SdkError | InvalidParameterError | OperationNotPermittedError | UnsupportedOperationError >; /** @@ -1037,7 +1037,7 @@ interface CloudTrailService$ { options?: HttpHandlerOptions, ): Effect.Effect< ListInsightsMetricDataCommandOutput, - | Cause.TimeoutException + | Cause.TimeoutError | SdkError | InvalidParameterError | InvalidTrailNameError @@ -1053,7 +1053,7 @@ interface CloudTrailService$ { options?: HttpHandlerOptions, ): Effect.Effect< ListPublicKeysCommandOutput, - | Cause.TimeoutException + | Cause.TimeoutError | SdkError | InvalidTimeRangeError | InvalidTokenError @@ -1069,7 +1069,7 @@ interface CloudTrailService$ { options?: HttpHandlerOptions, ): Effect.Effect< ListQueriesCommandOutput, - | Cause.TimeoutException + | Cause.TimeoutError | SdkError | EventDataStoreARNInvalidError | EventDataStoreNotFoundError @@ -1092,7 +1092,7 @@ interface CloudTrailService$ { options?: HttpHandlerOptions, ): Effect.Effect< ListTagsCommandOutput, - | Cause.TimeoutException + | Cause.TimeoutError | SdkError | ChannelARNInvalidError | CloudTrailARNInvalidError @@ -1116,7 +1116,7 @@ interface CloudTrailService$ { options?: HttpHandlerOptions, ): Effect.Effect< ListTrailsCommandOutput, - Cause.TimeoutException | SdkError | OperationNotPermittedError | UnsupportedOperationError + Cause.TimeoutError | SdkError | OperationNotPermittedError | UnsupportedOperationError >; /** @@ -1127,7 +1127,7 @@ interface CloudTrailService$ { options?: HttpHandlerOptions, ): Effect.Effect< LookupEventsCommandOutput, - | Cause.TimeoutException + | Cause.TimeoutError | SdkError | InvalidEventCategoryError | InvalidLookupAttributesError @@ -1146,7 +1146,7 @@ interface CloudTrailService$ { options?: HttpHandlerOptions, ): Effect.Effect< PutEventConfigurationCommandOutput, - | Cause.TimeoutException + | Cause.TimeoutError | SdkError | CloudTrailARNInvalidError | ConflictError @@ -1177,7 +1177,7 @@ interface CloudTrailService$ { options?: HttpHandlerOptions, ): Effect.Effect< PutEventSelectorsCommandOutput, - | Cause.TimeoutException + | Cause.TimeoutError | SdkError | CloudTrailARNInvalidError | ConflictError @@ -1201,7 +1201,7 @@ interface CloudTrailService$ { options?: HttpHandlerOptions, ): Effect.Effect< PutInsightSelectorsCommandOutput, - | Cause.TimeoutException + | Cause.TimeoutError | SdkError | CloudTrailARNInvalidError | InsufficientEncryptionPolicyError @@ -1229,7 +1229,7 @@ interface CloudTrailService$ { options?: HttpHandlerOptions, ): Effect.Effect< PutResourcePolicyCommandOutput, - | Cause.TimeoutException + | Cause.TimeoutError | SdkError | ConflictError | OperationNotPermittedError @@ -1248,7 +1248,7 @@ interface CloudTrailService$ { options?: HttpHandlerOptions, ): Effect.Effect< RegisterOrganizationDelegatedAdminCommandOutput, - | Cause.TimeoutException + | Cause.TimeoutError | SdkError | AccountNotFoundError | AccountRegisteredError @@ -1274,7 +1274,7 @@ interface CloudTrailService$ { options?: HttpHandlerOptions, ): Effect.Effect< RemoveTagsCommandOutput, - | Cause.TimeoutException + | Cause.TimeoutError | SdkError | ChannelARNInvalidError | ChannelNotFoundError @@ -1301,7 +1301,7 @@ interface CloudTrailService$ { options?: HttpHandlerOptions, ): Effect.Effect< RestoreEventDataStoreCommandOutput, - | Cause.TimeoutException + | Cause.TimeoutError | SdkError | CloudTrailAccessNotEnabledError | EventDataStoreARNInvalidError @@ -1326,7 +1326,7 @@ interface CloudTrailService$ { options?: HttpHandlerOptions, ): Effect.Effect< SearchSampleQueriesCommandOutput, - Cause.TimeoutException | SdkError | InvalidParameterError | OperationNotPermittedError | UnsupportedOperationError + Cause.TimeoutError | SdkError | InvalidParameterError | OperationNotPermittedError | UnsupportedOperationError >; /** @@ -1337,7 +1337,7 @@ interface CloudTrailService$ { options?: HttpHandlerOptions, ): Effect.Effect< StartDashboardRefreshCommandOutput, - | Cause.TimeoutException + | Cause.TimeoutError | SdkError | EventDataStoreNotFoundError | InactiveEventDataStoreError @@ -1354,7 +1354,7 @@ interface CloudTrailService$ { options?: HttpHandlerOptions, ): Effect.Effect< StartEventDataStoreIngestionCommandOutput, - | Cause.TimeoutException + | Cause.TimeoutError | SdkError | ConflictError | EventDataStoreARNInvalidError @@ -1377,7 +1377,7 @@ interface CloudTrailService$ { options?: HttpHandlerOptions, ): Effect.Effect< StartImportCommandOutput, - | Cause.TimeoutException + | Cause.TimeoutError | SdkError | AccountHasOngoingImportError | EventDataStoreARNInvalidError @@ -1401,7 +1401,7 @@ interface CloudTrailService$ { options?: HttpHandlerOptions, ): Effect.Effect< StartLoggingCommandOutput, - | Cause.TimeoutException + | Cause.TimeoutError | SdkError | CloudTrailARNInvalidError | ConflictError @@ -1424,7 +1424,7 @@ interface CloudTrailService$ { options?: HttpHandlerOptions, ): Effect.Effect< StartQueryCommandOutput, - | Cause.TimeoutException + | Cause.TimeoutError | SdkError | EventDataStoreARNInvalidError | EventDataStoreNotFoundError @@ -1450,7 +1450,7 @@ interface CloudTrailService$ { options?: HttpHandlerOptions, ): Effect.Effect< StopEventDataStoreIngestionCommandOutput, - | Cause.TimeoutException + | Cause.TimeoutError | SdkError | ConflictError | EventDataStoreARNInvalidError @@ -1473,7 +1473,7 @@ interface CloudTrailService$ { options?: HttpHandlerOptions, ): Effect.Effect< StopImportCommandOutput, - | Cause.TimeoutException + | Cause.TimeoutError | SdkError | ImportNotFoundError | InvalidParameterError @@ -1489,7 +1489,7 @@ interface CloudTrailService$ { options?: HttpHandlerOptions, ): Effect.Effect< StopLoggingCommandOutput, - | Cause.TimeoutException + | Cause.TimeoutError | SdkError | CloudTrailARNInvalidError | ConflictError @@ -1512,7 +1512,7 @@ interface CloudTrailService$ { options?: HttpHandlerOptions, ): Effect.Effect< UpdateChannelCommandOutput, - | Cause.TimeoutException + | Cause.TimeoutError | SdkError | ChannelAlreadyExistsError | ChannelARNInvalidError @@ -1534,7 +1534,7 @@ interface CloudTrailService$ { options?: HttpHandlerOptions, ): Effect.Effect< UpdateDashboardCommandOutput, - | Cause.TimeoutException + | Cause.TimeoutError | SdkError | ConflictError | EventDataStoreNotFoundError @@ -1554,7 +1554,7 @@ interface CloudTrailService$ { options?: HttpHandlerOptions, ): Effect.Effect< UpdateEventDataStoreCommandOutput, - | Cause.TimeoutException + | Cause.TimeoutError | SdkError | CloudTrailAccessNotEnabledError | ConflictError @@ -1588,7 +1588,7 @@ interface CloudTrailService$ { options?: HttpHandlerOptions, ): Effect.Effect< UpdateTrailCommandOutput, - | Cause.TimeoutException + | Cause.TimeoutError | SdkError | CloudTrailAccessNotEnabledError | CloudTrailARNInvalidError @@ -1647,10 +1647,10 @@ export const makeCloudTrailService = Effect.gen(function*() { * @since 1.0.0 * @category models */ -export class CloudTrailService extends Effect.Tag("@effect-aws/client-cloudtrail/CloudTrailService")< +export class CloudTrailService extends ServiceMap.Service< CloudTrailService, CloudTrailService$ ->() { +>()("@effect-aws/client-cloudtrail/CloudTrailService") { static readonly defaultLayer = Layer.effect(this, makeCloudTrailService).pipe(Layer.provide(Instance.layer)); static readonly layer = (config: CloudTrailService.Config) => Layer.effect(this, makeCloudTrailService).pipe( diff --git a/packages/client-cloudtrail/src/CloudTrailServiceConfig.ts b/packages/client-cloudtrail/src/CloudTrailServiceConfig.ts index 2e28c4d1..8de38ff2 100644 --- a/packages/client-cloudtrail/src/CloudTrailServiceConfig.ts +++ b/packages/client-cloudtrail/src/CloudTrailServiceConfig.ts @@ -3,18 +3,17 @@ */ import type { CloudTrailClientConfig } from "@aws-sdk/client-cloudtrail"; import { ServiceLogger } from "@effect-aws/commons"; -import { Effect, FiberRef, Layer } from "effect"; +import { Effect, Layer, ServiceMap } from "effect"; import { dual } from "effect/Function"; -import { globalValue } from "effect/GlobalValue"; import type { CloudTrailService } from "./CloudTrailService.js"; /** * @since 1.0.0 * @category cloudtrail service config */ -const currentCloudTrailServiceConfig = globalValue( +const currentCloudTrailServiceConfig = ServiceMap.Reference( "@effect-aws/client-cloudtrail/currentCloudTrailServiceConfig", - () => FiberRef.unsafeMake({}), + { defaultValue: () => ({}) }, ); /** @@ -27,7 +26,7 @@ export const withCloudTrailServiceConfig: { } = dual( 2, (effect: Effect.Effect, config: CloudTrailService.Config): Effect.Effect => - Effect.locally(effect, currentCloudTrailServiceConfig, config), + Effect.provideService(effect, currentCloudTrailServiceConfig, config), ); /** @@ -35,14 +34,14 @@ export const withCloudTrailServiceConfig: { * @category cloudtrail service config */ export const setCloudTrailServiceConfig = (config: CloudTrailService.Config) => - Layer.locallyScoped(currentCloudTrailServiceConfig, config); + Layer.succeed(currentCloudTrailServiceConfig, config); /** * @since 1.0.0 * @category adapters */ export const toCloudTrailClientConfig: Effect.Effect = Effect.gen(function*() { - const { logger: serviceLogger, ...config } = yield* FiberRef.get(currentCloudTrailServiceConfig); + const { logger: serviceLogger, ...config } = yield* currentCloudTrailServiceConfig; const logger = serviceLogger === true ? yield* ServiceLogger.toClientLogger(ServiceLogger.defaultServiceLogger) diff --git a/packages/client-cloudtrail/test/CloudTrail.test.ts b/packages/client-cloudtrail/test/CloudTrail.test.ts index b88a668b..cb33ebbb 100644 --- a/packages/client-cloudtrail/test/CloudTrail.test.ts +++ b/packages/client-cloudtrail/test/CloudTrail.test.ts @@ -26,7 +26,7 @@ describe("CloudTrailClientImpl", () => { const args = {} as unknown as ListTrailsCommandInput; - const program = CloudTrail.listTrails(args); + const program = CloudTrail.use((svc) => svc.listTrails(args)); const result = await pipe( program, @@ -46,7 +46,7 @@ describe("CloudTrailClientImpl", () => { const args = {} as unknown as ListTrailsCommandInput; - const program = CloudTrail.listTrails(args); + const program = CloudTrail.use((svc) => svc.listTrails(args)); const result = await pipe( program, @@ -69,7 +69,7 @@ describe("CloudTrailClientImpl", () => { const args = {} as unknown as ListTrailsCommandInput; - const program = CloudTrail.listTrails(args); + const program = CloudTrail.use((svc) => svc.listTrails(args)); const result = await pipe( program, @@ -93,7 +93,7 @@ describe("CloudTrailClientImpl", () => { const args = {} as unknown as ListTrailsCommandInput; - const program = CloudTrail.listTrails(args); + const program = CloudTrail.use((svc) => svc.listTrails(args)); const result = await pipe( program, @@ -121,7 +121,7 @@ describe("CloudTrailClientImpl", () => { const args = {} as unknown as ListTrailsCommandInput; - const program = CloudTrail.listTrails(args); + const program = CloudTrail.use((svc) => svc.listTrails(args)); const result = await pipe( program, @@ -131,7 +131,7 @@ describe("CloudTrailClientImpl", () => { expect(result).toEqual( Exit.fail( - SdkError({ + new SdkError({ ...new Error("test"), name: "SdkError", message: "test", @@ -156,7 +156,7 @@ describe("CloudTrailClientImpl", () => { const args = {} as unknown as ListTrailsCommandInput; - const program = CloudTrail.listTrails(args).pipe( + const program = CloudTrail.use((svc) => svc.listTrails(args)).pipe( Effect.catchTag("NotHandledException" as any, () => Effect.succeed(null)), ); @@ -166,9 +166,9 @@ describe("CloudTrailClientImpl", () => { Effect.runPromiseExit, ); - expect(result).toEqual( + expect(result).toContainEqual( Exit.fail( - SdkError({ + new SdkError({ ...new Error("test"), name: "SdkError", message: "test", diff --git a/packages/client-cloudwatch-events/.projen/deps.json b/packages/client-cloudwatch-events/.projen/deps.json index 51b6466d..e2526cd5 100644 --- a/packages/client-cloudwatch-events/.projen/deps.json +++ b/packages/client-cloudwatch-events/.projen/deps.json @@ -7,6 +7,7 @@ }, { "name": "effect", + "version": "4.0.0-beta.8", "type": "build" }, { @@ -16,7 +17,7 @@ }, { "name": "effect", - "version": ">=3.0.4 <4.0.0", + "version": ">=4.0.0 <5.0.0", "type": "peer" }, { diff --git a/packages/client-cloudwatch-events/README.md b/packages/client-cloudwatch-events/README.md index c41255cd..a6646e47 100644 --- a/packages/client-cloudwatch-events/README.md +++ b/packages/client-cloudwatch-events/README.md @@ -16,7 +16,7 @@ With default CloudWatchEventsClient instance: ```typescript import { CloudWatchEvents } from "@effect-aws/client-cloudwatch-events"; -const program = CloudWatchEvents.listRules(args); +const program = CloudWatchEvents.use((svc) => svc.listRules(args)); const result = pipe( program, @@ -30,7 +30,7 @@ With custom CloudWatchEventsClient instance: ```typescript import { CloudWatchEvents } from "@effect-aws/client-cloudwatch-events"; -const program = CloudWatchEvents.listRules(args); +const program = CloudWatchEvents.use((svc) => svc.listRules(args)); const result = await pipe( program, @@ -46,7 +46,7 @@ With custom CloudWatchEventsClient configuration: ```typescript import { CloudWatchEvents } from "@effect-aws/client-cloudwatch-events"; -const program = CloudWatchEvents.listRules(args); +const program = CloudWatchEvents.use((svc) => svc.listRules(args)); const result = await pipe( program, diff --git a/packages/client-cloudwatch-events/package.json b/packages/client-cloudwatch-events/package.json index 604376ff..efc1f6a4 100644 --- a/packages/client-cloudwatch-events/package.json +++ b/packages/client-cloudwatch-events/package.json @@ -26,11 +26,11 @@ }, "devDependencies": { "@types/node": "ts5.4", - "effect": "^3.16.4", + "effect": "4.0.0-beta.8", "typescript": "^5.4.2" }, "peerDependencies": { - "effect": ">=3.0.4 <4.0.0" + "effect": ">=4.0.0 <5.0.0" }, "dependencies": { "@aws-sdk/client-cloudwatch-events": "^3", diff --git a/packages/client-cloudwatch-events/src/CloudWatchEventsClientInstance.ts b/packages/client-cloudwatch-events/src/CloudWatchEventsClientInstance.ts index 27481885..556f412e 100644 --- a/packages/client-cloudwatch-events/src/CloudWatchEventsClientInstance.ts +++ b/packages/client-cloudwatch-events/src/CloudWatchEventsClientInstance.ts @@ -2,16 +2,18 @@ * @since 1.0.0 */ import { CloudWatchEventsClient } from "@aws-sdk/client-cloudwatch-events"; -import { Context, Effect, Layer } from "effect"; +import { Effect, Layer, ServiceMap } from "effect"; import * as CloudWatchEventsServiceConfig from "./CloudWatchEventsServiceConfig.js"; /** * @since 1.0.0 * @category tags */ -export class CloudWatchEventsClientInstance extends Context.Tag( - "@effect-aws/client-cloudwatch-events/CloudWatchEventsClientInstance", -)() {} +export class CloudWatchEventsClientInstance + extends ServiceMap.Service()( + "@effect-aws/client-cloudwatch-events/CloudWatchEventsClientInstance", + ) +{} /** * @since 1.0.0 @@ -30,4 +32,4 @@ export const make = Effect.flatMap( * @since 1.0.0 * @category layers */ -export const layer = Layer.scoped(CloudWatchEventsClientInstance, make); +export const layer = Layer.effect(CloudWatchEventsClientInstance, make); diff --git a/packages/client-cloudwatch-events/src/CloudWatchEventsService.ts b/packages/client-cloudwatch-events/src/CloudWatchEventsService.ts index 5eec7d81..fc81b6aa 100644 --- a/packages/client-cloudwatch-events/src/CloudWatchEventsService.ts +++ b/packages/client-cloudwatch-events/src/CloudWatchEventsService.ts @@ -161,7 +161,7 @@ import { import type { HttpHandlerOptions, ServiceLogger } from "@effect-aws/commons"; import { Service } from "@effect-aws/commons"; import type { Cause } from "effect"; -import { Effect, Layer } from "effect"; +import { Effect, Layer, ServiceMap } from "effect"; import * as Instance from "./CloudWatchEventsClientInstance.js"; import * as CloudWatchEventsServiceConfig from "./CloudWatchEventsServiceConfig.js"; import type { @@ -245,7 +245,7 @@ interface CloudWatchEventsService$ { options?: HttpHandlerOptions, ): Effect.Effect< ActivateEventSourceCommandOutput, - | Cause.TimeoutException + | Cause.TimeoutError | SdkError | ConcurrentModificationError | InternalError @@ -262,7 +262,7 @@ interface CloudWatchEventsService$ { options?: HttpHandlerOptions, ): Effect.Effect< CancelReplayCommandOutput, - | Cause.TimeoutException + | Cause.TimeoutError | SdkError | ConcurrentModificationError | IllegalStatusError @@ -278,7 +278,7 @@ interface CloudWatchEventsService$ { options?: HttpHandlerOptions, ): Effect.Effect< CreateApiDestinationCommandOutput, - | Cause.TimeoutException + | Cause.TimeoutError | SdkError | InternalError | LimitExceededError @@ -294,7 +294,7 @@ interface CloudWatchEventsService$ { options?: HttpHandlerOptions, ): Effect.Effect< CreateArchiveCommandOutput, - | Cause.TimeoutException + | Cause.TimeoutError | SdkError | ConcurrentModificationError | InternalError @@ -312,7 +312,7 @@ interface CloudWatchEventsService$ { options?: HttpHandlerOptions, ): Effect.Effect< CreateConnectionCommandOutput, - Cause.TimeoutException | SdkError | InternalError | LimitExceededError | ResourceAlreadyExistsError + Cause.TimeoutError | SdkError | InternalError | LimitExceededError | ResourceAlreadyExistsError >; /** @@ -323,7 +323,7 @@ interface CloudWatchEventsService$ { options?: HttpHandlerOptions, ): Effect.Effect< CreateEventBusCommandOutput, - | Cause.TimeoutException + | Cause.TimeoutError | SdkError | ConcurrentModificationError | InternalError @@ -342,7 +342,7 @@ interface CloudWatchEventsService$ { options?: HttpHandlerOptions, ): Effect.Effect< CreatePartnerEventSourceCommandOutput, - | Cause.TimeoutException + | Cause.TimeoutError | SdkError | ConcurrentModificationError | InternalError @@ -359,7 +359,7 @@ interface CloudWatchEventsService$ { options?: HttpHandlerOptions, ): Effect.Effect< DeactivateEventSourceCommandOutput, - | Cause.TimeoutException + | Cause.TimeoutError | SdkError | ConcurrentModificationError | InternalError @@ -376,7 +376,7 @@ interface CloudWatchEventsService$ { options?: HttpHandlerOptions, ): Effect.Effect< DeauthorizeConnectionCommandOutput, - Cause.TimeoutException | SdkError | ConcurrentModificationError | InternalError | ResourceNotFoundError + Cause.TimeoutError | SdkError | ConcurrentModificationError | InternalError | ResourceNotFoundError >; /** @@ -387,7 +387,7 @@ interface CloudWatchEventsService$ { options?: HttpHandlerOptions, ): Effect.Effect< DeleteApiDestinationCommandOutput, - Cause.TimeoutException | SdkError | ConcurrentModificationError | InternalError | ResourceNotFoundError + Cause.TimeoutError | SdkError | ConcurrentModificationError | InternalError | ResourceNotFoundError >; /** @@ -398,7 +398,7 @@ interface CloudWatchEventsService$ { options?: HttpHandlerOptions, ): Effect.Effect< DeleteArchiveCommandOutput, - Cause.TimeoutException | SdkError | ConcurrentModificationError | InternalError | ResourceNotFoundError + Cause.TimeoutError | SdkError | ConcurrentModificationError | InternalError | ResourceNotFoundError >; /** @@ -409,7 +409,7 @@ interface CloudWatchEventsService$ { options?: HttpHandlerOptions, ): Effect.Effect< DeleteConnectionCommandOutput, - Cause.TimeoutException | SdkError | ConcurrentModificationError | InternalError | ResourceNotFoundError + Cause.TimeoutError | SdkError | ConcurrentModificationError | InternalError | ResourceNotFoundError >; /** @@ -420,7 +420,7 @@ interface CloudWatchEventsService$ { options?: HttpHandlerOptions, ): Effect.Effect< DeleteEventBusCommandOutput, - Cause.TimeoutException | SdkError | ConcurrentModificationError | InternalError + Cause.TimeoutError | SdkError | ConcurrentModificationError | InternalError >; /** @@ -431,7 +431,7 @@ interface CloudWatchEventsService$ { options?: HttpHandlerOptions, ): Effect.Effect< DeletePartnerEventSourceCommandOutput, - Cause.TimeoutException | SdkError | ConcurrentModificationError | InternalError | OperationDisabledError + Cause.TimeoutError | SdkError | ConcurrentModificationError | InternalError | OperationDisabledError >; /** @@ -442,7 +442,7 @@ interface CloudWatchEventsService$ { options?: HttpHandlerOptions, ): Effect.Effect< DeleteRuleCommandOutput, - | Cause.TimeoutException + | Cause.TimeoutError | SdkError | ConcurrentModificationError | InternalError @@ -458,7 +458,7 @@ interface CloudWatchEventsService$ { options?: HttpHandlerOptions, ): Effect.Effect< DescribeApiDestinationCommandOutput, - Cause.TimeoutException | SdkError | InternalError | ResourceNotFoundError + Cause.TimeoutError | SdkError | InternalError | ResourceNotFoundError >; /** @@ -469,7 +469,7 @@ interface CloudWatchEventsService$ { options?: HttpHandlerOptions, ): Effect.Effect< DescribeArchiveCommandOutput, - Cause.TimeoutException | SdkError | InternalError | ResourceAlreadyExistsError | ResourceNotFoundError + Cause.TimeoutError | SdkError | InternalError | ResourceAlreadyExistsError | ResourceNotFoundError >; /** @@ -480,7 +480,7 @@ interface CloudWatchEventsService$ { options?: HttpHandlerOptions, ): Effect.Effect< DescribeConnectionCommandOutput, - Cause.TimeoutException | SdkError | InternalError | ResourceNotFoundError + Cause.TimeoutError | SdkError | InternalError | ResourceNotFoundError >; /** @@ -491,7 +491,7 @@ interface CloudWatchEventsService$ { options?: HttpHandlerOptions, ): Effect.Effect< DescribeEventBusCommandOutput, - Cause.TimeoutException | SdkError | InternalError | ResourceNotFoundError + Cause.TimeoutError | SdkError | InternalError | ResourceNotFoundError >; /** @@ -502,7 +502,7 @@ interface CloudWatchEventsService$ { options?: HttpHandlerOptions, ): Effect.Effect< DescribeEventSourceCommandOutput, - Cause.TimeoutException | SdkError | InternalError | OperationDisabledError | ResourceNotFoundError + Cause.TimeoutError | SdkError | InternalError | OperationDisabledError | ResourceNotFoundError >; /** @@ -513,7 +513,7 @@ interface CloudWatchEventsService$ { options?: HttpHandlerOptions, ): Effect.Effect< DescribePartnerEventSourceCommandOutput, - Cause.TimeoutException | SdkError | InternalError | OperationDisabledError | ResourceNotFoundError + Cause.TimeoutError | SdkError | InternalError | OperationDisabledError | ResourceNotFoundError >; /** @@ -524,7 +524,7 @@ interface CloudWatchEventsService$ { options?: HttpHandlerOptions, ): Effect.Effect< DescribeReplayCommandOutput, - Cause.TimeoutException | SdkError | InternalError | ResourceNotFoundError + Cause.TimeoutError | SdkError | InternalError | ResourceNotFoundError >; /** @@ -535,7 +535,7 @@ interface CloudWatchEventsService$ { options?: HttpHandlerOptions, ): Effect.Effect< DescribeRuleCommandOutput, - Cause.TimeoutException | SdkError | InternalError | ResourceNotFoundError + Cause.TimeoutError | SdkError | InternalError | ResourceNotFoundError >; /** @@ -546,7 +546,7 @@ interface CloudWatchEventsService$ { options?: HttpHandlerOptions, ): Effect.Effect< DisableRuleCommandOutput, - | Cause.TimeoutException + | Cause.TimeoutError | SdkError | ConcurrentModificationError | InternalError @@ -562,7 +562,7 @@ interface CloudWatchEventsService$ { options?: HttpHandlerOptions, ): Effect.Effect< EnableRuleCommandOutput, - | Cause.TimeoutException + | Cause.TimeoutError | SdkError | ConcurrentModificationError | InternalError @@ -578,7 +578,7 @@ interface CloudWatchEventsService$ { options?: HttpHandlerOptions, ): Effect.Effect< ListApiDestinationsCommandOutput, - Cause.TimeoutException | SdkError | InternalError + Cause.TimeoutError | SdkError | InternalError >; /** @@ -589,7 +589,7 @@ interface CloudWatchEventsService$ { options?: HttpHandlerOptions, ): Effect.Effect< ListArchivesCommandOutput, - Cause.TimeoutException | SdkError | InternalError | ResourceNotFoundError + Cause.TimeoutError | SdkError | InternalError | ResourceNotFoundError >; /** @@ -600,7 +600,7 @@ interface CloudWatchEventsService$ { options?: HttpHandlerOptions, ): Effect.Effect< ListConnectionsCommandOutput, - Cause.TimeoutException | SdkError | InternalError + Cause.TimeoutError | SdkError | InternalError >; /** @@ -611,7 +611,7 @@ interface CloudWatchEventsService$ { options?: HttpHandlerOptions, ): Effect.Effect< ListEventBusesCommandOutput, - Cause.TimeoutException | SdkError | InternalError + Cause.TimeoutError | SdkError | InternalError >; /** @@ -622,7 +622,7 @@ interface CloudWatchEventsService$ { options?: HttpHandlerOptions, ): Effect.Effect< ListEventSourcesCommandOutput, - Cause.TimeoutException | SdkError | InternalError | OperationDisabledError + Cause.TimeoutError | SdkError | InternalError | OperationDisabledError >; /** @@ -633,7 +633,7 @@ interface CloudWatchEventsService$ { options?: HttpHandlerOptions, ): Effect.Effect< ListPartnerEventSourceAccountsCommandOutput, - Cause.TimeoutException | SdkError | InternalError | OperationDisabledError | ResourceNotFoundError + Cause.TimeoutError | SdkError | InternalError | OperationDisabledError | ResourceNotFoundError >; /** @@ -644,7 +644,7 @@ interface CloudWatchEventsService$ { options?: HttpHandlerOptions, ): Effect.Effect< ListPartnerEventSourcesCommandOutput, - Cause.TimeoutException | SdkError | InternalError | OperationDisabledError + Cause.TimeoutError | SdkError | InternalError | OperationDisabledError >; /** @@ -655,7 +655,7 @@ interface CloudWatchEventsService$ { options?: HttpHandlerOptions, ): Effect.Effect< ListReplaysCommandOutput, - Cause.TimeoutException | SdkError | InternalError + Cause.TimeoutError | SdkError | InternalError >; /** @@ -666,7 +666,7 @@ interface CloudWatchEventsService$ { options?: HttpHandlerOptions, ): Effect.Effect< ListRuleNamesByTargetCommandOutput, - Cause.TimeoutException | SdkError | InternalError | ResourceNotFoundError + Cause.TimeoutError | SdkError | InternalError | ResourceNotFoundError >; /** @@ -677,7 +677,7 @@ interface CloudWatchEventsService$ { options?: HttpHandlerOptions, ): Effect.Effect< ListRulesCommandOutput, - Cause.TimeoutException | SdkError | InternalError | ResourceNotFoundError + Cause.TimeoutError | SdkError | InternalError | ResourceNotFoundError >; /** @@ -688,7 +688,7 @@ interface CloudWatchEventsService$ { options?: HttpHandlerOptions, ): Effect.Effect< ListTagsForResourceCommandOutput, - Cause.TimeoutException | SdkError | InternalError | ResourceNotFoundError + Cause.TimeoutError | SdkError | InternalError | ResourceNotFoundError >; /** @@ -699,7 +699,7 @@ interface CloudWatchEventsService$ { options?: HttpHandlerOptions, ): Effect.Effect< ListTargetsByRuleCommandOutput, - Cause.TimeoutException | SdkError | InternalError | ResourceNotFoundError + Cause.TimeoutError | SdkError | InternalError | ResourceNotFoundError >; /** @@ -710,7 +710,7 @@ interface CloudWatchEventsService$ { options?: HttpHandlerOptions, ): Effect.Effect< PutEventsCommandOutput, - Cause.TimeoutException | SdkError | InternalError + Cause.TimeoutError | SdkError | InternalError >; /** @@ -721,7 +721,7 @@ interface CloudWatchEventsService$ { options?: HttpHandlerOptions, ): Effect.Effect< PutPartnerEventsCommandOutput, - Cause.TimeoutException | SdkError | InternalError | OperationDisabledError + Cause.TimeoutError | SdkError | InternalError | OperationDisabledError >; /** @@ -732,7 +732,7 @@ interface CloudWatchEventsService$ { options?: HttpHandlerOptions, ): Effect.Effect< PutPermissionCommandOutput, - | Cause.TimeoutException + | Cause.TimeoutError | SdkError | ConcurrentModificationError | InternalError @@ -749,7 +749,7 @@ interface CloudWatchEventsService$ { options?: HttpHandlerOptions, ): Effect.Effect< PutRuleCommandOutput, - | Cause.TimeoutException + | Cause.TimeoutError | SdkError | ConcurrentModificationError | InternalError @@ -767,7 +767,7 @@ interface CloudWatchEventsService$ { options?: HttpHandlerOptions, ): Effect.Effect< PutTargetsCommandOutput, - | Cause.TimeoutException + | Cause.TimeoutError | SdkError | ConcurrentModificationError | InternalError @@ -784,7 +784,7 @@ interface CloudWatchEventsService$ { options?: HttpHandlerOptions, ): Effect.Effect< RemovePermissionCommandOutput, - | Cause.TimeoutException + | Cause.TimeoutError | SdkError | ConcurrentModificationError | InternalError @@ -800,7 +800,7 @@ interface CloudWatchEventsService$ { options?: HttpHandlerOptions, ): Effect.Effect< RemoveTargetsCommandOutput, - | Cause.TimeoutException + | Cause.TimeoutError | SdkError | ConcurrentModificationError | InternalError @@ -816,7 +816,7 @@ interface CloudWatchEventsService$ { options?: HttpHandlerOptions, ): Effect.Effect< StartReplayCommandOutput, - | Cause.TimeoutException + | Cause.TimeoutError | SdkError | InternalError | InvalidEventPatternError @@ -833,7 +833,7 @@ interface CloudWatchEventsService$ { options?: HttpHandlerOptions, ): Effect.Effect< TagResourceCommandOutput, - | Cause.TimeoutException + | Cause.TimeoutError | SdkError | ConcurrentModificationError | InternalError @@ -849,7 +849,7 @@ interface CloudWatchEventsService$ { options?: HttpHandlerOptions, ): Effect.Effect< TestEventPatternCommandOutput, - Cause.TimeoutException | SdkError | InternalError | InvalidEventPatternError + Cause.TimeoutError | SdkError | InternalError | InvalidEventPatternError >; /** @@ -860,7 +860,7 @@ interface CloudWatchEventsService$ { options?: HttpHandlerOptions, ): Effect.Effect< UntagResourceCommandOutput, - | Cause.TimeoutException + | Cause.TimeoutError | SdkError | ConcurrentModificationError | InternalError @@ -876,7 +876,7 @@ interface CloudWatchEventsService$ { options?: HttpHandlerOptions, ): Effect.Effect< UpdateApiDestinationCommandOutput, - | Cause.TimeoutException + | Cause.TimeoutError | SdkError | ConcurrentModificationError | InternalError @@ -892,7 +892,7 @@ interface CloudWatchEventsService$ { options?: HttpHandlerOptions, ): Effect.Effect< UpdateArchiveCommandOutput, - | Cause.TimeoutException + | Cause.TimeoutError | SdkError | ConcurrentModificationError | InternalError @@ -909,7 +909,7 @@ interface CloudWatchEventsService$ { options?: HttpHandlerOptions, ): Effect.Effect< UpdateConnectionCommandOutput, - | Cause.TimeoutException + | Cause.TimeoutError | SdkError | ConcurrentModificationError | InternalError @@ -939,10 +939,10 @@ export const makeCloudWatchEventsService = Effect.gen(function*() { * @since 1.0.0 * @category models */ -export class CloudWatchEventsService extends Effect.Tag("@effect-aws/client-cloudwatch-events/CloudWatchEventsService")< +export class CloudWatchEventsService extends ServiceMap.Service< CloudWatchEventsService, CloudWatchEventsService$ ->() { +>()("@effect-aws/client-cloudwatch-events/CloudWatchEventsService") { static readonly defaultLayer = Layer.effect(this, makeCloudWatchEventsService).pipe(Layer.provide(Instance.layer)); static readonly layer = (config: CloudWatchEventsService.Config) => Layer.effect(this, makeCloudWatchEventsService).pipe( diff --git a/packages/client-cloudwatch-events/src/CloudWatchEventsServiceConfig.ts b/packages/client-cloudwatch-events/src/CloudWatchEventsServiceConfig.ts index 3581adb0..158b87aa 100644 --- a/packages/client-cloudwatch-events/src/CloudWatchEventsServiceConfig.ts +++ b/packages/client-cloudwatch-events/src/CloudWatchEventsServiceConfig.ts @@ -3,18 +3,17 @@ */ import type { CloudWatchEventsClientConfig } from "@aws-sdk/client-cloudwatch-events"; import { ServiceLogger } from "@effect-aws/commons"; -import { Effect, FiberRef, Layer } from "effect"; +import { Effect, Layer, ServiceMap } from "effect"; import { dual } from "effect/Function"; -import { globalValue } from "effect/GlobalValue"; import type { CloudWatchEventsService } from "./CloudWatchEventsService.js"; /** * @since 1.0.0 * @category cloudwatch-events service config */ -const currentCloudWatchEventsServiceConfig = globalValue( +const currentCloudWatchEventsServiceConfig = ServiceMap.Reference( "@effect-aws/client-cloudwatch-events/currentCloudWatchEventsServiceConfig", - () => FiberRef.unsafeMake({}), + { defaultValue: () => ({}) }, ); /** @@ -27,7 +26,7 @@ export const withCloudWatchEventsServiceConfig: { } = dual( 2, (effect: Effect.Effect, config: CloudWatchEventsService.Config): Effect.Effect => - Effect.locally(effect, currentCloudWatchEventsServiceConfig, config), + Effect.provideService(effect, currentCloudWatchEventsServiceConfig, config), ); /** @@ -35,14 +34,14 @@ export const withCloudWatchEventsServiceConfig: { * @category cloudwatch-events service config */ export const setCloudWatchEventsServiceConfig = (config: CloudWatchEventsService.Config) => - Layer.locallyScoped(currentCloudWatchEventsServiceConfig, config); + Layer.succeed(currentCloudWatchEventsServiceConfig, config); /** * @since 1.0.0 * @category adapters */ export const toCloudWatchEventsClientConfig: Effect.Effect = Effect.gen(function*() { - const { logger: serviceLogger, ...config } = yield* FiberRef.get(currentCloudWatchEventsServiceConfig); + const { logger: serviceLogger, ...config } = yield* currentCloudWatchEventsServiceConfig; const logger = serviceLogger === true ? yield* ServiceLogger.toClientLogger(ServiceLogger.defaultServiceLogger) diff --git a/packages/client-cloudwatch-events/test/CloudWatchEvents.test.ts b/packages/client-cloudwatch-events/test/CloudWatchEvents.test.ts index e281df9c..e2de77ec 100644 --- a/packages/client-cloudwatch-events/test/CloudWatchEvents.test.ts +++ b/packages/client-cloudwatch-events/test/CloudWatchEvents.test.ts @@ -26,7 +26,7 @@ describe("CloudWatchEventsClientImpl", () => { const args = {} as unknown as ListRulesCommandInput; - const program = CloudWatchEvents.listRules(args); + const program = CloudWatchEvents.use((svc) => svc.listRules(args)); const result = await pipe( program, @@ -46,7 +46,7 @@ describe("CloudWatchEventsClientImpl", () => { const args = {} as unknown as ListRulesCommandInput; - const program = CloudWatchEvents.listRules(args); + const program = CloudWatchEvents.use((svc) => svc.listRules(args)); const result = await pipe( program, @@ -69,7 +69,7 @@ describe("CloudWatchEventsClientImpl", () => { const args = {} as unknown as ListRulesCommandInput; - const program = CloudWatchEvents.listRules(args); + const program = CloudWatchEvents.use((svc) => svc.listRules(args)); const result = await pipe( program, @@ -93,7 +93,7 @@ describe("CloudWatchEventsClientImpl", () => { const args = {} as unknown as ListRulesCommandInput; - const program = CloudWatchEvents.listRules(args); + const program = CloudWatchEvents.use((svc) => svc.listRules(args)); const result = await pipe( program, @@ -121,7 +121,7 @@ describe("CloudWatchEventsClientImpl", () => { const args = {} as unknown as ListRulesCommandInput; - const program = CloudWatchEvents.listRules(args); + const program = CloudWatchEvents.use((svc) => svc.listRules(args)); const result = await pipe( program, @@ -131,7 +131,7 @@ describe("CloudWatchEventsClientImpl", () => { expect(result).toEqual( Exit.fail( - SdkError({ + new SdkError({ ...new Error("test"), name: "SdkError", message: "test", @@ -156,7 +156,7 @@ describe("CloudWatchEventsClientImpl", () => { const args = {} as unknown as ListRulesCommandInput; - const program = CloudWatchEvents.listRules(args).pipe( + const program = CloudWatchEvents.use((svc) => svc.listRules(args)).pipe( Effect.catchTag("NotHandledException" as any, () => Effect.succeed(null)), ); @@ -166,9 +166,9 @@ describe("CloudWatchEventsClientImpl", () => { Effect.runPromiseExit, ); - expect(result).toEqual( + expect(result).toContainEqual( Exit.fail( - SdkError({ + new SdkError({ ...new Error("test"), name: "SdkError", message: "test", diff --git a/packages/client-cloudwatch-logs/.projen/deps.json b/packages/client-cloudwatch-logs/.projen/deps.json index 08336b90..e0e65af6 100644 --- a/packages/client-cloudwatch-logs/.projen/deps.json +++ b/packages/client-cloudwatch-logs/.projen/deps.json @@ -7,6 +7,7 @@ }, { "name": "effect", + "version": "4.0.0-beta.8", "type": "build" }, { @@ -16,7 +17,7 @@ }, { "name": "effect", - "version": ">=3.0.4 <4.0.0", + "version": ">=4.0.0 <5.0.0", "type": "peer" }, { diff --git a/packages/client-cloudwatch-logs/README.md b/packages/client-cloudwatch-logs/README.md index b2474880..956fca2a 100644 --- a/packages/client-cloudwatch-logs/README.md +++ b/packages/client-cloudwatch-logs/README.md @@ -16,7 +16,7 @@ With default CloudWatchLogsClient instance: ```typescript import { CloudWatchLogs } from "@effect-aws/client-cloudwatch-logs"; -const program = CloudWatchLogs.describeLogGroups(args); +const program = CloudWatchLogs.use((svc) => svc.describeLogGroups(args)); const result = pipe( program, @@ -30,7 +30,7 @@ With custom CloudWatchLogsClient instance: ```typescript import { CloudWatchLogs } from "@effect-aws/client-cloudwatch-logs"; -const program = CloudWatchLogs.describeLogGroups(args); +const program = CloudWatchLogs.use((svc) => svc.describeLogGroups(args)); const result = await pipe( program, @@ -46,7 +46,7 @@ With custom CloudWatchLogsClient configuration: ```typescript import { CloudWatchLogs } from "@effect-aws/client-cloudwatch-logs"; -const program = CloudWatchLogs.describeLogGroups(args); +const program = CloudWatchLogs.use((svc) => svc.describeLogGroups(args)); const result = await pipe( program, diff --git a/packages/client-cloudwatch-logs/package.json b/packages/client-cloudwatch-logs/package.json index 80509a30..dee9f6f1 100644 --- a/packages/client-cloudwatch-logs/package.json +++ b/packages/client-cloudwatch-logs/package.json @@ -26,11 +26,11 @@ }, "devDependencies": { "@types/node": "ts5.4", - "effect": "^3.16.4", + "effect": "4.0.0-beta.8", "typescript": "^5.4.2" }, "peerDependencies": { - "effect": ">=3.0.4 <4.0.0" + "effect": ">=4.0.0 <5.0.0" }, "dependencies": { "@aws-sdk/client-cloudwatch-logs": "^3", diff --git a/packages/client-cloudwatch-logs/src/CloudWatchLogsClientInstance.ts b/packages/client-cloudwatch-logs/src/CloudWatchLogsClientInstance.ts index f758144a..b3a06163 100644 --- a/packages/client-cloudwatch-logs/src/CloudWatchLogsClientInstance.ts +++ b/packages/client-cloudwatch-logs/src/CloudWatchLogsClientInstance.ts @@ -2,16 +2,18 @@ * @since 1.0.0 */ import { CloudWatchLogsClient } from "@aws-sdk/client-cloudwatch-logs"; -import { Context, Effect, Layer } from "effect"; +import { Effect, Layer, ServiceMap } from "effect"; import * as CloudWatchLogsServiceConfig from "./CloudWatchLogsServiceConfig.js"; /** * @since 1.0.0 * @category tags */ -export class CloudWatchLogsClientInstance extends Context.Tag( - "@effect-aws/client-cloudwatch-logs/CloudWatchLogsClientInstance", -)() {} +export class CloudWatchLogsClientInstance + extends ServiceMap.Service()( + "@effect-aws/client-cloudwatch-logs/CloudWatchLogsClientInstance", + ) +{} /** * @since 1.0.0 @@ -30,4 +32,4 @@ export const make = Effect.flatMap( * @since 1.0.0 * @category layers */ -export const layer = Layer.scoped(CloudWatchLogsClientInstance, make); +export const layer = Layer.effect(CloudWatchLogsClientInstance, make); diff --git a/packages/client-cloudwatch-logs/src/CloudWatchLogsService.ts b/packages/client-cloudwatch-logs/src/CloudWatchLogsService.ts index d2496108..9d500615 100644 --- a/packages/client-cloudwatch-logs/src/CloudWatchLogsService.ts +++ b/packages/client-cloudwatch-logs/src/CloudWatchLogsService.ts @@ -329,7 +329,7 @@ import { import type { HttpHandlerOptions, ServiceLogger } from "@effect-aws/commons"; import { Service } from "@effect-aws/commons"; import type { Cause } from "effect"; -import { Effect, Layer } from "effect"; +import { Effect, Layer, ServiceMap } from "effect"; import * as Instance from "./CloudWatchLogsClientInstance.js"; import * as CloudWatchLogsServiceConfig from "./CloudWatchLogsServiceConfig.js"; import type { @@ -476,7 +476,7 @@ interface CloudWatchLogsService$ { options?: HttpHandlerOptions, ): Effect.Effect< AssociateKmsKeyCommandOutput, - | Cause.TimeoutException + | Cause.TimeoutError | SdkError | InvalidParameterError | OperationAbortedError @@ -492,7 +492,7 @@ interface CloudWatchLogsService$ { options?: HttpHandlerOptions, ): Effect.Effect< AssociateSourceToS3TableIntegrationCommandOutput, - | Cause.TimeoutException + | Cause.TimeoutError | SdkError | AccessDeniedError | InternalServerError @@ -509,7 +509,7 @@ interface CloudWatchLogsService$ { options?: HttpHandlerOptions, ): Effect.Effect< CancelExportTaskCommandOutput, - | Cause.TimeoutException + | Cause.TimeoutError | SdkError | InvalidOperationError | InvalidParameterError @@ -525,7 +525,7 @@ interface CloudWatchLogsService$ { options?: HttpHandlerOptions, ): Effect.Effect< CancelImportTaskCommandOutput, - | Cause.TimeoutException + | Cause.TimeoutError | SdkError | AccessDeniedError | InvalidOperationError @@ -542,7 +542,7 @@ interface CloudWatchLogsService$ { options?: HttpHandlerOptions, ): Effect.Effect< CreateDeliveryCommandOutput, - | Cause.TimeoutException + | Cause.TimeoutError | SdkError | AccessDeniedError | ConflictError @@ -561,7 +561,7 @@ interface CloudWatchLogsService$ { options?: HttpHandlerOptions, ): Effect.Effect< CreateExportTaskCommandOutput, - | Cause.TimeoutException + | Cause.TimeoutError | SdkError | InvalidParameterError | LimitExceededError @@ -579,7 +579,7 @@ interface CloudWatchLogsService$ { options?: HttpHandlerOptions, ): Effect.Effect< CreateImportTaskCommandOutput, - | Cause.TimeoutException + | Cause.TimeoutError | SdkError | AccessDeniedError | ConflictError @@ -598,7 +598,7 @@ interface CloudWatchLogsService$ { options?: HttpHandlerOptions, ): Effect.Effect< CreateLogAnomalyDetectorCommandOutput, - | Cause.TimeoutException + | Cause.TimeoutError | SdkError | InvalidParameterError | LimitExceededError @@ -615,7 +615,7 @@ interface CloudWatchLogsService$ { options?: HttpHandlerOptions, ): Effect.Effect< CreateLogGroupCommandOutput, - | Cause.TimeoutException + | Cause.TimeoutError | SdkError | InvalidParameterError | LimitExceededError @@ -632,7 +632,7 @@ interface CloudWatchLogsService$ { options?: HttpHandlerOptions, ): Effect.Effect< CreateLogStreamCommandOutput, - | Cause.TimeoutException + | Cause.TimeoutError | SdkError | InvalidParameterError | ResourceAlreadyExistsError @@ -648,7 +648,7 @@ interface CloudWatchLogsService$ { options?: HttpHandlerOptions, ): Effect.Effect< CreateScheduledQueryCommandOutput, - | Cause.TimeoutException + | Cause.TimeoutError | SdkError | AccessDeniedError | ConflictError @@ -667,7 +667,7 @@ interface CloudWatchLogsService$ { options?: HttpHandlerOptions, ): Effect.Effect< DeleteAccountPolicyCommandOutput, - | Cause.TimeoutException + | Cause.TimeoutError | SdkError | InvalidParameterError | OperationAbortedError @@ -683,7 +683,7 @@ interface CloudWatchLogsService$ { options?: HttpHandlerOptions, ): Effect.Effect< DeleteDataProtectionPolicyCommandOutput, - | Cause.TimeoutException + | Cause.TimeoutError | SdkError | InvalidParameterError | OperationAbortedError @@ -699,7 +699,7 @@ interface CloudWatchLogsService$ { options?: HttpHandlerOptions, ): Effect.Effect< DeleteDeliveryCommandOutput, - | Cause.TimeoutException + | Cause.TimeoutError | SdkError | ConflictError | ResourceNotFoundError @@ -717,7 +717,7 @@ interface CloudWatchLogsService$ { options?: HttpHandlerOptions, ): Effect.Effect< DeleteDeliveryDestinationCommandOutput, - | Cause.TimeoutException + | Cause.TimeoutError | SdkError | ConflictError | ResourceNotFoundError @@ -735,12 +735,7 @@ interface CloudWatchLogsService$ { options?: HttpHandlerOptions, ): Effect.Effect< DeleteDeliveryDestinationPolicyCommandOutput, - | Cause.TimeoutException - | SdkError - | ConflictError - | ResourceNotFoundError - | ServiceUnavailableError - | ValidationError + Cause.TimeoutError | SdkError | ConflictError | ResourceNotFoundError | ServiceUnavailableError | ValidationError >; /** @@ -751,7 +746,7 @@ interface CloudWatchLogsService$ { options?: HttpHandlerOptions, ): Effect.Effect< DeleteDeliverySourceCommandOutput, - | Cause.TimeoutException + | Cause.TimeoutError | SdkError | ConflictError | ResourceNotFoundError @@ -769,7 +764,7 @@ interface CloudWatchLogsService$ { options?: HttpHandlerOptions, ): Effect.Effect< DeleteDestinationCommandOutput, - | Cause.TimeoutException + | Cause.TimeoutError | SdkError | InvalidParameterError | OperationAbortedError @@ -785,7 +780,7 @@ interface CloudWatchLogsService$ { options?: HttpHandlerOptions, ): Effect.Effect< DeleteIndexPolicyCommandOutput, - | Cause.TimeoutException + | Cause.TimeoutError | SdkError | InvalidParameterError | LimitExceededError @@ -802,7 +797,7 @@ interface CloudWatchLogsService$ { options?: HttpHandlerOptions, ): Effect.Effect< DeleteIntegrationCommandOutput, - | Cause.TimeoutException + | Cause.TimeoutError | SdkError | InvalidParameterError | ResourceNotFoundError @@ -818,7 +813,7 @@ interface CloudWatchLogsService$ { options?: HttpHandlerOptions, ): Effect.Effect< DeleteLogAnomalyDetectorCommandOutput, - | Cause.TimeoutException + | Cause.TimeoutError | SdkError | InvalidParameterError | OperationAbortedError @@ -834,7 +829,7 @@ interface CloudWatchLogsService$ { options?: HttpHandlerOptions, ): Effect.Effect< DeleteLogGroupCommandOutput, - | Cause.TimeoutException + | Cause.TimeoutError | SdkError | InvalidParameterError | OperationAbortedError @@ -851,7 +846,7 @@ interface CloudWatchLogsService$ { options?: HttpHandlerOptions, ): Effect.Effect< DeleteLogStreamCommandOutput, - | Cause.TimeoutException + | Cause.TimeoutError | SdkError | InvalidParameterError | OperationAbortedError @@ -868,7 +863,7 @@ interface CloudWatchLogsService$ { options?: HttpHandlerOptions, ): Effect.Effect< DeleteMetricFilterCommandOutput, - | Cause.TimeoutException + | Cause.TimeoutError | SdkError | InvalidParameterError | OperationAbortedError @@ -884,7 +879,7 @@ interface CloudWatchLogsService$ { options?: HttpHandlerOptions, ): Effect.Effect< DeleteQueryDefinitionCommandOutput, - Cause.TimeoutException | SdkError | InvalidParameterError | ResourceNotFoundError | ServiceUnavailableError + Cause.TimeoutError | SdkError | InvalidParameterError | ResourceNotFoundError | ServiceUnavailableError >; /** @@ -895,7 +890,7 @@ interface CloudWatchLogsService$ { options?: HttpHandlerOptions, ): Effect.Effect< DeleteResourcePolicyCommandOutput, - | Cause.TimeoutException + | Cause.TimeoutError | SdkError | InvalidParameterError | OperationAbortedError @@ -911,7 +906,7 @@ interface CloudWatchLogsService$ { options?: HttpHandlerOptions, ): Effect.Effect< DeleteRetentionPolicyCommandOutput, - | Cause.TimeoutException + | Cause.TimeoutError | SdkError | InvalidParameterError | OperationAbortedError @@ -927,7 +922,7 @@ interface CloudWatchLogsService$ { options?: HttpHandlerOptions, ): Effect.Effect< DeleteScheduledQueryCommandOutput, - | Cause.TimeoutException + | Cause.TimeoutError | SdkError | AccessDeniedError | InternalServerError @@ -944,7 +939,7 @@ interface CloudWatchLogsService$ { options?: HttpHandlerOptions, ): Effect.Effect< DeleteSubscriptionFilterCommandOutput, - | Cause.TimeoutException + | Cause.TimeoutError | SdkError | InvalidParameterError | OperationAbortedError @@ -960,7 +955,7 @@ interface CloudWatchLogsService$ { options?: HttpHandlerOptions, ): Effect.Effect< DeleteTransformerCommandOutput, - | Cause.TimeoutException + | Cause.TimeoutError | SdkError | InvalidOperationError | InvalidParameterError @@ -977,7 +972,7 @@ interface CloudWatchLogsService$ { options?: HttpHandlerOptions, ): Effect.Effect< DescribeAccountPoliciesCommandOutput, - | Cause.TimeoutException + | Cause.TimeoutError | SdkError | InvalidParameterError | OperationAbortedError @@ -993,12 +988,7 @@ interface CloudWatchLogsService$ { options?: HttpHandlerOptions, ): Effect.Effect< DescribeConfigurationTemplatesCommandOutput, - | Cause.TimeoutException - | SdkError - | ResourceNotFoundError - | ServiceUnavailableError - | ThrottlingError - | ValidationError + Cause.TimeoutError | SdkError | ResourceNotFoundError | ServiceUnavailableError | ThrottlingError | ValidationError >; /** @@ -1009,7 +999,7 @@ interface CloudWatchLogsService$ { options?: HttpHandlerOptions, ): Effect.Effect< DescribeDeliveriesCommandOutput, - | Cause.TimeoutException + | Cause.TimeoutError | SdkError | ServiceQuotaExceededError | ServiceUnavailableError @@ -1025,7 +1015,7 @@ interface CloudWatchLogsService$ { options?: HttpHandlerOptions, ): Effect.Effect< DescribeDeliveryDestinationsCommandOutput, - | Cause.TimeoutException + | Cause.TimeoutError | SdkError | ServiceQuotaExceededError | ServiceUnavailableError @@ -1041,7 +1031,7 @@ interface CloudWatchLogsService$ { options?: HttpHandlerOptions, ): Effect.Effect< DescribeDeliverySourcesCommandOutput, - | Cause.TimeoutException + | Cause.TimeoutError | SdkError | ServiceQuotaExceededError | ServiceUnavailableError @@ -1057,7 +1047,7 @@ interface CloudWatchLogsService$ { options?: HttpHandlerOptions, ): Effect.Effect< DescribeDestinationsCommandOutput, - Cause.TimeoutException | SdkError | InvalidParameterError | ServiceUnavailableError + Cause.TimeoutError | SdkError | InvalidParameterError | ServiceUnavailableError >; /** @@ -1068,7 +1058,7 @@ interface CloudWatchLogsService$ { options?: HttpHandlerOptions, ): Effect.Effect< DescribeExportTasksCommandOutput, - Cause.TimeoutException | SdkError | InvalidParameterError | ServiceUnavailableError + Cause.TimeoutError | SdkError | InvalidParameterError | ServiceUnavailableError >; /** @@ -1079,7 +1069,7 @@ interface CloudWatchLogsService$ { options?: HttpHandlerOptions, ): Effect.Effect< DescribeFieldIndexesCommandOutput, - | Cause.TimeoutException + | Cause.TimeoutError | SdkError | InvalidParameterError | LimitExceededError @@ -1096,7 +1086,7 @@ interface CloudWatchLogsService$ { options?: HttpHandlerOptions, ): Effect.Effect< DescribeImportTaskBatchesCommandOutput, - | Cause.TimeoutException + | Cause.TimeoutError | SdkError | AccessDeniedError | InvalidOperationError @@ -1113,7 +1103,7 @@ interface CloudWatchLogsService$ { options?: HttpHandlerOptions, ): Effect.Effect< DescribeImportTasksCommandOutput, - | Cause.TimeoutException + | Cause.TimeoutError | SdkError | AccessDeniedError | InvalidOperationError @@ -1130,7 +1120,7 @@ interface CloudWatchLogsService$ { options?: HttpHandlerOptions, ): Effect.Effect< DescribeIndexPoliciesCommandOutput, - | Cause.TimeoutException + | Cause.TimeoutError | SdkError | InvalidParameterError | LimitExceededError @@ -1147,7 +1137,7 @@ interface CloudWatchLogsService$ { options?: HttpHandlerOptions, ): Effect.Effect< DescribeLogGroupsCommandOutput, - Cause.TimeoutException | SdkError | InvalidParameterError | ServiceUnavailableError + Cause.TimeoutError | SdkError | InvalidParameterError | ServiceUnavailableError >; /** @@ -1158,7 +1148,7 @@ interface CloudWatchLogsService$ { options?: HttpHandlerOptions, ): Effect.Effect< DescribeLogStreamsCommandOutput, - Cause.TimeoutException | SdkError | InvalidParameterError | ResourceNotFoundError | ServiceUnavailableError + Cause.TimeoutError | SdkError | InvalidParameterError | ResourceNotFoundError | ServiceUnavailableError >; /** @@ -1169,7 +1159,7 @@ interface CloudWatchLogsService$ { options?: HttpHandlerOptions, ): Effect.Effect< DescribeMetricFiltersCommandOutput, - Cause.TimeoutException | SdkError | InvalidParameterError | ResourceNotFoundError | ServiceUnavailableError + Cause.TimeoutError | SdkError | InvalidParameterError | ResourceNotFoundError | ServiceUnavailableError >; /** @@ -1180,7 +1170,7 @@ interface CloudWatchLogsService$ { options?: HttpHandlerOptions, ): Effect.Effect< DescribeQueriesCommandOutput, - Cause.TimeoutException | SdkError | InvalidParameterError | ResourceNotFoundError | ServiceUnavailableError + Cause.TimeoutError | SdkError | InvalidParameterError | ResourceNotFoundError | ServiceUnavailableError >; /** @@ -1191,7 +1181,7 @@ interface CloudWatchLogsService$ { options?: HttpHandlerOptions, ): Effect.Effect< DescribeQueryDefinitionsCommandOutput, - Cause.TimeoutException | SdkError | InvalidParameterError | ServiceUnavailableError + Cause.TimeoutError | SdkError | InvalidParameterError | ServiceUnavailableError >; /** @@ -1202,7 +1192,7 @@ interface CloudWatchLogsService$ { options?: HttpHandlerOptions, ): Effect.Effect< DescribeResourcePoliciesCommandOutput, - Cause.TimeoutException | SdkError | InvalidParameterError | ServiceUnavailableError + Cause.TimeoutError | SdkError | InvalidParameterError | ServiceUnavailableError >; /** @@ -1213,7 +1203,7 @@ interface CloudWatchLogsService$ { options?: HttpHandlerOptions, ): Effect.Effect< DescribeSubscriptionFiltersCommandOutput, - Cause.TimeoutException | SdkError | InvalidParameterError | ResourceNotFoundError | ServiceUnavailableError + Cause.TimeoutError | SdkError | InvalidParameterError | ResourceNotFoundError | ServiceUnavailableError >; /** @@ -1224,7 +1214,7 @@ interface CloudWatchLogsService$ { options?: HttpHandlerOptions, ): Effect.Effect< DisassociateKmsKeyCommandOutput, - | Cause.TimeoutException + | Cause.TimeoutError | SdkError | InvalidParameterError | OperationAbortedError @@ -1240,7 +1230,7 @@ interface CloudWatchLogsService$ { options?: HttpHandlerOptions, ): Effect.Effect< DisassociateSourceFromS3TableIntegrationCommandOutput, - | Cause.TimeoutException + | Cause.TimeoutError | SdkError | AccessDeniedError | InternalServerError @@ -1257,7 +1247,7 @@ interface CloudWatchLogsService$ { options?: HttpHandlerOptions, ): Effect.Effect< FilterLogEventsCommandOutput, - Cause.TimeoutException | SdkError | InvalidParameterError | ResourceNotFoundError | ServiceUnavailableError + Cause.TimeoutError | SdkError | InvalidParameterError | ResourceNotFoundError | ServiceUnavailableError >; /** @@ -1268,7 +1258,7 @@ interface CloudWatchLogsService$ { options?: HttpHandlerOptions, ): Effect.Effect< GetDataProtectionPolicyCommandOutput, - | Cause.TimeoutException + | Cause.TimeoutError | SdkError | InvalidParameterError | OperationAbortedError @@ -1284,7 +1274,7 @@ interface CloudWatchLogsService$ { options?: HttpHandlerOptions, ): Effect.Effect< GetDeliveryCommandOutput, - | Cause.TimeoutException + | Cause.TimeoutError | SdkError | ResourceNotFoundError | ServiceQuotaExceededError @@ -1301,7 +1291,7 @@ interface CloudWatchLogsService$ { options?: HttpHandlerOptions, ): Effect.Effect< GetDeliveryDestinationCommandOutput, - | Cause.TimeoutException + | Cause.TimeoutError | SdkError | ResourceNotFoundError | ServiceQuotaExceededError @@ -1318,7 +1308,7 @@ interface CloudWatchLogsService$ { options?: HttpHandlerOptions, ): Effect.Effect< GetDeliveryDestinationPolicyCommandOutput, - Cause.TimeoutException | SdkError | ResourceNotFoundError | ServiceUnavailableError | ValidationError + Cause.TimeoutError | SdkError | ResourceNotFoundError | ServiceUnavailableError | ValidationError >; /** @@ -1329,7 +1319,7 @@ interface CloudWatchLogsService$ { options?: HttpHandlerOptions, ): Effect.Effect< GetDeliverySourceCommandOutput, - | Cause.TimeoutException + | Cause.TimeoutError | SdkError | ResourceNotFoundError | ServiceQuotaExceededError @@ -1346,7 +1336,7 @@ interface CloudWatchLogsService$ { options?: HttpHandlerOptions, ): Effect.Effect< GetIntegrationCommandOutput, - Cause.TimeoutException | SdkError | InvalidParameterError | ResourceNotFoundError | ServiceUnavailableError + Cause.TimeoutError | SdkError | InvalidParameterError | ResourceNotFoundError | ServiceUnavailableError >; /** @@ -1357,7 +1347,7 @@ interface CloudWatchLogsService$ { options?: HttpHandlerOptions, ): Effect.Effect< GetLogAnomalyDetectorCommandOutput, - | Cause.TimeoutException + | Cause.TimeoutError | SdkError | InvalidParameterError | OperationAbortedError @@ -1373,7 +1363,7 @@ interface CloudWatchLogsService$ { options?: HttpHandlerOptions, ): Effect.Effect< GetLogEventsCommandOutput, - Cause.TimeoutException | SdkError | InvalidParameterError | ResourceNotFoundError | ServiceUnavailableError + Cause.TimeoutError | SdkError | InvalidParameterError | ResourceNotFoundError | ServiceUnavailableError >; /** @@ -1384,7 +1374,7 @@ interface CloudWatchLogsService$ { options?: HttpHandlerOptions, ): Effect.Effect< GetLogFieldsCommandOutput, - | Cause.TimeoutException + | Cause.TimeoutError | SdkError | InvalidParameterError | OperationAbortedError @@ -1400,7 +1390,7 @@ interface CloudWatchLogsService$ { options?: HttpHandlerOptions, ): Effect.Effect< GetLogGroupFieldsCommandOutput, - | Cause.TimeoutException + | Cause.TimeoutError | SdkError | InvalidParameterError | LimitExceededError @@ -1416,7 +1406,7 @@ interface CloudWatchLogsService$ { options?: HttpHandlerOptions, ): Effect.Effect< GetLogObjectCommandOutput, - | Cause.TimeoutException + | Cause.TimeoutError | SdkError | AccessDeniedError | InvalidOperationError @@ -1433,7 +1423,7 @@ interface CloudWatchLogsService$ { options?: HttpHandlerOptions, ): Effect.Effect< GetLogRecordCommandOutput, - | Cause.TimeoutException + | Cause.TimeoutError | SdkError | InvalidParameterError | LimitExceededError @@ -1449,7 +1439,7 @@ interface CloudWatchLogsService$ { options?: HttpHandlerOptions, ): Effect.Effect< GetQueryResultsCommandOutput, - Cause.TimeoutException | SdkError | InvalidParameterError | ResourceNotFoundError | ServiceUnavailableError + Cause.TimeoutError | SdkError | InvalidParameterError | ResourceNotFoundError | ServiceUnavailableError >; /** @@ -1460,7 +1450,7 @@ interface CloudWatchLogsService$ { options?: HttpHandlerOptions, ): Effect.Effect< GetScheduledQueryCommandOutput, - | Cause.TimeoutException + | Cause.TimeoutError | SdkError | AccessDeniedError | InternalServerError @@ -1477,7 +1467,7 @@ interface CloudWatchLogsService$ { options?: HttpHandlerOptions, ): Effect.Effect< GetScheduledQueryHistoryCommandOutput, - | Cause.TimeoutException + | Cause.TimeoutError | SdkError | AccessDeniedError | InternalServerError @@ -1494,7 +1484,7 @@ interface CloudWatchLogsService$ { options?: HttpHandlerOptions, ): Effect.Effect< GetTransformerCommandOutput, - | Cause.TimeoutException + | Cause.TimeoutError | SdkError | InvalidOperationError | InvalidParameterError @@ -1510,7 +1500,7 @@ interface CloudWatchLogsService$ { options?: HttpHandlerOptions, ): Effect.Effect< ListAggregateLogGroupSummariesCommandOutput, - Cause.TimeoutException | SdkError | InvalidParameterError | ServiceUnavailableError | ValidationError + Cause.TimeoutError | SdkError | InvalidParameterError | ServiceUnavailableError | ValidationError >; /** @@ -1521,7 +1511,7 @@ interface CloudWatchLogsService$ { options?: HttpHandlerOptions, ): Effect.Effect< ListAnomaliesCommandOutput, - | Cause.TimeoutException + | Cause.TimeoutError | SdkError | InvalidParameterError | OperationAbortedError @@ -1537,7 +1527,7 @@ interface CloudWatchLogsService$ { options?: HttpHandlerOptions, ): Effect.Effect< ListIntegrationsCommandOutput, - Cause.TimeoutException | SdkError | InvalidParameterError | ServiceUnavailableError + Cause.TimeoutError | SdkError | InvalidParameterError | ServiceUnavailableError >; /** @@ -1548,7 +1538,7 @@ interface CloudWatchLogsService$ { options?: HttpHandlerOptions, ): Effect.Effect< ListLogAnomalyDetectorsCommandOutput, - | Cause.TimeoutException + | Cause.TimeoutError | SdkError | InvalidParameterError | OperationAbortedError @@ -1564,7 +1554,7 @@ interface CloudWatchLogsService$ { options?: HttpHandlerOptions, ): Effect.Effect< ListLogGroupsCommandOutput, - Cause.TimeoutException | SdkError | InvalidParameterError | ServiceUnavailableError + Cause.TimeoutError | SdkError | InvalidParameterError | ServiceUnavailableError >; /** @@ -1575,7 +1565,7 @@ interface CloudWatchLogsService$ { options?: HttpHandlerOptions, ): Effect.Effect< ListLogGroupsForQueryCommandOutput, - | Cause.TimeoutException + | Cause.TimeoutError | SdkError | AccessDeniedError | InvalidParameterError @@ -1591,7 +1581,7 @@ interface CloudWatchLogsService$ { options?: HttpHandlerOptions, ): Effect.Effect< ListScheduledQueriesCommandOutput, - Cause.TimeoutException | SdkError | AccessDeniedError | InternalServerError | ThrottlingError | ValidationError + Cause.TimeoutError | SdkError | AccessDeniedError | InternalServerError | ThrottlingError | ValidationError >; /** @@ -1602,7 +1592,7 @@ interface CloudWatchLogsService$ { options?: HttpHandlerOptions, ): Effect.Effect< ListSourcesForS3TableIntegrationCommandOutput, - | Cause.TimeoutException + | Cause.TimeoutError | SdkError | AccessDeniedError | InternalServerError @@ -1619,7 +1609,7 @@ interface CloudWatchLogsService$ { options?: HttpHandlerOptions, ): Effect.Effect< ListTagsForResourceCommandOutput, - Cause.TimeoutException | SdkError | InvalidParameterError | ResourceNotFoundError | ServiceUnavailableError + Cause.TimeoutError | SdkError | InvalidParameterError | ResourceNotFoundError | ServiceUnavailableError >; /** @@ -1630,7 +1620,7 @@ interface CloudWatchLogsService$ { options?: HttpHandlerOptions, ): Effect.Effect< ListTagsLogGroupCommandOutput, - Cause.TimeoutException | SdkError | ResourceNotFoundError | ServiceUnavailableError + Cause.TimeoutError | SdkError | ResourceNotFoundError | ServiceUnavailableError >; /** @@ -1641,7 +1631,7 @@ interface CloudWatchLogsService$ { options?: HttpHandlerOptions, ): Effect.Effect< PutAccountPolicyCommandOutput, - | Cause.TimeoutException + | Cause.TimeoutError | SdkError | InvalidParameterError | LimitExceededError @@ -1657,7 +1647,7 @@ interface CloudWatchLogsService$ { options?: HttpHandlerOptions, ): Effect.Effect< PutDataProtectionPolicyCommandOutput, - | Cause.TimeoutException + | Cause.TimeoutError | SdkError | InvalidParameterError | LimitExceededError @@ -1674,7 +1664,7 @@ interface CloudWatchLogsService$ { options?: HttpHandlerOptions, ): Effect.Effect< PutDeliveryDestinationCommandOutput, - | Cause.TimeoutException + | Cause.TimeoutError | SdkError | ConflictError | ResourceNotFoundError @@ -1692,12 +1682,7 @@ interface CloudWatchLogsService$ { options?: HttpHandlerOptions, ): Effect.Effect< PutDeliveryDestinationPolicyCommandOutput, - | Cause.TimeoutException - | SdkError - | ConflictError - | ResourceNotFoundError - | ServiceUnavailableError - | ValidationError + Cause.TimeoutError | SdkError | ConflictError | ResourceNotFoundError | ServiceUnavailableError | ValidationError >; /** @@ -1708,7 +1693,7 @@ interface CloudWatchLogsService$ { options?: HttpHandlerOptions, ): Effect.Effect< PutDeliverySourceCommandOutput, - | Cause.TimeoutException + | Cause.TimeoutError | SdkError | ConflictError | ResourceNotFoundError @@ -1726,7 +1711,7 @@ interface CloudWatchLogsService$ { options?: HttpHandlerOptions, ): Effect.Effect< PutDestinationCommandOutput, - Cause.TimeoutException | SdkError | InvalidParameterError | OperationAbortedError | ServiceUnavailableError + Cause.TimeoutError | SdkError | InvalidParameterError | OperationAbortedError | ServiceUnavailableError >; /** @@ -1737,7 +1722,7 @@ interface CloudWatchLogsService$ { options?: HttpHandlerOptions, ): Effect.Effect< PutDestinationPolicyCommandOutput, - Cause.TimeoutException | SdkError | InvalidParameterError | OperationAbortedError | ServiceUnavailableError + Cause.TimeoutError | SdkError | InvalidParameterError | OperationAbortedError | ServiceUnavailableError >; /** @@ -1748,7 +1733,7 @@ interface CloudWatchLogsService$ { options?: HttpHandlerOptions, ): Effect.Effect< PutIndexPolicyCommandOutput, - | Cause.TimeoutException + | Cause.TimeoutError | SdkError | InvalidParameterError | LimitExceededError @@ -1765,7 +1750,7 @@ interface CloudWatchLogsService$ { options?: HttpHandlerOptions, ): Effect.Effect< PutIntegrationCommandOutput, - | Cause.TimeoutException + | Cause.TimeoutError | SdkError | InvalidParameterError | LimitExceededError @@ -1781,7 +1766,7 @@ interface CloudWatchLogsService$ { options?: HttpHandlerOptions, ): Effect.Effect< PutLogEventsCommandOutput, - | Cause.TimeoutException + | Cause.TimeoutError | SdkError | DataAlreadyAcceptedError | InvalidParameterError @@ -1799,7 +1784,7 @@ interface CloudWatchLogsService$ { options?: HttpHandlerOptions, ): Effect.Effect< PutLogGroupDeletionProtectionCommandOutput, - | Cause.TimeoutException + | Cause.TimeoutError | SdkError | AccessDeniedError | InvalidOperationError @@ -1817,7 +1802,7 @@ interface CloudWatchLogsService$ { options?: HttpHandlerOptions, ): Effect.Effect< PutMetricFilterCommandOutput, - | Cause.TimeoutException + | Cause.TimeoutError | SdkError | InvalidOperationError | InvalidParameterError @@ -1835,7 +1820,7 @@ interface CloudWatchLogsService$ { options?: HttpHandlerOptions, ): Effect.Effect< PutQueryDefinitionCommandOutput, - | Cause.TimeoutException + | Cause.TimeoutError | SdkError | InvalidParameterError | LimitExceededError @@ -1851,7 +1836,7 @@ interface CloudWatchLogsService$ { options?: HttpHandlerOptions, ): Effect.Effect< PutResourcePolicyCommandOutput, - | Cause.TimeoutException + | Cause.TimeoutError | SdkError | InvalidParameterError | LimitExceededError @@ -1868,7 +1853,7 @@ interface CloudWatchLogsService$ { options?: HttpHandlerOptions, ): Effect.Effect< PutRetentionPolicyCommandOutput, - | Cause.TimeoutException + | Cause.TimeoutError | SdkError | InvalidParameterError | OperationAbortedError @@ -1884,7 +1869,7 @@ interface CloudWatchLogsService$ { options?: HttpHandlerOptions, ): Effect.Effect< PutSubscriptionFilterCommandOutput, - | Cause.TimeoutException + | Cause.TimeoutError | SdkError | InvalidOperationError | InvalidParameterError @@ -1902,7 +1887,7 @@ interface CloudWatchLogsService$ { options?: HttpHandlerOptions, ): Effect.Effect< PutTransformerCommandOutput, - | Cause.TimeoutException + | Cause.TimeoutError | SdkError | InvalidOperationError | InvalidParameterError @@ -1920,7 +1905,7 @@ interface CloudWatchLogsService$ { options?: HttpHandlerOptions, ): Effect.Effect< StartLiveTailCommandOutput, - | Cause.TimeoutException + | Cause.TimeoutError | SdkError | AccessDeniedError | InvalidOperationError @@ -1937,7 +1922,7 @@ interface CloudWatchLogsService$ { options?: HttpHandlerOptions, ): Effect.Effect< StartQueryCommandOutput, - | Cause.TimeoutException + | Cause.TimeoutError | SdkError | InvalidParameterError | LimitExceededError @@ -1954,7 +1939,7 @@ interface CloudWatchLogsService$ { options?: HttpHandlerOptions, ): Effect.Effect< StopQueryCommandOutput, - Cause.TimeoutException | SdkError | InvalidParameterError | ResourceNotFoundError | ServiceUnavailableError + Cause.TimeoutError | SdkError | InvalidParameterError | ResourceNotFoundError | ServiceUnavailableError >; /** @@ -1965,7 +1950,7 @@ interface CloudWatchLogsService$ { options?: HttpHandlerOptions, ): Effect.Effect< TagLogGroupCommandOutput, - Cause.TimeoutException | SdkError | InvalidParameterError | ResourceNotFoundError + Cause.TimeoutError | SdkError | InvalidParameterError | ResourceNotFoundError >; /** @@ -1976,7 +1961,7 @@ interface CloudWatchLogsService$ { options?: HttpHandlerOptions, ): Effect.Effect< TagResourceCommandOutput, - | Cause.TimeoutException + | Cause.TimeoutError | SdkError | InvalidParameterError | ResourceNotFoundError @@ -1992,7 +1977,7 @@ interface CloudWatchLogsService$ { options?: HttpHandlerOptions, ): Effect.Effect< TestMetricFilterCommandOutput, - Cause.TimeoutException | SdkError | InvalidParameterError | ServiceUnavailableError + Cause.TimeoutError | SdkError | InvalidParameterError | ServiceUnavailableError >; /** @@ -2003,7 +1988,7 @@ interface CloudWatchLogsService$ { options?: HttpHandlerOptions, ): Effect.Effect< TestTransformerCommandOutput, - Cause.TimeoutException | SdkError | InvalidOperationError | InvalidParameterError | ServiceUnavailableError + Cause.TimeoutError | SdkError | InvalidOperationError | InvalidParameterError | ServiceUnavailableError >; /** @@ -2014,7 +1999,7 @@ interface CloudWatchLogsService$ { options?: HttpHandlerOptions, ): Effect.Effect< UntagLogGroupCommandOutput, - Cause.TimeoutException | SdkError | ResourceNotFoundError + Cause.TimeoutError | SdkError | ResourceNotFoundError >; /** @@ -2025,7 +2010,7 @@ interface CloudWatchLogsService$ { options?: HttpHandlerOptions, ): Effect.Effect< UntagResourceCommandOutput, - Cause.TimeoutException | SdkError | InvalidParameterError | ResourceNotFoundError | ServiceUnavailableError + Cause.TimeoutError | SdkError | InvalidParameterError | ResourceNotFoundError | ServiceUnavailableError >; /** @@ -2036,7 +2021,7 @@ interface CloudWatchLogsService$ { options?: HttpHandlerOptions, ): Effect.Effect< UpdateAnomalyCommandOutput, - | Cause.TimeoutException + | Cause.TimeoutError | SdkError | InvalidParameterError | OperationAbortedError @@ -2052,7 +2037,7 @@ interface CloudWatchLogsService$ { options?: HttpHandlerOptions, ): Effect.Effect< UpdateDeliveryConfigurationCommandOutput, - | Cause.TimeoutException + | Cause.TimeoutError | SdkError | AccessDeniedError | ConflictError @@ -2070,7 +2055,7 @@ interface CloudWatchLogsService$ { options?: HttpHandlerOptions, ): Effect.Effect< UpdateLogAnomalyDetectorCommandOutput, - | Cause.TimeoutException + | Cause.TimeoutError | SdkError | InvalidParameterError | OperationAbortedError @@ -2086,7 +2071,7 @@ interface CloudWatchLogsService$ { options?: HttpHandlerOptions, ): Effect.Effect< UpdateScheduledQueryCommandOutput, - | Cause.TimeoutException + | Cause.TimeoutError | SdkError | AccessDeniedError | InternalServerError @@ -2117,10 +2102,10 @@ export const makeCloudWatchLogsService = Effect.gen(function*() { * @since 1.0.0 * @category models */ -export class CloudWatchLogsService extends Effect.Tag("@effect-aws/client-cloudwatch-logs/CloudWatchLogsService")< +export class CloudWatchLogsService extends ServiceMap.Service< CloudWatchLogsService, CloudWatchLogsService$ ->() { +>()("@effect-aws/client-cloudwatch-logs/CloudWatchLogsService") { static readonly defaultLayer = Layer.effect(this, makeCloudWatchLogsService).pipe(Layer.provide(Instance.layer)); static readonly layer = (config: CloudWatchLogsService.Config) => Layer.effect(this, makeCloudWatchLogsService).pipe( diff --git a/packages/client-cloudwatch-logs/src/CloudWatchLogsServiceConfig.ts b/packages/client-cloudwatch-logs/src/CloudWatchLogsServiceConfig.ts index 877589a2..5c2c10e8 100644 --- a/packages/client-cloudwatch-logs/src/CloudWatchLogsServiceConfig.ts +++ b/packages/client-cloudwatch-logs/src/CloudWatchLogsServiceConfig.ts @@ -3,18 +3,17 @@ */ import type { CloudWatchLogsClientConfig } from "@aws-sdk/client-cloudwatch-logs"; import { ServiceLogger } from "@effect-aws/commons"; -import { Effect, FiberRef, Layer } from "effect"; +import { Effect, Layer, ServiceMap } from "effect"; import { dual } from "effect/Function"; -import { globalValue } from "effect/GlobalValue"; import type { CloudWatchLogsService } from "./CloudWatchLogsService.js"; /** * @since 1.0.0 * @category cloudwatch-logs service config */ -const currentCloudWatchLogsServiceConfig = globalValue( +const currentCloudWatchLogsServiceConfig = ServiceMap.Reference( "@effect-aws/client-cloudwatch-logs/currentCloudWatchLogsServiceConfig", - () => FiberRef.unsafeMake({}), + { defaultValue: () => ({}) }, ); /** @@ -27,7 +26,7 @@ export const withCloudWatchLogsServiceConfig: { } = dual( 2, (effect: Effect.Effect, config: CloudWatchLogsService.Config): Effect.Effect => - Effect.locally(effect, currentCloudWatchLogsServiceConfig, config), + Effect.provideService(effect, currentCloudWatchLogsServiceConfig, config), ); /** @@ -35,14 +34,14 @@ export const withCloudWatchLogsServiceConfig: { * @category cloudwatch-logs service config */ export const setCloudWatchLogsServiceConfig = (config: CloudWatchLogsService.Config) => - Layer.locallyScoped(currentCloudWatchLogsServiceConfig, config); + Layer.succeed(currentCloudWatchLogsServiceConfig, config); /** * @since 1.0.0 * @category adapters */ export const toCloudWatchLogsClientConfig: Effect.Effect = Effect.gen(function*() { - const { logger: serviceLogger, ...config } = yield* FiberRef.get(currentCloudWatchLogsServiceConfig); + const { logger: serviceLogger, ...config } = yield* currentCloudWatchLogsServiceConfig; const logger = serviceLogger === true ? yield* ServiceLogger.toClientLogger(ServiceLogger.defaultServiceLogger) diff --git a/packages/client-cloudwatch-logs/test/CloudWatchLogs.test.ts b/packages/client-cloudwatch-logs/test/CloudWatchLogs.test.ts index c73342b6..1b53f54c 100644 --- a/packages/client-cloudwatch-logs/test/CloudWatchLogs.test.ts +++ b/packages/client-cloudwatch-logs/test/CloudWatchLogs.test.ts @@ -26,7 +26,7 @@ describe("CloudWatchLogsClientImpl", () => { const args = {} as unknown as DescribeLogGroupsCommandInput; - const program = CloudWatchLogs.describeLogGroups(args); + const program = CloudWatchLogs.use((svc) => svc.describeLogGroups(args)); const result = await pipe( program, @@ -46,7 +46,7 @@ describe("CloudWatchLogsClientImpl", () => { const args = {} as unknown as DescribeLogGroupsCommandInput; - const program = CloudWatchLogs.describeLogGroups(args); + const program = CloudWatchLogs.use((svc) => svc.describeLogGroups(args)); const result = await pipe( program, @@ -69,7 +69,7 @@ describe("CloudWatchLogsClientImpl", () => { const args = {} as unknown as DescribeLogGroupsCommandInput; - const program = CloudWatchLogs.describeLogGroups(args); + const program = CloudWatchLogs.use((svc) => svc.describeLogGroups(args)); const result = await pipe( program, @@ -93,7 +93,7 @@ describe("CloudWatchLogsClientImpl", () => { const args = {} as unknown as DescribeLogGroupsCommandInput; - const program = CloudWatchLogs.describeLogGroups(args); + const program = CloudWatchLogs.use((svc) => svc.describeLogGroups(args)); const result = await pipe( program, @@ -121,7 +121,7 @@ describe("CloudWatchLogsClientImpl", () => { const args = {} as unknown as DescribeLogGroupsCommandInput; - const program = CloudWatchLogs.describeLogGroups(args); + const program = CloudWatchLogs.use((svc) => svc.describeLogGroups(args)); const result = await pipe( program, @@ -131,7 +131,7 @@ describe("CloudWatchLogsClientImpl", () => { expect(result).toEqual( Exit.fail( - SdkError({ + new SdkError({ ...new Error("test"), name: "SdkError", message: "test", @@ -156,7 +156,7 @@ describe("CloudWatchLogsClientImpl", () => { const args = {} as unknown as DescribeLogGroupsCommandInput; - const program = CloudWatchLogs.describeLogGroups(args).pipe( + const program = CloudWatchLogs.use((svc) => svc.describeLogGroups(args)).pipe( Effect.catchTag("NotHandledException" as any, () => Effect.succeed(null)), ); @@ -166,9 +166,9 @@ describe("CloudWatchLogsClientImpl", () => { Effect.runPromiseExit, ); - expect(result).toEqual( + expect(result).toContainEqual( Exit.fail( - SdkError({ + new SdkError({ ...new Error("test"), name: "SdkError", message: "test", diff --git a/packages/client-cloudwatch/.projen/deps.json b/packages/client-cloudwatch/.projen/deps.json index b3a53587..0599a884 100644 --- a/packages/client-cloudwatch/.projen/deps.json +++ b/packages/client-cloudwatch/.projen/deps.json @@ -7,6 +7,7 @@ }, { "name": "effect", + "version": "4.0.0-beta.8", "type": "build" }, { @@ -16,7 +17,7 @@ }, { "name": "effect", - "version": ">=3.0.4 <4.0.0", + "version": ">=4.0.0 <5.0.0", "type": "peer" }, { diff --git a/packages/client-cloudwatch/README.md b/packages/client-cloudwatch/README.md index 1e175423..f4b681ef 100644 --- a/packages/client-cloudwatch/README.md +++ b/packages/client-cloudwatch/README.md @@ -16,7 +16,7 @@ With default CloudWatchClient instance: ```typescript import { CloudWatch } from "@effect-aws/client-cloudwatch"; -const program = CloudWatch.describeAlarms(args); +const program = CloudWatch.use((svc) => svc.describeAlarms(args)); const result = pipe( program, @@ -30,7 +30,7 @@ With custom CloudWatchClient instance: ```typescript import { CloudWatch } from "@effect-aws/client-cloudwatch"; -const program = CloudWatch.describeAlarms(args); +const program = CloudWatch.use((svc) => svc.describeAlarms(args)); const result = await pipe( program, @@ -46,7 +46,7 @@ With custom CloudWatchClient configuration: ```typescript import { CloudWatch } from "@effect-aws/client-cloudwatch"; -const program = CloudWatch.describeAlarms(args); +const program = CloudWatch.use((svc) => svc.describeAlarms(args)); const result = await pipe( program, diff --git a/packages/client-cloudwatch/package.json b/packages/client-cloudwatch/package.json index a1f288fd..0005083f 100644 --- a/packages/client-cloudwatch/package.json +++ b/packages/client-cloudwatch/package.json @@ -26,11 +26,11 @@ }, "devDependencies": { "@types/node": "ts5.4", - "effect": "^3.16.4", + "effect": "4.0.0-beta.8", "typescript": "^5.4.2" }, "peerDependencies": { - "effect": ">=3.0.4 <4.0.0" + "effect": ">=4.0.0 <5.0.0" }, "dependencies": { "@aws-sdk/client-cloudwatch": "^3", diff --git a/packages/client-cloudwatch/src/CloudWatchClientInstance.ts b/packages/client-cloudwatch/src/CloudWatchClientInstance.ts index e16f78b1..29e4fd20 100644 --- a/packages/client-cloudwatch/src/CloudWatchClientInstance.ts +++ b/packages/client-cloudwatch/src/CloudWatchClientInstance.ts @@ -2,16 +2,16 @@ * @since 1.0.0 */ import { CloudWatchClient } from "@aws-sdk/client-cloudwatch"; -import { Context, Effect, Layer } from "effect"; +import { Effect, Layer, ServiceMap } from "effect"; import * as CloudWatchServiceConfig from "./CloudWatchServiceConfig.js"; /** * @since 1.0.0 * @category tags */ -export class CloudWatchClientInstance extends Context.Tag( +export class CloudWatchClientInstance extends ServiceMap.Service()( "@effect-aws/client-cloudwatch/CloudWatchClientInstance", -)() {} +) {} /** * @since 1.0.0 @@ -30,4 +30,4 @@ export const make = Effect.flatMap( * @since 1.0.0 * @category layers */ -export const layer = Layer.scoped(CloudWatchClientInstance, make); +export const layer = Layer.effect(CloudWatchClientInstance, make); diff --git a/packages/client-cloudwatch/src/CloudWatchService.ts b/packages/client-cloudwatch/src/CloudWatchService.ts index 53a1922e..e73b5e69 100644 --- a/packages/client-cloudwatch/src/CloudWatchService.ts +++ b/packages/client-cloudwatch/src/CloudWatchService.ts @@ -125,7 +125,7 @@ import { import type { HttpHandlerOptions, ServiceLogger } from "@effect-aws/commons"; import { Service } from "@effect-aws/commons"; import type { Cause } from "effect"; -import { Effect, Layer } from "effect"; +import { Effect, Layer, ServiceMap } from "effect"; import * as Instance from "./CloudWatchClientInstance.js"; import * as CloudWatchServiceConfig from "./CloudWatchServiceConfig.js"; import type { @@ -200,7 +200,7 @@ interface CloudWatchService$ { options?: HttpHandlerOptions, ): Effect.Effect< DeleteAlarmsCommandOutput, - Cause.TimeoutException | SdkError | ResourceNotFoundError + Cause.TimeoutError | SdkError | ResourceNotFoundError >; /** @@ -211,7 +211,7 @@ interface CloudWatchService$ { options?: HttpHandlerOptions, ): Effect.Effect< DeleteAnomalyDetectorCommandOutput, - | Cause.TimeoutException + | Cause.TimeoutError | SdkError | InternalServiceFaultError | InvalidParameterCombinationError @@ -228,7 +228,7 @@ interface CloudWatchService$ { options?: HttpHandlerOptions, ): Effect.Effect< DeleteDashboardsCommandOutput, - | Cause.TimeoutException + | Cause.TimeoutError | SdkError | ConflictError | DashboardNotFoundError @@ -244,7 +244,7 @@ interface CloudWatchService$ { options?: HttpHandlerOptions, ): Effect.Effect< DeleteInsightRulesCommandOutput, - Cause.TimeoutException | SdkError | InvalidParameterValueError | MissingRequiredParameterError + Cause.TimeoutError | SdkError | InvalidParameterValueError | MissingRequiredParameterError >; /** @@ -255,7 +255,7 @@ interface CloudWatchService$ { options?: HttpHandlerOptions, ): Effect.Effect< DeleteMetricStreamCommandOutput, - | Cause.TimeoutException + | Cause.TimeoutError | SdkError | InternalServiceFaultError | InvalidParameterValueError @@ -270,7 +270,7 @@ interface CloudWatchService$ { options?: HttpHandlerOptions, ): Effect.Effect< DescribeAlarmContributorsCommandOutput, - Cause.TimeoutException | SdkError | InvalidNextTokenError | ResourceNotFoundError + Cause.TimeoutError | SdkError | InvalidNextTokenError | ResourceNotFoundError >; /** @@ -281,7 +281,7 @@ interface CloudWatchService$ { options?: HttpHandlerOptions, ): Effect.Effect< DescribeAlarmHistoryCommandOutput, - Cause.TimeoutException | SdkError | InvalidNextTokenError + Cause.TimeoutError | SdkError | InvalidNextTokenError >; /** @@ -292,7 +292,7 @@ interface CloudWatchService$ { options?: HttpHandlerOptions, ): Effect.Effect< DescribeAlarmsCommandOutput, - Cause.TimeoutException | SdkError | InvalidNextTokenError + Cause.TimeoutError | SdkError | InvalidNextTokenError >; /** @@ -303,7 +303,7 @@ interface CloudWatchService$ { options?: HttpHandlerOptions, ): Effect.Effect< DescribeAlarmsForMetricCommandOutput, - Cause.TimeoutException | SdkError + Cause.TimeoutError | SdkError >; /** @@ -314,7 +314,7 @@ interface CloudWatchService$ { options?: HttpHandlerOptions, ): Effect.Effect< DescribeAnomalyDetectorsCommandOutput, - | Cause.TimeoutException + | Cause.TimeoutError | SdkError | InternalServiceFaultError | InvalidNextTokenError @@ -330,7 +330,7 @@ interface CloudWatchService$ { options?: HttpHandlerOptions, ): Effect.Effect< DescribeInsightRulesCommandOutput, - Cause.TimeoutException | SdkError | InvalidNextTokenError + Cause.TimeoutError | SdkError | InvalidNextTokenError >; /** @@ -341,7 +341,7 @@ interface CloudWatchService$ { options?: HttpHandlerOptions, ): Effect.Effect< DisableAlarmActionsCommandOutput, - Cause.TimeoutException | SdkError + Cause.TimeoutError | SdkError >; /** @@ -352,7 +352,7 @@ interface CloudWatchService$ { options?: HttpHandlerOptions, ): Effect.Effect< DisableInsightRulesCommandOutput, - Cause.TimeoutException | SdkError | InvalidParameterValueError | MissingRequiredParameterError + Cause.TimeoutError | SdkError | InvalidParameterValueError | MissingRequiredParameterError >; /** @@ -363,7 +363,7 @@ interface CloudWatchService$ { options?: HttpHandlerOptions, ): Effect.Effect< EnableAlarmActionsCommandOutput, - Cause.TimeoutException | SdkError + Cause.TimeoutError | SdkError >; /** @@ -374,7 +374,7 @@ interface CloudWatchService$ { options?: HttpHandlerOptions, ): Effect.Effect< EnableInsightRulesCommandOutput, - Cause.TimeoutException | SdkError | InvalidParameterValueError | LimitExceededError | MissingRequiredParameterError + Cause.TimeoutError | SdkError | InvalidParameterValueError | LimitExceededError | MissingRequiredParameterError >; /** @@ -385,7 +385,7 @@ interface CloudWatchService$ { options?: HttpHandlerOptions, ): Effect.Effect< GetDashboardCommandOutput, - Cause.TimeoutException | SdkError | DashboardNotFoundError | InternalServiceFaultError | InvalidParameterValueError + Cause.TimeoutError | SdkError | DashboardNotFoundError | InternalServiceFaultError | InvalidParameterValueError >; /** @@ -396,7 +396,7 @@ interface CloudWatchService$ { options?: HttpHandlerOptions, ): Effect.Effect< GetInsightRuleReportCommandOutput, - | Cause.TimeoutException + | Cause.TimeoutError | SdkError | InvalidParameterValueError | MissingRequiredParameterError @@ -411,7 +411,7 @@ interface CloudWatchService$ { options?: HttpHandlerOptions, ): Effect.Effect< GetMetricDataCommandOutput, - Cause.TimeoutException | SdkError | InvalidNextTokenError + Cause.TimeoutError | SdkError | InvalidNextTokenError >; /** @@ -422,7 +422,7 @@ interface CloudWatchService$ { options?: HttpHandlerOptions, ): Effect.Effect< GetMetricStatisticsCommandOutput, - | Cause.TimeoutException + | Cause.TimeoutError | SdkError | InternalServiceFaultError | InvalidParameterCombinationError @@ -438,7 +438,7 @@ interface CloudWatchService$ { options?: HttpHandlerOptions, ): Effect.Effect< GetMetricStreamCommandOutput, - | Cause.TimeoutException + | Cause.TimeoutError | SdkError | InternalServiceFaultError | InvalidParameterCombinationError @@ -455,7 +455,7 @@ interface CloudWatchService$ { options?: HttpHandlerOptions, ): Effect.Effect< GetMetricWidgetImageCommandOutput, - Cause.TimeoutException | SdkError + Cause.TimeoutError | SdkError >; /** @@ -466,7 +466,7 @@ interface CloudWatchService$ { options?: HttpHandlerOptions, ): Effect.Effect< ListDashboardsCommandOutput, - Cause.TimeoutException | SdkError | InternalServiceFaultError | InvalidParameterValueError + Cause.TimeoutError | SdkError | InternalServiceFaultError | InvalidParameterValueError >; /** @@ -477,11 +477,7 @@ interface CloudWatchService$ { options?: HttpHandlerOptions, ): Effect.Effect< ListManagedInsightRulesCommandOutput, - | Cause.TimeoutException - | SdkError - | InvalidNextTokenError - | InvalidParameterValueError - | MissingRequiredParameterError + Cause.TimeoutError | SdkError | InvalidNextTokenError | InvalidParameterValueError | MissingRequiredParameterError >; /** @@ -492,7 +488,7 @@ interface CloudWatchService$ { options?: HttpHandlerOptions, ): Effect.Effect< ListMetricStreamsCommandOutput, - | Cause.TimeoutException + | Cause.TimeoutError | SdkError | InternalServiceFaultError | InvalidNextTokenError @@ -508,7 +504,7 @@ interface CloudWatchService$ { options?: HttpHandlerOptions, ): Effect.Effect< ListMetricsCommandOutput, - Cause.TimeoutException | SdkError | InternalServiceFaultError | InvalidParameterValueError + Cause.TimeoutError | SdkError | InternalServiceFaultError | InvalidParameterValueError >; /** @@ -519,7 +515,7 @@ interface CloudWatchService$ { options?: HttpHandlerOptions, ): Effect.Effect< ListTagsForResourceCommandOutput, - | Cause.TimeoutException + | Cause.TimeoutError | SdkError | InternalServiceFaultError | InvalidParameterValueError @@ -534,7 +530,7 @@ interface CloudWatchService$ { options?: HttpHandlerOptions, ): Effect.Effect< PutAnomalyDetectorCommandOutput, - | Cause.TimeoutException + | Cause.TimeoutError | SdkError | InternalServiceFaultError | InvalidParameterCombinationError @@ -551,7 +547,7 @@ interface CloudWatchService$ { options?: HttpHandlerOptions, ): Effect.Effect< PutCompositeAlarmCommandOutput, - Cause.TimeoutException | SdkError | LimitExceededFaultError + Cause.TimeoutError | SdkError | LimitExceededFaultError >; /** @@ -562,7 +558,7 @@ interface CloudWatchService$ { options?: HttpHandlerOptions, ): Effect.Effect< PutDashboardCommandOutput, - Cause.TimeoutException | SdkError | ConflictError | DashboardInvalidInputError | InternalServiceFaultError + Cause.TimeoutError | SdkError | ConflictError | DashboardInvalidInputError | InternalServiceFaultError >; /** @@ -573,7 +569,7 @@ interface CloudWatchService$ { options?: HttpHandlerOptions, ): Effect.Effect< PutInsightRuleCommandOutput, - Cause.TimeoutException | SdkError | InvalidParameterValueError | LimitExceededError | MissingRequiredParameterError + Cause.TimeoutError | SdkError | InvalidParameterValueError | LimitExceededError | MissingRequiredParameterError >; /** @@ -584,7 +580,7 @@ interface CloudWatchService$ { options?: HttpHandlerOptions, ): Effect.Effect< PutManagedInsightRulesCommandOutput, - Cause.TimeoutException | SdkError | InvalidParameterValueError | MissingRequiredParameterError + Cause.TimeoutError | SdkError | InvalidParameterValueError | MissingRequiredParameterError >; /** @@ -595,7 +591,7 @@ interface CloudWatchService$ { options?: HttpHandlerOptions, ): Effect.Effect< PutMetricAlarmCommandOutput, - Cause.TimeoutException | SdkError | LimitExceededFaultError + Cause.TimeoutError | SdkError | LimitExceededFaultError >; /** @@ -606,7 +602,7 @@ interface CloudWatchService$ { options?: HttpHandlerOptions, ): Effect.Effect< PutMetricDataCommandOutput, - | Cause.TimeoutException + | Cause.TimeoutError | SdkError | InternalServiceFaultError | InvalidParameterCombinationError @@ -622,7 +618,7 @@ interface CloudWatchService$ { options?: HttpHandlerOptions, ): Effect.Effect< PutMetricStreamCommandOutput, - | Cause.TimeoutException + | Cause.TimeoutError | SdkError | ConcurrentModificationError | InternalServiceFaultError @@ -639,7 +635,7 @@ interface CloudWatchService$ { options?: HttpHandlerOptions, ): Effect.Effect< SetAlarmStateCommandOutput, - Cause.TimeoutException | SdkError | InvalidFormatFaultError | ResourceNotFoundError + Cause.TimeoutError | SdkError | InvalidFormatFaultError | ResourceNotFoundError >; /** @@ -650,7 +646,7 @@ interface CloudWatchService$ { options?: HttpHandlerOptions, ): Effect.Effect< StartMetricStreamsCommandOutput, - | Cause.TimeoutException + | Cause.TimeoutError | SdkError | InternalServiceFaultError | InvalidParameterValueError @@ -665,7 +661,7 @@ interface CloudWatchService$ { options?: HttpHandlerOptions, ): Effect.Effect< StopMetricStreamsCommandOutput, - | Cause.TimeoutException + | Cause.TimeoutError | SdkError | InternalServiceFaultError | InvalidParameterValueError @@ -680,7 +676,7 @@ interface CloudWatchService$ { options?: HttpHandlerOptions, ): Effect.Effect< TagResourceCommandOutput, - | Cause.TimeoutException + | Cause.TimeoutError | SdkError | ConcurrentModificationError | ConflictError @@ -697,7 +693,7 @@ interface CloudWatchService$ { options?: HttpHandlerOptions, ): Effect.Effect< UntagResourceCommandOutput, - | Cause.TimeoutException + | Cause.TimeoutError | SdkError | ConcurrentModificationError | ConflictError @@ -728,10 +724,10 @@ export const makeCloudWatchService = Effect.gen(function*() { * @since 1.0.0 * @category models */ -export class CloudWatchService extends Effect.Tag("@effect-aws/client-cloudwatch/CloudWatchService")< +export class CloudWatchService extends ServiceMap.Service< CloudWatchService, CloudWatchService$ ->() { +>()("@effect-aws/client-cloudwatch/CloudWatchService") { static readonly defaultLayer = Layer.effect(this, makeCloudWatchService).pipe(Layer.provide(Instance.layer)); static readonly layer = (config: CloudWatchService.Config) => Layer.effect(this, makeCloudWatchService).pipe( diff --git a/packages/client-cloudwatch/src/CloudWatchServiceConfig.ts b/packages/client-cloudwatch/src/CloudWatchServiceConfig.ts index f25d8d22..12b9ccde 100644 --- a/packages/client-cloudwatch/src/CloudWatchServiceConfig.ts +++ b/packages/client-cloudwatch/src/CloudWatchServiceConfig.ts @@ -3,18 +3,17 @@ */ import type { CloudWatchClientConfig } from "@aws-sdk/client-cloudwatch"; import { ServiceLogger } from "@effect-aws/commons"; -import { Effect, FiberRef, Layer } from "effect"; +import { Effect, Layer, ServiceMap } from "effect"; import { dual } from "effect/Function"; -import { globalValue } from "effect/GlobalValue"; import type { CloudWatchService } from "./CloudWatchService.js"; /** * @since 1.0.0 * @category cloudwatch service config */ -const currentCloudWatchServiceConfig = globalValue( +const currentCloudWatchServiceConfig = ServiceMap.Reference( "@effect-aws/client-cloudwatch/currentCloudWatchServiceConfig", - () => FiberRef.unsafeMake({}), + { defaultValue: () => ({}) }, ); /** @@ -27,7 +26,7 @@ export const withCloudWatchServiceConfig: { } = dual( 2, (effect: Effect.Effect, config: CloudWatchService.Config): Effect.Effect => - Effect.locally(effect, currentCloudWatchServiceConfig, config), + Effect.provideService(effect, currentCloudWatchServiceConfig, config), ); /** @@ -35,14 +34,14 @@ export const withCloudWatchServiceConfig: { * @category cloudwatch service config */ export const setCloudWatchServiceConfig = (config: CloudWatchService.Config) => - Layer.locallyScoped(currentCloudWatchServiceConfig, config); + Layer.succeed(currentCloudWatchServiceConfig, config); /** * @since 1.0.0 * @category adapters */ export const toCloudWatchClientConfig: Effect.Effect = Effect.gen(function*() { - const { logger: serviceLogger, ...config } = yield* FiberRef.get(currentCloudWatchServiceConfig); + const { logger: serviceLogger, ...config } = yield* currentCloudWatchServiceConfig; const logger = serviceLogger === true ? yield* ServiceLogger.toClientLogger(ServiceLogger.defaultServiceLogger) diff --git a/packages/client-cloudwatch/test/CloudWatch.test.ts b/packages/client-cloudwatch/test/CloudWatch.test.ts index 19c7694c..3b902c64 100644 --- a/packages/client-cloudwatch/test/CloudWatch.test.ts +++ b/packages/client-cloudwatch/test/CloudWatch.test.ts @@ -26,7 +26,7 @@ describe("CloudWatchClientImpl", () => { const args = {} as unknown as DescribeAlarmsCommandInput; - const program = CloudWatch.describeAlarms(args); + const program = CloudWatch.use((svc) => svc.describeAlarms(args)); const result = await pipe( program, @@ -46,7 +46,7 @@ describe("CloudWatchClientImpl", () => { const args = {} as unknown as DescribeAlarmsCommandInput; - const program = CloudWatch.describeAlarms(args); + const program = CloudWatch.use((svc) => svc.describeAlarms(args)); const result = await pipe( program, @@ -69,7 +69,7 @@ describe("CloudWatchClientImpl", () => { const args = {} as unknown as DescribeAlarmsCommandInput; - const program = CloudWatch.describeAlarms(args); + const program = CloudWatch.use((svc) => svc.describeAlarms(args)); const result = await pipe( program, @@ -93,7 +93,7 @@ describe("CloudWatchClientImpl", () => { const args = {} as unknown as DescribeAlarmsCommandInput; - const program = CloudWatch.describeAlarms(args); + const program = CloudWatch.use((svc) => svc.describeAlarms(args)); const result = await pipe( program, @@ -121,7 +121,7 @@ describe("CloudWatchClientImpl", () => { const args = {} as unknown as DescribeAlarmsCommandInput; - const program = CloudWatch.describeAlarms(args); + const program = CloudWatch.use((svc) => svc.describeAlarms(args)); const result = await pipe( program, @@ -131,7 +131,7 @@ describe("CloudWatchClientImpl", () => { expect(result).toEqual( Exit.fail( - SdkError({ + new SdkError({ ...new Error("test"), name: "SdkError", message: "test", @@ -156,7 +156,7 @@ describe("CloudWatchClientImpl", () => { const args = {} as unknown as DescribeAlarmsCommandInput; - const program = CloudWatch.describeAlarms(args).pipe( + const program = CloudWatch.use((svc) => svc.describeAlarms(args)).pipe( Effect.catchTag("NotHandledException" as any, () => Effect.succeed(null)), ); @@ -166,9 +166,9 @@ describe("CloudWatchClientImpl", () => { Effect.runPromiseExit, ); - expect(result).toEqual( + expect(result).toContainEqual( Exit.fail( - SdkError({ + new SdkError({ ...new Error("test"), name: "SdkError", message: "test", diff --git a/packages/client-codedeploy/.projen/deps.json b/packages/client-codedeploy/.projen/deps.json index 13c0698c..c5480560 100644 --- a/packages/client-codedeploy/.projen/deps.json +++ b/packages/client-codedeploy/.projen/deps.json @@ -7,6 +7,7 @@ }, { "name": "effect", + "version": "4.0.0-beta.8", "type": "build" }, { @@ -16,7 +17,7 @@ }, { "name": "effect", - "version": ">=3.0.4 <4.0.0", + "version": ">=4.0.0 <5.0.0", "type": "peer" }, { diff --git a/packages/client-codedeploy/README.md b/packages/client-codedeploy/README.md index 28c36ab5..d0182ee5 100644 --- a/packages/client-codedeploy/README.md +++ b/packages/client-codedeploy/README.md @@ -16,7 +16,7 @@ With default CodeDeployClient instance: ```typescript import { CodeDeploy } from "@effect-aws/client-codedeploy"; -const program = CodeDeploy.listApplications(args); +const program = CodeDeploy.use((svc) => svc.listApplications(args)); const result = pipe( program, @@ -30,7 +30,7 @@ With custom CodeDeployClient instance: ```typescript import { CodeDeploy } from "@effect-aws/client-codedeploy"; -const program = CodeDeploy.listApplications(args); +const program = CodeDeploy.use((svc) => svc.listApplications(args)); const result = await pipe( program, @@ -46,7 +46,7 @@ With custom CodeDeployClient configuration: ```typescript import { CodeDeploy } from "@effect-aws/client-codedeploy"; -const program = CodeDeploy.listApplications(args); +const program = CodeDeploy.use((svc) => svc.listApplications(args)); const result = await pipe( program, diff --git a/packages/client-codedeploy/package.json b/packages/client-codedeploy/package.json index 58746a2c..15aacde4 100644 --- a/packages/client-codedeploy/package.json +++ b/packages/client-codedeploy/package.json @@ -26,11 +26,11 @@ }, "devDependencies": { "@types/node": "ts5.4", - "effect": "^3.16.4", + "effect": "4.0.0-beta.8", "typescript": "^5.4.2" }, "peerDependencies": { - "effect": ">=3.0.4 <4.0.0" + "effect": ">=4.0.0 <5.0.0" }, "dependencies": { "@aws-sdk/client-codedeploy": "^3", diff --git a/packages/client-codedeploy/src/CodeDeployClientInstance.ts b/packages/client-codedeploy/src/CodeDeployClientInstance.ts index 5844748d..7d58f3d1 100644 --- a/packages/client-codedeploy/src/CodeDeployClientInstance.ts +++ b/packages/client-codedeploy/src/CodeDeployClientInstance.ts @@ -2,16 +2,16 @@ * @since 1.0.0 */ import { CodeDeployClient } from "@aws-sdk/client-codedeploy"; -import { Context, Effect, Layer } from "effect"; +import { Effect, Layer, ServiceMap } from "effect"; import * as CodeDeployServiceConfig from "./CodeDeployServiceConfig.js"; /** * @since 1.0.0 * @category tags */ -export class CodeDeployClientInstance extends Context.Tag( +export class CodeDeployClientInstance extends ServiceMap.Service()( "@effect-aws/client-codedeploy/CodeDeployClientInstance", -)() {} +) {} /** * @since 1.0.0 @@ -30,4 +30,4 @@ export const make = Effect.flatMap( * @since 1.0.0 * @category layers */ -export const layer = Layer.scoped(CodeDeployClientInstance, make); +export const layer = Layer.effect(CodeDeployClientInstance, make); diff --git a/packages/client-codedeploy/src/CodeDeployService.ts b/packages/client-codedeploy/src/CodeDeployService.ts index 0b3d42bd..a0a45953 100644 --- a/packages/client-codedeploy/src/CodeDeployService.ts +++ b/packages/client-codedeploy/src/CodeDeployService.ts @@ -149,7 +149,7 @@ import { import type { HttpHandlerOptions, ServiceLogger } from "@effect-aws/commons"; import { Service } from "@effect-aws/commons"; import type { Cause } from "effect"; -import { Effect, Layer } from "effect"; +import { Effect, Layer, ServiceMap } from "effect"; import * as Instance from "./CodeDeployClientInstance.js"; import * as CodeDeployServiceConfig from "./CodeDeployServiceConfig.js"; import type { @@ -328,7 +328,7 @@ interface CodeDeployService$ { options?: HttpHandlerOptions, ): Effect.Effect< AddTagsToOnPremisesInstancesCommandOutput, - | Cause.TimeoutException + | Cause.TimeoutError | SdkError | InstanceLimitExceededError | InstanceNameRequiredError @@ -347,7 +347,7 @@ interface CodeDeployService$ { options?: HttpHandlerOptions, ): Effect.Effect< BatchGetApplicationRevisionsCommandOutput, - | Cause.TimeoutException + | Cause.TimeoutError | SdkError | ApplicationDoesNotExistError | ApplicationNameRequiredError @@ -365,7 +365,7 @@ interface CodeDeployService$ { options?: HttpHandlerOptions, ): Effect.Effect< BatchGetApplicationsCommandOutput, - | Cause.TimeoutException + | Cause.TimeoutError | SdkError | ApplicationDoesNotExistError | ApplicationNameRequiredError @@ -381,7 +381,7 @@ interface CodeDeployService$ { options?: HttpHandlerOptions, ): Effect.Effect< BatchGetDeploymentGroupsCommandOutput, - | Cause.TimeoutException + | Cause.TimeoutError | SdkError | ApplicationDoesNotExistError | ApplicationNameRequiredError @@ -400,7 +400,7 @@ interface CodeDeployService$ { options?: HttpHandlerOptions, ): Effect.Effect< BatchGetDeploymentInstancesCommandOutput, - | Cause.TimeoutException + | Cause.TimeoutError | SdkError | BatchLimitExceededError | DeploymentDoesNotExistError @@ -419,7 +419,7 @@ interface CodeDeployService$ { options?: HttpHandlerOptions, ): Effect.Effect< BatchGetDeploymentTargetsCommandOutput, - | Cause.TimeoutException + | Cause.TimeoutError | SdkError | DeploymentDoesNotExistError | DeploymentIdRequiredError @@ -440,7 +440,7 @@ interface CodeDeployService$ { options?: HttpHandlerOptions, ): Effect.Effect< BatchGetDeploymentsCommandOutput, - Cause.TimeoutException | SdkError | BatchLimitExceededError | DeploymentIdRequiredError | InvalidDeploymentIdError + Cause.TimeoutError | SdkError | BatchLimitExceededError | DeploymentIdRequiredError | InvalidDeploymentIdError >; /** @@ -451,7 +451,7 @@ interface CodeDeployService$ { options?: HttpHandlerOptions, ): Effect.Effect< BatchGetOnPremisesInstancesCommandOutput, - Cause.TimeoutException | SdkError | BatchLimitExceededError | InstanceNameRequiredError | InvalidInstanceNameError + Cause.TimeoutError | SdkError | BatchLimitExceededError | InstanceNameRequiredError | InvalidInstanceNameError >; /** @@ -462,7 +462,7 @@ interface CodeDeployService$ { options?: HttpHandlerOptions, ): Effect.Effect< ContinueDeploymentCommandOutput, - | Cause.TimeoutException + | Cause.TimeoutError | SdkError | DeploymentAlreadyCompletedError | DeploymentDoesNotExistError @@ -482,7 +482,7 @@ interface CodeDeployService$ { options?: HttpHandlerOptions, ): Effect.Effect< CreateApplicationCommandOutput, - | Cause.TimeoutException + | Cause.TimeoutError | SdkError | ApplicationAlreadyExistsError | ApplicationLimitExceededError @@ -500,7 +500,7 @@ interface CodeDeployService$ { options?: HttpHandlerOptions, ): Effect.Effect< CreateDeploymentCommandOutput, - | Cause.TimeoutException + | Cause.TimeoutError | SdkError | AlarmsLimitExceededError | ApplicationDoesNotExistError @@ -538,7 +538,7 @@ interface CodeDeployService$ { options?: HttpHandlerOptions, ): Effect.Effect< CreateDeploymentConfigCommandOutput, - | Cause.TimeoutException + | Cause.TimeoutError | SdkError | DeploymentConfigAlreadyExistsError | DeploymentConfigLimitExceededError @@ -558,7 +558,7 @@ interface CodeDeployService$ { options?: HttpHandlerOptions, ): Effect.Effect< CreateDeploymentGroupCommandOutput, - | Cause.TimeoutException + | Cause.TimeoutError | SdkError | AlarmsLimitExceededError | ApplicationDoesNotExistError @@ -603,7 +603,7 @@ interface CodeDeployService$ { options?: HttpHandlerOptions, ): Effect.Effect< DeleteApplicationCommandOutput, - Cause.TimeoutException | SdkError | ApplicationNameRequiredError | InvalidApplicationNameError | InvalidRoleError + Cause.TimeoutError | SdkError | ApplicationNameRequiredError | InvalidApplicationNameError | InvalidRoleError >; /** @@ -614,7 +614,7 @@ interface CodeDeployService$ { options?: HttpHandlerOptions, ): Effect.Effect< DeleteDeploymentConfigCommandOutput, - | Cause.TimeoutException + | Cause.TimeoutError | SdkError | DeploymentConfigInUseError | DeploymentConfigNameRequiredError @@ -630,7 +630,7 @@ interface CodeDeployService$ { options?: HttpHandlerOptions, ): Effect.Effect< DeleteDeploymentGroupCommandOutput, - | Cause.TimeoutException + | Cause.TimeoutError | SdkError | ApplicationNameRequiredError | DeploymentGroupNameRequiredError @@ -647,7 +647,7 @@ interface CodeDeployService$ { options?: HttpHandlerOptions, ): Effect.Effect< DeleteGitHubAccountTokenCommandOutput, - | Cause.TimeoutException + | Cause.TimeoutError | SdkError | GitHubAccountTokenDoesNotExistError | GitHubAccountTokenNameRequiredError @@ -664,7 +664,7 @@ interface CodeDeployService$ { options?: HttpHandlerOptions, ): Effect.Effect< DeleteResourcesByExternalIdCommandOutput, - Cause.TimeoutException | SdkError + Cause.TimeoutError | SdkError >; /** @@ -675,7 +675,7 @@ interface CodeDeployService$ { options?: HttpHandlerOptions, ): Effect.Effect< DeregisterOnPremisesInstanceCommandOutput, - Cause.TimeoutException | SdkError | InstanceNameRequiredError | InvalidInstanceNameError + Cause.TimeoutError | SdkError | InstanceNameRequiredError | InvalidInstanceNameError >; /** @@ -686,7 +686,7 @@ interface CodeDeployService$ { options?: HttpHandlerOptions, ): Effect.Effect< GetApplicationCommandOutput, - | Cause.TimeoutException + | Cause.TimeoutError | SdkError | ApplicationDoesNotExistError | ApplicationNameRequiredError @@ -701,7 +701,7 @@ interface CodeDeployService$ { options?: HttpHandlerOptions, ): Effect.Effect< GetApplicationRevisionCommandOutput, - | Cause.TimeoutException + | Cause.TimeoutError | SdkError | ApplicationDoesNotExistError | ApplicationNameRequiredError @@ -719,11 +719,7 @@ interface CodeDeployService$ { options?: HttpHandlerOptions, ): Effect.Effect< GetDeploymentCommandOutput, - | Cause.TimeoutException - | SdkError - | DeploymentDoesNotExistError - | DeploymentIdRequiredError - | InvalidDeploymentIdError + Cause.TimeoutError | SdkError | DeploymentDoesNotExistError | DeploymentIdRequiredError | InvalidDeploymentIdError >; /** @@ -734,7 +730,7 @@ interface CodeDeployService$ { options?: HttpHandlerOptions, ): Effect.Effect< GetDeploymentConfigCommandOutput, - | Cause.TimeoutException + | Cause.TimeoutError | SdkError | DeploymentConfigDoesNotExistError | DeploymentConfigNameRequiredError @@ -750,7 +746,7 @@ interface CodeDeployService$ { options?: HttpHandlerOptions, ): Effect.Effect< GetDeploymentGroupCommandOutput, - | Cause.TimeoutException + | Cause.TimeoutError | SdkError | ApplicationDoesNotExistError | ApplicationNameRequiredError @@ -769,7 +765,7 @@ interface CodeDeployService$ { options?: HttpHandlerOptions, ): Effect.Effect< GetDeploymentInstanceCommandOutput, - | Cause.TimeoutException + | Cause.TimeoutError | SdkError | DeploymentDoesNotExistError | DeploymentIdRequiredError @@ -788,7 +784,7 @@ interface CodeDeployService$ { options?: HttpHandlerOptions, ): Effect.Effect< GetDeploymentTargetCommandOutput, - | Cause.TimeoutException + | Cause.TimeoutError | SdkError | DeploymentDoesNotExistError | DeploymentIdRequiredError @@ -808,11 +804,7 @@ interface CodeDeployService$ { options?: HttpHandlerOptions, ): Effect.Effect< GetOnPremisesInstanceCommandOutput, - | Cause.TimeoutException - | SdkError - | InstanceNameRequiredError - | InstanceNotRegisteredError - | InvalidInstanceNameError + Cause.TimeoutError | SdkError | InstanceNameRequiredError | InstanceNotRegisteredError | InvalidInstanceNameError >; /** @@ -823,7 +815,7 @@ interface CodeDeployService$ { options?: HttpHandlerOptions, ): Effect.Effect< ListApplicationRevisionsCommandOutput, - | Cause.TimeoutException + | Cause.TimeoutError | SdkError | ApplicationDoesNotExistError | ApplicationNameRequiredError @@ -845,7 +837,7 @@ interface CodeDeployService$ { options?: HttpHandlerOptions, ): Effect.Effect< ListApplicationsCommandOutput, - Cause.TimeoutException | SdkError | InvalidNextTokenError + Cause.TimeoutError | SdkError | InvalidNextTokenError >; /** @@ -856,7 +848,7 @@ interface CodeDeployService$ { options?: HttpHandlerOptions, ): Effect.Effect< ListDeploymentConfigsCommandOutput, - Cause.TimeoutException | SdkError | InvalidNextTokenError + Cause.TimeoutError | SdkError | InvalidNextTokenError >; /** @@ -867,7 +859,7 @@ interface CodeDeployService$ { options?: HttpHandlerOptions, ): Effect.Effect< ListDeploymentGroupsCommandOutput, - | Cause.TimeoutException + | Cause.TimeoutError | SdkError | ApplicationDoesNotExistError | ApplicationNameRequiredError @@ -883,7 +875,7 @@ interface CodeDeployService$ { options?: HttpHandlerOptions, ): Effect.Effect< ListDeploymentInstancesCommandOutput, - | Cause.TimeoutException + | Cause.TimeoutError | SdkError | DeploymentDoesNotExistError | DeploymentIdRequiredError @@ -905,7 +897,7 @@ interface CodeDeployService$ { options?: HttpHandlerOptions, ): Effect.Effect< ListDeploymentTargetsCommandOutput, - | Cause.TimeoutException + | Cause.TimeoutError | SdkError | DeploymentDoesNotExistError | DeploymentIdRequiredError @@ -926,7 +918,7 @@ interface CodeDeployService$ { options?: HttpHandlerOptions, ): Effect.Effect< ListDeploymentsCommandOutput, - | Cause.TimeoutException + | Cause.TimeoutError | SdkError | ApplicationDoesNotExistError | ApplicationNameRequiredError @@ -949,7 +941,7 @@ interface CodeDeployService$ { options?: HttpHandlerOptions, ): Effect.Effect< ListGitHubAccountTokenNamesCommandOutput, - Cause.TimeoutException | SdkError | InvalidNextTokenError | OperationNotSupportedError | ResourceValidationError + Cause.TimeoutError | SdkError | InvalidNextTokenError | OperationNotSupportedError | ResourceValidationError >; /** @@ -960,7 +952,7 @@ interface CodeDeployService$ { options?: HttpHandlerOptions, ): Effect.Effect< ListOnPremisesInstancesCommandOutput, - Cause.TimeoutException | SdkError | InvalidNextTokenError | InvalidRegistrationStatusError | InvalidTagFilterError + Cause.TimeoutError | SdkError | InvalidNextTokenError | InvalidRegistrationStatusError | InvalidTagFilterError >; /** @@ -971,7 +963,7 @@ interface CodeDeployService$ { options?: HttpHandlerOptions, ): Effect.Effect< ListTagsForResourceCommandOutput, - Cause.TimeoutException | SdkError | ArnNotSupportedError | InvalidArnError | ResourceArnRequiredError + Cause.TimeoutError | SdkError | ArnNotSupportedError | InvalidArnError | ResourceArnRequiredError >; /** @@ -982,7 +974,7 @@ interface CodeDeployService$ { options?: HttpHandlerOptions, ): Effect.Effect< PutLifecycleEventHookExecutionStatusCommandOutput, - | Cause.TimeoutException + | Cause.TimeoutError | SdkError | DeploymentDoesNotExistError | DeploymentIdRequiredError @@ -1001,7 +993,7 @@ interface CodeDeployService$ { options?: HttpHandlerOptions, ): Effect.Effect< RegisterApplicationRevisionCommandOutput, - | Cause.TimeoutException + | Cause.TimeoutError | SdkError | ApplicationDoesNotExistError | ApplicationNameRequiredError @@ -1019,7 +1011,7 @@ interface CodeDeployService$ { options?: HttpHandlerOptions, ): Effect.Effect< RegisterOnPremisesInstanceCommandOutput, - | Cause.TimeoutException + | Cause.TimeoutError | SdkError | IamArnRequiredError | IamSessionArnAlreadyRegisteredError @@ -1041,7 +1033,7 @@ interface CodeDeployService$ { options?: HttpHandlerOptions, ): Effect.Effect< RemoveTagsFromOnPremisesInstancesCommandOutput, - | Cause.TimeoutException + | Cause.TimeoutError | SdkError | InstanceLimitExceededError | InstanceNameRequiredError @@ -1060,7 +1052,7 @@ interface CodeDeployService$ { options?: HttpHandlerOptions, ): Effect.Effect< SkipWaitTimeForInstanceTerminationCommandOutput, - | Cause.TimeoutException + | Cause.TimeoutError | SdkError | DeploymentAlreadyCompletedError | DeploymentDoesNotExistError @@ -1078,7 +1070,7 @@ interface CodeDeployService$ { options?: HttpHandlerOptions, ): Effect.Effect< StopDeploymentCommandOutput, - | Cause.TimeoutException + | Cause.TimeoutError | SdkError | DeploymentAlreadyCompletedError | DeploymentDoesNotExistError @@ -1096,7 +1088,7 @@ interface CodeDeployService$ { options?: HttpHandlerOptions, ): Effect.Effect< TagResourceCommandOutput, - | Cause.TimeoutException + | Cause.TimeoutError | SdkError | ApplicationDoesNotExistError | ArnNotSupportedError @@ -1116,7 +1108,7 @@ interface CodeDeployService$ { options?: HttpHandlerOptions, ): Effect.Effect< UntagResourceCommandOutput, - | Cause.TimeoutException + | Cause.TimeoutError | SdkError | ApplicationDoesNotExistError | ArnNotSupportedError @@ -1136,7 +1128,7 @@ interface CodeDeployService$ { options?: HttpHandlerOptions, ): Effect.Effect< UpdateApplicationCommandOutput, - | Cause.TimeoutException + | Cause.TimeoutError | SdkError | ApplicationAlreadyExistsError | ApplicationDoesNotExistError @@ -1152,7 +1144,7 @@ interface CodeDeployService$ { options?: HttpHandlerOptions, ): Effect.Effect< UpdateDeploymentGroupCommandOutput, - | Cause.TimeoutException + | Cause.TimeoutError | SdkError | AlarmsLimitExceededError | ApplicationDoesNotExistError @@ -1209,10 +1201,10 @@ export const makeCodeDeployService = Effect.gen(function*() { * @since 1.0.0 * @category models */ -export class CodeDeployService extends Effect.Tag("@effect-aws/client-codedeploy/CodeDeployService")< +export class CodeDeployService extends ServiceMap.Service< CodeDeployService, CodeDeployService$ ->() { +>()("@effect-aws/client-codedeploy/CodeDeployService") { static readonly defaultLayer = Layer.effect(this, makeCodeDeployService).pipe(Layer.provide(Instance.layer)); static readonly layer = (config: CodeDeployService.Config) => Layer.effect(this, makeCodeDeployService).pipe( diff --git a/packages/client-codedeploy/src/CodeDeployServiceConfig.ts b/packages/client-codedeploy/src/CodeDeployServiceConfig.ts index a3ef51d4..ee325698 100644 --- a/packages/client-codedeploy/src/CodeDeployServiceConfig.ts +++ b/packages/client-codedeploy/src/CodeDeployServiceConfig.ts @@ -3,18 +3,17 @@ */ import type { CodeDeployClientConfig } from "@aws-sdk/client-codedeploy"; import { ServiceLogger } from "@effect-aws/commons"; -import { Effect, FiberRef, Layer } from "effect"; +import { Effect, Layer, ServiceMap } from "effect"; import { dual } from "effect/Function"; -import { globalValue } from "effect/GlobalValue"; import type { CodeDeployService } from "./CodeDeployService.js"; /** * @since 1.0.0 * @category codedeploy service config */ -const currentCodeDeployServiceConfig = globalValue( +const currentCodeDeployServiceConfig = ServiceMap.Reference( "@effect-aws/client-codedeploy/currentCodeDeployServiceConfig", - () => FiberRef.unsafeMake({}), + { defaultValue: () => ({}) }, ); /** @@ -27,7 +26,7 @@ export const withCodeDeployServiceConfig: { } = dual( 2, (effect: Effect.Effect, config: CodeDeployService.Config): Effect.Effect => - Effect.locally(effect, currentCodeDeployServiceConfig, config), + Effect.provideService(effect, currentCodeDeployServiceConfig, config), ); /** @@ -35,14 +34,14 @@ export const withCodeDeployServiceConfig: { * @category codedeploy service config */ export const setCodeDeployServiceConfig = (config: CodeDeployService.Config) => - Layer.locallyScoped(currentCodeDeployServiceConfig, config); + Layer.succeed(currentCodeDeployServiceConfig, config); /** * @since 1.0.0 * @category adapters */ export const toCodeDeployClientConfig: Effect.Effect = Effect.gen(function*() { - const { logger: serviceLogger, ...config } = yield* FiberRef.get(currentCodeDeployServiceConfig); + const { logger: serviceLogger, ...config } = yield* currentCodeDeployServiceConfig; const logger = serviceLogger === true ? yield* ServiceLogger.toClientLogger(ServiceLogger.defaultServiceLogger) diff --git a/packages/client-codedeploy/test/CodeDeploy.test.ts b/packages/client-codedeploy/test/CodeDeploy.test.ts index c0492a13..dc8ce229 100644 --- a/packages/client-codedeploy/test/CodeDeploy.test.ts +++ b/packages/client-codedeploy/test/CodeDeploy.test.ts @@ -26,7 +26,7 @@ describe("CodeDeployClientImpl", () => { const args = {} as unknown as ListApplicationsCommandInput; - const program = CodeDeploy.listApplications(args); + const program = CodeDeploy.use((svc) => svc.listApplications(args)); const result = await pipe( program, @@ -46,7 +46,7 @@ describe("CodeDeployClientImpl", () => { const args = {} as unknown as ListApplicationsCommandInput; - const program = CodeDeploy.listApplications(args); + const program = CodeDeploy.use((svc) => svc.listApplications(args)); const result = await pipe( program, @@ -69,7 +69,7 @@ describe("CodeDeployClientImpl", () => { const args = {} as unknown as ListApplicationsCommandInput; - const program = CodeDeploy.listApplications(args); + const program = CodeDeploy.use((svc) => svc.listApplications(args)); const result = await pipe( program, @@ -93,7 +93,7 @@ describe("CodeDeployClientImpl", () => { const args = {} as unknown as ListApplicationsCommandInput; - const program = CodeDeploy.listApplications(args); + const program = CodeDeploy.use((svc) => svc.listApplications(args)); const result = await pipe( program, @@ -121,7 +121,7 @@ describe("CodeDeployClientImpl", () => { const args = {} as unknown as ListApplicationsCommandInput; - const program = CodeDeploy.listApplications(args); + const program = CodeDeploy.use((svc) => svc.listApplications(args)); const result = await pipe( program, @@ -131,7 +131,7 @@ describe("CodeDeployClientImpl", () => { expect(result).toEqual( Exit.fail( - SdkError({ + new SdkError({ ...new Error("test"), name: "SdkError", message: "test", @@ -156,7 +156,7 @@ describe("CodeDeployClientImpl", () => { const args = {} as unknown as ListApplicationsCommandInput; - const program = CodeDeploy.listApplications(args).pipe( + const program = CodeDeploy.use((svc) => svc.listApplications(args)).pipe( Effect.catchTag("NotHandledException" as any, () => Effect.succeed(null)), ); @@ -166,9 +166,9 @@ describe("CodeDeployClientImpl", () => { Effect.runPromiseExit, ); - expect(result).toEqual( + expect(result).toContainEqual( Exit.fail( - SdkError({ + new SdkError({ ...new Error("test"), name: "SdkError", message: "test", diff --git a/packages/client-cognito-identity-provider/.projen/deps.json b/packages/client-cognito-identity-provider/.projen/deps.json index eff3a2fc..70ac9557 100644 --- a/packages/client-cognito-identity-provider/.projen/deps.json +++ b/packages/client-cognito-identity-provider/.projen/deps.json @@ -7,6 +7,7 @@ }, { "name": "effect", + "version": "4.0.0-beta.8", "type": "build" }, { @@ -16,7 +17,7 @@ }, { "name": "effect", - "version": ">=3.0.4 <4.0.0", + "version": ">=4.0.0 <5.0.0", "type": "peer" }, { diff --git a/packages/client-cognito-identity-provider/README.md b/packages/client-cognito-identity-provider/README.md index ea7e3634..59ae7a28 100644 --- a/packages/client-cognito-identity-provider/README.md +++ b/packages/client-cognito-identity-provider/README.md @@ -16,7 +16,7 @@ With default CognitoIdentityProviderClient instance: ```typescript import { CognitoIdentityProvider } from "@effect-aws/client-cognito-identity-provider"; -const program = CognitoIdentityProvider.listUserPools(args); +const program = CognitoIdentityProvider.use((svc) => svc.listUserPools(args)); const result = pipe( program, @@ -30,7 +30,7 @@ With custom CognitoIdentityProviderClient instance: ```typescript import { CognitoIdentityProvider } from "@effect-aws/client-cognito-identity-provider"; -const program = CognitoIdentityProvider.listUserPools(args); +const program = CognitoIdentityProvider.use((svc) => svc.listUserPools(args)); const result = await pipe( program, @@ -46,7 +46,7 @@ With custom CognitoIdentityProviderClient configuration: ```typescript import { CognitoIdentityProvider } from "@effect-aws/client-cognito-identity-provider"; -const program = CognitoIdentityProvider.listUserPools(args); +const program = CognitoIdentityProvider.use((svc) => svc.listUserPools(args)); const result = await pipe( program, diff --git a/packages/client-cognito-identity-provider/package.json b/packages/client-cognito-identity-provider/package.json index de22ded8..93990517 100644 --- a/packages/client-cognito-identity-provider/package.json +++ b/packages/client-cognito-identity-provider/package.json @@ -26,11 +26,11 @@ }, "devDependencies": { "@types/node": "ts5.4", - "effect": "^3.16.4", + "effect": "4.0.0-beta.8", "typescript": "^5.4.2" }, "peerDependencies": { - "effect": ">=3.0.4 <4.0.0" + "effect": ">=4.0.0 <5.0.0" }, "dependencies": { "@aws-sdk/client-cognito-identity-provider": "^3", diff --git a/packages/client-cognito-identity-provider/src/CognitoIdentityProviderClientInstance.ts b/packages/client-cognito-identity-provider/src/CognitoIdentityProviderClientInstance.ts index e3811654..3878d72b 100644 --- a/packages/client-cognito-identity-provider/src/CognitoIdentityProviderClientInstance.ts +++ b/packages/client-cognito-identity-provider/src/CognitoIdentityProviderClientInstance.ts @@ -2,16 +2,18 @@ * @since 1.0.0 */ import { CognitoIdentityProviderClient } from "@aws-sdk/client-cognito-identity-provider"; -import { Context, Effect, Layer } from "effect"; +import { Effect, Layer, ServiceMap } from "effect"; import * as CognitoIdentityProviderServiceConfig from "./CognitoIdentityProviderServiceConfig.js"; /** * @since 1.0.0 * @category tags */ -export class CognitoIdentityProviderClientInstance extends Context.Tag( - "@effect-aws/client-cognito-identity-provider/CognitoIdentityProviderClientInstance", -)() {} +export class CognitoIdentityProviderClientInstance + extends ServiceMap.Service()( + "@effect-aws/client-cognito-identity-provider/CognitoIdentityProviderClientInstance", + ) +{} /** * @since 1.0.0 @@ -30,4 +32,4 @@ export const make = Effect.flatMap( * @since 1.0.0 * @category layers */ -export const layer = Layer.scoped(CognitoIdentityProviderClientInstance, make); +export const layer = Layer.effect(CognitoIdentityProviderClientInstance, make); diff --git a/packages/client-cognito-identity-provider/src/CognitoIdentityProviderService.ts b/packages/client-cognito-identity-provider/src/CognitoIdentityProviderService.ts index 7ee768e8..5eb7e545 100644 --- a/packages/client-cognito-identity-provider/src/CognitoIdentityProviderService.ts +++ b/packages/client-cognito-identity-provider/src/CognitoIdentityProviderService.ts @@ -365,7 +365,7 @@ import { import type { HttpHandlerOptions, ServiceLogger } from "@effect-aws/commons"; import { Service } from "@effect-aws/commons"; import type { Cause } from "effect"; -import { Effect, Layer } from "effect"; +import { Effect, Layer, ServiceMap } from "effect"; import * as Instance from "./CognitoIdentityProviderClientInstance.js"; import * as CognitoIdentityProviderServiceConfig from "./CognitoIdentityProviderServiceConfig.js"; import type { @@ -561,7 +561,7 @@ interface CognitoIdentityProviderService$ { options?: HttpHandlerOptions, ): Effect.Effect< AddCustomAttributesCommandOutput, - | Cause.TimeoutException + | Cause.TimeoutError | SdkError | InternalError | InvalidParameterError @@ -579,7 +579,7 @@ interface CognitoIdentityProviderService$ { options?: HttpHandlerOptions, ): Effect.Effect< AdminAddUserToGroupCommandOutput, - | Cause.TimeoutException + | Cause.TimeoutError | SdkError | InternalError | InvalidParameterError @@ -597,7 +597,7 @@ interface CognitoIdentityProviderService$ { options?: HttpHandlerOptions, ): Effect.Effect< AdminConfirmSignUpCommandOutput, - | Cause.TimeoutException + | Cause.TimeoutError | SdkError | InternalError | InvalidLambdaResponseError @@ -620,7 +620,7 @@ interface CognitoIdentityProviderService$ { options?: HttpHandlerOptions, ): Effect.Effect< AdminCreateUserCommandOutput, - | Cause.TimeoutException + | Cause.TimeoutError | SdkError | CodeDeliveryFailureError | InternalError @@ -648,7 +648,7 @@ interface CognitoIdentityProviderService$ { options?: HttpHandlerOptions, ): Effect.Effect< AdminDeleteUserCommandOutput, - | Cause.TimeoutException + | Cause.TimeoutError | SdkError | InternalError | InvalidParameterError @@ -666,7 +666,7 @@ interface CognitoIdentityProviderService$ { options?: HttpHandlerOptions, ): Effect.Effect< AdminDeleteUserAttributesCommandOutput, - | Cause.TimeoutException + | Cause.TimeoutError | SdkError | InternalError | InvalidParameterError @@ -684,7 +684,7 @@ interface CognitoIdentityProviderService$ { options?: HttpHandlerOptions, ): Effect.Effect< AdminDisableProviderForUserCommandOutput, - | Cause.TimeoutException + | Cause.TimeoutError | SdkError | AliasExistsError | InternalError @@ -703,7 +703,7 @@ interface CognitoIdentityProviderService$ { options?: HttpHandlerOptions, ): Effect.Effect< AdminDisableUserCommandOutput, - | Cause.TimeoutException + | Cause.TimeoutError | SdkError | InternalError | InvalidParameterError @@ -721,7 +721,7 @@ interface CognitoIdentityProviderService$ { options?: HttpHandlerOptions, ): Effect.Effect< AdminEnableUserCommandOutput, - | Cause.TimeoutException + | Cause.TimeoutError | SdkError | InternalError | InvalidParameterError @@ -739,7 +739,7 @@ interface CognitoIdentityProviderService$ { options?: HttpHandlerOptions, ): Effect.Effect< AdminForgetDeviceCommandOutput, - | Cause.TimeoutException + | Cause.TimeoutError | SdkError | InternalError | InvalidParameterError @@ -758,7 +758,7 @@ interface CognitoIdentityProviderService$ { options?: HttpHandlerOptions, ): Effect.Effect< AdminGetDeviceCommandOutput, - | Cause.TimeoutException + | Cause.TimeoutError | SdkError | InternalError | InvalidParameterError @@ -776,7 +776,7 @@ interface CognitoIdentityProviderService$ { options?: HttpHandlerOptions, ): Effect.Effect< AdminGetUserCommandOutput, - | Cause.TimeoutException + | Cause.TimeoutError | SdkError | InternalError | InvalidParameterError @@ -794,7 +794,7 @@ interface CognitoIdentityProviderService$ { options?: HttpHandlerOptions, ): Effect.Effect< AdminInitiateAuthCommandOutput, - | Cause.TimeoutException + | Cause.TimeoutError | SdkError | InternalError | InvalidEmailRoleAccessPolicyError @@ -823,7 +823,7 @@ interface CognitoIdentityProviderService$ { options?: HttpHandlerOptions, ): Effect.Effect< AdminLinkProviderForUserCommandOutput, - | Cause.TimeoutException + | Cause.TimeoutError | SdkError | AliasExistsError | InternalError @@ -843,7 +843,7 @@ interface CognitoIdentityProviderService$ { options?: HttpHandlerOptions, ): Effect.Effect< AdminListDevicesCommandOutput, - | Cause.TimeoutException + | Cause.TimeoutError | SdkError | InternalError | InvalidParameterError @@ -861,7 +861,7 @@ interface CognitoIdentityProviderService$ { options?: HttpHandlerOptions, ): Effect.Effect< AdminListGroupsForUserCommandOutput, - | Cause.TimeoutException + | Cause.TimeoutError | SdkError | InternalError | InvalidParameterError @@ -879,7 +879,7 @@ interface CognitoIdentityProviderService$ { options?: HttpHandlerOptions, ): Effect.Effect< AdminListUserAuthEventsCommandOutput, - | Cause.TimeoutException + | Cause.TimeoutError | SdkError | InternalError | InvalidParameterError @@ -898,7 +898,7 @@ interface CognitoIdentityProviderService$ { options?: HttpHandlerOptions, ): Effect.Effect< AdminRemoveUserFromGroupCommandOutput, - | Cause.TimeoutException + | Cause.TimeoutError | SdkError | InternalError | InvalidParameterError @@ -916,7 +916,7 @@ interface CognitoIdentityProviderService$ { options?: HttpHandlerOptions, ): Effect.Effect< AdminResetUserPasswordCommandOutput, - | Cause.TimeoutException + | Cause.TimeoutError | SdkError | InternalError | InvalidEmailRoleAccessPolicyError @@ -941,7 +941,7 @@ interface CognitoIdentityProviderService$ { options?: HttpHandlerOptions, ): Effect.Effect< AdminRespondToAuthChallengeCommandOutput, - | Cause.TimeoutException + | Cause.TimeoutError | SdkError | AliasExistsError | CodeMismatchError @@ -975,7 +975,7 @@ interface CognitoIdentityProviderService$ { options?: HttpHandlerOptions, ): Effect.Effect< AdminSetUserMFAPreferenceCommandOutput, - | Cause.TimeoutException + | Cause.TimeoutError | SdkError | InternalError | InvalidParameterError @@ -994,7 +994,7 @@ interface CognitoIdentityProviderService$ { options?: HttpHandlerOptions, ): Effect.Effect< AdminSetUserPasswordCommandOutput, - | Cause.TimeoutException + | Cause.TimeoutError | SdkError | InternalError | InvalidParameterError @@ -1014,7 +1014,7 @@ interface CognitoIdentityProviderService$ { options?: HttpHandlerOptions, ): Effect.Effect< AdminSetUserSettingsCommandOutput, - | Cause.TimeoutException + | Cause.TimeoutError | SdkError | InternalError | InvalidParameterError @@ -1031,7 +1031,7 @@ interface CognitoIdentityProviderService$ { options?: HttpHandlerOptions, ): Effect.Effect< AdminUpdateAuthEventFeedbackCommandOutput, - | Cause.TimeoutException + | Cause.TimeoutError | SdkError | InternalError | InvalidParameterError @@ -1050,7 +1050,7 @@ interface CognitoIdentityProviderService$ { options?: HttpHandlerOptions, ): Effect.Effect< AdminUpdateDeviceStatusCommandOutput, - | Cause.TimeoutException + | Cause.TimeoutError | SdkError | InternalError | InvalidParameterError @@ -1069,7 +1069,7 @@ interface CognitoIdentityProviderService$ { options?: HttpHandlerOptions, ): Effect.Effect< AdminUpdateUserAttributesCommandOutput, - | Cause.TimeoutException + | Cause.TimeoutError | SdkError | AliasExistsError | InternalError @@ -1094,7 +1094,7 @@ interface CognitoIdentityProviderService$ { options?: HttpHandlerOptions, ): Effect.Effect< AdminUserGlobalSignOutCommandOutput, - | Cause.TimeoutException + | Cause.TimeoutError | SdkError | InternalError | InvalidParameterError @@ -1112,7 +1112,7 @@ interface CognitoIdentityProviderService$ { options?: HttpHandlerOptions, ): Effect.Effect< AssociateSoftwareTokenCommandOutput, - | Cause.TimeoutException + | Cause.TimeoutError | SdkError | ConcurrentModificationError | ForbiddenError @@ -1131,7 +1131,7 @@ interface CognitoIdentityProviderService$ { options?: HttpHandlerOptions, ): Effect.Effect< ChangePasswordCommandOutput, - | Cause.TimeoutException + | Cause.TimeoutError | SdkError | ForbiddenError | InternalError @@ -1155,7 +1155,7 @@ interface CognitoIdentityProviderService$ { options?: HttpHandlerOptions, ): Effect.Effect< CompleteWebAuthnRegistrationCommandOutput, - | Cause.TimeoutException + | Cause.TimeoutError | SdkError | ForbiddenError | InternalError @@ -1179,7 +1179,7 @@ interface CognitoIdentityProviderService$ { options?: HttpHandlerOptions, ): Effect.Effect< ConfirmDeviceCommandOutput, - | Cause.TimeoutException + | Cause.TimeoutError | SdkError | DeviceKeyExistsError | ForbiddenError @@ -1205,7 +1205,7 @@ interface CognitoIdentityProviderService$ { options?: HttpHandlerOptions, ): Effect.Effect< ConfirmForgotPasswordCommandOutput, - | Cause.TimeoutException + | Cause.TimeoutError | SdkError | CodeMismatchError | ExpiredCodeError @@ -1234,7 +1234,7 @@ interface CognitoIdentityProviderService$ { options?: HttpHandlerOptions, ): Effect.Effect< ConfirmSignUpCommandOutput, - | Cause.TimeoutException + | Cause.TimeoutError | SdkError | AliasExistsError | CodeMismatchError @@ -1261,7 +1261,7 @@ interface CognitoIdentityProviderService$ { options?: HttpHandlerOptions, ): Effect.Effect< CreateGroupCommandOutput, - | Cause.TimeoutException + | Cause.TimeoutError | SdkError | GroupExistsError | InternalError @@ -1280,7 +1280,7 @@ interface CognitoIdentityProviderService$ { options?: HttpHandlerOptions, ): Effect.Effect< CreateIdentityProviderCommandOutput, - | Cause.TimeoutException + | Cause.TimeoutError | SdkError | DuplicateProviderError | InternalError @@ -1299,7 +1299,7 @@ interface CognitoIdentityProviderService$ { options?: HttpHandlerOptions, ): Effect.Effect< CreateManagedLoginBrandingCommandOutput, - | Cause.TimeoutException + | Cause.TimeoutError | SdkError | ConcurrentModificationError | InternalError @@ -1319,7 +1319,7 @@ interface CognitoIdentityProviderService$ { options?: HttpHandlerOptions, ): Effect.Effect< CreateResourceServerCommandOutput, - | Cause.TimeoutException + | Cause.TimeoutError | SdkError | InternalError | InvalidParameterError @@ -1337,7 +1337,7 @@ interface CognitoIdentityProviderService$ { options?: HttpHandlerOptions, ): Effect.Effect< CreateTermsCommandOutput, - | Cause.TimeoutException + | Cause.TimeoutError | SdkError | ConcurrentModificationError | InternalError @@ -1357,7 +1357,7 @@ interface CognitoIdentityProviderService$ { options?: HttpHandlerOptions, ): Effect.Effect< CreateUserImportJobCommandOutput, - | Cause.TimeoutException + | Cause.TimeoutError | SdkError | InternalError | InvalidParameterError @@ -1376,7 +1376,7 @@ interface CognitoIdentityProviderService$ { options?: HttpHandlerOptions, ): Effect.Effect< CreateUserPoolCommandOutput, - | Cause.TimeoutException + | Cause.TimeoutError | SdkError | FeatureUnavailableInTierError | InternalError @@ -1399,7 +1399,7 @@ interface CognitoIdentityProviderService$ { options?: HttpHandlerOptions, ): Effect.Effect< CreateUserPoolClientCommandOutput, - | Cause.TimeoutException + | Cause.TimeoutError | SdkError | FeatureUnavailableInTierError | InternalError @@ -1420,7 +1420,7 @@ interface CognitoIdentityProviderService$ { options?: HttpHandlerOptions, ): Effect.Effect< CreateUserPoolDomainCommandOutput, - | Cause.TimeoutException + | Cause.TimeoutError | SdkError | ConcurrentModificationError | FeatureUnavailableInTierError @@ -1439,7 +1439,7 @@ interface CognitoIdentityProviderService$ { options?: HttpHandlerOptions, ): Effect.Effect< DeleteGroupCommandOutput, - | Cause.TimeoutException + | Cause.TimeoutError | SdkError | InternalError | InvalidParameterError @@ -1456,7 +1456,7 @@ interface CognitoIdentityProviderService$ { options?: HttpHandlerOptions, ): Effect.Effect< DeleteIdentityProviderCommandOutput, - | Cause.TimeoutException + | Cause.TimeoutError | SdkError | ConcurrentModificationError | InternalError @@ -1475,7 +1475,7 @@ interface CognitoIdentityProviderService$ { options?: HttpHandlerOptions, ): Effect.Effect< DeleteManagedLoginBrandingCommandOutput, - | Cause.TimeoutException + | Cause.TimeoutError | SdkError | ConcurrentModificationError | InternalError @@ -1493,7 +1493,7 @@ interface CognitoIdentityProviderService$ { options?: HttpHandlerOptions, ): Effect.Effect< DeleteResourceServerCommandOutput, - | Cause.TimeoutException + | Cause.TimeoutError | SdkError | InternalError | InvalidParameterError @@ -1510,7 +1510,7 @@ interface CognitoIdentityProviderService$ { options?: HttpHandlerOptions, ): Effect.Effect< DeleteTermsCommandOutput, - | Cause.TimeoutException + | Cause.TimeoutError | SdkError | ConcurrentModificationError | InternalError @@ -1528,7 +1528,7 @@ interface CognitoIdentityProviderService$ { options?: HttpHandlerOptions, ): Effect.Effect< DeleteUserCommandOutput, - | Cause.TimeoutException + | Cause.TimeoutError | SdkError | ForbiddenError | InternalError @@ -1549,7 +1549,7 @@ interface CognitoIdentityProviderService$ { options?: HttpHandlerOptions, ): Effect.Effect< DeleteUserAttributesCommandOutput, - | Cause.TimeoutException + | Cause.TimeoutError | SdkError | ForbiddenError | InternalError @@ -1570,7 +1570,7 @@ interface CognitoIdentityProviderService$ { options?: HttpHandlerOptions, ): Effect.Effect< DeleteUserPoolCommandOutput, - | Cause.TimeoutException + | Cause.TimeoutError | SdkError | InternalError | InvalidParameterError @@ -1588,7 +1588,7 @@ interface CognitoIdentityProviderService$ { options?: HttpHandlerOptions, ): Effect.Effect< DeleteUserPoolClientCommandOutput, - | Cause.TimeoutException + | Cause.TimeoutError | SdkError | ConcurrentModificationError | InternalError @@ -1606,7 +1606,7 @@ interface CognitoIdentityProviderService$ { options?: HttpHandlerOptions, ): Effect.Effect< DeleteUserPoolDomainCommandOutput, - | Cause.TimeoutException + | Cause.TimeoutError | SdkError | ConcurrentModificationError | InternalError @@ -1623,7 +1623,7 @@ interface CognitoIdentityProviderService$ { options?: HttpHandlerOptions, ): Effect.Effect< DeleteWebAuthnCredentialCommandOutput, - | Cause.TimeoutException + | Cause.TimeoutError | SdkError | ForbiddenError | InternalError @@ -1642,7 +1642,7 @@ interface CognitoIdentityProviderService$ { options?: HttpHandlerOptions, ): Effect.Effect< DescribeIdentityProviderCommandOutput, - | Cause.TimeoutException + | Cause.TimeoutError | SdkError | InternalError | InvalidParameterError @@ -1659,7 +1659,7 @@ interface CognitoIdentityProviderService$ { options?: HttpHandlerOptions, ): Effect.Effect< DescribeManagedLoginBrandingCommandOutput, - | Cause.TimeoutException + | Cause.TimeoutError | SdkError | InternalError | InvalidParameterError @@ -1676,7 +1676,7 @@ interface CognitoIdentityProviderService$ { options?: HttpHandlerOptions, ): Effect.Effect< DescribeManagedLoginBrandingByClientCommandOutput, - | Cause.TimeoutException + | Cause.TimeoutError | SdkError | InternalError | InvalidParameterError @@ -1693,7 +1693,7 @@ interface CognitoIdentityProviderService$ { options?: HttpHandlerOptions, ): Effect.Effect< DescribeResourceServerCommandOutput, - | Cause.TimeoutException + | Cause.TimeoutError | SdkError | InternalError | InvalidParameterError @@ -1710,7 +1710,7 @@ interface CognitoIdentityProviderService$ { options?: HttpHandlerOptions, ): Effect.Effect< DescribeRiskConfigurationCommandOutput, - | Cause.TimeoutException + | Cause.TimeoutError | SdkError | InternalError | InvalidParameterError @@ -1728,7 +1728,7 @@ interface CognitoIdentityProviderService$ { options?: HttpHandlerOptions, ): Effect.Effect< DescribeTermsCommandOutput, - | Cause.TimeoutException + | Cause.TimeoutError | SdkError | InternalError | InvalidParameterError @@ -1745,7 +1745,7 @@ interface CognitoIdentityProviderService$ { options?: HttpHandlerOptions, ): Effect.Effect< DescribeUserImportJobCommandOutput, - | Cause.TimeoutException + | Cause.TimeoutError | SdkError | InternalError | InvalidParameterError @@ -1762,7 +1762,7 @@ interface CognitoIdentityProviderService$ { options?: HttpHandlerOptions, ): Effect.Effect< DescribeUserPoolCommandOutput, - | Cause.TimeoutException + | Cause.TimeoutError | SdkError | InternalError | InvalidParameterError @@ -1780,7 +1780,7 @@ interface CognitoIdentityProviderService$ { options?: HttpHandlerOptions, ): Effect.Effect< DescribeUserPoolClientCommandOutput, - | Cause.TimeoutException + | Cause.TimeoutError | SdkError | InternalError | InvalidParameterError @@ -1797,12 +1797,7 @@ interface CognitoIdentityProviderService$ { options?: HttpHandlerOptions, ): Effect.Effect< DescribeUserPoolDomainCommandOutput, - | Cause.TimeoutException - | SdkError - | InternalError - | InvalidParameterError - | NotAuthorizedError - | ResourceNotFoundError + Cause.TimeoutError | SdkError | InternalError | InvalidParameterError | NotAuthorizedError | ResourceNotFoundError >; /** @@ -1813,7 +1808,7 @@ interface CognitoIdentityProviderService$ { options?: HttpHandlerOptions, ): Effect.Effect< ForgetDeviceCommandOutput, - | Cause.TimeoutException + | Cause.TimeoutError | SdkError | ForbiddenError | InternalError @@ -1835,7 +1830,7 @@ interface CognitoIdentityProviderService$ { options?: HttpHandlerOptions, ): Effect.Effect< ForgotPasswordCommandOutput, - | Cause.TimeoutException + | Cause.TimeoutError | SdkError | CodeDeliveryFailureError | ForbiddenError @@ -1862,7 +1857,7 @@ interface CognitoIdentityProviderService$ { options?: HttpHandlerOptions, ): Effect.Effect< GetCSVHeaderCommandOutput, - | Cause.TimeoutException + | Cause.TimeoutError | SdkError | InternalError | InvalidParameterError @@ -1879,7 +1874,7 @@ interface CognitoIdentityProviderService$ { options?: HttpHandlerOptions, ): Effect.Effect< GetDeviceCommandOutput, - | Cause.TimeoutException + | Cause.TimeoutError | SdkError | ForbiddenError | InternalError @@ -1901,7 +1896,7 @@ interface CognitoIdentityProviderService$ { options?: HttpHandlerOptions, ): Effect.Effect< GetGroupCommandOutput, - | Cause.TimeoutException + | Cause.TimeoutError | SdkError | InternalError | InvalidParameterError @@ -1918,7 +1913,7 @@ interface CognitoIdentityProviderService$ { options?: HttpHandlerOptions, ): Effect.Effect< GetIdentityProviderByIdentifierCommandOutput, - | Cause.TimeoutException + | Cause.TimeoutError | SdkError | InternalError | InvalidParameterError @@ -1935,7 +1930,7 @@ interface CognitoIdentityProviderService$ { options?: HttpHandlerOptions, ): Effect.Effect< GetLogDeliveryConfigurationCommandOutput, - | Cause.TimeoutException + | Cause.TimeoutError | SdkError | InternalError | InvalidParameterError @@ -1952,7 +1947,7 @@ interface CognitoIdentityProviderService$ { options?: HttpHandlerOptions, ): Effect.Effect< GetSigningCertificateCommandOutput, - Cause.TimeoutException | SdkError | InternalError | InvalidParameterError | ResourceNotFoundError + Cause.TimeoutError | SdkError | InternalError | InvalidParameterError | ResourceNotFoundError >; /** @@ -1963,7 +1958,7 @@ interface CognitoIdentityProviderService$ { options?: HttpHandlerOptions, ): Effect.Effect< GetTokensFromRefreshTokenCommandOutput, - | Cause.TimeoutException + | Cause.TimeoutError | SdkError | ForbiddenError | InternalError @@ -1986,7 +1981,7 @@ interface CognitoIdentityProviderService$ { options?: HttpHandlerOptions, ): Effect.Effect< GetUICustomizationCommandOutput, - | Cause.TimeoutException + | Cause.TimeoutError | SdkError | InternalError | InvalidParameterError @@ -2003,7 +1998,7 @@ interface CognitoIdentityProviderService$ { options?: HttpHandlerOptions, ): Effect.Effect< GetUserCommandOutput, - | Cause.TimeoutException + | Cause.TimeoutError | SdkError | ForbiddenError | InternalError @@ -2024,7 +2019,7 @@ interface CognitoIdentityProviderService$ { options?: HttpHandlerOptions, ): Effect.Effect< GetUserAttributeVerificationCodeCommandOutput, - | Cause.TimeoutException + | Cause.TimeoutError | SdkError | CodeDeliveryFailureError | ForbiddenError @@ -2053,7 +2048,7 @@ interface CognitoIdentityProviderService$ { options?: HttpHandlerOptions, ): Effect.Effect< GetUserAuthFactorsCommandOutput, - | Cause.TimeoutException + | Cause.TimeoutError | SdkError | ForbiddenError | InternalError @@ -2074,7 +2069,7 @@ interface CognitoIdentityProviderService$ { options?: HttpHandlerOptions, ): Effect.Effect< GetUserPoolMfaConfigCommandOutput, - | Cause.TimeoutException + | Cause.TimeoutError | SdkError | InternalError | InvalidParameterError @@ -2091,7 +2086,7 @@ interface CognitoIdentityProviderService$ { options?: HttpHandlerOptions, ): Effect.Effect< GlobalSignOutCommandOutput, - | Cause.TimeoutException + | Cause.TimeoutError | SdkError | ForbiddenError | InternalError @@ -2111,7 +2106,7 @@ interface CognitoIdentityProviderService$ { options?: HttpHandlerOptions, ): Effect.Effect< InitiateAuthCommandOutput, - | Cause.TimeoutException + | Cause.TimeoutError | SdkError | ForbiddenError | InternalError @@ -2140,7 +2135,7 @@ interface CognitoIdentityProviderService$ { options?: HttpHandlerOptions, ): Effect.Effect< ListDevicesCommandOutput, - | Cause.TimeoutException + | Cause.TimeoutError | SdkError | ForbiddenError | InternalError @@ -2162,7 +2157,7 @@ interface CognitoIdentityProviderService$ { options?: HttpHandlerOptions, ): Effect.Effect< ListGroupsCommandOutput, - | Cause.TimeoutException + | Cause.TimeoutError | SdkError | InternalError | InvalidParameterError @@ -2179,7 +2174,7 @@ interface CognitoIdentityProviderService$ { options?: HttpHandlerOptions, ): Effect.Effect< ListIdentityProvidersCommandOutput, - | Cause.TimeoutException + | Cause.TimeoutError | SdkError | InternalError | InvalidParameterError @@ -2196,7 +2191,7 @@ interface CognitoIdentityProviderService$ { options?: HttpHandlerOptions, ): Effect.Effect< ListResourceServersCommandOutput, - | Cause.TimeoutException + | Cause.TimeoutError | SdkError | InternalError | InvalidParameterError @@ -2213,7 +2208,7 @@ interface CognitoIdentityProviderService$ { options?: HttpHandlerOptions, ): Effect.Effect< ListTagsForResourceCommandOutput, - | Cause.TimeoutException + | Cause.TimeoutError | SdkError | InternalError | InvalidParameterError @@ -2230,7 +2225,7 @@ interface CognitoIdentityProviderService$ { options?: HttpHandlerOptions, ): Effect.Effect< ListTermsCommandOutput, - | Cause.TimeoutException + | Cause.TimeoutError | SdkError | InternalError | InvalidParameterError @@ -2247,7 +2242,7 @@ interface CognitoIdentityProviderService$ { options?: HttpHandlerOptions, ): Effect.Effect< ListUserImportJobsCommandOutput, - | Cause.TimeoutException + | Cause.TimeoutError | SdkError | InternalError | InvalidParameterError @@ -2264,7 +2259,7 @@ interface CognitoIdentityProviderService$ { options?: HttpHandlerOptions, ): Effect.Effect< ListUserPoolClientsCommandOutput, - | Cause.TimeoutException + | Cause.TimeoutError | SdkError | InternalError | InvalidParameterError @@ -2281,12 +2276,7 @@ interface CognitoIdentityProviderService$ { options?: HttpHandlerOptions, ): Effect.Effect< ListUserPoolsCommandOutput, - | Cause.TimeoutException - | SdkError - | InternalError - | InvalidParameterError - | NotAuthorizedError - | TooManyRequestsError + Cause.TimeoutError | SdkError | InternalError | InvalidParameterError | NotAuthorizedError | TooManyRequestsError >; /** @@ -2297,7 +2287,7 @@ interface CognitoIdentityProviderService$ { options?: HttpHandlerOptions, ): Effect.Effect< ListUsersCommandOutput, - | Cause.TimeoutException + | Cause.TimeoutError | SdkError | InternalError | InvalidParameterError @@ -2314,7 +2304,7 @@ interface CognitoIdentityProviderService$ { options?: HttpHandlerOptions, ): Effect.Effect< ListUsersInGroupCommandOutput, - | Cause.TimeoutException + | Cause.TimeoutError | SdkError | InternalError | InvalidParameterError @@ -2331,7 +2321,7 @@ interface CognitoIdentityProviderService$ { options?: HttpHandlerOptions, ): Effect.Effect< ListWebAuthnCredentialsCommandOutput, - | Cause.TimeoutException + | Cause.TimeoutError | SdkError | ForbiddenError | InternalError @@ -2349,7 +2339,7 @@ interface CognitoIdentityProviderService$ { options?: HttpHandlerOptions, ): Effect.Effect< ResendConfirmationCodeCommandOutput, - | Cause.TimeoutException + | Cause.TimeoutError | SdkError | CodeDeliveryFailureError | ForbiddenError @@ -2376,7 +2366,7 @@ interface CognitoIdentityProviderService$ { options?: HttpHandlerOptions, ): Effect.Effect< RespondToAuthChallengeCommandOutput, - | Cause.TimeoutException + | Cause.TimeoutError | SdkError | AliasExistsError | CodeMismatchError @@ -2411,7 +2401,7 @@ interface CognitoIdentityProviderService$ { options?: HttpHandlerOptions, ): Effect.Effect< RevokeTokenCommandOutput, - | Cause.TimeoutException + | Cause.TimeoutError | SdkError | ForbiddenError | InternalError @@ -2430,7 +2420,7 @@ interface CognitoIdentityProviderService$ { options?: HttpHandlerOptions, ): Effect.Effect< SetLogDeliveryConfigurationCommandOutput, - | Cause.TimeoutException + | Cause.TimeoutError | SdkError | FeatureUnavailableInTierError | InternalError @@ -2448,7 +2438,7 @@ interface CognitoIdentityProviderService$ { options?: HttpHandlerOptions, ): Effect.Effect< SetRiskConfigurationCommandOutput, - | Cause.TimeoutException + | Cause.TimeoutError | SdkError | CodeDeliveryFailureError | InternalError @@ -2468,7 +2458,7 @@ interface CognitoIdentityProviderService$ { options?: HttpHandlerOptions, ): Effect.Effect< SetUICustomizationCommandOutput, - | Cause.TimeoutException + | Cause.TimeoutError | SdkError | InternalError | InvalidParameterError @@ -2485,7 +2475,7 @@ interface CognitoIdentityProviderService$ { options?: HttpHandlerOptions, ): Effect.Effect< SetUserMFAPreferenceCommandOutput, - | Cause.TimeoutException + | Cause.TimeoutError | SdkError | ForbiddenError | InternalError @@ -2505,7 +2495,7 @@ interface CognitoIdentityProviderService$ { options?: HttpHandlerOptions, ): Effect.Effect< SetUserPoolMfaConfigCommandOutput, - | Cause.TimeoutException + | Cause.TimeoutError | SdkError | ConcurrentModificationError | FeatureUnavailableInTierError @@ -2526,7 +2516,7 @@ interface CognitoIdentityProviderService$ { options?: HttpHandlerOptions, ): Effect.Effect< SetUserSettingsCommandOutput, - | Cause.TimeoutException + | Cause.TimeoutError | SdkError | ForbiddenError | InternalError @@ -2546,7 +2536,7 @@ interface CognitoIdentityProviderService$ { options?: HttpHandlerOptions, ): Effect.Effect< SignUpCommandOutput, - | Cause.TimeoutException + | Cause.TimeoutError | SdkError | CodeDeliveryFailureError | ForbiddenError @@ -2574,7 +2564,7 @@ interface CognitoIdentityProviderService$ { options?: HttpHandlerOptions, ): Effect.Effect< StartUserImportJobCommandOutput, - | Cause.TimeoutException + | Cause.TimeoutError | SdkError | InternalError | InvalidParameterError @@ -2592,7 +2582,7 @@ interface CognitoIdentityProviderService$ { options?: HttpHandlerOptions, ): Effect.Effect< StartWebAuthnRegistrationCommandOutput, - | Cause.TimeoutException + | Cause.TimeoutError | SdkError | ForbiddenError | InternalError @@ -2612,7 +2602,7 @@ interface CognitoIdentityProviderService$ { options?: HttpHandlerOptions, ): Effect.Effect< StopUserImportJobCommandOutput, - | Cause.TimeoutException + | Cause.TimeoutError | SdkError | InternalError | InvalidParameterError @@ -2630,7 +2620,7 @@ interface CognitoIdentityProviderService$ { options?: HttpHandlerOptions, ): Effect.Effect< TagResourceCommandOutput, - | Cause.TimeoutException + | Cause.TimeoutError | SdkError | InternalError | InvalidParameterError @@ -2647,7 +2637,7 @@ interface CognitoIdentityProviderService$ { options?: HttpHandlerOptions, ): Effect.Effect< UntagResourceCommandOutput, - | Cause.TimeoutException + | Cause.TimeoutError | SdkError | InternalError | InvalidParameterError @@ -2664,7 +2654,7 @@ interface CognitoIdentityProviderService$ { options?: HttpHandlerOptions, ): Effect.Effect< UpdateAuthEventFeedbackCommandOutput, - | Cause.TimeoutException + | Cause.TimeoutError | SdkError | InternalError | InvalidParameterError @@ -2683,7 +2673,7 @@ interface CognitoIdentityProviderService$ { options?: HttpHandlerOptions, ): Effect.Effect< UpdateDeviceStatusCommandOutput, - | Cause.TimeoutException + | Cause.TimeoutError | SdkError | ForbiddenError | InternalError @@ -2705,7 +2695,7 @@ interface CognitoIdentityProviderService$ { options?: HttpHandlerOptions, ): Effect.Effect< UpdateGroupCommandOutput, - | Cause.TimeoutException + | Cause.TimeoutError | SdkError | InternalError | InvalidParameterError @@ -2722,7 +2712,7 @@ interface CognitoIdentityProviderService$ { options?: HttpHandlerOptions, ): Effect.Effect< UpdateIdentityProviderCommandOutput, - | Cause.TimeoutException + | Cause.TimeoutError | SdkError | ConcurrentModificationError | InternalError @@ -2741,7 +2731,7 @@ interface CognitoIdentityProviderService$ { options?: HttpHandlerOptions, ): Effect.Effect< UpdateManagedLoginBrandingCommandOutput, - | Cause.TimeoutException + | Cause.TimeoutError | SdkError | ConcurrentModificationError | InternalError @@ -2759,7 +2749,7 @@ interface CognitoIdentityProviderService$ { options?: HttpHandlerOptions, ): Effect.Effect< UpdateResourceServerCommandOutput, - | Cause.TimeoutException + | Cause.TimeoutError | SdkError | InternalError | InvalidParameterError @@ -2776,7 +2766,7 @@ interface CognitoIdentityProviderService$ { options?: HttpHandlerOptions, ): Effect.Effect< UpdateTermsCommandOutput, - | Cause.TimeoutException + | Cause.TimeoutError | SdkError | ConcurrentModificationError | InternalError @@ -2795,7 +2785,7 @@ interface CognitoIdentityProviderService$ { options?: HttpHandlerOptions, ): Effect.Effect< UpdateUserAttributesCommandOutput, - | Cause.TimeoutException + | Cause.TimeoutError | SdkError | AliasExistsError | CodeDeliveryFailureError @@ -2826,7 +2816,7 @@ interface CognitoIdentityProviderService$ { options?: HttpHandlerOptions, ): Effect.Effect< UpdateUserPoolCommandOutput, - | Cause.TimeoutException + | Cause.TimeoutError | SdkError | ConcurrentModificationError | FeatureUnavailableInTierError @@ -2851,7 +2841,7 @@ interface CognitoIdentityProviderService$ { options?: HttpHandlerOptions, ): Effect.Effect< UpdateUserPoolClientCommandOutput, - | Cause.TimeoutException + | Cause.TimeoutError | SdkError | ConcurrentModificationError | FeatureUnavailableInTierError @@ -2872,7 +2862,7 @@ interface CognitoIdentityProviderService$ { options?: HttpHandlerOptions, ): Effect.Effect< UpdateUserPoolDomainCommandOutput, - | Cause.TimeoutException + | Cause.TimeoutError | SdkError | ConcurrentModificationError | FeatureUnavailableInTierError @@ -2891,7 +2881,7 @@ interface CognitoIdentityProviderService$ { options?: HttpHandlerOptions, ): Effect.Effect< VerifySoftwareTokenCommandOutput, - | Cause.TimeoutException + | Cause.TimeoutError | SdkError | CodeMismatchError | EnableSoftwareTokenMFAError @@ -2916,7 +2906,7 @@ interface CognitoIdentityProviderService$ { options?: HttpHandlerOptions, ): Effect.Effect< VerifyUserAttributeCommandOutput, - | Cause.TimeoutException + | Cause.TimeoutError | SdkError | AliasExistsError | CodeMismatchError @@ -2955,12 +2945,10 @@ export const makeCognitoIdentityProviderService = Effect.gen(function*() { * @since 1.0.0 * @category models */ -export class CognitoIdentityProviderService - extends Effect.Tag("@effect-aws/client-cognito-identity-provider/CognitoIdentityProviderService")< - CognitoIdentityProviderService, - CognitoIdentityProviderService$ - >() -{ +export class CognitoIdentityProviderService extends ServiceMap.Service< + CognitoIdentityProviderService, + CognitoIdentityProviderService$ +>()("@effect-aws/client-cognito-identity-provider/CognitoIdentityProviderService") { static readonly defaultLayer = Layer.effect(this, makeCognitoIdentityProviderService).pipe( Layer.provide(Instance.layer), ); diff --git a/packages/client-cognito-identity-provider/src/CognitoIdentityProviderServiceConfig.ts b/packages/client-cognito-identity-provider/src/CognitoIdentityProviderServiceConfig.ts index 132dcd36..807998fc 100644 --- a/packages/client-cognito-identity-provider/src/CognitoIdentityProviderServiceConfig.ts +++ b/packages/client-cognito-identity-provider/src/CognitoIdentityProviderServiceConfig.ts @@ -3,18 +3,17 @@ */ import type { CognitoIdentityProviderClientConfig } from "@aws-sdk/client-cognito-identity-provider"; import { ServiceLogger } from "@effect-aws/commons"; -import { Effect, FiberRef, Layer } from "effect"; +import { Effect, Layer, ServiceMap } from "effect"; import { dual } from "effect/Function"; -import { globalValue } from "effect/GlobalValue"; import type { CognitoIdentityProviderService } from "./CognitoIdentityProviderService.js"; /** * @since 1.0.0 * @category cognito-identity-provider service config */ -const currentCognitoIdentityProviderServiceConfig = globalValue( +const currentCognitoIdentityProviderServiceConfig = ServiceMap.Reference( "@effect-aws/client-cognito-identity-provider/currentCognitoIdentityProviderServiceConfig", - () => FiberRef.unsafeMake({}), + { defaultValue: () => ({}) }, ); /** @@ -27,7 +26,7 @@ export const withCognitoIdentityProviderServiceConfig: { } = dual( 2, (effect: Effect.Effect, config: CognitoIdentityProviderService.Config): Effect.Effect => - Effect.locally(effect, currentCognitoIdentityProviderServiceConfig, config), + Effect.provideService(effect, currentCognitoIdentityProviderServiceConfig, config), ); /** @@ -35,7 +34,7 @@ export const withCognitoIdentityProviderServiceConfig: { * @category cognito-identity-provider service config */ export const setCognitoIdentityProviderServiceConfig = (config: CognitoIdentityProviderService.Config) => - Layer.locallyScoped(currentCognitoIdentityProviderServiceConfig, config); + Layer.succeed(currentCognitoIdentityProviderServiceConfig, config); /** * @since 1.0.0 @@ -43,7 +42,7 @@ export const setCognitoIdentityProviderServiceConfig = (config: CognitoIdentityP */ export const toCognitoIdentityProviderClientConfig: Effect.Effect = Effect.gen( function*() { - const { logger: serviceLogger, ...config } = yield* FiberRef.get(currentCognitoIdentityProviderServiceConfig); + const { logger: serviceLogger, ...config } = yield* currentCognitoIdentityProviderServiceConfig; const logger = serviceLogger === true ? yield* ServiceLogger.toClientLogger(ServiceLogger.defaultServiceLogger) diff --git a/packages/client-cognito-identity-provider/test/CognitoIdentityProvider.test.ts b/packages/client-cognito-identity-provider/test/CognitoIdentityProvider.test.ts index 2d01fe96..059ad850 100644 --- a/packages/client-cognito-identity-provider/test/CognitoIdentityProvider.test.ts +++ b/packages/client-cognito-identity-provider/test/CognitoIdentityProvider.test.ts @@ -29,7 +29,7 @@ describe("CognitoIdentityProviderClientImpl", () => { const args = {} as unknown as ListUserPoolsCommandInput; - const program = CognitoIdentityProvider.listUserPools(args); + const program = CognitoIdentityProvider.use((svc) => svc.listUserPools(args)); const result = await pipe( program, @@ -49,7 +49,7 @@ describe("CognitoIdentityProviderClientImpl", () => { const args = {} as unknown as ListUserPoolsCommandInput; - const program = CognitoIdentityProvider.listUserPools(args); + const program = CognitoIdentityProvider.use((svc) => svc.listUserPools(args)); const result = await pipe( program, @@ -72,7 +72,7 @@ describe("CognitoIdentityProviderClientImpl", () => { const args = {} as unknown as ListUserPoolsCommandInput; - const program = CognitoIdentityProvider.listUserPools(args); + const program = CognitoIdentityProvider.use((svc) => svc.listUserPools(args)); const result = await pipe( program, @@ -96,7 +96,7 @@ describe("CognitoIdentityProviderClientImpl", () => { const args = {} as unknown as ListUserPoolsCommandInput; - const program = CognitoIdentityProvider.listUserPools(args); + const program = CognitoIdentityProvider.use((svc) => svc.listUserPools(args)); const result = await pipe( program, @@ -124,7 +124,7 @@ describe("CognitoIdentityProviderClientImpl", () => { const args = {} as unknown as ListUserPoolsCommandInput; - const program = CognitoIdentityProvider.listUserPools(args); + const program = CognitoIdentityProvider.use((svc) => svc.listUserPools(args)); const result = await pipe( program, @@ -134,7 +134,7 @@ describe("CognitoIdentityProviderClientImpl", () => { expect(result).toEqual( Exit.fail( - SdkError({ + new SdkError({ ...new Error("test"), name: "SdkError", message: "test", @@ -159,7 +159,7 @@ describe("CognitoIdentityProviderClientImpl", () => { const args = {} as unknown as ListUserPoolsCommandInput; - const program = CognitoIdentityProvider.listUserPools(args).pipe( + const program = CognitoIdentityProvider.use((svc) => svc.listUserPools(args)).pipe( Effect.catchTag("NotHandledException" as any, () => Effect.succeed(null)), ); @@ -169,9 +169,9 @@ describe("CognitoIdentityProviderClientImpl", () => { Effect.runPromiseExit, ); - expect(result).toEqual( + expect(result).toContainEqual( Exit.fail( - SdkError({ + new SdkError({ ...new Error("test"), name: "SdkError", message: "test", diff --git a/packages/client-data-pipeline/.projen/deps.json b/packages/client-data-pipeline/.projen/deps.json index e3da5033..9fd1ae46 100644 --- a/packages/client-data-pipeline/.projen/deps.json +++ b/packages/client-data-pipeline/.projen/deps.json @@ -7,6 +7,7 @@ }, { "name": "effect", + "version": "4.0.0-beta.8", "type": "build" }, { @@ -16,7 +17,7 @@ }, { "name": "effect", - "version": ">=3.0.4 <4.0.0", + "version": ">=4.0.0 <5.0.0", "type": "peer" }, { diff --git a/packages/client-data-pipeline/README.md b/packages/client-data-pipeline/README.md index f1c0473c..37dbc865 100644 --- a/packages/client-data-pipeline/README.md +++ b/packages/client-data-pipeline/README.md @@ -16,7 +16,7 @@ With default DataPipelineClient instance: ```typescript import { DataPipeline } from "@effect-aws/client-data-pipeline"; -const program = DataPipeline.listPipelines(args); +const program = DataPipeline.use((svc) => svc.listPipelines(args)); const result = pipe( program, @@ -30,7 +30,7 @@ With custom DataPipelineClient instance: ```typescript import { DataPipeline } from "@effect-aws/client-data-pipeline"; -const program = DataPipeline.listPipelines(args); +const program = DataPipeline.use((svc) => svc.listPipelines(args)); const result = await pipe( program, @@ -46,7 +46,7 @@ With custom DataPipelineClient configuration: ```typescript import { DataPipeline } from "@effect-aws/client-data-pipeline"; -const program = DataPipeline.listPipelines(args); +const program = DataPipeline.use((svc) => svc.listPipelines(args)); const result = await pipe( program, diff --git a/packages/client-data-pipeline/package.json b/packages/client-data-pipeline/package.json index 15bfcf08..f276b224 100644 --- a/packages/client-data-pipeline/package.json +++ b/packages/client-data-pipeline/package.json @@ -26,11 +26,11 @@ }, "devDependencies": { "@types/node": "ts5.4", - "effect": "^3.16.4", + "effect": "4.0.0-beta.8", "typescript": "^5.4.2" }, "peerDependencies": { - "effect": ">=3.0.4 <4.0.0" + "effect": ">=4.0.0 <5.0.0" }, "dependencies": { "@aws-sdk/client-data-pipeline": "^3", diff --git a/packages/client-data-pipeline/src/DataPipelineClientInstance.ts b/packages/client-data-pipeline/src/DataPipelineClientInstance.ts index 6010f6b4..7dca350f 100644 --- a/packages/client-data-pipeline/src/DataPipelineClientInstance.ts +++ b/packages/client-data-pipeline/src/DataPipelineClientInstance.ts @@ -2,16 +2,16 @@ * @since 1.0.0 */ import { DataPipelineClient } from "@aws-sdk/client-data-pipeline"; -import { Context, Effect, Layer } from "effect"; +import { Effect, Layer, ServiceMap } from "effect"; import * as DataPipelineServiceConfig from "./DataPipelineServiceConfig.js"; /** * @since 1.0.0 * @category tags */ -export class DataPipelineClientInstance extends Context.Tag( +export class DataPipelineClientInstance extends ServiceMap.Service()( "@effect-aws/client-data-pipeline/DataPipelineClientInstance", -)() {} +) {} /** * @since 1.0.0 @@ -30,4 +30,4 @@ export const make = Effect.flatMap( * @since 1.0.0 * @category layers */ -export const layer = Layer.scoped(DataPipelineClientInstance, make); +export const layer = Layer.effect(DataPipelineClientInstance, make); diff --git a/packages/client-data-pipeline/src/DataPipelineService.ts b/packages/client-data-pipeline/src/DataPipelineService.ts index 4a918c7a..eea66999 100644 --- a/packages/client-data-pipeline/src/DataPipelineService.ts +++ b/packages/client-data-pipeline/src/DataPipelineService.ts @@ -65,7 +65,7 @@ import { import type { HttpHandlerOptions, ServiceLogger } from "@effect-aws/commons"; import { Service } from "@effect-aws/commons"; import type { Cause } from "effect"; -import { Effect, Layer } from "effect"; +import { Effect, Layer, ServiceMap } from "effect"; import * as Instance from "./DataPipelineClientInstance.js"; import * as DataPipelineServiceConfig from "./DataPipelineServiceConfig.js"; import type { @@ -111,7 +111,7 @@ interface DataPipelineService$ { options?: HttpHandlerOptions, ): Effect.Effect< ActivatePipelineCommandOutput, - | Cause.TimeoutException + | Cause.TimeoutError | SdkError | InternalServiceError | InvalidRequestError @@ -127,7 +127,7 @@ interface DataPipelineService$ { options?: HttpHandlerOptions, ): Effect.Effect< AddTagsCommandOutput, - | Cause.TimeoutException + | Cause.TimeoutError | SdkError | InternalServiceError | InvalidRequestError @@ -143,7 +143,7 @@ interface DataPipelineService$ { options?: HttpHandlerOptions, ): Effect.Effect< CreatePipelineCommandOutput, - Cause.TimeoutException | SdkError | InternalServiceError | InvalidRequestError + Cause.TimeoutError | SdkError | InternalServiceError | InvalidRequestError >; /** @@ -154,7 +154,7 @@ interface DataPipelineService$ { options?: HttpHandlerOptions, ): Effect.Effect< DeactivatePipelineCommandOutput, - | Cause.TimeoutException + | Cause.TimeoutError | SdkError | InternalServiceError | InvalidRequestError @@ -170,7 +170,7 @@ interface DataPipelineService$ { options?: HttpHandlerOptions, ): Effect.Effect< DeletePipelineCommandOutput, - Cause.TimeoutException | SdkError | InternalServiceError | InvalidRequestError | PipelineNotFoundError + Cause.TimeoutError | SdkError | InternalServiceError | InvalidRequestError | PipelineNotFoundError >; /** @@ -181,7 +181,7 @@ interface DataPipelineService$ { options?: HttpHandlerOptions, ): Effect.Effect< DescribeObjectsCommandOutput, - | Cause.TimeoutException + | Cause.TimeoutError | SdkError | InternalServiceError | InvalidRequestError @@ -197,7 +197,7 @@ interface DataPipelineService$ { options?: HttpHandlerOptions, ): Effect.Effect< DescribePipelinesCommandOutput, - | Cause.TimeoutException + | Cause.TimeoutError | SdkError | InternalServiceError | InvalidRequestError @@ -213,7 +213,7 @@ interface DataPipelineService$ { options?: HttpHandlerOptions, ): Effect.Effect< EvaluateExpressionCommandOutput, - | Cause.TimeoutException + | Cause.TimeoutError | SdkError | InternalServiceError | InvalidRequestError @@ -230,7 +230,7 @@ interface DataPipelineService$ { options?: HttpHandlerOptions, ): Effect.Effect< GetPipelineDefinitionCommandOutput, - | Cause.TimeoutException + | Cause.TimeoutError | SdkError | InternalServiceError | InvalidRequestError @@ -246,7 +246,7 @@ interface DataPipelineService$ { options?: HttpHandlerOptions, ): Effect.Effect< ListPipelinesCommandOutput, - Cause.TimeoutException | SdkError | InternalServiceError | InvalidRequestError + Cause.TimeoutError | SdkError | InternalServiceError | InvalidRequestError >; /** @@ -257,7 +257,7 @@ interface DataPipelineService$ { options?: HttpHandlerOptions, ): Effect.Effect< PollForTaskCommandOutput, - Cause.TimeoutException | SdkError | InternalServiceError | InvalidRequestError | TaskNotFoundError + Cause.TimeoutError | SdkError | InternalServiceError | InvalidRequestError | TaskNotFoundError >; /** @@ -268,7 +268,7 @@ interface DataPipelineService$ { options?: HttpHandlerOptions, ): Effect.Effect< PutPipelineDefinitionCommandOutput, - | Cause.TimeoutException + | Cause.TimeoutError | SdkError | InternalServiceError | InvalidRequestError @@ -284,7 +284,7 @@ interface DataPipelineService$ { options?: HttpHandlerOptions, ): Effect.Effect< QueryObjectsCommandOutput, - | Cause.TimeoutException + | Cause.TimeoutError | SdkError | InternalServiceError | InvalidRequestError @@ -300,7 +300,7 @@ interface DataPipelineService$ { options?: HttpHandlerOptions, ): Effect.Effect< RemoveTagsCommandOutput, - | Cause.TimeoutException + | Cause.TimeoutError | SdkError | InternalServiceError | InvalidRequestError @@ -316,7 +316,7 @@ interface DataPipelineService$ { options?: HttpHandlerOptions, ): Effect.Effect< ReportTaskProgressCommandOutput, - | Cause.TimeoutException + | Cause.TimeoutError | SdkError | InternalServiceError | InvalidRequestError @@ -333,7 +333,7 @@ interface DataPipelineService$ { options?: HttpHandlerOptions, ): Effect.Effect< ReportTaskRunnerHeartbeatCommandOutput, - Cause.TimeoutException | SdkError | InternalServiceError | InvalidRequestError + Cause.TimeoutError | SdkError | InternalServiceError | InvalidRequestError >; /** @@ -344,7 +344,7 @@ interface DataPipelineService$ { options?: HttpHandlerOptions, ): Effect.Effect< SetStatusCommandOutput, - | Cause.TimeoutException + | Cause.TimeoutError | SdkError | InternalServiceError | InvalidRequestError @@ -360,7 +360,7 @@ interface DataPipelineService$ { options?: HttpHandlerOptions, ): Effect.Effect< SetTaskStatusCommandOutput, - | Cause.TimeoutException + | Cause.TimeoutError | SdkError | InternalServiceError | InvalidRequestError @@ -377,7 +377,7 @@ interface DataPipelineService$ { options?: HttpHandlerOptions, ): Effect.Effect< ValidatePipelineDefinitionCommandOutput, - | Cause.TimeoutException + | Cause.TimeoutError | SdkError | InternalServiceError | InvalidRequestError @@ -407,10 +407,10 @@ export const makeDataPipelineService = Effect.gen(function*() { * @since 1.0.0 * @category models */ -export class DataPipelineService extends Effect.Tag("@effect-aws/client-data-pipeline/DataPipelineService")< +export class DataPipelineService extends ServiceMap.Service< DataPipelineService, DataPipelineService$ ->() { +>()("@effect-aws/client-data-pipeline/DataPipelineService") { static readonly defaultLayer = Layer.effect(this, makeDataPipelineService).pipe(Layer.provide(Instance.layer)); static readonly layer = (config: DataPipelineService.Config) => Layer.effect(this, makeDataPipelineService).pipe( diff --git a/packages/client-data-pipeline/src/DataPipelineServiceConfig.ts b/packages/client-data-pipeline/src/DataPipelineServiceConfig.ts index ed7d9583..cba0dead 100644 --- a/packages/client-data-pipeline/src/DataPipelineServiceConfig.ts +++ b/packages/client-data-pipeline/src/DataPipelineServiceConfig.ts @@ -3,18 +3,17 @@ */ import type { DataPipelineClientConfig } from "@aws-sdk/client-data-pipeline"; import { ServiceLogger } from "@effect-aws/commons"; -import { Effect, FiberRef, Layer } from "effect"; +import { Effect, Layer, ServiceMap } from "effect"; import { dual } from "effect/Function"; -import { globalValue } from "effect/GlobalValue"; import type { DataPipelineService } from "./DataPipelineService.js"; /** * @since 1.0.0 * @category data-pipeline service config */ -const currentDataPipelineServiceConfig = globalValue( +const currentDataPipelineServiceConfig = ServiceMap.Reference( "@effect-aws/client-data-pipeline/currentDataPipelineServiceConfig", - () => FiberRef.unsafeMake({}), + { defaultValue: () => ({}) }, ); /** @@ -27,7 +26,7 @@ export const withDataPipelineServiceConfig: { } = dual( 2, (effect: Effect.Effect, config: DataPipelineService.Config): Effect.Effect => - Effect.locally(effect, currentDataPipelineServiceConfig, config), + Effect.provideService(effect, currentDataPipelineServiceConfig, config), ); /** @@ -35,14 +34,14 @@ export const withDataPipelineServiceConfig: { * @category data-pipeline service config */ export const setDataPipelineServiceConfig = (config: DataPipelineService.Config) => - Layer.locallyScoped(currentDataPipelineServiceConfig, config); + Layer.succeed(currentDataPipelineServiceConfig, config); /** * @since 1.0.0 * @category adapters */ export const toDataPipelineClientConfig: Effect.Effect = Effect.gen(function*() { - const { logger: serviceLogger, ...config } = yield* FiberRef.get(currentDataPipelineServiceConfig); + const { logger: serviceLogger, ...config } = yield* currentDataPipelineServiceConfig; const logger = serviceLogger === true ? yield* ServiceLogger.toClientLogger(ServiceLogger.defaultServiceLogger) diff --git a/packages/client-data-pipeline/test/DataPipeline.test.ts b/packages/client-data-pipeline/test/DataPipeline.test.ts index cba4eb6a..0b619d78 100644 --- a/packages/client-data-pipeline/test/DataPipeline.test.ts +++ b/packages/client-data-pipeline/test/DataPipeline.test.ts @@ -26,7 +26,7 @@ describe("DataPipelineClientImpl", () => { const args = {} as unknown as ListPipelinesCommandInput; - const program = DataPipeline.listPipelines(args); + const program = DataPipeline.use((svc) => svc.listPipelines(args)); const result = await pipe( program, @@ -46,7 +46,7 @@ describe("DataPipelineClientImpl", () => { const args = {} as unknown as ListPipelinesCommandInput; - const program = DataPipeline.listPipelines(args); + const program = DataPipeline.use((svc) => svc.listPipelines(args)); const result = await pipe( program, @@ -69,7 +69,7 @@ describe("DataPipelineClientImpl", () => { const args = {} as unknown as ListPipelinesCommandInput; - const program = DataPipeline.listPipelines(args); + const program = DataPipeline.use((svc) => svc.listPipelines(args)); const result = await pipe( program, @@ -93,7 +93,7 @@ describe("DataPipelineClientImpl", () => { const args = {} as unknown as ListPipelinesCommandInput; - const program = DataPipeline.listPipelines(args); + const program = DataPipeline.use((svc) => svc.listPipelines(args)); const result = await pipe( program, @@ -121,7 +121,7 @@ describe("DataPipelineClientImpl", () => { const args = {} as unknown as ListPipelinesCommandInput; - const program = DataPipeline.listPipelines(args); + const program = DataPipeline.use((svc) => svc.listPipelines(args)); const result = await pipe( program, @@ -131,7 +131,7 @@ describe("DataPipelineClientImpl", () => { expect(result).toEqual( Exit.fail( - SdkError({ + new SdkError({ ...new Error("test"), name: "SdkError", message: "test", @@ -156,7 +156,7 @@ describe("DataPipelineClientImpl", () => { const args = {} as unknown as ListPipelinesCommandInput; - const program = DataPipeline.listPipelines(args).pipe( + const program = DataPipeline.use((svc) => svc.listPipelines(args)).pipe( Effect.catchTag("NotHandledException" as any, () => Effect.succeed(null)), ); @@ -166,9 +166,9 @@ describe("DataPipelineClientImpl", () => { Effect.runPromiseExit, ); - expect(result).toEqual( + expect(result).toContainEqual( Exit.fail( - SdkError({ + new SdkError({ ...new Error("test"), name: "SdkError", message: "test", diff --git a/packages/client-dsql/.projen/deps.json b/packages/client-dsql/.projen/deps.json index 93216208..49412141 100644 --- a/packages/client-dsql/.projen/deps.json +++ b/packages/client-dsql/.projen/deps.json @@ -7,6 +7,7 @@ }, { "name": "effect", + "version": "4.0.0-beta.8", "type": "build" }, { @@ -16,7 +17,7 @@ }, { "name": "effect", - "version": ">=3.0.4 <4.0.0", + "version": ">=4.0.0 <5.0.0", "type": "peer" }, { diff --git a/packages/client-dsql/README.md b/packages/client-dsql/README.md index 28c77ce5..91253ded 100644 --- a/packages/client-dsql/README.md +++ b/packages/client-dsql/README.md @@ -16,7 +16,7 @@ With default DSQLClient instance: ```typescript import { DSQL } from "@effect-aws/client-dsql"; -const program = DSQL.listClusters(args); +const program = DSQL.use((svc) => svc.listClusters(args)); const result = pipe( program, @@ -30,7 +30,7 @@ With custom DSQLClient instance: ```typescript import { DSQL } from "@effect-aws/client-dsql"; -const program = DSQL.listClusters(args); +const program = DSQL.use((svc) => svc.listClusters(args)); const result = await pipe( program, @@ -46,7 +46,7 @@ With custom DSQLClient configuration: ```typescript import { DSQL } from "@effect-aws/client-dsql"; -const program = DSQL.listClusters(args); +const program = DSQL.use((svc) => svc.listClusters(args)); const result = await pipe( program, diff --git a/packages/client-dsql/package.json b/packages/client-dsql/package.json index d3857e33..e99369cb 100644 --- a/packages/client-dsql/package.json +++ b/packages/client-dsql/package.json @@ -26,11 +26,11 @@ }, "devDependencies": { "@types/node": "ts5.4", - "effect": "^3.16.4", + "effect": "4.0.0-beta.8", "typescript": "^5.4.2" }, "peerDependencies": { - "effect": ">=3.0.4 <4.0.0" + "effect": ">=4.0.0 <5.0.0" }, "dependencies": { "@aws-sdk/client-dsql": "^3", diff --git a/packages/client-dsql/src/DSQLClientInstance.ts b/packages/client-dsql/src/DSQLClientInstance.ts index a2a74f2d..679dc66b 100644 --- a/packages/client-dsql/src/DSQLClientInstance.ts +++ b/packages/client-dsql/src/DSQLClientInstance.ts @@ -2,16 +2,16 @@ * @since 1.0.0 */ import { DSQLClient } from "@aws-sdk/client-dsql"; -import { Context, Effect, Layer } from "effect"; +import { Effect, Layer, ServiceMap } from "effect"; import * as DSQLServiceConfig from "./DSQLServiceConfig.js"; /** * @since 1.0.0 * @category tags */ -export class DSQLClientInstance extends Context.Tag( +export class DSQLClientInstance extends ServiceMap.Service()( "@effect-aws/client-dsql/DSQLClientInstance", -)() {} +) {} /** * @since 1.0.0 @@ -30,4 +30,4 @@ export const make = Effect.flatMap( * @since 1.0.0 * @category layers */ -export const layer = Layer.scoped(DSQLClientInstance, make); +export const layer = Layer.effect(DSQLClientInstance, make); diff --git a/packages/client-dsql/src/DSQLService.ts b/packages/client-dsql/src/DSQLService.ts index e390ecde..568889ca 100644 --- a/packages/client-dsql/src/DSQLService.ts +++ b/packages/client-dsql/src/DSQLService.ts @@ -44,7 +44,7 @@ import { import type { HttpHandlerOptions, ServiceLogger } from "@effect-aws/commons"; import { Service } from "@effect-aws/commons"; import type { Cause } from "effect"; -import { Effect, Layer } from "effect"; +import { Effect, Layer, ServiceMap } from "effect"; import * as Instance from "./DSQLClientInstance.js"; import * as DSQLServiceConfig from "./DSQLServiceConfig.js"; import type { @@ -84,7 +84,7 @@ interface DSQLService$ { options?: HttpHandlerOptions, ): Effect.Effect< CreateClusterCommandOutput, - Cause.TimeoutException | SdkError | ConflictError | ServiceQuotaExceededError | ValidationError + Cause.TimeoutError | SdkError | ConflictError | ServiceQuotaExceededError | ValidationError >; /** @@ -95,7 +95,7 @@ interface DSQLService$ { options?: HttpHandlerOptions, ): Effect.Effect< DeleteClusterCommandOutput, - Cause.TimeoutException | SdkError | ConflictError | ResourceNotFoundError + Cause.TimeoutError | SdkError | ConflictError | ResourceNotFoundError >; /** @@ -106,7 +106,7 @@ interface DSQLService$ { options?: HttpHandlerOptions, ): Effect.Effect< DeleteClusterPolicyCommandOutput, - Cause.TimeoutException | SdkError | ConflictError | ResourceNotFoundError | ValidationError + Cause.TimeoutError | SdkError | ConflictError | ResourceNotFoundError | ValidationError >; /** @@ -117,7 +117,7 @@ interface DSQLService$ { options?: HttpHandlerOptions, ): Effect.Effect< GetClusterCommandOutput, - Cause.TimeoutException | SdkError | ResourceNotFoundError + Cause.TimeoutError | SdkError | ResourceNotFoundError >; /** @@ -128,7 +128,7 @@ interface DSQLService$ { options?: HttpHandlerOptions, ): Effect.Effect< GetClusterPolicyCommandOutput, - Cause.TimeoutException | SdkError | ResourceNotFoundError | ValidationError + Cause.TimeoutError | SdkError | ResourceNotFoundError | ValidationError >; /** @@ -139,7 +139,7 @@ interface DSQLService$ { options?: HttpHandlerOptions, ): Effect.Effect< GetVpcEndpointServiceNameCommandOutput, - Cause.TimeoutException | SdkError | InternalServerError | ResourceNotFoundError | ThrottlingError | ValidationError + Cause.TimeoutError | SdkError | InternalServerError | ResourceNotFoundError | ThrottlingError | ValidationError >; /** @@ -150,7 +150,7 @@ interface DSQLService$ { options?: HttpHandlerOptions, ): Effect.Effect< ListClustersCommandOutput, - Cause.TimeoutException | SdkError | ResourceNotFoundError + Cause.TimeoutError | SdkError | ResourceNotFoundError >; /** @@ -161,7 +161,7 @@ interface DSQLService$ { options?: HttpHandlerOptions, ): Effect.Effect< ListTagsForResourceCommandOutput, - Cause.TimeoutException | SdkError | ResourceNotFoundError + Cause.TimeoutError | SdkError | ResourceNotFoundError >; /** @@ -172,7 +172,7 @@ interface DSQLService$ { options?: HttpHandlerOptions, ): Effect.Effect< PutClusterPolicyCommandOutput, - Cause.TimeoutException | SdkError | ConflictError | ResourceNotFoundError | ValidationError + Cause.TimeoutError | SdkError | ConflictError | ResourceNotFoundError | ValidationError >; /** @@ -183,7 +183,7 @@ interface DSQLService$ { options?: HttpHandlerOptions, ): Effect.Effect< TagResourceCommandOutput, - Cause.TimeoutException | SdkError | ResourceNotFoundError | ServiceQuotaExceededError + Cause.TimeoutError | SdkError | ResourceNotFoundError | ServiceQuotaExceededError >; /** @@ -194,7 +194,7 @@ interface DSQLService$ { options?: HttpHandlerOptions, ): Effect.Effect< UntagResourceCommandOutput, - Cause.TimeoutException | SdkError | ResourceNotFoundError + Cause.TimeoutError | SdkError | ResourceNotFoundError >; /** @@ -205,7 +205,7 @@ interface DSQLService$ { options?: HttpHandlerOptions, ): Effect.Effect< UpdateClusterCommandOutput, - Cause.TimeoutException | SdkError | ConflictError | ResourceNotFoundError | ValidationError + Cause.TimeoutError | SdkError | ConflictError | ResourceNotFoundError | ValidationError >; } @@ -230,10 +230,10 @@ export const makeDSQLService = Effect.gen(function*() { * @since 1.0.0 * @category models */ -export class DSQLService extends Effect.Tag("@effect-aws/client-dsql/DSQLService")< +export class DSQLService extends ServiceMap.Service< DSQLService, DSQLService$ ->() { +>()("@effect-aws/client-dsql/DSQLService") { static readonly defaultLayer = Layer.effect(this, makeDSQLService).pipe(Layer.provide(Instance.layer)); static readonly layer = (config: DSQLService.Config) => Layer.effect(this, makeDSQLService).pipe( diff --git a/packages/client-dsql/src/DSQLServiceConfig.ts b/packages/client-dsql/src/DSQLServiceConfig.ts index afc6dc94..c283ed6c 100644 --- a/packages/client-dsql/src/DSQLServiceConfig.ts +++ b/packages/client-dsql/src/DSQLServiceConfig.ts @@ -3,18 +3,17 @@ */ import type { DSQLClientConfig } from "@aws-sdk/client-dsql"; import { ServiceLogger } from "@effect-aws/commons"; -import { Effect, FiberRef, Layer } from "effect"; +import { Effect, Layer, ServiceMap } from "effect"; import { dual } from "effect/Function"; -import { globalValue } from "effect/GlobalValue"; import type { DSQLService } from "./DSQLService.js"; /** * @since 1.0.0 * @category dsql service config */ -const currentDSQLServiceConfig = globalValue( +const currentDSQLServiceConfig = ServiceMap.Reference( "@effect-aws/client-dsql/currentDSQLServiceConfig", - () => FiberRef.unsafeMake({}), + { defaultValue: () => ({}) }, ); /** @@ -27,22 +26,21 @@ export const withDSQLServiceConfig: { } = dual( 2, (effect: Effect.Effect, config: DSQLService.Config): Effect.Effect => - Effect.locally(effect, currentDSQLServiceConfig, config), + Effect.provideService(effect, currentDSQLServiceConfig, config), ); /** * @since 1.0.0 * @category dsql service config */ -export const setDSQLServiceConfig = (config: DSQLService.Config) => - Layer.locallyScoped(currentDSQLServiceConfig, config); +export const setDSQLServiceConfig = (config: DSQLService.Config) => Layer.succeed(currentDSQLServiceConfig, config); /** * @since 1.0.0 * @category adapters */ export const toDSQLClientConfig: Effect.Effect = Effect.gen(function*() { - const { logger: serviceLogger, ...config } = yield* FiberRef.get(currentDSQLServiceConfig); + const { logger: serviceLogger, ...config } = yield* currentDSQLServiceConfig; const logger = serviceLogger === true ? yield* ServiceLogger.toClientLogger(ServiceLogger.defaultServiceLogger) diff --git a/packages/client-dsql/test/DSQL.test.ts b/packages/client-dsql/test/DSQL.test.ts index 199c3445..dcf8a91f 100644 --- a/packages/client-dsql/test/DSQL.test.ts +++ b/packages/client-dsql/test/DSQL.test.ts @@ -26,7 +26,7 @@ describe("DSQLClientImpl", () => { const args = {} as unknown as ListClustersCommandInput; - const program = DSQL.listClusters(args); + const program = DSQL.use((svc) => svc.listClusters(args)); const result = await pipe( program, @@ -46,7 +46,7 @@ describe("DSQLClientImpl", () => { const args = {} as unknown as ListClustersCommandInput; - const program = DSQL.listClusters(args); + const program = DSQL.use((svc) => svc.listClusters(args)); const result = await pipe( program, @@ -69,7 +69,7 @@ describe("DSQLClientImpl", () => { const args = {} as unknown as ListClustersCommandInput; - const program = DSQL.listClusters(args); + const program = DSQL.use((svc) => svc.listClusters(args)); const result = await pipe( program, @@ -93,7 +93,7 @@ describe("DSQLClientImpl", () => { const args = {} as unknown as ListClustersCommandInput; - const program = DSQL.listClusters(args); + const program = DSQL.use((svc) => svc.listClusters(args)); const result = await pipe( program, @@ -121,7 +121,7 @@ describe("DSQLClientImpl", () => { const args = {} as unknown as ListClustersCommandInput; - const program = DSQL.listClusters(args); + const program = DSQL.use((svc) => svc.listClusters(args)); const result = await pipe( program, @@ -131,7 +131,7 @@ describe("DSQLClientImpl", () => { expect(result).toEqual( Exit.fail( - SdkError({ + new SdkError({ ...new Error("test"), name: "SdkError", message: "test", @@ -156,7 +156,7 @@ describe("DSQLClientImpl", () => { const args = {} as unknown as ListClustersCommandInput; - const program = DSQL.listClusters(args).pipe( + const program = DSQL.use((svc) => svc.listClusters(args)).pipe( Effect.catchTag("NotHandledException" as any, () => Effect.succeed(null)), ); @@ -166,9 +166,9 @@ describe("DSQLClientImpl", () => { Effect.runPromiseExit, ); - expect(result).toEqual( + expect(result).toContainEqual( Exit.fail( - SdkError({ + new SdkError({ ...new Error("test"), name: "SdkError", message: "test", diff --git a/packages/client-dynamodb/.projen/deps.json b/packages/client-dynamodb/.projen/deps.json index eb588b96..ab44d44a 100644 --- a/packages/client-dynamodb/.projen/deps.json +++ b/packages/client-dynamodb/.projen/deps.json @@ -7,6 +7,7 @@ }, { "name": "effect", + "version": "4.0.0-beta.8", "type": "build" }, { @@ -16,7 +17,7 @@ }, { "name": "effect", - "version": ">=3.0.4 <4.0.0", + "version": ">=4.0.0 <5.0.0", "type": "peer" }, { diff --git a/packages/client-dynamodb/README.md b/packages/client-dynamodb/README.md index 6627dca1..9515192e 100644 --- a/packages/client-dynamodb/README.md +++ b/packages/client-dynamodb/README.md @@ -16,7 +16,7 @@ With default DynamoDBClient instance: ```typescript import { DynamoDB } from "@effect-aws/client-dynamodb"; -const program = DynamoDB.putItem(args); +const program = DynamoDB.use((svc) => svc.putItem(args)); const result = pipe( program, @@ -30,7 +30,7 @@ With custom DynamoDBClient instance: ```typescript import { DynamoDB } from "@effect-aws/client-dynamodb"; -const program = DynamoDB.putItem(args); +const program = DynamoDB.use((svc) => svc.putItem(args)); const result = await pipe( program, @@ -46,7 +46,7 @@ With custom DynamoDBClient configuration: ```typescript import { DynamoDB } from "@effect-aws/client-dynamodb"; -const program = DynamoDB.putItem(args); +const program = DynamoDB.use((svc) => svc.putItem(args)); const result = await pipe( program, diff --git a/packages/client-dynamodb/package.json b/packages/client-dynamodb/package.json index 6b5847bf..3882dfe5 100644 --- a/packages/client-dynamodb/package.json +++ b/packages/client-dynamodb/package.json @@ -26,11 +26,11 @@ }, "devDependencies": { "@types/node": "ts5.4", - "effect": "^3.16.4", + "effect": "4.0.0-beta.8", "typescript": "^5.4.2" }, "peerDependencies": { - "effect": ">=3.0.4 <4.0.0" + "effect": ">=4.0.0 <5.0.0" }, "dependencies": { "@aws-sdk/client-dynamodb": "^3", diff --git a/packages/client-dynamodb/src/DynamoDBClientInstance.ts b/packages/client-dynamodb/src/DynamoDBClientInstance.ts index 163e1bc9..ee0b66b7 100644 --- a/packages/client-dynamodb/src/DynamoDBClientInstance.ts +++ b/packages/client-dynamodb/src/DynamoDBClientInstance.ts @@ -2,16 +2,16 @@ * @since 1.0.0 */ import { DynamoDBClient } from "@aws-sdk/client-dynamodb"; -import { Context, Effect, Layer } from "effect"; +import { Effect, Layer, ServiceMap } from "effect"; import * as DynamoDBServiceConfig from "./DynamoDBServiceConfig.js"; /** * @since 1.0.0 * @category tags */ -export class DynamoDBClientInstance extends Context.Tag( +export class DynamoDBClientInstance extends ServiceMap.Service()( "@effect-aws/client-dynamodb/DynamoDBClientInstance", -)() {} +) {} /** * @since 1.0.0 @@ -30,4 +30,4 @@ export const make = Effect.flatMap( * @since 1.0.0 * @category layers */ -export const layer = Layer.scoped(DynamoDBClientInstance, make); +export const layer = Layer.effect(DynamoDBClientInstance, make); diff --git a/packages/client-dynamodb/src/DynamoDBService.ts b/packages/client-dynamodb/src/DynamoDBService.ts index 43f600ac..ab63b8b4 100644 --- a/packages/client-dynamodb/src/DynamoDBService.ts +++ b/packages/client-dynamodb/src/DynamoDBService.ts @@ -179,7 +179,7 @@ import { import type { HttpHandlerOptions, ServiceLogger } from "@effect-aws/commons"; import { Service } from "@effect-aws/commons"; import type { Cause } from "effect"; -import { Effect, Layer } from "effect"; +import { Effect, Layer, ServiceMap } from "effect"; import * as Instance from "./DynamoDBClientInstance.js"; import * as DynamoDBServiceConfig from "./DynamoDBServiceConfig.js"; import type { @@ -293,7 +293,7 @@ interface DynamoDBService$ { options?: HttpHandlerOptions, ): Effect.Effect< BatchExecuteStatementCommandOutput, - Cause.TimeoutException | SdkError | InternalServerError | RequestLimitExceededError | ThrottlingError + Cause.TimeoutError | SdkError | InternalServerError | RequestLimitExceededError | ThrottlingError >; /** @@ -304,7 +304,7 @@ interface DynamoDBService$ { options?: HttpHandlerOptions, ): Effect.Effect< BatchGetItemCommandOutput, - | Cause.TimeoutException + | Cause.TimeoutError | SdkError | InternalServerError | InvalidEndpointError @@ -322,7 +322,7 @@ interface DynamoDBService$ { options?: HttpHandlerOptions, ): Effect.Effect< BatchWriteItemCommandOutput, - | Cause.TimeoutException + | Cause.TimeoutError | SdkError | InternalServerError | InvalidEndpointError @@ -342,7 +342,7 @@ interface DynamoDBService$ { options?: HttpHandlerOptions, ): Effect.Effect< CreateBackupCommandOutput, - | Cause.TimeoutException + | Cause.TimeoutError | SdkError | BackupInUseError | ContinuousBackupsUnavailableError @@ -361,7 +361,7 @@ interface DynamoDBService$ { options?: HttpHandlerOptions, ): Effect.Effect< CreateGlobalTableCommandOutput, - | Cause.TimeoutException + | Cause.TimeoutError | SdkError | GlobalTableAlreadyExistsError | InternalServerError @@ -378,12 +378,7 @@ interface DynamoDBService$ { options?: HttpHandlerOptions, ): Effect.Effect< CreateTableCommandOutput, - | Cause.TimeoutException - | SdkError - | InternalServerError - | InvalidEndpointError - | LimitExceededError - | ResourceInUseError + Cause.TimeoutError | SdkError | InternalServerError | InvalidEndpointError | LimitExceededError | ResourceInUseError >; /** @@ -394,7 +389,7 @@ interface DynamoDBService$ { options?: HttpHandlerOptions, ): Effect.Effect< DeleteBackupCommandOutput, - | Cause.TimeoutException + | Cause.TimeoutError | SdkError | BackupInUseError | BackupNotFoundError @@ -411,7 +406,7 @@ interface DynamoDBService$ { options?: HttpHandlerOptions, ): Effect.Effect< DeleteItemCommandOutput, - | Cause.TimeoutException + | Cause.TimeoutError | SdkError | ConditionalCheckFailedError | InternalServerError @@ -433,7 +428,7 @@ interface DynamoDBService$ { options?: HttpHandlerOptions, ): Effect.Effect< DeleteResourcePolicyCommandOutput, - | Cause.TimeoutException + | Cause.TimeoutError | SdkError | InternalServerError | InvalidEndpointError @@ -451,7 +446,7 @@ interface DynamoDBService$ { options?: HttpHandlerOptions, ): Effect.Effect< DeleteTableCommandOutput, - | Cause.TimeoutException + | Cause.TimeoutError | SdkError | InternalServerError | InvalidEndpointError @@ -468,7 +463,7 @@ interface DynamoDBService$ { options?: HttpHandlerOptions, ): Effect.Effect< DescribeBackupCommandOutput, - Cause.TimeoutException | SdkError | BackupNotFoundError | InternalServerError | InvalidEndpointError + Cause.TimeoutError | SdkError | BackupNotFoundError | InternalServerError | InvalidEndpointError >; /** @@ -479,7 +474,7 @@ interface DynamoDBService$ { options?: HttpHandlerOptions, ): Effect.Effect< DescribeContinuousBackupsCommandOutput, - Cause.TimeoutException | SdkError | InternalServerError | InvalidEndpointError | TableNotFoundError + Cause.TimeoutError | SdkError | InternalServerError | InvalidEndpointError | TableNotFoundError >; /** @@ -490,7 +485,7 @@ interface DynamoDBService$ { options?: HttpHandlerOptions, ): Effect.Effect< DescribeContributorInsightsCommandOutput, - Cause.TimeoutException | SdkError | InternalServerError | ResourceNotFoundError + Cause.TimeoutError | SdkError | InternalServerError | ResourceNotFoundError >; /** @@ -501,7 +496,7 @@ interface DynamoDBService$ { options?: HttpHandlerOptions, ): Effect.Effect< DescribeEndpointsCommandOutput, - Cause.TimeoutException | SdkError + Cause.TimeoutError | SdkError >; /** @@ -512,7 +507,7 @@ interface DynamoDBService$ { options?: HttpHandlerOptions, ): Effect.Effect< DescribeExportCommandOutput, - Cause.TimeoutException | SdkError | ExportNotFoundError | InternalServerError | LimitExceededError + Cause.TimeoutError | SdkError | ExportNotFoundError | InternalServerError | LimitExceededError >; /** @@ -523,7 +518,7 @@ interface DynamoDBService$ { options?: HttpHandlerOptions, ): Effect.Effect< DescribeGlobalTableCommandOutput, - Cause.TimeoutException | SdkError | GlobalTableNotFoundError | InternalServerError | InvalidEndpointError + Cause.TimeoutError | SdkError | GlobalTableNotFoundError | InternalServerError | InvalidEndpointError >; /** @@ -534,7 +529,7 @@ interface DynamoDBService$ { options?: HttpHandlerOptions, ): Effect.Effect< DescribeGlobalTableSettingsCommandOutput, - Cause.TimeoutException | SdkError | GlobalTableNotFoundError | InternalServerError | InvalidEndpointError + Cause.TimeoutError | SdkError | GlobalTableNotFoundError | InternalServerError | InvalidEndpointError >; /** @@ -545,7 +540,7 @@ interface DynamoDBService$ { options?: HttpHandlerOptions, ): Effect.Effect< DescribeImportCommandOutput, - Cause.TimeoutException | SdkError | ImportNotFoundError + Cause.TimeoutError | SdkError | ImportNotFoundError >; /** @@ -556,7 +551,7 @@ interface DynamoDBService$ { options?: HttpHandlerOptions, ): Effect.Effect< DescribeKinesisStreamingDestinationCommandOutput, - Cause.TimeoutException | SdkError | InternalServerError | InvalidEndpointError | ResourceNotFoundError + Cause.TimeoutError | SdkError | InternalServerError | InvalidEndpointError | ResourceNotFoundError >; /** @@ -567,7 +562,7 @@ interface DynamoDBService$ { options?: HttpHandlerOptions, ): Effect.Effect< DescribeLimitsCommandOutput, - Cause.TimeoutException | SdkError | InternalServerError | InvalidEndpointError + Cause.TimeoutError | SdkError | InternalServerError | InvalidEndpointError >; /** @@ -578,7 +573,7 @@ interface DynamoDBService$ { options?: HttpHandlerOptions, ): Effect.Effect< DescribeTableCommandOutput, - Cause.TimeoutException | SdkError | InternalServerError | InvalidEndpointError | ResourceNotFoundError + Cause.TimeoutError | SdkError | InternalServerError | InvalidEndpointError | ResourceNotFoundError >; /** @@ -589,7 +584,7 @@ interface DynamoDBService$ { options?: HttpHandlerOptions, ): Effect.Effect< DescribeTableReplicaAutoScalingCommandOutput, - Cause.TimeoutException | SdkError | InternalServerError | ResourceNotFoundError + Cause.TimeoutError | SdkError | InternalServerError | ResourceNotFoundError >; /** @@ -600,7 +595,7 @@ interface DynamoDBService$ { options?: HttpHandlerOptions, ): Effect.Effect< DescribeTimeToLiveCommandOutput, - Cause.TimeoutException | SdkError | InternalServerError | InvalidEndpointError | ResourceNotFoundError + Cause.TimeoutError | SdkError | InternalServerError | InvalidEndpointError | ResourceNotFoundError >; /** @@ -611,7 +606,7 @@ interface DynamoDBService$ { options?: HttpHandlerOptions, ): Effect.Effect< DisableKinesisStreamingDestinationCommandOutput, - | Cause.TimeoutException + | Cause.TimeoutError | SdkError | InternalServerError | InvalidEndpointError @@ -628,7 +623,7 @@ interface DynamoDBService$ { options?: HttpHandlerOptions, ): Effect.Effect< EnableKinesisStreamingDestinationCommandOutput, - | Cause.TimeoutException + | Cause.TimeoutError | SdkError | InternalServerError | InvalidEndpointError @@ -645,7 +640,7 @@ interface DynamoDBService$ { options?: HttpHandlerOptions, ): Effect.Effect< ExecuteStatementCommandOutput, - | Cause.TimeoutException + | Cause.TimeoutError | SdkError | ConditionalCheckFailedError | DuplicateItemError @@ -666,7 +661,7 @@ interface DynamoDBService$ { options?: HttpHandlerOptions, ): Effect.Effect< ExecuteTransactionCommandOutput, - | Cause.TimeoutException + | Cause.TimeoutError | SdkError | IdempotentParameterMismatchError | InternalServerError @@ -686,7 +681,7 @@ interface DynamoDBService$ { options?: HttpHandlerOptions, ): Effect.Effect< ExportTableToPointInTimeCommandOutput, - | Cause.TimeoutException + | Cause.TimeoutError | SdkError | ExportConflictError | InternalServerError @@ -704,7 +699,7 @@ interface DynamoDBService$ { options?: HttpHandlerOptions, ): Effect.Effect< GetItemCommandOutput, - | Cause.TimeoutException + | Cause.TimeoutError | SdkError | InternalServerError | InvalidEndpointError @@ -722,7 +717,7 @@ interface DynamoDBService$ { options?: HttpHandlerOptions, ): Effect.Effect< GetResourcePolicyCommandOutput, - | Cause.TimeoutException + | Cause.TimeoutError | SdkError | InternalServerError | InvalidEndpointError @@ -738,7 +733,7 @@ interface DynamoDBService$ { options?: HttpHandlerOptions, ): Effect.Effect< ImportTableCommandOutput, - Cause.TimeoutException | SdkError | ImportConflictError | LimitExceededError | ResourceInUseError + Cause.TimeoutError | SdkError | ImportConflictError | LimitExceededError | ResourceInUseError >; /** @@ -749,7 +744,7 @@ interface DynamoDBService$ { options?: HttpHandlerOptions, ): Effect.Effect< ListBackupsCommandOutput, - Cause.TimeoutException | SdkError | InternalServerError | InvalidEndpointError + Cause.TimeoutError | SdkError | InternalServerError | InvalidEndpointError >; /** @@ -760,7 +755,7 @@ interface DynamoDBService$ { options?: HttpHandlerOptions, ): Effect.Effect< ListContributorInsightsCommandOutput, - Cause.TimeoutException | SdkError | InternalServerError | ResourceNotFoundError + Cause.TimeoutError | SdkError | InternalServerError | ResourceNotFoundError >; /** @@ -771,7 +766,7 @@ interface DynamoDBService$ { options?: HttpHandlerOptions, ): Effect.Effect< ListExportsCommandOutput, - Cause.TimeoutException | SdkError | InternalServerError | LimitExceededError + Cause.TimeoutError | SdkError | InternalServerError | LimitExceededError >; /** @@ -782,7 +777,7 @@ interface DynamoDBService$ { options?: HttpHandlerOptions, ): Effect.Effect< ListGlobalTablesCommandOutput, - Cause.TimeoutException | SdkError | InternalServerError | InvalidEndpointError + Cause.TimeoutError | SdkError | InternalServerError | InvalidEndpointError >; /** @@ -793,7 +788,7 @@ interface DynamoDBService$ { options?: HttpHandlerOptions, ): Effect.Effect< ListImportsCommandOutput, - Cause.TimeoutException | SdkError | LimitExceededError + Cause.TimeoutError | SdkError | LimitExceededError >; /** @@ -804,7 +799,7 @@ interface DynamoDBService$ { options?: HttpHandlerOptions, ): Effect.Effect< ListTablesCommandOutput, - Cause.TimeoutException | SdkError | InternalServerError | InvalidEndpointError + Cause.TimeoutError | SdkError | InternalServerError | InvalidEndpointError >; /** @@ -815,7 +810,7 @@ interface DynamoDBService$ { options?: HttpHandlerOptions, ): Effect.Effect< ListTagsOfResourceCommandOutput, - Cause.TimeoutException | SdkError | InternalServerError | InvalidEndpointError | ResourceNotFoundError + Cause.TimeoutError | SdkError | InternalServerError | InvalidEndpointError | ResourceNotFoundError >; /** @@ -826,7 +821,7 @@ interface DynamoDBService$ { options?: HttpHandlerOptions, ): Effect.Effect< PutItemCommandOutput, - | Cause.TimeoutException + | Cause.TimeoutError | SdkError | ConditionalCheckFailedError | InternalServerError @@ -848,7 +843,7 @@ interface DynamoDBService$ { options?: HttpHandlerOptions, ): Effect.Effect< PutResourcePolicyCommandOutput, - | Cause.TimeoutException + | Cause.TimeoutError | SdkError | InternalServerError | InvalidEndpointError @@ -866,7 +861,7 @@ interface DynamoDBService$ { options?: HttpHandlerOptions, ): Effect.Effect< QueryCommandOutput, - | Cause.TimeoutException + | Cause.TimeoutError | SdkError | InternalServerError | InvalidEndpointError @@ -884,7 +879,7 @@ interface DynamoDBService$ { options?: HttpHandlerOptions, ): Effect.Effect< RestoreTableFromBackupCommandOutput, - | Cause.TimeoutException + | Cause.TimeoutError | SdkError | BackupInUseError | BackupNotFoundError @@ -903,7 +898,7 @@ interface DynamoDBService$ { options?: HttpHandlerOptions, ): Effect.Effect< RestoreTableToPointInTimeCommandOutput, - | Cause.TimeoutException + | Cause.TimeoutError | SdkError | InternalServerError | InvalidEndpointError @@ -923,7 +918,7 @@ interface DynamoDBService$ { options?: HttpHandlerOptions, ): Effect.Effect< ScanCommandOutput, - | Cause.TimeoutException + | Cause.TimeoutError | SdkError | InternalServerError | InvalidEndpointError @@ -941,7 +936,7 @@ interface DynamoDBService$ { options?: HttpHandlerOptions, ): Effect.Effect< TagResourceCommandOutput, - | Cause.TimeoutException + | Cause.TimeoutError | SdkError | InternalServerError | InvalidEndpointError @@ -958,7 +953,7 @@ interface DynamoDBService$ { options?: HttpHandlerOptions, ): Effect.Effect< TransactGetItemsCommandOutput, - | Cause.TimeoutException + | Cause.TimeoutError | SdkError | InternalServerError | InvalidEndpointError @@ -977,7 +972,7 @@ interface DynamoDBService$ { options?: HttpHandlerOptions, ): Effect.Effect< TransactWriteItemsCommandOutput, - | Cause.TimeoutException + | Cause.TimeoutError | SdkError | IdempotentParameterMismatchError | InternalServerError @@ -998,7 +993,7 @@ interface DynamoDBService$ { options?: HttpHandlerOptions, ): Effect.Effect< UntagResourceCommandOutput, - | Cause.TimeoutException + | Cause.TimeoutError | SdkError | InternalServerError | InvalidEndpointError @@ -1015,7 +1010,7 @@ interface DynamoDBService$ { options?: HttpHandlerOptions, ): Effect.Effect< UpdateContinuousBackupsCommandOutput, - | Cause.TimeoutException + | Cause.TimeoutError | SdkError | ContinuousBackupsUnavailableError | InternalServerError @@ -1031,7 +1026,7 @@ interface DynamoDBService$ { options?: HttpHandlerOptions, ): Effect.Effect< UpdateContributorInsightsCommandOutput, - Cause.TimeoutException | SdkError | InternalServerError | ResourceNotFoundError + Cause.TimeoutError | SdkError | InternalServerError | ResourceNotFoundError >; /** @@ -1042,7 +1037,7 @@ interface DynamoDBService$ { options?: HttpHandlerOptions, ): Effect.Effect< UpdateGlobalTableCommandOutput, - | Cause.TimeoutException + | Cause.TimeoutError | SdkError | GlobalTableNotFoundError | InternalServerError @@ -1060,7 +1055,7 @@ interface DynamoDBService$ { options?: HttpHandlerOptions, ): Effect.Effect< UpdateGlobalTableSettingsCommandOutput, - | Cause.TimeoutException + | Cause.TimeoutError | SdkError | GlobalTableNotFoundError | IndexNotFoundError @@ -1079,7 +1074,7 @@ interface DynamoDBService$ { options?: HttpHandlerOptions, ): Effect.Effect< UpdateItemCommandOutput, - | Cause.TimeoutException + | Cause.TimeoutError | SdkError | ConditionalCheckFailedError | InternalServerError @@ -1101,7 +1096,7 @@ interface DynamoDBService$ { options?: HttpHandlerOptions, ): Effect.Effect< UpdateKinesisStreamingDestinationCommandOutput, - | Cause.TimeoutException + | Cause.TimeoutError | SdkError | InternalServerError | InvalidEndpointError @@ -1118,7 +1113,7 @@ interface DynamoDBService$ { options?: HttpHandlerOptions, ): Effect.Effect< UpdateTableCommandOutput, - | Cause.TimeoutException + | Cause.TimeoutError | SdkError | InternalServerError | InvalidEndpointError @@ -1135,7 +1130,7 @@ interface DynamoDBService$ { options?: HttpHandlerOptions, ): Effect.Effect< UpdateTableReplicaAutoScalingCommandOutput, - | Cause.TimeoutException + | Cause.TimeoutError | SdkError | InternalServerError | LimitExceededError @@ -1151,7 +1146,7 @@ interface DynamoDBService$ { options?: HttpHandlerOptions, ): Effect.Effect< UpdateTimeToLiveCommandOutput, - | Cause.TimeoutException + | Cause.TimeoutError | SdkError | InternalServerError | InvalidEndpointError @@ -1182,10 +1177,10 @@ export const makeDynamoDBService = Effect.gen(function*() { * @since 1.0.0 * @category models */ -export class DynamoDBService extends Effect.Tag("@effect-aws/client-dynamodb/DynamoDBService")< +export class DynamoDBService extends ServiceMap.Service< DynamoDBService, DynamoDBService$ ->() { +>()("@effect-aws/client-dynamodb/DynamoDBService") { static readonly defaultLayer = Layer.effect(this, makeDynamoDBService).pipe(Layer.provide(Instance.layer)); static readonly layer = (config: DynamoDBService.Config) => Layer.effect(this, makeDynamoDBService).pipe( diff --git a/packages/client-dynamodb/src/DynamoDBServiceConfig.ts b/packages/client-dynamodb/src/DynamoDBServiceConfig.ts index 4f19ffd8..607ef89f 100644 --- a/packages/client-dynamodb/src/DynamoDBServiceConfig.ts +++ b/packages/client-dynamodb/src/DynamoDBServiceConfig.ts @@ -3,18 +3,17 @@ */ import type { DynamoDBClientConfig } from "@aws-sdk/client-dynamodb"; import { ServiceLogger } from "@effect-aws/commons"; -import { Effect, FiberRef, Layer } from "effect"; +import { Effect, Layer, ServiceMap } from "effect"; import { dual } from "effect/Function"; -import { globalValue } from "effect/GlobalValue"; import type { DynamoDBService } from "./DynamoDBService.js"; /** * @since 1.0.0 * @category dynamodb service config */ -const currentDynamoDBServiceConfig = globalValue( +const currentDynamoDBServiceConfig = ServiceMap.Reference( "@effect-aws/client-dynamodb/currentDynamoDBServiceConfig", - () => FiberRef.unsafeMake({}), + { defaultValue: () => ({}) }, ); /** @@ -27,7 +26,7 @@ export const withDynamoDBServiceConfig: { } = dual( 2, (effect: Effect.Effect, config: DynamoDBService.Config): Effect.Effect => - Effect.locally(effect, currentDynamoDBServiceConfig, config), + Effect.provideService(effect, currentDynamoDBServiceConfig, config), ); /** @@ -35,14 +34,14 @@ export const withDynamoDBServiceConfig: { * @category dynamodb service config */ export const setDynamoDBServiceConfig = (config: DynamoDBService.Config) => - Layer.locallyScoped(currentDynamoDBServiceConfig, config); + Layer.succeed(currentDynamoDBServiceConfig, config); /** * @since 1.0.0 * @category adapters */ export const toDynamoDBClientConfig: Effect.Effect = Effect.gen(function*() { - const { logger: serviceLogger, ...config } = yield* FiberRef.get(currentDynamoDBServiceConfig); + const { logger: serviceLogger, ...config } = yield* currentDynamoDBServiceConfig; const logger = serviceLogger === true ? yield* ServiceLogger.toClientLogger(ServiceLogger.defaultServiceLogger) diff --git a/packages/client-dynamodb/test/DynamoDB.test.ts b/packages/client-dynamodb/test/DynamoDB.test.ts index d9914325..8d95a04c 100644 --- a/packages/client-dynamodb/test/DynamoDB.test.ts +++ b/packages/client-dynamodb/test/DynamoDB.test.ts @@ -26,7 +26,7 @@ describe("DynamoDBClientImpl", () => { const args: PutItemCommandInput = { TableName: "test", Item: { testAttr: { S: "test" } } }; - const program = DynamoDB.putItem(args); + const program = DynamoDB.use((svc) => svc.putItem(args)); const result = await pipe( program, @@ -46,7 +46,7 @@ describe("DynamoDBClientImpl", () => { const args: PutItemCommandInput = { TableName: "test", Item: { testAttr: { S: "test" } } }; - const program = DynamoDB.putItem(args); + const program = DynamoDB.use((svc) => svc.putItem(args)); const result = await pipe( program, @@ -69,7 +69,7 @@ describe("DynamoDBClientImpl", () => { const args: PutItemCommandInput = { TableName: "test", Item: { testAttr: { S: "test" } } }; - const program = DynamoDB.putItem(args); + const program = DynamoDB.use((svc) => svc.putItem(args)); const result = await pipe( program, @@ -93,7 +93,7 @@ describe("DynamoDBClientImpl", () => { const args: PutItemCommandInput = { TableName: "test", Item: { testAttr: { S: "test" } } }; - const program = DynamoDB.putItem(args); + const program = DynamoDB.use((svc) => svc.putItem(args)); const result = await pipe( program, @@ -121,7 +121,7 @@ describe("DynamoDBClientImpl", () => { const args: PutItemCommandInput = { TableName: "test", Item: { testAttr: { S: "test" } } }; - const program = DynamoDB.putItem(args); + const program = DynamoDB.use((svc) => svc.putItem(args)); const result = await pipe( program, @@ -131,7 +131,7 @@ describe("DynamoDBClientImpl", () => { expect(result).toEqual( Exit.fail( - SdkError({ + new SdkError({ ...new Error("test"), name: "SdkError", message: "test", @@ -156,7 +156,7 @@ describe("DynamoDBClientImpl", () => { const args: PutItemCommandInput = { TableName: "test", Item: { testAttr: { S: "test" } } }; - const program = DynamoDB.putItem(args).pipe( + const program = DynamoDB.use((svc) => svc.putItem(args)).pipe( Effect.catchTag("NotHandledException" as any, () => Effect.succeed(null)), ); @@ -166,9 +166,9 @@ describe("DynamoDBClientImpl", () => { Effect.runPromiseExit, ); - expect(result).toEqual( + expect(result).toContainEqual( Exit.fail( - SdkError({ + new SdkError({ ...new Error("test"), name: "SdkError", message: "test", diff --git a/packages/client-ec2/.projen/deps.json b/packages/client-ec2/.projen/deps.json index 52cfd86e..53b6c1fa 100644 --- a/packages/client-ec2/.projen/deps.json +++ b/packages/client-ec2/.projen/deps.json @@ -7,6 +7,7 @@ }, { "name": "effect", + "version": "4.0.0-beta.8", "type": "build" }, { @@ -16,7 +17,7 @@ }, { "name": "effect", - "version": ">=3.0.4 <4.0.0", + "version": ">=4.0.0 <5.0.0", "type": "peer" }, { diff --git a/packages/client-ec2/README.md b/packages/client-ec2/README.md index 1ce01b70..6ac8d98c 100644 --- a/packages/client-ec2/README.md +++ b/packages/client-ec2/README.md @@ -16,7 +16,7 @@ With default EC2Client instance: ```typescript import { EC2 } from "@effect-aws/client-ec2"; -const program = EC2.acceptAddressTransfer(args); +const program = EC2.use((svc) => svc.acceptAddressTransfer(args)); const result = pipe( program, @@ -30,7 +30,7 @@ With custom EC2Client instance: ```typescript import { EC2 } from "@effect-aws/client-ec2"; -const program = EC2.acceptAddressTransfer(args); +const program = EC2.use((svc) => svc.acceptAddressTransfer(args)); const result = await pipe( program, @@ -46,7 +46,7 @@ With custom EC2Client configuration: ```typescript import { EC2 } from "@effect-aws/client-ec2"; -const program = EC2.acceptAddressTransfer(args); +const program = EC2.use((svc) => svc.acceptAddressTransfer(args)); const result = await pipe( program, diff --git a/packages/client-ec2/package.json b/packages/client-ec2/package.json index cda8d470..87aada93 100644 --- a/packages/client-ec2/package.json +++ b/packages/client-ec2/package.json @@ -26,11 +26,11 @@ }, "devDependencies": { "@types/node": "ts5.4", - "effect": "^3.16.4", + "effect": "4.0.0-beta.8", "typescript": "^5.4.2" }, "peerDependencies": { - "effect": ">=3.0.4 <4.0.0" + "effect": ">=4.0.0 <5.0.0" }, "dependencies": { "@aws-sdk/client-ec2": "^3", diff --git a/packages/client-ec2/src/EC2ClientInstance.ts b/packages/client-ec2/src/EC2ClientInstance.ts index 717d02c0..69ba6aaa 100644 --- a/packages/client-ec2/src/EC2ClientInstance.ts +++ b/packages/client-ec2/src/EC2ClientInstance.ts @@ -2,16 +2,16 @@ * @since 1.0.0 */ import { EC2Client } from "@aws-sdk/client-ec2"; -import { Context, Effect, Layer } from "effect"; +import { Effect, Layer, ServiceMap } from "effect"; import * as EC2ServiceConfig from "./EC2ServiceConfig.js"; /** * @since 1.0.0 * @category tags */ -export class EC2ClientInstance extends Context.Tag( +export class EC2ClientInstance extends ServiceMap.Service()( "@effect-aws/client-ec2/EC2ClientInstance", -)() {} +) {} /** * @since 1.0.0 @@ -30,4 +30,4 @@ export const make = Effect.flatMap( * @since 1.0.0 * @category layers */ -export const layer = Layer.scoped(EC2ClientInstance, make); +export const layer = Layer.effect(EC2ClientInstance, make); diff --git a/packages/client-ec2/src/EC2Service.ts b/packages/client-ec2/src/EC2Service.ts index c2e98dc8..d6c53e36 100644 --- a/packages/client-ec2/src/EC2Service.ts +++ b/packages/client-ec2/src/EC2Service.ts @@ -368,6 +368,12 @@ import { CreateRouteTableCommand, type CreateRouteTableCommandInput, type CreateRouteTableCommandOutput, + CreateSecondaryNetworkCommand, + type CreateSecondaryNetworkCommandInput, + type CreateSecondaryNetworkCommandOutput, + CreateSecondarySubnetCommand, + type CreateSecondarySubnetCommandInput, + type CreateSecondarySubnetCommandOutput, CreateSecurityGroupCommand, type CreateSecurityGroupCommandInput, type CreateSecurityGroupCommandOutput, @@ -644,6 +650,12 @@ import { DeleteRouteTableCommand, type DeleteRouteTableCommandInput, type DeleteRouteTableCommandOutput, + DeleteSecondaryNetworkCommand, + type DeleteSecondaryNetworkCommandInput, + type DeleteSecondaryNetworkCommandOutput, + DeleteSecondarySubnetCommand, + type DeleteSecondarySubnetCommandInput, + type DeleteSecondarySubnetCommandOutput, DeleteSecurityGroupCommand, type DeleteSecurityGroupCommandInput, type DeleteSecurityGroupCommandOutput, @@ -1148,6 +1160,15 @@ import { DescribeScheduledInstancesCommand, type DescribeScheduledInstancesCommandInput, type DescribeScheduledInstancesCommandOutput, + DescribeSecondaryInterfacesCommand, + type DescribeSecondaryInterfacesCommandInput, + type DescribeSecondaryInterfacesCommandOutput, + DescribeSecondaryNetworksCommand, + type DescribeSecondaryNetworksCommandInput, + type DescribeSecondaryNetworksCommandOutput, + DescribeSecondarySubnetsCommand, + type DescribeSecondarySubnetsCommandInput, + type DescribeSecondarySubnetsCommandOutput, DescribeSecurityGroupReferencesCommand, type DescribeSecurityGroupReferencesCommandInput, type DescribeSecurityGroupReferencesCommandOutput, @@ -2255,7 +2276,7 @@ import { import type { HttpHandlerOptions, ServiceLogger } from "@effect-aws/commons"; import { Service } from "@effect-aws/commons"; import type { Cause } from "effect"; -import { Effect, Layer } from "effect"; +import { Effect, Layer, ServiceMap } from "effect"; import * as Instance from "./EC2ClientInstance.js"; import * as EC2ServiceConfig from "./EC2ServiceConfig.js"; import type { EC2ServiceError, SdkError } from "./Errors.js"; @@ -2383,6 +2404,8 @@ const commands = { CreateRouteServerEndpointCommand, CreateRouteServerPeerCommand, CreateRouteTableCommand, + CreateSecondaryNetworkCommand, + CreateSecondarySubnetCommand, CreateSecurityGroupCommand, CreateSnapshotCommand, CreateSnapshotsCommand, @@ -2475,6 +2498,8 @@ const commands = { DeleteRouteServerEndpointCommand, DeleteRouteServerPeerCommand, DeleteRouteTableCommand, + DeleteSecondaryNetworkCommand, + DeleteSecondarySubnetCommand, DeleteSecurityGroupCommand, DeleteSnapshotCommand, DeleteSpotDatafeedSubscriptionCommand, @@ -2643,6 +2668,9 @@ const commands = { DescribeRouteTablesCommand, DescribeScheduledInstanceAvailabilityCommand, DescribeScheduledInstancesCommand, + DescribeSecondaryInterfacesCommand, + DescribeSecondaryNetworksCommand, + DescribeSecondarySubnetsCommand, DescribeSecurityGroupReferencesCommand, DescribeSecurityGroupRulesCommand, DescribeSecurityGroupVpcAssociationsCommand, @@ -3023,7 +3051,7 @@ interface EC2Service$ { options?: HttpHandlerOptions, ): Effect.Effect< AcceptAddressTransferCommandOutput, - Cause.TimeoutException | SdkError | EC2ServiceError + Cause.TimeoutError | SdkError | EC2ServiceError >; /** @@ -3034,7 +3062,7 @@ interface EC2Service$ { options?: HttpHandlerOptions, ): Effect.Effect< AcceptCapacityReservationBillingOwnershipCommandOutput, - Cause.TimeoutException | SdkError | EC2ServiceError + Cause.TimeoutError | SdkError | EC2ServiceError >; /** @@ -3045,7 +3073,7 @@ interface EC2Service$ { options?: HttpHandlerOptions, ): Effect.Effect< AcceptReservedInstancesExchangeQuoteCommandOutput, - Cause.TimeoutException | SdkError | EC2ServiceError + Cause.TimeoutError | SdkError | EC2ServiceError >; /** @@ -3056,7 +3084,7 @@ interface EC2Service$ { options?: HttpHandlerOptions, ): Effect.Effect< AcceptTransitGatewayMulticastDomainAssociationsCommandOutput, - Cause.TimeoutException | SdkError | EC2ServiceError + Cause.TimeoutError | SdkError | EC2ServiceError >; /** @@ -3067,7 +3095,7 @@ interface EC2Service$ { options?: HttpHandlerOptions, ): Effect.Effect< AcceptTransitGatewayPeeringAttachmentCommandOutput, - Cause.TimeoutException | SdkError | EC2ServiceError + Cause.TimeoutError | SdkError | EC2ServiceError >; /** @@ -3078,7 +3106,7 @@ interface EC2Service$ { options?: HttpHandlerOptions, ): Effect.Effect< AcceptTransitGatewayVpcAttachmentCommandOutput, - Cause.TimeoutException | SdkError | EC2ServiceError + Cause.TimeoutError | SdkError | EC2ServiceError >; /** @@ -3089,7 +3117,7 @@ interface EC2Service$ { options?: HttpHandlerOptions, ): Effect.Effect< AcceptVpcEndpointConnectionsCommandOutput, - Cause.TimeoutException | SdkError | EC2ServiceError + Cause.TimeoutError | SdkError | EC2ServiceError >; /** @@ -3100,7 +3128,7 @@ interface EC2Service$ { options?: HttpHandlerOptions, ): Effect.Effect< AcceptVpcPeeringConnectionCommandOutput, - Cause.TimeoutException | SdkError | EC2ServiceError + Cause.TimeoutError | SdkError | EC2ServiceError >; /** @@ -3111,7 +3139,7 @@ interface EC2Service$ { options?: HttpHandlerOptions, ): Effect.Effect< AdvertiseByoipCidrCommandOutput, - Cause.TimeoutException | SdkError | EC2ServiceError + Cause.TimeoutError | SdkError | EC2ServiceError >; /** @@ -3122,7 +3150,7 @@ interface EC2Service$ { options?: HttpHandlerOptions, ): Effect.Effect< AllocateAddressCommandOutput, - Cause.TimeoutException | SdkError | EC2ServiceError + Cause.TimeoutError | SdkError | EC2ServiceError >; /** @@ -3133,7 +3161,7 @@ interface EC2Service$ { options?: HttpHandlerOptions, ): Effect.Effect< AllocateHostsCommandOutput, - Cause.TimeoutException | SdkError | EC2ServiceError + Cause.TimeoutError | SdkError | EC2ServiceError >; /** @@ -3144,7 +3172,7 @@ interface EC2Service$ { options?: HttpHandlerOptions, ): Effect.Effect< AllocateIpamPoolCidrCommandOutput, - Cause.TimeoutException | SdkError | EC2ServiceError + Cause.TimeoutError | SdkError | EC2ServiceError >; /** @@ -3155,7 +3183,7 @@ interface EC2Service$ { options?: HttpHandlerOptions, ): Effect.Effect< ApplySecurityGroupsToClientVpnTargetNetworkCommandOutput, - Cause.TimeoutException | SdkError | EC2ServiceError + Cause.TimeoutError | SdkError | EC2ServiceError >; /** @@ -3166,7 +3194,7 @@ interface EC2Service$ { options?: HttpHandlerOptions, ): Effect.Effect< AssignIpv6AddressesCommandOutput, - Cause.TimeoutException | SdkError | EC2ServiceError + Cause.TimeoutError | SdkError | EC2ServiceError >; /** @@ -3177,7 +3205,7 @@ interface EC2Service$ { options?: HttpHandlerOptions, ): Effect.Effect< AssignPrivateIpAddressesCommandOutput, - Cause.TimeoutException | SdkError | EC2ServiceError + Cause.TimeoutError | SdkError | EC2ServiceError >; /** @@ -3188,7 +3216,7 @@ interface EC2Service$ { options?: HttpHandlerOptions, ): Effect.Effect< AssignPrivateNatGatewayAddressCommandOutput, - Cause.TimeoutException | SdkError | EC2ServiceError + Cause.TimeoutError | SdkError | EC2ServiceError >; /** @@ -3199,7 +3227,7 @@ interface EC2Service$ { options?: HttpHandlerOptions, ): Effect.Effect< AssociateAddressCommandOutput, - Cause.TimeoutException | SdkError | EC2ServiceError + Cause.TimeoutError | SdkError | EC2ServiceError >; /** @@ -3210,7 +3238,7 @@ interface EC2Service$ { options?: HttpHandlerOptions, ): Effect.Effect< AssociateCapacityReservationBillingOwnerCommandOutput, - Cause.TimeoutException | SdkError | EC2ServiceError + Cause.TimeoutError | SdkError | EC2ServiceError >; /** @@ -3221,7 +3249,7 @@ interface EC2Service$ { options?: HttpHandlerOptions, ): Effect.Effect< AssociateClientVpnTargetNetworkCommandOutput, - Cause.TimeoutException | SdkError | EC2ServiceError + Cause.TimeoutError | SdkError | EC2ServiceError >; /** @@ -3232,7 +3260,7 @@ interface EC2Service$ { options?: HttpHandlerOptions, ): Effect.Effect< AssociateDhcpOptionsCommandOutput, - Cause.TimeoutException | SdkError | EC2ServiceError + Cause.TimeoutError | SdkError | EC2ServiceError >; /** @@ -3243,7 +3271,7 @@ interface EC2Service$ { options?: HttpHandlerOptions, ): Effect.Effect< AssociateEnclaveCertificateIamRoleCommandOutput, - Cause.TimeoutException | SdkError | EC2ServiceError + Cause.TimeoutError | SdkError | EC2ServiceError >; /** @@ -3254,7 +3282,7 @@ interface EC2Service$ { options?: HttpHandlerOptions, ): Effect.Effect< AssociateIamInstanceProfileCommandOutput, - Cause.TimeoutException | SdkError | EC2ServiceError + Cause.TimeoutError | SdkError | EC2ServiceError >; /** @@ -3265,7 +3293,7 @@ interface EC2Service$ { options?: HttpHandlerOptions, ): Effect.Effect< AssociateInstanceEventWindowCommandOutput, - Cause.TimeoutException | SdkError | EC2ServiceError + Cause.TimeoutError | SdkError | EC2ServiceError >; /** @@ -3276,7 +3304,7 @@ interface EC2Service$ { options?: HttpHandlerOptions, ): Effect.Effect< AssociateIpamByoasnCommandOutput, - Cause.TimeoutException | SdkError | EC2ServiceError + Cause.TimeoutError | SdkError | EC2ServiceError >; /** @@ -3287,7 +3315,7 @@ interface EC2Service$ { options?: HttpHandlerOptions, ): Effect.Effect< AssociateIpamResourceDiscoveryCommandOutput, - Cause.TimeoutException | SdkError | EC2ServiceError + Cause.TimeoutError | SdkError | EC2ServiceError >; /** @@ -3298,7 +3326,7 @@ interface EC2Service$ { options?: HttpHandlerOptions, ): Effect.Effect< AssociateNatGatewayAddressCommandOutput, - Cause.TimeoutException | SdkError | EC2ServiceError + Cause.TimeoutError | SdkError | EC2ServiceError >; /** @@ -3309,7 +3337,7 @@ interface EC2Service$ { options?: HttpHandlerOptions, ): Effect.Effect< AssociateRouteServerCommandOutput, - Cause.TimeoutException | SdkError | EC2ServiceError + Cause.TimeoutError | SdkError | EC2ServiceError >; /** @@ -3320,7 +3348,7 @@ interface EC2Service$ { options?: HttpHandlerOptions, ): Effect.Effect< AssociateRouteTableCommandOutput, - Cause.TimeoutException | SdkError | EC2ServiceError + Cause.TimeoutError | SdkError | EC2ServiceError >; /** @@ -3331,7 +3359,7 @@ interface EC2Service$ { options?: HttpHandlerOptions, ): Effect.Effect< AssociateSecurityGroupVpcCommandOutput, - Cause.TimeoutException | SdkError | EC2ServiceError + Cause.TimeoutError | SdkError | EC2ServiceError >; /** @@ -3342,7 +3370,7 @@ interface EC2Service$ { options?: HttpHandlerOptions, ): Effect.Effect< AssociateSubnetCidrBlockCommandOutput, - Cause.TimeoutException | SdkError | EC2ServiceError + Cause.TimeoutError | SdkError | EC2ServiceError >; /** @@ -3353,7 +3381,7 @@ interface EC2Service$ { options?: HttpHandlerOptions, ): Effect.Effect< AssociateTransitGatewayMulticastDomainCommandOutput, - Cause.TimeoutException | SdkError | EC2ServiceError + Cause.TimeoutError | SdkError | EC2ServiceError >; /** @@ -3364,7 +3392,7 @@ interface EC2Service$ { options?: HttpHandlerOptions, ): Effect.Effect< AssociateTransitGatewayPolicyTableCommandOutput, - Cause.TimeoutException | SdkError | EC2ServiceError + Cause.TimeoutError | SdkError | EC2ServiceError >; /** @@ -3375,7 +3403,7 @@ interface EC2Service$ { options?: HttpHandlerOptions, ): Effect.Effect< AssociateTransitGatewayRouteTableCommandOutput, - Cause.TimeoutException | SdkError | EC2ServiceError + Cause.TimeoutError | SdkError | EC2ServiceError >; /** @@ -3386,7 +3414,7 @@ interface EC2Service$ { options?: HttpHandlerOptions, ): Effect.Effect< AssociateTrunkInterfaceCommandOutput, - Cause.TimeoutException | SdkError | EC2ServiceError + Cause.TimeoutError | SdkError | EC2ServiceError >; /** @@ -3397,7 +3425,7 @@ interface EC2Service$ { options?: HttpHandlerOptions, ): Effect.Effect< AssociateVpcCidrBlockCommandOutput, - Cause.TimeoutException | SdkError | EC2ServiceError + Cause.TimeoutError | SdkError | EC2ServiceError >; /** @@ -3408,7 +3436,7 @@ interface EC2Service$ { options?: HttpHandlerOptions, ): Effect.Effect< AttachClassicLinkVpcCommandOutput, - Cause.TimeoutException | SdkError | EC2ServiceError + Cause.TimeoutError | SdkError | EC2ServiceError >; /** @@ -3419,7 +3447,7 @@ interface EC2Service$ { options?: HttpHandlerOptions, ): Effect.Effect< AttachInternetGatewayCommandOutput, - Cause.TimeoutException | SdkError | EC2ServiceError + Cause.TimeoutError | SdkError | EC2ServiceError >; /** @@ -3430,7 +3458,7 @@ interface EC2Service$ { options?: HttpHandlerOptions, ): Effect.Effect< AttachNetworkInterfaceCommandOutput, - Cause.TimeoutException | SdkError | EC2ServiceError + Cause.TimeoutError | SdkError | EC2ServiceError >; /** @@ -3441,7 +3469,7 @@ interface EC2Service$ { options?: HttpHandlerOptions, ): Effect.Effect< AttachVerifiedAccessTrustProviderCommandOutput, - Cause.TimeoutException | SdkError | EC2ServiceError + Cause.TimeoutError | SdkError | EC2ServiceError >; /** @@ -3452,7 +3480,7 @@ interface EC2Service$ { options?: HttpHandlerOptions, ): Effect.Effect< AttachVolumeCommandOutput, - Cause.TimeoutException | SdkError | EC2ServiceError + Cause.TimeoutError | SdkError | EC2ServiceError >; /** @@ -3463,7 +3491,7 @@ interface EC2Service$ { options?: HttpHandlerOptions, ): Effect.Effect< AttachVpnGatewayCommandOutput, - Cause.TimeoutException | SdkError | EC2ServiceError + Cause.TimeoutError | SdkError | EC2ServiceError >; /** @@ -3474,7 +3502,7 @@ interface EC2Service$ { options?: HttpHandlerOptions, ): Effect.Effect< AuthorizeClientVpnIngressCommandOutput, - Cause.TimeoutException | SdkError | EC2ServiceError + Cause.TimeoutError | SdkError | EC2ServiceError >; /** @@ -3485,7 +3513,7 @@ interface EC2Service$ { options?: HttpHandlerOptions, ): Effect.Effect< AuthorizeSecurityGroupEgressCommandOutput, - Cause.TimeoutException | SdkError | EC2ServiceError + Cause.TimeoutError | SdkError | EC2ServiceError >; /** @@ -3496,7 +3524,7 @@ interface EC2Service$ { options?: HttpHandlerOptions, ): Effect.Effect< AuthorizeSecurityGroupIngressCommandOutput, - Cause.TimeoutException | SdkError | EC2ServiceError + Cause.TimeoutError | SdkError | EC2ServiceError >; /** @@ -3507,7 +3535,7 @@ interface EC2Service$ { options?: HttpHandlerOptions, ): Effect.Effect< BundleInstanceCommandOutput, - Cause.TimeoutException | SdkError | EC2ServiceError + Cause.TimeoutError | SdkError | EC2ServiceError >; /** @@ -3518,7 +3546,7 @@ interface EC2Service$ { options?: HttpHandlerOptions, ): Effect.Effect< CancelBundleTaskCommandOutput, - Cause.TimeoutException | SdkError | EC2ServiceError + Cause.TimeoutError | SdkError | EC2ServiceError >; /** @@ -3529,7 +3557,7 @@ interface EC2Service$ { options?: HttpHandlerOptions, ): Effect.Effect< CancelCapacityReservationCommandOutput, - Cause.TimeoutException | SdkError | EC2ServiceError + Cause.TimeoutError | SdkError | EC2ServiceError >; /** @@ -3540,7 +3568,7 @@ interface EC2Service$ { options?: HttpHandlerOptions, ): Effect.Effect< CancelCapacityReservationFleetsCommandOutput, - Cause.TimeoutException | SdkError | EC2ServiceError + Cause.TimeoutError | SdkError | EC2ServiceError >; /** @@ -3551,7 +3579,7 @@ interface EC2Service$ { options?: HttpHandlerOptions, ): Effect.Effect< CancelConversionTaskCommandOutput, - Cause.TimeoutException | SdkError | EC2ServiceError + Cause.TimeoutError | SdkError | EC2ServiceError >; /** @@ -3562,7 +3590,7 @@ interface EC2Service$ { options?: HttpHandlerOptions, ): Effect.Effect< CancelDeclarativePoliciesReportCommandOutput, - Cause.TimeoutException | SdkError | EC2ServiceError + Cause.TimeoutError | SdkError | EC2ServiceError >; /** @@ -3573,7 +3601,7 @@ interface EC2Service$ { options?: HttpHandlerOptions, ): Effect.Effect< CancelExportTaskCommandOutput, - Cause.TimeoutException | SdkError | EC2ServiceError + Cause.TimeoutError | SdkError | EC2ServiceError >; /** @@ -3584,7 +3612,7 @@ interface EC2Service$ { options?: HttpHandlerOptions, ): Effect.Effect< CancelImageLaunchPermissionCommandOutput, - Cause.TimeoutException | SdkError | EC2ServiceError + Cause.TimeoutError | SdkError | EC2ServiceError >; /** @@ -3595,7 +3623,7 @@ interface EC2Service$ { options?: HttpHandlerOptions, ): Effect.Effect< CancelImportTaskCommandOutput, - Cause.TimeoutException | SdkError | EC2ServiceError + Cause.TimeoutError | SdkError | EC2ServiceError >; /** @@ -3606,7 +3634,7 @@ interface EC2Service$ { options?: HttpHandlerOptions, ): Effect.Effect< CancelReservedInstancesListingCommandOutput, - Cause.TimeoutException | SdkError | EC2ServiceError + Cause.TimeoutError | SdkError | EC2ServiceError >; /** @@ -3617,7 +3645,7 @@ interface EC2Service$ { options?: HttpHandlerOptions, ): Effect.Effect< CancelSpotFleetRequestsCommandOutput, - Cause.TimeoutException | SdkError | EC2ServiceError + Cause.TimeoutError | SdkError | EC2ServiceError >; /** @@ -3628,7 +3656,7 @@ interface EC2Service$ { options?: HttpHandlerOptions, ): Effect.Effect< CancelSpotInstanceRequestsCommandOutput, - Cause.TimeoutException | SdkError | EC2ServiceError + Cause.TimeoutError | SdkError | EC2ServiceError >; /** @@ -3639,7 +3667,7 @@ interface EC2Service$ { options?: HttpHandlerOptions, ): Effect.Effect< ConfirmProductInstanceCommandOutput, - Cause.TimeoutException | SdkError | EC2ServiceError + Cause.TimeoutError | SdkError | EC2ServiceError >; /** @@ -3650,7 +3678,7 @@ interface EC2Service$ { options?: HttpHandlerOptions, ): Effect.Effect< CopyFpgaImageCommandOutput, - Cause.TimeoutException | SdkError | EC2ServiceError + Cause.TimeoutError | SdkError | EC2ServiceError >; /** @@ -3661,7 +3689,7 @@ interface EC2Service$ { options?: HttpHandlerOptions, ): Effect.Effect< CopyImageCommandOutput, - Cause.TimeoutException | SdkError | EC2ServiceError + Cause.TimeoutError | SdkError | EC2ServiceError >; /** @@ -3672,7 +3700,7 @@ interface EC2Service$ { options?: HttpHandlerOptions, ): Effect.Effect< CopySnapshotCommandOutput, - Cause.TimeoutException | SdkError | EC2ServiceError + Cause.TimeoutError | SdkError | EC2ServiceError >; /** @@ -3683,7 +3711,7 @@ interface EC2Service$ { options?: HttpHandlerOptions, ): Effect.Effect< CopyVolumesCommandOutput, - Cause.TimeoutException | SdkError | EC2ServiceError + Cause.TimeoutError | SdkError | EC2ServiceError >; /** @@ -3694,7 +3722,7 @@ interface EC2Service$ { options?: HttpHandlerOptions, ): Effect.Effect< CreateCapacityManagerDataExportCommandOutput, - Cause.TimeoutException | SdkError | EC2ServiceError + Cause.TimeoutError | SdkError | EC2ServiceError >; /** @@ -3705,7 +3733,7 @@ interface EC2Service$ { options?: HttpHandlerOptions, ): Effect.Effect< CreateCapacityReservationCommandOutput, - Cause.TimeoutException | SdkError | EC2ServiceError + Cause.TimeoutError | SdkError | EC2ServiceError >; /** @@ -3716,7 +3744,7 @@ interface EC2Service$ { options?: HttpHandlerOptions, ): Effect.Effect< CreateCapacityReservationBySplittingCommandOutput, - Cause.TimeoutException | SdkError | EC2ServiceError + Cause.TimeoutError | SdkError | EC2ServiceError >; /** @@ -3727,7 +3755,7 @@ interface EC2Service$ { options?: HttpHandlerOptions, ): Effect.Effect< CreateCapacityReservationFleetCommandOutput, - Cause.TimeoutException | SdkError | EC2ServiceError + Cause.TimeoutError | SdkError | EC2ServiceError >; /** @@ -3738,7 +3766,7 @@ interface EC2Service$ { options?: HttpHandlerOptions, ): Effect.Effect< CreateCarrierGatewayCommandOutput, - Cause.TimeoutException | SdkError | EC2ServiceError + Cause.TimeoutError | SdkError | EC2ServiceError >; /** @@ -3749,7 +3777,7 @@ interface EC2Service$ { options?: HttpHandlerOptions, ): Effect.Effect< CreateClientVpnEndpointCommandOutput, - Cause.TimeoutException | SdkError | EC2ServiceError + Cause.TimeoutError | SdkError | EC2ServiceError >; /** @@ -3760,7 +3788,7 @@ interface EC2Service$ { options?: HttpHandlerOptions, ): Effect.Effect< CreateClientVpnRouteCommandOutput, - Cause.TimeoutException | SdkError | EC2ServiceError + Cause.TimeoutError | SdkError | EC2ServiceError >; /** @@ -3771,7 +3799,7 @@ interface EC2Service$ { options?: HttpHandlerOptions, ): Effect.Effect< CreateCoipCidrCommandOutput, - Cause.TimeoutException | SdkError | EC2ServiceError + Cause.TimeoutError | SdkError | EC2ServiceError >; /** @@ -3782,7 +3810,7 @@ interface EC2Service$ { options?: HttpHandlerOptions, ): Effect.Effect< CreateCoipPoolCommandOutput, - Cause.TimeoutException | SdkError | EC2ServiceError + Cause.TimeoutError | SdkError | EC2ServiceError >; /** @@ -3793,7 +3821,7 @@ interface EC2Service$ { options?: HttpHandlerOptions, ): Effect.Effect< CreateCustomerGatewayCommandOutput, - Cause.TimeoutException | SdkError | EC2ServiceError + Cause.TimeoutError | SdkError | EC2ServiceError >; /** @@ -3804,7 +3832,7 @@ interface EC2Service$ { options?: HttpHandlerOptions, ): Effect.Effect< CreateDefaultSubnetCommandOutput, - Cause.TimeoutException | SdkError | EC2ServiceError + Cause.TimeoutError | SdkError | EC2ServiceError >; /** @@ -3815,7 +3843,7 @@ interface EC2Service$ { options?: HttpHandlerOptions, ): Effect.Effect< CreateDefaultVpcCommandOutput, - Cause.TimeoutException | SdkError | EC2ServiceError + Cause.TimeoutError | SdkError | EC2ServiceError >; /** @@ -3826,7 +3854,7 @@ interface EC2Service$ { options?: HttpHandlerOptions, ): Effect.Effect< CreateDelegateMacVolumeOwnershipTaskCommandOutput, - Cause.TimeoutException | SdkError | EC2ServiceError + Cause.TimeoutError | SdkError | EC2ServiceError >; /** @@ -3837,7 +3865,7 @@ interface EC2Service$ { options?: HttpHandlerOptions, ): Effect.Effect< CreateDhcpOptionsCommandOutput, - Cause.TimeoutException | SdkError | EC2ServiceError + Cause.TimeoutError | SdkError | EC2ServiceError >; /** @@ -3848,7 +3876,7 @@ interface EC2Service$ { options?: HttpHandlerOptions, ): Effect.Effect< CreateEgressOnlyInternetGatewayCommandOutput, - Cause.TimeoutException | SdkError | EC2ServiceError + Cause.TimeoutError | SdkError | EC2ServiceError >; /** @@ -3859,7 +3887,7 @@ interface EC2Service$ { options?: HttpHandlerOptions, ): Effect.Effect< CreateFleetCommandOutput, - Cause.TimeoutException | SdkError | EC2ServiceError + Cause.TimeoutError | SdkError | EC2ServiceError >; /** @@ -3870,7 +3898,7 @@ interface EC2Service$ { options?: HttpHandlerOptions, ): Effect.Effect< CreateFlowLogsCommandOutput, - Cause.TimeoutException | SdkError | EC2ServiceError + Cause.TimeoutError | SdkError | EC2ServiceError >; /** @@ -3881,7 +3909,7 @@ interface EC2Service$ { options?: HttpHandlerOptions, ): Effect.Effect< CreateFpgaImageCommandOutput, - Cause.TimeoutException | SdkError | EC2ServiceError + Cause.TimeoutError | SdkError | EC2ServiceError >; /** @@ -3892,7 +3920,7 @@ interface EC2Service$ { options?: HttpHandlerOptions, ): Effect.Effect< CreateImageCommandOutput, - Cause.TimeoutException | SdkError | EC2ServiceError + Cause.TimeoutError | SdkError | EC2ServiceError >; /** @@ -3903,7 +3931,7 @@ interface EC2Service$ { options?: HttpHandlerOptions, ): Effect.Effect< CreateImageUsageReportCommandOutput, - Cause.TimeoutException | SdkError | EC2ServiceError + Cause.TimeoutError | SdkError | EC2ServiceError >; /** @@ -3914,7 +3942,7 @@ interface EC2Service$ { options?: HttpHandlerOptions, ): Effect.Effect< CreateInstanceConnectEndpointCommandOutput, - Cause.TimeoutException | SdkError | EC2ServiceError + Cause.TimeoutError | SdkError | EC2ServiceError >; /** @@ -3925,7 +3953,7 @@ interface EC2Service$ { options?: HttpHandlerOptions, ): Effect.Effect< CreateInstanceEventWindowCommandOutput, - Cause.TimeoutException | SdkError | EC2ServiceError + Cause.TimeoutError | SdkError | EC2ServiceError >; /** @@ -3936,7 +3964,7 @@ interface EC2Service$ { options?: HttpHandlerOptions, ): Effect.Effect< CreateInstanceExportTaskCommandOutput, - Cause.TimeoutException | SdkError | EC2ServiceError + Cause.TimeoutError | SdkError | EC2ServiceError >; /** @@ -3947,7 +3975,7 @@ interface EC2Service$ { options?: HttpHandlerOptions, ): Effect.Effect< CreateInternetGatewayCommandOutput, - Cause.TimeoutException | SdkError | EC2ServiceError + Cause.TimeoutError | SdkError | EC2ServiceError >; /** @@ -3958,7 +3986,7 @@ interface EC2Service$ { options?: HttpHandlerOptions, ): Effect.Effect< CreateInterruptibleCapacityReservationAllocationCommandOutput, - Cause.TimeoutException | SdkError | EC2ServiceError + Cause.TimeoutError | SdkError | EC2ServiceError >; /** @@ -3969,7 +3997,7 @@ interface EC2Service$ { options?: HttpHandlerOptions, ): Effect.Effect< CreateIpamCommandOutput, - Cause.TimeoutException | SdkError | EC2ServiceError + Cause.TimeoutError | SdkError | EC2ServiceError >; /** @@ -3980,7 +4008,7 @@ interface EC2Service$ { options?: HttpHandlerOptions, ): Effect.Effect< CreateIpamExternalResourceVerificationTokenCommandOutput, - Cause.TimeoutException | SdkError | EC2ServiceError + Cause.TimeoutError | SdkError | EC2ServiceError >; /** @@ -3991,7 +4019,7 @@ interface EC2Service$ { options?: HttpHandlerOptions, ): Effect.Effect< CreateIpamPolicyCommandOutput, - Cause.TimeoutException | SdkError | EC2ServiceError + Cause.TimeoutError | SdkError | EC2ServiceError >; /** @@ -4002,7 +4030,7 @@ interface EC2Service$ { options?: HttpHandlerOptions, ): Effect.Effect< CreateIpamPoolCommandOutput, - Cause.TimeoutException | SdkError | EC2ServiceError + Cause.TimeoutError | SdkError | EC2ServiceError >; /** @@ -4013,7 +4041,7 @@ interface EC2Service$ { options?: HttpHandlerOptions, ): Effect.Effect< CreateIpamPrefixListResolverCommandOutput, - Cause.TimeoutException | SdkError | EC2ServiceError + Cause.TimeoutError | SdkError | EC2ServiceError >; /** @@ -4024,7 +4052,7 @@ interface EC2Service$ { options?: HttpHandlerOptions, ): Effect.Effect< CreateIpamPrefixListResolverTargetCommandOutput, - Cause.TimeoutException | SdkError | EC2ServiceError + Cause.TimeoutError | SdkError | EC2ServiceError >; /** @@ -4035,7 +4063,7 @@ interface EC2Service$ { options?: HttpHandlerOptions, ): Effect.Effect< CreateIpamResourceDiscoveryCommandOutput, - Cause.TimeoutException | SdkError | EC2ServiceError + Cause.TimeoutError | SdkError | EC2ServiceError >; /** @@ -4046,7 +4074,7 @@ interface EC2Service$ { options?: HttpHandlerOptions, ): Effect.Effect< CreateIpamScopeCommandOutput, - Cause.TimeoutException | SdkError | EC2ServiceError + Cause.TimeoutError | SdkError | EC2ServiceError >; /** @@ -4057,7 +4085,7 @@ interface EC2Service$ { options?: HttpHandlerOptions, ): Effect.Effect< CreateKeyPairCommandOutput, - Cause.TimeoutException | SdkError | EC2ServiceError + Cause.TimeoutError | SdkError | EC2ServiceError >; /** @@ -4068,7 +4096,7 @@ interface EC2Service$ { options?: HttpHandlerOptions, ): Effect.Effect< CreateLaunchTemplateCommandOutput, - Cause.TimeoutException | SdkError | EC2ServiceError + Cause.TimeoutError | SdkError | EC2ServiceError >; /** @@ -4079,7 +4107,7 @@ interface EC2Service$ { options?: HttpHandlerOptions, ): Effect.Effect< CreateLaunchTemplateVersionCommandOutput, - Cause.TimeoutException | SdkError | EC2ServiceError + Cause.TimeoutError | SdkError | EC2ServiceError >; /** @@ -4090,7 +4118,7 @@ interface EC2Service$ { options?: HttpHandlerOptions, ): Effect.Effect< CreateLocalGatewayRouteCommandOutput, - Cause.TimeoutException | SdkError | EC2ServiceError + Cause.TimeoutError | SdkError | EC2ServiceError >; /** @@ -4101,7 +4129,7 @@ interface EC2Service$ { options?: HttpHandlerOptions, ): Effect.Effect< CreateLocalGatewayRouteTableCommandOutput, - Cause.TimeoutException | SdkError | EC2ServiceError + Cause.TimeoutError | SdkError | EC2ServiceError >; /** @@ -4112,7 +4140,7 @@ interface EC2Service$ { options?: HttpHandlerOptions, ): Effect.Effect< CreateLocalGatewayRouteTableVirtualInterfaceGroupAssociationCommandOutput, - Cause.TimeoutException | SdkError | EC2ServiceError + Cause.TimeoutError | SdkError | EC2ServiceError >; /** @@ -4123,7 +4151,7 @@ interface EC2Service$ { options?: HttpHandlerOptions, ): Effect.Effect< CreateLocalGatewayRouteTableVpcAssociationCommandOutput, - Cause.TimeoutException | SdkError | EC2ServiceError + Cause.TimeoutError | SdkError | EC2ServiceError >; /** @@ -4134,7 +4162,7 @@ interface EC2Service$ { options?: HttpHandlerOptions, ): Effect.Effect< CreateLocalGatewayVirtualInterfaceCommandOutput, - Cause.TimeoutException | SdkError | EC2ServiceError + Cause.TimeoutError | SdkError | EC2ServiceError >; /** @@ -4145,7 +4173,7 @@ interface EC2Service$ { options?: HttpHandlerOptions, ): Effect.Effect< CreateLocalGatewayVirtualInterfaceGroupCommandOutput, - Cause.TimeoutException | SdkError | EC2ServiceError + Cause.TimeoutError | SdkError | EC2ServiceError >; /** @@ -4156,7 +4184,7 @@ interface EC2Service$ { options?: HttpHandlerOptions, ): Effect.Effect< CreateMacSystemIntegrityProtectionModificationTaskCommandOutput, - Cause.TimeoutException | SdkError | EC2ServiceError + Cause.TimeoutError | SdkError | EC2ServiceError >; /** @@ -4167,7 +4195,7 @@ interface EC2Service$ { options?: HttpHandlerOptions, ): Effect.Effect< CreateManagedPrefixListCommandOutput, - Cause.TimeoutException | SdkError | EC2ServiceError + Cause.TimeoutError | SdkError | EC2ServiceError >; /** @@ -4178,7 +4206,7 @@ interface EC2Service$ { options?: HttpHandlerOptions, ): Effect.Effect< CreateNatGatewayCommandOutput, - Cause.TimeoutException | SdkError | EC2ServiceError + Cause.TimeoutError | SdkError | EC2ServiceError >; /** @@ -4189,7 +4217,7 @@ interface EC2Service$ { options?: HttpHandlerOptions, ): Effect.Effect< CreateNetworkAclCommandOutput, - Cause.TimeoutException | SdkError | EC2ServiceError + Cause.TimeoutError | SdkError | EC2ServiceError >; /** @@ -4200,7 +4228,7 @@ interface EC2Service$ { options?: HttpHandlerOptions, ): Effect.Effect< CreateNetworkAclEntryCommandOutput, - Cause.TimeoutException | SdkError | EC2ServiceError + Cause.TimeoutError | SdkError | EC2ServiceError >; /** @@ -4211,7 +4239,7 @@ interface EC2Service$ { options?: HttpHandlerOptions, ): Effect.Effect< CreateNetworkInsightsAccessScopeCommandOutput, - Cause.TimeoutException | SdkError | EC2ServiceError + Cause.TimeoutError | SdkError | EC2ServiceError >; /** @@ -4222,7 +4250,7 @@ interface EC2Service$ { options?: HttpHandlerOptions, ): Effect.Effect< CreateNetworkInsightsPathCommandOutput, - Cause.TimeoutException | SdkError | EC2ServiceError + Cause.TimeoutError | SdkError | EC2ServiceError >; /** @@ -4233,7 +4261,7 @@ interface EC2Service$ { options?: HttpHandlerOptions, ): Effect.Effect< CreateNetworkInterfaceCommandOutput, - Cause.TimeoutException | SdkError | EC2ServiceError + Cause.TimeoutError | SdkError | EC2ServiceError >; /** @@ -4244,7 +4272,7 @@ interface EC2Service$ { options?: HttpHandlerOptions, ): Effect.Effect< CreateNetworkInterfacePermissionCommandOutput, - Cause.TimeoutException | SdkError | EC2ServiceError + Cause.TimeoutError | SdkError | EC2ServiceError >; /** @@ -4255,7 +4283,7 @@ interface EC2Service$ { options?: HttpHandlerOptions, ): Effect.Effect< CreatePlacementGroupCommandOutput, - Cause.TimeoutException | SdkError | EC2ServiceError + Cause.TimeoutError | SdkError | EC2ServiceError >; /** @@ -4266,7 +4294,7 @@ interface EC2Service$ { options?: HttpHandlerOptions, ): Effect.Effect< CreatePublicIpv4PoolCommandOutput, - Cause.TimeoutException | SdkError | EC2ServiceError + Cause.TimeoutError | SdkError | EC2ServiceError >; /** @@ -4277,7 +4305,7 @@ interface EC2Service$ { options?: HttpHandlerOptions, ): Effect.Effect< CreateReplaceRootVolumeTaskCommandOutput, - Cause.TimeoutException | SdkError | EC2ServiceError + Cause.TimeoutError | SdkError | EC2ServiceError >; /** @@ -4288,7 +4316,7 @@ interface EC2Service$ { options?: HttpHandlerOptions, ): Effect.Effect< CreateReservedInstancesListingCommandOutput, - Cause.TimeoutException | SdkError | EC2ServiceError + Cause.TimeoutError | SdkError | EC2ServiceError >; /** @@ -4299,7 +4327,7 @@ interface EC2Service$ { options?: HttpHandlerOptions, ): Effect.Effect< CreateRestoreImageTaskCommandOutput, - Cause.TimeoutException | SdkError | EC2ServiceError + Cause.TimeoutError | SdkError | EC2ServiceError >; /** @@ -4310,7 +4338,7 @@ interface EC2Service$ { options?: HttpHandlerOptions, ): Effect.Effect< CreateRouteCommandOutput, - Cause.TimeoutException | SdkError | EC2ServiceError + Cause.TimeoutError | SdkError | EC2ServiceError >; /** @@ -4321,7 +4349,7 @@ interface EC2Service$ { options?: HttpHandlerOptions, ): Effect.Effect< CreateRouteServerCommandOutput, - Cause.TimeoutException | SdkError | EC2ServiceError + Cause.TimeoutError | SdkError | EC2ServiceError >; /** @@ -4332,7 +4360,7 @@ interface EC2Service$ { options?: HttpHandlerOptions, ): Effect.Effect< CreateRouteServerEndpointCommandOutput, - Cause.TimeoutException | SdkError | EC2ServiceError + Cause.TimeoutError | SdkError | EC2ServiceError >; /** @@ -4343,7 +4371,7 @@ interface EC2Service$ { options?: HttpHandlerOptions, ): Effect.Effect< CreateRouteServerPeerCommandOutput, - Cause.TimeoutException | SdkError | EC2ServiceError + Cause.TimeoutError | SdkError | EC2ServiceError >; /** @@ -4354,7 +4382,29 @@ interface EC2Service$ { options?: HttpHandlerOptions, ): Effect.Effect< CreateRouteTableCommandOutput, - Cause.TimeoutException | SdkError | EC2ServiceError + Cause.TimeoutError | SdkError | EC2ServiceError + >; + + /** + * @see {@link CreateSecondaryNetworkCommand} + */ + createSecondaryNetwork( + args: CreateSecondaryNetworkCommandInput, + options?: HttpHandlerOptions, + ): Effect.Effect< + CreateSecondaryNetworkCommandOutput, + Cause.TimeoutError | SdkError | EC2ServiceError + >; + + /** + * @see {@link CreateSecondarySubnetCommand} + */ + createSecondarySubnet( + args: CreateSecondarySubnetCommandInput, + options?: HttpHandlerOptions, + ): Effect.Effect< + CreateSecondarySubnetCommandOutput, + Cause.TimeoutError | SdkError | EC2ServiceError >; /** @@ -4365,7 +4415,7 @@ interface EC2Service$ { options?: HttpHandlerOptions, ): Effect.Effect< CreateSecurityGroupCommandOutput, - Cause.TimeoutException | SdkError | EC2ServiceError + Cause.TimeoutError | SdkError | EC2ServiceError >; /** @@ -4376,7 +4426,7 @@ interface EC2Service$ { options?: HttpHandlerOptions, ): Effect.Effect< CreateSnapshotCommandOutput, - Cause.TimeoutException | SdkError | EC2ServiceError + Cause.TimeoutError | SdkError | EC2ServiceError >; /** @@ -4387,7 +4437,7 @@ interface EC2Service$ { options?: HttpHandlerOptions, ): Effect.Effect< CreateSnapshotsCommandOutput, - Cause.TimeoutException | SdkError | EC2ServiceError + Cause.TimeoutError | SdkError | EC2ServiceError >; /** @@ -4398,7 +4448,7 @@ interface EC2Service$ { options?: HttpHandlerOptions, ): Effect.Effect< CreateSpotDatafeedSubscriptionCommandOutput, - Cause.TimeoutException | SdkError | EC2ServiceError + Cause.TimeoutError | SdkError | EC2ServiceError >; /** @@ -4409,7 +4459,7 @@ interface EC2Service$ { options?: HttpHandlerOptions, ): Effect.Effect< CreateStoreImageTaskCommandOutput, - Cause.TimeoutException | SdkError | EC2ServiceError + Cause.TimeoutError | SdkError | EC2ServiceError >; /** @@ -4420,7 +4470,7 @@ interface EC2Service$ { options?: HttpHandlerOptions, ): Effect.Effect< CreateSubnetCommandOutput, - Cause.TimeoutException | SdkError | EC2ServiceError + Cause.TimeoutError | SdkError | EC2ServiceError >; /** @@ -4431,7 +4481,7 @@ interface EC2Service$ { options?: HttpHandlerOptions, ): Effect.Effect< CreateSubnetCidrReservationCommandOutput, - Cause.TimeoutException | SdkError | EC2ServiceError + Cause.TimeoutError | SdkError | EC2ServiceError >; /** @@ -4442,7 +4492,7 @@ interface EC2Service$ { options?: HttpHandlerOptions, ): Effect.Effect< CreateTagsCommandOutput, - Cause.TimeoutException | SdkError | EC2ServiceError + Cause.TimeoutError | SdkError | EC2ServiceError >; /** @@ -4453,7 +4503,7 @@ interface EC2Service$ { options?: HttpHandlerOptions, ): Effect.Effect< CreateTrafficMirrorFilterCommandOutput, - Cause.TimeoutException | SdkError | EC2ServiceError + Cause.TimeoutError | SdkError | EC2ServiceError >; /** @@ -4464,7 +4514,7 @@ interface EC2Service$ { options?: HttpHandlerOptions, ): Effect.Effect< CreateTrafficMirrorFilterRuleCommandOutput, - Cause.TimeoutException | SdkError | EC2ServiceError + Cause.TimeoutError | SdkError | EC2ServiceError >; /** @@ -4475,7 +4525,7 @@ interface EC2Service$ { options?: HttpHandlerOptions, ): Effect.Effect< CreateTrafficMirrorSessionCommandOutput, - Cause.TimeoutException | SdkError | EC2ServiceError + Cause.TimeoutError | SdkError | EC2ServiceError >; /** @@ -4486,7 +4536,7 @@ interface EC2Service$ { options?: HttpHandlerOptions, ): Effect.Effect< CreateTrafficMirrorTargetCommandOutput, - Cause.TimeoutException | SdkError | EC2ServiceError + Cause.TimeoutError | SdkError | EC2ServiceError >; /** @@ -4497,7 +4547,7 @@ interface EC2Service$ { options?: HttpHandlerOptions, ): Effect.Effect< CreateTransitGatewayCommandOutput, - Cause.TimeoutException | SdkError | EC2ServiceError + Cause.TimeoutError | SdkError | EC2ServiceError >; /** @@ -4508,7 +4558,7 @@ interface EC2Service$ { options?: HttpHandlerOptions, ): Effect.Effect< CreateTransitGatewayConnectCommandOutput, - Cause.TimeoutException | SdkError | EC2ServiceError + Cause.TimeoutError | SdkError | EC2ServiceError >; /** @@ -4519,7 +4569,7 @@ interface EC2Service$ { options?: HttpHandlerOptions, ): Effect.Effect< CreateTransitGatewayConnectPeerCommandOutput, - Cause.TimeoutException | SdkError | EC2ServiceError + Cause.TimeoutError | SdkError | EC2ServiceError >; /** @@ -4530,7 +4580,7 @@ interface EC2Service$ { options?: HttpHandlerOptions, ): Effect.Effect< CreateTransitGatewayMeteringPolicyCommandOutput, - Cause.TimeoutException | SdkError | EC2ServiceError + Cause.TimeoutError | SdkError | EC2ServiceError >; /** @@ -4541,7 +4591,7 @@ interface EC2Service$ { options?: HttpHandlerOptions, ): Effect.Effect< CreateTransitGatewayMeteringPolicyEntryCommandOutput, - Cause.TimeoutException | SdkError | EC2ServiceError + Cause.TimeoutError | SdkError | EC2ServiceError >; /** @@ -4552,7 +4602,7 @@ interface EC2Service$ { options?: HttpHandlerOptions, ): Effect.Effect< CreateTransitGatewayMulticastDomainCommandOutput, - Cause.TimeoutException | SdkError | EC2ServiceError + Cause.TimeoutError | SdkError | EC2ServiceError >; /** @@ -4563,7 +4613,7 @@ interface EC2Service$ { options?: HttpHandlerOptions, ): Effect.Effect< CreateTransitGatewayPeeringAttachmentCommandOutput, - Cause.TimeoutException | SdkError | EC2ServiceError + Cause.TimeoutError | SdkError | EC2ServiceError >; /** @@ -4574,7 +4624,7 @@ interface EC2Service$ { options?: HttpHandlerOptions, ): Effect.Effect< CreateTransitGatewayPolicyTableCommandOutput, - Cause.TimeoutException | SdkError | EC2ServiceError + Cause.TimeoutError | SdkError | EC2ServiceError >; /** @@ -4585,7 +4635,7 @@ interface EC2Service$ { options?: HttpHandlerOptions, ): Effect.Effect< CreateTransitGatewayPrefixListReferenceCommandOutput, - Cause.TimeoutException | SdkError | EC2ServiceError + Cause.TimeoutError | SdkError | EC2ServiceError >; /** @@ -4596,7 +4646,7 @@ interface EC2Service$ { options?: HttpHandlerOptions, ): Effect.Effect< CreateTransitGatewayRouteCommandOutput, - Cause.TimeoutException | SdkError | EC2ServiceError + Cause.TimeoutError | SdkError | EC2ServiceError >; /** @@ -4607,7 +4657,7 @@ interface EC2Service$ { options?: HttpHandlerOptions, ): Effect.Effect< CreateTransitGatewayRouteTableCommandOutput, - Cause.TimeoutException | SdkError | EC2ServiceError + Cause.TimeoutError | SdkError | EC2ServiceError >; /** @@ -4618,7 +4668,7 @@ interface EC2Service$ { options?: HttpHandlerOptions, ): Effect.Effect< CreateTransitGatewayRouteTableAnnouncementCommandOutput, - Cause.TimeoutException | SdkError | EC2ServiceError + Cause.TimeoutError | SdkError | EC2ServiceError >; /** @@ -4629,7 +4679,7 @@ interface EC2Service$ { options?: HttpHandlerOptions, ): Effect.Effect< CreateTransitGatewayVpcAttachmentCommandOutput, - Cause.TimeoutException | SdkError | EC2ServiceError + Cause.TimeoutError | SdkError | EC2ServiceError >; /** @@ -4640,7 +4690,7 @@ interface EC2Service$ { options?: HttpHandlerOptions, ): Effect.Effect< CreateVerifiedAccessEndpointCommandOutput, - Cause.TimeoutException | SdkError | EC2ServiceError + Cause.TimeoutError | SdkError | EC2ServiceError >; /** @@ -4651,7 +4701,7 @@ interface EC2Service$ { options?: HttpHandlerOptions, ): Effect.Effect< CreateVerifiedAccessGroupCommandOutput, - Cause.TimeoutException | SdkError | EC2ServiceError + Cause.TimeoutError | SdkError | EC2ServiceError >; /** @@ -4662,7 +4712,7 @@ interface EC2Service$ { options?: HttpHandlerOptions, ): Effect.Effect< CreateVerifiedAccessInstanceCommandOutput, - Cause.TimeoutException | SdkError | EC2ServiceError + Cause.TimeoutError | SdkError | EC2ServiceError >; /** @@ -4673,7 +4723,7 @@ interface EC2Service$ { options?: HttpHandlerOptions, ): Effect.Effect< CreateVerifiedAccessTrustProviderCommandOutput, - Cause.TimeoutException | SdkError | EC2ServiceError + Cause.TimeoutError | SdkError | EC2ServiceError >; /** @@ -4684,7 +4734,7 @@ interface EC2Service$ { options?: HttpHandlerOptions, ): Effect.Effect< CreateVolumeCommandOutput, - Cause.TimeoutException | SdkError | EC2ServiceError + Cause.TimeoutError | SdkError | EC2ServiceError >; /** @@ -4695,7 +4745,7 @@ interface EC2Service$ { options?: HttpHandlerOptions, ): Effect.Effect< CreateVpcCommandOutput, - Cause.TimeoutException | SdkError | EC2ServiceError + Cause.TimeoutError | SdkError | EC2ServiceError >; /** @@ -4706,7 +4756,7 @@ interface EC2Service$ { options?: HttpHandlerOptions, ): Effect.Effect< CreateVpcBlockPublicAccessExclusionCommandOutput, - Cause.TimeoutException | SdkError | EC2ServiceError + Cause.TimeoutError | SdkError | EC2ServiceError >; /** @@ -4717,7 +4767,7 @@ interface EC2Service$ { options?: HttpHandlerOptions, ): Effect.Effect< CreateVpcEncryptionControlCommandOutput, - Cause.TimeoutException | SdkError | EC2ServiceError + Cause.TimeoutError | SdkError | EC2ServiceError >; /** @@ -4728,7 +4778,7 @@ interface EC2Service$ { options?: HttpHandlerOptions, ): Effect.Effect< CreateVpcEndpointCommandOutput, - Cause.TimeoutException | SdkError | EC2ServiceError + Cause.TimeoutError | SdkError | EC2ServiceError >; /** @@ -4739,7 +4789,7 @@ interface EC2Service$ { options?: HttpHandlerOptions, ): Effect.Effect< CreateVpcEndpointConnectionNotificationCommandOutput, - Cause.TimeoutException | SdkError | EC2ServiceError + Cause.TimeoutError | SdkError | EC2ServiceError >; /** @@ -4750,7 +4800,7 @@ interface EC2Service$ { options?: HttpHandlerOptions, ): Effect.Effect< CreateVpcEndpointServiceConfigurationCommandOutput, - Cause.TimeoutException | SdkError | EC2ServiceError + Cause.TimeoutError | SdkError | EC2ServiceError >; /** @@ -4761,7 +4811,7 @@ interface EC2Service$ { options?: HttpHandlerOptions, ): Effect.Effect< CreateVpcPeeringConnectionCommandOutput, - Cause.TimeoutException | SdkError | EC2ServiceError + Cause.TimeoutError | SdkError | EC2ServiceError >; /** @@ -4772,7 +4822,7 @@ interface EC2Service$ { options?: HttpHandlerOptions, ): Effect.Effect< CreateVpnConcentratorCommandOutput, - Cause.TimeoutException | SdkError | EC2ServiceError + Cause.TimeoutError | SdkError | EC2ServiceError >; /** @@ -4783,7 +4833,7 @@ interface EC2Service$ { options?: HttpHandlerOptions, ): Effect.Effect< CreateVpnConnectionCommandOutput, - Cause.TimeoutException | SdkError | EC2ServiceError + Cause.TimeoutError | SdkError | EC2ServiceError >; /** @@ -4794,7 +4844,7 @@ interface EC2Service$ { options?: HttpHandlerOptions, ): Effect.Effect< CreateVpnConnectionRouteCommandOutput, - Cause.TimeoutException | SdkError | EC2ServiceError + Cause.TimeoutError | SdkError | EC2ServiceError >; /** @@ -4805,7 +4855,7 @@ interface EC2Service$ { options?: HttpHandlerOptions, ): Effect.Effect< CreateVpnGatewayCommandOutput, - Cause.TimeoutException | SdkError | EC2ServiceError + Cause.TimeoutError | SdkError | EC2ServiceError >; /** @@ -4816,7 +4866,7 @@ interface EC2Service$ { options?: HttpHandlerOptions, ): Effect.Effect< DeleteCapacityManagerDataExportCommandOutput, - Cause.TimeoutException | SdkError | EC2ServiceError + Cause.TimeoutError | SdkError | EC2ServiceError >; /** @@ -4827,7 +4877,7 @@ interface EC2Service$ { options?: HttpHandlerOptions, ): Effect.Effect< DeleteCarrierGatewayCommandOutput, - Cause.TimeoutException | SdkError | EC2ServiceError + Cause.TimeoutError | SdkError | EC2ServiceError >; /** @@ -4838,7 +4888,7 @@ interface EC2Service$ { options?: HttpHandlerOptions, ): Effect.Effect< DeleteClientVpnEndpointCommandOutput, - Cause.TimeoutException | SdkError | EC2ServiceError + Cause.TimeoutError | SdkError | EC2ServiceError >; /** @@ -4849,7 +4899,7 @@ interface EC2Service$ { options?: HttpHandlerOptions, ): Effect.Effect< DeleteClientVpnRouteCommandOutput, - Cause.TimeoutException | SdkError | EC2ServiceError + Cause.TimeoutError | SdkError | EC2ServiceError >; /** @@ -4860,7 +4910,7 @@ interface EC2Service$ { options?: HttpHandlerOptions, ): Effect.Effect< DeleteCoipCidrCommandOutput, - Cause.TimeoutException | SdkError | EC2ServiceError + Cause.TimeoutError | SdkError | EC2ServiceError >; /** @@ -4871,7 +4921,7 @@ interface EC2Service$ { options?: HttpHandlerOptions, ): Effect.Effect< DeleteCoipPoolCommandOutput, - Cause.TimeoutException | SdkError | EC2ServiceError + Cause.TimeoutError | SdkError | EC2ServiceError >; /** @@ -4882,7 +4932,7 @@ interface EC2Service$ { options?: HttpHandlerOptions, ): Effect.Effect< DeleteCustomerGatewayCommandOutput, - Cause.TimeoutException | SdkError | EC2ServiceError + Cause.TimeoutError | SdkError | EC2ServiceError >; /** @@ -4893,7 +4943,7 @@ interface EC2Service$ { options?: HttpHandlerOptions, ): Effect.Effect< DeleteDhcpOptionsCommandOutput, - Cause.TimeoutException | SdkError | EC2ServiceError + Cause.TimeoutError | SdkError | EC2ServiceError >; /** @@ -4904,7 +4954,7 @@ interface EC2Service$ { options?: HttpHandlerOptions, ): Effect.Effect< DeleteEgressOnlyInternetGatewayCommandOutput, - Cause.TimeoutException | SdkError | EC2ServiceError + Cause.TimeoutError | SdkError | EC2ServiceError >; /** @@ -4915,7 +4965,7 @@ interface EC2Service$ { options?: HttpHandlerOptions, ): Effect.Effect< DeleteFleetsCommandOutput, - Cause.TimeoutException | SdkError | EC2ServiceError + Cause.TimeoutError | SdkError | EC2ServiceError >; /** @@ -4926,7 +4976,7 @@ interface EC2Service$ { options?: HttpHandlerOptions, ): Effect.Effect< DeleteFlowLogsCommandOutput, - Cause.TimeoutException | SdkError | EC2ServiceError + Cause.TimeoutError | SdkError | EC2ServiceError >; /** @@ -4937,7 +4987,7 @@ interface EC2Service$ { options?: HttpHandlerOptions, ): Effect.Effect< DeleteFpgaImageCommandOutput, - Cause.TimeoutException | SdkError | EC2ServiceError + Cause.TimeoutError | SdkError | EC2ServiceError >; /** @@ -4948,7 +4998,7 @@ interface EC2Service$ { options?: HttpHandlerOptions, ): Effect.Effect< DeleteImageUsageReportCommandOutput, - Cause.TimeoutException | SdkError | EC2ServiceError + Cause.TimeoutError | SdkError | EC2ServiceError >; /** @@ -4959,7 +5009,7 @@ interface EC2Service$ { options?: HttpHandlerOptions, ): Effect.Effect< DeleteInstanceConnectEndpointCommandOutput, - Cause.TimeoutException | SdkError | EC2ServiceError + Cause.TimeoutError | SdkError | EC2ServiceError >; /** @@ -4970,7 +5020,7 @@ interface EC2Service$ { options?: HttpHandlerOptions, ): Effect.Effect< DeleteInstanceEventWindowCommandOutput, - Cause.TimeoutException | SdkError | EC2ServiceError + Cause.TimeoutError | SdkError | EC2ServiceError >; /** @@ -4981,7 +5031,7 @@ interface EC2Service$ { options?: HttpHandlerOptions, ): Effect.Effect< DeleteInternetGatewayCommandOutput, - Cause.TimeoutException | SdkError | EC2ServiceError + Cause.TimeoutError | SdkError | EC2ServiceError >; /** @@ -4992,7 +5042,7 @@ interface EC2Service$ { options?: HttpHandlerOptions, ): Effect.Effect< DeleteIpamCommandOutput, - Cause.TimeoutException | SdkError | EC2ServiceError + Cause.TimeoutError | SdkError | EC2ServiceError >; /** @@ -5003,7 +5053,7 @@ interface EC2Service$ { options?: HttpHandlerOptions, ): Effect.Effect< DeleteIpamExternalResourceVerificationTokenCommandOutput, - Cause.TimeoutException | SdkError | EC2ServiceError + Cause.TimeoutError | SdkError | EC2ServiceError >; /** @@ -5014,7 +5064,7 @@ interface EC2Service$ { options?: HttpHandlerOptions, ): Effect.Effect< DeleteIpamPolicyCommandOutput, - Cause.TimeoutException | SdkError | EC2ServiceError + Cause.TimeoutError | SdkError | EC2ServiceError >; /** @@ -5025,7 +5075,7 @@ interface EC2Service$ { options?: HttpHandlerOptions, ): Effect.Effect< DeleteIpamPoolCommandOutput, - Cause.TimeoutException | SdkError | EC2ServiceError + Cause.TimeoutError | SdkError | EC2ServiceError >; /** @@ -5036,7 +5086,7 @@ interface EC2Service$ { options?: HttpHandlerOptions, ): Effect.Effect< DeleteIpamPrefixListResolverCommandOutput, - Cause.TimeoutException | SdkError | EC2ServiceError + Cause.TimeoutError | SdkError | EC2ServiceError >; /** @@ -5047,7 +5097,7 @@ interface EC2Service$ { options?: HttpHandlerOptions, ): Effect.Effect< DeleteIpamPrefixListResolverTargetCommandOutput, - Cause.TimeoutException | SdkError | EC2ServiceError + Cause.TimeoutError | SdkError | EC2ServiceError >; /** @@ -5058,7 +5108,7 @@ interface EC2Service$ { options?: HttpHandlerOptions, ): Effect.Effect< DeleteIpamResourceDiscoveryCommandOutput, - Cause.TimeoutException | SdkError | EC2ServiceError + Cause.TimeoutError | SdkError | EC2ServiceError >; /** @@ -5069,7 +5119,7 @@ interface EC2Service$ { options?: HttpHandlerOptions, ): Effect.Effect< DeleteIpamScopeCommandOutput, - Cause.TimeoutException | SdkError | EC2ServiceError + Cause.TimeoutError | SdkError | EC2ServiceError >; /** @@ -5080,7 +5130,7 @@ interface EC2Service$ { options?: HttpHandlerOptions, ): Effect.Effect< DeleteKeyPairCommandOutput, - Cause.TimeoutException | SdkError | EC2ServiceError + Cause.TimeoutError | SdkError | EC2ServiceError >; /** @@ -5091,7 +5141,7 @@ interface EC2Service$ { options?: HttpHandlerOptions, ): Effect.Effect< DeleteLaunchTemplateCommandOutput, - Cause.TimeoutException | SdkError | EC2ServiceError + Cause.TimeoutError | SdkError | EC2ServiceError >; /** @@ -5102,7 +5152,7 @@ interface EC2Service$ { options?: HttpHandlerOptions, ): Effect.Effect< DeleteLaunchTemplateVersionsCommandOutput, - Cause.TimeoutException | SdkError | EC2ServiceError + Cause.TimeoutError | SdkError | EC2ServiceError >; /** @@ -5113,7 +5163,7 @@ interface EC2Service$ { options?: HttpHandlerOptions, ): Effect.Effect< DeleteLocalGatewayRouteCommandOutput, - Cause.TimeoutException | SdkError | EC2ServiceError + Cause.TimeoutError | SdkError | EC2ServiceError >; /** @@ -5124,7 +5174,7 @@ interface EC2Service$ { options?: HttpHandlerOptions, ): Effect.Effect< DeleteLocalGatewayRouteTableCommandOutput, - Cause.TimeoutException | SdkError | EC2ServiceError + Cause.TimeoutError | SdkError | EC2ServiceError >; /** @@ -5135,7 +5185,7 @@ interface EC2Service$ { options?: HttpHandlerOptions, ): Effect.Effect< DeleteLocalGatewayRouteTableVirtualInterfaceGroupAssociationCommandOutput, - Cause.TimeoutException | SdkError | EC2ServiceError + Cause.TimeoutError | SdkError | EC2ServiceError >; /** @@ -5146,7 +5196,7 @@ interface EC2Service$ { options?: HttpHandlerOptions, ): Effect.Effect< DeleteLocalGatewayRouteTableVpcAssociationCommandOutput, - Cause.TimeoutException | SdkError | EC2ServiceError + Cause.TimeoutError | SdkError | EC2ServiceError >; /** @@ -5157,7 +5207,7 @@ interface EC2Service$ { options?: HttpHandlerOptions, ): Effect.Effect< DeleteLocalGatewayVirtualInterfaceCommandOutput, - Cause.TimeoutException | SdkError | EC2ServiceError + Cause.TimeoutError | SdkError | EC2ServiceError >; /** @@ -5168,7 +5218,7 @@ interface EC2Service$ { options?: HttpHandlerOptions, ): Effect.Effect< DeleteLocalGatewayVirtualInterfaceGroupCommandOutput, - Cause.TimeoutException | SdkError | EC2ServiceError + Cause.TimeoutError | SdkError | EC2ServiceError >; /** @@ -5179,7 +5229,7 @@ interface EC2Service$ { options?: HttpHandlerOptions, ): Effect.Effect< DeleteManagedPrefixListCommandOutput, - Cause.TimeoutException | SdkError | EC2ServiceError + Cause.TimeoutError | SdkError | EC2ServiceError >; /** @@ -5190,7 +5240,7 @@ interface EC2Service$ { options?: HttpHandlerOptions, ): Effect.Effect< DeleteNatGatewayCommandOutput, - Cause.TimeoutException | SdkError | EC2ServiceError + Cause.TimeoutError | SdkError | EC2ServiceError >; /** @@ -5201,7 +5251,7 @@ interface EC2Service$ { options?: HttpHandlerOptions, ): Effect.Effect< DeleteNetworkAclCommandOutput, - Cause.TimeoutException | SdkError | EC2ServiceError + Cause.TimeoutError | SdkError | EC2ServiceError >; /** @@ -5212,7 +5262,7 @@ interface EC2Service$ { options?: HttpHandlerOptions, ): Effect.Effect< DeleteNetworkAclEntryCommandOutput, - Cause.TimeoutException | SdkError | EC2ServiceError + Cause.TimeoutError | SdkError | EC2ServiceError >; /** @@ -5223,7 +5273,7 @@ interface EC2Service$ { options?: HttpHandlerOptions, ): Effect.Effect< DeleteNetworkInsightsAccessScopeCommandOutput, - Cause.TimeoutException | SdkError | EC2ServiceError + Cause.TimeoutError | SdkError | EC2ServiceError >; /** @@ -5234,7 +5284,7 @@ interface EC2Service$ { options?: HttpHandlerOptions, ): Effect.Effect< DeleteNetworkInsightsAccessScopeAnalysisCommandOutput, - Cause.TimeoutException | SdkError | EC2ServiceError + Cause.TimeoutError | SdkError | EC2ServiceError >; /** @@ -5245,7 +5295,7 @@ interface EC2Service$ { options?: HttpHandlerOptions, ): Effect.Effect< DeleteNetworkInsightsAnalysisCommandOutput, - Cause.TimeoutException | SdkError | EC2ServiceError + Cause.TimeoutError | SdkError | EC2ServiceError >; /** @@ -5256,7 +5306,7 @@ interface EC2Service$ { options?: HttpHandlerOptions, ): Effect.Effect< DeleteNetworkInsightsPathCommandOutput, - Cause.TimeoutException | SdkError | EC2ServiceError + Cause.TimeoutError | SdkError | EC2ServiceError >; /** @@ -5267,7 +5317,7 @@ interface EC2Service$ { options?: HttpHandlerOptions, ): Effect.Effect< DeleteNetworkInterfaceCommandOutput, - Cause.TimeoutException | SdkError | EC2ServiceError + Cause.TimeoutError | SdkError | EC2ServiceError >; /** @@ -5278,7 +5328,7 @@ interface EC2Service$ { options?: HttpHandlerOptions, ): Effect.Effect< DeleteNetworkInterfacePermissionCommandOutput, - Cause.TimeoutException | SdkError | EC2ServiceError + Cause.TimeoutError | SdkError | EC2ServiceError >; /** @@ -5289,7 +5339,7 @@ interface EC2Service$ { options?: HttpHandlerOptions, ): Effect.Effect< DeletePlacementGroupCommandOutput, - Cause.TimeoutException | SdkError | EC2ServiceError + Cause.TimeoutError | SdkError | EC2ServiceError >; /** @@ -5300,7 +5350,7 @@ interface EC2Service$ { options?: HttpHandlerOptions, ): Effect.Effect< DeletePublicIpv4PoolCommandOutput, - Cause.TimeoutException | SdkError | EC2ServiceError + Cause.TimeoutError | SdkError | EC2ServiceError >; /** @@ -5311,7 +5361,7 @@ interface EC2Service$ { options?: HttpHandlerOptions, ): Effect.Effect< DeleteQueuedReservedInstancesCommandOutput, - Cause.TimeoutException | SdkError | EC2ServiceError + Cause.TimeoutError | SdkError | EC2ServiceError >; /** @@ -5322,7 +5372,7 @@ interface EC2Service$ { options?: HttpHandlerOptions, ): Effect.Effect< DeleteRouteCommandOutput, - Cause.TimeoutException | SdkError | EC2ServiceError + Cause.TimeoutError | SdkError | EC2ServiceError >; /** @@ -5333,7 +5383,7 @@ interface EC2Service$ { options?: HttpHandlerOptions, ): Effect.Effect< DeleteRouteServerCommandOutput, - Cause.TimeoutException | SdkError | EC2ServiceError + Cause.TimeoutError | SdkError | EC2ServiceError >; /** @@ -5344,7 +5394,7 @@ interface EC2Service$ { options?: HttpHandlerOptions, ): Effect.Effect< DeleteRouteServerEndpointCommandOutput, - Cause.TimeoutException | SdkError | EC2ServiceError + Cause.TimeoutError | SdkError | EC2ServiceError >; /** @@ -5355,7 +5405,7 @@ interface EC2Service$ { options?: HttpHandlerOptions, ): Effect.Effect< DeleteRouteServerPeerCommandOutput, - Cause.TimeoutException | SdkError | EC2ServiceError + Cause.TimeoutError | SdkError | EC2ServiceError >; /** @@ -5366,7 +5416,29 @@ interface EC2Service$ { options?: HttpHandlerOptions, ): Effect.Effect< DeleteRouteTableCommandOutput, - Cause.TimeoutException | SdkError | EC2ServiceError + Cause.TimeoutError | SdkError | EC2ServiceError + >; + + /** + * @see {@link DeleteSecondaryNetworkCommand} + */ + deleteSecondaryNetwork( + args: DeleteSecondaryNetworkCommandInput, + options?: HttpHandlerOptions, + ): Effect.Effect< + DeleteSecondaryNetworkCommandOutput, + Cause.TimeoutError | SdkError | EC2ServiceError + >; + + /** + * @see {@link DeleteSecondarySubnetCommand} + */ + deleteSecondarySubnet( + args: DeleteSecondarySubnetCommandInput, + options?: HttpHandlerOptions, + ): Effect.Effect< + DeleteSecondarySubnetCommandOutput, + Cause.TimeoutError | SdkError | EC2ServiceError >; /** @@ -5377,7 +5449,7 @@ interface EC2Service$ { options?: HttpHandlerOptions, ): Effect.Effect< DeleteSecurityGroupCommandOutput, - Cause.TimeoutException | SdkError | EC2ServiceError + Cause.TimeoutError | SdkError | EC2ServiceError >; /** @@ -5388,7 +5460,7 @@ interface EC2Service$ { options?: HttpHandlerOptions, ): Effect.Effect< DeleteSnapshotCommandOutput, - Cause.TimeoutException | SdkError | EC2ServiceError + Cause.TimeoutError | SdkError | EC2ServiceError >; /** @@ -5399,7 +5471,7 @@ interface EC2Service$ { options?: HttpHandlerOptions, ): Effect.Effect< DeleteSpotDatafeedSubscriptionCommandOutput, - Cause.TimeoutException | SdkError | EC2ServiceError + Cause.TimeoutError | SdkError | EC2ServiceError >; /** @@ -5410,7 +5482,7 @@ interface EC2Service$ { options?: HttpHandlerOptions, ): Effect.Effect< DeleteSubnetCommandOutput, - Cause.TimeoutException | SdkError | EC2ServiceError + Cause.TimeoutError | SdkError | EC2ServiceError >; /** @@ -5421,7 +5493,7 @@ interface EC2Service$ { options?: HttpHandlerOptions, ): Effect.Effect< DeleteSubnetCidrReservationCommandOutput, - Cause.TimeoutException | SdkError | EC2ServiceError + Cause.TimeoutError | SdkError | EC2ServiceError >; /** @@ -5432,7 +5504,7 @@ interface EC2Service$ { options?: HttpHandlerOptions, ): Effect.Effect< DeleteTagsCommandOutput, - Cause.TimeoutException | SdkError | EC2ServiceError + Cause.TimeoutError | SdkError | EC2ServiceError >; /** @@ -5443,7 +5515,7 @@ interface EC2Service$ { options?: HttpHandlerOptions, ): Effect.Effect< DeleteTrafficMirrorFilterCommandOutput, - Cause.TimeoutException | SdkError | EC2ServiceError + Cause.TimeoutError | SdkError | EC2ServiceError >; /** @@ -5454,7 +5526,7 @@ interface EC2Service$ { options?: HttpHandlerOptions, ): Effect.Effect< DeleteTrafficMirrorFilterRuleCommandOutput, - Cause.TimeoutException | SdkError | EC2ServiceError + Cause.TimeoutError | SdkError | EC2ServiceError >; /** @@ -5465,7 +5537,7 @@ interface EC2Service$ { options?: HttpHandlerOptions, ): Effect.Effect< DeleteTrafficMirrorSessionCommandOutput, - Cause.TimeoutException | SdkError | EC2ServiceError + Cause.TimeoutError | SdkError | EC2ServiceError >; /** @@ -5476,7 +5548,7 @@ interface EC2Service$ { options?: HttpHandlerOptions, ): Effect.Effect< DeleteTrafficMirrorTargetCommandOutput, - Cause.TimeoutException | SdkError | EC2ServiceError + Cause.TimeoutError | SdkError | EC2ServiceError >; /** @@ -5487,7 +5559,7 @@ interface EC2Service$ { options?: HttpHandlerOptions, ): Effect.Effect< DeleteTransitGatewayCommandOutput, - Cause.TimeoutException | SdkError | EC2ServiceError + Cause.TimeoutError | SdkError | EC2ServiceError >; /** @@ -5498,7 +5570,7 @@ interface EC2Service$ { options?: HttpHandlerOptions, ): Effect.Effect< DeleteTransitGatewayConnectCommandOutput, - Cause.TimeoutException | SdkError | EC2ServiceError + Cause.TimeoutError | SdkError | EC2ServiceError >; /** @@ -5509,7 +5581,7 @@ interface EC2Service$ { options?: HttpHandlerOptions, ): Effect.Effect< DeleteTransitGatewayConnectPeerCommandOutput, - Cause.TimeoutException | SdkError | EC2ServiceError + Cause.TimeoutError | SdkError | EC2ServiceError >; /** @@ -5520,7 +5592,7 @@ interface EC2Service$ { options?: HttpHandlerOptions, ): Effect.Effect< DeleteTransitGatewayMeteringPolicyCommandOutput, - Cause.TimeoutException | SdkError | EC2ServiceError + Cause.TimeoutError | SdkError | EC2ServiceError >; /** @@ -5531,7 +5603,7 @@ interface EC2Service$ { options?: HttpHandlerOptions, ): Effect.Effect< DeleteTransitGatewayMeteringPolicyEntryCommandOutput, - Cause.TimeoutException | SdkError | EC2ServiceError + Cause.TimeoutError | SdkError | EC2ServiceError >; /** @@ -5542,7 +5614,7 @@ interface EC2Service$ { options?: HttpHandlerOptions, ): Effect.Effect< DeleteTransitGatewayMulticastDomainCommandOutput, - Cause.TimeoutException | SdkError | EC2ServiceError + Cause.TimeoutError | SdkError | EC2ServiceError >; /** @@ -5553,7 +5625,7 @@ interface EC2Service$ { options?: HttpHandlerOptions, ): Effect.Effect< DeleteTransitGatewayPeeringAttachmentCommandOutput, - Cause.TimeoutException | SdkError | EC2ServiceError + Cause.TimeoutError | SdkError | EC2ServiceError >; /** @@ -5564,7 +5636,7 @@ interface EC2Service$ { options?: HttpHandlerOptions, ): Effect.Effect< DeleteTransitGatewayPolicyTableCommandOutput, - Cause.TimeoutException | SdkError | EC2ServiceError + Cause.TimeoutError | SdkError | EC2ServiceError >; /** @@ -5575,7 +5647,7 @@ interface EC2Service$ { options?: HttpHandlerOptions, ): Effect.Effect< DeleteTransitGatewayPrefixListReferenceCommandOutput, - Cause.TimeoutException | SdkError | EC2ServiceError + Cause.TimeoutError | SdkError | EC2ServiceError >; /** @@ -5586,7 +5658,7 @@ interface EC2Service$ { options?: HttpHandlerOptions, ): Effect.Effect< DeleteTransitGatewayRouteCommandOutput, - Cause.TimeoutException | SdkError | EC2ServiceError + Cause.TimeoutError | SdkError | EC2ServiceError >; /** @@ -5597,7 +5669,7 @@ interface EC2Service$ { options?: HttpHandlerOptions, ): Effect.Effect< DeleteTransitGatewayRouteTableCommandOutput, - Cause.TimeoutException | SdkError | EC2ServiceError + Cause.TimeoutError | SdkError | EC2ServiceError >; /** @@ -5608,7 +5680,7 @@ interface EC2Service$ { options?: HttpHandlerOptions, ): Effect.Effect< DeleteTransitGatewayRouteTableAnnouncementCommandOutput, - Cause.TimeoutException | SdkError | EC2ServiceError + Cause.TimeoutError | SdkError | EC2ServiceError >; /** @@ -5619,7 +5691,7 @@ interface EC2Service$ { options?: HttpHandlerOptions, ): Effect.Effect< DeleteTransitGatewayVpcAttachmentCommandOutput, - Cause.TimeoutException | SdkError | EC2ServiceError + Cause.TimeoutError | SdkError | EC2ServiceError >; /** @@ -5630,7 +5702,7 @@ interface EC2Service$ { options?: HttpHandlerOptions, ): Effect.Effect< DeleteVerifiedAccessEndpointCommandOutput, - Cause.TimeoutException | SdkError | EC2ServiceError + Cause.TimeoutError | SdkError | EC2ServiceError >; /** @@ -5641,7 +5713,7 @@ interface EC2Service$ { options?: HttpHandlerOptions, ): Effect.Effect< DeleteVerifiedAccessGroupCommandOutput, - Cause.TimeoutException | SdkError | EC2ServiceError + Cause.TimeoutError | SdkError | EC2ServiceError >; /** @@ -5652,7 +5724,7 @@ interface EC2Service$ { options?: HttpHandlerOptions, ): Effect.Effect< DeleteVerifiedAccessInstanceCommandOutput, - Cause.TimeoutException | SdkError | EC2ServiceError + Cause.TimeoutError | SdkError | EC2ServiceError >; /** @@ -5663,7 +5735,7 @@ interface EC2Service$ { options?: HttpHandlerOptions, ): Effect.Effect< DeleteVerifiedAccessTrustProviderCommandOutput, - Cause.TimeoutException | SdkError | EC2ServiceError + Cause.TimeoutError | SdkError | EC2ServiceError >; /** @@ -5674,7 +5746,7 @@ interface EC2Service$ { options?: HttpHandlerOptions, ): Effect.Effect< DeleteVolumeCommandOutput, - Cause.TimeoutException | SdkError | EC2ServiceError + Cause.TimeoutError | SdkError | EC2ServiceError >; /** @@ -5685,7 +5757,7 @@ interface EC2Service$ { options?: HttpHandlerOptions, ): Effect.Effect< DeleteVpcCommandOutput, - Cause.TimeoutException | SdkError | EC2ServiceError + Cause.TimeoutError | SdkError | EC2ServiceError >; /** @@ -5696,7 +5768,7 @@ interface EC2Service$ { options?: HttpHandlerOptions, ): Effect.Effect< DeleteVpcBlockPublicAccessExclusionCommandOutput, - Cause.TimeoutException | SdkError | EC2ServiceError + Cause.TimeoutError | SdkError | EC2ServiceError >; /** @@ -5707,7 +5779,7 @@ interface EC2Service$ { options?: HttpHandlerOptions, ): Effect.Effect< DeleteVpcEncryptionControlCommandOutput, - Cause.TimeoutException | SdkError | EC2ServiceError + Cause.TimeoutError | SdkError | EC2ServiceError >; /** @@ -5718,7 +5790,7 @@ interface EC2Service$ { options?: HttpHandlerOptions, ): Effect.Effect< DeleteVpcEndpointConnectionNotificationsCommandOutput, - Cause.TimeoutException | SdkError | EC2ServiceError + Cause.TimeoutError | SdkError | EC2ServiceError >; /** @@ -5729,7 +5801,7 @@ interface EC2Service$ { options?: HttpHandlerOptions, ): Effect.Effect< DeleteVpcEndpointServiceConfigurationsCommandOutput, - Cause.TimeoutException | SdkError | EC2ServiceError + Cause.TimeoutError | SdkError | EC2ServiceError >; /** @@ -5740,7 +5812,7 @@ interface EC2Service$ { options?: HttpHandlerOptions, ): Effect.Effect< DeleteVpcEndpointsCommandOutput, - Cause.TimeoutException | SdkError | EC2ServiceError + Cause.TimeoutError | SdkError | EC2ServiceError >; /** @@ -5751,7 +5823,7 @@ interface EC2Service$ { options?: HttpHandlerOptions, ): Effect.Effect< DeleteVpcPeeringConnectionCommandOutput, - Cause.TimeoutException | SdkError | EC2ServiceError + Cause.TimeoutError | SdkError | EC2ServiceError >; /** @@ -5762,7 +5834,7 @@ interface EC2Service$ { options?: HttpHandlerOptions, ): Effect.Effect< DeleteVpnConcentratorCommandOutput, - Cause.TimeoutException | SdkError | EC2ServiceError + Cause.TimeoutError | SdkError | EC2ServiceError >; /** @@ -5773,7 +5845,7 @@ interface EC2Service$ { options?: HttpHandlerOptions, ): Effect.Effect< DeleteVpnConnectionCommandOutput, - Cause.TimeoutException | SdkError | EC2ServiceError + Cause.TimeoutError | SdkError | EC2ServiceError >; /** @@ -5784,7 +5856,7 @@ interface EC2Service$ { options?: HttpHandlerOptions, ): Effect.Effect< DeleteVpnConnectionRouteCommandOutput, - Cause.TimeoutException | SdkError | EC2ServiceError + Cause.TimeoutError | SdkError | EC2ServiceError >; /** @@ -5795,7 +5867,7 @@ interface EC2Service$ { options?: HttpHandlerOptions, ): Effect.Effect< DeleteVpnGatewayCommandOutput, - Cause.TimeoutException | SdkError | EC2ServiceError + Cause.TimeoutError | SdkError | EC2ServiceError >; /** @@ -5806,7 +5878,7 @@ interface EC2Service$ { options?: HttpHandlerOptions, ): Effect.Effect< DeprovisionByoipCidrCommandOutput, - Cause.TimeoutException | SdkError | EC2ServiceError + Cause.TimeoutError | SdkError | EC2ServiceError >; /** @@ -5817,7 +5889,7 @@ interface EC2Service$ { options?: HttpHandlerOptions, ): Effect.Effect< DeprovisionIpamByoasnCommandOutput, - Cause.TimeoutException | SdkError | EC2ServiceError + Cause.TimeoutError | SdkError | EC2ServiceError >; /** @@ -5828,7 +5900,7 @@ interface EC2Service$ { options?: HttpHandlerOptions, ): Effect.Effect< DeprovisionIpamPoolCidrCommandOutput, - Cause.TimeoutException | SdkError | EC2ServiceError + Cause.TimeoutError | SdkError | EC2ServiceError >; /** @@ -5839,7 +5911,7 @@ interface EC2Service$ { options?: HttpHandlerOptions, ): Effect.Effect< DeprovisionPublicIpv4PoolCidrCommandOutput, - Cause.TimeoutException | SdkError | EC2ServiceError + Cause.TimeoutError | SdkError | EC2ServiceError >; /** @@ -5850,7 +5922,7 @@ interface EC2Service$ { options?: HttpHandlerOptions, ): Effect.Effect< DeregisterImageCommandOutput, - Cause.TimeoutException | SdkError | EC2ServiceError + Cause.TimeoutError | SdkError | EC2ServiceError >; /** @@ -5861,7 +5933,7 @@ interface EC2Service$ { options?: HttpHandlerOptions, ): Effect.Effect< DeregisterInstanceEventNotificationAttributesCommandOutput, - Cause.TimeoutException | SdkError | EC2ServiceError + Cause.TimeoutError | SdkError | EC2ServiceError >; /** @@ -5872,7 +5944,7 @@ interface EC2Service$ { options?: HttpHandlerOptions, ): Effect.Effect< DeregisterTransitGatewayMulticastGroupMembersCommandOutput, - Cause.TimeoutException | SdkError | EC2ServiceError + Cause.TimeoutError | SdkError | EC2ServiceError >; /** @@ -5883,7 +5955,7 @@ interface EC2Service$ { options?: HttpHandlerOptions, ): Effect.Effect< DeregisterTransitGatewayMulticastGroupSourcesCommandOutput, - Cause.TimeoutException | SdkError | EC2ServiceError + Cause.TimeoutError | SdkError | EC2ServiceError >; /** @@ -5894,7 +5966,7 @@ interface EC2Service$ { options?: HttpHandlerOptions, ): Effect.Effect< DescribeAccountAttributesCommandOutput, - Cause.TimeoutException | SdkError | EC2ServiceError + Cause.TimeoutError | SdkError | EC2ServiceError >; /** @@ -5905,7 +5977,7 @@ interface EC2Service$ { options?: HttpHandlerOptions, ): Effect.Effect< DescribeAddressTransfersCommandOutput, - Cause.TimeoutException | SdkError | EC2ServiceError + Cause.TimeoutError | SdkError | EC2ServiceError >; /** @@ -5916,7 +5988,7 @@ interface EC2Service$ { options?: HttpHandlerOptions, ): Effect.Effect< DescribeAddressesCommandOutput, - Cause.TimeoutException | SdkError | EC2ServiceError + Cause.TimeoutError | SdkError | EC2ServiceError >; /** @@ -5927,7 +5999,7 @@ interface EC2Service$ { options?: HttpHandlerOptions, ): Effect.Effect< DescribeAddressesAttributeCommandOutput, - Cause.TimeoutException | SdkError | EC2ServiceError + Cause.TimeoutError | SdkError | EC2ServiceError >; /** @@ -5938,7 +6010,7 @@ interface EC2Service$ { options?: HttpHandlerOptions, ): Effect.Effect< DescribeAggregateIdFormatCommandOutput, - Cause.TimeoutException | SdkError | EC2ServiceError + Cause.TimeoutError | SdkError | EC2ServiceError >; /** @@ -5949,7 +6021,7 @@ interface EC2Service$ { options?: HttpHandlerOptions, ): Effect.Effect< DescribeAvailabilityZonesCommandOutput, - Cause.TimeoutException | SdkError | EC2ServiceError + Cause.TimeoutError | SdkError | EC2ServiceError >; /** @@ -5960,7 +6032,7 @@ interface EC2Service$ { options?: HttpHandlerOptions, ): Effect.Effect< DescribeAwsNetworkPerformanceMetricSubscriptionsCommandOutput, - Cause.TimeoutException | SdkError | EC2ServiceError + Cause.TimeoutError | SdkError | EC2ServiceError >; /** @@ -5971,7 +6043,7 @@ interface EC2Service$ { options?: HttpHandlerOptions, ): Effect.Effect< DescribeBundleTasksCommandOutput, - Cause.TimeoutException | SdkError | EC2ServiceError + Cause.TimeoutError | SdkError | EC2ServiceError >; /** @@ -5982,7 +6054,7 @@ interface EC2Service$ { options?: HttpHandlerOptions, ): Effect.Effect< DescribeByoipCidrsCommandOutput, - Cause.TimeoutException | SdkError | EC2ServiceError + Cause.TimeoutError | SdkError | EC2ServiceError >; /** @@ -5993,7 +6065,7 @@ interface EC2Service$ { options?: HttpHandlerOptions, ): Effect.Effect< DescribeCapacityBlockExtensionHistoryCommandOutput, - Cause.TimeoutException | SdkError | EC2ServiceError + Cause.TimeoutError | SdkError | EC2ServiceError >; /** @@ -6004,7 +6076,7 @@ interface EC2Service$ { options?: HttpHandlerOptions, ): Effect.Effect< DescribeCapacityBlockExtensionOfferingsCommandOutput, - Cause.TimeoutException | SdkError | EC2ServiceError + Cause.TimeoutError | SdkError | EC2ServiceError >; /** @@ -6015,7 +6087,7 @@ interface EC2Service$ { options?: HttpHandlerOptions, ): Effect.Effect< DescribeCapacityBlockOfferingsCommandOutput, - Cause.TimeoutException | SdkError | EC2ServiceError + Cause.TimeoutError | SdkError | EC2ServiceError >; /** @@ -6026,7 +6098,7 @@ interface EC2Service$ { options?: HttpHandlerOptions, ): Effect.Effect< DescribeCapacityBlockStatusCommandOutput, - Cause.TimeoutException | SdkError | EC2ServiceError + Cause.TimeoutError | SdkError | EC2ServiceError >; /** @@ -6037,7 +6109,7 @@ interface EC2Service$ { options?: HttpHandlerOptions, ): Effect.Effect< DescribeCapacityBlocksCommandOutput, - Cause.TimeoutException | SdkError | EC2ServiceError + Cause.TimeoutError | SdkError | EC2ServiceError >; /** @@ -6048,7 +6120,7 @@ interface EC2Service$ { options?: HttpHandlerOptions, ): Effect.Effect< DescribeCapacityManagerDataExportsCommandOutput, - Cause.TimeoutException | SdkError | EC2ServiceError + Cause.TimeoutError | SdkError | EC2ServiceError >; /** @@ -6059,7 +6131,7 @@ interface EC2Service$ { options?: HttpHandlerOptions, ): Effect.Effect< DescribeCapacityReservationBillingRequestsCommandOutput, - Cause.TimeoutException | SdkError | EC2ServiceError + Cause.TimeoutError | SdkError | EC2ServiceError >; /** @@ -6070,7 +6142,7 @@ interface EC2Service$ { options?: HttpHandlerOptions, ): Effect.Effect< DescribeCapacityReservationFleetsCommandOutput, - Cause.TimeoutException | SdkError | EC2ServiceError + Cause.TimeoutError | SdkError | EC2ServiceError >; /** @@ -6081,7 +6153,7 @@ interface EC2Service$ { options?: HttpHandlerOptions, ): Effect.Effect< DescribeCapacityReservationTopologyCommandOutput, - Cause.TimeoutException | SdkError | EC2ServiceError + Cause.TimeoutError | SdkError | EC2ServiceError >; /** @@ -6092,7 +6164,7 @@ interface EC2Service$ { options?: HttpHandlerOptions, ): Effect.Effect< DescribeCapacityReservationsCommandOutput, - Cause.TimeoutException | SdkError | EC2ServiceError + Cause.TimeoutError | SdkError | EC2ServiceError >; /** @@ -6103,7 +6175,7 @@ interface EC2Service$ { options?: HttpHandlerOptions, ): Effect.Effect< DescribeCarrierGatewaysCommandOutput, - Cause.TimeoutException | SdkError | EC2ServiceError + Cause.TimeoutError | SdkError | EC2ServiceError >; /** @@ -6114,7 +6186,7 @@ interface EC2Service$ { options?: HttpHandlerOptions, ): Effect.Effect< DescribeClassicLinkInstancesCommandOutput, - Cause.TimeoutException | SdkError | EC2ServiceError + Cause.TimeoutError | SdkError | EC2ServiceError >; /** @@ -6125,7 +6197,7 @@ interface EC2Service$ { options?: HttpHandlerOptions, ): Effect.Effect< DescribeClientVpnAuthorizationRulesCommandOutput, - Cause.TimeoutException | SdkError | EC2ServiceError + Cause.TimeoutError | SdkError | EC2ServiceError >; /** @@ -6136,7 +6208,7 @@ interface EC2Service$ { options?: HttpHandlerOptions, ): Effect.Effect< DescribeClientVpnConnectionsCommandOutput, - Cause.TimeoutException | SdkError | EC2ServiceError + Cause.TimeoutError | SdkError | EC2ServiceError >; /** @@ -6147,7 +6219,7 @@ interface EC2Service$ { options?: HttpHandlerOptions, ): Effect.Effect< DescribeClientVpnEndpointsCommandOutput, - Cause.TimeoutException | SdkError | EC2ServiceError + Cause.TimeoutError | SdkError | EC2ServiceError >; /** @@ -6158,7 +6230,7 @@ interface EC2Service$ { options?: HttpHandlerOptions, ): Effect.Effect< DescribeClientVpnRoutesCommandOutput, - Cause.TimeoutException | SdkError | EC2ServiceError + Cause.TimeoutError | SdkError | EC2ServiceError >; /** @@ -6169,7 +6241,7 @@ interface EC2Service$ { options?: HttpHandlerOptions, ): Effect.Effect< DescribeClientVpnTargetNetworksCommandOutput, - Cause.TimeoutException | SdkError | EC2ServiceError + Cause.TimeoutError | SdkError | EC2ServiceError >; /** @@ -6180,7 +6252,7 @@ interface EC2Service$ { options?: HttpHandlerOptions, ): Effect.Effect< DescribeCoipPoolsCommandOutput, - Cause.TimeoutException | SdkError | EC2ServiceError + Cause.TimeoutError | SdkError | EC2ServiceError >; /** @@ -6191,7 +6263,7 @@ interface EC2Service$ { options?: HttpHandlerOptions, ): Effect.Effect< DescribeConversionTasksCommandOutput, - Cause.TimeoutException | SdkError | EC2ServiceError + Cause.TimeoutError | SdkError | EC2ServiceError >; /** @@ -6202,7 +6274,7 @@ interface EC2Service$ { options?: HttpHandlerOptions, ): Effect.Effect< DescribeCustomerGatewaysCommandOutput, - Cause.TimeoutException | SdkError | EC2ServiceError + Cause.TimeoutError | SdkError | EC2ServiceError >; /** @@ -6213,7 +6285,7 @@ interface EC2Service$ { options?: HttpHandlerOptions, ): Effect.Effect< DescribeDeclarativePoliciesReportsCommandOutput, - Cause.TimeoutException | SdkError | EC2ServiceError + Cause.TimeoutError | SdkError | EC2ServiceError >; /** @@ -6224,7 +6296,7 @@ interface EC2Service$ { options?: HttpHandlerOptions, ): Effect.Effect< DescribeDhcpOptionsCommandOutput, - Cause.TimeoutException | SdkError | EC2ServiceError + Cause.TimeoutError | SdkError | EC2ServiceError >; /** @@ -6235,7 +6307,7 @@ interface EC2Service$ { options?: HttpHandlerOptions, ): Effect.Effect< DescribeEgressOnlyInternetGatewaysCommandOutput, - Cause.TimeoutException | SdkError | EC2ServiceError + Cause.TimeoutError | SdkError | EC2ServiceError >; /** @@ -6246,7 +6318,7 @@ interface EC2Service$ { options?: HttpHandlerOptions, ): Effect.Effect< DescribeElasticGpusCommandOutput, - Cause.TimeoutException | SdkError | EC2ServiceError + Cause.TimeoutError | SdkError | EC2ServiceError >; /** @@ -6257,7 +6329,7 @@ interface EC2Service$ { options?: HttpHandlerOptions, ): Effect.Effect< DescribeExportImageTasksCommandOutput, - Cause.TimeoutException | SdkError | EC2ServiceError + Cause.TimeoutError | SdkError | EC2ServiceError >; /** @@ -6268,7 +6340,7 @@ interface EC2Service$ { options?: HttpHandlerOptions, ): Effect.Effect< DescribeExportTasksCommandOutput, - Cause.TimeoutException | SdkError | EC2ServiceError + Cause.TimeoutError | SdkError | EC2ServiceError >; /** @@ -6279,7 +6351,7 @@ interface EC2Service$ { options?: HttpHandlerOptions, ): Effect.Effect< DescribeFastLaunchImagesCommandOutput, - Cause.TimeoutException | SdkError | EC2ServiceError + Cause.TimeoutError | SdkError | EC2ServiceError >; /** @@ -6290,7 +6362,7 @@ interface EC2Service$ { options?: HttpHandlerOptions, ): Effect.Effect< DescribeFastSnapshotRestoresCommandOutput, - Cause.TimeoutException | SdkError | EC2ServiceError + Cause.TimeoutError | SdkError | EC2ServiceError >; /** @@ -6301,7 +6373,7 @@ interface EC2Service$ { options?: HttpHandlerOptions, ): Effect.Effect< DescribeFleetHistoryCommandOutput, - Cause.TimeoutException | SdkError | EC2ServiceError + Cause.TimeoutError | SdkError | EC2ServiceError >; /** @@ -6312,7 +6384,7 @@ interface EC2Service$ { options?: HttpHandlerOptions, ): Effect.Effect< DescribeFleetInstancesCommandOutput, - Cause.TimeoutException | SdkError | EC2ServiceError + Cause.TimeoutError | SdkError | EC2ServiceError >; /** @@ -6323,7 +6395,7 @@ interface EC2Service$ { options?: HttpHandlerOptions, ): Effect.Effect< DescribeFleetsCommandOutput, - Cause.TimeoutException | SdkError | EC2ServiceError + Cause.TimeoutError | SdkError | EC2ServiceError >; /** @@ -6334,7 +6406,7 @@ interface EC2Service$ { options?: HttpHandlerOptions, ): Effect.Effect< DescribeFlowLogsCommandOutput, - Cause.TimeoutException | SdkError | EC2ServiceError + Cause.TimeoutError | SdkError | EC2ServiceError >; /** @@ -6345,7 +6417,7 @@ interface EC2Service$ { options?: HttpHandlerOptions, ): Effect.Effect< DescribeFpgaImageAttributeCommandOutput, - Cause.TimeoutException | SdkError | EC2ServiceError + Cause.TimeoutError | SdkError | EC2ServiceError >; /** @@ -6356,7 +6428,7 @@ interface EC2Service$ { options?: HttpHandlerOptions, ): Effect.Effect< DescribeFpgaImagesCommandOutput, - Cause.TimeoutException | SdkError | EC2ServiceError + Cause.TimeoutError | SdkError | EC2ServiceError >; /** @@ -6367,7 +6439,7 @@ interface EC2Service$ { options?: HttpHandlerOptions, ): Effect.Effect< DescribeHostReservationOfferingsCommandOutput, - Cause.TimeoutException | SdkError | EC2ServiceError + Cause.TimeoutError | SdkError | EC2ServiceError >; /** @@ -6378,7 +6450,7 @@ interface EC2Service$ { options?: HttpHandlerOptions, ): Effect.Effect< DescribeHostReservationsCommandOutput, - Cause.TimeoutException | SdkError | EC2ServiceError + Cause.TimeoutError | SdkError | EC2ServiceError >; /** @@ -6389,7 +6461,7 @@ interface EC2Service$ { options?: HttpHandlerOptions, ): Effect.Effect< DescribeHostsCommandOutput, - Cause.TimeoutException | SdkError | EC2ServiceError + Cause.TimeoutError | SdkError | EC2ServiceError >; /** @@ -6400,7 +6472,7 @@ interface EC2Service$ { options?: HttpHandlerOptions, ): Effect.Effect< DescribeIamInstanceProfileAssociationsCommandOutput, - Cause.TimeoutException | SdkError | EC2ServiceError + Cause.TimeoutError | SdkError | EC2ServiceError >; /** @@ -6411,7 +6483,7 @@ interface EC2Service$ { options?: HttpHandlerOptions, ): Effect.Effect< DescribeIdFormatCommandOutput, - Cause.TimeoutException | SdkError | EC2ServiceError + Cause.TimeoutError | SdkError | EC2ServiceError >; /** @@ -6422,7 +6494,7 @@ interface EC2Service$ { options?: HttpHandlerOptions, ): Effect.Effect< DescribeIdentityIdFormatCommandOutput, - Cause.TimeoutException | SdkError | EC2ServiceError + Cause.TimeoutError | SdkError | EC2ServiceError >; /** @@ -6433,7 +6505,7 @@ interface EC2Service$ { options?: HttpHandlerOptions, ): Effect.Effect< DescribeImageAttributeCommandOutput, - Cause.TimeoutException | SdkError | EC2ServiceError + Cause.TimeoutError | SdkError | EC2ServiceError >; /** @@ -6444,7 +6516,7 @@ interface EC2Service$ { options?: HttpHandlerOptions, ): Effect.Effect< DescribeImageReferencesCommandOutput, - Cause.TimeoutException | SdkError | EC2ServiceError + Cause.TimeoutError | SdkError | EC2ServiceError >; /** @@ -6455,7 +6527,7 @@ interface EC2Service$ { options?: HttpHandlerOptions, ): Effect.Effect< DescribeImageUsageReportEntriesCommandOutput, - Cause.TimeoutException | SdkError | EC2ServiceError + Cause.TimeoutError | SdkError | EC2ServiceError >; /** @@ -6466,7 +6538,7 @@ interface EC2Service$ { options?: HttpHandlerOptions, ): Effect.Effect< DescribeImageUsageReportsCommandOutput, - Cause.TimeoutException | SdkError | EC2ServiceError + Cause.TimeoutError | SdkError | EC2ServiceError >; /** @@ -6477,7 +6549,7 @@ interface EC2Service$ { options?: HttpHandlerOptions, ): Effect.Effect< DescribeImagesCommandOutput, - Cause.TimeoutException | SdkError | EC2ServiceError + Cause.TimeoutError | SdkError | EC2ServiceError >; /** @@ -6488,7 +6560,7 @@ interface EC2Service$ { options?: HttpHandlerOptions, ): Effect.Effect< DescribeImportImageTasksCommandOutput, - Cause.TimeoutException | SdkError | EC2ServiceError + Cause.TimeoutError | SdkError | EC2ServiceError >; /** @@ -6499,7 +6571,7 @@ interface EC2Service$ { options?: HttpHandlerOptions, ): Effect.Effect< DescribeImportSnapshotTasksCommandOutput, - Cause.TimeoutException | SdkError | EC2ServiceError + Cause.TimeoutError | SdkError | EC2ServiceError >; /** @@ -6510,7 +6582,7 @@ interface EC2Service$ { options?: HttpHandlerOptions, ): Effect.Effect< DescribeInstanceAttributeCommandOutput, - Cause.TimeoutException | SdkError | EC2ServiceError + Cause.TimeoutError | SdkError | EC2ServiceError >; /** @@ -6521,7 +6593,7 @@ interface EC2Service$ { options?: HttpHandlerOptions, ): Effect.Effect< DescribeInstanceConnectEndpointsCommandOutput, - Cause.TimeoutException | SdkError | EC2ServiceError + Cause.TimeoutError | SdkError | EC2ServiceError >; /** @@ -6532,7 +6604,7 @@ interface EC2Service$ { options?: HttpHandlerOptions, ): Effect.Effect< DescribeInstanceCreditSpecificationsCommandOutput, - Cause.TimeoutException | SdkError | EC2ServiceError + Cause.TimeoutError | SdkError | EC2ServiceError >; /** @@ -6543,7 +6615,7 @@ interface EC2Service$ { options?: HttpHandlerOptions, ): Effect.Effect< DescribeInstanceEventNotificationAttributesCommandOutput, - Cause.TimeoutException | SdkError | EC2ServiceError + Cause.TimeoutError | SdkError | EC2ServiceError >; /** @@ -6554,7 +6626,7 @@ interface EC2Service$ { options?: HttpHandlerOptions, ): Effect.Effect< DescribeInstanceEventWindowsCommandOutput, - Cause.TimeoutException | SdkError | EC2ServiceError + Cause.TimeoutError | SdkError | EC2ServiceError >; /** @@ -6565,7 +6637,7 @@ interface EC2Service$ { options?: HttpHandlerOptions, ): Effect.Effect< DescribeInstanceImageMetadataCommandOutput, - Cause.TimeoutException | SdkError | EC2ServiceError + Cause.TimeoutError | SdkError | EC2ServiceError >; /** @@ -6576,7 +6648,7 @@ interface EC2Service$ { options?: HttpHandlerOptions, ): Effect.Effect< DescribeInstanceSqlHaHistoryStatesCommandOutput, - Cause.TimeoutException | SdkError | EC2ServiceError + Cause.TimeoutError | SdkError | EC2ServiceError >; /** @@ -6587,7 +6659,7 @@ interface EC2Service$ { options?: HttpHandlerOptions, ): Effect.Effect< DescribeInstanceSqlHaStatesCommandOutput, - Cause.TimeoutException | SdkError | EC2ServiceError + Cause.TimeoutError | SdkError | EC2ServiceError >; /** @@ -6598,7 +6670,7 @@ interface EC2Service$ { options?: HttpHandlerOptions, ): Effect.Effect< DescribeInstanceStatusCommandOutput, - Cause.TimeoutException | SdkError | EC2ServiceError + Cause.TimeoutError | SdkError | EC2ServiceError >; /** @@ -6609,7 +6681,7 @@ interface EC2Service$ { options?: HttpHandlerOptions, ): Effect.Effect< DescribeInstanceTopologyCommandOutput, - Cause.TimeoutException | SdkError | EC2ServiceError + Cause.TimeoutError | SdkError | EC2ServiceError >; /** @@ -6620,7 +6692,7 @@ interface EC2Service$ { options?: HttpHandlerOptions, ): Effect.Effect< DescribeInstanceTypeOfferingsCommandOutput, - Cause.TimeoutException | SdkError | EC2ServiceError + Cause.TimeoutError | SdkError | EC2ServiceError >; /** @@ -6631,7 +6703,7 @@ interface EC2Service$ { options?: HttpHandlerOptions, ): Effect.Effect< DescribeInstanceTypesCommandOutput, - Cause.TimeoutException | SdkError | EC2ServiceError + Cause.TimeoutError | SdkError | EC2ServiceError >; /** @@ -6642,7 +6714,7 @@ interface EC2Service$ { options?: HttpHandlerOptions, ): Effect.Effect< DescribeInstancesCommandOutput, - Cause.TimeoutException | SdkError | EC2ServiceError + Cause.TimeoutError | SdkError | EC2ServiceError >; /** @@ -6653,7 +6725,7 @@ interface EC2Service$ { options?: HttpHandlerOptions, ): Effect.Effect< DescribeInternetGatewaysCommandOutput, - Cause.TimeoutException | SdkError | EC2ServiceError + Cause.TimeoutError | SdkError | EC2ServiceError >; /** @@ -6664,7 +6736,7 @@ interface EC2Service$ { options?: HttpHandlerOptions, ): Effect.Effect< DescribeIpamByoasnCommandOutput, - Cause.TimeoutException | SdkError | EC2ServiceError + Cause.TimeoutError | SdkError | EC2ServiceError >; /** @@ -6675,7 +6747,7 @@ interface EC2Service$ { options?: HttpHandlerOptions, ): Effect.Effect< DescribeIpamExternalResourceVerificationTokensCommandOutput, - Cause.TimeoutException | SdkError | EC2ServiceError + Cause.TimeoutError | SdkError | EC2ServiceError >; /** @@ -6686,7 +6758,7 @@ interface EC2Service$ { options?: HttpHandlerOptions, ): Effect.Effect< DescribeIpamPoliciesCommandOutput, - Cause.TimeoutException | SdkError | EC2ServiceError + Cause.TimeoutError | SdkError | EC2ServiceError >; /** @@ -6697,7 +6769,7 @@ interface EC2Service$ { options?: HttpHandlerOptions, ): Effect.Effect< DescribeIpamPoolsCommandOutput, - Cause.TimeoutException | SdkError | EC2ServiceError + Cause.TimeoutError | SdkError | EC2ServiceError >; /** @@ -6708,7 +6780,7 @@ interface EC2Service$ { options?: HttpHandlerOptions, ): Effect.Effect< DescribeIpamPrefixListResolverTargetsCommandOutput, - Cause.TimeoutException | SdkError | EC2ServiceError + Cause.TimeoutError | SdkError | EC2ServiceError >; /** @@ -6719,7 +6791,7 @@ interface EC2Service$ { options?: HttpHandlerOptions, ): Effect.Effect< DescribeIpamPrefixListResolversCommandOutput, - Cause.TimeoutException | SdkError | EC2ServiceError + Cause.TimeoutError | SdkError | EC2ServiceError >; /** @@ -6730,7 +6802,7 @@ interface EC2Service$ { options?: HttpHandlerOptions, ): Effect.Effect< DescribeIpamResourceDiscoveriesCommandOutput, - Cause.TimeoutException | SdkError | EC2ServiceError + Cause.TimeoutError | SdkError | EC2ServiceError >; /** @@ -6741,7 +6813,7 @@ interface EC2Service$ { options?: HttpHandlerOptions, ): Effect.Effect< DescribeIpamResourceDiscoveryAssociationsCommandOutput, - Cause.TimeoutException | SdkError | EC2ServiceError + Cause.TimeoutError | SdkError | EC2ServiceError >; /** @@ -6752,7 +6824,7 @@ interface EC2Service$ { options?: HttpHandlerOptions, ): Effect.Effect< DescribeIpamScopesCommandOutput, - Cause.TimeoutException | SdkError | EC2ServiceError + Cause.TimeoutError | SdkError | EC2ServiceError >; /** @@ -6763,7 +6835,7 @@ interface EC2Service$ { options?: HttpHandlerOptions, ): Effect.Effect< DescribeIpamsCommandOutput, - Cause.TimeoutException | SdkError | EC2ServiceError + Cause.TimeoutError | SdkError | EC2ServiceError >; /** @@ -6774,7 +6846,7 @@ interface EC2Service$ { options?: HttpHandlerOptions, ): Effect.Effect< DescribeIpv6PoolsCommandOutput, - Cause.TimeoutException | SdkError | EC2ServiceError + Cause.TimeoutError | SdkError | EC2ServiceError >; /** @@ -6785,7 +6857,7 @@ interface EC2Service$ { options?: HttpHandlerOptions, ): Effect.Effect< DescribeKeyPairsCommandOutput, - Cause.TimeoutException | SdkError | EC2ServiceError + Cause.TimeoutError | SdkError | EC2ServiceError >; /** @@ -6796,7 +6868,7 @@ interface EC2Service$ { options?: HttpHandlerOptions, ): Effect.Effect< DescribeLaunchTemplateVersionsCommandOutput, - Cause.TimeoutException | SdkError | EC2ServiceError + Cause.TimeoutError | SdkError | EC2ServiceError >; /** @@ -6807,7 +6879,7 @@ interface EC2Service$ { options?: HttpHandlerOptions, ): Effect.Effect< DescribeLaunchTemplatesCommandOutput, - Cause.TimeoutException | SdkError | EC2ServiceError + Cause.TimeoutError | SdkError | EC2ServiceError >; /** @@ -6818,7 +6890,7 @@ interface EC2Service$ { options?: HttpHandlerOptions, ): Effect.Effect< DescribeLocalGatewayRouteTableVirtualInterfaceGroupAssociationsCommandOutput, - Cause.TimeoutException | SdkError | EC2ServiceError + Cause.TimeoutError | SdkError | EC2ServiceError >; /** @@ -6829,7 +6901,7 @@ interface EC2Service$ { options?: HttpHandlerOptions, ): Effect.Effect< DescribeLocalGatewayRouteTableVpcAssociationsCommandOutput, - Cause.TimeoutException | SdkError | EC2ServiceError + Cause.TimeoutError | SdkError | EC2ServiceError >; /** @@ -6840,7 +6912,7 @@ interface EC2Service$ { options?: HttpHandlerOptions, ): Effect.Effect< DescribeLocalGatewayRouteTablesCommandOutput, - Cause.TimeoutException | SdkError | EC2ServiceError + Cause.TimeoutError | SdkError | EC2ServiceError >; /** @@ -6851,7 +6923,7 @@ interface EC2Service$ { options?: HttpHandlerOptions, ): Effect.Effect< DescribeLocalGatewayVirtualInterfaceGroupsCommandOutput, - Cause.TimeoutException | SdkError | EC2ServiceError + Cause.TimeoutError | SdkError | EC2ServiceError >; /** @@ -6862,7 +6934,7 @@ interface EC2Service$ { options?: HttpHandlerOptions, ): Effect.Effect< DescribeLocalGatewayVirtualInterfacesCommandOutput, - Cause.TimeoutException | SdkError | EC2ServiceError + Cause.TimeoutError | SdkError | EC2ServiceError >; /** @@ -6873,7 +6945,7 @@ interface EC2Service$ { options?: HttpHandlerOptions, ): Effect.Effect< DescribeLocalGatewaysCommandOutput, - Cause.TimeoutException | SdkError | EC2ServiceError + Cause.TimeoutError | SdkError | EC2ServiceError >; /** @@ -6884,7 +6956,7 @@ interface EC2Service$ { options?: HttpHandlerOptions, ): Effect.Effect< DescribeLockedSnapshotsCommandOutput, - Cause.TimeoutException | SdkError | EC2ServiceError + Cause.TimeoutError | SdkError | EC2ServiceError >; /** @@ -6895,7 +6967,7 @@ interface EC2Service$ { options?: HttpHandlerOptions, ): Effect.Effect< DescribeMacHostsCommandOutput, - Cause.TimeoutException | SdkError | EC2ServiceError + Cause.TimeoutError | SdkError | EC2ServiceError >; /** @@ -6906,7 +6978,7 @@ interface EC2Service$ { options?: HttpHandlerOptions, ): Effect.Effect< DescribeMacModificationTasksCommandOutput, - Cause.TimeoutException | SdkError | EC2ServiceError + Cause.TimeoutError | SdkError | EC2ServiceError >; /** @@ -6917,7 +6989,7 @@ interface EC2Service$ { options?: HttpHandlerOptions, ): Effect.Effect< DescribeManagedPrefixListsCommandOutput, - Cause.TimeoutException | SdkError | EC2ServiceError + Cause.TimeoutError | SdkError | EC2ServiceError >; /** @@ -6928,7 +7000,7 @@ interface EC2Service$ { options?: HttpHandlerOptions, ): Effect.Effect< DescribeMovingAddressesCommandOutput, - Cause.TimeoutException | SdkError | EC2ServiceError + Cause.TimeoutError | SdkError | EC2ServiceError >; /** @@ -6939,7 +7011,7 @@ interface EC2Service$ { options?: HttpHandlerOptions, ): Effect.Effect< DescribeNatGatewaysCommandOutput, - Cause.TimeoutException | SdkError | EC2ServiceError + Cause.TimeoutError | SdkError | EC2ServiceError >; /** @@ -6950,7 +7022,7 @@ interface EC2Service$ { options?: HttpHandlerOptions, ): Effect.Effect< DescribeNetworkAclsCommandOutput, - Cause.TimeoutException | SdkError | EC2ServiceError + Cause.TimeoutError | SdkError | EC2ServiceError >; /** @@ -6961,7 +7033,7 @@ interface EC2Service$ { options?: HttpHandlerOptions, ): Effect.Effect< DescribeNetworkInsightsAccessScopeAnalysesCommandOutput, - Cause.TimeoutException | SdkError | EC2ServiceError + Cause.TimeoutError | SdkError | EC2ServiceError >; /** @@ -6972,7 +7044,7 @@ interface EC2Service$ { options?: HttpHandlerOptions, ): Effect.Effect< DescribeNetworkInsightsAccessScopesCommandOutput, - Cause.TimeoutException | SdkError | EC2ServiceError + Cause.TimeoutError | SdkError | EC2ServiceError >; /** @@ -6983,7 +7055,7 @@ interface EC2Service$ { options?: HttpHandlerOptions, ): Effect.Effect< DescribeNetworkInsightsAnalysesCommandOutput, - Cause.TimeoutException | SdkError | EC2ServiceError + Cause.TimeoutError | SdkError | EC2ServiceError >; /** @@ -6994,7 +7066,7 @@ interface EC2Service$ { options?: HttpHandlerOptions, ): Effect.Effect< DescribeNetworkInsightsPathsCommandOutput, - Cause.TimeoutException | SdkError | EC2ServiceError + Cause.TimeoutError | SdkError | EC2ServiceError >; /** @@ -7005,7 +7077,7 @@ interface EC2Service$ { options?: HttpHandlerOptions, ): Effect.Effect< DescribeNetworkInterfaceAttributeCommandOutput, - Cause.TimeoutException | SdkError | EC2ServiceError + Cause.TimeoutError | SdkError | EC2ServiceError >; /** @@ -7016,7 +7088,7 @@ interface EC2Service$ { options?: HttpHandlerOptions, ): Effect.Effect< DescribeNetworkInterfacePermissionsCommandOutput, - Cause.TimeoutException | SdkError | EC2ServiceError + Cause.TimeoutError | SdkError | EC2ServiceError >; /** @@ -7027,7 +7099,7 @@ interface EC2Service$ { options?: HttpHandlerOptions, ): Effect.Effect< DescribeNetworkInterfacesCommandOutput, - Cause.TimeoutException | SdkError | EC2ServiceError + Cause.TimeoutError | SdkError | EC2ServiceError >; /** @@ -7038,7 +7110,7 @@ interface EC2Service$ { options?: HttpHandlerOptions, ): Effect.Effect< DescribeOutpostLagsCommandOutput, - Cause.TimeoutException | SdkError | EC2ServiceError + Cause.TimeoutError | SdkError | EC2ServiceError >; /** @@ -7049,7 +7121,7 @@ interface EC2Service$ { options?: HttpHandlerOptions, ): Effect.Effect< DescribePlacementGroupsCommandOutput, - Cause.TimeoutException | SdkError | EC2ServiceError + Cause.TimeoutError | SdkError | EC2ServiceError >; /** @@ -7060,7 +7132,7 @@ interface EC2Service$ { options?: HttpHandlerOptions, ): Effect.Effect< DescribePrefixListsCommandOutput, - Cause.TimeoutException | SdkError | EC2ServiceError + Cause.TimeoutError | SdkError | EC2ServiceError >; /** @@ -7071,7 +7143,7 @@ interface EC2Service$ { options?: HttpHandlerOptions, ): Effect.Effect< DescribePrincipalIdFormatCommandOutput, - Cause.TimeoutException | SdkError | EC2ServiceError + Cause.TimeoutError | SdkError | EC2ServiceError >; /** @@ -7082,7 +7154,7 @@ interface EC2Service$ { options?: HttpHandlerOptions, ): Effect.Effect< DescribePublicIpv4PoolsCommandOutput, - Cause.TimeoutException | SdkError | EC2ServiceError + Cause.TimeoutError | SdkError | EC2ServiceError >; /** @@ -7093,7 +7165,7 @@ interface EC2Service$ { options?: HttpHandlerOptions, ): Effect.Effect< DescribeRegionsCommandOutput, - Cause.TimeoutException | SdkError | EC2ServiceError + Cause.TimeoutError | SdkError | EC2ServiceError >; /** @@ -7104,7 +7176,7 @@ interface EC2Service$ { options?: HttpHandlerOptions, ): Effect.Effect< DescribeReplaceRootVolumeTasksCommandOutput, - Cause.TimeoutException | SdkError | EC2ServiceError + Cause.TimeoutError | SdkError | EC2ServiceError >; /** @@ -7115,7 +7187,7 @@ interface EC2Service$ { options?: HttpHandlerOptions, ): Effect.Effect< DescribeReservedInstancesCommandOutput, - Cause.TimeoutException | SdkError | EC2ServiceError + Cause.TimeoutError | SdkError | EC2ServiceError >; /** @@ -7126,7 +7198,7 @@ interface EC2Service$ { options?: HttpHandlerOptions, ): Effect.Effect< DescribeReservedInstancesListingsCommandOutput, - Cause.TimeoutException | SdkError | EC2ServiceError + Cause.TimeoutError | SdkError | EC2ServiceError >; /** @@ -7137,7 +7209,7 @@ interface EC2Service$ { options?: HttpHandlerOptions, ): Effect.Effect< DescribeReservedInstancesModificationsCommandOutput, - Cause.TimeoutException | SdkError | EC2ServiceError + Cause.TimeoutError | SdkError | EC2ServiceError >; /** @@ -7148,7 +7220,7 @@ interface EC2Service$ { options?: HttpHandlerOptions, ): Effect.Effect< DescribeReservedInstancesOfferingsCommandOutput, - Cause.TimeoutException | SdkError | EC2ServiceError + Cause.TimeoutError | SdkError | EC2ServiceError >; /** @@ -7159,7 +7231,7 @@ interface EC2Service$ { options?: HttpHandlerOptions, ): Effect.Effect< DescribeRouteServerEndpointsCommandOutput, - Cause.TimeoutException | SdkError | EC2ServiceError + Cause.TimeoutError | SdkError | EC2ServiceError >; /** @@ -7170,7 +7242,7 @@ interface EC2Service$ { options?: HttpHandlerOptions, ): Effect.Effect< DescribeRouteServerPeersCommandOutput, - Cause.TimeoutException | SdkError | EC2ServiceError + Cause.TimeoutError | SdkError | EC2ServiceError >; /** @@ -7181,7 +7253,7 @@ interface EC2Service$ { options?: HttpHandlerOptions, ): Effect.Effect< DescribeRouteServersCommandOutput, - Cause.TimeoutException | SdkError | EC2ServiceError + Cause.TimeoutError | SdkError | EC2ServiceError >; /** @@ -7192,7 +7264,7 @@ interface EC2Service$ { options?: HttpHandlerOptions, ): Effect.Effect< DescribeRouteTablesCommandOutput, - Cause.TimeoutException | SdkError | EC2ServiceError + Cause.TimeoutError | SdkError | EC2ServiceError >; /** @@ -7203,7 +7275,7 @@ interface EC2Service$ { options?: HttpHandlerOptions, ): Effect.Effect< DescribeScheduledInstanceAvailabilityCommandOutput, - Cause.TimeoutException | SdkError | EC2ServiceError + Cause.TimeoutError | SdkError | EC2ServiceError >; /** @@ -7214,7 +7286,40 @@ interface EC2Service$ { options?: HttpHandlerOptions, ): Effect.Effect< DescribeScheduledInstancesCommandOutput, - Cause.TimeoutException | SdkError | EC2ServiceError + Cause.TimeoutError | SdkError | EC2ServiceError + >; + + /** + * @see {@link DescribeSecondaryInterfacesCommand} + */ + describeSecondaryInterfaces( + args: DescribeSecondaryInterfacesCommandInput, + options?: HttpHandlerOptions, + ): Effect.Effect< + DescribeSecondaryInterfacesCommandOutput, + Cause.TimeoutError | SdkError | EC2ServiceError + >; + + /** + * @see {@link DescribeSecondaryNetworksCommand} + */ + describeSecondaryNetworks( + args: DescribeSecondaryNetworksCommandInput, + options?: HttpHandlerOptions, + ): Effect.Effect< + DescribeSecondaryNetworksCommandOutput, + Cause.TimeoutError | SdkError | EC2ServiceError + >; + + /** + * @see {@link DescribeSecondarySubnetsCommand} + */ + describeSecondarySubnets( + args: DescribeSecondarySubnetsCommandInput, + options?: HttpHandlerOptions, + ): Effect.Effect< + DescribeSecondarySubnetsCommandOutput, + Cause.TimeoutError | SdkError | EC2ServiceError >; /** @@ -7225,7 +7330,7 @@ interface EC2Service$ { options?: HttpHandlerOptions, ): Effect.Effect< DescribeSecurityGroupReferencesCommandOutput, - Cause.TimeoutException | SdkError | EC2ServiceError + Cause.TimeoutError | SdkError | EC2ServiceError >; /** @@ -7236,7 +7341,7 @@ interface EC2Service$ { options?: HttpHandlerOptions, ): Effect.Effect< DescribeSecurityGroupRulesCommandOutput, - Cause.TimeoutException | SdkError | EC2ServiceError + Cause.TimeoutError | SdkError | EC2ServiceError >; /** @@ -7247,7 +7352,7 @@ interface EC2Service$ { options?: HttpHandlerOptions, ): Effect.Effect< DescribeSecurityGroupVpcAssociationsCommandOutput, - Cause.TimeoutException | SdkError | EC2ServiceError + Cause.TimeoutError | SdkError | EC2ServiceError >; /** @@ -7258,7 +7363,7 @@ interface EC2Service$ { options?: HttpHandlerOptions, ): Effect.Effect< DescribeSecurityGroupsCommandOutput, - Cause.TimeoutException | SdkError | EC2ServiceError + Cause.TimeoutError | SdkError | EC2ServiceError >; /** @@ -7269,7 +7374,7 @@ interface EC2Service$ { options?: HttpHandlerOptions, ): Effect.Effect< DescribeServiceLinkVirtualInterfacesCommandOutput, - Cause.TimeoutException | SdkError | EC2ServiceError + Cause.TimeoutError | SdkError | EC2ServiceError >; /** @@ -7280,7 +7385,7 @@ interface EC2Service$ { options?: HttpHandlerOptions, ): Effect.Effect< DescribeSnapshotAttributeCommandOutput, - Cause.TimeoutException | SdkError | EC2ServiceError + Cause.TimeoutError | SdkError | EC2ServiceError >; /** @@ -7291,7 +7396,7 @@ interface EC2Service$ { options?: HttpHandlerOptions, ): Effect.Effect< DescribeSnapshotTierStatusCommandOutput, - Cause.TimeoutException | SdkError | EC2ServiceError + Cause.TimeoutError | SdkError | EC2ServiceError >; /** @@ -7302,7 +7407,7 @@ interface EC2Service$ { options?: HttpHandlerOptions, ): Effect.Effect< DescribeSnapshotsCommandOutput, - Cause.TimeoutException | SdkError | EC2ServiceError + Cause.TimeoutError | SdkError | EC2ServiceError >; /** @@ -7313,7 +7418,7 @@ interface EC2Service$ { options?: HttpHandlerOptions, ): Effect.Effect< DescribeSpotDatafeedSubscriptionCommandOutput, - Cause.TimeoutException | SdkError | EC2ServiceError + Cause.TimeoutError | SdkError | EC2ServiceError >; /** @@ -7324,7 +7429,7 @@ interface EC2Service$ { options?: HttpHandlerOptions, ): Effect.Effect< DescribeSpotFleetInstancesCommandOutput, - Cause.TimeoutException | SdkError | EC2ServiceError + Cause.TimeoutError | SdkError | EC2ServiceError >; /** @@ -7335,7 +7440,7 @@ interface EC2Service$ { options?: HttpHandlerOptions, ): Effect.Effect< DescribeSpotFleetRequestHistoryCommandOutput, - Cause.TimeoutException | SdkError | EC2ServiceError + Cause.TimeoutError | SdkError | EC2ServiceError >; /** @@ -7346,7 +7451,7 @@ interface EC2Service$ { options?: HttpHandlerOptions, ): Effect.Effect< DescribeSpotFleetRequestsCommandOutput, - Cause.TimeoutException | SdkError | EC2ServiceError + Cause.TimeoutError | SdkError | EC2ServiceError >; /** @@ -7357,7 +7462,7 @@ interface EC2Service$ { options?: HttpHandlerOptions, ): Effect.Effect< DescribeSpotInstanceRequestsCommandOutput, - Cause.TimeoutException | SdkError | EC2ServiceError + Cause.TimeoutError | SdkError | EC2ServiceError >; /** @@ -7368,7 +7473,7 @@ interface EC2Service$ { options?: HttpHandlerOptions, ): Effect.Effect< DescribeSpotPriceHistoryCommandOutput, - Cause.TimeoutException | SdkError | EC2ServiceError + Cause.TimeoutError | SdkError | EC2ServiceError >; /** @@ -7379,7 +7484,7 @@ interface EC2Service$ { options?: HttpHandlerOptions, ): Effect.Effect< DescribeStaleSecurityGroupsCommandOutput, - Cause.TimeoutException | SdkError | EC2ServiceError + Cause.TimeoutError | SdkError | EC2ServiceError >; /** @@ -7390,7 +7495,7 @@ interface EC2Service$ { options?: HttpHandlerOptions, ): Effect.Effect< DescribeStoreImageTasksCommandOutput, - Cause.TimeoutException | SdkError | EC2ServiceError + Cause.TimeoutError | SdkError | EC2ServiceError >; /** @@ -7401,7 +7506,7 @@ interface EC2Service$ { options?: HttpHandlerOptions, ): Effect.Effect< DescribeSubnetsCommandOutput, - Cause.TimeoutException | SdkError | EC2ServiceError + Cause.TimeoutError | SdkError | EC2ServiceError >; /** @@ -7412,7 +7517,7 @@ interface EC2Service$ { options?: HttpHandlerOptions, ): Effect.Effect< DescribeTagsCommandOutput, - Cause.TimeoutException | SdkError | EC2ServiceError + Cause.TimeoutError | SdkError | EC2ServiceError >; /** @@ -7423,7 +7528,7 @@ interface EC2Service$ { options?: HttpHandlerOptions, ): Effect.Effect< DescribeTrafficMirrorFilterRulesCommandOutput, - Cause.TimeoutException | SdkError | EC2ServiceError + Cause.TimeoutError | SdkError | EC2ServiceError >; /** @@ -7434,7 +7539,7 @@ interface EC2Service$ { options?: HttpHandlerOptions, ): Effect.Effect< DescribeTrafficMirrorFiltersCommandOutput, - Cause.TimeoutException | SdkError | EC2ServiceError + Cause.TimeoutError | SdkError | EC2ServiceError >; /** @@ -7445,7 +7550,7 @@ interface EC2Service$ { options?: HttpHandlerOptions, ): Effect.Effect< DescribeTrafficMirrorSessionsCommandOutput, - Cause.TimeoutException | SdkError | EC2ServiceError + Cause.TimeoutError | SdkError | EC2ServiceError >; /** @@ -7456,7 +7561,7 @@ interface EC2Service$ { options?: HttpHandlerOptions, ): Effect.Effect< DescribeTrafficMirrorTargetsCommandOutput, - Cause.TimeoutException | SdkError | EC2ServiceError + Cause.TimeoutError | SdkError | EC2ServiceError >; /** @@ -7467,7 +7572,7 @@ interface EC2Service$ { options?: HttpHandlerOptions, ): Effect.Effect< DescribeTransitGatewayAttachmentsCommandOutput, - Cause.TimeoutException | SdkError | EC2ServiceError + Cause.TimeoutError | SdkError | EC2ServiceError >; /** @@ -7478,7 +7583,7 @@ interface EC2Service$ { options?: HttpHandlerOptions, ): Effect.Effect< DescribeTransitGatewayConnectPeersCommandOutput, - Cause.TimeoutException | SdkError | EC2ServiceError + Cause.TimeoutError | SdkError | EC2ServiceError >; /** @@ -7489,7 +7594,7 @@ interface EC2Service$ { options?: HttpHandlerOptions, ): Effect.Effect< DescribeTransitGatewayConnectsCommandOutput, - Cause.TimeoutException | SdkError | EC2ServiceError + Cause.TimeoutError | SdkError | EC2ServiceError >; /** @@ -7500,7 +7605,7 @@ interface EC2Service$ { options?: HttpHandlerOptions, ): Effect.Effect< DescribeTransitGatewayMeteringPoliciesCommandOutput, - Cause.TimeoutException | SdkError | EC2ServiceError + Cause.TimeoutError | SdkError | EC2ServiceError >; /** @@ -7511,7 +7616,7 @@ interface EC2Service$ { options?: HttpHandlerOptions, ): Effect.Effect< DescribeTransitGatewayMulticastDomainsCommandOutput, - Cause.TimeoutException | SdkError | EC2ServiceError + Cause.TimeoutError | SdkError | EC2ServiceError >; /** @@ -7522,7 +7627,7 @@ interface EC2Service$ { options?: HttpHandlerOptions, ): Effect.Effect< DescribeTransitGatewayPeeringAttachmentsCommandOutput, - Cause.TimeoutException | SdkError | EC2ServiceError + Cause.TimeoutError | SdkError | EC2ServiceError >; /** @@ -7533,7 +7638,7 @@ interface EC2Service$ { options?: HttpHandlerOptions, ): Effect.Effect< DescribeTransitGatewayPolicyTablesCommandOutput, - Cause.TimeoutException | SdkError | EC2ServiceError + Cause.TimeoutError | SdkError | EC2ServiceError >; /** @@ -7544,7 +7649,7 @@ interface EC2Service$ { options?: HttpHandlerOptions, ): Effect.Effect< DescribeTransitGatewayRouteTableAnnouncementsCommandOutput, - Cause.TimeoutException | SdkError | EC2ServiceError + Cause.TimeoutError | SdkError | EC2ServiceError >; /** @@ -7555,7 +7660,7 @@ interface EC2Service$ { options?: HttpHandlerOptions, ): Effect.Effect< DescribeTransitGatewayRouteTablesCommandOutput, - Cause.TimeoutException | SdkError | EC2ServiceError + Cause.TimeoutError | SdkError | EC2ServiceError >; /** @@ -7566,7 +7671,7 @@ interface EC2Service$ { options?: HttpHandlerOptions, ): Effect.Effect< DescribeTransitGatewayVpcAttachmentsCommandOutput, - Cause.TimeoutException | SdkError | EC2ServiceError + Cause.TimeoutError | SdkError | EC2ServiceError >; /** @@ -7577,7 +7682,7 @@ interface EC2Service$ { options?: HttpHandlerOptions, ): Effect.Effect< DescribeTransitGatewaysCommandOutput, - Cause.TimeoutException | SdkError | EC2ServiceError + Cause.TimeoutError | SdkError | EC2ServiceError >; /** @@ -7588,7 +7693,7 @@ interface EC2Service$ { options?: HttpHandlerOptions, ): Effect.Effect< DescribeTrunkInterfaceAssociationsCommandOutput, - Cause.TimeoutException | SdkError | EC2ServiceError + Cause.TimeoutError | SdkError | EC2ServiceError >; /** @@ -7599,7 +7704,7 @@ interface EC2Service$ { options?: HttpHandlerOptions, ): Effect.Effect< DescribeVerifiedAccessEndpointsCommandOutput, - Cause.TimeoutException | SdkError | EC2ServiceError + Cause.TimeoutError | SdkError | EC2ServiceError >; /** @@ -7610,7 +7715,7 @@ interface EC2Service$ { options?: HttpHandlerOptions, ): Effect.Effect< DescribeVerifiedAccessGroupsCommandOutput, - Cause.TimeoutException | SdkError | EC2ServiceError + Cause.TimeoutError | SdkError | EC2ServiceError >; /** @@ -7621,7 +7726,7 @@ interface EC2Service$ { options?: HttpHandlerOptions, ): Effect.Effect< DescribeVerifiedAccessInstanceLoggingConfigurationsCommandOutput, - Cause.TimeoutException | SdkError | EC2ServiceError + Cause.TimeoutError | SdkError | EC2ServiceError >; /** @@ -7632,7 +7737,7 @@ interface EC2Service$ { options?: HttpHandlerOptions, ): Effect.Effect< DescribeVerifiedAccessInstancesCommandOutput, - Cause.TimeoutException | SdkError | EC2ServiceError + Cause.TimeoutError | SdkError | EC2ServiceError >; /** @@ -7643,7 +7748,7 @@ interface EC2Service$ { options?: HttpHandlerOptions, ): Effect.Effect< DescribeVerifiedAccessTrustProvidersCommandOutput, - Cause.TimeoutException | SdkError | EC2ServiceError + Cause.TimeoutError | SdkError | EC2ServiceError >; /** @@ -7654,7 +7759,7 @@ interface EC2Service$ { options?: HttpHandlerOptions, ): Effect.Effect< DescribeVolumeAttributeCommandOutput, - Cause.TimeoutException | SdkError | EC2ServiceError + Cause.TimeoutError | SdkError | EC2ServiceError >; /** @@ -7665,7 +7770,7 @@ interface EC2Service$ { options?: HttpHandlerOptions, ): Effect.Effect< DescribeVolumeStatusCommandOutput, - Cause.TimeoutException | SdkError | EC2ServiceError + Cause.TimeoutError | SdkError | EC2ServiceError >; /** @@ -7676,7 +7781,7 @@ interface EC2Service$ { options?: HttpHandlerOptions, ): Effect.Effect< DescribeVolumesCommandOutput, - Cause.TimeoutException | SdkError | EC2ServiceError + Cause.TimeoutError | SdkError | EC2ServiceError >; /** @@ -7687,7 +7792,7 @@ interface EC2Service$ { options?: HttpHandlerOptions, ): Effect.Effect< DescribeVolumesModificationsCommandOutput, - Cause.TimeoutException | SdkError | EC2ServiceError + Cause.TimeoutError | SdkError | EC2ServiceError >; /** @@ -7698,7 +7803,7 @@ interface EC2Service$ { options?: HttpHandlerOptions, ): Effect.Effect< DescribeVpcAttributeCommandOutput, - Cause.TimeoutException | SdkError | EC2ServiceError + Cause.TimeoutError | SdkError | EC2ServiceError >; /** @@ -7709,7 +7814,7 @@ interface EC2Service$ { options?: HttpHandlerOptions, ): Effect.Effect< DescribeVpcBlockPublicAccessExclusionsCommandOutput, - Cause.TimeoutException | SdkError | EC2ServiceError + Cause.TimeoutError | SdkError | EC2ServiceError >; /** @@ -7720,7 +7825,7 @@ interface EC2Service$ { options?: HttpHandlerOptions, ): Effect.Effect< DescribeVpcBlockPublicAccessOptionsCommandOutput, - Cause.TimeoutException | SdkError | EC2ServiceError + Cause.TimeoutError | SdkError | EC2ServiceError >; /** @@ -7731,7 +7836,7 @@ interface EC2Service$ { options?: HttpHandlerOptions, ): Effect.Effect< DescribeVpcClassicLinkCommandOutput, - Cause.TimeoutException | SdkError | EC2ServiceError + Cause.TimeoutError | SdkError | EC2ServiceError >; /** @@ -7742,7 +7847,7 @@ interface EC2Service$ { options?: HttpHandlerOptions, ): Effect.Effect< DescribeVpcClassicLinkDnsSupportCommandOutput, - Cause.TimeoutException | SdkError | EC2ServiceError + Cause.TimeoutError | SdkError | EC2ServiceError >; /** @@ -7753,7 +7858,7 @@ interface EC2Service$ { options?: HttpHandlerOptions, ): Effect.Effect< DescribeVpcEncryptionControlsCommandOutput, - Cause.TimeoutException | SdkError | EC2ServiceError + Cause.TimeoutError | SdkError | EC2ServiceError >; /** @@ -7764,7 +7869,7 @@ interface EC2Service$ { options?: HttpHandlerOptions, ): Effect.Effect< DescribeVpcEndpointAssociationsCommandOutput, - Cause.TimeoutException | SdkError | EC2ServiceError + Cause.TimeoutError | SdkError | EC2ServiceError >; /** @@ -7775,7 +7880,7 @@ interface EC2Service$ { options?: HttpHandlerOptions, ): Effect.Effect< DescribeVpcEndpointConnectionNotificationsCommandOutput, - Cause.TimeoutException | SdkError | EC2ServiceError + Cause.TimeoutError | SdkError | EC2ServiceError >; /** @@ -7786,7 +7891,7 @@ interface EC2Service$ { options?: HttpHandlerOptions, ): Effect.Effect< DescribeVpcEndpointConnectionsCommandOutput, - Cause.TimeoutException | SdkError | EC2ServiceError + Cause.TimeoutError | SdkError | EC2ServiceError >; /** @@ -7797,7 +7902,7 @@ interface EC2Service$ { options?: HttpHandlerOptions, ): Effect.Effect< DescribeVpcEndpointServiceConfigurationsCommandOutput, - Cause.TimeoutException | SdkError | EC2ServiceError + Cause.TimeoutError | SdkError | EC2ServiceError >; /** @@ -7808,7 +7913,7 @@ interface EC2Service$ { options?: HttpHandlerOptions, ): Effect.Effect< DescribeVpcEndpointServicePermissionsCommandOutput, - Cause.TimeoutException | SdkError | EC2ServiceError + Cause.TimeoutError | SdkError | EC2ServiceError >; /** @@ -7819,7 +7924,7 @@ interface EC2Service$ { options?: HttpHandlerOptions, ): Effect.Effect< DescribeVpcEndpointServicesCommandOutput, - Cause.TimeoutException | SdkError | EC2ServiceError + Cause.TimeoutError | SdkError | EC2ServiceError >; /** @@ -7830,7 +7935,7 @@ interface EC2Service$ { options?: HttpHandlerOptions, ): Effect.Effect< DescribeVpcEndpointsCommandOutput, - Cause.TimeoutException | SdkError | EC2ServiceError + Cause.TimeoutError | SdkError | EC2ServiceError >; /** @@ -7841,7 +7946,7 @@ interface EC2Service$ { options?: HttpHandlerOptions, ): Effect.Effect< DescribeVpcPeeringConnectionsCommandOutput, - Cause.TimeoutException | SdkError | EC2ServiceError + Cause.TimeoutError | SdkError | EC2ServiceError >; /** @@ -7852,7 +7957,7 @@ interface EC2Service$ { options?: HttpHandlerOptions, ): Effect.Effect< DescribeVpcsCommandOutput, - Cause.TimeoutException | SdkError | EC2ServiceError + Cause.TimeoutError | SdkError | EC2ServiceError >; /** @@ -7863,7 +7968,7 @@ interface EC2Service$ { options?: HttpHandlerOptions, ): Effect.Effect< DescribeVpnConcentratorsCommandOutput, - Cause.TimeoutException | SdkError | EC2ServiceError + Cause.TimeoutError | SdkError | EC2ServiceError >; /** @@ -7874,7 +7979,7 @@ interface EC2Service$ { options?: HttpHandlerOptions, ): Effect.Effect< DescribeVpnConnectionsCommandOutput, - Cause.TimeoutException | SdkError | EC2ServiceError + Cause.TimeoutError | SdkError | EC2ServiceError >; /** @@ -7885,7 +7990,7 @@ interface EC2Service$ { options?: HttpHandlerOptions, ): Effect.Effect< DescribeVpnGatewaysCommandOutput, - Cause.TimeoutException | SdkError | EC2ServiceError + Cause.TimeoutError | SdkError | EC2ServiceError >; /** @@ -7896,7 +8001,7 @@ interface EC2Service$ { options?: HttpHandlerOptions, ): Effect.Effect< DetachClassicLinkVpcCommandOutput, - Cause.TimeoutException | SdkError | EC2ServiceError + Cause.TimeoutError | SdkError | EC2ServiceError >; /** @@ -7907,7 +8012,7 @@ interface EC2Service$ { options?: HttpHandlerOptions, ): Effect.Effect< DetachInternetGatewayCommandOutput, - Cause.TimeoutException | SdkError | EC2ServiceError + Cause.TimeoutError | SdkError | EC2ServiceError >; /** @@ -7918,7 +8023,7 @@ interface EC2Service$ { options?: HttpHandlerOptions, ): Effect.Effect< DetachNetworkInterfaceCommandOutput, - Cause.TimeoutException | SdkError | EC2ServiceError + Cause.TimeoutError | SdkError | EC2ServiceError >; /** @@ -7929,7 +8034,7 @@ interface EC2Service$ { options?: HttpHandlerOptions, ): Effect.Effect< DetachVerifiedAccessTrustProviderCommandOutput, - Cause.TimeoutException | SdkError | EC2ServiceError + Cause.TimeoutError | SdkError | EC2ServiceError >; /** @@ -7940,7 +8045,7 @@ interface EC2Service$ { options?: HttpHandlerOptions, ): Effect.Effect< DetachVolumeCommandOutput, - Cause.TimeoutException | SdkError | EC2ServiceError + Cause.TimeoutError | SdkError | EC2ServiceError >; /** @@ -7951,7 +8056,7 @@ interface EC2Service$ { options?: HttpHandlerOptions, ): Effect.Effect< DetachVpnGatewayCommandOutput, - Cause.TimeoutException | SdkError | EC2ServiceError + Cause.TimeoutError | SdkError | EC2ServiceError >; /** @@ -7962,7 +8067,7 @@ interface EC2Service$ { options?: HttpHandlerOptions, ): Effect.Effect< DisableAddressTransferCommandOutput, - Cause.TimeoutException | SdkError | EC2ServiceError + Cause.TimeoutError | SdkError | EC2ServiceError >; /** @@ -7973,7 +8078,7 @@ interface EC2Service$ { options?: HttpHandlerOptions, ): Effect.Effect< DisableAllowedImagesSettingsCommandOutput, - Cause.TimeoutException | SdkError | EC2ServiceError + Cause.TimeoutError | SdkError | EC2ServiceError >; /** @@ -7984,7 +8089,7 @@ interface EC2Service$ { options?: HttpHandlerOptions, ): Effect.Effect< DisableAwsNetworkPerformanceMetricSubscriptionCommandOutput, - Cause.TimeoutException | SdkError | EC2ServiceError + Cause.TimeoutError | SdkError | EC2ServiceError >; /** @@ -7995,7 +8100,7 @@ interface EC2Service$ { options?: HttpHandlerOptions, ): Effect.Effect< DisableCapacityManagerCommandOutput, - Cause.TimeoutException | SdkError | EC2ServiceError + Cause.TimeoutError | SdkError | EC2ServiceError >; /** @@ -8006,7 +8111,7 @@ interface EC2Service$ { options?: HttpHandlerOptions, ): Effect.Effect< DisableEbsEncryptionByDefaultCommandOutput, - Cause.TimeoutException | SdkError | EC2ServiceError + Cause.TimeoutError | SdkError | EC2ServiceError >; /** @@ -8017,7 +8122,7 @@ interface EC2Service$ { options?: HttpHandlerOptions, ): Effect.Effect< DisableFastLaunchCommandOutput, - Cause.TimeoutException | SdkError | EC2ServiceError + Cause.TimeoutError | SdkError | EC2ServiceError >; /** @@ -8028,7 +8133,7 @@ interface EC2Service$ { options?: HttpHandlerOptions, ): Effect.Effect< DisableFastSnapshotRestoresCommandOutput, - Cause.TimeoutException | SdkError | EC2ServiceError + Cause.TimeoutError | SdkError | EC2ServiceError >; /** @@ -8039,7 +8144,7 @@ interface EC2Service$ { options?: HttpHandlerOptions, ): Effect.Effect< DisableImageCommandOutput, - Cause.TimeoutException | SdkError | EC2ServiceError + Cause.TimeoutError | SdkError | EC2ServiceError >; /** @@ -8050,7 +8155,7 @@ interface EC2Service$ { options?: HttpHandlerOptions, ): Effect.Effect< DisableImageBlockPublicAccessCommandOutput, - Cause.TimeoutException | SdkError | EC2ServiceError + Cause.TimeoutError | SdkError | EC2ServiceError >; /** @@ -8061,7 +8166,7 @@ interface EC2Service$ { options?: HttpHandlerOptions, ): Effect.Effect< DisableImageDeprecationCommandOutput, - Cause.TimeoutException | SdkError | EC2ServiceError + Cause.TimeoutError | SdkError | EC2ServiceError >; /** @@ -8072,7 +8177,7 @@ interface EC2Service$ { options?: HttpHandlerOptions, ): Effect.Effect< DisableImageDeregistrationProtectionCommandOutput, - Cause.TimeoutException | SdkError | EC2ServiceError + Cause.TimeoutError | SdkError | EC2ServiceError >; /** @@ -8083,7 +8188,7 @@ interface EC2Service$ { options?: HttpHandlerOptions, ): Effect.Effect< DisableInstanceSqlHaStandbyDetectionsCommandOutput, - Cause.TimeoutException | SdkError | EC2ServiceError + Cause.TimeoutError | SdkError | EC2ServiceError >; /** @@ -8094,7 +8199,7 @@ interface EC2Service$ { options?: HttpHandlerOptions, ): Effect.Effect< DisableIpamOrganizationAdminAccountCommandOutput, - Cause.TimeoutException | SdkError | EC2ServiceError + Cause.TimeoutError | SdkError | EC2ServiceError >; /** @@ -8105,7 +8210,7 @@ interface EC2Service$ { options?: HttpHandlerOptions, ): Effect.Effect< DisableIpamPolicyCommandOutput, - Cause.TimeoutException | SdkError | EC2ServiceError + Cause.TimeoutError | SdkError | EC2ServiceError >; /** @@ -8116,7 +8221,7 @@ interface EC2Service$ { options?: HttpHandlerOptions, ): Effect.Effect< DisableRouteServerPropagationCommandOutput, - Cause.TimeoutException | SdkError | EC2ServiceError + Cause.TimeoutError | SdkError | EC2ServiceError >; /** @@ -8127,7 +8232,7 @@ interface EC2Service$ { options?: HttpHandlerOptions, ): Effect.Effect< DisableSerialConsoleAccessCommandOutput, - Cause.TimeoutException | SdkError | EC2ServiceError + Cause.TimeoutError | SdkError | EC2ServiceError >; /** @@ -8138,7 +8243,7 @@ interface EC2Service$ { options?: HttpHandlerOptions, ): Effect.Effect< DisableSnapshotBlockPublicAccessCommandOutput, - Cause.TimeoutException | SdkError | EC2ServiceError + Cause.TimeoutError | SdkError | EC2ServiceError >; /** @@ -8149,7 +8254,7 @@ interface EC2Service$ { options?: HttpHandlerOptions, ): Effect.Effect< DisableTransitGatewayRouteTablePropagationCommandOutput, - Cause.TimeoutException | SdkError | EC2ServiceError + Cause.TimeoutError | SdkError | EC2ServiceError >; /** @@ -8160,7 +8265,7 @@ interface EC2Service$ { options?: HttpHandlerOptions, ): Effect.Effect< DisableVgwRoutePropagationCommandOutput, - Cause.TimeoutException | SdkError | EC2ServiceError + Cause.TimeoutError | SdkError | EC2ServiceError >; /** @@ -8171,7 +8276,7 @@ interface EC2Service$ { options?: HttpHandlerOptions, ): Effect.Effect< DisableVpcClassicLinkCommandOutput, - Cause.TimeoutException | SdkError | EC2ServiceError + Cause.TimeoutError | SdkError | EC2ServiceError >; /** @@ -8182,7 +8287,7 @@ interface EC2Service$ { options?: HttpHandlerOptions, ): Effect.Effect< DisableVpcClassicLinkDnsSupportCommandOutput, - Cause.TimeoutException | SdkError | EC2ServiceError + Cause.TimeoutError | SdkError | EC2ServiceError >; /** @@ -8193,7 +8298,7 @@ interface EC2Service$ { options?: HttpHandlerOptions, ): Effect.Effect< DisassociateAddressCommandOutput, - Cause.TimeoutException | SdkError | EC2ServiceError + Cause.TimeoutError | SdkError | EC2ServiceError >; /** @@ -8204,7 +8309,7 @@ interface EC2Service$ { options?: HttpHandlerOptions, ): Effect.Effect< DisassociateCapacityReservationBillingOwnerCommandOutput, - Cause.TimeoutException | SdkError | EC2ServiceError + Cause.TimeoutError | SdkError | EC2ServiceError >; /** @@ -8215,7 +8320,7 @@ interface EC2Service$ { options?: HttpHandlerOptions, ): Effect.Effect< DisassociateClientVpnTargetNetworkCommandOutput, - Cause.TimeoutException | SdkError | EC2ServiceError + Cause.TimeoutError | SdkError | EC2ServiceError >; /** @@ -8226,7 +8331,7 @@ interface EC2Service$ { options?: HttpHandlerOptions, ): Effect.Effect< DisassociateEnclaveCertificateIamRoleCommandOutput, - Cause.TimeoutException | SdkError | EC2ServiceError + Cause.TimeoutError | SdkError | EC2ServiceError >; /** @@ -8237,7 +8342,7 @@ interface EC2Service$ { options?: HttpHandlerOptions, ): Effect.Effect< DisassociateIamInstanceProfileCommandOutput, - Cause.TimeoutException | SdkError | EC2ServiceError + Cause.TimeoutError | SdkError | EC2ServiceError >; /** @@ -8248,7 +8353,7 @@ interface EC2Service$ { options?: HttpHandlerOptions, ): Effect.Effect< DisassociateInstanceEventWindowCommandOutput, - Cause.TimeoutException | SdkError | EC2ServiceError + Cause.TimeoutError | SdkError | EC2ServiceError >; /** @@ -8259,7 +8364,7 @@ interface EC2Service$ { options?: HttpHandlerOptions, ): Effect.Effect< DisassociateIpamByoasnCommandOutput, - Cause.TimeoutException | SdkError | EC2ServiceError + Cause.TimeoutError | SdkError | EC2ServiceError >; /** @@ -8270,7 +8375,7 @@ interface EC2Service$ { options?: HttpHandlerOptions, ): Effect.Effect< DisassociateIpamResourceDiscoveryCommandOutput, - Cause.TimeoutException | SdkError | EC2ServiceError + Cause.TimeoutError | SdkError | EC2ServiceError >; /** @@ -8281,7 +8386,7 @@ interface EC2Service$ { options?: HttpHandlerOptions, ): Effect.Effect< DisassociateNatGatewayAddressCommandOutput, - Cause.TimeoutException | SdkError | EC2ServiceError + Cause.TimeoutError | SdkError | EC2ServiceError >; /** @@ -8292,7 +8397,7 @@ interface EC2Service$ { options?: HttpHandlerOptions, ): Effect.Effect< DisassociateRouteServerCommandOutput, - Cause.TimeoutException | SdkError | EC2ServiceError + Cause.TimeoutError | SdkError | EC2ServiceError >; /** @@ -8303,7 +8408,7 @@ interface EC2Service$ { options?: HttpHandlerOptions, ): Effect.Effect< DisassociateRouteTableCommandOutput, - Cause.TimeoutException | SdkError | EC2ServiceError + Cause.TimeoutError | SdkError | EC2ServiceError >; /** @@ -8314,7 +8419,7 @@ interface EC2Service$ { options?: HttpHandlerOptions, ): Effect.Effect< DisassociateSecurityGroupVpcCommandOutput, - Cause.TimeoutException | SdkError | EC2ServiceError + Cause.TimeoutError | SdkError | EC2ServiceError >; /** @@ -8325,7 +8430,7 @@ interface EC2Service$ { options?: HttpHandlerOptions, ): Effect.Effect< DisassociateSubnetCidrBlockCommandOutput, - Cause.TimeoutException | SdkError | EC2ServiceError + Cause.TimeoutError | SdkError | EC2ServiceError >; /** @@ -8336,7 +8441,7 @@ interface EC2Service$ { options?: HttpHandlerOptions, ): Effect.Effect< DisassociateTransitGatewayMulticastDomainCommandOutput, - Cause.TimeoutException | SdkError | EC2ServiceError + Cause.TimeoutError | SdkError | EC2ServiceError >; /** @@ -8347,7 +8452,7 @@ interface EC2Service$ { options?: HttpHandlerOptions, ): Effect.Effect< DisassociateTransitGatewayPolicyTableCommandOutput, - Cause.TimeoutException | SdkError | EC2ServiceError + Cause.TimeoutError | SdkError | EC2ServiceError >; /** @@ -8358,7 +8463,7 @@ interface EC2Service$ { options?: HttpHandlerOptions, ): Effect.Effect< DisassociateTransitGatewayRouteTableCommandOutput, - Cause.TimeoutException | SdkError | EC2ServiceError + Cause.TimeoutError | SdkError | EC2ServiceError >; /** @@ -8369,7 +8474,7 @@ interface EC2Service$ { options?: HttpHandlerOptions, ): Effect.Effect< DisassociateTrunkInterfaceCommandOutput, - Cause.TimeoutException | SdkError | EC2ServiceError + Cause.TimeoutError | SdkError | EC2ServiceError >; /** @@ -8380,7 +8485,7 @@ interface EC2Service$ { options?: HttpHandlerOptions, ): Effect.Effect< DisassociateVpcCidrBlockCommandOutput, - Cause.TimeoutException | SdkError | EC2ServiceError + Cause.TimeoutError | SdkError | EC2ServiceError >; /** @@ -8391,7 +8496,7 @@ interface EC2Service$ { options?: HttpHandlerOptions, ): Effect.Effect< EnableAddressTransferCommandOutput, - Cause.TimeoutException | SdkError | EC2ServiceError + Cause.TimeoutError | SdkError | EC2ServiceError >; /** @@ -8402,7 +8507,7 @@ interface EC2Service$ { options?: HttpHandlerOptions, ): Effect.Effect< EnableAllowedImagesSettingsCommandOutput, - Cause.TimeoutException | SdkError | EC2ServiceError + Cause.TimeoutError | SdkError | EC2ServiceError >; /** @@ -8413,7 +8518,7 @@ interface EC2Service$ { options?: HttpHandlerOptions, ): Effect.Effect< EnableAwsNetworkPerformanceMetricSubscriptionCommandOutput, - Cause.TimeoutException | SdkError | EC2ServiceError + Cause.TimeoutError | SdkError | EC2ServiceError >; /** @@ -8424,7 +8529,7 @@ interface EC2Service$ { options?: HttpHandlerOptions, ): Effect.Effect< EnableCapacityManagerCommandOutput, - Cause.TimeoutException | SdkError | EC2ServiceError + Cause.TimeoutError | SdkError | EC2ServiceError >; /** @@ -8435,7 +8540,7 @@ interface EC2Service$ { options?: HttpHandlerOptions, ): Effect.Effect< EnableEbsEncryptionByDefaultCommandOutput, - Cause.TimeoutException | SdkError | EC2ServiceError + Cause.TimeoutError | SdkError | EC2ServiceError >; /** @@ -8446,7 +8551,7 @@ interface EC2Service$ { options?: HttpHandlerOptions, ): Effect.Effect< EnableFastLaunchCommandOutput, - Cause.TimeoutException | SdkError | EC2ServiceError + Cause.TimeoutError | SdkError | EC2ServiceError >; /** @@ -8457,7 +8562,7 @@ interface EC2Service$ { options?: HttpHandlerOptions, ): Effect.Effect< EnableFastSnapshotRestoresCommandOutput, - Cause.TimeoutException | SdkError | EC2ServiceError + Cause.TimeoutError | SdkError | EC2ServiceError >; /** @@ -8468,7 +8573,7 @@ interface EC2Service$ { options?: HttpHandlerOptions, ): Effect.Effect< EnableImageCommandOutput, - Cause.TimeoutException | SdkError | EC2ServiceError + Cause.TimeoutError | SdkError | EC2ServiceError >; /** @@ -8479,7 +8584,7 @@ interface EC2Service$ { options?: HttpHandlerOptions, ): Effect.Effect< EnableImageBlockPublicAccessCommandOutput, - Cause.TimeoutException | SdkError | EC2ServiceError + Cause.TimeoutError | SdkError | EC2ServiceError >; /** @@ -8490,7 +8595,7 @@ interface EC2Service$ { options?: HttpHandlerOptions, ): Effect.Effect< EnableImageDeprecationCommandOutput, - Cause.TimeoutException | SdkError | EC2ServiceError + Cause.TimeoutError | SdkError | EC2ServiceError >; /** @@ -8501,7 +8606,7 @@ interface EC2Service$ { options?: HttpHandlerOptions, ): Effect.Effect< EnableImageDeregistrationProtectionCommandOutput, - Cause.TimeoutException | SdkError | EC2ServiceError + Cause.TimeoutError | SdkError | EC2ServiceError >; /** @@ -8512,7 +8617,7 @@ interface EC2Service$ { options?: HttpHandlerOptions, ): Effect.Effect< EnableInstanceSqlHaStandbyDetectionsCommandOutput, - Cause.TimeoutException | SdkError | EC2ServiceError + Cause.TimeoutError | SdkError | EC2ServiceError >; /** @@ -8523,7 +8628,7 @@ interface EC2Service$ { options?: HttpHandlerOptions, ): Effect.Effect< EnableIpamOrganizationAdminAccountCommandOutput, - Cause.TimeoutException | SdkError | EC2ServiceError + Cause.TimeoutError | SdkError | EC2ServiceError >; /** @@ -8534,7 +8639,7 @@ interface EC2Service$ { options?: HttpHandlerOptions, ): Effect.Effect< EnableIpamPolicyCommandOutput, - Cause.TimeoutException | SdkError | EC2ServiceError + Cause.TimeoutError | SdkError | EC2ServiceError >; /** @@ -8545,7 +8650,7 @@ interface EC2Service$ { options?: HttpHandlerOptions, ): Effect.Effect< EnableReachabilityAnalyzerOrganizationSharingCommandOutput, - Cause.TimeoutException | SdkError | EC2ServiceError + Cause.TimeoutError | SdkError | EC2ServiceError >; /** @@ -8556,7 +8661,7 @@ interface EC2Service$ { options?: HttpHandlerOptions, ): Effect.Effect< EnableRouteServerPropagationCommandOutput, - Cause.TimeoutException | SdkError | EC2ServiceError + Cause.TimeoutError | SdkError | EC2ServiceError >; /** @@ -8567,7 +8672,7 @@ interface EC2Service$ { options?: HttpHandlerOptions, ): Effect.Effect< EnableSerialConsoleAccessCommandOutput, - Cause.TimeoutException | SdkError | EC2ServiceError + Cause.TimeoutError | SdkError | EC2ServiceError >; /** @@ -8578,7 +8683,7 @@ interface EC2Service$ { options?: HttpHandlerOptions, ): Effect.Effect< EnableSnapshotBlockPublicAccessCommandOutput, - Cause.TimeoutException | SdkError | EC2ServiceError + Cause.TimeoutError | SdkError | EC2ServiceError >; /** @@ -8589,7 +8694,7 @@ interface EC2Service$ { options?: HttpHandlerOptions, ): Effect.Effect< EnableTransitGatewayRouteTablePropagationCommandOutput, - Cause.TimeoutException | SdkError | EC2ServiceError + Cause.TimeoutError | SdkError | EC2ServiceError >; /** @@ -8600,7 +8705,7 @@ interface EC2Service$ { options?: HttpHandlerOptions, ): Effect.Effect< EnableVgwRoutePropagationCommandOutput, - Cause.TimeoutException | SdkError | EC2ServiceError + Cause.TimeoutError | SdkError | EC2ServiceError >; /** @@ -8611,7 +8716,7 @@ interface EC2Service$ { options?: HttpHandlerOptions, ): Effect.Effect< EnableVolumeIOCommandOutput, - Cause.TimeoutException | SdkError | EC2ServiceError + Cause.TimeoutError | SdkError | EC2ServiceError >; /** @@ -8622,7 +8727,7 @@ interface EC2Service$ { options?: HttpHandlerOptions, ): Effect.Effect< EnableVpcClassicLinkCommandOutput, - Cause.TimeoutException | SdkError | EC2ServiceError + Cause.TimeoutError | SdkError | EC2ServiceError >; /** @@ -8633,7 +8738,7 @@ interface EC2Service$ { options?: HttpHandlerOptions, ): Effect.Effect< EnableVpcClassicLinkDnsSupportCommandOutput, - Cause.TimeoutException | SdkError | EC2ServiceError + Cause.TimeoutError | SdkError | EC2ServiceError >; /** @@ -8644,7 +8749,7 @@ interface EC2Service$ { options?: HttpHandlerOptions, ): Effect.Effect< ExportClientVpnClientCertificateRevocationListCommandOutput, - Cause.TimeoutException | SdkError | EC2ServiceError + Cause.TimeoutError | SdkError | EC2ServiceError >; /** @@ -8655,7 +8760,7 @@ interface EC2Service$ { options?: HttpHandlerOptions, ): Effect.Effect< ExportClientVpnClientConfigurationCommandOutput, - Cause.TimeoutException | SdkError | EC2ServiceError + Cause.TimeoutError | SdkError | EC2ServiceError >; /** @@ -8666,7 +8771,7 @@ interface EC2Service$ { options?: HttpHandlerOptions, ): Effect.Effect< ExportImageCommandOutput, - Cause.TimeoutException | SdkError | EC2ServiceError + Cause.TimeoutError | SdkError | EC2ServiceError >; /** @@ -8677,7 +8782,7 @@ interface EC2Service$ { options?: HttpHandlerOptions, ): Effect.Effect< ExportTransitGatewayRoutesCommandOutput, - Cause.TimeoutException | SdkError | EC2ServiceError + Cause.TimeoutError | SdkError | EC2ServiceError >; /** @@ -8688,7 +8793,7 @@ interface EC2Service$ { options?: HttpHandlerOptions, ): Effect.Effect< ExportVerifiedAccessInstanceClientConfigurationCommandOutput, - Cause.TimeoutException | SdkError | EC2ServiceError + Cause.TimeoutError | SdkError | EC2ServiceError >; /** @@ -8699,7 +8804,7 @@ interface EC2Service$ { options?: HttpHandlerOptions, ): Effect.Effect< GetActiveVpnTunnelStatusCommandOutput, - Cause.TimeoutException | SdkError | EC2ServiceError + Cause.TimeoutError | SdkError | EC2ServiceError >; /** @@ -8710,7 +8815,7 @@ interface EC2Service$ { options?: HttpHandlerOptions, ): Effect.Effect< GetAllowedImagesSettingsCommandOutput, - Cause.TimeoutException | SdkError | EC2ServiceError + Cause.TimeoutError | SdkError | EC2ServiceError >; /** @@ -8721,7 +8826,7 @@ interface EC2Service$ { options?: HttpHandlerOptions, ): Effect.Effect< GetAssociatedEnclaveCertificateIamRolesCommandOutput, - Cause.TimeoutException | SdkError | EC2ServiceError + Cause.TimeoutError | SdkError | EC2ServiceError >; /** @@ -8732,7 +8837,7 @@ interface EC2Service$ { options?: HttpHandlerOptions, ): Effect.Effect< GetAssociatedIpv6PoolCidrsCommandOutput, - Cause.TimeoutException | SdkError | EC2ServiceError + Cause.TimeoutError | SdkError | EC2ServiceError >; /** @@ -8743,7 +8848,7 @@ interface EC2Service$ { options?: HttpHandlerOptions, ): Effect.Effect< GetAwsNetworkPerformanceDataCommandOutput, - Cause.TimeoutException | SdkError | EC2ServiceError + Cause.TimeoutError | SdkError | EC2ServiceError >; /** @@ -8754,7 +8859,7 @@ interface EC2Service$ { options?: HttpHandlerOptions, ): Effect.Effect< GetCapacityManagerAttributesCommandOutput, - Cause.TimeoutException | SdkError | EC2ServiceError + Cause.TimeoutError | SdkError | EC2ServiceError >; /** @@ -8765,7 +8870,7 @@ interface EC2Service$ { options?: HttpHandlerOptions, ): Effect.Effect< GetCapacityManagerMetricDataCommandOutput, - Cause.TimeoutException | SdkError | EC2ServiceError + Cause.TimeoutError | SdkError | EC2ServiceError >; /** @@ -8776,7 +8881,7 @@ interface EC2Service$ { options?: HttpHandlerOptions, ): Effect.Effect< GetCapacityManagerMetricDimensionsCommandOutput, - Cause.TimeoutException | SdkError | EC2ServiceError + Cause.TimeoutError | SdkError | EC2ServiceError >; /** @@ -8787,7 +8892,7 @@ interface EC2Service$ { options?: HttpHandlerOptions, ): Effect.Effect< GetCapacityReservationUsageCommandOutput, - Cause.TimeoutException | SdkError | EC2ServiceError + Cause.TimeoutError | SdkError | EC2ServiceError >; /** @@ -8798,7 +8903,7 @@ interface EC2Service$ { options?: HttpHandlerOptions, ): Effect.Effect< GetCoipPoolUsageCommandOutput, - Cause.TimeoutException | SdkError | EC2ServiceError + Cause.TimeoutError | SdkError | EC2ServiceError >; /** @@ -8809,7 +8914,7 @@ interface EC2Service$ { options?: HttpHandlerOptions, ): Effect.Effect< GetConsoleOutputCommandOutput, - Cause.TimeoutException | SdkError | EC2ServiceError + Cause.TimeoutError | SdkError | EC2ServiceError >; /** @@ -8820,7 +8925,7 @@ interface EC2Service$ { options?: HttpHandlerOptions, ): Effect.Effect< GetConsoleScreenshotCommandOutput, - Cause.TimeoutException | SdkError | EC2ServiceError + Cause.TimeoutError | SdkError | EC2ServiceError >; /** @@ -8831,7 +8936,7 @@ interface EC2Service$ { options?: HttpHandlerOptions, ): Effect.Effect< GetDeclarativePoliciesReportSummaryCommandOutput, - Cause.TimeoutException | SdkError | EC2ServiceError + Cause.TimeoutError | SdkError | EC2ServiceError >; /** @@ -8842,7 +8947,7 @@ interface EC2Service$ { options?: HttpHandlerOptions, ): Effect.Effect< GetDefaultCreditSpecificationCommandOutput, - Cause.TimeoutException | SdkError | EC2ServiceError + Cause.TimeoutError | SdkError | EC2ServiceError >; /** @@ -8853,7 +8958,7 @@ interface EC2Service$ { options?: HttpHandlerOptions, ): Effect.Effect< GetEbsDefaultKmsKeyIdCommandOutput, - Cause.TimeoutException | SdkError | EC2ServiceError + Cause.TimeoutError | SdkError | EC2ServiceError >; /** @@ -8864,7 +8969,7 @@ interface EC2Service$ { options?: HttpHandlerOptions, ): Effect.Effect< GetEbsEncryptionByDefaultCommandOutput, - Cause.TimeoutException | SdkError | EC2ServiceError + Cause.TimeoutError | SdkError | EC2ServiceError >; /** @@ -8875,7 +8980,7 @@ interface EC2Service$ { options?: HttpHandlerOptions, ): Effect.Effect< GetEnabledIpamPolicyCommandOutput, - Cause.TimeoutException | SdkError | EC2ServiceError + Cause.TimeoutError | SdkError | EC2ServiceError >; /** @@ -8886,7 +8991,7 @@ interface EC2Service$ { options?: HttpHandlerOptions, ): Effect.Effect< GetFlowLogsIntegrationTemplateCommandOutput, - Cause.TimeoutException | SdkError | EC2ServiceError + Cause.TimeoutError | SdkError | EC2ServiceError >; /** @@ -8897,7 +9002,7 @@ interface EC2Service$ { options?: HttpHandlerOptions, ): Effect.Effect< GetGroupsForCapacityReservationCommandOutput, - Cause.TimeoutException | SdkError | EC2ServiceError + Cause.TimeoutError | SdkError | EC2ServiceError >; /** @@ -8908,7 +9013,7 @@ interface EC2Service$ { options?: HttpHandlerOptions, ): Effect.Effect< GetHostReservationPurchasePreviewCommandOutput, - Cause.TimeoutException | SdkError | EC2ServiceError + Cause.TimeoutError | SdkError | EC2ServiceError >; /** @@ -8919,7 +9024,7 @@ interface EC2Service$ { options?: HttpHandlerOptions, ): Effect.Effect< GetImageAncestryCommandOutput, - Cause.TimeoutException | SdkError | EC2ServiceError + Cause.TimeoutError | SdkError | EC2ServiceError >; /** @@ -8930,7 +9035,7 @@ interface EC2Service$ { options?: HttpHandlerOptions, ): Effect.Effect< GetImageBlockPublicAccessStateCommandOutput, - Cause.TimeoutException | SdkError | EC2ServiceError + Cause.TimeoutError | SdkError | EC2ServiceError >; /** @@ -8941,7 +9046,7 @@ interface EC2Service$ { options?: HttpHandlerOptions, ): Effect.Effect< GetInstanceMetadataDefaultsCommandOutput, - Cause.TimeoutException | SdkError | EC2ServiceError + Cause.TimeoutError | SdkError | EC2ServiceError >; /** @@ -8952,7 +9057,7 @@ interface EC2Service$ { options?: HttpHandlerOptions, ): Effect.Effect< GetInstanceTpmEkPubCommandOutput, - Cause.TimeoutException | SdkError | EC2ServiceError + Cause.TimeoutError | SdkError | EC2ServiceError >; /** @@ -8963,7 +9068,7 @@ interface EC2Service$ { options?: HttpHandlerOptions, ): Effect.Effect< GetInstanceTypesFromInstanceRequirementsCommandOutput, - Cause.TimeoutException | SdkError | EC2ServiceError + Cause.TimeoutError | SdkError | EC2ServiceError >; /** @@ -8974,7 +9079,7 @@ interface EC2Service$ { options?: HttpHandlerOptions, ): Effect.Effect< GetInstanceUefiDataCommandOutput, - Cause.TimeoutException | SdkError | EC2ServiceError + Cause.TimeoutError | SdkError | EC2ServiceError >; /** @@ -8985,7 +9090,7 @@ interface EC2Service$ { options?: HttpHandlerOptions, ): Effect.Effect< GetIpamAddressHistoryCommandOutput, - Cause.TimeoutException | SdkError | EC2ServiceError + Cause.TimeoutError | SdkError | EC2ServiceError >; /** @@ -8996,7 +9101,7 @@ interface EC2Service$ { options?: HttpHandlerOptions, ): Effect.Effect< GetIpamDiscoveredAccountsCommandOutput, - Cause.TimeoutException | SdkError | EC2ServiceError + Cause.TimeoutError | SdkError | EC2ServiceError >; /** @@ -9007,7 +9112,7 @@ interface EC2Service$ { options?: HttpHandlerOptions, ): Effect.Effect< GetIpamDiscoveredPublicAddressesCommandOutput, - Cause.TimeoutException | SdkError | EC2ServiceError + Cause.TimeoutError | SdkError | EC2ServiceError >; /** @@ -9018,7 +9123,7 @@ interface EC2Service$ { options?: HttpHandlerOptions, ): Effect.Effect< GetIpamDiscoveredResourceCidrsCommandOutput, - Cause.TimeoutException | SdkError | EC2ServiceError + Cause.TimeoutError | SdkError | EC2ServiceError >; /** @@ -9029,7 +9134,7 @@ interface EC2Service$ { options?: HttpHandlerOptions, ): Effect.Effect< GetIpamPolicyAllocationRulesCommandOutput, - Cause.TimeoutException | SdkError | EC2ServiceError + Cause.TimeoutError | SdkError | EC2ServiceError >; /** @@ -9040,7 +9145,7 @@ interface EC2Service$ { options?: HttpHandlerOptions, ): Effect.Effect< GetIpamPolicyOrganizationTargetsCommandOutput, - Cause.TimeoutException | SdkError | EC2ServiceError + Cause.TimeoutError | SdkError | EC2ServiceError >; /** @@ -9051,7 +9156,7 @@ interface EC2Service$ { options?: HttpHandlerOptions, ): Effect.Effect< GetIpamPoolAllocationsCommandOutput, - Cause.TimeoutException | SdkError | EC2ServiceError + Cause.TimeoutError | SdkError | EC2ServiceError >; /** @@ -9062,7 +9167,7 @@ interface EC2Service$ { options?: HttpHandlerOptions, ): Effect.Effect< GetIpamPoolCidrsCommandOutput, - Cause.TimeoutException | SdkError | EC2ServiceError + Cause.TimeoutError | SdkError | EC2ServiceError >; /** @@ -9073,7 +9178,7 @@ interface EC2Service$ { options?: HttpHandlerOptions, ): Effect.Effect< GetIpamPrefixListResolverRulesCommandOutput, - Cause.TimeoutException | SdkError | EC2ServiceError + Cause.TimeoutError | SdkError | EC2ServiceError >; /** @@ -9084,7 +9189,7 @@ interface EC2Service$ { options?: HttpHandlerOptions, ): Effect.Effect< GetIpamPrefixListResolverVersionEntriesCommandOutput, - Cause.TimeoutException | SdkError | EC2ServiceError + Cause.TimeoutError | SdkError | EC2ServiceError >; /** @@ -9095,7 +9200,7 @@ interface EC2Service$ { options?: HttpHandlerOptions, ): Effect.Effect< GetIpamPrefixListResolverVersionsCommandOutput, - Cause.TimeoutException | SdkError | EC2ServiceError + Cause.TimeoutError | SdkError | EC2ServiceError >; /** @@ -9106,7 +9211,7 @@ interface EC2Service$ { options?: HttpHandlerOptions, ): Effect.Effect< GetIpamResourceCidrsCommandOutput, - Cause.TimeoutException | SdkError | EC2ServiceError + Cause.TimeoutError | SdkError | EC2ServiceError >; /** @@ -9117,7 +9222,7 @@ interface EC2Service$ { options?: HttpHandlerOptions, ): Effect.Effect< GetLaunchTemplateDataCommandOutput, - Cause.TimeoutException | SdkError | EC2ServiceError + Cause.TimeoutError | SdkError | EC2ServiceError >; /** @@ -9128,7 +9233,7 @@ interface EC2Service$ { options?: HttpHandlerOptions, ): Effect.Effect< GetManagedPrefixListAssociationsCommandOutput, - Cause.TimeoutException | SdkError | EC2ServiceError + Cause.TimeoutError | SdkError | EC2ServiceError >; /** @@ -9139,7 +9244,7 @@ interface EC2Service$ { options?: HttpHandlerOptions, ): Effect.Effect< GetManagedPrefixListEntriesCommandOutput, - Cause.TimeoutException | SdkError | EC2ServiceError + Cause.TimeoutError | SdkError | EC2ServiceError >; /** @@ -9150,7 +9255,7 @@ interface EC2Service$ { options?: HttpHandlerOptions, ): Effect.Effect< GetNetworkInsightsAccessScopeAnalysisFindingsCommandOutput, - Cause.TimeoutException | SdkError | EC2ServiceError + Cause.TimeoutError | SdkError | EC2ServiceError >; /** @@ -9161,7 +9266,7 @@ interface EC2Service$ { options?: HttpHandlerOptions, ): Effect.Effect< GetNetworkInsightsAccessScopeContentCommandOutput, - Cause.TimeoutException | SdkError | EC2ServiceError + Cause.TimeoutError | SdkError | EC2ServiceError >; /** @@ -9172,7 +9277,7 @@ interface EC2Service$ { options?: HttpHandlerOptions, ): Effect.Effect< GetPasswordDataCommandOutput, - Cause.TimeoutException | SdkError | EC2ServiceError + Cause.TimeoutError | SdkError | EC2ServiceError >; /** @@ -9183,7 +9288,7 @@ interface EC2Service$ { options?: HttpHandlerOptions, ): Effect.Effect< GetReservedInstancesExchangeQuoteCommandOutput, - Cause.TimeoutException | SdkError | EC2ServiceError + Cause.TimeoutError | SdkError | EC2ServiceError >; /** @@ -9194,7 +9299,7 @@ interface EC2Service$ { options?: HttpHandlerOptions, ): Effect.Effect< GetRouteServerAssociationsCommandOutput, - Cause.TimeoutException | SdkError | EC2ServiceError + Cause.TimeoutError | SdkError | EC2ServiceError >; /** @@ -9205,7 +9310,7 @@ interface EC2Service$ { options?: HttpHandlerOptions, ): Effect.Effect< GetRouteServerPropagationsCommandOutput, - Cause.TimeoutException | SdkError | EC2ServiceError + Cause.TimeoutError | SdkError | EC2ServiceError >; /** @@ -9216,7 +9321,7 @@ interface EC2Service$ { options?: HttpHandlerOptions, ): Effect.Effect< GetRouteServerRoutingDatabaseCommandOutput, - Cause.TimeoutException | SdkError | EC2ServiceError + Cause.TimeoutError | SdkError | EC2ServiceError >; /** @@ -9227,7 +9332,7 @@ interface EC2Service$ { options?: HttpHandlerOptions, ): Effect.Effect< GetSecurityGroupsForVpcCommandOutput, - Cause.TimeoutException | SdkError | EC2ServiceError + Cause.TimeoutError | SdkError | EC2ServiceError >; /** @@ -9238,7 +9343,7 @@ interface EC2Service$ { options?: HttpHandlerOptions, ): Effect.Effect< GetSerialConsoleAccessStatusCommandOutput, - Cause.TimeoutException | SdkError | EC2ServiceError + Cause.TimeoutError | SdkError | EC2ServiceError >; /** @@ -9249,7 +9354,7 @@ interface EC2Service$ { options?: HttpHandlerOptions, ): Effect.Effect< GetSnapshotBlockPublicAccessStateCommandOutput, - Cause.TimeoutException | SdkError | EC2ServiceError + Cause.TimeoutError | SdkError | EC2ServiceError >; /** @@ -9260,7 +9365,7 @@ interface EC2Service$ { options?: HttpHandlerOptions, ): Effect.Effect< GetSpotPlacementScoresCommandOutput, - Cause.TimeoutException | SdkError | EC2ServiceError + Cause.TimeoutError | SdkError | EC2ServiceError >; /** @@ -9271,7 +9376,7 @@ interface EC2Service$ { options?: HttpHandlerOptions, ): Effect.Effect< GetSubnetCidrReservationsCommandOutput, - Cause.TimeoutException | SdkError | EC2ServiceError + Cause.TimeoutError | SdkError | EC2ServiceError >; /** @@ -9282,7 +9387,7 @@ interface EC2Service$ { options?: HttpHandlerOptions, ): Effect.Effect< GetTransitGatewayAttachmentPropagationsCommandOutput, - Cause.TimeoutException | SdkError | EC2ServiceError + Cause.TimeoutError | SdkError | EC2ServiceError >; /** @@ -9293,7 +9398,7 @@ interface EC2Service$ { options?: HttpHandlerOptions, ): Effect.Effect< GetTransitGatewayMeteringPolicyEntriesCommandOutput, - Cause.TimeoutException | SdkError | EC2ServiceError + Cause.TimeoutError | SdkError | EC2ServiceError >; /** @@ -9304,7 +9409,7 @@ interface EC2Service$ { options?: HttpHandlerOptions, ): Effect.Effect< GetTransitGatewayMulticastDomainAssociationsCommandOutput, - Cause.TimeoutException | SdkError | EC2ServiceError + Cause.TimeoutError | SdkError | EC2ServiceError >; /** @@ -9315,7 +9420,7 @@ interface EC2Service$ { options?: HttpHandlerOptions, ): Effect.Effect< GetTransitGatewayPolicyTableAssociationsCommandOutput, - Cause.TimeoutException | SdkError | EC2ServiceError + Cause.TimeoutError | SdkError | EC2ServiceError >; /** @@ -9326,7 +9431,7 @@ interface EC2Service$ { options?: HttpHandlerOptions, ): Effect.Effect< GetTransitGatewayPolicyTableEntriesCommandOutput, - Cause.TimeoutException | SdkError | EC2ServiceError + Cause.TimeoutError | SdkError | EC2ServiceError >; /** @@ -9337,7 +9442,7 @@ interface EC2Service$ { options?: HttpHandlerOptions, ): Effect.Effect< GetTransitGatewayPrefixListReferencesCommandOutput, - Cause.TimeoutException | SdkError | EC2ServiceError + Cause.TimeoutError | SdkError | EC2ServiceError >; /** @@ -9348,7 +9453,7 @@ interface EC2Service$ { options?: HttpHandlerOptions, ): Effect.Effect< GetTransitGatewayRouteTableAssociationsCommandOutput, - Cause.TimeoutException | SdkError | EC2ServiceError + Cause.TimeoutError | SdkError | EC2ServiceError >; /** @@ -9359,7 +9464,7 @@ interface EC2Service$ { options?: HttpHandlerOptions, ): Effect.Effect< GetTransitGatewayRouteTablePropagationsCommandOutput, - Cause.TimeoutException | SdkError | EC2ServiceError + Cause.TimeoutError | SdkError | EC2ServiceError >; /** @@ -9370,7 +9475,7 @@ interface EC2Service$ { options?: HttpHandlerOptions, ): Effect.Effect< GetVerifiedAccessEndpointPolicyCommandOutput, - Cause.TimeoutException | SdkError | EC2ServiceError + Cause.TimeoutError | SdkError | EC2ServiceError >; /** @@ -9381,7 +9486,7 @@ interface EC2Service$ { options?: HttpHandlerOptions, ): Effect.Effect< GetVerifiedAccessEndpointTargetsCommandOutput, - Cause.TimeoutException | SdkError | EC2ServiceError + Cause.TimeoutError | SdkError | EC2ServiceError >; /** @@ -9392,7 +9497,7 @@ interface EC2Service$ { options?: HttpHandlerOptions, ): Effect.Effect< GetVerifiedAccessGroupPolicyCommandOutput, - Cause.TimeoutException | SdkError | EC2ServiceError + Cause.TimeoutError | SdkError | EC2ServiceError >; /** @@ -9403,7 +9508,7 @@ interface EC2Service$ { options?: HttpHandlerOptions, ): Effect.Effect< GetVpcResourcesBlockingEncryptionEnforcementCommandOutput, - Cause.TimeoutException | SdkError | EC2ServiceError + Cause.TimeoutError | SdkError | EC2ServiceError >; /** @@ -9414,7 +9519,7 @@ interface EC2Service$ { options?: HttpHandlerOptions, ): Effect.Effect< GetVpnConnectionDeviceSampleConfigurationCommandOutput, - Cause.TimeoutException | SdkError | EC2ServiceError + Cause.TimeoutError | SdkError | EC2ServiceError >; /** @@ -9425,7 +9530,7 @@ interface EC2Service$ { options?: HttpHandlerOptions, ): Effect.Effect< GetVpnConnectionDeviceTypesCommandOutput, - Cause.TimeoutException | SdkError | EC2ServiceError + Cause.TimeoutError | SdkError | EC2ServiceError >; /** @@ -9436,7 +9541,7 @@ interface EC2Service$ { options?: HttpHandlerOptions, ): Effect.Effect< GetVpnTunnelReplacementStatusCommandOutput, - Cause.TimeoutException | SdkError | EC2ServiceError + Cause.TimeoutError | SdkError | EC2ServiceError >; /** @@ -9447,7 +9552,7 @@ interface EC2Service$ { options?: HttpHandlerOptions, ): Effect.Effect< ImportClientVpnClientCertificateRevocationListCommandOutput, - Cause.TimeoutException | SdkError | EC2ServiceError + Cause.TimeoutError | SdkError | EC2ServiceError >; /** @@ -9458,7 +9563,7 @@ interface EC2Service$ { options?: HttpHandlerOptions, ): Effect.Effect< ImportImageCommandOutput, - Cause.TimeoutException | SdkError | EC2ServiceError + Cause.TimeoutError | SdkError | EC2ServiceError >; /** @@ -9469,7 +9574,7 @@ interface EC2Service$ { options?: HttpHandlerOptions, ): Effect.Effect< ImportInstanceCommandOutput, - Cause.TimeoutException | SdkError | EC2ServiceError + Cause.TimeoutError | SdkError | EC2ServiceError >; /** @@ -9480,7 +9585,7 @@ interface EC2Service$ { options?: HttpHandlerOptions, ): Effect.Effect< ImportKeyPairCommandOutput, - Cause.TimeoutException | SdkError | EC2ServiceError + Cause.TimeoutError | SdkError | EC2ServiceError >; /** @@ -9491,7 +9596,7 @@ interface EC2Service$ { options?: HttpHandlerOptions, ): Effect.Effect< ImportSnapshotCommandOutput, - Cause.TimeoutException | SdkError | EC2ServiceError + Cause.TimeoutError | SdkError | EC2ServiceError >; /** @@ -9502,7 +9607,7 @@ interface EC2Service$ { options?: HttpHandlerOptions, ): Effect.Effect< ImportVolumeCommandOutput, - Cause.TimeoutException | SdkError | EC2ServiceError + Cause.TimeoutError | SdkError | EC2ServiceError >; /** @@ -9513,7 +9618,7 @@ interface EC2Service$ { options?: HttpHandlerOptions, ): Effect.Effect< ListImagesInRecycleBinCommandOutput, - Cause.TimeoutException | SdkError | EC2ServiceError + Cause.TimeoutError | SdkError | EC2ServiceError >; /** @@ -9524,7 +9629,7 @@ interface EC2Service$ { options?: HttpHandlerOptions, ): Effect.Effect< ListSnapshotsInRecycleBinCommandOutput, - Cause.TimeoutException | SdkError | EC2ServiceError + Cause.TimeoutError | SdkError | EC2ServiceError >; /** @@ -9535,7 +9640,7 @@ interface EC2Service$ { options?: HttpHandlerOptions, ): Effect.Effect< ListVolumesInRecycleBinCommandOutput, - Cause.TimeoutException | SdkError | EC2ServiceError + Cause.TimeoutError | SdkError | EC2ServiceError >; /** @@ -9546,7 +9651,7 @@ interface EC2Service$ { options?: HttpHandlerOptions, ): Effect.Effect< LockSnapshotCommandOutput, - Cause.TimeoutException | SdkError | EC2ServiceError + Cause.TimeoutError | SdkError | EC2ServiceError >; /** @@ -9557,7 +9662,7 @@ interface EC2Service$ { options?: HttpHandlerOptions, ): Effect.Effect< ModifyAddressAttributeCommandOutput, - Cause.TimeoutException | SdkError | EC2ServiceError + Cause.TimeoutError | SdkError | EC2ServiceError >; /** @@ -9568,7 +9673,7 @@ interface EC2Service$ { options?: HttpHandlerOptions, ): Effect.Effect< ModifyAvailabilityZoneGroupCommandOutput, - Cause.TimeoutException | SdkError | EC2ServiceError + Cause.TimeoutError | SdkError | EC2ServiceError >; /** @@ -9579,7 +9684,7 @@ interface EC2Service$ { options?: HttpHandlerOptions, ): Effect.Effect< ModifyCapacityReservationCommandOutput, - Cause.TimeoutException | SdkError | EC2ServiceError + Cause.TimeoutError | SdkError | EC2ServiceError >; /** @@ -9590,7 +9695,7 @@ interface EC2Service$ { options?: HttpHandlerOptions, ): Effect.Effect< ModifyCapacityReservationFleetCommandOutput, - Cause.TimeoutException | SdkError | EC2ServiceError + Cause.TimeoutError | SdkError | EC2ServiceError >; /** @@ -9601,7 +9706,7 @@ interface EC2Service$ { options?: HttpHandlerOptions, ): Effect.Effect< ModifyClientVpnEndpointCommandOutput, - Cause.TimeoutException | SdkError | EC2ServiceError + Cause.TimeoutError | SdkError | EC2ServiceError >; /** @@ -9612,7 +9717,7 @@ interface EC2Service$ { options?: HttpHandlerOptions, ): Effect.Effect< ModifyDefaultCreditSpecificationCommandOutput, - Cause.TimeoutException | SdkError | EC2ServiceError + Cause.TimeoutError | SdkError | EC2ServiceError >; /** @@ -9623,7 +9728,7 @@ interface EC2Service$ { options?: HttpHandlerOptions, ): Effect.Effect< ModifyEbsDefaultKmsKeyIdCommandOutput, - Cause.TimeoutException | SdkError | EC2ServiceError + Cause.TimeoutError | SdkError | EC2ServiceError >; /** @@ -9634,7 +9739,7 @@ interface EC2Service$ { options?: HttpHandlerOptions, ): Effect.Effect< ModifyFleetCommandOutput, - Cause.TimeoutException | SdkError | EC2ServiceError + Cause.TimeoutError | SdkError | EC2ServiceError >; /** @@ -9645,7 +9750,7 @@ interface EC2Service$ { options?: HttpHandlerOptions, ): Effect.Effect< ModifyFpgaImageAttributeCommandOutput, - Cause.TimeoutException | SdkError | EC2ServiceError + Cause.TimeoutError | SdkError | EC2ServiceError >; /** @@ -9656,7 +9761,7 @@ interface EC2Service$ { options?: HttpHandlerOptions, ): Effect.Effect< ModifyHostsCommandOutput, - Cause.TimeoutException | SdkError | EC2ServiceError + Cause.TimeoutError | SdkError | EC2ServiceError >; /** @@ -9667,7 +9772,7 @@ interface EC2Service$ { options?: HttpHandlerOptions, ): Effect.Effect< ModifyIdFormatCommandOutput, - Cause.TimeoutException | SdkError | EC2ServiceError + Cause.TimeoutError | SdkError | EC2ServiceError >; /** @@ -9678,7 +9783,7 @@ interface EC2Service$ { options?: HttpHandlerOptions, ): Effect.Effect< ModifyIdentityIdFormatCommandOutput, - Cause.TimeoutException | SdkError | EC2ServiceError + Cause.TimeoutError | SdkError | EC2ServiceError >; /** @@ -9689,7 +9794,7 @@ interface EC2Service$ { options?: HttpHandlerOptions, ): Effect.Effect< ModifyImageAttributeCommandOutput, - Cause.TimeoutException | SdkError | EC2ServiceError + Cause.TimeoutError | SdkError | EC2ServiceError >; /** @@ -9700,7 +9805,7 @@ interface EC2Service$ { options?: HttpHandlerOptions, ): Effect.Effect< ModifyInstanceAttributeCommandOutput, - Cause.TimeoutException | SdkError | EC2ServiceError + Cause.TimeoutError | SdkError | EC2ServiceError >; /** @@ -9711,7 +9816,7 @@ interface EC2Service$ { options?: HttpHandlerOptions, ): Effect.Effect< ModifyInstanceCapacityReservationAttributesCommandOutput, - Cause.TimeoutException | SdkError | EC2ServiceError + Cause.TimeoutError | SdkError | EC2ServiceError >; /** @@ -9722,7 +9827,7 @@ interface EC2Service$ { options?: HttpHandlerOptions, ): Effect.Effect< ModifyInstanceConnectEndpointCommandOutput, - Cause.TimeoutException | SdkError | EC2ServiceError + Cause.TimeoutError | SdkError | EC2ServiceError >; /** @@ -9733,7 +9838,7 @@ interface EC2Service$ { options?: HttpHandlerOptions, ): Effect.Effect< ModifyInstanceCpuOptionsCommandOutput, - Cause.TimeoutException | SdkError | EC2ServiceError + Cause.TimeoutError | SdkError | EC2ServiceError >; /** @@ -9744,7 +9849,7 @@ interface EC2Service$ { options?: HttpHandlerOptions, ): Effect.Effect< ModifyInstanceCreditSpecificationCommandOutput, - Cause.TimeoutException | SdkError | EC2ServiceError + Cause.TimeoutError | SdkError | EC2ServiceError >; /** @@ -9755,7 +9860,7 @@ interface EC2Service$ { options?: HttpHandlerOptions, ): Effect.Effect< ModifyInstanceEventStartTimeCommandOutput, - Cause.TimeoutException | SdkError | EC2ServiceError + Cause.TimeoutError | SdkError | EC2ServiceError >; /** @@ -9766,7 +9871,7 @@ interface EC2Service$ { options?: HttpHandlerOptions, ): Effect.Effect< ModifyInstanceEventWindowCommandOutput, - Cause.TimeoutException | SdkError | EC2ServiceError + Cause.TimeoutError | SdkError | EC2ServiceError >; /** @@ -9777,7 +9882,7 @@ interface EC2Service$ { options?: HttpHandlerOptions, ): Effect.Effect< ModifyInstanceMaintenanceOptionsCommandOutput, - Cause.TimeoutException | SdkError | EC2ServiceError + Cause.TimeoutError | SdkError | EC2ServiceError >; /** @@ -9788,7 +9893,7 @@ interface EC2Service$ { options?: HttpHandlerOptions, ): Effect.Effect< ModifyInstanceMetadataDefaultsCommandOutput, - Cause.TimeoutException | SdkError | EC2ServiceError + Cause.TimeoutError | SdkError | EC2ServiceError >; /** @@ -9799,7 +9904,7 @@ interface EC2Service$ { options?: HttpHandlerOptions, ): Effect.Effect< ModifyInstanceMetadataOptionsCommandOutput, - Cause.TimeoutException | SdkError | EC2ServiceError + Cause.TimeoutError | SdkError | EC2ServiceError >; /** @@ -9810,7 +9915,7 @@ interface EC2Service$ { options?: HttpHandlerOptions, ): Effect.Effect< ModifyInstanceNetworkPerformanceOptionsCommandOutput, - Cause.TimeoutException | SdkError | EC2ServiceError + Cause.TimeoutError | SdkError | EC2ServiceError >; /** @@ -9821,7 +9926,7 @@ interface EC2Service$ { options?: HttpHandlerOptions, ): Effect.Effect< ModifyInstancePlacementCommandOutput, - Cause.TimeoutException | SdkError | EC2ServiceError + Cause.TimeoutError | SdkError | EC2ServiceError >; /** @@ -9832,7 +9937,7 @@ interface EC2Service$ { options?: HttpHandlerOptions, ): Effect.Effect< ModifyIpamCommandOutput, - Cause.TimeoutException | SdkError | EC2ServiceError + Cause.TimeoutError | SdkError | EC2ServiceError >; /** @@ -9843,7 +9948,7 @@ interface EC2Service$ { options?: HttpHandlerOptions, ): Effect.Effect< ModifyIpamPolicyAllocationRulesCommandOutput, - Cause.TimeoutException | SdkError | EC2ServiceError + Cause.TimeoutError | SdkError | EC2ServiceError >; /** @@ -9854,7 +9959,7 @@ interface EC2Service$ { options?: HttpHandlerOptions, ): Effect.Effect< ModifyIpamPoolCommandOutput, - Cause.TimeoutException | SdkError | EC2ServiceError + Cause.TimeoutError | SdkError | EC2ServiceError >; /** @@ -9865,7 +9970,7 @@ interface EC2Service$ { options?: HttpHandlerOptions, ): Effect.Effect< ModifyIpamPrefixListResolverCommandOutput, - Cause.TimeoutException | SdkError | EC2ServiceError + Cause.TimeoutError | SdkError | EC2ServiceError >; /** @@ -9876,7 +9981,7 @@ interface EC2Service$ { options?: HttpHandlerOptions, ): Effect.Effect< ModifyIpamPrefixListResolverTargetCommandOutput, - Cause.TimeoutException | SdkError | EC2ServiceError + Cause.TimeoutError | SdkError | EC2ServiceError >; /** @@ -9887,7 +9992,7 @@ interface EC2Service$ { options?: HttpHandlerOptions, ): Effect.Effect< ModifyIpamResourceCidrCommandOutput, - Cause.TimeoutException | SdkError | EC2ServiceError + Cause.TimeoutError | SdkError | EC2ServiceError >; /** @@ -9898,7 +10003,7 @@ interface EC2Service$ { options?: HttpHandlerOptions, ): Effect.Effect< ModifyIpamResourceDiscoveryCommandOutput, - Cause.TimeoutException | SdkError | EC2ServiceError + Cause.TimeoutError | SdkError | EC2ServiceError >; /** @@ -9909,7 +10014,7 @@ interface EC2Service$ { options?: HttpHandlerOptions, ): Effect.Effect< ModifyIpamScopeCommandOutput, - Cause.TimeoutException | SdkError | EC2ServiceError + Cause.TimeoutError | SdkError | EC2ServiceError >; /** @@ -9920,7 +10025,7 @@ interface EC2Service$ { options?: HttpHandlerOptions, ): Effect.Effect< ModifyLaunchTemplateCommandOutput, - Cause.TimeoutException | SdkError | EC2ServiceError + Cause.TimeoutError | SdkError | EC2ServiceError >; /** @@ -9931,7 +10036,7 @@ interface EC2Service$ { options?: HttpHandlerOptions, ): Effect.Effect< ModifyLocalGatewayRouteCommandOutput, - Cause.TimeoutException | SdkError | EC2ServiceError + Cause.TimeoutError | SdkError | EC2ServiceError >; /** @@ -9942,7 +10047,7 @@ interface EC2Service$ { options?: HttpHandlerOptions, ): Effect.Effect< ModifyManagedPrefixListCommandOutput, - Cause.TimeoutException | SdkError | EC2ServiceError + Cause.TimeoutError | SdkError | EC2ServiceError >; /** @@ -9953,7 +10058,7 @@ interface EC2Service$ { options?: HttpHandlerOptions, ): Effect.Effect< ModifyNetworkInterfaceAttributeCommandOutput, - Cause.TimeoutException | SdkError | EC2ServiceError + Cause.TimeoutError | SdkError | EC2ServiceError >; /** @@ -9964,7 +10069,7 @@ interface EC2Service$ { options?: HttpHandlerOptions, ): Effect.Effect< ModifyPrivateDnsNameOptionsCommandOutput, - Cause.TimeoutException | SdkError | EC2ServiceError + Cause.TimeoutError | SdkError | EC2ServiceError >; /** @@ -9975,7 +10080,7 @@ interface EC2Service$ { options?: HttpHandlerOptions, ): Effect.Effect< ModifyPublicIpDnsNameOptionsCommandOutput, - Cause.TimeoutException | SdkError | EC2ServiceError + Cause.TimeoutError | SdkError | EC2ServiceError >; /** @@ -9986,7 +10091,7 @@ interface EC2Service$ { options?: HttpHandlerOptions, ): Effect.Effect< ModifyReservedInstancesCommandOutput, - Cause.TimeoutException | SdkError | EC2ServiceError + Cause.TimeoutError | SdkError | EC2ServiceError >; /** @@ -9997,7 +10102,7 @@ interface EC2Service$ { options?: HttpHandlerOptions, ): Effect.Effect< ModifyRouteServerCommandOutput, - Cause.TimeoutException | SdkError | EC2ServiceError + Cause.TimeoutError | SdkError | EC2ServiceError >; /** @@ -10008,7 +10113,7 @@ interface EC2Service$ { options?: HttpHandlerOptions, ): Effect.Effect< ModifySecurityGroupRulesCommandOutput, - Cause.TimeoutException | SdkError | EC2ServiceError + Cause.TimeoutError | SdkError | EC2ServiceError >; /** @@ -10019,7 +10124,7 @@ interface EC2Service$ { options?: HttpHandlerOptions, ): Effect.Effect< ModifySnapshotAttributeCommandOutput, - Cause.TimeoutException | SdkError | EC2ServiceError + Cause.TimeoutError | SdkError | EC2ServiceError >; /** @@ -10030,7 +10135,7 @@ interface EC2Service$ { options?: HttpHandlerOptions, ): Effect.Effect< ModifySnapshotTierCommandOutput, - Cause.TimeoutException | SdkError | EC2ServiceError + Cause.TimeoutError | SdkError | EC2ServiceError >; /** @@ -10041,7 +10146,7 @@ interface EC2Service$ { options?: HttpHandlerOptions, ): Effect.Effect< ModifySpotFleetRequestCommandOutput, - Cause.TimeoutException | SdkError | EC2ServiceError + Cause.TimeoutError | SdkError | EC2ServiceError >; /** @@ -10052,7 +10157,7 @@ interface EC2Service$ { options?: HttpHandlerOptions, ): Effect.Effect< ModifySubnetAttributeCommandOutput, - Cause.TimeoutException | SdkError | EC2ServiceError + Cause.TimeoutError | SdkError | EC2ServiceError >; /** @@ -10063,7 +10168,7 @@ interface EC2Service$ { options?: HttpHandlerOptions, ): Effect.Effect< ModifyTrafficMirrorFilterNetworkServicesCommandOutput, - Cause.TimeoutException | SdkError | EC2ServiceError + Cause.TimeoutError | SdkError | EC2ServiceError >; /** @@ -10074,7 +10179,7 @@ interface EC2Service$ { options?: HttpHandlerOptions, ): Effect.Effect< ModifyTrafficMirrorFilterRuleCommandOutput, - Cause.TimeoutException | SdkError | EC2ServiceError + Cause.TimeoutError | SdkError | EC2ServiceError >; /** @@ -10085,7 +10190,7 @@ interface EC2Service$ { options?: HttpHandlerOptions, ): Effect.Effect< ModifyTrafficMirrorSessionCommandOutput, - Cause.TimeoutException | SdkError | EC2ServiceError + Cause.TimeoutError | SdkError | EC2ServiceError >; /** @@ -10096,7 +10201,7 @@ interface EC2Service$ { options?: HttpHandlerOptions, ): Effect.Effect< ModifyTransitGatewayCommandOutput, - Cause.TimeoutException | SdkError | EC2ServiceError + Cause.TimeoutError | SdkError | EC2ServiceError >; /** @@ -10107,7 +10212,7 @@ interface EC2Service$ { options?: HttpHandlerOptions, ): Effect.Effect< ModifyTransitGatewayMeteringPolicyCommandOutput, - Cause.TimeoutException | SdkError | EC2ServiceError + Cause.TimeoutError | SdkError | EC2ServiceError >; /** @@ -10118,7 +10223,7 @@ interface EC2Service$ { options?: HttpHandlerOptions, ): Effect.Effect< ModifyTransitGatewayPrefixListReferenceCommandOutput, - Cause.TimeoutException | SdkError | EC2ServiceError + Cause.TimeoutError | SdkError | EC2ServiceError >; /** @@ -10129,7 +10234,7 @@ interface EC2Service$ { options?: HttpHandlerOptions, ): Effect.Effect< ModifyTransitGatewayVpcAttachmentCommandOutput, - Cause.TimeoutException | SdkError | EC2ServiceError + Cause.TimeoutError | SdkError | EC2ServiceError >; /** @@ -10140,7 +10245,7 @@ interface EC2Service$ { options?: HttpHandlerOptions, ): Effect.Effect< ModifyVerifiedAccessEndpointCommandOutput, - Cause.TimeoutException | SdkError | EC2ServiceError + Cause.TimeoutError | SdkError | EC2ServiceError >; /** @@ -10151,7 +10256,7 @@ interface EC2Service$ { options?: HttpHandlerOptions, ): Effect.Effect< ModifyVerifiedAccessEndpointPolicyCommandOutput, - Cause.TimeoutException | SdkError | EC2ServiceError + Cause.TimeoutError | SdkError | EC2ServiceError >; /** @@ -10162,7 +10267,7 @@ interface EC2Service$ { options?: HttpHandlerOptions, ): Effect.Effect< ModifyVerifiedAccessGroupCommandOutput, - Cause.TimeoutException | SdkError | EC2ServiceError + Cause.TimeoutError | SdkError | EC2ServiceError >; /** @@ -10173,7 +10278,7 @@ interface EC2Service$ { options?: HttpHandlerOptions, ): Effect.Effect< ModifyVerifiedAccessGroupPolicyCommandOutput, - Cause.TimeoutException | SdkError | EC2ServiceError + Cause.TimeoutError | SdkError | EC2ServiceError >; /** @@ -10184,7 +10289,7 @@ interface EC2Service$ { options?: HttpHandlerOptions, ): Effect.Effect< ModifyVerifiedAccessInstanceCommandOutput, - Cause.TimeoutException | SdkError | EC2ServiceError + Cause.TimeoutError | SdkError | EC2ServiceError >; /** @@ -10195,7 +10300,7 @@ interface EC2Service$ { options?: HttpHandlerOptions, ): Effect.Effect< ModifyVerifiedAccessInstanceLoggingConfigurationCommandOutput, - Cause.TimeoutException | SdkError | EC2ServiceError + Cause.TimeoutError | SdkError | EC2ServiceError >; /** @@ -10206,7 +10311,7 @@ interface EC2Service$ { options?: HttpHandlerOptions, ): Effect.Effect< ModifyVerifiedAccessTrustProviderCommandOutput, - Cause.TimeoutException | SdkError | EC2ServiceError + Cause.TimeoutError | SdkError | EC2ServiceError >; /** @@ -10217,7 +10322,7 @@ interface EC2Service$ { options?: HttpHandlerOptions, ): Effect.Effect< ModifyVolumeCommandOutput, - Cause.TimeoutException | SdkError | EC2ServiceError + Cause.TimeoutError | SdkError | EC2ServiceError >; /** @@ -10228,7 +10333,7 @@ interface EC2Service$ { options?: HttpHandlerOptions, ): Effect.Effect< ModifyVolumeAttributeCommandOutput, - Cause.TimeoutException | SdkError | EC2ServiceError + Cause.TimeoutError | SdkError | EC2ServiceError >; /** @@ -10239,7 +10344,7 @@ interface EC2Service$ { options?: HttpHandlerOptions, ): Effect.Effect< ModifyVpcAttributeCommandOutput, - Cause.TimeoutException | SdkError | EC2ServiceError + Cause.TimeoutError | SdkError | EC2ServiceError >; /** @@ -10250,7 +10355,7 @@ interface EC2Service$ { options?: HttpHandlerOptions, ): Effect.Effect< ModifyVpcBlockPublicAccessExclusionCommandOutput, - Cause.TimeoutException | SdkError | EC2ServiceError + Cause.TimeoutError | SdkError | EC2ServiceError >; /** @@ -10261,7 +10366,7 @@ interface EC2Service$ { options?: HttpHandlerOptions, ): Effect.Effect< ModifyVpcBlockPublicAccessOptionsCommandOutput, - Cause.TimeoutException | SdkError | EC2ServiceError + Cause.TimeoutError | SdkError | EC2ServiceError >; /** @@ -10272,7 +10377,7 @@ interface EC2Service$ { options?: HttpHandlerOptions, ): Effect.Effect< ModifyVpcEncryptionControlCommandOutput, - Cause.TimeoutException | SdkError | EC2ServiceError + Cause.TimeoutError | SdkError | EC2ServiceError >; /** @@ -10283,7 +10388,7 @@ interface EC2Service$ { options?: HttpHandlerOptions, ): Effect.Effect< ModifyVpcEndpointCommandOutput, - Cause.TimeoutException | SdkError | EC2ServiceError + Cause.TimeoutError | SdkError | EC2ServiceError >; /** @@ -10294,7 +10399,7 @@ interface EC2Service$ { options?: HttpHandlerOptions, ): Effect.Effect< ModifyVpcEndpointConnectionNotificationCommandOutput, - Cause.TimeoutException | SdkError | EC2ServiceError + Cause.TimeoutError | SdkError | EC2ServiceError >; /** @@ -10305,7 +10410,7 @@ interface EC2Service$ { options?: HttpHandlerOptions, ): Effect.Effect< ModifyVpcEndpointServiceConfigurationCommandOutput, - Cause.TimeoutException | SdkError | EC2ServiceError + Cause.TimeoutError | SdkError | EC2ServiceError >; /** @@ -10316,7 +10421,7 @@ interface EC2Service$ { options?: HttpHandlerOptions, ): Effect.Effect< ModifyVpcEndpointServicePayerResponsibilityCommandOutput, - Cause.TimeoutException | SdkError | EC2ServiceError + Cause.TimeoutError | SdkError | EC2ServiceError >; /** @@ -10327,7 +10432,7 @@ interface EC2Service$ { options?: HttpHandlerOptions, ): Effect.Effect< ModifyVpcEndpointServicePermissionsCommandOutput, - Cause.TimeoutException | SdkError | EC2ServiceError + Cause.TimeoutError | SdkError | EC2ServiceError >; /** @@ -10338,7 +10443,7 @@ interface EC2Service$ { options?: HttpHandlerOptions, ): Effect.Effect< ModifyVpcPeeringConnectionOptionsCommandOutput, - Cause.TimeoutException | SdkError | EC2ServiceError + Cause.TimeoutError | SdkError | EC2ServiceError >; /** @@ -10349,7 +10454,7 @@ interface EC2Service$ { options?: HttpHandlerOptions, ): Effect.Effect< ModifyVpcTenancyCommandOutput, - Cause.TimeoutException | SdkError | EC2ServiceError + Cause.TimeoutError | SdkError | EC2ServiceError >; /** @@ -10360,7 +10465,7 @@ interface EC2Service$ { options?: HttpHandlerOptions, ): Effect.Effect< ModifyVpnConnectionCommandOutput, - Cause.TimeoutException | SdkError | EC2ServiceError + Cause.TimeoutError | SdkError | EC2ServiceError >; /** @@ -10371,7 +10476,7 @@ interface EC2Service$ { options?: HttpHandlerOptions, ): Effect.Effect< ModifyVpnConnectionOptionsCommandOutput, - Cause.TimeoutException | SdkError | EC2ServiceError + Cause.TimeoutError | SdkError | EC2ServiceError >; /** @@ -10382,7 +10487,7 @@ interface EC2Service$ { options?: HttpHandlerOptions, ): Effect.Effect< ModifyVpnTunnelCertificateCommandOutput, - Cause.TimeoutException | SdkError | EC2ServiceError + Cause.TimeoutError | SdkError | EC2ServiceError >; /** @@ -10393,7 +10498,7 @@ interface EC2Service$ { options?: HttpHandlerOptions, ): Effect.Effect< ModifyVpnTunnelOptionsCommandOutput, - Cause.TimeoutException | SdkError | EC2ServiceError + Cause.TimeoutError | SdkError | EC2ServiceError >; /** @@ -10404,7 +10509,7 @@ interface EC2Service$ { options?: HttpHandlerOptions, ): Effect.Effect< MonitorInstancesCommandOutput, - Cause.TimeoutException | SdkError | EC2ServiceError + Cause.TimeoutError | SdkError | EC2ServiceError >; /** @@ -10415,7 +10520,7 @@ interface EC2Service$ { options?: HttpHandlerOptions, ): Effect.Effect< MoveAddressToVpcCommandOutput, - Cause.TimeoutException | SdkError | EC2ServiceError + Cause.TimeoutError | SdkError | EC2ServiceError >; /** @@ -10426,7 +10531,7 @@ interface EC2Service$ { options?: HttpHandlerOptions, ): Effect.Effect< MoveByoipCidrToIpamCommandOutput, - Cause.TimeoutException | SdkError | EC2ServiceError + Cause.TimeoutError | SdkError | EC2ServiceError >; /** @@ -10437,7 +10542,7 @@ interface EC2Service$ { options?: HttpHandlerOptions, ): Effect.Effect< MoveCapacityReservationInstancesCommandOutput, - Cause.TimeoutException | SdkError | EC2ServiceError + Cause.TimeoutError | SdkError | EC2ServiceError >; /** @@ -10448,7 +10553,7 @@ interface EC2Service$ { options?: HttpHandlerOptions, ): Effect.Effect< ProvisionByoipCidrCommandOutput, - Cause.TimeoutException | SdkError | EC2ServiceError + Cause.TimeoutError | SdkError | EC2ServiceError >; /** @@ -10459,7 +10564,7 @@ interface EC2Service$ { options?: HttpHandlerOptions, ): Effect.Effect< ProvisionIpamByoasnCommandOutput, - Cause.TimeoutException | SdkError | EC2ServiceError + Cause.TimeoutError | SdkError | EC2ServiceError >; /** @@ -10470,7 +10575,7 @@ interface EC2Service$ { options?: HttpHandlerOptions, ): Effect.Effect< ProvisionIpamPoolCidrCommandOutput, - Cause.TimeoutException | SdkError | EC2ServiceError + Cause.TimeoutError | SdkError | EC2ServiceError >; /** @@ -10481,7 +10586,7 @@ interface EC2Service$ { options?: HttpHandlerOptions, ): Effect.Effect< ProvisionPublicIpv4PoolCidrCommandOutput, - Cause.TimeoutException | SdkError | EC2ServiceError + Cause.TimeoutError | SdkError | EC2ServiceError >; /** @@ -10492,7 +10597,7 @@ interface EC2Service$ { options?: HttpHandlerOptions, ): Effect.Effect< PurchaseCapacityBlockCommandOutput, - Cause.TimeoutException | SdkError | EC2ServiceError + Cause.TimeoutError | SdkError | EC2ServiceError >; /** @@ -10503,7 +10608,7 @@ interface EC2Service$ { options?: HttpHandlerOptions, ): Effect.Effect< PurchaseCapacityBlockExtensionCommandOutput, - Cause.TimeoutException | SdkError | EC2ServiceError + Cause.TimeoutError | SdkError | EC2ServiceError >; /** @@ -10514,7 +10619,7 @@ interface EC2Service$ { options?: HttpHandlerOptions, ): Effect.Effect< PurchaseHostReservationCommandOutput, - Cause.TimeoutException | SdkError | EC2ServiceError + Cause.TimeoutError | SdkError | EC2ServiceError >; /** @@ -10525,7 +10630,7 @@ interface EC2Service$ { options?: HttpHandlerOptions, ): Effect.Effect< PurchaseReservedInstancesOfferingCommandOutput, - Cause.TimeoutException | SdkError | EC2ServiceError + Cause.TimeoutError | SdkError | EC2ServiceError >; /** @@ -10536,7 +10641,7 @@ interface EC2Service$ { options?: HttpHandlerOptions, ): Effect.Effect< PurchaseScheduledInstancesCommandOutput, - Cause.TimeoutException | SdkError | EC2ServiceError + Cause.TimeoutError | SdkError | EC2ServiceError >; /** @@ -10547,7 +10652,7 @@ interface EC2Service$ { options?: HttpHandlerOptions, ): Effect.Effect< RebootInstancesCommandOutput, - Cause.TimeoutException | SdkError | EC2ServiceError + Cause.TimeoutError | SdkError | EC2ServiceError >; /** @@ -10558,7 +10663,7 @@ interface EC2Service$ { options?: HttpHandlerOptions, ): Effect.Effect< RegisterImageCommandOutput, - Cause.TimeoutException | SdkError | EC2ServiceError + Cause.TimeoutError | SdkError | EC2ServiceError >; /** @@ -10569,7 +10674,7 @@ interface EC2Service$ { options?: HttpHandlerOptions, ): Effect.Effect< RegisterInstanceEventNotificationAttributesCommandOutput, - Cause.TimeoutException | SdkError | EC2ServiceError + Cause.TimeoutError | SdkError | EC2ServiceError >; /** @@ -10580,7 +10685,7 @@ interface EC2Service$ { options?: HttpHandlerOptions, ): Effect.Effect< RegisterTransitGatewayMulticastGroupMembersCommandOutput, - Cause.TimeoutException | SdkError | EC2ServiceError + Cause.TimeoutError | SdkError | EC2ServiceError >; /** @@ -10591,7 +10696,7 @@ interface EC2Service$ { options?: HttpHandlerOptions, ): Effect.Effect< RegisterTransitGatewayMulticastGroupSourcesCommandOutput, - Cause.TimeoutException | SdkError | EC2ServiceError + Cause.TimeoutError | SdkError | EC2ServiceError >; /** @@ -10602,7 +10707,7 @@ interface EC2Service$ { options?: HttpHandlerOptions, ): Effect.Effect< RejectCapacityReservationBillingOwnershipCommandOutput, - Cause.TimeoutException | SdkError | EC2ServiceError + Cause.TimeoutError | SdkError | EC2ServiceError >; /** @@ -10613,7 +10718,7 @@ interface EC2Service$ { options?: HttpHandlerOptions, ): Effect.Effect< RejectTransitGatewayMulticastDomainAssociationsCommandOutput, - Cause.TimeoutException | SdkError | EC2ServiceError + Cause.TimeoutError | SdkError | EC2ServiceError >; /** @@ -10624,7 +10729,7 @@ interface EC2Service$ { options?: HttpHandlerOptions, ): Effect.Effect< RejectTransitGatewayPeeringAttachmentCommandOutput, - Cause.TimeoutException | SdkError | EC2ServiceError + Cause.TimeoutError | SdkError | EC2ServiceError >; /** @@ -10635,7 +10740,7 @@ interface EC2Service$ { options?: HttpHandlerOptions, ): Effect.Effect< RejectTransitGatewayVpcAttachmentCommandOutput, - Cause.TimeoutException | SdkError | EC2ServiceError + Cause.TimeoutError | SdkError | EC2ServiceError >; /** @@ -10646,7 +10751,7 @@ interface EC2Service$ { options?: HttpHandlerOptions, ): Effect.Effect< RejectVpcEndpointConnectionsCommandOutput, - Cause.TimeoutException | SdkError | EC2ServiceError + Cause.TimeoutError | SdkError | EC2ServiceError >; /** @@ -10657,7 +10762,7 @@ interface EC2Service$ { options?: HttpHandlerOptions, ): Effect.Effect< RejectVpcPeeringConnectionCommandOutput, - Cause.TimeoutException | SdkError | EC2ServiceError + Cause.TimeoutError | SdkError | EC2ServiceError >; /** @@ -10668,7 +10773,7 @@ interface EC2Service$ { options?: HttpHandlerOptions, ): Effect.Effect< ReleaseAddressCommandOutput, - Cause.TimeoutException | SdkError | EC2ServiceError + Cause.TimeoutError | SdkError | EC2ServiceError >; /** @@ -10679,7 +10784,7 @@ interface EC2Service$ { options?: HttpHandlerOptions, ): Effect.Effect< ReleaseHostsCommandOutput, - Cause.TimeoutException | SdkError | EC2ServiceError + Cause.TimeoutError | SdkError | EC2ServiceError >; /** @@ -10690,7 +10795,7 @@ interface EC2Service$ { options?: HttpHandlerOptions, ): Effect.Effect< ReleaseIpamPoolAllocationCommandOutput, - Cause.TimeoutException | SdkError | EC2ServiceError + Cause.TimeoutError | SdkError | EC2ServiceError >; /** @@ -10701,7 +10806,7 @@ interface EC2Service$ { options?: HttpHandlerOptions, ): Effect.Effect< ReplaceIamInstanceProfileAssociationCommandOutput, - Cause.TimeoutException | SdkError | EC2ServiceError + Cause.TimeoutError | SdkError | EC2ServiceError >; /** @@ -10712,7 +10817,7 @@ interface EC2Service$ { options?: HttpHandlerOptions, ): Effect.Effect< ReplaceImageCriteriaInAllowedImagesSettingsCommandOutput, - Cause.TimeoutException | SdkError | EC2ServiceError + Cause.TimeoutError | SdkError | EC2ServiceError >; /** @@ -10723,7 +10828,7 @@ interface EC2Service$ { options?: HttpHandlerOptions, ): Effect.Effect< ReplaceNetworkAclAssociationCommandOutput, - Cause.TimeoutException | SdkError | EC2ServiceError + Cause.TimeoutError | SdkError | EC2ServiceError >; /** @@ -10734,7 +10839,7 @@ interface EC2Service$ { options?: HttpHandlerOptions, ): Effect.Effect< ReplaceNetworkAclEntryCommandOutput, - Cause.TimeoutException | SdkError | EC2ServiceError + Cause.TimeoutError | SdkError | EC2ServiceError >; /** @@ -10745,7 +10850,7 @@ interface EC2Service$ { options?: HttpHandlerOptions, ): Effect.Effect< ReplaceRouteCommandOutput, - Cause.TimeoutException | SdkError | EC2ServiceError + Cause.TimeoutError | SdkError | EC2ServiceError >; /** @@ -10756,7 +10861,7 @@ interface EC2Service$ { options?: HttpHandlerOptions, ): Effect.Effect< ReplaceRouteTableAssociationCommandOutput, - Cause.TimeoutException | SdkError | EC2ServiceError + Cause.TimeoutError | SdkError | EC2ServiceError >; /** @@ -10767,7 +10872,7 @@ interface EC2Service$ { options?: HttpHandlerOptions, ): Effect.Effect< ReplaceTransitGatewayRouteCommandOutput, - Cause.TimeoutException | SdkError | EC2ServiceError + Cause.TimeoutError | SdkError | EC2ServiceError >; /** @@ -10778,7 +10883,7 @@ interface EC2Service$ { options?: HttpHandlerOptions, ): Effect.Effect< ReplaceVpnTunnelCommandOutput, - Cause.TimeoutException | SdkError | EC2ServiceError + Cause.TimeoutError | SdkError | EC2ServiceError >; /** @@ -10789,7 +10894,7 @@ interface EC2Service$ { options?: HttpHandlerOptions, ): Effect.Effect< ReportInstanceStatusCommandOutput, - Cause.TimeoutException | SdkError | EC2ServiceError + Cause.TimeoutError | SdkError | EC2ServiceError >; /** @@ -10800,7 +10905,7 @@ interface EC2Service$ { options?: HttpHandlerOptions, ): Effect.Effect< RequestSpotFleetCommandOutput, - Cause.TimeoutException | SdkError | EC2ServiceError + Cause.TimeoutError | SdkError | EC2ServiceError >; /** @@ -10811,7 +10916,7 @@ interface EC2Service$ { options?: HttpHandlerOptions, ): Effect.Effect< RequestSpotInstancesCommandOutput, - Cause.TimeoutException | SdkError | EC2ServiceError + Cause.TimeoutError | SdkError | EC2ServiceError >; /** @@ -10822,7 +10927,7 @@ interface EC2Service$ { options?: HttpHandlerOptions, ): Effect.Effect< ResetAddressAttributeCommandOutput, - Cause.TimeoutException | SdkError | EC2ServiceError + Cause.TimeoutError | SdkError | EC2ServiceError >; /** @@ -10833,7 +10938,7 @@ interface EC2Service$ { options?: HttpHandlerOptions, ): Effect.Effect< ResetEbsDefaultKmsKeyIdCommandOutput, - Cause.TimeoutException | SdkError | EC2ServiceError + Cause.TimeoutError | SdkError | EC2ServiceError >; /** @@ -10844,7 +10949,7 @@ interface EC2Service$ { options?: HttpHandlerOptions, ): Effect.Effect< ResetFpgaImageAttributeCommandOutput, - Cause.TimeoutException | SdkError | EC2ServiceError + Cause.TimeoutError | SdkError | EC2ServiceError >; /** @@ -10855,7 +10960,7 @@ interface EC2Service$ { options?: HttpHandlerOptions, ): Effect.Effect< ResetImageAttributeCommandOutput, - Cause.TimeoutException | SdkError | EC2ServiceError + Cause.TimeoutError | SdkError | EC2ServiceError >; /** @@ -10866,7 +10971,7 @@ interface EC2Service$ { options?: HttpHandlerOptions, ): Effect.Effect< ResetInstanceAttributeCommandOutput, - Cause.TimeoutException | SdkError | EC2ServiceError + Cause.TimeoutError | SdkError | EC2ServiceError >; /** @@ -10877,7 +10982,7 @@ interface EC2Service$ { options?: HttpHandlerOptions, ): Effect.Effect< ResetNetworkInterfaceAttributeCommandOutput, - Cause.TimeoutException | SdkError | EC2ServiceError + Cause.TimeoutError | SdkError | EC2ServiceError >; /** @@ -10888,7 +10993,7 @@ interface EC2Service$ { options?: HttpHandlerOptions, ): Effect.Effect< ResetSnapshotAttributeCommandOutput, - Cause.TimeoutException | SdkError | EC2ServiceError + Cause.TimeoutError | SdkError | EC2ServiceError >; /** @@ -10899,7 +11004,7 @@ interface EC2Service$ { options?: HttpHandlerOptions, ): Effect.Effect< RestoreAddressToClassicCommandOutput, - Cause.TimeoutException | SdkError | EC2ServiceError + Cause.TimeoutError | SdkError | EC2ServiceError >; /** @@ -10910,7 +11015,7 @@ interface EC2Service$ { options?: HttpHandlerOptions, ): Effect.Effect< RestoreImageFromRecycleBinCommandOutput, - Cause.TimeoutException | SdkError | EC2ServiceError + Cause.TimeoutError | SdkError | EC2ServiceError >; /** @@ -10921,7 +11026,7 @@ interface EC2Service$ { options?: HttpHandlerOptions, ): Effect.Effect< RestoreManagedPrefixListVersionCommandOutput, - Cause.TimeoutException | SdkError | EC2ServiceError + Cause.TimeoutError | SdkError | EC2ServiceError >; /** @@ -10932,7 +11037,7 @@ interface EC2Service$ { options?: HttpHandlerOptions, ): Effect.Effect< RestoreSnapshotFromRecycleBinCommandOutput, - Cause.TimeoutException | SdkError | EC2ServiceError + Cause.TimeoutError | SdkError | EC2ServiceError >; /** @@ -10943,7 +11048,7 @@ interface EC2Service$ { options?: HttpHandlerOptions, ): Effect.Effect< RestoreSnapshotTierCommandOutput, - Cause.TimeoutException | SdkError | EC2ServiceError + Cause.TimeoutError | SdkError | EC2ServiceError >; /** @@ -10954,7 +11059,7 @@ interface EC2Service$ { options?: HttpHandlerOptions, ): Effect.Effect< RestoreVolumeFromRecycleBinCommandOutput, - Cause.TimeoutException | SdkError | EC2ServiceError + Cause.TimeoutError | SdkError | EC2ServiceError >; /** @@ -10965,7 +11070,7 @@ interface EC2Service$ { options?: HttpHandlerOptions, ): Effect.Effect< RevokeClientVpnIngressCommandOutput, - Cause.TimeoutException | SdkError | EC2ServiceError + Cause.TimeoutError | SdkError | EC2ServiceError >; /** @@ -10976,7 +11081,7 @@ interface EC2Service$ { options?: HttpHandlerOptions, ): Effect.Effect< RevokeSecurityGroupEgressCommandOutput, - Cause.TimeoutException | SdkError | EC2ServiceError + Cause.TimeoutError | SdkError | EC2ServiceError >; /** @@ -10987,7 +11092,7 @@ interface EC2Service$ { options?: HttpHandlerOptions, ): Effect.Effect< RevokeSecurityGroupIngressCommandOutput, - Cause.TimeoutException | SdkError | EC2ServiceError + Cause.TimeoutError | SdkError | EC2ServiceError >; /** @@ -10998,7 +11103,7 @@ interface EC2Service$ { options?: HttpHandlerOptions, ): Effect.Effect< RunInstancesCommandOutput, - Cause.TimeoutException | SdkError | EC2ServiceError + Cause.TimeoutError | SdkError | EC2ServiceError >; /** @@ -11009,7 +11114,7 @@ interface EC2Service$ { options?: HttpHandlerOptions, ): Effect.Effect< RunScheduledInstancesCommandOutput, - Cause.TimeoutException | SdkError | EC2ServiceError + Cause.TimeoutError | SdkError | EC2ServiceError >; /** @@ -11020,7 +11125,7 @@ interface EC2Service$ { options?: HttpHandlerOptions, ): Effect.Effect< SearchLocalGatewayRoutesCommandOutput, - Cause.TimeoutException | SdkError | EC2ServiceError + Cause.TimeoutError | SdkError | EC2ServiceError >; /** @@ -11031,7 +11136,7 @@ interface EC2Service$ { options?: HttpHandlerOptions, ): Effect.Effect< SearchTransitGatewayMulticastGroupsCommandOutput, - Cause.TimeoutException | SdkError | EC2ServiceError + Cause.TimeoutError | SdkError | EC2ServiceError >; /** @@ -11042,7 +11147,7 @@ interface EC2Service$ { options?: HttpHandlerOptions, ): Effect.Effect< SearchTransitGatewayRoutesCommandOutput, - Cause.TimeoutException | SdkError | EC2ServiceError + Cause.TimeoutError | SdkError | EC2ServiceError >; /** @@ -11053,7 +11158,7 @@ interface EC2Service$ { options?: HttpHandlerOptions, ): Effect.Effect< SendDiagnosticInterruptCommandOutput, - Cause.TimeoutException | SdkError | EC2ServiceError + Cause.TimeoutError | SdkError | EC2ServiceError >; /** @@ -11064,7 +11169,7 @@ interface EC2Service$ { options?: HttpHandlerOptions, ): Effect.Effect< StartDeclarativePoliciesReportCommandOutput, - Cause.TimeoutException | SdkError | EC2ServiceError + Cause.TimeoutError | SdkError | EC2ServiceError >; /** @@ -11075,7 +11180,7 @@ interface EC2Service$ { options?: HttpHandlerOptions, ): Effect.Effect< StartInstancesCommandOutput, - Cause.TimeoutException | SdkError | EC2ServiceError + Cause.TimeoutError | SdkError | EC2ServiceError >; /** @@ -11086,7 +11191,7 @@ interface EC2Service$ { options?: HttpHandlerOptions, ): Effect.Effect< StartNetworkInsightsAccessScopeAnalysisCommandOutput, - Cause.TimeoutException | SdkError | EC2ServiceError + Cause.TimeoutError | SdkError | EC2ServiceError >; /** @@ -11097,7 +11202,7 @@ interface EC2Service$ { options?: HttpHandlerOptions, ): Effect.Effect< StartNetworkInsightsAnalysisCommandOutput, - Cause.TimeoutException | SdkError | EC2ServiceError + Cause.TimeoutError | SdkError | EC2ServiceError >; /** @@ -11108,7 +11213,7 @@ interface EC2Service$ { options?: HttpHandlerOptions, ): Effect.Effect< StartVpcEndpointServicePrivateDnsVerificationCommandOutput, - Cause.TimeoutException | SdkError | EC2ServiceError + Cause.TimeoutError | SdkError | EC2ServiceError >; /** @@ -11119,7 +11224,7 @@ interface EC2Service$ { options?: HttpHandlerOptions, ): Effect.Effect< StopInstancesCommandOutput, - Cause.TimeoutException | SdkError | EC2ServiceError + Cause.TimeoutError | SdkError | EC2ServiceError >; /** @@ -11130,7 +11235,7 @@ interface EC2Service$ { options?: HttpHandlerOptions, ): Effect.Effect< TerminateClientVpnConnectionsCommandOutput, - Cause.TimeoutException | SdkError | EC2ServiceError + Cause.TimeoutError | SdkError | EC2ServiceError >; /** @@ -11141,7 +11246,7 @@ interface EC2Service$ { options?: HttpHandlerOptions, ): Effect.Effect< TerminateInstancesCommandOutput, - Cause.TimeoutException | SdkError | EC2ServiceError + Cause.TimeoutError | SdkError | EC2ServiceError >; /** @@ -11152,7 +11257,7 @@ interface EC2Service$ { options?: HttpHandlerOptions, ): Effect.Effect< UnassignIpv6AddressesCommandOutput, - Cause.TimeoutException | SdkError | EC2ServiceError + Cause.TimeoutError | SdkError | EC2ServiceError >; /** @@ -11163,7 +11268,7 @@ interface EC2Service$ { options?: HttpHandlerOptions, ): Effect.Effect< UnassignPrivateIpAddressesCommandOutput, - Cause.TimeoutException | SdkError | EC2ServiceError + Cause.TimeoutError | SdkError | EC2ServiceError >; /** @@ -11174,7 +11279,7 @@ interface EC2Service$ { options?: HttpHandlerOptions, ): Effect.Effect< UnassignPrivateNatGatewayAddressCommandOutput, - Cause.TimeoutException | SdkError | EC2ServiceError + Cause.TimeoutError | SdkError | EC2ServiceError >; /** @@ -11185,7 +11290,7 @@ interface EC2Service$ { options?: HttpHandlerOptions, ): Effect.Effect< UnlockSnapshotCommandOutput, - Cause.TimeoutException | SdkError | EC2ServiceError + Cause.TimeoutError | SdkError | EC2ServiceError >; /** @@ -11196,7 +11301,7 @@ interface EC2Service$ { options?: HttpHandlerOptions, ): Effect.Effect< UnmonitorInstancesCommandOutput, - Cause.TimeoutException | SdkError | EC2ServiceError + Cause.TimeoutError | SdkError | EC2ServiceError >; /** @@ -11207,7 +11312,7 @@ interface EC2Service$ { options?: HttpHandlerOptions, ): Effect.Effect< UpdateCapacityManagerOrganizationsAccessCommandOutput, - Cause.TimeoutException | SdkError | EC2ServiceError + Cause.TimeoutError | SdkError | EC2ServiceError >; /** @@ -11218,7 +11323,7 @@ interface EC2Service$ { options?: HttpHandlerOptions, ): Effect.Effect< UpdateInterruptibleCapacityReservationAllocationCommandOutput, - Cause.TimeoutException | SdkError | EC2ServiceError + Cause.TimeoutError | SdkError | EC2ServiceError >; /** @@ -11229,7 +11334,7 @@ interface EC2Service$ { options?: HttpHandlerOptions, ): Effect.Effect< UpdateSecurityGroupRuleDescriptionsEgressCommandOutput, - Cause.TimeoutException | SdkError | EC2ServiceError + Cause.TimeoutError | SdkError | EC2ServiceError >; /** @@ -11240,7 +11345,7 @@ interface EC2Service$ { options?: HttpHandlerOptions, ): Effect.Effect< UpdateSecurityGroupRuleDescriptionsIngressCommandOutput, - Cause.TimeoutException | SdkError | EC2ServiceError + Cause.TimeoutError | SdkError | EC2ServiceError >; /** @@ -11251,7 +11356,7 @@ interface EC2Service$ { options?: HttpHandlerOptions, ): Effect.Effect< WithdrawByoipCidrCommandOutput, - Cause.TimeoutException | SdkError | EC2ServiceError + Cause.TimeoutError | SdkError | EC2ServiceError >; } @@ -11275,10 +11380,10 @@ export const makeEC2Service = Effect.gen(function*() { * @since 1.0.0 * @category models */ -export class EC2Service extends Effect.Tag("@effect-aws/client-ec2/EC2Service")< +export class EC2Service extends ServiceMap.Service< EC2Service, EC2Service$ ->() { +>()("@effect-aws/client-ec2/EC2Service") { static readonly defaultLayer = Layer.effect(this, makeEC2Service).pipe(Layer.provide(Instance.layer)); static readonly layer = (config: EC2Service.Config) => Layer.effect(this, makeEC2Service).pipe( diff --git a/packages/client-ec2/src/EC2ServiceConfig.ts b/packages/client-ec2/src/EC2ServiceConfig.ts index e0640039..2c09228c 100644 --- a/packages/client-ec2/src/EC2ServiceConfig.ts +++ b/packages/client-ec2/src/EC2ServiceConfig.ts @@ -3,18 +3,17 @@ */ import type { EC2ClientConfig } from "@aws-sdk/client-ec2"; import { ServiceLogger } from "@effect-aws/commons"; -import { Effect, FiberRef, Layer } from "effect"; +import { Effect, Layer, ServiceMap } from "effect"; import { dual } from "effect/Function"; -import { globalValue } from "effect/GlobalValue"; import type { EC2Service } from "./EC2Service.js"; /** * @since 1.0.0 * @category ec2 service config */ -const currentEC2ServiceConfig = globalValue( +const currentEC2ServiceConfig = ServiceMap.Reference( "@effect-aws/client-ec2/currentEC2ServiceConfig", - () => FiberRef.unsafeMake({}), + { defaultValue: () => ({}) }, ); /** @@ -27,21 +26,21 @@ export const withEC2ServiceConfig: { } = dual( 2, (effect: Effect.Effect, config: EC2Service.Config): Effect.Effect => - Effect.locally(effect, currentEC2ServiceConfig, config), + Effect.provideService(effect, currentEC2ServiceConfig, config), ); /** * @since 1.0.0 * @category ec2 service config */ -export const setEC2ServiceConfig = (config: EC2Service.Config) => Layer.locallyScoped(currentEC2ServiceConfig, config); +export const setEC2ServiceConfig = (config: EC2Service.Config) => Layer.succeed(currentEC2ServiceConfig, config); /** * @since 1.0.0 * @category adapters */ export const toEC2ClientConfig: Effect.Effect = Effect.gen(function*() { - const { logger: serviceLogger, ...config } = yield* FiberRef.get(currentEC2ServiceConfig); + const { logger: serviceLogger, ...config } = yield* currentEC2ServiceConfig; const logger = serviceLogger === true ? yield* ServiceLogger.toClientLogger(ServiceLogger.defaultServiceLogger) diff --git a/packages/client-ec2/src/Errors.ts b/packages/client-ec2/src/Errors.ts index 974af906..7f835197 100644 --- a/packages/client-ec2/src/Errors.ts +++ b/packages/client-ec2/src/Errors.ts @@ -2,9 +2,10 @@ import type { EC2ServiceException } from "@aws-sdk/client-ec2"; import type { TaggedException } from "@effect-aws/commons"; import { Data } from "effect"; -export type EC2ServiceError = TaggedException< - EC2ServiceException & { name: "EC2ServiceError" } ->; -export const EC2ServiceError = Data.tagged("EC2ServiceError"); +export class EC2ServiceError extends Data.TaggedError("EC2ServiceError")< + TaggedException< + EC2ServiceException & { name: "EC2ServiceError" } + > +> {} export type SdkError = TaggedException; diff --git a/packages/client-ec2/test/EC2.test.ts b/packages/client-ec2/test/EC2.test.ts index abf53a1f..12c15fd7 100644 --- a/packages/client-ec2/test/EC2.test.ts +++ b/packages/client-ec2/test/EC2.test.ts @@ -21,7 +21,7 @@ describe("EC2ClientImpl", () => { const args = {} as unknown as AcceptAddressTransferCommandInput; - const program = EC2.acceptAddressTransfer(args); + const program = EC2.use((svc) => svc.acceptAddressTransfer(args)); const result = await pipe( program, @@ -41,7 +41,7 @@ describe("EC2ClientImpl", () => { const args = {} as unknown as AcceptAddressTransferCommandInput; - const program = EC2.acceptAddressTransfer(args); + const program = EC2.use((svc) => svc.acceptAddressTransfer(args)); const result = await pipe( program, @@ -64,7 +64,7 @@ describe("EC2ClientImpl", () => { const args = {} as unknown as AcceptAddressTransferCommandInput; - const program = EC2.acceptAddressTransfer(args); + const program = EC2.use((svc) => svc.acceptAddressTransfer(args)); const result = await pipe( program, @@ -88,7 +88,7 @@ describe("EC2ClientImpl", () => { const args = {} as unknown as AcceptAddressTransferCommandInput; - const program = EC2.acceptAddressTransfer(args); + const program = EC2.use((svc) => svc.acceptAddressTransfer(args)); const result = await pipe( program, @@ -116,7 +116,7 @@ describe("EC2ClientImpl", () => { const args = {} as unknown as AcceptAddressTransferCommandInput; - const program = EC2.acceptAddressTransfer(args); + const program = EC2.use((svc) => svc.acceptAddressTransfer(args)); const result = await pipe( program, @@ -126,7 +126,7 @@ describe("EC2ClientImpl", () => { expect(result).toEqual( Exit.fail( - SdkError({ + new SdkError({ ...new Error("test"), name: "SdkError", message: "test", diff --git a/packages/client-ecr/.projen/deps.json b/packages/client-ecr/.projen/deps.json index 14e03199..3b5d89e7 100644 --- a/packages/client-ecr/.projen/deps.json +++ b/packages/client-ecr/.projen/deps.json @@ -7,6 +7,7 @@ }, { "name": "effect", + "version": "4.0.0-beta.8", "type": "build" }, { @@ -16,7 +17,7 @@ }, { "name": "effect", - "version": ">=3.0.4 <4.0.0", + "version": ">=4.0.0 <5.0.0", "type": "peer" }, { diff --git a/packages/client-ecr/README.md b/packages/client-ecr/README.md index 9a3335e6..fbac7042 100644 --- a/packages/client-ecr/README.md +++ b/packages/client-ecr/README.md @@ -16,7 +16,7 @@ With default ECRClient instance: ```typescript import { ECR } from "@effect-aws/client-ecr"; -const program = ECR.describeRepositories(args); +const program = ECR.use((svc) => svc.describeRepositories(args)); const result = pipe( program, @@ -30,7 +30,7 @@ With custom ECRClient instance: ```typescript import { ECR } from "@effect-aws/client-ecr"; -const program = ECR.describeRepositories(args); +const program = ECR.use((svc) => svc.describeRepositories(args)); const result = await pipe( program, @@ -46,7 +46,7 @@ With custom ECRClient configuration: ```typescript import { ECR } from "@effect-aws/client-ecr"; -const program = ECR.describeRepositories(args); +const program = ECR.use((svc) => svc.describeRepositories(args)); const result = await pipe( program, diff --git a/packages/client-ecr/package.json b/packages/client-ecr/package.json index f0eb2f55..55a24c9a 100644 --- a/packages/client-ecr/package.json +++ b/packages/client-ecr/package.json @@ -26,11 +26,11 @@ }, "devDependencies": { "@types/node": "ts5.4", - "effect": "^3.16.4", + "effect": "4.0.0-beta.8", "typescript": "^5.4.2" }, "peerDependencies": { - "effect": ">=3.0.4 <4.0.0" + "effect": ">=4.0.0 <5.0.0" }, "dependencies": { "@aws-sdk/client-ecr": "^3", diff --git a/packages/client-ecr/src/ECRClientInstance.ts b/packages/client-ecr/src/ECRClientInstance.ts index fcf4eaa7..cdfc3669 100644 --- a/packages/client-ecr/src/ECRClientInstance.ts +++ b/packages/client-ecr/src/ECRClientInstance.ts @@ -2,16 +2,16 @@ * @since 1.0.0 */ import { ECRClient } from "@aws-sdk/client-ecr"; -import { Context, Effect, Layer } from "effect"; +import { Effect, Layer, ServiceMap } from "effect"; import * as ECRServiceConfig from "./ECRServiceConfig.js"; /** * @since 1.0.0 * @category tags */ -export class ECRClientInstance extends Context.Tag( +export class ECRClientInstance extends ServiceMap.Service()( "@effect-aws/client-ecr/ECRClientInstance", -)() {} +) {} /** * @since 1.0.0 @@ -30,4 +30,4 @@ export const make = Effect.flatMap( * @since 1.0.0 * @category layers */ -export const layer = Layer.scoped(ECRClientInstance, make); +export const layer = Layer.effect(ECRClientInstance, make); diff --git a/packages/client-ecr/src/ECRService.ts b/packages/client-ecr/src/ECRService.ts index 3c26d035..3329e9bb 100644 --- a/packages/client-ecr/src/ECRService.ts +++ b/packages/client-ecr/src/ECRService.ts @@ -182,7 +182,7 @@ import { import type { HttpHandlerOptions, ServiceLogger } from "@effect-aws/commons"; import { Service } from "@effect-aws/commons"; import type { Cause } from "effect"; -import { Effect, Layer } from "effect"; +import { Effect, Layer, ServiceMap } from "effect"; import * as Instance from "./ECRClientInstance.js"; import * as ECRServiceConfig from "./ECRServiceConfig.js"; import type { @@ -308,7 +308,7 @@ interface ECRService$ { options?: HttpHandlerOptions, ): Effect.Effect< BatchCheckLayerAvailabilityCommandOutput, - Cause.TimeoutException | SdkError | InvalidParameterError | RepositoryNotFoundError | ServerError + Cause.TimeoutError | SdkError | InvalidParameterError | RepositoryNotFoundError | ServerError >; /** @@ -319,7 +319,7 @@ interface ECRService$ { options?: HttpHandlerOptions, ): Effect.Effect< BatchDeleteImageCommandOutput, - Cause.TimeoutException | SdkError | InvalidParameterError | RepositoryNotFoundError | ServerError + Cause.TimeoutError | SdkError | InvalidParameterError | RepositoryNotFoundError | ServerError >; /** @@ -330,7 +330,7 @@ interface ECRService$ { options?: HttpHandlerOptions, ): Effect.Effect< BatchGetImageCommandOutput, - | Cause.TimeoutException + | Cause.TimeoutError | SdkError | InvalidParameterError | LimitExceededError @@ -347,7 +347,7 @@ interface ECRService$ { options?: HttpHandlerOptions, ): Effect.Effect< BatchGetRepositoryScanningConfigurationCommandOutput, - Cause.TimeoutException | SdkError | InvalidParameterError | RepositoryNotFoundError | ServerError | ValidationError + Cause.TimeoutError | SdkError | InvalidParameterError | RepositoryNotFoundError | ServerError | ValidationError >; /** @@ -358,7 +358,7 @@ interface ECRService$ { options?: HttpHandlerOptions, ): Effect.Effect< CompleteLayerUploadCommandOutput, - | Cause.TimeoutException + | Cause.TimeoutError | SdkError | EmptyUploadError | InvalidLayerError @@ -379,7 +379,7 @@ interface ECRService$ { options?: HttpHandlerOptions, ): Effect.Effect< CreatePullThroughCacheRuleCommandOutput, - | Cause.TimeoutException + | Cause.TimeoutError | SdkError | InvalidParameterError | LimitExceededError @@ -400,7 +400,7 @@ interface ECRService$ { options?: HttpHandlerOptions, ): Effect.Effect< CreateRepositoryCommandOutput, - | Cause.TimeoutException + | Cause.TimeoutError | SdkError | InvalidParameterError | InvalidTagParameterError @@ -419,7 +419,7 @@ interface ECRService$ { options?: HttpHandlerOptions, ): Effect.Effect< CreateRepositoryCreationTemplateCommandOutput, - | Cause.TimeoutException + | Cause.TimeoutError | SdkError | InvalidParameterError | LimitExceededError @@ -436,7 +436,7 @@ interface ECRService$ { options?: HttpHandlerOptions, ): Effect.Effect< DeleteLifecyclePolicyCommandOutput, - | Cause.TimeoutException + | Cause.TimeoutError | SdkError | InvalidParameterError | LifecyclePolicyNotFoundError @@ -453,7 +453,7 @@ interface ECRService$ { options?: HttpHandlerOptions, ): Effect.Effect< DeletePullThroughCacheRuleCommandOutput, - | Cause.TimeoutException + | Cause.TimeoutError | SdkError | InvalidParameterError | PullThroughCacheRuleNotFoundError @@ -469,12 +469,7 @@ interface ECRService$ { options?: HttpHandlerOptions, ): Effect.Effect< DeleteRegistryPolicyCommandOutput, - | Cause.TimeoutException - | SdkError - | InvalidParameterError - | RegistryPolicyNotFoundError - | ServerError - | ValidationError + Cause.TimeoutError | SdkError | InvalidParameterError | RegistryPolicyNotFoundError | ServerError | ValidationError >; /** @@ -485,7 +480,7 @@ interface ECRService$ { options?: HttpHandlerOptions, ): Effect.Effect< DeleteRepositoryCommandOutput, - | Cause.TimeoutException + | Cause.TimeoutError | SdkError | InvalidParameterError | KmsError @@ -502,7 +497,7 @@ interface ECRService$ { options?: HttpHandlerOptions, ): Effect.Effect< DeleteRepositoryCreationTemplateCommandOutput, - Cause.TimeoutException | SdkError | InvalidParameterError | ServerError | TemplateNotFoundError | ValidationError + Cause.TimeoutError | SdkError | InvalidParameterError | ServerError | TemplateNotFoundError | ValidationError >; /** @@ -513,7 +508,7 @@ interface ECRService$ { options?: HttpHandlerOptions, ): Effect.Effect< DeleteRepositoryPolicyCommandOutput, - | Cause.TimeoutException + | Cause.TimeoutError | SdkError | InvalidParameterError | RepositoryNotFoundError @@ -529,7 +524,7 @@ interface ECRService$ { options?: HttpHandlerOptions, ): Effect.Effect< DeleteSigningConfigurationCommandOutput, - Cause.TimeoutException | SdkError | ServerError | SigningConfigurationNotFoundError | ValidationError + Cause.TimeoutError | SdkError | ServerError | SigningConfigurationNotFoundError | ValidationError >; /** @@ -540,7 +535,7 @@ interface ECRService$ { options?: HttpHandlerOptions, ): Effect.Effect< DeregisterPullTimeUpdateExclusionCommandOutput, - | Cause.TimeoutException + | Cause.TimeoutError | SdkError | ExclusionNotFoundError | InvalidParameterError @@ -557,7 +552,7 @@ interface ECRService$ { options?: HttpHandlerOptions, ): Effect.Effect< DescribeImageReplicationStatusCommandOutput, - | Cause.TimeoutException + | Cause.TimeoutError | SdkError | ImageNotFoundError | InvalidParameterError @@ -574,7 +569,7 @@ interface ECRService$ { options?: HttpHandlerOptions, ): Effect.Effect< DescribeImageScanFindingsCommandOutput, - | Cause.TimeoutException + | Cause.TimeoutError | SdkError | ImageNotFoundError | InvalidParameterError @@ -592,7 +587,7 @@ interface ECRService$ { options?: HttpHandlerOptions, ): Effect.Effect< DescribeImageSigningStatusCommandOutput, - | Cause.TimeoutException + | Cause.TimeoutError | SdkError | ImageNotFoundError | InvalidParameterError @@ -609,12 +604,7 @@ interface ECRService$ { options?: HttpHandlerOptions, ): Effect.Effect< DescribeImagesCommandOutput, - | Cause.TimeoutException - | SdkError - | ImageNotFoundError - | InvalidParameterError - | RepositoryNotFoundError - | ServerError + Cause.TimeoutError | SdkError | ImageNotFoundError | InvalidParameterError | RepositoryNotFoundError | ServerError >; /** @@ -625,7 +615,7 @@ interface ECRService$ { options?: HttpHandlerOptions, ): Effect.Effect< DescribePullThroughCacheRulesCommandOutput, - | Cause.TimeoutException + | Cause.TimeoutError | SdkError | InvalidParameterError | PullThroughCacheRuleNotFoundError @@ -641,7 +631,7 @@ interface ECRService$ { options?: HttpHandlerOptions, ): Effect.Effect< DescribeRegistryCommandOutput, - Cause.TimeoutException | SdkError | InvalidParameterError | ServerError | ValidationError + Cause.TimeoutError | SdkError | InvalidParameterError | ServerError | ValidationError >; /** @@ -652,7 +642,7 @@ interface ECRService$ { options?: HttpHandlerOptions, ): Effect.Effect< DescribeRepositoriesCommandOutput, - Cause.TimeoutException | SdkError | InvalidParameterError | RepositoryNotFoundError | ServerError + Cause.TimeoutError | SdkError | InvalidParameterError | RepositoryNotFoundError | ServerError >; /** @@ -663,7 +653,7 @@ interface ECRService$ { options?: HttpHandlerOptions, ): Effect.Effect< DescribeRepositoryCreationTemplatesCommandOutput, - Cause.TimeoutException | SdkError | InvalidParameterError | ServerError | ValidationError + Cause.TimeoutError | SdkError | InvalidParameterError | ServerError | ValidationError >; /** @@ -674,7 +664,7 @@ interface ECRService$ { options?: HttpHandlerOptions, ): Effect.Effect< GetAccountSettingCommandOutput, - Cause.TimeoutException | SdkError | InvalidParameterError | ServerError | ValidationError + Cause.TimeoutError | SdkError | InvalidParameterError | ServerError | ValidationError >; /** @@ -685,7 +675,7 @@ interface ECRService$ { options?: HttpHandlerOptions, ): Effect.Effect< GetAuthorizationTokenCommandOutput, - Cause.TimeoutException | SdkError | InvalidParameterError | ServerError + Cause.TimeoutError | SdkError | InvalidParameterError | ServerError >; /** @@ -696,7 +686,7 @@ interface ECRService$ { options?: HttpHandlerOptions, ): Effect.Effect< GetDownloadUrlForLayerCommandOutput, - | Cause.TimeoutException + | Cause.TimeoutError | SdkError | InvalidParameterError | LayerInaccessibleError @@ -714,7 +704,7 @@ interface ECRService$ { options?: HttpHandlerOptions, ): Effect.Effect< GetLifecyclePolicyCommandOutput, - | Cause.TimeoutException + | Cause.TimeoutError | SdkError | InvalidParameterError | LifecyclePolicyNotFoundError @@ -731,7 +721,7 @@ interface ECRService$ { options?: HttpHandlerOptions, ): Effect.Effect< GetLifecyclePolicyPreviewCommandOutput, - | Cause.TimeoutException + | Cause.TimeoutError | SdkError | InvalidParameterError | LifecyclePolicyPreviewNotFoundError @@ -748,12 +738,7 @@ interface ECRService$ { options?: HttpHandlerOptions, ): Effect.Effect< GetRegistryPolicyCommandOutput, - | Cause.TimeoutException - | SdkError - | InvalidParameterError - | RegistryPolicyNotFoundError - | ServerError - | ValidationError + Cause.TimeoutError | SdkError | InvalidParameterError | RegistryPolicyNotFoundError | ServerError | ValidationError >; /** @@ -764,7 +749,7 @@ interface ECRService$ { options?: HttpHandlerOptions, ): Effect.Effect< GetRegistryScanningConfigurationCommandOutput, - Cause.TimeoutException | SdkError | InvalidParameterError | ServerError | ValidationError + Cause.TimeoutError | SdkError | InvalidParameterError | ServerError | ValidationError >; /** @@ -775,7 +760,7 @@ interface ECRService$ { options?: HttpHandlerOptions, ): Effect.Effect< GetRepositoryPolicyCommandOutput, - | Cause.TimeoutException + | Cause.TimeoutError | SdkError | InvalidParameterError | RepositoryNotFoundError @@ -791,7 +776,7 @@ interface ECRService$ { options?: HttpHandlerOptions, ): Effect.Effect< GetSigningConfigurationCommandOutput, - | Cause.TimeoutException + | Cause.TimeoutError | SdkError | InvalidParameterError | ServerError @@ -807,7 +792,7 @@ interface ECRService$ { options?: HttpHandlerOptions, ): Effect.Effect< InitiateLayerUploadCommandOutput, - Cause.TimeoutException | SdkError | InvalidParameterError | KmsError | RepositoryNotFoundError | ServerError + Cause.TimeoutError | SdkError | InvalidParameterError | KmsError | RepositoryNotFoundError | ServerError >; /** @@ -818,7 +803,7 @@ interface ECRService$ { options?: HttpHandlerOptions, ): Effect.Effect< ListImageReferrersCommandOutput, - Cause.TimeoutException | SdkError | InvalidParameterError | RepositoryNotFoundError | ServerError | ValidationError + Cause.TimeoutError | SdkError | InvalidParameterError | RepositoryNotFoundError | ServerError | ValidationError >; /** @@ -829,7 +814,7 @@ interface ECRService$ { options?: HttpHandlerOptions, ): Effect.Effect< ListImagesCommandOutput, - Cause.TimeoutException | SdkError | InvalidParameterError | RepositoryNotFoundError | ServerError + Cause.TimeoutError | SdkError | InvalidParameterError | RepositoryNotFoundError | ServerError >; /** @@ -840,7 +825,7 @@ interface ECRService$ { options?: HttpHandlerOptions, ): Effect.Effect< ListPullTimeUpdateExclusionsCommandOutput, - Cause.TimeoutException | SdkError | InvalidParameterError | LimitExceededError | ServerError | ValidationError + Cause.TimeoutError | SdkError | InvalidParameterError | LimitExceededError | ServerError | ValidationError >; /** @@ -851,7 +836,7 @@ interface ECRService$ { options?: HttpHandlerOptions, ): Effect.Effect< ListTagsForResourceCommandOutput, - Cause.TimeoutException | SdkError | InvalidParameterError | RepositoryNotFoundError | ServerError + Cause.TimeoutError | SdkError | InvalidParameterError | RepositoryNotFoundError | ServerError >; /** @@ -862,7 +847,7 @@ interface ECRService$ { options?: HttpHandlerOptions, ): Effect.Effect< PutAccountSettingCommandOutput, - Cause.TimeoutException | SdkError | InvalidParameterError | LimitExceededError | ServerError | ValidationError + Cause.TimeoutError | SdkError | InvalidParameterError | LimitExceededError | ServerError | ValidationError >; /** @@ -873,7 +858,7 @@ interface ECRService$ { options?: HttpHandlerOptions, ): Effect.Effect< PutImageCommandOutput, - | Cause.TimeoutException + | Cause.TimeoutError | SdkError | ImageAlreadyExistsError | ImageDigestDoesNotMatchError @@ -895,7 +880,7 @@ interface ECRService$ { options?: HttpHandlerOptions, ): Effect.Effect< PutImageScanningConfigurationCommandOutput, - Cause.TimeoutException | SdkError | InvalidParameterError | RepositoryNotFoundError | ServerError | ValidationError + Cause.TimeoutError | SdkError | InvalidParameterError | RepositoryNotFoundError | ServerError | ValidationError >; /** @@ -906,7 +891,7 @@ interface ECRService$ { options?: HttpHandlerOptions, ): Effect.Effect< PutImageTagMutabilityCommandOutput, - Cause.TimeoutException | SdkError | InvalidParameterError | RepositoryNotFoundError | ServerError + Cause.TimeoutError | SdkError | InvalidParameterError | RepositoryNotFoundError | ServerError >; /** @@ -917,7 +902,7 @@ interface ECRService$ { options?: HttpHandlerOptions, ): Effect.Effect< PutLifecyclePolicyCommandOutput, - Cause.TimeoutException | SdkError | InvalidParameterError | RepositoryNotFoundError | ServerError | ValidationError + Cause.TimeoutError | SdkError | InvalidParameterError | RepositoryNotFoundError | ServerError | ValidationError >; /** @@ -928,7 +913,7 @@ interface ECRService$ { options?: HttpHandlerOptions, ): Effect.Effect< PutRegistryPolicyCommandOutput, - Cause.TimeoutException | SdkError | InvalidParameterError | ServerError | ValidationError + Cause.TimeoutError | SdkError | InvalidParameterError | ServerError | ValidationError >; /** @@ -939,7 +924,7 @@ interface ECRService$ { options?: HttpHandlerOptions, ): Effect.Effect< PutRegistryScanningConfigurationCommandOutput, - | Cause.TimeoutException + | Cause.TimeoutError | SdkError | BlockedByOrganizationPolicyError | InvalidParameterError @@ -955,7 +940,7 @@ interface ECRService$ { options?: HttpHandlerOptions, ): Effect.Effect< PutReplicationConfigurationCommandOutput, - Cause.TimeoutException | SdkError | InvalidParameterError | ServerError | ValidationError + Cause.TimeoutError | SdkError | InvalidParameterError | ServerError | ValidationError >; /** @@ -966,7 +951,7 @@ interface ECRService$ { options?: HttpHandlerOptions, ): Effect.Effect< PutSigningConfigurationCommandOutput, - Cause.TimeoutException | SdkError | InvalidParameterError | ServerError | ValidationError + Cause.TimeoutError | SdkError | InvalidParameterError | ServerError | ValidationError >; /** @@ -977,7 +962,7 @@ interface ECRService$ { options?: HttpHandlerOptions, ): Effect.Effect< RegisterPullTimeUpdateExclusionCommandOutput, - | Cause.TimeoutException + | Cause.TimeoutError | SdkError | ExclusionAlreadyExistsError | InvalidParameterError @@ -994,7 +979,7 @@ interface ECRService$ { options?: HttpHandlerOptions, ): Effect.Effect< SetRepositoryPolicyCommandOutput, - Cause.TimeoutException | SdkError | InvalidParameterError | RepositoryNotFoundError | ServerError + Cause.TimeoutError | SdkError | InvalidParameterError | RepositoryNotFoundError | ServerError >; /** @@ -1005,7 +990,7 @@ interface ECRService$ { options?: HttpHandlerOptions, ): Effect.Effect< StartImageScanCommandOutput, - | Cause.TimeoutException + | Cause.TimeoutError | SdkError | ImageArchivedError | ImageNotFoundError @@ -1025,7 +1010,7 @@ interface ECRService$ { options?: HttpHandlerOptions, ): Effect.Effect< StartLifecyclePolicyPreviewCommandOutput, - | Cause.TimeoutException + | Cause.TimeoutError | SdkError | InvalidParameterError | LifecyclePolicyNotFoundError @@ -1043,7 +1028,7 @@ interface ECRService$ { options?: HttpHandlerOptions, ): Effect.Effect< TagResourceCommandOutput, - | Cause.TimeoutException + | Cause.TimeoutError | SdkError | InvalidParameterError | InvalidTagParameterError @@ -1060,7 +1045,7 @@ interface ECRService$ { options?: HttpHandlerOptions, ): Effect.Effect< UntagResourceCommandOutput, - | Cause.TimeoutException + | Cause.TimeoutError | SdkError | InvalidParameterError | InvalidTagParameterError @@ -1077,7 +1062,7 @@ interface ECRService$ { options?: HttpHandlerOptions, ): Effect.Effect< UpdateImageStorageClassCommandOutput, - | Cause.TimeoutException + | Cause.TimeoutError | SdkError | ImageNotFoundError | ImageStorageClassUpdateNotSupportedError @@ -1095,7 +1080,7 @@ interface ECRService$ { options?: HttpHandlerOptions, ): Effect.Effect< UpdatePullThroughCacheRuleCommandOutput, - | Cause.TimeoutException + | Cause.TimeoutError | SdkError | InvalidParameterError | PullThroughCacheRuleNotFoundError @@ -1114,7 +1099,7 @@ interface ECRService$ { options?: HttpHandlerOptions, ): Effect.Effect< UpdateRepositoryCreationTemplateCommandOutput, - Cause.TimeoutException | SdkError | InvalidParameterError | ServerError | TemplateNotFoundError | ValidationError + Cause.TimeoutError | SdkError | InvalidParameterError | ServerError | TemplateNotFoundError | ValidationError >; /** @@ -1125,7 +1110,7 @@ interface ECRService$ { options?: HttpHandlerOptions, ): Effect.Effect< UploadLayerPartCommandOutput, - | Cause.TimeoutException + | Cause.TimeoutError | SdkError | InvalidLayerPartError | InvalidParameterError @@ -1144,7 +1129,7 @@ interface ECRService$ { options?: HttpHandlerOptions, ): Effect.Effect< ValidatePullThroughCacheRuleCommandOutput, - | Cause.TimeoutException + | Cause.TimeoutError | SdkError | InvalidParameterError | PullThroughCacheRuleNotFoundError @@ -1174,10 +1159,10 @@ export const makeECRService = Effect.gen(function*() { * @since 1.0.0 * @category models */ -export class ECRService extends Effect.Tag("@effect-aws/client-ecr/ECRService")< +export class ECRService extends ServiceMap.Service< ECRService, ECRService$ ->() { +>()("@effect-aws/client-ecr/ECRService") { static readonly defaultLayer = Layer.effect(this, makeECRService).pipe(Layer.provide(Instance.layer)); static readonly layer = (config: ECRService.Config) => Layer.effect(this, makeECRService).pipe( diff --git a/packages/client-ecr/src/ECRServiceConfig.ts b/packages/client-ecr/src/ECRServiceConfig.ts index 49b5657d..6b72b81e 100644 --- a/packages/client-ecr/src/ECRServiceConfig.ts +++ b/packages/client-ecr/src/ECRServiceConfig.ts @@ -3,18 +3,17 @@ */ import type { ECRClientConfig } from "@aws-sdk/client-ecr"; import { ServiceLogger } from "@effect-aws/commons"; -import { Effect, FiberRef, Layer } from "effect"; +import { Effect, Layer, ServiceMap } from "effect"; import { dual } from "effect/Function"; -import { globalValue } from "effect/GlobalValue"; import type { ECRService } from "./ECRService.js"; /** * @since 1.0.0 * @category ecr service config */ -const currentECRServiceConfig = globalValue( +const currentECRServiceConfig = ServiceMap.Reference( "@effect-aws/client-ecr/currentECRServiceConfig", - () => FiberRef.unsafeMake({}), + { defaultValue: () => ({}) }, ); /** @@ -27,21 +26,21 @@ export const withECRServiceConfig: { } = dual( 2, (effect: Effect.Effect, config: ECRService.Config): Effect.Effect => - Effect.locally(effect, currentECRServiceConfig, config), + Effect.provideService(effect, currentECRServiceConfig, config), ); /** * @since 1.0.0 * @category ecr service config */ -export const setECRServiceConfig = (config: ECRService.Config) => Layer.locallyScoped(currentECRServiceConfig, config); +export const setECRServiceConfig = (config: ECRService.Config) => Layer.succeed(currentECRServiceConfig, config); /** * @since 1.0.0 * @category adapters */ export const toECRClientConfig: Effect.Effect = Effect.gen(function*() { - const { logger: serviceLogger, ...config } = yield* FiberRef.get(currentECRServiceConfig); + const { logger: serviceLogger, ...config } = yield* currentECRServiceConfig; const logger = serviceLogger === true ? yield* ServiceLogger.toClientLogger(ServiceLogger.defaultServiceLogger) diff --git a/packages/client-ecr/test/ECR.test.ts b/packages/client-ecr/test/ECR.test.ts index f0427e8a..0aad5154 100644 --- a/packages/client-ecr/test/ECR.test.ts +++ b/packages/client-ecr/test/ECR.test.ts @@ -26,7 +26,7 @@ describe("ECRClientImpl", () => { const args = {} as unknown as DescribeRepositoriesCommandInput; - const program = ECR.describeRepositories(args); + const program = ECR.use((svc) => svc.describeRepositories(args)); const result = await pipe( program, @@ -46,7 +46,7 @@ describe("ECRClientImpl", () => { const args = {} as unknown as DescribeRepositoriesCommandInput; - const program = ECR.describeRepositories(args); + const program = ECR.use((svc) => svc.describeRepositories(args)); const result = await pipe( program, @@ -69,7 +69,7 @@ describe("ECRClientImpl", () => { const args = {} as unknown as DescribeRepositoriesCommandInput; - const program = ECR.describeRepositories(args); + const program = ECR.use((svc) => svc.describeRepositories(args)); const result = await pipe( program, @@ -93,7 +93,7 @@ describe("ECRClientImpl", () => { const args = {} as unknown as DescribeRepositoriesCommandInput; - const program = ECR.describeRepositories(args); + const program = ECR.use((svc) => svc.describeRepositories(args)); const result = await pipe( program, @@ -121,7 +121,7 @@ describe("ECRClientImpl", () => { const args = {} as unknown as DescribeRepositoriesCommandInput; - const program = ECR.describeRepositories(args); + const program = ECR.use((svc) => svc.describeRepositories(args)); const result = await pipe( program, @@ -131,7 +131,7 @@ describe("ECRClientImpl", () => { expect(result).toEqual( Exit.fail( - SdkError({ + new SdkError({ ...new Error("test"), name: "SdkError", message: "test", @@ -156,7 +156,7 @@ describe("ECRClientImpl", () => { const args = {} as unknown as DescribeRepositoriesCommandInput; - const program = ECR.describeRepositories(args).pipe( + const program = ECR.use((svc) => svc.describeRepositories(args)).pipe( Effect.catchTag("NotHandledException" as any, () => Effect.succeed(null)), ); @@ -166,9 +166,9 @@ describe("ECRClientImpl", () => { Effect.runPromiseExit, ); - expect(result).toEqual( + expect(result).toContainEqual( Exit.fail( - SdkError({ + new SdkError({ ...new Error("test"), name: "SdkError", message: "test", diff --git a/packages/client-ecs/.projen/deps.json b/packages/client-ecs/.projen/deps.json index 4e5095bf..220c41ca 100644 --- a/packages/client-ecs/.projen/deps.json +++ b/packages/client-ecs/.projen/deps.json @@ -7,6 +7,7 @@ }, { "name": "effect", + "version": "4.0.0-beta.8", "type": "build" }, { @@ -16,7 +17,7 @@ }, { "name": "effect", - "version": ">=3.0.4 <4.0.0", + "version": ">=4.0.0 <5.0.0", "type": "peer" }, { diff --git a/packages/client-ecs/README.md b/packages/client-ecs/README.md index b2ebca1f..17ad994f 100644 --- a/packages/client-ecs/README.md +++ b/packages/client-ecs/README.md @@ -16,7 +16,7 @@ With default ECSClient instance: ```typescript import { ECS } from "@effect-aws/client-ecs"; -const program = ECS.listClusters(args); +const program = ECS.use((svc) => svc.listClusters(args)); const result = pipe( program, @@ -30,7 +30,7 @@ With custom ECSClient instance: ```typescript import { ECS } from "@effect-aws/client-ecs"; -const program = ECS.listClusters(args); +const program = ECS.use((svc) => svc.listClusters(args)); const result = await pipe( program, @@ -46,7 +46,7 @@ With custom ECSClient configuration: ```typescript import { ECS } from "@effect-aws/client-ecs"; -const program = ECS.listClusters(args); +const program = ECS.use((svc) => svc.listClusters(args)); const result = await pipe( program, diff --git a/packages/client-ecs/package.json b/packages/client-ecs/package.json index b848792c..266c93dc 100644 --- a/packages/client-ecs/package.json +++ b/packages/client-ecs/package.json @@ -26,11 +26,11 @@ }, "devDependencies": { "@types/node": "ts5.4", - "effect": "^3.16.4", + "effect": "4.0.0-beta.8", "typescript": "^5.4.2" }, "peerDependencies": { - "effect": ">=3.0.4 <4.0.0" + "effect": ">=4.0.0 <5.0.0" }, "dependencies": { "@aws-sdk/client-ecs": "^3", diff --git a/packages/client-ecs/src/ECSClientInstance.ts b/packages/client-ecs/src/ECSClientInstance.ts index c35ff331..9463534e 100644 --- a/packages/client-ecs/src/ECSClientInstance.ts +++ b/packages/client-ecs/src/ECSClientInstance.ts @@ -2,16 +2,16 @@ * @since 1.0.0 */ import { ECSClient } from "@aws-sdk/client-ecs"; -import { Context, Effect, Layer } from "effect"; +import { Effect, Layer, ServiceMap } from "effect"; import * as ECSServiceConfig from "./ECSServiceConfig.js"; /** * @since 1.0.0 * @category tags */ -export class ECSClientInstance extends Context.Tag( +export class ECSClientInstance extends ServiceMap.Service()( "@effect-aws/client-ecs/ECSClientInstance", -)() {} +) {} /** * @since 1.0.0 @@ -30,4 +30,4 @@ export const make = Effect.flatMap( * @since 1.0.0 * @category layers */ -export const layer = Layer.scoped(ECSClientInstance, make); +export const layer = Layer.effect(ECSClientInstance, make); diff --git a/packages/client-ecs/src/ECSService.ts b/packages/client-ecs/src/ECSService.ts index 3917780c..e17a9d51 100644 --- a/packages/client-ecs/src/ECSService.ts +++ b/packages/client-ecs/src/ECSService.ts @@ -200,7 +200,7 @@ import { import type { HttpHandlerOptions, ServiceLogger } from "@effect-aws/commons"; import { Service } from "@effect-aws/commons"; import type { Cause } from "effect"; -import { Effect, Layer } from "effect"; +import { Effect, Layer, ServiceMap } from "effect"; import * as Instance from "./ECSClientInstance.js"; import * as ECSServiceConfig from "./ECSServiceConfig.js"; import type { @@ -314,7 +314,7 @@ interface ECSService$ { options?: HttpHandlerOptions, ): Effect.Effect< CreateCapacityProviderCommandOutput, - | Cause.TimeoutException + | Cause.TimeoutError | SdkError | ClientError | ClusterNotFoundError @@ -333,7 +333,7 @@ interface ECSService$ { options?: HttpHandlerOptions, ): Effect.Effect< CreateClusterCommandOutput, - Cause.TimeoutException | SdkError | ClientError | InvalidParameterError | NamespaceNotFoundError | ServerError + Cause.TimeoutError | SdkError | ClientError | InvalidParameterError | NamespaceNotFoundError | ServerError >; /** @@ -344,7 +344,7 @@ interface ECSService$ { options?: HttpHandlerOptions, ): Effect.Effect< CreateExpressGatewayServiceCommandOutput, - | Cause.TimeoutException + | Cause.TimeoutError | SdkError | AccessDeniedError | ClientError @@ -364,7 +364,7 @@ interface ECSService$ { options?: HttpHandlerOptions, ): Effect.Effect< CreateServiceCommandOutput, - | Cause.TimeoutException + | Cause.TimeoutError | SdkError | AccessDeniedError | ClientError @@ -385,7 +385,7 @@ interface ECSService$ { options?: HttpHandlerOptions, ): Effect.Effect< CreateTaskSetCommandOutput, - | Cause.TimeoutException + | Cause.TimeoutError | SdkError | AccessDeniedError | ClientError @@ -408,7 +408,7 @@ interface ECSService$ { options?: HttpHandlerOptions, ): Effect.Effect< DeleteAccountSettingCommandOutput, - Cause.TimeoutException | SdkError | ClientError | InvalidParameterError | ServerError + Cause.TimeoutError | SdkError | ClientError | InvalidParameterError | ServerError >; /** @@ -419,7 +419,7 @@ interface ECSService$ { options?: HttpHandlerOptions, ): Effect.Effect< DeleteAttributesCommandOutput, - Cause.TimeoutException | SdkError | ClusterNotFoundError | InvalidParameterError | TargetNotFoundError + Cause.TimeoutError | SdkError | ClusterNotFoundError | InvalidParameterError | TargetNotFoundError >; /** @@ -430,7 +430,7 @@ interface ECSService$ { options?: HttpHandlerOptions, ): Effect.Effect< DeleteCapacityProviderCommandOutput, - | Cause.TimeoutException + | Cause.TimeoutError | SdkError | ClientError | ClusterNotFoundError @@ -447,7 +447,7 @@ interface ECSService$ { options?: HttpHandlerOptions, ): Effect.Effect< DeleteClusterCommandOutput, - | Cause.TimeoutException + | Cause.TimeoutError | SdkError | ClientError | ClusterContainsCapacityProviderError @@ -468,7 +468,7 @@ interface ECSService$ { options?: HttpHandlerOptions, ): Effect.Effect< DeleteExpressGatewayServiceCommandOutput, - | Cause.TimeoutException + | Cause.TimeoutError | SdkError | AccessDeniedError | ClientError @@ -488,7 +488,7 @@ interface ECSService$ { options?: HttpHandlerOptions, ): Effect.Effect< DeleteServiceCommandOutput, - | Cause.TimeoutException + | Cause.TimeoutError | SdkError | ClientError | ClusterNotFoundError @@ -505,7 +505,7 @@ interface ECSService$ { options?: HttpHandlerOptions, ): Effect.Effect< DeleteTaskDefinitionsCommandOutput, - Cause.TimeoutException | SdkError | AccessDeniedError | ClientError | InvalidParameterError | ServerError + Cause.TimeoutError | SdkError | AccessDeniedError | ClientError | InvalidParameterError | ServerError >; /** @@ -516,7 +516,7 @@ interface ECSService$ { options?: HttpHandlerOptions, ): Effect.Effect< DeleteTaskSetCommandOutput, - | Cause.TimeoutException + | Cause.TimeoutError | SdkError | AccessDeniedError | ClientError @@ -537,7 +537,7 @@ interface ECSService$ { options?: HttpHandlerOptions, ): Effect.Effect< DeregisterContainerInstanceCommandOutput, - Cause.TimeoutException | SdkError | ClientError | ClusterNotFoundError | InvalidParameterError | ServerError + Cause.TimeoutError | SdkError | ClientError | ClusterNotFoundError | InvalidParameterError | ServerError >; /** @@ -548,7 +548,7 @@ interface ECSService$ { options?: HttpHandlerOptions, ): Effect.Effect< DeregisterTaskDefinitionCommandOutput, - Cause.TimeoutException | SdkError | ClientError | InvalidParameterError | ServerError + Cause.TimeoutError | SdkError | ClientError | InvalidParameterError | ServerError >; /** @@ -559,7 +559,7 @@ interface ECSService$ { options?: HttpHandlerOptions, ): Effect.Effect< DescribeCapacityProvidersCommandOutput, - | Cause.TimeoutException + | Cause.TimeoutError | SdkError | ClientError | ClusterNotFoundError @@ -576,7 +576,7 @@ interface ECSService$ { options?: HttpHandlerOptions, ): Effect.Effect< DescribeClustersCommandOutput, - Cause.TimeoutException | SdkError | ClientError | InvalidParameterError | ServerError + Cause.TimeoutError | SdkError | ClientError | InvalidParameterError | ServerError >; /** @@ -587,7 +587,7 @@ interface ECSService$ { options?: HttpHandlerOptions, ): Effect.Effect< DescribeContainerInstancesCommandOutput, - Cause.TimeoutException | SdkError | ClientError | ClusterNotFoundError | InvalidParameterError | ServerError + Cause.TimeoutError | SdkError | ClientError | ClusterNotFoundError | InvalidParameterError | ServerError >; /** @@ -598,7 +598,7 @@ interface ECSService$ { options?: HttpHandlerOptions, ): Effect.Effect< DescribeExpressGatewayServiceCommandOutput, - | Cause.TimeoutException + | Cause.TimeoutError | SdkError | AccessDeniedError | ClientError @@ -617,7 +617,7 @@ interface ECSService$ { options?: HttpHandlerOptions, ): Effect.Effect< DescribeServiceDeploymentsCommandOutput, - | Cause.TimeoutException + | Cause.TimeoutError | SdkError | AccessDeniedError | ClientError @@ -636,7 +636,7 @@ interface ECSService$ { options?: HttpHandlerOptions, ): Effect.Effect< DescribeServiceRevisionsCommandOutput, - | Cause.TimeoutException + | Cause.TimeoutError | SdkError | AccessDeniedError | ClientError @@ -655,7 +655,7 @@ interface ECSService$ { options?: HttpHandlerOptions, ): Effect.Effect< DescribeServicesCommandOutput, - Cause.TimeoutException | SdkError | ClientError | ClusterNotFoundError | InvalidParameterError | ServerError + Cause.TimeoutError | SdkError | ClientError | ClusterNotFoundError | InvalidParameterError | ServerError >; /** @@ -666,7 +666,7 @@ interface ECSService$ { options?: HttpHandlerOptions, ): Effect.Effect< DescribeTaskDefinitionCommandOutput, - Cause.TimeoutException | SdkError | ClientError | InvalidParameterError | ServerError + Cause.TimeoutError | SdkError | ClientError | InvalidParameterError | ServerError >; /** @@ -677,7 +677,7 @@ interface ECSService$ { options?: HttpHandlerOptions, ): Effect.Effect< DescribeTaskSetsCommandOutput, - | Cause.TimeoutException + | Cause.TimeoutError | SdkError | AccessDeniedError | ClientError @@ -697,7 +697,7 @@ interface ECSService$ { options?: HttpHandlerOptions, ): Effect.Effect< DescribeTasksCommandOutput, - Cause.TimeoutException | SdkError | ClientError | ClusterNotFoundError | InvalidParameterError | ServerError + Cause.TimeoutError | SdkError | ClientError | ClusterNotFoundError | InvalidParameterError | ServerError >; /** @@ -708,7 +708,7 @@ interface ECSService$ { options?: HttpHandlerOptions, ): Effect.Effect< DiscoverPollEndpointCommandOutput, - Cause.TimeoutException | SdkError | ClientError | ServerError + Cause.TimeoutError | SdkError | ClientError | ServerError >; /** @@ -719,7 +719,7 @@ interface ECSService$ { options?: HttpHandlerOptions, ): Effect.Effect< ExecuteCommandCommandOutput, - | Cause.TimeoutException + | Cause.TimeoutError | SdkError | AccessDeniedError | ClientError @@ -737,7 +737,7 @@ interface ECSService$ { options?: HttpHandlerOptions, ): Effect.Effect< GetTaskProtectionCommandOutput, - | Cause.TimeoutException + | Cause.TimeoutError | SdkError | AccessDeniedError | ClientError @@ -756,7 +756,7 @@ interface ECSService$ { options?: HttpHandlerOptions, ): Effect.Effect< ListAccountSettingsCommandOutput, - Cause.TimeoutException | SdkError | ClientError | InvalidParameterError | ServerError + Cause.TimeoutError | SdkError | ClientError | InvalidParameterError | ServerError >; /** @@ -767,7 +767,7 @@ interface ECSService$ { options?: HttpHandlerOptions, ): Effect.Effect< ListAttributesCommandOutput, - Cause.TimeoutException | SdkError | ClusterNotFoundError | InvalidParameterError + Cause.TimeoutError | SdkError | ClusterNotFoundError | InvalidParameterError >; /** @@ -778,7 +778,7 @@ interface ECSService$ { options?: HttpHandlerOptions, ): Effect.Effect< ListClustersCommandOutput, - Cause.TimeoutException | SdkError | ClientError | InvalidParameterError | ServerError + Cause.TimeoutError | SdkError | ClientError | InvalidParameterError | ServerError >; /** @@ -789,7 +789,7 @@ interface ECSService$ { options?: HttpHandlerOptions, ): Effect.Effect< ListContainerInstancesCommandOutput, - Cause.TimeoutException | SdkError | ClientError | ClusterNotFoundError | InvalidParameterError | ServerError + Cause.TimeoutError | SdkError | ClientError | ClusterNotFoundError | InvalidParameterError | ServerError >; /** @@ -800,7 +800,7 @@ interface ECSService$ { options?: HttpHandlerOptions, ): Effect.Effect< ListServiceDeploymentsCommandOutput, - | Cause.TimeoutException + | Cause.TimeoutError | SdkError | AccessDeniedError | ClientError @@ -818,7 +818,7 @@ interface ECSService$ { options?: HttpHandlerOptions, ): Effect.Effect< ListServicesCommandOutput, - Cause.TimeoutException | SdkError | ClientError | ClusterNotFoundError | InvalidParameterError | ServerError + Cause.TimeoutError | SdkError | ClientError | ClusterNotFoundError | InvalidParameterError | ServerError >; /** @@ -829,7 +829,7 @@ interface ECSService$ { options?: HttpHandlerOptions, ): Effect.Effect< ListServicesByNamespaceCommandOutput, - Cause.TimeoutException | SdkError | ClientError | InvalidParameterError | NamespaceNotFoundError | ServerError + Cause.TimeoutError | SdkError | ClientError | InvalidParameterError | NamespaceNotFoundError | ServerError >; /** @@ -840,7 +840,7 @@ interface ECSService$ { options?: HttpHandlerOptions, ): Effect.Effect< ListTagsForResourceCommandOutput, - Cause.TimeoutException | SdkError | ClientError | ClusterNotFoundError | InvalidParameterError | ServerError + Cause.TimeoutError | SdkError | ClientError | ClusterNotFoundError | InvalidParameterError | ServerError >; /** @@ -851,7 +851,7 @@ interface ECSService$ { options?: HttpHandlerOptions, ): Effect.Effect< ListTaskDefinitionFamiliesCommandOutput, - Cause.TimeoutException | SdkError | ClientError | InvalidParameterError | ServerError + Cause.TimeoutError | SdkError | ClientError | InvalidParameterError | ServerError >; /** @@ -862,7 +862,7 @@ interface ECSService$ { options?: HttpHandlerOptions, ): Effect.Effect< ListTaskDefinitionsCommandOutput, - Cause.TimeoutException | SdkError | ClientError | InvalidParameterError | ServerError + Cause.TimeoutError | SdkError | ClientError | InvalidParameterError | ServerError >; /** @@ -873,7 +873,7 @@ interface ECSService$ { options?: HttpHandlerOptions, ): Effect.Effect< ListTasksCommandOutput, - | Cause.TimeoutException + | Cause.TimeoutError | SdkError | ClientError | ClusterNotFoundError @@ -890,7 +890,7 @@ interface ECSService$ { options?: HttpHandlerOptions, ): Effect.Effect< PutAccountSettingCommandOutput, - Cause.TimeoutException | SdkError | ClientError | InvalidParameterError | ServerError + Cause.TimeoutError | SdkError | ClientError | InvalidParameterError | ServerError >; /** @@ -901,7 +901,7 @@ interface ECSService$ { options?: HttpHandlerOptions, ): Effect.Effect< PutAccountSettingDefaultCommandOutput, - Cause.TimeoutException | SdkError | ClientError | InvalidParameterError | ServerError + Cause.TimeoutError | SdkError | ClientError | InvalidParameterError | ServerError >; /** @@ -912,7 +912,7 @@ interface ECSService$ { options?: HttpHandlerOptions, ): Effect.Effect< PutAttributesCommandOutput, - | Cause.TimeoutException + | Cause.TimeoutError | SdkError | AttributeLimitExceededError | ClusterNotFoundError @@ -928,7 +928,7 @@ interface ECSService$ { options?: HttpHandlerOptions, ): Effect.Effect< PutClusterCapacityProvidersCommandOutput, - | Cause.TimeoutException + | Cause.TimeoutError | SdkError | ClientError | ClusterNotFoundError @@ -946,7 +946,7 @@ interface ECSService$ { options?: HttpHandlerOptions, ): Effect.Effect< RegisterContainerInstanceCommandOutput, - Cause.TimeoutException | SdkError | ClientError | InvalidParameterError | ServerError + Cause.TimeoutError | SdkError | ClientError | InvalidParameterError | ServerError >; /** @@ -957,7 +957,7 @@ interface ECSService$ { options?: HttpHandlerOptions, ): Effect.Effect< RegisterTaskDefinitionCommandOutput, - Cause.TimeoutException | SdkError | ClientError | InvalidParameterError | ServerError + Cause.TimeoutError | SdkError | ClientError | InvalidParameterError | ServerError >; /** @@ -968,7 +968,7 @@ interface ECSService$ { options?: HttpHandlerOptions, ): Effect.Effect< RunTaskCommandOutput, - | Cause.TimeoutException + | Cause.TimeoutError | SdkError | AccessDeniedError | BlockedError @@ -990,7 +990,7 @@ interface ECSService$ { options?: HttpHandlerOptions, ): Effect.Effect< StartTaskCommandOutput, - | Cause.TimeoutException + | Cause.TimeoutError | SdkError | ClientError | ClusterNotFoundError @@ -1007,7 +1007,7 @@ interface ECSService$ { options?: HttpHandlerOptions, ): Effect.Effect< StopServiceDeploymentCommandOutput, - | Cause.TimeoutException + | Cause.TimeoutError | SdkError | AccessDeniedError | ClientError @@ -1026,7 +1026,7 @@ interface ECSService$ { options?: HttpHandlerOptions, ): Effect.Effect< StopTaskCommandOutput, - Cause.TimeoutException | SdkError | ClientError | ClusterNotFoundError | InvalidParameterError | ServerError + Cause.TimeoutError | SdkError | ClientError | ClusterNotFoundError | InvalidParameterError | ServerError >; /** @@ -1037,7 +1037,7 @@ interface ECSService$ { options?: HttpHandlerOptions, ): Effect.Effect< SubmitAttachmentStateChangesCommandOutput, - Cause.TimeoutException | SdkError | AccessDeniedError | ClientError | InvalidParameterError | ServerError + Cause.TimeoutError | SdkError | AccessDeniedError | ClientError | InvalidParameterError | ServerError >; /** @@ -1048,7 +1048,7 @@ interface ECSService$ { options?: HttpHandlerOptions, ): Effect.Effect< SubmitContainerStateChangeCommandOutput, - Cause.TimeoutException | SdkError | AccessDeniedError | ClientError | ServerError + Cause.TimeoutError | SdkError | AccessDeniedError | ClientError | ServerError >; /** @@ -1059,7 +1059,7 @@ interface ECSService$ { options?: HttpHandlerOptions, ): Effect.Effect< SubmitTaskStateChangeCommandOutput, - Cause.TimeoutException | SdkError | AccessDeniedError | ClientError | InvalidParameterError | ServerError + Cause.TimeoutError | SdkError | AccessDeniedError | ClientError | InvalidParameterError | ServerError >; /** @@ -1070,7 +1070,7 @@ interface ECSService$ { options?: HttpHandlerOptions, ): Effect.Effect< TagResourceCommandOutput, - | Cause.TimeoutException + | Cause.TimeoutError | SdkError | ClientError | ClusterNotFoundError @@ -1087,7 +1087,7 @@ interface ECSService$ { options?: HttpHandlerOptions, ): Effect.Effect< UntagResourceCommandOutput, - | Cause.TimeoutException + | Cause.TimeoutError | SdkError | ClientError | ClusterNotFoundError @@ -1104,7 +1104,7 @@ interface ECSService$ { options?: HttpHandlerOptions, ): Effect.Effect< UpdateCapacityProviderCommandOutput, - | Cause.TimeoutException + | Cause.TimeoutError | SdkError | ClientError | ClusterNotFoundError @@ -1121,7 +1121,7 @@ interface ECSService$ { options?: HttpHandlerOptions, ): Effect.Effect< UpdateClusterCommandOutput, - | Cause.TimeoutException + | Cause.TimeoutError | SdkError | ClientError | ClusterNotFoundError @@ -1138,7 +1138,7 @@ interface ECSService$ { options?: HttpHandlerOptions, ): Effect.Effect< UpdateClusterSettingsCommandOutput, - Cause.TimeoutException | SdkError | ClientError | ClusterNotFoundError | InvalidParameterError | ServerError + Cause.TimeoutError | SdkError | ClientError | ClusterNotFoundError | InvalidParameterError | ServerError >; /** @@ -1149,7 +1149,7 @@ interface ECSService$ { options?: HttpHandlerOptions, ): Effect.Effect< UpdateContainerAgentCommandOutput, - | Cause.TimeoutException + | Cause.TimeoutError | SdkError | ClientError | ClusterNotFoundError @@ -1168,7 +1168,7 @@ interface ECSService$ { options?: HttpHandlerOptions, ): Effect.Effect< UpdateContainerInstancesStateCommandOutput, - Cause.TimeoutException | SdkError | ClientError | ClusterNotFoundError | InvalidParameterError | ServerError + Cause.TimeoutError | SdkError | ClientError | ClusterNotFoundError | InvalidParameterError | ServerError >; /** @@ -1179,7 +1179,7 @@ interface ECSService$ { options?: HttpHandlerOptions, ): Effect.Effect< UpdateExpressGatewayServiceCommandOutput, - | Cause.TimeoutException + | Cause.TimeoutError | SdkError | AccessDeniedError | ClientError @@ -1199,7 +1199,7 @@ interface ECSService$ { options?: HttpHandlerOptions, ): Effect.Effect< UpdateServiceCommandOutput, - | Cause.TimeoutException + | Cause.TimeoutError | SdkError | AccessDeniedError | ClientError @@ -1222,7 +1222,7 @@ interface ECSService$ { options?: HttpHandlerOptions, ): Effect.Effect< UpdateServicePrimaryTaskSetCommandOutput, - | Cause.TimeoutException + | Cause.TimeoutError | SdkError | AccessDeniedError | ClientError @@ -1243,7 +1243,7 @@ interface ECSService$ { options?: HttpHandlerOptions, ): Effect.Effect< UpdateTaskProtectionCommandOutput, - | Cause.TimeoutException + | Cause.TimeoutError | SdkError | AccessDeniedError | ClientError @@ -1262,7 +1262,7 @@ interface ECSService$ { options?: HttpHandlerOptions, ): Effect.Effect< UpdateTaskSetCommandOutput, - | Cause.TimeoutException + | Cause.TimeoutError | SdkError | AccessDeniedError | ClientError @@ -1297,10 +1297,10 @@ export const makeECSService = Effect.gen(function*() { * @since 1.0.0 * @category models */ -export class ECSService extends Effect.Tag("@effect-aws/client-ecs/ECSService")< +export class ECSService extends ServiceMap.Service< ECSService, ECSService$ ->() { +>()("@effect-aws/client-ecs/ECSService") { static readonly defaultLayer = Layer.effect(this, makeECSService).pipe(Layer.provide(Instance.layer)); static readonly layer = (config: ECSService.Config) => Layer.effect(this, makeECSService).pipe( diff --git a/packages/client-ecs/src/ECSServiceConfig.ts b/packages/client-ecs/src/ECSServiceConfig.ts index 9698234c..fb5c39b2 100644 --- a/packages/client-ecs/src/ECSServiceConfig.ts +++ b/packages/client-ecs/src/ECSServiceConfig.ts @@ -3,18 +3,17 @@ */ import type { ECSClientConfig } from "@aws-sdk/client-ecs"; import { ServiceLogger } from "@effect-aws/commons"; -import { Effect, FiberRef, Layer } from "effect"; +import { Effect, Layer, ServiceMap } from "effect"; import { dual } from "effect/Function"; -import { globalValue } from "effect/GlobalValue"; import type { ECSService } from "./ECSService.js"; /** * @since 1.0.0 * @category ecs service config */ -const currentECSServiceConfig = globalValue( +const currentECSServiceConfig = ServiceMap.Reference( "@effect-aws/client-ecs/currentECSServiceConfig", - () => FiberRef.unsafeMake({}), + { defaultValue: () => ({}) }, ); /** @@ -27,21 +26,21 @@ export const withECSServiceConfig: { } = dual( 2, (effect: Effect.Effect, config: ECSService.Config): Effect.Effect => - Effect.locally(effect, currentECSServiceConfig, config), + Effect.provideService(effect, currentECSServiceConfig, config), ); /** * @since 1.0.0 * @category ecs service config */ -export const setECSServiceConfig = (config: ECSService.Config) => Layer.locallyScoped(currentECSServiceConfig, config); +export const setECSServiceConfig = (config: ECSService.Config) => Layer.succeed(currentECSServiceConfig, config); /** * @since 1.0.0 * @category adapters */ export const toECSClientConfig: Effect.Effect = Effect.gen(function*() { - const { logger: serviceLogger, ...config } = yield* FiberRef.get(currentECSServiceConfig); + const { logger: serviceLogger, ...config } = yield* currentECSServiceConfig; const logger = serviceLogger === true ? yield* ServiceLogger.toClientLogger(ServiceLogger.defaultServiceLogger) diff --git a/packages/client-ecs/test/ECS.test.ts b/packages/client-ecs/test/ECS.test.ts index 963b9035..d68a346c 100644 --- a/packages/client-ecs/test/ECS.test.ts +++ b/packages/client-ecs/test/ECS.test.ts @@ -26,7 +26,7 @@ describe("ECSClientImpl", () => { const args = {} as unknown as ListClustersCommandInput; - const program = ECS.listClusters(args); + const program = ECS.use((svc) => svc.listClusters(args)); const result = await pipe( program, @@ -46,7 +46,7 @@ describe("ECSClientImpl", () => { const args = {} as unknown as ListClustersCommandInput; - const program = ECS.listClusters(args); + const program = ECS.use((svc) => svc.listClusters(args)); const result = await pipe( program, @@ -69,7 +69,7 @@ describe("ECSClientImpl", () => { const args = {} as unknown as ListClustersCommandInput; - const program = ECS.listClusters(args); + const program = ECS.use((svc) => svc.listClusters(args)); const result = await pipe( program, @@ -93,7 +93,7 @@ describe("ECSClientImpl", () => { const args = {} as unknown as ListClustersCommandInput; - const program = ECS.listClusters(args); + const program = ECS.use((svc) => svc.listClusters(args)); const result = await pipe( program, @@ -121,7 +121,7 @@ describe("ECSClientImpl", () => { const args = {} as unknown as ListClustersCommandInput; - const program = ECS.listClusters(args); + const program = ECS.use((svc) => svc.listClusters(args)); const result = await pipe( program, @@ -131,7 +131,7 @@ describe("ECSClientImpl", () => { expect(result).toEqual( Exit.fail( - SdkError({ + new SdkError({ ...new Error("test"), name: "SdkError", message: "test", @@ -156,7 +156,7 @@ describe("ECSClientImpl", () => { const args = {} as unknown as ListClustersCommandInput; - const program = ECS.listClusters(args).pipe( + const program = ECS.use((svc) => svc.listClusters(args)).pipe( Effect.catchTag("NotHandledException" as any, () => Effect.succeed(null)), ); @@ -166,9 +166,9 @@ describe("ECSClientImpl", () => { Effect.runPromiseExit, ); - expect(result).toEqual( + expect(result).toContainEqual( Exit.fail( - SdkError({ + new SdkError({ ...new Error("test"), name: "SdkError", message: "test", diff --git a/packages/client-elasticache/.projen/deps.json b/packages/client-elasticache/.projen/deps.json index 0d009fa5..437a58ae 100644 --- a/packages/client-elasticache/.projen/deps.json +++ b/packages/client-elasticache/.projen/deps.json @@ -7,6 +7,7 @@ }, { "name": "effect", + "version": "4.0.0-beta.8", "type": "build" }, { @@ -16,7 +17,7 @@ }, { "name": "effect", - "version": ">=3.0.4 <4.0.0", + "version": ">=4.0.0 <5.0.0", "type": "peer" }, { diff --git a/packages/client-elasticache/README.md b/packages/client-elasticache/README.md index 166e64d8..18f5064d 100644 --- a/packages/client-elasticache/README.md +++ b/packages/client-elasticache/README.md @@ -16,7 +16,7 @@ With default ElastiCacheClient instance: ```typescript import { ElastiCache } from "@effect-aws/client-elasticache"; -const program = ElastiCache.listTagsForResource(args); +const program = ElastiCache.use((svc) => svc.listTagsForResource(args)); const result = pipe( program, @@ -30,7 +30,7 @@ With custom ElastiCacheClient instance: ```typescript import { ElastiCache } from "@effect-aws/client-elasticache"; -const program = ElastiCache.listTagsForResource(args); +const program = ElastiCache.use((svc) => svc.listTagsForResource(args)); const result = await pipe( program, @@ -46,7 +46,7 @@ With custom ElastiCacheClient configuration: ```typescript import { ElastiCache } from "@effect-aws/client-elasticache"; -const program = ElastiCache.listTagsForResource(args); +const program = ElastiCache.use((svc) => svc.listTagsForResource(args)); const result = await pipe( program, diff --git a/packages/client-elasticache/package.json b/packages/client-elasticache/package.json index aab63b09..3f7a93a7 100644 --- a/packages/client-elasticache/package.json +++ b/packages/client-elasticache/package.json @@ -26,11 +26,11 @@ }, "devDependencies": { "@types/node": "ts5.4", - "effect": "^3.16.4", + "effect": "4.0.0-beta.8", "typescript": "^5.4.2" }, "peerDependencies": { - "effect": ">=3.0.4 <4.0.0" + "effect": ">=4.0.0 <5.0.0" }, "dependencies": { "@aws-sdk/client-elasticache": "^3", diff --git a/packages/client-elasticache/src/ElastiCacheClientInstance.ts b/packages/client-elasticache/src/ElastiCacheClientInstance.ts index 470e88f8..d0431816 100644 --- a/packages/client-elasticache/src/ElastiCacheClientInstance.ts +++ b/packages/client-elasticache/src/ElastiCacheClientInstance.ts @@ -2,16 +2,16 @@ * @since 1.0.0 */ import { ElastiCacheClient } from "@aws-sdk/client-elasticache"; -import { Context, Effect, Layer } from "effect"; +import { Effect, Layer, ServiceMap } from "effect"; import * as ElastiCacheServiceConfig from "./ElastiCacheServiceConfig.js"; /** * @since 1.0.0 * @category tags */ -export class ElastiCacheClientInstance extends Context.Tag( +export class ElastiCacheClientInstance extends ServiceMap.Service()( "@effect-aws/client-elasticache/ElastiCacheClientInstance", -)() {} +) {} /** * @since 1.0.0 @@ -30,4 +30,4 @@ export const make = Effect.flatMap( * @since 1.0.0 * @category layers */ -export const layer = Layer.scoped(ElastiCacheClientInstance, make); +export const layer = Layer.effect(ElastiCacheClientInstance, make); diff --git a/packages/client-elasticache/src/ElastiCacheService.ts b/packages/client-elasticache/src/ElastiCacheService.ts index f366e20d..7d3a5348 100644 --- a/packages/client-elasticache/src/ElastiCacheService.ts +++ b/packages/client-elasticache/src/ElastiCacheService.ts @@ -233,7 +233,7 @@ import { import type { HttpHandlerOptions, ServiceLogger } from "@effect-aws/commons"; import { Service } from "@effect-aws/commons"; import type { Cause } from "effect"; -import { Effect, Layer } from "effect"; +import { Effect, Layer, ServiceMap } from "effect"; import * as Instance from "./ElastiCacheClientInstance.js"; import * as ElastiCacheServiceConfig from "./ElastiCacheServiceConfig.js"; import type { @@ -406,7 +406,7 @@ interface ElastiCacheService$ { options?: HttpHandlerOptions, ): Effect.Effect< AddTagsToResourceCommandOutput, - | Cause.TimeoutException + | Cause.TimeoutError | SdkError | CacheClusterNotFoundFaultError | CacheParameterGroupNotFoundFaultError @@ -434,7 +434,7 @@ interface ElastiCacheService$ { options?: HttpHandlerOptions, ): Effect.Effect< AuthorizeCacheSecurityGroupIngressCommandOutput, - | Cause.TimeoutException + | Cause.TimeoutError | SdkError | AuthorizationAlreadyExistsFaultError | CacheSecurityGroupNotFoundFaultError @@ -451,7 +451,7 @@ interface ElastiCacheService$ { options?: HttpHandlerOptions, ): Effect.Effect< BatchApplyUpdateActionCommandOutput, - Cause.TimeoutException | SdkError | InvalidParameterValueError | ServiceUpdateNotFoundFaultError + Cause.TimeoutError | SdkError | InvalidParameterValueError | ServiceUpdateNotFoundFaultError >; /** @@ -462,7 +462,7 @@ interface ElastiCacheService$ { options?: HttpHandlerOptions, ): Effect.Effect< BatchStopUpdateActionCommandOutput, - Cause.TimeoutException | SdkError | InvalidParameterValueError | ServiceUpdateNotFoundFaultError + Cause.TimeoutError | SdkError | InvalidParameterValueError | ServiceUpdateNotFoundFaultError >; /** @@ -473,7 +473,7 @@ interface ElastiCacheService$ { options?: HttpHandlerOptions, ): Effect.Effect< CompleteMigrationCommandOutput, - | Cause.TimeoutException + | Cause.TimeoutError | SdkError | InvalidReplicationGroupStateFaultError | ReplicationGroupNotFoundFaultError @@ -488,7 +488,7 @@ interface ElastiCacheService$ { options?: HttpHandlerOptions, ): Effect.Effect< CopyServerlessCacheSnapshotCommandOutput, - | Cause.TimeoutException + | Cause.TimeoutError | SdkError | InvalidParameterCombinationError | InvalidParameterValueError @@ -508,7 +508,7 @@ interface ElastiCacheService$ { options?: HttpHandlerOptions, ): Effect.Effect< CopySnapshotCommandOutput, - | Cause.TimeoutException + | Cause.TimeoutError | SdkError | InvalidParameterCombinationError | InvalidParameterValueError @@ -527,7 +527,7 @@ interface ElastiCacheService$ { options?: HttpHandlerOptions, ): Effect.Effect< CreateCacheClusterCommandOutput, - | Cause.TimeoutException + | Cause.TimeoutError | SdkError | CacheClusterAlreadyExistsFaultError | CacheParameterGroupNotFoundFaultError @@ -553,7 +553,7 @@ interface ElastiCacheService$ { options?: HttpHandlerOptions, ): Effect.Effect< CreateCacheParameterGroupCommandOutput, - | Cause.TimeoutException + | Cause.TimeoutError | SdkError | CacheParameterGroupAlreadyExistsFaultError | CacheParameterGroupQuotaExceededFaultError @@ -571,7 +571,7 @@ interface ElastiCacheService$ { options?: HttpHandlerOptions, ): Effect.Effect< CreateCacheSecurityGroupCommandOutput, - | Cause.TimeoutException + | Cause.TimeoutError | SdkError | CacheSecurityGroupAlreadyExistsFaultError | CacheSecurityGroupQuotaExceededFaultError @@ -588,7 +588,7 @@ interface ElastiCacheService$ { options?: HttpHandlerOptions, ): Effect.Effect< CreateCacheSubnetGroupCommandOutput, - | Cause.TimeoutException + | Cause.TimeoutError | SdkError | CacheSubnetGroupAlreadyExistsFaultError | CacheSubnetGroupQuotaExceededFaultError @@ -606,7 +606,7 @@ interface ElastiCacheService$ { options?: HttpHandlerOptions, ): Effect.Effect< CreateGlobalReplicationGroupCommandOutput, - | Cause.TimeoutException + | Cause.TimeoutError | SdkError | GlobalReplicationGroupAlreadyExistsFaultError | InvalidParameterValueError @@ -623,7 +623,7 @@ interface ElastiCacheService$ { options?: HttpHandlerOptions, ): Effect.Effect< CreateReplicationGroupCommandOutput, - | Cause.TimeoutException + | Cause.TimeoutError | SdkError | CacheClusterNotFoundFaultError | CacheParameterGroupNotFoundFaultError @@ -654,7 +654,7 @@ interface ElastiCacheService$ { options?: HttpHandlerOptions, ): Effect.Effect< CreateServerlessCacheCommandOutput, - | Cause.TimeoutException + | Cause.TimeoutError | SdkError | InvalidCredentialsError | InvalidParameterCombinationError @@ -677,7 +677,7 @@ interface ElastiCacheService$ { options?: HttpHandlerOptions, ): Effect.Effect< CreateServerlessCacheSnapshotCommandOutput, - | Cause.TimeoutException + | Cause.TimeoutError | SdkError | InvalidParameterCombinationError | InvalidParameterValueError @@ -697,7 +697,7 @@ interface ElastiCacheService$ { options?: HttpHandlerOptions, ): Effect.Effect< CreateSnapshotCommandOutput, - | Cause.TimeoutException + | Cause.TimeoutError | SdkError | CacheClusterNotFoundFaultError | InvalidCacheClusterStateFaultError @@ -719,7 +719,7 @@ interface ElastiCacheService$ { options?: HttpHandlerOptions, ): Effect.Effect< CreateUserCommandOutput, - | Cause.TimeoutException + | Cause.TimeoutError | SdkError | DuplicateUserNameFaultError | InvalidParameterCombinationError @@ -738,7 +738,7 @@ interface ElastiCacheService$ { options?: HttpHandlerOptions, ): Effect.Effect< CreateUserGroupCommandOutput, - | Cause.TimeoutException + | Cause.TimeoutError | SdkError | DefaultUserRequiredError | DuplicateUserNameFaultError @@ -758,7 +758,7 @@ interface ElastiCacheService$ { options?: HttpHandlerOptions, ): Effect.Effect< DecreaseNodeGroupsInGlobalReplicationGroupCommandOutput, - | Cause.TimeoutException + | Cause.TimeoutError | SdkError | GlobalReplicationGroupNotFoundFaultError | InvalidGlobalReplicationGroupStateFaultError @@ -774,7 +774,7 @@ interface ElastiCacheService$ { options?: HttpHandlerOptions, ): Effect.Effect< DecreaseReplicaCountCommandOutput, - | Cause.TimeoutException + | Cause.TimeoutError | SdkError | ClusterQuotaForCustomerExceededFaultError | InsufficientCacheClusterCapacityFaultError @@ -798,7 +798,7 @@ interface ElastiCacheService$ { options?: HttpHandlerOptions, ): Effect.Effect< DeleteCacheClusterCommandOutput, - | Cause.TimeoutException + | Cause.TimeoutError | SdkError | CacheClusterNotFoundFaultError | InvalidCacheClusterStateFaultError @@ -817,7 +817,7 @@ interface ElastiCacheService$ { options?: HttpHandlerOptions, ): Effect.Effect< DeleteCacheParameterGroupCommandOutput, - | Cause.TimeoutException + | Cause.TimeoutError | SdkError | CacheParameterGroupNotFoundFaultError | InvalidCacheParameterGroupStateFaultError @@ -833,7 +833,7 @@ interface ElastiCacheService$ { options?: HttpHandlerOptions, ): Effect.Effect< DeleteCacheSecurityGroupCommandOutput, - | Cause.TimeoutException + | Cause.TimeoutError | SdkError | CacheSecurityGroupNotFoundFaultError | InvalidCacheSecurityGroupStateFaultError @@ -849,7 +849,7 @@ interface ElastiCacheService$ { options?: HttpHandlerOptions, ): Effect.Effect< DeleteCacheSubnetGroupCommandOutput, - Cause.TimeoutException | SdkError | CacheSubnetGroupInUseError | CacheSubnetGroupNotFoundFaultError + Cause.TimeoutError | SdkError | CacheSubnetGroupInUseError | CacheSubnetGroupNotFoundFaultError >; /** @@ -860,7 +860,7 @@ interface ElastiCacheService$ { options?: HttpHandlerOptions, ): Effect.Effect< DeleteGlobalReplicationGroupCommandOutput, - | Cause.TimeoutException + | Cause.TimeoutError | SdkError | GlobalReplicationGroupNotFoundFaultError | InvalidGlobalReplicationGroupStateFaultError @@ -875,7 +875,7 @@ interface ElastiCacheService$ { options?: HttpHandlerOptions, ): Effect.Effect< DeleteReplicationGroupCommandOutput, - | Cause.TimeoutException + | Cause.TimeoutError | SdkError | InvalidParameterCombinationError | InvalidParameterValueError @@ -894,7 +894,7 @@ interface ElastiCacheService$ { options?: HttpHandlerOptions, ): Effect.Effect< DeleteServerlessCacheCommandOutput, - | Cause.TimeoutException + | Cause.TimeoutError | SdkError | InvalidCredentialsError | InvalidParameterCombinationError @@ -913,7 +913,7 @@ interface ElastiCacheService$ { options?: HttpHandlerOptions, ): Effect.Effect< DeleteServerlessCacheSnapshotCommandOutput, - | Cause.TimeoutException + | Cause.TimeoutError | SdkError | InvalidParameterValueError | InvalidServerlessCacheSnapshotStateFaultError @@ -929,7 +929,7 @@ interface ElastiCacheService$ { options?: HttpHandlerOptions, ): Effect.Effect< DeleteSnapshotCommandOutput, - | Cause.TimeoutException + | Cause.TimeoutError | SdkError | InvalidParameterCombinationError | InvalidParameterValueError @@ -945,7 +945,7 @@ interface ElastiCacheService$ { options?: HttpHandlerOptions, ): Effect.Effect< DeleteUserCommandOutput, - | Cause.TimeoutException + | Cause.TimeoutError | SdkError | DefaultUserAssociatedToUserGroupFaultError | InvalidParameterValueError @@ -962,7 +962,7 @@ interface ElastiCacheService$ { options?: HttpHandlerOptions, ): Effect.Effect< DeleteUserGroupCommandOutput, - | Cause.TimeoutException + | Cause.TimeoutError | SdkError | InvalidParameterValueError | InvalidUserGroupStateFaultError @@ -978,7 +978,7 @@ interface ElastiCacheService$ { options?: HttpHandlerOptions, ): Effect.Effect< DescribeCacheClustersCommandOutput, - | Cause.TimeoutException + | Cause.TimeoutError | SdkError | CacheClusterNotFoundFaultError | InvalidParameterCombinationError @@ -993,7 +993,7 @@ interface ElastiCacheService$ { options?: HttpHandlerOptions, ): Effect.Effect< DescribeCacheEngineVersionsCommandOutput, - Cause.TimeoutException | SdkError + Cause.TimeoutError | SdkError >; /** @@ -1004,7 +1004,7 @@ interface ElastiCacheService$ { options?: HttpHandlerOptions, ): Effect.Effect< DescribeCacheParameterGroupsCommandOutput, - | Cause.TimeoutException + | Cause.TimeoutError | SdkError | CacheParameterGroupNotFoundFaultError | InvalidParameterCombinationError @@ -1019,7 +1019,7 @@ interface ElastiCacheService$ { options?: HttpHandlerOptions, ): Effect.Effect< DescribeCacheParametersCommandOutput, - | Cause.TimeoutException + | Cause.TimeoutError | SdkError | CacheParameterGroupNotFoundFaultError | InvalidParameterCombinationError @@ -1034,7 +1034,7 @@ interface ElastiCacheService$ { options?: HttpHandlerOptions, ): Effect.Effect< DescribeCacheSecurityGroupsCommandOutput, - | Cause.TimeoutException + | Cause.TimeoutError | SdkError | CacheSecurityGroupNotFoundFaultError | InvalidParameterCombinationError @@ -1049,7 +1049,7 @@ interface ElastiCacheService$ { options?: HttpHandlerOptions, ): Effect.Effect< DescribeCacheSubnetGroupsCommandOutput, - Cause.TimeoutException | SdkError | CacheSubnetGroupNotFoundFaultError + Cause.TimeoutError | SdkError | CacheSubnetGroupNotFoundFaultError >; /** @@ -1060,7 +1060,7 @@ interface ElastiCacheService$ { options?: HttpHandlerOptions, ): Effect.Effect< DescribeEngineDefaultParametersCommandOutput, - Cause.TimeoutException | SdkError | InvalidParameterCombinationError | InvalidParameterValueError + Cause.TimeoutError | SdkError | InvalidParameterCombinationError | InvalidParameterValueError >; /** @@ -1071,7 +1071,7 @@ interface ElastiCacheService$ { options?: HttpHandlerOptions, ): Effect.Effect< DescribeEventsCommandOutput, - Cause.TimeoutException | SdkError | InvalidParameterCombinationError | InvalidParameterValueError + Cause.TimeoutError | SdkError | InvalidParameterCombinationError | InvalidParameterValueError >; /** @@ -1082,7 +1082,7 @@ interface ElastiCacheService$ { options?: HttpHandlerOptions, ): Effect.Effect< DescribeGlobalReplicationGroupsCommandOutput, - | Cause.TimeoutException + | Cause.TimeoutError | SdkError | GlobalReplicationGroupNotFoundFaultError | InvalidParameterCombinationError @@ -1097,7 +1097,7 @@ interface ElastiCacheService$ { options?: HttpHandlerOptions, ): Effect.Effect< DescribeReplicationGroupsCommandOutput, - | Cause.TimeoutException + | Cause.TimeoutError | SdkError | InvalidParameterCombinationError | InvalidParameterValueError @@ -1112,7 +1112,7 @@ interface ElastiCacheService$ { options?: HttpHandlerOptions, ): Effect.Effect< DescribeReservedCacheNodesCommandOutput, - | Cause.TimeoutException + | Cause.TimeoutError | SdkError | InvalidParameterCombinationError | InvalidParameterValueError @@ -1127,7 +1127,7 @@ interface ElastiCacheService$ { options?: HttpHandlerOptions, ): Effect.Effect< DescribeReservedCacheNodesOfferingsCommandOutput, - | Cause.TimeoutException + | Cause.TimeoutError | SdkError | InvalidParameterCombinationError | InvalidParameterValueError @@ -1142,7 +1142,7 @@ interface ElastiCacheService$ { options?: HttpHandlerOptions, ): Effect.Effect< DescribeServerlessCacheSnapshotsCommandOutput, - | Cause.TimeoutException + | Cause.TimeoutError | SdkError | InvalidParameterCombinationError | InvalidParameterValueError @@ -1158,7 +1158,7 @@ interface ElastiCacheService$ { options?: HttpHandlerOptions, ): Effect.Effect< DescribeServerlessCachesCommandOutput, - | Cause.TimeoutException + | Cause.TimeoutError | SdkError | InvalidParameterCombinationError | InvalidParameterValueError @@ -1173,7 +1173,7 @@ interface ElastiCacheService$ { options?: HttpHandlerOptions, ): Effect.Effect< DescribeServiceUpdatesCommandOutput, - | Cause.TimeoutException + | Cause.TimeoutError | SdkError | InvalidParameterCombinationError | InvalidParameterValueError @@ -1188,7 +1188,7 @@ interface ElastiCacheService$ { options?: HttpHandlerOptions, ): Effect.Effect< DescribeSnapshotsCommandOutput, - | Cause.TimeoutException + | Cause.TimeoutError | SdkError | CacheClusterNotFoundFaultError | InvalidParameterCombinationError @@ -1204,7 +1204,7 @@ interface ElastiCacheService$ { options?: HttpHandlerOptions, ): Effect.Effect< DescribeUpdateActionsCommandOutput, - Cause.TimeoutException | SdkError | InvalidParameterCombinationError | InvalidParameterValueError + Cause.TimeoutError | SdkError | InvalidParameterCombinationError | InvalidParameterValueError >; /** @@ -1215,7 +1215,7 @@ interface ElastiCacheService$ { options?: HttpHandlerOptions, ): Effect.Effect< DescribeUserGroupsCommandOutput, - | Cause.TimeoutException + | Cause.TimeoutError | SdkError | InvalidParameterCombinationError | ServiceLinkedRoleNotFoundFaultError @@ -1230,7 +1230,7 @@ interface ElastiCacheService$ { options?: HttpHandlerOptions, ): Effect.Effect< DescribeUsersCommandOutput, - | Cause.TimeoutException + | Cause.TimeoutError | SdkError | InvalidParameterCombinationError | ServiceLinkedRoleNotFoundFaultError @@ -1245,7 +1245,7 @@ interface ElastiCacheService$ { options?: HttpHandlerOptions, ): Effect.Effect< DisassociateGlobalReplicationGroupCommandOutput, - | Cause.TimeoutException + | Cause.TimeoutError | SdkError | GlobalReplicationGroupNotFoundFaultError | InvalidGlobalReplicationGroupStateFaultError @@ -1261,7 +1261,7 @@ interface ElastiCacheService$ { options?: HttpHandlerOptions, ): Effect.Effect< ExportServerlessCacheSnapshotCommandOutput, - | Cause.TimeoutException + | Cause.TimeoutError | SdkError | InvalidParameterValueError | InvalidServerlessCacheSnapshotStateFaultError @@ -1277,7 +1277,7 @@ interface ElastiCacheService$ { options?: HttpHandlerOptions, ): Effect.Effect< FailoverGlobalReplicationGroupCommandOutput, - | Cause.TimeoutException + | Cause.TimeoutError | SdkError | GlobalReplicationGroupNotFoundFaultError | InvalidGlobalReplicationGroupStateFaultError @@ -1293,7 +1293,7 @@ interface ElastiCacheService$ { options?: HttpHandlerOptions, ): Effect.Effect< IncreaseNodeGroupsInGlobalReplicationGroupCommandOutput, - | Cause.TimeoutException + | Cause.TimeoutError | SdkError | GlobalReplicationGroupNotFoundFaultError | InvalidGlobalReplicationGroupStateFaultError @@ -1308,7 +1308,7 @@ interface ElastiCacheService$ { options?: HttpHandlerOptions, ): Effect.Effect< IncreaseReplicaCountCommandOutput, - | Cause.TimeoutException + | Cause.TimeoutError | SdkError | ClusterQuotaForCustomerExceededFaultError | InsufficientCacheClusterCapacityFaultError @@ -1332,7 +1332,7 @@ interface ElastiCacheService$ { options?: HttpHandlerOptions, ): Effect.Effect< ListAllowedNodeTypeModificationsCommandOutput, - | Cause.TimeoutException + | Cause.TimeoutError | SdkError | CacheClusterNotFoundFaultError | InvalidParameterCombinationError @@ -1348,7 +1348,7 @@ interface ElastiCacheService$ { options?: HttpHandlerOptions, ): Effect.Effect< ListTagsForResourceCommandOutput, - | Cause.TimeoutException + | Cause.TimeoutError | SdkError | CacheClusterNotFoundFaultError | CacheParameterGroupNotFoundFaultError @@ -1375,7 +1375,7 @@ interface ElastiCacheService$ { options?: HttpHandlerOptions, ): Effect.Effect< ModifyCacheClusterCommandOutput, - | Cause.TimeoutException + | Cause.TimeoutError | SdkError | CacheClusterNotFoundFaultError | CacheParameterGroupNotFoundFaultError @@ -1398,7 +1398,7 @@ interface ElastiCacheService$ { options?: HttpHandlerOptions, ): Effect.Effect< ModifyCacheParameterGroupCommandOutput, - | Cause.TimeoutException + | Cause.TimeoutError | SdkError | CacheParameterGroupNotFoundFaultError | InvalidCacheParameterGroupStateFaultError @@ -1415,7 +1415,7 @@ interface ElastiCacheService$ { options?: HttpHandlerOptions, ): Effect.Effect< ModifyCacheSubnetGroupCommandOutput, - | Cause.TimeoutException + | Cause.TimeoutError | SdkError | CacheSubnetGroupNotFoundFaultError | CacheSubnetQuotaExceededFaultError @@ -1432,7 +1432,7 @@ interface ElastiCacheService$ { options?: HttpHandlerOptions, ): Effect.Effect< ModifyGlobalReplicationGroupCommandOutput, - | Cause.TimeoutException + | Cause.TimeoutError | SdkError | GlobalReplicationGroupNotFoundFaultError | InvalidGlobalReplicationGroupStateFaultError @@ -1447,7 +1447,7 @@ interface ElastiCacheService$ { options?: HttpHandlerOptions, ): Effect.Effect< ModifyReplicationGroupCommandOutput, - | Cause.TimeoutException + | Cause.TimeoutError | SdkError | CacheClusterNotFoundFaultError | CacheParameterGroupNotFoundFaultError @@ -1475,7 +1475,7 @@ interface ElastiCacheService$ { options?: HttpHandlerOptions, ): Effect.Effect< ModifyReplicationGroupShardConfigurationCommandOutput, - | Cause.TimeoutException + | Cause.TimeoutError | SdkError | InsufficientCacheClusterCapacityFaultError | InvalidCacheClusterStateFaultError @@ -1497,7 +1497,7 @@ interface ElastiCacheService$ { options?: HttpHandlerOptions, ): Effect.Effect< ModifyServerlessCacheCommandOutput, - | Cause.TimeoutException + | Cause.TimeoutError | SdkError | InvalidCredentialsError | InvalidParameterCombinationError @@ -1517,7 +1517,7 @@ interface ElastiCacheService$ { options?: HttpHandlerOptions, ): Effect.Effect< ModifyUserCommandOutput, - | Cause.TimeoutException + | Cause.TimeoutError | SdkError | InvalidParameterCombinationError | InvalidParameterValueError @@ -1534,7 +1534,7 @@ interface ElastiCacheService$ { options?: HttpHandlerOptions, ): Effect.Effect< ModifyUserGroupCommandOutput, - | Cause.TimeoutException + | Cause.TimeoutError | SdkError | DefaultUserRequiredError | DuplicateUserNameFaultError @@ -1554,7 +1554,7 @@ interface ElastiCacheService$ { options?: HttpHandlerOptions, ): Effect.Effect< PurchaseReservedCacheNodesOfferingCommandOutput, - | Cause.TimeoutException + | Cause.TimeoutError | SdkError | InvalidParameterCombinationError | InvalidParameterValueError @@ -1572,7 +1572,7 @@ interface ElastiCacheService$ { options?: HttpHandlerOptions, ): Effect.Effect< RebalanceSlotsInGlobalReplicationGroupCommandOutput, - | Cause.TimeoutException + | Cause.TimeoutError | SdkError | GlobalReplicationGroupNotFoundFaultError | InvalidGlobalReplicationGroupStateFaultError @@ -1587,7 +1587,7 @@ interface ElastiCacheService$ { options?: HttpHandlerOptions, ): Effect.Effect< RebootCacheClusterCommandOutput, - Cause.TimeoutException | SdkError | CacheClusterNotFoundFaultError | InvalidCacheClusterStateFaultError + Cause.TimeoutError | SdkError | CacheClusterNotFoundFaultError | InvalidCacheClusterStateFaultError >; /** @@ -1598,7 +1598,7 @@ interface ElastiCacheService$ { options?: HttpHandlerOptions, ): Effect.Effect< RemoveTagsFromResourceCommandOutput, - | Cause.TimeoutException + | Cause.TimeoutError | SdkError | CacheClusterNotFoundFaultError | CacheParameterGroupNotFoundFaultError @@ -1626,7 +1626,7 @@ interface ElastiCacheService$ { options?: HttpHandlerOptions, ): Effect.Effect< ResetCacheParameterGroupCommandOutput, - | Cause.TimeoutException + | Cause.TimeoutError | SdkError | CacheParameterGroupNotFoundFaultError | InvalidCacheParameterGroupStateFaultError @@ -1643,7 +1643,7 @@ interface ElastiCacheService$ { options?: HttpHandlerOptions, ): Effect.Effect< RevokeCacheSecurityGroupIngressCommandOutput, - | Cause.TimeoutException + | Cause.TimeoutError | SdkError | AuthorizationNotFoundFaultError | CacheSecurityGroupNotFoundFaultError @@ -1660,7 +1660,7 @@ interface ElastiCacheService$ { options?: HttpHandlerOptions, ): Effect.Effect< StartMigrationCommandOutput, - | Cause.TimeoutException + | Cause.TimeoutError | SdkError | InvalidParameterValueError | InvalidReplicationGroupStateFaultError @@ -1676,7 +1676,7 @@ interface ElastiCacheService$ { options?: HttpHandlerOptions, ): Effect.Effect< TestFailoverCommandOutput, - | Cause.TimeoutException + | Cause.TimeoutError | SdkError | APICallRateForCustomerExceededFaultError | InvalidCacheClusterStateFaultError @@ -1697,7 +1697,7 @@ interface ElastiCacheService$ { options?: HttpHandlerOptions, ): Effect.Effect< TestMigrationCommandOutput, - | Cause.TimeoutException + | Cause.TimeoutError | SdkError | InvalidParameterValueError | InvalidReplicationGroupStateFaultError @@ -1727,10 +1727,10 @@ export const makeElastiCacheService = Effect.gen(function*() { * @since 1.0.0 * @category models */ -export class ElastiCacheService extends Effect.Tag("@effect-aws/client-elasticache/ElastiCacheService")< +export class ElastiCacheService extends ServiceMap.Service< ElastiCacheService, ElastiCacheService$ ->() { +>()("@effect-aws/client-elasticache/ElastiCacheService") { static readonly defaultLayer = Layer.effect(this, makeElastiCacheService).pipe(Layer.provide(Instance.layer)); static readonly layer = (config: ElastiCacheService.Config) => Layer.effect(this, makeElastiCacheService).pipe( diff --git a/packages/client-elasticache/src/ElastiCacheServiceConfig.ts b/packages/client-elasticache/src/ElastiCacheServiceConfig.ts index e37d133f..b06bb93b 100644 --- a/packages/client-elasticache/src/ElastiCacheServiceConfig.ts +++ b/packages/client-elasticache/src/ElastiCacheServiceConfig.ts @@ -3,18 +3,17 @@ */ import type { ElastiCacheClientConfig } from "@aws-sdk/client-elasticache"; import { ServiceLogger } from "@effect-aws/commons"; -import { Effect, FiberRef, Layer } from "effect"; +import { Effect, Layer, ServiceMap } from "effect"; import { dual } from "effect/Function"; -import { globalValue } from "effect/GlobalValue"; import type { ElastiCacheService } from "./ElastiCacheService.js"; /** * @since 1.0.0 * @category elasticache service config */ -const currentElastiCacheServiceConfig = globalValue( +const currentElastiCacheServiceConfig = ServiceMap.Reference( "@effect-aws/client-elasticache/currentElastiCacheServiceConfig", - () => FiberRef.unsafeMake({}), + { defaultValue: () => ({}) }, ); /** @@ -27,7 +26,7 @@ export const withElastiCacheServiceConfig: { } = dual( 2, (effect: Effect.Effect, config: ElastiCacheService.Config): Effect.Effect => - Effect.locally(effect, currentElastiCacheServiceConfig, config), + Effect.provideService(effect, currentElastiCacheServiceConfig, config), ); /** @@ -35,14 +34,14 @@ export const withElastiCacheServiceConfig: { * @category elasticache service config */ export const setElastiCacheServiceConfig = (config: ElastiCacheService.Config) => - Layer.locallyScoped(currentElastiCacheServiceConfig, config); + Layer.succeed(currentElastiCacheServiceConfig, config); /** * @since 1.0.0 * @category adapters */ export const toElastiCacheClientConfig: Effect.Effect = Effect.gen(function*() { - const { logger: serviceLogger, ...config } = yield* FiberRef.get(currentElastiCacheServiceConfig); + const { logger: serviceLogger, ...config } = yield* currentElastiCacheServiceConfig; const logger = serviceLogger === true ? yield* ServiceLogger.toClientLogger(ServiceLogger.defaultServiceLogger) diff --git a/packages/client-elasticache/test/ElastiCache.test.ts b/packages/client-elasticache/test/ElastiCache.test.ts index 475e7430..44f1ece2 100644 --- a/packages/client-elasticache/test/ElastiCache.test.ts +++ b/packages/client-elasticache/test/ElastiCache.test.ts @@ -26,7 +26,7 @@ describe("ElastiCacheClientImpl", () => { const args: ListTagsForResourceCommandInput = { ResourceName: "test" }; - const program = ElastiCache.listTagsForResource(args); + const program = ElastiCache.use((svc) => svc.listTagsForResource(args)); const result = await pipe( program, @@ -46,7 +46,7 @@ describe("ElastiCacheClientImpl", () => { const args: ListTagsForResourceCommandInput = { ResourceName: "test" }; - const program = ElastiCache.listTagsForResource(args); + const program = ElastiCache.use((svc) => svc.listTagsForResource(args)); const result = await pipe( program, @@ -69,7 +69,7 @@ describe("ElastiCacheClientImpl", () => { const args: ListTagsForResourceCommandInput = { ResourceName: "test" }; - const program = ElastiCache.listTagsForResource(args); + const program = ElastiCache.use((svc) => svc.listTagsForResource(args)); const result = await pipe( program, @@ -93,7 +93,7 @@ describe("ElastiCacheClientImpl", () => { const args: ListTagsForResourceCommandInput = { ResourceName: "test" }; - const program = ElastiCache.listTagsForResource(args); + const program = ElastiCache.use((svc) => svc.listTagsForResource(args)); const result = await pipe( program, @@ -121,7 +121,7 @@ describe("ElastiCacheClientImpl", () => { const args: ListTagsForResourceCommandInput = { ResourceName: "test" }; - const program = ElastiCache.listTagsForResource(args); + const program = ElastiCache.use((svc) => svc.listTagsForResource(args)); const result = await pipe( program, @@ -131,7 +131,7 @@ describe("ElastiCacheClientImpl", () => { expect(result).toEqual( Exit.fail( - SdkError({ + new SdkError({ ...new Error("test"), name: "SdkError", message: "test", @@ -156,7 +156,7 @@ describe("ElastiCacheClientImpl", () => { const args: ListTagsForResourceCommandInput = { ResourceName: "test" }; - const program = ElastiCache.listTagsForResource(args).pipe( + const program = ElastiCache.use((svc) => svc.listTagsForResource(args)).pipe( Effect.catchTag("NotHandledException" as any, () => Effect.succeed(null)), ); @@ -166,9 +166,9 @@ describe("ElastiCacheClientImpl", () => { Effect.runPromiseExit, ); - expect(result).toEqual( + expect(result).toContainEqual( Exit.fail( - SdkError({ + new SdkError({ ...new Error("test"), name: "SdkError", message: "test", diff --git a/packages/client-eventbridge/.projen/deps.json b/packages/client-eventbridge/.projen/deps.json index 93b305a0..95765668 100644 --- a/packages/client-eventbridge/.projen/deps.json +++ b/packages/client-eventbridge/.projen/deps.json @@ -7,6 +7,7 @@ }, { "name": "effect", + "version": "4.0.0-beta.8", "type": "build" }, { @@ -16,7 +17,7 @@ }, { "name": "effect", - "version": ">=3.0.4 <4.0.0", + "version": ">=4.0.0 <5.0.0", "type": "peer" }, { diff --git a/packages/client-eventbridge/README.md b/packages/client-eventbridge/README.md index 4b18e35b..0f109b22 100644 --- a/packages/client-eventbridge/README.md +++ b/packages/client-eventbridge/README.md @@ -16,7 +16,7 @@ With default EventBridgeClient instance: ```typescript import { EventBridge } from "@effect-aws/client-eventbridge"; -const program = EventBridge.putEvents(args); +const program = EventBridge.use((svc) => svc.putEvents(args)); const result = pipe( program, @@ -30,7 +30,7 @@ With custom EventBridgeClient instance: ```typescript import { EventBridge } from "@effect-aws/client-eventbridge"; -const program = EventBridge.putEvents(args); +const program = EventBridge.use((svc) => svc.putEvents(args)); const result = await pipe( program, @@ -46,7 +46,7 @@ With custom EventBridgeClient configuration: ```typescript import { EventBridge } from "@effect-aws/client-eventbridge"; -const program = EventBridge.putEvents(args); +const program = EventBridge.use((svc) => svc.putEvents(args)); const result = await pipe( program, diff --git a/packages/client-eventbridge/package.json b/packages/client-eventbridge/package.json index 50ab9ac7..18876378 100644 --- a/packages/client-eventbridge/package.json +++ b/packages/client-eventbridge/package.json @@ -26,11 +26,11 @@ }, "devDependencies": { "@types/node": "ts5.4", - "effect": "^3.16.4", + "effect": "4.0.0-beta.8", "typescript": "^5.4.2" }, "peerDependencies": { - "effect": ">=3.0.4 <4.0.0" + "effect": ">=4.0.0 <5.0.0" }, "dependencies": { "@aws-sdk/client-eventbridge": "^3", diff --git a/packages/client-eventbridge/src/EventBridgeClientInstance.ts b/packages/client-eventbridge/src/EventBridgeClientInstance.ts index fdd4bcc3..5913da28 100644 --- a/packages/client-eventbridge/src/EventBridgeClientInstance.ts +++ b/packages/client-eventbridge/src/EventBridgeClientInstance.ts @@ -2,16 +2,16 @@ * @since 1.0.0 */ import { EventBridgeClient } from "@aws-sdk/client-eventbridge"; -import { Context, Effect, Layer } from "effect"; +import { Effect, Layer, ServiceMap } from "effect"; import * as EventBridgeServiceConfig from "./EventBridgeServiceConfig.js"; /** * @since 1.0.0 * @category tags */ -export class EventBridgeClientInstance extends Context.Tag( +export class EventBridgeClientInstance extends ServiceMap.Service()( "@effect-aws/client-eventbridge/EventBridgeClientInstance", -)() {} +) {} /** * @since 1.0.0 @@ -30,4 +30,4 @@ export const make = Effect.flatMap( * @since 1.0.0 * @category layers */ -export const layer = Layer.scoped(EventBridgeClientInstance, make); +export const layer = Layer.effect(EventBridgeClientInstance, make); diff --git a/packages/client-eventbridge/src/EventBridgeService.ts b/packages/client-eventbridge/src/EventBridgeService.ts index 91fbe47d..5e7f925a 100644 --- a/packages/client-eventbridge/src/EventBridgeService.ts +++ b/packages/client-eventbridge/src/EventBridgeService.ts @@ -179,7 +179,7 @@ import { import type { HttpHandlerOptions, ServiceLogger } from "@effect-aws/commons"; import { Service } from "@effect-aws/commons"; import type { Cause } from "effect"; -import { Effect, Layer } from "effect"; +import { Effect, Layer, ServiceMap } from "effect"; import type { AccessDeniedError, ConcurrentModificationError, @@ -271,7 +271,7 @@ interface EventBridgeService$ { options?: HttpHandlerOptions, ): Effect.Effect< ActivateEventSourceCommandOutput, - | Cause.TimeoutException + | Cause.TimeoutError | SdkError | ConcurrentModificationError | InternalError @@ -288,7 +288,7 @@ interface EventBridgeService$ { options?: HttpHandlerOptions, ): Effect.Effect< CancelReplayCommandOutput, - | Cause.TimeoutException + | Cause.TimeoutError | SdkError | ConcurrentModificationError | IllegalStatusError @@ -304,7 +304,7 @@ interface EventBridgeService$ { options?: HttpHandlerOptions, ): Effect.Effect< CreateApiDestinationCommandOutput, - | Cause.TimeoutException + | Cause.TimeoutError | SdkError | InternalError | LimitExceededError @@ -320,7 +320,7 @@ interface EventBridgeService$ { options?: HttpHandlerOptions, ): Effect.Effect< CreateArchiveCommandOutput, - | Cause.TimeoutException + | Cause.TimeoutError | SdkError | ConcurrentModificationError | InternalError @@ -338,7 +338,7 @@ interface EventBridgeService$ { options?: HttpHandlerOptions, ): Effect.Effect< CreateConnectionCommandOutput, - | Cause.TimeoutException + | Cause.TimeoutError | SdkError | AccessDeniedError | InternalError @@ -356,7 +356,7 @@ interface EventBridgeService$ { options?: HttpHandlerOptions, ): Effect.Effect< CreateEndpointCommandOutput, - Cause.TimeoutException | SdkError | InternalError | LimitExceededError | ResourceAlreadyExistsError + Cause.TimeoutError | SdkError | InternalError | LimitExceededError | ResourceAlreadyExistsError >; /** @@ -367,7 +367,7 @@ interface EventBridgeService$ { options?: HttpHandlerOptions, ): Effect.Effect< CreateEventBusCommandOutput, - | Cause.TimeoutException + | Cause.TimeoutError | SdkError | ConcurrentModificationError | InternalError @@ -386,7 +386,7 @@ interface EventBridgeService$ { options?: HttpHandlerOptions, ): Effect.Effect< CreatePartnerEventSourceCommandOutput, - | Cause.TimeoutException + | Cause.TimeoutError | SdkError | ConcurrentModificationError | InternalError @@ -403,7 +403,7 @@ interface EventBridgeService$ { options?: HttpHandlerOptions, ): Effect.Effect< DeactivateEventSourceCommandOutput, - | Cause.TimeoutException + | Cause.TimeoutError | SdkError | ConcurrentModificationError | InternalError @@ -420,7 +420,7 @@ interface EventBridgeService$ { options?: HttpHandlerOptions, ): Effect.Effect< DeauthorizeConnectionCommandOutput, - Cause.TimeoutException | SdkError | ConcurrentModificationError | InternalError | ResourceNotFoundError + Cause.TimeoutError | SdkError | ConcurrentModificationError | InternalError | ResourceNotFoundError >; /** @@ -431,7 +431,7 @@ interface EventBridgeService$ { options?: HttpHandlerOptions, ): Effect.Effect< DeleteApiDestinationCommandOutput, - Cause.TimeoutException | SdkError | ConcurrentModificationError | InternalError | ResourceNotFoundError + Cause.TimeoutError | SdkError | ConcurrentModificationError | InternalError | ResourceNotFoundError >; /** @@ -442,7 +442,7 @@ interface EventBridgeService$ { options?: HttpHandlerOptions, ): Effect.Effect< DeleteArchiveCommandOutput, - Cause.TimeoutException | SdkError | ConcurrentModificationError | InternalError | ResourceNotFoundError + Cause.TimeoutError | SdkError | ConcurrentModificationError | InternalError | ResourceNotFoundError >; /** @@ -453,7 +453,7 @@ interface EventBridgeService$ { options?: HttpHandlerOptions, ): Effect.Effect< DeleteConnectionCommandOutput, - Cause.TimeoutException | SdkError | ConcurrentModificationError | InternalError | ResourceNotFoundError + Cause.TimeoutError | SdkError | ConcurrentModificationError | InternalError | ResourceNotFoundError >; /** @@ -464,7 +464,7 @@ interface EventBridgeService$ { options?: HttpHandlerOptions, ): Effect.Effect< DeleteEndpointCommandOutput, - Cause.TimeoutException | SdkError | ConcurrentModificationError | InternalError | ResourceNotFoundError + Cause.TimeoutError | SdkError | ConcurrentModificationError | InternalError | ResourceNotFoundError >; /** @@ -475,7 +475,7 @@ interface EventBridgeService$ { options?: HttpHandlerOptions, ): Effect.Effect< DeleteEventBusCommandOutput, - Cause.TimeoutException | SdkError | ConcurrentModificationError | InternalError + Cause.TimeoutError | SdkError | ConcurrentModificationError | InternalError >; /** @@ -486,7 +486,7 @@ interface EventBridgeService$ { options?: HttpHandlerOptions, ): Effect.Effect< DeletePartnerEventSourceCommandOutput, - Cause.TimeoutException | SdkError | ConcurrentModificationError | InternalError | OperationDisabledError + Cause.TimeoutError | SdkError | ConcurrentModificationError | InternalError | OperationDisabledError >; /** @@ -497,7 +497,7 @@ interface EventBridgeService$ { options?: HttpHandlerOptions, ): Effect.Effect< DeleteRuleCommandOutput, - | Cause.TimeoutException + | Cause.TimeoutError | SdkError | ConcurrentModificationError | InternalError @@ -513,7 +513,7 @@ interface EventBridgeService$ { options?: HttpHandlerOptions, ): Effect.Effect< DescribeApiDestinationCommandOutput, - Cause.TimeoutException | SdkError | InternalError | ResourceNotFoundError + Cause.TimeoutError | SdkError | InternalError | ResourceNotFoundError >; /** @@ -524,7 +524,7 @@ interface EventBridgeService$ { options?: HttpHandlerOptions, ): Effect.Effect< DescribeArchiveCommandOutput, - Cause.TimeoutException | SdkError | InternalError | ResourceAlreadyExistsError | ResourceNotFoundError + Cause.TimeoutError | SdkError | InternalError | ResourceAlreadyExistsError | ResourceNotFoundError >; /** @@ -535,7 +535,7 @@ interface EventBridgeService$ { options?: HttpHandlerOptions, ): Effect.Effect< DescribeConnectionCommandOutput, - Cause.TimeoutException | SdkError | InternalError | ResourceNotFoundError + Cause.TimeoutError | SdkError | InternalError | ResourceNotFoundError >; /** @@ -546,7 +546,7 @@ interface EventBridgeService$ { options?: HttpHandlerOptions, ): Effect.Effect< DescribeEndpointCommandOutput, - Cause.TimeoutException | SdkError | InternalError | ResourceNotFoundError + Cause.TimeoutError | SdkError | InternalError | ResourceNotFoundError >; /** @@ -557,7 +557,7 @@ interface EventBridgeService$ { options?: HttpHandlerOptions, ): Effect.Effect< DescribeEventBusCommandOutput, - Cause.TimeoutException | SdkError | InternalError | ResourceNotFoundError + Cause.TimeoutError | SdkError | InternalError | ResourceNotFoundError >; /** @@ -568,7 +568,7 @@ interface EventBridgeService$ { options?: HttpHandlerOptions, ): Effect.Effect< DescribeEventSourceCommandOutput, - Cause.TimeoutException | SdkError | InternalError | OperationDisabledError | ResourceNotFoundError + Cause.TimeoutError | SdkError | InternalError | OperationDisabledError | ResourceNotFoundError >; /** @@ -579,7 +579,7 @@ interface EventBridgeService$ { options?: HttpHandlerOptions, ): Effect.Effect< DescribePartnerEventSourceCommandOutput, - Cause.TimeoutException | SdkError | InternalError | OperationDisabledError | ResourceNotFoundError + Cause.TimeoutError | SdkError | InternalError | OperationDisabledError | ResourceNotFoundError >; /** @@ -590,7 +590,7 @@ interface EventBridgeService$ { options?: HttpHandlerOptions, ): Effect.Effect< DescribeReplayCommandOutput, - Cause.TimeoutException | SdkError | InternalError | ResourceNotFoundError + Cause.TimeoutError | SdkError | InternalError | ResourceNotFoundError >; /** @@ -601,7 +601,7 @@ interface EventBridgeService$ { options?: HttpHandlerOptions, ): Effect.Effect< DescribeRuleCommandOutput, - Cause.TimeoutException | SdkError | InternalError | ResourceNotFoundError + Cause.TimeoutError | SdkError | InternalError | ResourceNotFoundError >; /** @@ -612,7 +612,7 @@ interface EventBridgeService$ { options?: HttpHandlerOptions, ): Effect.Effect< DisableRuleCommandOutput, - | Cause.TimeoutException + | Cause.TimeoutError | SdkError | ConcurrentModificationError | InternalError @@ -628,7 +628,7 @@ interface EventBridgeService$ { options?: HttpHandlerOptions, ): Effect.Effect< EnableRuleCommandOutput, - | Cause.TimeoutException + | Cause.TimeoutError | SdkError | ConcurrentModificationError | InternalError @@ -644,7 +644,7 @@ interface EventBridgeService$ { options?: HttpHandlerOptions, ): Effect.Effect< ListApiDestinationsCommandOutput, - Cause.TimeoutException | SdkError | InternalError + Cause.TimeoutError | SdkError | InternalError >; /** @@ -655,7 +655,7 @@ interface EventBridgeService$ { options?: HttpHandlerOptions, ): Effect.Effect< ListArchivesCommandOutput, - Cause.TimeoutException | SdkError | InternalError | ResourceNotFoundError + Cause.TimeoutError | SdkError | InternalError | ResourceNotFoundError >; /** @@ -666,7 +666,7 @@ interface EventBridgeService$ { options?: HttpHandlerOptions, ): Effect.Effect< ListConnectionsCommandOutput, - Cause.TimeoutException | SdkError | InternalError + Cause.TimeoutError | SdkError | InternalError >; /** @@ -677,7 +677,7 @@ interface EventBridgeService$ { options?: HttpHandlerOptions, ): Effect.Effect< ListEndpointsCommandOutput, - Cause.TimeoutException | SdkError | InternalError + Cause.TimeoutError | SdkError | InternalError >; /** @@ -688,7 +688,7 @@ interface EventBridgeService$ { options?: HttpHandlerOptions, ): Effect.Effect< ListEventBusesCommandOutput, - Cause.TimeoutException | SdkError | InternalError + Cause.TimeoutError | SdkError | InternalError >; /** @@ -699,7 +699,7 @@ interface EventBridgeService$ { options?: HttpHandlerOptions, ): Effect.Effect< ListEventSourcesCommandOutput, - Cause.TimeoutException | SdkError | InternalError | OperationDisabledError + Cause.TimeoutError | SdkError | InternalError | OperationDisabledError >; /** @@ -710,7 +710,7 @@ interface EventBridgeService$ { options?: HttpHandlerOptions, ): Effect.Effect< ListPartnerEventSourceAccountsCommandOutput, - Cause.TimeoutException | SdkError | InternalError | OperationDisabledError | ResourceNotFoundError + Cause.TimeoutError | SdkError | InternalError | OperationDisabledError | ResourceNotFoundError >; /** @@ -721,7 +721,7 @@ interface EventBridgeService$ { options?: HttpHandlerOptions, ): Effect.Effect< ListPartnerEventSourcesCommandOutput, - Cause.TimeoutException | SdkError | InternalError | OperationDisabledError + Cause.TimeoutError | SdkError | InternalError | OperationDisabledError >; /** @@ -732,7 +732,7 @@ interface EventBridgeService$ { options?: HttpHandlerOptions, ): Effect.Effect< ListReplaysCommandOutput, - Cause.TimeoutException | SdkError | InternalError + Cause.TimeoutError | SdkError | InternalError >; /** @@ -743,7 +743,7 @@ interface EventBridgeService$ { options?: HttpHandlerOptions, ): Effect.Effect< ListRuleNamesByTargetCommandOutput, - Cause.TimeoutException | SdkError | InternalError | ResourceNotFoundError + Cause.TimeoutError | SdkError | InternalError | ResourceNotFoundError >; /** @@ -754,7 +754,7 @@ interface EventBridgeService$ { options?: HttpHandlerOptions, ): Effect.Effect< ListRulesCommandOutput, - Cause.TimeoutException | SdkError | InternalError | ResourceNotFoundError + Cause.TimeoutError | SdkError | InternalError | ResourceNotFoundError >; /** @@ -765,7 +765,7 @@ interface EventBridgeService$ { options?: HttpHandlerOptions, ): Effect.Effect< ListTagsForResourceCommandOutput, - Cause.TimeoutException | SdkError | InternalError | ResourceNotFoundError + Cause.TimeoutError | SdkError | InternalError | ResourceNotFoundError >; /** @@ -776,7 +776,7 @@ interface EventBridgeService$ { options?: HttpHandlerOptions, ): Effect.Effect< ListTargetsByRuleCommandOutput, - Cause.TimeoutException | SdkError | InternalError | ResourceNotFoundError + Cause.TimeoutError | SdkError | InternalError | ResourceNotFoundError >; /** @@ -787,7 +787,7 @@ interface EventBridgeService$ { options?: HttpHandlerOptions, ): Effect.Effect< PutEventsCommandOutput, - Cause.TimeoutException | SdkError | InternalError + Cause.TimeoutError | SdkError | InternalError >; /** @@ -798,7 +798,7 @@ interface EventBridgeService$ { options?: HttpHandlerOptions, ): Effect.Effect< PutPartnerEventsCommandOutput, - Cause.TimeoutException | SdkError | InternalError | OperationDisabledError + Cause.TimeoutError | SdkError | InternalError | OperationDisabledError >; /** @@ -809,7 +809,7 @@ interface EventBridgeService$ { options?: HttpHandlerOptions, ): Effect.Effect< PutPermissionCommandOutput, - | Cause.TimeoutException + | Cause.TimeoutError | SdkError | ConcurrentModificationError | InternalError @@ -826,7 +826,7 @@ interface EventBridgeService$ { options?: HttpHandlerOptions, ): Effect.Effect< PutRuleCommandOutput, - | Cause.TimeoutException + | Cause.TimeoutError | SdkError | ConcurrentModificationError | InternalError @@ -844,7 +844,7 @@ interface EventBridgeService$ { options?: HttpHandlerOptions, ): Effect.Effect< PutTargetsCommandOutput, - | Cause.TimeoutException + | Cause.TimeoutError | SdkError | ConcurrentModificationError | InternalError @@ -861,7 +861,7 @@ interface EventBridgeService$ { options?: HttpHandlerOptions, ): Effect.Effect< RemovePermissionCommandOutput, - | Cause.TimeoutException + | Cause.TimeoutError | SdkError | ConcurrentModificationError | InternalError @@ -877,7 +877,7 @@ interface EventBridgeService$ { options?: HttpHandlerOptions, ): Effect.Effect< RemoveTargetsCommandOutput, - | Cause.TimeoutException + | Cause.TimeoutError | SdkError | ConcurrentModificationError | InternalError @@ -893,7 +893,7 @@ interface EventBridgeService$ { options?: HttpHandlerOptions, ): Effect.Effect< StartReplayCommandOutput, - | Cause.TimeoutException + | Cause.TimeoutError | SdkError | InternalError | InvalidEventPatternError @@ -910,7 +910,7 @@ interface EventBridgeService$ { options?: HttpHandlerOptions, ): Effect.Effect< TagResourceCommandOutput, - | Cause.TimeoutException + | Cause.TimeoutError | SdkError | ConcurrentModificationError | InternalError @@ -926,7 +926,7 @@ interface EventBridgeService$ { options?: HttpHandlerOptions, ): Effect.Effect< TestEventPatternCommandOutput, - Cause.TimeoutException | SdkError | InternalError | InvalidEventPatternError + Cause.TimeoutError | SdkError | InternalError | InvalidEventPatternError >; /** @@ -937,7 +937,7 @@ interface EventBridgeService$ { options?: HttpHandlerOptions, ): Effect.Effect< UntagResourceCommandOutput, - | Cause.TimeoutException + | Cause.TimeoutError | SdkError | ConcurrentModificationError | InternalError @@ -953,7 +953,7 @@ interface EventBridgeService$ { options?: HttpHandlerOptions, ): Effect.Effect< UpdateApiDestinationCommandOutput, - | Cause.TimeoutException + | Cause.TimeoutError | SdkError | ConcurrentModificationError | InternalError @@ -969,7 +969,7 @@ interface EventBridgeService$ { options?: HttpHandlerOptions, ): Effect.Effect< UpdateArchiveCommandOutput, - | Cause.TimeoutException + | Cause.TimeoutError | SdkError | ConcurrentModificationError | InternalError @@ -986,7 +986,7 @@ interface EventBridgeService$ { options?: HttpHandlerOptions, ): Effect.Effect< UpdateConnectionCommandOutput, - | Cause.TimeoutException + | Cause.TimeoutError | SdkError | AccessDeniedError | ConcurrentModificationError @@ -1004,7 +1004,7 @@ interface EventBridgeService$ { options?: HttpHandlerOptions, ): Effect.Effect< UpdateEndpointCommandOutput, - Cause.TimeoutException | SdkError | ConcurrentModificationError | InternalError | ResourceNotFoundError + Cause.TimeoutError | SdkError | ConcurrentModificationError | InternalError | ResourceNotFoundError >; /** @@ -1015,7 +1015,7 @@ interface EventBridgeService$ { options?: HttpHandlerOptions, ): Effect.Effect< UpdateEventBusCommandOutput, - | Cause.TimeoutException + | Cause.TimeoutError | SdkError | ConcurrentModificationError | InternalError @@ -1045,10 +1045,10 @@ export const makeEventBridgeService = Effect.gen(function*() { * @since 1.0.0 * @category models */ -export class EventBridgeService extends Effect.Tag("@effect-aws/client-eventbridge/EventBridgeService")< +export class EventBridgeService extends ServiceMap.Service< EventBridgeService, EventBridgeService$ ->() { +>()("@effect-aws/client-eventbridge/EventBridgeService") { static readonly defaultLayer = Layer.effect(this, makeEventBridgeService).pipe(Layer.provide(Instance.layer)); static readonly layer = (config: EventBridgeService.Config) => Layer.effect(this, makeEventBridgeService).pipe( diff --git a/packages/client-eventbridge/src/EventBridgeServiceConfig.ts b/packages/client-eventbridge/src/EventBridgeServiceConfig.ts index 9f3116b8..b75904ae 100644 --- a/packages/client-eventbridge/src/EventBridgeServiceConfig.ts +++ b/packages/client-eventbridge/src/EventBridgeServiceConfig.ts @@ -3,18 +3,17 @@ */ import type { EventBridgeClientConfig } from "@aws-sdk/client-eventbridge"; import { ServiceLogger } from "@effect-aws/commons"; -import { Effect, FiberRef, Layer } from "effect"; +import { Effect, Layer, ServiceMap } from "effect"; import { dual } from "effect/Function"; -import { globalValue } from "effect/GlobalValue"; import type { EventBridgeService } from "./EventBridgeService.js"; /** * @since 1.0.0 * @category eventbridge service config */ -const currentEventBridgeServiceConfig = globalValue( +const currentEventBridgeServiceConfig = ServiceMap.Reference( "@effect-aws/client-eventbridge/currentEventBridgeServiceConfig", - () => FiberRef.unsafeMake({}), + { defaultValue: () => ({}) }, ); /** @@ -27,7 +26,7 @@ export const withEventBridgeServiceConfig: { } = dual( 2, (effect: Effect.Effect, config: EventBridgeService.Config): Effect.Effect => - Effect.locally(effect, currentEventBridgeServiceConfig, config), + Effect.provideService(effect, currentEventBridgeServiceConfig, config), ); /** @@ -35,14 +34,14 @@ export const withEventBridgeServiceConfig: { * @category eventbridge service config */ export const setEventBridgeServiceConfig = (config: EventBridgeService.Config) => - Layer.locallyScoped(currentEventBridgeServiceConfig, config); + Layer.succeed(currentEventBridgeServiceConfig, config); /** * @since 1.0.0 * @category adapters */ export const toEventBridgeClientConfig: Effect.Effect = Effect.gen(function*() { - const { logger: serviceLogger, ...config } = yield* FiberRef.get(currentEventBridgeServiceConfig); + const { logger: serviceLogger, ...config } = yield* currentEventBridgeServiceConfig; const logger = serviceLogger === true ? yield* ServiceLogger.toClientLogger(ServiceLogger.defaultServiceLogger) diff --git a/packages/client-eventbridge/test/EventBridge.test.ts b/packages/client-eventbridge/test/EventBridge.test.ts index 53d63721..6b0982d0 100644 --- a/packages/client-eventbridge/test/EventBridge.test.ts +++ b/packages/client-eventbridge/test/EventBridge.test.ts @@ -26,7 +26,7 @@ describe("EventBridgeClientImpl", () => { const args: PutEventsCommandInput = { Entries: [{ Detail: "test" }] }; - const program = EventBridge.putEvents(args); + const program = EventBridge.use((svc) => svc.putEvents(args)); const result = await pipe( program, @@ -46,7 +46,7 @@ describe("EventBridgeClientImpl", () => { const args: PutEventsCommandInput = { Entries: [{ Detail: "test" }] }; - const program = EventBridge.putEvents(args); + const program = EventBridge.use((svc) => svc.putEvents(args)); const result = await pipe( program, @@ -69,7 +69,7 @@ describe("EventBridgeClientImpl", () => { const args: PutEventsCommandInput = { Entries: [{ Detail: "test" }] }; - const program = EventBridge.putEvents(args); + const program = EventBridge.use((svc) => svc.putEvents(args)); const result = await pipe( program, @@ -93,7 +93,7 @@ describe("EventBridgeClientImpl", () => { const args: PutEventsCommandInput = { Entries: [{ Detail: "test" }] }; - const program = EventBridge.putEvents(args); + const program = EventBridge.use((svc) => svc.putEvents(args)); const result = await pipe( program, @@ -121,7 +121,7 @@ describe("EventBridgeClientImpl", () => { const args: PutEventsCommandInput = { Entries: [{ Detail: "test" }] }; - const program = EventBridge.putEvents(args); + const program = EventBridge.use((svc) => svc.putEvents(args)); const result = await pipe( program, @@ -131,7 +131,7 @@ describe("EventBridgeClientImpl", () => { expect(result).toEqual( Exit.fail( - SdkError({ + new SdkError({ ...new Error("test"), name: "SdkError", message: "test", @@ -156,7 +156,7 @@ describe("EventBridgeClientImpl", () => { const args: PutEventsCommandInput = { Entries: [{ Detail: "test" }] }; - const program = EventBridge.putEvents(args).pipe( + const program = EventBridge.use((svc) => svc.putEvents(args)).pipe( Effect.catchTag("NotHandledException" as any, () => Effect.succeed(null)), ); @@ -166,9 +166,9 @@ describe("EventBridgeClientImpl", () => { Effect.runPromiseExit, ); - expect(result).toEqual( + expect(result).toContainEqual( Exit.fail( - SdkError({ + new SdkError({ ...new Error("test"), name: "SdkError", message: "test", diff --git a/packages/client-firehose/.projen/deps.json b/packages/client-firehose/.projen/deps.json index 5ef5abd5..d8e9ec50 100644 --- a/packages/client-firehose/.projen/deps.json +++ b/packages/client-firehose/.projen/deps.json @@ -7,6 +7,7 @@ }, { "name": "effect", + "version": "4.0.0-beta.8", "type": "build" }, { @@ -16,7 +17,7 @@ }, { "name": "effect", - "version": ">=3.0.4 <4.0.0", + "version": ">=4.0.0 <5.0.0", "type": "peer" }, { diff --git a/packages/client-firehose/README.md b/packages/client-firehose/README.md index 878715c5..37b29bec 100644 --- a/packages/client-firehose/README.md +++ b/packages/client-firehose/README.md @@ -16,7 +16,7 @@ With default FirehoseClient instance: ```typescript import { Firehose } from "@effect-aws/client-firehose"; -const program = Firehose.putRecord(args); +const program = Firehose.use((svc) => svc.putRecord(args)); const result = pipe( program, @@ -30,7 +30,7 @@ With custom FirehoseClient instance: ```typescript import { Firehose } from "@effect-aws/client-firehose"; -const program = Firehose.putRecord(args); +const program = Firehose.use((svc) => svc.putRecord(args)); const result = await pipe( program, @@ -46,7 +46,7 @@ With custom FirehoseClient configuration: ```typescript import { Firehose } from "@effect-aws/client-firehose"; -const program = Firehose.putRecord(args); +const program = Firehose.use((svc) => svc.putRecord(args)); const result = await pipe( program, diff --git a/packages/client-firehose/package.json b/packages/client-firehose/package.json index 31a608ee..417fee5f 100644 --- a/packages/client-firehose/package.json +++ b/packages/client-firehose/package.json @@ -26,11 +26,11 @@ }, "devDependencies": { "@types/node": "ts5.4", - "effect": "^3.16.4", + "effect": "4.0.0-beta.8", "typescript": "^5.4.2" }, "peerDependencies": { - "effect": ">=3.0.4 <4.0.0" + "effect": ">=4.0.0 <5.0.0" }, "dependencies": { "@aws-sdk/client-firehose": "^3", diff --git a/packages/client-firehose/src/FirehoseClientInstance.ts b/packages/client-firehose/src/FirehoseClientInstance.ts index e562a9e7..7e4f9034 100644 --- a/packages/client-firehose/src/FirehoseClientInstance.ts +++ b/packages/client-firehose/src/FirehoseClientInstance.ts @@ -2,16 +2,16 @@ * @since 1.0.0 */ import { FirehoseClient } from "@aws-sdk/client-firehose"; -import { Context, Effect, Layer } from "effect"; +import { Effect, Layer, ServiceMap } from "effect"; import * as FirehoseServiceConfig from "./FirehoseServiceConfig.js"; /** * @since 1.0.0 * @category tags */ -export class FirehoseClientInstance extends Context.Tag( +export class FirehoseClientInstance extends ServiceMap.Service()( "@effect-aws/client-firehose/FirehoseClientInstance", -)() {} +) {} /** * @since 1.0.0 @@ -30,4 +30,4 @@ export const make = Effect.flatMap( * @since 1.0.0 * @category layers */ -export const layer = Layer.scoped(FirehoseClientInstance, make); +export const layer = Layer.effect(FirehoseClientInstance, make); diff --git a/packages/client-firehose/src/FirehoseService.ts b/packages/client-firehose/src/FirehoseService.ts index 99b7c33e..d4ff35ff 100644 --- a/packages/client-firehose/src/FirehoseService.ts +++ b/packages/client-firehose/src/FirehoseService.ts @@ -44,7 +44,7 @@ import { import type { HttpHandlerOptions, ServiceLogger } from "@effect-aws/commons"; import { Service } from "@effect-aws/commons"; import type { Cause } from "effect"; -import { Effect, Layer } from "effect"; +import { Effect, Layer, ServiceMap } from "effect"; import type { ConcurrentModificationError, InvalidArgumentError, @@ -86,7 +86,7 @@ interface FirehoseService$ { options?: HttpHandlerOptions, ): Effect.Effect< CreateDeliveryStreamCommandOutput, - | Cause.TimeoutException + | Cause.TimeoutError | SdkError | InvalidArgumentError | InvalidKMSResourceError @@ -102,7 +102,7 @@ interface FirehoseService$ { options?: HttpHandlerOptions, ): Effect.Effect< DeleteDeliveryStreamCommandOutput, - Cause.TimeoutException | SdkError | ResourceInUseError | ResourceNotFoundError + Cause.TimeoutError | SdkError | ResourceInUseError | ResourceNotFoundError >; /** @@ -113,7 +113,7 @@ interface FirehoseService$ { options?: HttpHandlerOptions, ): Effect.Effect< DescribeDeliveryStreamCommandOutput, - Cause.TimeoutException | SdkError | ResourceNotFoundError + Cause.TimeoutError | SdkError | ResourceNotFoundError >; /** @@ -124,7 +124,7 @@ interface FirehoseService$ { options?: HttpHandlerOptions, ): Effect.Effect< ListDeliveryStreamsCommandOutput, - Cause.TimeoutException | SdkError + Cause.TimeoutError | SdkError >; /** @@ -135,7 +135,7 @@ interface FirehoseService$ { options?: HttpHandlerOptions, ): Effect.Effect< ListTagsForDeliveryStreamCommandOutput, - Cause.TimeoutException | SdkError | InvalidArgumentError | LimitExceededError | ResourceNotFoundError + Cause.TimeoutError | SdkError | InvalidArgumentError | LimitExceededError | ResourceNotFoundError >; /** @@ -146,7 +146,7 @@ interface FirehoseService$ { options?: HttpHandlerOptions, ): Effect.Effect< PutRecordCommandOutput, - | Cause.TimeoutException + | Cause.TimeoutError | SdkError | InvalidArgumentError | InvalidKMSResourceError @@ -163,7 +163,7 @@ interface FirehoseService$ { options?: HttpHandlerOptions, ): Effect.Effect< PutRecordBatchCommandOutput, - | Cause.TimeoutException + | Cause.TimeoutError | SdkError | InvalidArgumentError | InvalidKMSResourceError @@ -180,7 +180,7 @@ interface FirehoseService$ { options?: HttpHandlerOptions, ): Effect.Effect< StartDeliveryStreamEncryptionCommandOutput, - | Cause.TimeoutException + | Cause.TimeoutError | SdkError | InvalidArgumentError | InvalidKMSResourceError @@ -197,7 +197,7 @@ interface FirehoseService$ { options?: HttpHandlerOptions, ): Effect.Effect< StopDeliveryStreamEncryptionCommandOutput, - | Cause.TimeoutException + | Cause.TimeoutError | SdkError | InvalidArgumentError | LimitExceededError @@ -213,7 +213,7 @@ interface FirehoseService$ { options?: HttpHandlerOptions, ): Effect.Effect< TagDeliveryStreamCommandOutput, - | Cause.TimeoutException + | Cause.TimeoutError | SdkError | InvalidArgumentError | LimitExceededError @@ -229,7 +229,7 @@ interface FirehoseService$ { options?: HttpHandlerOptions, ): Effect.Effect< UntagDeliveryStreamCommandOutput, - | Cause.TimeoutException + | Cause.TimeoutError | SdkError | InvalidArgumentError | LimitExceededError @@ -245,7 +245,7 @@ interface FirehoseService$ { options?: HttpHandlerOptions, ): Effect.Effect< UpdateDestinationCommandOutput, - | Cause.TimeoutException + | Cause.TimeoutError | SdkError | ConcurrentModificationError | InvalidArgumentError @@ -275,10 +275,10 @@ export const makeFirehoseService = Effect.gen(function*() { * @since 1.0.0 * @category models */ -export class FirehoseService extends Effect.Tag("@effect-aws/client-firehose/FirehoseService")< +export class FirehoseService extends ServiceMap.Service< FirehoseService, FirehoseService$ ->() { +>()("@effect-aws/client-firehose/FirehoseService") { static readonly defaultLayer = Layer.effect(this, makeFirehoseService).pipe(Layer.provide(Instance.layer)); static readonly layer = (config: FirehoseService.Config) => Layer.effect(this, makeFirehoseService).pipe( diff --git a/packages/client-firehose/src/FirehoseServiceConfig.ts b/packages/client-firehose/src/FirehoseServiceConfig.ts index 7bd47036..702b9d1a 100644 --- a/packages/client-firehose/src/FirehoseServiceConfig.ts +++ b/packages/client-firehose/src/FirehoseServiceConfig.ts @@ -3,18 +3,17 @@ */ import type { FirehoseClientConfig } from "@aws-sdk/client-firehose"; import { ServiceLogger } from "@effect-aws/commons"; -import { Effect, FiberRef, Layer } from "effect"; +import { Effect, Layer, ServiceMap } from "effect"; import { dual } from "effect/Function"; -import { globalValue } from "effect/GlobalValue"; import type { FirehoseService } from "./FirehoseService.js"; /** * @since 1.0.0 * @category firehose service config */ -const currentFirehoseServiceConfig = globalValue( +const currentFirehoseServiceConfig = ServiceMap.Reference( "@effect-aws/client-firehose/currentFirehoseServiceConfig", - () => FiberRef.unsafeMake({}), + { defaultValue: () => ({}) }, ); /** @@ -27,7 +26,7 @@ export const withFirehoseServiceConfig: { } = dual( 2, (effect: Effect.Effect, config: FirehoseService.Config): Effect.Effect => - Effect.locally(effect, currentFirehoseServiceConfig, config), + Effect.provideService(effect, currentFirehoseServiceConfig, config), ); /** @@ -35,14 +34,14 @@ export const withFirehoseServiceConfig: { * @category firehose service config */ export const setFirehoseServiceConfig = (config: FirehoseService.Config) => - Layer.locallyScoped(currentFirehoseServiceConfig, config); + Layer.succeed(currentFirehoseServiceConfig, config); /** * @since 1.0.0 * @category adapters */ export const toFirehoseClientConfig: Effect.Effect = Effect.gen(function*() { - const { logger: serviceLogger, ...config } = yield* FiberRef.get(currentFirehoseServiceConfig); + const { logger: serviceLogger, ...config } = yield* currentFirehoseServiceConfig; const logger = serviceLogger === true ? yield* ServiceLogger.toClientLogger(ServiceLogger.defaultServiceLogger) diff --git a/packages/client-firehose/test/Firehose.test.ts b/packages/client-firehose/test/Firehose.test.ts index 28bf4393..9671faac 100644 --- a/packages/client-firehose/test/Firehose.test.ts +++ b/packages/client-firehose/test/Firehose.test.ts @@ -26,7 +26,7 @@ describe("FirehoseClientImpl", () => { const args: PutRecordCommandInput = { Record: { Data: { type: "Buffer", data: [] } } }; - const program = Firehose.putRecord(args); + const program = Firehose.use((svc) => svc.putRecord(args)); const result = await pipe( program, @@ -46,7 +46,7 @@ describe("FirehoseClientImpl", () => { const args: PutRecordCommandInput = { Record: { Data: { type: "Buffer", data: [] } } }; - const program = Firehose.putRecord(args); + const program = Firehose.use((svc) => svc.putRecord(args)); const result = await pipe( program, @@ -69,7 +69,7 @@ describe("FirehoseClientImpl", () => { const args: PutRecordCommandInput = { Record: { Data: { type: "Buffer", data: [] } } }; - const program = Firehose.putRecord(args); + const program = Firehose.use((svc) => svc.putRecord(args)); const result = await pipe( program, @@ -93,7 +93,7 @@ describe("FirehoseClientImpl", () => { const args: PutRecordCommandInput = { Record: { Data: { type: "Buffer", data: [] } } }; - const program = Firehose.putRecord(args); + const program = Firehose.use((svc) => svc.putRecord(args)); const result = await pipe( program, @@ -121,7 +121,7 @@ describe("FirehoseClientImpl", () => { const args: PutRecordCommandInput = { Record: { Data: { type: "Buffer", data: [] } } }; - const program = Firehose.putRecord(args); + const program = Firehose.use((svc) => svc.putRecord(args)); const result = await pipe( program, @@ -131,7 +131,7 @@ describe("FirehoseClientImpl", () => { expect(result).toEqual( Exit.fail( - SdkError({ + new SdkError({ ...new Error("test"), name: "SdkError", message: "test", @@ -156,7 +156,7 @@ describe("FirehoseClientImpl", () => { const args: PutRecordCommandInput = { Record: { Data: { type: "Buffer", data: [] } } }; - const program = Firehose.putRecord(args).pipe( + const program = Firehose.use((svc) => svc.putRecord(args)).pipe( Effect.catchTag("NotHandledException" as any, () => Effect.succeed(null)), ); @@ -166,9 +166,9 @@ describe("FirehoseClientImpl", () => { Effect.runPromiseExit, ); - expect(result).toEqual( + expect(result).toContainEqual( Exit.fail( - SdkError({ + new SdkError({ ...new Error("test"), name: "SdkError", message: "test", diff --git a/packages/client-glue/.projen/deps.json b/packages/client-glue/.projen/deps.json index 34760d97..0fe884b2 100644 --- a/packages/client-glue/.projen/deps.json +++ b/packages/client-glue/.projen/deps.json @@ -7,6 +7,7 @@ }, { "name": "effect", + "version": "4.0.0-beta.8", "type": "build" }, { @@ -16,7 +17,7 @@ }, { "name": "effect", - "version": ">=3.0.4 <4.0.0", + "version": ">=4.0.0 <5.0.0", "type": "peer" }, { diff --git a/packages/client-glue/README.md b/packages/client-glue/README.md index 0867944b..956a5a67 100644 --- a/packages/client-glue/README.md +++ b/packages/client-glue/README.md @@ -16,7 +16,7 @@ With default GlueClient instance: ```typescript import { Glue } from "@effect-aws/client-glue"; -const program = Glue.listJobs(args); +const program = Glue.use((svc) => svc.listJobs(args)); const result = pipe( program, @@ -30,7 +30,7 @@ With custom GlueClient instance: ```typescript import { Glue } from "@effect-aws/client-glue"; -const program = Glue.listJobs(args); +const program = Glue.use((svc) => svc.listJobs(args)); const result = await pipe( program, @@ -46,7 +46,7 @@ With custom GlueClient configuration: ```typescript import { Glue } from "@effect-aws/client-glue"; -const program = Glue.listJobs(args); +const program = Glue.use((svc) => svc.listJobs(args)); const result = await pipe( program, diff --git a/packages/client-glue/package.json b/packages/client-glue/package.json index f8dd822d..6dc8a2f2 100644 --- a/packages/client-glue/package.json +++ b/packages/client-glue/package.json @@ -26,11 +26,11 @@ }, "devDependencies": { "@types/node": "ts5.4", - "effect": "^3.16.4", + "effect": "4.0.0-beta.8", "typescript": "^5.4.2" }, "peerDependencies": { - "effect": ">=3.0.4 <4.0.0" + "effect": ">=4.0.0 <5.0.0" }, "dependencies": { "@aws-sdk/client-glue": "^3", diff --git a/packages/client-glue/src/Errors.ts b/packages/client-glue/src/Errors.ts index 494e75c4..8fe2649b 100644 --- a/packages/client-glue/src/Errors.ts +++ b/packages/client-glue/src/Errors.ts @@ -29,6 +29,9 @@ import type { InvalidIntegrationStateFault, InvalidStateException, KMSKeyNotAccessibleFault, + MaterializedViewRefreshTaskNotRunningException, + MaterializedViewRefreshTaskRunningException, + MaterializedViewRefreshTaskStoppingException, MLTransformNotReadyException, NoScheduleException, OperationNotSupportedException, @@ -79,6 +82,9 @@ export const AllServiceErrors = [ "InvalidStateException", "KMSKeyNotAccessibleFault", "MLTransformNotReadyException", + "MaterializedViewRefreshTaskNotRunningException", + "MaterializedViewRefreshTaskRunningException", + "MaterializedViewRefreshTaskStoppingException", "NoScheduleException", "OperationNotSupportedException", "OperationTimeoutException", @@ -126,6 +132,11 @@ export type InvalidIntegrationStateFaultError = TaggedException; export type KMSKeyNotAccessibleFaultError = TaggedException; export type MLTransformNotReadyError = TaggedException; +export type MaterializedViewRefreshTaskNotRunningError = TaggedException< + MaterializedViewRefreshTaskNotRunningException +>; +export type MaterializedViewRefreshTaskRunningError = TaggedException; +export type MaterializedViewRefreshTaskStoppingError = TaggedException; export type NoScheduleError = TaggedException; export type OperationNotSupportedError = TaggedException; export type OperationTimeoutError = TaggedException; diff --git a/packages/client-glue/src/GlueClientInstance.ts b/packages/client-glue/src/GlueClientInstance.ts index 2f0ffab5..4a41ecb0 100644 --- a/packages/client-glue/src/GlueClientInstance.ts +++ b/packages/client-glue/src/GlueClientInstance.ts @@ -2,16 +2,16 @@ * @since 1.0.0 */ import { GlueClient } from "@aws-sdk/client-glue"; -import { Context, Effect, Layer } from "effect"; +import { Effect, Layer, ServiceMap } from "effect"; import * as GlueServiceConfig from "./GlueServiceConfig.js"; /** * @since 1.0.0 * @category tags */ -export class GlueClientInstance extends Context.Tag( +export class GlueClientInstance extends ServiceMap.Service()( "@effect-aws/client-glue/GlueClientInstance", -)() {} +) {} /** * @since 1.0.0 @@ -30,4 +30,4 @@ export const make = Effect.flatMap( * @since 1.0.0 * @category layers */ -export const layer = Layer.scoped(GlueClientInstance, make); +export const layer = Layer.effect(GlueClientInstance, make); diff --git a/packages/client-glue/src/GlueService.ts b/packages/client-glue/src/GlueService.ts index e3d7bbb9..1159fce5 100644 --- a/packages/client-glue/src/GlueService.ts +++ b/packages/client-glue/src/GlueService.ts @@ -179,6 +179,9 @@ import { DeleteConnectionCommand, type DeleteConnectionCommandInput, type DeleteConnectionCommandOutput, + DeleteConnectionTypeCommand, + type DeleteConnectionTypeCommandInput, + type DeleteConnectionTypeCommandOutput, DeleteCrawlerCommand, type DeleteCrawlerCommandInput, type DeleteCrawlerCommandOutput, @@ -392,6 +395,9 @@ import { GetMappingCommand, type GetMappingCommandInput, type GetMappingCommandOutput, + GetMaterializedViewRefreshTaskRunCommand, + type GetMaterializedViewRefreshTaskRunCommandInput, + type GetMaterializedViewRefreshTaskRunCommandOutput, GetMLTaskRunCommand, type GetMLTaskRunCommandInput, type GetMLTaskRunCommandOutput, @@ -556,6 +562,9 @@ import { ListJobsCommand, type ListJobsCommandInput, type ListJobsCommandOutput, + ListMaterializedViewRefreshTaskRunsCommand, + type ListMaterializedViewRefreshTaskRunsCommandInput, + type ListMaterializedViewRefreshTaskRunsCommandOutput, ListMLTransformsCommand, type ListMLTransformsCommandInput, type ListMLTransformsCommandOutput, @@ -607,6 +616,9 @@ import { QuerySchemaVersionMetadataCommand, type QuerySchemaVersionMetadataCommandInput, type QuerySchemaVersionMetadataCommandOutput, + RegisterConnectionTypeCommand, + type RegisterConnectionTypeCommandInput, + type RegisterConnectionTypeCommandOutput, RegisterSchemaVersionCommand, type RegisterSchemaVersionCommandInput, type RegisterSchemaVersionCommandOutput, @@ -655,6 +667,9 @@ import { StartJobRunCommand, type StartJobRunCommandInput, type StartJobRunCommandOutput, + StartMaterializedViewRefreshTaskRunCommand, + type StartMaterializedViewRefreshTaskRunCommandInput, + type StartMaterializedViewRefreshTaskRunCommandOutput, StartMLEvaluationTaskRunCommand, type StartMLEvaluationTaskRunCommandInput, type StartMLEvaluationTaskRunCommandOutput, @@ -679,6 +694,9 @@ import { StopCrawlerScheduleCommand, type StopCrawlerScheduleCommandInput, type StopCrawlerScheduleCommandOutput, + StopMaterializedViewRefreshTaskRunCommand, + type StopMaterializedViewRefreshTaskRunCommandInput, + type StopMaterializedViewRefreshTaskRunCommandOutput, StopSessionCommand, type StopSessionCommandInput, type StopSessionCommandOutput, @@ -785,7 +803,7 @@ import { import type { HttpHandlerOptions, ServiceLogger } from "@effect-aws/commons"; import { Service } from "@effect-aws/commons"; import type { Cause } from "effect"; -import { Effect, Layer } from "effect"; +import { Effect, Layer, ServiceMap } from "effect"; import type { AccessDeniedError, AlreadyExistsError, @@ -817,6 +835,9 @@ import type { InvalidIntegrationStateFaultError, InvalidStateError, KMSKeyNotAccessibleFaultError, + MaterializedViewRefreshTaskNotRunningError, + MaterializedViewRefreshTaskRunningError, + MaterializedViewRefreshTaskStoppingError, MLTransformNotReadyError, NoScheduleError, OperationNotSupportedError, @@ -898,6 +919,7 @@ const commands = { DeleteColumnStatisticsForTableCommand, DeleteColumnStatisticsTaskSettingsCommand, DeleteConnectionCommand, + DeleteConnectionTypeCommand, DeleteCrawlerCommand, DeleteCustomEntityTypeCommand, DeleteDataQualityRulesetCommand, @@ -973,6 +995,7 @@ const commands = { GetMLTransformCommand, GetMLTransformsCommand, GetMappingCommand, + GetMaterializedViewRefreshTaskRunCommand, GetPartitionCommand, GetPartitionIndexesCommand, GetPartitionsCommand, @@ -1024,6 +1047,7 @@ const commands = { ListIntegrationResourcePropertiesCommand, ListJobsCommand, ListMLTransformsCommand, + ListMaterializedViewRefreshTaskRunsCommand, ListRegistriesCommand, ListSchemaVersionsCommand, ListSchemasCommand, @@ -1040,6 +1064,7 @@ const commands = { PutSchemaVersionMetadataCommand, PutWorkflowRunPropertiesCommand, QuerySchemaVersionMetadataCommand, + RegisterConnectionTypeCommand, RegisterSchemaVersionCommand, RemoveSchemaVersionMetadataCommand, ResetJobBookmarkCommand, @@ -1058,12 +1083,14 @@ const commands = { StartJobRunCommand, StartMLEvaluationTaskRunCommand, StartMLLabelingSetGenerationTaskRunCommand, + StartMaterializedViewRefreshTaskRunCommand, StartTriggerCommand, StartWorkflowRunCommand, StopColumnStatisticsTaskRunCommand, StopColumnStatisticsTaskRunScheduleCommand, StopCrawlerCommand, StopCrawlerScheduleCommand, + StopMaterializedViewRefreshTaskRunCommand, StopSessionCommand, StopTriggerCommand, StopWorkflowRunCommand, @@ -1111,7 +1138,7 @@ interface GlueService$ { options?: HttpHandlerOptions, ): Effect.Effect< BatchCreatePartitionCommandOutput, - | Cause.TimeoutException + | Cause.TimeoutError | SdkError | AlreadyExistsError | EntityNotFoundError @@ -1130,7 +1157,7 @@ interface GlueService$ { options?: HttpHandlerOptions, ): Effect.Effect< BatchDeleteConnectionCommandOutput, - Cause.TimeoutException | SdkError | InternalServiceError | OperationTimeoutError + Cause.TimeoutError | SdkError | InternalServiceError | OperationTimeoutError >; /** @@ -1141,7 +1168,7 @@ interface GlueService$ { options?: HttpHandlerOptions, ): Effect.Effect< BatchDeletePartitionCommandOutput, - | Cause.TimeoutException + | Cause.TimeoutError | SdkError | EntityNotFoundError | InternalServiceError @@ -1157,7 +1184,7 @@ interface GlueService$ { options?: HttpHandlerOptions, ): Effect.Effect< BatchDeleteTableCommandOutput, - | Cause.TimeoutException + | Cause.TimeoutError | SdkError | EntityNotFoundError | GlueEncryptionError @@ -1175,7 +1202,7 @@ interface GlueService$ { options?: HttpHandlerOptions, ): Effect.Effect< BatchDeleteTableVersionCommandOutput, - | Cause.TimeoutException + | Cause.TimeoutError | SdkError | EntityNotFoundError | InternalServiceError @@ -1191,7 +1218,7 @@ interface GlueService$ { options?: HttpHandlerOptions, ): Effect.Effect< BatchGetBlueprintsCommandOutput, - Cause.TimeoutException | SdkError | InternalServiceError | InvalidInputError | OperationTimeoutError + Cause.TimeoutError | SdkError | InternalServiceError | InvalidInputError | OperationTimeoutError >; /** @@ -1202,7 +1229,7 @@ interface GlueService$ { options?: HttpHandlerOptions, ): Effect.Effect< BatchGetCrawlersCommandOutput, - Cause.TimeoutException | SdkError | InvalidInputError | OperationTimeoutError + Cause.TimeoutError | SdkError | InvalidInputError | OperationTimeoutError >; /** @@ -1213,7 +1240,7 @@ interface GlueService$ { options?: HttpHandlerOptions, ): Effect.Effect< BatchGetCustomEntityTypesCommandOutput, - Cause.TimeoutException | SdkError | InternalServiceError | InvalidInputError | OperationTimeoutError + Cause.TimeoutError | SdkError | InternalServiceError | InvalidInputError | OperationTimeoutError >; /** @@ -1224,7 +1251,7 @@ interface GlueService$ { options?: HttpHandlerOptions, ): Effect.Effect< BatchGetDataQualityResultCommandOutput, - Cause.TimeoutException | SdkError | InternalServiceError | InvalidInputError | OperationTimeoutError + Cause.TimeoutError | SdkError | InternalServiceError | InvalidInputError | OperationTimeoutError >; /** @@ -1235,12 +1262,7 @@ interface GlueService$ { options?: HttpHandlerOptions, ): Effect.Effect< BatchGetDevEndpointsCommandOutput, - | Cause.TimeoutException - | SdkError - | AccessDeniedError - | InternalServiceError - | InvalidInputError - | OperationTimeoutError + Cause.TimeoutError | SdkError | AccessDeniedError | InternalServiceError | InvalidInputError | OperationTimeoutError >; /** @@ -1251,7 +1273,7 @@ interface GlueService$ { options?: HttpHandlerOptions, ): Effect.Effect< BatchGetJobsCommandOutput, - Cause.TimeoutException | SdkError | InternalServiceError | InvalidInputError | OperationTimeoutError + Cause.TimeoutError | SdkError | InternalServiceError | InvalidInputError | OperationTimeoutError >; /** @@ -1262,7 +1284,7 @@ interface GlueService$ { options?: HttpHandlerOptions, ): Effect.Effect< BatchGetPartitionCommandOutput, - | Cause.TimeoutException + | Cause.TimeoutError | SdkError | EntityNotFoundError | FederationSourceError @@ -1282,7 +1304,7 @@ interface GlueService$ { options?: HttpHandlerOptions, ): Effect.Effect< BatchGetTableOptimizerCommandOutput, - | Cause.TimeoutException + | Cause.TimeoutError | SdkError | AccessDeniedError | EntityNotFoundError @@ -1299,7 +1321,7 @@ interface GlueService$ { options?: HttpHandlerOptions, ): Effect.Effect< BatchGetTriggersCommandOutput, - Cause.TimeoutException | SdkError | InternalServiceError | InvalidInputError | OperationTimeoutError + Cause.TimeoutError | SdkError | InternalServiceError | InvalidInputError | OperationTimeoutError >; /** @@ -1310,7 +1332,7 @@ interface GlueService$ { options?: HttpHandlerOptions, ): Effect.Effect< BatchGetWorkflowsCommandOutput, - Cause.TimeoutException | SdkError | InternalServiceError | InvalidInputError | OperationTimeoutError + Cause.TimeoutError | SdkError | InternalServiceError | InvalidInputError | OperationTimeoutError >; /** @@ -1321,7 +1343,7 @@ interface GlueService$ { options?: HttpHandlerOptions, ): Effect.Effect< BatchPutDataQualityStatisticAnnotationCommandOutput, - | Cause.TimeoutException + | Cause.TimeoutError | SdkError | EntityNotFoundError | InternalServiceError @@ -1337,7 +1359,7 @@ interface GlueService$ { options?: HttpHandlerOptions, ): Effect.Effect< BatchStopJobRunCommandOutput, - Cause.TimeoutException | SdkError | InternalServiceError | InvalidInputError | OperationTimeoutError + Cause.TimeoutError | SdkError | InternalServiceError | InvalidInputError | OperationTimeoutError >; /** @@ -1348,7 +1370,7 @@ interface GlueService$ { options?: HttpHandlerOptions, ): Effect.Effect< BatchUpdatePartitionCommandOutput, - | Cause.TimeoutException + | Cause.TimeoutError | SdkError | EntityNotFoundError | GlueEncryptionError @@ -1365,7 +1387,7 @@ interface GlueService$ { options?: HttpHandlerOptions, ): Effect.Effect< CancelDataQualityRuleRecommendationRunCommandOutput, - | Cause.TimeoutException + | Cause.TimeoutError | SdkError | EntityNotFoundError | InternalServiceError @@ -1381,7 +1403,7 @@ interface GlueService$ { options?: HttpHandlerOptions, ): Effect.Effect< CancelDataQualityRulesetEvaluationRunCommandOutput, - | Cause.TimeoutException + | Cause.TimeoutError | SdkError | EntityNotFoundError | InternalServiceError @@ -1397,7 +1419,7 @@ interface GlueService$ { options?: HttpHandlerOptions, ): Effect.Effect< CancelMLTaskRunCommandOutput, - | Cause.TimeoutException + | Cause.TimeoutError | SdkError | EntityNotFoundError | InternalServiceError @@ -1413,7 +1435,7 @@ interface GlueService$ { options?: HttpHandlerOptions, ): Effect.Effect< CancelStatementCommandOutput, - | Cause.TimeoutException + | Cause.TimeoutError | SdkError | AccessDeniedError | EntityNotFoundError @@ -1431,7 +1453,7 @@ interface GlueService$ { options?: HttpHandlerOptions, ): Effect.Effect< CheckSchemaVersionValidityCommandOutput, - Cause.TimeoutException | SdkError | AccessDeniedError | InternalServiceError | InvalidInputError + Cause.TimeoutError | SdkError | AccessDeniedError | InternalServiceError | InvalidInputError >; /** @@ -1442,7 +1464,7 @@ interface GlueService$ { options?: HttpHandlerOptions, ): Effect.Effect< CreateBlueprintCommandOutput, - | Cause.TimeoutException + | Cause.TimeoutError | SdkError | AlreadyExistsError | InternalServiceError @@ -1459,7 +1481,7 @@ interface GlueService$ { options?: HttpHandlerOptions, ): Effect.Effect< CreateCatalogCommandOutput, - | Cause.TimeoutException + | Cause.TimeoutError | SdkError | AccessDeniedError | AlreadyExistsError @@ -1482,7 +1504,7 @@ interface GlueService$ { options?: HttpHandlerOptions, ): Effect.Effect< CreateClassifierCommandOutput, - Cause.TimeoutException | SdkError | AlreadyExistsError | InvalidInputError | OperationTimeoutError + Cause.TimeoutError | SdkError | AlreadyExistsError | InvalidInputError | OperationTimeoutError >; /** @@ -1493,7 +1515,7 @@ interface GlueService$ { options?: HttpHandlerOptions, ): Effect.Effect< CreateColumnStatisticsTaskSettingsCommandOutput, - | Cause.TimeoutException + | Cause.TimeoutError | SdkError | AccessDeniedError | AlreadyExistsError @@ -1512,7 +1534,7 @@ interface GlueService$ { options?: HttpHandlerOptions, ): Effect.Effect< CreateConnectionCommandOutput, - | Cause.TimeoutException + | Cause.TimeoutError | SdkError | AlreadyExistsError | GlueEncryptionError @@ -1529,7 +1551,7 @@ interface GlueService$ { options?: HttpHandlerOptions, ): Effect.Effect< CreateCrawlerCommandOutput, - | Cause.TimeoutException + | Cause.TimeoutError | SdkError | AlreadyExistsError | InvalidInputError @@ -1545,7 +1567,7 @@ interface GlueService$ { options?: HttpHandlerOptions, ): Effect.Effect< CreateCustomEntityTypeCommandOutput, - | Cause.TimeoutException + | Cause.TimeoutError | SdkError | AccessDeniedError | AlreadyExistsError @@ -1564,7 +1586,7 @@ interface GlueService$ { options?: HttpHandlerOptions, ): Effect.Effect< CreateDataQualityRulesetCommandOutput, - | Cause.TimeoutException + | Cause.TimeoutError | SdkError | AlreadyExistsError | InternalServiceError @@ -1581,7 +1603,7 @@ interface GlueService$ { options?: HttpHandlerOptions, ): Effect.Effect< CreateDatabaseCommandOutput, - | Cause.TimeoutException + | Cause.TimeoutError | SdkError | AlreadyExistsError | ConcurrentModificationError @@ -1603,7 +1625,7 @@ interface GlueService$ { options?: HttpHandlerOptions, ): Effect.Effect< CreateDevEndpointCommandOutput, - | Cause.TimeoutException + | Cause.TimeoutError | SdkError | AccessDeniedError | AlreadyExistsError @@ -1623,7 +1645,7 @@ interface GlueService$ { options?: HttpHandlerOptions, ): Effect.Effect< CreateGlueIdentityCenterConfigurationCommandOutput, - | Cause.TimeoutException + | Cause.TimeoutError | SdkError | AccessDeniedError | AlreadyExistsError @@ -1641,7 +1663,7 @@ interface GlueService$ { options?: HttpHandlerOptions, ): Effect.Effect< CreateIntegrationCommandOutput, - | Cause.TimeoutException + | Cause.TimeoutError | SdkError | AccessDeniedError | ConflictError @@ -1665,7 +1687,7 @@ interface GlueService$ { options?: HttpHandlerOptions, ): Effect.Effect< CreateIntegrationResourcePropertyCommandOutput, - | Cause.TimeoutException + | Cause.TimeoutError | SdkError | AccessDeniedError | ConflictError @@ -1685,7 +1707,7 @@ interface GlueService$ { options?: HttpHandlerOptions, ): Effect.Effect< CreateIntegrationTablePropertiesCommandOutput, - | Cause.TimeoutException + | Cause.TimeoutError | SdkError | AccessDeniedError | EntityNotFoundError @@ -1704,7 +1726,7 @@ interface GlueService$ { options?: HttpHandlerOptions, ): Effect.Effect< CreateJobCommandOutput, - | Cause.TimeoutException + | Cause.TimeoutError | SdkError | AlreadyExistsError | ConcurrentModificationError @@ -1723,7 +1745,7 @@ interface GlueService$ { options?: HttpHandlerOptions, ): Effect.Effect< CreateMLTransformCommandOutput, - | Cause.TimeoutException + | Cause.TimeoutError | SdkError | AccessDeniedError | AlreadyExistsError @@ -1742,7 +1764,7 @@ interface GlueService$ { options?: HttpHandlerOptions, ): Effect.Effect< CreatePartitionCommandOutput, - | Cause.TimeoutException + | Cause.TimeoutError | SdkError | AlreadyExistsError | EntityNotFoundError @@ -1761,7 +1783,7 @@ interface GlueService$ { options?: HttpHandlerOptions, ): Effect.Effect< CreatePartitionIndexCommandOutput, - | Cause.TimeoutException + | Cause.TimeoutError | SdkError | AlreadyExistsError | EntityNotFoundError @@ -1780,7 +1802,7 @@ interface GlueService$ { options?: HttpHandlerOptions, ): Effect.Effect< CreateRegistryCommandOutput, - | Cause.TimeoutException + | Cause.TimeoutError | SdkError | AccessDeniedError | AlreadyExistsError @@ -1798,7 +1820,7 @@ interface GlueService$ { options?: HttpHandlerOptions, ): Effect.Effect< CreateSchemaCommandOutput, - | Cause.TimeoutException + | Cause.TimeoutError | SdkError | AccessDeniedError | AlreadyExistsError @@ -1817,7 +1839,7 @@ interface GlueService$ { options?: HttpHandlerOptions, ): Effect.Effect< CreateScriptCommandOutput, - Cause.TimeoutException | SdkError | InternalServiceError | InvalidInputError | OperationTimeoutError + Cause.TimeoutError | SdkError | InternalServiceError | InvalidInputError | OperationTimeoutError >; /** @@ -1828,7 +1850,7 @@ interface GlueService$ { options?: HttpHandlerOptions, ): Effect.Effect< CreateSecurityConfigurationCommandOutput, - | Cause.TimeoutException + | Cause.TimeoutError | SdkError | AlreadyExistsError | InternalServiceError @@ -1845,7 +1867,7 @@ interface GlueService$ { options?: HttpHandlerOptions, ): Effect.Effect< CreateSessionCommandOutput, - | Cause.TimeoutException + | Cause.TimeoutError | SdkError | AccessDeniedError | AlreadyExistsError @@ -1865,7 +1887,7 @@ interface GlueService$ { options?: HttpHandlerOptions, ): Effect.Effect< CreateTableCommandOutput, - | Cause.TimeoutException + | Cause.TimeoutError | SdkError | AlreadyExistsError | ConcurrentModificationError @@ -1888,7 +1910,7 @@ interface GlueService$ { options?: HttpHandlerOptions, ): Effect.Effect< CreateTableOptimizerCommandOutput, - | Cause.TimeoutException + | Cause.TimeoutError | SdkError | AccessDeniedError | AlreadyExistsError @@ -1907,7 +1929,7 @@ interface GlueService$ { options?: HttpHandlerOptions, ): Effect.Effect< CreateTriggerCommandOutput, - | Cause.TimeoutException + | Cause.TimeoutError | SdkError | AlreadyExistsError | ConcurrentModificationError @@ -1927,7 +1949,7 @@ interface GlueService$ { options?: HttpHandlerOptions, ): Effect.Effect< CreateUsageProfileCommandOutput, - | Cause.TimeoutException + | Cause.TimeoutError | SdkError | AlreadyExistsError | InternalServiceError @@ -1945,7 +1967,7 @@ interface GlueService$ { options?: HttpHandlerOptions, ): Effect.Effect< CreateUserDefinedFunctionCommandOutput, - | Cause.TimeoutException + | Cause.TimeoutError | SdkError | AlreadyExistsError | EntityNotFoundError @@ -1964,7 +1986,7 @@ interface GlueService$ { options?: HttpHandlerOptions, ): Effect.Effect< CreateWorkflowCommandOutput, - | Cause.TimeoutException + | Cause.TimeoutError | SdkError | AlreadyExistsError | ConcurrentModificationError @@ -1982,7 +2004,7 @@ interface GlueService$ { options?: HttpHandlerOptions, ): Effect.Effect< DeleteBlueprintCommandOutput, - Cause.TimeoutException | SdkError | InternalServiceError | InvalidInputError | OperationTimeoutError + Cause.TimeoutError | SdkError | InternalServiceError | InvalidInputError | OperationTimeoutError >; /** @@ -1993,7 +2015,7 @@ interface GlueService$ { options?: HttpHandlerOptions, ): Effect.Effect< DeleteCatalogCommandOutput, - | Cause.TimeoutException + | Cause.TimeoutError | SdkError | AccessDeniedError | ConcurrentModificationError @@ -2013,7 +2035,7 @@ interface GlueService$ { options?: HttpHandlerOptions, ): Effect.Effect< DeleteClassifierCommandOutput, - Cause.TimeoutException | SdkError | EntityNotFoundError | OperationTimeoutError + Cause.TimeoutError | SdkError | EntityNotFoundError | OperationTimeoutError >; /** @@ -2024,7 +2046,7 @@ interface GlueService$ { options?: HttpHandlerOptions, ): Effect.Effect< DeleteColumnStatisticsForPartitionCommandOutput, - | Cause.TimeoutException + | Cause.TimeoutError | SdkError | EntityNotFoundError | GlueEncryptionError @@ -2041,7 +2063,7 @@ interface GlueService$ { options?: HttpHandlerOptions, ): Effect.Effect< DeleteColumnStatisticsForTableCommandOutput, - | Cause.TimeoutException + | Cause.TimeoutError | SdkError | EntityNotFoundError | GlueEncryptionError @@ -2058,7 +2080,7 @@ interface GlueService$ { options?: HttpHandlerOptions, ): Effect.Effect< DeleteColumnStatisticsTaskSettingsCommandOutput, - Cause.TimeoutException | SdkError | EntityNotFoundError | InvalidInputError | OperationTimeoutError + Cause.TimeoutError | SdkError | EntityNotFoundError | InvalidInputError | OperationTimeoutError >; /** @@ -2069,7 +2091,25 @@ interface GlueService$ { options?: HttpHandlerOptions, ): Effect.Effect< DeleteConnectionCommandOutput, - Cause.TimeoutException | SdkError | EntityNotFoundError | OperationTimeoutError + Cause.TimeoutError | SdkError | EntityNotFoundError | OperationTimeoutError + >; + + /** + * @see {@link DeleteConnectionTypeCommand} + */ + deleteConnectionType( + args: DeleteConnectionTypeCommandInput, + options?: HttpHandlerOptions, + ): Effect.Effect< + DeleteConnectionTypeCommandOutput, + | Cause.TimeoutError + | SdkError + | AccessDeniedError + | EntityNotFoundError + | InternalServiceError + | InvalidInputError + | OperationTimeoutError + | ValidationError >; /** @@ -2080,7 +2120,7 @@ interface GlueService$ { options?: HttpHandlerOptions, ): Effect.Effect< DeleteCrawlerCommandOutput, - | Cause.TimeoutException + | Cause.TimeoutError | SdkError | CrawlerRunningError | EntityNotFoundError @@ -2096,7 +2136,7 @@ interface GlueService$ { options?: HttpHandlerOptions, ): Effect.Effect< DeleteCustomEntityTypeCommandOutput, - | Cause.TimeoutException + | Cause.TimeoutError | SdkError | AccessDeniedError | EntityNotFoundError @@ -2113,7 +2153,7 @@ interface GlueService$ { options?: HttpHandlerOptions, ): Effect.Effect< DeleteDataQualityRulesetCommandOutput, - | Cause.TimeoutException + | Cause.TimeoutError | SdkError | EntityNotFoundError | InternalServiceError @@ -2129,7 +2169,7 @@ interface GlueService$ { options?: HttpHandlerOptions, ): Effect.Effect< DeleteDatabaseCommandOutput, - | Cause.TimeoutException + | Cause.TimeoutError | SdkError | ConcurrentModificationError | EntityNotFoundError @@ -2148,7 +2188,7 @@ interface GlueService$ { options?: HttpHandlerOptions, ): Effect.Effect< DeleteDevEndpointCommandOutput, - | Cause.TimeoutException + | Cause.TimeoutError | SdkError | EntityNotFoundError | InternalServiceError @@ -2164,7 +2204,7 @@ interface GlueService$ { options?: HttpHandlerOptions, ): Effect.Effect< DeleteGlueIdentityCenterConfigurationCommandOutput, - | Cause.TimeoutException + | Cause.TimeoutError | SdkError | AccessDeniedError | ConcurrentModificationError @@ -2182,7 +2222,7 @@ interface GlueService$ { options?: HttpHandlerOptions, ): Effect.Effect< DeleteIntegrationCommandOutput, - | Cause.TimeoutException + | Cause.TimeoutError | SdkError | AccessDeniedError | ConflictError @@ -2205,7 +2245,7 @@ interface GlueService$ { options?: HttpHandlerOptions, ): Effect.Effect< DeleteIntegrationResourcePropertyCommandOutput, - | Cause.TimeoutException + | Cause.TimeoutError | SdkError | AccessDeniedError | EntityNotFoundError @@ -2224,7 +2264,7 @@ interface GlueService$ { options?: HttpHandlerOptions, ): Effect.Effect< DeleteIntegrationTablePropertiesCommandOutput, - | Cause.TimeoutException + | Cause.TimeoutError | SdkError | AccessDeniedError | EntityNotFoundError @@ -2243,7 +2283,7 @@ interface GlueService$ { options?: HttpHandlerOptions, ): Effect.Effect< DeleteJobCommandOutput, - Cause.TimeoutException | SdkError | InternalServiceError | InvalidInputError | OperationTimeoutError + Cause.TimeoutError | SdkError | InternalServiceError | InvalidInputError | OperationTimeoutError >; /** @@ -2254,7 +2294,7 @@ interface GlueService$ { options?: HttpHandlerOptions, ): Effect.Effect< DeleteMLTransformCommandOutput, - | Cause.TimeoutException + | Cause.TimeoutError | SdkError | EntityNotFoundError | InternalServiceError @@ -2270,7 +2310,7 @@ interface GlueService$ { options?: HttpHandlerOptions, ): Effect.Effect< DeletePartitionCommandOutput, - | Cause.TimeoutException + | Cause.TimeoutError | SdkError | EntityNotFoundError | InternalServiceError @@ -2286,7 +2326,7 @@ interface GlueService$ { options?: HttpHandlerOptions, ): Effect.Effect< DeletePartitionIndexCommandOutput, - | Cause.TimeoutException + | Cause.TimeoutError | SdkError | ConflictError | EntityNotFoundError @@ -2304,7 +2344,7 @@ interface GlueService$ { options?: HttpHandlerOptions, ): Effect.Effect< DeleteRegistryCommandOutput, - | Cause.TimeoutException + | Cause.TimeoutError | SdkError | AccessDeniedError | ConcurrentModificationError @@ -2320,7 +2360,7 @@ interface GlueService$ { options?: HttpHandlerOptions, ): Effect.Effect< DeleteResourcePolicyCommandOutput, - | Cause.TimeoutException + | Cause.TimeoutError | SdkError | ConditionCheckFailureError | EntityNotFoundError @@ -2337,7 +2377,7 @@ interface GlueService$ { options?: HttpHandlerOptions, ): Effect.Effect< DeleteSchemaCommandOutput, - | Cause.TimeoutException + | Cause.TimeoutError | SdkError | AccessDeniedError | ConcurrentModificationError @@ -2353,7 +2393,7 @@ interface GlueService$ { options?: HttpHandlerOptions, ): Effect.Effect< DeleteSchemaVersionsCommandOutput, - | Cause.TimeoutException + | Cause.TimeoutError | SdkError | AccessDeniedError | ConcurrentModificationError @@ -2369,7 +2409,7 @@ interface GlueService$ { options?: HttpHandlerOptions, ): Effect.Effect< DeleteSecurityConfigurationCommandOutput, - | Cause.TimeoutException + | Cause.TimeoutError | SdkError | EntityNotFoundError | InternalServiceError @@ -2385,7 +2425,7 @@ interface GlueService$ { options?: HttpHandlerOptions, ): Effect.Effect< DeleteSessionCommandOutput, - | Cause.TimeoutException + | Cause.TimeoutError | SdkError | AccessDeniedError | ConcurrentModificationError @@ -2403,7 +2443,7 @@ interface GlueService$ { options?: HttpHandlerOptions, ): Effect.Effect< DeleteTableCommandOutput, - | Cause.TimeoutException + | Cause.TimeoutError | SdkError | ConcurrentModificationError | EntityNotFoundError @@ -2423,7 +2463,7 @@ interface GlueService$ { options?: HttpHandlerOptions, ): Effect.Effect< DeleteTableOptimizerCommandOutput, - | Cause.TimeoutException + | Cause.TimeoutError | SdkError | AccessDeniedError | EntityNotFoundError @@ -2440,7 +2480,7 @@ interface GlueService$ { options?: HttpHandlerOptions, ): Effect.Effect< DeleteTableVersionCommandOutput, - | Cause.TimeoutException + | Cause.TimeoutError | SdkError | EntityNotFoundError | InternalServiceError @@ -2456,7 +2496,7 @@ interface GlueService$ { options?: HttpHandlerOptions, ): Effect.Effect< DeleteTriggerCommandOutput, - | Cause.TimeoutException + | Cause.TimeoutError | SdkError | ConcurrentModificationError | InternalServiceError @@ -2472,7 +2512,7 @@ interface GlueService$ { options?: HttpHandlerOptions, ): Effect.Effect< DeleteUsageProfileCommandOutput, - | Cause.TimeoutException + | Cause.TimeoutError | SdkError | InternalServiceError | InvalidInputError @@ -2488,7 +2528,7 @@ interface GlueService$ { options?: HttpHandlerOptions, ): Effect.Effect< DeleteUserDefinedFunctionCommandOutput, - | Cause.TimeoutException + | Cause.TimeoutError | SdkError | EntityNotFoundError | InternalServiceError @@ -2504,7 +2544,7 @@ interface GlueService$ { options?: HttpHandlerOptions, ): Effect.Effect< DeleteWorkflowCommandOutput, - | Cause.TimeoutException + | Cause.TimeoutError | SdkError | ConcurrentModificationError | InternalServiceError @@ -2520,7 +2560,7 @@ interface GlueService$ { options?: HttpHandlerOptions, ): Effect.Effect< DescribeConnectionTypeCommandOutput, - Cause.TimeoutException | SdkError | AccessDeniedError | InternalServiceError | InvalidInputError | ValidationError + Cause.TimeoutError | SdkError | AccessDeniedError | InternalServiceError | InvalidInputError | ValidationError >; /** @@ -2531,7 +2571,7 @@ interface GlueService$ { options?: HttpHandlerOptions, ): Effect.Effect< DescribeEntityCommandOutput, - | Cause.TimeoutException + | Cause.TimeoutError | SdkError | AccessDeniedError | EntityNotFoundError @@ -2550,7 +2590,7 @@ interface GlueService$ { options?: HttpHandlerOptions, ): Effect.Effect< DescribeInboundIntegrationsCommandOutput, - | Cause.TimeoutException + | Cause.TimeoutError | SdkError | AccessDeniedError | EntityNotFoundError @@ -2571,7 +2611,7 @@ interface GlueService$ { options?: HttpHandlerOptions, ): Effect.Effect< DescribeIntegrationsCommandOutput, - | Cause.TimeoutException + | Cause.TimeoutError | SdkError | AccessDeniedError | EntityNotFoundError @@ -2590,7 +2630,7 @@ interface GlueService$ { options?: HttpHandlerOptions, ): Effect.Effect< GetBlueprintCommandOutput, - | Cause.TimeoutException + | Cause.TimeoutError | SdkError | EntityNotFoundError | InternalServiceError @@ -2606,7 +2646,7 @@ interface GlueService$ { options?: HttpHandlerOptions, ): Effect.Effect< GetBlueprintRunCommandOutput, - Cause.TimeoutException | SdkError | EntityNotFoundError | InternalServiceError | OperationTimeoutError + Cause.TimeoutError | SdkError | EntityNotFoundError | InternalServiceError | OperationTimeoutError >; /** @@ -2617,7 +2657,7 @@ interface GlueService$ { options?: HttpHandlerOptions, ): Effect.Effect< GetBlueprintRunsCommandOutput, - | Cause.TimeoutException + | Cause.TimeoutError | SdkError | EntityNotFoundError | InternalServiceError @@ -2633,7 +2673,7 @@ interface GlueService$ { options?: HttpHandlerOptions, ): Effect.Effect< GetCatalogCommandOutput, - | Cause.TimeoutException + | Cause.TimeoutError | SdkError | AccessDeniedError | EntityNotFoundError @@ -2653,7 +2693,7 @@ interface GlueService$ { options?: HttpHandlerOptions, ): Effect.Effect< GetCatalogImportStatusCommandOutput, - Cause.TimeoutException | SdkError | InternalServiceError | OperationTimeoutError + Cause.TimeoutError | SdkError | InternalServiceError | OperationTimeoutError >; /** @@ -2664,7 +2704,7 @@ interface GlueService$ { options?: HttpHandlerOptions, ): Effect.Effect< GetCatalogsCommandOutput, - | Cause.TimeoutException + | Cause.TimeoutError | SdkError | AccessDeniedError | EntityNotFoundError @@ -2684,7 +2724,7 @@ interface GlueService$ { options?: HttpHandlerOptions, ): Effect.Effect< GetClassifierCommandOutput, - Cause.TimeoutException | SdkError | EntityNotFoundError | OperationTimeoutError + Cause.TimeoutError | SdkError | EntityNotFoundError | OperationTimeoutError >; /** @@ -2695,7 +2735,7 @@ interface GlueService$ { options?: HttpHandlerOptions, ): Effect.Effect< GetClassifiersCommandOutput, - Cause.TimeoutException | SdkError | OperationTimeoutError + Cause.TimeoutError | SdkError | OperationTimeoutError >; /** @@ -2706,7 +2746,7 @@ interface GlueService$ { options?: HttpHandlerOptions, ): Effect.Effect< GetColumnStatisticsForPartitionCommandOutput, - | Cause.TimeoutException + | Cause.TimeoutError | SdkError | EntityNotFoundError | GlueEncryptionError @@ -2723,7 +2763,7 @@ interface GlueService$ { options?: HttpHandlerOptions, ): Effect.Effect< GetColumnStatisticsForTableCommandOutput, - | Cause.TimeoutException + | Cause.TimeoutError | SdkError | EntityNotFoundError | GlueEncryptionError @@ -2740,7 +2780,7 @@ interface GlueService$ { options?: HttpHandlerOptions, ): Effect.Effect< GetColumnStatisticsTaskRunCommandOutput, - Cause.TimeoutException | SdkError | EntityNotFoundError | InvalidInputError | OperationTimeoutError + Cause.TimeoutError | SdkError | EntityNotFoundError | InvalidInputError | OperationTimeoutError >; /** @@ -2751,7 +2791,7 @@ interface GlueService$ { options?: HttpHandlerOptions, ): Effect.Effect< GetColumnStatisticsTaskRunsCommandOutput, - Cause.TimeoutException | SdkError | OperationTimeoutError + Cause.TimeoutError | SdkError | OperationTimeoutError >; /** @@ -2762,7 +2802,7 @@ interface GlueService$ { options?: HttpHandlerOptions, ): Effect.Effect< GetColumnStatisticsTaskSettingsCommandOutput, - Cause.TimeoutException | SdkError | EntityNotFoundError | InvalidInputError | OperationTimeoutError + Cause.TimeoutError | SdkError | EntityNotFoundError | InvalidInputError | OperationTimeoutError >; /** @@ -2773,7 +2813,7 @@ interface GlueService$ { options?: HttpHandlerOptions, ): Effect.Effect< GetConnectionCommandOutput, - | Cause.TimeoutException + | Cause.TimeoutError | SdkError | EntityNotFoundError | GlueEncryptionError @@ -2789,7 +2829,7 @@ interface GlueService$ { options?: HttpHandlerOptions, ): Effect.Effect< GetConnectionsCommandOutput, - | Cause.TimeoutException + | Cause.TimeoutError | SdkError | EntityNotFoundError | GlueEncryptionError @@ -2805,7 +2845,7 @@ interface GlueService$ { options?: HttpHandlerOptions, ): Effect.Effect< GetCrawlerCommandOutput, - Cause.TimeoutException | SdkError | EntityNotFoundError | OperationTimeoutError + Cause.TimeoutError | SdkError | EntityNotFoundError | OperationTimeoutError >; /** @@ -2816,7 +2856,7 @@ interface GlueService$ { options?: HttpHandlerOptions, ): Effect.Effect< GetCrawlerMetricsCommandOutput, - Cause.TimeoutException | SdkError | OperationTimeoutError + Cause.TimeoutError | SdkError | OperationTimeoutError >; /** @@ -2827,7 +2867,7 @@ interface GlueService$ { options?: HttpHandlerOptions, ): Effect.Effect< GetCrawlersCommandOutput, - Cause.TimeoutException | SdkError | OperationTimeoutError + Cause.TimeoutError | SdkError | OperationTimeoutError >; /** @@ -2838,7 +2878,7 @@ interface GlueService$ { options?: HttpHandlerOptions, ): Effect.Effect< GetCustomEntityTypeCommandOutput, - | Cause.TimeoutException + | Cause.TimeoutError | SdkError | AccessDeniedError | EntityNotFoundError @@ -2855,7 +2895,7 @@ interface GlueService$ { options?: HttpHandlerOptions, ): Effect.Effect< GetDataCatalogEncryptionSettingsCommandOutput, - Cause.TimeoutException | SdkError | InternalServiceError | InvalidInputError | OperationTimeoutError + Cause.TimeoutError | SdkError | InternalServiceError | InvalidInputError | OperationTimeoutError >; /** @@ -2866,7 +2906,7 @@ interface GlueService$ { options?: HttpHandlerOptions, ): Effect.Effect< GetDataQualityModelCommandOutput, - | Cause.TimeoutException + | Cause.TimeoutError | SdkError | EntityNotFoundError | InternalServiceError @@ -2882,7 +2922,7 @@ interface GlueService$ { options?: HttpHandlerOptions, ): Effect.Effect< GetDataQualityModelResultCommandOutput, - | Cause.TimeoutException + | Cause.TimeoutError | SdkError | EntityNotFoundError | InternalServiceError @@ -2898,7 +2938,7 @@ interface GlueService$ { options?: HttpHandlerOptions, ): Effect.Effect< GetDataQualityResultCommandOutput, - | Cause.TimeoutException + | Cause.TimeoutError | SdkError | EntityNotFoundError | InternalServiceError @@ -2914,7 +2954,7 @@ interface GlueService$ { options?: HttpHandlerOptions, ): Effect.Effect< GetDataQualityRuleRecommendationRunCommandOutput, - | Cause.TimeoutException + | Cause.TimeoutError | SdkError | EntityNotFoundError | InternalServiceError @@ -2930,7 +2970,7 @@ interface GlueService$ { options?: HttpHandlerOptions, ): Effect.Effect< GetDataQualityRulesetCommandOutput, - | Cause.TimeoutException + | Cause.TimeoutError | SdkError | EntityNotFoundError | InternalServiceError @@ -2946,7 +2986,7 @@ interface GlueService$ { options?: HttpHandlerOptions, ): Effect.Effect< GetDataQualityRulesetEvaluationRunCommandOutput, - | Cause.TimeoutException + | Cause.TimeoutError | SdkError | EntityNotFoundError | InternalServiceError @@ -2962,7 +3002,7 @@ interface GlueService$ { options?: HttpHandlerOptions, ): Effect.Effect< GetDatabaseCommandOutput, - | Cause.TimeoutException + | Cause.TimeoutError | SdkError | EntityNotFoundError | FederationSourceError @@ -2981,7 +3021,7 @@ interface GlueService$ { options?: HttpHandlerOptions, ): Effect.Effect< GetDatabasesCommandOutput, - | Cause.TimeoutException + | Cause.TimeoutError | SdkError | EntityNotFoundError | FederationSourceError @@ -3000,7 +3040,7 @@ interface GlueService$ { options?: HttpHandlerOptions, ): Effect.Effect< GetDataflowGraphCommandOutput, - Cause.TimeoutException | SdkError | InternalServiceError | InvalidInputError | OperationTimeoutError + Cause.TimeoutError | SdkError | InternalServiceError | InvalidInputError | OperationTimeoutError >; /** @@ -3011,7 +3051,7 @@ interface GlueService$ { options?: HttpHandlerOptions, ): Effect.Effect< GetDevEndpointCommandOutput, - | Cause.TimeoutException + | Cause.TimeoutError | SdkError | EntityNotFoundError | InternalServiceError @@ -3027,7 +3067,7 @@ interface GlueService$ { options?: HttpHandlerOptions, ): Effect.Effect< GetDevEndpointsCommandOutput, - | Cause.TimeoutException + | Cause.TimeoutError | SdkError | EntityNotFoundError | InternalServiceError @@ -3043,7 +3083,7 @@ interface GlueService$ { options?: HttpHandlerOptions, ): Effect.Effect< GetEntityRecordsCommandOutput, - | Cause.TimeoutException + | Cause.TimeoutError | SdkError | AccessDeniedError | EntityNotFoundError @@ -3062,7 +3102,7 @@ interface GlueService$ { options?: HttpHandlerOptions, ): Effect.Effect< GetGlueIdentityCenterConfigurationCommandOutput, - | Cause.TimeoutException + | Cause.TimeoutError | SdkError | AccessDeniedError | ConcurrentModificationError @@ -3080,7 +3120,7 @@ interface GlueService$ { options?: HttpHandlerOptions, ): Effect.Effect< GetIntegrationResourcePropertyCommandOutput, - | Cause.TimeoutException + | Cause.TimeoutError | SdkError | AccessDeniedError | EntityNotFoundError @@ -3099,7 +3139,7 @@ interface GlueService$ { options?: HttpHandlerOptions, ): Effect.Effect< GetIntegrationTablePropertiesCommandOutput, - | Cause.TimeoutException + | Cause.TimeoutError | SdkError | AccessDeniedError | EntityNotFoundError @@ -3118,7 +3158,7 @@ interface GlueService$ { options?: HttpHandlerOptions, ): Effect.Effect< GetJobCommandOutput, - | Cause.TimeoutException + | Cause.TimeoutError | SdkError | EntityNotFoundError | InternalServiceError @@ -3134,7 +3174,7 @@ interface GlueService$ { options?: HttpHandlerOptions, ): Effect.Effect< GetJobBookmarkCommandOutput, - | Cause.TimeoutException + | Cause.TimeoutError | SdkError | EntityNotFoundError | InternalServiceError @@ -3151,7 +3191,7 @@ interface GlueService$ { options?: HttpHandlerOptions, ): Effect.Effect< GetJobRunCommandOutput, - | Cause.TimeoutException + | Cause.TimeoutError | SdkError | EntityNotFoundError | InternalServiceError @@ -3167,7 +3207,7 @@ interface GlueService$ { options?: HttpHandlerOptions, ): Effect.Effect< GetJobRunsCommandOutput, - | Cause.TimeoutException + | Cause.TimeoutError | SdkError | EntityNotFoundError | InternalServiceError @@ -3183,7 +3223,7 @@ interface GlueService$ { options?: HttpHandlerOptions, ): Effect.Effect< GetJobsCommandOutput, - | Cause.TimeoutException + | Cause.TimeoutError | SdkError | EntityNotFoundError | InternalServiceError @@ -3199,7 +3239,7 @@ interface GlueService$ { options?: HttpHandlerOptions, ): Effect.Effect< GetMLTaskRunCommandOutput, - | Cause.TimeoutException + | Cause.TimeoutError | SdkError | EntityNotFoundError | InternalServiceError @@ -3215,7 +3255,7 @@ interface GlueService$ { options?: HttpHandlerOptions, ): Effect.Effect< GetMLTaskRunsCommandOutput, - | Cause.TimeoutException + | Cause.TimeoutError | SdkError | EntityNotFoundError | InternalServiceError @@ -3231,7 +3271,7 @@ interface GlueService$ { options?: HttpHandlerOptions, ): Effect.Effect< GetMLTransformCommandOutput, - | Cause.TimeoutException + | Cause.TimeoutError | SdkError | EntityNotFoundError | InternalServiceError @@ -3247,7 +3287,7 @@ interface GlueService$ { options?: HttpHandlerOptions, ): Effect.Effect< GetMLTransformsCommandOutput, - | Cause.TimeoutException + | Cause.TimeoutError | SdkError | EntityNotFoundError | InternalServiceError @@ -3263,7 +3303,7 @@ interface GlueService$ { options?: HttpHandlerOptions, ): Effect.Effect< GetMappingCommandOutput, - | Cause.TimeoutException + | Cause.TimeoutError | SdkError | EntityNotFoundError | InternalServiceError @@ -3271,6 +3311,17 @@ interface GlueService$ { | OperationTimeoutError >; + /** + * @see {@link GetMaterializedViewRefreshTaskRunCommand} + */ + getMaterializedViewRefreshTaskRun( + args: GetMaterializedViewRefreshTaskRunCommandInput, + options?: HttpHandlerOptions, + ): Effect.Effect< + GetMaterializedViewRefreshTaskRunCommandOutput, + Cause.TimeoutError | SdkError | AccessDeniedError | EntityNotFoundError | InvalidInputError | OperationTimeoutError + >; + /** * @see {@link GetPartitionCommand} */ @@ -3279,7 +3330,7 @@ interface GlueService$ { options?: HttpHandlerOptions, ): Effect.Effect< GetPartitionCommandOutput, - | Cause.TimeoutException + | Cause.TimeoutError | SdkError | EntityNotFoundError | FederationSourceError @@ -3298,7 +3349,7 @@ interface GlueService$ { options?: HttpHandlerOptions, ): Effect.Effect< GetPartitionIndexesCommandOutput, - | Cause.TimeoutException + | Cause.TimeoutError | SdkError | ConflictError | EntityNotFoundError @@ -3315,7 +3366,7 @@ interface GlueService$ { options?: HttpHandlerOptions, ): Effect.Effect< GetPartitionsCommandOutput, - | Cause.TimeoutException + | Cause.TimeoutError | SdkError | EntityNotFoundError | FederationSourceError @@ -3336,7 +3387,7 @@ interface GlueService$ { options?: HttpHandlerOptions, ): Effect.Effect< GetPlanCommandOutput, - Cause.TimeoutException | SdkError | InternalServiceError | InvalidInputError | OperationTimeoutError + Cause.TimeoutError | SdkError | InternalServiceError | InvalidInputError | OperationTimeoutError >; /** @@ -3347,12 +3398,7 @@ interface GlueService$ { options?: HttpHandlerOptions, ): Effect.Effect< GetRegistryCommandOutput, - | Cause.TimeoutException - | SdkError - | AccessDeniedError - | EntityNotFoundError - | InternalServiceError - | InvalidInputError + Cause.TimeoutError | SdkError | AccessDeniedError | EntityNotFoundError | InternalServiceError | InvalidInputError >; /** @@ -3363,7 +3409,7 @@ interface GlueService$ { options?: HttpHandlerOptions, ): Effect.Effect< GetResourcePoliciesCommandOutput, - | Cause.TimeoutException + | Cause.TimeoutError | SdkError | GlueEncryptionError | InternalServiceError @@ -3379,7 +3425,7 @@ interface GlueService$ { options?: HttpHandlerOptions, ): Effect.Effect< GetResourcePolicyCommandOutput, - | Cause.TimeoutException + | Cause.TimeoutError | SdkError | EntityNotFoundError | InternalServiceError @@ -3395,12 +3441,7 @@ interface GlueService$ { options?: HttpHandlerOptions, ): Effect.Effect< GetSchemaCommandOutput, - | Cause.TimeoutException - | SdkError - | AccessDeniedError - | EntityNotFoundError - | InternalServiceError - | InvalidInputError + Cause.TimeoutError | SdkError | AccessDeniedError | EntityNotFoundError | InternalServiceError | InvalidInputError >; /** @@ -3411,12 +3452,7 @@ interface GlueService$ { options?: HttpHandlerOptions, ): Effect.Effect< GetSchemaByDefinitionCommandOutput, - | Cause.TimeoutException - | SdkError - | AccessDeniedError - | EntityNotFoundError - | InternalServiceError - | InvalidInputError + Cause.TimeoutError | SdkError | AccessDeniedError | EntityNotFoundError | InternalServiceError | InvalidInputError >; /** @@ -3427,12 +3463,7 @@ interface GlueService$ { options?: HttpHandlerOptions, ): Effect.Effect< GetSchemaVersionCommandOutput, - | Cause.TimeoutException - | SdkError - | AccessDeniedError - | EntityNotFoundError - | InternalServiceError - | InvalidInputError + Cause.TimeoutError | SdkError | AccessDeniedError | EntityNotFoundError | InternalServiceError | InvalidInputError >; /** @@ -3443,12 +3474,7 @@ interface GlueService$ { options?: HttpHandlerOptions, ): Effect.Effect< GetSchemaVersionsDiffCommandOutput, - | Cause.TimeoutException - | SdkError - | AccessDeniedError - | EntityNotFoundError - | InternalServiceError - | InvalidInputError + Cause.TimeoutError | SdkError | AccessDeniedError | EntityNotFoundError | InternalServiceError | InvalidInputError >; /** @@ -3459,7 +3485,7 @@ interface GlueService$ { options?: HttpHandlerOptions, ): Effect.Effect< GetSecurityConfigurationCommandOutput, - | Cause.TimeoutException + | Cause.TimeoutError | SdkError | EntityNotFoundError | InternalServiceError @@ -3475,7 +3501,7 @@ interface GlueService$ { options?: HttpHandlerOptions, ): Effect.Effect< GetSecurityConfigurationsCommandOutput, - | Cause.TimeoutException + | Cause.TimeoutError | SdkError | EntityNotFoundError | InternalServiceError @@ -3491,7 +3517,7 @@ interface GlueService$ { options?: HttpHandlerOptions, ): Effect.Effect< GetSessionCommandOutput, - | Cause.TimeoutException + | Cause.TimeoutError | SdkError | AccessDeniedError | EntityNotFoundError @@ -3508,7 +3534,7 @@ interface GlueService$ { options?: HttpHandlerOptions, ): Effect.Effect< GetStatementCommandOutput, - | Cause.TimeoutException + | Cause.TimeoutError | SdkError | AccessDeniedError | EntityNotFoundError @@ -3526,7 +3552,7 @@ interface GlueService$ { options?: HttpHandlerOptions, ): Effect.Effect< GetTableCommandOutput, - | Cause.TimeoutException + | Cause.TimeoutError | SdkError | EntityNotFoundError | FederationSourceError @@ -3546,7 +3572,7 @@ interface GlueService$ { options?: HttpHandlerOptions, ): Effect.Effect< GetTableOptimizerCommandOutput, - | Cause.TimeoutException + | Cause.TimeoutError | SdkError | AccessDeniedError | EntityNotFoundError @@ -3563,7 +3589,7 @@ interface GlueService$ { options?: HttpHandlerOptions, ): Effect.Effect< GetTableVersionCommandOutput, - | Cause.TimeoutException + | Cause.TimeoutError | SdkError | EntityNotFoundError | GlueEncryptionError @@ -3580,7 +3606,7 @@ interface GlueService$ { options?: HttpHandlerOptions, ): Effect.Effect< GetTableVersionsCommandOutput, - | Cause.TimeoutException + | Cause.TimeoutError | SdkError | EntityNotFoundError | GlueEncryptionError @@ -3597,7 +3623,7 @@ interface GlueService$ { options?: HttpHandlerOptions, ): Effect.Effect< GetTablesCommandOutput, - | Cause.TimeoutException + | Cause.TimeoutError | SdkError | EntityNotFoundError | FederationSourceError @@ -3616,7 +3642,7 @@ interface GlueService$ { options?: HttpHandlerOptions, ): Effect.Effect< GetTagsCommandOutput, - | Cause.TimeoutException + | Cause.TimeoutError | SdkError | EntityNotFoundError | InternalServiceError @@ -3632,7 +3658,7 @@ interface GlueService$ { options?: HttpHandlerOptions, ): Effect.Effect< GetTriggerCommandOutput, - | Cause.TimeoutException + | Cause.TimeoutError | SdkError | EntityNotFoundError | InternalServiceError @@ -3648,7 +3674,7 @@ interface GlueService$ { options?: HttpHandlerOptions, ): Effect.Effect< GetTriggersCommandOutput, - | Cause.TimeoutException + | Cause.TimeoutError | SdkError | EntityNotFoundError | InternalServiceError @@ -3664,7 +3690,7 @@ interface GlueService$ { options?: HttpHandlerOptions, ): Effect.Effect< GetUnfilteredPartitionMetadataCommandOutput, - | Cause.TimeoutException + | Cause.TimeoutError | SdkError | EntityNotFoundError | FederationSourceError @@ -3684,7 +3710,7 @@ interface GlueService$ { options?: HttpHandlerOptions, ): Effect.Effect< GetUnfilteredPartitionsMetadataCommandOutput, - | Cause.TimeoutException + | Cause.TimeoutError | SdkError | EntityNotFoundError | FederationSourceError @@ -3704,7 +3730,7 @@ interface GlueService$ { options?: HttpHandlerOptions, ): Effect.Effect< GetUnfilteredTableMetadataCommandOutput, - | Cause.TimeoutException + | Cause.TimeoutError | SdkError | EntityNotFoundError | FederationSourceError @@ -3724,7 +3750,7 @@ interface GlueService$ { options?: HttpHandlerOptions, ): Effect.Effect< GetUsageProfileCommandOutput, - | Cause.TimeoutException + | Cause.TimeoutError | SdkError | EntityNotFoundError | InternalServiceError @@ -3741,7 +3767,7 @@ interface GlueService$ { options?: HttpHandlerOptions, ): Effect.Effect< GetUserDefinedFunctionCommandOutput, - | Cause.TimeoutException + | Cause.TimeoutError | SdkError | EntityNotFoundError | GlueEncryptionError @@ -3758,7 +3784,7 @@ interface GlueService$ { options?: HttpHandlerOptions, ): Effect.Effect< GetUserDefinedFunctionsCommandOutput, - | Cause.TimeoutException + | Cause.TimeoutError | SdkError | EntityNotFoundError | GlueEncryptionError @@ -3775,7 +3801,7 @@ interface GlueService$ { options?: HttpHandlerOptions, ): Effect.Effect< GetWorkflowCommandOutput, - | Cause.TimeoutException + | Cause.TimeoutError | SdkError | EntityNotFoundError | InternalServiceError @@ -3791,7 +3817,7 @@ interface GlueService$ { options?: HttpHandlerOptions, ): Effect.Effect< GetWorkflowRunCommandOutput, - | Cause.TimeoutException + | Cause.TimeoutError | SdkError | EntityNotFoundError | InternalServiceError @@ -3807,7 +3833,7 @@ interface GlueService$ { options?: HttpHandlerOptions, ): Effect.Effect< GetWorkflowRunPropertiesCommandOutput, - | Cause.TimeoutException + | Cause.TimeoutError | SdkError | EntityNotFoundError | InternalServiceError @@ -3823,7 +3849,7 @@ interface GlueService$ { options?: HttpHandlerOptions, ): Effect.Effect< GetWorkflowRunsCommandOutput, - | Cause.TimeoutException + | Cause.TimeoutError | SdkError | EntityNotFoundError | InternalServiceError @@ -3839,7 +3865,7 @@ interface GlueService$ { options?: HttpHandlerOptions, ): Effect.Effect< ImportCatalogToGlueCommandOutput, - Cause.TimeoutException | SdkError | InternalServiceError | OperationTimeoutError + Cause.TimeoutError | SdkError | InternalServiceError | OperationTimeoutError >; /** @@ -3850,7 +3876,7 @@ interface GlueService$ { options?: HttpHandlerOptions, ): Effect.Effect< ListBlueprintsCommandOutput, - Cause.TimeoutException | SdkError | InternalServiceError | InvalidInputError | OperationTimeoutError + Cause.TimeoutError | SdkError | InternalServiceError | InvalidInputError | OperationTimeoutError >; /** @@ -3861,7 +3887,7 @@ interface GlueService$ { options?: HttpHandlerOptions, ): Effect.Effect< ListColumnStatisticsTaskRunsCommandOutput, - Cause.TimeoutException | SdkError | OperationTimeoutError + Cause.TimeoutError | SdkError | OperationTimeoutError >; /** @@ -3872,7 +3898,7 @@ interface GlueService$ { options?: HttpHandlerOptions, ): Effect.Effect< ListConnectionTypesCommandOutput, - Cause.TimeoutException | SdkError | AccessDeniedError | InternalServiceError + Cause.TimeoutError | SdkError | AccessDeniedError | InternalServiceError >; /** @@ -3883,7 +3909,7 @@ interface GlueService$ { options?: HttpHandlerOptions, ): Effect.Effect< ListCrawlersCommandOutput, - Cause.TimeoutException | SdkError | OperationTimeoutError + Cause.TimeoutError | SdkError | OperationTimeoutError >; /** @@ -3894,7 +3920,7 @@ interface GlueService$ { options?: HttpHandlerOptions, ): Effect.Effect< ListCrawlsCommandOutput, - Cause.TimeoutException | SdkError | EntityNotFoundError | InvalidInputError | OperationTimeoutError + Cause.TimeoutError | SdkError | EntityNotFoundError | InvalidInputError | OperationTimeoutError >; /** @@ -3905,7 +3931,7 @@ interface GlueService$ { options?: HttpHandlerOptions, ): Effect.Effect< ListCustomEntityTypesCommandOutput, - Cause.TimeoutException | SdkError | InternalServiceError | InvalidInputError | OperationTimeoutError + Cause.TimeoutError | SdkError | InternalServiceError | InvalidInputError | OperationTimeoutError >; /** @@ -3916,7 +3942,7 @@ interface GlueService$ { options?: HttpHandlerOptions, ): Effect.Effect< ListDataQualityResultsCommandOutput, - Cause.TimeoutException | SdkError | InternalServiceError | InvalidInputError | OperationTimeoutError + Cause.TimeoutError | SdkError | InternalServiceError | InvalidInputError | OperationTimeoutError >; /** @@ -3927,7 +3953,7 @@ interface GlueService$ { options?: HttpHandlerOptions, ): Effect.Effect< ListDataQualityRuleRecommendationRunsCommandOutput, - Cause.TimeoutException | SdkError | InternalServiceError | InvalidInputError | OperationTimeoutError + Cause.TimeoutError | SdkError | InternalServiceError | InvalidInputError | OperationTimeoutError >; /** @@ -3938,7 +3964,7 @@ interface GlueService$ { options?: HttpHandlerOptions, ): Effect.Effect< ListDataQualityRulesetEvaluationRunsCommandOutput, - Cause.TimeoutException | SdkError | InternalServiceError | InvalidInputError | OperationTimeoutError + Cause.TimeoutError | SdkError | InternalServiceError | InvalidInputError | OperationTimeoutError >; /** @@ -3949,7 +3975,7 @@ interface GlueService$ { options?: HttpHandlerOptions, ): Effect.Effect< ListDataQualityRulesetsCommandOutput, - | Cause.TimeoutException + | Cause.TimeoutError | SdkError | EntityNotFoundError | InternalServiceError @@ -3965,7 +3991,7 @@ interface GlueService$ { options?: HttpHandlerOptions, ): Effect.Effect< ListDataQualityStatisticAnnotationsCommandOutput, - Cause.TimeoutException | SdkError | InternalServiceError | InvalidInputError + Cause.TimeoutError | SdkError | InternalServiceError | InvalidInputError >; /** @@ -3976,7 +4002,7 @@ interface GlueService$ { options?: HttpHandlerOptions, ): Effect.Effect< ListDataQualityStatisticsCommandOutput, - Cause.TimeoutException | SdkError | EntityNotFoundError | InternalServiceError | InvalidInputError + Cause.TimeoutError | SdkError | EntityNotFoundError | InternalServiceError | InvalidInputError >; /** @@ -3987,7 +4013,7 @@ interface GlueService$ { options?: HttpHandlerOptions, ): Effect.Effect< ListDevEndpointsCommandOutput, - | Cause.TimeoutException + | Cause.TimeoutError | SdkError | EntityNotFoundError | InternalServiceError @@ -4003,7 +4029,7 @@ interface GlueService$ { options?: HttpHandlerOptions, ): Effect.Effect< ListEntitiesCommandOutput, - | Cause.TimeoutException + | Cause.TimeoutError | SdkError | AccessDeniedError | EntityNotFoundError @@ -4022,7 +4048,7 @@ interface GlueService$ { options?: HttpHandlerOptions, ): Effect.Effect< ListIntegrationResourcePropertiesCommandOutput, - | Cause.TimeoutException + | Cause.TimeoutError | SdkError | AccessDeniedError | EntityNotFoundError @@ -4041,7 +4067,7 @@ interface GlueService$ { options?: HttpHandlerOptions, ): Effect.Effect< ListJobsCommandOutput, - | Cause.TimeoutException + | Cause.TimeoutError | SdkError | EntityNotFoundError | InternalServiceError @@ -4057,7 +4083,7 @@ interface GlueService$ { options?: HttpHandlerOptions, ): Effect.Effect< ListMLTransformsCommandOutput, - | Cause.TimeoutException + | Cause.TimeoutError | SdkError | EntityNotFoundError | InternalServiceError @@ -4065,6 +4091,17 @@ interface GlueService$ { | OperationTimeoutError >; + /** + * @see {@link ListMaterializedViewRefreshTaskRunsCommand} + */ + listMaterializedViewRefreshTaskRuns( + args: ListMaterializedViewRefreshTaskRunsCommandInput, + options?: HttpHandlerOptions, + ): Effect.Effect< + ListMaterializedViewRefreshTaskRunsCommandOutput, + Cause.TimeoutError | SdkError | AccessDeniedError | InvalidInputError | OperationTimeoutError + >; + /** * @see {@link ListRegistriesCommand} */ @@ -4073,7 +4110,7 @@ interface GlueService$ { options?: HttpHandlerOptions, ): Effect.Effect< ListRegistriesCommandOutput, - Cause.TimeoutException | SdkError | AccessDeniedError | InternalServiceError | InvalidInputError + Cause.TimeoutError | SdkError | AccessDeniedError | InternalServiceError | InvalidInputError >; /** @@ -4084,12 +4121,7 @@ interface GlueService$ { options?: HttpHandlerOptions, ): Effect.Effect< ListSchemaVersionsCommandOutput, - | Cause.TimeoutException - | SdkError - | AccessDeniedError - | EntityNotFoundError - | InternalServiceError - | InvalidInputError + Cause.TimeoutError | SdkError | AccessDeniedError | EntityNotFoundError | InternalServiceError | InvalidInputError >; /** @@ -4100,12 +4132,7 @@ interface GlueService$ { options?: HttpHandlerOptions, ): Effect.Effect< ListSchemasCommandOutput, - | Cause.TimeoutException - | SdkError - | AccessDeniedError - | EntityNotFoundError - | InternalServiceError - | InvalidInputError + Cause.TimeoutError | SdkError | AccessDeniedError | EntityNotFoundError | InternalServiceError | InvalidInputError >; /** @@ -4116,12 +4143,7 @@ interface GlueService$ { options?: HttpHandlerOptions, ): Effect.Effect< ListSessionsCommandOutput, - | Cause.TimeoutException - | SdkError - | AccessDeniedError - | InternalServiceError - | InvalidInputError - | OperationTimeoutError + Cause.TimeoutError | SdkError | AccessDeniedError | InternalServiceError | InvalidInputError | OperationTimeoutError >; /** @@ -4132,7 +4154,7 @@ interface GlueService$ { options?: HttpHandlerOptions, ): Effect.Effect< ListStatementsCommandOutput, - | Cause.TimeoutException + | Cause.TimeoutError | SdkError | AccessDeniedError | EntityNotFoundError @@ -4150,7 +4172,7 @@ interface GlueService$ { options?: HttpHandlerOptions, ): Effect.Effect< ListTableOptimizerRunsCommandOutput, - | Cause.TimeoutException + | Cause.TimeoutError | SdkError | AccessDeniedError | EntityNotFoundError @@ -4168,7 +4190,7 @@ interface GlueService$ { options?: HttpHandlerOptions, ): Effect.Effect< ListTriggersCommandOutput, - | Cause.TimeoutException + | Cause.TimeoutError | SdkError | EntityNotFoundError | InternalServiceError @@ -4184,7 +4206,7 @@ interface GlueService$ { options?: HttpHandlerOptions, ): Effect.Effect< ListUsageProfilesCommandOutput, - | Cause.TimeoutException + | Cause.TimeoutError | SdkError | InternalServiceError | InvalidInputError @@ -4200,7 +4222,7 @@ interface GlueService$ { options?: HttpHandlerOptions, ): Effect.Effect< ListWorkflowsCommandOutput, - Cause.TimeoutException | SdkError | InternalServiceError | InvalidInputError | OperationTimeoutError + Cause.TimeoutError | SdkError | InternalServiceError | InvalidInputError | OperationTimeoutError >; /** @@ -4211,7 +4233,7 @@ interface GlueService$ { options?: HttpHandlerOptions, ): Effect.Effect< ModifyIntegrationCommandOutput, - | Cause.TimeoutException + | Cause.TimeoutError | SdkError | AccessDeniedError | ConflictError @@ -4234,7 +4256,7 @@ interface GlueService$ { options?: HttpHandlerOptions, ): Effect.Effect< PutDataCatalogEncryptionSettingsCommandOutput, - Cause.TimeoutException | SdkError | InternalServiceError | InvalidInputError | OperationTimeoutError + Cause.TimeoutError | SdkError | InternalServiceError | InvalidInputError | OperationTimeoutError >; /** @@ -4245,7 +4267,7 @@ interface GlueService$ { options?: HttpHandlerOptions, ): Effect.Effect< PutDataQualityProfileAnnotationCommandOutput, - Cause.TimeoutException | SdkError | EntityNotFoundError | InternalServiceError | InvalidInputError + Cause.TimeoutError | SdkError | EntityNotFoundError | InternalServiceError | InvalidInputError >; /** @@ -4256,7 +4278,7 @@ interface GlueService$ { options?: HttpHandlerOptions, ): Effect.Effect< PutResourcePolicyCommandOutput, - | Cause.TimeoutException + | Cause.TimeoutError | SdkError | ConditionCheckFailureError | EntityNotFoundError @@ -4273,7 +4295,7 @@ interface GlueService$ { options?: HttpHandlerOptions, ): Effect.Effect< PutSchemaVersionMetadataCommandOutput, - | Cause.TimeoutException + | Cause.TimeoutError | SdkError | AccessDeniedError | AlreadyExistsError @@ -4290,7 +4312,7 @@ interface GlueService$ { options?: HttpHandlerOptions, ): Effect.Effect< PutWorkflowRunPropertiesCommandOutput, - | Cause.TimeoutException + | Cause.TimeoutError | SdkError | AlreadyExistsError | ConcurrentModificationError @@ -4309,7 +4331,25 @@ interface GlueService$ { options?: HttpHandlerOptions, ): Effect.Effect< QuerySchemaVersionMetadataCommandOutput, - Cause.TimeoutException | SdkError | AccessDeniedError | EntityNotFoundError | InvalidInputError + Cause.TimeoutError | SdkError | AccessDeniedError | EntityNotFoundError | InvalidInputError + >; + + /** + * @see {@link RegisterConnectionTypeCommand} + */ + registerConnectionType( + args: RegisterConnectionTypeCommandInput, + options?: HttpHandlerOptions, + ): Effect.Effect< + RegisterConnectionTypeCommandOutput, + | Cause.TimeoutError + | SdkError + | AccessDeniedError + | InternalServiceError + | InvalidInputError + | OperationTimeoutError + | ResourceNumberLimitExceededError + | ValidationError >; /** @@ -4320,7 +4360,7 @@ interface GlueService$ { options?: HttpHandlerOptions, ): Effect.Effect< RegisterSchemaVersionCommandOutput, - | Cause.TimeoutException + | Cause.TimeoutError | SdkError | AccessDeniedError | ConcurrentModificationError @@ -4338,7 +4378,7 @@ interface GlueService$ { options?: HttpHandlerOptions, ): Effect.Effect< RemoveSchemaVersionMetadataCommandOutput, - Cause.TimeoutException | SdkError | AccessDeniedError | EntityNotFoundError | InvalidInputError + Cause.TimeoutError | SdkError | AccessDeniedError | EntityNotFoundError | InvalidInputError >; /** @@ -4349,7 +4389,7 @@ interface GlueService$ { options?: HttpHandlerOptions, ): Effect.Effect< ResetJobBookmarkCommandOutput, - | Cause.TimeoutException + | Cause.TimeoutError | SdkError | EntityNotFoundError | InternalServiceError @@ -4365,7 +4405,7 @@ interface GlueService$ { options?: HttpHandlerOptions, ): Effect.Effect< ResumeWorkflowRunCommandOutput, - | Cause.TimeoutException + | Cause.TimeoutError | SdkError | ConcurrentRunsExceededError | EntityNotFoundError @@ -4383,7 +4423,7 @@ interface GlueService$ { options?: HttpHandlerOptions, ): Effect.Effect< RunStatementCommandOutput, - | Cause.TimeoutException + | Cause.TimeoutError | SdkError | AccessDeniedError | EntityNotFoundError @@ -4403,7 +4443,7 @@ interface GlueService$ { options?: HttpHandlerOptions, ): Effect.Effect< SearchTablesCommandOutput, - Cause.TimeoutException | SdkError | InternalServiceError | InvalidInputError | OperationTimeoutError + Cause.TimeoutError | SdkError | InternalServiceError | InvalidInputError | OperationTimeoutError >; /** @@ -4414,7 +4454,7 @@ interface GlueService$ { options?: HttpHandlerOptions, ): Effect.Effect< StartBlueprintRunCommandOutput, - | Cause.TimeoutException + | Cause.TimeoutError | SdkError | EntityNotFoundError | IllegalBlueprintStateError @@ -4432,7 +4472,7 @@ interface GlueService$ { options?: HttpHandlerOptions, ): Effect.Effect< StartColumnStatisticsTaskRunCommandOutput, - | Cause.TimeoutException + | Cause.TimeoutError | SdkError | AccessDeniedError | ColumnStatisticsTaskRunningError @@ -4450,12 +4490,7 @@ interface GlueService$ { options?: HttpHandlerOptions, ): Effect.Effect< StartColumnStatisticsTaskRunScheduleCommandOutput, - | Cause.TimeoutException - | SdkError - | AccessDeniedError - | EntityNotFoundError - | InvalidInputError - | OperationTimeoutError + Cause.TimeoutError | SdkError | AccessDeniedError | EntityNotFoundError | InvalidInputError | OperationTimeoutError >; /** @@ -4466,7 +4501,7 @@ interface GlueService$ { options?: HttpHandlerOptions, ): Effect.Effect< StartCrawlerCommandOutput, - Cause.TimeoutException | SdkError | CrawlerRunningError | EntityNotFoundError | OperationTimeoutError + Cause.TimeoutError | SdkError | CrawlerRunningError | EntityNotFoundError | OperationTimeoutError >; /** @@ -4477,7 +4512,7 @@ interface GlueService$ { options?: HttpHandlerOptions, ): Effect.Effect< StartCrawlerScheduleCommandOutput, - | Cause.TimeoutException + | Cause.TimeoutError | SdkError | EntityNotFoundError | NoScheduleError @@ -4494,7 +4529,7 @@ interface GlueService$ { options?: HttpHandlerOptions, ): Effect.Effect< StartDataQualityRuleRecommendationRunCommandOutput, - Cause.TimeoutException | SdkError | ConflictError | InternalServiceError | InvalidInputError | OperationTimeoutError + Cause.TimeoutError | SdkError | ConflictError | InternalServiceError | InvalidInputError | OperationTimeoutError >; /** @@ -4505,7 +4540,7 @@ interface GlueService$ { options?: HttpHandlerOptions, ): Effect.Effect< StartDataQualityRulesetEvaluationRunCommandOutput, - | Cause.TimeoutException + | Cause.TimeoutError | SdkError | ConflictError | EntityNotFoundError @@ -4522,7 +4557,7 @@ interface GlueService$ { options?: HttpHandlerOptions, ): Effect.Effect< StartExportLabelsTaskRunCommandOutput, - | Cause.TimeoutException + | Cause.TimeoutError | SdkError | EntityNotFoundError | InternalServiceError @@ -4538,7 +4573,7 @@ interface GlueService$ { options?: HttpHandlerOptions, ): Effect.Effect< StartImportLabelsTaskRunCommandOutput, - | Cause.TimeoutException + | Cause.TimeoutError | SdkError | EntityNotFoundError | InternalServiceError @@ -4555,7 +4590,7 @@ interface GlueService$ { options?: HttpHandlerOptions, ): Effect.Effect< StartJobRunCommandOutput, - | Cause.TimeoutException + | Cause.TimeoutError | SdkError | ConcurrentRunsExceededError | EntityNotFoundError @@ -4573,7 +4608,7 @@ interface GlueService$ { options?: HttpHandlerOptions, ): Effect.Effect< StartMLEvaluationTaskRunCommandOutput, - | Cause.TimeoutException + | Cause.TimeoutError | SdkError | ConcurrentRunsExceededError | EntityNotFoundError @@ -4591,7 +4626,7 @@ interface GlueService$ { options?: HttpHandlerOptions, ): Effect.Effect< StartMLLabelingSetGenerationTaskRunCommandOutput, - | Cause.TimeoutException + | Cause.TimeoutError | SdkError | ConcurrentRunsExceededError | EntityNotFoundError @@ -4600,6 +4635,24 @@ interface GlueService$ { | OperationTimeoutError >; + /** + * @see {@link StartMaterializedViewRefreshTaskRunCommand} + */ + startMaterializedViewRefreshTaskRun( + args: StartMaterializedViewRefreshTaskRunCommandInput, + options?: HttpHandlerOptions, + ): Effect.Effect< + StartMaterializedViewRefreshTaskRunCommandOutput, + | Cause.TimeoutError + | SdkError + | AccessDeniedError + | EntityNotFoundError + | InvalidInputError + | MaterializedViewRefreshTaskRunningError + | OperationTimeoutError + | ResourceNumberLimitExceededError + >; + /** * @see {@link StartTriggerCommand} */ @@ -4608,7 +4661,7 @@ interface GlueService$ { options?: HttpHandlerOptions, ): Effect.Effect< StartTriggerCommandOutput, - | Cause.TimeoutException + | Cause.TimeoutError | SdkError | ConcurrentRunsExceededError | EntityNotFoundError @@ -4626,7 +4679,7 @@ interface GlueService$ { options?: HttpHandlerOptions, ): Effect.Effect< StartWorkflowRunCommandOutput, - | Cause.TimeoutException + | Cause.TimeoutError | SdkError | ConcurrentRunsExceededError | EntityNotFoundError @@ -4644,7 +4697,7 @@ interface GlueService$ { options?: HttpHandlerOptions, ): Effect.Effect< StopColumnStatisticsTaskRunCommandOutput, - | Cause.TimeoutException + | Cause.TimeoutError | SdkError | ColumnStatisticsTaskNotRunningError | ColumnStatisticsTaskStoppingError @@ -4660,7 +4713,7 @@ interface GlueService$ { options?: HttpHandlerOptions, ): Effect.Effect< StopColumnStatisticsTaskRunScheduleCommandOutput, - Cause.TimeoutException | SdkError | EntityNotFoundError | InvalidInputError | OperationTimeoutError + Cause.TimeoutError | SdkError | EntityNotFoundError | InvalidInputError | OperationTimeoutError >; /** @@ -4671,7 +4724,7 @@ interface GlueService$ { options?: HttpHandlerOptions, ): Effect.Effect< StopCrawlerCommandOutput, - | Cause.TimeoutException + | Cause.TimeoutError | SdkError | CrawlerNotRunningError | CrawlerStoppingError @@ -4687,7 +4740,7 @@ interface GlueService$ { options?: HttpHandlerOptions, ): Effect.Effect< StopCrawlerScheduleCommandOutput, - | Cause.TimeoutException + | Cause.TimeoutError | SdkError | EntityNotFoundError | OperationTimeoutError @@ -4695,6 +4748,23 @@ interface GlueService$ { | SchedulerTransitioningError >; + /** + * @see {@link StopMaterializedViewRefreshTaskRunCommand} + */ + stopMaterializedViewRefreshTaskRun( + args: StopMaterializedViewRefreshTaskRunCommandInput, + options?: HttpHandlerOptions, + ): Effect.Effect< + StopMaterializedViewRefreshTaskRunCommandOutput, + | Cause.TimeoutError + | SdkError + | AccessDeniedError + | InvalidInputError + | MaterializedViewRefreshTaskNotRunningError + | MaterializedViewRefreshTaskStoppingError + | OperationTimeoutError + >; + /** * @see {@link StopSessionCommand} */ @@ -4703,7 +4773,7 @@ interface GlueService$ { options?: HttpHandlerOptions, ): Effect.Effect< StopSessionCommandOutput, - | Cause.TimeoutException + | Cause.TimeoutError | SdkError | AccessDeniedError | ConcurrentModificationError @@ -4721,7 +4791,7 @@ interface GlueService$ { options?: HttpHandlerOptions, ): Effect.Effect< StopTriggerCommandOutput, - | Cause.TimeoutException + | Cause.TimeoutError | SdkError | ConcurrentModificationError | EntityNotFoundError @@ -4738,7 +4808,7 @@ interface GlueService$ { options?: HttpHandlerOptions, ): Effect.Effect< StopWorkflowRunCommandOutput, - | Cause.TimeoutException + | Cause.TimeoutError | SdkError | EntityNotFoundError | IllegalWorkflowStateError @@ -4755,7 +4825,7 @@ interface GlueService$ { options?: HttpHandlerOptions, ): Effect.Effect< TagResourceCommandOutput, - | Cause.TimeoutException + | Cause.TimeoutError | SdkError | EntityNotFoundError | InternalServiceError @@ -4771,7 +4841,7 @@ interface GlueService$ { options?: HttpHandlerOptions, ): Effect.Effect< TestConnectionCommandOutput, - | Cause.TimeoutException + | Cause.TimeoutError | SdkError | AccessDeniedError | ConflictError @@ -4792,7 +4862,7 @@ interface GlueService$ { options?: HttpHandlerOptions, ): Effect.Effect< UntagResourceCommandOutput, - | Cause.TimeoutException + | Cause.TimeoutError | SdkError | EntityNotFoundError | InternalServiceError @@ -4808,7 +4878,7 @@ interface GlueService$ { options?: HttpHandlerOptions, ): Effect.Effect< UpdateBlueprintCommandOutput, - | Cause.TimeoutException + | Cause.TimeoutError | SdkError | ConcurrentModificationError | EntityNotFoundError @@ -4826,7 +4896,7 @@ interface GlueService$ { options?: HttpHandlerOptions, ): Effect.Effect< UpdateCatalogCommandOutput, - | Cause.TimeoutException + | Cause.TimeoutError | SdkError | AccessDeniedError | ConcurrentModificationError @@ -4846,7 +4916,7 @@ interface GlueService$ { options?: HttpHandlerOptions, ): Effect.Effect< UpdateClassifierCommandOutput, - | Cause.TimeoutException + | Cause.TimeoutError | SdkError | EntityNotFoundError | InvalidInputError @@ -4862,7 +4932,7 @@ interface GlueService$ { options?: HttpHandlerOptions, ): Effect.Effect< UpdateColumnStatisticsForPartitionCommandOutput, - | Cause.TimeoutException + | Cause.TimeoutError | SdkError | EntityNotFoundError | GlueEncryptionError @@ -4879,7 +4949,7 @@ interface GlueService$ { options?: HttpHandlerOptions, ): Effect.Effect< UpdateColumnStatisticsForTableCommandOutput, - | Cause.TimeoutException + | Cause.TimeoutError | SdkError | EntityNotFoundError | GlueEncryptionError @@ -4896,7 +4966,7 @@ interface GlueService$ { options?: HttpHandlerOptions, ): Effect.Effect< UpdateColumnStatisticsTaskSettingsCommandOutput, - | Cause.TimeoutException + | Cause.TimeoutError | SdkError | AccessDeniedError | EntityNotFoundError @@ -4913,7 +4983,7 @@ interface GlueService$ { options?: HttpHandlerOptions, ): Effect.Effect< UpdateConnectionCommandOutput, - | Cause.TimeoutException + | Cause.TimeoutError | SdkError | EntityNotFoundError | GlueEncryptionError @@ -4929,7 +4999,7 @@ interface GlueService$ { options?: HttpHandlerOptions, ): Effect.Effect< UpdateCrawlerCommandOutput, - | Cause.TimeoutException + | Cause.TimeoutError | SdkError | CrawlerRunningError | EntityNotFoundError @@ -4946,7 +5016,7 @@ interface GlueService$ { options?: HttpHandlerOptions, ): Effect.Effect< UpdateCrawlerScheduleCommandOutput, - | Cause.TimeoutException + | Cause.TimeoutError | SdkError | EntityNotFoundError | InvalidInputError @@ -4963,7 +5033,7 @@ interface GlueService$ { options?: HttpHandlerOptions, ): Effect.Effect< UpdateDataQualityRulesetCommandOutput, - | Cause.TimeoutException + | Cause.TimeoutError | SdkError | AlreadyExistsError | EntityNotFoundError @@ -4982,7 +5052,7 @@ interface GlueService$ { options?: HttpHandlerOptions, ): Effect.Effect< UpdateDatabaseCommandOutput, - | Cause.TimeoutException + | Cause.TimeoutError | SdkError | AlreadyExistsError | ConcurrentModificationError @@ -5003,7 +5073,7 @@ interface GlueService$ { options?: HttpHandlerOptions, ): Effect.Effect< UpdateDevEndpointCommandOutput, - | Cause.TimeoutException + | Cause.TimeoutError | SdkError | EntityNotFoundError | InternalServiceError @@ -5020,7 +5090,7 @@ interface GlueService$ { options?: HttpHandlerOptions, ): Effect.Effect< UpdateGlueIdentityCenterConfigurationCommandOutput, - | Cause.TimeoutException + | Cause.TimeoutError | SdkError | AccessDeniedError | ConcurrentModificationError @@ -5038,7 +5108,7 @@ interface GlueService$ { options?: HttpHandlerOptions, ): Effect.Effect< UpdateIntegrationResourcePropertyCommandOutput, - | Cause.TimeoutException + | Cause.TimeoutError | SdkError | AccessDeniedError | EntityNotFoundError @@ -5057,7 +5127,7 @@ interface GlueService$ { options?: HttpHandlerOptions, ): Effect.Effect< UpdateIntegrationTablePropertiesCommandOutput, - | Cause.TimeoutException + | Cause.TimeoutError | SdkError | AccessDeniedError | EntityNotFoundError @@ -5076,7 +5146,7 @@ interface GlueService$ { options?: HttpHandlerOptions, ): Effect.Effect< UpdateJobCommandOutput, - | Cause.TimeoutException + | Cause.TimeoutError | SdkError | ConcurrentModificationError | EntityNotFoundError @@ -5093,7 +5163,7 @@ interface GlueService$ { options?: HttpHandlerOptions, ): Effect.Effect< UpdateJobFromSourceControlCommandOutput, - | Cause.TimeoutException + | Cause.TimeoutError | SdkError | AccessDeniedError | AlreadyExistsError @@ -5112,7 +5182,7 @@ interface GlueService$ { options?: HttpHandlerOptions, ): Effect.Effect< UpdateMLTransformCommandOutput, - | Cause.TimeoutException + | Cause.TimeoutError | SdkError | AccessDeniedError | EntityNotFoundError @@ -5129,7 +5199,7 @@ interface GlueService$ { options?: HttpHandlerOptions, ): Effect.Effect< UpdatePartitionCommandOutput, - | Cause.TimeoutException + | Cause.TimeoutError | SdkError | EntityNotFoundError | GlueEncryptionError @@ -5146,7 +5216,7 @@ interface GlueService$ { options?: HttpHandlerOptions, ): Effect.Effect< UpdateRegistryCommandOutput, - | Cause.TimeoutException + | Cause.TimeoutError | SdkError | AccessDeniedError | ConcurrentModificationError @@ -5163,7 +5233,7 @@ interface GlueService$ { options?: HttpHandlerOptions, ): Effect.Effect< UpdateSchemaCommandOutput, - | Cause.TimeoutException + | Cause.TimeoutError | SdkError | AccessDeniedError | ConcurrentModificationError @@ -5180,7 +5250,7 @@ interface GlueService$ { options?: HttpHandlerOptions, ): Effect.Effect< UpdateSourceControlFromJobCommandOutput, - | Cause.TimeoutException + | Cause.TimeoutError | SdkError | AccessDeniedError | AlreadyExistsError @@ -5199,7 +5269,7 @@ interface GlueService$ { options?: HttpHandlerOptions, ): Effect.Effect< UpdateTableCommandOutput, - | Cause.TimeoutException + | Cause.TimeoutError | SdkError | AlreadyExistsError | ConcurrentModificationError @@ -5222,7 +5292,7 @@ interface GlueService$ { options?: HttpHandlerOptions, ): Effect.Effect< UpdateTableOptimizerCommandOutput, - | Cause.TimeoutException + | Cause.TimeoutError | SdkError | AccessDeniedError | ConcurrentModificationError @@ -5241,7 +5311,7 @@ interface GlueService$ { options?: HttpHandlerOptions, ): Effect.Effect< UpdateTriggerCommandOutput, - | Cause.TimeoutException + | Cause.TimeoutError | SdkError | ConcurrentModificationError | EntityNotFoundError @@ -5258,7 +5328,7 @@ interface GlueService$ { options?: HttpHandlerOptions, ): Effect.Effect< UpdateUsageProfileCommandOutput, - | Cause.TimeoutException + | Cause.TimeoutError | SdkError | ConcurrentModificationError | EntityNotFoundError @@ -5276,7 +5346,7 @@ interface GlueService$ { options?: HttpHandlerOptions, ): Effect.Effect< UpdateUserDefinedFunctionCommandOutput, - | Cause.TimeoutException + | Cause.TimeoutError | SdkError | EntityNotFoundError | GlueEncryptionError @@ -5293,7 +5363,7 @@ interface GlueService$ { options?: HttpHandlerOptions, ): Effect.Effect< UpdateWorkflowCommandOutput, - | Cause.TimeoutException + | Cause.TimeoutError | SdkError | ConcurrentModificationError | EntityNotFoundError @@ -5324,10 +5394,10 @@ export const makeGlueService = Effect.gen(function*() { * @since 1.0.0 * @category models */ -export class GlueService extends Effect.Tag("@effect-aws/client-glue/GlueService")< +export class GlueService extends ServiceMap.Service< GlueService, GlueService$ ->() { +>()("@effect-aws/client-glue/GlueService") { static readonly defaultLayer = Layer.effect(this, makeGlueService).pipe(Layer.provide(Instance.layer)); static readonly layer = (config: GlueService.Config) => Layer.effect(this, makeGlueService).pipe( diff --git a/packages/client-glue/src/GlueServiceConfig.ts b/packages/client-glue/src/GlueServiceConfig.ts index 54f71cc3..b8beff2d 100644 --- a/packages/client-glue/src/GlueServiceConfig.ts +++ b/packages/client-glue/src/GlueServiceConfig.ts @@ -3,18 +3,17 @@ */ import type { GlueClientConfig } from "@aws-sdk/client-glue"; import { ServiceLogger } from "@effect-aws/commons"; -import { Effect, FiberRef, Layer } from "effect"; +import { Effect, Layer, ServiceMap } from "effect"; import { dual } from "effect/Function"; -import { globalValue } from "effect/GlobalValue"; import type { GlueService } from "./GlueService.js"; /** * @since 1.0.0 * @category glue service config */ -const currentGlueServiceConfig = globalValue( +const currentGlueServiceConfig = ServiceMap.Reference( "@effect-aws/client-glue/currentGlueServiceConfig", - () => FiberRef.unsafeMake({}), + { defaultValue: () => ({}) }, ); /** @@ -27,22 +26,21 @@ export const withGlueServiceConfig: { } = dual( 2, (effect: Effect.Effect, config: GlueService.Config): Effect.Effect => - Effect.locally(effect, currentGlueServiceConfig, config), + Effect.provideService(effect, currentGlueServiceConfig, config), ); /** * @since 1.0.0 * @category glue service config */ -export const setGlueServiceConfig = (config: GlueService.Config) => - Layer.locallyScoped(currentGlueServiceConfig, config); +export const setGlueServiceConfig = (config: GlueService.Config) => Layer.succeed(currentGlueServiceConfig, config); /** * @since 1.0.0 * @category adapters */ export const toGlueClientConfig: Effect.Effect = Effect.gen(function*() { - const { logger: serviceLogger, ...config } = yield* FiberRef.get(currentGlueServiceConfig); + const { logger: serviceLogger, ...config } = yield* currentGlueServiceConfig; const logger = serviceLogger === true ? yield* ServiceLogger.toClientLogger(ServiceLogger.defaultServiceLogger) diff --git a/packages/client-glue/test/Glue.test.ts b/packages/client-glue/test/Glue.test.ts index 5c334fb3..47185924 100644 --- a/packages/client-glue/test/Glue.test.ts +++ b/packages/client-glue/test/Glue.test.ts @@ -21,7 +21,7 @@ describe("GlueClientImpl", () => { const args = {} as unknown as ListJobsCommandInput; - const program = Glue.listJobs(args); + const program = Glue.use((svc) => svc.listJobs(args)); const result = await pipe( program, @@ -41,7 +41,7 @@ describe("GlueClientImpl", () => { const args = {} as unknown as ListJobsCommandInput; - const program = Glue.listJobs(args); + const program = Glue.use((svc) => svc.listJobs(args)); const result = await pipe( program, @@ -64,7 +64,7 @@ describe("GlueClientImpl", () => { const args = {} as unknown as ListJobsCommandInput; - const program = Glue.listJobs(args); + const program = Glue.use((svc) => svc.listJobs(args)); const result = await pipe( program, @@ -88,7 +88,7 @@ describe("GlueClientImpl", () => { const args = {} as unknown as ListJobsCommandInput; - const program = Glue.listJobs(args); + const program = Glue.use((svc) => svc.listJobs(args)); const result = await pipe( program, @@ -116,7 +116,7 @@ describe("GlueClientImpl", () => { const args = {} as unknown as ListJobsCommandInput; - const program = Glue.listJobs(args); + const program = Glue.use((svc) => svc.listJobs(args)); const result = await pipe( program, @@ -126,7 +126,7 @@ describe("GlueClientImpl", () => { expect(result).toEqual( Exit.fail( - SdkError({ + new SdkError({ ...new Error("test"), name: "SdkError", message: "test", @@ -151,7 +151,7 @@ describe("GlueClientImpl", () => { const args = {} as unknown as ListJobsCommandInput; - const program = Glue.listJobs(args).pipe( + const program = Glue.use((svc) => svc.listJobs(args)).pipe( Effect.catchTag("NotHandledException" as any, () => Effect.succeed(null)), ); @@ -161,9 +161,9 @@ describe("GlueClientImpl", () => { Effect.runPromiseExit, ); - expect(result).toEqual( + expect(result).toContainEqual( Exit.fail( - SdkError({ + new SdkError({ ...new Error("test"), name: "SdkError", message: "test", diff --git a/packages/client-iam/.projen/deps.json b/packages/client-iam/.projen/deps.json index f17394d5..53c356c1 100644 --- a/packages/client-iam/.projen/deps.json +++ b/packages/client-iam/.projen/deps.json @@ -7,6 +7,7 @@ }, { "name": "effect", + "version": "4.0.0-beta.8", "type": "build" }, { @@ -16,7 +17,7 @@ }, { "name": "effect", - "version": ">=3.0.4 <4.0.0", + "version": ">=4.0.0 <5.0.0", "type": "peer" }, { diff --git a/packages/client-iam/README.md b/packages/client-iam/README.md index 0db9b055..11b9e734 100644 --- a/packages/client-iam/README.md +++ b/packages/client-iam/README.md @@ -16,7 +16,7 @@ With default IAMClient instance: ```typescript import { IAM } from "@effect-aws/client-iam"; -const program = IAM.createRole(args); +const program = IAM.use((svc) => svc.createRole(args)); const result = pipe( program, @@ -30,7 +30,7 @@ With custom IAMClient instance: ```typescript import { IAM } from "@effect-aws/client-iam"; -const program = IAM.createRole(args); +const program = IAM.use((svc) => svc.createRole(args)); const result = await pipe( program, @@ -46,7 +46,7 @@ With custom IAMClient configuration: ```typescript import { IAM } from "@effect-aws/client-iam"; -const program = IAM.createRole(args); +const program = IAM.use((svc) => svc.createRole(args)); const result = await pipe( program, diff --git a/packages/client-iam/package.json b/packages/client-iam/package.json index 639c9191..c25805bc 100644 --- a/packages/client-iam/package.json +++ b/packages/client-iam/package.json @@ -26,11 +26,11 @@ }, "devDependencies": { "@types/node": "ts5.4", - "effect": "^3.16.4", + "effect": "4.0.0-beta.8", "typescript": "^5.4.2" }, "peerDependencies": { - "effect": ">=3.0.4 <4.0.0" + "effect": ">=4.0.0 <5.0.0" }, "dependencies": { "@aws-sdk/client-iam": "^3", diff --git a/packages/client-iam/src/IAMClientInstance.ts b/packages/client-iam/src/IAMClientInstance.ts index adb44502..69a2f569 100644 --- a/packages/client-iam/src/IAMClientInstance.ts +++ b/packages/client-iam/src/IAMClientInstance.ts @@ -2,16 +2,16 @@ * @since 1.0.0 */ import { IAMClient } from "@aws-sdk/client-iam"; -import { Context, Effect, Layer } from "effect"; +import { Effect, Layer, ServiceMap } from "effect"; import * as IAMServiceConfig from "./IAMServiceConfig.js"; /** * @since 1.0.0 * @category tags */ -export class IAMClientInstance extends Context.Tag( +export class IAMClientInstance extends ServiceMap.Service()( "@effect-aws/client-iam/IAMClientInstance", -)() {} +) {} /** * @since 1.0.0 @@ -30,4 +30,4 @@ export const make = Effect.flatMap( * @since 1.0.0 * @category layers */ -export const layer = Layer.scoped(IAMClientInstance, make); +export const layer = Layer.effect(IAMClientInstance, make); diff --git a/packages/client-iam/src/IAMService.ts b/packages/client-iam/src/IAMService.ts index 15cee041..3db75b2f 100644 --- a/packages/client-iam/src/IAMService.ts +++ b/packages/client-iam/src/IAMService.ts @@ -536,7 +536,7 @@ import { import type { HttpHandlerOptions, ServiceLogger } from "@effect-aws/commons"; import { Service } from "@effect-aws/commons"; import type { Cause } from "effect"; -import { Effect, Layer } from "effect"; +import { Effect, Layer, ServiceMap } from "effect"; import type { AccountNotManagementOrDelegatedAdministratorError, CallerIsNotManagementAccountError, @@ -769,7 +769,7 @@ interface IAMService$ { options?: HttpHandlerOptions, ): Effect.Effect< AcceptDelegationRequestCommandOutput, - Cause.TimeoutException | SdkError | ConcurrentModificationError | NoSuchEntityError | ServiceFailureError + Cause.TimeoutError | SdkError | ConcurrentModificationError | NoSuchEntityError | ServiceFailureError >; /** @@ -780,7 +780,7 @@ interface IAMService$ { options?: HttpHandlerOptions, ): Effect.Effect< AddClientIDToOpenIDConnectProviderCommandOutput, - | Cause.TimeoutException + | Cause.TimeoutError | SdkError | ConcurrentModificationError | InvalidInputError @@ -797,7 +797,7 @@ interface IAMService$ { options?: HttpHandlerOptions, ): Effect.Effect< AddRoleToInstanceProfileCommandOutput, - | Cause.TimeoutException + | Cause.TimeoutError | SdkError | EntityAlreadyExistsError | LimitExceededError @@ -814,7 +814,7 @@ interface IAMService$ { options?: HttpHandlerOptions, ): Effect.Effect< AddUserToGroupCommandOutput, - Cause.TimeoutException | SdkError | LimitExceededError | NoSuchEntityError | ServiceFailureError + Cause.TimeoutError | SdkError | LimitExceededError | NoSuchEntityError | ServiceFailureError >; /** @@ -825,7 +825,7 @@ interface IAMService$ { options?: HttpHandlerOptions, ): Effect.Effect< AssociateDelegationRequestCommandOutput, - | Cause.TimeoutException + | Cause.TimeoutError | SdkError | ConcurrentModificationError | InvalidInputError @@ -841,7 +841,7 @@ interface IAMService$ { options?: HttpHandlerOptions, ): Effect.Effect< AttachGroupPolicyCommandOutput, - | Cause.TimeoutException + | Cause.TimeoutError | SdkError | InvalidInputError | LimitExceededError @@ -858,7 +858,7 @@ interface IAMService$ { options?: HttpHandlerOptions, ): Effect.Effect< AttachRolePolicyCommandOutput, - | Cause.TimeoutException + | Cause.TimeoutError | SdkError | InvalidInputError | LimitExceededError @@ -876,7 +876,7 @@ interface IAMService$ { options?: HttpHandlerOptions, ): Effect.Effect< AttachUserPolicyCommandOutput, - | Cause.TimeoutException + | Cause.TimeoutError | SdkError | InvalidInputError | LimitExceededError @@ -893,7 +893,7 @@ interface IAMService$ { options?: HttpHandlerOptions, ): Effect.Effect< ChangePasswordCommandOutput, - | Cause.TimeoutException + | Cause.TimeoutError | SdkError | EntityTemporarilyUnmodifiableError | InvalidUserTypeError @@ -911,7 +911,7 @@ interface IAMService$ { options?: HttpHandlerOptions, ): Effect.Effect< CreateAccessKeyCommandOutput, - Cause.TimeoutException | SdkError | LimitExceededError | NoSuchEntityError | ServiceFailureError + Cause.TimeoutError | SdkError | LimitExceededError | NoSuchEntityError | ServiceFailureError >; /** @@ -922,7 +922,7 @@ interface IAMService$ { options?: HttpHandlerOptions, ): Effect.Effect< CreateAccountAliasCommandOutput, - | Cause.TimeoutException + | Cause.TimeoutError | SdkError | ConcurrentModificationError | EntityAlreadyExistsError @@ -938,7 +938,7 @@ interface IAMService$ { options?: HttpHandlerOptions, ): Effect.Effect< CreateDelegationRequestCommandOutput, - | Cause.TimeoutException + | Cause.TimeoutError | SdkError | ConcurrentModificationError | EntityAlreadyExistsError @@ -955,7 +955,7 @@ interface IAMService$ { options?: HttpHandlerOptions, ): Effect.Effect< CreateGroupCommandOutput, - | Cause.TimeoutException + | Cause.TimeoutError | SdkError | EntityAlreadyExistsError | LimitExceededError @@ -971,7 +971,7 @@ interface IAMService$ { options?: HttpHandlerOptions, ): Effect.Effect< CreateInstanceProfileCommandOutput, - | Cause.TimeoutException + | Cause.TimeoutError | SdkError | ConcurrentModificationError | EntityAlreadyExistsError @@ -988,7 +988,7 @@ interface IAMService$ { options?: HttpHandlerOptions, ): Effect.Effect< CreateLoginProfileCommandOutput, - | Cause.TimeoutException + | Cause.TimeoutError | SdkError | EntityAlreadyExistsError | LimitExceededError @@ -1005,7 +1005,7 @@ interface IAMService$ { options?: HttpHandlerOptions, ): Effect.Effect< CreateOpenIDConnectProviderCommandOutput, - | Cause.TimeoutException + | Cause.TimeoutError | SdkError | ConcurrentModificationError | EntityAlreadyExistsError @@ -1023,7 +1023,7 @@ interface IAMService$ { options?: HttpHandlerOptions, ): Effect.Effect< CreatePolicyCommandOutput, - | Cause.TimeoutException + | Cause.TimeoutError | SdkError | ConcurrentModificationError | EntityAlreadyExistsError @@ -1041,7 +1041,7 @@ interface IAMService$ { options?: HttpHandlerOptions, ): Effect.Effect< CreatePolicyVersionCommandOutput, - | Cause.TimeoutException + | Cause.TimeoutError | SdkError | InvalidInputError | LimitExceededError @@ -1058,7 +1058,7 @@ interface IAMService$ { options?: HttpHandlerOptions, ): Effect.Effect< CreateRoleCommandOutput, - | Cause.TimeoutException + | Cause.TimeoutError | SdkError | ConcurrentModificationError | EntityAlreadyExistsError @@ -1076,7 +1076,7 @@ interface IAMService$ { options?: HttpHandlerOptions, ): Effect.Effect< CreateSAMLProviderCommandOutput, - | Cause.TimeoutException + | Cause.TimeoutError | SdkError | ConcurrentModificationError | EntityAlreadyExistsError @@ -1093,7 +1093,7 @@ interface IAMService$ { options?: HttpHandlerOptions, ): Effect.Effect< CreateServiceLinkedRoleCommandOutput, - Cause.TimeoutException | SdkError | InvalidInputError | LimitExceededError | NoSuchEntityError | ServiceFailureError + Cause.TimeoutError | SdkError | InvalidInputError | LimitExceededError | NoSuchEntityError | ServiceFailureError >; /** @@ -1104,7 +1104,7 @@ interface IAMService$ { options?: HttpHandlerOptions, ): Effect.Effect< CreateServiceSpecificCredentialCommandOutput, - Cause.TimeoutException | SdkError | LimitExceededError | NoSuchEntityError | ServiceNotSupportedError + Cause.TimeoutError | SdkError | LimitExceededError | NoSuchEntityError | ServiceNotSupportedError >; /** @@ -1115,7 +1115,7 @@ interface IAMService$ { options?: HttpHandlerOptions, ): Effect.Effect< CreateUserCommandOutput, - | Cause.TimeoutException + | Cause.TimeoutError | SdkError | ConcurrentModificationError | EntityAlreadyExistsError @@ -1133,7 +1133,7 @@ interface IAMService$ { options?: HttpHandlerOptions, ): Effect.Effect< CreateVirtualMFADeviceCommandOutput, - | Cause.TimeoutException + | Cause.TimeoutError | SdkError | ConcurrentModificationError | EntityAlreadyExistsError @@ -1150,7 +1150,7 @@ interface IAMService$ { options?: HttpHandlerOptions, ): Effect.Effect< DeactivateMFADeviceCommandOutput, - | Cause.TimeoutException + | Cause.TimeoutError | SdkError | ConcurrentModificationError | EntityTemporarilyUnmodifiableError @@ -1167,7 +1167,7 @@ interface IAMService$ { options?: HttpHandlerOptions, ): Effect.Effect< DeleteAccessKeyCommandOutput, - Cause.TimeoutException | SdkError | LimitExceededError | NoSuchEntityError | ServiceFailureError + Cause.TimeoutError | SdkError | LimitExceededError | NoSuchEntityError | ServiceFailureError >; /** @@ -1178,7 +1178,7 @@ interface IAMService$ { options?: HttpHandlerOptions, ): Effect.Effect< DeleteAccountAliasCommandOutput, - | Cause.TimeoutException + | Cause.TimeoutError | SdkError | ConcurrentModificationError | LimitExceededError @@ -1194,7 +1194,7 @@ interface IAMService$ { options?: HttpHandlerOptions, ): Effect.Effect< DeleteAccountPasswordPolicyCommandOutput, - Cause.TimeoutException | SdkError | LimitExceededError | NoSuchEntityError | ServiceFailureError + Cause.TimeoutError | SdkError | LimitExceededError | NoSuchEntityError | ServiceFailureError >; /** @@ -1205,12 +1205,7 @@ interface IAMService$ { options?: HttpHandlerOptions, ): Effect.Effect< DeleteGroupCommandOutput, - | Cause.TimeoutException - | SdkError - | DeleteConflictError - | LimitExceededError - | NoSuchEntityError - | ServiceFailureError + Cause.TimeoutError | SdkError | DeleteConflictError | LimitExceededError | NoSuchEntityError | ServiceFailureError >; /** @@ -1221,7 +1216,7 @@ interface IAMService$ { options?: HttpHandlerOptions, ): Effect.Effect< DeleteGroupPolicyCommandOutput, - Cause.TimeoutException | SdkError | LimitExceededError | NoSuchEntityError | ServiceFailureError + Cause.TimeoutError | SdkError | LimitExceededError | NoSuchEntityError | ServiceFailureError >; /** @@ -1232,12 +1227,7 @@ interface IAMService$ { options?: HttpHandlerOptions, ): Effect.Effect< DeleteInstanceProfileCommandOutput, - | Cause.TimeoutException - | SdkError - | DeleteConflictError - | LimitExceededError - | NoSuchEntityError - | ServiceFailureError + Cause.TimeoutError | SdkError | DeleteConflictError | LimitExceededError | NoSuchEntityError | ServiceFailureError >; /** @@ -1248,7 +1238,7 @@ interface IAMService$ { options?: HttpHandlerOptions, ): Effect.Effect< DeleteLoginProfileCommandOutput, - | Cause.TimeoutException + | Cause.TimeoutError | SdkError | EntityTemporarilyUnmodifiableError | LimitExceededError @@ -1264,7 +1254,7 @@ interface IAMService$ { options?: HttpHandlerOptions, ): Effect.Effect< DeleteOpenIDConnectProviderCommandOutput, - Cause.TimeoutException | SdkError | InvalidInputError | NoSuchEntityError | ServiceFailureError + Cause.TimeoutError | SdkError | InvalidInputError | NoSuchEntityError | ServiceFailureError >; /** @@ -1275,7 +1265,7 @@ interface IAMService$ { options?: HttpHandlerOptions, ): Effect.Effect< DeletePolicyCommandOutput, - | Cause.TimeoutException + | Cause.TimeoutError | SdkError | DeleteConflictError | InvalidInputError @@ -1292,7 +1282,7 @@ interface IAMService$ { options?: HttpHandlerOptions, ): Effect.Effect< DeletePolicyVersionCommandOutput, - | Cause.TimeoutException + | Cause.TimeoutError | SdkError | DeleteConflictError | InvalidInputError @@ -1309,7 +1299,7 @@ interface IAMService$ { options?: HttpHandlerOptions, ): Effect.Effect< DeleteRoleCommandOutput, - | Cause.TimeoutException + | Cause.TimeoutError | SdkError | ConcurrentModificationError | DeleteConflictError @@ -1327,7 +1317,7 @@ interface IAMService$ { options?: HttpHandlerOptions, ): Effect.Effect< DeleteRolePermissionsBoundaryCommandOutput, - Cause.TimeoutException | SdkError | NoSuchEntityError | ServiceFailureError | UnmodifiableEntityError + Cause.TimeoutError | SdkError | NoSuchEntityError | ServiceFailureError | UnmodifiableEntityError >; /** @@ -1338,7 +1328,7 @@ interface IAMService$ { options?: HttpHandlerOptions, ): Effect.Effect< DeleteRolePolicyCommandOutput, - | Cause.TimeoutException + | Cause.TimeoutError | SdkError | LimitExceededError | NoSuchEntityError @@ -1354,7 +1344,7 @@ interface IAMService$ { options?: HttpHandlerOptions, ): Effect.Effect< DeleteSAMLProviderCommandOutput, - Cause.TimeoutException | SdkError | InvalidInputError | LimitExceededError | NoSuchEntityError | ServiceFailureError + Cause.TimeoutError | SdkError | InvalidInputError | LimitExceededError | NoSuchEntityError | ServiceFailureError >; /** @@ -1365,7 +1355,7 @@ interface IAMService$ { options?: HttpHandlerOptions, ): Effect.Effect< DeleteSSHPublicKeyCommandOutput, - Cause.TimeoutException | SdkError | NoSuchEntityError + Cause.TimeoutError | SdkError | NoSuchEntityError >; /** @@ -1376,12 +1366,7 @@ interface IAMService$ { options?: HttpHandlerOptions, ): Effect.Effect< DeleteServerCertificateCommandOutput, - | Cause.TimeoutException - | SdkError - | DeleteConflictError - | LimitExceededError - | NoSuchEntityError - | ServiceFailureError + Cause.TimeoutError | SdkError | DeleteConflictError | LimitExceededError | NoSuchEntityError | ServiceFailureError >; /** @@ -1392,7 +1377,7 @@ interface IAMService$ { options?: HttpHandlerOptions, ): Effect.Effect< DeleteServiceLinkedRoleCommandOutput, - Cause.TimeoutException | SdkError | LimitExceededError | NoSuchEntityError | ServiceFailureError + Cause.TimeoutError | SdkError | LimitExceededError | NoSuchEntityError | ServiceFailureError >; /** @@ -1403,7 +1388,7 @@ interface IAMService$ { options?: HttpHandlerOptions, ): Effect.Effect< DeleteServiceSpecificCredentialCommandOutput, - Cause.TimeoutException | SdkError | NoSuchEntityError + Cause.TimeoutError | SdkError | NoSuchEntityError >; /** @@ -1414,7 +1399,7 @@ interface IAMService$ { options?: HttpHandlerOptions, ): Effect.Effect< DeleteSigningCertificateCommandOutput, - | Cause.TimeoutException + | Cause.TimeoutError | SdkError | ConcurrentModificationError | LimitExceededError @@ -1430,7 +1415,7 @@ interface IAMService$ { options?: HttpHandlerOptions, ): Effect.Effect< DeleteUserCommandOutput, - | Cause.TimeoutException + | Cause.TimeoutError | SdkError | ConcurrentModificationError | DeleteConflictError @@ -1447,7 +1432,7 @@ interface IAMService$ { options?: HttpHandlerOptions, ): Effect.Effect< DeleteUserPermissionsBoundaryCommandOutput, - Cause.TimeoutException | SdkError | NoSuchEntityError | ServiceFailureError + Cause.TimeoutError | SdkError | NoSuchEntityError | ServiceFailureError >; /** @@ -1458,7 +1443,7 @@ interface IAMService$ { options?: HttpHandlerOptions, ): Effect.Effect< DeleteUserPolicyCommandOutput, - Cause.TimeoutException | SdkError | LimitExceededError | NoSuchEntityError | ServiceFailureError + Cause.TimeoutError | SdkError | LimitExceededError | NoSuchEntityError | ServiceFailureError >; /** @@ -1469,7 +1454,7 @@ interface IAMService$ { options?: HttpHandlerOptions, ): Effect.Effect< DeleteVirtualMFADeviceCommandOutput, - | Cause.TimeoutException + | Cause.TimeoutError | SdkError | ConcurrentModificationError | DeleteConflictError @@ -1486,7 +1471,7 @@ interface IAMService$ { options?: HttpHandlerOptions, ): Effect.Effect< DetachGroupPolicyCommandOutput, - Cause.TimeoutException | SdkError | InvalidInputError | LimitExceededError | NoSuchEntityError | ServiceFailureError + Cause.TimeoutError | SdkError | InvalidInputError | LimitExceededError | NoSuchEntityError | ServiceFailureError >; /** @@ -1497,7 +1482,7 @@ interface IAMService$ { options?: HttpHandlerOptions, ): Effect.Effect< DetachRolePolicyCommandOutput, - | Cause.TimeoutException + | Cause.TimeoutError | SdkError | InvalidInputError | LimitExceededError @@ -1514,7 +1499,7 @@ interface IAMService$ { options?: HttpHandlerOptions, ): Effect.Effect< DetachUserPolicyCommandOutput, - Cause.TimeoutException | SdkError | InvalidInputError | LimitExceededError | NoSuchEntityError | ServiceFailureError + Cause.TimeoutError | SdkError | InvalidInputError | LimitExceededError | NoSuchEntityError | ServiceFailureError >; /** @@ -1525,7 +1510,7 @@ interface IAMService$ { options?: HttpHandlerOptions, ): Effect.Effect< DisableOrganizationsRootCredentialsManagementCommandOutput, - | Cause.TimeoutException + | Cause.TimeoutError | SdkError | AccountNotManagementOrDelegatedAdministratorError | OrganizationNotFoundError @@ -1541,7 +1526,7 @@ interface IAMService$ { options?: HttpHandlerOptions, ): Effect.Effect< DisableOrganizationsRootSessionsCommandOutput, - | Cause.TimeoutException + | Cause.TimeoutError | SdkError | AccountNotManagementOrDelegatedAdministratorError | OrganizationNotFoundError @@ -1557,7 +1542,7 @@ interface IAMService$ { options?: HttpHandlerOptions, ): Effect.Effect< DisableOutboundWebIdentityFederationCommandOutput, - Cause.TimeoutException | SdkError | FeatureDisabledError + Cause.TimeoutError | SdkError | FeatureDisabledError >; /** @@ -1568,7 +1553,7 @@ interface IAMService$ { options?: HttpHandlerOptions, ): Effect.Effect< EnableMFADeviceCommandOutput, - | Cause.TimeoutException + | Cause.TimeoutError | SdkError | ConcurrentModificationError | EntityAlreadyExistsError @@ -1587,7 +1572,7 @@ interface IAMService$ { options?: HttpHandlerOptions, ): Effect.Effect< EnableOrganizationsRootCredentialsManagementCommandOutput, - | Cause.TimeoutException + | Cause.TimeoutError | SdkError | AccountNotManagementOrDelegatedAdministratorError | CallerIsNotManagementAccountError @@ -1604,7 +1589,7 @@ interface IAMService$ { options?: HttpHandlerOptions, ): Effect.Effect< EnableOrganizationsRootSessionsCommandOutput, - | Cause.TimeoutException + | Cause.TimeoutError | SdkError | AccountNotManagementOrDelegatedAdministratorError | CallerIsNotManagementAccountError @@ -1621,7 +1606,7 @@ interface IAMService$ { options?: HttpHandlerOptions, ): Effect.Effect< EnableOutboundWebIdentityFederationCommandOutput, - Cause.TimeoutException | SdkError | FeatureEnabledError + Cause.TimeoutError | SdkError | FeatureEnabledError >; /** @@ -1632,7 +1617,7 @@ interface IAMService$ { options?: HttpHandlerOptions, ): Effect.Effect< GenerateCredentialReportCommandOutput, - Cause.TimeoutException | SdkError | LimitExceededError | ServiceFailureError + Cause.TimeoutError | SdkError | LimitExceededError | ServiceFailureError >; /** @@ -1643,7 +1628,7 @@ interface IAMService$ { options?: HttpHandlerOptions, ): Effect.Effect< GenerateOrganizationsAccessReportCommandOutput, - Cause.TimeoutException | SdkError | ReportGenerationLimitExceededError + Cause.TimeoutError | SdkError | ReportGenerationLimitExceededError >; /** @@ -1654,7 +1639,7 @@ interface IAMService$ { options?: HttpHandlerOptions, ): Effect.Effect< GenerateServiceLastAccessedDetailsCommandOutput, - Cause.TimeoutException | SdkError | InvalidInputError | NoSuchEntityError + Cause.TimeoutError | SdkError | InvalidInputError | NoSuchEntityError >; /** @@ -1665,7 +1650,7 @@ interface IAMService$ { options?: HttpHandlerOptions, ): Effect.Effect< GetAccessKeyLastUsedCommandOutput, - Cause.TimeoutException | SdkError + Cause.TimeoutError | SdkError >; /** @@ -1676,7 +1661,7 @@ interface IAMService$ { options?: HttpHandlerOptions, ): Effect.Effect< GetAccountAuthorizationDetailsCommandOutput, - Cause.TimeoutException | SdkError | ServiceFailureError + Cause.TimeoutError | SdkError | ServiceFailureError >; /** @@ -1687,7 +1672,7 @@ interface IAMService$ { options?: HttpHandlerOptions, ): Effect.Effect< GetAccountPasswordPolicyCommandOutput, - Cause.TimeoutException | SdkError | NoSuchEntityError | ServiceFailureError + Cause.TimeoutError | SdkError | NoSuchEntityError | ServiceFailureError >; /** @@ -1698,7 +1683,7 @@ interface IAMService$ { options?: HttpHandlerOptions, ): Effect.Effect< GetAccountSummaryCommandOutput, - Cause.TimeoutException | SdkError | ServiceFailureError + Cause.TimeoutError | SdkError | ServiceFailureError >; /** @@ -1709,7 +1694,7 @@ interface IAMService$ { options?: HttpHandlerOptions, ): Effect.Effect< GetContextKeysForCustomPolicyCommandOutput, - Cause.TimeoutException | SdkError | InvalidInputError + Cause.TimeoutError | SdkError | InvalidInputError >; /** @@ -1720,7 +1705,7 @@ interface IAMService$ { options?: HttpHandlerOptions, ): Effect.Effect< GetContextKeysForPrincipalPolicyCommandOutput, - Cause.TimeoutException | SdkError | InvalidInputError | NoSuchEntityError + Cause.TimeoutError | SdkError | InvalidInputError | NoSuchEntityError >; /** @@ -1731,7 +1716,7 @@ interface IAMService$ { options?: HttpHandlerOptions, ): Effect.Effect< GetCredentialReportCommandOutput, - | Cause.TimeoutException + | Cause.TimeoutError | SdkError | CredentialReportExpiredError | CredentialReportNotPresentError @@ -1747,7 +1732,7 @@ interface IAMService$ { options?: HttpHandlerOptions, ): Effect.Effect< GetDelegationRequestCommandOutput, - Cause.TimeoutException | SdkError | NoSuchEntityError | ServiceFailureError + Cause.TimeoutError | SdkError | NoSuchEntityError | ServiceFailureError >; /** @@ -1758,7 +1743,7 @@ interface IAMService$ { options?: HttpHandlerOptions, ): Effect.Effect< GetGroupCommandOutput, - Cause.TimeoutException | SdkError | NoSuchEntityError | ServiceFailureError + Cause.TimeoutError | SdkError | NoSuchEntityError | ServiceFailureError >; /** @@ -1769,7 +1754,7 @@ interface IAMService$ { options?: HttpHandlerOptions, ): Effect.Effect< GetGroupPolicyCommandOutput, - Cause.TimeoutException | SdkError | NoSuchEntityError | ServiceFailureError + Cause.TimeoutError | SdkError | NoSuchEntityError | ServiceFailureError >; /** @@ -1780,7 +1765,7 @@ interface IAMService$ { options?: HttpHandlerOptions, ): Effect.Effect< GetHumanReadableSummaryCommandOutput, - Cause.TimeoutException | SdkError | InvalidInputError | NoSuchEntityError | ServiceFailureError + Cause.TimeoutError | SdkError | InvalidInputError | NoSuchEntityError | ServiceFailureError >; /** @@ -1791,7 +1776,7 @@ interface IAMService$ { options?: HttpHandlerOptions, ): Effect.Effect< GetInstanceProfileCommandOutput, - Cause.TimeoutException | SdkError | NoSuchEntityError | ServiceFailureError + Cause.TimeoutError | SdkError | NoSuchEntityError | ServiceFailureError >; /** @@ -1802,7 +1787,7 @@ interface IAMService$ { options?: HttpHandlerOptions, ): Effect.Effect< GetLoginProfileCommandOutput, - Cause.TimeoutException | SdkError | NoSuchEntityError | ServiceFailureError + Cause.TimeoutError | SdkError | NoSuchEntityError | ServiceFailureError >; /** @@ -1813,7 +1798,7 @@ interface IAMService$ { options?: HttpHandlerOptions, ): Effect.Effect< GetMFADeviceCommandOutput, - Cause.TimeoutException | SdkError | NoSuchEntityError | ServiceFailureError + Cause.TimeoutError | SdkError | NoSuchEntityError | ServiceFailureError >; /** @@ -1824,7 +1809,7 @@ interface IAMService$ { options?: HttpHandlerOptions, ): Effect.Effect< GetOpenIDConnectProviderCommandOutput, - Cause.TimeoutException | SdkError | InvalidInputError | NoSuchEntityError | ServiceFailureError + Cause.TimeoutError | SdkError | InvalidInputError | NoSuchEntityError | ServiceFailureError >; /** @@ -1835,7 +1820,7 @@ interface IAMService$ { options?: HttpHandlerOptions, ): Effect.Effect< GetOrganizationsAccessReportCommandOutput, - Cause.TimeoutException | SdkError | NoSuchEntityError + Cause.TimeoutError | SdkError | NoSuchEntityError >; /** @@ -1846,7 +1831,7 @@ interface IAMService$ { options?: HttpHandlerOptions, ): Effect.Effect< GetOutboundWebIdentityFederationInfoCommandOutput, - Cause.TimeoutException | SdkError | FeatureDisabledError + Cause.TimeoutError | SdkError | FeatureDisabledError >; /** @@ -1857,7 +1842,7 @@ interface IAMService$ { options?: HttpHandlerOptions, ): Effect.Effect< GetPolicyCommandOutput, - Cause.TimeoutException | SdkError | InvalidInputError | NoSuchEntityError | ServiceFailureError + Cause.TimeoutError | SdkError | InvalidInputError | NoSuchEntityError | ServiceFailureError >; /** @@ -1868,7 +1853,7 @@ interface IAMService$ { options?: HttpHandlerOptions, ): Effect.Effect< GetPolicyVersionCommandOutput, - Cause.TimeoutException | SdkError | InvalidInputError | NoSuchEntityError | ServiceFailureError + Cause.TimeoutError | SdkError | InvalidInputError | NoSuchEntityError | ServiceFailureError >; /** @@ -1879,7 +1864,7 @@ interface IAMService$ { options?: HttpHandlerOptions, ): Effect.Effect< GetRoleCommandOutput, - Cause.TimeoutException | SdkError | NoSuchEntityError | ServiceFailureError + Cause.TimeoutError | SdkError | NoSuchEntityError | ServiceFailureError >; /** @@ -1890,7 +1875,7 @@ interface IAMService$ { options?: HttpHandlerOptions, ): Effect.Effect< GetRolePolicyCommandOutput, - Cause.TimeoutException | SdkError | NoSuchEntityError | ServiceFailureError + Cause.TimeoutError | SdkError | NoSuchEntityError | ServiceFailureError >; /** @@ -1901,7 +1886,7 @@ interface IAMService$ { options?: HttpHandlerOptions, ): Effect.Effect< GetSAMLProviderCommandOutput, - Cause.TimeoutException | SdkError | InvalidInputError | NoSuchEntityError | ServiceFailureError + Cause.TimeoutError | SdkError | InvalidInputError | NoSuchEntityError | ServiceFailureError >; /** @@ -1912,7 +1897,7 @@ interface IAMService$ { options?: HttpHandlerOptions, ): Effect.Effect< GetSSHPublicKeyCommandOutput, - Cause.TimeoutException | SdkError | NoSuchEntityError | UnrecognizedPublicKeyEncodingError + Cause.TimeoutError | SdkError | NoSuchEntityError | UnrecognizedPublicKeyEncodingError >; /** @@ -1923,7 +1908,7 @@ interface IAMService$ { options?: HttpHandlerOptions, ): Effect.Effect< GetServerCertificateCommandOutput, - Cause.TimeoutException | SdkError | NoSuchEntityError | ServiceFailureError + Cause.TimeoutError | SdkError | NoSuchEntityError | ServiceFailureError >; /** @@ -1934,7 +1919,7 @@ interface IAMService$ { options?: HttpHandlerOptions, ): Effect.Effect< GetServiceLastAccessedDetailsCommandOutput, - Cause.TimeoutException | SdkError | InvalidInputError | NoSuchEntityError + Cause.TimeoutError | SdkError | InvalidInputError | NoSuchEntityError >; /** @@ -1945,7 +1930,7 @@ interface IAMService$ { options?: HttpHandlerOptions, ): Effect.Effect< GetServiceLastAccessedDetailsWithEntitiesCommandOutput, - Cause.TimeoutException | SdkError | InvalidInputError | NoSuchEntityError + Cause.TimeoutError | SdkError | InvalidInputError | NoSuchEntityError >; /** @@ -1956,7 +1941,7 @@ interface IAMService$ { options?: HttpHandlerOptions, ): Effect.Effect< GetServiceLinkedRoleDeletionStatusCommandOutput, - Cause.TimeoutException | SdkError | InvalidInputError | NoSuchEntityError | ServiceFailureError + Cause.TimeoutError | SdkError | InvalidInputError | NoSuchEntityError | ServiceFailureError >; /** @@ -1967,7 +1952,7 @@ interface IAMService$ { options?: HttpHandlerOptions, ): Effect.Effect< GetUserCommandOutput, - Cause.TimeoutException | SdkError | NoSuchEntityError | ServiceFailureError + Cause.TimeoutError | SdkError | NoSuchEntityError | ServiceFailureError >; /** @@ -1978,7 +1963,7 @@ interface IAMService$ { options?: HttpHandlerOptions, ): Effect.Effect< GetUserPolicyCommandOutput, - Cause.TimeoutException | SdkError | NoSuchEntityError | ServiceFailureError + Cause.TimeoutError | SdkError | NoSuchEntityError | ServiceFailureError >; /** @@ -1989,7 +1974,7 @@ interface IAMService$ { options?: HttpHandlerOptions, ): Effect.Effect< ListAccessKeysCommandOutput, - Cause.TimeoutException | SdkError | NoSuchEntityError | ServiceFailureError + Cause.TimeoutError | SdkError | NoSuchEntityError | ServiceFailureError >; /** @@ -2000,7 +1985,7 @@ interface IAMService$ { options?: HttpHandlerOptions, ): Effect.Effect< ListAccountAliasesCommandOutput, - Cause.TimeoutException | SdkError | ServiceFailureError + Cause.TimeoutError | SdkError | ServiceFailureError >; /** @@ -2011,7 +1996,7 @@ interface IAMService$ { options?: HttpHandlerOptions, ): Effect.Effect< ListAttachedGroupPoliciesCommandOutput, - Cause.TimeoutException | SdkError | InvalidInputError | NoSuchEntityError | ServiceFailureError + Cause.TimeoutError | SdkError | InvalidInputError | NoSuchEntityError | ServiceFailureError >; /** @@ -2022,7 +2007,7 @@ interface IAMService$ { options?: HttpHandlerOptions, ): Effect.Effect< ListAttachedRolePoliciesCommandOutput, - Cause.TimeoutException | SdkError | InvalidInputError | NoSuchEntityError | ServiceFailureError + Cause.TimeoutError | SdkError | InvalidInputError | NoSuchEntityError | ServiceFailureError >; /** @@ -2033,7 +2018,7 @@ interface IAMService$ { options?: HttpHandlerOptions, ): Effect.Effect< ListAttachedUserPoliciesCommandOutput, - Cause.TimeoutException | SdkError | InvalidInputError | NoSuchEntityError | ServiceFailureError + Cause.TimeoutError | SdkError | InvalidInputError | NoSuchEntityError | ServiceFailureError >; /** @@ -2044,7 +2029,7 @@ interface IAMService$ { options?: HttpHandlerOptions, ): Effect.Effect< ListDelegationRequestsCommandOutput, - Cause.TimeoutException | SdkError | InvalidInputError | NoSuchEntityError | ServiceFailureError + Cause.TimeoutError | SdkError | InvalidInputError | NoSuchEntityError | ServiceFailureError >; /** @@ -2055,7 +2040,7 @@ interface IAMService$ { options?: HttpHandlerOptions, ): Effect.Effect< ListEntitiesForPolicyCommandOutput, - Cause.TimeoutException | SdkError | InvalidInputError | NoSuchEntityError | ServiceFailureError + Cause.TimeoutError | SdkError | InvalidInputError | NoSuchEntityError | ServiceFailureError >; /** @@ -2066,7 +2051,7 @@ interface IAMService$ { options?: HttpHandlerOptions, ): Effect.Effect< ListGroupPoliciesCommandOutput, - Cause.TimeoutException | SdkError | NoSuchEntityError | ServiceFailureError + Cause.TimeoutError | SdkError | NoSuchEntityError | ServiceFailureError >; /** @@ -2077,7 +2062,7 @@ interface IAMService$ { options?: HttpHandlerOptions, ): Effect.Effect< ListGroupsCommandOutput, - Cause.TimeoutException | SdkError | ServiceFailureError + Cause.TimeoutError | SdkError | ServiceFailureError >; /** @@ -2088,7 +2073,7 @@ interface IAMService$ { options?: HttpHandlerOptions, ): Effect.Effect< ListGroupsForUserCommandOutput, - Cause.TimeoutException | SdkError | NoSuchEntityError | ServiceFailureError + Cause.TimeoutError | SdkError | NoSuchEntityError | ServiceFailureError >; /** @@ -2099,7 +2084,7 @@ interface IAMService$ { options?: HttpHandlerOptions, ): Effect.Effect< ListInstanceProfileTagsCommandOutput, - Cause.TimeoutException | SdkError | NoSuchEntityError | ServiceFailureError + Cause.TimeoutError | SdkError | NoSuchEntityError | ServiceFailureError >; /** @@ -2110,7 +2095,7 @@ interface IAMService$ { options?: HttpHandlerOptions, ): Effect.Effect< ListInstanceProfilesCommandOutput, - Cause.TimeoutException | SdkError | ServiceFailureError + Cause.TimeoutError | SdkError | ServiceFailureError >; /** @@ -2121,7 +2106,7 @@ interface IAMService$ { options?: HttpHandlerOptions, ): Effect.Effect< ListInstanceProfilesForRoleCommandOutput, - Cause.TimeoutException | SdkError | NoSuchEntityError | ServiceFailureError + Cause.TimeoutError | SdkError | NoSuchEntityError | ServiceFailureError >; /** @@ -2132,7 +2117,7 @@ interface IAMService$ { options?: HttpHandlerOptions, ): Effect.Effect< ListMFADeviceTagsCommandOutput, - Cause.TimeoutException | SdkError | InvalidInputError | NoSuchEntityError | ServiceFailureError + Cause.TimeoutError | SdkError | InvalidInputError | NoSuchEntityError | ServiceFailureError >; /** @@ -2143,7 +2128,7 @@ interface IAMService$ { options?: HttpHandlerOptions, ): Effect.Effect< ListMFADevicesCommandOutput, - Cause.TimeoutException | SdkError | NoSuchEntityError | ServiceFailureError + Cause.TimeoutError | SdkError | NoSuchEntityError | ServiceFailureError >; /** @@ -2154,7 +2139,7 @@ interface IAMService$ { options?: HttpHandlerOptions, ): Effect.Effect< ListOpenIDConnectProviderTagsCommandOutput, - Cause.TimeoutException | SdkError | InvalidInputError | NoSuchEntityError | ServiceFailureError + Cause.TimeoutError | SdkError | InvalidInputError | NoSuchEntityError | ServiceFailureError >; /** @@ -2165,7 +2150,7 @@ interface IAMService$ { options?: HttpHandlerOptions, ): Effect.Effect< ListOpenIDConnectProvidersCommandOutput, - Cause.TimeoutException | SdkError | ServiceFailureError + Cause.TimeoutError | SdkError | ServiceFailureError >; /** @@ -2176,7 +2161,7 @@ interface IAMService$ { options?: HttpHandlerOptions, ): Effect.Effect< ListOrganizationsFeaturesCommandOutput, - | Cause.TimeoutException + | Cause.TimeoutError | SdkError | AccountNotManagementOrDelegatedAdministratorError | OrganizationNotFoundError @@ -2192,7 +2177,7 @@ interface IAMService$ { options?: HttpHandlerOptions, ): Effect.Effect< ListPoliciesCommandOutput, - Cause.TimeoutException | SdkError | ServiceFailureError + Cause.TimeoutError | SdkError | ServiceFailureError >; /** @@ -2203,7 +2188,7 @@ interface IAMService$ { options?: HttpHandlerOptions, ): Effect.Effect< ListPoliciesGrantingServiceAccessCommandOutput, - Cause.TimeoutException | SdkError | InvalidInputError | NoSuchEntityError + Cause.TimeoutError | SdkError | InvalidInputError | NoSuchEntityError >; /** @@ -2214,7 +2199,7 @@ interface IAMService$ { options?: HttpHandlerOptions, ): Effect.Effect< ListPolicyTagsCommandOutput, - Cause.TimeoutException | SdkError | InvalidInputError | NoSuchEntityError | ServiceFailureError + Cause.TimeoutError | SdkError | InvalidInputError | NoSuchEntityError | ServiceFailureError >; /** @@ -2225,7 +2210,7 @@ interface IAMService$ { options?: HttpHandlerOptions, ): Effect.Effect< ListPolicyVersionsCommandOutput, - Cause.TimeoutException | SdkError | InvalidInputError | NoSuchEntityError | ServiceFailureError + Cause.TimeoutError | SdkError | InvalidInputError | NoSuchEntityError | ServiceFailureError >; /** @@ -2236,7 +2221,7 @@ interface IAMService$ { options?: HttpHandlerOptions, ): Effect.Effect< ListRolePoliciesCommandOutput, - Cause.TimeoutException | SdkError | NoSuchEntityError | ServiceFailureError + Cause.TimeoutError | SdkError | NoSuchEntityError | ServiceFailureError >; /** @@ -2247,7 +2232,7 @@ interface IAMService$ { options?: HttpHandlerOptions, ): Effect.Effect< ListRoleTagsCommandOutput, - Cause.TimeoutException | SdkError | NoSuchEntityError | ServiceFailureError + Cause.TimeoutError | SdkError | NoSuchEntityError | ServiceFailureError >; /** @@ -2258,7 +2243,7 @@ interface IAMService$ { options?: HttpHandlerOptions, ): Effect.Effect< ListRolesCommandOutput, - Cause.TimeoutException | SdkError | ServiceFailureError + Cause.TimeoutError | SdkError | ServiceFailureError >; /** @@ -2269,7 +2254,7 @@ interface IAMService$ { options?: HttpHandlerOptions, ): Effect.Effect< ListSAMLProviderTagsCommandOutput, - Cause.TimeoutException | SdkError | InvalidInputError | NoSuchEntityError | ServiceFailureError + Cause.TimeoutError | SdkError | InvalidInputError | NoSuchEntityError | ServiceFailureError >; /** @@ -2280,7 +2265,7 @@ interface IAMService$ { options?: HttpHandlerOptions, ): Effect.Effect< ListSAMLProvidersCommandOutput, - Cause.TimeoutException | SdkError | ServiceFailureError + Cause.TimeoutError | SdkError | ServiceFailureError >; /** @@ -2291,7 +2276,7 @@ interface IAMService$ { options?: HttpHandlerOptions, ): Effect.Effect< ListSSHPublicKeysCommandOutput, - Cause.TimeoutException | SdkError | NoSuchEntityError + Cause.TimeoutError | SdkError | NoSuchEntityError >; /** @@ -2302,7 +2287,7 @@ interface IAMService$ { options?: HttpHandlerOptions, ): Effect.Effect< ListServerCertificateTagsCommandOutput, - Cause.TimeoutException | SdkError | NoSuchEntityError | ServiceFailureError + Cause.TimeoutError | SdkError | NoSuchEntityError | ServiceFailureError >; /** @@ -2313,7 +2298,7 @@ interface IAMService$ { options?: HttpHandlerOptions, ): Effect.Effect< ListServerCertificatesCommandOutput, - Cause.TimeoutException | SdkError | ServiceFailureError + Cause.TimeoutError | SdkError | ServiceFailureError >; /** @@ -2324,7 +2309,7 @@ interface IAMService$ { options?: HttpHandlerOptions, ): Effect.Effect< ListServiceSpecificCredentialsCommandOutput, - Cause.TimeoutException | SdkError | NoSuchEntityError | ServiceNotSupportedError + Cause.TimeoutError | SdkError | NoSuchEntityError | ServiceNotSupportedError >; /** @@ -2335,7 +2320,7 @@ interface IAMService$ { options?: HttpHandlerOptions, ): Effect.Effect< ListSigningCertificatesCommandOutput, - Cause.TimeoutException | SdkError | NoSuchEntityError | ServiceFailureError + Cause.TimeoutError | SdkError | NoSuchEntityError | ServiceFailureError >; /** @@ -2346,7 +2331,7 @@ interface IAMService$ { options?: HttpHandlerOptions, ): Effect.Effect< ListUserPoliciesCommandOutput, - Cause.TimeoutException | SdkError | NoSuchEntityError | ServiceFailureError + Cause.TimeoutError | SdkError | NoSuchEntityError | ServiceFailureError >; /** @@ -2357,7 +2342,7 @@ interface IAMService$ { options?: HttpHandlerOptions, ): Effect.Effect< ListUserTagsCommandOutput, - Cause.TimeoutException | SdkError | NoSuchEntityError | ServiceFailureError + Cause.TimeoutError | SdkError | NoSuchEntityError | ServiceFailureError >; /** @@ -2368,7 +2353,7 @@ interface IAMService$ { options?: HttpHandlerOptions, ): Effect.Effect< ListUsersCommandOutput, - Cause.TimeoutException | SdkError | ServiceFailureError + Cause.TimeoutError | SdkError | ServiceFailureError >; /** @@ -2379,7 +2364,7 @@ interface IAMService$ { options?: HttpHandlerOptions, ): Effect.Effect< ListVirtualMFADevicesCommandOutput, - Cause.TimeoutException | SdkError + Cause.TimeoutError | SdkError >; /** @@ -2390,7 +2375,7 @@ interface IAMService$ { options?: HttpHandlerOptions, ): Effect.Effect< PutGroupPolicyCommandOutput, - | Cause.TimeoutException + | Cause.TimeoutError | SdkError | LimitExceededError | MalformedPolicyDocumentError @@ -2406,7 +2391,7 @@ interface IAMService$ { options?: HttpHandlerOptions, ): Effect.Effect< PutRolePermissionsBoundaryCommandOutput, - | Cause.TimeoutException + | Cause.TimeoutError | SdkError | InvalidInputError | NoSuchEntityError @@ -2423,7 +2408,7 @@ interface IAMService$ { options?: HttpHandlerOptions, ): Effect.Effect< PutRolePolicyCommandOutput, - | Cause.TimeoutException + | Cause.TimeoutError | SdkError | LimitExceededError | MalformedPolicyDocumentError @@ -2440,7 +2425,7 @@ interface IAMService$ { options?: HttpHandlerOptions, ): Effect.Effect< PutUserPermissionsBoundaryCommandOutput, - | Cause.TimeoutException + | Cause.TimeoutError | SdkError | InvalidInputError | NoSuchEntityError @@ -2456,7 +2441,7 @@ interface IAMService$ { options?: HttpHandlerOptions, ): Effect.Effect< PutUserPolicyCommandOutput, - | Cause.TimeoutException + | Cause.TimeoutError | SdkError | LimitExceededError | MalformedPolicyDocumentError @@ -2472,7 +2457,7 @@ interface IAMService$ { options?: HttpHandlerOptions, ): Effect.Effect< RejectDelegationRequestCommandOutput, - | Cause.TimeoutException + | Cause.TimeoutError | SdkError | ConcurrentModificationError | InvalidInputError @@ -2488,7 +2473,7 @@ interface IAMService$ { options?: HttpHandlerOptions, ): Effect.Effect< RemoveClientIDFromOpenIDConnectProviderCommandOutput, - | Cause.TimeoutException + | Cause.TimeoutError | SdkError | ConcurrentModificationError | InvalidInputError @@ -2504,7 +2489,7 @@ interface IAMService$ { options?: HttpHandlerOptions, ): Effect.Effect< RemoveRoleFromInstanceProfileCommandOutput, - | Cause.TimeoutException + | Cause.TimeoutError | SdkError | LimitExceededError | NoSuchEntityError @@ -2520,7 +2505,7 @@ interface IAMService$ { options?: HttpHandlerOptions, ): Effect.Effect< RemoveUserFromGroupCommandOutput, - Cause.TimeoutException | SdkError | LimitExceededError | NoSuchEntityError | ServiceFailureError + Cause.TimeoutError | SdkError | LimitExceededError | NoSuchEntityError | ServiceFailureError >; /** @@ -2531,7 +2516,7 @@ interface IAMService$ { options?: HttpHandlerOptions, ): Effect.Effect< ResetServiceSpecificCredentialCommandOutput, - Cause.TimeoutException | SdkError | NoSuchEntityError + Cause.TimeoutError | SdkError | NoSuchEntityError >; /** @@ -2542,7 +2527,7 @@ interface IAMService$ { options?: HttpHandlerOptions, ): Effect.Effect< ResyncMFADeviceCommandOutput, - | Cause.TimeoutException + | Cause.TimeoutError | SdkError | ConcurrentModificationError | InvalidAuthenticationCodeError @@ -2559,7 +2544,7 @@ interface IAMService$ { options?: HttpHandlerOptions, ): Effect.Effect< SendDelegationTokenCommandOutput, - | Cause.TimeoutException + | Cause.TimeoutError | SdkError | ConcurrentModificationError | InvalidInputError @@ -2575,7 +2560,7 @@ interface IAMService$ { options?: HttpHandlerOptions, ): Effect.Effect< SetDefaultPolicyVersionCommandOutput, - Cause.TimeoutException | SdkError | InvalidInputError | LimitExceededError | NoSuchEntityError | ServiceFailureError + Cause.TimeoutError | SdkError | InvalidInputError | LimitExceededError | NoSuchEntityError | ServiceFailureError >; /** @@ -2586,7 +2571,7 @@ interface IAMService$ { options?: HttpHandlerOptions, ): Effect.Effect< SetSecurityTokenServicePreferencesCommandOutput, - Cause.TimeoutException | SdkError | ServiceFailureError + Cause.TimeoutError | SdkError | ServiceFailureError >; /** @@ -2597,7 +2582,7 @@ interface IAMService$ { options?: HttpHandlerOptions, ): Effect.Effect< SimulateCustomPolicyCommandOutput, - Cause.TimeoutException | SdkError | InvalidInputError | PolicyEvaluationError + Cause.TimeoutError | SdkError | InvalidInputError | PolicyEvaluationError >; /** @@ -2608,7 +2593,7 @@ interface IAMService$ { options?: HttpHandlerOptions, ): Effect.Effect< SimulatePrincipalPolicyCommandOutput, - Cause.TimeoutException | SdkError | InvalidInputError | NoSuchEntityError | PolicyEvaluationError + Cause.TimeoutError | SdkError | InvalidInputError | NoSuchEntityError | PolicyEvaluationError >; /** @@ -2619,7 +2604,7 @@ interface IAMService$ { options?: HttpHandlerOptions, ): Effect.Effect< TagInstanceProfileCommandOutput, - | Cause.TimeoutException + | Cause.TimeoutError | SdkError | ConcurrentModificationError | InvalidInputError @@ -2636,7 +2621,7 @@ interface IAMService$ { options?: HttpHandlerOptions, ): Effect.Effect< TagMFADeviceCommandOutput, - | Cause.TimeoutException + | Cause.TimeoutError | SdkError | ConcurrentModificationError | InvalidInputError @@ -2653,7 +2638,7 @@ interface IAMService$ { options?: HttpHandlerOptions, ): Effect.Effect< TagOpenIDConnectProviderCommandOutput, - | Cause.TimeoutException + | Cause.TimeoutError | SdkError | ConcurrentModificationError | InvalidInputError @@ -2670,7 +2655,7 @@ interface IAMService$ { options?: HttpHandlerOptions, ): Effect.Effect< TagPolicyCommandOutput, - | Cause.TimeoutException + | Cause.TimeoutError | SdkError | ConcurrentModificationError | InvalidInputError @@ -2687,7 +2672,7 @@ interface IAMService$ { options?: HttpHandlerOptions, ): Effect.Effect< TagRoleCommandOutput, - | Cause.TimeoutException + | Cause.TimeoutError | SdkError | ConcurrentModificationError | InvalidInputError @@ -2704,7 +2689,7 @@ interface IAMService$ { options?: HttpHandlerOptions, ): Effect.Effect< TagSAMLProviderCommandOutput, - | Cause.TimeoutException + | Cause.TimeoutError | SdkError | ConcurrentModificationError | InvalidInputError @@ -2721,7 +2706,7 @@ interface IAMService$ { options?: HttpHandlerOptions, ): Effect.Effect< TagServerCertificateCommandOutput, - | Cause.TimeoutException + | Cause.TimeoutError | SdkError | ConcurrentModificationError | InvalidInputError @@ -2738,7 +2723,7 @@ interface IAMService$ { options?: HttpHandlerOptions, ): Effect.Effect< TagUserCommandOutput, - | Cause.TimeoutException + | Cause.TimeoutError | SdkError | ConcurrentModificationError | InvalidInputError @@ -2755,7 +2740,7 @@ interface IAMService$ { options?: HttpHandlerOptions, ): Effect.Effect< UntagInstanceProfileCommandOutput, - | Cause.TimeoutException + | Cause.TimeoutError | SdkError | ConcurrentModificationError | InvalidInputError @@ -2771,7 +2756,7 @@ interface IAMService$ { options?: HttpHandlerOptions, ): Effect.Effect< UntagMFADeviceCommandOutput, - | Cause.TimeoutException + | Cause.TimeoutError | SdkError | ConcurrentModificationError | InvalidInputError @@ -2787,7 +2772,7 @@ interface IAMService$ { options?: HttpHandlerOptions, ): Effect.Effect< UntagOpenIDConnectProviderCommandOutput, - | Cause.TimeoutException + | Cause.TimeoutError | SdkError | ConcurrentModificationError | InvalidInputError @@ -2803,7 +2788,7 @@ interface IAMService$ { options?: HttpHandlerOptions, ): Effect.Effect< UntagPolicyCommandOutput, - | Cause.TimeoutException + | Cause.TimeoutError | SdkError | ConcurrentModificationError | InvalidInputError @@ -2819,7 +2804,7 @@ interface IAMService$ { options?: HttpHandlerOptions, ): Effect.Effect< UntagRoleCommandOutput, - Cause.TimeoutException | SdkError | ConcurrentModificationError | NoSuchEntityError | ServiceFailureError + Cause.TimeoutError | SdkError | ConcurrentModificationError | NoSuchEntityError | ServiceFailureError >; /** @@ -2830,7 +2815,7 @@ interface IAMService$ { options?: HttpHandlerOptions, ): Effect.Effect< UntagSAMLProviderCommandOutput, - | Cause.TimeoutException + | Cause.TimeoutError | SdkError | ConcurrentModificationError | InvalidInputError @@ -2846,7 +2831,7 @@ interface IAMService$ { options?: HttpHandlerOptions, ): Effect.Effect< UntagServerCertificateCommandOutput, - | Cause.TimeoutException + | Cause.TimeoutError | SdkError | ConcurrentModificationError | InvalidInputError @@ -2862,7 +2847,7 @@ interface IAMService$ { options?: HttpHandlerOptions, ): Effect.Effect< UntagUserCommandOutput, - Cause.TimeoutException | SdkError | ConcurrentModificationError | NoSuchEntityError | ServiceFailureError + Cause.TimeoutError | SdkError | ConcurrentModificationError | NoSuchEntityError | ServiceFailureError >; /** @@ -2873,7 +2858,7 @@ interface IAMService$ { options?: HttpHandlerOptions, ): Effect.Effect< UpdateAccessKeyCommandOutput, - Cause.TimeoutException | SdkError | InvalidInputError | LimitExceededError | NoSuchEntityError | ServiceFailureError + Cause.TimeoutError | SdkError | InvalidInputError | LimitExceededError | NoSuchEntityError | ServiceFailureError >; /** @@ -2884,7 +2869,7 @@ interface IAMService$ { options?: HttpHandlerOptions, ): Effect.Effect< UpdateAccountPasswordPolicyCommandOutput, - | Cause.TimeoutException + | Cause.TimeoutError | SdkError | LimitExceededError | MalformedPolicyDocumentError @@ -2900,7 +2885,7 @@ interface IAMService$ { options?: HttpHandlerOptions, ): Effect.Effect< UpdateAssumeRolePolicyCommandOutput, - | Cause.TimeoutException + | Cause.TimeoutError | SdkError | LimitExceededError | MalformedPolicyDocumentError @@ -2917,7 +2902,7 @@ interface IAMService$ { options?: HttpHandlerOptions, ): Effect.Effect< UpdateDelegationRequestCommandOutput, - | Cause.TimeoutException + | Cause.TimeoutError | SdkError | ConcurrentModificationError | InvalidInputError @@ -2933,7 +2918,7 @@ interface IAMService$ { options?: HttpHandlerOptions, ): Effect.Effect< UpdateGroupCommandOutput, - | Cause.TimeoutException + | Cause.TimeoutError | SdkError | EntityAlreadyExistsError | LimitExceededError @@ -2949,7 +2934,7 @@ interface IAMService$ { options?: HttpHandlerOptions, ): Effect.Effect< UpdateLoginProfileCommandOutput, - | Cause.TimeoutException + | Cause.TimeoutError | SdkError | EntityTemporarilyUnmodifiableError | LimitExceededError @@ -2966,7 +2951,7 @@ interface IAMService$ { options?: HttpHandlerOptions, ): Effect.Effect< UpdateOpenIDConnectProviderThumbprintCommandOutput, - | Cause.TimeoutException + | Cause.TimeoutError | SdkError | ConcurrentModificationError | InvalidInputError @@ -2982,7 +2967,7 @@ interface IAMService$ { options?: HttpHandlerOptions, ): Effect.Effect< UpdateRoleCommandOutput, - Cause.TimeoutException | SdkError | NoSuchEntityError | ServiceFailureError | UnmodifiableEntityError + Cause.TimeoutError | SdkError | NoSuchEntityError | ServiceFailureError | UnmodifiableEntityError >; /** @@ -2993,7 +2978,7 @@ interface IAMService$ { options?: HttpHandlerOptions, ): Effect.Effect< UpdateRoleDescriptionCommandOutput, - Cause.TimeoutException | SdkError | NoSuchEntityError | ServiceFailureError | UnmodifiableEntityError + Cause.TimeoutError | SdkError | NoSuchEntityError | ServiceFailureError | UnmodifiableEntityError >; /** @@ -3004,7 +2989,7 @@ interface IAMService$ { options?: HttpHandlerOptions, ): Effect.Effect< UpdateSAMLProviderCommandOutput, - | Cause.TimeoutException + | Cause.TimeoutError | SdkError | ConcurrentModificationError | InvalidInputError @@ -3021,7 +3006,7 @@ interface IAMService$ { options?: HttpHandlerOptions, ): Effect.Effect< UpdateSSHPublicKeyCommandOutput, - Cause.TimeoutException | SdkError | InvalidInputError | NoSuchEntityError + Cause.TimeoutError | SdkError | InvalidInputError | NoSuchEntityError >; /** @@ -3032,7 +3017,7 @@ interface IAMService$ { options?: HttpHandlerOptions, ): Effect.Effect< UpdateServerCertificateCommandOutput, - | Cause.TimeoutException + | Cause.TimeoutError | SdkError | EntityAlreadyExistsError | LimitExceededError @@ -3048,7 +3033,7 @@ interface IAMService$ { options?: HttpHandlerOptions, ): Effect.Effect< UpdateServiceSpecificCredentialCommandOutput, - Cause.TimeoutException | SdkError | NoSuchEntityError + Cause.TimeoutError | SdkError | NoSuchEntityError >; /** @@ -3059,7 +3044,7 @@ interface IAMService$ { options?: HttpHandlerOptions, ): Effect.Effect< UpdateSigningCertificateCommandOutput, - Cause.TimeoutException | SdkError | InvalidInputError | LimitExceededError | NoSuchEntityError | ServiceFailureError + Cause.TimeoutError | SdkError | InvalidInputError | LimitExceededError | NoSuchEntityError | ServiceFailureError >; /** @@ -3070,7 +3055,7 @@ interface IAMService$ { options?: HttpHandlerOptions, ): Effect.Effect< UpdateUserCommandOutput, - | Cause.TimeoutException + | Cause.TimeoutError | SdkError | ConcurrentModificationError | EntityAlreadyExistsError @@ -3088,7 +3073,7 @@ interface IAMService$ { options?: HttpHandlerOptions, ): Effect.Effect< UploadSSHPublicKeyCommandOutput, - | Cause.TimeoutException + | Cause.TimeoutError | SdkError | DuplicateSSHPublicKeyError | InvalidPublicKeyError @@ -3105,7 +3090,7 @@ interface IAMService$ { options?: HttpHandlerOptions, ): Effect.Effect< UploadServerCertificateCommandOutput, - | Cause.TimeoutException + | Cause.TimeoutError | SdkError | ConcurrentModificationError | EntityAlreadyExistsError @@ -3124,7 +3109,7 @@ interface IAMService$ { options?: HttpHandlerOptions, ): Effect.Effect< UploadSigningCertificateCommandOutput, - | Cause.TimeoutException + | Cause.TimeoutError | SdkError | ConcurrentModificationError | DuplicateCertificateError @@ -3158,10 +3143,10 @@ export const makeIAMService = Effect.gen(function*() { * @since 1.0.0 * @category models */ -export class IAMService extends Effect.Tag("@effect-aws/client-iam/IAMService")< +export class IAMService extends ServiceMap.Service< IAMService, IAMService$ ->() { +>()("@effect-aws/client-iam/IAMService") { static readonly defaultLayer = Layer.effect(this, makeIAMService).pipe(Layer.provide(Instance.layer)); static readonly layer = (config: IAMService.Config) => Layer.effect(this, makeIAMService).pipe( diff --git a/packages/client-iam/src/IAMServiceConfig.ts b/packages/client-iam/src/IAMServiceConfig.ts index 23ab3912..77fcf616 100644 --- a/packages/client-iam/src/IAMServiceConfig.ts +++ b/packages/client-iam/src/IAMServiceConfig.ts @@ -3,18 +3,17 @@ */ import type { IAMClientConfig } from "@aws-sdk/client-iam"; import { ServiceLogger } from "@effect-aws/commons"; -import { Effect, FiberRef, Layer } from "effect"; +import { Effect, Layer, ServiceMap } from "effect"; import { dual } from "effect/Function"; -import { globalValue } from "effect/GlobalValue"; import type { IAMService } from "./IAMService.js"; /** * @since 1.0.0 * @category iam service config */ -const currentIAMServiceConfig = globalValue( +const currentIAMServiceConfig = ServiceMap.Reference( "@effect-aws/client-iam/currentIAMServiceConfig", - () => FiberRef.unsafeMake({}), + { defaultValue: () => ({}) }, ); /** @@ -27,21 +26,21 @@ export const withIAMServiceConfig: { } = dual( 2, (effect: Effect.Effect, config: IAMService.Config): Effect.Effect => - Effect.locally(effect, currentIAMServiceConfig, config), + Effect.provideService(effect, currentIAMServiceConfig, config), ); /** * @since 1.0.0 * @category iam service config */ -export const setIAMServiceConfig = (config: IAMService.Config) => Layer.locallyScoped(currentIAMServiceConfig, config); +export const setIAMServiceConfig = (config: IAMService.Config) => Layer.succeed(currentIAMServiceConfig, config); /** * @since 1.0.0 * @category adapters */ export const toIAMClientConfig: Effect.Effect = Effect.gen(function*() { - const { logger: serviceLogger, ...config } = yield* FiberRef.get(currentIAMServiceConfig); + const { logger: serviceLogger, ...config } = yield* currentIAMServiceConfig; const logger = serviceLogger === true ? yield* ServiceLogger.toClientLogger(ServiceLogger.defaultServiceLogger) diff --git a/packages/client-iam/test/IAM.test.ts b/packages/client-iam/test/IAM.test.ts index 3e83ee4a..18ba4920 100644 --- a/packages/client-iam/test/IAM.test.ts +++ b/packages/client-iam/test/IAM.test.ts @@ -21,7 +21,7 @@ describe("IAMClientImpl", () => { const args = {} as unknown as CreateRoleCommandInput; - const program = IAM.createRole(args); + const program = IAM.use((svc) => svc.createRole(args)); const result = await pipe( program, @@ -41,7 +41,7 @@ describe("IAMClientImpl", () => { const args = {} as unknown as CreateRoleCommandInput; - const program = IAM.createRole(args); + const program = IAM.use((svc) => svc.createRole(args)); const result = await pipe( program, @@ -64,7 +64,7 @@ describe("IAMClientImpl", () => { const args = {} as unknown as CreateRoleCommandInput; - const program = IAM.createRole(args); + const program = IAM.use((svc) => svc.createRole(args)); const result = await pipe( program, @@ -88,7 +88,7 @@ describe("IAMClientImpl", () => { const args = {} as unknown as CreateRoleCommandInput; - const program = IAM.createRole(args); + const program = IAM.use((svc) => svc.createRole(args)); const result = await pipe( program, @@ -116,7 +116,7 @@ describe("IAMClientImpl", () => { const args = {} as unknown as CreateRoleCommandInput; - const program = IAM.createRole(args); + const program = IAM.use((svc) => svc.createRole(args)); const result = await pipe( program, @@ -126,7 +126,7 @@ describe("IAMClientImpl", () => { expect(result).toEqual( Exit.fail( - SdkError({ + new SdkError({ ...new Error("test"), name: "SdkError", message: "test", @@ -151,7 +151,7 @@ describe("IAMClientImpl", () => { const args = {} as unknown as CreateRoleCommandInput; - const program = IAM.createRole(args).pipe( + const program = IAM.use((svc) => svc.createRole(args)).pipe( Effect.catchTag("NotHandledException" as any, () => Effect.succeed(null)), ); @@ -161,9 +161,9 @@ describe("IAMClientImpl", () => { Effect.runPromiseExit, ); - expect(result).toEqual( + expect(result).toContainEqual( Exit.fail( - SdkError({ + new SdkError({ ...new Error("test"), name: "SdkError", message: "test", diff --git a/packages/client-iot-data-plane/.projen/deps.json b/packages/client-iot-data-plane/.projen/deps.json index 3db2339e..0dcfa9e9 100644 --- a/packages/client-iot-data-plane/.projen/deps.json +++ b/packages/client-iot-data-plane/.projen/deps.json @@ -7,6 +7,7 @@ }, { "name": "effect", + "version": "4.0.0-beta.8", "type": "build" }, { @@ -16,7 +17,7 @@ }, { "name": "effect", - "version": ">=3.0.4 <4.0.0", + "version": ">=4.0.0 <5.0.0", "type": "peer" }, { diff --git a/packages/client-iot-data-plane/README.md b/packages/client-iot-data-plane/README.md index 0ed13708..0bfe9dd1 100644 --- a/packages/client-iot-data-plane/README.md +++ b/packages/client-iot-data-plane/README.md @@ -16,7 +16,7 @@ With default IoTDataPlaneClient instance: ```typescript import { IoTDataPlane } from "@effect-aws/client-iot-data-plane"; -const program = IoTDataPlane.publish(args); +const program = IoTDataPlane.use((svc) => svc.publish(args)); const result = pipe( program, @@ -30,7 +30,7 @@ With custom IoTDataPlaneClient instance: ```typescript import { IoTDataPlane } from "@effect-aws/client-iot-data-plane"; -const program = IoTDataPlane.publish(args); +const program = IoTDataPlane.use((svc) => svc.publish(args)); const result = await pipe( program, @@ -46,7 +46,7 @@ With custom IoTDataPlaneClient configuration: ```typescript import { IoTDataPlane } from "@effect-aws/client-iot-data-plane"; -const program = IoTDataPlane.publish(args); +const program = IoTDataPlane.use((svc) => svc.publish(args)); const result = await pipe( program, diff --git a/packages/client-iot-data-plane/package.json b/packages/client-iot-data-plane/package.json index a81e03ff..faa4ba5a 100644 --- a/packages/client-iot-data-plane/package.json +++ b/packages/client-iot-data-plane/package.json @@ -26,11 +26,11 @@ }, "devDependencies": { "@types/node": "ts5.4", - "effect": "^3.16.4", + "effect": "4.0.0-beta.8", "typescript": "^5.4.2" }, "peerDependencies": { - "effect": ">=3.0.4 <4.0.0" + "effect": ">=4.0.0 <5.0.0" }, "dependencies": { "@aws-sdk/client-iot-data-plane": "^3", diff --git a/packages/client-iot-data-plane/src/IoTDataPlaneClientInstance.ts b/packages/client-iot-data-plane/src/IoTDataPlaneClientInstance.ts index 8ceb52b3..13728bae 100644 --- a/packages/client-iot-data-plane/src/IoTDataPlaneClientInstance.ts +++ b/packages/client-iot-data-plane/src/IoTDataPlaneClientInstance.ts @@ -2,16 +2,16 @@ * @since 1.0.0 */ import { IoTDataPlaneClient } from "@aws-sdk/client-iot-data-plane"; -import { Context, Effect, Layer } from "effect"; +import { Effect, Layer, ServiceMap } from "effect"; import * as IoTDataPlaneServiceConfig from "./IoTDataPlaneServiceConfig.js"; /** * @since 1.0.0 * @category tags */ -export class IoTDataPlaneClientInstance extends Context.Tag( +export class IoTDataPlaneClientInstance extends ServiceMap.Service()( "@effect-aws/client-iot-data-plane/IoTDataPlaneClientInstance", -)() {} +) {} /** * @since 1.0.0 @@ -30,4 +30,4 @@ export const make = Effect.flatMap( * @since 1.0.0 * @category layers */ -export const layer = Layer.scoped(IoTDataPlaneClientInstance, make); +export const layer = Layer.effect(IoTDataPlaneClientInstance, make); diff --git a/packages/client-iot-data-plane/src/IoTDataPlaneService.ts b/packages/client-iot-data-plane/src/IoTDataPlaneService.ts index 201bc472..82a75655 100644 --- a/packages/client-iot-data-plane/src/IoTDataPlaneService.ts +++ b/packages/client-iot-data-plane/src/IoTDataPlaneService.ts @@ -32,7 +32,7 @@ import { import type { HttpHandlerOptions, ServiceLogger } from "@effect-aws/commons"; import { Service } from "@effect-aws/commons"; import type { Cause } from "effect"; -import { Effect, Layer } from "effect"; +import { Effect, Layer, ServiceMap } from "effect"; import type { ConflictError, ForbiddenError, @@ -73,7 +73,7 @@ interface IoTDataPlaneService$ { options?: HttpHandlerOptions, ): Effect.Effect< DeleteConnectionCommandOutput, - | Cause.TimeoutException + | Cause.TimeoutError | SdkError | ForbiddenError | InternalFailureError @@ -90,7 +90,7 @@ interface IoTDataPlaneService$ { options?: HttpHandlerOptions, ): Effect.Effect< DeleteThingShadowCommandOutput, - | Cause.TimeoutException + | Cause.TimeoutError | SdkError | InternalFailureError | InvalidRequestError @@ -110,7 +110,7 @@ interface IoTDataPlaneService$ { options?: HttpHandlerOptions, ): Effect.Effect< GetRetainedMessageCommandOutput, - | Cause.TimeoutException + | Cause.TimeoutError | SdkError | InternalFailureError | InvalidRequestError @@ -129,7 +129,7 @@ interface IoTDataPlaneService$ { options?: HttpHandlerOptions, ): Effect.Effect< GetThingShadowCommandOutput, - | Cause.TimeoutException + | Cause.TimeoutError | SdkError | InternalFailureError | InvalidRequestError @@ -149,7 +149,7 @@ interface IoTDataPlaneService$ { options?: HttpHandlerOptions, ): Effect.Effect< ListNamedShadowsForThingCommandOutput, - | Cause.TimeoutException + | Cause.TimeoutError | SdkError | InternalFailureError | InvalidRequestError @@ -168,7 +168,7 @@ interface IoTDataPlaneService$ { options?: HttpHandlerOptions, ): Effect.Effect< ListRetainedMessagesCommandOutput, - | Cause.TimeoutException + | Cause.TimeoutError | SdkError | InternalFailureError | InvalidRequestError @@ -186,7 +186,7 @@ interface IoTDataPlaneService$ { options?: HttpHandlerOptions, ): Effect.Effect< PublishCommandOutput, - | Cause.TimeoutException + | Cause.TimeoutError | SdkError | InternalFailureError | InvalidRequestError @@ -203,7 +203,7 @@ interface IoTDataPlaneService$ { options?: HttpHandlerOptions, ): Effect.Effect< UpdateThingShadowCommandOutput, - | Cause.TimeoutException + | Cause.TimeoutError | SdkError | ConflictError | InternalFailureError @@ -238,10 +238,10 @@ export const makeIoTDataPlaneService = Effect.gen(function*() { * @since 1.0.0 * @category models */ -export class IoTDataPlaneService extends Effect.Tag("@effect-aws/client-iot-data-plane/IoTDataPlaneService")< +export class IoTDataPlaneService extends ServiceMap.Service< IoTDataPlaneService, IoTDataPlaneService$ ->() { +>()("@effect-aws/client-iot-data-plane/IoTDataPlaneService") { static readonly defaultLayer = Layer.effect(this, makeIoTDataPlaneService).pipe(Layer.provide(Instance.layer)); static readonly layer = (config: IoTDataPlaneService.Config) => Layer.effect(this, makeIoTDataPlaneService).pipe( diff --git a/packages/client-iot-data-plane/src/IoTDataPlaneServiceConfig.ts b/packages/client-iot-data-plane/src/IoTDataPlaneServiceConfig.ts index 813eee0f..8985ba44 100644 --- a/packages/client-iot-data-plane/src/IoTDataPlaneServiceConfig.ts +++ b/packages/client-iot-data-plane/src/IoTDataPlaneServiceConfig.ts @@ -3,18 +3,17 @@ */ import type { IoTDataPlaneClientConfig } from "@aws-sdk/client-iot-data-plane"; import { ServiceLogger } from "@effect-aws/commons"; -import { Effect, FiberRef, Layer } from "effect"; +import { Effect, Layer, ServiceMap } from "effect"; import { dual } from "effect/Function"; -import { globalValue } from "effect/GlobalValue"; import type { IoTDataPlaneService } from "./IoTDataPlaneService.js"; /** * @since 1.0.0 * @category iot-data-plane service config */ -const currentIoTDataPlaneServiceConfig = globalValue( +const currentIoTDataPlaneServiceConfig = ServiceMap.Reference( "@effect-aws/client-iot-data-plane/currentIoTDataPlaneServiceConfig", - () => FiberRef.unsafeMake({}), + { defaultValue: () => ({}) }, ); /** @@ -27,7 +26,7 @@ export const withIoTDataPlaneServiceConfig: { } = dual( 2, (effect: Effect.Effect, config: IoTDataPlaneService.Config): Effect.Effect => - Effect.locally(effect, currentIoTDataPlaneServiceConfig, config), + Effect.provideService(effect, currentIoTDataPlaneServiceConfig, config), ); /** @@ -35,14 +34,14 @@ export const withIoTDataPlaneServiceConfig: { * @category iot-data-plane service config */ export const setIoTDataPlaneServiceConfig = (config: IoTDataPlaneService.Config) => - Layer.locallyScoped(currentIoTDataPlaneServiceConfig, config); + Layer.succeed(currentIoTDataPlaneServiceConfig, config); /** * @since 1.0.0 * @category adapters */ export const toIoTDataPlaneClientConfig: Effect.Effect = Effect.gen(function*() { - const { logger: serviceLogger, ...config } = yield* FiberRef.get(currentIoTDataPlaneServiceConfig); + const { logger: serviceLogger, ...config } = yield* currentIoTDataPlaneServiceConfig; const logger = serviceLogger === true ? yield* ServiceLogger.toClientLogger(ServiceLogger.defaultServiceLogger) diff --git a/packages/client-iot-data-plane/test/IoTDataPlane.test.ts b/packages/client-iot-data-plane/test/IoTDataPlane.test.ts index aa61f485..3b50da19 100644 --- a/packages/client-iot-data-plane/test/IoTDataPlane.test.ts +++ b/packages/client-iot-data-plane/test/IoTDataPlane.test.ts @@ -26,7 +26,7 @@ describe("IoTDataPlaneClientImpl", () => { const args = {} as unknown as PublishCommandInput; - const program = IoTDataPlane.publish(args); + const program = IoTDataPlane.use((svc) => svc.publish(args)); const result = await pipe( program, @@ -46,7 +46,7 @@ describe("IoTDataPlaneClientImpl", () => { const args = {} as unknown as PublishCommandInput; - const program = IoTDataPlane.publish(args); + const program = IoTDataPlane.use((svc) => svc.publish(args)); const result = await pipe( program, @@ -69,7 +69,7 @@ describe("IoTDataPlaneClientImpl", () => { const args = {} as unknown as PublishCommandInput; - const program = IoTDataPlane.publish(args); + const program = IoTDataPlane.use((svc) => svc.publish(args)); const result = await pipe( program, @@ -93,7 +93,7 @@ describe("IoTDataPlaneClientImpl", () => { const args = {} as unknown as PublishCommandInput; - const program = IoTDataPlane.publish(args); + const program = IoTDataPlane.use((svc) => svc.publish(args)); const result = await pipe( program, @@ -121,7 +121,7 @@ describe("IoTDataPlaneClientImpl", () => { const args = {} as unknown as PublishCommandInput; - const program = IoTDataPlane.publish(args); + const program = IoTDataPlane.use((svc) => svc.publish(args)); const result = await pipe( program, @@ -131,7 +131,7 @@ describe("IoTDataPlaneClientImpl", () => { expect(result).toEqual( Exit.fail( - SdkError({ + new SdkError({ ...new Error("test"), name: "SdkError", message: "test", @@ -156,7 +156,7 @@ describe("IoTDataPlaneClientImpl", () => { const args = {} as unknown as PublishCommandInput; - const program = IoTDataPlane.publish(args).pipe( + const program = IoTDataPlane.use((svc) => svc.publish(args)).pipe( Effect.catchTag("NotHandledException" as any, () => Effect.succeed(null)), ); @@ -166,9 +166,9 @@ describe("IoTDataPlaneClientImpl", () => { Effect.runPromiseExit, ); - expect(result).toEqual( + expect(result).toContainEqual( Exit.fail( - SdkError({ + new SdkError({ ...new Error("test"), name: "SdkError", message: "test", diff --git a/packages/client-iot-events-data/.projen/deps.json b/packages/client-iot-events-data/.projen/deps.json index 41ec45e8..f5ea05ff 100644 --- a/packages/client-iot-events-data/.projen/deps.json +++ b/packages/client-iot-events-data/.projen/deps.json @@ -7,6 +7,7 @@ }, { "name": "effect", + "version": "4.0.0-beta.8", "type": "build" }, { @@ -16,7 +17,7 @@ }, { "name": "effect", - "version": ">=3.0.4 <4.0.0", + "version": ">=4.0.0 <5.0.0", "type": "peer" }, { diff --git a/packages/client-iot-events-data/README.md b/packages/client-iot-events-data/README.md index fa05a8b2..5d024204 100644 --- a/packages/client-iot-events-data/README.md +++ b/packages/client-iot-events-data/README.md @@ -16,7 +16,7 @@ With default IoTEventsDataClient instance: ```typescript import { IoTEventsData } from "@effect-aws/client-iot-events-data"; -const program = IoTEventsData.describeAlarm(args); +const program = IoTEventsData.use((svc) => svc.describeAlarm(args)); const result = pipe( program, @@ -30,7 +30,7 @@ With custom IoTEventsDataClient instance: ```typescript import { IoTEventsData } from "@effect-aws/client-iot-events-data"; -const program = IoTEventsData.describeAlarm(args); +const program = IoTEventsData.use((svc) => svc.describeAlarm(args)); const result = await pipe( program, @@ -46,7 +46,7 @@ With custom IoTEventsDataClient configuration: ```typescript import { IoTEventsData } from "@effect-aws/client-iot-events-data"; -const program = IoTEventsData.describeAlarm(args); +const program = IoTEventsData.use((svc) => svc.describeAlarm(args)); const result = await pipe( program, diff --git a/packages/client-iot-events-data/package.json b/packages/client-iot-events-data/package.json index 4b36a747..1097edc7 100644 --- a/packages/client-iot-events-data/package.json +++ b/packages/client-iot-events-data/package.json @@ -26,11 +26,11 @@ }, "devDependencies": { "@types/node": "ts5.4", - "effect": "^3.16.4", + "effect": "4.0.0-beta.8", "typescript": "^5.4.2" }, "peerDependencies": { - "effect": ">=3.0.4 <4.0.0" + "effect": ">=4.0.0 <5.0.0" }, "dependencies": { "@aws-sdk/client-iot-events-data": "^3", diff --git a/packages/client-iot-events-data/src/IoTEventsDataClientInstance.ts b/packages/client-iot-events-data/src/IoTEventsDataClientInstance.ts index 4eec4734..6e847d12 100644 --- a/packages/client-iot-events-data/src/IoTEventsDataClientInstance.ts +++ b/packages/client-iot-events-data/src/IoTEventsDataClientInstance.ts @@ -2,16 +2,16 @@ * @since 1.0.0 */ import { IoTEventsDataClient } from "@aws-sdk/client-iot-events-data"; -import { Context, Effect, Layer } from "effect"; +import { Effect, Layer, ServiceMap } from "effect"; import * as IoTEventsDataServiceConfig from "./IoTEventsDataServiceConfig.js"; /** * @since 1.0.0 * @category tags */ -export class IoTEventsDataClientInstance extends Context.Tag( +export class IoTEventsDataClientInstance extends ServiceMap.Service()( "@effect-aws/client-iot-events-data/IoTEventsDataClientInstance", -)() {} +) {} /** * @since 1.0.0 @@ -30,4 +30,4 @@ export const make = Effect.flatMap( * @since 1.0.0 * @category layers */ -export const layer = Layer.scoped(IoTEventsDataClientInstance, make); +export const layer = Layer.effect(IoTEventsDataClientInstance, make); diff --git a/packages/client-iot-events-data/src/IoTEventsDataService.ts b/packages/client-iot-events-data/src/IoTEventsDataService.ts index 5a4b0639..feb44dea 100644 --- a/packages/client-iot-events-data/src/IoTEventsDataService.ts +++ b/packages/client-iot-events-data/src/IoTEventsDataService.ts @@ -44,7 +44,7 @@ import { import type { HttpHandlerOptions, ServiceLogger } from "@effect-aws/commons"; import { Service } from "@effect-aws/commons"; import type { Cause } from "effect"; -import { Effect, Layer } from "effect"; +import { Effect, Layer, ServiceMap } from "effect"; import type { InternalFailureError, InvalidRequestError, @@ -83,7 +83,7 @@ interface IoTEventsDataService$ { options?: HttpHandlerOptions, ): Effect.Effect< BatchAcknowledgeAlarmCommandOutput, - | Cause.TimeoutException + | Cause.TimeoutError | SdkError | InternalFailureError | InvalidRequestError @@ -99,7 +99,7 @@ interface IoTEventsDataService$ { options?: HttpHandlerOptions, ): Effect.Effect< BatchDeleteDetectorCommandOutput, - | Cause.TimeoutException + | Cause.TimeoutError | SdkError | InternalFailureError | InvalidRequestError @@ -115,7 +115,7 @@ interface IoTEventsDataService$ { options?: HttpHandlerOptions, ): Effect.Effect< BatchDisableAlarmCommandOutput, - | Cause.TimeoutException + | Cause.TimeoutError | SdkError | InternalFailureError | InvalidRequestError @@ -131,7 +131,7 @@ interface IoTEventsDataService$ { options?: HttpHandlerOptions, ): Effect.Effect< BatchEnableAlarmCommandOutput, - | Cause.TimeoutException + | Cause.TimeoutError | SdkError | InternalFailureError | InvalidRequestError @@ -147,7 +147,7 @@ interface IoTEventsDataService$ { options?: HttpHandlerOptions, ): Effect.Effect< BatchPutMessageCommandOutput, - | Cause.TimeoutException + | Cause.TimeoutError | SdkError | InternalFailureError | InvalidRequestError @@ -163,7 +163,7 @@ interface IoTEventsDataService$ { options?: HttpHandlerOptions, ): Effect.Effect< BatchResetAlarmCommandOutput, - | Cause.TimeoutException + | Cause.TimeoutError | SdkError | InternalFailureError | InvalidRequestError @@ -179,7 +179,7 @@ interface IoTEventsDataService$ { options?: HttpHandlerOptions, ): Effect.Effect< BatchSnoozeAlarmCommandOutput, - | Cause.TimeoutException + | Cause.TimeoutError | SdkError | InternalFailureError | InvalidRequestError @@ -195,7 +195,7 @@ interface IoTEventsDataService$ { options?: HttpHandlerOptions, ): Effect.Effect< BatchUpdateDetectorCommandOutput, - | Cause.TimeoutException + | Cause.TimeoutError | SdkError | InternalFailureError | InvalidRequestError @@ -211,7 +211,7 @@ interface IoTEventsDataService$ { options?: HttpHandlerOptions, ): Effect.Effect< DescribeAlarmCommandOutput, - | Cause.TimeoutException + | Cause.TimeoutError | SdkError | InternalFailureError | InvalidRequestError @@ -228,7 +228,7 @@ interface IoTEventsDataService$ { options?: HttpHandlerOptions, ): Effect.Effect< DescribeDetectorCommandOutput, - | Cause.TimeoutException + | Cause.TimeoutError | SdkError | InternalFailureError | InvalidRequestError @@ -245,7 +245,7 @@ interface IoTEventsDataService$ { options?: HttpHandlerOptions, ): Effect.Effect< ListAlarmsCommandOutput, - | Cause.TimeoutException + | Cause.TimeoutError | SdkError | InternalFailureError | InvalidRequestError @@ -262,7 +262,7 @@ interface IoTEventsDataService$ { options?: HttpHandlerOptions, ): Effect.Effect< ListDetectorsCommandOutput, - | Cause.TimeoutException + | Cause.TimeoutError | SdkError | InternalFailureError | InvalidRequestError @@ -293,10 +293,10 @@ export const makeIoTEventsDataService = Effect.gen(function*() { * @since 1.0.0 * @category models */ -export class IoTEventsDataService extends Effect.Tag("@effect-aws/client-iot-events-data/IoTEventsDataService")< +export class IoTEventsDataService extends ServiceMap.Service< IoTEventsDataService, IoTEventsDataService$ ->() { +>()("@effect-aws/client-iot-events-data/IoTEventsDataService") { static readonly defaultLayer = Layer.effect(this, makeIoTEventsDataService).pipe(Layer.provide(Instance.layer)); static readonly layer = (config: IoTEventsDataService.Config) => Layer.effect(this, makeIoTEventsDataService).pipe( diff --git a/packages/client-iot-events-data/src/IoTEventsDataServiceConfig.ts b/packages/client-iot-events-data/src/IoTEventsDataServiceConfig.ts index 5ab63976..4325ca82 100644 --- a/packages/client-iot-events-data/src/IoTEventsDataServiceConfig.ts +++ b/packages/client-iot-events-data/src/IoTEventsDataServiceConfig.ts @@ -3,18 +3,17 @@ */ import type { IoTEventsDataClientConfig } from "@aws-sdk/client-iot-events-data"; import { ServiceLogger } from "@effect-aws/commons"; -import { Effect, FiberRef, Layer } from "effect"; +import { Effect, Layer, ServiceMap } from "effect"; import { dual } from "effect/Function"; -import { globalValue } from "effect/GlobalValue"; import type { IoTEventsDataService } from "./IoTEventsDataService.js"; /** * @since 1.0.0 * @category iot-events-data service config */ -const currentIoTEventsDataServiceConfig = globalValue( +const currentIoTEventsDataServiceConfig = ServiceMap.Reference( "@effect-aws/client-iot-events-data/currentIoTEventsDataServiceConfig", - () => FiberRef.unsafeMake({}), + { defaultValue: () => ({}) }, ); /** @@ -27,7 +26,7 @@ export const withIoTEventsDataServiceConfig: { } = dual( 2, (effect: Effect.Effect, config: IoTEventsDataService.Config): Effect.Effect => - Effect.locally(effect, currentIoTEventsDataServiceConfig, config), + Effect.provideService(effect, currentIoTEventsDataServiceConfig, config), ); /** @@ -35,14 +34,14 @@ export const withIoTEventsDataServiceConfig: { * @category iot-events-data service config */ export const setIoTEventsDataServiceConfig = (config: IoTEventsDataService.Config) => - Layer.locallyScoped(currentIoTEventsDataServiceConfig, config); + Layer.succeed(currentIoTEventsDataServiceConfig, config); /** * @since 1.0.0 * @category adapters */ export const toIoTEventsDataClientConfig: Effect.Effect = Effect.gen(function*() { - const { logger: serviceLogger, ...config } = yield* FiberRef.get(currentIoTEventsDataServiceConfig); + const { logger: serviceLogger, ...config } = yield* currentIoTEventsDataServiceConfig; const logger = serviceLogger === true ? yield* ServiceLogger.toClientLogger(ServiceLogger.defaultServiceLogger) diff --git a/packages/client-iot-events-data/test/IoTEventsData.test.ts b/packages/client-iot-events-data/test/IoTEventsData.test.ts index ed091e8b..fc74e633 100644 --- a/packages/client-iot-events-data/test/IoTEventsData.test.ts +++ b/packages/client-iot-events-data/test/IoTEventsData.test.ts @@ -26,7 +26,7 @@ describe("IoTEventsDataClientImpl", () => { const args = {} as unknown as DescribeAlarmCommandInput; - const program = IoTEventsData.describeAlarm(args); + const program = IoTEventsData.use((svc) => svc.describeAlarm(args)); const result = await pipe( program, @@ -46,7 +46,7 @@ describe("IoTEventsDataClientImpl", () => { const args = {} as unknown as DescribeAlarmCommandInput; - const program = IoTEventsData.describeAlarm(args); + const program = IoTEventsData.use((svc) => svc.describeAlarm(args)); const result = await pipe( program, @@ -69,7 +69,7 @@ describe("IoTEventsDataClientImpl", () => { const args = {} as unknown as DescribeAlarmCommandInput; - const program = IoTEventsData.describeAlarm(args); + const program = IoTEventsData.use((svc) => svc.describeAlarm(args)); const result = await pipe( program, @@ -93,7 +93,7 @@ describe("IoTEventsDataClientImpl", () => { const args = {} as unknown as DescribeAlarmCommandInput; - const program = IoTEventsData.describeAlarm(args); + const program = IoTEventsData.use((svc) => svc.describeAlarm(args)); const result = await pipe( program, @@ -121,7 +121,7 @@ describe("IoTEventsDataClientImpl", () => { const args = {} as unknown as DescribeAlarmCommandInput; - const program = IoTEventsData.describeAlarm(args); + const program = IoTEventsData.use((svc) => svc.describeAlarm(args)); const result = await pipe( program, @@ -131,7 +131,7 @@ describe("IoTEventsDataClientImpl", () => { expect(result).toEqual( Exit.fail( - SdkError({ + new SdkError({ ...new Error("test"), name: "SdkError", message: "test", @@ -156,7 +156,7 @@ describe("IoTEventsDataClientImpl", () => { const args = {} as unknown as DescribeAlarmCommandInput; - const program = IoTEventsData.describeAlarm(args).pipe( + const program = IoTEventsData.use((svc) => svc.describeAlarm(args)).pipe( Effect.catchTag("NotHandledException" as any, () => Effect.succeed(null)), ); @@ -166,9 +166,9 @@ describe("IoTEventsDataClientImpl", () => { Effect.runPromiseExit, ); - expect(result).toEqual( + expect(result).toContainEqual( Exit.fail( - SdkError({ + new SdkError({ ...new Error("test"), name: "SdkError", message: "test", diff --git a/packages/client-iot-events/.projen/deps.json b/packages/client-iot-events/.projen/deps.json index 98d445b3..9134184e 100644 --- a/packages/client-iot-events/.projen/deps.json +++ b/packages/client-iot-events/.projen/deps.json @@ -7,6 +7,7 @@ }, { "name": "effect", + "version": "4.0.0-beta.8", "type": "build" }, { @@ -16,7 +17,7 @@ }, { "name": "effect", - "version": ">=3.0.4 <4.0.0", + "version": ">=4.0.0 <5.0.0", "type": "peer" }, { diff --git a/packages/client-iot-events/README.md b/packages/client-iot-events/README.md index 26f1f48f..83b14692 100644 --- a/packages/client-iot-events/README.md +++ b/packages/client-iot-events/README.md @@ -16,7 +16,7 @@ With default IoTEventsClient instance: ```typescript import { IoTEvents } from "@effect-aws/client-iot-events"; -const program = IoTEvents.listInputs(args); +const program = IoTEvents.use((svc) => svc.listInputs(args)); const result = pipe( program, @@ -30,7 +30,7 @@ With custom IoTEventsClient instance: ```typescript import { IoTEvents } from "@effect-aws/client-iot-events"; -const program = IoTEvents.listInputs(args); +const program = IoTEvents.use((svc) => svc.listInputs(args)); const result = await pipe( program, @@ -46,7 +46,7 @@ With custom IoTEventsClient configuration: ```typescript import { IoTEvents } from "@effect-aws/client-iot-events"; -const program = IoTEvents.listInputs(args); +const program = IoTEvents.use((svc) => svc.listInputs(args)); const result = await pipe( program, diff --git a/packages/client-iot-events/package.json b/packages/client-iot-events/package.json index 9be6d58f..cfb06cbf 100644 --- a/packages/client-iot-events/package.json +++ b/packages/client-iot-events/package.json @@ -26,11 +26,11 @@ }, "devDependencies": { "@types/node": "ts5.4", - "effect": "^3.16.4", + "effect": "4.0.0-beta.8", "typescript": "^5.4.2" }, "peerDependencies": { - "effect": ">=3.0.4 <4.0.0" + "effect": ">=4.0.0 <5.0.0" }, "dependencies": { "@aws-sdk/client-iot-events": "^3", diff --git a/packages/client-iot-events/src/IoTEventsClientInstance.ts b/packages/client-iot-events/src/IoTEventsClientInstance.ts index 2ac7ac69..f2c73a58 100644 --- a/packages/client-iot-events/src/IoTEventsClientInstance.ts +++ b/packages/client-iot-events/src/IoTEventsClientInstance.ts @@ -2,16 +2,16 @@ * @since 1.0.0 */ import { IoTEventsClient } from "@aws-sdk/client-iot-events"; -import { Context, Effect, Layer } from "effect"; +import { Effect, Layer, ServiceMap } from "effect"; import * as IoTEventsServiceConfig from "./IoTEventsServiceConfig.js"; /** * @since 1.0.0 * @category tags */ -export class IoTEventsClientInstance extends Context.Tag( +export class IoTEventsClientInstance extends ServiceMap.Service()( "@effect-aws/client-iot-events/IoTEventsClientInstance", -)() {} +) {} /** * @since 1.0.0 @@ -30,4 +30,4 @@ export const make = Effect.flatMap( * @since 1.0.0 * @category layers */ -export const layer = Layer.scoped(IoTEventsClientInstance, make); +export const layer = Layer.effect(IoTEventsClientInstance, make); diff --git a/packages/client-iot-events/src/IoTEventsService.ts b/packages/client-iot-events/src/IoTEventsService.ts index 33fe4056..fd0b74e8 100644 --- a/packages/client-iot-events/src/IoTEventsService.ts +++ b/packages/client-iot-events/src/IoTEventsService.ts @@ -86,7 +86,7 @@ import { import type { HttpHandlerOptions, ServiceLogger } from "@effect-aws/commons"; import { Service } from "@effect-aws/commons"; import type { Cause } from "effect"; -import { Effect, Layer } from "effect"; +import { Effect, Layer, ServiceMap } from "effect"; import type { InternalFailureError, InvalidRequestError, @@ -143,7 +143,7 @@ interface IoTEventsService$ { options?: HttpHandlerOptions, ): Effect.Effect< CreateAlarmModelCommandOutput, - | Cause.TimeoutException + | Cause.TimeoutError | SdkError | InternalFailureError | InvalidRequestError @@ -162,7 +162,7 @@ interface IoTEventsService$ { options?: HttpHandlerOptions, ): Effect.Effect< CreateDetectorModelCommandOutput, - | Cause.TimeoutException + | Cause.TimeoutError | SdkError | InternalFailureError | InvalidRequestError @@ -181,7 +181,7 @@ interface IoTEventsService$ { options?: HttpHandlerOptions, ): Effect.Effect< CreateInputCommandOutput, - | Cause.TimeoutException + | Cause.TimeoutError | SdkError | InternalFailureError | InvalidRequestError @@ -198,7 +198,7 @@ interface IoTEventsService$ { options?: HttpHandlerOptions, ): Effect.Effect< DeleteAlarmModelCommandOutput, - | Cause.TimeoutException + | Cause.TimeoutError | SdkError | InternalFailureError | InvalidRequestError @@ -216,7 +216,7 @@ interface IoTEventsService$ { options?: HttpHandlerOptions, ): Effect.Effect< DeleteDetectorModelCommandOutput, - | Cause.TimeoutException + | Cause.TimeoutError | SdkError | InternalFailureError | InvalidRequestError @@ -234,7 +234,7 @@ interface IoTEventsService$ { options?: HttpHandlerOptions, ): Effect.Effect< DeleteInputCommandOutput, - | Cause.TimeoutException + | Cause.TimeoutError | SdkError | InternalFailureError | InvalidRequestError @@ -252,7 +252,7 @@ interface IoTEventsService$ { options?: HttpHandlerOptions, ): Effect.Effect< DescribeAlarmModelCommandOutput, - | Cause.TimeoutException + | Cause.TimeoutError | SdkError | InternalFailureError | InvalidRequestError @@ -269,7 +269,7 @@ interface IoTEventsService$ { options?: HttpHandlerOptions, ): Effect.Effect< DescribeDetectorModelCommandOutput, - | Cause.TimeoutException + | Cause.TimeoutError | SdkError | InternalFailureError | InvalidRequestError @@ -286,7 +286,7 @@ interface IoTEventsService$ { options?: HttpHandlerOptions, ): Effect.Effect< DescribeDetectorModelAnalysisCommandOutput, - | Cause.TimeoutException + | Cause.TimeoutError | SdkError | InternalFailureError | InvalidRequestError @@ -303,7 +303,7 @@ interface IoTEventsService$ { options?: HttpHandlerOptions, ): Effect.Effect< DescribeInputCommandOutput, - | Cause.TimeoutException + | Cause.TimeoutError | SdkError | InternalFailureError | InvalidRequestError @@ -320,7 +320,7 @@ interface IoTEventsService$ { options?: HttpHandlerOptions, ): Effect.Effect< DescribeLoggingOptionsCommandOutput, - | Cause.TimeoutException + | Cause.TimeoutError | SdkError | InternalFailureError | InvalidRequestError @@ -338,7 +338,7 @@ interface IoTEventsService$ { options?: HttpHandlerOptions, ): Effect.Effect< GetDetectorModelAnalysisResultsCommandOutput, - | Cause.TimeoutException + | Cause.TimeoutError | SdkError | InternalFailureError | InvalidRequestError @@ -355,7 +355,7 @@ interface IoTEventsService$ { options?: HttpHandlerOptions, ): Effect.Effect< ListAlarmModelVersionsCommandOutput, - | Cause.TimeoutException + | Cause.TimeoutError | SdkError | InternalFailureError | InvalidRequestError @@ -372,7 +372,7 @@ interface IoTEventsService$ { options?: HttpHandlerOptions, ): Effect.Effect< ListAlarmModelsCommandOutput, - | Cause.TimeoutException + | Cause.TimeoutError | SdkError | InternalFailureError | InvalidRequestError @@ -388,7 +388,7 @@ interface IoTEventsService$ { options?: HttpHandlerOptions, ): Effect.Effect< ListDetectorModelVersionsCommandOutput, - | Cause.TimeoutException + | Cause.TimeoutError | SdkError | InternalFailureError | InvalidRequestError @@ -405,7 +405,7 @@ interface IoTEventsService$ { options?: HttpHandlerOptions, ): Effect.Effect< ListDetectorModelsCommandOutput, - | Cause.TimeoutException + | Cause.TimeoutError | SdkError | InternalFailureError | InvalidRequestError @@ -421,7 +421,7 @@ interface IoTEventsService$ { options?: HttpHandlerOptions, ): Effect.Effect< ListInputRoutingsCommandOutput, - | Cause.TimeoutException + | Cause.TimeoutError | SdkError | InternalFailureError | InvalidRequestError @@ -438,7 +438,7 @@ interface IoTEventsService$ { options?: HttpHandlerOptions, ): Effect.Effect< ListInputsCommandOutput, - | Cause.TimeoutException + | Cause.TimeoutError | SdkError | InternalFailureError | InvalidRequestError @@ -454,7 +454,7 @@ interface IoTEventsService$ { options?: HttpHandlerOptions, ): Effect.Effect< ListTagsForResourceCommandOutput, - | Cause.TimeoutException + | Cause.TimeoutError | SdkError | InternalFailureError | InvalidRequestError @@ -471,7 +471,7 @@ interface IoTEventsService$ { options?: HttpHandlerOptions, ): Effect.Effect< PutLoggingOptionsCommandOutput, - | Cause.TimeoutException + | Cause.TimeoutError | SdkError | InternalFailureError | InvalidRequestError @@ -489,7 +489,7 @@ interface IoTEventsService$ { options?: HttpHandlerOptions, ): Effect.Effect< StartDetectorModelAnalysisCommandOutput, - | Cause.TimeoutException + | Cause.TimeoutError | SdkError | InternalFailureError | InvalidRequestError @@ -506,7 +506,7 @@ interface IoTEventsService$ { options?: HttpHandlerOptions, ): Effect.Effect< TagResourceCommandOutput, - | Cause.TimeoutException + | Cause.TimeoutError | SdkError | InternalFailureError | InvalidRequestError @@ -524,7 +524,7 @@ interface IoTEventsService$ { options?: HttpHandlerOptions, ): Effect.Effect< UntagResourceCommandOutput, - | Cause.TimeoutException + | Cause.TimeoutError | SdkError | InternalFailureError | InvalidRequestError @@ -541,7 +541,7 @@ interface IoTEventsService$ { options?: HttpHandlerOptions, ): Effect.Effect< UpdateAlarmModelCommandOutput, - | Cause.TimeoutException + | Cause.TimeoutError | SdkError | InternalFailureError | InvalidRequestError @@ -559,7 +559,7 @@ interface IoTEventsService$ { options?: HttpHandlerOptions, ): Effect.Effect< UpdateDetectorModelCommandOutput, - | Cause.TimeoutException + | Cause.TimeoutError | SdkError | InternalFailureError | InvalidRequestError @@ -577,7 +577,7 @@ interface IoTEventsService$ { options?: HttpHandlerOptions, ): Effect.Effect< UpdateInputCommandOutput, - | Cause.TimeoutException + | Cause.TimeoutError | SdkError | InternalFailureError | InvalidRequestError @@ -609,10 +609,10 @@ export const makeIoTEventsService = Effect.gen(function*() { * @since 1.0.0 * @category models */ -export class IoTEventsService extends Effect.Tag("@effect-aws/client-iot-events/IoTEventsService")< +export class IoTEventsService extends ServiceMap.Service< IoTEventsService, IoTEventsService$ ->() { +>()("@effect-aws/client-iot-events/IoTEventsService") { static readonly defaultLayer = Layer.effect(this, makeIoTEventsService).pipe(Layer.provide(Instance.layer)); static readonly layer = (config: IoTEventsService.Config) => Layer.effect(this, makeIoTEventsService).pipe( diff --git a/packages/client-iot-events/src/IoTEventsServiceConfig.ts b/packages/client-iot-events/src/IoTEventsServiceConfig.ts index 981e3527..f5339b5d 100644 --- a/packages/client-iot-events/src/IoTEventsServiceConfig.ts +++ b/packages/client-iot-events/src/IoTEventsServiceConfig.ts @@ -3,18 +3,17 @@ */ import type { IoTEventsClientConfig } from "@aws-sdk/client-iot-events"; import { ServiceLogger } from "@effect-aws/commons"; -import { Effect, FiberRef, Layer } from "effect"; +import { Effect, Layer, ServiceMap } from "effect"; import { dual } from "effect/Function"; -import { globalValue } from "effect/GlobalValue"; import type { IoTEventsService } from "./IoTEventsService.js"; /** * @since 1.0.0 * @category iot-events service config */ -const currentIoTEventsServiceConfig = globalValue( +const currentIoTEventsServiceConfig = ServiceMap.Reference( "@effect-aws/client-iot-events/currentIoTEventsServiceConfig", - () => FiberRef.unsafeMake({}), + { defaultValue: () => ({}) }, ); /** @@ -27,7 +26,7 @@ export const withIoTEventsServiceConfig: { } = dual( 2, (effect: Effect.Effect, config: IoTEventsService.Config): Effect.Effect => - Effect.locally(effect, currentIoTEventsServiceConfig, config), + Effect.provideService(effect, currentIoTEventsServiceConfig, config), ); /** @@ -35,14 +34,14 @@ export const withIoTEventsServiceConfig: { * @category iot-events service config */ export const setIoTEventsServiceConfig = (config: IoTEventsService.Config) => - Layer.locallyScoped(currentIoTEventsServiceConfig, config); + Layer.succeed(currentIoTEventsServiceConfig, config); /** * @since 1.0.0 * @category adapters */ export const toIoTEventsClientConfig: Effect.Effect = Effect.gen(function*() { - const { logger: serviceLogger, ...config } = yield* FiberRef.get(currentIoTEventsServiceConfig); + const { logger: serviceLogger, ...config } = yield* currentIoTEventsServiceConfig; const logger = serviceLogger === true ? yield* ServiceLogger.toClientLogger(ServiceLogger.defaultServiceLogger) diff --git a/packages/client-iot-events/test/IoTEvents.test.ts b/packages/client-iot-events/test/IoTEvents.test.ts index b6edf552..b6ce37c5 100644 --- a/packages/client-iot-events/test/IoTEvents.test.ts +++ b/packages/client-iot-events/test/IoTEvents.test.ts @@ -26,7 +26,7 @@ describe("IoTEventsClientImpl", () => { const args = {} as unknown as ListInputsCommandInput; - const program = IoTEvents.listInputs(args); + const program = IoTEvents.use((svc) => svc.listInputs(args)); const result = await pipe( program, @@ -46,7 +46,7 @@ describe("IoTEventsClientImpl", () => { const args = {} as unknown as ListInputsCommandInput; - const program = IoTEvents.listInputs(args); + const program = IoTEvents.use((svc) => svc.listInputs(args)); const result = await pipe( program, @@ -69,7 +69,7 @@ describe("IoTEventsClientImpl", () => { const args = {} as unknown as ListInputsCommandInput; - const program = IoTEvents.listInputs(args); + const program = IoTEvents.use((svc) => svc.listInputs(args)); const result = await pipe( program, @@ -93,7 +93,7 @@ describe("IoTEventsClientImpl", () => { const args = {} as unknown as ListInputsCommandInput; - const program = IoTEvents.listInputs(args); + const program = IoTEvents.use((svc) => svc.listInputs(args)); const result = await pipe( program, @@ -121,7 +121,7 @@ describe("IoTEventsClientImpl", () => { const args = {} as unknown as ListInputsCommandInput; - const program = IoTEvents.listInputs(args); + const program = IoTEvents.use((svc) => svc.listInputs(args)); const result = await pipe( program, @@ -131,7 +131,7 @@ describe("IoTEventsClientImpl", () => { expect(result).toEqual( Exit.fail( - SdkError({ + new SdkError({ ...new Error("test"), name: "SdkError", message: "test", @@ -156,7 +156,7 @@ describe("IoTEventsClientImpl", () => { const args = {} as unknown as ListInputsCommandInput; - const program = IoTEvents.listInputs(args).pipe( + const program = IoTEvents.use((svc) => svc.listInputs(args)).pipe( Effect.catchTag("NotHandledException" as any, () => Effect.succeed(null)), ); @@ -166,9 +166,9 @@ describe("IoTEventsClientImpl", () => { Effect.runPromiseExit, ); - expect(result).toEqual( + expect(result).toContainEqual( Exit.fail( - SdkError({ + new SdkError({ ...new Error("test"), name: "SdkError", message: "test", diff --git a/packages/client-iot-jobs-data-plane/.projen/deps.json b/packages/client-iot-jobs-data-plane/.projen/deps.json index 22856563..4e338880 100644 --- a/packages/client-iot-jobs-data-plane/.projen/deps.json +++ b/packages/client-iot-jobs-data-plane/.projen/deps.json @@ -7,6 +7,7 @@ }, { "name": "effect", + "version": "4.0.0-beta.8", "type": "build" }, { @@ -16,7 +17,7 @@ }, { "name": "effect", - "version": ">=3.0.4 <4.0.0", + "version": ">=4.0.0 <5.0.0", "type": "peer" }, { diff --git a/packages/client-iot-jobs-data-plane/README.md b/packages/client-iot-jobs-data-plane/README.md index b9696315..0ce13775 100644 --- a/packages/client-iot-jobs-data-plane/README.md +++ b/packages/client-iot-jobs-data-plane/README.md @@ -16,7 +16,7 @@ With default IoTJobsDataPlaneClient instance: ```typescript import { IoTJobsDataPlane } from "@effect-aws/client-iot-jobs-data-plane"; -const program = IoTJobsDataPlane.startCommandExecution(args); +const program = IoTJobsDataPlane.use((svc) => svc.startCommandExecution(args)); const result = pipe( program, @@ -30,7 +30,7 @@ With custom IoTJobsDataPlaneClient instance: ```typescript import { IoTJobsDataPlane } from "@effect-aws/client-iot-jobs-data-plane"; -const program = IoTJobsDataPlane.startCommandExecution(args); +const program = IoTJobsDataPlane.use((svc) => svc.startCommandExecution(args)); const result = await pipe( program, @@ -46,7 +46,7 @@ With custom IoTJobsDataPlaneClient configuration: ```typescript import { IoTJobsDataPlane } from "@effect-aws/client-iot-jobs-data-plane"; -const program = IoTJobsDataPlane.startCommandExecution(args); +const program = IoTJobsDataPlane.use((svc) => svc.startCommandExecution(args)); const result = await pipe( program, diff --git a/packages/client-iot-jobs-data-plane/package.json b/packages/client-iot-jobs-data-plane/package.json index bc0d5487..90f4cdd9 100644 --- a/packages/client-iot-jobs-data-plane/package.json +++ b/packages/client-iot-jobs-data-plane/package.json @@ -26,11 +26,11 @@ }, "devDependencies": { "@types/node": "ts5.4", - "effect": "^3.16.4", + "effect": "4.0.0-beta.8", "typescript": "^5.4.2" }, "peerDependencies": { - "effect": ">=3.0.4 <4.0.0" + "effect": ">=4.0.0 <5.0.0" }, "dependencies": { "@aws-sdk/client-iot-jobs-data-plane": "^3", diff --git a/packages/client-iot-jobs-data-plane/src/IoTJobsDataPlaneClientInstance.ts b/packages/client-iot-jobs-data-plane/src/IoTJobsDataPlaneClientInstance.ts index 70062d6a..82c47177 100644 --- a/packages/client-iot-jobs-data-plane/src/IoTJobsDataPlaneClientInstance.ts +++ b/packages/client-iot-jobs-data-plane/src/IoTJobsDataPlaneClientInstance.ts @@ -2,16 +2,18 @@ * @since 1.0.0 */ import { IoTJobsDataPlaneClient } from "@aws-sdk/client-iot-jobs-data-plane"; -import { Context, Effect, Layer } from "effect"; +import { Effect, Layer, ServiceMap } from "effect"; import * as IoTJobsDataPlaneServiceConfig from "./IoTJobsDataPlaneServiceConfig.js"; /** * @since 1.0.0 * @category tags */ -export class IoTJobsDataPlaneClientInstance extends Context.Tag( - "@effect-aws/client-iot-jobs-data-plane/IoTJobsDataPlaneClientInstance", -)() {} +export class IoTJobsDataPlaneClientInstance + extends ServiceMap.Service()( + "@effect-aws/client-iot-jobs-data-plane/IoTJobsDataPlaneClientInstance", + ) +{} /** * @since 1.0.0 @@ -30,4 +32,4 @@ export const make = Effect.flatMap( * @since 1.0.0 * @category layers */ -export const layer = Layer.scoped(IoTJobsDataPlaneClientInstance, make); +export const layer = Layer.effect(IoTJobsDataPlaneClientInstance, make); diff --git a/packages/client-iot-jobs-data-plane/src/IoTJobsDataPlaneService.ts b/packages/client-iot-jobs-data-plane/src/IoTJobsDataPlaneService.ts index df3bff55..51d49797 100644 --- a/packages/client-iot-jobs-data-plane/src/IoTJobsDataPlaneService.ts +++ b/packages/client-iot-jobs-data-plane/src/IoTJobsDataPlaneService.ts @@ -23,7 +23,7 @@ import { import type { HttpHandlerOptions, ServiceLogger } from "@effect-aws/commons"; import { Service } from "@effect-aws/commons"; import type { Cause } from "effect"; -import { Effect, Layer } from "effect"; +import { Effect, Layer, ServiceMap } from "effect"; import type { CertificateValidationError, ConflictError, @@ -61,7 +61,7 @@ interface IoTJobsDataPlaneService$ { options?: HttpHandlerOptions, ): Effect.Effect< DescribeJobExecutionCommandOutput, - | Cause.TimeoutException + | Cause.TimeoutError | SdkError | CertificateValidationError | InvalidRequestError @@ -79,7 +79,7 @@ interface IoTJobsDataPlaneService$ { options?: HttpHandlerOptions, ): Effect.Effect< GetPendingJobExecutionsCommandOutput, - | Cause.TimeoutException + | Cause.TimeoutError | SdkError | CertificateValidationError | InvalidRequestError @@ -96,7 +96,7 @@ interface IoTJobsDataPlaneService$ { options?: HttpHandlerOptions, ): Effect.Effect< StartCommandExecutionCommandOutput, - | Cause.TimeoutException + | Cause.TimeoutError | SdkError | ConflictError | InternalServerError @@ -114,7 +114,7 @@ interface IoTJobsDataPlaneService$ { options?: HttpHandlerOptions, ): Effect.Effect< StartNextPendingJobExecutionCommandOutput, - | Cause.TimeoutException + | Cause.TimeoutError | SdkError | CertificateValidationError | InvalidRequestError @@ -131,7 +131,7 @@ interface IoTJobsDataPlaneService$ { options?: HttpHandlerOptions, ): Effect.Effect< UpdateJobExecutionCommandOutput, - | Cause.TimeoutException + | Cause.TimeoutError | SdkError | CertificateValidationError | InvalidRequestError @@ -163,12 +163,10 @@ export const makeIoTJobsDataPlaneService = Effect.gen(function*() { * @since 1.0.0 * @category models */ -export class IoTJobsDataPlaneService - extends Effect.Tag("@effect-aws/client-iot-jobs-data-plane/IoTJobsDataPlaneService")< - IoTJobsDataPlaneService, - IoTJobsDataPlaneService$ - >() -{ +export class IoTJobsDataPlaneService extends ServiceMap.Service< + IoTJobsDataPlaneService, + IoTJobsDataPlaneService$ +>()("@effect-aws/client-iot-jobs-data-plane/IoTJobsDataPlaneService") { static readonly defaultLayer = Layer.effect(this, makeIoTJobsDataPlaneService).pipe(Layer.provide(Instance.layer)); static readonly layer = (config: IoTJobsDataPlaneService.Config) => Layer.effect(this, makeIoTJobsDataPlaneService).pipe( diff --git a/packages/client-iot-jobs-data-plane/src/IoTJobsDataPlaneServiceConfig.ts b/packages/client-iot-jobs-data-plane/src/IoTJobsDataPlaneServiceConfig.ts index 602fb0a8..8bf6d68b 100644 --- a/packages/client-iot-jobs-data-plane/src/IoTJobsDataPlaneServiceConfig.ts +++ b/packages/client-iot-jobs-data-plane/src/IoTJobsDataPlaneServiceConfig.ts @@ -3,18 +3,17 @@ */ import type { IoTJobsDataPlaneClientConfig } from "@aws-sdk/client-iot-jobs-data-plane"; import { ServiceLogger } from "@effect-aws/commons"; -import { Effect, FiberRef, Layer } from "effect"; +import { Effect, Layer, ServiceMap } from "effect"; import { dual } from "effect/Function"; -import { globalValue } from "effect/GlobalValue"; import type { IoTJobsDataPlaneService } from "./IoTJobsDataPlaneService.js"; /** * @since 1.0.0 * @category iot-jobs-data-plane service config */ -const currentIoTJobsDataPlaneServiceConfig = globalValue( +const currentIoTJobsDataPlaneServiceConfig = ServiceMap.Reference( "@effect-aws/client-iot-jobs-data-plane/currentIoTJobsDataPlaneServiceConfig", - () => FiberRef.unsafeMake({}), + { defaultValue: () => ({}) }, ); /** @@ -27,7 +26,7 @@ export const withIoTJobsDataPlaneServiceConfig: { } = dual( 2, (effect: Effect.Effect, config: IoTJobsDataPlaneService.Config): Effect.Effect => - Effect.locally(effect, currentIoTJobsDataPlaneServiceConfig, config), + Effect.provideService(effect, currentIoTJobsDataPlaneServiceConfig, config), ); /** @@ -35,14 +34,14 @@ export const withIoTJobsDataPlaneServiceConfig: { * @category iot-jobs-data-plane service config */ export const setIoTJobsDataPlaneServiceConfig = (config: IoTJobsDataPlaneService.Config) => - Layer.locallyScoped(currentIoTJobsDataPlaneServiceConfig, config); + Layer.succeed(currentIoTJobsDataPlaneServiceConfig, config); /** * @since 1.0.0 * @category adapters */ export const toIoTJobsDataPlaneClientConfig: Effect.Effect = Effect.gen(function*() { - const { logger: serviceLogger, ...config } = yield* FiberRef.get(currentIoTJobsDataPlaneServiceConfig); + const { logger: serviceLogger, ...config } = yield* currentIoTJobsDataPlaneServiceConfig; const logger = serviceLogger === true ? yield* ServiceLogger.toClientLogger(ServiceLogger.defaultServiceLogger) diff --git a/packages/client-iot-jobs-data-plane/test/IoTJobsDataPlane.test.ts b/packages/client-iot-jobs-data-plane/test/IoTJobsDataPlane.test.ts index c614fdfe..8e5ff67f 100644 --- a/packages/client-iot-jobs-data-plane/test/IoTJobsDataPlane.test.ts +++ b/packages/client-iot-jobs-data-plane/test/IoTJobsDataPlane.test.ts @@ -26,7 +26,7 @@ describe("IoTJobsDataPlaneClientImpl", () => { const args = {} as unknown as StartCommandExecutionCommandInput; - const program = IoTJobsDataPlane.startCommandExecution(args); + const program = IoTJobsDataPlane.use((svc) => svc.startCommandExecution(args)); const result = await pipe( program, @@ -46,7 +46,7 @@ describe("IoTJobsDataPlaneClientImpl", () => { const args = {} as unknown as StartCommandExecutionCommandInput; - const program = IoTJobsDataPlane.startCommandExecution(args); + const program = IoTJobsDataPlane.use((svc) => svc.startCommandExecution(args)); const result = await pipe( program, @@ -69,7 +69,7 @@ describe("IoTJobsDataPlaneClientImpl", () => { const args = {} as unknown as StartCommandExecutionCommandInput; - const program = IoTJobsDataPlane.startCommandExecution(args); + const program = IoTJobsDataPlane.use((svc) => svc.startCommandExecution(args)); const result = await pipe( program, @@ -93,7 +93,7 @@ describe("IoTJobsDataPlaneClientImpl", () => { const args = {} as unknown as StartCommandExecutionCommandInput; - const program = IoTJobsDataPlane.startCommandExecution(args); + const program = IoTJobsDataPlane.use((svc) => svc.startCommandExecution(args)); const result = await pipe( program, @@ -121,7 +121,7 @@ describe("IoTJobsDataPlaneClientImpl", () => { const args = {} as unknown as StartCommandExecutionCommandInput; - const program = IoTJobsDataPlane.startCommandExecution(args); + const program = IoTJobsDataPlane.use((svc) => svc.startCommandExecution(args)); const result = await pipe( program, @@ -131,7 +131,7 @@ describe("IoTJobsDataPlaneClientImpl", () => { expect(result).toEqual( Exit.fail( - SdkError({ + new SdkError({ ...new Error("test"), name: "SdkError", message: "test", @@ -156,7 +156,7 @@ describe("IoTJobsDataPlaneClientImpl", () => { const args = {} as unknown as StartCommandExecutionCommandInput; - const program = IoTJobsDataPlane.startCommandExecution(args).pipe( + const program = IoTJobsDataPlane.use((svc) => svc.startCommandExecution(args)).pipe( Effect.catchTag("NotHandledException" as any, () => Effect.succeed(null)), ); @@ -166,9 +166,9 @@ describe("IoTJobsDataPlaneClientImpl", () => { Effect.runPromiseExit, ); - expect(result).toEqual( + expect(result).toContainEqual( Exit.fail( - SdkError({ + new SdkError({ ...new Error("test"), name: "SdkError", message: "test", diff --git a/packages/client-iot-wireless/.projen/deps.json b/packages/client-iot-wireless/.projen/deps.json index 929b77a0..7202e53a 100644 --- a/packages/client-iot-wireless/.projen/deps.json +++ b/packages/client-iot-wireless/.projen/deps.json @@ -7,6 +7,7 @@ }, { "name": "effect", + "version": "4.0.0-beta.8", "type": "build" }, { @@ -16,7 +17,7 @@ }, { "name": "effect", - "version": ">=3.0.4 <4.0.0", + "version": ">=4.0.0 <5.0.0", "type": "peer" }, { diff --git a/packages/client-iot-wireless/README.md b/packages/client-iot-wireless/README.md index d6e5405b..a6f4587b 100644 --- a/packages/client-iot-wireless/README.md +++ b/packages/client-iot-wireless/README.md @@ -16,7 +16,7 @@ With default IoTWirelessClient instance: ```typescript import { IoTWireless } from "@effect-aws/client-iot-wireless"; -const program = IoTWireless.listDestinations(args); +const program = IoTWireless.use((svc) => svc.listDestinations(args)); const result = pipe( program, @@ -30,7 +30,7 @@ With custom IoTWirelessClient instance: ```typescript import { IoTWireless } from "@effect-aws/client-iot-wireless"; -const program = IoTWireless.listDestinations(args); +const program = IoTWireless.use((svc) => svc.listDestinations(args)); const result = await pipe( program, @@ -46,7 +46,7 @@ With custom IoTWirelessClient configuration: ```typescript import { IoTWireless } from "@effect-aws/client-iot-wireless"; -const program = IoTWireless.listDestinations(args); +const program = IoTWireless.use((svc) => svc.listDestinations(args)); const result = await pipe( program, diff --git a/packages/client-iot-wireless/package.json b/packages/client-iot-wireless/package.json index 6e1dddab..3f690bfb 100644 --- a/packages/client-iot-wireless/package.json +++ b/packages/client-iot-wireless/package.json @@ -26,11 +26,11 @@ }, "devDependencies": { "@types/node": "ts5.4", - "effect": "^3.16.4", + "effect": "4.0.0-beta.8", "typescript": "^5.4.2" }, "peerDependencies": { - "effect": ">=3.0.4 <4.0.0" + "effect": ">=4.0.0 <5.0.0" }, "dependencies": { "@aws-sdk/client-iot-wireless": "^3", diff --git a/packages/client-iot-wireless/src/IoTWirelessClientInstance.ts b/packages/client-iot-wireless/src/IoTWirelessClientInstance.ts index d3039d5c..2d965081 100644 --- a/packages/client-iot-wireless/src/IoTWirelessClientInstance.ts +++ b/packages/client-iot-wireless/src/IoTWirelessClientInstance.ts @@ -2,16 +2,16 @@ * @since 1.0.0 */ import { IoTWirelessClient } from "@aws-sdk/client-iot-wireless"; -import { Context, Effect, Layer } from "effect"; +import { Effect, Layer, ServiceMap } from "effect"; import * as IoTWirelessServiceConfig from "./IoTWirelessServiceConfig.js"; /** * @since 1.0.0 * @category tags */ -export class IoTWirelessClientInstance extends Context.Tag( +export class IoTWirelessClientInstance extends ServiceMap.Service()( "@effect-aws/client-iot-wireless/IoTWirelessClientInstance", -)() {} +) {} /** * @since 1.0.0 @@ -30,4 +30,4 @@ export const make = Effect.flatMap( * @since 1.0.0 * @category layers */ -export const layer = Layer.scoped(IoTWirelessClientInstance, make); +export const layer = Layer.effect(IoTWirelessClientInstance, make); diff --git a/packages/client-iot-wireless/src/IoTWirelessService.ts b/packages/client-iot-wireless/src/IoTWirelessService.ts index ad63db08..ae59b6fd 100644 --- a/packages/client-iot-wireless/src/IoTWirelessService.ts +++ b/packages/client-iot-wireless/src/IoTWirelessService.ts @@ -344,7 +344,7 @@ import { import type { HttpHandlerOptions, ServiceLogger } from "@effect-aws/commons"; import { Service } from "@effect-aws/commons"; import type { Cause } from "effect"; -import { Effect, Layer } from "effect"; +import { Effect, Layer, ServiceMap } from "effect"; import type { AccessDeniedError, ConflictError, @@ -485,7 +485,7 @@ interface IoTWirelessService$ { options?: HttpHandlerOptions, ): Effect.Effect< AssociateAwsAccountWithPartnerAccountCommandOutput, - | Cause.TimeoutException + | Cause.TimeoutError | SdkError | AccessDeniedError | ConflictError @@ -503,7 +503,7 @@ interface IoTWirelessService$ { options?: HttpHandlerOptions, ): Effect.Effect< AssociateMulticastGroupWithFuotaTaskCommandOutput, - | Cause.TimeoutException + | Cause.TimeoutError | SdkError | AccessDeniedError | ConflictError @@ -521,7 +521,7 @@ interface IoTWirelessService$ { options?: HttpHandlerOptions, ): Effect.Effect< AssociateWirelessDeviceWithFuotaTaskCommandOutput, - | Cause.TimeoutException + | Cause.TimeoutError | SdkError | AccessDeniedError | ConflictError @@ -539,7 +539,7 @@ interface IoTWirelessService$ { options?: HttpHandlerOptions, ): Effect.Effect< AssociateWirelessDeviceWithMulticastGroupCommandOutput, - | Cause.TimeoutException + | Cause.TimeoutError | SdkError | AccessDeniedError | ConflictError @@ -557,7 +557,7 @@ interface IoTWirelessService$ { options?: HttpHandlerOptions, ): Effect.Effect< AssociateWirelessDeviceWithThingCommandOutput, - | Cause.TimeoutException + | Cause.TimeoutError | SdkError | AccessDeniedError | ConflictError @@ -575,7 +575,7 @@ interface IoTWirelessService$ { options?: HttpHandlerOptions, ): Effect.Effect< AssociateWirelessGatewayWithCertificateCommandOutput, - | Cause.TimeoutException + | Cause.TimeoutError | SdkError | AccessDeniedError | ConflictError @@ -593,7 +593,7 @@ interface IoTWirelessService$ { options?: HttpHandlerOptions, ): Effect.Effect< AssociateWirelessGatewayWithThingCommandOutput, - | Cause.TimeoutException + | Cause.TimeoutError | SdkError | AccessDeniedError | ConflictError @@ -611,7 +611,7 @@ interface IoTWirelessService$ { options?: HttpHandlerOptions, ): Effect.Effect< CancelMulticastGroupSessionCommandOutput, - | Cause.TimeoutException + | Cause.TimeoutError | SdkError | AccessDeniedError | ConflictError @@ -629,7 +629,7 @@ interface IoTWirelessService$ { options?: HttpHandlerOptions, ): Effect.Effect< CreateDestinationCommandOutput, - | Cause.TimeoutException + | Cause.TimeoutError | SdkError | AccessDeniedError | ConflictError @@ -647,7 +647,7 @@ interface IoTWirelessService$ { options?: HttpHandlerOptions, ): Effect.Effect< CreateDeviceProfileCommandOutput, - | Cause.TimeoutException + | Cause.TimeoutError | SdkError | AccessDeniedError | ConflictError @@ -664,7 +664,7 @@ interface IoTWirelessService$ { options?: HttpHandlerOptions, ): Effect.Effect< CreateFuotaTaskCommandOutput, - | Cause.TimeoutException + | Cause.TimeoutError | SdkError | AccessDeniedError | ConflictError @@ -682,7 +682,7 @@ interface IoTWirelessService$ { options?: HttpHandlerOptions, ): Effect.Effect< CreateMulticastGroupCommandOutput, - | Cause.TimeoutException + | Cause.TimeoutError | SdkError | AccessDeniedError | ConflictError @@ -700,7 +700,7 @@ interface IoTWirelessService$ { options?: HttpHandlerOptions, ): Effect.Effect< CreateNetworkAnalyzerConfigurationCommandOutput, - | Cause.TimeoutException + | Cause.TimeoutError | SdkError | AccessDeniedError | ConflictError @@ -718,7 +718,7 @@ interface IoTWirelessService$ { options?: HttpHandlerOptions, ): Effect.Effect< CreateServiceProfileCommandOutput, - | Cause.TimeoutException + | Cause.TimeoutError | SdkError | AccessDeniedError | ConflictError @@ -735,7 +735,7 @@ interface IoTWirelessService$ { options?: HttpHandlerOptions, ): Effect.Effect< CreateWirelessDeviceCommandOutput, - | Cause.TimeoutException + | Cause.TimeoutError | SdkError | AccessDeniedError | ConflictError @@ -753,7 +753,7 @@ interface IoTWirelessService$ { options?: HttpHandlerOptions, ): Effect.Effect< CreateWirelessGatewayCommandOutput, - | Cause.TimeoutException + | Cause.TimeoutError | SdkError | AccessDeniedError | ConflictError @@ -770,7 +770,7 @@ interface IoTWirelessService$ { options?: HttpHandlerOptions, ): Effect.Effect< CreateWirelessGatewayTaskCommandOutput, - | Cause.TimeoutException + | Cause.TimeoutError | SdkError | AccessDeniedError | ConflictError @@ -788,7 +788,7 @@ interface IoTWirelessService$ { options?: HttpHandlerOptions, ): Effect.Effect< CreateWirelessGatewayTaskDefinitionCommandOutput, - | Cause.TimeoutException + | Cause.TimeoutError | SdkError | AccessDeniedError | ConflictError @@ -806,7 +806,7 @@ interface IoTWirelessService$ { options?: HttpHandlerOptions, ): Effect.Effect< DeleteDestinationCommandOutput, - | Cause.TimeoutException + | Cause.TimeoutError | SdkError | AccessDeniedError | ConflictError @@ -824,7 +824,7 @@ interface IoTWirelessService$ { options?: HttpHandlerOptions, ): Effect.Effect< DeleteDeviceProfileCommandOutput, - | Cause.TimeoutException + | Cause.TimeoutError | SdkError | AccessDeniedError | ConflictError @@ -842,7 +842,7 @@ interface IoTWirelessService$ { options?: HttpHandlerOptions, ): Effect.Effect< DeleteFuotaTaskCommandOutput, - | Cause.TimeoutException + | Cause.TimeoutError | SdkError | AccessDeniedError | InternalServerError @@ -859,7 +859,7 @@ interface IoTWirelessService$ { options?: HttpHandlerOptions, ): Effect.Effect< DeleteMulticastGroupCommandOutput, - | Cause.TimeoutException + | Cause.TimeoutError | SdkError | AccessDeniedError | ConflictError @@ -877,7 +877,7 @@ interface IoTWirelessService$ { options?: HttpHandlerOptions, ): Effect.Effect< DeleteNetworkAnalyzerConfigurationCommandOutput, - | Cause.TimeoutException + | Cause.TimeoutError | SdkError | AccessDeniedError | ConflictError @@ -895,7 +895,7 @@ interface IoTWirelessService$ { options?: HttpHandlerOptions, ): Effect.Effect< DeleteQueuedMessagesCommandOutput, - | Cause.TimeoutException + | Cause.TimeoutError | SdkError | AccessDeniedError | InternalServerError @@ -912,7 +912,7 @@ interface IoTWirelessService$ { options?: HttpHandlerOptions, ): Effect.Effect< DeleteServiceProfileCommandOutput, - | Cause.TimeoutException + | Cause.TimeoutError | SdkError | AccessDeniedError | ConflictError @@ -930,7 +930,7 @@ interface IoTWirelessService$ { options?: HttpHandlerOptions, ): Effect.Effect< DeleteWirelessDeviceCommandOutput, - | Cause.TimeoutException + | Cause.TimeoutError | SdkError | AccessDeniedError | InternalServerError @@ -947,7 +947,7 @@ interface IoTWirelessService$ { options?: HttpHandlerOptions, ): Effect.Effect< DeleteWirelessDeviceImportTaskCommandOutput, - | Cause.TimeoutException + | Cause.TimeoutError | SdkError | AccessDeniedError | ConflictError @@ -965,7 +965,7 @@ interface IoTWirelessService$ { options?: HttpHandlerOptions, ): Effect.Effect< DeleteWirelessGatewayCommandOutput, - | Cause.TimeoutException + | Cause.TimeoutError | SdkError | AccessDeniedError | InternalServerError @@ -982,7 +982,7 @@ interface IoTWirelessService$ { options?: HttpHandlerOptions, ): Effect.Effect< DeleteWirelessGatewayTaskCommandOutput, - | Cause.TimeoutException + | Cause.TimeoutError | SdkError | AccessDeniedError | InternalServerError @@ -999,7 +999,7 @@ interface IoTWirelessService$ { options?: HttpHandlerOptions, ): Effect.Effect< DeleteWirelessGatewayTaskDefinitionCommandOutput, - | Cause.TimeoutException + | Cause.TimeoutError | SdkError | AccessDeniedError | InternalServerError @@ -1016,7 +1016,7 @@ interface IoTWirelessService$ { options?: HttpHandlerOptions, ): Effect.Effect< DeregisterWirelessDeviceCommandOutput, - Cause.TimeoutException | SdkError | InternalServerError | ResourceNotFoundError | ThrottlingError | ValidationError + Cause.TimeoutError | SdkError | InternalServerError | ResourceNotFoundError | ThrottlingError | ValidationError >; /** @@ -1027,7 +1027,7 @@ interface IoTWirelessService$ { options?: HttpHandlerOptions, ): Effect.Effect< DisassociateAwsAccountFromPartnerAccountCommandOutput, - Cause.TimeoutException | SdkError | InternalServerError | ResourceNotFoundError | ThrottlingError | ValidationError + Cause.TimeoutError | SdkError | InternalServerError | ResourceNotFoundError | ThrottlingError | ValidationError >; /** @@ -1038,7 +1038,7 @@ interface IoTWirelessService$ { options?: HttpHandlerOptions, ): Effect.Effect< DisassociateMulticastGroupFromFuotaTaskCommandOutput, - | Cause.TimeoutException + | Cause.TimeoutError | SdkError | AccessDeniedError | ConflictError @@ -1055,7 +1055,7 @@ interface IoTWirelessService$ { options?: HttpHandlerOptions, ): Effect.Effect< DisassociateWirelessDeviceFromFuotaTaskCommandOutput, - | Cause.TimeoutException + | Cause.TimeoutError | SdkError | AccessDeniedError | ConflictError @@ -1073,7 +1073,7 @@ interface IoTWirelessService$ { options?: HttpHandlerOptions, ): Effect.Effect< DisassociateWirelessDeviceFromMulticastGroupCommandOutput, - | Cause.TimeoutException + | Cause.TimeoutError | SdkError | AccessDeniedError | InternalServerError @@ -1090,7 +1090,7 @@ interface IoTWirelessService$ { options?: HttpHandlerOptions, ): Effect.Effect< DisassociateWirelessDeviceFromThingCommandOutput, - | Cause.TimeoutException + | Cause.TimeoutError | SdkError | AccessDeniedError | ConflictError @@ -1108,7 +1108,7 @@ interface IoTWirelessService$ { options?: HttpHandlerOptions, ): Effect.Effect< DisassociateWirelessGatewayFromCertificateCommandOutput, - | Cause.TimeoutException + | Cause.TimeoutError | SdkError | AccessDeniedError | InternalServerError @@ -1125,7 +1125,7 @@ interface IoTWirelessService$ { options?: HttpHandlerOptions, ): Effect.Effect< DisassociateWirelessGatewayFromThingCommandOutput, - | Cause.TimeoutException + | Cause.TimeoutError | SdkError | AccessDeniedError | ConflictError @@ -1143,7 +1143,7 @@ interface IoTWirelessService$ { options?: HttpHandlerOptions, ): Effect.Effect< GetDestinationCommandOutput, - | Cause.TimeoutException + | Cause.TimeoutError | SdkError | AccessDeniedError | InternalServerError @@ -1160,7 +1160,7 @@ interface IoTWirelessService$ { options?: HttpHandlerOptions, ): Effect.Effect< GetDeviceProfileCommandOutput, - | Cause.TimeoutException + | Cause.TimeoutError | SdkError | AccessDeniedError | InternalServerError @@ -1177,7 +1177,7 @@ interface IoTWirelessService$ { options?: HttpHandlerOptions, ): Effect.Effect< GetEventConfigurationByResourceTypesCommandOutput, - Cause.TimeoutException | SdkError | AccessDeniedError | InternalServerError | ThrottlingError + Cause.TimeoutError | SdkError | AccessDeniedError | InternalServerError | ThrottlingError >; /** @@ -1188,7 +1188,7 @@ interface IoTWirelessService$ { options?: HttpHandlerOptions, ): Effect.Effect< GetFuotaTaskCommandOutput, - | Cause.TimeoutException + | Cause.TimeoutError | SdkError | AccessDeniedError | InternalServerError @@ -1205,7 +1205,7 @@ interface IoTWirelessService$ { options?: HttpHandlerOptions, ): Effect.Effect< GetLogLevelsByResourceTypesCommandOutput, - | Cause.TimeoutException + | Cause.TimeoutError | SdkError | AccessDeniedError | InternalServerError @@ -1222,7 +1222,7 @@ interface IoTWirelessService$ { options?: HttpHandlerOptions, ): Effect.Effect< GetMetricConfigurationCommandOutput, - | Cause.TimeoutException + | Cause.TimeoutError | SdkError | AccessDeniedError | ConflictError @@ -1240,7 +1240,7 @@ interface IoTWirelessService$ { options?: HttpHandlerOptions, ): Effect.Effect< GetMetricsCommandOutput, - | Cause.TimeoutException + | Cause.TimeoutError | SdkError | AccessDeniedError | ConflictError @@ -1258,7 +1258,7 @@ interface IoTWirelessService$ { options?: HttpHandlerOptions, ): Effect.Effect< GetMulticastGroupCommandOutput, - | Cause.TimeoutException + | Cause.TimeoutError | SdkError | AccessDeniedError | InternalServerError @@ -1275,7 +1275,7 @@ interface IoTWirelessService$ { options?: HttpHandlerOptions, ): Effect.Effect< GetMulticastGroupSessionCommandOutput, - | Cause.TimeoutException + | Cause.TimeoutError | SdkError | AccessDeniedError | InternalServerError @@ -1292,7 +1292,7 @@ interface IoTWirelessService$ { options?: HttpHandlerOptions, ): Effect.Effect< GetNetworkAnalyzerConfigurationCommandOutput, - | Cause.TimeoutException + | Cause.TimeoutError | SdkError | AccessDeniedError | InternalServerError @@ -1309,7 +1309,7 @@ interface IoTWirelessService$ { options?: HttpHandlerOptions, ): Effect.Effect< GetPartnerAccountCommandOutput, - Cause.TimeoutException | SdkError | InternalServerError | ResourceNotFoundError | ThrottlingError | ValidationError + Cause.TimeoutError | SdkError | InternalServerError | ResourceNotFoundError | ThrottlingError | ValidationError >; /** @@ -1320,7 +1320,7 @@ interface IoTWirelessService$ { options?: HttpHandlerOptions, ): Effect.Effect< GetPositionCommandOutput, - | Cause.TimeoutException + | Cause.TimeoutError | SdkError | AccessDeniedError | InternalServerError @@ -1337,7 +1337,7 @@ interface IoTWirelessService$ { options?: HttpHandlerOptions, ): Effect.Effect< GetPositionConfigurationCommandOutput, - | Cause.TimeoutException + | Cause.TimeoutError | SdkError | AccessDeniedError | InternalServerError @@ -1354,7 +1354,7 @@ interface IoTWirelessService$ { options?: HttpHandlerOptions, ): Effect.Effect< GetPositionEstimateCommandOutput, - | Cause.TimeoutException + | Cause.TimeoutError | SdkError | AccessDeniedError | InternalServerError @@ -1371,7 +1371,7 @@ interface IoTWirelessService$ { options?: HttpHandlerOptions, ): Effect.Effect< GetResourceEventConfigurationCommandOutput, - | Cause.TimeoutException + | Cause.TimeoutError | SdkError | AccessDeniedError | InternalServerError @@ -1388,7 +1388,7 @@ interface IoTWirelessService$ { options?: HttpHandlerOptions, ): Effect.Effect< GetResourceLogLevelCommandOutput, - | Cause.TimeoutException + | Cause.TimeoutError | SdkError | AccessDeniedError | InternalServerError @@ -1405,7 +1405,7 @@ interface IoTWirelessService$ { options?: HttpHandlerOptions, ): Effect.Effect< GetResourcePositionCommandOutput, - | Cause.TimeoutException + | Cause.TimeoutError | SdkError | AccessDeniedError | InternalServerError @@ -1422,7 +1422,7 @@ interface IoTWirelessService$ { options?: HttpHandlerOptions, ): Effect.Effect< GetServiceEndpointCommandOutput, - Cause.TimeoutException | SdkError | AccessDeniedError | InternalServerError | ThrottlingError | ValidationError + Cause.TimeoutError | SdkError | AccessDeniedError | InternalServerError | ThrottlingError | ValidationError >; /** @@ -1433,7 +1433,7 @@ interface IoTWirelessService$ { options?: HttpHandlerOptions, ): Effect.Effect< GetServiceProfileCommandOutput, - | Cause.TimeoutException + | Cause.TimeoutError | SdkError | AccessDeniedError | InternalServerError @@ -1450,7 +1450,7 @@ interface IoTWirelessService$ { options?: HttpHandlerOptions, ): Effect.Effect< GetWirelessDeviceCommandOutput, - | Cause.TimeoutException + | Cause.TimeoutError | SdkError | AccessDeniedError | InternalServerError @@ -1467,7 +1467,7 @@ interface IoTWirelessService$ { options?: HttpHandlerOptions, ): Effect.Effect< GetWirelessDeviceImportTaskCommandOutput, - | Cause.TimeoutException + | Cause.TimeoutError | SdkError | AccessDeniedError | ConflictError @@ -1485,7 +1485,7 @@ interface IoTWirelessService$ { options?: HttpHandlerOptions, ): Effect.Effect< GetWirelessDeviceStatisticsCommandOutput, - | Cause.TimeoutException + | Cause.TimeoutError | SdkError | AccessDeniedError | InternalServerError @@ -1502,7 +1502,7 @@ interface IoTWirelessService$ { options?: HttpHandlerOptions, ): Effect.Effect< GetWirelessGatewayCommandOutput, - | Cause.TimeoutException + | Cause.TimeoutError | SdkError | AccessDeniedError | InternalServerError @@ -1519,7 +1519,7 @@ interface IoTWirelessService$ { options?: HttpHandlerOptions, ): Effect.Effect< GetWirelessGatewayCertificateCommandOutput, - | Cause.TimeoutException + | Cause.TimeoutError | SdkError | AccessDeniedError | InternalServerError @@ -1536,7 +1536,7 @@ interface IoTWirelessService$ { options?: HttpHandlerOptions, ): Effect.Effect< GetWirelessGatewayFirmwareInformationCommandOutput, - | Cause.TimeoutException + | Cause.TimeoutError | SdkError | AccessDeniedError | InternalServerError @@ -1553,7 +1553,7 @@ interface IoTWirelessService$ { options?: HttpHandlerOptions, ): Effect.Effect< GetWirelessGatewayStatisticsCommandOutput, - | Cause.TimeoutException + | Cause.TimeoutError | SdkError | AccessDeniedError | InternalServerError @@ -1570,7 +1570,7 @@ interface IoTWirelessService$ { options?: HttpHandlerOptions, ): Effect.Effect< GetWirelessGatewayTaskCommandOutput, - | Cause.TimeoutException + | Cause.TimeoutError | SdkError | AccessDeniedError | InternalServerError @@ -1587,7 +1587,7 @@ interface IoTWirelessService$ { options?: HttpHandlerOptions, ): Effect.Effect< GetWirelessGatewayTaskDefinitionCommandOutput, - | Cause.TimeoutException + | Cause.TimeoutError | SdkError | AccessDeniedError | InternalServerError @@ -1604,7 +1604,7 @@ interface IoTWirelessService$ { options?: HttpHandlerOptions, ): Effect.Effect< ListDestinationsCommandOutput, - Cause.TimeoutException | SdkError | AccessDeniedError | InternalServerError | ThrottlingError | ValidationError + Cause.TimeoutError | SdkError | AccessDeniedError | InternalServerError | ThrottlingError | ValidationError >; /** @@ -1615,7 +1615,7 @@ interface IoTWirelessService$ { options?: HttpHandlerOptions, ): Effect.Effect< ListDeviceProfilesCommandOutput, - Cause.TimeoutException | SdkError | AccessDeniedError | InternalServerError | ThrottlingError | ValidationError + Cause.TimeoutError | SdkError | AccessDeniedError | InternalServerError | ThrottlingError | ValidationError >; /** @@ -1626,7 +1626,7 @@ interface IoTWirelessService$ { options?: HttpHandlerOptions, ): Effect.Effect< ListDevicesForWirelessDeviceImportTaskCommandOutput, - | Cause.TimeoutException + | Cause.TimeoutError | SdkError | AccessDeniedError | ConflictError @@ -1644,7 +1644,7 @@ interface IoTWirelessService$ { options?: HttpHandlerOptions, ): Effect.Effect< ListEventConfigurationsCommandOutput, - Cause.TimeoutException | SdkError | AccessDeniedError | InternalServerError | ThrottlingError | ValidationError + Cause.TimeoutError | SdkError | AccessDeniedError | InternalServerError | ThrottlingError | ValidationError >; /** @@ -1655,7 +1655,7 @@ interface IoTWirelessService$ { options?: HttpHandlerOptions, ): Effect.Effect< ListFuotaTasksCommandOutput, - Cause.TimeoutException | SdkError | AccessDeniedError | InternalServerError | ThrottlingError | ValidationError + Cause.TimeoutError | SdkError | AccessDeniedError | InternalServerError | ThrottlingError | ValidationError >; /** @@ -1666,7 +1666,7 @@ interface IoTWirelessService$ { options?: HttpHandlerOptions, ): Effect.Effect< ListMulticastGroupsCommandOutput, - Cause.TimeoutException | SdkError | AccessDeniedError | InternalServerError | ThrottlingError | ValidationError + Cause.TimeoutError | SdkError | AccessDeniedError | InternalServerError | ThrottlingError | ValidationError >; /** @@ -1677,7 +1677,7 @@ interface IoTWirelessService$ { options?: HttpHandlerOptions, ): Effect.Effect< ListMulticastGroupsByFuotaTaskCommandOutput, - | Cause.TimeoutException + | Cause.TimeoutError | SdkError | AccessDeniedError | InternalServerError @@ -1694,7 +1694,7 @@ interface IoTWirelessService$ { options?: HttpHandlerOptions, ): Effect.Effect< ListNetworkAnalyzerConfigurationsCommandOutput, - Cause.TimeoutException | SdkError | AccessDeniedError | InternalServerError | ThrottlingError | ValidationError + Cause.TimeoutError | SdkError | AccessDeniedError | InternalServerError | ThrottlingError | ValidationError >; /** @@ -1705,7 +1705,7 @@ interface IoTWirelessService$ { options?: HttpHandlerOptions, ): Effect.Effect< ListPartnerAccountsCommandOutput, - Cause.TimeoutException | SdkError | InternalServerError | ResourceNotFoundError | ThrottlingError | ValidationError + Cause.TimeoutError | SdkError | InternalServerError | ResourceNotFoundError | ThrottlingError | ValidationError >; /** @@ -1716,7 +1716,7 @@ interface IoTWirelessService$ { options?: HttpHandlerOptions, ): Effect.Effect< ListPositionConfigurationsCommandOutput, - Cause.TimeoutException | SdkError | AccessDeniedError | InternalServerError | ThrottlingError | ValidationError + Cause.TimeoutError | SdkError | AccessDeniedError | InternalServerError | ThrottlingError | ValidationError >; /** @@ -1727,7 +1727,7 @@ interface IoTWirelessService$ { options?: HttpHandlerOptions, ): Effect.Effect< ListQueuedMessagesCommandOutput, - | Cause.TimeoutException + | Cause.TimeoutError | SdkError | AccessDeniedError | InternalServerError @@ -1744,7 +1744,7 @@ interface IoTWirelessService$ { options?: HttpHandlerOptions, ): Effect.Effect< ListServiceProfilesCommandOutput, - Cause.TimeoutException | SdkError | AccessDeniedError | InternalServerError | ThrottlingError | ValidationError + Cause.TimeoutError | SdkError | AccessDeniedError | InternalServerError | ThrottlingError | ValidationError >; /** @@ -1755,7 +1755,7 @@ interface IoTWirelessService$ { options?: HttpHandlerOptions, ): Effect.Effect< ListTagsForResourceCommandOutput, - | Cause.TimeoutException + | Cause.TimeoutError | SdkError | ConflictError | InternalServerError @@ -1772,7 +1772,7 @@ interface IoTWirelessService$ { options?: HttpHandlerOptions, ): Effect.Effect< ListWirelessDeviceImportTasksCommandOutput, - | Cause.TimeoutException + | Cause.TimeoutError | SdkError | AccessDeniedError | ConflictError @@ -1790,7 +1790,7 @@ interface IoTWirelessService$ { options?: HttpHandlerOptions, ): Effect.Effect< ListWirelessDevicesCommandOutput, - Cause.TimeoutException | SdkError | AccessDeniedError | InternalServerError | ThrottlingError | ValidationError + Cause.TimeoutError | SdkError | AccessDeniedError | InternalServerError | ThrottlingError | ValidationError >; /** @@ -1801,7 +1801,7 @@ interface IoTWirelessService$ { options?: HttpHandlerOptions, ): Effect.Effect< ListWirelessGatewayTaskDefinitionsCommandOutput, - Cause.TimeoutException | SdkError | AccessDeniedError | InternalServerError | ThrottlingError | ValidationError + Cause.TimeoutError | SdkError | AccessDeniedError | InternalServerError | ThrottlingError | ValidationError >; /** @@ -1812,7 +1812,7 @@ interface IoTWirelessService$ { options?: HttpHandlerOptions, ): Effect.Effect< ListWirelessGatewaysCommandOutput, - Cause.TimeoutException | SdkError | AccessDeniedError | InternalServerError | ThrottlingError | ValidationError + Cause.TimeoutError | SdkError | AccessDeniedError | InternalServerError | ThrottlingError | ValidationError >; /** @@ -1823,7 +1823,7 @@ interface IoTWirelessService$ { options?: HttpHandlerOptions, ): Effect.Effect< PutPositionConfigurationCommandOutput, - | Cause.TimeoutException + | Cause.TimeoutError | SdkError | AccessDeniedError | InternalServerError @@ -1840,7 +1840,7 @@ interface IoTWirelessService$ { options?: HttpHandlerOptions, ): Effect.Effect< PutResourceLogLevelCommandOutput, - | Cause.TimeoutException + | Cause.TimeoutError | SdkError | AccessDeniedError | InternalServerError @@ -1857,7 +1857,7 @@ interface IoTWirelessService$ { options?: HttpHandlerOptions, ): Effect.Effect< ResetAllResourceLogLevelsCommandOutput, - | Cause.TimeoutException + | Cause.TimeoutError | SdkError | AccessDeniedError | InternalServerError @@ -1874,7 +1874,7 @@ interface IoTWirelessService$ { options?: HttpHandlerOptions, ): Effect.Effect< ResetResourceLogLevelCommandOutput, - | Cause.TimeoutException + | Cause.TimeoutError | SdkError | AccessDeniedError | InternalServerError @@ -1891,7 +1891,7 @@ interface IoTWirelessService$ { options?: HttpHandlerOptions, ): Effect.Effect< SendDataToMulticastGroupCommandOutput, - | Cause.TimeoutException + | Cause.TimeoutError | SdkError | AccessDeniedError | ConflictError @@ -1909,7 +1909,7 @@ interface IoTWirelessService$ { options?: HttpHandlerOptions, ): Effect.Effect< SendDataToWirelessDeviceCommandOutput, - Cause.TimeoutException | SdkError | InternalServerError | ResourceNotFoundError | ThrottlingError | ValidationError + Cause.TimeoutError | SdkError | InternalServerError | ResourceNotFoundError | ThrottlingError | ValidationError >; /** @@ -1920,7 +1920,7 @@ interface IoTWirelessService$ { options?: HttpHandlerOptions, ): Effect.Effect< StartBulkAssociateWirelessDeviceWithMulticastGroupCommandOutput, - | Cause.TimeoutException + | Cause.TimeoutError | SdkError | AccessDeniedError | InternalServerError @@ -1937,7 +1937,7 @@ interface IoTWirelessService$ { options?: HttpHandlerOptions, ): Effect.Effect< StartBulkDisassociateWirelessDeviceFromMulticastGroupCommandOutput, - | Cause.TimeoutException + | Cause.TimeoutError | SdkError | AccessDeniedError | InternalServerError @@ -1954,7 +1954,7 @@ interface IoTWirelessService$ { options?: HttpHandlerOptions, ): Effect.Effect< StartFuotaTaskCommandOutput, - | Cause.TimeoutException + | Cause.TimeoutError | SdkError | AccessDeniedError | ConflictError @@ -1972,7 +1972,7 @@ interface IoTWirelessService$ { options?: HttpHandlerOptions, ): Effect.Effect< StartMulticastGroupSessionCommandOutput, - | Cause.TimeoutException + | Cause.TimeoutError | SdkError | AccessDeniedError | ConflictError @@ -1990,7 +1990,7 @@ interface IoTWirelessService$ { options?: HttpHandlerOptions, ): Effect.Effect< StartSingleWirelessDeviceImportTaskCommandOutput, - | Cause.TimeoutException + | Cause.TimeoutError | SdkError | AccessDeniedError | ConflictError @@ -2008,7 +2008,7 @@ interface IoTWirelessService$ { options?: HttpHandlerOptions, ): Effect.Effect< StartWirelessDeviceImportTaskCommandOutput, - | Cause.TimeoutException + | Cause.TimeoutError | SdkError | AccessDeniedError | ConflictError @@ -2026,7 +2026,7 @@ interface IoTWirelessService$ { options?: HttpHandlerOptions, ): Effect.Effect< TagResourceCommandOutput, - | Cause.TimeoutException + | Cause.TimeoutError | SdkError | ConflictError | InternalServerError @@ -2044,7 +2044,7 @@ interface IoTWirelessService$ { options?: HttpHandlerOptions, ): Effect.Effect< TestWirelessDeviceCommandOutput, - Cause.TimeoutException | SdkError | InternalServerError | ResourceNotFoundError | ThrottlingError | ValidationError + Cause.TimeoutError | SdkError | InternalServerError | ResourceNotFoundError | ThrottlingError | ValidationError >; /** @@ -2055,7 +2055,7 @@ interface IoTWirelessService$ { options?: HttpHandlerOptions, ): Effect.Effect< UntagResourceCommandOutput, - | Cause.TimeoutException + | Cause.TimeoutError | SdkError | ConflictError | InternalServerError @@ -2072,7 +2072,7 @@ interface IoTWirelessService$ { options?: HttpHandlerOptions, ): Effect.Effect< UpdateDestinationCommandOutput, - | Cause.TimeoutException + | Cause.TimeoutError | SdkError | AccessDeniedError | InternalServerError @@ -2089,7 +2089,7 @@ interface IoTWirelessService$ { options?: HttpHandlerOptions, ): Effect.Effect< UpdateEventConfigurationByResourceTypesCommandOutput, - Cause.TimeoutException | SdkError | AccessDeniedError | InternalServerError | ThrottlingError | ValidationError + Cause.TimeoutError | SdkError | AccessDeniedError | InternalServerError | ThrottlingError | ValidationError >; /** @@ -2100,7 +2100,7 @@ interface IoTWirelessService$ { options?: HttpHandlerOptions, ): Effect.Effect< UpdateFuotaTaskCommandOutput, - | Cause.TimeoutException + | Cause.TimeoutError | SdkError | AccessDeniedError | ConflictError @@ -2118,7 +2118,7 @@ interface IoTWirelessService$ { options?: HttpHandlerOptions, ): Effect.Effect< UpdateLogLevelsByResourceTypesCommandOutput, - | Cause.TimeoutException + | Cause.TimeoutError | SdkError | AccessDeniedError | ConflictError @@ -2136,7 +2136,7 @@ interface IoTWirelessService$ { options?: HttpHandlerOptions, ): Effect.Effect< UpdateMetricConfigurationCommandOutput, - | Cause.TimeoutException + | Cause.TimeoutError | SdkError | AccessDeniedError | ConflictError @@ -2154,7 +2154,7 @@ interface IoTWirelessService$ { options?: HttpHandlerOptions, ): Effect.Effect< UpdateMulticastGroupCommandOutput, - | Cause.TimeoutException + | Cause.TimeoutError | SdkError | AccessDeniedError | ConflictError @@ -2172,7 +2172,7 @@ interface IoTWirelessService$ { options?: HttpHandlerOptions, ): Effect.Effect< UpdateNetworkAnalyzerConfigurationCommandOutput, - | Cause.TimeoutException + | Cause.TimeoutError | SdkError | AccessDeniedError | InternalServerError @@ -2189,7 +2189,7 @@ interface IoTWirelessService$ { options?: HttpHandlerOptions, ): Effect.Effect< UpdatePartnerAccountCommandOutput, - Cause.TimeoutException | SdkError | InternalServerError | ResourceNotFoundError | ThrottlingError | ValidationError + Cause.TimeoutError | SdkError | InternalServerError | ResourceNotFoundError | ThrottlingError | ValidationError >; /** @@ -2200,7 +2200,7 @@ interface IoTWirelessService$ { options?: HttpHandlerOptions, ): Effect.Effect< UpdatePositionCommandOutput, - | Cause.TimeoutException + | Cause.TimeoutError | SdkError | AccessDeniedError | InternalServerError @@ -2217,7 +2217,7 @@ interface IoTWirelessService$ { options?: HttpHandlerOptions, ): Effect.Effect< UpdateResourceEventConfigurationCommandOutput, - | Cause.TimeoutException + | Cause.TimeoutError | SdkError | AccessDeniedError | ConflictError @@ -2235,7 +2235,7 @@ interface IoTWirelessService$ { options?: HttpHandlerOptions, ): Effect.Effect< UpdateResourcePositionCommandOutput, - | Cause.TimeoutException + | Cause.TimeoutError | SdkError | AccessDeniedError | InternalServerError @@ -2252,7 +2252,7 @@ interface IoTWirelessService$ { options?: HttpHandlerOptions, ): Effect.Effect< UpdateWirelessDeviceCommandOutput, - | Cause.TimeoutException + | Cause.TimeoutError | SdkError | AccessDeniedError | InternalServerError @@ -2269,7 +2269,7 @@ interface IoTWirelessService$ { options?: HttpHandlerOptions, ): Effect.Effect< UpdateWirelessDeviceImportTaskCommandOutput, - | Cause.TimeoutException + | Cause.TimeoutError | SdkError | AccessDeniedError | ConflictError @@ -2287,7 +2287,7 @@ interface IoTWirelessService$ { options?: HttpHandlerOptions, ): Effect.Effect< UpdateWirelessGatewayCommandOutput, - | Cause.TimeoutException + | Cause.TimeoutError | SdkError | AccessDeniedError | InternalServerError @@ -2318,10 +2318,10 @@ export const makeIoTWirelessService = Effect.gen(function*() { * @since 1.0.0 * @category models */ -export class IoTWirelessService extends Effect.Tag("@effect-aws/client-iot-wireless/IoTWirelessService")< +export class IoTWirelessService extends ServiceMap.Service< IoTWirelessService, IoTWirelessService$ ->() { +>()("@effect-aws/client-iot-wireless/IoTWirelessService") { static readonly defaultLayer = Layer.effect(this, makeIoTWirelessService).pipe(Layer.provide(Instance.layer)); static readonly layer = (config: IoTWirelessService.Config) => Layer.effect(this, makeIoTWirelessService).pipe( diff --git a/packages/client-iot-wireless/src/IoTWirelessServiceConfig.ts b/packages/client-iot-wireless/src/IoTWirelessServiceConfig.ts index b9d07643..eb10d6ef 100644 --- a/packages/client-iot-wireless/src/IoTWirelessServiceConfig.ts +++ b/packages/client-iot-wireless/src/IoTWirelessServiceConfig.ts @@ -3,18 +3,17 @@ */ import type { IoTWirelessClientConfig } from "@aws-sdk/client-iot-wireless"; import { ServiceLogger } from "@effect-aws/commons"; -import { Effect, FiberRef, Layer } from "effect"; +import { Effect, Layer, ServiceMap } from "effect"; import { dual } from "effect/Function"; -import { globalValue } from "effect/GlobalValue"; import type { IoTWirelessService } from "./IoTWirelessService.js"; /** * @since 1.0.0 * @category iot-wireless service config */ -const currentIoTWirelessServiceConfig = globalValue( +const currentIoTWirelessServiceConfig = ServiceMap.Reference( "@effect-aws/client-iot-wireless/currentIoTWirelessServiceConfig", - () => FiberRef.unsafeMake({}), + { defaultValue: () => ({}) }, ); /** @@ -27,7 +26,7 @@ export const withIoTWirelessServiceConfig: { } = dual( 2, (effect: Effect.Effect, config: IoTWirelessService.Config): Effect.Effect => - Effect.locally(effect, currentIoTWirelessServiceConfig, config), + Effect.provideService(effect, currentIoTWirelessServiceConfig, config), ); /** @@ -35,14 +34,14 @@ export const withIoTWirelessServiceConfig: { * @category iot-wireless service config */ export const setIoTWirelessServiceConfig = (config: IoTWirelessService.Config) => - Layer.locallyScoped(currentIoTWirelessServiceConfig, config); + Layer.succeed(currentIoTWirelessServiceConfig, config); /** * @since 1.0.0 * @category adapters */ export const toIoTWirelessClientConfig: Effect.Effect = Effect.gen(function*() { - const { logger: serviceLogger, ...config } = yield* FiberRef.get(currentIoTWirelessServiceConfig); + const { logger: serviceLogger, ...config } = yield* currentIoTWirelessServiceConfig; const logger = serviceLogger === true ? yield* ServiceLogger.toClientLogger(ServiceLogger.defaultServiceLogger) diff --git a/packages/client-iot-wireless/test/IoTWireless.test.ts b/packages/client-iot-wireless/test/IoTWireless.test.ts index 409b2e36..1b6901fc 100644 --- a/packages/client-iot-wireless/test/IoTWireless.test.ts +++ b/packages/client-iot-wireless/test/IoTWireless.test.ts @@ -26,7 +26,7 @@ describe("IoTWirelessClientImpl", () => { const args = {} as unknown as ListDestinationsCommandInput; - const program = IoTWireless.listDestinations(args); + const program = IoTWireless.use((svc) => svc.listDestinations(args)); const result = await pipe( program, @@ -46,7 +46,7 @@ describe("IoTWirelessClientImpl", () => { const args = {} as unknown as ListDestinationsCommandInput; - const program = IoTWireless.listDestinations(args); + const program = IoTWireless.use((svc) => svc.listDestinations(args)); const result = await pipe( program, @@ -69,7 +69,7 @@ describe("IoTWirelessClientImpl", () => { const args = {} as unknown as ListDestinationsCommandInput; - const program = IoTWireless.listDestinations(args); + const program = IoTWireless.use((svc) => svc.listDestinations(args)); const result = await pipe( program, @@ -93,7 +93,7 @@ describe("IoTWirelessClientImpl", () => { const args = {} as unknown as ListDestinationsCommandInput; - const program = IoTWireless.listDestinations(args); + const program = IoTWireless.use((svc) => svc.listDestinations(args)); const result = await pipe( program, @@ -121,7 +121,7 @@ describe("IoTWirelessClientImpl", () => { const args = {} as unknown as ListDestinationsCommandInput; - const program = IoTWireless.listDestinations(args); + const program = IoTWireless.use((svc) => svc.listDestinations(args)); const result = await pipe( program, @@ -131,7 +131,7 @@ describe("IoTWirelessClientImpl", () => { expect(result).toEqual( Exit.fail( - SdkError({ + new SdkError({ ...new Error("test"), name: "SdkError", message: "test", @@ -156,7 +156,7 @@ describe("IoTWirelessClientImpl", () => { const args = {} as unknown as ListDestinationsCommandInput; - const program = IoTWireless.listDestinations(args).pipe( + const program = IoTWireless.use((svc) => svc.listDestinations(args)).pipe( Effect.catchTag("NotHandledException" as any, () => Effect.succeed(null)), ); @@ -166,9 +166,9 @@ describe("IoTWirelessClientImpl", () => { Effect.runPromiseExit, ); - expect(result).toEqual( + expect(result).toContainEqual( Exit.fail( - SdkError({ + new SdkError({ ...new Error("test"), name: "SdkError", message: "test", diff --git a/packages/client-iot/.projen/deps.json b/packages/client-iot/.projen/deps.json index 38da8cdc..201a23d2 100644 --- a/packages/client-iot/.projen/deps.json +++ b/packages/client-iot/.projen/deps.json @@ -7,6 +7,7 @@ }, { "name": "effect", + "version": "4.0.0-beta.8", "type": "build" }, { @@ -16,7 +17,7 @@ }, { "name": "effect", - "version": ">=3.0.4 <4.0.0", + "version": ">=4.0.0 <5.0.0", "type": "peer" }, { diff --git a/packages/client-iot/README.md b/packages/client-iot/README.md index b8540971..eca89e4e 100644 --- a/packages/client-iot/README.md +++ b/packages/client-iot/README.md @@ -16,7 +16,7 @@ With default IoTClient instance: ```typescript import { IoT } from "@effect-aws/client-iot"; -const program = IoT.describeJob(args); +const program = IoT.use((svc) => svc.describeJob(args)); const result = pipe( program, @@ -30,7 +30,7 @@ With custom IoTClient instance: ```typescript import { IoT } from "@effect-aws/client-iot"; -const program = IoT.describeJob(args); +const program = IoT.use((svc) => svc.describeJob(args)); const result = await pipe( program, @@ -46,7 +46,7 @@ With custom IoTClient configuration: ```typescript import { IoT } from "@effect-aws/client-iot"; -const program = IoT.describeJob(args); +const program = IoT.use((svc) => svc.describeJob(args)); const result = await pipe( program, diff --git a/packages/client-iot/package.json b/packages/client-iot/package.json index 15c69742..63d0b4a0 100644 --- a/packages/client-iot/package.json +++ b/packages/client-iot/package.json @@ -26,11 +26,11 @@ }, "devDependencies": { "@types/node": "ts5.4", - "effect": "^3.16.4", + "effect": "4.0.0-beta.8", "typescript": "^5.4.2" }, "peerDependencies": { - "effect": ">=3.0.4 <4.0.0" + "effect": ">=4.0.0 <5.0.0" }, "dependencies": { "@aws-sdk/client-iot": "^3", diff --git a/packages/client-iot/src/IoTClientInstance.ts b/packages/client-iot/src/IoTClientInstance.ts index 5073c9cb..af804d74 100644 --- a/packages/client-iot/src/IoTClientInstance.ts +++ b/packages/client-iot/src/IoTClientInstance.ts @@ -2,16 +2,16 @@ * @since 1.0.0 */ import { IoTClient } from "@aws-sdk/client-iot"; -import { Context, Effect, Layer } from "effect"; +import { Effect, Layer, ServiceMap } from "effect"; import * as IoTServiceConfig from "./IoTServiceConfig.js"; /** * @since 1.0.0 * @category tags */ -export class IoTClientInstance extends Context.Tag( +export class IoTClientInstance extends ServiceMap.Service()( "@effect-aws/client-iot/IoTClientInstance", -)() {} +) {} /** * @since 1.0.0 @@ -30,4 +30,4 @@ export const make = Effect.flatMap( * @since 1.0.0 * @category layers */ -export const layer = Layer.scoped(IoTClientInstance, make); +export const layer = Layer.effect(IoTClientInstance, make); diff --git a/packages/client-iot/src/IoTService.ts b/packages/client-iot/src/IoTService.ts index 4ff76da0..d56b3ad2 100644 --- a/packages/client-iot/src/IoTService.ts +++ b/packages/client-iot/src/IoTService.ts @@ -824,7 +824,7 @@ import { import type { HttpHandlerOptions, ServiceLogger } from "@effect-aws/commons"; import { Service } from "@effect-aws/commons"; import type { Cause } from "effect"; -import { Effect, Layer } from "effect"; +import { Effect, Layer, ServiceMap } from "effect"; import type { CertificateConflictError, CertificateStateError, @@ -1151,7 +1151,7 @@ interface IoTService$ { options?: HttpHandlerOptions, ): Effect.Effect< AcceptCertificateTransferCommandOutput, - | Cause.TimeoutException + | Cause.TimeoutError | SdkError | InternalFailureError | InvalidRequestError @@ -1170,12 +1170,7 @@ interface IoTService$ { options?: HttpHandlerOptions, ): Effect.Effect< AddThingToBillingGroupCommandOutput, - | Cause.TimeoutException - | SdkError - | InternalFailureError - | InvalidRequestError - | ResourceNotFoundError - | ThrottlingError + Cause.TimeoutError | SdkError | InternalFailureError | InvalidRequestError | ResourceNotFoundError | ThrottlingError >; /** @@ -1186,12 +1181,7 @@ interface IoTService$ { options?: HttpHandlerOptions, ): Effect.Effect< AddThingToThingGroupCommandOutput, - | Cause.TimeoutException - | SdkError - | InternalFailureError - | InvalidRequestError - | ResourceNotFoundError - | ThrottlingError + Cause.TimeoutError | SdkError | InternalFailureError | InvalidRequestError | ResourceNotFoundError | ThrottlingError >; /** @@ -1202,7 +1192,7 @@ interface IoTService$ { options?: HttpHandlerOptions, ): Effect.Effect< AssociateSbomWithPackageVersionCommandOutput, - | Cause.TimeoutException + | Cause.TimeoutError | SdkError | ConflictError | InternalServerError @@ -1220,7 +1210,7 @@ interface IoTService$ { options?: HttpHandlerOptions, ): Effect.Effect< AssociateTargetsWithJobCommandOutput, - | Cause.TimeoutException + | Cause.TimeoutError | SdkError | InvalidRequestError | LimitExceededError @@ -1237,7 +1227,7 @@ interface IoTService$ { options?: HttpHandlerOptions, ): Effect.Effect< AttachPolicyCommandOutput, - | Cause.TimeoutException + | Cause.TimeoutError | SdkError | InternalFailureError | InvalidRequestError @@ -1256,7 +1246,7 @@ interface IoTService$ { options?: HttpHandlerOptions, ): Effect.Effect< AttachPrincipalPolicyCommandOutput, - | Cause.TimeoutException + | Cause.TimeoutError | SdkError | InternalFailureError | InvalidRequestError @@ -1275,7 +1265,7 @@ interface IoTService$ { options?: HttpHandlerOptions, ): Effect.Effect< AttachSecurityProfileCommandOutput, - | Cause.TimeoutException + | Cause.TimeoutError | SdkError | InternalFailureError | InvalidRequestError @@ -1293,7 +1283,7 @@ interface IoTService$ { options?: HttpHandlerOptions, ): Effect.Effect< AttachThingPrincipalCommandOutput, - | Cause.TimeoutException + | Cause.TimeoutError | SdkError | InternalFailureError | InvalidRequestError @@ -1311,12 +1301,7 @@ interface IoTService$ { options?: HttpHandlerOptions, ): Effect.Effect< CancelAuditMitigationActionsTaskCommandOutput, - | Cause.TimeoutException - | SdkError - | InternalFailureError - | InvalidRequestError - | ResourceNotFoundError - | ThrottlingError + Cause.TimeoutError | SdkError | InternalFailureError | InvalidRequestError | ResourceNotFoundError | ThrottlingError >; /** @@ -1327,12 +1312,7 @@ interface IoTService$ { options?: HttpHandlerOptions, ): Effect.Effect< CancelAuditTaskCommandOutput, - | Cause.TimeoutException - | SdkError - | InternalFailureError - | InvalidRequestError - | ResourceNotFoundError - | ThrottlingError + Cause.TimeoutError | SdkError | InternalFailureError | InvalidRequestError | ResourceNotFoundError | ThrottlingError >; /** @@ -1343,7 +1323,7 @@ interface IoTService$ { options?: HttpHandlerOptions, ): Effect.Effect< CancelCertificateTransferCommandOutput, - | Cause.TimeoutException + | Cause.TimeoutError | SdkError | InternalFailureError | InvalidRequestError @@ -1362,12 +1342,7 @@ interface IoTService$ { options?: HttpHandlerOptions, ): Effect.Effect< CancelDetectMitigationActionsTaskCommandOutput, - | Cause.TimeoutException - | SdkError - | InternalFailureError - | InvalidRequestError - | ResourceNotFoundError - | ThrottlingError + Cause.TimeoutError | SdkError | InternalFailureError | InvalidRequestError | ResourceNotFoundError | ThrottlingError >; /** @@ -1378,7 +1353,7 @@ interface IoTService$ { options?: HttpHandlerOptions, ): Effect.Effect< CancelJobCommandOutput, - | Cause.TimeoutException + | Cause.TimeoutError | SdkError | InvalidRequestError | LimitExceededError @@ -1395,7 +1370,7 @@ interface IoTService$ { options?: HttpHandlerOptions, ): Effect.Effect< CancelJobExecutionCommandOutput, - | Cause.TimeoutException + | Cause.TimeoutError | SdkError | InvalidRequestError | InvalidStateTransitionError @@ -1413,7 +1388,7 @@ interface IoTService$ { options?: HttpHandlerOptions, ): Effect.Effect< ClearDefaultAuthorizerCommandOutput, - | Cause.TimeoutException + | Cause.TimeoutError | SdkError | InternalFailureError | InvalidRequestError @@ -1431,7 +1406,7 @@ interface IoTService$ { options?: HttpHandlerOptions, ): Effect.Effect< ConfirmTopicRuleDestinationCommandOutput, - | Cause.TimeoutException + | Cause.TimeoutError | SdkError | ConflictingResourceUpdateError | InternalError @@ -1448,7 +1423,7 @@ interface IoTService$ { options?: HttpHandlerOptions, ): Effect.Effect< CreateAuditSuppressionCommandOutput, - | Cause.TimeoutException + | Cause.TimeoutError | SdkError | InternalFailureError | InvalidRequestError @@ -1465,7 +1440,7 @@ interface IoTService$ { options?: HttpHandlerOptions, ): Effect.Effect< CreateAuthorizerCommandOutput, - | Cause.TimeoutException + | Cause.TimeoutError | SdkError | InternalFailureError | InvalidRequestError @@ -1484,7 +1459,7 @@ interface IoTService$ { options?: HttpHandlerOptions, ): Effect.Effect< CreateBillingGroupCommandOutput, - | Cause.TimeoutException + | Cause.TimeoutError | SdkError | InternalFailureError | InvalidRequestError @@ -1500,7 +1475,7 @@ interface IoTService$ { options?: HttpHandlerOptions, ): Effect.Effect< CreateCertificateFromCsrCommandOutput, - | Cause.TimeoutException + | Cause.TimeoutError | SdkError | InternalFailureError | InvalidRequestError @@ -1517,7 +1492,7 @@ interface IoTService$ { options?: HttpHandlerOptions, ): Effect.Effect< CreateCertificateProviderCommandOutput, - | Cause.TimeoutException + | Cause.TimeoutError | SdkError | InternalFailureError | InvalidRequestError @@ -1536,7 +1511,7 @@ interface IoTService$ { options?: HttpHandlerOptions, ): Effect.Effect< CreateCommandCommandOutput, - | Cause.TimeoutException + | Cause.TimeoutError | SdkError | ConflictError | InternalServerError @@ -1553,7 +1528,7 @@ interface IoTService$ { options?: HttpHandlerOptions, ): Effect.Effect< CreateCustomMetricCommandOutput, - | Cause.TimeoutException + | Cause.TimeoutError | SdkError | InternalFailureError | InvalidRequestError @@ -1570,7 +1545,7 @@ interface IoTService$ { options?: HttpHandlerOptions, ): Effect.Effect< CreateDimensionCommandOutput, - | Cause.TimeoutException + | Cause.TimeoutError | SdkError | InternalFailureError | InvalidRequestError @@ -1587,7 +1562,7 @@ interface IoTService$ { options?: HttpHandlerOptions, ): Effect.Effect< CreateDomainConfigurationCommandOutput, - | Cause.TimeoutException + | Cause.TimeoutError | SdkError | CertificateValidationError | InternalFailureError @@ -1607,7 +1582,7 @@ interface IoTService$ { options?: HttpHandlerOptions, ): Effect.Effect< CreateDynamicThingGroupCommandOutput, - | Cause.TimeoutException + | Cause.TimeoutError | SdkError | InternalFailureError | InvalidQueryError @@ -1626,7 +1601,7 @@ interface IoTService$ { options?: HttpHandlerOptions, ): Effect.Effect< CreateFleetMetricCommandOutput, - | Cause.TimeoutException + | Cause.TimeoutError | SdkError | IndexNotReadyError | InternalFailureError @@ -1649,7 +1624,7 @@ interface IoTService$ { options?: HttpHandlerOptions, ): Effect.Effect< CreateJobCommandOutput, - | Cause.TimeoutException + | Cause.TimeoutError | SdkError | InvalidRequestError | LimitExceededError @@ -1667,7 +1642,7 @@ interface IoTService$ { options?: HttpHandlerOptions, ): Effect.Effect< CreateJobTemplateCommandOutput, - | Cause.TimeoutException + | Cause.TimeoutError | SdkError | ConflictError | InternalFailureError @@ -1685,7 +1660,7 @@ interface IoTService$ { options?: HttpHandlerOptions, ): Effect.Effect< CreateKeysAndCertificateCommandOutput, - | Cause.TimeoutException + | Cause.TimeoutError | SdkError | InternalFailureError | InvalidRequestError @@ -1702,7 +1677,7 @@ interface IoTService$ { options?: HttpHandlerOptions, ): Effect.Effect< CreateMitigationActionCommandOutput, - | Cause.TimeoutException + | Cause.TimeoutError | SdkError | InternalFailureError | InvalidRequestError @@ -1719,7 +1694,7 @@ interface IoTService$ { options?: HttpHandlerOptions, ): Effect.Effect< CreateOTAUpdateCommandOutput, - | Cause.TimeoutException + | Cause.TimeoutError | SdkError | InternalFailureError | InvalidRequestError @@ -1739,7 +1714,7 @@ interface IoTService$ { options?: HttpHandlerOptions, ): Effect.Effect< CreatePackageCommandOutput, - | Cause.TimeoutException + | Cause.TimeoutError | SdkError | ConflictError | InternalServerError @@ -1756,7 +1731,7 @@ interface IoTService$ { options?: HttpHandlerOptions, ): Effect.Effect< CreatePackageVersionCommandOutput, - | Cause.TimeoutException + | Cause.TimeoutError | SdkError | ConflictError | InternalServerError @@ -1773,7 +1748,7 @@ interface IoTService$ { options?: HttpHandlerOptions, ): Effect.Effect< CreatePolicyCommandOutput, - | Cause.TimeoutException + | Cause.TimeoutError | SdkError | InternalFailureError | InvalidRequestError @@ -1792,7 +1767,7 @@ interface IoTService$ { options?: HttpHandlerOptions, ): Effect.Effect< CreatePolicyVersionCommandOutput, - | Cause.TimeoutException + | Cause.TimeoutError | SdkError | InternalFailureError | InvalidRequestError @@ -1812,7 +1787,7 @@ interface IoTService$ { options?: HttpHandlerOptions, ): Effect.Effect< CreateProvisioningClaimCommandOutput, - | Cause.TimeoutException + | Cause.TimeoutError | SdkError | InternalFailureError | InvalidRequestError @@ -1830,7 +1805,7 @@ interface IoTService$ { options?: HttpHandlerOptions, ): Effect.Effect< CreateProvisioningTemplateCommandOutput, - | Cause.TimeoutException + | Cause.TimeoutError | SdkError | InternalFailureError | InvalidRequestError @@ -1848,7 +1823,7 @@ interface IoTService$ { options?: HttpHandlerOptions, ): Effect.Effect< CreateProvisioningTemplateVersionCommandOutput, - | Cause.TimeoutException + | Cause.TimeoutError | SdkError | ConflictingResourceUpdateError | InternalFailureError @@ -1867,7 +1842,7 @@ interface IoTService$ { options?: HttpHandlerOptions, ): Effect.Effect< CreateRoleAliasCommandOutput, - | Cause.TimeoutException + | Cause.TimeoutError | SdkError | InternalFailureError | InvalidRequestError @@ -1886,7 +1861,7 @@ interface IoTService$ { options?: HttpHandlerOptions, ): Effect.Effect< CreateScheduledAuditCommandOutput, - | Cause.TimeoutException + | Cause.TimeoutError | SdkError | InternalFailureError | InvalidRequestError @@ -1903,7 +1878,7 @@ interface IoTService$ { options?: HttpHandlerOptions, ): Effect.Effect< CreateSecurityProfileCommandOutput, - | Cause.TimeoutException + | Cause.TimeoutError | SdkError | InternalFailureError | InvalidRequestError @@ -1919,7 +1894,7 @@ interface IoTService$ { options?: HttpHandlerOptions, ): Effect.Effect< CreateStreamCommandOutput, - | Cause.TimeoutException + | Cause.TimeoutError | SdkError | InternalFailureError | InvalidRequestError @@ -1939,7 +1914,7 @@ interface IoTService$ { options?: HttpHandlerOptions, ): Effect.Effect< CreateThingCommandOutput, - | Cause.TimeoutException + | Cause.TimeoutError | SdkError | InternalFailureError | InvalidRequestError @@ -1958,7 +1933,7 @@ interface IoTService$ { options?: HttpHandlerOptions, ): Effect.Effect< CreateThingGroupCommandOutput, - | Cause.TimeoutException + | Cause.TimeoutError | SdkError | InternalFailureError | InvalidRequestError @@ -1974,7 +1949,7 @@ interface IoTService$ { options?: HttpHandlerOptions, ): Effect.Effect< CreateThingTypeCommandOutput, - | Cause.TimeoutException + | Cause.TimeoutError | SdkError | InternalFailureError | InvalidRequestError @@ -1992,7 +1967,7 @@ interface IoTService$ { options?: HttpHandlerOptions, ): Effect.Effect< CreateTopicRuleCommandOutput, - | Cause.TimeoutException + | Cause.TimeoutError | SdkError | ConflictingResourceUpdateError | InternalError @@ -2011,7 +1986,7 @@ interface IoTService$ { options?: HttpHandlerOptions, ): Effect.Effect< CreateTopicRuleDestinationCommandOutput, - | Cause.TimeoutException + | Cause.TimeoutError | SdkError | ConflictingResourceUpdateError | InternalError @@ -2029,12 +2004,7 @@ interface IoTService$ { options?: HttpHandlerOptions, ): Effect.Effect< DeleteAccountAuditConfigurationCommandOutput, - | Cause.TimeoutException - | SdkError - | InternalFailureError - | InvalidRequestError - | ResourceNotFoundError - | ThrottlingError + Cause.TimeoutError | SdkError | InternalFailureError | InvalidRequestError | ResourceNotFoundError | ThrottlingError >; /** @@ -2045,7 +2015,7 @@ interface IoTService$ { options?: HttpHandlerOptions, ): Effect.Effect< DeleteAuditSuppressionCommandOutput, - Cause.TimeoutException | SdkError | InternalFailureError | InvalidRequestError | ThrottlingError + Cause.TimeoutError | SdkError | InternalFailureError | InvalidRequestError | ThrottlingError >; /** @@ -2056,7 +2026,7 @@ interface IoTService$ { options?: HttpHandlerOptions, ): Effect.Effect< DeleteAuthorizerCommandOutput, - | Cause.TimeoutException + | Cause.TimeoutError | SdkError | DeleteConflictError | InternalFailureError @@ -2075,12 +2045,7 @@ interface IoTService$ { options?: HttpHandlerOptions, ): Effect.Effect< DeleteBillingGroupCommandOutput, - | Cause.TimeoutException - | SdkError - | InternalFailureError - | InvalidRequestError - | ThrottlingError - | VersionConflictError + Cause.TimeoutError | SdkError | InternalFailureError | InvalidRequestError | ThrottlingError | VersionConflictError >; /** @@ -2091,7 +2056,7 @@ interface IoTService$ { options?: HttpHandlerOptions, ): Effect.Effect< DeleteCACertificateCommandOutput, - | Cause.TimeoutException + | Cause.TimeoutError | SdkError | CertificateStateError | InternalFailureError @@ -2110,7 +2075,7 @@ interface IoTService$ { options?: HttpHandlerOptions, ): Effect.Effect< DeleteCertificateCommandOutput, - | Cause.TimeoutException + | Cause.TimeoutError | SdkError | CertificateStateError | DeleteConflictError @@ -2130,7 +2095,7 @@ interface IoTService$ { options?: HttpHandlerOptions, ): Effect.Effect< DeleteCertificateProviderCommandOutput, - | Cause.TimeoutException + | Cause.TimeoutError | SdkError | DeleteConflictError | InternalFailureError @@ -2149,7 +2114,7 @@ interface IoTService$ { options?: HttpHandlerOptions, ): Effect.Effect< DeleteCommandCommandOutput, - Cause.TimeoutException | SdkError | ConflictError | InternalServerError | ThrottlingError | ValidationError + Cause.TimeoutError | SdkError | ConflictError | InternalServerError | ThrottlingError | ValidationError >; /** @@ -2160,7 +2125,7 @@ interface IoTService$ { options?: HttpHandlerOptions, ): Effect.Effect< DeleteCommandExecutionCommandOutput, - Cause.TimeoutException | SdkError | ConflictError | InternalServerError | ThrottlingError | ValidationError + Cause.TimeoutError | SdkError | ConflictError | InternalServerError | ThrottlingError | ValidationError >; /** @@ -2171,7 +2136,7 @@ interface IoTService$ { options?: HttpHandlerOptions, ): Effect.Effect< DeleteCustomMetricCommandOutput, - Cause.TimeoutException | SdkError | InternalFailureError | InvalidRequestError | ThrottlingError + Cause.TimeoutError | SdkError | InternalFailureError | InvalidRequestError | ThrottlingError >; /** @@ -2182,7 +2147,7 @@ interface IoTService$ { options?: HttpHandlerOptions, ): Effect.Effect< DeleteDimensionCommandOutput, - Cause.TimeoutException | SdkError | InternalFailureError | InvalidRequestError | ThrottlingError + Cause.TimeoutError | SdkError | InternalFailureError | InvalidRequestError | ThrottlingError >; /** @@ -2193,7 +2158,7 @@ interface IoTService$ { options?: HttpHandlerOptions, ): Effect.Effect< DeleteDomainConfigurationCommandOutput, - | Cause.TimeoutException + | Cause.TimeoutError | SdkError | InternalFailureError | InvalidRequestError @@ -2211,12 +2176,7 @@ interface IoTService$ { options?: HttpHandlerOptions, ): Effect.Effect< DeleteDynamicThingGroupCommandOutput, - | Cause.TimeoutException - | SdkError - | InternalFailureError - | InvalidRequestError - | ThrottlingError - | VersionConflictError + Cause.TimeoutError | SdkError | InternalFailureError | InvalidRequestError | ThrottlingError | VersionConflictError >; /** @@ -2227,7 +2187,7 @@ interface IoTService$ { options?: HttpHandlerOptions, ): Effect.Effect< DeleteFleetMetricCommandOutput, - | Cause.TimeoutException + | Cause.TimeoutError | SdkError | InternalFailureError | InvalidRequestError @@ -2245,7 +2205,7 @@ interface IoTService$ { options?: HttpHandlerOptions, ): Effect.Effect< DeleteJobCommandOutput, - | Cause.TimeoutException + | Cause.TimeoutError | SdkError | InvalidRequestError | InvalidStateTransitionError @@ -2263,7 +2223,7 @@ interface IoTService$ { options?: HttpHandlerOptions, ): Effect.Effect< DeleteJobExecutionCommandOutput, - | Cause.TimeoutException + | Cause.TimeoutError | SdkError | InvalidRequestError | InvalidStateTransitionError @@ -2280,12 +2240,7 @@ interface IoTService$ { options?: HttpHandlerOptions, ): Effect.Effect< DeleteJobTemplateCommandOutput, - | Cause.TimeoutException - | SdkError - | InternalFailureError - | InvalidRequestError - | ResourceNotFoundError - | ThrottlingError + Cause.TimeoutError | SdkError | InternalFailureError | InvalidRequestError | ResourceNotFoundError | ThrottlingError >; /** @@ -2296,7 +2251,7 @@ interface IoTService$ { options?: HttpHandlerOptions, ): Effect.Effect< DeleteMitigationActionCommandOutput, - Cause.TimeoutException | SdkError | InternalFailureError | InvalidRequestError | ThrottlingError + Cause.TimeoutError | SdkError | InternalFailureError | InvalidRequestError | ThrottlingError >; /** @@ -2307,7 +2262,7 @@ interface IoTService$ { options?: HttpHandlerOptions, ): Effect.Effect< DeleteOTAUpdateCommandOutput, - | Cause.TimeoutException + | Cause.TimeoutError | SdkError | InternalFailureError | InvalidRequestError @@ -2326,7 +2281,7 @@ interface IoTService$ { options?: HttpHandlerOptions, ): Effect.Effect< DeletePackageCommandOutput, - Cause.TimeoutException | SdkError | InternalServerError | ThrottlingError | ValidationError + Cause.TimeoutError | SdkError | InternalServerError | ThrottlingError | ValidationError >; /** @@ -2337,7 +2292,7 @@ interface IoTService$ { options?: HttpHandlerOptions, ): Effect.Effect< DeletePackageVersionCommandOutput, - Cause.TimeoutException | SdkError | InternalServerError | ThrottlingError | ValidationError + Cause.TimeoutError | SdkError | InternalServerError | ThrottlingError | ValidationError >; /** @@ -2348,7 +2303,7 @@ interface IoTService$ { options?: HttpHandlerOptions, ): Effect.Effect< DeletePolicyCommandOutput, - | Cause.TimeoutException + | Cause.TimeoutError | SdkError | DeleteConflictError | InternalFailureError @@ -2367,7 +2322,7 @@ interface IoTService$ { options?: HttpHandlerOptions, ): Effect.Effect< DeletePolicyVersionCommandOutput, - | Cause.TimeoutException + | Cause.TimeoutError | SdkError | DeleteConflictError | InternalFailureError @@ -2386,7 +2341,7 @@ interface IoTService$ { options?: HttpHandlerOptions, ): Effect.Effect< DeleteProvisioningTemplateCommandOutput, - | Cause.TimeoutException + | Cause.TimeoutError | SdkError | ConflictingResourceUpdateError | DeleteConflictError @@ -2405,7 +2360,7 @@ interface IoTService$ { options?: HttpHandlerOptions, ): Effect.Effect< DeleteProvisioningTemplateVersionCommandOutput, - | Cause.TimeoutException + | Cause.TimeoutError | SdkError | ConflictingResourceUpdateError | DeleteConflictError @@ -2424,7 +2379,7 @@ interface IoTService$ { options?: HttpHandlerOptions, ): Effect.Effect< DeleteRegistrationCodeCommandOutput, - | Cause.TimeoutException + | Cause.TimeoutError | SdkError | InternalFailureError | ResourceNotFoundError @@ -2441,7 +2396,7 @@ interface IoTService$ { options?: HttpHandlerOptions, ): Effect.Effect< DeleteRoleAliasCommandOutput, - | Cause.TimeoutException + | Cause.TimeoutError | SdkError | DeleteConflictError | InternalFailureError @@ -2460,12 +2415,7 @@ interface IoTService$ { options?: HttpHandlerOptions, ): Effect.Effect< DeleteScheduledAuditCommandOutput, - | Cause.TimeoutException - | SdkError - | InternalFailureError - | InvalidRequestError - | ResourceNotFoundError - | ThrottlingError + Cause.TimeoutError | SdkError | InternalFailureError | InvalidRequestError | ResourceNotFoundError | ThrottlingError >; /** @@ -2476,12 +2426,7 @@ interface IoTService$ { options?: HttpHandlerOptions, ): Effect.Effect< DeleteSecurityProfileCommandOutput, - | Cause.TimeoutException - | SdkError - | InternalFailureError - | InvalidRequestError - | ThrottlingError - | VersionConflictError + Cause.TimeoutError | SdkError | InternalFailureError | InvalidRequestError | ThrottlingError | VersionConflictError >; /** @@ -2492,7 +2437,7 @@ interface IoTService$ { options?: HttpHandlerOptions, ): Effect.Effect< DeleteStreamCommandOutput, - | Cause.TimeoutException + | Cause.TimeoutError | SdkError | DeleteConflictError | InternalFailureError @@ -2511,7 +2456,7 @@ interface IoTService$ { options?: HttpHandlerOptions, ): Effect.Effect< DeleteThingCommandOutput, - | Cause.TimeoutException + | Cause.TimeoutError | SdkError | InternalFailureError | InvalidRequestError @@ -2530,12 +2475,7 @@ interface IoTService$ { options?: HttpHandlerOptions, ): Effect.Effect< DeleteThingGroupCommandOutput, - | Cause.TimeoutException - | SdkError - | InternalFailureError - | InvalidRequestError - | ThrottlingError - | VersionConflictError + Cause.TimeoutError | SdkError | InternalFailureError | InvalidRequestError | ThrottlingError | VersionConflictError >; /** @@ -2546,7 +2486,7 @@ interface IoTService$ { options?: HttpHandlerOptions, ): Effect.Effect< DeleteThingTypeCommandOutput, - | Cause.TimeoutException + | Cause.TimeoutError | SdkError | InternalFailureError | InvalidRequestError @@ -2564,7 +2504,7 @@ interface IoTService$ { options?: HttpHandlerOptions, ): Effect.Effect< DeleteTopicRuleCommandOutput, - | Cause.TimeoutException + | Cause.TimeoutError | SdkError | ConflictingResourceUpdateError | InternalError @@ -2581,7 +2521,7 @@ interface IoTService$ { options?: HttpHandlerOptions, ): Effect.Effect< DeleteTopicRuleDestinationCommandOutput, - | Cause.TimeoutException + | Cause.TimeoutError | SdkError | ConflictingResourceUpdateError | InternalError @@ -2598,7 +2538,7 @@ interface IoTService$ { options?: HttpHandlerOptions, ): Effect.Effect< DeleteV2LoggingLevelCommandOutput, - Cause.TimeoutException | SdkError | InternalError | InvalidRequestError | ServiceUnavailableError + Cause.TimeoutError | SdkError | InternalError | InvalidRequestError | ServiceUnavailableError >; /** @@ -2609,7 +2549,7 @@ interface IoTService$ { options?: HttpHandlerOptions, ): Effect.Effect< DeprecateThingTypeCommandOutput, - | Cause.TimeoutException + | Cause.TimeoutError | SdkError | InternalFailureError | InvalidRequestError @@ -2627,7 +2567,7 @@ interface IoTService$ { options?: HttpHandlerOptions, ): Effect.Effect< DescribeAccountAuditConfigurationCommandOutput, - Cause.TimeoutException | SdkError | InternalFailureError | ThrottlingError + Cause.TimeoutError | SdkError | InternalFailureError | ThrottlingError >; /** @@ -2638,12 +2578,7 @@ interface IoTService$ { options?: HttpHandlerOptions, ): Effect.Effect< DescribeAuditFindingCommandOutput, - | Cause.TimeoutException - | SdkError - | InternalFailureError - | InvalidRequestError - | ResourceNotFoundError - | ThrottlingError + Cause.TimeoutError | SdkError | InternalFailureError | InvalidRequestError | ResourceNotFoundError | ThrottlingError >; /** @@ -2654,12 +2589,7 @@ interface IoTService$ { options?: HttpHandlerOptions, ): Effect.Effect< DescribeAuditMitigationActionsTaskCommandOutput, - | Cause.TimeoutException - | SdkError - | InternalFailureError - | InvalidRequestError - | ResourceNotFoundError - | ThrottlingError + Cause.TimeoutError | SdkError | InternalFailureError | InvalidRequestError | ResourceNotFoundError | ThrottlingError >; /** @@ -2670,12 +2600,7 @@ interface IoTService$ { options?: HttpHandlerOptions, ): Effect.Effect< DescribeAuditSuppressionCommandOutput, - | Cause.TimeoutException - | SdkError - | InternalFailureError - | InvalidRequestError - | ResourceNotFoundError - | ThrottlingError + Cause.TimeoutError | SdkError | InternalFailureError | InvalidRequestError | ResourceNotFoundError | ThrottlingError >; /** @@ -2686,12 +2611,7 @@ interface IoTService$ { options?: HttpHandlerOptions, ): Effect.Effect< DescribeAuditTaskCommandOutput, - | Cause.TimeoutException - | SdkError - | InternalFailureError - | InvalidRequestError - | ResourceNotFoundError - | ThrottlingError + Cause.TimeoutError | SdkError | InternalFailureError | InvalidRequestError | ResourceNotFoundError | ThrottlingError >; /** @@ -2702,7 +2622,7 @@ interface IoTService$ { options?: HttpHandlerOptions, ): Effect.Effect< DescribeAuthorizerCommandOutput, - | Cause.TimeoutException + | Cause.TimeoutError | SdkError | InternalFailureError | InvalidRequestError @@ -2720,12 +2640,7 @@ interface IoTService$ { options?: HttpHandlerOptions, ): Effect.Effect< DescribeBillingGroupCommandOutput, - | Cause.TimeoutException - | SdkError - | InternalFailureError - | InvalidRequestError - | ResourceNotFoundError - | ThrottlingError + Cause.TimeoutError | SdkError | InternalFailureError | InvalidRequestError | ResourceNotFoundError | ThrottlingError >; /** @@ -2736,7 +2651,7 @@ interface IoTService$ { options?: HttpHandlerOptions, ): Effect.Effect< DescribeCACertificateCommandOutput, - | Cause.TimeoutException + | Cause.TimeoutError | SdkError | InternalFailureError | InvalidRequestError @@ -2754,7 +2669,7 @@ interface IoTService$ { options?: HttpHandlerOptions, ): Effect.Effect< DescribeCertificateCommandOutput, - | Cause.TimeoutException + | Cause.TimeoutError | SdkError | InternalFailureError | InvalidRequestError @@ -2772,7 +2687,7 @@ interface IoTService$ { options?: HttpHandlerOptions, ): Effect.Effect< DescribeCertificateProviderCommandOutput, - | Cause.TimeoutException + | Cause.TimeoutError | SdkError | InternalFailureError | InvalidRequestError @@ -2790,12 +2705,7 @@ interface IoTService$ { options?: HttpHandlerOptions, ): Effect.Effect< DescribeCustomMetricCommandOutput, - | Cause.TimeoutException - | SdkError - | InternalFailureError - | InvalidRequestError - | ResourceNotFoundError - | ThrottlingError + Cause.TimeoutError | SdkError | InternalFailureError | InvalidRequestError | ResourceNotFoundError | ThrottlingError >; /** @@ -2806,7 +2716,7 @@ interface IoTService$ { options?: HttpHandlerOptions, ): Effect.Effect< DescribeDefaultAuthorizerCommandOutput, - | Cause.TimeoutException + | Cause.TimeoutError | SdkError | InternalFailureError | InvalidRequestError @@ -2824,12 +2734,7 @@ interface IoTService$ { options?: HttpHandlerOptions, ): Effect.Effect< DescribeDetectMitigationActionsTaskCommandOutput, - | Cause.TimeoutException - | SdkError - | InternalFailureError - | InvalidRequestError - | ResourceNotFoundError - | ThrottlingError + Cause.TimeoutError | SdkError | InternalFailureError | InvalidRequestError | ResourceNotFoundError | ThrottlingError >; /** @@ -2840,12 +2745,7 @@ interface IoTService$ { options?: HttpHandlerOptions, ): Effect.Effect< DescribeDimensionCommandOutput, - | Cause.TimeoutException - | SdkError - | InternalFailureError - | InvalidRequestError - | ResourceNotFoundError - | ThrottlingError + Cause.TimeoutError | SdkError | InternalFailureError | InvalidRequestError | ResourceNotFoundError | ThrottlingError >; /** @@ -2856,7 +2756,7 @@ interface IoTService$ { options?: HttpHandlerOptions, ): Effect.Effect< DescribeDomainConfigurationCommandOutput, - | Cause.TimeoutException + | Cause.TimeoutError | SdkError | InternalFailureError | InvalidRequestError @@ -2874,7 +2774,7 @@ interface IoTService$ { options?: HttpHandlerOptions, ): Effect.Effect< DescribeEncryptionConfigurationCommandOutput, - | Cause.TimeoutException + | Cause.TimeoutError | SdkError | InternalFailureError | InvalidRequestError @@ -2891,7 +2791,7 @@ interface IoTService$ { options?: HttpHandlerOptions, ): Effect.Effect< DescribeEndpointCommandOutput, - Cause.TimeoutException | SdkError | InternalFailureError | InvalidRequestError | ThrottlingError | UnauthorizedError + Cause.TimeoutError | SdkError | InternalFailureError | InvalidRequestError | ThrottlingError | UnauthorizedError >; /** @@ -2902,7 +2802,7 @@ interface IoTService$ { options?: HttpHandlerOptions, ): Effect.Effect< DescribeEventConfigurationsCommandOutput, - Cause.TimeoutException | SdkError | InternalFailureError | ThrottlingError + Cause.TimeoutError | SdkError | InternalFailureError | ThrottlingError >; /** @@ -2913,7 +2813,7 @@ interface IoTService$ { options?: HttpHandlerOptions, ): Effect.Effect< DescribeFleetMetricCommandOutput, - | Cause.TimeoutException + | Cause.TimeoutError | SdkError | InternalFailureError | InvalidRequestError @@ -2931,7 +2831,7 @@ interface IoTService$ { options?: HttpHandlerOptions, ): Effect.Effect< DescribeIndexCommandOutput, - | Cause.TimeoutException + | Cause.TimeoutError | SdkError | InternalFailureError | InvalidRequestError @@ -2949,7 +2849,7 @@ interface IoTService$ { options?: HttpHandlerOptions, ): Effect.Effect< DescribeJobCommandOutput, - | Cause.TimeoutException + | Cause.TimeoutError | SdkError | InvalidRequestError | ResourceNotFoundError @@ -2965,7 +2865,7 @@ interface IoTService$ { options?: HttpHandlerOptions, ): Effect.Effect< DescribeJobExecutionCommandOutput, - | Cause.TimeoutException + | Cause.TimeoutError | SdkError | InvalidRequestError | ResourceNotFoundError @@ -2981,12 +2881,7 @@ interface IoTService$ { options?: HttpHandlerOptions, ): Effect.Effect< DescribeJobTemplateCommandOutput, - | Cause.TimeoutException - | SdkError - | InternalFailureError - | InvalidRequestError - | ResourceNotFoundError - | ThrottlingError + Cause.TimeoutError | SdkError | InternalFailureError | InvalidRequestError | ResourceNotFoundError | ThrottlingError >; /** @@ -2997,12 +2892,7 @@ interface IoTService$ { options?: HttpHandlerOptions, ): Effect.Effect< DescribeManagedJobTemplateCommandOutput, - | Cause.TimeoutException - | SdkError - | InternalServerError - | InvalidRequestError - | ResourceNotFoundError - | ThrottlingError + Cause.TimeoutError | SdkError | InternalServerError | InvalidRequestError | ResourceNotFoundError | ThrottlingError >; /** @@ -3013,12 +2903,7 @@ interface IoTService$ { options?: HttpHandlerOptions, ): Effect.Effect< DescribeMitigationActionCommandOutput, - | Cause.TimeoutException - | SdkError - | InternalFailureError - | InvalidRequestError - | ResourceNotFoundError - | ThrottlingError + Cause.TimeoutError | SdkError | InternalFailureError | InvalidRequestError | ResourceNotFoundError | ThrottlingError >; /** @@ -3029,7 +2914,7 @@ interface IoTService$ { options?: HttpHandlerOptions, ): Effect.Effect< DescribeProvisioningTemplateCommandOutput, - | Cause.TimeoutException + | Cause.TimeoutError | SdkError | InternalFailureError | InvalidRequestError @@ -3046,7 +2931,7 @@ interface IoTService$ { options?: HttpHandlerOptions, ): Effect.Effect< DescribeProvisioningTemplateVersionCommandOutput, - | Cause.TimeoutException + | Cause.TimeoutError | SdkError | InternalFailureError | InvalidRequestError @@ -3063,7 +2948,7 @@ interface IoTService$ { options?: HttpHandlerOptions, ): Effect.Effect< DescribeRoleAliasCommandOutput, - | Cause.TimeoutException + | Cause.TimeoutError | SdkError | InternalFailureError | InvalidRequestError @@ -3081,12 +2966,7 @@ interface IoTService$ { options?: HttpHandlerOptions, ): Effect.Effect< DescribeScheduledAuditCommandOutput, - | Cause.TimeoutException - | SdkError - | InternalFailureError - | InvalidRequestError - | ResourceNotFoundError - | ThrottlingError + Cause.TimeoutError | SdkError | InternalFailureError | InvalidRequestError | ResourceNotFoundError | ThrottlingError >; /** @@ -3097,12 +2977,7 @@ interface IoTService$ { options?: HttpHandlerOptions, ): Effect.Effect< DescribeSecurityProfileCommandOutput, - | Cause.TimeoutException - | SdkError - | InternalFailureError - | InvalidRequestError - | ResourceNotFoundError - | ThrottlingError + Cause.TimeoutError | SdkError | InternalFailureError | InvalidRequestError | ResourceNotFoundError | ThrottlingError >; /** @@ -3113,7 +2988,7 @@ interface IoTService$ { options?: HttpHandlerOptions, ): Effect.Effect< DescribeStreamCommandOutput, - | Cause.TimeoutException + | Cause.TimeoutError | SdkError | InternalFailureError | InvalidRequestError @@ -3131,7 +3006,7 @@ interface IoTService$ { options?: HttpHandlerOptions, ): Effect.Effect< DescribeThingCommandOutput, - | Cause.TimeoutException + | Cause.TimeoutError | SdkError | InternalFailureError | InvalidRequestError @@ -3149,12 +3024,7 @@ interface IoTService$ { options?: HttpHandlerOptions, ): Effect.Effect< DescribeThingGroupCommandOutput, - | Cause.TimeoutException - | SdkError - | InternalFailureError - | InvalidRequestError - | ResourceNotFoundError - | ThrottlingError + Cause.TimeoutError | SdkError | InternalFailureError | InvalidRequestError | ResourceNotFoundError | ThrottlingError >; /** @@ -3165,7 +3035,7 @@ interface IoTService$ { options?: HttpHandlerOptions, ): Effect.Effect< DescribeThingRegistrationTaskCommandOutput, - | Cause.TimeoutException + | Cause.TimeoutError | SdkError | InternalFailureError | InvalidRequestError @@ -3182,7 +3052,7 @@ interface IoTService$ { options?: HttpHandlerOptions, ): Effect.Effect< DescribeThingTypeCommandOutput, - | Cause.TimeoutException + | Cause.TimeoutError | SdkError | InternalFailureError | InvalidRequestError @@ -3200,7 +3070,7 @@ interface IoTService$ { options?: HttpHandlerOptions, ): Effect.Effect< DetachPolicyCommandOutput, - | Cause.TimeoutException + | Cause.TimeoutError | SdkError | InternalFailureError | InvalidRequestError @@ -3218,7 +3088,7 @@ interface IoTService$ { options?: HttpHandlerOptions, ): Effect.Effect< DetachPrincipalPolicyCommandOutput, - | Cause.TimeoutException + | Cause.TimeoutError | SdkError | InternalFailureError | InvalidRequestError @@ -3236,12 +3106,7 @@ interface IoTService$ { options?: HttpHandlerOptions, ): Effect.Effect< DetachSecurityProfileCommandOutput, - | Cause.TimeoutException - | SdkError - | InternalFailureError - | InvalidRequestError - | ResourceNotFoundError - | ThrottlingError + Cause.TimeoutError | SdkError | InternalFailureError | InvalidRequestError | ResourceNotFoundError | ThrottlingError >; /** @@ -3252,7 +3117,7 @@ interface IoTService$ { options?: HttpHandlerOptions, ): Effect.Effect< DetachThingPrincipalCommandOutput, - | Cause.TimeoutException + | Cause.TimeoutError | SdkError | InternalFailureError | InvalidRequestError @@ -3270,7 +3135,7 @@ interface IoTService$ { options?: HttpHandlerOptions, ): Effect.Effect< DisableTopicRuleCommandOutput, - | Cause.TimeoutException + | Cause.TimeoutError | SdkError | ConflictingResourceUpdateError | InternalError @@ -3287,7 +3152,7 @@ interface IoTService$ { options?: HttpHandlerOptions, ): Effect.Effect< DisassociateSbomFromPackageVersionCommandOutput, - | Cause.TimeoutException + | Cause.TimeoutError | SdkError | ConflictError | InternalServerError @@ -3304,7 +3169,7 @@ interface IoTService$ { options?: HttpHandlerOptions, ): Effect.Effect< EnableTopicRuleCommandOutput, - | Cause.TimeoutException + | Cause.TimeoutError | SdkError | ConflictingResourceUpdateError | InternalError @@ -3321,12 +3186,7 @@ interface IoTService$ { options?: HttpHandlerOptions, ): Effect.Effect< GetBehaviorModelTrainingSummariesCommandOutput, - | Cause.TimeoutException - | SdkError - | InternalFailureError - | InvalidRequestError - | ResourceNotFoundError - | ThrottlingError + Cause.TimeoutError | SdkError | InternalFailureError | InvalidRequestError | ResourceNotFoundError | ThrottlingError >; /** @@ -3337,7 +3197,7 @@ interface IoTService$ { options?: HttpHandlerOptions, ): Effect.Effect< GetBucketsAggregationCommandOutput, - | Cause.TimeoutException + | Cause.TimeoutError | SdkError | IndexNotReadyError | InternalFailureError @@ -3358,7 +3218,7 @@ interface IoTService$ { options?: HttpHandlerOptions, ): Effect.Effect< GetCardinalityCommandOutput, - | Cause.TimeoutException + | Cause.TimeoutError | SdkError | IndexNotReadyError | InternalFailureError @@ -3379,7 +3239,7 @@ interface IoTService$ { options?: HttpHandlerOptions, ): Effect.Effect< GetCommandCommandOutput, - Cause.TimeoutException | SdkError | InternalServerError | ResourceNotFoundError | ThrottlingError | ValidationError + Cause.TimeoutError | SdkError | InternalServerError | ResourceNotFoundError | ThrottlingError | ValidationError >; /** @@ -3390,7 +3250,7 @@ interface IoTService$ { options?: HttpHandlerOptions, ): Effect.Effect< GetCommandExecutionCommandOutput, - Cause.TimeoutException | SdkError | InternalServerError | ResourceNotFoundError | ThrottlingError | ValidationError + Cause.TimeoutError | SdkError | InternalServerError | ResourceNotFoundError | ThrottlingError | ValidationError >; /** @@ -3401,7 +3261,7 @@ interface IoTService$ { options?: HttpHandlerOptions, ): Effect.Effect< GetEffectivePoliciesCommandOutput, - | Cause.TimeoutException + | Cause.TimeoutError | SdkError | InternalFailureError | InvalidRequestError @@ -3420,7 +3280,7 @@ interface IoTService$ { options?: HttpHandlerOptions, ): Effect.Effect< GetIndexingConfigurationCommandOutput, - | Cause.TimeoutException + | Cause.TimeoutError | SdkError | InternalFailureError | InvalidRequestError @@ -3437,7 +3297,7 @@ interface IoTService$ { options?: HttpHandlerOptions, ): Effect.Effect< GetJobDocumentCommandOutput, - | Cause.TimeoutException + | Cause.TimeoutError | SdkError | InvalidRequestError | ResourceNotFoundError @@ -3453,7 +3313,7 @@ interface IoTService$ { options?: HttpHandlerOptions, ): Effect.Effect< GetLoggingOptionsCommandOutput, - Cause.TimeoutException | SdkError | InternalError | InvalidRequestError | ServiceUnavailableError + Cause.TimeoutError | SdkError | InternalError | InvalidRequestError | ServiceUnavailableError >; /** @@ -3464,7 +3324,7 @@ interface IoTService$ { options?: HttpHandlerOptions, ): Effect.Effect< GetOTAUpdateCommandOutput, - | Cause.TimeoutException + | Cause.TimeoutError | SdkError | InternalFailureError | InvalidRequestError @@ -3482,7 +3342,7 @@ interface IoTService$ { options?: HttpHandlerOptions, ): Effect.Effect< GetPackageCommandOutput, - Cause.TimeoutException | SdkError | InternalServerError | ResourceNotFoundError | ThrottlingError | ValidationError + Cause.TimeoutError | SdkError | InternalServerError | ResourceNotFoundError | ThrottlingError | ValidationError >; /** @@ -3493,7 +3353,7 @@ interface IoTService$ { options?: HttpHandlerOptions, ): Effect.Effect< GetPackageConfigurationCommandOutput, - Cause.TimeoutException | SdkError | InternalServerError | ThrottlingError + Cause.TimeoutError | SdkError | InternalServerError | ThrottlingError >; /** @@ -3504,7 +3364,7 @@ interface IoTService$ { options?: HttpHandlerOptions, ): Effect.Effect< GetPackageVersionCommandOutput, - Cause.TimeoutException | SdkError | InternalServerError | ResourceNotFoundError | ThrottlingError | ValidationError + Cause.TimeoutError | SdkError | InternalServerError | ResourceNotFoundError | ThrottlingError | ValidationError >; /** @@ -3515,7 +3375,7 @@ interface IoTService$ { options?: HttpHandlerOptions, ): Effect.Effect< GetPercentilesCommandOutput, - | Cause.TimeoutException + | Cause.TimeoutError | SdkError | IndexNotReadyError | InternalFailureError @@ -3536,7 +3396,7 @@ interface IoTService$ { options?: HttpHandlerOptions, ): Effect.Effect< GetPolicyCommandOutput, - | Cause.TimeoutException + | Cause.TimeoutError | SdkError | InternalFailureError | InvalidRequestError @@ -3554,7 +3414,7 @@ interface IoTService$ { options?: HttpHandlerOptions, ): Effect.Effect< GetPolicyVersionCommandOutput, - | Cause.TimeoutException + | Cause.TimeoutError | SdkError | InternalFailureError | InvalidRequestError @@ -3572,7 +3432,7 @@ interface IoTService$ { options?: HttpHandlerOptions, ): Effect.Effect< GetRegistrationCodeCommandOutput, - | Cause.TimeoutException + | Cause.TimeoutError | SdkError | InternalFailureError | InvalidRequestError @@ -3589,7 +3449,7 @@ interface IoTService$ { options?: HttpHandlerOptions, ): Effect.Effect< GetStatisticsCommandOutput, - | Cause.TimeoutException + | Cause.TimeoutError | SdkError | IndexNotReadyError | InternalFailureError @@ -3610,7 +3470,7 @@ interface IoTService$ { options?: HttpHandlerOptions, ): Effect.Effect< GetThingConnectivityDataCommandOutput, - | Cause.TimeoutException + | Cause.TimeoutError | SdkError | IndexNotReadyError | InternalFailureError @@ -3629,12 +3489,7 @@ interface IoTService$ { options?: HttpHandlerOptions, ): Effect.Effect< GetTopicRuleCommandOutput, - | Cause.TimeoutException - | SdkError - | InternalError - | InvalidRequestError - | ServiceUnavailableError - | UnauthorizedError + Cause.TimeoutError | SdkError | InternalError | InvalidRequestError | ServiceUnavailableError | UnauthorizedError >; /** @@ -3645,12 +3500,7 @@ interface IoTService$ { options?: HttpHandlerOptions, ): Effect.Effect< GetTopicRuleDestinationCommandOutput, - | Cause.TimeoutException - | SdkError - | InternalError - | InvalidRequestError - | ServiceUnavailableError - | UnauthorizedError + Cause.TimeoutError | SdkError | InternalError | InvalidRequestError | ServiceUnavailableError | UnauthorizedError >; /** @@ -3661,7 +3511,7 @@ interface IoTService$ { options?: HttpHandlerOptions, ): Effect.Effect< GetV2LoggingOptionsCommandOutput, - Cause.TimeoutException | SdkError | InternalError | NotConfiguredError | ServiceUnavailableError + Cause.TimeoutError | SdkError | InternalError | NotConfiguredError | ServiceUnavailableError >; /** @@ -3672,12 +3522,7 @@ interface IoTService$ { options?: HttpHandlerOptions, ): Effect.Effect< ListActiveViolationsCommandOutput, - | Cause.TimeoutException - | SdkError - | InternalFailureError - | InvalidRequestError - | ResourceNotFoundError - | ThrottlingError + Cause.TimeoutError | SdkError | InternalFailureError | InvalidRequestError | ResourceNotFoundError | ThrottlingError >; /** @@ -3688,7 +3533,7 @@ interface IoTService$ { options?: HttpHandlerOptions, ): Effect.Effect< ListAttachedPoliciesCommandOutput, - | Cause.TimeoutException + | Cause.TimeoutError | SdkError | InternalFailureError | InvalidRequestError @@ -3707,7 +3552,7 @@ interface IoTService$ { options?: HttpHandlerOptions, ): Effect.Effect< ListAuditFindingsCommandOutput, - Cause.TimeoutException | SdkError | InternalFailureError | InvalidRequestError | ThrottlingError + Cause.TimeoutError | SdkError | InternalFailureError | InvalidRequestError | ThrottlingError >; /** @@ -3718,7 +3563,7 @@ interface IoTService$ { options?: HttpHandlerOptions, ): Effect.Effect< ListAuditMitigationActionsExecutionsCommandOutput, - Cause.TimeoutException | SdkError | InternalFailureError | InvalidRequestError | ThrottlingError + Cause.TimeoutError | SdkError | InternalFailureError | InvalidRequestError | ThrottlingError >; /** @@ -3729,7 +3574,7 @@ interface IoTService$ { options?: HttpHandlerOptions, ): Effect.Effect< ListAuditMitigationActionsTasksCommandOutput, - Cause.TimeoutException | SdkError | InternalFailureError | InvalidRequestError | ThrottlingError + Cause.TimeoutError | SdkError | InternalFailureError | InvalidRequestError | ThrottlingError >; /** @@ -3740,7 +3585,7 @@ interface IoTService$ { options?: HttpHandlerOptions, ): Effect.Effect< ListAuditSuppressionsCommandOutput, - Cause.TimeoutException | SdkError | InternalFailureError | InvalidRequestError | ThrottlingError + Cause.TimeoutError | SdkError | InternalFailureError | InvalidRequestError | ThrottlingError >; /** @@ -3751,7 +3596,7 @@ interface IoTService$ { options?: HttpHandlerOptions, ): Effect.Effect< ListAuditTasksCommandOutput, - Cause.TimeoutException | SdkError | InternalFailureError | InvalidRequestError | ThrottlingError + Cause.TimeoutError | SdkError | InternalFailureError | InvalidRequestError | ThrottlingError >; /** @@ -3762,7 +3607,7 @@ interface IoTService$ { options?: HttpHandlerOptions, ): Effect.Effect< ListAuthorizersCommandOutput, - | Cause.TimeoutException + | Cause.TimeoutError | SdkError | InternalFailureError | InvalidRequestError @@ -3779,12 +3624,7 @@ interface IoTService$ { options?: HttpHandlerOptions, ): Effect.Effect< ListBillingGroupsCommandOutput, - | Cause.TimeoutException - | SdkError - | InternalFailureError - | InvalidRequestError - | ResourceNotFoundError - | ThrottlingError + Cause.TimeoutError | SdkError | InternalFailureError | InvalidRequestError | ResourceNotFoundError | ThrottlingError >; /** @@ -3795,7 +3635,7 @@ interface IoTService$ { options?: HttpHandlerOptions, ): Effect.Effect< ListCACertificatesCommandOutput, - | Cause.TimeoutException + | Cause.TimeoutError | SdkError | InternalFailureError | InvalidRequestError @@ -3812,7 +3652,7 @@ interface IoTService$ { options?: HttpHandlerOptions, ): Effect.Effect< ListCertificateProvidersCommandOutput, - | Cause.TimeoutException + | Cause.TimeoutError | SdkError | InternalFailureError | InvalidRequestError @@ -3829,7 +3669,7 @@ interface IoTService$ { options?: HttpHandlerOptions, ): Effect.Effect< ListCertificatesCommandOutput, - | Cause.TimeoutException + | Cause.TimeoutError | SdkError | InternalFailureError | InvalidRequestError @@ -3846,7 +3686,7 @@ interface IoTService$ { options?: HttpHandlerOptions, ): Effect.Effect< ListCertificatesByCACommandOutput, - | Cause.TimeoutException + | Cause.TimeoutError | SdkError | InternalFailureError | InvalidRequestError @@ -3863,7 +3703,7 @@ interface IoTService$ { options?: HttpHandlerOptions, ): Effect.Effect< ListCommandExecutionsCommandOutput, - Cause.TimeoutException | SdkError | InternalServerError | ResourceNotFoundError | ThrottlingError | ValidationError + Cause.TimeoutError | SdkError | InternalServerError | ResourceNotFoundError | ThrottlingError | ValidationError >; /** @@ -3874,7 +3714,7 @@ interface IoTService$ { options?: HttpHandlerOptions, ): Effect.Effect< ListCommandsCommandOutput, - Cause.TimeoutException | SdkError | InternalServerError | ThrottlingError | ValidationError + Cause.TimeoutError | SdkError | InternalServerError | ThrottlingError | ValidationError >; /** @@ -3885,7 +3725,7 @@ interface IoTService$ { options?: HttpHandlerOptions, ): Effect.Effect< ListCustomMetricsCommandOutput, - Cause.TimeoutException | SdkError | InternalFailureError | InvalidRequestError | ThrottlingError + Cause.TimeoutError | SdkError | InternalFailureError | InvalidRequestError | ThrottlingError >; /** @@ -3896,7 +3736,7 @@ interface IoTService$ { options?: HttpHandlerOptions, ): Effect.Effect< ListDetectMitigationActionsExecutionsCommandOutput, - Cause.TimeoutException | SdkError | InternalFailureError | InvalidRequestError | ThrottlingError + Cause.TimeoutError | SdkError | InternalFailureError | InvalidRequestError | ThrottlingError >; /** @@ -3907,7 +3747,7 @@ interface IoTService$ { options?: HttpHandlerOptions, ): Effect.Effect< ListDetectMitigationActionsTasksCommandOutput, - Cause.TimeoutException | SdkError | InternalFailureError | InvalidRequestError | ThrottlingError + Cause.TimeoutError | SdkError | InternalFailureError | InvalidRequestError | ThrottlingError >; /** @@ -3918,7 +3758,7 @@ interface IoTService$ { options?: HttpHandlerOptions, ): Effect.Effect< ListDimensionsCommandOutput, - Cause.TimeoutException | SdkError | InternalFailureError | InvalidRequestError | ThrottlingError + Cause.TimeoutError | SdkError | InternalFailureError | InvalidRequestError | ThrottlingError >; /** @@ -3929,7 +3769,7 @@ interface IoTService$ { options?: HttpHandlerOptions, ): Effect.Effect< ListDomainConfigurationsCommandOutput, - | Cause.TimeoutException + | Cause.TimeoutError | SdkError | InternalFailureError | InvalidRequestError @@ -3946,7 +3786,7 @@ interface IoTService$ { options?: HttpHandlerOptions, ): Effect.Effect< ListFleetMetricsCommandOutput, - | Cause.TimeoutException + | Cause.TimeoutError | SdkError | InternalFailureError | InvalidRequestError @@ -3963,7 +3803,7 @@ interface IoTService$ { options?: HttpHandlerOptions, ): Effect.Effect< ListIndicesCommandOutput, - | Cause.TimeoutException + | Cause.TimeoutError | SdkError | InternalFailureError | InvalidRequestError @@ -3980,7 +3820,7 @@ interface IoTService$ { options?: HttpHandlerOptions, ): Effect.Effect< ListJobExecutionsForJobCommandOutput, - | Cause.TimeoutException + | Cause.TimeoutError | SdkError | InvalidRequestError | ResourceNotFoundError @@ -3996,7 +3836,7 @@ interface IoTService$ { options?: HttpHandlerOptions, ): Effect.Effect< ListJobExecutionsForThingCommandOutput, - | Cause.TimeoutException + | Cause.TimeoutError | SdkError | InvalidRequestError | ResourceNotFoundError @@ -4012,7 +3852,7 @@ interface IoTService$ { options?: HttpHandlerOptions, ): Effect.Effect< ListJobTemplatesCommandOutput, - Cause.TimeoutException | SdkError | InternalFailureError | InvalidRequestError | ThrottlingError + Cause.TimeoutError | SdkError | InternalFailureError | InvalidRequestError | ThrottlingError >; /** @@ -4023,7 +3863,7 @@ interface IoTService$ { options?: HttpHandlerOptions, ): Effect.Effect< ListJobsCommandOutput, - | Cause.TimeoutException + | Cause.TimeoutError | SdkError | InvalidRequestError | ResourceNotFoundError @@ -4039,12 +3879,7 @@ interface IoTService$ { options?: HttpHandlerOptions, ): Effect.Effect< ListManagedJobTemplatesCommandOutput, - | Cause.TimeoutException - | SdkError - | InternalServerError - | InvalidRequestError - | ResourceNotFoundError - | ThrottlingError + Cause.TimeoutError | SdkError | InternalServerError | InvalidRequestError | ResourceNotFoundError | ThrottlingError >; /** @@ -4055,12 +3890,7 @@ interface IoTService$ { options?: HttpHandlerOptions, ): Effect.Effect< ListMetricValuesCommandOutput, - | Cause.TimeoutException - | SdkError - | InternalFailureError - | InvalidRequestError - | ResourceNotFoundError - | ThrottlingError + Cause.TimeoutError | SdkError | InternalFailureError | InvalidRequestError | ResourceNotFoundError | ThrottlingError >; /** @@ -4071,7 +3901,7 @@ interface IoTService$ { options?: HttpHandlerOptions, ): Effect.Effect< ListMitigationActionsCommandOutput, - Cause.TimeoutException | SdkError | InternalFailureError | InvalidRequestError | ThrottlingError + Cause.TimeoutError | SdkError | InternalFailureError | InvalidRequestError | ThrottlingError >; /** @@ -4082,7 +3912,7 @@ interface IoTService$ { options?: HttpHandlerOptions, ): Effect.Effect< ListOTAUpdatesCommandOutput, - | Cause.TimeoutException + | Cause.TimeoutError | SdkError | InternalFailureError | InvalidRequestError @@ -4099,7 +3929,7 @@ interface IoTService$ { options?: HttpHandlerOptions, ): Effect.Effect< ListOutgoingCertificatesCommandOutput, - | Cause.TimeoutException + | Cause.TimeoutError | SdkError | InternalFailureError | InvalidRequestError @@ -4116,7 +3946,7 @@ interface IoTService$ { options?: HttpHandlerOptions, ): Effect.Effect< ListPackageVersionsCommandOutput, - Cause.TimeoutException | SdkError | InternalServerError | ThrottlingError | ValidationError + Cause.TimeoutError | SdkError | InternalServerError | ThrottlingError | ValidationError >; /** @@ -4127,7 +3957,7 @@ interface IoTService$ { options?: HttpHandlerOptions, ): Effect.Effect< ListPackagesCommandOutput, - Cause.TimeoutException | SdkError | InternalServerError | ThrottlingError | ValidationError + Cause.TimeoutError | SdkError | InternalServerError | ThrottlingError | ValidationError >; /** @@ -4138,7 +3968,7 @@ interface IoTService$ { options?: HttpHandlerOptions, ): Effect.Effect< ListPoliciesCommandOutput, - | Cause.TimeoutException + | Cause.TimeoutError | SdkError | InternalFailureError | InvalidRequestError @@ -4155,7 +3985,7 @@ interface IoTService$ { options?: HttpHandlerOptions, ): Effect.Effect< ListPolicyPrincipalsCommandOutput, - | Cause.TimeoutException + | Cause.TimeoutError | SdkError | InternalFailureError | InvalidRequestError @@ -4173,7 +4003,7 @@ interface IoTService$ { options?: HttpHandlerOptions, ): Effect.Effect< ListPolicyVersionsCommandOutput, - | Cause.TimeoutException + | Cause.TimeoutError | SdkError | InternalFailureError | InvalidRequestError @@ -4191,7 +4021,7 @@ interface IoTService$ { options?: HttpHandlerOptions, ): Effect.Effect< ListPrincipalPoliciesCommandOutput, - | Cause.TimeoutException + | Cause.TimeoutError | SdkError | InternalFailureError | InvalidRequestError @@ -4209,7 +4039,7 @@ interface IoTService$ { options?: HttpHandlerOptions, ): Effect.Effect< ListPrincipalThingsCommandOutput, - | Cause.TimeoutException + | Cause.TimeoutError | SdkError | InternalFailureError | InvalidRequestError @@ -4227,7 +4057,7 @@ interface IoTService$ { options?: HttpHandlerOptions, ): Effect.Effect< ListPrincipalThingsV2CommandOutput, - | Cause.TimeoutException + | Cause.TimeoutError | SdkError | InternalFailureError | InvalidRequestError @@ -4245,7 +4075,7 @@ interface IoTService$ { options?: HttpHandlerOptions, ): Effect.Effect< ListProvisioningTemplateVersionsCommandOutput, - | Cause.TimeoutException + | Cause.TimeoutError | SdkError | InternalFailureError | InvalidRequestError @@ -4262,7 +4092,7 @@ interface IoTService$ { options?: HttpHandlerOptions, ): Effect.Effect< ListProvisioningTemplatesCommandOutput, - Cause.TimeoutException | SdkError | InternalFailureError | InvalidRequestError | ThrottlingError | UnauthorizedError + Cause.TimeoutError | SdkError | InternalFailureError | InvalidRequestError | ThrottlingError | UnauthorizedError >; /** @@ -4273,12 +4103,7 @@ interface IoTService$ { options?: HttpHandlerOptions, ): Effect.Effect< ListRelatedResourcesForAuditFindingCommandOutput, - | Cause.TimeoutException - | SdkError - | InternalFailureError - | InvalidRequestError - | ResourceNotFoundError - | ThrottlingError + Cause.TimeoutError | SdkError | InternalFailureError | InvalidRequestError | ResourceNotFoundError | ThrottlingError >; /** @@ -4289,7 +4114,7 @@ interface IoTService$ { options?: HttpHandlerOptions, ): Effect.Effect< ListRoleAliasesCommandOutput, - | Cause.TimeoutException + | Cause.TimeoutError | SdkError | InternalFailureError | InvalidRequestError @@ -4306,7 +4131,7 @@ interface IoTService$ { options?: HttpHandlerOptions, ): Effect.Effect< ListSbomValidationResultsCommandOutput, - Cause.TimeoutException | SdkError | InternalServerError | ResourceNotFoundError | ThrottlingError | ValidationError + Cause.TimeoutError | SdkError | InternalServerError | ResourceNotFoundError | ThrottlingError | ValidationError >; /** @@ -4317,7 +4142,7 @@ interface IoTService$ { options?: HttpHandlerOptions, ): Effect.Effect< ListScheduledAuditsCommandOutput, - Cause.TimeoutException | SdkError | InternalFailureError | InvalidRequestError | ThrottlingError + Cause.TimeoutError | SdkError | InternalFailureError | InvalidRequestError | ThrottlingError >; /** @@ -4328,12 +4153,7 @@ interface IoTService$ { options?: HttpHandlerOptions, ): Effect.Effect< ListSecurityProfilesCommandOutput, - | Cause.TimeoutException - | SdkError - | InternalFailureError - | InvalidRequestError - | ResourceNotFoundError - | ThrottlingError + Cause.TimeoutError | SdkError | InternalFailureError | InvalidRequestError | ResourceNotFoundError | ThrottlingError >; /** @@ -4344,12 +4164,7 @@ interface IoTService$ { options?: HttpHandlerOptions, ): Effect.Effect< ListSecurityProfilesForTargetCommandOutput, - | Cause.TimeoutException - | SdkError - | InternalFailureError - | InvalidRequestError - | ResourceNotFoundError - | ThrottlingError + Cause.TimeoutError | SdkError | InternalFailureError | InvalidRequestError | ResourceNotFoundError | ThrottlingError >; /** @@ -4360,7 +4175,7 @@ interface IoTService$ { options?: HttpHandlerOptions, ): Effect.Effect< ListStreamsCommandOutput, - | Cause.TimeoutException + | Cause.TimeoutError | SdkError | InternalFailureError | InvalidRequestError @@ -4377,12 +4192,7 @@ interface IoTService$ { options?: HttpHandlerOptions, ): Effect.Effect< ListTagsForResourceCommandOutput, - | Cause.TimeoutException - | SdkError - | InternalFailureError - | InvalidRequestError - | ResourceNotFoundError - | ThrottlingError + Cause.TimeoutError | SdkError | InternalFailureError | InvalidRequestError | ResourceNotFoundError | ThrottlingError >; /** @@ -4393,7 +4203,7 @@ interface IoTService$ { options?: HttpHandlerOptions, ): Effect.Effect< ListTargetsForPolicyCommandOutput, - | Cause.TimeoutException + | Cause.TimeoutError | SdkError | InternalFailureError | InvalidRequestError @@ -4412,12 +4222,7 @@ interface IoTService$ { options?: HttpHandlerOptions, ): Effect.Effect< ListTargetsForSecurityProfileCommandOutput, - | Cause.TimeoutException - | SdkError - | InternalFailureError - | InvalidRequestError - | ResourceNotFoundError - | ThrottlingError + Cause.TimeoutError | SdkError | InternalFailureError | InvalidRequestError | ResourceNotFoundError | ThrottlingError >; /** @@ -4428,12 +4233,7 @@ interface IoTService$ { options?: HttpHandlerOptions, ): Effect.Effect< ListThingGroupsCommandOutput, - | Cause.TimeoutException - | SdkError - | InternalFailureError - | InvalidRequestError - | ResourceNotFoundError - | ThrottlingError + Cause.TimeoutError | SdkError | InternalFailureError | InvalidRequestError | ResourceNotFoundError | ThrottlingError >; /** @@ -4444,12 +4244,7 @@ interface IoTService$ { options?: HttpHandlerOptions, ): Effect.Effect< ListThingGroupsForThingCommandOutput, - | Cause.TimeoutException - | SdkError - | InternalFailureError - | InvalidRequestError - | ResourceNotFoundError - | ThrottlingError + Cause.TimeoutError | SdkError | InternalFailureError | InvalidRequestError | ResourceNotFoundError | ThrottlingError >; /** @@ -4460,7 +4255,7 @@ interface IoTService$ { options?: HttpHandlerOptions, ): Effect.Effect< ListThingPrincipalsCommandOutput, - | Cause.TimeoutException + | Cause.TimeoutError | SdkError | InternalFailureError | InvalidRequestError @@ -4478,7 +4273,7 @@ interface IoTService$ { options?: HttpHandlerOptions, ): Effect.Effect< ListThingPrincipalsV2CommandOutput, - | Cause.TimeoutException + | Cause.TimeoutError | SdkError | InternalFailureError | InvalidRequestError @@ -4496,7 +4291,7 @@ interface IoTService$ { options?: HttpHandlerOptions, ): Effect.Effect< ListThingRegistrationTaskReportsCommandOutput, - Cause.TimeoutException | SdkError | InternalFailureError | InvalidRequestError | ThrottlingError | UnauthorizedError + Cause.TimeoutError | SdkError | InternalFailureError | InvalidRequestError | ThrottlingError | UnauthorizedError >; /** @@ -4507,7 +4302,7 @@ interface IoTService$ { options?: HttpHandlerOptions, ): Effect.Effect< ListThingRegistrationTasksCommandOutput, - Cause.TimeoutException | SdkError | InternalFailureError | InvalidRequestError | ThrottlingError | UnauthorizedError + Cause.TimeoutError | SdkError | InternalFailureError | InvalidRequestError | ThrottlingError | UnauthorizedError >; /** @@ -4518,7 +4313,7 @@ interface IoTService$ { options?: HttpHandlerOptions, ): Effect.Effect< ListThingTypesCommandOutput, - | Cause.TimeoutException + | Cause.TimeoutError | SdkError | InternalFailureError | InvalidRequestError @@ -4535,7 +4330,7 @@ interface IoTService$ { options?: HttpHandlerOptions, ): Effect.Effect< ListThingsCommandOutput, - | Cause.TimeoutException + | Cause.TimeoutError | SdkError | InternalFailureError | InvalidRequestError @@ -4552,12 +4347,7 @@ interface IoTService$ { options?: HttpHandlerOptions, ): Effect.Effect< ListThingsInBillingGroupCommandOutput, - | Cause.TimeoutException - | SdkError - | InternalFailureError - | InvalidRequestError - | ResourceNotFoundError - | ThrottlingError + Cause.TimeoutError | SdkError | InternalFailureError | InvalidRequestError | ResourceNotFoundError | ThrottlingError >; /** @@ -4568,12 +4358,7 @@ interface IoTService$ { options?: HttpHandlerOptions, ): Effect.Effect< ListThingsInThingGroupCommandOutput, - | Cause.TimeoutException - | SdkError - | InternalFailureError - | InvalidRequestError - | ResourceNotFoundError - | ThrottlingError + Cause.TimeoutError | SdkError | InternalFailureError | InvalidRequestError | ResourceNotFoundError | ThrottlingError >; /** @@ -4584,12 +4369,7 @@ interface IoTService$ { options?: HttpHandlerOptions, ): Effect.Effect< ListTopicRuleDestinationsCommandOutput, - | Cause.TimeoutException - | SdkError - | InternalError - | InvalidRequestError - | ServiceUnavailableError - | UnauthorizedError + Cause.TimeoutError | SdkError | InternalError | InvalidRequestError | ServiceUnavailableError | UnauthorizedError >; /** @@ -4600,12 +4380,7 @@ interface IoTService$ { options?: HttpHandlerOptions, ): Effect.Effect< ListTopicRulesCommandOutput, - | Cause.TimeoutException - | SdkError - | InternalError - | InvalidRequestError - | ServiceUnavailableError - | UnauthorizedError + Cause.TimeoutError | SdkError | InternalError | InvalidRequestError | ServiceUnavailableError | UnauthorizedError >; /** @@ -4616,12 +4391,7 @@ interface IoTService$ { options?: HttpHandlerOptions, ): Effect.Effect< ListV2LoggingLevelsCommandOutput, - | Cause.TimeoutException - | SdkError - | InternalError - | InvalidRequestError - | NotConfiguredError - | ServiceUnavailableError + Cause.TimeoutError | SdkError | InternalError | InvalidRequestError | NotConfiguredError | ServiceUnavailableError >; /** @@ -4632,7 +4402,7 @@ interface IoTService$ { options?: HttpHandlerOptions, ): Effect.Effect< ListViolationEventsCommandOutput, - Cause.TimeoutException | SdkError | InternalFailureError | InvalidRequestError | ThrottlingError + Cause.TimeoutError | SdkError | InternalFailureError | InvalidRequestError | ThrottlingError >; /** @@ -4643,7 +4413,7 @@ interface IoTService$ { options?: HttpHandlerOptions, ): Effect.Effect< PutVerificationStateOnViolationCommandOutput, - Cause.TimeoutException | SdkError | InternalFailureError | InvalidRequestError | ThrottlingError + Cause.TimeoutError | SdkError | InternalFailureError | InvalidRequestError | ThrottlingError >; /** @@ -4654,7 +4424,7 @@ interface IoTService$ { options?: HttpHandlerOptions, ): Effect.Effect< RegisterCACertificateCommandOutput, - | Cause.TimeoutException + | Cause.TimeoutError | SdkError | CertificateValidationError | InternalFailureError @@ -4676,7 +4446,7 @@ interface IoTService$ { options?: HttpHandlerOptions, ): Effect.Effect< RegisterCertificateCommandOutput, - | Cause.TimeoutException + | Cause.TimeoutError | SdkError | CertificateConflictError | CertificateStateError @@ -4697,7 +4467,7 @@ interface IoTService$ { options?: HttpHandlerOptions, ): Effect.Effect< RegisterCertificateWithoutCACommandOutput, - | Cause.TimeoutException + | Cause.TimeoutError | SdkError | CertificateStateError | CertificateValidationError @@ -4717,7 +4487,7 @@ interface IoTService$ { options?: HttpHandlerOptions, ): Effect.Effect< RegisterThingCommandOutput, - | Cause.TimeoutException + | Cause.TimeoutError | SdkError | ConflictingResourceUpdateError | InternalFailureError @@ -4736,7 +4506,7 @@ interface IoTService$ { options?: HttpHandlerOptions, ): Effect.Effect< RejectCertificateTransferCommandOutput, - | Cause.TimeoutException + | Cause.TimeoutError | SdkError | InternalFailureError | InvalidRequestError @@ -4755,12 +4525,7 @@ interface IoTService$ { options?: HttpHandlerOptions, ): Effect.Effect< RemoveThingFromBillingGroupCommandOutput, - | Cause.TimeoutException - | SdkError - | InternalFailureError - | InvalidRequestError - | ResourceNotFoundError - | ThrottlingError + Cause.TimeoutError | SdkError | InternalFailureError | InvalidRequestError | ResourceNotFoundError | ThrottlingError >; /** @@ -4771,12 +4536,7 @@ interface IoTService$ { options?: HttpHandlerOptions, ): Effect.Effect< RemoveThingFromThingGroupCommandOutput, - | Cause.TimeoutException - | SdkError - | InternalFailureError - | InvalidRequestError - | ResourceNotFoundError - | ThrottlingError + Cause.TimeoutError | SdkError | InternalFailureError | InvalidRequestError | ResourceNotFoundError | ThrottlingError >; /** @@ -4787,7 +4547,7 @@ interface IoTService$ { options?: HttpHandlerOptions, ): Effect.Effect< ReplaceTopicRuleCommandOutput, - | Cause.TimeoutException + | Cause.TimeoutError | SdkError | ConflictingResourceUpdateError | InternalError @@ -4805,7 +4565,7 @@ interface IoTService$ { options?: HttpHandlerOptions, ): Effect.Effect< SearchIndexCommandOutput, - | Cause.TimeoutException + | Cause.TimeoutError | SdkError | IndexNotReadyError | InternalFailureError @@ -4825,7 +4585,7 @@ interface IoTService$ { options?: HttpHandlerOptions, ): Effect.Effect< SetDefaultAuthorizerCommandOutput, - | Cause.TimeoutException + | Cause.TimeoutError | SdkError | InternalFailureError | InvalidRequestError @@ -4844,7 +4604,7 @@ interface IoTService$ { options?: HttpHandlerOptions, ): Effect.Effect< SetDefaultPolicyVersionCommandOutput, - | Cause.TimeoutException + | Cause.TimeoutError | SdkError | InternalFailureError | InvalidRequestError @@ -4862,7 +4622,7 @@ interface IoTService$ { options?: HttpHandlerOptions, ): Effect.Effect< SetLoggingOptionsCommandOutput, - Cause.TimeoutException | SdkError | InternalError | InvalidRequestError | ServiceUnavailableError + Cause.TimeoutError | SdkError | InternalError | InvalidRequestError | ServiceUnavailableError >; /** @@ -4873,7 +4633,7 @@ interface IoTService$ { options?: HttpHandlerOptions, ): Effect.Effect< SetV2LoggingLevelCommandOutput, - | Cause.TimeoutException + | Cause.TimeoutError | SdkError | InternalError | InvalidRequestError @@ -4890,7 +4650,7 @@ interface IoTService$ { options?: HttpHandlerOptions, ): Effect.Effect< SetV2LoggingOptionsCommandOutput, - Cause.TimeoutException | SdkError | InternalError | InvalidRequestError | ServiceUnavailableError + Cause.TimeoutError | SdkError | InternalError | InvalidRequestError | ServiceUnavailableError >; /** @@ -4901,7 +4661,7 @@ interface IoTService$ { options?: HttpHandlerOptions, ): Effect.Effect< StartAuditMitigationActionsTaskCommandOutput, - | Cause.TimeoutException + | Cause.TimeoutError | SdkError | InternalFailureError | InvalidRequestError @@ -4918,7 +4678,7 @@ interface IoTService$ { options?: HttpHandlerOptions, ): Effect.Effect< StartDetectMitigationActionsTaskCommandOutput, - | Cause.TimeoutException + | Cause.TimeoutError | SdkError | InternalFailureError | InvalidRequestError @@ -4935,12 +4695,7 @@ interface IoTService$ { options?: HttpHandlerOptions, ): Effect.Effect< StartOnDemandAuditTaskCommandOutput, - | Cause.TimeoutException - | SdkError - | InternalFailureError - | InvalidRequestError - | LimitExceededError - | ThrottlingError + Cause.TimeoutError | SdkError | InternalFailureError | InvalidRequestError | LimitExceededError | ThrottlingError >; /** @@ -4951,7 +4706,7 @@ interface IoTService$ { options?: HttpHandlerOptions, ): Effect.Effect< StartThingRegistrationTaskCommandOutput, - Cause.TimeoutException | SdkError | InternalFailureError | InvalidRequestError | ThrottlingError | UnauthorizedError + Cause.TimeoutError | SdkError | InternalFailureError | InvalidRequestError | ThrottlingError | UnauthorizedError >; /** @@ -4962,7 +4717,7 @@ interface IoTService$ { options?: HttpHandlerOptions, ): Effect.Effect< StopThingRegistrationTaskCommandOutput, - | Cause.TimeoutException + | Cause.TimeoutError | SdkError | InternalFailureError | InvalidRequestError @@ -4979,7 +4734,7 @@ interface IoTService$ { options?: HttpHandlerOptions, ): Effect.Effect< TagResourceCommandOutput, - | Cause.TimeoutException + | Cause.TimeoutError | SdkError | InternalFailureError | InvalidRequestError @@ -4996,7 +4751,7 @@ interface IoTService$ { options?: HttpHandlerOptions, ): Effect.Effect< TestAuthorizationCommandOutput, - | Cause.TimeoutException + | Cause.TimeoutError | SdkError | InternalFailureError | InvalidRequestError @@ -5015,7 +4770,7 @@ interface IoTService$ { options?: HttpHandlerOptions, ): Effect.Effect< TestInvokeAuthorizerCommandOutput, - | Cause.TimeoutException + | Cause.TimeoutError | SdkError | InternalFailureError | InvalidRequestError @@ -5034,7 +4789,7 @@ interface IoTService$ { options?: HttpHandlerOptions, ): Effect.Effect< TransferCertificateCommandOutput, - | Cause.TimeoutException + | Cause.TimeoutError | SdkError | CertificateStateError | InternalFailureError @@ -5054,12 +4809,7 @@ interface IoTService$ { options?: HttpHandlerOptions, ): Effect.Effect< UntagResourceCommandOutput, - | Cause.TimeoutException - | SdkError - | InternalFailureError - | InvalidRequestError - | ResourceNotFoundError - | ThrottlingError + Cause.TimeoutError | SdkError | InternalFailureError | InvalidRequestError | ResourceNotFoundError | ThrottlingError >; /** @@ -5070,7 +4820,7 @@ interface IoTService$ { options?: HttpHandlerOptions, ): Effect.Effect< UpdateAccountAuditConfigurationCommandOutput, - Cause.TimeoutException | SdkError | InternalFailureError | InvalidRequestError | ThrottlingError + Cause.TimeoutError | SdkError | InternalFailureError | InvalidRequestError | ThrottlingError >; /** @@ -5081,12 +4831,7 @@ interface IoTService$ { options?: HttpHandlerOptions, ): Effect.Effect< UpdateAuditSuppressionCommandOutput, - | Cause.TimeoutException - | SdkError - | InternalFailureError - | InvalidRequestError - | ResourceNotFoundError - | ThrottlingError + Cause.TimeoutError | SdkError | InternalFailureError | InvalidRequestError | ResourceNotFoundError | ThrottlingError >; /** @@ -5097,7 +4842,7 @@ interface IoTService$ { options?: HttpHandlerOptions, ): Effect.Effect< UpdateAuthorizerCommandOutput, - | Cause.TimeoutException + | Cause.TimeoutError | SdkError | InternalFailureError | InvalidRequestError @@ -5116,7 +4861,7 @@ interface IoTService$ { options?: HttpHandlerOptions, ): Effect.Effect< UpdateBillingGroupCommandOutput, - | Cause.TimeoutException + | Cause.TimeoutError | SdkError | InternalFailureError | InvalidRequestError @@ -5133,7 +4878,7 @@ interface IoTService$ { options?: HttpHandlerOptions, ): Effect.Effect< UpdateCACertificateCommandOutput, - | Cause.TimeoutException + | Cause.TimeoutError | SdkError | InternalFailureError | InvalidRequestError @@ -5151,7 +4896,7 @@ interface IoTService$ { options?: HttpHandlerOptions, ): Effect.Effect< UpdateCertificateCommandOutput, - | Cause.TimeoutException + | Cause.TimeoutError | SdkError | CertificateStateError | InternalFailureError @@ -5170,7 +4915,7 @@ interface IoTService$ { options?: HttpHandlerOptions, ): Effect.Effect< UpdateCertificateProviderCommandOutput, - | Cause.TimeoutException + | Cause.TimeoutError | SdkError | InternalFailureError | InvalidRequestError @@ -5188,7 +4933,7 @@ interface IoTService$ { options?: HttpHandlerOptions, ): Effect.Effect< UpdateCommandCommandOutput, - | Cause.TimeoutException + | Cause.TimeoutError | SdkError | ConflictError | InternalServerError @@ -5205,12 +4950,7 @@ interface IoTService$ { options?: HttpHandlerOptions, ): Effect.Effect< UpdateCustomMetricCommandOutput, - | Cause.TimeoutException - | SdkError - | InternalFailureError - | InvalidRequestError - | ResourceNotFoundError - | ThrottlingError + Cause.TimeoutError | SdkError | InternalFailureError | InvalidRequestError | ResourceNotFoundError | ThrottlingError >; /** @@ -5221,12 +4961,7 @@ interface IoTService$ { options?: HttpHandlerOptions, ): Effect.Effect< UpdateDimensionCommandOutput, - | Cause.TimeoutException - | SdkError - | InternalFailureError - | InvalidRequestError - | ResourceNotFoundError - | ThrottlingError + Cause.TimeoutError | SdkError | InternalFailureError | InvalidRequestError | ResourceNotFoundError | ThrottlingError >; /** @@ -5237,7 +4972,7 @@ interface IoTService$ { options?: HttpHandlerOptions, ): Effect.Effect< UpdateDomainConfigurationCommandOutput, - | Cause.TimeoutException + | Cause.TimeoutError | SdkError | CertificateValidationError | InternalFailureError @@ -5256,7 +4991,7 @@ interface IoTService$ { options?: HttpHandlerOptions, ): Effect.Effect< UpdateDynamicThingGroupCommandOutput, - | Cause.TimeoutException + | Cause.TimeoutError | SdkError | InternalFailureError | InvalidQueryError @@ -5274,7 +5009,7 @@ interface IoTService$ { options?: HttpHandlerOptions, ): Effect.Effect< UpdateEncryptionConfigurationCommandOutput, - | Cause.TimeoutException + | Cause.TimeoutError | SdkError | InternalFailureError | InvalidRequestError @@ -5291,7 +5026,7 @@ interface IoTService$ { options?: HttpHandlerOptions, ): Effect.Effect< UpdateEventConfigurationsCommandOutput, - Cause.TimeoutException | SdkError | InternalFailureError | InvalidRequestError | ThrottlingError + Cause.TimeoutError | SdkError | InternalFailureError | InvalidRequestError | ThrottlingError >; /** @@ -5302,7 +5037,7 @@ interface IoTService$ { options?: HttpHandlerOptions, ): Effect.Effect< UpdateFleetMetricCommandOutput, - | Cause.TimeoutException + | Cause.TimeoutError | SdkError | IndexNotReadyError | InternalFailureError @@ -5324,7 +5059,7 @@ interface IoTService$ { options?: HttpHandlerOptions, ): Effect.Effect< UpdateIndexingConfigurationCommandOutput, - | Cause.TimeoutException + | Cause.TimeoutError | SdkError | InternalFailureError | InvalidRequestError @@ -5341,7 +5076,7 @@ interface IoTService$ { options?: HttpHandlerOptions, ): Effect.Effect< UpdateJobCommandOutput, - | Cause.TimeoutException + | Cause.TimeoutError | SdkError | InvalidRequestError | ResourceNotFoundError @@ -5357,12 +5092,7 @@ interface IoTService$ { options?: HttpHandlerOptions, ): Effect.Effect< UpdateMitigationActionCommandOutput, - | Cause.TimeoutException - | SdkError - | InternalFailureError - | InvalidRequestError - | ResourceNotFoundError - | ThrottlingError + Cause.TimeoutError | SdkError | InternalFailureError | InvalidRequestError | ResourceNotFoundError | ThrottlingError >; /** @@ -5373,7 +5103,7 @@ interface IoTService$ { options?: HttpHandlerOptions, ): Effect.Effect< UpdatePackageCommandOutput, - | Cause.TimeoutException + | Cause.TimeoutError | SdkError | ConflictError | InternalServerError @@ -5390,7 +5120,7 @@ interface IoTService$ { options?: HttpHandlerOptions, ): Effect.Effect< UpdatePackageConfigurationCommandOutput, - Cause.TimeoutException | SdkError | ConflictError | InternalServerError | ThrottlingError | ValidationError + Cause.TimeoutError | SdkError | ConflictError | InternalServerError | ThrottlingError | ValidationError >; /** @@ -5401,7 +5131,7 @@ interface IoTService$ { options?: HttpHandlerOptions, ): Effect.Effect< UpdatePackageVersionCommandOutput, - | Cause.TimeoutException + | Cause.TimeoutError | SdkError | ConflictError | InternalServerError @@ -5418,7 +5148,7 @@ interface IoTService$ { options?: HttpHandlerOptions, ): Effect.Effect< UpdateProvisioningTemplateCommandOutput, - | Cause.TimeoutException + | Cause.TimeoutError | SdkError | ConflictingResourceUpdateError | InternalFailureError @@ -5435,7 +5165,7 @@ interface IoTService$ { options?: HttpHandlerOptions, ): Effect.Effect< UpdateRoleAliasCommandOutput, - | Cause.TimeoutException + | Cause.TimeoutError | SdkError | InternalFailureError | InvalidRequestError @@ -5453,12 +5183,7 @@ interface IoTService$ { options?: HttpHandlerOptions, ): Effect.Effect< UpdateScheduledAuditCommandOutput, - | Cause.TimeoutException - | SdkError - | InternalFailureError - | InvalidRequestError - | ResourceNotFoundError - | ThrottlingError + Cause.TimeoutError | SdkError | InternalFailureError | InvalidRequestError | ResourceNotFoundError | ThrottlingError >; /** @@ -5469,7 +5194,7 @@ interface IoTService$ { options?: HttpHandlerOptions, ): Effect.Effect< UpdateSecurityProfileCommandOutput, - | Cause.TimeoutException + | Cause.TimeoutError | SdkError | InternalFailureError | InvalidRequestError @@ -5486,7 +5211,7 @@ interface IoTService$ { options?: HttpHandlerOptions, ): Effect.Effect< UpdateStreamCommandOutput, - | Cause.TimeoutException + | Cause.TimeoutError | SdkError | InternalFailureError | InvalidRequestError @@ -5505,7 +5230,7 @@ interface IoTService$ { options?: HttpHandlerOptions, ): Effect.Effect< UpdateThingCommandOutput, - | Cause.TimeoutException + | Cause.TimeoutError | SdkError | InternalFailureError | InvalidRequestError @@ -5524,7 +5249,7 @@ interface IoTService$ { options?: HttpHandlerOptions, ): Effect.Effect< UpdateThingGroupCommandOutput, - | Cause.TimeoutException + | Cause.TimeoutError | SdkError | InternalFailureError | InvalidRequestError @@ -5541,12 +5266,7 @@ interface IoTService$ { options?: HttpHandlerOptions, ): Effect.Effect< UpdateThingGroupsForThingCommandOutput, - | Cause.TimeoutException - | SdkError - | InternalFailureError - | InvalidRequestError - | ResourceNotFoundError - | ThrottlingError + Cause.TimeoutError | SdkError | InternalFailureError | InvalidRequestError | ResourceNotFoundError | ThrottlingError >; /** @@ -5557,7 +5277,7 @@ interface IoTService$ { options?: HttpHandlerOptions, ): Effect.Effect< UpdateThingTypeCommandOutput, - | Cause.TimeoutException + | Cause.TimeoutError | SdkError | InternalFailureError | InvalidRequestError @@ -5575,7 +5295,7 @@ interface IoTService$ { options?: HttpHandlerOptions, ): Effect.Effect< UpdateTopicRuleDestinationCommandOutput, - | Cause.TimeoutException + | Cause.TimeoutError | SdkError | ConflictingResourceUpdateError | InternalError @@ -5592,7 +5312,7 @@ interface IoTService$ { options?: HttpHandlerOptions, ): Effect.Effect< ValidateSecurityProfileBehaviorsCommandOutput, - Cause.TimeoutException | SdkError | InternalFailureError | InvalidRequestError | ThrottlingError + Cause.TimeoutError | SdkError | InternalFailureError | InvalidRequestError | ThrottlingError >; } @@ -5617,10 +5337,10 @@ export const makeIoTService = Effect.gen(function*() { * @since 1.0.0 * @category models */ -export class IoTService extends Effect.Tag("@effect-aws/client-iot/IoTService")< +export class IoTService extends ServiceMap.Service< IoTService, IoTService$ ->() { +>()("@effect-aws/client-iot/IoTService") { static readonly defaultLayer = Layer.effect(this, makeIoTService).pipe(Layer.provide(Instance.layer)); static readonly layer = (config: IoTService.Config) => Layer.effect(this, makeIoTService).pipe( diff --git a/packages/client-iot/src/IoTServiceConfig.ts b/packages/client-iot/src/IoTServiceConfig.ts index ed902b20..a7d649a2 100644 --- a/packages/client-iot/src/IoTServiceConfig.ts +++ b/packages/client-iot/src/IoTServiceConfig.ts @@ -3,18 +3,17 @@ */ import type { IoTClientConfig } from "@aws-sdk/client-iot"; import { ServiceLogger } from "@effect-aws/commons"; -import { Effect, FiberRef, Layer } from "effect"; +import { Effect, Layer, ServiceMap } from "effect"; import { dual } from "effect/Function"; -import { globalValue } from "effect/GlobalValue"; import type { IoTService } from "./IoTService.js"; /** * @since 1.0.0 * @category iot service config */ -const currentIoTServiceConfig = globalValue( +const currentIoTServiceConfig = ServiceMap.Reference( "@effect-aws/client-iot/currentIoTServiceConfig", - () => FiberRef.unsafeMake({}), + { defaultValue: () => ({}) }, ); /** @@ -27,21 +26,21 @@ export const withIoTServiceConfig: { } = dual( 2, (effect: Effect.Effect, config: IoTService.Config): Effect.Effect => - Effect.locally(effect, currentIoTServiceConfig, config), + Effect.provideService(effect, currentIoTServiceConfig, config), ); /** * @since 1.0.0 * @category iot service config */ -export const setIoTServiceConfig = (config: IoTService.Config) => Layer.locallyScoped(currentIoTServiceConfig, config); +export const setIoTServiceConfig = (config: IoTService.Config) => Layer.succeed(currentIoTServiceConfig, config); /** * @since 1.0.0 * @category adapters */ export const toIoTClientConfig: Effect.Effect = Effect.gen(function*() { - const { logger: serviceLogger, ...config } = yield* FiberRef.get(currentIoTServiceConfig); + const { logger: serviceLogger, ...config } = yield* currentIoTServiceConfig; const logger = serviceLogger === true ? yield* ServiceLogger.toClientLogger(ServiceLogger.defaultServiceLogger) diff --git a/packages/client-iot/test/IoT.test.ts b/packages/client-iot/test/IoT.test.ts index e851e9e3..c31f6a5f 100644 --- a/packages/client-iot/test/IoT.test.ts +++ b/packages/client-iot/test/IoT.test.ts @@ -21,7 +21,7 @@ describe("IoTClientImpl", () => { const args = {} as unknown as DescribeJobCommandInput; - const program = IoT.describeJob(args); + const program = IoT.use((svc) => svc.describeJob(args)); const result = await pipe( program, @@ -41,7 +41,7 @@ describe("IoTClientImpl", () => { const args = {} as unknown as DescribeJobCommandInput; - const program = IoT.describeJob(args); + const program = IoT.use((svc) => svc.describeJob(args)); const result = await pipe( program, @@ -64,7 +64,7 @@ describe("IoTClientImpl", () => { const args = {} as unknown as DescribeJobCommandInput; - const program = IoT.describeJob(args); + const program = IoT.use((svc) => svc.describeJob(args)); const result = await pipe( program, @@ -88,7 +88,7 @@ describe("IoTClientImpl", () => { const args = {} as unknown as DescribeJobCommandInput; - const program = IoT.describeJob(args); + const program = IoT.use((svc) => svc.describeJob(args)); const result = await pipe( program, @@ -116,7 +116,7 @@ describe("IoTClientImpl", () => { const args = {} as unknown as DescribeJobCommandInput; - const program = IoT.describeJob(args); + const program = IoT.use((svc) => svc.describeJob(args)); const result = await pipe( program, @@ -126,7 +126,7 @@ describe("IoTClientImpl", () => { expect(result).toEqual( Exit.fail( - SdkError({ + new SdkError({ ...new Error("test"), name: "SdkError", message: "test", @@ -151,7 +151,7 @@ describe("IoTClientImpl", () => { const args = {} as unknown as DescribeJobCommandInput; - const program = IoT.describeJob(args).pipe( + const program = IoT.use((svc) => svc.describeJob(args)).pipe( Effect.catchTag("NotHandledException" as any, () => Effect.succeed(null)), ); @@ -161,9 +161,9 @@ describe("IoTClientImpl", () => { Effect.runPromiseExit, ); - expect(result).toEqual( + expect(result).toContainEqual( Exit.fail( - SdkError({ + new SdkError({ ...new Error("test"), name: "SdkError", message: "test", diff --git a/packages/client-ivs/.projen/deps.json b/packages/client-ivs/.projen/deps.json index c8f88c8a..b502b7d5 100644 --- a/packages/client-ivs/.projen/deps.json +++ b/packages/client-ivs/.projen/deps.json @@ -7,6 +7,7 @@ }, { "name": "effect", + "version": "4.0.0-beta.8", "type": "build" }, { @@ -16,7 +17,7 @@ }, { "name": "effect", - "version": ">=3.0.4 <4.0.0", + "version": ">=4.0.0 <5.0.0", "type": "peer" }, { diff --git a/packages/client-ivs/README.md b/packages/client-ivs/README.md index 5746b087..bc788bca 100644 --- a/packages/client-ivs/README.md +++ b/packages/client-ivs/README.md @@ -16,7 +16,7 @@ With default IvsClient instance: ```typescript import { Ivs } from "@effect-aws/client-ivs"; -const program = Ivs.listChannels(args); +const program = Ivs.use((svc) => svc.listChannels(args)); const result = pipe( program, @@ -30,7 +30,7 @@ With custom IvsClient instance: ```typescript import { Ivs } from "@effect-aws/client-ivs"; -const program = Ivs.listChannels(args); +const program = Ivs.use((svc) => svc.listChannels(args)); const result = await pipe( program, @@ -46,7 +46,7 @@ With custom IvsClient configuration: ```typescript import { Ivs } from "@effect-aws/client-ivs"; -const program = Ivs.listChannels(args); +const program = Ivs.use((svc) => svc.listChannels(args)); const result = await pipe( program, diff --git a/packages/client-ivs/package.json b/packages/client-ivs/package.json index 2df2a804..1b6b65a5 100644 --- a/packages/client-ivs/package.json +++ b/packages/client-ivs/package.json @@ -26,11 +26,11 @@ }, "devDependencies": { "@types/node": "ts5.4", - "effect": "^3.16.4", + "effect": "4.0.0-beta.8", "typescript": "^5.4.2" }, "peerDependencies": { - "effect": ">=3.0.4 <4.0.0" + "effect": ">=4.0.0 <5.0.0" }, "dependencies": { "@aws-sdk/client-ivs": "^3", diff --git a/packages/client-ivs/src/IvsClientInstance.ts b/packages/client-ivs/src/IvsClientInstance.ts index 2f39c44e..800dd414 100644 --- a/packages/client-ivs/src/IvsClientInstance.ts +++ b/packages/client-ivs/src/IvsClientInstance.ts @@ -2,16 +2,16 @@ * @since 1.0.0 */ import { IvsClient } from "@aws-sdk/client-ivs"; -import { Context, Effect, Layer } from "effect"; +import { Effect, Layer, ServiceMap } from "effect"; import * as IvsServiceConfig from "./IvsServiceConfig.js"; /** * @since 1.0.0 * @category tags */ -export class IvsClientInstance extends Context.Tag( +export class IvsClientInstance extends ServiceMap.Service()( "@effect-aws/client-ivs/IvsClientInstance", -)() {} +) {} /** * @since 1.0.0 @@ -30,4 +30,4 @@ export const make = Effect.flatMap( * @since 1.0.0 * @category layers */ -export const layer = Layer.scoped(IvsClientInstance, make); +export const layer = Layer.effect(IvsClientInstance, make); diff --git a/packages/client-ivs/src/IvsService.ts b/packages/client-ivs/src/IvsService.ts index 22073e83..9294e74f 100644 --- a/packages/client-ivs/src/IvsService.ts +++ b/packages/client-ivs/src/IvsService.ts @@ -113,7 +113,7 @@ import { import type { HttpHandlerOptions, ServiceLogger } from "@effect-aws/commons"; import { Service } from "@effect-aws/commons"; import type { Cause } from "effect"; -import { Effect, Layer } from "effect"; +import { Effect, Layer, ServiceMap } from "effect"; import type { AccessDeniedError, ChannelNotBroadcastingError, @@ -180,7 +180,7 @@ interface IvsService$ { options?: HttpHandlerOptions, ): Effect.Effect< BatchGetChannelCommandOutput, - Cause.TimeoutException | SdkError + Cause.TimeoutError | SdkError >; /** @@ -191,7 +191,7 @@ interface IvsService$ { options?: HttpHandlerOptions, ): Effect.Effect< BatchGetStreamKeyCommandOutput, - Cause.TimeoutException | SdkError + Cause.TimeoutError | SdkError >; /** @@ -202,7 +202,7 @@ interface IvsService$ { options?: HttpHandlerOptions, ): Effect.Effect< BatchStartViewerSessionRevocationCommandOutput, - Cause.TimeoutException | SdkError | AccessDeniedError | PendingVerificationError | ThrottlingError | ValidationError + Cause.TimeoutError | SdkError | AccessDeniedError | PendingVerificationError | ThrottlingError | ValidationError >; /** @@ -213,7 +213,7 @@ interface IvsService$ { options?: HttpHandlerOptions, ): Effect.Effect< CreateChannelCommandOutput, - | Cause.TimeoutException + | Cause.TimeoutError | SdkError | AccessDeniedError | PendingVerificationError @@ -230,7 +230,7 @@ interface IvsService$ { options?: HttpHandlerOptions, ): Effect.Effect< CreatePlaybackRestrictionPolicyCommandOutput, - | Cause.TimeoutException + | Cause.TimeoutError | SdkError | AccessDeniedError | PendingVerificationError @@ -247,7 +247,7 @@ interface IvsService$ { options?: HttpHandlerOptions, ): Effect.Effect< CreateRecordingConfigurationCommandOutput, - | Cause.TimeoutException + | Cause.TimeoutError | SdkError | AccessDeniedError | ConflictError @@ -265,7 +265,7 @@ interface IvsService$ { options?: HttpHandlerOptions, ): Effect.Effect< CreateStreamKeyCommandOutput, - | Cause.TimeoutException + | Cause.TimeoutError | SdkError | AccessDeniedError | PendingVerificationError @@ -282,7 +282,7 @@ interface IvsService$ { options?: HttpHandlerOptions, ): Effect.Effect< DeleteChannelCommandOutput, - | Cause.TimeoutException + | Cause.TimeoutError | SdkError | AccessDeniedError | ConflictError @@ -299,7 +299,7 @@ interface IvsService$ { options?: HttpHandlerOptions, ): Effect.Effect< DeletePlaybackKeyPairCommandOutput, - | Cause.TimeoutException + | Cause.TimeoutError | SdkError | AccessDeniedError | PendingVerificationError @@ -315,7 +315,7 @@ interface IvsService$ { options?: HttpHandlerOptions, ): Effect.Effect< DeletePlaybackRestrictionPolicyCommandOutput, - | Cause.TimeoutException + | Cause.TimeoutError | SdkError | AccessDeniedError | ConflictError @@ -332,7 +332,7 @@ interface IvsService$ { options?: HttpHandlerOptions, ): Effect.Effect< DeleteRecordingConfigurationCommandOutput, - | Cause.TimeoutException + | Cause.TimeoutError | SdkError | AccessDeniedError | ConflictError @@ -349,7 +349,7 @@ interface IvsService$ { options?: HttpHandlerOptions, ): Effect.Effect< DeleteStreamKeyCommandOutput, - | Cause.TimeoutException + | Cause.TimeoutError | SdkError | AccessDeniedError | PendingVerificationError @@ -365,7 +365,7 @@ interface IvsService$ { options?: HttpHandlerOptions, ): Effect.Effect< GetChannelCommandOutput, - Cause.TimeoutException | SdkError | AccessDeniedError | ResourceNotFoundError | ValidationError + Cause.TimeoutError | SdkError | AccessDeniedError | ResourceNotFoundError | ValidationError >; /** @@ -376,7 +376,7 @@ interface IvsService$ { options?: HttpHandlerOptions, ): Effect.Effect< GetPlaybackKeyPairCommandOutput, - Cause.TimeoutException | SdkError | AccessDeniedError | ResourceNotFoundError | ValidationError + Cause.TimeoutError | SdkError | AccessDeniedError | ResourceNotFoundError | ValidationError >; /** @@ -387,7 +387,7 @@ interface IvsService$ { options?: HttpHandlerOptions, ): Effect.Effect< GetPlaybackRestrictionPolicyCommandOutput, - | Cause.TimeoutException + | Cause.TimeoutError | SdkError | AccessDeniedError | PendingVerificationError @@ -403,12 +403,7 @@ interface IvsService$ { options?: HttpHandlerOptions, ): Effect.Effect< GetRecordingConfigurationCommandOutput, - | Cause.TimeoutException - | SdkError - | AccessDeniedError - | InternalServerError - | ResourceNotFoundError - | ValidationError + Cause.TimeoutError | SdkError | AccessDeniedError | InternalServerError | ResourceNotFoundError | ValidationError >; /** @@ -419,7 +414,7 @@ interface IvsService$ { options?: HttpHandlerOptions, ): Effect.Effect< GetStreamCommandOutput, - | Cause.TimeoutException + | Cause.TimeoutError | SdkError | AccessDeniedError | ChannelNotBroadcastingError @@ -435,7 +430,7 @@ interface IvsService$ { options?: HttpHandlerOptions, ): Effect.Effect< GetStreamKeyCommandOutput, - Cause.TimeoutException | SdkError | AccessDeniedError | ResourceNotFoundError | ValidationError + Cause.TimeoutError | SdkError | AccessDeniedError | ResourceNotFoundError | ValidationError >; /** @@ -446,7 +441,7 @@ interface IvsService$ { options?: HttpHandlerOptions, ): Effect.Effect< GetStreamSessionCommandOutput, - Cause.TimeoutException | SdkError | AccessDeniedError | ResourceNotFoundError | ValidationError + Cause.TimeoutError | SdkError | AccessDeniedError | ResourceNotFoundError | ValidationError >; /** @@ -457,7 +452,7 @@ interface IvsService$ { options?: HttpHandlerOptions, ): Effect.Effect< ImportPlaybackKeyPairCommandOutput, - | Cause.TimeoutException + | Cause.TimeoutError | SdkError | AccessDeniedError | ConflictError @@ -474,7 +469,7 @@ interface IvsService$ { options?: HttpHandlerOptions, ): Effect.Effect< ListChannelsCommandOutput, - Cause.TimeoutException | SdkError | AccessDeniedError | ConflictError | ValidationError + Cause.TimeoutError | SdkError | AccessDeniedError | ConflictError | ValidationError >; /** @@ -485,7 +480,7 @@ interface IvsService$ { options?: HttpHandlerOptions, ): Effect.Effect< ListPlaybackKeyPairsCommandOutput, - Cause.TimeoutException | SdkError | AccessDeniedError | ValidationError + Cause.TimeoutError | SdkError | AccessDeniedError | ValidationError >; /** @@ -496,7 +491,7 @@ interface IvsService$ { options?: HttpHandlerOptions, ): Effect.Effect< ListPlaybackRestrictionPoliciesCommandOutput, - Cause.TimeoutException | SdkError | AccessDeniedError | ConflictError | PendingVerificationError | ValidationError + Cause.TimeoutError | SdkError | AccessDeniedError | ConflictError | PendingVerificationError | ValidationError >; /** @@ -507,7 +502,7 @@ interface IvsService$ { options?: HttpHandlerOptions, ): Effect.Effect< ListRecordingConfigurationsCommandOutput, - Cause.TimeoutException | SdkError | AccessDeniedError | InternalServerError | ValidationError + Cause.TimeoutError | SdkError | AccessDeniedError | InternalServerError | ValidationError >; /** @@ -518,7 +513,7 @@ interface IvsService$ { options?: HttpHandlerOptions, ): Effect.Effect< ListStreamKeysCommandOutput, - Cause.TimeoutException | SdkError | AccessDeniedError | ResourceNotFoundError | ValidationError + Cause.TimeoutError | SdkError | AccessDeniedError | ResourceNotFoundError | ValidationError >; /** @@ -529,7 +524,7 @@ interface IvsService$ { options?: HttpHandlerOptions, ): Effect.Effect< ListStreamSessionsCommandOutput, - Cause.TimeoutException | SdkError | AccessDeniedError | ResourceNotFoundError | ValidationError + Cause.TimeoutError | SdkError | AccessDeniedError | ResourceNotFoundError | ValidationError >; /** @@ -540,7 +535,7 @@ interface IvsService$ { options?: HttpHandlerOptions, ): Effect.Effect< ListStreamsCommandOutput, - Cause.TimeoutException | SdkError | AccessDeniedError | ValidationError + Cause.TimeoutError | SdkError | AccessDeniedError | ValidationError >; /** @@ -551,7 +546,7 @@ interface IvsService$ { options?: HttpHandlerOptions, ): Effect.Effect< ListTagsForResourceCommandOutput, - Cause.TimeoutException | SdkError | InternalServerError | ResourceNotFoundError | ValidationError + Cause.TimeoutError | SdkError | InternalServerError | ResourceNotFoundError | ValidationError >; /** @@ -562,7 +557,7 @@ interface IvsService$ { options?: HttpHandlerOptions, ): Effect.Effect< PutMetadataCommandOutput, - | Cause.TimeoutException + | Cause.TimeoutError | SdkError | AccessDeniedError | ChannelNotBroadcastingError @@ -579,7 +574,7 @@ interface IvsService$ { options?: HttpHandlerOptions, ): Effect.Effect< StartViewerSessionRevocationCommandOutput, - | Cause.TimeoutException + | Cause.TimeoutError | SdkError | AccessDeniedError | InternalServerError @@ -597,7 +592,7 @@ interface IvsService$ { options?: HttpHandlerOptions, ): Effect.Effect< StopStreamCommandOutput, - | Cause.TimeoutException + | Cause.TimeoutError | SdkError | AccessDeniedError | ChannelNotBroadcastingError @@ -614,7 +609,7 @@ interface IvsService$ { options?: HttpHandlerOptions, ): Effect.Effect< TagResourceCommandOutput, - Cause.TimeoutException | SdkError | InternalServerError | ResourceNotFoundError | ValidationError + Cause.TimeoutError | SdkError | InternalServerError | ResourceNotFoundError | ValidationError >; /** @@ -625,7 +620,7 @@ interface IvsService$ { options?: HttpHandlerOptions, ): Effect.Effect< UntagResourceCommandOutput, - Cause.TimeoutException | SdkError | InternalServerError | ResourceNotFoundError | ValidationError + Cause.TimeoutError | SdkError | InternalServerError | ResourceNotFoundError | ValidationError >; /** @@ -636,7 +631,7 @@ interface IvsService$ { options?: HttpHandlerOptions, ): Effect.Effect< UpdateChannelCommandOutput, - | Cause.TimeoutException + | Cause.TimeoutError | SdkError | AccessDeniedError | ConflictError @@ -653,7 +648,7 @@ interface IvsService$ { options?: HttpHandlerOptions, ): Effect.Effect< UpdatePlaybackRestrictionPolicyCommandOutput, - | Cause.TimeoutException + | Cause.TimeoutError | SdkError | AccessDeniedError | ConflictError @@ -684,10 +679,10 @@ export const makeIvsService = Effect.gen(function*() { * @since 1.0.0 * @category models */ -export class IvsService extends Effect.Tag("@effect-aws/client-ivs/IvsService")< +export class IvsService extends ServiceMap.Service< IvsService, IvsService$ ->() { +>()("@effect-aws/client-ivs/IvsService") { static readonly defaultLayer = Layer.effect(this, makeIvsService).pipe(Layer.provide(Instance.layer)); static readonly layer = (config: IvsService.Config) => Layer.effect(this, makeIvsService).pipe( diff --git a/packages/client-ivs/src/IvsServiceConfig.ts b/packages/client-ivs/src/IvsServiceConfig.ts index b9649a76..573cdfb5 100644 --- a/packages/client-ivs/src/IvsServiceConfig.ts +++ b/packages/client-ivs/src/IvsServiceConfig.ts @@ -3,18 +3,17 @@ */ import type { IvsClientConfig } from "@aws-sdk/client-ivs"; import { ServiceLogger } from "@effect-aws/commons"; -import { Effect, FiberRef, Layer } from "effect"; +import { Effect, Layer, ServiceMap } from "effect"; import { dual } from "effect/Function"; -import { globalValue } from "effect/GlobalValue"; import type { IvsService } from "./IvsService.js"; /** * @since 1.0.0 * @category ivs service config */ -const currentIvsServiceConfig = globalValue( +const currentIvsServiceConfig = ServiceMap.Reference( "@effect-aws/client-ivs/currentIvsServiceConfig", - () => FiberRef.unsafeMake({}), + { defaultValue: () => ({}) }, ); /** @@ -27,21 +26,21 @@ export const withIvsServiceConfig: { } = dual( 2, (effect: Effect.Effect, config: IvsService.Config): Effect.Effect => - Effect.locally(effect, currentIvsServiceConfig, config), + Effect.provideService(effect, currentIvsServiceConfig, config), ); /** * @since 1.0.0 * @category ivs service config */ -export const setIvsServiceConfig = (config: IvsService.Config) => Layer.locallyScoped(currentIvsServiceConfig, config); +export const setIvsServiceConfig = (config: IvsService.Config) => Layer.succeed(currentIvsServiceConfig, config); /** * @since 1.0.0 * @category adapters */ export const toIvsClientConfig: Effect.Effect = Effect.gen(function*() { - const { logger: serviceLogger, ...config } = yield* FiberRef.get(currentIvsServiceConfig); + const { logger: serviceLogger, ...config } = yield* currentIvsServiceConfig; const logger = serviceLogger === true ? yield* ServiceLogger.toClientLogger(ServiceLogger.defaultServiceLogger) diff --git a/packages/client-ivs/test/Ivs.test.ts b/packages/client-ivs/test/Ivs.test.ts index f7e86d5b..bf82e76c 100644 --- a/packages/client-ivs/test/Ivs.test.ts +++ b/packages/client-ivs/test/Ivs.test.ts @@ -26,7 +26,7 @@ describe("IvsClientImpl", () => { const args = {} as unknown as ListChannelsCommandInput; - const program = Ivs.listChannels(args); + const program = Ivs.use((svc) => svc.listChannels(args)); const result = await pipe( program, @@ -46,7 +46,7 @@ describe("IvsClientImpl", () => { const args = {} as unknown as ListChannelsCommandInput; - const program = Ivs.listChannels(args); + const program = Ivs.use((svc) => svc.listChannels(args)); const result = await pipe( program, @@ -69,7 +69,7 @@ describe("IvsClientImpl", () => { const args = {} as unknown as ListChannelsCommandInput; - const program = Ivs.listChannels(args); + const program = Ivs.use((svc) => svc.listChannels(args)); const result = await pipe( program, @@ -93,7 +93,7 @@ describe("IvsClientImpl", () => { const args = {} as unknown as ListChannelsCommandInput; - const program = Ivs.listChannels(args); + const program = Ivs.use((svc) => svc.listChannels(args)); const result = await pipe( program, @@ -121,7 +121,7 @@ describe("IvsClientImpl", () => { const args = {} as unknown as ListChannelsCommandInput; - const program = Ivs.listChannels(args); + const program = Ivs.use((svc) => svc.listChannels(args)); const result = await pipe( program, @@ -131,7 +131,7 @@ describe("IvsClientImpl", () => { expect(result).toEqual( Exit.fail( - SdkError({ + new SdkError({ ...new Error("test"), name: "SdkError", message: "test", @@ -156,7 +156,7 @@ describe("IvsClientImpl", () => { const args = {} as unknown as ListChannelsCommandInput; - const program = Ivs.listChannels(args).pipe( + const program = Ivs.use((svc) => svc.listChannels(args)).pipe( Effect.catchTag("NotHandledException" as any, () => Effect.succeed(null)), ); @@ -166,9 +166,9 @@ describe("IvsClientImpl", () => { Effect.runPromiseExit, ); - expect(result).toEqual( + expect(result).toContainEqual( Exit.fail( - SdkError({ + new SdkError({ ...new Error("test"), name: "SdkError", message: "test", diff --git a/packages/client-kafka/.projen/deps.json b/packages/client-kafka/.projen/deps.json index da061637..5da4bd66 100644 --- a/packages/client-kafka/.projen/deps.json +++ b/packages/client-kafka/.projen/deps.json @@ -7,6 +7,7 @@ }, { "name": "effect", + "version": "4.0.0-beta.8", "type": "build" }, { @@ -16,7 +17,7 @@ }, { "name": "effect", - "version": ">=3.0.4 <4.0.0", + "version": ">=4.0.0 <5.0.0", "type": "peer" }, { diff --git a/packages/client-kafka/README.md b/packages/client-kafka/README.md index 76939050..4aad55ab 100644 --- a/packages/client-kafka/README.md +++ b/packages/client-kafka/README.md @@ -16,7 +16,7 @@ With default KafkaClient instance: ```typescript import { Kafka } from "@effect-aws/client-kafka"; -const program = Kafka.listClusters(args); +const program = Kafka.use((svc) => svc.listClusters(args)); const result = pipe( program, @@ -30,7 +30,7 @@ With custom KafkaClient instance: ```typescript import { Kafka } from "@effect-aws/client-kafka"; -const program = Kafka.listClusters(args); +const program = Kafka.use((svc) => svc.listClusters(args)); const result = await pipe( program, @@ -46,7 +46,7 @@ With custom KafkaClient configuration: ```typescript import { Kafka } from "@effect-aws/client-kafka"; -const program = Kafka.listClusters(args); +const program = Kafka.use((svc) => svc.listClusters(args)); const result = await pipe( program, diff --git a/packages/client-kafka/package.json b/packages/client-kafka/package.json index c97880bf..bf49bee8 100644 --- a/packages/client-kafka/package.json +++ b/packages/client-kafka/package.json @@ -26,11 +26,11 @@ }, "devDependencies": { "@types/node": "ts5.4", - "effect": "^3.16.4", + "effect": "4.0.0-beta.8", "typescript": "^5.4.2" }, "peerDependencies": { - "effect": ">=3.0.4 <4.0.0" + "effect": ">=4.0.0 <5.0.0" }, "dependencies": { "@aws-sdk/client-kafka": "^3", diff --git a/packages/client-kafka/src/Errors.ts b/packages/client-kafka/src/Errors.ts index 8ddd09cc..8e06e516 100644 --- a/packages/client-kafka/src/Errors.ts +++ b/packages/client-kafka/src/Errors.ts @@ -1,32 +1,59 @@ import type { BadRequestException, + ClusterConnectivityException, ConflictException, + ControllerMovedException, ForbiddenException, + GroupSubscribedToTopicException, InternalServerErrorException, + KafkaRequestException, + KafkaTimeoutException, + NotControllerException, NotFoundException, + ReassignmentInProgressException, ServiceUnavailableException, TooManyRequestsException, + TopicExistsException, UnauthorizedException, + UnknownTopicOrPartitionException, } from "@aws-sdk/client-kafka"; import type { TaggedException } from "@effect-aws/commons"; export const AllServiceErrors = [ "BadRequestException", + "ClusterConnectivityException", "ConflictException", + "ControllerMovedException", "ForbiddenException", + "GroupSubscribedToTopicException", "InternalServerErrorException", + "KafkaRequestException", + "KafkaTimeoutException", + "NotControllerException", "NotFoundException", + "ReassignmentInProgressException", "ServiceUnavailableException", "TooManyRequestsException", + "TopicExistsException", "UnauthorizedException", + "UnknownTopicOrPartitionException", ] as const; export type BadRequestError = TaggedException; +export type ClusterConnectivityError = TaggedException; export type ConflictError = TaggedException; +export type ControllerMovedError = TaggedException; export type ForbiddenError = TaggedException; +export type GroupSubscribedToTopicError = TaggedException; export type InternalServerError = TaggedException; +export type KafkaRequestError = TaggedException; +export type KafkaTimeoutError = TaggedException; +export type NotControllerError = TaggedException; export type NotFoundError = TaggedException; +export type ReassignmentInProgressError = TaggedException; export type ServiceUnavailableError = TaggedException; export type TooManyRequestsError = TaggedException; +export type TopicExistsError = TaggedException; export type UnauthorizedError = TaggedException; +export type UnknownTopicOrPartitionError = TaggedException; export type SdkError = TaggedException; diff --git a/packages/client-kafka/src/KafkaClientInstance.ts b/packages/client-kafka/src/KafkaClientInstance.ts index 1483d032..de428dc0 100644 --- a/packages/client-kafka/src/KafkaClientInstance.ts +++ b/packages/client-kafka/src/KafkaClientInstance.ts @@ -2,16 +2,16 @@ * @since 1.0.0 */ import { KafkaClient } from "@aws-sdk/client-kafka"; -import { Context, Effect, Layer } from "effect"; +import { Effect, Layer, ServiceMap } from "effect"; import * as KafkaServiceConfig from "./KafkaServiceConfig.js"; /** * @since 1.0.0 * @category tags */ -export class KafkaClientInstance extends Context.Tag( +export class KafkaClientInstance extends ServiceMap.Service()( "@effect-aws/client-kafka/KafkaClientInstance", -)() {} +) {} /** * @since 1.0.0 @@ -30,4 +30,4 @@ export const make = Effect.flatMap( * @since 1.0.0 * @category layers */ -export const layer = Layer.scoped(KafkaClientInstance, make); +export const layer = Layer.effect(KafkaClientInstance, make); diff --git a/packages/client-kafka/src/KafkaService.ts b/packages/client-kafka/src/KafkaService.ts index 95e0b9eb..e5f1445c 100644 --- a/packages/client-kafka/src/KafkaService.ts +++ b/packages/client-kafka/src/KafkaService.ts @@ -20,6 +20,9 @@ import { CreateReplicatorCommand, type CreateReplicatorCommandInput, type CreateReplicatorCommandOutput, + CreateTopicCommand, + type CreateTopicCommandInput, + type CreateTopicCommandOutput, CreateVpcConnectionCommand, type CreateVpcConnectionCommandInput, type CreateVpcConnectionCommandOutput, @@ -35,6 +38,9 @@ import { DeleteReplicatorCommand, type DeleteReplicatorCommandInput, type DeleteReplicatorCommandOutput, + DeleteTopicCommand, + type DeleteTopicCommandInput, + type DeleteTopicCommandOutput, DeleteVpcConnectionCommand, type DeleteVpcConnectionCommandInput, type DeleteVpcConnectionCommandOutput, @@ -172,21 +178,33 @@ import { UpdateStorageCommand, type UpdateStorageCommandInput, type UpdateStorageCommandOutput, + UpdateTopicCommand, + type UpdateTopicCommandInput, + type UpdateTopicCommandOutput, } from "@aws-sdk/client-kafka"; import type { HttpHandlerOptions, ServiceLogger } from "@effect-aws/commons"; import { Service } from "@effect-aws/commons"; import type { Cause } from "effect"; -import { Effect, Layer } from "effect"; +import { Effect, Layer, ServiceMap } from "effect"; import type { BadRequestError, + ClusterConnectivityError, ConflictError, + ControllerMovedError, ForbiddenError, + GroupSubscribedToTopicError, InternalServerError, + KafkaRequestError, + KafkaTimeoutError, + NotControllerError, NotFoundError, + ReassignmentInProgressError, SdkError, ServiceUnavailableError, TooManyRequestsError, + TopicExistsError, UnauthorizedError, + UnknownTopicOrPartitionError, } from "./Errors.js"; import { AllServiceErrors } from "./Errors.js"; import * as Instance from "./KafkaClientInstance.js"; @@ -199,11 +217,13 @@ const commands = { CreateClusterV2Command, CreateConfigurationCommand, CreateReplicatorCommand, + CreateTopicCommand, CreateVpcConnectionCommand, DeleteClusterCommand, DeleteClusterPolicyCommand, DeleteConfigurationCommand, DeleteReplicatorCommand, + DeleteTopicCommand, DeleteVpcConnectionCommand, DescribeClusterCommand, DescribeClusterOperationCommand, @@ -249,6 +269,7 @@ const commands = { UpdateReplicationInfoCommand, UpdateSecurityCommand, UpdateStorageCommand, + UpdateTopicCommand, }; interface KafkaService$ { @@ -262,7 +283,7 @@ interface KafkaService$ { options?: HttpHandlerOptions, ): Effect.Effect< BatchAssociateScramSecretCommandOutput, - | Cause.TimeoutException + | Cause.TimeoutError | SdkError | BadRequestError | ForbiddenError @@ -281,7 +302,7 @@ interface KafkaService$ { options?: HttpHandlerOptions, ): Effect.Effect< BatchDisassociateScramSecretCommandOutput, - | Cause.TimeoutException + | Cause.TimeoutError | SdkError | BadRequestError | ForbiddenError @@ -300,7 +321,7 @@ interface KafkaService$ { options?: HttpHandlerOptions, ): Effect.Effect< CreateClusterCommandOutput, - | Cause.TimeoutException + | Cause.TimeoutError | SdkError | BadRequestError | ConflictError @@ -319,7 +340,7 @@ interface KafkaService$ { options?: HttpHandlerOptions, ): Effect.Effect< CreateClusterV2CommandOutput, - | Cause.TimeoutException + | Cause.TimeoutError | SdkError | BadRequestError | ConflictError @@ -338,7 +359,7 @@ interface KafkaService$ { options?: HttpHandlerOptions, ): Effect.Effect< CreateConfigurationCommandOutput, - | Cause.TimeoutException + | Cause.TimeoutError | SdkError | BadRequestError | ConflictError @@ -357,7 +378,7 @@ interface KafkaService$ { options?: HttpHandlerOptions, ): Effect.Effect< CreateReplicatorCommandOutput, - | Cause.TimeoutException + | Cause.TimeoutError | SdkError | BadRequestError | ConflictError @@ -369,6 +390,34 @@ interface KafkaService$ { | UnauthorizedError >; + /** + * @see {@link CreateTopicCommand} + */ + createTopic( + args: CreateTopicCommandInput, + options?: HttpHandlerOptions, + ): Effect.Effect< + CreateTopicCommandOutput, + | Cause.TimeoutError + | SdkError + | BadRequestError + | ClusterConnectivityError + | ConflictError + | ControllerMovedError + | ForbiddenError + | GroupSubscribedToTopicError + | InternalServerError + | KafkaRequestError + | KafkaTimeoutError + | NotControllerError + | ReassignmentInProgressError + | ServiceUnavailableError + | TooManyRequestsError + | TopicExistsError + | UnauthorizedError + | UnknownTopicOrPartitionError + >; + /** * @see {@link CreateVpcConnectionCommand} */ @@ -377,7 +426,7 @@ interface KafkaService$ { options?: HttpHandlerOptions, ): Effect.Effect< CreateVpcConnectionCommandOutput, - | Cause.TimeoutException + | Cause.TimeoutError | SdkError | BadRequestError | ForbiddenError @@ -395,7 +444,7 @@ interface KafkaService$ { options?: HttpHandlerOptions, ): Effect.Effect< DeleteClusterCommandOutput, - Cause.TimeoutException | SdkError | BadRequestError | ForbiddenError | InternalServerError | NotFoundError + Cause.TimeoutError | SdkError | BadRequestError | ForbiddenError | InternalServerError | NotFoundError >; /** @@ -406,7 +455,7 @@ interface KafkaService$ { options?: HttpHandlerOptions, ): Effect.Effect< DeleteClusterPolicyCommandOutput, - Cause.TimeoutException | SdkError | BadRequestError | ForbiddenError | InternalServerError | NotFoundError + Cause.TimeoutError | SdkError | BadRequestError | ForbiddenError | InternalServerError | NotFoundError >; /** @@ -417,7 +466,7 @@ interface KafkaService$ { options?: HttpHandlerOptions, ): Effect.Effect< DeleteConfigurationCommandOutput, - Cause.TimeoutException | SdkError | BadRequestError | ForbiddenError | InternalServerError | NotFoundError + Cause.TimeoutError | SdkError | BadRequestError | ForbiddenError | InternalServerError | NotFoundError >; /** @@ -428,7 +477,7 @@ interface KafkaService$ { options?: HttpHandlerOptions, ): Effect.Effect< DeleteReplicatorCommandOutput, - | Cause.TimeoutException + | Cause.TimeoutError | SdkError | BadRequestError | ForbiddenError @@ -439,6 +488,30 @@ interface KafkaService$ { | UnauthorizedError >; + /** + * @see {@link DeleteTopicCommand} + */ + deleteTopic( + args: DeleteTopicCommandInput, + options?: HttpHandlerOptions, + ): Effect.Effect< + DeleteTopicCommandOutput, + | Cause.TimeoutError + | SdkError + | BadRequestError + | ClusterConnectivityError + | ControllerMovedError + | ForbiddenError + | GroupSubscribedToTopicError + | InternalServerError + | KafkaRequestError + | KafkaTimeoutError + | NotControllerError + | NotFoundError + | ReassignmentInProgressError + | UnknownTopicOrPartitionError + >; + /** * @see {@link DeleteVpcConnectionCommand} */ @@ -447,7 +520,7 @@ interface KafkaService$ { options?: HttpHandlerOptions, ): Effect.Effect< DeleteVpcConnectionCommandOutput, - Cause.TimeoutException | SdkError | BadRequestError | ForbiddenError | InternalServerError | NotFoundError + Cause.TimeoutError | SdkError | BadRequestError | ForbiddenError | InternalServerError | NotFoundError >; /** @@ -458,7 +531,7 @@ interface KafkaService$ { options?: HttpHandlerOptions, ): Effect.Effect< DescribeClusterCommandOutput, - | Cause.TimeoutException + | Cause.TimeoutError | SdkError | BadRequestError | ForbiddenError @@ -475,7 +548,7 @@ interface KafkaService$ { options?: HttpHandlerOptions, ): Effect.Effect< DescribeClusterOperationCommandOutput, - | Cause.TimeoutException + | Cause.TimeoutError | SdkError | BadRequestError | ForbiddenError @@ -492,7 +565,7 @@ interface KafkaService$ { options?: HttpHandlerOptions, ): Effect.Effect< DescribeClusterOperationV2CommandOutput, - | Cause.TimeoutException + | Cause.TimeoutError | SdkError | BadRequestError | ForbiddenError @@ -511,7 +584,7 @@ interface KafkaService$ { options?: HttpHandlerOptions, ): Effect.Effect< DescribeClusterV2CommandOutput, - | Cause.TimeoutException + | Cause.TimeoutError | SdkError | BadRequestError | ForbiddenError @@ -528,7 +601,7 @@ interface KafkaService$ { options?: HttpHandlerOptions, ): Effect.Effect< DescribeConfigurationCommandOutput, - | Cause.TimeoutException + | Cause.TimeoutError | SdkError | BadRequestError | ForbiddenError @@ -546,7 +619,7 @@ interface KafkaService$ { options?: HttpHandlerOptions, ): Effect.Effect< DescribeConfigurationRevisionCommandOutput, - | Cause.TimeoutException + | Cause.TimeoutError | SdkError | BadRequestError | ForbiddenError @@ -564,7 +637,7 @@ interface KafkaService$ { options?: HttpHandlerOptions, ): Effect.Effect< DescribeReplicatorCommandOutput, - | Cause.TimeoutException + | Cause.TimeoutError | SdkError | BadRequestError | ForbiddenError @@ -583,7 +656,7 @@ interface KafkaService$ { options?: HttpHandlerOptions, ): Effect.Effect< DescribeTopicCommandOutput, - | Cause.TimeoutException + | Cause.TimeoutError | SdkError | BadRequestError | ForbiddenError @@ -600,7 +673,7 @@ interface KafkaService$ { options?: HttpHandlerOptions, ): Effect.Effect< DescribeTopicPartitionsCommandOutput, - | Cause.TimeoutException + | Cause.TimeoutError | SdkError | BadRequestError | ForbiddenError @@ -617,7 +690,7 @@ interface KafkaService$ { options?: HttpHandlerOptions, ): Effect.Effect< DescribeVpcConnectionCommandOutput, - | Cause.TimeoutException + | Cause.TimeoutError | SdkError | BadRequestError | ForbiddenError @@ -635,7 +708,7 @@ interface KafkaService$ { options?: HttpHandlerOptions, ): Effect.Effect< GetBootstrapBrokersCommandOutput, - | Cause.TimeoutException + | Cause.TimeoutError | SdkError | BadRequestError | ConflictError @@ -652,7 +725,7 @@ interface KafkaService$ { options?: HttpHandlerOptions, ): Effect.Effect< GetClusterPolicyCommandOutput, - Cause.TimeoutException | SdkError | BadRequestError | ForbiddenError | InternalServerError | NotFoundError + Cause.TimeoutError | SdkError | BadRequestError | ForbiddenError | InternalServerError | NotFoundError >; /** @@ -663,7 +736,7 @@ interface KafkaService$ { options?: HttpHandlerOptions, ): Effect.Effect< GetCompatibleKafkaVersionsCommandOutput, - | Cause.TimeoutException + | Cause.TimeoutError | SdkError | BadRequestError | ForbiddenError @@ -682,7 +755,7 @@ interface KafkaService$ { options?: HttpHandlerOptions, ): Effect.Effect< ListClientVpcConnectionsCommandOutput, - | Cause.TimeoutException + | Cause.TimeoutError | SdkError | BadRequestError | ForbiddenError @@ -699,7 +772,7 @@ interface KafkaService$ { options?: HttpHandlerOptions, ): Effect.Effect< ListClusterOperationsCommandOutput, - Cause.TimeoutException | SdkError | BadRequestError | ForbiddenError | InternalServerError | UnauthorizedError + Cause.TimeoutError | SdkError | BadRequestError | ForbiddenError | InternalServerError | UnauthorizedError >; /** @@ -710,7 +783,7 @@ interface KafkaService$ { options?: HttpHandlerOptions, ): Effect.Effect< ListClusterOperationsV2CommandOutput, - | Cause.TimeoutException + | Cause.TimeoutError | SdkError | BadRequestError | ForbiddenError @@ -729,7 +802,7 @@ interface KafkaService$ { options?: HttpHandlerOptions, ): Effect.Effect< ListClustersCommandOutput, - Cause.TimeoutException | SdkError | BadRequestError | ForbiddenError | InternalServerError | UnauthorizedError + Cause.TimeoutError | SdkError | BadRequestError | ForbiddenError | InternalServerError | UnauthorizedError >; /** @@ -740,7 +813,7 @@ interface KafkaService$ { options?: HttpHandlerOptions, ): Effect.Effect< ListClustersV2CommandOutput, - Cause.TimeoutException | SdkError | BadRequestError | ForbiddenError | InternalServerError | UnauthorizedError + Cause.TimeoutError | SdkError | BadRequestError | ForbiddenError | InternalServerError | UnauthorizedError >; /** @@ -751,7 +824,7 @@ interface KafkaService$ { options?: HttpHandlerOptions, ): Effect.Effect< ListConfigurationRevisionsCommandOutput, - | Cause.TimeoutException + | Cause.TimeoutError | SdkError | BadRequestError | ForbiddenError @@ -769,7 +842,7 @@ interface KafkaService$ { options?: HttpHandlerOptions, ): Effect.Effect< ListConfigurationsCommandOutput, - | Cause.TimeoutException + | Cause.TimeoutError | SdkError | BadRequestError | ForbiddenError @@ -786,7 +859,7 @@ interface KafkaService$ { options?: HttpHandlerOptions, ): Effect.Effect< ListKafkaVersionsCommandOutput, - Cause.TimeoutException | SdkError | BadRequestError | ForbiddenError | InternalServerError | UnauthorizedError + Cause.TimeoutError | SdkError | BadRequestError | ForbiddenError | InternalServerError | UnauthorizedError >; /** @@ -797,7 +870,7 @@ interface KafkaService$ { options?: HttpHandlerOptions, ): Effect.Effect< ListNodesCommandOutput, - Cause.TimeoutException | SdkError | BadRequestError | ForbiddenError | InternalServerError | NotFoundError + Cause.TimeoutError | SdkError | BadRequestError | ForbiddenError | InternalServerError | NotFoundError >; /** @@ -808,7 +881,7 @@ interface KafkaService$ { options?: HttpHandlerOptions, ): Effect.Effect< ListReplicatorsCommandOutput, - | Cause.TimeoutException + | Cause.TimeoutError | SdkError | BadRequestError | ForbiddenError @@ -827,7 +900,7 @@ interface KafkaService$ { options?: HttpHandlerOptions, ): Effect.Effect< ListScramSecretsCommandOutput, - | Cause.TimeoutException + | Cause.TimeoutError | SdkError | BadRequestError | ForbiddenError @@ -846,7 +919,7 @@ interface KafkaService$ { options?: HttpHandlerOptions, ): Effect.Effect< ListTagsForResourceCommandOutput, - Cause.TimeoutException | SdkError | BadRequestError | InternalServerError | NotFoundError + Cause.TimeoutError | SdkError | BadRequestError | InternalServerError | NotFoundError >; /** @@ -857,7 +930,7 @@ interface KafkaService$ { options?: HttpHandlerOptions, ): Effect.Effect< ListTopicsCommandOutput, - | Cause.TimeoutException + | Cause.TimeoutError | SdkError | BadRequestError | ForbiddenError @@ -874,7 +947,7 @@ interface KafkaService$ { options?: HttpHandlerOptions, ): Effect.Effect< ListVpcConnectionsCommandOutput, - | Cause.TimeoutException + | Cause.TimeoutError | SdkError | BadRequestError | ForbiddenError @@ -891,7 +964,7 @@ interface KafkaService$ { options?: HttpHandlerOptions, ): Effect.Effect< PutClusterPolicyCommandOutput, - Cause.TimeoutException | SdkError | BadRequestError | ForbiddenError | InternalServerError + Cause.TimeoutError | SdkError | BadRequestError | ForbiddenError | InternalServerError >; /** @@ -902,7 +975,7 @@ interface KafkaService$ { options?: HttpHandlerOptions, ): Effect.Effect< RebootBrokerCommandOutput, - | Cause.TimeoutException + | Cause.TimeoutError | SdkError | BadRequestError | ForbiddenError @@ -921,7 +994,7 @@ interface KafkaService$ { options?: HttpHandlerOptions, ): Effect.Effect< RejectClientVpcConnectionCommandOutput, - | Cause.TimeoutException + | Cause.TimeoutError | SdkError | BadRequestError | ForbiddenError @@ -938,7 +1011,7 @@ interface KafkaService$ { options?: HttpHandlerOptions, ): Effect.Effect< TagResourceCommandOutput, - Cause.TimeoutException | SdkError | BadRequestError | InternalServerError | NotFoundError + Cause.TimeoutError | SdkError | BadRequestError | InternalServerError | NotFoundError >; /** @@ -949,7 +1022,7 @@ interface KafkaService$ { options?: HttpHandlerOptions, ): Effect.Effect< UntagResourceCommandOutput, - Cause.TimeoutException | SdkError | BadRequestError | InternalServerError | NotFoundError + Cause.TimeoutError | SdkError | BadRequestError | InternalServerError | NotFoundError >; /** @@ -960,7 +1033,7 @@ interface KafkaService$ { options?: HttpHandlerOptions, ): Effect.Effect< UpdateBrokerCountCommandOutput, - | Cause.TimeoutException + | Cause.TimeoutError | SdkError | BadRequestError | ForbiddenError @@ -977,7 +1050,7 @@ interface KafkaService$ { options?: HttpHandlerOptions, ): Effect.Effect< UpdateBrokerStorageCommandOutput, - | Cause.TimeoutException + | Cause.TimeoutError | SdkError | BadRequestError | ForbiddenError @@ -994,7 +1067,7 @@ interface KafkaService$ { options?: HttpHandlerOptions, ): Effect.Effect< UpdateBrokerTypeCommandOutput, - | Cause.TimeoutException + | Cause.TimeoutError | SdkError | BadRequestError | ForbiddenError @@ -1013,7 +1086,7 @@ interface KafkaService$ { options?: HttpHandlerOptions, ): Effect.Effect< UpdateClusterConfigurationCommandOutput, - | Cause.TimeoutException + | Cause.TimeoutError | SdkError | BadRequestError | ForbiddenError @@ -1031,7 +1104,7 @@ interface KafkaService$ { options?: HttpHandlerOptions, ): Effect.Effect< UpdateClusterKafkaVersionCommandOutput, - | Cause.TimeoutException + | Cause.TimeoutError | SdkError | BadRequestError | ForbiddenError @@ -1050,7 +1123,7 @@ interface KafkaService$ { options?: HttpHandlerOptions, ): Effect.Effect< UpdateConfigurationCommandOutput, - | Cause.TimeoutException + | Cause.TimeoutError | SdkError | BadRequestError | ForbiddenError @@ -1068,7 +1141,7 @@ interface KafkaService$ { options?: HttpHandlerOptions, ): Effect.Effect< UpdateConnectivityCommandOutput, - | Cause.TimeoutException + | Cause.TimeoutError | SdkError | BadRequestError | ForbiddenError @@ -1086,7 +1159,7 @@ interface KafkaService$ { options?: HttpHandlerOptions, ): Effect.Effect< UpdateMonitoringCommandOutput, - | Cause.TimeoutException + | Cause.TimeoutError | SdkError | BadRequestError | ForbiddenError @@ -1103,7 +1176,7 @@ interface KafkaService$ { options?: HttpHandlerOptions, ): Effect.Effect< UpdateRebalancingCommandOutput, - | Cause.TimeoutException + | Cause.TimeoutError | SdkError | BadRequestError | ForbiddenError @@ -1122,7 +1195,7 @@ interface KafkaService$ { options?: HttpHandlerOptions, ): Effect.Effect< UpdateReplicationInfoCommandOutput, - | Cause.TimeoutException + | Cause.TimeoutError | SdkError | BadRequestError | ForbiddenError @@ -1141,7 +1214,7 @@ interface KafkaService$ { options?: HttpHandlerOptions, ): Effect.Effect< UpdateSecurityCommandOutput, - | Cause.TimeoutException + | Cause.TimeoutError | SdkError | BadRequestError | ForbiddenError @@ -1160,7 +1233,7 @@ interface KafkaService$ { options?: HttpHandlerOptions, ): Effect.Effect< UpdateStorageCommandOutput, - | Cause.TimeoutException + | Cause.TimeoutError | SdkError | BadRequestError | ForbiddenError @@ -1170,6 +1243,32 @@ interface KafkaService$ { | TooManyRequestsError | UnauthorizedError >; + + /** + * @see {@link UpdateTopicCommand} + */ + updateTopic( + args: UpdateTopicCommandInput, + options?: HttpHandlerOptions, + ): Effect.Effect< + UpdateTopicCommandOutput, + | Cause.TimeoutError + | SdkError + | BadRequestError + | ClusterConnectivityError + | ControllerMovedError + | ForbiddenError + | GroupSubscribedToTopicError + | InternalServerError + | KafkaRequestError + | KafkaTimeoutError + | NotControllerError + | NotFoundError + | ReassignmentInProgressError + | ServiceUnavailableError + | UnauthorizedError + | UnknownTopicOrPartitionError + >; } /** @@ -1193,10 +1292,10 @@ export const makeKafkaService = Effect.gen(function*() { * @since 1.0.0 * @category models */ -export class KafkaService extends Effect.Tag("@effect-aws/client-kafka/KafkaService")< +export class KafkaService extends ServiceMap.Service< KafkaService, KafkaService$ ->() { +>()("@effect-aws/client-kafka/KafkaService") { static readonly defaultLayer = Layer.effect(this, makeKafkaService).pipe(Layer.provide(Instance.layer)); static readonly layer = (config: KafkaService.Config) => Layer.effect(this, makeKafkaService).pipe( diff --git a/packages/client-kafka/src/KafkaServiceConfig.ts b/packages/client-kafka/src/KafkaServiceConfig.ts index 330e8b79..820ebed3 100644 --- a/packages/client-kafka/src/KafkaServiceConfig.ts +++ b/packages/client-kafka/src/KafkaServiceConfig.ts @@ -3,18 +3,17 @@ */ import type { KafkaClientConfig } from "@aws-sdk/client-kafka"; import { ServiceLogger } from "@effect-aws/commons"; -import { Effect, FiberRef, Layer } from "effect"; +import { Effect, Layer, ServiceMap } from "effect"; import { dual } from "effect/Function"; -import { globalValue } from "effect/GlobalValue"; import type { KafkaService } from "./KafkaService.js"; /** * @since 1.0.0 * @category kafka service config */ -const currentKafkaServiceConfig = globalValue( +const currentKafkaServiceConfig = ServiceMap.Reference( "@effect-aws/client-kafka/currentKafkaServiceConfig", - () => FiberRef.unsafeMake({}), + { defaultValue: () => ({}) }, ); /** @@ -27,22 +26,21 @@ export const withKafkaServiceConfig: { } = dual( 2, (effect: Effect.Effect, config: KafkaService.Config): Effect.Effect => - Effect.locally(effect, currentKafkaServiceConfig, config), + Effect.provideService(effect, currentKafkaServiceConfig, config), ); /** * @since 1.0.0 * @category kafka service config */ -export const setKafkaServiceConfig = (config: KafkaService.Config) => - Layer.locallyScoped(currentKafkaServiceConfig, config); +export const setKafkaServiceConfig = (config: KafkaService.Config) => Layer.succeed(currentKafkaServiceConfig, config); /** * @since 1.0.0 * @category adapters */ export const toKafkaClientConfig: Effect.Effect = Effect.gen(function*() { - const { logger: serviceLogger, ...config } = yield* FiberRef.get(currentKafkaServiceConfig); + const { logger: serviceLogger, ...config } = yield* currentKafkaServiceConfig; const logger = serviceLogger === true ? yield* ServiceLogger.toClientLogger(ServiceLogger.defaultServiceLogger) diff --git a/packages/client-kafka/test/Kafka.test.ts b/packages/client-kafka/test/Kafka.test.ts index 282c5ed6..ba0c3ef3 100644 --- a/packages/client-kafka/test/Kafka.test.ts +++ b/packages/client-kafka/test/Kafka.test.ts @@ -26,7 +26,7 @@ describe("KafkaClientImpl", () => { const args = {} as unknown as ListClustersCommandInput; - const program = Kafka.listClusters(args); + const program = Kafka.use((svc) => svc.listClusters(args)); const result = await pipe( program, @@ -46,7 +46,7 @@ describe("KafkaClientImpl", () => { const args = {} as unknown as ListClustersCommandInput; - const program = Kafka.listClusters(args); + const program = Kafka.use((svc) => svc.listClusters(args)); const result = await pipe( program, @@ -69,7 +69,7 @@ describe("KafkaClientImpl", () => { const args = {} as unknown as ListClustersCommandInput; - const program = Kafka.listClusters(args); + const program = Kafka.use((svc) => svc.listClusters(args)); const result = await pipe( program, @@ -93,7 +93,7 @@ describe("KafkaClientImpl", () => { const args = {} as unknown as ListClustersCommandInput; - const program = Kafka.listClusters(args); + const program = Kafka.use((svc) => svc.listClusters(args)); const result = await pipe( program, @@ -121,7 +121,7 @@ describe("KafkaClientImpl", () => { const args = {} as unknown as ListClustersCommandInput; - const program = Kafka.listClusters(args); + const program = Kafka.use((svc) => svc.listClusters(args)); const result = await pipe( program, @@ -131,7 +131,7 @@ describe("KafkaClientImpl", () => { expect(result).toEqual( Exit.fail( - SdkError({ + new SdkError({ ...new Error("test"), name: "SdkError", message: "test", @@ -156,7 +156,7 @@ describe("KafkaClientImpl", () => { const args = {} as unknown as ListClustersCommandInput; - const program = Kafka.listClusters(args).pipe( + const program = Kafka.use((svc) => svc.listClusters(args)).pipe( Effect.catchTag("NotHandledException" as any, () => Effect.succeed(null)), ); @@ -166,9 +166,9 @@ describe("KafkaClientImpl", () => { Effect.runPromiseExit, ); - expect(result).toEqual( + expect(result).toContainEqual( Exit.fail( - SdkError({ + new SdkError({ ...new Error("test"), name: "SdkError", message: "test", diff --git a/packages/client-kafkaconnect/.projen/deps.json b/packages/client-kafkaconnect/.projen/deps.json index b4e551be..ae26b098 100644 --- a/packages/client-kafkaconnect/.projen/deps.json +++ b/packages/client-kafkaconnect/.projen/deps.json @@ -7,6 +7,7 @@ }, { "name": "effect", + "version": "4.0.0-beta.8", "type": "build" }, { @@ -16,7 +17,7 @@ }, { "name": "effect", - "version": ">=3.0.4 <4.0.0", + "version": ">=4.0.0 <5.0.0", "type": "peer" }, { diff --git a/packages/client-kafkaconnect/README.md b/packages/client-kafkaconnect/README.md index a5582638..79295168 100644 --- a/packages/client-kafkaconnect/README.md +++ b/packages/client-kafkaconnect/README.md @@ -16,7 +16,7 @@ With default KafkaConnectClient instance: ```typescript import { KafkaConnect } from "@effect-aws/client-kafkaconnect"; -const program = KafkaConnect.listConnectors(args); +const program = KafkaConnect.use((svc) => svc.listConnectors(args)); const result = pipe( program, @@ -30,7 +30,7 @@ With custom KafkaConnectClient instance: ```typescript import { KafkaConnect } from "@effect-aws/client-kafkaconnect"; -const program = KafkaConnect.listConnectors(args); +const program = KafkaConnect.use((svc) => svc.listConnectors(args)); const result = await pipe( program, @@ -46,7 +46,7 @@ With custom KafkaConnectClient configuration: ```typescript import { KafkaConnect } from "@effect-aws/client-kafkaconnect"; -const program = KafkaConnect.listConnectors(args); +const program = KafkaConnect.use((svc) => svc.listConnectors(args)); const result = await pipe( program, diff --git a/packages/client-kafkaconnect/package.json b/packages/client-kafkaconnect/package.json index 319d5f72..7a865d1a 100644 --- a/packages/client-kafkaconnect/package.json +++ b/packages/client-kafkaconnect/package.json @@ -26,11 +26,11 @@ }, "devDependencies": { "@types/node": "ts5.4", - "effect": "^3.16.4", + "effect": "4.0.0-beta.8", "typescript": "^5.4.2" }, "peerDependencies": { - "effect": ">=3.0.4 <4.0.0" + "effect": ">=4.0.0 <5.0.0" }, "dependencies": { "@aws-sdk/client-kafkaconnect": "^3", diff --git a/packages/client-kafkaconnect/src/KafkaConnectClientInstance.ts b/packages/client-kafkaconnect/src/KafkaConnectClientInstance.ts index c9c9a731..c1e29a43 100644 --- a/packages/client-kafkaconnect/src/KafkaConnectClientInstance.ts +++ b/packages/client-kafkaconnect/src/KafkaConnectClientInstance.ts @@ -2,16 +2,16 @@ * @since 1.0.0 */ import { KafkaConnectClient } from "@aws-sdk/client-kafkaconnect"; -import { Context, Effect, Layer } from "effect"; +import { Effect, Layer, ServiceMap } from "effect"; import * as KafkaConnectServiceConfig from "./KafkaConnectServiceConfig.js"; /** * @since 1.0.0 * @category tags */ -export class KafkaConnectClientInstance extends Context.Tag( +export class KafkaConnectClientInstance extends ServiceMap.Service()( "@effect-aws/client-kafkaconnect/KafkaConnectClientInstance", -)() {} +) {} /** * @since 1.0.0 @@ -30,4 +30,4 @@ export const make = Effect.flatMap( * @since 1.0.0 * @category layers */ -export const layer = Layer.scoped(KafkaConnectClientInstance, make); +export const layer = Layer.effect(KafkaConnectClientInstance, make); diff --git a/packages/client-kafkaconnect/src/KafkaConnectService.ts b/packages/client-kafkaconnect/src/KafkaConnectService.ts index ba69c556..ccfbc925 100644 --- a/packages/client-kafkaconnect/src/KafkaConnectService.ts +++ b/packages/client-kafkaconnect/src/KafkaConnectService.ts @@ -62,7 +62,7 @@ import { import type { HttpHandlerOptions, ServiceLogger } from "@effect-aws/commons"; import { Service } from "@effect-aws/commons"; import type { Cause } from "effect"; -import { Effect, Layer } from "effect"; +import { Effect, Layer, ServiceMap } from "effect"; import type { BadRequestError, ConflictError, @@ -110,7 +110,7 @@ interface KafkaConnectService$ { options?: HttpHandlerOptions, ): Effect.Effect< CreateConnectorCommandOutput, - | Cause.TimeoutException + | Cause.TimeoutError | SdkError | BadRequestError | ConflictError @@ -130,7 +130,7 @@ interface KafkaConnectService$ { options?: HttpHandlerOptions, ): Effect.Effect< CreateCustomPluginCommandOutput, - | Cause.TimeoutException + | Cause.TimeoutError | SdkError | BadRequestError | ConflictError @@ -150,7 +150,7 @@ interface KafkaConnectService$ { options?: HttpHandlerOptions, ): Effect.Effect< CreateWorkerConfigurationCommandOutput, - | Cause.TimeoutException + | Cause.TimeoutError | SdkError | BadRequestError | ConflictError @@ -170,7 +170,7 @@ interface KafkaConnectService$ { options?: HttpHandlerOptions, ): Effect.Effect< DeleteConnectorCommandOutput, - | Cause.TimeoutException + | Cause.TimeoutError | SdkError | BadRequestError | ForbiddenError @@ -189,7 +189,7 @@ interface KafkaConnectService$ { options?: HttpHandlerOptions, ): Effect.Effect< DeleteCustomPluginCommandOutput, - | Cause.TimeoutException + | Cause.TimeoutError | SdkError | BadRequestError | ForbiddenError @@ -208,7 +208,7 @@ interface KafkaConnectService$ { options?: HttpHandlerOptions, ): Effect.Effect< DeleteWorkerConfigurationCommandOutput, - | Cause.TimeoutException + | Cause.TimeoutError | SdkError | BadRequestError | ForbiddenError @@ -227,7 +227,7 @@ interface KafkaConnectService$ { options?: HttpHandlerOptions, ): Effect.Effect< DescribeConnectorCommandOutput, - | Cause.TimeoutException + | Cause.TimeoutError | SdkError | BadRequestError | ForbiddenError @@ -246,7 +246,7 @@ interface KafkaConnectService$ { options?: HttpHandlerOptions, ): Effect.Effect< DescribeConnectorOperationCommandOutput, - | Cause.TimeoutException + | Cause.TimeoutError | SdkError | BadRequestError | ForbiddenError @@ -265,7 +265,7 @@ interface KafkaConnectService$ { options?: HttpHandlerOptions, ): Effect.Effect< DescribeCustomPluginCommandOutput, - | Cause.TimeoutException + | Cause.TimeoutError | SdkError | BadRequestError | ForbiddenError @@ -284,7 +284,7 @@ interface KafkaConnectService$ { options?: HttpHandlerOptions, ): Effect.Effect< DescribeWorkerConfigurationCommandOutput, - | Cause.TimeoutException + | Cause.TimeoutError | SdkError | BadRequestError | ForbiddenError @@ -303,7 +303,7 @@ interface KafkaConnectService$ { options?: HttpHandlerOptions, ): Effect.Effect< ListConnectorOperationsCommandOutput, - | Cause.TimeoutException + | Cause.TimeoutError | SdkError | BadRequestError | ForbiddenError @@ -322,7 +322,7 @@ interface KafkaConnectService$ { options?: HttpHandlerOptions, ): Effect.Effect< ListConnectorsCommandOutput, - | Cause.TimeoutException + | Cause.TimeoutError | SdkError | BadRequestError | ForbiddenError @@ -341,7 +341,7 @@ interface KafkaConnectService$ { options?: HttpHandlerOptions, ): Effect.Effect< ListCustomPluginsCommandOutput, - | Cause.TimeoutException + | Cause.TimeoutError | SdkError | BadRequestError | ForbiddenError @@ -360,7 +360,7 @@ interface KafkaConnectService$ { options?: HttpHandlerOptions, ): Effect.Effect< ListTagsForResourceCommandOutput, - | Cause.TimeoutException + | Cause.TimeoutError | SdkError | BadRequestError | ForbiddenError @@ -379,7 +379,7 @@ interface KafkaConnectService$ { options?: HttpHandlerOptions, ): Effect.Effect< ListWorkerConfigurationsCommandOutput, - | Cause.TimeoutException + | Cause.TimeoutError | SdkError | BadRequestError | ForbiddenError @@ -398,7 +398,7 @@ interface KafkaConnectService$ { options?: HttpHandlerOptions, ): Effect.Effect< TagResourceCommandOutput, - | Cause.TimeoutException + | Cause.TimeoutError | SdkError | BadRequestError | ConflictError @@ -418,7 +418,7 @@ interface KafkaConnectService$ { options?: HttpHandlerOptions, ): Effect.Effect< UntagResourceCommandOutput, - | Cause.TimeoutException + | Cause.TimeoutError | SdkError | BadRequestError | ForbiddenError @@ -437,7 +437,7 @@ interface KafkaConnectService$ { options?: HttpHandlerOptions, ): Effect.Effect< UpdateConnectorCommandOutput, - | Cause.TimeoutException + | Cause.TimeoutError | SdkError | BadRequestError | ForbiddenError @@ -470,10 +470,10 @@ export const makeKafkaConnectService = Effect.gen(function*() { * @since 1.0.0 * @category models */ -export class KafkaConnectService extends Effect.Tag("@effect-aws/client-kafkaconnect/KafkaConnectService")< +export class KafkaConnectService extends ServiceMap.Service< KafkaConnectService, KafkaConnectService$ ->() { +>()("@effect-aws/client-kafkaconnect/KafkaConnectService") { static readonly defaultLayer = Layer.effect(this, makeKafkaConnectService).pipe(Layer.provide(Instance.layer)); static readonly layer = (config: KafkaConnectService.Config) => Layer.effect(this, makeKafkaConnectService).pipe( diff --git a/packages/client-kafkaconnect/src/KafkaConnectServiceConfig.ts b/packages/client-kafkaconnect/src/KafkaConnectServiceConfig.ts index 519f6054..8d8745c6 100644 --- a/packages/client-kafkaconnect/src/KafkaConnectServiceConfig.ts +++ b/packages/client-kafkaconnect/src/KafkaConnectServiceConfig.ts @@ -3,18 +3,17 @@ */ import type { KafkaConnectClientConfig } from "@aws-sdk/client-kafkaconnect"; import { ServiceLogger } from "@effect-aws/commons"; -import { Effect, FiberRef, Layer } from "effect"; +import { Effect, Layer, ServiceMap } from "effect"; import { dual } from "effect/Function"; -import { globalValue } from "effect/GlobalValue"; import type { KafkaConnectService } from "./KafkaConnectService.js"; /** * @since 1.0.0 * @category kafkaconnect service config */ -const currentKafkaConnectServiceConfig = globalValue( +const currentKafkaConnectServiceConfig = ServiceMap.Reference( "@effect-aws/client-kafkaconnect/currentKafkaConnectServiceConfig", - () => FiberRef.unsafeMake({}), + { defaultValue: () => ({}) }, ); /** @@ -27,7 +26,7 @@ export const withKafkaConnectServiceConfig: { } = dual( 2, (effect: Effect.Effect, config: KafkaConnectService.Config): Effect.Effect => - Effect.locally(effect, currentKafkaConnectServiceConfig, config), + Effect.provideService(effect, currentKafkaConnectServiceConfig, config), ); /** @@ -35,14 +34,14 @@ export const withKafkaConnectServiceConfig: { * @category kafkaconnect service config */ export const setKafkaConnectServiceConfig = (config: KafkaConnectService.Config) => - Layer.locallyScoped(currentKafkaConnectServiceConfig, config); + Layer.succeed(currentKafkaConnectServiceConfig, config); /** * @since 1.0.0 * @category adapters */ export const toKafkaConnectClientConfig: Effect.Effect = Effect.gen(function*() { - const { logger: serviceLogger, ...config } = yield* FiberRef.get(currentKafkaConnectServiceConfig); + const { logger: serviceLogger, ...config } = yield* currentKafkaConnectServiceConfig; const logger = serviceLogger === true ? yield* ServiceLogger.toClientLogger(ServiceLogger.defaultServiceLogger) diff --git a/packages/client-kafkaconnect/test/KafkaConnect.test.ts b/packages/client-kafkaconnect/test/KafkaConnect.test.ts index e7fc798c..6fbc8cd3 100644 --- a/packages/client-kafkaconnect/test/KafkaConnect.test.ts +++ b/packages/client-kafkaconnect/test/KafkaConnect.test.ts @@ -26,7 +26,7 @@ describe("KafkaConnectClientImpl", () => { const args = {} as unknown as ListConnectorsCommandInput; - const program = KafkaConnect.listConnectors(args); + const program = KafkaConnect.use((svc) => svc.listConnectors(args)); const result = await pipe( program, @@ -46,7 +46,7 @@ describe("KafkaConnectClientImpl", () => { const args = {} as unknown as ListConnectorsCommandInput; - const program = KafkaConnect.listConnectors(args); + const program = KafkaConnect.use((svc) => svc.listConnectors(args)); const result = await pipe( program, @@ -69,7 +69,7 @@ describe("KafkaConnectClientImpl", () => { const args = {} as unknown as ListConnectorsCommandInput; - const program = KafkaConnect.listConnectors(args); + const program = KafkaConnect.use((svc) => svc.listConnectors(args)); const result = await pipe( program, @@ -93,7 +93,7 @@ describe("KafkaConnectClientImpl", () => { const args = {} as unknown as ListConnectorsCommandInput; - const program = KafkaConnect.listConnectors(args); + const program = KafkaConnect.use((svc) => svc.listConnectors(args)); const result = await pipe( program, @@ -121,7 +121,7 @@ describe("KafkaConnectClientImpl", () => { const args = {} as unknown as ListConnectorsCommandInput; - const program = KafkaConnect.listConnectors(args); + const program = KafkaConnect.use((svc) => svc.listConnectors(args)); const result = await pipe( program, @@ -131,7 +131,7 @@ describe("KafkaConnectClientImpl", () => { expect(result).toEqual( Exit.fail( - SdkError({ + new SdkError({ ...new Error("test"), name: "SdkError", message: "test", @@ -156,7 +156,7 @@ describe("KafkaConnectClientImpl", () => { const args = {} as unknown as ListConnectorsCommandInput; - const program = KafkaConnect.listConnectors(args).pipe( + const program = KafkaConnect.use((svc) => svc.listConnectors(args)).pipe( Effect.catchTag("NotHandledException" as any, () => Effect.succeed(null)), ); @@ -166,9 +166,9 @@ describe("KafkaConnectClientImpl", () => { Effect.runPromiseExit, ); - expect(result).toEqual( + expect(result).toContainEqual( Exit.fail( - SdkError({ + new SdkError({ ...new Error("test"), name: "SdkError", message: "test", diff --git a/packages/client-kinesis/.projen/deps.json b/packages/client-kinesis/.projen/deps.json index a87a2e85..9b648921 100644 --- a/packages/client-kinesis/.projen/deps.json +++ b/packages/client-kinesis/.projen/deps.json @@ -7,6 +7,7 @@ }, { "name": "effect", + "version": "4.0.0-beta.8", "type": "build" }, { @@ -16,7 +17,7 @@ }, { "name": "effect", - "version": ">=3.0.4 <4.0.0", + "version": ">=4.0.0 <5.0.0", "type": "peer" }, { diff --git a/packages/client-kinesis/README.md b/packages/client-kinesis/README.md index 6a575c7e..3f3a1f77 100644 --- a/packages/client-kinesis/README.md +++ b/packages/client-kinesis/README.md @@ -16,7 +16,7 @@ With default KinesisClient instance: ```typescript import { Kinesis } from "@effect-aws/client-kinesis"; -const program = Kinesis.putRecord(args); +const program = Kinesis.use((svc) => svc.putRecord(args)); const result = pipe( program, @@ -30,7 +30,7 @@ With custom KinesisClient instance: ```typescript import { Kinesis } from "@effect-aws/client-kinesis"; -const program = Kinesis.putRecord(args); +const program = Kinesis.use((svc) => svc.putRecord(args)); const result = await pipe( program, @@ -46,7 +46,7 @@ With custom KinesisClient configuration: ```typescript import { Kinesis } from "@effect-aws/client-kinesis"; -const program = Kinesis.putRecord(args); +const program = Kinesis.use((svc) => svc.putRecord(args)); const result = await pipe( program, diff --git a/packages/client-kinesis/package.json b/packages/client-kinesis/package.json index 3bc84c46..e095e246 100644 --- a/packages/client-kinesis/package.json +++ b/packages/client-kinesis/package.json @@ -26,11 +26,11 @@ }, "devDependencies": { "@types/node": "ts5.4", - "effect": "^3.16.4", + "effect": "4.0.0-beta.8", "typescript": "^5.4.2" }, "peerDependencies": { - "effect": ">=3.0.4 <4.0.0" + "effect": ">=4.0.0 <5.0.0" }, "dependencies": { "@aws-sdk/client-kinesis": "^3", diff --git a/packages/client-kinesis/src/KinesisClientInstance.ts b/packages/client-kinesis/src/KinesisClientInstance.ts index c63afcab..e957d7ad 100644 --- a/packages/client-kinesis/src/KinesisClientInstance.ts +++ b/packages/client-kinesis/src/KinesisClientInstance.ts @@ -2,16 +2,16 @@ * @since 1.0.0 */ import { KinesisClient } from "@aws-sdk/client-kinesis"; -import { Context, Effect, Layer } from "effect"; +import { Effect, Layer, ServiceMap } from "effect"; import * as KinesisServiceConfig from "./KinesisServiceConfig.js"; /** * @since 1.0.0 * @category tags */ -export class KinesisClientInstance extends Context.Tag( +export class KinesisClientInstance extends ServiceMap.Service()( "@effect-aws/client-kinesis/KinesisClientInstance", -)() {} +) {} /** * @since 1.0.0 @@ -30,4 +30,4 @@ export const make = Effect.flatMap( * @since 1.0.0 * @category layers */ -export const layer = Layer.scoped(KinesisClientInstance, make); +export const layer = Layer.effect(KinesisClientInstance, make); diff --git a/packages/client-kinesis/src/KinesisService.ts b/packages/client-kinesis/src/KinesisService.ts index afd2b4d4..0d946f4d 100644 --- a/packages/client-kinesis/src/KinesisService.ts +++ b/packages/client-kinesis/src/KinesisService.ts @@ -125,7 +125,7 @@ import { import type { HttpHandlerOptions, ServiceLogger } from "@effect-aws/commons"; import { Service } from "@effect-aws/commons"; import type { Cause } from "effect"; -import { Effect, Layer } from "effect"; +import { Effect, Layer, ServiceMap } from "effect"; import type { AccessDeniedError, ExpiredIteratorError, @@ -202,7 +202,7 @@ interface KinesisService$ { options?: HttpHandlerOptions, ): Effect.Effect< AddTagsToStreamCommandOutput, - | Cause.TimeoutException + | Cause.TimeoutError | SdkError | AccessDeniedError | InvalidArgumentError @@ -219,7 +219,7 @@ interface KinesisService$ { options?: HttpHandlerOptions, ): Effect.Effect< CreateStreamCommandOutput, - Cause.TimeoutException | SdkError | InvalidArgumentError | LimitExceededError | ResourceInUseError | ValidationError + Cause.TimeoutError | SdkError | InvalidArgumentError | LimitExceededError | ResourceInUseError | ValidationError >; /** @@ -230,7 +230,7 @@ interface KinesisService$ { options?: HttpHandlerOptions, ): Effect.Effect< DecreaseStreamRetentionPeriodCommandOutput, - | Cause.TimeoutException + | Cause.TimeoutError | SdkError | AccessDeniedError | InvalidArgumentError @@ -247,7 +247,7 @@ interface KinesisService$ { options?: HttpHandlerOptions, ): Effect.Effect< DeleteResourcePolicyCommandOutput, - | Cause.TimeoutException + | Cause.TimeoutError | SdkError | AccessDeniedError | InvalidArgumentError @@ -264,7 +264,7 @@ interface KinesisService$ { options?: HttpHandlerOptions, ): Effect.Effect< DeleteStreamCommandOutput, - | Cause.TimeoutException + | Cause.TimeoutError | SdkError | AccessDeniedError | InvalidArgumentError @@ -281,7 +281,7 @@ interface KinesisService$ { options?: HttpHandlerOptions, ): Effect.Effect< DeregisterStreamConsumerCommandOutput, - Cause.TimeoutException | SdkError | InvalidArgumentError | LimitExceededError | ResourceNotFoundError + Cause.TimeoutError | SdkError | InvalidArgumentError | LimitExceededError | ResourceNotFoundError >; /** @@ -292,7 +292,7 @@ interface KinesisService$ { options?: HttpHandlerOptions, ): Effect.Effect< DescribeAccountSettingsCommandOutput, - Cause.TimeoutException | SdkError | LimitExceededError + Cause.TimeoutError | SdkError | LimitExceededError >; /** @@ -303,7 +303,7 @@ interface KinesisService$ { options?: HttpHandlerOptions, ): Effect.Effect< DescribeLimitsCommandOutput, - Cause.TimeoutException | SdkError | LimitExceededError + Cause.TimeoutError | SdkError | LimitExceededError >; /** @@ -314,7 +314,7 @@ interface KinesisService$ { options?: HttpHandlerOptions, ): Effect.Effect< DescribeStreamCommandOutput, - | Cause.TimeoutException + | Cause.TimeoutError | SdkError | AccessDeniedError | InvalidArgumentError @@ -330,7 +330,7 @@ interface KinesisService$ { options?: HttpHandlerOptions, ): Effect.Effect< DescribeStreamConsumerCommandOutput, - Cause.TimeoutException | SdkError | InvalidArgumentError | LimitExceededError | ResourceNotFoundError + Cause.TimeoutError | SdkError | InvalidArgumentError | LimitExceededError | ResourceNotFoundError >; /** @@ -341,7 +341,7 @@ interface KinesisService$ { options?: HttpHandlerOptions, ): Effect.Effect< DescribeStreamSummaryCommandOutput, - | Cause.TimeoutException + | Cause.TimeoutError | SdkError | AccessDeniedError | InvalidArgumentError @@ -357,7 +357,7 @@ interface KinesisService$ { options?: HttpHandlerOptions, ): Effect.Effect< DisableEnhancedMonitoringCommandOutput, - | Cause.TimeoutException + | Cause.TimeoutError | SdkError | AccessDeniedError | InvalidArgumentError @@ -374,7 +374,7 @@ interface KinesisService$ { options?: HttpHandlerOptions, ): Effect.Effect< EnableEnhancedMonitoringCommandOutput, - | Cause.TimeoutException + | Cause.TimeoutError | SdkError | AccessDeniedError | InvalidArgumentError @@ -391,7 +391,7 @@ interface KinesisService$ { options?: HttpHandlerOptions, ): Effect.Effect< GetRecordsCommandOutput, - | Cause.TimeoutException + | Cause.TimeoutError | SdkError | AccessDeniedError | ExpiredIteratorError @@ -415,7 +415,7 @@ interface KinesisService$ { options?: HttpHandlerOptions, ): Effect.Effect< GetResourcePolicyCommandOutput, - | Cause.TimeoutException + | Cause.TimeoutError | SdkError | AccessDeniedError | InvalidArgumentError @@ -432,7 +432,7 @@ interface KinesisService$ { options?: HttpHandlerOptions, ): Effect.Effect< GetShardIteratorCommandOutput, - | Cause.TimeoutException + | Cause.TimeoutError | SdkError | AccessDeniedError | InternalFailureError @@ -449,7 +449,7 @@ interface KinesisService$ { options?: HttpHandlerOptions, ): Effect.Effect< IncreaseStreamRetentionPeriodCommandOutput, - | Cause.TimeoutException + | Cause.TimeoutError | SdkError | AccessDeniedError | InvalidArgumentError @@ -466,7 +466,7 @@ interface KinesisService$ { options?: HttpHandlerOptions, ): Effect.Effect< ListShardsCommandOutput, - | Cause.TimeoutException + | Cause.TimeoutError | SdkError | AccessDeniedError | ExpiredNextTokenError @@ -484,7 +484,7 @@ interface KinesisService$ { options?: HttpHandlerOptions, ): Effect.Effect< ListStreamConsumersCommandOutput, - | Cause.TimeoutException + | Cause.TimeoutError | SdkError | ExpiredNextTokenError | InvalidArgumentError @@ -501,7 +501,7 @@ interface KinesisService$ { options?: HttpHandlerOptions, ): Effect.Effect< ListStreamsCommandOutput, - Cause.TimeoutException | SdkError | ExpiredNextTokenError | InvalidArgumentError | LimitExceededError + Cause.TimeoutError | SdkError | ExpiredNextTokenError | InvalidArgumentError | LimitExceededError >; /** @@ -512,7 +512,7 @@ interface KinesisService$ { options?: HttpHandlerOptions, ): Effect.Effect< ListTagsForResourceCommandOutput, - | Cause.TimeoutException + | Cause.TimeoutError | SdkError | AccessDeniedError | InvalidArgumentError @@ -529,7 +529,7 @@ interface KinesisService$ { options?: HttpHandlerOptions, ): Effect.Effect< ListTagsForStreamCommandOutput, - | Cause.TimeoutException + | Cause.TimeoutError | SdkError | AccessDeniedError | InvalidArgumentError @@ -545,7 +545,7 @@ interface KinesisService$ { options?: HttpHandlerOptions, ): Effect.Effect< MergeShardsCommandOutput, - | Cause.TimeoutException + | Cause.TimeoutError | SdkError | AccessDeniedError | InvalidArgumentError @@ -563,7 +563,7 @@ interface KinesisService$ { options?: HttpHandlerOptions, ): Effect.Effect< PutRecordCommandOutput, - | Cause.TimeoutException + | Cause.TimeoutError | SdkError | AccessDeniedError | InternalFailureError @@ -586,7 +586,7 @@ interface KinesisService$ { options?: HttpHandlerOptions, ): Effect.Effect< PutRecordsCommandOutput, - | Cause.TimeoutException + | Cause.TimeoutError | SdkError | AccessDeniedError | InternalFailureError @@ -609,7 +609,7 @@ interface KinesisService$ { options?: HttpHandlerOptions, ): Effect.Effect< PutResourcePolicyCommandOutput, - | Cause.TimeoutException + | Cause.TimeoutError | SdkError | AccessDeniedError | InvalidArgumentError @@ -626,7 +626,7 @@ interface KinesisService$ { options?: HttpHandlerOptions, ): Effect.Effect< RegisterStreamConsumerCommandOutput, - | Cause.TimeoutException + | Cause.TimeoutError | SdkError | InvalidArgumentError | LimitExceededError @@ -642,7 +642,7 @@ interface KinesisService$ { options?: HttpHandlerOptions, ): Effect.Effect< RemoveTagsFromStreamCommandOutput, - | Cause.TimeoutException + | Cause.TimeoutError | SdkError | AccessDeniedError | InvalidArgumentError @@ -659,7 +659,7 @@ interface KinesisService$ { options?: HttpHandlerOptions, ): Effect.Effect< SplitShardCommandOutput, - | Cause.TimeoutException + | Cause.TimeoutError | SdkError | AccessDeniedError | InvalidArgumentError @@ -677,7 +677,7 @@ interface KinesisService$ { options?: HttpHandlerOptions, ): Effect.Effect< StartStreamEncryptionCommandOutput, - | Cause.TimeoutException + | Cause.TimeoutError | SdkError | AccessDeniedError | InvalidArgumentError @@ -700,7 +700,7 @@ interface KinesisService$ { options?: HttpHandlerOptions, ): Effect.Effect< StopStreamEncryptionCommandOutput, - | Cause.TimeoutException + | Cause.TimeoutError | SdkError | AccessDeniedError | InvalidArgumentError @@ -717,7 +717,7 @@ interface KinesisService$ { options?: HttpHandlerOptions, ): Effect.Effect< SubscribeToShardCommandOutput, - | Cause.TimeoutException + | Cause.TimeoutError | SdkError | AccessDeniedError | InvalidArgumentError @@ -734,7 +734,7 @@ interface KinesisService$ { options?: HttpHandlerOptions, ): Effect.Effect< TagResourceCommandOutput, - | Cause.TimeoutException + | Cause.TimeoutError | SdkError | AccessDeniedError | InvalidArgumentError @@ -751,7 +751,7 @@ interface KinesisService$ { options?: HttpHandlerOptions, ): Effect.Effect< UntagResourceCommandOutput, - | Cause.TimeoutException + | Cause.TimeoutError | SdkError | AccessDeniedError | InvalidArgumentError @@ -768,7 +768,7 @@ interface KinesisService$ { options?: HttpHandlerOptions, ): Effect.Effect< UpdateAccountSettingsCommandOutput, - Cause.TimeoutException | SdkError | InvalidArgumentError | LimitExceededError | ValidationError + Cause.TimeoutError | SdkError | InvalidArgumentError | LimitExceededError | ValidationError >; /** @@ -779,7 +779,7 @@ interface KinesisService$ { options?: HttpHandlerOptions, ): Effect.Effect< UpdateMaxRecordSizeCommandOutput, - | Cause.TimeoutException + | Cause.TimeoutError | SdkError | AccessDeniedError | InvalidArgumentError @@ -797,7 +797,7 @@ interface KinesisService$ { options?: HttpHandlerOptions, ): Effect.Effect< UpdateShardCountCommandOutput, - | Cause.TimeoutException + | Cause.TimeoutError | SdkError | AccessDeniedError | InvalidArgumentError @@ -815,7 +815,7 @@ interface KinesisService$ { options?: HttpHandlerOptions, ): Effect.Effect< UpdateStreamModeCommandOutput, - | Cause.TimeoutException + | Cause.TimeoutError | SdkError | InvalidArgumentError | LimitExceededError @@ -832,7 +832,7 @@ interface KinesisService$ { options?: HttpHandlerOptions, ): Effect.Effect< UpdateStreamWarmThroughputCommandOutput, - | Cause.TimeoutException + | Cause.TimeoutError | SdkError | AccessDeniedError | InvalidArgumentError @@ -864,10 +864,10 @@ export const makeKinesisService = Effect.gen(function*() { * @since 1.0.0 * @category models */ -export class KinesisService extends Effect.Tag("@effect-aws/client-kinesis/KinesisService")< +export class KinesisService extends ServiceMap.Service< KinesisService, KinesisService$ ->() { +>()("@effect-aws/client-kinesis/KinesisService") { static readonly defaultLayer = Layer.effect(this, makeKinesisService).pipe(Layer.provide(Instance.layer)); static readonly layer = (config: KinesisService.Config) => Layer.effect(this, makeKinesisService).pipe( diff --git a/packages/client-kinesis/src/KinesisServiceConfig.ts b/packages/client-kinesis/src/KinesisServiceConfig.ts index 3ab25aa7..b8d4ba40 100644 --- a/packages/client-kinesis/src/KinesisServiceConfig.ts +++ b/packages/client-kinesis/src/KinesisServiceConfig.ts @@ -3,18 +3,17 @@ */ import type { KinesisClientConfig } from "@aws-sdk/client-kinesis"; import { ServiceLogger } from "@effect-aws/commons"; -import { Effect, FiberRef, Layer } from "effect"; +import { Effect, Layer, ServiceMap } from "effect"; import { dual } from "effect/Function"; -import { globalValue } from "effect/GlobalValue"; import type { KinesisService } from "./KinesisService.js"; /** * @since 1.0.0 * @category kinesis service config */ -const currentKinesisServiceConfig = globalValue( +const currentKinesisServiceConfig = ServiceMap.Reference( "@effect-aws/client-kinesis/currentKinesisServiceConfig", - () => FiberRef.unsafeMake({}), + { defaultValue: () => ({}) }, ); /** @@ -27,7 +26,7 @@ export const withKinesisServiceConfig: { } = dual( 2, (effect: Effect.Effect, config: KinesisService.Config): Effect.Effect => - Effect.locally(effect, currentKinesisServiceConfig, config), + Effect.provideService(effect, currentKinesisServiceConfig, config), ); /** @@ -35,14 +34,14 @@ export const withKinesisServiceConfig: { * @category kinesis service config */ export const setKinesisServiceConfig = (config: KinesisService.Config) => - Layer.locallyScoped(currentKinesisServiceConfig, config); + Layer.succeed(currentKinesisServiceConfig, config); /** * @since 1.0.0 * @category adapters */ export const toKinesisClientConfig: Effect.Effect = Effect.gen(function*() { - const { logger: serviceLogger, ...config } = yield* FiberRef.get(currentKinesisServiceConfig); + const { logger: serviceLogger, ...config } = yield* currentKinesisServiceConfig; const logger = serviceLogger === true ? yield* ServiceLogger.toClientLogger(ServiceLogger.defaultServiceLogger) diff --git a/packages/client-kinesis/test/Kinesis.test.ts b/packages/client-kinesis/test/Kinesis.test.ts index 75568df3..0f5ff6cb 100644 --- a/packages/client-kinesis/test/Kinesis.test.ts +++ b/packages/client-kinesis/test/Kinesis.test.ts @@ -26,7 +26,7 @@ describe("KinesisClientImpl", () => { const args = {} as unknown as PutRecordCommandInput; - const program = Kinesis.putRecord(args); + const program = Kinesis.use((svc) => svc.putRecord(args)); const result = await pipe( program, @@ -46,7 +46,7 @@ describe("KinesisClientImpl", () => { const args = {} as unknown as PutRecordCommandInput; - const program = Kinesis.putRecord(args); + const program = Kinesis.use((svc) => svc.putRecord(args)); const result = await pipe( program, @@ -69,7 +69,7 @@ describe("KinesisClientImpl", () => { const args = {} as unknown as PutRecordCommandInput; - const program = Kinesis.putRecord(args); + const program = Kinesis.use((svc) => svc.putRecord(args)); const result = await pipe( program, @@ -93,7 +93,7 @@ describe("KinesisClientImpl", () => { const args = {} as unknown as PutRecordCommandInput; - const program = Kinesis.putRecord(args); + const program = Kinesis.use((svc) => svc.putRecord(args)); const result = await pipe( program, @@ -121,7 +121,7 @@ describe("KinesisClientImpl", () => { const args = {} as unknown as PutRecordCommandInput; - const program = Kinesis.putRecord(args); + const program = Kinesis.use((svc) => svc.putRecord(args)); const result = await pipe( program, @@ -131,7 +131,7 @@ describe("KinesisClientImpl", () => { expect(result).toEqual( Exit.fail( - SdkError({ + new SdkError({ ...new Error("test"), name: "SdkError", message: "test", @@ -156,7 +156,7 @@ describe("KinesisClientImpl", () => { const args = {} as unknown as PutRecordCommandInput; - const program = Kinesis.putRecord(args).pipe( + const program = Kinesis.use((svc) => svc.putRecord(args)).pipe( Effect.catchTag("NotHandledException" as any, () => Effect.succeed(null)), ); @@ -166,9 +166,9 @@ describe("KinesisClientImpl", () => { Effect.runPromiseExit, ); - expect(result).toEqual( + expect(result).toContainEqual( Exit.fail( - SdkError({ + new SdkError({ ...new Error("test"), name: "SdkError", message: "test", diff --git a/packages/client-kms/.projen/deps.json b/packages/client-kms/.projen/deps.json index 2c1f10ac..da5e95c9 100644 --- a/packages/client-kms/.projen/deps.json +++ b/packages/client-kms/.projen/deps.json @@ -7,6 +7,7 @@ }, { "name": "effect", + "version": "4.0.0-beta.8", "type": "build" }, { @@ -16,7 +17,7 @@ }, { "name": "effect", - "version": ">=3.0.4 <4.0.0", + "version": ">=4.0.0 <5.0.0", "type": "peer" }, { diff --git a/packages/client-kms/README.md b/packages/client-kms/README.md index af3d469d..4f9d39c3 100644 --- a/packages/client-kms/README.md +++ b/packages/client-kms/README.md @@ -16,7 +16,7 @@ With default KMSClient instance: ```typescript import { KMS } from "@effect-aws/client-kms"; -const program = KMS.listKeys(args); +const program = KMS.use((svc) => svc.listKeys(args)); const result = pipe( program, @@ -30,7 +30,7 @@ With custom KMSClient instance: ```typescript import { KMS } from "@effect-aws/client-kms"; -const program = KMS.listKeys(args); +const program = KMS.use((svc) => svc.listKeys(args)); const result = await pipe( program, @@ -46,7 +46,7 @@ With custom KMSClient configuration: ```typescript import { KMS } from "@effect-aws/client-kms"; -const program = KMS.listKeys(args); +const program = KMS.use((svc) => svc.listKeys(args)); const result = await pipe( program, diff --git a/packages/client-kms/package.json b/packages/client-kms/package.json index fc36393e..25cca45b 100644 --- a/packages/client-kms/package.json +++ b/packages/client-kms/package.json @@ -26,11 +26,11 @@ }, "devDependencies": { "@types/node": "ts5.4", - "effect": "^3.16.4", + "effect": "4.0.0-beta.8", "typescript": "^5.4.2" }, "peerDependencies": { - "effect": ">=3.0.4 <4.0.0" + "effect": ">=4.0.0 <5.0.0" }, "dependencies": { "@aws-sdk/client-kms": "^3", diff --git a/packages/client-kms/src/KMSClientInstance.ts b/packages/client-kms/src/KMSClientInstance.ts index 3fc6a898..d5e2173e 100644 --- a/packages/client-kms/src/KMSClientInstance.ts +++ b/packages/client-kms/src/KMSClientInstance.ts @@ -2,16 +2,16 @@ * @since 1.0.0 */ import { KMSClient } from "@aws-sdk/client-kms"; -import { Context, Effect, Layer } from "effect"; +import { Effect, Layer, ServiceMap } from "effect"; import * as KMSServiceConfig from "./KMSServiceConfig.js"; /** * @since 1.0.0 * @category tags */ -export class KMSClientInstance extends Context.Tag( +export class KMSClientInstance extends ServiceMap.Service()( "@effect-aws/client-kms/KMSClientInstance", -)() {} +) {} /** * @since 1.0.0 @@ -30,4 +30,4 @@ export const make = Effect.flatMap( * @since 1.0.0 * @category layers */ -export const layer = Layer.scoped(KMSClientInstance, make); +export const layer = Layer.effect(KMSClientInstance, make); diff --git a/packages/client-kms/src/KMSService.ts b/packages/client-kms/src/KMSService.ts index e47122a7..b5843a2b 100644 --- a/packages/client-kms/src/KMSService.ts +++ b/packages/client-kms/src/KMSService.ts @@ -167,7 +167,7 @@ import { import type { HttpHandlerOptions, ServiceLogger } from "@effect-aws/commons"; import { Service } from "@effect-aws/commons"; import type { Cause } from "effect"; -import { Effect, Layer } from "effect"; +import { Effect, Layer, ServiceMap } from "effect"; import type { AlreadyExistsError, CloudHsmClusterInUseError, @@ -290,7 +290,7 @@ interface KMSService$ { options?: HttpHandlerOptions, ): Effect.Effect< CancelKeyDeletionCommandOutput, - | Cause.TimeoutException + | Cause.TimeoutError | SdkError | DependencyTimeoutError | InvalidArnError @@ -307,7 +307,7 @@ interface KMSService$ { options?: HttpHandlerOptions, ): Effect.Effect< ConnectCustomKeyStoreCommandOutput, - | Cause.TimeoutException + | Cause.TimeoutError | SdkError | CloudHsmClusterInvalidConfigurationError | CloudHsmClusterNotActiveError @@ -324,7 +324,7 @@ interface KMSService$ { options?: HttpHandlerOptions, ): Effect.Effect< CreateAliasCommandOutput, - | Cause.TimeoutException + | Cause.TimeoutError | SdkError | AlreadyExistsError | DependencyTimeoutError @@ -343,7 +343,7 @@ interface KMSService$ { options?: HttpHandlerOptions, ): Effect.Effect< CreateCustomKeyStoreCommandOutput, - | Cause.TimeoutException + | Cause.TimeoutError | SdkError | CloudHsmClusterInUseError | CloudHsmClusterInvalidConfigurationError @@ -372,7 +372,7 @@ interface KMSService$ { options?: HttpHandlerOptions, ): Effect.Effect< CreateGrantCommandOutput, - | Cause.TimeoutException + | Cause.TimeoutError | SdkError | DependencyTimeoutError | DisabledError @@ -393,7 +393,7 @@ interface KMSService$ { options?: HttpHandlerOptions, ): Effect.Effect< CreateKeyCommandOutput, - | Cause.TimeoutException + | Cause.TimeoutError | SdkError | CloudHsmClusterInvalidConfigurationError | CustomKeyStoreInvalidStateError @@ -418,7 +418,7 @@ interface KMSService$ { options?: HttpHandlerOptions, ): Effect.Effect< DecryptCommandOutput, - | Cause.TimeoutException + | Cause.TimeoutError | SdkError | DependencyTimeoutError | DisabledError @@ -441,7 +441,7 @@ interface KMSService$ { options?: HttpHandlerOptions, ): Effect.Effect< DeleteAliasCommandOutput, - Cause.TimeoutException | SdkError | DependencyTimeoutError | KMSInternalError | KMSInvalidStateError | NotFoundError + Cause.TimeoutError | SdkError | DependencyTimeoutError | KMSInternalError | KMSInvalidStateError | NotFoundError >; /** @@ -452,7 +452,7 @@ interface KMSService$ { options?: HttpHandlerOptions, ): Effect.Effect< DeleteCustomKeyStoreCommandOutput, - | Cause.TimeoutException + | Cause.TimeoutError | SdkError | CustomKeyStoreHasCMKsError | CustomKeyStoreInvalidStateError @@ -468,7 +468,7 @@ interface KMSService$ { options?: HttpHandlerOptions, ): Effect.Effect< DeleteImportedKeyMaterialCommandOutput, - | Cause.TimeoutException + | Cause.TimeoutError | SdkError | DependencyTimeoutError | InvalidArnError @@ -486,7 +486,7 @@ interface KMSService$ { options?: HttpHandlerOptions, ): Effect.Effect< DeriveSharedSecretCommandOutput, - | Cause.TimeoutException + | Cause.TimeoutError | SdkError | DependencyTimeoutError | DisabledError @@ -507,7 +507,7 @@ interface KMSService$ { options?: HttpHandlerOptions, ): Effect.Effect< DescribeCustomKeyStoresCommandOutput, - Cause.TimeoutException | SdkError | CustomKeyStoreNotFoundError | InvalidMarkerError | KMSInternalError + Cause.TimeoutError | SdkError | CustomKeyStoreNotFoundError | InvalidMarkerError | KMSInternalError >; /** @@ -518,7 +518,7 @@ interface KMSService$ { options?: HttpHandlerOptions, ): Effect.Effect< DescribeKeyCommandOutput, - Cause.TimeoutException | SdkError | DependencyTimeoutError | InvalidArnError | KMSInternalError | NotFoundError + Cause.TimeoutError | SdkError | DependencyTimeoutError | InvalidArnError | KMSInternalError | NotFoundError >; /** @@ -529,7 +529,7 @@ interface KMSService$ { options?: HttpHandlerOptions, ): Effect.Effect< DisableKeyCommandOutput, - | Cause.TimeoutException + | Cause.TimeoutError | SdkError | DependencyTimeoutError | InvalidArnError @@ -546,7 +546,7 @@ interface KMSService$ { options?: HttpHandlerOptions, ): Effect.Effect< DisableKeyRotationCommandOutput, - | Cause.TimeoutException + | Cause.TimeoutError | SdkError | DependencyTimeoutError | DisabledError @@ -565,7 +565,7 @@ interface KMSService$ { options?: HttpHandlerOptions, ): Effect.Effect< DisconnectCustomKeyStoreCommandOutput, - Cause.TimeoutException | SdkError | CustomKeyStoreInvalidStateError | CustomKeyStoreNotFoundError | KMSInternalError + Cause.TimeoutError | SdkError | CustomKeyStoreInvalidStateError | CustomKeyStoreNotFoundError | KMSInternalError >; /** @@ -576,7 +576,7 @@ interface KMSService$ { options?: HttpHandlerOptions, ): Effect.Effect< EnableKeyCommandOutput, - | Cause.TimeoutException + | Cause.TimeoutError | SdkError | DependencyTimeoutError | InvalidArnError @@ -594,7 +594,7 @@ interface KMSService$ { options?: HttpHandlerOptions, ): Effect.Effect< EnableKeyRotationCommandOutput, - | Cause.TimeoutException + | Cause.TimeoutError | SdkError | DependencyTimeoutError | DisabledError @@ -613,7 +613,7 @@ interface KMSService$ { options?: HttpHandlerOptions, ): Effect.Effect< EncryptCommandOutput, - | Cause.TimeoutException + | Cause.TimeoutError | SdkError | DependencyTimeoutError | DisabledError @@ -634,7 +634,7 @@ interface KMSService$ { options?: HttpHandlerOptions, ): Effect.Effect< GenerateDataKeyCommandOutput, - | Cause.TimeoutException + | Cause.TimeoutError | SdkError | DependencyTimeoutError | DisabledError @@ -655,7 +655,7 @@ interface KMSService$ { options?: HttpHandlerOptions, ): Effect.Effect< GenerateDataKeyPairCommandOutput, - | Cause.TimeoutException + | Cause.TimeoutError | SdkError | DependencyTimeoutError | DisabledError @@ -677,7 +677,7 @@ interface KMSService$ { options?: HttpHandlerOptions, ): Effect.Effect< GenerateDataKeyPairWithoutPlaintextCommandOutput, - | Cause.TimeoutException + | Cause.TimeoutError | SdkError | DependencyTimeoutError | DisabledError @@ -699,7 +699,7 @@ interface KMSService$ { options?: HttpHandlerOptions, ): Effect.Effect< GenerateDataKeyWithoutPlaintextCommandOutput, - | Cause.TimeoutException + | Cause.TimeoutError | SdkError | DependencyTimeoutError | DisabledError @@ -720,7 +720,7 @@ interface KMSService$ { options?: HttpHandlerOptions, ): Effect.Effect< GenerateMacCommandOutput, - | Cause.TimeoutException + | Cause.TimeoutError | SdkError | DisabledError | DryRunOperationError @@ -740,7 +740,7 @@ interface KMSService$ { options?: HttpHandlerOptions, ): Effect.Effect< GenerateRandomCommandOutput, - | Cause.TimeoutException + | Cause.TimeoutError | SdkError | CustomKeyStoreInvalidStateError | CustomKeyStoreNotFoundError @@ -757,7 +757,7 @@ interface KMSService$ { options?: HttpHandlerOptions, ): Effect.Effect< GetKeyPolicyCommandOutput, - | Cause.TimeoutException + | Cause.TimeoutError | SdkError | DependencyTimeoutError | InvalidArnError @@ -774,7 +774,7 @@ interface KMSService$ { options?: HttpHandlerOptions, ): Effect.Effect< GetKeyRotationStatusCommandOutput, - | Cause.TimeoutException + | Cause.TimeoutError | SdkError | DependencyTimeoutError | InvalidArnError @@ -792,7 +792,7 @@ interface KMSService$ { options?: HttpHandlerOptions, ): Effect.Effect< GetParametersForImportCommandOutput, - | Cause.TimeoutException + | Cause.TimeoutError | SdkError | DependencyTimeoutError | InvalidArnError @@ -810,7 +810,7 @@ interface KMSService$ { options?: HttpHandlerOptions, ): Effect.Effect< GetPublicKeyCommandOutput, - | Cause.TimeoutException + | Cause.TimeoutError | SdkError | DependencyTimeoutError | DisabledError @@ -832,7 +832,7 @@ interface KMSService$ { options?: HttpHandlerOptions, ): Effect.Effect< ImportKeyMaterialCommandOutput, - | Cause.TimeoutException + | Cause.TimeoutError | SdkError | DependencyTimeoutError | ExpiredImportTokenError @@ -854,7 +854,7 @@ interface KMSService$ { options?: HttpHandlerOptions, ): Effect.Effect< ListAliasesCommandOutput, - | Cause.TimeoutException + | Cause.TimeoutError | SdkError | DependencyTimeoutError | InvalidArnError @@ -871,7 +871,7 @@ interface KMSService$ { options?: HttpHandlerOptions, ): Effect.Effect< ListGrantsCommandOutput, - | Cause.TimeoutException + | Cause.TimeoutError | SdkError | DependencyTimeoutError | InvalidArnError @@ -890,7 +890,7 @@ interface KMSService$ { options?: HttpHandlerOptions, ): Effect.Effect< ListKeyPoliciesCommandOutput, - | Cause.TimeoutException + | Cause.TimeoutError | SdkError | DependencyTimeoutError | InvalidArnError @@ -907,7 +907,7 @@ interface KMSService$ { options?: HttpHandlerOptions, ): Effect.Effect< ListKeyRotationsCommandOutput, - | Cause.TimeoutException + | Cause.TimeoutError | SdkError | InvalidArnError | InvalidMarkerError @@ -925,7 +925,7 @@ interface KMSService$ { options?: HttpHandlerOptions, ): Effect.Effect< ListKeysCommandOutput, - Cause.TimeoutException | SdkError | DependencyTimeoutError | InvalidMarkerError | KMSInternalError + Cause.TimeoutError | SdkError | DependencyTimeoutError | InvalidMarkerError | KMSInternalError >; /** @@ -936,7 +936,7 @@ interface KMSService$ { options?: HttpHandlerOptions, ): Effect.Effect< ListResourceTagsCommandOutput, - Cause.TimeoutException | SdkError | InvalidArnError | InvalidMarkerError | KMSInternalError | NotFoundError + Cause.TimeoutError | SdkError | InvalidArnError | InvalidMarkerError | KMSInternalError | NotFoundError >; /** @@ -947,7 +947,7 @@ interface KMSService$ { options?: HttpHandlerOptions, ): Effect.Effect< ListRetirableGrantsCommandOutput, - | Cause.TimeoutException + | Cause.TimeoutError | SdkError | DependencyTimeoutError | InvalidArnError @@ -964,7 +964,7 @@ interface KMSService$ { options?: HttpHandlerOptions, ): Effect.Effect< PutKeyPolicyCommandOutput, - | Cause.TimeoutException + | Cause.TimeoutError | SdkError | DependencyTimeoutError | InvalidArnError @@ -984,7 +984,7 @@ interface KMSService$ { options?: HttpHandlerOptions, ): Effect.Effect< ReEncryptCommandOutput, - | Cause.TimeoutException + | Cause.TimeoutError | SdkError | DependencyTimeoutError | DisabledError @@ -1007,7 +1007,7 @@ interface KMSService$ { options?: HttpHandlerOptions, ): Effect.Effect< ReplicateKeyCommandOutput, - | Cause.TimeoutException + | Cause.TimeoutError | SdkError | AlreadyExistsError | DisabledError @@ -1029,7 +1029,7 @@ interface KMSService$ { options?: HttpHandlerOptions, ): Effect.Effect< RetireGrantCommandOutput, - | Cause.TimeoutException + | Cause.TimeoutError | SdkError | DependencyTimeoutError | DryRunOperationError @@ -1049,7 +1049,7 @@ interface KMSService$ { options?: HttpHandlerOptions, ): Effect.Effect< RevokeGrantCommandOutput, - | Cause.TimeoutException + | Cause.TimeoutError | SdkError | DependencyTimeoutError | DryRunOperationError @@ -1068,7 +1068,7 @@ interface KMSService$ { options?: HttpHandlerOptions, ): Effect.Effect< RotateKeyOnDemandCommandOutput, - | Cause.TimeoutException + | Cause.TimeoutError | SdkError | ConflictError | DependencyTimeoutError @@ -1089,7 +1089,7 @@ interface KMSService$ { options?: HttpHandlerOptions, ): Effect.Effect< ScheduleKeyDeletionCommandOutput, - | Cause.TimeoutException + | Cause.TimeoutError | SdkError | DependencyTimeoutError | InvalidArnError @@ -1106,7 +1106,7 @@ interface KMSService$ { options?: HttpHandlerOptions, ): Effect.Effect< SignCommandOutput, - | Cause.TimeoutException + | Cause.TimeoutError | SdkError | DependencyTimeoutError | DisabledError @@ -1127,7 +1127,7 @@ interface KMSService$ { options?: HttpHandlerOptions, ): Effect.Effect< TagResourceCommandOutput, - | Cause.TimeoutException + | Cause.TimeoutError | SdkError | InvalidArnError | KMSInternalError @@ -1145,13 +1145,7 @@ interface KMSService$ { options?: HttpHandlerOptions, ): Effect.Effect< UntagResourceCommandOutput, - | Cause.TimeoutException - | SdkError - | InvalidArnError - | KMSInternalError - | KMSInvalidStateError - | NotFoundError - | TagError + Cause.TimeoutError | SdkError | InvalidArnError | KMSInternalError | KMSInvalidStateError | NotFoundError | TagError >; /** @@ -1162,7 +1156,7 @@ interface KMSService$ { options?: HttpHandlerOptions, ): Effect.Effect< UpdateAliasCommandOutput, - | Cause.TimeoutException + | Cause.TimeoutError | SdkError | DependencyTimeoutError | KMSInternalError @@ -1179,7 +1173,7 @@ interface KMSService$ { options?: HttpHandlerOptions, ): Effect.Effect< UpdateCustomKeyStoreCommandOutput, - | Cause.TimeoutException + | Cause.TimeoutError | SdkError | CloudHsmClusterInvalidConfigurationError | CloudHsmClusterNotActiveError @@ -1208,7 +1202,7 @@ interface KMSService$ { options?: HttpHandlerOptions, ): Effect.Effect< UpdateKeyDescriptionCommandOutput, - | Cause.TimeoutException + | Cause.TimeoutError | SdkError | DependencyTimeoutError | InvalidArnError @@ -1225,7 +1219,7 @@ interface KMSService$ { options?: HttpHandlerOptions, ): Effect.Effect< UpdatePrimaryRegionCommandOutput, - | Cause.TimeoutException + | Cause.TimeoutError | SdkError | DisabledError | InvalidArnError @@ -1243,7 +1237,7 @@ interface KMSService$ { options?: HttpHandlerOptions, ): Effect.Effect< VerifyCommandOutput, - | Cause.TimeoutException + | Cause.TimeoutError | SdkError | DependencyTimeoutError | DisabledError @@ -1265,7 +1259,7 @@ interface KMSService$ { options?: HttpHandlerOptions, ): Effect.Effect< VerifyMacCommandOutput, - | Cause.TimeoutException + | Cause.TimeoutError | SdkError | DisabledError | DryRunOperationError @@ -1300,10 +1294,10 @@ export const makeKMSService = Effect.gen(function*() { * @since 1.0.0 * @category models */ -export class KMSService extends Effect.Tag("@effect-aws/client-kms/KMSService")< +export class KMSService extends ServiceMap.Service< KMSService, KMSService$ ->() { +>()("@effect-aws/client-kms/KMSService") { static readonly defaultLayer = Layer.effect(this, makeKMSService).pipe(Layer.provide(Instance.layer)); static readonly layer = (config: KMSService.Config) => Layer.effect(this, makeKMSService).pipe( diff --git a/packages/client-kms/src/KMSServiceConfig.ts b/packages/client-kms/src/KMSServiceConfig.ts index 6808f1e2..2a8ca520 100644 --- a/packages/client-kms/src/KMSServiceConfig.ts +++ b/packages/client-kms/src/KMSServiceConfig.ts @@ -3,18 +3,17 @@ */ import type { KMSClientConfig } from "@aws-sdk/client-kms"; import { ServiceLogger } from "@effect-aws/commons"; -import { Effect, FiberRef, Layer } from "effect"; +import { Effect, Layer, ServiceMap } from "effect"; import { dual } from "effect/Function"; -import { globalValue } from "effect/GlobalValue"; import type { KMSService } from "./KMSService.js"; /** * @since 1.0.0 * @category kms service config */ -const currentKMSServiceConfig = globalValue( +const currentKMSServiceConfig = ServiceMap.Reference( "@effect-aws/client-kms/currentKMSServiceConfig", - () => FiberRef.unsafeMake({}), + { defaultValue: () => ({}) }, ); /** @@ -27,21 +26,21 @@ export const withKMSServiceConfig: { } = dual( 2, (effect: Effect.Effect, config: KMSService.Config): Effect.Effect => - Effect.locally(effect, currentKMSServiceConfig, config), + Effect.provideService(effect, currentKMSServiceConfig, config), ); /** * @since 1.0.0 * @category kms service config */ -export const setKMSServiceConfig = (config: KMSService.Config) => Layer.locallyScoped(currentKMSServiceConfig, config); +export const setKMSServiceConfig = (config: KMSService.Config) => Layer.succeed(currentKMSServiceConfig, config); /** * @since 1.0.0 * @category adapters */ export const toKMSClientConfig: Effect.Effect = Effect.gen(function*() { - const { logger: serviceLogger, ...config } = yield* FiberRef.get(currentKMSServiceConfig); + const { logger: serviceLogger, ...config } = yield* currentKMSServiceConfig; const logger = serviceLogger === true ? yield* ServiceLogger.toClientLogger(ServiceLogger.defaultServiceLogger) diff --git a/packages/client-kms/test/KMS.test.ts b/packages/client-kms/test/KMS.test.ts index 6d9b8b5b..8c2db5d3 100644 --- a/packages/client-kms/test/KMS.test.ts +++ b/packages/client-kms/test/KMS.test.ts @@ -21,7 +21,7 @@ describe("KMSClientImpl", () => { const args = {} as unknown as ListKeysCommandInput; - const program = KMS.listKeys(args); + const program = KMS.use((svc) => svc.listKeys(args)); const result = await pipe( program, @@ -41,7 +41,7 @@ describe("KMSClientImpl", () => { const args = {} as unknown as ListKeysCommandInput; - const program = KMS.listKeys(args); + const program = KMS.use((svc) => svc.listKeys(args)); const result = await pipe( program, @@ -64,7 +64,7 @@ describe("KMSClientImpl", () => { const args = {} as unknown as ListKeysCommandInput; - const program = KMS.listKeys(args); + const program = KMS.use((svc) => svc.listKeys(args)); const result = await pipe( program, @@ -88,7 +88,7 @@ describe("KMSClientImpl", () => { const args = {} as unknown as ListKeysCommandInput; - const program = KMS.listKeys(args); + const program = KMS.use((svc) => svc.listKeys(args)); const result = await pipe( program, @@ -116,7 +116,7 @@ describe("KMSClientImpl", () => { const args = {} as unknown as ListKeysCommandInput; - const program = KMS.listKeys(args); + const program = KMS.use((svc) => svc.listKeys(args)); const result = await pipe( program, @@ -126,7 +126,7 @@ describe("KMSClientImpl", () => { expect(result).toEqual( Exit.fail( - SdkError({ + new SdkError({ ...new Error("test"), name: "SdkError", message: "test", @@ -151,7 +151,7 @@ describe("KMSClientImpl", () => { const args = {} as unknown as ListKeysCommandInput; - const program = KMS.listKeys(args).pipe( + const program = KMS.use((svc) => svc.listKeys(args)).pipe( Effect.catchTag("NotHandledException" as any, () => Effect.succeed(null)), ); @@ -161,9 +161,9 @@ describe("KMSClientImpl", () => { Effect.runPromiseExit, ); - expect(result).toEqual( + expect(result).toContainEqual( Exit.fail( - SdkError({ + new SdkError({ ...new Error("test"), name: "SdkError", message: "test", diff --git a/packages/client-lambda/.projen/deps.json b/packages/client-lambda/.projen/deps.json index 57943fe2..dde77b00 100644 --- a/packages/client-lambda/.projen/deps.json +++ b/packages/client-lambda/.projen/deps.json @@ -7,6 +7,7 @@ }, { "name": "effect", + "version": "4.0.0-beta.8", "type": "build" }, { @@ -16,7 +17,7 @@ }, { "name": "effect", - "version": ">=3.0.4 <4.0.0", + "version": ">=4.0.0 <5.0.0", "type": "peer" }, { diff --git a/packages/client-lambda/README.md b/packages/client-lambda/README.md index af35f9da..b536404c 100644 --- a/packages/client-lambda/README.md +++ b/packages/client-lambda/README.md @@ -16,7 +16,7 @@ With default LambdaClient instance: ```typescript import { Lambda } from "@effect-aws/client-lambda"; -const program = Lambda.invoke(args); +const program = Lambda.use((svc) => svc.invoke(args)); const result = pipe( program, @@ -30,7 +30,7 @@ With custom LambdaClient instance: ```typescript import { Lambda } from "@effect-aws/client-lambda"; -const program = Lambda.invoke(args); +const program = Lambda.use((svc) => svc.invoke(args)); const result = await pipe( program, @@ -46,7 +46,7 @@ With custom LambdaClient configuration: ```typescript import { Lambda } from "@effect-aws/client-lambda"; -const program = Lambda.invoke(args); +const program = Lambda.use((svc) => svc.invoke(args)); const result = await pipe( program, diff --git a/packages/client-lambda/package.json b/packages/client-lambda/package.json index 2e10cdce..04f3e4b8 100644 --- a/packages/client-lambda/package.json +++ b/packages/client-lambda/package.json @@ -26,11 +26,11 @@ }, "devDependencies": { "@types/node": "ts5.4", - "effect": "^3.16.4", + "effect": "4.0.0-beta.8", "typescript": "^5.4.2" }, "peerDependencies": { - "effect": ">=3.0.4 <4.0.0" + "effect": ">=4.0.0 <5.0.0" }, "dependencies": { "@aws-sdk/client-lambda": "^3", diff --git a/packages/client-lambda/src/LambdaClientInstance.ts b/packages/client-lambda/src/LambdaClientInstance.ts index 0de7a04c..76e4afd6 100644 --- a/packages/client-lambda/src/LambdaClientInstance.ts +++ b/packages/client-lambda/src/LambdaClientInstance.ts @@ -2,16 +2,16 @@ * @since 1.0.0 */ import { LambdaClient } from "@aws-sdk/client-lambda"; -import { Context, Effect, Layer } from "effect"; +import { Effect, Layer, ServiceMap } from "effect"; import * as LambdaServiceConfig from "./LambdaServiceConfig.js"; /** * @since 1.0.0 * @category tags */ -export class LambdaClientInstance extends Context.Tag( +export class LambdaClientInstance extends ServiceMap.Service()( "@effect-aws/client-lambda/LambdaClientInstance", -)() {} +) {} /** * @since 1.0.0 @@ -30,4 +30,4 @@ export const make = Effect.flatMap( * @since 1.0.0 * @category layers */ -export const layer = Layer.scoped(LambdaClientInstance, make); +export const layer = Layer.effect(LambdaClientInstance, make); diff --git a/packages/client-lambda/src/LambdaService.ts b/packages/client-lambda/src/LambdaService.ts index 55f42fd2..f5425399 100644 --- a/packages/client-lambda/src/LambdaService.ts +++ b/packages/client-lambda/src/LambdaService.ts @@ -263,7 +263,7 @@ import { import type { HttpHandlerOptions, ServiceLogger } from "@effect-aws/commons"; import { Service } from "@effect-aws/commons"; import type { Cause } from "effect"; -import { Effect, Layer } from "effect"; +import { Effect, Layer, ServiceMap } from "effect"; import type { CallbackTimeoutError, CapacityProviderLimitExceededError, @@ -414,7 +414,7 @@ interface LambdaService$ { options?: HttpHandlerOptions, ): Effect.Effect< AddLayerVersionPermissionCommandOutput, - | Cause.TimeoutException + | Cause.TimeoutError | SdkError | InvalidParameterValueError | PolicyLengthExceededError @@ -433,7 +433,7 @@ interface LambdaService$ { options?: HttpHandlerOptions, ): Effect.Effect< AddPermissionCommandOutput, - | Cause.TimeoutException + | Cause.TimeoutError | SdkError | InvalidParameterValueError | PolicyLengthExceededError @@ -452,7 +452,7 @@ interface LambdaService$ { options?: HttpHandlerOptions, ): Effect.Effect< CheckpointDurableExecutionCommandOutput, - Cause.TimeoutException | SdkError | InvalidParameterValueError | ServiceError | TooManyRequestsError + Cause.TimeoutError | SdkError | InvalidParameterValueError | ServiceError | TooManyRequestsError >; /** @@ -463,7 +463,7 @@ interface LambdaService$ { options?: HttpHandlerOptions, ): Effect.Effect< CreateAliasCommandOutput, - | Cause.TimeoutException + | Cause.TimeoutError | SdkError | InvalidParameterValueError | ResourceConflictError @@ -480,7 +480,7 @@ interface LambdaService$ { options?: HttpHandlerOptions, ): Effect.Effect< CreateCapacityProviderCommandOutput, - | Cause.TimeoutException + | Cause.TimeoutError | SdkError | CapacityProviderLimitExceededError | InvalidParameterValueError @@ -497,7 +497,7 @@ interface LambdaService$ { options?: HttpHandlerOptions, ): Effect.Effect< CreateCodeSigningConfigCommandOutput, - Cause.TimeoutException | SdkError | InvalidParameterValueError | ServiceError + Cause.TimeoutError | SdkError | InvalidParameterValueError | ServiceError >; /** @@ -508,7 +508,7 @@ interface LambdaService$ { options?: HttpHandlerOptions, ): Effect.Effect< CreateEventSourceMappingCommandOutput, - | Cause.TimeoutException + | Cause.TimeoutError | SdkError | InvalidParameterValueError | ResourceConflictError @@ -525,7 +525,7 @@ interface LambdaService$ { options?: HttpHandlerOptions, ): Effect.Effect< CreateFunctionCommandOutput, - | Cause.TimeoutException + | Cause.TimeoutError | SdkError | CodeSigningConfigNotFoundError | CodeStorageExceededError @@ -547,7 +547,7 @@ interface LambdaService$ { options?: HttpHandlerOptions, ): Effect.Effect< CreateFunctionUrlConfigCommandOutput, - | Cause.TimeoutException + | Cause.TimeoutError | SdkError | InvalidParameterValueError | ResourceConflictError @@ -564,7 +564,7 @@ interface LambdaService$ { options?: HttpHandlerOptions, ): Effect.Effect< DeleteAliasCommandOutput, - | Cause.TimeoutException + | Cause.TimeoutError | SdkError | InvalidParameterValueError | ResourceConflictError @@ -580,7 +580,7 @@ interface LambdaService$ { options?: HttpHandlerOptions, ): Effect.Effect< DeleteCapacityProviderCommandOutput, - | Cause.TimeoutException + | Cause.TimeoutError | SdkError | InvalidParameterValueError | ResourceConflictError @@ -597,7 +597,7 @@ interface LambdaService$ { options?: HttpHandlerOptions, ): Effect.Effect< DeleteCodeSigningConfigCommandOutput, - | Cause.TimeoutException + | Cause.TimeoutError | SdkError | InvalidParameterValueError | ResourceConflictError @@ -613,7 +613,7 @@ interface LambdaService$ { options?: HttpHandlerOptions, ): Effect.Effect< DeleteEventSourceMappingCommandOutput, - | Cause.TimeoutException + | Cause.TimeoutError | SdkError | InvalidParameterValueError | ResourceConflictError @@ -631,7 +631,7 @@ interface LambdaService$ { options?: HttpHandlerOptions, ): Effect.Effect< DeleteFunctionCommandOutput, - | Cause.TimeoutException + | Cause.TimeoutError | SdkError | InvalidParameterValueError | ResourceConflictError @@ -648,7 +648,7 @@ interface LambdaService$ { options?: HttpHandlerOptions, ): Effect.Effect< DeleteFunctionCodeSigningConfigCommandOutput, - | Cause.TimeoutException + | Cause.TimeoutError | SdkError | CodeSigningConfigNotFoundError | InvalidParameterValueError @@ -666,7 +666,7 @@ interface LambdaService$ { options?: HttpHandlerOptions, ): Effect.Effect< DeleteFunctionConcurrencyCommandOutput, - | Cause.TimeoutException + | Cause.TimeoutError | SdkError | InvalidParameterValueError | ResourceConflictError @@ -683,7 +683,7 @@ interface LambdaService$ { options?: HttpHandlerOptions, ): Effect.Effect< DeleteFunctionEventInvokeConfigCommandOutput, - | Cause.TimeoutException + | Cause.TimeoutError | SdkError | InvalidParameterValueError | ResourceConflictError @@ -700,12 +700,7 @@ interface LambdaService$ { options?: HttpHandlerOptions, ): Effect.Effect< DeleteFunctionUrlConfigCommandOutput, - | Cause.TimeoutException - | SdkError - | ResourceConflictError - | ResourceNotFoundError - | ServiceError - | TooManyRequestsError + Cause.TimeoutError | SdkError | ResourceConflictError | ResourceNotFoundError | ServiceError | TooManyRequestsError >; /** @@ -716,7 +711,7 @@ interface LambdaService$ { options?: HttpHandlerOptions, ): Effect.Effect< DeleteLayerVersionCommandOutput, - Cause.TimeoutException | SdkError | ServiceError | TooManyRequestsError + Cause.TimeoutError | SdkError | ServiceError | TooManyRequestsError >; /** @@ -727,7 +722,7 @@ interface LambdaService$ { options?: HttpHandlerOptions, ): Effect.Effect< DeleteProvisionedConcurrencyConfigCommandOutput, - | Cause.TimeoutException + | Cause.TimeoutError | SdkError | InvalidParameterValueError | ResourceConflictError @@ -744,7 +739,7 @@ interface LambdaService$ { options?: HttpHandlerOptions, ): Effect.Effect< GetAccountSettingsCommandOutput, - Cause.TimeoutException | SdkError | ServiceError | TooManyRequestsError + Cause.TimeoutError | SdkError | ServiceError | TooManyRequestsError >; /** @@ -755,7 +750,7 @@ interface LambdaService$ { options?: HttpHandlerOptions, ): Effect.Effect< GetAliasCommandOutput, - | Cause.TimeoutException + | Cause.TimeoutError | SdkError | InvalidParameterValueError | ResourceNotFoundError @@ -771,7 +766,7 @@ interface LambdaService$ { options?: HttpHandlerOptions, ): Effect.Effect< GetCapacityProviderCommandOutput, - | Cause.TimeoutException + | Cause.TimeoutError | SdkError | InvalidParameterValueError | ResourceNotFoundError @@ -787,7 +782,7 @@ interface LambdaService$ { options?: HttpHandlerOptions, ): Effect.Effect< GetCodeSigningConfigCommandOutput, - Cause.TimeoutException | SdkError | InvalidParameterValueError | ResourceNotFoundError | ServiceError + Cause.TimeoutError | SdkError | InvalidParameterValueError | ResourceNotFoundError | ServiceError >; /** @@ -798,7 +793,7 @@ interface LambdaService$ { options?: HttpHandlerOptions, ): Effect.Effect< GetDurableExecutionCommandOutput, - | Cause.TimeoutException + | Cause.TimeoutError | SdkError | InvalidParameterValueError | ResourceNotFoundError @@ -814,7 +809,7 @@ interface LambdaService$ { options?: HttpHandlerOptions, ): Effect.Effect< GetDurableExecutionHistoryCommandOutput, - | Cause.TimeoutException + | Cause.TimeoutError | SdkError | InvalidParameterValueError | ResourceNotFoundError @@ -830,7 +825,7 @@ interface LambdaService$ { options?: HttpHandlerOptions, ): Effect.Effect< GetDurableExecutionStateCommandOutput, - Cause.TimeoutException | SdkError | InvalidParameterValueError | ServiceError | TooManyRequestsError + Cause.TimeoutError | SdkError | InvalidParameterValueError | ServiceError | TooManyRequestsError >; /** @@ -841,7 +836,7 @@ interface LambdaService$ { options?: HttpHandlerOptions, ): Effect.Effect< GetEventSourceMappingCommandOutput, - | Cause.TimeoutException + | Cause.TimeoutError | SdkError | InvalidParameterValueError | ResourceNotFoundError @@ -857,7 +852,7 @@ interface LambdaService$ { options?: HttpHandlerOptions, ): Effect.Effect< GetFunctionCommandOutput, - | Cause.TimeoutException + | Cause.TimeoutError | SdkError | InvalidParameterValueError | ResourceNotFoundError @@ -873,7 +868,7 @@ interface LambdaService$ { options?: HttpHandlerOptions, ): Effect.Effect< GetFunctionCodeSigningConfigCommandOutput, - | Cause.TimeoutException + | Cause.TimeoutError | SdkError | InvalidParameterValueError | ResourceNotFoundError @@ -889,7 +884,7 @@ interface LambdaService$ { options?: HttpHandlerOptions, ): Effect.Effect< GetFunctionConcurrencyCommandOutput, - | Cause.TimeoutException + | Cause.TimeoutError | SdkError | InvalidParameterValueError | ResourceNotFoundError @@ -905,7 +900,7 @@ interface LambdaService$ { options?: HttpHandlerOptions, ): Effect.Effect< GetFunctionConfigurationCommandOutput, - | Cause.TimeoutException + | Cause.TimeoutError | SdkError | InvalidParameterValueError | ResourceNotFoundError @@ -921,7 +916,7 @@ interface LambdaService$ { options?: HttpHandlerOptions, ): Effect.Effect< GetFunctionEventInvokeConfigCommandOutput, - | Cause.TimeoutException + | Cause.TimeoutError | SdkError | InvalidParameterValueError | ResourceNotFoundError @@ -937,7 +932,7 @@ interface LambdaService$ { options?: HttpHandlerOptions, ): Effect.Effect< GetFunctionRecursionConfigCommandOutput, - | Cause.TimeoutException + | Cause.TimeoutError | SdkError | InvalidParameterValueError | ResourceNotFoundError @@ -953,7 +948,7 @@ interface LambdaService$ { options?: HttpHandlerOptions, ): Effect.Effect< GetFunctionScalingConfigCommandOutput, - | Cause.TimeoutException + | Cause.TimeoutError | SdkError | InvalidParameterValueError | ResourceNotFoundError @@ -969,7 +964,7 @@ interface LambdaService$ { options?: HttpHandlerOptions, ): Effect.Effect< GetFunctionUrlConfigCommandOutput, - | Cause.TimeoutException + | Cause.TimeoutError | SdkError | InvalidParameterValueError | ResourceNotFoundError @@ -985,7 +980,7 @@ interface LambdaService$ { options?: HttpHandlerOptions, ): Effect.Effect< GetLayerVersionCommandOutput, - | Cause.TimeoutException + | Cause.TimeoutError | SdkError | InvalidParameterValueError | ResourceNotFoundError @@ -1001,7 +996,7 @@ interface LambdaService$ { options?: HttpHandlerOptions, ): Effect.Effect< GetLayerVersionByArnCommandOutput, - | Cause.TimeoutException + | Cause.TimeoutError | SdkError | InvalidParameterValueError | ResourceNotFoundError @@ -1017,7 +1012,7 @@ interface LambdaService$ { options?: HttpHandlerOptions, ): Effect.Effect< GetLayerVersionPolicyCommandOutput, - | Cause.TimeoutException + | Cause.TimeoutError | SdkError | InvalidParameterValueError | ResourceNotFoundError @@ -1033,7 +1028,7 @@ interface LambdaService$ { options?: HttpHandlerOptions, ): Effect.Effect< GetPolicyCommandOutput, - | Cause.TimeoutException + | Cause.TimeoutError | SdkError | InvalidParameterValueError | ResourceNotFoundError @@ -1049,7 +1044,7 @@ interface LambdaService$ { options?: HttpHandlerOptions, ): Effect.Effect< GetProvisionedConcurrencyConfigCommandOutput, - | Cause.TimeoutException + | Cause.TimeoutError | SdkError | InvalidParameterValueError | ProvisionedConcurrencyConfigNotFoundError @@ -1066,7 +1061,7 @@ interface LambdaService$ { options?: HttpHandlerOptions, ): Effect.Effect< GetRuntimeManagementConfigCommandOutput, - | Cause.TimeoutException + | Cause.TimeoutError | SdkError | InvalidParameterValueError | ResourceNotFoundError @@ -1082,7 +1077,7 @@ interface LambdaService$ { options?: HttpHandlerOptions, ): Effect.Effect< InvokeCommandOutput, - | Cause.TimeoutException + | Cause.TimeoutError | SdkError | DurableExecutionAlreadyStartedError | EC2AccessDeniedError @@ -1127,7 +1122,7 @@ interface LambdaService$ { options?: HttpHandlerOptions, ): Effect.Effect< InvokeAsyncCommandOutput, - | Cause.TimeoutException + | Cause.TimeoutError | SdkError | InvalidRequestContentError | InvalidRuntimeError @@ -1144,7 +1139,7 @@ interface LambdaService$ { options?: HttpHandlerOptions, ): Effect.Effect< InvokeWithResponseStreamCommandOutput, - | Cause.TimeoutException + | Cause.TimeoutError | SdkError | EC2AccessDeniedError | EC2ThrottledError @@ -1188,7 +1183,7 @@ interface LambdaService$ { options?: HttpHandlerOptions, ): Effect.Effect< ListAliasesCommandOutput, - | Cause.TimeoutException + | Cause.TimeoutError | SdkError | InvalidParameterValueError | ResourceNotFoundError @@ -1204,7 +1199,7 @@ interface LambdaService$ { options?: HttpHandlerOptions, ): Effect.Effect< ListCapacityProvidersCommandOutput, - Cause.TimeoutException | SdkError | InvalidParameterValueError | ServiceError | TooManyRequestsError + Cause.TimeoutError | SdkError | InvalidParameterValueError | ServiceError | TooManyRequestsError >; /** @@ -1215,7 +1210,7 @@ interface LambdaService$ { options?: HttpHandlerOptions, ): Effect.Effect< ListCodeSigningConfigsCommandOutput, - Cause.TimeoutException | SdkError | InvalidParameterValueError | ServiceError + Cause.TimeoutError | SdkError | InvalidParameterValueError | ServiceError >; /** @@ -1226,7 +1221,7 @@ interface LambdaService$ { options?: HttpHandlerOptions, ): Effect.Effect< ListDurableExecutionsByFunctionCommandOutput, - | Cause.TimeoutException + | Cause.TimeoutError | SdkError | InvalidParameterValueError | ResourceNotFoundError @@ -1242,7 +1237,7 @@ interface LambdaService$ { options?: HttpHandlerOptions, ): Effect.Effect< ListEventSourceMappingsCommandOutput, - | Cause.TimeoutException + | Cause.TimeoutError | SdkError | InvalidParameterValueError | ResourceNotFoundError @@ -1258,7 +1253,7 @@ interface LambdaService$ { options?: HttpHandlerOptions, ): Effect.Effect< ListFunctionEventInvokeConfigsCommandOutput, - | Cause.TimeoutException + | Cause.TimeoutError | SdkError | InvalidParameterValueError | ResourceNotFoundError @@ -1274,7 +1269,7 @@ interface LambdaService$ { options?: HttpHandlerOptions, ): Effect.Effect< ListFunctionUrlConfigsCommandOutput, - | Cause.TimeoutException + | Cause.TimeoutError | SdkError | InvalidParameterValueError | ResourceNotFoundError @@ -1290,7 +1285,7 @@ interface LambdaService$ { options?: HttpHandlerOptions, ): Effect.Effect< ListFunctionVersionsByCapacityProviderCommandOutput, - | Cause.TimeoutException + | Cause.TimeoutError | SdkError | InvalidParameterValueError | ResourceNotFoundError @@ -1306,7 +1301,7 @@ interface LambdaService$ { options?: HttpHandlerOptions, ): Effect.Effect< ListFunctionsCommandOutput, - Cause.TimeoutException | SdkError | InvalidParameterValueError | ServiceError | TooManyRequestsError + Cause.TimeoutError | SdkError | InvalidParameterValueError | ServiceError | TooManyRequestsError >; /** @@ -1317,7 +1312,7 @@ interface LambdaService$ { options?: HttpHandlerOptions, ): Effect.Effect< ListFunctionsByCodeSigningConfigCommandOutput, - Cause.TimeoutException | SdkError | InvalidParameterValueError | ResourceNotFoundError | ServiceError + Cause.TimeoutError | SdkError | InvalidParameterValueError | ResourceNotFoundError | ServiceError >; /** @@ -1328,7 +1323,7 @@ interface LambdaService$ { options?: HttpHandlerOptions, ): Effect.Effect< ListLayerVersionsCommandOutput, - | Cause.TimeoutException + | Cause.TimeoutError | SdkError | InvalidParameterValueError | ResourceNotFoundError @@ -1344,7 +1339,7 @@ interface LambdaService$ { options?: HttpHandlerOptions, ): Effect.Effect< ListLayersCommandOutput, - Cause.TimeoutException | SdkError | InvalidParameterValueError | ServiceError | TooManyRequestsError + Cause.TimeoutError | SdkError | InvalidParameterValueError | ServiceError | TooManyRequestsError >; /** @@ -1355,7 +1350,7 @@ interface LambdaService$ { options?: HttpHandlerOptions, ): Effect.Effect< ListProvisionedConcurrencyConfigsCommandOutput, - | Cause.TimeoutException + | Cause.TimeoutError | SdkError | InvalidParameterValueError | ResourceNotFoundError @@ -1371,7 +1366,7 @@ interface LambdaService$ { options?: HttpHandlerOptions, ): Effect.Effect< ListTagsCommandOutput, - | Cause.TimeoutException + | Cause.TimeoutError | SdkError | InvalidParameterValueError | ResourceNotFoundError @@ -1387,7 +1382,7 @@ interface LambdaService$ { options?: HttpHandlerOptions, ): Effect.Effect< ListVersionsByFunctionCommandOutput, - | Cause.TimeoutException + | Cause.TimeoutError | SdkError | InvalidParameterValueError | ResourceNotFoundError @@ -1403,7 +1398,7 @@ interface LambdaService$ { options?: HttpHandlerOptions, ): Effect.Effect< PublishLayerVersionCommandOutput, - | Cause.TimeoutException + | Cause.TimeoutError | SdkError | CodeStorageExceededError | InvalidParameterValueError @@ -1420,7 +1415,7 @@ interface LambdaService$ { options?: HttpHandlerOptions, ): Effect.Effect< PublishVersionCommandOutput, - | Cause.TimeoutException + | Cause.TimeoutError | SdkError | CodeStorageExceededError | FunctionVersionsPerCapacityProviderLimitExceededError @@ -1440,7 +1435,7 @@ interface LambdaService$ { options?: HttpHandlerOptions, ): Effect.Effect< PutFunctionCodeSigningConfigCommandOutput, - | Cause.TimeoutException + | Cause.TimeoutError | SdkError | CodeSigningConfigNotFoundError | InvalidParameterValueError @@ -1458,7 +1453,7 @@ interface LambdaService$ { options?: HttpHandlerOptions, ): Effect.Effect< PutFunctionConcurrencyCommandOutput, - | Cause.TimeoutException + | Cause.TimeoutError | SdkError | InvalidParameterValueError | ResourceConflictError @@ -1475,7 +1470,7 @@ interface LambdaService$ { options?: HttpHandlerOptions, ): Effect.Effect< PutFunctionEventInvokeConfigCommandOutput, - | Cause.TimeoutException + | Cause.TimeoutError | SdkError | InvalidParameterValueError | ResourceConflictError @@ -1492,7 +1487,7 @@ interface LambdaService$ { options?: HttpHandlerOptions, ): Effect.Effect< PutFunctionRecursionConfigCommandOutput, - | Cause.TimeoutException + | Cause.TimeoutError | SdkError | InvalidParameterValueError | ResourceConflictError @@ -1509,7 +1504,7 @@ interface LambdaService$ { options?: HttpHandlerOptions, ): Effect.Effect< PutFunctionScalingConfigCommandOutput, - | Cause.TimeoutException + | Cause.TimeoutError | SdkError | InvalidParameterValueError | ResourceConflictError @@ -1526,7 +1521,7 @@ interface LambdaService$ { options?: HttpHandlerOptions, ): Effect.Effect< PutProvisionedConcurrencyConfigCommandOutput, - | Cause.TimeoutException + | Cause.TimeoutError | SdkError | InvalidParameterValueError | ResourceConflictError @@ -1543,7 +1538,7 @@ interface LambdaService$ { options?: HttpHandlerOptions, ): Effect.Effect< PutRuntimeManagementConfigCommandOutput, - | Cause.TimeoutException + | Cause.TimeoutError | SdkError | InvalidParameterValueError | ResourceConflictError @@ -1560,7 +1555,7 @@ interface LambdaService$ { options?: HttpHandlerOptions, ): Effect.Effect< RemoveLayerVersionPermissionCommandOutput, - | Cause.TimeoutException + | Cause.TimeoutError | SdkError | InvalidParameterValueError | PreconditionFailedError @@ -1577,7 +1572,7 @@ interface LambdaService$ { options?: HttpHandlerOptions, ): Effect.Effect< RemovePermissionCommandOutput, - | Cause.TimeoutException + | Cause.TimeoutError | SdkError | InvalidParameterValueError | PreconditionFailedError @@ -1594,7 +1589,7 @@ interface LambdaService$ { options?: HttpHandlerOptions, ): Effect.Effect< SendDurableExecutionCallbackFailureCommandOutput, - | Cause.TimeoutException + | Cause.TimeoutError | SdkError | CallbackTimeoutError | InvalidParameterValueError @@ -1610,7 +1605,7 @@ interface LambdaService$ { options?: HttpHandlerOptions, ): Effect.Effect< SendDurableExecutionCallbackHeartbeatCommandOutput, - | Cause.TimeoutException + | Cause.TimeoutError | SdkError | CallbackTimeoutError | InvalidParameterValueError @@ -1626,7 +1621,7 @@ interface LambdaService$ { options?: HttpHandlerOptions, ): Effect.Effect< SendDurableExecutionCallbackSuccessCommandOutput, - | Cause.TimeoutException + | Cause.TimeoutError | SdkError | CallbackTimeoutError | InvalidParameterValueError @@ -1642,7 +1637,7 @@ interface LambdaService$ { options?: HttpHandlerOptions, ): Effect.Effect< StopDurableExecutionCommandOutput, - | Cause.TimeoutException + | Cause.TimeoutError | SdkError | InvalidParameterValueError | ResourceNotFoundError @@ -1658,7 +1653,7 @@ interface LambdaService$ { options?: HttpHandlerOptions, ): Effect.Effect< TagResourceCommandOutput, - | Cause.TimeoutException + | Cause.TimeoutError | SdkError | InvalidParameterValueError | ResourceConflictError @@ -1675,7 +1670,7 @@ interface LambdaService$ { options?: HttpHandlerOptions, ): Effect.Effect< UntagResourceCommandOutput, - | Cause.TimeoutException + | Cause.TimeoutError | SdkError | InvalidParameterValueError | ResourceConflictError @@ -1692,7 +1687,7 @@ interface LambdaService$ { options?: HttpHandlerOptions, ): Effect.Effect< UpdateAliasCommandOutput, - | Cause.TimeoutException + | Cause.TimeoutError | SdkError | InvalidParameterValueError | PreconditionFailedError @@ -1710,7 +1705,7 @@ interface LambdaService$ { options?: HttpHandlerOptions, ): Effect.Effect< UpdateCapacityProviderCommandOutput, - | Cause.TimeoutException + | Cause.TimeoutError | SdkError | InvalidParameterValueError | ResourceConflictError @@ -1727,7 +1722,7 @@ interface LambdaService$ { options?: HttpHandlerOptions, ): Effect.Effect< UpdateCodeSigningConfigCommandOutput, - Cause.TimeoutException | SdkError | InvalidParameterValueError | ResourceNotFoundError | ServiceError + Cause.TimeoutError | SdkError | InvalidParameterValueError | ResourceNotFoundError | ServiceError >; /** @@ -1738,7 +1733,7 @@ interface LambdaService$ { options?: HttpHandlerOptions, ): Effect.Effect< UpdateEventSourceMappingCommandOutput, - | Cause.TimeoutException + | Cause.TimeoutError | SdkError | InvalidParameterValueError | ResourceConflictError @@ -1756,7 +1751,7 @@ interface LambdaService$ { options?: HttpHandlerOptions, ): Effect.Effect< UpdateFunctionCodeCommandOutput, - | Cause.TimeoutException + | Cause.TimeoutError | SdkError | CodeSigningConfigNotFoundError | CodeStorageExceededError @@ -1778,7 +1773,7 @@ interface LambdaService$ { options?: HttpHandlerOptions, ): Effect.Effect< UpdateFunctionConfigurationCommandOutput, - | Cause.TimeoutException + | Cause.TimeoutError | SdkError | CodeSigningConfigNotFoundError | CodeVerificationFailedError @@ -1799,7 +1794,7 @@ interface LambdaService$ { options?: HttpHandlerOptions, ): Effect.Effect< UpdateFunctionEventInvokeConfigCommandOutput, - | Cause.TimeoutException + | Cause.TimeoutError | SdkError | InvalidParameterValueError | ResourceConflictError @@ -1816,7 +1811,7 @@ interface LambdaService$ { options?: HttpHandlerOptions, ): Effect.Effect< UpdateFunctionUrlConfigCommandOutput, - | Cause.TimeoutException + | Cause.TimeoutError | SdkError | InvalidParameterValueError | ResourceConflictError @@ -1847,10 +1842,10 @@ export const makeLambdaService = Effect.gen(function*() { * @since 1.0.0 * @category models */ -export class LambdaService extends Effect.Tag("@effect-aws/client-lambda/LambdaService")< +export class LambdaService extends ServiceMap.Service< LambdaService, LambdaService$ ->() { +>()("@effect-aws/client-lambda/LambdaService") { static readonly defaultLayer = Layer.effect(this, makeLambdaService).pipe(Layer.provide(Instance.layer)); static readonly layer = (config: LambdaService.Config) => Layer.effect(this, makeLambdaService).pipe( diff --git a/packages/client-lambda/src/LambdaServiceConfig.ts b/packages/client-lambda/src/LambdaServiceConfig.ts index 859f6fc2..e11b163d 100644 --- a/packages/client-lambda/src/LambdaServiceConfig.ts +++ b/packages/client-lambda/src/LambdaServiceConfig.ts @@ -3,18 +3,17 @@ */ import type { LambdaClientConfig } from "@aws-sdk/client-lambda"; import { ServiceLogger } from "@effect-aws/commons"; -import { Effect, FiberRef, Layer } from "effect"; +import { Effect, Layer, ServiceMap } from "effect"; import { dual } from "effect/Function"; -import { globalValue } from "effect/GlobalValue"; import type { LambdaService } from "./LambdaService.js"; /** * @since 1.0.0 * @category lambda service config */ -const currentLambdaServiceConfig = globalValue( +const currentLambdaServiceConfig = ServiceMap.Reference( "@effect-aws/client-lambda/currentLambdaServiceConfig", - () => FiberRef.unsafeMake({}), + { defaultValue: () => ({}) }, ); /** @@ -27,7 +26,7 @@ export const withLambdaServiceConfig: { } = dual( 2, (effect: Effect.Effect, config: LambdaService.Config): Effect.Effect => - Effect.locally(effect, currentLambdaServiceConfig, config), + Effect.provideService(effect, currentLambdaServiceConfig, config), ); /** @@ -35,14 +34,14 @@ export const withLambdaServiceConfig: { * @category lambda service config */ export const setLambdaServiceConfig = (config: LambdaService.Config) => - Layer.locallyScoped(currentLambdaServiceConfig, config); + Layer.succeed(currentLambdaServiceConfig, config); /** * @since 1.0.0 * @category adapters */ export const toLambdaClientConfig: Effect.Effect = Effect.gen(function*() { - const { logger: serviceLogger, ...config } = yield* FiberRef.get(currentLambdaServiceConfig); + const { logger: serviceLogger, ...config } = yield* currentLambdaServiceConfig; const logger = serviceLogger === true ? yield* ServiceLogger.toClientLogger(ServiceLogger.defaultServiceLogger) diff --git a/packages/client-lambda/test/Lambda.test.ts b/packages/client-lambda/test/Lambda.test.ts index d12376c4..796fc9c0 100644 --- a/packages/client-lambda/test/Lambda.test.ts +++ b/packages/client-lambda/test/Lambda.test.ts @@ -21,7 +21,7 @@ describe("LambdaClientImpl", () => { const args: InvokeCommandInput = { FunctionName: "test", Payload: "test" }; - const program = Lambda.invoke(args); + const program = Lambda.use((svc) => svc.invoke(args)); const result = await pipe( program, @@ -41,7 +41,7 @@ describe("LambdaClientImpl", () => { const args: InvokeCommandInput = { FunctionName: "test", Payload: "test" }; - const program = Lambda.invoke(args); + const program = Lambda.use((svc) => svc.invoke(args)); const result = await pipe( program, @@ -64,7 +64,7 @@ describe("LambdaClientImpl", () => { const args: InvokeCommandInput = { FunctionName: "test", Payload: "test" }; - const program = Lambda.invoke(args); + const program = Lambda.use((svc) => svc.invoke(args)); const result = await pipe( program, @@ -88,7 +88,7 @@ describe("LambdaClientImpl", () => { const args: InvokeCommandInput = { FunctionName: "test", Payload: "test" }; - const program = Lambda.invoke(args); + const program = Lambda.use((svc) => svc.invoke(args)); const result = await pipe( program, @@ -116,7 +116,7 @@ describe("LambdaClientImpl", () => { const args: InvokeCommandInput = { FunctionName: "test", Payload: "test" }; - const program = Lambda.invoke(args); + const program = Lambda.use((svc) => svc.invoke(args)); const result = await pipe( program, @@ -126,7 +126,7 @@ describe("LambdaClientImpl", () => { expect(result).toEqual( Exit.fail( - SdkError({ + new SdkError({ ...new Error("test"), name: "SdkError", message: "test", @@ -151,7 +151,7 @@ describe("LambdaClientImpl", () => { const args: InvokeCommandInput = { FunctionName: "test", Payload: "test" }; - const program = Lambda.invoke(args).pipe( + const program = Lambda.use((svc) => svc.invoke(args)).pipe( Effect.catchTag("NotHandledException" as any, () => Effect.succeed(null)), ); @@ -161,9 +161,9 @@ describe("LambdaClientImpl", () => { Effect.runPromiseExit, ); - expect(result).toEqual( + expect(result).toContainEqual( Exit.fail( - SdkError({ + new SdkError({ ...new Error("test"), name: "SdkError", message: "test", diff --git a/packages/client-mq/.projen/deps.json b/packages/client-mq/.projen/deps.json index 30029a74..ccebf84c 100644 --- a/packages/client-mq/.projen/deps.json +++ b/packages/client-mq/.projen/deps.json @@ -7,6 +7,7 @@ }, { "name": "effect", + "version": "4.0.0-beta.8", "type": "build" }, { @@ -16,7 +17,7 @@ }, { "name": "effect", - "version": ">=3.0.4 <4.0.0", + "version": ">=4.0.0 <5.0.0", "type": "peer" }, { diff --git a/packages/client-mq/README.md b/packages/client-mq/README.md index 69666dde..af82ddc1 100644 --- a/packages/client-mq/README.md +++ b/packages/client-mq/README.md @@ -16,7 +16,7 @@ With default MqClient instance: ```typescript import { Mq } from "@effect-aws/client-mq"; -const program = Mq.listBrokers(args); +const program = Mq.use((svc) => svc.listBrokers(args)); const result = pipe( program, @@ -30,7 +30,7 @@ With custom MqClient instance: ```typescript import { Mq } from "@effect-aws/client-mq"; -const program = Mq.listBrokers(args); +const program = Mq.use((svc) => svc.listBrokers(args)); const result = await pipe( program, @@ -46,7 +46,7 @@ With custom MqClient configuration: ```typescript import { Mq } from "@effect-aws/client-mq"; -const program = Mq.listBrokers(args); +const program = Mq.use((svc) => svc.listBrokers(args)); const result = await pipe( program, diff --git a/packages/client-mq/package.json b/packages/client-mq/package.json index 07e795b1..7406c635 100644 --- a/packages/client-mq/package.json +++ b/packages/client-mq/package.json @@ -26,11 +26,11 @@ }, "devDependencies": { "@types/node": "ts5.4", - "effect": "^3.16.4", + "effect": "4.0.0-beta.8", "typescript": "^5.4.2" }, "peerDependencies": { - "effect": ">=3.0.4 <4.0.0" + "effect": ">=4.0.0 <5.0.0" }, "dependencies": { "@aws-sdk/client-mq": "^3", diff --git a/packages/client-mq/src/MqClientInstance.ts b/packages/client-mq/src/MqClientInstance.ts index 55e74161..a3783698 100644 --- a/packages/client-mq/src/MqClientInstance.ts +++ b/packages/client-mq/src/MqClientInstance.ts @@ -2,16 +2,16 @@ * @since 1.0.0 */ import { MqClient } from "@aws-sdk/client-mq"; -import { Context, Effect, Layer } from "effect"; +import { Effect, Layer, ServiceMap } from "effect"; import * as MqServiceConfig from "./MqServiceConfig.js"; /** * @since 1.0.0 * @category tags */ -export class MqClientInstance extends Context.Tag( +export class MqClientInstance extends ServiceMap.Service()( "@effect-aws/client-mq/MqClientInstance", -)() {} +) {} /** * @since 1.0.0 @@ -30,4 +30,4 @@ export const make = Effect.flatMap( * @since 1.0.0 * @category layers */ -export const layer = Layer.scoped(MqClientInstance, make); +export const layer = Layer.effect(MqClientInstance, make); diff --git a/packages/client-mq/src/MqService.ts b/packages/client-mq/src/MqService.ts index 99394b67..aef8ccac 100644 --- a/packages/client-mq/src/MqService.ts +++ b/packages/client-mq/src/MqService.ts @@ -80,7 +80,7 @@ import { import type { HttpHandlerOptions, ServiceLogger } from "@effect-aws/commons"; import { Service } from "@effect-aws/commons"; import type { Cause } from "effect"; -import { Effect, Layer } from "effect"; +import { Effect, Layer, ServiceMap } from "effect"; import type { BadRequestError, ConflictError, @@ -132,7 +132,7 @@ interface MqService$ { options?: HttpHandlerOptions, ): Effect.Effect< CreateBrokerCommandOutput, - | Cause.TimeoutException + | Cause.TimeoutError | SdkError | BadRequestError | ConflictError @@ -149,7 +149,7 @@ interface MqService$ { options?: HttpHandlerOptions, ): Effect.Effect< CreateConfigurationCommandOutput, - Cause.TimeoutException | SdkError | BadRequestError | ConflictError | ForbiddenError | InternalServerError + Cause.TimeoutError | SdkError | BadRequestError | ConflictError | ForbiddenError | InternalServerError >; /** @@ -160,7 +160,7 @@ interface MqService$ { options?: HttpHandlerOptions, ): Effect.Effect< CreateTagsCommandOutput, - Cause.TimeoutException | SdkError | BadRequestError | ForbiddenError | InternalServerError | NotFoundError + Cause.TimeoutError | SdkError | BadRequestError | ForbiddenError | InternalServerError | NotFoundError >; /** @@ -171,7 +171,7 @@ interface MqService$ { options?: HttpHandlerOptions, ): Effect.Effect< CreateUserCommandOutput, - | Cause.TimeoutException + | Cause.TimeoutError | SdkError | BadRequestError | ConflictError @@ -188,7 +188,7 @@ interface MqService$ { options?: HttpHandlerOptions, ): Effect.Effect< DeleteBrokerCommandOutput, - Cause.TimeoutException | SdkError | BadRequestError | ForbiddenError | InternalServerError | NotFoundError + Cause.TimeoutError | SdkError | BadRequestError | ForbiddenError | InternalServerError | NotFoundError >; /** @@ -199,7 +199,7 @@ interface MqService$ { options?: HttpHandlerOptions, ): Effect.Effect< DeleteConfigurationCommandOutput, - | Cause.TimeoutException + | Cause.TimeoutError | SdkError | BadRequestError | ConflictError @@ -216,7 +216,7 @@ interface MqService$ { options?: HttpHandlerOptions, ): Effect.Effect< DeleteTagsCommandOutput, - Cause.TimeoutException | SdkError | BadRequestError | ForbiddenError | InternalServerError | NotFoundError + Cause.TimeoutError | SdkError | BadRequestError | ForbiddenError | InternalServerError | NotFoundError >; /** @@ -227,7 +227,7 @@ interface MqService$ { options?: HttpHandlerOptions, ): Effect.Effect< DeleteUserCommandOutput, - Cause.TimeoutException | SdkError | BadRequestError | ForbiddenError | InternalServerError | NotFoundError + Cause.TimeoutError | SdkError | BadRequestError | ForbiddenError | InternalServerError | NotFoundError >; /** @@ -238,7 +238,7 @@ interface MqService$ { options?: HttpHandlerOptions, ): Effect.Effect< DescribeBrokerCommandOutput, - Cause.TimeoutException | SdkError | BadRequestError | ForbiddenError | InternalServerError | NotFoundError + Cause.TimeoutError | SdkError | BadRequestError | ForbiddenError | InternalServerError | NotFoundError >; /** @@ -249,7 +249,7 @@ interface MqService$ { options?: HttpHandlerOptions, ): Effect.Effect< DescribeBrokerEngineTypesCommandOutput, - Cause.TimeoutException | SdkError | BadRequestError | ForbiddenError | InternalServerError + Cause.TimeoutError | SdkError | BadRequestError | ForbiddenError | InternalServerError >; /** @@ -260,7 +260,7 @@ interface MqService$ { options?: HttpHandlerOptions, ): Effect.Effect< DescribeBrokerInstanceOptionsCommandOutput, - Cause.TimeoutException | SdkError | BadRequestError | ForbiddenError | InternalServerError + Cause.TimeoutError | SdkError | BadRequestError | ForbiddenError | InternalServerError >; /** @@ -271,7 +271,7 @@ interface MqService$ { options?: HttpHandlerOptions, ): Effect.Effect< DescribeConfigurationCommandOutput, - Cause.TimeoutException | SdkError | BadRequestError | ForbiddenError | InternalServerError | NotFoundError + Cause.TimeoutError | SdkError | BadRequestError | ForbiddenError | InternalServerError | NotFoundError >; /** @@ -282,7 +282,7 @@ interface MqService$ { options?: HttpHandlerOptions, ): Effect.Effect< DescribeConfigurationRevisionCommandOutput, - Cause.TimeoutException | SdkError | BadRequestError | ForbiddenError | InternalServerError | NotFoundError + Cause.TimeoutError | SdkError | BadRequestError | ForbiddenError | InternalServerError | NotFoundError >; /** @@ -293,7 +293,7 @@ interface MqService$ { options?: HttpHandlerOptions, ): Effect.Effect< DescribeUserCommandOutput, - Cause.TimeoutException | SdkError | BadRequestError | ForbiddenError | InternalServerError | NotFoundError + Cause.TimeoutError | SdkError | BadRequestError | ForbiddenError | InternalServerError | NotFoundError >; /** @@ -304,7 +304,7 @@ interface MqService$ { options?: HttpHandlerOptions, ): Effect.Effect< ListBrokersCommandOutput, - Cause.TimeoutException | SdkError | BadRequestError | ForbiddenError | InternalServerError + Cause.TimeoutError | SdkError | BadRequestError | ForbiddenError | InternalServerError >; /** @@ -315,7 +315,7 @@ interface MqService$ { options?: HttpHandlerOptions, ): Effect.Effect< ListConfigurationRevisionsCommandOutput, - Cause.TimeoutException | SdkError | BadRequestError | ForbiddenError | InternalServerError | NotFoundError + Cause.TimeoutError | SdkError | BadRequestError | ForbiddenError | InternalServerError | NotFoundError >; /** @@ -326,7 +326,7 @@ interface MqService$ { options?: HttpHandlerOptions, ): Effect.Effect< ListConfigurationsCommandOutput, - Cause.TimeoutException | SdkError | BadRequestError | ForbiddenError | InternalServerError + Cause.TimeoutError | SdkError | BadRequestError | ForbiddenError | InternalServerError >; /** @@ -337,7 +337,7 @@ interface MqService$ { options?: HttpHandlerOptions, ): Effect.Effect< ListTagsCommandOutput, - Cause.TimeoutException | SdkError | BadRequestError | ForbiddenError | InternalServerError | NotFoundError + Cause.TimeoutError | SdkError | BadRequestError | ForbiddenError | InternalServerError | NotFoundError >; /** @@ -348,7 +348,7 @@ interface MqService$ { options?: HttpHandlerOptions, ): Effect.Effect< ListUsersCommandOutput, - Cause.TimeoutException | SdkError | BadRequestError | ForbiddenError | InternalServerError | NotFoundError + Cause.TimeoutError | SdkError | BadRequestError | ForbiddenError | InternalServerError | NotFoundError >; /** @@ -359,7 +359,7 @@ interface MqService$ { options?: HttpHandlerOptions, ): Effect.Effect< PromoteCommandOutput, - Cause.TimeoutException | SdkError | BadRequestError | ForbiddenError | InternalServerError | NotFoundError + Cause.TimeoutError | SdkError | BadRequestError | ForbiddenError | InternalServerError | NotFoundError >; /** @@ -370,7 +370,7 @@ interface MqService$ { options?: HttpHandlerOptions, ): Effect.Effect< RebootBrokerCommandOutput, - Cause.TimeoutException | SdkError | BadRequestError | ForbiddenError | InternalServerError | NotFoundError + Cause.TimeoutError | SdkError | BadRequestError | ForbiddenError | InternalServerError | NotFoundError >; /** @@ -381,7 +381,7 @@ interface MqService$ { options?: HttpHandlerOptions, ): Effect.Effect< UpdateBrokerCommandOutput, - | Cause.TimeoutException + | Cause.TimeoutError | SdkError | BadRequestError | ConflictError @@ -398,7 +398,7 @@ interface MqService$ { options?: HttpHandlerOptions, ): Effect.Effect< UpdateConfigurationCommandOutput, - | Cause.TimeoutException + | Cause.TimeoutError | SdkError | BadRequestError | ConflictError @@ -415,7 +415,7 @@ interface MqService$ { options?: HttpHandlerOptions, ): Effect.Effect< UpdateUserCommandOutput, - | Cause.TimeoutException + | Cause.TimeoutError | SdkError | BadRequestError | ConflictError @@ -446,10 +446,10 @@ export const makeMqService = Effect.gen(function*() { * @since 1.0.0 * @category models */ -export class MqService extends Effect.Tag("@effect-aws/client-mq/MqService")< +export class MqService extends ServiceMap.Service< MqService, MqService$ ->() { +>()("@effect-aws/client-mq/MqService") { static readonly defaultLayer = Layer.effect(this, makeMqService).pipe(Layer.provide(Instance.layer)); static readonly layer = (config: MqService.Config) => Layer.effect(this, makeMqService).pipe( diff --git a/packages/client-mq/src/MqServiceConfig.ts b/packages/client-mq/src/MqServiceConfig.ts index 186bf1f9..f86059e8 100644 --- a/packages/client-mq/src/MqServiceConfig.ts +++ b/packages/client-mq/src/MqServiceConfig.ts @@ -3,18 +3,17 @@ */ import type { MqClientConfig } from "@aws-sdk/client-mq"; import { ServiceLogger } from "@effect-aws/commons"; -import { Effect, FiberRef, Layer } from "effect"; +import { Effect, Layer, ServiceMap } from "effect"; import { dual } from "effect/Function"; -import { globalValue } from "effect/GlobalValue"; import type { MqService } from "./MqService.js"; /** * @since 1.0.0 * @category mq service config */ -const currentMqServiceConfig = globalValue( +const currentMqServiceConfig = ServiceMap.Reference( "@effect-aws/client-mq/currentMqServiceConfig", - () => FiberRef.unsafeMake({}), + { defaultValue: () => ({}) }, ); /** @@ -27,21 +26,21 @@ export const withMqServiceConfig: { } = dual( 2, (effect: Effect.Effect, config: MqService.Config): Effect.Effect => - Effect.locally(effect, currentMqServiceConfig, config), + Effect.provideService(effect, currentMqServiceConfig, config), ); /** * @since 1.0.0 * @category mq service config */ -export const setMqServiceConfig = (config: MqService.Config) => Layer.locallyScoped(currentMqServiceConfig, config); +export const setMqServiceConfig = (config: MqService.Config) => Layer.succeed(currentMqServiceConfig, config); /** * @since 1.0.0 * @category adapters */ export const toMqClientConfig: Effect.Effect = Effect.gen(function*() { - const { logger: serviceLogger, ...config } = yield* FiberRef.get(currentMqServiceConfig); + const { logger: serviceLogger, ...config } = yield* currentMqServiceConfig; const logger = serviceLogger === true ? yield* ServiceLogger.toClientLogger(ServiceLogger.defaultServiceLogger) diff --git a/packages/client-mq/test/Mq.test.ts b/packages/client-mq/test/Mq.test.ts index 32ef1a7a..0cd1db1a 100644 --- a/packages/client-mq/test/Mq.test.ts +++ b/packages/client-mq/test/Mq.test.ts @@ -21,7 +21,7 @@ describe("MqClientImpl", () => { const args = {} as unknown as ListBrokersCommandInput; - const program = Mq.listBrokers(args); + const program = Mq.use((svc) => svc.listBrokers(args)); const result = await pipe( program, @@ -41,7 +41,7 @@ describe("MqClientImpl", () => { const args = {} as unknown as ListBrokersCommandInput; - const program = Mq.listBrokers(args); + const program = Mq.use((svc) => svc.listBrokers(args)); const result = await pipe( program, @@ -64,7 +64,7 @@ describe("MqClientImpl", () => { const args = {} as unknown as ListBrokersCommandInput; - const program = Mq.listBrokers(args); + const program = Mq.use((svc) => svc.listBrokers(args)); const result = await pipe( program, @@ -88,7 +88,7 @@ describe("MqClientImpl", () => { const args = {} as unknown as ListBrokersCommandInput; - const program = Mq.listBrokers(args); + const program = Mq.use((svc) => svc.listBrokers(args)); const result = await pipe( program, @@ -116,7 +116,7 @@ describe("MqClientImpl", () => { const args = {} as unknown as ListBrokersCommandInput; - const program = Mq.listBrokers(args); + const program = Mq.use((svc) => svc.listBrokers(args)); const result = await pipe( program, @@ -126,7 +126,7 @@ describe("MqClientImpl", () => { expect(result).toEqual( Exit.fail( - SdkError({ + new SdkError({ ...new Error("test"), name: "SdkError", message: "test", @@ -151,7 +151,7 @@ describe("MqClientImpl", () => { const args = {} as unknown as ListBrokersCommandInput; - const program = Mq.listBrokers(args).pipe( + const program = Mq.use((svc) => svc.listBrokers(args)).pipe( Effect.catchTag("NotHandledException" as any, () => Effect.succeed(null)), ); @@ -161,9 +161,9 @@ describe("MqClientImpl", () => { Effect.runPromiseExit, ); - expect(result).toEqual( + expect(result).toContainEqual( Exit.fail( - SdkError({ + new SdkError({ ...new Error("test"), name: "SdkError", message: "test", diff --git a/packages/client-opensearch-serverless/.projen/deps.json b/packages/client-opensearch-serverless/.projen/deps.json index e495ab3c..060d297d 100644 --- a/packages/client-opensearch-serverless/.projen/deps.json +++ b/packages/client-opensearch-serverless/.projen/deps.json @@ -7,6 +7,7 @@ }, { "name": "effect", + "version": "4.0.0-beta.8", "type": "build" }, { @@ -16,7 +17,7 @@ }, { "name": "effect", - "version": ">=3.0.4 <4.0.0", + "version": ">=4.0.0 <5.0.0", "type": "peer" }, { diff --git a/packages/client-opensearch-serverless/README.md b/packages/client-opensearch-serverless/README.md index 7727ef1a..8c362011 100644 --- a/packages/client-opensearch-serverless/README.md +++ b/packages/client-opensearch-serverless/README.md @@ -16,7 +16,7 @@ With default OpenSearchServerlessClient instance: ```typescript import { OpenSearchServerless } from "@effect-aws/client-opensearch-serverless"; -const program = OpenSearchServerless.listCollections(args); +const program = OpenSearchServerless.use((svc) => svc.listCollections(args)); const result = pipe( program, @@ -30,7 +30,7 @@ With custom OpenSearchServerlessClient instance: ```typescript import { OpenSearchServerless } from "@effect-aws/client-opensearch-serverless"; -const program = OpenSearchServerless.listCollections(args); +const program = OpenSearchServerless.use((svc) => svc.listCollections(args)); const result = await pipe( program, @@ -46,7 +46,7 @@ With custom OpenSearchServerlessClient configuration: ```typescript import { OpenSearchServerless } from "@effect-aws/client-opensearch-serverless"; -const program = OpenSearchServerless.listCollections(args); +const program = OpenSearchServerless.use((svc) => svc.listCollections(args)); const result = await pipe( program, diff --git a/packages/client-opensearch-serverless/package.json b/packages/client-opensearch-serverless/package.json index 4bffea22..2d4b9e2f 100644 --- a/packages/client-opensearch-serverless/package.json +++ b/packages/client-opensearch-serverless/package.json @@ -26,11 +26,11 @@ }, "devDependencies": { "@types/node": "ts5.4", - "effect": "^3.16.4", + "effect": "4.0.0-beta.8", "typescript": "^5.4.2" }, "peerDependencies": { - "effect": ">=3.0.4 <4.0.0" + "effect": ">=4.0.0 <5.0.0" }, "dependencies": { "@aws-sdk/client-opensearchserverless": "^3", diff --git a/packages/client-opensearch-serverless/src/OpenSearchServerlessClientInstance.ts b/packages/client-opensearch-serverless/src/OpenSearchServerlessClientInstance.ts index 7f191305..bfc11fa3 100644 --- a/packages/client-opensearch-serverless/src/OpenSearchServerlessClientInstance.ts +++ b/packages/client-opensearch-serverless/src/OpenSearchServerlessClientInstance.ts @@ -2,16 +2,18 @@ * @since 1.0.0 */ import { OpenSearchServerlessClient } from "@aws-sdk/client-opensearchserverless"; -import { Context, Effect, Layer } from "effect"; +import { Effect, Layer, ServiceMap } from "effect"; import * as OpenSearchServerlessServiceConfig from "./OpenSearchServerlessServiceConfig.js"; /** * @since 1.0.0 * @category tags */ -export class OpenSearchServerlessClientInstance extends Context.Tag( - "@effect-aws/client-opensearch-serverless/OpenSearchServerlessClientInstance", -)() {} +export class OpenSearchServerlessClientInstance + extends ServiceMap.Service()( + "@effect-aws/client-opensearch-serverless/OpenSearchServerlessClientInstance", + ) +{} /** * @since 1.0.0 @@ -30,4 +32,4 @@ export const make = Effect.flatMap( * @since 1.0.0 * @category layers */ -export const layer = Layer.scoped(OpenSearchServerlessClientInstance, make); +export const layer = Layer.effect(OpenSearchServerlessClientInstance, make); diff --git a/packages/client-opensearch-serverless/src/OpenSearchServerlessService.ts b/packages/client-opensearch-serverless/src/OpenSearchServerlessService.ts index f0eb6c0c..81a03f12 100644 --- a/packages/client-opensearch-serverless/src/OpenSearchServerlessService.ts +++ b/packages/client-opensearch-serverless/src/OpenSearchServerlessService.ts @@ -5,6 +5,9 @@ import { BatchGetCollectionCommand, type BatchGetCollectionCommandInput, type BatchGetCollectionCommandOutput, + BatchGetCollectionGroupCommand, + type BatchGetCollectionGroupCommandInput, + type BatchGetCollectionGroupCommandOutput, BatchGetEffectiveLifecyclePolicyCommand, type BatchGetEffectiveLifecyclePolicyCommandInput, type BatchGetEffectiveLifecyclePolicyCommandOutput, @@ -20,6 +23,9 @@ import { CreateCollectionCommand, type CreateCollectionCommandInput, type CreateCollectionCommandOutput, + CreateCollectionGroupCommand, + type CreateCollectionGroupCommandInput, + type CreateCollectionGroupCommandOutput, CreateIndexCommand, type CreateIndexCommandInput, type CreateIndexCommandOutput, @@ -41,6 +47,9 @@ import { DeleteCollectionCommand, type DeleteCollectionCommandInput, type DeleteCollectionCommandOutput, + DeleteCollectionGroupCommand, + type DeleteCollectionGroupCommandInput, + type DeleteCollectionGroupCommandOutput, DeleteIndexCommand, type DeleteIndexCommandInput, type DeleteIndexCommandOutput, @@ -77,6 +86,9 @@ import { ListAccessPoliciesCommand, type ListAccessPoliciesCommandInput, type ListAccessPoliciesCommandOutput, + ListCollectionGroupsCommand, + type ListCollectionGroupsCommandInput, + type ListCollectionGroupsCommandOutput, ListCollectionsCommand, type ListCollectionsCommandInput, type ListCollectionsCommandOutput, @@ -112,6 +124,9 @@ import { UpdateCollectionCommand, type UpdateCollectionCommandInput, type UpdateCollectionCommandOutput, + UpdateCollectionGroupCommand, + type UpdateCollectionGroupCommandInput, + type UpdateCollectionGroupCommandOutput, UpdateIndexCommand, type UpdateIndexCommandInput, type UpdateIndexCommandOutput, @@ -131,7 +146,7 @@ import { import type { HttpHandlerOptions, ServiceLogger } from "@effect-aws/commons"; import { Service } from "@effect-aws/commons"; import type { Cause } from "effect"; -import { Effect, Layer } from "effect"; +import { Effect, Layer, ServiceMap } from "effect"; import type { ConflictError, InternalServerError, @@ -147,11 +162,13 @@ import * as OpenSearchServerlessServiceConfig from "./OpenSearchServerlessServic const commands = { BatchGetCollectionCommand, + BatchGetCollectionGroupCommand, BatchGetEffectiveLifecyclePolicyCommand, BatchGetLifecyclePolicyCommand, BatchGetVpcEndpointCommand, CreateAccessPolicyCommand, CreateCollectionCommand, + CreateCollectionGroupCommand, CreateIndexCommand, CreateLifecyclePolicyCommand, CreateSecurityConfigCommand, @@ -159,6 +176,7 @@ const commands = { CreateVpcEndpointCommand, DeleteAccessPolicyCommand, DeleteCollectionCommand, + DeleteCollectionGroupCommand, DeleteIndexCommand, DeleteLifecyclePolicyCommand, DeleteSecurityConfigCommand, @@ -171,6 +189,7 @@ const commands = { GetSecurityConfigCommand, GetSecurityPolicyCommand, ListAccessPoliciesCommand, + ListCollectionGroupsCommand, ListCollectionsCommand, ListLifecyclePoliciesCommand, ListSecurityConfigsCommand, @@ -182,6 +201,7 @@ const commands = { UpdateAccessPolicyCommand, UpdateAccountSettingsCommand, UpdateCollectionCommand, + UpdateCollectionGroupCommand, UpdateIndexCommand, UpdateLifecyclePolicyCommand, UpdateSecurityConfigCommand, @@ -200,7 +220,18 @@ interface OpenSearchServerlessService$ { options?: HttpHandlerOptions, ): Effect.Effect< BatchGetCollectionCommandOutput, - Cause.TimeoutException | SdkError | InternalServerError | ValidationError + Cause.TimeoutError | SdkError | InternalServerError | ValidationError + >; + + /** + * @see {@link BatchGetCollectionGroupCommand} + */ + batchGetCollectionGroup( + args: BatchGetCollectionGroupCommandInput, + options?: HttpHandlerOptions, + ): Effect.Effect< + BatchGetCollectionGroupCommandOutput, + Cause.TimeoutError | SdkError | InternalServerError | ValidationError >; /** @@ -211,7 +242,7 @@ interface OpenSearchServerlessService$ { options?: HttpHandlerOptions, ): Effect.Effect< BatchGetEffectiveLifecyclePolicyCommandOutput, - Cause.TimeoutException | SdkError | InternalServerError | ValidationError + Cause.TimeoutError | SdkError | InternalServerError | ValidationError >; /** @@ -222,7 +253,7 @@ interface OpenSearchServerlessService$ { options?: HttpHandlerOptions, ): Effect.Effect< BatchGetLifecyclePolicyCommandOutput, - Cause.TimeoutException | SdkError | InternalServerError | ValidationError + Cause.TimeoutError | SdkError | InternalServerError | ValidationError >; /** @@ -233,7 +264,7 @@ interface OpenSearchServerlessService$ { options?: HttpHandlerOptions, ): Effect.Effect< BatchGetVpcEndpointCommandOutput, - Cause.TimeoutException | SdkError | InternalServerError | ValidationError + Cause.TimeoutError | SdkError | InternalServerError | ValidationError >; /** @@ -244,12 +275,7 @@ interface OpenSearchServerlessService$ { options?: HttpHandlerOptions, ): Effect.Effect< CreateAccessPolicyCommandOutput, - | Cause.TimeoutException - | SdkError - | ConflictError - | InternalServerError - | ServiceQuotaExceededError - | ValidationError + Cause.TimeoutError | SdkError | ConflictError | InternalServerError | ServiceQuotaExceededError | ValidationError >; /** @@ -260,7 +286,7 @@ interface OpenSearchServerlessService$ { options?: HttpHandlerOptions, ): Effect.Effect< CreateCollectionCommandOutput, - | Cause.TimeoutException + | Cause.TimeoutError | SdkError | ConflictError | InternalServerError @@ -269,6 +295,17 @@ interface OpenSearchServerlessService$ { | ValidationError >; + /** + * @see {@link CreateCollectionGroupCommand} + */ + createCollectionGroup( + args: CreateCollectionGroupCommandInput, + options?: HttpHandlerOptions, + ): Effect.Effect< + CreateCollectionGroupCommandOutput, + Cause.TimeoutError | SdkError | ConflictError | InternalServerError | ServiceQuotaExceededError | ValidationError + >; + /** * @see {@link CreateIndexCommand} */ @@ -277,7 +314,7 @@ interface OpenSearchServerlessService$ { options?: HttpHandlerOptions, ): Effect.Effect< CreateIndexCommandOutput, - Cause.TimeoutException | SdkError | ConflictError | InternalServerError | ResourceNotFoundError | ValidationError + Cause.TimeoutError | SdkError | ConflictError | InternalServerError | ResourceNotFoundError | ValidationError >; /** @@ -288,12 +325,7 @@ interface OpenSearchServerlessService$ { options?: HttpHandlerOptions, ): Effect.Effect< CreateLifecyclePolicyCommandOutput, - | Cause.TimeoutException - | SdkError - | ConflictError - | InternalServerError - | ServiceQuotaExceededError - | ValidationError + Cause.TimeoutError | SdkError | ConflictError | InternalServerError | ServiceQuotaExceededError | ValidationError >; /** @@ -304,12 +336,7 @@ interface OpenSearchServerlessService$ { options?: HttpHandlerOptions, ): Effect.Effect< CreateSecurityConfigCommandOutput, - | Cause.TimeoutException - | SdkError - | ConflictError - | InternalServerError - | ServiceQuotaExceededError - | ValidationError + Cause.TimeoutError | SdkError | ConflictError | InternalServerError | ServiceQuotaExceededError | ValidationError >; /** @@ -320,12 +347,7 @@ interface OpenSearchServerlessService$ { options?: HttpHandlerOptions, ): Effect.Effect< CreateSecurityPolicyCommandOutput, - | Cause.TimeoutException - | SdkError - | ConflictError - | InternalServerError - | ServiceQuotaExceededError - | ValidationError + Cause.TimeoutError | SdkError | ConflictError | InternalServerError | ServiceQuotaExceededError | ValidationError >; /** @@ -336,12 +358,7 @@ interface OpenSearchServerlessService$ { options?: HttpHandlerOptions, ): Effect.Effect< CreateVpcEndpointCommandOutput, - | Cause.TimeoutException - | SdkError - | ConflictError - | InternalServerError - | ServiceQuotaExceededError - | ValidationError + Cause.TimeoutError | SdkError | ConflictError | InternalServerError | ServiceQuotaExceededError | ValidationError >; /** @@ -352,7 +369,7 @@ interface OpenSearchServerlessService$ { options?: HttpHandlerOptions, ): Effect.Effect< DeleteAccessPolicyCommandOutput, - Cause.TimeoutException | SdkError | ConflictError | InternalServerError | ResourceNotFoundError | ValidationError + Cause.TimeoutError | SdkError | ConflictError | InternalServerError | ResourceNotFoundError | ValidationError >; /** @@ -363,7 +380,18 @@ interface OpenSearchServerlessService$ { options?: HttpHandlerOptions, ): Effect.Effect< DeleteCollectionCommandOutput, - Cause.TimeoutException | SdkError | ConflictError | InternalServerError | ResourceNotFoundError | ValidationError + Cause.TimeoutError | SdkError | ConflictError | InternalServerError | ResourceNotFoundError | ValidationError + >; + + /** + * @see {@link DeleteCollectionGroupCommand} + */ + deleteCollectionGroup( + args: DeleteCollectionGroupCommandInput, + options?: HttpHandlerOptions, + ): Effect.Effect< + DeleteCollectionGroupCommandOutput, + Cause.TimeoutError | SdkError | ConflictError | InternalServerError | ResourceNotFoundError | ValidationError >; /** @@ -374,7 +402,7 @@ interface OpenSearchServerlessService$ { options?: HttpHandlerOptions, ): Effect.Effect< DeleteIndexCommandOutput, - Cause.TimeoutException | SdkError | InternalServerError | ResourceNotFoundError | ValidationError + Cause.TimeoutError | SdkError | InternalServerError | ResourceNotFoundError | ValidationError >; /** @@ -385,7 +413,7 @@ interface OpenSearchServerlessService$ { options?: HttpHandlerOptions, ): Effect.Effect< DeleteLifecyclePolicyCommandOutput, - Cause.TimeoutException | SdkError | ConflictError | InternalServerError | ResourceNotFoundError | ValidationError + Cause.TimeoutError | SdkError | ConflictError | InternalServerError | ResourceNotFoundError | ValidationError >; /** @@ -396,7 +424,7 @@ interface OpenSearchServerlessService$ { options?: HttpHandlerOptions, ): Effect.Effect< DeleteSecurityConfigCommandOutput, - Cause.TimeoutException | SdkError | ConflictError | InternalServerError | ResourceNotFoundError | ValidationError + Cause.TimeoutError | SdkError | ConflictError | InternalServerError | ResourceNotFoundError | ValidationError >; /** @@ -407,7 +435,7 @@ interface OpenSearchServerlessService$ { options?: HttpHandlerOptions, ): Effect.Effect< DeleteSecurityPolicyCommandOutput, - Cause.TimeoutException | SdkError | ConflictError | InternalServerError | ResourceNotFoundError | ValidationError + Cause.TimeoutError | SdkError | ConflictError | InternalServerError | ResourceNotFoundError | ValidationError >; /** @@ -418,7 +446,7 @@ interface OpenSearchServerlessService$ { options?: HttpHandlerOptions, ): Effect.Effect< DeleteVpcEndpointCommandOutput, - Cause.TimeoutException | SdkError | ConflictError | InternalServerError | ResourceNotFoundError | ValidationError + Cause.TimeoutError | SdkError | ConflictError | InternalServerError | ResourceNotFoundError | ValidationError >; /** @@ -429,7 +457,7 @@ interface OpenSearchServerlessService$ { options?: HttpHandlerOptions, ): Effect.Effect< GetAccessPolicyCommandOutput, - Cause.TimeoutException | SdkError | InternalServerError | ResourceNotFoundError | ValidationError + Cause.TimeoutError | SdkError | InternalServerError | ResourceNotFoundError | ValidationError >; /** @@ -440,7 +468,7 @@ interface OpenSearchServerlessService$ { options?: HttpHandlerOptions, ): Effect.Effect< GetAccountSettingsCommandOutput, - Cause.TimeoutException | SdkError | InternalServerError | ValidationError + Cause.TimeoutError | SdkError | InternalServerError | ValidationError >; /** @@ -451,7 +479,7 @@ interface OpenSearchServerlessService$ { options?: HttpHandlerOptions, ): Effect.Effect< GetIndexCommandOutput, - Cause.TimeoutException | SdkError | InternalServerError | ResourceNotFoundError | ValidationError + Cause.TimeoutError | SdkError | InternalServerError | ResourceNotFoundError | ValidationError >; /** @@ -462,7 +490,7 @@ interface OpenSearchServerlessService$ { options?: HttpHandlerOptions, ): Effect.Effect< GetPoliciesStatsCommandOutput, - Cause.TimeoutException | SdkError | InternalServerError + Cause.TimeoutError | SdkError | InternalServerError >; /** @@ -473,7 +501,7 @@ interface OpenSearchServerlessService$ { options?: HttpHandlerOptions, ): Effect.Effect< GetSecurityConfigCommandOutput, - Cause.TimeoutException | SdkError | InternalServerError | ResourceNotFoundError | ValidationError + Cause.TimeoutError | SdkError | InternalServerError | ResourceNotFoundError | ValidationError >; /** @@ -484,7 +512,7 @@ interface OpenSearchServerlessService$ { options?: HttpHandlerOptions, ): Effect.Effect< GetSecurityPolicyCommandOutput, - Cause.TimeoutException | SdkError | InternalServerError | ResourceNotFoundError | ValidationError + Cause.TimeoutError | SdkError | InternalServerError | ResourceNotFoundError | ValidationError >; /** @@ -495,7 +523,18 @@ interface OpenSearchServerlessService$ { options?: HttpHandlerOptions, ): Effect.Effect< ListAccessPoliciesCommandOutput, - Cause.TimeoutException | SdkError | InternalServerError | ValidationError + Cause.TimeoutError | SdkError | InternalServerError | ValidationError + >; + + /** + * @see {@link ListCollectionGroupsCommand} + */ + listCollectionGroups( + args: ListCollectionGroupsCommandInput, + options?: HttpHandlerOptions, + ): Effect.Effect< + ListCollectionGroupsCommandOutput, + Cause.TimeoutError | SdkError | InternalServerError | ValidationError >; /** @@ -506,7 +545,7 @@ interface OpenSearchServerlessService$ { options?: HttpHandlerOptions, ): Effect.Effect< ListCollectionsCommandOutput, - Cause.TimeoutException | SdkError | InternalServerError | ValidationError + Cause.TimeoutError | SdkError | InternalServerError | ValidationError >; /** @@ -517,7 +556,7 @@ interface OpenSearchServerlessService$ { options?: HttpHandlerOptions, ): Effect.Effect< ListLifecyclePoliciesCommandOutput, - Cause.TimeoutException | SdkError | InternalServerError | ValidationError + Cause.TimeoutError | SdkError | InternalServerError | ValidationError >; /** @@ -528,7 +567,7 @@ interface OpenSearchServerlessService$ { options?: HttpHandlerOptions, ): Effect.Effect< ListSecurityConfigsCommandOutput, - Cause.TimeoutException | SdkError | InternalServerError | ValidationError + Cause.TimeoutError | SdkError | InternalServerError | ValidationError >; /** @@ -539,7 +578,7 @@ interface OpenSearchServerlessService$ { options?: HttpHandlerOptions, ): Effect.Effect< ListSecurityPoliciesCommandOutput, - Cause.TimeoutException | SdkError | InternalServerError | ValidationError + Cause.TimeoutError | SdkError | InternalServerError | ValidationError >; /** @@ -550,7 +589,7 @@ interface OpenSearchServerlessService$ { options?: HttpHandlerOptions, ): Effect.Effect< ListTagsForResourceCommandOutput, - Cause.TimeoutException | SdkError | InternalServerError | ResourceNotFoundError | ValidationError + Cause.TimeoutError | SdkError | InternalServerError | ResourceNotFoundError | ValidationError >; /** @@ -561,7 +600,7 @@ interface OpenSearchServerlessService$ { options?: HttpHandlerOptions, ): Effect.Effect< ListVpcEndpointsCommandOutput, - Cause.TimeoutException | SdkError | InternalServerError | ValidationError + Cause.TimeoutError | SdkError | InternalServerError | ValidationError >; /** @@ -572,7 +611,7 @@ interface OpenSearchServerlessService$ { options?: HttpHandlerOptions, ): Effect.Effect< TagResourceCommandOutput, - | Cause.TimeoutException + | Cause.TimeoutError | SdkError | ConflictError | InternalServerError @@ -589,7 +628,7 @@ interface OpenSearchServerlessService$ { options?: HttpHandlerOptions, ): Effect.Effect< UntagResourceCommandOutput, - Cause.TimeoutException | SdkError | ConflictError | InternalServerError | ResourceNotFoundError | ValidationError + Cause.TimeoutError | SdkError | ConflictError | InternalServerError | ResourceNotFoundError | ValidationError >; /** @@ -600,7 +639,7 @@ interface OpenSearchServerlessService$ { options?: HttpHandlerOptions, ): Effect.Effect< UpdateAccessPolicyCommandOutput, - Cause.TimeoutException | SdkError | ConflictError | InternalServerError | ResourceNotFoundError | ValidationError + Cause.TimeoutError | SdkError | ConflictError | InternalServerError | ResourceNotFoundError | ValidationError >; /** @@ -611,7 +650,7 @@ interface OpenSearchServerlessService$ { options?: HttpHandlerOptions, ): Effect.Effect< UpdateAccountSettingsCommandOutput, - Cause.TimeoutException | SdkError | InternalServerError | ServiceQuotaExceededError | ValidationError + Cause.TimeoutError | SdkError | InternalServerError | ServiceQuotaExceededError | ValidationError >; /** @@ -622,7 +661,18 @@ interface OpenSearchServerlessService$ { options?: HttpHandlerOptions, ): Effect.Effect< UpdateCollectionCommandOutput, - Cause.TimeoutException | SdkError | ConflictError | InternalServerError | ValidationError + Cause.TimeoutError | SdkError | ConflictError | InternalServerError | ValidationError + >; + + /** + * @see {@link UpdateCollectionGroupCommand} + */ + updateCollectionGroup( + args: UpdateCollectionGroupCommandInput, + options?: HttpHandlerOptions, + ): Effect.Effect< + UpdateCollectionGroupCommandOutput, + Cause.TimeoutError | SdkError | ConflictError | InternalServerError | ServiceQuotaExceededError | ValidationError >; /** @@ -633,7 +683,7 @@ interface OpenSearchServerlessService$ { options?: HttpHandlerOptions, ): Effect.Effect< UpdateIndexCommandOutput, - Cause.TimeoutException | SdkError | InternalServerError | ResourceNotFoundError | ValidationError + Cause.TimeoutError | SdkError | InternalServerError | ResourceNotFoundError | ValidationError >; /** @@ -644,7 +694,7 @@ interface OpenSearchServerlessService$ { options?: HttpHandlerOptions, ): Effect.Effect< UpdateLifecyclePolicyCommandOutput, - | Cause.TimeoutException + | Cause.TimeoutError | SdkError | ConflictError | InternalServerError @@ -661,7 +711,7 @@ interface OpenSearchServerlessService$ { options?: HttpHandlerOptions, ): Effect.Effect< UpdateSecurityConfigCommandOutput, - Cause.TimeoutException | SdkError | ConflictError | InternalServerError | ResourceNotFoundError | ValidationError + Cause.TimeoutError | SdkError | ConflictError | InternalServerError | ResourceNotFoundError | ValidationError >; /** @@ -672,7 +722,7 @@ interface OpenSearchServerlessService$ { options?: HttpHandlerOptions, ): Effect.Effect< UpdateSecurityPolicyCommandOutput, - | Cause.TimeoutException + | Cause.TimeoutError | SdkError | ConflictError | InternalServerError @@ -689,7 +739,7 @@ interface OpenSearchServerlessService$ { options?: HttpHandlerOptions, ): Effect.Effect< UpdateVpcEndpointCommandOutput, - Cause.TimeoutException | SdkError | ConflictError | InternalServerError | ValidationError + Cause.TimeoutError | SdkError | ConflictError | InternalServerError | ValidationError >; } @@ -714,12 +764,10 @@ export const makeOpenSearchServerlessService = Effect.gen(function*() { * @since 1.0.0 * @category models */ -export class OpenSearchServerlessService - extends Effect.Tag("@effect-aws/client-opensearch-serverless/OpenSearchServerlessService")< - OpenSearchServerlessService, - OpenSearchServerlessService$ - >() -{ +export class OpenSearchServerlessService extends ServiceMap.Service< + OpenSearchServerlessService, + OpenSearchServerlessService$ +>()("@effect-aws/client-opensearch-serverless/OpenSearchServerlessService") { static readonly defaultLayer = Layer.effect(this, makeOpenSearchServerlessService).pipe( Layer.provide(Instance.layer), ); diff --git a/packages/client-opensearch-serverless/src/OpenSearchServerlessServiceConfig.ts b/packages/client-opensearch-serverless/src/OpenSearchServerlessServiceConfig.ts index b749cca0..801d1492 100644 --- a/packages/client-opensearch-serverless/src/OpenSearchServerlessServiceConfig.ts +++ b/packages/client-opensearch-serverless/src/OpenSearchServerlessServiceConfig.ts @@ -3,18 +3,17 @@ */ import type { OpenSearchServerlessClientConfig } from "@aws-sdk/client-opensearchserverless"; import { ServiceLogger } from "@effect-aws/commons"; -import { Effect, FiberRef, Layer } from "effect"; +import { Effect, Layer, ServiceMap } from "effect"; import { dual } from "effect/Function"; -import { globalValue } from "effect/GlobalValue"; import type { OpenSearchServerlessService } from "./OpenSearchServerlessService.js"; /** * @since 1.0.0 * @category opensearch-serverless service config */ -const currentOpenSearchServerlessServiceConfig = globalValue( +const currentOpenSearchServerlessServiceConfig = ServiceMap.Reference( "@effect-aws/client-opensearch-serverless/currentOpenSearchServerlessServiceConfig", - () => FiberRef.unsafeMake({}), + { defaultValue: () => ({}) }, ); /** @@ -27,7 +26,7 @@ export const withOpenSearchServerlessServiceConfig: { } = dual( 2, (effect: Effect.Effect, config: OpenSearchServerlessService.Config): Effect.Effect => - Effect.locally(effect, currentOpenSearchServerlessServiceConfig, config), + Effect.provideService(effect, currentOpenSearchServerlessServiceConfig, config), ); /** @@ -35,7 +34,7 @@ export const withOpenSearchServerlessServiceConfig: { * @category opensearch-serverless service config */ export const setOpenSearchServerlessServiceConfig = (config: OpenSearchServerlessService.Config) => - Layer.locallyScoped(currentOpenSearchServerlessServiceConfig, config); + Layer.succeed(currentOpenSearchServerlessServiceConfig, config); /** * @since 1.0.0 @@ -43,7 +42,7 @@ export const setOpenSearchServerlessServiceConfig = (config: OpenSearchServerles */ export const toOpenSearchServerlessClientConfig: Effect.Effect = Effect.gen( function*() { - const { logger: serviceLogger, ...config } = yield* FiberRef.get(currentOpenSearchServerlessServiceConfig); + const { logger: serviceLogger, ...config } = yield* currentOpenSearchServerlessServiceConfig; const logger = serviceLogger === true ? yield* ServiceLogger.toClientLogger(ServiceLogger.defaultServiceLogger) diff --git a/packages/client-opensearch-serverless/test/OpenSearchServerless.test.ts b/packages/client-opensearch-serverless/test/OpenSearchServerless.test.ts index e4fb1546..931d03cd 100644 --- a/packages/client-opensearch-serverless/test/OpenSearchServerless.test.ts +++ b/packages/client-opensearch-serverless/test/OpenSearchServerless.test.ts @@ -26,7 +26,7 @@ describe("OpenSearchServerlessClientImpl", () => { const args = {} as unknown as ListCollectionsCommandInput; - const program = OpenSearchServerless.listCollections(args); + const program = OpenSearchServerless.use((svc) => svc.listCollections(args)); const result = await pipe( program, @@ -46,7 +46,7 @@ describe("OpenSearchServerlessClientImpl", () => { const args = {} as unknown as ListCollectionsCommandInput; - const program = OpenSearchServerless.listCollections(args); + const program = OpenSearchServerless.use((svc) => svc.listCollections(args)); const result = await pipe( program, @@ -69,7 +69,7 @@ describe("OpenSearchServerlessClientImpl", () => { const args = {} as unknown as ListCollectionsCommandInput; - const program = OpenSearchServerless.listCollections(args); + const program = OpenSearchServerless.use((svc) => svc.listCollections(args)); const result = await pipe( program, @@ -93,7 +93,7 @@ describe("OpenSearchServerlessClientImpl", () => { const args = {} as unknown as ListCollectionsCommandInput; - const program = OpenSearchServerless.listCollections(args); + const program = OpenSearchServerless.use((svc) => svc.listCollections(args)); const result = await pipe( program, @@ -121,7 +121,7 @@ describe("OpenSearchServerlessClientImpl", () => { const args = {} as unknown as ListCollectionsCommandInput; - const program = OpenSearchServerless.listCollections(args); + const program = OpenSearchServerless.use((svc) => svc.listCollections(args)); const result = await pipe( program, @@ -131,7 +131,7 @@ describe("OpenSearchServerlessClientImpl", () => { expect(result).toEqual( Exit.fail( - SdkError({ + new SdkError({ ...new Error("test"), name: "SdkError", message: "test", @@ -156,7 +156,7 @@ describe("OpenSearchServerlessClientImpl", () => { const args = {} as unknown as ListCollectionsCommandInput; - const program = OpenSearchServerless.listCollections(args).pipe( + const program = OpenSearchServerless.use((svc) => svc.listCollections(args)).pipe( Effect.catchTag("NotHandledException" as any, () => Effect.succeed(null)), ); @@ -166,9 +166,9 @@ describe("OpenSearchServerlessClientImpl", () => { Effect.runPromiseExit, ); - expect(result).toEqual( + expect(result).toContainEqual( Exit.fail( - SdkError({ + new SdkError({ ...new Error("test"), name: "SdkError", message: "test", diff --git a/packages/client-opensearch/.projen/deps.json b/packages/client-opensearch/.projen/deps.json index 1745931c..6a041372 100644 --- a/packages/client-opensearch/.projen/deps.json +++ b/packages/client-opensearch/.projen/deps.json @@ -7,6 +7,7 @@ }, { "name": "effect", + "version": "4.0.0-beta.8", "type": "build" }, { @@ -16,7 +17,7 @@ }, { "name": "effect", - "version": ">=3.0.4 <4.0.0", + "version": ">=4.0.0 <5.0.0", "type": "peer" }, { diff --git a/packages/client-opensearch/README.md b/packages/client-opensearch/README.md index 6849f4c1..58b82af0 100644 --- a/packages/client-opensearch/README.md +++ b/packages/client-opensearch/README.md @@ -16,7 +16,7 @@ With default OpenSearchClient instance: ```typescript import { OpenSearch } from "@effect-aws/client-opensearch"; -const program = OpenSearch.describeDomains(args); +const program = OpenSearch.use((svc) => svc.describeDomains(args)); const result = pipe( program, @@ -30,7 +30,7 @@ With custom OpenSearchClient instance: ```typescript import { OpenSearch } from "@effect-aws/client-opensearch"; -const program = OpenSearch.describeDomains(args); +const program = OpenSearch.use((svc) => svc.describeDomains(args)); const result = await pipe( program, @@ -46,7 +46,7 @@ With custom OpenSearchClient configuration: ```typescript import { OpenSearch } from "@effect-aws/client-opensearch"; -const program = OpenSearch.describeDomains(args); +const program = OpenSearch.use((svc) => svc.describeDomains(args)); const result = await pipe( program, diff --git a/packages/client-opensearch/package.json b/packages/client-opensearch/package.json index 22fd3880..78a1a24c 100644 --- a/packages/client-opensearch/package.json +++ b/packages/client-opensearch/package.json @@ -26,11 +26,11 @@ }, "devDependencies": { "@types/node": "ts5.4", - "effect": "^3.16.4", + "effect": "4.0.0-beta.8", "typescript": "^5.4.2" }, "peerDependencies": { - "effect": ">=3.0.4 <4.0.0" + "effect": ">=4.0.0 <5.0.0" }, "dependencies": { "@aws-sdk/client-opensearch": "^3", diff --git a/packages/client-opensearch/src/OpenSearchClientInstance.ts b/packages/client-opensearch/src/OpenSearchClientInstance.ts index d1c4a02e..51c0889b 100644 --- a/packages/client-opensearch/src/OpenSearchClientInstance.ts +++ b/packages/client-opensearch/src/OpenSearchClientInstance.ts @@ -2,16 +2,16 @@ * @since 1.0.0 */ import { OpenSearchClient } from "@aws-sdk/client-opensearch"; -import { Context, Effect, Layer } from "effect"; +import { Effect, Layer, ServiceMap } from "effect"; import * as OpenSearchServiceConfig from "./OpenSearchServiceConfig.js"; /** * @since 1.0.0 * @category tags */ -export class OpenSearchClientInstance extends Context.Tag( +export class OpenSearchClientInstance extends ServiceMap.Service()( "@effect-aws/client-opensearch/OpenSearchClientInstance", -)() {} +) {} /** * @since 1.0.0 @@ -30,4 +30,4 @@ export const make = Effect.flatMap( * @since 1.0.0 * @category layers */ -export const layer = Layer.scoped(OpenSearchClientInstance, make); +export const layer = Layer.effect(OpenSearchClientInstance, make); diff --git a/packages/client-opensearch/src/OpenSearchService.ts b/packages/client-opensearch/src/OpenSearchService.ts index b9deddf4..85c6e855 100644 --- a/packages/client-opensearch/src/OpenSearchService.ts +++ b/packages/client-opensearch/src/OpenSearchService.ts @@ -254,7 +254,7 @@ import { import type { HttpHandlerOptions, ServiceLogger } from "@effect-aws/commons"; import { Service } from "@effect-aws/commons"; import type { Cause } from "effect"; -import { Effect, Layer } from "effect"; +import { Effect, Layer, ServiceMap } from "effect"; import type { AccessDeniedError, BaseError, @@ -372,7 +372,7 @@ interface OpenSearchService$ { options?: HttpHandlerOptions, ): Effect.Effect< AcceptInboundConnectionCommandOutput, - Cause.TimeoutException | SdkError | DisabledOperationError | LimitExceededError | ResourceNotFoundError + Cause.TimeoutError | SdkError | DisabledOperationError | LimitExceededError | ResourceNotFoundError >; /** @@ -383,7 +383,7 @@ interface OpenSearchService$ { options?: HttpHandlerOptions, ): Effect.Effect< AddDataSourceCommandOutput, - | Cause.TimeoutException + | Cause.TimeoutError | SdkError | BaseError | DependencyFailureError @@ -402,7 +402,7 @@ interface OpenSearchService$ { options?: HttpHandlerOptions, ): Effect.Effect< AddDirectQueryDataSourceCommandOutput, - | Cause.TimeoutException + | Cause.TimeoutError | SdkError | BaseError | DisabledOperationError @@ -420,7 +420,7 @@ interface OpenSearchService$ { options?: HttpHandlerOptions, ): Effect.Effect< AddTagsCommandOutput, - Cause.TimeoutException | SdkError | BaseError | InternalError | LimitExceededError | ValidationError + Cause.TimeoutError | SdkError | BaseError | InternalError | LimitExceededError | ValidationError >; /** @@ -431,7 +431,7 @@ interface OpenSearchService$ { options?: HttpHandlerOptions, ): Effect.Effect< AssociatePackageCommandOutput, - | Cause.TimeoutException + | Cause.TimeoutError | SdkError | AccessDeniedError | BaseError @@ -449,7 +449,7 @@ interface OpenSearchService$ { options?: HttpHandlerOptions, ): Effect.Effect< AssociatePackagesCommandOutput, - | Cause.TimeoutException + | Cause.TimeoutError | SdkError | BaseError | ConflictError @@ -467,7 +467,7 @@ interface OpenSearchService$ { options?: HttpHandlerOptions, ): Effect.Effect< AuthorizeVpcEndpointAccessCommandOutput, - | Cause.TimeoutException + | Cause.TimeoutError | SdkError | BaseError | DisabledOperationError @@ -485,7 +485,7 @@ interface OpenSearchService$ { options?: HttpHandlerOptions, ): Effect.Effect< CancelDomainConfigChangeCommandOutput, - | Cause.TimeoutException + | Cause.TimeoutError | SdkError | BaseError | DisabledOperationError @@ -502,7 +502,7 @@ interface OpenSearchService$ { options?: HttpHandlerOptions, ): Effect.Effect< CancelServiceSoftwareUpdateCommandOutput, - Cause.TimeoutException | SdkError | BaseError | InternalError | ResourceNotFoundError | ValidationError + Cause.TimeoutError | SdkError | BaseError | InternalError | ResourceNotFoundError | ValidationError >; /** @@ -513,7 +513,7 @@ interface OpenSearchService$ { options?: HttpHandlerOptions, ): Effect.Effect< CreateApplicationCommandOutput, - | Cause.TimeoutException + | Cause.TimeoutError | SdkError | AccessDeniedError | BaseError @@ -531,7 +531,7 @@ interface OpenSearchService$ { options?: HttpHandlerOptions, ): Effect.Effect< CreateDomainCommandOutput, - | Cause.TimeoutException + | Cause.TimeoutError | SdkError | BaseError | DisabledOperationError @@ -550,7 +550,7 @@ interface OpenSearchService$ { options?: HttpHandlerOptions, ): Effect.Effect< CreateIndexCommandOutput, - | Cause.TimeoutException + | Cause.TimeoutError | SdkError | AccessDeniedError | DependencyFailureError @@ -570,7 +570,7 @@ interface OpenSearchService$ { options?: HttpHandlerOptions, ): Effect.Effect< CreateOutboundConnectionCommandOutput, - | Cause.TimeoutException + | Cause.TimeoutError | SdkError | DisabledOperationError | InternalError @@ -586,7 +586,7 @@ interface OpenSearchService$ { options?: HttpHandlerOptions, ): Effect.Effect< CreatePackageCommandOutput, - | Cause.TimeoutException + | Cause.TimeoutError | SdkError | AccessDeniedError | BaseError @@ -605,7 +605,7 @@ interface OpenSearchService$ { options?: HttpHandlerOptions, ): Effect.Effect< CreateVpcEndpointCommandOutput, - | Cause.TimeoutException + | Cause.TimeoutError | SdkError | BaseError | ConflictError @@ -623,7 +623,7 @@ interface OpenSearchService$ { options?: HttpHandlerOptions, ): Effect.Effect< DeleteApplicationCommandOutput, - | Cause.TimeoutException + | Cause.TimeoutError | SdkError | AccessDeniedError | BaseError @@ -642,7 +642,7 @@ interface OpenSearchService$ { options?: HttpHandlerOptions, ): Effect.Effect< DeleteDataSourceCommandOutput, - | Cause.TimeoutException + | Cause.TimeoutError | SdkError | BaseError | DependencyFailureError @@ -660,7 +660,7 @@ interface OpenSearchService$ { options?: HttpHandlerOptions, ): Effect.Effect< DeleteDirectQueryDataSourceCommandOutput, - | Cause.TimeoutException + | Cause.TimeoutError | SdkError | BaseError | DisabledOperationError @@ -677,7 +677,7 @@ interface OpenSearchService$ { options?: HttpHandlerOptions, ): Effect.Effect< DeleteDomainCommandOutput, - Cause.TimeoutException | SdkError | BaseError | InternalError | ResourceNotFoundError | ValidationError + Cause.TimeoutError | SdkError | BaseError | InternalError | ResourceNotFoundError | ValidationError >; /** @@ -688,7 +688,7 @@ interface OpenSearchService$ { options?: HttpHandlerOptions, ): Effect.Effect< DeleteInboundConnectionCommandOutput, - Cause.TimeoutException | SdkError | DisabledOperationError | ResourceNotFoundError + Cause.TimeoutError | SdkError | DisabledOperationError | ResourceNotFoundError >; /** @@ -699,7 +699,7 @@ interface OpenSearchService$ { options?: HttpHandlerOptions, ): Effect.Effect< DeleteIndexCommandOutput, - | Cause.TimeoutException + | Cause.TimeoutError | SdkError | AccessDeniedError | DependencyFailureError @@ -718,7 +718,7 @@ interface OpenSearchService$ { options?: HttpHandlerOptions, ): Effect.Effect< DeleteOutboundConnectionCommandOutput, - Cause.TimeoutException | SdkError | DisabledOperationError | ResourceNotFoundError + Cause.TimeoutError | SdkError | DisabledOperationError | ResourceNotFoundError >; /** @@ -729,7 +729,7 @@ interface OpenSearchService$ { options?: HttpHandlerOptions, ): Effect.Effect< DeletePackageCommandOutput, - | Cause.TimeoutException + | Cause.TimeoutError | SdkError | AccessDeniedError | BaseError @@ -747,7 +747,7 @@ interface OpenSearchService$ { options?: HttpHandlerOptions, ): Effect.Effect< DeleteVpcEndpointCommandOutput, - Cause.TimeoutException | SdkError | BaseError | DisabledOperationError | InternalError | ResourceNotFoundError + Cause.TimeoutError | SdkError | BaseError | DisabledOperationError | InternalError | ResourceNotFoundError >; /** @@ -758,7 +758,7 @@ interface OpenSearchService$ { options?: HttpHandlerOptions, ): Effect.Effect< DescribeDomainCommandOutput, - Cause.TimeoutException | SdkError | BaseError | InternalError | ResourceNotFoundError | ValidationError + Cause.TimeoutError | SdkError | BaseError | InternalError | ResourceNotFoundError | ValidationError >; /** @@ -769,7 +769,7 @@ interface OpenSearchService$ { options?: HttpHandlerOptions, ): Effect.Effect< DescribeDomainAutoTunesCommandOutput, - Cause.TimeoutException | SdkError | BaseError | InternalError | ResourceNotFoundError | ValidationError + Cause.TimeoutError | SdkError | BaseError | InternalError | ResourceNotFoundError | ValidationError >; /** @@ -780,7 +780,7 @@ interface OpenSearchService$ { options?: HttpHandlerOptions, ): Effect.Effect< DescribeDomainChangeProgressCommandOutput, - Cause.TimeoutException | SdkError | BaseError | InternalError | ResourceNotFoundError | ValidationError + Cause.TimeoutError | SdkError | BaseError | InternalError | ResourceNotFoundError | ValidationError >; /** @@ -791,7 +791,7 @@ interface OpenSearchService$ { options?: HttpHandlerOptions, ): Effect.Effect< DescribeDomainConfigCommandOutput, - Cause.TimeoutException | SdkError | BaseError | InternalError | ResourceNotFoundError | ValidationError + Cause.TimeoutError | SdkError | BaseError | InternalError | ResourceNotFoundError | ValidationError >; /** @@ -802,7 +802,7 @@ interface OpenSearchService$ { options?: HttpHandlerOptions, ): Effect.Effect< DescribeDomainHealthCommandOutput, - | Cause.TimeoutException + | Cause.TimeoutError | SdkError | BaseError | DisabledOperationError @@ -819,7 +819,7 @@ interface OpenSearchService$ { options?: HttpHandlerOptions, ): Effect.Effect< DescribeDomainNodesCommandOutput, - | Cause.TimeoutException + | Cause.TimeoutError | SdkError | BaseError | DependencyFailureError @@ -837,7 +837,7 @@ interface OpenSearchService$ { options?: HttpHandlerOptions, ): Effect.Effect< DescribeDomainsCommandOutput, - Cause.TimeoutException | SdkError | BaseError | InternalError | ValidationError + Cause.TimeoutError | SdkError | BaseError | InternalError | ValidationError >; /** @@ -848,7 +848,7 @@ interface OpenSearchService$ { options?: HttpHandlerOptions, ): Effect.Effect< DescribeDryRunProgressCommandOutput, - | Cause.TimeoutException + | Cause.TimeoutError | SdkError | BaseError | DisabledOperationError @@ -865,7 +865,7 @@ interface OpenSearchService$ { options?: HttpHandlerOptions, ): Effect.Effect< DescribeInboundConnectionsCommandOutput, - Cause.TimeoutException | SdkError | DisabledOperationError | InvalidPaginationTokenError + Cause.TimeoutError | SdkError | DisabledOperationError | InvalidPaginationTokenError >; /** @@ -876,7 +876,7 @@ interface OpenSearchService$ { options?: HttpHandlerOptions, ): Effect.Effect< DescribeInstanceTypeLimitsCommandOutput, - | Cause.TimeoutException + | Cause.TimeoutError | SdkError | BaseError | InternalError @@ -894,7 +894,7 @@ interface OpenSearchService$ { options?: HttpHandlerOptions, ): Effect.Effect< DescribeOutboundConnectionsCommandOutput, - Cause.TimeoutException | SdkError | DisabledOperationError | InvalidPaginationTokenError + Cause.TimeoutError | SdkError | DisabledOperationError | InvalidPaginationTokenError >; /** @@ -905,7 +905,7 @@ interface OpenSearchService$ { options?: HttpHandlerOptions, ): Effect.Effect< DescribePackagesCommandOutput, - | Cause.TimeoutException + | Cause.TimeoutError | SdkError | AccessDeniedError | BaseError @@ -922,7 +922,7 @@ interface OpenSearchService$ { options?: HttpHandlerOptions, ): Effect.Effect< DescribeReservedInstanceOfferingsCommandOutput, - Cause.TimeoutException | SdkError | DisabledOperationError | InternalError | ResourceNotFoundError | ValidationError + Cause.TimeoutError | SdkError | DisabledOperationError | InternalError | ResourceNotFoundError | ValidationError >; /** @@ -933,7 +933,7 @@ interface OpenSearchService$ { options?: HttpHandlerOptions, ): Effect.Effect< DescribeReservedInstancesCommandOutput, - Cause.TimeoutException | SdkError | DisabledOperationError | InternalError | ResourceNotFoundError | ValidationError + Cause.TimeoutError | SdkError | DisabledOperationError | InternalError | ResourceNotFoundError | ValidationError >; /** @@ -944,7 +944,7 @@ interface OpenSearchService$ { options?: HttpHandlerOptions, ): Effect.Effect< DescribeVpcEndpointsCommandOutput, - Cause.TimeoutException | SdkError | BaseError | DisabledOperationError | InternalError | ValidationError + Cause.TimeoutError | SdkError | BaseError | DisabledOperationError | InternalError | ValidationError >; /** @@ -955,7 +955,7 @@ interface OpenSearchService$ { options?: HttpHandlerOptions, ): Effect.Effect< DissociatePackageCommandOutput, - | Cause.TimeoutException + | Cause.TimeoutError | SdkError | AccessDeniedError | BaseError @@ -973,7 +973,7 @@ interface OpenSearchService$ { options?: HttpHandlerOptions, ): Effect.Effect< DissociatePackagesCommandOutput, - | Cause.TimeoutException + | Cause.TimeoutError | SdkError | BaseError | ConflictError @@ -991,7 +991,7 @@ interface OpenSearchService$ { options?: HttpHandlerOptions, ): Effect.Effect< GetApplicationCommandOutput, - | Cause.TimeoutException + | Cause.TimeoutError | SdkError | AccessDeniedError | BaseError @@ -1009,7 +1009,7 @@ interface OpenSearchService$ { options?: HttpHandlerOptions, ): Effect.Effect< GetCompatibleVersionsCommandOutput, - | Cause.TimeoutException + | Cause.TimeoutError | SdkError | BaseError | DisabledOperationError @@ -1026,7 +1026,7 @@ interface OpenSearchService$ { options?: HttpHandlerOptions, ): Effect.Effect< GetDataSourceCommandOutput, - | Cause.TimeoutException + | Cause.TimeoutError | SdkError | BaseError | DependencyFailureError @@ -1044,7 +1044,7 @@ interface OpenSearchService$ { options?: HttpHandlerOptions, ): Effect.Effect< GetDefaultApplicationSettingCommandOutput, - Cause.TimeoutException | SdkError | AccessDeniedError | InternalError | ResourceNotFoundError | ValidationError + Cause.TimeoutError | SdkError | AccessDeniedError | InternalError | ResourceNotFoundError | ValidationError >; /** @@ -1055,7 +1055,7 @@ interface OpenSearchService$ { options?: HttpHandlerOptions, ): Effect.Effect< GetDirectQueryDataSourceCommandOutput, - | Cause.TimeoutException + | Cause.TimeoutError | SdkError | BaseError | DisabledOperationError @@ -1072,7 +1072,7 @@ interface OpenSearchService$ { options?: HttpHandlerOptions, ): Effect.Effect< GetDomainMaintenanceStatusCommandOutput, - | Cause.TimeoutException + | Cause.TimeoutError | SdkError | BaseError | DisabledOperationError @@ -1089,7 +1089,7 @@ interface OpenSearchService$ { options?: HttpHandlerOptions, ): Effect.Effect< GetIndexCommandOutput, - | Cause.TimeoutException + | Cause.TimeoutError | SdkError | AccessDeniedError | DependencyFailureError @@ -1108,7 +1108,7 @@ interface OpenSearchService$ { options?: HttpHandlerOptions, ): Effect.Effect< GetPackageVersionHistoryCommandOutput, - | Cause.TimeoutException + | Cause.TimeoutError | SdkError | AccessDeniedError | BaseError @@ -1125,7 +1125,7 @@ interface OpenSearchService$ { options?: HttpHandlerOptions, ): Effect.Effect< GetUpgradeHistoryCommandOutput, - | Cause.TimeoutException + | Cause.TimeoutError | SdkError | BaseError | DisabledOperationError @@ -1142,7 +1142,7 @@ interface OpenSearchService$ { options?: HttpHandlerOptions, ): Effect.Effect< GetUpgradeStatusCommandOutput, - | Cause.TimeoutException + | Cause.TimeoutError | SdkError | BaseError | DisabledOperationError @@ -1159,7 +1159,7 @@ interface OpenSearchService$ { options?: HttpHandlerOptions, ): Effect.Effect< ListApplicationsCommandOutput, - | Cause.TimeoutException + | Cause.TimeoutError | SdkError | AccessDeniedError | BaseError @@ -1177,7 +1177,7 @@ interface OpenSearchService$ { options?: HttpHandlerOptions, ): Effect.Effect< ListDataSourcesCommandOutput, - | Cause.TimeoutException + | Cause.TimeoutError | SdkError | BaseError | DependencyFailureError @@ -1195,7 +1195,7 @@ interface OpenSearchService$ { options?: HttpHandlerOptions, ): Effect.Effect< ListDirectQueryDataSourcesCommandOutput, - | Cause.TimeoutException + | Cause.TimeoutError | SdkError | BaseError | DisabledOperationError @@ -1212,7 +1212,7 @@ interface OpenSearchService$ { options?: HttpHandlerOptions, ): Effect.Effect< ListDomainMaintenancesCommandOutput, - | Cause.TimeoutException + | Cause.TimeoutError | SdkError | BaseError | DisabledOperationError @@ -1229,7 +1229,7 @@ interface OpenSearchService$ { options?: HttpHandlerOptions, ): Effect.Effect< ListDomainNamesCommandOutput, - Cause.TimeoutException | SdkError | BaseError | ValidationError + Cause.TimeoutError | SdkError | BaseError | ValidationError >; /** @@ -1240,7 +1240,7 @@ interface OpenSearchService$ { options?: HttpHandlerOptions, ): Effect.Effect< ListDomainsForPackageCommandOutput, - | Cause.TimeoutException + | Cause.TimeoutError | SdkError | AccessDeniedError | BaseError @@ -1257,7 +1257,7 @@ interface OpenSearchService$ { options?: HttpHandlerOptions, ): Effect.Effect< ListInstanceTypeDetailsCommandOutput, - Cause.TimeoutException | SdkError | BaseError | InternalError | ResourceNotFoundError | ValidationError + Cause.TimeoutError | SdkError | BaseError | InternalError | ResourceNotFoundError | ValidationError >; /** @@ -1268,7 +1268,7 @@ interface OpenSearchService$ { options?: HttpHandlerOptions, ): Effect.Effect< ListPackagesForDomainCommandOutput, - | Cause.TimeoutException + | Cause.TimeoutError | SdkError | AccessDeniedError | BaseError @@ -1285,7 +1285,7 @@ interface OpenSearchService$ { options?: HttpHandlerOptions, ): Effect.Effect< ListScheduledActionsCommandOutput, - | Cause.TimeoutException + | Cause.TimeoutError | SdkError | BaseError | InternalError @@ -1302,7 +1302,7 @@ interface OpenSearchService$ { options?: HttpHandlerOptions, ): Effect.Effect< ListTagsCommandOutput, - Cause.TimeoutException | SdkError | BaseError | InternalError | ResourceNotFoundError | ValidationError + Cause.TimeoutError | SdkError | BaseError | InternalError | ResourceNotFoundError | ValidationError >; /** @@ -1313,7 +1313,7 @@ interface OpenSearchService$ { options?: HttpHandlerOptions, ): Effect.Effect< ListVersionsCommandOutput, - Cause.TimeoutException | SdkError | BaseError | InternalError | ResourceNotFoundError | ValidationError + Cause.TimeoutError | SdkError | BaseError | InternalError | ResourceNotFoundError | ValidationError >; /** @@ -1324,7 +1324,7 @@ interface OpenSearchService$ { options?: HttpHandlerOptions, ): Effect.Effect< ListVpcEndpointAccessCommandOutput, - Cause.TimeoutException | SdkError | BaseError | DisabledOperationError | InternalError | ResourceNotFoundError + Cause.TimeoutError | SdkError | BaseError | DisabledOperationError | InternalError | ResourceNotFoundError >; /** @@ -1335,7 +1335,7 @@ interface OpenSearchService$ { options?: HttpHandlerOptions, ): Effect.Effect< ListVpcEndpointsCommandOutput, - Cause.TimeoutException | SdkError | BaseError | DisabledOperationError | InternalError + Cause.TimeoutError | SdkError | BaseError | DisabledOperationError | InternalError >; /** @@ -1346,7 +1346,7 @@ interface OpenSearchService$ { options?: HttpHandlerOptions, ): Effect.Effect< ListVpcEndpointsForDomainCommandOutput, - Cause.TimeoutException | SdkError | BaseError | DisabledOperationError | InternalError | ResourceNotFoundError + Cause.TimeoutError | SdkError | BaseError | DisabledOperationError | InternalError | ResourceNotFoundError >; /** @@ -1357,7 +1357,7 @@ interface OpenSearchService$ { options?: HttpHandlerOptions, ): Effect.Effect< PurchaseReservedInstanceOfferingCommandOutput, - | Cause.TimeoutException + | Cause.TimeoutError | SdkError | DisabledOperationError | InternalError @@ -1375,7 +1375,7 @@ interface OpenSearchService$ { options?: HttpHandlerOptions, ): Effect.Effect< PutDefaultApplicationSettingCommandOutput, - Cause.TimeoutException | SdkError | AccessDeniedError | InternalError | ResourceNotFoundError | ValidationError + Cause.TimeoutError | SdkError | AccessDeniedError | InternalError | ResourceNotFoundError | ValidationError >; /** @@ -1386,7 +1386,7 @@ interface OpenSearchService$ { options?: HttpHandlerOptions, ): Effect.Effect< RejectInboundConnectionCommandOutput, - Cause.TimeoutException | SdkError | DisabledOperationError | ResourceNotFoundError + Cause.TimeoutError | SdkError | DisabledOperationError | ResourceNotFoundError >; /** @@ -1397,7 +1397,7 @@ interface OpenSearchService$ { options?: HttpHandlerOptions, ): Effect.Effect< RemoveTagsCommandOutput, - Cause.TimeoutException | SdkError | BaseError | InternalError | ValidationError + Cause.TimeoutError | SdkError | BaseError | InternalError | ValidationError >; /** @@ -1408,7 +1408,7 @@ interface OpenSearchService$ { options?: HttpHandlerOptions, ): Effect.Effect< RevokeVpcEndpointAccessCommandOutput, - | Cause.TimeoutException + | Cause.TimeoutError | SdkError | BaseError | DisabledOperationError @@ -1425,7 +1425,7 @@ interface OpenSearchService$ { options?: HttpHandlerOptions, ): Effect.Effect< StartDomainMaintenanceCommandOutput, - | Cause.TimeoutException + | Cause.TimeoutError | SdkError | BaseError | DisabledOperationError @@ -1442,7 +1442,7 @@ interface OpenSearchService$ { options?: HttpHandlerOptions, ): Effect.Effect< StartServiceSoftwareUpdateCommandOutput, - Cause.TimeoutException | SdkError | BaseError | InternalError | ResourceNotFoundError | ValidationError + Cause.TimeoutError | SdkError | BaseError | InternalError | ResourceNotFoundError | ValidationError >; /** @@ -1453,7 +1453,7 @@ interface OpenSearchService$ { options?: HttpHandlerOptions, ): Effect.Effect< UpdateApplicationCommandOutput, - | Cause.TimeoutException + | Cause.TimeoutError | SdkError | AccessDeniedError | BaseError @@ -1472,7 +1472,7 @@ interface OpenSearchService$ { options?: HttpHandlerOptions, ): Effect.Effect< UpdateDataSourceCommandOutput, - | Cause.TimeoutException + | Cause.TimeoutError | SdkError | BaseError | DependencyFailureError @@ -1490,7 +1490,7 @@ interface OpenSearchService$ { options?: HttpHandlerOptions, ): Effect.Effect< UpdateDirectQueryDataSourceCommandOutput, - | Cause.TimeoutException + | Cause.TimeoutError | SdkError | BaseError | DisabledOperationError @@ -1507,7 +1507,7 @@ interface OpenSearchService$ { options?: HttpHandlerOptions, ): Effect.Effect< UpdateDomainConfigCommandOutput, - | Cause.TimeoutException + | Cause.TimeoutError | SdkError | BaseError | InternalError @@ -1525,7 +1525,7 @@ interface OpenSearchService$ { options?: HttpHandlerOptions, ): Effect.Effect< UpdateIndexCommandOutput, - | Cause.TimeoutException + | Cause.TimeoutError | SdkError | AccessDeniedError | DependencyFailureError @@ -1544,7 +1544,7 @@ interface OpenSearchService$ { options?: HttpHandlerOptions, ): Effect.Effect< UpdatePackageCommandOutput, - | Cause.TimeoutException + | Cause.TimeoutError | SdkError | AccessDeniedError | BaseError @@ -1562,7 +1562,7 @@ interface OpenSearchService$ { options?: HttpHandlerOptions, ): Effect.Effect< UpdatePackageScopeCommandOutput, - | Cause.TimeoutException + | Cause.TimeoutError | SdkError | BaseError | DisabledOperationError @@ -1579,7 +1579,7 @@ interface OpenSearchService$ { options?: HttpHandlerOptions, ): Effect.Effect< UpdateScheduledActionCommandOutput, - | Cause.TimeoutException + | Cause.TimeoutError | SdkError | BaseError | ConflictError @@ -1598,7 +1598,7 @@ interface OpenSearchService$ { options?: HttpHandlerOptions, ): Effect.Effect< UpdateVpcEndpointCommandOutput, - | Cause.TimeoutException + | Cause.TimeoutError | SdkError | BaseError | ConflictError @@ -1616,7 +1616,7 @@ interface OpenSearchService$ { options?: HttpHandlerOptions, ): Effect.Effect< UpgradeDomainCommandOutput, - | Cause.TimeoutException + | Cause.TimeoutError | SdkError | BaseError | DisabledOperationError @@ -1648,10 +1648,10 @@ export const makeOpenSearchService = Effect.gen(function*() { * @since 1.0.0 * @category models */ -export class OpenSearchService extends Effect.Tag("@effect-aws/client-opensearch/OpenSearchService")< +export class OpenSearchService extends ServiceMap.Service< OpenSearchService, OpenSearchService$ ->() { +>()("@effect-aws/client-opensearch/OpenSearchService") { static readonly defaultLayer = Layer.effect(this, makeOpenSearchService).pipe(Layer.provide(Instance.layer)); static readonly layer = (config: OpenSearchService.Config) => Layer.effect(this, makeOpenSearchService).pipe( diff --git a/packages/client-opensearch/src/OpenSearchServiceConfig.ts b/packages/client-opensearch/src/OpenSearchServiceConfig.ts index 58118522..562f4ca6 100644 --- a/packages/client-opensearch/src/OpenSearchServiceConfig.ts +++ b/packages/client-opensearch/src/OpenSearchServiceConfig.ts @@ -3,18 +3,17 @@ */ import type { OpenSearchClientConfig } from "@aws-sdk/client-opensearch"; import { ServiceLogger } from "@effect-aws/commons"; -import { Effect, FiberRef, Layer } from "effect"; +import { Effect, Layer, ServiceMap } from "effect"; import { dual } from "effect/Function"; -import { globalValue } from "effect/GlobalValue"; import type { OpenSearchService } from "./OpenSearchService.js"; /** * @since 1.0.0 * @category opensearch service config */ -const currentOpenSearchServiceConfig = globalValue( +const currentOpenSearchServiceConfig = ServiceMap.Reference( "@effect-aws/client-opensearch/currentOpenSearchServiceConfig", - () => FiberRef.unsafeMake({}), + { defaultValue: () => ({}) }, ); /** @@ -27,7 +26,7 @@ export const withOpenSearchServiceConfig: { } = dual( 2, (effect: Effect.Effect, config: OpenSearchService.Config): Effect.Effect => - Effect.locally(effect, currentOpenSearchServiceConfig, config), + Effect.provideService(effect, currentOpenSearchServiceConfig, config), ); /** @@ -35,14 +34,14 @@ export const withOpenSearchServiceConfig: { * @category opensearch service config */ export const setOpenSearchServiceConfig = (config: OpenSearchService.Config) => - Layer.locallyScoped(currentOpenSearchServiceConfig, config); + Layer.succeed(currentOpenSearchServiceConfig, config); /** * @since 1.0.0 * @category adapters */ export const toOpenSearchClientConfig: Effect.Effect = Effect.gen(function*() { - const { logger: serviceLogger, ...config } = yield* FiberRef.get(currentOpenSearchServiceConfig); + const { logger: serviceLogger, ...config } = yield* currentOpenSearchServiceConfig; const logger = serviceLogger === true ? yield* ServiceLogger.toClientLogger(ServiceLogger.defaultServiceLogger) diff --git a/packages/client-opensearch/test/OpenSearch.test.ts b/packages/client-opensearch/test/OpenSearch.test.ts index 1b1a84aa..c2e5bb37 100644 --- a/packages/client-opensearch/test/OpenSearch.test.ts +++ b/packages/client-opensearch/test/OpenSearch.test.ts @@ -26,7 +26,7 @@ describe("OpenSearchClientImpl", () => { const args = {} as unknown as DescribeDomainsCommandInput; - const program = OpenSearch.describeDomains(args); + const program = OpenSearch.use((svc) => svc.describeDomains(args)); const result = await pipe( program, @@ -46,7 +46,7 @@ describe("OpenSearchClientImpl", () => { const args = {} as unknown as DescribeDomainsCommandInput; - const program = OpenSearch.describeDomains(args); + const program = OpenSearch.use((svc) => svc.describeDomains(args)); const result = await pipe( program, @@ -69,7 +69,7 @@ describe("OpenSearchClientImpl", () => { const args = {} as unknown as DescribeDomainsCommandInput; - const program = OpenSearch.describeDomains(args); + const program = OpenSearch.use((svc) => svc.describeDomains(args)); const result = await pipe( program, @@ -93,7 +93,7 @@ describe("OpenSearchClientImpl", () => { const args = {} as unknown as DescribeDomainsCommandInput; - const program = OpenSearch.describeDomains(args); + const program = OpenSearch.use((svc) => svc.describeDomains(args)); const result = await pipe( program, @@ -121,7 +121,7 @@ describe("OpenSearchClientImpl", () => { const args = {} as unknown as DescribeDomainsCommandInput; - const program = OpenSearch.describeDomains(args); + const program = OpenSearch.use((svc) => svc.describeDomains(args)); const result = await pipe( program, @@ -131,7 +131,7 @@ describe("OpenSearchClientImpl", () => { expect(result).toEqual( Exit.fail( - SdkError({ + new SdkError({ ...new Error("test"), name: "SdkError", message: "test", @@ -156,7 +156,7 @@ describe("OpenSearchClientImpl", () => { const args = {} as unknown as DescribeDomainsCommandInput; - const program = OpenSearch.describeDomains(args).pipe( + const program = OpenSearch.use((svc) => svc.describeDomains(args)).pipe( Effect.catchTag("NotHandledException" as any, () => Effect.succeed(null)), ); @@ -166,9 +166,9 @@ describe("OpenSearchClientImpl", () => { Effect.runPromiseExit, ); - expect(result).toEqual( + expect(result).toContainEqual( Exit.fail( - SdkError({ + new SdkError({ ...new Error("test"), name: "SdkError", message: "test", diff --git a/packages/client-organizations/.projen/deps.json b/packages/client-organizations/.projen/deps.json index 02cda147..5c6fcaf7 100644 --- a/packages/client-organizations/.projen/deps.json +++ b/packages/client-organizations/.projen/deps.json @@ -7,6 +7,7 @@ }, { "name": "effect", + "version": "4.0.0-beta.8", "type": "build" }, { @@ -16,7 +17,7 @@ }, { "name": "effect", - "version": ">=3.0.4 <4.0.0", + "version": ">=4.0.0 <5.0.0", "type": "peer" }, { diff --git a/packages/client-organizations/README.md b/packages/client-organizations/README.md index f95f0fe1..7064b9ba 100644 --- a/packages/client-organizations/README.md +++ b/packages/client-organizations/README.md @@ -16,7 +16,7 @@ With default OrganizationsClient instance: ```typescript import { Organizations } from "@effect-aws/client-organizations"; -const program = Organizations.describeOrganization(args); +const program = Organizations.use((svc) => svc.describeOrganization(args)); const result = pipe( program, @@ -30,7 +30,7 @@ With custom OrganizationsClient instance: ```typescript import { Organizations } from "@effect-aws/client-organizations"; -const program = Organizations.describeOrganization(args); +const program = Organizations.use((svc) => svc.describeOrganization(args)); const result = await pipe( program, @@ -46,7 +46,7 @@ With custom OrganizationsClient configuration: ```typescript import { Organizations } from "@effect-aws/client-organizations"; -const program = Organizations.describeOrganization(args); +const program = Organizations.use((svc) => svc.describeOrganization(args)); const result = await pipe( program, diff --git a/packages/client-organizations/package.json b/packages/client-organizations/package.json index 23a5f30b..60cbe5b0 100644 --- a/packages/client-organizations/package.json +++ b/packages/client-organizations/package.json @@ -26,11 +26,11 @@ }, "devDependencies": { "@types/node": "ts5.4", - "effect": "^3.16.4", + "effect": "4.0.0-beta.8", "typescript": "^5.4.2" }, "peerDependencies": { - "effect": ">=3.0.4 <4.0.0" + "effect": ">=4.0.0 <5.0.0" }, "dependencies": { "@aws-sdk/client-organizations": "^3", diff --git a/packages/client-organizations/src/OrganizationsClientInstance.ts b/packages/client-organizations/src/OrganizationsClientInstance.ts index df7ade09..951ca111 100644 --- a/packages/client-organizations/src/OrganizationsClientInstance.ts +++ b/packages/client-organizations/src/OrganizationsClientInstance.ts @@ -2,16 +2,16 @@ * @since 1.0.0 */ import { OrganizationsClient } from "@aws-sdk/client-organizations"; -import { Context, Effect, Layer } from "effect"; +import { Effect, Layer, ServiceMap } from "effect"; import * as OrganizationsServiceConfig from "./OrganizationsServiceConfig.js"; /** * @since 1.0.0 * @category tags */ -export class OrganizationsClientInstance extends Context.Tag( +export class OrganizationsClientInstance extends ServiceMap.Service()( "@effect-aws/client-organizations/OrganizationsClientInstance", -)() {} +) {} /** * @since 1.0.0 @@ -30,4 +30,4 @@ export const make = Effect.flatMap( * @since 1.0.0 * @category layers */ -export const layer = Layer.scoped(OrganizationsClientInstance, make); +export const layer = Layer.effect(OrganizationsClientInstance, make); diff --git a/packages/client-organizations/src/OrganizationsService.ts b/packages/client-organizations/src/OrganizationsService.ts index 4d6c7256..a897c91e 100644 --- a/packages/client-organizations/src/OrganizationsService.ts +++ b/packages/client-organizations/src/OrganizationsService.ts @@ -197,7 +197,7 @@ import { import type { HttpHandlerOptions, ServiceLogger } from "@effect-aws/commons"; import { Service } from "@effect-aws/commons"; import type { Cause } from "effect"; -import { Effect, Layer } from "effect"; +import { Effect, Layer, ServiceMap } from "effect"; import type { AccessDeniedError, AccessDeniedForDependencyError, @@ -332,7 +332,7 @@ interface OrganizationsService$ { options?: HttpHandlerOptions, ): Effect.Effect< AcceptHandshakeCommandOutput, - | Cause.TimeoutException + | Cause.TimeoutError | SdkError | AccessDeniedError | AccessDeniedForDependencyError @@ -357,7 +357,7 @@ interface OrganizationsService$ { options?: HttpHandlerOptions, ): Effect.Effect< AttachPolicyCommandOutput, - | Cause.TimeoutException + | Cause.TimeoutError | SdkError | AccessDeniedError | AWSOrganizationsNotInUseError @@ -382,7 +382,7 @@ interface OrganizationsService$ { options?: HttpHandlerOptions, ): Effect.Effect< CancelHandshakeCommandOutput, - | Cause.TimeoutException + | Cause.TimeoutError | SdkError | AccessDeniedError | ConcurrentModificationError @@ -402,7 +402,7 @@ interface OrganizationsService$ { options?: HttpHandlerOptions, ): Effect.Effect< CloseAccountCommandOutput, - | Cause.TimeoutException + | Cause.TimeoutError | SdkError | AccessDeniedError | AccountAlreadyClosedError @@ -425,7 +425,7 @@ interface OrganizationsService$ { options?: HttpHandlerOptions, ): Effect.Effect< CreateAccountCommandOutput, - | Cause.TimeoutException + | Cause.TimeoutError | SdkError | AccessDeniedError | AWSOrganizationsNotInUseError @@ -446,7 +446,7 @@ interface OrganizationsService$ { options?: HttpHandlerOptions, ): Effect.Effect< CreateGovCloudAccountCommandOutput, - | Cause.TimeoutException + | Cause.TimeoutError | SdkError | AccessDeniedError | AWSOrganizationsNotInUseError @@ -467,7 +467,7 @@ interface OrganizationsService$ { options?: HttpHandlerOptions, ): Effect.Effect< CreateOrganizationCommandOutput, - | Cause.TimeoutException + | Cause.TimeoutError | SdkError | AccessDeniedError | AccessDeniedForDependencyError @@ -487,7 +487,7 @@ interface OrganizationsService$ { options?: HttpHandlerOptions, ): Effect.Effect< CreateOrganizationalUnitCommandOutput, - | Cause.TimeoutException + | Cause.TimeoutError | SdkError | AccessDeniedError | AWSOrganizationsNotInUseError @@ -508,7 +508,7 @@ interface OrganizationsService$ { options?: HttpHandlerOptions, ): Effect.Effect< CreatePolicyCommandOutput, - | Cause.TimeoutException + | Cause.TimeoutError | SdkError | AccessDeniedError | AWSOrganizationsNotInUseError @@ -531,7 +531,7 @@ interface OrganizationsService$ { options?: HttpHandlerOptions, ): Effect.Effect< DeclineHandshakeCommandOutput, - | Cause.TimeoutException + | Cause.TimeoutError | SdkError | AccessDeniedError | ConcurrentModificationError @@ -551,7 +551,7 @@ interface OrganizationsService$ { options?: HttpHandlerOptions, ): Effect.Effect< DeleteOrganizationCommandOutput, - | Cause.TimeoutException + | Cause.TimeoutError | SdkError | AccessDeniedError | AWSOrganizationsNotInUseError @@ -571,7 +571,7 @@ interface OrganizationsService$ { options?: HttpHandlerOptions, ): Effect.Effect< DeleteOrganizationalUnitCommandOutput, - | Cause.TimeoutException + | Cause.TimeoutError | SdkError | AccessDeniedError | AWSOrganizationsNotInUseError @@ -591,7 +591,7 @@ interface OrganizationsService$ { options?: HttpHandlerOptions, ): Effect.Effect< DeletePolicyCommandOutput, - | Cause.TimeoutException + | Cause.TimeoutError | SdkError | AccessDeniedError | AWSOrganizationsNotInUseError @@ -612,7 +612,7 @@ interface OrganizationsService$ { options?: HttpHandlerOptions, ): Effect.Effect< DeleteResourcePolicyCommandOutput, - | Cause.TimeoutException + | Cause.TimeoutError | SdkError | AccessDeniedError | AWSOrganizationsNotInUseError @@ -632,7 +632,7 @@ interface OrganizationsService$ { options?: HttpHandlerOptions, ): Effect.Effect< DeregisterDelegatedAdministratorCommandOutput, - | Cause.TimeoutException + | Cause.TimeoutError | SdkError | AccessDeniedError | AccountNotFoundError @@ -654,7 +654,7 @@ interface OrganizationsService$ { options?: HttpHandlerOptions, ): Effect.Effect< DescribeAccountCommandOutput, - | Cause.TimeoutException + | Cause.TimeoutError | SdkError | AccessDeniedError | AccountNotFoundError @@ -672,7 +672,7 @@ interface OrganizationsService$ { options?: HttpHandlerOptions, ): Effect.Effect< DescribeCreateAccountStatusCommandOutput, - | Cause.TimeoutException + | Cause.TimeoutError | SdkError | AccessDeniedError | AWSOrganizationsNotInUseError @@ -691,7 +691,7 @@ interface OrganizationsService$ { options?: HttpHandlerOptions, ): Effect.Effect< DescribeEffectivePolicyCommandOutput, - | Cause.TimeoutException + | Cause.TimeoutError | SdkError | AccessDeniedError | AWSOrganizationsNotInUseError @@ -712,7 +712,7 @@ interface OrganizationsService$ { options?: HttpHandlerOptions, ): Effect.Effect< DescribeHandshakeCommandOutput, - | Cause.TimeoutException + | Cause.TimeoutError | SdkError | AccessDeniedError | ConcurrentModificationError @@ -730,7 +730,7 @@ interface OrganizationsService$ { options?: HttpHandlerOptions, ): Effect.Effect< DescribeOrganizationCommandOutput, - | Cause.TimeoutException + | Cause.TimeoutError | SdkError | AccessDeniedError | AWSOrganizationsNotInUseError @@ -747,7 +747,7 @@ interface OrganizationsService$ { options?: HttpHandlerOptions, ): Effect.Effect< DescribeOrganizationalUnitCommandOutput, - | Cause.TimeoutException + | Cause.TimeoutError | SdkError | AccessDeniedError | AWSOrganizationsNotInUseError @@ -765,7 +765,7 @@ interface OrganizationsService$ { options?: HttpHandlerOptions, ): Effect.Effect< DescribePolicyCommandOutput, - | Cause.TimeoutException + | Cause.TimeoutError | SdkError | AccessDeniedError | AWSOrganizationsNotInUseError @@ -784,7 +784,7 @@ interface OrganizationsService$ { options?: HttpHandlerOptions, ): Effect.Effect< DescribeResourcePolicyCommandOutput, - | Cause.TimeoutException + | Cause.TimeoutError | SdkError | AccessDeniedError | AWSOrganizationsNotInUseError @@ -803,7 +803,7 @@ interface OrganizationsService$ { options?: HttpHandlerOptions, ): Effect.Effect< DescribeResponsibilityTransferCommandOutput, - | Cause.TimeoutException + | Cause.TimeoutError | SdkError | AccessDeniedError | AWSOrganizationsNotInUseError @@ -822,7 +822,7 @@ interface OrganizationsService$ { options?: HttpHandlerOptions, ): Effect.Effect< DetachPolicyCommandOutput, - | Cause.TimeoutException + | Cause.TimeoutError | SdkError | AccessDeniedError | AWSOrganizationsNotInUseError @@ -846,7 +846,7 @@ interface OrganizationsService$ { options?: HttpHandlerOptions, ): Effect.Effect< DisableAWSServiceAccessCommandOutput, - | Cause.TimeoutException + | Cause.TimeoutError | SdkError | AccessDeniedError | AWSOrganizationsNotInUseError @@ -866,7 +866,7 @@ interface OrganizationsService$ { options?: HttpHandlerOptions, ): Effect.Effect< DisablePolicyTypeCommandOutput, - | Cause.TimeoutException + | Cause.TimeoutError | SdkError | AccessDeniedError | AWSOrganizationsNotInUseError @@ -889,7 +889,7 @@ interface OrganizationsService$ { options?: HttpHandlerOptions, ): Effect.Effect< EnableAWSServiceAccessCommandOutput, - | Cause.TimeoutException + | Cause.TimeoutError | SdkError | AccessDeniedError | AWSOrganizationsNotInUseError @@ -909,7 +909,7 @@ interface OrganizationsService$ { options?: HttpHandlerOptions, ): Effect.Effect< EnableAllFeaturesCommandOutput, - | Cause.TimeoutException + | Cause.TimeoutError | SdkError | AccessDeniedError | AWSOrganizationsNotInUseError @@ -929,7 +929,7 @@ interface OrganizationsService$ { options?: HttpHandlerOptions, ): Effect.Effect< EnablePolicyTypeCommandOutput, - | Cause.TimeoutException + | Cause.TimeoutError | SdkError | AccessDeniedError | AWSOrganizationsNotInUseError @@ -953,7 +953,7 @@ interface OrganizationsService$ { options?: HttpHandlerOptions, ): Effect.Effect< InviteAccountToOrganizationCommandOutput, - | Cause.TimeoutException + | Cause.TimeoutError | SdkError | AccessDeniedError | AccountOwnerNotVerifiedError @@ -976,7 +976,7 @@ interface OrganizationsService$ { options?: HttpHandlerOptions, ): Effect.Effect< InviteOrganizationToTransferResponsibilityCommandOutput, - | Cause.TimeoutException + | Cause.TimeoutError | SdkError | AccessDeniedError | AWSOrganizationsNotInUseError @@ -998,7 +998,7 @@ interface OrganizationsService$ { options?: HttpHandlerOptions, ): Effect.Effect< LeaveOrganizationCommandOutput, - | Cause.TimeoutException + | Cause.TimeoutError | SdkError | AccessDeniedError | AccountNotFoundError @@ -1019,7 +1019,7 @@ interface OrganizationsService$ { options?: HttpHandlerOptions, ): Effect.Effect< ListAWSServiceAccessForOrganizationCommandOutput, - | Cause.TimeoutException + | Cause.TimeoutError | SdkError | AccessDeniedError | AWSOrganizationsNotInUseError @@ -1038,7 +1038,7 @@ interface OrganizationsService$ { options?: HttpHandlerOptions, ): Effect.Effect< ListAccountsCommandOutput, - | Cause.TimeoutException + | Cause.TimeoutError | SdkError | AccessDeniedError | AWSOrganizationsNotInUseError @@ -1055,7 +1055,7 @@ interface OrganizationsService$ { options?: HttpHandlerOptions, ): Effect.Effect< ListAccountsForParentCommandOutput, - | Cause.TimeoutException + | Cause.TimeoutError | SdkError | AccessDeniedError | AWSOrganizationsNotInUseError @@ -1073,7 +1073,7 @@ interface OrganizationsService$ { options?: HttpHandlerOptions, ): Effect.Effect< ListAccountsWithInvalidEffectivePolicyCommandOutput, - | Cause.TimeoutException + | Cause.TimeoutError | SdkError | AccessDeniedError | AWSOrganizationsNotInUseError @@ -1093,7 +1093,7 @@ interface OrganizationsService$ { options?: HttpHandlerOptions, ): Effect.Effect< ListChildrenCommandOutput, - | Cause.TimeoutException + | Cause.TimeoutError | SdkError | AccessDeniedError | AWSOrganizationsNotInUseError @@ -1111,7 +1111,7 @@ interface OrganizationsService$ { options?: HttpHandlerOptions, ): Effect.Effect< ListCreateAccountStatusCommandOutput, - | Cause.TimeoutException + | Cause.TimeoutError | SdkError | AccessDeniedError | AWSOrganizationsNotInUseError @@ -1129,7 +1129,7 @@ interface OrganizationsService$ { options?: HttpHandlerOptions, ): Effect.Effect< ListDelegatedAdministratorsCommandOutput, - | Cause.TimeoutException + | Cause.TimeoutError | SdkError | AccessDeniedError | AWSOrganizationsNotInUseError @@ -1148,7 +1148,7 @@ interface OrganizationsService$ { options?: HttpHandlerOptions, ): Effect.Effect< ListDelegatedServicesForAccountCommandOutput, - | Cause.TimeoutException + | Cause.TimeoutError | SdkError | AccessDeniedError | AccountNotFoundError @@ -1169,7 +1169,7 @@ interface OrganizationsService$ { options?: HttpHandlerOptions, ): Effect.Effect< ListEffectivePolicyValidationErrorsCommandOutput, - | Cause.TimeoutException + | Cause.TimeoutError | SdkError | AccessDeniedError | AccountNotFoundError @@ -1190,7 +1190,7 @@ interface OrganizationsService$ { options?: HttpHandlerOptions, ): Effect.Effect< ListHandshakesForAccountCommandOutput, - | Cause.TimeoutException + | Cause.TimeoutError | SdkError | AccessDeniedError | ConcurrentModificationError @@ -1207,7 +1207,7 @@ interface OrganizationsService$ { options?: HttpHandlerOptions, ): Effect.Effect< ListHandshakesForOrganizationCommandOutput, - | Cause.TimeoutException + | Cause.TimeoutError | SdkError | AccessDeniedError | AWSOrganizationsNotInUseError @@ -1225,7 +1225,7 @@ interface OrganizationsService$ { options?: HttpHandlerOptions, ): Effect.Effect< ListInboundResponsibilityTransfersCommandOutput, - | Cause.TimeoutException + | Cause.TimeoutError | SdkError | AccessDeniedError | AWSOrganizationsNotInUseError @@ -1245,7 +1245,7 @@ interface OrganizationsService$ { options?: HttpHandlerOptions, ): Effect.Effect< ListOrganizationalUnitsForParentCommandOutput, - | Cause.TimeoutException + | Cause.TimeoutError | SdkError | AccessDeniedError | AWSOrganizationsNotInUseError @@ -1263,7 +1263,7 @@ interface OrganizationsService$ { options?: HttpHandlerOptions, ): Effect.Effect< ListOutboundResponsibilityTransfersCommandOutput, - | Cause.TimeoutException + | Cause.TimeoutError | SdkError | AccessDeniedError | AWSOrganizationsNotInUseError @@ -1282,7 +1282,7 @@ interface OrganizationsService$ { options?: HttpHandlerOptions, ): Effect.Effect< ListParentsCommandOutput, - | Cause.TimeoutException + | Cause.TimeoutError | SdkError | AccessDeniedError | AWSOrganizationsNotInUseError @@ -1300,7 +1300,7 @@ interface OrganizationsService$ { options?: HttpHandlerOptions, ): Effect.Effect< ListPoliciesCommandOutput, - | Cause.TimeoutException + | Cause.TimeoutError | SdkError | AccessDeniedError | AWSOrganizationsNotInUseError @@ -1318,7 +1318,7 @@ interface OrganizationsService$ { options?: HttpHandlerOptions, ): Effect.Effect< ListPoliciesForTargetCommandOutput, - | Cause.TimeoutException + | Cause.TimeoutError | SdkError | AccessDeniedError | AWSOrganizationsNotInUseError @@ -1337,7 +1337,7 @@ interface OrganizationsService$ { options?: HttpHandlerOptions, ): Effect.Effect< ListRootsCommandOutput, - | Cause.TimeoutException + | Cause.TimeoutError | SdkError | AccessDeniedError | AWSOrganizationsNotInUseError @@ -1354,7 +1354,7 @@ interface OrganizationsService$ { options?: HttpHandlerOptions, ): Effect.Effect< ListTagsForResourceCommandOutput, - | Cause.TimeoutException + | Cause.TimeoutError | SdkError | AccessDeniedError | AWSOrganizationsNotInUseError @@ -1372,7 +1372,7 @@ interface OrganizationsService$ { options?: HttpHandlerOptions, ): Effect.Effect< ListTargetsForPolicyCommandOutput, - | Cause.TimeoutException + | Cause.TimeoutError | SdkError | AccessDeniedError | AWSOrganizationsNotInUseError @@ -1391,7 +1391,7 @@ interface OrganizationsService$ { options?: HttpHandlerOptions, ): Effect.Effect< MoveAccountCommandOutput, - | Cause.TimeoutException + | Cause.TimeoutError | SdkError | AccessDeniedError | AccountNotFoundError @@ -1413,7 +1413,7 @@ interface OrganizationsService$ { options?: HttpHandlerOptions, ): Effect.Effect< PutResourcePolicyCommandOutput, - | Cause.TimeoutException + | Cause.TimeoutError | SdkError | AccessDeniedError | AWSOrganizationsNotInUseError @@ -1433,7 +1433,7 @@ interface OrganizationsService$ { options?: HttpHandlerOptions, ): Effect.Effect< RegisterDelegatedAdministratorCommandOutput, - | Cause.TimeoutException + | Cause.TimeoutError | SdkError | AccessDeniedError | AccountAlreadyRegisteredError @@ -1455,7 +1455,7 @@ interface OrganizationsService$ { options?: HttpHandlerOptions, ): Effect.Effect< RemoveAccountFromOrganizationCommandOutput, - | Cause.TimeoutException + | Cause.TimeoutError | SdkError | AccessDeniedError | AccountNotFoundError @@ -1476,7 +1476,7 @@ interface OrganizationsService$ { options?: HttpHandlerOptions, ): Effect.Effect< TagResourceCommandOutput, - | Cause.TimeoutException + | Cause.TimeoutError | SdkError | AccessDeniedError | AWSOrganizationsNotInUseError @@ -1496,7 +1496,7 @@ interface OrganizationsService$ { options?: HttpHandlerOptions, ): Effect.Effect< TerminateResponsibilityTransferCommandOutput, - | Cause.TimeoutException + | Cause.TimeoutError | SdkError | AccessDeniedError | AWSOrganizationsNotInUseError @@ -1519,7 +1519,7 @@ interface OrganizationsService$ { options?: HttpHandlerOptions, ): Effect.Effect< UntagResourceCommandOutput, - | Cause.TimeoutException + | Cause.TimeoutError | SdkError | AccessDeniedError | AWSOrganizationsNotInUseError @@ -1539,7 +1539,7 @@ interface OrganizationsService$ { options?: HttpHandlerOptions, ): Effect.Effect< UpdateOrganizationalUnitCommandOutput, - | Cause.TimeoutException + | Cause.TimeoutError | SdkError | AccessDeniedError | AWSOrganizationsNotInUseError @@ -1559,7 +1559,7 @@ interface OrganizationsService$ { options?: HttpHandlerOptions, ): Effect.Effect< UpdatePolicyCommandOutput, - | Cause.TimeoutException + | Cause.TimeoutError | SdkError | AccessDeniedError | AWSOrganizationsNotInUseError @@ -1583,7 +1583,7 @@ interface OrganizationsService$ { options?: HttpHandlerOptions, ): Effect.Effect< UpdateResponsibilityTransferCommandOutput, - | Cause.TimeoutException + | Cause.TimeoutError | SdkError | AccessDeniedError | AWSOrganizationsNotInUseError @@ -1617,10 +1617,10 @@ export const makeOrganizationsService = Effect.gen(function*() { * @since 1.0.0 * @category models */ -export class OrganizationsService extends Effect.Tag("@effect-aws/client-organizations/OrganizationsService")< +export class OrganizationsService extends ServiceMap.Service< OrganizationsService, OrganizationsService$ ->() { +>()("@effect-aws/client-organizations/OrganizationsService") { static readonly defaultLayer = Layer.effect(this, makeOrganizationsService).pipe(Layer.provide(Instance.layer)); static readonly layer = (config: OrganizationsService.Config) => Layer.effect(this, makeOrganizationsService).pipe( diff --git a/packages/client-organizations/src/OrganizationsServiceConfig.ts b/packages/client-organizations/src/OrganizationsServiceConfig.ts index aae9f7a0..d7cb766e 100644 --- a/packages/client-organizations/src/OrganizationsServiceConfig.ts +++ b/packages/client-organizations/src/OrganizationsServiceConfig.ts @@ -3,18 +3,17 @@ */ import type { OrganizationsClientConfig } from "@aws-sdk/client-organizations"; import { ServiceLogger } from "@effect-aws/commons"; -import { Effect, FiberRef, Layer } from "effect"; +import { Effect, Layer, ServiceMap } from "effect"; import { dual } from "effect/Function"; -import { globalValue } from "effect/GlobalValue"; import type { OrganizationsService } from "./OrganizationsService.js"; /** * @since 1.0.0 * @category organizations service config */ -const currentOrganizationsServiceConfig = globalValue( +const currentOrganizationsServiceConfig = ServiceMap.Reference( "@effect-aws/client-organizations/currentOrganizationsServiceConfig", - () => FiberRef.unsafeMake({}), + { defaultValue: () => ({}) }, ); /** @@ -27,7 +26,7 @@ export const withOrganizationsServiceConfig: { } = dual( 2, (effect: Effect.Effect, config: OrganizationsService.Config): Effect.Effect => - Effect.locally(effect, currentOrganizationsServiceConfig, config), + Effect.provideService(effect, currentOrganizationsServiceConfig, config), ); /** @@ -35,14 +34,14 @@ export const withOrganizationsServiceConfig: { * @category organizations service config */ export const setOrganizationsServiceConfig = (config: OrganizationsService.Config) => - Layer.locallyScoped(currentOrganizationsServiceConfig, config); + Layer.succeed(currentOrganizationsServiceConfig, config); /** * @since 1.0.0 * @category adapters */ export const toOrganizationsClientConfig: Effect.Effect = Effect.gen(function*() { - const { logger: serviceLogger, ...config } = yield* FiberRef.get(currentOrganizationsServiceConfig); + const { logger: serviceLogger, ...config } = yield* currentOrganizationsServiceConfig; const logger = serviceLogger === true ? yield* ServiceLogger.toClientLogger(ServiceLogger.defaultServiceLogger) diff --git a/packages/client-organizations/test/Organizations.test.ts b/packages/client-organizations/test/Organizations.test.ts index 2fd3fca4..7dc2b08e 100644 --- a/packages/client-organizations/test/Organizations.test.ts +++ b/packages/client-organizations/test/Organizations.test.ts @@ -26,7 +26,7 @@ describe("OrganizationsClientImpl", () => { const args = {} as unknown as DescribeOrganizationCommandInput; - const program = Organizations.describeOrganization(args); + const program = Organizations.use((svc) => svc.describeOrganization(args)); const result = await pipe( program, @@ -46,7 +46,7 @@ describe("OrganizationsClientImpl", () => { const args = {} as unknown as DescribeOrganizationCommandInput; - const program = Organizations.describeOrganization(args); + const program = Organizations.use((svc) => svc.describeOrganization(args)); const result = await pipe( program, @@ -69,7 +69,7 @@ describe("OrganizationsClientImpl", () => { const args = {} as unknown as DescribeOrganizationCommandInput; - const program = Organizations.describeOrganization(args); + const program = Organizations.use((svc) => svc.describeOrganization(args)); const result = await pipe( program, @@ -93,7 +93,7 @@ describe("OrganizationsClientImpl", () => { const args = {} as unknown as DescribeOrganizationCommandInput; - const program = Organizations.describeOrganization(args); + const program = Organizations.use((svc) => svc.describeOrganization(args)); const result = await pipe( program, @@ -121,7 +121,7 @@ describe("OrganizationsClientImpl", () => { const args = {} as unknown as DescribeOrganizationCommandInput; - const program = Organizations.describeOrganization(args); + const program = Organizations.use((svc) => svc.describeOrganization(args)); const result = await pipe( program, @@ -131,7 +131,7 @@ describe("OrganizationsClientImpl", () => { expect(result).toEqual( Exit.fail( - SdkError({ + new SdkError({ ...new Error("test"), name: "SdkError", message: "test", @@ -156,7 +156,7 @@ describe("OrganizationsClientImpl", () => { const args = {} as unknown as DescribeOrganizationCommandInput; - const program = Organizations.describeOrganization(args).pipe( + const program = Organizations.use((svc) => svc.describeOrganization(args)).pipe( Effect.catchTag("NotHandledException" as any, () => Effect.succeed(null)), ); @@ -166,9 +166,9 @@ describe("OrganizationsClientImpl", () => { Effect.runPromiseExit, ); - expect(result).toEqual( + expect(result).toContainEqual( Exit.fail( - SdkError({ + new SdkError({ ...new Error("test"), name: "SdkError", message: "test", diff --git a/packages/client-rds/.projen/deps.json b/packages/client-rds/.projen/deps.json index 7d512522..1cf33dfd 100644 --- a/packages/client-rds/.projen/deps.json +++ b/packages/client-rds/.projen/deps.json @@ -7,6 +7,7 @@ }, { "name": "effect", + "version": "4.0.0-beta.8", "type": "build" }, { @@ -16,7 +17,7 @@ }, { "name": "effect", - "version": ">=3.0.4 <4.0.0", + "version": ">=4.0.0 <5.0.0", "type": "peer" }, { diff --git a/packages/client-rds/README.md b/packages/client-rds/README.md index c1979bc2..03162b53 100644 --- a/packages/client-rds/README.md +++ b/packages/client-rds/README.md @@ -16,7 +16,7 @@ With default RDSClient instance: ```typescript import { RDS } from "@effect-aws/client-rds"; -const program = RDS.describeDBClusters(args); +const program = RDS.use((svc) => svc.describeDBClusters(args)); const result = pipe( program, @@ -30,7 +30,7 @@ With custom RDSClient instance: ```typescript import { RDS } from "@effect-aws/client-rds"; -const program = RDS.describeDBClusters(args); +const program = RDS.use((svc) => svc.describeDBClusters(args)); const result = await pipe( program, @@ -46,7 +46,7 @@ With custom RDSClient configuration: ```typescript import { RDS } from "@effect-aws/client-rds"; -const program = RDS.describeDBClusters(args); +const program = RDS.use((svc) => svc.describeDBClusters(args)); const result = await pipe( program, diff --git a/packages/client-rds/package.json b/packages/client-rds/package.json index 8f982791..791855cc 100644 --- a/packages/client-rds/package.json +++ b/packages/client-rds/package.json @@ -26,11 +26,11 @@ }, "devDependencies": { "@types/node": "ts5.4", - "effect": "^3.16.4", + "effect": "4.0.0-beta.8", "typescript": "^5.4.2" }, "peerDependencies": { - "effect": ">=3.0.4 <4.0.0" + "effect": ">=4.0.0 <5.0.0" }, "dependencies": { "@aws-sdk/client-rds": "^3", diff --git a/packages/client-rds/src/RDSClientInstance.ts b/packages/client-rds/src/RDSClientInstance.ts index e065f23a..dc9082fb 100644 --- a/packages/client-rds/src/RDSClientInstance.ts +++ b/packages/client-rds/src/RDSClientInstance.ts @@ -2,16 +2,16 @@ * @since 1.0.0 */ import { RDSClient } from "@aws-sdk/client-rds"; -import { Context, Effect, Layer } from "effect"; +import { Effect, Layer, ServiceMap } from "effect"; import * as RDSServiceConfig from "./RDSServiceConfig.js"; /** * @since 1.0.0 * @category tags */ -export class RDSClientInstance extends Context.Tag( +export class RDSClientInstance extends ServiceMap.Service()( "@effect-aws/client-rds/RDSClientInstance", -)() {} +) {} /** * @since 1.0.0 @@ -30,4 +30,4 @@ export const make = Effect.flatMap( * @since 1.0.0 * @category layers */ -export const layer = Layer.scoped(RDSClientInstance, make); +export const layer = Layer.effect(RDSClientInstance, make); diff --git a/packages/client-rds/src/RDSService.ts b/packages/client-rds/src/RDSService.ts index a044812f..96ab40c6 100644 --- a/packages/client-rds/src/RDSService.ts +++ b/packages/client-rds/src/RDSService.ts @@ -497,7 +497,7 @@ import { import type { HttpHandlerOptions, ServiceLogger } from "@effect-aws/commons"; import { Service } from "@effect-aws/commons"; import type { Cause } from "effect"; -import { Effect, Layer } from "effect"; +import { Effect, Layer, ServiceMap } from "effect"; import type { AuthorizationAlreadyExistsFaultError, AuthorizationNotFoundFaultError, @@ -828,7 +828,7 @@ interface RDSService$ { options?: HttpHandlerOptions, ): Effect.Effect< AddRoleToDBClusterCommandOutput, - | Cause.TimeoutException + | Cause.TimeoutError | SdkError | DBClusterNotFoundFaultError | DBClusterRoleAlreadyExistsFaultError @@ -844,7 +844,7 @@ interface RDSService$ { options?: HttpHandlerOptions, ): Effect.Effect< AddRoleToDBInstanceCommandOutput, - | Cause.TimeoutException + | Cause.TimeoutError | SdkError | DBInstanceNotFoundFaultError | DBInstanceRoleAlreadyExistsFaultError @@ -860,7 +860,7 @@ interface RDSService$ { options?: HttpHandlerOptions, ): Effect.Effect< AddSourceIdentifierToSubscriptionCommandOutput, - Cause.TimeoutException | SdkError | SourceNotFoundFaultError | SubscriptionNotFoundFaultError + Cause.TimeoutError | SdkError | SourceNotFoundFaultError | SubscriptionNotFoundFaultError >; /** @@ -871,7 +871,7 @@ interface RDSService$ { options?: HttpHandlerOptions, ): Effect.Effect< AddTagsToResourceCommandOutput, - | Cause.TimeoutException + | Cause.TimeoutError | SdkError | BlueGreenDeploymentNotFoundFaultError | DBClusterNotFoundFaultError @@ -897,7 +897,7 @@ interface RDSService$ { options?: HttpHandlerOptions, ): Effect.Effect< ApplyPendingMaintenanceActionCommandOutput, - | Cause.TimeoutException + | Cause.TimeoutError | SdkError | InvalidDBClusterStateFaultError | InvalidDBInstanceStateFaultError @@ -912,7 +912,7 @@ interface RDSService$ { options?: HttpHandlerOptions, ): Effect.Effect< AuthorizeDBSecurityGroupIngressCommandOutput, - | Cause.TimeoutException + | Cause.TimeoutError | SdkError | AuthorizationAlreadyExistsFaultError | AuthorizationQuotaExceededFaultError @@ -928,7 +928,7 @@ interface RDSService$ { options?: HttpHandlerOptions, ): Effect.Effect< BacktrackDBClusterCommandOutput, - Cause.TimeoutException | SdkError | DBClusterNotFoundFaultError | InvalidDBClusterStateFaultError + Cause.TimeoutError | SdkError | DBClusterNotFoundFaultError | InvalidDBClusterStateFaultError >; /** @@ -939,7 +939,7 @@ interface RDSService$ { options?: HttpHandlerOptions, ): Effect.Effect< CancelExportTaskCommandOutput, - Cause.TimeoutException | SdkError | ExportTaskNotFoundFaultError | InvalidExportTaskStateFaultError + Cause.TimeoutError | SdkError | ExportTaskNotFoundFaultError | InvalidExportTaskStateFaultError >; /** @@ -950,7 +950,7 @@ interface RDSService$ { options?: HttpHandlerOptions, ): Effect.Effect< CopyDBClusterParameterGroupCommandOutput, - | Cause.TimeoutException + | Cause.TimeoutError | SdkError | DBParameterGroupAlreadyExistsFaultError | DBParameterGroupNotFoundFaultError @@ -965,7 +965,7 @@ interface RDSService$ { options?: HttpHandlerOptions, ): Effect.Effect< CopyDBClusterSnapshotCommandOutput, - | Cause.TimeoutException + | Cause.TimeoutError | SdkError | DBClusterSnapshotAlreadyExistsFaultError | DBClusterSnapshotNotFoundFaultError @@ -983,7 +983,7 @@ interface RDSService$ { options?: HttpHandlerOptions, ): Effect.Effect< CopyDBParameterGroupCommandOutput, - | Cause.TimeoutException + | Cause.TimeoutError | SdkError | DBParameterGroupAlreadyExistsFaultError | DBParameterGroupNotFoundFaultError @@ -998,7 +998,7 @@ interface RDSService$ { options?: HttpHandlerOptions, ): Effect.Effect< CopyDBSnapshotCommandOutput, - | Cause.TimeoutException + | Cause.TimeoutError | SdkError | CustomAvailabilityZoneNotFoundFaultError | DBSnapshotAlreadyExistsFaultError @@ -1016,7 +1016,7 @@ interface RDSService$ { options?: HttpHandlerOptions, ): Effect.Effect< CopyOptionGroupCommandOutput, - | Cause.TimeoutException + | Cause.TimeoutError | SdkError | OptionGroupAlreadyExistsFaultError | OptionGroupNotFoundFaultError @@ -1031,7 +1031,7 @@ interface RDSService$ { options?: HttpHandlerOptions, ): Effect.Effect< CreateBlueGreenDeploymentCommandOutput, - | Cause.TimeoutException + | Cause.TimeoutError | SdkError | BlueGreenDeploymentAlreadyExistsFaultError | DBClusterNotFoundFaultError @@ -1055,7 +1055,7 @@ interface RDSService$ { options?: HttpHandlerOptions, ): Effect.Effect< CreateCustomDBEngineVersionCommandOutput, - | Cause.TimeoutException + | Cause.TimeoutError | SdkError | CreateCustomDBEngineVersionFaultError | CustomDBEngineVersionAlreadyExistsFaultError @@ -1074,7 +1074,7 @@ interface RDSService$ { options?: HttpHandlerOptions, ): Effect.Effect< CreateDBClusterCommandOutput, - | Cause.TimeoutException + | Cause.TimeoutError | SdkError | DBClusterAlreadyExistsFaultError | DBClusterNotFoundFaultError @@ -1110,7 +1110,7 @@ interface RDSService$ { options?: HttpHandlerOptions, ): Effect.Effect< CreateDBClusterEndpointCommandOutput, - | Cause.TimeoutException + | Cause.TimeoutError | SdkError | DBClusterEndpointAlreadyExistsFaultError | DBClusterEndpointQuotaExceededFaultError @@ -1128,10 +1128,7 @@ interface RDSService$ { options?: HttpHandlerOptions, ): Effect.Effect< CreateDBClusterParameterGroupCommandOutput, - | Cause.TimeoutException - | SdkError - | DBParameterGroupAlreadyExistsFaultError - | DBParameterGroupQuotaExceededFaultError + Cause.TimeoutError | SdkError | DBParameterGroupAlreadyExistsFaultError | DBParameterGroupQuotaExceededFaultError >; /** @@ -1142,7 +1139,7 @@ interface RDSService$ { options?: HttpHandlerOptions, ): Effect.Effect< CreateDBClusterSnapshotCommandOutput, - | Cause.TimeoutException + | Cause.TimeoutError | SdkError | DBClusterNotFoundFaultError | DBClusterSnapshotAlreadyExistsFaultError @@ -1159,7 +1156,7 @@ interface RDSService$ { options?: HttpHandlerOptions, ): Effect.Effect< CreateDBInstanceCommandOutput, - | Cause.TimeoutException + | Cause.TimeoutError | SdkError | AuthorizationNotFoundFaultError | BackupPolicyNotFoundFaultError @@ -1194,7 +1191,7 @@ interface RDSService$ { options?: HttpHandlerOptions, ): Effect.Effect< CreateDBInstanceReadReplicaCommandOutput, - | Cause.TimeoutException + | Cause.TimeoutError | SdkError | CertificateNotFoundFaultError | DBClusterNotFoundFaultError @@ -1231,10 +1228,7 @@ interface RDSService$ { options?: HttpHandlerOptions, ): Effect.Effect< CreateDBParameterGroupCommandOutput, - | Cause.TimeoutException - | SdkError - | DBParameterGroupAlreadyExistsFaultError - | DBParameterGroupQuotaExceededFaultError + Cause.TimeoutError | SdkError | DBParameterGroupAlreadyExistsFaultError | DBParameterGroupQuotaExceededFaultError >; /** @@ -1245,11 +1239,7 @@ interface RDSService$ { options?: HttpHandlerOptions, ): Effect.Effect< CreateDBProxyCommandOutput, - | Cause.TimeoutException - | SdkError - | DBProxyAlreadyExistsFaultError - | DBProxyQuotaExceededFaultError - | InvalidSubnetError + Cause.TimeoutError | SdkError | DBProxyAlreadyExistsFaultError | DBProxyQuotaExceededFaultError | InvalidSubnetError >; /** @@ -1260,7 +1250,7 @@ interface RDSService$ { options?: HttpHandlerOptions, ): Effect.Effect< CreateDBProxyEndpointCommandOutput, - | Cause.TimeoutException + | Cause.TimeoutError | SdkError | DBProxyEndpointAlreadyExistsFaultError | DBProxyEndpointQuotaExceededFaultError @@ -1277,7 +1267,7 @@ interface RDSService$ { options?: HttpHandlerOptions, ): Effect.Effect< CreateDBSecurityGroupCommandOutput, - | Cause.TimeoutException + | Cause.TimeoutError | SdkError | DBSecurityGroupAlreadyExistsFaultError | DBSecurityGroupNotSupportedFaultError @@ -1292,7 +1282,7 @@ interface RDSService$ { options?: HttpHandlerOptions, ): Effect.Effect< CreateDBShardGroupCommandOutput, - | Cause.TimeoutException + | Cause.TimeoutError | SdkError | DBClusterNotFoundFaultError | DBShardGroupAlreadyExistsFaultError @@ -1311,7 +1301,7 @@ interface RDSService$ { options?: HttpHandlerOptions, ): Effect.Effect< CreateDBSnapshotCommandOutput, - | Cause.TimeoutException + | Cause.TimeoutError | SdkError | DBInstanceNotFoundFaultError | DBSnapshotAlreadyExistsFaultError @@ -1327,7 +1317,7 @@ interface RDSService$ { options?: HttpHandlerOptions, ): Effect.Effect< CreateDBSubnetGroupCommandOutput, - | Cause.TimeoutException + | Cause.TimeoutError | SdkError | DBSubnetGroupAlreadyExistsFaultError | DBSubnetGroupDoesNotCoverEnoughAZsError @@ -1344,7 +1334,7 @@ interface RDSService$ { options?: HttpHandlerOptions, ): Effect.Effect< CreateEventSubscriptionCommandOutput, - | Cause.TimeoutException + | Cause.TimeoutError | SdkError | EventSubscriptionQuotaExceededFaultError | SNSInvalidTopicFaultError @@ -1363,7 +1353,7 @@ interface RDSService$ { options?: HttpHandlerOptions, ): Effect.Effect< CreateGlobalClusterCommandOutput, - | Cause.TimeoutException + | Cause.TimeoutError | SdkError | DBClusterNotFoundFaultError | GlobalClusterAlreadyExistsFaultError @@ -1381,7 +1371,7 @@ interface RDSService$ { options?: HttpHandlerOptions, ): Effect.Effect< CreateIntegrationCommandOutput, - | Cause.TimeoutException + | Cause.TimeoutError | SdkError | DBClusterNotFoundFaultError | DBInstanceNotFoundFaultError @@ -1399,7 +1389,7 @@ interface RDSService$ { options?: HttpHandlerOptions, ): Effect.Effect< CreateOptionGroupCommandOutput, - Cause.TimeoutException | SdkError | OptionGroupAlreadyExistsFaultError | OptionGroupQuotaExceededFaultError + Cause.TimeoutError | SdkError | OptionGroupAlreadyExistsFaultError | OptionGroupQuotaExceededFaultError >; /** @@ -1410,7 +1400,7 @@ interface RDSService$ { options?: HttpHandlerOptions, ): Effect.Effect< CreateTenantDatabaseCommandOutput, - | Cause.TimeoutException + | Cause.TimeoutError | SdkError | DBInstanceNotFoundFaultError | InvalidDBInstanceStateFaultError @@ -1427,10 +1417,7 @@ interface RDSService$ { options?: HttpHandlerOptions, ): Effect.Effect< DeleteBlueGreenDeploymentCommandOutput, - | Cause.TimeoutException - | SdkError - | BlueGreenDeploymentNotFoundFaultError - | InvalidBlueGreenDeploymentStateFaultError + Cause.TimeoutError | SdkError | BlueGreenDeploymentNotFoundFaultError | InvalidBlueGreenDeploymentStateFaultError >; /** @@ -1441,7 +1428,7 @@ interface RDSService$ { options?: HttpHandlerOptions, ): Effect.Effect< DeleteCustomDBEngineVersionCommandOutput, - | Cause.TimeoutException + | Cause.TimeoutError | SdkError | CustomDBEngineVersionNotFoundFaultError | InvalidCustomDBEngineVersionStateFaultError @@ -1455,7 +1442,7 @@ interface RDSService$ { options?: HttpHandlerOptions, ): Effect.Effect< DeleteDBClusterCommandOutput, - | Cause.TimeoutException + | Cause.TimeoutError | SdkError | DBClusterAutomatedBackupQuotaExceededFaultError | DBClusterNotFoundFaultError @@ -1475,7 +1462,7 @@ interface RDSService$ { options?: HttpHandlerOptions, ): Effect.Effect< DeleteDBClusterAutomatedBackupCommandOutput, - | Cause.TimeoutException + | Cause.TimeoutError | SdkError | DBClusterAutomatedBackupNotFoundFaultError | InvalidDBClusterAutomatedBackupStateFaultError @@ -1489,7 +1476,7 @@ interface RDSService$ { options?: HttpHandlerOptions, ): Effect.Effect< DeleteDBClusterEndpointCommandOutput, - | Cause.TimeoutException + | Cause.TimeoutError | SdkError | DBClusterEndpointNotFoundFaultError | InvalidDBClusterEndpointStateFaultError @@ -1504,7 +1491,7 @@ interface RDSService$ { options?: HttpHandlerOptions, ): Effect.Effect< DeleteDBClusterParameterGroupCommandOutput, - Cause.TimeoutException | SdkError | DBParameterGroupNotFoundFaultError | InvalidDBParameterGroupStateFaultError + Cause.TimeoutError | SdkError | DBParameterGroupNotFoundFaultError | InvalidDBParameterGroupStateFaultError >; /** @@ -1515,7 +1502,7 @@ interface RDSService$ { options?: HttpHandlerOptions, ): Effect.Effect< DeleteDBClusterSnapshotCommandOutput, - Cause.TimeoutException | SdkError | DBClusterSnapshotNotFoundFaultError | InvalidDBClusterSnapshotStateFaultError + Cause.TimeoutError | SdkError | DBClusterSnapshotNotFoundFaultError | InvalidDBClusterSnapshotStateFaultError >; /** @@ -1526,7 +1513,7 @@ interface RDSService$ { options?: HttpHandlerOptions, ): Effect.Effect< DeleteDBInstanceCommandOutput, - | Cause.TimeoutException + | Cause.TimeoutError | SdkError | DBInstanceAutomatedBackupQuotaExceededFaultError | DBInstanceNotFoundFaultError @@ -1545,7 +1532,7 @@ interface RDSService$ { options?: HttpHandlerOptions, ): Effect.Effect< DeleteDBInstanceAutomatedBackupCommandOutput, - | Cause.TimeoutException + | Cause.TimeoutError | SdkError | DBInstanceAutomatedBackupNotFoundFaultError | InvalidDBInstanceAutomatedBackupStateFaultError @@ -1559,7 +1546,7 @@ interface RDSService$ { options?: HttpHandlerOptions, ): Effect.Effect< DeleteDBParameterGroupCommandOutput, - Cause.TimeoutException | SdkError | DBParameterGroupNotFoundFaultError | InvalidDBParameterGroupStateFaultError + Cause.TimeoutError | SdkError | DBParameterGroupNotFoundFaultError | InvalidDBParameterGroupStateFaultError >; /** @@ -1570,7 +1557,7 @@ interface RDSService$ { options?: HttpHandlerOptions, ): Effect.Effect< DeleteDBProxyCommandOutput, - Cause.TimeoutException | SdkError | DBProxyNotFoundFaultError | InvalidDBProxyStateFaultError + Cause.TimeoutError | SdkError | DBProxyNotFoundFaultError | InvalidDBProxyStateFaultError >; /** @@ -1581,7 +1568,7 @@ interface RDSService$ { options?: HttpHandlerOptions, ): Effect.Effect< DeleteDBProxyEndpointCommandOutput, - Cause.TimeoutException | SdkError | DBProxyEndpointNotFoundFaultError | InvalidDBProxyEndpointStateFaultError + Cause.TimeoutError | SdkError | DBProxyEndpointNotFoundFaultError | InvalidDBProxyEndpointStateFaultError >; /** @@ -1592,7 +1579,7 @@ interface RDSService$ { options?: HttpHandlerOptions, ): Effect.Effect< DeleteDBSecurityGroupCommandOutput, - Cause.TimeoutException | SdkError | DBSecurityGroupNotFoundFaultError | InvalidDBSecurityGroupStateFaultError + Cause.TimeoutError | SdkError | DBSecurityGroupNotFoundFaultError | InvalidDBSecurityGroupStateFaultError >; /** @@ -1603,7 +1590,7 @@ interface RDSService$ { options?: HttpHandlerOptions, ): Effect.Effect< DeleteDBShardGroupCommandOutput, - | Cause.TimeoutException + | Cause.TimeoutError | SdkError | DBShardGroupNotFoundFaultError | InvalidDBClusterStateFaultError @@ -1618,7 +1605,7 @@ interface RDSService$ { options?: HttpHandlerOptions, ): Effect.Effect< DeleteDBSnapshotCommandOutput, - Cause.TimeoutException | SdkError | DBSnapshotNotFoundFaultError | InvalidDBSnapshotStateFaultError + Cause.TimeoutError | SdkError | DBSnapshotNotFoundFaultError | InvalidDBSnapshotStateFaultError >; /** @@ -1629,7 +1616,7 @@ interface RDSService$ { options?: HttpHandlerOptions, ): Effect.Effect< DeleteDBSubnetGroupCommandOutput, - | Cause.TimeoutException + | Cause.TimeoutError | SdkError | DBSubnetGroupNotFoundFaultError | InvalidDBSubnetGroupStateFaultError @@ -1644,7 +1631,7 @@ interface RDSService$ { options?: HttpHandlerOptions, ): Effect.Effect< DeleteEventSubscriptionCommandOutput, - Cause.TimeoutException | SdkError | InvalidEventSubscriptionStateFaultError | SubscriptionNotFoundFaultError + Cause.TimeoutError | SdkError | InvalidEventSubscriptionStateFaultError | SubscriptionNotFoundFaultError >; /** @@ -1655,7 +1642,7 @@ interface RDSService$ { options?: HttpHandlerOptions, ): Effect.Effect< DeleteGlobalClusterCommandOutput, - Cause.TimeoutException | SdkError | GlobalClusterNotFoundFaultError | InvalidGlobalClusterStateFaultError + Cause.TimeoutError | SdkError | GlobalClusterNotFoundFaultError | InvalidGlobalClusterStateFaultError >; /** @@ -1666,7 +1653,7 @@ interface RDSService$ { options?: HttpHandlerOptions, ): Effect.Effect< DeleteIntegrationCommandOutput, - | Cause.TimeoutException + | Cause.TimeoutError | SdkError | IntegrationConflictOperationFaultError | IntegrationNotFoundFaultError @@ -1681,7 +1668,7 @@ interface RDSService$ { options?: HttpHandlerOptions, ): Effect.Effect< DeleteOptionGroupCommandOutput, - Cause.TimeoutException | SdkError | InvalidOptionGroupStateFaultError | OptionGroupNotFoundFaultError + Cause.TimeoutError | SdkError | InvalidOptionGroupStateFaultError | OptionGroupNotFoundFaultError >; /** @@ -1692,7 +1679,7 @@ interface RDSService$ { options?: HttpHandlerOptions, ): Effect.Effect< DeleteTenantDatabaseCommandOutput, - | Cause.TimeoutException + | Cause.TimeoutError | SdkError | DBInstanceNotFoundFaultError | DBSnapshotAlreadyExistsFaultError @@ -1708,7 +1695,7 @@ interface RDSService$ { options?: HttpHandlerOptions, ): Effect.Effect< DeregisterDBProxyTargetsCommandOutput, - | Cause.TimeoutException + | Cause.TimeoutError | SdkError | DBProxyNotFoundFaultError | DBProxyTargetGroupNotFoundFaultError @@ -1724,7 +1711,7 @@ interface RDSService$ { options?: HttpHandlerOptions, ): Effect.Effect< DescribeAccountAttributesCommandOutput, - Cause.TimeoutException | SdkError + Cause.TimeoutError | SdkError >; /** @@ -1735,7 +1722,7 @@ interface RDSService$ { options?: HttpHandlerOptions, ): Effect.Effect< DescribeBlueGreenDeploymentsCommandOutput, - Cause.TimeoutException | SdkError | BlueGreenDeploymentNotFoundFaultError + Cause.TimeoutError | SdkError | BlueGreenDeploymentNotFoundFaultError >; /** @@ -1746,7 +1733,7 @@ interface RDSService$ { options?: HttpHandlerOptions, ): Effect.Effect< DescribeCertificatesCommandOutput, - Cause.TimeoutException | SdkError | CertificateNotFoundFaultError + Cause.TimeoutError | SdkError | CertificateNotFoundFaultError >; /** @@ -1757,7 +1744,7 @@ interface RDSService$ { options?: HttpHandlerOptions, ): Effect.Effect< DescribeDBClusterAutomatedBackupsCommandOutput, - Cause.TimeoutException | SdkError | DBClusterAutomatedBackupNotFoundFaultError + Cause.TimeoutError | SdkError | DBClusterAutomatedBackupNotFoundFaultError >; /** @@ -1768,7 +1755,7 @@ interface RDSService$ { options?: HttpHandlerOptions, ): Effect.Effect< DescribeDBClusterBacktracksCommandOutput, - Cause.TimeoutException | SdkError | DBClusterBacktrackNotFoundFaultError | DBClusterNotFoundFaultError + Cause.TimeoutError | SdkError | DBClusterBacktrackNotFoundFaultError | DBClusterNotFoundFaultError >; /** @@ -1779,7 +1766,7 @@ interface RDSService$ { options?: HttpHandlerOptions, ): Effect.Effect< DescribeDBClusterEndpointsCommandOutput, - Cause.TimeoutException | SdkError | DBClusterNotFoundFaultError + Cause.TimeoutError | SdkError | DBClusterNotFoundFaultError >; /** @@ -1790,7 +1777,7 @@ interface RDSService$ { options?: HttpHandlerOptions, ): Effect.Effect< DescribeDBClusterParameterGroupsCommandOutput, - Cause.TimeoutException | SdkError | DBParameterGroupNotFoundFaultError + Cause.TimeoutError | SdkError | DBParameterGroupNotFoundFaultError >; /** @@ -1801,7 +1788,7 @@ interface RDSService$ { options?: HttpHandlerOptions, ): Effect.Effect< DescribeDBClusterParametersCommandOutput, - Cause.TimeoutException | SdkError | DBParameterGroupNotFoundFaultError + Cause.TimeoutError | SdkError | DBParameterGroupNotFoundFaultError >; /** @@ -1812,7 +1799,7 @@ interface RDSService$ { options?: HttpHandlerOptions, ): Effect.Effect< DescribeDBClusterSnapshotAttributesCommandOutput, - Cause.TimeoutException | SdkError | DBClusterSnapshotNotFoundFaultError + Cause.TimeoutError | SdkError | DBClusterSnapshotNotFoundFaultError >; /** @@ -1823,7 +1810,7 @@ interface RDSService$ { options?: HttpHandlerOptions, ): Effect.Effect< DescribeDBClusterSnapshotsCommandOutput, - Cause.TimeoutException | SdkError | DBClusterSnapshotNotFoundFaultError + Cause.TimeoutError | SdkError | DBClusterSnapshotNotFoundFaultError >; /** @@ -1834,7 +1821,7 @@ interface RDSService$ { options?: HttpHandlerOptions, ): Effect.Effect< DescribeDBClustersCommandOutput, - Cause.TimeoutException | SdkError | DBClusterNotFoundFaultError + Cause.TimeoutError | SdkError | DBClusterNotFoundFaultError >; /** @@ -1845,7 +1832,7 @@ interface RDSService$ { options?: HttpHandlerOptions, ): Effect.Effect< DescribeDBEngineVersionsCommandOutput, - Cause.TimeoutException | SdkError + Cause.TimeoutError | SdkError >; /** @@ -1856,7 +1843,7 @@ interface RDSService$ { options?: HttpHandlerOptions, ): Effect.Effect< DescribeDBInstanceAutomatedBackupsCommandOutput, - Cause.TimeoutException | SdkError | DBInstanceAutomatedBackupNotFoundFaultError + Cause.TimeoutError | SdkError | DBInstanceAutomatedBackupNotFoundFaultError >; /** @@ -1867,7 +1854,7 @@ interface RDSService$ { options?: HttpHandlerOptions, ): Effect.Effect< DescribeDBInstancesCommandOutput, - Cause.TimeoutException | SdkError | DBInstanceNotFoundFaultError + Cause.TimeoutError | SdkError | DBInstanceNotFoundFaultError >; /** @@ -1878,7 +1865,7 @@ interface RDSService$ { options?: HttpHandlerOptions, ): Effect.Effect< DescribeDBLogFilesCommandOutput, - Cause.TimeoutException | SdkError | DBInstanceNotFoundFaultError | DBInstanceNotReadyFaultError + Cause.TimeoutError | SdkError | DBInstanceNotFoundFaultError | DBInstanceNotReadyFaultError >; /** @@ -1889,7 +1876,7 @@ interface RDSService$ { options?: HttpHandlerOptions, ): Effect.Effect< DescribeDBMajorEngineVersionsCommandOutput, - Cause.TimeoutException | SdkError + Cause.TimeoutError | SdkError >; /** @@ -1900,7 +1887,7 @@ interface RDSService$ { options?: HttpHandlerOptions, ): Effect.Effect< DescribeDBParameterGroupsCommandOutput, - Cause.TimeoutException | SdkError | DBParameterGroupNotFoundFaultError + Cause.TimeoutError | SdkError | DBParameterGroupNotFoundFaultError >; /** @@ -1911,7 +1898,7 @@ interface RDSService$ { options?: HttpHandlerOptions, ): Effect.Effect< DescribeDBParametersCommandOutput, - Cause.TimeoutException | SdkError | DBParameterGroupNotFoundFaultError + Cause.TimeoutError | SdkError | DBParameterGroupNotFoundFaultError >; /** @@ -1922,7 +1909,7 @@ interface RDSService$ { options?: HttpHandlerOptions, ): Effect.Effect< DescribeDBProxiesCommandOutput, - Cause.TimeoutException | SdkError | DBProxyNotFoundFaultError + Cause.TimeoutError | SdkError | DBProxyNotFoundFaultError >; /** @@ -1933,7 +1920,7 @@ interface RDSService$ { options?: HttpHandlerOptions, ): Effect.Effect< DescribeDBProxyEndpointsCommandOutput, - Cause.TimeoutException | SdkError | DBProxyEndpointNotFoundFaultError | DBProxyNotFoundFaultError + Cause.TimeoutError | SdkError | DBProxyEndpointNotFoundFaultError | DBProxyNotFoundFaultError >; /** @@ -1944,7 +1931,7 @@ interface RDSService$ { options?: HttpHandlerOptions, ): Effect.Effect< DescribeDBProxyTargetGroupsCommandOutput, - | Cause.TimeoutException + | Cause.TimeoutError | SdkError | DBProxyNotFoundFaultError | DBProxyTargetGroupNotFoundFaultError @@ -1959,7 +1946,7 @@ interface RDSService$ { options?: HttpHandlerOptions, ): Effect.Effect< DescribeDBProxyTargetsCommandOutput, - | Cause.TimeoutException + | Cause.TimeoutError | SdkError | DBProxyNotFoundFaultError | DBProxyTargetGroupNotFoundFaultError @@ -1975,7 +1962,7 @@ interface RDSService$ { options?: HttpHandlerOptions, ): Effect.Effect< DescribeDBRecommendationsCommandOutput, - Cause.TimeoutException | SdkError + Cause.TimeoutError | SdkError >; /** @@ -1986,7 +1973,7 @@ interface RDSService$ { options?: HttpHandlerOptions, ): Effect.Effect< DescribeDBSecurityGroupsCommandOutput, - Cause.TimeoutException | SdkError | DBSecurityGroupNotFoundFaultError + Cause.TimeoutError | SdkError | DBSecurityGroupNotFoundFaultError >; /** @@ -1997,7 +1984,7 @@ interface RDSService$ { options?: HttpHandlerOptions, ): Effect.Effect< DescribeDBShardGroupsCommandOutput, - Cause.TimeoutException | SdkError | DBClusterNotFoundFaultError | DBShardGroupNotFoundFaultError + Cause.TimeoutError | SdkError | DBClusterNotFoundFaultError | DBShardGroupNotFoundFaultError >; /** @@ -2008,7 +1995,7 @@ interface RDSService$ { options?: HttpHandlerOptions, ): Effect.Effect< DescribeDBSnapshotAttributesCommandOutput, - Cause.TimeoutException | SdkError | DBSnapshotNotFoundFaultError + Cause.TimeoutError | SdkError | DBSnapshotNotFoundFaultError >; /** @@ -2019,7 +2006,7 @@ interface RDSService$ { options?: HttpHandlerOptions, ): Effect.Effect< DescribeDBSnapshotTenantDatabasesCommandOutput, - Cause.TimeoutException | SdkError | DBSnapshotNotFoundFaultError + Cause.TimeoutError | SdkError | DBSnapshotNotFoundFaultError >; /** @@ -2030,7 +2017,7 @@ interface RDSService$ { options?: HttpHandlerOptions, ): Effect.Effect< DescribeDBSnapshotsCommandOutput, - Cause.TimeoutException | SdkError | DBSnapshotNotFoundFaultError + Cause.TimeoutError | SdkError | DBSnapshotNotFoundFaultError >; /** @@ -2041,7 +2028,7 @@ interface RDSService$ { options?: HttpHandlerOptions, ): Effect.Effect< DescribeDBSubnetGroupsCommandOutput, - Cause.TimeoutException | SdkError | DBSubnetGroupNotFoundFaultError + Cause.TimeoutError | SdkError | DBSubnetGroupNotFoundFaultError >; /** @@ -2052,7 +2039,7 @@ interface RDSService$ { options?: HttpHandlerOptions, ): Effect.Effect< DescribeEngineDefaultClusterParametersCommandOutput, - Cause.TimeoutException | SdkError + Cause.TimeoutError | SdkError >; /** @@ -2063,7 +2050,7 @@ interface RDSService$ { options?: HttpHandlerOptions, ): Effect.Effect< DescribeEngineDefaultParametersCommandOutput, - Cause.TimeoutException | SdkError + Cause.TimeoutError | SdkError >; /** @@ -2074,7 +2061,7 @@ interface RDSService$ { options?: HttpHandlerOptions, ): Effect.Effect< DescribeEventCategoriesCommandOutput, - Cause.TimeoutException | SdkError + Cause.TimeoutError | SdkError >; /** @@ -2085,7 +2072,7 @@ interface RDSService$ { options?: HttpHandlerOptions, ): Effect.Effect< DescribeEventSubscriptionsCommandOutput, - Cause.TimeoutException | SdkError | SubscriptionNotFoundFaultError + Cause.TimeoutError | SdkError | SubscriptionNotFoundFaultError >; /** @@ -2096,7 +2083,7 @@ interface RDSService$ { options?: HttpHandlerOptions, ): Effect.Effect< DescribeEventsCommandOutput, - Cause.TimeoutException | SdkError + Cause.TimeoutError | SdkError >; /** @@ -2107,7 +2094,7 @@ interface RDSService$ { options?: HttpHandlerOptions, ): Effect.Effect< DescribeExportTasksCommandOutput, - Cause.TimeoutException | SdkError | ExportTaskNotFoundFaultError + Cause.TimeoutError | SdkError | ExportTaskNotFoundFaultError >; /** @@ -2118,7 +2105,7 @@ interface RDSService$ { options?: HttpHandlerOptions, ): Effect.Effect< DescribeGlobalClustersCommandOutput, - Cause.TimeoutException | SdkError | GlobalClusterNotFoundFaultError + Cause.TimeoutError | SdkError | GlobalClusterNotFoundFaultError >; /** @@ -2129,7 +2116,7 @@ interface RDSService$ { options?: HttpHandlerOptions, ): Effect.Effect< DescribeIntegrationsCommandOutput, - Cause.TimeoutException | SdkError | IntegrationNotFoundFaultError + Cause.TimeoutError | SdkError | IntegrationNotFoundFaultError >; /** @@ -2140,7 +2127,7 @@ interface RDSService$ { options?: HttpHandlerOptions, ): Effect.Effect< DescribeOptionGroupOptionsCommandOutput, - Cause.TimeoutException | SdkError + Cause.TimeoutError | SdkError >; /** @@ -2151,7 +2138,7 @@ interface RDSService$ { options?: HttpHandlerOptions, ): Effect.Effect< DescribeOptionGroupsCommandOutput, - Cause.TimeoutException | SdkError | OptionGroupNotFoundFaultError + Cause.TimeoutError | SdkError | OptionGroupNotFoundFaultError >; /** @@ -2162,7 +2149,7 @@ interface RDSService$ { options?: HttpHandlerOptions, ): Effect.Effect< DescribeOrderableDBInstanceOptionsCommandOutput, - Cause.TimeoutException | SdkError + Cause.TimeoutError | SdkError >; /** @@ -2173,7 +2160,7 @@ interface RDSService$ { options?: HttpHandlerOptions, ): Effect.Effect< DescribePendingMaintenanceActionsCommandOutput, - Cause.TimeoutException | SdkError | ResourceNotFoundFaultError + Cause.TimeoutError | SdkError | ResourceNotFoundFaultError >; /** @@ -2184,7 +2171,7 @@ interface RDSService$ { options?: HttpHandlerOptions, ): Effect.Effect< DescribeReservedDBInstancesCommandOutput, - Cause.TimeoutException | SdkError | ReservedDBInstanceNotFoundFaultError + Cause.TimeoutError | SdkError | ReservedDBInstanceNotFoundFaultError >; /** @@ -2195,7 +2182,7 @@ interface RDSService$ { options?: HttpHandlerOptions, ): Effect.Effect< DescribeReservedDBInstancesOfferingsCommandOutput, - Cause.TimeoutException | SdkError | ReservedDBInstancesOfferingNotFoundFaultError + Cause.TimeoutError | SdkError | ReservedDBInstancesOfferingNotFoundFaultError >; /** @@ -2206,7 +2193,7 @@ interface RDSService$ { options?: HttpHandlerOptions, ): Effect.Effect< DescribeSourceRegionsCommandOutput, - Cause.TimeoutException | SdkError + Cause.TimeoutError | SdkError >; /** @@ -2217,7 +2204,7 @@ interface RDSService$ { options?: HttpHandlerOptions, ): Effect.Effect< DescribeTenantDatabasesCommandOutput, - Cause.TimeoutException | SdkError | DBInstanceNotFoundFaultError + Cause.TimeoutError | SdkError | DBInstanceNotFoundFaultError >; /** @@ -2228,7 +2215,7 @@ interface RDSService$ { options?: HttpHandlerOptions, ): Effect.Effect< DescribeValidDBInstanceModificationsCommandOutput, - Cause.TimeoutException | SdkError | DBInstanceNotFoundFaultError | InvalidDBInstanceStateFaultError + Cause.TimeoutError | SdkError | DBInstanceNotFoundFaultError | InvalidDBInstanceStateFaultError >; /** @@ -2239,7 +2226,7 @@ interface RDSService$ { options?: HttpHandlerOptions, ): Effect.Effect< DisableHttpEndpointCommandOutput, - Cause.TimeoutException | SdkError | InvalidResourceStateFaultError | ResourceNotFoundFaultError + Cause.TimeoutError | SdkError | InvalidResourceStateFaultError | ResourceNotFoundFaultError >; /** @@ -2250,7 +2237,7 @@ interface RDSService$ { options?: HttpHandlerOptions, ): Effect.Effect< DownloadDBLogFilePortionCommandOutput, - | Cause.TimeoutException + | Cause.TimeoutError | SdkError | DBInstanceNotFoundFaultError | DBInstanceNotReadyFaultError @@ -2265,7 +2252,7 @@ interface RDSService$ { options?: HttpHandlerOptions, ): Effect.Effect< EnableHttpEndpointCommandOutput, - Cause.TimeoutException | SdkError | InvalidResourceStateFaultError | ResourceNotFoundFaultError + Cause.TimeoutError | SdkError | InvalidResourceStateFaultError | ResourceNotFoundFaultError >; /** @@ -2276,7 +2263,7 @@ interface RDSService$ { options?: HttpHandlerOptions, ): Effect.Effect< FailoverDBClusterCommandOutput, - | Cause.TimeoutException + | Cause.TimeoutError | SdkError | DBClusterNotFoundFaultError | InvalidDBClusterStateFaultError @@ -2291,7 +2278,7 @@ interface RDSService$ { options?: HttpHandlerOptions, ): Effect.Effect< FailoverGlobalClusterCommandOutput, - | Cause.TimeoutException + | Cause.TimeoutError | SdkError | DBClusterNotFoundFaultError | GlobalClusterNotFoundFaultError @@ -2307,7 +2294,7 @@ interface RDSService$ { options?: HttpHandlerOptions, ): Effect.Effect< ListTagsForResourceCommandOutput, - | Cause.TimeoutException + | Cause.TimeoutError | SdkError | BlueGreenDeploymentNotFoundFaultError | DBClusterNotFoundFaultError @@ -2330,7 +2317,7 @@ interface RDSService$ { options?: HttpHandlerOptions, ): Effect.Effect< ModifyActivityStreamCommandOutput, - | Cause.TimeoutException + | Cause.TimeoutError | SdkError | DBInstanceNotFoundFaultError | InvalidDBInstanceStateFaultError @@ -2345,7 +2332,7 @@ interface RDSService$ { options?: HttpHandlerOptions, ): Effect.Effect< ModifyCertificatesCommandOutput, - Cause.TimeoutException | SdkError | CertificateNotFoundFaultError + Cause.TimeoutError | SdkError | CertificateNotFoundFaultError >; /** @@ -2356,7 +2343,7 @@ interface RDSService$ { options?: HttpHandlerOptions, ): Effect.Effect< ModifyCurrentDBClusterCapacityCommandOutput, - | Cause.TimeoutException + | Cause.TimeoutError | SdkError | DBClusterNotFoundFaultError | InvalidDBClusterCapacityFaultError @@ -2371,7 +2358,7 @@ interface RDSService$ { options?: HttpHandlerOptions, ): Effect.Effect< ModifyCustomDBEngineVersionCommandOutput, - | Cause.TimeoutException + | Cause.TimeoutError | SdkError | CustomDBEngineVersionNotFoundFaultError | InvalidCustomDBEngineVersionStateFaultError @@ -2385,7 +2372,7 @@ interface RDSService$ { options?: HttpHandlerOptions, ): Effect.Effect< ModifyDBClusterCommandOutput, - | Cause.TimeoutException + | Cause.TimeoutError | SdkError | DBClusterAlreadyExistsFaultError | DBClusterNotFoundFaultError @@ -2418,7 +2405,7 @@ interface RDSService$ { options?: HttpHandlerOptions, ): Effect.Effect< ModifyDBClusterEndpointCommandOutput, - | Cause.TimeoutException + | Cause.TimeoutError | SdkError | DBClusterEndpointNotFoundFaultError | DBInstanceNotFoundFaultError @@ -2435,7 +2422,7 @@ interface RDSService$ { options?: HttpHandlerOptions, ): Effect.Effect< ModifyDBClusterParameterGroupCommandOutput, - Cause.TimeoutException | SdkError | DBParameterGroupNotFoundFaultError | InvalidDBParameterGroupStateFaultError + Cause.TimeoutError | SdkError | DBParameterGroupNotFoundFaultError | InvalidDBParameterGroupStateFaultError >; /** @@ -2446,7 +2433,7 @@ interface RDSService$ { options?: HttpHandlerOptions, ): Effect.Effect< ModifyDBClusterSnapshotAttributeCommandOutput, - | Cause.TimeoutException + | Cause.TimeoutError | SdkError | DBClusterSnapshotNotFoundFaultError | InvalidDBClusterSnapshotStateFaultError @@ -2461,7 +2448,7 @@ interface RDSService$ { options?: HttpHandlerOptions, ): Effect.Effect< ModifyDBInstanceCommandOutput, - | Cause.TimeoutException + | Cause.TimeoutError | SdkError | AuthorizationNotFoundFaultError | BackupPolicyNotFoundFaultError @@ -2495,7 +2482,7 @@ interface RDSService$ { options?: HttpHandlerOptions, ): Effect.Effect< ModifyDBParameterGroupCommandOutput, - Cause.TimeoutException | SdkError | DBParameterGroupNotFoundFaultError | InvalidDBParameterGroupStateFaultError + Cause.TimeoutError | SdkError | DBParameterGroupNotFoundFaultError | InvalidDBParameterGroupStateFaultError >; /** @@ -2506,7 +2493,7 @@ interface RDSService$ { options?: HttpHandlerOptions, ): Effect.Effect< ModifyDBProxyCommandOutput, - | Cause.TimeoutException + | Cause.TimeoutError | SdkError | DBProxyAlreadyExistsFaultError | DBProxyNotFoundFaultError @@ -2521,7 +2508,7 @@ interface RDSService$ { options?: HttpHandlerOptions, ): Effect.Effect< ModifyDBProxyEndpointCommandOutput, - | Cause.TimeoutException + | Cause.TimeoutError | SdkError | DBProxyEndpointAlreadyExistsFaultError | DBProxyEndpointNotFoundFaultError @@ -2537,7 +2524,7 @@ interface RDSService$ { options?: HttpHandlerOptions, ): Effect.Effect< ModifyDBProxyTargetGroupCommandOutput, - | Cause.TimeoutException + | Cause.TimeoutError | SdkError | DBProxyNotFoundFaultError | DBProxyTargetGroupNotFoundFaultError @@ -2552,7 +2539,7 @@ interface RDSService$ { options?: HttpHandlerOptions, ): Effect.Effect< ModifyDBRecommendationCommandOutput, - Cause.TimeoutException | SdkError + Cause.TimeoutError | SdkError >; /** @@ -2563,7 +2550,7 @@ interface RDSService$ { options?: HttpHandlerOptions, ): Effect.Effect< ModifyDBShardGroupCommandOutput, - | Cause.TimeoutException + | Cause.TimeoutError | SdkError | DBShardGroupAlreadyExistsFaultError | DBShardGroupNotFoundFaultError @@ -2578,7 +2565,7 @@ interface RDSService$ { options?: HttpHandlerOptions, ): Effect.Effect< ModifyDBSnapshotCommandOutput, - | Cause.TimeoutException + | Cause.TimeoutError | SdkError | DBSnapshotNotFoundFaultError | InvalidDBSnapshotStateFaultError @@ -2593,7 +2580,7 @@ interface RDSService$ { options?: HttpHandlerOptions, ): Effect.Effect< ModifyDBSnapshotAttributeCommandOutput, - | Cause.TimeoutException + | Cause.TimeoutError | SdkError | DBSnapshotNotFoundFaultError | InvalidDBSnapshotStateFaultError @@ -2608,7 +2595,7 @@ interface RDSService$ { options?: HttpHandlerOptions, ): Effect.Effect< ModifyDBSubnetGroupCommandOutput, - | Cause.TimeoutException + | Cause.TimeoutError | SdkError | DBSubnetGroupDoesNotCoverEnoughAZsError | DBSubnetGroupNotFoundFaultError @@ -2626,7 +2613,7 @@ interface RDSService$ { options?: HttpHandlerOptions, ): Effect.Effect< ModifyEventSubscriptionCommandOutput, - | Cause.TimeoutException + | Cause.TimeoutError | SdkError | EventSubscriptionQuotaExceededFaultError | SNSInvalidTopicFaultError @@ -2644,7 +2631,7 @@ interface RDSService$ { options?: HttpHandlerOptions, ): Effect.Effect< ModifyGlobalClusterCommandOutput, - | Cause.TimeoutException + | Cause.TimeoutError | SdkError | GlobalClusterAlreadyExistsFaultError | GlobalClusterNotFoundFaultError @@ -2661,7 +2648,7 @@ interface RDSService$ { options?: HttpHandlerOptions, ): Effect.Effect< ModifyIntegrationCommandOutput, - | Cause.TimeoutException + | Cause.TimeoutError | SdkError | IntegrationConflictOperationFaultError | IntegrationNotFoundFaultError @@ -2676,7 +2663,7 @@ interface RDSService$ { options?: HttpHandlerOptions, ): Effect.Effect< ModifyOptionGroupCommandOutput, - Cause.TimeoutException | SdkError | InvalidOptionGroupStateFaultError | OptionGroupNotFoundFaultError + Cause.TimeoutError | SdkError | InvalidOptionGroupStateFaultError | OptionGroupNotFoundFaultError >; /** @@ -2687,7 +2674,7 @@ interface RDSService$ { options?: HttpHandlerOptions, ): Effect.Effect< ModifyTenantDatabaseCommandOutput, - | Cause.TimeoutException + | Cause.TimeoutError | SdkError | DBInstanceNotFoundFaultError | InvalidDBInstanceStateFaultError @@ -2704,7 +2691,7 @@ interface RDSService$ { options?: HttpHandlerOptions, ): Effect.Effect< PromoteReadReplicaCommandOutput, - Cause.TimeoutException | SdkError | DBInstanceNotFoundFaultError | InvalidDBInstanceStateFaultError + Cause.TimeoutError | SdkError | DBInstanceNotFoundFaultError | InvalidDBInstanceStateFaultError >; /** @@ -2715,7 +2702,7 @@ interface RDSService$ { options?: HttpHandlerOptions, ): Effect.Effect< PromoteReadReplicaDBClusterCommandOutput, - Cause.TimeoutException | SdkError | DBClusterNotFoundFaultError | InvalidDBClusterStateFaultError + Cause.TimeoutError | SdkError | DBClusterNotFoundFaultError | InvalidDBClusterStateFaultError >; /** @@ -2726,7 +2713,7 @@ interface RDSService$ { options?: HttpHandlerOptions, ): Effect.Effect< PurchaseReservedDBInstancesOfferingCommandOutput, - | Cause.TimeoutException + | Cause.TimeoutError | SdkError | ReservedDBInstanceAlreadyExistsFaultError | ReservedDBInstanceQuotaExceededFaultError @@ -2741,7 +2728,7 @@ interface RDSService$ { options?: HttpHandlerOptions, ): Effect.Effect< RebootDBClusterCommandOutput, - | Cause.TimeoutException + | Cause.TimeoutError | SdkError | DBClusterNotFoundFaultError | InvalidDBClusterStateFaultError @@ -2756,7 +2743,7 @@ interface RDSService$ { options?: HttpHandlerOptions, ): Effect.Effect< RebootDBInstanceCommandOutput, - | Cause.TimeoutException + | Cause.TimeoutError | SdkError | DBInstanceNotFoundFaultError | InvalidDBInstanceStateFaultError @@ -2771,7 +2758,7 @@ interface RDSService$ { options?: HttpHandlerOptions, ): Effect.Effect< RebootDBShardGroupCommandOutput, - Cause.TimeoutException | SdkError | DBShardGroupNotFoundFaultError | InvalidDBShardGroupStateFaultError + Cause.TimeoutError | SdkError | DBShardGroupNotFoundFaultError | InvalidDBShardGroupStateFaultError >; /** @@ -2782,7 +2769,7 @@ interface RDSService$ { options?: HttpHandlerOptions, ): Effect.Effect< RegisterDBProxyTargetsCommandOutput, - | Cause.TimeoutException + | Cause.TimeoutError | SdkError | DBClusterNotFoundFaultError | DBInstanceNotFoundFaultError @@ -2803,7 +2790,7 @@ interface RDSService$ { options?: HttpHandlerOptions, ): Effect.Effect< RemoveFromGlobalClusterCommandOutput, - | Cause.TimeoutException + | Cause.TimeoutError | SdkError | DBClusterNotFoundFaultError | GlobalClusterNotFoundFaultError @@ -2819,7 +2806,7 @@ interface RDSService$ { options?: HttpHandlerOptions, ): Effect.Effect< RemoveRoleFromDBClusterCommandOutput, - | Cause.TimeoutException + | Cause.TimeoutError | SdkError | DBClusterNotFoundFaultError | DBClusterRoleNotFoundFaultError @@ -2834,7 +2821,7 @@ interface RDSService$ { options?: HttpHandlerOptions, ): Effect.Effect< RemoveRoleFromDBInstanceCommandOutput, - | Cause.TimeoutException + | Cause.TimeoutError | SdkError | DBInstanceNotFoundFaultError | DBInstanceRoleNotFoundFaultError @@ -2849,7 +2836,7 @@ interface RDSService$ { options?: HttpHandlerOptions, ): Effect.Effect< RemoveSourceIdentifierFromSubscriptionCommandOutput, - Cause.TimeoutException | SdkError | SourceNotFoundFaultError | SubscriptionNotFoundFaultError + Cause.TimeoutError | SdkError | SourceNotFoundFaultError | SubscriptionNotFoundFaultError >; /** @@ -2860,7 +2847,7 @@ interface RDSService$ { options?: HttpHandlerOptions, ): Effect.Effect< RemoveTagsFromResourceCommandOutput, - | Cause.TimeoutException + | Cause.TimeoutError | SdkError | BlueGreenDeploymentNotFoundFaultError | DBClusterNotFoundFaultError @@ -2886,7 +2873,7 @@ interface RDSService$ { options?: HttpHandlerOptions, ): Effect.Effect< ResetDBClusterParameterGroupCommandOutput, - Cause.TimeoutException | SdkError | DBParameterGroupNotFoundFaultError | InvalidDBParameterGroupStateFaultError + Cause.TimeoutError | SdkError | DBParameterGroupNotFoundFaultError | InvalidDBParameterGroupStateFaultError >; /** @@ -2897,7 +2884,7 @@ interface RDSService$ { options?: HttpHandlerOptions, ): Effect.Effect< ResetDBParameterGroupCommandOutput, - Cause.TimeoutException | SdkError | DBParameterGroupNotFoundFaultError | InvalidDBParameterGroupStateFaultError + Cause.TimeoutError | SdkError | DBParameterGroupNotFoundFaultError | InvalidDBParameterGroupStateFaultError >; /** @@ -2908,7 +2895,7 @@ interface RDSService$ { options?: HttpHandlerOptions, ): Effect.Effect< RestoreDBClusterFromS3CommandOutput, - | Cause.TimeoutException + | Cause.TimeoutError | SdkError | DBClusterAlreadyExistsFaultError | DBClusterNotFoundFaultError @@ -2936,7 +2923,7 @@ interface RDSService$ { options?: HttpHandlerOptions, ): Effect.Effect< RestoreDBClusterFromSnapshotCommandOutput, - | Cause.TimeoutException + | Cause.TimeoutError | SdkError | DBClusterAlreadyExistsFaultError | DBClusterParameterGroupNotFoundFaultError @@ -2971,7 +2958,7 @@ interface RDSService$ { options?: HttpHandlerOptions, ): Effect.Effect< RestoreDBClusterToPointInTimeCommandOutput, - | Cause.TimeoutException + | Cause.TimeoutError | SdkError | DBClusterAlreadyExistsFaultError | DBClusterAutomatedBackupNotFoundFaultError @@ -3006,7 +2993,7 @@ interface RDSService$ { options?: HttpHandlerOptions, ): Effect.Effect< RestoreDBInstanceFromDBSnapshotCommandOutput, - | Cause.TimeoutException + | Cause.TimeoutError | SdkError | AuthorizationNotFoundFaultError | BackupPolicyNotFoundFaultError @@ -3043,7 +3030,7 @@ interface RDSService$ { options?: HttpHandlerOptions, ): Effect.Effect< RestoreDBInstanceFromS3CommandOutput, - | Cause.TimeoutException + | Cause.TimeoutError | SdkError | AuthorizationNotFoundFaultError | BackupPolicyNotFoundFaultError @@ -3075,7 +3062,7 @@ interface RDSService$ { options?: HttpHandlerOptions, ): Effect.Effect< RestoreDBInstanceToPointInTimeCommandOutput, - | Cause.TimeoutException + | Cause.TimeoutError | SdkError | AuthorizationNotFoundFaultError | BackupPolicyNotFoundFaultError @@ -3113,7 +3100,7 @@ interface RDSService$ { options?: HttpHandlerOptions, ): Effect.Effect< RevokeDBSecurityGroupIngressCommandOutput, - | Cause.TimeoutException + | Cause.TimeoutError | SdkError | AuthorizationNotFoundFaultError | DBSecurityGroupNotFoundFaultError @@ -3128,7 +3115,7 @@ interface RDSService$ { options?: HttpHandlerOptions, ): Effect.Effect< StartActivityStreamCommandOutput, - | Cause.TimeoutException + | Cause.TimeoutError | SdkError | DBClusterNotFoundFaultError | DBInstanceNotFoundFaultError @@ -3146,7 +3133,7 @@ interface RDSService$ { options?: HttpHandlerOptions, ): Effect.Effect< StartDBClusterCommandOutput, - | Cause.TimeoutException + | Cause.TimeoutError | SdkError | DBClusterNotFoundFaultError | InvalidDBClusterStateFaultError @@ -3164,7 +3151,7 @@ interface RDSService$ { options?: HttpHandlerOptions, ): Effect.Effect< StartDBInstanceCommandOutput, - | Cause.TimeoutException + | Cause.TimeoutError | SdkError | AuthorizationNotFoundFaultError | DBClusterNotFoundFaultError @@ -3188,7 +3175,7 @@ interface RDSService$ { options?: HttpHandlerOptions, ): Effect.Effect< StartDBInstanceAutomatedBackupsReplicationCommandOutput, - | Cause.TimeoutException + | Cause.TimeoutError | SdkError | DBInstanceAutomatedBackupQuotaExceededFaultError | DBInstanceNotFoundFaultError @@ -3206,7 +3193,7 @@ interface RDSService$ { options?: HttpHandlerOptions, ): Effect.Effect< StartExportTaskCommandOutput, - | Cause.TimeoutException + | Cause.TimeoutError | SdkError | DBClusterNotFoundFaultError | DBClusterSnapshotNotFoundFaultError @@ -3228,7 +3215,7 @@ interface RDSService$ { options?: HttpHandlerOptions, ): Effect.Effect< StopActivityStreamCommandOutput, - | Cause.TimeoutException + | Cause.TimeoutError | SdkError | DBClusterNotFoundFaultError | DBInstanceNotFoundFaultError @@ -3245,7 +3232,7 @@ interface RDSService$ { options?: HttpHandlerOptions, ): Effect.Effect< StopDBClusterCommandOutput, - | Cause.TimeoutException + | Cause.TimeoutError | SdkError | DBClusterNotFoundFaultError | InvalidDBClusterStateFaultError @@ -3261,7 +3248,7 @@ interface RDSService$ { options?: HttpHandlerOptions, ): Effect.Effect< StopDBInstanceCommandOutput, - | Cause.TimeoutException + | Cause.TimeoutError | SdkError | DBInstanceNotFoundFaultError | DBSnapshotAlreadyExistsFaultError @@ -3278,7 +3265,7 @@ interface RDSService$ { options?: HttpHandlerOptions, ): Effect.Effect< StopDBInstanceAutomatedBackupsReplicationCommandOutput, - Cause.TimeoutException | SdkError | DBInstanceNotFoundFaultError | InvalidDBInstanceStateFaultError + Cause.TimeoutError | SdkError | DBInstanceNotFoundFaultError | InvalidDBInstanceStateFaultError >; /** @@ -3289,10 +3276,7 @@ interface RDSService$ { options?: HttpHandlerOptions, ): Effect.Effect< SwitchoverBlueGreenDeploymentCommandOutput, - | Cause.TimeoutException - | SdkError - | BlueGreenDeploymentNotFoundFaultError - | InvalidBlueGreenDeploymentStateFaultError + Cause.TimeoutError | SdkError | BlueGreenDeploymentNotFoundFaultError | InvalidBlueGreenDeploymentStateFaultError >; /** @@ -3303,7 +3287,7 @@ interface RDSService$ { options?: HttpHandlerOptions, ): Effect.Effect< SwitchoverGlobalClusterCommandOutput, - | Cause.TimeoutException + | Cause.TimeoutError | SdkError | DBClusterNotFoundFaultError | GlobalClusterNotFoundFaultError @@ -3319,7 +3303,7 @@ interface RDSService$ { options?: HttpHandlerOptions, ): Effect.Effect< SwitchoverReadReplicaCommandOutput, - Cause.TimeoutException | SdkError | DBInstanceNotFoundFaultError | InvalidDBInstanceStateFaultError + Cause.TimeoutError | SdkError | DBInstanceNotFoundFaultError | InvalidDBInstanceStateFaultError >; } @@ -3344,10 +3328,10 @@ export const makeRDSService = Effect.gen(function*() { * @since 1.0.0 * @category models */ -export class RDSService extends Effect.Tag("@effect-aws/client-rds/RDSService")< +export class RDSService extends ServiceMap.Service< RDSService, RDSService$ ->() { +>()("@effect-aws/client-rds/RDSService") { static readonly defaultLayer = Layer.effect(this, makeRDSService).pipe(Layer.provide(Instance.layer)); static readonly layer = (config: RDSService.Config) => Layer.effect(this, makeRDSService).pipe( diff --git a/packages/client-rds/src/RDSServiceConfig.ts b/packages/client-rds/src/RDSServiceConfig.ts index e513f14b..131204a8 100644 --- a/packages/client-rds/src/RDSServiceConfig.ts +++ b/packages/client-rds/src/RDSServiceConfig.ts @@ -3,18 +3,17 @@ */ import type { RDSClientConfig } from "@aws-sdk/client-rds"; import { ServiceLogger } from "@effect-aws/commons"; -import { Effect, FiberRef, Layer } from "effect"; +import { Effect, Layer, ServiceMap } from "effect"; import { dual } from "effect/Function"; -import { globalValue } from "effect/GlobalValue"; import type { RDSService } from "./RDSService.js"; /** * @since 1.0.0 * @category rds service config */ -const currentRDSServiceConfig = globalValue( +const currentRDSServiceConfig = ServiceMap.Reference( "@effect-aws/client-rds/currentRDSServiceConfig", - () => FiberRef.unsafeMake({}), + { defaultValue: () => ({}) }, ); /** @@ -27,21 +26,21 @@ export const withRDSServiceConfig: { } = dual( 2, (effect: Effect.Effect, config: RDSService.Config): Effect.Effect => - Effect.locally(effect, currentRDSServiceConfig, config), + Effect.provideService(effect, currentRDSServiceConfig, config), ); /** * @since 1.0.0 * @category rds service config */ -export const setRDSServiceConfig = (config: RDSService.Config) => Layer.locallyScoped(currentRDSServiceConfig, config); +export const setRDSServiceConfig = (config: RDSService.Config) => Layer.succeed(currentRDSServiceConfig, config); /** * @since 1.0.0 * @category adapters */ export const toRDSClientConfig: Effect.Effect = Effect.gen(function*() { - const { logger: serviceLogger, ...config } = yield* FiberRef.get(currentRDSServiceConfig); + const { logger: serviceLogger, ...config } = yield* currentRDSServiceConfig; const logger = serviceLogger === true ? yield* ServiceLogger.toClientLogger(ServiceLogger.defaultServiceLogger) diff --git a/packages/client-rds/test/RDS.test.ts b/packages/client-rds/test/RDS.test.ts index b096f9fd..2c1ab6c1 100644 --- a/packages/client-rds/test/RDS.test.ts +++ b/packages/client-rds/test/RDS.test.ts @@ -26,7 +26,7 @@ describe("RDSClientImpl", () => { const args = {} as unknown as DescribeDBClustersCommandInput; - const program = RDS.describeDBClusters(args); + const program = RDS.use((svc) => svc.describeDBClusters(args)); const result = await pipe( program, @@ -46,7 +46,7 @@ describe("RDSClientImpl", () => { const args = {} as unknown as DescribeDBClustersCommandInput; - const program = RDS.describeDBClusters(args); + const program = RDS.use((svc) => svc.describeDBClusters(args)); const result = await pipe( program, @@ -69,7 +69,7 @@ describe("RDSClientImpl", () => { const args = {} as unknown as DescribeDBClustersCommandInput; - const program = RDS.describeDBClusters(args); + const program = RDS.use((svc) => svc.describeDBClusters(args)); const result = await pipe( program, @@ -93,7 +93,7 @@ describe("RDSClientImpl", () => { const args = {} as unknown as DescribeDBClustersCommandInput; - const program = RDS.describeDBClusters(args); + const program = RDS.use((svc) => svc.describeDBClusters(args)); const result = await pipe( program, @@ -121,7 +121,7 @@ describe("RDSClientImpl", () => { const args = {} as unknown as DescribeDBClustersCommandInput; - const program = RDS.describeDBClusters(args); + const program = RDS.use((svc) => svc.describeDBClusters(args)); const result = await pipe( program, @@ -131,7 +131,7 @@ describe("RDSClientImpl", () => { expect(result).toEqual( Exit.fail( - SdkError({ + new SdkError({ ...new Error("test"), name: "SdkError", message: "test", @@ -156,7 +156,7 @@ describe("RDSClientImpl", () => { const args = {} as unknown as DescribeDBClustersCommandInput; - const program = RDS.describeDBClusters(args).pipe( + const program = RDS.use((svc) => svc.describeDBClusters(args)).pipe( Effect.catchTag("NotHandledException" as any, () => Effect.succeed(null)), ); @@ -166,9 +166,9 @@ describe("RDSClientImpl", () => { Effect.runPromiseExit, ); - expect(result).toEqual( + expect(result).toContainEqual( Exit.fail( - SdkError({ + new SdkError({ ...new Error("test"), name: "SdkError", message: "test", diff --git a/packages/client-s3/.projen/deps.json b/packages/client-s3/.projen/deps.json index b1de3f3f..b47eb3e7 100644 --- a/packages/client-s3/.projen/deps.json +++ b/packages/client-s3/.projen/deps.json @@ -7,6 +7,7 @@ }, { "name": "effect", + "version": "4.0.0-beta.8", "type": "build" }, { @@ -16,7 +17,7 @@ }, { "name": "effect", - "version": ">=3.0.4 <4.0.0", + "version": ">=4.0.0 <5.0.0", "type": "peer" }, { diff --git a/packages/client-s3/README.md b/packages/client-s3/README.md index e20f2550..5a310d54 100644 --- a/packages/client-s3/README.md +++ b/packages/client-s3/README.md @@ -16,7 +16,7 @@ With default S3Client instance: ```typescript import { S3 } from "@effect-aws/client-s3"; -const program = S3.headObject(args); +const program = S3.use((svc) => svc.headObject(args)); const result = pipe( program, @@ -30,7 +30,7 @@ With custom S3Client instance: ```typescript import { S3 } from "@effect-aws/client-s3"; -const program = S3.headObject(args); +const program = S3.use((svc) => svc.headObject(args)); const result = await pipe( program, @@ -46,7 +46,7 @@ With custom S3Client configuration: ```typescript import { S3 } from "@effect-aws/client-s3"; -const program = S3.headObject(args); +const program = S3.use((svc) => svc.headObject(args)); const result = await pipe( program, diff --git a/packages/client-s3/package.json b/packages/client-s3/package.json index a8a75ff8..60340167 100644 --- a/packages/client-s3/package.json +++ b/packages/client-s3/package.json @@ -26,11 +26,11 @@ }, "devDependencies": { "@types/node": "ts5.4", - "effect": "^3.16.4", + "effect": "4.0.0-beta.8", "typescript": "^5.4.2" }, "peerDependencies": { - "effect": ">=3.0.4 <4.0.0" + "effect": ">=4.0.0 <5.0.0" }, "dependencies": { "@aws-sdk/client-s3": "^3", diff --git a/packages/client-s3/src/Errors.ts b/packages/client-s3/src/Errors.ts index e9081ee9..bdfea316 100644 --- a/packages/client-s3/src/Errors.ts +++ b/packages/client-s3/src/Errors.ts @@ -1,4 +1,5 @@ import type { + AccessDenied, BucketAlreadyExists, BucketAlreadyOwnedByYou, EncryptionTypeMismatch, @@ -19,6 +20,7 @@ import type { TaggedException } from "@effect-aws/commons"; import { Data } from "effect"; export const AllServiceErrors = [ + "AccessDenied", "BucketAlreadyExists", "BucketAlreadyOwnedByYou", "EncryptionTypeMismatch", @@ -35,6 +37,7 @@ export const AllServiceErrors = [ "TooManyParts", ] as const; +export type AccessDeniedError = TaggedException; export type BucketAlreadyExistsError = TaggedException; export type BucketAlreadyOwnedByYouError = TaggedException; export type EncryptionTypeMismatchError = TaggedException; @@ -50,8 +53,9 @@ export type ObjectAlreadyInActiveTierError = TaggedException; export type TooManyPartsError = TaggedException; -export type S3ServiceError = TaggedException< - S3ServiceException & { name: "S3ServiceError" } ->; -export const S3ServiceError = Data.tagged("S3ServiceError"); +export class S3ServiceError extends Data.TaggedError("S3ServiceError")< + TaggedException< + S3ServiceException & { name: "S3ServiceError" } + > +> {} export type SdkError = TaggedException; diff --git a/packages/client-s3/src/S3ClientInstance.ts b/packages/client-s3/src/S3ClientInstance.ts index 8863d38f..41f08fe3 100644 --- a/packages/client-s3/src/S3ClientInstance.ts +++ b/packages/client-s3/src/S3ClientInstance.ts @@ -2,16 +2,16 @@ * @since 1.0.0 */ import { S3Client } from "@aws-sdk/client-s3"; -import { Context, Effect, Layer } from "effect"; +import { Effect, Layer, ServiceMap } from "effect"; import * as S3ServiceConfig from "./S3ServiceConfig.js"; /** * @since 1.0.0 * @category tags */ -export class S3ClientInstance extends Context.Tag( +export class S3ClientInstance extends ServiceMap.Service()( "@effect-aws/client-s3/S3ClientInstance", -)() {} +) {} /** * @since 1.0.0 @@ -30,4 +30,4 @@ export const make = Effect.flatMap( * @since 1.0.0 * @category layers */ -export const layer = Layer.scoped(S3ClientInstance, make); +export const layer = Layer.effect(S3ClientInstance, make); diff --git a/packages/client-s3/src/S3Service.ts b/packages/client-s3/src/S3Service.ts index 8e6a1c1c..a612a64e 100644 --- a/packages/client-s3/src/S3Service.ts +++ b/packages/client-s3/src/S3Service.ts @@ -313,6 +313,9 @@ import { UpdateBucketMetadataJournalTableConfigurationCommand, type UpdateBucketMetadataJournalTableConfigurationCommandInput, type UpdateBucketMetadataJournalTableConfigurationCommandOutput, + UpdateObjectEncryptionCommand, + type UpdateObjectEncryptionCommandInput, + type UpdateObjectEncryptionCommandOutput, UploadPartCommand, type UploadPartCommandInput, type UploadPartCommandOutput, @@ -328,8 +331,9 @@ import type { RequestPresigningArguments } from "@aws-sdk/types"; import type { HttpHandlerOptions, ServiceLogger } from "@effect-aws/commons"; import { Service } from "@effect-aws/commons"; import type { Cause } from "effect"; -import { Effect, Layer } from "effect"; +import { Effect, Layer, ServiceMap } from "effect"; import type { + AccessDeniedError, BucketAlreadyExistsError, BucketAlreadyOwnedByYouError, EncryptionTypeMismatchError, @@ -455,6 +459,7 @@ const commands = { SelectObjectContentCommand, UpdateBucketMetadataInventoryTableConfigurationCommand, UpdateBucketMetadataJournalTableConfigurationCommand, + UpdateObjectEncryptionCommand, UploadPartCommand, UploadPartCopyCommand, WriteGetObjectResponseCommand, @@ -471,7 +476,7 @@ interface S3Service$ { options?: HttpHandlerOptions, ): Effect.Effect< AbortMultipartUploadCommandOutput, - Cause.TimeoutException | SdkError | NoSuchUploadError + Cause.TimeoutError | SdkError | NoSuchUploadError >; /** @@ -482,7 +487,7 @@ interface S3Service$ { options?: HttpHandlerOptions, ): Effect.Effect< CompleteMultipartUploadCommandOutput, - Cause.TimeoutException | SdkError + Cause.TimeoutError | SdkError >; /** @@ -493,7 +498,7 @@ interface S3Service$ { options?: HttpHandlerOptions, ): Effect.Effect< CopyObjectCommandOutput, - Cause.TimeoutException | SdkError | ObjectNotInActiveTierError + Cause.TimeoutError | SdkError | ObjectNotInActiveTierError >; /** @@ -504,7 +509,7 @@ interface S3Service$ { options?: HttpHandlerOptions, ): Effect.Effect< CreateBucketCommandOutput, - Cause.TimeoutException | SdkError | BucketAlreadyExistsError | BucketAlreadyOwnedByYouError + Cause.TimeoutError | SdkError | BucketAlreadyExistsError | BucketAlreadyOwnedByYouError >; /** @@ -515,7 +520,7 @@ interface S3Service$ { options?: HttpHandlerOptions, ): Effect.Effect< CreateBucketMetadataConfigurationCommandOutput, - Cause.TimeoutException | SdkError | S3ServiceError + Cause.TimeoutError | SdkError | S3ServiceError >; /** @@ -526,7 +531,7 @@ interface S3Service$ { options?: HttpHandlerOptions, ): Effect.Effect< CreateBucketMetadataTableConfigurationCommandOutput, - Cause.TimeoutException | SdkError | S3ServiceError + Cause.TimeoutError | SdkError | S3ServiceError >; /** @@ -537,7 +542,7 @@ interface S3Service$ { options?: HttpHandlerOptions, ): Effect.Effect< CreateMultipartUploadCommandOutput, - Cause.TimeoutException | SdkError | S3ServiceError + Cause.TimeoutError | SdkError | S3ServiceError >; /** @@ -548,7 +553,7 @@ interface S3Service$ { options?: HttpHandlerOptions, ): Effect.Effect< CreateSessionCommandOutput, - Cause.TimeoutException | SdkError | NoSuchBucketError + Cause.TimeoutError | SdkError | NoSuchBucketError >; /** @@ -559,7 +564,7 @@ interface S3Service$ { options?: HttpHandlerOptions, ): Effect.Effect< DeleteBucketCommandOutput, - Cause.TimeoutException | SdkError | S3ServiceError + Cause.TimeoutError | SdkError | S3ServiceError >; /** @@ -570,7 +575,7 @@ interface S3Service$ { options?: HttpHandlerOptions, ): Effect.Effect< DeleteBucketAnalyticsConfigurationCommandOutput, - Cause.TimeoutException | SdkError | S3ServiceError + Cause.TimeoutError | SdkError | S3ServiceError >; /** @@ -581,7 +586,7 @@ interface S3Service$ { options?: HttpHandlerOptions, ): Effect.Effect< DeleteBucketCorsCommandOutput, - Cause.TimeoutException | SdkError | S3ServiceError + Cause.TimeoutError | SdkError | S3ServiceError >; /** @@ -592,7 +597,7 @@ interface S3Service$ { options?: HttpHandlerOptions, ): Effect.Effect< DeleteBucketEncryptionCommandOutput, - Cause.TimeoutException | SdkError | S3ServiceError + Cause.TimeoutError | SdkError | S3ServiceError >; /** @@ -603,7 +608,7 @@ interface S3Service$ { options?: HttpHandlerOptions, ): Effect.Effect< DeleteBucketIntelligentTieringConfigurationCommandOutput, - Cause.TimeoutException | SdkError | S3ServiceError + Cause.TimeoutError | SdkError | S3ServiceError >; /** @@ -614,7 +619,7 @@ interface S3Service$ { options?: HttpHandlerOptions, ): Effect.Effect< DeleteBucketInventoryConfigurationCommandOutput, - Cause.TimeoutException | SdkError | S3ServiceError + Cause.TimeoutError | SdkError | S3ServiceError >; /** @@ -625,7 +630,7 @@ interface S3Service$ { options?: HttpHandlerOptions, ): Effect.Effect< DeleteBucketLifecycleCommandOutput, - Cause.TimeoutException | SdkError | S3ServiceError + Cause.TimeoutError | SdkError | S3ServiceError >; /** @@ -636,7 +641,7 @@ interface S3Service$ { options?: HttpHandlerOptions, ): Effect.Effect< DeleteBucketMetadataConfigurationCommandOutput, - Cause.TimeoutException | SdkError | S3ServiceError + Cause.TimeoutError | SdkError | S3ServiceError >; /** @@ -647,7 +652,7 @@ interface S3Service$ { options?: HttpHandlerOptions, ): Effect.Effect< DeleteBucketMetadataTableConfigurationCommandOutput, - Cause.TimeoutException | SdkError | S3ServiceError + Cause.TimeoutError | SdkError | S3ServiceError >; /** @@ -658,7 +663,7 @@ interface S3Service$ { options?: HttpHandlerOptions, ): Effect.Effect< DeleteBucketMetricsConfigurationCommandOutput, - Cause.TimeoutException | SdkError | S3ServiceError + Cause.TimeoutError | SdkError | S3ServiceError >; /** @@ -669,7 +674,7 @@ interface S3Service$ { options?: HttpHandlerOptions, ): Effect.Effect< DeleteBucketOwnershipControlsCommandOutput, - Cause.TimeoutException | SdkError | S3ServiceError + Cause.TimeoutError | SdkError | S3ServiceError >; /** @@ -680,7 +685,7 @@ interface S3Service$ { options?: HttpHandlerOptions, ): Effect.Effect< DeleteBucketPolicyCommandOutput, - Cause.TimeoutException | SdkError | S3ServiceError + Cause.TimeoutError | SdkError | S3ServiceError >; /** @@ -691,7 +696,7 @@ interface S3Service$ { options?: HttpHandlerOptions, ): Effect.Effect< DeleteBucketReplicationCommandOutput, - Cause.TimeoutException | SdkError | S3ServiceError + Cause.TimeoutError | SdkError | S3ServiceError >; /** @@ -702,7 +707,7 @@ interface S3Service$ { options?: HttpHandlerOptions, ): Effect.Effect< DeleteBucketTaggingCommandOutput, - Cause.TimeoutException | SdkError | S3ServiceError + Cause.TimeoutError | SdkError | S3ServiceError >; /** @@ -713,7 +718,7 @@ interface S3Service$ { options?: HttpHandlerOptions, ): Effect.Effect< DeleteBucketWebsiteCommandOutput, - Cause.TimeoutException | SdkError | S3ServiceError + Cause.TimeoutError | SdkError | S3ServiceError >; /** @@ -724,7 +729,7 @@ interface S3Service$ { options?: HttpHandlerOptions, ): Effect.Effect< DeleteObjectCommandOutput, - Cause.TimeoutException | SdkError | S3ServiceError + Cause.TimeoutError | SdkError | S3ServiceError >; /** @@ -735,7 +740,7 @@ interface S3Service$ { options?: HttpHandlerOptions, ): Effect.Effect< DeleteObjectTaggingCommandOutput, - Cause.TimeoutException | SdkError | S3ServiceError + Cause.TimeoutError | SdkError | S3ServiceError >; /** @@ -746,7 +751,7 @@ interface S3Service$ { options?: HttpHandlerOptions, ): Effect.Effect< DeleteObjectsCommandOutput, - Cause.TimeoutException | SdkError | S3ServiceError + Cause.TimeoutError | SdkError | S3ServiceError >; /** @@ -757,7 +762,7 @@ interface S3Service$ { options?: HttpHandlerOptions, ): Effect.Effect< DeletePublicAccessBlockCommandOutput, - Cause.TimeoutException | SdkError | S3ServiceError + Cause.TimeoutError | SdkError | S3ServiceError >; /** @@ -768,7 +773,7 @@ interface S3Service$ { options?: HttpHandlerOptions, ): Effect.Effect< GetBucketAbacCommandOutput, - Cause.TimeoutException | SdkError | S3ServiceError + Cause.TimeoutError | SdkError | S3ServiceError >; /** @@ -779,7 +784,7 @@ interface S3Service$ { options?: HttpHandlerOptions, ): Effect.Effect< GetBucketAccelerateConfigurationCommandOutput, - Cause.TimeoutException | SdkError | S3ServiceError + Cause.TimeoutError | SdkError | S3ServiceError >; /** @@ -790,7 +795,7 @@ interface S3Service$ { options?: HttpHandlerOptions, ): Effect.Effect< GetBucketAclCommandOutput, - Cause.TimeoutException | SdkError | S3ServiceError + Cause.TimeoutError | SdkError | S3ServiceError >; /** @@ -801,7 +806,7 @@ interface S3Service$ { options?: HttpHandlerOptions, ): Effect.Effect< GetBucketAnalyticsConfigurationCommandOutput, - Cause.TimeoutException | SdkError | S3ServiceError + Cause.TimeoutError | SdkError | S3ServiceError >; /** @@ -812,7 +817,7 @@ interface S3Service$ { options?: HttpHandlerOptions, ): Effect.Effect< GetBucketCorsCommandOutput, - Cause.TimeoutException | SdkError | S3ServiceError + Cause.TimeoutError | SdkError | S3ServiceError >; /** @@ -823,7 +828,7 @@ interface S3Service$ { options?: HttpHandlerOptions, ): Effect.Effect< GetBucketEncryptionCommandOutput, - Cause.TimeoutException | SdkError | S3ServiceError + Cause.TimeoutError | SdkError | S3ServiceError >; /** @@ -834,7 +839,7 @@ interface S3Service$ { options?: HttpHandlerOptions, ): Effect.Effect< GetBucketIntelligentTieringConfigurationCommandOutput, - Cause.TimeoutException | SdkError | S3ServiceError + Cause.TimeoutError | SdkError | S3ServiceError >; /** @@ -845,7 +850,7 @@ interface S3Service$ { options?: HttpHandlerOptions, ): Effect.Effect< GetBucketInventoryConfigurationCommandOutput, - Cause.TimeoutException | SdkError | S3ServiceError + Cause.TimeoutError | SdkError | S3ServiceError >; /** @@ -856,7 +861,7 @@ interface S3Service$ { options?: HttpHandlerOptions, ): Effect.Effect< GetBucketLifecycleConfigurationCommandOutput, - Cause.TimeoutException | SdkError | S3ServiceError + Cause.TimeoutError | SdkError | S3ServiceError >; /** @@ -867,7 +872,7 @@ interface S3Service$ { options?: HttpHandlerOptions, ): Effect.Effect< GetBucketLocationCommandOutput, - Cause.TimeoutException | SdkError | S3ServiceError + Cause.TimeoutError | SdkError | S3ServiceError >; /** @@ -878,7 +883,7 @@ interface S3Service$ { options?: HttpHandlerOptions, ): Effect.Effect< GetBucketLoggingCommandOutput, - Cause.TimeoutException | SdkError | S3ServiceError + Cause.TimeoutError | SdkError | S3ServiceError >; /** @@ -889,7 +894,7 @@ interface S3Service$ { options?: HttpHandlerOptions, ): Effect.Effect< GetBucketMetadataConfigurationCommandOutput, - Cause.TimeoutException | SdkError | S3ServiceError + Cause.TimeoutError | SdkError | S3ServiceError >; /** @@ -900,7 +905,7 @@ interface S3Service$ { options?: HttpHandlerOptions, ): Effect.Effect< GetBucketMetadataTableConfigurationCommandOutput, - Cause.TimeoutException | SdkError | S3ServiceError + Cause.TimeoutError | SdkError | S3ServiceError >; /** @@ -911,7 +916,7 @@ interface S3Service$ { options?: HttpHandlerOptions, ): Effect.Effect< GetBucketMetricsConfigurationCommandOutput, - Cause.TimeoutException | SdkError | S3ServiceError + Cause.TimeoutError | SdkError | S3ServiceError >; /** @@ -922,7 +927,7 @@ interface S3Service$ { options?: HttpHandlerOptions, ): Effect.Effect< GetBucketNotificationConfigurationCommandOutput, - Cause.TimeoutException | SdkError | S3ServiceError + Cause.TimeoutError | SdkError | S3ServiceError >; /** @@ -933,7 +938,7 @@ interface S3Service$ { options?: HttpHandlerOptions, ): Effect.Effect< GetBucketOwnershipControlsCommandOutput, - Cause.TimeoutException | SdkError | S3ServiceError + Cause.TimeoutError | SdkError | S3ServiceError >; /** @@ -944,7 +949,7 @@ interface S3Service$ { options?: HttpHandlerOptions, ): Effect.Effect< GetBucketPolicyCommandOutput, - Cause.TimeoutException | SdkError | S3ServiceError + Cause.TimeoutError | SdkError | S3ServiceError >; /** @@ -955,7 +960,7 @@ interface S3Service$ { options?: HttpHandlerOptions, ): Effect.Effect< GetBucketPolicyStatusCommandOutput, - Cause.TimeoutException | SdkError | S3ServiceError + Cause.TimeoutError | SdkError | S3ServiceError >; /** @@ -966,7 +971,7 @@ interface S3Service$ { options?: HttpHandlerOptions, ): Effect.Effect< GetBucketReplicationCommandOutput, - Cause.TimeoutException | SdkError | S3ServiceError + Cause.TimeoutError | SdkError | S3ServiceError >; /** @@ -977,7 +982,7 @@ interface S3Service$ { options?: HttpHandlerOptions, ): Effect.Effect< GetBucketRequestPaymentCommandOutput, - Cause.TimeoutException | SdkError | S3ServiceError + Cause.TimeoutError | SdkError | S3ServiceError >; /** @@ -988,7 +993,7 @@ interface S3Service$ { options?: HttpHandlerOptions, ): Effect.Effect< GetBucketTaggingCommandOutput, - Cause.TimeoutException | SdkError | S3ServiceError + Cause.TimeoutError | SdkError | S3ServiceError >; /** @@ -999,7 +1004,7 @@ interface S3Service$ { options?: HttpHandlerOptions, ): Effect.Effect< GetBucketVersioningCommandOutput, - Cause.TimeoutException | SdkError | S3ServiceError + Cause.TimeoutError | SdkError | S3ServiceError >; /** @@ -1010,7 +1015,7 @@ interface S3Service$ { options?: HttpHandlerOptions, ): Effect.Effect< GetBucketWebsiteCommandOutput, - Cause.TimeoutException | SdkError | S3ServiceError + Cause.TimeoutError | SdkError | S3ServiceError >; /** @@ -1021,7 +1026,7 @@ interface S3Service$ { options?: { readonly presigned?: false } & HttpHandlerOptions, ): Effect.Effect< GetObjectCommandOutput, - Cause.TimeoutException | SdkError | InvalidObjectStateError | NoSuchKeyError + Cause.TimeoutError | SdkError | InvalidObjectStateError | NoSuchKeyError >; getObject( args: GetObjectCommandInput, @@ -1036,7 +1041,7 @@ interface S3Service$ { options?: HttpHandlerOptions, ): Effect.Effect< GetObjectAclCommandOutput, - Cause.TimeoutException | SdkError | NoSuchKeyError + Cause.TimeoutError | SdkError | NoSuchKeyError >; /** @@ -1047,7 +1052,7 @@ interface S3Service$ { options?: HttpHandlerOptions, ): Effect.Effect< GetObjectAttributesCommandOutput, - Cause.TimeoutException | SdkError | NoSuchKeyError + Cause.TimeoutError | SdkError | NoSuchKeyError >; /** @@ -1058,7 +1063,7 @@ interface S3Service$ { options?: HttpHandlerOptions, ): Effect.Effect< GetObjectLegalHoldCommandOutput, - Cause.TimeoutException | SdkError | S3ServiceError + Cause.TimeoutError | SdkError | S3ServiceError >; /** @@ -1069,7 +1074,7 @@ interface S3Service$ { options?: HttpHandlerOptions, ): Effect.Effect< GetObjectLockConfigurationCommandOutput, - Cause.TimeoutException | SdkError | S3ServiceError + Cause.TimeoutError | SdkError | S3ServiceError >; /** @@ -1080,7 +1085,7 @@ interface S3Service$ { options?: HttpHandlerOptions, ): Effect.Effect< GetObjectRetentionCommandOutput, - Cause.TimeoutException | SdkError | S3ServiceError + Cause.TimeoutError | SdkError | S3ServiceError >; /** @@ -1091,7 +1096,7 @@ interface S3Service$ { options?: HttpHandlerOptions, ): Effect.Effect< GetObjectTaggingCommandOutput, - Cause.TimeoutException | SdkError | S3ServiceError + Cause.TimeoutError | SdkError | S3ServiceError >; /** @@ -1102,7 +1107,7 @@ interface S3Service$ { options?: HttpHandlerOptions, ): Effect.Effect< GetObjectTorrentCommandOutput, - Cause.TimeoutException | SdkError | S3ServiceError + Cause.TimeoutError | SdkError | S3ServiceError >; /** @@ -1113,7 +1118,7 @@ interface S3Service$ { options?: HttpHandlerOptions, ): Effect.Effect< GetPublicAccessBlockCommandOutput, - Cause.TimeoutException | SdkError | S3ServiceError + Cause.TimeoutError | SdkError | S3ServiceError >; /** @@ -1124,7 +1129,7 @@ interface S3Service$ { options?: HttpHandlerOptions, ): Effect.Effect< HeadBucketCommandOutput, - Cause.TimeoutException | SdkError | NotFoundError + Cause.TimeoutError | SdkError | NotFoundError >; /** @@ -1135,7 +1140,7 @@ interface S3Service$ { options?: HttpHandlerOptions, ): Effect.Effect< HeadObjectCommandOutput, - Cause.TimeoutException | SdkError | NotFoundError + Cause.TimeoutError | SdkError | NotFoundError >; /** @@ -1146,7 +1151,7 @@ interface S3Service$ { options?: HttpHandlerOptions, ): Effect.Effect< ListBucketAnalyticsConfigurationsCommandOutput, - Cause.TimeoutException | SdkError | S3ServiceError + Cause.TimeoutError | SdkError | S3ServiceError >; /** @@ -1157,7 +1162,7 @@ interface S3Service$ { options?: HttpHandlerOptions, ): Effect.Effect< ListBucketIntelligentTieringConfigurationsCommandOutput, - Cause.TimeoutException | SdkError | S3ServiceError + Cause.TimeoutError | SdkError | S3ServiceError >; /** @@ -1168,7 +1173,7 @@ interface S3Service$ { options?: HttpHandlerOptions, ): Effect.Effect< ListBucketInventoryConfigurationsCommandOutput, - Cause.TimeoutException | SdkError | S3ServiceError + Cause.TimeoutError | SdkError | S3ServiceError >; /** @@ -1179,7 +1184,7 @@ interface S3Service$ { options?: HttpHandlerOptions, ): Effect.Effect< ListBucketMetricsConfigurationsCommandOutput, - Cause.TimeoutException | SdkError | S3ServiceError + Cause.TimeoutError | SdkError | S3ServiceError >; /** @@ -1190,7 +1195,7 @@ interface S3Service$ { options?: HttpHandlerOptions, ): Effect.Effect< ListBucketsCommandOutput, - Cause.TimeoutException | SdkError | S3ServiceError + Cause.TimeoutError | SdkError | S3ServiceError >; /** @@ -1201,7 +1206,7 @@ interface S3Service$ { options?: HttpHandlerOptions, ): Effect.Effect< ListDirectoryBucketsCommandOutput, - Cause.TimeoutException | SdkError | S3ServiceError + Cause.TimeoutError | SdkError | S3ServiceError >; /** @@ -1212,7 +1217,7 @@ interface S3Service$ { options?: HttpHandlerOptions, ): Effect.Effect< ListMultipartUploadsCommandOutput, - Cause.TimeoutException | SdkError | S3ServiceError + Cause.TimeoutError | SdkError | S3ServiceError >; /** @@ -1223,7 +1228,7 @@ interface S3Service$ { options?: HttpHandlerOptions, ): Effect.Effect< ListObjectVersionsCommandOutput, - Cause.TimeoutException | SdkError | S3ServiceError + Cause.TimeoutError | SdkError | S3ServiceError >; /** @@ -1234,7 +1239,7 @@ interface S3Service$ { options?: HttpHandlerOptions, ): Effect.Effect< ListObjectsCommandOutput, - Cause.TimeoutException | SdkError | NoSuchBucketError + Cause.TimeoutError | SdkError | NoSuchBucketError >; /** @@ -1245,7 +1250,7 @@ interface S3Service$ { options?: HttpHandlerOptions, ): Effect.Effect< ListObjectsV2CommandOutput, - Cause.TimeoutException | SdkError | NoSuchBucketError + Cause.TimeoutError | SdkError | NoSuchBucketError >; /** @@ -1256,7 +1261,7 @@ interface S3Service$ { options?: HttpHandlerOptions, ): Effect.Effect< ListPartsCommandOutput, - Cause.TimeoutException | SdkError | S3ServiceError + Cause.TimeoutError | SdkError | S3ServiceError >; /** @@ -1267,7 +1272,7 @@ interface S3Service$ { options?: HttpHandlerOptions, ): Effect.Effect< PutBucketAbacCommandOutput, - Cause.TimeoutException | SdkError | S3ServiceError + Cause.TimeoutError | SdkError | S3ServiceError >; /** @@ -1278,7 +1283,7 @@ interface S3Service$ { options?: HttpHandlerOptions, ): Effect.Effect< PutBucketAccelerateConfigurationCommandOutput, - Cause.TimeoutException | SdkError | S3ServiceError + Cause.TimeoutError | SdkError | S3ServiceError >; /** @@ -1289,7 +1294,7 @@ interface S3Service$ { options?: HttpHandlerOptions, ): Effect.Effect< PutBucketAclCommandOutput, - Cause.TimeoutException | SdkError | S3ServiceError + Cause.TimeoutError | SdkError | S3ServiceError >; /** @@ -1300,7 +1305,7 @@ interface S3Service$ { options?: HttpHandlerOptions, ): Effect.Effect< PutBucketAnalyticsConfigurationCommandOutput, - Cause.TimeoutException | SdkError | S3ServiceError + Cause.TimeoutError | SdkError | S3ServiceError >; /** @@ -1311,7 +1316,7 @@ interface S3Service$ { options?: HttpHandlerOptions, ): Effect.Effect< PutBucketCorsCommandOutput, - Cause.TimeoutException | SdkError | S3ServiceError + Cause.TimeoutError | SdkError | S3ServiceError >; /** @@ -1322,7 +1327,7 @@ interface S3Service$ { options?: HttpHandlerOptions, ): Effect.Effect< PutBucketEncryptionCommandOutput, - Cause.TimeoutException | SdkError | S3ServiceError + Cause.TimeoutError | SdkError | S3ServiceError >; /** @@ -1333,7 +1338,7 @@ interface S3Service$ { options?: HttpHandlerOptions, ): Effect.Effect< PutBucketIntelligentTieringConfigurationCommandOutput, - Cause.TimeoutException | SdkError | S3ServiceError + Cause.TimeoutError | SdkError | S3ServiceError >; /** @@ -1344,7 +1349,7 @@ interface S3Service$ { options?: HttpHandlerOptions, ): Effect.Effect< PutBucketInventoryConfigurationCommandOutput, - Cause.TimeoutException | SdkError | S3ServiceError + Cause.TimeoutError | SdkError | S3ServiceError >; /** @@ -1355,7 +1360,7 @@ interface S3Service$ { options?: HttpHandlerOptions, ): Effect.Effect< PutBucketLifecycleConfigurationCommandOutput, - Cause.TimeoutException | SdkError | S3ServiceError + Cause.TimeoutError | SdkError | S3ServiceError >; /** @@ -1366,7 +1371,7 @@ interface S3Service$ { options?: HttpHandlerOptions, ): Effect.Effect< PutBucketLoggingCommandOutput, - Cause.TimeoutException | SdkError | S3ServiceError + Cause.TimeoutError | SdkError | S3ServiceError >; /** @@ -1377,7 +1382,7 @@ interface S3Service$ { options?: HttpHandlerOptions, ): Effect.Effect< PutBucketMetricsConfigurationCommandOutput, - Cause.TimeoutException | SdkError | S3ServiceError + Cause.TimeoutError | SdkError | S3ServiceError >; /** @@ -1388,7 +1393,7 @@ interface S3Service$ { options?: HttpHandlerOptions, ): Effect.Effect< PutBucketNotificationConfigurationCommandOutput, - Cause.TimeoutException | SdkError | S3ServiceError + Cause.TimeoutError | SdkError | S3ServiceError >; /** @@ -1399,7 +1404,7 @@ interface S3Service$ { options?: HttpHandlerOptions, ): Effect.Effect< PutBucketOwnershipControlsCommandOutput, - Cause.TimeoutException | SdkError | S3ServiceError + Cause.TimeoutError | SdkError | S3ServiceError >; /** @@ -1410,7 +1415,7 @@ interface S3Service$ { options?: HttpHandlerOptions, ): Effect.Effect< PutBucketPolicyCommandOutput, - Cause.TimeoutException | SdkError | S3ServiceError + Cause.TimeoutError | SdkError | S3ServiceError >; /** @@ -1421,7 +1426,7 @@ interface S3Service$ { options?: HttpHandlerOptions, ): Effect.Effect< PutBucketReplicationCommandOutput, - Cause.TimeoutException | SdkError | S3ServiceError + Cause.TimeoutError | SdkError | S3ServiceError >; /** @@ -1432,7 +1437,7 @@ interface S3Service$ { options?: HttpHandlerOptions, ): Effect.Effect< PutBucketRequestPaymentCommandOutput, - Cause.TimeoutException | SdkError | S3ServiceError + Cause.TimeoutError | SdkError | S3ServiceError >; /** @@ -1443,7 +1448,7 @@ interface S3Service$ { options?: HttpHandlerOptions, ): Effect.Effect< PutBucketTaggingCommandOutput, - Cause.TimeoutException | SdkError | S3ServiceError + Cause.TimeoutError | SdkError | S3ServiceError >; /** @@ -1454,7 +1459,7 @@ interface S3Service$ { options?: HttpHandlerOptions, ): Effect.Effect< PutBucketVersioningCommandOutput, - Cause.TimeoutException | SdkError | S3ServiceError + Cause.TimeoutError | SdkError | S3ServiceError >; /** @@ -1465,7 +1470,7 @@ interface S3Service$ { options?: HttpHandlerOptions, ): Effect.Effect< PutBucketWebsiteCommandOutput, - Cause.TimeoutException | SdkError | S3ServiceError + Cause.TimeoutError | SdkError | S3ServiceError >; /** @@ -1476,7 +1481,7 @@ interface S3Service$ { options?: { readonly presigned?: false } & HttpHandlerOptions, ): Effect.Effect< PutObjectCommandOutput, - | Cause.TimeoutException + | Cause.TimeoutError | SdkError | EncryptionTypeMismatchError | InvalidRequestError @@ -1496,7 +1501,7 @@ interface S3Service$ { options?: HttpHandlerOptions, ): Effect.Effect< PutObjectAclCommandOutput, - Cause.TimeoutException | SdkError | NoSuchKeyError + Cause.TimeoutError | SdkError | NoSuchKeyError >; /** @@ -1507,7 +1512,7 @@ interface S3Service$ { options?: HttpHandlerOptions, ): Effect.Effect< PutObjectLegalHoldCommandOutput, - Cause.TimeoutException | SdkError | S3ServiceError + Cause.TimeoutError | SdkError | S3ServiceError >; /** @@ -1518,7 +1523,7 @@ interface S3Service$ { options?: HttpHandlerOptions, ): Effect.Effect< PutObjectLockConfigurationCommandOutput, - Cause.TimeoutException | SdkError | S3ServiceError + Cause.TimeoutError | SdkError | S3ServiceError >; /** @@ -1529,7 +1534,7 @@ interface S3Service$ { options?: HttpHandlerOptions, ): Effect.Effect< PutObjectRetentionCommandOutput, - Cause.TimeoutException | SdkError | S3ServiceError + Cause.TimeoutError | SdkError | S3ServiceError >; /** @@ -1540,7 +1545,7 @@ interface S3Service$ { options?: HttpHandlerOptions, ): Effect.Effect< PutObjectTaggingCommandOutput, - Cause.TimeoutException | SdkError | S3ServiceError + Cause.TimeoutError | SdkError | S3ServiceError >; /** @@ -1551,7 +1556,7 @@ interface S3Service$ { options?: HttpHandlerOptions, ): Effect.Effect< PutPublicAccessBlockCommandOutput, - Cause.TimeoutException | SdkError | S3ServiceError + Cause.TimeoutError | SdkError | S3ServiceError >; /** @@ -1562,7 +1567,7 @@ interface S3Service$ { options?: HttpHandlerOptions, ): Effect.Effect< RenameObjectCommandOutput, - Cause.TimeoutException | SdkError | IdempotencyParameterMismatchError + Cause.TimeoutError | SdkError | IdempotencyParameterMismatchError >; /** @@ -1573,7 +1578,7 @@ interface S3Service$ { options?: HttpHandlerOptions, ): Effect.Effect< RestoreObjectCommandOutput, - Cause.TimeoutException | SdkError | ObjectAlreadyInActiveTierError + Cause.TimeoutError | SdkError | ObjectAlreadyInActiveTierError >; /** @@ -1584,7 +1589,7 @@ interface S3Service$ { options?: HttpHandlerOptions, ): Effect.Effect< SelectObjectContentCommandOutput, - Cause.TimeoutException | SdkError | S3ServiceError + Cause.TimeoutError | SdkError | S3ServiceError >; /** @@ -1595,7 +1600,7 @@ interface S3Service$ { options?: HttpHandlerOptions, ): Effect.Effect< UpdateBucketMetadataInventoryTableConfigurationCommandOutput, - Cause.TimeoutException | SdkError | S3ServiceError + Cause.TimeoutError | SdkError | S3ServiceError >; /** @@ -1606,7 +1611,18 @@ interface S3Service$ { options?: HttpHandlerOptions, ): Effect.Effect< UpdateBucketMetadataJournalTableConfigurationCommandOutput, - Cause.TimeoutException | SdkError | S3ServiceError + Cause.TimeoutError | SdkError | S3ServiceError + >; + + /** + * @see {@link UpdateObjectEncryptionCommand} + */ + updateObjectEncryption( + args: UpdateObjectEncryptionCommandInput, + options?: HttpHandlerOptions, + ): Effect.Effect< + UpdateObjectEncryptionCommandOutput, + Cause.TimeoutError | SdkError | AccessDeniedError | InvalidRequestError | NoSuchKeyError >; /** @@ -1617,7 +1633,7 @@ interface S3Service$ { options?: HttpHandlerOptions, ): Effect.Effect< UploadPartCommandOutput, - Cause.TimeoutException | SdkError | S3ServiceError + Cause.TimeoutError | SdkError | S3ServiceError >; /** @@ -1628,7 +1644,7 @@ interface S3Service$ { options?: HttpHandlerOptions, ): Effect.Effect< UploadPartCopyCommandOutput, - Cause.TimeoutException | SdkError | S3ServiceError + Cause.TimeoutError | SdkError | S3ServiceError >; /** @@ -1639,7 +1655,7 @@ interface S3Service$ { options?: HttpHandlerOptions, ): Effect.Effect< WriteGetObjectResponseCommandOutput, - Cause.TimeoutException | SdkError | S3ServiceError + Cause.TimeoutError | SdkError | S3ServiceError >; } @@ -1675,40 +1691,10 @@ export const makeS3Service = Effect.gen(function*() { * @since 1.0.0 * @category models */ -export class S3Service extends Effect.Tag("@effect-aws/client-s3/S3Service")< +export class S3Service extends ServiceMap.Service< S3Service, S3Service$ ->() { - // Explicitly declare the methods which have overloads, Effect Service can't infer them as service accessors currently - declare static readonly getObject: { - ( - args: GetObjectCommandInput, - options?: { readonly presigned?: false } & HttpHandlerOptions, - ): Effect.Effect< - GetObjectCommandOutput, - SdkError | InvalidObjectStateError | NoSuchKeyError, - S3Service - >; - ( - args: GetObjectCommandInput, - options?: { readonly presigned: true } & RequestPresigningArguments, - ): Effect.Effect; - }; - declare static readonly putObject: { - ( - args: PutObjectCommandInput, - options?: { readonly presigned?: false } & HttpHandlerOptions, - ): Effect.Effect< - PutObjectCommandOutput, - SdkError | EncryptionTypeMismatchError | InvalidRequestError | InvalidWriteOffsetError | TooManyPartsError, - S3Service - >; - ( - args: PutObjectCommandInput, - options?: { readonly presigned: true } & RequestPresigningArguments, - ): Effect.Effect; - }; - +>()("@effect-aws/client-s3/S3Service") { static readonly defaultLayer = Layer.effect(this, makeS3Service).pipe(Layer.provide(Instance.layer)); static readonly layer = (config: S3Service.Config) => Layer.effect(this, makeS3Service).pipe( diff --git a/packages/client-s3/src/S3ServiceConfig.ts b/packages/client-s3/src/S3ServiceConfig.ts index 97340fb6..db235356 100644 --- a/packages/client-s3/src/S3ServiceConfig.ts +++ b/packages/client-s3/src/S3ServiceConfig.ts @@ -3,18 +3,17 @@ */ import type { S3ClientConfig } from "@aws-sdk/client-s3"; import { ServiceLogger } from "@effect-aws/commons"; -import { Effect, FiberRef, Layer } from "effect"; +import { Effect, Layer, ServiceMap } from "effect"; import { dual } from "effect/Function"; -import { globalValue } from "effect/GlobalValue"; import type { S3Service } from "./S3Service.js"; /** * @since 1.0.0 * @category s3 service config */ -const currentS3ServiceConfig = globalValue( +const currentS3ServiceConfig = ServiceMap.Reference( "@effect-aws/client-s3/currentS3ServiceConfig", - () => FiberRef.unsafeMake({}), + { defaultValue: () => ({}) }, ); /** @@ -27,21 +26,21 @@ export const withS3ServiceConfig: { } = dual( 2, (effect: Effect.Effect, config: S3Service.Config): Effect.Effect => - Effect.locally(effect, currentS3ServiceConfig, config), + Effect.provideService(effect, currentS3ServiceConfig, config), ); /** * @since 1.0.0 * @category s3 service config */ -export const setS3ServiceConfig = (config: S3Service.Config) => Layer.locallyScoped(currentS3ServiceConfig, config); +export const setS3ServiceConfig = (config: S3Service.Config) => Layer.succeed(currentS3ServiceConfig, config); /** * @since 1.0.0 * @category adapters */ export const toS3ClientConfig: Effect.Effect = Effect.gen(function*() { - const { logger: serviceLogger, ...config } = yield* FiberRef.get(currentS3ServiceConfig); + const { logger: serviceLogger, ...config } = yield* currentS3ServiceConfig; const logger = serviceLogger === true ? yield* ServiceLogger.toClientLogger(ServiceLogger.defaultServiceLogger) diff --git a/packages/client-s3/test/S3.test.ts b/packages/client-s3/test/S3.test.ts index 365e93dd..b1636eab 100644 --- a/packages/client-s3/test/S3.test.ts +++ b/packages/client-s3/test/S3.test.ts @@ -37,7 +37,7 @@ describe("S3ClientImpl", () => { const args: HeadObjectCommandInput = { Key: "test", Bucket: "test" }; - const program = S3.headObject(args); + const program = S3.use((svc) => svc.headObject(args)); const result = await pipe( program, @@ -57,7 +57,7 @@ describe("S3ClientImpl", () => { const args: HeadObjectCommandInput = { Key: "test", Bucket: "test" }; - const program = S3.headObject(args); + const program = S3.use((svc) => svc.headObject(args)); const result = await pipe( program, @@ -80,7 +80,7 @@ describe("S3ClientImpl", () => { const args: HeadObjectCommandInput = { Key: "test", Bucket: "test" }; - const program = S3.headObject(args); + const program = S3.use((svc) => svc.headObject(args)); const result = await pipe( program, @@ -104,7 +104,7 @@ describe("S3ClientImpl", () => { const args: HeadObjectCommandInput = { Key: "test", Bucket: "test" }; - const program = S3.headObject(args); + const program = S3.use((svc) => svc.headObject(args)); const result = await pipe( program, @@ -132,7 +132,7 @@ describe("S3ClientImpl", () => { const args: HeadObjectCommandInput = { Key: "test", Bucket: "test" }; - const program = S3.headObject(args, { requestTimeout: 1000 }); + const program = S3.use((svc) => svc.headObject(args)); const result = await pipe( program, @@ -142,7 +142,7 @@ describe("S3ClientImpl", () => { expect(result).toEqual( Exit.fail( - SdkError({ + new SdkError({ ...new Error("test"), name: "SdkError", message: "test", @@ -167,7 +167,7 @@ describe("S3ClientImpl", () => { const args: HeadObjectCommandInput = { Key: "test", Bucket: "test" }; - const program = S3.headObject(args).pipe( + const program = S3.use((svc) => svc.headObject(args)).pipe( Effect.catchTag("NotHandledException" as any, () => Effect.succeed(null)), ); @@ -177,9 +177,9 @@ describe("S3ClientImpl", () => { Effect.runPromiseExit, ); - expect(result).toEqual( + expect(result).toContainEqual( Exit.fail( - SdkError({ + new SdkError({ ...new Error("test"), name: "SdkError", message: "test", @@ -194,7 +194,7 @@ describe("S3ClientImpl", () => { it("presigned url", async () => { const args: GetObjectCommandInput = { Key: "test", Bucket: "test" }; - const program = S3.getObject(args, { presigned: true, expiresIn: 100 }); + const program = S3.use((svc) => svc.getObject(args, { presigned: true, expiresIn: 100 })); const result = await pipe( program, diff --git a/packages/client-scheduler/.projen/deps.json b/packages/client-scheduler/.projen/deps.json index 9335e365..440f8d6b 100644 --- a/packages/client-scheduler/.projen/deps.json +++ b/packages/client-scheduler/.projen/deps.json @@ -7,6 +7,7 @@ }, { "name": "effect", + "version": "4.0.0-beta.8", "type": "build" }, { @@ -16,7 +17,7 @@ }, { "name": "effect", - "version": ">=3.0.4 <4.0.0", + "version": ">=4.0.0 <5.0.0", "type": "peer" }, { diff --git a/packages/client-scheduler/README.md b/packages/client-scheduler/README.md index 3d86def6..c05c9843 100644 --- a/packages/client-scheduler/README.md +++ b/packages/client-scheduler/README.md @@ -16,7 +16,7 @@ With default SchedulerClient instance: ```typescript import { Scheduler } from "@effect-aws/client-scheduler"; -const program = Scheduler.tagResource(args); +const program = Scheduler.use((svc) => svc.tagResource(args)); const result = pipe( program, @@ -30,7 +30,7 @@ With custom SchedulerClient instance: ```typescript import { Scheduler } from "@effect-aws/client-scheduler"; -const program = Scheduler.tagResource(args); +const program = Scheduler.use((svc) => svc.tagResource(args)); const result = await pipe( program, @@ -46,7 +46,7 @@ With custom SchedulerClient configuration: ```typescript import { Scheduler } from "@effect-aws/client-scheduler"; -const program = Scheduler.tagResource(args); +const program = Scheduler.use((svc) => svc.tagResource(args)); const result = await pipe( program, diff --git a/packages/client-scheduler/package.json b/packages/client-scheduler/package.json index ce599090..eb5d87c5 100644 --- a/packages/client-scheduler/package.json +++ b/packages/client-scheduler/package.json @@ -26,11 +26,11 @@ }, "devDependencies": { "@types/node": "ts5.4", - "effect": "^3.16.4", + "effect": "4.0.0-beta.8", "typescript": "^5.4.2" }, "peerDependencies": { - "effect": ">=3.0.4 <4.0.0" + "effect": ">=4.0.0 <5.0.0" }, "dependencies": { "@aws-sdk/client-scheduler": "^3", diff --git a/packages/client-scheduler/src/SchedulerClientInstance.ts b/packages/client-scheduler/src/SchedulerClientInstance.ts index 2b47159d..f67235ce 100644 --- a/packages/client-scheduler/src/SchedulerClientInstance.ts +++ b/packages/client-scheduler/src/SchedulerClientInstance.ts @@ -2,16 +2,16 @@ * @since 1.0.0 */ import { SchedulerClient } from "@aws-sdk/client-scheduler"; -import { Context, Effect, Layer } from "effect"; +import { Effect, Layer, ServiceMap } from "effect"; import * as SchedulerServiceConfig from "./SchedulerServiceConfig.js"; /** * @since 1.0.0 * @category tags */ -export class SchedulerClientInstance extends Context.Tag( +export class SchedulerClientInstance extends ServiceMap.Service()( "@effect-aws/client-scheduler/SchedulerClientInstance", -)() {} +) {} /** * @since 1.0.0 @@ -30,4 +30,4 @@ export const make = Effect.flatMap( * @since 1.0.0 * @category layers */ -export const layer = Layer.scoped(SchedulerClientInstance, make); +export const layer = Layer.effect(SchedulerClientInstance, make); diff --git a/packages/client-scheduler/src/SchedulerService.ts b/packages/client-scheduler/src/SchedulerService.ts index b53b35f3..416ed884 100644 --- a/packages/client-scheduler/src/SchedulerService.ts +++ b/packages/client-scheduler/src/SchedulerService.ts @@ -44,7 +44,7 @@ import { import type { HttpHandlerOptions, ServiceLogger } from "@effect-aws/commons"; import { Service } from "@effect-aws/commons"; import type { Cause } from "effect"; -import { Effect, Layer } from "effect"; +import { Effect, Layer, ServiceMap } from "effect"; import type { ConflictError, InternalServerError, @@ -84,7 +84,7 @@ interface SchedulerService$ { options?: HttpHandlerOptions, ): Effect.Effect< CreateScheduleCommandOutput, - | Cause.TimeoutException + | Cause.TimeoutError | SdkError | ConflictError | InternalServerError @@ -102,7 +102,7 @@ interface SchedulerService$ { options?: HttpHandlerOptions, ): Effect.Effect< CreateScheduleGroupCommandOutput, - | Cause.TimeoutException + | Cause.TimeoutError | SdkError | ConflictError | InternalServerError @@ -119,7 +119,7 @@ interface SchedulerService$ { options?: HttpHandlerOptions, ): Effect.Effect< DeleteScheduleCommandOutput, - | Cause.TimeoutException + | Cause.TimeoutError | SdkError | ConflictError | InternalServerError @@ -136,7 +136,7 @@ interface SchedulerService$ { options?: HttpHandlerOptions, ): Effect.Effect< DeleteScheduleGroupCommandOutput, - | Cause.TimeoutException + | Cause.TimeoutError | SdkError | ConflictError | InternalServerError @@ -153,7 +153,7 @@ interface SchedulerService$ { options?: HttpHandlerOptions, ): Effect.Effect< GetScheduleCommandOutput, - Cause.TimeoutException | SdkError | InternalServerError | ResourceNotFoundError | ThrottlingError | ValidationError + Cause.TimeoutError | SdkError | InternalServerError | ResourceNotFoundError | ThrottlingError | ValidationError >; /** @@ -164,7 +164,7 @@ interface SchedulerService$ { options?: HttpHandlerOptions, ): Effect.Effect< GetScheduleGroupCommandOutput, - Cause.TimeoutException | SdkError | InternalServerError | ResourceNotFoundError | ThrottlingError | ValidationError + Cause.TimeoutError | SdkError | InternalServerError | ResourceNotFoundError | ThrottlingError | ValidationError >; /** @@ -175,7 +175,7 @@ interface SchedulerService$ { options?: HttpHandlerOptions, ): Effect.Effect< ListScheduleGroupsCommandOutput, - Cause.TimeoutException | SdkError | InternalServerError | ThrottlingError | ValidationError + Cause.TimeoutError | SdkError | InternalServerError | ThrottlingError | ValidationError >; /** @@ -186,7 +186,7 @@ interface SchedulerService$ { options?: HttpHandlerOptions, ): Effect.Effect< ListSchedulesCommandOutput, - Cause.TimeoutException | SdkError | InternalServerError | ResourceNotFoundError | ThrottlingError | ValidationError + Cause.TimeoutError | SdkError | InternalServerError | ResourceNotFoundError | ThrottlingError | ValidationError >; /** @@ -197,7 +197,7 @@ interface SchedulerService$ { options?: HttpHandlerOptions, ): Effect.Effect< ListTagsForResourceCommandOutput, - Cause.TimeoutException | SdkError | InternalServerError | ResourceNotFoundError | ThrottlingError | ValidationError + Cause.TimeoutError | SdkError | InternalServerError | ResourceNotFoundError | ThrottlingError | ValidationError >; /** @@ -208,7 +208,7 @@ interface SchedulerService$ { options?: HttpHandlerOptions, ): Effect.Effect< TagResourceCommandOutput, - | Cause.TimeoutException + | Cause.TimeoutError | SdkError | ConflictError | InternalServerError @@ -225,7 +225,7 @@ interface SchedulerService$ { options?: HttpHandlerOptions, ): Effect.Effect< UntagResourceCommandOutput, - | Cause.TimeoutException + | Cause.TimeoutError | SdkError | ConflictError | InternalServerError @@ -242,7 +242,7 @@ interface SchedulerService$ { options?: HttpHandlerOptions, ): Effect.Effect< UpdateScheduleCommandOutput, - | Cause.TimeoutException + | Cause.TimeoutError | SdkError | ConflictError | InternalServerError @@ -273,10 +273,10 @@ export const makeSchedulerService = Effect.gen(function*() { * @since 1.0.0 * @category models */ -export class SchedulerService extends Effect.Tag("@effect-aws/client-scheduler/SchedulerService")< +export class SchedulerService extends ServiceMap.Service< SchedulerService, SchedulerService$ ->() { +>()("@effect-aws/client-scheduler/SchedulerService") { static readonly defaultLayer = Layer.effect(this, makeSchedulerService).pipe(Layer.provide(Instance.layer)); static readonly layer = (config: SchedulerService.Config) => Layer.effect(this, makeSchedulerService).pipe( diff --git a/packages/client-scheduler/src/SchedulerServiceConfig.ts b/packages/client-scheduler/src/SchedulerServiceConfig.ts index 09bd833e..c69980b1 100644 --- a/packages/client-scheduler/src/SchedulerServiceConfig.ts +++ b/packages/client-scheduler/src/SchedulerServiceConfig.ts @@ -3,18 +3,17 @@ */ import type { SchedulerClientConfig } from "@aws-sdk/client-scheduler"; import { ServiceLogger } from "@effect-aws/commons"; -import { Effect, FiberRef, Layer } from "effect"; +import { Effect, Layer, ServiceMap } from "effect"; import { dual } from "effect/Function"; -import { globalValue } from "effect/GlobalValue"; import type { SchedulerService } from "./SchedulerService.js"; /** * @since 1.0.0 * @category scheduler service config */ -const currentSchedulerServiceConfig = globalValue( +const currentSchedulerServiceConfig = ServiceMap.Reference( "@effect-aws/client-scheduler/currentSchedulerServiceConfig", - () => FiberRef.unsafeMake({}), + { defaultValue: () => ({}) }, ); /** @@ -27,7 +26,7 @@ export const withSchedulerServiceConfig: { } = dual( 2, (effect: Effect.Effect, config: SchedulerService.Config): Effect.Effect => - Effect.locally(effect, currentSchedulerServiceConfig, config), + Effect.provideService(effect, currentSchedulerServiceConfig, config), ); /** @@ -35,14 +34,14 @@ export const withSchedulerServiceConfig: { * @category scheduler service config */ export const setSchedulerServiceConfig = (config: SchedulerService.Config) => - Layer.locallyScoped(currentSchedulerServiceConfig, config); + Layer.succeed(currentSchedulerServiceConfig, config); /** * @since 1.0.0 * @category adapters */ export const toSchedulerClientConfig: Effect.Effect = Effect.gen(function*() { - const { logger: serviceLogger, ...config } = yield* FiberRef.get(currentSchedulerServiceConfig); + const { logger: serviceLogger, ...config } = yield* currentSchedulerServiceConfig; const logger = serviceLogger === true ? yield* ServiceLogger.toClientLogger(ServiceLogger.defaultServiceLogger) diff --git a/packages/client-scheduler/test/Scheduler.test.ts b/packages/client-scheduler/test/Scheduler.test.ts index 7527e21d..bd218875 100644 --- a/packages/client-scheduler/test/Scheduler.test.ts +++ b/packages/client-scheduler/test/Scheduler.test.ts @@ -26,7 +26,7 @@ describe("SchedulerClientImpl", () => { const args = {} as unknown as TagResourceCommandInput; - const program = Scheduler.tagResource(args); + const program = Scheduler.use((svc) => svc.tagResource(args)); const result = await pipe( program, @@ -46,7 +46,7 @@ describe("SchedulerClientImpl", () => { const args = {} as unknown as TagResourceCommandInput; - const program = Scheduler.tagResource(args); + const program = Scheduler.use((svc) => svc.tagResource(args)); const result = await pipe( program, @@ -69,7 +69,7 @@ describe("SchedulerClientImpl", () => { const args = {} as unknown as TagResourceCommandInput; - const program = Scheduler.tagResource(args); + const program = Scheduler.use((svc) => svc.tagResource(args)); const result = await pipe( program, @@ -93,7 +93,7 @@ describe("SchedulerClientImpl", () => { const args = {} as unknown as TagResourceCommandInput; - const program = Scheduler.tagResource(args); + const program = Scheduler.use((svc) => svc.tagResource(args)); const result = await pipe( program, @@ -121,7 +121,7 @@ describe("SchedulerClientImpl", () => { const args = {} as unknown as TagResourceCommandInput; - const program = Scheduler.tagResource(args); + const program = Scheduler.use((svc) => svc.tagResource(args)); const result = await pipe( program, @@ -131,7 +131,7 @@ describe("SchedulerClientImpl", () => { expect(result).toEqual( Exit.fail( - SdkError({ + new SdkError({ ...new Error("test"), name: "SdkError", message: "test", @@ -156,7 +156,7 @@ describe("SchedulerClientImpl", () => { const args = {} as unknown as TagResourceCommandInput; - const program = Scheduler.tagResource(args).pipe( + const program = Scheduler.use((svc) => svc.tagResource(args)).pipe( Effect.catchTag("NotHandledException" as any, () => Effect.succeed(null)), ); @@ -166,9 +166,9 @@ describe("SchedulerClientImpl", () => { Effect.runPromiseExit, ); - expect(result).toEqual( + expect(result).toContainEqual( Exit.fail( - SdkError({ + new SdkError({ ...new Error("test"), name: "SdkError", message: "test", diff --git a/packages/client-secrets-manager/.projen/deps.json b/packages/client-secrets-manager/.projen/deps.json index 0c1c3bd2..e9134ab8 100644 --- a/packages/client-secrets-manager/.projen/deps.json +++ b/packages/client-secrets-manager/.projen/deps.json @@ -7,6 +7,7 @@ }, { "name": "effect", + "version": "4.0.0-beta.8", "type": "build" }, { @@ -16,7 +17,7 @@ }, { "name": "effect", - "version": ">=3.0.4 <4.0.0", + "version": ">=4.0.0 <5.0.0", "type": "peer" }, { diff --git a/packages/client-secrets-manager/README.md b/packages/client-secrets-manager/README.md index 292c0b58..5d56b43c 100644 --- a/packages/client-secrets-manager/README.md +++ b/packages/client-secrets-manager/README.md @@ -16,7 +16,7 @@ With default SecretsManagerClient instance: ```typescript import { SecretsManager } from "@effect-aws/client-secrets-manager"; -const program = SecretsManager.getSecretValue(args); +const program = SecretsManager.use((svc) => svc.getSecretValue(args)); const result = pipe( program, @@ -30,7 +30,7 @@ With custom SecretsManagerClient instance: ```typescript import { SecretsManager } from "@effect-aws/client-secrets-manager"; -const program = SecretsManager.getSecretValue(args); +const program = SecretsManager.use((svc) => svc.getSecretValue(args)); const result = await pipe( program, @@ -46,7 +46,7 @@ With custom SecretsManagerClient configuration: ```typescript import { SecretsManager } from "@effect-aws/client-secrets-manager"; -const program = SecretsManager.getSecretValue(args); +const program = SecretsManager.use((svc) => svc.getSecretValue(args)); const result = await pipe( program, diff --git a/packages/client-secrets-manager/package.json b/packages/client-secrets-manager/package.json index f216fd7c..a8938f16 100644 --- a/packages/client-secrets-manager/package.json +++ b/packages/client-secrets-manager/package.json @@ -26,11 +26,11 @@ }, "devDependencies": { "@types/node": "ts5.4", - "effect": "^3.16.4", + "effect": "4.0.0-beta.8", "typescript": "^5.4.2" }, "peerDependencies": { - "effect": ">=3.0.4 <4.0.0" + "effect": ">=4.0.0 <5.0.0" }, "dependencies": { "@aws-sdk/client-secrets-manager": "^3", diff --git a/packages/client-secrets-manager/src/SecretsManagerClientInstance.ts b/packages/client-secrets-manager/src/SecretsManagerClientInstance.ts index 753c4453..697aed6a 100644 --- a/packages/client-secrets-manager/src/SecretsManagerClientInstance.ts +++ b/packages/client-secrets-manager/src/SecretsManagerClientInstance.ts @@ -2,16 +2,18 @@ * @since 1.0.0 */ import { SecretsManagerClient } from "@aws-sdk/client-secrets-manager"; -import { Context, Effect, Layer } from "effect"; +import { Effect, Layer, ServiceMap } from "effect"; import * as SecretsManagerServiceConfig from "./SecretsManagerServiceConfig.js"; /** * @since 1.0.0 * @category tags */ -export class SecretsManagerClientInstance extends Context.Tag( - "@effect-aws/client-secrets-manager/SecretsManagerClientInstance", -)() {} +export class SecretsManagerClientInstance + extends ServiceMap.Service()( + "@effect-aws/client-secrets-manager/SecretsManagerClientInstance", + ) +{} /** * @since 1.0.0 @@ -30,4 +32,4 @@ export const make = Effect.flatMap( * @since 1.0.0 * @category layers */ -export const layer = Layer.scoped(SecretsManagerClientInstance, make); +export const layer = Layer.effect(SecretsManagerClientInstance, make); diff --git a/packages/client-secrets-manager/src/SecretsManagerService.ts b/packages/client-secrets-manager/src/SecretsManagerService.ts index cb3330bf..3f7628bf 100644 --- a/packages/client-secrets-manager/src/SecretsManagerService.ts +++ b/packages/client-secrets-manager/src/SecretsManagerService.ts @@ -77,7 +77,7 @@ import { import type { HttpHandlerOptions, ServiceLogger } from "@effect-aws/commons"; import { Service } from "@effect-aws/commons"; import type { Cause } from "effect"; -import { Effect, Layer } from "effect"; +import { Effect, Layer, ServiceMap } from "effect"; import type { DecryptionError, EncryptionError, @@ -134,7 +134,7 @@ interface SecretsManagerService$ { options?: HttpHandlerOptions, ): Effect.Effect< BatchGetSecretValueCommandOutput, - | Cause.TimeoutException + | Cause.TimeoutError | SdkError | DecryptionError | InternalServiceError @@ -152,7 +152,7 @@ interface SecretsManagerService$ { options?: HttpHandlerOptions, ): Effect.Effect< CancelRotateSecretCommandOutput, - | Cause.TimeoutException + | Cause.TimeoutError | SdkError | InternalServiceError | InvalidParameterError @@ -168,7 +168,7 @@ interface SecretsManagerService$ { options?: HttpHandlerOptions, ): Effect.Effect< CreateSecretCommandOutput, - | Cause.TimeoutException + | Cause.TimeoutError | SdkError | DecryptionError | EncryptionError @@ -190,7 +190,7 @@ interface SecretsManagerService$ { options?: HttpHandlerOptions, ): Effect.Effect< DeleteResourcePolicyCommandOutput, - | Cause.TimeoutException + | Cause.TimeoutError | SdkError | InternalServiceError | InvalidParameterError @@ -206,7 +206,7 @@ interface SecretsManagerService$ { options?: HttpHandlerOptions, ): Effect.Effect< DeleteSecretCommandOutput, - | Cause.TimeoutException + | Cause.TimeoutError | SdkError | InternalServiceError | InvalidParameterError @@ -222,7 +222,7 @@ interface SecretsManagerService$ { options?: HttpHandlerOptions, ): Effect.Effect< DescribeSecretCommandOutput, - Cause.TimeoutException | SdkError | InternalServiceError | InvalidParameterError | ResourceNotFoundError + Cause.TimeoutError | SdkError | InternalServiceError | InvalidParameterError | ResourceNotFoundError >; /** @@ -233,7 +233,7 @@ interface SecretsManagerService$ { options?: HttpHandlerOptions, ): Effect.Effect< GetRandomPasswordCommandOutput, - Cause.TimeoutException | SdkError | InternalServiceError | InvalidParameterError | InvalidRequestError + Cause.TimeoutError | SdkError | InternalServiceError | InvalidParameterError | InvalidRequestError >; /** @@ -244,7 +244,7 @@ interface SecretsManagerService$ { options?: HttpHandlerOptions, ): Effect.Effect< GetResourcePolicyCommandOutput, - | Cause.TimeoutException + | Cause.TimeoutError | SdkError | InternalServiceError | InvalidParameterError @@ -260,7 +260,7 @@ interface SecretsManagerService$ { options?: HttpHandlerOptions, ): Effect.Effect< GetSecretValueCommandOutput, - | Cause.TimeoutException + | Cause.TimeoutError | SdkError | DecryptionError | InternalServiceError @@ -277,7 +277,7 @@ interface SecretsManagerService$ { options?: HttpHandlerOptions, ): Effect.Effect< ListSecretVersionIdsCommandOutput, - | Cause.TimeoutException + | Cause.TimeoutError | SdkError | InternalServiceError | InvalidNextTokenError @@ -293,7 +293,7 @@ interface SecretsManagerService$ { options?: HttpHandlerOptions, ): Effect.Effect< ListSecretsCommandOutput, - | Cause.TimeoutException + | Cause.TimeoutError | SdkError | InternalServiceError | InvalidNextTokenError @@ -309,7 +309,7 @@ interface SecretsManagerService$ { options?: HttpHandlerOptions, ): Effect.Effect< PutResourcePolicyCommandOutput, - | Cause.TimeoutException + | Cause.TimeoutError | SdkError | InternalServiceError | InvalidParameterError @@ -327,7 +327,7 @@ interface SecretsManagerService$ { options?: HttpHandlerOptions, ): Effect.Effect< PutSecretValueCommandOutput, - | Cause.TimeoutException + | Cause.TimeoutError | SdkError | DecryptionError | EncryptionError @@ -347,7 +347,7 @@ interface SecretsManagerService$ { options?: HttpHandlerOptions, ): Effect.Effect< RemoveRegionsFromReplicationCommandOutput, - | Cause.TimeoutException + | Cause.TimeoutError | SdkError | InternalServiceError | InvalidParameterError @@ -363,7 +363,7 @@ interface SecretsManagerService$ { options?: HttpHandlerOptions, ): Effect.Effect< ReplicateSecretToRegionsCommandOutput, - | Cause.TimeoutException + | Cause.TimeoutError | SdkError | InternalServiceError | InvalidParameterError @@ -379,7 +379,7 @@ interface SecretsManagerService$ { options?: HttpHandlerOptions, ): Effect.Effect< RestoreSecretCommandOutput, - | Cause.TimeoutException + | Cause.TimeoutError | SdkError | InternalServiceError | InvalidParameterError @@ -395,7 +395,7 @@ interface SecretsManagerService$ { options?: HttpHandlerOptions, ): Effect.Effect< RotateSecretCommandOutput, - | Cause.TimeoutException + | Cause.TimeoutError | SdkError | InternalServiceError | InvalidParameterError @@ -411,7 +411,7 @@ interface SecretsManagerService$ { options?: HttpHandlerOptions, ): Effect.Effect< StopReplicationToReplicaCommandOutput, - | Cause.TimeoutException + | Cause.TimeoutError | SdkError | InternalServiceError | InvalidParameterError @@ -427,7 +427,7 @@ interface SecretsManagerService$ { options?: HttpHandlerOptions, ): Effect.Effect< TagResourceCommandOutput, - | Cause.TimeoutException + | Cause.TimeoutError | SdkError | InternalServiceError | InvalidParameterError @@ -443,7 +443,7 @@ interface SecretsManagerService$ { options?: HttpHandlerOptions, ): Effect.Effect< UntagResourceCommandOutput, - | Cause.TimeoutException + | Cause.TimeoutError | SdkError | InternalServiceError | InvalidParameterError @@ -459,7 +459,7 @@ interface SecretsManagerService$ { options?: HttpHandlerOptions, ): Effect.Effect< UpdateSecretCommandOutput, - | Cause.TimeoutException + | Cause.TimeoutError | SdkError | DecryptionError | EncryptionError @@ -481,7 +481,7 @@ interface SecretsManagerService$ { options?: HttpHandlerOptions, ): Effect.Effect< UpdateSecretVersionStageCommandOutput, - | Cause.TimeoutException + | Cause.TimeoutError | SdkError | InternalServiceError | InvalidParameterError @@ -498,7 +498,7 @@ interface SecretsManagerService$ { options?: HttpHandlerOptions, ): Effect.Effect< ValidateResourcePolicyCommandOutput, - | Cause.TimeoutException + | Cause.TimeoutError | SdkError | InternalServiceError | InvalidParameterError @@ -529,10 +529,10 @@ export const makeSecretsManagerService = Effect.gen(function*() { * @since 1.0.0 * @category models */ -export class SecretsManagerService extends Effect.Tag("@effect-aws/client-secrets-manager/SecretsManagerService")< +export class SecretsManagerService extends ServiceMap.Service< SecretsManagerService, SecretsManagerService$ ->() { +>()("@effect-aws/client-secrets-manager/SecretsManagerService") { static readonly defaultLayer = Layer.effect(this, makeSecretsManagerService).pipe(Layer.provide(Instance.layer)); static readonly layer = (config: SecretsManagerService.Config) => Layer.effect(this, makeSecretsManagerService).pipe( diff --git a/packages/client-secrets-manager/src/SecretsManagerServiceConfig.ts b/packages/client-secrets-manager/src/SecretsManagerServiceConfig.ts index 1f3d2f26..3e31d86d 100644 --- a/packages/client-secrets-manager/src/SecretsManagerServiceConfig.ts +++ b/packages/client-secrets-manager/src/SecretsManagerServiceConfig.ts @@ -3,18 +3,17 @@ */ import type { SecretsManagerClientConfig } from "@aws-sdk/client-secrets-manager"; import { ServiceLogger } from "@effect-aws/commons"; -import { Effect, FiberRef, Layer } from "effect"; +import { Effect, Layer, ServiceMap } from "effect"; import { dual } from "effect/Function"; -import { globalValue } from "effect/GlobalValue"; import type { SecretsManagerService } from "./SecretsManagerService.js"; /** * @since 1.0.0 * @category secrets-manager service config */ -const currentSecretsManagerServiceConfig = globalValue( +const currentSecretsManagerServiceConfig = ServiceMap.Reference( "@effect-aws/client-secrets-manager/currentSecretsManagerServiceConfig", - () => FiberRef.unsafeMake({}), + { defaultValue: () => ({}) }, ); /** @@ -27,7 +26,7 @@ export const withSecretsManagerServiceConfig: { } = dual( 2, (effect: Effect.Effect, config: SecretsManagerService.Config): Effect.Effect => - Effect.locally(effect, currentSecretsManagerServiceConfig, config), + Effect.provideService(effect, currentSecretsManagerServiceConfig, config), ); /** @@ -35,14 +34,14 @@ export const withSecretsManagerServiceConfig: { * @category secrets-manager service config */ export const setSecretsManagerServiceConfig = (config: SecretsManagerService.Config) => - Layer.locallyScoped(currentSecretsManagerServiceConfig, config); + Layer.succeed(currentSecretsManagerServiceConfig, config); /** * @since 1.0.0 * @category adapters */ export const toSecretsManagerClientConfig: Effect.Effect = Effect.gen(function*() { - const { logger: serviceLogger, ...config } = yield* FiberRef.get(currentSecretsManagerServiceConfig); + const { logger: serviceLogger, ...config } = yield* currentSecretsManagerServiceConfig; const logger = serviceLogger === true ? yield* ServiceLogger.toClientLogger(ServiceLogger.defaultServiceLogger) diff --git a/packages/client-secrets-manager/test/SecretsManager.test.ts b/packages/client-secrets-manager/test/SecretsManager.test.ts index f33f8e95..25e68123 100644 --- a/packages/client-secrets-manager/test/SecretsManager.test.ts +++ b/packages/client-secrets-manager/test/SecretsManager.test.ts @@ -26,7 +26,7 @@ describe("SecretsManagerClientImpl", () => { const args: GetSecretValueCommandInput = { SecretId: "test" }; - const program = SecretsManager.getSecretValue(args); + const program = SecretsManager.use((svc) => svc.getSecretValue(args)); const result = await pipe( program, @@ -46,7 +46,7 @@ describe("SecretsManagerClientImpl", () => { const args: GetSecretValueCommandInput = { SecretId: "test" }; - const program = SecretsManager.getSecretValue(args); + const program = SecretsManager.use((svc) => svc.getSecretValue(args)); const result = await pipe( program, @@ -69,7 +69,7 @@ describe("SecretsManagerClientImpl", () => { const args: GetSecretValueCommandInput = { SecretId: "test" }; - const program = SecretsManager.getSecretValue(args); + const program = SecretsManager.use((svc) => svc.getSecretValue(args)); const result = await pipe( program, @@ -93,7 +93,7 @@ describe("SecretsManagerClientImpl", () => { const args: GetSecretValueCommandInput = { SecretId: "test" }; - const program = SecretsManager.getSecretValue(args); + const program = SecretsManager.use((svc) => svc.getSecretValue(args)); const result = await pipe( program, @@ -121,7 +121,7 @@ describe("SecretsManagerClientImpl", () => { const args: GetSecretValueCommandInput = { SecretId: "test" }; - const program = SecretsManager.getSecretValue(args); + const program = SecretsManager.use((svc) => svc.getSecretValue(args)); const result = await pipe( program, @@ -131,7 +131,7 @@ describe("SecretsManagerClientImpl", () => { expect(result).toEqual( Exit.fail( - SdkError({ + new SdkError({ ...new Error("test"), name: "SdkError", message: "test", @@ -156,7 +156,7 @@ describe("SecretsManagerClientImpl", () => { const args: GetSecretValueCommandInput = { SecretId: "test" }; - const program = SecretsManager.getSecretValue(args).pipe( + const program = SecretsManager.use((svc) => svc.getSecretValue(args)).pipe( Effect.catchTag("NotHandledException" as any, () => Effect.succeed(null)), ); @@ -166,9 +166,9 @@ describe("SecretsManagerClientImpl", () => { Effect.runPromiseExit, ); - expect(result).toEqual( + expect(result).toContainEqual( Exit.fail( - SdkError({ + new SdkError({ ...new Error("test"), name: "SdkError", message: "test", diff --git a/packages/client-ses/.projen/deps.json b/packages/client-ses/.projen/deps.json index 13b3ad93..93865e89 100644 --- a/packages/client-ses/.projen/deps.json +++ b/packages/client-ses/.projen/deps.json @@ -7,6 +7,7 @@ }, { "name": "effect", + "version": "4.0.0-beta.8", "type": "build" }, { @@ -16,7 +17,7 @@ }, { "name": "effect", - "version": ">=3.0.4 <4.0.0", + "version": ">=4.0.0 <5.0.0", "type": "peer" }, { diff --git a/packages/client-ses/README.md b/packages/client-ses/README.md index 9e66100b..6d3f5986 100644 --- a/packages/client-ses/README.md +++ b/packages/client-ses/README.md @@ -16,7 +16,7 @@ With default SESClient instance: ```typescript import { SES } from "@effect-aws/client-ses"; -const program = SES.sendEmail(args); +const program = SES.use((svc) => svc.sendEmail(args)); const result = pipe( program, @@ -30,7 +30,7 @@ With custom SESClient instance: ```typescript import { SES } from "@effect-aws/client-ses"; -const program = SES.sendEmail(args); +const program = SES.use((svc) => svc.sendEmail(args)); const result = await pipe( program, @@ -46,7 +46,7 @@ With custom SESClient configuration: ```typescript import { SES } from "@effect-aws/client-ses"; -const program = SES.sendEmail(args); +const program = SES.use((svc) => svc.sendEmail(args)); const result = await pipe( program, diff --git a/packages/client-ses/package.json b/packages/client-ses/package.json index de01000d..7f050f3c 100644 --- a/packages/client-ses/package.json +++ b/packages/client-ses/package.json @@ -26,11 +26,11 @@ }, "devDependencies": { "@types/node": "ts5.4", - "effect": "^3.16.4", + "effect": "4.0.0-beta.8", "typescript": "^5.4.2" }, "peerDependencies": { - "effect": ">=3.0.4 <4.0.0" + "effect": ">=4.0.0 <5.0.0" }, "dependencies": { "@aws-sdk/client-ses": "^3", diff --git a/packages/client-ses/src/SESClientInstance.ts b/packages/client-ses/src/SESClientInstance.ts index 46fde078..7cb16726 100644 --- a/packages/client-ses/src/SESClientInstance.ts +++ b/packages/client-ses/src/SESClientInstance.ts @@ -2,16 +2,16 @@ * @since 1.0.0 */ import { SESClient } from "@aws-sdk/client-ses"; -import { Context, Effect, Layer } from "effect"; +import { Effect, Layer, ServiceMap } from "effect"; import * as SESServiceConfig from "./SESServiceConfig.js"; /** * @since 1.0.0 * @category tags */ -export class SESClientInstance extends Context.Tag( +export class SESClientInstance extends ServiceMap.Service()( "@effect-aws/client-ses/SESClientInstance", -)() {} +) {} /** * @since 1.0.0 @@ -30,4 +30,4 @@ export const make = Effect.flatMap( * @since 1.0.0 * @category layers */ -export const layer = Layer.scoped(SESClientInstance, make); +export const layer = Layer.effect(SESClientInstance, make); diff --git a/packages/client-ses/src/SESService.ts b/packages/client-ses/src/SESService.ts index 6337cee9..e6c4255c 100644 --- a/packages/client-ses/src/SESService.ts +++ b/packages/client-ses/src/SESService.ts @@ -221,7 +221,7 @@ import { import type { HttpHandlerOptions, ServiceLogger } from "@effect-aws/commons"; import { Service } from "@effect-aws/commons"; import type { Cause } from "effect"; -import { Effect, Layer } from "effect"; +import { Effect, Layer, ServiceMap } from "effect"; import type { AccountSendingPausedError, AlreadyExistsError, @@ -348,7 +348,7 @@ interface SESService$ { options?: HttpHandlerOptions, ): Effect.Effect< CloneReceiptRuleSetCommandOutput, - Cause.TimeoutException | SdkError | AlreadyExistsError | LimitExceededError | RuleSetDoesNotExistError + Cause.TimeoutError | SdkError | AlreadyExistsError | LimitExceededError | RuleSetDoesNotExistError >; /** @@ -359,7 +359,7 @@ interface SESService$ { options?: HttpHandlerOptions, ): Effect.Effect< CreateConfigurationSetCommandOutput, - | Cause.TimeoutException + | Cause.TimeoutError | SdkError | ConfigurationSetAlreadyExistsError | InvalidConfigurationSetError @@ -374,7 +374,7 @@ interface SESService$ { options?: HttpHandlerOptions, ): Effect.Effect< CreateConfigurationSetEventDestinationCommandOutput, - | Cause.TimeoutException + | Cause.TimeoutError | SdkError | ConfigurationSetDoesNotExistError | EventDestinationAlreadyExistsError @@ -392,7 +392,7 @@ interface SESService$ { options?: HttpHandlerOptions, ): Effect.Effect< CreateConfigurationSetTrackingOptionsCommandOutput, - | Cause.TimeoutException + | Cause.TimeoutError | SdkError | ConfigurationSetDoesNotExistError | InvalidTrackingOptionsError @@ -407,7 +407,7 @@ interface SESService$ { options?: HttpHandlerOptions, ): Effect.Effect< CreateCustomVerificationEmailTemplateCommandOutput, - | Cause.TimeoutException + | Cause.TimeoutError | SdkError | CustomVerificationEmailInvalidContentError | CustomVerificationEmailTemplateAlreadyExistsError @@ -423,7 +423,7 @@ interface SESService$ { options?: HttpHandlerOptions, ): Effect.Effect< CreateReceiptFilterCommandOutput, - Cause.TimeoutException | SdkError | AlreadyExistsError | LimitExceededError + Cause.TimeoutError | SdkError | AlreadyExistsError | LimitExceededError >; /** @@ -434,7 +434,7 @@ interface SESService$ { options?: HttpHandlerOptions, ): Effect.Effect< CreateReceiptRuleCommandOutput, - | Cause.TimeoutException + | Cause.TimeoutError | SdkError | AlreadyExistsError | InvalidLambdaFunctionError @@ -453,7 +453,7 @@ interface SESService$ { options?: HttpHandlerOptions, ): Effect.Effect< CreateReceiptRuleSetCommandOutput, - Cause.TimeoutException | SdkError | AlreadyExistsError | LimitExceededError + Cause.TimeoutError | SdkError | AlreadyExistsError | LimitExceededError >; /** @@ -464,7 +464,7 @@ interface SESService$ { options?: HttpHandlerOptions, ): Effect.Effect< CreateTemplateCommandOutput, - Cause.TimeoutException | SdkError | AlreadyExistsError | InvalidTemplateError | LimitExceededError + Cause.TimeoutError | SdkError | AlreadyExistsError | InvalidTemplateError | LimitExceededError >; /** @@ -475,7 +475,7 @@ interface SESService$ { options?: HttpHandlerOptions, ): Effect.Effect< DeleteConfigurationSetCommandOutput, - Cause.TimeoutException | SdkError | ConfigurationSetDoesNotExistError + Cause.TimeoutError | SdkError | ConfigurationSetDoesNotExistError >; /** @@ -486,7 +486,7 @@ interface SESService$ { options?: HttpHandlerOptions, ): Effect.Effect< DeleteConfigurationSetEventDestinationCommandOutput, - Cause.TimeoutException | SdkError | ConfigurationSetDoesNotExistError | EventDestinationDoesNotExistError + Cause.TimeoutError | SdkError | ConfigurationSetDoesNotExistError | EventDestinationDoesNotExistError >; /** @@ -497,7 +497,7 @@ interface SESService$ { options?: HttpHandlerOptions, ): Effect.Effect< DeleteConfigurationSetTrackingOptionsCommandOutput, - Cause.TimeoutException | SdkError | ConfigurationSetDoesNotExistError | TrackingOptionsDoesNotExistError + Cause.TimeoutError | SdkError | ConfigurationSetDoesNotExistError | TrackingOptionsDoesNotExistError >; /** @@ -508,7 +508,7 @@ interface SESService$ { options?: HttpHandlerOptions, ): Effect.Effect< DeleteCustomVerificationEmailTemplateCommandOutput, - Cause.TimeoutException | SdkError + Cause.TimeoutError | SdkError >; /** @@ -519,7 +519,7 @@ interface SESService$ { options?: HttpHandlerOptions, ): Effect.Effect< DeleteIdentityCommandOutput, - Cause.TimeoutException | SdkError + Cause.TimeoutError | SdkError >; /** @@ -530,7 +530,7 @@ interface SESService$ { options?: HttpHandlerOptions, ): Effect.Effect< DeleteIdentityPolicyCommandOutput, - Cause.TimeoutException | SdkError + Cause.TimeoutError | SdkError >; /** @@ -541,7 +541,7 @@ interface SESService$ { options?: HttpHandlerOptions, ): Effect.Effect< DeleteReceiptFilterCommandOutput, - Cause.TimeoutException | SdkError + Cause.TimeoutError | SdkError >; /** @@ -552,7 +552,7 @@ interface SESService$ { options?: HttpHandlerOptions, ): Effect.Effect< DeleteReceiptRuleCommandOutput, - Cause.TimeoutException | SdkError | RuleSetDoesNotExistError + Cause.TimeoutError | SdkError | RuleSetDoesNotExistError >; /** @@ -563,7 +563,7 @@ interface SESService$ { options?: HttpHandlerOptions, ): Effect.Effect< DeleteReceiptRuleSetCommandOutput, - Cause.TimeoutException | SdkError | CannotDeleteError + Cause.TimeoutError | SdkError | CannotDeleteError >; /** @@ -574,7 +574,7 @@ interface SESService$ { options?: HttpHandlerOptions, ): Effect.Effect< DeleteTemplateCommandOutput, - Cause.TimeoutException | SdkError + Cause.TimeoutError | SdkError >; /** @@ -585,7 +585,7 @@ interface SESService$ { options?: HttpHandlerOptions, ): Effect.Effect< DeleteVerifiedEmailAddressCommandOutput, - Cause.TimeoutException | SdkError + Cause.TimeoutError | SdkError >; /** @@ -596,7 +596,7 @@ interface SESService$ { options?: HttpHandlerOptions, ): Effect.Effect< DescribeActiveReceiptRuleSetCommandOutput, - Cause.TimeoutException | SdkError + Cause.TimeoutError | SdkError >; /** @@ -607,7 +607,7 @@ interface SESService$ { options?: HttpHandlerOptions, ): Effect.Effect< DescribeConfigurationSetCommandOutput, - Cause.TimeoutException | SdkError | ConfigurationSetDoesNotExistError + Cause.TimeoutError | SdkError | ConfigurationSetDoesNotExistError >; /** @@ -618,7 +618,7 @@ interface SESService$ { options?: HttpHandlerOptions, ): Effect.Effect< DescribeReceiptRuleCommandOutput, - Cause.TimeoutException | SdkError | RuleDoesNotExistError | RuleSetDoesNotExistError + Cause.TimeoutError | SdkError | RuleDoesNotExistError | RuleSetDoesNotExistError >; /** @@ -629,7 +629,7 @@ interface SESService$ { options?: HttpHandlerOptions, ): Effect.Effect< DescribeReceiptRuleSetCommandOutput, - Cause.TimeoutException | SdkError | RuleSetDoesNotExistError + Cause.TimeoutError | SdkError | RuleSetDoesNotExistError >; /** @@ -640,7 +640,7 @@ interface SESService$ { options?: HttpHandlerOptions, ): Effect.Effect< GetAccountSendingEnabledCommandOutput, - Cause.TimeoutException | SdkError + Cause.TimeoutError | SdkError >; /** @@ -651,7 +651,7 @@ interface SESService$ { options?: HttpHandlerOptions, ): Effect.Effect< GetCustomVerificationEmailTemplateCommandOutput, - Cause.TimeoutException | SdkError | CustomVerificationEmailTemplateDoesNotExistError + Cause.TimeoutError | SdkError | CustomVerificationEmailTemplateDoesNotExistError >; /** @@ -662,7 +662,7 @@ interface SESService$ { options?: HttpHandlerOptions, ): Effect.Effect< GetIdentityDkimAttributesCommandOutput, - Cause.TimeoutException | SdkError + Cause.TimeoutError | SdkError >; /** @@ -673,7 +673,7 @@ interface SESService$ { options?: HttpHandlerOptions, ): Effect.Effect< GetIdentityMailFromDomainAttributesCommandOutput, - Cause.TimeoutException | SdkError + Cause.TimeoutError | SdkError >; /** @@ -684,7 +684,7 @@ interface SESService$ { options?: HttpHandlerOptions, ): Effect.Effect< GetIdentityNotificationAttributesCommandOutput, - Cause.TimeoutException | SdkError + Cause.TimeoutError | SdkError >; /** @@ -695,7 +695,7 @@ interface SESService$ { options?: HttpHandlerOptions, ): Effect.Effect< GetIdentityPoliciesCommandOutput, - Cause.TimeoutException | SdkError + Cause.TimeoutError | SdkError >; /** @@ -706,7 +706,7 @@ interface SESService$ { options?: HttpHandlerOptions, ): Effect.Effect< GetIdentityVerificationAttributesCommandOutput, - Cause.TimeoutException | SdkError + Cause.TimeoutError | SdkError >; /** @@ -717,7 +717,7 @@ interface SESService$ { options?: HttpHandlerOptions, ): Effect.Effect< GetSendQuotaCommandOutput, - Cause.TimeoutException | SdkError + Cause.TimeoutError | SdkError >; /** @@ -728,7 +728,7 @@ interface SESService$ { options?: HttpHandlerOptions, ): Effect.Effect< GetSendStatisticsCommandOutput, - Cause.TimeoutException | SdkError + Cause.TimeoutError | SdkError >; /** @@ -739,7 +739,7 @@ interface SESService$ { options?: HttpHandlerOptions, ): Effect.Effect< GetTemplateCommandOutput, - Cause.TimeoutException | SdkError | TemplateDoesNotExistError + Cause.TimeoutError | SdkError | TemplateDoesNotExistError >; /** @@ -750,7 +750,7 @@ interface SESService$ { options?: HttpHandlerOptions, ): Effect.Effect< ListConfigurationSetsCommandOutput, - Cause.TimeoutException | SdkError + Cause.TimeoutError | SdkError >; /** @@ -761,7 +761,7 @@ interface SESService$ { options?: HttpHandlerOptions, ): Effect.Effect< ListCustomVerificationEmailTemplatesCommandOutput, - Cause.TimeoutException | SdkError + Cause.TimeoutError | SdkError >; /** @@ -772,7 +772,7 @@ interface SESService$ { options?: HttpHandlerOptions, ): Effect.Effect< ListIdentitiesCommandOutput, - Cause.TimeoutException | SdkError + Cause.TimeoutError | SdkError >; /** @@ -783,7 +783,7 @@ interface SESService$ { options?: HttpHandlerOptions, ): Effect.Effect< ListIdentityPoliciesCommandOutput, - Cause.TimeoutException | SdkError + Cause.TimeoutError | SdkError >; /** @@ -794,7 +794,7 @@ interface SESService$ { options?: HttpHandlerOptions, ): Effect.Effect< ListReceiptFiltersCommandOutput, - Cause.TimeoutException | SdkError + Cause.TimeoutError | SdkError >; /** @@ -805,7 +805,7 @@ interface SESService$ { options?: HttpHandlerOptions, ): Effect.Effect< ListReceiptRuleSetsCommandOutput, - Cause.TimeoutException | SdkError + Cause.TimeoutError | SdkError >; /** @@ -816,7 +816,7 @@ interface SESService$ { options?: HttpHandlerOptions, ): Effect.Effect< ListTemplatesCommandOutput, - Cause.TimeoutException | SdkError + Cause.TimeoutError | SdkError >; /** @@ -827,7 +827,7 @@ interface SESService$ { options?: HttpHandlerOptions, ): Effect.Effect< ListVerifiedEmailAddressesCommandOutput, - Cause.TimeoutException | SdkError + Cause.TimeoutError | SdkError >; /** @@ -838,7 +838,7 @@ interface SESService$ { options?: HttpHandlerOptions, ): Effect.Effect< PutConfigurationSetDeliveryOptionsCommandOutput, - Cause.TimeoutException | SdkError | ConfigurationSetDoesNotExistError | InvalidDeliveryOptionsError + Cause.TimeoutError | SdkError | ConfigurationSetDoesNotExistError | InvalidDeliveryOptionsError >; /** @@ -849,7 +849,7 @@ interface SESService$ { options?: HttpHandlerOptions, ): Effect.Effect< PutIdentityPolicyCommandOutput, - Cause.TimeoutException | SdkError | InvalidPolicyError + Cause.TimeoutError | SdkError | InvalidPolicyError >; /** @@ -860,7 +860,7 @@ interface SESService$ { options?: HttpHandlerOptions, ): Effect.Effect< ReorderReceiptRuleSetCommandOutput, - Cause.TimeoutException | SdkError | RuleDoesNotExistError | RuleSetDoesNotExistError + Cause.TimeoutError | SdkError | RuleDoesNotExistError | RuleSetDoesNotExistError >; /** @@ -871,7 +871,7 @@ interface SESService$ { options?: HttpHandlerOptions, ): Effect.Effect< SendBounceCommandOutput, - Cause.TimeoutException | SdkError | MessageRejectedError + Cause.TimeoutError | SdkError | MessageRejectedError >; /** @@ -882,7 +882,7 @@ interface SESService$ { options?: HttpHandlerOptions, ): Effect.Effect< SendBulkTemplatedEmailCommandOutput, - | Cause.TimeoutException + | Cause.TimeoutError | SdkError | AccountSendingPausedError | ConfigurationSetDoesNotExistError @@ -900,7 +900,7 @@ interface SESService$ { options?: HttpHandlerOptions, ): Effect.Effect< SendCustomVerificationEmailCommandOutput, - | Cause.TimeoutException + | Cause.TimeoutError | SdkError | ConfigurationSetDoesNotExistError | CustomVerificationEmailTemplateDoesNotExistError @@ -917,7 +917,7 @@ interface SESService$ { options?: HttpHandlerOptions, ): Effect.Effect< SendEmailCommandOutput, - | Cause.TimeoutException + | Cause.TimeoutError | SdkError | AccountSendingPausedError | ConfigurationSetDoesNotExistError @@ -934,7 +934,7 @@ interface SESService$ { options?: HttpHandlerOptions, ): Effect.Effect< SendRawEmailCommandOutput, - | Cause.TimeoutException + | Cause.TimeoutError | SdkError | AccountSendingPausedError | ConfigurationSetDoesNotExistError @@ -951,7 +951,7 @@ interface SESService$ { options?: HttpHandlerOptions, ): Effect.Effect< SendTemplatedEmailCommandOutput, - | Cause.TimeoutException + | Cause.TimeoutError | SdkError | AccountSendingPausedError | ConfigurationSetDoesNotExistError @@ -969,7 +969,7 @@ interface SESService$ { options?: HttpHandlerOptions, ): Effect.Effect< SetActiveReceiptRuleSetCommandOutput, - Cause.TimeoutException | SdkError | RuleSetDoesNotExistError + Cause.TimeoutError | SdkError | RuleSetDoesNotExistError >; /** @@ -980,7 +980,7 @@ interface SESService$ { options?: HttpHandlerOptions, ): Effect.Effect< SetIdentityDkimEnabledCommandOutput, - Cause.TimeoutException | SdkError + Cause.TimeoutError | SdkError >; /** @@ -991,7 +991,7 @@ interface SESService$ { options?: HttpHandlerOptions, ): Effect.Effect< SetIdentityFeedbackForwardingEnabledCommandOutput, - Cause.TimeoutException | SdkError + Cause.TimeoutError | SdkError >; /** @@ -1002,7 +1002,7 @@ interface SESService$ { options?: HttpHandlerOptions, ): Effect.Effect< SetIdentityHeadersInNotificationsEnabledCommandOutput, - Cause.TimeoutException | SdkError + Cause.TimeoutError | SdkError >; /** @@ -1013,7 +1013,7 @@ interface SESService$ { options?: HttpHandlerOptions, ): Effect.Effect< SetIdentityMailFromDomainCommandOutput, - Cause.TimeoutException | SdkError + Cause.TimeoutError | SdkError >; /** @@ -1024,7 +1024,7 @@ interface SESService$ { options?: HttpHandlerOptions, ): Effect.Effect< SetIdentityNotificationTopicCommandOutput, - Cause.TimeoutException | SdkError + Cause.TimeoutError | SdkError >; /** @@ -1035,7 +1035,7 @@ interface SESService$ { options?: HttpHandlerOptions, ): Effect.Effect< SetReceiptRulePositionCommandOutput, - Cause.TimeoutException | SdkError | RuleDoesNotExistError | RuleSetDoesNotExistError + Cause.TimeoutError | SdkError | RuleDoesNotExistError | RuleSetDoesNotExistError >; /** @@ -1046,7 +1046,7 @@ interface SESService$ { options?: HttpHandlerOptions, ): Effect.Effect< TestRenderTemplateCommandOutput, - | Cause.TimeoutException + | Cause.TimeoutError | SdkError | InvalidRenderingParameterError | MissingRenderingAttributeError @@ -1061,7 +1061,7 @@ interface SESService$ { options?: HttpHandlerOptions, ): Effect.Effect< UpdateAccountSendingEnabledCommandOutput, - Cause.TimeoutException | SdkError + Cause.TimeoutError | SdkError >; /** @@ -1072,7 +1072,7 @@ interface SESService$ { options?: HttpHandlerOptions, ): Effect.Effect< UpdateConfigurationSetEventDestinationCommandOutput, - | Cause.TimeoutException + | Cause.TimeoutError | SdkError | ConfigurationSetDoesNotExistError | EventDestinationDoesNotExistError @@ -1089,7 +1089,7 @@ interface SESService$ { options?: HttpHandlerOptions, ): Effect.Effect< UpdateConfigurationSetReputationMetricsEnabledCommandOutput, - Cause.TimeoutException | SdkError | ConfigurationSetDoesNotExistError + Cause.TimeoutError | SdkError | ConfigurationSetDoesNotExistError >; /** @@ -1100,7 +1100,7 @@ interface SESService$ { options?: HttpHandlerOptions, ): Effect.Effect< UpdateConfigurationSetSendingEnabledCommandOutput, - Cause.TimeoutException | SdkError | ConfigurationSetDoesNotExistError + Cause.TimeoutError | SdkError | ConfigurationSetDoesNotExistError >; /** @@ -1111,7 +1111,7 @@ interface SESService$ { options?: HttpHandlerOptions, ): Effect.Effect< UpdateConfigurationSetTrackingOptionsCommandOutput, - | Cause.TimeoutException + | Cause.TimeoutError | SdkError | ConfigurationSetDoesNotExistError | InvalidTrackingOptionsError @@ -1126,7 +1126,7 @@ interface SESService$ { options?: HttpHandlerOptions, ): Effect.Effect< UpdateCustomVerificationEmailTemplateCommandOutput, - | Cause.TimeoutException + | Cause.TimeoutError | SdkError | CustomVerificationEmailInvalidContentError | CustomVerificationEmailTemplateDoesNotExistError @@ -1141,7 +1141,7 @@ interface SESService$ { options?: HttpHandlerOptions, ): Effect.Effect< UpdateReceiptRuleCommandOutput, - | Cause.TimeoutException + | Cause.TimeoutError | SdkError | InvalidLambdaFunctionError | InvalidS3ConfigurationError @@ -1159,7 +1159,7 @@ interface SESService$ { options?: HttpHandlerOptions, ): Effect.Effect< UpdateTemplateCommandOutput, - Cause.TimeoutException | SdkError | InvalidTemplateError | TemplateDoesNotExistError + Cause.TimeoutError | SdkError | InvalidTemplateError | TemplateDoesNotExistError >; /** @@ -1170,7 +1170,7 @@ interface SESService$ { options?: HttpHandlerOptions, ): Effect.Effect< VerifyDomainDkimCommandOutput, - Cause.TimeoutException | SdkError + Cause.TimeoutError | SdkError >; /** @@ -1181,7 +1181,7 @@ interface SESService$ { options?: HttpHandlerOptions, ): Effect.Effect< VerifyDomainIdentityCommandOutput, - Cause.TimeoutException | SdkError + Cause.TimeoutError | SdkError >; /** @@ -1192,7 +1192,7 @@ interface SESService$ { options?: HttpHandlerOptions, ): Effect.Effect< VerifyEmailAddressCommandOutput, - Cause.TimeoutException | SdkError + Cause.TimeoutError | SdkError >; /** @@ -1203,7 +1203,7 @@ interface SESService$ { options?: HttpHandlerOptions, ): Effect.Effect< VerifyEmailIdentityCommandOutput, - Cause.TimeoutException | SdkError + Cause.TimeoutError | SdkError >; } @@ -1228,10 +1228,10 @@ export const makeSESService = Effect.gen(function*() { * @since 1.0.0 * @category models */ -export class SESService extends Effect.Tag("@effect-aws/client-ses/SESService")< +export class SESService extends ServiceMap.Service< SESService, SESService$ ->() { +>()("@effect-aws/client-ses/SESService") { static readonly defaultLayer = Layer.effect(this, makeSESService).pipe(Layer.provide(Instance.layer)); static readonly layer = (config: SESService.Config) => Layer.effect(this, makeSESService).pipe( diff --git a/packages/client-ses/src/SESServiceConfig.ts b/packages/client-ses/src/SESServiceConfig.ts index 80190678..f222d406 100644 --- a/packages/client-ses/src/SESServiceConfig.ts +++ b/packages/client-ses/src/SESServiceConfig.ts @@ -3,18 +3,17 @@ */ import type { SESClientConfig } from "@aws-sdk/client-ses"; import { ServiceLogger } from "@effect-aws/commons"; -import { Effect, FiberRef, Layer } from "effect"; +import { Effect, Layer, ServiceMap } from "effect"; import { dual } from "effect/Function"; -import { globalValue } from "effect/GlobalValue"; import type { SESService } from "./SESService.js"; /** * @since 1.0.0 * @category ses service config */ -const currentSESServiceConfig = globalValue( +const currentSESServiceConfig = ServiceMap.Reference( "@effect-aws/client-ses/currentSESServiceConfig", - () => FiberRef.unsafeMake({}), + { defaultValue: () => ({}) }, ); /** @@ -27,21 +26,21 @@ export const withSESServiceConfig: { } = dual( 2, (effect: Effect.Effect, config: SESService.Config): Effect.Effect => - Effect.locally(effect, currentSESServiceConfig, config), + Effect.provideService(effect, currentSESServiceConfig, config), ); /** * @since 1.0.0 * @category ses service config */ -export const setSESServiceConfig = (config: SESService.Config) => Layer.locallyScoped(currentSESServiceConfig, config); +export const setSESServiceConfig = (config: SESService.Config) => Layer.succeed(currentSESServiceConfig, config); /** * @since 1.0.0 * @category adapters */ export const toSESClientConfig: Effect.Effect = Effect.gen(function*() { - const { logger: serviceLogger, ...config } = yield* FiberRef.get(currentSESServiceConfig); + const { logger: serviceLogger, ...config } = yield* currentSESServiceConfig; const logger = serviceLogger === true ? yield* ServiceLogger.toClientLogger(ServiceLogger.defaultServiceLogger) diff --git a/packages/client-ses/test/SES.test.ts b/packages/client-ses/test/SES.test.ts index 986e277c..da1a5c8a 100644 --- a/packages/client-ses/test/SES.test.ts +++ b/packages/client-ses/test/SES.test.ts @@ -21,7 +21,7 @@ describe("SESClientImpl", () => { const args = {} as unknown as SendEmailCommandInput; - const program = SES.sendEmail(args); + const program = SES.use((svc) => svc.sendEmail(args)); const result = await pipe( program, @@ -41,7 +41,7 @@ describe("SESClientImpl", () => { const args = {} as unknown as SendEmailCommandInput; - const program = SES.sendEmail(args); + const program = SES.use((svc) => svc.sendEmail(args)); const result = await pipe( program, @@ -64,7 +64,7 @@ describe("SESClientImpl", () => { const args = {} as unknown as SendEmailCommandInput; - const program = SES.sendEmail(args); + const program = SES.use((svc) => svc.sendEmail(args)); const result = await pipe( program, @@ -88,7 +88,7 @@ describe("SESClientImpl", () => { const args = {} as unknown as SendEmailCommandInput; - const program = SES.sendEmail(args); + const program = SES.use((svc) => svc.sendEmail(args)); const result = await pipe( program, @@ -116,7 +116,7 @@ describe("SESClientImpl", () => { const args = {} as unknown as SendEmailCommandInput; - const program = SES.sendEmail(args); + const program = SES.use((svc) => svc.sendEmail(args)); const result = await pipe( program, @@ -126,7 +126,7 @@ describe("SESClientImpl", () => { expect(result).toEqual( Exit.fail( - SdkError({ + new SdkError({ ...new Error("test"), name: "SdkError", message: "test", @@ -151,7 +151,7 @@ describe("SESClientImpl", () => { const args = {} as unknown as SendEmailCommandInput; - const program = SES.sendEmail(args).pipe( + const program = SES.use((svc) => svc.sendEmail(args)).pipe( Effect.catchTag("NotHandledException" as any, () => Effect.succeed(null)), ); @@ -161,9 +161,9 @@ describe("SESClientImpl", () => { Effect.runPromiseExit, ); - expect(result).toEqual( + expect(result).toContainEqual( Exit.fail( - SdkError({ + new SdkError({ ...new Error("test"), name: "SdkError", message: "test", diff --git a/packages/client-sfn/.projen/deps.json b/packages/client-sfn/.projen/deps.json index e91de22f..f0937eff 100644 --- a/packages/client-sfn/.projen/deps.json +++ b/packages/client-sfn/.projen/deps.json @@ -7,6 +7,7 @@ }, { "name": "effect", + "version": "4.0.0-beta.8", "type": "build" }, { @@ -16,7 +17,7 @@ }, { "name": "effect", - "version": ">=3.0.4 <4.0.0", + "version": ">=4.0.0 <5.0.0", "type": "peer" }, { diff --git a/packages/client-sfn/README.md b/packages/client-sfn/README.md index 2a2dd686..399377a7 100644 --- a/packages/client-sfn/README.md +++ b/packages/client-sfn/README.md @@ -16,7 +16,7 @@ With default SFNClient instance: ```typescript import { SFN } from "@effect-aws/client-sfn"; -const program = SFN.startExecution(args); +const program = SFN.use((svc) => svc.startExecution(args)); const result = pipe( program, @@ -30,7 +30,7 @@ With custom SFNClient instance: ```typescript import { SFN } from "@effect-aws/client-sfn"; -const program = SFN.startExecution(args); +const program = SFN.use((svc) => svc.startExecution(args)); const result = await pipe( program, @@ -46,7 +46,7 @@ With custom SFNClient configuration: ```typescript import { SFN } from "@effect-aws/client-sfn"; -const program = SFN.startExecution(args); +const program = SFN.use((svc) => svc.startExecution(args)); const result = await pipe( program, diff --git a/packages/client-sfn/package.json b/packages/client-sfn/package.json index e5890f8a..6a3eaa46 100644 --- a/packages/client-sfn/package.json +++ b/packages/client-sfn/package.json @@ -26,11 +26,11 @@ }, "devDependencies": { "@types/node": "ts5.4", - "effect": "^3.16.4", + "effect": "4.0.0-beta.8", "typescript": "^5.4.2" }, "peerDependencies": { - "effect": ">=3.0.4 <4.0.0" + "effect": ">=4.0.0 <5.0.0" }, "dependencies": { "@aws-sdk/client-sfn": "^3", diff --git a/packages/client-sfn/src/SFNClientInstance.ts b/packages/client-sfn/src/SFNClientInstance.ts index 2dcd86b9..51cb7ee6 100644 --- a/packages/client-sfn/src/SFNClientInstance.ts +++ b/packages/client-sfn/src/SFNClientInstance.ts @@ -2,16 +2,16 @@ * @since 1.0.0 */ import { SFNClient } from "@aws-sdk/client-sfn"; -import { Context, Effect, Layer } from "effect"; +import { Effect, Layer, ServiceMap } from "effect"; import * as SFNServiceConfig from "./SFNServiceConfig.js"; /** * @since 1.0.0 * @category tags */ -export class SFNClientInstance extends Context.Tag( +export class SFNClientInstance extends ServiceMap.Service()( "@effect-aws/client-sfn/SFNClientInstance", -)() {} +) {} /** * @since 1.0.0 @@ -30,4 +30,4 @@ export const make = Effect.flatMap( * @since 1.0.0 * @category layers */ -export const layer = Layer.scoped(SFNClientInstance, make); +export const layer = Layer.effect(SFNClientInstance, make); diff --git a/packages/client-sfn/src/SFNService.ts b/packages/client-sfn/src/SFNService.ts index d3b9e9ea..b01791be 100644 --- a/packages/client-sfn/src/SFNService.ts +++ b/packages/client-sfn/src/SFNService.ts @@ -119,7 +119,7 @@ import { import type { HttpHandlerOptions, ServiceLogger } from "@effect-aws/commons"; import { Service } from "@effect-aws/commons"; import type { Cause } from "effect"; -import { Effect, Layer } from "effect"; +import { Effect, Layer, ServiceMap } from "effect"; import type { ActivityAlreadyExistsError, ActivityDoesNotExistError, @@ -211,7 +211,7 @@ interface SFNService$ { options?: HttpHandlerOptions, ): Effect.Effect< CreateActivityCommandOutput, - | Cause.TimeoutException + | Cause.TimeoutError | SdkError | ActivityAlreadyExistsError | ActivityLimitExceededError @@ -230,7 +230,7 @@ interface SFNService$ { options?: HttpHandlerOptions, ): Effect.Effect< CreateStateMachineCommandOutput, - | Cause.TimeoutException + | Cause.TimeoutError | SdkError | ConflictError | InvalidArnError @@ -257,7 +257,7 @@ interface SFNService$ { options?: HttpHandlerOptions, ): Effect.Effect< CreateStateMachineAliasCommandOutput, - | Cause.TimeoutException + | Cause.TimeoutError | SdkError | ConflictError | InvalidArnError @@ -276,7 +276,7 @@ interface SFNService$ { options?: HttpHandlerOptions, ): Effect.Effect< DeleteActivityCommandOutput, - Cause.TimeoutException | SdkError | InvalidArnError + Cause.TimeoutError | SdkError | InvalidArnError >; /** @@ -287,7 +287,7 @@ interface SFNService$ { options?: HttpHandlerOptions, ): Effect.Effect< DeleteStateMachineCommandOutput, - Cause.TimeoutException | SdkError | InvalidArnError | ValidationError + Cause.TimeoutError | SdkError | InvalidArnError | ValidationError >; /** @@ -298,7 +298,7 @@ interface SFNService$ { options?: HttpHandlerOptions, ): Effect.Effect< DeleteStateMachineAliasCommandOutput, - Cause.TimeoutException | SdkError | ConflictError | InvalidArnError | ResourceNotFoundError | ValidationError + Cause.TimeoutError | SdkError | ConflictError | InvalidArnError | ResourceNotFoundError | ValidationError >; /** @@ -309,7 +309,7 @@ interface SFNService$ { options?: HttpHandlerOptions, ): Effect.Effect< DeleteStateMachineVersionCommandOutput, - Cause.TimeoutException | SdkError | ConflictError | InvalidArnError | ValidationError + Cause.TimeoutError | SdkError | ConflictError | InvalidArnError | ValidationError >; /** @@ -320,7 +320,7 @@ interface SFNService$ { options?: HttpHandlerOptions, ): Effect.Effect< DescribeActivityCommandOutput, - Cause.TimeoutException | SdkError | ActivityDoesNotExistError | InvalidArnError + Cause.TimeoutError | SdkError | ActivityDoesNotExistError | InvalidArnError >; /** @@ -331,7 +331,7 @@ interface SFNService$ { options?: HttpHandlerOptions, ): Effect.Effect< DescribeExecutionCommandOutput, - | Cause.TimeoutException + | Cause.TimeoutError | SdkError | ExecutionDoesNotExistError | InvalidArnError @@ -348,7 +348,7 @@ interface SFNService$ { options?: HttpHandlerOptions, ): Effect.Effect< DescribeMapRunCommandOutput, - Cause.TimeoutException | SdkError | InvalidArnError | ResourceNotFoundError + Cause.TimeoutError | SdkError | InvalidArnError | ResourceNotFoundError >; /** @@ -359,7 +359,7 @@ interface SFNService$ { options?: HttpHandlerOptions, ): Effect.Effect< DescribeStateMachineCommandOutput, - | Cause.TimeoutException + | Cause.TimeoutError | SdkError | InvalidArnError | KmsAccessDeniedError @@ -376,7 +376,7 @@ interface SFNService$ { options?: HttpHandlerOptions, ): Effect.Effect< DescribeStateMachineAliasCommandOutput, - Cause.TimeoutException | SdkError | InvalidArnError | ResourceNotFoundError | ValidationError + Cause.TimeoutError | SdkError | InvalidArnError | ResourceNotFoundError | ValidationError >; /** @@ -387,7 +387,7 @@ interface SFNService$ { options?: HttpHandlerOptions, ): Effect.Effect< DescribeStateMachineForExecutionCommandOutput, - | Cause.TimeoutException + | Cause.TimeoutError | SdkError | ExecutionDoesNotExistError | InvalidArnError @@ -404,7 +404,7 @@ interface SFNService$ { options?: HttpHandlerOptions, ): Effect.Effect< GetActivityTaskCommandOutput, - | Cause.TimeoutException + | Cause.TimeoutError | SdkError | ActivityDoesNotExistError | ActivityWorkerLimitExceededError @@ -422,7 +422,7 @@ interface SFNService$ { options?: HttpHandlerOptions, ): Effect.Effect< GetExecutionHistoryCommandOutput, - | Cause.TimeoutException + | Cause.TimeoutError | SdkError | ExecutionDoesNotExistError | InvalidArnError @@ -440,7 +440,7 @@ interface SFNService$ { options?: HttpHandlerOptions, ): Effect.Effect< ListActivitiesCommandOutput, - Cause.TimeoutException | SdkError | InvalidTokenError + Cause.TimeoutError | SdkError | InvalidTokenError >; /** @@ -451,7 +451,7 @@ interface SFNService$ { options?: HttpHandlerOptions, ): Effect.Effect< ListExecutionsCommandOutput, - | Cause.TimeoutException + | Cause.TimeoutError | SdkError | InvalidArnError | InvalidTokenError @@ -469,7 +469,7 @@ interface SFNService$ { options?: HttpHandlerOptions, ): Effect.Effect< ListMapRunsCommandOutput, - Cause.TimeoutException | SdkError | ExecutionDoesNotExistError | InvalidArnError | InvalidTokenError + Cause.TimeoutError | SdkError | ExecutionDoesNotExistError | InvalidArnError | InvalidTokenError >; /** @@ -480,7 +480,7 @@ interface SFNService$ { options?: HttpHandlerOptions, ): Effect.Effect< ListStateMachineAliasesCommandOutput, - | Cause.TimeoutException + | Cause.TimeoutError | SdkError | InvalidArnError | InvalidTokenError @@ -497,7 +497,7 @@ interface SFNService$ { options?: HttpHandlerOptions, ): Effect.Effect< ListStateMachineVersionsCommandOutput, - Cause.TimeoutException | SdkError | InvalidArnError | InvalidTokenError | ValidationError + Cause.TimeoutError | SdkError | InvalidArnError | InvalidTokenError | ValidationError >; /** @@ -508,7 +508,7 @@ interface SFNService$ { options?: HttpHandlerOptions, ): Effect.Effect< ListStateMachinesCommandOutput, - Cause.TimeoutException | SdkError | InvalidTokenError + Cause.TimeoutError | SdkError | InvalidTokenError >; /** @@ -519,7 +519,7 @@ interface SFNService$ { options?: HttpHandlerOptions, ): Effect.Effect< ListTagsForResourceCommandOutput, - Cause.TimeoutException | SdkError | InvalidArnError | ResourceNotFoundError + Cause.TimeoutError | SdkError | InvalidArnError | ResourceNotFoundError >; /** @@ -530,7 +530,7 @@ interface SFNService$ { options?: HttpHandlerOptions, ): Effect.Effect< PublishStateMachineVersionCommandOutput, - | Cause.TimeoutException + | Cause.TimeoutError | SdkError | ConflictError | InvalidArnError @@ -548,7 +548,7 @@ interface SFNService$ { options?: HttpHandlerOptions, ): Effect.Effect< RedriveExecutionCommandOutput, - | Cause.TimeoutException + | Cause.TimeoutError | SdkError | ExecutionDoesNotExistError | ExecutionLimitExceededError @@ -565,7 +565,7 @@ interface SFNService$ { options?: HttpHandlerOptions, ): Effect.Effect< SendTaskFailureCommandOutput, - | Cause.TimeoutException + | Cause.TimeoutError | SdkError | InvalidTokenError | KmsAccessDeniedError @@ -583,7 +583,7 @@ interface SFNService$ { options?: HttpHandlerOptions, ): Effect.Effect< SendTaskHeartbeatCommandOutput, - Cause.TimeoutException | SdkError | InvalidTokenError | TaskDoesNotExistError | TaskTimedOutError + Cause.TimeoutError | SdkError | InvalidTokenError | TaskDoesNotExistError | TaskTimedOutError >; /** @@ -594,7 +594,7 @@ interface SFNService$ { options?: HttpHandlerOptions, ): Effect.Effect< SendTaskSuccessCommandOutput, - | Cause.TimeoutException + | Cause.TimeoutError | SdkError | InvalidOutputError | InvalidTokenError @@ -613,7 +613,7 @@ interface SFNService$ { options?: HttpHandlerOptions, ): Effect.Effect< StartExecutionCommandOutput, - | Cause.TimeoutException + | Cause.TimeoutError | SdkError | ExecutionAlreadyExistsError | ExecutionLimitExceededError @@ -636,7 +636,7 @@ interface SFNService$ { options?: HttpHandlerOptions, ): Effect.Effect< StartSyncExecutionCommandOutput, - | Cause.TimeoutException + | Cause.TimeoutError | SdkError | InvalidArnError | InvalidExecutionInputError @@ -657,7 +657,7 @@ interface SFNService$ { options?: HttpHandlerOptions, ): Effect.Effect< StopExecutionCommandOutput, - | Cause.TimeoutException + | Cause.TimeoutError | SdkError | ExecutionDoesNotExistError | InvalidArnError @@ -675,7 +675,7 @@ interface SFNService$ { options?: HttpHandlerOptions, ): Effect.Effect< TagResourceCommandOutput, - Cause.TimeoutException | SdkError | InvalidArnError | ResourceNotFoundError | TooManyTagsError + Cause.TimeoutError | SdkError | InvalidArnError | ResourceNotFoundError | TooManyTagsError >; /** @@ -686,7 +686,7 @@ interface SFNService$ { options?: HttpHandlerOptions, ): Effect.Effect< TestStateCommandOutput, - | Cause.TimeoutException + | Cause.TimeoutError | SdkError | InvalidArnError | InvalidDefinitionError @@ -702,7 +702,7 @@ interface SFNService$ { options?: HttpHandlerOptions, ): Effect.Effect< UntagResourceCommandOutput, - Cause.TimeoutException | SdkError | InvalidArnError | ResourceNotFoundError + Cause.TimeoutError | SdkError | InvalidArnError | ResourceNotFoundError >; /** @@ -713,7 +713,7 @@ interface SFNService$ { options?: HttpHandlerOptions, ): Effect.Effect< UpdateMapRunCommandOutput, - Cause.TimeoutException | SdkError | InvalidArnError | ResourceNotFoundError | ValidationError + Cause.TimeoutError | SdkError | InvalidArnError | ResourceNotFoundError | ValidationError >; /** @@ -724,7 +724,7 @@ interface SFNService$ { options?: HttpHandlerOptions, ): Effect.Effect< UpdateStateMachineCommandOutput, - | Cause.TimeoutException + | Cause.TimeoutError | SdkError | ConflictError | InvalidArnError @@ -749,7 +749,7 @@ interface SFNService$ { options?: HttpHandlerOptions, ): Effect.Effect< UpdateStateMachineAliasCommandOutput, - | Cause.TimeoutException + | Cause.TimeoutError | SdkError | ConflictError | InvalidArnError @@ -766,7 +766,7 @@ interface SFNService$ { options?: HttpHandlerOptions, ): Effect.Effect< ValidateStateMachineDefinitionCommandOutput, - Cause.TimeoutException | SdkError | ValidationError + Cause.TimeoutError | SdkError | ValidationError >; } @@ -791,10 +791,10 @@ export const makeSFNService = Effect.gen(function*() { * @since 1.0.0 * @category models */ -export class SFNService extends Effect.Tag("@effect-aws/client-sfn/SFNService")< +export class SFNService extends ServiceMap.Service< SFNService, SFNService$ ->() { +>()("@effect-aws/client-sfn/SFNService") { static readonly defaultLayer = Layer.effect(this, makeSFNService).pipe(Layer.provide(Instance.layer)); static readonly layer = (config: SFNService.Config) => Layer.effect(this, makeSFNService).pipe( diff --git a/packages/client-sfn/src/SFNServiceConfig.ts b/packages/client-sfn/src/SFNServiceConfig.ts index 0f81290a..519bdbf1 100644 --- a/packages/client-sfn/src/SFNServiceConfig.ts +++ b/packages/client-sfn/src/SFNServiceConfig.ts @@ -3,18 +3,17 @@ */ import type { SFNClientConfig } from "@aws-sdk/client-sfn"; import { ServiceLogger } from "@effect-aws/commons"; -import { Effect, FiberRef, Layer } from "effect"; +import { Effect, Layer, ServiceMap } from "effect"; import { dual } from "effect/Function"; -import { globalValue } from "effect/GlobalValue"; import type { SFNService } from "./SFNService.js"; /** * @since 1.0.0 * @category sfn service config */ -const currentSFNServiceConfig = globalValue( +const currentSFNServiceConfig = ServiceMap.Reference( "@effect-aws/client-sfn/currentSFNServiceConfig", - () => FiberRef.unsafeMake({}), + { defaultValue: () => ({}) }, ); /** @@ -27,21 +26,21 @@ export const withSFNServiceConfig: { } = dual( 2, (effect: Effect.Effect, config: SFNService.Config): Effect.Effect => - Effect.locally(effect, currentSFNServiceConfig, config), + Effect.provideService(effect, currentSFNServiceConfig, config), ); /** * @since 1.0.0 * @category sfn service config */ -export const setSFNServiceConfig = (config: SFNService.Config) => Layer.locallyScoped(currentSFNServiceConfig, config); +export const setSFNServiceConfig = (config: SFNService.Config) => Layer.succeed(currentSFNServiceConfig, config); /** * @since 1.0.0 * @category adapters */ export const toSFNClientConfig: Effect.Effect = Effect.gen(function*() { - const { logger: serviceLogger, ...config } = yield* FiberRef.get(currentSFNServiceConfig); + const { logger: serviceLogger, ...config } = yield* currentSFNServiceConfig; const logger = serviceLogger === true ? yield* ServiceLogger.toClientLogger(ServiceLogger.defaultServiceLogger) diff --git a/packages/client-sfn/test/SFN.test.ts b/packages/client-sfn/test/SFN.test.ts index 7a72e40a..636d57e5 100644 --- a/packages/client-sfn/test/SFN.test.ts +++ b/packages/client-sfn/test/SFN.test.ts @@ -26,7 +26,7 @@ describe("SFNClientImpl", () => { const args: StartExecutionCommandInput = { stateMachineArn: "test", input: "test" }; - const program = SFN.startExecution(args); + const program = SFN.use((svc) => svc.startExecution(args)); const result = await pipe( program, @@ -46,7 +46,7 @@ describe("SFNClientImpl", () => { const args: StartExecutionCommandInput = { stateMachineArn: "test", input: "test" }; - const program = SFN.startExecution(args); + const program = SFN.use((svc) => svc.startExecution(args)); const result = await pipe( program, @@ -69,7 +69,7 @@ describe("SFNClientImpl", () => { const args: StartExecutionCommandInput = { stateMachineArn: "test", input: "test" }; - const program = SFN.startExecution(args); + const program = SFN.use((svc) => svc.startExecution(args)); const result = await pipe( program, @@ -93,7 +93,7 @@ describe("SFNClientImpl", () => { const args: StartExecutionCommandInput = { stateMachineArn: "test", input: "test" }; - const program = SFN.startExecution(args); + const program = SFN.use((svc) => svc.startExecution(args)); const result = await pipe( program, @@ -121,7 +121,7 @@ describe("SFNClientImpl", () => { const args: StartExecutionCommandInput = { stateMachineArn: "test", input: "test" }; - const program = SFN.startExecution(args); + const program = SFN.use((svc) => svc.startExecution(args)); const result = await pipe( program, @@ -131,7 +131,7 @@ describe("SFNClientImpl", () => { expect(result).toEqual( Exit.fail( - SdkError({ + new SdkError({ ...new Error("test"), name: "SdkError", message: "test", @@ -156,7 +156,7 @@ describe("SFNClientImpl", () => { const args: StartExecutionCommandInput = { stateMachineArn: "test", input: "test" }; - const program = SFN.startExecution(args).pipe( + const program = SFN.use((svc) => svc.startExecution(args)).pipe( Effect.catchTag("NotHandledException" as any, () => Effect.succeed(null)), ); @@ -166,9 +166,9 @@ describe("SFNClientImpl", () => { Effect.runPromiseExit, ); - expect(result).toEqual( + expect(result).toContainEqual( Exit.fail( - SdkError({ + new SdkError({ ...new Error("test"), name: "SdkError", message: "test", diff --git a/packages/client-sns/.projen/deps.json b/packages/client-sns/.projen/deps.json index 9b032c6d..e1f51796 100644 --- a/packages/client-sns/.projen/deps.json +++ b/packages/client-sns/.projen/deps.json @@ -7,6 +7,7 @@ }, { "name": "effect", + "version": "4.0.0-beta.8", "type": "build" }, { @@ -16,7 +17,7 @@ }, { "name": "effect", - "version": ">=3.0.4 <4.0.0", + "version": ">=4.0.0 <5.0.0", "type": "peer" }, { diff --git a/packages/client-sns/README.md b/packages/client-sns/README.md index 6a6c84a4..78142ac3 100644 --- a/packages/client-sns/README.md +++ b/packages/client-sns/README.md @@ -16,7 +16,7 @@ With default SNSClient instance: ```typescript import { SNS } from "@effect-aws/client-sns"; -const program = SNS.publish(args); +const program = SNS.use((svc) => svc.publish(args)); const result = pipe( program, @@ -30,7 +30,7 @@ With custom SNSClient instance: ```typescript import { SNS } from "@effect-aws/client-sns"; -const program = SNS.publish(args); +const program = SNS.use((svc) => svc.publish(args)); const result = await pipe( program, @@ -46,7 +46,7 @@ With custom SNSClient configuration: ```typescript import { SNS } from "@effect-aws/client-sns"; -const program = SNS.publish(args); +const program = SNS.use((svc) => svc.publish(args)); const result = await pipe( program, diff --git a/packages/client-sns/package.json b/packages/client-sns/package.json index aff002f2..9f0d23ee 100644 --- a/packages/client-sns/package.json +++ b/packages/client-sns/package.json @@ -26,11 +26,11 @@ }, "devDependencies": { "@types/node": "ts5.4", - "effect": "^3.16.4", + "effect": "4.0.0-beta.8", "typescript": "^5.4.2" }, "peerDependencies": { - "effect": ">=3.0.4 <4.0.0" + "effect": ">=4.0.0 <5.0.0" }, "dependencies": { "@aws-sdk/client-sns": "^3", diff --git a/packages/client-sns/src/SNSClientInstance.ts b/packages/client-sns/src/SNSClientInstance.ts index 10a43b05..affb9ee4 100644 --- a/packages/client-sns/src/SNSClientInstance.ts +++ b/packages/client-sns/src/SNSClientInstance.ts @@ -2,16 +2,16 @@ * @since 1.0.0 */ import { SNSClient } from "@aws-sdk/client-sns"; -import { Context, Effect, Layer } from "effect"; +import { Effect, Layer, ServiceMap } from "effect"; import * as SNSServiceConfig from "./SNSServiceConfig.js"; /** * @since 1.0.0 * @category tags */ -export class SNSClientInstance extends Context.Tag( +export class SNSClientInstance extends ServiceMap.Service()( "@effect-aws/client-sns/SNSClientInstance", -)() {} +) {} /** * @since 1.0.0 @@ -30,4 +30,4 @@ export const make = Effect.flatMap( * @since 1.0.0 * @category layers */ -export const layer = Layer.scoped(SNSClientInstance, make); +export const layer = Layer.effect(SNSClientInstance, make); diff --git a/packages/client-sns/src/SNSService.ts b/packages/client-sns/src/SNSService.ts index cf4e6bf8..b91a1289 100644 --- a/packages/client-sns/src/SNSService.ts +++ b/packages/client-sns/src/SNSService.ts @@ -134,7 +134,7 @@ import { import type { HttpHandlerOptions, ServiceLogger } from "@effect-aws/commons"; import { Service } from "@effect-aws/commons"; import type { Cause } from "effect"; -import { Effect, Layer } from "effect"; +import { Effect, Layer, ServiceMap } from "effect"; import type { AuthorizationError, BatchEntryIdsNotDistinctError, @@ -232,7 +232,7 @@ interface SNSService$ { options?: HttpHandlerOptions, ): Effect.Effect< AddPermissionCommandOutput, - Cause.TimeoutException | SdkError | AuthorizationError | InternalError | InvalidParameterError | NotFoundError + Cause.TimeoutError | SdkError | AuthorizationError | InternalError | InvalidParameterError | NotFoundError >; /** @@ -243,7 +243,7 @@ interface SNSService$ { options?: HttpHandlerOptions, ): Effect.Effect< CheckIfPhoneNumberIsOptedOutCommandOutput, - Cause.TimeoutException | SdkError | AuthorizationError | InternalError | InvalidParameterError | ThrottledError + Cause.TimeoutError | SdkError | AuthorizationError | InternalError | InvalidParameterError | ThrottledError >; /** @@ -254,7 +254,7 @@ interface SNSService$ { options?: HttpHandlerOptions, ): Effect.Effect< ConfirmSubscriptionCommandOutput, - | Cause.TimeoutException + | Cause.TimeoutError | SdkError | AuthorizationError | FilterPolicyLimitExceededError @@ -273,7 +273,7 @@ interface SNSService$ { options?: HttpHandlerOptions, ): Effect.Effect< CreatePlatformApplicationCommandOutput, - Cause.TimeoutException | SdkError | AuthorizationError | InternalError | InvalidParameterError + Cause.TimeoutError | SdkError | AuthorizationError | InternalError | InvalidParameterError >; /** @@ -284,7 +284,7 @@ interface SNSService$ { options?: HttpHandlerOptions, ): Effect.Effect< CreatePlatformEndpointCommandOutput, - Cause.TimeoutException | SdkError | AuthorizationError | InternalError | InvalidParameterError | NotFoundError + Cause.TimeoutError | SdkError | AuthorizationError | InternalError | InvalidParameterError | NotFoundError >; /** @@ -295,7 +295,7 @@ interface SNSService$ { options?: HttpHandlerOptions, ): Effect.Effect< CreateSMSSandboxPhoneNumberCommandOutput, - | Cause.TimeoutException + | Cause.TimeoutError | SdkError | AuthorizationError | InternalError @@ -313,7 +313,7 @@ interface SNSService$ { options?: HttpHandlerOptions, ): Effect.Effect< CreateTopicCommandOutput, - | Cause.TimeoutException + | Cause.TimeoutError | SdkError | AuthorizationError | ConcurrentAccessError @@ -334,7 +334,7 @@ interface SNSService$ { options?: HttpHandlerOptions, ): Effect.Effect< DeleteEndpointCommandOutput, - Cause.TimeoutException | SdkError | AuthorizationError | InternalError | InvalidParameterError + Cause.TimeoutError | SdkError | AuthorizationError | InternalError | InvalidParameterError >; /** @@ -345,7 +345,7 @@ interface SNSService$ { options?: HttpHandlerOptions, ): Effect.Effect< DeletePlatformApplicationCommandOutput, - Cause.TimeoutException | SdkError | AuthorizationError | InternalError | InvalidParameterError + Cause.TimeoutError | SdkError | AuthorizationError | InternalError | InvalidParameterError >; /** @@ -356,7 +356,7 @@ interface SNSService$ { options?: HttpHandlerOptions, ): Effect.Effect< DeleteSMSSandboxPhoneNumberCommandOutput, - | Cause.TimeoutException + | Cause.TimeoutError | SdkError | AuthorizationError | InternalError @@ -374,7 +374,7 @@ interface SNSService$ { options?: HttpHandlerOptions, ): Effect.Effect< DeleteTopicCommandOutput, - | Cause.TimeoutException + | Cause.TimeoutError | SdkError | AuthorizationError | ConcurrentAccessError @@ -394,7 +394,7 @@ interface SNSService$ { options?: HttpHandlerOptions, ): Effect.Effect< GetDataProtectionPolicyCommandOutput, - | Cause.TimeoutException + | Cause.TimeoutError | SdkError | AuthorizationError | InternalError @@ -411,7 +411,7 @@ interface SNSService$ { options?: HttpHandlerOptions, ): Effect.Effect< GetEndpointAttributesCommandOutput, - Cause.TimeoutException | SdkError | AuthorizationError | InternalError | InvalidParameterError | NotFoundError + Cause.TimeoutError | SdkError | AuthorizationError | InternalError | InvalidParameterError | NotFoundError >; /** @@ -422,7 +422,7 @@ interface SNSService$ { options?: HttpHandlerOptions, ): Effect.Effect< GetPlatformApplicationAttributesCommandOutput, - Cause.TimeoutException | SdkError | AuthorizationError | InternalError | InvalidParameterError | NotFoundError + Cause.TimeoutError | SdkError | AuthorizationError | InternalError | InvalidParameterError | NotFoundError >; /** @@ -433,7 +433,7 @@ interface SNSService$ { options?: HttpHandlerOptions, ): Effect.Effect< GetSMSAttributesCommandOutput, - Cause.TimeoutException | SdkError | AuthorizationError | InternalError | InvalidParameterError | ThrottledError + Cause.TimeoutError | SdkError | AuthorizationError | InternalError | InvalidParameterError | ThrottledError >; /** @@ -444,7 +444,7 @@ interface SNSService$ { options?: HttpHandlerOptions, ): Effect.Effect< GetSMSSandboxAccountStatusCommandOutput, - Cause.TimeoutException | SdkError | AuthorizationError | InternalError | ThrottledError + Cause.TimeoutError | SdkError | AuthorizationError | InternalError | ThrottledError >; /** @@ -455,7 +455,7 @@ interface SNSService$ { options?: HttpHandlerOptions, ): Effect.Effect< GetSubscriptionAttributesCommandOutput, - Cause.TimeoutException | SdkError | AuthorizationError | InternalError | InvalidParameterError | NotFoundError + Cause.TimeoutError | SdkError | AuthorizationError | InternalError | InvalidParameterError | NotFoundError >; /** @@ -466,7 +466,7 @@ interface SNSService$ { options?: HttpHandlerOptions, ): Effect.Effect< GetTopicAttributesCommandOutput, - | Cause.TimeoutException + | Cause.TimeoutError | SdkError | AuthorizationError | InternalError @@ -483,7 +483,7 @@ interface SNSService$ { options?: HttpHandlerOptions, ): Effect.Effect< ListEndpointsByPlatformApplicationCommandOutput, - Cause.TimeoutException | SdkError | AuthorizationError | InternalError | InvalidParameterError | NotFoundError + Cause.TimeoutError | SdkError | AuthorizationError | InternalError | InvalidParameterError | NotFoundError >; /** @@ -494,7 +494,7 @@ interface SNSService$ { options?: HttpHandlerOptions, ): Effect.Effect< ListOriginationNumbersCommandOutput, - | Cause.TimeoutException + | Cause.TimeoutError | SdkError | AuthorizationError | InternalError @@ -511,7 +511,7 @@ interface SNSService$ { options?: HttpHandlerOptions, ): Effect.Effect< ListPhoneNumbersOptedOutCommandOutput, - Cause.TimeoutException | SdkError | AuthorizationError | InternalError | InvalidParameterError | ThrottledError + Cause.TimeoutError | SdkError | AuthorizationError | InternalError | InvalidParameterError | ThrottledError >; /** @@ -522,7 +522,7 @@ interface SNSService$ { options?: HttpHandlerOptions, ): Effect.Effect< ListPlatformApplicationsCommandOutput, - Cause.TimeoutException | SdkError | AuthorizationError | InternalError | InvalidParameterError + Cause.TimeoutError | SdkError | AuthorizationError | InternalError | InvalidParameterError >; /** @@ -533,7 +533,7 @@ interface SNSService$ { options?: HttpHandlerOptions, ): Effect.Effect< ListSMSSandboxPhoneNumbersCommandOutput, - | Cause.TimeoutException + | Cause.TimeoutError | SdkError | AuthorizationError | InternalError @@ -550,7 +550,7 @@ interface SNSService$ { options?: HttpHandlerOptions, ): Effect.Effect< ListSubscriptionsCommandOutput, - Cause.TimeoutException | SdkError | AuthorizationError | InternalError | InvalidParameterError + Cause.TimeoutError | SdkError | AuthorizationError | InternalError | InvalidParameterError >; /** @@ -561,7 +561,7 @@ interface SNSService$ { options?: HttpHandlerOptions, ): Effect.Effect< ListSubscriptionsByTopicCommandOutput, - Cause.TimeoutException | SdkError | AuthorizationError | InternalError | InvalidParameterError | NotFoundError + Cause.TimeoutError | SdkError | AuthorizationError | InternalError | InvalidParameterError | NotFoundError >; /** @@ -572,7 +572,7 @@ interface SNSService$ { options?: HttpHandlerOptions, ): Effect.Effect< ListTagsForResourceCommandOutput, - | Cause.TimeoutException + | Cause.TimeoutError | SdkError | AuthorizationError | ConcurrentAccessError @@ -589,7 +589,7 @@ interface SNSService$ { options?: HttpHandlerOptions, ): Effect.Effect< ListTopicsCommandOutput, - Cause.TimeoutException | SdkError | AuthorizationError | InternalError | InvalidParameterError + Cause.TimeoutError | SdkError | AuthorizationError | InternalError | InvalidParameterError >; /** @@ -600,7 +600,7 @@ interface SNSService$ { options?: HttpHandlerOptions, ): Effect.Effect< OptInPhoneNumberCommandOutput, - Cause.TimeoutException | SdkError | AuthorizationError | InternalError | InvalidParameterError | ThrottledError + Cause.TimeoutError | SdkError | AuthorizationError | InternalError | InvalidParameterError | ThrottledError >; /** @@ -611,7 +611,7 @@ interface SNSService$ { options?: HttpHandlerOptions, ): Effect.Effect< PublishCommandOutput, - | Cause.TimeoutException + | Cause.TimeoutError | SdkError | AuthorizationError | EndpointDisabledError @@ -638,7 +638,7 @@ interface SNSService$ { options?: HttpHandlerOptions, ): Effect.Effect< PublishBatchCommandOutput, - | Cause.TimeoutException + | Cause.TimeoutError | SdkError | AuthorizationError | BatchEntryIdsNotDistinctError @@ -670,7 +670,7 @@ interface SNSService$ { options?: HttpHandlerOptions, ): Effect.Effect< PutDataProtectionPolicyCommandOutput, - | Cause.TimeoutException + | Cause.TimeoutError | SdkError | AuthorizationError | InternalError @@ -687,7 +687,7 @@ interface SNSService$ { options?: HttpHandlerOptions, ): Effect.Effect< RemovePermissionCommandOutput, - Cause.TimeoutException | SdkError | AuthorizationError | InternalError | InvalidParameterError | NotFoundError + Cause.TimeoutError | SdkError | AuthorizationError | InternalError | InvalidParameterError | NotFoundError >; /** @@ -698,7 +698,7 @@ interface SNSService$ { options?: HttpHandlerOptions, ): Effect.Effect< SetEndpointAttributesCommandOutput, - Cause.TimeoutException | SdkError | AuthorizationError | InternalError | InvalidParameterError | NotFoundError + Cause.TimeoutError | SdkError | AuthorizationError | InternalError | InvalidParameterError | NotFoundError >; /** @@ -709,7 +709,7 @@ interface SNSService$ { options?: HttpHandlerOptions, ): Effect.Effect< SetPlatformApplicationAttributesCommandOutput, - Cause.TimeoutException | SdkError | AuthorizationError | InternalError | InvalidParameterError | NotFoundError + Cause.TimeoutError | SdkError | AuthorizationError | InternalError | InvalidParameterError | NotFoundError >; /** @@ -720,7 +720,7 @@ interface SNSService$ { options?: HttpHandlerOptions, ): Effect.Effect< SetSMSAttributesCommandOutput, - Cause.TimeoutException | SdkError | AuthorizationError | InternalError | InvalidParameterError | ThrottledError + Cause.TimeoutError | SdkError | AuthorizationError | InternalError | InvalidParameterError | ThrottledError >; /** @@ -731,7 +731,7 @@ interface SNSService$ { options?: HttpHandlerOptions, ): Effect.Effect< SetSubscriptionAttributesCommandOutput, - | Cause.TimeoutException + | Cause.TimeoutError | SdkError | AuthorizationError | FilterPolicyLimitExceededError @@ -749,7 +749,7 @@ interface SNSService$ { options?: HttpHandlerOptions, ): Effect.Effect< SetTopicAttributesCommandOutput, - | Cause.TimeoutException + | Cause.TimeoutError | SdkError | AuthorizationError | InternalError @@ -766,7 +766,7 @@ interface SNSService$ { options?: HttpHandlerOptions, ): Effect.Effect< SubscribeCommandOutput, - | Cause.TimeoutException + | Cause.TimeoutError | SdkError | AuthorizationError | FilterPolicyLimitExceededError @@ -786,7 +786,7 @@ interface SNSService$ { options?: HttpHandlerOptions, ): Effect.Effect< TagResourceCommandOutput, - | Cause.TimeoutException + | Cause.TimeoutError | SdkError | AuthorizationError | ConcurrentAccessError @@ -805,7 +805,7 @@ interface SNSService$ { options?: HttpHandlerOptions, ): Effect.Effect< UnsubscribeCommandOutput, - | Cause.TimeoutException + | Cause.TimeoutError | SdkError | AuthorizationError | InternalError @@ -822,7 +822,7 @@ interface SNSService$ { options?: HttpHandlerOptions, ): Effect.Effect< UntagResourceCommandOutput, - | Cause.TimeoutException + | Cause.TimeoutError | SdkError | AuthorizationError | ConcurrentAccessError @@ -841,7 +841,7 @@ interface SNSService$ { options?: HttpHandlerOptions, ): Effect.Effect< VerifySMSSandboxPhoneNumberCommandOutput, - | Cause.TimeoutException + | Cause.TimeoutError | SdkError | AuthorizationError | InternalError @@ -873,10 +873,10 @@ export const makeSNSService = Effect.gen(function*() { * @since 1.0.0 * @category models */ -export class SNSService extends Effect.Tag("@effect-aws/client-sns/SNSService")< +export class SNSService extends ServiceMap.Service< SNSService, SNSService$ ->() { +>()("@effect-aws/client-sns/SNSService") { static readonly defaultLayer = Layer.effect(this, makeSNSService).pipe(Layer.provide(Instance.layer)); static readonly layer = (config: SNSService.Config) => Layer.effect(this, makeSNSService).pipe( diff --git a/packages/client-sns/src/SNSServiceConfig.ts b/packages/client-sns/src/SNSServiceConfig.ts index 91d96090..84e40cbf 100644 --- a/packages/client-sns/src/SNSServiceConfig.ts +++ b/packages/client-sns/src/SNSServiceConfig.ts @@ -3,18 +3,17 @@ */ import type { SNSClientConfig } from "@aws-sdk/client-sns"; import { ServiceLogger } from "@effect-aws/commons"; -import { Effect, FiberRef, Layer } from "effect"; +import { Effect, Layer, ServiceMap } from "effect"; import { dual } from "effect/Function"; -import { globalValue } from "effect/GlobalValue"; import type { SNSService } from "./SNSService.js"; /** * @since 1.0.0 * @category sns service config */ -const currentSNSServiceConfig = globalValue( +const currentSNSServiceConfig = ServiceMap.Reference( "@effect-aws/client-sns/currentSNSServiceConfig", - () => FiberRef.unsafeMake({}), + { defaultValue: () => ({}) }, ); /** @@ -27,21 +26,21 @@ export const withSNSServiceConfig: { } = dual( 2, (effect: Effect.Effect, config: SNSService.Config): Effect.Effect => - Effect.locally(effect, currentSNSServiceConfig, config), + Effect.provideService(effect, currentSNSServiceConfig, config), ); /** * @since 1.0.0 * @category sns service config */ -export const setSNSServiceConfig = (config: SNSService.Config) => Layer.locallyScoped(currentSNSServiceConfig, config); +export const setSNSServiceConfig = (config: SNSService.Config) => Layer.succeed(currentSNSServiceConfig, config); /** * @since 1.0.0 * @category adapters */ export const toSNSClientConfig: Effect.Effect = Effect.gen(function*() { - const { logger: serviceLogger, ...config } = yield* FiberRef.get(currentSNSServiceConfig); + const { logger: serviceLogger, ...config } = yield* currentSNSServiceConfig; const logger = serviceLogger === true ? yield* ServiceLogger.toClientLogger(ServiceLogger.defaultServiceLogger) diff --git a/packages/client-sns/test/SNS.test.ts b/packages/client-sns/test/SNS.test.ts index bf766c0b..1fe4fb5a 100644 --- a/packages/client-sns/test/SNS.test.ts +++ b/packages/client-sns/test/SNS.test.ts @@ -21,7 +21,7 @@ describe("SNSClientImpl", () => { const args: PublishCommandInput = { TopicArn: "test", Message: "test" }; - const program = SNS.publish(args); + const program = SNS.use((svc) => svc.publish(args)); const result = await pipe( program, @@ -41,7 +41,7 @@ describe("SNSClientImpl", () => { const args: PublishCommandInput = { TopicArn: "test", Message: "test" }; - const program = SNS.publish(args); + const program = SNS.use((svc) => svc.publish(args)); const result = await pipe( program, @@ -64,7 +64,7 @@ describe("SNSClientImpl", () => { const args: PublishCommandInput = { TopicArn: "test", Message: "test" }; - const program = SNS.publish(args); + const program = SNS.use((svc) => svc.publish(args)); const result = await pipe( program, @@ -88,7 +88,7 @@ describe("SNSClientImpl", () => { const args: PublishCommandInput = { TopicArn: "test", Message: "test" }; - const program = SNS.publish(args); + const program = SNS.use((svc) => svc.publish(args)); const result = await pipe( program, @@ -116,7 +116,7 @@ describe("SNSClientImpl", () => { const args: PublishCommandInput = { TopicArn: "test", Message: "test" }; - const program = SNS.publish(args); + const program = SNS.use((svc) => svc.publish(args)); const result = await pipe( program, @@ -126,7 +126,7 @@ describe("SNSClientImpl", () => { expect(result).toEqual( Exit.fail( - SdkError({ + new SdkError({ ...new Error("test"), name: "SdkError", message: "test", @@ -151,7 +151,7 @@ describe("SNSClientImpl", () => { const args: PublishCommandInput = { TopicArn: "test", Message: "test" }; - const program = SNS.publish(args).pipe( + const program = SNS.use((svc) => svc.publish(args)).pipe( Effect.catchTag("NotHandledException" as any, () => Effect.succeed(null)), ); @@ -161,9 +161,9 @@ describe("SNSClientImpl", () => { Effect.runPromiseExit, ); - expect(result).toEqual( + expect(result).toContainEqual( Exit.fail( - SdkError({ + new SdkError({ ...new Error("test"), name: "SdkError", message: "test", diff --git a/packages/client-sqs/.projen/deps.json b/packages/client-sqs/.projen/deps.json index 47b093de..06007e3b 100644 --- a/packages/client-sqs/.projen/deps.json +++ b/packages/client-sqs/.projen/deps.json @@ -7,6 +7,7 @@ }, { "name": "effect", + "version": "4.0.0-beta.8", "type": "build" }, { @@ -16,7 +17,7 @@ }, { "name": "effect", - "version": ">=3.0.4 <4.0.0", + "version": ">=4.0.0 <5.0.0", "type": "peer" }, { diff --git a/packages/client-sqs/README.md b/packages/client-sqs/README.md index 101c836c..b587c0c4 100644 --- a/packages/client-sqs/README.md +++ b/packages/client-sqs/README.md @@ -16,7 +16,7 @@ With default SQSClient instance: ```typescript import { SQS } from "@effect-aws/client-sqs"; -const program = SQS.sendMessage(args); +const program = SQS.use((svc) => svc.sendMessage(args)); const result = pipe( program, @@ -30,7 +30,7 @@ With custom SQSClient instance: ```typescript import { SQS } from "@effect-aws/client-sqs"; -const program = SQS.sendMessage(args); +const program = SQS.use((svc) => svc.sendMessage(args)); const result = await pipe( program, @@ -46,7 +46,7 @@ With custom SQSClient configuration: ```typescript import { SQS } from "@effect-aws/client-sqs"; -const program = SQS.sendMessage(args); +const program = SQS.use((svc) => svc.sendMessage(args)); const result = await pipe( program, diff --git a/packages/client-sqs/package.json b/packages/client-sqs/package.json index 78ef184a..781c46f2 100644 --- a/packages/client-sqs/package.json +++ b/packages/client-sqs/package.json @@ -26,11 +26,11 @@ }, "devDependencies": { "@types/node": "ts5.4", - "effect": "^3.16.4", + "effect": "4.0.0-beta.8", "typescript": "^5.4.2" }, "peerDependencies": { - "effect": ">=3.0.4 <4.0.0" + "effect": ">=4.0.0 <5.0.0" }, "dependencies": { "@aws-sdk/client-sqs": "^3", diff --git a/packages/client-sqs/src/SQSClientInstance.ts b/packages/client-sqs/src/SQSClientInstance.ts index 6a6691aa..ce72ae03 100644 --- a/packages/client-sqs/src/SQSClientInstance.ts +++ b/packages/client-sqs/src/SQSClientInstance.ts @@ -2,16 +2,16 @@ * @since 1.0.0 */ import { SQSClient } from "@aws-sdk/client-sqs"; -import { Context, Effect, Layer } from "effect"; +import { Effect, Layer, ServiceMap } from "effect"; import * as SQSServiceConfig from "./SQSServiceConfig.js"; /** * @since 1.0.0 * @category tags */ -export class SQSClientInstance extends Context.Tag( +export class SQSClientInstance extends ServiceMap.Service()( "@effect-aws/client-sqs/SQSClientInstance", -)() {} +) {} /** * @since 1.0.0 @@ -30,4 +30,4 @@ export const make = Effect.flatMap( * @since 1.0.0 * @category layers */ -export const layer = Layer.scoped(SQSClientInstance, make); +export const layer = Layer.effect(SQSClientInstance, make); diff --git a/packages/client-sqs/src/SQSService.ts b/packages/client-sqs/src/SQSService.ts index 658a4f3b..e1d598ad 100644 --- a/packages/client-sqs/src/SQSService.ts +++ b/packages/client-sqs/src/SQSService.ts @@ -77,7 +77,7 @@ import { import type { HttpHandlerOptions, ServiceLogger } from "@effect-aws/commons"; import { Service } from "@effect-aws/commons"; import type { Cause } from "effect"; -import { Effect, Layer } from "effect"; +import { Effect, Layer, ServiceMap } from "effect"; import type { BatchEntryIdsNotDistinctError, BatchRequestTooLongError, @@ -150,7 +150,7 @@ interface SQSService$ { options?: HttpHandlerOptions, ): Effect.Effect< AddPermissionCommandOutput, - | Cause.TimeoutException + | Cause.TimeoutError | SdkError | InvalidAddressError | InvalidSecurityError @@ -168,7 +168,7 @@ interface SQSService$ { options?: HttpHandlerOptions, ): Effect.Effect< CancelMessageMoveTaskCommandOutput, - | Cause.TimeoutException + | Cause.TimeoutError | SdkError | InvalidAddressError | InvalidSecurityError @@ -185,7 +185,7 @@ interface SQSService$ { options?: HttpHandlerOptions, ): Effect.Effect< ChangeMessageVisibilityCommandOutput, - | Cause.TimeoutException + | Cause.TimeoutError | SdkError | InvalidAddressError | InvalidSecurityError @@ -204,7 +204,7 @@ interface SQSService$ { options?: HttpHandlerOptions, ): Effect.Effect< ChangeMessageVisibilityBatchCommandOutput, - | Cause.TimeoutException + | Cause.TimeoutError | SdkError | BatchEntryIdsNotDistinctError | EmptyBatchRequestError @@ -225,7 +225,7 @@ interface SQSService$ { options?: HttpHandlerOptions, ): Effect.Effect< CreateQueueCommandOutput, - | Cause.TimeoutException + | Cause.TimeoutError | SdkError | InvalidAddressError | InvalidAttributeNameError @@ -245,7 +245,7 @@ interface SQSService$ { options?: HttpHandlerOptions, ): Effect.Effect< DeleteMessageCommandOutput, - | Cause.TimeoutException + | Cause.TimeoutError | SdkError | InvalidAddressError | InvalidIdFormatError @@ -264,7 +264,7 @@ interface SQSService$ { options?: HttpHandlerOptions, ): Effect.Effect< DeleteMessageBatchCommandOutput, - | Cause.TimeoutException + | Cause.TimeoutError | SdkError | BatchEntryIdsNotDistinctError | EmptyBatchRequestError @@ -285,7 +285,7 @@ interface SQSService$ { options?: HttpHandlerOptions, ): Effect.Effect< DeleteQueueCommandOutput, - | Cause.TimeoutException + | Cause.TimeoutError | SdkError | InvalidAddressError | InvalidSecurityError @@ -302,7 +302,7 @@ interface SQSService$ { options?: HttpHandlerOptions, ): Effect.Effect< GetQueueAttributesCommandOutput, - | Cause.TimeoutException + | Cause.TimeoutError | SdkError | InvalidAddressError | InvalidAttributeNameError @@ -320,7 +320,7 @@ interface SQSService$ { options?: HttpHandlerOptions, ): Effect.Effect< GetQueueUrlCommandOutput, - | Cause.TimeoutException + | Cause.TimeoutError | SdkError | InvalidAddressError | InvalidSecurityError @@ -337,7 +337,7 @@ interface SQSService$ { options?: HttpHandlerOptions, ): Effect.Effect< ListDeadLetterSourceQueuesCommandOutput, - | Cause.TimeoutException + | Cause.TimeoutError | SdkError | InvalidAddressError | InvalidSecurityError @@ -354,7 +354,7 @@ interface SQSService$ { options?: HttpHandlerOptions, ): Effect.Effect< ListMessageMoveTasksCommandOutput, - | Cause.TimeoutException + | Cause.TimeoutError | SdkError | InvalidAddressError | InvalidSecurityError @@ -371,7 +371,7 @@ interface SQSService$ { options?: HttpHandlerOptions, ): Effect.Effect< ListQueueTagsCommandOutput, - | Cause.TimeoutException + | Cause.TimeoutError | SdkError | InvalidAddressError | InvalidSecurityError @@ -388,7 +388,7 @@ interface SQSService$ { options?: HttpHandlerOptions, ): Effect.Effect< ListQueuesCommandOutput, - | Cause.TimeoutException + | Cause.TimeoutError | SdkError | InvalidAddressError | InvalidSecurityError @@ -404,7 +404,7 @@ interface SQSService$ { options?: HttpHandlerOptions, ): Effect.Effect< PurgeQueueCommandOutput, - | Cause.TimeoutException + | Cause.TimeoutError | SdkError | InvalidAddressError | InvalidSecurityError @@ -422,7 +422,7 @@ interface SQSService$ { options?: HttpHandlerOptions, ): Effect.Effect< ReceiveMessageCommandOutput, - | Cause.TimeoutException + | Cause.TimeoutError | SdkError | InvalidAddressError | InvalidSecurityError @@ -447,7 +447,7 @@ interface SQSService$ { options?: HttpHandlerOptions, ): Effect.Effect< RemovePermissionCommandOutput, - | Cause.TimeoutException + | Cause.TimeoutError | SdkError | InvalidAddressError | InvalidSecurityError @@ -464,7 +464,7 @@ interface SQSService$ { options?: HttpHandlerOptions, ): Effect.Effect< SendMessageCommandOutput, - | Cause.TimeoutException + | Cause.TimeoutError | SdkError | InvalidAddressError | InvalidMessageContentsError @@ -489,7 +489,7 @@ interface SQSService$ { options?: HttpHandlerOptions, ): Effect.Effect< SendMessageBatchCommandOutput, - | Cause.TimeoutException + | Cause.TimeoutError | SdkError | BatchEntryIdsNotDistinctError | BatchRequestTooLongError @@ -518,7 +518,7 @@ interface SQSService$ { options?: HttpHandlerOptions, ): Effect.Effect< SetQueueAttributesCommandOutput, - | Cause.TimeoutException + | Cause.TimeoutError | SdkError | InvalidAddressError | InvalidAttributeNameError @@ -538,7 +538,7 @@ interface SQSService$ { options?: HttpHandlerOptions, ): Effect.Effect< StartMessageMoveTaskCommandOutput, - | Cause.TimeoutException + | Cause.TimeoutError | SdkError | InvalidAddressError | InvalidSecurityError @@ -555,7 +555,7 @@ interface SQSService$ { options?: HttpHandlerOptions, ): Effect.Effect< TagQueueCommandOutput, - | Cause.TimeoutException + | Cause.TimeoutError | SdkError | InvalidAddressError | InvalidSecurityError @@ -572,7 +572,7 @@ interface SQSService$ { options?: HttpHandlerOptions, ): Effect.Effect< UntagQueueCommandOutput, - | Cause.TimeoutException + | Cause.TimeoutError | SdkError | InvalidAddressError | InvalidSecurityError @@ -603,10 +603,10 @@ export const makeSQSService = Effect.gen(function*() { * @since 1.0.0 * @category models */ -export class SQSService extends Effect.Tag("@effect-aws/client-sqs/SQSService")< +export class SQSService extends ServiceMap.Service< SQSService, SQSService$ ->() { +>()("@effect-aws/client-sqs/SQSService") { static readonly defaultLayer = Layer.effect(this, makeSQSService).pipe(Layer.provide(Instance.layer)); static readonly layer = (config: SQSService.Config) => Layer.effect(this, makeSQSService).pipe( diff --git a/packages/client-sqs/src/SQSServiceConfig.ts b/packages/client-sqs/src/SQSServiceConfig.ts index 052dd1b2..3e0c4ead 100644 --- a/packages/client-sqs/src/SQSServiceConfig.ts +++ b/packages/client-sqs/src/SQSServiceConfig.ts @@ -3,18 +3,17 @@ */ import type { SQSClientConfig } from "@aws-sdk/client-sqs"; import { ServiceLogger } from "@effect-aws/commons"; -import { Effect, FiberRef, Layer } from "effect"; +import { Effect, Layer, ServiceMap } from "effect"; import { dual } from "effect/Function"; -import { globalValue } from "effect/GlobalValue"; import type { SQSService } from "./SQSService.js"; /** * @since 1.0.0 * @category sqs service config */ -const currentSQSServiceConfig = globalValue( +const currentSQSServiceConfig = ServiceMap.Reference( "@effect-aws/client-sqs/currentSQSServiceConfig", - () => FiberRef.unsafeMake({}), + { defaultValue: () => ({}) }, ); /** @@ -27,21 +26,21 @@ export const withSQSServiceConfig: { } = dual( 2, (effect: Effect.Effect, config: SQSService.Config): Effect.Effect => - Effect.locally(effect, currentSQSServiceConfig, config), + Effect.provideService(effect, currentSQSServiceConfig, config), ); /** * @since 1.0.0 * @category sqs service config */ -export const setSQSServiceConfig = (config: SQSService.Config) => Layer.locallyScoped(currentSQSServiceConfig, config); +export const setSQSServiceConfig = (config: SQSService.Config) => Layer.succeed(currentSQSServiceConfig, config); /** * @since 1.0.0 * @category adapters */ export const toSQSClientConfig: Effect.Effect = Effect.gen(function*() { - const { logger: serviceLogger, ...config } = yield* FiberRef.get(currentSQSServiceConfig); + const { logger: serviceLogger, ...config } = yield* currentSQSServiceConfig; const logger = serviceLogger === true ? yield* ServiceLogger.toClientLogger(ServiceLogger.defaultServiceLogger) diff --git a/packages/client-sqs/test/SQS.test.ts b/packages/client-sqs/test/SQS.test.ts index 1ad27f83..3389c1c2 100644 --- a/packages/client-sqs/test/SQS.test.ts +++ b/packages/client-sqs/test/SQS.test.ts @@ -24,7 +24,7 @@ describe("SQSClientImpl", () => { MessageBody: "Hello world!", }; - const program = SQS.sendMessage(args); + const program = SQS.use((svc) => svc.sendMessage(args)); const result = await pipe( program, @@ -47,7 +47,7 @@ describe("SQSClientImpl", () => { MessageBody: "Hello world!", }; - const program = SQS.sendMessage(args); + const program = SQS.use((svc) => svc.sendMessage(args)); const result = await pipe( program, @@ -73,7 +73,7 @@ describe("SQSClientImpl", () => { MessageBody: "Hello world!", }; - const program = SQS.sendMessage(args); + const program = SQS.use((svc) => svc.sendMessage(args)); const result = await pipe( program, @@ -100,7 +100,7 @@ describe("SQSClientImpl", () => { MessageBody: "Hello world!", }; - const program = SQS.sendMessage(args); + const program = SQS.use((svc) => svc.sendMessage(args)); const result = await pipe( program, @@ -131,7 +131,7 @@ describe("SQSClientImpl", () => { MessageBody: "Hello world!", }; - const program = SQS.sendMessage(args); + const program = SQS.use((svc) => svc.sendMessage(args)); const result = await pipe( program, @@ -141,7 +141,7 @@ describe("SQSClientImpl", () => { expect(result).toEqual( Exit.fail( - SdkError({ + new SdkError({ ...new Error("test"), name: "SdkError", message: "test", @@ -169,7 +169,7 @@ describe("SQSClientImpl", () => { MessageBody: "Hello world!", }; - const program = SQS.sendMessage(args).pipe( + const program = SQS.use((svc) => svc.sendMessage(args)).pipe( Effect.catchTag("NotHandledException" as any, () => Effect.succeed(null)), ); @@ -179,9 +179,9 @@ describe("SQSClientImpl", () => { Effect.runPromiseExit, ); - expect(result).toEqual( + expect(result).toContainEqual( Exit.fail( - SdkError({ + new SdkError({ ...new Error("test"), name: "SdkError", message: "test", diff --git a/packages/client-ssm/.projen/deps.json b/packages/client-ssm/.projen/deps.json index 8bd1f021..81691b2e 100644 --- a/packages/client-ssm/.projen/deps.json +++ b/packages/client-ssm/.projen/deps.json @@ -7,6 +7,7 @@ }, { "name": "effect", + "version": "4.0.0-beta.8", "type": "build" }, { @@ -16,7 +17,7 @@ }, { "name": "effect", - "version": ">=3.0.4 <4.0.0", + "version": ">=4.0.0 <5.0.0", "type": "peer" }, { diff --git a/packages/client-ssm/README.md b/packages/client-ssm/README.md index d00ea4c7..23507d62 100644 --- a/packages/client-ssm/README.md +++ b/packages/client-ssm/README.md @@ -16,7 +16,7 @@ With default SSMClient instance: ```typescript import { SSM } from "@effect-aws/client-ssm"; -const program = SSM.describeParameters(args); +const program = SSM.use((svc) => svc.describeParameters(args)); const result = pipe( program, @@ -30,7 +30,7 @@ With custom SSMClient instance: ```typescript import { SSM } from "@effect-aws/client-ssm"; -const program = SSM.describeParameters(args); +const program = SSM.use((svc) => svc.describeParameters(args)); const result = await pipe( program, @@ -46,7 +46,7 @@ With custom SSMClient configuration: ```typescript import { SSM } from "@effect-aws/client-ssm"; -const program = SSM.describeParameters(args); +const program = SSM.use((svc) => svc.describeParameters(args)); const result = await pipe( program, diff --git a/packages/client-ssm/package.json b/packages/client-ssm/package.json index 7376a60a..e334c927 100644 --- a/packages/client-ssm/package.json +++ b/packages/client-ssm/package.json @@ -26,11 +26,11 @@ }, "devDependencies": { "@types/node": "ts5.4", - "effect": "^3.16.4", + "effect": "4.0.0-beta.8", "typescript": "^5.4.2" }, "peerDependencies": { - "effect": ">=3.0.4 <4.0.0" + "effect": ">=4.0.0 <5.0.0" }, "dependencies": { "@aws-sdk/client-ssm": "^3", diff --git a/packages/client-ssm/src/SSMClientInstance.ts b/packages/client-ssm/src/SSMClientInstance.ts index 2a85ef8e..8896bd2f 100644 --- a/packages/client-ssm/src/SSMClientInstance.ts +++ b/packages/client-ssm/src/SSMClientInstance.ts @@ -2,16 +2,16 @@ * @since 1.0.0 */ import { SSMClient } from "@aws-sdk/client-ssm"; -import { Context, Effect, Layer } from "effect"; +import { Effect, Layer, ServiceMap } from "effect"; import * as SSMServiceConfig from "./SSMServiceConfig.js"; /** * @since 1.0.0 * @category tags */ -export class SSMClientInstance extends Context.Tag( +export class SSMClientInstance extends ServiceMap.Service()( "@effect-aws/client-ssm/SSMClientInstance", -)() {} +) {} /** * @since 1.0.0 @@ -30,4 +30,4 @@ export const make = Effect.flatMap( * @since 1.0.0 * @category layers */ -export const layer = Layer.scoped(SSMClientInstance, make); +export const layer = Layer.effect(SSMClientInstance, make); diff --git a/packages/client-ssm/src/SSMService.ts b/packages/client-ssm/src/SSMService.ts index fce177dc..3405fb03 100644 --- a/packages/client-ssm/src/SSMService.ts +++ b/packages/client-ssm/src/SSMService.ts @@ -446,7 +446,7 @@ import { import type { HttpHandlerOptions, ServiceLogger } from "@effect-aws/commons"; import { Service } from "@effect-aws/commons"; import type { Cause } from "effect"; -import { Effect, Layer } from "effect"; +import { Effect, Layer, ServiceMap } from "effect"; import type { AccessDeniedError, AlreadyExistsError, @@ -753,7 +753,7 @@ interface SSMService$ { options?: HttpHandlerOptions, ): Effect.Effect< AddTagsToResourceCommandOutput, - | Cause.TimeoutException + | Cause.TimeoutError | SdkError | InternalServerError | InvalidResourceIdError @@ -770,7 +770,7 @@ interface SSMService$ { options?: HttpHandlerOptions, ): Effect.Effect< AssociateOpsItemRelatedItemCommandOutput, - | Cause.TimeoutException + | Cause.TimeoutError | SdkError | InternalServerError | OpsItemConflictError @@ -788,7 +788,7 @@ interface SSMService$ { options?: HttpHandlerOptions, ): Effect.Effect< CancelCommandCommandOutput, - | Cause.TimeoutException + | Cause.TimeoutError | SdkError | DuplicateInstanceIdError | InternalServerError @@ -804,7 +804,7 @@ interface SSMService$ { options?: HttpHandlerOptions, ): Effect.Effect< CancelMaintenanceWindowExecutionCommandOutput, - Cause.TimeoutException | SdkError | DoesNotExistError | InternalServerError + Cause.TimeoutError | SdkError | DoesNotExistError | InternalServerError >; /** @@ -815,7 +815,7 @@ interface SSMService$ { options?: HttpHandlerOptions, ): Effect.Effect< CreateActivationCommandOutput, - Cause.TimeoutException | SdkError | InternalServerError | InvalidParametersError + Cause.TimeoutError | SdkError | InternalServerError | InvalidParametersError >; /** @@ -826,7 +826,7 @@ interface SSMService$ { options?: HttpHandlerOptions, ): Effect.Effect< CreateAssociationCommandOutput, - | Cause.TimeoutException + | Cause.TimeoutError | SdkError | AssociationAlreadyExistsError | AssociationLimitExceededError @@ -851,7 +851,7 @@ interface SSMService$ { options?: HttpHandlerOptions, ): Effect.Effect< CreateAssociationBatchCommandOutput, - | Cause.TimeoutException + | Cause.TimeoutError | SdkError | AssociationLimitExceededError | DuplicateInstanceIdError @@ -875,7 +875,7 @@ interface SSMService$ { options?: HttpHandlerOptions, ): Effect.Effect< CreateDocumentCommandOutput, - | Cause.TimeoutException + | Cause.TimeoutError | SdkError | DocumentAlreadyExistsError | DocumentLimitExceededError @@ -895,11 +895,7 @@ interface SSMService$ { options?: HttpHandlerOptions, ): Effect.Effect< CreateMaintenanceWindowCommandOutput, - | Cause.TimeoutException - | SdkError - | IdempotentParameterMismatchError - | InternalServerError - | ResourceLimitExceededError + Cause.TimeoutError | SdkError | IdempotentParameterMismatchError | InternalServerError | ResourceLimitExceededError >; /** @@ -910,7 +906,7 @@ interface SSMService$ { options?: HttpHandlerOptions, ): Effect.Effect< CreateOpsItemCommandOutput, - | Cause.TimeoutException + | Cause.TimeoutError | SdkError | InternalServerError | OpsItemAccessDeniedError @@ -927,7 +923,7 @@ interface SSMService$ { options?: HttpHandlerOptions, ): Effect.Effect< CreateOpsMetadataCommandOutput, - | Cause.TimeoutException + | Cause.TimeoutError | SdkError | InternalServerError | OpsMetadataAlreadyExistsError @@ -944,11 +940,7 @@ interface SSMService$ { options?: HttpHandlerOptions, ): Effect.Effect< CreatePatchBaselineCommandOutput, - | Cause.TimeoutException - | SdkError - | IdempotentParameterMismatchError - | InternalServerError - | ResourceLimitExceededError + Cause.TimeoutError | SdkError | IdempotentParameterMismatchError | InternalServerError | ResourceLimitExceededError >; /** @@ -959,7 +951,7 @@ interface SSMService$ { options?: HttpHandlerOptions, ): Effect.Effect< CreateResourceDataSyncCommandOutput, - | Cause.TimeoutException + | Cause.TimeoutError | SdkError | InternalServerError | ResourceDataSyncAlreadyExistsError @@ -975,7 +967,7 @@ interface SSMService$ { options?: HttpHandlerOptions, ): Effect.Effect< DeleteActivationCommandOutput, - | Cause.TimeoutException + | Cause.TimeoutError | SdkError | InternalServerError | InvalidActivationError @@ -991,7 +983,7 @@ interface SSMService$ { options?: HttpHandlerOptions, ): Effect.Effect< DeleteAssociationCommandOutput, - | Cause.TimeoutException + | Cause.TimeoutError | SdkError | AssociationDoesNotExistError | InternalServerError @@ -1008,7 +1000,7 @@ interface SSMService$ { options?: HttpHandlerOptions, ): Effect.Effect< DeleteDocumentCommandOutput, - | Cause.TimeoutException + | Cause.TimeoutError | SdkError | AssociatedInstancesError | InternalServerError @@ -1025,7 +1017,7 @@ interface SSMService$ { options?: HttpHandlerOptions, ): Effect.Effect< DeleteInventoryCommandOutput, - | Cause.TimeoutException + | Cause.TimeoutError | SdkError | InternalServerError | InvalidDeleteInventoryParametersError @@ -1042,7 +1034,7 @@ interface SSMService$ { options?: HttpHandlerOptions, ): Effect.Effect< DeleteMaintenanceWindowCommandOutput, - Cause.TimeoutException | SdkError | InternalServerError + Cause.TimeoutError | SdkError | InternalServerError >; /** @@ -1053,7 +1045,7 @@ interface SSMService$ { options?: HttpHandlerOptions, ): Effect.Effect< DeleteOpsItemCommandOutput, - Cause.TimeoutException | SdkError | InternalServerError | OpsItemInvalidParameterError + Cause.TimeoutError | SdkError | InternalServerError | OpsItemInvalidParameterError >; /** @@ -1064,7 +1056,7 @@ interface SSMService$ { options?: HttpHandlerOptions, ): Effect.Effect< DeleteOpsMetadataCommandOutput, - Cause.TimeoutException | SdkError | InternalServerError | OpsMetadataInvalidArgumentError | OpsMetadataNotFoundError + Cause.TimeoutError | SdkError | InternalServerError | OpsMetadataInvalidArgumentError | OpsMetadataNotFoundError >; /** @@ -1075,7 +1067,7 @@ interface SSMService$ { options?: HttpHandlerOptions, ): Effect.Effect< DeleteParameterCommandOutput, - Cause.TimeoutException | SdkError | InternalServerError | ParameterNotFoundError + Cause.TimeoutError | SdkError | InternalServerError | ParameterNotFoundError >; /** @@ -1086,7 +1078,7 @@ interface SSMService$ { options?: HttpHandlerOptions, ): Effect.Effect< DeleteParametersCommandOutput, - Cause.TimeoutException | SdkError | InternalServerError + Cause.TimeoutError | SdkError | InternalServerError >; /** @@ -1097,7 +1089,7 @@ interface SSMService$ { options?: HttpHandlerOptions, ): Effect.Effect< DeletePatchBaselineCommandOutput, - Cause.TimeoutException | SdkError | InternalServerError | ResourceInUseError + Cause.TimeoutError | SdkError | InternalServerError | ResourceInUseError >; /** @@ -1108,7 +1100,7 @@ interface SSMService$ { options?: HttpHandlerOptions, ): Effect.Effect< DeleteResourceDataSyncCommandOutput, - | Cause.TimeoutException + | Cause.TimeoutError | SdkError | InternalServerError | ResourceDataSyncInvalidConfigurationError @@ -1123,7 +1115,7 @@ interface SSMService$ { options?: HttpHandlerOptions, ): Effect.Effect< DeleteResourcePolicyCommandOutput, - | Cause.TimeoutException + | Cause.TimeoutError | SdkError | InternalServerError | MalformedResourcePolicyDocumentError @@ -1141,7 +1133,7 @@ interface SSMService$ { options?: HttpHandlerOptions, ): Effect.Effect< DeregisterManagedInstanceCommandOutput, - Cause.TimeoutException | SdkError | InternalServerError | InvalidInstanceIdError + Cause.TimeoutError | SdkError | InternalServerError | InvalidInstanceIdError >; /** @@ -1152,7 +1144,7 @@ interface SSMService$ { options?: HttpHandlerOptions, ): Effect.Effect< DeregisterPatchBaselineForPatchGroupCommandOutput, - Cause.TimeoutException | SdkError | InternalServerError | InvalidResourceIdError + Cause.TimeoutError | SdkError | InternalServerError | InvalidResourceIdError >; /** @@ -1163,7 +1155,7 @@ interface SSMService$ { options?: HttpHandlerOptions, ): Effect.Effect< DeregisterTargetFromMaintenanceWindowCommandOutput, - Cause.TimeoutException | SdkError | DoesNotExistError | InternalServerError | TargetInUseError + Cause.TimeoutError | SdkError | DoesNotExistError | InternalServerError | TargetInUseError >; /** @@ -1174,7 +1166,7 @@ interface SSMService$ { options?: HttpHandlerOptions, ): Effect.Effect< DeregisterTaskFromMaintenanceWindowCommandOutput, - Cause.TimeoutException | SdkError | DoesNotExistError | InternalServerError + Cause.TimeoutError | SdkError | DoesNotExistError | InternalServerError >; /** @@ -1185,7 +1177,7 @@ interface SSMService$ { options?: HttpHandlerOptions, ): Effect.Effect< DescribeActivationsCommandOutput, - Cause.TimeoutException | SdkError | InternalServerError | InvalidFilterError | InvalidNextTokenError + Cause.TimeoutError | SdkError | InternalServerError | InvalidFilterError | InvalidNextTokenError >; /** @@ -1196,7 +1188,7 @@ interface SSMService$ { options?: HttpHandlerOptions, ): Effect.Effect< DescribeAssociationCommandOutput, - | Cause.TimeoutException + | Cause.TimeoutError | SdkError | AssociationDoesNotExistError | InternalServerError @@ -1213,7 +1205,7 @@ interface SSMService$ { options?: HttpHandlerOptions, ): Effect.Effect< DescribeAssociationExecutionTargetsCommandOutput, - | Cause.TimeoutException + | Cause.TimeoutError | SdkError | AssociationDoesNotExistError | AssociationExecutionDoesNotExistError @@ -1229,7 +1221,7 @@ interface SSMService$ { options?: HttpHandlerOptions, ): Effect.Effect< DescribeAssociationExecutionsCommandOutput, - Cause.TimeoutException | SdkError | AssociationDoesNotExistError | InternalServerError | InvalidNextTokenError + Cause.TimeoutError | SdkError | AssociationDoesNotExistError | InternalServerError | InvalidNextTokenError >; /** @@ -1240,7 +1232,7 @@ interface SSMService$ { options?: HttpHandlerOptions, ): Effect.Effect< DescribeAutomationExecutionsCommandOutput, - | Cause.TimeoutException + | Cause.TimeoutError | SdkError | InternalServerError | InvalidFilterKeyError @@ -1256,7 +1248,7 @@ interface SSMService$ { options?: HttpHandlerOptions, ): Effect.Effect< DescribeAutomationStepExecutionsCommandOutput, - | Cause.TimeoutException + | Cause.TimeoutError | SdkError | AutomationExecutionNotFoundError | InternalServerError @@ -1273,7 +1265,7 @@ interface SSMService$ { options?: HttpHandlerOptions, ): Effect.Effect< DescribeAvailablePatchesCommandOutput, - Cause.TimeoutException | SdkError | InternalServerError + Cause.TimeoutError | SdkError | InternalServerError >; /** @@ -1284,7 +1276,7 @@ interface SSMService$ { options?: HttpHandlerOptions, ): Effect.Effect< DescribeDocumentCommandOutput, - Cause.TimeoutException | SdkError | InternalServerError | InvalidDocumentError | InvalidDocumentVersionError + Cause.TimeoutError | SdkError | InternalServerError | InvalidDocumentError | InvalidDocumentVersionError >; /** @@ -1295,7 +1287,7 @@ interface SSMService$ { options?: HttpHandlerOptions, ): Effect.Effect< DescribeDocumentPermissionCommandOutput, - | Cause.TimeoutException + | Cause.TimeoutError | SdkError | InternalServerError | InvalidDocumentError @@ -1312,7 +1304,7 @@ interface SSMService$ { options?: HttpHandlerOptions, ): Effect.Effect< DescribeEffectiveInstanceAssociationsCommandOutput, - Cause.TimeoutException | SdkError | InternalServerError | InvalidInstanceIdError | InvalidNextTokenError + Cause.TimeoutError | SdkError | InternalServerError | InvalidInstanceIdError | InvalidNextTokenError >; /** @@ -1323,7 +1315,7 @@ interface SSMService$ { options?: HttpHandlerOptions, ): Effect.Effect< DescribeEffectivePatchesForPatchBaselineCommandOutput, - | Cause.TimeoutException + | Cause.TimeoutError | SdkError | DoesNotExistError | InternalServerError @@ -1339,7 +1331,7 @@ interface SSMService$ { options?: HttpHandlerOptions, ): Effect.Effect< DescribeInstanceAssociationsStatusCommandOutput, - Cause.TimeoutException | SdkError | InternalServerError | InvalidInstanceIdError | InvalidNextTokenError + Cause.TimeoutError | SdkError | InternalServerError | InvalidInstanceIdError | InvalidNextTokenError >; /** @@ -1350,7 +1342,7 @@ interface SSMService$ { options?: HttpHandlerOptions, ): Effect.Effect< DescribeInstanceInformationCommandOutput, - | Cause.TimeoutException + | Cause.TimeoutError | SdkError | InternalServerError | InvalidFilterKeyError @@ -1367,7 +1359,7 @@ interface SSMService$ { options?: HttpHandlerOptions, ): Effect.Effect< DescribeInstancePatchStatesCommandOutput, - Cause.TimeoutException | SdkError | InternalServerError | InvalidNextTokenError + Cause.TimeoutError | SdkError | InternalServerError | InvalidNextTokenError >; /** @@ -1378,7 +1370,7 @@ interface SSMService$ { options?: HttpHandlerOptions, ): Effect.Effect< DescribeInstancePatchStatesForPatchGroupCommandOutput, - Cause.TimeoutException | SdkError | InternalServerError | InvalidFilterError | InvalidNextTokenError + Cause.TimeoutError | SdkError | InternalServerError | InvalidFilterError | InvalidNextTokenError >; /** @@ -1389,7 +1381,7 @@ interface SSMService$ { options?: HttpHandlerOptions, ): Effect.Effect< DescribeInstancePatchesCommandOutput, - | Cause.TimeoutException + | Cause.TimeoutError | SdkError | InternalServerError | InvalidFilterError @@ -1405,7 +1397,7 @@ interface SSMService$ { options?: HttpHandlerOptions, ): Effect.Effect< DescribeInstancePropertiesCommandOutput, - | Cause.TimeoutException + | Cause.TimeoutError | SdkError | InternalServerError | InvalidActivationIdError @@ -1424,7 +1416,7 @@ interface SSMService$ { options?: HttpHandlerOptions, ): Effect.Effect< DescribeInventoryDeletionsCommandOutput, - Cause.TimeoutException | SdkError | InternalServerError | InvalidDeletionIdError | InvalidNextTokenError + Cause.TimeoutError | SdkError | InternalServerError | InvalidDeletionIdError | InvalidNextTokenError >; /** @@ -1435,7 +1427,7 @@ interface SSMService$ { options?: HttpHandlerOptions, ): Effect.Effect< DescribeMaintenanceWindowExecutionTaskInvocationsCommandOutput, - Cause.TimeoutException | SdkError | DoesNotExistError | InternalServerError + Cause.TimeoutError | SdkError | DoesNotExistError | InternalServerError >; /** @@ -1446,7 +1438,7 @@ interface SSMService$ { options?: HttpHandlerOptions, ): Effect.Effect< DescribeMaintenanceWindowExecutionTasksCommandOutput, - Cause.TimeoutException | SdkError | DoesNotExistError | InternalServerError + Cause.TimeoutError | SdkError | DoesNotExistError | InternalServerError >; /** @@ -1457,7 +1449,7 @@ interface SSMService$ { options?: HttpHandlerOptions, ): Effect.Effect< DescribeMaintenanceWindowExecutionsCommandOutput, - Cause.TimeoutException | SdkError | InternalServerError + Cause.TimeoutError | SdkError | InternalServerError >; /** @@ -1468,7 +1460,7 @@ interface SSMService$ { options?: HttpHandlerOptions, ): Effect.Effect< DescribeMaintenanceWindowScheduleCommandOutput, - Cause.TimeoutException | SdkError | DoesNotExistError | InternalServerError + Cause.TimeoutError | SdkError | DoesNotExistError | InternalServerError >; /** @@ -1479,7 +1471,7 @@ interface SSMService$ { options?: HttpHandlerOptions, ): Effect.Effect< DescribeMaintenanceWindowTargetsCommandOutput, - Cause.TimeoutException | SdkError | DoesNotExistError | InternalServerError + Cause.TimeoutError | SdkError | DoesNotExistError | InternalServerError >; /** @@ -1490,7 +1482,7 @@ interface SSMService$ { options?: HttpHandlerOptions, ): Effect.Effect< DescribeMaintenanceWindowTasksCommandOutput, - Cause.TimeoutException | SdkError | DoesNotExistError | InternalServerError + Cause.TimeoutError | SdkError | DoesNotExistError | InternalServerError >; /** @@ -1501,7 +1493,7 @@ interface SSMService$ { options?: HttpHandlerOptions, ): Effect.Effect< DescribeMaintenanceWindowsCommandOutput, - Cause.TimeoutException | SdkError | InternalServerError + Cause.TimeoutError | SdkError | InternalServerError >; /** @@ -1512,7 +1504,7 @@ interface SSMService$ { options?: HttpHandlerOptions, ): Effect.Effect< DescribeMaintenanceWindowsForTargetCommandOutput, - Cause.TimeoutException | SdkError | InternalServerError + Cause.TimeoutError | SdkError | InternalServerError >; /** @@ -1523,7 +1515,7 @@ interface SSMService$ { options?: HttpHandlerOptions, ): Effect.Effect< DescribeOpsItemsCommandOutput, - Cause.TimeoutException | SdkError | InternalServerError + Cause.TimeoutError | SdkError | InternalServerError >; /** @@ -1534,7 +1526,7 @@ interface SSMService$ { options?: HttpHandlerOptions, ): Effect.Effect< DescribeParametersCommandOutput, - | Cause.TimeoutException + | Cause.TimeoutError | SdkError | InternalServerError | InvalidFilterKeyError @@ -1551,7 +1543,7 @@ interface SSMService$ { options?: HttpHandlerOptions, ): Effect.Effect< DescribePatchBaselinesCommandOutput, - Cause.TimeoutException | SdkError | InternalServerError + Cause.TimeoutError | SdkError | InternalServerError >; /** @@ -1562,7 +1554,7 @@ interface SSMService$ { options?: HttpHandlerOptions, ): Effect.Effect< DescribePatchGroupStateCommandOutput, - Cause.TimeoutException | SdkError | InternalServerError | InvalidNextTokenError + Cause.TimeoutError | SdkError | InternalServerError | InvalidNextTokenError >; /** @@ -1573,7 +1565,7 @@ interface SSMService$ { options?: HttpHandlerOptions, ): Effect.Effect< DescribePatchGroupsCommandOutput, - Cause.TimeoutException | SdkError | InternalServerError + Cause.TimeoutError | SdkError | InternalServerError >; /** @@ -1584,7 +1576,7 @@ interface SSMService$ { options?: HttpHandlerOptions, ): Effect.Effect< DescribePatchPropertiesCommandOutput, - Cause.TimeoutException | SdkError | InternalServerError + Cause.TimeoutError | SdkError | InternalServerError >; /** @@ -1595,7 +1587,7 @@ interface SSMService$ { options?: HttpHandlerOptions, ): Effect.Effect< DescribeSessionsCommandOutput, - Cause.TimeoutException | SdkError | InternalServerError | InvalidFilterKeyError | InvalidNextTokenError + Cause.TimeoutError | SdkError | InternalServerError | InvalidFilterKeyError | InvalidNextTokenError >; /** @@ -1606,7 +1598,7 @@ interface SSMService$ { options?: HttpHandlerOptions, ): Effect.Effect< DisassociateOpsItemRelatedItemCommandOutput, - | Cause.TimeoutException + | Cause.TimeoutError | SdkError | InternalServerError | OpsItemConflictError @@ -1623,7 +1615,7 @@ interface SSMService$ { options?: HttpHandlerOptions, ): Effect.Effect< GetAccessTokenCommandOutput, - | Cause.TimeoutException + | Cause.TimeoutError | SdkError | AccessDeniedError | InternalServerError @@ -1640,7 +1632,7 @@ interface SSMService$ { options?: HttpHandlerOptions, ): Effect.Effect< GetAutomationExecutionCommandOutput, - Cause.TimeoutException | SdkError | AutomationExecutionNotFoundError | InternalServerError + Cause.TimeoutError | SdkError | AutomationExecutionNotFoundError | InternalServerError >; /** @@ -1651,7 +1643,7 @@ interface SSMService$ { options?: HttpHandlerOptions, ): Effect.Effect< GetCalendarStateCommandOutput, - | Cause.TimeoutException + | Cause.TimeoutError | SdkError | InternalServerError | InvalidDocumentError @@ -1667,7 +1659,7 @@ interface SSMService$ { options?: HttpHandlerOptions, ): Effect.Effect< GetCommandInvocationCommandOutput, - | Cause.TimeoutException + | Cause.TimeoutError | SdkError | InternalServerError | InvalidCommandIdError @@ -1684,7 +1676,7 @@ interface SSMService$ { options?: HttpHandlerOptions, ): Effect.Effect< GetConnectionStatusCommandOutput, - Cause.TimeoutException | SdkError | InternalServerError + Cause.TimeoutError | SdkError | InternalServerError >; /** @@ -1695,7 +1687,7 @@ interface SSMService$ { options?: HttpHandlerOptions, ): Effect.Effect< GetDefaultPatchBaselineCommandOutput, - Cause.TimeoutException | SdkError | InternalServerError + Cause.TimeoutError | SdkError | InternalServerError >; /** @@ -1706,7 +1698,7 @@ interface SSMService$ { options?: HttpHandlerOptions, ): Effect.Effect< GetDeployablePatchSnapshotForInstanceCommandOutput, - | Cause.TimeoutException + | Cause.TimeoutError | SdkError | InternalServerError | UnsupportedFeatureRequiredError @@ -1721,7 +1713,7 @@ interface SSMService$ { options?: HttpHandlerOptions, ): Effect.Effect< GetDocumentCommandOutput, - Cause.TimeoutException | SdkError | InternalServerError | InvalidDocumentError | InvalidDocumentVersionError + Cause.TimeoutError | SdkError | InternalServerError | InvalidDocumentError | InvalidDocumentVersionError >; /** @@ -1732,7 +1724,7 @@ interface SSMService$ { options?: HttpHandlerOptions, ): Effect.Effect< GetExecutionPreviewCommandOutput, - Cause.TimeoutException | SdkError | InternalServerError | ResourceNotFoundError + Cause.TimeoutError | SdkError | InternalServerError | ResourceNotFoundError >; /** @@ -1743,7 +1735,7 @@ interface SSMService$ { options?: HttpHandlerOptions, ): Effect.Effect< GetInventoryCommandOutput, - | Cause.TimeoutException + | Cause.TimeoutError | SdkError | InternalServerError | InvalidAggregatorError @@ -1762,7 +1754,7 @@ interface SSMService$ { options?: HttpHandlerOptions, ): Effect.Effect< GetInventorySchemaCommandOutput, - Cause.TimeoutException | SdkError | InternalServerError | InvalidNextTokenError | InvalidTypeNameError + Cause.TimeoutError | SdkError | InternalServerError | InvalidNextTokenError | InvalidTypeNameError >; /** @@ -1773,7 +1765,7 @@ interface SSMService$ { options?: HttpHandlerOptions, ): Effect.Effect< GetMaintenanceWindowCommandOutput, - Cause.TimeoutException | SdkError | DoesNotExistError | InternalServerError + Cause.TimeoutError | SdkError | DoesNotExistError | InternalServerError >; /** @@ -1784,7 +1776,7 @@ interface SSMService$ { options?: HttpHandlerOptions, ): Effect.Effect< GetMaintenanceWindowExecutionCommandOutput, - Cause.TimeoutException | SdkError | DoesNotExistError | InternalServerError + Cause.TimeoutError | SdkError | DoesNotExistError | InternalServerError >; /** @@ -1795,7 +1787,7 @@ interface SSMService$ { options?: HttpHandlerOptions, ): Effect.Effect< GetMaintenanceWindowExecutionTaskCommandOutput, - Cause.TimeoutException | SdkError | DoesNotExistError | InternalServerError + Cause.TimeoutError | SdkError | DoesNotExistError | InternalServerError >; /** @@ -1806,7 +1798,7 @@ interface SSMService$ { options?: HttpHandlerOptions, ): Effect.Effect< GetMaintenanceWindowExecutionTaskInvocationCommandOutput, - Cause.TimeoutException | SdkError | DoesNotExistError | InternalServerError + Cause.TimeoutError | SdkError | DoesNotExistError | InternalServerError >; /** @@ -1817,7 +1809,7 @@ interface SSMService$ { options?: HttpHandlerOptions, ): Effect.Effect< GetMaintenanceWindowTaskCommandOutput, - Cause.TimeoutException | SdkError | DoesNotExistError | InternalServerError + Cause.TimeoutError | SdkError | DoesNotExistError | InternalServerError >; /** @@ -1828,7 +1820,7 @@ interface SSMService$ { options?: HttpHandlerOptions, ): Effect.Effect< GetOpsItemCommandOutput, - Cause.TimeoutException | SdkError | InternalServerError | OpsItemAccessDeniedError | OpsItemNotFoundError + Cause.TimeoutError | SdkError | InternalServerError | OpsItemAccessDeniedError | OpsItemNotFoundError >; /** @@ -1839,7 +1831,7 @@ interface SSMService$ { options?: HttpHandlerOptions, ): Effect.Effect< GetOpsMetadataCommandOutput, - Cause.TimeoutException | SdkError | InternalServerError | OpsMetadataInvalidArgumentError | OpsMetadataNotFoundError + Cause.TimeoutError | SdkError | InternalServerError | OpsMetadataInvalidArgumentError | OpsMetadataNotFoundError >; /** @@ -1850,7 +1842,7 @@ interface SSMService$ { options?: HttpHandlerOptions, ): Effect.Effect< GetOpsSummaryCommandOutput, - | Cause.TimeoutException + | Cause.TimeoutError | SdkError | InternalServerError | InvalidAggregatorError @@ -1868,7 +1860,7 @@ interface SSMService$ { options?: HttpHandlerOptions, ): Effect.Effect< GetParameterCommandOutput, - | Cause.TimeoutException + | Cause.TimeoutError | SdkError | InternalServerError | InvalidKeyIdError @@ -1884,7 +1876,7 @@ interface SSMService$ { options?: HttpHandlerOptions, ): Effect.Effect< GetParameterHistoryCommandOutput, - | Cause.TimeoutException + | Cause.TimeoutError | SdkError | InternalServerError | InvalidKeyIdError @@ -1900,7 +1892,7 @@ interface SSMService$ { options?: HttpHandlerOptions, ): Effect.Effect< GetParametersCommandOutput, - Cause.TimeoutException | SdkError | InternalServerError | InvalidKeyIdError + Cause.TimeoutError | SdkError | InternalServerError | InvalidKeyIdError >; /** @@ -1911,7 +1903,7 @@ interface SSMService$ { options?: HttpHandlerOptions, ): Effect.Effect< GetParametersByPathCommandOutput, - | Cause.TimeoutException + | Cause.TimeoutError | SdkError | InternalServerError | InvalidFilterKeyError @@ -1929,7 +1921,7 @@ interface SSMService$ { options?: HttpHandlerOptions, ): Effect.Effect< GetPatchBaselineCommandOutput, - Cause.TimeoutException | SdkError | DoesNotExistError | InternalServerError | InvalidResourceIdError + Cause.TimeoutError | SdkError | DoesNotExistError | InternalServerError | InvalidResourceIdError >; /** @@ -1940,7 +1932,7 @@ interface SSMService$ { options?: HttpHandlerOptions, ): Effect.Effect< GetPatchBaselineForPatchGroupCommandOutput, - Cause.TimeoutException | SdkError | InternalServerError + Cause.TimeoutError | SdkError | InternalServerError >; /** @@ -1951,11 +1943,7 @@ interface SSMService$ { options?: HttpHandlerOptions, ): Effect.Effect< GetResourcePoliciesCommandOutput, - | Cause.TimeoutException - | SdkError - | InternalServerError - | ResourceNotFoundError - | ResourcePolicyInvalidParameterError + Cause.TimeoutError | SdkError | InternalServerError | ResourceNotFoundError | ResourcePolicyInvalidParameterError >; /** @@ -1966,7 +1954,7 @@ interface SSMService$ { options?: HttpHandlerOptions, ): Effect.Effect< GetServiceSettingCommandOutput, - Cause.TimeoutException | SdkError | InternalServerError | ServiceSettingNotFoundError + Cause.TimeoutError | SdkError | InternalServerError | ServiceSettingNotFoundError >; /** @@ -1977,7 +1965,7 @@ interface SSMService$ { options?: HttpHandlerOptions, ): Effect.Effect< LabelParameterVersionCommandOutput, - | Cause.TimeoutException + | Cause.TimeoutError | SdkError | InternalServerError | ParameterNotFoundError @@ -1994,7 +1982,7 @@ interface SSMService$ { options?: HttpHandlerOptions, ): Effect.Effect< ListAssociationVersionsCommandOutput, - Cause.TimeoutException | SdkError | AssociationDoesNotExistError | InternalServerError | InvalidNextTokenError + Cause.TimeoutError | SdkError | AssociationDoesNotExistError | InternalServerError | InvalidNextTokenError >; /** @@ -2005,7 +1993,7 @@ interface SSMService$ { options?: HttpHandlerOptions, ): Effect.Effect< ListAssociationsCommandOutput, - Cause.TimeoutException | SdkError | InternalServerError | InvalidNextTokenError + Cause.TimeoutError | SdkError | InternalServerError | InvalidNextTokenError >; /** @@ -2016,7 +2004,7 @@ interface SSMService$ { options?: HttpHandlerOptions, ): Effect.Effect< ListCommandInvocationsCommandOutput, - | Cause.TimeoutException + | Cause.TimeoutError | SdkError | InternalServerError | InvalidCommandIdError @@ -2033,7 +2021,7 @@ interface SSMService$ { options?: HttpHandlerOptions, ): Effect.Effect< ListCommandsCommandOutput, - | Cause.TimeoutException + | Cause.TimeoutError | SdkError | InternalServerError | InvalidCommandIdError @@ -2050,7 +2038,7 @@ interface SSMService$ { options?: HttpHandlerOptions, ): Effect.Effect< ListComplianceItemsCommandOutput, - | Cause.TimeoutException + | Cause.TimeoutError | SdkError | InternalServerError | InvalidFilterError @@ -2067,7 +2055,7 @@ interface SSMService$ { options?: HttpHandlerOptions, ): Effect.Effect< ListComplianceSummariesCommandOutput, - Cause.TimeoutException | SdkError | InternalServerError | InvalidFilterError | InvalidNextTokenError + Cause.TimeoutError | SdkError | InternalServerError | InvalidFilterError | InvalidNextTokenError >; /** @@ -2078,7 +2066,7 @@ interface SSMService$ { options?: HttpHandlerOptions, ): Effect.Effect< ListDocumentMetadataHistoryCommandOutput, - | Cause.TimeoutException + | Cause.TimeoutError | SdkError | InternalServerError | InvalidDocumentError @@ -2094,7 +2082,7 @@ interface SSMService$ { options?: HttpHandlerOptions, ): Effect.Effect< ListDocumentVersionsCommandOutput, - Cause.TimeoutException | SdkError | InternalServerError | InvalidDocumentError | InvalidNextTokenError + Cause.TimeoutError | SdkError | InternalServerError | InvalidDocumentError | InvalidNextTokenError >; /** @@ -2105,7 +2093,7 @@ interface SSMService$ { options?: HttpHandlerOptions, ): Effect.Effect< ListDocumentsCommandOutput, - Cause.TimeoutException | SdkError | InternalServerError | InvalidFilterKeyError | InvalidNextTokenError + Cause.TimeoutError | SdkError | InternalServerError | InvalidFilterKeyError | InvalidNextTokenError >; /** @@ -2116,7 +2104,7 @@ interface SSMService$ { options?: HttpHandlerOptions, ): Effect.Effect< ListInventoryEntriesCommandOutput, - | Cause.TimeoutException + | Cause.TimeoutError | SdkError | InternalServerError | InvalidFilterError @@ -2133,7 +2121,7 @@ interface SSMService$ { options?: HttpHandlerOptions, ): Effect.Effect< ListNodesCommandOutput, - | Cause.TimeoutException + | Cause.TimeoutError | SdkError | InternalServerError | InvalidFilterError @@ -2150,7 +2138,7 @@ interface SSMService$ { options?: HttpHandlerOptions, ): Effect.Effect< ListNodesSummaryCommandOutput, - | Cause.TimeoutException + | Cause.TimeoutError | SdkError | InternalServerError | InvalidAggregatorError @@ -2168,7 +2156,7 @@ interface SSMService$ { options?: HttpHandlerOptions, ): Effect.Effect< ListOpsItemEventsCommandOutput, - | Cause.TimeoutException + | Cause.TimeoutError | SdkError | InternalServerError | OpsItemInvalidParameterError @@ -2184,7 +2172,7 @@ interface SSMService$ { options?: HttpHandlerOptions, ): Effect.Effect< ListOpsItemRelatedItemsCommandOutput, - Cause.TimeoutException | SdkError | InternalServerError | OpsItemInvalidParameterError + Cause.TimeoutError | SdkError | InternalServerError | OpsItemInvalidParameterError >; /** @@ -2195,7 +2183,7 @@ interface SSMService$ { options?: HttpHandlerOptions, ): Effect.Effect< ListOpsMetadataCommandOutput, - Cause.TimeoutException | SdkError | InternalServerError | OpsMetadataInvalidArgumentError + Cause.TimeoutError | SdkError | InternalServerError | OpsMetadataInvalidArgumentError >; /** @@ -2206,7 +2194,7 @@ interface SSMService$ { options?: HttpHandlerOptions, ): Effect.Effect< ListResourceComplianceSummariesCommandOutput, - Cause.TimeoutException | SdkError | InternalServerError | InvalidFilterError | InvalidNextTokenError + Cause.TimeoutError | SdkError | InternalServerError | InvalidFilterError | InvalidNextTokenError >; /** @@ -2217,7 +2205,7 @@ interface SSMService$ { options?: HttpHandlerOptions, ): Effect.Effect< ListResourceDataSyncCommandOutput, - | Cause.TimeoutException + | Cause.TimeoutError | SdkError | InternalServerError | InvalidNextTokenError @@ -2232,7 +2220,7 @@ interface SSMService$ { options?: HttpHandlerOptions, ): Effect.Effect< ListTagsForResourceCommandOutput, - Cause.TimeoutException | SdkError | InternalServerError | InvalidResourceIdError | InvalidResourceTypeError + Cause.TimeoutError | SdkError | InternalServerError | InvalidResourceIdError | InvalidResourceTypeError >; /** @@ -2243,7 +2231,7 @@ interface SSMService$ { options?: HttpHandlerOptions, ): Effect.Effect< ModifyDocumentPermissionCommandOutput, - | Cause.TimeoutException + | Cause.TimeoutError | SdkError | DocumentLimitExceededError | DocumentPermissionLimitError @@ -2260,7 +2248,7 @@ interface SSMService$ { options?: HttpHandlerOptions, ): Effect.Effect< PutComplianceItemsCommandOutput, - | Cause.TimeoutException + | Cause.TimeoutError | SdkError | ComplianceTypeCountLimitExceededError | InternalServerError @@ -2279,7 +2267,7 @@ interface SSMService$ { options?: HttpHandlerOptions, ): Effect.Effect< PutInventoryCommandOutput, - | Cause.TimeoutException + | Cause.TimeoutError | SdkError | CustomSchemaCountLimitExceededError | InternalServerError @@ -2303,7 +2291,7 @@ interface SSMService$ { options?: HttpHandlerOptions, ): Effect.Effect< PutParameterCommandOutput, - | Cause.TimeoutException + | Cause.TimeoutError | SdkError | HierarchyLevelLimitExceededError | HierarchyTypeMismatchError @@ -2330,7 +2318,7 @@ interface SSMService$ { options?: HttpHandlerOptions, ): Effect.Effect< PutResourcePolicyCommandOutput, - | Cause.TimeoutException + | Cause.TimeoutError | SdkError | InternalServerError | MalformedResourcePolicyDocumentError @@ -2349,7 +2337,7 @@ interface SSMService$ { options?: HttpHandlerOptions, ): Effect.Effect< RegisterDefaultPatchBaselineCommandOutput, - Cause.TimeoutException | SdkError | DoesNotExistError | InternalServerError | InvalidResourceIdError + Cause.TimeoutError | SdkError | DoesNotExistError | InternalServerError | InvalidResourceIdError >; /** @@ -2360,7 +2348,7 @@ interface SSMService$ { options?: HttpHandlerOptions, ): Effect.Effect< RegisterPatchBaselineForPatchGroupCommandOutput, - | Cause.TimeoutException + | Cause.TimeoutError | SdkError | AlreadyExistsError | DoesNotExistError @@ -2377,7 +2365,7 @@ interface SSMService$ { options?: HttpHandlerOptions, ): Effect.Effect< RegisterTargetWithMaintenanceWindowCommandOutput, - | Cause.TimeoutException + | Cause.TimeoutError | SdkError | DoesNotExistError | IdempotentParameterMismatchError @@ -2393,7 +2381,7 @@ interface SSMService$ { options?: HttpHandlerOptions, ): Effect.Effect< RegisterTaskWithMaintenanceWindowCommandOutput, - | Cause.TimeoutException + | Cause.TimeoutError | SdkError | DoesNotExistError | FeatureNotAvailableError @@ -2410,7 +2398,7 @@ interface SSMService$ { options?: HttpHandlerOptions, ): Effect.Effect< RemoveTagsFromResourceCommandOutput, - | Cause.TimeoutException + | Cause.TimeoutError | SdkError | InternalServerError | InvalidResourceIdError @@ -2426,7 +2414,7 @@ interface SSMService$ { options?: HttpHandlerOptions, ): Effect.Effect< ResetServiceSettingCommandOutput, - Cause.TimeoutException | SdkError | InternalServerError | ServiceSettingNotFoundError | TooManyUpdatesError + Cause.TimeoutError | SdkError | InternalServerError | ServiceSettingNotFoundError | TooManyUpdatesError >; /** @@ -2437,7 +2425,7 @@ interface SSMService$ { options?: HttpHandlerOptions, ): Effect.Effect< ResumeSessionCommandOutput, - Cause.TimeoutException | SdkError | DoesNotExistError | InternalServerError + Cause.TimeoutError | SdkError | DoesNotExistError | InternalServerError >; /** @@ -2448,7 +2436,7 @@ interface SSMService$ { options?: HttpHandlerOptions, ): Effect.Effect< SendAutomationSignalCommandOutput, - | Cause.TimeoutException + | Cause.TimeoutError | SdkError | AutomationExecutionNotFoundError | AutomationStepNotFoundError @@ -2464,7 +2452,7 @@ interface SSMService$ { options?: HttpHandlerOptions, ): Effect.Effect< SendCommandCommandOutput, - | Cause.TimeoutException + | Cause.TimeoutError | SdkError | DuplicateInstanceIdError | InternalServerError @@ -2487,7 +2475,7 @@ interface SSMService$ { options?: HttpHandlerOptions, ): Effect.Effect< StartAccessRequestCommandOutput, - | Cause.TimeoutException + | Cause.TimeoutError | SdkError | AccessDeniedError | InternalServerError @@ -2505,7 +2493,7 @@ interface SSMService$ { options?: HttpHandlerOptions, ): Effect.Effect< StartAssociationsOnceCommandOutput, - Cause.TimeoutException | SdkError | AssociationDoesNotExistError | InvalidAssociationError + Cause.TimeoutError | SdkError | AssociationDoesNotExistError | InvalidAssociationError >; /** @@ -2516,7 +2504,7 @@ interface SSMService$ { options?: HttpHandlerOptions, ): Effect.Effect< StartAutomationExecutionCommandOutput, - | Cause.TimeoutException + | Cause.TimeoutError | SdkError | AutomationDefinitionNotFoundError | AutomationDefinitionVersionNotFoundError @@ -2535,7 +2523,7 @@ interface SSMService$ { options?: HttpHandlerOptions, ): Effect.Effect< StartChangeRequestExecutionCommandOutput, - | Cause.TimeoutException + | Cause.TimeoutError | SdkError | AutomationDefinitionNotApprovedError | AutomationDefinitionNotFoundError @@ -2555,7 +2543,7 @@ interface SSMService$ { options?: HttpHandlerOptions, ): Effect.Effect< StartExecutionPreviewCommandOutput, - Cause.TimeoutException | SdkError | InternalServerError | ValidationError + Cause.TimeoutError | SdkError | InternalServerError | ValidationError >; /** @@ -2566,7 +2554,7 @@ interface SSMService$ { options?: HttpHandlerOptions, ): Effect.Effect< StartSessionCommandOutput, - Cause.TimeoutException | SdkError | InternalServerError | InvalidDocumentError | TargetNotConnectedError + Cause.TimeoutError | SdkError | InternalServerError | InvalidDocumentError | TargetNotConnectedError >; /** @@ -2577,7 +2565,7 @@ interface SSMService$ { options?: HttpHandlerOptions, ): Effect.Effect< StopAutomationExecutionCommandOutput, - | Cause.TimeoutException + | Cause.TimeoutError | SdkError | AutomationExecutionNotFoundError | InternalServerError @@ -2592,7 +2580,7 @@ interface SSMService$ { options?: HttpHandlerOptions, ): Effect.Effect< TerminateSessionCommandOutput, - Cause.TimeoutException | SdkError | InternalServerError + Cause.TimeoutError | SdkError | InternalServerError >; /** @@ -2603,7 +2591,7 @@ interface SSMService$ { options?: HttpHandlerOptions, ): Effect.Effect< UnlabelParameterVersionCommandOutput, - | Cause.TimeoutException + | Cause.TimeoutError | SdkError | InternalServerError | ParameterNotFoundError @@ -2619,7 +2607,7 @@ interface SSMService$ { options?: HttpHandlerOptions, ): Effect.Effect< UpdateAssociationCommandOutput, - | Cause.TimeoutException + | Cause.TimeoutError | SdkError | AssociationDoesNotExistError | AssociationVersionLimitExceededError @@ -2644,7 +2632,7 @@ interface SSMService$ { options?: HttpHandlerOptions, ): Effect.Effect< UpdateAssociationStatusCommandOutput, - | Cause.TimeoutException + | Cause.TimeoutError | SdkError | AssociationDoesNotExistError | InternalServerError @@ -2662,7 +2650,7 @@ interface SSMService$ { options?: HttpHandlerOptions, ): Effect.Effect< UpdateDocumentCommandOutput, - | Cause.TimeoutException + | Cause.TimeoutError | SdkError | DocumentVersionLimitExceededError | DuplicateDocumentContentError @@ -2684,7 +2672,7 @@ interface SSMService$ { options?: HttpHandlerOptions, ): Effect.Effect< UpdateDocumentDefaultVersionCommandOutput, - | Cause.TimeoutException + | Cause.TimeoutError | SdkError | InternalServerError | InvalidDocumentError @@ -2700,7 +2688,7 @@ interface SSMService$ { options?: HttpHandlerOptions, ): Effect.Effect< UpdateDocumentMetadataCommandOutput, - | Cause.TimeoutException + | Cause.TimeoutError | SdkError | InternalServerError | InvalidDocumentError @@ -2717,7 +2705,7 @@ interface SSMService$ { options?: HttpHandlerOptions, ): Effect.Effect< UpdateMaintenanceWindowCommandOutput, - Cause.TimeoutException | SdkError | DoesNotExistError | InternalServerError + Cause.TimeoutError | SdkError | DoesNotExistError | InternalServerError >; /** @@ -2728,7 +2716,7 @@ interface SSMService$ { options?: HttpHandlerOptions, ): Effect.Effect< UpdateMaintenanceWindowTargetCommandOutput, - Cause.TimeoutException | SdkError | DoesNotExistError | InternalServerError + Cause.TimeoutError | SdkError | DoesNotExistError | InternalServerError >; /** @@ -2739,7 +2727,7 @@ interface SSMService$ { options?: HttpHandlerOptions, ): Effect.Effect< UpdateMaintenanceWindowTaskCommandOutput, - Cause.TimeoutException | SdkError | DoesNotExistError | InternalServerError + Cause.TimeoutError | SdkError | DoesNotExistError | InternalServerError >; /** @@ -2750,7 +2738,7 @@ interface SSMService$ { options?: HttpHandlerOptions, ): Effect.Effect< UpdateManagedInstanceRoleCommandOutput, - Cause.TimeoutException | SdkError | InternalServerError | InvalidInstanceIdError + Cause.TimeoutError | SdkError | InternalServerError | InvalidInstanceIdError >; /** @@ -2761,7 +2749,7 @@ interface SSMService$ { options?: HttpHandlerOptions, ): Effect.Effect< UpdateOpsItemCommandOutput, - | Cause.TimeoutException + | Cause.TimeoutError | SdkError | InternalServerError | OpsItemAccessDeniedError @@ -2780,7 +2768,7 @@ interface SSMService$ { options?: HttpHandlerOptions, ): Effect.Effect< UpdateOpsMetadataCommandOutput, - | Cause.TimeoutException + | Cause.TimeoutError | SdkError | InternalServerError | OpsMetadataInvalidArgumentError @@ -2797,7 +2785,7 @@ interface SSMService$ { options?: HttpHandlerOptions, ): Effect.Effect< UpdatePatchBaselineCommandOutput, - Cause.TimeoutException | SdkError | DoesNotExistError | InternalServerError + Cause.TimeoutError | SdkError | DoesNotExistError | InternalServerError >; /** @@ -2808,7 +2796,7 @@ interface SSMService$ { options?: HttpHandlerOptions, ): Effect.Effect< UpdateResourceDataSyncCommandOutput, - | Cause.TimeoutException + | Cause.TimeoutError | SdkError | InternalServerError | ResourceDataSyncConflictError @@ -2824,7 +2812,7 @@ interface SSMService$ { options?: HttpHandlerOptions, ): Effect.Effect< UpdateServiceSettingCommandOutput, - Cause.TimeoutException | SdkError | InternalServerError | ServiceSettingNotFoundError | TooManyUpdatesError + Cause.TimeoutError | SdkError | InternalServerError | ServiceSettingNotFoundError | TooManyUpdatesError >; } @@ -2849,10 +2837,10 @@ export const makeSSMService = Effect.gen(function*() { * @since 1.0.0 * @category models */ -export class SSMService extends Effect.Tag("@effect-aws/client-ssm/SSMService")< +export class SSMService extends ServiceMap.Service< SSMService, SSMService$ ->() { +>()("@effect-aws/client-ssm/SSMService") { static readonly defaultLayer = Layer.effect(this, makeSSMService).pipe(Layer.provide(Instance.layer)); static readonly layer = (config: SSMService.Config) => Layer.effect(this, makeSSMService).pipe( diff --git a/packages/client-ssm/src/SSMServiceConfig.ts b/packages/client-ssm/src/SSMServiceConfig.ts index 7efec103..f8e4dcce 100644 --- a/packages/client-ssm/src/SSMServiceConfig.ts +++ b/packages/client-ssm/src/SSMServiceConfig.ts @@ -3,18 +3,17 @@ */ import type { SSMClientConfig } from "@aws-sdk/client-ssm"; import { ServiceLogger } from "@effect-aws/commons"; -import { Effect, FiberRef, Layer } from "effect"; +import { Effect, Layer, ServiceMap } from "effect"; import { dual } from "effect/Function"; -import { globalValue } from "effect/GlobalValue"; import type { SSMService } from "./SSMService.js"; /** * @since 1.0.0 * @category ssm service config */ -const currentSSMServiceConfig = globalValue( +const currentSSMServiceConfig = ServiceMap.Reference( "@effect-aws/client-ssm/currentSSMServiceConfig", - () => FiberRef.unsafeMake({}), + { defaultValue: () => ({}) }, ); /** @@ -27,21 +26,21 @@ export const withSSMServiceConfig: { } = dual( 2, (effect: Effect.Effect, config: SSMService.Config): Effect.Effect => - Effect.locally(effect, currentSSMServiceConfig, config), + Effect.provideService(effect, currentSSMServiceConfig, config), ); /** * @since 1.0.0 * @category ssm service config */ -export const setSSMServiceConfig = (config: SSMService.Config) => Layer.locallyScoped(currentSSMServiceConfig, config); +export const setSSMServiceConfig = (config: SSMService.Config) => Layer.succeed(currentSSMServiceConfig, config); /** * @since 1.0.0 * @category adapters */ export const toSSMClientConfig: Effect.Effect = Effect.gen(function*() { - const { logger: serviceLogger, ...config } = yield* FiberRef.get(currentSSMServiceConfig); + const { logger: serviceLogger, ...config } = yield* currentSSMServiceConfig; const logger = serviceLogger === true ? yield* ServiceLogger.toClientLogger(ServiceLogger.defaultServiceLogger) diff --git a/packages/client-ssm/test/SSM.test.ts b/packages/client-ssm/test/SSM.test.ts index 09fd43f1..87c65c3b 100644 --- a/packages/client-ssm/test/SSM.test.ts +++ b/packages/client-ssm/test/SSM.test.ts @@ -26,7 +26,7 @@ describe("SSMClientImpl", () => { const args = {} as unknown as DescribeParametersCommandInput; - const program = SSM.describeParameters(args); + const program = SSM.use((svc) => svc.describeParameters(args)); const result = await pipe( program, @@ -46,7 +46,7 @@ describe("SSMClientImpl", () => { const args = {} as unknown as DescribeParametersCommandInput; - const program = SSM.describeParameters(args); + const program = SSM.use((svc) => svc.describeParameters(args)); const result = await pipe( program, @@ -69,7 +69,7 @@ describe("SSMClientImpl", () => { const args = {} as unknown as DescribeParametersCommandInput; - const program = SSM.describeParameters(args); + const program = SSM.use((svc) => svc.describeParameters(args)); const result = await pipe( program, @@ -93,7 +93,7 @@ describe("SSMClientImpl", () => { const args = {} as unknown as DescribeParametersCommandInput; - const program = SSM.describeParameters(args); + const program = SSM.use((svc) => svc.describeParameters(args)); const result = await pipe( program, @@ -121,7 +121,7 @@ describe("SSMClientImpl", () => { const args = {} as unknown as DescribeParametersCommandInput; - const program = SSM.describeParameters(args); + const program = SSM.use((svc) => svc.describeParameters(args)); const result = await pipe( program, @@ -131,7 +131,7 @@ describe("SSMClientImpl", () => { expect(result).toEqual( Exit.fail( - SdkError({ + new SdkError({ ...new Error("test"), name: "SdkError", message: "test", @@ -156,7 +156,7 @@ describe("SSMClientImpl", () => { const args = {} as unknown as DescribeParametersCommandInput; - const program = SSM.describeParameters(args).pipe( + const program = SSM.use((svc) => svc.describeParameters(args)).pipe( Effect.catchTag("NotHandledException" as any, () => Effect.succeed(null)), ); @@ -166,9 +166,9 @@ describe("SSMClientImpl", () => { Effect.runPromiseExit, ); - expect(result).toEqual( + expect(result).toContainEqual( Exit.fail( - SdkError({ + new SdkError({ ...new Error("test"), name: "SdkError", message: "test", diff --git a/packages/client-sts/.projen/deps.json b/packages/client-sts/.projen/deps.json index 699aa292..e91fd8e7 100644 --- a/packages/client-sts/.projen/deps.json +++ b/packages/client-sts/.projen/deps.json @@ -7,6 +7,7 @@ }, { "name": "effect", + "version": "4.0.0-beta.8", "type": "build" }, { @@ -16,7 +17,7 @@ }, { "name": "effect", - "version": ">=3.0.4 <4.0.0", + "version": ">=4.0.0 <5.0.0", "type": "peer" }, { diff --git a/packages/client-sts/README.md b/packages/client-sts/README.md index 9fa35360..04a6d9be 100644 --- a/packages/client-sts/README.md +++ b/packages/client-sts/README.md @@ -16,7 +16,7 @@ With default STSClient instance: ```typescript import { STS } from "@effect-aws/client-sts"; -const program = STS.getCallerIdentity(args); +const program = STS.use((svc) => svc.getCallerIdentity(args)); const result = pipe( program, @@ -30,7 +30,7 @@ With custom STSClient instance: ```typescript import { STS } from "@effect-aws/client-sts"; -const program = STS.getCallerIdentity(args); +const program = STS.use((svc) => svc.getCallerIdentity(args)); const result = await pipe( program, @@ -46,7 +46,7 @@ With custom STSClient configuration: ```typescript import { STS } from "@effect-aws/client-sts"; -const program = STS.getCallerIdentity(args); +const program = STS.use((svc) => svc.getCallerIdentity(args)); const result = await pipe( program, diff --git a/packages/client-sts/package.json b/packages/client-sts/package.json index 91496046..b30093b8 100644 --- a/packages/client-sts/package.json +++ b/packages/client-sts/package.json @@ -26,11 +26,11 @@ }, "devDependencies": { "@types/node": "ts5.4", - "effect": "^3.16.4", + "effect": "4.0.0-beta.8", "typescript": "^5.4.2" }, "peerDependencies": { - "effect": ">=3.0.4 <4.0.0" + "effect": ">=4.0.0 <5.0.0" }, "dependencies": { "@aws-sdk/client-sts": "^3", diff --git a/packages/client-sts/src/STSClientInstance.ts b/packages/client-sts/src/STSClientInstance.ts index 3e744c76..f022e9cb 100644 --- a/packages/client-sts/src/STSClientInstance.ts +++ b/packages/client-sts/src/STSClientInstance.ts @@ -2,16 +2,16 @@ * @since 1.0.0 */ import { STSClient } from "@aws-sdk/client-sts"; -import { Context, Effect, Layer } from "effect"; +import { Effect, Layer, ServiceMap } from "effect"; import * as STSServiceConfig from "./STSServiceConfig.js"; /** * @since 1.0.0 * @category tags */ -export class STSClientInstance extends Context.Tag( +export class STSClientInstance extends ServiceMap.Service()( "@effect-aws/client-sts/STSClientInstance", -)() {} +) {} /** * @since 1.0.0 @@ -30,4 +30,4 @@ export const make = Effect.flatMap( * @since 1.0.0 * @category layers */ -export const layer = Layer.scoped(STSClientInstance, make); +export const layer = Layer.effect(STSClientInstance, make); diff --git a/packages/client-sts/src/STSService.ts b/packages/client-sts/src/STSService.ts index 86b6d3e2..c0971cfe 100644 --- a/packages/client-sts/src/STSService.ts +++ b/packages/client-sts/src/STSService.ts @@ -41,7 +41,7 @@ import { import type { HttpHandlerOptions, ServiceLogger } from "@effect-aws/commons"; import { Service } from "@effect-aws/commons"; import type { Cause } from "effect"; -import { Effect, Layer } from "effect"; +import { Effect, Layer, ServiceMap } from "effect"; import type { ExpiredTokenError, ExpiredTradeInTokenError, @@ -86,7 +86,7 @@ interface STSService$ { options?: HttpHandlerOptions, ): Effect.Effect< AssumeRoleCommandOutput, - | Cause.TimeoutException + | Cause.TimeoutError | SdkError | ExpiredTokenError | MalformedPolicyDocumentError @@ -102,7 +102,7 @@ interface STSService$ { options?: HttpHandlerOptions, ): Effect.Effect< AssumeRoleWithSAMLCommandOutput, - | Cause.TimeoutException + | Cause.TimeoutError | SdkError | ExpiredTokenError | IDPRejectedClaimError @@ -120,7 +120,7 @@ interface STSService$ { options?: HttpHandlerOptions, ): Effect.Effect< AssumeRoleWithWebIdentityCommandOutput, - | Cause.TimeoutException + | Cause.TimeoutError | SdkError | ExpiredTokenError | IDPCommunicationError @@ -139,7 +139,7 @@ interface STSService$ { options?: HttpHandlerOptions, ): Effect.Effect< AssumeRootCommandOutput, - Cause.TimeoutException | SdkError | ExpiredTokenError | RegionDisabledError + Cause.TimeoutError | SdkError | ExpiredTokenError | RegionDisabledError >; /** @@ -150,7 +150,7 @@ interface STSService$ { options?: HttpHandlerOptions, ): Effect.Effect< DecodeAuthorizationMessageCommandOutput, - Cause.TimeoutException | SdkError | InvalidAuthorizationMessageError + Cause.TimeoutError | SdkError | InvalidAuthorizationMessageError >; /** @@ -161,7 +161,7 @@ interface STSService$ { options?: HttpHandlerOptions, ): Effect.Effect< GetAccessKeyInfoCommandOutput, - Cause.TimeoutException | SdkError + Cause.TimeoutError | SdkError >; /** @@ -172,7 +172,7 @@ interface STSService$ { options?: HttpHandlerOptions, ): Effect.Effect< GetCallerIdentityCommandOutput, - Cause.TimeoutException | SdkError + Cause.TimeoutError | SdkError >; /** @@ -183,7 +183,7 @@ interface STSService$ { options?: HttpHandlerOptions, ): Effect.Effect< GetDelegatedAccessTokenCommandOutput, - Cause.TimeoutException | SdkError | ExpiredTradeInTokenError | PackedPolicyTooLargeError | RegionDisabledError + Cause.TimeoutError | SdkError | ExpiredTradeInTokenError | PackedPolicyTooLargeError | RegionDisabledError >; /** @@ -194,7 +194,7 @@ interface STSService$ { options?: HttpHandlerOptions, ): Effect.Effect< GetFederationTokenCommandOutput, - Cause.TimeoutException | SdkError | MalformedPolicyDocumentError | PackedPolicyTooLargeError | RegionDisabledError + Cause.TimeoutError | SdkError | MalformedPolicyDocumentError | PackedPolicyTooLargeError | RegionDisabledError >; /** @@ -205,7 +205,7 @@ interface STSService$ { options?: HttpHandlerOptions, ): Effect.Effect< GetSessionTokenCommandOutput, - Cause.TimeoutException | SdkError | RegionDisabledError + Cause.TimeoutError | SdkError | RegionDisabledError >; /** @@ -216,7 +216,7 @@ interface STSService$ { options?: HttpHandlerOptions, ): Effect.Effect< GetWebIdentityTokenCommandOutput, - | Cause.TimeoutException + | Cause.TimeoutError | SdkError | JWTPayloadSizeExceededError | OutboundWebIdentityFederationDisabledError @@ -245,10 +245,10 @@ export const makeSTSService = Effect.gen(function*() { * @since 1.0.0 * @category models */ -export class STSService extends Effect.Tag("@effect-aws/client-sts/STSService")< +export class STSService extends ServiceMap.Service< STSService, STSService$ ->() { +>()("@effect-aws/client-sts/STSService") { static readonly defaultLayer = Layer.effect(this, makeSTSService).pipe(Layer.provide(Instance.layer)); static readonly layer = (config: STSService.Config) => Layer.effect(this, makeSTSService).pipe( diff --git a/packages/client-sts/src/STSServiceConfig.ts b/packages/client-sts/src/STSServiceConfig.ts index 19aef45f..53b4b7f2 100644 --- a/packages/client-sts/src/STSServiceConfig.ts +++ b/packages/client-sts/src/STSServiceConfig.ts @@ -3,18 +3,17 @@ */ import type { STSClientConfig } from "@aws-sdk/client-sts"; import { ServiceLogger } from "@effect-aws/commons"; -import { Effect, FiberRef, Layer } from "effect"; +import { Effect, Layer, ServiceMap } from "effect"; import { dual } from "effect/Function"; -import { globalValue } from "effect/GlobalValue"; import type { STSService } from "./STSService.js"; /** * @since 1.0.0 * @category sts service config */ -const currentSTSServiceConfig = globalValue( +const currentSTSServiceConfig = ServiceMap.Reference( "@effect-aws/client-sts/currentSTSServiceConfig", - () => FiberRef.unsafeMake({}), + { defaultValue: () => ({}) }, ); /** @@ -27,21 +26,21 @@ export const withSTSServiceConfig: { } = dual( 2, (effect: Effect.Effect, config: STSService.Config): Effect.Effect => - Effect.locally(effect, currentSTSServiceConfig, config), + Effect.provideService(effect, currentSTSServiceConfig, config), ); /** * @since 1.0.0 * @category sts service config */ -export const setSTSServiceConfig = (config: STSService.Config) => Layer.locallyScoped(currentSTSServiceConfig, config); +export const setSTSServiceConfig = (config: STSService.Config) => Layer.succeed(currentSTSServiceConfig, config); /** * @since 1.0.0 * @category adapters */ export const toSTSClientConfig: Effect.Effect = Effect.gen(function*() { - const { logger: serviceLogger, ...config } = yield* FiberRef.get(currentSTSServiceConfig); + const { logger: serviceLogger, ...config } = yield* currentSTSServiceConfig; const logger = serviceLogger === true ? yield* ServiceLogger.toClientLogger(ServiceLogger.defaultServiceLogger) diff --git a/packages/client-sts/test/STS.test.ts b/packages/client-sts/test/STS.test.ts index 46373965..cad0c9bb 100644 --- a/packages/client-sts/test/STS.test.ts +++ b/packages/client-sts/test/STS.test.ts @@ -26,7 +26,7 @@ describe("STSClientImpl", () => { const args = {} as unknown as GetCallerIdentityCommandInput; - const program = STS.getCallerIdentity(args); + const program = STS.use((svc) => svc.getCallerIdentity(args)); const result = await pipe( program, @@ -46,7 +46,7 @@ describe("STSClientImpl", () => { const args = {} as unknown as GetCallerIdentityCommandInput; - const program = STS.getCallerIdentity(args); + const program = STS.use((svc) => svc.getCallerIdentity(args)); const result = await pipe( program, @@ -69,7 +69,7 @@ describe("STSClientImpl", () => { const args = {} as unknown as GetCallerIdentityCommandInput; - const program = STS.getCallerIdentity(args); + const program = STS.use((svc) => svc.getCallerIdentity(args)); const result = await pipe( program, @@ -93,7 +93,7 @@ describe("STSClientImpl", () => { const args = {} as unknown as GetCallerIdentityCommandInput; - const program = STS.getCallerIdentity(args); + const program = STS.use((svc) => svc.getCallerIdentity(args)); const result = await pipe( program, @@ -121,7 +121,7 @@ describe("STSClientImpl", () => { const args = {} as unknown as GetCallerIdentityCommandInput; - const program = STS.getCallerIdentity(args); + const program = STS.use((svc) => svc.getCallerIdentity(args)); const result = await pipe( program, @@ -131,7 +131,7 @@ describe("STSClientImpl", () => { expect(result).toEqual( Exit.fail( - SdkError({ + new SdkError({ ...new Error("test"), name: "SdkError", message: "test", @@ -156,7 +156,7 @@ describe("STSClientImpl", () => { const args = {} as unknown as GetCallerIdentityCommandInput; - const program = STS.getCallerIdentity(args).pipe( + const program = STS.use((svc) => svc.getCallerIdentity(args)).pipe( Effect.catchTag("NotHandledException" as any, () => Effect.succeed(null)), ); @@ -166,9 +166,9 @@ describe("STSClientImpl", () => { Effect.runPromiseExit, ); - expect(result).toEqual( + expect(result).toContainEqual( Exit.fail( - SdkError({ + new SdkError({ ...new Error("test"), name: "SdkError", message: "test", diff --git a/packages/client-textract/.projen/deps.json b/packages/client-textract/.projen/deps.json index 746ca60a..313b7dc6 100644 --- a/packages/client-textract/.projen/deps.json +++ b/packages/client-textract/.projen/deps.json @@ -7,6 +7,7 @@ }, { "name": "effect", + "version": "4.0.0-beta.8", "type": "build" }, { @@ -16,7 +17,7 @@ }, { "name": "effect", - "version": ">=3.0.4 <4.0.0", + "version": ">=4.0.0 <5.0.0", "type": "peer" }, { diff --git a/packages/client-textract/README.md b/packages/client-textract/README.md index e719bdf5..e1cc67a4 100644 --- a/packages/client-textract/README.md +++ b/packages/client-textract/README.md @@ -16,7 +16,7 @@ With default TextractClient instance: ```typescript import { Textract } from "@effect-aws/client-textract"; -const program = Textract.listAdapters(args); +const program = Textract.use((svc) => svc.listAdapters(args)); const result = pipe( program, @@ -30,7 +30,7 @@ With custom TextractClient instance: ```typescript import { Textract } from "@effect-aws/client-textract"; -const program = Textract.listAdapters(args); +const program = Textract.use((svc) => svc.listAdapters(args)); const result = await pipe( program, @@ -46,7 +46,7 @@ With custom TextractClient configuration: ```typescript import { Textract } from "@effect-aws/client-textract"; -const program = Textract.listAdapters(args); +const program = Textract.use((svc) => svc.listAdapters(args)); const result = await pipe( program, diff --git a/packages/client-textract/package.json b/packages/client-textract/package.json index 8ebb2af9..43e09b8b 100644 --- a/packages/client-textract/package.json +++ b/packages/client-textract/package.json @@ -26,11 +26,11 @@ }, "devDependencies": { "@types/node": "ts5.4", - "effect": "^3.16.4", + "effect": "4.0.0-beta.8", "typescript": "^5.4.2" }, "peerDependencies": { - "effect": ">=3.0.4 <4.0.0" + "effect": ">=4.0.0 <5.0.0" }, "dependencies": { "@aws-sdk/client-textract": "^3", diff --git a/packages/client-textract/src/TextractClientInstance.ts b/packages/client-textract/src/TextractClientInstance.ts index c5de5549..f6726ca4 100644 --- a/packages/client-textract/src/TextractClientInstance.ts +++ b/packages/client-textract/src/TextractClientInstance.ts @@ -2,16 +2,16 @@ * @since 1.0.0 */ import { TextractClient } from "@aws-sdk/client-textract"; -import { Context, Effect, Layer } from "effect"; +import { Effect, Layer, ServiceMap } from "effect"; import * as TextractServiceConfig from "./TextractServiceConfig.js"; /** * @since 1.0.0 * @category tags */ -export class TextractClientInstance extends Context.Tag( +export class TextractClientInstance extends ServiceMap.Service()( "@effect-aws/client-textract/TextractClientInstance", -)() {} +) {} /** * @since 1.0.0 @@ -30,4 +30,4 @@ export const make = Effect.flatMap( * @since 1.0.0 * @category layers */ -export const layer = Layer.scoped(TextractClientInstance, make); +export const layer = Layer.effect(TextractClientInstance, make); diff --git a/packages/client-textract/src/TextractService.ts b/packages/client-textract/src/TextractService.ts index a09f3bbf..afcb022d 100644 --- a/packages/client-textract/src/TextractService.ts +++ b/packages/client-textract/src/TextractService.ts @@ -83,7 +83,7 @@ import { import type { HttpHandlerOptions, ServiceLogger } from "@effect-aws/commons"; import { Service } from "@effect-aws/commons"; import type { Cause } from "effect"; -import { Effect, Layer } from "effect"; +import { Effect, Layer, ServiceMap } from "effect"; import type { AccessDeniedError, BadDocumentError, @@ -148,7 +148,7 @@ interface TextractService$ { options?: HttpHandlerOptions, ): Effect.Effect< AnalyzeDocumentCommandOutput, - | Cause.TimeoutException + | Cause.TimeoutError | SdkError | AccessDeniedError | BadDocumentError @@ -170,7 +170,7 @@ interface TextractService$ { options?: HttpHandlerOptions, ): Effect.Effect< AnalyzeExpenseCommandOutput, - | Cause.TimeoutException + | Cause.TimeoutError | SdkError | AccessDeniedError | BadDocumentError @@ -191,7 +191,7 @@ interface TextractService$ { options?: HttpHandlerOptions, ): Effect.Effect< AnalyzeIDCommandOutput, - | Cause.TimeoutException + | Cause.TimeoutError | SdkError | AccessDeniedError | BadDocumentError @@ -212,7 +212,7 @@ interface TextractService$ { options?: HttpHandlerOptions, ): Effect.Effect< CreateAdapterCommandOutput, - | Cause.TimeoutException + | Cause.TimeoutError | SdkError | AccessDeniedError | ConflictError @@ -234,7 +234,7 @@ interface TextractService$ { options?: HttpHandlerOptions, ): Effect.Effect< CreateAdapterVersionCommandOutput, - | Cause.TimeoutException + | Cause.TimeoutError | SdkError | AccessDeniedError | ConflictError @@ -259,7 +259,7 @@ interface TextractService$ { options?: HttpHandlerOptions, ): Effect.Effect< DeleteAdapterCommandOutput, - | Cause.TimeoutException + | Cause.TimeoutError | SdkError | AccessDeniedError | ConflictError @@ -279,7 +279,7 @@ interface TextractService$ { options?: HttpHandlerOptions, ): Effect.Effect< DeleteAdapterVersionCommandOutput, - | Cause.TimeoutException + | Cause.TimeoutError | SdkError | AccessDeniedError | ConflictError @@ -299,7 +299,7 @@ interface TextractService$ { options?: HttpHandlerOptions, ): Effect.Effect< DetectDocumentTextCommandOutput, - | Cause.TimeoutException + | Cause.TimeoutError | SdkError | AccessDeniedError | BadDocumentError @@ -320,7 +320,7 @@ interface TextractService$ { options?: HttpHandlerOptions, ): Effect.Effect< GetAdapterCommandOutput, - | Cause.TimeoutException + | Cause.TimeoutError | SdkError | AccessDeniedError | InternalServerError @@ -339,7 +339,7 @@ interface TextractService$ { options?: HttpHandlerOptions, ): Effect.Effect< GetAdapterVersionCommandOutput, - | Cause.TimeoutException + | Cause.TimeoutError | SdkError | AccessDeniedError | InternalServerError @@ -358,7 +358,7 @@ interface TextractService$ { options?: HttpHandlerOptions, ): Effect.Effect< GetDocumentAnalysisCommandOutput, - | Cause.TimeoutException + | Cause.TimeoutError | SdkError | AccessDeniedError | InternalServerError @@ -378,7 +378,7 @@ interface TextractService$ { options?: HttpHandlerOptions, ): Effect.Effect< GetDocumentTextDetectionCommandOutput, - | Cause.TimeoutException + | Cause.TimeoutError | SdkError | AccessDeniedError | InternalServerError @@ -398,7 +398,7 @@ interface TextractService$ { options?: HttpHandlerOptions, ): Effect.Effect< GetExpenseAnalysisCommandOutput, - | Cause.TimeoutException + | Cause.TimeoutError | SdkError | AccessDeniedError | InternalServerError @@ -418,7 +418,7 @@ interface TextractService$ { options?: HttpHandlerOptions, ): Effect.Effect< GetLendingAnalysisCommandOutput, - | Cause.TimeoutException + | Cause.TimeoutError | SdkError | AccessDeniedError | InternalServerError @@ -438,7 +438,7 @@ interface TextractService$ { options?: HttpHandlerOptions, ): Effect.Effect< GetLendingAnalysisSummaryCommandOutput, - | Cause.TimeoutException + | Cause.TimeoutError | SdkError | AccessDeniedError | InternalServerError @@ -458,7 +458,7 @@ interface TextractService$ { options?: HttpHandlerOptions, ): Effect.Effect< ListAdapterVersionsCommandOutput, - | Cause.TimeoutException + | Cause.TimeoutError | SdkError | AccessDeniedError | InternalServerError @@ -477,7 +477,7 @@ interface TextractService$ { options?: HttpHandlerOptions, ): Effect.Effect< ListAdaptersCommandOutput, - | Cause.TimeoutException + | Cause.TimeoutError | SdkError | AccessDeniedError | InternalServerError @@ -495,7 +495,7 @@ interface TextractService$ { options?: HttpHandlerOptions, ): Effect.Effect< ListTagsForResourceCommandOutput, - | Cause.TimeoutException + | Cause.TimeoutError | SdkError | AccessDeniedError | InternalServerError @@ -514,7 +514,7 @@ interface TextractService$ { options?: HttpHandlerOptions, ): Effect.Effect< StartDocumentAnalysisCommandOutput, - | Cause.TimeoutException + | Cause.TimeoutError | SdkError | AccessDeniedError | BadDocumentError @@ -538,7 +538,7 @@ interface TextractService$ { options?: HttpHandlerOptions, ): Effect.Effect< StartDocumentTextDetectionCommandOutput, - | Cause.TimeoutException + | Cause.TimeoutError | SdkError | AccessDeniedError | BadDocumentError @@ -562,7 +562,7 @@ interface TextractService$ { options?: HttpHandlerOptions, ): Effect.Effect< StartExpenseAnalysisCommandOutput, - | Cause.TimeoutException + | Cause.TimeoutError | SdkError | AccessDeniedError | BadDocumentError @@ -586,7 +586,7 @@ interface TextractService$ { options?: HttpHandlerOptions, ): Effect.Effect< StartLendingAnalysisCommandOutput, - | Cause.TimeoutException + | Cause.TimeoutError | SdkError | AccessDeniedError | BadDocumentError @@ -610,7 +610,7 @@ interface TextractService$ { options?: HttpHandlerOptions, ): Effect.Effect< TagResourceCommandOutput, - | Cause.TimeoutException + | Cause.TimeoutError | SdkError | AccessDeniedError | InternalServerError @@ -630,7 +630,7 @@ interface TextractService$ { options?: HttpHandlerOptions, ): Effect.Effect< UntagResourceCommandOutput, - | Cause.TimeoutException + | Cause.TimeoutError | SdkError | AccessDeniedError | InternalServerError @@ -649,7 +649,7 @@ interface TextractService$ { options?: HttpHandlerOptions, ): Effect.Effect< UpdateAdapterCommandOutput, - | Cause.TimeoutException + | Cause.TimeoutError | SdkError | AccessDeniedError | ConflictError @@ -683,10 +683,10 @@ export const makeTextractService = Effect.gen(function*() { * @since 1.0.0 * @category models */ -export class TextractService extends Effect.Tag("@effect-aws/client-textract/TextractService")< +export class TextractService extends ServiceMap.Service< TextractService, TextractService$ ->() { +>()("@effect-aws/client-textract/TextractService") { static readonly defaultLayer = Layer.effect(this, makeTextractService).pipe(Layer.provide(Instance.layer)); static readonly layer = (config: TextractService.Config) => Layer.effect(this, makeTextractService).pipe( diff --git a/packages/client-textract/src/TextractServiceConfig.ts b/packages/client-textract/src/TextractServiceConfig.ts index f17fb3ea..eea769a6 100644 --- a/packages/client-textract/src/TextractServiceConfig.ts +++ b/packages/client-textract/src/TextractServiceConfig.ts @@ -3,18 +3,17 @@ */ import type { TextractClientConfig } from "@aws-sdk/client-textract"; import { ServiceLogger } from "@effect-aws/commons"; -import { Effect, FiberRef, Layer } from "effect"; +import { Effect, Layer, ServiceMap } from "effect"; import { dual } from "effect/Function"; -import { globalValue } from "effect/GlobalValue"; import type { TextractService } from "./TextractService.js"; /** * @since 1.0.0 * @category textract service config */ -const currentTextractServiceConfig = globalValue( +const currentTextractServiceConfig = ServiceMap.Reference( "@effect-aws/client-textract/currentTextractServiceConfig", - () => FiberRef.unsafeMake({}), + { defaultValue: () => ({}) }, ); /** @@ -27,7 +26,7 @@ export const withTextractServiceConfig: { } = dual( 2, (effect: Effect.Effect, config: TextractService.Config): Effect.Effect => - Effect.locally(effect, currentTextractServiceConfig, config), + Effect.provideService(effect, currentTextractServiceConfig, config), ); /** @@ -35,14 +34,14 @@ export const withTextractServiceConfig: { * @category textract service config */ export const setTextractServiceConfig = (config: TextractService.Config) => - Layer.locallyScoped(currentTextractServiceConfig, config); + Layer.succeed(currentTextractServiceConfig, config); /** * @since 1.0.0 * @category adapters */ export const toTextractClientConfig: Effect.Effect = Effect.gen(function*() { - const { logger: serviceLogger, ...config } = yield* FiberRef.get(currentTextractServiceConfig); + const { logger: serviceLogger, ...config } = yield* currentTextractServiceConfig; const logger = serviceLogger === true ? yield* ServiceLogger.toClientLogger(ServiceLogger.defaultServiceLogger) diff --git a/packages/client-textract/test/Textract.test.ts b/packages/client-textract/test/Textract.test.ts index dcbd67fa..f03b8745 100644 --- a/packages/client-textract/test/Textract.test.ts +++ b/packages/client-textract/test/Textract.test.ts @@ -26,7 +26,7 @@ describe("TextractClientImpl", () => { const args = {} as unknown as ListAdaptersCommandInput; - const program = Textract.listAdapters(args); + const program = Textract.use((svc) => svc.listAdapters(args)); const result = await pipe( program, @@ -46,7 +46,7 @@ describe("TextractClientImpl", () => { const args = {} as unknown as ListAdaptersCommandInput; - const program = Textract.listAdapters(args); + const program = Textract.use((svc) => svc.listAdapters(args)); const result = await pipe( program, @@ -69,7 +69,7 @@ describe("TextractClientImpl", () => { const args = {} as unknown as ListAdaptersCommandInput; - const program = Textract.listAdapters(args); + const program = Textract.use((svc) => svc.listAdapters(args)); const result = await pipe( program, @@ -93,7 +93,7 @@ describe("TextractClientImpl", () => { const args = {} as unknown as ListAdaptersCommandInput; - const program = Textract.listAdapters(args); + const program = Textract.use((svc) => svc.listAdapters(args)); const result = await pipe( program, @@ -121,7 +121,7 @@ describe("TextractClientImpl", () => { const args = {} as unknown as ListAdaptersCommandInput; - const program = Textract.listAdapters(args); + const program = Textract.use((svc) => svc.listAdapters(args)); const result = await pipe( program, @@ -131,7 +131,7 @@ describe("TextractClientImpl", () => { expect(result).toEqual( Exit.fail( - SdkError({ + new SdkError({ ...new Error("test"), name: "SdkError", message: "test", @@ -156,7 +156,7 @@ describe("TextractClientImpl", () => { const args = {} as unknown as ListAdaptersCommandInput; - const program = Textract.listAdapters(args).pipe( + const program = Textract.use((svc) => svc.listAdapters(args)).pipe( Effect.catchTag("NotHandledException" as any, () => Effect.succeed(null)), ); @@ -166,9 +166,9 @@ describe("TextractClientImpl", () => { Effect.runPromiseExit, ); - expect(result).toEqual( + expect(result).toContainEqual( Exit.fail( - SdkError({ + new SdkError({ ...new Error("test"), name: "SdkError", message: "test", diff --git a/packages/client-timestream-influxdb/.projen/deps.json b/packages/client-timestream-influxdb/.projen/deps.json index c0e5659e..2be18d58 100644 --- a/packages/client-timestream-influxdb/.projen/deps.json +++ b/packages/client-timestream-influxdb/.projen/deps.json @@ -7,6 +7,7 @@ }, { "name": "effect", + "version": "4.0.0-beta.8", "type": "build" }, { @@ -16,7 +17,7 @@ }, { "name": "effect", - "version": ">=3.0.4 <4.0.0", + "version": ">=4.0.0 <5.0.0", "type": "peer" }, { diff --git a/packages/client-timestream-influxdb/README.md b/packages/client-timestream-influxdb/README.md index 7e918228..f141ff07 100644 --- a/packages/client-timestream-influxdb/README.md +++ b/packages/client-timestream-influxdb/README.md @@ -16,7 +16,7 @@ With default TimestreamInfluxDBClient instance: ```typescript import { TimestreamInfluxDB } from "@effect-aws/client-timestream-influxdb"; -const program = TimestreamInfluxDB.listDbClusters(args); +const program = TimestreamInfluxDB.use((svc) => svc.listDbClusters(args)); const result = pipe( program, @@ -30,7 +30,7 @@ With custom TimestreamInfluxDBClient instance: ```typescript import { TimestreamInfluxDB } from "@effect-aws/client-timestream-influxdb"; -const program = TimestreamInfluxDB.listDbClusters(args); +const program = TimestreamInfluxDB.use((svc) => svc.listDbClusters(args)); const result = await pipe( program, @@ -46,7 +46,7 @@ With custom TimestreamInfluxDBClient configuration: ```typescript import { TimestreamInfluxDB } from "@effect-aws/client-timestream-influxdb"; -const program = TimestreamInfluxDB.listDbClusters(args); +const program = TimestreamInfluxDB.use((svc) => svc.listDbClusters(args)); const result = await pipe( program, diff --git a/packages/client-timestream-influxdb/package.json b/packages/client-timestream-influxdb/package.json index 43912334..e2db533f 100644 --- a/packages/client-timestream-influxdb/package.json +++ b/packages/client-timestream-influxdb/package.json @@ -26,11 +26,11 @@ }, "devDependencies": { "@types/node": "ts5.4", - "effect": "^3.16.4", + "effect": "4.0.0-beta.8", "typescript": "^5.4.2" }, "peerDependencies": { - "effect": ">=3.0.4 <4.0.0" + "effect": ">=4.0.0 <5.0.0" }, "dependencies": { "@aws-sdk/client-timestream-influxdb": "^3", diff --git a/packages/client-timestream-influxdb/src/TimestreamInfluxDBClientInstance.ts b/packages/client-timestream-influxdb/src/TimestreamInfluxDBClientInstance.ts index 8c53e734..134cb3cf 100644 --- a/packages/client-timestream-influxdb/src/TimestreamInfluxDBClientInstance.ts +++ b/packages/client-timestream-influxdb/src/TimestreamInfluxDBClientInstance.ts @@ -2,16 +2,18 @@ * @since 1.0.0 */ import { TimestreamInfluxDBClient } from "@aws-sdk/client-timestream-influxdb"; -import { Context, Effect, Layer } from "effect"; +import { Effect, Layer, ServiceMap } from "effect"; import * as TimestreamInfluxDBServiceConfig from "./TimestreamInfluxDBServiceConfig.js"; /** * @since 1.0.0 * @category tags */ -export class TimestreamInfluxDBClientInstance extends Context.Tag( - "@effect-aws/client-timestream-influxdb/TimestreamInfluxDBClientInstance", -)() {} +export class TimestreamInfluxDBClientInstance + extends ServiceMap.Service()( + "@effect-aws/client-timestream-influxdb/TimestreamInfluxDBClientInstance", + ) +{} /** * @since 1.0.0 @@ -30,4 +32,4 @@ export const make = Effect.flatMap( * @since 1.0.0 * @category layers */ -export const layer = Layer.scoped(TimestreamInfluxDBClientInstance, make); +export const layer = Layer.effect(TimestreamInfluxDBClientInstance, make); diff --git a/packages/client-timestream-influxdb/src/TimestreamInfluxDBService.ts b/packages/client-timestream-influxdb/src/TimestreamInfluxDBService.ts index 458864b0..c9f32a2a 100644 --- a/packages/client-timestream-influxdb/src/TimestreamInfluxDBService.ts +++ b/packages/client-timestream-influxdb/src/TimestreamInfluxDBService.ts @@ -65,7 +65,7 @@ import { import type { HttpHandlerOptions, ServiceLogger } from "@effect-aws/commons"; import { Service } from "@effect-aws/commons"; import type { Cause } from "effect"; -import { Effect, Layer } from "effect"; +import { Effect, Layer, ServiceMap } from "effect"; import type { AccessDeniedError, ConflictError, @@ -113,7 +113,7 @@ interface TimestreamInfluxDBService$ { options?: HttpHandlerOptions, ): Effect.Effect< CreateDbClusterCommandOutput, - | Cause.TimeoutException + | Cause.TimeoutError | SdkError | AccessDeniedError | ConflictError @@ -132,7 +132,7 @@ interface TimestreamInfluxDBService$ { options?: HttpHandlerOptions, ): Effect.Effect< CreateDbInstanceCommandOutput, - | Cause.TimeoutException + | Cause.TimeoutError | SdkError | AccessDeniedError | ConflictError @@ -151,7 +151,7 @@ interface TimestreamInfluxDBService$ { options?: HttpHandlerOptions, ): Effect.Effect< CreateDbParameterGroupCommandOutput, - | Cause.TimeoutException + | Cause.TimeoutError | SdkError | AccessDeniedError | ConflictError @@ -170,7 +170,7 @@ interface TimestreamInfluxDBService$ { options?: HttpHandlerOptions, ): Effect.Effect< DeleteDbClusterCommandOutput, - | Cause.TimeoutException + | Cause.TimeoutError | SdkError | AccessDeniedError | ConflictError @@ -188,7 +188,7 @@ interface TimestreamInfluxDBService$ { options?: HttpHandlerOptions, ): Effect.Effect< DeleteDbInstanceCommandOutput, - | Cause.TimeoutException + | Cause.TimeoutError | SdkError | AccessDeniedError | ConflictError @@ -206,7 +206,7 @@ interface TimestreamInfluxDBService$ { options?: HttpHandlerOptions, ): Effect.Effect< GetDbClusterCommandOutput, - | Cause.TimeoutException + | Cause.TimeoutError | SdkError | AccessDeniedError | InternalServerError @@ -223,7 +223,7 @@ interface TimestreamInfluxDBService$ { options?: HttpHandlerOptions, ): Effect.Effect< GetDbInstanceCommandOutput, - | Cause.TimeoutException + | Cause.TimeoutError | SdkError | AccessDeniedError | InternalServerError @@ -240,7 +240,7 @@ interface TimestreamInfluxDBService$ { options?: HttpHandlerOptions, ): Effect.Effect< GetDbParameterGroupCommandOutput, - | Cause.TimeoutException + | Cause.TimeoutError | SdkError | AccessDeniedError | InternalServerError @@ -257,7 +257,7 @@ interface TimestreamInfluxDBService$ { options?: HttpHandlerOptions, ): Effect.Effect< ListDbClustersCommandOutput, - | Cause.TimeoutException + | Cause.TimeoutError | SdkError | AccessDeniedError | InternalServerError @@ -274,7 +274,7 @@ interface TimestreamInfluxDBService$ { options?: HttpHandlerOptions, ): Effect.Effect< ListDbInstancesCommandOutput, - | Cause.TimeoutException + | Cause.TimeoutError | SdkError | AccessDeniedError | InternalServerError @@ -291,7 +291,7 @@ interface TimestreamInfluxDBService$ { options?: HttpHandlerOptions, ): Effect.Effect< ListDbInstancesForClusterCommandOutput, - | Cause.TimeoutException + | Cause.TimeoutError | SdkError | AccessDeniedError | InternalServerError @@ -308,7 +308,7 @@ interface TimestreamInfluxDBService$ { options?: HttpHandlerOptions, ): Effect.Effect< ListDbParameterGroupsCommandOutput, - | Cause.TimeoutException + | Cause.TimeoutError | SdkError | AccessDeniedError | InternalServerError @@ -325,7 +325,7 @@ interface TimestreamInfluxDBService$ { options?: HttpHandlerOptions, ): Effect.Effect< ListTagsForResourceCommandOutput, - Cause.TimeoutException | SdkError | ResourceNotFoundError + Cause.TimeoutError | SdkError | ResourceNotFoundError >; /** @@ -336,7 +336,7 @@ interface TimestreamInfluxDBService$ { options?: HttpHandlerOptions, ): Effect.Effect< RebootDbClusterCommandOutput, - | Cause.TimeoutException + | Cause.TimeoutError | SdkError | AccessDeniedError | ConflictError @@ -354,7 +354,7 @@ interface TimestreamInfluxDBService$ { options?: HttpHandlerOptions, ): Effect.Effect< RebootDbInstanceCommandOutput, - | Cause.TimeoutException + | Cause.TimeoutError | SdkError | AccessDeniedError | ConflictError @@ -372,7 +372,7 @@ interface TimestreamInfluxDBService$ { options?: HttpHandlerOptions, ): Effect.Effect< TagResourceCommandOutput, - Cause.TimeoutException | SdkError | ResourceNotFoundError | ServiceQuotaExceededError + Cause.TimeoutError | SdkError | ResourceNotFoundError | ServiceQuotaExceededError >; /** @@ -383,7 +383,7 @@ interface TimestreamInfluxDBService$ { options?: HttpHandlerOptions, ): Effect.Effect< UntagResourceCommandOutput, - Cause.TimeoutException | SdkError | ResourceNotFoundError + Cause.TimeoutError | SdkError | ResourceNotFoundError >; /** @@ -394,7 +394,7 @@ interface TimestreamInfluxDBService$ { options?: HttpHandlerOptions, ): Effect.Effect< UpdateDbClusterCommandOutput, - | Cause.TimeoutException + | Cause.TimeoutError | SdkError | AccessDeniedError | ConflictError @@ -412,7 +412,7 @@ interface TimestreamInfluxDBService$ { options?: HttpHandlerOptions, ): Effect.Effect< UpdateDbInstanceCommandOutput, - | Cause.TimeoutException + | Cause.TimeoutError | SdkError | AccessDeniedError | ConflictError @@ -444,12 +444,10 @@ export const makeTimestreamInfluxDBService = Effect.gen(function*() { * @since 1.0.0 * @category models */ -export class TimestreamInfluxDBService - extends Effect.Tag("@effect-aws/client-timestream-influxdb/TimestreamInfluxDBService")< - TimestreamInfluxDBService, - TimestreamInfluxDBService$ - >() -{ +export class TimestreamInfluxDBService extends ServiceMap.Service< + TimestreamInfluxDBService, + TimestreamInfluxDBService$ +>()("@effect-aws/client-timestream-influxdb/TimestreamInfluxDBService") { static readonly defaultLayer = Layer.effect(this, makeTimestreamInfluxDBService).pipe(Layer.provide(Instance.layer)); static readonly layer = (config: TimestreamInfluxDBService.Config) => Layer.effect(this, makeTimestreamInfluxDBService).pipe( diff --git a/packages/client-timestream-influxdb/src/TimestreamInfluxDBServiceConfig.ts b/packages/client-timestream-influxdb/src/TimestreamInfluxDBServiceConfig.ts index 62594441..1181bca2 100644 --- a/packages/client-timestream-influxdb/src/TimestreamInfluxDBServiceConfig.ts +++ b/packages/client-timestream-influxdb/src/TimestreamInfluxDBServiceConfig.ts @@ -3,18 +3,17 @@ */ import type { TimestreamInfluxDBClientConfig } from "@aws-sdk/client-timestream-influxdb"; import { ServiceLogger } from "@effect-aws/commons"; -import { Effect, FiberRef, Layer } from "effect"; +import { Effect, Layer, ServiceMap } from "effect"; import { dual } from "effect/Function"; -import { globalValue } from "effect/GlobalValue"; import type { TimestreamInfluxDBService } from "./TimestreamInfluxDBService.js"; /** * @since 1.0.0 * @category timestream-influxdb service config */ -const currentTimestreamInfluxDBServiceConfig = globalValue( +const currentTimestreamInfluxDBServiceConfig = ServiceMap.Reference( "@effect-aws/client-timestream-influxdb/currentTimestreamInfluxDBServiceConfig", - () => FiberRef.unsafeMake({}), + { defaultValue: () => ({}) }, ); /** @@ -27,7 +26,7 @@ export const withTimestreamInfluxDBServiceConfig: { } = dual( 2, (effect: Effect.Effect, config: TimestreamInfluxDBService.Config): Effect.Effect => - Effect.locally(effect, currentTimestreamInfluxDBServiceConfig, config), + Effect.provideService(effect, currentTimestreamInfluxDBServiceConfig, config), ); /** @@ -35,14 +34,14 @@ export const withTimestreamInfluxDBServiceConfig: { * @category timestream-influxdb service config */ export const setTimestreamInfluxDBServiceConfig = (config: TimestreamInfluxDBService.Config) => - Layer.locallyScoped(currentTimestreamInfluxDBServiceConfig, config); + Layer.succeed(currentTimestreamInfluxDBServiceConfig, config); /** * @since 1.0.0 * @category adapters */ export const toTimestreamInfluxDBClientConfig: Effect.Effect = Effect.gen(function*() { - const { logger: serviceLogger, ...config } = yield* FiberRef.get(currentTimestreamInfluxDBServiceConfig); + const { logger: serviceLogger, ...config } = yield* currentTimestreamInfluxDBServiceConfig; const logger = serviceLogger === true ? yield* ServiceLogger.toClientLogger(ServiceLogger.defaultServiceLogger) diff --git a/packages/client-timestream-influxdb/test/TimestreamInfluxDB.test.ts b/packages/client-timestream-influxdb/test/TimestreamInfluxDB.test.ts index ad4a9a58..c6126767 100644 --- a/packages/client-timestream-influxdb/test/TimestreamInfluxDB.test.ts +++ b/packages/client-timestream-influxdb/test/TimestreamInfluxDB.test.ts @@ -26,7 +26,7 @@ describe("TimestreamInfluxDBClientImpl", () => { const args = {} as unknown as ListDbClustersCommandInput; - const program = TimestreamInfluxDB.listDbClusters(args); + const program = TimestreamInfluxDB.use((svc) => svc.listDbClusters(args)); const result = await pipe( program, @@ -46,7 +46,7 @@ describe("TimestreamInfluxDBClientImpl", () => { const args = {} as unknown as ListDbClustersCommandInput; - const program = TimestreamInfluxDB.listDbClusters(args); + const program = TimestreamInfluxDB.use((svc) => svc.listDbClusters(args)); const result = await pipe( program, @@ -69,7 +69,7 @@ describe("TimestreamInfluxDBClientImpl", () => { const args = {} as unknown as ListDbClustersCommandInput; - const program = TimestreamInfluxDB.listDbClusters(args); + const program = TimestreamInfluxDB.use((svc) => svc.listDbClusters(args)); const result = await pipe( program, @@ -93,7 +93,7 @@ describe("TimestreamInfluxDBClientImpl", () => { const args = {} as unknown as ListDbClustersCommandInput; - const program = TimestreamInfluxDB.listDbClusters(args); + const program = TimestreamInfluxDB.use((svc) => svc.listDbClusters(args)); const result = await pipe( program, @@ -121,7 +121,7 @@ describe("TimestreamInfluxDBClientImpl", () => { const args = {} as unknown as ListDbClustersCommandInput; - const program = TimestreamInfluxDB.listDbClusters(args); + const program = TimestreamInfluxDB.use((svc) => svc.listDbClusters(args)); const result = await pipe( program, @@ -131,7 +131,7 @@ describe("TimestreamInfluxDBClientImpl", () => { expect(result).toEqual( Exit.fail( - SdkError({ + new SdkError({ ...new Error("test"), name: "SdkError", message: "test", @@ -156,7 +156,7 @@ describe("TimestreamInfluxDBClientImpl", () => { const args = {} as unknown as ListDbClustersCommandInput; - const program = TimestreamInfluxDB.listDbClusters(args).pipe( + const program = TimestreamInfluxDB.use((svc) => svc.listDbClusters(args)).pipe( Effect.catchTag("NotHandledException" as any, () => Effect.succeed(null)), ); @@ -166,9 +166,9 @@ describe("TimestreamInfluxDBClientImpl", () => { Effect.runPromiseExit, ); - expect(result).toEqual( + expect(result).toContainEqual( Exit.fail( - SdkError({ + new SdkError({ ...new Error("test"), name: "SdkError", message: "test", diff --git a/packages/client-timestream-query/.projen/deps.json b/packages/client-timestream-query/.projen/deps.json index cf92e5eb..a160594b 100644 --- a/packages/client-timestream-query/.projen/deps.json +++ b/packages/client-timestream-query/.projen/deps.json @@ -7,6 +7,7 @@ }, { "name": "effect", + "version": "4.0.0-beta.8", "type": "build" }, { @@ -16,7 +17,7 @@ }, { "name": "effect", - "version": ">=3.0.4 <4.0.0", + "version": ">=4.0.0 <5.0.0", "type": "peer" }, { diff --git a/packages/client-timestream-query/README.md b/packages/client-timestream-query/README.md index 3605295d..82513278 100644 --- a/packages/client-timestream-query/README.md +++ b/packages/client-timestream-query/README.md @@ -16,7 +16,7 @@ With default TimestreamQueryClient instance: ```typescript import { TimestreamQuery } from "@effect-aws/client-timestream-query"; -const program = TimestreamQuery.listScheduledQueries(args); +const program = TimestreamQuery.use((svc) => svc.listScheduledQueries(args)); const result = pipe( program, @@ -30,7 +30,7 @@ With custom TimestreamQueryClient instance: ```typescript import { TimestreamQuery } from "@effect-aws/client-timestream-query"; -const program = TimestreamQuery.listScheduledQueries(args); +const program = TimestreamQuery.use((svc) => svc.listScheduledQueries(args)); const result = await pipe( program, @@ -46,7 +46,7 @@ With custom TimestreamQueryClient configuration: ```typescript import { TimestreamQuery } from "@effect-aws/client-timestream-query"; -const program = TimestreamQuery.listScheduledQueries(args); +const program = TimestreamQuery.use((svc) => svc.listScheduledQueries(args)); const result = await pipe( program, diff --git a/packages/client-timestream-query/package.json b/packages/client-timestream-query/package.json index 3796e0e0..408ef172 100644 --- a/packages/client-timestream-query/package.json +++ b/packages/client-timestream-query/package.json @@ -26,11 +26,11 @@ }, "devDependencies": { "@types/node": "ts5.4", - "effect": "^3.16.4", + "effect": "4.0.0-beta.8", "typescript": "^5.4.2" }, "peerDependencies": { - "effect": ">=3.0.4 <4.0.0" + "effect": ">=4.0.0 <5.0.0" }, "dependencies": { "@aws-sdk/client-timestream-query": "^3", diff --git a/packages/client-timestream-query/src/TimestreamQueryClientInstance.ts b/packages/client-timestream-query/src/TimestreamQueryClientInstance.ts index 7fc4d431..3dd7e498 100644 --- a/packages/client-timestream-query/src/TimestreamQueryClientInstance.ts +++ b/packages/client-timestream-query/src/TimestreamQueryClientInstance.ts @@ -2,16 +2,18 @@ * @since 1.0.0 */ import { TimestreamQueryClient } from "@aws-sdk/client-timestream-query"; -import { Context, Effect, Layer } from "effect"; +import { Effect, Layer, ServiceMap } from "effect"; import * as TimestreamQueryServiceConfig from "./TimestreamQueryServiceConfig.js"; /** * @since 1.0.0 * @category tags */ -export class TimestreamQueryClientInstance extends Context.Tag( - "@effect-aws/client-timestream-query/TimestreamQueryClientInstance", -)() {} +export class TimestreamQueryClientInstance + extends ServiceMap.Service()( + "@effect-aws/client-timestream-query/TimestreamQueryClientInstance", + ) +{} /** * @since 1.0.0 @@ -30,4 +32,4 @@ export const make = Effect.flatMap( * @since 1.0.0 * @category layers */ -export const layer = Layer.scoped(TimestreamQueryClientInstance, make); +export const layer = Layer.effect(TimestreamQueryClientInstance, make); diff --git a/packages/client-timestream-query/src/TimestreamQueryService.ts b/packages/client-timestream-query/src/TimestreamQueryService.ts index f023f788..ae0e4ddf 100644 --- a/packages/client-timestream-query/src/TimestreamQueryService.ts +++ b/packages/client-timestream-query/src/TimestreamQueryService.ts @@ -53,7 +53,7 @@ import { import type { HttpHandlerOptions, ServiceLogger } from "@effect-aws/commons"; import { Service } from "@effect-aws/commons"; import type { Cause } from "effect"; -import { Effect, Layer } from "effect"; +import { Effect, Layer, ServiceMap } from "effect"; import type { AccessDeniedError, ConflictError, @@ -99,7 +99,7 @@ interface TimestreamQueryService$ { options?: HttpHandlerOptions, ): Effect.Effect< CancelQueryCommandOutput, - | Cause.TimeoutException + | Cause.TimeoutError | SdkError | AccessDeniedError | InternalServerError @@ -116,7 +116,7 @@ interface TimestreamQueryService$ { options?: HttpHandlerOptions, ): Effect.Effect< CreateScheduledQueryCommandOutput, - | Cause.TimeoutException + | Cause.TimeoutError | SdkError | AccessDeniedError | ConflictError @@ -135,7 +135,7 @@ interface TimestreamQueryService$ { options?: HttpHandlerOptions, ): Effect.Effect< DeleteScheduledQueryCommandOutput, - | Cause.TimeoutException + | Cause.TimeoutError | SdkError | AccessDeniedError | InternalServerError @@ -153,7 +153,7 @@ interface TimestreamQueryService$ { options?: HttpHandlerOptions, ): Effect.Effect< DescribeAccountSettingsCommandOutput, - Cause.TimeoutException | SdkError | AccessDeniedError | InternalServerError | InvalidEndpointError | ThrottlingError + Cause.TimeoutError | SdkError | AccessDeniedError | InternalServerError | InvalidEndpointError | ThrottlingError >; /** @@ -164,7 +164,7 @@ interface TimestreamQueryService$ { options?: HttpHandlerOptions, ): Effect.Effect< DescribeEndpointsCommandOutput, - Cause.TimeoutException | SdkError | InternalServerError | ThrottlingError | ValidationError + Cause.TimeoutError | SdkError | InternalServerError | ThrottlingError | ValidationError >; /** @@ -175,7 +175,7 @@ interface TimestreamQueryService$ { options?: HttpHandlerOptions, ): Effect.Effect< DescribeScheduledQueryCommandOutput, - | Cause.TimeoutException + | Cause.TimeoutError | SdkError | AccessDeniedError | InternalServerError @@ -193,7 +193,7 @@ interface TimestreamQueryService$ { options?: HttpHandlerOptions, ): Effect.Effect< ExecuteScheduledQueryCommandOutput, - | Cause.TimeoutException + | Cause.TimeoutError | SdkError | AccessDeniedError | InternalServerError @@ -211,7 +211,7 @@ interface TimestreamQueryService$ { options?: HttpHandlerOptions, ): Effect.Effect< ListScheduledQueriesCommandOutput, - | Cause.TimeoutException + | Cause.TimeoutError | SdkError | AccessDeniedError | InternalServerError @@ -228,7 +228,7 @@ interface TimestreamQueryService$ { options?: HttpHandlerOptions, ): Effect.Effect< ListTagsForResourceCommandOutput, - Cause.TimeoutException | SdkError | InvalidEndpointError | ResourceNotFoundError | ThrottlingError | ValidationError + Cause.TimeoutError | SdkError | InvalidEndpointError | ResourceNotFoundError | ThrottlingError | ValidationError >; /** @@ -239,7 +239,7 @@ interface TimestreamQueryService$ { options?: HttpHandlerOptions, ): Effect.Effect< PrepareQueryCommandOutput, - | Cause.TimeoutException + | Cause.TimeoutError | SdkError | AccessDeniedError | InternalServerError @@ -256,7 +256,7 @@ interface TimestreamQueryService$ { options?: HttpHandlerOptions, ): Effect.Effect< QueryCommandOutput, - | Cause.TimeoutException + | Cause.TimeoutError | SdkError | AccessDeniedError | ConflictError @@ -275,7 +275,7 @@ interface TimestreamQueryService$ { options?: HttpHandlerOptions, ): Effect.Effect< TagResourceCommandOutput, - | Cause.TimeoutException + | Cause.TimeoutError | SdkError | InvalidEndpointError | ResourceNotFoundError @@ -292,7 +292,7 @@ interface TimestreamQueryService$ { options?: HttpHandlerOptions, ): Effect.Effect< UntagResourceCommandOutput, - Cause.TimeoutException | SdkError | InvalidEndpointError | ResourceNotFoundError | ThrottlingError | ValidationError + Cause.TimeoutError | SdkError | InvalidEndpointError | ResourceNotFoundError | ThrottlingError | ValidationError >; /** @@ -303,7 +303,7 @@ interface TimestreamQueryService$ { options?: HttpHandlerOptions, ): Effect.Effect< UpdateAccountSettingsCommandOutput, - | Cause.TimeoutException + | Cause.TimeoutError | SdkError | AccessDeniedError | InternalServerError @@ -320,7 +320,7 @@ interface TimestreamQueryService$ { options?: HttpHandlerOptions, ): Effect.Effect< UpdateScheduledQueryCommandOutput, - | Cause.TimeoutException + | Cause.TimeoutError | SdkError | AccessDeniedError | InternalServerError @@ -352,10 +352,10 @@ export const makeTimestreamQueryService = Effect.gen(function*() { * @since 1.0.0 * @category models */ -export class TimestreamQueryService extends Effect.Tag("@effect-aws/client-timestream-query/TimestreamQueryService")< +export class TimestreamQueryService extends ServiceMap.Service< TimestreamQueryService, TimestreamQueryService$ ->() { +>()("@effect-aws/client-timestream-query/TimestreamQueryService") { static readonly defaultLayer = Layer.effect(this, makeTimestreamQueryService).pipe(Layer.provide(Instance.layer)); static readonly layer = (config: TimestreamQueryService.Config) => Layer.effect(this, makeTimestreamQueryService).pipe( diff --git a/packages/client-timestream-query/src/TimestreamQueryServiceConfig.ts b/packages/client-timestream-query/src/TimestreamQueryServiceConfig.ts index 4d3f1c9f..f5391cbe 100644 --- a/packages/client-timestream-query/src/TimestreamQueryServiceConfig.ts +++ b/packages/client-timestream-query/src/TimestreamQueryServiceConfig.ts @@ -3,18 +3,17 @@ */ import type { TimestreamQueryClientConfig } from "@aws-sdk/client-timestream-query"; import { ServiceLogger } from "@effect-aws/commons"; -import { Effect, FiberRef, Layer } from "effect"; +import { Effect, Layer, ServiceMap } from "effect"; import { dual } from "effect/Function"; -import { globalValue } from "effect/GlobalValue"; import type { TimestreamQueryService } from "./TimestreamQueryService.js"; /** * @since 1.0.0 * @category timestream-query service config */ -const currentTimestreamQueryServiceConfig = globalValue( +const currentTimestreamQueryServiceConfig = ServiceMap.Reference( "@effect-aws/client-timestream-query/currentTimestreamQueryServiceConfig", - () => FiberRef.unsafeMake({}), + { defaultValue: () => ({}) }, ); /** @@ -27,7 +26,7 @@ export const withTimestreamQueryServiceConfig: { } = dual( 2, (effect: Effect.Effect, config: TimestreamQueryService.Config): Effect.Effect => - Effect.locally(effect, currentTimestreamQueryServiceConfig, config), + Effect.provideService(effect, currentTimestreamQueryServiceConfig, config), ); /** @@ -35,14 +34,14 @@ export const withTimestreamQueryServiceConfig: { * @category timestream-query service config */ export const setTimestreamQueryServiceConfig = (config: TimestreamQueryService.Config) => - Layer.locallyScoped(currentTimestreamQueryServiceConfig, config); + Layer.succeed(currentTimestreamQueryServiceConfig, config); /** * @since 1.0.0 * @category adapters */ export const toTimestreamQueryClientConfig: Effect.Effect = Effect.gen(function*() { - const { logger: serviceLogger, ...config } = yield* FiberRef.get(currentTimestreamQueryServiceConfig); + const { logger: serviceLogger, ...config } = yield* currentTimestreamQueryServiceConfig; const logger = serviceLogger === true ? yield* ServiceLogger.toClientLogger(ServiceLogger.defaultServiceLogger) diff --git a/packages/client-timestream-query/test/TimestreamQuery.test.ts b/packages/client-timestream-query/test/TimestreamQuery.test.ts index ce50c95b..5de8c4c8 100644 --- a/packages/client-timestream-query/test/TimestreamQuery.test.ts +++ b/packages/client-timestream-query/test/TimestreamQuery.test.ts @@ -26,7 +26,7 @@ describe("TimestreamQueryClientImpl", () => { const args = {} as unknown as ListScheduledQueriesCommandInput; - const program = TimestreamQuery.listScheduledQueries(args); + const program = TimestreamQuery.use((svc) => svc.listScheduledQueries(args)); const result = await pipe( program, @@ -46,7 +46,7 @@ describe("TimestreamQueryClientImpl", () => { const args = {} as unknown as ListScheduledQueriesCommandInput; - const program = TimestreamQuery.listScheduledQueries(args); + const program = TimestreamQuery.use((svc) => svc.listScheduledQueries(args)); const result = await pipe( program, @@ -69,7 +69,7 @@ describe("TimestreamQueryClientImpl", () => { const args = {} as unknown as ListScheduledQueriesCommandInput; - const program = TimestreamQuery.listScheduledQueries(args); + const program = TimestreamQuery.use((svc) => svc.listScheduledQueries(args)); const result = await pipe( program, @@ -93,7 +93,7 @@ describe("TimestreamQueryClientImpl", () => { const args = {} as unknown as ListScheduledQueriesCommandInput; - const program = TimestreamQuery.listScheduledQueries(args); + const program = TimestreamQuery.use((svc) => svc.listScheduledQueries(args)); const result = await pipe( program, @@ -121,7 +121,7 @@ describe("TimestreamQueryClientImpl", () => { const args = {} as unknown as ListScheduledQueriesCommandInput; - const program = TimestreamQuery.listScheduledQueries(args); + const program = TimestreamQuery.use((svc) => svc.listScheduledQueries(args)); const result = await pipe( program, @@ -131,7 +131,7 @@ describe("TimestreamQueryClientImpl", () => { expect(result).toEqual( Exit.fail( - SdkError({ + new SdkError({ ...new Error("test"), name: "SdkError", message: "test", @@ -156,7 +156,7 @@ describe("TimestreamQueryClientImpl", () => { const args = {} as unknown as ListScheduledQueriesCommandInput; - const program = TimestreamQuery.listScheduledQueries(args).pipe( + const program = TimestreamQuery.use((svc) => svc.listScheduledQueries(args)).pipe( Effect.catchTag("NotHandledException" as any, () => Effect.succeed(null)), ); @@ -166,9 +166,9 @@ describe("TimestreamQueryClientImpl", () => { Effect.runPromiseExit, ); - expect(result).toEqual( + expect(result).toContainEqual( Exit.fail( - SdkError({ + new SdkError({ ...new Error("test"), name: "SdkError", message: "test", diff --git a/packages/client-timestream-write/.projen/deps.json b/packages/client-timestream-write/.projen/deps.json index 463acc4b..d2684b5c 100644 --- a/packages/client-timestream-write/.projen/deps.json +++ b/packages/client-timestream-write/.projen/deps.json @@ -7,6 +7,7 @@ }, { "name": "effect", + "version": "4.0.0-beta.8", "type": "build" }, { @@ -16,7 +17,7 @@ }, { "name": "effect", - "version": ">=3.0.4 <4.0.0", + "version": ">=4.0.0 <5.0.0", "type": "peer" }, { diff --git a/packages/client-timestream-write/README.md b/packages/client-timestream-write/README.md index d1442571..3ccd5c61 100644 --- a/packages/client-timestream-write/README.md +++ b/packages/client-timestream-write/README.md @@ -16,7 +16,7 @@ With default TimestreamWriteClient instance: ```typescript import { TimestreamWrite } from "@effect-aws/client-timestream-write"; -const program = TimestreamWrite.listTables(args); +const program = TimestreamWrite.use((svc) => svc.listTables(args)); const result = pipe( program, @@ -30,7 +30,7 @@ With custom TimestreamWriteClient instance: ```typescript import { TimestreamWrite } from "@effect-aws/client-timestream-write"; -const program = TimestreamWrite.listTables(args); +const program = TimestreamWrite.use((svc) => svc.listTables(args)); const result = await pipe( program, @@ -46,7 +46,7 @@ With custom TimestreamWriteClient configuration: ```typescript import { TimestreamWrite } from "@effect-aws/client-timestream-write"; -const program = TimestreamWrite.listTables(args); +const program = TimestreamWrite.use((svc) => svc.listTables(args)); const result = await pipe( program, diff --git a/packages/client-timestream-write/package.json b/packages/client-timestream-write/package.json index 27ac3781..fccfcb8b 100644 --- a/packages/client-timestream-write/package.json +++ b/packages/client-timestream-write/package.json @@ -26,11 +26,11 @@ }, "devDependencies": { "@types/node": "ts5.4", - "effect": "^3.16.4", + "effect": "4.0.0-beta.8", "typescript": "^5.4.2" }, "peerDependencies": { - "effect": ">=3.0.4 <4.0.0" + "effect": ">=4.0.0 <5.0.0" }, "dependencies": { "@aws-sdk/client-timestream-write": "^3", diff --git a/packages/client-timestream-write/src/TimestreamWriteClientInstance.ts b/packages/client-timestream-write/src/TimestreamWriteClientInstance.ts index 107864f9..71f33845 100644 --- a/packages/client-timestream-write/src/TimestreamWriteClientInstance.ts +++ b/packages/client-timestream-write/src/TimestreamWriteClientInstance.ts @@ -2,16 +2,18 @@ * @since 1.0.0 */ import { TimestreamWriteClient } from "@aws-sdk/client-timestream-write"; -import { Context, Effect, Layer } from "effect"; +import { Effect, Layer, ServiceMap } from "effect"; import * as TimestreamWriteServiceConfig from "./TimestreamWriteServiceConfig.js"; /** * @since 1.0.0 * @category tags */ -export class TimestreamWriteClientInstance extends Context.Tag( - "@effect-aws/client-timestream-write/TimestreamWriteClientInstance", -)() {} +export class TimestreamWriteClientInstance + extends ServiceMap.Service()( + "@effect-aws/client-timestream-write/TimestreamWriteClientInstance", + ) +{} /** * @since 1.0.0 @@ -30,4 +32,4 @@ export const make = Effect.flatMap( * @since 1.0.0 * @category layers */ -export const layer = Layer.scoped(TimestreamWriteClientInstance, make); +export const layer = Layer.effect(TimestreamWriteClientInstance, make); diff --git a/packages/client-timestream-write/src/TimestreamWriteService.ts b/packages/client-timestream-write/src/TimestreamWriteService.ts index c9dd13bc..a56ec4a4 100644 --- a/packages/client-timestream-write/src/TimestreamWriteService.ts +++ b/packages/client-timestream-write/src/TimestreamWriteService.ts @@ -65,7 +65,7 @@ import { import type { HttpHandlerOptions, ServiceLogger } from "@effect-aws/commons"; import { Service } from "@effect-aws/commons"; import type { Cause } from "effect"; -import { Effect, Layer } from "effect"; +import { Effect, Layer, ServiceMap } from "effect"; import type { AccessDeniedError, ConflictError, @@ -115,7 +115,7 @@ interface TimestreamWriteService$ { options?: HttpHandlerOptions, ): Effect.Effect< CreateBatchLoadTaskCommandOutput, - | Cause.TimeoutException + | Cause.TimeoutError | SdkError | AccessDeniedError | ConflictError @@ -135,7 +135,7 @@ interface TimestreamWriteService$ { options?: HttpHandlerOptions, ): Effect.Effect< CreateDatabaseCommandOutput, - | Cause.TimeoutException + | Cause.TimeoutError | SdkError | AccessDeniedError | ConflictError @@ -154,7 +154,7 @@ interface TimestreamWriteService$ { options?: HttpHandlerOptions, ): Effect.Effect< CreateTableCommandOutput, - | Cause.TimeoutException + | Cause.TimeoutError | SdkError | AccessDeniedError | ConflictError @@ -174,7 +174,7 @@ interface TimestreamWriteService$ { options?: HttpHandlerOptions, ): Effect.Effect< DeleteDatabaseCommandOutput, - | Cause.TimeoutException + | Cause.TimeoutError | SdkError | AccessDeniedError | InternalServerError @@ -192,7 +192,7 @@ interface TimestreamWriteService$ { options?: HttpHandlerOptions, ): Effect.Effect< DeleteTableCommandOutput, - | Cause.TimeoutException + | Cause.TimeoutError | SdkError | AccessDeniedError | InternalServerError @@ -210,7 +210,7 @@ interface TimestreamWriteService$ { options?: HttpHandlerOptions, ): Effect.Effect< DescribeBatchLoadTaskCommandOutput, - | Cause.TimeoutException + | Cause.TimeoutError | SdkError | AccessDeniedError | InternalServerError @@ -227,7 +227,7 @@ interface TimestreamWriteService$ { options?: HttpHandlerOptions, ): Effect.Effect< DescribeDatabaseCommandOutput, - | Cause.TimeoutException + | Cause.TimeoutError | SdkError | AccessDeniedError | InternalServerError @@ -245,7 +245,7 @@ interface TimestreamWriteService$ { options?: HttpHandlerOptions, ): Effect.Effect< DescribeEndpointsCommandOutput, - Cause.TimeoutException | SdkError | InternalServerError | ThrottlingError | ValidationError + Cause.TimeoutError | SdkError | InternalServerError | ThrottlingError | ValidationError >; /** @@ -256,7 +256,7 @@ interface TimestreamWriteService$ { options?: HttpHandlerOptions, ): Effect.Effect< DescribeTableCommandOutput, - | Cause.TimeoutException + | Cause.TimeoutError | SdkError | AccessDeniedError | InternalServerError @@ -274,7 +274,7 @@ interface TimestreamWriteService$ { options?: HttpHandlerOptions, ): Effect.Effect< ListBatchLoadTasksCommandOutput, - | Cause.TimeoutException + | Cause.TimeoutError | SdkError | AccessDeniedError | InternalServerError @@ -291,7 +291,7 @@ interface TimestreamWriteService$ { options?: HttpHandlerOptions, ): Effect.Effect< ListDatabasesCommandOutput, - | Cause.TimeoutException + | Cause.TimeoutError | SdkError | AccessDeniedError | InternalServerError @@ -308,7 +308,7 @@ interface TimestreamWriteService$ { options?: HttpHandlerOptions, ): Effect.Effect< ListTablesCommandOutput, - | Cause.TimeoutException + | Cause.TimeoutError | SdkError | AccessDeniedError | InternalServerError @@ -326,7 +326,7 @@ interface TimestreamWriteService$ { options?: HttpHandlerOptions, ): Effect.Effect< ListTagsForResourceCommandOutput, - Cause.TimeoutException | SdkError | InvalidEndpointError | ResourceNotFoundError | ThrottlingError | ValidationError + Cause.TimeoutError | SdkError | InvalidEndpointError | ResourceNotFoundError | ThrottlingError | ValidationError >; /** @@ -337,7 +337,7 @@ interface TimestreamWriteService$ { options?: HttpHandlerOptions, ): Effect.Effect< ResumeBatchLoadTaskCommandOutput, - | Cause.TimeoutException + | Cause.TimeoutError | SdkError | AccessDeniedError | InternalServerError @@ -355,7 +355,7 @@ interface TimestreamWriteService$ { options?: HttpHandlerOptions, ): Effect.Effect< TagResourceCommandOutput, - | Cause.TimeoutException + | Cause.TimeoutError | SdkError | InvalidEndpointError | ResourceNotFoundError @@ -372,7 +372,7 @@ interface TimestreamWriteService$ { options?: HttpHandlerOptions, ): Effect.Effect< UntagResourceCommandOutput, - | Cause.TimeoutException + | Cause.TimeoutError | SdkError | InvalidEndpointError | ResourceNotFoundError @@ -389,7 +389,7 @@ interface TimestreamWriteService$ { options?: HttpHandlerOptions, ): Effect.Effect< UpdateDatabaseCommandOutput, - | Cause.TimeoutException + | Cause.TimeoutError | SdkError | AccessDeniedError | InternalServerError @@ -408,7 +408,7 @@ interface TimestreamWriteService$ { options?: HttpHandlerOptions, ): Effect.Effect< UpdateTableCommandOutput, - | Cause.TimeoutException + | Cause.TimeoutError | SdkError | AccessDeniedError | InternalServerError @@ -426,7 +426,7 @@ interface TimestreamWriteService$ { options?: HttpHandlerOptions, ): Effect.Effect< WriteRecordsCommandOutput, - | Cause.TimeoutException + | Cause.TimeoutError | SdkError | AccessDeniedError | InternalServerError @@ -459,10 +459,10 @@ export const makeTimestreamWriteService = Effect.gen(function*() { * @since 1.0.0 * @category models */ -export class TimestreamWriteService extends Effect.Tag("@effect-aws/client-timestream-write/TimestreamWriteService")< +export class TimestreamWriteService extends ServiceMap.Service< TimestreamWriteService, TimestreamWriteService$ ->() { +>()("@effect-aws/client-timestream-write/TimestreamWriteService") { static readonly defaultLayer = Layer.effect(this, makeTimestreamWriteService).pipe(Layer.provide(Instance.layer)); static readonly layer = (config: TimestreamWriteService.Config) => Layer.effect(this, makeTimestreamWriteService).pipe( diff --git a/packages/client-timestream-write/src/TimestreamWriteServiceConfig.ts b/packages/client-timestream-write/src/TimestreamWriteServiceConfig.ts index ecf507e1..5bb583e9 100644 --- a/packages/client-timestream-write/src/TimestreamWriteServiceConfig.ts +++ b/packages/client-timestream-write/src/TimestreamWriteServiceConfig.ts @@ -3,18 +3,17 @@ */ import type { TimestreamWriteClientConfig } from "@aws-sdk/client-timestream-write"; import { ServiceLogger } from "@effect-aws/commons"; -import { Effect, FiberRef, Layer } from "effect"; +import { Effect, Layer, ServiceMap } from "effect"; import { dual } from "effect/Function"; -import { globalValue } from "effect/GlobalValue"; import type { TimestreamWriteService } from "./TimestreamWriteService.js"; /** * @since 1.0.0 * @category timestream-write service config */ -const currentTimestreamWriteServiceConfig = globalValue( +const currentTimestreamWriteServiceConfig = ServiceMap.Reference( "@effect-aws/client-timestream-write/currentTimestreamWriteServiceConfig", - () => FiberRef.unsafeMake({}), + { defaultValue: () => ({}) }, ); /** @@ -27,7 +26,7 @@ export const withTimestreamWriteServiceConfig: { } = dual( 2, (effect: Effect.Effect, config: TimestreamWriteService.Config): Effect.Effect => - Effect.locally(effect, currentTimestreamWriteServiceConfig, config), + Effect.provideService(effect, currentTimestreamWriteServiceConfig, config), ); /** @@ -35,14 +34,14 @@ export const withTimestreamWriteServiceConfig: { * @category timestream-write service config */ export const setTimestreamWriteServiceConfig = (config: TimestreamWriteService.Config) => - Layer.locallyScoped(currentTimestreamWriteServiceConfig, config); + Layer.succeed(currentTimestreamWriteServiceConfig, config); /** * @since 1.0.0 * @category adapters */ export const toTimestreamWriteClientConfig: Effect.Effect = Effect.gen(function*() { - const { logger: serviceLogger, ...config } = yield* FiberRef.get(currentTimestreamWriteServiceConfig); + const { logger: serviceLogger, ...config } = yield* currentTimestreamWriteServiceConfig; const logger = serviceLogger === true ? yield* ServiceLogger.toClientLogger(ServiceLogger.defaultServiceLogger) diff --git a/packages/client-timestream-write/test/TimestreamWrite.test.ts b/packages/client-timestream-write/test/TimestreamWrite.test.ts index 8342b2af..761e43fa 100644 --- a/packages/client-timestream-write/test/TimestreamWrite.test.ts +++ b/packages/client-timestream-write/test/TimestreamWrite.test.ts @@ -26,7 +26,7 @@ describe("TimestreamWriteClientImpl", () => { const args: ListTablesCommandInput = { DatabaseName: "test" }; - const program = TimestreamWrite.listTables(args); + const program = TimestreamWrite.use((svc) => svc.listTables(args)); const result = await pipe( program, @@ -46,7 +46,7 @@ describe("TimestreamWriteClientImpl", () => { const args: ListTablesCommandInput = { DatabaseName: "test" }; - const program = TimestreamWrite.listTables(args); + const program = TimestreamWrite.use((svc) => svc.listTables(args)); const result = await pipe( program, @@ -69,7 +69,7 @@ describe("TimestreamWriteClientImpl", () => { const args: ListTablesCommandInput = { DatabaseName: "test" }; - const program = TimestreamWrite.listTables(args); + const program = TimestreamWrite.use((svc) => svc.listTables(args)); const result = await pipe( program, @@ -93,7 +93,7 @@ describe("TimestreamWriteClientImpl", () => { const args: ListTablesCommandInput = { DatabaseName: "test" }; - const program = TimestreamWrite.listTables(args); + const program = TimestreamWrite.use((svc) => svc.listTables(args)); const result = await pipe( program, @@ -121,7 +121,7 @@ describe("TimestreamWriteClientImpl", () => { const args: ListTablesCommandInput = { DatabaseName: "test" }; - const program = TimestreamWrite.listTables(args); + const program = TimestreamWrite.use((svc) => svc.listTables(args)); const result = await pipe( program, @@ -131,7 +131,7 @@ describe("TimestreamWriteClientImpl", () => { expect(result).toEqual( Exit.fail( - SdkError({ + new SdkError({ ...new Error("test"), name: "SdkError", message: "test", @@ -156,7 +156,7 @@ describe("TimestreamWriteClientImpl", () => { const args: ListTablesCommandInput = { DatabaseName: "test" }; - const program = TimestreamWrite.listTables(args).pipe( + const program = TimestreamWrite.use((svc) => svc.listTables(args)).pipe( Effect.catchTag("NotHandledException" as any, () => Effect.succeed(null)), ); @@ -166,9 +166,9 @@ describe("TimestreamWriteClientImpl", () => { Effect.runPromiseExit, ); - expect(result).toEqual( + expect(result).toContainEqual( Exit.fail( - SdkError({ + new SdkError({ ...new Error("test"), name: "SdkError", message: "test", diff --git a/packages/commons/.projen/deps.json b/packages/commons/.projen/deps.json index ce0f9b46..38dcfed4 100644 --- a/packages/commons/.projen/deps.json +++ b/packages/commons/.projen/deps.json @@ -11,6 +11,7 @@ }, { "name": "effect", + "version": "4.0.0-beta.8", "type": "build" }, { @@ -20,7 +21,7 @@ }, { "name": "effect", - "version": ">=3.0.4 <4.0.0", + "version": ">=4.0.0 <5.0.0", "type": "peer" }, { diff --git a/packages/commons/package.json b/packages/commons/package.json index e1435ccf..abba358d 100644 --- a/packages/commons/package.json +++ b/packages/commons/package.json @@ -25,18 +25,18 @@ "organization": false }, "devDependencies": { - "@aws-sdk/middleware-logger": "^3.956.0", + "@aws-sdk/middleware-logger": "^3.972.3", "@types/node": "ts5.4", - "effect": "^3.16.4", + "effect": "4.0.0-beta.8", "typescript": "^5.4.2" }, "peerDependencies": { - "effect": ">=3.0.4 <4.0.0" + "effect": ">=4.0.0 <5.0.0" }, "dependencies": { - "@smithy/protocol-http": "^5.3.5", - "@smithy/smithy-client": "^4.9.9", - "@smithy/types": "^4.9.0" + "@smithy/protocol-http": "^5.3.8", + "@smithy/smithy-client": "^4.11.5", + "@smithy/types": "^4.11.0" }, "main": "build/cjs/index.js", "license": "MIT", diff --git a/packages/commons/src/Errors.ts b/packages/commons/src/Errors.ts index 381bacd8..91047821 100644 --- a/packages/commons/src/Errors.ts +++ b/packages/commons/src/Errors.ts @@ -4,5 +4,4 @@ export type TaggedException = T & { readonly _tag: T["name"]; }; -export type SdkError = TaggedException; -export const SdkError = Data.tagged("SdkError"); +export class SdkError extends Data.TaggedError("SdkError")> {} diff --git a/packages/commons/src/HttpHandler.ts b/packages/commons/src/HttpHandler.ts index fa953b9f..7b2cc499 100644 --- a/packages/commons/src/HttpHandler.ts +++ b/packages/commons/src/HttpHandler.ts @@ -3,8 +3,8 @@ */ import type { HttpRequest, HttpResponse } from "@smithy/protocol-http"; import type { HttpHandlerOptions, RequestHandler as ClientRequestHandler, RequestHandlerOutput } from "@smithy/types"; -import type { Cause, Effect } from "effect"; -import { Context, Runtime, Scope } from "effect"; +import type { Cause } from "effect"; +import { Effect, Scope, ServiceMap } from "effect"; import type { RuntimeOptions } from "./internal/httpHandler.js"; const TypeId = Symbol.for("@effect-aws/commons/RequestHandler"); @@ -15,7 +15,7 @@ type RequestHandlerConstructorProps = { handlerOptions?: HttpHandlerOptions, ) => Effect.Effect< RequestHandlerOutput, - Cause.TimeoutException, + Cause.TimeoutError, Scope.Scope >; }; @@ -32,7 +32,7 @@ export interface RequestHandler extends RequestHandlerConstructorProps { * @since 0.3.0 * @category tag */ -export const RequestHandler = Context.GenericTag("@effect-aws/commons/RequestHandler"); +export const RequestHandler = ServiceMap.Service("@effect-aws/commons/RequestHandler"); const proto = { [TypeId]: TypeId, @@ -53,8 +53,8 @@ export const toClientRequestHandler = ( requestHandler: RequestHandler, config: RuntimeOptions, ): ClientRequestHandler => { - const runPromise = Runtime.runPromise(config.runtime); - const scoped = Scope.extend(config.scope); + const runPromise = Effect.runPromiseWith(config.runtime); + const scoped = Scope.provide(config.scope); class HttpHandler implements ClientRequestHandler { handle(request: HttpRequest, options: HttpHandlerOptions = {}) { diff --git a/packages/commons/src/Service.ts b/packages/commons/src/Service.ts index 11041e1f..fce119ad 100644 --- a/packages/commons/src/Service.ts +++ b/packages/commons/src/Service.ts @@ -2,10 +2,10 @@ * @since 0.1.0 */ import type { CommandImpl, SmithyResolvedConfiguration } from "@smithy/smithy-client"; -import { ServiceException } from "@smithy/smithy-client"; +import { ServiceException as ServiceError } from "@smithy/smithy-client"; import type { Client, HandlerOptions, Logger, MiddlewareStack, RequestHandler } from "@smithy/types"; import type { Array } from "effect"; -import { Cause, Data, Effect, Option, pipe, Record, Runtime, Scope, String } from "effect"; +import { Cause, Data, Effect, Option, pipe, Record, Scope, String } from "effect"; import type { TaggedException } from "./Errors.js"; import { SdkError } from "./Errors.js"; import * as HttpHandler from "./HttpHandler.js"; @@ -46,19 +46,19 @@ type ServiceFnOptions = { * @category errors */ export const catchServiceExceptions = (errorTags?: Array.NonEmptyReadonlyArray) => (e: unknown) => { - if (e instanceof ServiceException && (!errorTags || errorTags.includes(e.name))) { - const ServiceException = Data.tagged>(e.name); + if (e instanceof ServiceError && (!errorTags || errorTags.includes(e.name))) { + class ServiceException extends Data.TaggedError(e.name)> {} - return ServiceException({ ...e, message: e.message, stack: e.stack }); + return new ServiceException({ ...e, message: e.message, stack: e.stack }); } if (e instanceof Error) { - if (Runtime.isFiberFailure(e) && Cause.isFailType(e[Runtime.FiberFailureCauseId])) { - return e[Runtime.FiberFailureCauseId].error; - } + // if (Runtime.isFiberFailure(e) && Cause.isFailType(e[Runtime.FiberFailureCauseId])) { + // return e[Runtime.FiberFailureCauseId].error; + // } if (e.name === "TimeoutError") { - return new Cause.TimeoutException(e.message); + return new Cause.TimeoutError(e.message); } - return SdkError({ ...e, name: "SdkError", message: e.message, stack: e.stack }); + return new SdkError({ ...e, name: "SdkError", message: e.message, stack: e.stack }); } throw e; }; @@ -75,7 +75,7 @@ export const makeServiceFn = ( return (args: any, options?: HttpHandlerOptions) => Effect.gen(function*() { const config = yield* fnOptions.resolveClientConfig; - const runtime = yield* Effect.runtime(); + const runtime = yield* Effect.services(); return yield* Effect.acquireUseRelease( Scope.make(), diff --git a/packages/commons/src/ServiceLogger.ts b/packages/commons/src/ServiceLogger.ts index 6d3b5e03..056a4bf9 100644 --- a/packages/commons/src/ServiceLogger.ts +++ b/packages/commons/src/ServiceLogger.ts @@ -2,7 +2,7 @@ * @since 0.1.0 */ import type { Logger } from "@smithy/types"; -import { Effect, Runtime } from "effect"; +import { Effect } from "effect"; /** * @since 0.1.0 @@ -64,8 +64,8 @@ export const defaultServiceLogger = make({ */ export const toClientLogger: (logger: ServiceLogger) => Effect.Effect = (logger) => Effect.gen(function*() { - const runtime = yield* Effect.runtime(); - const runSync = Runtime.runSync(runtime); + const runtime = yield* Effect.services(); + const runSync = Effect.runSyncWith(runtime); return { info: (...m) => logger.info(...m).pipe(runSync), diff --git a/packages/commons/src/internal/httpHandler.ts b/packages/commons/src/internal/httpHandler.ts index e25535c2..577af3a0 100644 --- a/packages/commons/src/internal/httpHandler.ts +++ b/packages/commons/src/internal/httpHandler.ts @@ -1,6 +1,6 @@ -import type { Runtime, Scope } from "effect"; +import type { Scope, ServiceMap } from "effect"; export interface RuntimeOptions { - runtime: Runtime.Runtime; + runtime: ServiceMap.ServiceMap; scope: Scope.Scope; } diff --git a/packages/commons/test/Service.test.ts b/packages/commons/test/Service.test.ts index 79ac2265..46ecc59a 100644 --- a/packages/commons/test/Service.test.ts +++ b/packages/commons/test/Service.test.ts @@ -1,13 +1,11 @@ import { it } from "@effect/vitest"; -import { Effect, Layer, Logger, LogLevel } from "effect"; +import { Effect, Logger, LogLevel } from "effect"; import { beforeEach, describe, expect, vi } from "vitest"; import { mockHandlerOutput } from "./fixtures/TestClientInstance.js"; import { TestService } from "./fixtures/TestService.js"; const mockLogFn = vi.fn(); -const mockLogger = Logger.replace(Logger.defaultLogger, Logger.make(mockLogFn)).pipe( - Layer.provide(Logger.minimumLogLevel(LogLevel.All)), -); +const mockLogger = Logger.make(mockLogFn); describe("Service", () => { beforeEach(() => { @@ -18,7 +16,7 @@ describe("Service", () => { "should print info logs by default", () => Effect.gen(function*() { - const result = yield* TestService.test({}); + const result = yield* TestService.use((n) => n.test({})); expect(result).toEqual(mockHandlerOutput.output); expect(mockLogFn).toHaveBeenCalledOnce(); @@ -31,12 +29,12 @@ describe("Service", () => { output: {}, metadata: expect.anything(), }], - logLevel: LogLevel.Info, + logLevel: "Info", }), ); }).pipe( Effect.provide(TestService.layer({ logger: true })), - Effect.provide(mockLogger), + Effect.provide(Logger.layer([mockLogger])), ), ); @@ -44,14 +42,17 @@ describe("Service", () => { "should not print info logs if log level set to warning", () => Effect.gen(function*() { - const result = yield* TestService.test({}); + const result = yield* TestService.use((n) => n.test({})); expect(result).toEqual(mockHandlerOutput.output); expect(mockLogFn).not.toHaveBeenCalled(); }).pipe( - Logger.withMinimumLogLevel(LogLevel.Warning), Effect.provide(TestService.layer({ logger: true })), - Effect.provide(mockLogger), + Effect.provide(Logger.layer([Logger.make((options) => { + if (LogLevel.isGreaterThanOrEqualTo(options.logLevel, "Warn")) { + mockLogFn(options); + } + })])), ), ); @@ -59,13 +60,13 @@ describe("Service", () => { "should not print any logs if logger is disabled", () => Effect.gen(function*() { - const result = yield* TestService.test({}); + const result = yield* TestService.use((n) => n.test({})); expect(result).toEqual(mockHandlerOutput.output); expect(mockLogFn).not.toHaveBeenCalled(); }).pipe( Effect.provide(TestService.layer({})), - Effect.provide(mockLogger), + Effect.provide(Logger.layer([mockLogger])), ), ); }); diff --git a/packages/commons/test/ServiceLogger.test.ts b/packages/commons/test/ServiceLogger.test.ts index 1fbf6391..9ee69ab9 100644 --- a/packages/commons/test/ServiceLogger.test.ts +++ b/packages/commons/test/ServiceLogger.test.ts @@ -1,12 +1,10 @@ import { ServiceLogger } from "@effect-aws/commons"; import { it } from "@effect/vitest"; -import { Effect, Layer, Logger, LogLevel } from "effect"; +import { Effect, Logger } from "effect"; import { beforeEach, describe, expect, vi } from "vitest"; const mockLogFn = vi.fn(); -const mockLogger = Logger.replace(Logger.defaultLogger, Logger.make(mockLogFn)).pipe( - Layer.provide(Logger.minimumLogLevel(LogLevel.All)), -); +const mockLogger = Logger.make(mockLogFn); describe("ServiceLogger.toClientLogger", () => { beforeEach(() => { @@ -16,26 +14,30 @@ describe("ServiceLogger.toClientLogger", () => { it.effect("should convert defaultServiceLogger to Logger and call info method", () => Effect.gen(function*() { const serviceLogger = ServiceLogger.defaultServiceLogger; - const clientLogger = yield* ServiceLogger.toClientLogger(serviceLogger).pipe(Effect.provide(mockLogger)); + const clientLogger = yield* ServiceLogger.toClientLogger(serviceLogger).pipe( + Effect.provide(Logger.layer([mockLogger])), + ); clientLogger.info("test message"); expect(mockLogFn).toHaveBeenCalledOnce(); expect(mockLogFn).toHaveBeenCalledWith( - expect.objectContaining({ message: ["test message"], logLevel: LogLevel.Info }), + expect.objectContaining({ message: ["test message"], logLevel: "Info" }), ); })); it.effect("should convert defaultServiceLogger to Logger and call error method", () => Effect.gen(function*() { const serviceLogger = ServiceLogger.defaultServiceLogger; - const clientLogger = yield* ServiceLogger.toClientLogger(serviceLogger).pipe(Effect.provide(mockLogger)); + const clientLogger = yield* ServiceLogger.toClientLogger(serviceLogger).pipe( + Effect.provide(Logger.layer([mockLogger])), + ); clientLogger.error("error message"); expect(mockLogFn).toHaveBeenCalledOnce(); expect(mockLogFn).toHaveBeenCalledWith( - expect.objectContaining({ message: ["error message"], logLevel: LogLevel.Error }), + expect.objectContaining({ message: ["error message"], logLevel: "Error" }), ); })); @@ -43,17 +45,19 @@ describe("ServiceLogger.toClientLogger", () => { Effect.gen(function*() { const serviceLogger = ServiceLogger.make({ debug: Effect.logDebug, - info: Effect.logDebug, + info: Effect.logWarning, error: Effect.logError, warn: Effect.logWarning, }); - const clientLogger = yield* ServiceLogger.toClientLogger(serviceLogger).pipe(Effect.provide(mockLogger)); + const clientLogger = yield* ServiceLogger.toClientLogger(serviceLogger).pipe( + Effect.provide(Logger.layer([mockLogger])), + ); clientLogger.info("debug message"); expect(mockLogFn).toHaveBeenCalledOnce(); expect(mockLogFn).toHaveBeenCalledWith( - expect.objectContaining({ message: ["debug message"], logLevel: LogLevel.Debug }), + expect.objectContaining({ message: ["debug message"], logLevel: "Warn" }), ); })); }); diff --git a/packages/commons/test/fixtures/TestClientInstance.ts b/packages/commons/test/fixtures/TestClientInstance.ts index e3dfc931..34a7b3cd 100644 --- a/packages/commons/test/fixtures/TestClientInstance.ts +++ b/packages/commons/test/fixtures/TestClientInstance.ts @@ -1,20 +1,18 @@ import { getLoggerPlugin } from "@aws-sdk/middleware-logger"; -import type { HttpHandlerOptions } from "@effect-aws/commons"; +import type { HttpHandlerOptions, Service } from "@effect-aws/commons"; import { Client, NoOpLogger } from "@smithy/smithy-client"; import type { CheckOptionalClientConfig, InitializeHandlerOutput, RequestHandler } from "@smithy/types"; -import { Context, Effect, Layer } from "effect"; +import { Effect, Layer, ServiceMap } from "effect"; import { mock } from "vitest-mock-extended"; -import type { BaseResolvedConfig } from "../../src/internal/service.js"; import * as TestServiceConfig from "./TestServiceConfig.js"; export const mockHandlerOutput = mock>({ output: {} }); -class TestClient extends Client { +class TestClient extends Client { constructor(...[config]: CheckOptionalClientConfig) { super({ apiVersion: "2025-03-12", logger: config?.logger ?? new NoOpLogger(), - ...config, requestHandler: mock>({ handle: async () => mockHandlerOutput, }), @@ -23,9 +21,9 @@ class TestClient extends Client()( "@effect-aws/commons/test/TestClientInstance", -)() {} +) {} export const make = Effect.flatMap( TestServiceConfig.toTestClientConfig, @@ -36,4 +34,4 @@ export const make = Effect.flatMap( ), ); -export const layer = Layer.scoped(TestClientInstance, make); +export const layer = Layer.effect(TestClientInstance, make); diff --git a/packages/commons/test/fixtures/TestService.ts b/packages/commons/test/fixtures/TestService.ts index 60b6a318..b79ade81 100644 --- a/packages/commons/test/fixtures/TestService.ts +++ b/packages/commons/test/fixtures/TestService.ts @@ -1,6 +1,6 @@ import { type HttpHandlerOptions, Service } from "@effect-aws/commons"; import { Command } from "@smithy/smithy-client"; -import { Effect, Layer } from "effect"; +import { Effect, Layer, ServiceMap } from "effect"; import * as Instance from "./TestClientInstance.js"; import * as TestServiceConfig from "./TestServiceConfig.js"; @@ -26,10 +26,10 @@ export const makeTestService = Effect.gen(function*() { ); }); -export class TestService extends Effect.Tag("@effect-aws/commons/test/TestService")< +export class TestService extends ServiceMap.Service< TestService, TestService$ ->() { +>()("@effect-aws/commons/test/TestService") { static readonly layer = (config: TestService.Config) => Layer.effect(this, makeTestService).pipe( Layer.provide(Instance.layer), diff --git a/packages/commons/test/fixtures/TestServiceConfig.ts b/packages/commons/test/fixtures/TestServiceConfig.ts index 62f07108..c042b969 100644 --- a/packages/commons/test/fixtures/TestServiceConfig.ts +++ b/packages/commons/test/fixtures/TestServiceConfig.ts @@ -2,24 +2,22 @@ import type { Service } from "@effect-aws/commons"; import { ServiceLogger } from "@effect-aws/commons"; import type { SmithyConfiguration } from "@smithy/smithy-client"; import type { HttpHandlerOptions } from "@smithy/types"; -import { Effect, FiberRef, Layer } from "effect"; -import { globalValue } from "effect/GlobalValue"; +import { Effect, Layer, ServiceMap } from "effect"; import type { TestService } from "./TestService.js"; export interface TestClientConfig extends Partial>, Service.LoggerResolvedConfig {} -const currentTestServiceConfig = globalValue( +const currentTestServiceConfig = ServiceMap.Reference( "@effect-aws/commons/test/currentTestServiceConfig", - () => FiberRef.unsafeMake({}), + { defaultValue: () => ({}) }, ); -export const setTestServiceConfig = (config: TestService.Config) => - Layer.locallyScoped(currentTestServiceConfig, config); +export const setTestServiceConfig = (config: TestService.Config) => Layer.succeed(currentTestServiceConfig, config); export const toTestClientConfig: Effect.Effect = Effect.gen(function*() { - const { logger: serviceLogger, ...config } = yield* FiberRef.get(currentTestServiceConfig); + const { logger: serviceLogger, ...config } = yield* currentTestServiceConfig; const logger = serviceLogger === true ? yield* ServiceLogger.toClientLogger(ServiceLogger.defaultServiceLogger) diff --git a/packages/dsql/.projen/deps.json b/packages/dsql/.projen/deps.json index 8942b4c0..7151b4bb 100644 --- a/packages/dsql/.projen/deps.json +++ b/packages/dsql/.projen/deps.json @@ -7,6 +7,7 @@ }, { "name": "effect", + "version": "4.0.0-beta.8", "type": "build" }, { @@ -16,7 +17,7 @@ }, { "name": "effect", - "version": ">=3.15.5 <4.0.0", + "version": ">=4.0.0 <5.0.0", "type": "peer" }, { diff --git a/packages/dsql/package.json b/packages/dsql/package.json index a5d92c91..b3e800cd 100644 --- a/packages/dsql/package.json +++ b/packages/dsql/package.json @@ -26,11 +26,11 @@ }, "devDependencies": { "@types/node": "ts5.4", - "effect": "^3.16.4", + "effect": "4.0.0-beta.8", "typescript": "^5.4.2" }, "peerDependencies": { - "effect": ">=3.15.5 <4.0.0" + "effect": ">=4.0.0 <5.0.0" }, "dependencies": { "@aws-sdk/dsql-signer": "^3" diff --git a/packages/dsql/src/DsqlSigner.ts b/packages/dsql/src/DsqlSigner.ts index 7a26698a..95edaa2b 100644 --- a/packages/dsql/src/DsqlSigner.ts +++ b/packages/dsql/src/DsqlSigner.ts @@ -2,7 +2,7 @@ * @since 0.1.0 */ import type { DsqlSignerConfig } from "@aws-sdk/dsql-signer"; -import { Effect, Layer } from "effect"; +import { Effect, Layer, ServiceMap } from "effect"; import * as Instance from "./DsqlSignerInstance.js"; interface DsqlSigner$ { @@ -29,10 +29,10 @@ export const makeDsqlSigner = Effect.gen(function*() { * @since 0.1.0 * @category models */ -export class DsqlSigner extends Effect.Tag("@effect-aws/dsql/DsqlSigner")< +export class DsqlSigner extends ServiceMap.Service< DsqlSigner, DsqlSigner$ ->() { +>()("@effect-aws/dsql/DsqlSigner") { /** * @since 0.1.0 * diff --git a/packages/dsql/src/DsqlSignerInstance.ts b/packages/dsql/src/DsqlSignerInstance.ts index 7a687ba4..38d1eb66 100644 --- a/packages/dsql/src/DsqlSignerInstance.ts +++ b/packages/dsql/src/DsqlSignerInstance.ts @@ -3,15 +3,15 @@ */ import type { DsqlSignerConfig } from "@aws-sdk/dsql-signer"; import { DsqlSigner } from "@aws-sdk/dsql-signer"; -import { Context, Effect, Layer } from "effect"; +import { Effect, Layer, ServiceMap } from "effect"; /** * @since 0.1.0 * @category tags */ -export class DsqlSignerInstance extends Context.Tag( +export class DsqlSignerInstance extends ServiceMap.Service()( "@effect-aws/dsql/DsqlSignerInstance", -)() {} +) {} /** * @since 0.1.0 diff --git a/packages/dsql/test/DsqlSignerService.test.ts b/packages/dsql/test/DsqlSignerService.test.ts index a4c17ffe..18c318cf 100644 --- a/packages/dsql/test/DsqlSignerService.test.ts +++ b/packages/dsql/test/DsqlSignerService.test.ts @@ -15,7 +15,7 @@ describe("DsqlSigner", () => { }); const adminToken = await pipe( - DsqlSigner.getDbConnectAdminAuthToken(), + DsqlSigner.use((n) => n.getDbConnectAdminAuthToken()), Effect.provide(layer), Effect.runPromiseExit, ); @@ -25,7 +25,7 @@ describe("DsqlSigner", () => { ); const token = await pipe( - DsqlSigner.getDbConnectAuthToken(), + DsqlSigner.use((n) => n.getDbConnectAuthToken()), Effect.provide(layer), Effect.runPromiseExit, ); diff --git a/packages/dynamodb/.projen/deps.json b/packages/dynamodb/.projen/deps.json index 2c85852a..8667dee6 100644 --- a/packages/dynamodb/.projen/deps.json +++ b/packages/dynamodb/.projen/deps.json @@ -12,6 +12,7 @@ }, { "name": "effect", + "version": "4.0.0-beta.8", "type": "build" }, { @@ -26,7 +27,7 @@ }, { "name": "effect", - "version": ">=3.0.4 <4.0.0", + "version": ">=4.0.0 <5.0.0", "type": "peer" }, { diff --git a/packages/dynamodb/package.json b/packages/dynamodb/package.json index 87fe6c92..f99245a2 100644 --- a/packages/dynamodb/package.json +++ b/packages/dynamodb/package.json @@ -27,12 +27,12 @@ "devDependencies": { "@effect-aws/client-dynamodb": "workspace:^", "@types/node": "ts5.4", - "effect": "^3.16.4", + "effect": "4.0.0-beta.8", "typescript": "^5.4.2" }, "peerDependencies": { "@effect-aws/client-dynamodb": "workspace:^", - "effect": ">=3.0.4 <4.0.0" + "effect": ">=4.0.0 <5.0.0" }, "dependencies": { "@aws-sdk/client-dynamodb": "^3", diff --git a/packages/dynamodb/src/DynamoDBDocumentClientInstance.ts b/packages/dynamodb/src/DynamoDBDocumentClientInstance.ts index 6204dcb0..730ad19e 100644 --- a/packages/dynamodb/src/DynamoDBDocumentClientInstance.ts +++ b/packages/dynamodb/src/DynamoDBDocumentClientInstance.ts @@ -3,23 +3,25 @@ */ import { DynamoDBDocumentClient } from "@aws-sdk/lib-dynamodb"; import { DynamoDBClientInstance } from "@effect-aws/client-dynamodb"; -import { Context, Effect, Layer } from "effect"; +import { Effect, Layer, ServiceMap } from "effect"; import * as DynamoDBDocumentServiceConfig from "./DynamoDBDocumentServiceConfig.js"; /** * @since 1.0.0 * @category tags */ -export class DynamoDBDocumentClientInstance extends Context.Tag( - "@effect-aws/dynamodb/DynamoDBDocumentClientInstance", -)() {} +export class DynamoDBDocumentClientInstance + extends ServiceMap.Service()( + "@effect-aws/dynamodb/DynamoDBDocumentClientInstance", + ) +{} /** * @since 1.0.0 * @category constructors */ export const make = Effect.all([ - DynamoDBClientInstance.DynamoDBClientInstance, + DynamoDBClientInstance.DynamoDBClientInstance.asEffect(), DynamoDBDocumentServiceConfig.toTranslateConfig, ]).pipe( Effect.map(([client, config]) => DynamoDBDocumentClient.from(client, config)), @@ -29,6 +31,6 @@ export const make = Effect.all([ * @since 1.0.0 * @category layers */ -export const layer = Layer.scoped(DynamoDBDocumentClientInstance, make).pipe( +export const layer = Layer.effect(DynamoDBDocumentClientInstance, make).pipe( Layer.provide(DynamoDBClientInstance.layer), ); diff --git a/packages/dynamodb/src/DynamoDBDocumentService.ts b/packages/dynamodb/src/DynamoDBDocumentService.ts index 49439508..6c47376d 100644 --- a/packages/dynamodb/src/DynamoDBDocumentService.ts +++ b/packages/dynamodb/src/DynamoDBDocumentService.ts @@ -65,7 +65,7 @@ import type { import { DynamoDBServiceConfig } from "@effect-aws/client-dynamodb"; import { type HttpHandlerOptions, Service } from "@effect-aws/commons"; import type { Cause } from "effect"; -import { Effect, Layer } from "effect"; +import { Effect, Layer, ServiceMap } from "effect"; import * as Instance from "./DynamoDBDocumentClientInstance.js"; import * as DynamoDBDocumentServiceConfig from "./DynamoDBDocumentServiceConfig.js"; @@ -96,7 +96,7 @@ interface DynamoDBDocumentService$ { options?: HttpHandlerOptions, ): Effect.Effect< BatchExecuteStatementCommandOutput, - Cause.TimeoutException | SdkError | InternalServerError | RequestLimitExceededError + Cause.TimeoutError | SdkError | InternalServerError | RequestLimitExceededError >; /** @@ -107,7 +107,7 @@ interface DynamoDBDocumentService$ { options?: HttpHandlerOptions, ): Effect.Effect< BatchGetCommandOutput, - | Cause.TimeoutException + | Cause.TimeoutError | SdkError | InternalServerError | InvalidEndpointError @@ -124,7 +124,7 @@ interface DynamoDBDocumentService$ { options?: HttpHandlerOptions, ): Effect.Effect< BatchWriteCommandOutput, - | Cause.TimeoutException + | Cause.TimeoutError | SdkError | InternalServerError | InvalidEndpointError @@ -142,7 +142,7 @@ interface DynamoDBDocumentService$ { options?: HttpHandlerOptions, ): Effect.Effect< DeleteCommandOutput, - | Cause.TimeoutException + | Cause.TimeoutError | SdkError | ConditionalCheckFailedError | InternalServerError @@ -162,7 +162,7 @@ interface DynamoDBDocumentService$ { options?: HttpHandlerOptions, ): Effect.Effect< ExecuteStatementCommandOutput, - | Cause.TimeoutException + | Cause.TimeoutError | SdkError | ConditionalCheckFailedError | DuplicateItemError @@ -182,7 +182,7 @@ interface DynamoDBDocumentService$ { options?: HttpHandlerOptions, ): Effect.Effect< ExecuteTransactionCommandOutput, - | Cause.TimeoutException + | Cause.TimeoutError | SdkError | IdempotentParameterMismatchError | InternalServerError @@ -201,7 +201,7 @@ interface DynamoDBDocumentService$ { options?: HttpHandlerOptions, ): Effect.Effect< GetCommandOutput, - | Cause.TimeoutException + | Cause.TimeoutError | SdkError | InternalServerError | InvalidEndpointError @@ -218,7 +218,7 @@ interface DynamoDBDocumentService$ { options?: HttpHandlerOptions, ): Effect.Effect< PutCommandOutput, - | Cause.TimeoutException + | Cause.TimeoutError | SdkError | ConditionalCheckFailedError | InternalServerError @@ -238,7 +238,7 @@ interface DynamoDBDocumentService$ { options?: HttpHandlerOptions, ): Effect.Effect< QueryCommandOutput, - | Cause.TimeoutException + | Cause.TimeoutError | SdkError | InternalServerError | InvalidEndpointError @@ -255,7 +255,7 @@ interface DynamoDBDocumentService$ { options?: HttpHandlerOptions, ): Effect.Effect< ScanCommandOutput, - | Cause.TimeoutException + | Cause.TimeoutError | SdkError | InternalServerError | InvalidEndpointError @@ -272,7 +272,7 @@ interface DynamoDBDocumentService$ { options?: HttpHandlerOptions, ): Effect.Effect< TransactGetCommandOutput, - | Cause.TimeoutException + | Cause.TimeoutError | SdkError | InternalServerError | InvalidEndpointError @@ -290,7 +290,7 @@ interface DynamoDBDocumentService$ { options?: HttpHandlerOptions, ): Effect.Effect< TransactWriteCommandOutput, - | Cause.TimeoutException + | Cause.TimeoutError | SdkError | IdempotentParameterMismatchError | InternalServerError @@ -310,7 +310,7 @@ interface DynamoDBDocumentService$ { options?: HttpHandlerOptions, ): Effect.Effect< UpdateCommandOutput, - | Cause.TimeoutException + | Cause.TimeoutError | SdkError | ConditionalCheckFailedError | InternalServerError @@ -339,9 +339,9 @@ export const makeDynamoDBDocumentService = Effect.gen(function*() { * @since 1.0.0 * @category models */ -export class DynamoDBDocumentService extends Effect.Tag( +export class DynamoDBDocumentService extends ServiceMap.Service()( "@effect-aws/dynamodb/DynamoDBDocumentService", -)() { +) { static readonly defaultLayer = Layer.effect(this, makeDynamoDBDocumentService).pipe(Layer.provide(Instance.layer)); static readonly layer = (config: DynamoDBDocumentService.Config) => Layer.effect(this, makeDynamoDBDocumentService).pipe( diff --git a/packages/dynamodb/src/DynamoDBDocumentServiceConfig.ts b/packages/dynamodb/src/DynamoDBDocumentServiceConfig.ts index 513814a7..15913637 100644 --- a/packages/dynamodb/src/DynamoDBDocumentServiceConfig.ts +++ b/packages/dynamodb/src/DynamoDBDocumentServiceConfig.ts @@ -2,18 +2,17 @@ * @since 1.0.0 */ import type { TranslateConfig } from "@aws-sdk/lib-dynamodb"; -import { Effect, FiberRef, Layer } from "effect"; +import { Effect, Layer, ServiceMap } from "effect"; import { dual } from "effect/Function"; -import { globalValue } from "effect/GlobalValue"; import type { DynamoDBDocumentService } from "./DynamoDBDocumentService.js"; /** * @since 1.0.0 * @category dynamodb service config */ -const currentDynamoDBDocumentServiceConfig = globalValue( +const currentDynamoDBDocumentServiceConfig = ServiceMap.Reference( "@effect-aws/dynamodb/currentDynamoDBDocumentServiceConfig", - () => FiberRef.unsafeMake({}), + { defaultValue: () => ({}) }, ); /** @@ -26,7 +25,7 @@ export const withDynamoDBDocumentServiceConfig: { } = dual( 2, (effect: Effect.Effect, config: DynamoDBDocumentService.Config): Effect.Effect => - Effect.locally(effect, currentDynamoDBDocumentServiceConfig, config), + Effect.provideService(effect, currentDynamoDBDocumentServiceConfig, config), ); /** @@ -34,10 +33,10 @@ export const withDynamoDBDocumentServiceConfig: { * @category dynamodb service config */ export const setDynamoDBDocumentServiceConfig = (config: DynamoDBDocumentService.Config) => - Layer.locallyScoped(currentDynamoDBDocumentServiceConfig, config); + Layer.succeed(currentDynamoDBDocumentServiceConfig, config); /** * @since 1.0.0 * @category adapters */ -export const toTranslateConfig: Effect.Effect = FiberRef.get(currentDynamoDBDocumentServiceConfig); +export const toTranslateConfig: Effect.Effect = currentDynamoDBDocumentServiceConfig.asEffect(); diff --git a/packages/dynamodb/src/DynamoDBStore.ts b/packages/dynamodb/src/DynamoDBStore.ts index 905995e6..166ef03f 100644 --- a/packages/dynamodb/src/DynamoDBStore.ts +++ b/packages/dynamodb/src/DynamoDBStore.ts @@ -1,7 +1,7 @@ /** * @since 1.0.0 */ -import { Config, Effect, Layer } from "effect"; +import { Config, Effect, Layer, ServiceMap } from "effect"; import { DynamoDBDocumentService } from "./DynamoDBDocumentService.js"; type WithoutTableNameInArgs = { @@ -11,18 +11,18 @@ type WithoutTableNameInArgs = { args: Omit[0], "TableName">, options?: Parameters[1], ) => Effect.Effect< - Effect.Effect.Success< + Effect.Success< ReturnType > extends { Item?: infer Item } ? Item | undefined - : Effect.Effect.Success< + : Effect.Success< ReturnType > extends { Items?: infer Items } ? Items - : Effect.Effect.Success< + : Effect.Success< ReturnType > extends { Attributes?: infer Attributes } ? Attributes | undefined : never, - Effect.Effect.Error>, - Effect.Effect.Context> + Effect.Error>, + Effect.Services> > : never; }; @@ -94,13 +94,13 @@ export const makeDynamoDBStore = Effect.fn(function*(props: DynamoDBStore.Config * @since 1.0.0 * @category models */ -export class DynamoDBStore extends Effect.Tag("@effect-aws/dynamodb/DynamoDBStore")< +export class DynamoDBStore extends ServiceMap.Service< DynamoDBStore, DynamoDBStore.Type ->() { +>()("@effect-aws/dynamodb/DynamoDBStore") { static layer = (props: DynamoDBStore.Config) => Layer.effect(this, makeDynamoDBStore(props)); - static layerConfig = (config: Config.Config.Wrap) => - Layer.effect(this, Config.unwrap(config).pipe(Effect.flatMap(makeDynamoDBStore))); + static layerConfig = (config: Config.Wrap) => + Layer.effect(this, Config.unwrap(config).asEffect().pipe(Effect.flatMap(makeDynamoDBStore))); } /** diff --git a/packages/dynamodb/test/DynamoDBDocument.test.ts b/packages/dynamodb/test/DynamoDBDocument.test.ts index 11334763..8e6e665a 100644 --- a/packages/dynamodb/test/DynamoDBDocument.test.ts +++ b/packages/dynamodb/test/DynamoDBDocument.test.ts @@ -27,7 +27,7 @@ describe("DynamoDBDocumentClientImpl", () => { Item: { testAttr: "test" }, }; - const program = DynamoDBDocument.put(args); + const program = DynamoDBDocument.use((svc) => svc.put(args)); const result = await pipe( program, @@ -50,7 +50,7 @@ describe("DynamoDBDocumentClientImpl", () => { Item: { testAttr: "test" }, }; - const program = DynamoDBDocument.put(args); + const program = DynamoDBDocument.use((svc) => svc.put(args)); const result = await pipe( program, @@ -80,7 +80,7 @@ describe("DynamoDBDocumentClientImpl", () => { Item: { testAttr: "test" }, }; - const program = DynamoDBDocument.put(args); + const program = DynamoDBDocument.use((svc) => svc.put(args)); const result = await pipe( program, @@ -112,7 +112,7 @@ describe("DynamoDBDocumentClientImpl", () => { Item: { testAttr: "test" }, }; - const program = DynamoDBDocument.put(args); + const program = DynamoDBDocument.use((svc) => svc.put(args)); const result = await pipe( program, @@ -146,7 +146,7 @@ describe("DynamoDBDocumentClientImpl", () => { Item: { testAttr: "test" }, }; - const program = DynamoDBDocument.put(args, { requestTimeout: 1000 }); + const program = DynamoDBDocument.use((svc) => svc.put(args, { requestTimeout: 1000 })); const result = await pipe( program, @@ -156,7 +156,7 @@ describe("DynamoDBDocumentClientImpl", () => { expect(result).toEqual( Exit.fail( - SdkError({ + new SdkError({ ...new Error("test"), name: "SdkError", message: "test", diff --git a/packages/http-handler/.projen/deps.json b/packages/http-handler/.projen/deps.json index 383de743..c195a651 100644 --- a/packages/http-handler/.projen/deps.json +++ b/packages/http-handler/.projen/deps.json @@ -5,10 +5,6 @@ "version": "workspace:^", "type": "build" }, - { - "name": "@effect/platform", - "type": "build" - }, { "name": "@types/node", "version": "ts5.4", @@ -16,6 +12,7 @@ }, { "name": "effect", + "version": "4.0.0-beta.8", "type": "build" }, { @@ -28,14 +25,9 @@ "version": "workspace:^", "type": "peer" }, - { - "name": "@effect/platform", - "version": ">=0.83.0", - "type": "peer" - }, { "name": "effect", - "version": ">=3.15.5 <4.0.0", + "version": ">=4.0.0 <5.0.0", "type": "peer" }, { diff --git a/packages/http-handler/package.json b/packages/http-handler/package.json index c39438ca..6ab30254 100644 --- a/packages/http-handler/package.json +++ b/packages/http-handler/package.json @@ -26,20 +26,18 @@ }, "devDependencies": { "@effect-aws/commons": "workspace:^", - "@effect/platform": "^0.84.8", "@types/node": "ts5.4", - "effect": "^3.16.4", + "effect": "4.0.0-beta.8", "typescript": "^5.4.2" }, "peerDependencies": { "@effect-aws/commons": "workspace:^", - "@effect/platform": ">=0.83.0", - "effect": ">=3.15.5 <4.0.0" + "effect": ">=4.0.0 <5.0.0" }, "dependencies": { - "@smithy/protocol-http": "^5.3.5", - "@smithy/querystring-builder": "^4.2.5", - "@smithy/types": "^4.9.0" + "@smithy/protocol-http": "^5.3.8", + "@smithy/querystring-builder": "^4.2.8", + "@smithy/types": "^4.11.0" }, "main": "build/cjs/index.js", "license": "MIT", diff --git a/packages/http-handler/src/internal/httpHandler.ts b/packages/http-handler/src/internal/httpHandler.ts index 422d82ba..1cfb8dc6 100644 --- a/packages/http-handler/src/internal/httpHandler.ts +++ b/packages/http-handler/src/internal/httpHandler.ts @@ -1,15 +1,15 @@ import type { HttpHandlerOptions } from "@effect-aws/commons"; import { HttpHandler } from "@effect-aws/commons"; -import type { HttpMethod } from "@effect/platform"; -import { HttpBody, HttpClient, HttpClientRequest } from "@effect/platform"; import type { HttpRequest } from "@smithy/protocol-http"; import { HttpResponse } from "@smithy/protocol-http"; import { buildQueryString } from "@smithy/querystring-builder"; import type { RequestHandlerOutput } from "@smithy/types"; import type { Cause, Scope } from "effect"; import { Duration, Effect, Option, Sink, Stream } from "effect"; +import type { HttpMethod } from "effect/unstable/http"; +import { HttpBody, HttpClient, HttpClientError, HttpClientRequest } from "effect/unstable/http"; -declare module "@effect/platform/HttpClientResponse" { +declare module "effect/unstable/http" { interface HttpClientResponse { /** * @private @@ -63,11 +63,11 @@ export const makeHttpClientRequestHandler = (config: HttpHandlerOptions) => handlerOptions?: HttpHandlerOptions, ): Effect.Effect< RequestHandlerOutput, - Cause.TimeoutException, + Cause.TimeoutError, Scope.Scope > => Effect.gen(function*() { - const requestTimeoutInMs = Option.fromNullable(handlerOptions?.requestTimeout ?? config.requestTimeout).pipe( + const requestTimeoutInMs = Option.fromNullishOr(handlerOptions?.requestTimeout ?? config.requestTimeout).pipe( Option.map(Duration.millis), Option.getOrElse(() => Duration.infinity), ); @@ -86,13 +86,14 @@ export const makeHttpClientRequestHandler = (config: HttpHandlerOptions) => Effect.flatMap((res) => tryToReadableStream(res.stream).pipe( Effect.catchTag( - "ResponseError", - (error) => error.reason === "EmptyBody" ? res.arrayBuffer : Effect.fail(error), + "HttpClientError", + (error) => + error.reason instanceof HttpClientError.EmptyBodyError ? res.arrayBuffer : Effect.fail(error), ), Effect.map((body) => new HttpResponse({ headers: res.headers, - reason: (res.original ?? res).source.statusText, // changed since @effect/platform@0.79.0 + // reason: (res.original ?? res).source.statusText, // changed since @effect/platform@0.79.0 statusCode: res.status, body, }) diff --git a/packages/lambda/README.md b/packages/lambda/README.md index fe42f17f..cb38c650 100644 --- a/packages/lambda/README.md +++ b/packages/lambda/README.md @@ -5,7 +5,7 @@ Clean way to write AWS Lambda handlers using [Effect](https://www.effect.website [![npm version](https://img.shields.io/npm/v/%40effect-aws%2Flambda?color=brightgreen&label=npm%20package)](https://www.npmjs.com/package/@effect-aws/lambda) [![npm downloads](https://img.shields.io/npm/dm/%40effect-aws%2Flambda)](https://www.npmjs.com/package/@effect-aws/lambda) -It provides a `makeLambda` function that takes an `EffectHandler` and returns a native promise Lambda handler function. +It provides a `LambdaHandler.make` function that takes an `EffectHandler` and returns a native promise Lambda handler function. The implementation supports defining global runtime layer with graceful shutdown. So all finalizers defined by `acquireRelease` will be called on lambda downscaling. @@ -21,7 +21,7 @@ Without dependencies: ```typescript import { Effect } from "effect" -import { EffectHandler, makeLambda, SNSEvent } from "@effect-aws/lambda" +import { EffectHandler, LambdaHandler, SNSEvent } from "@effect-aws/lambda" // Define your effect handler const myEffectHandler: EffectHandler = (event, context) => { @@ -30,13 +30,13 @@ const myEffectHandler: EffectHandler = (event, context) => { } // Create the Lambda handler -export const handler = makeLambda(myEffectHandler) +export const handler = LambdaHandler.make(myEffectHandler) ``` With dependencies: ```typescript -import { EffectHandler, makeLambda, SNSEvent } from "@effect-aws/lambda" +import { EffectHandler, LambdaHandler, SNSEvent } from "@effect-aws/lambda" import * as Logger from "@effect-aws/powertools-logger" import { Context, Effect, Layer } from "effect" @@ -64,7 +64,10 @@ const LambdaLive = Layer.provideMerge( ) // Create the Lambda handler -export const handler = makeLambda(myEffectHandler, LambdaLive) +export const handler = LambdaHandler.make({ + handler: myEffectHandler, + layer: LambdaLive +}) ``` Streaming: diff --git a/packages/lambda/examples/stream.ts b/packages/lambda/examples/stream.ts index 7a8e88a9..a64fd748 100644 --- a/packages/lambda/examples/stream.ts +++ b/packages/lambda/examples/stream.ts @@ -9,12 +9,12 @@ import { createGzip } from "node:zlib"; * Streaming handler that takes a Lambda Function URL event, compresses it using gzip and * returns the compressed data as a stream. */ -const streamHandler: StreamHandler = (event) => { +const streamHandler: StreamHandler = (event) => { return Stream.make(Buffer.from(JSON.stringify(event))).pipe( - Stream.pipeThroughChannelOrFail(NodeStream.fromDuplex( - () => createGzip(), - (e) => new Cause.UnknownException(e), - )), + Stream.pipeThroughChannelOrFail(NodeStream.fromDuplex({ + evaluate: () => createGzip(), + onError: (e) => new Cause.UnknownError(e), + })), ); }; diff --git a/packages/lambda/src/Compatibility.ts b/packages/lambda/src/Compatibility.ts deleted file mode 100644 index be2c22a8..00000000 --- a/packages/lambda/src/Compatibility.ts +++ /dev/null @@ -1,62 +0,0 @@ -/** - * @since 1.4.0 - */ -import * as LambdaHandler from "./LambdaHandler.js"; -import * as LambdaRuntime from "./LambdaRuntime.js"; - -/** - * Makes a lambda handler from the given EffectHandler and optional global layer. - * The global layer is used to provide a runtime which will gracefully handle lambda termination during down-scaling. - * - * @example - * import { makeLambda, LambdaContext } from "@effect-aws/lambda"; - * import { Effect } from "effect"; - * - * const effectHandler = (event: unknown, context: LambdaContext) => { - * return Effect.logInfo("Hello, world!"); - * }; - * - * export const handler = makeLambda(effectHandler); - * - * @example - * import { makeLambda, LambdaContext } from "@effect-aws/lambda"; - * import { Effect, Logger } from "effect"; - * - * const effectHandler = (event: unknown, context: LambdaContext) => { - * return Effect.logInfo("Hello, world!"); - * }; - * - * const LambdaLayer = Logger.replace(Logger.defaultLogger, Logger.logfmtLogger); - * - * export const handler = makeLambda({ - * handler: effectHandler, - * layer: LambdaLayer, - * }); - * - * @since 1.0.0 - * @category constructors - * @deprecated Use `LambdaHandler.make` instead. - */ -export const makeLambda = LambdaHandler.make; - -/** - * Makes a managed runtime from a layer asynchronously, designed for AWS Lambda. - * All finalizers will be executed on process termination or interruption. - * - * @example - * import { fromLayer, LambdaContext } from "@effect-aws/lambda"; - * import { Effect, Logger } from "effect"; - * - * const LambdaLayer = Logger.replace(Logger.defaultLogger, Logger.logfmtLogger); - * - * const lambdaRuntime = fromLayer(LambdaLayer); - * - * export const handler = async (event: unknown, context: LambdaContext) => { - * return Effect.logInfo("Hello, world!").pipe(lambdaRuntime.runPromise); - * }; - * - * @since 1.0.0 - * @category constructors - * @deprecated Use `LambdaRuntime.fromLayer` instead. - */ -export const fromLayer = LambdaRuntime.fromLayer; diff --git a/packages/lambda/src/index.ts b/packages/lambda/src/index.ts index 22540b74..be0004fd 100644 --- a/packages/lambda/src/index.ts +++ b/packages/lambda/src/index.ts @@ -8,11 +8,6 @@ export * as LambdaHandler from "./LambdaHandler.js"; */ export * as LambdaRuntime from "./LambdaRuntime.js"; -/** - * @since 1.0.0 - */ -export * from "./Compatibility.js"; - /** * @since 1.0.0 */ diff --git a/packages/lambda/src/internal/stream.ts b/packages/lambda/src/internal/stream.ts index dec186ca..b55dfef3 100644 --- a/packages/lambda/src/internal/stream.ts +++ b/packages/lambda/src/internal/stream.ts @@ -1,23 +1,25 @@ -import { Error } from "@effect/platform"; import * as NodeStream from "@effect/platform-node-shared/NodeStream"; import { Effect, Stream } from "effect"; import { dual } from "effect/Function"; +import * as Error from "effect/PlatformError"; import type { PipelineDestination, PipelineSource } from "node:stream"; import * as NS from "node:stream/promises"; const handleErrnoException = (module: Error.SystemError["module"], method: string) => (err: unknown): Error.PlatformError => { - const reason: Error.SystemErrorReason = "Unknown"; + const reason: Error.SystemErrorTag = "Unknown"; - return new Error.SystemError({ - reason, - module, - method, - pathOrDescriptor: "", - syscall: (err as NodeJS.ErrnoException).syscall, - description: (err as NodeJS.ErrnoException).message, - cause: err, - }); + return new Error.PlatformError( + new Error.SystemError({ + _tag: reason, + module, + method, + pathOrDescriptor: "", + syscall: (err as NodeJS.ErrnoException).syscall, + description: (err as NodeJS.ErrnoException).message, + cause: err, + }), + ); }; /** @internal */ diff --git a/packages/powertools-logger/.projen/deps.json b/packages/powertools-logger/.projen/deps.json index d15e2276..2151c0de 100644 --- a/packages/powertools-logger/.projen/deps.json +++ b/packages/powertools-logger/.projen/deps.json @@ -17,6 +17,7 @@ }, { "name": "effect", + "version": "4.0.0-beta.8", "type": "build" }, { @@ -31,7 +32,7 @@ }, { "name": "effect", - "version": ">=3.0.4 <4.0.0", + "version": ">=4.0.0 <5.0.0", "type": "peer" } ], diff --git a/packages/powertools-logger/package.json b/packages/powertools-logger/package.json index 8bfba930..00f28d7b 100644 --- a/packages/powertools-logger/package.json +++ b/packages/powertools-logger/package.json @@ -28,12 +28,12 @@ "@aws-lambda-powertools/commons": "2.0.0", "@aws-lambda-powertools/logger": "2.0.0", "@types/node": "ts5.4", - "effect": "^3.16.4", + "effect": "4.0.0-beta.8", "typescript": "^5.4.2" }, "peerDependencies": { "@aws-lambda-powertools/logger": ">=2.0.0", - "effect": ">=3.0.4 <4.0.0" + "effect": ">=4.0.0 <5.0.0" }, "main": "build/cjs/index.js", "license": "MIT", diff --git a/packages/powertools-logger/src/Logger.ts b/packages/powertools-logger/src/Logger.ts index 8ad4a784..f2584018 100644 --- a/packages/powertools-logger/src/Logger.ts +++ b/packages/powertools-logger/src/Logger.ts @@ -8,7 +8,8 @@ import type { LogItemExtraInput, LogItemMessage, } from "@aws-lambda-powertools/logger/types"; -import { Cause, Effect, FiberId, FiberRef, FiberRefs, HashMap, Layer, List, Logger as Log, LogLevel } from "effect"; +import type { LogLevel } from "effect"; +import { Cause, Effect, Layer, Logger as Log, References, ServiceMap } from "effect"; import * as Instance from "./LoggerInstance.js"; import * as LoggerOptions from "./LoggerOptions.js"; @@ -22,18 +23,20 @@ const LogLevelThreshold = { SILENT: 28, } as const; -const MappedLogLevel = { - [LogLevel.All.label]: LogLevelThreshold.TRACE, - [LogLevel.Trace.label]: LogLevelThreshold.TRACE, - [LogLevel.Debug.label]: LogLevelThreshold.DEBUG, - [LogLevel.Info.label]: LogLevelThreshold.INFO, - [LogLevel.Warning.label]: LogLevelThreshold.WARN, - [LogLevel.Error.label]: LogLevelThreshold.ERROR, - [LogLevel.Fatal.label]: LogLevelThreshold.CRITICAL, - [LogLevel.None.label]: LogLevelThreshold.SILENT, +const MappedLogLevel: Record = { + All: LogLevelThreshold.TRACE, + Trace: LogLevelThreshold.TRACE, + Debug: LogLevelThreshold.DEBUG, + Info: LogLevelThreshold.INFO, + Warn: LogLevelThreshold.WARN, + Error: LogLevelThreshold.ERROR, + Fatal: LogLevelThreshold.CRITICAL, + None: LogLevelThreshold.SILENT, } as const; -const logExtraInput = FiberRef.unsafeMake([]); +const logExtraInput = ServiceMap.Reference("@effect-aws/powertools-logger/logExtraInput", { + defaultValue: () => [], +}); const processLog = (effect: (message: string) => Effect.Effect) => { return (input: LogItemMessage, ...extraInput: Array) => { @@ -41,7 +44,7 @@ const processLog = (effect: (message: string) => Effect.Effect) => { const extraInputs = typeof input === "string" ? extraInput : [input, ...extraInput]; - return Effect.locally(effect(message), logExtraInput, extraInputs); + return Effect.provideService(effect(message), logExtraInput, extraInputs); }; }; @@ -89,6 +92,13 @@ export const logFatal = processLog(Effect.logFatal); */ export const logCritical = processLog(Effect.logFatal); +/** + * Formats the identifier of a `Fiber` by prefixing it with a hash tag. + */ +const formatFiberId = (fiberId: number) => `#${fiberId}`; + +const isCauseEmpty = (self: Cause.Cause): self is Cause.Cause => self.reasons.length === 0; + /** * @since 1.0.0 * @category constructors @@ -96,7 +106,7 @@ export const logCritical = processLog(Effect.logFatal); const makeLoggerInstance = (logger: Logger) => { return Log.make((options) => { const extraInputs = [ - ...FiberRefs.getOrDefault(options.context, logExtraInput), + ...ServiceMap.getReferenceUnsafe(options.fiber.services, logExtraInput), ]; let message = options.message; @@ -107,22 +117,22 @@ const makeLoggerInstance = (logger: Logger) => { extraInputs.push(...rest); } - const nowMillis = options.date.getTime(); + // const nowMillis = options.date.getTime(); extraInputs.push({ - fiber: FiberId.threadName(options.fiberId), + fiber: formatFiberId(options.fiber.id), date: options.date.toISOString(), - ...(Cause.isEmpty(options.cause) + ...(isCauseEmpty(options.cause) ? {} : { cause: Cause.pretty(options.cause) }), - ...List.reduce(options.spans, {}, (acc, span) => ({ - ...acc, - [span.label]: `${nowMillis - span.startTime}ms`, - })), - ...HashMap.reduce(options.annotations, {}, (acc, value, key) => ({ - ...acc, - [key]: value, - })), + // ...List.reduce(options.spans, {}, (acc, span) => ({ + // ...acc, + // [span.label]: `${nowMillis - span.startTime}ms`, + // })), + // ...HashMap.reduce(options.annotations, {}, (acc, value, key) => ({ + // ...acc, + // [key]: value, + // })), }); const unsafeLogger = logger as unknown as { @@ -134,17 +144,17 @@ const makeLoggerInstance = (logger: Logger) => { }; unsafeLogger.processLogItem( - MappedLogLevel[options.logLevel.label], + MappedLogLevel[options.logLevel], (message ?? {}) as LogItemMessage, extraInputs as LogItemExtraInput, ); }); }; -const PowerToolsLoggerEffect = Effect.map(Instance.LoggerInstance, makeLoggerInstance); +const PowerToolsLoggerEffect = Effect.map(Instance.LoggerInstance.asEffect(), makeLoggerInstance); const PowerToolsLoggerLayer = Layer.merge( - Log.replaceEffect(Log.defaultLogger, PowerToolsLoggerEffect), - Log.minimumLogLevel(LogLevel.All), + Log.layer([PowerToolsLoggerEffect]), + Layer.succeed(References.MinimumLogLevel, "All"), ); /** diff --git a/packages/powertools-logger/src/LoggerInstance.ts b/packages/powertools-logger/src/LoggerInstance.ts index d3e768b0..2b479411 100644 --- a/packages/powertools-logger/src/LoggerInstance.ts +++ b/packages/powertools-logger/src/LoggerInstance.ts @@ -2,16 +2,16 @@ * @since 1.0.0 */ import { Logger } from "@aws-lambda-powertools/logger"; -import { Context, Effect, Layer } from "effect"; +import { Effect, Layer, ServiceMap } from "effect"; import * as LoggerOptions from "./LoggerOptions.js"; /** * @since 1.0.0 * @category tags */ -export class LoggerInstance extends Context.Tag( +export class LoggerInstance extends ServiceMap.Service()( "@effect-aws/powertools-logger/LoggerInstance", -)() {} +) {} /** * @since 1.0.0 diff --git a/packages/powertools-logger/src/LoggerOptions.ts b/packages/powertools-logger/src/LoggerOptions.ts index af39e9fb..49c0046f 100644 --- a/packages/powertools-logger/src/LoggerOptions.ts +++ b/packages/powertools-logger/src/LoggerOptions.ts @@ -2,17 +2,16 @@ * @since 1.0.0 */ import type { ConstructorOptions } from "@aws-lambda-powertools/logger/types"; -import { Effect, FiberRef, Layer } from "effect"; +import { Effect, Layer, ServiceMap } from "effect"; import { dual } from "effect/Function"; -import { globalValue } from "effect/GlobalValue"; /** * @since 1.0.0 * @category logger options */ -const currentLoggerOptions = globalValue( +const currentLoggerOptions = ServiceMap.Reference( "@effect-aws/powertools-logger/currentLoggerOptions", - () => FiberRef.unsafeMake({}), + { defaultValue: () => ({}) }, ); /** @@ -25,17 +24,17 @@ export const withLoggerOptions: { } = dual( 2, (effect: Effect.Effect, options: ConstructorOptions): Effect.Effect => - Effect.locally(effect, currentLoggerOptions, options), + Effect.provideService(effect, currentLoggerOptions, options), ); /** * @since 1.0.0 * @category logger options */ -export const setLoggerOptions = (options: ConstructorOptions) => Layer.locallyScoped(currentLoggerOptions, options); +export const setLoggerOptions = (options: ConstructorOptions) => Layer.succeed(currentLoggerOptions, options); /** * @since 1.0.0 * @category logger options */ -export const getLoggerOptions: Effect.Effect = FiberRef.get(currentLoggerOptions); +export const getLoggerOptions: Effect.Effect = currentLoggerOptions.asEffect(); diff --git a/packages/powertools-logger/test/Logger.test.ts b/packages/powertools-logger/test/Logger.test.ts index 67027cc7..9b82b581 100644 --- a/packages/powertools-logger/test/Logger.test.ts +++ b/packages/powertools-logger/test/Logger.test.ts @@ -1,16 +1,10 @@ import { Logger as LoggerCtor } from "@aws-lambda-powertools/logger"; import { Logger } from "@effect-aws/powertools-logger"; -import { Chunk, Effect, Layer, TestClock, TestContext, TestServices } from "effect"; -import { pipe } from "effect/Function"; +import { it } from "@effect/vitest"; +import { Effect } from "effect"; +import * as TestClock from "effect/testing/TestClock"; import type { MockInstance } from "vitest"; -import { afterEach, beforeEach, describe, expect, it, vi } from "vitest"; - -const TestLayer = TestClock.live( - TestClock.makeData(new Date("2025-04-09").getTime(), Chunk.empty()), -).pipe( - Layer.provide(Layer.merge(TestServices.liveLayer(), TestServices.annotationsLayer())), - Layer.provide(TestContext.LiveContext), -); +import { afterEach, beforeEach, describe, expect, vi } from "vitest"; describe("Logger", () => { let log: ReturnType; @@ -26,197 +20,174 @@ describe("Logger", () => { stdout.mockClear(); }); - it("default", async () => { - const program = pipe( - Logger.logInfo("Info message with log meta", { foo: "bar" }), - Effect.tap(() => Effect.logInfo("Native effect info message", { baz: "qux" })), - ); - - await pipe( - program, - Effect.provide(Logger.defaultLayer), - Effect.provide(TestLayer), - Effect.runPromise, - ); - - expect(log).toHaveBeenCalledTimes(2); - expect(log).toHaveBeenNthCalledWith( - 1, - 12, // INFO - "Info message with log meta", - [ - { foo: "bar" }, - { fiber: expect.any(String), date: expect.any(String) }, - ], - ); - expect(log).toHaveBeenNthCalledWith( - 2, - 12, // INFO - "Native effect info message", - [ - { baz: "qux" }, - { fiber: expect.any(String), date: expect.any(String) }, - ], - ); - expect(stdout).toHaveBeenCalledTimes(2); - expect(JSON.parse(stdout.mock.calls[0][0] as string)).toStrictEqual({ - level: "INFO", - message: "Info message with log meta", - sampling_rate: 0, - service: "service_undefined", - timestamp: expect.stringMatching(/^\d{4}-\d{2}-\d{2}T\d{2}:\d{2}:\d{2}\.\d{3}Z$/), - fiber: expect.stringMatching(/^#\d+$/), - date: "2025-04-09T00:00:00.000Z", - foo: "bar", - }); - expect(JSON.parse(stdout.mock.calls[1][0] as string)).toStrictEqual({ - level: "INFO", - message: "Native effect info message", - sampling_rate: 0, - service: "service_undefined", - timestamp: expect.stringMatching(/^\d{4}-\d{2}-\d{2}T\d{2}:\d{2}:\d{2}\.\d{3}Z$/), - fiber: expect.stringMatching(/^#\d+$/), - date: "2025-04-09T00:00:00.000Z", - baz: "qux", - }); - }); - - it("configurable", async () => { - const program = pipe( - Logger.logDebug("Debug message with log meta", { foo: "bar" }), - Effect.tap(() => Effect.logDebug("Native effect debug message", { baz: "qux" })), - ); - - await pipe( - program, - Effect.provide(Logger.layer({ logLevel: "DEBUG" })), - Effect.provide(TestLayer), - Effect.runPromise, - ); - - expect(log).toHaveBeenCalledTimes(2); - expect(log).toHaveBeenNthCalledWith( - 1, - 8, // DEBUG - "Debug message with log meta", - [ - { foo: "bar" }, - { fiber: expect.any(String), date: expect.any(String) }, - ], - ); - expect(log).toHaveBeenNthCalledWith( - 2, - 8, // DEBUG - "Native effect debug message", - [ - { baz: "qux" }, - { fiber: expect.any(String), date: expect.any(String) }, - ], - ); - expect(stdout).toHaveBeenCalledTimes(2); - expect(JSON.parse(stdout.mock.calls[0][0] as string)).toStrictEqual({ - level: "DEBUG", - message: "Debug message with log meta", - sampling_rate: 0, - service: "service_undefined", - timestamp: expect.stringMatching(/^\d{4}-\d{2}-\d{2}T\d{2}:\d{2}:\d{2}\.\d{3}Z$/), - fiber: expect.stringMatching(/^#\d+$/), - date: "2025-04-09T00:00:00.000Z", - foo: "bar", - }); - expect(JSON.parse(stdout.mock.calls[1][0] as string)).toStrictEqual({ - level: "DEBUG", - message: "Native effect debug message", - sampling_rate: 0, - service: "service_undefined", - timestamp: expect.stringMatching(/^\d{4}-\d{2}-\d{2}T\d{2}:\d{2}:\d{2}\.\d{3}Z$/), - fiber: expect.stringMatching(/^#\d+$/), - date: "2025-04-09T00:00:00.000Z", - baz: "qux", - }); - }); - - it("base", async () => { - const stderr = vi.spyOn(process.stderr, "write"); - - const program = pipe( - Logger.logError("Error message with log meta", { foo: "bar" }), - Effect.tap(() => Effect.logError("Native effect error message", { baz: "qux" })), - ); - - await pipe( - program, - Effect.provide(Logger.baseLayer(() => new LoggerCtor({ logLevel: "ERROR" }))), - Effect.provide(TestLayer), - Effect.runPromise, - ); - - expect(log).toHaveBeenCalledTimes(2); - expect(log).toHaveBeenNthCalledWith( - 1, - 20, // ERROR - "Error message with log meta", - [ - { foo: "bar" }, - { fiber: expect.any(String), date: expect.any(String) }, - ], - ); - expect(log).toHaveBeenNthCalledWith( - 2, - 20, // ERROR - "Native effect error message", - [ - { baz: "qux" }, - { fiber: expect.any(String), date: expect.any(String) }, - ], - ); - expect(stderr).toHaveBeenCalledTimes(2); - expect(JSON.parse(stderr.mock.calls[0][0] as string)).toStrictEqual({ - level: "ERROR", - message: "Error message with log meta", - sampling_rate: 0, - service: "service_undefined", - timestamp: expect.stringMatching(/^\d{4}-\d{2}-\d{2}T\d{2}:\d{2}:\d{2}\.\d{3}Z$/), - fiber: expect.stringMatching(/^#\d+$/), - date: "2025-04-09T00:00:00.000Z", - foo: "bar", - }); - expect(JSON.parse(stderr.mock.calls[1][0] as string)).toStrictEqual({ - level: "ERROR", - message: "Native effect error message", - sampling_rate: 0, - service: "service_undefined", - timestamp: expect.stringMatching(/^\d{4}-\d{2}-\d{2}T\d{2}:\d{2}:\d{2}\.\d{3}Z$/), - fiber: expect.stringMatching(/^#\d+$/), - date: "2025-04-09T00:00:00.000Z", - baz: "qux", - }); - }); - - it("should not fail when message in undefined", async () => { - const program = Effect.log(); - - await pipe( - program, - Effect.provide(Logger.defaultLayer), - Effect.provide(TestLayer), - Effect.runPromise, - ); - - expect(log).toHaveBeenCalledOnce(); - expect(log).toHaveBeenCalledWith( - 12, // INFO - {}, - [{ fiber: expect.any(String), date: expect.any(String) }], - ); - expect(stdout).toHaveBeenCalledOnce(); - expect(JSON.parse(stdout.mock.lastCall![0] as string)).toStrictEqual({ - level: "INFO", - sampling_rate: 0, - service: "service_undefined", - timestamp: expect.stringMatching(/^\d{4}-\d{2}-\d{2}T\d{2}:\d{2}:\d{2}\.\d{3}Z$/), - fiber: expect.stringMatching(/^#\d+$/), - date: "2025-04-09T00:00:00.000Z", - }); - }); + it.effect("default", () => + Effect.gen(function*() { + yield* TestClock.setTime(new Date("2025-04-09").getTime()); + + yield* Logger.logInfo("Info message with log meta", { foo: "bar" }); + yield* Effect.logInfo("Native effect info message", { baz: "qux" }); + + expect(log).toHaveBeenCalledTimes(2); + expect(log).toHaveBeenNthCalledWith( + 1, + 12, // INFO + "Info message with log meta", + [ + { foo: "bar" }, + { fiber: expect.any(String), date: expect.any(String) }, + ], + ); + expect(log).toHaveBeenNthCalledWith( + 2, + 12, // INFO + "Native effect info message", + [ + { baz: "qux" }, + { fiber: expect.any(String), date: expect.any(String) }, + ], + ); + expect(stdout).toHaveBeenCalledTimes(2); + expect(JSON.parse(stdout.mock.calls[0][0] as string)).toStrictEqual({ + level: "INFO", + message: "Info message with log meta", + sampling_rate: 0, + service: "service_undefined", + timestamp: expect.stringMatching(/^\d{4}-\d{2}-\d{2}T\d{2}:\d{2}:\d{2}\.\d{3}Z$/), + fiber: expect.stringMatching(/^#\d+$/), + date: "2025-04-09T00:00:00.000Z", + foo: "bar", + }); + expect(JSON.parse(stdout.mock.calls[1][0] as string)).toStrictEqual({ + level: "INFO", + message: "Native effect info message", + sampling_rate: 0, + service: "service_undefined", + timestamp: expect.stringMatching(/^\d{4}-\d{2}-\d{2}T\d{2}:\d{2}:\d{2}\.\d{3}Z$/), + fiber: expect.stringMatching(/^#\d+$/), + date: "2025-04-09T00:00:00.000Z", + baz: "qux", + }); + }).pipe(Effect.provide(Logger.defaultLayer))); + + it.effect("configurable", () => + Effect.gen(function*() { + yield* TestClock.setTime(new Date("2025-04-09").getTime()); + + yield* Logger.logDebug("Debug message with log meta", { foo: "bar" }); + yield* Effect.logDebug("Native effect debug message", { baz: "qux" }); + + expect(log).toHaveBeenCalledTimes(2); + expect(log).toHaveBeenNthCalledWith( + 1, + 8, // DEBUG + "Debug message with log meta", + [ + { foo: "bar" }, + { fiber: expect.any(String), date: expect.any(String) }, + ], + ); + expect(log).toHaveBeenNthCalledWith( + 2, + 8, // DEBUG + "Native effect debug message", + [ + { baz: "qux" }, + { fiber: expect.any(String), date: expect.any(String) }, + ], + ); + expect(stdout).toHaveBeenCalledTimes(2); + expect(JSON.parse(stdout.mock.calls[0][0] as string)).toStrictEqual({ + level: "DEBUG", + message: "Debug message with log meta", + sampling_rate: 0, + service: "service_undefined", + timestamp: expect.stringMatching(/^\d{4}-\d{2}-\d{2}T\d{2}:\d{2}:\d{2}\.\d{3}Z$/), + fiber: expect.stringMatching(/^#\d+$/), + date: "2025-04-09T00:00:00.000Z", + foo: "bar", + }); + expect(JSON.parse(stdout.mock.calls[1][0] as string)).toStrictEqual({ + level: "DEBUG", + message: "Native effect debug message", + sampling_rate: 0, + service: "service_undefined", + timestamp: expect.stringMatching(/^\d{4}-\d{2}-\d{2}T\d{2}:\d{2}:\d{2}\.\d{3}Z$/), + fiber: expect.stringMatching(/^#\d+$/), + date: "2025-04-09T00:00:00.000Z", + baz: "qux", + }); + }).pipe(Effect.provide(Logger.layer({ logLevel: "DEBUG" })))); + + it.effect("base", () => + Effect.gen(function*() { + yield* TestClock.setTime(new Date("2025-04-09").getTime()); + const stderr = vi.spyOn(process.stderr, "write"); + + yield* Logger.logError("Error message with log meta", { foo: "bar" }); + yield* Effect.logError("Native effect error message", { baz: "qux" }); + + expect(log).toHaveBeenCalledTimes(2); + expect(log).toHaveBeenNthCalledWith( + 1, + 20, // ERROR + "Error message with log meta", + [ + { foo: "bar" }, + { fiber: expect.any(String), date: expect.any(String) }, + ], + ); + expect(log).toHaveBeenNthCalledWith( + 2, + 20, // ERROR + "Native effect error message", + [ + { baz: "qux" }, + { fiber: expect.any(String), date: expect.any(String) }, + ], + ); + expect(stderr).toHaveBeenCalledTimes(2); + expect(JSON.parse(stderr.mock.calls[0][0] as string)).toStrictEqual({ + level: "ERROR", + message: "Error message with log meta", + sampling_rate: 0, + service: "service_undefined", + timestamp: expect.stringMatching(/^\d{4}-\d{2}-\d{2}T\d{2}:\d{2}:\d{2}\.\d{3}Z$/), + fiber: expect.stringMatching(/^#\d+$/), + date: "2025-04-09T00:00:00.000Z", + foo: "bar", + }); + expect(JSON.parse(stderr.mock.calls[1][0] as string)).toStrictEqual({ + level: "ERROR", + message: "Native effect error message", + sampling_rate: 0, + service: "service_undefined", + timestamp: expect.stringMatching(/^\d{4}-\d{2}-\d{2}T\d{2}:\d{2}:\d{2}\.\d{3}Z$/), + fiber: expect.stringMatching(/^#\d+$/), + date: "2025-04-09T00:00:00.000Z", + baz: "qux", + }); + }).pipe(Effect.provide(Logger.baseLayer(() => new LoggerCtor({ logLevel: "ERROR" }))))); + + it.effect("should not fail when message in undefined", () => + Effect.gen(function*() { + yield* TestClock.setTime(new Date("2025-04-09").getTime()); + + yield* Effect.log(); + + expect(log).toHaveBeenCalledOnce(); + expect(log).toHaveBeenCalledWith( + 12, // INFO + {}, + [{ fiber: expect.any(String), date: expect.any(String) }], + ); + expect(stdout).toHaveBeenCalledOnce(); + expect(JSON.parse(stdout.mock.lastCall![0] as string)).toStrictEqual({ + level: "INFO", + sampling_rate: 0, + service: "service_undefined", + timestamp: expect.stringMatching(/^\d{4}-\d{2}-\d{2}T\d{2}:\d{2}:\d{2}\.\d{3}Z$/), + fiber: expect.stringMatching(/^#\d+$/), + date: "2025-04-09T00:00:00.000Z", + }); + }).pipe(Effect.provide(Logger.defaultLayer))); }); diff --git a/packages/powertools-tracer/.projen/deps.json b/packages/powertools-tracer/.projen/deps.json index bd099ebe..07a89ed4 100644 --- a/packages/powertools-tracer/.projen/deps.json +++ b/packages/powertools-tracer/.projen/deps.json @@ -26,6 +26,7 @@ }, { "name": "effect", + "version": "4.0.0-beta.8", "type": "build" }, { @@ -40,7 +41,7 @@ }, { "name": "effect", - "version": ">=3.0.4 <4.0.0", + "version": ">=4.0.0 <5.0.0", "type": "peer" }, { diff --git a/packages/powertools-tracer/examples/example.ts b/packages/powertools-tracer/examples/example.ts index ba89bdb0..66cb91cf 100644 --- a/packages/powertools-tracer/examples/example.ts +++ b/packages/powertools-tracer/examples/example.ts @@ -1,4 +1,4 @@ -import { makeLambda } from "@effect-aws/lambda"; +import { LambdaHandler } from "@effect-aws/lambda"; import { Tracer } from "@effect-aws/powertools-tracer"; import type { APIGatewayProxyEventV2, APIGatewayProxyHandlerV2 } from "aws-lambda"; import { Effect, flow } from "effect"; @@ -40,7 +40,7 @@ export const program = (event: APIGatewayProxyEventV2) => yield* Effect.fail(new BadInputError()); } if (event.queryStringParameters?.fatal === "true") { - yield* Effect.dieMessage("Fatal error"); + yield* Effect.die("Fatal error"); } return { @@ -53,7 +53,7 @@ class BadInputError { readonly _tag = "BadInputError"; } -export const handler: APIGatewayProxyHandlerV2 = makeLambda({ +export const handler: APIGatewayProxyHandlerV2 = LambdaHandler.make({ handler: flow( program, Effect.catchTags({ @@ -63,7 +63,7 @@ export const handler: APIGatewayProxyHandlerV2 = makeLambda({ body: JSON.stringify({ message: "Bad input" }), }), }), - Effect.catchAllDefect((defect) => + Effect.catchDefect((defect) => Effect.succeed({ statusCode: 500, body: JSON.stringify({ message: `An error occurred: ${defect}` }), diff --git a/packages/powertools-tracer/package.json b/packages/powertools-tracer/package.json index ef8d092d..fa3e1a12 100644 --- a/packages/powertools-tracer/package.json +++ b/packages/powertools-tracer/package.json @@ -30,12 +30,12 @@ "@effect-aws/lambda": "workspace:^", "@types/aws-lambda": "^8.10.159", "@types/node": "ts5.4", - "effect": "^3.16.4", + "effect": "4.0.0-beta.8", "typescript": "^5.4.2" }, "peerDependencies": { "@aws-lambda-powertools/tracer": ">=2.0.0", - "effect": ">=3.0.4 <4.0.0" + "effect": ">=4.0.0 <5.0.0" }, "dependencies": { "aws-xray-sdk-core": "^3.5.3" diff --git a/packages/powertools-tracer/src/Tracer.ts b/packages/powertools-tracer/src/Tracer.ts index 91c515e5..519b0a27 100644 --- a/packages/powertools-tracer/src/Tracer.ts +++ b/packages/powertools-tracer/src/Tracer.ts @@ -2,7 +2,7 @@ * @since 1.0.0 */ import type { TracerInterface, TracerOptions } from "@aws-lambda-powertools/tracer/types"; -import type { Tag } from "effect/Context"; +import type { ServiceMap } from "effect"; import type { Effect } from "effect/Effect"; import type { Layer } from "effect/Layer"; import type { Tracer as EffectTracer } from "effect/Tracer"; @@ -26,7 +26,7 @@ export interface XrayTracer { * @since 1.0.0 * @category tags */ -export const XrayTracer: Tag = internal.Tracer; +export const XrayTracer: ServiceMap.Service = internal.Tracer; /** * @since 1.0.0 diff --git a/packages/powertools-tracer/src/internal/tracer.ts b/packages/powertools-tracer/src/internal/tracer.ts index 9cc1f4f5..3da5773a 100644 --- a/packages/powertools-tracer/src/internal/tracer.ts +++ b/packages/powertools-tracer/src/internal/tracer.ts @@ -1,7 +1,7 @@ import * as PowerTools from "@aws-lambda-powertools/tracer"; import type { TracerInterface, TracerOptions } from "@aws-lambda-powertools/tracer/types"; import * as Xray from "aws-xray-sdk-core"; -import { Cause, Context, Effect, Layer, Option } from "effect"; +import { Cause, Effect, Layer, ServiceMap } from "effect"; import type { Exit } from "effect/Exit"; import * as EffectTracer from "effect/Tracer"; import type { XrayTracer } from "../Tracer.js"; @@ -26,8 +26,8 @@ export class XraySpan implements EffectTracer.Span { constructor( readonly tracer: TracerInterface, readonly name: string, - readonly parent: Option.Option, - readonly context: Context.Context, + readonly parent: EffectTracer.AnySpan | undefined, + readonly annotations: ServiceMap.ServiceMap, readonly links: Array, startTime: bigint, readonly kind: EffectTracer.SpanKind, @@ -35,8 +35,8 @@ export class XraySpan implements EffectTracer.Span { this[XraySpanTypeId] = XraySpanTypeId; let parentSegment = tracer.getSegment(); - if (Option.isSome(parent)) { - const { span } = parent.value as XraySpan; + if (parent) { + const { span } = parent as XraySpan; parentSegment = span; } @@ -48,6 +48,7 @@ export class XraySpan implements EffectTracer.Span { startTime, }; this.sampled = false; + this.annotations = annotations; } addLinks(links: ReadonlyArray): void { @@ -70,7 +71,7 @@ export class XraySpan implements EffectTracer.Span { if (exit._tag === "Success") { // noop } else { - if (Cause.isInterruptedOnly(exit.cause)) { + if (Cause.hasInterruptsOnly(exit.cause)) { this.span.addMetadata("span.message", Cause.pretty(exit.cause)); this.span.addMetadata("span.label", "⚠︎ Interrupted"); this.span.addAnnotation("status.interrupted", true); @@ -82,7 +83,7 @@ export class XraySpan implements EffectTracer.Span { this.span.addError(error); } - if (Cause.isFailType(exit.cause)) { + if (Cause.hasFails(exit.cause)) { this.span.addErrorFlag(); } else { this.span.addFaultFlag(); @@ -101,34 +102,31 @@ export class XraySpan implements EffectTracer.Span { } /** @internal */ -export const Tracer = Context.GenericTag( +export const Tracer = ServiceMap.Service( "@effect-aws/powertools-tracer/Tracer/XrayTracer", ); /** @internal */ -export const make = Effect.map(Tracer, (tracer) => +export const make = Effect.map(Tracer.asEffect(), (tracer) => EffectTracer.make({ - span(name, parent, context, links, startTime, kind) { + span: ({ annotations, kind, links, name, parent, startTime }) => { return new XraySpan( tracer, name, parent, - context, + annotations, links.slice(), startTime, kind, ); }, - context(execution) { - return execution(); - }, })); /** @internal */ export const layerTracer = (options?: TracerOptions) => Layer.sync(Tracer, () => new PowerTools.Tracer(options)); /** @internal */ -export const layerWithoutXrayTracer = Layer.unwrapEffect(Effect.map(make, Layer.setTracer)); +export const layerWithoutXrayTracer = Layer.effect(EffectTracer.Tracer, make); /** @internal */ export const layer = (options?: TracerOptions) => layerWithoutXrayTracer.pipe(Layer.provide(layerTracer(options))); diff --git a/packages/s3/.projen/deps.json b/packages/s3/.projen/deps.json index 469ea3c5..711c2088 100644 --- a/packages/s3/.projen/deps.json +++ b/packages/s3/.projen/deps.json @@ -10,10 +10,6 @@ "version": "workspace:^", "type": "build" }, - { - "name": "@effect/platform", - "type": "build" - }, { "name": "@types/node", "version": "ts5.4", @@ -21,6 +17,7 @@ }, { "name": "effect", + "version": "4.0.0-beta.8", "type": "build" }, { @@ -33,14 +30,9 @@ "version": "workspace:^", "type": "peer" }, - { - "name": "@effect/platform", - "version": ">=0.83.0", - "type": "peer" - }, { "name": "effect", - "version": ">=3.15.5 <4.0.0", + "version": ">=4.0.0 <5.0.0", "type": "peer" } ], diff --git a/packages/s3/examples/file-upload.ts b/packages/s3/examples/file-upload.ts index f5b6f3ac..53506209 100644 --- a/packages/s3/examples/file-upload.ts +++ b/packages/s3/examples/file-upload.ts @@ -1,7 +1,6 @@ import { MultipartUpload } from "@effect-aws/s3"; -import { FileSystem } from "@effect/platform"; import { NodeFileSystem } from "@effect/platform-node"; -import { Effect, Layer } from "effect"; +import { Effect, FileSystem, Layer } from "effect"; const program = Effect.gen(function*() { const fs = yield* FileSystem.FileSystem; diff --git a/packages/s3/package.json b/packages/s3/package.json index f9123a94..fe2b147d 100644 --- a/packages/s3/package.json +++ b/packages/s3/package.json @@ -27,15 +27,13 @@ "devDependencies": { "@aws-sdk/client-s3": "^3", "@effect-aws/client-s3": "workspace:^", - "@effect/platform": "^0.84.8", "@types/node": "ts5.4", - "effect": "^3.16.4", + "effect": "4.0.0-beta.8", "typescript": "^5.4.2" }, "peerDependencies": { "@effect-aws/client-s3": "workspace:^", - "@effect/platform": ">=0.83.0", - "effect": ">=3.15.5 <4.0.0" + "effect": ">=4.0.0 <5.0.0" }, "main": "build/cjs/index.js", "license": "MIT", diff --git a/packages/s3/src/MultipartUpload.ts b/packages/s3/src/MultipartUpload.ts index f486f08a..74ce0ce7 100644 --- a/packages/s3/src/MultipartUpload.ts +++ b/packages/s3/src/MultipartUpload.ts @@ -8,8 +8,7 @@ import type { S3ClientConfig, } from "@aws-sdk/client-s3"; import { S3Service } from "@effect-aws/client-s3"; -import type { Error as PlatformError, FileSystem } from "@effect/platform"; -import type { Cause, Context, Effect, Stream } from "effect"; +import type { Cause, Effect, FileSystem, PlatformError, ServiceMap, Stream } from "effect"; import { Layer } from "effect"; import * as internal from "./internal/multipartUpload.js"; @@ -52,7 +51,7 @@ export interface MultipartUpload { options?: UploadObjectOptions, ) => Effect.Effect< CompleteMultipartUploadCommandOutput, - Cause.TimeoutException | internal.S3ServiceErrors | PlatformError.BadArgument | Cause.NoSuchElementException + Cause.TimeoutError | internal.S3ServiceErrors | PlatformError.BadArgument | Cause.NoSuchElementError >; } @@ -60,7 +59,7 @@ export interface MultipartUpload { * @since 0.1.0 * @category tag */ -export const MultipartUpload: Context.Tag = internal.tag; +export const MultipartUpload: ServiceMap.Service = internal.tag; /** * Upload an object to S3 using multipart upload. @@ -73,7 +72,7 @@ export const uploadObject: ( options?: UploadObjectOptions, ) => Effect.Effect< CompleteMultipartUploadCommandOutput, - Cause.TimeoutException | internal.S3ServiceErrors | PlatformError.BadArgument | Cause.NoSuchElementException | E, + Cause.TimeoutError | internal.S3ServiceErrors | PlatformError.BadArgument | Cause.NoSuchElementError | E, MultipartUpload > = internal.uploadObject; diff --git a/packages/s3/src/S3FileSystem.ts b/packages/s3/src/S3FileSystem.ts index 498f2da6..e7bcd343 100644 --- a/packages/s3/src/S3FileSystem.ts +++ b/packages/s3/src/S3FileSystem.ts @@ -2,8 +2,8 @@ * @since 0.1.0 */ import type { S3Service } from "@effect-aws/client-s3"; -import type { FileSystem } from "@effect/platform/FileSystem"; -import type { Config, ConfigError, Layer } from "effect"; +import type { Config, Layer } from "effect"; +import type { FileSystem } from "effect/FileSystem"; import * as internal from "./internal/s3FileSystem.js"; /** @@ -25,5 +25,5 @@ export const layer: (config: S3FileSystemConfig) => Layer.Layer, -) => Layer.Layer = internal.layerConfig; + config: Config.Wrap, +) => Layer.Layer = internal.layerConfig; diff --git a/packages/s3/src/internal/multipartUpload.ts b/packages/s3/src/internal/multipartUpload.ts index b62d7af9..624d6468 100644 --- a/packages/s3/src/internal/multipartUpload.ts +++ b/packages/s3/src/internal/multipartUpload.ts @@ -6,21 +6,18 @@ import type { EncryptionTypeMismatchError, InvalidRequestError, InvalidWriteOffsetError, + NoSuchUploadError, S3ServiceError, SdkError, TooManyPartsError, } from "@effect-aws/client-s3"; import { S3Service } from "@effect-aws/client-s3"; -import { Error as PlatformError, FileSystem } from "@effect/platform"; import type { Cause } from "effect"; -import { Chunk, Context, Effect, Exit, Option, Predicate, Ref, Sink, Stream } from "effect"; +import { Array, Effect, Exit, FileSystem, Option, PlatformError, Ref, ServiceMap, Sink, Stream } from "effect"; import type { MultipartUpload, UploadObjectCommandInput, UploadObjectOptions } from "../MultipartUpload.js"; /** @internal */ -const isStream = (u: unknown): u is Stream.Stream => Predicate.hasProperty(u, Stream.StreamTypeId); - -/** @internal */ -export const tag = Context.GenericTag("@effect-aws/s3/MultipartUpload"); +export const tag = ServiceMap.Service("@effect-aws/s3/MultipartUpload"); /** @internal */ const handleBadArgument = (method: string) => (err: unknown) => @@ -137,7 +134,7 @@ const getChunk = ( data: UploadObjectCommandInput["Body"], partSize: FileSystem.Size, ): AsyncGenerator => { - if (isStream(data)) { + if (Stream.isStream(data)) { return getChunkStream(Stream.toReadableStream(data), partSize, getDataReadableStream); } @@ -179,6 +176,7 @@ interface RawDataPart { type PutObjectError = | SdkError + | NoSuchUploadError | EncryptionTypeMismatchError | InvalidRequestError | InvalidWriteOffsetError @@ -196,12 +194,8 @@ export const make: Effect.Effect = Effect.gen partNumber: number, uploadId: string | undefined, params: PutObjectCommandInput, - ): Effect.Effect => + ): Effect.Effect => Effect.gen(function*() { - yield* Effect.annotateLogsScoped({ - partSize: `${(params.Body as Buffer).length / 1024 / 1024} MiB`, - }); - yield* Effect.logTrace(`[MultipartUpload] uploading part ${partNumber}`); const partResult = yield* s3.uploadPart({ @@ -214,7 +208,7 @@ export const make: Effect.Effect = Effect.gen }); if (!partResult.ETag) { - yield* Effect.dieMessage( + yield* Effect.die( `Part ${partNumber} is missing ETag in UploadPart response. Missing Bucket CORS configuration for ETag header?`, ); } @@ -229,7 +223,12 @@ export const make: Effect.Effect = Effect.gen ...(partResult.ChecksumSHA1 && { ChecksumSHA1: partResult.ChecksumSHA1 }), ...(partResult.ChecksumSHA256 && { ChecksumSHA256: partResult.ChecksumSHA256 }), }; - }).pipe(Effect.scoped); + }).pipe( + Effect.annotateLogs({ + partSize: `${(params.Body as Buffer).length / 1024 / 1024} MiB`, + }), + Effect.scoped, + ); const multipartUpload = ( params: Omit, @@ -250,17 +249,17 @@ export const make: Effect.Effect = Effect.gen Stream.runCollect, ), ({ UploadId }, exit) => - Exit.matchEffect(exit, { + Exit.match(exit, { onSuccess: (parts) => - s3.completeMultipartUpload({ ...params, UploadId, MultipartUpload: { Parts: Chunk.toArray(parts) } }) + s3.completeMultipartUpload({ ...params, UploadId, MultipartUpload: { Parts: parts } }) .pipe( Effect.flatMap((result) => Ref.set(completeRef, result)), ), onFailure: () => s3.abortMultipartUpload({ Bucket: params.Bucket, Key: params.Key, UploadId }), - }).pipe(Effect.orDie), + }), ); - return yield* completeRef.pipe(Effect.flatMap(Effect.fromNullable)); + return yield* Ref.get(completeRef).pipe(Effect.flatMap(Effect.fromNullishOr)); }); const uploadObject = ( @@ -268,7 +267,7 @@ export const make: Effect.Effect = Effect.gen options?: UploadObjectOptions, ): Effect.Effect< CompleteMultipartUploadCommandOutput, - Cause.TimeoutException | S3ServiceErrors | PlatformError.BadArgument | Cause.NoSuchElementException + Cause.TimeoutError | S3ServiceErrors | PlatformError.BadArgument | Cause.NoSuchElementError > => Effect.gen(function*() { const partSize = options?.partSize || MIN_PART_SIZE; @@ -293,8 +292,8 @@ export const make: Effect.Effect = Effect.gen const dataStream = Stream.fromAsyncIterable(getChunk(Body, partSize), handleBadArgument("uploadObject")); const [doublet, tailStream] = yield* dataStream.pipe(Stream.peel(Sink.take(2))); - const firstPart = yield* Chunk.head(doublet); - const secondPart = Chunk.get(doublet, 1); + const firstPart = yield* Array.head(doublet); + const secondPart = Array.get(doublet, 1); if (Option.isNone(secondPart)) { const result = yield* s3.putObject({ ...params, Body: firstPart.data }); @@ -323,6 +322,6 @@ export const uploadObject: ( options?: UploadObjectOptions, ) => Effect.Effect< CompleteMultipartUploadCommandOutput, - Cause.TimeoutException | S3ServiceErrors | PlatformError.BadArgument | Cause.NoSuchElementException, + Cause.TimeoutError | S3ServiceErrors | PlatformError.BadArgument | Cause.NoSuchElementError, MultipartUpload -> = Effect.serviceFunctionEffect(tag, (_) => _.uploadObject); +> = (args, options) => tag.use((_) => _.uploadObject(args, options)); diff --git a/packages/s3/src/internal/s3FileSystem.ts b/packages/s3/src/internal/s3FileSystem.ts index bae1fbd3..9951c458 100644 --- a/packages/s3/src/internal/s3FileSystem.ts +++ b/packages/s3/src/internal/s3FileSystem.ts @@ -1,29 +1,31 @@ import type { S3Service } from "@effect-aws/client-s3"; import { S3 } from "@effect-aws/client-s3"; -import { Error as PlatformError, FileSystem } from "@effect/platform"; -import type { Context } from "effect"; -import { Array, Config, Effect, Layer, Match, Option, String as Str } from "effect"; +import { Array, Config, Effect, FileSystem, Layer, Match, Option, PlatformError, String as Str } from "effect"; import type { S3FileSystemConfig } from "../S3FileSystem.js"; /** @internal */ const handleBadArgument = (method: string) => (err: unknown) => - new PlatformError.BadArgument({ - module: "FileSystem", - method, - cause: err, - }); - -/** @internal */ -const handleSystemError = - (method: string, reason: PlatformError.SystemErrorReason, path: string, syscall?: string) => (err: unknown) => - new PlatformError.SystemError({ + new PlatformError.PlatformError( + new PlatformError.BadArgument({ module: "FileSystem", method, - reason, cause: err, - pathOrDescriptor: path, - syscall, - }); + }), + ); + +/** @internal */ +const handleSystemError = + (method: string, reason: PlatformError.SystemErrorTag, path: string, syscall?: string) => (err: unknown) => + new PlatformError.PlatformError( + new PlatformError.SystemError({ + module: "FileSystem", + method, + _tag: reason, + cause: err, + pathOrDescriptor: path, + syscall, + }), + ); const checkPath = (path: string) => Effect.gen(function*() { @@ -32,7 +34,7 @@ const checkPath = (path: string) => } }); -const access = (s3: Context.Tag.Service, config: S3FileSystemConfig) => (path: string) => +const access = (s3: S3Service.Type, config: S3FileSystemConfig) => (path: string) => Effect.gen(function*() { yield* checkPath(path).pipe(Effect.mapError(handleBadArgument("access"))); yield* s3.headObject({ Bucket: config.bucketName, Key: path }).pipe( @@ -46,7 +48,7 @@ const access = (s3: Context.Tag.Service, config: S3FileSystemConfig) }); const copyFileFactory = (method: string) => -(s3: Context.Tag.Service, config: S3FileSystemConfig) => +(s3: S3Service.Type, config: S3FileSystemConfig) => ( fromPath: string, toPath: string, @@ -60,10 +62,13 @@ const copyFileFactory = (method: string) => const copyFile = copyFileFactory("copyFile"); -const makeDirectory = (s3: Context.Tag.Service, config: S3FileSystemConfig) => +const makeDirectory = (s3: S3Service.Type, config: S3FileSystemConfig) => ( path: string, - options?: FileSystem.MakeDirectoryOptions, + options?: { + readonly recursive?: boolean | undefined; + readonly mode?: number | undefined; + }, ): Effect.Effect => Effect.gen(function*() { yield* checkPath(path).pipe(Effect.mapError(handleBadArgument("makeDirectory"))); @@ -92,10 +97,12 @@ const makeDirectory = (s3: Context.Tag.Service, config: S3FileSystemC ); }); -const readDirectory = (s3: Context.Tag.Service, config: S3FileSystemConfig) => +const readDirectory = (s3: S3Service.Type, config: S3FileSystemConfig) => ( path: string, - options?: FileSystem.ReadDirectoryOptions, + options?: { + readonly recursive?: boolean | undefined; + }, ): Effect.Effect, PlatformError.PlatformError> => Effect.gen(function*() { yield* checkPath(path).pipe(Effect.mapError(handleBadArgument("readDirectory"))); @@ -103,16 +110,18 @@ const readDirectory = (s3: Context.Tag.Service, config: S3FileSystemC key = key.startsWith("/") ? key.slice(1) : key; key = key ? key.endsWith("/") ? key : `${key}/` : ""; return yield* s3.listObjects({ Bucket: config.bucketName, Prefix: key }).pipe( - Effect.flatMap((response) => Effect.fromNullable(response.Contents)), - Effect.map(Array.filterMap((content) => + Effect.flatMap((response) => Effect.fromNullishOr(response.Contents)), + Effect.map(Array.map((content) => options?.recursive - ? Option.fromNullable(content.Key?.replace(new RegExp(`^${key}`), "") || null) - : Option.fromNullable(content.Key?.replace(new RegExp(`^${key}`), "").replace(/\/.*$/, "") || null) + ? Option.fromNullishOr(content.Key?.replace(new RegExp(`^${key}`), "") || null) + : Option.fromNullishOr(content.Key?.replace(new RegExp(`^${key}`), "").replace(/\/.*$/, "") || null) )), + Effect.map(Array.filter(Option.isSome)), + Effect.map(Array.map((x) => x.value)), Effect.map(Array.dedupe), Effect.mapError((error) => Match.value(error).pipe( - Match.tag("NoSuchElementException", handleSystemError("readDirectory", "NotFound", key, "listObjects")), + Match.tag("NoSuchElementError", handleSystemError("readDirectory", "NotFound", key, "listObjects")), Match.tag("NoSuchBucket", handleSystemError("readDirectory", "NotFound", key, "listObjects")), Match.orElse(handleSystemError("readDirectory", "Unknown", key, "listObjects")), ) @@ -120,12 +129,12 @@ const readDirectory = (s3: Context.Tag.Service, config: S3FileSystemC ); }); -const readFile = (s3: Context.Tag.Service, config: S3FileSystemConfig) => (path: string) => +const readFile = (s3: S3Service.Type, config: S3FileSystemConfig) => (path: string) => Effect.gen(function*() { yield* checkPath(path).pipe(Effect.mapError(handleBadArgument("readFile"))); return yield* s3.getObject({ Bucket: config.bucketName, Key: path }).pipe( - Effect.flatMap((response) => Effect.fromNullable(response.Body)), - Effect.andThen((blob) => blob.transformToByteArray()), + Effect.flatMap((response) => Effect.fromNullishOr(response.Body)), + Effect.flatMap((blob) => Effect.tryPromise(() => blob.transformToByteArray())), Effect.mapError((error) => Match.value(error).pipe( Match.tag("NoSuchKey", handleSystemError("readFile", "NotFound", path)), @@ -136,7 +145,7 @@ const readFile = (s3: Context.Tag.Service, config: S3FileSystemConfig }); const removeFactory = (method: string) => -(s3: Context.Tag.Service, config: S3FileSystemConfig) => +(s3: S3Service.Type, config: S3FileSystemConfig) => ( path: string, // options?: FileSystem.RemoveOptions, @@ -150,7 +159,7 @@ const removeFactory = (method: string) => const remove = removeFactory("remove"); -const rename = (s3: Context.Tag.Service, config: S3FileSystemConfig) => +const rename = (s3: S3Service.Type, config: S3FileSystemConfig) => ( oldPath: string, newPath: string, @@ -160,7 +169,7 @@ const rename = (s3: Context.Tag.Service, config: S3FileSystemConfig) yield* removeFactory("rename")(s3, config)(oldPath); }); -const writeFile = (s3: Context.Tag.Service, config: S3FileSystemConfig) => +const writeFile = (s3: S3Service.Type, config: S3FileSystemConfig) => ( path: string, data: Uint8Array, @@ -195,8 +204,8 @@ const makeFileSystem = (config: S3FileSystemConfig) => export const layer = (config: S3FileSystemConfig) => Layer.effect(FileSystem.FileSystem, makeFileSystem(config)); /** @internal */ -export const layerConfig = (config: Config.Config.Wrap) => - Config.unwrap(config).pipe( +export const layerConfig = (config: Config.Wrap) => + Config.unwrap(config).asEffect().pipe( Effect.flatMap(makeFileSystem), Layer.effect(FileSystem.FileSystem), ); diff --git a/packages/s3/test/MultipartUpload.test.ts b/packages/s3/test/MultipartUpload.test.ts index da0eb22e..85c9ff60 100644 --- a/packages/s3/test/MultipartUpload.test.ts +++ b/packages/s3/test/MultipartUpload.test.ts @@ -9,7 +9,7 @@ import { import { MultipartUpload } from "@effect-aws/s3"; import { layer } from "@effect/vitest"; import { mockClient } from "aws-sdk-client-mock"; -import { Effect, Stream } from "effect"; +import { Effect, Schedule, Stream } from "effect"; import { afterEach, expect } from "vitest"; const clientMock = mockClient(S3Client); @@ -62,7 +62,10 @@ layer(MultipartUpload.defaultLayer)("MultipartUpload", (it) => { const result = yield* MultipartUpload.uploadObject({ Bucket: "test-bucket", Key: "path-to-file.ext", - Body: Stream.repeatValue(new Uint8Array(1024 * 64)).pipe(Stream.take(150)), // 9.6 MB + Body: Stream.make(new Uint8Array(1024 * 64)).pipe( + Stream.repeat(Schedule.forever), + Stream.take(150), + ), // 9.6 MB }); expect(result).toStrictEqual({}); diff --git a/packages/s3/test/S3FileSystem.test.ts b/packages/s3/test/S3FileSystem.test.ts index b0dd1274..a64b8e31 100644 --- a/packages/s3/test/S3FileSystem.test.ts +++ b/packages/s3/test/S3FileSystem.test.ts @@ -9,10 +9,9 @@ import { } from "@aws-sdk/client-s3"; import { S3 } from "@effect-aws/client-s3"; import { S3FileSystem } from "@effect-aws/s3"; -import { Error as PlatformError, FileSystem } from "@effect/platform"; import { layer } from "@effect/vitest"; import { mockClient } from "aws-sdk-client-mock"; -import { Effect, Exit, Layer } from "effect"; +import { Effect, Exit, FileSystem, Layer, PlatformError } from "effect"; import { afterEach, describe, expect } from "vitest"; import { mock } from "vitest-mock-extended"; import { SdkError } from "../../commons/src/Errors.js"; @@ -74,11 +73,13 @@ layer(TestLayer)("S3FileSystem", (it) => { const result = yield* fs.exists("").pipe(Effect.exit); expect(result).toStrictEqual(Exit.fail( - new PlatformError.BadArgument({ - module: "FileSystem", - method: "access", - cause: new Error("Path is empty"), - }), + new PlatformError.PlatformError( + new PlatformError.BadArgument({ + module: "FileSystem", + method: "access", + cause: new Error("Path is empty"), + }), + ), )); })); @@ -94,14 +95,16 @@ layer(TestLayer)("S3FileSystem", (it) => { const result = yield* fs.exists("path-to-file.ext").pipe(Effect.exit); expect(result).toStrictEqual(Exit.fail( - new PlatformError.SystemError({ - module: "FileSystem", - method: "access", - reason: "Unknown", - pathOrDescriptor: "path-to-file.ext", - syscall: undefined, - cause: SdkError({ name: "SdkError", message: err.message, stack: err.stack }), - }), + new PlatformError.PlatformError( + new PlatformError.SystemError({ + module: "FileSystem", + method: "access", + _tag: "Unknown", + pathOrDescriptor: "path-to-file.ext", + syscall: undefined, + cause: new SdkError({ name: "SdkError", message: err.message, stack: err.stack }), + }), + ), )); })); }); @@ -144,14 +147,16 @@ layer(TestLayer)("S3FileSystem", (it) => { expect(result).toStrictEqual( Exit.fail( - new PlatformError.SystemError({ - module: "FileSystem", - method: "makeDirectory", - reason: "AlreadyExists", - pathOrDescriptor: "aaa/bbb/ccc/", - syscall: "headObject", - cause: {}, // TODO: Fix this - }), + new PlatformError.PlatformError( + new PlatformError.SystemError({ + module: "FileSystem", + method: "makeDirectory", + _tag: "AlreadyExists", + pathOrDescriptor: "aaa/bbb/ccc/", + syscall: "headObject", + cause: {}, // TODO: Fix this + }), + ), ), ); expect(clientMock).toHaveReceivedCommandTimes(HeadObjectCommand, 2); @@ -177,13 +182,15 @@ layer(TestLayer)("S3FileSystem", (it) => { expect(result).toStrictEqual( Exit.fail( - new PlatformError.SystemError({ - module: "FileSystem", - method: "makeDirectory", - reason: "NotFound", - pathOrDescriptor: "aaa/bbb/ccc/", - syscall: "headObject", - }), + new PlatformError.PlatformError( + new PlatformError.SystemError({ + module: "FileSystem", + method: "makeDirectory", + _tag: "NotFound", + pathOrDescriptor: "aaa/bbb/ccc/", + syscall: "headObject", + }), + ), ), ); expect(clientMock).toHaveReceivedCommandTimes(HeadObjectCommand, 2); @@ -295,13 +302,15 @@ layer(TestLayer)("S3FileSystem", (it) => { const result = yield* fs.readDirectory("path-to-dir").pipe(Effect.exit); expect(result).toStrictEqual(Exit.fail( - new PlatformError.SystemError({ - module: "FileSystem", - method: "readDirectory", - reason: "NotFound", - pathOrDescriptor: "path-to-dir/", - syscall: "listObjects", - }), + new PlatformError.PlatformError( + new PlatformError.SystemError({ + module: "FileSystem", + method: "readDirectory", + _tag: "NotFound", + pathOrDescriptor: "path-to-dir/", + syscall: "listObjects", + }), + ), )); expect(clientMock).toHaveReceivedCommandOnce(ListObjectsCommand); diff --git a/packages/secrets-manager/.projen/deps.json b/packages/secrets-manager/.projen/deps.json index f5f46321..bf886703 100644 --- a/packages/secrets-manager/.projen/deps.json +++ b/packages/secrets-manager/.projen/deps.json @@ -21,6 +21,7 @@ }, { "name": "effect", + "version": "4.0.0-beta.8", "type": "build" }, { @@ -35,7 +36,7 @@ }, { "name": "effect", - "version": ">=3.0.4 <4.0.0", + "version": ">=4.0.0 <5.0.0", "type": "peer" } ], diff --git a/packages/secrets-manager/package.json b/packages/secrets-manager/package.json index ea593607..531ec179 100644 --- a/packages/secrets-manager/package.json +++ b/packages/secrets-manager/package.json @@ -29,12 +29,12 @@ "@effect-aws/client-secrets-manager": "workspace:^", "@fluffy-spoon/substitute": "^1.208.0", "@types/node": "ts5.4", - "effect": "^3.16.4", + "effect": "4.0.0-beta.8", "typescript": "^5.4.2" }, "peerDependencies": { "@effect-aws/client-secrets-manager": "workspace:^", - "effect": ">=3.0.4 <4.0.0" + "effect": ">=4.0.0 <5.0.0" }, "main": "build/cjs/index.js", "license": "MIT", diff --git a/packages/secrets-manager/src/ConfigProvider.ts b/packages/secrets-manager/src/ConfigProvider.ts index 0832edc9..4fdb58ca 100644 --- a/packages/secrets-manager/src/ConfigProvider.ts +++ b/packages/secrets-manager/src/ConfigProvider.ts @@ -2,19 +2,7 @@ * @since 1.0.0 */ import { SecretsManagerService } from "@effect-aws/client-secrets-manager"; -import type { Config } from "effect"; -import { - Array, - Cause, - ConfigError, - ConfigProvider, - ConfigProviderPathPatch, - Effect, - HashSet, - Layer, - Option, - pipe, -} from "effect"; +import { Array, ConfigProvider, Effect, Option, pipe } from "effect"; /** * @since 1.2.0 @@ -32,114 +20,35 @@ export interface FromSecretsManagerConfig { * * @deprecated Use `ConfigProvider.withSecretsManagerConfigProvider` or `ConfigProvider.setSecretsManagerConfigProvider` instead. */ -export const fromSecretsManager = ( - config?: Partial & { serviceLayer?: Layer.Layer }, -): ConfigProvider.ConfigProvider => { - const { pathDelim, serviceLayer } = Object.assign( - {}, - { pathDelim: "_", serviceLayer: SecretsManagerService.defaultLayer }, - config, - ); - const makePathString = (path: ReadonlyArray): string => pipe(path, Array.join(pathDelim)); - const unmakePathString = (pathString: string): ReadonlyArray => pathString.split(pathDelim); +export const fromSecretsManager: (config?: Partial) => Effect.Effect< + ConfigProvider.ConfigProvider, + never, + SecretsManagerService +> = Effect + .fnUntraced( + function*(config) { + const { pathDelim } = Object.assign({}, { pathDelim: "_" }, config); + const makePathString = (path: ReadonlyArray): string => pipe(path, Array.join(pathDelim)); - const load = ( - path: ReadonlyArray, - primitive: Config.Config.Primitive, - ): Effect.Effect, ConfigError.ConfigError> => { - const pathString = makePathString(path); - return SecretsManagerService.getSecretValue({ SecretId: pathString }).pipe( - Effect.flatMap((value) => Option.fromNullable(value.SecretString)), - Effect.catchTag("ResourceNotFoundException", () => - Effect.fail( - ConfigError.MissingData( - path as Array, - `Expected ${pathString} to exist in AWS Secrets Manager`, - ), - )), - Effect.catchTag("NoSuchElementException", () => - Effect.fail( - ConfigError.MissingData( - path as Array, - `Expected ${pathString} to exist in AWS Secrets Manager`, - ), - )), - Effect.catchTag("InvalidParameterException", () => - Effect.fail( - ConfigError.InvalidData( - path as Array, - "Invalid parameter provided to AWS Secrets Manager", - ), - )), - Effect.catchTag("InvalidRequestException", () => - Effect.fail( - ConfigError.InvalidData( - path as Array, - "Invalid request to AWS Secrets Manager", - ), - )), - Effect.catchAllCause((cause) => - Cause.isFailType(cause) && ConfigError.isConfigError(cause.error) - ? Effect.fail(cause.error) - : Effect.fail( - ConfigError.SourceUnavailable( - path as Array, - "Failed to load configuration from AWS Secrets Manager", - cause, - ), - ) - ), - Effect.flatMap((value) => - pipe( - primitive.parse(value), - Effect.mapBoth({ - onFailure: ConfigError.prefixed(path as Array), - onSuccess: Array.of, - }), - ) - ), - Effect.provide(serviceLayer), - ); - }; + const svc = yield* SecretsManagerService; - const enumerateChildren = ( - path: ReadonlyArray, - ): Effect.Effect, ConfigError.ConfigError> => - SecretsManagerService.listSecrets({}).pipe( - Effect.flatMap((secrets) => Option.fromNullable(secrets.SecretList)), - Effect.map(Array.map((secret) => Option.fromNullable(secret.Name))), - Effect.flatMap(Option.all), - Effect.orDie, - Effect.map((keys) => { - const keyPaths = keys.map(unmakePathString); - const filteredKeyPaths = keyPaths - .filter((keyPath) => { - for (let i = 0; i < path.length; i++) { - const pathComponent = pipe(path, Array.unsafeGet(i)); - const currentElement = keyPath[i]; - if ( - currentElement === undefined || - pathComponent !== currentElement - ) { - return false; - } - } - return true; - }) - .flatMap((keyPath) => keyPath.slice(path.length, path.length + 1)); - return HashSet.fromIterable(filteredKeyPaths); - }), - Effect.provide(serviceLayer), - ); - - return ConfigProvider.fromFlat( - ConfigProvider.makeFlat({ - load, - enumerateChildren, - patch: ConfigProviderPathPatch.empty, - }), + return ConfigProvider.make((path) => { + const pathString = makePathString(path.map(String)); + return svc.getSecretValue({ SecretId: pathString }).pipe( + Effect.map((value) => Option.fromNullishOr(value.SecretString)), + Effect.catchTag("ResourceNotFoundException", () => Effect.succeedNone), + Effect.map(Option.map(ConfigProvider.makeValue)), + Effect.map(Option.getOrUndefined), + Effect.mapError((cause) => + new ConfigProvider.SourceError({ + message: "Failed to load configuration from AWS Secrets Manager", + cause, + }) + ), + ); + }); + }, ); -}; /** * Sets the current `ConfigProvider` that loads configuration from AWS Secrets Manager. @@ -148,16 +57,7 @@ export const fromSecretsManager = ( * @category config */ export const setSecretsManagerConfigProvider = (config?: Partial) => - Effect.gen(function*() { - const service = yield* SecretsManagerService; - - const provider = fromSecretsManager({ - ...config, - serviceLayer: Layer.succeed(SecretsManagerService, service), - }); - - return Layer.setConfigProvider(provider); - }).pipe(Layer.unwrapEffect); + ConfigProvider.layer(fromSecretsManager(config)); /** * Executes the specified workflow with the secrets manager configuration provider. diff --git a/packages/secrets-manager/src/index.ts b/packages/secrets-manager/src/index.ts index 20147fc8..f72f3c6e 100644 --- a/packages/secrets-manager/src/index.ts +++ b/packages/secrets-manager/src/index.ts @@ -1,15 +1,3 @@ -/** - * @since 1.0.0 - */ -import { fromSecretsManager } from "./ConfigProvider.js"; - -export { - /** - * @since 1.0.0 - */ - fromSecretsManager, -}; - /** * @since 1.2.0 */ diff --git a/packages/secrets-manager/test/ConfigProvider.test.ts b/packages/secrets-manager/test/ConfigProvider.test.ts index 5528fe5c..884abb48 100644 --- a/packages/secrets-manager/test/ConfigProvider.test.ts +++ b/packages/secrets-manager/test/ConfigProvider.test.ts @@ -2,7 +2,8 @@ import { InvalidRequestException, ResourceNotFoundException } from "@aws-sdk/cli import { SecretsManager } from "@effect-aws/client-secrets-manager"; import { ConfigProvider } from "@effect-aws/secrets-manager"; import { Arg } from "@fluffy-spoon/substitute"; -import { Config, ConfigError, Effect, Exit, Layer, Redacted } from "effect"; +import { Config, Effect, Exit, Layer, Option, Redacted, Schema, SchemaAST, SchemaIssue } from "effect"; +import { SourceError } from "effect/ConfigProvider"; import { describe, expect, it } from "vitest"; import { SubstituteBuilder } from "./utils/index.js"; @@ -15,7 +16,7 @@ describe("fromSecretsManager", () => { const serviceLayer = SecretsManager.baseLayer(() => clientSubstitute); - const result = await Config.string("test").pipe( + const result = await Config.string("test").asEffect().pipe( ConfigProvider.withSecretsManagerConfigProvider(), Effect.provide(serviceLayer), Effect.runPromiseExit, @@ -39,7 +40,8 @@ describe("fromSecretsManager", () => { const configProviderLayer = Layer.provide(ConfigProvider.setSecretsManagerConfigProvider(), serviceLayer); const result = await Config.redacted("my-secret-that-doesnt-exist").pipe( - Config.withDefault(Redacted.make("mocked-default-value")), + Config.withDefault(() => Redacted.make("mocked-default-value")), + ).asEffect().pipe( Effect.provide(configProviderLayer), Effect.map(Redacted.value), Effect.runPromiseExit, @@ -62,7 +64,8 @@ describe("fromSecretsManager", () => { const serviceLayer = SecretsManager.baseLayer(() => clientSubstitute); const result = await Config.redacted("test").pipe( - Config.withDefault(Redacted.make("mocked-default-value")), + Config.withDefault(() => Redacted.make("mocked-default-value")), + ).asEffect().pipe( ConfigProvider.withSecretsManagerConfigProvider(), Effect.provide(serviceLayer), Effect.map(Redacted.value), @@ -71,9 +74,16 @@ describe("fromSecretsManager", () => { expect(result).toEqual( Exit.fail( - ConfigError.InvalidData( - ["test"], - "Invalid request to AWS Secrets Manager", + new Config.ConfigError( + new SourceError( + { + message: "Failed to load configuration from AWS Secrets Manager", + cause: new InvalidRequestException({ + $metadata: {}, + message: "mocked-error", + }), + }, + ), ), ), ); @@ -92,7 +102,7 @@ describe("fromSecretsManager", () => { const serviceLayer = SecretsManager.baseLayer(() => clientSubstitute); - const result = await Config.string("test").pipe( + const result = await Config.string("test").asEffect().pipe( ConfigProvider.withSecretsManagerConfigProvider(), Effect.provide(serviceLayer), Effect.runPromiseExit, @@ -100,9 +110,16 @@ describe("fromSecretsManager", () => { expect(result).toEqual( Exit.fail( - ConfigError.MissingData( - ["test"], - "Expected test to exist in AWS Secrets Manager", + new Config.ConfigError( + new Schema.SchemaError( + new SchemaIssue.Pointer( + ["test"], + new SchemaIssue.InvalidType( + SchemaAST.string, + Option.some(undefined), + ), + ), + ), ), ), ); @@ -116,7 +133,7 @@ describe("fromSecretsManager", () => { const serviceLayer = SecretsManager.baseLayer(() => clientSubstitute); - const result = await Config.string("test").pipe( + const result = await Config.string("test").asEffect().pipe( ConfigProvider.withSecretsManagerConfigProvider(), Effect.provide(serviceLayer), Effect.runPromiseExit, @@ -124,9 +141,16 @@ describe("fromSecretsManager", () => { expect(result).toEqual( Exit.fail( - ConfigError.MissingData( - ["test"], - "Expected test to exist in AWS Secrets Manager", + new Config.ConfigError( + new Schema.SchemaError( + new SchemaIssue.Pointer( + ["test"], + new SchemaIssue.InvalidType( + SchemaAST.string, + Option.some(undefined), + ), + ), + ), ), ), ); diff --git a/packages/ssm/.projen/deps.json b/packages/ssm/.projen/deps.json index 087c9eab..25f920fd 100644 --- a/packages/ssm/.projen/deps.json +++ b/packages/ssm/.projen/deps.json @@ -21,6 +21,7 @@ }, { "name": "effect", + "version": "4.0.0-beta.8", "type": "build" }, { @@ -35,7 +36,7 @@ }, { "name": "effect", - "version": ">=3.0.4 <4.0.0", + "version": ">=4.0.0 <5.0.0", "type": "peer" } ], diff --git a/packages/ssm/package.json b/packages/ssm/package.json index 16e50cbb..4eb8332a 100644 --- a/packages/ssm/package.json +++ b/packages/ssm/package.json @@ -29,12 +29,12 @@ "@effect-aws/client-ssm": "workspace:^", "@fluffy-spoon/substitute": "^1.208.0", "@types/node": "ts5.4", - "effect": "^3.16.4", + "effect": "4.0.0-beta.8", "typescript": "^5.4.2" }, "peerDependencies": { "@effect-aws/client-ssm": "workspace:^", - "effect": ">=3.0.4 <4.0.0" + "effect": ">=4.0.0 <5.0.0" }, "main": "build/cjs/index.js", "license": "MIT", diff --git a/packages/ssm/src/ConfigProvider.ts b/packages/ssm/src/ConfigProvider.ts index 636fc589..600fc67d 100644 --- a/packages/ssm/src/ConfigProvider.ts +++ b/packages/ssm/src/ConfigProvider.ts @@ -2,19 +2,7 @@ * @since 1.0.0 */ import { SSMService } from "@effect-aws/client-ssm"; -import type { Config } from "effect"; -import { - Array, - Cause, - ConfigError, - ConfigProvider, - ConfigProviderPathPatch, - Effect, - HashSet, - Layer, - Option, - pipe, -} from "effect"; +import { Array, ConfigProvider, Effect, Option, pipe } from "effect"; /** * @since 1.2.0 @@ -32,117 +20,36 @@ export interface FromParameterStoreConfig { * * @deprecated Use `ConfigProvider.withParameterStoreConfigProvider` or `ConfigProvider.setParameterStoreConfigProvider` instead. */ -export const fromParameterStore = ( - config?: Partial & { serviceLayer?: Layer.Layer }, -): ConfigProvider.ConfigProvider => { - const { pathDelim, serviceLayer } = Object.assign( - {}, - { pathDelim: "_", serviceLayer: SSMService.defaultLayer }, - config, - ); - const makePathString = (path: ReadonlyArray): string => pipe(path, Array.join(pathDelim)); - const unmakePathString = (pathString: string): ReadonlyArray => pathString.split(pathDelim); +export const fromParameterStore: (config?: Partial) => Effect.Effect< + ConfigProvider.ConfigProvider, + never, + SSMService +> = Effect + .fnUntraced( + function*(config) { + const { pathDelim } = Object.assign({}, { pathDelim: "_" }, config); + const makePathString = (path: ReadonlyArray): string => pipe(path, Array.join(pathDelim)); - const load = ( - path: ReadonlyArray, - primitive: Config.Config.Primitive, - ): Effect.Effect, ConfigError.ConfigError> => { - const pathString = makePathString(path); - return SSMService.getParameter({ - Name: pathString, - WithDecryption: true, - }).pipe( - Effect.flatMap((value) => Option.fromNullable(value.Parameter?.Value)), - Effect.catchTag("ParameterNotFound", () => - Effect.fail( - ConfigError.MissingData( - path as Array, - `Expected ${pathString} parameter to exist in AWS Systems Manager Parameter Store`, - ), - )), - Effect.catchTag("ParameterVersionNotFound", () => - Effect.fail( - ConfigError.MissingData( - path as Array, - `Expected ${pathString} parameter version to exist in AWS Systems Manager Parameter Store`, - ), - )), - Effect.catchTag("NoSuchElementException", () => - Effect.fail( - ConfigError.MissingData( - path as Array, - `Expected ${pathString} to exist in AWS Systems Manager Parameter Store`, - ), - )), - Effect.catchTag("InvalidKeyId", () => - Effect.fail( - ConfigError.InvalidData( - path as Array, - "Invalid key ID when retrieving configuration from AWS Systems Manager Parameter Store", - ), - )), - Effect.catchAllCause((cause) => - Cause.isFailType(cause) && ConfigError.isConfigError(cause.error) - ? Effect.fail(cause.error) - : Effect.fail( - ConfigError.SourceUnavailable( - path as Array, - "Failed to load configuration from AWS Systems Manager Parameter Store", - cause, - ), - ) - ), - Effect.flatMap((value) => - pipe( - primitive.parse(value), - Effect.mapBoth({ - onFailure: ConfigError.prefixed(path as Array), - onSuccess: Array.of, - }), - ) - ), - Effect.provide(serviceLayer), - ); - }; + const svc = yield* SSMService; - const enumerateChildren = ( - path: ReadonlyArray, - ): Effect.Effect, ConfigError.ConfigError> => - SSMService.describeParameters({}).pipe( - Effect.flatMap((params) => Option.fromNullable(params.Parameters)), - Effect.map(Array.map((param) => Option.fromNullable(param.Name))), - Effect.flatMap(Option.all), - Effect.orDie, - Effect.map((keys) => { - const keyPaths = keys.map(unmakePathString); - const filteredKeyPaths = keyPaths - .filter((keyPath) => { - for (let i = 0; i < path.length; i++) { - const pathComponent = pipe(path, Array.unsafeGet(i)); - const currentElement = keyPath[i]; - if ( - currentElement === undefined || - pathComponent !== currentElement - ) { - return false; - } - } - return true; - }) - .flatMap((keyPath) => keyPath.slice(path.length, path.length + 1)); - return HashSet.fromIterable(filteredKeyPaths); - }), - Effect.provide(serviceLayer), - ); - - return ConfigProvider.fromFlat( - ConfigProvider.makeFlat({ - load, - enumerateChildren, - patch: ConfigProviderPathPatch.empty, - }), + return ConfigProvider.make((path) => { + const pathString = makePathString(path.map(String)); + return svc.getParameter({ Name: pathString }).pipe( + Effect.map((value) => Option.fromNullishOr(value.Parameter?.Value)), + Effect.catchTag("ParameterNotFound", () => Effect.succeedNone), + Effect.catchTag("ParameterVersionNotFound", () => Effect.succeedNone), + Effect.map(Option.map(ConfigProvider.makeValue)), + Effect.map(Option.getOrUndefined), + Effect.mapError((cause) => + new ConfigProvider.SourceError({ + message: "Failed to load configuration from AWS Systems Manager Parameter Store", + cause, + }) + ), + ); + }); + }, ); -}; /** * Sets the current `ConfigProvider` that loads configuration from AWS Systems Manager Parameter Store. @@ -151,16 +58,7 @@ export const fromParameterStore = ( * @category config */ export const setParameterStoreConfigProvider = (config?: Partial) => - Effect.gen(function*() { - const service = yield* SSMService; - - const provider = fromParameterStore({ - ...config, - serviceLayer: Layer.succeed(SSMService, service), - }); - - return Layer.setConfigProvider(provider); - }).pipe(Layer.unwrapEffect); + ConfigProvider.layer(fromParameterStore(config)); /** * Executes the specified workflow with the parameter store configuration provider. diff --git a/packages/ssm/src/index.ts b/packages/ssm/src/index.ts index 44cabf2c..f72f3c6e 100644 --- a/packages/ssm/src/index.ts +++ b/packages/ssm/src/index.ts @@ -1,15 +1,3 @@ -/** - * @since 1.0.0 - */ -import { fromParameterStore } from "./ConfigProvider.js"; - -export { - /** - * @since 1.0.0 - */ - fromParameterStore, -}; - /** * @since 1.2.0 */ diff --git a/packages/ssm/test/ConfigProvider.test.ts b/packages/ssm/test/ConfigProvider.test.ts index 8b6ac6a8..d546acd5 100644 --- a/packages/ssm/test/ConfigProvider.test.ts +++ b/packages/ssm/test/ConfigProvider.test.ts @@ -2,7 +2,8 @@ import { InvalidKeyId, ParameterNotFound } from "@aws-sdk/client-ssm"; import { SSM } from "@effect-aws/client-ssm"; import { ConfigProvider } from "@effect-aws/ssm"; import { Arg } from "@fluffy-spoon/substitute"; -import { Config, ConfigError, Effect, Exit, Layer, Redacted } from "effect"; +import { Config, Effect, Exit, Layer, Option, Redacted, Schema, SchemaAST, SchemaIssue } from "effect"; +import { SourceError } from "effect/ConfigProvider"; import { describe, expect, it } from "vitest"; import { SubstituteBuilder } from "./utils/index.js"; @@ -15,7 +16,7 @@ describe("fromParameterStore", () => { const serviceLayer = SSM.baseLayer(() => clientSubstitute); - const result = await Config.string("test").pipe( + const result = await Config.string("test").asEffect().pipe( ConfigProvider.withParameterStoreConfigProvider(), Effect.provide(serviceLayer), Effect.runPromiseExit, @@ -39,7 +40,8 @@ describe("fromParameterStore", () => { const configProviderLayer = Layer.provide(ConfigProvider.setParameterStoreConfigProvider(), serviceLayer); const result = await Config.redacted("my-param-that-doesnt-exist").pipe( - Config.withDefault(Redacted.make("mocked-default-value")), + Config.withDefault(() => Redacted.make("mocked-default-value")), + ).asEffect().pipe( Effect.provide(configProviderLayer), Effect.map(Redacted.value), Effect.runPromiseExit, @@ -62,7 +64,8 @@ describe("fromParameterStore", () => { const serviceLayer = SSM.baseLayer(() => clientSubstitute); const result = await Config.redacted("test").pipe( - Config.withDefault(Redacted.make("mocked-default-value")), + Config.withDefault(() => Redacted.make("mocked-default-value")), + ).asEffect().pipe( ConfigProvider.withParameterStoreConfigProvider(), Effect.provide(serviceLayer), Effect.map(Redacted.value), @@ -71,9 +74,16 @@ describe("fromParameterStore", () => { expect(result).toEqual( Exit.fail( - ConfigError.InvalidData( - ["test"], - "Invalid key ID when retrieving configuration from AWS Systems Manager Parameter Store", + new Config.ConfigError( + new SourceError( + { + message: "Invalid key ID when retrieving configuration from AWS Systems Manager Parameter Store", + cause: new InvalidKeyId({ + $metadata: {}, + message: "mocked-error", + }), + }, + ), ), ), ); @@ -92,7 +102,7 @@ describe("fromParameterStore", () => { const serviceLayer = SSM.baseLayer(() => clientSubstitute); - const result = await Config.string("test").pipe( + const result = await Config.string("test").asEffect().pipe( ConfigProvider.withParameterStoreConfigProvider(), Effect.provide(serviceLayer), Effect.runPromiseExit, @@ -100,9 +110,16 @@ describe("fromParameterStore", () => { expect(result).toEqual( Exit.fail( - ConfigError.MissingData( - ["test"], - "Expected test parameter to exist in AWS Systems Manager Parameter Store", + new Config.ConfigError( + new Schema.SchemaError( + new SchemaIssue.Pointer( + ["test"], + new SchemaIssue.InvalidType( + SchemaAST.string, + Option.some(undefined), + ), + ), + ), ), ), ); @@ -116,7 +133,7 @@ describe("fromParameterStore", () => { const serviceLayer = SSM.baseLayer(() => clientSubstitute); - const result = await Config.string("test").pipe( + const result = await Config.string("test").asEffect().pipe( ConfigProvider.withParameterStoreConfigProvider(), Effect.provide(serviceLayer), Effect.runPromiseExit, @@ -124,9 +141,16 @@ describe("fromParameterStore", () => { expect(result).toEqual( Exit.fail( - ConfigError.MissingData( - ["test"], - "Expected test to exist in AWS Systems Manager Parameter Store", + new Config.ConfigError( + new Schema.SchemaError( + new SchemaIssue.Pointer( + ["test"], + new SchemaIssue.InvalidType( + SchemaAST.string, + Option.some(undefined), + ), + ), + ), ), ), ); diff --git a/pnpm-lock.yaml b/pnpm-lock.yaml index 4f928938..c31b2203 100644 --- a/pnpm-lock.yaml +++ b/pnpm-lock.yaml @@ -13,18 +13,12 @@ importers: .: dependencies: - '@effect/cli': - specifier: ^0.63.8 - version: 0.63.8(@effect/platform@0.84.8(effect@3.16.4))(@effect/printer-ansi@0.44.4(@effect/typeclass@0.35.4(effect@3.16.4))(effect@3.16.4))(@effect/printer@0.44.4(@effect/typeclass@0.35.4(effect@3.16.4))(effect@3.16.4))(effect@3.16.4) - '@effect/platform': - specifier: ^0.84.8 - version: 0.84.8(effect@3.16.4) '@effect/platform-node': - specifier: ^0.85.7 - version: 0.85.7(@effect/cluster@0.38.7(@effect/platform@0.84.8(effect@3.16.4))(@effect/rpc@0.61.8(@effect/platform@0.84.8(effect@3.16.4))(effect@3.16.4))(@effect/sql@0.37.9(@effect/experimental@0.48.9(@effect/platform@0.84.8(effect@3.16.4))(effect@3.16.4))(@effect/platform@0.84.8(effect@3.16.4))(effect@3.16.4))(@effect/workflow@0.1.5(@effect/platform@0.84.8(effect@3.16.4))(@effect/rpc@0.61.8(@effect/platform@0.84.8(effect@3.16.4))(effect@3.16.4))(effect@3.16.4))(effect@3.16.4))(@effect/platform@0.84.8(effect@3.16.4))(@effect/rpc@0.61.8(@effect/platform@0.84.8(effect@3.16.4))(effect@3.16.4))(@effect/sql@0.37.9(@effect/experimental@0.48.9(@effect/platform@0.84.8(effect@3.16.4))(effect@3.16.4))(@effect/platform@0.84.8(effect@3.16.4))(effect@3.16.4))(effect@3.16.4) + specifier: 4.0.0-beta.8 + version: 4.0.0-beta.8(effect@4.0.0-beta.8)(ioredis@5.9.3) effect: - specifier: ^3.16.4 - version: 3.16.4 + specifier: 4.0.0-beta.8 + version: 4.0.0-beta.8 devDependencies: '@changesets/changelog-github': specifier: ^0.5.0 @@ -45,8 +39,8 @@ importers: specifier: ^0.19.0 version: 0.19.0 '@effect/vitest': - specifier: ^0.23.4 - version: 0.23.4(effect@3.16.4)(vitest@3.2.4(@types/node@25.0.3)) + specifier: 4.0.0-beta.8 + version: 4.0.0-beta.8(effect@4.0.0-beta.8)(vitest@3.2.4(@types/node@25.3.0)) '@eslint/compat': specifier: ^1.2.5 version: 1.2.5(eslint@9.19.0) @@ -61,7 +55,7 @@ importers: version: 1.0.1(projen@0.91.6(constructs@10.4.2)) '@types/node': specifier: ts5.4 - version: 25.0.3 + version: 25.3.0 '@typescript-eslint/eslint-plugin': specifier: ^8.21.0 version: 8.21.0(@typescript-eslint/parser@8.21.0(eslint@9.19.0)(typescript@5.4.5))(eslint@9.19.0)(typescript@5.4.5) @@ -70,13 +64,13 @@ importers: version: 8.21.0(eslint@9.19.0)(typescript@5.4.5) '@vitest/coverage-v8': specifier: ^3.2.4 - version: 3.2.4(vitest@3.2.4(@types/node@25.0.3)) + version: 3.2.4(vitest@3.2.4(@types/node@25.3.0)) aws-sdk-client-mock: specifier: ^4.1.0 version: 4.1.0 aws-sdk-client-mock-vitest: specifier: ^6.2.1 - version: 6.2.1(@smithy/types@4.11.0)(aws-sdk-client-mock@4.1.0) + version: 6.2.1(@smithy/types@4.12.0)(aws-sdk-client-mock@4.1.0) constructs: specifier: ^10.0.0 version: 10.4.2 @@ -103,7 +97,7 @@ importers: version: 0.91.6(constructs@10.4.2) ts-node: specifier: ^10.9.1 - version: 10.9.1(@types/node@25.0.3)(typescript@5.4.5) + version: 10.9.1(@types/node@25.3.0)(typescript@5.4.5) tsx: specifier: ^4.16.5 version: 4.19.3 @@ -112,32 +106,32 @@ importers: version: 5.4.5 vitepress: specifier: ^1.6.3 - version: 1.6.3(@algolia/client-search@5.33.0)(@types/node@25.0.3)(postcss@8.5.6)(search-insights@2.17.3)(typescript@5.4.5) + version: 1.6.3(@algolia/client-search@5.33.0)(@types/node@25.3.0)(postcss@8.5.6)(search-insights@2.17.3)(typescript@5.4.5) vitepress-plugin-group-icons: specifier: ^1.6.1 - version: 1.6.1(markdown-it@14.1.0)(vite@5.4.19(@types/node@25.0.3)) + version: 1.6.1(markdown-it@14.1.0)(vite@5.4.19(@types/node@25.3.0)) vitest: specifier: ^3.2.4 - version: 3.2.4(@types/node@25.0.3) + version: 3.2.4(@types/node@25.3.0) vitest-mock-extended: specifier: ^3.1.0 - version: 3.1.0(typescript@5.4.5)(vitest@3.2.4(@types/node@25.0.3)) + version: 3.1.0(typescript@5.4.5)(vitest@3.2.4(@types/node@25.3.0)) packages/client-account: dependencies: '@aws-sdk/client-account': specifier: ^3 - version: 3.956.0 + version: 3.995.0 '@effect-aws/commons': specifier: workspace:^ version: link:../commons/dist devDependencies: '@types/node': specifier: ts5.4 - version: 25.0.3 + version: 25.3.0 effect: - specifier: ^3.16.4 - version: 3.16.4 + specifier: 4.0.0-beta.8 + version: 4.0.0-beta.8 typescript: specifier: ^5.4.2 version: 5.4.5 @@ -147,17 +141,17 @@ importers: dependencies: '@aws-sdk/client-api-gateway': specifier: ^3 - version: 3.956.0 + version: 3.995.0 '@effect-aws/commons': specifier: workspace:^ version: link:../commons/dist devDependencies: '@types/node': specifier: ts5.4 - version: 25.0.3 + version: 25.3.0 effect: - specifier: ^3.16.4 - version: 3.16.4 + specifier: 4.0.0-beta.8 + version: 4.0.0-beta.8 typescript: specifier: ^5.4.2 version: 5.4.5 @@ -167,17 +161,17 @@ importers: dependencies: '@aws-sdk/client-apigatewaymanagementapi': specifier: ^3 - version: 3.956.0 + version: 3.995.0 '@effect-aws/commons': specifier: workspace:^ version: link:../commons/dist devDependencies: '@types/node': specifier: ts5.4 - version: 25.0.3 + version: 25.3.0 effect: - specifier: ^3.16.4 - version: 3.16.4 + specifier: 4.0.0-beta.8 + version: 4.0.0-beta.8 typescript: specifier: ^5.4.2 version: 5.4.5 @@ -187,17 +181,17 @@ importers: dependencies: '@aws-sdk/client-apigatewayv2': specifier: ^3 - version: 3.956.0 + version: 3.995.0 '@effect-aws/commons': specifier: workspace:^ version: link:../commons/dist devDependencies: '@types/node': specifier: ts5.4 - version: 25.0.3 + version: 25.3.0 effect: - specifier: ^3.16.4 - version: 3.16.4 + specifier: 4.0.0-beta.8 + version: 4.0.0-beta.8 typescript: specifier: ^5.4.2 version: 5.4.5 @@ -207,17 +201,17 @@ importers: dependencies: '@aws-sdk/client-athena': specifier: ^3 - version: 3.956.0 + version: 3.995.0 '@effect-aws/commons': specifier: workspace:^ version: link:../commons/dist devDependencies: '@types/node': specifier: ts5.4 - version: 25.0.3 + version: 25.3.0 effect: - specifier: ^3.16.4 - version: 3.16.4 + specifier: 4.0.0-beta.8 + version: 4.0.0-beta.8 typescript: specifier: ^5.4.2 version: 5.4.5 @@ -227,17 +221,17 @@ importers: dependencies: '@aws-sdk/client-auto-scaling': specifier: ^3 - version: 3.956.0 + version: 3.995.0 '@effect-aws/commons': specifier: workspace:^ version: link:../commons/dist devDependencies: '@types/node': specifier: ts5.4 - version: 25.0.3 + version: 25.3.0 effect: - specifier: ^3.16.4 - version: 3.16.4 + specifier: 4.0.0-beta.8 + version: 4.0.0-beta.8 typescript: specifier: ^5.4.2 version: 5.4.5 @@ -247,17 +241,17 @@ importers: dependencies: '@aws-sdk/client-bedrock': specifier: ^3 - version: 3.956.0 + version: 3.995.0 '@effect-aws/commons': specifier: workspace:^ version: link:../commons/dist devDependencies: '@types/node': specifier: ts5.4 - version: 25.0.3 + version: 25.3.0 effect: - specifier: ^3.16.4 - version: 3.16.4 + specifier: 4.0.0-beta.8 + version: 4.0.0-beta.8 typescript: specifier: ^5.4.2 version: 5.4.5 @@ -267,17 +261,17 @@ importers: dependencies: '@aws-sdk/client-bedrock-runtime': specifier: ^3 - version: 3.956.0 + version: 3.995.0 '@effect-aws/commons': specifier: workspace:^ version: link:../commons/dist devDependencies: '@types/node': specifier: ts5.4 - version: 25.0.3 + version: 25.3.0 effect: - specifier: ^3.16.4 - version: 3.16.4 + specifier: 4.0.0-beta.8 + version: 4.0.0-beta.8 typescript: specifier: ^5.4.2 version: 5.4.5 @@ -287,17 +281,17 @@ importers: dependencies: '@aws-sdk/client-cloudformation': specifier: ^3 - version: 3.956.0 + version: 3.995.0 '@effect-aws/commons': specifier: workspace:^ version: link:../commons/dist devDependencies: '@types/node': specifier: ts5.4 - version: 25.0.3 + version: 25.3.0 effect: - specifier: ^3.16.4 - version: 3.16.4 + specifier: 4.0.0-beta.8 + version: 4.0.0-beta.8 typescript: specifier: ^5.4.2 version: 5.4.5 @@ -307,17 +301,17 @@ importers: dependencies: '@aws-sdk/client-cloudsearch': specifier: ^3 - version: 3.956.0 + version: 3.995.0 '@effect-aws/commons': specifier: workspace:^ version: link:../commons/dist devDependencies: '@types/node': specifier: ts5.4 - version: 25.0.3 + version: 25.3.0 effect: - specifier: ^3.16.4 - version: 3.16.4 + specifier: 4.0.0-beta.8 + version: 4.0.0-beta.8 typescript: specifier: ^5.4.2 version: 5.4.5 @@ -327,17 +321,17 @@ importers: dependencies: '@aws-sdk/client-cloudtrail': specifier: ^3 - version: 3.956.0 + version: 3.995.0 '@effect-aws/commons': specifier: workspace:^ version: link:../commons/dist devDependencies: '@types/node': specifier: ts5.4 - version: 25.0.3 + version: 25.3.0 effect: - specifier: ^3.16.4 - version: 3.16.4 + specifier: 4.0.0-beta.8 + version: 4.0.0-beta.8 typescript: specifier: ^5.4.2 version: 5.4.5 @@ -347,17 +341,17 @@ importers: dependencies: '@aws-sdk/client-cloudwatch': specifier: ^3 - version: 3.956.0 + version: 3.995.0 '@effect-aws/commons': specifier: workspace:^ version: link:../commons/dist devDependencies: '@types/node': specifier: ts5.4 - version: 25.0.3 + version: 25.3.0 effect: - specifier: ^3.16.4 - version: 3.16.4 + specifier: 4.0.0-beta.8 + version: 4.0.0-beta.8 typescript: specifier: ^5.4.2 version: 5.4.5 @@ -367,17 +361,17 @@ importers: dependencies: '@aws-sdk/client-cloudwatch-events': specifier: ^3 - version: 3.956.0 + version: 3.995.0 '@effect-aws/commons': specifier: workspace:^ version: link:../commons/dist devDependencies: '@types/node': specifier: ts5.4 - version: 25.0.3 + version: 25.3.0 effect: - specifier: ^3.16.4 - version: 3.16.4 + specifier: 4.0.0-beta.8 + version: 4.0.0-beta.8 typescript: specifier: ^5.4.2 version: 5.4.5 @@ -387,17 +381,17 @@ importers: dependencies: '@aws-sdk/client-cloudwatch-logs': specifier: ^3 - version: 3.956.0 + version: 3.995.0 '@effect-aws/commons': specifier: workspace:^ version: link:../commons/dist devDependencies: '@types/node': specifier: ts5.4 - version: 25.0.3 + version: 25.3.0 effect: - specifier: ^3.16.4 - version: 3.16.4 + specifier: 4.0.0-beta.8 + version: 4.0.0-beta.8 typescript: specifier: ^5.4.2 version: 5.4.5 @@ -407,17 +401,17 @@ importers: dependencies: '@aws-sdk/client-codedeploy': specifier: ^3 - version: 3.956.0 + version: 3.995.0 '@effect-aws/commons': specifier: workspace:^ version: link:../commons/dist devDependencies: '@types/node': specifier: ts5.4 - version: 25.0.3 + version: 25.3.0 effect: - specifier: ^3.16.4 - version: 3.16.4 + specifier: 4.0.0-beta.8 + version: 4.0.0-beta.8 typescript: specifier: ^5.4.2 version: 5.4.5 @@ -427,17 +421,17 @@ importers: dependencies: '@aws-sdk/client-cognito-identity-provider': specifier: ^3 - version: 3.956.0 + version: 3.995.0 '@effect-aws/commons': specifier: workspace:^ version: link:../commons/dist devDependencies: '@types/node': specifier: ts5.4 - version: 25.0.3 + version: 25.3.0 effect: - specifier: ^3.16.4 - version: 3.16.4 + specifier: 4.0.0-beta.8 + version: 4.0.0-beta.8 typescript: specifier: ^5.4.2 version: 5.4.5 @@ -447,17 +441,17 @@ importers: dependencies: '@aws-sdk/client-data-pipeline': specifier: ^3 - version: 3.956.0 + version: 3.995.0 '@effect-aws/commons': specifier: workspace:^ version: link:../commons/dist devDependencies: '@types/node': specifier: ts5.4 - version: 25.0.3 + version: 25.3.0 effect: - specifier: ^3.16.4 - version: 3.16.4 + specifier: 4.0.0-beta.8 + version: 4.0.0-beta.8 typescript: specifier: ^5.4.2 version: 5.4.5 @@ -467,17 +461,17 @@ importers: dependencies: '@aws-sdk/client-dsql': specifier: ^3 - version: 3.956.0 + version: 3.995.0 '@effect-aws/commons': specifier: workspace:^ version: link:../commons/dist devDependencies: '@types/node': specifier: ts5.4 - version: 25.0.3 + version: 25.3.0 effect: - specifier: ^3.16.4 - version: 3.16.4 + specifier: 4.0.0-beta.8 + version: 4.0.0-beta.8 typescript: specifier: ^5.4.2 version: 5.4.5 @@ -487,17 +481,17 @@ importers: dependencies: '@aws-sdk/client-dynamodb': specifier: ^3 - version: 3.956.0 + version: 3.995.0 '@effect-aws/commons': specifier: workspace:^ version: link:../commons/dist devDependencies: '@types/node': specifier: ts5.4 - version: 25.0.3 + version: 25.3.0 effect: - specifier: ^3.16.4 - version: 3.16.4 + specifier: 4.0.0-beta.8 + version: 4.0.0-beta.8 typescript: specifier: ^5.4.2 version: 5.4.5 @@ -507,17 +501,17 @@ importers: dependencies: '@aws-sdk/client-ec2': specifier: ^3 - version: 3.956.0 + version: 3.995.0 '@effect-aws/commons': specifier: workspace:^ version: link:../commons/dist devDependencies: '@types/node': specifier: ts5.4 - version: 25.0.3 + version: 25.3.0 effect: - specifier: ^3.16.4 - version: 3.16.4 + specifier: 4.0.0-beta.8 + version: 4.0.0-beta.8 typescript: specifier: ^5.4.2 version: 5.4.5 @@ -527,17 +521,17 @@ importers: dependencies: '@aws-sdk/client-ecr': specifier: ^3 - version: 3.956.0 + version: 3.995.0 '@effect-aws/commons': specifier: workspace:^ version: link:../commons/dist devDependencies: '@types/node': specifier: ts5.4 - version: 25.0.3 + version: 25.3.0 effect: - specifier: ^3.16.4 - version: 3.16.4 + specifier: 4.0.0-beta.8 + version: 4.0.0-beta.8 typescript: specifier: ^5.4.2 version: 5.4.5 @@ -547,17 +541,17 @@ importers: dependencies: '@aws-sdk/client-ecs': specifier: ^3 - version: 3.956.0 + version: 3.995.0 '@effect-aws/commons': specifier: workspace:^ version: link:../commons/dist devDependencies: '@types/node': specifier: ts5.4 - version: 25.0.3 + version: 25.3.0 effect: - specifier: ^3.16.4 - version: 3.16.4 + specifier: 4.0.0-beta.8 + version: 4.0.0-beta.8 typescript: specifier: ^5.4.2 version: 5.4.5 @@ -567,17 +561,17 @@ importers: dependencies: '@aws-sdk/client-elasticache': specifier: ^3 - version: 3.956.0 + version: 3.995.0 '@effect-aws/commons': specifier: workspace:^ version: link:../commons/dist devDependencies: '@types/node': specifier: ts5.4 - version: 25.0.3 + version: 25.3.0 effect: - specifier: ^3.16.4 - version: 3.16.4 + specifier: 4.0.0-beta.8 + version: 4.0.0-beta.8 typescript: specifier: ^5.4.2 version: 5.4.5 @@ -587,17 +581,17 @@ importers: dependencies: '@aws-sdk/client-eventbridge': specifier: ^3 - version: 3.956.0 + version: 3.995.0 '@effect-aws/commons': specifier: workspace:^ version: link:../commons/dist devDependencies: '@types/node': specifier: ts5.4 - version: 25.0.3 + version: 25.3.0 effect: - specifier: ^3.16.4 - version: 3.16.4 + specifier: 4.0.0-beta.8 + version: 4.0.0-beta.8 typescript: specifier: ^5.4.2 version: 5.4.5 @@ -607,17 +601,17 @@ importers: dependencies: '@aws-sdk/client-firehose': specifier: ^3 - version: 3.956.0 + version: 3.995.0 '@effect-aws/commons': specifier: workspace:^ version: link:../commons/dist devDependencies: '@types/node': specifier: ts5.4 - version: 25.0.3 + version: 25.3.0 effect: - specifier: ^3.16.4 - version: 3.16.4 + specifier: 4.0.0-beta.8 + version: 4.0.0-beta.8 typescript: specifier: ^5.4.2 version: 5.4.5 @@ -627,17 +621,17 @@ importers: dependencies: '@aws-sdk/client-glue': specifier: ^3 - version: 3.956.0 + version: 3.995.0 '@effect-aws/commons': specifier: workspace:^ version: link:../commons/dist devDependencies: '@types/node': specifier: ts5.4 - version: 25.0.3 + version: 25.3.0 effect: - specifier: ^3.16.4 - version: 3.16.4 + specifier: 4.0.0-beta.8 + version: 4.0.0-beta.8 typescript: specifier: ^5.4.2 version: 5.4.5 @@ -647,17 +641,17 @@ importers: dependencies: '@aws-sdk/client-iam': specifier: ^3 - version: 3.956.0 + version: 3.995.0 '@effect-aws/commons': specifier: workspace:^ version: link:../commons/dist devDependencies: '@types/node': specifier: ts5.4 - version: 25.0.3 + version: 25.3.0 effect: - specifier: ^3.16.4 - version: 3.16.4 + specifier: 4.0.0-beta.8 + version: 4.0.0-beta.8 typescript: specifier: ^5.4.2 version: 5.4.5 @@ -667,17 +661,17 @@ importers: dependencies: '@aws-sdk/client-iot': specifier: ^3 - version: 3.956.0 + version: 3.995.0 '@effect-aws/commons': specifier: workspace:^ version: link:../commons/dist devDependencies: '@types/node': specifier: ts5.4 - version: 25.0.3 + version: 25.3.0 effect: - specifier: ^3.16.4 - version: 3.16.4 + specifier: 4.0.0-beta.8 + version: 4.0.0-beta.8 typescript: specifier: ^5.4.2 version: 5.4.5 @@ -687,17 +681,17 @@ importers: dependencies: '@aws-sdk/client-iot-data-plane': specifier: ^3 - version: 3.956.0 + version: 3.995.0 '@effect-aws/commons': specifier: workspace:^ version: link:../commons/dist devDependencies: '@types/node': specifier: ts5.4 - version: 25.0.3 + version: 25.3.0 effect: - specifier: ^3.16.4 - version: 3.16.4 + specifier: 4.0.0-beta.8 + version: 4.0.0-beta.8 typescript: specifier: ^5.4.2 version: 5.4.5 @@ -707,17 +701,17 @@ importers: dependencies: '@aws-sdk/client-iot-events': specifier: ^3 - version: 3.956.0 + version: 3.995.0 '@effect-aws/commons': specifier: workspace:^ version: link:../commons/dist devDependencies: '@types/node': specifier: ts5.4 - version: 25.0.3 + version: 25.3.0 effect: - specifier: ^3.16.4 - version: 3.16.4 + specifier: 4.0.0-beta.8 + version: 4.0.0-beta.8 typescript: specifier: ^5.4.2 version: 5.4.5 @@ -727,17 +721,17 @@ importers: dependencies: '@aws-sdk/client-iot-events-data': specifier: ^3 - version: 3.956.0 + version: 3.995.0 '@effect-aws/commons': specifier: workspace:^ version: link:../commons/dist devDependencies: '@types/node': specifier: ts5.4 - version: 25.0.3 + version: 25.3.0 effect: - specifier: ^3.16.4 - version: 3.16.4 + specifier: 4.0.0-beta.8 + version: 4.0.0-beta.8 typescript: specifier: ^5.4.2 version: 5.4.5 @@ -747,17 +741,17 @@ importers: dependencies: '@aws-sdk/client-iot-jobs-data-plane': specifier: ^3 - version: 3.956.0 + version: 3.995.0 '@effect-aws/commons': specifier: workspace:^ version: link:../commons/dist devDependencies: '@types/node': specifier: ts5.4 - version: 25.0.3 + version: 25.3.0 effect: - specifier: ^3.16.4 - version: 3.16.4 + specifier: 4.0.0-beta.8 + version: 4.0.0-beta.8 typescript: specifier: ^5.4.2 version: 5.4.5 @@ -767,17 +761,17 @@ importers: dependencies: '@aws-sdk/client-iot-wireless': specifier: ^3 - version: 3.956.0 + version: 3.995.0 '@effect-aws/commons': specifier: workspace:^ version: link:../commons/dist devDependencies: '@types/node': specifier: ts5.4 - version: 25.0.3 + version: 25.3.0 effect: - specifier: ^3.16.4 - version: 3.16.4 + specifier: 4.0.0-beta.8 + version: 4.0.0-beta.8 typescript: specifier: ^5.4.2 version: 5.4.5 @@ -787,17 +781,17 @@ importers: dependencies: '@aws-sdk/client-ivs': specifier: ^3 - version: 3.956.0 + version: 3.995.0 '@effect-aws/commons': specifier: workspace:^ version: link:../commons/dist devDependencies: '@types/node': specifier: ts5.4 - version: 25.0.3 + version: 25.3.0 effect: - specifier: ^3.16.4 - version: 3.16.4 + specifier: 4.0.0-beta.8 + version: 4.0.0-beta.8 typescript: specifier: ^5.4.2 version: 5.4.5 @@ -807,17 +801,17 @@ importers: dependencies: '@aws-sdk/client-kafka': specifier: ^3 - version: 3.956.0 + version: 3.995.0 '@effect-aws/commons': specifier: workspace:^ version: link:../commons/dist devDependencies: '@types/node': specifier: ts5.4 - version: 25.0.3 + version: 25.3.0 effect: - specifier: ^3.16.4 - version: 3.16.4 + specifier: 4.0.0-beta.8 + version: 4.0.0-beta.8 typescript: specifier: ^5.4.2 version: 5.4.5 @@ -827,17 +821,17 @@ importers: dependencies: '@aws-sdk/client-kafkaconnect': specifier: ^3 - version: 3.956.0 + version: 3.995.0 '@effect-aws/commons': specifier: workspace:^ version: link:../commons/dist devDependencies: '@types/node': specifier: ts5.4 - version: 25.0.3 + version: 25.3.0 effect: - specifier: ^3.16.4 - version: 3.16.4 + specifier: 4.0.0-beta.8 + version: 4.0.0-beta.8 typescript: specifier: ^5.4.2 version: 5.4.5 @@ -847,17 +841,17 @@ importers: dependencies: '@aws-sdk/client-kinesis': specifier: ^3 - version: 3.956.0 + version: 3.995.0 '@effect-aws/commons': specifier: workspace:^ version: link:../commons/dist devDependencies: '@types/node': specifier: ts5.4 - version: 25.0.3 + version: 25.3.0 effect: - specifier: ^3.16.4 - version: 3.16.4 + specifier: 4.0.0-beta.8 + version: 4.0.0-beta.8 typescript: specifier: ^5.4.2 version: 5.4.5 @@ -867,17 +861,17 @@ importers: dependencies: '@aws-sdk/client-kms': specifier: ^3 - version: 3.956.0 + version: 3.995.0 '@effect-aws/commons': specifier: workspace:^ version: link:../commons/dist devDependencies: '@types/node': specifier: ts5.4 - version: 25.0.3 + version: 25.3.0 effect: - specifier: ^3.16.4 - version: 3.16.4 + specifier: 4.0.0-beta.8 + version: 4.0.0-beta.8 typescript: specifier: ^5.4.2 version: 5.4.5 @@ -887,17 +881,17 @@ importers: dependencies: '@aws-sdk/client-lambda': specifier: ^3 - version: 3.956.0 + version: 3.995.0 '@effect-aws/commons': specifier: workspace:^ version: link:../commons/dist devDependencies: '@types/node': specifier: ts5.4 - version: 25.0.3 + version: 25.3.0 effect: - specifier: ^3.16.4 - version: 3.16.4 + specifier: 4.0.0-beta.8 + version: 4.0.0-beta.8 typescript: specifier: ^5.4.2 version: 5.4.5 @@ -907,17 +901,17 @@ importers: dependencies: '@aws-sdk/client-mq': specifier: ^3 - version: 3.956.0 + version: 3.995.0 '@effect-aws/commons': specifier: workspace:^ version: link:../commons/dist devDependencies: '@types/node': specifier: ts5.4 - version: 25.0.3 + version: 25.3.0 effect: - specifier: ^3.16.4 - version: 3.16.4 + specifier: 4.0.0-beta.8 + version: 4.0.0-beta.8 typescript: specifier: ^5.4.2 version: 5.4.5 @@ -927,17 +921,17 @@ importers: dependencies: '@aws-sdk/client-opensearch': specifier: ^3 - version: 3.956.0 + version: 3.995.0 '@effect-aws/commons': specifier: workspace:^ version: link:../commons/dist devDependencies: '@types/node': specifier: ts5.4 - version: 25.0.3 + version: 25.3.0 effect: - specifier: ^3.16.4 - version: 3.16.4 + specifier: 4.0.0-beta.8 + version: 4.0.0-beta.8 typescript: specifier: ^5.4.2 version: 5.4.5 @@ -947,17 +941,17 @@ importers: dependencies: '@aws-sdk/client-opensearchserverless': specifier: ^3 - version: 3.956.0 + version: 3.995.0 '@effect-aws/commons': specifier: workspace:^ version: link:../commons/dist devDependencies: '@types/node': specifier: ts5.4 - version: 25.0.3 + version: 25.3.0 effect: - specifier: ^3.16.4 - version: 3.16.4 + specifier: 4.0.0-beta.8 + version: 4.0.0-beta.8 typescript: specifier: ^5.4.2 version: 5.4.5 @@ -967,17 +961,17 @@ importers: dependencies: '@aws-sdk/client-organizations': specifier: ^3 - version: 3.956.0 + version: 3.995.0 '@effect-aws/commons': specifier: workspace:^ version: link:../commons/dist devDependencies: '@types/node': specifier: ts5.4 - version: 25.0.3 + version: 25.3.0 effect: - specifier: ^3.16.4 - version: 3.16.4 + specifier: 4.0.0-beta.8 + version: 4.0.0-beta.8 typescript: specifier: ^5.4.2 version: 5.4.5 @@ -987,17 +981,17 @@ importers: dependencies: '@aws-sdk/client-rds': specifier: ^3 - version: 3.956.0 + version: 3.995.0 '@effect-aws/commons': specifier: workspace:^ version: link:../commons/dist devDependencies: '@types/node': specifier: ts5.4 - version: 25.0.3 + version: 25.3.0 effect: - specifier: ^3.16.4 - version: 3.16.4 + specifier: 4.0.0-beta.8 + version: 4.0.0-beta.8 typescript: specifier: ^5.4.2 version: 5.4.5 @@ -1007,23 +1001,23 @@ importers: dependencies: '@aws-sdk/client-s3': specifier: ^3 - version: 3.956.0 + version: 3.995.0 '@aws-sdk/s3-request-presigner': specifier: ^3 - version: 3.956.0 + version: 3.995.0 '@aws-sdk/types': specifier: ^3 - version: 3.956.0 + version: 3.973.1 '@effect-aws/commons': specifier: workspace:^ version: link:../commons/dist devDependencies: '@types/node': specifier: ts5.4 - version: 25.0.3 + version: 25.3.0 effect: - specifier: ^3.16.4 - version: 3.16.4 + specifier: 4.0.0-beta.8 + version: 4.0.0-beta.8 typescript: specifier: ^5.4.2 version: 5.4.5 @@ -1033,17 +1027,17 @@ importers: dependencies: '@aws-sdk/client-scheduler': specifier: ^3 - version: 3.956.0 + version: 3.995.0 '@effect-aws/commons': specifier: workspace:^ version: link:../commons/dist devDependencies: '@types/node': specifier: ts5.4 - version: 25.0.3 + version: 25.3.0 effect: - specifier: ^3.16.4 - version: 3.16.4 + specifier: 4.0.0-beta.8 + version: 4.0.0-beta.8 typescript: specifier: ^5.4.2 version: 5.4.5 @@ -1053,17 +1047,17 @@ importers: dependencies: '@aws-sdk/client-secrets-manager': specifier: ^3 - version: 3.956.0 + version: 3.995.0 '@effect-aws/commons': specifier: workspace:^ version: link:../commons/dist devDependencies: '@types/node': specifier: ts5.4 - version: 25.0.3 + version: 25.3.0 effect: - specifier: ^3.16.4 - version: 3.16.4 + specifier: 4.0.0-beta.8 + version: 4.0.0-beta.8 typescript: specifier: ^5.4.2 version: 5.4.5 @@ -1073,17 +1067,17 @@ importers: dependencies: '@aws-sdk/client-ses': specifier: ^3 - version: 3.956.0 + version: 3.995.0 '@effect-aws/commons': specifier: workspace:^ version: link:../commons/dist devDependencies: '@types/node': specifier: ts5.4 - version: 25.0.3 + version: 25.3.0 effect: - specifier: ^3.16.4 - version: 3.16.4 + specifier: 4.0.0-beta.8 + version: 4.0.0-beta.8 typescript: specifier: ^5.4.2 version: 5.4.5 @@ -1093,17 +1087,17 @@ importers: dependencies: '@aws-sdk/client-sfn': specifier: ^3 - version: 3.956.0 + version: 3.995.0 '@effect-aws/commons': specifier: workspace:^ version: link:../commons/dist devDependencies: '@types/node': specifier: ts5.4 - version: 25.0.3 + version: 25.3.0 effect: - specifier: ^3.16.4 - version: 3.16.4 + specifier: 4.0.0-beta.8 + version: 4.0.0-beta.8 typescript: specifier: ^5.4.2 version: 5.4.5 @@ -1113,17 +1107,17 @@ importers: dependencies: '@aws-sdk/client-sns': specifier: ^3 - version: 3.956.0 + version: 3.995.0 '@effect-aws/commons': specifier: workspace:^ version: link:../commons/dist devDependencies: '@types/node': specifier: ts5.4 - version: 25.0.3 + version: 25.3.0 effect: - specifier: ^3.16.4 - version: 3.16.4 + specifier: 4.0.0-beta.8 + version: 4.0.0-beta.8 typescript: specifier: ^5.4.2 version: 5.4.5 @@ -1133,17 +1127,17 @@ importers: dependencies: '@aws-sdk/client-sqs': specifier: ^3 - version: 3.956.0 + version: 3.995.0 '@effect-aws/commons': specifier: workspace:^ version: link:../commons/dist devDependencies: '@types/node': specifier: ts5.4 - version: 25.0.3 + version: 25.3.0 effect: - specifier: ^3.16.4 - version: 3.16.4 + specifier: 4.0.0-beta.8 + version: 4.0.0-beta.8 typescript: specifier: ^5.4.2 version: 5.4.5 @@ -1153,17 +1147,17 @@ importers: dependencies: '@aws-sdk/client-ssm': specifier: ^3 - version: 3.956.0 + version: 3.995.0 '@effect-aws/commons': specifier: workspace:^ version: link:../commons/dist devDependencies: '@types/node': specifier: ts5.4 - version: 25.0.3 + version: 25.3.0 effect: - specifier: ^3.16.4 - version: 3.16.4 + specifier: 4.0.0-beta.8 + version: 4.0.0-beta.8 typescript: specifier: ^5.4.2 version: 5.4.5 @@ -1173,17 +1167,17 @@ importers: dependencies: '@aws-sdk/client-sts': specifier: ^3 - version: 3.956.0 + version: 3.995.0 '@effect-aws/commons': specifier: workspace:^ version: link:../commons/dist devDependencies: '@types/node': specifier: ts5.4 - version: 25.0.3 + version: 25.3.0 effect: - specifier: ^3.16.4 - version: 3.16.4 + specifier: 4.0.0-beta.8 + version: 4.0.0-beta.8 typescript: specifier: ^5.4.2 version: 5.4.5 @@ -1193,17 +1187,17 @@ importers: dependencies: '@aws-sdk/client-textract': specifier: ^3 - version: 3.956.0 + version: 3.995.0 '@effect-aws/commons': specifier: workspace:^ version: link:../commons/dist devDependencies: '@types/node': specifier: ts5.4 - version: 25.0.3 + version: 25.3.0 effect: - specifier: ^3.16.4 - version: 3.16.4 + specifier: 4.0.0-beta.8 + version: 4.0.0-beta.8 typescript: specifier: ^5.4.2 version: 5.4.5 @@ -1213,17 +1207,17 @@ importers: dependencies: '@aws-sdk/client-timestream-influxdb': specifier: ^3 - version: 3.956.0 + version: 3.995.0 '@effect-aws/commons': specifier: workspace:^ version: link:../commons/dist devDependencies: '@types/node': specifier: ts5.4 - version: 25.0.3 + version: 25.3.0 effect: - specifier: ^3.16.4 - version: 3.16.4 + specifier: 4.0.0-beta.8 + version: 4.0.0-beta.8 typescript: specifier: ^5.4.2 version: 5.4.5 @@ -1233,17 +1227,17 @@ importers: dependencies: '@aws-sdk/client-timestream-query': specifier: ^3 - version: 3.956.0 + version: 3.995.0 '@effect-aws/commons': specifier: workspace:^ version: link:../commons/dist devDependencies: '@types/node': specifier: ts5.4 - version: 25.0.3 + version: 25.3.0 effect: - specifier: ^3.16.4 - version: 3.16.4 + specifier: 4.0.0-beta.8 + version: 4.0.0-beta.8 typescript: specifier: ^5.4.2 version: 5.4.5 @@ -1253,17 +1247,17 @@ importers: dependencies: '@aws-sdk/client-timestream-write': specifier: ^3 - version: 3.956.0 + version: 3.995.0 '@effect-aws/commons': specifier: workspace:^ version: link:../commons/dist devDependencies: '@types/node': specifier: ts5.4 - version: 25.0.3 + version: 25.3.0 effect: - specifier: ^3.16.4 - version: 3.16.4 + specifier: 4.0.0-beta.8 + version: 4.0.0-beta.8 typescript: specifier: ^5.4.2 version: 5.4.5 @@ -1272,24 +1266,24 @@ importers: packages/commons: dependencies: '@smithy/protocol-http': - specifier: ^5.3.5 - version: 5.3.7 + specifier: ^5.3.8 + version: 5.3.8 '@smithy/smithy-client': - specifier: ^4.9.9 - version: 4.10.2 + specifier: ^4.11.5 + version: 4.11.5 '@smithy/types': - specifier: ^4.9.0 - version: 4.11.0 + specifier: ^4.11.0 + version: 4.12.0 devDependencies: '@aws-sdk/middleware-logger': - specifier: ^3.956.0 - version: 3.956.0 + specifier: ^3.972.3 + version: 3.972.3 '@types/node': specifier: ts5.4 - version: 25.0.3 + version: 25.3.0 effect: - specifier: ^3.16.4 - version: 3.16.4 + specifier: 4.0.0-beta.8 + version: 4.0.0-beta.8 typescript: specifier: ^5.4.2 version: 5.4.5 @@ -1299,14 +1293,14 @@ importers: dependencies: '@aws-sdk/dsql-signer': specifier: ^3 - version: 3.956.0 + version: 3.995.0 devDependencies: '@types/node': specifier: ts5.4 - version: 25.0.3 + version: 25.3.0 effect: - specifier: ^3.16.4 - version: 3.16.4 + specifier: 4.0.0-beta.8 + version: 4.0.0-beta.8 typescript: specifier: ^5.4.2 version: 5.4.5 @@ -1316,10 +1310,10 @@ importers: dependencies: '@aws-sdk/client-dynamodb': specifier: ^3 - version: 3.956.0 + version: 3.995.0 '@aws-sdk/lib-dynamodb': specifier: ^3 - version: 3.956.0(@aws-sdk/client-dynamodb@3.956.0) + version: 3.995.0(@aws-sdk/client-dynamodb@3.995.0) '@effect-aws/commons': specifier: workspace:^ version: link:../commons/dist @@ -1329,10 +1323,10 @@ importers: version: link:../client-dynamodb/dist '@types/node': specifier: ts5.4 - version: 25.0.3 + version: 25.3.0 effect: - specifier: ^3.16.4 - version: 3.16.4 + specifier: 4.0.0-beta.8 + version: 4.0.0-beta.8 typescript: specifier: ^5.4.2 version: 5.4.5 @@ -1341,27 +1335,24 @@ importers: packages/http-handler: dependencies: '@smithy/protocol-http': - specifier: ^5.3.5 - version: 5.3.7 + specifier: ^5.3.8 + version: 5.3.8 '@smithy/querystring-builder': - specifier: ^4.2.5 - version: 4.2.7 + specifier: ^4.2.8 + version: 4.2.8 '@smithy/types': - specifier: ^4.9.0 - version: 4.11.0 + specifier: ^4.11.0 + version: 4.12.0 devDependencies: '@effect-aws/commons': specifier: workspace:^ version: link:../commons/dist - '@effect/platform': - specifier: ^0.84.8 - version: 0.84.8(effect@3.16.4) '@types/node': specifier: ts5.4 - version: 25.0.3 + version: 25.3.0 effect: - specifier: ^3.16.4 - version: 3.16.4 + specifier: 4.0.0-beta.8 + version: 4.0.0-beta.8 typescript: specifier: ^5.4.2 version: 5.4.5 @@ -1377,7 +1368,7 @@ importers: version: 8.10.159 '@types/node': specifier: ts5.4 - version: 25.0.3 + version: 25.3.0 effect: specifier: 4.0.0-beta.8 version: 4.0.0-beta.8 @@ -1386,26 +1377,6 @@ importers: version: 5.4.5 publishDirectory: dist - packages/lib-dynamodb: - dependencies: - '@effect-aws/dynamodb': - specifier: workspace:^ - version: link:../dynamodb/dist - devDependencies: - '@aws-sdk/client-dynamodb': - specifier: ^3 - version: 3.956.0 - '@aws-sdk/lib-dynamodb': - specifier: ^3 - version: 3.956.0(@aws-sdk/client-dynamodb@3.956.0) - '@types/node': - specifier: ts5.4 - version: 25.0.3 - typescript: - specifier: ^5.4.2 - version: 5.4.5 - publishDirectory: dist - packages/powertools-logger: devDependencies: '@aws-lambda-powertools/commons': @@ -1416,10 +1387,10 @@ importers: version: 2.0.0 '@types/node': specifier: ts5.4 - version: 25.0.3 + version: 25.3.0 effect: - specifier: ^3.16.4 - version: 3.16.4 + specifier: 4.0.0-beta.8 + version: 4.0.0-beta.8 typescript: specifier: ^5.4.2 version: 5.4.5 @@ -1445,10 +1416,10 @@ importers: version: 8.10.159 '@types/node': specifier: ts5.4 - version: 25.0.3 + version: 25.3.0 effect: - specifier: ^3.16.4 - version: 3.16.4 + specifier: 4.0.0-beta.8 + version: 4.0.0-beta.8 typescript: specifier: ^5.4.2 version: 5.4.5 @@ -1458,19 +1429,16 @@ importers: devDependencies: '@aws-sdk/client-s3': specifier: ^3 - version: 3.956.0 + version: 3.995.0 '@effect-aws/client-s3': specifier: workspace:^ version: link:../client-s3/dist - '@effect/platform': - specifier: ^0.84.8 - version: 0.84.8(effect@3.16.4) '@types/node': specifier: ts5.4 - version: 25.0.3 + version: 25.3.0 effect: - specifier: ^3.16.4 - version: 3.16.4 + specifier: 4.0.0-beta.8 + version: 4.0.0-beta.8 typescript: specifier: ^5.4.2 version: 5.4.5 @@ -1480,7 +1448,7 @@ importers: devDependencies: '@aws-sdk/client-secrets-manager': specifier: ^3 - version: 3.956.0 + version: 3.995.0 '@effect-aws/client-secrets-manager': specifier: workspace:^ version: link:../client-secrets-manager/dist @@ -1489,10 +1457,10 @@ importers: version: 1.208.0 '@types/node': specifier: ts5.4 - version: 25.0.3 + version: 25.3.0 effect: - specifier: ^3.16.4 - version: 3.16.4 + specifier: 4.0.0-beta.8 + version: 4.0.0-beta.8 typescript: specifier: ^5.4.2 version: 5.4.5 @@ -1502,7 +1470,7 @@ importers: devDependencies: '@aws-sdk/client-ssm': specifier: ^3 - version: 3.956.0 + version: 3.995.0 '@effect-aws/client-ssm': specifier: workspace:^ version: link:../client-ssm/dist @@ -1511,10 +1479,10 @@ importers: version: 1.208.0 '@types/node': specifier: ts5.4 - version: 25.0.3 + version: 25.3.0 effect: - specifier: ^3.16.4 - version: 3.16.4 + specifier: 4.0.0-beta.8 + version: 4.0.0-beta.8 typescript: specifier: ^5.4.2 version: 5.4.5 @@ -1646,442 +1614,464 @@ packages: '@middy/core': optional: true - '@aws-sdk/client-account@3.956.0': - resolution: {integrity: sha512-KvQJMGy9UbHfw3bWZQQJ4Xh3Mm6JK5etZFBt+CCmAvSQHK5Guy/GFAQcCHHybXjEaXb6WOjFnKE9kKsxe85Bbg==} - engines: {node: '>=18.0.0'} + '@aws-sdk/client-account@3.995.0': + resolution: {integrity: sha512-uQAUbcadQPWJrXhFG4drGf7c9gQoTrE6qPXadBei9LLbGqZjyoQxQtQbeTzXKSnrhsVNqow6mqitJEvE5Lj3CA==} + engines: {node: '>=20.0.0'} - '@aws-sdk/client-api-gateway@3.956.0': - resolution: {integrity: sha512-6fDsxCUCCYV9m3DoFQeFA3FZQGIiHcq8Y0XJFXuNtbqIoYll05KdFVf5rTjYcw5TCH0IK9Up0FgccvUAYOHQxw==} - engines: {node: '>=18.0.0'} + '@aws-sdk/client-api-gateway@3.995.0': + resolution: {integrity: sha512-CeXJZG/oVfPqQe8p9R2Zm8vNkLGErcB1mTXp1Zua6/l+fVPPmkDHI7K6rPTAmzwK63An0nJ+5YVh+EvSSNe5Gg==} + engines: {node: '>=20.0.0'} - '@aws-sdk/client-apigatewaymanagementapi@3.956.0': - resolution: {integrity: sha512-PMCBbpgNAldr7Kj6RqaIGrt1yjQWmag50Epq7djPTd1SXWuGAU/yh9FBipYBeShfegk02VB2jsi1d4HYfVGThw==} - engines: {node: '>=18.0.0'} + '@aws-sdk/client-apigatewaymanagementapi@3.995.0': + resolution: {integrity: sha512-+ZnfIlg7i4aU35hN8anrgT7+Hgy9D+f8wz81jJF3dnPl6aQFEG+boUnFsatUV90YZZRUwmG2KLoNjVBPTX0FCw==} + engines: {node: '>=20.0.0'} - '@aws-sdk/client-apigatewayv2@3.956.0': - resolution: {integrity: sha512-w/uLUn/SjVnuY1ROqrY2oL45aGt/lXOrqFTE+mcRzHqDJE/Xn7i37vTX5lQrvBArr7KLni+AaX+8sGhX5Yatsw==} - engines: {node: '>=18.0.0'} + '@aws-sdk/client-apigatewayv2@3.995.0': + resolution: {integrity: sha512-Uf4QpxveOr3ZUlhi7fOlcqWx7S6PthnPLBIBxAXEJxl4nPGFTaQDz/x25XunqYHjsyPaoJIMtCyj+F4aynr4Qw==} + engines: {node: '>=20.0.0'} - '@aws-sdk/client-athena@3.956.0': - resolution: {integrity: sha512-maE8DOl8nlf2GDSt/HU3xTvSWmwXHGpsGYGg5RNsfYJNifIGW2IBkE7CMT3V6hpjWAdImCyu4A6u1MpP1mrzkg==} - engines: {node: '>=18.0.0'} + '@aws-sdk/client-athena@3.995.0': + resolution: {integrity: sha512-wG8R1q7jTYN8VOKEPgyPlmm6l3fCeNPBlB5QcwFgMiy+8muyiDV+bD5RXUpBgERD9UbOn/JM0lUjqrUpgV2stg==} + engines: {node: '>=20.0.0'} - '@aws-sdk/client-auto-scaling@3.956.0': - resolution: {integrity: sha512-9ZeIZhKmMKL/hnImyevA6SLeuXS/Jv/51hn4nNn6GWN0dr+zOWHK1QM8c7KiZylKyM0FTIw3y111wVFHOV240w==} - engines: {node: '>=18.0.0'} + '@aws-sdk/client-auto-scaling@3.995.0': + resolution: {integrity: sha512-Kc9ItjVN4RAQumST3q+swVZpftUU0pspCRyQssn0nDAry7YpjQGDS+TIY3dXq0IR3GDbks1myQuHOUrTYTPNqg==} + engines: {node: '>=20.0.0'} - '@aws-sdk/client-bedrock-runtime@3.956.0': - resolution: {integrity: sha512-8cD53FBKn7uvc4QZtYZr87KcuSrEFMwS/O3HC+Y7+disgePlTXxtOo0naCj5O1yVZPuU3FCVLGzxFk5fhbzAJg==} - engines: {node: '>=18.0.0'} + '@aws-sdk/client-bedrock-runtime@3.995.0': + resolution: {integrity: sha512-nI7tT11L9s34AKr95GHmxs6k2+3ie+rEOew2cXOwsMC9k/5aifrZwh0JjAkBop4FqbmS8n0ZjCKDjBZFY/0YxQ==} + engines: {node: '>=20.0.0'} - '@aws-sdk/client-bedrock@3.956.0': - resolution: {integrity: sha512-M3eMoA44Tv+NBNw3M+NtGO7zA6jDfr07MulELlfRPBMtdMNmD0eTH6HwOwuxQk9+llks2uIITBqS6uCPZuQCzQ==} - engines: {node: '>=18.0.0'} + '@aws-sdk/client-bedrock@3.995.0': + resolution: {integrity: sha512-ONw5c7pOeHe78kC+jK2j73hP727Kqp7cc9lZqkfshlBD8MWxXmZM9GihIQLrNBCSUKRhc19NH7DUM6B7uN0mMQ==} + engines: {node: '>=20.0.0'} - '@aws-sdk/client-cloudformation@3.956.0': - resolution: {integrity: sha512-GyeXqxxR99uipL+Mag5ZWHZwfzugoU62Y/BexoqlMZQIEsjAQAhL/5Yx/ErVSZYcVqs7Q6zbRTOOpS51a1Bqug==} - engines: {node: '>=18.0.0'} + '@aws-sdk/client-cloudformation@3.995.0': + resolution: {integrity: sha512-5IT/jN5TbVbbsU9dbar20bNuWWs/HUlYhRW8VMglhOGzZMvu9/Qq9AAgcsgNNZ4fMDPH9fw5993T/TgtvP+sBA==} + engines: {node: '>=20.0.0'} - '@aws-sdk/client-cloudsearch@3.956.0': - resolution: {integrity: sha512-jgKwr4JkdpRrIcTu5aMw11k3vNrth8I7T7NQhD02I7uqT72rd3IaPx165xmYuUUFGG8vmCuNU4L0RTgxuSeHXw==} - engines: {node: '>=18.0.0'} + '@aws-sdk/client-cloudsearch@3.995.0': + resolution: {integrity: sha512-VX+KCq6nU0gAGJAwG9TlaBFBeodhHbi+OjXTuszCr5PXLRQ5jyHbNqgJI7W6tOqrZ7AZ9sTp9rd4ky4XStpxFQ==} + engines: {node: '>=20.0.0'} - '@aws-sdk/client-cloudtrail@3.956.0': - resolution: {integrity: sha512-/7/JzbER2L3hoioPUIQehBaLzTDvr+RHF+7FEskIY6BlMG7vVFZJzWQ0NSBEuhEOt+gAhvYrM5ToH2m/29MHDw==} - engines: {node: '>=18.0.0'} + '@aws-sdk/client-cloudtrail@3.995.0': + resolution: {integrity: sha512-YiYHs0mViImJZEGWtB6IKRITuUPRJR7umJN1FZN4EHrTu5JwSPaigawVQPyFZTfkC+J+r7TdKDcj81QClqJPAA==} + engines: {node: '>=20.0.0'} - '@aws-sdk/client-cloudwatch-events@3.956.0': - resolution: {integrity: sha512-Ry2oEdiX1EJAnukuNAyhFNPtvdgciaIJUttCpoD69KLR/uFZQ4iu5b80vK4/98kaUb9tjWG8D4IKfrU5qh5pzw==} - engines: {node: '>=18.0.0'} + '@aws-sdk/client-cloudwatch-events@3.995.0': + resolution: {integrity: sha512-y9ZvFzHC88nQxxNvxmbOsyC0ze3IZVGPGlBMXZH6sPrLhS+3hJgzAuA8PxpMruPXbwWU0O30Sssdhb1vMTMIvA==} + engines: {node: '>=20.0.0'} - '@aws-sdk/client-cloudwatch-logs@3.956.0': - resolution: {integrity: sha512-IuWf1dVlizEyDrj9TCJ6xTLJiNUvefuJf3K/5+g2AumqFocbYY1ev3dQPctF5CDQ0OYLX40klXwOcAkGNBxvFg==} - engines: {node: '>=18.0.0'} + '@aws-sdk/client-cloudwatch-logs@3.995.0': + resolution: {integrity: sha512-Tk9AfLUsPFcerSlHrj/awK1DwiR6RSeg9FQEg5cmExxxMd4NuIsAynbltqJiw3oFz1H67VGjD/p10pELSk+iww==} + engines: {node: '>=20.0.0'} - '@aws-sdk/client-cloudwatch@3.956.0': - resolution: {integrity: sha512-HFqOX69PcQVOf7W5H/kismnURxJD1GEYeP61bp0xsozTWcp9OECyU/tTzWcqxil/g78+pGp+iindkm9OQReF8Q==} - engines: {node: '>=18.0.0'} + '@aws-sdk/client-cloudwatch@3.995.0': + resolution: {integrity: sha512-frCYjEyaOvQ6dZ8qaz+KZX+scPJnO7uN3HICDrkhpqdHEsSEDKtJFkCbYayAC0m0RyTWfX9gPqKDVmUOnUytHA==} + engines: {node: '>=20.0.0'} - '@aws-sdk/client-codedeploy@3.956.0': - resolution: {integrity: sha512-zOqGIVueaYBqnpRa3c6CKIRg9SBAfF636ipNBlezXHejH5Zfsg7P70yDVzaAIYJEuOZSH5T7XWr60X/dcUcP0A==} - engines: {node: '>=18.0.0'} + '@aws-sdk/client-codedeploy@3.995.0': + resolution: {integrity: sha512-5dydn03C0Udjgx2aHdY8guVYropD9AYGm7FtahaSHp5xyB5eEgDieu+fD8R0la+DEQhWWbdHDwimfIiMmxKusA==} + engines: {node: '>=20.0.0'} - '@aws-sdk/client-cognito-identity-provider@3.956.0': - resolution: {integrity: sha512-fYJcQGDZALxWPEttdyxhUEDqismFn4ACaWORjdLmtjJEnPTs8iDOzkW0Eo2c40hXR6DuY9vAZly1O6LxkkHNDw==} - engines: {node: '>=18.0.0'} + '@aws-sdk/client-cognito-identity-provider@3.995.0': + resolution: {integrity: sha512-IaovlOy4y6ei0MdL4xQMXn2fcKmVCBARuF0n6BRC3evv6Km8PDMXaXnNwij96fRqWojBEc4hhY6rNCR4e33PAQ==} + engines: {node: '>=20.0.0'} - '@aws-sdk/client-cognito-identity@3.956.0': - resolution: {integrity: sha512-aFRUb4BY0iAACVFnLdreULiO5ox1jds5TovncPlUogN5TjVA04i+hmfShj9l5Ho1sFa1WKc35tngiRmpQIJSJg==} - engines: {node: '>=18.0.0'} + '@aws-sdk/client-cognito-identity@3.980.0': + resolution: {integrity: sha512-nLgMW2drTzv+dTo3ORCcotQPcrUaTQ+xoaDTdSaUXdZO7zbbVyk7ysE5GDTnJdZWcUjHOSB8xfNQhOTTNVPhFw==} + engines: {node: '>=20.0.0'} - '@aws-sdk/client-data-pipeline@3.956.0': - resolution: {integrity: sha512-25DklfuwQjAX3M6bXJZlgxMhvm5I39s4FiF8cDpl/sqMD8yaePaaKjtxdXan/tY5bxJm5u6nAHzFv+Xlocq0WA==} - engines: {node: '>=18.0.0'} + '@aws-sdk/client-cognito-identity@3.995.0': + resolution: {integrity: sha512-CBGYQb6v6uIxvbID+ZzuYk/eGYGBVyXNUY8eu890WimzfahtyF/eLhvQTQJI0GrtKl8inSLKPqZOQ4tnrVAofQ==} + engines: {node: '>=20.0.0'} - '@aws-sdk/client-dsql@3.956.0': - resolution: {integrity: sha512-eE/2AtuKx3B+tqS8lge28F4SVLl2qKOU736BGbA2JdQbrF7EHz8zg31YrwW3apmsMBZIE3bcADvgl1wl6ukKJw==} - engines: {node: '>=18.0.0'} + '@aws-sdk/client-data-pipeline@3.995.0': + resolution: {integrity: sha512-VcRpHo6C1cyk+k9lKPYkKYETlA7/a6PDeBs9mduz6C8GzjiUtmgC3E++IBhEcHikBSDTTm39TnmViVEO7W6qWQ==} + engines: {node: '>=20.0.0'} - '@aws-sdk/client-dynamodb@3.956.0': - resolution: {integrity: sha512-mM99L5f8Kg5IhdiZbp+WzJ1IYoxHQ/t9eEe29oh9xp7L7VafOQytJyKMVNOIsoiIRJT6XYtst5493G4JhcU4CQ==} - engines: {node: '>=18.0.0'} + '@aws-sdk/client-dsql@3.995.0': + resolution: {integrity: sha512-rlgmfjqBmzki1OkBLnX85NDAgMtkLZKQXpUfSfVwZ9cizq5kF8lsDjbp0DwLboHxAQ/TfLyK0XOhNGn9/s9l7Q==} + engines: {node: '>=20.0.0'} - '@aws-sdk/client-ec2@3.956.0': - resolution: {integrity: sha512-f2S1ga8SoBRV6c2JyETJseyiTWN5wGIDJnkwg5wkGCIk5lSxXaXGPlBGR+0XAwRb5UtWz5XVOS9uG0GIEsdiMw==} - engines: {node: '>=18.0.0'} + '@aws-sdk/client-dynamodb@3.995.0': + resolution: {integrity: sha512-JDg3O4w8qi8XIHhPf1AMmquqlrpQJ6z22z0h3Z2rUmzrS+cNj3aUnXrZVRvRlHbvEMzTgVcpcfdRcy4RvDcamw==} + engines: {node: '>=20.0.0'} - '@aws-sdk/client-ecr@3.956.0': - resolution: {integrity: sha512-iXyz+BEnfVIZzbAaSKwL5FuHlYL5F1zsqyJDEFH1fCdWuN35vq9l2k261d9CeNBs/08GtFbfGC2N0k9u0hI7/Q==} - engines: {node: '>=18.0.0'} + '@aws-sdk/client-ec2@3.995.0': + resolution: {integrity: sha512-sWvQuySZHZAuYxQhW41J/xXXV/GbB58iCWk/gET3MYvtgRbCtqpoBijgYQzv5Nw6VQpFsstgpb6Ru9ZBfjkDOA==} + engines: {node: '>=20.0.0'} - '@aws-sdk/client-ecs@3.956.0': - resolution: {integrity: sha512-T5gHJ/LwMgum4psJU1+W5CBgVBaKBrNod2gMnkafIdLt1P+yZ/2M8wut//bcGa8QqyZahWLVNWTR2Qt4vHT38A==} - engines: {node: '>=18.0.0'} + '@aws-sdk/client-ecr@3.995.0': + resolution: {integrity: sha512-mg3C+HlADnrJg6iqbSTmHPlmr5v5ycIQvYyYvxnZEVEzkbcvmlm38GaBjson2ZprTaCoqhlaVpFStvV9tSCz+w==} + engines: {node: '>=20.0.0'} - '@aws-sdk/client-elasticache@3.956.0': - resolution: {integrity: sha512-a5EnIkxaR+ta+MWV4GstZFGsW1pXhSA7L+viY6B9RHIs4aDkO6cRrJrM/tNJcp0HBubj03xlhTweD6zqINVKJA==} - engines: {node: '>=18.0.0'} + '@aws-sdk/client-ecs@3.995.0': + resolution: {integrity: sha512-MMZu9CkvWwcgOec57Fn3wKGaKStyjgH+0SKK3BE+PXAIT+b4DJZu7G4mN/EEuVcJxSpkhhjmPBFz/4qiEEu7VA==} + engines: {node: '>=20.0.0'} - '@aws-sdk/client-eventbridge@3.956.0': - resolution: {integrity: sha512-WRxwoOyUusSG2TaLTCErVmjyIULj/N2ItYj+YT8zFar9tirlo1fzfzsG6tGLUJsdjSm5/RGfF1qjIvh53btegg==} - engines: {node: '>=18.0.0'} + '@aws-sdk/client-elasticache@3.995.0': + resolution: {integrity: sha512-BpB5PUpekaTZH8etqcc+5ObJo/mi6lDFU4Gw8XhXdOC9unsOymiCbC00zK5a8UQsczKQbrTgkygwdkrJygtY6g==} + engines: {node: '>=20.0.0'} - '@aws-sdk/client-firehose@3.956.0': - resolution: {integrity: sha512-cyEjNaXsn4dZhc+jP2ChX9A/wBEZTzAw5Cvm+ATOnHnjLAUy0vz1MYkEUsBPeceNhz63X3gEAiGvwEqed5wprw==} - engines: {node: '>=18.0.0'} + '@aws-sdk/client-eventbridge@3.995.0': + resolution: {integrity: sha512-nXx1A/+/9/3nF/TzCdWDK0UZS31yRHOmcO+omXaMi2f/yD4BQakUdz+w/kdaT0WPytzXTwhWZfT6MO+xtE3mZA==} + engines: {node: '>=20.0.0'} - '@aws-sdk/client-glue@3.956.0': - resolution: {integrity: sha512-kExpaTNE6FMno+E3yxulBLatezV2em2adUKS1i3yYsq5YS++PDNEBWdb1gkqvNtblk6tt6u2YQ9c/pXTvfnyAA==} - engines: {node: '>=18.0.0'} + '@aws-sdk/client-firehose@3.995.0': + resolution: {integrity: sha512-KG9IhCUjh9zb5IRT4qO7KoTHlznCGR0ybeV342WzQHXtpdZm92Tsy0sEBaKnP7FpyTRqws72Dl+wvxN+gATgjQ==} + engines: {node: '>=20.0.0'} - '@aws-sdk/client-iam@3.956.0': - resolution: {integrity: sha512-iJw6dQTQaDQ1ZHDxcEA6Tuy9Zn+1hQtz4yvFh8Fmf4U2IPY1VMruMRDNfmTNR1id/sGnggfbmAiYySRseXmQgw==} - engines: {node: '>=18.0.0'} + '@aws-sdk/client-glue@3.995.0': + resolution: {integrity: sha512-60XbaAhuFi9bCkKyVQ2o1G8/kMXwRQLqrOf5KnrPy1kqNgW1a5QGIcVD3oTZagYwcs0NDCNi4qwzwIAzDcv4yw==} + engines: {node: '>=20.0.0'} - '@aws-sdk/client-iot-data-plane@3.956.0': - resolution: {integrity: sha512-VY0dSLcobCoAH4jDV7ZaqvEhfnTbJwj+uN36WAXiDo2zEy+cm7BqmqdGsBBBZ/lLWJ7bKJH+rjNLB5qynP47/w==} - engines: {node: '>=18.0.0'} + '@aws-sdk/client-iam@3.995.0': + resolution: {integrity: sha512-vhIxzev++Y3RjO9s51mVXLLyMwSDGXlU5VI1/uzfP/Lk42f0ncFdmSX4zXO/BvmU71+YAmnKvBwBgpsq7sD61A==} + engines: {node: '>=20.0.0'} - '@aws-sdk/client-iot-events-data@3.956.0': - resolution: {integrity: sha512-fJfKlWC7ADPzZ/xYK+P4dKlZc7AwYkMHKkPAejrhzlkrDjZXzoXoLJwaaRvnE5DN3J/ZvctfF2eVRFAobeqm7g==} - engines: {node: '>=18.0.0'} + '@aws-sdk/client-iot-data-plane@3.995.0': + resolution: {integrity: sha512-lKNyLdv4Adaed/XxlS/vYyQ0nembW97yn/YSN9O4WV3BeTMeojm2LPW/eqSf2ksUEgvFxStNPCACbcayC0cNLw==} + engines: {node: '>=20.0.0'} - '@aws-sdk/client-iot-events@3.956.0': - resolution: {integrity: sha512-RMUns1JswLaUERGlgazS54FYizBOxjnRxnNwjKaJ83zp0+agjO1oViuM60y7XEv/9y1nOxs3VjBvyuUMNsCqxg==} - engines: {node: '>=18.0.0'} + '@aws-sdk/client-iot-events-data@3.995.0': + resolution: {integrity: sha512-8opG7MxS8MMX2l54P2jUHD2yhjSZQ5+Wlimsqx3a04O/3PX4WrkUsZaKqcqc+bTaynecZHTdcjdWPC7A4n8h+A==} + engines: {node: '>=20.0.0'} - '@aws-sdk/client-iot-jobs-data-plane@3.956.0': - resolution: {integrity: sha512-/CYQMNR83ywl87Dla0GA5KnwXfPP+aU8Pw5Uo5r0NsEDiBUDWKwDjGTsyvCcUgh5SgsbWNoKEN3yIDCniw9Adg==} - engines: {node: '>=18.0.0'} + '@aws-sdk/client-iot-events@3.995.0': + resolution: {integrity: sha512-dXEkResS/HDnOWGqkCGbT6nzCFLIwFL9a6iupBAZ+/++hnmuZ4Z93agx9YqKXCV7SC/tb7nd+RmyBCZZ+Kmhsg==} + engines: {node: '>=20.0.0'} - '@aws-sdk/client-iot-wireless@3.956.0': - resolution: {integrity: sha512-vtjUCo93KdElsZMQ8MA9QVGRKF0gZRqqqaS4+5XzR+dppwqVOpJrzU8sG0cvrXfIBm7k8JUJON0bl8aklx9jAg==} - engines: {node: '>=18.0.0'} + '@aws-sdk/client-iot-jobs-data-plane@3.995.0': + resolution: {integrity: sha512-+67xZkc2xZ1QymSjJ8DM9mNG0jwHEX89RlfNCbd6EDC2KCYmGjjAb2T8msZwScsTx3+T0ocqtZagCYuLCymLMQ==} + engines: {node: '>=20.0.0'} - '@aws-sdk/client-iot@3.956.0': - resolution: {integrity: sha512-Er+6dUMQlOH+nhrZKWjGEgTPV9rARFjDsRl9oKQKOofsmWTHNUR3S2vq/X5ZO7OjZ9O3E39WzQv5pxfRzE5GiA==} - engines: {node: '>=18.0.0'} + '@aws-sdk/client-iot-wireless@3.995.0': + resolution: {integrity: sha512-mAY89DOd8Bu6eYYCHVLnbwKiSYaJQWTLr9QijQeqRJZIS7iKssvUbzN8jgP5sSpZTrAmQ6aKFiRekuAHntGarA==} + engines: {node: '>=20.0.0'} - '@aws-sdk/client-ivs@3.956.0': - resolution: {integrity: sha512-DjrCAUK8Fp5ys1/50wVzFhEHwEiGHim5ScZs/DJz+m+nK9BDZJpDEgicwOj+o0xjkDRLXRkbEx0JroQOG38VTg==} - engines: {node: '>=18.0.0'} + '@aws-sdk/client-iot@3.995.0': + resolution: {integrity: sha512-ItCn2POdWfKod1iQ35repdx3d4ReJ7Txo/3oG5Dh7xm+ydzmHaIfLuRdJcqdjWt91FdBTk/YSLLR2Sbx0FWdwQ==} + engines: {node: '>=20.0.0'} - '@aws-sdk/client-kafka@3.956.0': - resolution: {integrity: sha512-XuAv0kTe/0XBuZVGNDEuk7ymEXBAuGu3yfZZUZ/xbop0tfF+XUo2mNAi3PUp6nviOYvBka8Odfc3GlCupVP+IQ==} - engines: {node: '>=18.0.0'} + '@aws-sdk/client-ivs@3.995.0': + resolution: {integrity: sha512-xjbiM9nGyQIdwLH7s95J0vKU6uEnWBC4X7rHYwBETN1iRvD5cbW6to68EfWIHumo9khFfLrFBCVJkIKRc8wn4A==} + engines: {node: '>=20.0.0'} - '@aws-sdk/client-kafkaconnect@3.956.0': - resolution: {integrity: sha512-YVyPzsz1c0pWECup1rtTEsFlpndPgHzaDlLvhb67fr4fWV7LHbTT33/lJ92XESS9zShh460o+a4tduXAK8HjAw==} - engines: {node: '>=18.0.0'} + '@aws-sdk/client-kafka@3.995.0': + resolution: {integrity: sha512-6usuvp0qPB9ky+59EwVJ8Wg4NiKizMOvUvzF9bqpqxZbqIbWoyXOEJ8j+IalNBUGEEOVXDilYbu2AmNkhpMNOA==} + engines: {node: '>=20.0.0'} - '@aws-sdk/client-kinesis@3.956.0': - resolution: {integrity: sha512-rkKKvlKW7iloDea52ynn+U+KdBIzEtrhj6h3mdvqQcFKTYZ4a4Zx6GcmBsEX+IHBbNmjmVuL4pyLVG/iQwebug==} - engines: {node: '>=18.0.0'} + '@aws-sdk/client-kafkaconnect@3.995.0': + resolution: {integrity: sha512-O2mulOg+KFM1JU3Bwobavnec56WzlHwaLZ8v+vnbe0I3Szpdw8dSNGH7yl1K1c7sfT42ED9LirjC64tUwFuAuA==} + engines: {node: '>=20.0.0'} - '@aws-sdk/client-kms@3.956.0': - resolution: {integrity: sha512-57j6YXxIuibUcGR51NhGbPWQUhnpZUP3MNtAaAR4DdAwLJm6rN1rVl4Rv4HOH6r47VkVtqcmUYL/OzomU9fanw==} - engines: {node: '>=18.0.0'} + '@aws-sdk/client-kinesis@3.995.0': + resolution: {integrity: sha512-Ihgu9BxzrBVZY4KVreXehUOi7TZhRuyjWpmDkiF4MiM7OO3ee3Em3MEvB5XrD86J46DHB1ru5IXsMtgmt2uC0A==} + engines: {node: '>=20.0.0'} - '@aws-sdk/client-lambda@3.956.0': - resolution: {integrity: sha512-BiS7Z/rZA/1dquEzBJ/tNNpRuivOEv2bx4PVDbjiLXyaww/Rds+zkhP+0KdYPYWztKXT96CGRH7DCEiN9N4EEQ==} - engines: {node: '>=18.0.0'} + '@aws-sdk/client-kms@3.995.0': + resolution: {integrity: sha512-XD/1xUrRRMA0pvSOQfV++a5X2p3/xWNpEb/fksIVsIgvAuPCVDz1bCyTY9CjhVAxfzfxfTdy+fJKpk6frNCRdQ==} + engines: {node: '>=20.0.0'} - '@aws-sdk/client-mq@3.956.0': - resolution: {integrity: sha512-3wFujXCM1s/HHYwuabuUtfifiyzcQ6CQrUmrlW1cPiPpdXC+nrkvYP9MXWpD7CBeZrT1Va8XHBjrdHoNaRzSUA==} - engines: {node: '>=18.0.0'} + '@aws-sdk/client-lambda@3.995.0': + resolution: {integrity: sha512-udxiVZs+l84PKrlmYelLNwxLLEJWK1bQLdt6zZdwOdzuv+39KkRaGkAH8fFhrH1S7QM19usV0l6GOE+Zzx40aQ==} + engines: {node: '>=20.0.0'} - '@aws-sdk/client-opensearch@3.956.0': - resolution: {integrity: sha512-yWry7FFRdrVF/73rpY+pzM6CS5javkyr357cIR5pwmUy7qzInQopky0XyZv9L3QAsD0XonSOAeHDRmbNfeUyRA==} - engines: {node: '>=18.0.0'} + '@aws-sdk/client-mq@3.995.0': + resolution: {integrity: sha512-rbTag3YR86U40k0H7BgHwDFjyBd505cwEjDl2lUKVofpQDatx2gnyUGYJ/Xrt0RWehyj3DGmaV2EGpgIPSpH1Q==} + engines: {node: '>=20.0.0'} - '@aws-sdk/client-opensearchserverless@3.956.0': - resolution: {integrity: sha512-KeVwWDj4KDNzg6eFIvkdC0qOrarxNSrE7n88YRh0D8DP+dYAcvFhafH0SUZFsuSh3GYlHLV53lGaJP71ONsG2Q==} - engines: {node: '>=18.0.0'} + '@aws-sdk/client-opensearch@3.995.0': + resolution: {integrity: sha512-CLRl4auzEO/f8cEIEoPBjVSujBKBYcV/M+DIxnl0O8ZpXI7x5eKE/uHpOLRZfzZf3D5t1pxPyDIiqdfeBfvaUQ==} + engines: {node: '>=20.0.0'} - '@aws-sdk/client-organizations@3.956.0': - resolution: {integrity: sha512-ZimQPv0ykU8cAAPeBkrsve6xTzAPChk4q8M8oF9/CVfIjPrwfcweikL5FVahmg3chzmDDHVz9o6dl8IfVyJ1Rw==} - engines: {node: '>=18.0.0'} + '@aws-sdk/client-opensearchserverless@3.995.0': + resolution: {integrity: sha512-KlitCiH1mlFEVFUct33LuVTeCqZza1pSZ1qcGKKbdPRdB5OkZdwWA6N/JWDPtZXAbZnJi5ioJswUUWK8JBmS8A==} + engines: {node: '>=20.0.0'} - '@aws-sdk/client-rds@3.956.0': - resolution: {integrity: sha512-6lnviq3fuLQ5l73/j9gPbnFe7hIfMByp7Cyb6U5FzcrCym8v6wUrlkvf/R9r+lquJDCOjPuC6NxdGh8QqUp7ig==} - engines: {node: '>=18.0.0'} + '@aws-sdk/client-organizations@3.995.0': + resolution: {integrity: sha512-agInzcm3K1uYJLszPBn5Lz0ABFMzBsHodORqUQHOQvbGgwmbMtDm6XvDEHuuSRodzV4cIzqdvZlBir/qHL2LxQ==} + engines: {node: '>=20.0.0'} - '@aws-sdk/client-s3@3.956.0': - resolution: {integrity: sha512-O+Z7PSY9TjaqJcZSDMvVmXBuV/jmFRJIu7ga+9XgWv4+qfjhAX2N2s4kgsRnIdjIO4xgkN3O/BugTCyjIRrIDQ==} - engines: {node: '>=18.0.0'} + '@aws-sdk/client-rds@3.995.0': + resolution: {integrity: sha512-uNsi/QsVzufySFyD3xrY+vhpb04sbaj0jlviWob5+VzUxfDgRJ9amjwdkHES8qXu16FN2slnt6nhAMRARau0Aw==} + engines: {node: '>=20.0.0'} - '@aws-sdk/client-scheduler@3.956.0': - resolution: {integrity: sha512-76gd17cld1mIkCOmBJO6lgHX/PyvmRdf5raa7qa4xGws/uD/rDgWcMql1fYc4MVQK+8EVLs5RQqfVKuzsyvUdA==} - engines: {node: '>=18.0.0'} + '@aws-sdk/client-s3@3.995.0': + resolution: {integrity: sha512-r+t8qrQ0m9zoovYOH+wilp/glFRB/E+blsDyWzq2C+9qmyhCAQwaxjLaHM8T/uluAmhtZQIYqOH9ILRnvWtRNw==} + engines: {node: '>=20.0.0'} - '@aws-sdk/client-secrets-manager@3.956.0': - resolution: {integrity: sha512-dVVpy0AoGHlDDmpzQA6OEJ7KmKFdQR9shTslcJJB56OpNhbFShd0LHYGW1PFXI3mWHRaYJnMprGWqzBPwJ2dVA==} - engines: {node: '>=18.0.0'} + '@aws-sdk/client-scheduler@3.995.0': + resolution: {integrity: sha512-qn3czU2E3ZozastPT1aDsSi74QYAPUg9GWQ6nfAGoL1BqPSRbbM+gQ0cb7o4+kZ2Gs2gq3kbPl3/0jDh2F9dQw==} + engines: {node: '>=20.0.0'} - '@aws-sdk/client-ses@3.956.0': - resolution: {integrity: sha512-pot5tKpQcL8EC4MIKicF684FNrVWU6ZUmxdeJpEHb6b0x2B2ggIUGgNEo0nyd7/ga74azKcTmP7rDpE/9Z3yYA==} - engines: {node: '>=18.0.0'} + '@aws-sdk/client-secrets-manager@3.995.0': + resolution: {integrity: sha512-JamAKL0JgvW6/UMzrYV2UgsX7cHp69yq34NEHy6bjvzUAV7P/F1FZTJkHVfD4tKzLudkfFnFEFJuOPctLYFbtg==} + engines: {node: '>=20.0.0'} - '@aws-sdk/client-sfn@3.956.0': - resolution: {integrity: sha512-E7XeEwxCQSvgWsHQwbW3vnVJWQH4fO18PlHgA+3nmUAMj+OXM46NEOYQF521zrQLyTEe9Sz1mxygL3DU9Vt5cg==} - engines: {node: '>=18.0.0'} + '@aws-sdk/client-ses@3.995.0': + resolution: {integrity: sha512-CD+Kvf3mOp6lCDMiCkZ2o4hoHLRhBA2lwiZRZoAV7xTe2FR0zlnoC5irRRIWldhMEEPE/OZbLgfuCcWkuJUjtQ==} + engines: {node: '>=20.0.0'} - '@aws-sdk/client-sns@3.956.0': - resolution: {integrity: sha512-xd9bPtTaLid0y68HGK8m/C9Ig6tUrGsqmKzXOLj/LXKdK38XVeJcGB765F2JGMZ+JhjrTpz/w3QykMGiWMgoVA==} - engines: {node: '>=18.0.0'} + '@aws-sdk/client-sfn@3.995.0': + resolution: {integrity: sha512-mZipDmuHwnEXtmq5tDg3q+D028TnFRQzNxo2AnYsGdp5R1+N14iqUKuVn7F6wzy3COsVVkz6ck1LZ0X/bIj+kA==} + engines: {node: '>=20.0.0'} - '@aws-sdk/client-sqs@3.956.0': - resolution: {integrity: sha512-Odb4Q2lI0wt3E7pwAKRh1mYPkodS3VEZIORrhJKflPng9kxs1OW2iG/SxBMTYTAgVl7s9p8VrDfVodWG0G25ew==} - engines: {node: '>=18.0.0'} + '@aws-sdk/client-sns@3.995.0': + resolution: {integrity: sha512-dfkXzxcuz9YXF6JZOChaA18haLDX3aHRPCPUbHoq6hqvTL0TvXLkwPMUv/2LwATXRDB0sceMnpDMZaf5R1YGcQ==} + engines: {node: '>=20.0.0'} - '@aws-sdk/client-ssm@3.956.0': - resolution: {integrity: sha512-7/71g9uq0iHlu4IoqhFU2EvyXlpPpCBF86zdmuOGkTScgsa80QL03sdzebj+q7fZvh7EZSVPNe9PDGjsBxkmDg==} - engines: {node: '>=18.0.0'} + '@aws-sdk/client-sqs@3.995.0': + resolution: {integrity: sha512-vGE9tY5m+eCarVFRHo4Me/49531+Tp3qpTV8Ka4/AOwv/zWkJNG+zQhBUHHibnxepZcTkpoPRMro4wk7fCA9og==} + engines: {node: '>=20.0.0'} - '@aws-sdk/client-sso@3.956.0': - resolution: {integrity: sha512-TCxCa9B1IMILvk/7sig0fRQzff+M2zBQVZGWOJL8SAZq/gfElIMAf/nYjQwMhXjyq8PFDRGm4GN8ZhNKPeNleQ==} - engines: {node: '>=18.0.0'} + '@aws-sdk/client-ssm@3.995.0': + resolution: {integrity: sha512-QqfswXpRrJzSPnSL8z4e+0ixD36wcBgLqBWwkxaCxSHiTL5MFkhLu/zMpWw2YFMY5xXQUysEF9BhOHsl6N03iA==} + engines: {node: '>=20.0.0'} - '@aws-sdk/client-sts@3.956.0': - resolution: {integrity: sha512-m4+7h3wbNX/ujqsWhDE7j+qX7W7bQzlMm53SG18VANO2HDm3NgD4na2926Oo6ZVKWAc0UwdED5V7aJbr7X9veQ==} - engines: {node: '>=18.0.0'} + '@aws-sdk/client-sso@3.993.0': + resolution: {integrity: sha512-VLUN+wIeNX24fg12SCbzTUBnBENlL014yMKZvRhPkcn4wHR6LKgNrjsG3fZ03Xs0XoKaGtNFi1VVrq666sGBoQ==} + engines: {node: '>=20.0.0'} - '@aws-sdk/client-textract@3.956.0': - resolution: {integrity: sha512-FoluhOF9zCY/UCjrZfH796MEXtCYSVNKaoxdk669qLgsB6jNhy0uzcC+l6AZdanwYnUL1wWXb2fjFodLbjZbGw==} - engines: {node: '>=18.0.0'} + '@aws-sdk/client-sts@3.995.0': + resolution: {integrity: sha512-irF0VzMvPetJCIVgJ7lyiTyT1ERukNZLYzk+rwlOapWEODFSxqMcw/lAebPZSWxN/t7uec6cYGDyt/hlVoVpdQ==} + engines: {node: '>=20.0.0'} - '@aws-sdk/client-timestream-influxdb@3.956.0': - resolution: {integrity: sha512-O4RRu30/i/FI5Zmc7EmgwGc8xJPzfiGDEZfO8tt+F4kMkCXeohf+KqhjgwJS8OyDojkRGUzzlzv63crJMrdGDw==} - engines: {node: '>=18.0.0'} + '@aws-sdk/client-textract@3.995.0': + resolution: {integrity: sha512-IkA1r4b+6Xnfpa/qTlsmDnNTN4YF+4ySEERidE4u6c7xIi+5BGJdD7QkJLfGY95cW/INXGLh/jKZwuwYNB65bw==} + engines: {node: '>=20.0.0'} - '@aws-sdk/client-timestream-query@3.956.0': - resolution: {integrity: sha512-jGi6UJwuSBhI4XAbpcIod0i4aSIWZlTNnuKI3JZNrXHX+wjoPB/PPB/b61DXLK68fubTucwCFju0XkaTFVNIvA==} - engines: {node: '>=18.0.0'} + '@aws-sdk/client-timestream-influxdb@3.995.0': + resolution: {integrity: sha512-JI2cbqOIlcZav6yRemvhdIKIUXBm49xFVCioNTHeS/rzhnxq87gd/PX6/GLslBdc0OGuIml7Hgtyr7OzgWS27A==} + engines: {node: '>=20.0.0'} - '@aws-sdk/client-timestream-write@3.956.0': - resolution: {integrity: sha512-aahdvbFDT8POgDu00KdcSZI3kSn2kJyt2m7nfGhUDKhvLQEkifBmEreD26L5k3PVBsmGKQYvOnsGgHIDhssiuQ==} - engines: {node: '>=18.0.0'} + '@aws-sdk/client-timestream-query@3.995.0': + resolution: {integrity: sha512-esJ+i/UOFl2BksgnFBK3/LFu1h1iBcr+DAh9+XiL57nxsZqrNx8t54+InNsaotp39texm78syTuZP7Uk8PJUuA==} + engines: {node: '>=20.0.0'} - '@aws-sdk/core@3.956.0': - resolution: {integrity: sha512-BMOCXZNz5z4cR3/SaNHUfeoZQUG/y39bLscdLUgg3RL6mDOhuINIqMc0qc6G3kpwDTLVdXikF4nmx2UrRK9y5A==} - engines: {node: '>=18.0.0'} + '@aws-sdk/client-timestream-write@3.995.0': + resolution: {integrity: sha512-eJJyBNEmAkR5rWBZpofEXz8e8M6w5jgf3b7rs1vBy50jhpCgQUi9XZMErAVUv5Vejn4MAR4VTR+N0ruFpyc5bg==} + engines: {node: '>=20.0.0'} - '@aws-sdk/credential-provider-cognito-identity@3.956.0': - resolution: {integrity: sha512-sqH7k7Uvbvc5V0Y8tB8CZoCd5KEuH5g30+wbrGac9s1D+TXXN6g8KnJhyYrHfwa1rJiY7B1mK80ENjG4LlUr0g==} - engines: {node: '>=18.0.0'} + '@aws-sdk/core@3.973.11': + resolution: {integrity: sha512-wdQ8vrvHkKIV7yNUKXyjPWKCdYEUrZTHJ8Ojd5uJxXp9vqPCkUR1dpi1NtOLcrDgueJH7MUH5lQZxshjFPSbDA==} + engines: {node: '>=20.0.0'} - '@aws-sdk/credential-provider-env@3.956.0': - resolution: {integrity: sha512-aLJavJMPVTvhmggJ0pcdCKEWJk3sL9QkJkUIEoTzOou7HnxWS66N4sC5e8y27AF2nlnYfIxq3hkEiZlGi/vlfA==} - engines: {node: '>=18.0.0'} + '@aws-sdk/crc64-nvme@3.972.0': + resolution: {integrity: sha512-ThlLhTqX68jvoIVv+pryOdb5coP1cX1/MaTbB9xkGDCbWbsqQcLqzPxuSoW1DCnAAIacmXCWpzUNOB9pv+xXQw==} + engines: {node: '>=20.0.0'} - '@aws-sdk/credential-provider-http@3.956.0': - resolution: {integrity: sha512-VsKzBNhwT6XJdW3HQX6o4KOHj1MAzSwA8/zCsT9mOGecozw1yeCcQPtlWDSlfsfygKVCXz7fiJzU03yl11NKMA==} - engines: {node: '>=18.0.0'} + '@aws-sdk/credential-provider-cognito-identity@3.972.3': + resolution: {integrity: sha512-dW/DqTk90XW7hIngqntAVtJJyrkS51wcLhGz39lOMe0TlSmZl+5R/UGnAZqNbXmWuJHLzxe+MLgagxH41aTsAQ==} + engines: {node: '>=20.0.0'} - '@aws-sdk/credential-provider-ini@3.956.0': - resolution: {integrity: sha512-TlDy+IGr0JIRBwnPdV31J1kWXEcfsR3OzcNVWQrguQdHeTw2lU5eft16kdizo6OruqcZRF/LvHBDwAWx4u51ww==} - engines: {node: '>=18.0.0'} + '@aws-sdk/credential-provider-env@3.972.9': + resolution: {integrity: sha512-ZptrOwQynfupubvcngLkbdIq/aXvl/czdpEG8XJ8mN8Nb19BR0jaK0bR+tfuMU36Ez9q4xv7GGkHFqEEP2hUUQ==} + engines: {node: '>=20.0.0'} - '@aws-sdk/credential-provider-login@3.956.0': - resolution: {integrity: sha512-p2Y62mdIlUpiyi5tvn8cKTja5kq1e3Rm5gm4wpNQ9caTayfkIEXyKrbP07iepTv60Coaylq9Fx6b5En/siAeGA==} - engines: {node: '>=18.0.0'} + '@aws-sdk/credential-provider-http@3.972.11': + resolution: {integrity: sha512-hECWoOoH386bGr89NQc9vA/abkGf5TJrMREt+lhNcnSNmoBS04fK7vc3LrJBSQAUGGVj0Tz3f4dHB3w5veovig==} + engines: {node: '>=20.0.0'} - '@aws-sdk/credential-provider-node@3.956.0': - resolution: {integrity: sha512-ITjp7uAQh17ljUsCWkPRmLjyFfupGlJVUfTLHnZJ+c7G0P0PDRquaM+fBSh0y33tauHsBa5fGnCCLRo5hy9sGQ==} - engines: {node: '>=18.0.0'} + '@aws-sdk/credential-provider-ini@3.972.9': + resolution: {integrity: sha512-zr1csEu9n4eDiHMTYJabX1mDGuGLgjgUnNckIivvk43DocJC9/f6DefFrnUPZXE+GHtbW50YuXb+JIxKykU74A==} + engines: {node: '>=20.0.0'} - '@aws-sdk/credential-provider-process@3.956.0': - resolution: {integrity: sha512-wpAex+/LGVWkHPchsn9FWy1ahFualIeSYq3ADFc262ljJjrltOWGh3+cu3OK3gTMkX6VEsl+lFvy1P7Bk7cgXA==} - engines: {node: '>=18.0.0'} + '@aws-sdk/credential-provider-login@3.972.9': + resolution: {integrity: sha512-m4RIpVgZChv0vWS/HKChg1xLgZPpx8Z+ly9Fv7FwA8SOfuC6I3htcSaBz2Ch4bneRIiBUhwP4ziUo0UZgtJStQ==} + engines: {node: '>=20.0.0'} - '@aws-sdk/credential-provider-sso@3.956.0': - resolution: {integrity: sha512-IRFSDF32x8TpOEYSGMcGQVJUiYuJaFkek0aCjW0klNIZHBF1YpflVpUarK9DJe4v4ryfVq3c0bqR/JFui8QFmw==} - engines: {node: '>=18.0.0'} + '@aws-sdk/credential-provider-node@3.972.10': + resolution: {integrity: sha512-70nCESlvnzjo4LjJ8By8MYIiBogkYPSXl3WmMZfH9RZcB/Nt9qVWbFpYj6Fk1vLa4Vk8qagFVeXgxdieMxG1QA==} + engines: {node: '>=20.0.0'} - '@aws-sdk/credential-provider-web-identity@3.956.0': - resolution: {integrity: sha512-4YkmjwZC+qoUKlVOY9xNx7BTKRdJ1R1/Zjk2QSW5aWtwkk2e07ZUQvUpbW4vGpAxGm1K4EgRcowuSpOsDTh44Q==} - engines: {node: '>=18.0.0'} + '@aws-sdk/credential-provider-process@3.972.9': + resolution: {integrity: sha512-gOWl0Fe2gETj5Bk151+LYKpeGi2lBDLNu+NMNpHRlIrKHdBmVun8/AalwMK8ci4uRfG5a3/+zvZBMpuen1SZ0A==} + engines: {node: '>=20.0.0'} - '@aws-sdk/credential-providers@3.956.0': - resolution: {integrity: sha512-Fc8NWNkPZt61OIS6BRUWS+Po3z3nh3gE4w+4cZ083CdXxx4CCB82Oa0Fe2/E5l7p/z4vhEDXWwuJdiDQQXTplQ==} - engines: {node: '>=18.0.0'} + '@aws-sdk/credential-provider-sso@3.972.9': + resolution: {integrity: sha512-ey7S686foGTArvFhi3ifQXmgptKYvLSGE2250BAQceMSXZddz7sUSNERGJT2S7u5KIe/kgugxrt01hntXVln6w==} + engines: {node: '>=20.0.0'} - '@aws-sdk/dsql-signer@3.956.0': - resolution: {integrity: sha512-z5MytSBhMJLrcgnQiojdoXZ/0TD9xnnm0nmM/bJ9AsaoJLZ51/UwIf4TDKI3lB4AHYizxh9pqyInuI27cQyj6w==} - engines: {node: '>=18.0.0'} + '@aws-sdk/credential-provider-web-identity@3.972.9': + resolution: {integrity: sha512-8LnfS76nHXoEc9aRRiMMpxZxJeDG0yusdyo3NvPhCgESmBUgpMa4luhGbClW5NoX/qRcGxxM6Z/esqANSNMTow==} + engines: {node: '>=20.0.0'} - '@aws-sdk/dynamodb-codec@3.956.0': - resolution: {integrity: sha512-18+va/liQYkUVn5Wdz7h4rQQHq5QplFmQBAnkIOpZoN4ir36lrS9IeyoRbcrj8AxZRTHzl+vGc69Bq3sq9s5xg==} - engines: {node: '>=18.0.0'} - peerDependencies: - '@aws-sdk/client-dynamodb': ^3.956.0 + '@aws-sdk/credential-providers@3.995.0': + resolution: {integrity: sha512-ezDBjl3Z+IDAz6WjP6b4Vr0kfGJGmkOSOBkFZRoEpRr3uWNDJ4f9ZajRW1mfmnT6eR5HX2UF9F+9fvH/4jSJIw==} + engines: {node: '>=20.0.0'} - '@aws-sdk/endpoint-cache@3.953.0': - resolution: {integrity: sha512-pz67DoHk5WNmvMuyNDiomUS2xo0mq6Z3TdfLJZlWVbSKi3h8hYxVQchJ2kzgTr6wu6zt3UBbtKV9yY1IBhKMVA==} - engines: {node: '>=18.0.0'} + '@aws-sdk/dsql-signer@3.995.0': + resolution: {integrity: sha512-+7DOJcdTrU0kViWuVdnYaJhG4UI5AgIPVG6fMtLxeHrrJAF3ms6VKGMqb+vScw1BTRszhZ4vDgIzQhyD/LnH9Q==} + engines: {node: '>=20.0.0'} - '@aws-sdk/eventstream-handler-node@3.956.0': - resolution: {integrity: sha512-OdnzsiCyMcK9fkMI3II7+q8qu3hY5iK4coV8VjXI5u05UEbg3iosQynlkv0FXztSodPYYwnuZ0lFtIthsUy0Tw==} - engines: {node: '>=18.0.0'} + '@aws-sdk/dynamodb-codec@3.972.12': + resolution: {integrity: sha512-hX5lIhIACrmYPxW3sKoHxKJO87SPlnYBF8ztrQwm74tJEoX8eFo/iVjiEP56zkVvwOtMMqblNgmd7Jr0zZcbGA==} + engines: {node: '>=20.0.0'} - '@aws-sdk/lib-dynamodb@3.956.0': - resolution: {integrity: sha512-RA21BJsFS3tqellTGURz0oqf/xGZcK2xUow9sXl17SaC8ukYvIsUyPf8q+RcCVsXVezKG9n6yJhEsHemnNjH5Q==} - engines: {node: '>=18.0.0'} + '@aws-sdk/endpoint-cache@3.972.2': + resolution: {integrity: sha512-3L7mwqSLJ6ouZZKtCntoNF0HTYDNs1FDQqkGjoPWXcv1p0gnLotaDmLq1rIDqfu4ucOit0Re3ioLyYDUTpSroA==} + engines: {node: '>=20.0.0'} + + '@aws-sdk/eventstream-handler-node@3.972.5': + resolution: {integrity: sha512-xEmd3dnyn83K6t4AJxBJA63wpEoCD45ERFG0XMTViD2E/Ohls9TLxjOWPb1PAxR9/46cKy/TImez1GoqP6xVNQ==} + engines: {node: '>=20.0.0'} + + '@aws-sdk/lib-dynamodb@3.995.0': + resolution: {integrity: sha512-Z8MW7b8jrdP+0BMMy7ruft6/7aJFyOpS4nGMJ/0JfhppPyIpIfMead1BkJKkakB3T+p9UU9GXSQkGhkdlyASwQ==} + engines: {node: '>=20.0.0'} peerDependencies: - '@aws-sdk/client-dynamodb': ^3.956.0 + '@aws-sdk/client-dynamodb': ^3.995.0 - '@aws-sdk/middleware-bucket-endpoint@3.956.0': - resolution: {integrity: sha512-+iHH9cnkNZgKkTBnPP9rbapHliKDrOuj7MDz6+wL0NV4N/XGB5tbrd+uDP608FXVeMHcWIIZtWkANADUmAI49w==} - engines: {node: '>=18.0.0'} + '@aws-sdk/middleware-bucket-endpoint@3.972.3': + resolution: {integrity: sha512-fmbgWYirF67YF1GfD7cg5N6HHQ96EyRNx/rDIrTF277/zTWVuPI2qS/ZHgofwR1NZPe/NWvoppflQY01LrbVLg==} + engines: {node: '>=20.0.0'} - '@aws-sdk/middleware-endpoint-discovery@3.956.0': - resolution: {integrity: sha512-p8oOhksZg3qxluKBM6J5F9Tv4cqzkjYYQO3iU3BENT3NXGvoHuaBbj6G/hXsKl1/jfGNUyIOpO+59r1L4zNqOg==} - engines: {node: '>=18.0.0'} + '@aws-sdk/middleware-endpoint-discovery@3.972.3': + resolution: {integrity: sha512-xAxA8/TOygQmMrzcw9CrlpTHCGWSG/lvzrHCySfSZpDN4/yVSfXO+gUwW9WxeskBmuv9IIFATOVpzc9EzfTZ0Q==} + engines: {node: '>=20.0.0'} - '@aws-sdk/middleware-eventstream@3.956.0': - resolution: {integrity: sha512-xBhNmBCJxB4ho7ATmhniv3PK3qN5ZEgknUI+7XTM/cnQBzuYG5twAQSkGdInzEjygTSTmKpkdBVh67AxKTotAQ==} - engines: {node: '>=18.0.0'} + '@aws-sdk/middleware-eventstream@3.972.3': + resolution: {integrity: sha512-pbvZ6Ye/Ks6BAZPa3RhsNjHrvxU9li25PMhSdDpbX0jzdpKpAkIR65gXSNKmA/REnSdEMWSD4vKUW+5eMFzB6w==} + engines: {node: '>=20.0.0'} - '@aws-sdk/middleware-expect-continue@3.956.0': - resolution: {integrity: sha512-97rmalK9x09Darcl6AbShZRXYxWiyCeO8ll1C9rx1xyZMs2DeIKAZ/xuAJ/bywB3l25ls6VqXO4/EuDFJHL8eA==} - engines: {node: '>=18.0.0'} + '@aws-sdk/middleware-expect-continue@3.972.3': + resolution: {integrity: sha512-4msC33RZsXQpUKR5QR4HnvBSNCPLGHmB55oDiROqqgyOc+TOfVu2xgi5goA7ms6MdZLeEh2905UfWMnMMF4mRg==} + engines: {node: '>=20.0.0'} - '@aws-sdk/middleware-flexible-checksums@3.956.0': - resolution: {integrity: sha512-Rd/VeVKuw+lQ1oJmJOyXV0flIkp9ouMGAS9QT28ogdQVxXriaheNo754N4z0+8+R6uTcmeojN7dN4jzt51WV2g==} - engines: {node: '>=18.0.0'} + '@aws-sdk/middleware-flexible-checksums@3.972.9': + resolution: {integrity: sha512-E663+r/UQpvF3aJkD40p5ZANVQFsUcbE39jifMtN7wc0t1M0+2gJJp3i75R49aY9OiSX5lfVyPUNjN/BNRCCZA==} + engines: {node: '>=20.0.0'} - '@aws-sdk/middleware-host-header@3.956.0': - resolution: {integrity: sha512-JujNJDp/dj1DbsI0ntzhrz2uJ4jpumcKtr743eMpEhdboYjuu/UzY8/7n1h5JbgU9TNXgqE9lgQNa5QPG0Tvsg==} - engines: {node: '>=18.0.0'} + '@aws-sdk/middleware-host-header@3.972.3': + resolution: {integrity: sha512-aknPTb2M+G3s+0qLCx4Li/qGZH8IIYjugHMv15JTYMe6mgZO8VBpYgeGYsNMGCqCZOcWzuf900jFBG5bopfzmA==} + engines: {node: '>=20.0.0'} - '@aws-sdk/middleware-location-constraint@3.956.0': - resolution: {integrity: sha512-eANhYRFcVO/lI9tliitSW0DK5H1d9J7BK/9RrRz86bd5zPWteVqqzQRbMUdErVi1nwSbSIAa6YGv/ItYPswe0w==} - engines: {node: '>=18.0.0'} + '@aws-sdk/middleware-location-constraint@3.972.3': + resolution: {integrity: sha512-nIg64CVrsXp67vbK0U1/Is8rik3huS3QkRHn2DRDx4NldrEFMgdkZGI/+cZMKD9k4YOS110Dfu21KZLHrFA/1g==} + engines: {node: '>=20.0.0'} - '@aws-sdk/middleware-logger@3.956.0': - resolution: {integrity: sha512-Qff39yEOPYgRsm4SrkHOvS0nSoxXILYnC8Akp0uMRi2lOcZVyXL3WCWqIOtI830qVI4GPa796sleKguxx50RHg==} - engines: {node: '>=18.0.0'} + '@aws-sdk/middleware-logger@3.972.3': + resolution: {integrity: sha512-Ftg09xNNRqaz9QNzlfdQWfpqMCJbsQdnZVJP55jfhbKi1+FTWxGuvfPoBhDHIovqWKjqbuiew3HuhxbJ0+OjgA==} + engines: {node: '>=20.0.0'} - '@aws-sdk/middleware-recursion-detection@3.956.0': - resolution: {integrity: sha512-/f4JxL2kSCYhy63wovqts6SJkpalSLvuFe78ozt3ClrGoHGyr69o7tPRYx5U7azLgvrIGjsWUyTayeAk3YHIVQ==} - engines: {node: '>=18.0.0'} + '@aws-sdk/middleware-recursion-detection@3.972.3': + resolution: {integrity: sha512-PY57QhzNuXHnwbJgbWYTrqIDHYSeOlhfYERTAuc16LKZpTZRJUjzBFokp9hF7u1fuGeE3D70ERXzdbMBOqQz7Q==} + engines: {node: '>=20.0.0'} - '@aws-sdk/middleware-sdk-api-gateway@3.956.0': - resolution: {integrity: sha512-gFsWnhrM8Kcbqs8vcxqzLbUJ87Ic2hu6PZVvODk98qOxPQpPsi019t4iS+9xArqhaP2B8xI2i5q1yVZvK288/g==} - engines: {node: '>=18.0.0'} + '@aws-sdk/middleware-sdk-api-gateway@3.972.3': + resolution: {integrity: sha512-MGYqM2kWuK0i8QE09eS32CJarJxlhEOm2j8DuIoDo5rrhaH9vhnAO6gJa+tNWHEmBgLbRQZr9XpjZ6VNPZjgBQ==} + engines: {node: '>=20.0.0'} - '@aws-sdk/middleware-sdk-ec2@3.956.0': - resolution: {integrity: sha512-+4QG1t1iWUrVbqZLLICuUWa8kRX8IRyH1JMy52iRoroEQ10O1zKVyi6+q4X1D07OqjhLJyyFlctok7nmxbBGng==} - engines: {node: '>=18.0.0'} + '@aws-sdk/middleware-sdk-ec2@3.972.8': + resolution: {integrity: sha512-wedzfuOKyQTj6iYM2Q3Vqop5ZLFriGzMHXM755gTcF/kZJlJ7OaTlNah70v1SdPBCXzZdT0oGRrXZNOJfe7EMA==} + engines: {node: '>=20.0.0'} - '@aws-sdk/middleware-sdk-rds@3.956.0': - resolution: {integrity: sha512-8T/a3/uWqmmSPnN/F+bOJhj3RE5azgXiYdCXxtQwS6IMKmfBRFaQo9qTFN8nSS586VQmqwaKsQlxYH6d0nxAUA==} - engines: {node: '>=18.0.0'} + '@aws-sdk/middleware-sdk-rds@3.972.8': + resolution: {integrity: sha512-QX90KpLOepMRHp3QyvoG2eJ4ozPSly3PMmetZi7jkMHoQXxB0oyqxC8d/yKjiQ6RqVM3lceZdJxNKQK8vsh9jg==} + engines: {node: '>=20.0.0'} - '@aws-sdk/middleware-sdk-s3@3.956.0': - resolution: {integrity: sha512-U/+jYb4iowqqpLjB6cSYan0goAMOlh2xg2CPIdSy550o8mYnJtuajBUQ20A9AA9PYKLlEAoCNEysNZkn4o/63g==} - engines: {node: '>=18.0.0'} + '@aws-sdk/middleware-sdk-s3@3.972.11': + resolution: {integrity: sha512-Qr0T7ZQTRMOuR6ahxEoJR1thPVovfWrKB2a6KBGR+a8/ELrFodrgHwhq50n+5VMaGuLtGhHiISU3XGsZmtmVXQ==} + engines: {node: '>=20.0.0'} - '@aws-sdk/middleware-sdk-sqs@3.956.0': - resolution: {integrity: sha512-VKPGZ3mQrrE54RyD+KRfVHKbeYvPHVKhDYgUb297ET/eKp/HYOjWBtPZGelgL3Lu1kkot+jLsTzaqGvKZv2epQ==} - engines: {node: '>=18.0.0'} + '@aws-sdk/middleware-sdk-sqs@3.972.8': + resolution: {integrity: sha512-KhwktzM8+EPoOkh+92WO2Fq6Ibk9GXr9eEh0nBOd/ZO83z7i8a7BF+mTNN6k8+eKAhLerbMWRT196u5JhKe0QA==} + engines: {node: '>=20.0.0'} - '@aws-sdk/middleware-ssec@3.956.0': - resolution: {integrity: sha512-1Et0vPoIzfhkUAdNRzu0pC25ZawFqXo5T8xpvbwkfDgfIkeVj+sm9t01iXO3pCOK52OSuLRAy7fiAo/AoHjOYg==} - engines: {node: '>=18.0.0'} + '@aws-sdk/middleware-ssec@3.972.3': + resolution: {integrity: sha512-dU6kDuULN3o3jEHcjm0c4zWJlY1zWVkjG9NPe9qxYLLpcbdj5kRYBS2DdWYD+1B9f910DezRuws7xDEqKkHQIg==} + engines: {node: '>=20.0.0'} - '@aws-sdk/middleware-user-agent@3.956.0': - resolution: {integrity: sha512-azH8OJ0AIe3NafaTNvJorG/ALaLNTYwVKtyaSeQKOvaL8TNuBVuDnM5iHCiWryIaRgZotomqycwyfNKLw2D3JQ==} - engines: {node: '>=18.0.0'} + '@aws-sdk/middleware-user-agent@3.972.11': + resolution: {integrity: sha512-R8CvPsPHXwzIHCAza+bllY6PrctEk4lYq/SkHJz9NLoBHCcKQrbOcsfXxO6xmipSbUNIbNIUhH0lBsJGgsRdiw==} + engines: {node: '>=20.0.0'} - '@aws-sdk/middleware-websocket@3.956.0': - resolution: {integrity: sha512-yH8D1z5stLDPZPXoDsgzyMIwziMUj6v5riHARJ4cECJBtdREJwDmp56c+iCzkhvtWKqeL/viAlj4Kwe2fAmTxw==} + '@aws-sdk/middleware-websocket@3.972.6': + resolution: {integrity: sha512-1DedO6N3m8zQ/vG6twNiHtsdwBgk773VdavLEbB3NXeKZDlzSK1BTviqWwvJdKx5UnIy4kGGP6WWpCEFEt/bhQ==} engines: {node: '>= 14.0.0'} - '@aws-sdk/nested-clients@3.956.0': - resolution: {integrity: sha512-GHDQMkxoWpi3eTrhWGmghw0gsZJ5rM1ERHfBFhlhduCdtV3TyhKVmDgFG84KhU8v18dcVpSp3Pu3KwH7j1tgIg==} - engines: {node: '>=18.0.0'} + '@aws-sdk/nested-clients@3.993.0': + resolution: {integrity: sha512-iOq86f2H67924kQUIPOAvlmMaOAvOLoDOIb66I2YqSUpMYB6ufiuJW3RlREgskxv86S5qKzMnfy/X6CqMjK6XQ==} + engines: {node: '>=20.0.0'} - '@aws-sdk/region-config-resolver@3.956.0': - resolution: {integrity: sha512-byU5XYekW7+rZ3e067y038wlrpnPkdI4fMxcHCHrv+TAfzl8CCk5xLyzerQtXZR8cVPVOXuaYWe1zKW0uCnXUA==} - engines: {node: '>=18.0.0'} + '@aws-sdk/nested-clients@3.995.0': + resolution: {integrity: sha512-7gq9gismVhESiRsSt0eYe1y1b6jS20LqLk+e/YSyPmGi9yHdndHQLIq73RbEJnK/QPpkQGFqq70M1mI46M1HGw==} + engines: {node: '>=20.0.0'} - '@aws-sdk/s3-request-presigner@3.956.0': - resolution: {integrity: sha512-LoqSwHIIYobnly7E6+8ASwlGT1qAAnBzW1xPUlA4gD9ePiV9L9TXwxRwW3WXeaLLQrR3+bi2nXiDxYEiiTsrow==} - engines: {node: '>=18.0.0'} + '@aws-sdk/region-config-resolver@3.972.3': + resolution: {integrity: sha512-v4J8qYAWfOMcZ4MJUyatntOicTzEMaU7j3OpkRCGGFSL2NgXQ5VbxauIyORA+pxdKZ0qQG2tCQjQjZDlXEC3Ow==} + engines: {node: '>=20.0.0'} - '@aws-sdk/signature-v4-multi-region@3.956.0': - resolution: {integrity: sha512-gejlXPmor08VydGC8bx0Bv4/tPT92eK0WLe2pUPR0AaMXL+5ycDpThAi1vLWjWr0aUjCA7lXx0pMENWlJlYK3A==} - engines: {node: '>=18.0.0'} + '@aws-sdk/s3-request-presigner@3.995.0': + resolution: {integrity: sha512-+eJYJcB6XkViGbSAoWl7sQx3izt2y64Oy6SWec/HY2a6ibd5RtUJbEIkvoS2RUu7drm4yu2WyLgSNMQg/7nt0g==} + engines: {node: '>=20.0.0'} - '@aws-sdk/token-providers@3.956.0': - resolution: {integrity: sha512-I01Q9yDeG9oXge14u/bubtSdBpok/rTsPp2AQwy5xj/5PatRTHPbUTP6tef3AH/lFCAqkI0nncIcgx6zikDdUQ==} - engines: {node: '>=18.0.0'} + '@aws-sdk/signature-v4-multi-region@3.995.0': + resolution: {integrity: sha512-9Qx5JcAucnxnomREPb2D6L8K8GLG0rknt3+VK/BU3qTUynAcV4W21DQ04Z2RKDw+DYpW88lsZpXbVetWST2WUg==} + engines: {node: '>=20.0.0'} - '@aws-sdk/types@3.956.0': - resolution: {integrity: sha512-DMRU/p9wAlAJxEjegnLwduCA8YP2pcT/sIJ+17KSF38c5cC6CbBhykwbZLECTo+zYzoFrOqeLbqE6paH8Gx3ug==} - engines: {node: '>=18.0.0'} + '@aws-sdk/token-providers@3.993.0': + resolution: {integrity: sha512-+35g4c+8r7sB9Sjp1KPdM8qxGn6B/shBjJtEUN4e+Edw9UEQlZKIzioOGu3UAbyE0a/s450LdLZr4wbJChtmww==} + engines: {node: '>=20.0.0'} - '@aws-sdk/util-arn-parser@3.953.0': - resolution: {integrity: sha512-9hqdKkn4OvYzzaLryq2xnwcrPc8ziY34i9szUdgBfSqEC6pBxbY9/lLXmrgzfwMSL2Z7/v2go4Od0p5eukKLMQ==} - engines: {node: '>=18.0.0'} + '@aws-sdk/token-providers@3.995.0': + resolution: {integrity: sha512-lYSadNdZZ513qCKoj/KlJ+PgCycL3n8ZNS37qLVFC0t7TbHzoxvGquu9aD2n9OCERAn43OMhQ7dXjYDYdjAXzA==} + engines: {node: '>=20.0.0'} - '@aws-sdk/util-dynamodb@3.956.0': - resolution: {integrity: sha512-RZrYUZ9zacb7t2+CeD+/UkVriIQ3N4MyQi+f/KPEbqZ1mYg1yXo/kFvUL4Qdi28qve/pG3J3R1tx9eb6nMW1uQ==} - engines: {node: '>=18.0.0'} + '@aws-sdk/types@3.973.1': + resolution: {integrity: sha512-DwHBiMNOB468JiX6+i34c+THsKHErYUdNQ3HexeXZvVn4zouLjgaS4FejiGSi2HyBuzuyHg7SuOPmjSvoU9NRg==} + engines: {node: '>=20.0.0'} + + '@aws-sdk/util-arn-parser@3.972.2': + resolution: {integrity: sha512-VkykWbqMjlSgBFDyrY3nOSqupMc6ivXuGmvci6Q3NnLq5kC+mKQe2QBZ4nrWRE/jqOxeFP2uYzLtwncYYcvQDg==} + engines: {node: '>=20.0.0'} + + '@aws-sdk/util-dynamodb@3.995.0': + resolution: {integrity: sha512-ErHBnAaxlPAn/TCBY8+Alr/IF9E3tFeK6NCY1GdRUl6Lz2PFZnZeoh7GrLZZn0jvlX4OirXlhwAds6mqp+NKoA==} + engines: {node: '>=20.0.0'} peerDependencies: - '@aws-sdk/client-dynamodb': ^3.956.0 + '@aws-sdk/client-dynamodb': ^3.995.0 - '@aws-sdk/util-endpoints@3.956.0': - resolution: {integrity: sha512-xZ5CBoubS4rs9JkFniKNShDtfqxaMUnwaebYMoybZm070q9+omFkQkJYXl7kopTViEgZgQl1sAsAkrawBM8qEQ==} - engines: {node: '>=18.0.0'} + '@aws-sdk/util-endpoints@3.980.0': + resolution: {integrity: sha512-AjKBNEc+rjOZQE1HwcD9aCELqg1GmUj1rtICKuY8cgwB73xJ4U/kNyqKKpN2k9emGqlfDY2D8itIp/vDc6OKpw==} + engines: {node: '>=20.0.0'} - '@aws-sdk/util-format-url@3.956.0': - resolution: {integrity: sha512-Piap0XvvmZMtCjeCStuAG/Meq7/U5SR3X+ZDduRYMKlkNtkLcc98e9Sih5AThIJLUdffRS/M+gQRiWvc1sm1ww==} - engines: {node: '>=18.0.0'} + '@aws-sdk/util-endpoints@3.993.0': + resolution: {integrity: sha512-j6vioBeRZ4eHX4SWGvGPpwGg/xSOcK7f1GL0VM+rdf3ZFTIsUEhCFmD78B+5r2PgztcECSzEfvHQX01k8dPQPw==} + engines: {node: '>=20.0.0'} - '@aws-sdk/util-locate-window@3.953.0': - resolution: {integrity: sha512-mPxK+I1LcrgC/RSa3G5AMAn8eN2Ay0VOgw8lSRmV1jCtO+iYvNeCqOdxoJUjOW6I5BA4niIRWqVORuRP07776Q==} - engines: {node: '>=18.0.0'} + '@aws-sdk/util-endpoints@3.995.0': + resolution: {integrity: sha512-aym/pjB8SLbo9w2nmkrDdAAVKVlf7CM71B9mKhjDbJTzwpSFBPHqJIMdDyj0mLumKC0aIVDr1H6U+59m9GvMFw==} + engines: {node: '>=20.0.0'} - '@aws-sdk/util-user-agent-browser@3.956.0': - resolution: {integrity: sha512-s8KwYR3HqiGNni7a1DN2P3RUog64QoBQ6VCSzJkHBWb6++8KSOpqeeDkfmEz+22y1LOne+bRrpDGKa0aqOc3rQ==} + '@aws-sdk/util-format-url@3.972.3': + resolution: {integrity: sha512-n7F2ycckcKFXa01vAsT/SJdjFHfKH9s96QHcs5gn8AaaigASICeME8WdUL9uBp8XV/OVwEt8+6gzn6KFUgQa8g==} + engines: {node: '>=20.0.0'} - '@aws-sdk/util-user-agent-node@3.956.0': - resolution: {integrity: sha512-H0r6ol3Rr63/3xvrUsLqHps+cA7VkM7uCU5NtuTHnMbv3uYYTKf9M2XFHAdVewmmRgssTzvqemrARc8Ji3SNvg==} - engines: {node: '>=18.0.0'} + '@aws-sdk/util-locate-window@3.965.4': + resolution: {integrity: sha512-H1onv5SkgPBK2P6JR2MjGgbOnttoNzSPIRoeZTNPZYyaplwGg50zS3amXvXqF0/qfXpWEC9rLWU564QTB9bSog==} + engines: {node: '>=20.0.0'} + + '@aws-sdk/util-user-agent-browser@3.972.3': + resolution: {integrity: sha512-JurOwkRUcXD/5MTDBcqdyQ9eVedtAsZgw5rBwktsPTN7QtPiS2Ld1jkJepNgYoCufz1Wcut9iup7GJDoIHp8Fw==} + + '@aws-sdk/util-user-agent-node@3.972.10': + resolution: {integrity: sha512-LVXzICPlsheET+sE6tkcS47Q5HkSTrANIlqL1iFxGAY/wRQ236DX/PCAK56qMh9QJoXAfXfoRW0B0Og4R+X7Nw==} + engines: {node: '>=20.0.0'} peerDependencies: aws-crt: '>=1.0.0' peerDependenciesMeta: aws-crt: optional: true - '@aws-sdk/xml-builder@3.956.0': - resolution: {integrity: sha512-x/IvXUeQYNUEQojpRIQpFt4X7XGxqzjUlXFRdwaTCtTz3q1droXVJvYOhnX3KiMgzeHGlBJfY4Nmq3oZNEUGFw==} - engines: {node: '>=18.0.0'} + '@aws-sdk/xml-builder@3.972.5': + resolution: {integrity: sha512-mCae5Ys6Qm1LDu0qdGwx2UQ63ONUe+FHw908fJzLDqFKTDBK4LDZUqKWm4OkTCNFq19bftjsBSESIGLD/s3/rA==} + engines: {node: '>=20.0.0'} - '@aws/lambda-invoke-store@0.2.2': - resolution: {integrity: sha512-C0NBLsIqzDIae8HFw9YIrIBsbc0xTiOtt7fAukGPnqQ/+zZNaq+4jhuccltK0QuWHBnNm/a6kLIRA6GFiM10eg==} + '@aws/lambda-invoke-store@0.2.3': + resolution: {integrity: sha512-oLvsaPMTBejkkmHhjf09xTgk71mOqyr/409NKhRIL08If7AhVfUsJhVsx386uJaqNd42v9kWamQ9lFbkoC2dYw==} engines: {node: '>=18.0.0'} '@babel/code-frame@7.26.2': @@ -2257,23 +2247,6 @@ packages: engines: {node: '>=16.17.1'} hasBin: true - '@effect/cli@0.63.8': - resolution: {integrity: sha512-RpQzqKPpEaTExjlnsGW5r0oSWwQiDKg2mfjU0EseCbr0yNgL1XgJPMAFCkuy7T3xK2tv827o8RBOGNGIEx6LFg==} - peerDependencies: - '@effect/platform': ^0.84.8 - '@effect/printer': ^0.44.4 - '@effect/printer-ansi': ^0.44.4 - effect: ^3.16.4 - - '@effect/cluster@0.38.7': - resolution: {integrity: sha512-eN3wOys9SVPqowAPGkNGQnH1uyYMcPRVTyFn3QxNL/PYkluWkF0BmQhuzzteSx5O6lLsLMwSykLA1zh8JGLdBw==} - peerDependencies: - '@effect/platform': ^0.84.8 - '@effect/rpc': ^0.61.8 - '@effect/sql': ^0.37.9 - '@effect/workflow': ^0.1.5 - effect: ^3.16.4 - '@effect/docgen@0.5.2': resolution: {integrity: sha512-gqBxAhp58R18vT5+ORobWRQ/2MaF5vH0k1zggSct54J41k8TKF5mYIW1qG5tkOVCejet+8K5MKsWK3gzIkaoMw==} engines: {node: '>=18.0.0'} @@ -2285,19 +2258,6 @@ packages: '@effect/eslint-plugin@0.3.2': resolution: {integrity: sha512-c4Vs9t3r54A4Zpl+wo8+PGzZz3JWYsip41H+UrebRLjQ2Hk/ap63IeCgN/HWcYtxtyhRopjp7gW9nOQ2Snbl+g==} - '@effect/experimental@0.48.9': - resolution: {integrity: sha512-YBK5vxMk51wKkmP/4SgyHV/y8pd76wg79kV3lDie6T9Vz5sI4vJmEuYuf8zzUQU0uPeBp/Sq94RBgjaykV97FA==} - peerDependencies: - '@effect/platform': ^0.84.8 - effect: ^3.16.4 - ioredis: ^5 - lmdb: ^3 - peerDependenciesMeta: - ioredis: - optional: true - lmdb: - optional: true - '@effect/language-service@0.19.0': resolution: {integrity: sha512-DAnV0q0EPZtB6+opqMb1BsAkQ/7AoQj/Q84rUijM8dY2bevuI870DtZYn9kpB19Q3VN8yhPE9Kgtnpocj8ysTA==} @@ -2306,78 +2266,25 @@ packages: engines: {node: '>=0.10.0'} hasBin: true - '@effect/platform-node-shared@0.39.7': - resolution: {integrity: sha512-SI/EmvYyW7owf8uS7c/qBp+6W7B/I1auXGKvoGYBJz3CIzQz4/77aZd/Ud7BozQNCQH58b+aimH0PC/3+uUTKA==} - peerDependencies: - '@effect/cluster': ^0.38.7 - '@effect/platform': ^0.84.8 - '@effect/rpc': ^0.61.8 - '@effect/sql': ^0.37.9 - effect: ^3.16.4 - '@effect/platform-node-shared@4.0.0-beta.8': resolution: {integrity: sha512-OK5E2FURY244KxIG2itHIvV58GvJvR+jiSXt/DiG9m4SmsVUXCVaLmKpYQWo0e27U3s73+0s3gX+1PEzBBVVbA==} engines: {node: '>=18.0.0'} peerDependencies: effect: ^4.0.0-beta.8 - '@effect/platform-node@0.85.7': - resolution: {integrity: sha512-dTiPVSNCfGBn/u+yBD/0MdvorV+Oj5jlBW4RL9BYDBMKpslcC1T3RaVvW8D6mtPBPUrdgSCfMazPCGU43hO3OA==} - peerDependencies: - '@effect/cluster': ^0.38.7 - '@effect/platform': ^0.84.8 - '@effect/rpc': ^0.61.8 - '@effect/sql': ^0.37.9 - effect: ^3.16.4 - - '@effect/platform@0.84.8': - resolution: {integrity: sha512-tH4e4FbOtGIzEAD0JFkW6I2ytXTFKG6Zr+iL3Cq2gXbrhhIwZuu8lmFMddrWwsQS83yKs0gToM/IGxhzkBNTOQ==} - peerDependencies: - effect: ^3.16.4 - - '@effect/printer-ansi@0.44.4': - resolution: {integrity: sha512-W5HjYZtaX4ypCkqh+N5pQttb4n2a9KCiM8JMwHYqFcGq/eBC7uiKrUqvv4p52fA+NBbCSCaC6rrN533ifowv3Q==} - peerDependencies: - '@effect/typeclass': ^0.35.4 - effect: ^3.16.4 - - '@effect/printer@0.44.4': - resolution: {integrity: sha512-5CKmYxEM0Ogx64BvhFkrBMpP7Ys5us4klvhSSWhEuTGb5Tx/yiXxiTbesLi6rcCrMjGGTkNYGZRAtWBYSqV5SA==} - peerDependencies: - '@effect/typeclass': ^0.35.4 - effect: ^3.16.4 - - '@effect/rpc@0.61.8': - resolution: {integrity: sha512-OgRiPJY7LCqF1XenkHWRC/iC9o+ZduL0pamNtpXHcAh+1TdSQVYNrpF20dKj+BjM0/FvA3UE9ncU3UhJCNVfyA==} - peerDependencies: - '@effect/platform': ^0.84.8 - effect: ^3.16.4 - - '@effect/sql@0.37.9': - resolution: {integrity: sha512-wI7MCyji9RoZ4Pgwa75644qtJ6wWYEknv7lxBdSdLWVmj5T5G+PgA9y3zp5aakqsvo0oRDVxWWSg8xovesfcBA==} - peerDependencies: - '@effect/experimental': ^0.48.9 - '@effect/platform': ^0.84.8 - effect: ^3.16.4 - - '@effect/typeclass@0.35.4': - resolution: {integrity: sha512-z6vKpU3RxG7Hehh9VhWnBrDBP4trp/OoVHYZRJ3VaxfhsxXg2/zAFft3+qJKMsHVhNS41I+BkWiVcOHbsugXzg==} + '@effect/platform-node@4.0.0-beta.8': + resolution: {integrity: sha512-nnyUQQoZVkSP4ZQxMtNPKj/Ia5XqpUVIfCmCojnRuPo/COqJhA/EjP44UfYJZaL0Q5tDILDAE46NGO+kWuaU6g==} + engines: {node: '>=18.0.0'} peerDependencies: - effect: ^3.16.4 + effect: ^4.0.0-beta.8 + ioredis: ^5.7.0 - '@effect/vitest@0.23.4': - resolution: {integrity: sha512-5JxTBv44EEJ1HeRKGt9kEslsRsc3jIYHLQqvKfkBQru6vfUdp+oi8fc9YGttTw71W8nZh8hiKWqNsLg+BVFiuA==} + '@effect/vitest@4.0.0-beta.8': + resolution: {integrity: sha512-CnwGyFhEOaGWhEfTLtUSC8Yq1losYk+V6Aepc18um8NkOHnbr5fLClE+XqNFPO1DN6Ehs6Kv/ms3Di2kw9/9Kg==} peerDependencies: - effect: ^3.16.4 + effect: ^4.0.0-beta.8 vitest: ^3.0.0 - '@effect/workflow@0.1.5': - resolution: {integrity: sha512-ezZyhzAafgihlCthOSHOHcROfkZU09uCPSrXeXIyNr0NwcPjK3D/z6KIQZCTmzv7FhSPcm1QSMFTPUtUG+9/vQ==} - peerDependencies: - '@effect/platform': ^0.84.8 - '@effect/rpc': ^0.61.8 - effect: ^3.16.4 - '@esbuild/aix-ppc64@0.21.5': resolution: {integrity: sha512-1SDgH6ZSPTlggy1yI6+Dbkiz8xzpHJEVAlF/AM1tHPLsf5STom9rwtjE4hKAF20FfXXNTFqEYXyJNWh1GiZedQ==} engines: {node: '>=12'} @@ -2765,6 +2672,9 @@ packages: '@iconify/utils@2.3.0': resolution: {integrity: sha512-GmQ78prtwYW6EtzXRU1rY+KwOKfz32PD7iJh6Iyqw68GiKuoZ2A6pRtzWONz5VQJbp50mEjXh/7NkumtrAgRKA==} + '@ioredis/commands@1.5.0': + resolution: {integrity: sha512-eUgLqrMf8nJkZxT24JvVRrQya1vZkQh8BBeYNwGDqa5I0VUi8ACx7uFvAaLxintokpTenkK6DASvo/bvNbBGow==} + '@isaacs/cliui@8.0.2': resolution: {integrity: sha512-O8jcjabXaleOG9DQ0+ARXWZBTfnP4WNAqzuiJK7ll44AmxGKv/J2M4TPjxjY3znBCfvBXFzucm1twdyFybFqEA==} engines: {node: '>=12'} @@ -2858,92 +2768,6 @@ packages: resolution: {integrity: sha512-nn5ozdjYQpUCZlWGuxcJY/KpxkWQs4DcbMCmKojjyrYDEAGy4Ce19NN4v5MduafTwJlbKc99UA8YhSVqq9yPZA==} engines: {node: '>=12.4.0'} - '@opentelemetry/semantic-conventions@1.38.0': - resolution: {integrity: sha512-kocjix+/sSggfJhwXqClZ3i9Y/MI0fp7b+g7kCRm6psy2dsf8uApTRclwG18h8Avm7C9+fnt+O36PspJ/OzoWg==} - engines: {node: '>=14'} - - '@parcel/watcher-android-arm64@2.5.1': - resolution: {integrity: sha512-KF8+j9nNbUN8vzOFDpRMsaKBHZ/mcjEjMToVMJOhTozkDonQFFrRcfdLWn6yWKCmJKmdVxSgHiYvTCef4/qcBA==} - engines: {node: '>= 10.0.0'} - cpu: [arm64] - os: [android] - - '@parcel/watcher-darwin-arm64@2.5.1': - resolution: {integrity: sha512-eAzPv5osDmZyBhou8PoF4i6RQXAfeKL9tjb3QzYuccXFMQU0ruIc/POh30ePnaOyD1UXdlKguHBmsTs53tVoPw==} - engines: {node: '>= 10.0.0'} - cpu: [arm64] - os: [darwin] - - '@parcel/watcher-darwin-x64@2.5.1': - resolution: {integrity: sha512-1ZXDthrnNmwv10A0/3AJNZ9JGlzrF82i3gNQcWOzd7nJ8aj+ILyW1MTxVk35Db0u91oD5Nlk9MBiujMlwmeXZg==} - engines: {node: '>= 10.0.0'} - cpu: [x64] - os: [darwin] - - '@parcel/watcher-freebsd-x64@2.5.1': - resolution: {integrity: sha512-SI4eljM7Flp9yPuKi8W0ird8TI/JK6CSxju3NojVI6BjHsTyK7zxA9urjVjEKJ5MBYC+bLmMcbAWlZ+rFkLpJQ==} - engines: {node: '>= 10.0.0'} - cpu: [x64] - os: [freebsd] - - '@parcel/watcher-linux-arm-glibc@2.5.1': - resolution: {integrity: sha512-RCdZlEyTs8geyBkkcnPWvtXLY44BCeZKmGYRtSgtwwnHR4dxfHRG3gR99XdMEdQ7KeiDdasJwwvNSF5jKtDwdA==} - engines: {node: '>= 10.0.0'} - cpu: [arm] - os: [linux] - - '@parcel/watcher-linux-arm-musl@2.5.1': - resolution: {integrity: sha512-6E+m/Mm1t1yhB8X412stiKFG3XykmgdIOqhjWj+VL8oHkKABfu/gjFj8DvLrYVHSBNC+/u5PeNrujiSQ1zwd1Q==} - engines: {node: '>= 10.0.0'} - cpu: [arm] - os: [linux] - - '@parcel/watcher-linux-arm64-glibc@2.5.1': - resolution: {integrity: sha512-LrGp+f02yU3BN9A+DGuY3v3bmnFUggAITBGriZHUREfNEzZh/GO06FF5u2kx8x+GBEUYfyTGamol4j3m9ANe8w==} - engines: {node: '>= 10.0.0'} - cpu: [arm64] - os: [linux] - - '@parcel/watcher-linux-arm64-musl@2.5.1': - resolution: {integrity: sha512-cFOjABi92pMYRXS7AcQv9/M1YuKRw8SZniCDw0ssQb/noPkRzA+HBDkwmyOJYp5wXcsTrhxO0zq1U11cK9jsFg==} - engines: {node: '>= 10.0.0'} - cpu: [arm64] - os: [linux] - - '@parcel/watcher-linux-x64-glibc@2.5.1': - resolution: {integrity: sha512-GcESn8NZySmfwlTsIur+49yDqSny2IhPeZfXunQi48DMugKeZ7uy1FX83pO0X22sHntJ4Ub+9k34XQCX+oHt2A==} - engines: {node: '>= 10.0.0'} - cpu: [x64] - os: [linux] - - '@parcel/watcher-linux-x64-musl@2.5.1': - resolution: {integrity: sha512-n0E2EQbatQ3bXhcH2D1XIAANAcTZkQICBPVaxMeaCVBtOpBZpWJuf7LwyWPSBDITb7In8mqQgJ7gH8CILCURXg==} - engines: {node: '>= 10.0.0'} - cpu: [x64] - os: [linux] - - '@parcel/watcher-win32-arm64@2.5.1': - resolution: {integrity: sha512-RFzklRvmc3PkjKjry3hLF9wD7ppR4AKcWNzH7kXR7GUe0Igb3Nz8fyPwtZCSquGrhU5HhUNDr/mKBqj7tqA2Vw==} - engines: {node: '>= 10.0.0'} - cpu: [arm64] - os: [win32] - - '@parcel/watcher-win32-ia32@2.5.1': - resolution: {integrity: sha512-c2KkcVN+NJmuA7CGlaGD1qJh1cLfDnQsHjE89E60vUEMlqduHGCdCLJCID5geFVM0dOtA3ZiIO8BoEQmzQVfpQ==} - engines: {node: '>= 10.0.0'} - cpu: [ia32] - os: [win32] - - '@parcel/watcher-win32-x64@2.5.1': - resolution: {integrity: sha512-9lHBdJITeNR++EvSQVUcaZoWupyHfXe1jZvGZ06O/5MflPcuPLtEphScIBL+AiCWBO46tDSHzWyD0uDmmZqsgA==} - engines: {node: '>= 10.0.0'} - cpu: [x64] - os: [win32] - - '@parcel/watcher@2.5.1': - resolution: {integrity: sha512-dfUnCxiN9H4ap84DvD2ubjw+3vUNpstxa0TneY/Paat8a3R4uQZDLSvWjmznAY/DoahqTHl9V46HF/Zs3F29pg==} - engines: {node: '>= 10.0.0'} - '@pkgjs/parseargs@0.11.0': resolution: {integrity: sha512-+1VkjdD0QBLPodGrJUeqarH8VAIvQODIbwh9XpP5Syisf7YoQgsJKPNFoqqLQlu+VQ/tVSshMR6loPMn8U+dPg==} engines: {node: '>=14'} @@ -3097,8 +2921,8 @@ packages: '@sinonjs/text-encoding@0.7.3': resolution: {integrity: sha512-DE427ROAphMQzU4ENbliGYrBSYPXF+TtLg9S8vzeA+OF4ZKzoDdzfL8sxuMUGS/lgRhM6j1URSk9ghf7Xo1tyA==} - '@smithy/abort-controller@4.2.7': - resolution: {integrity: sha512-rzMY6CaKx2qxrbYbqjXWS0plqEy7LOdKHS0bg4ixJ6aoGDPNUcLWk/FRNuCILh7GKLG9TFUXYYeQQldMBBwuyw==} + '@smithy/abort-controller@4.2.8': + resolution: {integrity: sha512-peuVfkYHAmS5ybKxWcfraK7WBBP0J+rkfUcbHJJKQ4ir3UAUNQI+Y4Vt/PqSzGqgloJ5O1dk7+WzNL8wcCSXbw==} engines: {node: '>=18.0.0'} '@smithy/chunked-blob-reader-native@4.2.1': @@ -3109,56 +2933,56 @@ packages: resolution: {integrity: sha512-WmU0TnhEAJLWvfSeMxBNe5xtbselEO8+4wG0NtZeL8oR21WgH1xiO37El+/Y+H/Ie4SCwBy3MxYWmOYaGgZueA==} engines: {node: '>=18.0.0'} - '@smithy/config-resolver@4.4.5': - resolution: {integrity: sha512-HAGoUAFYsUkoSckuKbCPayECeMim8pOu+yLy1zOxt1sifzEbrsRpYa+mKcMdiHKMeiqOibyPG0sFJnmaV/OGEg==} + '@smithy/config-resolver@4.4.6': + resolution: {integrity: sha512-qJpzYC64kaj3S0fueiu3kXm8xPrR3PcXDPEgnaNMRn0EjNSZFoFjvbUp0YUDsRhN1CB90EnHJtbxWKevnH99UQ==} engines: {node: '>=18.0.0'} - '@smithy/core@3.20.0': - resolution: {integrity: sha512-WsSHCPq/neD5G/MkK4csLI5Y5Pkd9c1NMfpYEKeghSGaD4Ja1qLIohRQf2D5c1Uy5aXp76DeKHkzWZ9KAlHroQ==} + '@smithy/core@3.23.2': + resolution: {integrity: sha512-HaaH4VbGie4t0+9nY3tNBRSxVTr96wzIqexUa6C2qx3MPePAuz7lIxPxYtt1Wc//SPfJLNoZJzfdt0B6ksj2jA==} engines: {node: '>=18.0.0'} - '@smithy/credential-provider-imds@4.2.7': - resolution: {integrity: sha512-CmduWdCiILCRNbQWFR0OcZlUPVtyE49Sr8yYL0rZQ4D/wKxiNzBNS/YHemvnbkIWj623fplgkexUd/c9CAKdoA==} + '@smithy/credential-provider-imds@4.2.8': + resolution: {integrity: sha512-FNT0xHS1c/CPN8upqbMFP83+ul5YgdisfCfkZ86Jh2NSmnqw/AJ6x5pEogVCTVvSm7j9MopRU89bmDelxuDMYw==} engines: {node: '>=18.0.0'} - '@smithy/eventstream-codec@4.2.7': - resolution: {integrity: sha512-DrpkEoM3j9cBBWhufqBwnbbn+3nf1N9FP6xuVJ+e220jbactKuQgaZwjwP5CP1t+O94brm2JgVMD2atMGX3xIQ==} + '@smithy/eventstream-codec@4.2.8': + resolution: {integrity: sha512-jS/O5Q14UsufqoGhov7dHLOPCzkYJl9QDzusI2Psh4wyYx/izhzvX9P4D69aTxcdfVhEPhjK+wYyn/PzLjKbbw==} engines: {node: '>=18.0.0'} - '@smithy/eventstream-serde-browser@4.2.7': - resolution: {integrity: sha512-ujzPk8seYoDBmABDE5YqlhQZAXLOrtxtJLrbhHMKjBoG5b4dK4i6/mEU+6/7yXIAkqOO8sJ6YxZl+h0QQ1IJ7g==} + '@smithy/eventstream-serde-browser@4.2.8': + resolution: {integrity: sha512-MTfQT/CRQz5g24ayXdjg53V0mhucZth4PESoA5IhvaWVDTOQLfo8qI9vzqHcPsdd2v6sqfTYqF5L/l+pea5Uyw==} engines: {node: '>=18.0.0'} - '@smithy/eventstream-serde-config-resolver@4.3.7': - resolution: {integrity: sha512-x7BtAiIPSaNaWuzm24Q/mtSkv+BrISO/fmheiJ39PKRNH3RmH2Hph/bUKSOBOBC9unqfIYDhKTHwpyZycLGPVQ==} + '@smithy/eventstream-serde-config-resolver@4.3.8': + resolution: {integrity: sha512-ah12+luBiDGzBruhu3efNy1IlbwSEdNiw8fOZksoKoWW1ZHvO/04MQsdnws/9Aj+5b0YXSSN2JXKy/ClIsW8MQ==} engines: {node: '>=18.0.0'} - '@smithy/eventstream-serde-node@4.2.7': - resolution: {integrity: sha512-roySCtHC5+pQq5lK4be1fZ/WR6s/AxnPaLfCODIPArtN2du8s5Ot4mKVK3pPtijL/L654ws592JHJ1PbZFF6+A==} + '@smithy/eventstream-serde-node@4.2.8': + resolution: {integrity: sha512-cYpCpp29z6EJHa5T9WL0KAlq3SOKUQkcgSoeRfRVwjGgSFl7Uh32eYGt7IDYCX20skiEdRffyDpvF2efEZPC0A==} engines: {node: '>=18.0.0'} - '@smithy/eventstream-serde-universal@4.2.7': - resolution: {integrity: sha512-QVD+g3+icFkThoy4r8wVFZMsIP08taHVKjE6Jpmz8h5CgX/kk6pTODq5cht0OMtcapUx+xrPzUTQdA+TmO0m1g==} + '@smithy/eventstream-serde-universal@4.2.8': + resolution: {integrity: sha512-iJ6YNJd0bntJYnX6s52NC4WFYcZeKrPUr1Kmmr5AwZcwCSzVpS7oavAmxMR7pMq7V+D1G4s9F5NJK0xwOsKAlQ==} engines: {node: '>=18.0.0'} - '@smithy/fetch-http-handler@5.3.8': - resolution: {integrity: sha512-h/Fi+o7mti4n8wx1SR6UHWLaakwHRx29sizvp8OOm7iqwKGFneT06GCSFhml6Bha5BT6ot5pj3CYZnCHhGC2Rg==} + '@smithy/fetch-http-handler@5.3.9': + resolution: {integrity: sha512-I4UhmcTYXBrct03rwzQX1Y/iqQlzVQaPxWjCjula++5EmWq9YGBrx6bbGqluGc1f0XEfhSkiY4jhLgbsJUMKRA==} engines: {node: '>=18.0.0'} - '@smithy/hash-blob-browser@4.2.8': - resolution: {integrity: sha512-07InZontqsM1ggTCPSRgI7d8DirqRrnpL7nIACT4PW0AWrgDiHhjGZzbAE5UtRSiU0NISGUYe7/rri9ZeWyDpw==} + '@smithy/hash-blob-browser@4.2.9': + resolution: {integrity: sha512-m80d/iicI7DlBDxyQP6Th7BW/ejDGiF0bgI754+tiwK0lgMkcaIBgvwwVc7OFbY4eUzpGtnig52MhPAEJ7iNYg==} engines: {node: '>=18.0.0'} - '@smithy/hash-node@4.2.7': - resolution: {integrity: sha512-PU/JWLTBCV1c8FtB8tEFnY4eV1tSfBc7bDBADHfn1K+uRbPgSJ9jnJp0hyjiFN2PMdPzxsf1Fdu0eo9fJ760Xw==} + '@smithy/hash-node@4.2.8': + resolution: {integrity: sha512-7ZIlPbmaDGxVoxErDZnuFG18WekhbA/g2/i97wGj+wUBeS6pcUeAym8u4BXh/75RXWhgIJhyC11hBzig6MljwA==} engines: {node: '>=18.0.0'} - '@smithy/hash-stream-node@4.2.7': - resolution: {integrity: sha512-ZQVoAwNYnFMIbd4DUc517HuwNelJUY6YOzwqrbcAgCnVn+79/OK7UjwA93SPpdTOpKDVkLIzavWm/Ck7SmnDPQ==} + '@smithy/hash-stream-node@4.2.8': + resolution: {integrity: sha512-v0FLTXgHrTeheYZFGhR+ehX5qUm4IQsjAiL9qehad2cyjMWcN2QG6/4mSwbSgEQzI7jwfoXj7z4fxZUx/Mhj2w==} engines: {node: '>=18.0.0'} - '@smithy/invalid-dependency@4.2.7': - resolution: {integrity: sha512-ncvgCr9a15nPlkhIUx3CU4d7E7WEuVJOV7fS7nnK2hLtPK9tYRBkMHQbhXU1VvvKeBm/O0x26OEoBq+ngFpOEQ==} + '@smithy/invalid-dependency@4.2.8': + resolution: {integrity: sha512-N9iozRybwAQ2dn9Fot9kI6/w9vos2oTXLhtK7ovGqwZjlOcxu6XhPlpLpC+INsxktqHinn5gS2DXDjDF2kG5sQ==} engines: {node: '>=18.0.0'} '@smithy/is-array-buffer@2.2.0': @@ -3169,88 +2993,88 @@ packages: resolution: {integrity: sha512-DZZZBvC7sjcYh4MazJSGiWMI2L7E0oCiRHREDzIxi/M2LY79/21iXt6aPLHge82wi5LsuRF5A06Ds3+0mlh6CQ==} engines: {node: '>=18.0.0'} - '@smithy/md5-js@4.2.7': - resolution: {integrity: sha512-Wv6JcUxtOLTnxvNjDnAiATUsk8gvA6EeS8zzHig07dotpByYsLot+m0AaQEniUBjx97AC41MQR4hW0baraD1Xw==} + '@smithy/md5-js@4.2.8': + resolution: {integrity: sha512-oGMaLj4tVZzLi3itBa9TCswgMBr7k9b+qKYowQ6x1rTyTuO1IU2YHdHUa+891OsOH+wCsH7aTPRsTJO3RMQmjQ==} engines: {node: '>=18.0.0'} - '@smithy/middleware-compression@4.3.16': - resolution: {integrity: sha512-df41cMk8D/Aa8JRhraZPbeHYUJ012ivOTp9kOs95amfMdRvgNFWz9/qBFbpnTEbsyvFtYfF4HjZ0bgzrkguECQ==} + '@smithy/middleware-compression@4.3.31': + resolution: {integrity: sha512-4reWekdZ/H6NyYQTVOCIWmNWbQl7JIhTL1Fvk2/N5EM+V1FF4HlKLbdM+J9V7g9jbnT7QORz5DlTGcEtZx4jWg==} engines: {node: '>=18.0.0'} - '@smithy/middleware-content-length@4.2.7': - resolution: {integrity: sha512-GszfBfCcvt7kIbJ41LuNa5f0wvQCHhnGx/aDaZJCCT05Ld6x6U2s0xsc/0mBFONBZjQJp2U/0uSJ178OXOwbhg==} + '@smithy/middleware-content-length@4.2.8': + resolution: {integrity: sha512-RO0jeoaYAB1qBRhfVyq0pMgBoUK34YEJxVxyjOWYZiOKOq2yMZ4MnVXMZCUDenpozHue207+9P5ilTV1zeda0A==} engines: {node: '>=18.0.0'} - '@smithy/middleware-endpoint@4.4.1': - resolution: {integrity: sha512-gpLspUAoe6f1M6H0u4cVuFzxZBrsGZmjx2O9SigurTx4PbntYa4AJ+o0G0oGm1L2oSX6oBhcGHwrfJHup2JnJg==} + '@smithy/middleware-endpoint@4.4.16': + resolution: {integrity: sha512-L5GICFCSsNhbJ5JSKeWFGFy16Q2OhoBizb3X2DrxaJwXSEujVvjG9Jt386dpQn2t7jINglQl0b4K/Su69BdbMA==} engines: {node: '>=18.0.0'} - '@smithy/middleware-retry@4.4.17': - resolution: {integrity: sha512-MqbXK6Y9uq17h+4r0ogu/sBT6V/rdV+5NvYL7ZV444BKfQygYe8wAhDrVXagVebN6w2RE0Fm245l69mOsPGZzg==} + '@smithy/middleware-retry@4.4.33': + resolution: {integrity: sha512-jLqZOdJhtIL4lnA9hXnAG6GgnJlo1sD3FqsTxm9wSfjviqgWesY/TMBVnT84yr4O0Vfe0jWoXlfFbzsBVph3WA==} engines: {node: '>=18.0.0'} - '@smithy/middleware-serde@4.2.8': - resolution: {integrity: sha512-8rDGYen5m5+NV9eHv9ry0sqm2gI6W7mc1VSFMtn6Igo25S507/HaOX9LTHAS2/J32VXD0xSzrY0H5FJtOMS4/w==} + '@smithy/middleware-serde@4.2.9': + resolution: {integrity: sha512-eMNiej0u/snzDvlqRGSN3Vl0ESn3838+nKyVfF2FKNXFbi4SERYT6PR392D39iczngbqqGG0Jl1DlCnp7tBbXQ==} engines: {node: '>=18.0.0'} - '@smithy/middleware-stack@4.2.7': - resolution: {integrity: sha512-bsOT0rJ+HHlZd9crHoS37mt8qRRN/h9jRve1SXUhVbkRzu0QaNYZp1i1jha4n098tsvROjcwfLlfvcFuJSXEsw==} + '@smithy/middleware-stack@4.2.8': + resolution: {integrity: sha512-w6LCfOviTYQjBctOKSwy6A8FIkQy7ICvglrZFl6Bw4FmcQ1Z420fUtIhxaUZZshRe0VCq4kvDiPiXrPZAe8oRA==} engines: {node: '>=18.0.0'} - '@smithy/node-config-provider@4.3.7': - resolution: {integrity: sha512-7r58wq8sdOcrwWe+klL9y3bc4GW1gnlfnFOuL7CXa7UzfhzhxKuzNdtqgzmTV+53lEp9NXh5hY/S4UgjLOzPfw==} + '@smithy/node-config-provider@4.3.8': + resolution: {integrity: sha512-aFP1ai4lrbVlWjfpAfRSL8KFcnJQYfTl5QxLJXY32vghJrDuFyPZ6LtUL+JEGYiFRG1PfPLHLoxj107ulncLIg==} engines: {node: '>=18.0.0'} - '@smithy/node-http-handler@4.4.7': - resolution: {integrity: sha512-NELpdmBOO6EpZtWgQiHjoShs1kmweaiNuETUpuup+cmm/xJYjT4eUjfhrXRP4jCOaAsS3c3yPsP3B+K+/fyPCQ==} + '@smithy/node-http-handler@4.4.10': + resolution: {integrity: sha512-u4YeUwOWRZaHbWaebvrs3UhwQwj+2VNmcVCwXcYTvPIuVyM7Ex1ftAj+fdbG/P4AkBwLq/+SKn+ydOI4ZJE9PA==} engines: {node: '>=18.0.0'} - '@smithy/property-provider@4.2.7': - resolution: {integrity: sha512-jmNYKe9MGGPoSl/D7JDDs1C8b3dC8f/w78LbaVfoTtWy4xAd5dfjaFG9c9PWPihY4ggMQNQSMtzU77CNgAJwmA==} + '@smithy/property-provider@4.2.8': + resolution: {integrity: sha512-EtCTbyIveCKeOXDSWSdze3k612yCPq1YbXsbqX3UHhkOSW8zKsM9NOJG5gTIya0vbY2DIaieG8pKo1rITHYL0w==} engines: {node: '>=18.0.0'} - '@smithy/protocol-http@5.3.7': - resolution: {integrity: sha512-1r07pb994I20dD/c2seaZhoCuNYm0rWrvBxhCQ70brNh11M5Ml2ew6qJVo0lclB3jMIXirD4s2XRXRe7QEi0xA==} + '@smithy/protocol-http@5.3.8': + resolution: {integrity: sha512-QNINVDhxpZ5QnP3aviNHQFlRogQZDfYlCkQT+7tJnErPQbDhysondEjhikuANxgMsZrkGeiAxXy4jguEGsDrWQ==} engines: {node: '>=18.0.0'} - '@smithy/querystring-builder@4.2.7': - resolution: {integrity: sha512-eKONSywHZxK4tBxe2lXEysh8wbBdvDWiA+RIuaxZSgCMmA0zMgoDpGLJhnyj+c0leOQprVnXOmcB4m+W9Rw7sg==} + '@smithy/querystring-builder@4.2.8': + resolution: {integrity: sha512-Xr83r31+DrE8CP3MqPgMJl+pQlLLmOfiEUnoyAlGzzJIrEsbKsPy1hqH0qySaQm4oWrCBlUqRt+idEgunKB+iw==} engines: {node: '>=18.0.0'} - '@smithy/querystring-parser@4.2.7': - resolution: {integrity: sha512-3X5ZvzUHmlSTHAXFlswrS6EGt8fMSIxX/c3Rm1Pni3+wYWB6cjGocmRIoqcQF9nU5OgGmL0u7l9m44tSUpfj9w==} + '@smithy/querystring-parser@4.2.8': + resolution: {integrity: sha512-vUurovluVy50CUlazOiXkPq40KGvGWSdmusa3130MwrR1UNnNgKAlj58wlOe61XSHRpUfIIh6cE0zZ8mzKaDPA==} engines: {node: '>=18.0.0'} '@smithy/service-error-classification@2.1.5': resolution: {integrity: sha512-uBDTIBBEdAQryvHdc5W8sS5YX7RQzF683XrHePVdFmAgKiMofU15FLSM0/HU03hKTnazdNRFa0YHS7+ArwoUSQ==} engines: {node: '>=14.0.0'} - '@smithy/service-error-classification@4.2.7': - resolution: {integrity: sha512-YB7oCbukqEb2Dlh3340/8g8vNGbs/QsNNRms+gv3N2AtZz9/1vSBx6/6tpwQpZMEJFs7Uq8h4mmOn48ZZ72MkA==} + '@smithy/service-error-classification@4.2.8': + resolution: {integrity: sha512-mZ5xddodpJhEt3RkCjbmUQuXUOaPNTkbMGR0bcS8FE0bJDLMZlhmpgrvPNCYglVw5rsYTpSnv19womw9WWXKQQ==} engines: {node: '>=18.0.0'} - '@smithy/shared-ini-file-loader@4.4.2': - resolution: {integrity: sha512-M7iUUff/KwfNunmrgtqBfvZSzh3bmFgv/j/t1Y1dQ+8dNo34br1cqVEqy6v0mYEgi0DkGO7Xig0AnuOaEGVlcg==} + '@smithy/shared-ini-file-loader@4.4.3': + resolution: {integrity: sha512-DfQjxXQnzC5UbCUPeC3Ie8u+rIWZTvuDPAGU/BxzrOGhRvgUanaP68kDZA+jaT3ZI+djOf+4dERGlm9mWfFDrg==} engines: {node: '>=18.0.0'} - '@smithy/signature-v4@5.3.7': - resolution: {integrity: sha512-9oNUlqBlFZFOSdxgImA6X5GFuzE7V2H7VG/7E70cdLhidFbdtvxxt81EHgykGK5vq5D3FafH//X+Oy31j3CKOg==} + '@smithy/signature-v4@5.3.8': + resolution: {integrity: sha512-6A4vdGj7qKNRF16UIcO8HhHjKW27thsxYci+5r/uVRkdcBEkOEiY8OMPuydLX4QHSrJqGHPJzPRwwVTqbLZJhg==} engines: {node: '>=18.0.0'} - '@smithy/smithy-client@4.10.2': - resolution: {integrity: sha512-D5z79xQWpgrGpAHb054Fn2CCTQZpog7JELbVQ6XAvXs5MNKWf28U9gzSBlJkOyMl9LA1TZEjRtwvGXfP0Sl90g==} + '@smithy/smithy-client@4.11.5': + resolution: {integrity: sha512-xixwBRqoeP2IUgcAl3U9dvJXc+qJum4lzo3maaJxifsZxKUYLfVfCXvhT4/jD01sRrHg5zjd1cw2Zmjr4/SuKQ==} engines: {node: '>=18.0.0'} '@smithy/types@2.12.0': resolution: {integrity: sha512-QwYgloJ0sVNBeBuBs65cIkTbfzV/Q6ZNPCJ99EICFEdJYG50nGIY/uYXp+TbsdJReIuPr0a0kXmCvren3MbRRw==} engines: {node: '>=14.0.0'} - '@smithy/types@4.11.0': - resolution: {integrity: sha512-mlrmL0DRDVe3mNrjTcVcZEgkFmufITfUAPBEA+AHYiIeYyJebso/He1qLbP3PssRe22KUzLRpQSdBPbXdgZ2VA==} + '@smithy/types@4.12.0': + resolution: {integrity: sha512-9YcuJVTOBDjg9LWo23Qp0lTQ3D7fQsQtwle0jVfpbUHy9qBwCEgKuVH4FqFB3VYu0nwdHKiEMA+oXz7oV8X1kw==} engines: {node: '>=18.0.0'} - '@smithy/url-parser@4.2.7': - resolution: {integrity: sha512-/RLtVsRV4uY3qPWhBDsjwahAtt3x2IsMGnP5W1b2VZIe+qgCqkLxI1UOHDZp1Q1QSOrdOR32MF3Ph2JfWT1VHg==} + '@smithy/url-parser@4.2.8': + resolution: {integrity: sha512-NQho9U68TGMEU639YkXnVMV3GEFFULmmaWdlu1E9qzyIePOHsoSnagTGSDv1Zi8DCNN6btxOSdgmy5E/hsZwhA==} engines: {node: '>=18.0.0'} '@smithy/util-base64@4.3.0': @@ -3277,32 +3101,32 @@ packages: resolution: {integrity: sha512-YEjpl6XJ36FTKmD+kRJJWYvrHeUvm5ykaUS5xK+6oXffQPHeEM4/nXlZPe+Wu0lsgRUcNZiliYNh/y7q9c2y6Q==} engines: {node: '>=18.0.0'} - '@smithy/util-defaults-mode-browser@4.3.16': - resolution: {integrity: sha512-/eiSP3mzY3TsvUOYMeL4EqUX6fgUOj2eUOU4rMMgVbq67TiRLyxT7Xsjxq0bW3OwuzK009qOwF0L2OgJqperAQ==} + '@smithy/util-defaults-mode-browser@4.3.32': + resolution: {integrity: sha512-092sjYfFMQ/iaPH798LY/OJFBcYu0sSK34Oy9vdixhsU36zlZu8OcYjF3TD4e2ARupyK7xaxPXl+T0VIJTEkkg==} engines: {node: '>=18.0.0'} - '@smithy/util-defaults-mode-node@4.2.19': - resolution: {integrity: sha512-3a4+4mhf6VycEJyHIQLypRbiwG6aJvbQAeRAVXydMmfweEPnLLabRbdyo/Pjw8Rew9vjsh5WCdhmDaHkQnhhhA==} + '@smithy/util-defaults-mode-node@4.2.35': + resolution: {integrity: sha512-miz/ggz87M8VuM29y7jJZMYkn7+IErM5p5UgKIf8OtqVs/h2bXr1Bt3uTsREsI/4nK8a0PQERbAPsVPVNIsG7Q==} engines: {node: '>=18.0.0'} - '@smithy/util-endpoints@3.2.7': - resolution: {integrity: sha512-s4ILhyAvVqhMDYREeTS68R43B1V5aenV5q/V1QpRQJkCXib5BPRo4s7uNdzGtIKxaPHCfU/8YkvPAEvTpxgspg==} + '@smithy/util-endpoints@3.2.8': + resolution: {integrity: sha512-8JaVTn3pBDkhZgHQ8R0epwWt+BqPSLCjdjXXusK1onwJlRuN69fbvSK66aIKKO7SwVFM6x2J2ox5X8pOaWcUEw==} engines: {node: '>=18.0.0'} '@smithy/util-hex-encoding@4.2.0': resolution: {integrity: sha512-CCQBwJIvXMLKxVbO88IukazJD9a4kQ9ZN7/UMGBjBcJYvatpWk+9g870El4cB8/EJxfe+k+y0GmR9CAzkF+Nbw==} engines: {node: '>=18.0.0'} - '@smithy/util-middleware@4.2.7': - resolution: {integrity: sha512-i1IkpbOae6NvIKsEeLLM9/2q4X+M90KV3oCFgWQI4q0Qz+yUZvsr+gZPdAEAtFhWQhAHpTsJO8DRJPuwVyln+w==} + '@smithy/util-middleware@4.2.8': + resolution: {integrity: sha512-PMqfeJxLcNPMDgvPbbLl/2Vpin+luxqTGPpW3NAQVLbRrFRzTa4rNAASYeIGjRV9Ytuhzny39SpyU04EQreF+A==} engines: {node: '>=18.0.0'} - '@smithy/util-retry@4.2.7': - resolution: {integrity: sha512-SvDdsQyF5CIASa4EYVT02LukPHVzAgUA4kMAuZ97QJc2BpAqZfA4PINB8/KOoCXEw9tsuv/jQjMeaHFvxdLNGg==} + '@smithy/util-retry@4.2.8': + resolution: {integrity: sha512-CfJqwvoRY0kTGe5AkQokpURNCT1u/MkRzMTASWMPPo2hNSnKtF1D45dQl3DE2LKLr4m+PW9mCeBMJr5mCAVThg==} engines: {node: '>=18.0.0'} - '@smithy/util-stream@4.5.8': - resolution: {integrity: sha512-ZnnBhTapjM0YPGUSmOs0Mcg/Gg87k503qG4zU2v/+Js2Gu+daKOJMeqcQns8ajepY8tgzzfYxl6kQyZKml6O2w==} + '@smithy/util-stream@4.5.12': + resolution: {integrity: sha512-D8tgkrmhAX/UNeCZbqbEO3uqyghUnEmmoO9YEvRuwxjlkKKUE7FOgCJnqpTlQPe9MApdWPky58mNQQHbnCzoNg==} engines: {node: '>=18.0.0'} '@smithy/util-uri-escape@4.2.0': @@ -3317,17 +3141,14 @@ packages: resolution: {integrity: sha512-zBPfuzoI8xyBtR2P6WQj63Rz8i3AmfAaJLuNG8dWsfvPe8lO4aCPYLn879mEgHndZH1zQ2oXmG8O1GGzzaoZiw==} engines: {node: '>=18.0.0'} - '@smithy/util-waiter@4.2.7': - resolution: {integrity: sha512-vHJFXi9b7kUEpHWUCY3Twl+9NPOZvQ0SAi+Ewtn48mbiJk4JY9MZmKQjGB4SCvVb9WPiSphZJYY6RIbs+grrzw==} + '@smithy/util-waiter@4.2.8': + resolution: {integrity: sha512-n+lahlMWk+aejGuax7DPWtqav8HYnWxQwR+LCG2BgCUmaGcTe9qZCFsmw8TMg9iG75HOwhrJCX9TCJRLH+Yzqg==} engines: {node: '>=18.0.0'} '@smithy/uuid@1.1.0': resolution: {integrity: sha512-4aUIteuyxtBUhVdiQqcDhKFitwfd9hqoSDYY2KRXiWtgoWJ9Bmise+KfEPDiVHWeJepvF8xJO9/9+WDIciMFFw==} engines: {node: '>=18.0.0'} - '@standard-schema/spec@1.0.0': - resolution: {integrity: sha512-m2bOd0f2RT9k8QJx1JN85cZYyH1RqFBdlwtkSlf4tBDYLCiiZnv1fIIwacK6cqwXavOydf0NPToMQgpKq+dVlA==} - '@standard-schema/spec@1.1.0': resolution: {integrity: sha512-l2aFy5jALhniG5HgqrD6jXLi/rUWrKvqN/qJx6yoJsgKhblVd+iqqU4RCXavm/jPityDo5TCvKMnpjKnOriy0w==} @@ -3415,9 +3236,6 @@ packages: '@types/node@20.17.16': resolution: {integrity: sha512-vOTpLduLkZXePLxHiHsBLp98mHGnl8RptV4YAO3HfKO5UHjDvySGbxKtpYfy8Sx5+WKcgc45qNreJJRVM3L6mw==} - '@types/node@25.0.3': - resolution: {integrity: sha512-W609buLVRVmeW693xKfzHeIV6nJGGz98uCPfeXI1ELMLXVeKYZ9m15fAMSaUPBHYLGFsVRcMmSCksQOrZV9BYA==} - '@types/node@25.3.0': resolution: {integrity: sha512-4K3bqJpXpqfg2XKGK9bpDTc6xO/xoUP/RBWS7AtRMug6zZFaRekiLzjVtAoZMquxoAbzBvy5nxQ7veS5eYzf8A==} @@ -3764,8 +3582,8 @@ packages: birpc@2.5.0: resolution: {integrity: sha512-VSWO/W6nNQdyP520F1mhf+Lc2f8pjGQOtoHHm7Ze8Go1kX7akpVIrtTa0fn+HB0QJEDVacl6aO08YE0PgXfdnQ==} - bowser@2.13.1: - resolution: {integrity: sha512-OHawaAbjwx6rqICCKgSG0SAnT05bzd7ppyKLVUITZpANBaaMFBAsaNkto3LoQ31tyFP5kNujE8Cdx85G9VzOkw==} + bowser@2.14.1: + resolution: {integrity: sha512-tzPjzCxygAKWFOJP011oxFHs57HzIhOEracIgAePE4pqB3LikALKnSzUyU4MGs9/iCEUuHlAJTjTc5M+u7YEGg==} brace-expansion@1.1.11: resolution: {integrity: sha512-iCuPHDFgrHX7H2vEI/5xpz07zSHB00TpugqhmYtVmMO6518mCuRMoOYFldEBl0g187ufozdaHgWKcYFb61qGiA==} @@ -3849,6 +3667,10 @@ packages: resolution: {integrity: sha512-J4Xj5f5wq/4jAvcdgoGsL3G103BtWpZrMo8NEinRltN+xpTZdI+M38pyQqhuFU/P792xkMFvnKSf+Lm81U1bxw==} engines: {node: ^4.7 || >=6.9 || >=7.3 || >=8.2.1} + cluster-key-slot@1.1.2: + resolution: {integrity: sha512-RMr0FhtfXemyinomL4hrWcYJxmX6deFdCxpJzhDttxgO1+bcCnkk+9drydLVDmAMG7NE6aN/fl4F7ucU/90gAA==} + engines: {node: '>=0.10.0'} + color-convert@2.0.1: resolution: {integrity: sha512-RRECPsj7iu/xb5oKYcsFHSppFNnsj/52OVTRKb4zP5onXwVF3zVmmToNcOfGC+CRDpfK/U584fMg38ZHCaElKQ==} engines: {node: '>=7.0.0'} @@ -3953,6 +3775,10 @@ packages: resolution: {integrity: sha512-8QmQKqEASLd5nx0U1B1okLElbUuuttJ/AnYmRXbbbGDWh6uS208EjD4Xqq/I9wK7u0v6O08XhTWnt5XtEbR6Dg==} engines: {node: '>= 0.4'} + denque@2.1.0: + resolution: {integrity: sha512-HVQE3AAb/pxF8fQAoiqpvg9i3evqug3hoiwakOyZAwJm+6vZehbkYXZ0l4JxS+I3QxM97v5aaRNhj8v5oBhekw==} + engines: {node: '>=0.10'} + dequal@2.0.3: resolution: {integrity: sha512-0je+qPKHEMohvfRTCEo3CrPG6cAzAYgmzKyxRiYSSDkS6eGJdyVJm7WaYA5ECaAD9wLB2T4EEeymA5aFVcYXCA==} engines: {node: '>=6'} @@ -3961,11 +3787,6 @@ packages: resolution: {integrity: sha512-reYkTUJAZb9gUuZ2RvVCNhVHdg62RHnJ7WJl8ftMi4diZ6NWlciOzQN88pUhSELEwflJht4oQDv0F0BMlwaYtA==} engines: {node: '>=8'} - detect-libc@1.0.3: - resolution: {integrity: sha512-pGjwhsmsp4kL2RTz08wcOlGN83otlqHeD/Z5T8GXZB+/YcpQ/dgo+lbU8ZsGxV0HIvqqxo9l7mqYwyYMD9bKDg==} - engines: {node: '>=0.10'} - hasBin: true - detect-libc@2.0.4: resolution: {integrity: sha512-3UDv+G9CsCKO1WKMGw9fwq/SWJYbI0c5Y7LU1AXYoDdbhE2AHQ6N6Nb34sG8Fj7T5APy8qXDCKuuIHd1BR0tVA==} engines: {node: '>=8'} @@ -3985,8 +3806,8 @@ packages: resolution: {integrity: sha512-58lmxKSA4BNyLz+HHMUzlOEpg09FV+ev6ZMe3vJihgdxzgcwZ8VoEEPmALCZG9LmqfVoNMMKpttIYTVG6uDY7A==} engines: {node: '>=0.3.1'} - diff@5.2.0: - resolution: {integrity: sha512-uIFDxqpRZGZ6ThOk84hEfqWoHx2devRFvpTZcTHur85vImfaxUbTW9Ryh4CpCuDnToOP1CEtXKIgytHBPVff5A==} + diff@5.2.2: + resolution: {integrity: sha512-vtcDfH3TOjP8UekytvnHH1o1P4FcUdt4eQ1Y+Abap1tk/OB2MWQvcwS2ClCd1zuIhc3JKOx6p3kod8Vfys3E+A==} engines: {node: '>=0.3.1'} dir-glob@3.0.1: @@ -4012,9 +3833,6 @@ packages: eastasianwidth@0.2.0: resolution: {integrity: sha512-I88TYZWc9XiYHRQ4/3c5rjjfgkjhLyW2luGIheGERbNQ6OY7yTybanSpDXZa8y7VUP9YmDcYa+eyq4ca7iLqWA==} - effect@3.16.4: - resolution: {integrity: sha512-zJo5MRPEMROLjTHyrOJs0PUeEnRLy0ABwum3+HWlP8Y9LNF+NjipIRldVAcjSVQpJ7vY/OEGBxzw0USPzTfWag==} - effect@4.0.0-beta.8: resolution: {integrity: sha512-8Df3vdVY8ahZcn2oC27lAfMGXHId1I5YDHqGgLe4UCQ9D8Kzmb5oq+qZVXvmY9fZANabnu47AE41040kc52QCg==} @@ -4248,10 +4066,6 @@ packages: resolution: {integrity: sha512-hMQ4CX1p1izmuLYyZqLMO/qGNw10wSv9QDCPfzXfyFrOaCSSoRfqE1Kf1s5an66J5JZC62NewG+mK49jOCtQew==} engines: {node: '>=4'} - fast-check@3.23.2: - resolution: {integrity: sha512-h5+1OzzfCC3Ef7VbtKdcv7zsstUQwUDlYpUTvjeUsJAssPgLn7QzbboPtL5ro04Mq0rPOsMzl7q5hIbRs2wD1A==} - engines: {node: '>=8.0.0'} - fast-check@4.5.3: resolution: {integrity: sha512-IE9csY7lnhxBnA8g/WI5eg/hygA6MGWJMSNfFRrBlXUciADEhS1EDB0SIsMSvzubzIlOBbVITSsypCsW717poA==} engines: {node: '>=12.17.0'} @@ -4272,8 +4086,8 @@ packages: fast-levenshtein@2.0.6: resolution: {integrity: sha512-DCXu6Ifhqcks7TZKY3Hxp3y6qphY5SJZmrWMDrKcERSOXWQdMhU9Ig/PYrzyw/ul9jOIyh0N4M0tbC5hodg8dw==} - fast-xml-parser@5.2.5: - resolution: {integrity: sha512-pfX9uG9Ki0yekDHx2SiuRIyFdyAr1kMIMitPvb0YBo8SUfKvia7w7FIyd/l6av85pFYRhZscS75MwMnbvY+hcQ==} + fast-xml-parser@5.3.6: + resolution: {integrity: sha512-QNI3sAvSvaOiaMl8FYU4trnEzCwiRr8XMWgAHzlrWpTSj+QaCSvOf1h82OEP1s4hiAXhnbXSyFWCf4ldZzZRVA==} hasBin: true fastq@1.15.0: @@ -4303,9 +4117,6 @@ packages: resolution: {integrity: sha512-YsGpe3WHLK8ZYi4tWDg2Jy3ebRz2rXowDxnld4bkQB00cc/1Zw9AWnC0i9ztDJitivtQvaI9KaLyKrc+hBW0yg==} engines: {node: '>=8'} - find-my-way-ts@0.1.5: - resolution: {integrity: sha512-4GOTMrpGQVzsCH2ruUn2vmwzV/02zF4q+ybhCIrw/Rkt3L8KWcycdC6aJMctJzwN4fXD4SD5F/4B9Sksh5rE0A==} - find-my-way-ts@0.1.6: resolution: {integrity: sha512-a85L9ZoXtNAey3Y6Z+eBWW658kO/MwR7zIafkIUPUMf3isZG0NCs2pjW2wtjxAKuJPxMAsHUIP4ZPGv0o5gyTA==} @@ -4394,6 +4205,7 @@ packages: glob@10.4.5: resolution: {integrity: sha512-7Bv8RF0k6xjo7d4A/PxYLbUCfb6c+Vpd2/mB2yRDlew7Jb5hEXiCD9ibfO7wpk8i4sevK6DFny9h7EYbM3/sHg==} + deprecated: Old versions of glob are not supported, and contain widely publicized security vulnerabilities, which have been fixed in the current version. Please update. Support for old versions may be purchased (at exorbitant rates) by contacting i@izs.me hasBin: true globals@11.12.0: @@ -4501,10 +4313,6 @@ packages: inherits@2.0.4: resolution: {integrity: sha512-k/vGaX4/Yla3WzyMCvTQOXYeIHvqOKtnqBduzTHpzpQZzAskKMhZ2K+EnBiSM9zGSoIFeMpXKxa4dYeZIQqewQ==} - ini@4.1.3: - resolution: {integrity: sha512-X7rqawQBvfdjS10YU1y1YVreA3SsLrW9dX2CewP2EbBJM4ypVNLDkO5y04gejPwKIY9lR+7r9gn3rFPt/kmWFg==} - engines: {node: ^14.17.0 || ^16.13.0 || >=18.0.0} - ini@6.0.0: resolution: {integrity: sha512-IBTdIkzZNOpqm7q3dRqJvMaldXjDHWkEDfrwGEQTs5eaQMWV+djAhR+wahyNNMAa+qpbDUhBMVt4ZKNwpPm7xQ==} engines: {node: ^20.17.0 || >=22.9.0} @@ -4521,6 +4329,10 @@ packages: peerDependencies: fp-ts: ^2.5.0 + ioredis@5.9.3: + resolution: {integrity: sha512-VI5tMCdeoxZWU5vjHWsiE/Su76JGhBvWF1MJnV9ZtGltHk9BmD48oDq8Tj8haZ85aceXZMxLNDQZRVo5QKNgXA==} + engines: {node: '>=12.22.0'} + is-alphabetical@1.0.4: resolution: {integrity: sha512-DwzsA04LQ10FHTZuL0/grVDk4rFoVH1pjAToYwBrHSxcrBIGQuXrQMtD5U1b0U2XVgKZCTLLP8u2Qxqhy3l2Vg==} @@ -4835,6 +4647,12 @@ packages: lodash._reinterpolate@3.0.0: resolution: {integrity: sha512-xYHt68QRoYGjeeM/XOE1uJtvXQAgvszfBhjV4yvsQH0u2i9I6cI6c6/eG4Hh3UAOVn0y/xAXwmTzEay49Q//HA==} + lodash.defaults@4.2.0: + resolution: {integrity: sha512-qjxPLHd3r5DnsdGacqOMU6pb/avJzdh9tFX2ymgoZE27BmjXrNy/y4LoaiTeAb+O3gL8AfpJGtqfX/ae2leYYQ==} + + lodash.isarguments@3.1.0: + resolution: {integrity: sha512-chi4NHZlZqZD18a0imDHnZPrDeBbTtVN7GXMwuGdRH9qotxAjYs3aVLKc7zNOG9eddR5Ksd8rvFEBc9SsggPpg==} + lodash.merge@4.6.2: resolution: {integrity: sha512-0KpjqXRVvrYyCsX1swR/XTK0va6VQkQM6MNo7PqW77ByjAhoARA8EfrP1N4+KlKj8YS0ZUCtRT/YUuhyYDujIQ==} @@ -4929,9 +4747,9 @@ packages: resolution: {integrity: sha512-PXwfBhYu0hBCPw8Dn0E+WDYb7af3dSLVWKi3HGv84IdF4TyFoC0ysxFd0Goxw7nSv4T/PzEJQxsYsEiFCKo2BA==} engines: {node: '>=8.6'} - mime@3.0.0: - resolution: {integrity: sha512-jSCU7/VB1loIWBZe14aEYHU/+1UMEHoaO7qxCOVJOw9GgH72VAWppxNcjU+x9a2k3GSIBXNKxXQFqRvvZ7vr3A==} - engines: {node: '>=10.0.0'} + mime@4.1.0: + resolution: {integrity: sha512-X5ju04+cAzsojXKes0B/S4tcYtFAJ6tTMuSPBEn9CPGlrWr8Fiw7qYeLT0XyH80HSoAoqWCaz+MWKh22P7G1cw==} + engines: {node: '>=16'} hasBin: true minimatch@3.1.2: @@ -4975,15 +4793,9 @@ packages: resolution: {integrity: sha512-P0efT1C9jIdVRefqjzOQ9Xml57zpOXnIuS+csaB4MdZbTdmGDLo8XhzBG1N7aO11gKDDkJvBLULeFTo46wwreA==} hasBin: true - msgpackr@1.11.4: - resolution: {integrity: sha512-uaff7RG9VIC4jacFW9xzL3jc0iM32DNHe4jYVycBcjUePT/Klnfj7pqtWJt9khvDFizmjN2TlYniYmSS2LIaZg==} - msgpackr@1.11.8: resolution: {integrity: sha512-bC4UGzHhVvgDNS7kn9tV8fAucIYUBuGojcaLiz7v+P63Lmtm0Xeji8B/8tYKddALXxJLpwIeBmUN3u64C4YkRA==} - multipasta@0.2.5: - resolution: {integrity: sha512-c8eMDb1WwZcE02WVjHoOmUVk7fnKU/RmUcosHACglrWAuPQsEJv+E8430sXj6jNc1jHw0zrS16aCjQh4BcEb4A==} - multipasta@0.2.7: resolution: {integrity: sha512-KPA58d68KgGil15oDqXjkUBEBYc00XvbPj5/X+dyzeo/lWm9Nc25pQRlf1D+gv4OpK7NM0J1odrbu9JNNGvynA==} @@ -5001,9 +4813,6 @@ packages: nise@6.1.1: resolution: {integrity: sha512-aMSAzLVY7LyeM60gvBS423nBmIPP+Wy7St7hsb+8/fc1HmeoHJfLO8CKse4u3BtOZvQLJghYPI2i/1WZrEj5/g==} - node-addon-api@7.1.1: - resolution: {integrity: sha512-5m3bsyrjFWE1xf7nz7YXdN4udnVtXK6/Yfgn5qnahL6bCkf2yKt4k3nuTKAtT4r3IG8JNR2ncsIMdZuAzJjHQQ==} - node-fetch@2.7.0: resolution: {integrity: sha512-c4FRfUm/dbcWZ7U+1Wq0AwCyFL+3nt2bEw05wfxSz+DWpWsitgmSgYmy2dQdWyKC1694ELPqMs/YzUSNozLt8A==} engines: {node: 4.x || >=6.0.0} @@ -5244,9 +5053,6 @@ packages: resolution: {integrity: sha512-vYt7UD1U9Wg6138shLtLOvdAu+8DsC/ilFtEVHcH+wydcSpNE20AfSOduf6MkRFahL5FY7X1oU7nKVZFtfq8Fg==} engines: {node: '>=6'} - pure-rand@6.1.0: - resolution: {integrity: sha512-bVWawvoZoBYpp6yIoQtQXHZjmz35RSVHnUOTefl8Vcjr8snTPY1wnpSPMWekcFwbxI6gtmT7rSYPFvz71ldiOA==} - pure-rand@7.0.1: resolution: {integrity: sha512-oTUZM/NAZS8p7ANR3SHh30kXB+zK2r2BPcEn/awJIbOvq82WoMN4p62AWWp3Hhw50G0xMsw1mhIBLqHw64EcNQ==} @@ -5278,6 +5084,14 @@ packages: readable-stream@2.3.8: resolution: {integrity: sha512-8p0AUk4XODgIewSi0l8Epjs+EVnWiK7NoDIEGU0HhE7+ZyY8D1IMY7odu5lRrFXGg71L15KG8QrPmum45RTtdA==} + redis-errors@1.2.0: + resolution: {integrity: sha512-1qny3OExCf0UvUV/5wpYKf2YwPcOqXzkwKKSmKHiE6ZMQs5heeE/c8eXK+PNllPvmjgAbfnsbpkGZWy8cBpn9w==} + engines: {node: '>=4'} + + redis-parser@3.0.0: + resolution: {integrity: sha512-DJnGAeenTdpMEH6uAJRK/uiyEIH9WVsUmoLwzudwGJUwZPp80PDBWPHXSAGNPwNvIXAbe7MSUB1zQFugFml66A==} + engines: {node: '>=4'} + reflect.getprototypeof@1.0.10: resolution: {integrity: sha512-00o4I+DVrefhv+nX0ulyi3biSHCPDe+yLv5o/p6d/UVlirijB8E16FtfwSAi4g3tcqrQ4lRAqQSoFEZJehYEcw==} engines: {node: '>= 0.4'} @@ -5486,6 +5300,9 @@ packages: stackback@0.0.2: resolution: {integrity: sha512-1XMJE5fQo1jGH6Y/7ebnwPOBEkIEnT4QF32d5R1+VXdXveM0IBMJt8zfaxX1P3QhVwrYe+576+jkANtSS2mBbw==} + standard-as-callback@2.1.0: + resolution: {integrity: sha512-qoRRSyROncaz1z0mvYqIE4lCd9p2R90i6GxW3uZv5ucSu8tU7B5HXUP1gG8pVZsYNVaXjk8ClXHPttLyxAL48A==} + std-env@3.9.0: resolution: {integrity: sha512-UGvjygr6F6tpH7o2qyqR6QYpwraIjKSdtzyBdyytFOHmPZY917kwdwLG0RbOjWOnKmnm3PeHjaoLLMie7kPLQw==} @@ -5717,14 +5534,11 @@ packages: undici-types@6.19.8: resolution: {integrity: sha512-ve2KP6f/JnbPBFyobGHuerC9g1FYGn/F8n1LWTwNxCEzd6IfqTwUQcNXgEtmmQ6DlRrC1hrSrBnCZPokRrDHjw==} - undici-types@7.16.0: - resolution: {integrity: sha512-Zz+aZWSj8LE6zoxD+xrjh4VfkIG8Ya6LvYkZqtUQGJPZjYl53ypCaUwWqo7eI0x66KBGeRo+mlBEkMSeSZ38Nw==} - undici-types@7.18.2: resolution: {integrity: sha512-AsuCzffGHJybSaRrmr5eHr81mwJU3kjw6M+uprWvCXiNeN9SOGwQ3Jn8jb8m3Z6izVgknn1R0FTCEAP2QrLY/w==} - undici@7.10.0: - resolution: {integrity: sha512-u5otvFBOBZvmdjWLVW+5DAc9Nkq8f24g0O9oY7qw2JVIF1VocIFoyz9JFkuVOS2j41AufeO0xnlweJ2RLT8nGw==} + undici@7.22.0: + resolution: {integrity: sha512-RqslV2Us5BrllB+JeiZnK4peryVTndy9Dnqq62S3yYRRTj0tFQCwEniUy2167skdGOy3vqRzEvl1Dm4sV2ReDg==} engines: {node: '>=20.18.1'} unist-util-is@6.0.0: @@ -5761,10 +5575,6 @@ packages: util-deprecate@1.0.2: resolution: {integrity: sha512-EPD5q1uXyFxJpCrLnCc1nHnq3gOa6DZBocAIiI2TaSCA7VCJ1UJDMagCzIkXNsUYfD1daK//LTEQ8xiIbrHtcw==} - uuid@11.1.0: - resolution: {integrity: sha512-0/A9rDy9P7cJ+8w1c9WD9V//9Wj15Ce2MPz8Ri6032usz+NfePxx5AcN3bN+r6ZL6jEo066/yNYB3tn4pQEx+A==} - hasBin: true - uuid@13.0.0: resolution: {integrity: sha512-XQegIaBTVUjSHliKqcnFqYypAd4S+WCYt5NIeRs6w/UAry7z8Y9j5ZwRRL4kzq9U3sD6v+85er9FvkEaBpji2w==} hasBin: true @@ -5921,18 +5731,6 @@ packages: resolution: {integrity: sha512-si7QWI6zUMq56bESFvagtmzMdGOtoxfR+Sez11Mobfc7tm+VkUckk9bW2UeffTGVUbOksxmSw0AA2gs8g71NCQ==} engines: {node: '>=12'} - ws@8.18.2: - resolution: {integrity: sha512-DMricUmwGZUVr++AEAe2uiVM7UoO9MAVZMDu05UQOaUII0lp+zOzLLU4Xqh/JvTqklB1T4uELaaPBKyjE1r4fQ==} - engines: {node: '>=10.0.0'} - peerDependencies: - bufferutil: ^4.0.1 - utf-8-validate: '>=5.0.2' - peerDependenciesMeta: - bufferutil: - optional: true - utf-8-validate: - optional: true - ws@8.19.0: resolution: {integrity: sha512-blAT2mjOEIi0ZzruJfIhb3nps74PRWTCz1IjglWEEpQl5XS/UNama6u2/rjFkDDouqr4L67ry+1aGIALViWjDg==} engines: {node: '>=10.0.0'} @@ -5952,11 +5750,6 @@ packages: yallist@3.1.1: resolution: {integrity: sha512-a4UGQaWPH59mOXUYnAG2ewncQS4i4F43Tv3JoAM+s2VDAmS9NsK8GpDMLrCHPksFT7h3K6TOoUNn2pb7RoXx4g==} - yaml@2.7.0: - resolution: {integrity: sha512-+hSoy/QHluxmC9kCIJyL/uyFmLmc+e5CFR5Wa+bpIhIj85LVb9ZH2nVnqrHoSvKogwODv0ClqZkmiSSaIH5LTA==} - engines: {node: '>= 14'} - hasBin: true - yaml@2.8.2: resolution: {integrity: sha512-mplynKqc1C2hTVYxd0PU2xQAc22TI1vShAYGksCCfxbn/dFwnHTNi1bvYsBTkhdUNtGIf5xNOg938rrSSYvS9A==} engines: {node: '>= 14.6'} @@ -6095,21 +5888,21 @@ snapshots: '@aws-crypto/crc32@5.2.0': dependencies: '@aws-crypto/util': 5.2.0 - '@aws-sdk/types': 3.956.0 + '@aws-sdk/types': 3.973.1 tslib: 2.8.1 '@aws-crypto/crc32c@5.2.0': dependencies: '@aws-crypto/util': 5.2.0 - '@aws-sdk/types': 3.956.0 + '@aws-sdk/types': 3.973.1 tslib: 2.8.1 '@aws-crypto/sha1-browser@5.2.0': dependencies: '@aws-crypto/supports-web-crypto': 5.2.0 '@aws-crypto/util': 5.2.0 - '@aws-sdk/types': 3.956.0 - '@aws-sdk/util-locate-window': 3.953.0 + '@aws-sdk/types': 3.973.1 + '@aws-sdk/util-locate-window': 3.965.4 '@smithy/util-utf8': 2.3.0 tslib: 2.8.1 @@ -6118,15 +5911,15 @@ snapshots: '@aws-crypto/sha256-js': 5.2.0 '@aws-crypto/supports-web-crypto': 5.2.0 '@aws-crypto/util': 5.2.0 - '@aws-sdk/types': 3.956.0 - '@aws-sdk/util-locate-window': 3.953.0 + '@aws-sdk/types': 3.973.1 + '@aws-sdk/util-locate-window': 3.965.4 '@smithy/util-utf8': 2.3.0 tslib: 2.8.1 '@aws-crypto/sha256-js@5.2.0': dependencies: '@aws-crypto/util': 5.2.0 - '@aws-sdk/types': 3.956.0 + '@aws-sdk/types': 3.973.1 tslib: 2.8.1 '@aws-crypto/supports-web-crypto@5.2.0': @@ -6135,7 +5928,7 @@ snapshots: '@aws-crypto/util@5.2.0': dependencies: - '@aws-sdk/types': 3.956.0 + '@aws-sdk/types': 3.973.1 '@smithy/util-utf8': 2.3.0 tslib: 2.8.1 @@ -6151,3168 +5944,3290 @@ snapshots: '@aws-lambda-powertools/commons': 2.0.0 aws-xray-sdk-core: 3.12.0 - '@aws-sdk/client-account@3.956.0': + '@aws-sdk/client-account@3.995.0': + dependencies: + '@aws-crypto/sha256-browser': 5.2.0 + '@aws-crypto/sha256-js': 5.2.0 + '@aws-sdk/core': 3.973.11 + '@aws-sdk/credential-provider-node': 3.972.10 + '@aws-sdk/middleware-host-header': 3.972.3 + '@aws-sdk/middleware-logger': 3.972.3 + '@aws-sdk/middleware-recursion-detection': 3.972.3 + '@aws-sdk/middleware-user-agent': 3.972.11 + '@aws-sdk/region-config-resolver': 3.972.3 + '@aws-sdk/types': 3.973.1 + '@aws-sdk/util-endpoints': 3.995.0 + '@aws-sdk/util-user-agent-browser': 3.972.3 + '@aws-sdk/util-user-agent-node': 3.972.10 + '@smithy/config-resolver': 4.4.6 + '@smithy/core': 3.23.2 + '@smithy/fetch-http-handler': 5.3.9 + '@smithy/hash-node': 4.2.8 + '@smithy/invalid-dependency': 4.2.8 + '@smithy/middleware-content-length': 4.2.8 + '@smithy/middleware-endpoint': 4.4.16 + '@smithy/middleware-retry': 4.4.33 + '@smithy/middleware-serde': 4.2.9 + '@smithy/middleware-stack': 4.2.8 + '@smithy/node-config-provider': 4.3.8 + '@smithy/node-http-handler': 4.4.10 + '@smithy/protocol-http': 5.3.8 + '@smithy/smithy-client': 4.11.5 + '@smithy/types': 4.12.0 + '@smithy/url-parser': 4.2.8 + '@smithy/util-base64': 4.3.0 + '@smithy/util-body-length-browser': 4.2.0 + '@smithy/util-body-length-node': 4.2.1 + '@smithy/util-defaults-mode-browser': 4.3.32 + '@smithy/util-defaults-mode-node': 4.2.35 + '@smithy/util-endpoints': 3.2.8 + '@smithy/util-middleware': 4.2.8 + '@smithy/util-retry': 4.2.8 + '@smithy/util-utf8': 4.2.0 + tslib: 2.8.1 + transitivePeerDependencies: + - aws-crt + + '@aws-sdk/client-api-gateway@3.995.0': dependencies: '@aws-crypto/sha256-browser': 5.2.0 '@aws-crypto/sha256-js': 5.2.0 - '@aws-sdk/core': 3.956.0 - '@aws-sdk/credential-provider-node': 3.956.0 - '@aws-sdk/middleware-host-header': 3.956.0 - '@aws-sdk/middleware-logger': 3.956.0 - '@aws-sdk/middleware-recursion-detection': 3.956.0 - '@aws-sdk/middleware-user-agent': 3.956.0 - '@aws-sdk/region-config-resolver': 3.956.0 - '@aws-sdk/types': 3.956.0 - '@aws-sdk/util-endpoints': 3.956.0 - '@aws-sdk/util-user-agent-browser': 3.956.0 - '@aws-sdk/util-user-agent-node': 3.956.0 - '@smithy/config-resolver': 4.4.5 - '@smithy/core': 3.20.0 - '@smithy/fetch-http-handler': 5.3.8 - '@smithy/hash-node': 4.2.7 - '@smithy/invalid-dependency': 4.2.7 - '@smithy/middleware-content-length': 4.2.7 - '@smithy/middleware-endpoint': 4.4.1 - '@smithy/middleware-retry': 4.4.17 - '@smithy/middleware-serde': 4.2.8 - '@smithy/middleware-stack': 4.2.7 - '@smithy/node-config-provider': 4.3.7 - '@smithy/node-http-handler': 4.4.7 - '@smithy/protocol-http': 5.3.7 - '@smithy/smithy-client': 4.10.2 - '@smithy/types': 4.11.0 - '@smithy/url-parser': 4.2.7 + '@aws-sdk/core': 3.973.11 + '@aws-sdk/credential-provider-node': 3.972.10 + '@aws-sdk/middleware-host-header': 3.972.3 + '@aws-sdk/middleware-logger': 3.972.3 + '@aws-sdk/middleware-recursion-detection': 3.972.3 + '@aws-sdk/middleware-sdk-api-gateway': 3.972.3 + '@aws-sdk/middleware-user-agent': 3.972.11 + '@aws-sdk/region-config-resolver': 3.972.3 + '@aws-sdk/types': 3.973.1 + '@aws-sdk/util-endpoints': 3.995.0 + '@aws-sdk/util-user-agent-browser': 3.972.3 + '@aws-sdk/util-user-agent-node': 3.972.10 + '@smithy/config-resolver': 4.4.6 + '@smithy/core': 3.23.2 + '@smithy/fetch-http-handler': 5.3.9 + '@smithy/hash-node': 4.2.8 + '@smithy/invalid-dependency': 4.2.8 + '@smithy/middleware-content-length': 4.2.8 + '@smithy/middleware-endpoint': 4.4.16 + '@smithy/middleware-retry': 4.4.33 + '@smithy/middleware-serde': 4.2.9 + '@smithy/middleware-stack': 4.2.8 + '@smithy/node-config-provider': 4.3.8 + '@smithy/node-http-handler': 4.4.10 + '@smithy/protocol-http': 5.3.8 + '@smithy/smithy-client': 4.11.5 + '@smithy/types': 4.12.0 + '@smithy/url-parser': 4.2.8 '@smithy/util-base64': 4.3.0 '@smithy/util-body-length-browser': 4.2.0 '@smithy/util-body-length-node': 4.2.1 - '@smithy/util-defaults-mode-browser': 4.3.16 - '@smithy/util-defaults-mode-node': 4.2.19 - '@smithy/util-endpoints': 3.2.7 - '@smithy/util-middleware': 4.2.7 - '@smithy/util-retry': 4.2.7 + '@smithy/util-defaults-mode-browser': 4.3.32 + '@smithy/util-defaults-mode-node': 4.2.35 + '@smithy/util-endpoints': 3.2.8 + '@smithy/util-middleware': 4.2.8 + '@smithy/util-retry': 4.2.8 + '@smithy/util-stream': 4.5.12 '@smithy/util-utf8': 4.2.0 tslib: 2.8.1 transitivePeerDependencies: - aws-crt - '@aws-sdk/client-api-gateway@3.956.0': + '@aws-sdk/client-apigatewaymanagementapi@3.995.0': dependencies: '@aws-crypto/sha256-browser': 5.2.0 '@aws-crypto/sha256-js': 5.2.0 - '@aws-sdk/core': 3.956.0 - '@aws-sdk/credential-provider-node': 3.956.0 - '@aws-sdk/middleware-host-header': 3.956.0 - '@aws-sdk/middleware-logger': 3.956.0 - '@aws-sdk/middleware-recursion-detection': 3.956.0 - '@aws-sdk/middleware-sdk-api-gateway': 3.956.0 - '@aws-sdk/middleware-user-agent': 3.956.0 - '@aws-sdk/region-config-resolver': 3.956.0 - '@aws-sdk/types': 3.956.0 - '@aws-sdk/util-endpoints': 3.956.0 - '@aws-sdk/util-user-agent-browser': 3.956.0 - '@aws-sdk/util-user-agent-node': 3.956.0 - '@smithy/config-resolver': 4.4.5 - '@smithy/core': 3.20.0 - '@smithy/fetch-http-handler': 5.3.8 - '@smithy/hash-node': 4.2.7 - '@smithy/invalid-dependency': 4.2.7 - '@smithy/middleware-content-length': 4.2.7 - '@smithy/middleware-endpoint': 4.4.1 - '@smithy/middleware-retry': 4.4.17 - '@smithy/middleware-serde': 4.2.8 - '@smithy/middleware-stack': 4.2.7 - '@smithy/node-config-provider': 4.3.7 - '@smithy/node-http-handler': 4.4.7 - '@smithy/protocol-http': 5.3.7 - '@smithy/smithy-client': 4.10.2 - '@smithy/types': 4.11.0 - '@smithy/url-parser': 4.2.7 + '@aws-sdk/core': 3.973.11 + '@aws-sdk/credential-provider-node': 3.972.10 + '@aws-sdk/middleware-host-header': 3.972.3 + '@aws-sdk/middleware-logger': 3.972.3 + '@aws-sdk/middleware-recursion-detection': 3.972.3 + '@aws-sdk/middleware-user-agent': 3.972.11 + '@aws-sdk/region-config-resolver': 3.972.3 + '@aws-sdk/types': 3.973.1 + '@aws-sdk/util-endpoints': 3.995.0 + '@aws-sdk/util-user-agent-browser': 3.972.3 + '@aws-sdk/util-user-agent-node': 3.972.10 + '@smithy/config-resolver': 4.4.6 + '@smithy/core': 3.23.2 + '@smithy/fetch-http-handler': 5.3.9 + '@smithy/hash-node': 4.2.8 + '@smithy/invalid-dependency': 4.2.8 + '@smithy/middleware-content-length': 4.2.8 + '@smithy/middleware-endpoint': 4.4.16 + '@smithy/middleware-retry': 4.4.33 + '@smithy/middleware-serde': 4.2.9 + '@smithy/middleware-stack': 4.2.8 + '@smithy/node-config-provider': 4.3.8 + '@smithy/node-http-handler': 4.4.10 + '@smithy/protocol-http': 5.3.8 + '@smithy/smithy-client': 4.11.5 + '@smithy/types': 4.12.0 + '@smithy/url-parser': 4.2.8 '@smithy/util-base64': 4.3.0 '@smithy/util-body-length-browser': 4.2.0 '@smithy/util-body-length-node': 4.2.1 - '@smithy/util-defaults-mode-browser': 4.3.16 - '@smithy/util-defaults-mode-node': 4.2.19 - '@smithy/util-endpoints': 3.2.7 - '@smithy/util-middleware': 4.2.7 - '@smithy/util-retry': 4.2.7 - '@smithy/util-stream': 4.5.8 + '@smithy/util-defaults-mode-browser': 4.3.32 + '@smithy/util-defaults-mode-node': 4.2.35 + '@smithy/util-endpoints': 3.2.8 + '@smithy/util-middleware': 4.2.8 + '@smithy/util-retry': 4.2.8 '@smithy/util-utf8': 4.2.0 tslib: 2.8.1 transitivePeerDependencies: - aws-crt - '@aws-sdk/client-apigatewaymanagementapi@3.956.0': + '@aws-sdk/client-apigatewayv2@3.995.0': dependencies: '@aws-crypto/sha256-browser': 5.2.0 '@aws-crypto/sha256-js': 5.2.0 - '@aws-sdk/core': 3.956.0 - '@aws-sdk/credential-provider-node': 3.956.0 - '@aws-sdk/middleware-host-header': 3.956.0 - '@aws-sdk/middleware-logger': 3.956.0 - '@aws-sdk/middleware-recursion-detection': 3.956.0 - '@aws-sdk/middleware-user-agent': 3.956.0 - '@aws-sdk/region-config-resolver': 3.956.0 - '@aws-sdk/types': 3.956.0 - '@aws-sdk/util-endpoints': 3.956.0 - '@aws-sdk/util-user-agent-browser': 3.956.0 - '@aws-sdk/util-user-agent-node': 3.956.0 - '@smithy/config-resolver': 4.4.5 - '@smithy/core': 3.20.0 - '@smithy/fetch-http-handler': 5.3.8 - '@smithy/hash-node': 4.2.7 - '@smithy/invalid-dependency': 4.2.7 - '@smithy/middleware-content-length': 4.2.7 - '@smithy/middleware-endpoint': 4.4.1 - '@smithy/middleware-retry': 4.4.17 - '@smithy/middleware-serde': 4.2.8 - '@smithy/middleware-stack': 4.2.7 - '@smithy/node-config-provider': 4.3.7 - '@smithy/node-http-handler': 4.4.7 - '@smithy/protocol-http': 5.3.7 - '@smithy/smithy-client': 4.10.2 - '@smithy/types': 4.11.0 - '@smithy/url-parser': 4.2.7 + '@aws-sdk/core': 3.973.11 + '@aws-sdk/credential-provider-node': 3.972.10 + '@aws-sdk/middleware-host-header': 3.972.3 + '@aws-sdk/middleware-logger': 3.972.3 + '@aws-sdk/middleware-recursion-detection': 3.972.3 + '@aws-sdk/middleware-user-agent': 3.972.11 + '@aws-sdk/region-config-resolver': 3.972.3 + '@aws-sdk/types': 3.973.1 + '@aws-sdk/util-endpoints': 3.995.0 + '@aws-sdk/util-user-agent-browser': 3.972.3 + '@aws-sdk/util-user-agent-node': 3.972.10 + '@smithy/config-resolver': 4.4.6 + '@smithy/core': 3.23.2 + '@smithy/fetch-http-handler': 5.3.9 + '@smithy/hash-node': 4.2.8 + '@smithy/invalid-dependency': 4.2.8 + '@smithy/middleware-content-length': 4.2.8 + '@smithy/middleware-endpoint': 4.4.16 + '@smithy/middleware-retry': 4.4.33 + '@smithy/middleware-serde': 4.2.9 + '@smithy/middleware-stack': 4.2.8 + '@smithy/node-config-provider': 4.3.8 + '@smithy/node-http-handler': 4.4.10 + '@smithy/protocol-http': 5.3.8 + '@smithy/smithy-client': 4.11.5 + '@smithy/types': 4.12.0 + '@smithy/url-parser': 4.2.8 '@smithy/util-base64': 4.3.0 '@smithy/util-body-length-browser': 4.2.0 '@smithy/util-body-length-node': 4.2.1 - '@smithy/util-defaults-mode-browser': 4.3.16 - '@smithy/util-defaults-mode-node': 4.2.19 - '@smithy/util-endpoints': 3.2.7 - '@smithy/util-middleware': 4.2.7 - '@smithy/util-retry': 4.2.7 + '@smithy/util-defaults-mode-browser': 4.3.32 + '@smithy/util-defaults-mode-node': 4.2.35 + '@smithy/util-endpoints': 3.2.8 + '@smithy/util-middleware': 4.2.8 + '@smithy/util-retry': 4.2.8 + '@smithy/util-stream': 4.5.12 '@smithy/util-utf8': 4.2.0 tslib: 2.8.1 transitivePeerDependencies: - aws-crt - '@aws-sdk/client-apigatewayv2@3.956.0': + '@aws-sdk/client-athena@3.995.0': dependencies: '@aws-crypto/sha256-browser': 5.2.0 '@aws-crypto/sha256-js': 5.2.0 - '@aws-sdk/core': 3.956.0 - '@aws-sdk/credential-provider-node': 3.956.0 - '@aws-sdk/middleware-host-header': 3.956.0 - '@aws-sdk/middleware-logger': 3.956.0 - '@aws-sdk/middleware-recursion-detection': 3.956.0 - '@aws-sdk/middleware-user-agent': 3.956.0 - '@aws-sdk/region-config-resolver': 3.956.0 - '@aws-sdk/types': 3.956.0 - '@aws-sdk/util-endpoints': 3.956.0 - '@aws-sdk/util-user-agent-browser': 3.956.0 - '@aws-sdk/util-user-agent-node': 3.956.0 - '@smithy/config-resolver': 4.4.5 - '@smithy/core': 3.20.0 - '@smithy/fetch-http-handler': 5.3.8 - '@smithy/hash-node': 4.2.7 - '@smithy/invalid-dependency': 4.2.7 - '@smithy/middleware-content-length': 4.2.7 - '@smithy/middleware-endpoint': 4.4.1 - '@smithy/middleware-retry': 4.4.17 - '@smithy/middleware-serde': 4.2.8 - '@smithy/middleware-stack': 4.2.7 - '@smithy/node-config-provider': 4.3.7 - '@smithy/node-http-handler': 4.4.7 - '@smithy/protocol-http': 5.3.7 - '@smithy/smithy-client': 4.10.2 - '@smithy/types': 4.11.0 - '@smithy/url-parser': 4.2.7 + '@aws-sdk/core': 3.973.11 + '@aws-sdk/credential-provider-node': 3.972.10 + '@aws-sdk/middleware-host-header': 3.972.3 + '@aws-sdk/middleware-logger': 3.972.3 + '@aws-sdk/middleware-recursion-detection': 3.972.3 + '@aws-sdk/middleware-user-agent': 3.972.11 + '@aws-sdk/region-config-resolver': 3.972.3 + '@aws-sdk/types': 3.973.1 + '@aws-sdk/util-endpoints': 3.995.0 + '@aws-sdk/util-user-agent-browser': 3.972.3 + '@aws-sdk/util-user-agent-node': 3.972.10 + '@smithy/config-resolver': 4.4.6 + '@smithy/core': 3.23.2 + '@smithy/fetch-http-handler': 5.3.9 + '@smithy/hash-node': 4.2.8 + '@smithy/invalid-dependency': 4.2.8 + '@smithy/middleware-content-length': 4.2.8 + '@smithy/middleware-endpoint': 4.4.16 + '@smithy/middleware-retry': 4.4.33 + '@smithy/middleware-serde': 4.2.9 + '@smithy/middleware-stack': 4.2.8 + '@smithy/node-config-provider': 4.3.8 + '@smithy/node-http-handler': 4.4.10 + '@smithy/protocol-http': 5.3.8 + '@smithy/smithy-client': 4.11.5 + '@smithy/types': 4.12.0 + '@smithy/url-parser': 4.2.8 '@smithy/util-base64': 4.3.0 '@smithy/util-body-length-browser': 4.2.0 '@smithy/util-body-length-node': 4.2.1 - '@smithy/util-defaults-mode-browser': 4.3.16 - '@smithy/util-defaults-mode-node': 4.2.19 - '@smithy/util-endpoints': 3.2.7 - '@smithy/util-middleware': 4.2.7 - '@smithy/util-retry': 4.2.7 - '@smithy/util-stream': 4.5.8 + '@smithy/util-defaults-mode-browser': 4.3.32 + '@smithy/util-defaults-mode-node': 4.2.35 + '@smithy/util-endpoints': 3.2.8 + '@smithy/util-middleware': 4.2.8 + '@smithy/util-retry': 4.2.8 '@smithy/util-utf8': 4.2.0 tslib: 2.8.1 transitivePeerDependencies: - aws-crt - '@aws-sdk/client-athena@3.956.0': + '@aws-sdk/client-auto-scaling@3.995.0': dependencies: '@aws-crypto/sha256-browser': 5.2.0 '@aws-crypto/sha256-js': 5.2.0 - '@aws-sdk/core': 3.956.0 - '@aws-sdk/credential-provider-node': 3.956.0 - '@aws-sdk/middleware-host-header': 3.956.0 - '@aws-sdk/middleware-logger': 3.956.0 - '@aws-sdk/middleware-recursion-detection': 3.956.0 - '@aws-sdk/middleware-user-agent': 3.956.0 - '@aws-sdk/region-config-resolver': 3.956.0 - '@aws-sdk/types': 3.956.0 - '@aws-sdk/util-endpoints': 3.956.0 - '@aws-sdk/util-user-agent-browser': 3.956.0 - '@aws-sdk/util-user-agent-node': 3.956.0 - '@smithy/config-resolver': 4.4.5 - '@smithy/core': 3.20.0 - '@smithy/fetch-http-handler': 5.3.8 - '@smithy/hash-node': 4.2.7 - '@smithy/invalid-dependency': 4.2.7 - '@smithy/middleware-content-length': 4.2.7 - '@smithy/middleware-endpoint': 4.4.1 - '@smithy/middleware-retry': 4.4.17 - '@smithy/middleware-serde': 4.2.8 - '@smithy/middleware-stack': 4.2.7 - '@smithy/node-config-provider': 4.3.7 - '@smithy/node-http-handler': 4.4.7 - '@smithy/protocol-http': 5.3.7 - '@smithy/smithy-client': 4.10.2 - '@smithy/types': 4.11.0 - '@smithy/url-parser': 4.2.7 + '@aws-sdk/core': 3.973.11 + '@aws-sdk/credential-provider-node': 3.972.10 + '@aws-sdk/middleware-host-header': 3.972.3 + '@aws-sdk/middleware-logger': 3.972.3 + '@aws-sdk/middleware-recursion-detection': 3.972.3 + '@aws-sdk/middleware-user-agent': 3.972.11 + '@aws-sdk/region-config-resolver': 3.972.3 + '@aws-sdk/types': 3.973.1 + '@aws-sdk/util-endpoints': 3.995.0 + '@aws-sdk/util-user-agent-browser': 3.972.3 + '@aws-sdk/util-user-agent-node': 3.972.10 + '@smithy/config-resolver': 4.4.6 + '@smithy/core': 3.23.2 + '@smithy/fetch-http-handler': 5.3.9 + '@smithy/hash-node': 4.2.8 + '@smithy/invalid-dependency': 4.2.8 + '@smithy/middleware-content-length': 4.2.8 + '@smithy/middleware-endpoint': 4.4.16 + '@smithy/middleware-retry': 4.4.33 + '@smithy/middleware-serde': 4.2.9 + '@smithy/middleware-stack': 4.2.8 + '@smithy/node-config-provider': 4.3.8 + '@smithy/node-http-handler': 4.4.10 + '@smithy/protocol-http': 5.3.8 + '@smithy/smithy-client': 4.11.5 + '@smithy/types': 4.12.0 + '@smithy/url-parser': 4.2.8 '@smithy/util-base64': 4.3.0 '@smithy/util-body-length-browser': 4.2.0 '@smithy/util-body-length-node': 4.2.1 - '@smithy/util-defaults-mode-browser': 4.3.16 - '@smithy/util-defaults-mode-node': 4.2.19 - '@smithy/util-endpoints': 3.2.7 - '@smithy/util-middleware': 4.2.7 - '@smithy/util-retry': 4.2.7 + '@smithy/util-defaults-mode-browser': 4.3.32 + '@smithy/util-defaults-mode-node': 4.2.35 + '@smithy/util-endpoints': 3.2.8 + '@smithy/util-middleware': 4.2.8 + '@smithy/util-retry': 4.2.8 '@smithy/util-utf8': 4.2.0 + '@smithy/util-waiter': 4.2.8 tslib: 2.8.1 transitivePeerDependencies: - aws-crt - '@aws-sdk/client-auto-scaling@3.956.0': + '@aws-sdk/client-bedrock-runtime@3.995.0': dependencies: '@aws-crypto/sha256-browser': 5.2.0 '@aws-crypto/sha256-js': 5.2.0 - '@aws-sdk/core': 3.956.0 - '@aws-sdk/credential-provider-node': 3.956.0 - '@aws-sdk/middleware-host-header': 3.956.0 - '@aws-sdk/middleware-logger': 3.956.0 - '@aws-sdk/middleware-recursion-detection': 3.956.0 - '@aws-sdk/middleware-user-agent': 3.956.0 - '@aws-sdk/region-config-resolver': 3.956.0 - '@aws-sdk/types': 3.956.0 - '@aws-sdk/util-endpoints': 3.956.0 - '@aws-sdk/util-user-agent-browser': 3.956.0 - '@aws-sdk/util-user-agent-node': 3.956.0 - '@smithy/config-resolver': 4.4.5 - '@smithy/core': 3.20.0 - '@smithy/fetch-http-handler': 5.3.8 - '@smithy/hash-node': 4.2.7 - '@smithy/invalid-dependency': 4.2.7 - '@smithy/middleware-content-length': 4.2.7 - '@smithy/middleware-endpoint': 4.4.1 - '@smithy/middleware-retry': 4.4.17 - '@smithy/middleware-serde': 4.2.8 - '@smithy/middleware-stack': 4.2.7 - '@smithy/node-config-provider': 4.3.7 - '@smithy/node-http-handler': 4.4.7 - '@smithy/protocol-http': 5.3.7 - '@smithy/smithy-client': 4.10.2 - '@smithy/types': 4.11.0 - '@smithy/url-parser': 4.2.7 + '@aws-sdk/core': 3.973.11 + '@aws-sdk/credential-provider-node': 3.972.10 + '@aws-sdk/eventstream-handler-node': 3.972.5 + '@aws-sdk/middleware-eventstream': 3.972.3 + '@aws-sdk/middleware-host-header': 3.972.3 + '@aws-sdk/middleware-logger': 3.972.3 + '@aws-sdk/middleware-recursion-detection': 3.972.3 + '@aws-sdk/middleware-user-agent': 3.972.11 + '@aws-sdk/middleware-websocket': 3.972.6 + '@aws-sdk/region-config-resolver': 3.972.3 + '@aws-sdk/token-providers': 3.995.0 + '@aws-sdk/types': 3.973.1 + '@aws-sdk/util-endpoints': 3.995.0 + '@aws-sdk/util-user-agent-browser': 3.972.3 + '@aws-sdk/util-user-agent-node': 3.972.10 + '@smithy/config-resolver': 4.4.6 + '@smithy/core': 3.23.2 + '@smithy/eventstream-serde-browser': 4.2.8 + '@smithy/eventstream-serde-config-resolver': 4.3.8 + '@smithy/eventstream-serde-node': 4.2.8 + '@smithy/fetch-http-handler': 5.3.9 + '@smithy/hash-node': 4.2.8 + '@smithy/invalid-dependency': 4.2.8 + '@smithy/middleware-content-length': 4.2.8 + '@smithy/middleware-endpoint': 4.4.16 + '@smithy/middleware-retry': 4.4.33 + '@smithy/middleware-serde': 4.2.9 + '@smithy/middleware-stack': 4.2.8 + '@smithy/node-config-provider': 4.3.8 + '@smithy/node-http-handler': 4.4.10 + '@smithy/protocol-http': 5.3.8 + '@smithy/smithy-client': 4.11.5 + '@smithy/types': 4.12.0 + '@smithy/url-parser': 4.2.8 '@smithy/util-base64': 4.3.0 '@smithy/util-body-length-browser': 4.2.0 '@smithy/util-body-length-node': 4.2.1 - '@smithy/util-defaults-mode-browser': 4.3.16 - '@smithy/util-defaults-mode-node': 4.2.19 - '@smithy/util-endpoints': 3.2.7 - '@smithy/util-middleware': 4.2.7 - '@smithy/util-retry': 4.2.7 + '@smithy/util-defaults-mode-browser': 4.3.32 + '@smithy/util-defaults-mode-node': 4.2.35 + '@smithy/util-endpoints': 3.2.8 + '@smithy/util-middleware': 4.2.8 + '@smithy/util-retry': 4.2.8 + '@smithy/util-stream': 4.5.12 '@smithy/util-utf8': 4.2.0 - '@smithy/util-waiter': 4.2.7 tslib: 2.8.1 transitivePeerDependencies: - aws-crt - '@aws-sdk/client-bedrock-runtime@3.956.0': + '@aws-sdk/client-bedrock@3.995.0': dependencies: '@aws-crypto/sha256-browser': 5.2.0 '@aws-crypto/sha256-js': 5.2.0 - '@aws-sdk/core': 3.956.0 - '@aws-sdk/credential-provider-node': 3.956.0 - '@aws-sdk/eventstream-handler-node': 3.956.0 - '@aws-sdk/middleware-eventstream': 3.956.0 - '@aws-sdk/middleware-host-header': 3.956.0 - '@aws-sdk/middleware-logger': 3.956.0 - '@aws-sdk/middleware-recursion-detection': 3.956.0 - '@aws-sdk/middleware-user-agent': 3.956.0 - '@aws-sdk/middleware-websocket': 3.956.0 - '@aws-sdk/region-config-resolver': 3.956.0 - '@aws-sdk/token-providers': 3.956.0 - '@aws-sdk/types': 3.956.0 - '@aws-sdk/util-endpoints': 3.956.0 - '@aws-sdk/util-user-agent-browser': 3.956.0 - '@aws-sdk/util-user-agent-node': 3.956.0 - '@smithy/config-resolver': 4.4.5 - '@smithy/core': 3.20.0 - '@smithy/eventstream-serde-browser': 4.2.7 - '@smithy/eventstream-serde-config-resolver': 4.3.7 - '@smithy/eventstream-serde-node': 4.2.7 - '@smithy/fetch-http-handler': 5.3.8 - '@smithy/hash-node': 4.2.7 - '@smithy/invalid-dependency': 4.2.7 - '@smithy/middleware-content-length': 4.2.7 - '@smithy/middleware-endpoint': 4.4.1 - '@smithy/middleware-retry': 4.4.17 - '@smithy/middleware-serde': 4.2.8 - '@smithy/middleware-stack': 4.2.7 - '@smithy/node-config-provider': 4.3.7 - '@smithy/node-http-handler': 4.4.7 - '@smithy/protocol-http': 5.3.7 - '@smithy/smithy-client': 4.10.2 - '@smithy/types': 4.11.0 - '@smithy/url-parser': 4.2.7 + '@aws-sdk/core': 3.973.11 + '@aws-sdk/credential-provider-node': 3.972.10 + '@aws-sdk/middleware-host-header': 3.972.3 + '@aws-sdk/middleware-logger': 3.972.3 + '@aws-sdk/middleware-recursion-detection': 3.972.3 + '@aws-sdk/middleware-user-agent': 3.972.11 + '@aws-sdk/region-config-resolver': 3.972.3 + '@aws-sdk/token-providers': 3.995.0 + '@aws-sdk/types': 3.973.1 + '@aws-sdk/util-endpoints': 3.995.0 + '@aws-sdk/util-user-agent-browser': 3.972.3 + '@aws-sdk/util-user-agent-node': 3.972.10 + '@smithy/config-resolver': 4.4.6 + '@smithy/core': 3.23.2 + '@smithy/fetch-http-handler': 5.3.9 + '@smithy/hash-node': 4.2.8 + '@smithy/invalid-dependency': 4.2.8 + '@smithy/middleware-content-length': 4.2.8 + '@smithy/middleware-endpoint': 4.4.16 + '@smithy/middleware-retry': 4.4.33 + '@smithy/middleware-serde': 4.2.9 + '@smithy/middleware-stack': 4.2.8 + '@smithy/node-config-provider': 4.3.8 + '@smithy/node-http-handler': 4.4.10 + '@smithy/protocol-http': 5.3.8 + '@smithy/smithy-client': 4.11.5 + '@smithy/types': 4.12.0 + '@smithy/url-parser': 4.2.8 '@smithy/util-base64': 4.3.0 '@smithy/util-body-length-browser': 4.2.0 '@smithy/util-body-length-node': 4.2.1 - '@smithy/util-defaults-mode-browser': 4.3.16 - '@smithy/util-defaults-mode-node': 4.2.19 - '@smithy/util-endpoints': 3.2.7 - '@smithy/util-middleware': 4.2.7 - '@smithy/util-retry': 4.2.7 - '@smithy/util-stream': 4.5.8 + '@smithy/util-defaults-mode-browser': 4.3.32 + '@smithy/util-defaults-mode-node': 4.2.35 + '@smithy/util-endpoints': 3.2.8 + '@smithy/util-middleware': 4.2.8 + '@smithy/util-retry': 4.2.8 '@smithy/util-utf8': 4.2.0 tslib: 2.8.1 transitivePeerDependencies: - aws-crt - '@aws-sdk/client-bedrock@3.956.0': + '@aws-sdk/client-cloudformation@3.995.0': dependencies: '@aws-crypto/sha256-browser': 5.2.0 '@aws-crypto/sha256-js': 5.2.0 - '@aws-sdk/core': 3.956.0 - '@aws-sdk/credential-provider-node': 3.956.0 - '@aws-sdk/middleware-host-header': 3.956.0 - '@aws-sdk/middleware-logger': 3.956.0 - '@aws-sdk/middleware-recursion-detection': 3.956.0 - '@aws-sdk/middleware-user-agent': 3.956.0 - '@aws-sdk/region-config-resolver': 3.956.0 - '@aws-sdk/token-providers': 3.956.0 - '@aws-sdk/types': 3.956.0 - '@aws-sdk/util-endpoints': 3.956.0 - '@aws-sdk/util-user-agent-browser': 3.956.0 - '@aws-sdk/util-user-agent-node': 3.956.0 - '@smithy/config-resolver': 4.4.5 - '@smithy/core': 3.20.0 - '@smithy/fetch-http-handler': 5.3.8 - '@smithy/hash-node': 4.2.7 - '@smithy/invalid-dependency': 4.2.7 - '@smithy/middleware-content-length': 4.2.7 - '@smithy/middleware-endpoint': 4.4.1 - '@smithy/middleware-retry': 4.4.17 - '@smithy/middleware-serde': 4.2.8 - '@smithy/middleware-stack': 4.2.7 - '@smithy/node-config-provider': 4.3.7 - '@smithy/node-http-handler': 4.4.7 - '@smithy/protocol-http': 5.3.7 - '@smithy/smithy-client': 4.10.2 - '@smithy/types': 4.11.0 - '@smithy/url-parser': 4.2.7 + '@aws-sdk/core': 3.973.11 + '@aws-sdk/credential-provider-node': 3.972.10 + '@aws-sdk/middleware-host-header': 3.972.3 + '@aws-sdk/middleware-logger': 3.972.3 + '@aws-sdk/middleware-recursion-detection': 3.972.3 + '@aws-sdk/middleware-user-agent': 3.972.11 + '@aws-sdk/region-config-resolver': 3.972.3 + '@aws-sdk/types': 3.973.1 + '@aws-sdk/util-endpoints': 3.995.0 + '@aws-sdk/util-user-agent-browser': 3.972.3 + '@aws-sdk/util-user-agent-node': 3.972.10 + '@smithy/config-resolver': 4.4.6 + '@smithy/core': 3.23.2 + '@smithy/fetch-http-handler': 5.3.9 + '@smithy/hash-node': 4.2.8 + '@smithy/invalid-dependency': 4.2.8 + '@smithy/middleware-content-length': 4.2.8 + '@smithy/middleware-endpoint': 4.4.16 + '@smithy/middleware-retry': 4.4.33 + '@smithy/middleware-serde': 4.2.9 + '@smithy/middleware-stack': 4.2.8 + '@smithy/node-config-provider': 4.3.8 + '@smithy/node-http-handler': 4.4.10 + '@smithy/protocol-http': 5.3.8 + '@smithy/smithy-client': 4.11.5 + '@smithy/types': 4.12.0 + '@smithy/url-parser': 4.2.8 '@smithy/util-base64': 4.3.0 '@smithy/util-body-length-browser': 4.2.0 '@smithy/util-body-length-node': 4.2.1 - '@smithy/util-defaults-mode-browser': 4.3.16 - '@smithy/util-defaults-mode-node': 4.2.19 - '@smithy/util-endpoints': 3.2.7 - '@smithy/util-middleware': 4.2.7 - '@smithy/util-retry': 4.2.7 + '@smithy/util-defaults-mode-browser': 4.3.32 + '@smithy/util-defaults-mode-node': 4.2.35 + '@smithy/util-endpoints': 3.2.8 + '@smithy/util-middleware': 4.2.8 + '@smithy/util-retry': 4.2.8 '@smithy/util-utf8': 4.2.0 + '@smithy/util-waiter': 4.2.8 tslib: 2.8.1 transitivePeerDependencies: - aws-crt - '@aws-sdk/client-cloudformation@3.956.0': + '@aws-sdk/client-cloudsearch@3.995.0': dependencies: '@aws-crypto/sha256-browser': 5.2.0 '@aws-crypto/sha256-js': 5.2.0 - '@aws-sdk/core': 3.956.0 - '@aws-sdk/credential-provider-node': 3.956.0 - '@aws-sdk/middleware-host-header': 3.956.0 - '@aws-sdk/middleware-logger': 3.956.0 - '@aws-sdk/middleware-recursion-detection': 3.956.0 - '@aws-sdk/middleware-user-agent': 3.956.0 - '@aws-sdk/region-config-resolver': 3.956.0 - '@aws-sdk/types': 3.956.0 - '@aws-sdk/util-endpoints': 3.956.0 - '@aws-sdk/util-user-agent-browser': 3.956.0 - '@aws-sdk/util-user-agent-node': 3.956.0 - '@smithy/config-resolver': 4.4.5 - '@smithy/core': 3.20.0 - '@smithy/fetch-http-handler': 5.3.8 - '@smithy/hash-node': 4.2.7 - '@smithy/invalid-dependency': 4.2.7 - '@smithy/middleware-content-length': 4.2.7 - '@smithy/middleware-endpoint': 4.4.1 - '@smithy/middleware-retry': 4.4.17 - '@smithy/middleware-serde': 4.2.8 - '@smithy/middleware-stack': 4.2.7 - '@smithy/node-config-provider': 4.3.7 - '@smithy/node-http-handler': 4.4.7 - '@smithy/protocol-http': 5.3.7 - '@smithy/smithy-client': 4.10.2 - '@smithy/types': 4.11.0 - '@smithy/url-parser': 4.2.7 + '@aws-sdk/core': 3.973.11 + '@aws-sdk/credential-provider-node': 3.972.10 + '@aws-sdk/middleware-host-header': 3.972.3 + '@aws-sdk/middleware-logger': 3.972.3 + '@aws-sdk/middleware-recursion-detection': 3.972.3 + '@aws-sdk/middleware-user-agent': 3.972.11 + '@aws-sdk/region-config-resolver': 3.972.3 + '@aws-sdk/types': 3.973.1 + '@aws-sdk/util-endpoints': 3.995.0 + '@aws-sdk/util-user-agent-browser': 3.972.3 + '@aws-sdk/util-user-agent-node': 3.972.10 + '@smithy/config-resolver': 4.4.6 + '@smithy/core': 3.23.2 + '@smithy/fetch-http-handler': 5.3.9 + '@smithy/hash-node': 4.2.8 + '@smithy/invalid-dependency': 4.2.8 + '@smithy/middleware-content-length': 4.2.8 + '@smithy/middleware-endpoint': 4.4.16 + '@smithy/middleware-retry': 4.4.33 + '@smithy/middleware-serde': 4.2.9 + '@smithy/middleware-stack': 4.2.8 + '@smithy/node-config-provider': 4.3.8 + '@smithy/node-http-handler': 4.4.10 + '@smithy/protocol-http': 5.3.8 + '@smithy/smithy-client': 4.11.5 + '@smithy/types': 4.12.0 + '@smithy/url-parser': 4.2.8 '@smithy/util-base64': 4.3.0 '@smithy/util-body-length-browser': 4.2.0 '@smithy/util-body-length-node': 4.2.1 - '@smithy/util-defaults-mode-browser': 4.3.16 - '@smithy/util-defaults-mode-node': 4.2.19 - '@smithy/util-endpoints': 3.2.7 - '@smithy/util-middleware': 4.2.7 - '@smithy/util-retry': 4.2.7 + '@smithy/util-defaults-mode-browser': 4.3.32 + '@smithy/util-defaults-mode-node': 4.2.35 + '@smithy/util-endpoints': 3.2.8 + '@smithy/util-middleware': 4.2.8 + '@smithy/util-retry': 4.2.8 '@smithy/util-utf8': 4.2.0 - '@smithy/util-waiter': 4.2.7 tslib: 2.8.1 transitivePeerDependencies: - aws-crt - '@aws-sdk/client-cloudsearch@3.956.0': + '@aws-sdk/client-cloudtrail@3.995.0': dependencies: '@aws-crypto/sha256-browser': 5.2.0 '@aws-crypto/sha256-js': 5.2.0 - '@aws-sdk/core': 3.956.0 - '@aws-sdk/credential-provider-node': 3.956.0 - '@aws-sdk/middleware-host-header': 3.956.0 - '@aws-sdk/middleware-logger': 3.956.0 - '@aws-sdk/middleware-recursion-detection': 3.956.0 - '@aws-sdk/middleware-user-agent': 3.956.0 - '@aws-sdk/region-config-resolver': 3.956.0 - '@aws-sdk/types': 3.956.0 - '@aws-sdk/util-endpoints': 3.956.0 - '@aws-sdk/util-user-agent-browser': 3.956.0 - '@aws-sdk/util-user-agent-node': 3.956.0 - '@smithy/config-resolver': 4.4.5 - '@smithy/core': 3.20.0 - '@smithy/fetch-http-handler': 5.3.8 - '@smithy/hash-node': 4.2.7 - '@smithy/invalid-dependency': 4.2.7 - '@smithy/middleware-content-length': 4.2.7 - '@smithy/middleware-endpoint': 4.4.1 - '@smithy/middleware-retry': 4.4.17 - '@smithy/middleware-serde': 4.2.8 - '@smithy/middleware-stack': 4.2.7 - '@smithy/node-config-provider': 4.3.7 - '@smithy/node-http-handler': 4.4.7 - '@smithy/protocol-http': 5.3.7 - '@smithy/smithy-client': 4.10.2 - '@smithy/types': 4.11.0 - '@smithy/url-parser': 4.2.7 + '@aws-sdk/core': 3.973.11 + '@aws-sdk/credential-provider-node': 3.972.10 + '@aws-sdk/middleware-host-header': 3.972.3 + '@aws-sdk/middleware-logger': 3.972.3 + '@aws-sdk/middleware-recursion-detection': 3.972.3 + '@aws-sdk/middleware-user-agent': 3.972.11 + '@aws-sdk/region-config-resolver': 3.972.3 + '@aws-sdk/types': 3.973.1 + '@aws-sdk/util-endpoints': 3.995.0 + '@aws-sdk/util-user-agent-browser': 3.972.3 + '@aws-sdk/util-user-agent-node': 3.972.10 + '@smithy/config-resolver': 4.4.6 + '@smithy/core': 3.23.2 + '@smithy/fetch-http-handler': 5.3.9 + '@smithy/hash-node': 4.2.8 + '@smithy/invalid-dependency': 4.2.8 + '@smithy/middleware-content-length': 4.2.8 + '@smithy/middleware-endpoint': 4.4.16 + '@smithy/middleware-retry': 4.4.33 + '@smithy/middleware-serde': 4.2.9 + '@smithy/middleware-stack': 4.2.8 + '@smithy/node-config-provider': 4.3.8 + '@smithy/node-http-handler': 4.4.10 + '@smithy/protocol-http': 5.3.8 + '@smithy/smithy-client': 4.11.5 + '@smithy/types': 4.12.0 + '@smithy/url-parser': 4.2.8 '@smithy/util-base64': 4.3.0 '@smithy/util-body-length-browser': 4.2.0 '@smithy/util-body-length-node': 4.2.1 - '@smithy/util-defaults-mode-browser': 4.3.16 - '@smithy/util-defaults-mode-node': 4.2.19 - '@smithy/util-endpoints': 3.2.7 - '@smithy/util-middleware': 4.2.7 - '@smithy/util-retry': 4.2.7 + '@smithy/util-defaults-mode-browser': 4.3.32 + '@smithy/util-defaults-mode-node': 4.2.35 + '@smithy/util-endpoints': 3.2.8 + '@smithy/util-middleware': 4.2.8 + '@smithy/util-retry': 4.2.8 '@smithy/util-utf8': 4.2.0 tslib: 2.8.1 transitivePeerDependencies: - aws-crt - '@aws-sdk/client-cloudtrail@3.956.0': + '@aws-sdk/client-cloudwatch-events@3.995.0': dependencies: '@aws-crypto/sha256-browser': 5.2.0 '@aws-crypto/sha256-js': 5.2.0 - '@aws-sdk/core': 3.956.0 - '@aws-sdk/credential-provider-node': 3.956.0 - '@aws-sdk/middleware-host-header': 3.956.0 - '@aws-sdk/middleware-logger': 3.956.0 - '@aws-sdk/middleware-recursion-detection': 3.956.0 - '@aws-sdk/middleware-user-agent': 3.956.0 - '@aws-sdk/region-config-resolver': 3.956.0 - '@aws-sdk/types': 3.956.0 - '@aws-sdk/util-endpoints': 3.956.0 - '@aws-sdk/util-user-agent-browser': 3.956.0 - '@aws-sdk/util-user-agent-node': 3.956.0 - '@smithy/config-resolver': 4.4.5 - '@smithy/core': 3.20.0 - '@smithy/fetch-http-handler': 5.3.8 - '@smithy/hash-node': 4.2.7 - '@smithy/invalid-dependency': 4.2.7 - '@smithy/middleware-content-length': 4.2.7 - '@smithy/middleware-endpoint': 4.4.1 - '@smithy/middleware-retry': 4.4.17 - '@smithy/middleware-serde': 4.2.8 - '@smithy/middleware-stack': 4.2.7 - '@smithy/node-config-provider': 4.3.7 - '@smithy/node-http-handler': 4.4.7 - '@smithy/protocol-http': 5.3.7 - '@smithy/smithy-client': 4.10.2 - '@smithy/types': 4.11.0 - '@smithy/url-parser': 4.2.7 + '@aws-sdk/core': 3.973.11 + '@aws-sdk/credential-provider-node': 3.972.10 + '@aws-sdk/middleware-host-header': 3.972.3 + '@aws-sdk/middleware-logger': 3.972.3 + '@aws-sdk/middleware-recursion-detection': 3.972.3 + '@aws-sdk/middleware-user-agent': 3.972.11 + '@aws-sdk/region-config-resolver': 3.972.3 + '@aws-sdk/types': 3.973.1 + '@aws-sdk/util-endpoints': 3.995.0 + '@aws-sdk/util-user-agent-browser': 3.972.3 + '@aws-sdk/util-user-agent-node': 3.972.10 + '@smithy/config-resolver': 4.4.6 + '@smithy/core': 3.23.2 + '@smithy/fetch-http-handler': 5.3.9 + '@smithy/hash-node': 4.2.8 + '@smithy/invalid-dependency': 4.2.8 + '@smithy/middleware-content-length': 4.2.8 + '@smithy/middleware-endpoint': 4.4.16 + '@smithy/middleware-retry': 4.4.33 + '@smithy/middleware-serde': 4.2.9 + '@smithy/middleware-stack': 4.2.8 + '@smithy/node-config-provider': 4.3.8 + '@smithy/node-http-handler': 4.4.10 + '@smithy/protocol-http': 5.3.8 + '@smithy/smithy-client': 4.11.5 + '@smithy/types': 4.12.0 + '@smithy/url-parser': 4.2.8 '@smithy/util-base64': 4.3.0 '@smithy/util-body-length-browser': 4.2.0 '@smithy/util-body-length-node': 4.2.1 - '@smithy/util-defaults-mode-browser': 4.3.16 - '@smithy/util-defaults-mode-node': 4.2.19 - '@smithy/util-endpoints': 3.2.7 - '@smithy/util-middleware': 4.2.7 - '@smithy/util-retry': 4.2.7 + '@smithy/util-defaults-mode-browser': 4.3.32 + '@smithy/util-defaults-mode-node': 4.2.35 + '@smithy/util-endpoints': 3.2.8 + '@smithy/util-middleware': 4.2.8 + '@smithy/util-retry': 4.2.8 '@smithy/util-utf8': 4.2.0 tslib: 2.8.1 transitivePeerDependencies: - aws-crt - '@aws-sdk/client-cloudwatch-events@3.956.0': + '@aws-sdk/client-cloudwatch-logs@3.995.0': dependencies: '@aws-crypto/sha256-browser': 5.2.0 '@aws-crypto/sha256-js': 5.2.0 - '@aws-sdk/core': 3.956.0 - '@aws-sdk/credential-provider-node': 3.956.0 - '@aws-sdk/middleware-host-header': 3.956.0 - '@aws-sdk/middleware-logger': 3.956.0 - '@aws-sdk/middleware-recursion-detection': 3.956.0 - '@aws-sdk/middleware-user-agent': 3.956.0 - '@aws-sdk/region-config-resolver': 3.956.0 - '@aws-sdk/types': 3.956.0 - '@aws-sdk/util-endpoints': 3.956.0 - '@aws-sdk/util-user-agent-browser': 3.956.0 - '@aws-sdk/util-user-agent-node': 3.956.0 - '@smithy/config-resolver': 4.4.5 - '@smithy/core': 3.20.0 - '@smithy/fetch-http-handler': 5.3.8 - '@smithy/hash-node': 4.2.7 - '@smithy/invalid-dependency': 4.2.7 - '@smithy/middleware-content-length': 4.2.7 - '@smithy/middleware-endpoint': 4.4.1 - '@smithy/middleware-retry': 4.4.17 - '@smithy/middleware-serde': 4.2.8 - '@smithy/middleware-stack': 4.2.7 - '@smithy/node-config-provider': 4.3.7 - '@smithy/node-http-handler': 4.4.7 - '@smithy/protocol-http': 5.3.7 - '@smithy/smithy-client': 4.10.2 - '@smithy/types': 4.11.0 - '@smithy/url-parser': 4.2.7 + '@aws-sdk/core': 3.973.11 + '@aws-sdk/credential-provider-node': 3.972.10 + '@aws-sdk/middleware-host-header': 3.972.3 + '@aws-sdk/middleware-logger': 3.972.3 + '@aws-sdk/middleware-recursion-detection': 3.972.3 + '@aws-sdk/middleware-user-agent': 3.972.11 + '@aws-sdk/region-config-resolver': 3.972.3 + '@aws-sdk/types': 3.973.1 + '@aws-sdk/util-endpoints': 3.995.0 + '@aws-sdk/util-user-agent-browser': 3.972.3 + '@aws-sdk/util-user-agent-node': 3.972.10 + '@smithy/config-resolver': 4.4.6 + '@smithy/core': 3.23.2 + '@smithy/eventstream-serde-browser': 4.2.8 + '@smithy/eventstream-serde-config-resolver': 4.3.8 + '@smithy/eventstream-serde-node': 4.2.8 + '@smithy/fetch-http-handler': 5.3.9 + '@smithy/hash-node': 4.2.8 + '@smithy/invalid-dependency': 4.2.8 + '@smithy/middleware-content-length': 4.2.8 + '@smithy/middleware-endpoint': 4.4.16 + '@smithy/middleware-retry': 4.4.33 + '@smithy/middleware-serde': 4.2.9 + '@smithy/middleware-stack': 4.2.8 + '@smithy/node-config-provider': 4.3.8 + '@smithy/node-http-handler': 4.4.10 + '@smithy/protocol-http': 5.3.8 + '@smithy/smithy-client': 4.11.5 + '@smithy/types': 4.12.0 + '@smithy/url-parser': 4.2.8 '@smithy/util-base64': 4.3.0 '@smithy/util-body-length-browser': 4.2.0 '@smithy/util-body-length-node': 4.2.1 - '@smithy/util-defaults-mode-browser': 4.3.16 - '@smithy/util-defaults-mode-node': 4.2.19 - '@smithy/util-endpoints': 3.2.7 - '@smithy/util-middleware': 4.2.7 - '@smithy/util-retry': 4.2.7 + '@smithy/util-defaults-mode-browser': 4.3.32 + '@smithy/util-defaults-mode-node': 4.2.35 + '@smithy/util-endpoints': 3.2.8 + '@smithy/util-middleware': 4.2.8 + '@smithy/util-retry': 4.2.8 '@smithy/util-utf8': 4.2.0 tslib: 2.8.1 transitivePeerDependencies: - aws-crt - '@aws-sdk/client-cloudwatch-logs@3.956.0': + '@aws-sdk/client-cloudwatch@3.995.0': dependencies: '@aws-crypto/sha256-browser': 5.2.0 '@aws-crypto/sha256-js': 5.2.0 - '@aws-sdk/core': 3.956.0 - '@aws-sdk/credential-provider-node': 3.956.0 - '@aws-sdk/middleware-host-header': 3.956.0 - '@aws-sdk/middleware-logger': 3.956.0 - '@aws-sdk/middleware-recursion-detection': 3.956.0 - '@aws-sdk/middleware-user-agent': 3.956.0 - '@aws-sdk/region-config-resolver': 3.956.0 - '@aws-sdk/types': 3.956.0 - '@aws-sdk/util-endpoints': 3.956.0 - '@aws-sdk/util-user-agent-browser': 3.956.0 - '@aws-sdk/util-user-agent-node': 3.956.0 - '@smithy/config-resolver': 4.4.5 - '@smithy/core': 3.20.0 - '@smithy/eventstream-serde-browser': 4.2.7 - '@smithy/eventstream-serde-config-resolver': 4.3.7 - '@smithy/eventstream-serde-node': 4.2.7 - '@smithy/fetch-http-handler': 5.3.8 - '@smithy/hash-node': 4.2.7 - '@smithy/invalid-dependency': 4.2.7 - '@smithy/middleware-content-length': 4.2.7 - '@smithy/middleware-endpoint': 4.4.1 - '@smithy/middleware-retry': 4.4.17 - '@smithy/middleware-serde': 4.2.8 - '@smithy/middleware-stack': 4.2.7 - '@smithy/node-config-provider': 4.3.7 - '@smithy/node-http-handler': 4.4.7 - '@smithy/protocol-http': 5.3.7 - '@smithy/smithy-client': 4.10.2 - '@smithy/types': 4.11.0 - '@smithy/url-parser': 4.2.7 + '@aws-sdk/core': 3.973.11 + '@aws-sdk/credential-provider-node': 3.972.10 + '@aws-sdk/middleware-host-header': 3.972.3 + '@aws-sdk/middleware-logger': 3.972.3 + '@aws-sdk/middleware-recursion-detection': 3.972.3 + '@aws-sdk/middleware-user-agent': 3.972.11 + '@aws-sdk/region-config-resolver': 3.972.3 + '@aws-sdk/types': 3.973.1 + '@aws-sdk/util-endpoints': 3.995.0 + '@aws-sdk/util-user-agent-browser': 3.972.3 + '@aws-sdk/util-user-agent-node': 3.972.10 + '@smithy/config-resolver': 4.4.6 + '@smithy/core': 3.23.2 + '@smithy/fetch-http-handler': 5.3.9 + '@smithy/hash-node': 4.2.8 + '@smithy/invalid-dependency': 4.2.8 + '@smithy/middleware-compression': 4.3.31 + '@smithy/middleware-content-length': 4.2.8 + '@smithy/middleware-endpoint': 4.4.16 + '@smithy/middleware-retry': 4.4.33 + '@smithy/middleware-serde': 4.2.9 + '@smithy/middleware-stack': 4.2.8 + '@smithy/node-config-provider': 4.3.8 + '@smithy/node-http-handler': 4.4.10 + '@smithy/protocol-http': 5.3.8 + '@smithy/smithy-client': 4.11.5 + '@smithy/types': 4.12.0 + '@smithy/url-parser': 4.2.8 '@smithy/util-base64': 4.3.0 '@smithy/util-body-length-browser': 4.2.0 '@smithy/util-body-length-node': 4.2.1 - '@smithy/util-defaults-mode-browser': 4.3.16 - '@smithy/util-defaults-mode-node': 4.2.19 - '@smithy/util-endpoints': 3.2.7 - '@smithy/util-middleware': 4.2.7 - '@smithy/util-retry': 4.2.7 + '@smithy/util-defaults-mode-browser': 4.3.32 + '@smithy/util-defaults-mode-node': 4.2.35 + '@smithy/util-endpoints': 3.2.8 + '@smithy/util-middleware': 4.2.8 + '@smithy/util-retry': 4.2.8 '@smithy/util-utf8': 4.2.0 + '@smithy/util-waiter': 4.2.8 tslib: 2.8.1 transitivePeerDependencies: - aws-crt - '@aws-sdk/client-cloudwatch@3.956.0': + '@aws-sdk/client-codedeploy@3.995.0': dependencies: '@aws-crypto/sha256-browser': 5.2.0 '@aws-crypto/sha256-js': 5.2.0 - '@aws-sdk/core': 3.956.0 - '@aws-sdk/credential-provider-node': 3.956.0 - '@aws-sdk/middleware-host-header': 3.956.0 - '@aws-sdk/middleware-logger': 3.956.0 - '@aws-sdk/middleware-recursion-detection': 3.956.0 - '@aws-sdk/middleware-user-agent': 3.956.0 - '@aws-sdk/region-config-resolver': 3.956.0 - '@aws-sdk/types': 3.956.0 - '@aws-sdk/util-endpoints': 3.956.0 - '@aws-sdk/util-user-agent-browser': 3.956.0 - '@aws-sdk/util-user-agent-node': 3.956.0 - '@smithy/config-resolver': 4.4.5 - '@smithy/core': 3.20.0 - '@smithy/fetch-http-handler': 5.3.8 - '@smithy/hash-node': 4.2.7 - '@smithy/invalid-dependency': 4.2.7 - '@smithy/middleware-compression': 4.3.16 - '@smithy/middleware-content-length': 4.2.7 - '@smithy/middleware-endpoint': 4.4.1 - '@smithy/middleware-retry': 4.4.17 - '@smithy/middleware-serde': 4.2.8 - '@smithy/middleware-stack': 4.2.7 - '@smithy/node-config-provider': 4.3.7 - '@smithy/node-http-handler': 4.4.7 - '@smithy/protocol-http': 5.3.7 - '@smithy/smithy-client': 4.10.2 - '@smithy/types': 4.11.0 - '@smithy/url-parser': 4.2.7 + '@aws-sdk/core': 3.973.11 + '@aws-sdk/credential-provider-node': 3.972.10 + '@aws-sdk/middleware-host-header': 3.972.3 + '@aws-sdk/middleware-logger': 3.972.3 + '@aws-sdk/middleware-recursion-detection': 3.972.3 + '@aws-sdk/middleware-user-agent': 3.972.11 + '@aws-sdk/region-config-resolver': 3.972.3 + '@aws-sdk/types': 3.973.1 + '@aws-sdk/util-endpoints': 3.995.0 + '@aws-sdk/util-user-agent-browser': 3.972.3 + '@aws-sdk/util-user-agent-node': 3.972.10 + '@smithy/config-resolver': 4.4.6 + '@smithy/core': 3.23.2 + '@smithy/fetch-http-handler': 5.3.9 + '@smithy/hash-node': 4.2.8 + '@smithy/invalid-dependency': 4.2.8 + '@smithy/middleware-content-length': 4.2.8 + '@smithy/middleware-endpoint': 4.4.16 + '@smithy/middleware-retry': 4.4.33 + '@smithy/middleware-serde': 4.2.9 + '@smithy/middleware-stack': 4.2.8 + '@smithy/node-config-provider': 4.3.8 + '@smithy/node-http-handler': 4.4.10 + '@smithy/protocol-http': 5.3.8 + '@smithy/smithy-client': 4.11.5 + '@smithy/types': 4.12.0 + '@smithy/url-parser': 4.2.8 '@smithy/util-base64': 4.3.0 '@smithy/util-body-length-browser': 4.2.0 '@smithy/util-body-length-node': 4.2.1 - '@smithy/util-defaults-mode-browser': 4.3.16 - '@smithy/util-defaults-mode-node': 4.2.19 - '@smithy/util-endpoints': 3.2.7 - '@smithy/util-middleware': 4.2.7 - '@smithy/util-retry': 4.2.7 + '@smithy/util-defaults-mode-browser': 4.3.32 + '@smithy/util-defaults-mode-node': 4.2.35 + '@smithy/util-endpoints': 3.2.8 + '@smithy/util-middleware': 4.2.8 + '@smithy/util-retry': 4.2.8 '@smithy/util-utf8': 4.2.0 - '@smithy/util-waiter': 4.2.7 + '@smithy/util-waiter': 4.2.8 tslib: 2.8.1 transitivePeerDependencies: - aws-crt - '@aws-sdk/client-codedeploy@3.956.0': + '@aws-sdk/client-cognito-identity-provider@3.995.0': dependencies: '@aws-crypto/sha256-browser': 5.2.0 '@aws-crypto/sha256-js': 5.2.0 - '@aws-sdk/core': 3.956.0 - '@aws-sdk/credential-provider-node': 3.956.0 - '@aws-sdk/middleware-host-header': 3.956.0 - '@aws-sdk/middleware-logger': 3.956.0 - '@aws-sdk/middleware-recursion-detection': 3.956.0 - '@aws-sdk/middleware-user-agent': 3.956.0 - '@aws-sdk/region-config-resolver': 3.956.0 - '@aws-sdk/types': 3.956.0 - '@aws-sdk/util-endpoints': 3.956.0 - '@aws-sdk/util-user-agent-browser': 3.956.0 - '@aws-sdk/util-user-agent-node': 3.956.0 - '@smithy/config-resolver': 4.4.5 - '@smithy/core': 3.20.0 - '@smithy/fetch-http-handler': 5.3.8 - '@smithy/hash-node': 4.2.7 - '@smithy/invalid-dependency': 4.2.7 - '@smithy/middleware-content-length': 4.2.7 - '@smithy/middleware-endpoint': 4.4.1 - '@smithy/middleware-retry': 4.4.17 - '@smithy/middleware-serde': 4.2.8 - '@smithy/middleware-stack': 4.2.7 - '@smithy/node-config-provider': 4.3.7 - '@smithy/node-http-handler': 4.4.7 - '@smithy/protocol-http': 5.3.7 - '@smithy/smithy-client': 4.10.2 - '@smithy/types': 4.11.0 - '@smithy/url-parser': 4.2.7 + '@aws-sdk/core': 3.973.11 + '@aws-sdk/credential-provider-node': 3.972.10 + '@aws-sdk/middleware-host-header': 3.972.3 + '@aws-sdk/middleware-logger': 3.972.3 + '@aws-sdk/middleware-recursion-detection': 3.972.3 + '@aws-sdk/middleware-user-agent': 3.972.11 + '@aws-sdk/region-config-resolver': 3.972.3 + '@aws-sdk/types': 3.973.1 + '@aws-sdk/util-endpoints': 3.995.0 + '@aws-sdk/util-user-agent-browser': 3.972.3 + '@aws-sdk/util-user-agent-node': 3.972.10 + '@smithy/config-resolver': 4.4.6 + '@smithy/core': 3.23.2 + '@smithy/fetch-http-handler': 5.3.9 + '@smithy/hash-node': 4.2.8 + '@smithy/invalid-dependency': 4.2.8 + '@smithy/middleware-content-length': 4.2.8 + '@smithy/middleware-endpoint': 4.4.16 + '@smithy/middleware-retry': 4.4.33 + '@smithy/middleware-serde': 4.2.9 + '@smithy/middleware-stack': 4.2.8 + '@smithy/node-config-provider': 4.3.8 + '@smithy/node-http-handler': 4.4.10 + '@smithy/protocol-http': 5.3.8 + '@smithy/smithy-client': 4.11.5 + '@smithy/types': 4.12.0 + '@smithy/url-parser': 4.2.8 '@smithy/util-base64': 4.3.0 '@smithy/util-body-length-browser': 4.2.0 '@smithy/util-body-length-node': 4.2.1 - '@smithy/util-defaults-mode-browser': 4.3.16 - '@smithy/util-defaults-mode-node': 4.2.19 - '@smithy/util-endpoints': 3.2.7 - '@smithy/util-middleware': 4.2.7 - '@smithy/util-retry': 4.2.7 + '@smithy/util-defaults-mode-browser': 4.3.32 + '@smithy/util-defaults-mode-node': 4.2.35 + '@smithy/util-endpoints': 3.2.8 + '@smithy/util-middleware': 4.2.8 + '@smithy/util-retry': 4.2.8 '@smithy/util-utf8': 4.2.0 - '@smithy/util-waiter': 4.2.7 tslib: 2.8.1 transitivePeerDependencies: - aws-crt - '@aws-sdk/client-cognito-identity-provider@3.956.0': + '@aws-sdk/client-cognito-identity@3.980.0': dependencies: '@aws-crypto/sha256-browser': 5.2.0 '@aws-crypto/sha256-js': 5.2.0 - '@aws-sdk/core': 3.956.0 - '@aws-sdk/credential-provider-node': 3.956.0 - '@aws-sdk/middleware-host-header': 3.956.0 - '@aws-sdk/middleware-logger': 3.956.0 - '@aws-sdk/middleware-recursion-detection': 3.956.0 - '@aws-sdk/middleware-user-agent': 3.956.0 - '@aws-sdk/region-config-resolver': 3.956.0 - '@aws-sdk/types': 3.956.0 - '@aws-sdk/util-endpoints': 3.956.0 - '@aws-sdk/util-user-agent-browser': 3.956.0 - '@aws-sdk/util-user-agent-node': 3.956.0 - '@smithy/config-resolver': 4.4.5 - '@smithy/core': 3.20.0 - '@smithy/fetch-http-handler': 5.3.8 - '@smithy/hash-node': 4.2.7 - '@smithy/invalid-dependency': 4.2.7 - '@smithy/middleware-content-length': 4.2.7 - '@smithy/middleware-endpoint': 4.4.1 - '@smithy/middleware-retry': 4.4.17 - '@smithy/middleware-serde': 4.2.8 - '@smithy/middleware-stack': 4.2.7 - '@smithy/node-config-provider': 4.3.7 - '@smithy/node-http-handler': 4.4.7 - '@smithy/protocol-http': 5.3.7 - '@smithy/smithy-client': 4.10.2 - '@smithy/types': 4.11.0 - '@smithy/url-parser': 4.2.7 + '@aws-sdk/core': 3.973.11 + '@aws-sdk/credential-provider-node': 3.972.10 + '@aws-sdk/middleware-host-header': 3.972.3 + '@aws-sdk/middleware-logger': 3.972.3 + '@aws-sdk/middleware-recursion-detection': 3.972.3 + '@aws-sdk/middleware-user-agent': 3.972.11 + '@aws-sdk/region-config-resolver': 3.972.3 + '@aws-sdk/types': 3.973.1 + '@aws-sdk/util-endpoints': 3.980.0 + '@aws-sdk/util-user-agent-browser': 3.972.3 + '@aws-sdk/util-user-agent-node': 3.972.10 + '@smithy/config-resolver': 4.4.6 + '@smithy/core': 3.23.2 + '@smithy/fetch-http-handler': 5.3.9 + '@smithy/hash-node': 4.2.8 + '@smithy/invalid-dependency': 4.2.8 + '@smithy/middleware-content-length': 4.2.8 + '@smithy/middleware-endpoint': 4.4.16 + '@smithy/middleware-retry': 4.4.33 + '@smithy/middleware-serde': 4.2.9 + '@smithy/middleware-stack': 4.2.8 + '@smithy/node-config-provider': 4.3.8 + '@smithy/node-http-handler': 4.4.10 + '@smithy/protocol-http': 5.3.8 + '@smithy/smithy-client': 4.11.5 + '@smithy/types': 4.12.0 + '@smithy/url-parser': 4.2.8 '@smithy/util-base64': 4.3.0 '@smithy/util-body-length-browser': 4.2.0 '@smithy/util-body-length-node': 4.2.1 - '@smithy/util-defaults-mode-browser': 4.3.16 - '@smithy/util-defaults-mode-node': 4.2.19 - '@smithy/util-endpoints': 3.2.7 - '@smithy/util-middleware': 4.2.7 - '@smithy/util-retry': 4.2.7 + '@smithy/util-defaults-mode-browser': 4.3.32 + '@smithy/util-defaults-mode-node': 4.2.35 + '@smithy/util-endpoints': 3.2.8 + '@smithy/util-middleware': 4.2.8 + '@smithy/util-retry': 4.2.8 '@smithy/util-utf8': 4.2.0 tslib: 2.8.1 transitivePeerDependencies: - aws-crt - '@aws-sdk/client-cognito-identity@3.956.0': + '@aws-sdk/client-cognito-identity@3.995.0': dependencies: '@aws-crypto/sha256-browser': 5.2.0 '@aws-crypto/sha256-js': 5.2.0 - '@aws-sdk/core': 3.956.0 - '@aws-sdk/credential-provider-node': 3.956.0 - '@aws-sdk/middleware-host-header': 3.956.0 - '@aws-sdk/middleware-logger': 3.956.0 - '@aws-sdk/middleware-recursion-detection': 3.956.0 - '@aws-sdk/middleware-user-agent': 3.956.0 - '@aws-sdk/region-config-resolver': 3.956.0 - '@aws-sdk/types': 3.956.0 - '@aws-sdk/util-endpoints': 3.956.0 - '@aws-sdk/util-user-agent-browser': 3.956.0 - '@aws-sdk/util-user-agent-node': 3.956.0 - '@smithy/config-resolver': 4.4.5 - '@smithy/core': 3.20.0 - '@smithy/fetch-http-handler': 5.3.8 - '@smithy/hash-node': 4.2.7 - '@smithy/invalid-dependency': 4.2.7 - '@smithy/middleware-content-length': 4.2.7 - '@smithy/middleware-endpoint': 4.4.1 - '@smithy/middleware-retry': 4.4.17 - '@smithy/middleware-serde': 4.2.8 - '@smithy/middleware-stack': 4.2.7 - '@smithy/node-config-provider': 4.3.7 - '@smithy/node-http-handler': 4.4.7 - '@smithy/protocol-http': 5.3.7 - '@smithy/smithy-client': 4.10.2 - '@smithy/types': 4.11.0 - '@smithy/url-parser': 4.2.7 + '@aws-sdk/core': 3.973.11 + '@aws-sdk/credential-provider-node': 3.972.10 + '@aws-sdk/middleware-host-header': 3.972.3 + '@aws-sdk/middleware-logger': 3.972.3 + '@aws-sdk/middleware-recursion-detection': 3.972.3 + '@aws-sdk/middleware-user-agent': 3.972.11 + '@aws-sdk/region-config-resolver': 3.972.3 + '@aws-sdk/types': 3.973.1 + '@aws-sdk/util-endpoints': 3.995.0 + '@aws-sdk/util-user-agent-browser': 3.972.3 + '@aws-sdk/util-user-agent-node': 3.972.10 + '@smithy/config-resolver': 4.4.6 + '@smithy/core': 3.23.2 + '@smithy/fetch-http-handler': 5.3.9 + '@smithy/hash-node': 4.2.8 + '@smithy/invalid-dependency': 4.2.8 + '@smithy/middleware-content-length': 4.2.8 + '@smithy/middleware-endpoint': 4.4.16 + '@smithy/middleware-retry': 4.4.33 + '@smithy/middleware-serde': 4.2.9 + '@smithy/middleware-stack': 4.2.8 + '@smithy/node-config-provider': 4.3.8 + '@smithy/node-http-handler': 4.4.10 + '@smithy/protocol-http': 5.3.8 + '@smithy/smithy-client': 4.11.5 + '@smithy/types': 4.12.0 + '@smithy/url-parser': 4.2.8 '@smithy/util-base64': 4.3.0 '@smithy/util-body-length-browser': 4.2.0 '@smithy/util-body-length-node': 4.2.1 - '@smithy/util-defaults-mode-browser': 4.3.16 - '@smithy/util-defaults-mode-node': 4.2.19 - '@smithy/util-endpoints': 3.2.7 - '@smithy/util-middleware': 4.2.7 - '@smithy/util-retry': 4.2.7 + '@smithy/util-defaults-mode-browser': 4.3.32 + '@smithy/util-defaults-mode-node': 4.2.35 + '@smithy/util-endpoints': 3.2.8 + '@smithy/util-middleware': 4.2.8 + '@smithy/util-retry': 4.2.8 '@smithy/util-utf8': 4.2.0 tslib: 2.8.1 transitivePeerDependencies: - aws-crt - '@aws-sdk/client-data-pipeline@3.956.0': + '@aws-sdk/client-data-pipeline@3.995.0': dependencies: '@aws-crypto/sha256-browser': 5.2.0 '@aws-crypto/sha256-js': 5.2.0 - '@aws-sdk/core': 3.956.0 - '@aws-sdk/credential-provider-node': 3.956.0 - '@aws-sdk/middleware-host-header': 3.956.0 - '@aws-sdk/middleware-logger': 3.956.0 - '@aws-sdk/middleware-recursion-detection': 3.956.0 - '@aws-sdk/middleware-user-agent': 3.956.0 - '@aws-sdk/region-config-resolver': 3.956.0 - '@aws-sdk/types': 3.956.0 - '@aws-sdk/util-endpoints': 3.956.0 - '@aws-sdk/util-user-agent-browser': 3.956.0 - '@aws-sdk/util-user-agent-node': 3.956.0 - '@smithy/config-resolver': 4.4.5 - '@smithy/core': 3.20.0 - '@smithy/fetch-http-handler': 5.3.8 - '@smithy/hash-node': 4.2.7 - '@smithy/invalid-dependency': 4.2.7 - '@smithy/middleware-content-length': 4.2.7 - '@smithy/middleware-endpoint': 4.4.1 - '@smithy/middleware-retry': 4.4.17 - '@smithy/middleware-serde': 4.2.8 - '@smithy/middleware-stack': 4.2.7 - '@smithy/node-config-provider': 4.3.7 - '@smithy/node-http-handler': 4.4.7 - '@smithy/protocol-http': 5.3.7 - '@smithy/smithy-client': 4.10.2 - '@smithy/types': 4.11.0 - '@smithy/url-parser': 4.2.7 + '@aws-sdk/core': 3.973.11 + '@aws-sdk/credential-provider-node': 3.972.10 + '@aws-sdk/middleware-host-header': 3.972.3 + '@aws-sdk/middleware-logger': 3.972.3 + '@aws-sdk/middleware-recursion-detection': 3.972.3 + '@aws-sdk/middleware-user-agent': 3.972.11 + '@aws-sdk/region-config-resolver': 3.972.3 + '@aws-sdk/types': 3.973.1 + '@aws-sdk/util-endpoints': 3.995.0 + '@aws-sdk/util-user-agent-browser': 3.972.3 + '@aws-sdk/util-user-agent-node': 3.972.10 + '@smithy/config-resolver': 4.4.6 + '@smithy/core': 3.23.2 + '@smithy/fetch-http-handler': 5.3.9 + '@smithy/hash-node': 4.2.8 + '@smithy/invalid-dependency': 4.2.8 + '@smithy/middleware-content-length': 4.2.8 + '@smithy/middleware-endpoint': 4.4.16 + '@smithy/middleware-retry': 4.4.33 + '@smithy/middleware-serde': 4.2.9 + '@smithy/middleware-stack': 4.2.8 + '@smithy/node-config-provider': 4.3.8 + '@smithy/node-http-handler': 4.4.10 + '@smithy/protocol-http': 5.3.8 + '@smithy/smithy-client': 4.11.5 + '@smithy/types': 4.12.0 + '@smithy/url-parser': 4.2.8 '@smithy/util-base64': 4.3.0 '@smithy/util-body-length-browser': 4.2.0 '@smithy/util-body-length-node': 4.2.1 - '@smithy/util-defaults-mode-browser': 4.3.16 - '@smithy/util-defaults-mode-node': 4.2.19 - '@smithy/util-endpoints': 3.2.7 - '@smithy/util-middleware': 4.2.7 - '@smithy/util-retry': 4.2.7 + '@smithy/util-defaults-mode-browser': 4.3.32 + '@smithy/util-defaults-mode-node': 4.2.35 + '@smithy/util-endpoints': 3.2.8 + '@smithy/util-middleware': 4.2.8 + '@smithy/util-retry': 4.2.8 '@smithy/util-utf8': 4.2.0 tslib: 2.8.1 transitivePeerDependencies: - aws-crt - '@aws-sdk/client-dsql@3.956.0': + '@aws-sdk/client-dsql@3.995.0': dependencies: '@aws-crypto/sha256-browser': 5.2.0 '@aws-crypto/sha256-js': 5.2.0 - '@aws-sdk/core': 3.956.0 - '@aws-sdk/credential-provider-node': 3.956.0 - '@aws-sdk/middleware-host-header': 3.956.0 - '@aws-sdk/middleware-logger': 3.956.0 - '@aws-sdk/middleware-recursion-detection': 3.956.0 - '@aws-sdk/middleware-user-agent': 3.956.0 - '@aws-sdk/region-config-resolver': 3.956.0 - '@aws-sdk/types': 3.956.0 - '@aws-sdk/util-endpoints': 3.956.0 - '@aws-sdk/util-user-agent-browser': 3.956.0 - '@aws-sdk/util-user-agent-node': 3.956.0 - '@smithy/config-resolver': 4.4.5 - '@smithy/core': 3.20.0 - '@smithy/fetch-http-handler': 5.3.8 - '@smithy/hash-node': 4.2.7 - '@smithy/invalid-dependency': 4.2.7 - '@smithy/middleware-content-length': 4.2.7 - '@smithy/middleware-endpoint': 4.4.1 - '@smithy/middleware-retry': 4.4.17 - '@smithy/middleware-serde': 4.2.8 - '@smithy/middleware-stack': 4.2.7 - '@smithy/node-config-provider': 4.3.7 - '@smithy/node-http-handler': 4.4.7 - '@smithy/protocol-http': 5.3.7 - '@smithy/smithy-client': 4.10.2 - '@smithy/types': 4.11.0 - '@smithy/url-parser': 4.2.7 + '@aws-sdk/core': 3.973.11 + '@aws-sdk/credential-provider-node': 3.972.10 + '@aws-sdk/middleware-host-header': 3.972.3 + '@aws-sdk/middleware-logger': 3.972.3 + '@aws-sdk/middleware-recursion-detection': 3.972.3 + '@aws-sdk/middleware-user-agent': 3.972.11 + '@aws-sdk/region-config-resolver': 3.972.3 + '@aws-sdk/types': 3.973.1 + '@aws-sdk/util-endpoints': 3.995.0 + '@aws-sdk/util-user-agent-browser': 3.972.3 + '@aws-sdk/util-user-agent-node': 3.972.10 + '@smithy/config-resolver': 4.4.6 + '@smithy/core': 3.23.2 + '@smithy/fetch-http-handler': 5.3.9 + '@smithy/hash-node': 4.2.8 + '@smithy/invalid-dependency': 4.2.8 + '@smithy/middleware-content-length': 4.2.8 + '@smithy/middleware-endpoint': 4.4.16 + '@smithy/middleware-retry': 4.4.33 + '@smithy/middleware-serde': 4.2.9 + '@smithy/middleware-stack': 4.2.8 + '@smithy/node-config-provider': 4.3.8 + '@smithy/node-http-handler': 4.4.10 + '@smithy/protocol-http': 5.3.8 + '@smithy/smithy-client': 4.11.5 + '@smithy/types': 4.12.0 + '@smithy/url-parser': 4.2.8 '@smithy/util-base64': 4.3.0 '@smithy/util-body-length-browser': 4.2.0 '@smithy/util-body-length-node': 4.2.1 - '@smithy/util-defaults-mode-browser': 4.3.16 - '@smithy/util-defaults-mode-node': 4.2.19 - '@smithy/util-endpoints': 3.2.7 - '@smithy/util-middleware': 4.2.7 - '@smithy/util-retry': 4.2.7 + '@smithy/util-defaults-mode-browser': 4.3.32 + '@smithy/util-defaults-mode-node': 4.2.35 + '@smithy/util-endpoints': 3.2.8 + '@smithy/util-middleware': 4.2.8 + '@smithy/util-retry': 4.2.8 '@smithy/util-utf8': 4.2.0 - '@smithy/util-waiter': 4.2.7 + '@smithy/util-waiter': 4.2.8 tslib: 2.8.1 transitivePeerDependencies: - aws-crt - '@aws-sdk/client-dynamodb@3.956.0': + '@aws-sdk/client-dynamodb@3.995.0': dependencies: '@aws-crypto/sha256-browser': 5.2.0 '@aws-crypto/sha256-js': 5.2.0 - '@aws-sdk/core': 3.956.0 - '@aws-sdk/credential-provider-node': 3.956.0 - '@aws-sdk/dynamodb-codec': 3.956.0(@aws-sdk/client-dynamodb@3.956.0) - '@aws-sdk/middleware-endpoint-discovery': 3.956.0 - '@aws-sdk/middleware-host-header': 3.956.0 - '@aws-sdk/middleware-logger': 3.956.0 - '@aws-sdk/middleware-recursion-detection': 3.956.0 - '@aws-sdk/middleware-user-agent': 3.956.0 - '@aws-sdk/region-config-resolver': 3.956.0 - '@aws-sdk/types': 3.956.0 - '@aws-sdk/util-endpoints': 3.956.0 - '@aws-sdk/util-user-agent-browser': 3.956.0 - '@aws-sdk/util-user-agent-node': 3.956.0 - '@smithy/config-resolver': 4.4.5 - '@smithy/core': 3.20.0 - '@smithy/fetch-http-handler': 5.3.8 - '@smithy/hash-node': 4.2.7 - '@smithy/invalid-dependency': 4.2.7 - '@smithy/middleware-content-length': 4.2.7 - '@smithy/middleware-endpoint': 4.4.1 - '@smithy/middleware-retry': 4.4.17 - '@smithy/middleware-serde': 4.2.8 - '@smithy/middleware-stack': 4.2.7 - '@smithy/node-config-provider': 4.3.7 - '@smithy/node-http-handler': 4.4.7 - '@smithy/protocol-http': 5.3.7 - '@smithy/smithy-client': 4.10.2 - '@smithy/types': 4.11.0 - '@smithy/url-parser': 4.2.7 + '@aws-sdk/core': 3.973.11 + '@aws-sdk/credential-provider-node': 3.972.10 + '@aws-sdk/dynamodb-codec': 3.972.12 + '@aws-sdk/middleware-endpoint-discovery': 3.972.3 + '@aws-sdk/middleware-host-header': 3.972.3 + '@aws-sdk/middleware-logger': 3.972.3 + '@aws-sdk/middleware-recursion-detection': 3.972.3 + '@aws-sdk/middleware-user-agent': 3.972.11 + '@aws-sdk/region-config-resolver': 3.972.3 + '@aws-sdk/types': 3.973.1 + '@aws-sdk/util-endpoints': 3.995.0 + '@aws-sdk/util-user-agent-browser': 3.972.3 + '@aws-sdk/util-user-agent-node': 3.972.10 + '@smithy/config-resolver': 4.4.6 + '@smithy/core': 3.23.2 + '@smithy/fetch-http-handler': 5.3.9 + '@smithy/hash-node': 4.2.8 + '@smithy/invalid-dependency': 4.2.8 + '@smithy/middleware-content-length': 4.2.8 + '@smithy/middleware-endpoint': 4.4.16 + '@smithy/middleware-retry': 4.4.33 + '@smithy/middleware-serde': 4.2.9 + '@smithy/middleware-stack': 4.2.8 + '@smithy/node-config-provider': 4.3.8 + '@smithy/node-http-handler': 4.4.10 + '@smithy/protocol-http': 5.3.8 + '@smithy/smithy-client': 4.11.5 + '@smithy/types': 4.12.0 + '@smithy/url-parser': 4.2.8 '@smithy/util-base64': 4.3.0 '@smithy/util-body-length-browser': 4.2.0 '@smithy/util-body-length-node': 4.2.1 - '@smithy/util-defaults-mode-browser': 4.3.16 - '@smithy/util-defaults-mode-node': 4.2.19 - '@smithy/util-endpoints': 3.2.7 - '@smithy/util-middleware': 4.2.7 - '@smithy/util-retry': 4.2.7 + '@smithy/util-defaults-mode-browser': 4.3.32 + '@smithy/util-defaults-mode-node': 4.2.35 + '@smithy/util-endpoints': 3.2.8 + '@smithy/util-middleware': 4.2.8 + '@smithy/util-retry': 4.2.8 '@smithy/util-utf8': 4.2.0 - '@smithy/util-waiter': 4.2.7 + '@smithy/util-waiter': 4.2.8 tslib: 2.8.1 transitivePeerDependencies: - aws-crt - '@aws-sdk/client-ec2@3.956.0': + '@aws-sdk/client-ec2@3.995.0': dependencies: '@aws-crypto/sha256-browser': 5.2.0 '@aws-crypto/sha256-js': 5.2.0 - '@aws-sdk/core': 3.956.0 - '@aws-sdk/credential-provider-node': 3.956.0 - '@aws-sdk/middleware-host-header': 3.956.0 - '@aws-sdk/middleware-logger': 3.956.0 - '@aws-sdk/middleware-recursion-detection': 3.956.0 - '@aws-sdk/middleware-sdk-ec2': 3.956.0 - '@aws-sdk/middleware-user-agent': 3.956.0 - '@aws-sdk/region-config-resolver': 3.956.0 - '@aws-sdk/types': 3.956.0 - '@aws-sdk/util-endpoints': 3.956.0 - '@aws-sdk/util-user-agent-browser': 3.956.0 - '@aws-sdk/util-user-agent-node': 3.956.0 - '@smithy/config-resolver': 4.4.5 - '@smithy/core': 3.20.0 - '@smithy/fetch-http-handler': 5.3.8 - '@smithy/hash-node': 4.2.7 - '@smithy/invalid-dependency': 4.2.7 - '@smithy/middleware-content-length': 4.2.7 - '@smithy/middleware-endpoint': 4.4.1 - '@smithy/middleware-retry': 4.4.17 - '@smithy/middleware-serde': 4.2.8 - '@smithy/middleware-stack': 4.2.7 - '@smithy/node-config-provider': 4.3.7 - '@smithy/node-http-handler': 4.4.7 - '@smithy/protocol-http': 5.3.7 - '@smithy/smithy-client': 4.10.2 - '@smithy/types': 4.11.0 - '@smithy/url-parser': 4.2.7 + '@aws-sdk/core': 3.973.11 + '@aws-sdk/credential-provider-node': 3.972.10 + '@aws-sdk/middleware-host-header': 3.972.3 + '@aws-sdk/middleware-logger': 3.972.3 + '@aws-sdk/middleware-recursion-detection': 3.972.3 + '@aws-sdk/middleware-sdk-ec2': 3.972.8 + '@aws-sdk/middleware-user-agent': 3.972.11 + '@aws-sdk/region-config-resolver': 3.972.3 + '@aws-sdk/types': 3.973.1 + '@aws-sdk/util-endpoints': 3.995.0 + '@aws-sdk/util-user-agent-browser': 3.972.3 + '@aws-sdk/util-user-agent-node': 3.972.10 + '@smithy/config-resolver': 4.4.6 + '@smithy/core': 3.23.2 + '@smithy/fetch-http-handler': 5.3.9 + '@smithy/hash-node': 4.2.8 + '@smithy/invalid-dependency': 4.2.8 + '@smithy/middleware-content-length': 4.2.8 + '@smithy/middleware-endpoint': 4.4.16 + '@smithy/middleware-retry': 4.4.33 + '@smithy/middleware-serde': 4.2.9 + '@smithy/middleware-stack': 4.2.8 + '@smithy/node-config-provider': 4.3.8 + '@smithy/node-http-handler': 4.4.10 + '@smithy/protocol-http': 5.3.8 + '@smithy/smithy-client': 4.11.5 + '@smithy/types': 4.12.0 + '@smithy/url-parser': 4.2.8 '@smithy/util-base64': 4.3.0 '@smithy/util-body-length-browser': 4.2.0 '@smithy/util-body-length-node': 4.2.1 - '@smithy/util-defaults-mode-browser': 4.3.16 - '@smithy/util-defaults-mode-node': 4.2.19 - '@smithy/util-endpoints': 3.2.7 - '@smithy/util-middleware': 4.2.7 - '@smithy/util-retry': 4.2.7 + '@smithy/util-defaults-mode-browser': 4.3.32 + '@smithy/util-defaults-mode-node': 4.2.35 + '@smithy/util-endpoints': 3.2.8 + '@smithy/util-middleware': 4.2.8 + '@smithy/util-retry': 4.2.8 '@smithy/util-utf8': 4.2.0 - '@smithy/util-waiter': 4.2.7 + '@smithy/util-waiter': 4.2.8 tslib: 2.8.1 transitivePeerDependencies: - aws-crt - '@aws-sdk/client-ecr@3.956.0': + '@aws-sdk/client-ecr@3.995.0': dependencies: '@aws-crypto/sha256-browser': 5.2.0 '@aws-crypto/sha256-js': 5.2.0 - '@aws-sdk/core': 3.956.0 - '@aws-sdk/credential-provider-node': 3.956.0 - '@aws-sdk/middleware-host-header': 3.956.0 - '@aws-sdk/middleware-logger': 3.956.0 - '@aws-sdk/middleware-recursion-detection': 3.956.0 - '@aws-sdk/middleware-user-agent': 3.956.0 - '@aws-sdk/region-config-resolver': 3.956.0 - '@aws-sdk/types': 3.956.0 - '@aws-sdk/util-endpoints': 3.956.0 - '@aws-sdk/util-user-agent-browser': 3.956.0 - '@aws-sdk/util-user-agent-node': 3.956.0 - '@smithy/config-resolver': 4.4.5 - '@smithy/core': 3.20.0 - '@smithy/fetch-http-handler': 5.3.8 - '@smithy/hash-node': 4.2.7 - '@smithy/invalid-dependency': 4.2.7 - '@smithy/middleware-content-length': 4.2.7 - '@smithy/middleware-endpoint': 4.4.1 - '@smithy/middleware-retry': 4.4.17 - '@smithy/middleware-serde': 4.2.8 - '@smithy/middleware-stack': 4.2.7 - '@smithy/node-config-provider': 4.3.7 - '@smithy/node-http-handler': 4.4.7 - '@smithy/protocol-http': 5.3.7 - '@smithy/smithy-client': 4.10.2 - '@smithy/types': 4.11.0 - '@smithy/url-parser': 4.2.7 + '@aws-sdk/core': 3.973.11 + '@aws-sdk/credential-provider-node': 3.972.10 + '@aws-sdk/middleware-host-header': 3.972.3 + '@aws-sdk/middleware-logger': 3.972.3 + '@aws-sdk/middleware-recursion-detection': 3.972.3 + '@aws-sdk/middleware-user-agent': 3.972.11 + '@aws-sdk/region-config-resolver': 3.972.3 + '@aws-sdk/types': 3.973.1 + '@aws-sdk/util-endpoints': 3.995.0 + '@aws-sdk/util-user-agent-browser': 3.972.3 + '@aws-sdk/util-user-agent-node': 3.972.10 + '@smithy/config-resolver': 4.4.6 + '@smithy/core': 3.23.2 + '@smithy/fetch-http-handler': 5.3.9 + '@smithy/hash-node': 4.2.8 + '@smithy/invalid-dependency': 4.2.8 + '@smithy/middleware-content-length': 4.2.8 + '@smithy/middleware-endpoint': 4.4.16 + '@smithy/middleware-retry': 4.4.33 + '@smithy/middleware-serde': 4.2.9 + '@smithy/middleware-stack': 4.2.8 + '@smithy/node-config-provider': 4.3.8 + '@smithy/node-http-handler': 4.4.10 + '@smithy/protocol-http': 5.3.8 + '@smithy/smithy-client': 4.11.5 + '@smithy/types': 4.12.0 + '@smithy/url-parser': 4.2.8 '@smithy/util-base64': 4.3.0 '@smithy/util-body-length-browser': 4.2.0 '@smithy/util-body-length-node': 4.2.1 - '@smithy/util-defaults-mode-browser': 4.3.16 - '@smithy/util-defaults-mode-node': 4.2.19 - '@smithy/util-endpoints': 3.2.7 - '@smithy/util-middleware': 4.2.7 - '@smithy/util-retry': 4.2.7 + '@smithy/util-defaults-mode-browser': 4.3.32 + '@smithy/util-defaults-mode-node': 4.2.35 + '@smithy/util-endpoints': 3.2.8 + '@smithy/util-middleware': 4.2.8 + '@smithy/util-retry': 4.2.8 '@smithy/util-utf8': 4.2.0 - '@smithy/util-waiter': 4.2.7 + '@smithy/util-waiter': 4.2.8 tslib: 2.8.1 transitivePeerDependencies: - aws-crt - '@aws-sdk/client-ecs@3.956.0': + '@aws-sdk/client-ecs@3.995.0': dependencies: '@aws-crypto/sha256-browser': 5.2.0 '@aws-crypto/sha256-js': 5.2.0 - '@aws-sdk/core': 3.956.0 - '@aws-sdk/credential-provider-node': 3.956.0 - '@aws-sdk/middleware-host-header': 3.956.0 - '@aws-sdk/middleware-logger': 3.956.0 - '@aws-sdk/middleware-recursion-detection': 3.956.0 - '@aws-sdk/middleware-user-agent': 3.956.0 - '@aws-sdk/region-config-resolver': 3.956.0 - '@aws-sdk/types': 3.956.0 - '@aws-sdk/util-endpoints': 3.956.0 - '@aws-sdk/util-user-agent-browser': 3.956.0 - '@aws-sdk/util-user-agent-node': 3.956.0 - '@smithy/config-resolver': 4.4.5 - '@smithy/core': 3.20.0 - '@smithy/fetch-http-handler': 5.3.8 - '@smithy/hash-node': 4.2.7 - '@smithy/invalid-dependency': 4.2.7 - '@smithy/middleware-content-length': 4.2.7 - '@smithy/middleware-endpoint': 4.4.1 - '@smithy/middleware-retry': 4.4.17 - '@smithy/middleware-serde': 4.2.8 - '@smithy/middleware-stack': 4.2.7 - '@smithy/node-config-provider': 4.3.7 - '@smithy/node-http-handler': 4.4.7 - '@smithy/protocol-http': 5.3.7 - '@smithy/smithy-client': 4.10.2 - '@smithy/types': 4.11.0 - '@smithy/url-parser': 4.2.7 + '@aws-sdk/core': 3.973.11 + '@aws-sdk/credential-provider-node': 3.972.10 + '@aws-sdk/middleware-host-header': 3.972.3 + '@aws-sdk/middleware-logger': 3.972.3 + '@aws-sdk/middleware-recursion-detection': 3.972.3 + '@aws-sdk/middleware-user-agent': 3.972.11 + '@aws-sdk/region-config-resolver': 3.972.3 + '@aws-sdk/types': 3.973.1 + '@aws-sdk/util-endpoints': 3.995.0 + '@aws-sdk/util-user-agent-browser': 3.972.3 + '@aws-sdk/util-user-agent-node': 3.972.10 + '@smithy/config-resolver': 4.4.6 + '@smithy/core': 3.23.2 + '@smithy/fetch-http-handler': 5.3.9 + '@smithy/hash-node': 4.2.8 + '@smithy/invalid-dependency': 4.2.8 + '@smithy/middleware-content-length': 4.2.8 + '@smithy/middleware-endpoint': 4.4.16 + '@smithy/middleware-retry': 4.4.33 + '@smithy/middleware-serde': 4.2.9 + '@smithy/middleware-stack': 4.2.8 + '@smithy/node-config-provider': 4.3.8 + '@smithy/node-http-handler': 4.4.10 + '@smithy/protocol-http': 5.3.8 + '@smithy/smithy-client': 4.11.5 + '@smithy/types': 4.12.0 + '@smithy/url-parser': 4.2.8 '@smithy/util-base64': 4.3.0 '@smithy/util-body-length-browser': 4.2.0 '@smithy/util-body-length-node': 4.2.1 - '@smithy/util-defaults-mode-browser': 4.3.16 - '@smithy/util-defaults-mode-node': 4.2.19 - '@smithy/util-endpoints': 3.2.7 - '@smithy/util-middleware': 4.2.7 - '@smithy/util-retry': 4.2.7 + '@smithy/util-defaults-mode-browser': 4.3.32 + '@smithy/util-defaults-mode-node': 4.2.35 + '@smithy/util-endpoints': 3.2.8 + '@smithy/util-middleware': 4.2.8 + '@smithy/util-retry': 4.2.8 '@smithy/util-utf8': 4.2.0 - '@smithy/util-waiter': 4.2.7 + '@smithy/util-waiter': 4.2.8 tslib: 2.8.1 transitivePeerDependencies: - aws-crt - '@aws-sdk/client-elasticache@3.956.0': + '@aws-sdk/client-elasticache@3.995.0': dependencies: '@aws-crypto/sha256-browser': 5.2.0 '@aws-crypto/sha256-js': 5.2.0 - '@aws-sdk/core': 3.956.0 - '@aws-sdk/credential-provider-node': 3.956.0 - '@aws-sdk/middleware-host-header': 3.956.0 - '@aws-sdk/middleware-logger': 3.956.0 - '@aws-sdk/middleware-recursion-detection': 3.956.0 - '@aws-sdk/middleware-user-agent': 3.956.0 - '@aws-sdk/region-config-resolver': 3.956.0 - '@aws-sdk/types': 3.956.0 - '@aws-sdk/util-endpoints': 3.956.0 - '@aws-sdk/util-user-agent-browser': 3.956.0 - '@aws-sdk/util-user-agent-node': 3.956.0 - '@smithy/config-resolver': 4.4.5 - '@smithy/core': 3.20.0 - '@smithy/fetch-http-handler': 5.3.8 - '@smithy/hash-node': 4.2.7 - '@smithy/invalid-dependency': 4.2.7 - '@smithy/middleware-content-length': 4.2.7 - '@smithy/middleware-endpoint': 4.4.1 - '@smithy/middleware-retry': 4.4.17 - '@smithy/middleware-serde': 4.2.8 - '@smithy/middleware-stack': 4.2.7 - '@smithy/node-config-provider': 4.3.7 - '@smithy/node-http-handler': 4.4.7 - '@smithy/protocol-http': 5.3.7 - '@smithy/smithy-client': 4.10.2 - '@smithy/types': 4.11.0 - '@smithy/url-parser': 4.2.7 + '@aws-sdk/core': 3.973.11 + '@aws-sdk/credential-provider-node': 3.972.10 + '@aws-sdk/middleware-host-header': 3.972.3 + '@aws-sdk/middleware-logger': 3.972.3 + '@aws-sdk/middleware-recursion-detection': 3.972.3 + '@aws-sdk/middleware-user-agent': 3.972.11 + '@aws-sdk/region-config-resolver': 3.972.3 + '@aws-sdk/types': 3.973.1 + '@aws-sdk/util-endpoints': 3.995.0 + '@aws-sdk/util-user-agent-browser': 3.972.3 + '@aws-sdk/util-user-agent-node': 3.972.10 + '@smithy/config-resolver': 4.4.6 + '@smithy/core': 3.23.2 + '@smithy/fetch-http-handler': 5.3.9 + '@smithy/hash-node': 4.2.8 + '@smithy/invalid-dependency': 4.2.8 + '@smithy/middleware-content-length': 4.2.8 + '@smithy/middleware-endpoint': 4.4.16 + '@smithy/middleware-retry': 4.4.33 + '@smithy/middleware-serde': 4.2.9 + '@smithy/middleware-stack': 4.2.8 + '@smithy/node-config-provider': 4.3.8 + '@smithy/node-http-handler': 4.4.10 + '@smithy/protocol-http': 5.3.8 + '@smithy/smithy-client': 4.11.5 + '@smithy/types': 4.12.0 + '@smithy/url-parser': 4.2.8 '@smithy/util-base64': 4.3.0 '@smithy/util-body-length-browser': 4.2.0 '@smithy/util-body-length-node': 4.2.1 - '@smithy/util-defaults-mode-browser': 4.3.16 - '@smithy/util-defaults-mode-node': 4.2.19 - '@smithy/util-endpoints': 3.2.7 - '@smithy/util-middleware': 4.2.7 - '@smithy/util-retry': 4.2.7 + '@smithy/util-defaults-mode-browser': 4.3.32 + '@smithy/util-defaults-mode-node': 4.2.35 + '@smithy/util-endpoints': 3.2.8 + '@smithy/util-middleware': 4.2.8 + '@smithy/util-retry': 4.2.8 '@smithy/util-utf8': 4.2.0 - '@smithy/util-waiter': 4.2.7 + '@smithy/util-waiter': 4.2.8 tslib: 2.8.1 transitivePeerDependencies: - aws-crt - '@aws-sdk/client-eventbridge@3.956.0': + '@aws-sdk/client-eventbridge@3.995.0': dependencies: '@aws-crypto/sha256-browser': 5.2.0 '@aws-crypto/sha256-js': 5.2.0 - '@aws-sdk/core': 3.956.0 - '@aws-sdk/credential-provider-node': 3.956.0 - '@aws-sdk/middleware-host-header': 3.956.0 - '@aws-sdk/middleware-logger': 3.956.0 - '@aws-sdk/middleware-recursion-detection': 3.956.0 - '@aws-sdk/middleware-user-agent': 3.956.0 - '@aws-sdk/region-config-resolver': 3.956.0 - '@aws-sdk/signature-v4-multi-region': 3.956.0 - '@aws-sdk/types': 3.956.0 - '@aws-sdk/util-endpoints': 3.956.0 - '@aws-sdk/util-user-agent-browser': 3.956.0 - '@aws-sdk/util-user-agent-node': 3.956.0 - '@smithy/config-resolver': 4.4.5 - '@smithy/core': 3.20.0 - '@smithy/fetch-http-handler': 5.3.8 - '@smithy/hash-node': 4.2.7 - '@smithy/invalid-dependency': 4.2.7 - '@smithy/middleware-content-length': 4.2.7 - '@smithy/middleware-endpoint': 4.4.1 - '@smithy/middleware-retry': 4.4.17 - '@smithy/middleware-serde': 4.2.8 - '@smithy/middleware-stack': 4.2.7 - '@smithy/node-config-provider': 4.3.7 - '@smithy/node-http-handler': 4.4.7 - '@smithy/protocol-http': 5.3.7 - '@smithy/smithy-client': 4.10.2 - '@smithy/types': 4.11.0 - '@smithy/url-parser': 4.2.7 + '@aws-sdk/core': 3.973.11 + '@aws-sdk/credential-provider-node': 3.972.10 + '@aws-sdk/middleware-host-header': 3.972.3 + '@aws-sdk/middleware-logger': 3.972.3 + '@aws-sdk/middleware-recursion-detection': 3.972.3 + '@aws-sdk/middleware-user-agent': 3.972.11 + '@aws-sdk/region-config-resolver': 3.972.3 + '@aws-sdk/signature-v4-multi-region': 3.995.0 + '@aws-sdk/types': 3.973.1 + '@aws-sdk/util-endpoints': 3.995.0 + '@aws-sdk/util-user-agent-browser': 3.972.3 + '@aws-sdk/util-user-agent-node': 3.972.10 + '@smithy/config-resolver': 4.4.6 + '@smithy/core': 3.23.2 + '@smithy/fetch-http-handler': 5.3.9 + '@smithy/hash-node': 4.2.8 + '@smithy/invalid-dependency': 4.2.8 + '@smithy/middleware-content-length': 4.2.8 + '@smithy/middleware-endpoint': 4.4.16 + '@smithy/middleware-retry': 4.4.33 + '@smithy/middleware-serde': 4.2.9 + '@smithy/middleware-stack': 4.2.8 + '@smithy/node-config-provider': 4.3.8 + '@smithy/node-http-handler': 4.4.10 + '@smithy/protocol-http': 5.3.8 + '@smithy/smithy-client': 4.11.5 + '@smithy/types': 4.12.0 + '@smithy/url-parser': 4.2.8 '@smithy/util-base64': 4.3.0 '@smithy/util-body-length-browser': 4.2.0 '@smithy/util-body-length-node': 4.2.1 - '@smithy/util-defaults-mode-browser': 4.3.16 - '@smithy/util-defaults-mode-node': 4.2.19 - '@smithy/util-endpoints': 3.2.7 - '@smithy/util-middleware': 4.2.7 - '@smithy/util-retry': 4.2.7 + '@smithy/util-defaults-mode-browser': 4.3.32 + '@smithy/util-defaults-mode-node': 4.2.35 + '@smithy/util-endpoints': 3.2.8 + '@smithy/util-middleware': 4.2.8 + '@smithy/util-retry': 4.2.8 '@smithy/util-utf8': 4.2.0 tslib: 2.8.1 transitivePeerDependencies: - aws-crt - '@aws-sdk/client-firehose@3.956.0': + '@aws-sdk/client-firehose@3.995.0': dependencies: '@aws-crypto/sha256-browser': 5.2.0 '@aws-crypto/sha256-js': 5.2.0 - '@aws-sdk/core': 3.956.0 - '@aws-sdk/credential-provider-node': 3.956.0 - '@aws-sdk/middleware-host-header': 3.956.0 - '@aws-sdk/middleware-logger': 3.956.0 - '@aws-sdk/middleware-recursion-detection': 3.956.0 - '@aws-sdk/middleware-user-agent': 3.956.0 - '@aws-sdk/region-config-resolver': 3.956.0 - '@aws-sdk/types': 3.956.0 - '@aws-sdk/util-endpoints': 3.956.0 - '@aws-sdk/util-user-agent-browser': 3.956.0 - '@aws-sdk/util-user-agent-node': 3.956.0 - '@smithy/config-resolver': 4.4.5 - '@smithy/core': 3.20.0 - '@smithy/fetch-http-handler': 5.3.8 - '@smithy/hash-node': 4.2.7 - '@smithy/invalid-dependency': 4.2.7 - '@smithy/middleware-content-length': 4.2.7 - '@smithy/middleware-endpoint': 4.4.1 - '@smithy/middleware-retry': 4.4.17 - '@smithy/middleware-serde': 4.2.8 - '@smithy/middleware-stack': 4.2.7 - '@smithy/node-config-provider': 4.3.7 - '@smithy/node-http-handler': 4.4.7 - '@smithy/protocol-http': 5.3.7 - '@smithy/smithy-client': 4.10.2 - '@smithy/types': 4.11.0 - '@smithy/url-parser': 4.2.7 + '@aws-sdk/core': 3.973.11 + '@aws-sdk/credential-provider-node': 3.972.10 + '@aws-sdk/middleware-host-header': 3.972.3 + '@aws-sdk/middleware-logger': 3.972.3 + '@aws-sdk/middleware-recursion-detection': 3.972.3 + '@aws-sdk/middleware-user-agent': 3.972.11 + '@aws-sdk/region-config-resolver': 3.972.3 + '@aws-sdk/types': 3.973.1 + '@aws-sdk/util-endpoints': 3.995.0 + '@aws-sdk/util-user-agent-browser': 3.972.3 + '@aws-sdk/util-user-agent-node': 3.972.10 + '@smithy/config-resolver': 4.4.6 + '@smithy/core': 3.23.2 + '@smithy/fetch-http-handler': 5.3.9 + '@smithy/hash-node': 4.2.8 + '@smithy/invalid-dependency': 4.2.8 + '@smithy/middleware-content-length': 4.2.8 + '@smithy/middleware-endpoint': 4.4.16 + '@smithy/middleware-retry': 4.4.33 + '@smithy/middleware-serde': 4.2.9 + '@smithy/middleware-stack': 4.2.8 + '@smithy/node-config-provider': 4.3.8 + '@smithy/node-http-handler': 4.4.10 + '@smithy/protocol-http': 5.3.8 + '@smithy/smithy-client': 4.11.5 + '@smithy/types': 4.12.0 + '@smithy/url-parser': 4.2.8 '@smithy/util-base64': 4.3.0 '@smithy/util-body-length-browser': 4.2.0 '@smithy/util-body-length-node': 4.2.1 - '@smithy/util-defaults-mode-browser': 4.3.16 - '@smithy/util-defaults-mode-node': 4.2.19 - '@smithy/util-endpoints': 3.2.7 - '@smithy/util-middleware': 4.2.7 - '@smithy/util-retry': 4.2.7 + '@smithy/util-defaults-mode-browser': 4.3.32 + '@smithy/util-defaults-mode-node': 4.2.35 + '@smithy/util-endpoints': 3.2.8 + '@smithy/util-middleware': 4.2.8 + '@smithy/util-retry': 4.2.8 '@smithy/util-utf8': 4.2.0 tslib: 2.8.1 transitivePeerDependencies: - aws-crt - '@aws-sdk/client-glue@3.956.0': + '@aws-sdk/client-glue@3.995.0': dependencies: '@aws-crypto/sha256-browser': 5.2.0 '@aws-crypto/sha256-js': 5.2.0 - '@aws-sdk/core': 3.956.0 - '@aws-sdk/credential-provider-node': 3.956.0 - '@aws-sdk/middleware-host-header': 3.956.0 - '@aws-sdk/middleware-logger': 3.956.0 - '@aws-sdk/middleware-recursion-detection': 3.956.0 - '@aws-sdk/middleware-user-agent': 3.956.0 - '@aws-sdk/region-config-resolver': 3.956.0 - '@aws-sdk/types': 3.956.0 - '@aws-sdk/util-endpoints': 3.956.0 - '@aws-sdk/util-user-agent-browser': 3.956.0 - '@aws-sdk/util-user-agent-node': 3.956.0 - '@smithy/config-resolver': 4.4.5 - '@smithy/core': 3.20.0 - '@smithy/fetch-http-handler': 5.3.8 - '@smithy/hash-node': 4.2.7 - '@smithy/invalid-dependency': 4.2.7 - '@smithy/middleware-content-length': 4.2.7 - '@smithy/middleware-endpoint': 4.4.1 - '@smithy/middleware-retry': 4.4.17 - '@smithy/middleware-serde': 4.2.8 - '@smithy/middleware-stack': 4.2.7 - '@smithy/node-config-provider': 4.3.7 - '@smithy/node-http-handler': 4.4.7 - '@smithy/protocol-http': 5.3.7 - '@smithy/smithy-client': 4.10.2 - '@smithy/types': 4.11.0 - '@smithy/url-parser': 4.2.7 + '@aws-sdk/core': 3.973.11 + '@aws-sdk/credential-provider-node': 3.972.10 + '@aws-sdk/middleware-host-header': 3.972.3 + '@aws-sdk/middleware-logger': 3.972.3 + '@aws-sdk/middleware-recursion-detection': 3.972.3 + '@aws-sdk/middleware-user-agent': 3.972.11 + '@aws-sdk/region-config-resolver': 3.972.3 + '@aws-sdk/types': 3.973.1 + '@aws-sdk/util-endpoints': 3.995.0 + '@aws-sdk/util-user-agent-browser': 3.972.3 + '@aws-sdk/util-user-agent-node': 3.972.10 + '@smithy/config-resolver': 4.4.6 + '@smithy/core': 3.23.2 + '@smithy/fetch-http-handler': 5.3.9 + '@smithy/hash-node': 4.2.8 + '@smithy/invalid-dependency': 4.2.8 + '@smithy/middleware-content-length': 4.2.8 + '@smithy/middleware-endpoint': 4.4.16 + '@smithy/middleware-retry': 4.4.33 + '@smithy/middleware-serde': 4.2.9 + '@smithy/middleware-stack': 4.2.8 + '@smithy/node-config-provider': 4.3.8 + '@smithy/node-http-handler': 4.4.10 + '@smithy/protocol-http': 5.3.8 + '@smithy/smithy-client': 4.11.5 + '@smithy/types': 4.12.0 + '@smithy/url-parser': 4.2.8 '@smithy/util-base64': 4.3.0 '@smithy/util-body-length-browser': 4.2.0 '@smithy/util-body-length-node': 4.2.1 - '@smithy/util-defaults-mode-browser': 4.3.16 - '@smithy/util-defaults-mode-node': 4.2.19 - '@smithy/util-endpoints': 3.2.7 - '@smithy/util-middleware': 4.2.7 - '@smithy/util-retry': 4.2.7 + '@smithy/util-defaults-mode-browser': 4.3.32 + '@smithy/util-defaults-mode-node': 4.2.35 + '@smithy/util-endpoints': 3.2.8 + '@smithy/util-middleware': 4.2.8 + '@smithy/util-retry': 4.2.8 '@smithy/util-utf8': 4.2.0 tslib: 2.8.1 transitivePeerDependencies: - aws-crt - '@aws-sdk/client-iam@3.956.0': + '@aws-sdk/client-iam@3.995.0': dependencies: '@aws-crypto/sha256-browser': 5.2.0 '@aws-crypto/sha256-js': 5.2.0 - '@aws-sdk/core': 3.956.0 - '@aws-sdk/credential-provider-node': 3.956.0 - '@aws-sdk/middleware-host-header': 3.956.0 - '@aws-sdk/middleware-logger': 3.956.0 - '@aws-sdk/middleware-recursion-detection': 3.956.0 - '@aws-sdk/middleware-user-agent': 3.956.0 - '@aws-sdk/region-config-resolver': 3.956.0 - '@aws-sdk/types': 3.956.0 - '@aws-sdk/util-endpoints': 3.956.0 - '@aws-sdk/util-user-agent-browser': 3.956.0 - '@aws-sdk/util-user-agent-node': 3.956.0 - '@smithy/config-resolver': 4.4.5 - '@smithy/core': 3.20.0 - '@smithy/fetch-http-handler': 5.3.8 - '@smithy/hash-node': 4.2.7 - '@smithy/invalid-dependency': 4.2.7 - '@smithy/middleware-content-length': 4.2.7 - '@smithy/middleware-endpoint': 4.4.1 - '@smithy/middleware-retry': 4.4.17 - '@smithy/middleware-serde': 4.2.8 - '@smithy/middleware-stack': 4.2.7 - '@smithy/node-config-provider': 4.3.7 - '@smithy/node-http-handler': 4.4.7 - '@smithy/protocol-http': 5.3.7 - '@smithy/smithy-client': 4.10.2 - '@smithy/types': 4.11.0 - '@smithy/url-parser': 4.2.7 + '@aws-sdk/core': 3.973.11 + '@aws-sdk/credential-provider-node': 3.972.10 + '@aws-sdk/middleware-host-header': 3.972.3 + '@aws-sdk/middleware-logger': 3.972.3 + '@aws-sdk/middleware-recursion-detection': 3.972.3 + '@aws-sdk/middleware-user-agent': 3.972.11 + '@aws-sdk/region-config-resolver': 3.972.3 + '@aws-sdk/types': 3.973.1 + '@aws-sdk/util-endpoints': 3.995.0 + '@aws-sdk/util-user-agent-browser': 3.972.3 + '@aws-sdk/util-user-agent-node': 3.972.10 + '@smithy/config-resolver': 4.4.6 + '@smithy/core': 3.23.2 + '@smithy/fetch-http-handler': 5.3.9 + '@smithy/hash-node': 4.2.8 + '@smithy/invalid-dependency': 4.2.8 + '@smithy/middleware-content-length': 4.2.8 + '@smithy/middleware-endpoint': 4.4.16 + '@smithy/middleware-retry': 4.4.33 + '@smithy/middleware-serde': 4.2.9 + '@smithy/middleware-stack': 4.2.8 + '@smithy/node-config-provider': 4.3.8 + '@smithy/node-http-handler': 4.4.10 + '@smithy/protocol-http': 5.3.8 + '@smithy/smithy-client': 4.11.5 + '@smithy/types': 4.12.0 + '@smithy/url-parser': 4.2.8 '@smithy/util-base64': 4.3.0 '@smithy/util-body-length-browser': 4.2.0 '@smithy/util-body-length-node': 4.2.1 - '@smithy/util-defaults-mode-browser': 4.3.16 - '@smithy/util-defaults-mode-node': 4.2.19 - '@smithy/util-endpoints': 3.2.7 - '@smithy/util-middleware': 4.2.7 - '@smithy/util-retry': 4.2.7 + '@smithy/util-defaults-mode-browser': 4.3.32 + '@smithy/util-defaults-mode-node': 4.2.35 + '@smithy/util-endpoints': 3.2.8 + '@smithy/util-middleware': 4.2.8 + '@smithy/util-retry': 4.2.8 '@smithy/util-utf8': 4.2.0 - '@smithy/util-waiter': 4.2.7 + '@smithy/util-waiter': 4.2.8 tslib: 2.8.1 transitivePeerDependencies: - aws-crt - '@aws-sdk/client-iot-data-plane@3.956.0': + '@aws-sdk/client-iot-data-plane@3.995.0': dependencies: '@aws-crypto/sha256-browser': 5.2.0 '@aws-crypto/sha256-js': 5.2.0 - '@aws-sdk/core': 3.956.0 - '@aws-sdk/credential-provider-node': 3.956.0 - '@aws-sdk/middleware-host-header': 3.956.0 - '@aws-sdk/middleware-logger': 3.956.0 - '@aws-sdk/middleware-recursion-detection': 3.956.0 - '@aws-sdk/middleware-user-agent': 3.956.0 - '@aws-sdk/region-config-resolver': 3.956.0 - '@aws-sdk/types': 3.956.0 - '@aws-sdk/util-endpoints': 3.956.0 - '@aws-sdk/util-user-agent-browser': 3.956.0 - '@aws-sdk/util-user-agent-node': 3.956.0 - '@smithy/config-resolver': 4.4.5 - '@smithy/core': 3.20.0 - '@smithy/fetch-http-handler': 5.3.8 - '@smithy/hash-node': 4.2.7 - '@smithy/invalid-dependency': 4.2.7 - '@smithy/middleware-content-length': 4.2.7 - '@smithy/middleware-endpoint': 4.4.1 - '@smithy/middleware-retry': 4.4.17 - '@smithy/middleware-serde': 4.2.8 - '@smithy/middleware-stack': 4.2.7 - '@smithy/node-config-provider': 4.3.7 - '@smithy/node-http-handler': 4.4.7 - '@smithy/protocol-http': 5.3.7 - '@smithy/smithy-client': 4.10.2 - '@smithy/types': 4.11.0 - '@smithy/url-parser': 4.2.7 + '@aws-sdk/core': 3.973.11 + '@aws-sdk/credential-provider-node': 3.972.10 + '@aws-sdk/middleware-host-header': 3.972.3 + '@aws-sdk/middleware-logger': 3.972.3 + '@aws-sdk/middleware-recursion-detection': 3.972.3 + '@aws-sdk/middleware-user-agent': 3.972.11 + '@aws-sdk/region-config-resolver': 3.972.3 + '@aws-sdk/types': 3.973.1 + '@aws-sdk/util-endpoints': 3.995.0 + '@aws-sdk/util-user-agent-browser': 3.972.3 + '@aws-sdk/util-user-agent-node': 3.972.10 + '@smithy/config-resolver': 4.4.6 + '@smithy/core': 3.23.2 + '@smithy/fetch-http-handler': 5.3.9 + '@smithy/hash-node': 4.2.8 + '@smithy/invalid-dependency': 4.2.8 + '@smithy/middleware-content-length': 4.2.8 + '@smithy/middleware-endpoint': 4.4.16 + '@smithy/middleware-retry': 4.4.33 + '@smithy/middleware-serde': 4.2.9 + '@smithy/middleware-stack': 4.2.8 + '@smithy/node-config-provider': 4.3.8 + '@smithy/node-http-handler': 4.4.10 + '@smithy/protocol-http': 5.3.8 + '@smithy/smithy-client': 4.11.5 + '@smithy/types': 4.12.0 + '@smithy/url-parser': 4.2.8 '@smithy/util-base64': 4.3.0 '@smithy/util-body-length-browser': 4.2.0 '@smithy/util-body-length-node': 4.2.1 - '@smithy/util-defaults-mode-browser': 4.3.16 - '@smithy/util-defaults-mode-node': 4.2.19 - '@smithy/util-endpoints': 3.2.7 - '@smithy/util-middleware': 4.2.7 - '@smithy/util-retry': 4.2.7 - '@smithy/util-stream': 4.5.8 + '@smithy/util-defaults-mode-browser': 4.3.32 + '@smithy/util-defaults-mode-node': 4.2.35 + '@smithy/util-endpoints': 3.2.8 + '@smithy/util-middleware': 4.2.8 + '@smithy/util-retry': 4.2.8 + '@smithy/util-stream': 4.5.12 '@smithy/util-utf8': 4.2.0 tslib: 2.8.1 transitivePeerDependencies: - aws-crt - '@aws-sdk/client-iot-events-data@3.956.0': + '@aws-sdk/client-iot-events-data@3.995.0': dependencies: '@aws-crypto/sha256-browser': 5.2.0 '@aws-crypto/sha256-js': 5.2.0 - '@aws-sdk/core': 3.956.0 - '@aws-sdk/credential-provider-node': 3.956.0 - '@aws-sdk/middleware-host-header': 3.956.0 - '@aws-sdk/middleware-logger': 3.956.0 - '@aws-sdk/middleware-recursion-detection': 3.956.0 - '@aws-sdk/middleware-user-agent': 3.956.0 - '@aws-sdk/region-config-resolver': 3.956.0 - '@aws-sdk/types': 3.956.0 - '@aws-sdk/util-endpoints': 3.956.0 - '@aws-sdk/util-user-agent-browser': 3.956.0 - '@aws-sdk/util-user-agent-node': 3.956.0 - '@smithy/config-resolver': 4.4.5 - '@smithy/core': 3.20.0 - '@smithy/fetch-http-handler': 5.3.8 - '@smithy/hash-node': 4.2.7 - '@smithy/invalid-dependency': 4.2.7 - '@smithy/middleware-content-length': 4.2.7 - '@smithy/middleware-endpoint': 4.4.1 - '@smithy/middleware-retry': 4.4.17 - '@smithy/middleware-serde': 4.2.8 - '@smithy/middleware-stack': 4.2.7 - '@smithy/node-config-provider': 4.3.7 - '@smithy/node-http-handler': 4.4.7 - '@smithy/protocol-http': 5.3.7 - '@smithy/smithy-client': 4.10.2 - '@smithy/types': 4.11.0 - '@smithy/url-parser': 4.2.7 + '@aws-sdk/core': 3.973.11 + '@aws-sdk/credential-provider-node': 3.972.10 + '@aws-sdk/middleware-host-header': 3.972.3 + '@aws-sdk/middleware-logger': 3.972.3 + '@aws-sdk/middleware-recursion-detection': 3.972.3 + '@aws-sdk/middleware-user-agent': 3.972.11 + '@aws-sdk/region-config-resolver': 3.972.3 + '@aws-sdk/types': 3.973.1 + '@aws-sdk/util-endpoints': 3.995.0 + '@aws-sdk/util-user-agent-browser': 3.972.3 + '@aws-sdk/util-user-agent-node': 3.972.10 + '@smithy/config-resolver': 4.4.6 + '@smithy/core': 3.23.2 + '@smithy/fetch-http-handler': 5.3.9 + '@smithy/hash-node': 4.2.8 + '@smithy/invalid-dependency': 4.2.8 + '@smithy/middleware-content-length': 4.2.8 + '@smithy/middleware-endpoint': 4.4.16 + '@smithy/middleware-retry': 4.4.33 + '@smithy/middleware-serde': 4.2.9 + '@smithy/middleware-stack': 4.2.8 + '@smithy/node-config-provider': 4.3.8 + '@smithy/node-http-handler': 4.4.10 + '@smithy/protocol-http': 5.3.8 + '@smithy/smithy-client': 4.11.5 + '@smithy/types': 4.12.0 + '@smithy/url-parser': 4.2.8 '@smithy/util-base64': 4.3.0 '@smithy/util-body-length-browser': 4.2.0 '@smithy/util-body-length-node': 4.2.1 - '@smithy/util-defaults-mode-browser': 4.3.16 - '@smithy/util-defaults-mode-node': 4.2.19 - '@smithy/util-endpoints': 3.2.7 - '@smithy/util-middleware': 4.2.7 - '@smithy/util-retry': 4.2.7 + '@smithy/util-defaults-mode-browser': 4.3.32 + '@smithy/util-defaults-mode-node': 4.2.35 + '@smithy/util-endpoints': 3.2.8 + '@smithy/util-middleware': 4.2.8 + '@smithy/util-retry': 4.2.8 '@smithy/util-utf8': 4.2.0 tslib: 2.8.1 transitivePeerDependencies: - aws-crt - '@aws-sdk/client-iot-events@3.956.0': + '@aws-sdk/client-iot-events@3.995.0': dependencies: '@aws-crypto/sha256-browser': 5.2.0 '@aws-crypto/sha256-js': 5.2.0 - '@aws-sdk/core': 3.956.0 - '@aws-sdk/credential-provider-node': 3.956.0 - '@aws-sdk/middleware-host-header': 3.956.0 - '@aws-sdk/middleware-logger': 3.956.0 - '@aws-sdk/middleware-recursion-detection': 3.956.0 - '@aws-sdk/middleware-user-agent': 3.956.0 - '@aws-sdk/region-config-resolver': 3.956.0 - '@aws-sdk/types': 3.956.0 - '@aws-sdk/util-endpoints': 3.956.0 - '@aws-sdk/util-user-agent-browser': 3.956.0 - '@aws-sdk/util-user-agent-node': 3.956.0 - '@smithy/config-resolver': 4.4.5 - '@smithy/core': 3.20.0 - '@smithy/fetch-http-handler': 5.3.8 - '@smithy/hash-node': 4.2.7 - '@smithy/invalid-dependency': 4.2.7 - '@smithy/middleware-content-length': 4.2.7 - '@smithy/middleware-endpoint': 4.4.1 - '@smithy/middleware-retry': 4.4.17 - '@smithy/middleware-serde': 4.2.8 - '@smithy/middleware-stack': 4.2.7 - '@smithy/node-config-provider': 4.3.7 - '@smithy/node-http-handler': 4.4.7 - '@smithy/protocol-http': 5.3.7 - '@smithy/smithy-client': 4.10.2 - '@smithy/types': 4.11.0 - '@smithy/url-parser': 4.2.7 + '@aws-sdk/core': 3.973.11 + '@aws-sdk/credential-provider-node': 3.972.10 + '@aws-sdk/middleware-host-header': 3.972.3 + '@aws-sdk/middleware-logger': 3.972.3 + '@aws-sdk/middleware-recursion-detection': 3.972.3 + '@aws-sdk/middleware-user-agent': 3.972.11 + '@aws-sdk/region-config-resolver': 3.972.3 + '@aws-sdk/types': 3.973.1 + '@aws-sdk/util-endpoints': 3.995.0 + '@aws-sdk/util-user-agent-browser': 3.972.3 + '@aws-sdk/util-user-agent-node': 3.972.10 + '@smithy/config-resolver': 4.4.6 + '@smithy/core': 3.23.2 + '@smithy/fetch-http-handler': 5.3.9 + '@smithy/hash-node': 4.2.8 + '@smithy/invalid-dependency': 4.2.8 + '@smithy/middleware-content-length': 4.2.8 + '@smithy/middleware-endpoint': 4.4.16 + '@smithy/middleware-retry': 4.4.33 + '@smithy/middleware-serde': 4.2.9 + '@smithy/middleware-stack': 4.2.8 + '@smithy/node-config-provider': 4.3.8 + '@smithy/node-http-handler': 4.4.10 + '@smithy/protocol-http': 5.3.8 + '@smithy/smithy-client': 4.11.5 + '@smithy/types': 4.12.0 + '@smithy/url-parser': 4.2.8 '@smithy/util-base64': 4.3.0 '@smithy/util-body-length-browser': 4.2.0 '@smithy/util-body-length-node': 4.2.1 - '@smithy/util-defaults-mode-browser': 4.3.16 - '@smithy/util-defaults-mode-node': 4.2.19 - '@smithy/util-endpoints': 3.2.7 - '@smithy/util-middleware': 4.2.7 - '@smithy/util-retry': 4.2.7 + '@smithy/util-defaults-mode-browser': 4.3.32 + '@smithy/util-defaults-mode-node': 4.2.35 + '@smithy/util-endpoints': 3.2.8 + '@smithy/util-middleware': 4.2.8 + '@smithy/util-retry': 4.2.8 '@smithy/util-utf8': 4.2.0 tslib: 2.8.1 transitivePeerDependencies: - aws-crt - '@aws-sdk/client-iot-jobs-data-plane@3.956.0': + '@aws-sdk/client-iot-jobs-data-plane@3.995.0': dependencies: '@aws-crypto/sha256-browser': 5.2.0 '@aws-crypto/sha256-js': 5.2.0 - '@aws-sdk/core': 3.956.0 - '@aws-sdk/credential-provider-node': 3.956.0 - '@aws-sdk/middleware-host-header': 3.956.0 - '@aws-sdk/middleware-logger': 3.956.0 - '@aws-sdk/middleware-recursion-detection': 3.956.0 - '@aws-sdk/middleware-user-agent': 3.956.0 - '@aws-sdk/region-config-resolver': 3.956.0 - '@aws-sdk/types': 3.956.0 - '@aws-sdk/util-endpoints': 3.956.0 - '@aws-sdk/util-user-agent-browser': 3.956.0 - '@aws-sdk/util-user-agent-node': 3.956.0 - '@smithy/config-resolver': 4.4.5 - '@smithy/core': 3.20.0 - '@smithy/fetch-http-handler': 5.3.8 - '@smithy/hash-node': 4.2.7 - '@smithy/invalid-dependency': 4.2.7 - '@smithy/middleware-content-length': 4.2.7 - '@smithy/middleware-endpoint': 4.4.1 - '@smithy/middleware-retry': 4.4.17 - '@smithy/middleware-serde': 4.2.8 - '@smithy/middleware-stack': 4.2.7 - '@smithy/node-config-provider': 4.3.7 - '@smithy/node-http-handler': 4.4.7 - '@smithy/protocol-http': 5.3.7 - '@smithy/smithy-client': 4.10.2 - '@smithy/types': 4.11.0 - '@smithy/url-parser': 4.2.7 + '@aws-sdk/core': 3.973.11 + '@aws-sdk/credential-provider-node': 3.972.10 + '@aws-sdk/middleware-host-header': 3.972.3 + '@aws-sdk/middleware-logger': 3.972.3 + '@aws-sdk/middleware-recursion-detection': 3.972.3 + '@aws-sdk/middleware-user-agent': 3.972.11 + '@aws-sdk/region-config-resolver': 3.972.3 + '@aws-sdk/types': 3.973.1 + '@aws-sdk/util-endpoints': 3.995.0 + '@aws-sdk/util-user-agent-browser': 3.972.3 + '@aws-sdk/util-user-agent-node': 3.972.10 + '@smithy/config-resolver': 4.4.6 + '@smithy/core': 3.23.2 + '@smithy/fetch-http-handler': 5.3.9 + '@smithy/hash-node': 4.2.8 + '@smithy/invalid-dependency': 4.2.8 + '@smithy/middleware-content-length': 4.2.8 + '@smithy/middleware-endpoint': 4.4.16 + '@smithy/middleware-retry': 4.4.33 + '@smithy/middleware-serde': 4.2.9 + '@smithy/middleware-stack': 4.2.8 + '@smithy/node-config-provider': 4.3.8 + '@smithy/node-http-handler': 4.4.10 + '@smithy/protocol-http': 5.3.8 + '@smithy/smithy-client': 4.11.5 + '@smithy/types': 4.12.0 + '@smithy/url-parser': 4.2.8 '@smithy/util-base64': 4.3.0 '@smithy/util-body-length-browser': 4.2.0 '@smithy/util-body-length-node': 4.2.1 - '@smithy/util-defaults-mode-browser': 4.3.16 - '@smithy/util-defaults-mode-node': 4.2.19 - '@smithy/util-endpoints': 3.2.7 - '@smithy/util-middleware': 4.2.7 - '@smithy/util-retry': 4.2.7 + '@smithy/util-defaults-mode-browser': 4.3.32 + '@smithy/util-defaults-mode-node': 4.2.35 + '@smithy/util-endpoints': 3.2.8 + '@smithy/util-middleware': 4.2.8 + '@smithy/util-retry': 4.2.8 '@smithy/util-utf8': 4.2.0 tslib: 2.8.1 transitivePeerDependencies: - aws-crt - '@aws-sdk/client-iot-wireless@3.956.0': + '@aws-sdk/client-iot-wireless@3.995.0': dependencies: '@aws-crypto/sha256-browser': 5.2.0 '@aws-crypto/sha256-js': 5.2.0 - '@aws-sdk/core': 3.956.0 - '@aws-sdk/credential-provider-node': 3.956.0 - '@aws-sdk/middleware-host-header': 3.956.0 - '@aws-sdk/middleware-logger': 3.956.0 - '@aws-sdk/middleware-recursion-detection': 3.956.0 - '@aws-sdk/middleware-user-agent': 3.956.0 - '@aws-sdk/region-config-resolver': 3.956.0 - '@aws-sdk/types': 3.956.0 - '@aws-sdk/util-endpoints': 3.956.0 - '@aws-sdk/util-user-agent-browser': 3.956.0 - '@aws-sdk/util-user-agent-node': 3.956.0 - '@smithy/config-resolver': 4.4.5 - '@smithy/core': 3.20.0 - '@smithy/fetch-http-handler': 5.3.8 - '@smithy/hash-node': 4.2.7 - '@smithy/invalid-dependency': 4.2.7 - '@smithy/middleware-content-length': 4.2.7 - '@smithy/middleware-endpoint': 4.4.1 - '@smithy/middleware-retry': 4.4.17 - '@smithy/middleware-serde': 4.2.8 - '@smithy/middleware-stack': 4.2.7 - '@smithy/node-config-provider': 4.3.7 - '@smithy/node-http-handler': 4.4.7 - '@smithy/protocol-http': 5.3.7 - '@smithy/smithy-client': 4.10.2 - '@smithy/types': 4.11.0 - '@smithy/url-parser': 4.2.7 + '@aws-sdk/core': 3.973.11 + '@aws-sdk/credential-provider-node': 3.972.10 + '@aws-sdk/middleware-host-header': 3.972.3 + '@aws-sdk/middleware-logger': 3.972.3 + '@aws-sdk/middleware-recursion-detection': 3.972.3 + '@aws-sdk/middleware-user-agent': 3.972.11 + '@aws-sdk/region-config-resolver': 3.972.3 + '@aws-sdk/types': 3.973.1 + '@aws-sdk/util-endpoints': 3.995.0 + '@aws-sdk/util-user-agent-browser': 3.972.3 + '@aws-sdk/util-user-agent-node': 3.972.10 + '@smithy/config-resolver': 4.4.6 + '@smithy/core': 3.23.2 + '@smithy/fetch-http-handler': 5.3.9 + '@smithy/hash-node': 4.2.8 + '@smithy/invalid-dependency': 4.2.8 + '@smithy/middleware-content-length': 4.2.8 + '@smithy/middleware-endpoint': 4.4.16 + '@smithy/middleware-retry': 4.4.33 + '@smithy/middleware-serde': 4.2.9 + '@smithy/middleware-stack': 4.2.8 + '@smithy/node-config-provider': 4.3.8 + '@smithy/node-http-handler': 4.4.10 + '@smithy/protocol-http': 5.3.8 + '@smithy/smithy-client': 4.11.5 + '@smithy/types': 4.12.0 + '@smithy/url-parser': 4.2.8 '@smithy/util-base64': 4.3.0 '@smithy/util-body-length-browser': 4.2.0 '@smithy/util-body-length-node': 4.2.1 - '@smithy/util-defaults-mode-browser': 4.3.16 - '@smithy/util-defaults-mode-node': 4.2.19 - '@smithy/util-endpoints': 3.2.7 - '@smithy/util-middleware': 4.2.7 - '@smithy/util-retry': 4.2.7 - '@smithy/util-stream': 4.5.8 + '@smithy/util-defaults-mode-browser': 4.3.32 + '@smithy/util-defaults-mode-node': 4.2.35 + '@smithy/util-endpoints': 3.2.8 + '@smithy/util-middleware': 4.2.8 + '@smithy/util-retry': 4.2.8 + '@smithy/util-stream': 4.5.12 '@smithy/util-utf8': 4.2.0 tslib: 2.8.1 transitivePeerDependencies: - aws-crt - '@aws-sdk/client-iot@3.956.0': + '@aws-sdk/client-iot@3.995.0': dependencies: '@aws-crypto/sha256-browser': 5.2.0 '@aws-crypto/sha256-js': 5.2.0 - '@aws-sdk/core': 3.956.0 - '@aws-sdk/credential-provider-node': 3.956.0 - '@aws-sdk/middleware-host-header': 3.956.0 - '@aws-sdk/middleware-logger': 3.956.0 - '@aws-sdk/middleware-recursion-detection': 3.956.0 - '@aws-sdk/middleware-user-agent': 3.956.0 - '@aws-sdk/region-config-resolver': 3.956.0 - '@aws-sdk/types': 3.956.0 - '@aws-sdk/util-endpoints': 3.956.0 - '@aws-sdk/util-user-agent-browser': 3.956.0 - '@aws-sdk/util-user-agent-node': 3.956.0 - '@smithy/config-resolver': 4.4.5 - '@smithy/core': 3.20.0 - '@smithy/fetch-http-handler': 5.3.8 - '@smithy/hash-node': 4.2.7 - '@smithy/invalid-dependency': 4.2.7 - '@smithy/middleware-content-length': 4.2.7 - '@smithy/middleware-endpoint': 4.4.1 - '@smithy/middleware-retry': 4.4.17 - '@smithy/middleware-serde': 4.2.8 - '@smithy/middleware-stack': 4.2.7 - '@smithy/node-config-provider': 4.3.7 - '@smithy/node-http-handler': 4.4.7 - '@smithy/protocol-http': 5.3.7 - '@smithy/smithy-client': 4.10.2 - '@smithy/types': 4.11.0 - '@smithy/url-parser': 4.2.7 + '@aws-sdk/core': 3.973.11 + '@aws-sdk/credential-provider-node': 3.972.10 + '@aws-sdk/middleware-host-header': 3.972.3 + '@aws-sdk/middleware-logger': 3.972.3 + '@aws-sdk/middleware-recursion-detection': 3.972.3 + '@aws-sdk/middleware-user-agent': 3.972.11 + '@aws-sdk/region-config-resolver': 3.972.3 + '@aws-sdk/types': 3.973.1 + '@aws-sdk/util-endpoints': 3.995.0 + '@aws-sdk/util-user-agent-browser': 3.972.3 + '@aws-sdk/util-user-agent-node': 3.972.10 + '@smithy/config-resolver': 4.4.6 + '@smithy/core': 3.23.2 + '@smithy/fetch-http-handler': 5.3.9 + '@smithy/hash-node': 4.2.8 + '@smithy/invalid-dependency': 4.2.8 + '@smithy/middleware-content-length': 4.2.8 + '@smithy/middleware-endpoint': 4.4.16 + '@smithy/middleware-retry': 4.4.33 + '@smithy/middleware-serde': 4.2.9 + '@smithy/middleware-stack': 4.2.8 + '@smithy/node-config-provider': 4.3.8 + '@smithy/node-http-handler': 4.4.10 + '@smithy/protocol-http': 5.3.8 + '@smithy/smithy-client': 4.11.5 + '@smithy/types': 4.12.0 + '@smithy/url-parser': 4.2.8 '@smithy/util-base64': 4.3.0 '@smithy/util-body-length-browser': 4.2.0 '@smithy/util-body-length-node': 4.2.1 - '@smithy/util-defaults-mode-browser': 4.3.16 - '@smithy/util-defaults-mode-node': 4.2.19 - '@smithy/util-endpoints': 3.2.7 - '@smithy/util-middleware': 4.2.7 - '@smithy/util-retry': 4.2.7 + '@smithy/util-defaults-mode-browser': 4.3.32 + '@smithy/util-defaults-mode-node': 4.2.35 + '@smithy/util-endpoints': 3.2.8 + '@smithy/util-middleware': 4.2.8 + '@smithy/util-retry': 4.2.8 '@smithy/util-utf8': 4.2.0 tslib: 2.8.1 transitivePeerDependencies: - aws-crt - '@aws-sdk/client-ivs@3.956.0': + '@aws-sdk/client-ivs@3.995.0': dependencies: '@aws-crypto/sha256-browser': 5.2.0 '@aws-crypto/sha256-js': 5.2.0 - '@aws-sdk/core': 3.956.0 - '@aws-sdk/credential-provider-node': 3.956.0 - '@aws-sdk/middleware-host-header': 3.956.0 - '@aws-sdk/middleware-logger': 3.956.0 - '@aws-sdk/middleware-recursion-detection': 3.956.0 - '@aws-sdk/middleware-user-agent': 3.956.0 - '@aws-sdk/region-config-resolver': 3.956.0 - '@aws-sdk/types': 3.956.0 - '@aws-sdk/util-endpoints': 3.956.0 - '@aws-sdk/util-user-agent-browser': 3.956.0 - '@aws-sdk/util-user-agent-node': 3.956.0 - '@smithy/config-resolver': 4.4.5 - '@smithy/core': 3.20.0 - '@smithy/fetch-http-handler': 5.3.8 - '@smithy/hash-node': 4.2.7 - '@smithy/invalid-dependency': 4.2.7 - '@smithy/middleware-content-length': 4.2.7 - '@smithy/middleware-endpoint': 4.4.1 - '@smithy/middleware-retry': 4.4.17 - '@smithy/middleware-serde': 4.2.8 - '@smithy/middleware-stack': 4.2.7 - '@smithy/node-config-provider': 4.3.7 - '@smithy/node-http-handler': 4.4.7 - '@smithy/protocol-http': 5.3.7 - '@smithy/smithy-client': 4.10.2 - '@smithy/types': 4.11.0 - '@smithy/url-parser': 4.2.7 + '@aws-sdk/core': 3.973.11 + '@aws-sdk/credential-provider-node': 3.972.10 + '@aws-sdk/middleware-host-header': 3.972.3 + '@aws-sdk/middleware-logger': 3.972.3 + '@aws-sdk/middleware-recursion-detection': 3.972.3 + '@aws-sdk/middleware-user-agent': 3.972.11 + '@aws-sdk/region-config-resolver': 3.972.3 + '@aws-sdk/types': 3.973.1 + '@aws-sdk/util-endpoints': 3.995.0 + '@aws-sdk/util-user-agent-browser': 3.972.3 + '@aws-sdk/util-user-agent-node': 3.972.10 + '@smithy/config-resolver': 4.4.6 + '@smithy/core': 3.23.2 + '@smithy/fetch-http-handler': 5.3.9 + '@smithy/hash-node': 4.2.8 + '@smithy/invalid-dependency': 4.2.8 + '@smithy/middleware-content-length': 4.2.8 + '@smithy/middleware-endpoint': 4.4.16 + '@smithy/middleware-retry': 4.4.33 + '@smithy/middleware-serde': 4.2.9 + '@smithy/middleware-stack': 4.2.8 + '@smithy/node-config-provider': 4.3.8 + '@smithy/node-http-handler': 4.4.10 + '@smithy/protocol-http': 5.3.8 + '@smithy/smithy-client': 4.11.5 + '@smithy/types': 4.12.0 + '@smithy/url-parser': 4.2.8 '@smithy/util-base64': 4.3.0 '@smithy/util-body-length-browser': 4.2.0 '@smithy/util-body-length-node': 4.2.1 - '@smithy/util-defaults-mode-browser': 4.3.16 - '@smithy/util-defaults-mode-node': 4.2.19 - '@smithy/util-endpoints': 3.2.7 - '@smithy/util-middleware': 4.2.7 - '@smithy/util-retry': 4.2.7 + '@smithy/util-defaults-mode-browser': 4.3.32 + '@smithy/util-defaults-mode-node': 4.2.35 + '@smithy/util-endpoints': 3.2.8 + '@smithy/util-middleware': 4.2.8 + '@smithy/util-retry': 4.2.8 '@smithy/util-utf8': 4.2.0 tslib: 2.8.1 transitivePeerDependencies: - aws-crt - '@aws-sdk/client-kafka@3.956.0': + '@aws-sdk/client-kafka@3.995.0': dependencies: '@aws-crypto/sha256-browser': 5.2.0 '@aws-crypto/sha256-js': 5.2.0 - '@aws-sdk/core': 3.956.0 - '@aws-sdk/credential-provider-node': 3.956.0 - '@aws-sdk/middleware-host-header': 3.956.0 - '@aws-sdk/middleware-logger': 3.956.0 - '@aws-sdk/middleware-recursion-detection': 3.956.0 - '@aws-sdk/middleware-user-agent': 3.956.0 - '@aws-sdk/region-config-resolver': 3.956.0 - '@aws-sdk/types': 3.956.0 - '@aws-sdk/util-endpoints': 3.956.0 - '@aws-sdk/util-user-agent-browser': 3.956.0 - '@aws-sdk/util-user-agent-node': 3.956.0 - '@smithy/config-resolver': 4.4.5 - '@smithy/core': 3.20.0 - '@smithy/fetch-http-handler': 5.3.8 - '@smithy/hash-node': 4.2.7 - '@smithy/invalid-dependency': 4.2.7 - '@smithy/middleware-content-length': 4.2.7 - '@smithy/middleware-endpoint': 4.4.1 - '@smithy/middleware-retry': 4.4.17 - '@smithy/middleware-serde': 4.2.8 - '@smithy/middleware-stack': 4.2.7 - '@smithy/node-config-provider': 4.3.7 - '@smithy/node-http-handler': 4.4.7 - '@smithy/protocol-http': 5.3.7 - '@smithy/smithy-client': 4.10.2 - '@smithy/types': 4.11.0 - '@smithy/url-parser': 4.2.7 + '@aws-sdk/core': 3.973.11 + '@aws-sdk/credential-provider-node': 3.972.10 + '@aws-sdk/middleware-host-header': 3.972.3 + '@aws-sdk/middleware-logger': 3.972.3 + '@aws-sdk/middleware-recursion-detection': 3.972.3 + '@aws-sdk/middleware-user-agent': 3.972.11 + '@aws-sdk/region-config-resolver': 3.972.3 + '@aws-sdk/types': 3.973.1 + '@aws-sdk/util-endpoints': 3.995.0 + '@aws-sdk/util-user-agent-browser': 3.972.3 + '@aws-sdk/util-user-agent-node': 3.972.10 + '@smithy/config-resolver': 4.4.6 + '@smithy/core': 3.23.2 + '@smithy/fetch-http-handler': 5.3.9 + '@smithy/hash-node': 4.2.8 + '@smithy/invalid-dependency': 4.2.8 + '@smithy/middleware-content-length': 4.2.8 + '@smithy/middleware-endpoint': 4.4.16 + '@smithy/middleware-retry': 4.4.33 + '@smithy/middleware-serde': 4.2.9 + '@smithy/middleware-stack': 4.2.8 + '@smithy/node-config-provider': 4.3.8 + '@smithy/node-http-handler': 4.4.10 + '@smithy/protocol-http': 5.3.8 + '@smithy/smithy-client': 4.11.5 + '@smithy/types': 4.12.0 + '@smithy/url-parser': 4.2.8 '@smithy/util-base64': 4.3.0 '@smithy/util-body-length-browser': 4.2.0 '@smithy/util-body-length-node': 4.2.1 - '@smithy/util-defaults-mode-browser': 4.3.16 - '@smithy/util-defaults-mode-node': 4.2.19 - '@smithy/util-endpoints': 3.2.7 - '@smithy/util-middleware': 4.2.7 - '@smithy/util-retry': 4.2.7 + '@smithy/util-defaults-mode-browser': 4.3.32 + '@smithy/util-defaults-mode-node': 4.2.35 + '@smithy/util-endpoints': 3.2.8 + '@smithy/util-middleware': 4.2.8 + '@smithy/util-retry': 4.2.8 '@smithy/util-utf8': 4.2.0 tslib: 2.8.1 transitivePeerDependencies: - aws-crt - '@aws-sdk/client-kafkaconnect@3.956.0': + '@aws-sdk/client-kafkaconnect@3.995.0': dependencies: '@aws-crypto/sha256-browser': 5.2.0 '@aws-crypto/sha256-js': 5.2.0 - '@aws-sdk/core': 3.956.0 - '@aws-sdk/credential-provider-node': 3.956.0 - '@aws-sdk/middleware-host-header': 3.956.0 - '@aws-sdk/middleware-logger': 3.956.0 - '@aws-sdk/middleware-recursion-detection': 3.956.0 - '@aws-sdk/middleware-user-agent': 3.956.0 - '@aws-sdk/region-config-resolver': 3.956.0 - '@aws-sdk/types': 3.956.0 - '@aws-sdk/util-endpoints': 3.956.0 - '@aws-sdk/util-user-agent-browser': 3.956.0 - '@aws-sdk/util-user-agent-node': 3.956.0 - '@smithy/config-resolver': 4.4.5 - '@smithy/core': 3.20.0 - '@smithy/fetch-http-handler': 5.3.8 - '@smithy/hash-node': 4.2.7 - '@smithy/invalid-dependency': 4.2.7 - '@smithy/middleware-content-length': 4.2.7 - '@smithy/middleware-endpoint': 4.4.1 - '@smithy/middleware-retry': 4.4.17 - '@smithy/middleware-serde': 4.2.8 - '@smithy/middleware-stack': 4.2.7 - '@smithy/node-config-provider': 4.3.7 - '@smithy/node-http-handler': 4.4.7 - '@smithy/protocol-http': 5.3.7 - '@smithy/smithy-client': 4.10.2 - '@smithy/types': 4.11.0 - '@smithy/url-parser': 4.2.7 + '@aws-sdk/core': 3.973.11 + '@aws-sdk/credential-provider-node': 3.972.10 + '@aws-sdk/middleware-host-header': 3.972.3 + '@aws-sdk/middleware-logger': 3.972.3 + '@aws-sdk/middleware-recursion-detection': 3.972.3 + '@aws-sdk/middleware-user-agent': 3.972.11 + '@aws-sdk/region-config-resolver': 3.972.3 + '@aws-sdk/types': 3.973.1 + '@aws-sdk/util-endpoints': 3.995.0 + '@aws-sdk/util-user-agent-browser': 3.972.3 + '@aws-sdk/util-user-agent-node': 3.972.10 + '@smithy/config-resolver': 4.4.6 + '@smithy/core': 3.23.2 + '@smithy/fetch-http-handler': 5.3.9 + '@smithy/hash-node': 4.2.8 + '@smithy/invalid-dependency': 4.2.8 + '@smithy/middleware-content-length': 4.2.8 + '@smithy/middleware-endpoint': 4.4.16 + '@smithy/middleware-retry': 4.4.33 + '@smithy/middleware-serde': 4.2.9 + '@smithy/middleware-stack': 4.2.8 + '@smithy/node-config-provider': 4.3.8 + '@smithy/node-http-handler': 4.4.10 + '@smithy/protocol-http': 5.3.8 + '@smithy/smithy-client': 4.11.5 + '@smithy/types': 4.12.0 + '@smithy/url-parser': 4.2.8 '@smithy/util-base64': 4.3.0 '@smithy/util-body-length-browser': 4.2.0 '@smithy/util-body-length-node': 4.2.1 - '@smithy/util-defaults-mode-browser': 4.3.16 - '@smithy/util-defaults-mode-node': 4.2.19 - '@smithy/util-endpoints': 3.2.7 - '@smithy/util-middleware': 4.2.7 - '@smithy/util-retry': 4.2.7 + '@smithy/util-defaults-mode-browser': 4.3.32 + '@smithy/util-defaults-mode-node': 4.2.35 + '@smithy/util-endpoints': 3.2.8 + '@smithy/util-middleware': 4.2.8 + '@smithy/util-retry': 4.2.8 '@smithy/util-utf8': 4.2.0 tslib: 2.8.1 transitivePeerDependencies: - aws-crt - '@aws-sdk/client-kinesis@3.956.0': + '@aws-sdk/client-kinesis@3.995.0': dependencies: '@aws-crypto/sha256-browser': 5.2.0 '@aws-crypto/sha256-js': 5.2.0 - '@aws-sdk/core': 3.956.0 - '@aws-sdk/credential-provider-node': 3.956.0 - '@aws-sdk/middleware-host-header': 3.956.0 - '@aws-sdk/middleware-logger': 3.956.0 - '@aws-sdk/middleware-recursion-detection': 3.956.0 - '@aws-sdk/middleware-user-agent': 3.956.0 - '@aws-sdk/region-config-resolver': 3.956.0 - '@aws-sdk/types': 3.956.0 - '@aws-sdk/util-endpoints': 3.956.0 - '@aws-sdk/util-user-agent-browser': 3.956.0 - '@aws-sdk/util-user-agent-node': 3.956.0 - '@smithy/config-resolver': 4.4.5 - '@smithy/core': 3.20.0 - '@smithy/eventstream-serde-browser': 4.2.7 - '@smithy/eventstream-serde-config-resolver': 4.3.7 - '@smithy/eventstream-serde-node': 4.2.7 - '@smithy/fetch-http-handler': 5.3.8 - '@smithy/hash-node': 4.2.7 - '@smithy/invalid-dependency': 4.2.7 - '@smithy/middleware-content-length': 4.2.7 - '@smithy/middleware-endpoint': 4.4.1 - '@smithy/middleware-retry': 4.4.17 - '@smithy/middleware-serde': 4.2.8 - '@smithy/middleware-stack': 4.2.7 - '@smithy/node-config-provider': 4.3.7 - '@smithy/node-http-handler': 4.4.7 - '@smithy/protocol-http': 5.3.7 - '@smithy/smithy-client': 4.10.2 - '@smithy/types': 4.11.0 - '@smithy/url-parser': 4.2.7 + '@aws-sdk/core': 3.973.11 + '@aws-sdk/credential-provider-node': 3.972.10 + '@aws-sdk/middleware-host-header': 3.972.3 + '@aws-sdk/middleware-logger': 3.972.3 + '@aws-sdk/middleware-recursion-detection': 3.972.3 + '@aws-sdk/middleware-user-agent': 3.972.11 + '@aws-sdk/region-config-resolver': 3.972.3 + '@aws-sdk/types': 3.973.1 + '@aws-sdk/util-endpoints': 3.995.0 + '@aws-sdk/util-user-agent-browser': 3.972.3 + '@aws-sdk/util-user-agent-node': 3.972.10 + '@smithy/config-resolver': 4.4.6 + '@smithy/core': 3.23.2 + '@smithy/eventstream-serde-browser': 4.2.8 + '@smithy/eventstream-serde-config-resolver': 4.3.8 + '@smithy/eventstream-serde-node': 4.2.8 + '@smithy/fetch-http-handler': 5.3.9 + '@smithy/hash-node': 4.2.8 + '@smithy/invalid-dependency': 4.2.8 + '@smithy/middleware-content-length': 4.2.8 + '@smithy/middleware-endpoint': 4.4.16 + '@smithy/middleware-retry': 4.4.33 + '@smithy/middleware-serde': 4.2.9 + '@smithy/middleware-stack': 4.2.8 + '@smithy/node-config-provider': 4.3.8 + '@smithy/node-http-handler': 4.4.10 + '@smithy/protocol-http': 5.3.8 + '@smithy/smithy-client': 4.11.5 + '@smithy/types': 4.12.0 + '@smithy/url-parser': 4.2.8 '@smithy/util-base64': 4.3.0 '@smithy/util-body-length-browser': 4.2.0 '@smithy/util-body-length-node': 4.2.1 - '@smithy/util-defaults-mode-browser': 4.3.16 - '@smithy/util-defaults-mode-node': 4.2.19 - '@smithy/util-endpoints': 3.2.7 - '@smithy/util-middleware': 4.2.7 - '@smithy/util-retry': 4.2.7 + '@smithy/util-defaults-mode-browser': 4.3.32 + '@smithy/util-defaults-mode-node': 4.2.35 + '@smithy/util-endpoints': 3.2.8 + '@smithy/util-middleware': 4.2.8 + '@smithy/util-retry': 4.2.8 '@smithy/util-utf8': 4.2.0 - '@smithy/util-waiter': 4.2.7 + '@smithy/util-waiter': 4.2.8 tslib: 2.8.1 transitivePeerDependencies: - aws-crt - '@aws-sdk/client-kms@3.956.0': + '@aws-sdk/client-kms@3.995.0': dependencies: '@aws-crypto/sha256-browser': 5.2.0 '@aws-crypto/sha256-js': 5.2.0 - '@aws-sdk/core': 3.956.0 - '@aws-sdk/credential-provider-node': 3.956.0 - '@aws-sdk/middleware-host-header': 3.956.0 - '@aws-sdk/middleware-logger': 3.956.0 - '@aws-sdk/middleware-recursion-detection': 3.956.0 - '@aws-sdk/middleware-user-agent': 3.956.0 - '@aws-sdk/region-config-resolver': 3.956.0 - '@aws-sdk/types': 3.956.0 - '@aws-sdk/util-endpoints': 3.956.0 - '@aws-sdk/util-user-agent-browser': 3.956.0 - '@aws-sdk/util-user-agent-node': 3.956.0 - '@smithy/config-resolver': 4.4.5 - '@smithy/core': 3.20.0 - '@smithy/fetch-http-handler': 5.3.8 - '@smithy/hash-node': 4.2.7 - '@smithy/invalid-dependency': 4.2.7 - '@smithy/middleware-content-length': 4.2.7 - '@smithy/middleware-endpoint': 4.4.1 - '@smithy/middleware-retry': 4.4.17 - '@smithy/middleware-serde': 4.2.8 - '@smithy/middleware-stack': 4.2.7 - '@smithy/node-config-provider': 4.3.7 - '@smithy/node-http-handler': 4.4.7 - '@smithy/protocol-http': 5.3.7 - '@smithy/smithy-client': 4.10.2 - '@smithy/types': 4.11.0 - '@smithy/url-parser': 4.2.7 + '@aws-sdk/core': 3.973.11 + '@aws-sdk/credential-provider-node': 3.972.10 + '@aws-sdk/middleware-host-header': 3.972.3 + '@aws-sdk/middleware-logger': 3.972.3 + '@aws-sdk/middleware-recursion-detection': 3.972.3 + '@aws-sdk/middleware-user-agent': 3.972.11 + '@aws-sdk/region-config-resolver': 3.972.3 + '@aws-sdk/types': 3.973.1 + '@aws-sdk/util-endpoints': 3.995.0 + '@aws-sdk/util-user-agent-browser': 3.972.3 + '@aws-sdk/util-user-agent-node': 3.972.10 + '@smithy/config-resolver': 4.4.6 + '@smithy/core': 3.23.2 + '@smithy/fetch-http-handler': 5.3.9 + '@smithy/hash-node': 4.2.8 + '@smithy/invalid-dependency': 4.2.8 + '@smithy/middleware-content-length': 4.2.8 + '@smithy/middleware-endpoint': 4.4.16 + '@smithy/middleware-retry': 4.4.33 + '@smithy/middleware-serde': 4.2.9 + '@smithy/middleware-stack': 4.2.8 + '@smithy/node-config-provider': 4.3.8 + '@smithy/node-http-handler': 4.4.10 + '@smithy/protocol-http': 5.3.8 + '@smithy/smithy-client': 4.11.5 + '@smithy/types': 4.12.0 + '@smithy/url-parser': 4.2.8 '@smithy/util-base64': 4.3.0 '@smithy/util-body-length-browser': 4.2.0 '@smithy/util-body-length-node': 4.2.1 - '@smithy/util-defaults-mode-browser': 4.3.16 - '@smithy/util-defaults-mode-node': 4.2.19 - '@smithy/util-endpoints': 3.2.7 - '@smithy/util-middleware': 4.2.7 - '@smithy/util-retry': 4.2.7 + '@smithy/util-defaults-mode-browser': 4.3.32 + '@smithy/util-defaults-mode-node': 4.2.35 + '@smithy/util-endpoints': 3.2.8 + '@smithy/util-middleware': 4.2.8 + '@smithy/util-retry': 4.2.8 '@smithy/util-utf8': 4.2.0 tslib: 2.8.1 transitivePeerDependencies: - aws-crt - '@aws-sdk/client-lambda@3.956.0': + '@aws-sdk/client-lambda@3.995.0': dependencies: '@aws-crypto/sha256-browser': 5.2.0 '@aws-crypto/sha256-js': 5.2.0 - '@aws-sdk/core': 3.956.0 - '@aws-sdk/credential-provider-node': 3.956.0 - '@aws-sdk/middleware-host-header': 3.956.0 - '@aws-sdk/middleware-logger': 3.956.0 - '@aws-sdk/middleware-recursion-detection': 3.956.0 - '@aws-sdk/middleware-user-agent': 3.956.0 - '@aws-sdk/region-config-resolver': 3.956.0 - '@aws-sdk/types': 3.956.0 - '@aws-sdk/util-endpoints': 3.956.0 - '@aws-sdk/util-user-agent-browser': 3.956.0 - '@aws-sdk/util-user-agent-node': 3.956.0 - '@smithy/config-resolver': 4.4.5 - '@smithy/core': 3.20.0 - '@smithy/eventstream-serde-browser': 4.2.7 - '@smithy/eventstream-serde-config-resolver': 4.3.7 - '@smithy/eventstream-serde-node': 4.2.7 - '@smithy/fetch-http-handler': 5.3.8 - '@smithy/hash-node': 4.2.7 - '@smithy/invalid-dependency': 4.2.7 - '@smithy/middleware-content-length': 4.2.7 - '@smithy/middleware-endpoint': 4.4.1 - '@smithy/middleware-retry': 4.4.17 - '@smithy/middleware-serde': 4.2.8 - '@smithy/middleware-stack': 4.2.7 - '@smithy/node-config-provider': 4.3.7 - '@smithy/node-http-handler': 4.4.7 - '@smithy/protocol-http': 5.3.7 - '@smithy/smithy-client': 4.10.2 - '@smithy/types': 4.11.0 - '@smithy/url-parser': 4.2.7 + '@aws-sdk/core': 3.973.11 + '@aws-sdk/credential-provider-node': 3.972.10 + '@aws-sdk/middleware-host-header': 3.972.3 + '@aws-sdk/middleware-logger': 3.972.3 + '@aws-sdk/middleware-recursion-detection': 3.972.3 + '@aws-sdk/middleware-user-agent': 3.972.11 + '@aws-sdk/region-config-resolver': 3.972.3 + '@aws-sdk/types': 3.973.1 + '@aws-sdk/util-endpoints': 3.995.0 + '@aws-sdk/util-user-agent-browser': 3.972.3 + '@aws-sdk/util-user-agent-node': 3.972.10 + '@smithy/config-resolver': 4.4.6 + '@smithy/core': 3.23.2 + '@smithy/eventstream-serde-browser': 4.2.8 + '@smithy/eventstream-serde-config-resolver': 4.3.8 + '@smithy/eventstream-serde-node': 4.2.8 + '@smithy/fetch-http-handler': 5.3.9 + '@smithy/hash-node': 4.2.8 + '@smithy/invalid-dependency': 4.2.8 + '@smithy/middleware-content-length': 4.2.8 + '@smithy/middleware-endpoint': 4.4.16 + '@smithy/middleware-retry': 4.4.33 + '@smithy/middleware-serde': 4.2.9 + '@smithy/middleware-stack': 4.2.8 + '@smithy/node-config-provider': 4.3.8 + '@smithy/node-http-handler': 4.4.10 + '@smithy/protocol-http': 5.3.8 + '@smithy/smithy-client': 4.11.5 + '@smithy/types': 4.12.0 + '@smithy/url-parser': 4.2.8 '@smithy/util-base64': 4.3.0 '@smithy/util-body-length-browser': 4.2.0 '@smithy/util-body-length-node': 4.2.1 - '@smithy/util-defaults-mode-browser': 4.3.16 - '@smithy/util-defaults-mode-node': 4.2.19 - '@smithy/util-endpoints': 3.2.7 - '@smithy/util-middleware': 4.2.7 - '@smithy/util-retry': 4.2.7 - '@smithy/util-stream': 4.5.8 + '@smithy/util-defaults-mode-browser': 4.3.32 + '@smithy/util-defaults-mode-node': 4.2.35 + '@smithy/util-endpoints': 3.2.8 + '@smithy/util-middleware': 4.2.8 + '@smithy/util-retry': 4.2.8 + '@smithy/util-stream': 4.5.12 '@smithy/util-utf8': 4.2.0 - '@smithy/util-waiter': 4.2.7 + '@smithy/util-waiter': 4.2.8 tslib: 2.8.1 transitivePeerDependencies: - aws-crt - '@aws-sdk/client-mq@3.956.0': + '@aws-sdk/client-mq@3.995.0': dependencies: '@aws-crypto/sha256-browser': 5.2.0 '@aws-crypto/sha256-js': 5.2.0 - '@aws-sdk/core': 3.956.0 - '@aws-sdk/credential-provider-node': 3.956.0 - '@aws-sdk/middleware-host-header': 3.956.0 - '@aws-sdk/middleware-logger': 3.956.0 - '@aws-sdk/middleware-recursion-detection': 3.956.0 - '@aws-sdk/middleware-user-agent': 3.956.0 - '@aws-sdk/region-config-resolver': 3.956.0 - '@aws-sdk/types': 3.956.0 - '@aws-sdk/util-endpoints': 3.956.0 - '@aws-sdk/util-user-agent-browser': 3.956.0 - '@aws-sdk/util-user-agent-node': 3.956.0 - '@smithy/config-resolver': 4.4.5 - '@smithy/core': 3.20.0 - '@smithy/fetch-http-handler': 5.3.8 - '@smithy/hash-node': 4.2.7 - '@smithy/invalid-dependency': 4.2.7 - '@smithy/middleware-content-length': 4.2.7 - '@smithy/middleware-endpoint': 4.4.1 - '@smithy/middleware-retry': 4.4.17 - '@smithy/middleware-serde': 4.2.8 - '@smithy/middleware-stack': 4.2.7 - '@smithy/node-config-provider': 4.3.7 - '@smithy/node-http-handler': 4.4.7 - '@smithy/protocol-http': 5.3.7 - '@smithy/smithy-client': 4.10.2 - '@smithy/types': 4.11.0 - '@smithy/url-parser': 4.2.7 + '@aws-sdk/core': 3.973.11 + '@aws-sdk/credential-provider-node': 3.972.10 + '@aws-sdk/middleware-host-header': 3.972.3 + '@aws-sdk/middleware-logger': 3.972.3 + '@aws-sdk/middleware-recursion-detection': 3.972.3 + '@aws-sdk/middleware-user-agent': 3.972.11 + '@aws-sdk/region-config-resolver': 3.972.3 + '@aws-sdk/types': 3.973.1 + '@aws-sdk/util-endpoints': 3.995.0 + '@aws-sdk/util-user-agent-browser': 3.972.3 + '@aws-sdk/util-user-agent-node': 3.972.10 + '@smithy/config-resolver': 4.4.6 + '@smithy/core': 3.23.2 + '@smithy/fetch-http-handler': 5.3.9 + '@smithy/hash-node': 4.2.8 + '@smithy/invalid-dependency': 4.2.8 + '@smithy/middleware-content-length': 4.2.8 + '@smithy/middleware-endpoint': 4.4.16 + '@smithy/middleware-retry': 4.4.33 + '@smithy/middleware-serde': 4.2.9 + '@smithy/middleware-stack': 4.2.8 + '@smithy/node-config-provider': 4.3.8 + '@smithy/node-http-handler': 4.4.10 + '@smithy/protocol-http': 5.3.8 + '@smithy/smithy-client': 4.11.5 + '@smithy/types': 4.12.0 + '@smithy/url-parser': 4.2.8 '@smithy/util-base64': 4.3.0 '@smithy/util-body-length-browser': 4.2.0 '@smithy/util-body-length-node': 4.2.1 - '@smithy/util-defaults-mode-browser': 4.3.16 - '@smithy/util-defaults-mode-node': 4.2.19 - '@smithy/util-endpoints': 3.2.7 - '@smithy/util-middleware': 4.2.7 - '@smithy/util-retry': 4.2.7 + '@smithy/util-defaults-mode-browser': 4.3.32 + '@smithy/util-defaults-mode-node': 4.2.35 + '@smithy/util-endpoints': 3.2.8 + '@smithy/util-middleware': 4.2.8 + '@smithy/util-retry': 4.2.8 '@smithy/util-utf8': 4.2.0 tslib: 2.8.1 transitivePeerDependencies: - aws-crt - '@aws-sdk/client-opensearch@3.956.0': + '@aws-sdk/client-opensearch@3.995.0': dependencies: '@aws-crypto/sha256-browser': 5.2.0 '@aws-crypto/sha256-js': 5.2.0 - '@aws-sdk/core': 3.956.0 - '@aws-sdk/credential-provider-node': 3.956.0 - '@aws-sdk/middleware-host-header': 3.956.0 - '@aws-sdk/middleware-logger': 3.956.0 - '@aws-sdk/middleware-recursion-detection': 3.956.0 - '@aws-sdk/middleware-user-agent': 3.956.0 - '@aws-sdk/region-config-resolver': 3.956.0 - '@aws-sdk/types': 3.956.0 - '@aws-sdk/util-endpoints': 3.956.0 - '@aws-sdk/util-user-agent-browser': 3.956.0 - '@aws-sdk/util-user-agent-node': 3.956.0 - '@smithy/config-resolver': 4.4.5 - '@smithy/core': 3.20.0 - '@smithy/fetch-http-handler': 5.3.8 - '@smithy/hash-node': 4.2.7 - '@smithy/invalid-dependency': 4.2.7 - '@smithy/middleware-content-length': 4.2.7 - '@smithy/middleware-endpoint': 4.4.1 - '@smithy/middleware-retry': 4.4.17 - '@smithy/middleware-serde': 4.2.8 - '@smithy/middleware-stack': 4.2.7 - '@smithy/node-config-provider': 4.3.7 - '@smithy/node-http-handler': 4.4.7 - '@smithy/protocol-http': 5.3.7 - '@smithy/smithy-client': 4.10.2 - '@smithy/types': 4.11.0 - '@smithy/url-parser': 4.2.7 + '@aws-sdk/core': 3.973.11 + '@aws-sdk/credential-provider-node': 3.972.10 + '@aws-sdk/middleware-host-header': 3.972.3 + '@aws-sdk/middleware-logger': 3.972.3 + '@aws-sdk/middleware-recursion-detection': 3.972.3 + '@aws-sdk/middleware-user-agent': 3.972.11 + '@aws-sdk/region-config-resolver': 3.972.3 + '@aws-sdk/types': 3.973.1 + '@aws-sdk/util-endpoints': 3.995.0 + '@aws-sdk/util-user-agent-browser': 3.972.3 + '@aws-sdk/util-user-agent-node': 3.972.10 + '@smithy/config-resolver': 4.4.6 + '@smithy/core': 3.23.2 + '@smithy/fetch-http-handler': 5.3.9 + '@smithy/hash-node': 4.2.8 + '@smithy/invalid-dependency': 4.2.8 + '@smithy/middleware-content-length': 4.2.8 + '@smithy/middleware-endpoint': 4.4.16 + '@smithy/middleware-retry': 4.4.33 + '@smithy/middleware-serde': 4.2.9 + '@smithy/middleware-stack': 4.2.8 + '@smithy/node-config-provider': 4.3.8 + '@smithy/node-http-handler': 4.4.10 + '@smithy/protocol-http': 5.3.8 + '@smithy/smithy-client': 4.11.5 + '@smithy/types': 4.12.0 + '@smithy/url-parser': 4.2.8 '@smithy/util-base64': 4.3.0 '@smithy/util-body-length-browser': 4.2.0 '@smithy/util-body-length-node': 4.2.1 - '@smithy/util-defaults-mode-browser': 4.3.16 - '@smithy/util-defaults-mode-node': 4.2.19 - '@smithy/util-endpoints': 3.2.7 - '@smithy/util-middleware': 4.2.7 - '@smithy/util-retry': 4.2.7 + '@smithy/util-defaults-mode-browser': 4.3.32 + '@smithy/util-defaults-mode-node': 4.2.35 + '@smithy/util-endpoints': 3.2.8 + '@smithy/util-middleware': 4.2.8 + '@smithy/util-retry': 4.2.8 '@smithy/util-utf8': 4.2.0 tslib: 2.8.1 transitivePeerDependencies: - aws-crt - '@aws-sdk/client-opensearchserverless@3.956.0': + '@aws-sdk/client-opensearchserverless@3.995.0': dependencies: '@aws-crypto/sha256-browser': 5.2.0 '@aws-crypto/sha256-js': 5.2.0 - '@aws-sdk/core': 3.956.0 - '@aws-sdk/credential-provider-node': 3.956.0 - '@aws-sdk/middleware-host-header': 3.956.0 - '@aws-sdk/middleware-logger': 3.956.0 - '@aws-sdk/middleware-recursion-detection': 3.956.0 - '@aws-sdk/middleware-user-agent': 3.956.0 - '@aws-sdk/region-config-resolver': 3.956.0 - '@aws-sdk/types': 3.956.0 - '@aws-sdk/util-endpoints': 3.956.0 - '@aws-sdk/util-user-agent-browser': 3.956.0 - '@aws-sdk/util-user-agent-node': 3.956.0 - '@smithy/config-resolver': 4.4.5 - '@smithy/core': 3.20.0 - '@smithy/fetch-http-handler': 5.3.8 - '@smithy/hash-node': 4.2.7 - '@smithy/invalid-dependency': 4.2.7 - '@smithy/middleware-content-length': 4.2.7 - '@smithy/middleware-endpoint': 4.4.1 - '@smithy/middleware-retry': 4.4.17 - '@smithy/middleware-serde': 4.2.8 - '@smithy/middleware-stack': 4.2.7 - '@smithy/node-config-provider': 4.3.7 - '@smithy/node-http-handler': 4.4.7 - '@smithy/protocol-http': 5.3.7 - '@smithy/smithy-client': 4.10.2 - '@smithy/types': 4.11.0 - '@smithy/url-parser': 4.2.7 + '@aws-sdk/core': 3.973.11 + '@aws-sdk/credential-provider-node': 3.972.10 + '@aws-sdk/middleware-host-header': 3.972.3 + '@aws-sdk/middleware-logger': 3.972.3 + '@aws-sdk/middleware-recursion-detection': 3.972.3 + '@aws-sdk/middleware-user-agent': 3.972.11 + '@aws-sdk/region-config-resolver': 3.972.3 + '@aws-sdk/types': 3.973.1 + '@aws-sdk/util-endpoints': 3.995.0 + '@aws-sdk/util-user-agent-browser': 3.972.3 + '@aws-sdk/util-user-agent-node': 3.972.10 + '@smithy/config-resolver': 4.4.6 + '@smithy/core': 3.23.2 + '@smithy/fetch-http-handler': 5.3.9 + '@smithy/hash-node': 4.2.8 + '@smithy/invalid-dependency': 4.2.8 + '@smithy/middleware-content-length': 4.2.8 + '@smithy/middleware-endpoint': 4.4.16 + '@smithy/middleware-retry': 4.4.33 + '@smithy/middleware-serde': 4.2.9 + '@smithy/middleware-stack': 4.2.8 + '@smithy/node-config-provider': 4.3.8 + '@smithy/node-http-handler': 4.4.10 + '@smithy/protocol-http': 5.3.8 + '@smithy/smithy-client': 4.11.5 + '@smithy/types': 4.12.0 + '@smithy/url-parser': 4.2.8 '@smithy/util-base64': 4.3.0 '@smithy/util-body-length-browser': 4.2.0 '@smithy/util-body-length-node': 4.2.1 - '@smithy/util-defaults-mode-browser': 4.3.16 - '@smithy/util-defaults-mode-node': 4.2.19 - '@smithy/util-endpoints': 3.2.7 - '@smithy/util-middleware': 4.2.7 - '@smithy/util-retry': 4.2.7 + '@smithy/util-defaults-mode-browser': 4.3.32 + '@smithy/util-defaults-mode-node': 4.2.35 + '@smithy/util-endpoints': 3.2.8 + '@smithy/util-middleware': 4.2.8 + '@smithy/util-retry': 4.2.8 '@smithy/util-utf8': 4.2.0 tslib: 2.8.1 transitivePeerDependencies: - aws-crt - '@aws-sdk/client-organizations@3.956.0': + '@aws-sdk/client-organizations@3.995.0': dependencies: '@aws-crypto/sha256-browser': 5.2.0 '@aws-crypto/sha256-js': 5.2.0 - '@aws-sdk/core': 3.956.0 - '@aws-sdk/credential-provider-node': 3.956.0 - '@aws-sdk/middleware-host-header': 3.956.0 - '@aws-sdk/middleware-logger': 3.956.0 - '@aws-sdk/middleware-recursion-detection': 3.956.0 - '@aws-sdk/middleware-user-agent': 3.956.0 - '@aws-sdk/region-config-resolver': 3.956.0 - '@aws-sdk/types': 3.956.0 - '@aws-sdk/util-endpoints': 3.956.0 - '@aws-sdk/util-user-agent-browser': 3.956.0 - '@aws-sdk/util-user-agent-node': 3.956.0 - '@smithy/config-resolver': 4.4.5 - '@smithy/core': 3.20.0 - '@smithy/fetch-http-handler': 5.3.8 - '@smithy/hash-node': 4.2.7 - '@smithy/invalid-dependency': 4.2.7 - '@smithy/middleware-content-length': 4.2.7 - '@smithy/middleware-endpoint': 4.4.1 - '@smithy/middleware-retry': 4.4.17 - '@smithy/middleware-serde': 4.2.8 - '@smithy/middleware-stack': 4.2.7 - '@smithy/node-config-provider': 4.3.7 - '@smithy/node-http-handler': 4.4.7 - '@smithy/protocol-http': 5.3.7 - '@smithy/smithy-client': 4.10.2 - '@smithy/types': 4.11.0 - '@smithy/url-parser': 4.2.7 + '@aws-sdk/core': 3.973.11 + '@aws-sdk/credential-provider-node': 3.972.10 + '@aws-sdk/middleware-host-header': 3.972.3 + '@aws-sdk/middleware-logger': 3.972.3 + '@aws-sdk/middleware-recursion-detection': 3.972.3 + '@aws-sdk/middleware-user-agent': 3.972.11 + '@aws-sdk/region-config-resolver': 3.972.3 + '@aws-sdk/types': 3.973.1 + '@aws-sdk/util-endpoints': 3.995.0 + '@aws-sdk/util-user-agent-browser': 3.972.3 + '@aws-sdk/util-user-agent-node': 3.972.10 + '@smithy/config-resolver': 4.4.6 + '@smithy/core': 3.23.2 + '@smithy/fetch-http-handler': 5.3.9 + '@smithy/hash-node': 4.2.8 + '@smithy/invalid-dependency': 4.2.8 + '@smithy/middleware-content-length': 4.2.8 + '@smithy/middleware-endpoint': 4.4.16 + '@smithy/middleware-retry': 4.4.33 + '@smithy/middleware-serde': 4.2.9 + '@smithy/middleware-stack': 4.2.8 + '@smithy/node-config-provider': 4.3.8 + '@smithy/node-http-handler': 4.4.10 + '@smithy/protocol-http': 5.3.8 + '@smithy/smithy-client': 4.11.5 + '@smithy/types': 4.12.0 + '@smithy/url-parser': 4.2.8 '@smithy/util-base64': 4.3.0 '@smithy/util-body-length-browser': 4.2.0 '@smithy/util-body-length-node': 4.2.1 - '@smithy/util-defaults-mode-browser': 4.3.16 - '@smithy/util-defaults-mode-node': 4.2.19 - '@smithy/util-endpoints': 3.2.7 - '@smithy/util-middleware': 4.2.7 - '@smithy/util-retry': 4.2.7 + '@smithy/util-defaults-mode-browser': 4.3.32 + '@smithy/util-defaults-mode-node': 4.2.35 + '@smithy/util-endpoints': 3.2.8 + '@smithy/util-middleware': 4.2.8 + '@smithy/util-retry': 4.2.8 '@smithy/util-utf8': 4.2.0 tslib: 2.8.1 transitivePeerDependencies: - aws-crt - '@aws-sdk/client-rds@3.956.0': + '@aws-sdk/client-rds@3.995.0': dependencies: '@aws-crypto/sha256-browser': 5.2.0 '@aws-crypto/sha256-js': 5.2.0 - '@aws-sdk/core': 3.956.0 - '@aws-sdk/credential-provider-node': 3.956.0 - '@aws-sdk/middleware-host-header': 3.956.0 - '@aws-sdk/middleware-logger': 3.956.0 - '@aws-sdk/middleware-recursion-detection': 3.956.0 - '@aws-sdk/middleware-sdk-rds': 3.956.0 - '@aws-sdk/middleware-user-agent': 3.956.0 - '@aws-sdk/region-config-resolver': 3.956.0 - '@aws-sdk/types': 3.956.0 - '@aws-sdk/util-endpoints': 3.956.0 - '@aws-sdk/util-user-agent-browser': 3.956.0 - '@aws-sdk/util-user-agent-node': 3.956.0 - '@smithy/config-resolver': 4.4.5 - '@smithy/core': 3.20.0 - '@smithy/fetch-http-handler': 5.3.8 - '@smithy/hash-node': 4.2.7 - '@smithy/invalid-dependency': 4.2.7 - '@smithy/middleware-content-length': 4.2.7 - '@smithy/middleware-endpoint': 4.4.1 - '@smithy/middleware-retry': 4.4.17 - '@smithy/middleware-serde': 4.2.8 - '@smithy/middleware-stack': 4.2.7 - '@smithy/node-config-provider': 4.3.7 - '@smithy/node-http-handler': 4.4.7 - '@smithy/protocol-http': 5.3.7 - '@smithy/smithy-client': 4.10.2 - '@smithy/types': 4.11.0 - '@smithy/url-parser': 4.2.7 + '@aws-sdk/core': 3.973.11 + '@aws-sdk/credential-provider-node': 3.972.10 + '@aws-sdk/middleware-host-header': 3.972.3 + '@aws-sdk/middleware-logger': 3.972.3 + '@aws-sdk/middleware-recursion-detection': 3.972.3 + '@aws-sdk/middleware-sdk-rds': 3.972.8 + '@aws-sdk/middleware-user-agent': 3.972.11 + '@aws-sdk/region-config-resolver': 3.972.3 + '@aws-sdk/types': 3.973.1 + '@aws-sdk/util-endpoints': 3.995.0 + '@aws-sdk/util-user-agent-browser': 3.972.3 + '@aws-sdk/util-user-agent-node': 3.972.10 + '@smithy/config-resolver': 4.4.6 + '@smithy/core': 3.23.2 + '@smithy/fetch-http-handler': 5.3.9 + '@smithy/hash-node': 4.2.8 + '@smithy/invalid-dependency': 4.2.8 + '@smithy/middleware-content-length': 4.2.8 + '@smithy/middleware-endpoint': 4.4.16 + '@smithy/middleware-retry': 4.4.33 + '@smithy/middleware-serde': 4.2.9 + '@smithy/middleware-stack': 4.2.8 + '@smithy/node-config-provider': 4.3.8 + '@smithy/node-http-handler': 4.4.10 + '@smithy/protocol-http': 5.3.8 + '@smithy/smithy-client': 4.11.5 + '@smithy/types': 4.12.0 + '@smithy/url-parser': 4.2.8 '@smithy/util-base64': 4.3.0 '@smithy/util-body-length-browser': 4.2.0 '@smithy/util-body-length-node': 4.2.1 - '@smithy/util-defaults-mode-browser': 4.3.16 - '@smithy/util-defaults-mode-node': 4.2.19 - '@smithy/util-endpoints': 3.2.7 - '@smithy/util-middleware': 4.2.7 - '@smithy/util-retry': 4.2.7 + '@smithy/util-defaults-mode-browser': 4.3.32 + '@smithy/util-defaults-mode-node': 4.2.35 + '@smithy/util-endpoints': 3.2.8 + '@smithy/util-middleware': 4.2.8 + '@smithy/util-retry': 4.2.8 '@smithy/util-utf8': 4.2.0 - '@smithy/util-waiter': 4.2.7 + '@smithy/util-waiter': 4.2.8 tslib: 2.8.1 transitivePeerDependencies: - aws-crt - '@aws-sdk/client-s3@3.956.0': + '@aws-sdk/client-s3@3.995.0': dependencies: '@aws-crypto/sha1-browser': 5.2.0 '@aws-crypto/sha256-browser': 5.2.0 '@aws-crypto/sha256-js': 5.2.0 - '@aws-sdk/core': 3.956.0 - '@aws-sdk/credential-provider-node': 3.956.0 - '@aws-sdk/middleware-bucket-endpoint': 3.956.0 - '@aws-sdk/middleware-expect-continue': 3.956.0 - '@aws-sdk/middleware-flexible-checksums': 3.956.0 - '@aws-sdk/middleware-host-header': 3.956.0 - '@aws-sdk/middleware-location-constraint': 3.956.0 - '@aws-sdk/middleware-logger': 3.956.0 - '@aws-sdk/middleware-recursion-detection': 3.956.0 - '@aws-sdk/middleware-sdk-s3': 3.956.0 - '@aws-sdk/middleware-ssec': 3.956.0 - '@aws-sdk/middleware-user-agent': 3.956.0 - '@aws-sdk/region-config-resolver': 3.956.0 - '@aws-sdk/signature-v4-multi-region': 3.956.0 - '@aws-sdk/types': 3.956.0 - '@aws-sdk/util-endpoints': 3.956.0 - '@aws-sdk/util-user-agent-browser': 3.956.0 - '@aws-sdk/util-user-agent-node': 3.956.0 - '@smithy/config-resolver': 4.4.5 - '@smithy/core': 3.20.0 - '@smithy/eventstream-serde-browser': 4.2.7 - '@smithy/eventstream-serde-config-resolver': 4.3.7 - '@smithy/eventstream-serde-node': 4.2.7 - '@smithy/fetch-http-handler': 5.3.8 - '@smithy/hash-blob-browser': 4.2.8 - '@smithy/hash-node': 4.2.7 - '@smithy/hash-stream-node': 4.2.7 - '@smithy/invalid-dependency': 4.2.7 - '@smithy/md5-js': 4.2.7 - '@smithy/middleware-content-length': 4.2.7 - '@smithy/middleware-endpoint': 4.4.1 - '@smithy/middleware-retry': 4.4.17 - '@smithy/middleware-serde': 4.2.8 - '@smithy/middleware-stack': 4.2.7 - '@smithy/node-config-provider': 4.3.7 - '@smithy/node-http-handler': 4.4.7 - '@smithy/protocol-http': 5.3.7 - '@smithy/smithy-client': 4.10.2 - '@smithy/types': 4.11.0 - '@smithy/url-parser': 4.2.7 + '@aws-sdk/core': 3.973.11 + '@aws-sdk/credential-provider-node': 3.972.10 + '@aws-sdk/middleware-bucket-endpoint': 3.972.3 + '@aws-sdk/middleware-expect-continue': 3.972.3 + '@aws-sdk/middleware-flexible-checksums': 3.972.9 + '@aws-sdk/middleware-host-header': 3.972.3 + '@aws-sdk/middleware-location-constraint': 3.972.3 + '@aws-sdk/middleware-logger': 3.972.3 + '@aws-sdk/middleware-recursion-detection': 3.972.3 + '@aws-sdk/middleware-sdk-s3': 3.972.11 + '@aws-sdk/middleware-ssec': 3.972.3 + '@aws-sdk/middleware-user-agent': 3.972.11 + '@aws-sdk/region-config-resolver': 3.972.3 + '@aws-sdk/signature-v4-multi-region': 3.995.0 + '@aws-sdk/types': 3.973.1 + '@aws-sdk/util-endpoints': 3.995.0 + '@aws-sdk/util-user-agent-browser': 3.972.3 + '@aws-sdk/util-user-agent-node': 3.972.10 + '@smithy/config-resolver': 4.4.6 + '@smithy/core': 3.23.2 + '@smithy/eventstream-serde-browser': 4.2.8 + '@smithy/eventstream-serde-config-resolver': 4.3.8 + '@smithy/eventstream-serde-node': 4.2.8 + '@smithy/fetch-http-handler': 5.3.9 + '@smithy/hash-blob-browser': 4.2.9 + '@smithy/hash-node': 4.2.8 + '@smithy/hash-stream-node': 4.2.8 + '@smithy/invalid-dependency': 4.2.8 + '@smithy/md5-js': 4.2.8 + '@smithy/middleware-content-length': 4.2.8 + '@smithy/middleware-endpoint': 4.4.16 + '@smithy/middleware-retry': 4.4.33 + '@smithy/middleware-serde': 4.2.9 + '@smithy/middleware-stack': 4.2.8 + '@smithy/node-config-provider': 4.3.8 + '@smithy/node-http-handler': 4.4.10 + '@smithy/protocol-http': 5.3.8 + '@smithy/smithy-client': 4.11.5 + '@smithy/types': 4.12.0 + '@smithy/url-parser': 4.2.8 '@smithy/util-base64': 4.3.0 '@smithy/util-body-length-browser': 4.2.0 '@smithy/util-body-length-node': 4.2.1 - '@smithy/util-defaults-mode-browser': 4.3.16 - '@smithy/util-defaults-mode-node': 4.2.19 - '@smithy/util-endpoints': 3.2.7 - '@smithy/util-middleware': 4.2.7 - '@smithy/util-retry': 4.2.7 - '@smithy/util-stream': 4.5.8 + '@smithy/util-defaults-mode-browser': 4.3.32 + '@smithy/util-defaults-mode-node': 4.2.35 + '@smithy/util-endpoints': 3.2.8 + '@smithy/util-middleware': 4.2.8 + '@smithy/util-retry': 4.2.8 + '@smithy/util-stream': 4.5.12 '@smithy/util-utf8': 4.2.0 - '@smithy/util-waiter': 4.2.7 + '@smithy/util-waiter': 4.2.8 tslib: 2.8.1 transitivePeerDependencies: - aws-crt - '@aws-sdk/client-scheduler@3.956.0': + '@aws-sdk/client-scheduler@3.995.0': dependencies: '@aws-crypto/sha256-browser': 5.2.0 '@aws-crypto/sha256-js': 5.2.0 - '@aws-sdk/core': 3.956.0 - '@aws-sdk/credential-provider-node': 3.956.0 - '@aws-sdk/middleware-host-header': 3.956.0 - '@aws-sdk/middleware-logger': 3.956.0 - '@aws-sdk/middleware-recursion-detection': 3.956.0 - '@aws-sdk/middleware-user-agent': 3.956.0 - '@aws-sdk/region-config-resolver': 3.956.0 - '@aws-sdk/types': 3.956.0 - '@aws-sdk/util-endpoints': 3.956.0 - '@aws-sdk/util-user-agent-browser': 3.956.0 - '@aws-sdk/util-user-agent-node': 3.956.0 - '@smithy/config-resolver': 4.4.5 - '@smithy/core': 3.20.0 - '@smithy/fetch-http-handler': 5.3.8 - '@smithy/hash-node': 4.2.7 - '@smithy/invalid-dependency': 4.2.7 - '@smithy/middleware-content-length': 4.2.7 - '@smithy/middleware-endpoint': 4.4.1 - '@smithy/middleware-retry': 4.4.17 - '@smithy/middleware-serde': 4.2.8 - '@smithy/middleware-stack': 4.2.7 - '@smithy/node-config-provider': 4.3.7 - '@smithy/node-http-handler': 4.4.7 - '@smithy/protocol-http': 5.3.7 - '@smithy/smithy-client': 4.10.2 - '@smithy/types': 4.11.0 - '@smithy/url-parser': 4.2.7 + '@aws-sdk/core': 3.973.11 + '@aws-sdk/credential-provider-node': 3.972.10 + '@aws-sdk/middleware-host-header': 3.972.3 + '@aws-sdk/middleware-logger': 3.972.3 + '@aws-sdk/middleware-recursion-detection': 3.972.3 + '@aws-sdk/middleware-user-agent': 3.972.11 + '@aws-sdk/region-config-resolver': 3.972.3 + '@aws-sdk/types': 3.973.1 + '@aws-sdk/util-endpoints': 3.995.0 + '@aws-sdk/util-user-agent-browser': 3.972.3 + '@aws-sdk/util-user-agent-node': 3.972.10 + '@smithy/config-resolver': 4.4.6 + '@smithy/core': 3.23.2 + '@smithy/fetch-http-handler': 5.3.9 + '@smithy/hash-node': 4.2.8 + '@smithy/invalid-dependency': 4.2.8 + '@smithy/middleware-content-length': 4.2.8 + '@smithy/middleware-endpoint': 4.4.16 + '@smithy/middleware-retry': 4.4.33 + '@smithy/middleware-serde': 4.2.9 + '@smithy/middleware-stack': 4.2.8 + '@smithy/node-config-provider': 4.3.8 + '@smithy/node-http-handler': 4.4.10 + '@smithy/protocol-http': 5.3.8 + '@smithy/smithy-client': 4.11.5 + '@smithy/types': 4.12.0 + '@smithy/url-parser': 4.2.8 '@smithy/util-base64': 4.3.0 '@smithy/util-body-length-browser': 4.2.0 '@smithy/util-body-length-node': 4.2.1 - '@smithy/util-defaults-mode-browser': 4.3.16 - '@smithy/util-defaults-mode-node': 4.2.19 - '@smithy/util-endpoints': 3.2.7 - '@smithy/util-middleware': 4.2.7 - '@smithy/util-retry': 4.2.7 + '@smithy/util-defaults-mode-browser': 4.3.32 + '@smithy/util-defaults-mode-node': 4.2.35 + '@smithy/util-endpoints': 3.2.8 + '@smithy/util-middleware': 4.2.8 + '@smithy/util-retry': 4.2.8 '@smithy/util-utf8': 4.2.0 tslib: 2.8.1 transitivePeerDependencies: - aws-crt - '@aws-sdk/client-secrets-manager@3.956.0': + '@aws-sdk/client-secrets-manager@3.995.0': dependencies: '@aws-crypto/sha256-browser': 5.2.0 '@aws-crypto/sha256-js': 5.2.0 - '@aws-sdk/core': 3.956.0 - '@aws-sdk/credential-provider-node': 3.956.0 - '@aws-sdk/middleware-host-header': 3.956.0 - '@aws-sdk/middleware-logger': 3.956.0 - '@aws-sdk/middleware-recursion-detection': 3.956.0 - '@aws-sdk/middleware-user-agent': 3.956.0 - '@aws-sdk/region-config-resolver': 3.956.0 - '@aws-sdk/types': 3.956.0 - '@aws-sdk/util-endpoints': 3.956.0 - '@aws-sdk/util-user-agent-browser': 3.956.0 - '@aws-sdk/util-user-agent-node': 3.956.0 - '@smithy/config-resolver': 4.4.5 - '@smithy/core': 3.20.0 - '@smithy/fetch-http-handler': 5.3.8 - '@smithy/hash-node': 4.2.7 - '@smithy/invalid-dependency': 4.2.7 - '@smithy/middleware-content-length': 4.2.7 - '@smithy/middleware-endpoint': 4.4.1 - '@smithy/middleware-retry': 4.4.17 - '@smithy/middleware-serde': 4.2.8 - '@smithy/middleware-stack': 4.2.7 - '@smithy/node-config-provider': 4.3.7 - '@smithy/node-http-handler': 4.4.7 - '@smithy/protocol-http': 5.3.7 - '@smithy/smithy-client': 4.10.2 - '@smithy/types': 4.11.0 - '@smithy/url-parser': 4.2.7 + '@aws-sdk/core': 3.973.11 + '@aws-sdk/credential-provider-node': 3.972.10 + '@aws-sdk/middleware-host-header': 3.972.3 + '@aws-sdk/middleware-logger': 3.972.3 + '@aws-sdk/middleware-recursion-detection': 3.972.3 + '@aws-sdk/middleware-user-agent': 3.972.11 + '@aws-sdk/region-config-resolver': 3.972.3 + '@aws-sdk/types': 3.973.1 + '@aws-sdk/util-endpoints': 3.995.0 + '@aws-sdk/util-user-agent-browser': 3.972.3 + '@aws-sdk/util-user-agent-node': 3.972.10 + '@smithy/config-resolver': 4.4.6 + '@smithy/core': 3.23.2 + '@smithy/fetch-http-handler': 5.3.9 + '@smithy/hash-node': 4.2.8 + '@smithy/invalid-dependency': 4.2.8 + '@smithy/middleware-content-length': 4.2.8 + '@smithy/middleware-endpoint': 4.4.16 + '@smithy/middleware-retry': 4.4.33 + '@smithy/middleware-serde': 4.2.9 + '@smithy/middleware-stack': 4.2.8 + '@smithy/node-config-provider': 4.3.8 + '@smithy/node-http-handler': 4.4.10 + '@smithy/protocol-http': 5.3.8 + '@smithy/smithy-client': 4.11.5 + '@smithy/types': 4.12.0 + '@smithy/url-parser': 4.2.8 '@smithy/util-base64': 4.3.0 '@smithy/util-body-length-browser': 4.2.0 '@smithy/util-body-length-node': 4.2.1 - '@smithy/util-defaults-mode-browser': 4.3.16 - '@smithy/util-defaults-mode-node': 4.2.19 - '@smithy/util-endpoints': 3.2.7 - '@smithy/util-middleware': 4.2.7 - '@smithy/util-retry': 4.2.7 + '@smithy/util-defaults-mode-browser': 4.3.32 + '@smithy/util-defaults-mode-node': 4.2.35 + '@smithy/util-endpoints': 3.2.8 + '@smithy/util-middleware': 4.2.8 + '@smithy/util-retry': 4.2.8 '@smithy/util-utf8': 4.2.0 tslib: 2.8.1 transitivePeerDependencies: - aws-crt - '@aws-sdk/client-ses@3.956.0': + '@aws-sdk/client-ses@3.995.0': dependencies: '@aws-crypto/sha256-browser': 5.2.0 '@aws-crypto/sha256-js': 5.2.0 - '@aws-sdk/core': 3.956.0 - '@aws-sdk/credential-provider-node': 3.956.0 - '@aws-sdk/middleware-host-header': 3.956.0 - '@aws-sdk/middleware-logger': 3.956.0 - '@aws-sdk/middleware-recursion-detection': 3.956.0 - '@aws-sdk/middleware-user-agent': 3.956.0 - '@aws-sdk/region-config-resolver': 3.956.0 - '@aws-sdk/types': 3.956.0 - '@aws-sdk/util-endpoints': 3.956.0 - '@aws-sdk/util-user-agent-browser': 3.956.0 - '@aws-sdk/util-user-agent-node': 3.956.0 - '@smithy/config-resolver': 4.4.5 - '@smithy/core': 3.20.0 - '@smithy/fetch-http-handler': 5.3.8 - '@smithy/hash-node': 4.2.7 - '@smithy/invalid-dependency': 4.2.7 - '@smithy/middleware-content-length': 4.2.7 - '@smithy/middleware-endpoint': 4.4.1 - '@smithy/middleware-retry': 4.4.17 - '@smithy/middleware-serde': 4.2.8 - '@smithy/middleware-stack': 4.2.7 - '@smithy/node-config-provider': 4.3.7 - '@smithy/node-http-handler': 4.4.7 - '@smithy/protocol-http': 5.3.7 - '@smithy/smithy-client': 4.10.2 - '@smithy/types': 4.11.0 - '@smithy/url-parser': 4.2.7 + '@aws-sdk/core': 3.973.11 + '@aws-sdk/credential-provider-node': 3.972.10 + '@aws-sdk/middleware-host-header': 3.972.3 + '@aws-sdk/middleware-logger': 3.972.3 + '@aws-sdk/middleware-recursion-detection': 3.972.3 + '@aws-sdk/middleware-user-agent': 3.972.11 + '@aws-sdk/region-config-resolver': 3.972.3 + '@aws-sdk/types': 3.973.1 + '@aws-sdk/util-endpoints': 3.995.0 + '@aws-sdk/util-user-agent-browser': 3.972.3 + '@aws-sdk/util-user-agent-node': 3.972.10 + '@smithy/config-resolver': 4.4.6 + '@smithy/core': 3.23.2 + '@smithy/fetch-http-handler': 5.3.9 + '@smithy/hash-node': 4.2.8 + '@smithy/invalid-dependency': 4.2.8 + '@smithy/middleware-content-length': 4.2.8 + '@smithy/middleware-endpoint': 4.4.16 + '@smithy/middleware-retry': 4.4.33 + '@smithy/middleware-serde': 4.2.9 + '@smithy/middleware-stack': 4.2.8 + '@smithy/node-config-provider': 4.3.8 + '@smithy/node-http-handler': 4.4.10 + '@smithy/protocol-http': 5.3.8 + '@smithy/smithy-client': 4.11.5 + '@smithy/types': 4.12.0 + '@smithy/url-parser': 4.2.8 '@smithy/util-base64': 4.3.0 '@smithy/util-body-length-browser': 4.2.0 '@smithy/util-body-length-node': 4.2.1 - '@smithy/util-defaults-mode-browser': 4.3.16 - '@smithy/util-defaults-mode-node': 4.2.19 - '@smithy/util-endpoints': 3.2.7 - '@smithy/util-middleware': 4.2.7 - '@smithy/util-retry': 4.2.7 + '@smithy/util-defaults-mode-browser': 4.3.32 + '@smithy/util-defaults-mode-node': 4.2.35 + '@smithy/util-endpoints': 3.2.8 + '@smithy/util-middleware': 4.2.8 + '@smithy/util-retry': 4.2.8 '@smithy/util-utf8': 4.2.0 - '@smithy/util-waiter': 4.2.7 + '@smithy/util-waiter': 4.2.8 tslib: 2.8.1 transitivePeerDependencies: - aws-crt - '@aws-sdk/client-sfn@3.956.0': + '@aws-sdk/client-sfn@3.995.0': dependencies: '@aws-crypto/sha256-browser': 5.2.0 '@aws-crypto/sha256-js': 5.2.0 - '@aws-sdk/core': 3.956.0 - '@aws-sdk/credential-provider-node': 3.956.0 - '@aws-sdk/middleware-host-header': 3.956.0 - '@aws-sdk/middleware-logger': 3.956.0 - '@aws-sdk/middleware-recursion-detection': 3.956.0 - '@aws-sdk/middleware-user-agent': 3.956.0 - '@aws-sdk/region-config-resolver': 3.956.0 - '@aws-sdk/types': 3.956.0 - '@aws-sdk/util-endpoints': 3.956.0 - '@aws-sdk/util-user-agent-browser': 3.956.0 - '@aws-sdk/util-user-agent-node': 3.956.0 - '@smithy/config-resolver': 4.4.5 - '@smithy/core': 3.20.0 - '@smithy/fetch-http-handler': 5.3.8 - '@smithy/hash-node': 4.2.7 - '@smithy/invalid-dependency': 4.2.7 - '@smithy/middleware-content-length': 4.2.7 - '@smithy/middleware-endpoint': 4.4.1 - '@smithy/middleware-retry': 4.4.17 - '@smithy/middleware-serde': 4.2.8 - '@smithy/middleware-stack': 4.2.7 - '@smithy/node-config-provider': 4.3.7 - '@smithy/node-http-handler': 4.4.7 - '@smithy/protocol-http': 5.3.7 - '@smithy/smithy-client': 4.10.2 - '@smithy/types': 4.11.0 - '@smithy/url-parser': 4.2.7 + '@aws-sdk/core': 3.973.11 + '@aws-sdk/credential-provider-node': 3.972.10 + '@aws-sdk/middleware-host-header': 3.972.3 + '@aws-sdk/middleware-logger': 3.972.3 + '@aws-sdk/middleware-recursion-detection': 3.972.3 + '@aws-sdk/middleware-user-agent': 3.972.11 + '@aws-sdk/region-config-resolver': 3.972.3 + '@aws-sdk/types': 3.973.1 + '@aws-sdk/util-endpoints': 3.995.0 + '@aws-sdk/util-user-agent-browser': 3.972.3 + '@aws-sdk/util-user-agent-node': 3.972.10 + '@smithy/config-resolver': 4.4.6 + '@smithy/core': 3.23.2 + '@smithy/fetch-http-handler': 5.3.9 + '@smithy/hash-node': 4.2.8 + '@smithy/invalid-dependency': 4.2.8 + '@smithy/middleware-content-length': 4.2.8 + '@smithy/middleware-endpoint': 4.4.16 + '@smithy/middleware-retry': 4.4.33 + '@smithy/middleware-serde': 4.2.9 + '@smithy/middleware-stack': 4.2.8 + '@smithy/node-config-provider': 4.3.8 + '@smithy/node-http-handler': 4.4.10 + '@smithy/protocol-http': 5.3.8 + '@smithy/smithy-client': 4.11.5 + '@smithy/types': 4.12.0 + '@smithy/url-parser': 4.2.8 '@smithy/util-base64': 4.3.0 '@smithy/util-body-length-browser': 4.2.0 '@smithy/util-body-length-node': 4.2.1 - '@smithy/util-defaults-mode-browser': 4.3.16 - '@smithy/util-defaults-mode-node': 4.2.19 - '@smithy/util-endpoints': 3.2.7 - '@smithy/util-middleware': 4.2.7 - '@smithy/util-retry': 4.2.7 + '@smithy/util-defaults-mode-browser': 4.3.32 + '@smithy/util-defaults-mode-node': 4.2.35 + '@smithy/util-endpoints': 3.2.8 + '@smithy/util-middleware': 4.2.8 + '@smithy/util-retry': 4.2.8 '@smithy/util-utf8': 4.2.0 tslib: 2.8.1 transitivePeerDependencies: - aws-crt - '@aws-sdk/client-sns@3.956.0': + '@aws-sdk/client-sns@3.995.0': dependencies: '@aws-crypto/sha256-browser': 5.2.0 '@aws-crypto/sha256-js': 5.2.0 - '@aws-sdk/core': 3.956.0 - '@aws-sdk/credential-provider-node': 3.956.0 - '@aws-sdk/middleware-host-header': 3.956.0 - '@aws-sdk/middleware-logger': 3.956.0 - '@aws-sdk/middleware-recursion-detection': 3.956.0 - '@aws-sdk/middleware-user-agent': 3.956.0 - '@aws-sdk/region-config-resolver': 3.956.0 - '@aws-sdk/types': 3.956.0 - '@aws-sdk/util-endpoints': 3.956.0 - '@aws-sdk/util-user-agent-browser': 3.956.0 - '@aws-sdk/util-user-agent-node': 3.956.0 - '@smithy/config-resolver': 4.4.5 - '@smithy/core': 3.20.0 - '@smithy/fetch-http-handler': 5.3.8 - '@smithy/hash-node': 4.2.7 - '@smithy/invalid-dependency': 4.2.7 - '@smithy/middleware-content-length': 4.2.7 - '@smithy/middleware-endpoint': 4.4.1 - '@smithy/middleware-retry': 4.4.17 - '@smithy/middleware-serde': 4.2.8 - '@smithy/middleware-stack': 4.2.7 - '@smithy/node-config-provider': 4.3.7 - '@smithy/node-http-handler': 4.4.7 - '@smithy/protocol-http': 5.3.7 - '@smithy/smithy-client': 4.10.2 - '@smithy/types': 4.11.0 - '@smithy/url-parser': 4.2.7 + '@aws-sdk/core': 3.973.11 + '@aws-sdk/credential-provider-node': 3.972.10 + '@aws-sdk/middleware-host-header': 3.972.3 + '@aws-sdk/middleware-logger': 3.972.3 + '@aws-sdk/middleware-recursion-detection': 3.972.3 + '@aws-sdk/middleware-user-agent': 3.972.11 + '@aws-sdk/region-config-resolver': 3.972.3 + '@aws-sdk/types': 3.973.1 + '@aws-sdk/util-endpoints': 3.995.0 + '@aws-sdk/util-user-agent-browser': 3.972.3 + '@aws-sdk/util-user-agent-node': 3.972.10 + '@smithy/config-resolver': 4.4.6 + '@smithy/core': 3.23.2 + '@smithy/fetch-http-handler': 5.3.9 + '@smithy/hash-node': 4.2.8 + '@smithy/invalid-dependency': 4.2.8 + '@smithy/middleware-content-length': 4.2.8 + '@smithy/middleware-endpoint': 4.4.16 + '@smithy/middleware-retry': 4.4.33 + '@smithy/middleware-serde': 4.2.9 + '@smithy/middleware-stack': 4.2.8 + '@smithy/node-config-provider': 4.3.8 + '@smithy/node-http-handler': 4.4.10 + '@smithy/protocol-http': 5.3.8 + '@smithy/smithy-client': 4.11.5 + '@smithy/types': 4.12.0 + '@smithy/url-parser': 4.2.8 '@smithy/util-base64': 4.3.0 '@smithy/util-body-length-browser': 4.2.0 '@smithy/util-body-length-node': 4.2.1 - '@smithy/util-defaults-mode-browser': 4.3.16 - '@smithy/util-defaults-mode-node': 4.2.19 - '@smithy/util-endpoints': 3.2.7 - '@smithy/util-middleware': 4.2.7 - '@smithy/util-retry': 4.2.7 + '@smithy/util-defaults-mode-browser': 4.3.32 + '@smithy/util-defaults-mode-node': 4.2.35 + '@smithy/util-endpoints': 3.2.8 + '@smithy/util-middleware': 4.2.8 + '@smithy/util-retry': 4.2.8 '@smithy/util-utf8': 4.2.0 tslib: 2.8.1 transitivePeerDependencies: - aws-crt - '@aws-sdk/client-sqs@3.956.0': + '@aws-sdk/client-sqs@3.995.0': dependencies: '@aws-crypto/sha256-browser': 5.2.0 '@aws-crypto/sha256-js': 5.2.0 - '@aws-sdk/core': 3.956.0 - '@aws-sdk/credential-provider-node': 3.956.0 - '@aws-sdk/middleware-host-header': 3.956.0 - '@aws-sdk/middleware-logger': 3.956.0 - '@aws-sdk/middleware-recursion-detection': 3.956.0 - '@aws-sdk/middleware-sdk-sqs': 3.956.0 - '@aws-sdk/middleware-user-agent': 3.956.0 - '@aws-sdk/region-config-resolver': 3.956.0 - '@aws-sdk/types': 3.956.0 - '@aws-sdk/util-endpoints': 3.956.0 - '@aws-sdk/util-user-agent-browser': 3.956.0 - '@aws-sdk/util-user-agent-node': 3.956.0 - '@smithy/config-resolver': 4.4.5 - '@smithy/core': 3.20.0 - '@smithy/fetch-http-handler': 5.3.8 - '@smithy/hash-node': 4.2.7 - '@smithy/invalid-dependency': 4.2.7 - '@smithy/md5-js': 4.2.7 - '@smithy/middleware-content-length': 4.2.7 - '@smithy/middleware-endpoint': 4.4.1 - '@smithy/middleware-retry': 4.4.17 - '@smithy/middleware-serde': 4.2.8 - '@smithy/middleware-stack': 4.2.7 - '@smithy/node-config-provider': 4.3.7 - '@smithy/node-http-handler': 4.4.7 - '@smithy/protocol-http': 5.3.7 - '@smithy/smithy-client': 4.10.2 - '@smithy/types': 4.11.0 - '@smithy/url-parser': 4.2.7 + '@aws-sdk/core': 3.973.11 + '@aws-sdk/credential-provider-node': 3.972.10 + '@aws-sdk/middleware-host-header': 3.972.3 + '@aws-sdk/middleware-logger': 3.972.3 + '@aws-sdk/middleware-recursion-detection': 3.972.3 + '@aws-sdk/middleware-sdk-sqs': 3.972.8 + '@aws-sdk/middleware-user-agent': 3.972.11 + '@aws-sdk/region-config-resolver': 3.972.3 + '@aws-sdk/types': 3.973.1 + '@aws-sdk/util-endpoints': 3.995.0 + '@aws-sdk/util-user-agent-browser': 3.972.3 + '@aws-sdk/util-user-agent-node': 3.972.10 + '@smithy/config-resolver': 4.4.6 + '@smithy/core': 3.23.2 + '@smithy/fetch-http-handler': 5.3.9 + '@smithy/hash-node': 4.2.8 + '@smithy/invalid-dependency': 4.2.8 + '@smithy/md5-js': 4.2.8 + '@smithy/middleware-content-length': 4.2.8 + '@smithy/middleware-endpoint': 4.4.16 + '@smithy/middleware-retry': 4.4.33 + '@smithy/middleware-serde': 4.2.9 + '@smithy/middleware-stack': 4.2.8 + '@smithy/node-config-provider': 4.3.8 + '@smithy/node-http-handler': 4.4.10 + '@smithy/protocol-http': 5.3.8 + '@smithy/smithy-client': 4.11.5 + '@smithy/types': 4.12.0 + '@smithy/url-parser': 4.2.8 '@smithy/util-base64': 4.3.0 '@smithy/util-body-length-browser': 4.2.0 '@smithy/util-body-length-node': 4.2.1 - '@smithy/util-defaults-mode-browser': 4.3.16 - '@smithy/util-defaults-mode-node': 4.2.19 - '@smithy/util-endpoints': 3.2.7 - '@smithy/util-middleware': 4.2.7 - '@smithy/util-retry': 4.2.7 + '@smithy/util-defaults-mode-browser': 4.3.32 + '@smithy/util-defaults-mode-node': 4.2.35 + '@smithy/util-endpoints': 3.2.8 + '@smithy/util-middleware': 4.2.8 + '@smithy/util-retry': 4.2.8 '@smithy/util-utf8': 4.2.0 tslib: 2.8.1 transitivePeerDependencies: - aws-crt - '@aws-sdk/client-ssm@3.956.0': + '@aws-sdk/client-ssm@3.995.0': dependencies: '@aws-crypto/sha256-browser': 5.2.0 '@aws-crypto/sha256-js': 5.2.0 - '@aws-sdk/core': 3.956.0 - '@aws-sdk/credential-provider-node': 3.956.0 - '@aws-sdk/middleware-host-header': 3.956.0 - '@aws-sdk/middleware-logger': 3.956.0 - '@aws-sdk/middleware-recursion-detection': 3.956.0 - '@aws-sdk/middleware-user-agent': 3.956.0 - '@aws-sdk/region-config-resolver': 3.956.0 - '@aws-sdk/types': 3.956.0 - '@aws-sdk/util-endpoints': 3.956.0 - '@aws-sdk/util-user-agent-browser': 3.956.0 - '@aws-sdk/util-user-agent-node': 3.956.0 - '@smithy/config-resolver': 4.4.5 - '@smithy/core': 3.20.0 - '@smithy/fetch-http-handler': 5.3.8 - '@smithy/hash-node': 4.2.7 - '@smithy/invalid-dependency': 4.2.7 - '@smithy/middleware-content-length': 4.2.7 - '@smithy/middleware-endpoint': 4.4.1 - '@smithy/middleware-retry': 4.4.17 - '@smithy/middleware-serde': 4.2.8 - '@smithy/middleware-stack': 4.2.7 - '@smithy/node-config-provider': 4.3.7 - '@smithy/node-http-handler': 4.4.7 - '@smithy/protocol-http': 5.3.7 - '@smithy/smithy-client': 4.10.2 - '@smithy/types': 4.11.0 - '@smithy/url-parser': 4.2.7 + '@aws-sdk/core': 3.973.11 + '@aws-sdk/credential-provider-node': 3.972.10 + '@aws-sdk/middleware-host-header': 3.972.3 + '@aws-sdk/middleware-logger': 3.972.3 + '@aws-sdk/middleware-recursion-detection': 3.972.3 + '@aws-sdk/middleware-user-agent': 3.972.11 + '@aws-sdk/region-config-resolver': 3.972.3 + '@aws-sdk/types': 3.973.1 + '@aws-sdk/util-endpoints': 3.995.0 + '@aws-sdk/util-user-agent-browser': 3.972.3 + '@aws-sdk/util-user-agent-node': 3.972.10 + '@smithy/config-resolver': 4.4.6 + '@smithy/core': 3.23.2 + '@smithy/fetch-http-handler': 5.3.9 + '@smithy/hash-node': 4.2.8 + '@smithy/invalid-dependency': 4.2.8 + '@smithy/middleware-content-length': 4.2.8 + '@smithy/middleware-endpoint': 4.4.16 + '@smithy/middleware-retry': 4.4.33 + '@smithy/middleware-serde': 4.2.9 + '@smithy/middleware-stack': 4.2.8 + '@smithy/node-config-provider': 4.3.8 + '@smithy/node-http-handler': 4.4.10 + '@smithy/protocol-http': 5.3.8 + '@smithy/smithy-client': 4.11.5 + '@smithy/types': 4.12.0 + '@smithy/url-parser': 4.2.8 '@smithy/util-base64': 4.3.0 '@smithy/util-body-length-browser': 4.2.0 '@smithy/util-body-length-node': 4.2.1 - '@smithy/util-defaults-mode-browser': 4.3.16 - '@smithy/util-defaults-mode-node': 4.2.19 - '@smithy/util-endpoints': 3.2.7 - '@smithy/util-middleware': 4.2.7 - '@smithy/util-retry': 4.2.7 + '@smithy/util-defaults-mode-browser': 4.3.32 + '@smithy/util-defaults-mode-node': 4.2.35 + '@smithy/util-endpoints': 3.2.8 + '@smithy/util-middleware': 4.2.8 + '@smithy/util-retry': 4.2.8 '@smithy/util-utf8': 4.2.0 - '@smithy/util-waiter': 4.2.7 + '@smithy/util-waiter': 4.2.8 tslib: 2.8.1 transitivePeerDependencies: - aws-crt - '@aws-sdk/client-sso@3.956.0': + '@aws-sdk/client-sso@3.993.0': dependencies: '@aws-crypto/sha256-browser': 5.2.0 '@aws-crypto/sha256-js': 5.2.0 - '@aws-sdk/core': 3.956.0 - '@aws-sdk/middleware-host-header': 3.956.0 - '@aws-sdk/middleware-logger': 3.956.0 - '@aws-sdk/middleware-recursion-detection': 3.956.0 - '@aws-sdk/middleware-user-agent': 3.956.0 - '@aws-sdk/region-config-resolver': 3.956.0 - '@aws-sdk/types': 3.956.0 - '@aws-sdk/util-endpoints': 3.956.0 - '@aws-sdk/util-user-agent-browser': 3.956.0 - '@aws-sdk/util-user-agent-node': 3.956.0 - '@smithy/config-resolver': 4.4.5 - '@smithy/core': 3.20.0 - '@smithy/fetch-http-handler': 5.3.8 - '@smithy/hash-node': 4.2.7 - '@smithy/invalid-dependency': 4.2.7 - '@smithy/middleware-content-length': 4.2.7 - '@smithy/middleware-endpoint': 4.4.1 - '@smithy/middleware-retry': 4.4.17 - '@smithy/middleware-serde': 4.2.8 - '@smithy/middleware-stack': 4.2.7 - '@smithy/node-config-provider': 4.3.7 - '@smithy/node-http-handler': 4.4.7 - '@smithy/protocol-http': 5.3.7 - '@smithy/smithy-client': 4.10.2 - '@smithy/types': 4.11.0 - '@smithy/url-parser': 4.2.7 + '@aws-sdk/core': 3.973.11 + '@aws-sdk/middleware-host-header': 3.972.3 + '@aws-sdk/middleware-logger': 3.972.3 + '@aws-sdk/middleware-recursion-detection': 3.972.3 + '@aws-sdk/middleware-user-agent': 3.972.11 + '@aws-sdk/region-config-resolver': 3.972.3 + '@aws-sdk/types': 3.973.1 + '@aws-sdk/util-endpoints': 3.993.0 + '@aws-sdk/util-user-agent-browser': 3.972.3 + '@aws-sdk/util-user-agent-node': 3.972.10 + '@smithy/config-resolver': 4.4.6 + '@smithy/core': 3.23.2 + '@smithy/fetch-http-handler': 5.3.9 + '@smithy/hash-node': 4.2.8 + '@smithy/invalid-dependency': 4.2.8 + '@smithy/middleware-content-length': 4.2.8 + '@smithy/middleware-endpoint': 4.4.16 + '@smithy/middleware-retry': 4.4.33 + '@smithy/middleware-serde': 4.2.9 + '@smithy/middleware-stack': 4.2.8 + '@smithy/node-config-provider': 4.3.8 + '@smithy/node-http-handler': 4.4.10 + '@smithy/protocol-http': 5.3.8 + '@smithy/smithy-client': 4.11.5 + '@smithy/types': 4.12.0 + '@smithy/url-parser': 4.2.8 '@smithy/util-base64': 4.3.0 '@smithy/util-body-length-browser': 4.2.0 '@smithy/util-body-length-node': 4.2.1 - '@smithy/util-defaults-mode-browser': 4.3.16 - '@smithy/util-defaults-mode-node': 4.2.19 - '@smithy/util-endpoints': 3.2.7 - '@smithy/util-middleware': 4.2.7 - '@smithy/util-retry': 4.2.7 + '@smithy/util-defaults-mode-browser': 4.3.32 + '@smithy/util-defaults-mode-node': 4.2.35 + '@smithy/util-endpoints': 3.2.8 + '@smithy/util-middleware': 4.2.8 + '@smithy/util-retry': 4.2.8 '@smithy/util-utf8': 4.2.0 tslib: 2.8.1 transitivePeerDependencies: - aws-crt - '@aws-sdk/client-sts@3.956.0': + '@aws-sdk/client-sts@3.995.0': dependencies: '@aws-crypto/sha256-browser': 5.2.0 '@aws-crypto/sha256-js': 5.2.0 - '@aws-sdk/core': 3.956.0 - '@aws-sdk/credential-provider-node': 3.956.0 - '@aws-sdk/middleware-host-header': 3.956.0 - '@aws-sdk/middleware-logger': 3.956.0 - '@aws-sdk/middleware-recursion-detection': 3.956.0 - '@aws-sdk/middleware-user-agent': 3.956.0 - '@aws-sdk/region-config-resolver': 3.956.0 - '@aws-sdk/types': 3.956.0 - '@aws-sdk/util-endpoints': 3.956.0 - '@aws-sdk/util-user-agent-browser': 3.956.0 - '@aws-sdk/util-user-agent-node': 3.956.0 - '@smithy/config-resolver': 4.4.5 - '@smithy/core': 3.20.0 - '@smithy/fetch-http-handler': 5.3.8 - '@smithy/hash-node': 4.2.7 - '@smithy/invalid-dependency': 4.2.7 - '@smithy/middleware-content-length': 4.2.7 - '@smithy/middleware-endpoint': 4.4.1 - '@smithy/middleware-retry': 4.4.17 - '@smithy/middleware-serde': 4.2.8 - '@smithy/middleware-stack': 4.2.7 - '@smithy/node-config-provider': 4.3.7 - '@smithy/node-http-handler': 4.4.7 - '@smithy/protocol-http': 5.3.7 - '@smithy/smithy-client': 4.10.2 - '@smithy/types': 4.11.0 - '@smithy/url-parser': 4.2.7 + '@aws-sdk/core': 3.973.11 + '@aws-sdk/credential-provider-node': 3.972.10 + '@aws-sdk/middleware-host-header': 3.972.3 + '@aws-sdk/middleware-logger': 3.972.3 + '@aws-sdk/middleware-recursion-detection': 3.972.3 + '@aws-sdk/middleware-user-agent': 3.972.11 + '@aws-sdk/region-config-resolver': 3.972.3 + '@aws-sdk/types': 3.973.1 + '@aws-sdk/util-endpoints': 3.995.0 + '@aws-sdk/util-user-agent-browser': 3.972.3 + '@aws-sdk/util-user-agent-node': 3.972.10 + '@smithy/config-resolver': 4.4.6 + '@smithy/core': 3.23.2 + '@smithy/fetch-http-handler': 5.3.9 + '@smithy/hash-node': 4.2.8 + '@smithy/invalid-dependency': 4.2.8 + '@smithy/middleware-content-length': 4.2.8 + '@smithy/middleware-endpoint': 4.4.16 + '@smithy/middleware-retry': 4.4.33 + '@smithy/middleware-serde': 4.2.9 + '@smithy/middleware-stack': 4.2.8 + '@smithy/node-config-provider': 4.3.8 + '@smithy/node-http-handler': 4.4.10 + '@smithy/protocol-http': 5.3.8 + '@smithy/smithy-client': 4.11.5 + '@smithy/types': 4.12.0 + '@smithy/url-parser': 4.2.8 '@smithy/util-base64': 4.3.0 '@smithy/util-body-length-browser': 4.2.0 '@smithy/util-body-length-node': 4.2.1 - '@smithy/util-defaults-mode-browser': 4.3.16 - '@smithy/util-defaults-mode-node': 4.2.19 - '@smithy/util-endpoints': 3.2.7 - '@smithy/util-middleware': 4.2.7 - '@smithy/util-retry': 4.2.7 + '@smithy/util-defaults-mode-browser': 4.3.32 + '@smithy/util-defaults-mode-node': 4.2.35 + '@smithy/util-endpoints': 3.2.8 + '@smithy/util-middleware': 4.2.8 + '@smithy/util-retry': 4.2.8 '@smithy/util-utf8': 4.2.0 tslib: 2.8.1 transitivePeerDependencies: - aws-crt - '@aws-sdk/client-textract@3.956.0': + '@aws-sdk/client-textract@3.995.0': dependencies: '@aws-crypto/sha256-browser': 5.2.0 '@aws-crypto/sha256-js': 5.2.0 - '@aws-sdk/core': 3.956.0 - '@aws-sdk/credential-provider-node': 3.956.0 - '@aws-sdk/middleware-host-header': 3.956.0 - '@aws-sdk/middleware-logger': 3.956.0 - '@aws-sdk/middleware-recursion-detection': 3.956.0 - '@aws-sdk/middleware-user-agent': 3.956.0 - '@aws-sdk/region-config-resolver': 3.956.0 - '@aws-sdk/types': 3.956.0 - '@aws-sdk/util-endpoints': 3.956.0 - '@aws-sdk/util-user-agent-browser': 3.956.0 - '@aws-sdk/util-user-agent-node': 3.956.0 - '@smithy/config-resolver': 4.4.5 - '@smithy/core': 3.20.0 - '@smithy/fetch-http-handler': 5.3.8 - '@smithy/hash-node': 4.2.7 - '@smithy/invalid-dependency': 4.2.7 - '@smithy/middleware-content-length': 4.2.7 - '@smithy/middleware-endpoint': 4.4.1 - '@smithy/middleware-retry': 4.4.17 - '@smithy/middleware-serde': 4.2.8 - '@smithy/middleware-stack': 4.2.7 - '@smithy/node-config-provider': 4.3.7 - '@smithy/node-http-handler': 4.4.7 - '@smithy/protocol-http': 5.3.7 - '@smithy/smithy-client': 4.10.2 - '@smithy/types': 4.11.0 - '@smithy/url-parser': 4.2.7 + '@aws-sdk/core': 3.973.11 + '@aws-sdk/credential-provider-node': 3.972.10 + '@aws-sdk/middleware-host-header': 3.972.3 + '@aws-sdk/middleware-logger': 3.972.3 + '@aws-sdk/middleware-recursion-detection': 3.972.3 + '@aws-sdk/middleware-user-agent': 3.972.11 + '@aws-sdk/region-config-resolver': 3.972.3 + '@aws-sdk/types': 3.973.1 + '@aws-sdk/util-endpoints': 3.995.0 + '@aws-sdk/util-user-agent-browser': 3.972.3 + '@aws-sdk/util-user-agent-node': 3.972.10 + '@smithy/config-resolver': 4.4.6 + '@smithy/core': 3.23.2 + '@smithy/fetch-http-handler': 5.3.9 + '@smithy/hash-node': 4.2.8 + '@smithy/invalid-dependency': 4.2.8 + '@smithy/middleware-content-length': 4.2.8 + '@smithy/middleware-endpoint': 4.4.16 + '@smithy/middleware-retry': 4.4.33 + '@smithy/middleware-serde': 4.2.9 + '@smithy/middleware-stack': 4.2.8 + '@smithy/node-config-provider': 4.3.8 + '@smithy/node-http-handler': 4.4.10 + '@smithy/protocol-http': 5.3.8 + '@smithy/smithy-client': 4.11.5 + '@smithy/types': 4.12.0 + '@smithy/url-parser': 4.2.8 '@smithy/util-base64': 4.3.0 '@smithy/util-body-length-browser': 4.2.0 '@smithy/util-body-length-node': 4.2.1 - '@smithy/util-defaults-mode-browser': 4.3.16 - '@smithy/util-defaults-mode-node': 4.2.19 - '@smithy/util-endpoints': 3.2.7 - '@smithy/util-middleware': 4.2.7 - '@smithy/util-retry': 4.2.7 + '@smithy/util-defaults-mode-browser': 4.3.32 + '@smithy/util-defaults-mode-node': 4.2.35 + '@smithy/util-endpoints': 3.2.8 + '@smithy/util-middleware': 4.2.8 + '@smithy/util-retry': 4.2.8 '@smithy/util-utf8': 4.2.0 tslib: 2.8.1 transitivePeerDependencies: - aws-crt - '@aws-sdk/client-timestream-influxdb@3.956.0': + '@aws-sdk/client-timestream-influxdb@3.995.0': dependencies: '@aws-crypto/sha256-browser': 5.2.0 '@aws-crypto/sha256-js': 5.2.0 - '@aws-sdk/core': 3.956.0 - '@aws-sdk/credential-provider-node': 3.956.0 - '@aws-sdk/middleware-host-header': 3.956.0 - '@aws-sdk/middleware-logger': 3.956.0 - '@aws-sdk/middleware-recursion-detection': 3.956.0 - '@aws-sdk/middleware-user-agent': 3.956.0 - '@aws-sdk/region-config-resolver': 3.956.0 - '@aws-sdk/types': 3.956.0 - '@aws-sdk/util-endpoints': 3.956.0 - '@aws-sdk/util-user-agent-browser': 3.956.0 - '@aws-sdk/util-user-agent-node': 3.956.0 - '@smithy/config-resolver': 4.4.5 - '@smithy/core': 3.20.0 - '@smithy/fetch-http-handler': 5.3.8 - '@smithy/hash-node': 4.2.7 - '@smithy/invalid-dependency': 4.2.7 - '@smithy/middleware-content-length': 4.2.7 - '@smithy/middleware-endpoint': 4.4.1 - '@smithy/middleware-retry': 4.4.17 - '@smithy/middleware-serde': 4.2.8 - '@smithy/middleware-stack': 4.2.7 - '@smithy/node-config-provider': 4.3.7 - '@smithy/node-http-handler': 4.4.7 - '@smithy/protocol-http': 5.3.7 - '@smithy/smithy-client': 4.10.2 - '@smithy/types': 4.11.0 - '@smithy/url-parser': 4.2.7 + '@aws-sdk/core': 3.973.11 + '@aws-sdk/credential-provider-node': 3.972.10 + '@aws-sdk/middleware-host-header': 3.972.3 + '@aws-sdk/middleware-logger': 3.972.3 + '@aws-sdk/middleware-recursion-detection': 3.972.3 + '@aws-sdk/middleware-user-agent': 3.972.11 + '@aws-sdk/region-config-resolver': 3.972.3 + '@aws-sdk/types': 3.973.1 + '@aws-sdk/util-endpoints': 3.995.0 + '@aws-sdk/util-user-agent-browser': 3.972.3 + '@aws-sdk/util-user-agent-node': 3.972.10 + '@smithy/config-resolver': 4.4.6 + '@smithy/core': 3.23.2 + '@smithy/fetch-http-handler': 5.3.9 + '@smithy/hash-node': 4.2.8 + '@smithy/invalid-dependency': 4.2.8 + '@smithy/middleware-content-length': 4.2.8 + '@smithy/middleware-endpoint': 4.4.16 + '@smithy/middleware-retry': 4.4.33 + '@smithy/middleware-serde': 4.2.9 + '@smithy/middleware-stack': 4.2.8 + '@smithy/node-config-provider': 4.3.8 + '@smithy/node-http-handler': 4.4.10 + '@smithy/protocol-http': 5.3.8 + '@smithy/smithy-client': 4.11.5 + '@smithy/types': 4.12.0 + '@smithy/url-parser': 4.2.8 '@smithy/util-base64': 4.3.0 '@smithy/util-body-length-browser': 4.2.0 '@smithy/util-body-length-node': 4.2.1 - '@smithy/util-defaults-mode-browser': 4.3.16 - '@smithy/util-defaults-mode-node': 4.2.19 - '@smithy/util-endpoints': 3.2.7 - '@smithy/util-middleware': 4.2.7 - '@smithy/util-retry': 4.2.7 + '@smithy/util-defaults-mode-browser': 4.3.32 + '@smithy/util-defaults-mode-node': 4.2.35 + '@smithy/util-endpoints': 3.2.8 + '@smithy/util-middleware': 4.2.8 + '@smithy/util-retry': 4.2.8 '@smithy/util-utf8': 4.2.0 tslib: 2.8.1 transitivePeerDependencies: - aws-crt - '@aws-sdk/client-timestream-query@3.956.0': + '@aws-sdk/client-timestream-query@3.995.0': dependencies: '@aws-crypto/sha256-browser': 5.2.0 '@aws-crypto/sha256-js': 5.2.0 - '@aws-sdk/core': 3.956.0 - '@aws-sdk/credential-provider-node': 3.956.0 - '@aws-sdk/middleware-endpoint-discovery': 3.956.0 - '@aws-sdk/middleware-host-header': 3.956.0 - '@aws-sdk/middleware-logger': 3.956.0 - '@aws-sdk/middleware-recursion-detection': 3.956.0 - '@aws-sdk/middleware-user-agent': 3.956.0 - '@aws-sdk/region-config-resolver': 3.956.0 - '@aws-sdk/types': 3.956.0 - '@aws-sdk/util-endpoints': 3.956.0 - '@aws-sdk/util-user-agent-browser': 3.956.0 - '@aws-sdk/util-user-agent-node': 3.956.0 - '@smithy/config-resolver': 4.4.5 - '@smithy/core': 3.20.0 - '@smithy/fetch-http-handler': 5.3.8 - '@smithy/hash-node': 4.2.7 - '@smithy/invalid-dependency': 4.2.7 - '@smithy/middleware-content-length': 4.2.7 - '@smithy/middleware-endpoint': 4.4.1 - '@smithy/middleware-retry': 4.4.17 - '@smithy/middleware-serde': 4.2.8 - '@smithy/middleware-stack': 4.2.7 - '@smithy/node-config-provider': 4.3.7 - '@smithy/node-http-handler': 4.4.7 - '@smithy/protocol-http': 5.3.7 - '@smithy/smithy-client': 4.10.2 - '@smithy/types': 4.11.0 - '@smithy/url-parser': 4.2.7 + '@aws-sdk/core': 3.973.11 + '@aws-sdk/credential-provider-node': 3.972.10 + '@aws-sdk/middleware-endpoint-discovery': 3.972.3 + '@aws-sdk/middleware-host-header': 3.972.3 + '@aws-sdk/middleware-logger': 3.972.3 + '@aws-sdk/middleware-recursion-detection': 3.972.3 + '@aws-sdk/middleware-user-agent': 3.972.11 + '@aws-sdk/region-config-resolver': 3.972.3 + '@aws-sdk/types': 3.973.1 + '@aws-sdk/util-endpoints': 3.995.0 + '@aws-sdk/util-user-agent-browser': 3.972.3 + '@aws-sdk/util-user-agent-node': 3.972.10 + '@smithy/config-resolver': 4.4.6 + '@smithy/core': 3.23.2 + '@smithy/fetch-http-handler': 5.3.9 + '@smithy/hash-node': 4.2.8 + '@smithy/invalid-dependency': 4.2.8 + '@smithy/middleware-content-length': 4.2.8 + '@smithy/middleware-endpoint': 4.4.16 + '@smithy/middleware-retry': 4.4.33 + '@smithy/middleware-serde': 4.2.9 + '@smithy/middleware-stack': 4.2.8 + '@smithy/node-config-provider': 4.3.8 + '@smithy/node-http-handler': 4.4.10 + '@smithy/protocol-http': 5.3.8 + '@smithy/smithy-client': 4.11.5 + '@smithy/types': 4.12.0 + '@smithy/url-parser': 4.2.8 '@smithy/util-base64': 4.3.0 '@smithy/util-body-length-browser': 4.2.0 '@smithy/util-body-length-node': 4.2.1 - '@smithy/util-defaults-mode-browser': 4.3.16 - '@smithy/util-defaults-mode-node': 4.2.19 - '@smithy/util-endpoints': 3.2.7 - '@smithy/util-middleware': 4.2.7 - '@smithy/util-retry': 4.2.7 + '@smithy/util-defaults-mode-browser': 4.3.32 + '@smithy/util-defaults-mode-node': 4.2.35 + '@smithy/util-endpoints': 3.2.8 + '@smithy/util-middleware': 4.2.8 + '@smithy/util-retry': 4.2.8 '@smithy/util-utf8': 4.2.0 tslib: 2.8.1 transitivePeerDependencies: - aws-crt - '@aws-sdk/client-timestream-write@3.956.0': + '@aws-sdk/client-timestream-write@3.995.0': dependencies: '@aws-crypto/sha256-browser': 5.2.0 '@aws-crypto/sha256-js': 5.2.0 - '@aws-sdk/core': 3.956.0 - '@aws-sdk/credential-provider-node': 3.956.0 - '@aws-sdk/middleware-endpoint-discovery': 3.956.0 - '@aws-sdk/middleware-host-header': 3.956.0 - '@aws-sdk/middleware-logger': 3.956.0 - '@aws-sdk/middleware-recursion-detection': 3.956.0 - '@aws-sdk/middleware-user-agent': 3.956.0 - '@aws-sdk/region-config-resolver': 3.956.0 - '@aws-sdk/types': 3.956.0 - '@aws-sdk/util-endpoints': 3.956.0 - '@aws-sdk/util-user-agent-browser': 3.956.0 - '@aws-sdk/util-user-agent-node': 3.956.0 - '@smithy/config-resolver': 4.4.5 - '@smithy/core': 3.20.0 - '@smithy/fetch-http-handler': 5.3.8 - '@smithy/hash-node': 4.2.7 - '@smithy/invalid-dependency': 4.2.7 - '@smithy/middleware-content-length': 4.2.7 - '@smithy/middleware-endpoint': 4.4.1 - '@smithy/middleware-retry': 4.4.17 - '@smithy/middleware-serde': 4.2.8 - '@smithy/middleware-stack': 4.2.7 - '@smithy/node-config-provider': 4.3.7 - '@smithy/node-http-handler': 4.4.7 - '@smithy/protocol-http': 5.3.7 - '@smithy/smithy-client': 4.10.2 - '@smithy/types': 4.11.0 - '@smithy/url-parser': 4.2.7 + '@aws-sdk/core': 3.973.11 + '@aws-sdk/credential-provider-node': 3.972.10 + '@aws-sdk/middleware-endpoint-discovery': 3.972.3 + '@aws-sdk/middleware-host-header': 3.972.3 + '@aws-sdk/middleware-logger': 3.972.3 + '@aws-sdk/middleware-recursion-detection': 3.972.3 + '@aws-sdk/middleware-user-agent': 3.972.11 + '@aws-sdk/region-config-resolver': 3.972.3 + '@aws-sdk/types': 3.973.1 + '@aws-sdk/util-endpoints': 3.995.0 + '@aws-sdk/util-user-agent-browser': 3.972.3 + '@aws-sdk/util-user-agent-node': 3.972.10 + '@smithy/config-resolver': 4.4.6 + '@smithy/core': 3.23.2 + '@smithy/fetch-http-handler': 5.3.9 + '@smithy/hash-node': 4.2.8 + '@smithy/invalid-dependency': 4.2.8 + '@smithy/middleware-content-length': 4.2.8 + '@smithy/middleware-endpoint': 4.4.16 + '@smithy/middleware-retry': 4.4.33 + '@smithy/middleware-serde': 4.2.9 + '@smithy/middleware-stack': 4.2.8 + '@smithy/node-config-provider': 4.3.8 + '@smithy/node-http-handler': 4.4.10 + '@smithy/protocol-http': 5.3.8 + '@smithy/smithy-client': 4.11.5 + '@smithy/types': 4.12.0 + '@smithy/url-parser': 4.2.8 '@smithy/util-base64': 4.3.0 '@smithy/util-body-length-browser': 4.2.0 '@smithy/util-body-length-node': 4.2.1 - '@smithy/util-defaults-mode-browser': 4.3.16 - '@smithy/util-defaults-mode-node': 4.2.19 - '@smithy/util-endpoints': 3.2.7 - '@smithy/util-middleware': 4.2.7 - '@smithy/util-retry': 4.2.7 + '@smithy/util-defaults-mode-browser': 4.3.32 + '@smithy/util-defaults-mode-node': 4.2.35 + '@smithy/util-endpoints': 3.2.8 + '@smithy/util-middleware': 4.2.8 + '@smithy/util-retry': 4.2.8 '@smithy/util-utf8': 4.2.0 tslib: 2.8.1 transitivePeerDependencies: - aws-crt - '@aws-sdk/core@3.956.0': - dependencies: - '@aws-sdk/types': 3.956.0 - '@aws-sdk/xml-builder': 3.956.0 - '@smithy/core': 3.20.0 - '@smithy/node-config-provider': 4.3.7 - '@smithy/property-provider': 4.2.7 - '@smithy/protocol-http': 5.3.7 - '@smithy/signature-v4': 5.3.7 - '@smithy/smithy-client': 4.10.2 - '@smithy/types': 4.11.0 + '@aws-sdk/core@3.973.11': + dependencies: + '@aws-sdk/types': 3.973.1 + '@aws-sdk/xml-builder': 3.972.5 + '@smithy/core': 3.23.2 + '@smithy/node-config-provider': 4.3.8 + '@smithy/property-provider': 4.2.8 + '@smithy/protocol-http': 5.3.8 + '@smithy/signature-v4': 5.3.8 + '@smithy/smithy-client': 4.11.5 + '@smithy/types': 4.12.0 '@smithy/util-base64': 4.3.0 - '@smithy/util-middleware': 4.2.7 + '@smithy/util-middleware': 4.2.8 '@smithy/util-utf8': 4.2.0 tslib: 2.8.1 - '@aws-sdk/credential-provider-cognito-identity@3.956.0': + '@aws-sdk/crc64-nvme@3.972.0': dependencies: - '@aws-sdk/client-cognito-identity': 3.956.0 - '@aws-sdk/types': 3.956.0 - '@smithy/property-provider': 4.2.7 - '@smithy/types': 4.11.0 + '@smithy/types': 4.12.0 + tslib: 2.8.1 + + '@aws-sdk/credential-provider-cognito-identity@3.972.3': + dependencies: + '@aws-sdk/client-cognito-identity': 3.980.0 + '@aws-sdk/types': 3.973.1 + '@smithy/property-provider': 4.2.8 + '@smithy/types': 4.12.0 tslib: 2.8.1 transitivePeerDependencies: - aws-crt - '@aws-sdk/credential-provider-env@3.956.0': + '@aws-sdk/credential-provider-env@3.972.9': dependencies: - '@aws-sdk/core': 3.956.0 - '@aws-sdk/types': 3.956.0 - '@smithy/property-provider': 4.2.7 - '@smithy/types': 4.11.0 + '@aws-sdk/core': 3.973.11 + '@aws-sdk/types': 3.973.1 + '@smithy/property-provider': 4.2.8 + '@smithy/types': 4.12.0 tslib: 2.8.1 - '@aws-sdk/credential-provider-http@3.956.0': + '@aws-sdk/credential-provider-http@3.972.11': dependencies: - '@aws-sdk/core': 3.956.0 - '@aws-sdk/types': 3.956.0 - '@smithy/fetch-http-handler': 5.3.8 - '@smithy/node-http-handler': 4.4.7 - '@smithy/property-provider': 4.2.7 - '@smithy/protocol-http': 5.3.7 - '@smithy/smithy-client': 4.10.2 - '@smithy/types': 4.11.0 - '@smithy/util-stream': 4.5.8 + '@aws-sdk/core': 3.973.11 + '@aws-sdk/types': 3.973.1 + '@smithy/fetch-http-handler': 5.3.9 + '@smithy/node-http-handler': 4.4.10 + '@smithy/property-provider': 4.2.8 + '@smithy/protocol-http': 5.3.8 + '@smithy/smithy-client': 4.11.5 + '@smithy/types': 4.12.0 + '@smithy/util-stream': 4.5.12 tslib: 2.8.1 - '@aws-sdk/credential-provider-ini@3.956.0': + '@aws-sdk/credential-provider-ini@3.972.9': dependencies: - '@aws-sdk/core': 3.956.0 - '@aws-sdk/credential-provider-env': 3.956.0 - '@aws-sdk/credential-provider-http': 3.956.0 - '@aws-sdk/credential-provider-login': 3.956.0 - '@aws-sdk/credential-provider-process': 3.956.0 - '@aws-sdk/credential-provider-sso': 3.956.0 - '@aws-sdk/credential-provider-web-identity': 3.956.0 - '@aws-sdk/nested-clients': 3.956.0 - '@aws-sdk/types': 3.956.0 - '@smithy/credential-provider-imds': 4.2.7 - '@smithy/property-provider': 4.2.7 - '@smithy/shared-ini-file-loader': 4.4.2 - '@smithy/types': 4.11.0 + '@aws-sdk/core': 3.973.11 + '@aws-sdk/credential-provider-env': 3.972.9 + '@aws-sdk/credential-provider-http': 3.972.11 + '@aws-sdk/credential-provider-login': 3.972.9 + '@aws-sdk/credential-provider-process': 3.972.9 + '@aws-sdk/credential-provider-sso': 3.972.9 + '@aws-sdk/credential-provider-web-identity': 3.972.9 + '@aws-sdk/nested-clients': 3.993.0 + '@aws-sdk/types': 3.973.1 + '@smithy/credential-provider-imds': 4.2.8 + '@smithy/property-provider': 4.2.8 + '@smithy/shared-ini-file-loader': 4.4.3 + '@smithy/types': 4.12.0 tslib: 2.8.1 transitivePeerDependencies: - aws-crt - '@aws-sdk/credential-provider-login@3.956.0': + '@aws-sdk/credential-provider-login@3.972.9': dependencies: - '@aws-sdk/core': 3.956.0 - '@aws-sdk/nested-clients': 3.956.0 - '@aws-sdk/types': 3.956.0 - '@smithy/property-provider': 4.2.7 - '@smithy/protocol-http': 5.3.7 - '@smithy/shared-ini-file-loader': 4.4.2 - '@smithy/types': 4.11.0 + '@aws-sdk/core': 3.973.11 + '@aws-sdk/nested-clients': 3.993.0 + '@aws-sdk/types': 3.973.1 + '@smithy/property-provider': 4.2.8 + '@smithy/protocol-http': 5.3.8 + '@smithy/shared-ini-file-loader': 4.4.3 + '@smithy/types': 4.12.0 tslib: 2.8.1 transitivePeerDependencies: - aws-crt - '@aws-sdk/credential-provider-node@3.956.0': + '@aws-sdk/credential-provider-node@3.972.10': dependencies: - '@aws-sdk/credential-provider-env': 3.956.0 - '@aws-sdk/credential-provider-http': 3.956.0 - '@aws-sdk/credential-provider-ini': 3.956.0 - '@aws-sdk/credential-provider-process': 3.956.0 - '@aws-sdk/credential-provider-sso': 3.956.0 - '@aws-sdk/credential-provider-web-identity': 3.956.0 - '@aws-sdk/types': 3.956.0 - '@smithy/credential-provider-imds': 4.2.7 - '@smithy/property-provider': 4.2.7 - '@smithy/shared-ini-file-loader': 4.4.2 - '@smithy/types': 4.11.0 + '@aws-sdk/credential-provider-env': 3.972.9 + '@aws-sdk/credential-provider-http': 3.972.11 + '@aws-sdk/credential-provider-ini': 3.972.9 + '@aws-sdk/credential-provider-process': 3.972.9 + '@aws-sdk/credential-provider-sso': 3.972.9 + '@aws-sdk/credential-provider-web-identity': 3.972.9 + '@aws-sdk/types': 3.973.1 + '@smithy/credential-provider-imds': 4.2.8 + '@smithy/property-provider': 4.2.8 + '@smithy/shared-ini-file-loader': 4.4.3 + '@smithy/types': 4.12.0 tslib: 2.8.1 transitivePeerDependencies: - aws-crt - '@aws-sdk/credential-provider-process@3.956.0': + '@aws-sdk/credential-provider-process@3.972.9': dependencies: - '@aws-sdk/core': 3.956.0 - '@aws-sdk/types': 3.956.0 - '@smithy/property-provider': 4.2.7 - '@smithy/shared-ini-file-loader': 4.4.2 - '@smithy/types': 4.11.0 + '@aws-sdk/core': 3.973.11 + '@aws-sdk/types': 3.973.1 + '@smithy/property-provider': 4.2.8 + '@smithy/shared-ini-file-loader': 4.4.3 + '@smithy/types': 4.12.0 tslib: 2.8.1 - '@aws-sdk/credential-provider-sso@3.956.0': + '@aws-sdk/credential-provider-sso@3.972.9': dependencies: - '@aws-sdk/client-sso': 3.956.0 - '@aws-sdk/core': 3.956.0 - '@aws-sdk/token-providers': 3.956.0 - '@aws-sdk/types': 3.956.0 - '@smithy/property-provider': 4.2.7 - '@smithy/shared-ini-file-loader': 4.4.2 - '@smithy/types': 4.11.0 + '@aws-sdk/client-sso': 3.993.0 + '@aws-sdk/core': 3.973.11 + '@aws-sdk/token-providers': 3.993.0 + '@aws-sdk/types': 3.973.1 + '@smithy/property-provider': 4.2.8 + '@smithy/shared-ini-file-loader': 4.4.3 + '@smithy/types': 4.12.0 tslib: 2.8.1 transitivePeerDependencies: - aws-crt - '@aws-sdk/credential-provider-web-identity@3.956.0': + '@aws-sdk/credential-provider-web-identity@3.972.9': dependencies: - '@aws-sdk/core': 3.956.0 - '@aws-sdk/nested-clients': 3.956.0 - '@aws-sdk/types': 3.956.0 - '@smithy/property-provider': 4.2.7 - '@smithy/shared-ini-file-loader': 4.4.2 - '@smithy/types': 4.11.0 + '@aws-sdk/core': 3.973.11 + '@aws-sdk/nested-clients': 3.993.0 + '@aws-sdk/types': 3.973.1 + '@smithy/property-provider': 4.2.8 + '@smithy/shared-ini-file-loader': 4.4.3 + '@smithy/types': 4.12.0 tslib: 2.8.1 transitivePeerDependencies: - aws-crt - '@aws-sdk/credential-providers@3.956.0': - dependencies: - '@aws-sdk/client-cognito-identity': 3.956.0 - '@aws-sdk/core': 3.956.0 - '@aws-sdk/credential-provider-cognito-identity': 3.956.0 - '@aws-sdk/credential-provider-env': 3.956.0 - '@aws-sdk/credential-provider-http': 3.956.0 - '@aws-sdk/credential-provider-ini': 3.956.0 - '@aws-sdk/credential-provider-login': 3.956.0 - '@aws-sdk/credential-provider-node': 3.956.0 - '@aws-sdk/credential-provider-process': 3.956.0 - '@aws-sdk/credential-provider-sso': 3.956.0 - '@aws-sdk/credential-provider-web-identity': 3.956.0 - '@aws-sdk/nested-clients': 3.956.0 - '@aws-sdk/types': 3.956.0 - '@smithy/config-resolver': 4.4.5 - '@smithy/core': 3.20.0 - '@smithy/credential-provider-imds': 4.2.7 - '@smithy/node-config-provider': 4.3.7 - '@smithy/property-provider': 4.2.7 - '@smithy/types': 4.11.0 + '@aws-sdk/credential-providers@3.995.0': + dependencies: + '@aws-sdk/client-cognito-identity': 3.995.0 + '@aws-sdk/core': 3.973.11 + '@aws-sdk/credential-provider-cognito-identity': 3.972.3 + '@aws-sdk/credential-provider-env': 3.972.9 + '@aws-sdk/credential-provider-http': 3.972.11 + '@aws-sdk/credential-provider-ini': 3.972.9 + '@aws-sdk/credential-provider-login': 3.972.9 + '@aws-sdk/credential-provider-node': 3.972.10 + '@aws-sdk/credential-provider-process': 3.972.9 + '@aws-sdk/credential-provider-sso': 3.972.9 + '@aws-sdk/credential-provider-web-identity': 3.972.9 + '@aws-sdk/nested-clients': 3.995.0 + '@aws-sdk/types': 3.973.1 + '@smithy/config-resolver': 4.4.6 + '@smithy/core': 3.23.2 + '@smithy/credential-provider-imds': 4.2.8 + '@smithy/node-config-provider': 4.3.8 + '@smithy/property-provider': 4.2.8 + '@smithy/types': 4.12.0 tslib: 2.8.1 transitivePeerDependencies: - aws-crt - '@aws-sdk/dsql-signer@3.956.0': + '@aws-sdk/dsql-signer@3.995.0': dependencies: '@aws-crypto/sha256-browser': 5.2.0 '@aws-crypto/sha256-js': 5.2.0 - '@aws-sdk/credential-providers': 3.956.0 - '@aws-sdk/util-format-url': 3.956.0 - '@smithy/config-resolver': 4.4.5 - '@smithy/hash-node': 4.2.7 - '@smithy/invalid-dependency': 4.2.7 - '@smithy/node-config-provider': 4.3.7 - '@smithy/protocol-http': 5.3.7 - '@smithy/signature-v4': 5.3.7 - '@smithy/types': 4.11.0 + '@aws-sdk/credential-providers': 3.995.0 + '@aws-sdk/util-format-url': 3.972.3 + '@smithy/config-resolver': 4.4.6 + '@smithy/hash-node': 4.2.8 + '@smithy/invalid-dependency': 4.2.8 + '@smithy/node-config-provider': 4.3.8 + '@smithy/protocol-http': 5.3.8 + '@smithy/signature-v4': 5.3.8 + '@smithy/types': 4.12.0 tslib: 2.8.1 transitivePeerDependencies: - aws-crt - '@aws-sdk/dynamodb-codec@3.956.0(@aws-sdk/client-dynamodb@3.956.0)': + '@aws-sdk/dynamodb-codec@3.972.12': dependencies: - '@aws-sdk/client-dynamodb': 3.956.0 - '@aws-sdk/core': 3.956.0 - '@smithy/core': 3.20.0 - '@smithy/smithy-client': 4.10.2 - '@smithy/types': 4.11.0 + '@aws-sdk/core': 3.973.11 + '@smithy/core': 3.23.2 + '@smithy/smithy-client': 4.11.5 + '@smithy/types': 4.12.0 '@smithy/util-base64': 4.3.0 tslib: 2.8.1 - '@aws-sdk/endpoint-cache@3.953.0': + '@aws-sdk/endpoint-cache@3.972.2': dependencies: mnemonist: 0.38.3 tslib: 2.8.1 - '@aws-sdk/eventstream-handler-node@3.956.0': + '@aws-sdk/eventstream-handler-node@3.972.5': dependencies: - '@aws-sdk/types': 3.956.0 - '@smithy/eventstream-codec': 4.2.7 - '@smithy/types': 4.11.0 + '@aws-sdk/types': 3.973.1 + '@smithy/eventstream-codec': 4.2.8 + '@smithy/types': 4.12.0 tslib: 2.8.1 - '@aws-sdk/lib-dynamodb@3.956.0(@aws-sdk/client-dynamodb@3.956.0)': + '@aws-sdk/lib-dynamodb@3.995.0(@aws-sdk/client-dynamodb@3.995.0)': dependencies: - '@aws-sdk/client-dynamodb': 3.956.0 - '@aws-sdk/core': 3.956.0 - '@aws-sdk/util-dynamodb': 3.956.0(@aws-sdk/client-dynamodb@3.956.0) - '@smithy/core': 3.20.0 - '@smithy/smithy-client': 4.10.2 - '@smithy/types': 4.11.0 + '@aws-sdk/client-dynamodb': 3.995.0 + '@aws-sdk/core': 3.973.11 + '@aws-sdk/util-dynamodb': 3.995.0(@aws-sdk/client-dynamodb@3.995.0) + '@smithy/core': 3.23.2 + '@smithy/smithy-client': 4.11.5 + '@smithy/types': 4.12.0 tslib: 2.8.1 - '@aws-sdk/middleware-bucket-endpoint@3.956.0': + '@aws-sdk/middleware-bucket-endpoint@3.972.3': dependencies: - '@aws-sdk/types': 3.956.0 - '@aws-sdk/util-arn-parser': 3.953.0 - '@smithy/node-config-provider': 4.3.7 - '@smithy/protocol-http': 5.3.7 - '@smithy/types': 4.11.0 + '@aws-sdk/types': 3.973.1 + '@aws-sdk/util-arn-parser': 3.972.2 + '@smithy/node-config-provider': 4.3.8 + '@smithy/protocol-http': 5.3.8 + '@smithy/types': 4.12.0 '@smithy/util-config-provider': 4.2.0 tslib: 2.8.1 - '@aws-sdk/middleware-endpoint-discovery@3.956.0': + '@aws-sdk/middleware-endpoint-discovery@3.972.3': dependencies: - '@aws-sdk/endpoint-cache': 3.953.0 - '@aws-sdk/types': 3.956.0 - '@smithy/node-config-provider': 4.3.7 - '@smithy/protocol-http': 5.3.7 - '@smithy/types': 4.11.0 + '@aws-sdk/endpoint-cache': 3.972.2 + '@aws-sdk/types': 3.973.1 + '@smithy/node-config-provider': 4.3.8 + '@smithy/protocol-http': 5.3.8 + '@smithy/types': 4.12.0 tslib: 2.8.1 - '@aws-sdk/middleware-eventstream@3.956.0': + '@aws-sdk/middleware-eventstream@3.972.3': dependencies: - '@aws-sdk/types': 3.956.0 - '@smithy/protocol-http': 5.3.7 - '@smithy/types': 4.11.0 + '@aws-sdk/types': 3.973.1 + '@smithy/protocol-http': 5.3.8 + '@smithy/types': 4.12.0 tslib: 2.8.1 - '@aws-sdk/middleware-expect-continue@3.956.0': + '@aws-sdk/middleware-expect-continue@3.972.3': dependencies: - '@aws-sdk/types': 3.956.0 - '@smithy/protocol-http': 5.3.7 - '@smithy/types': 4.11.0 + '@aws-sdk/types': 3.973.1 + '@smithy/protocol-http': 5.3.8 + '@smithy/types': 4.12.0 tslib: 2.8.1 - '@aws-sdk/middleware-flexible-checksums@3.956.0': + '@aws-sdk/middleware-flexible-checksums@3.972.9': dependencies: '@aws-crypto/crc32': 5.2.0 '@aws-crypto/crc32c': 5.2.0 '@aws-crypto/util': 5.2.0 - '@aws-sdk/core': 3.956.0 - '@aws-sdk/types': 3.956.0 + '@aws-sdk/core': 3.973.11 + '@aws-sdk/crc64-nvme': 3.972.0 + '@aws-sdk/types': 3.973.1 '@smithy/is-array-buffer': 4.2.0 - '@smithy/node-config-provider': 4.3.7 - '@smithy/protocol-http': 5.3.7 - '@smithy/types': 4.11.0 - '@smithy/util-middleware': 4.2.7 - '@smithy/util-stream': 4.5.8 + '@smithy/node-config-provider': 4.3.8 + '@smithy/protocol-http': 5.3.8 + '@smithy/types': 4.12.0 + '@smithy/util-middleware': 4.2.8 + '@smithy/util-stream': 4.5.12 '@smithy/util-utf8': 4.2.0 tslib: 2.8.1 - '@aws-sdk/middleware-host-header@3.956.0': + '@aws-sdk/middleware-host-header@3.972.3': dependencies: - '@aws-sdk/types': 3.956.0 - '@smithy/protocol-http': 5.3.7 - '@smithy/types': 4.11.0 + '@aws-sdk/types': 3.973.1 + '@smithy/protocol-http': 5.3.8 + '@smithy/types': 4.12.0 tslib: 2.8.1 - '@aws-sdk/middleware-location-constraint@3.956.0': + '@aws-sdk/middleware-location-constraint@3.972.3': dependencies: - '@aws-sdk/types': 3.956.0 - '@smithy/types': 4.11.0 + '@aws-sdk/types': 3.973.1 + '@smithy/types': 4.12.0 tslib: 2.8.1 - '@aws-sdk/middleware-logger@3.956.0': + '@aws-sdk/middleware-logger@3.972.3': dependencies: - '@aws-sdk/types': 3.956.0 - '@smithy/types': 4.11.0 + '@aws-sdk/types': 3.973.1 + '@smithy/types': 4.12.0 tslib: 2.8.1 - '@aws-sdk/middleware-recursion-detection@3.956.0': + '@aws-sdk/middleware-recursion-detection@3.972.3': dependencies: - '@aws-sdk/types': 3.956.0 - '@aws/lambda-invoke-store': 0.2.2 - '@smithy/protocol-http': 5.3.7 - '@smithy/types': 4.11.0 + '@aws-sdk/types': 3.973.1 + '@aws/lambda-invoke-store': 0.2.3 + '@smithy/protocol-http': 5.3.8 + '@smithy/types': 4.12.0 tslib: 2.8.1 - '@aws-sdk/middleware-sdk-api-gateway@3.956.0': + '@aws-sdk/middleware-sdk-api-gateway@3.972.3': dependencies: - '@aws-sdk/types': 3.956.0 - '@smithy/protocol-http': 5.3.7 - '@smithy/types': 4.11.0 + '@aws-sdk/types': 3.973.1 + '@smithy/protocol-http': 5.3.8 + '@smithy/types': 4.12.0 tslib: 2.8.1 - '@aws-sdk/middleware-sdk-ec2@3.956.0': + '@aws-sdk/middleware-sdk-ec2@3.972.8': dependencies: - '@aws-sdk/types': 3.956.0 - '@aws-sdk/util-format-url': 3.956.0 - '@smithy/middleware-endpoint': 4.4.1 - '@smithy/protocol-http': 5.3.7 - '@smithy/signature-v4': 5.3.7 - '@smithy/smithy-client': 4.10.2 - '@smithy/types': 4.11.0 + '@aws-sdk/types': 3.973.1 + '@aws-sdk/util-format-url': 3.972.3 + '@smithy/middleware-endpoint': 4.4.16 + '@smithy/protocol-http': 5.3.8 + '@smithy/signature-v4': 5.3.8 + '@smithy/smithy-client': 4.11.5 + '@smithy/types': 4.12.0 tslib: 2.8.1 - '@aws-sdk/middleware-sdk-rds@3.956.0': + '@aws-sdk/middleware-sdk-rds@3.972.8': dependencies: - '@aws-sdk/types': 3.956.0 - '@aws-sdk/util-format-url': 3.956.0 - '@smithy/middleware-endpoint': 4.4.1 - '@smithy/protocol-http': 5.3.7 - '@smithy/signature-v4': 5.3.7 - '@smithy/types': 4.11.0 + '@aws-sdk/types': 3.973.1 + '@aws-sdk/util-format-url': 3.972.3 + '@smithy/middleware-endpoint': 4.4.16 + '@smithy/protocol-http': 5.3.8 + '@smithy/signature-v4': 5.3.8 + '@smithy/types': 4.12.0 tslib: 2.8.1 - '@aws-sdk/middleware-sdk-s3@3.956.0': + '@aws-sdk/middleware-sdk-s3@3.972.11': dependencies: - '@aws-sdk/core': 3.956.0 - '@aws-sdk/types': 3.956.0 - '@aws-sdk/util-arn-parser': 3.953.0 - '@smithy/core': 3.20.0 - '@smithy/node-config-provider': 4.3.7 - '@smithy/protocol-http': 5.3.7 - '@smithy/signature-v4': 5.3.7 - '@smithy/smithy-client': 4.10.2 - '@smithy/types': 4.11.0 + '@aws-sdk/core': 3.973.11 + '@aws-sdk/types': 3.973.1 + '@aws-sdk/util-arn-parser': 3.972.2 + '@smithy/core': 3.23.2 + '@smithy/node-config-provider': 4.3.8 + '@smithy/protocol-http': 5.3.8 + '@smithy/signature-v4': 5.3.8 + '@smithy/smithy-client': 4.11.5 + '@smithy/types': 4.12.0 '@smithy/util-config-provider': 4.2.0 - '@smithy/util-middleware': 4.2.7 - '@smithy/util-stream': 4.5.8 + '@smithy/util-middleware': 4.2.8 + '@smithy/util-stream': 4.5.12 '@smithy/util-utf8': 4.2.0 tslib: 2.8.1 - '@aws-sdk/middleware-sdk-sqs@3.956.0': + '@aws-sdk/middleware-sdk-sqs@3.972.8': dependencies: - '@aws-sdk/types': 3.956.0 - '@smithy/smithy-client': 4.10.2 - '@smithy/types': 4.11.0 + '@aws-sdk/types': 3.973.1 + '@smithy/smithy-client': 4.11.5 + '@smithy/types': 4.12.0 '@smithy/util-hex-encoding': 4.2.0 '@smithy/util-utf8': 4.2.0 tslib: 2.8.1 - '@aws-sdk/middleware-ssec@3.956.0': + '@aws-sdk/middleware-ssec@3.972.3': dependencies: - '@aws-sdk/types': 3.956.0 - '@smithy/types': 4.11.0 + '@aws-sdk/types': 3.973.1 + '@smithy/types': 4.12.0 tslib: 2.8.1 - '@aws-sdk/middleware-user-agent@3.956.0': + '@aws-sdk/middleware-user-agent@3.972.11': dependencies: - '@aws-sdk/core': 3.956.0 - '@aws-sdk/types': 3.956.0 - '@aws-sdk/util-endpoints': 3.956.0 - '@smithy/core': 3.20.0 - '@smithy/protocol-http': 5.3.7 - '@smithy/types': 4.11.0 + '@aws-sdk/core': 3.973.11 + '@aws-sdk/types': 3.973.1 + '@aws-sdk/util-endpoints': 3.993.0 + '@smithy/core': 3.23.2 + '@smithy/protocol-http': 5.3.8 + '@smithy/types': 4.12.0 tslib: 2.8.1 - '@aws-sdk/middleware-websocket@3.956.0': + '@aws-sdk/middleware-websocket@3.972.6': dependencies: - '@aws-sdk/types': 3.956.0 - '@aws-sdk/util-format-url': 3.956.0 - '@smithy/eventstream-codec': 4.2.7 - '@smithy/eventstream-serde-browser': 4.2.7 - '@smithy/fetch-http-handler': 5.3.8 - '@smithy/protocol-http': 5.3.7 - '@smithy/signature-v4': 5.3.7 - '@smithy/types': 4.11.0 + '@aws-sdk/types': 3.973.1 + '@aws-sdk/util-format-url': 3.972.3 + '@smithy/eventstream-codec': 4.2.8 + '@smithy/eventstream-serde-browser': 4.2.8 + '@smithy/fetch-http-handler': 5.3.9 + '@smithy/protocol-http': 5.3.8 + '@smithy/signature-v4': 5.3.8 + '@smithy/types': 4.12.0 + '@smithy/util-base64': 4.3.0 '@smithy/util-hex-encoding': 4.2.0 + '@smithy/util-utf8': 4.2.0 + tslib: 2.8.1 + + '@aws-sdk/nested-clients@3.993.0': + dependencies: + '@aws-crypto/sha256-browser': 5.2.0 + '@aws-crypto/sha256-js': 5.2.0 + '@aws-sdk/core': 3.973.11 + '@aws-sdk/middleware-host-header': 3.972.3 + '@aws-sdk/middleware-logger': 3.972.3 + '@aws-sdk/middleware-recursion-detection': 3.972.3 + '@aws-sdk/middleware-user-agent': 3.972.11 + '@aws-sdk/region-config-resolver': 3.972.3 + '@aws-sdk/types': 3.973.1 + '@aws-sdk/util-endpoints': 3.993.0 + '@aws-sdk/util-user-agent-browser': 3.972.3 + '@aws-sdk/util-user-agent-node': 3.972.10 + '@smithy/config-resolver': 4.4.6 + '@smithy/core': 3.23.2 + '@smithy/fetch-http-handler': 5.3.9 + '@smithy/hash-node': 4.2.8 + '@smithy/invalid-dependency': 4.2.8 + '@smithy/middleware-content-length': 4.2.8 + '@smithy/middleware-endpoint': 4.4.16 + '@smithy/middleware-retry': 4.4.33 + '@smithy/middleware-serde': 4.2.9 + '@smithy/middleware-stack': 4.2.8 + '@smithy/node-config-provider': 4.3.8 + '@smithy/node-http-handler': 4.4.10 + '@smithy/protocol-http': 5.3.8 + '@smithy/smithy-client': 4.11.5 + '@smithy/types': 4.12.0 + '@smithy/url-parser': 4.2.8 + '@smithy/util-base64': 4.3.0 + '@smithy/util-body-length-browser': 4.2.0 + '@smithy/util-body-length-node': 4.2.1 + '@smithy/util-defaults-mode-browser': 4.3.32 + '@smithy/util-defaults-mode-node': 4.2.35 + '@smithy/util-endpoints': 3.2.8 + '@smithy/util-middleware': 4.2.8 + '@smithy/util-retry': 4.2.8 + '@smithy/util-utf8': 4.2.0 tslib: 2.8.1 + transitivePeerDependencies: + - aws-crt - '@aws-sdk/nested-clients@3.956.0': + '@aws-sdk/nested-clients@3.995.0': dependencies: '@aws-crypto/sha256-browser': 5.2.0 '@aws-crypto/sha256-js': 5.2.0 - '@aws-sdk/core': 3.956.0 - '@aws-sdk/middleware-host-header': 3.956.0 - '@aws-sdk/middleware-logger': 3.956.0 - '@aws-sdk/middleware-recursion-detection': 3.956.0 - '@aws-sdk/middleware-user-agent': 3.956.0 - '@aws-sdk/region-config-resolver': 3.956.0 - '@aws-sdk/types': 3.956.0 - '@aws-sdk/util-endpoints': 3.956.0 - '@aws-sdk/util-user-agent-browser': 3.956.0 - '@aws-sdk/util-user-agent-node': 3.956.0 - '@smithy/config-resolver': 4.4.5 - '@smithy/core': 3.20.0 - '@smithy/fetch-http-handler': 5.3.8 - '@smithy/hash-node': 4.2.7 - '@smithy/invalid-dependency': 4.2.7 - '@smithy/middleware-content-length': 4.2.7 - '@smithy/middleware-endpoint': 4.4.1 - '@smithy/middleware-retry': 4.4.17 - '@smithy/middleware-serde': 4.2.8 - '@smithy/middleware-stack': 4.2.7 - '@smithy/node-config-provider': 4.3.7 - '@smithy/node-http-handler': 4.4.7 - '@smithy/protocol-http': 5.3.7 - '@smithy/smithy-client': 4.10.2 - '@smithy/types': 4.11.0 - '@smithy/url-parser': 4.2.7 + '@aws-sdk/core': 3.973.11 + '@aws-sdk/middleware-host-header': 3.972.3 + '@aws-sdk/middleware-logger': 3.972.3 + '@aws-sdk/middleware-recursion-detection': 3.972.3 + '@aws-sdk/middleware-user-agent': 3.972.11 + '@aws-sdk/region-config-resolver': 3.972.3 + '@aws-sdk/types': 3.973.1 + '@aws-sdk/util-endpoints': 3.995.0 + '@aws-sdk/util-user-agent-browser': 3.972.3 + '@aws-sdk/util-user-agent-node': 3.972.10 + '@smithy/config-resolver': 4.4.6 + '@smithy/core': 3.23.2 + '@smithy/fetch-http-handler': 5.3.9 + '@smithy/hash-node': 4.2.8 + '@smithy/invalid-dependency': 4.2.8 + '@smithy/middleware-content-length': 4.2.8 + '@smithy/middleware-endpoint': 4.4.16 + '@smithy/middleware-retry': 4.4.33 + '@smithy/middleware-serde': 4.2.9 + '@smithy/middleware-stack': 4.2.8 + '@smithy/node-config-provider': 4.3.8 + '@smithy/node-http-handler': 4.4.10 + '@smithy/protocol-http': 5.3.8 + '@smithy/smithy-client': 4.11.5 + '@smithy/types': 4.12.0 + '@smithy/url-parser': 4.2.8 '@smithy/util-base64': 4.3.0 '@smithy/util-body-length-browser': 4.2.0 '@smithy/util-body-length-node': 4.2.1 - '@smithy/util-defaults-mode-browser': 4.3.16 - '@smithy/util-defaults-mode-node': 4.2.19 - '@smithy/util-endpoints': 3.2.7 - '@smithy/util-middleware': 4.2.7 - '@smithy/util-retry': 4.2.7 + '@smithy/util-defaults-mode-browser': 4.3.32 + '@smithy/util-defaults-mode-node': 4.2.35 + '@smithy/util-endpoints': 3.2.8 + '@smithy/util-middleware': 4.2.8 + '@smithy/util-retry': 4.2.8 '@smithy/util-utf8': 4.2.0 tslib: 2.8.1 transitivePeerDependencies: - aws-crt - '@aws-sdk/region-config-resolver@3.956.0': + '@aws-sdk/region-config-resolver@3.972.3': dependencies: - '@aws-sdk/types': 3.956.0 - '@smithy/config-resolver': 4.4.5 - '@smithy/node-config-provider': 4.3.7 - '@smithy/types': 4.11.0 + '@aws-sdk/types': 3.973.1 + '@smithy/config-resolver': 4.4.6 + '@smithy/node-config-provider': 4.3.8 + '@smithy/types': 4.12.0 tslib: 2.8.1 - '@aws-sdk/s3-request-presigner@3.956.0': + '@aws-sdk/s3-request-presigner@3.995.0': dependencies: - '@aws-sdk/signature-v4-multi-region': 3.956.0 - '@aws-sdk/types': 3.956.0 - '@aws-sdk/util-format-url': 3.956.0 - '@smithy/middleware-endpoint': 4.4.1 - '@smithy/protocol-http': 5.3.7 - '@smithy/smithy-client': 4.10.2 - '@smithy/types': 4.11.0 + '@aws-sdk/signature-v4-multi-region': 3.995.0 + '@aws-sdk/types': 3.973.1 + '@aws-sdk/util-format-url': 3.972.3 + '@smithy/middleware-endpoint': 4.4.16 + '@smithy/protocol-http': 5.3.8 + '@smithy/smithy-client': 4.11.5 + '@smithy/types': 4.12.0 tslib: 2.8.1 - '@aws-sdk/signature-v4-multi-region@3.956.0': + '@aws-sdk/signature-v4-multi-region@3.995.0': dependencies: - '@aws-sdk/middleware-sdk-s3': 3.956.0 - '@aws-sdk/types': 3.956.0 - '@smithy/protocol-http': 5.3.7 - '@smithy/signature-v4': 5.3.7 - '@smithy/types': 4.11.0 + '@aws-sdk/middleware-sdk-s3': 3.972.11 + '@aws-sdk/types': 3.973.1 + '@smithy/protocol-http': 5.3.8 + '@smithy/signature-v4': 5.3.8 + '@smithy/types': 4.12.0 tslib: 2.8.1 - '@aws-sdk/token-providers@3.956.0': + '@aws-sdk/token-providers@3.993.0': dependencies: - '@aws-sdk/core': 3.956.0 - '@aws-sdk/nested-clients': 3.956.0 - '@aws-sdk/types': 3.956.0 - '@smithy/property-provider': 4.2.7 - '@smithy/shared-ini-file-loader': 4.4.2 - '@smithy/types': 4.11.0 + '@aws-sdk/core': 3.973.11 + '@aws-sdk/nested-clients': 3.993.0 + '@aws-sdk/types': 3.973.1 + '@smithy/property-provider': 4.2.8 + '@smithy/shared-ini-file-loader': 4.4.3 + '@smithy/types': 4.12.0 tslib: 2.8.1 transitivePeerDependencies: - aws-crt - '@aws-sdk/types@3.956.0': + '@aws-sdk/token-providers@3.995.0': + dependencies: + '@aws-sdk/core': 3.973.11 + '@aws-sdk/nested-clients': 3.995.0 + '@aws-sdk/types': 3.973.1 + '@smithy/property-provider': 4.2.8 + '@smithy/shared-ini-file-loader': 4.4.3 + '@smithy/types': 4.12.0 + tslib: 2.8.1 + transitivePeerDependencies: + - aws-crt + + '@aws-sdk/types@3.973.1': + dependencies: + '@smithy/types': 4.12.0 + tslib: 2.8.1 + + '@aws-sdk/util-arn-parser@3.972.2': dependencies: - '@smithy/types': 4.11.0 tslib: 2.8.1 - '@aws-sdk/util-arn-parser@3.953.0': + '@aws-sdk/util-dynamodb@3.995.0(@aws-sdk/client-dynamodb@3.995.0)': dependencies: + '@aws-sdk/client-dynamodb': 3.995.0 tslib: 2.8.1 - '@aws-sdk/util-dynamodb@3.956.0(@aws-sdk/client-dynamodb@3.956.0)': + '@aws-sdk/util-endpoints@3.980.0': dependencies: - '@aws-sdk/client-dynamodb': 3.956.0 + '@aws-sdk/types': 3.973.1 + '@smithy/types': 4.12.0 + '@smithy/url-parser': 4.2.8 + '@smithy/util-endpoints': 3.2.8 tslib: 2.8.1 - '@aws-sdk/util-endpoints@3.956.0': + '@aws-sdk/util-endpoints@3.993.0': dependencies: - '@aws-sdk/types': 3.956.0 - '@smithy/types': 4.11.0 - '@smithy/url-parser': 4.2.7 - '@smithy/util-endpoints': 3.2.7 + '@aws-sdk/types': 3.973.1 + '@smithy/types': 4.12.0 + '@smithy/url-parser': 4.2.8 + '@smithy/util-endpoints': 3.2.8 tslib: 2.8.1 - '@aws-sdk/util-format-url@3.956.0': + '@aws-sdk/util-endpoints@3.995.0': dependencies: - '@aws-sdk/types': 3.956.0 - '@smithy/querystring-builder': 4.2.7 - '@smithy/types': 4.11.0 + '@aws-sdk/types': 3.973.1 + '@smithy/types': 4.12.0 + '@smithy/url-parser': 4.2.8 + '@smithy/util-endpoints': 3.2.8 tslib: 2.8.1 - '@aws-sdk/util-locate-window@3.953.0': + '@aws-sdk/util-format-url@3.972.3': dependencies: + '@aws-sdk/types': 3.973.1 + '@smithy/querystring-builder': 4.2.8 + '@smithy/types': 4.12.0 tslib: 2.8.1 - '@aws-sdk/util-user-agent-browser@3.956.0': + '@aws-sdk/util-locate-window@3.965.4': dependencies: - '@aws-sdk/types': 3.956.0 - '@smithy/types': 4.11.0 - bowser: 2.13.1 tslib: 2.8.1 - '@aws-sdk/util-user-agent-node@3.956.0': + '@aws-sdk/util-user-agent-browser@3.972.3': dependencies: - '@aws-sdk/middleware-user-agent': 3.956.0 - '@aws-sdk/types': 3.956.0 - '@smithy/node-config-provider': 4.3.7 - '@smithy/types': 4.11.0 + '@aws-sdk/types': 3.973.1 + '@smithy/types': 4.12.0 + bowser: 2.14.1 tslib: 2.8.1 - '@aws-sdk/xml-builder@3.956.0': + '@aws-sdk/util-user-agent-node@3.972.10': dependencies: - '@smithy/types': 4.11.0 - fast-xml-parser: 5.2.5 + '@aws-sdk/middleware-user-agent': 3.972.11 + '@aws-sdk/types': 3.973.1 + '@smithy/node-config-provider': 4.3.8 + '@smithy/types': 4.12.0 tslib: 2.8.1 - '@aws/lambda-invoke-store@0.2.2': {} + '@aws-sdk/xml-builder@3.972.5': + dependencies: + '@smithy/types': 4.12.0 + fast-xml-parser: 5.3.6 + tslib: 2.8.1 + + '@aws/lambda-invoke-store@0.2.3': {} '@babel/code-frame@7.26.2': dependencies: @@ -9618,24 +9533,6 @@ snapshots: micromatch: 4.0.8 pkg-entry-points: 1.1.1 - '@effect/cli@0.63.8(@effect/platform@0.84.8(effect@3.16.4))(@effect/printer-ansi@0.44.4(@effect/typeclass@0.35.4(effect@3.16.4))(effect@3.16.4))(@effect/printer@0.44.4(@effect/typeclass@0.35.4(effect@3.16.4))(effect@3.16.4))(effect@3.16.4)': - dependencies: - '@effect/platform': 0.84.8(effect@3.16.4) - '@effect/printer': 0.44.4(@effect/typeclass@0.35.4(effect@3.16.4))(effect@3.16.4) - '@effect/printer-ansi': 0.44.4(@effect/typeclass@0.35.4(effect@3.16.4))(effect@3.16.4) - effect: 3.16.4 - ini: 4.1.3 - toml: 3.0.0 - yaml: 2.7.0 - - '@effect/cluster@0.38.7(@effect/platform@0.84.8(effect@3.16.4))(@effect/rpc@0.61.8(@effect/platform@0.84.8(effect@3.16.4))(effect@3.16.4))(@effect/sql@0.37.9(@effect/experimental@0.48.9(@effect/platform@0.84.8(effect@3.16.4))(effect@3.16.4))(@effect/platform@0.84.8(effect@3.16.4))(effect@3.16.4))(@effect/workflow@0.1.5(@effect/platform@0.84.8(effect@3.16.4))(@effect/rpc@0.61.8(@effect/platform@0.84.8(effect@3.16.4))(effect@3.16.4))(effect@3.16.4))(effect@3.16.4)': - dependencies: - '@effect/platform': 0.84.8(effect@3.16.4) - '@effect/rpc': 0.61.8(@effect/platform@0.84.8(effect@3.16.4))(effect@3.16.4) - '@effect/sql': 0.37.9(@effect/experimental@0.48.9(@effect/platform@0.84.8(effect@3.16.4))(effect@3.16.4))(@effect/platform@0.84.8(effect@3.16.4))(effect@3.16.4) - '@effect/workflow': 0.1.5(@effect/platform@0.84.8(effect@3.16.4))(@effect/rpc@0.61.8(@effect/platform@0.84.8(effect@3.16.4))(effect@3.16.4))(effect@3.16.4) - effect: 3.16.4 - '@effect/docgen@0.5.2(tsx@4.19.3)(typescript@5.4.5)': dependencies: '@effect/markdown-toc': 0.1.0 @@ -9651,12 +9548,6 @@ snapshots: '@dprint/typescript': 0.91.8 prettier-linter-helpers: 1.0.0 - '@effect/experimental@0.48.9(@effect/platform@0.84.8(effect@3.16.4))(effect@3.16.4)': - dependencies: - '@effect/platform': 0.84.8(effect@3.16.4) - effect: 3.16.4 - uuid: 11.1.0 - '@effect/language-service@0.19.0': {} '@effect/markdown-toc@0.1.0': @@ -9674,20 +9565,6 @@ snapshots: repeat-string: 1.6.1 strip-color: 0.1.0 - '@effect/platform-node-shared@0.39.7(@effect/cluster@0.38.7(@effect/platform@0.84.8(effect@3.16.4))(@effect/rpc@0.61.8(@effect/platform@0.84.8(effect@3.16.4))(effect@3.16.4))(@effect/sql@0.37.9(@effect/experimental@0.48.9(@effect/platform@0.84.8(effect@3.16.4))(effect@3.16.4))(@effect/platform@0.84.8(effect@3.16.4))(effect@3.16.4))(@effect/workflow@0.1.5(@effect/platform@0.84.8(effect@3.16.4))(@effect/rpc@0.61.8(@effect/platform@0.84.8(effect@3.16.4))(effect@3.16.4))(effect@3.16.4))(effect@3.16.4))(@effect/platform@0.84.8(effect@3.16.4))(@effect/rpc@0.61.8(@effect/platform@0.84.8(effect@3.16.4))(effect@3.16.4))(@effect/sql@0.37.9(@effect/experimental@0.48.9(@effect/platform@0.84.8(effect@3.16.4))(effect@3.16.4))(@effect/platform@0.84.8(effect@3.16.4))(effect@3.16.4))(effect@3.16.4)': - dependencies: - '@effect/cluster': 0.38.7(@effect/platform@0.84.8(effect@3.16.4))(@effect/rpc@0.61.8(@effect/platform@0.84.8(effect@3.16.4))(effect@3.16.4))(@effect/sql@0.37.9(@effect/experimental@0.48.9(@effect/platform@0.84.8(effect@3.16.4))(effect@3.16.4))(@effect/platform@0.84.8(effect@3.16.4))(effect@3.16.4))(@effect/workflow@0.1.5(@effect/platform@0.84.8(effect@3.16.4))(@effect/rpc@0.61.8(@effect/platform@0.84.8(effect@3.16.4))(effect@3.16.4))(effect@3.16.4))(effect@3.16.4) - '@effect/platform': 0.84.8(effect@3.16.4) - '@effect/rpc': 0.61.8(@effect/platform@0.84.8(effect@3.16.4))(effect@3.16.4) - '@effect/sql': 0.37.9(@effect/experimental@0.48.9(@effect/platform@0.84.8(effect@3.16.4))(effect@3.16.4))(@effect/platform@0.84.8(effect@3.16.4))(effect@3.16.4) - '@parcel/watcher': 2.5.1 - effect: 3.16.4 - multipasta: 0.2.5 - ws: 8.18.2 - transitivePeerDependencies: - - bufferutil - - utf-8-validate - '@effect/platform-node-shared@4.0.0-beta.8(effect@4.0.0-beta.8)': dependencies: '@types/ws': 8.18.1 @@ -9697,66 +9574,21 @@ snapshots: - bufferutil - utf-8-validate - '@effect/platform-node@0.85.7(@effect/cluster@0.38.7(@effect/platform@0.84.8(effect@3.16.4))(@effect/rpc@0.61.8(@effect/platform@0.84.8(effect@3.16.4))(effect@3.16.4))(@effect/sql@0.37.9(@effect/experimental@0.48.9(@effect/platform@0.84.8(effect@3.16.4))(effect@3.16.4))(@effect/platform@0.84.8(effect@3.16.4))(effect@3.16.4))(@effect/workflow@0.1.5(@effect/platform@0.84.8(effect@3.16.4))(@effect/rpc@0.61.8(@effect/platform@0.84.8(effect@3.16.4))(effect@3.16.4))(effect@3.16.4))(effect@3.16.4))(@effect/platform@0.84.8(effect@3.16.4))(@effect/rpc@0.61.8(@effect/platform@0.84.8(effect@3.16.4))(effect@3.16.4))(@effect/sql@0.37.9(@effect/experimental@0.48.9(@effect/platform@0.84.8(effect@3.16.4))(effect@3.16.4))(@effect/platform@0.84.8(effect@3.16.4))(effect@3.16.4))(effect@3.16.4)': - dependencies: - '@effect/cluster': 0.38.7(@effect/platform@0.84.8(effect@3.16.4))(@effect/rpc@0.61.8(@effect/platform@0.84.8(effect@3.16.4))(effect@3.16.4))(@effect/sql@0.37.9(@effect/experimental@0.48.9(@effect/platform@0.84.8(effect@3.16.4))(effect@3.16.4))(@effect/platform@0.84.8(effect@3.16.4))(effect@3.16.4))(@effect/workflow@0.1.5(@effect/platform@0.84.8(effect@3.16.4))(@effect/rpc@0.61.8(@effect/platform@0.84.8(effect@3.16.4))(effect@3.16.4))(effect@3.16.4))(effect@3.16.4) - '@effect/platform': 0.84.8(effect@3.16.4) - '@effect/platform-node-shared': 0.39.7(@effect/cluster@0.38.7(@effect/platform@0.84.8(effect@3.16.4))(@effect/rpc@0.61.8(@effect/platform@0.84.8(effect@3.16.4))(effect@3.16.4))(@effect/sql@0.37.9(@effect/experimental@0.48.9(@effect/platform@0.84.8(effect@3.16.4))(effect@3.16.4))(@effect/platform@0.84.8(effect@3.16.4))(effect@3.16.4))(@effect/workflow@0.1.5(@effect/platform@0.84.8(effect@3.16.4))(@effect/rpc@0.61.8(@effect/platform@0.84.8(effect@3.16.4))(effect@3.16.4))(effect@3.16.4))(effect@3.16.4))(@effect/platform@0.84.8(effect@3.16.4))(@effect/rpc@0.61.8(@effect/platform@0.84.8(effect@3.16.4))(effect@3.16.4))(@effect/sql@0.37.9(@effect/experimental@0.48.9(@effect/platform@0.84.8(effect@3.16.4))(effect@3.16.4))(@effect/platform@0.84.8(effect@3.16.4))(effect@3.16.4))(effect@3.16.4) - '@effect/rpc': 0.61.8(@effect/platform@0.84.8(effect@3.16.4))(effect@3.16.4) - '@effect/sql': 0.37.9(@effect/experimental@0.48.9(@effect/platform@0.84.8(effect@3.16.4))(effect@3.16.4))(@effect/platform@0.84.8(effect@3.16.4))(effect@3.16.4) - effect: 3.16.4 - mime: 3.0.0 - undici: 7.10.0 - ws: 8.18.2 + '@effect/platform-node@4.0.0-beta.8(effect@4.0.0-beta.8)(ioredis@5.9.3)': + dependencies: + '@effect/platform-node-shared': 4.0.0-beta.8(effect@4.0.0-beta.8) + effect: 4.0.0-beta.8 + ioredis: 5.9.3 + mime: 4.1.0 + undici: 7.22.0 transitivePeerDependencies: - bufferutil - utf-8-validate - '@effect/platform@0.84.8(effect@3.16.4)': - dependencies: - effect: 3.16.4 - find-my-way-ts: 0.1.5 - msgpackr: 1.11.4 - multipasta: 0.2.5 - - '@effect/printer-ansi@0.44.4(@effect/typeclass@0.35.4(effect@3.16.4))(effect@3.16.4)': - dependencies: - '@effect/printer': 0.44.4(@effect/typeclass@0.35.4(effect@3.16.4))(effect@3.16.4) - '@effect/typeclass': 0.35.4(effect@3.16.4) - effect: 3.16.4 - - '@effect/printer@0.44.4(@effect/typeclass@0.35.4(effect@3.16.4))(effect@3.16.4)': - dependencies: - '@effect/typeclass': 0.35.4(effect@3.16.4) - effect: 3.16.4 - - '@effect/rpc@0.61.8(@effect/platform@0.84.8(effect@3.16.4))(effect@3.16.4)': - dependencies: - '@effect/platform': 0.84.8(effect@3.16.4) - effect: 3.16.4 - - '@effect/sql@0.37.9(@effect/experimental@0.48.9(@effect/platform@0.84.8(effect@3.16.4))(effect@3.16.4))(@effect/platform@0.84.8(effect@3.16.4))(effect@3.16.4)': - dependencies: - '@effect/experimental': 0.48.9(@effect/platform@0.84.8(effect@3.16.4))(effect@3.16.4) - '@effect/platform': 0.84.8(effect@3.16.4) - '@opentelemetry/semantic-conventions': 1.38.0 - effect: 3.16.4 - uuid: 11.1.0 - - '@effect/typeclass@0.35.4(effect@3.16.4)': - dependencies: - effect: 3.16.4 - - '@effect/vitest@0.23.4(effect@3.16.4)(vitest@3.2.4(@types/node@25.0.3))': - dependencies: - effect: 3.16.4 - vitest: 3.2.4(@types/node@25.0.3) - - '@effect/workflow@0.1.5(@effect/platform@0.84.8(effect@3.16.4))(@effect/rpc@0.61.8(@effect/platform@0.84.8(effect@3.16.4))(effect@3.16.4))(effect@3.16.4)': + '@effect/vitest@4.0.0-beta.8(effect@4.0.0-beta.8)(vitest@3.2.4(@types/node@25.3.0))': dependencies: - '@effect/platform': 0.84.8(effect@3.16.4) - '@effect/rpc': 0.61.8(@effect/platform@0.84.8(effect@3.16.4))(effect@3.16.4) - effect: 3.16.4 + effect: 4.0.0-beta.8 + vitest: 3.2.4(@types/node@25.3.0) '@esbuild/aix-ppc64@0.21.5': optional: true @@ -9994,6 +9826,8 @@ snapshots: transitivePeerDependencies: - supports-color + '@ioredis/commands@1.5.0': {} + '@isaacs/cliui@8.0.2': dependencies: string-width: 5.1.2 @@ -10092,68 +9926,6 @@ snapshots: '@nolyfill/is-core-module@1.0.39': {} - '@opentelemetry/semantic-conventions@1.38.0': {} - - '@parcel/watcher-android-arm64@2.5.1': - optional: true - - '@parcel/watcher-darwin-arm64@2.5.1': - optional: true - - '@parcel/watcher-darwin-x64@2.5.1': - optional: true - - '@parcel/watcher-freebsd-x64@2.5.1': - optional: true - - '@parcel/watcher-linux-arm-glibc@2.5.1': - optional: true - - '@parcel/watcher-linux-arm-musl@2.5.1': - optional: true - - '@parcel/watcher-linux-arm64-glibc@2.5.1': - optional: true - - '@parcel/watcher-linux-arm64-musl@2.5.1': - optional: true - - '@parcel/watcher-linux-x64-glibc@2.5.1': - optional: true - - '@parcel/watcher-linux-x64-musl@2.5.1': - optional: true - - '@parcel/watcher-win32-arm64@2.5.1': - optional: true - - '@parcel/watcher-win32-ia32@2.5.1': - optional: true - - '@parcel/watcher-win32-x64@2.5.1': - optional: true - - '@parcel/watcher@2.5.1': - dependencies: - detect-libc: 1.0.3 - is-glob: 4.0.3 - micromatch: 4.0.8 - node-addon-api: 7.1.1 - optionalDependencies: - '@parcel/watcher-android-arm64': 2.5.1 - '@parcel/watcher-darwin-arm64': 2.5.1 - '@parcel/watcher-darwin-x64': 2.5.1 - '@parcel/watcher-freebsd-x64': 2.5.1 - '@parcel/watcher-linux-arm-glibc': 2.5.1 - '@parcel/watcher-linux-arm-musl': 2.5.1 - '@parcel/watcher-linux-arm64-glibc': 2.5.1 - '@parcel/watcher-linux-arm64-musl': 2.5.1 - '@parcel/watcher-linux-x64-glibc': 2.5.1 - '@parcel/watcher-linux-x64-musl': 2.5.1 - '@parcel/watcher-win32-arm64': 2.5.1 - '@parcel/watcher-win32-ia32': 2.5.1 - '@parcel/watcher-win32-x64': 2.5.1 - '@pkgjs/parseargs@0.11.0': optional: true @@ -10282,9 +10054,9 @@ snapshots: '@sinonjs/text-encoding@0.7.3': {} - '@smithy/abort-controller@4.2.7': + '@smithy/abort-controller@4.2.8': dependencies: - '@smithy/types': 4.11.0 + '@smithy/types': 4.12.0 tslib: 2.8.1 '@smithy/chunked-blob-reader-native@4.2.1': @@ -10296,97 +10068,97 @@ snapshots: dependencies: tslib: 2.8.1 - '@smithy/config-resolver@4.4.5': + '@smithy/config-resolver@4.4.6': dependencies: - '@smithy/node-config-provider': 4.3.7 - '@smithy/types': 4.11.0 + '@smithy/node-config-provider': 4.3.8 + '@smithy/types': 4.12.0 '@smithy/util-config-provider': 4.2.0 - '@smithy/util-endpoints': 3.2.7 - '@smithy/util-middleware': 4.2.7 + '@smithy/util-endpoints': 3.2.8 + '@smithy/util-middleware': 4.2.8 tslib: 2.8.1 - '@smithy/core@3.20.0': + '@smithy/core@3.23.2': dependencies: - '@smithy/middleware-serde': 4.2.8 - '@smithy/protocol-http': 5.3.7 - '@smithy/types': 4.11.0 + '@smithy/middleware-serde': 4.2.9 + '@smithy/protocol-http': 5.3.8 + '@smithy/types': 4.12.0 '@smithy/util-base64': 4.3.0 '@smithy/util-body-length-browser': 4.2.0 - '@smithy/util-middleware': 4.2.7 - '@smithy/util-stream': 4.5.8 + '@smithy/util-middleware': 4.2.8 + '@smithy/util-stream': 4.5.12 '@smithy/util-utf8': 4.2.0 '@smithy/uuid': 1.1.0 tslib: 2.8.1 - '@smithy/credential-provider-imds@4.2.7': + '@smithy/credential-provider-imds@4.2.8': dependencies: - '@smithy/node-config-provider': 4.3.7 - '@smithy/property-provider': 4.2.7 - '@smithy/types': 4.11.0 - '@smithy/url-parser': 4.2.7 + '@smithy/node-config-provider': 4.3.8 + '@smithy/property-provider': 4.2.8 + '@smithy/types': 4.12.0 + '@smithy/url-parser': 4.2.8 tslib: 2.8.1 - '@smithy/eventstream-codec@4.2.7': + '@smithy/eventstream-codec@4.2.8': dependencies: '@aws-crypto/crc32': 5.2.0 - '@smithy/types': 4.11.0 + '@smithy/types': 4.12.0 '@smithy/util-hex-encoding': 4.2.0 tslib: 2.8.1 - '@smithy/eventstream-serde-browser@4.2.7': + '@smithy/eventstream-serde-browser@4.2.8': dependencies: - '@smithy/eventstream-serde-universal': 4.2.7 - '@smithy/types': 4.11.0 + '@smithy/eventstream-serde-universal': 4.2.8 + '@smithy/types': 4.12.0 tslib: 2.8.1 - '@smithy/eventstream-serde-config-resolver@4.3.7': + '@smithy/eventstream-serde-config-resolver@4.3.8': dependencies: - '@smithy/types': 4.11.0 + '@smithy/types': 4.12.0 tslib: 2.8.1 - '@smithy/eventstream-serde-node@4.2.7': + '@smithy/eventstream-serde-node@4.2.8': dependencies: - '@smithy/eventstream-serde-universal': 4.2.7 - '@smithy/types': 4.11.0 + '@smithy/eventstream-serde-universal': 4.2.8 + '@smithy/types': 4.12.0 tslib: 2.8.1 - '@smithy/eventstream-serde-universal@4.2.7': + '@smithy/eventstream-serde-universal@4.2.8': dependencies: - '@smithy/eventstream-codec': 4.2.7 - '@smithy/types': 4.11.0 + '@smithy/eventstream-codec': 4.2.8 + '@smithy/types': 4.12.0 tslib: 2.8.1 - '@smithy/fetch-http-handler@5.3.8': + '@smithy/fetch-http-handler@5.3.9': dependencies: - '@smithy/protocol-http': 5.3.7 - '@smithy/querystring-builder': 4.2.7 - '@smithy/types': 4.11.0 + '@smithy/protocol-http': 5.3.8 + '@smithy/querystring-builder': 4.2.8 + '@smithy/types': 4.12.0 '@smithy/util-base64': 4.3.0 tslib: 2.8.1 - '@smithy/hash-blob-browser@4.2.8': + '@smithy/hash-blob-browser@4.2.9': dependencies: '@smithy/chunked-blob-reader': 5.2.0 '@smithy/chunked-blob-reader-native': 4.2.1 - '@smithy/types': 4.11.0 + '@smithy/types': 4.12.0 tslib: 2.8.1 - '@smithy/hash-node@4.2.7': + '@smithy/hash-node@4.2.8': dependencies: - '@smithy/types': 4.11.0 + '@smithy/types': 4.12.0 '@smithy/util-buffer-from': 4.2.0 '@smithy/util-utf8': 4.2.0 tslib: 2.8.1 - '@smithy/hash-stream-node@4.2.7': + '@smithy/hash-stream-node@4.2.8': dependencies: - '@smithy/types': 4.11.0 + '@smithy/types': 4.12.0 '@smithy/util-utf8': 4.2.0 tslib: 2.8.1 - '@smithy/invalid-dependency@4.2.7': + '@smithy/invalid-dependency@4.2.8': dependencies: - '@smithy/types': 4.11.0 + '@smithy/types': 4.12.0 tslib: 2.8.1 '@smithy/is-array-buffer@2.2.0': @@ -10397,147 +10169,147 @@ snapshots: dependencies: tslib: 2.8.1 - '@smithy/md5-js@4.2.7': + '@smithy/md5-js@4.2.8': dependencies: - '@smithy/types': 4.11.0 + '@smithy/types': 4.12.0 '@smithy/util-utf8': 4.2.0 tslib: 2.8.1 - '@smithy/middleware-compression@4.3.16': + '@smithy/middleware-compression@4.3.31': dependencies: - '@smithy/core': 3.20.0 + '@smithy/core': 3.23.2 '@smithy/is-array-buffer': 4.2.0 - '@smithy/node-config-provider': 4.3.7 - '@smithy/protocol-http': 5.3.7 - '@smithy/types': 4.11.0 + '@smithy/node-config-provider': 4.3.8 + '@smithy/protocol-http': 5.3.8 + '@smithy/types': 4.12.0 '@smithy/util-config-provider': 4.2.0 - '@smithy/util-middleware': 4.2.7 + '@smithy/util-middleware': 4.2.8 '@smithy/util-utf8': 4.2.0 fflate: 0.8.1 tslib: 2.8.1 - '@smithy/middleware-content-length@4.2.7': + '@smithy/middleware-content-length@4.2.8': dependencies: - '@smithy/protocol-http': 5.3.7 - '@smithy/types': 4.11.0 + '@smithy/protocol-http': 5.3.8 + '@smithy/types': 4.12.0 tslib: 2.8.1 - '@smithy/middleware-endpoint@4.4.1': + '@smithy/middleware-endpoint@4.4.16': dependencies: - '@smithy/core': 3.20.0 - '@smithy/middleware-serde': 4.2.8 - '@smithy/node-config-provider': 4.3.7 - '@smithy/shared-ini-file-loader': 4.4.2 - '@smithy/types': 4.11.0 - '@smithy/url-parser': 4.2.7 - '@smithy/util-middleware': 4.2.7 + '@smithy/core': 3.23.2 + '@smithy/middleware-serde': 4.2.9 + '@smithy/node-config-provider': 4.3.8 + '@smithy/shared-ini-file-loader': 4.4.3 + '@smithy/types': 4.12.0 + '@smithy/url-parser': 4.2.8 + '@smithy/util-middleware': 4.2.8 tslib: 2.8.1 - '@smithy/middleware-retry@4.4.17': + '@smithy/middleware-retry@4.4.33': dependencies: - '@smithy/node-config-provider': 4.3.7 - '@smithy/protocol-http': 5.3.7 - '@smithy/service-error-classification': 4.2.7 - '@smithy/smithy-client': 4.10.2 - '@smithy/types': 4.11.0 - '@smithy/util-middleware': 4.2.7 - '@smithy/util-retry': 4.2.7 + '@smithy/node-config-provider': 4.3.8 + '@smithy/protocol-http': 5.3.8 + '@smithy/service-error-classification': 4.2.8 + '@smithy/smithy-client': 4.11.5 + '@smithy/types': 4.12.0 + '@smithy/util-middleware': 4.2.8 + '@smithy/util-retry': 4.2.8 '@smithy/uuid': 1.1.0 tslib: 2.8.1 - '@smithy/middleware-serde@4.2.8': + '@smithy/middleware-serde@4.2.9': dependencies: - '@smithy/protocol-http': 5.3.7 - '@smithy/types': 4.11.0 + '@smithy/protocol-http': 5.3.8 + '@smithy/types': 4.12.0 tslib: 2.8.1 - '@smithy/middleware-stack@4.2.7': + '@smithy/middleware-stack@4.2.8': dependencies: - '@smithy/types': 4.11.0 + '@smithy/types': 4.12.0 tslib: 2.8.1 - '@smithy/node-config-provider@4.3.7': + '@smithy/node-config-provider@4.3.8': dependencies: - '@smithy/property-provider': 4.2.7 - '@smithy/shared-ini-file-loader': 4.4.2 - '@smithy/types': 4.11.0 + '@smithy/property-provider': 4.2.8 + '@smithy/shared-ini-file-loader': 4.4.3 + '@smithy/types': 4.12.0 tslib: 2.8.1 - '@smithy/node-http-handler@4.4.7': + '@smithy/node-http-handler@4.4.10': dependencies: - '@smithy/abort-controller': 4.2.7 - '@smithy/protocol-http': 5.3.7 - '@smithy/querystring-builder': 4.2.7 - '@smithy/types': 4.11.0 + '@smithy/abort-controller': 4.2.8 + '@smithy/protocol-http': 5.3.8 + '@smithy/querystring-builder': 4.2.8 + '@smithy/types': 4.12.0 tslib: 2.8.1 - '@smithy/property-provider@4.2.7': + '@smithy/property-provider@4.2.8': dependencies: - '@smithy/types': 4.11.0 + '@smithy/types': 4.12.0 tslib: 2.8.1 - '@smithy/protocol-http@5.3.7': + '@smithy/protocol-http@5.3.8': dependencies: - '@smithy/types': 4.11.0 + '@smithy/types': 4.12.0 tslib: 2.8.1 - '@smithy/querystring-builder@4.2.7': + '@smithy/querystring-builder@4.2.8': dependencies: - '@smithy/types': 4.11.0 + '@smithy/types': 4.12.0 '@smithy/util-uri-escape': 4.2.0 tslib: 2.8.1 - '@smithy/querystring-parser@4.2.7': + '@smithy/querystring-parser@4.2.8': dependencies: - '@smithy/types': 4.11.0 + '@smithy/types': 4.12.0 tslib: 2.8.1 '@smithy/service-error-classification@2.1.5': dependencies: '@smithy/types': 2.12.0 - '@smithy/service-error-classification@4.2.7': + '@smithy/service-error-classification@4.2.8': dependencies: - '@smithy/types': 4.11.0 + '@smithy/types': 4.12.0 - '@smithy/shared-ini-file-loader@4.4.2': + '@smithy/shared-ini-file-loader@4.4.3': dependencies: - '@smithy/types': 4.11.0 + '@smithy/types': 4.12.0 tslib: 2.8.1 - '@smithy/signature-v4@5.3.7': + '@smithy/signature-v4@5.3.8': dependencies: '@smithy/is-array-buffer': 4.2.0 - '@smithy/protocol-http': 5.3.7 - '@smithy/types': 4.11.0 + '@smithy/protocol-http': 5.3.8 + '@smithy/types': 4.12.0 '@smithy/util-hex-encoding': 4.2.0 - '@smithy/util-middleware': 4.2.7 + '@smithy/util-middleware': 4.2.8 '@smithy/util-uri-escape': 4.2.0 '@smithy/util-utf8': 4.2.0 tslib: 2.8.1 - '@smithy/smithy-client@4.10.2': + '@smithy/smithy-client@4.11.5': dependencies: - '@smithy/core': 3.20.0 - '@smithy/middleware-endpoint': 4.4.1 - '@smithy/middleware-stack': 4.2.7 - '@smithy/protocol-http': 5.3.7 - '@smithy/types': 4.11.0 - '@smithy/util-stream': 4.5.8 + '@smithy/core': 3.23.2 + '@smithy/middleware-endpoint': 4.4.16 + '@smithy/middleware-stack': 4.2.8 + '@smithy/protocol-http': 5.3.8 + '@smithy/types': 4.12.0 + '@smithy/util-stream': 4.5.12 tslib: 2.8.1 '@smithy/types@2.12.0': dependencies: tslib: 2.8.1 - '@smithy/types@4.11.0': + '@smithy/types@4.12.0': dependencies: tslib: 2.8.1 - '@smithy/url-parser@4.2.7': + '@smithy/url-parser@4.2.8': dependencies: - '@smithy/querystring-parser': 4.2.7 - '@smithy/types': 4.11.0 + '@smithy/querystring-parser': 4.2.8 + '@smithy/types': 4.12.0 tslib: 2.8.1 '@smithy/util-base64@4.3.0': @@ -10568,49 +10340,49 @@ snapshots: dependencies: tslib: 2.8.1 - '@smithy/util-defaults-mode-browser@4.3.16': + '@smithy/util-defaults-mode-browser@4.3.32': dependencies: - '@smithy/property-provider': 4.2.7 - '@smithy/smithy-client': 4.10.2 - '@smithy/types': 4.11.0 + '@smithy/property-provider': 4.2.8 + '@smithy/smithy-client': 4.11.5 + '@smithy/types': 4.12.0 tslib: 2.8.1 - '@smithy/util-defaults-mode-node@4.2.19': + '@smithy/util-defaults-mode-node@4.2.35': dependencies: - '@smithy/config-resolver': 4.4.5 - '@smithy/credential-provider-imds': 4.2.7 - '@smithy/node-config-provider': 4.3.7 - '@smithy/property-provider': 4.2.7 - '@smithy/smithy-client': 4.10.2 - '@smithy/types': 4.11.0 + '@smithy/config-resolver': 4.4.6 + '@smithy/credential-provider-imds': 4.2.8 + '@smithy/node-config-provider': 4.3.8 + '@smithy/property-provider': 4.2.8 + '@smithy/smithy-client': 4.11.5 + '@smithy/types': 4.12.0 tslib: 2.8.1 - '@smithy/util-endpoints@3.2.7': + '@smithy/util-endpoints@3.2.8': dependencies: - '@smithy/node-config-provider': 4.3.7 - '@smithy/types': 4.11.0 + '@smithy/node-config-provider': 4.3.8 + '@smithy/types': 4.12.0 tslib: 2.8.1 '@smithy/util-hex-encoding@4.2.0': dependencies: tslib: 2.8.1 - '@smithy/util-middleware@4.2.7': + '@smithy/util-middleware@4.2.8': dependencies: - '@smithy/types': 4.11.0 + '@smithy/types': 4.12.0 tslib: 2.8.1 - '@smithy/util-retry@4.2.7': + '@smithy/util-retry@4.2.8': dependencies: - '@smithy/service-error-classification': 4.2.7 - '@smithy/types': 4.11.0 + '@smithy/service-error-classification': 4.2.8 + '@smithy/types': 4.12.0 tslib: 2.8.1 - '@smithy/util-stream@4.5.8': + '@smithy/util-stream@4.5.12': dependencies: - '@smithy/fetch-http-handler': 5.3.8 - '@smithy/node-http-handler': 4.4.7 - '@smithy/types': 4.11.0 + '@smithy/fetch-http-handler': 5.3.9 + '@smithy/node-http-handler': 4.4.10 + '@smithy/types': 4.12.0 '@smithy/util-base64': 4.3.0 '@smithy/util-buffer-from': 4.2.0 '@smithy/util-hex-encoding': 4.2.0 @@ -10631,18 +10403,16 @@ snapshots: '@smithy/util-buffer-from': 4.2.0 tslib: 2.8.1 - '@smithy/util-waiter@4.2.7': + '@smithy/util-waiter@4.2.8': dependencies: - '@smithy/abort-controller': 4.2.7 - '@smithy/types': 4.11.0 + '@smithy/abort-controller': 4.2.8 + '@smithy/types': 4.12.0 tslib: 2.8.1 '@smithy/uuid@1.1.0': dependencies: tslib: 2.8.1 - '@standard-schema/spec@1.0.0': {} - '@standard-schema/spec@1.1.0': {} '@tsconfig/node10@1.0.9': {} @@ -10662,7 +10432,7 @@ snapshots: '@types/cls-hooked@4.3.9': dependencies: - '@types/node': 25.0.3 + '@types/node': 25.3.0 '@types/dedent@0.7.0': {} @@ -10678,7 +10448,7 @@ snapshots: '@types/glob@7.1.3': dependencies: '@types/minimatch': 5.1.2 - '@types/node': 25.0.3 + '@types/node': 25.3.0 '@types/hast@3.0.4': dependencies: @@ -10727,10 +10497,6 @@ snapshots: dependencies: undici-types: 6.19.8 - '@types/node@25.0.3': - dependencies: - undici-types: 7.16.0 - '@types/node@25.3.0': dependencies: undici-types: 7.18.2 @@ -10840,12 +10606,12 @@ snapshots: '@ungap/structured-clone@1.3.0': {} - '@vitejs/plugin-vue@5.2.4(vite@5.4.19(@types/node@25.0.3))(vue@3.5.17(typescript@5.4.5))': + '@vitejs/plugin-vue@5.2.4(vite@5.4.19(@types/node@25.3.0))(vue@3.5.17(typescript@5.4.5))': dependencies: - vite: 5.4.19(@types/node@25.0.3) + vite: 5.4.19(@types/node@25.3.0) vue: 3.5.17(typescript@5.4.5) - '@vitest/coverage-v8@3.2.4(vitest@3.2.4(@types/node@25.0.3))': + '@vitest/coverage-v8@3.2.4(vitest@3.2.4(@types/node@25.3.0))': dependencies: '@ampproject/remapping': 2.3.0 '@bcoe/v8-coverage': 1.0.2 @@ -10860,7 +10626,7 @@ snapshots: std-env: 3.9.0 test-exclude: 7.0.1 tinyrainbow: 2.0.0 - vitest: 3.2.4(@types/node@25.0.3) + vitest: 3.2.4(@types/node@25.3.0) transitivePeerDependencies: - supports-color @@ -10872,13 +10638,13 @@ snapshots: chai: 5.2.0 tinyrainbow: 2.0.0 - '@vitest/mocker@3.2.4(vite@5.4.19(@types/node@25.0.3))': + '@vitest/mocker@3.2.4(vite@5.4.19(@types/node@25.3.0))': dependencies: '@vitest/spy': 3.2.4 estree-walker: 3.0.3 magic-string: 0.30.17 optionalDependencies: - vite: 5.4.19(@types/node@25.0.3) + vite: 5.4.19(@types/node@25.3.0) '@vitest/pretty-format@3.2.4': dependencies: @@ -11131,9 +10897,9 @@ snapshots: dependencies: possible-typed-array-names: 1.0.0 - aws-sdk-client-mock-vitest@6.2.1(@smithy/types@4.11.0)(aws-sdk-client-mock@4.1.0): + aws-sdk-client-mock-vitest@6.2.1(@smithy/types@4.12.0)(aws-sdk-client-mock@4.1.0): dependencies: - '@smithy/types': 4.11.0 + '@smithy/types': 4.12.0 '@vitest/expect': 3.2.4 aws-sdk-client-mock: 4.1.0 @@ -11145,7 +10911,7 @@ snapshots: aws-xray-sdk-core@3.12.0: dependencies: - '@aws-sdk/types': 3.956.0 + '@aws-sdk/types': 3.973.1 '@smithy/service-error-classification': 2.1.5 '@types/cls-hooked': 4.3.9 atomic-batcher: 1.0.2 @@ -11160,7 +10926,7 @@ snapshots: birpc@2.5.0: {} - bowser@2.13.1: {} + bowser@2.14.1: {} brace-expansion@1.1.11: dependencies: @@ -11244,6 +11010,8 @@ snapshots: emitter-listener: 1.1.2 semver: 5.7.2 + cluster-key-slot@1.1.2: {} + color-convert@2.0.1: dependencies: color-name: 1.1.4 @@ -11335,12 +11103,12 @@ snapshots: has-property-descriptors: 1.0.2 object-keys: 1.1.1 + denque@2.1.0: {} + dequal@2.0.3: {} detect-indent@6.1.0: {} - detect-libc@1.0.3: {} - detect-libc@2.0.4: optional: true @@ -11354,7 +11122,7 @@ snapshots: diff@4.0.2: {} - diff@5.2.0: {} + diff@5.2.2: {} dir-glob@3.0.1: dependencies: @@ -11378,11 +11146,6 @@ snapshots: eastasianwidth@0.2.0: {} - effect@3.16.4: - dependencies: - '@standard-schema/spec': 1.0.0 - fast-check: 3.23.2 - effect@4.0.0-beta.8: dependencies: '@standard-schema/spec': 1.1.0 @@ -11775,10 +11538,6 @@ snapshots: iconv-lite: 0.4.24 tmp: 0.0.33 - fast-check@3.23.2: - dependencies: - pure-rand: 6.1.0 - fast-check@4.5.3: dependencies: pure-rand: 7.0.1 @@ -11799,7 +11558,7 @@ snapshots: fast-levenshtein@2.0.6: {} - fast-xml-parser@5.2.5: + fast-xml-parser@5.3.6: dependencies: strnum: 2.1.2 @@ -11829,8 +11588,6 @@ snapshots: dependencies: to-regex-range: 5.0.1 - find-my-way-ts@0.1.5: {} - find-my-way-ts@0.1.6: {} find-up@4.1.0: @@ -12046,8 +11803,6 @@ snapshots: inherits@2.0.4: {} - ini@4.1.3: {} - ini@6.0.0: {} internal-slot@1.1.0: @@ -12065,6 +11820,20 @@ snapshots: dependencies: fp-ts: 2.16.9 + ioredis@5.9.3: + dependencies: + '@ioredis/commands': 1.5.0 + cluster-key-slot: 1.1.2 + debug: 4.4.3 + denque: 2.1.0 + lodash.defaults: 4.2.0 + lodash.isarguments: 3.1.0 + redis-errors: 1.2.0 + redis-parser: 3.0.0 + standard-as-callback: 2.1.0 + transitivePeerDependencies: + - supports-color + is-alphabetical@1.0.4: {} is-alphanumerical@1.0.4: @@ -12285,7 +12054,7 @@ snapshots: jest-util@29.7.0: dependencies: '@jest/types': 29.6.3 - '@types/node': 25.0.3 + '@types/node': 25.3.0 chalk: 4.1.2 ci-info: 3.9.0 graceful-fs: 4.2.11 @@ -12382,6 +12151,10 @@ snapshots: lodash._reinterpolate@3.0.0: {} + lodash.defaults@4.2.0: {} + + lodash.isarguments@3.1.0: {} + lodash.merge@4.6.2: {} lodash.startcase@4.4.0: {} @@ -12495,7 +12268,7 @@ snapshots: braces: 3.0.3 picomatch: 2.3.1 - mime@3.0.0: {} + mime@4.1.0: {} minimatch@3.1.2: dependencies: @@ -12545,16 +12318,10 @@ snapshots: '@msgpackr-extract/msgpackr-extract-win32-x64': 3.0.3 optional: true - msgpackr@1.11.4: - optionalDependencies: - msgpackr-extract: 3.0.3 - msgpackr@1.11.8: optionalDependencies: msgpackr-extract: 3.0.3 - multipasta@0.2.5: {} - multipasta@0.2.7: {} nanoid@3.3.11: {} @@ -12571,8 +12338,6 @@ snapshots: just-extend: 6.2.0 path-to-regexp: 8.3.0 - node-addon-api@7.1.1: {} - node-fetch@2.7.0: dependencies: whatwg-url: 5.0.0 @@ -12786,8 +12551,6 @@ snapshots: punycode@2.3.1: {} - pure-rand@6.1.0: {} - pure-rand@7.0.1: {} quansync@0.2.10: {} @@ -12832,6 +12595,12 @@ snapshots: string_decoder: 1.1.1 util-deprecate: 1.0.2 + redis-errors@1.2.0: {} + + redis-parser@3.0.0: + dependencies: + redis-errors: 1.2.0 + reflect.getprototypeof@1.0.10: dependencies: call-bind: 1.0.8 @@ -13032,7 +12801,7 @@ snapshots: '@sinonjs/commons': 3.0.1 '@sinonjs/fake-timers': 11.2.2 '@sinonjs/samsam': 8.0.3 - diff: 5.2.0 + diff: 5.2.2 nise: 6.1.1 supports-color: 7.2.0 @@ -13079,6 +12848,8 @@ snapshots: stackback@0.0.2: {} + standard-as-callback@2.1.0: {} + std-env@3.9.0: {} string-width@4.2.3: @@ -13217,14 +12988,14 @@ snapshots: optionalDependencies: typescript: 5.4.5 - ts-node@10.9.1(@types/node@25.0.3)(typescript@5.4.5): + ts-node@10.9.1(@types/node@25.3.0)(typescript@5.4.5): dependencies: '@cspotcode/source-map-support': 0.8.1 '@tsconfig/node10': 1.0.9 '@tsconfig/node12': 1.0.11 '@tsconfig/node14': 1.0.3 '@tsconfig/node16': 1.0.4 - '@types/node': 25.0.3 + '@types/node': 25.3.0 acorn: 8.14.0 acorn-walk: 8.3.2 arg: 4.1.3 @@ -13313,11 +13084,9 @@ snapshots: undici-types@6.19.8: {} - undici-types@7.16.0: {} - undici-types@7.18.2: {} - undici@7.10.0: {} + undici@7.22.0: {} unist-util-is@6.0.0: dependencies: @@ -13360,8 +13129,6 @@ snapshots: util-deprecate@1.0.2: {} - uuid@11.1.0: {} - uuid@13.0.0: {} v8-compile-cache-lib@3.0.1: {} @@ -13381,13 +13148,13 @@ snapshots: '@types/unist': 3.0.3 vfile-message: 4.0.2 - vite-node@3.2.4(@types/node@25.0.3): + vite-node@3.2.4(@types/node@25.3.0): dependencies: cac: 6.7.14 debug: 4.4.3 es-module-lexer: 1.7.0 pathe: 2.0.3 - vite: 5.4.19(@types/node@25.0.3) + vite: 5.4.19(@types/node@25.3.0) transitivePeerDependencies: - '@types/node' - less @@ -13399,26 +13166,26 @@ snapshots: - supports-color - terser - vite@5.4.19(@types/node@25.0.3): + vite@5.4.19(@types/node@25.3.0): dependencies: esbuild: 0.21.5 postcss: 8.5.6 rollup: 4.40.0 optionalDependencies: - '@types/node': 25.0.3 + '@types/node': 25.3.0 fsevents: 2.3.3 - vitepress-plugin-group-icons@1.6.1(markdown-it@14.1.0)(vite@5.4.19(@types/node@25.0.3)): + vitepress-plugin-group-icons@1.6.1(markdown-it@14.1.0)(vite@5.4.19(@types/node@25.3.0)): dependencies: '@iconify-json/logos': 1.2.4 '@iconify-json/vscode-icons': 1.2.23 '@iconify/utils': 2.3.0 markdown-it: 14.1.0 - vite: 5.4.19(@types/node@25.0.3) + vite: 5.4.19(@types/node@25.3.0) transitivePeerDependencies: - supports-color - vitepress@1.6.3(@algolia/client-search@5.33.0)(@types/node@25.0.3)(postcss@8.5.6)(search-insights@2.17.3)(typescript@5.4.5): + vitepress@1.6.3(@algolia/client-search@5.33.0)(@types/node@25.3.0)(postcss@8.5.6)(search-insights@2.17.3)(typescript@5.4.5): dependencies: '@docsearch/css': 3.8.2 '@docsearch/js': 3.8.2(@algolia/client-search@5.33.0)(search-insights@2.17.3) @@ -13427,7 +13194,7 @@ snapshots: '@shikijs/transformers': 2.5.0 '@shikijs/types': 2.5.0 '@types/markdown-it': 14.1.2 - '@vitejs/plugin-vue': 5.2.4(vite@5.4.19(@types/node@25.0.3))(vue@3.5.17(typescript@5.4.5)) + '@vitejs/plugin-vue': 5.2.4(vite@5.4.19(@types/node@25.3.0))(vue@3.5.17(typescript@5.4.5)) '@vue/devtools-api': 7.7.7 '@vue/shared': 3.5.17 '@vueuse/core': 12.8.2(typescript@5.4.5) @@ -13436,7 +13203,7 @@ snapshots: mark.js: 8.11.1 minisearch: 7.1.2 shiki: 2.5.0 - vite: 5.4.19(@types/node@25.0.3) + vite: 5.4.19(@types/node@25.3.0) vue: 3.5.17(typescript@5.4.5) optionalDependencies: postcss: 8.5.6 @@ -13467,17 +13234,17 @@ snapshots: - typescript - universal-cookie - vitest-mock-extended@3.1.0(typescript@5.4.5)(vitest@3.2.4(@types/node@25.0.3)): + vitest-mock-extended@3.1.0(typescript@5.4.5)(vitest@3.2.4(@types/node@25.3.0)): dependencies: ts-essentials: 10.0.4(typescript@5.4.5) typescript: 5.4.5 - vitest: 3.2.4(@types/node@25.0.3) + vitest: 3.2.4(@types/node@25.3.0) - vitest@3.2.4(@types/node@25.0.3): + vitest@3.2.4(@types/node@25.3.0): dependencies: '@types/chai': 5.2.3 '@vitest/expect': 3.2.4 - '@vitest/mocker': 3.2.4(vite@5.4.19(@types/node@25.0.3)) + '@vitest/mocker': 3.2.4(vite@5.4.19(@types/node@25.3.0)) '@vitest/pretty-format': 3.2.4 '@vitest/runner': 3.2.4 '@vitest/snapshot': 3.2.4 @@ -13495,11 +13262,11 @@ snapshots: tinyglobby: 0.2.15 tinypool: 1.1.1 tinyrainbow: 2.0.0 - vite: 5.4.19(@types/node@25.0.3) - vite-node: 3.2.4(@types/node@25.0.3) + vite: 5.4.19(@types/node@25.3.0) + vite-node: 3.2.4(@types/node@25.3.0) why-is-node-running: 2.3.0 optionalDependencies: - '@types/node': 25.0.3 + '@types/node': 25.3.0 transitivePeerDependencies: - less - lightningcss @@ -13591,16 +13358,12 @@ snapshots: string-width: 5.1.2 strip-ansi: 7.1.0 - ws@8.18.2: {} - ws@8.19.0: {} xtend@4.0.2: {} yallist@3.1.1: {} - yaml@2.7.0: {} - yaml@2.8.2: {} yn@3.1.1: {} diff --git a/scripts/codegen-cli.ts b/scripts/codegen-cli.ts index d0b29c69..efbf7bdc 100644 --- a/scripts/codegen-cli.ts +++ b/scripts/codegen-cli.ts @@ -6,11 +6,11 @@ * 3. Run `Run pnpm run eslint --fix` to fix the formatting. * 4. Commit the changes and enjoy. */ -import { Prompt } from "@effect/cli"; -import { FileSystem } from "@effect/platform"; -import { NodeContext, NodeHttpClient, NodeRuntime } from "@effect/platform-node"; -import { Array, Effect, Option, Record, String } from "effect"; +import { NodeRuntime, NodeServices } from "@effect/platform-node"; +import { Array, Effect, FileSystem, Option, Record, String } from "effect"; import { pipe } from "effect/Function"; +import { Prompt } from "effect/unstable/cli"; +import { FetchHttpClient } from "effect/unstable/http"; import singularities from "./client-singularities.js"; import { generateClient } from "./generate-client.js"; import { fetchSdkManifest } from "./manifest.js"; @@ -66,6 +66,6 @@ const cli = Effect.gen(function*() { }); NodeRuntime.runMain(cli.pipe( - Effect.provide(NodeContext.layer), - Effect.provide(NodeHttpClient.layer), + Effect.provide(NodeServices.layer), + Effect.provide(FetchHttpClient.layer), )); diff --git a/scripts/generate-client.ts b/scripts/generate-client.ts index 511c5876..f87f67b9 100644 --- a/scripts/generate-client.ts +++ b/scripts/generate-client.ts @@ -165,16 +165,16 @@ async function generateClientInstanceFile( * @since 1.0.0 */ import { ${sdkName}Client } from "@aws-sdk/client-${originalServiceName}"; -import { Context, Effect, Layer } from "effect"; +import { ServiceMap, Effect, Layer } from "effect"; import * as ${sdkName}ServiceConfig from "./${sdkName}ServiceConfig.js"; /** * @since 1.0.0 * @category tags */ -export class ${sdkName}ClientInstance extends Context.Tag( +export class ${sdkName}ClientInstance extends ServiceMap.Service<${sdkName}ClientInstance, ${sdkName}Client>()( "@effect-aws/client-${serviceName}/${sdkName}ClientInstance", -)<${sdkName}ClientInstance, ${sdkName}Client>() {} +) {} /** * @since 1.0.0 @@ -193,7 +193,7 @@ export const make = Effect.flatMap( * @since 1.0.0 * @category layers */ -export const layer = Layer.scoped(${sdkName}ClientInstance, make); +export const layer = Layer.effect(${sdkName}ClientInstance, make); `, ); } @@ -211,18 +211,17 @@ async function generateServiceConfigFile( */ import type { ${sdkName}ClientConfig } from "@aws-sdk/client-${originalServiceName}"; import { ServiceLogger } from "@effect-aws/commons"; -import { Effect, FiberRef, Layer } from "effect"; +import { Effect, ServiceMap, Layer } from "effect"; import { dual } from "effect/Function"; -import { globalValue } from "effect/GlobalValue"; import type { ${sdkName}Service } from "./${sdkName}Service.js"; /** * @since 1.0.0 * @category ${serviceName} service config */ -const current${sdkName}ServiceConfig = globalValue( +const current${sdkName}ServiceConfig = ServiceMap.Reference<${sdkName}Service.Config>( "@effect-aws/client-${serviceName}/current${sdkName}ServiceConfig", - () => FiberRef.unsafeMake<${sdkName}Service.Config>({}), + { defaultValue: () => ({}) }, ); /** @@ -235,7 +234,7 @@ export const with${sdkName}ServiceConfig: { } = dual( 2, (effect: Effect.Effect, config: ${sdkName}Service.Config): Effect.Effect => - Effect.locally(effect, current${sdkName}ServiceConfig, config), + Effect.provideService(effect, current${sdkName}ServiceConfig, config), ); /** @@ -243,14 +242,14 @@ export const with${sdkName}ServiceConfig: { * @category ${serviceName} service config */ export const set${sdkName}ServiceConfig = (config: ${sdkName}Service.Config) => - Layer.locallyScoped(current${sdkName}ServiceConfig, config); + Layer.succeed(current${sdkName}ServiceConfig, config); /** * @since 1.0.0 * @category adapters */ export const to${sdkName}ClientConfig: Effect.Effect<${sdkName}ClientConfig> = Effect.gen(function*() { - const { logger: serviceLogger, ...config } = yield* FiberRef.get(current${sdkName}ServiceConfig); + const { logger: serviceLogger, ...config } = yield* current${sdkName}ServiceConfig; const logger = serviceLogger === true ? yield* ServiceLogger.toClientLogger(ServiceLogger.defaultServiceLogger) @@ -339,7 +338,7 @@ async function generateServiceFile( Record.filter( (shape): shape is Extract => shape.type === "operation", ), - Struct.pick(...operationTargets), + Struct.pick(operationTargets), Record.filter(Predicate.isNotUndefined), Record.mapKeys(getNameFromTarget), Record.toEntries, @@ -349,7 +348,7 @@ async function generateServiceFile( const importedErrors = pipe( operationShapes, - Array.map(Tuple.getSecond), + Array.map(Tuple.get(1)), Array.filter( (shape): shape is Extract => shape.type === "operation", ), @@ -384,7 +383,7 @@ import { import type { HttpHandlerOptions, ServiceLogger } from "@effect-aws/commons"; import { Service } from "@effect-aws/commons"; import type { Cause } from "effect"; -import { Effect, Layer } from "effect"; +import { Effect, Layer, ServiceMap } from "effect"; import * as Instance from "./${sdkName}ClientInstance.js"; import * as ${sdkName}ServiceConfig from "./${sdkName}ServiceConfig.js"; ${ @@ -449,7 +448,7 @@ ${ ${operationName}CommandOutput, ${ pipe( - ["Cause.TimeoutException", "SdkError", ...(exportedErrors.length ? errors : [`${sdkName}ServiceError`])], + ["Cause.TimeoutError", "SdkError", ...(exportedErrors.length ? errors : [`${sdkName}ServiceError`])], Array.join(" | "), ) } @@ -481,10 +480,10 @@ export const make${sdkName}Service = Effect.gen(function* () { * @since 1.0.0 * @category models */ -export class ${sdkName}Service extends Effect.Tag("@effect-aws/client-${serviceName}/${sdkName}Service")< +export class ${sdkName}Service extends ServiceMap.Service< ${sdkName}Service, ${sdkName}Service$ ->() { +>()("@effect-aws/client-${serviceName}/${sdkName}Service") { static readonly defaultLayer = Layer.effect(this, make${sdkName}Service).pipe(Layer.provide(Instance.layer)); static readonly layer = (config: ${sdkName}Service.Config) => Layer.effect(this, make${sdkName}Service).pipe( @@ -566,7 +565,7 @@ describe("${sdkName}ClientImpl", () => { : `const args = {} as unknown as ${commandToTest}CommandInput` } - const program = ${sdkName}.${String.uncapitalize(commandToTest)}(args); + const program = ${sdkName}.use((svc) => svc.${String.uncapitalize(commandToTest)}(args)); const result = await pipe( program, @@ -590,7 +589,7 @@ describe("${sdkName}ClientImpl", () => { : `const args = {} as unknown as ${commandToTest}CommandInput` } - const program = ${sdkName}.${String.uncapitalize(commandToTest)}(args); + const program = ${sdkName}.use((svc) => svc.${String.uncapitalize(commandToTest)}(args)); const result = await pipe( program, @@ -617,7 +616,7 @@ describe("${sdkName}ClientImpl", () => { : `const args = {} as unknown as ${commandToTest}CommandInput` } - const program = ${sdkName}.${String.uncapitalize(commandToTest)}(args); + const program = ${sdkName}.use((svc) => svc.${String.uncapitalize(commandToTest)}(args)); const result = await pipe( program, @@ -645,7 +644,7 @@ describe("${sdkName}ClientImpl", () => { : `const args = {} as unknown as ${commandToTest}CommandInput` } - const program = ${sdkName}.${String.uncapitalize(commandToTest)}(args); + const program = ${sdkName}.use((svc) => svc.${String.uncapitalize(commandToTest)}(args)); const result = await pipe( program, @@ -677,7 +676,7 @@ describe("${sdkName}ClientImpl", () => { : `const args = {} as unknown as ${commandToTest}CommandInput` } - const program = ${sdkName}.${String.uncapitalize(commandToTest)}(args); + const program = ${sdkName}.use((svc) => svc.${String.uncapitalize(commandToTest)}(args)); const result = await pipe( program, @@ -687,7 +686,7 @@ describe("${sdkName}ClientImpl", () => { expect(result).toEqual( Exit.fail( - SdkError({ + new SdkError({ ...new Error("test"), name: "SdkError", message: "test", @@ -716,7 +715,7 @@ describe("${sdkName}ClientImpl", () => { : `const args = {} as unknown as ${commandToTest}CommandInput` } - const program = ${sdkName}.${String.uncapitalize(commandToTest)}(args).pipe( + const program = ${sdkName}.use((svc) => svc.${String.uncapitalize(commandToTest)}(args)).pipe( Effect.catchTag("NotHandledException" as any, () => Effect.succeed(null)), ); @@ -726,9 +725,9 @@ describe("${sdkName}ClientImpl", () => { Effect.runPromiseExit, ); - expect(result).toEqual( + expect(result).toContainEqual( Exit.fail( - SdkError({ + new SdkError({ ...new Error("test"), name: "SdkError", message: "test", @@ -765,7 +764,7 @@ With default ${sdkName}Client instance: \`\`\`typescript import { ${sdkName} } from "@effect-aws/client-${serviceName}"; -const program = ${sdkName}.${String.uncapitalize(commandToTest)}(args); +const program = ${sdkName}.use((svc) => svc.${String.uncapitalize(commandToTest)}(args)); const result = pipe( program, @@ -779,7 +778,7 @@ With custom ${sdkName}Client instance: \`\`\`typescript import { ${sdkName} } from "@effect-aws/client-${serviceName}"; -const program = ${sdkName}.${String.uncapitalize(commandToTest)}(args); +const program = ${sdkName}.use((svc) => svc.${String.uncapitalize(commandToTest)}(args)); const result = await pipe( program, @@ -795,7 +794,7 @@ With custom ${sdkName}Client configuration: \`\`\`typescript import { ${sdkName} } from "@effect-aws/client-${serviceName}"; -const program = ${sdkName}.${String.uncapitalize(commandToTest)}(args); +const program = ${sdkName}.use((svc) => svc.${String.uncapitalize(commandToTest)}(args)); const result = await pipe( program, diff --git a/scripts/manifest.ts b/scripts/manifest.ts index d7e9370c..f4ee6f60 100644 --- a/scripts/manifest.ts +++ b/scripts/manifest.ts @@ -1,5 +1,5 @@ -import { HttpClient, HttpClientResponse } from "@effect/platform"; import { Effect, Schema } from "effect"; +import { HttpClient, HttpClientResponse } from "effect/unstable/http"; const OperationShape = Schema.Struct({ type: Schema.Literal("operation"), @@ -30,7 +30,7 @@ const MapShape = Schema.Struct({ type: Schema.Literal("map") }); const DocumentShape = Schema.Struct({ type: Schema.Literal("document") }); const UnionShape = Schema.Struct({ type: Schema.Literal("union") }); -const Shape = Schema.Union( +const Shape = Schema.Union([ OperationShape, ServiceShape, BooleanShape, @@ -48,11 +48,11 @@ const Shape = Schema.Union( MapShape, DocumentShape, UnionShape, -); +]); export type Shape = Schema.Schema.Type; export class Manifest extends Schema.Class("Manifest")({ - shapes: Schema.Record({ key: Schema.String, value: Shape }), + shapes: Schema.Record(Schema.String, Shape), }) {} export const fetchSdkManifest = (awsServiceName: string) => From dfc23c10aaf22412706d4ecb908d4055d87f46f9 Mon Sep 17 00:00:00 2001 From: Victor Korzunin <5180700+floydspace@users.noreply.github.com> Date: Sun, 22 Feb 2026 22:25:30 +0100 Subject: [PATCH 5/7] chore: remove cjs distro --- packages/client-account/.gitattributes | 1 - packages/client-account/.gitignore | 1 - packages/client-account/.npmignore | 1 - packages/client-account/.projen/files.json | 1 - packages/client-account/.projen/tasks.json | 2 +- packages/client-account/tsconfig.cjs.json | 15 --------------- .../.gitattributes | 1 - .../.gitignore | 1 - .../.npmignore | 1 - .../.projen/files.json | 1 - .../.projen/tasks.json | 2 +- .../tsconfig.cjs.json | 15 --------------- packages/client-api-gateway-v2/.gitattributes | 1 - packages/client-api-gateway-v2/.gitignore | 1 - packages/client-api-gateway-v2/.npmignore | 1 - .../client-api-gateway-v2/.projen/files.json | 1 - .../client-api-gateway-v2/.projen/tasks.json | 2 +- .../client-api-gateway-v2/tsconfig.cjs.json | 15 --------------- packages/client-api-gateway/.gitattributes | 1 - packages/client-api-gateway/.gitignore | 1 - packages/client-api-gateway/.npmignore | 1 - packages/client-api-gateway/.projen/files.json | 1 - packages/client-api-gateway/.projen/tasks.json | 2 +- packages/client-api-gateway/tsconfig.cjs.json | 15 --------------- packages/client-athena/.gitattributes | 1 - packages/client-athena/.gitignore | 1 - packages/client-athena/.npmignore | 1 - packages/client-athena/.projen/files.json | 1 - packages/client-athena/.projen/tasks.json | 2 +- packages/client-athena/tsconfig.cjs.json | 15 --------------- packages/client-auto-scaling/.gitattributes | 1 - packages/client-auto-scaling/.gitignore | 1 - packages/client-auto-scaling/.npmignore | 1 - .../client-auto-scaling/.projen/files.json | 1 - .../client-auto-scaling/.projen/tasks.json | 2 +- packages/client-auto-scaling/tsconfig.cjs.json | 15 --------------- packages/client-bedrock-runtime/.gitattributes | 1 - packages/client-bedrock-runtime/.gitignore | 1 - packages/client-bedrock-runtime/.npmignore | 1 - .../client-bedrock-runtime/.projen/files.json | 1 - .../client-bedrock-runtime/.projen/tasks.json | 2 +- .../client-bedrock-runtime/tsconfig.cjs.json | 15 --------------- packages/client-bedrock/.gitattributes | 1 - packages/client-bedrock/.gitignore | 1 - packages/client-bedrock/.npmignore | 1 - packages/client-bedrock/.projen/files.json | 1 - packages/client-bedrock/.projen/tasks.json | 2 +- packages/client-bedrock/tsconfig.cjs.json | 15 --------------- packages/client-cloudformation/.gitattributes | 1 - packages/client-cloudformation/.gitignore | 1 - packages/client-cloudformation/.npmignore | 1 - .../client-cloudformation/.projen/files.json | 1 - .../client-cloudformation/.projen/tasks.json | 2 +- .../client-cloudformation/tsconfig.cjs.json | 15 --------------- packages/client-cloudsearch/.gitattributes | 1 - packages/client-cloudsearch/.gitignore | 1 - packages/client-cloudsearch/.npmignore | 1 - packages/client-cloudsearch/.projen/files.json | 1 - packages/client-cloudsearch/.projen/tasks.json | 2 +- packages/client-cloudsearch/tsconfig.cjs.json | 15 --------------- packages/client-cloudtrail/.gitattributes | 1 - packages/client-cloudtrail/.gitignore | 1 - packages/client-cloudtrail/.npmignore | 1 - packages/client-cloudtrail/.projen/files.json | 1 - packages/client-cloudtrail/.projen/tasks.json | 2 +- packages/client-cloudtrail/tsconfig.cjs.json | 15 --------------- .../client-cloudwatch-events/.gitattributes | 1 - packages/client-cloudwatch-events/.gitignore | 1 - packages/client-cloudwatch-events/.npmignore | 1 - .../.projen/files.json | 1 - .../.projen/tasks.json | 2 +- .../client-cloudwatch-events/tsconfig.cjs.json | 15 --------------- packages/client-cloudwatch-logs/.gitattributes | 1 - packages/client-cloudwatch-logs/.gitignore | 1 - packages/client-cloudwatch-logs/.npmignore | 1 - .../client-cloudwatch-logs/.projen/files.json | 1 - .../client-cloudwatch-logs/.projen/tasks.json | 2 +- .../client-cloudwatch-logs/tsconfig.cjs.json | 15 --------------- packages/client-cloudwatch/.gitattributes | 1 - packages/client-cloudwatch/.gitignore | 1 - packages/client-cloudwatch/.npmignore | 1 - packages/client-cloudwatch/.projen/files.json | 1 - packages/client-cloudwatch/.projen/tasks.json | 2 +- packages/client-cloudwatch/tsconfig.cjs.json | 15 --------------- packages/client-codedeploy/.gitattributes | 1 - packages/client-codedeploy/.gitignore | 1 - packages/client-codedeploy/.npmignore | 1 - packages/client-codedeploy/.projen/files.json | 1 - packages/client-codedeploy/.projen/tasks.json | 2 +- packages/client-codedeploy/tsconfig.cjs.json | 15 --------------- .../.gitattributes | 1 - .../.gitignore | 1 - .../.npmignore | 1 - .../.projen/files.json | 1 - .../.projen/tasks.json | 2 +- .../tsconfig.cjs.json | 15 --------------- packages/client-data-pipeline/.gitattributes | 1 - packages/client-data-pipeline/.gitignore | 1 - packages/client-data-pipeline/.npmignore | 1 - .../client-data-pipeline/.projen/files.json | 1 - .../client-data-pipeline/.projen/tasks.json | 2 +- .../client-data-pipeline/tsconfig.cjs.json | 15 --------------- packages/client-dsql/.gitattributes | 1 - packages/client-dsql/.gitignore | 1 - packages/client-dsql/.npmignore | 1 - packages/client-dsql/.projen/files.json | 1 - packages/client-dsql/.projen/tasks.json | 2 +- packages/client-dsql/tsconfig.cjs.json | 15 --------------- packages/client-dynamodb/.gitattributes | 1 - packages/client-dynamodb/.gitignore | 1 - packages/client-dynamodb/.npmignore | 1 - packages/client-dynamodb/.projen/files.json | 1 - packages/client-dynamodb/.projen/tasks.json | 2 +- packages/client-dynamodb/tsconfig.cjs.json | 15 --------------- packages/client-ec2/.gitattributes | 1 - packages/client-ec2/.gitignore | 1 - packages/client-ec2/.npmignore | 1 - packages/client-ec2/.projen/files.json | 1 - packages/client-ec2/.projen/tasks.json | 2 +- packages/client-ec2/tsconfig.cjs.json | 15 --------------- packages/client-ecr/.gitattributes | 1 - packages/client-ecr/.gitignore | 1 - packages/client-ecr/.npmignore | 1 - packages/client-ecr/.projen/files.json | 1 - packages/client-ecr/.projen/tasks.json | 2 +- packages/client-ecr/tsconfig.cjs.json | 15 --------------- packages/client-ecs/.gitattributes | 1 - packages/client-ecs/.gitignore | 1 - packages/client-ecs/.npmignore | 1 - packages/client-ecs/.projen/files.json | 1 - packages/client-ecs/.projen/tasks.json | 2 +- packages/client-ecs/tsconfig.cjs.json | 15 --------------- packages/client-elasticache/.gitattributes | 1 - packages/client-elasticache/.gitignore | 1 - packages/client-elasticache/.npmignore | 1 - packages/client-elasticache/.projen/files.json | 1 - packages/client-elasticache/.projen/tasks.json | 2 +- packages/client-elasticache/tsconfig.cjs.json | 15 --------------- packages/client-eventbridge/.gitattributes | 1 - packages/client-eventbridge/.gitignore | 1 - packages/client-eventbridge/.npmignore | 1 - packages/client-eventbridge/.projen/files.json | 1 - packages/client-eventbridge/.projen/tasks.json | 2 +- packages/client-eventbridge/tsconfig.cjs.json | 15 --------------- packages/client-firehose/.gitattributes | 1 - packages/client-firehose/.gitignore | 1 - packages/client-firehose/.npmignore | 1 - packages/client-firehose/.projen/files.json | 1 - packages/client-firehose/.projen/tasks.json | 2 +- packages/client-firehose/tsconfig.cjs.json | 15 --------------- packages/client-glue/.gitattributes | 1 - packages/client-glue/.gitignore | 1 - packages/client-glue/.npmignore | 1 - packages/client-glue/.projen/files.json | 1 - packages/client-glue/.projen/tasks.json | 2 +- packages/client-glue/tsconfig.cjs.json | 15 --------------- packages/client-iam/.gitattributes | 1 - packages/client-iam/.gitignore | 1 - packages/client-iam/.npmignore | 1 - packages/client-iam/.projen/files.json | 1 - packages/client-iam/.projen/tasks.json | 2 +- packages/client-iam/tsconfig.cjs.json | 15 --------------- packages/client-iot-data-plane/.gitattributes | 1 - packages/client-iot-data-plane/.gitignore | 1 - packages/client-iot-data-plane/.npmignore | 1 - .../client-iot-data-plane/.projen/files.json | 1 - .../client-iot-data-plane/.projen/tasks.json | 2 +- .../client-iot-data-plane/tsconfig.cjs.json | 15 --------------- packages/client-iot-events-data/.gitattributes | 1 - packages/client-iot-events-data/.gitignore | 1 - packages/client-iot-events-data/.npmignore | 1 - .../client-iot-events-data/.projen/files.json | 1 - .../client-iot-events-data/.projen/tasks.json | 2 +- .../client-iot-events-data/tsconfig.cjs.json | 15 --------------- packages/client-iot-events/.gitattributes | 1 - packages/client-iot-events/.gitignore | 1 - packages/client-iot-events/.npmignore | 1 - packages/client-iot-events/.projen/files.json | 1 - packages/client-iot-events/.projen/tasks.json | 2 +- packages/client-iot-events/tsconfig.cjs.json | 15 --------------- .../client-iot-jobs-data-plane/.gitattributes | 1 - packages/client-iot-jobs-data-plane/.gitignore | 1 - packages/client-iot-jobs-data-plane/.npmignore | 1 - .../.projen/files.json | 1 - .../.projen/tasks.json | 2 +- .../tsconfig.cjs.json | 15 --------------- packages/client-iot-wireless/.gitattributes | 1 - packages/client-iot-wireless/.gitignore | 1 - packages/client-iot-wireless/.npmignore | 1 - .../client-iot-wireless/.projen/files.json | 1 - .../client-iot-wireless/.projen/tasks.json | 2 +- packages/client-iot-wireless/tsconfig.cjs.json | 15 --------------- packages/client-iot/.gitattributes | 1 - packages/client-iot/.gitignore | 1 - packages/client-iot/.npmignore | 1 - packages/client-iot/.projen/files.json | 1 - packages/client-iot/.projen/tasks.json | 2 +- packages/client-iot/tsconfig.cjs.json | 15 --------------- packages/client-ivs/.gitattributes | 1 - packages/client-ivs/.gitignore | 1 - packages/client-ivs/.npmignore | 1 - packages/client-ivs/.projen/files.json | 1 - packages/client-ivs/.projen/tasks.json | 2 +- packages/client-ivs/tsconfig.cjs.json | 15 --------------- packages/client-kafka/.gitattributes | 1 - packages/client-kafka/.gitignore | 1 - packages/client-kafka/.npmignore | 1 - packages/client-kafka/.projen/files.json | 1 - packages/client-kafka/.projen/tasks.json | 2 +- packages/client-kafka/tsconfig.cjs.json | 15 --------------- packages/client-kafkaconnect/.gitattributes | 1 - packages/client-kafkaconnect/.gitignore | 1 - packages/client-kafkaconnect/.npmignore | 1 - .../client-kafkaconnect/.projen/files.json | 1 - .../client-kafkaconnect/.projen/tasks.json | 2 +- packages/client-kafkaconnect/tsconfig.cjs.json | 15 --------------- packages/client-kinesis/.gitattributes | 1 - packages/client-kinesis/.gitignore | 1 - packages/client-kinesis/.npmignore | 1 - packages/client-kinesis/.projen/files.json | 1 - packages/client-kinesis/.projen/tasks.json | 2 +- packages/client-kinesis/tsconfig.cjs.json | 15 --------------- packages/client-kms/.gitattributes | 1 - packages/client-kms/.gitignore | 1 - packages/client-kms/.npmignore | 1 - packages/client-kms/.projen/files.json | 1 - packages/client-kms/.projen/tasks.json | 2 +- packages/client-kms/tsconfig.cjs.json | 15 --------------- packages/client-lambda/.gitattributes | 1 - packages/client-lambda/.gitignore | 1 - packages/client-lambda/.npmignore | 1 - packages/client-lambda/.projen/files.json | 1 - packages/client-lambda/.projen/tasks.json | 2 +- packages/client-lambda/tsconfig.cjs.json | 15 --------------- packages/client-mq/.gitattributes | 1 - packages/client-mq/.gitignore | 1 - packages/client-mq/.npmignore | 1 - packages/client-mq/.projen/files.json | 1 - packages/client-mq/.projen/tasks.json | 2 +- packages/client-mq/tsconfig.cjs.json | 15 --------------- .../.gitattributes | 1 - .../client-opensearch-serverless/.gitignore | 1 - .../client-opensearch-serverless/.npmignore | 1 - .../.projen/files.json | 1 - .../.projen/tasks.json | 2 +- .../tsconfig.cjs.json | 15 --------------- packages/client-opensearch/.gitattributes | 1 - packages/client-opensearch/.gitignore | 1 - packages/client-opensearch/.npmignore | 1 - packages/client-opensearch/.projen/files.json | 1 - packages/client-opensearch/.projen/tasks.json | 2 +- packages/client-opensearch/tsconfig.cjs.json | 15 --------------- packages/client-organizations/.gitattributes | 1 - packages/client-organizations/.gitignore | 1 - packages/client-organizations/.npmignore | 1 - .../client-organizations/.projen/files.json | 1 - .../client-organizations/.projen/tasks.json | 2 +- .../client-organizations/tsconfig.cjs.json | 15 --------------- packages/client-rds/.gitattributes | 1 - packages/client-rds/.gitignore | 1 - packages/client-rds/.npmignore | 1 - packages/client-rds/.projen/files.json | 1 - packages/client-rds/.projen/tasks.json | 2 +- packages/client-rds/tsconfig.cjs.json | 15 --------------- packages/client-s3/.gitattributes | 1 - packages/client-s3/.gitignore | 1 - packages/client-s3/.npmignore | 1 - packages/client-s3/.projen/files.json | 1 - packages/client-s3/.projen/tasks.json | 2 +- packages/client-s3/tsconfig.cjs.json | 15 --------------- packages/client-scheduler/.gitattributes | 1 - packages/client-scheduler/.gitignore | 1 - packages/client-scheduler/.npmignore | 1 - packages/client-scheduler/.projen/files.json | 1 - packages/client-scheduler/.projen/tasks.json | 2 +- packages/client-scheduler/tsconfig.cjs.json | 15 --------------- packages/client-secrets-manager/.gitattributes | 1 - packages/client-secrets-manager/.gitignore | 1 - packages/client-secrets-manager/.npmignore | 1 - .../client-secrets-manager/.projen/files.json | 1 - .../client-secrets-manager/.projen/tasks.json | 2 +- .../client-secrets-manager/tsconfig.cjs.json | 15 --------------- packages/client-ses/.gitattributes | 1 - packages/client-ses/.gitignore | 1 - packages/client-ses/.npmignore | 1 - packages/client-ses/.projen/files.json | 1 - packages/client-ses/.projen/tasks.json | 2 +- packages/client-ses/tsconfig.cjs.json | 15 --------------- packages/client-sfn/.gitattributes | 1 - packages/client-sfn/.gitignore | 1 - packages/client-sfn/.npmignore | 1 - packages/client-sfn/.projen/files.json | 1 - packages/client-sfn/.projen/tasks.json | 2 +- packages/client-sfn/tsconfig.cjs.json | 15 --------------- packages/client-sns/.gitattributes | 1 - packages/client-sns/.gitignore | 1 - packages/client-sns/.npmignore | 1 - packages/client-sns/.projen/files.json | 1 - packages/client-sns/.projen/tasks.json | 2 +- packages/client-sns/tsconfig.cjs.json | 15 --------------- packages/client-sqs/.gitattributes | 1 - packages/client-sqs/.gitignore | 1 - packages/client-sqs/.npmignore | 1 - packages/client-sqs/.projen/files.json | 1 - packages/client-sqs/.projen/tasks.json | 2 +- packages/client-sqs/tsconfig.cjs.json | 15 --------------- packages/client-ssm/.gitattributes | 1 - packages/client-ssm/.gitignore | 1 - packages/client-ssm/.npmignore | 1 - packages/client-ssm/.projen/files.json | 1 - packages/client-ssm/.projen/tasks.json | 2 +- packages/client-ssm/tsconfig.cjs.json | 15 --------------- packages/client-sts/.gitattributes | 1 - packages/client-sts/.gitignore | 1 - packages/client-sts/.npmignore | 1 - packages/client-sts/.projen/files.json | 1 - packages/client-sts/.projen/tasks.json | 2 +- packages/client-sts/tsconfig.cjs.json | 15 --------------- packages/client-textract/.gitattributes | 1 - packages/client-textract/.gitignore | 1 - packages/client-textract/.npmignore | 1 - packages/client-textract/.projen/files.json | 1 - packages/client-textract/.projen/tasks.json | 2 +- packages/client-textract/tsconfig.cjs.json | 15 --------------- .../client-timestream-influxdb/.gitattributes | 1 - packages/client-timestream-influxdb/.gitignore | 1 - packages/client-timestream-influxdb/.npmignore | 1 - .../.projen/files.json | 1 - .../.projen/tasks.json | 2 +- .../tsconfig.cjs.json | 15 --------------- .../client-timestream-query/.gitattributes | 1 - packages/client-timestream-query/.gitignore | 1 - packages/client-timestream-query/.npmignore | 1 - .../client-timestream-query/.projen/files.json | 1 - .../client-timestream-query/.projen/tasks.json | 2 +- .../client-timestream-query/tsconfig.cjs.json | 15 --------------- .../client-timestream-write/.gitattributes | 1 - packages/client-timestream-write/.gitignore | 1 - packages/client-timestream-write/.npmignore | 1 - .../client-timestream-write/.projen/files.json | 1 - .../client-timestream-write/.projen/tasks.json | 2 +- .../client-timestream-write/tsconfig.cjs.json | 15 --------------- packages/commons/.gitattributes | 1 - packages/commons/.gitignore | 1 - packages/commons/.npmignore | 1 - packages/commons/.projen/files.json | 1 - packages/commons/.projen/tasks.json | 2 +- packages/commons/tsconfig.cjs.json | 10 ---------- packages/dsql/.gitattributes | 1 - packages/dsql/.gitignore | 1 - packages/dsql/.npmignore | 1 - packages/dsql/.projen/files.json | 1 - packages/dsql/.projen/tasks.json | 2 +- packages/dsql/tsconfig.cjs.json | 10 ---------- packages/dynamodb/.gitattributes | 1 - packages/dynamodb/.gitignore | 1 - packages/dynamodb/.npmignore | 1 - packages/dynamodb/.projen/files.json | 1 - packages/dynamodb/.projen/tasks.json | 2 +- packages/dynamodb/tsconfig.cjs.json | 18 ------------------ packages/http-handler/.gitattributes | 1 - packages/http-handler/.gitignore | 1 - packages/http-handler/.npmignore | 1 - packages/http-handler/.projen/files.json | 1 - packages/http-handler/.projen/tasks.json | 2 +- packages/http-handler/tsconfig.cjs.json | 15 --------------- packages/lambda/.gitattributes | 1 - packages/lambda/.gitignore | 1 - packages/lambda/.npmignore | 1 - packages/lambda/.projen/files.json | 1 - packages/lambda/.projen/tasks.json | 2 +- packages/lambda/tsconfig.cjs.json | 10 ---------- packages/powertools-logger/.gitattributes | 1 - packages/powertools-logger/.gitignore | 1 - packages/powertools-logger/.npmignore | 1 - packages/powertools-logger/.projen/files.json | 1 - packages/powertools-logger/.projen/tasks.json | 2 +- packages/powertools-logger/tsconfig.cjs.json | 10 ---------- packages/powertools-tracer/.gitattributes | 1 - packages/powertools-tracer/.gitignore | 1 - packages/powertools-tracer/.npmignore | 1 - packages/powertools-tracer/.projen/files.json | 1 - packages/powertools-tracer/.projen/tasks.json | 2 +- packages/powertools-tracer/tsconfig.cjs.json | 10 ---------- packages/s3/.gitattributes | 1 - packages/s3/.gitignore | 1 - packages/s3/.npmignore | 1 - packages/s3/.projen/files.json | 1 - packages/s3/.projen/tasks.json | 2 +- packages/s3/tsconfig.cjs.json | 15 --------------- packages/secrets-manager/.gitattributes | 1 - packages/secrets-manager/.gitignore | 1 - packages/secrets-manager/.npmignore | 1 - packages/secrets-manager/.projen/files.json | 1 - packages/secrets-manager/.projen/tasks.json | 2 +- packages/secrets-manager/tsconfig.cjs.json | 15 --------------- packages/ssm/.gitattributes | 1 - packages/ssm/.gitignore | 1 - packages/ssm/.npmignore | 1 - packages/ssm/.projen/files.json | 1 - packages/ssm/.projen/tasks.json | 2 +- packages/ssm/tsconfig.cjs.json | 15 --------------- projenrc/monorepo-project.ts | 4 ---- projenrc/typescript-project.ts | 10 +--------- 404 files changed, 68 insertions(+), 1331 deletions(-) delete mode 100644 packages/client-account/tsconfig.cjs.json delete mode 100644 packages/client-api-gateway-management-api/tsconfig.cjs.json delete mode 100644 packages/client-api-gateway-v2/tsconfig.cjs.json delete mode 100644 packages/client-api-gateway/tsconfig.cjs.json delete mode 100644 packages/client-athena/tsconfig.cjs.json delete mode 100644 packages/client-auto-scaling/tsconfig.cjs.json delete mode 100644 packages/client-bedrock-runtime/tsconfig.cjs.json delete mode 100644 packages/client-bedrock/tsconfig.cjs.json delete mode 100644 packages/client-cloudformation/tsconfig.cjs.json delete mode 100644 packages/client-cloudsearch/tsconfig.cjs.json delete mode 100644 packages/client-cloudtrail/tsconfig.cjs.json delete mode 100644 packages/client-cloudwatch-events/tsconfig.cjs.json delete mode 100644 packages/client-cloudwatch-logs/tsconfig.cjs.json delete mode 100644 packages/client-cloudwatch/tsconfig.cjs.json delete mode 100644 packages/client-codedeploy/tsconfig.cjs.json delete mode 100644 packages/client-cognito-identity-provider/tsconfig.cjs.json delete mode 100644 packages/client-data-pipeline/tsconfig.cjs.json delete mode 100644 packages/client-dsql/tsconfig.cjs.json delete mode 100644 packages/client-dynamodb/tsconfig.cjs.json delete mode 100644 packages/client-ec2/tsconfig.cjs.json delete mode 100644 packages/client-ecr/tsconfig.cjs.json delete mode 100644 packages/client-ecs/tsconfig.cjs.json delete mode 100644 packages/client-elasticache/tsconfig.cjs.json delete mode 100644 packages/client-eventbridge/tsconfig.cjs.json delete mode 100644 packages/client-firehose/tsconfig.cjs.json delete mode 100644 packages/client-glue/tsconfig.cjs.json delete mode 100644 packages/client-iam/tsconfig.cjs.json delete mode 100644 packages/client-iot-data-plane/tsconfig.cjs.json delete mode 100644 packages/client-iot-events-data/tsconfig.cjs.json delete mode 100644 packages/client-iot-events/tsconfig.cjs.json delete mode 100644 packages/client-iot-jobs-data-plane/tsconfig.cjs.json delete mode 100644 packages/client-iot-wireless/tsconfig.cjs.json delete mode 100644 packages/client-iot/tsconfig.cjs.json delete mode 100644 packages/client-ivs/tsconfig.cjs.json delete mode 100644 packages/client-kafka/tsconfig.cjs.json delete mode 100644 packages/client-kafkaconnect/tsconfig.cjs.json delete mode 100644 packages/client-kinesis/tsconfig.cjs.json delete mode 100644 packages/client-kms/tsconfig.cjs.json delete mode 100644 packages/client-lambda/tsconfig.cjs.json delete mode 100644 packages/client-mq/tsconfig.cjs.json delete mode 100644 packages/client-opensearch-serverless/tsconfig.cjs.json delete mode 100644 packages/client-opensearch/tsconfig.cjs.json delete mode 100644 packages/client-organizations/tsconfig.cjs.json delete mode 100644 packages/client-rds/tsconfig.cjs.json delete mode 100644 packages/client-s3/tsconfig.cjs.json delete mode 100644 packages/client-scheduler/tsconfig.cjs.json delete mode 100644 packages/client-secrets-manager/tsconfig.cjs.json delete mode 100644 packages/client-ses/tsconfig.cjs.json delete mode 100644 packages/client-sfn/tsconfig.cjs.json delete mode 100644 packages/client-sns/tsconfig.cjs.json delete mode 100644 packages/client-sqs/tsconfig.cjs.json delete mode 100644 packages/client-ssm/tsconfig.cjs.json delete mode 100644 packages/client-sts/tsconfig.cjs.json delete mode 100644 packages/client-textract/tsconfig.cjs.json delete mode 100644 packages/client-timestream-influxdb/tsconfig.cjs.json delete mode 100644 packages/client-timestream-query/tsconfig.cjs.json delete mode 100644 packages/client-timestream-write/tsconfig.cjs.json delete mode 100644 packages/commons/tsconfig.cjs.json delete mode 100644 packages/dsql/tsconfig.cjs.json delete mode 100644 packages/dynamodb/tsconfig.cjs.json delete mode 100644 packages/http-handler/tsconfig.cjs.json delete mode 100644 packages/lambda/tsconfig.cjs.json delete mode 100644 packages/powertools-logger/tsconfig.cjs.json delete mode 100644 packages/powertools-tracer/tsconfig.cjs.json delete mode 100644 packages/s3/tsconfig.cjs.json delete mode 100644 packages/secrets-manager/tsconfig.cjs.json delete mode 100644 packages/ssm/tsconfig.cjs.json diff --git a/packages/client-account/.gitattributes b/packages/client-account/.gitattributes index 44ee1f36..25ecb9bb 100644 --- a/packages/client-account/.gitattributes +++ b/packages/client-account/.gitattributes @@ -13,7 +13,6 @@ /LICENSE linguist-generated /package.json linguist-generated /pnpm-lock.yaml linguist-generated -/tsconfig.cjs.json linguist-generated /tsconfig.dev.json linguist-generated /tsconfig.esm.json linguist-generated /tsconfig.json linguist-generated diff --git a/packages/client-account/.gitignore b/packages/client-account/.gitignore index 9b3e7285..919c7a88 100644 --- a/packages/client-account/.gitignore +++ b/packages/client-account/.gitignore @@ -38,7 +38,6 @@ jspm_packages/ !/tsconfig.src.json !/tsconfig.dev.json !/tsconfig.esm.json -!/tsconfig.cjs.json !/docgen.json docs/ !/vitest.config.ts diff --git a/packages/client-account/.npmignore b/packages/client-account/.npmignore index fe4e41d6..e202c1d1 100644 --- a/packages/client-account/.npmignore +++ b/packages/client-account/.npmignore @@ -15,5 +15,4 @@ tsconfig.tsbuildinfo /tsconfig.src.json /tsconfig.dev.json /tsconfig.esm.json -/tsconfig.cjs.json /.gitattributes diff --git a/packages/client-account/.projen/files.json b/packages/client-account/.projen/files.json index e57ad5f8..1f5dd1db 100644 --- a/packages/client-account/.projen/files.json +++ b/packages/client-account/.projen/files.json @@ -8,7 +8,6 @@ ".projen/tasks.json", "docgen.json", "LICENSE", - "tsconfig.cjs.json", "tsconfig.dev.json", "tsconfig.esm.json", "tsconfig.json", diff --git a/packages/client-account/.projen/tasks.json b/packages/client-account/.projen/tasks.json index ad983f13..45b10abd 100644 --- a/packages/client-account/.projen/tasks.json +++ b/packages/client-account/.projen/tasks.json @@ -26,7 +26,7 @@ "description": "Only compile", "steps": [ { - "exec": "tsc -b ./tsconfig.cjs.json ./tsconfig.esm.json" + "exec": "tsc -b ./tsconfig.esm.json" } ] }, diff --git a/packages/client-account/tsconfig.cjs.json b/packages/client-account/tsconfig.cjs.json deleted file mode 100644 index dc7413de..00000000 --- a/packages/client-account/tsconfig.cjs.json +++ /dev/null @@ -1,15 +0,0 @@ -// ~~ Generated by projen. To modify, edit .projenrc.js and run "npx projen". -{ - "extends": "./tsconfig.src.json", - "compilerOptions": { - "tsBuildInfoFile": ".tsbuildinfo/cjs.tsbuildinfo", - "outDir": "build/cjs", - "moduleResolution": "node", - "module": "CommonJS" - }, - "references": [ - { - "path": "../commons/tsconfig.cjs.json" - } - ] -} diff --git a/packages/client-api-gateway-management-api/.gitattributes b/packages/client-api-gateway-management-api/.gitattributes index 44ee1f36..25ecb9bb 100644 --- a/packages/client-api-gateway-management-api/.gitattributes +++ b/packages/client-api-gateway-management-api/.gitattributes @@ -13,7 +13,6 @@ /LICENSE linguist-generated /package.json linguist-generated /pnpm-lock.yaml linguist-generated -/tsconfig.cjs.json linguist-generated /tsconfig.dev.json linguist-generated /tsconfig.esm.json linguist-generated /tsconfig.json linguist-generated diff --git a/packages/client-api-gateway-management-api/.gitignore b/packages/client-api-gateway-management-api/.gitignore index 9b3e7285..919c7a88 100644 --- a/packages/client-api-gateway-management-api/.gitignore +++ b/packages/client-api-gateway-management-api/.gitignore @@ -38,7 +38,6 @@ jspm_packages/ !/tsconfig.src.json !/tsconfig.dev.json !/tsconfig.esm.json -!/tsconfig.cjs.json !/docgen.json docs/ !/vitest.config.ts diff --git a/packages/client-api-gateway-management-api/.npmignore b/packages/client-api-gateway-management-api/.npmignore index fe4e41d6..e202c1d1 100644 --- a/packages/client-api-gateway-management-api/.npmignore +++ b/packages/client-api-gateway-management-api/.npmignore @@ -15,5 +15,4 @@ tsconfig.tsbuildinfo /tsconfig.src.json /tsconfig.dev.json /tsconfig.esm.json -/tsconfig.cjs.json /.gitattributes diff --git a/packages/client-api-gateway-management-api/.projen/files.json b/packages/client-api-gateway-management-api/.projen/files.json index e57ad5f8..1f5dd1db 100644 --- a/packages/client-api-gateway-management-api/.projen/files.json +++ b/packages/client-api-gateway-management-api/.projen/files.json @@ -8,7 +8,6 @@ ".projen/tasks.json", "docgen.json", "LICENSE", - "tsconfig.cjs.json", "tsconfig.dev.json", "tsconfig.esm.json", "tsconfig.json", diff --git a/packages/client-api-gateway-management-api/.projen/tasks.json b/packages/client-api-gateway-management-api/.projen/tasks.json index ad983f13..45b10abd 100644 --- a/packages/client-api-gateway-management-api/.projen/tasks.json +++ b/packages/client-api-gateway-management-api/.projen/tasks.json @@ -26,7 +26,7 @@ "description": "Only compile", "steps": [ { - "exec": "tsc -b ./tsconfig.cjs.json ./tsconfig.esm.json" + "exec": "tsc -b ./tsconfig.esm.json" } ] }, diff --git a/packages/client-api-gateway-management-api/tsconfig.cjs.json b/packages/client-api-gateway-management-api/tsconfig.cjs.json deleted file mode 100644 index dc7413de..00000000 --- a/packages/client-api-gateway-management-api/tsconfig.cjs.json +++ /dev/null @@ -1,15 +0,0 @@ -// ~~ Generated by projen. To modify, edit .projenrc.js and run "npx projen". -{ - "extends": "./tsconfig.src.json", - "compilerOptions": { - "tsBuildInfoFile": ".tsbuildinfo/cjs.tsbuildinfo", - "outDir": "build/cjs", - "moduleResolution": "node", - "module": "CommonJS" - }, - "references": [ - { - "path": "../commons/tsconfig.cjs.json" - } - ] -} diff --git a/packages/client-api-gateway-v2/.gitattributes b/packages/client-api-gateway-v2/.gitattributes index 44ee1f36..25ecb9bb 100644 --- a/packages/client-api-gateway-v2/.gitattributes +++ b/packages/client-api-gateway-v2/.gitattributes @@ -13,7 +13,6 @@ /LICENSE linguist-generated /package.json linguist-generated /pnpm-lock.yaml linguist-generated -/tsconfig.cjs.json linguist-generated /tsconfig.dev.json linguist-generated /tsconfig.esm.json linguist-generated /tsconfig.json linguist-generated diff --git a/packages/client-api-gateway-v2/.gitignore b/packages/client-api-gateway-v2/.gitignore index 9b3e7285..919c7a88 100644 --- a/packages/client-api-gateway-v2/.gitignore +++ b/packages/client-api-gateway-v2/.gitignore @@ -38,7 +38,6 @@ jspm_packages/ !/tsconfig.src.json !/tsconfig.dev.json !/tsconfig.esm.json -!/tsconfig.cjs.json !/docgen.json docs/ !/vitest.config.ts diff --git a/packages/client-api-gateway-v2/.npmignore b/packages/client-api-gateway-v2/.npmignore index fe4e41d6..e202c1d1 100644 --- a/packages/client-api-gateway-v2/.npmignore +++ b/packages/client-api-gateway-v2/.npmignore @@ -15,5 +15,4 @@ tsconfig.tsbuildinfo /tsconfig.src.json /tsconfig.dev.json /tsconfig.esm.json -/tsconfig.cjs.json /.gitattributes diff --git a/packages/client-api-gateway-v2/.projen/files.json b/packages/client-api-gateway-v2/.projen/files.json index e57ad5f8..1f5dd1db 100644 --- a/packages/client-api-gateway-v2/.projen/files.json +++ b/packages/client-api-gateway-v2/.projen/files.json @@ -8,7 +8,6 @@ ".projen/tasks.json", "docgen.json", "LICENSE", - "tsconfig.cjs.json", "tsconfig.dev.json", "tsconfig.esm.json", "tsconfig.json", diff --git a/packages/client-api-gateway-v2/.projen/tasks.json b/packages/client-api-gateway-v2/.projen/tasks.json index ad983f13..45b10abd 100644 --- a/packages/client-api-gateway-v2/.projen/tasks.json +++ b/packages/client-api-gateway-v2/.projen/tasks.json @@ -26,7 +26,7 @@ "description": "Only compile", "steps": [ { - "exec": "tsc -b ./tsconfig.cjs.json ./tsconfig.esm.json" + "exec": "tsc -b ./tsconfig.esm.json" } ] }, diff --git a/packages/client-api-gateway-v2/tsconfig.cjs.json b/packages/client-api-gateway-v2/tsconfig.cjs.json deleted file mode 100644 index dc7413de..00000000 --- a/packages/client-api-gateway-v2/tsconfig.cjs.json +++ /dev/null @@ -1,15 +0,0 @@ -// ~~ Generated by projen. To modify, edit .projenrc.js and run "npx projen". -{ - "extends": "./tsconfig.src.json", - "compilerOptions": { - "tsBuildInfoFile": ".tsbuildinfo/cjs.tsbuildinfo", - "outDir": "build/cjs", - "moduleResolution": "node", - "module": "CommonJS" - }, - "references": [ - { - "path": "../commons/tsconfig.cjs.json" - } - ] -} diff --git a/packages/client-api-gateway/.gitattributes b/packages/client-api-gateway/.gitattributes index 44ee1f36..25ecb9bb 100644 --- a/packages/client-api-gateway/.gitattributes +++ b/packages/client-api-gateway/.gitattributes @@ -13,7 +13,6 @@ /LICENSE linguist-generated /package.json linguist-generated /pnpm-lock.yaml linguist-generated -/tsconfig.cjs.json linguist-generated /tsconfig.dev.json linguist-generated /tsconfig.esm.json linguist-generated /tsconfig.json linguist-generated diff --git a/packages/client-api-gateway/.gitignore b/packages/client-api-gateway/.gitignore index 9b3e7285..919c7a88 100644 --- a/packages/client-api-gateway/.gitignore +++ b/packages/client-api-gateway/.gitignore @@ -38,7 +38,6 @@ jspm_packages/ !/tsconfig.src.json !/tsconfig.dev.json !/tsconfig.esm.json -!/tsconfig.cjs.json !/docgen.json docs/ !/vitest.config.ts diff --git a/packages/client-api-gateway/.npmignore b/packages/client-api-gateway/.npmignore index fe4e41d6..e202c1d1 100644 --- a/packages/client-api-gateway/.npmignore +++ b/packages/client-api-gateway/.npmignore @@ -15,5 +15,4 @@ tsconfig.tsbuildinfo /tsconfig.src.json /tsconfig.dev.json /tsconfig.esm.json -/tsconfig.cjs.json /.gitattributes diff --git a/packages/client-api-gateway/.projen/files.json b/packages/client-api-gateway/.projen/files.json index e57ad5f8..1f5dd1db 100644 --- a/packages/client-api-gateway/.projen/files.json +++ b/packages/client-api-gateway/.projen/files.json @@ -8,7 +8,6 @@ ".projen/tasks.json", "docgen.json", "LICENSE", - "tsconfig.cjs.json", "tsconfig.dev.json", "tsconfig.esm.json", "tsconfig.json", diff --git a/packages/client-api-gateway/.projen/tasks.json b/packages/client-api-gateway/.projen/tasks.json index ad983f13..45b10abd 100644 --- a/packages/client-api-gateway/.projen/tasks.json +++ b/packages/client-api-gateway/.projen/tasks.json @@ -26,7 +26,7 @@ "description": "Only compile", "steps": [ { - "exec": "tsc -b ./tsconfig.cjs.json ./tsconfig.esm.json" + "exec": "tsc -b ./tsconfig.esm.json" } ] }, diff --git a/packages/client-api-gateway/tsconfig.cjs.json b/packages/client-api-gateway/tsconfig.cjs.json deleted file mode 100644 index dc7413de..00000000 --- a/packages/client-api-gateway/tsconfig.cjs.json +++ /dev/null @@ -1,15 +0,0 @@ -// ~~ Generated by projen. To modify, edit .projenrc.js and run "npx projen". -{ - "extends": "./tsconfig.src.json", - "compilerOptions": { - "tsBuildInfoFile": ".tsbuildinfo/cjs.tsbuildinfo", - "outDir": "build/cjs", - "moduleResolution": "node", - "module": "CommonJS" - }, - "references": [ - { - "path": "../commons/tsconfig.cjs.json" - } - ] -} diff --git a/packages/client-athena/.gitattributes b/packages/client-athena/.gitattributes index 44ee1f36..25ecb9bb 100644 --- a/packages/client-athena/.gitattributes +++ b/packages/client-athena/.gitattributes @@ -13,7 +13,6 @@ /LICENSE linguist-generated /package.json linguist-generated /pnpm-lock.yaml linguist-generated -/tsconfig.cjs.json linguist-generated /tsconfig.dev.json linguist-generated /tsconfig.esm.json linguist-generated /tsconfig.json linguist-generated diff --git a/packages/client-athena/.gitignore b/packages/client-athena/.gitignore index 9b3e7285..919c7a88 100644 --- a/packages/client-athena/.gitignore +++ b/packages/client-athena/.gitignore @@ -38,7 +38,6 @@ jspm_packages/ !/tsconfig.src.json !/tsconfig.dev.json !/tsconfig.esm.json -!/tsconfig.cjs.json !/docgen.json docs/ !/vitest.config.ts diff --git a/packages/client-athena/.npmignore b/packages/client-athena/.npmignore index fe4e41d6..e202c1d1 100644 --- a/packages/client-athena/.npmignore +++ b/packages/client-athena/.npmignore @@ -15,5 +15,4 @@ tsconfig.tsbuildinfo /tsconfig.src.json /tsconfig.dev.json /tsconfig.esm.json -/tsconfig.cjs.json /.gitattributes diff --git a/packages/client-athena/.projen/files.json b/packages/client-athena/.projen/files.json index e57ad5f8..1f5dd1db 100644 --- a/packages/client-athena/.projen/files.json +++ b/packages/client-athena/.projen/files.json @@ -8,7 +8,6 @@ ".projen/tasks.json", "docgen.json", "LICENSE", - "tsconfig.cjs.json", "tsconfig.dev.json", "tsconfig.esm.json", "tsconfig.json", diff --git a/packages/client-athena/.projen/tasks.json b/packages/client-athena/.projen/tasks.json index ad983f13..45b10abd 100644 --- a/packages/client-athena/.projen/tasks.json +++ b/packages/client-athena/.projen/tasks.json @@ -26,7 +26,7 @@ "description": "Only compile", "steps": [ { - "exec": "tsc -b ./tsconfig.cjs.json ./tsconfig.esm.json" + "exec": "tsc -b ./tsconfig.esm.json" } ] }, diff --git a/packages/client-athena/tsconfig.cjs.json b/packages/client-athena/tsconfig.cjs.json deleted file mode 100644 index dc7413de..00000000 --- a/packages/client-athena/tsconfig.cjs.json +++ /dev/null @@ -1,15 +0,0 @@ -// ~~ Generated by projen. To modify, edit .projenrc.js and run "npx projen". -{ - "extends": "./tsconfig.src.json", - "compilerOptions": { - "tsBuildInfoFile": ".tsbuildinfo/cjs.tsbuildinfo", - "outDir": "build/cjs", - "moduleResolution": "node", - "module": "CommonJS" - }, - "references": [ - { - "path": "../commons/tsconfig.cjs.json" - } - ] -} diff --git a/packages/client-auto-scaling/.gitattributes b/packages/client-auto-scaling/.gitattributes index 44ee1f36..25ecb9bb 100644 --- a/packages/client-auto-scaling/.gitattributes +++ b/packages/client-auto-scaling/.gitattributes @@ -13,7 +13,6 @@ /LICENSE linguist-generated /package.json linguist-generated /pnpm-lock.yaml linguist-generated -/tsconfig.cjs.json linguist-generated /tsconfig.dev.json linguist-generated /tsconfig.esm.json linguist-generated /tsconfig.json linguist-generated diff --git a/packages/client-auto-scaling/.gitignore b/packages/client-auto-scaling/.gitignore index 9b3e7285..919c7a88 100644 --- a/packages/client-auto-scaling/.gitignore +++ b/packages/client-auto-scaling/.gitignore @@ -38,7 +38,6 @@ jspm_packages/ !/tsconfig.src.json !/tsconfig.dev.json !/tsconfig.esm.json -!/tsconfig.cjs.json !/docgen.json docs/ !/vitest.config.ts diff --git a/packages/client-auto-scaling/.npmignore b/packages/client-auto-scaling/.npmignore index fe4e41d6..e202c1d1 100644 --- a/packages/client-auto-scaling/.npmignore +++ b/packages/client-auto-scaling/.npmignore @@ -15,5 +15,4 @@ tsconfig.tsbuildinfo /tsconfig.src.json /tsconfig.dev.json /tsconfig.esm.json -/tsconfig.cjs.json /.gitattributes diff --git a/packages/client-auto-scaling/.projen/files.json b/packages/client-auto-scaling/.projen/files.json index e57ad5f8..1f5dd1db 100644 --- a/packages/client-auto-scaling/.projen/files.json +++ b/packages/client-auto-scaling/.projen/files.json @@ -8,7 +8,6 @@ ".projen/tasks.json", "docgen.json", "LICENSE", - "tsconfig.cjs.json", "tsconfig.dev.json", "tsconfig.esm.json", "tsconfig.json", diff --git a/packages/client-auto-scaling/.projen/tasks.json b/packages/client-auto-scaling/.projen/tasks.json index ad983f13..45b10abd 100644 --- a/packages/client-auto-scaling/.projen/tasks.json +++ b/packages/client-auto-scaling/.projen/tasks.json @@ -26,7 +26,7 @@ "description": "Only compile", "steps": [ { - "exec": "tsc -b ./tsconfig.cjs.json ./tsconfig.esm.json" + "exec": "tsc -b ./tsconfig.esm.json" } ] }, diff --git a/packages/client-auto-scaling/tsconfig.cjs.json b/packages/client-auto-scaling/tsconfig.cjs.json deleted file mode 100644 index dc7413de..00000000 --- a/packages/client-auto-scaling/tsconfig.cjs.json +++ /dev/null @@ -1,15 +0,0 @@ -// ~~ Generated by projen. To modify, edit .projenrc.js and run "npx projen". -{ - "extends": "./tsconfig.src.json", - "compilerOptions": { - "tsBuildInfoFile": ".tsbuildinfo/cjs.tsbuildinfo", - "outDir": "build/cjs", - "moduleResolution": "node", - "module": "CommonJS" - }, - "references": [ - { - "path": "../commons/tsconfig.cjs.json" - } - ] -} diff --git a/packages/client-bedrock-runtime/.gitattributes b/packages/client-bedrock-runtime/.gitattributes index 44ee1f36..25ecb9bb 100644 --- a/packages/client-bedrock-runtime/.gitattributes +++ b/packages/client-bedrock-runtime/.gitattributes @@ -13,7 +13,6 @@ /LICENSE linguist-generated /package.json linguist-generated /pnpm-lock.yaml linguist-generated -/tsconfig.cjs.json linguist-generated /tsconfig.dev.json linguist-generated /tsconfig.esm.json linguist-generated /tsconfig.json linguist-generated diff --git a/packages/client-bedrock-runtime/.gitignore b/packages/client-bedrock-runtime/.gitignore index 9b3e7285..919c7a88 100644 --- a/packages/client-bedrock-runtime/.gitignore +++ b/packages/client-bedrock-runtime/.gitignore @@ -38,7 +38,6 @@ jspm_packages/ !/tsconfig.src.json !/tsconfig.dev.json !/tsconfig.esm.json -!/tsconfig.cjs.json !/docgen.json docs/ !/vitest.config.ts diff --git a/packages/client-bedrock-runtime/.npmignore b/packages/client-bedrock-runtime/.npmignore index fe4e41d6..e202c1d1 100644 --- a/packages/client-bedrock-runtime/.npmignore +++ b/packages/client-bedrock-runtime/.npmignore @@ -15,5 +15,4 @@ tsconfig.tsbuildinfo /tsconfig.src.json /tsconfig.dev.json /tsconfig.esm.json -/tsconfig.cjs.json /.gitattributes diff --git a/packages/client-bedrock-runtime/.projen/files.json b/packages/client-bedrock-runtime/.projen/files.json index e57ad5f8..1f5dd1db 100644 --- a/packages/client-bedrock-runtime/.projen/files.json +++ b/packages/client-bedrock-runtime/.projen/files.json @@ -8,7 +8,6 @@ ".projen/tasks.json", "docgen.json", "LICENSE", - "tsconfig.cjs.json", "tsconfig.dev.json", "tsconfig.esm.json", "tsconfig.json", diff --git a/packages/client-bedrock-runtime/.projen/tasks.json b/packages/client-bedrock-runtime/.projen/tasks.json index ad983f13..45b10abd 100644 --- a/packages/client-bedrock-runtime/.projen/tasks.json +++ b/packages/client-bedrock-runtime/.projen/tasks.json @@ -26,7 +26,7 @@ "description": "Only compile", "steps": [ { - "exec": "tsc -b ./tsconfig.cjs.json ./tsconfig.esm.json" + "exec": "tsc -b ./tsconfig.esm.json" } ] }, diff --git a/packages/client-bedrock-runtime/tsconfig.cjs.json b/packages/client-bedrock-runtime/tsconfig.cjs.json deleted file mode 100644 index dc7413de..00000000 --- a/packages/client-bedrock-runtime/tsconfig.cjs.json +++ /dev/null @@ -1,15 +0,0 @@ -// ~~ Generated by projen. To modify, edit .projenrc.js and run "npx projen". -{ - "extends": "./tsconfig.src.json", - "compilerOptions": { - "tsBuildInfoFile": ".tsbuildinfo/cjs.tsbuildinfo", - "outDir": "build/cjs", - "moduleResolution": "node", - "module": "CommonJS" - }, - "references": [ - { - "path": "../commons/tsconfig.cjs.json" - } - ] -} diff --git a/packages/client-bedrock/.gitattributes b/packages/client-bedrock/.gitattributes index 44ee1f36..25ecb9bb 100644 --- a/packages/client-bedrock/.gitattributes +++ b/packages/client-bedrock/.gitattributes @@ -13,7 +13,6 @@ /LICENSE linguist-generated /package.json linguist-generated /pnpm-lock.yaml linguist-generated -/tsconfig.cjs.json linguist-generated /tsconfig.dev.json linguist-generated /tsconfig.esm.json linguist-generated /tsconfig.json linguist-generated diff --git a/packages/client-bedrock/.gitignore b/packages/client-bedrock/.gitignore index 9b3e7285..919c7a88 100644 --- a/packages/client-bedrock/.gitignore +++ b/packages/client-bedrock/.gitignore @@ -38,7 +38,6 @@ jspm_packages/ !/tsconfig.src.json !/tsconfig.dev.json !/tsconfig.esm.json -!/tsconfig.cjs.json !/docgen.json docs/ !/vitest.config.ts diff --git a/packages/client-bedrock/.npmignore b/packages/client-bedrock/.npmignore index fe4e41d6..e202c1d1 100644 --- a/packages/client-bedrock/.npmignore +++ b/packages/client-bedrock/.npmignore @@ -15,5 +15,4 @@ tsconfig.tsbuildinfo /tsconfig.src.json /tsconfig.dev.json /tsconfig.esm.json -/tsconfig.cjs.json /.gitattributes diff --git a/packages/client-bedrock/.projen/files.json b/packages/client-bedrock/.projen/files.json index e57ad5f8..1f5dd1db 100644 --- a/packages/client-bedrock/.projen/files.json +++ b/packages/client-bedrock/.projen/files.json @@ -8,7 +8,6 @@ ".projen/tasks.json", "docgen.json", "LICENSE", - "tsconfig.cjs.json", "tsconfig.dev.json", "tsconfig.esm.json", "tsconfig.json", diff --git a/packages/client-bedrock/.projen/tasks.json b/packages/client-bedrock/.projen/tasks.json index ad983f13..45b10abd 100644 --- a/packages/client-bedrock/.projen/tasks.json +++ b/packages/client-bedrock/.projen/tasks.json @@ -26,7 +26,7 @@ "description": "Only compile", "steps": [ { - "exec": "tsc -b ./tsconfig.cjs.json ./tsconfig.esm.json" + "exec": "tsc -b ./tsconfig.esm.json" } ] }, diff --git a/packages/client-bedrock/tsconfig.cjs.json b/packages/client-bedrock/tsconfig.cjs.json deleted file mode 100644 index dc7413de..00000000 --- a/packages/client-bedrock/tsconfig.cjs.json +++ /dev/null @@ -1,15 +0,0 @@ -// ~~ Generated by projen. To modify, edit .projenrc.js and run "npx projen". -{ - "extends": "./tsconfig.src.json", - "compilerOptions": { - "tsBuildInfoFile": ".tsbuildinfo/cjs.tsbuildinfo", - "outDir": "build/cjs", - "moduleResolution": "node", - "module": "CommonJS" - }, - "references": [ - { - "path": "../commons/tsconfig.cjs.json" - } - ] -} diff --git a/packages/client-cloudformation/.gitattributes b/packages/client-cloudformation/.gitattributes index 44ee1f36..25ecb9bb 100644 --- a/packages/client-cloudformation/.gitattributes +++ b/packages/client-cloudformation/.gitattributes @@ -13,7 +13,6 @@ /LICENSE linguist-generated /package.json linguist-generated /pnpm-lock.yaml linguist-generated -/tsconfig.cjs.json linguist-generated /tsconfig.dev.json linguist-generated /tsconfig.esm.json linguist-generated /tsconfig.json linguist-generated diff --git a/packages/client-cloudformation/.gitignore b/packages/client-cloudformation/.gitignore index 9b3e7285..919c7a88 100644 --- a/packages/client-cloudformation/.gitignore +++ b/packages/client-cloudformation/.gitignore @@ -38,7 +38,6 @@ jspm_packages/ !/tsconfig.src.json !/tsconfig.dev.json !/tsconfig.esm.json -!/tsconfig.cjs.json !/docgen.json docs/ !/vitest.config.ts diff --git a/packages/client-cloudformation/.npmignore b/packages/client-cloudformation/.npmignore index fe4e41d6..e202c1d1 100644 --- a/packages/client-cloudformation/.npmignore +++ b/packages/client-cloudformation/.npmignore @@ -15,5 +15,4 @@ tsconfig.tsbuildinfo /tsconfig.src.json /tsconfig.dev.json /tsconfig.esm.json -/tsconfig.cjs.json /.gitattributes diff --git a/packages/client-cloudformation/.projen/files.json b/packages/client-cloudformation/.projen/files.json index e57ad5f8..1f5dd1db 100644 --- a/packages/client-cloudformation/.projen/files.json +++ b/packages/client-cloudformation/.projen/files.json @@ -8,7 +8,6 @@ ".projen/tasks.json", "docgen.json", "LICENSE", - "tsconfig.cjs.json", "tsconfig.dev.json", "tsconfig.esm.json", "tsconfig.json", diff --git a/packages/client-cloudformation/.projen/tasks.json b/packages/client-cloudformation/.projen/tasks.json index ad983f13..45b10abd 100644 --- a/packages/client-cloudformation/.projen/tasks.json +++ b/packages/client-cloudformation/.projen/tasks.json @@ -26,7 +26,7 @@ "description": "Only compile", "steps": [ { - "exec": "tsc -b ./tsconfig.cjs.json ./tsconfig.esm.json" + "exec": "tsc -b ./tsconfig.esm.json" } ] }, diff --git a/packages/client-cloudformation/tsconfig.cjs.json b/packages/client-cloudformation/tsconfig.cjs.json deleted file mode 100644 index dc7413de..00000000 --- a/packages/client-cloudformation/tsconfig.cjs.json +++ /dev/null @@ -1,15 +0,0 @@ -// ~~ Generated by projen. To modify, edit .projenrc.js and run "npx projen". -{ - "extends": "./tsconfig.src.json", - "compilerOptions": { - "tsBuildInfoFile": ".tsbuildinfo/cjs.tsbuildinfo", - "outDir": "build/cjs", - "moduleResolution": "node", - "module": "CommonJS" - }, - "references": [ - { - "path": "../commons/tsconfig.cjs.json" - } - ] -} diff --git a/packages/client-cloudsearch/.gitattributes b/packages/client-cloudsearch/.gitattributes index 44ee1f36..25ecb9bb 100644 --- a/packages/client-cloudsearch/.gitattributes +++ b/packages/client-cloudsearch/.gitattributes @@ -13,7 +13,6 @@ /LICENSE linguist-generated /package.json linguist-generated /pnpm-lock.yaml linguist-generated -/tsconfig.cjs.json linguist-generated /tsconfig.dev.json linguist-generated /tsconfig.esm.json linguist-generated /tsconfig.json linguist-generated diff --git a/packages/client-cloudsearch/.gitignore b/packages/client-cloudsearch/.gitignore index 9b3e7285..919c7a88 100644 --- a/packages/client-cloudsearch/.gitignore +++ b/packages/client-cloudsearch/.gitignore @@ -38,7 +38,6 @@ jspm_packages/ !/tsconfig.src.json !/tsconfig.dev.json !/tsconfig.esm.json -!/tsconfig.cjs.json !/docgen.json docs/ !/vitest.config.ts diff --git a/packages/client-cloudsearch/.npmignore b/packages/client-cloudsearch/.npmignore index fe4e41d6..e202c1d1 100644 --- a/packages/client-cloudsearch/.npmignore +++ b/packages/client-cloudsearch/.npmignore @@ -15,5 +15,4 @@ tsconfig.tsbuildinfo /tsconfig.src.json /tsconfig.dev.json /tsconfig.esm.json -/tsconfig.cjs.json /.gitattributes diff --git a/packages/client-cloudsearch/.projen/files.json b/packages/client-cloudsearch/.projen/files.json index e57ad5f8..1f5dd1db 100644 --- a/packages/client-cloudsearch/.projen/files.json +++ b/packages/client-cloudsearch/.projen/files.json @@ -8,7 +8,6 @@ ".projen/tasks.json", "docgen.json", "LICENSE", - "tsconfig.cjs.json", "tsconfig.dev.json", "tsconfig.esm.json", "tsconfig.json", diff --git a/packages/client-cloudsearch/.projen/tasks.json b/packages/client-cloudsearch/.projen/tasks.json index ad983f13..45b10abd 100644 --- a/packages/client-cloudsearch/.projen/tasks.json +++ b/packages/client-cloudsearch/.projen/tasks.json @@ -26,7 +26,7 @@ "description": "Only compile", "steps": [ { - "exec": "tsc -b ./tsconfig.cjs.json ./tsconfig.esm.json" + "exec": "tsc -b ./tsconfig.esm.json" } ] }, diff --git a/packages/client-cloudsearch/tsconfig.cjs.json b/packages/client-cloudsearch/tsconfig.cjs.json deleted file mode 100644 index dc7413de..00000000 --- a/packages/client-cloudsearch/tsconfig.cjs.json +++ /dev/null @@ -1,15 +0,0 @@ -// ~~ Generated by projen. To modify, edit .projenrc.js and run "npx projen". -{ - "extends": "./tsconfig.src.json", - "compilerOptions": { - "tsBuildInfoFile": ".tsbuildinfo/cjs.tsbuildinfo", - "outDir": "build/cjs", - "moduleResolution": "node", - "module": "CommonJS" - }, - "references": [ - { - "path": "../commons/tsconfig.cjs.json" - } - ] -} diff --git a/packages/client-cloudtrail/.gitattributes b/packages/client-cloudtrail/.gitattributes index 44ee1f36..25ecb9bb 100644 --- a/packages/client-cloudtrail/.gitattributes +++ b/packages/client-cloudtrail/.gitattributes @@ -13,7 +13,6 @@ /LICENSE linguist-generated /package.json linguist-generated /pnpm-lock.yaml linguist-generated -/tsconfig.cjs.json linguist-generated /tsconfig.dev.json linguist-generated /tsconfig.esm.json linguist-generated /tsconfig.json linguist-generated diff --git a/packages/client-cloudtrail/.gitignore b/packages/client-cloudtrail/.gitignore index 9b3e7285..919c7a88 100644 --- a/packages/client-cloudtrail/.gitignore +++ b/packages/client-cloudtrail/.gitignore @@ -38,7 +38,6 @@ jspm_packages/ !/tsconfig.src.json !/tsconfig.dev.json !/tsconfig.esm.json -!/tsconfig.cjs.json !/docgen.json docs/ !/vitest.config.ts diff --git a/packages/client-cloudtrail/.npmignore b/packages/client-cloudtrail/.npmignore index fe4e41d6..e202c1d1 100644 --- a/packages/client-cloudtrail/.npmignore +++ b/packages/client-cloudtrail/.npmignore @@ -15,5 +15,4 @@ tsconfig.tsbuildinfo /tsconfig.src.json /tsconfig.dev.json /tsconfig.esm.json -/tsconfig.cjs.json /.gitattributes diff --git a/packages/client-cloudtrail/.projen/files.json b/packages/client-cloudtrail/.projen/files.json index e57ad5f8..1f5dd1db 100644 --- a/packages/client-cloudtrail/.projen/files.json +++ b/packages/client-cloudtrail/.projen/files.json @@ -8,7 +8,6 @@ ".projen/tasks.json", "docgen.json", "LICENSE", - "tsconfig.cjs.json", "tsconfig.dev.json", "tsconfig.esm.json", "tsconfig.json", diff --git a/packages/client-cloudtrail/.projen/tasks.json b/packages/client-cloudtrail/.projen/tasks.json index ad983f13..45b10abd 100644 --- a/packages/client-cloudtrail/.projen/tasks.json +++ b/packages/client-cloudtrail/.projen/tasks.json @@ -26,7 +26,7 @@ "description": "Only compile", "steps": [ { - "exec": "tsc -b ./tsconfig.cjs.json ./tsconfig.esm.json" + "exec": "tsc -b ./tsconfig.esm.json" } ] }, diff --git a/packages/client-cloudtrail/tsconfig.cjs.json b/packages/client-cloudtrail/tsconfig.cjs.json deleted file mode 100644 index dc7413de..00000000 --- a/packages/client-cloudtrail/tsconfig.cjs.json +++ /dev/null @@ -1,15 +0,0 @@ -// ~~ Generated by projen. To modify, edit .projenrc.js and run "npx projen". -{ - "extends": "./tsconfig.src.json", - "compilerOptions": { - "tsBuildInfoFile": ".tsbuildinfo/cjs.tsbuildinfo", - "outDir": "build/cjs", - "moduleResolution": "node", - "module": "CommonJS" - }, - "references": [ - { - "path": "../commons/tsconfig.cjs.json" - } - ] -} diff --git a/packages/client-cloudwatch-events/.gitattributes b/packages/client-cloudwatch-events/.gitattributes index 44ee1f36..25ecb9bb 100644 --- a/packages/client-cloudwatch-events/.gitattributes +++ b/packages/client-cloudwatch-events/.gitattributes @@ -13,7 +13,6 @@ /LICENSE linguist-generated /package.json linguist-generated /pnpm-lock.yaml linguist-generated -/tsconfig.cjs.json linguist-generated /tsconfig.dev.json linguist-generated /tsconfig.esm.json linguist-generated /tsconfig.json linguist-generated diff --git a/packages/client-cloudwatch-events/.gitignore b/packages/client-cloudwatch-events/.gitignore index 9b3e7285..919c7a88 100644 --- a/packages/client-cloudwatch-events/.gitignore +++ b/packages/client-cloudwatch-events/.gitignore @@ -38,7 +38,6 @@ jspm_packages/ !/tsconfig.src.json !/tsconfig.dev.json !/tsconfig.esm.json -!/tsconfig.cjs.json !/docgen.json docs/ !/vitest.config.ts diff --git a/packages/client-cloudwatch-events/.npmignore b/packages/client-cloudwatch-events/.npmignore index fe4e41d6..e202c1d1 100644 --- a/packages/client-cloudwatch-events/.npmignore +++ b/packages/client-cloudwatch-events/.npmignore @@ -15,5 +15,4 @@ tsconfig.tsbuildinfo /tsconfig.src.json /tsconfig.dev.json /tsconfig.esm.json -/tsconfig.cjs.json /.gitattributes diff --git a/packages/client-cloudwatch-events/.projen/files.json b/packages/client-cloudwatch-events/.projen/files.json index e57ad5f8..1f5dd1db 100644 --- a/packages/client-cloudwatch-events/.projen/files.json +++ b/packages/client-cloudwatch-events/.projen/files.json @@ -8,7 +8,6 @@ ".projen/tasks.json", "docgen.json", "LICENSE", - "tsconfig.cjs.json", "tsconfig.dev.json", "tsconfig.esm.json", "tsconfig.json", diff --git a/packages/client-cloudwatch-events/.projen/tasks.json b/packages/client-cloudwatch-events/.projen/tasks.json index ad983f13..45b10abd 100644 --- a/packages/client-cloudwatch-events/.projen/tasks.json +++ b/packages/client-cloudwatch-events/.projen/tasks.json @@ -26,7 +26,7 @@ "description": "Only compile", "steps": [ { - "exec": "tsc -b ./tsconfig.cjs.json ./tsconfig.esm.json" + "exec": "tsc -b ./tsconfig.esm.json" } ] }, diff --git a/packages/client-cloudwatch-events/tsconfig.cjs.json b/packages/client-cloudwatch-events/tsconfig.cjs.json deleted file mode 100644 index dc7413de..00000000 --- a/packages/client-cloudwatch-events/tsconfig.cjs.json +++ /dev/null @@ -1,15 +0,0 @@ -// ~~ Generated by projen. To modify, edit .projenrc.js and run "npx projen". -{ - "extends": "./tsconfig.src.json", - "compilerOptions": { - "tsBuildInfoFile": ".tsbuildinfo/cjs.tsbuildinfo", - "outDir": "build/cjs", - "moduleResolution": "node", - "module": "CommonJS" - }, - "references": [ - { - "path": "../commons/tsconfig.cjs.json" - } - ] -} diff --git a/packages/client-cloudwatch-logs/.gitattributes b/packages/client-cloudwatch-logs/.gitattributes index 44ee1f36..25ecb9bb 100644 --- a/packages/client-cloudwatch-logs/.gitattributes +++ b/packages/client-cloudwatch-logs/.gitattributes @@ -13,7 +13,6 @@ /LICENSE linguist-generated /package.json linguist-generated /pnpm-lock.yaml linguist-generated -/tsconfig.cjs.json linguist-generated /tsconfig.dev.json linguist-generated /tsconfig.esm.json linguist-generated /tsconfig.json linguist-generated diff --git a/packages/client-cloudwatch-logs/.gitignore b/packages/client-cloudwatch-logs/.gitignore index 9b3e7285..919c7a88 100644 --- a/packages/client-cloudwatch-logs/.gitignore +++ b/packages/client-cloudwatch-logs/.gitignore @@ -38,7 +38,6 @@ jspm_packages/ !/tsconfig.src.json !/tsconfig.dev.json !/tsconfig.esm.json -!/tsconfig.cjs.json !/docgen.json docs/ !/vitest.config.ts diff --git a/packages/client-cloudwatch-logs/.npmignore b/packages/client-cloudwatch-logs/.npmignore index fe4e41d6..e202c1d1 100644 --- a/packages/client-cloudwatch-logs/.npmignore +++ b/packages/client-cloudwatch-logs/.npmignore @@ -15,5 +15,4 @@ tsconfig.tsbuildinfo /tsconfig.src.json /tsconfig.dev.json /tsconfig.esm.json -/tsconfig.cjs.json /.gitattributes diff --git a/packages/client-cloudwatch-logs/.projen/files.json b/packages/client-cloudwatch-logs/.projen/files.json index e57ad5f8..1f5dd1db 100644 --- a/packages/client-cloudwatch-logs/.projen/files.json +++ b/packages/client-cloudwatch-logs/.projen/files.json @@ -8,7 +8,6 @@ ".projen/tasks.json", "docgen.json", "LICENSE", - "tsconfig.cjs.json", "tsconfig.dev.json", "tsconfig.esm.json", "tsconfig.json", diff --git a/packages/client-cloudwatch-logs/.projen/tasks.json b/packages/client-cloudwatch-logs/.projen/tasks.json index ad983f13..45b10abd 100644 --- a/packages/client-cloudwatch-logs/.projen/tasks.json +++ b/packages/client-cloudwatch-logs/.projen/tasks.json @@ -26,7 +26,7 @@ "description": "Only compile", "steps": [ { - "exec": "tsc -b ./tsconfig.cjs.json ./tsconfig.esm.json" + "exec": "tsc -b ./tsconfig.esm.json" } ] }, diff --git a/packages/client-cloudwatch-logs/tsconfig.cjs.json b/packages/client-cloudwatch-logs/tsconfig.cjs.json deleted file mode 100644 index dc7413de..00000000 --- a/packages/client-cloudwatch-logs/tsconfig.cjs.json +++ /dev/null @@ -1,15 +0,0 @@ -// ~~ Generated by projen. To modify, edit .projenrc.js and run "npx projen". -{ - "extends": "./tsconfig.src.json", - "compilerOptions": { - "tsBuildInfoFile": ".tsbuildinfo/cjs.tsbuildinfo", - "outDir": "build/cjs", - "moduleResolution": "node", - "module": "CommonJS" - }, - "references": [ - { - "path": "../commons/tsconfig.cjs.json" - } - ] -} diff --git a/packages/client-cloudwatch/.gitattributes b/packages/client-cloudwatch/.gitattributes index 44ee1f36..25ecb9bb 100644 --- a/packages/client-cloudwatch/.gitattributes +++ b/packages/client-cloudwatch/.gitattributes @@ -13,7 +13,6 @@ /LICENSE linguist-generated /package.json linguist-generated /pnpm-lock.yaml linguist-generated -/tsconfig.cjs.json linguist-generated /tsconfig.dev.json linguist-generated /tsconfig.esm.json linguist-generated /tsconfig.json linguist-generated diff --git a/packages/client-cloudwatch/.gitignore b/packages/client-cloudwatch/.gitignore index 9b3e7285..919c7a88 100644 --- a/packages/client-cloudwatch/.gitignore +++ b/packages/client-cloudwatch/.gitignore @@ -38,7 +38,6 @@ jspm_packages/ !/tsconfig.src.json !/tsconfig.dev.json !/tsconfig.esm.json -!/tsconfig.cjs.json !/docgen.json docs/ !/vitest.config.ts diff --git a/packages/client-cloudwatch/.npmignore b/packages/client-cloudwatch/.npmignore index fe4e41d6..e202c1d1 100644 --- a/packages/client-cloudwatch/.npmignore +++ b/packages/client-cloudwatch/.npmignore @@ -15,5 +15,4 @@ tsconfig.tsbuildinfo /tsconfig.src.json /tsconfig.dev.json /tsconfig.esm.json -/tsconfig.cjs.json /.gitattributes diff --git a/packages/client-cloudwatch/.projen/files.json b/packages/client-cloudwatch/.projen/files.json index e57ad5f8..1f5dd1db 100644 --- a/packages/client-cloudwatch/.projen/files.json +++ b/packages/client-cloudwatch/.projen/files.json @@ -8,7 +8,6 @@ ".projen/tasks.json", "docgen.json", "LICENSE", - "tsconfig.cjs.json", "tsconfig.dev.json", "tsconfig.esm.json", "tsconfig.json", diff --git a/packages/client-cloudwatch/.projen/tasks.json b/packages/client-cloudwatch/.projen/tasks.json index ad983f13..45b10abd 100644 --- a/packages/client-cloudwatch/.projen/tasks.json +++ b/packages/client-cloudwatch/.projen/tasks.json @@ -26,7 +26,7 @@ "description": "Only compile", "steps": [ { - "exec": "tsc -b ./tsconfig.cjs.json ./tsconfig.esm.json" + "exec": "tsc -b ./tsconfig.esm.json" } ] }, diff --git a/packages/client-cloudwatch/tsconfig.cjs.json b/packages/client-cloudwatch/tsconfig.cjs.json deleted file mode 100644 index dc7413de..00000000 --- a/packages/client-cloudwatch/tsconfig.cjs.json +++ /dev/null @@ -1,15 +0,0 @@ -// ~~ Generated by projen. To modify, edit .projenrc.js and run "npx projen". -{ - "extends": "./tsconfig.src.json", - "compilerOptions": { - "tsBuildInfoFile": ".tsbuildinfo/cjs.tsbuildinfo", - "outDir": "build/cjs", - "moduleResolution": "node", - "module": "CommonJS" - }, - "references": [ - { - "path": "../commons/tsconfig.cjs.json" - } - ] -} diff --git a/packages/client-codedeploy/.gitattributes b/packages/client-codedeploy/.gitattributes index 44ee1f36..25ecb9bb 100644 --- a/packages/client-codedeploy/.gitattributes +++ b/packages/client-codedeploy/.gitattributes @@ -13,7 +13,6 @@ /LICENSE linguist-generated /package.json linguist-generated /pnpm-lock.yaml linguist-generated -/tsconfig.cjs.json linguist-generated /tsconfig.dev.json linguist-generated /tsconfig.esm.json linguist-generated /tsconfig.json linguist-generated diff --git a/packages/client-codedeploy/.gitignore b/packages/client-codedeploy/.gitignore index 9b3e7285..919c7a88 100644 --- a/packages/client-codedeploy/.gitignore +++ b/packages/client-codedeploy/.gitignore @@ -38,7 +38,6 @@ jspm_packages/ !/tsconfig.src.json !/tsconfig.dev.json !/tsconfig.esm.json -!/tsconfig.cjs.json !/docgen.json docs/ !/vitest.config.ts diff --git a/packages/client-codedeploy/.npmignore b/packages/client-codedeploy/.npmignore index fe4e41d6..e202c1d1 100644 --- a/packages/client-codedeploy/.npmignore +++ b/packages/client-codedeploy/.npmignore @@ -15,5 +15,4 @@ tsconfig.tsbuildinfo /tsconfig.src.json /tsconfig.dev.json /tsconfig.esm.json -/tsconfig.cjs.json /.gitattributes diff --git a/packages/client-codedeploy/.projen/files.json b/packages/client-codedeploy/.projen/files.json index e57ad5f8..1f5dd1db 100644 --- a/packages/client-codedeploy/.projen/files.json +++ b/packages/client-codedeploy/.projen/files.json @@ -8,7 +8,6 @@ ".projen/tasks.json", "docgen.json", "LICENSE", - "tsconfig.cjs.json", "tsconfig.dev.json", "tsconfig.esm.json", "tsconfig.json", diff --git a/packages/client-codedeploy/.projen/tasks.json b/packages/client-codedeploy/.projen/tasks.json index ad983f13..45b10abd 100644 --- a/packages/client-codedeploy/.projen/tasks.json +++ b/packages/client-codedeploy/.projen/tasks.json @@ -26,7 +26,7 @@ "description": "Only compile", "steps": [ { - "exec": "tsc -b ./tsconfig.cjs.json ./tsconfig.esm.json" + "exec": "tsc -b ./tsconfig.esm.json" } ] }, diff --git a/packages/client-codedeploy/tsconfig.cjs.json b/packages/client-codedeploy/tsconfig.cjs.json deleted file mode 100644 index dc7413de..00000000 --- a/packages/client-codedeploy/tsconfig.cjs.json +++ /dev/null @@ -1,15 +0,0 @@ -// ~~ Generated by projen. To modify, edit .projenrc.js and run "npx projen". -{ - "extends": "./tsconfig.src.json", - "compilerOptions": { - "tsBuildInfoFile": ".tsbuildinfo/cjs.tsbuildinfo", - "outDir": "build/cjs", - "moduleResolution": "node", - "module": "CommonJS" - }, - "references": [ - { - "path": "../commons/tsconfig.cjs.json" - } - ] -} diff --git a/packages/client-cognito-identity-provider/.gitattributes b/packages/client-cognito-identity-provider/.gitattributes index 44ee1f36..25ecb9bb 100644 --- a/packages/client-cognito-identity-provider/.gitattributes +++ b/packages/client-cognito-identity-provider/.gitattributes @@ -13,7 +13,6 @@ /LICENSE linguist-generated /package.json linguist-generated /pnpm-lock.yaml linguist-generated -/tsconfig.cjs.json linguist-generated /tsconfig.dev.json linguist-generated /tsconfig.esm.json linguist-generated /tsconfig.json linguist-generated diff --git a/packages/client-cognito-identity-provider/.gitignore b/packages/client-cognito-identity-provider/.gitignore index 9b3e7285..919c7a88 100644 --- a/packages/client-cognito-identity-provider/.gitignore +++ b/packages/client-cognito-identity-provider/.gitignore @@ -38,7 +38,6 @@ jspm_packages/ !/tsconfig.src.json !/tsconfig.dev.json !/tsconfig.esm.json -!/tsconfig.cjs.json !/docgen.json docs/ !/vitest.config.ts diff --git a/packages/client-cognito-identity-provider/.npmignore b/packages/client-cognito-identity-provider/.npmignore index fe4e41d6..e202c1d1 100644 --- a/packages/client-cognito-identity-provider/.npmignore +++ b/packages/client-cognito-identity-provider/.npmignore @@ -15,5 +15,4 @@ tsconfig.tsbuildinfo /tsconfig.src.json /tsconfig.dev.json /tsconfig.esm.json -/tsconfig.cjs.json /.gitattributes diff --git a/packages/client-cognito-identity-provider/.projen/files.json b/packages/client-cognito-identity-provider/.projen/files.json index e57ad5f8..1f5dd1db 100644 --- a/packages/client-cognito-identity-provider/.projen/files.json +++ b/packages/client-cognito-identity-provider/.projen/files.json @@ -8,7 +8,6 @@ ".projen/tasks.json", "docgen.json", "LICENSE", - "tsconfig.cjs.json", "tsconfig.dev.json", "tsconfig.esm.json", "tsconfig.json", diff --git a/packages/client-cognito-identity-provider/.projen/tasks.json b/packages/client-cognito-identity-provider/.projen/tasks.json index ad983f13..45b10abd 100644 --- a/packages/client-cognito-identity-provider/.projen/tasks.json +++ b/packages/client-cognito-identity-provider/.projen/tasks.json @@ -26,7 +26,7 @@ "description": "Only compile", "steps": [ { - "exec": "tsc -b ./tsconfig.cjs.json ./tsconfig.esm.json" + "exec": "tsc -b ./tsconfig.esm.json" } ] }, diff --git a/packages/client-cognito-identity-provider/tsconfig.cjs.json b/packages/client-cognito-identity-provider/tsconfig.cjs.json deleted file mode 100644 index dc7413de..00000000 --- a/packages/client-cognito-identity-provider/tsconfig.cjs.json +++ /dev/null @@ -1,15 +0,0 @@ -// ~~ Generated by projen. To modify, edit .projenrc.js and run "npx projen". -{ - "extends": "./tsconfig.src.json", - "compilerOptions": { - "tsBuildInfoFile": ".tsbuildinfo/cjs.tsbuildinfo", - "outDir": "build/cjs", - "moduleResolution": "node", - "module": "CommonJS" - }, - "references": [ - { - "path": "../commons/tsconfig.cjs.json" - } - ] -} diff --git a/packages/client-data-pipeline/.gitattributes b/packages/client-data-pipeline/.gitattributes index 44ee1f36..25ecb9bb 100644 --- a/packages/client-data-pipeline/.gitattributes +++ b/packages/client-data-pipeline/.gitattributes @@ -13,7 +13,6 @@ /LICENSE linguist-generated /package.json linguist-generated /pnpm-lock.yaml linguist-generated -/tsconfig.cjs.json linguist-generated /tsconfig.dev.json linguist-generated /tsconfig.esm.json linguist-generated /tsconfig.json linguist-generated diff --git a/packages/client-data-pipeline/.gitignore b/packages/client-data-pipeline/.gitignore index 9b3e7285..919c7a88 100644 --- a/packages/client-data-pipeline/.gitignore +++ b/packages/client-data-pipeline/.gitignore @@ -38,7 +38,6 @@ jspm_packages/ !/tsconfig.src.json !/tsconfig.dev.json !/tsconfig.esm.json -!/tsconfig.cjs.json !/docgen.json docs/ !/vitest.config.ts diff --git a/packages/client-data-pipeline/.npmignore b/packages/client-data-pipeline/.npmignore index fe4e41d6..e202c1d1 100644 --- a/packages/client-data-pipeline/.npmignore +++ b/packages/client-data-pipeline/.npmignore @@ -15,5 +15,4 @@ tsconfig.tsbuildinfo /tsconfig.src.json /tsconfig.dev.json /tsconfig.esm.json -/tsconfig.cjs.json /.gitattributes diff --git a/packages/client-data-pipeline/.projen/files.json b/packages/client-data-pipeline/.projen/files.json index e57ad5f8..1f5dd1db 100644 --- a/packages/client-data-pipeline/.projen/files.json +++ b/packages/client-data-pipeline/.projen/files.json @@ -8,7 +8,6 @@ ".projen/tasks.json", "docgen.json", "LICENSE", - "tsconfig.cjs.json", "tsconfig.dev.json", "tsconfig.esm.json", "tsconfig.json", diff --git a/packages/client-data-pipeline/.projen/tasks.json b/packages/client-data-pipeline/.projen/tasks.json index ad983f13..45b10abd 100644 --- a/packages/client-data-pipeline/.projen/tasks.json +++ b/packages/client-data-pipeline/.projen/tasks.json @@ -26,7 +26,7 @@ "description": "Only compile", "steps": [ { - "exec": "tsc -b ./tsconfig.cjs.json ./tsconfig.esm.json" + "exec": "tsc -b ./tsconfig.esm.json" } ] }, diff --git a/packages/client-data-pipeline/tsconfig.cjs.json b/packages/client-data-pipeline/tsconfig.cjs.json deleted file mode 100644 index dc7413de..00000000 --- a/packages/client-data-pipeline/tsconfig.cjs.json +++ /dev/null @@ -1,15 +0,0 @@ -// ~~ Generated by projen. To modify, edit .projenrc.js and run "npx projen". -{ - "extends": "./tsconfig.src.json", - "compilerOptions": { - "tsBuildInfoFile": ".tsbuildinfo/cjs.tsbuildinfo", - "outDir": "build/cjs", - "moduleResolution": "node", - "module": "CommonJS" - }, - "references": [ - { - "path": "../commons/tsconfig.cjs.json" - } - ] -} diff --git a/packages/client-dsql/.gitattributes b/packages/client-dsql/.gitattributes index 44ee1f36..25ecb9bb 100644 --- a/packages/client-dsql/.gitattributes +++ b/packages/client-dsql/.gitattributes @@ -13,7 +13,6 @@ /LICENSE linguist-generated /package.json linguist-generated /pnpm-lock.yaml linguist-generated -/tsconfig.cjs.json linguist-generated /tsconfig.dev.json linguist-generated /tsconfig.esm.json linguist-generated /tsconfig.json linguist-generated diff --git a/packages/client-dsql/.gitignore b/packages/client-dsql/.gitignore index 9b3e7285..919c7a88 100644 --- a/packages/client-dsql/.gitignore +++ b/packages/client-dsql/.gitignore @@ -38,7 +38,6 @@ jspm_packages/ !/tsconfig.src.json !/tsconfig.dev.json !/tsconfig.esm.json -!/tsconfig.cjs.json !/docgen.json docs/ !/vitest.config.ts diff --git a/packages/client-dsql/.npmignore b/packages/client-dsql/.npmignore index fe4e41d6..e202c1d1 100644 --- a/packages/client-dsql/.npmignore +++ b/packages/client-dsql/.npmignore @@ -15,5 +15,4 @@ tsconfig.tsbuildinfo /tsconfig.src.json /tsconfig.dev.json /tsconfig.esm.json -/tsconfig.cjs.json /.gitattributes diff --git a/packages/client-dsql/.projen/files.json b/packages/client-dsql/.projen/files.json index e57ad5f8..1f5dd1db 100644 --- a/packages/client-dsql/.projen/files.json +++ b/packages/client-dsql/.projen/files.json @@ -8,7 +8,6 @@ ".projen/tasks.json", "docgen.json", "LICENSE", - "tsconfig.cjs.json", "tsconfig.dev.json", "tsconfig.esm.json", "tsconfig.json", diff --git a/packages/client-dsql/.projen/tasks.json b/packages/client-dsql/.projen/tasks.json index ad983f13..45b10abd 100644 --- a/packages/client-dsql/.projen/tasks.json +++ b/packages/client-dsql/.projen/tasks.json @@ -26,7 +26,7 @@ "description": "Only compile", "steps": [ { - "exec": "tsc -b ./tsconfig.cjs.json ./tsconfig.esm.json" + "exec": "tsc -b ./tsconfig.esm.json" } ] }, diff --git a/packages/client-dsql/tsconfig.cjs.json b/packages/client-dsql/tsconfig.cjs.json deleted file mode 100644 index dc7413de..00000000 --- a/packages/client-dsql/tsconfig.cjs.json +++ /dev/null @@ -1,15 +0,0 @@ -// ~~ Generated by projen. To modify, edit .projenrc.js and run "npx projen". -{ - "extends": "./tsconfig.src.json", - "compilerOptions": { - "tsBuildInfoFile": ".tsbuildinfo/cjs.tsbuildinfo", - "outDir": "build/cjs", - "moduleResolution": "node", - "module": "CommonJS" - }, - "references": [ - { - "path": "../commons/tsconfig.cjs.json" - } - ] -} diff --git a/packages/client-dynamodb/.gitattributes b/packages/client-dynamodb/.gitattributes index 44ee1f36..25ecb9bb 100644 --- a/packages/client-dynamodb/.gitattributes +++ b/packages/client-dynamodb/.gitattributes @@ -13,7 +13,6 @@ /LICENSE linguist-generated /package.json linguist-generated /pnpm-lock.yaml linguist-generated -/tsconfig.cjs.json linguist-generated /tsconfig.dev.json linguist-generated /tsconfig.esm.json linguist-generated /tsconfig.json linguist-generated diff --git a/packages/client-dynamodb/.gitignore b/packages/client-dynamodb/.gitignore index 9b3e7285..919c7a88 100644 --- a/packages/client-dynamodb/.gitignore +++ b/packages/client-dynamodb/.gitignore @@ -38,7 +38,6 @@ jspm_packages/ !/tsconfig.src.json !/tsconfig.dev.json !/tsconfig.esm.json -!/tsconfig.cjs.json !/docgen.json docs/ !/vitest.config.ts diff --git a/packages/client-dynamodb/.npmignore b/packages/client-dynamodb/.npmignore index fe4e41d6..e202c1d1 100644 --- a/packages/client-dynamodb/.npmignore +++ b/packages/client-dynamodb/.npmignore @@ -15,5 +15,4 @@ tsconfig.tsbuildinfo /tsconfig.src.json /tsconfig.dev.json /tsconfig.esm.json -/tsconfig.cjs.json /.gitattributes diff --git a/packages/client-dynamodb/.projen/files.json b/packages/client-dynamodb/.projen/files.json index e57ad5f8..1f5dd1db 100644 --- a/packages/client-dynamodb/.projen/files.json +++ b/packages/client-dynamodb/.projen/files.json @@ -8,7 +8,6 @@ ".projen/tasks.json", "docgen.json", "LICENSE", - "tsconfig.cjs.json", "tsconfig.dev.json", "tsconfig.esm.json", "tsconfig.json", diff --git a/packages/client-dynamodb/.projen/tasks.json b/packages/client-dynamodb/.projen/tasks.json index ad983f13..45b10abd 100644 --- a/packages/client-dynamodb/.projen/tasks.json +++ b/packages/client-dynamodb/.projen/tasks.json @@ -26,7 +26,7 @@ "description": "Only compile", "steps": [ { - "exec": "tsc -b ./tsconfig.cjs.json ./tsconfig.esm.json" + "exec": "tsc -b ./tsconfig.esm.json" } ] }, diff --git a/packages/client-dynamodb/tsconfig.cjs.json b/packages/client-dynamodb/tsconfig.cjs.json deleted file mode 100644 index dc7413de..00000000 --- a/packages/client-dynamodb/tsconfig.cjs.json +++ /dev/null @@ -1,15 +0,0 @@ -// ~~ Generated by projen. To modify, edit .projenrc.js and run "npx projen". -{ - "extends": "./tsconfig.src.json", - "compilerOptions": { - "tsBuildInfoFile": ".tsbuildinfo/cjs.tsbuildinfo", - "outDir": "build/cjs", - "moduleResolution": "node", - "module": "CommonJS" - }, - "references": [ - { - "path": "../commons/tsconfig.cjs.json" - } - ] -} diff --git a/packages/client-ec2/.gitattributes b/packages/client-ec2/.gitattributes index 44ee1f36..25ecb9bb 100644 --- a/packages/client-ec2/.gitattributes +++ b/packages/client-ec2/.gitattributes @@ -13,7 +13,6 @@ /LICENSE linguist-generated /package.json linguist-generated /pnpm-lock.yaml linguist-generated -/tsconfig.cjs.json linguist-generated /tsconfig.dev.json linguist-generated /tsconfig.esm.json linguist-generated /tsconfig.json linguist-generated diff --git a/packages/client-ec2/.gitignore b/packages/client-ec2/.gitignore index 9b3e7285..919c7a88 100644 --- a/packages/client-ec2/.gitignore +++ b/packages/client-ec2/.gitignore @@ -38,7 +38,6 @@ jspm_packages/ !/tsconfig.src.json !/tsconfig.dev.json !/tsconfig.esm.json -!/tsconfig.cjs.json !/docgen.json docs/ !/vitest.config.ts diff --git a/packages/client-ec2/.npmignore b/packages/client-ec2/.npmignore index fe4e41d6..e202c1d1 100644 --- a/packages/client-ec2/.npmignore +++ b/packages/client-ec2/.npmignore @@ -15,5 +15,4 @@ tsconfig.tsbuildinfo /tsconfig.src.json /tsconfig.dev.json /tsconfig.esm.json -/tsconfig.cjs.json /.gitattributes diff --git a/packages/client-ec2/.projen/files.json b/packages/client-ec2/.projen/files.json index e57ad5f8..1f5dd1db 100644 --- a/packages/client-ec2/.projen/files.json +++ b/packages/client-ec2/.projen/files.json @@ -8,7 +8,6 @@ ".projen/tasks.json", "docgen.json", "LICENSE", - "tsconfig.cjs.json", "tsconfig.dev.json", "tsconfig.esm.json", "tsconfig.json", diff --git a/packages/client-ec2/.projen/tasks.json b/packages/client-ec2/.projen/tasks.json index ad983f13..45b10abd 100644 --- a/packages/client-ec2/.projen/tasks.json +++ b/packages/client-ec2/.projen/tasks.json @@ -26,7 +26,7 @@ "description": "Only compile", "steps": [ { - "exec": "tsc -b ./tsconfig.cjs.json ./tsconfig.esm.json" + "exec": "tsc -b ./tsconfig.esm.json" } ] }, diff --git a/packages/client-ec2/tsconfig.cjs.json b/packages/client-ec2/tsconfig.cjs.json deleted file mode 100644 index dc7413de..00000000 --- a/packages/client-ec2/tsconfig.cjs.json +++ /dev/null @@ -1,15 +0,0 @@ -// ~~ Generated by projen. To modify, edit .projenrc.js and run "npx projen". -{ - "extends": "./tsconfig.src.json", - "compilerOptions": { - "tsBuildInfoFile": ".tsbuildinfo/cjs.tsbuildinfo", - "outDir": "build/cjs", - "moduleResolution": "node", - "module": "CommonJS" - }, - "references": [ - { - "path": "../commons/tsconfig.cjs.json" - } - ] -} diff --git a/packages/client-ecr/.gitattributes b/packages/client-ecr/.gitattributes index 44ee1f36..25ecb9bb 100644 --- a/packages/client-ecr/.gitattributes +++ b/packages/client-ecr/.gitattributes @@ -13,7 +13,6 @@ /LICENSE linguist-generated /package.json linguist-generated /pnpm-lock.yaml linguist-generated -/tsconfig.cjs.json linguist-generated /tsconfig.dev.json linguist-generated /tsconfig.esm.json linguist-generated /tsconfig.json linguist-generated diff --git a/packages/client-ecr/.gitignore b/packages/client-ecr/.gitignore index 9b3e7285..919c7a88 100644 --- a/packages/client-ecr/.gitignore +++ b/packages/client-ecr/.gitignore @@ -38,7 +38,6 @@ jspm_packages/ !/tsconfig.src.json !/tsconfig.dev.json !/tsconfig.esm.json -!/tsconfig.cjs.json !/docgen.json docs/ !/vitest.config.ts diff --git a/packages/client-ecr/.npmignore b/packages/client-ecr/.npmignore index fe4e41d6..e202c1d1 100644 --- a/packages/client-ecr/.npmignore +++ b/packages/client-ecr/.npmignore @@ -15,5 +15,4 @@ tsconfig.tsbuildinfo /tsconfig.src.json /tsconfig.dev.json /tsconfig.esm.json -/tsconfig.cjs.json /.gitattributes diff --git a/packages/client-ecr/.projen/files.json b/packages/client-ecr/.projen/files.json index e57ad5f8..1f5dd1db 100644 --- a/packages/client-ecr/.projen/files.json +++ b/packages/client-ecr/.projen/files.json @@ -8,7 +8,6 @@ ".projen/tasks.json", "docgen.json", "LICENSE", - "tsconfig.cjs.json", "tsconfig.dev.json", "tsconfig.esm.json", "tsconfig.json", diff --git a/packages/client-ecr/.projen/tasks.json b/packages/client-ecr/.projen/tasks.json index ad983f13..45b10abd 100644 --- a/packages/client-ecr/.projen/tasks.json +++ b/packages/client-ecr/.projen/tasks.json @@ -26,7 +26,7 @@ "description": "Only compile", "steps": [ { - "exec": "tsc -b ./tsconfig.cjs.json ./tsconfig.esm.json" + "exec": "tsc -b ./tsconfig.esm.json" } ] }, diff --git a/packages/client-ecr/tsconfig.cjs.json b/packages/client-ecr/tsconfig.cjs.json deleted file mode 100644 index dc7413de..00000000 --- a/packages/client-ecr/tsconfig.cjs.json +++ /dev/null @@ -1,15 +0,0 @@ -// ~~ Generated by projen. To modify, edit .projenrc.js and run "npx projen". -{ - "extends": "./tsconfig.src.json", - "compilerOptions": { - "tsBuildInfoFile": ".tsbuildinfo/cjs.tsbuildinfo", - "outDir": "build/cjs", - "moduleResolution": "node", - "module": "CommonJS" - }, - "references": [ - { - "path": "../commons/tsconfig.cjs.json" - } - ] -} diff --git a/packages/client-ecs/.gitattributes b/packages/client-ecs/.gitattributes index 44ee1f36..25ecb9bb 100644 --- a/packages/client-ecs/.gitattributes +++ b/packages/client-ecs/.gitattributes @@ -13,7 +13,6 @@ /LICENSE linguist-generated /package.json linguist-generated /pnpm-lock.yaml linguist-generated -/tsconfig.cjs.json linguist-generated /tsconfig.dev.json linguist-generated /tsconfig.esm.json linguist-generated /tsconfig.json linguist-generated diff --git a/packages/client-ecs/.gitignore b/packages/client-ecs/.gitignore index 9b3e7285..919c7a88 100644 --- a/packages/client-ecs/.gitignore +++ b/packages/client-ecs/.gitignore @@ -38,7 +38,6 @@ jspm_packages/ !/tsconfig.src.json !/tsconfig.dev.json !/tsconfig.esm.json -!/tsconfig.cjs.json !/docgen.json docs/ !/vitest.config.ts diff --git a/packages/client-ecs/.npmignore b/packages/client-ecs/.npmignore index fe4e41d6..e202c1d1 100644 --- a/packages/client-ecs/.npmignore +++ b/packages/client-ecs/.npmignore @@ -15,5 +15,4 @@ tsconfig.tsbuildinfo /tsconfig.src.json /tsconfig.dev.json /tsconfig.esm.json -/tsconfig.cjs.json /.gitattributes diff --git a/packages/client-ecs/.projen/files.json b/packages/client-ecs/.projen/files.json index e57ad5f8..1f5dd1db 100644 --- a/packages/client-ecs/.projen/files.json +++ b/packages/client-ecs/.projen/files.json @@ -8,7 +8,6 @@ ".projen/tasks.json", "docgen.json", "LICENSE", - "tsconfig.cjs.json", "tsconfig.dev.json", "tsconfig.esm.json", "tsconfig.json", diff --git a/packages/client-ecs/.projen/tasks.json b/packages/client-ecs/.projen/tasks.json index ad983f13..45b10abd 100644 --- a/packages/client-ecs/.projen/tasks.json +++ b/packages/client-ecs/.projen/tasks.json @@ -26,7 +26,7 @@ "description": "Only compile", "steps": [ { - "exec": "tsc -b ./tsconfig.cjs.json ./tsconfig.esm.json" + "exec": "tsc -b ./tsconfig.esm.json" } ] }, diff --git a/packages/client-ecs/tsconfig.cjs.json b/packages/client-ecs/tsconfig.cjs.json deleted file mode 100644 index dc7413de..00000000 --- a/packages/client-ecs/tsconfig.cjs.json +++ /dev/null @@ -1,15 +0,0 @@ -// ~~ Generated by projen. To modify, edit .projenrc.js and run "npx projen". -{ - "extends": "./tsconfig.src.json", - "compilerOptions": { - "tsBuildInfoFile": ".tsbuildinfo/cjs.tsbuildinfo", - "outDir": "build/cjs", - "moduleResolution": "node", - "module": "CommonJS" - }, - "references": [ - { - "path": "../commons/tsconfig.cjs.json" - } - ] -} diff --git a/packages/client-elasticache/.gitattributes b/packages/client-elasticache/.gitattributes index 44ee1f36..25ecb9bb 100644 --- a/packages/client-elasticache/.gitattributes +++ b/packages/client-elasticache/.gitattributes @@ -13,7 +13,6 @@ /LICENSE linguist-generated /package.json linguist-generated /pnpm-lock.yaml linguist-generated -/tsconfig.cjs.json linguist-generated /tsconfig.dev.json linguist-generated /tsconfig.esm.json linguist-generated /tsconfig.json linguist-generated diff --git a/packages/client-elasticache/.gitignore b/packages/client-elasticache/.gitignore index 9b3e7285..919c7a88 100644 --- a/packages/client-elasticache/.gitignore +++ b/packages/client-elasticache/.gitignore @@ -38,7 +38,6 @@ jspm_packages/ !/tsconfig.src.json !/tsconfig.dev.json !/tsconfig.esm.json -!/tsconfig.cjs.json !/docgen.json docs/ !/vitest.config.ts diff --git a/packages/client-elasticache/.npmignore b/packages/client-elasticache/.npmignore index fe4e41d6..e202c1d1 100644 --- a/packages/client-elasticache/.npmignore +++ b/packages/client-elasticache/.npmignore @@ -15,5 +15,4 @@ tsconfig.tsbuildinfo /tsconfig.src.json /tsconfig.dev.json /tsconfig.esm.json -/tsconfig.cjs.json /.gitattributes diff --git a/packages/client-elasticache/.projen/files.json b/packages/client-elasticache/.projen/files.json index e57ad5f8..1f5dd1db 100644 --- a/packages/client-elasticache/.projen/files.json +++ b/packages/client-elasticache/.projen/files.json @@ -8,7 +8,6 @@ ".projen/tasks.json", "docgen.json", "LICENSE", - "tsconfig.cjs.json", "tsconfig.dev.json", "tsconfig.esm.json", "tsconfig.json", diff --git a/packages/client-elasticache/.projen/tasks.json b/packages/client-elasticache/.projen/tasks.json index ad983f13..45b10abd 100644 --- a/packages/client-elasticache/.projen/tasks.json +++ b/packages/client-elasticache/.projen/tasks.json @@ -26,7 +26,7 @@ "description": "Only compile", "steps": [ { - "exec": "tsc -b ./tsconfig.cjs.json ./tsconfig.esm.json" + "exec": "tsc -b ./tsconfig.esm.json" } ] }, diff --git a/packages/client-elasticache/tsconfig.cjs.json b/packages/client-elasticache/tsconfig.cjs.json deleted file mode 100644 index dc7413de..00000000 --- a/packages/client-elasticache/tsconfig.cjs.json +++ /dev/null @@ -1,15 +0,0 @@ -// ~~ Generated by projen. To modify, edit .projenrc.js and run "npx projen". -{ - "extends": "./tsconfig.src.json", - "compilerOptions": { - "tsBuildInfoFile": ".tsbuildinfo/cjs.tsbuildinfo", - "outDir": "build/cjs", - "moduleResolution": "node", - "module": "CommonJS" - }, - "references": [ - { - "path": "../commons/tsconfig.cjs.json" - } - ] -} diff --git a/packages/client-eventbridge/.gitattributes b/packages/client-eventbridge/.gitattributes index 44ee1f36..25ecb9bb 100644 --- a/packages/client-eventbridge/.gitattributes +++ b/packages/client-eventbridge/.gitattributes @@ -13,7 +13,6 @@ /LICENSE linguist-generated /package.json linguist-generated /pnpm-lock.yaml linguist-generated -/tsconfig.cjs.json linguist-generated /tsconfig.dev.json linguist-generated /tsconfig.esm.json linguist-generated /tsconfig.json linguist-generated diff --git a/packages/client-eventbridge/.gitignore b/packages/client-eventbridge/.gitignore index 9b3e7285..919c7a88 100644 --- a/packages/client-eventbridge/.gitignore +++ b/packages/client-eventbridge/.gitignore @@ -38,7 +38,6 @@ jspm_packages/ !/tsconfig.src.json !/tsconfig.dev.json !/tsconfig.esm.json -!/tsconfig.cjs.json !/docgen.json docs/ !/vitest.config.ts diff --git a/packages/client-eventbridge/.npmignore b/packages/client-eventbridge/.npmignore index fe4e41d6..e202c1d1 100644 --- a/packages/client-eventbridge/.npmignore +++ b/packages/client-eventbridge/.npmignore @@ -15,5 +15,4 @@ tsconfig.tsbuildinfo /tsconfig.src.json /tsconfig.dev.json /tsconfig.esm.json -/tsconfig.cjs.json /.gitattributes diff --git a/packages/client-eventbridge/.projen/files.json b/packages/client-eventbridge/.projen/files.json index e57ad5f8..1f5dd1db 100644 --- a/packages/client-eventbridge/.projen/files.json +++ b/packages/client-eventbridge/.projen/files.json @@ -8,7 +8,6 @@ ".projen/tasks.json", "docgen.json", "LICENSE", - "tsconfig.cjs.json", "tsconfig.dev.json", "tsconfig.esm.json", "tsconfig.json", diff --git a/packages/client-eventbridge/.projen/tasks.json b/packages/client-eventbridge/.projen/tasks.json index ad983f13..45b10abd 100644 --- a/packages/client-eventbridge/.projen/tasks.json +++ b/packages/client-eventbridge/.projen/tasks.json @@ -26,7 +26,7 @@ "description": "Only compile", "steps": [ { - "exec": "tsc -b ./tsconfig.cjs.json ./tsconfig.esm.json" + "exec": "tsc -b ./tsconfig.esm.json" } ] }, diff --git a/packages/client-eventbridge/tsconfig.cjs.json b/packages/client-eventbridge/tsconfig.cjs.json deleted file mode 100644 index dc7413de..00000000 --- a/packages/client-eventbridge/tsconfig.cjs.json +++ /dev/null @@ -1,15 +0,0 @@ -// ~~ Generated by projen. To modify, edit .projenrc.js and run "npx projen". -{ - "extends": "./tsconfig.src.json", - "compilerOptions": { - "tsBuildInfoFile": ".tsbuildinfo/cjs.tsbuildinfo", - "outDir": "build/cjs", - "moduleResolution": "node", - "module": "CommonJS" - }, - "references": [ - { - "path": "../commons/tsconfig.cjs.json" - } - ] -} diff --git a/packages/client-firehose/.gitattributes b/packages/client-firehose/.gitattributes index 44ee1f36..25ecb9bb 100644 --- a/packages/client-firehose/.gitattributes +++ b/packages/client-firehose/.gitattributes @@ -13,7 +13,6 @@ /LICENSE linguist-generated /package.json linguist-generated /pnpm-lock.yaml linguist-generated -/tsconfig.cjs.json linguist-generated /tsconfig.dev.json linguist-generated /tsconfig.esm.json linguist-generated /tsconfig.json linguist-generated diff --git a/packages/client-firehose/.gitignore b/packages/client-firehose/.gitignore index 9b3e7285..919c7a88 100644 --- a/packages/client-firehose/.gitignore +++ b/packages/client-firehose/.gitignore @@ -38,7 +38,6 @@ jspm_packages/ !/tsconfig.src.json !/tsconfig.dev.json !/tsconfig.esm.json -!/tsconfig.cjs.json !/docgen.json docs/ !/vitest.config.ts diff --git a/packages/client-firehose/.npmignore b/packages/client-firehose/.npmignore index fe4e41d6..e202c1d1 100644 --- a/packages/client-firehose/.npmignore +++ b/packages/client-firehose/.npmignore @@ -15,5 +15,4 @@ tsconfig.tsbuildinfo /tsconfig.src.json /tsconfig.dev.json /tsconfig.esm.json -/tsconfig.cjs.json /.gitattributes diff --git a/packages/client-firehose/.projen/files.json b/packages/client-firehose/.projen/files.json index e57ad5f8..1f5dd1db 100644 --- a/packages/client-firehose/.projen/files.json +++ b/packages/client-firehose/.projen/files.json @@ -8,7 +8,6 @@ ".projen/tasks.json", "docgen.json", "LICENSE", - "tsconfig.cjs.json", "tsconfig.dev.json", "tsconfig.esm.json", "tsconfig.json", diff --git a/packages/client-firehose/.projen/tasks.json b/packages/client-firehose/.projen/tasks.json index ad983f13..45b10abd 100644 --- a/packages/client-firehose/.projen/tasks.json +++ b/packages/client-firehose/.projen/tasks.json @@ -26,7 +26,7 @@ "description": "Only compile", "steps": [ { - "exec": "tsc -b ./tsconfig.cjs.json ./tsconfig.esm.json" + "exec": "tsc -b ./tsconfig.esm.json" } ] }, diff --git a/packages/client-firehose/tsconfig.cjs.json b/packages/client-firehose/tsconfig.cjs.json deleted file mode 100644 index dc7413de..00000000 --- a/packages/client-firehose/tsconfig.cjs.json +++ /dev/null @@ -1,15 +0,0 @@ -// ~~ Generated by projen. To modify, edit .projenrc.js and run "npx projen". -{ - "extends": "./tsconfig.src.json", - "compilerOptions": { - "tsBuildInfoFile": ".tsbuildinfo/cjs.tsbuildinfo", - "outDir": "build/cjs", - "moduleResolution": "node", - "module": "CommonJS" - }, - "references": [ - { - "path": "../commons/tsconfig.cjs.json" - } - ] -} diff --git a/packages/client-glue/.gitattributes b/packages/client-glue/.gitattributes index 44ee1f36..25ecb9bb 100644 --- a/packages/client-glue/.gitattributes +++ b/packages/client-glue/.gitattributes @@ -13,7 +13,6 @@ /LICENSE linguist-generated /package.json linguist-generated /pnpm-lock.yaml linguist-generated -/tsconfig.cjs.json linguist-generated /tsconfig.dev.json linguist-generated /tsconfig.esm.json linguist-generated /tsconfig.json linguist-generated diff --git a/packages/client-glue/.gitignore b/packages/client-glue/.gitignore index 9b3e7285..919c7a88 100644 --- a/packages/client-glue/.gitignore +++ b/packages/client-glue/.gitignore @@ -38,7 +38,6 @@ jspm_packages/ !/tsconfig.src.json !/tsconfig.dev.json !/tsconfig.esm.json -!/tsconfig.cjs.json !/docgen.json docs/ !/vitest.config.ts diff --git a/packages/client-glue/.npmignore b/packages/client-glue/.npmignore index fe4e41d6..e202c1d1 100644 --- a/packages/client-glue/.npmignore +++ b/packages/client-glue/.npmignore @@ -15,5 +15,4 @@ tsconfig.tsbuildinfo /tsconfig.src.json /tsconfig.dev.json /tsconfig.esm.json -/tsconfig.cjs.json /.gitattributes diff --git a/packages/client-glue/.projen/files.json b/packages/client-glue/.projen/files.json index e57ad5f8..1f5dd1db 100644 --- a/packages/client-glue/.projen/files.json +++ b/packages/client-glue/.projen/files.json @@ -8,7 +8,6 @@ ".projen/tasks.json", "docgen.json", "LICENSE", - "tsconfig.cjs.json", "tsconfig.dev.json", "tsconfig.esm.json", "tsconfig.json", diff --git a/packages/client-glue/.projen/tasks.json b/packages/client-glue/.projen/tasks.json index ad983f13..45b10abd 100644 --- a/packages/client-glue/.projen/tasks.json +++ b/packages/client-glue/.projen/tasks.json @@ -26,7 +26,7 @@ "description": "Only compile", "steps": [ { - "exec": "tsc -b ./tsconfig.cjs.json ./tsconfig.esm.json" + "exec": "tsc -b ./tsconfig.esm.json" } ] }, diff --git a/packages/client-glue/tsconfig.cjs.json b/packages/client-glue/tsconfig.cjs.json deleted file mode 100644 index dc7413de..00000000 --- a/packages/client-glue/tsconfig.cjs.json +++ /dev/null @@ -1,15 +0,0 @@ -// ~~ Generated by projen. To modify, edit .projenrc.js and run "npx projen". -{ - "extends": "./tsconfig.src.json", - "compilerOptions": { - "tsBuildInfoFile": ".tsbuildinfo/cjs.tsbuildinfo", - "outDir": "build/cjs", - "moduleResolution": "node", - "module": "CommonJS" - }, - "references": [ - { - "path": "../commons/tsconfig.cjs.json" - } - ] -} diff --git a/packages/client-iam/.gitattributes b/packages/client-iam/.gitattributes index 44ee1f36..25ecb9bb 100644 --- a/packages/client-iam/.gitattributes +++ b/packages/client-iam/.gitattributes @@ -13,7 +13,6 @@ /LICENSE linguist-generated /package.json linguist-generated /pnpm-lock.yaml linguist-generated -/tsconfig.cjs.json linguist-generated /tsconfig.dev.json linguist-generated /tsconfig.esm.json linguist-generated /tsconfig.json linguist-generated diff --git a/packages/client-iam/.gitignore b/packages/client-iam/.gitignore index 9b3e7285..919c7a88 100644 --- a/packages/client-iam/.gitignore +++ b/packages/client-iam/.gitignore @@ -38,7 +38,6 @@ jspm_packages/ !/tsconfig.src.json !/tsconfig.dev.json !/tsconfig.esm.json -!/tsconfig.cjs.json !/docgen.json docs/ !/vitest.config.ts diff --git a/packages/client-iam/.npmignore b/packages/client-iam/.npmignore index fe4e41d6..e202c1d1 100644 --- a/packages/client-iam/.npmignore +++ b/packages/client-iam/.npmignore @@ -15,5 +15,4 @@ tsconfig.tsbuildinfo /tsconfig.src.json /tsconfig.dev.json /tsconfig.esm.json -/tsconfig.cjs.json /.gitattributes diff --git a/packages/client-iam/.projen/files.json b/packages/client-iam/.projen/files.json index e57ad5f8..1f5dd1db 100644 --- a/packages/client-iam/.projen/files.json +++ b/packages/client-iam/.projen/files.json @@ -8,7 +8,6 @@ ".projen/tasks.json", "docgen.json", "LICENSE", - "tsconfig.cjs.json", "tsconfig.dev.json", "tsconfig.esm.json", "tsconfig.json", diff --git a/packages/client-iam/.projen/tasks.json b/packages/client-iam/.projen/tasks.json index ad983f13..45b10abd 100644 --- a/packages/client-iam/.projen/tasks.json +++ b/packages/client-iam/.projen/tasks.json @@ -26,7 +26,7 @@ "description": "Only compile", "steps": [ { - "exec": "tsc -b ./tsconfig.cjs.json ./tsconfig.esm.json" + "exec": "tsc -b ./tsconfig.esm.json" } ] }, diff --git a/packages/client-iam/tsconfig.cjs.json b/packages/client-iam/tsconfig.cjs.json deleted file mode 100644 index dc7413de..00000000 --- a/packages/client-iam/tsconfig.cjs.json +++ /dev/null @@ -1,15 +0,0 @@ -// ~~ Generated by projen. To modify, edit .projenrc.js and run "npx projen". -{ - "extends": "./tsconfig.src.json", - "compilerOptions": { - "tsBuildInfoFile": ".tsbuildinfo/cjs.tsbuildinfo", - "outDir": "build/cjs", - "moduleResolution": "node", - "module": "CommonJS" - }, - "references": [ - { - "path": "../commons/tsconfig.cjs.json" - } - ] -} diff --git a/packages/client-iot-data-plane/.gitattributes b/packages/client-iot-data-plane/.gitattributes index 44ee1f36..25ecb9bb 100644 --- a/packages/client-iot-data-plane/.gitattributes +++ b/packages/client-iot-data-plane/.gitattributes @@ -13,7 +13,6 @@ /LICENSE linguist-generated /package.json linguist-generated /pnpm-lock.yaml linguist-generated -/tsconfig.cjs.json linguist-generated /tsconfig.dev.json linguist-generated /tsconfig.esm.json linguist-generated /tsconfig.json linguist-generated diff --git a/packages/client-iot-data-plane/.gitignore b/packages/client-iot-data-plane/.gitignore index 9b3e7285..919c7a88 100644 --- a/packages/client-iot-data-plane/.gitignore +++ b/packages/client-iot-data-plane/.gitignore @@ -38,7 +38,6 @@ jspm_packages/ !/tsconfig.src.json !/tsconfig.dev.json !/tsconfig.esm.json -!/tsconfig.cjs.json !/docgen.json docs/ !/vitest.config.ts diff --git a/packages/client-iot-data-plane/.npmignore b/packages/client-iot-data-plane/.npmignore index fe4e41d6..e202c1d1 100644 --- a/packages/client-iot-data-plane/.npmignore +++ b/packages/client-iot-data-plane/.npmignore @@ -15,5 +15,4 @@ tsconfig.tsbuildinfo /tsconfig.src.json /tsconfig.dev.json /tsconfig.esm.json -/tsconfig.cjs.json /.gitattributes diff --git a/packages/client-iot-data-plane/.projen/files.json b/packages/client-iot-data-plane/.projen/files.json index e57ad5f8..1f5dd1db 100644 --- a/packages/client-iot-data-plane/.projen/files.json +++ b/packages/client-iot-data-plane/.projen/files.json @@ -8,7 +8,6 @@ ".projen/tasks.json", "docgen.json", "LICENSE", - "tsconfig.cjs.json", "tsconfig.dev.json", "tsconfig.esm.json", "tsconfig.json", diff --git a/packages/client-iot-data-plane/.projen/tasks.json b/packages/client-iot-data-plane/.projen/tasks.json index ad983f13..45b10abd 100644 --- a/packages/client-iot-data-plane/.projen/tasks.json +++ b/packages/client-iot-data-plane/.projen/tasks.json @@ -26,7 +26,7 @@ "description": "Only compile", "steps": [ { - "exec": "tsc -b ./tsconfig.cjs.json ./tsconfig.esm.json" + "exec": "tsc -b ./tsconfig.esm.json" } ] }, diff --git a/packages/client-iot-data-plane/tsconfig.cjs.json b/packages/client-iot-data-plane/tsconfig.cjs.json deleted file mode 100644 index dc7413de..00000000 --- a/packages/client-iot-data-plane/tsconfig.cjs.json +++ /dev/null @@ -1,15 +0,0 @@ -// ~~ Generated by projen. To modify, edit .projenrc.js and run "npx projen". -{ - "extends": "./tsconfig.src.json", - "compilerOptions": { - "tsBuildInfoFile": ".tsbuildinfo/cjs.tsbuildinfo", - "outDir": "build/cjs", - "moduleResolution": "node", - "module": "CommonJS" - }, - "references": [ - { - "path": "../commons/tsconfig.cjs.json" - } - ] -} diff --git a/packages/client-iot-events-data/.gitattributes b/packages/client-iot-events-data/.gitattributes index 44ee1f36..25ecb9bb 100644 --- a/packages/client-iot-events-data/.gitattributes +++ b/packages/client-iot-events-data/.gitattributes @@ -13,7 +13,6 @@ /LICENSE linguist-generated /package.json linguist-generated /pnpm-lock.yaml linguist-generated -/tsconfig.cjs.json linguist-generated /tsconfig.dev.json linguist-generated /tsconfig.esm.json linguist-generated /tsconfig.json linguist-generated diff --git a/packages/client-iot-events-data/.gitignore b/packages/client-iot-events-data/.gitignore index 9b3e7285..919c7a88 100644 --- a/packages/client-iot-events-data/.gitignore +++ b/packages/client-iot-events-data/.gitignore @@ -38,7 +38,6 @@ jspm_packages/ !/tsconfig.src.json !/tsconfig.dev.json !/tsconfig.esm.json -!/tsconfig.cjs.json !/docgen.json docs/ !/vitest.config.ts diff --git a/packages/client-iot-events-data/.npmignore b/packages/client-iot-events-data/.npmignore index fe4e41d6..e202c1d1 100644 --- a/packages/client-iot-events-data/.npmignore +++ b/packages/client-iot-events-data/.npmignore @@ -15,5 +15,4 @@ tsconfig.tsbuildinfo /tsconfig.src.json /tsconfig.dev.json /tsconfig.esm.json -/tsconfig.cjs.json /.gitattributes diff --git a/packages/client-iot-events-data/.projen/files.json b/packages/client-iot-events-data/.projen/files.json index e57ad5f8..1f5dd1db 100644 --- a/packages/client-iot-events-data/.projen/files.json +++ b/packages/client-iot-events-data/.projen/files.json @@ -8,7 +8,6 @@ ".projen/tasks.json", "docgen.json", "LICENSE", - "tsconfig.cjs.json", "tsconfig.dev.json", "tsconfig.esm.json", "tsconfig.json", diff --git a/packages/client-iot-events-data/.projen/tasks.json b/packages/client-iot-events-data/.projen/tasks.json index ad983f13..45b10abd 100644 --- a/packages/client-iot-events-data/.projen/tasks.json +++ b/packages/client-iot-events-data/.projen/tasks.json @@ -26,7 +26,7 @@ "description": "Only compile", "steps": [ { - "exec": "tsc -b ./tsconfig.cjs.json ./tsconfig.esm.json" + "exec": "tsc -b ./tsconfig.esm.json" } ] }, diff --git a/packages/client-iot-events-data/tsconfig.cjs.json b/packages/client-iot-events-data/tsconfig.cjs.json deleted file mode 100644 index dc7413de..00000000 --- a/packages/client-iot-events-data/tsconfig.cjs.json +++ /dev/null @@ -1,15 +0,0 @@ -// ~~ Generated by projen. To modify, edit .projenrc.js and run "npx projen". -{ - "extends": "./tsconfig.src.json", - "compilerOptions": { - "tsBuildInfoFile": ".tsbuildinfo/cjs.tsbuildinfo", - "outDir": "build/cjs", - "moduleResolution": "node", - "module": "CommonJS" - }, - "references": [ - { - "path": "../commons/tsconfig.cjs.json" - } - ] -} diff --git a/packages/client-iot-events/.gitattributes b/packages/client-iot-events/.gitattributes index 44ee1f36..25ecb9bb 100644 --- a/packages/client-iot-events/.gitattributes +++ b/packages/client-iot-events/.gitattributes @@ -13,7 +13,6 @@ /LICENSE linguist-generated /package.json linguist-generated /pnpm-lock.yaml linguist-generated -/tsconfig.cjs.json linguist-generated /tsconfig.dev.json linguist-generated /tsconfig.esm.json linguist-generated /tsconfig.json linguist-generated diff --git a/packages/client-iot-events/.gitignore b/packages/client-iot-events/.gitignore index 9b3e7285..919c7a88 100644 --- a/packages/client-iot-events/.gitignore +++ b/packages/client-iot-events/.gitignore @@ -38,7 +38,6 @@ jspm_packages/ !/tsconfig.src.json !/tsconfig.dev.json !/tsconfig.esm.json -!/tsconfig.cjs.json !/docgen.json docs/ !/vitest.config.ts diff --git a/packages/client-iot-events/.npmignore b/packages/client-iot-events/.npmignore index fe4e41d6..e202c1d1 100644 --- a/packages/client-iot-events/.npmignore +++ b/packages/client-iot-events/.npmignore @@ -15,5 +15,4 @@ tsconfig.tsbuildinfo /tsconfig.src.json /tsconfig.dev.json /tsconfig.esm.json -/tsconfig.cjs.json /.gitattributes diff --git a/packages/client-iot-events/.projen/files.json b/packages/client-iot-events/.projen/files.json index e57ad5f8..1f5dd1db 100644 --- a/packages/client-iot-events/.projen/files.json +++ b/packages/client-iot-events/.projen/files.json @@ -8,7 +8,6 @@ ".projen/tasks.json", "docgen.json", "LICENSE", - "tsconfig.cjs.json", "tsconfig.dev.json", "tsconfig.esm.json", "tsconfig.json", diff --git a/packages/client-iot-events/.projen/tasks.json b/packages/client-iot-events/.projen/tasks.json index ad983f13..45b10abd 100644 --- a/packages/client-iot-events/.projen/tasks.json +++ b/packages/client-iot-events/.projen/tasks.json @@ -26,7 +26,7 @@ "description": "Only compile", "steps": [ { - "exec": "tsc -b ./tsconfig.cjs.json ./tsconfig.esm.json" + "exec": "tsc -b ./tsconfig.esm.json" } ] }, diff --git a/packages/client-iot-events/tsconfig.cjs.json b/packages/client-iot-events/tsconfig.cjs.json deleted file mode 100644 index dc7413de..00000000 --- a/packages/client-iot-events/tsconfig.cjs.json +++ /dev/null @@ -1,15 +0,0 @@ -// ~~ Generated by projen. To modify, edit .projenrc.js and run "npx projen". -{ - "extends": "./tsconfig.src.json", - "compilerOptions": { - "tsBuildInfoFile": ".tsbuildinfo/cjs.tsbuildinfo", - "outDir": "build/cjs", - "moduleResolution": "node", - "module": "CommonJS" - }, - "references": [ - { - "path": "../commons/tsconfig.cjs.json" - } - ] -} diff --git a/packages/client-iot-jobs-data-plane/.gitattributes b/packages/client-iot-jobs-data-plane/.gitattributes index 44ee1f36..25ecb9bb 100644 --- a/packages/client-iot-jobs-data-plane/.gitattributes +++ b/packages/client-iot-jobs-data-plane/.gitattributes @@ -13,7 +13,6 @@ /LICENSE linguist-generated /package.json linguist-generated /pnpm-lock.yaml linguist-generated -/tsconfig.cjs.json linguist-generated /tsconfig.dev.json linguist-generated /tsconfig.esm.json linguist-generated /tsconfig.json linguist-generated diff --git a/packages/client-iot-jobs-data-plane/.gitignore b/packages/client-iot-jobs-data-plane/.gitignore index 9b3e7285..919c7a88 100644 --- a/packages/client-iot-jobs-data-plane/.gitignore +++ b/packages/client-iot-jobs-data-plane/.gitignore @@ -38,7 +38,6 @@ jspm_packages/ !/tsconfig.src.json !/tsconfig.dev.json !/tsconfig.esm.json -!/tsconfig.cjs.json !/docgen.json docs/ !/vitest.config.ts diff --git a/packages/client-iot-jobs-data-plane/.npmignore b/packages/client-iot-jobs-data-plane/.npmignore index fe4e41d6..e202c1d1 100644 --- a/packages/client-iot-jobs-data-plane/.npmignore +++ b/packages/client-iot-jobs-data-plane/.npmignore @@ -15,5 +15,4 @@ tsconfig.tsbuildinfo /tsconfig.src.json /tsconfig.dev.json /tsconfig.esm.json -/tsconfig.cjs.json /.gitattributes diff --git a/packages/client-iot-jobs-data-plane/.projen/files.json b/packages/client-iot-jobs-data-plane/.projen/files.json index e57ad5f8..1f5dd1db 100644 --- a/packages/client-iot-jobs-data-plane/.projen/files.json +++ b/packages/client-iot-jobs-data-plane/.projen/files.json @@ -8,7 +8,6 @@ ".projen/tasks.json", "docgen.json", "LICENSE", - "tsconfig.cjs.json", "tsconfig.dev.json", "tsconfig.esm.json", "tsconfig.json", diff --git a/packages/client-iot-jobs-data-plane/.projen/tasks.json b/packages/client-iot-jobs-data-plane/.projen/tasks.json index ad983f13..45b10abd 100644 --- a/packages/client-iot-jobs-data-plane/.projen/tasks.json +++ b/packages/client-iot-jobs-data-plane/.projen/tasks.json @@ -26,7 +26,7 @@ "description": "Only compile", "steps": [ { - "exec": "tsc -b ./tsconfig.cjs.json ./tsconfig.esm.json" + "exec": "tsc -b ./tsconfig.esm.json" } ] }, diff --git a/packages/client-iot-jobs-data-plane/tsconfig.cjs.json b/packages/client-iot-jobs-data-plane/tsconfig.cjs.json deleted file mode 100644 index dc7413de..00000000 --- a/packages/client-iot-jobs-data-plane/tsconfig.cjs.json +++ /dev/null @@ -1,15 +0,0 @@ -// ~~ Generated by projen. To modify, edit .projenrc.js and run "npx projen". -{ - "extends": "./tsconfig.src.json", - "compilerOptions": { - "tsBuildInfoFile": ".tsbuildinfo/cjs.tsbuildinfo", - "outDir": "build/cjs", - "moduleResolution": "node", - "module": "CommonJS" - }, - "references": [ - { - "path": "../commons/tsconfig.cjs.json" - } - ] -} diff --git a/packages/client-iot-wireless/.gitattributes b/packages/client-iot-wireless/.gitattributes index 44ee1f36..25ecb9bb 100644 --- a/packages/client-iot-wireless/.gitattributes +++ b/packages/client-iot-wireless/.gitattributes @@ -13,7 +13,6 @@ /LICENSE linguist-generated /package.json linguist-generated /pnpm-lock.yaml linguist-generated -/tsconfig.cjs.json linguist-generated /tsconfig.dev.json linguist-generated /tsconfig.esm.json linguist-generated /tsconfig.json linguist-generated diff --git a/packages/client-iot-wireless/.gitignore b/packages/client-iot-wireless/.gitignore index 9b3e7285..919c7a88 100644 --- a/packages/client-iot-wireless/.gitignore +++ b/packages/client-iot-wireless/.gitignore @@ -38,7 +38,6 @@ jspm_packages/ !/tsconfig.src.json !/tsconfig.dev.json !/tsconfig.esm.json -!/tsconfig.cjs.json !/docgen.json docs/ !/vitest.config.ts diff --git a/packages/client-iot-wireless/.npmignore b/packages/client-iot-wireless/.npmignore index fe4e41d6..e202c1d1 100644 --- a/packages/client-iot-wireless/.npmignore +++ b/packages/client-iot-wireless/.npmignore @@ -15,5 +15,4 @@ tsconfig.tsbuildinfo /tsconfig.src.json /tsconfig.dev.json /tsconfig.esm.json -/tsconfig.cjs.json /.gitattributes diff --git a/packages/client-iot-wireless/.projen/files.json b/packages/client-iot-wireless/.projen/files.json index e57ad5f8..1f5dd1db 100644 --- a/packages/client-iot-wireless/.projen/files.json +++ b/packages/client-iot-wireless/.projen/files.json @@ -8,7 +8,6 @@ ".projen/tasks.json", "docgen.json", "LICENSE", - "tsconfig.cjs.json", "tsconfig.dev.json", "tsconfig.esm.json", "tsconfig.json", diff --git a/packages/client-iot-wireless/.projen/tasks.json b/packages/client-iot-wireless/.projen/tasks.json index ad983f13..45b10abd 100644 --- a/packages/client-iot-wireless/.projen/tasks.json +++ b/packages/client-iot-wireless/.projen/tasks.json @@ -26,7 +26,7 @@ "description": "Only compile", "steps": [ { - "exec": "tsc -b ./tsconfig.cjs.json ./tsconfig.esm.json" + "exec": "tsc -b ./tsconfig.esm.json" } ] }, diff --git a/packages/client-iot-wireless/tsconfig.cjs.json b/packages/client-iot-wireless/tsconfig.cjs.json deleted file mode 100644 index dc7413de..00000000 --- a/packages/client-iot-wireless/tsconfig.cjs.json +++ /dev/null @@ -1,15 +0,0 @@ -// ~~ Generated by projen. To modify, edit .projenrc.js and run "npx projen". -{ - "extends": "./tsconfig.src.json", - "compilerOptions": { - "tsBuildInfoFile": ".tsbuildinfo/cjs.tsbuildinfo", - "outDir": "build/cjs", - "moduleResolution": "node", - "module": "CommonJS" - }, - "references": [ - { - "path": "../commons/tsconfig.cjs.json" - } - ] -} diff --git a/packages/client-iot/.gitattributes b/packages/client-iot/.gitattributes index 44ee1f36..25ecb9bb 100644 --- a/packages/client-iot/.gitattributes +++ b/packages/client-iot/.gitattributes @@ -13,7 +13,6 @@ /LICENSE linguist-generated /package.json linguist-generated /pnpm-lock.yaml linguist-generated -/tsconfig.cjs.json linguist-generated /tsconfig.dev.json linguist-generated /tsconfig.esm.json linguist-generated /tsconfig.json linguist-generated diff --git a/packages/client-iot/.gitignore b/packages/client-iot/.gitignore index 9b3e7285..919c7a88 100644 --- a/packages/client-iot/.gitignore +++ b/packages/client-iot/.gitignore @@ -38,7 +38,6 @@ jspm_packages/ !/tsconfig.src.json !/tsconfig.dev.json !/tsconfig.esm.json -!/tsconfig.cjs.json !/docgen.json docs/ !/vitest.config.ts diff --git a/packages/client-iot/.npmignore b/packages/client-iot/.npmignore index fe4e41d6..e202c1d1 100644 --- a/packages/client-iot/.npmignore +++ b/packages/client-iot/.npmignore @@ -15,5 +15,4 @@ tsconfig.tsbuildinfo /tsconfig.src.json /tsconfig.dev.json /tsconfig.esm.json -/tsconfig.cjs.json /.gitattributes diff --git a/packages/client-iot/.projen/files.json b/packages/client-iot/.projen/files.json index e57ad5f8..1f5dd1db 100644 --- a/packages/client-iot/.projen/files.json +++ b/packages/client-iot/.projen/files.json @@ -8,7 +8,6 @@ ".projen/tasks.json", "docgen.json", "LICENSE", - "tsconfig.cjs.json", "tsconfig.dev.json", "tsconfig.esm.json", "tsconfig.json", diff --git a/packages/client-iot/.projen/tasks.json b/packages/client-iot/.projen/tasks.json index ad983f13..45b10abd 100644 --- a/packages/client-iot/.projen/tasks.json +++ b/packages/client-iot/.projen/tasks.json @@ -26,7 +26,7 @@ "description": "Only compile", "steps": [ { - "exec": "tsc -b ./tsconfig.cjs.json ./tsconfig.esm.json" + "exec": "tsc -b ./tsconfig.esm.json" } ] }, diff --git a/packages/client-iot/tsconfig.cjs.json b/packages/client-iot/tsconfig.cjs.json deleted file mode 100644 index dc7413de..00000000 --- a/packages/client-iot/tsconfig.cjs.json +++ /dev/null @@ -1,15 +0,0 @@ -// ~~ Generated by projen. To modify, edit .projenrc.js and run "npx projen". -{ - "extends": "./tsconfig.src.json", - "compilerOptions": { - "tsBuildInfoFile": ".tsbuildinfo/cjs.tsbuildinfo", - "outDir": "build/cjs", - "moduleResolution": "node", - "module": "CommonJS" - }, - "references": [ - { - "path": "../commons/tsconfig.cjs.json" - } - ] -} diff --git a/packages/client-ivs/.gitattributes b/packages/client-ivs/.gitattributes index 44ee1f36..25ecb9bb 100644 --- a/packages/client-ivs/.gitattributes +++ b/packages/client-ivs/.gitattributes @@ -13,7 +13,6 @@ /LICENSE linguist-generated /package.json linguist-generated /pnpm-lock.yaml linguist-generated -/tsconfig.cjs.json linguist-generated /tsconfig.dev.json linguist-generated /tsconfig.esm.json linguist-generated /tsconfig.json linguist-generated diff --git a/packages/client-ivs/.gitignore b/packages/client-ivs/.gitignore index 9b3e7285..919c7a88 100644 --- a/packages/client-ivs/.gitignore +++ b/packages/client-ivs/.gitignore @@ -38,7 +38,6 @@ jspm_packages/ !/tsconfig.src.json !/tsconfig.dev.json !/tsconfig.esm.json -!/tsconfig.cjs.json !/docgen.json docs/ !/vitest.config.ts diff --git a/packages/client-ivs/.npmignore b/packages/client-ivs/.npmignore index fe4e41d6..e202c1d1 100644 --- a/packages/client-ivs/.npmignore +++ b/packages/client-ivs/.npmignore @@ -15,5 +15,4 @@ tsconfig.tsbuildinfo /tsconfig.src.json /tsconfig.dev.json /tsconfig.esm.json -/tsconfig.cjs.json /.gitattributes diff --git a/packages/client-ivs/.projen/files.json b/packages/client-ivs/.projen/files.json index e57ad5f8..1f5dd1db 100644 --- a/packages/client-ivs/.projen/files.json +++ b/packages/client-ivs/.projen/files.json @@ -8,7 +8,6 @@ ".projen/tasks.json", "docgen.json", "LICENSE", - "tsconfig.cjs.json", "tsconfig.dev.json", "tsconfig.esm.json", "tsconfig.json", diff --git a/packages/client-ivs/.projen/tasks.json b/packages/client-ivs/.projen/tasks.json index ad983f13..45b10abd 100644 --- a/packages/client-ivs/.projen/tasks.json +++ b/packages/client-ivs/.projen/tasks.json @@ -26,7 +26,7 @@ "description": "Only compile", "steps": [ { - "exec": "tsc -b ./tsconfig.cjs.json ./tsconfig.esm.json" + "exec": "tsc -b ./tsconfig.esm.json" } ] }, diff --git a/packages/client-ivs/tsconfig.cjs.json b/packages/client-ivs/tsconfig.cjs.json deleted file mode 100644 index dc7413de..00000000 --- a/packages/client-ivs/tsconfig.cjs.json +++ /dev/null @@ -1,15 +0,0 @@ -// ~~ Generated by projen. To modify, edit .projenrc.js and run "npx projen". -{ - "extends": "./tsconfig.src.json", - "compilerOptions": { - "tsBuildInfoFile": ".tsbuildinfo/cjs.tsbuildinfo", - "outDir": "build/cjs", - "moduleResolution": "node", - "module": "CommonJS" - }, - "references": [ - { - "path": "../commons/tsconfig.cjs.json" - } - ] -} diff --git a/packages/client-kafka/.gitattributes b/packages/client-kafka/.gitattributes index 44ee1f36..25ecb9bb 100644 --- a/packages/client-kafka/.gitattributes +++ b/packages/client-kafka/.gitattributes @@ -13,7 +13,6 @@ /LICENSE linguist-generated /package.json linguist-generated /pnpm-lock.yaml linguist-generated -/tsconfig.cjs.json linguist-generated /tsconfig.dev.json linguist-generated /tsconfig.esm.json linguist-generated /tsconfig.json linguist-generated diff --git a/packages/client-kafka/.gitignore b/packages/client-kafka/.gitignore index 9b3e7285..919c7a88 100644 --- a/packages/client-kafka/.gitignore +++ b/packages/client-kafka/.gitignore @@ -38,7 +38,6 @@ jspm_packages/ !/tsconfig.src.json !/tsconfig.dev.json !/tsconfig.esm.json -!/tsconfig.cjs.json !/docgen.json docs/ !/vitest.config.ts diff --git a/packages/client-kafka/.npmignore b/packages/client-kafka/.npmignore index fe4e41d6..e202c1d1 100644 --- a/packages/client-kafka/.npmignore +++ b/packages/client-kafka/.npmignore @@ -15,5 +15,4 @@ tsconfig.tsbuildinfo /tsconfig.src.json /tsconfig.dev.json /tsconfig.esm.json -/tsconfig.cjs.json /.gitattributes diff --git a/packages/client-kafka/.projen/files.json b/packages/client-kafka/.projen/files.json index e57ad5f8..1f5dd1db 100644 --- a/packages/client-kafka/.projen/files.json +++ b/packages/client-kafka/.projen/files.json @@ -8,7 +8,6 @@ ".projen/tasks.json", "docgen.json", "LICENSE", - "tsconfig.cjs.json", "tsconfig.dev.json", "tsconfig.esm.json", "tsconfig.json", diff --git a/packages/client-kafka/.projen/tasks.json b/packages/client-kafka/.projen/tasks.json index ad983f13..45b10abd 100644 --- a/packages/client-kafka/.projen/tasks.json +++ b/packages/client-kafka/.projen/tasks.json @@ -26,7 +26,7 @@ "description": "Only compile", "steps": [ { - "exec": "tsc -b ./tsconfig.cjs.json ./tsconfig.esm.json" + "exec": "tsc -b ./tsconfig.esm.json" } ] }, diff --git a/packages/client-kafka/tsconfig.cjs.json b/packages/client-kafka/tsconfig.cjs.json deleted file mode 100644 index dc7413de..00000000 --- a/packages/client-kafka/tsconfig.cjs.json +++ /dev/null @@ -1,15 +0,0 @@ -// ~~ Generated by projen. To modify, edit .projenrc.js and run "npx projen". -{ - "extends": "./tsconfig.src.json", - "compilerOptions": { - "tsBuildInfoFile": ".tsbuildinfo/cjs.tsbuildinfo", - "outDir": "build/cjs", - "moduleResolution": "node", - "module": "CommonJS" - }, - "references": [ - { - "path": "../commons/tsconfig.cjs.json" - } - ] -} diff --git a/packages/client-kafkaconnect/.gitattributes b/packages/client-kafkaconnect/.gitattributes index 44ee1f36..25ecb9bb 100644 --- a/packages/client-kafkaconnect/.gitattributes +++ b/packages/client-kafkaconnect/.gitattributes @@ -13,7 +13,6 @@ /LICENSE linguist-generated /package.json linguist-generated /pnpm-lock.yaml linguist-generated -/tsconfig.cjs.json linguist-generated /tsconfig.dev.json linguist-generated /tsconfig.esm.json linguist-generated /tsconfig.json linguist-generated diff --git a/packages/client-kafkaconnect/.gitignore b/packages/client-kafkaconnect/.gitignore index 9b3e7285..919c7a88 100644 --- a/packages/client-kafkaconnect/.gitignore +++ b/packages/client-kafkaconnect/.gitignore @@ -38,7 +38,6 @@ jspm_packages/ !/tsconfig.src.json !/tsconfig.dev.json !/tsconfig.esm.json -!/tsconfig.cjs.json !/docgen.json docs/ !/vitest.config.ts diff --git a/packages/client-kafkaconnect/.npmignore b/packages/client-kafkaconnect/.npmignore index fe4e41d6..e202c1d1 100644 --- a/packages/client-kafkaconnect/.npmignore +++ b/packages/client-kafkaconnect/.npmignore @@ -15,5 +15,4 @@ tsconfig.tsbuildinfo /tsconfig.src.json /tsconfig.dev.json /tsconfig.esm.json -/tsconfig.cjs.json /.gitattributes diff --git a/packages/client-kafkaconnect/.projen/files.json b/packages/client-kafkaconnect/.projen/files.json index e57ad5f8..1f5dd1db 100644 --- a/packages/client-kafkaconnect/.projen/files.json +++ b/packages/client-kafkaconnect/.projen/files.json @@ -8,7 +8,6 @@ ".projen/tasks.json", "docgen.json", "LICENSE", - "tsconfig.cjs.json", "tsconfig.dev.json", "tsconfig.esm.json", "tsconfig.json", diff --git a/packages/client-kafkaconnect/.projen/tasks.json b/packages/client-kafkaconnect/.projen/tasks.json index ad983f13..45b10abd 100644 --- a/packages/client-kafkaconnect/.projen/tasks.json +++ b/packages/client-kafkaconnect/.projen/tasks.json @@ -26,7 +26,7 @@ "description": "Only compile", "steps": [ { - "exec": "tsc -b ./tsconfig.cjs.json ./tsconfig.esm.json" + "exec": "tsc -b ./tsconfig.esm.json" } ] }, diff --git a/packages/client-kafkaconnect/tsconfig.cjs.json b/packages/client-kafkaconnect/tsconfig.cjs.json deleted file mode 100644 index dc7413de..00000000 --- a/packages/client-kafkaconnect/tsconfig.cjs.json +++ /dev/null @@ -1,15 +0,0 @@ -// ~~ Generated by projen. To modify, edit .projenrc.js and run "npx projen". -{ - "extends": "./tsconfig.src.json", - "compilerOptions": { - "tsBuildInfoFile": ".tsbuildinfo/cjs.tsbuildinfo", - "outDir": "build/cjs", - "moduleResolution": "node", - "module": "CommonJS" - }, - "references": [ - { - "path": "../commons/tsconfig.cjs.json" - } - ] -} diff --git a/packages/client-kinesis/.gitattributes b/packages/client-kinesis/.gitattributes index 44ee1f36..25ecb9bb 100644 --- a/packages/client-kinesis/.gitattributes +++ b/packages/client-kinesis/.gitattributes @@ -13,7 +13,6 @@ /LICENSE linguist-generated /package.json linguist-generated /pnpm-lock.yaml linguist-generated -/tsconfig.cjs.json linguist-generated /tsconfig.dev.json linguist-generated /tsconfig.esm.json linguist-generated /tsconfig.json linguist-generated diff --git a/packages/client-kinesis/.gitignore b/packages/client-kinesis/.gitignore index 9b3e7285..919c7a88 100644 --- a/packages/client-kinesis/.gitignore +++ b/packages/client-kinesis/.gitignore @@ -38,7 +38,6 @@ jspm_packages/ !/tsconfig.src.json !/tsconfig.dev.json !/tsconfig.esm.json -!/tsconfig.cjs.json !/docgen.json docs/ !/vitest.config.ts diff --git a/packages/client-kinesis/.npmignore b/packages/client-kinesis/.npmignore index fe4e41d6..e202c1d1 100644 --- a/packages/client-kinesis/.npmignore +++ b/packages/client-kinesis/.npmignore @@ -15,5 +15,4 @@ tsconfig.tsbuildinfo /tsconfig.src.json /tsconfig.dev.json /tsconfig.esm.json -/tsconfig.cjs.json /.gitattributes diff --git a/packages/client-kinesis/.projen/files.json b/packages/client-kinesis/.projen/files.json index e57ad5f8..1f5dd1db 100644 --- a/packages/client-kinesis/.projen/files.json +++ b/packages/client-kinesis/.projen/files.json @@ -8,7 +8,6 @@ ".projen/tasks.json", "docgen.json", "LICENSE", - "tsconfig.cjs.json", "tsconfig.dev.json", "tsconfig.esm.json", "tsconfig.json", diff --git a/packages/client-kinesis/.projen/tasks.json b/packages/client-kinesis/.projen/tasks.json index ad983f13..45b10abd 100644 --- a/packages/client-kinesis/.projen/tasks.json +++ b/packages/client-kinesis/.projen/tasks.json @@ -26,7 +26,7 @@ "description": "Only compile", "steps": [ { - "exec": "tsc -b ./tsconfig.cjs.json ./tsconfig.esm.json" + "exec": "tsc -b ./tsconfig.esm.json" } ] }, diff --git a/packages/client-kinesis/tsconfig.cjs.json b/packages/client-kinesis/tsconfig.cjs.json deleted file mode 100644 index dc7413de..00000000 --- a/packages/client-kinesis/tsconfig.cjs.json +++ /dev/null @@ -1,15 +0,0 @@ -// ~~ Generated by projen. To modify, edit .projenrc.js and run "npx projen". -{ - "extends": "./tsconfig.src.json", - "compilerOptions": { - "tsBuildInfoFile": ".tsbuildinfo/cjs.tsbuildinfo", - "outDir": "build/cjs", - "moduleResolution": "node", - "module": "CommonJS" - }, - "references": [ - { - "path": "../commons/tsconfig.cjs.json" - } - ] -} diff --git a/packages/client-kms/.gitattributes b/packages/client-kms/.gitattributes index 44ee1f36..25ecb9bb 100644 --- a/packages/client-kms/.gitattributes +++ b/packages/client-kms/.gitattributes @@ -13,7 +13,6 @@ /LICENSE linguist-generated /package.json linguist-generated /pnpm-lock.yaml linguist-generated -/tsconfig.cjs.json linguist-generated /tsconfig.dev.json linguist-generated /tsconfig.esm.json linguist-generated /tsconfig.json linguist-generated diff --git a/packages/client-kms/.gitignore b/packages/client-kms/.gitignore index 9b3e7285..919c7a88 100644 --- a/packages/client-kms/.gitignore +++ b/packages/client-kms/.gitignore @@ -38,7 +38,6 @@ jspm_packages/ !/tsconfig.src.json !/tsconfig.dev.json !/tsconfig.esm.json -!/tsconfig.cjs.json !/docgen.json docs/ !/vitest.config.ts diff --git a/packages/client-kms/.npmignore b/packages/client-kms/.npmignore index fe4e41d6..e202c1d1 100644 --- a/packages/client-kms/.npmignore +++ b/packages/client-kms/.npmignore @@ -15,5 +15,4 @@ tsconfig.tsbuildinfo /tsconfig.src.json /tsconfig.dev.json /tsconfig.esm.json -/tsconfig.cjs.json /.gitattributes diff --git a/packages/client-kms/.projen/files.json b/packages/client-kms/.projen/files.json index e57ad5f8..1f5dd1db 100644 --- a/packages/client-kms/.projen/files.json +++ b/packages/client-kms/.projen/files.json @@ -8,7 +8,6 @@ ".projen/tasks.json", "docgen.json", "LICENSE", - "tsconfig.cjs.json", "tsconfig.dev.json", "tsconfig.esm.json", "tsconfig.json", diff --git a/packages/client-kms/.projen/tasks.json b/packages/client-kms/.projen/tasks.json index ad983f13..45b10abd 100644 --- a/packages/client-kms/.projen/tasks.json +++ b/packages/client-kms/.projen/tasks.json @@ -26,7 +26,7 @@ "description": "Only compile", "steps": [ { - "exec": "tsc -b ./tsconfig.cjs.json ./tsconfig.esm.json" + "exec": "tsc -b ./tsconfig.esm.json" } ] }, diff --git a/packages/client-kms/tsconfig.cjs.json b/packages/client-kms/tsconfig.cjs.json deleted file mode 100644 index dc7413de..00000000 --- a/packages/client-kms/tsconfig.cjs.json +++ /dev/null @@ -1,15 +0,0 @@ -// ~~ Generated by projen. To modify, edit .projenrc.js and run "npx projen". -{ - "extends": "./tsconfig.src.json", - "compilerOptions": { - "tsBuildInfoFile": ".tsbuildinfo/cjs.tsbuildinfo", - "outDir": "build/cjs", - "moduleResolution": "node", - "module": "CommonJS" - }, - "references": [ - { - "path": "../commons/tsconfig.cjs.json" - } - ] -} diff --git a/packages/client-lambda/.gitattributes b/packages/client-lambda/.gitattributes index 44ee1f36..25ecb9bb 100644 --- a/packages/client-lambda/.gitattributes +++ b/packages/client-lambda/.gitattributes @@ -13,7 +13,6 @@ /LICENSE linguist-generated /package.json linguist-generated /pnpm-lock.yaml linguist-generated -/tsconfig.cjs.json linguist-generated /tsconfig.dev.json linguist-generated /tsconfig.esm.json linguist-generated /tsconfig.json linguist-generated diff --git a/packages/client-lambda/.gitignore b/packages/client-lambda/.gitignore index 9b3e7285..919c7a88 100644 --- a/packages/client-lambda/.gitignore +++ b/packages/client-lambda/.gitignore @@ -38,7 +38,6 @@ jspm_packages/ !/tsconfig.src.json !/tsconfig.dev.json !/tsconfig.esm.json -!/tsconfig.cjs.json !/docgen.json docs/ !/vitest.config.ts diff --git a/packages/client-lambda/.npmignore b/packages/client-lambda/.npmignore index fe4e41d6..e202c1d1 100644 --- a/packages/client-lambda/.npmignore +++ b/packages/client-lambda/.npmignore @@ -15,5 +15,4 @@ tsconfig.tsbuildinfo /tsconfig.src.json /tsconfig.dev.json /tsconfig.esm.json -/tsconfig.cjs.json /.gitattributes diff --git a/packages/client-lambda/.projen/files.json b/packages/client-lambda/.projen/files.json index e57ad5f8..1f5dd1db 100644 --- a/packages/client-lambda/.projen/files.json +++ b/packages/client-lambda/.projen/files.json @@ -8,7 +8,6 @@ ".projen/tasks.json", "docgen.json", "LICENSE", - "tsconfig.cjs.json", "tsconfig.dev.json", "tsconfig.esm.json", "tsconfig.json", diff --git a/packages/client-lambda/.projen/tasks.json b/packages/client-lambda/.projen/tasks.json index ad983f13..45b10abd 100644 --- a/packages/client-lambda/.projen/tasks.json +++ b/packages/client-lambda/.projen/tasks.json @@ -26,7 +26,7 @@ "description": "Only compile", "steps": [ { - "exec": "tsc -b ./tsconfig.cjs.json ./tsconfig.esm.json" + "exec": "tsc -b ./tsconfig.esm.json" } ] }, diff --git a/packages/client-lambda/tsconfig.cjs.json b/packages/client-lambda/tsconfig.cjs.json deleted file mode 100644 index dc7413de..00000000 --- a/packages/client-lambda/tsconfig.cjs.json +++ /dev/null @@ -1,15 +0,0 @@ -// ~~ Generated by projen. To modify, edit .projenrc.js and run "npx projen". -{ - "extends": "./tsconfig.src.json", - "compilerOptions": { - "tsBuildInfoFile": ".tsbuildinfo/cjs.tsbuildinfo", - "outDir": "build/cjs", - "moduleResolution": "node", - "module": "CommonJS" - }, - "references": [ - { - "path": "../commons/tsconfig.cjs.json" - } - ] -} diff --git a/packages/client-mq/.gitattributes b/packages/client-mq/.gitattributes index 44ee1f36..25ecb9bb 100644 --- a/packages/client-mq/.gitattributes +++ b/packages/client-mq/.gitattributes @@ -13,7 +13,6 @@ /LICENSE linguist-generated /package.json linguist-generated /pnpm-lock.yaml linguist-generated -/tsconfig.cjs.json linguist-generated /tsconfig.dev.json linguist-generated /tsconfig.esm.json linguist-generated /tsconfig.json linguist-generated diff --git a/packages/client-mq/.gitignore b/packages/client-mq/.gitignore index 9b3e7285..919c7a88 100644 --- a/packages/client-mq/.gitignore +++ b/packages/client-mq/.gitignore @@ -38,7 +38,6 @@ jspm_packages/ !/tsconfig.src.json !/tsconfig.dev.json !/tsconfig.esm.json -!/tsconfig.cjs.json !/docgen.json docs/ !/vitest.config.ts diff --git a/packages/client-mq/.npmignore b/packages/client-mq/.npmignore index fe4e41d6..e202c1d1 100644 --- a/packages/client-mq/.npmignore +++ b/packages/client-mq/.npmignore @@ -15,5 +15,4 @@ tsconfig.tsbuildinfo /tsconfig.src.json /tsconfig.dev.json /tsconfig.esm.json -/tsconfig.cjs.json /.gitattributes diff --git a/packages/client-mq/.projen/files.json b/packages/client-mq/.projen/files.json index e57ad5f8..1f5dd1db 100644 --- a/packages/client-mq/.projen/files.json +++ b/packages/client-mq/.projen/files.json @@ -8,7 +8,6 @@ ".projen/tasks.json", "docgen.json", "LICENSE", - "tsconfig.cjs.json", "tsconfig.dev.json", "tsconfig.esm.json", "tsconfig.json", diff --git a/packages/client-mq/.projen/tasks.json b/packages/client-mq/.projen/tasks.json index ad983f13..45b10abd 100644 --- a/packages/client-mq/.projen/tasks.json +++ b/packages/client-mq/.projen/tasks.json @@ -26,7 +26,7 @@ "description": "Only compile", "steps": [ { - "exec": "tsc -b ./tsconfig.cjs.json ./tsconfig.esm.json" + "exec": "tsc -b ./tsconfig.esm.json" } ] }, diff --git a/packages/client-mq/tsconfig.cjs.json b/packages/client-mq/tsconfig.cjs.json deleted file mode 100644 index dc7413de..00000000 --- a/packages/client-mq/tsconfig.cjs.json +++ /dev/null @@ -1,15 +0,0 @@ -// ~~ Generated by projen. To modify, edit .projenrc.js and run "npx projen". -{ - "extends": "./tsconfig.src.json", - "compilerOptions": { - "tsBuildInfoFile": ".tsbuildinfo/cjs.tsbuildinfo", - "outDir": "build/cjs", - "moduleResolution": "node", - "module": "CommonJS" - }, - "references": [ - { - "path": "../commons/tsconfig.cjs.json" - } - ] -} diff --git a/packages/client-opensearch-serverless/.gitattributes b/packages/client-opensearch-serverless/.gitattributes index 44ee1f36..25ecb9bb 100644 --- a/packages/client-opensearch-serverless/.gitattributes +++ b/packages/client-opensearch-serverless/.gitattributes @@ -13,7 +13,6 @@ /LICENSE linguist-generated /package.json linguist-generated /pnpm-lock.yaml linguist-generated -/tsconfig.cjs.json linguist-generated /tsconfig.dev.json linguist-generated /tsconfig.esm.json linguist-generated /tsconfig.json linguist-generated diff --git a/packages/client-opensearch-serverless/.gitignore b/packages/client-opensearch-serverless/.gitignore index 9b3e7285..919c7a88 100644 --- a/packages/client-opensearch-serverless/.gitignore +++ b/packages/client-opensearch-serverless/.gitignore @@ -38,7 +38,6 @@ jspm_packages/ !/tsconfig.src.json !/tsconfig.dev.json !/tsconfig.esm.json -!/tsconfig.cjs.json !/docgen.json docs/ !/vitest.config.ts diff --git a/packages/client-opensearch-serverless/.npmignore b/packages/client-opensearch-serverless/.npmignore index fe4e41d6..e202c1d1 100644 --- a/packages/client-opensearch-serverless/.npmignore +++ b/packages/client-opensearch-serverless/.npmignore @@ -15,5 +15,4 @@ tsconfig.tsbuildinfo /tsconfig.src.json /tsconfig.dev.json /tsconfig.esm.json -/tsconfig.cjs.json /.gitattributes diff --git a/packages/client-opensearch-serverless/.projen/files.json b/packages/client-opensearch-serverless/.projen/files.json index e57ad5f8..1f5dd1db 100644 --- a/packages/client-opensearch-serverless/.projen/files.json +++ b/packages/client-opensearch-serverless/.projen/files.json @@ -8,7 +8,6 @@ ".projen/tasks.json", "docgen.json", "LICENSE", - "tsconfig.cjs.json", "tsconfig.dev.json", "tsconfig.esm.json", "tsconfig.json", diff --git a/packages/client-opensearch-serverless/.projen/tasks.json b/packages/client-opensearch-serverless/.projen/tasks.json index ad983f13..45b10abd 100644 --- a/packages/client-opensearch-serverless/.projen/tasks.json +++ b/packages/client-opensearch-serverless/.projen/tasks.json @@ -26,7 +26,7 @@ "description": "Only compile", "steps": [ { - "exec": "tsc -b ./tsconfig.cjs.json ./tsconfig.esm.json" + "exec": "tsc -b ./tsconfig.esm.json" } ] }, diff --git a/packages/client-opensearch-serverless/tsconfig.cjs.json b/packages/client-opensearch-serverless/tsconfig.cjs.json deleted file mode 100644 index dc7413de..00000000 --- a/packages/client-opensearch-serverless/tsconfig.cjs.json +++ /dev/null @@ -1,15 +0,0 @@ -// ~~ Generated by projen. To modify, edit .projenrc.js and run "npx projen". -{ - "extends": "./tsconfig.src.json", - "compilerOptions": { - "tsBuildInfoFile": ".tsbuildinfo/cjs.tsbuildinfo", - "outDir": "build/cjs", - "moduleResolution": "node", - "module": "CommonJS" - }, - "references": [ - { - "path": "../commons/tsconfig.cjs.json" - } - ] -} diff --git a/packages/client-opensearch/.gitattributes b/packages/client-opensearch/.gitattributes index 44ee1f36..25ecb9bb 100644 --- a/packages/client-opensearch/.gitattributes +++ b/packages/client-opensearch/.gitattributes @@ -13,7 +13,6 @@ /LICENSE linguist-generated /package.json linguist-generated /pnpm-lock.yaml linguist-generated -/tsconfig.cjs.json linguist-generated /tsconfig.dev.json linguist-generated /tsconfig.esm.json linguist-generated /tsconfig.json linguist-generated diff --git a/packages/client-opensearch/.gitignore b/packages/client-opensearch/.gitignore index 9b3e7285..919c7a88 100644 --- a/packages/client-opensearch/.gitignore +++ b/packages/client-opensearch/.gitignore @@ -38,7 +38,6 @@ jspm_packages/ !/tsconfig.src.json !/tsconfig.dev.json !/tsconfig.esm.json -!/tsconfig.cjs.json !/docgen.json docs/ !/vitest.config.ts diff --git a/packages/client-opensearch/.npmignore b/packages/client-opensearch/.npmignore index fe4e41d6..e202c1d1 100644 --- a/packages/client-opensearch/.npmignore +++ b/packages/client-opensearch/.npmignore @@ -15,5 +15,4 @@ tsconfig.tsbuildinfo /tsconfig.src.json /tsconfig.dev.json /tsconfig.esm.json -/tsconfig.cjs.json /.gitattributes diff --git a/packages/client-opensearch/.projen/files.json b/packages/client-opensearch/.projen/files.json index e57ad5f8..1f5dd1db 100644 --- a/packages/client-opensearch/.projen/files.json +++ b/packages/client-opensearch/.projen/files.json @@ -8,7 +8,6 @@ ".projen/tasks.json", "docgen.json", "LICENSE", - "tsconfig.cjs.json", "tsconfig.dev.json", "tsconfig.esm.json", "tsconfig.json", diff --git a/packages/client-opensearch/.projen/tasks.json b/packages/client-opensearch/.projen/tasks.json index ad983f13..45b10abd 100644 --- a/packages/client-opensearch/.projen/tasks.json +++ b/packages/client-opensearch/.projen/tasks.json @@ -26,7 +26,7 @@ "description": "Only compile", "steps": [ { - "exec": "tsc -b ./tsconfig.cjs.json ./tsconfig.esm.json" + "exec": "tsc -b ./tsconfig.esm.json" } ] }, diff --git a/packages/client-opensearch/tsconfig.cjs.json b/packages/client-opensearch/tsconfig.cjs.json deleted file mode 100644 index dc7413de..00000000 --- a/packages/client-opensearch/tsconfig.cjs.json +++ /dev/null @@ -1,15 +0,0 @@ -// ~~ Generated by projen. To modify, edit .projenrc.js and run "npx projen". -{ - "extends": "./tsconfig.src.json", - "compilerOptions": { - "tsBuildInfoFile": ".tsbuildinfo/cjs.tsbuildinfo", - "outDir": "build/cjs", - "moduleResolution": "node", - "module": "CommonJS" - }, - "references": [ - { - "path": "../commons/tsconfig.cjs.json" - } - ] -} diff --git a/packages/client-organizations/.gitattributes b/packages/client-organizations/.gitattributes index 44ee1f36..25ecb9bb 100644 --- a/packages/client-organizations/.gitattributes +++ b/packages/client-organizations/.gitattributes @@ -13,7 +13,6 @@ /LICENSE linguist-generated /package.json linguist-generated /pnpm-lock.yaml linguist-generated -/tsconfig.cjs.json linguist-generated /tsconfig.dev.json linguist-generated /tsconfig.esm.json linguist-generated /tsconfig.json linguist-generated diff --git a/packages/client-organizations/.gitignore b/packages/client-organizations/.gitignore index 9b3e7285..919c7a88 100644 --- a/packages/client-organizations/.gitignore +++ b/packages/client-organizations/.gitignore @@ -38,7 +38,6 @@ jspm_packages/ !/tsconfig.src.json !/tsconfig.dev.json !/tsconfig.esm.json -!/tsconfig.cjs.json !/docgen.json docs/ !/vitest.config.ts diff --git a/packages/client-organizations/.npmignore b/packages/client-organizations/.npmignore index fe4e41d6..e202c1d1 100644 --- a/packages/client-organizations/.npmignore +++ b/packages/client-organizations/.npmignore @@ -15,5 +15,4 @@ tsconfig.tsbuildinfo /tsconfig.src.json /tsconfig.dev.json /tsconfig.esm.json -/tsconfig.cjs.json /.gitattributes diff --git a/packages/client-organizations/.projen/files.json b/packages/client-organizations/.projen/files.json index e57ad5f8..1f5dd1db 100644 --- a/packages/client-organizations/.projen/files.json +++ b/packages/client-organizations/.projen/files.json @@ -8,7 +8,6 @@ ".projen/tasks.json", "docgen.json", "LICENSE", - "tsconfig.cjs.json", "tsconfig.dev.json", "tsconfig.esm.json", "tsconfig.json", diff --git a/packages/client-organizations/.projen/tasks.json b/packages/client-organizations/.projen/tasks.json index ad983f13..45b10abd 100644 --- a/packages/client-organizations/.projen/tasks.json +++ b/packages/client-organizations/.projen/tasks.json @@ -26,7 +26,7 @@ "description": "Only compile", "steps": [ { - "exec": "tsc -b ./tsconfig.cjs.json ./tsconfig.esm.json" + "exec": "tsc -b ./tsconfig.esm.json" } ] }, diff --git a/packages/client-organizations/tsconfig.cjs.json b/packages/client-organizations/tsconfig.cjs.json deleted file mode 100644 index dc7413de..00000000 --- a/packages/client-organizations/tsconfig.cjs.json +++ /dev/null @@ -1,15 +0,0 @@ -// ~~ Generated by projen. To modify, edit .projenrc.js and run "npx projen". -{ - "extends": "./tsconfig.src.json", - "compilerOptions": { - "tsBuildInfoFile": ".tsbuildinfo/cjs.tsbuildinfo", - "outDir": "build/cjs", - "moduleResolution": "node", - "module": "CommonJS" - }, - "references": [ - { - "path": "../commons/tsconfig.cjs.json" - } - ] -} diff --git a/packages/client-rds/.gitattributes b/packages/client-rds/.gitattributes index 44ee1f36..25ecb9bb 100644 --- a/packages/client-rds/.gitattributes +++ b/packages/client-rds/.gitattributes @@ -13,7 +13,6 @@ /LICENSE linguist-generated /package.json linguist-generated /pnpm-lock.yaml linguist-generated -/tsconfig.cjs.json linguist-generated /tsconfig.dev.json linguist-generated /tsconfig.esm.json linguist-generated /tsconfig.json linguist-generated diff --git a/packages/client-rds/.gitignore b/packages/client-rds/.gitignore index 9b3e7285..919c7a88 100644 --- a/packages/client-rds/.gitignore +++ b/packages/client-rds/.gitignore @@ -38,7 +38,6 @@ jspm_packages/ !/tsconfig.src.json !/tsconfig.dev.json !/tsconfig.esm.json -!/tsconfig.cjs.json !/docgen.json docs/ !/vitest.config.ts diff --git a/packages/client-rds/.npmignore b/packages/client-rds/.npmignore index fe4e41d6..e202c1d1 100644 --- a/packages/client-rds/.npmignore +++ b/packages/client-rds/.npmignore @@ -15,5 +15,4 @@ tsconfig.tsbuildinfo /tsconfig.src.json /tsconfig.dev.json /tsconfig.esm.json -/tsconfig.cjs.json /.gitattributes diff --git a/packages/client-rds/.projen/files.json b/packages/client-rds/.projen/files.json index e57ad5f8..1f5dd1db 100644 --- a/packages/client-rds/.projen/files.json +++ b/packages/client-rds/.projen/files.json @@ -8,7 +8,6 @@ ".projen/tasks.json", "docgen.json", "LICENSE", - "tsconfig.cjs.json", "tsconfig.dev.json", "tsconfig.esm.json", "tsconfig.json", diff --git a/packages/client-rds/.projen/tasks.json b/packages/client-rds/.projen/tasks.json index ad983f13..45b10abd 100644 --- a/packages/client-rds/.projen/tasks.json +++ b/packages/client-rds/.projen/tasks.json @@ -26,7 +26,7 @@ "description": "Only compile", "steps": [ { - "exec": "tsc -b ./tsconfig.cjs.json ./tsconfig.esm.json" + "exec": "tsc -b ./tsconfig.esm.json" } ] }, diff --git a/packages/client-rds/tsconfig.cjs.json b/packages/client-rds/tsconfig.cjs.json deleted file mode 100644 index dc7413de..00000000 --- a/packages/client-rds/tsconfig.cjs.json +++ /dev/null @@ -1,15 +0,0 @@ -// ~~ Generated by projen. To modify, edit .projenrc.js and run "npx projen". -{ - "extends": "./tsconfig.src.json", - "compilerOptions": { - "tsBuildInfoFile": ".tsbuildinfo/cjs.tsbuildinfo", - "outDir": "build/cjs", - "moduleResolution": "node", - "module": "CommonJS" - }, - "references": [ - { - "path": "../commons/tsconfig.cjs.json" - } - ] -} diff --git a/packages/client-s3/.gitattributes b/packages/client-s3/.gitattributes index 44ee1f36..25ecb9bb 100644 --- a/packages/client-s3/.gitattributes +++ b/packages/client-s3/.gitattributes @@ -13,7 +13,6 @@ /LICENSE linguist-generated /package.json linguist-generated /pnpm-lock.yaml linguist-generated -/tsconfig.cjs.json linguist-generated /tsconfig.dev.json linguist-generated /tsconfig.esm.json linguist-generated /tsconfig.json linguist-generated diff --git a/packages/client-s3/.gitignore b/packages/client-s3/.gitignore index 9b3e7285..919c7a88 100644 --- a/packages/client-s3/.gitignore +++ b/packages/client-s3/.gitignore @@ -38,7 +38,6 @@ jspm_packages/ !/tsconfig.src.json !/tsconfig.dev.json !/tsconfig.esm.json -!/tsconfig.cjs.json !/docgen.json docs/ !/vitest.config.ts diff --git a/packages/client-s3/.npmignore b/packages/client-s3/.npmignore index fe4e41d6..e202c1d1 100644 --- a/packages/client-s3/.npmignore +++ b/packages/client-s3/.npmignore @@ -15,5 +15,4 @@ tsconfig.tsbuildinfo /tsconfig.src.json /tsconfig.dev.json /tsconfig.esm.json -/tsconfig.cjs.json /.gitattributes diff --git a/packages/client-s3/.projen/files.json b/packages/client-s3/.projen/files.json index e57ad5f8..1f5dd1db 100644 --- a/packages/client-s3/.projen/files.json +++ b/packages/client-s3/.projen/files.json @@ -8,7 +8,6 @@ ".projen/tasks.json", "docgen.json", "LICENSE", - "tsconfig.cjs.json", "tsconfig.dev.json", "tsconfig.esm.json", "tsconfig.json", diff --git a/packages/client-s3/.projen/tasks.json b/packages/client-s3/.projen/tasks.json index ad983f13..45b10abd 100644 --- a/packages/client-s3/.projen/tasks.json +++ b/packages/client-s3/.projen/tasks.json @@ -26,7 +26,7 @@ "description": "Only compile", "steps": [ { - "exec": "tsc -b ./tsconfig.cjs.json ./tsconfig.esm.json" + "exec": "tsc -b ./tsconfig.esm.json" } ] }, diff --git a/packages/client-s3/tsconfig.cjs.json b/packages/client-s3/tsconfig.cjs.json deleted file mode 100644 index dc7413de..00000000 --- a/packages/client-s3/tsconfig.cjs.json +++ /dev/null @@ -1,15 +0,0 @@ -// ~~ Generated by projen. To modify, edit .projenrc.js and run "npx projen". -{ - "extends": "./tsconfig.src.json", - "compilerOptions": { - "tsBuildInfoFile": ".tsbuildinfo/cjs.tsbuildinfo", - "outDir": "build/cjs", - "moduleResolution": "node", - "module": "CommonJS" - }, - "references": [ - { - "path": "../commons/tsconfig.cjs.json" - } - ] -} diff --git a/packages/client-scheduler/.gitattributes b/packages/client-scheduler/.gitattributes index 44ee1f36..25ecb9bb 100644 --- a/packages/client-scheduler/.gitattributes +++ b/packages/client-scheduler/.gitattributes @@ -13,7 +13,6 @@ /LICENSE linguist-generated /package.json linguist-generated /pnpm-lock.yaml linguist-generated -/tsconfig.cjs.json linguist-generated /tsconfig.dev.json linguist-generated /tsconfig.esm.json linguist-generated /tsconfig.json linguist-generated diff --git a/packages/client-scheduler/.gitignore b/packages/client-scheduler/.gitignore index 9b3e7285..919c7a88 100644 --- a/packages/client-scheduler/.gitignore +++ b/packages/client-scheduler/.gitignore @@ -38,7 +38,6 @@ jspm_packages/ !/tsconfig.src.json !/tsconfig.dev.json !/tsconfig.esm.json -!/tsconfig.cjs.json !/docgen.json docs/ !/vitest.config.ts diff --git a/packages/client-scheduler/.npmignore b/packages/client-scheduler/.npmignore index fe4e41d6..e202c1d1 100644 --- a/packages/client-scheduler/.npmignore +++ b/packages/client-scheduler/.npmignore @@ -15,5 +15,4 @@ tsconfig.tsbuildinfo /tsconfig.src.json /tsconfig.dev.json /tsconfig.esm.json -/tsconfig.cjs.json /.gitattributes diff --git a/packages/client-scheduler/.projen/files.json b/packages/client-scheduler/.projen/files.json index e57ad5f8..1f5dd1db 100644 --- a/packages/client-scheduler/.projen/files.json +++ b/packages/client-scheduler/.projen/files.json @@ -8,7 +8,6 @@ ".projen/tasks.json", "docgen.json", "LICENSE", - "tsconfig.cjs.json", "tsconfig.dev.json", "tsconfig.esm.json", "tsconfig.json", diff --git a/packages/client-scheduler/.projen/tasks.json b/packages/client-scheduler/.projen/tasks.json index ad983f13..45b10abd 100644 --- a/packages/client-scheduler/.projen/tasks.json +++ b/packages/client-scheduler/.projen/tasks.json @@ -26,7 +26,7 @@ "description": "Only compile", "steps": [ { - "exec": "tsc -b ./tsconfig.cjs.json ./tsconfig.esm.json" + "exec": "tsc -b ./tsconfig.esm.json" } ] }, diff --git a/packages/client-scheduler/tsconfig.cjs.json b/packages/client-scheduler/tsconfig.cjs.json deleted file mode 100644 index dc7413de..00000000 --- a/packages/client-scheduler/tsconfig.cjs.json +++ /dev/null @@ -1,15 +0,0 @@ -// ~~ Generated by projen. To modify, edit .projenrc.js and run "npx projen". -{ - "extends": "./tsconfig.src.json", - "compilerOptions": { - "tsBuildInfoFile": ".tsbuildinfo/cjs.tsbuildinfo", - "outDir": "build/cjs", - "moduleResolution": "node", - "module": "CommonJS" - }, - "references": [ - { - "path": "../commons/tsconfig.cjs.json" - } - ] -} diff --git a/packages/client-secrets-manager/.gitattributes b/packages/client-secrets-manager/.gitattributes index 44ee1f36..25ecb9bb 100644 --- a/packages/client-secrets-manager/.gitattributes +++ b/packages/client-secrets-manager/.gitattributes @@ -13,7 +13,6 @@ /LICENSE linguist-generated /package.json linguist-generated /pnpm-lock.yaml linguist-generated -/tsconfig.cjs.json linguist-generated /tsconfig.dev.json linguist-generated /tsconfig.esm.json linguist-generated /tsconfig.json linguist-generated diff --git a/packages/client-secrets-manager/.gitignore b/packages/client-secrets-manager/.gitignore index 9b3e7285..919c7a88 100644 --- a/packages/client-secrets-manager/.gitignore +++ b/packages/client-secrets-manager/.gitignore @@ -38,7 +38,6 @@ jspm_packages/ !/tsconfig.src.json !/tsconfig.dev.json !/tsconfig.esm.json -!/tsconfig.cjs.json !/docgen.json docs/ !/vitest.config.ts diff --git a/packages/client-secrets-manager/.npmignore b/packages/client-secrets-manager/.npmignore index fe4e41d6..e202c1d1 100644 --- a/packages/client-secrets-manager/.npmignore +++ b/packages/client-secrets-manager/.npmignore @@ -15,5 +15,4 @@ tsconfig.tsbuildinfo /tsconfig.src.json /tsconfig.dev.json /tsconfig.esm.json -/tsconfig.cjs.json /.gitattributes diff --git a/packages/client-secrets-manager/.projen/files.json b/packages/client-secrets-manager/.projen/files.json index e57ad5f8..1f5dd1db 100644 --- a/packages/client-secrets-manager/.projen/files.json +++ b/packages/client-secrets-manager/.projen/files.json @@ -8,7 +8,6 @@ ".projen/tasks.json", "docgen.json", "LICENSE", - "tsconfig.cjs.json", "tsconfig.dev.json", "tsconfig.esm.json", "tsconfig.json", diff --git a/packages/client-secrets-manager/.projen/tasks.json b/packages/client-secrets-manager/.projen/tasks.json index ad983f13..45b10abd 100644 --- a/packages/client-secrets-manager/.projen/tasks.json +++ b/packages/client-secrets-manager/.projen/tasks.json @@ -26,7 +26,7 @@ "description": "Only compile", "steps": [ { - "exec": "tsc -b ./tsconfig.cjs.json ./tsconfig.esm.json" + "exec": "tsc -b ./tsconfig.esm.json" } ] }, diff --git a/packages/client-secrets-manager/tsconfig.cjs.json b/packages/client-secrets-manager/tsconfig.cjs.json deleted file mode 100644 index dc7413de..00000000 --- a/packages/client-secrets-manager/tsconfig.cjs.json +++ /dev/null @@ -1,15 +0,0 @@ -// ~~ Generated by projen. To modify, edit .projenrc.js and run "npx projen". -{ - "extends": "./tsconfig.src.json", - "compilerOptions": { - "tsBuildInfoFile": ".tsbuildinfo/cjs.tsbuildinfo", - "outDir": "build/cjs", - "moduleResolution": "node", - "module": "CommonJS" - }, - "references": [ - { - "path": "../commons/tsconfig.cjs.json" - } - ] -} diff --git a/packages/client-ses/.gitattributes b/packages/client-ses/.gitattributes index 44ee1f36..25ecb9bb 100644 --- a/packages/client-ses/.gitattributes +++ b/packages/client-ses/.gitattributes @@ -13,7 +13,6 @@ /LICENSE linguist-generated /package.json linguist-generated /pnpm-lock.yaml linguist-generated -/tsconfig.cjs.json linguist-generated /tsconfig.dev.json linguist-generated /tsconfig.esm.json linguist-generated /tsconfig.json linguist-generated diff --git a/packages/client-ses/.gitignore b/packages/client-ses/.gitignore index 9b3e7285..919c7a88 100644 --- a/packages/client-ses/.gitignore +++ b/packages/client-ses/.gitignore @@ -38,7 +38,6 @@ jspm_packages/ !/tsconfig.src.json !/tsconfig.dev.json !/tsconfig.esm.json -!/tsconfig.cjs.json !/docgen.json docs/ !/vitest.config.ts diff --git a/packages/client-ses/.npmignore b/packages/client-ses/.npmignore index fe4e41d6..e202c1d1 100644 --- a/packages/client-ses/.npmignore +++ b/packages/client-ses/.npmignore @@ -15,5 +15,4 @@ tsconfig.tsbuildinfo /tsconfig.src.json /tsconfig.dev.json /tsconfig.esm.json -/tsconfig.cjs.json /.gitattributes diff --git a/packages/client-ses/.projen/files.json b/packages/client-ses/.projen/files.json index e57ad5f8..1f5dd1db 100644 --- a/packages/client-ses/.projen/files.json +++ b/packages/client-ses/.projen/files.json @@ -8,7 +8,6 @@ ".projen/tasks.json", "docgen.json", "LICENSE", - "tsconfig.cjs.json", "tsconfig.dev.json", "tsconfig.esm.json", "tsconfig.json", diff --git a/packages/client-ses/.projen/tasks.json b/packages/client-ses/.projen/tasks.json index ad983f13..45b10abd 100644 --- a/packages/client-ses/.projen/tasks.json +++ b/packages/client-ses/.projen/tasks.json @@ -26,7 +26,7 @@ "description": "Only compile", "steps": [ { - "exec": "tsc -b ./tsconfig.cjs.json ./tsconfig.esm.json" + "exec": "tsc -b ./tsconfig.esm.json" } ] }, diff --git a/packages/client-ses/tsconfig.cjs.json b/packages/client-ses/tsconfig.cjs.json deleted file mode 100644 index dc7413de..00000000 --- a/packages/client-ses/tsconfig.cjs.json +++ /dev/null @@ -1,15 +0,0 @@ -// ~~ Generated by projen. To modify, edit .projenrc.js and run "npx projen". -{ - "extends": "./tsconfig.src.json", - "compilerOptions": { - "tsBuildInfoFile": ".tsbuildinfo/cjs.tsbuildinfo", - "outDir": "build/cjs", - "moduleResolution": "node", - "module": "CommonJS" - }, - "references": [ - { - "path": "../commons/tsconfig.cjs.json" - } - ] -} diff --git a/packages/client-sfn/.gitattributes b/packages/client-sfn/.gitattributes index 44ee1f36..25ecb9bb 100644 --- a/packages/client-sfn/.gitattributes +++ b/packages/client-sfn/.gitattributes @@ -13,7 +13,6 @@ /LICENSE linguist-generated /package.json linguist-generated /pnpm-lock.yaml linguist-generated -/tsconfig.cjs.json linguist-generated /tsconfig.dev.json linguist-generated /tsconfig.esm.json linguist-generated /tsconfig.json linguist-generated diff --git a/packages/client-sfn/.gitignore b/packages/client-sfn/.gitignore index 9b3e7285..919c7a88 100644 --- a/packages/client-sfn/.gitignore +++ b/packages/client-sfn/.gitignore @@ -38,7 +38,6 @@ jspm_packages/ !/tsconfig.src.json !/tsconfig.dev.json !/tsconfig.esm.json -!/tsconfig.cjs.json !/docgen.json docs/ !/vitest.config.ts diff --git a/packages/client-sfn/.npmignore b/packages/client-sfn/.npmignore index fe4e41d6..e202c1d1 100644 --- a/packages/client-sfn/.npmignore +++ b/packages/client-sfn/.npmignore @@ -15,5 +15,4 @@ tsconfig.tsbuildinfo /tsconfig.src.json /tsconfig.dev.json /tsconfig.esm.json -/tsconfig.cjs.json /.gitattributes diff --git a/packages/client-sfn/.projen/files.json b/packages/client-sfn/.projen/files.json index e57ad5f8..1f5dd1db 100644 --- a/packages/client-sfn/.projen/files.json +++ b/packages/client-sfn/.projen/files.json @@ -8,7 +8,6 @@ ".projen/tasks.json", "docgen.json", "LICENSE", - "tsconfig.cjs.json", "tsconfig.dev.json", "tsconfig.esm.json", "tsconfig.json", diff --git a/packages/client-sfn/.projen/tasks.json b/packages/client-sfn/.projen/tasks.json index ad983f13..45b10abd 100644 --- a/packages/client-sfn/.projen/tasks.json +++ b/packages/client-sfn/.projen/tasks.json @@ -26,7 +26,7 @@ "description": "Only compile", "steps": [ { - "exec": "tsc -b ./tsconfig.cjs.json ./tsconfig.esm.json" + "exec": "tsc -b ./tsconfig.esm.json" } ] }, diff --git a/packages/client-sfn/tsconfig.cjs.json b/packages/client-sfn/tsconfig.cjs.json deleted file mode 100644 index dc7413de..00000000 --- a/packages/client-sfn/tsconfig.cjs.json +++ /dev/null @@ -1,15 +0,0 @@ -// ~~ Generated by projen. To modify, edit .projenrc.js and run "npx projen". -{ - "extends": "./tsconfig.src.json", - "compilerOptions": { - "tsBuildInfoFile": ".tsbuildinfo/cjs.tsbuildinfo", - "outDir": "build/cjs", - "moduleResolution": "node", - "module": "CommonJS" - }, - "references": [ - { - "path": "../commons/tsconfig.cjs.json" - } - ] -} diff --git a/packages/client-sns/.gitattributes b/packages/client-sns/.gitattributes index 44ee1f36..25ecb9bb 100644 --- a/packages/client-sns/.gitattributes +++ b/packages/client-sns/.gitattributes @@ -13,7 +13,6 @@ /LICENSE linguist-generated /package.json linguist-generated /pnpm-lock.yaml linguist-generated -/tsconfig.cjs.json linguist-generated /tsconfig.dev.json linguist-generated /tsconfig.esm.json linguist-generated /tsconfig.json linguist-generated diff --git a/packages/client-sns/.gitignore b/packages/client-sns/.gitignore index 9b3e7285..919c7a88 100644 --- a/packages/client-sns/.gitignore +++ b/packages/client-sns/.gitignore @@ -38,7 +38,6 @@ jspm_packages/ !/tsconfig.src.json !/tsconfig.dev.json !/tsconfig.esm.json -!/tsconfig.cjs.json !/docgen.json docs/ !/vitest.config.ts diff --git a/packages/client-sns/.npmignore b/packages/client-sns/.npmignore index fe4e41d6..e202c1d1 100644 --- a/packages/client-sns/.npmignore +++ b/packages/client-sns/.npmignore @@ -15,5 +15,4 @@ tsconfig.tsbuildinfo /tsconfig.src.json /tsconfig.dev.json /tsconfig.esm.json -/tsconfig.cjs.json /.gitattributes diff --git a/packages/client-sns/.projen/files.json b/packages/client-sns/.projen/files.json index e57ad5f8..1f5dd1db 100644 --- a/packages/client-sns/.projen/files.json +++ b/packages/client-sns/.projen/files.json @@ -8,7 +8,6 @@ ".projen/tasks.json", "docgen.json", "LICENSE", - "tsconfig.cjs.json", "tsconfig.dev.json", "tsconfig.esm.json", "tsconfig.json", diff --git a/packages/client-sns/.projen/tasks.json b/packages/client-sns/.projen/tasks.json index ad983f13..45b10abd 100644 --- a/packages/client-sns/.projen/tasks.json +++ b/packages/client-sns/.projen/tasks.json @@ -26,7 +26,7 @@ "description": "Only compile", "steps": [ { - "exec": "tsc -b ./tsconfig.cjs.json ./tsconfig.esm.json" + "exec": "tsc -b ./tsconfig.esm.json" } ] }, diff --git a/packages/client-sns/tsconfig.cjs.json b/packages/client-sns/tsconfig.cjs.json deleted file mode 100644 index dc7413de..00000000 --- a/packages/client-sns/tsconfig.cjs.json +++ /dev/null @@ -1,15 +0,0 @@ -// ~~ Generated by projen. To modify, edit .projenrc.js and run "npx projen". -{ - "extends": "./tsconfig.src.json", - "compilerOptions": { - "tsBuildInfoFile": ".tsbuildinfo/cjs.tsbuildinfo", - "outDir": "build/cjs", - "moduleResolution": "node", - "module": "CommonJS" - }, - "references": [ - { - "path": "../commons/tsconfig.cjs.json" - } - ] -} diff --git a/packages/client-sqs/.gitattributes b/packages/client-sqs/.gitattributes index 44ee1f36..25ecb9bb 100644 --- a/packages/client-sqs/.gitattributes +++ b/packages/client-sqs/.gitattributes @@ -13,7 +13,6 @@ /LICENSE linguist-generated /package.json linguist-generated /pnpm-lock.yaml linguist-generated -/tsconfig.cjs.json linguist-generated /tsconfig.dev.json linguist-generated /tsconfig.esm.json linguist-generated /tsconfig.json linguist-generated diff --git a/packages/client-sqs/.gitignore b/packages/client-sqs/.gitignore index 9b3e7285..919c7a88 100644 --- a/packages/client-sqs/.gitignore +++ b/packages/client-sqs/.gitignore @@ -38,7 +38,6 @@ jspm_packages/ !/tsconfig.src.json !/tsconfig.dev.json !/tsconfig.esm.json -!/tsconfig.cjs.json !/docgen.json docs/ !/vitest.config.ts diff --git a/packages/client-sqs/.npmignore b/packages/client-sqs/.npmignore index fe4e41d6..e202c1d1 100644 --- a/packages/client-sqs/.npmignore +++ b/packages/client-sqs/.npmignore @@ -15,5 +15,4 @@ tsconfig.tsbuildinfo /tsconfig.src.json /tsconfig.dev.json /tsconfig.esm.json -/tsconfig.cjs.json /.gitattributes diff --git a/packages/client-sqs/.projen/files.json b/packages/client-sqs/.projen/files.json index e57ad5f8..1f5dd1db 100644 --- a/packages/client-sqs/.projen/files.json +++ b/packages/client-sqs/.projen/files.json @@ -8,7 +8,6 @@ ".projen/tasks.json", "docgen.json", "LICENSE", - "tsconfig.cjs.json", "tsconfig.dev.json", "tsconfig.esm.json", "tsconfig.json", diff --git a/packages/client-sqs/.projen/tasks.json b/packages/client-sqs/.projen/tasks.json index ad983f13..45b10abd 100644 --- a/packages/client-sqs/.projen/tasks.json +++ b/packages/client-sqs/.projen/tasks.json @@ -26,7 +26,7 @@ "description": "Only compile", "steps": [ { - "exec": "tsc -b ./tsconfig.cjs.json ./tsconfig.esm.json" + "exec": "tsc -b ./tsconfig.esm.json" } ] }, diff --git a/packages/client-sqs/tsconfig.cjs.json b/packages/client-sqs/tsconfig.cjs.json deleted file mode 100644 index dc7413de..00000000 --- a/packages/client-sqs/tsconfig.cjs.json +++ /dev/null @@ -1,15 +0,0 @@ -// ~~ Generated by projen. To modify, edit .projenrc.js and run "npx projen". -{ - "extends": "./tsconfig.src.json", - "compilerOptions": { - "tsBuildInfoFile": ".tsbuildinfo/cjs.tsbuildinfo", - "outDir": "build/cjs", - "moduleResolution": "node", - "module": "CommonJS" - }, - "references": [ - { - "path": "../commons/tsconfig.cjs.json" - } - ] -} diff --git a/packages/client-ssm/.gitattributes b/packages/client-ssm/.gitattributes index 44ee1f36..25ecb9bb 100644 --- a/packages/client-ssm/.gitattributes +++ b/packages/client-ssm/.gitattributes @@ -13,7 +13,6 @@ /LICENSE linguist-generated /package.json linguist-generated /pnpm-lock.yaml linguist-generated -/tsconfig.cjs.json linguist-generated /tsconfig.dev.json linguist-generated /tsconfig.esm.json linguist-generated /tsconfig.json linguist-generated diff --git a/packages/client-ssm/.gitignore b/packages/client-ssm/.gitignore index 9b3e7285..919c7a88 100644 --- a/packages/client-ssm/.gitignore +++ b/packages/client-ssm/.gitignore @@ -38,7 +38,6 @@ jspm_packages/ !/tsconfig.src.json !/tsconfig.dev.json !/tsconfig.esm.json -!/tsconfig.cjs.json !/docgen.json docs/ !/vitest.config.ts diff --git a/packages/client-ssm/.npmignore b/packages/client-ssm/.npmignore index fe4e41d6..e202c1d1 100644 --- a/packages/client-ssm/.npmignore +++ b/packages/client-ssm/.npmignore @@ -15,5 +15,4 @@ tsconfig.tsbuildinfo /tsconfig.src.json /tsconfig.dev.json /tsconfig.esm.json -/tsconfig.cjs.json /.gitattributes diff --git a/packages/client-ssm/.projen/files.json b/packages/client-ssm/.projen/files.json index e57ad5f8..1f5dd1db 100644 --- a/packages/client-ssm/.projen/files.json +++ b/packages/client-ssm/.projen/files.json @@ -8,7 +8,6 @@ ".projen/tasks.json", "docgen.json", "LICENSE", - "tsconfig.cjs.json", "tsconfig.dev.json", "tsconfig.esm.json", "tsconfig.json", diff --git a/packages/client-ssm/.projen/tasks.json b/packages/client-ssm/.projen/tasks.json index ad983f13..45b10abd 100644 --- a/packages/client-ssm/.projen/tasks.json +++ b/packages/client-ssm/.projen/tasks.json @@ -26,7 +26,7 @@ "description": "Only compile", "steps": [ { - "exec": "tsc -b ./tsconfig.cjs.json ./tsconfig.esm.json" + "exec": "tsc -b ./tsconfig.esm.json" } ] }, diff --git a/packages/client-ssm/tsconfig.cjs.json b/packages/client-ssm/tsconfig.cjs.json deleted file mode 100644 index dc7413de..00000000 --- a/packages/client-ssm/tsconfig.cjs.json +++ /dev/null @@ -1,15 +0,0 @@ -// ~~ Generated by projen. To modify, edit .projenrc.js and run "npx projen". -{ - "extends": "./tsconfig.src.json", - "compilerOptions": { - "tsBuildInfoFile": ".tsbuildinfo/cjs.tsbuildinfo", - "outDir": "build/cjs", - "moduleResolution": "node", - "module": "CommonJS" - }, - "references": [ - { - "path": "../commons/tsconfig.cjs.json" - } - ] -} diff --git a/packages/client-sts/.gitattributes b/packages/client-sts/.gitattributes index 44ee1f36..25ecb9bb 100644 --- a/packages/client-sts/.gitattributes +++ b/packages/client-sts/.gitattributes @@ -13,7 +13,6 @@ /LICENSE linguist-generated /package.json linguist-generated /pnpm-lock.yaml linguist-generated -/tsconfig.cjs.json linguist-generated /tsconfig.dev.json linguist-generated /tsconfig.esm.json linguist-generated /tsconfig.json linguist-generated diff --git a/packages/client-sts/.gitignore b/packages/client-sts/.gitignore index 9b3e7285..919c7a88 100644 --- a/packages/client-sts/.gitignore +++ b/packages/client-sts/.gitignore @@ -38,7 +38,6 @@ jspm_packages/ !/tsconfig.src.json !/tsconfig.dev.json !/tsconfig.esm.json -!/tsconfig.cjs.json !/docgen.json docs/ !/vitest.config.ts diff --git a/packages/client-sts/.npmignore b/packages/client-sts/.npmignore index fe4e41d6..e202c1d1 100644 --- a/packages/client-sts/.npmignore +++ b/packages/client-sts/.npmignore @@ -15,5 +15,4 @@ tsconfig.tsbuildinfo /tsconfig.src.json /tsconfig.dev.json /tsconfig.esm.json -/tsconfig.cjs.json /.gitattributes diff --git a/packages/client-sts/.projen/files.json b/packages/client-sts/.projen/files.json index e57ad5f8..1f5dd1db 100644 --- a/packages/client-sts/.projen/files.json +++ b/packages/client-sts/.projen/files.json @@ -8,7 +8,6 @@ ".projen/tasks.json", "docgen.json", "LICENSE", - "tsconfig.cjs.json", "tsconfig.dev.json", "tsconfig.esm.json", "tsconfig.json", diff --git a/packages/client-sts/.projen/tasks.json b/packages/client-sts/.projen/tasks.json index ad983f13..45b10abd 100644 --- a/packages/client-sts/.projen/tasks.json +++ b/packages/client-sts/.projen/tasks.json @@ -26,7 +26,7 @@ "description": "Only compile", "steps": [ { - "exec": "tsc -b ./tsconfig.cjs.json ./tsconfig.esm.json" + "exec": "tsc -b ./tsconfig.esm.json" } ] }, diff --git a/packages/client-sts/tsconfig.cjs.json b/packages/client-sts/tsconfig.cjs.json deleted file mode 100644 index dc7413de..00000000 --- a/packages/client-sts/tsconfig.cjs.json +++ /dev/null @@ -1,15 +0,0 @@ -// ~~ Generated by projen. To modify, edit .projenrc.js and run "npx projen". -{ - "extends": "./tsconfig.src.json", - "compilerOptions": { - "tsBuildInfoFile": ".tsbuildinfo/cjs.tsbuildinfo", - "outDir": "build/cjs", - "moduleResolution": "node", - "module": "CommonJS" - }, - "references": [ - { - "path": "../commons/tsconfig.cjs.json" - } - ] -} diff --git a/packages/client-textract/.gitattributes b/packages/client-textract/.gitattributes index 44ee1f36..25ecb9bb 100644 --- a/packages/client-textract/.gitattributes +++ b/packages/client-textract/.gitattributes @@ -13,7 +13,6 @@ /LICENSE linguist-generated /package.json linguist-generated /pnpm-lock.yaml linguist-generated -/tsconfig.cjs.json linguist-generated /tsconfig.dev.json linguist-generated /tsconfig.esm.json linguist-generated /tsconfig.json linguist-generated diff --git a/packages/client-textract/.gitignore b/packages/client-textract/.gitignore index 9b3e7285..919c7a88 100644 --- a/packages/client-textract/.gitignore +++ b/packages/client-textract/.gitignore @@ -38,7 +38,6 @@ jspm_packages/ !/tsconfig.src.json !/tsconfig.dev.json !/tsconfig.esm.json -!/tsconfig.cjs.json !/docgen.json docs/ !/vitest.config.ts diff --git a/packages/client-textract/.npmignore b/packages/client-textract/.npmignore index fe4e41d6..e202c1d1 100644 --- a/packages/client-textract/.npmignore +++ b/packages/client-textract/.npmignore @@ -15,5 +15,4 @@ tsconfig.tsbuildinfo /tsconfig.src.json /tsconfig.dev.json /tsconfig.esm.json -/tsconfig.cjs.json /.gitattributes diff --git a/packages/client-textract/.projen/files.json b/packages/client-textract/.projen/files.json index e57ad5f8..1f5dd1db 100644 --- a/packages/client-textract/.projen/files.json +++ b/packages/client-textract/.projen/files.json @@ -8,7 +8,6 @@ ".projen/tasks.json", "docgen.json", "LICENSE", - "tsconfig.cjs.json", "tsconfig.dev.json", "tsconfig.esm.json", "tsconfig.json", diff --git a/packages/client-textract/.projen/tasks.json b/packages/client-textract/.projen/tasks.json index ad983f13..45b10abd 100644 --- a/packages/client-textract/.projen/tasks.json +++ b/packages/client-textract/.projen/tasks.json @@ -26,7 +26,7 @@ "description": "Only compile", "steps": [ { - "exec": "tsc -b ./tsconfig.cjs.json ./tsconfig.esm.json" + "exec": "tsc -b ./tsconfig.esm.json" } ] }, diff --git a/packages/client-textract/tsconfig.cjs.json b/packages/client-textract/tsconfig.cjs.json deleted file mode 100644 index dc7413de..00000000 --- a/packages/client-textract/tsconfig.cjs.json +++ /dev/null @@ -1,15 +0,0 @@ -// ~~ Generated by projen. To modify, edit .projenrc.js and run "npx projen". -{ - "extends": "./tsconfig.src.json", - "compilerOptions": { - "tsBuildInfoFile": ".tsbuildinfo/cjs.tsbuildinfo", - "outDir": "build/cjs", - "moduleResolution": "node", - "module": "CommonJS" - }, - "references": [ - { - "path": "../commons/tsconfig.cjs.json" - } - ] -} diff --git a/packages/client-timestream-influxdb/.gitattributes b/packages/client-timestream-influxdb/.gitattributes index 44ee1f36..25ecb9bb 100644 --- a/packages/client-timestream-influxdb/.gitattributes +++ b/packages/client-timestream-influxdb/.gitattributes @@ -13,7 +13,6 @@ /LICENSE linguist-generated /package.json linguist-generated /pnpm-lock.yaml linguist-generated -/tsconfig.cjs.json linguist-generated /tsconfig.dev.json linguist-generated /tsconfig.esm.json linguist-generated /tsconfig.json linguist-generated diff --git a/packages/client-timestream-influxdb/.gitignore b/packages/client-timestream-influxdb/.gitignore index 9b3e7285..919c7a88 100644 --- a/packages/client-timestream-influxdb/.gitignore +++ b/packages/client-timestream-influxdb/.gitignore @@ -38,7 +38,6 @@ jspm_packages/ !/tsconfig.src.json !/tsconfig.dev.json !/tsconfig.esm.json -!/tsconfig.cjs.json !/docgen.json docs/ !/vitest.config.ts diff --git a/packages/client-timestream-influxdb/.npmignore b/packages/client-timestream-influxdb/.npmignore index fe4e41d6..e202c1d1 100644 --- a/packages/client-timestream-influxdb/.npmignore +++ b/packages/client-timestream-influxdb/.npmignore @@ -15,5 +15,4 @@ tsconfig.tsbuildinfo /tsconfig.src.json /tsconfig.dev.json /tsconfig.esm.json -/tsconfig.cjs.json /.gitattributes diff --git a/packages/client-timestream-influxdb/.projen/files.json b/packages/client-timestream-influxdb/.projen/files.json index e57ad5f8..1f5dd1db 100644 --- a/packages/client-timestream-influxdb/.projen/files.json +++ b/packages/client-timestream-influxdb/.projen/files.json @@ -8,7 +8,6 @@ ".projen/tasks.json", "docgen.json", "LICENSE", - "tsconfig.cjs.json", "tsconfig.dev.json", "tsconfig.esm.json", "tsconfig.json", diff --git a/packages/client-timestream-influxdb/.projen/tasks.json b/packages/client-timestream-influxdb/.projen/tasks.json index ad983f13..45b10abd 100644 --- a/packages/client-timestream-influxdb/.projen/tasks.json +++ b/packages/client-timestream-influxdb/.projen/tasks.json @@ -26,7 +26,7 @@ "description": "Only compile", "steps": [ { - "exec": "tsc -b ./tsconfig.cjs.json ./tsconfig.esm.json" + "exec": "tsc -b ./tsconfig.esm.json" } ] }, diff --git a/packages/client-timestream-influxdb/tsconfig.cjs.json b/packages/client-timestream-influxdb/tsconfig.cjs.json deleted file mode 100644 index dc7413de..00000000 --- a/packages/client-timestream-influxdb/tsconfig.cjs.json +++ /dev/null @@ -1,15 +0,0 @@ -// ~~ Generated by projen. To modify, edit .projenrc.js and run "npx projen". -{ - "extends": "./tsconfig.src.json", - "compilerOptions": { - "tsBuildInfoFile": ".tsbuildinfo/cjs.tsbuildinfo", - "outDir": "build/cjs", - "moduleResolution": "node", - "module": "CommonJS" - }, - "references": [ - { - "path": "../commons/tsconfig.cjs.json" - } - ] -} diff --git a/packages/client-timestream-query/.gitattributes b/packages/client-timestream-query/.gitattributes index 44ee1f36..25ecb9bb 100644 --- a/packages/client-timestream-query/.gitattributes +++ b/packages/client-timestream-query/.gitattributes @@ -13,7 +13,6 @@ /LICENSE linguist-generated /package.json linguist-generated /pnpm-lock.yaml linguist-generated -/tsconfig.cjs.json linguist-generated /tsconfig.dev.json linguist-generated /tsconfig.esm.json linguist-generated /tsconfig.json linguist-generated diff --git a/packages/client-timestream-query/.gitignore b/packages/client-timestream-query/.gitignore index 9b3e7285..919c7a88 100644 --- a/packages/client-timestream-query/.gitignore +++ b/packages/client-timestream-query/.gitignore @@ -38,7 +38,6 @@ jspm_packages/ !/tsconfig.src.json !/tsconfig.dev.json !/tsconfig.esm.json -!/tsconfig.cjs.json !/docgen.json docs/ !/vitest.config.ts diff --git a/packages/client-timestream-query/.npmignore b/packages/client-timestream-query/.npmignore index fe4e41d6..e202c1d1 100644 --- a/packages/client-timestream-query/.npmignore +++ b/packages/client-timestream-query/.npmignore @@ -15,5 +15,4 @@ tsconfig.tsbuildinfo /tsconfig.src.json /tsconfig.dev.json /tsconfig.esm.json -/tsconfig.cjs.json /.gitattributes diff --git a/packages/client-timestream-query/.projen/files.json b/packages/client-timestream-query/.projen/files.json index e57ad5f8..1f5dd1db 100644 --- a/packages/client-timestream-query/.projen/files.json +++ b/packages/client-timestream-query/.projen/files.json @@ -8,7 +8,6 @@ ".projen/tasks.json", "docgen.json", "LICENSE", - "tsconfig.cjs.json", "tsconfig.dev.json", "tsconfig.esm.json", "tsconfig.json", diff --git a/packages/client-timestream-query/.projen/tasks.json b/packages/client-timestream-query/.projen/tasks.json index ad983f13..45b10abd 100644 --- a/packages/client-timestream-query/.projen/tasks.json +++ b/packages/client-timestream-query/.projen/tasks.json @@ -26,7 +26,7 @@ "description": "Only compile", "steps": [ { - "exec": "tsc -b ./tsconfig.cjs.json ./tsconfig.esm.json" + "exec": "tsc -b ./tsconfig.esm.json" } ] }, diff --git a/packages/client-timestream-query/tsconfig.cjs.json b/packages/client-timestream-query/tsconfig.cjs.json deleted file mode 100644 index dc7413de..00000000 --- a/packages/client-timestream-query/tsconfig.cjs.json +++ /dev/null @@ -1,15 +0,0 @@ -// ~~ Generated by projen. To modify, edit .projenrc.js and run "npx projen". -{ - "extends": "./tsconfig.src.json", - "compilerOptions": { - "tsBuildInfoFile": ".tsbuildinfo/cjs.tsbuildinfo", - "outDir": "build/cjs", - "moduleResolution": "node", - "module": "CommonJS" - }, - "references": [ - { - "path": "../commons/tsconfig.cjs.json" - } - ] -} diff --git a/packages/client-timestream-write/.gitattributes b/packages/client-timestream-write/.gitattributes index 44ee1f36..25ecb9bb 100644 --- a/packages/client-timestream-write/.gitattributes +++ b/packages/client-timestream-write/.gitattributes @@ -13,7 +13,6 @@ /LICENSE linguist-generated /package.json linguist-generated /pnpm-lock.yaml linguist-generated -/tsconfig.cjs.json linguist-generated /tsconfig.dev.json linguist-generated /tsconfig.esm.json linguist-generated /tsconfig.json linguist-generated diff --git a/packages/client-timestream-write/.gitignore b/packages/client-timestream-write/.gitignore index 9b3e7285..919c7a88 100644 --- a/packages/client-timestream-write/.gitignore +++ b/packages/client-timestream-write/.gitignore @@ -38,7 +38,6 @@ jspm_packages/ !/tsconfig.src.json !/tsconfig.dev.json !/tsconfig.esm.json -!/tsconfig.cjs.json !/docgen.json docs/ !/vitest.config.ts diff --git a/packages/client-timestream-write/.npmignore b/packages/client-timestream-write/.npmignore index fe4e41d6..e202c1d1 100644 --- a/packages/client-timestream-write/.npmignore +++ b/packages/client-timestream-write/.npmignore @@ -15,5 +15,4 @@ tsconfig.tsbuildinfo /tsconfig.src.json /tsconfig.dev.json /tsconfig.esm.json -/tsconfig.cjs.json /.gitattributes diff --git a/packages/client-timestream-write/.projen/files.json b/packages/client-timestream-write/.projen/files.json index e57ad5f8..1f5dd1db 100644 --- a/packages/client-timestream-write/.projen/files.json +++ b/packages/client-timestream-write/.projen/files.json @@ -8,7 +8,6 @@ ".projen/tasks.json", "docgen.json", "LICENSE", - "tsconfig.cjs.json", "tsconfig.dev.json", "tsconfig.esm.json", "tsconfig.json", diff --git a/packages/client-timestream-write/.projen/tasks.json b/packages/client-timestream-write/.projen/tasks.json index ad983f13..45b10abd 100644 --- a/packages/client-timestream-write/.projen/tasks.json +++ b/packages/client-timestream-write/.projen/tasks.json @@ -26,7 +26,7 @@ "description": "Only compile", "steps": [ { - "exec": "tsc -b ./tsconfig.cjs.json ./tsconfig.esm.json" + "exec": "tsc -b ./tsconfig.esm.json" } ] }, diff --git a/packages/client-timestream-write/tsconfig.cjs.json b/packages/client-timestream-write/tsconfig.cjs.json deleted file mode 100644 index dc7413de..00000000 --- a/packages/client-timestream-write/tsconfig.cjs.json +++ /dev/null @@ -1,15 +0,0 @@ -// ~~ Generated by projen. To modify, edit .projenrc.js and run "npx projen". -{ - "extends": "./tsconfig.src.json", - "compilerOptions": { - "tsBuildInfoFile": ".tsbuildinfo/cjs.tsbuildinfo", - "outDir": "build/cjs", - "moduleResolution": "node", - "module": "CommonJS" - }, - "references": [ - { - "path": "../commons/tsconfig.cjs.json" - } - ] -} diff --git a/packages/commons/.gitattributes b/packages/commons/.gitattributes index 44ee1f36..25ecb9bb 100644 --- a/packages/commons/.gitattributes +++ b/packages/commons/.gitattributes @@ -13,7 +13,6 @@ /LICENSE linguist-generated /package.json linguist-generated /pnpm-lock.yaml linguist-generated -/tsconfig.cjs.json linguist-generated /tsconfig.dev.json linguist-generated /tsconfig.esm.json linguist-generated /tsconfig.json linguist-generated diff --git a/packages/commons/.gitignore b/packages/commons/.gitignore index 9b3e7285..919c7a88 100644 --- a/packages/commons/.gitignore +++ b/packages/commons/.gitignore @@ -38,7 +38,6 @@ jspm_packages/ !/tsconfig.src.json !/tsconfig.dev.json !/tsconfig.esm.json -!/tsconfig.cjs.json !/docgen.json docs/ !/vitest.config.ts diff --git a/packages/commons/.npmignore b/packages/commons/.npmignore index fe4e41d6..e202c1d1 100644 --- a/packages/commons/.npmignore +++ b/packages/commons/.npmignore @@ -15,5 +15,4 @@ tsconfig.tsbuildinfo /tsconfig.src.json /tsconfig.dev.json /tsconfig.esm.json -/tsconfig.cjs.json /.gitattributes diff --git a/packages/commons/.projen/files.json b/packages/commons/.projen/files.json index e57ad5f8..1f5dd1db 100644 --- a/packages/commons/.projen/files.json +++ b/packages/commons/.projen/files.json @@ -8,7 +8,6 @@ ".projen/tasks.json", "docgen.json", "LICENSE", - "tsconfig.cjs.json", "tsconfig.dev.json", "tsconfig.esm.json", "tsconfig.json", diff --git a/packages/commons/.projen/tasks.json b/packages/commons/.projen/tasks.json index ad983f13..45b10abd 100644 --- a/packages/commons/.projen/tasks.json +++ b/packages/commons/.projen/tasks.json @@ -26,7 +26,7 @@ "description": "Only compile", "steps": [ { - "exec": "tsc -b ./tsconfig.cjs.json ./tsconfig.esm.json" + "exec": "tsc -b ./tsconfig.esm.json" } ] }, diff --git a/packages/commons/tsconfig.cjs.json b/packages/commons/tsconfig.cjs.json deleted file mode 100644 index 5d9330be..00000000 --- a/packages/commons/tsconfig.cjs.json +++ /dev/null @@ -1,10 +0,0 @@ -// ~~ Generated by projen. To modify, edit .projenrc.js and run "npx projen". -{ - "extends": "./tsconfig.src.json", - "compilerOptions": { - "tsBuildInfoFile": ".tsbuildinfo/cjs.tsbuildinfo", - "outDir": "build/cjs", - "moduleResolution": "node", - "module": "CommonJS" - } -} diff --git a/packages/dsql/.gitattributes b/packages/dsql/.gitattributes index 44ee1f36..25ecb9bb 100644 --- a/packages/dsql/.gitattributes +++ b/packages/dsql/.gitattributes @@ -13,7 +13,6 @@ /LICENSE linguist-generated /package.json linguist-generated /pnpm-lock.yaml linguist-generated -/tsconfig.cjs.json linguist-generated /tsconfig.dev.json linguist-generated /tsconfig.esm.json linguist-generated /tsconfig.json linguist-generated diff --git a/packages/dsql/.gitignore b/packages/dsql/.gitignore index 9b3e7285..919c7a88 100644 --- a/packages/dsql/.gitignore +++ b/packages/dsql/.gitignore @@ -38,7 +38,6 @@ jspm_packages/ !/tsconfig.src.json !/tsconfig.dev.json !/tsconfig.esm.json -!/tsconfig.cjs.json !/docgen.json docs/ !/vitest.config.ts diff --git a/packages/dsql/.npmignore b/packages/dsql/.npmignore index fe4e41d6..e202c1d1 100644 --- a/packages/dsql/.npmignore +++ b/packages/dsql/.npmignore @@ -15,5 +15,4 @@ tsconfig.tsbuildinfo /tsconfig.src.json /tsconfig.dev.json /tsconfig.esm.json -/tsconfig.cjs.json /.gitattributes diff --git a/packages/dsql/.projen/files.json b/packages/dsql/.projen/files.json index e57ad5f8..1f5dd1db 100644 --- a/packages/dsql/.projen/files.json +++ b/packages/dsql/.projen/files.json @@ -8,7 +8,6 @@ ".projen/tasks.json", "docgen.json", "LICENSE", - "tsconfig.cjs.json", "tsconfig.dev.json", "tsconfig.esm.json", "tsconfig.json", diff --git a/packages/dsql/.projen/tasks.json b/packages/dsql/.projen/tasks.json index ad983f13..45b10abd 100644 --- a/packages/dsql/.projen/tasks.json +++ b/packages/dsql/.projen/tasks.json @@ -26,7 +26,7 @@ "description": "Only compile", "steps": [ { - "exec": "tsc -b ./tsconfig.cjs.json ./tsconfig.esm.json" + "exec": "tsc -b ./tsconfig.esm.json" } ] }, diff --git a/packages/dsql/tsconfig.cjs.json b/packages/dsql/tsconfig.cjs.json deleted file mode 100644 index 5d9330be..00000000 --- a/packages/dsql/tsconfig.cjs.json +++ /dev/null @@ -1,10 +0,0 @@ -// ~~ Generated by projen. To modify, edit .projenrc.js and run "npx projen". -{ - "extends": "./tsconfig.src.json", - "compilerOptions": { - "tsBuildInfoFile": ".tsbuildinfo/cjs.tsbuildinfo", - "outDir": "build/cjs", - "moduleResolution": "node", - "module": "CommonJS" - } -} diff --git a/packages/dynamodb/.gitattributes b/packages/dynamodb/.gitattributes index 44ee1f36..25ecb9bb 100644 --- a/packages/dynamodb/.gitattributes +++ b/packages/dynamodb/.gitattributes @@ -13,7 +13,6 @@ /LICENSE linguist-generated /package.json linguist-generated /pnpm-lock.yaml linguist-generated -/tsconfig.cjs.json linguist-generated /tsconfig.dev.json linguist-generated /tsconfig.esm.json linguist-generated /tsconfig.json linguist-generated diff --git a/packages/dynamodb/.gitignore b/packages/dynamodb/.gitignore index 9b3e7285..919c7a88 100644 --- a/packages/dynamodb/.gitignore +++ b/packages/dynamodb/.gitignore @@ -38,7 +38,6 @@ jspm_packages/ !/tsconfig.src.json !/tsconfig.dev.json !/tsconfig.esm.json -!/tsconfig.cjs.json !/docgen.json docs/ !/vitest.config.ts diff --git a/packages/dynamodb/.npmignore b/packages/dynamodb/.npmignore index fe4e41d6..e202c1d1 100644 --- a/packages/dynamodb/.npmignore +++ b/packages/dynamodb/.npmignore @@ -15,5 +15,4 @@ tsconfig.tsbuildinfo /tsconfig.src.json /tsconfig.dev.json /tsconfig.esm.json -/tsconfig.cjs.json /.gitattributes diff --git a/packages/dynamodb/.projen/files.json b/packages/dynamodb/.projen/files.json index e57ad5f8..1f5dd1db 100644 --- a/packages/dynamodb/.projen/files.json +++ b/packages/dynamodb/.projen/files.json @@ -8,7 +8,6 @@ ".projen/tasks.json", "docgen.json", "LICENSE", - "tsconfig.cjs.json", "tsconfig.dev.json", "tsconfig.esm.json", "tsconfig.json", diff --git a/packages/dynamodb/.projen/tasks.json b/packages/dynamodb/.projen/tasks.json index ad983f13..45b10abd 100644 --- a/packages/dynamodb/.projen/tasks.json +++ b/packages/dynamodb/.projen/tasks.json @@ -26,7 +26,7 @@ "description": "Only compile", "steps": [ { - "exec": "tsc -b ./tsconfig.cjs.json ./tsconfig.esm.json" + "exec": "tsc -b ./tsconfig.esm.json" } ] }, diff --git a/packages/dynamodb/tsconfig.cjs.json b/packages/dynamodb/tsconfig.cjs.json deleted file mode 100644 index b1c755cc..00000000 --- a/packages/dynamodb/tsconfig.cjs.json +++ /dev/null @@ -1,18 +0,0 @@ -// ~~ Generated by projen. To modify, edit .projenrc.js and run "npx projen". -{ - "extends": "./tsconfig.src.json", - "compilerOptions": { - "tsBuildInfoFile": ".tsbuildinfo/cjs.tsbuildinfo", - "outDir": "build/cjs", - "moduleResolution": "node", - "module": "CommonJS" - }, - "references": [ - { - "path": "../commons/tsconfig.cjs.json" - }, - { - "path": "../client-dynamodb/tsconfig.cjs.json" - } - ] -} diff --git a/packages/http-handler/.gitattributes b/packages/http-handler/.gitattributes index 44ee1f36..25ecb9bb 100644 --- a/packages/http-handler/.gitattributes +++ b/packages/http-handler/.gitattributes @@ -13,7 +13,6 @@ /LICENSE linguist-generated /package.json linguist-generated /pnpm-lock.yaml linguist-generated -/tsconfig.cjs.json linguist-generated /tsconfig.dev.json linguist-generated /tsconfig.esm.json linguist-generated /tsconfig.json linguist-generated diff --git a/packages/http-handler/.gitignore b/packages/http-handler/.gitignore index 9b3e7285..919c7a88 100644 --- a/packages/http-handler/.gitignore +++ b/packages/http-handler/.gitignore @@ -38,7 +38,6 @@ jspm_packages/ !/tsconfig.src.json !/tsconfig.dev.json !/tsconfig.esm.json -!/tsconfig.cjs.json !/docgen.json docs/ !/vitest.config.ts diff --git a/packages/http-handler/.npmignore b/packages/http-handler/.npmignore index fe4e41d6..e202c1d1 100644 --- a/packages/http-handler/.npmignore +++ b/packages/http-handler/.npmignore @@ -15,5 +15,4 @@ tsconfig.tsbuildinfo /tsconfig.src.json /tsconfig.dev.json /tsconfig.esm.json -/tsconfig.cjs.json /.gitattributes diff --git a/packages/http-handler/.projen/files.json b/packages/http-handler/.projen/files.json index e57ad5f8..1f5dd1db 100644 --- a/packages/http-handler/.projen/files.json +++ b/packages/http-handler/.projen/files.json @@ -8,7 +8,6 @@ ".projen/tasks.json", "docgen.json", "LICENSE", - "tsconfig.cjs.json", "tsconfig.dev.json", "tsconfig.esm.json", "tsconfig.json", diff --git a/packages/http-handler/.projen/tasks.json b/packages/http-handler/.projen/tasks.json index ad983f13..45b10abd 100644 --- a/packages/http-handler/.projen/tasks.json +++ b/packages/http-handler/.projen/tasks.json @@ -26,7 +26,7 @@ "description": "Only compile", "steps": [ { - "exec": "tsc -b ./tsconfig.cjs.json ./tsconfig.esm.json" + "exec": "tsc -b ./tsconfig.esm.json" } ] }, diff --git a/packages/http-handler/tsconfig.cjs.json b/packages/http-handler/tsconfig.cjs.json deleted file mode 100644 index dc7413de..00000000 --- a/packages/http-handler/tsconfig.cjs.json +++ /dev/null @@ -1,15 +0,0 @@ -// ~~ Generated by projen. To modify, edit .projenrc.js and run "npx projen". -{ - "extends": "./tsconfig.src.json", - "compilerOptions": { - "tsBuildInfoFile": ".tsbuildinfo/cjs.tsbuildinfo", - "outDir": "build/cjs", - "moduleResolution": "node", - "module": "CommonJS" - }, - "references": [ - { - "path": "../commons/tsconfig.cjs.json" - } - ] -} diff --git a/packages/lambda/.gitattributes b/packages/lambda/.gitattributes index 1a1cfd32..d587042f 100644 --- a/packages/lambda/.gitattributes +++ b/packages/lambda/.gitattributes @@ -13,7 +13,6 @@ /LICENSE linguist-generated /package.json linguist-generated /pnpm-lock.yaml linguist-generated -/tsconfig.cjs.json linguist-generated /tsconfig.dev.json linguist-generated /tsconfig.esm.json linguist-generated /tsconfig.examples.json linguist-generated diff --git a/packages/lambda/.gitignore b/packages/lambda/.gitignore index b4315b2a..57d95c4f 100644 --- a/packages/lambda/.gitignore +++ b/packages/lambda/.gitignore @@ -39,7 +39,6 @@ jspm_packages/ !/tsconfig.dev.json !/tsconfig.examples.json !/tsconfig.esm.json -!/tsconfig.cjs.json !/docgen.json docs/ !/vitest.config.ts diff --git a/packages/lambda/.npmignore b/packages/lambda/.npmignore index 74fb267c..5c0a9f5c 100644 --- a/packages/lambda/.npmignore +++ b/packages/lambda/.npmignore @@ -16,5 +16,4 @@ tsconfig.tsbuildinfo /tsconfig.dev.json /tsconfig.examples.json /tsconfig.esm.json -/tsconfig.cjs.json /.gitattributes diff --git a/packages/lambda/.projen/files.json b/packages/lambda/.projen/files.json index cf98c2f0..e53adfec 100644 --- a/packages/lambda/.projen/files.json +++ b/packages/lambda/.projen/files.json @@ -8,7 +8,6 @@ ".projen/tasks.json", "docgen.json", "LICENSE", - "tsconfig.cjs.json", "tsconfig.dev.json", "tsconfig.esm.json", "tsconfig.examples.json", diff --git a/packages/lambda/.projen/tasks.json b/packages/lambda/.projen/tasks.json index ad983f13..45b10abd 100644 --- a/packages/lambda/.projen/tasks.json +++ b/packages/lambda/.projen/tasks.json @@ -26,7 +26,7 @@ "description": "Only compile", "steps": [ { - "exec": "tsc -b ./tsconfig.cjs.json ./tsconfig.esm.json" + "exec": "tsc -b ./tsconfig.esm.json" } ] }, diff --git a/packages/lambda/tsconfig.cjs.json b/packages/lambda/tsconfig.cjs.json deleted file mode 100644 index 5d9330be..00000000 --- a/packages/lambda/tsconfig.cjs.json +++ /dev/null @@ -1,10 +0,0 @@ -// ~~ Generated by projen. To modify, edit .projenrc.js and run "npx projen". -{ - "extends": "./tsconfig.src.json", - "compilerOptions": { - "tsBuildInfoFile": ".tsbuildinfo/cjs.tsbuildinfo", - "outDir": "build/cjs", - "moduleResolution": "node", - "module": "CommonJS" - } -} diff --git a/packages/powertools-logger/.gitattributes b/packages/powertools-logger/.gitattributes index 44ee1f36..25ecb9bb 100644 --- a/packages/powertools-logger/.gitattributes +++ b/packages/powertools-logger/.gitattributes @@ -13,7 +13,6 @@ /LICENSE linguist-generated /package.json linguist-generated /pnpm-lock.yaml linguist-generated -/tsconfig.cjs.json linguist-generated /tsconfig.dev.json linguist-generated /tsconfig.esm.json linguist-generated /tsconfig.json linguist-generated diff --git a/packages/powertools-logger/.gitignore b/packages/powertools-logger/.gitignore index 9b3e7285..919c7a88 100644 --- a/packages/powertools-logger/.gitignore +++ b/packages/powertools-logger/.gitignore @@ -38,7 +38,6 @@ jspm_packages/ !/tsconfig.src.json !/tsconfig.dev.json !/tsconfig.esm.json -!/tsconfig.cjs.json !/docgen.json docs/ !/vitest.config.ts diff --git a/packages/powertools-logger/.npmignore b/packages/powertools-logger/.npmignore index fe4e41d6..e202c1d1 100644 --- a/packages/powertools-logger/.npmignore +++ b/packages/powertools-logger/.npmignore @@ -15,5 +15,4 @@ tsconfig.tsbuildinfo /tsconfig.src.json /tsconfig.dev.json /tsconfig.esm.json -/tsconfig.cjs.json /.gitattributes diff --git a/packages/powertools-logger/.projen/files.json b/packages/powertools-logger/.projen/files.json index e57ad5f8..1f5dd1db 100644 --- a/packages/powertools-logger/.projen/files.json +++ b/packages/powertools-logger/.projen/files.json @@ -8,7 +8,6 @@ ".projen/tasks.json", "docgen.json", "LICENSE", - "tsconfig.cjs.json", "tsconfig.dev.json", "tsconfig.esm.json", "tsconfig.json", diff --git a/packages/powertools-logger/.projen/tasks.json b/packages/powertools-logger/.projen/tasks.json index ad983f13..45b10abd 100644 --- a/packages/powertools-logger/.projen/tasks.json +++ b/packages/powertools-logger/.projen/tasks.json @@ -26,7 +26,7 @@ "description": "Only compile", "steps": [ { - "exec": "tsc -b ./tsconfig.cjs.json ./tsconfig.esm.json" + "exec": "tsc -b ./tsconfig.esm.json" } ] }, diff --git a/packages/powertools-logger/tsconfig.cjs.json b/packages/powertools-logger/tsconfig.cjs.json deleted file mode 100644 index 5d9330be..00000000 --- a/packages/powertools-logger/tsconfig.cjs.json +++ /dev/null @@ -1,10 +0,0 @@ -// ~~ Generated by projen. To modify, edit .projenrc.js and run "npx projen". -{ - "extends": "./tsconfig.src.json", - "compilerOptions": { - "tsBuildInfoFile": ".tsbuildinfo/cjs.tsbuildinfo", - "outDir": "build/cjs", - "moduleResolution": "node", - "module": "CommonJS" - } -} diff --git a/packages/powertools-tracer/.gitattributes b/packages/powertools-tracer/.gitattributes index 1a1cfd32..d587042f 100644 --- a/packages/powertools-tracer/.gitattributes +++ b/packages/powertools-tracer/.gitattributes @@ -13,7 +13,6 @@ /LICENSE linguist-generated /package.json linguist-generated /pnpm-lock.yaml linguist-generated -/tsconfig.cjs.json linguist-generated /tsconfig.dev.json linguist-generated /tsconfig.esm.json linguist-generated /tsconfig.examples.json linguist-generated diff --git a/packages/powertools-tracer/.gitignore b/packages/powertools-tracer/.gitignore index b4315b2a..57d95c4f 100644 --- a/packages/powertools-tracer/.gitignore +++ b/packages/powertools-tracer/.gitignore @@ -39,7 +39,6 @@ jspm_packages/ !/tsconfig.dev.json !/tsconfig.examples.json !/tsconfig.esm.json -!/tsconfig.cjs.json !/docgen.json docs/ !/vitest.config.ts diff --git a/packages/powertools-tracer/.npmignore b/packages/powertools-tracer/.npmignore index 74fb267c..5c0a9f5c 100644 --- a/packages/powertools-tracer/.npmignore +++ b/packages/powertools-tracer/.npmignore @@ -16,5 +16,4 @@ tsconfig.tsbuildinfo /tsconfig.dev.json /tsconfig.examples.json /tsconfig.esm.json -/tsconfig.cjs.json /.gitattributes diff --git a/packages/powertools-tracer/.projen/files.json b/packages/powertools-tracer/.projen/files.json index cf98c2f0..e53adfec 100644 --- a/packages/powertools-tracer/.projen/files.json +++ b/packages/powertools-tracer/.projen/files.json @@ -8,7 +8,6 @@ ".projen/tasks.json", "docgen.json", "LICENSE", - "tsconfig.cjs.json", "tsconfig.dev.json", "tsconfig.esm.json", "tsconfig.examples.json", diff --git a/packages/powertools-tracer/.projen/tasks.json b/packages/powertools-tracer/.projen/tasks.json index ad983f13..45b10abd 100644 --- a/packages/powertools-tracer/.projen/tasks.json +++ b/packages/powertools-tracer/.projen/tasks.json @@ -26,7 +26,7 @@ "description": "Only compile", "steps": [ { - "exec": "tsc -b ./tsconfig.cjs.json ./tsconfig.esm.json" + "exec": "tsc -b ./tsconfig.esm.json" } ] }, diff --git a/packages/powertools-tracer/tsconfig.cjs.json b/packages/powertools-tracer/tsconfig.cjs.json deleted file mode 100644 index 5d9330be..00000000 --- a/packages/powertools-tracer/tsconfig.cjs.json +++ /dev/null @@ -1,10 +0,0 @@ -// ~~ Generated by projen. To modify, edit .projenrc.js and run "npx projen". -{ - "extends": "./tsconfig.src.json", - "compilerOptions": { - "tsBuildInfoFile": ".tsbuildinfo/cjs.tsbuildinfo", - "outDir": "build/cjs", - "moduleResolution": "node", - "module": "CommonJS" - } -} diff --git a/packages/s3/.gitattributes b/packages/s3/.gitattributes index 1a1cfd32..d587042f 100644 --- a/packages/s3/.gitattributes +++ b/packages/s3/.gitattributes @@ -13,7 +13,6 @@ /LICENSE linguist-generated /package.json linguist-generated /pnpm-lock.yaml linguist-generated -/tsconfig.cjs.json linguist-generated /tsconfig.dev.json linguist-generated /tsconfig.esm.json linguist-generated /tsconfig.examples.json linguist-generated diff --git a/packages/s3/.gitignore b/packages/s3/.gitignore index b4315b2a..57d95c4f 100644 --- a/packages/s3/.gitignore +++ b/packages/s3/.gitignore @@ -39,7 +39,6 @@ jspm_packages/ !/tsconfig.dev.json !/tsconfig.examples.json !/tsconfig.esm.json -!/tsconfig.cjs.json !/docgen.json docs/ !/vitest.config.ts diff --git a/packages/s3/.npmignore b/packages/s3/.npmignore index 74fb267c..5c0a9f5c 100644 --- a/packages/s3/.npmignore +++ b/packages/s3/.npmignore @@ -16,5 +16,4 @@ tsconfig.tsbuildinfo /tsconfig.dev.json /tsconfig.examples.json /tsconfig.esm.json -/tsconfig.cjs.json /.gitattributes diff --git a/packages/s3/.projen/files.json b/packages/s3/.projen/files.json index cf98c2f0..e53adfec 100644 --- a/packages/s3/.projen/files.json +++ b/packages/s3/.projen/files.json @@ -8,7 +8,6 @@ ".projen/tasks.json", "docgen.json", "LICENSE", - "tsconfig.cjs.json", "tsconfig.dev.json", "tsconfig.esm.json", "tsconfig.examples.json", diff --git a/packages/s3/.projen/tasks.json b/packages/s3/.projen/tasks.json index ad983f13..45b10abd 100644 --- a/packages/s3/.projen/tasks.json +++ b/packages/s3/.projen/tasks.json @@ -26,7 +26,7 @@ "description": "Only compile", "steps": [ { - "exec": "tsc -b ./tsconfig.cjs.json ./tsconfig.esm.json" + "exec": "tsc -b ./tsconfig.esm.json" } ] }, diff --git a/packages/s3/tsconfig.cjs.json b/packages/s3/tsconfig.cjs.json deleted file mode 100644 index 0be1d7fa..00000000 --- a/packages/s3/tsconfig.cjs.json +++ /dev/null @@ -1,15 +0,0 @@ -// ~~ Generated by projen. To modify, edit .projenrc.js and run "npx projen". -{ - "extends": "./tsconfig.src.json", - "compilerOptions": { - "tsBuildInfoFile": ".tsbuildinfo/cjs.tsbuildinfo", - "outDir": "build/cjs", - "moduleResolution": "node", - "module": "CommonJS" - }, - "references": [ - { - "path": "../client-s3/tsconfig.cjs.json" - } - ] -} diff --git a/packages/secrets-manager/.gitattributes b/packages/secrets-manager/.gitattributes index 44ee1f36..25ecb9bb 100644 --- a/packages/secrets-manager/.gitattributes +++ b/packages/secrets-manager/.gitattributes @@ -13,7 +13,6 @@ /LICENSE linguist-generated /package.json linguist-generated /pnpm-lock.yaml linguist-generated -/tsconfig.cjs.json linguist-generated /tsconfig.dev.json linguist-generated /tsconfig.esm.json linguist-generated /tsconfig.json linguist-generated diff --git a/packages/secrets-manager/.gitignore b/packages/secrets-manager/.gitignore index 9b3e7285..919c7a88 100644 --- a/packages/secrets-manager/.gitignore +++ b/packages/secrets-manager/.gitignore @@ -38,7 +38,6 @@ jspm_packages/ !/tsconfig.src.json !/tsconfig.dev.json !/tsconfig.esm.json -!/tsconfig.cjs.json !/docgen.json docs/ !/vitest.config.ts diff --git a/packages/secrets-manager/.npmignore b/packages/secrets-manager/.npmignore index fe4e41d6..e202c1d1 100644 --- a/packages/secrets-manager/.npmignore +++ b/packages/secrets-manager/.npmignore @@ -15,5 +15,4 @@ tsconfig.tsbuildinfo /tsconfig.src.json /tsconfig.dev.json /tsconfig.esm.json -/tsconfig.cjs.json /.gitattributes diff --git a/packages/secrets-manager/.projen/files.json b/packages/secrets-manager/.projen/files.json index e57ad5f8..1f5dd1db 100644 --- a/packages/secrets-manager/.projen/files.json +++ b/packages/secrets-manager/.projen/files.json @@ -8,7 +8,6 @@ ".projen/tasks.json", "docgen.json", "LICENSE", - "tsconfig.cjs.json", "tsconfig.dev.json", "tsconfig.esm.json", "tsconfig.json", diff --git a/packages/secrets-manager/.projen/tasks.json b/packages/secrets-manager/.projen/tasks.json index ad983f13..45b10abd 100644 --- a/packages/secrets-manager/.projen/tasks.json +++ b/packages/secrets-manager/.projen/tasks.json @@ -26,7 +26,7 @@ "description": "Only compile", "steps": [ { - "exec": "tsc -b ./tsconfig.cjs.json ./tsconfig.esm.json" + "exec": "tsc -b ./tsconfig.esm.json" } ] }, diff --git a/packages/secrets-manager/tsconfig.cjs.json b/packages/secrets-manager/tsconfig.cjs.json deleted file mode 100644 index 39b1c1c4..00000000 --- a/packages/secrets-manager/tsconfig.cjs.json +++ /dev/null @@ -1,15 +0,0 @@ -// ~~ Generated by projen. To modify, edit .projenrc.js and run "npx projen". -{ - "extends": "./tsconfig.src.json", - "compilerOptions": { - "tsBuildInfoFile": ".tsbuildinfo/cjs.tsbuildinfo", - "outDir": "build/cjs", - "moduleResolution": "node", - "module": "CommonJS" - }, - "references": [ - { - "path": "../client-secrets-manager/tsconfig.cjs.json" - } - ] -} diff --git a/packages/ssm/.gitattributes b/packages/ssm/.gitattributes index 44ee1f36..25ecb9bb 100644 --- a/packages/ssm/.gitattributes +++ b/packages/ssm/.gitattributes @@ -13,7 +13,6 @@ /LICENSE linguist-generated /package.json linguist-generated /pnpm-lock.yaml linguist-generated -/tsconfig.cjs.json linguist-generated /tsconfig.dev.json linguist-generated /tsconfig.esm.json linguist-generated /tsconfig.json linguist-generated diff --git a/packages/ssm/.gitignore b/packages/ssm/.gitignore index 9b3e7285..919c7a88 100644 --- a/packages/ssm/.gitignore +++ b/packages/ssm/.gitignore @@ -38,7 +38,6 @@ jspm_packages/ !/tsconfig.src.json !/tsconfig.dev.json !/tsconfig.esm.json -!/tsconfig.cjs.json !/docgen.json docs/ !/vitest.config.ts diff --git a/packages/ssm/.npmignore b/packages/ssm/.npmignore index fe4e41d6..e202c1d1 100644 --- a/packages/ssm/.npmignore +++ b/packages/ssm/.npmignore @@ -15,5 +15,4 @@ tsconfig.tsbuildinfo /tsconfig.src.json /tsconfig.dev.json /tsconfig.esm.json -/tsconfig.cjs.json /.gitattributes diff --git a/packages/ssm/.projen/files.json b/packages/ssm/.projen/files.json index e57ad5f8..1f5dd1db 100644 --- a/packages/ssm/.projen/files.json +++ b/packages/ssm/.projen/files.json @@ -8,7 +8,6 @@ ".projen/tasks.json", "docgen.json", "LICENSE", - "tsconfig.cjs.json", "tsconfig.dev.json", "tsconfig.esm.json", "tsconfig.json", diff --git a/packages/ssm/.projen/tasks.json b/packages/ssm/.projen/tasks.json index ad983f13..45b10abd 100644 --- a/packages/ssm/.projen/tasks.json +++ b/packages/ssm/.projen/tasks.json @@ -26,7 +26,7 @@ "description": "Only compile", "steps": [ { - "exec": "tsc -b ./tsconfig.cjs.json ./tsconfig.esm.json" + "exec": "tsc -b ./tsconfig.esm.json" } ] }, diff --git a/packages/ssm/tsconfig.cjs.json b/packages/ssm/tsconfig.cjs.json deleted file mode 100644 index 83c39549..00000000 --- a/packages/ssm/tsconfig.cjs.json +++ /dev/null @@ -1,15 +0,0 @@ -// ~~ Generated by projen. To modify, edit .projenrc.js and run "npx projen". -{ - "extends": "./tsconfig.src.json", - "compilerOptions": { - "tsBuildInfoFile": ".tsbuildinfo/cjs.tsbuildinfo", - "outDir": "build/cjs", - "moduleResolution": "node", - "module": "CommonJS" - }, - "references": [ - { - "path": "../client-ssm/tsconfig.cjs.json" - } - ] -} diff --git a/projenrc/monorepo-project.ts b/projenrc/monorepo-project.ts index 7e28be70..e3868983 100644 --- a/projenrc/monorepo-project.ts +++ b/projenrc/monorepo-project.ts @@ -79,10 +79,6 @@ export class MonorepoProject extends PnpmMonorepoProject { "references", ...depPaths.map((path) => ({ path: `${path}/${subproject.tsconfigEsm.fileName}` })), ); - subproject.tsconfigCjs.file.addToArray( - "references", - ...depPaths.map((path) => ({ path: `${path}/${subproject.tsconfigCjs.fileName}` })), - ); } } }); diff --git a/projenrc/typescript-project.ts b/projenrc/typescript-project.ts index 06c146da..34564194 100644 --- a/projenrc/typescript-project.ts +++ b/projenrc/typescript-project.ts @@ -33,7 +33,6 @@ export class TypeScriptLibProject extends typescript.TypeScriptProject { public readonly tsconfigSrc: javascript.TypescriptConfig; public readonly tsconfigTst: javascript.TypescriptConfig; public readonly tsconfigEsm: javascript.TypescriptConfig; - public readonly tsconfigCjs: javascript.TypescriptConfig; public readonly tsconfigExamples?: javascript.TypescriptConfig; constructor({ @@ -112,16 +111,9 @@ export class TypeScriptLibProject extends typescript.TypeScriptProject { }); this.tsconfigEsm.addExtends(this.tsconfigSrc); - // Add tsconfig for building cjs - this.tsconfigCjs = this.makeBaseTsconfig("tsconfig.cjs.json", "cjs", { - moduleResolution: javascript.TypeScriptModuleResolution.NODE, - module: "CommonJS", - }); - this.tsconfigCjs.addExtends(this.tsconfigSrc); - // Build both cjs and esm this.compileTask.reset( - `tsc -b ./${this.tsconfigCjs.fileName} ./${this.tsconfigEsm.fileName}`, + `tsc -b ./${this.tsconfigEsm.fileName}`, ); this.addFields({ From 69d6b27ff303d15c6791567035d013d8d070b9da Mon Sep 17 00:00:00 2001 From: Victor Korzunin <5180700+floydspace@users.noreply.github.com> Date: Sun, 22 Feb 2026 22:40:03 +0100 Subject: [PATCH 6/7] docs(lambda): fix docgen --- packages/lambda/src/LambdaHandler.ts | 20 ++++++++------------ packages/lambda/src/LambdaRuntime.ts | 2 +- 2 files changed, 9 insertions(+), 13 deletions(-) diff --git a/packages/lambda/src/LambdaHandler.ts b/packages/lambda/src/LambdaHandler.ts index cfc3f691..47e627cd 100644 --- a/packages/lambda/src/LambdaHandler.ts +++ b/packages/lambda/src/LambdaHandler.ts @@ -108,7 +108,7 @@ export const context = (): Effect.Effect => * return Effect.logInfo("Hello, world!"); * }; * - * const LambdaLayer = Logger.replace(Logger.defaultLogger, Logger.logfmtLogger); + * const LambdaLayer = Logger.layer([Logger.consoleLogFmt]); * * export const handler = LambdaHandler.make({ * handler: effectHandler, @@ -158,7 +158,7 @@ export const make: { * return Stream.make("1", "2", "3"); * }; * - * const LambdaLayer = Logger.replace(Logger.defaultLogger, Logger.logfmtLogger); + * const LambdaLayer = Logger.layer([Logger.consoleLogFmt]); * * export const handler = LambdaHandler.stream({ * handler: streamHandler, @@ -301,21 +301,17 @@ export const httpApiHandler: EffectHandler< * @example * ```ts * import { LambdaHandler } from "@effect-aws/lambda" - * import { HttpApi, HttpApiBuilder, HttpServer } from "@effect/platform" + * import { HttpServer } from "effect/unstable/http"; + * import { HttpApi, HttpApiBuilder } from "effect/unstable/httpapi" * import { Layer } from "effect" * * class MyApi extends HttpApi.make("api") {} * - * const MyApiLive = HttpApiBuilder.api(MyApi) + * const MyApiLive = HttpApiBuilder.layer(MyApi).pipe( + * Layer.provide(HttpServer.layerServices), + * ); * - * export const handler = LambdaHandler.fromHttpApi( - * Layer.mergeAll( - * MyApiLive, - * // you could also use NodeHttpServer.layerContext, depending on your - * // server's platform - * HttpServer.layerContext - * ) - * ) + * export const handler = LambdaHandler.fromHttpApi(MyApiLive) * ``` * * @since 1.4.0 diff --git a/packages/lambda/src/LambdaRuntime.ts b/packages/lambda/src/LambdaRuntime.ts index f273b57f..3a1fdc7c 100644 --- a/packages/lambda/src/LambdaRuntime.ts +++ b/packages/lambda/src/LambdaRuntime.ts @@ -12,7 +12,7 @@ import { Console, Effect, ManagedRuntime } from "effect"; * import { LambdaRuntime, LambdaContext } from "@effect-aws/lambda"; * import { Effect, Logger } from "effect"; * - * const LambdaLayer = Logger.replace(Logger.defaultLogger, Logger.logfmtLogger); + * const LambdaLayer = Logger.layer([Logger.consoleLogFmt]); * * const lambdaRuntime = LambdaRuntime.fromLayer(LambdaLayer); * From c3ccc4a01b083d0abcd5b6d69b15af9611d6ba0d Mon Sep 17 00:00:00 2001 From: Victor Korzunin <5180700+floydspace@users.noreply.github.com> Date: Sun, 22 Feb 2026 22:53:36 +0100 Subject: [PATCH 7/7] chore: prerelease branch --- .github/workflows/pr.yml | 1 + .github/workflows/release.yml | 3 +++ .github/workflows/snapshot.yml | 2 +- .projenrc.ts | 1 + 4 files changed, 6 insertions(+), 1 deletion(-) diff --git a/.github/workflows/pr.yml b/.github/workflows/pr.yml index 1ab96a02..7048b39b 100644 --- a/.github/workflows/pr.yml +++ b/.github/workflows/pr.yml @@ -4,6 +4,7 @@ on: pull_request: branches: - "main" + - "beta" # Allows you to run this workflow manually from the Actions tab workflow_dispatch: diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index 28569cb3..5c84578e 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -5,6 +5,7 @@ on: push: branches: - main + - beta workflow_dispatch: {} concurrency: group: ${{ github.workflow }}-${{ github.ref_name }} @@ -35,6 +36,8 @@ jobs: run: pnpm i --frozen-lockfile - name: build run: pnpm exec projen build + - name: Prepare Changeset + run: npx projen changeset pre ${{ github.ref_name == 'main' && 'exit' || format('{0} {1}', 'enter', github.ref_name) }} || echo 'swallow' - name: Create Release Pull Request or Publish uses: changesets/action@v1 env: diff --git a/.github/workflows/snapshot.yml b/.github/workflows/snapshot.yml index 6659490a..64e35df8 100644 --- a/.github/workflows/snapshot.yml +++ b/.github/workflows/snapshot.yml @@ -1,7 +1,7 @@ name: Snapshot on: pull_request: - branches: [main] + branches: [main, beta] workflow_dispatch: permissions: {} diff --git a/.projenrc.ts b/.projenrc.ts index 3f998e8d..9267988f 100644 --- a/.projenrc.ts +++ b/.projenrc.ts @@ -29,6 +29,7 @@ new Changesets(project, { repo, onlyUpdatePeerDependentsWhenOutOfRange: true, linked: [`@${name}/client-*`], + prereleaseBranches: ["beta"], }); project.package.manifest.pnpm.patchedDependencies = { "@changesets/assemble-release-plan": "patches/@changesets__assemble-release-plan.patch",