diff --git a/.gitignore b/.gitignore index 1bf2c1e..38a2748 100644 --- a/.gitignore +++ b/.gitignore @@ -48,5 +48,6 @@ jspm_packages/ !/vitest.workspace.json .direnv/ docs/ +generated/ !/pnpm-workspace.yaml !/.projenrc.ts diff --git a/.projen/deps.json b/.projen/deps.json index a450faa..f1237c2 100644 --- a/.projen/deps.json +++ b/.projen/deps.json @@ -113,6 +113,26 @@ "version": "latest", "type": "runtime" }, + { + "name": "@aws-sdk/client-polly", + "version": "^3.535.0", + "type": "runtime" + }, + { + "name": "@aws-sdk/client-s3", + "version": "^3.535.0", + "type": "runtime" + }, + { + "name": "@aws-sdk/polly-request-presigner", + "version": "^3.535.0", + "type": "runtime" + }, + { + "name": "@aws-sdk/s3-request-presigner", + "version": "^3.535.0", + "type": "runtime" + }, { "name": "aws-cdk-lib", "type": "runtime" diff --git a/.projenrc.ts b/.projenrc.ts index bdbaebc..41e32e2 100644 --- a/.projenrc.ts +++ b/.projenrc.ts @@ -32,12 +32,17 @@ new Docgen(project); new Vitest(project); project.addScripts({ - "codegen-client": "tsx ./scripts/codegen-client.ts", + "codegen-clients": "tsx ./scripts/codegen-clients.ts", }); -project.addDeps("effect@^2.3.1", "enquirer@^2.4.1"); +project.addDeps( + "effect@^2.3.1", + "enquirer@^2.4.1", + "@aws-sdk/client-s3@^3.535.0", + "@aws-sdk/s3-request-presigner@^3.535.0", + "@aws-sdk/client-polly@^3.535.0", + "@aws-sdk/polly-request-presigner@^3.535.0", +); -const commonDeps = ["@aws-sdk/types@^3"]; -const commonDevDeps = ["aws-sdk-client-mock", "aws-sdk-client-mock-jest"]; const commonPeerDeps = ["effect@>=2.3.1 <2.5.0"]; new TypeScriptLibProject({ @@ -52,118 +57,27 @@ new TypeScriptLibProject({ new TypeScriptLibProject({ parent: project, - name: "client-api-gateway-management-api", - deps: [...commonDeps, "@aws-sdk/client-apigatewaymanagementapi@^3"], - devDeps: commonDevDeps, - peerDeps: commonPeerDeps, -}); - -const dynamodbClient = new TypeScriptLibProject({ - parent: project, - name: "client-dynamodb", - deps: [...commonDeps, "@aws-sdk/client-dynamodb@^3"], - devDeps: commonDevDeps, - peerDeps: commonPeerDeps, -}); - -const dynamodbLib = new TypeScriptLibProject({ - parent: project, - name: "lib-dynamodb", - deps: [ - ...commonDeps, - "@aws-sdk/client-dynamodb@^3", - "@aws-sdk/lib-dynamodb@^3", - ], - devDeps: commonDevDeps, - peerDeps: [...commonPeerDeps, dynamodbClient.package.packageName], -}); - -new TypeScriptLibProject({ - parent: project, - name: "client-eventbridge", - deps: [...commonDeps, "@aws-sdk/client-eventbridge@^3"], - devDeps: commonDevDeps, - peerDeps: commonPeerDeps, -}); - -new TypeScriptLibProject({ - parent: project, - name: "client-lambda", - deps: [...commonDeps, "@aws-sdk/client-lambda@^3"], - devDeps: commonDevDeps, - peerDeps: commonPeerDeps, -}); - -new TypeScriptLibProject({ - parent: project, - name: "client-s3", - deps: [ - ...commonDeps, - "@aws-sdk/client-s3@^3", - "@aws-sdk/s3-request-presigner@^3", - ], - devDeps: commonDevDeps, - peerDeps: commonPeerDeps, -}); - -new TypeScriptLibProject({ - parent: project, - name: "client-sns", - deps: [...commonDeps, "@aws-sdk/client-sns@^3"], - devDeps: commonDevDeps, - peerDeps: commonPeerDeps, -}); - -new TypeScriptLibProject({ - parent: project, - name: "client-sqs", - deps: [...commonDeps, "@aws-sdk/client-sqs@^3"], - devDeps: commonDevDeps, - peerDeps: commonPeerDeps, -}); - -new TypeScriptLibProject({ - parent: project, - name: "client-sfn", - deps: [...commonDeps, "@aws-sdk/client-sfn@^3"], - devDeps: commonDevDeps, - peerDeps: commonPeerDeps, -}); - -new TypeScriptLibProject({ - parent: project, - name: "client-iam", - deps: [...commonDeps, "@aws-sdk/client-iam@^3"], - devDeps: commonDevDeps, - peerDeps: commonPeerDeps, -}); - -new TypeScriptLibProject({ - parent: project, - name: "client-elasticache", - deps: [...commonDeps, "@aws-sdk/client-elasticache@^3"], - devDeps: commonDevDeps, + name: "lambda", + devDeps: ["@types/aws-lambda"], peerDeps: commonPeerDeps, }); new TypeScriptLibProject({ parent: project, - name: "client-ec2", - deps: [...commonDeps, "@aws-sdk/client-ec2@^3"], - devDeps: commonDevDeps, - peerDeps: commonPeerDeps, + name: "s3-request-presigner", + devDeps: ["@types/aws-lambda"], + peerDeps: [...commonPeerDeps, "@aws-sdk/client-s3", "@aws-sdk/s3-request-presigner"], }); new TypeScriptLibProject({ parent: project, - name: "lambda", + name: "polly-request-presigner", devDeps: ["@types/aws-lambda"], - peerDeps: commonPeerDeps, + peerDeps: [...commonPeerDeps, "@aws-sdk/client-polly", "@aws-sdk/polly-request-presigner"], }); -project.addImplicitDependency(dynamodbLib, dynamodbClient); - project.addGitIgnore(".direnv/"); // flake environment creates .direnv folder project.addGitIgnore("docs/"); // docs are generated +project.addGitIgnore("generated/"); // clients are generated project.synth(); diff --git a/README.md b/README.md index 48d8798..17b4aa4 100644 --- a/README.md +++ b/README.md @@ -6,17 +6,11 @@ Effect Docs: https://www.effect.website
# Roadmap -- [x] PowerTools Logger -- [x] S3 Client -- [x] IAM Client -- [x] DynamoDB Client -- [x] DynamoDB Document Client (lib-dynamodb) -- [x] SQS Client -- [x] SNS Client -- [x] EventBridge Client -- [x] Lambda Client -- [x] Step Functions Client -- [ ] Other AWS Clients (By Request) +- [x] All AWS clients are generated and wrapped with Effect, with correctly typed Exceptions and Errors +- [x] Effect runtime for writing lambda handlers +- [x] PowerTools based effect logger +- [x] Effect Presigned S3 Client, for generating presigning s3 commands +- [x] Effect Presigned Polly Client, for generating presigning polly commands # Contributing Guidelines diff --git a/package.json b/package.json index c16537e..b451844 100644 --- a/package.json +++ b/package.json @@ -23,7 +23,7 @@ "install:ci": "pnpm exec projen install:ci", "synth-workspace": "pnpm exec projen", "changeset": "changeset", - "codegen-client": "tsx ./scripts/codegen-client.ts" + "codegen-clients": "tsx ./scripts/codegen-clients.ts" }, "author": { "name": "Victor Korzunin", @@ -57,6 +57,10 @@ }, "dependencies": { "@aws-cdk/aws-cognito-identitypool-alpha": "latest", + "@aws-sdk/client-polly": "^3.535.0", + "@aws-sdk/client-s3": "^3.535.0", + "@aws-sdk/polly-request-presigner": "^3.535.0", + "@aws-sdk/s3-request-presigner": "^3.535.0", "aws-cdk-lib": "^2.126.0", "cdk-nag": "^2.28.27", "effect": "^2.3.1", @@ -81,20 +85,10 @@ "private": true, "workspaces": { "packages": [ - "packages/client-api-gateway-management-api", - "packages/client-dynamodb", - "packages/client-ec2", - "packages/client-elasticache", - "packages/client-eventbridge", - "packages/client-iam", - "packages/client-lambda", - "packages/client-s3", - "packages/client-sfn", - "packages/client-sns", - "packages/client-sqs", "packages/lambda", - "packages/lib-dynamodb", - "packages/powertools-logger" + "packages/polly-request-presigner", + "packages/powertools-logger", + "packages/s3-request-presigner" ] }, "//": "~~ Generated by projen. To modify, edit .projenrc.ts and run \"pnpm exec projen\"." diff --git a/packages/client-api-gateway-management-api/.projen/deps.json b/packages/client-api-gateway-management-api/.projen/deps.json deleted file mode 100644 index 18613ad..0000000 --- a/packages/client-api-gateway-management-api/.projen/deps.json +++ /dev/null @@ -1,82 +0,0 @@ -{ - "dependencies": [ - { - "name": "@types/node", - "version": "^18", - "type": "build" - }, - { - "name": "@typescript-eslint/eslint-plugin", - "version": "^6", - "type": "build" - }, - { - "name": "@typescript-eslint/parser", - "version": "^6", - "type": "build" - }, - { - "name": "aws-sdk-client-mock", - "type": "build" - }, - { - "name": "aws-sdk-client-mock-jest", - "type": "build" - }, - { - "name": "constructs", - "version": "^10.0.0", - "type": "build" - }, - { - "name": "eslint-config-prettier", - "type": "build" - }, - { - "name": "eslint-import-resolver-typescript", - "type": "build" - }, - { - "name": "eslint-plugin-import", - "type": "build" - }, - { - "name": "eslint-plugin-prettier", - "type": "build" - }, - { - "name": "eslint", - "version": "^8", - "type": "build" - }, - { - "name": "prettier", - "type": "build" - }, - { - "name": "projen", - "version": "^0.79.6", - "type": "build" - }, - { - "name": "typescript", - "type": "build" - }, - { - "name": "effect", - "version": ">=2.3.1 <2.5.0", - "type": "peer" - }, - { - "name": "@aws-sdk/client-apigatewaymanagementapi", - "version": "^3", - "type": "runtime" - }, - { - "name": "@aws-sdk/types", - "version": "^3", - "type": "runtime" - } - ], - "//": "~~ Generated by projen. To modify, edit .projenrc.js and run \"npx projen\"." -} diff --git a/packages/client-api-gateway-management-api/CHANGELOG.md b/packages/client-api-gateway-management-api/CHANGELOG.md deleted file mode 100644 index ba49540..0000000 --- a/packages/client-api-gateway-management-api/CHANGELOG.md +++ /dev/null @@ -1,79 +0,0 @@ -# @effect-aws/client-api-gateway-management-api - -## 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 - -- [`3e5d0b3`](https://github.com/floydspace/effect-aws/commit/3e5d0b3b3882e0aa6d07bc06432990551316ac30) Thanks [@floydspace](https://github.com/floydspace)! - Upgrade to effect v2 and release stable version - -## 0.5.0 - -### Minor Changes - -- [`744df3c`](https://github.com/floydspace/effect-aws/commit/744df3ca6406b3a35e3066d5fe11ca7082c4c454) Thanks [@floydspace](https://github.com/floydspace)! - upgrade effect dependency - -## 0.4.0 - -### Minor Changes - -- [`0a969d8`](https://github.com/floydspace/effect-aws/commit/0a969d8a74c3bf1b87ff6a1c8bf689af849797e1) Thanks [@floydspace](https://github.com/floydspace)! - upgrade effect peer version - -## 0.3.2 - -### Patch Changes - -- [`280d8bd`](https://github.com/floydspace/effect-aws/commit/280d8bd6686d6e7a2b73322a047e8eb22263b1e1) Thanks [@floydspace](https://github.com/floydspace)! - upgrade dependencies - -## 0.3.1 - -### Patch Changes - -- [`6b99904`](https://github.com/floydspace/effect-aws/commit/6b9990497bdb20f240d8261b6382db421e9a3ec2) Thanks [@floydspace](https://github.com/floydspace)! - as @mikearnaldi said: "we should really never do tacit passing" - -## 0.3.0 - -### Minor Changes - -- [#14](https://github.com/floydspace/effect-aws/pull/14) [`cddfb74`](https://github.com/floydspace/effect-aws/commit/cddfb74a00b10a13ccfe3749e90961119c4f0906) Thanks [@floydspace](https://github.com/floydspace)! - upgrade effect version to the next one - -## 0.2.1 - -### Patch Changes - -- [`643a9ba`](https://github.com/floydspace/effect-aws/commit/643a9ba924e5a9513188bbcd942ebc4c9dc3a7bb) Thanks [@floydspace](https://github.com/floydspace)! - return tagged errors in the failure channel - -## 0.2.0 - -### Minor Changes - -- [`bd7db85`](https://github.com/floydspace/effect-aws/commit/bd7db853adfd431f83863d51750dd662b9879667) Thanks [@floydspace](https://github.com/floydspace)! - return tagged errors in the failure channel - -## 0.1.0 - -### Minor Changes - -- [`073bc7e`](https://github.com/floydspace/effect-aws/commit/073bc7e7e39ffc2927ec4e4ba7eb6579337ed152) Thanks [@floydspace](https://github.com/floydspace)! - implement api-gateway-management-api effectful client diff --git a/packages/client-api-gateway-management-api/package.json b/packages/client-api-gateway-management-api/package.json deleted file mode 100644 index d9565b4..0000000 --- a/packages/client-api-gateway-management-api/package.json +++ /dev/null @@ -1,56 +0,0 @@ -{ - "name": "@effect-aws/client-api-gateway-management-api", - "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": { - "@types/node": "^18", - "@typescript-eslint/eslint-plugin": "^6", - "@typescript-eslint/parser": "^6", - "aws-sdk-client-mock": "^3.0.0", - "aws-sdk-client-mock-jest": "^3.0.0", - "constructs": "^10.0.0", - "effect": "2.3.1", - "eslint": "^8", - "eslint-config-prettier": "^9.0.0", - "eslint-import-resolver-typescript": "^3.6.1", - "eslint-plugin-import": "^2.28.1", - "eslint-plugin-prettier": "^5.0.0", - "prettier": "^3.0.3", - "projen": "^0.79.6", - "typescript": "^5.2.2" - }, - "peerDependencies": { - "effect": ">=2.3.1 <2.5.0" - }, - "dependencies": { - "@aws-sdk/client-apigatewaymanagementapi": "^3", - "@aws-sdk/types": "^3" - }, - "main": "lib/index.js", - "license": "MIT", - "homepage": "https://floydspace.github.io/effect-aws", - "publishConfig": { - "access": "public" - }, - "version": "1.1.1", - "types": "lib/index.d.ts", - "module": "lib/esm/index.js", - "sideEffects": [], - "//": "~~ Generated by projen. To modify, edit .projenrc.js and run \"npx projen\"." -} diff --git a/packages/client-api-gateway-management-api/project.json b/packages/client-api-gateway-management-api/project.json deleted file mode 100644 index 138deba..0000000 --- a/packages/client-api-gateway-management-api/project.json +++ /dev/null @@ -1,77 +0,0 @@ -{ - "name": "@effect-aws/client-api-gateway-management-api", - "root": "packages/client-api-gateway-management-api", - "targets": { - "default": { - "executor": "nx:run-commands", - "options": { - "command": "pnpm exec projen default", - "cwd": "packages/client-api-gateway-management-api" - } - }, - "pre-compile": { - "executor": "nx:run-commands", - "options": { - "command": "pnpm exec projen pre-compile", - "cwd": "packages/client-api-gateway-management-api" - } - }, - "compile": { - "executor": "nx:run-commands", - "options": { - "command": "pnpm exec projen compile", - "cwd": "packages/client-api-gateway-management-api" - } - }, - "post-compile": { - "executor": "nx:run-commands", - "options": { - "command": "pnpm exec projen post-compile", - "cwd": "packages/client-api-gateway-management-api" - } - }, - "test": { - "executor": "nx:run-commands", - "options": { - "command": "pnpm exec projen test", - "cwd": "packages/client-api-gateway-management-api" - } - }, - "package": { - "executor": "nx:run-commands", - "options": { - "command": "pnpm exec projen package", - "cwd": "packages/client-api-gateway-management-api" - } - }, - "build": { - "executor": "nx:run-commands", - "options": { - "command": "pnpm exec projen build", - "cwd": "packages/client-api-gateway-management-api" - } - }, - "watch": { - "executor": "nx:run-commands", - "options": { - "command": "pnpm exec projen watch", - "cwd": "packages/client-api-gateway-management-api" - } - }, - "eslint": { - "executor": "nx:run-commands", - "options": { - "command": "pnpm exec projen eslint", - "cwd": "packages/client-api-gateway-management-api" - } - }, - "test:watch": { - "executor": "nx:run-commands", - "options": { - "command": "pnpm exec projen test:watch", - "cwd": "packages/client-api-gateway-management-api" - } - } - }, - "//": "~~ Generated by projen. To modify, edit .projenrc.js and run \"npx projen\"." -} diff --git a/packages/client-api-gateway-management-api/src/ApiGatewayManagementApiClientInstance.ts b/packages/client-api-gateway-management-api/src/ApiGatewayManagementApiClientInstance.ts deleted file mode 100644 index a63fab2..0000000 --- a/packages/client-api-gateway-management-api/src/ApiGatewayManagementApiClientInstance.ts +++ /dev/null @@ -1,46 +0,0 @@ -/** - * @since 1.0.0 - */ -import { ApiGatewayManagementApiClient } from "@aws-sdk/client-apigatewaymanagementapi"; -import * as Context from "effect/Context"; -import * as Effect from "effect/Effect"; -import * as Layer from "effect/Layer"; -import { - ApiGatewayManagementApiClientInstanceConfig, - DefaultApiGatewayManagementApiClientConfigLayer, -} from "./ApiGatewayManagementApiClientInstanceConfig"; - -/** - * @since 1.0.0 - * @category tags - */ -export class ApiGatewayManagementApiClientInstance extends Context.Tag( - "@effect-aws/client-api-gateway-management-api/ApiGatewayManagementApiClientInstance", -)() {} - -/** - * @since 1.0.0 - * @category constructors - */ -export const makeApiGatewayManagementApiClientInstance = Effect.map( - ApiGatewayManagementApiClientInstanceConfig, - (config) => new ApiGatewayManagementApiClient(config), -); - -/** - * @since 1.0.0 - * @category layers - */ -export const ApiGatewayManagementApiClientInstanceLayer = Layer.effect( - ApiGatewayManagementApiClientInstance, - makeApiGatewayManagementApiClientInstance, -); - -/** - * @since 1.0.0 - * @category layers - */ -export const DefaultApiGatewayManagementApiClientInstanceLayer = - ApiGatewayManagementApiClientInstanceLayer.pipe( - Layer.provide(DefaultApiGatewayManagementApiClientConfigLayer), - ); diff --git a/packages/client-api-gateway-management-api/src/ApiGatewayManagementApiClientInstanceConfig.ts b/packages/client-api-gateway-management-api/src/ApiGatewayManagementApiClientInstanceConfig.ts deleted file mode 100644 index 7478000..0000000 --- a/packages/client-api-gateway-management-api/src/ApiGatewayManagementApiClientInstanceConfig.ts +++ /dev/null @@ -1,45 +0,0 @@ -/** - * @since 1.0.0 - */ -import type { ApiGatewayManagementApiClientConfig } from "@aws-sdk/client-apigatewaymanagementapi"; -import { Context, Effect, Layer, Runtime } from "effect"; - -/** - * @since 1.0.0 - * @category tags - */ -export class ApiGatewayManagementApiClientInstanceConfig extends Context.Tag( - "@effect-aws/client-api-gateway-management-api/ApiGatewayManagementApiClientInstanceConfig", -)< - ApiGatewayManagementApiClientInstanceConfig, - ApiGatewayManagementApiClientConfig ->() {} - -/** - * @since 1.0.0 - * @category constructors - */ -export const makeDefaultApiGatewayManagementApiClientInstanceConfig: Effect.Effect = - Effect.gen(function* (_) { - const runtime = yield* _(Effect.runtime()); - const runSync = Runtime.runSync(runtime); - - return { - logger: { - info: (m) => Effect.logInfo(m).pipe(runSync), - warn: (m) => Effect.logWarning(m).pipe(runSync), - error: (m) => Effect.logError(m).pipe(runSync), - debug: (m) => Effect.logDebug(m).pipe(runSync), - trace: (m) => Effect.logTrace(m).pipe(runSync), - }, - }; - }); - -/** - * @since 1.0.0 - * @category layers - */ -export const DefaultApiGatewayManagementApiClientConfigLayer = Layer.effect( - ApiGatewayManagementApiClientInstanceConfig, - makeDefaultApiGatewayManagementApiClientInstanceConfig, -); diff --git a/packages/client-api-gateway-management-api/src/ApiGatewayManagementApiService.ts b/packages/client-api-gateway-management-api/src/ApiGatewayManagementApiService.ts deleted file mode 100644 index ac7fbab..0000000 --- a/packages/client-api-gateway-management-api/src/ApiGatewayManagementApiService.ts +++ /dev/null @@ -1,188 +0,0 @@ -/** - * @since 1.0.0 - */ -import { - ApiGatewayManagementApiServiceException, - DeleteConnectionCommand, - DeleteConnectionCommandInput, - DeleteConnectionCommandOutput, - GetConnectionCommand, - GetConnectionCommandInput, - GetConnectionCommandOutput, - PostToConnectionCommand, - PostToConnectionCommandInput, - PostToConnectionCommandOutput, -} from "@aws-sdk/client-apigatewaymanagementapi"; -import { HttpHandlerOptions as __HttpHandlerOptions } from "@aws-sdk/types"; -import { Context, Data, Effect, Layer, ReadonlyRecord } from "effect"; -import { - ApiGatewayManagementApiClientInstance, - ApiGatewayManagementApiClientInstanceLayer, - DefaultApiGatewayManagementApiClientInstanceLayer, -} from "./ApiGatewayManagementApiClientInstance"; -import { DefaultApiGatewayManagementApiClientConfigLayer } from "./ApiGatewayManagementApiClientInstanceConfig"; -import { - ForbiddenError, - GoneError, - LimitExceededError, - PayloadTooLargeError, - SdkError, - TaggedException, -} from "./Errors"; - -const commands = { - DeleteConnectionCommand, - GetConnectionCommand, - PostToConnectionCommand, -}; - -/** - * @since 1.0.0 - * @category models - */ -export interface ApiGatewayManagementApiService { - readonly _: unique symbol; - - /** - * @see {@link DeleteConnectionCommand} - */ - deleteConnection( - args: DeleteConnectionCommandInput, - options?: __HttpHandlerOptions, - ): Effect.Effect< - DeleteConnectionCommandOutput, - SdkError | GoneError | ForbiddenError | LimitExceededError - >; - - /** - * @see {@link GetConnectionCommand} - */ - getConnection( - args: GetConnectionCommandInput, - options?: __HttpHandlerOptions, - ): Effect.Effect< - GetConnectionCommandOutput, - SdkError | GoneError | ForbiddenError | LimitExceededError - >; - - /** - * @see {@link PostToConnectionCommand} - */ - postToConnection( - args: PostToConnectionCommandInput, - options?: __HttpHandlerOptions, - ): Effect.Effect< - PostToConnectionCommandOutput, - | SdkError - | GoneError - | ForbiddenError - | LimitExceededError - | PayloadTooLargeError - >; -} - -/** - * @since 1.0.0 - * @category tags - */ -export const ApiGatewayManagementApiService = - Context.GenericTag( - "@effect-aws/client-api-gateway-management-api/ApiGatewayManagementApiService", - ); - -/** - * @since 1.0.0 - * @category constructors - */ -export const makeApiGatewayManagementApiService = Effect.gen(function* (_) { - const client = yield* _(ApiGatewayManagementApiClientInstance); - - return ReadonlyRecord.toEntries(commands).reduce((acc, [command]) => { - const CommandCtor = commands[command] as any; - const methodImpl = (args: any, options: any) => - Effect.tryPromise({ - try: () => client.send(new CommandCtor(args), options ?? {}), - catch: (e) => { - if (e instanceof ApiGatewayManagementApiServiceException) { - const ServiceException = Data.tagged< - TaggedException - >(e.name); - - return ServiceException({ - ...e, - message: e.message, - stack: e.stack, - }); - } - if (e instanceof Error) { - return SdkError({ - ...e, - name: "SdkError", - message: e.message, - stack: e.stack, - }); - } - throw e; - }, - }); - const methodName = (command[0].toLowerCase() + command.slice(1)).replace( - /Command$/, - "", - ); - return { ...acc, [methodName]: methodImpl }; - }, {}) as ApiGatewayManagementApiService; -}); - -/** - * @since 1.0.0 - * @category layers - */ -export const BaseApiGatewayManagementApiServiceLayer = Layer.effect( - ApiGatewayManagementApiService, - makeApiGatewayManagementApiService, -); - -/** - * @since 1.0.0 - * @category layers - */ -export const ApiGatewayManagementApiServiceLayer = - BaseApiGatewayManagementApiServiceLayer.pipe( - Layer.provide(ApiGatewayManagementApiClientInstanceLayer), - ); - -/** - * @since 1.0.0 - * @category layers - */ -export const DefaultApiGatewayManagementApiServiceLayer = - ApiGatewayManagementApiServiceLayer.pipe( - Layer.provide(DefaultApiGatewayManagementApiClientConfigLayer), - ); - -// -------------------- Danger Zone -------------------- - -/** - * @since 0.1.0 - * @deprecated - */ -export const BaseApiGatewayManagementApiServiceEffect = - makeApiGatewayManagementApiService; - -/** - * @since 0.1.0 - * @deprecated - */ -export const ApiGatewayManagementApiServiceEffect = - BaseApiGatewayManagementApiServiceEffect.pipe( - Effect.provide(ApiGatewayManagementApiClientInstanceLayer), - ); - -/** - * @since 0.1.0 - * @deprecated - */ -export const DefaultApiGatewayManagementApiServiceEffect = - BaseApiGatewayManagementApiServiceEffect.pipe( - Effect.provide(DefaultApiGatewayManagementApiClientInstanceLayer), - ); diff --git a/packages/client-api-gateway-management-api/src/Errors.ts b/packages/client-api-gateway-management-api/src/Errors.ts deleted file mode 100644 index 52c0ca9..0000000 --- a/packages/client-api-gateway-management-api/src/Errors.ts +++ /dev/null @@ -1,18 +0,0 @@ -import type { - ForbiddenException, - GoneException, - LimitExceededException, - PayloadTooLargeException, -} from "@aws-sdk/client-apigatewaymanagementapi"; -import { Data } from "effect"; - -export type TaggedException = T & { - readonly _tag: T["name"]; -}; - -export type ForbiddenError = TaggedException; -export type GoneError = TaggedException; -export type LimitExceededError = TaggedException; -export type PayloadTooLargeError = TaggedException; -export type SdkError = TaggedException; -export const SdkError = Data.tagged("SdkError"); diff --git a/packages/client-api-gateway-management-api/src/index.ts b/packages/client-api-gateway-management-api/src/index.ts deleted file mode 100644 index d6d69d3..0000000 --- a/packages/client-api-gateway-management-api/src/index.ts +++ /dev/null @@ -1,4 +0,0 @@ -export * from "./ApiGatewayManagementApiClientInstance"; -export * from "./ApiGatewayManagementApiClientInstanceConfig"; -export * from "./ApiGatewayManagementApiService"; -export * from "./Errors"; diff --git a/packages/client-api-gateway-management-api/test/ApiGatewayManagementApi.test.ts b/packages/client-api-gateway-management-api/test/ApiGatewayManagementApi.test.ts deleted file mode 100644 index b65eb07..0000000 --- a/packages/client-api-gateway-management-api/test/ApiGatewayManagementApi.test.ts +++ /dev/null @@ -1,182 +0,0 @@ -import { - ApiGatewayManagementApiClient, - PostToConnectionCommand, - PostToConnectionCommandInput, -} from "@aws-sdk/client-apigatewaymanagementapi"; -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 * as Layer from "effect/Layer"; -import { - ApiGatewayManagementApiClientInstance, - ApiGatewayManagementApiClientInstanceConfig, - ApiGatewayManagementApiService, - ApiGatewayManagementApiServiceLayer, - BaseApiGatewayManagementApiServiceLayer, - DefaultApiGatewayManagementApiClientConfigLayer, - DefaultApiGatewayManagementApiServiceLayer, - SdkError, -} from "../src"; - -import "aws-sdk-client-mock-jest"; - -const apiMock = mockClient(ApiGatewayManagementApiClient); -const { postToConnection } = Effect.serviceFunctions( - ApiGatewayManagementApiService, -); - -describe("ApiGatewayManagementApiClientImpl", () => { - it("default", async () => { - apiMock.reset().on(PostToConnectionCommand).resolves({}); - - const args: PostToConnectionCommandInput = { - ConnectionId: "test", - Data: "test", - }; - - const program = postToConnection(args); - - const result = await pipe( - program, - Effect.provide(DefaultApiGatewayManagementApiServiceLayer), - Effect.runPromiseExit, - ); - - expect(result).toEqual(Exit.succeed({})); - expect(apiMock).toHaveReceivedCommandTimes(PostToConnectionCommand, 1); - expect(apiMock).toHaveReceivedCommandWith(PostToConnectionCommand, args); - }); - - it("configurable", async () => { - apiMock.reset().on(PostToConnectionCommand).resolves({}); - - const args: PostToConnectionCommandInput = { - ConnectionId: "test", - Data: "test", - }; - - const program = postToConnection(args); - - const ApiGatewayManagementApiClientConfigLayer = Layer.succeed( - ApiGatewayManagementApiClientInstanceConfig, - { region: "eu-central-1" }, - ); - const CustomApiGatewayManagementApiServiceLayer = - ApiGatewayManagementApiServiceLayer.pipe( - Layer.provide(ApiGatewayManagementApiClientConfigLayer), - ); - - const result = await pipe( - program, - Effect.provide(CustomApiGatewayManagementApiServiceLayer), - Effect.runPromiseExit, - ); - - expect(result).toEqual(Exit.succeed({})); - expect(apiMock).toHaveReceivedCommandTimes(PostToConnectionCommand, 1); - expect(apiMock).toHaveReceivedCommandWith(PostToConnectionCommand, args); - }); - - it("base", async () => { - apiMock.reset().on(PostToConnectionCommand).resolves({}); - - const args: PostToConnectionCommandInput = { - ConnectionId: "test", - Data: "test", - }; - - const program = postToConnection(args); - - const ApiGatewayManagementApiClientInstanceLayer = Layer.succeed( - ApiGatewayManagementApiClientInstance, - new ApiGatewayManagementApiClient({ region: "eu-central-1" }), - ); - const CustomApiGatewayManagementApiServiceLayer = - BaseApiGatewayManagementApiServiceLayer.pipe( - Layer.provide(ApiGatewayManagementApiClientInstanceLayer), - ); - - const result = await pipe( - program, - Effect.provide(CustomApiGatewayManagementApiServiceLayer), - Effect.runPromiseExit, - ); - - expect(result).toEqual(Exit.succeed({})); - expect(apiMock).toHaveReceivedCommandTimes(PostToConnectionCommand, 1); - expect(apiMock).toHaveReceivedCommandWith(PostToConnectionCommand, args); - }); - - it("extended", async () => { - apiMock.reset().on(PostToConnectionCommand).resolves({}); - - const args: PostToConnectionCommandInput = { - ConnectionId: "test", - Data: "test", - }; - - const program = postToConnection(args); - - const ApiGatewayManagementApiClientInstanceLayer = Layer.effect( - ApiGatewayManagementApiClientInstance, - Effect.map( - ApiGatewayManagementApiClientInstanceConfig, - (config) => - new ApiGatewayManagementApiClient({ - ...config, - region: "eu-central-1", - }), - ), - ); - const CustomApiGatewayManagementApiServiceLayer = - BaseApiGatewayManagementApiServiceLayer.pipe( - Layer.provide(ApiGatewayManagementApiClientInstanceLayer), - Layer.provide(DefaultApiGatewayManagementApiClientConfigLayer), - ); - - const result = await pipe( - program, - Effect.provide(CustomApiGatewayManagementApiServiceLayer), - Effect.runPromiseExit, - ); - - expect(result).toEqual(Exit.succeed({})); - expect(apiMock).toHaveReceivedCommandTimes(PostToConnectionCommand, 1); - expect(apiMock).toHaveReceivedCommandWith(PostToConnectionCommand, args); - }); - - it("fail", async () => { - apiMock.reset().on(PostToConnectionCommand).rejects(new Error("test")); - - const args: PostToConnectionCommandInput = { - ConnectionId: "test", - Data: "test", - }; - - const program = Effect.flatMap(ApiGatewayManagementApiService, (api) => - api.postToConnection(args, { - requestTimeout: 1000, - }), - ); - - const result = await pipe( - program, - Effect.provide(DefaultApiGatewayManagementApiServiceLayer), - Effect.runPromiseExit, - ); - - expect(result).toEqual( - Exit.fail( - SdkError({ - ...new Error("test"), - name: "SdkError", - message: "test", - stack: expect.any(String), - }), - ), - ); - expect(apiMock).toHaveReceivedCommandTimes(PostToConnectionCommand, 1); - expect(apiMock).toHaveReceivedCommandWith(PostToConnectionCommand, args); - }); -}); diff --git a/packages/client-dynamodb/.projen/deps.json b/packages/client-dynamodb/.projen/deps.json deleted file mode 100644 index 205b766..0000000 --- a/packages/client-dynamodb/.projen/deps.json +++ /dev/null @@ -1,82 +0,0 @@ -{ - "dependencies": [ - { - "name": "@types/node", - "version": "^18", - "type": "build" - }, - { - "name": "@typescript-eslint/eslint-plugin", - "version": "^6", - "type": "build" - }, - { - "name": "@typescript-eslint/parser", - "version": "^6", - "type": "build" - }, - { - "name": "aws-sdk-client-mock", - "type": "build" - }, - { - "name": "aws-sdk-client-mock-jest", - "type": "build" - }, - { - "name": "constructs", - "version": "^10.0.0", - "type": "build" - }, - { - "name": "eslint-config-prettier", - "type": "build" - }, - { - "name": "eslint-import-resolver-typescript", - "type": "build" - }, - { - "name": "eslint-plugin-import", - "type": "build" - }, - { - "name": "eslint-plugin-prettier", - "type": "build" - }, - { - "name": "eslint", - "version": "^8", - "type": "build" - }, - { - "name": "prettier", - "type": "build" - }, - { - "name": "projen", - "version": "^0.79.6", - "type": "build" - }, - { - "name": "typescript", - "type": "build" - }, - { - "name": "effect", - "version": ">=2.3.1 <2.5.0", - "type": "peer" - }, - { - "name": "@aws-sdk/client-dynamodb", - "version": "^3", - "type": "runtime" - }, - { - "name": "@aws-sdk/types", - "version": "^3", - "type": "runtime" - } - ], - "//": "~~ Generated by projen. To modify, edit .projenrc.js and run \"npx projen\"." -} diff --git a/packages/client-dynamodb/CHANGELOG.md b/packages/client-dynamodb/CHANGELOG.md deleted file mode 100644 index ef0a7f9..0000000 --- a/packages/client-dynamodb/CHANGELOG.md +++ /dev/null @@ -1,79 +0,0 @@ -# @effect-aws/client-dynamodb - -## 1.1.2 - -### Patch Changes - -- [#43](https://github.com/floydspace/effect-aws/pull/43) [`6e6c0a0`](https://github.com/floydspace/effect-aws/commit/6e6c0a00078c38b4575c1bac1015949b478428c0) Thanks [@godu](https://github.com/godu)! - new dynamodb client method, typed errors in sqs service - -## 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 - -- [`3e5d0b3`](https://github.com/floydspace/effect-aws/commit/3e5d0b3b3882e0aa6d07bc06432990551316ac30) Thanks [@floydspace](https://github.com/floydspace)! - Upgrade to effect v2 and release stable version - -## 0.5.0 - -### Minor Changes - -- [`744df3c`](https://github.com/floydspace/effect-aws/commit/744df3ca6406b3a35e3066d5fe11ca7082c4c454) Thanks [@floydspace](https://github.com/floydspace)! - upgrade effect dependency - -## 0.4.0 - -### Minor Changes - -- [`0a969d8`](https://github.com/floydspace/effect-aws/commit/0a969d8a74c3bf1b87ff6a1c8bf689af849797e1) Thanks [@floydspace](https://github.com/floydspace)! - upgrade effect peer version - -## 0.3.2 - -### Patch Changes - -- [`280d8bd`](https://github.com/floydspace/effect-aws/commit/280d8bd6686d6e7a2b73322a047e8eb22263b1e1) Thanks [@floydspace](https://github.com/floydspace)! - upgrade dependencies - -## 0.3.1 - -### Patch Changes - -- [`6b99904`](https://github.com/floydspace/effect-aws/commit/6b9990497bdb20f240d8261b6382db421e9a3ec2) Thanks [@floydspace](https://github.com/floydspace)! - as @mikearnaldi said: "we should really never do tacit passing" - -## 0.3.0 - -### Minor Changes - -- [#14](https://github.com/floydspace/effect-aws/pull/14) [`cddfb74`](https://github.com/floydspace/effect-aws/commit/cddfb74a00b10a13ccfe3749e90961119c4f0906) Thanks [@floydspace](https://github.com/floydspace)! - upgrade effect version to the next one - -## 0.2.0 - -### Minor Changes - -- [`643a9ba`](https://github.com/floydspace/effect-aws/commit/643a9ba924e5a9513188bbcd942ebc4c9dc3a7bb) Thanks [@floydspace](https://github.com/floydspace)! - return tagged errors in the failure channel - -## 0.1.0 - -### Minor Changes - -- [`243882e`](https://github.com/floydspace/effect-aws/commit/243882e1bf71fa2c019f52f9d974f8cf1c433912) Thanks [@floydspace](https://github.com/floydspace)! - implement effectful dynamodb, eventbridge and lambda clients diff --git a/packages/client-dynamodb/package.json b/packages/client-dynamodb/package.json deleted file mode 100644 index 612edf8..0000000 --- a/packages/client-dynamodb/package.json +++ /dev/null @@ -1,56 +0,0 @@ -{ - "name": "@effect-aws/client-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": { - "@types/node": "^18", - "@typescript-eslint/eslint-plugin": "^6", - "@typescript-eslint/parser": "^6", - "aws-sdk-client-mock": "^3.0.0", - "aws-sdk-client-mock-jest": "^3.0.0", - "constructs": "^10.0.0", - "effect": "2.3.1", - "eslint": "^8", - "eslint-config-prettier": "^9.0.0", - "eslint-import-resolver-typescript": "^3.6.1", - "eslint-plugin-import": "^2.28.1", - "eslint-plugin-prettier": "^5.0.0", - "prettier": "^3.0.3", - "projen": "^0.79.6", - "typescript": "^5.2.2" - }, - "peerDependencies": { - "effect": ">=2.3.1 <2.5.0" - }, - "dependencies": { - "@aws-sdk/client-dynamodb": "^3", - "@aws-sdk/types": "^3" - }, - "main": "lib/index.js", - "license": "MIT", - "homepage": "https://floydspace.github.io/effect-aws", - "publishConfig": { - "access": "public" - }, - "version": "1.1.2", - "types": "lib/index.d.ts", - "module": "lib/esm/index.js", - "sideEffects": [], - "//": "~~ Generated by projen. To modify, edit .projenrc.js and run \"npx projen\"." -} diff --git a/packages/client-dynamodb/project.json b/packages/client-dynamodb/project.json deleted file mode 100644 index 98a8c66..0000000 --- a/packages/client-dynamodb/project.json +++ /dev/null @@ -1,77 +0,0 @@ -{ - "name": "@effect-aws/client-dynamodb", - "root": "packages/client-dynamodb", - "targets": { - "default": { - "executor": "nx:run-commands", - "options": { - "command": "pnpm exec projen default", - "cwd": "packages/client-dynamodb" - } - }, - "pre-compile": { - "executor": "nx:run-commands", - "options": { - "command": "pnpm exec projen pre-compile", - "cwd": "packages/client-dynamodb" - } - }, - "compile": { - "executor": "nx:run-commands", - "options": { - "command": "pnpm exec projen compile", - "cwd": "packages/client-dynamodb" - } - }, - "post-compile": { - "executor": "nx:run-commands", - "options": { - "command": "pnpm exec projen post-compile", - "cwd": "packages/client-dynamodb" - } - }, - "test": { - "executor": "nx:run-commands", - "options": { - "command": "pnpm exec projen test", - "cwd": "packages/client-dynamodb" - } - }, - "package": { - "executor": "nx:run-commands", - "options": { - "command": "pnpm exec projen package", - "cwd": "packages/client-dynamodb" - } - }, - "build": { - "executor": "nx:run-commands", - "options": { - "command": "pnpm exec projen build", - "cwd": "packages/client-dynamodb" - } - }, - "watch": { - "executor": "nx:run-commands", - "options": { - "command": "pnpm exec projen watch", - "cwd": "packages/client-dynamodb" - } - }, - "eslint": { - "executor": "nx:run-commands", - "options": { - "command": "pnpm exec projen eslint", - "cwd": "packages/client-dynamodb" - } - }, - "test:watch": { - "executor": "nx:run-commands", - "options": { - "command": "pnpm exec projen test:watch", - "cwd": "packages/client-dynamodb" - } - } - }, - "//": "~~ Generated by projen. To modify, edit .projenrc.js and run \"npx projen\"." -} diff --git a/packages/client-dynamodb/src/DynamoDBClientInstance.ts b/packages/client-dynamodb/src/DynamoDBClientInstance.ts deleted file mode 100644 index 2252e54..0000000 --- a/packages/client-dynamodb/src/DynamoDBClientInstance.ts +++ /dev/null @@ -1,46 +0,0 @@ -/** - * @since 1.0.0 - */ -import { DynamoDBClient } from "@aws-sdk/client-dynamodb"; -import * as Context from "effect/Context"; -import * as Effect from "effect/Effect"; -import * as Layer from "effect/Layer"; -import { - DefaultDynamoDBClientConfigLayer, - DynamoDBClientInstanceConfig, -} from "./DynamoDBClientInstanceConfig"; - -/** - * @since 1.0.0 - * @category tags - */ -export class DynamoDBClientInstance extends Context.Tag( - "@effect-aws/client-dynamodb/DynamoDBClientInstance", -)() {} - -/** - * @since 1.0.0 - * @category constructors - */ -export const makeDynamoDBClientInstance = Effect.map( - DynamoDBClientInstanceConfig, - (config) => new DynamoDBClient(config), -); - -/** - * @since 1.0.0 - * @category layers - */ -export const DynamoDBClientInstanceLayer = Layer.effect( - DynamoDBClientInstance, - makeDynamoDBClientInstance, -); - -/** - * @since 1.0.0 - * @category layers - */ -export const DefaultDynamoDBClientInstanceLayer = - DynamoDBClientInstanceLayer.pipe( - Layer.provide(DefaultDynamoDBClientConfigLayer), - ); diff --git a/packages/client-dynamodb/src/DynamoDBClientInstanceConfig.ts b/packages/client-dynamodb/src/DynamoDBClientInstanceConfig.ts deleted file mode 100644 index d9fec1b..0000000 --- a/packages/client-dynamodb/src/DynamoDBClientInstanceConfig.ts +++ /dev/null @@ -1,55 +0,0 @@ -/** - * @since 1.0.0 - */ -import type { DynamoDBClientConfig } from "@aws-sdk/client-dynamodb"; -import * as Context from "effect/Context"; -import * as Effect from "effect/Effect"; -import * as Layer from "effect/Layer"; -import * as Runtime from "effect/Runtime"; - -/** - * @since 1.0.0 - * @category tags - */ -export class DynamoDBClientInstanceConfig extends Context.Tag( - "@effect-aws/client-dynamodb/DynamoDBClientInstanceConfig", -)() {} - -/** - * @since 1.0.0 - * @category constructors - */ -export const makeDefaultDynamoDBClientInstanceConfig: Effect.Effect = - Effect.gen(function* (_) { - const runtime = yield* _(Effect.runtime()); - const runSync = Runtime.runSync(runtime); - - return { - logger: { - info(m) { - Effect.logInfo(m).pipe(runSync); - }, - warn(m) { - Effect.logWarning(m).pipe(runSync); - }, - error(m) { - Effect.logError(m).pipe(runSync); - }, - debug(m) { - Effect.logDebug(m).pipe(runSync); - }, - trace(m) { - Effect.logTrace(m).pipe(runSync); - }, - }, - }; - }); - -/** - * @since 1.0.0 - * @category layers - */ -export const DefaultDynamoDBClientConfigLayer = Layer.effect( - DynamoDBClientInstanceConfig, - makeDefaultDynamoDBClientInstanceConfig, -); diff --git a/packages/client-dynamodb/src/DynamoDBService.ts b/packages/client-dynamodb/src/DynamoDBService.ts deleted file mode 100644 index 9d31e8a..0000000 --- a/packages/client-dynamodb/src/DynamoDBService.ts +++ /dev/null @@ -1,1162 +0,0 @@ -/** - * @since 1.0.0 - */ -import { - DynamoDBServiceException, - BatchExecuteStatementCommand, - type BatchExecuteStatementCommandInput, - type BatchExecuteStatementCommandOutput, - BatchGetItemCommand, - type BatchGetItemCommandInput, - type BatchGetItemCommandOutput, - BatchWriteItemCommand, - type BatchWriteItemCommandInput, - type BatchWriteItemCommandOutput, - CreateBackupCommand, - type CreateBackupCommandInput, - type CreateBackupCommandOutput, - CreateGlobalTableCommand, - type CreateGlobalTableCommandInput, - type CreateGlobalTableCommandOutput, - CreateTableCommand, - type CreateTableCommandInput, - type CreateTableCommandOutput, - DeleteBackupCommand, - type DeleteBackupCommandInput, - type DeleteBackupCommandOutput, - DeleteItemCommand, - type DeleteItemCommandInput, - type DeleteItemCommandOutput, - DeleteTableCommand, - type DeleteTableCommandInput, - type DeleteTableCommandOutput, - DescribeBackupCommand, - type DescribeBackupCommandInput, - type DescribeBackupCommandOutput, - DescribeContinuousBackupsCommand, - type DescribeContinuousBackupsCommandInput, - type DescribeContinuousBackupsCommandOutput, - DescribeContributorInsightsCommand, - type DescribeContributorInsightsCommandInput, - type DescribeContributorInsightsCommandOutput, - DescribeEndpointsCommand, - type DescribeEndpointsCommandInput, - type DescribeEndpointsCommandOutput, - DescribeExportCommand, - type DescribeExportCommandInput, - type DescribeExportCommandOutput, - DescribeGlobalTableCommand, - type DescribeGlobalTableCommandInput, - type DescribeGlobalTableCommandOutput, - DescribeGlobalTableSettingsCommand, - type DescribeGlobalTableSettingsCommandInput, - type DescribeGlobalTableSettingsCommandOutput, - DescribeImportCommand, - type DescribeImportCommandInput, - type DescribeImportCommandOutput, - DescribeKinesisStreamingDestinationCommand, - type DescribeKinesisStreamingDestinationCommandInput, - type DescribeKinesisStreamingDestinationCommandOutput, - DescribeLimitsCommand, - type DescribeLimitsCommandInput, - type DescribeLimitsCommandOutput, - DescribeTableCommand, - type DescribeTableCommandInput, - type DescribeTableCommandOutput, - DescribeTableReplicaAutoScalingCommand, - type DescribeTableReplicaAutoScalingCommandInput, - type DescribeTableReplicaAutoScalingCommandOutput, - DescribeTimeToLiveCommand, - type DescribeTimeToLiveCommandInput, - type DescribeTimeToLiveCommandOutput, - DisableKinesisStreamingDestinationCommand, - type DisableKinesisStreamingDestinationCommandInput, - type DisableKinesisStreamingDestinationCommandOutput, - EnableKinesisStreamingDestinationCommand, - type EnableKinesisStreamingDestinationCommandInput, - type EnableKinesisStreamingDestinationCommandOutput, - ExecuteStatementCommand, - type ExecuteStatementCommandInput, - type ExecuteStatementCommandOutput, - ExecuteTransactionCommand, - type ExecuteTransactionCommandInput, - type ExecuteTransactionCommandOutput, - ExportTableToPointInTimeCommand, - type ExportTableToPointInTimeCommandInput, - type ExportTableToPointInTimeCommandOutput, - GetItemCommand, - type GetItemCommandInput, - type GetItemCommandOutput, - ImportTableCommand, - type ImportTableCommandInput, - type ImportTableCommandOutput, - ListBackupsCommand, - type ListBackupsCommandInput, - type ListBackupsCommandOutput, - ListContributorInsightsCommand, - type ListContributorInsightsCommandInput, - type ListContributorInsightsCommandOutput, - ListExportsCommand, - type ListExportsCommandInput, - type ListExportsCommandOutput, - ListGlobalTablesCommand, - type ListGlobalTablesCommandInput, - type ListGlobalTablesCommandOutput, - ListImportsCommand, - type ListImportsCommandInput, - type ListImportsCommandOutput, - ListTablesCommand, - type ListTablesCommandInput, - type ListTablesCommandOutput, - ListTagsOfResourceCommand, - type ListTagsOfResourceCommandInput, - type ListTagsOfResourceCommandOutput, - PutItemCommand, - type PutItemCommandInput, - type PutItemCommandOutput, - QueryCommand, - type QueryCommandInput, - type QueryCommandOutput, - RestoreTableFromBackupCommand, - type RestoreTableFromBackupCommandInput, - type RestoreTableFromBackupCommandOutput, - RestoreTableToPointInTimeCommand, - type RestoreTableToPointInTimeCommandInput, - type RestoreTableToPointInTimeCommandOutput, - ScanCommand, - type ScanCommandInput, - type ScanCommandOutput, - TagResourceCommand, - type TagResourceCommandInput, - type TagResourceCommandOutput, - TransactGetItemsCommand, - type TransactGetItemsCommandInput, - type TransactGetItemsCommandOutput, - TransactWriteItemsCommand, - type TransactWriteItemsCommandInput, - type TransactWriteItemsCommandOutput, - UntagResourceCommand, - type UntagResourceCommandInput, - type UntagResourceCommandOutput, - UpdateContinuousBackupsCommand, - type UpdateContinuousBackupsCommandInput, - type UpdateContinuousBackupsCommandOutput, - UpdateContributorInsightsCommand, - type UpdateContributorInsightsCommandInput, - type UpdateContributorInsightsCommandOutput, - UpdateGlobalTableCommand, - type UpdateGlobalTableCommandInput, - type UpdateGlobalTableCommandOutput, - UpdateGlobalTableSettingsCommand, - type UpdateGlobalTableSettingsCommandInput, - type UpdateGlobalTableSettingsCommandOutput, - UpdateItemCommand, - type UpdateItemCommandInput, - type UpdateItemCommandOutput, - UpdateKinesisStreamingDestinationCommand, - type UpdateKinesisStreamingDestinationCommandInput, - type UpdateKinesisStreamingDestinationCommandOutput, - UpdateTableCommand, - type UpdateTableCommandInput, - type UpdateTableCommandOutput, - UpdateTableReplicaAutoScalingCommand, - type UpdateTableReplicaAutoScalingCommandInput, - type UpdateTableReplicaAutoScalingCommandOutput, - UpdateTimeToLiveCommand, - type UpdateTimeToLiveCommandInput, - type UpdateTimeToLiveCommandOutput, -} from "@aws-sdk/client-dynamodb"; -import { type HttpHandlerOptions as __HttpHandlerOptions } from "@aws-sdk/types"; -import { Context, Effect, Layer, ReadonlyRecord, Data } from "effect"; -import { - DefaultDynamoDBClientInstanceLayer, - DynamoDBClientInstance, - DynamoDBClientInstanceLayer, -} from "./DynamoDBClientInstance"; -import { DefaultDynamoDBClientConfigLayer } from "./DynamoDBClientInstanceConfig"; -import { - BackupInUseError, - BackupNotFoundError, - ConditionalCheckFailedError, - ContinuousBackupsUnavailableError, - DuplicateItemError, - ExportConflictError, - ExportNotFoundError, - GlobalTableAlreadyExistsError, - GlobalTableNotFoundError, - IdempotentParameterMismatchError, - ImportConflictError, - ImportNotFoundError, - IndexNotFoundError, - InternalServerError, - InvalidEndpointError, - InvalidExportTimeError, - InvalidRestoreTimeError, - ItemCollectionSizeLimitExceededError, - LimitExceededError, - PointInTimeRecoveryUnavailableError, - ProvisionedThroughputExceededError, - ReplicaAlreadyExistsError, - ReplicaNotFoundError, - RequestLimitExceededError, - ResourceInUseError, - ResourceNotFoundError, - TableAlreadyExistsError, - TableInUseError, - TableNotFoundError, - TransactionCanceledError, - TransactionConflictError, - TransactionInProgressError, - SdkError, - TaggedException, -} from "./Errors"; - -const commands = { - BatchExecuteStatementCommand, - BatchGetItemCommand, - BatchWriteItemCommand, - CreateBackupCommand, - CreateGlobalTableCommand, - CreateTableCommand, - DeleteBackupCommand, - DeleteItemCommand, - DeleteTableCommand, - DescribeBackupCommand, - DescribeContinuousBackupsCommand, - DescribeContributorInsightsCommand, - DescribeEndpointsCommand, - DescribeExportCommand, - DescribeGlobalTableCommand, - DescribeGlobalTableSettingsCommand, - DescribeImportCommand, - DescribeKinesisStreamingDestinationCommand, - DescribeLimitsCommand, - DescribeTableCommand, - DescribeTableReplicaAutoScalingCommand, - DescribeTimeToLiveCommand, - DisableKinesisStreamingDestinationCommand, - EnableKinesisStreamingDestinationCommand, - ExecuteStatementCommand, - ExecuteTransactionCommand, - ExportTableToPointInTimeCommand, - GetItemCommand, - ImportTableCommand, - ListBackupsCommand, - ListContributorInsightsCommand, - ListExportsCommand, - ListGlobalTablesCommand, - ListImportsCommand, - ListTablesCommand, - ListTagsOfResourceCommand, - PutItemCommand, - QueryCommand, - RestoreTableFromBackupCommand, - RestoreTableToPointInTimeCommand, - ScanCommand, - TagResourceCommand, - TransactGetItemsCommand, - TransactWriteItemsCommand, - UntagResourceCommand, - UpdateContinuousBackupsCommand, - UpdateContributorInsightsCommand, - UpdateGlobalTableCommand, - UpdateGlobalTableSettingsCommand, - UpdateItemCommand, - UpdateKinesisStreamingDestinationCommand, - UpdateTableCommand, - UpdateTableReplicaAutoScalingCommand, - UpdateTimeToLiveCommand, -}; - -/** - * @since 1.0.0 - * @category models - */ -export interface DynamoDBService { - readonly _: unique symbol; - - /** - * @see {@link BatchExecuteStatementCommand} - */ - batchExecuteStatement( - args: BatchExecuteStatementCommandInput, - options?: __HttpHandlerOptions, - ): Effect.Effect< - BatchExecuteStatementCommandOutput, - SdkError | InternalServerError | RequestLimitExceededError - >; - - /** - * @see {@link BatchGetItemCommand} - */ - batchGetItem( - args: BatchGetItemCommandInput, - options?: __HttpHandlerOptions, - ): Effect.Effect< - BatchGetItemCommandOutput, - | SdkError - | InternalServerError - | InvalidEndpointError - | ProvisionedThroughputExceededError - | RequestLimitExceededError - | ResourceNotFoundError - >; - - /** - * @see {@link BatchWriteItemCommand} - */ - batchWriteItem( - args: BatchWriteItemCommandInput, - options?: __HttpHandlerOptions, - ): Effect.Effect< - BatchWriteItemCommandOutput, - | SdkError - | InternalServerError - | InvalidEndpointError - | ItemCollectionSizeLimitExceededError - | ProvisionedThroughputExceededError - | RequestLimitExceededError - | ResourceNotFoundError - >; - - /** - * @see {@link CreateBackupCommand} - */ - createBackup( - args: CreateBackupCommandInput, - options?: __HttpHandlerOptions, - ): Effect.Effect< - CreateBackupCommandOutput, - | SdkError - | BackupInUseError - | ContinuousBackupsUnavailableError - | InternalServerError - | InvalidEndpointError - | LimitExceededError - | TableInUseError - | TableNotFoundError - >; - - /** - * @see {@link CreateGlobalTableCommand} - */ - createGlobalTable( - args: CreateGlobalTableCommandInput, - options?: __HttpHandlerOptions, - ): Effect.Effect< - CreateGlobalTableCommandOutput, - | SdkError - | GlobalTableAlreadyExistsError - | InternalServerError - | InvalidEndpointError - | LimitExceededError - | TableNotFoundError - >; - - /** - * @see {@link CreateTableCommand} - */ - createTable( - args: CreateTableCommandInput, - options?: __HttpHandlerOptions, - ): Effect.Effect< - CreateTableCommandOutput, - | SdkError - | InternalServerError - | InvalidEndpointError - | LimitExceededError - | ResourceInUseError - >; - - /** - * @see {@link DeleteBackupCommand} - */ - deleteBackup( - args: DeleteBackupCommandInput, - options?: __HttpHandlerOptions, - ): Effect.Effect< - DeleteBackupCommandOutput, - | SdkError - | BackupInUseError - | BackupNotFoundError - | InternalServerError - | InvalidEndpointError - | LimitExceededError - >; - - /** - * @see {@link DeleteItemCommand} - */ - deleteItem( - args: DeleteItemCommandInput, - options?: __HttpHandlerOptions, - ): Effect.Effect< - DeleteItemCommandOutput, - | SdkError - | ConditionalCheckFailedError - | InternalServerError - | InvalidEndpointError - | ItemCollectionSizeLimitExceededError - | ProvisionedThroughputExceededError - | RequestLimitExceededError - | ResourceNotFoundError - | TransactionConflictError - >; - - /** - * @see {@link DeleteTableCommand} - */ - deleteTable( - args: DeleteTableCommandInput, - options?: __HttpHandlerOptions, - ): Effect.Effect< - DeleteTableCommandOutput, - | SdkError - | InternalServerError - | InvalidEndpointError - | LimitExceededError - | ResourceInUseError - | ResourceNotFoundError - >; - - /** - * @see {@link DescribeBackupCommand} - */ - describeBackup( - args: DescribeBackupCommandInput, - options?: __HttpHandlerOptions, - ): Effect.Effect< - DescribeBackupCommandOutput, - SdkError | BackupNotFoundError | InternalServerError | InvalidEndpointError - >; - - /** - * @see {@link DescribeContinuousBackupsCommand} - */ - describeContinuousBackups( - args: DescribeContinuousBackupsCommandInput, - options?: __HttpHandlerOptions, - ): Effect.Effect< - DescribeContinuousBackupsCommandOutput, - SdkError | InternalServerError | InvalidEndpointError | TableNotFoundError - >; - - /** - * @see {@link DescribeContributorInsightsCommand} - */ - describeContributorInsights( - args: DescribeContributorInsightsCommandInput, - options?: __HttpHandlerOptions, - ): Effect.Effect< - DescribeContributorInsightsCommandOutput, - SdkError | InternalServerError | ResourceNotFoundError - >; - - /** - * @see {@link DescribeEndpointsCommand} - */ - describeEndpoints( - args: DescribeEndpointsCommandInput, - options?: __HttpHandlerOptions, - ): Effect.Effect; - - /** - * @see {@link DescribeExportCommand} - */ - describeExport( - args: DescribeExportCommandInput, - options?: __HttpHandlerOptions, - ): Effect.Effect< - DescribeExportCommandOutput, - SdkError | ExportNotFoundError | InternalServerError | LimitExceededError - >; - - /** - * @see {@link DescribeGlobalTableCommand} - */ - describeGlobalTable( - args: DescribeGlobalTableCommandInput, - options?: __HttpHandlerOptions, - ): Effect.Effect< - DescribeGlobalTableCommandOutput, - | SdkError - | GlobalTableNotFoundError - | InternalServerError - | InvalidEndpointError - >; - - /** - * @see {@link DescribeGlobalTableSettingsCommand} - */ - describeGlobalTableSettings( - args: DescribeGlobalTableSettingsCommandInput, - options?: __HttpHandlerOptions, - ): Effect.Effect< - DescribeGlobalTableSettingsCommandOutput, - | SdkError - | GlobalTableNotFoundError - | InternalServerError - | InvalidEndpointError - >; - - /** - * @see {@link DescribeImportCommand} - */ - describeImport( - args: DescribeImportCommandInput, - options?: __HttpHandlerOptions, - ): Effect.Effect; - - /** - * @see {@link DescribeKinesisStreamingDestinationCommand} - */ - describeKinesisStreamingDestination( - args: DescribeKinesisStreamingDestinationCommandInput, - options?: __HttpHandlerOptions, - ): Effect.Effect< - DescribeKinesisStreamingDestinationCommandOutput, - | SdkError - | InternalServerError - | InvalidEndpointError - | ResourceNotFoundError - >; - - /** - * @see {@link DescribeLimitsCommand} - */ - describeLimits( - args: DescribeLimitsCommandInput, - options?: __HttpHandlerOptions, - ): Effect.Effect< - DescribeLimitsCommandOutput, - SdkError | InternalServerError | InvalidEndpointError - >; - - /** - * @see {@link DescribeTableCommand} - */ - describeTable( - args: DescribeTableCommandInput, - options?: __HttpHandlerOptions, - ): Effect.Effect< - DescribeTableCommandOutput, - | SdkError - | InternalServerError - | InvalidEndpointError - | ResourceNotFoundError - >; - - /** - * @see {@link DescribeTableReplicaAutoScalingCommand} - */ - describeTableReplicaAutoScaling( - args: DescribeTableReplicaAutoScalingCommandInput, - options?: __HttpHandlerOptions, - ): Effect.Effect< - DescribeTableReplicaAutoScalingCommandOutput, - SdkError | InternalServerError | ResourceNotFoundError - >; - - /** - * @see {@link DescribeTimeToLiveCommand} - */ - describeTimeToLive( - args: DescribeTimeToLiveCommandInput, - options?: __HttpHandlerOptions, - ): Effect.Effect< - DescribeTimeToLiveCommandOutput, - | SdkError - | InternalServerError - | InvalidEndpointError - | ResourceNotFoundError - >; - - /** - * @see {@link DisableKinesisStreamingDestinationCommand} - */ - disableKinesisStreamingDestination( - args: DisableKinesisStreamingDestinationCommandInput, - options?: __HttpHandlerOptions, - ): Effect.Effect< - DisableKinesisStreamingDestinationCommandOutput, - | SdkError - | InternalServerError - | InvalidEndpointError - | LimitExceededError - | ResourceInUseError - | ResourceNotFoundError - >; - - /** - * @see {@link EnableKinesisStreamingDestinationCommand} - */ - enableKinesisStreamingDestination( - args: EnableKinesisStreamingDestinationCommandInput, - options?: __HttpHandlerOptions, - ): Effect.Effect< - EnableKinesisStreamingDestinationCommandOutput, - | SdkError - | InternalServerError - | InvalidEndpointError - | LimitExceededError - | ResourceInUseError - | ResourceNotFoundError - >; - - /** - * @see {@link ExecuteStatementCommand} - */ - executeStatement( - args: ExecuteStatementCommandInput, - options?: __HttpHandlerOptions, - ): Effect.Effect< - ExecuteStatementCommandOutput, - | SdkError - | ConditionalCheckFailedError - | DuplicateItemError - | InternalServerError - | ItemCollectionSizeLimitExceededError - | ProvisionedThroughputExceededError - | RequestLimitExceededError - | ResourceNotFoundError - | TransactionConflictError - >; - - /** - * @see {@link ExecuteTransactionCommand} - */ - executeTransaction( - args: ExecuteTransactionCommandInput, - options?: __HttpHandlerOptions, - ): Effect.Effect< - ExecuteTransactionCommandOutput, - | SdkError - | IdempotentParameterMismatchError - | InternalServerError - | ProvisionedThroughputExceededError - | RequestLimitExceededError - | ResourceNotFoundError - | TransactionCanceledError - | TransactionInProgressError - >; - - /** - * @see {@link ExportTableToPointInTimeCommand} - */ - exportTableToPointInTime( - args: ExportTableToPointInTimeCommandInput, - options?: __HttpHandlerOptions, - ): Effect.Effect< - ExportTableToPointInTimeCommandOutput, - | SdkError - | ExportConflictError - | InternalServerError - | InvalidExportTimeError - | LimitExceededError - | PointInTimeRecoveryUnavailableError - | TableNotFoundError - >; - - /** - * @see {@link GetItemCommand} - */ - getItem( - args: GetItemCommandInput, - options?: __HttpHandlerOptions, - ): Effect.Effect< - GetItemCommandOutput, - | SdkError - | InternalServerError - | InvalidEndpointError - | ProvisionedThroughputExceededError - | RequestLimitExceededError - | ResourceNotFoundError - >; - - /** - * @see {@link ImportTableCommand} - */ - importTable( - args: ImportTableCommandInput, - options?: __HttpHandlerOptions, - ): Effect.Effect< - ImportTableCommandOutput, - SdkError | ImportConflictError | LimitExceededError | ResourceInUseError - >; - - /** - * @see {@link ListBackupsCommand} - */ - listBackups( - args: ListBackupsCommandInput, - options?: __HttpHandlerOptions, - ): Effect.Effect< - ListBackupsCommandOutput, - SdkError | InternalServerError | InvalidEndpointError - >; - - /** - * @see {@link ListContributorInsightsCommand} - */ - listContributorInsights( - args: ListContributorInsightsCommandInput, - options?: __HttpHandlerOptions, - ): Effect.Effect< - ListContributorInsightsCommandOutput, - SdkError | InternalServerError | ResourceNotFoundError - >; - - /** - * @see {@link ListExportsCommand} - */ - listExports( - args: ListExportsCommandInput, - options?: __HttpHandlerOptions, - ): Effect.Effect< - ListExportsCommandOutput, - SdkError | InternalServerError | LimitExceededError - >; - - /** - * @see {@link ListGlobalTablesCommand} - */ - listGlobalTables( - args: ListGlobalTablesCommandInput, - options?: __HttpHandlerOptions, - ): Effect.Effect< - ListGlobalTablesCommandOutput, - SdkError | InternalServerError | InvalidEndpointError - >; - - /** - * @see {@link ListImportsCommand} - */ - listImports( - args: ListImportsCommandInput, - options?: __HttpHandlerOptions, - ): Effect.Effect; - - /** - * @see {@link ListTablesCommand} - */ - listTables( - args: ListTablesCommandInput, - options?: __HttpHandlerOptions, - ): Effect.Effect< - ListTablesCommandOutput, - SdkError | InternalServerError | InvalidEndpointError - >; - - /** - * @see {@link ListTagsOfResourceCommand} - */ - listTagsOfResource( - args: ListTagsOfResourceCommandInput, - options?: __HttpHandlerOptions, - ): Effect.Effect< - ListTagsOfResourceCommandOutput, - | SdkError - | InternalServerError - | InvalidEndpointError - | ResourceNotFoundError - >; - - /** - * @see {@link PutItemCommand} - */ - putItem( - args: PutItemCommandInput, - options?: __HttpHandlerOptions, - ): Effect.Effect< - PutItemCommandOutput, - | SdkError - | ConditionalCheckFailedError - | InternalServerError - | InvalidEndpointError - | ItemCollectionSizeLimitExceededError - | ProvisionedThroughputExceededError - | RequestLimitExceededError - | ResourceNotFoundError - | TransactionConflictError - >; - - /** - * @see {@link QueryCommand} - */ - query( - args: QueryCommandInput, - options?: __HttpHandlerOptions, - ): Effect.Effect< - QueryCommandOutput, - | SdkError - | InternalServerError - | InvalidEndpointError - | ProvisionedThroughputExceededError - | RequestLimitExceededError - | ResourceNotFoundError - >; - - /** - * @see {@link RestoreTableFromBackupCommand} - */ - restoreTableFromBackup( - args: RestoreTableFromBackupCommandInput, - options?: __HttpHandlerOptions, - ): Effect.Effect< - RestoreTableFromBackupCommandOutput, - | SdkError - | BackupInUseError - | BackupNotFoundError - | InternalServerError - | InvalidEndpointError - | LimitExceededError - | TableAlreadyExistsError - | TableInUseError - >; - - /** - * @see {@link RestoreTableToPointInTimeCommand} - */ - restoreTableToPointInTime( - args: RestoreTableToPointInTimeCommandInput, - options?: __HttpHandlerOptions, - ): Effect.Effect< - RestoreTableToPointInTimeCommandOutput, - | SdkError - | InternalServerError - | InvalidEndpointError - | InvalidRestoreTimeError - | LimitExceededError - | PointInTimeRecoveryUnavailableError - | TableAlreadyExistsError - | TableInUseError - | TableNotFoundError - >; - - /** - * @see {@link ScanCommand} - */ - scan( - args: ScanCommandInput, - options?: __HttpHandlerOptions, - ): Effect.Effect< - ScanCommandOutput, - | SdkError - | InternalServerError - | InvalidEndpointError - | ProvisionedThroughputExceededError - | RequestLimitExceededError - | ResourceNotFoundError - >; - - /** - * @see {@link TagResourceCommand} - */ - tagResource( - args: TagResourceCommandInput, - options?: __HttpHandlerOptions, - ): Effect.Effect< - TagResourceCommandOutput, - | SdkError - | InternalServerError - | InvalidEndpointError - | LimitExceededError - | ResourceInUseError - | ResourceNotFoundError - >; - - /** - * @see {@link TransactGetItemsCommand} - */ - transactGetItems( - args: TransactGetItemsCommandInput, - options?: __HttpHandlerOptions, - ): Effect.Effect< - TransactGetItemsCommandOutput, - | SdkError - | InternalServerError - | InvalidEndpointError - | ProvisionedThroughputExceededError - | RequestLimitExceededError - | ResourceNotFoundError - | TransactionCanceledError - >; - - /** - * @see {@link TransactWriteItemsCommand} - */ - transactWriteItems( - args: TransactWriteItemsCommandInput, - options?: __HttpHandlerOptions, - ): Effect.Effect< - TransactWriteItemsCommandOutput, - | SdkError - | IdempotentParameterMismatchError - | InternalServerError - | InvalidEndpointError - | ProvisionedThroughputExceededError - | RequestLimitExceededError - | ResourceNotFoundError - | TransactionCanceledError - | TransactionInProgressError - >; - - /** - * @see {@link UntagResourceCommand} - */ - untagResource( - args: UntagResourceCommandInput, - options?: __HttpHandlerOptions, - ): Effect.Effect< - UntagResourceCommandOutput, - | SdkError - | InternalServerError - | InvalidEndpointError - | LimitExceededError - | ResourceInUseError - | ResourceNotFoundError - >; - - /** - * @see {@link UpdateContinuousBackupsCommand} - */ - updateContinuousBackups( - args: UpdateContinuousBackupsCommandInput, - options?: __HttpHandlerOptions, - ): Effect.Effect< - UpdateContinuousBackupsCommandOutput, - | SdkError - | ContinuousBackupsUnavailableError - | InternalServerError - | InvalidEndpointError - | TableNotFoundError - >; - - /** - * @see {@link UpdateContributorInsightsCommand} - */ - updateContributorInsights( - args: UpdateContributorInsightsCommandInput, - options?: __HttpHandlerOptions, - ): Effect.Effect< - UpdateContributorInsightsCommandOutput, - SdkError | InternalServerError | ResourceNotFoundError - >; - - /** - * @see {@link UpdateGlobalTableCommand} - */ - updateGlobalTable( - args: UpdateGlobalTableCommandInput, - options?: __HttpHandlerOptions, - ): Effect.Effect< - UpdateGlobalTableCommandOutput, - | SdkError - | GlobalTableNotFoundError - | InternalServerError - | InvalidEndpointError - | ReplicaAlreadyExistsError - | ReplicaNotFoundError - | TableNotFoundError - >; - - /** - * @see {@link UpdateGlobalTableSettingsCommand} - */ - updateGlobalTableSettings( - args: UpdateGlobalTableSettingsCommandInput, - options?: __HttpHandlerOptions, - ): Effect.Effect< - UpdateGlobalTableSettingsCommandOutput, - | SdkError - | GlobalTableNotFoundError - | IndexNotFoundError - | InternalServerError - | InvalidEndpointError - | LimitExceededError - | ReplicaNotFoundError - | ResourceInUseError - >; - - /** - * @see {@link UpdateItemCommand} - */ - updateItem( - args: UpdateItemCommandInput, - options?: __HttpHandlerOptions, - ): Effect.Effect< - UpdateItemCommandOutput, - | SdkError - | ConditionalCheckFailedError - | InternalServerError - | InvalidEndpointError - | ItemCollectionSizeLimitExceededError - | ProvisionedThroughputExceededError - | RequestLimitExceededError - | ResourceNotFoundError - | TransactionConflictError - >; - - /** - * @see {@link UpdateKinesisStreamingDestinationCommand} - */ - updateKinesisStreamingDestination( - args: UpdateKinesisStreamingDestinationCommandInput, - options?: __HttpHandlerOptions, - ): Effect.Effect< - UpdateKinesisStreamingDestinationCommandOutput, - | SdkError - | InternalServerError - | InvalidEndpointError - | LimitExceededError - | ResourceInUseError - | ResourceNotFoundError - >; - - /** - * @see {@link UpdateTableCommand} - */ - updateTable( - args: UpdateTableCommandInput, - options?: __HttpHandlerOptions, - ): Effect.Effect< - UpdateTableCommandOutput, - | SdkError - | InternalServerError - | InvalidEndpointError - | LimitExceededError - | ResourceInUseError - | ResourceNotFoundError - >; - - /** - * @see {@link UpdateTableReplicaAutoScalingCommand} - */ - updateTableReplicaAutoScaling( - args: UpdateTableReplicaAutoScalingCommandInput, - options?: __HttpHandlerOptions, - ): Effect.Effect< - UpdateTableReplicaAutoScalingCommandOutput, - | SdkError - | InternalServerError - | LimitExceededError - | ResourceInUseError - | ResourceNotFoundError - >; - - /** - * @see {@link UpdateTimeToLiveCommand} - */ - updateTimeToLive( - args: UpdateTimeToLiveCommandInput, - options?: __HttpHandlerOptions, - ): Effect.Effect< - UpdateTimeToLiveCommandOutput, - | SdkError - | InternalServerError - | InvalidEndpointError - | LimitExceededError - | ResourceInUseError - | ResourceNotFoundError - >; -} - -/** - * @since 1.0.0 - * @category tags - */ -export const DynamoDBService = Context.GenericTag( - "@effect-aws/client-dynamodb/DynamoDBService", -); - -/** - * @since 1.0.0 - * @category constructors - */ -export const makeDynamoDBService = Effect.gen(function* (_) { - const client = yield* _(DynamoDBClientInstance); - - return ReadonlyRecord.toEntries(commands).reduce((acc, [command]) => { - const CommandCtor = commands[command] as any; - const methodImpl = (args: any, options: any) => - Effect.tryPromise({ - try: () => client.send(new CommandCtor(args), options ?? {}), - catch: (e) => { - if (e instanceof DynamoDBServiceException) { - const ServiceException = Data.tagged< - TaggedException - >(e.name); - - return ServiceException({ - ...e, - message: e.message, - stack: e.stack, - }); - } - if (e instanceof Error) { - return SdkError({ - ...e, - name: "SdkError", - message: e.message, - stack: e.stack, - }); - } - throw e; - }, - }); - const methodName = (command[0].toLowerCase() + command.slice(1)).replace( - /Command$/, - "", - ); - return { ...acc, [methodName]: methodImpl }; - }, {}) as DynamoDBService; -}); - -/** - * @since 1.0.0 - * @category layers - */ -export const BaseDynamoDBServiceLayer = Layer.effect( - DynamoDBService, - makeDynamoDBService, -); - -/** - * @since 1.0.0 - * @category layers - */ -export const DynamoDBServiceLayer = BaseDynamoDBServiceLayer.pipe( - Layer.provide(DynamoDBClientInstanceLayer), -); - -/** - * @since 1.0.0 - * @category layers - */ -export const DefaultDynamoDBServiceLayer = DynamoDBServiceLayer.pipe( - Layer.provide(DefaultDynamoDBClientConfigLayer), -); - -// -------------------- Danger Zone -------------------- - -/** - * @since 0.1.0 - * @deprecated - */ -export const BaseDynamoDBServiceEffect = makeDynamoDBService; - -/** - * @since 0.1.0 - * @deprecated - */ -export const DynamoDBServiceEffect = BaseDynamoDBServiceEffect.pipe( - Effect.provide(DynamoDBClientInstanceLayer), -); - -/** - * @since 0.1.0 - * @deprecated - */ -export const DefaultDynamoDBServiceEffect = BaseDynamoDBServiceEffect.pipe( - Effect.provide(DefaultDynamoDBClientInstanceLayer), -); diff --git a/packages/client-dynamodb/src/Errors.ts b/packages/client-dynamodb/src/Errors.ts deleted file mode 100644 index 26181ca..0000000 --- a/packages/client-dynamodb/src/Errors.ts +++ /dev/null @@ -1,89 +0,0 @@ -import type { - BackupInUseException, - BackupNotFoundException, - ConditionalCheckFailedException, - ContinuousBackupsUnavailableException, - DuplicateItemException, - ExportConflictException, - ExportNotFoundException, - GlobalTableAlreadyExistsException, - GlobalTableNotFoundException, - IdempotentParameterMismatchException, - ImportConflictException, - ImportNotFoundException, - IndexNotFoundException, - InternalServerError as InternalServerException, - InvalidEndpointException, - InvalidExportTimeException, - InvalidRestoreTimeException, - ItemCollectionSizeLimitExceededException, - LimitExceededException, - PointInTimeRecoveryUnavailableException, - ProvisionedThroughputExceededException, - ReplicaAlreadyExistsException, - ReplicaNotFoundException, - RequestLimitExceeded, - ResourceInUseException, - ResourceNotFoundException, - TableAlreadyExistsException, - TableInUseException, - TableNotFoundException, - TransactionCanceledException, - TransactionConflictException, - TransactionInProgressException, -} from "@aws-sdk/client-dynamodb"; -import * as Data from "effect/Data"; - -export type TaggedException = T & { - readonly _tag: T["name"]; -}; - -export type BackupInUseError = TaggedException; -export type BackupNotFoundError = TaggedException; -export type InternalServerError = TaggedException; -export type RequestLimitExceededError = TaggedException; -export type InvalidEndpointError = TaggedException; -export type ProvisionedThroughputExceededError = - TaggedException; -export type ResourceNotFoundError = TaggedException; -export type ItemCollectionSizeLimitExceededError = - TaggedException; -export type ContinuousBackupsUnavailableError = - TaggedException; -export type LimitExceededError = TaggedException; -export type TableInUseError = TaggedException; -export type TableNotFoundError = TaggedException; -export type GlobalTableAlreadyExistsError = - TaggedException; -export type ResourceInUseError = TaggedException; -export type TransactionConflictError = - TaggedException; -export type ExportNotFoundError = TaggedException; -export type GlobalTableNotFoundError = - TaggedException; -export type ImportNotFoundError = TaggedException; -export type DuplicateItemError = TaggedException; -export type IdempotentParameterMismatchError = - TaggedException; -export type TransactionInProgressError = - TaggedException; -export type ExportConflictError = TaggedException; -export type InvalidExportTimeError = - TaggedException; -export type PointInTimeRecoveryUnavailableError = - TaggedException; -export type ImportConflictError = TaggedException; -export type TableAlreadyExistsError = - TaggedException; -export type InvalidRestoreTimeError = - TaggedException; -export type ReplicaAlreadyExistsError = - TaggedException; -export type ReplicaNotFoundError = TaggedException; -export type IndexNotFoundError = TaggedException; -export type ConditionalCheckFailedError = - TaggedException; -export type TransactionCanceledError = - TaggedException; -export type SdkError = TaggedException; -export const SdkError = Data.tagged("SdkError"); diff --git a/packages/client-dynamodb/src/index.ts b/packages/client-dynamodb/src/index.ts deleted file mode 100644 index 318f2dd..0000000 --- a/packages/client-dynamodb/src/index.ts +++ /dev/null @@ -1,4 +0,0 @@ -export * from "./DynamoDBClientInstance"; -export * from "./DynamoDBClientInstanceConfig"; -export * from "./DynamoDBService"; -export * from "./Errors"; diff --git a/packages/client-dynamodb/test/DynamoDB.test.ts b/packages/client-dynamodb/test/DynamoDB.test.ts deleted file mode 100644 index 4e645fb..0000000 --- a/packages/client-dynamodb/test/DynamoDB.test.ts +++ /dev/null @@ -1,169 +0,0 @@ -import { - PutItemCommand, - DynamoDBClient, - PutItemCommandInput, -} from "@aws-sdk/client-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 * as Layer from "effect/Layer"; -import { - BaseDynamoDBServiceLayer, - DefaultDynamoDBClientConfigLayer, - DefaultDynamoDBServiceLayer, - DynamoDBClientInstance, - DynamoDBClientInstanceConfig, - DynamoDBService, - DynamoDBServiceLayer, - SdkError, -} from "../src"; - -import "aws-sdk-client-mock-jest"; - -const dynamodbMock = mockClient(DynamoDBClient); -const { putItem } = Effect.serviceFunctions(DynamoDBService); - -describe("DynamoDBClientImpl", () => { - it("default", async () => { - dynamodbMock.reset().on(PutItemCommand).resolves({}); - - const args: PutItemCommandInput = { - TableName: "test", - Item: { testAttr: { S: "test" } }, - }; - - const program = putItem(args); - - const result = await pipe( - program, - Effect.provide(DefaultDynamoDBServiceLayer), - Effect.runPromiseExit, - ); - - expect(result).toEqual(Exit.succeed({})); - expect(dynamodbMock).toHaveReceivedCommandTimes(PutItemCommand, 1); - expect(dynamodbMock).toHaveReceivedCommandWith(PutItemCommand, args); - }); - - it("configurable", async () => { - dynamodbMock.reset().on(PutItemCommand).resolves({}); - - const args: PutItemCommandInput = { - TableName: "test", - Item: { testAttr: { S: "test" } }, - }; - - const program = putItem(args); - - const DynamoDBClientConfigLayer = Layer.succeed( - DynamoDBClientInstanceConfig, - { region: "eu-central-1" }, - ); - const CustomDynamoDBServiceLayer = DynamoDBServiceLayer.pipe( - Layer.provide(DynamoDBClientConfigLayer), - ); - - const result = await pipe( - program, - Effect.provide(CustomDynamoDBServiceLayer), - Effect.runPromiseExit, - ); - - expect(result).toEqual(Exit.succeed({})); - expect(dynamodbMock).toHaveReceivedCommandTimes(PutItemCommand, 1); - expect(dynamodbMock).toHaveReceivedCommandWith(PutItemCommand, args); - }); - - it("base", async () => { - dynamodbMock.reset().on(PutItemCommand).resolves({}); - - const args: PutItemCommandInput = { - TableName: "test", - Item: { testAttr: { S: "test" } }, - }; - - const program = putItem(args); - - const DynamoDBClientInstanceLayer = Layer.succeed( - DynamoDBClientInstance, - new DynamoDBClient({ region: "eu-central-1" }), - ); - const CustomDynamoDBServiceLayer = BaseDynamoDBServiceLayer.pipe( - Layer.provide(DynamoDBClientInstanceLayer), - ); - - const result = await pipe( - program, - Effect.provide(CustomDynamoDBServiceLayer), - Effect.runPromiseExit, - ); - - expect(result).toEqual(Exit.succeed({})); - expect(dynamodbMock).toHaveReceivedCommandTimes(PutItemCommand, 1); - expect(dynamodbMock).toHaveReceivedCommandWith(PutItemCommand, args); - }); - - it("extended", async () => { - dynamodbMock.reset().on(PutItemCommand).resolves({}); - - const args: PutItemCommandInput = { - TableName: "test", - Item: { testAttr: { S: "test" } }, - }; - - const program = putItem(args); - - const DynamoDBClientInstanceLayer = Layer.effect( - DynamoDBClientInstance, - Effect.map( - DynamoDBClientInstanceConfig, - (config) => new DynamoDBClient({ ...config, region: "eu-central-1" }), - ), - ); - const CustomDynamoDBServiceLayer = BaseDynamoDBServiceLayer.pipe( - Layer.provide(DynamoDBClientInstanceLayer), - Layer.provide(DefaultDynamoDBClientConfigLayer), - ); - - const result = await pipe( - program, - Effect.provide(CustomDynamoDBServiceLayer), - Effect.runPromiseExit, - ); - - expect(result).toEqual(Exit.succeed({})); - expect(dynamodbMock).toHaveReceivedCommandTimes(PutItemCommand, 1); - expect(dynamodbMock).toHaveReceivedCommandWith(PutItemCommand, args); - }); - - it("fail", async () => { - dynamodbMock.reset().on(PutItemCommand).rejects(new Error("test")); - - const args: PutItemCommandInput = { - TableName: "test", - Item: { testAttr: { S: "test" } }, - }; - - const program = putItem(args, { requestTimeout: 1000 }); - - const result = await pipe( - program, - Effect.provide(DefaultDynamoDBServiceLayer), - Effect.runPromiseExit, - ); - - expect(result).toEqual( - Exit.fail( - SdkError({ - ...new Error("test"), - name: "SdkError", - message: "test", - stack: expect.any(String), - }), - ), - ); - expect(dynamodbMock).toHaveReceivedCommandTimes(PutItemCommand, 1); - expect(dynamodbMock).toHaveReceivedCommandWith(PutItemCommand, args); - }); -}); diff --git a/packages/client-ec2/.eslintrc.json b/packages/client-ec2/.eslintrc.json deleted file mode 100644 index c31c44d..0000000 --- a/packages/client-ec2/.eslintrc.json +++ /dev/null @@ -1,126 +0,0 @@ -// ~~ Generated by projen. To modify, edit .projenrc.js and run "npx projen". -{ - "env": { - "jest": true, - "node": true - }, - "root": true, - "plugins": [ - "@typescript-eslint", - "import" - ], - "parser": "@typescript-eslint/parser", - "parserOptions": { - "ecmaVersion": 2018, - "sourceType": "module", - "project": "./tsconfig.dev.json" - }, - "extends": [ - "plugin:import/typescript", - "plugin:prettier/recommended" - ], - "settings": { - "import/parsers": { - "@typescript-eslint/parser": [ - ".ts", - ".tsx" - ] - }, - "import/resolver": { - "node": {}, - "typescript": { - "project": "./tsconfig.dev.json", - "alwaysTryTypes": true - } - } - }, - "ignorePatterns": [ - "*.js", - "*.d.ts", - "node_modules/", - "*.generated.ts", - "coverage" - ], - "rules": { - "@typescript-eslint/no-require-imports": [ - "error" - ], - "import/no-extraneous-dependencies": [ - "error", - { - "devDependencies": [ - "**/test/**", - "**/build-tools/**" - ], - "optionalDependencies": false, - "peerDependencies": true - } - ], - "import/no-unresolved": [ - "error" - ], - "import/order": [ - "warn", - { - "groups": [ - "builtin", - "external" - ], - "alphabetize": { - "order": "asc", - "caseInsensitive": true - } - } - ], - "no-duplicate-imports": [ - "error" - ], - "no-shadow": [ - "off" - ], - "@typescript-eslint/no-shadow": [ - "error" - ], - "key-spacing": [ - "error" - ], - "no-multiple-empty-lines": [ - "error" - ], - "@typescript-eslint/no-floating-promises": [ - "error" - ], - "no-return-await": [ - "off" - ], - "@typescript-eslint/return-await": [ - "error" - ], - "no-trailing-spaces": [ - "error" - ], - "dot-notation": [ - "error" - ], - "no-bitwise": [ - "error" - ], - "@typescript-eslint/member-ordering": [ - "error", - { - "default": [ - "public-static-field", - "public-static-method", - "protected-static-field", - "protected-static-method", - "private-static-field", - "private-static-method", - "field", - "constructor", - "method" - ] - } - ] - }, - "overrides": [] -} diff --git a/packages/client-ec2/.gitattributes b/packages/client-ec2/.gitattributes deleted file mode 100644 index 1c2be5a..0000000 --- a/packages/client-ec2/.gitattributes +++ /dev/null @@ -1,21 +0,0 @@ -# ~~ Generated by projen. To modify, edit .projenrc.js and run "npx projen". - -/./tsconfig.esm.json linguist-generated -/.eslintrc.json linguist-generated -/.gitattributes linguist-generated -/.gitignore linguist-generated -/.npmignore linguist-generated -/.npmrc linguist-generated -/.prettierignore linguist-generated -/.prettierrc.json 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 -/project.json linguist-generated -/tsconfig.dev.json linguist-generated -/tsconfig.json linguist-generated \ No newline at end of file diff --git a/packages/client-ec2/.gitignore b/packages/client-ec2/.gitignore deleted file mode 100644 index e4fdd83..0000000 --- a/packages/client-ec2/.gitignore +++ /dev/null @@ -1,45 +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 -!/.prettierignore -!/.prettierrc.json -!/.npmrc -!/test/ -!/tsconfig.json -!/tsconfig.dev.json -!/src/ -/lib -/dist/ -!/.eslintrc.json -!/tsconfig.esm.json -!/project.json -!/docgen.json -docs/ diff --git a/packages/client-ec2/.npmignore b/packages/client-ec2/.npmignore deleted file mode 100644 index 277d62e..0000000 --- a/packages/client-ec2/.npmignore +++ /dev/null @@ -1,20 +0,0 @@ -# ~~ Generated by projen. To modify, edit .projenrc.js and run "npx projen". -/.projen/ -/.prettierignore -/.prettierrc.json -/test/ -/tsconfig.dev.json -/src/ -!/lib/ -!/lib/**/*.js -!/lib/**/*.d.ts -dist -/tsconfig.json -/.github/ -/.vscode/ -/.idea/ -/.projenrc.js -tsconfig.tsbuildinfo -/.eslintrc.json -/tsconfig.esm.json -/.gitattributes diff --git a/packages/client-ec2/.prettierignore b/packages/client-ec2/.prettierignore deleted file mode 100644 index 46704c7..0000000 --- a/packages/client-ec2/.prettierignore +++ /dev/null @@ -1 +0,0 @@ -# ~~ Generated by projen. To modify, edit .projenrc.js and run "npx projen". diff --git a/packages/client-ec2/.prettierrc.json b/packages/client-ec2/.prettierrc.json deleted file mode 100644 index 84c85a3..0000000 --- a/packages/client-ec2/.prettierrc.json +++ /dev/null @@ -1,3 +0,0 @@ -{ - "overrides": [] -} diff --git a/packages/client-ec2/.projen/deps.json b/packages/client-ec2/.projen/deps.json deleted file mode 100644 index 6690589..0000000 --- a/packages/client-ec2/.projen/deps.json +++ /dev/null @@ -1,82 +0,0 @@ -{ - "dependencies": [ - { - "name": "@types/node", - "version": "^18", - "type": "build" - }, - { - "name": "@typescript-eslint/eslint-plugin", - "version": "^6", - "type": "build" - }, - { - "name": "@typescript-eslint/parser", - "version": "^6", - "type": "build" - }, - { - "name": "aws-sdk-client-mock", - "type": "build" - }, - { - "name": "aws-sdk-client-mock-jest", - "type": "build" - }, - { - "name": "constructs", - "version": "^10.0.0", - "type": "build" - }, - { - "name": "eslint-config-prettier", - "type": "build" - }, - { - "name": "eslint-import-resolver-typescript", - "type": "build" - }, - { - "name": "eslint-plugin-import", - "type": "build" - }, - { - "name": "eslint-plugin-prettier", - "type": "build" - }, - { - "name": "eslint", - "version": "^8", - "type": "build" - }, - { - "name": "prettier", - "type": "build" - }, - { - "name": "projen", - "version": "^0.79.6", - "type": "build" - }, - { - "name": "typescript", - "type": "build" - }, - { - "name": "effect", - "version": ">=2.3.1 <2.5.0", - "type": "peer" - }, - { - "name": "@aws-sdk/client-ec2", - "version": "^3", - "type": "runtime" - }, - { - "name": "@aws-sdk/types", - "version": "^3", - "type": "runtime" - } - ], - "//": "~~ Generated by projen. To modify, edit .projenrc.js and run \"npx projen\"." -} diff --git a/packages/client-ec2/.projen/files.json b/packages/client-ec2/.projen/files.json deleted file mode 100644 index c38792b..0000000 --- a/packages/client-ec2/.projen/files.json +++ /dev/null @@ -1,20 +0,0 @@ -{ - "files": [ - ".eslintrc.json", - ".gitattributes", - ".gitignore", - ".npmignore", - ".prettierignore", - ".prettierrc.json", - ".projen/deps.json", - ".projen/files.json", - ".projen/tasks.json", - "docgen.json", - "LICENSE", - "project.json", - "tsconfig.dev.json", - "tsconfig.esm.json", - "tsconfig.json" - ], - "//": "~~ Generated by projen. To modify, edit .projenrc.js and run \"npx projen\"." -} diff --git a/packages/client-ec2/.projen/tasks.json b/packages/client-ec2/.projen/tasks.json deleted file mode 100644 index 6ecb00a..0000000 --- a/packages/client-ec2/.projen/tasks.json +++ /dev/null @@ -1,113 +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.json ./tsconfig.esm.json" - } - ] - }, - "default": { - "name": "default", - "description": "Synthesize project files" - }, - "eslint": { - "name": "eslint", - "description": "Runs eslint against the codebase", - "steps": [ - { - "exec": "eslint --ext .ts,.tsx --fix --no-error-on-unmatched-pattern $@ src test build-tools", - "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" - }, - "post-compile": { - "name": "post-compile", - "description": "Runs after successful compilation" - }, - "pre-compile": { - "name": "pre-compile", - "description": "Prepare the project for compilation" - }, - "test": { - "name": "test", - "description": "Run tests", - "steps": [ - { - "exec": "vitest run --globals --reporter verbose", - "receiveArgs": true - }, - { - "spawn": "eslint" - } - ] - }, - "test:watch": { - "name": "test:watch", - "description": "Run tests in watch mode", - "steps": [ - { - "exec": "vitest --globals --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/client-ec2/CHANGELOG.md b/packages/client-ec2/CHANGELOG.md deleted file mode 100644 index fbe3050..0000000 --- a/packages/client-ec2/CHANGELOG.md +++ /dev/null @@ -1,7 +0,0 @@ -# @effect-aws/client-ec2 - -## 1.0.0 - -### Major Changes - -- [`e4fe0f9`](https://github.com/floydspace/effect-aws/commit/e4fe0f987cfebb9db05b266a3fb80d06f60a9890) Thanks [@godu](https://github.com/godu)! - implement effectful ec2 client diff --git a/packages/client-ec2/LICENSE b/packages/client-ec2/LICENSE deleted file mode 100644 index 7afce46..0000000 --- a/packages/client-ec2/LICENSE +++ /dev/null @@ -1,19 +0,0 @@ -Copyright (c) 2024 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/client-ec2/README.md b/packages/client-ec2/README.md deleted file mode 100644 index b3fa7dd..0000000 --- a/packages/client-ec2/README.md +++ /dev/null @@ -1 +0,0 @@ -# replace this \ No newline at end of file diff --git a/packages/client-ec2/docgen.json b/packages/client-ec2/docgen.json deleted file mode 100644 index b359fc7..0000000 --- a/packages/client-ec2/docgen.json +++ /dev/null @@ -1,8 +0,0 @@ -{ - "$schema": "../../node_modules/@effect/docgen/schema.json", - "exclude": [ - "src/index.ts", - "src/Errors.ts" - ], - "//": "~~ Generated by projen. To modify, edit .projenrc.js and run \"npx projen\"." -} diff --git a/packages/client-ec2/src/EC2ClientInstance.ts b/packages/client-ec2/src/EC2ClientInstance.ts deleted file mode 100644 index 2d7a02d..0000000 --- a/packages/client-ec2/src/EC2ClientInstance.ts +++ /dev/null @@ -1,45 +0,0 @@ -/** - * @since 1.0.0 - */ -import { EC2Client } from "@aws-sdk/client-ec2"; -import * as Context from "effect/Context"; -import * as Effect from "effect/Effect"; -import * as Layer from "effect/Layer"; -import { - DefaultEC2ClientConfigLayer, - EC2ClientInstanceConfig, -} from "./EC2ClientInstanceConfig"; - -/** - * @since 1.0.0 - * @category tags - */ -export class EC2ClientInstance extends Context.Tag( - "@effect-aws/client-ec2/EC2ClientInstance", -)() {} - -/** - * @since 1.0.0 - * @category constructors - */ -export const makeEC2ClientInstance = Effect.map( - EC2ClientInstanceConfig, - (config) => new EC2Client(config), -); - -/** - * @since 1.0.0 - * @category layers - */ -export const EC2ClientInstanceLayer = Layer.effect( - EC2ClientInstance, - makeEC2ClientInstance, -); - -/** - * @since 1.0.0 - * @category layers - */ -export const DefaultEC2ClientInstanceLayer = EC2ClientInstanceLayer.pipe( - Layer.provide(DefaultEC2ClientConfigLayer), -); diff --git a/packages/client-ec2/src/EC2ClientInstanceConfig.ts b/packages/client-ec2/src/EC2ClientInstanceConfig.ts deleted file mode 100644 index 67de4f4..0000000 --- a/packages/client-ec2/src/EC2ClientInstanceConfig.ts +++ /dev/null @@ -1,55 +0,0 @@ -/** - * @since 1.0.0 - */ -import type { EC2ClientConfig } from "@aws-sdk/client-ec2"; -import * as Context from "effect/Context"; -import * as Effect from "effect/Effect"; -import * as Layer from "effect/Layer"; -import * as Runtime from "effect/Runtime"; - -/** - * @since 1.0.0 - * @category tags - */ -export class EC2ClientInstanceConfig extends Context.Tag( - "@effect-aws/client-ec2/EC2ClientInstanceConfig", -)() {} - -/** - * @since 1.0.0 - * @category constructors - */ -export const makeDefaultEC2ClientInstanceConfig: Effect.Effect = - Effect.gen(function* (_) { - const runtime = yield* _(Effect.runtime()); - const runSync = Runtime.runSync(runtime); - - return { - logger: { - info(m) { - Effect.logInfo(m).pipe(runSync); - }, - warn(m) { - Effect.logWarning(m).pipe(runSync); - }, - error(m) { - Effect.logError(m).pipe(runSync); - }, - debug(m) { - Effect.logDebug(m).pipe(runSync); - }, - trace(m) { - Effect.logTrace(m).pipe(runSync); - }, - }, - }; - }); - -/** - * @since 1.0.0 - * @category layers - */ -export const DefaultEC2ClientConfigLayer = Layer.effect( - EC2ClientInstanceConfig, - makeDefaultEC2ClientInstanceConfig, -); diff --git a/packages/client-ec2/src/EC2Service.ts b/packages/client-ec2/src/EC2Service.ts deleted file mode 100644 index d2d8d55..0000000 --- a/packages/client-ec2/src/EC2Service.ts +++ /dev/null @@ -1,9008 +0,0 @@ -/** - * @since 1.0.0 - */ -import { - EC2ServiceException, - AcceptAddressTransferCommand, - type AcceptAddressTransferCommandInput, - type AcceptAddressTransferCommandOutput, - AcceptReservedInstancesExchangeQuoteCommand, - type AcceptReservedInstancesExchangeQuoteCommandInput, - type AcceptReservedInstancesExchangeQuoteCommandOutput, - AcceptTransitGatewayMulticastDomainAssociationsCommand, - type AcceptTransitGatewayMulticastDomainAssociationsCommandInput, - type AcceptTransitGatewayMulticastDomainAssociationsCommandOutput, - AcceptTransitGatewayPeeringAttachmentCommand, - type AcceptTransitGatewayPeeringAttachmentCommandInput, - type AcceptTransitGatewayPeeringAttachmentCommandOutput, - AcceptTransitGatewayVpcAttachmentCommand, - type AcceptTransitGatewayVpcAttachmentCommandInput, - type AcceptTransitGatewayVpcAttachmentCommandOutput, - AcceptVpcEndpointConnectionsCommand, - type AcceptVpcEndpointConnectionsCommandInput, - type AcceptVpcEndpointConnectionsCommandOutput, - AcceptVpcPeeringConnectionCommand, - type AcceptVpcPeeringConnectionCommandInput, - type AcceptVpcPeeringConnectionCommandOutput, - AdvertiseByoipCidrCommand, - type AdvertiseByoipCidrCommandInput, - type AdvertiseByoipCidrCommandOutput, - AllocateAddressCommand, - type AllocateAddressCommandInput, - type AllocateAddressCommandOutput, - AllocateHostsCommand, - type AllocateHostsCommandInput, - type AllocateHostsCommandOutput, - AllocateIpamPoolCidrCommand, - type AllocateIpamPoolCidrCommandInput, - type AllocateIpamPoolCidrCommandOutput, - ApplySecurityGroupsToClientVpnTargetNetworkCommand, - type ApplySecurityGroupsToClientVpnTargetNetworkCommandInput, - type ApplySecurityGroupsToClientVpnTargetNetworkCommandOutput, - AssignIpv6AddressesCommand, - type AssignIpv6AddressesCommandInput, - type AssignIpv6AddressesCommandOutput, - AssignPrivateIpAddressesCommand, - type AssignPrivateIpAddressesCommandInput, - type AssignPrivateIpAddressesCommandOutput, - AssignPrivateNatGatewayAddressCommand, - type AssignPrivateNatGatewayAddressCommandInput, - type AssignPrivateNatGatewayAddressCommandOutput, - AssociateAddressCommand, - type AssociateAddressCommandInput, - type AssociateAddressCommandOutput, - AssociateClientVpnTargetNetworkCommand, - type AssociateClientVpnTargetNetworkCommandInput, - type AssociateClientVpnTargetNetworkCommandOutput, - AssociateDhcpOptionsCommand, - type AssociateDhcpOptionsCommandInput, - type AssociateDhcpOptionsCommandOutput, - AssociateEnclaveCertificateIamRoleCommand, - type AssociateEnclaveCertificateIamRoleCommandInput, - type AssociateEnclaveCertificateIamRoleCommandOutput, - AssociateIamInstanceProfileCommand, - type AssociateIamInstanceProfileCommandInput, - type AssociateIamInstanceProfileCommandOutput, - AssociateInstanceEventWindowCommand, - type AssociateInstanceEventWindowCommandInput, - type AssociateInstanceEventWindowCommandOutput, - AssociateIpamByoasnCommand, - type AssociateIpamByoasnCommandInput, - type AssociateIpamByoasnCommandOutput, - AssociateIpamResourceDiscoveryCommand, - type AssociateIpamResourceDiscoveryCommandInput, - type AssociateIpamResourceDiscoveryCommandOutput, - AssociateNatGatewayAddressCommand, - type AssociateNatGatewayAddressCommandInput, - type AssociateNatGatewayAddressCommandOutput, - AssociateRouteTableCommand, - type AssociateRouteTableCommandInput, - type AssociateRouteTableCommandOutput, - AssociateSubnetCidrBlockCommand, - type AssociateSubnetCidrBlockCommandInput, - type AssociateSubnetCidrBlockCommandOutput, - AssociateTransitGatewayMulticastDomainCommand, - type AssociateTransitGatewayMulticastDomainCommandInput, - type AssociateTransitGatewayMulticastDomainCommandOutput, - AssociateTransitGatewayPolicyTableCommand, - type AssociateTransitGatewayPolicyTableCommandInput, - type AssociateTransitGatewayPolicyTableCommandOutput, - AssociateTransitGatewayRouteTableCommand, - type AssociateTransitGatewayRouteTableCommandInput, - type AssociateTransitGatewayRouteTableCommandOutput, - AssociateTrunkInterfaceCommand, - type AssociateTrunkInterfaceCommandInput, - type AssociateTrunkInterfaceCommandOutput, - AssociateVpcCidrBlockCommand, - type AssociateVpcCidrBlockCommandInput, - type AssociateVpcCidrBlockCommandOutput, - AttachClassicLinkVpcCommand, - type AttachClassicLinkVpcCommandInput, - type AttachClassicLinkVpcCommandOutput, - AttachInternetGatewayCommand, - type AttachInternetGatewayCommandInput, - type AttachInternetGatewayCommandOutput, - AttachNetworkInterfaceCommand, - type AttachNetworkInterfaceCommandInput, - type AttachNetworkInterfaceCommandOutput, - AttachVerifiedAccessTrustProviderCommand, - type AttachVerifiedAccessTrustProviderCommandInput, - type AttachVerifiedAccessTrustProviderCommandOutput, - AttachVolumeCommand, - type AttachVolumeCommandInput, - type AttachVolumeCommandOutput, - AttachVpnGatewayCommand, - type AttachVpnGatewayCommandInput, - type AttachVpnGatewayCommandOutput, - AuthorizeClientVpnIngressCommand, - type AuthorizeClientVpnIngressCommandInput, - type AuthorizeClientVpnIngressCommandOutput, - AuthorizeSecurityGroupEgressCommand, - type AuthorizeSecurityGroupEgressCommandInput, - type AuthorizeSecurityGroupEgressCommandOutput, - AuthorizeSecurityGroupIngressCommand, - type AuthorizeSecurityGroupIngressCommandInput, - type AuthorizeSecurityGroupIngressCommandOutput, - BundleInstanceCommand, - type BundleInstanceCommandInput, - type BundleInstanceCommandOutput, - CancelBundleTaskCommand, - type CancelBundleTaskCommandInput, - type CancelBundleTaskCommandOutput, - CancelCapacityReservationCommand, - type CancelCapacityReservationCommandInput, - type CancelCapacityReservationCommandOutput, - CancelCapacityReservationFleetsCommand, - type CancelCapacityReservationFleetsCommandInput, - type CancelCapacityReservationFleetsCommandOutput, - CancelConversionTaskCommand, - type CancelConversionTaskCommandInput, - type CancelConversionTaskCommandOutput, - CancelExportTaskCommand, - type CancelExportTaskCommandInput, - type CancelExportTaskCommandOutput, - CancelImageLaunchPermissionCommand, - type CancelImageLaunchPermissionCommandInput, - type CancelImageLaunchPermissionCommandOutput, - CancelImportTaskCommand, - type CancelImportTaskCommandInput, - type CancelImportTaskCommandOutput, - CancelReservedInstancesListingCommand, - type CancelReservedInstancesListingCommandInput, - type CancelReservedInstancesListingCommandOutput, - CancelSpotFleetRequestsCommand, - type CancelSpotFleetRequestsCommandInput, - type CancelSpotFleetRequestsCommandOutput, - CancelSpotInstanceRequestsCommand, - type CancelSpotInstanceRequestsCommandInput, - type CancelSpotInstanceRequestsCommandOutput, - ConfirmProductInstanceCommand, - type ConfirmProductInstanceCommandInput, - type ConfirmProductInstanceCommandOutput, - CopyFpgaImageCommand, - type CopyFpgaImageCommandInput, - type CopyFpgaImageCommandOutput, - CopyImageCommand, - type CopyImageCommandInput, - type CopyImageCommandOutput, - CopySnapshotCommand, - type CopySnapshotCommandInput, - type CopySnapshotCommandOutput, - CreateCapacityReservationCommand, - type CreateCapacityReservationCommandInput, - type CreateCapacityReservationCommandOutput, - CreateCapacityReservationFleetCommand, - type CreateCapacityReservationFleetCommandInput, - type CreateCapacityReservationFleetCommandOutput, - CreateCarrierGatewayCommand, - type CreateCarrierGatewayCommandInput, - type CreateCarrierGatewayCommandOutput, - CreateClientVpnEndpointCommand, - type CreateClientVpnEndpointCommandInput, - type CreateClientVpnEndpointCommandOutput, - CreateClientVpnRouteCommand, - type CreateClientVpnRouteCommandInput, - type CreateClientVpnRouteCommandOutput, - CreateCoipCidrCommand, - type CreateCoipCidrCommandInput, - type CreateCoipCidrCommandOutput, - CreateCoipPoolCommand, - type CreateCoipPoolCommandInput, - type CreateCoipPoolCommandOutput, - CreateCustomerGatewayCommand, - type CreateCustomerGatewayCommandInput, - type CreateCustomerGatewayCommandOutput, - CreateDefaultSubnetCommand, - type CreateDefaultSubnetCommandInput, - type CreateDefaultSubnetCommandOutput, - CreateDefaultVpcCommand, - type CreateDefaultVpcCommandInput, - type CreateDefaultVpcCommandOutput, - CreateDhcpOptionsCommand, - type CreateDhcpOptionsCommandInput, - type CreateDhcpOptionsCommandOutput, - CreateEgressOnlyInternetGatewayCommand, - type CreateEgressOnlyInternetGatewayCommandInput, - type CreateEgressOnlyInternetGatewayCommandOutput, - CreateFleetCommand, - type CreateFleetCommandInput, - type CreateFleetCommandOutput, - CreateFlowLogsCommand, - type CreateFlowLogsCommandInput, - type CreateFlowLogsCommandOutput, - CreateFpgaImageCommand, - type CreateFpgaImageCommandInput, - type CreateFpgaImageCommandOutput, - CreateImageCommand, - type CreateImageCommandInput, - type CreateImageCommandOutput, - CreateInstanceConnectEndpointCommand, - type CreateInstanceConnectEndpointCommandInput, - type CreateInstanceConnectEndpointCommandOutput, - CreateInstanceEventWindowCommand, - type CreateInstanceEventWindowCommandInput, - type CreateInstanceEventWindowCommandOutput, - CreateInstanceExportTaskCommand, - type CreateInstanceExportTaskCommandInput, - type CreateInstanceExportTaskCommandOutput, - CreateInternetGatewayCommand, - type CreateInternetGatewayCommandInput, - type CreateInternetGatewayCommandOutput, - CreateIpamCommand, - type CreateIpamCommandInput, - type CreateIpamCommandOutput, - CreateIpamPoolCommand, - type CreateIpamPoolCommandInput, - type CreateIpamPoolCommandOutput, - CreateIpamResourceDiscoveryCommand, - type CreateIpamResourceDiscoveryCommandInput, - type CreateIpamResourceDiscoveryCommandOutput, - CreateIpamScopeCommand, - type CreateIpamScopeCommandInput, - type CreateIpamScopeCommandOutput, - CreateKeyPairCommand, - type CreateKeyPairCommandInput, - type CreateKeyPairCommandOutput, - CreateLaunchTemplateCommand, - type CreateLaunchTemplateCommandInput, - type CreateLaunchTemplateCommandOutput, - CreateLaunchTemplateVersionCommand, - type CreateLaunchTemplateVersionCommandInput, - type CreateLaunchTemplateVersionCommandOutput, - CreateLocalGatewayRouteCommand, - type CreateLocalGatewayRouteCommandInput, - type CreateLocalGatewayRouteCommandOutput, - CreateLocalGatewayRouteTableCommand, - type CreateLocalGatewayRouteTableCommandInput, - type CreateLocalGatewayRouteTableCommandOutput, - CreateLocalGatewayRouteTableVirtualInterfaceGroupAssociationCommand, - type CreateLocalGatewayRouteTableVirtualInterfaceGroupAssociationCommandInput, - type CreateLocalGatewayRouteTableVirtualInterfaceGroupAssociationCommandOutput, - CreateLocalGatewayRouteTableVpcAssociationCommand, - type CreateLocalGatewayRouteTableVpcAssociationCommandInput, - type CreateLocalGatewayRouteTableVpcAssociationCommandOutput, - CreateManagedPrefixListCommand, - type CreateManagedPrefixListCommandInput, - type CreateManagedPrefixListCommandOutput, - CreateNatGatewayCommand, - type CreateNatGatewayCommandInput, - type CreateNatGatewayCommandOutput, - CreateNetworkAclCommand, - type CreateNetworkAclCommandInput, - type CreateNetworkAclCommandOutput, - CreateNetworkAclEntryCommand, - type CreateNetworkAclEntryCommandInput, - type CreateNetworkAclEntryCommandOutput, - CreateNetworkInsightsAccessScopeCommand, - type CreateNetworkInsightsAccessScopeCommandInput, - type CreateNetworkInsightsAccessScopeCommandOutput, - CreateNetworkInsightsPathCommand, - type CreateNetworkInsightsPathCommandInput, - type CreateNetworkInsightsPathCommandOutput, - CreateNetworkInterfaceCommand, - type CreateNetworkInterfaceCommandInput, - type CreateNetworkInterfaceCommandOutput, - CreateNetworkInterfacePermissionCommand, - type CreateNetworkInterfacePermissionCommandInput, - type CreateNetworkInterfacePermissionCommandOutput, - CreatePlacementGroupCommand, - type CreatePlacementGroupCommandInput, - type CreatePlacementGroupCommandOutput, - CreatePublicIpv4PoolCommand, - type CreatePublicIpv4PoolCommandInput, - type CreatePublicIpv4PoolCommandOutput, - CreateReplaceRootVolumeTaskCommand, - type CreateReplaceRootVolumeTaskCommandInput, - type CreateReplaceRootVolumeTaskCommandOutput, - CreateReservedInstancesListingCommand, - type CreateReservedInstancesListingCommandInput, - type CreateReservedInstancesListingCommandOutput, - CreateRestoreImageTaskCommand, - type CreateRestoreImageTaskCommandInput, - type CreateRestoreImageTaskCommandOutput, - CreateRouteCommand, - type CreateRouteCommandInput, - type CreateRouteCommandOutput, - CreateRouteTableCommand, - type CreateRouteTableCommandInput, - type CreateRouteTableCommandOutput, - CreateSecurityGroupCommand, - type CreateSecurityGroupCommandInput, - type CreateSecurityGroupCommandOutput, - CreateSnapshotCommand, - type CreateSnapshotCommandInput, - type CreateSnapshotCommandOutput, - CreateSnapshotsCommand, - type CreateSnapshotsCommandInput, - type CreateSnapshotsCommandOutput, - CreateSpotDatafeedSubscriptionCommand, - type CreateSpotDatafeedSubscriptionCommandInput, - type CreateSpotDatafeedSubscriptionCommandOutput, - CreateStoreImageTaskCommand, - type CreateStoreImageTaskCommandInput, - type CreateStoreImageTaskCommandOutput, - CreateSubnetCommand, - type CreateSubnetCommandInput, - type CreateSubnetCommandOutput, - CreateSubnetCidrReservationCommand, - type CreateSubnetCidrReservationCommandInput, - type CreateSubnetCidrReservationCommandOutput, - CreateTagsCommand, - type CreateTagsCommandInput, - type CreateTagsCommandOutput, - CreateTrafficMirrorFilterCommand, - type CreateTrafficMirrorFilterCommandInput, - type CreateTrafficMirrorFilterCommandOutput, - CreateTrafficMirrorFilterRuleCommand, - type CreateTrafficMirrorFilterRuleCommandInput, - type CreateTrafficMirrorFilterRuleCommandOutput, - CreateTrafficMirrorSessionCommand, - type CreateTrafficMirrorSessionCommandInput, - type CreateTrafficMirrorSessionCommandOutput, - CreateTrafficMirrorTargetCommand, - type CreateTrafficMirrorTargetCommandInput, - type CreateTrafficMirrorTargetCommandOutput, - CreateTransitGatewayCommand, - type CreateTransitGatewayCommandInput, - type CreateTransitGatewayCommandOutput, - CreateTransitGatewayConnectCommand, - type CreateTransitGatewayConnectCommandInput, - type CreateTransitGatewayConnectCommandOutput, - CreateTransitGatewayConnectPeerCommand, - type CreateTransitGatewayConnectPeerCommandInput, - type CreateTransitGatewayConnectPeerCommandOutput, - CreateTransitGatewayMulticastDomainCommand, - type CreateTransitGatewayMulticastDomainCommandInput, - type CreateTransitGatewayMulticastDomainCommandOutput, - CreateTransitGatewayPeeringAttachmentCommand, - type CreateTransitGatewayPeeringAttachmentCommandInput, - type CreateTransitGatewayPeeringAttachmentCommandOutput, - CreateTransitGatewayPolicyTableCommand, - type CreateTransitGatewayPolicyTableCommandInput, - type CreateTransitGatewayPolicyTableCommandOutput, - CreateTransitGatewayPrefixListReferenceCommand, - type CreateTransitGatewayPrefixListReferenceCommandInput, - type CreateTransitGatewayPrefixListReferenceCommandOutput, - CreateTransitGatewayRouteCommand, - type CreateTransitGatewayRouteCommandInput, - type CreateTransitGatewayRouteCommandOutput, - CreateTransitGatewayRouteTableCommand, - type CreateTransitGatewayRouteTableCommandInput, - type CreateTransitGatewayRouteTableCommandOutput, - CreateTransitGatewayRouteTableAnnouncementCommand, - type CreateTransitGatewayRouteTableAnnouncementCommandInput, - type CreateTransitGatewayRouteTableAnnouncementCommandOutput, - CreateTransitGatewayVpcAttachmentCommand, - type CreateTransitGatewayVpcAttachmentCommandInput, - type CreateTransitGatewayVpcAttachmentCommandOutput, - CreateVerifiedAccessEndpointCommand, - type CreateVerifiedAccessEndpointCommandInput, - type CreateVerifiedAccessEndpointCommandOutput, - CreateVerifiedAccessGroupCommand, - type CreateVerifiedAccessGroupCommandInput, - type CreateVerifiedAccessGroupCommandOutput, - CreateVerifiedAccessInstanceCommand, - type CreateVerifiedAccessInstanceCommandInput, - type CreateVerifiedAccessInstanceCommandOutput, - CreateVerifiedAccessTrustProviderCommand, - type CreateVerifiedAccessTrustProviderCommandInput, - type CreateVerifiedAccessTrustProviderCommandOutput, - CreateVolumeCommand, - type CreateVolumeCommandInput, - type CreateVolumeCommandOutput, - CreateVpcCommand, - type CreateVpcCommandInput, - type CreateVpcCommandOutput, - CreateVpcEndpointCommand, - type CreateVpcEndpointCommandInput, - type CreateVpcEndpointCommandOutput, - CreateVpcEndpointConnectionNotificationCommand, - type CreateVpcEndpointConnectionNotificationCommandInput, - type CreateVpcEndpointConnectionNotificationCommandOutput, - CreateVpcEndpointServiceConfigurationCommand, - type CreateVpcEndpointServiceConfigurationCommandInput, - type CreateVpcEndpointServiceConfigurationCommandOutput, - CreateVpcPeeringConnectionCommand, - type CreateVpcPeeringConnectionCommandInput, - type CreateVpcPeeringConnectionCommandOutput, - CreateVpnConnectionCommand, - type CreateVpnConnectionCommandInput, - type CreateVpnConnectionCommandOutput, - CreateVpnConnectionRouteCommand, - type CreateVpnConnectionRouteCommandInput, - type CreateVpnConnectionRouteCommandOutput, - CreateVpnGatewayCommand, - type CreateVpnGatewayCommandInput, - type CreateVpnGatewayCommandOutput, - DeleteCarrierGatewayCommand, - type DeleteCarrierGatewayCommandInput, - type DeleteCarrierGatewayCommandOutput, - DeleteClientVpnEndpointCommand, - type DeleteClientVpnEndpointCommandInput, - type DeleteClientVpnEndpointCommandOutput, - DeleteClientVpnRouteCommand, - type DeleteClientVpnRouteCommandInput, - type DeleteClientVpnRouteCommandOutput, - DeleteCoipCidrCommand, - type DeleteCoipCidrCommandInput, - type DeleteCoipCidrCommandOutput, - DeleteCoipPoolCommand, - type DeleteCoipPoolCommandInput, - type DeleteCoipPoolCommandOutput, - DeleteCustomerGatewayCommand, - type DeleteCustomerGatewayCommandInput, - type DeleteCustomerGatewayCommandOutput, - DeleteDhcpOptionsCommand, - type DeleteDhcpOptionsCommandInput, - type DeleteDhcpOptionsCommandOutput, - DeleteEgressOnlyInternetGatewayCommand, - type DeleteEgressOnlyInternetGatewayCommandInput, - type DeleteEgressOnlyInternetGatewayCommandOutput, - DeleteFleetsCommand, - type DeleteFleetsCommandInput, - type DeleteFleetsCommandOutput, - DeleteFlowLogsCommand, - type DeleteFlowLogsCommandInput, - type DeleteFlowLogsCommandOutput, - DeleteFpgaImageCommand, - type DeleteFpgaImageCommandInput, - type DeleteFpgaImageCommandOutput, - DeleteInstanceConnectEndpointCommand, - type DeleteInstanceConnectEndpointCommandInput, - type DeleteInstanceConnectEndpointCommandOutput, - DeleteInstanceEventWindowCommand, - type DeleteInstanceEventWindowCommandInput, - type DeleteInstanceEventWindowCommandOutput, - DeleteInternetGatewayCommand, - type DeleteInternetGatewayCommandInput, - type DeleteInternetGatewayCommandOutput, - DeleteIpamCommand, - type DeleteIpamCommandInput, - type DeleteIpamCommandOutput, - DeleteIpamPoolCommand, - type DeleteIpamPoolCommandInput, - type DeleteIpamPoolCommandOutput, - DeleteIpamResourceDiscoveryCommand, - type DeleteIpamResourceDiscoveryCommandInput, - type DeleteIpamResourceDiscoveryCommandOutput, - DeleteIpamScopeCommand, - type DeleteIpamScopeCommandInput, - type DeleteIpamScopeCommandOutput, - DeleteKeyPairCommand, - type DeleteKeyPairCommandInput, - type DeleteKeyPairCommandOutput, - DeleteLaunchTemplateCommand, - type DeleteLaunchTemplateCommandInput, - type DeleteLaunchTemplateCommandOutput, - DeleteLaunchTemplateVersionsCommand, - type DeleteLaunchTemplateVersionsCommandInput, - type DeleteLaunchTemplateVersionsCommandOutput, - DeleteLocalGatewayRouteCommand, - type DeleteLocalGatewayRouteCommandInput, - type DeleteLocalGatewayRouteCommandOutput, - DeleteLocalGatewayRouteTableCommand, - type DeleteLocalGatewayRouteTableCommandInput, - type DeleteLocalGatewayRouteTableCommandOutput, - DeleteLocalGatewayRouteTableVirtualInterfaceGroupAssociationCommand, - type DeleteLocalGatewayRouteTableVirtualInterfaceGroupAssociationCommandInput, - type DeleteLocalGatewayRouteTableVirtualInterfaceGroupAssociationCommandOutput, - DeleteLocalGatewayRouteTableVpcAssociationCommand, - type DeleteLocalGatewayRouteTableVpcAssociationCommandInput, - type DeleteLocalGatewayRouteTableVpcAssociationCommandOutput, - DeleteManagedPrefixListCommand, - type DeleteManagedPrefixListCommandInput, - type DeleteManagedPrefixListCommandOutput, - DeleteNatGatewayCommand, - type DeleteNatGatewayCommandInput, - type DeleteNatGatewayCommandOutput, - DeleteNetworkAclCommand, - type DeleteNetworkAclCommandInput, - type DeleteNetworkAclCommandOutput, - DeleteNetworkAclEntryCommand, - type DeleteNetworkAclEntryCommandInput, - type DeleteNetworkAclEntryCommandOutput, - DeleteNetworkInsightsAccessScopeCommand, - type DeleteNetworkInsightsAccessScopeCommandInput, - type DeleteNetworkInsightsAccessScopeCommandOutput, - DeleteNetworkInsightsAccessScopeAnalysisCommand, - type DeleteNetworkInsightsAccessScopeAnalysisCommandInput, - type DeleteNetworkInsightsAccessScopeAnalysisCommandOutput, - DeleteNetworkInsightsAnalysisCommand, - type DeleteNetworkInsightsAnalysisCommandInput, - type DeleteNetworkInsightsAnalysisCommandOutput, - DeleteNetworkInsightsPathCommand, - type DeleteNetworkInsightsPathCommandInput, - type DeleteNetworkInsightsPathCommandOutput, - DeleteNetworkInterfaceCommand, - type DeleteNetworkInterfaceCommandInput, - type DeleteNetworkInterfaceCommandOutput, - DeleteNetworkInterfacePermissionCommand, - type DeleteNetworkInterfacePermissionCommandInput, - type DeleteNetworkInterfacePermissionCommandOutput, - DeletePlacementGroupCommand, - type DeletePlacementGroupCommandInput, - type DeletePlacementGroupCommandOutput, - DeletePublicIpv4PoolCommand, - type DeletePublicIpv4PoolCommandInput, - type DeletePublicIpv4PoolCommandOutput, - DeleteQueuedReservedInstancesCommand, - type DeleteQueuedReservedInstancesCommandInput, - type DeleteQueuedReservedInstancesCommandOutput, - DeleteRouteCommand, - type DeleteRouteCommandInput, - type DeleteRouteCommandOutput, - DeleteRouteTableCommand, - type DeleteRouteTableCommandInput, - type DeleteRouteTableCommandOutput, - DeleteSecurityGroupCommand, - type DeleteSecurityGroupCommandInput, - type DeleteSecurityGroupCommandOutput, - DeleteSnapshotCommand, - type DeleteSnapshotCommandInput, - type DeleteSnapshotCommandOutput, - DeleteSpotDatafeedSubscriptionCommand, - type DeleteSpotDatafeedSubscriptionCommandInput, - type DeleteSpotDatafeedSubscriptionCommandOutput, - DeleteSubnetCommand, - type DeleteSubnetCommandInput, - type DeleteSubnetCommandOutput, - DeleteSubnetCidrReservationCommand, - type DeleteSubnetCidrReservationCommandInput, - type DeleteSubnetCidrReservationCommandOutput, - DeleteTagsCommand, - type DeleteTagsCommandInput, - type DeleteTagsCommandOutput, - DeleteTrafficMirrorFilterCommand, - type DeleteTrafficMirrorFilterCommandInput, - type DeleteTrafficMirrorFilterCommandOutput, - DeleteTrafficMirrorFilterRuleCommand, - type DeleteTrafficMirrorFilterRuleCommandInput, - type DeleteTrafficMirrorFilterRuleCommandOutput, - DeleteTrafficMirrorSessionCommand, - type DeleteTrafficMirrorSessionCommandInput, - type DeleteTrafficMirrorSessionCommandOutput, - DeleteTrafficMirrorTargetCommand, - type DeleteTrafficMirrorTargetCommandInput, - type DeleteTrafficMirrorTargetCommandOutput, - DeleteTransitGatewayCommand, - type DeleteTransitGatewayCommandInput, - type DeleteTransitGatewayCommandOutput, - DeleteTransitGatewayConnectCommand, - type DeleteTransitGatewayConnectCommandInput, - type DeleteTransitGatewayConnectCommandOutput, - DeleteTransitGatewayConnectPeerCommand, - type DeleteTransitGatewayConnectPeerCommandInput, - type DeleteTransitGatewayConnectPeerCommandOutput, - DeleteTransitGatewayMulticastDomainCommand, - type DeleteTransitGatewayMulticastDomainCommandInput, - type DeleteTransitGatewayMulticastDomainCommandOutput, - DeleteTransitGatewayPeeringAttachmentCommand, - type DeleteTransitGatewayPeeringAttachmentCommandInput, - type DeleteTransitGatewayPeeringAttachmentCommandOutput, - DeleteTransitGatewayPolicyTableCommand, - type DeleteTransitGatewayPolicyTableCommandInput, - type DeleteTransitGatewayPolicyTableCommandOutput, - DeleteTransitGatewayPrefixListReferenceCommand, - type DeleteTransitGatewayPrefixListReferenceCommandInput, - type DeleteTransitGatewayPrefixListReferenceCommandOutput, - DeleteTransitGatewayRouteCommand, - type DeleteTransitGatewayRouteCommandInput, - type DeleteTransitGatewayRouteCommandOutput, - DeleteTransitGatewayRouteTableCommand, - type DeleteTransitGatewayRouteTableCommandInput, - type DeleteTransitGatewayRouteTableCommandOutput, - DeleteTransitGatewayRouteTableAnnouncementCommand, - type DeleteTransitGatewayRouteTableAnnouncementCommandInput, - type DeleteTransitGatewayRouteTableAnnouncementCommandOutput, - DeleteTransitGatewayVpcAttachmentCommand, - type DeleteTransitGatewayVpcAttachmentCommandInput, - type DeleteTransitGatewayVpcAttachmentCommandOutput, - DeleteVerifiedAccessEndpointCommand, - type DeleteVerifiedAccessEndpointCommandInput, - type DeleteVerifiedAccessEndpointCommandOutput, - DeleteVerifiedAccessGroupCommand, - type DeleteVerifiedAccessGroupCommandInput, - type DeleteVerifiedAccessGroupCommandOutput, - DeleteVerifiedAccessInstanceCommand, - type DeleteVerifiedAccessInstanceCommandInput, - type DeleteVerifiedAccessInstanceCommandOutput, - DeleteVerifiedAccessTrustProviderCommand, - type DeleteVerifiedAccessTrustProviderCommandInput, - type DeleteVerifiedAccessTrustProviderCommandOutput, - DeleteVolumeCommand, - type DeleteVolumeCommandInput, - type DeleteVolumeCommandOutput, - DeleteVpcCommand, - type DeleteVpcCommandInput, - type DeleteVpcCommandOutput, - DeleteVpcEndpointConnectionNotificationsCommand, - type DeleteVpcEndpointConnectionNotificationsCommandInput, - type DeleteVpcEndpointConnectionNotificationsCommandOutput, - DeleteVpcEndpointsCommand, - type DeleteVpcEndpointsCommandInput, - type DeleteVpcEndpointsCommandOutput, - DeleteVpcEndpointServiceConfigurationsCommand, - type DeleteVpcEndpointServiceConfigurationsCommandInput, - type DeleteVpcEndpointServiceConfigurationsCommandOutput, - DeleteVpcPeeringConnectionCommand, - type DeleteVpcPeeringConnectionCommandInput, - type DeleteVpcPeeringConnectionCommandOutput, - DeleteVpnConnectionCommand, - type DeleteVpnConnectionCommandInput, - type DeleteVpnConnectionCommandOutput, - DeleteVpnConnectionRouteCommand, - type DeleteVpnConnectionRouteCommandInput, - type DeleteVpnConnectionRouteCommandOutput, - DeleteVpnGatewayCommand, - type DeleteVpnGatewayCommandInput, - type DeleteVpnGatewayCommandOutput, - DeprovisionByoipCidrCommand, - type DeprovisionByoipCidrCommandInput, - type DeprovisionByoipCidrCommandOutput, - DeprovisionIpamByoasnCommand, - type DeprovisionIpamByoasnCommandInput, - type DeprovisionIpamByoasnCommandOutput, - DeprovisionIpamPoolCidrCommand, - type DeprovisionIpamPoolCidrCommandInput, - type DeprovisionIpamPoolCidrCommandOutput, - DeprovisionPublicIpv4PoolCidrCommand, - type DeprovisionPublicIpv4PoolCidrCommandInput, - type DeprovisionPublicIpv4PoolCidrCommandOutput, - DeregisterImageCommand, - type DeregisterImageCommandInput, - type DeregisterImageCommandOutput, - DeregisterInstanceEventNotificationAttributesCommand, - type DeregisterInstanceEventNotificationAttributesCommandInput, - type DeregisterInstanceEventNotificationAttributesCommandOutput, - DeregisterTransitGatewayMulticastGroupMembersCommand, - type DeregisterTransitGatewayMulticastGroupMembersCommandInput, - type DeregisterTransitGatewayMulticastGroupMembersCommandOutput, - DeregisterTransitGatewayMulticastGroupSourcesCommand, - type DeregisterTransitGatewayMulticastGroupSourcesCommandInput, - type DeregisterTransitGatewayMulticastGroupSourcesCommandOutput, - DescribeAccountAttributesCommand, - type DescribeAccountAttributesCommandInput, - type DescribeAccountAttributesCommandOutput, - DescribeAddressesCommand, - type DescribeAddressesCommandInput, - type DescribeAddressesCommandOutput, - DescribeAddressesAttributeCommand, - type DescribeAddressesAttributeCommandInput, - type DescribeAddressesAttributeCommandOutput, - DescribeAddressTransfersCommand, - type DescribeAddressTransfersCommandInput, - type DescribeAddressTransfersCommandOutput, - DescribeAggregateIdFormatCommand, - type DescribeAggregateIdFormatCommandInput, - type DescribeAggregateIdFormatCommandOutput, - DescribeAvailabilityZonesCommand, - type DescribeAvailabilityZonesCommandInput, - type DescribeAvailabilityZonesCommandOutput, - DescribeAwsNetworkPerformanceMetricSubscriptionsCommand, - type DescribeAwsNetworkPerformanceMetricSubscriptionsCommandInput, - type DescribeAwsNetworkPerformanceMetricSubscriptionsCommandOutput, - DescribeBundleTasksCommand, - type DescribeBundleTasksCommandInput, - type DescribeBundleTasksCommandOutput, - DescribeByoipCidrsCommand, - type DescribeByoipCidrsCommandInput, - type DescribeByoipCidrsCommandOutput, - DescribeCapacityBlockOfferingsCommand, - type DescribeCapacityBlockOfferingsCommandInput, - type DescribeCapacityBlockOfferingsCommandOutput, - DescribeCapacityReservationFleetsCommand, - type DescribeCapacityReservationFleetsCommandInput, - type DescribeCapacityReservationFleetsCommandOutput, - DescribeCapacityReservationsCommand, - type DescribeCapacityReservationsCommandInput, - type DescribeCapacityReservationsCommandOutput, - DescribeCarrierGatewaysCommand, - type DescribeCarrierGatewaysCommandInput, - type DescribeCarrierGatewaysCommandOutput, - DescribeClassicLinkInstancesCommand, - type DescribeClassicLinkInstancesCommandInput, - type DescribeClassicLinkInstancesCommandOutput, - DescribeClientVpnAuthorizationRulesCommand, - type DescribeClientVpnAuthorizationRulesCommandInput, - type DescribeClientVpnAuthorizationRulesCommandOutput, - DescribeClientVpnConnectionsCommand, - type DescribeClientVpnConnectionsCommandInput, - type DescribeClientVpnConnectionsCommandOutput, - DescribeClientVpnEndpointsCommand, - type DescribeClientVpnEndpointsCommandInput, - type DescribeClientVpnEndpointsCommandOutput, - DescribeClientVpnRoutesCommand, - type DescribeClientVpnRoutesCommandInput, - type DescribeClientVpnRoutesCommandOutput, - DescribeClientVpnTargetNetworksCommand, - type DescribeClientVpnTargetNetworksCommandInput, - type DescribeClientVpnTargetNetworksCommandOutput, - DescribeCoipPoolsCommand, - type DescribeCoipPoolsCommandInput, - type DescribeCoipPoolsCommandOutput, - DescribeConversionTasksCommand, - type DescribeConversionTasksCommandInput, - type DescribeConversionTasksCommandOutput, - DescribeCustomerGatewaysCommand, - type DescribeCustomerGatewaysCommandInput, - type DescribeCustomerGatewaysCommandOutput, - DescribeDhcpOptionsCommand, - type DescribeDhcpOptionsCommandInput, - type DescribeDhcpOptionsCommandOutput, - DescribeEgressOnlyInternetGatewaysCommand, - type DescribeEgressOnlyInternetGatewaysCommandInput, - type DescribeEgressOnlyInternetGatewaysCommandOutput, - DescribeElasticGpusCommand, - type DescribeElasticGpusCommandInput, - type DescribeElasticGpusCommandOutput, - DescribeExportImageTasksCommand, - type DescribeExportImageTasksCommandInput, - type DescribeExportImageTasksCommandOutput, - DescribeExportTasksCommand, - type DescribeExportTasksCommandInput, - type DescribeExportTasksCommandOutput, - DescribeFastLaunchImagesCommand, - type DescribeFastLaunchImagesCommandInput, - type DescribeFastLaunchImagesCommandOutput, - DescribeFastSnapshotRestoresCommand, - type DescribeFastSnapshotRestoresCommandInput, - type DescribeFastSnapshotRestoresCommandOutput, - DescribeFleetHistoryCommand, - type DescribeFleetHistoryCommandInput, - type DescribeFleetHistoryCommandOutput, - DescribeFleetInstancesCommand, - type DescribeFleetInstancesCommandInput, - type DescribeFleetInstancesCommandOutput, - DescribeFleetsCommand, - type DescribeFleetsCommandInput, - type DescribeFleetsCommandOutput, - DescribeFlowLogsCommand, - type DescribeFlowLogsCommandInput, - type DescribeFlowLogsCommandOutput, - DescribeFpgaImageAttributeCommand, - type DescribeFpgaImageAttributeCommandInput, - type DescribeFpgaImageAttributeCommandOutput, - DescribeFpgaImagesCommand, - type DescribeFpgaImagesCommandInput, - type DescribeFpgaImagesCommandOutput, - DescribeHostReservationOfferingsCommand, - type DescribeHostReservationOfferingsCommandInput, - type DescribeHostReservationOfferingsCommandOutput, - DescribeHostReservationsCommand, - type DescribeHostReservationsCommandInput, - type DescribeHostReservationsCommandOutput, - DescribeHostsCommand, - type DescribeHostsCommandInput, - type DescribeHostsCommandOutput, - DescribeIamInstanceProfileAssociationsCommand, - type DescribeIamInstanceProfileAssociationsCommandInput, - type DescribeIamInstanceProfileAssociationsCommandOutput, - DescribeIdentityIdFormatCommand, - type DescribeIdentityIdFormatCommandInput, - type DescribeIdentityIdFormatCommandOutput, - DescribeIdFormatCommand, - type DescribeIdFormatCommandInput, - type DescribeIdFormatCommandOutput, - DescribeImageAttributeCommand, - type DescribeImageAttributeCommandInput, - type DescribeImageAttributeCommandOutput, - DescribeImagesCommand, - type DescribeImagesCommandInput, - type DescribeImagesCommandOutput, - DescribeImportImageTasksCommand, - type DescribeImportImageTasksCommandInput, - type DescribeImportImageTasksCommandOutput, - DescribeImportSnapshotTasksCommand, - type DescribeImportSnapshotTasksCommandInput, - type DescribeImportSnapshotTasksCommandOutput, - DescribeInstanceAttributeCommand, - type DescribeInstanceAttributeCommandInput, - type DescribeInstanceAttributeCommandOutput, - DescribeInstanceConnectEndpointsCommand, - type DescribeInstanceConnectEndpointsCommandInput, - type DescribeInstanceConnectEndpointsCommandOutput, - DescribeInstanceCreditSpecificationsCommand, - type DescribeInstanceCreditSpecificationsCommandInput, - type DescribeInstanceCreditSpecificationsCommandOutput, - DescribeInstanceEventNotificationAttributesCommand, - type DescribeInstanceEventNotificationAttributesCommandInput, - type DescribeInstanceEventNotificationAttributesCommandOutput, - DescribeInstanceEventWindowsCommand, - type DescribeInstanceEventWindowsCommandInput, - type DescribeInstanceEventWindowsCommandOutput, - DescribeInstancesCommand, - type DescribeInstancesCommandInput, - type DescribeInstancesCommandOutput, - DescribeInstanceStatusCommand, - type DescribeInstanceStatusCommandInput, - type DescribeInstanceStatusCommandOutput, - DescribeInstanceTopologyCommand, - type DescribeInstanceTopologyCommandInput, - type DescribeInstanceTopologyCommandOutput, - DescribeInstanceTypeOfferingsCommand, - type DescribeInstanceTypeOfferingsCommandInput, - type DescribeInstanceTypeOfferingsCommandOutput, - DescribeInstanceTypesCommand, - type DescribeInstanceTypesCommandInput, - type DescribeInstanceTypesCommandOutput, - DescribeInternetGatewaysCommand, - type DescribeInternetGatewaysCommandInput, - type DescribeInternetGatewaysCommandOutput, - DescribeIpamByoasnCommand, - type DescribeIpamByoasnCommandInput, - type DescribeIpamByoasnCommandOutput, - DescribeIpamPoolsCommand, - type DescribeIpamPoolsCommandInput, - type DescribeIpamPoolsCommandOutput, - DescribeIpamResourceDiscoveriesCommand, - type DescribeIpamResourceDiscoveriesCommandInput, - type DescribeIpamResourceDiscoveriesCommandOutput, - DescribeIpamResourceDiscoveryAssociationsCommand, - type DescribeIpamResourceDiscoveryAssociationsCommandInput, - type DescribeIpamResourceDiscoveryAssociationsCommandOutput, - DescribeIpamsCommand, - type DescribeIpamsCommandInput, - type DescribeIpamsCommandOutput, - DescribeIpamScopesCommand, - type DescribeIpamScopesCommandInput, - type DescribeIpamScopesCommandOutput, - DescribeIpv6PoolsCommand, - type DescribeIpv6PoolsCommandInput, - type DescribeIpv6PoolsCommandOutput, - DescribeKeyPairsCommand, - type DescribeKeyPairsCommandInput, - type DescribeKeyPairsCommandOutput, - DescribeLaunchTemplatesCommand, - type DescribeLaunchTemplatesCommandInput, - type DescribeLaunchTemplatesCommandOutput, - DescribeLaunchTemplateVersionsCommand, - type DescribeLaunchTemplateVersionsCommandInput, - type DescribeLaunchTemplateVersionsCommandOutput, - DescribeLocalGatewayRouteTablesCommand, - type DescribeLocalGatewayRouteTablesCommandInput, - type DescribeLocalGatewayRouteTablesCommandOutput, - DescribeLocalGatewayRouteTableVirtualInterfaceGroupAssociationsCommand, - type DescribeLocalGatewayRouteTableVirtualInterfaceGroupAssociationsCommandInput, - type DescribeLocalGatewayRouteTableVirtualInterfaceGroupAssociationsCommandOutput, - DescribeLocalGatewayRouteTableVpcAssociationsCommand, - type DescribeLocalGatewayRouteTableVpcAssociationsCommandInput, - type DescribeLocalGatewayRouteTableVpcAssociationsCommandOutput, - DescribeLocalGatewaysCommand, - type DescribeLocalGatewaysCommandInput, - type DescribeLocalGatewaysCommandOutput, - DescribeLocalGatewayVirtualInterfaceGroupsCommand, - type DescribeLocalGatewayVirtualInterfaceGroupsCommandInput, - type DescribeLocalGatewayVirtualInterfaceGroupsCommandOutput, - DescribeLocalGatewayVirtualInterfacesCommand, - type DescribeLocalGatewayVirtualInterfacesCommandInput, - type DescribeLocalGatewayVirtualInterfacesCommandOutput, - DescribeLockedSnapshotsCommand, - type DescribeLockedSnapshotsCommandInput, - type DescribeLockedSnapshotsCommandOutput, - DescribeManagedPrefixListsCommand, - type DescribeManagedPrefixListsCommandInput, - type DescribeManagedPrefixListsCommandOutput, - DescribeMovingAddressesCommand, - type DescribeMovingAddressesCommandInput, - type DescribeMovingAddressesCommandOutput, - DescribeNatGatewaysCommand, - type DescribeNatGatewaysCommandInput, - type DescribeNatGatewaysCommandOutput, - DescribeNetworkAclsCommand, - type DescribeNetworkAclsCommandInput, - type DescribeNetworkAclsCommandOutput, - DescribeNetworkInsightsAccessScopeAnalysesCommand, - type DescribeNetworkInsightsAccessScopeAnalysesCommandInput, - type DescribeNetworkInsightsAccessScopeAnalysesCommandOutput, - DescribeNetworkInsightsAccessScopesCommand, - type DescribeNetworkInsightsAccessScopesCommandInput, - type DescribeNetworkInsightsAccessScopesCommandOutput, - DescribeNetworkInsightsAnalysesCommand, - type DescribeNetworkInsightsAnalysesCommandInput, - type DescribeNetworkInsightsAnalysesCommandOutput, - DescribeNetworkInsightsPathsCommand, - type DescribeNetworkInsightsPathsCommandInput, - type DescribeNetworkInsightsPathsCommandOutput, - DescribeNetworkInterfaceAttributeCommand, - type DescribeNetworkInterfaceAttributeCommandInput, - type DescribeNetworkInterfaceAttributeCommandOutput, - DescribeNetworkInterfacePermissionsCommand, - type DescribeNetworkInterfacePermissionsCommandInput, - type DescribeNetworkInterfacePermissionsCommandOutput, - DescribeNetworkInterfacesCommand, - type DescribeNetworkInterfacesCommandInput, - type DescribeNetworkInterfacesCommandOutput, - DescribePlacementGroupsCommand, - type DescribePlacementGroupsCommandInput, - type DescribePlacementGroupsCommandOutput, - DescribePrefixListsCommand, - type DescribePrefixListsCommandInput, - type DescribePrefixListsCommandOutput, - DescribePrincipalIdFormatCommand, - type DescribePrincipalIdFormatCommandInput, - type DescribePrincipalIdFormatCommandOutput, - DescribePublicIpv4PoolsCommand, - type DescribePublicIpv4PoolsCommandInput, - type DescribePublicIpv4PoolsCommandOutput, - DescribeRegionsCommand, - type DescribeRegionsCommandInput, - type DescribeRegionsCommandOutput, - DescribeReplaceRootVolumeTasksCommand, - type DescribeReplaceRootVolumeTasksCommandInput, - type DescribeReplaceRootVolumeTasksCommandOutput, - DescribeReservedInstancesCommand, - type DescribeReservedInstancesCommandInput, - type DescribeReservedInstancesCommandOutput, - DescribeReservedInstancesListingsCommand, - type DescribeReservedInstancesListingsCommandInput, - type DescribeReservedInstancesListingsCommandOutput, - DescribeReservedInstancesModificationsCommand, - type DescribeReservedInstancesModificationsCommandInput, - type DescribeReservedInstancesModificationsCommandOutput, - DescribeReservedInstancesOfferingsCommand, - type DescribeReservedInstancesOfferingsCommandInput, - type DescribeReservedInstancesOfferingsCommandOutput, - DescribeRouteTablesCommand, - type DescribeRouteTablesCommandInput, - type DescribeRouteTablesCommandOutput, - DescribeScheduledInstanceAvailabilityCommand, - type DescribeScheduledInstanceAvailabilityCommandInput, - type DescribeScheduledInstanceAvailabilityCommandOutput, - DescribeScheduledInstancesCommand, - type DescribeScheduledInstancesCommandInput, - type DescribeScheduledInstancesCommandOutput, - DescribeSecurityGroupReferencesCommand, - type DescribeSecurityGroupReferencesCommandInput, - type DescribeSecurityGroupReferencesCommandOutput, - DescribeSecurityGroupRulesCommand, - type DescribeSecurityGroupRulesCommandInput, - type DescribeSecurityGroupRulesCommandOutput, - DescribeSecurityGroupsCommand, - type DescribeSecurityGroupsCommandInput, - type DescribeSecurityGroupsCommandOutput, - DescribeSnapshotAttributeCommand, - type DescribeSnapshotAttributeCommandInput, - type DescribeSnapshotAttributeCommandOutput, - DescribeSnapshotsCommand, - type DescribeSnapshotsCommandInput, - type DescribeSnapshotsCommandOutput, - DescribeSnapshotTierStatusCommand, - type DescribeSnapshotTierStatusCommandInput, - type DescribeSnapshotTierStatusCommandOutput, - DescribeSpotDatafeedSubscriptionCommand, - type DescribeSpotDatafeedSubscriptionCommandInput, - type DescribeSpotDatafeedSubscriptionCommandOutput, - DescribeSpotFleetInstancesCommand, - type DescribeSpotFleetInstancesCommandInput, - type DescribeSpotFleetInstancesCommandOutput, - DescribeSpotFleetRequestHistoryCommand, - type DescribeSpotFleetRequestHistoryCommandInput, - type DescribeSpotFleetRequestHistoryCommandOutput, - DescribeSpotFleetRequestsCommand, - type DescribeSpotFleetRequestsCommandInput, - type DescribeSpotFleetRequestsCommandOutput, - DescribeSpotInstanceRequestsCommand, - type DescribeSpotInstanceRequestsCommandInput, - type DescribeSpotInstanceRequestsCommandOutput, - DescribeSpotPriceHistoryCommand, - type DescribeSpotPriceHistoryCommandInput, - type DescribeSpotPriceHistoryCommandOutput, - DescribeStaleSecurityGroupsCommand, - type DescribeStaleSecurityGroupsCommandInput, - type DescribeStaleSecurityGroupsCommandOutput, - DescribeStoreImageTasksCommand, - type DescribeStoreImageTasksCommandInput, - type DescribeStoreImageTasksCommandOutput, - DescribeSubnetsCommand, - type DescribeSubnetsCommandInput, - type DescribeSubnetsCommandOutput, - DescribeTagsCommand, - type DescribeTagsCommandInput, - type DescribeTagsCommandOutput, - DescribeTrafficMirrorFiltersCommand, - type DescribeTrafficMirrorFiltersCommandInput, - type DescribeTrafficMirrorFiltersCommandOutput, - DescribeTrafficMirrorSessionsCommand, - type DescribeTrafficMirrorSessionsCommandInput, - type DescribeTrafficMirrorSessionsCommandOutput, - DescribeTrafficMirrorTargetsCommand, - type DescribeTrafficMirrorTargetsCommandInput, - type DescribeTrafficMirrorTargetsCommandOutput, - DescribeTransitGatewayAttachmentsCommand, - type DescribeTransitGatewayAttachmentsCommandInput, - type DescribeTransitGatewayAttachmentsCommandOutput, - DescribeTransitGatewayConnectPeersCommand, - type DescribeTransitGatewayConnectPeersCommandInput, - type DescribeTransitGatewayConnectPeersCommandOutput, - DescribeTransitGatewayConnectsCommand, - type DescribeTransitGatewayConnectsCommandInput, - type DescribeTransitGatewayConnectsCommandOutput, - DescribeTransitGatewayMulticastDomainsCommand, - type DescribeTransitGatewayMulticastDomainsCommandInput, - type DescribeTransitGatewayMulticastDomainsCommandOutput, - DescribeTransitGatewayPeeringAttachmentsCommand, - type DescribeTransitGatewayPeeringAttachmentsCommandInput, - type DescribeTransitGatewayPeeringAttachmentsCommandOutput, - DescribeTransitGatewayPolicyTablesCommand, - type DescribeTransitGatewayPolicyTablesCommandInput, - type DescribeTransitGatewayPolicyTablesCommandOutput, - DescribeTransitGatewayRouteTableAnnouncementsCommand, - type DescribeTransitGatewayRouteTableAnnouncementsCommandInput, - type DescribeTransitGatewayRouteTableAnnouncementsCommandOutput, - DescribeTransitGatewayRouteTablesCommand, - type DescribeTransitGatewayRouteTablesCommandInput, - type DescribeTransitGatewayRouteTablesCommandOutput, - DescribeTransitGatewaysCommand, - type DescribeTransitGatewaysCommandInput, - type DescribeTransitGatewaysCommandOutput, - DescribeTransitGatewayVpcAttachmentsCommand, - type DescribeTransitGatewayVpcAttachmentsCommandInput, - type DescribeTransitGatewayVpcAttachmentsCommandOutput, - DescribeTrunkInterfaceAssociationsCommand, - type DescribeTrunkInterfaceAssociationsCommandInput, - type DescribeTrunkInterfaceAssociationsCommandOutput, - DescribeVerifiedAccessEndpointsCommand, - type DescribeVerifiedAccessEndpointsCommandInput, - type DescribeVerifiedAccessEndpointsCommandOutput, - DescribeVerifiedAccessGroupsCommand, - type DescribeVerifiedAccessGroupsCommandInput, - type DescribeVerifiedAccessGroupsCommandOutput, - DescribeVerifiedAccessInstanceLoggingConfigurationsCommand, - type DescribeVerifiedAccessInstanceLoggingConfigurationsCommandInput, - type DescribeVerifiedAccessInstanceLoggingConfigurationsCommandOutput, - DescribeVerifiedAccessInstancesCommand, - type DescribeVerifiedAccessInstancesCommandInput, - type DescribeVerifiedAccessInstancesCommandOutput, - DescribeVerifiedAccessTrustProvidersCommand, - type DescribeVerifiedAccessTrustProvidersCommandInput, - type DescribeVerifiedAccessTrustProvidersCommandOutput, - DescribeVolumeAttributeCommand, - type DescribeVolumeAttributeCommandInput, - type DescribeVolumeAttributeCommandOutput, - DescribeVolumesCommand, - type DescribeVolumesCommandInput, - type DescribeVolumesCommandOutput, - DescribeVolumesModificationsCommand, - type DescribeVolumesModificationsCommandInput, - type DescribeVolumesModificationsCommandOutput, - DescribeVolumeStatusCommand, - type DescribeVolumeStatusCommandInput, - type DescribeVolumeStatusCommandOutput, - DescribeVpcAttributeCommand, - type DescribeVpcAttributeCommandInput, - type DescribeVpcAttributeCommandOutput, - DescribeVpcClassicLinkCommand, - type DescribeVpcClassicLinkCommandInput, - type DescribeVpcClassicLinkCommandOutput, - DescribeVpcClassicLinkDnsSupportCommand, - type DescribeVpcClassicLinkDnsSupportCommandInput, - type DescribeVpcClassicLinkDnsSupportCommandOutput, - DescribeVpcEndpointConnectionNotificationsCommand, - type DescribeVpcEndpointConnectionNotificationsCommandInput, - type DescribeVpcEndpointConnectionNotificationsCommandOutput, - DescribeVpcEndpointConnectionsCommand, - type DescribeVpcEndpointConnectionsCommandInput, - type DescribeVpcEndpointConnectionsCommandOutput, - DescribeVpcEndpointsCommand, - type DescribeVpcEndpointsCommandInput, - type DescribeVpcEndpointsCommandOutput, - DescribeVpcEndpointServiceConfigurationsCommand, - type DescribeVpcEndpointServiceConfigurationsCommandInput, - type DescribeVpcEndpointServiceConfigurationsCommandOutput, - DescribeVpcEndpointServicePermissionsCommand, - type DescribeVpcEndpointServicePermissionsCommandInput, - type DescribeVpcEndpointServicePermissionsCommandOutput, - DescribeVpcEndpointServicesCommand, - type DescribeVpcEndpointServicesCommandInput, - type DescribeVpcEndpointServicesCommandOutput, - DescribeVpcPeeringConnectionsCommand, - type DescribeVpcPeeringConnectionsCommandInput, - type DescribeVpcPeeringConnectionsCommandOutput, - DescribeVpcsCommand, - type DescribeVpcsCommandInput, - type DescribeVpcsCommandOutput, - DescribeVpnConnectionsCommand, - type DescribeVpnConnectionsCommandInput, - type DescribeVpnConnectionsCommandOutput, - DescribeVpnGatewaysCommand, - type DescribeVpnGatewaysCommandInput, - type DescribeVpnGatewaysCommandOutput, - DetachClassicLinkVpcCommand, - type DetachClassicLinkVpcCommandInput, - type DetachClassicLinkVpcCommandOutput, - DetachInternetGatewayCommand, - type DetachInternetGatewayCommandInput, - type DetachInternetGatewayCommandOutput, - DetachNetworkInterfaceCommand, - type DetachNetworkInterfaceCommandInput, - type DetachNetworkInterfaceCommandOutput, - DetachVerifiedAccessTrustProviderCommand, - type DetachVerifiedAccessTrustProviderCommandInput, - type DetachVerifiedAccessTrustProviderCommandOutput, - DetachVolumeCommand, - type DetachVolumeCommandInput, - type DetachVolumeCommandOutput, - DetachVpnGatewayCommand, - type DetachVpnGatewayCommandInput, - type DetachVpnGatewayCommandOutput, - DisableAddressTransferCommand, - type DisableAddressTransferCommandInput, - type DisableAddressTransferCommandOutput, - DisableAwsNetworkPerformanceMetricSubscriptionCommand, - type DisableAwsNetworkPerformanceMetricSubscriptionCommandInput, - type DisableAwsNetworkPerformanceMetricSubscriptionCommandOutput, - DisableEbsEncryptionByDefaultCommand, - type DisableEbsEncryptionByDefaultCommandInput, - type DisableEbsEncryptionByDefaultCommandOutput, - DisableFastLaunchCommand, - type DisableFastLaunchCommandInput, - type DisableFastLaunchCommandOutput, - DisableFastSnapshotRestoresCommand, - type DisableFastSnapshotRestoresCommandInput, - type DisableFastSnapshotRestoresCommandOutput, - DisableImageCommand, - type DisableImageCommandInput, - type DisableImageCommandOutput, - DisableImageBlockPublicAccessCommand, - type DisableImageBlockPublicAccessCommandInput, - type DisableImageBlockPublicAccessCommandOutput, - DisableImageDeprecationCommand, - type DisableImageDeprecationCommandInput, - type DisableImageDeprecationCommandOutput, - DisableIpamOrganizationAdminAccountCommand, - type DisableIpamOrganizationAdminAccountCommandInput, - type DisableIpamOrganizationAdminAccountCommandOutput, - DisableSerialConsoleAccessCommand, - type DisableSerialConsoleAccessCommandInput, - type DisableSerialConsoleAccessCommandOutput, - DisableSnapshotBlockPublicAccessCommand, - type DisableSnapshotBlockPublicAccessCommandInput, - type DisableSnapshotBlockPublicAccessCommandOutput, - DisableTransitGatewayRouteTablePropagationCommand, - type DisableTransitGatewayRouteTablePropagationCommandInput, - type DisableTransitGatewayRouteTablePropagationCommandOutput, - DisableVgwRoutePropagationCommand, - type DisableVgwRoutePropagationCommandInput, - type DisableVgwRoutePropagationCommandOutput, - DisableVpcClassicLinkCommand, - type DisableVpcClassicLinkCommandInput, - type DisableVpcClassicLinkCommandOutput, - DisableVpcClassicLinkDnsSupportCommand, - type DisableVpcClassicLinkDnsSupportCommandInput, - type DisableVpcClassicLinkDnsSupportCommandOutput, - DisassociateAddressCommand, - type DisassociateAddressCommandInput, - type DisassociateAddressCommandOutput, - DisassociateClientVpnTargetNetworkCommand, - type DisassociateClientVpnTargetNetworkCommandInput, - type DisassociateClientVpnTargetNetworkCommandOutput, - DisassociateEnclaveCertificateIamRoleCommand, - type DisassociateEnclaveCertificateIamRoleCommandInput, - type DisassociateEnclaveCertificateIamRoleCommandOutput, - DisassociateIamInstanceProfileCommand, - type DisassociateIamInstanceProfileCommandInput, - type DisassociateIamInstanceProfileCommandOutput, - DisassociateInstanceEventWindowCommand, - type DisassociateInstanceEventWindowCommandInput, - type DisassociateInstanceEventWindowCommandOutput, - DisassociateIpamByoasnCommand, - type DisassociateIpamByoasnCommandInput, - type DisassociateIpamByoasnCommandOutput, - DisassociateIpamResourceDiscoveryCommand, - type DisassociateIpamResourceDiscoveryCommandInput, - type DisassociateIpamResourceDiscoveryCommandOutput, - DisassociateNatGatewayAddressCommand, - type DisassociateNatGatewayAddressCommandInput, - type DisassociateNatGatewayAddressCommandOutput, - DisassociateRouteTableCommand, - type DisassociateRouteTableCommandInput, - type DisassociateRouteTableCommandOutput, - DisassociateSubnetCidrBlockCommand, - type DisassociateSubnetCidrBlockCommandInput, - type DisassociateSubnetCidrBlockCommandOutput, - DisassociateTransitGatewayMulticastDomainCommand, - type DisassociateTransitGatewayMulticastDomainCommandInput, - type DisassociateTransitGatewayMulticastDomainCommandOutput, - DisassociateTransitGatewayPolicyTableCommand, - type DisassociateTransitGatewayPolicyTableCommandInput, - type DisassociateTransitGatewayPolicyTableCommandOutput, - DisassociateTransitGatewayRouteTableCommand, - type DisassociateTransitGatewayRouteTableCommandInput, - type DisassociateTransitGatewayRouteTableCommandOutput, - DisassociateTrunkInterfaceCommand, - type DisassociateTrunkInterfaceCommandInput, - type DisassociateTrunkInterfaceCommandOutput, - DisassociateVpcCidrBlockCommand, - type DisassociateVpcCidrBlockCommandInput, - type DisassociateVpcCidrBlockCommandOutput, - EnableAddressTransferCommand, - type EnableAddressTransferCommandInput, - type EnableAddressTransferCommandOutput, - EnableAwsNetworkPerformanceMetricSubscriptionCommand, - type EnableAwsNetworkPerformanceMetricSubscriptionCommandInput, - type EnableAwsNetworkPerformanceMetricSubscriptionCommandOutput, - EnableEbsEncryptionByDefaultCommand, - type EnableEbsEncryptionByDefaultCommandInput, - type EnableEbsEncryptionByDefaultCommandOutput, - EnableFastLaunchCommand, - type EnableFastLaunchCommandInput, - type EnableFastLaunchCommandOutput, - EnableFastSnapshotRestoresCommand, - type EnableFastSnapshotRestoresCommandInput, - type EnableFastSnapshotRestoresCommandOutput, - EnableImageCommand, - type EnableImageCommandInput, - type EnableImageCommandOutput, - EnableImageBlockPublicAccessCommand, - type EnableImageBlockPublicAccessCommandInput, - type EnableImageBlockPublicAccessCommandOutput, - EnableImageDeprecationCommand, - type EnableImageDeprecationCommandInput, - type EnableImageDeprecationCommandOutput, - EnableIpamOrganizationAdminAccountCommand, - type EnableIpamOrganizationAdminAccountCommandInput, - type EnableIpamOrganizationAdminAccountCommandOutput, - EnableReachabilityAnalyzerOrganizationSharingCommand, - type EnableReachabilityAnalyzerOrganizationSharingCommandInput, - type EnableReachabilityAnalyzerOrganizationSharingCommandOutput, - EnableSerialConsoleAccessCommand, - type EnableSerialConsoleAccessCommandInput, - type EnableSerialConsoleAccessCommandOutput, - EnableSnapshotBlockPublicAccessCommand, - type EnableSnapshotBlockPublicAccessCommandInput, - type EnableSnapshotBlockPublicAccessCommandOutput, - EnableTransitGatewayRouteTablePropagationCommand, - type EnableTransitGatewayRouteTablePropagationCommandInput, - type EnableTransitGatewayRouteTablePropagationCommandOutput, - EnableVgwRoutePropagationCommand, - type EnableVgwRoutePropagationCommandInput, - type EnableVgwRoutePropagationCommandOutput, - EnableVolumeIOCommand, - type EnableVolumeIOCommandInput, - type EnableVolumeIOCommandOutput, - EnableVpcClassicLinkCommand, - type EnableVpcClassicLinkCommandInput, - type EnableVpcClassicLinkCommandOutput, - EnableVpcClassicLinkDnsSupportCommand, - type EnableVpcClassicLinkDnsSupportCommandInput, - type EnableVpcClassicLinkDnsSupportCommandOutput, - ExportClientVpnClientCertificateRevocationListCommand, - type ExportClientVpnClientCertificateRevocationListCommandInput, - type ExportClientVpnClientCertificateRevocationListCommandOutput, - ExportClientVpnClientConfigurationCommand, - type ExportClientVpnClientConfigurationCommandInput, - type ExportClientVpnClientConfigurationCommandOutput, - ExportImageCommand, - type ExportImageCommandInput, - type ExportImageCommandOutput, - ExportTransitGatewayRoutesCommand, - type ExportTransitGatewayRoutesCommandInput, - type ExportTransitGatewayRoutesCommandOutput, - GetAssociatedEnclaveCertificateIamRolesCommand, - type GetAssociatedEnclaveCertificateIamRolesCommandInput, - type GetAssociatedEnclaveCertificateIamRolesCommandOutput, - GetAssociatedIpv6PoolCidrsCommand, - type GetAssociatedIpv6PoolCidrsCommandInput, - type GetAssociatedIpv6PoolCidrsCommandOutput, - GetAwsNetworkPerformanceDataCommand, - type GetAwsNetworkPerformanceDataCommandInput, - type GetAwsNetworkPerformanceDataCommandOutput, - GetCapacityReservationUsageCommand, - type GetCapacityReservationUsageCommandInput, - type GetCapacityReservationUsageCommandOutput, - GetCoipPoolUsageCommand, - type GetCoipPoolUsageCommandInput, - type GetCoipPoolUsageCommandOutput, - GetConsoleOutputCommand, - type GetConsoleOutputCommandInput, - type GetConsoleOutputCommandOutput, - GetConsoleScreenshotCommand, - type GetConsoleScreenshotCommandInput, - type GetConsoleScreenshotCommandOutput, - GetDefaultCreditSpecificationCommand, - type GetDefaultCreditSpecificationCommandInput, - type GetDefaultCreditSpecificationCommandOutput, - GetEbsDefaultKmsKeyIdCommand, - type GetEbsDefaultKmsKeyIdCommandInput, - type GetEbsDefaultKmsKeyIdCommandOutput, - GetEbsEncryptionByDefaultCommand, - type GetEbsEncryptionByDefaultCommandInput, - type GetEbsEncryptionByDefaultCommandOutput, - GetFlowLogsIntegrationTemplateCommand, - type GetFlowLogsIntegrationTemplateCommandInput, - type GetFlowLogsIntegrationTemplateCommandOutput, - GetGroupsForCapacityReservationCommand, - type GetGroupsForCapacityReservationCommandInput, - type GetGroupsForCapacityReservationCommandOutput, - GetHostReservationPurchasePreviewCommand, - type GetHostReservationPurchasePreviewCommandInput, - type GetHostReservationPurchasePreviewCommandOutput, - GetImageBlockPublicAccessStateCommand, - type GetImageBlockPublicAccessStateCommandInput, - type GetImageBlockPublicAccessStateCommandOutput, - GetInstanceTypesFromInstanceRequirementsCommand, - type GetInstanceTypesFromInstanceRequirementsCommandInput, - type GetInstanceTypesFromInstanceRequirementsCommandOutput, - GetInstanceUefiDataCommand, - type GetInstanceUefiDataCommandInput, - type GetInstanceUefiDataCommandOutput, - GetIpamAddressHistoryCommand, - type GetIpamAddressHistoryCommandInput, - type GetIpamAddressHistoryCommandOutput, - GetIpamDiscoveredAccountsCommand, - type GetIpamDiscoveredAccountsCommandInput, - type GetIpamDiscoveredAccountsCommandOutput, - GetIpamDiscoveredPublicAddressesCommand, - type GetIpamDiscoveredPublicAddressesCommandInput, - type GetIpamDiscoveredPublicAddressesCommandOutput, - GetIpamDiscoveredResourceCidrsCommand, - type GetIpamDiscoveredResourceCidrsCommandInput, - type GetIpamDiscoveredResourceCidrsCommandOutput, - GetIpamPoolAllocationsCommand, - type GetIpamPoolAllocationsCommandInput, - type GetIpamPoolAllocationsCommandOutput, - GetIpamPoolCidrsCommand, - type GetIpamPoolCidrsCommandInput, - type GetIpamPoolCidrsCommandOutput, - GetIpamResourceCidrsCommand, - type GetIpamResourceCidrsCommandInput, - type GetIpamResourceCidrsCommandOutput, - GetLaunchTemplateDataCommand, - type GetLaunchTemplateDataCommandInput, - type GetLaunchTemplateDataCommandOutput, - GetManagedPrefixListAssociationsCommand, - type GetManagedPrefixListAssociationsCommandInput, - type GetManagedPrefixListAssociationsCommandOutput, - GetManagedPrefixListEntriesCommand, - type GetManagedPrefixListEntriesCommandInput, - type GetManagedPrefixListEntriesCommandOutput, - GetNetworkInsightsAccessScopeAnalysisFindingsCommand, - type GetNetworkInsightsAccessScopeAnalysisFindingsCommandInput, - type GetNetworkInsightsAccessScopeAnalysisFindingsCommandOutput, - GetNetworkInsightsAccessScopeContentCommand, - type GetNetworkInsightsAccessScopeContentCommandInput, - type GetNetworkInsightsAccessScopeContentCommandOutput, - GetPasswordDataCommand, - type GetPasswordDataCommandInput, - type GetPasswordDataCommandOutput, - GetReservedInstancesExchangeQuoteCommand, - type GetReservedInstancesExchangeQuoteCommandInput, - type GetReservedInstancesExchangeQuoteCommandOutput, - GetSecurityGroupsForVpcCommand, - type GetSecurityGroupsForVpcCommandInput, - type GetSecurityGroupsForVpcCommandOutput, - GetSerialConsoleAccessStatusCommand, - type GetSerialConsoleAccessStatusCommandInput, - type GetSerialConsoleAccessStatusCommandOutput, - GetSnapshotBlockPublicAccessStateCommand, - type GetSnapshotBlockPublicAccessStateCommandInput, - type GetSnapshotBlockPublicAccessStateCommandOutput, - GetSpotPlacementScoresCommand, - type GetSpotPlacementScoresCommandInput, - type GetSpotPlacementScoresCommandOutput, - GetSubnetCidrReservationsCommand, - type GetSubnetCidrReservationsCommandInput, - type GetSubnetCidrReservationsCommandOutput, - GetTransitGatewayAttachmentPropagationsCommand, - type GetTransitGatewayAttachmentPropagationsCommandInput, - type GetTransitGatewayAttachmentPropagationsCommandOutput, - GetTransitGatewayMulticastDomainAssociationsCommand, - type GetTransitGatewayMulticastDomainAssociationsCommandInput, - type GetTransitGatewayMulticastDomainAssociationsCommandOutput, - GetTransitGatewayPolicyTableAssociationsCommand, - type GetTransitGatewayPolicyTableAssociationsCommandInput, - type GetTransitGatewayPolicyTableAssociationsCommandOutput, - GetTransitGatewayPolicyTableEntriesCommand, - type GetTransitGatewayPolicyTableEntriesCommandInput, - type GetTransitGatewayPolicyTableEntriesCommandOutput, - GetTransitGatewayPrefixListReferencesCommand, - type GetTransitGatewayPrefixListReferencesCommandInput, - type GetTransitGatewayPrefixListReferencesCommandOutput, - GetTransitGatewayRouteTableAssociationsCommand, - type GetTransitGatewayRouteTableAssociationsCommandInput, - type GetTransitGatewayRouteTableAssociationsCommandOutput, - GetTransitGatewayRouteTablePropagationsCommand, - type GetTransitGatewayRouteTablePropagationsCommandInput, - type GetTransitGatewayRouteTablePropagationsCommandOutput, - GetVerifiedAccessEndpointPolicyCommand, - type GetVerifiedAccessEndpointPolicyCommandInput, - type GetVerifiedAccessEndpointPolicyCommandOutput, - GetVerifiedAccessGroupPolicyCommand, - type GetVerifiedAccessGroupPolicyCommandInput, - type GetVerifiedAccessGroupPolicyCommandOutput, - GetVpnConnectionDeviceSampleConfigurationCommand, - type GetVpnConnectionDeviceSampleConfigurationCommandInput, - type GetVpnConnectionDeviceSampleConfigurationCommandOutput, - GetVpnConnectionDeviceTypesCommand, - type GetVpnConnectionDeviceTypesCommandInput, - type GetVpnConnectionDeviceTypesCommandOutput, - GetVpnTunnelReplacementStatusCommand, - type GetVpnTunnelReplacementStatusCommandInput, - type GetVpnTunnelReplacementStatusCommandOutput, - ImportClientVpnClientCertificateRevocationListCommand, - type ImportClientVpnClientCertificateRevocationListCommandInput, - type ImportClientVpnClientCertificateRevocationListCommandOutput, - ImportImageCommand, - type ImportImageCommandInput, - type ImportImageCommandOutput, - ImportInstanceCommand, - type ImportInstanceCommandInput, - type ImportInstanceCommandOutput, - ImportKeyPairCommand, - type ImportKeyPairCommandInput, - type ImportKeyPairCommandOutput, - ImportSnapshotCommand, - type ImportSnapshotCommandInput, - type ImportSnapshotCommandOutput, - ImportVolumeCommand, - type ImportVolumeCommandInput, - type ImportVolumeCommandOutput, - ListImagesInRecycleBinCommand, - type ListImagesInRecycleBinCommandInput, - type ListImagesInRecycleBinCommandOutput, - ListSnapshotsInRecycleBinCommand, - type ListSnapshotsInRecycleBinCommandInput, - type ListSnapshotsInRecycleBinCommandOutput, - LockSnapshotCommand, - type LockSnapshotCommandInput, - type LockSnapshotCommandOutput, - ModifyAddressAttributeCommand, - type ModifyAddressAttributeCommandInput, - type ModifyAddressAttributeCommandOutput, - ModifyAvailabilityZoneGroupCommand, - type ModifyAvailabilityZoneGroupCommandInput, - type ModifyAvailabilityZoneGroupCommandOutput, - ModifyCapacityReservationCommand, - type ModifyCapacityReservationCommandInput, - type ModifyCapacityReservationCommandOutput, - ModifyCapacityReservationFleetCommand, - type ModifyCapacityReservationFleetCommandInput, - type ModifyCapacityReservationFleetCommandOutput, - ModifyClientVpnEndpointCommand, - type ModifyClientVpnEndpointCommandInput, - type ModifyClientVpnEndpointCommandOutput, - ModifyDefaultCreditSpecificationCommand, - type ModifyDefaultCreditSpecificationCommandInput, - type ModifyDefaultCreditSpecificationCommandOutput, - ModifyEbsDefaultKmsKeyIdCommand, - type ModifyEbsDefaultKmsKeyIdCommandInput, - type ModifyEbsDefaultKmsKeyIdCommandOutput, - ModifyFleetCommand, - type ModifyFleetCommandInput, - type ModifyFleetCommandOutput, - ModifyFpgaImageAttributeCommand, - type ModifyFpgaImageAttributeCommandInput, - type ModifyFpgaImageAttributeCommandOutput, - ModifyHostsCommand, - type ModifyHostsCommandInput, - type ModifyHostsCommandOutput, - ModifyIdentityIdFormatCommand, - type ModifyIdentityIdFormatCommandInput, - type ModifyIdentityIdFormatCommandOutput, - ModifyIdFormatCommand, - type ModifyIdFormatCommandInput, - type ModifyIdFormatCommandOutput, - ModifyImageAttributeCommand, - type ModifyImageAttributeCommandInput, - type ModifyImageAttributeCommandOutput, - ModifyInstanceAttributeCommand, - type ModifyInstanceAttributeCommandInput, - type ModifyInstanceAttributeCommandOutput, - ModifyInstanceCapacityReservationAttributesCommand, - type ModifyInstanceCapacityReservationAttributesCommandInput, - type ModifyInstanceCapacityReservationAttributesCommandOutput, - ModifyInstanceCreditSpecificationCommand, - type ModifyInstanceCreditSpecificationCommandInput, - type ModifyInstanceCreditSpecificationCommandOutput, - ModifyInstanceEventStartTimeCommand, - type ModifyInstanceEventStartTimeCommandInput, - type ModifyInstanceEventStartTimeCommandOutput, - ModifyInstanceEventWindowCommand, - type ModifyInstanceEventWindowCommandInput, - type ModifyInstanceEventWindowCommandOutput, - ModifyInstanceMaintenanceOptionsCommand, - type ModifyInstanceMaintenanceOptionsCommandInput, - type ModifyInstanceMaintenanceOptionsCommandOutput, - ModifyInstanceMetadataOptionsCommand, - type ModifyInstanceMetadataOptionsCommandInput, - type ModifyInstanceMetadataOptionsCommandOutput, - ModifyInstancePlacementCommand, - type ModifyInstancePlacementCommandInput, - type ModifyInstancePlacementCommandOutput, - ModifyIpamCommand, - type ModifyIpamCommandInput, - type ModifyIpamCommandOutput, - ModifyIpamPoolCommand, - type ModifyIpamPoolCommandInput, - type ModifyIpamPoolCommandOutput, - ModifyIpamResourceCidrCommand, - type ModifyIpamResourceCidrCommandInput, - type ModifyIpamResourceCidrCommandOutput, - ModifyIpamResourceDiscoveryCommand, - type ModifyIpamResourceDiscoveryCommandInput, - type ModifyIpamResourceDiscoveryCommandOutput, - ModifyIpamScopeCommand, - type ModifyIpamScopeCommandInput, - type ModifyIpamScopeCommandOutput, - ModifyLaunchTemplateCommand, - type ModifyLaunchTemplateCommandInput, - type ModifyLaunchTemplateCommandOutput, - ModifyLocalGatewayRouteCommand, - type ModifyLocalGatewayRouteCommandInput, - type ModifyLocalGatewayRouteCommandOutput, - ModifyManagedPrefixListCommand, - type ModifyManagedPrefixListCommandInput, - type ModifyManagedPrefixListCommandOutput, - ModifyNetworkInterfaceAttributeCommand, - type ModifyNetworkInterfaceAttributeCommandInput, - type ModifyNetworkInterfaceAttributeCommandOutput, - ModifyPrivateDnsNameOptionsCommand, - type ModifyPrivateDnsNameOptionsCommandInput, - type ModifyPrivateDnsNameOptionsCommandOutput, - ModifyReservedInstancesCommand, - type ModifyReservedInstancesCommandInput, - type ModifyReservedInstancesCommandOutput, - ModifySecurityGroupRulesCommand, - type ModifySecurityGroupRulesCommandInput, - type ModifySecurityGroupRulesCommandOutput, - ModifySnapshotAttributeCommand, - type ModifySnapshotAttributeCommandInput, - type ModifySnapshotAttributeCommandOutput, - ModifySnapshotTierCommand, - type ModifySnapshotTierCommandInput, - type ModifySnapshotTierCommandOutput, - ModifySpotFleetRequestCommand, - type ModifySpotFleetRequestCommandInput, - type ModifySpotFleetRequestCommandOutput, - ModifySubnetAttributeCommand, - type ModifySubnetAttributeCommandInput, - type ModifySubnetAttributeCommandOutput, - ModifyTrafficMirrorFilterNetworkServicesCommand, - type ModifyTrafficMirrorFilterNetworkServicesCommandInput, - type ModifyTrafficMirrorFilterNetworkServicesCommandOutput, - ModifyTrafficMirrorFilterRuleCommand, - type ModifyTrafficMirrorFilterRuleCommandInput, - type ModifyTrafficMirrorFilterRuleCommandOutput, - ModifyTrafficMirrorSessionCommand, - type ModifyTrafficMirrorSessionCommandInput, - type ModifyTrafficMirrorSessionCommandOutput, - ModifyTransitGatewayCommand, - type ModifyTransitGatewayCommandInput, - type ModifyTransitGatewayCommandOutput, - ModifyTransitGatewayPrefixListReferenceCommand, - type ModifyTransitGatewayPrefixListReferenceCommandInput, - type ModifyTransitGatewayPrefixListReferenceCommandOutput, - ModifyTransitGatewayVpcAttachmentCommand, - type ModifyTransitGatewayVpcAttachmentCommandInput, - type ModifyTransitGatewayVpcAttachmentCommandOutput, - ModifyVerifiedAccessEndpointCommand, - type ModifyVerifiedAccessEndpointCommandInput, - type ModifyVerifiedAccessEndpointCommandOutput, - ModifyVerifiedAccessEndpointPolicyCommand, - type ModifyVerifiedAccessEndpointPolicyCommandInput, - type ModifyVerifiedAccessEndpointPolicyCommandOutput, - ModifyVerifiedAccessGroupCommand, - type ModifyVerifiedAccessGroupCommandInput, - type ModifyVerifiedAccessGroupCommandOutput, - ModifyVerifiedAccessGroupPolicyCommand, - type ModifyVerifiedAccessGroupPolicyCommandInput, - type ModifyVerifiedAccessGroupPolicyCommandOutput, - ModifyVerifiedAccessInstanceCommand, - type ModifyVerifiedAccessInstanceCommandInput, - type ModifyVerifiedAccessInstanceCommandOutput, - ModifyVerifiedAccessInstanceLoggingConfigurationCommand, - type ModifyVerifiedAccessInstanceLoggingConfigurationCommandInput, - type ModifyVerifiedAccessInstanceLoggingConfigurationCommandOutput, - ModifyVerifiedAccessTrustProviderCommand, - type ModifyVerifiedAccessTrustProviderCommandInput, - type ModifyVerifiedAccessTrustProviderCommandOutput, - ModifyVolumeCommand, - type ModifyVolumeCommandInput, - type ModifyVolumeCommandOutput, - ModifyVolumeAttributeCommand, - type ModifyVolumeAttributeCommandInput, - type ModifyVolumeAttributeCommandOutput, - ModifyVpcAttributeCommand, - type ModifyVpcAttributeCommandInput, - type ModifyVpcAttributeCommandOutput, - ModifyVpcEndpointCommand, - type ModifyVpcEndpointCommandInput, - type ModifyVpcEndpointCommandOutput, - ModifyVpcEndpointConnectionNotificationCommand, - type ModifyVpcEndpointConnectionNotificationCommandInput, - type ModifyVpcEndpointConnectionNotificationCommandOutput, - ModifyVpcEndpointServiceConfigurationCommand, - type ModifyVpcEndpointServiceConfigurationCommandInput, - type ModifyVpcEndpointServiceConfigurationCommandOutput, - ModifyVpcEndpointServicePayerResponsibilityCommand, - type ModifyVpcEndpointServicePayerResponsibilityCommandInput, - type ModifyVpcEndpointServicePayerResponsibilityCommandOutput, - ModifyVpcEndpointServicePermissionsCommand, - type ModifyVpcEndpointServicePermissionsCommandInput, - type ModifyVpcEndpointServicePermissionsCommandOutput, - ModifyVpcPeeringConnectionOptionsCommand, - type ModifyVpcPeeringConnectionOptionsCommandInput, - type ModifyVpcPeeringConnectionOptionsCommandOutput, - ModifyVpcTenancyCommand, - type ModifyVpcTenancyCommandInput, - type ModifyVpcTenancyCommandOutput, - ModifyVpnConnectionCommand, - type ModifyVpnConnectionCommandInput, - type ModifyVpnConnectionCommandOutput, - ModifyVpnConnectionOptionsCommand, - type ModifyVpnConnectionOptionsCommandInput, - type ModifyVpnConnectionOptionsCommandOutput, - ModifyVpnTunnelCertificateCommand, - type ModifyVpnTunnelCertificateCommandInput, - type ModifyVpnTunnelCertificateCommandOutput, - ModifyVpnTunnelOptionsCommand, - type ModifyVpnTunnelOptionsCommandInput, - type ModifyVpnTunnelOptionsCommandOutput, - MonitorInstancesCommand, - type MonitorInstancesCommandInput, - type MonitorInstancesCommandOutput, - MoveAddressToVpcCommand, - type MoveAddressToVpcCommandInput, - type MoveAddressToVpcCommandOutput, - MoveByoipCidrToIpamCommand, - type MoveByoipCidrToIpamCommandInput, - type MoveByoipCidrToIpamCommandOutput, - ProvisionByoipCidrCommand, - type ProvisionByoipCidrCommandInput, - type ProvisionByoipCidrCommandOutput, - ProvisionIpamByoasnCommand, - type ProvisionIpamByoasnCommandInput, - type ProvisionIpamByoasnCommandOutput, - ProvisionIpamPoolCidrCommand, - type ProvisionIpamPoolCidrCommandInput, - type ProvisionIpamPoolCidrCommandOutput, - ProvisionPublicIpv4PoolCidrCommand, - type ProvisionPublicIpv4PoolCidrCommandInput, - type ProvisionPublicIpv4PoolCidrCommandOutput, - PurchaseCapacityBlockCommand, - type PurchaseCapacityBlockCommandInput, - type PurchaseCapacityBlockCommandOutput, - PurchaseHostReservationCommand, - type PurchaseHostReservationCommandInput, - type PurchaseHostReservationCommandOutput, - PurchaseReservedInstancesOfferingCommand, - type PurchaseReservedInstancesOfferingCommandInput, - type PurchaseReservedInstancesOfferingCommandOutput, - PurchaseScheduledInstancesCommand, - type PurchaseScheduledInstancesCommandInput, - type PurchaseScheduledInstancesCommandOutput, - RebootInstancesCommand, - type RebootInstancesCommandInput, - type RebootInstancesCommandOutput, - RegisterImageCommand, - type RegisterImageCommandInput, - type RegisterImageCommandOutput, - RegisterInstanceEventNotificationAttributesCommand, - type RegisterInstanceEventNotificationAttributesCommandInput, - type RegisterInstanceEventNotificationAttributesCommandOutput, - RegisterTransitGatewayMulticastGroupMembersCommand, - type RegisterTransitGatewayMulticastGroupMembersCommandInput, - type RegisterTransitGatewayMulticastGroupMembersCommandOutput, - RegisterTransitGatewayMulticastGroupSourcesCommand, - type RegisterTransitGatewayMulticastGroupSourcesCommandInput, - type RegisterTransitGatewayMulticastGroupSourcesCommandOutput, - RejectTransitGatewayMulticastDomainAssociationsCommand, - type RejectTransitGatewayMulticastDomainAssociationsCommandInput, - type RejectTransitGatewayMulticastDomainAssociationsCommandOutput, - RejectTransitGatewayPeeringAttachmentCommand, - type RejectTransitGatewayPeeringAttachmentCommandInput, - type RejectTransitGatewayPeeringAttachmentCommandOutput, - RejectTransitGatewayVpcAttachmentCommand, - type RejectTransitGatewayVpcAttachmentCommandInput, - type RejectTransitGatewayVpcAttachmentCommandOutput, - RejectVpcEndpointConnectionsCommand, - type RejectVpcEndpointConnectionsCommandInput, - type RejectVpcEndpointConnectionsCommandOutput, - RejectVpcPeeringConnectionCommand, - type RejectVpcPeeringConnectionCommandInput, - type RejectVpcPeeringConnectionCommandOutput, - ReleaseAddressCommand, - type ReleaseAddressCommandInput, - type ReleaseAddressCommandOutput, - ReleaseHostsCommand, - type ReleaseHostsCommandInput, - type ReleaseHostsCommandOutput, - ReleaseIpamPoolAllocationCommand, - type ReleaseIpamPoolAllocationCommandInput, - type ReleaseIpamPoolAllocationCommandOutput, - ReplaceIamInstanceProfileAssociationCommand, - type ReplaceIamInstanceProfileAssociationCommandInput, - type ReplaceIamInstanceProfileAssociationCommandOutput, - ReplaceNetworkAclAssociationCommand, - type ReplaceNetworkAclAssociationCommandInput, - type ReplaceNetworkAclAssociationCommandOutput, - ReplaceNetworkAclEntryCommand, - type ReplaceNetworkAclEntryCommandInput, - type ReplaceNetworkAclEntryCommandOutput, - ReplaceRouteCommand, - type ReplaceRouteCommandInput, - type ReplaceRouteCommandOutput, - ReplaceRouteTableAssociationCommand, - type ReplaceRouteTableAssociationCommandInput, - type ReplaceRouteTableAssociationCommandOutput, - ReplaceTransitGatewayRouteCommand, - type ReplaceTransitGatewayRouteCommandInput, - type ReplaceTransitGatewayRouteCommandOutput, - ReplaceVpnTunnelCommand, - type ReplaceVpnTunnelCommandInput, - type ReplaceVpnTunnelCommandOutput, - ReportInstanceStatusCommand, - type ReportInstanceStatusCommandInput, - type ReportInstanceStatusCommandOutput, - RequestSpotFleetCommand, - type RequestSpotFleetCommandInput, - type RequestSpotFleetCommandOutput, - RequestSpotInstancesCommand, - type RequestSpotInstancesCommandInput, - type RequestSpotInstancesCommandOutput, - ResetAddressAttributeCommand, - type ResetAddressAttributeCommandInput, - type ResetAddressAttributeCommandOutput, - ResetEbsDefaultKmsKeyIdCommand, - type ResetEbsDefaultKmsKeyIdCommandInput, - type ResetEbsDefaultKmsKeyIdCommandOutput, - ResetFpgaImageAttributeCommand, - type ResetFpgaImageAttributeCommandInput, - type ResetFpgaImageAttributeCommandOutput, - ResetImageAttributeCommand, - type ResetImageAttributeCommandInput, - type ResetImageAttributeCommandOutput, - ResetInstanceAttributeCommand, - type ResetInstanceAttributeCommandInput, - type ResetInstanceAttributeCommandOutput, - ResetNetworkInterfaceAttributeCommand, - type ResetNetworkInterfaceAttributeCommandInput, - type ResetNetworkInterfaceAttributeCommandOutput, - ResetSnapshotAttributeCommand, - type ResetSnapshotAttributeCommandInput, - type ResetSnapshotAttributeCommandOutput, - RestoreAddressToClassicCommand, - type RestoreAddressToClassicCommandInput, - type RestoreAddressToClassicCommandOutput, - RestoreImageFromRecycleBinCommand, - type RestoreImageFromRecycleBinCommandInput, - type RestoreImageFromRecycleBinCommandOutput, - RestoreManagedPrefixListVersionCommand, - type RestoreManagedPrefixListVersionCommandInput, - type RestoreManagedPrefixListVersionCommandOutput, - RestoreSnapshotFromRecycleBinCommand, - type RestoreSnapshotFromRecycleBinCommandInput, - type RestoreSnapshotFromRecycleBinCommandOutput, - RestoreSnapshotTierCommand, - type RestoreSnapshotTierCommandInput, - type RestoreSnapshotTierCommandOutput, - RevokeClientVpnIngressCommand, - type RevokeClientVpnIngressCommandInput, - type RevokeClientVpnIngressCommandOutput, - RevokeSecurityGroupEgressCommand, - type RevokeSecurityGroupEgressCommandInput, - type RevokeSecurityGroupEgressCommandOutput, - RevokeSecurityGroupIngressCommand, - type RevokeSecurityGroupIngressCommandInput, - type RevokeSecurityGroupIngressCommandOutput, - RunInstancesCommand, - type RunInstancesCommandInput, - type RunInstancesCommandOutput, - RunScheduledInstancesCommand, - type RunScheduledInstancesCommandInput, - type RunScheduledInstancesCommandOutput, - SearchLocalGatewayRoutesCommand, - type SearchLocalGatewayRoutesCommandInput, - type SearchLocalGatewayRoutesCommandOutput, - SearchTransitGatewayMulticastGroupsCommand, - type SearchTransitGatewayMulticastGroupsCommandInput, - type SearchTransitGatewayMulticastGroupsCommandOutput, - SearchTransitGatewayRoutesCommand, - type SearchTransitGatewayRoutesCommandInput, - type SearchTransitGatewayRoutesCommandOutput, - SendDiagnosticInterruptCommand, - type SendDiagnosticInterruptCommandInput, - type SendDiagnosticInterruptCommandOutput, - StartInstancesCommand, - type StartInstancesCommandInput, - type StartInstancesCommandOutput, - StartNetworkInsightsAccessScopeAnalysisCommand, - type StartNetworkInsightsAccessScopeAnalysisCommandInput, - type StartNetworkInsightsAccessScopeAnalysisCommandOutput, - StartNetworkInsightsAnalysisCommand, - type StartNetworkInsightsAnalysisCommandInput, - type StartNetworkInsightsAnalysisCommandOutput, - StartVpcEndpointServicePrivateDnsVerificationCommand, - type StartVpcEndpointServicePrivateDnsVerificationCommandInput, - type StartVpcEndpointServicePrivateDnsVerificationCommandOutput, - StopInstancesCommand, - type StopInstancesCommandInput, - type StopInstancesCommandOutput, - TerminateClientVpnConnectionsCommand, - type TerminateClientVpnConnectionsCommandInput, - type TerminateClientVpnConnectionsCommandOutput, - TerminateInstancesCommand, - type TerminateInstancesCommandInput, - type TerminateInstancesCommandOutput, - UnassignIpv6AddressesCommand, - type UnassignIpv6AddressesCommandInput, - type UnassignIpv6AddressesCommandOutput, - UnassignPrivateIpAddressesCommand, - type UnassignPrivateIpAddressesCommandInput, - type UnassignPrivateIpAddressesCommandOutput, - UnassignPrivateNatGatewayAddressCommand, - type UnassignPrivateNatGatewayAddressCommandInput, - type UnassignPrivateNatGatewayAddressCommandOutput, - UnlockSnapshotCommand, - type UnlockSnapshotCommandInput, - type UnlockSnapshotCommandOutput, - UnmonitorInstancesCommand, - type UnmonitorInstancesCommandInput, - type UnmonitorInstancesCommandOutput, - UpdateSecurityGroupRuleDescriptionsEgressCommand, - type UpdateSecurityGroupRuleDescriptionsEgressCommandInput, - type UpdateSecurityGroupRuleDescriptionsEgressCommandOutput, - UpdateSecurityGroupRuleDescriptionsIngressCommand, - type UpdateSecurityGroupRuleDescriptionsIngressCommandInput, - type UpdateSecurityGroupRuleDescriptionsIngressCommandOutput, - WithdrawByoipCidrCommand, - type WithdrawByoipCidrCommandInput, - type WithdrawByoipCidrCommandOutput, -} from "@aws-sdk/client-ec2"; -import { type HttpHandlerOptions as __HttpHandlerOptions } from "@aws-sdk/types"; -import { Context, Effect, Layer, ReadonlyRecord, Data } from "effect"; -import { EC2ClientInstance, EC2ClientInstanceLayer } from "./EC2ClientInstance"; -import { DefaultEC2ClientConfigLayer } from "./EC2ClientInstanceConfig"; -import { EC2ServiceError, SdkError, TaggedException } from "./Errors"; - -const commands = { - AcceptAddressTransferCommand, - AcceptReservedInstancesExchangeQuoteCommand, - AcceptTransitGatewayMulticastDomainAssociationsCommand, - AcceptTransitGatewayPeeringAttachmentCommand, - AcceptTransitGatewayVpcAttachmentCommand, - AcceptVpcEndpointConnectionsCommand, - AcceptVpcPeeringConnectionCommand, - AdvertiseByoipCidrCommand, - AllocateAddressCommand, - AllocateHostsCommand, - AllocateIpamPoolCidrCommand, - ApplySecurityGroupsToClientVpnTargetNetworkCommand, - AssignIpv6AddressesCommand, - AssignPrivateIpAddressesCommand, - AssignPrivateNatGatewayAddressCommand, - AssociateAddressCommand, - AssociateClientVpnTargetNetworkCommand, - AssociateDhcpOptionsCommand, - AssociateEnclaveCertificateIamRoleCommand, - AssociateIamInstanceProfileCommand, - AssociateInstanceEventWindowCommand, - AssociateIpamByoasnCommand, - AssociateIpamResourceDiscoveryCommand, - AssociateNatGatewayAddressCommand, - AssociateRouteTableCommand, - AssociateSubnetCidrBlockCommand, - AssociateTransitGatewayMulticastDomainCommand, - AssociateTransitGatewayPolicyTableCommand, - AssociateTransitGatewayRouteTableCommand, - AssociateTrunkInterfaceCommand, - AssociateVpcCidrBlockCommand, - AttachClassicLinkVpcCommand, - AttachInternetGatewayCommand, - AttachNetworkInterfaceCommand, - AttachVerifiedAccessTrustProviderCommand, - AttachVolumeCommand, - AttachVpnGatewayCommand, - AuthorizeClientVpnIngressCommand, - AuthorizeSecurityGroupEgressCommand, - AuthorizeSecurityGroupIngressCommand, - BundleInstanceCommand, - CancelBundleTaskCommand, - CancelCapacityReservationCommand, - CancelCapacityReservationFleetsCommand, - CancelConversionTaskCommand, - CancelExportTaskCommand, - CancelImageLaunchPermissionCommand, - CancelImportTaskCommand, - CancelReservedInstancesListingCommand, - CancelSpotFleetRequestsCommand, - CancelSpotInstanceRequestsCommand, - ConfirmProductInstanceCommand, - CopyFpgaImageCommand, - CopyImageCommand, - CopySnapshotCommand, - CreateCapacityReservationCommand, - CreateCapacityReservationFleetCommand, - CreateCarrierGatewayCommand, - CreateClientVpnEndpointCommand, - CreateClientVpnRouteCommand, - CreateCoipCidrCommand, - CreateCoipPoolCommand, - CreateCustomerGatewayCommand, - CreateDefaultSubnetCommand, - CreateDefaultVpcCommand, - CreateDhcpOptionsCommand, - CreateEgressOnlyInternetGatewayCommand, - CreateFleetCommand, - CreateFlowLogsCommand, - CreateFpgaImageCommand, - CreateImageCommand, - CreateInstanceConnectEndpointCommand, - CreateInstanceEventWindowCommand, - CreateInstanceExportTaskCommand, - CreateInternetGatewayCommand, - CreateIpamCommand, - CreateIpamPoolCommand, - CreateIpamResourceDiscoveryCommand, - CreateIpamScopeCommand, - CreateKeyPairCommand, - CreateLaunchTemplateCommand, - CreateLaunchTemplateVersionCommand, - CreateLocalGatewayRouteCommand, - CreateLocalGatewayRouteTableCommand, - CreateLocalGatewayRouteTableVirtualInterfaceGroupAssociationCommand, - CreateLocalGatewayRouteTableVpcAssociationCommand, - CreateManagedPrefixListCommand, - CreateNatGatewayCommand, - CreateNetworkAclCommand, - CreateNetworkAclEntryCommand, - CreateNetworkInsightsAccessScopeCommand, - CreateNetworkInsightsPathCommand, - CreateNetworkInterfaceCommand, - CreateNetworkInterfacePermissionCommand, - CreatePlacementGroupCommand, - CreatePublicIpv4PoolCommand, - CreateReplaceRootVolumeTaskCommand, - CreateReservedInstancesListingCommand, - CreateRestoreImageTaskCommand, - CreateRouteCommand, - CreateRouteTableCommand, - CreateSecurityGroupCommand, - CreateSnapshotCommand, - CreateSnapshotsCommand, - CreateSpotDatafeedSubscriptionCommand, - CreateStoreImageTaskCommand, - CreateSubnetCommand, - CreateSubnetCidrReservationCommand, - CreateTagsCommand, - CreateTrafficMirrorFilterCommand, - CreateTrafficMirrorFilterRuleCommand, - CreateTrafficMirrorSessionCommand, - CreateTrafficMirrorTargetCommand, - CreateTransitGatewayCommand, - CreateTransitGatewayConnectCommand, - CreateTransitGatewayConnectPeerCommand, - CreateTransitGatewayMulticastDomainCommand, - CreateTransitGatewayPeeringAttachmentCommand, - CreateTransitGatewayPolicyTableCommand, - CreateTransitGatewayPrefixListReferenceCommand, - CreateTransitGatewayRouteCommand, - CreateTransitGatewayRouteTableCommand, - CreateTransitGatewayRouteTableAnnouncementCommand, - CreateTransitGatewayVpcAttachmentCommand, - CreateVerifiedAccessEndpointCommand, - CreateVerifiedAccessGroupCommand, - CreateVerifiedAccessInstanceCommand, - CreateVerifiedAccessTrustProviderCommand, - CreateVolumeCommand, - CreateVpcCommand, - CreateVpcEndpointCommand, - CreateVpcEndpointConnectionNotificationCommand, - CreateVpcEndpointServiceConfigurationCommand, - CreateVpcPeeringConnectionCommand, - CreateVpnConnectionCommand, - CreateVpnConnectionRouteCommand, - CreateVpnGatewayCommand, - DeleteCarrierGatewayCommand, - DeleteClientVpnEndpointCommand, - DeleteClientVpnRouteCommand, - DeleteCoipCidrCommand, - DeleteCoipPoolCommand, - DeleteCustomerGatewayCommand, - DeleteDhcpOptionsCommand, - DeleteEgressOnlyInternetGatewayCommand, - DeleteFleetsCommand, - DeleteFlowLogsCommand, - DeleteFpgaImageCommand, - DeleteInstanceConnectEndpointCommand, - DeleteInstanceEventWindowCommand, - DeleteInternetGatewayCommand, - DeleteIpamCommand, - DeleteIpamPoolCommand, - DeleteIpamResourceDiscoveryCommand, - DeleteIpamScopeCommand, - DeleteKeyPairCommand, - DeleteLaunchTemplateCommand, - DeleteLaunchTemplateVersionsCommand, - DeleteLocalGatewayRouteCommand, - DeleteLocalGatewayRouteTableCommand, - DeleteLocalGatewayRouteTableVirtualInterfaceGroupAssociationCommand, - DeleteLocalGatewayRouteTableVpcAssociationCommand, - DeleteManagedPrefixListCommand, - DeleteNatGatewayCommand, - DeleteNetworkAclCommand, - DeleteNetworkAclEntryCommand, - DeleteNetworkInsightsAccessScopeCommand, - DeleteNetworkInsightsAccessScopeAnalysisCommand, - DeleteNetworkInsightsAnalysisCommand, - DeleteNetworkInsightsPathCommand, - DeleteNetworkInterfaceCommand, - DeleteNetworkInterfacePermissionCommand, - DeletePlacementGroupCommand, - DeletePublicIpv4PoolCommand, - DeleteQueuedReservedInstancesCommand, - DeleteRouteCommand, - DeleteRouteTableCommand, - DeleteSecurityGroupCommand, - DeleteSnapshotCommand, - DeleteSpotDatafeedSubscriptionCommand, - DeleteSubnetCommand, - DeleteSubnetCidrReservationCommand, - DeleteTagsCommand, - DeleteTrafficMirrorFilterCommand, - DeleteTrafficMirrorFilterRuleCommand, - DeleteTrafficMirrorSessionCommand, - DeleteTrafficMirrorTargetCommand, - DeleteTransitGatewayCommand, - DeleteTransitGatewayConnectCommand, - DeleteTransitGatewayConnectPeerCommand, - DeleteTransitGatewayMulticastDomainCommand, - DeleteTransitGatewayPeeringAttachmentCommand, - DeleteTransitGatewayPolicyTableCommand, - DeleteTransitGatewayPrefixListReferenceCommand, - DeleteTransitGatewayRouteCommand, - DeleteTransitGatewayRouteTableCommand, - DeleteTransitGatewayRouteTableAnnouncementCommand, - DeleteTransitGatewayVpcAttachmentCommand, - DeleteVerifiedAccessEndpointCommand, - DeleteVerifiedAccessGroupCommand, - DeleteVerifiedAccessInstanceCommand, - DeleteVerifiedAccessTrustProviderCommand, - DeleteVolumeCommand, - DeleteVpcCommand, - DeleteVpcEndpointConnectionNotificationsCommand, - DeleteVpcEndpointsCommand, - DeleteVpcEndpointServiceConfigurationsCommand, - DeleteVpcPeeringConnectionCommand, - DeleteVpnConnectionCommand, - DeleteVpnConnectionRouteCommand, - DeleteVpnGatewayCommand, - DeprovisionByoipCidrCommand, - DeprovisionIpamByoasnCommand, - DeprovisionIpamPoolCidrCommand, - DeprovisionPublicIpv4PoolCidrCommand, - DeregisterImageCommand, - DeregisterInstanceEventNotificationAttributesCommand, - DeregisterTransitGatewayMulticastGroupMembersCommand, - DeregisterTransitGatewayMulticastGroupSourcesCommand, - DescribeAccountAttributesCommand, - DescribeAddressesCommand, - DescribeAddressesAttributeCommand, - DescribeAddressTransfersCommand, - DescribeAggregateIdFormatCommand, - DescribeAvailabilityZonesCommand, - DescribeAwsNetworkPerformanceMetricSubscriptionsCommand, - DescribeBundleTasksCommand, - DescribeByoipCidrsCommand, - DescribeCapacityBlockOfferingsCommand, - DescribeCapacityReservationFleetsCommand, - DescribeCapacityReservationsCommand, - DescribeCarrierGatewaysCommand, - DescribeClassicLinkInstancesCommand, - DescribeClientVpnAuthorizationRulesCommand, - DescribeClientVpnConnectionsCommand, - DescribeClientVpnEndpointsCommand, - DescribeClientVpnRoutesCommand, - DescribeClientVpnTargetNetworksCommand, - DescribeCoipPoolsCommand, - DescribeConversionTasksCommand, - DescribeCustomerGatewaysCommand, - DescribeDhcpOptionsCommand, - DescribeEgressOnlyInternetGatewaysCommand, - DescribeElasticGpusCommand, - DescribeExportImageTasksCommand, - DescribeExportTasksCommand, - DescribeFastLaunchImagesCommand, - DescribeFastSnapshotRestoresCommand, - DescribeFleetHistoryCommand, - DescribeFleetInstancesCommand, - DescribeFleetsCommand, - DescribeFlowLogsCommand, - DescribeFpgaImageAttributeCommand, - DescribeFpgaImagesCommand, - DescribeHostReservationOfferingsCommand, - DescribeHostReservationsCommand, - DescribeHostsCommand, - DescribeIamInstanceProfileAssociationsCommand, - DescribeIdentityIdFormatCommand, - DescribeIdFormatCommand, - DescribeImageAttributeCommand, - DescribeImagesCommand, - DescribeImportImageTasksCommand, - DescribeImportSnapshotTasksCommand, - DescribeInstanceAttributeCommand, - DescribeInstanceConnectEndpointsCommand, - DescribeInstanceCreditSpecificationsCommand, - DescribeInstanceEventNotificationAttributesCommand, - DescribeInstanceEventWindowsCommand, - DescribeInstancesCommand, - DescribeInstanceStatusCommand, - DescribeInstanceTopologyCommand, - DescribeInstanceTypeOfferingsCommand, - DescribeInstanceTypesCommand, - DescribeInternetGatewaysCommand, - DescribeIpamByoasnCommand, - DescribeIpamPoolsCommand, - DescribeIpamResourceDiscoveriesCommand, - DescribeIpamResourceDiscoveryAssociationsCommand, - DescribeIpamsCommand, - DescribeIpamScopesCommand, - DescribeIpv6PoolsCommand, - DescribeKeyPairsCommand, - DescribeLaunchTemplatesCommand, - DescribeLaunchTemplateVersionsCommand, - DescribeLocalGatewayRouteTablesCommand, - DescribeLocalGatewayRouteTableVirtualInterfaceGroupAssociationsCommand, - DescribeLocalGatewayRouteTableVpcAssociationsCommand, - DescribeLocalGatewaysCommand, - DescribeLocalGatewayVirtualInterfaceGroupsCommand, - DescribeLocalGatewayVirtualInterfacesCommand, - DescribeLockedSnapshotsCommand, - DescribeManagedPrefixListsCommand, - DescribeMovingAddressesCommand, - DescribeNatGatewaysCommand, - DescribeNetworkAclsCommand, - DescribeNetworkInsightsAccessScopeAnalysesCommand, - DescribeNetworkInsightsAccessScopesCommand, - DescribeNetworkInsightsAnalysesCommand, - DescribeNetworkInsightsPathsCommand, - DescribeNetworkInterfaceAttributeCommand, - DescribeNetworkInterfacePermissionsCommand, - DescribeNetworkInterfacesCommand, - DescribePlacementGroupsCommand, - DescribePrefixListsCommand, - DescribePrincipalIdFormatCommand, - DescribePublicIpv4PoolsCommand, - DescribeRegionsCommand, - DescribeReplaceRootVolumeTasksCommand, - DescribeReservedInstancesCommand, - DescribeReservedInstancesListingsCommand, - DescribeReservedInstancesModificationsCommand, - DescribeReservedInstancesOfferingsCommand, - DescribeRouteTablesCommand, - DescribeScheduledInstanceAvailabilityCommand, - DescribeScheduledInstancesCommand, - DescribeSecurityGroupReferencesCommand, - DescribeSecurityGroupRulesCommand, - DescribeSecurityGroupsCommand, - DescribeSnapshotAttributeCommand, - DescribeSnapshotsCommand, - DescribeSnapshotTierStatusCommand, - DescribeSpotDatafeedSubscriptionCommand, - DescribeSpotFleetInstancesCommand, - DescribeSpotFleetRequestHistoryCommand, - DescribeSpotFleetRequestsCommand, - DescribeSpotInstanceRequestsCommand, - DescribeSpotPriceHistoryCommand, - DescribeStaleSecurityGroupsCommand, - DescribeStoreImageTasksCommand, - DescribeSubnetsCommand, - DescribeTagsCommand, - DescribeTrafficMirrorFiltersCommand, - DescribeTrafficMirrorSessionsCommand, - DescribeTrafficMirrorTargetsCommand, - DescribeTransitGatewayAttachmentsCommand, - DescribeTransitGatewayConnectPeersCommand, - DescribeTransitGatewayConnectsCommand, - DescribeTransitGatewayMulticastDomainsCommand, - DescribeTransitGatewayPeeringAttachmentsCommand, - DescribeTransitGatewayPolicyTablesCommand, - DescribeTransitGatewayRouteTableAnnouncementsCommand, - DescribeTransitGatewayRouteTablesCommand, - DescribeTransitGatewaysCommand, - DescribeTransitGatewayVpcAttachmentsCommand, - DescribeTrunkInterfaceAssociationsCommand, - DescribeVerifiedAccessEndpointsCommand, - DescribeVerifiedAccessGroupsCommand, - DescribeVerifiedAccessInstanceLoggingConfigurationsCommand, - DescribeVerifiedAccessInstancesCommand, - DescribeVerifiedAccessTrustProvidersCommand, - DescribeVolumeAttributeCommand, - DescribeVolumesCommand, - DescribeVolumesModificationsCommand, - DescribeVolumeStatusCommand, - DescribeVpcAttributeCommand, - DescribeVpcClassicLinkCommand, - DescribeVpcClassicLinkDnsSupportCommand, - DescribeVpcEndpointConnectionNotificationsCommand, - DescribeVpcEndpointConnectionsCommand, - DescribeVpcEndpointsCommand, - DescribeVpcEndpointServiceConfigurationsCommand, - DescribeVpcEndpointServicePermissionsCommand, - DescribeVpcEndpointServicesCommand, - DescribeVpcPeeringConnectionsCommand, - DescribeVpcsCommand, - DescribeVpnConnectionsCommand, - DescribeVpnGatewaysCommand, - DetachClassicLinkVpcCommand, - DetachInternetGatewayCommand, - DetachNetworkInterfaceCommand, - DetachVerifiedAccessTrustProviderCommand, - DetachVolumeCommand, - DetachVpnGatewayCommand, - DisableAddressTransferCommand, - DisableAwsNetworkPerformanceMetricSubscriptionCommand, - DisableEbsEncryptionByDefaultCommand, - DisableFastLaunchCommand, - DisableFastSnapshotRestoresCommand, - DisableImageCommand, - DisableImageBlockPublicAccessCommand, - DisableImageDeprecationCommand, - DisableIpamOrganizationAdminAccountCommand, - DisableSerialConsoleAccessCommand, - DisableSnapshotBlockPublicAccessCommand, - DisableTransitGatewayRouteTablePropagationCommand, - DisableVgwRoutePropagationCommand, - DisableVpcClassicLinkCommand, - DisableVpcClassicLinkDnsSupportCommand, - DisassociateAddressCommand, - DisassociateClientVpnTargetNetworkCommand, - DisassociateEnclaveCertificateIamRoleCommand, - DisassociateIamInstanceProfileCommand, - DisassociateInstanceEventWindowCommand, - DisassociateIpamByoasnCommand, - DisassociateIpamResourceDiscoveryCommand, - DisassociateNatGatewayAddressCommand, - DisassociateRouteTableCommand, - DisassociateSubnetCidrBlockCommand, - DisassociateTransitGatewayMulticastDomainCommand, - DisassociateTransitGatewayPolicyTableCommand, - DisassociateTransitGatewayRouteTableCommand, - DisassociateTrunkInterfaceCommand, - DisassociateVpcCidrBlockCommand, - EnableAddressTransferCommand, - EnableAwsNetworkPerformanceMetricSubscriptionCommand, - EnableEbsEncryptionByDefaultCommand, - EnableFastLaunchCommand, - EnableFastSnapshotRestoresCommand, - EnableImageCommand, - EnableImageBlockPublicAccessCommand, - EnableImageDeprecationCommand, - EnableIpamOrganizationAdminAccountCommand, - EnableReachabilityAnalyzerOrganizationSharingCommand, - EnableSerialConsoleAccessCommand, - EnableSnapshotBlockPublicAccessCommand, - EnableTransitGatewayRouteTablePropagationCommand, - EnableVgwRoutePropagationCommand, - EnableVolumeIOCommand, - EnableVpcClassicLinkCommand, - EnableVpcClassicLinkDnsSupportCommand, - ExportClientVpnClientCertificateRevocationListCommand, - ExportClientVpnClientConfigurationCommand, - ExportImageCommand, - ExportTransitGatewayRoutesCommand, - GetAssociatedEnclaveCertificateIamRolesCommand, - GetAssociatedIpv6PoolCidrsCommand, - GetAwsNetworkPerformanceDataCommand, - GetCapacityReservationUsageCommand, - GetCoipPoolUsageCommand, - GetConsoleOutputCommand, - GetConsoleScreenshotCommand, - GetDefaultCreditSpecificationCommand, - GetEbsDefaultKmsKeyIdCommand, - GetEbsEncryptionByDefaultCommand, - GetFlowLogsIntegrationTemplateCommand, - GetGroupsForCapacityReservationCommand, - GetHostReservationPurchasePreviewCommand, - GetImageBlockPublicAccessStateCommand, - GetInstanceTypesFromInstanceRequirementsCommand, - GetInstanceUefiDataCommand, - GetIpamAddressHistoryCommand, - GetIpamDiscoveredAccountsCommand, - GetIpamDiscoveredPublicAddressesCommand, - GetIpamDiscoveredResourceCidrsCommand, - GetIpamPoolAllocationsCommand, - GetIpamPoolCidrsCommand, - GetIpamResourceCidrsCommand, - GetLaunchTemplateDataCommand, - GetManagedPrefixListAssociationsCommand, - GetManagedPrefixListEntriesCommand, - GetNetworkInsightsAccessScopeAnalysisFindingsCommand, - GetNetworkInsightsAccessScopeContentCommand, - GetPasswordDataCommand, - GetReservedInstancesExchangeQuoteCommand, - GetSecurityGroupsForVpcCommand, - GetSerialConsoleAccessStatusCommand, - GetSnapshotBlockPublicAccessStateCommand, - GetSpotPlacementScoresCommand, - GetSubnetCidrReservationsCommand, - GetTransitGatewayAttachmentPropagationsCommand, - GetTransitGatewayMulticastDomainAssociationsCommand, - GetTransitGatewayPolicyTableAssociationsCommand, - GetTransitGatewayPolicyTableEntriesCommand, - GetTransitGatewayPrefixListReferencesCommand, - GetTransitGatewayRouteTableAssociationsCommand, - GetTransitGatewayRouteTablePropagationsCommand, - GetVerifiedAccessEndpointPolicyCommand, - GetVerifiedAccessGroupPolicyCommand, - GetVpnConnectionDeviceSampleConfigurationCommand, - GetVpnConnectionDeviceTypesCommand, - GetVpnTunnelReplacementStatusCommand, - ImportClientVpnClientCertificateRevocationListCommand, - ImportImageCommand, - ImportInstanceCommand, - ImportKeyPairCommand, - ImportSnapshotCommand, - ImportVolumeCommand, - ListImagesInRecycleBinCommand, - ListSnapshotsInRecycleBinCommand, - LockSnapshotCommand, - ModifyAddressAttributeCommand, - ModifyAvailabilityZoneGroupCommand, - ModifyCapacityReservationCommand, - ModifyCapacityReservationFleetCommand, - ModifyClientVpnEndpointCommand, - ModifyDefaultCreditSpecificationCommand, - ModifyEbsDefaultKmsKeyIdCommand, - ModifyFleetCommand, - ModifyFpgaImageAttributeCommand, - ModifyHostsCommand, - ModifyIdentityIdFormatCommand, - ModifyIdFormatCommand, - ModifyImageAttributeCommand, - ModifyInstanceAttributeCommand, - ModifyInstanceCapacityReservationAttributesCommand, - ModifyInstanceCreditSpecificationCommand, - ModifyInstanceEventStartTimeCommand, - ModifyInstanceEventWindowCommand, - ModifyInstanceMaintenanceOptionsCommand, - ModifyInstanceMetadataOptionsCommand, - ModifyInstancePlacementCommand, - ModifyIpamCommand, - ModifyIpamPoolCommand, - ModifyIpamResourceCidrCommand, - ModifyIpamResourceDiscoveryCommand, - ModifyIpamScopeCommand, - ModifyLaunchTemplateCommand, - ModifyLocalGatewayRouteCommand, - ModifyManagedPrefixListCommand, - ModifyNetworkInterfaceAttributeCommand, - ModifyPrivateDnsNameOptionsCommand, - ModifyReservedInstancesCommand, - ModifySecurityGroupRulesCommand, - ModifySnapshotAttributeCommand, - ModifySnapshotTierCommand, - ModifySpotFleetRequestCommand, - ModifySubnetAttributeCommand, - ModifyTrafficMirrorFilterNetworkServicesCommand, - ModifyTrafficMirrorFilterRuleCommand, - ModifyTrafficMirrorSessionCommand, - ModifyTransitGatewayCommand, - ModifyTransitGatewayPrefixListReferenceCommand, - ModifyTransitGatewayVpcAttachmentCommand, - ModifyVerifiedAccessEndpointCommand, - ModifyVerifiedAccessEndpointPolicyCommand, - ModifyVerifiedAccessGroupCommand, - ModifyVerifiedAccessGroupPolicyCommand, - ModifyVerifiedAccessInstanceCommand, - ModifyVerifiedAccessInstanceLoggingConfigurationCommand, - ModifyVerifiedAccessTrustProviderCommand, - ModifyVolumeCommand, - ModifyVolumeAttributeCommand, - ModifyVpcAttributeCommand, - ModifyVpcEndpointCommand, - ModifyVpcEndpointConnectionNotificationCommand, - ModifyVpcEndpointServiceConfigurationCommand, - ModifyVpcEndpointServicePayerResponsibilityCommand, - ModifyVpcEndpointServicePermissionsCommand, - ModifyVpcPeeringConnectionOptionsCommand, - ModifyVpcTenancyCommand, - ModifyVpnConnectionCommand, - ModifyVpnConnectionOptionsCommand, - ModifyVpnTunnelCertificateCommand, - ModifyVpnTunnelOptionsCommand, - MonitorInstancesCommand, - MoveAddressToVpcCommand, - MoveByoipCidrToIpamCommand, - ProvisionByoipCidrCommand, - ProvisionIpamByoasnCommand, - ProvisionIpamPoolCidrCommand, - ProvisionPublicIpv4PoolCidrCommand, - PurchaseCapacityBlockCommand, - PurchaseHostReservationCommand, - PurchaseReservedInstancesOfferingCommand, - PurchaseScheduledInstancesCommand, - RebootInstancesCommand, - RegisterImageCommand, - RegisterInstanceEventNotificationAttributesCommand, - RegisterTransitGatewayMulticastGroupMembersCommand, - RegisterTransitGatewayMulticastGroupSourcesCommand, - RejectTransitGatewayMulticastDomainAssociationsCommand, - RejectTransitGatewayPeeringAttachmentCommand, - RejectTransitGatewayVpcAttachmentCommand, - RejectVpcEndpointConnectionsCommand, - RejectVpcPeeringConnectionCommand, - ReleaseAddressCommand, - ReleaseHostsCommand, - ReleaseIpamPoolAllocationCommand, - ReplaceIamInstanceProfileAssociationCommand, - ReplaceNetworkAclAssociationCommand, - ReplaceNetworkAclEntryCommand, - ReplaceRouteCommand, - ReplaceRouteTableAssociationCommand, - ReplaceTransitGatewayRouteCommand, - ReplaceVpnTunnelCommand, - ReportInstanceStatusCommand, - RequestSpotFleetCommand, - RequestSpotInstancesCommand, - ResetAddressAttributeCommand, - ResetEbsDefaultKmsKeyIdCommand, - ResetFpgaImageAttributeCommand, - ResetImageAttributeCommand, - ResetInstanceAttributeCommand, - ResetNetworkInterfaceAttributeCommand, - ResetSnapshotAttributeCommand, - RestoreAddressToClassicCommand, - RestoreImageFromRecycleBinCommand, - RestoreManagedPrefixListVersionCommand, - RestoreSnapshotFromRecycleBinCommand, - RestoreSnapshotTierCommand, - RevokeClientVpnIngressCommand, - RevokeSecurityGroupEgressCommand, - RevokeSecurityGroupIngressCommand, - RunInstancesCommand, - RunScheduledInstancesCommand, - SearchLocalGatewayRoutesCommand, - SearchTransitGatewayMulticastGroupsCommand, - SearchTransitGatewayRoutesCommand, - SendDiagnosticInterruptCommand, - StartInstancesCommand, - StartNetworkInsightsAccessScopeAnalysisCommand, - StartNetworkInsightsAnalysisCommand, - StartVpcEndpointServicePrivateDnsVerificationCommand, - StopInstancesCommand, - TerminateClientVpnConnectionsCommand, - TerminateInstancesCommand, - UnassignIpv6AddressesCommand, - UnassignPrivateIpAddressesCommand, - UnassignPrivateNatGatewayAddressCommand, - UnlockSnapshotCommand, - UnmonitorInstancesCommand, - UpdateSecurityGroupRuleDescriptionsEgressCommand, - UpdateSecurityGroupRuleDescriptionsIngressCommand, - WithdrawByoipCidrCommand, -}; - -/** - * @since 1.0.0 - * @category models - */ -export type EC2Service = { - readonly _: unique symbol; - - /** - * @see {@link AcceptAddressTransferCommand} - */ - readonly acceptAddressTransfer: ( - args: AcceptAddressTransferCommandInput, - options?: __HttpHandlerOptions, - ) => Effect.Effect< - AcceptAddressTransferCommandOutput, - SdkError | EC2ServiceError - >; - - /** - * @see {@link AcceptReservedInstancesExchangeQuoteCommand} - */ - readonly acceptReservedInstancesExchangeQuote: ( - args: AcceptReservedInstancesExchangeQuoteCommandInput, - options?: __HttpHandlerOptions, - ) => Effect.Effect< - AcceptReservedInstancesExchangeQuoteCommandOutput, - SdkError | EC2ServiceError - >; - - /** - * @see {@link AcceptTransitGatewayMulticastDomainAssociationsCommand} - */ - readonly acceptTransitGatewayMulticastDomainAssociations: ( - args: AcceptTransitGatewayMulticastDomainAssociationsCommandInput, - options?: __HttpHandlerOptions, - ) => Effect.Effect< - AcceptTransitGatewayMulticastDomainAssociationsCommandOutput, - SdkError | EC2ServiceError - >; - - /** - * @see {@link AcceptTransitGatewayPeeringAttachmentCommand} - */ - readonly acceptTransitGatewayPeeringAttachment: ( - args: AcceptTransitGatewayPeeringAttachmentCommandInput, - options?: __HttpHandlerOptions, - ) => Effect.Effect< - AcceptTransitGatewayPeeringAttachmentCommandOutput, - SdkError | EC2ServiceError - >; - - /** - * @see {@link AcceptTransitGatewayVpcAttachmentCommand} - */ - readonly acceptTransitGatewayVpcAttachment: ( - args: AcceptTransitGatewayVpcAttachmentCommandInput, - options?: __HttpHandlerOptions, - ) => Effect.Effect< - AcceptTransitGatewayVpcAttachmentCommandOutput, - SdkError | EC2ServiceError - >; - - /** - * @see {@link AcceptVpcEndpointConnectionsCommand} - */ - readonly acceptVpcEndpointConnections: ( - args: AcceptVpcEndpointConnectionsCommandInput, - options?: __HttpHandlerOptions, - ) => Effect.Effect< - AcceptVpcEndpointConnectionsCommandOutput, - SdkError | EC2ServiceError - >; - - /** - * @see {@link AcceptVpcPeeringConnectionCommand} - */ - readonly acceptVpcPeeringConnection: ( - args: AcceptVpcPeeringConnectionCommandInput, - options?: __HttpHandlerOptions, - ) => Effect.Effect< - AcceptVpcPeeringConnectionCommandOutput, - SdkError | EC2ServiceError - >; - - /** - * @see {@link AdvertiseByoipCidrCommand} - */ - readonly advertiseByoipCidr: ( - args: AdvertiseByoipCidrCommandInput, - options?: __HttpHandlerOptions, - ) => Effect.Effect< - AdvertiseByoipCidrCommandOutput, - SdkError | EC2ServiceError - >; - - /** - * @see {@link AllocateAddressCommand} - */ - readonly allocateAddress: ( - args: AllocateAddressCommandInput, - options?: __HttpHandlerOptions, - ) => Effect.Effect; - - /** - * @see {@link AllocateHostsCommand} - */ - readonly allocateHosts: ( - args: AllocateHostsCommandInput, - options?: __HttpHandlerOptions, - ) => Effect.Effect; - - /** - * @see {@link AllocateIpamPoolCidrCommand} - */ - readonly allocateIpamPoolCidr: ( - args: AllocateIpamPoolCidrCommandInput, - options?: __HttpHandlerOptions, - ) => Effect.Effect< - AllocateIpamPoolCidrCommandOutput, - SdkError | EC2ServiceError - >; - - /** - * @see {@link ApplySecurityGroupsToClientVpnTargetNetworkCommand} - */ - readonly applySecurityGroupsToClientVpnTargetNetwork: ( - args: ApplySecurityGroupsToClientVpnTargetNetworkCommandInput, - options?: __HttpHandlerOptions, - ) => Effect.Effect< - ApplySecurityGroupsToClientVpnTargetNetworkCommandOutput, - SdkError | EC2ServiceError - >; - - /** - * @see {@link AssignIpv6AddressesCommand} - */ - readonly assignIpv6Addresses: ( - args: AssignIpv6AddressesCommandInput, - options?: __HttpHandlerOptions, - ) => Effect.Effect< - AssignIpv6AddressesCommandOutput, - SdkError | EC2ServiceError - >; - - /** - * @see {@link AssignPrivateIpAddressesCommand} - */ - readonly assignPrivateIpAddresses: ( - args: AssignPrivateIpAddressesCommandInput, - options?: __HttpHandlerOptions, - ) => Effect.Effect< - AssignPrivateIpAddressesCommandOutput, - SdkError | EC2ServiceError - >; - - /** - * @see {@link AssignPrivateNatGatewayAddressCommand} - */ - readonly assignPrivateNatGatewayAddress: ( - args: AssignPrivateNatGatewayAddressCommandInput, - options?: __HttpHandlerOptions, - ) => Effect.Effect< - AssignPrivateNatGatewayAddressCommandOutput, - SdkError | EC2ServiceError - >; - - /** - * @see {@link AssociateAddressCommand} - */ - readonly associateAddress: ( - args: AssociateAddressCommandInput, - options?: __HttpHandlerOptions, - ) => Effect.Effect; - - /** - * @see {@link AssociateClientVpnTargetNetworkCommand} - */ - readonly associateClientVpnTargetNetwork: ( - args: AssociateClientVpnTargetNetworkCommandInput, - options?: __HttpHandlerOptions, - ) => Effect.Effect< - AssociateClientVpnTargetNetworkCommandOutput, - SdkError | EC2ServiceError - >; - - /** - * @see {@link AssociateDhcpOptionsCommand} - */ - readonly associateDhcpOptions: ( - args: AssociateDhcpOptionsCommandInput, - options?: __HttpHandlerOptions, - ) => Effect.Effect< - AssociateDhcpOptionsCommandOutput, - SdkError | EC2ServiceError - >; - - /** - * @see {@link AssociateEnclaveCertificateIamRoleCommand} - */ - readonly associateEnclaveCertificateIamRole: ( - args: AssociateEnclaveCertificateIamRoleCommandInput, - options?: __HttpHandlerOptions, - ) => Effect.Effect< - AssociateEnclaveCertificateIamRoleCommandOutput, - SdkError | EC2ServiceError - >; - - /** - * @see {@link AssociateIamInstanceProfileCommand} - */ - readonly associateIamInstanceProfile: ( - args: AssociateIamInstanceProfileCommandInput, - options?: __HttpHandlerOptions, - ) => Effect.Effect< - AssociateIamInstanceProfileCommandOutput, - SdkError | EC2ServiceError - >; - - /** - * @see {@link AssociateInstanceEventWindowCommand} - */ - readonly associateInstanceEventWindow: ( - args: AssociateInstanceEventWindowCommandInput, - options?: __HttpHandlerOptions, - ) => Effect.Effect< - AssociateInstanceEventWindowCommandOutput, - SdkError | EC2ServiceError - >; - - /** - * @see {@link AssociateIpamByoasnCommand} - */ - readonly associateIpamByoasn: ( - args: AssociateIpamByoasnCommandInput, - options?: __HttpHandlerOptions, - ) => Effect.Effect< - AssociateIpamByoasnCommandOutput, - SdkError | EC2ServiceError - >; - - /** - * @see {@link AssociateIpamResourceDiscoveryCommand} - */ - readonly associateIpamResourceDiscovery: ( - args: AssociateIpamResourceDiscoveryCommandInput, - options?: __HttpHandlerOptions, - ) => Effect.Effect< - AssociateIpamResourceDiscoveryCommandOutput, - SdkError | EC2ServiceError - >; - - /** - * @see {@link AssociateNatGatewayAddressCommand} - */ - readonly associateNatGatewayAddress: ( - args: AssociateNatGatewayAddressCommandInput, - options?: __HttpHandlerOptions, - ) => Effect.Effect< - AssociateNatGatewayAddressCommandOutput, - SdkError | EC2ServiceError - >; - - /** - * @see {@link AssociateRouteTableCommand} - */ - readonly associateRouteTable: ( - args: AssociateRouteTableCommandInput, - options?: __HttpHandlerOptions, - ) => Effect.Effect< - AssociateRouteTableCommandOutput, - SdkError | EC2ServiceError - >; - - /** - * @see {@link AssociateSubnetCidrBlockCommand} - */ - readonly associateSubnetCidrBlock: ( - args: AssociateSubnetCidrBlockCommandInput, - options?: __HttpHandlerOptions, - ) => Effect.Effect< - AssociateSubnetCidrBlockCommandOutput, - SdkError | EC2ServiceError - >; - - /** - * @see {@link AssociateTransitGatewayMulticastDomainCommand} - */ - readonly associateTransitGatewayMulticastDomain: ( - args: AssociateTransitGatewayMulticastDomainCommandInput, - options?: __HttpHandlerOptions, - ) => Effect.Effect< - AssociateTransitGatewayMulticastDomainCommandOutput, - SdkError | EC2ServiceError - >; - - /** - * @see {@link AssociateTransitGatewayPolicyTableCommand} - */ - readonly associateTransitGatewayPolicyTable: ( - args: AssociateTransitGatewayPolicyTableCommandInput, - options?: __HttpHandlerOptions, - ) => Effect.Effect< - AssociateTransitGatewayPolicyTableCommandOutput, - SdkError | EC2ServiceError - >; - - /** - * @see {@link AssociateTransitGatewayRouteTableCommand} - */ - readonly associateTransitGatewayRouteTable: ( - args: AssociateTransitGatewayRouteTableCommandInput, - options?: __HttpHandlerOptions, - ) => Effect.Effect< - AssociateTransitGatewayRouteTableCommandOutput, - SdkError | EC2ServiceError - >; - - /** - * @see {@link AssociateTrunkInterfaceCommand} - */ - readonly associateTrunkInterface: ( - args: AssociateTrunkInterfaceCommandInput, - options?: __HttpHandlerOptions, - ) => Effect.Effect< - AssociateTrunkInterfaceCommandOutput, - SdkError | EC2ServiceError - >; - - /** - * @see {@link AssociateVpcCidrBlockCommand} - */ - readonly associateVpcCidrBlock: ( - args: AssociateVpcCidrBlockCommandInput, - options?: __HttpHandlerOptions, - ) => Effect.Effect< - AssociateVpcCidrBlockCommandOutput, - SdkError | EC2ServiceError - >; - - /** - * @see {@link AttachClassicLinkVpcCommand} - */ - readonly attachClassicLinkVpc: ( - args: AttachClassicLinkVpcCommandInput, - options?: __HttpHandlerOptions, - ) => Effect.Effect< - AttachClassicLinkVpcCommandOutput, - SdkError | EC2ServiceError - >; - - /** - * @see {@link AttachInternetGatewayCommand} - */ - readonly attachInternetGateway: ( - args: AttachInternetGatewayCommandInput, - options?: __HttpHandlerOptions, - ) => Effect.Effect< - AttachInternetGatewayCommandOutput, - SdkError | EC2ServiceError - >; - - /** - * @see {@link AttachNetworkInterfaceCommand} - */ - readonly attachNetworkInterface: ( - args: AttachNetworkInterfaceCommandInput, - options?: __HttpHandlerOptions, - ) => Effect.Effect< - AttachNetworkInterfaceCommandOutput, - SdkError | EC2ServiceError - >; - - /** - * @see {@link AttachVerifiedAccessTrustProviderCommand} - */ - readonly attachVerifiedAccessTrustProvider: ( - args: AttachVerifiedAccessTrustProviderCommandInput, - options?: __HttpHandlerOptions, - ) => Effect.Effect< - AttachVerifiedAccessTrustProviderCommandOutput, - SdkError | EC2ServiceError - >; - - /** - * @see {@link AttachVolumeCommand} - */ - readonly attachVolume: ( - args: AttachVolumeCommandInput, - options?: __HttpHandlerOptions, - ) => Effect.Effect; - - /** - * @see {@link AttachVpnGatewayCommand} - */ - readonly attachVpnGateway: ( - args: AttachVpnGatewayCommandInput, - options?: __HttpHandlerOptions, - ) => Effect.Effect; - - /** - * @see {@link AuthorizeClientVpnIngressCommand} - */ - readonly authorizeClientVpnIngress: ( - args: AuthorizeClientVpnIngressCommandInput, - options?: __HttpHandlerOptions, - ) => Effect.Effect< - AuthorizeClientVpnIngressCommandOutput, - SdkError | EC2ServiceError - >; - - /** - * @see {@link AuthorizeSecurityGroupEgressCommand} - */ - readonly authorizeSecurityGroupEgress: ( - args: AuthorizeSecurityGroupEgressCommandInput, - options?: __HttpHandlerOptions, - ) => Effect.Effect< - AuthorizeSecurityGroupEgressCommandOutput, - SdkError | EC2ServiceError - >; - - /** - * @see {@link AuthorizeSecurityGroupIngressCommand} - */ - readonly authorizeSecurityGroupIngress: ( - args: AuthorizeSecurityGroupIngressCommandInput, - options?: __HttpHandlerOptions, - ) => Effect.Effect< - AuthorizeSecurityGroupIngressCommandOutput, - SdkError | EC2ServiceError - >; - - /** - * @see {@link BundleInstanceCommand} - */ - readonly bundleInstance: ( - args: BundleInstanceCommandInput, - options?: __HttpHandlerOptions, - ) => Effect.Effect; - - /** - * @see {@link CancelBundleTaskCommand} - */ - readonly cancelBundleTask: ( - args: CancelBundleTaskCommandInput, - options?: __HttpHandlerOptions, - ) => Effect.Effect; - - /** - * @see {@link CancelCapacityReservationCommand} - */ - readonly cancelCapacityReservation: ( - args: CancelCapacityReservationCommandInput, - options?: __HttpHandlerOptions, - ) => Effect.Effect< - CancelCapacityReservationCommandOutput, - SdkError | EC2ServiceError - >; - - /** - * @see {@link CancelCapacityReservationFleetsCommand} - */ - readonly cancelCapacityReservationFleets: ( - args: CancelCapacityReservationFleetsCommandInput, - options?: __HttpHandlerOptions, - ) => Effect.Effect< - CancelCapacityReservationFleetsCommandOutput, - SdkError | EC2ServiceError - >; - - /** - * @see {@link CancelConversionTaskCommand} - */ - readonly cancelConversionTask: ( - args: CancelConversionTaskCommandInput, - options?: __HttpHandlerOptions, - ) => Effect.Effect< - CancelConversionTaskCommandOutput, - SdkError | EC2ServiceError - >; - - /** - * @see {@link CancelExportTaskCommand} - */ - readonly cancelExportTask: ( - args: CancelExportTaskCommandInput, - options?: __HttpHandlerOptions, - ) => Effect.Effect; - - /** - * @see {@link CancelImageLaunchPermissionCommand} - */ - readonly cancelImageLaunchPermission: ( - args: CancelImageLaunchPermissionCommandInput, - options?: __HttpHandlerOptions, - ) => Effect.Effect< - CancelImageLaunchPermissionCommandOutput, - SdkError | EC2ServiceError - >; - - /** - * @see {@link CancelImportTaskCommand} - */ - readonly cancelImportTask: ( - args: CancelImportTaskCommandInput, - options?: __HttpHandlerOptions, - ) => Effect.Effect; - - /** - * @see {@link CancelReservedInstancesListingCommand} - */ - readonly cancelReservedInstancesListing: ( - args: CancelReservedInstancesListingCommandInput, - options?: __HttpHandlerOptions, - ) => Effect.Effect< - CancelReservedInstancesListingCommandOutput, - SdkError | EC2ServiceError - >; - - /** - * @see {@link CancelSpotFleetRequestsCommand} - */ - readonly cancelSpotFleetRequests: ( - args: CancelSpotFleetRequestsCommandInput, - options?: __HttpHandlerOptions, - ) => Effect.Effect< - CancelSpotFleetRequestsCommandOutput, - SdkError | EC2ServiceError - >; - - /** - * @see {@link CancelSpotInstanceRequestsCommand} - */ - readonly cancelSpotInstanceRequests: ( - args: CancelSpotInstanceRequestsCommandInput, - options?: __HttpHandlerOptions, - ) => Effect.Effect< - CancelSpotInstanceRequestsCommandOutput, - SdkError | EC2ServiceError - >; - - /** - * @see {@link ConfirmProductInstanceCommand} - */ - readonly confirmProductInstance: ( - args: ConfirmProductInstanceCommandInput, - options?: __HttpHandlerOptions, - ) => Effect.Effect< - ConfirmProductInstanceCommandOutput, - SdkError | EC2ServiceError - >; - - /** - * @see {@link CopyFpgaImageCommand} - */ - readonly copyFpgaImage: ( - args: CopyFpgaImageCommandInput, - options?: __HttpHandlerOptions, - ) => Effect.Effect; - - /** - * @see {@link CopyImageCommand} - */ - readonly copyImage: ( - args: CopyImageCommandInput, - options?: __HttpHandlerOptions, - ) => Effect.Effect; - - /** - * @see {@link CopySnapshotCommand} - */ - readonly copySnapshot: ( - args: CopySnapshotCommandInput, - options?: __HttpHandlerOptions, - ) => Effect.Effect; - - /** - * @see {@link CreateCapacityReservationCommand} - */ - readonly createCapacityReservation: ( - args: CreateCapacityReservationCommandInput, - options?: __HttpHandlerOptions, - ) => Effect.Effect< - CreateCapacityReservationCommandOutput, - SdkError | EC2ServiceError - >; - - /** - * @see {@link CreateCapacityReservationFleetCommand} - */ - readonly createCapacityReservationFleet: ( - args: CreateCapacityReservationFleetCommandInput, - options?: __HttpHandlerOptions, - ) => Effect.Effect< - CreateCapacityReservationFleetCommandOutput, - SdkError | EC2ServiceError - >; - - /** - * @see {@link CreateCarrierGatewayCommand} - */ - readonly createCarrierGateway: ( - args: CreateCarrierGatewayCommandInput, - options?: __HttpHandlerOptions, - ) => Effect.Effect< - CreateCarrierGatewayCommandOutput, - SdkError | EC2ServiceError - >; - - /** - * @see {@link CreateClientVpnEndpointCommand} - */ - readonly createClientVpnEndpoint: ( - args: CreateClientVpnEndpointCommandInput, - options?: __HttpHandlerOptions, - ) => Effect.Effect< - CreateClientVpnEndpointCommandOutput, - SdkError | EC2ServiceError - >; - - /** - * @see {@link CreateClientVpnRouteCommand} - */ - readonly createClientVpnRoute: ( - args: CreateClientVpnRouteCommandInput, - options?: __HttpHandlerOptions, - ) => Effect.Effect< - CreateClientVpnRouteCommandOutput, - SdkError | EC2ServiceError - >; - - /** - * @see {@link CreateCoipCidrCommand} - */ - readonly createCoipCidr: ( - args: CreateCoipCidrCommandInput, - options?: __HttpHandlerOptions, - ) => Effect.Effect; - - /** - * @see {@link CreateCoipPoolCommand} - */ - readonly createCoipPool: ( - args: CreateCoipPoolCommandInput, - options?: __HttpHandlerOptions, - ) => Effect.Effect; - - /** - * @see {@link CreateCustomerGatewayCommand} - */ - readonly createCustomerGateway: ( - args: CreateCustomerGatewayCommandInput, - options?: __HttpHandlerOptions, - ) => Effect.Effect< - CreateCustomerGatewayCommandOutput, - SdkError | EC2ServiceError - >; - - /** - * @see {@link CreateDefaultSubnetCommand} - */ - readonly createDefaultSubnet: ( - args: CreateDefaultSubnetCommandInput, - options?: __HttpHandlerOptions, - ) => Effect.Effect< - CreateDefaultSubnetCommandOutput, - SdkError | EC2ServiceError - >; - - /** - * @see {@link CreateDefaultVpcCommand} - */ - readonly createDefaultVpc: ( - args: CreateDefaultVpcCommandInput, - options?: __HttpHandlerOptions, - ) => Effect.Effect; - - /** - * @see {@link CreateDhcpOptionsCommand} - */ - readonly createDhcpOptions: ( - args: CreateDhcpOptionsCommandInput, - options?: __HttpHandlerOptions, - ) => Effect.Effect< - CreateDhcpOptionsCommandOutput, - SdkError | EC2ServiceError - >; - - /** - * @see {@link CreateEgressOnlyInternetGatewayCommand} - */ - readonly createEgressOnlyInternetGateway: ( - args: CreateEgressOnlyInternetGatewayCommandInput, - options?: __HttpHandlerOptions, - ) => Effect.Effect< - CreateEgressOnlyInternetGatewayCommandOutput, - SdkError | EC2ServiceError - >; - - /** - * @see {@link CreateFleetCommand} - */ - readonly createFleet: ( - args: CreateFleetCommandInput, - options?: __HttpHandlerOptions, - ) => Effect.Effect; - - /** - * @see {@link CreateFlowLogsCommand} - */ - readonly createFlowLogs: ( - args: CreateFlowLogsCommandInput, - options?: __HttpHandlerOptions, - ) => Effect.Effect; - - /** - * @see {@link CreateFpgaImageCommand} - */ - readonly createFpgaImage: ( - args: CreateFpgaImageCommandInput, - options?: __HttpHandlerOptions, - ) => Effect.Effect; - - /** - * @see {@link CreateImageCommand} - */ - readonly createImage: ( - args: CreateImageCommandInput, - options?: __HttpHandlerOptions, - ) => Effect.Effect; - - /** - * @see {@link CreateInstanceConnectEndpointCommand} - */ - readonly createInstanceConnectEndpoint: ( - args: CreateInstanceConnectEndpointCommandInput, - options?: __HttpHandlerOptions, - ) => Effect.Effect< - CreateInstanceConnectEndpointCommandOutput, - SdkError | EC2ServiceError - >; - - /** - * @see {@link CreateInstanceEventWindowCommand} - */ - readonly createInstanceEventWindow: ( - args: CreateInstanceEventWindowCommandInput, - options?: __HttpHandlerOptions, - ) => Effect.Effect< - CreateInstanceEventWindowCommandOutput, - SdkError | EC2ServiceError - >; - - /** - * @see {@link CreateInstanceExportTaskCommand} - */ - readonly createInstanceExportTask: ( - args: CreateInstanceExportTaskCommandInput, - options?: __HttpHandlerOptions, - ) => Effect.Effect< - CreateInstanceExportTaskCommandOutput, - SdkError | EC2ServiceError - >; - - /** - * @see {@link CreateInternetGatewayCommand} - */ - readonly createInternetGateway: ( - args: CreateInternetGatewayCommandInput, - options?: __HttpHandlerOptions, - ) => Effect.Effect< - CreateInternetGatewayCommandOutput, - SdkError | EC2ServiceError - >; - - /** - * @see {@link CreateIpamCommand} - */ - readonly createIpam: ( - args: CreateIpamCommandInput, - options?: __HttpHandlerOptions, - ) => Effect.Effect; - - /** - * @see {@link CreateIpamPoolCommand} - */ - readonly createIpamPool: ( - args: CreateIpamPoolCommandInput, - options?: __HttpHandlerOptions, - ) => Effect.Effect; - - /** - * @see {@link CreateIpamResourceDiscoveryCommand} - */ - readonly createIpamResourceDiscovery: ( - args: CreateIpamResourceDiscoveryCommandInput, - options?: __HttpHandlerOptions, - ) => Effect.Effect< - CreateIpamResourceDiscoveryCommandOutput, - SdkError | EC2ServiceError - >; - - /** - * @see {@link CreateIpamScopeCommand} - */ - readonly createIpamScope: ( - args: CreateIpamScopeCommandInput, - options?: __HttpHandlerOptions, - ) => Effect.Effect; - - /** - * @see {@link CreateKeyPairCommand} - */ - readonly createKeyPair: ( - args: CreateKeyPairCommandInput, - options?: __HttpHandlerOptions, - ) => Effect.Effect; - - /** - * @see {@link CreateLaunchTemplateCommand} - */ - readonly createLaunchTemplate: ( - args: CreateLaunchTemplateCommandInput, - options?: __HttpHandlerOptions, - ) => Effect.Effect< - CreateLaunchTemplateCommandOutput, - SdkError | EC2ServiceError - >; - - /** - * @see {@link CreateLaunchTemplateVersionCommand} - */ - readonly createLaunchTemplateVersion: ( - args: CreateLaunchTemplateVersionCommandInput, - options?: __HttpHandlerOptions, - ) => Effect.Effect< - CreateLaunchTemplateVersionCommandOutput, - SdkError | EC2ServiceError - >; - - /** - * @see {@link CreateLocalGatewayRouteCommand} - */ - readonly createLocalGatewayRoute: ( - args: CreateLocalGatewayRouteCommandInput, - options?: __HttpHandlerOptions, - ) => Effect.Effect< - CreateLocalGatewayRouteCommandOutput, - SdkError | EC2ServiceError - >; - - /** - * @see {@link CreateLocalGatewayRouteTableCommand} - */ - readonly createLocalGatewayRouteTable: ( - args: CreateLocalGatewayRouteTableCommandInput, - options?: __HttpHandlerOptions, - ) => Effect.Effect< - CreateLocalGatewayRouteTableCommandOutput, - SdkError | EC2ServiceError - >; - - /** - * @see {@link CreateLocalGatewayRouteTableVirtualInterfaceGroupAssociationCommand} - */ - readonly createLocalGatewayRouteTableVirtualInterfaceGroupAssociation: ( - args: CreateLocalGatewayRouteTableVirtualInterfaceGroupAssociationCommandInput, - options?: __HttpHandlerOptions, - ) => Effect.Effect< - CreateLocalGatewayRouteTableVirtualInterfaceGroupAssociationCommandOutput, - SdkError | EC2ServiceError - >; - - /** - * @see {@link CreateLocalGatewayRouteTableVpcAssociationCommand} - */ - readonly createLocalGatewayRouteTableVpcAssociation: ( - args: CreateLocalGatewayRouteTableVpcAssociationCommandInput, - options?: __HttpHandlerOptions, - ) => Effect.Effect< - CreateLocalGatewayRouteTableVpcAssociationCommandOutput, - SdkError | EC2ServiceError - >; - - /** - * @see {@link CreateManagedPrefixListCommand} - */ - readonly createManagedPrefixList: ( - args: CreateManagedPrefixListCommandInput, - options?: __HttpHandlerOptions, - ) => Effect.Effect< - CreateManagedPrefixListCommandOutput, - SdkError | EC2ServiceError - >; - - /** - * @see {@link CreateNatGatewayCommand} - */ - readonly createNatGateway: ( - args: CreateNatGatewayCommandInput, - options?: __HttpHandlerOptions, - ) => Effect.Effect; - - /** - * @see {@link CreateNetworkAclCommand} - */ - readonly createNetworkAcl: ( - args: CreateNetworkAclCommandInput, - options?: __HttpHandlerOptions, - ) => Effect.Effect; - - /** - * @see {@link CreateNetworkAclEntryCommand} - */ - readonly createNetworkAclEntry: ( - args: CreateNetworkAclEntryCommandInput, - options?: __HttpHandlerOptions, - ) => Effect.Effect< - CreateNetworkAclEntryCommandOutput, - SdkError | EC2ServiceError - >; - - /** - * @see {@link CreateNetworkInsightsAccessScopeCommand} - */ - readonly createNetworkInsightsAccessScope: ( - args: CreateNetworkInsightsAccessScopeCommandInput, - options?: __HttpHandlerOptions, - ) => Effect.Effect< - CreateNetworkInsightsAccessScopeCommandOutput, - SdkError | EC2ServiceError - >; - - /** - * @see {@link CreateNetworkInsightsPathCommand} - */ - readonly createNetworkInsightsPath: ( - args: CreateNetworkInsightsPathCommandInput, - options?: __HttpHandlerOptions, - ) => Effect.Effect< - CreateNetworkInsightsPathCommandOutput, - SdkError | EC2ServiceError - >; - - /** - * @see {@link CreateNetworkInterfaceCommand} - */ - readonly createNetworkInterface: ( - args: CreateNetworkInterfaceCommandInput, - options?: __HttpHandlerOptions, - ) => Effect.Effect< - CreateNetworkInterfaceCommandOutput, - SdkError | EC2ServiceError - >; - - /** - * @see {@link CreateNetworkInterfacePermissionCommand} - */ - readonly createNetworkInterfacePermission: ( - args: CreateNetworkInterfacePermissionCommandInput, - options?: __HttpHandlerOptions, - ) => Effect.Effect< - CreateNetworkInterfacePermissionCommandOutput, - SdkError | EC2ServiceError - >; - - /** - * @see {@link CreatePlacementGroupCommand} - */ - readonly createPlacementGroup: ( - args: CreatePlacementGroupCommandInput, - options?: __HttpHandlerOptions, - ) => Effect.Effect< - CreatePlacementGroupCommandOutput, - SdkError | EC2ServiceError - >; - - /** - * @see {@link CreatePublicIpv4PoolCommand} - */ - readonly createPublicIpv4Pool: ( - args: CreatePublicIpv4PoolCommandInput, - options?: __HttpHandlerOptions, - ) => Effect.Effect< - CreatePublicIpv4PoolCommandOutput, - SdkError | EC2ServiceError - >; - - /** - * @see {@link CreateReplaceRootVolumeTaskCommand} - */ - readonly createReplaceRootVolumeTask: ( - args: CreateReplaceRootVolumeTaskCommandInput, - options?: __HttpHandlerOptions, - ) => Effect.Effect< - CreateReplaceRootVolumeTaskCommandOutput, - SdkError | EC2ServiceError - >; - - /** - * @see {@link CreateReservedInstancesListingCommand} - */ - readonly createReservedInstancesListing: ( - args: CreateReservedInstancesListingCommandInput, - options?: __HttpHandlerOptions, - ) => Effect.Effect< - CreateReservedInstancesListingCommandOutput, - SdkError | EC2ServiceError - >; - - /** - * @see {@link CreateRestoreImageTaskCommand} - */ - readonly createRestoreImageTask: ( - args: CreateRestoreImageTaskCommandInput, - options?: __HttpHandlerOptions, - ) => Effect.Effect< - CreateRestoreImageTaskCommandOutput, - SdkError | EC2ServiceError - >; - - /** - * @see {@link CreateRouteCommand} - */ - readonly createRoute: ( - args: CreateRouteCommandInput, - options?: __HttpHandlerOptions, - ) => Effect.Effect; - - /** - * @see {@link CreateRouteTableCommand} - */ - readonly createRouteTable: ( - args: CreateRouteTableCommandInput, - options?: __HttpHandlerOptions, - ) => Effect.Effect; - - /** - * @see {@link CreateSecurityGroupCommand} - */ - readonly createSecurityGroup: ( - args: CreateSecurityGroupCommandInput, - options?: __HttpHandlerOptions, - ) => Effect.Effect< - CreateSecurityGroupCommandOutput, - SdkError | EC2ServiceError - >; - - /** - * @see {@link CreateSnapshotCommand} - */ - readonly createSnapshot: ( - args: CreateSnapshotCommandInput, - options?: __HttpHandlerOptions, - ) => Effect.Effect; - - /** - * @see {@link CreateSnapshotsCommand} - */ - readonly createSnapshots: ( - args: CreateSnapshotsCommandInput, - options?: __HttpHandlerOptions, - ) => Effect.Effect; - - /** - * @see {@link CreateSpotDatafeedSubscriptionCommand} - */ - readonly createSpotDatafeedSubscription: ( - args: CreateSpotDatafeedSubscriptionCommandInput, - options?: __HttpHandlerOptions, - ) => Effect.Effect< - CreateSpotDatafeedSubscriptionCommandOutput, - SdkError | EC2ServiceError - >; - - /** - * @see {@link CreateStoreImageTaskCommand} - */ - readonly createStoreImageTask: ( - args: CreateStoreImageTaskCommandInput, - options?: __HttpHandlerOptions, - ) => Effect.Effect< - CreateStoreImageTaskCommandOutput, - SdkError | EC2ServiceError - >; - - /** - * @see {@link CreateSubnetCommand} - */ - readonly createSubnet: ( - args: CreateSubnetCommandInput, - options?: __HttpHandlerOptions, - ) => Effect.Effect; - - /** - * @see {@link CreateSubnetCidrReservationCommand} - */ - readonly createSubnetCidrReservation: ( - args: CreateSubnetCidrReservationCommandInput, - options?: __HttpHandlerOptions, - ) => Effect.Effect< - CreateSubnetCidrReservationCommandOutput, - SdkError | EC2ServiceError - >; - - /** - * @see {@link CreateTagsCommand} - */ - readonly createTags: ( - args: CreateTagsCommandInput, - options?: __HttpHandlerOptions, - ) => Effect.Effect; - - /** - * @see {@link CreateTrafficMirrorFilterCommand} - */ - readonly createTrafficMirrorFilter: ( - args: CreateTrafficMirrorFilterCommandInput, - options?: __HttpHandlerOptions, - ) => Effect.Effect< - CreateTrafficMirrorFilterCommandOutput, - SdkError | EC2ServiceError - >; - - /** - * @see {@link CreateTrafficMirrorFilterRuleCommand} - */ - readonly createTrafficMirrorFilterRule: ( - args: CreateTrafficMirrorFilterRuleCommandInput, - options?: __HttpHandlerOptions, - ) => Effect.Effect< - CreateTrafficMirrorFilterRuleCommandOutput, - SdkError | EC2ServiceError - >; - - /** - * @see {@link CreateTrafficMirrorSessionCommand} - */ - readonly createTrafficMirrorSession: ( - args: CreateTrafficMirrorSessionCommandInput, - options?: __HttpHandlerOptions, - ) => Effect.Effect< - CreateTrafficMirrorSessionCommandOutput, - SdkError | EC2ServiceError - >; - - /** - * @see {@link CreateTrafficMirrorTargetCommand} - */ - readonly createTrafficMirrorTarget: ( - args: CreateTrafficMirrorTargetCommandInput, - options?: __HttpHandlerOptions, - ) => Effect.Effect< - CreateTrafficMirrorTargetCommandOutput, - SdkError | EC2ServiceError - >; - - /** - * @see {@link CreateTransitGatewayCommand} - */ - readonly createTransitGateway: ( - args: CreateTransitGatewayCommandInput, - options?: __HttpHandlerOptions, - ) => Effect.Effect< - CreateTransitGatewayCommandOutput, - SdkError | EC2ServiceError - >; - - /** - * @see {@link CreateTransitGatewayConnectCommand} - */ - readonly createTransitGatewayConnect: ( - args: CreateTransitGatewayConnectCommandInput, - options?: __HttpHandlerOptions, - ) => Effect.Effect< - CreateTransitGatewayConnectCommandOutput, - SdkError | EC2ServiceError - >; - - /** - * @see {@link CreateTransitGatewayConnectPeerCommand} - */ - readonly createTransitGatewayConnectPeer: ( - args: CreateTransitGatewayConnectPeerCommandInput, - options?: __HttpHandlerOptions, - ) => Effect.Effect< - CreateTransitGatewayConnectPeerCommandOutput, - SdkError | EC2ServiceError - >; - - /** - * @see {@link CreateTransitGatewayMulticastDomainCommand} - */ - readonly createTransitGatewayMulticastDomain: ( - args: CreateTransitGatewayMulticastDomainCommandInput, - options?: __HttpHandlerOptions, - ) => Effect.Effect< - CreateTransitGatewayMulticastDomainCommandOutput, - SdkError | EC2ServiceError - >; - - /** - * @see {@link CreateTransitGatewayPeeringAttachmentCommand} - */ - readonly createTransitGatewayPeeringAttachment: ( - args: CreateTransitGatewayPeeringAttachmentCommandInput, - options?: __HttpHandlerOptions, - ) => Effect.Effect< - CreateTransitGatewayPeeringAttachmentCommandOutput, - SdkError | EC2ServiceError - >; - - /** - * @see {@link CreateTransitGatewayPolicyTableCommand} - */ - readonly createTransitGatewayPolicyTable: ( - args: CreateTransitGatewayPolicyTableCommandInput, - options?: __HttpHandlerOptions, - ) => Effect.Effect< - CreateTransitGatewayPolicyTableCommandOutput, - SdkError | EC2ServiceError - >; - - /** - * @see {@link CreateTransitGatewayPrefixListReferenceCommand} - */ - readonly createTransitGatewayPrefixListReference: ( - args: CreateTransitGatewayPrefixListReferenceCommandInput, - options?: __HttpHandlerOptions, - ) => Effect.Effect< - CreateTransitGatewayPrefixListReferenceCommandOutput, - SdkError | EC2ServiceError - >; - - /** - * @see {@link CreateTransitGatewayRouteCommand} - */ - readonly createTransitGatewayRoute: ( - args: CreateTransitGatewayRouteCommandInput, - options?: __HttpHandlerOptions, - ) => Effect.Effect< - CreateTransitGatewayRouteCommandOutput, - SdkError | EC2ServiceError - >; - - /** - * @see {@link CreateTransitGatewayRouteTableCommand} - */ - readonly createTransitGatewayRouteTable: ( - args: CreateTransitGatewayRouteTableCommandInput, - options?: __HttpHandlerOptions, - ) => Effect.Effect< - CreateTransitGatewayRouteTableCommandOutput, - SdkError | EC2ServiceError - >; - - /** - * @see {@link CreateTransitGatewayRouteTableAnnouncementCommand} - */ - readonly createTransitGatewayRouteTableAnnouncement: ( - args: CreateTransitGatewayRouteTableAnnouncementCommandInput, - options?: __HttpHandlerOptions, - ) => Effect.Effect< - CreateTransitGatewayRouteTableAnnouncementCommandOutput, - SdkError | EC2ServiceError - >; - - /** - * @see {@link CreateTransitGatewayVpcAttachmentCommand} - */ - readonly createTransitGatewayVpcAttachment: ( - args: CreateTransitGatewayVpcAttachmentCommandInput, - options?: __HttpHandlerOptions, - ) => Effect.Effect< - CreateTransitGatewayVpcAttachmentCommandOutput, - SdkError | EC2ServiceError - >; - - /** - * @see {@link CreateVerifiedAccessEndpointCommand} - */ - readonly createVerifiedAccessEndpoint: ( - args: CreateVerifiedAccessEndpointCommandInput, - options?: __HttpHandlerOptions, - ) => Effect.Effect< - CreateVerifiedAccessEndpointCommandOutput, - SdkError | EC2ServiceError - >; - - /** - * @see {@link CreateVerifiedAccessGroupCommand} - */ - readonly createVerifiedAccessGroup: ( - args: CreateVerifiedAccessGroupCommandInput, - options?: __HttpHandlerOptions, - ) => Effect.Effect< - CreateVerifiedAccessGroupCommandOutput, - SdkError | EC2ServiceError - >; - - /** - * @see {@link CreateVerifiedAccessInstanceCommand} - */ - readonly createVerifiedAccessInstance: ( - args: CreateVerifiedAccessInstanceCommandInput, - options?: __HttpHandlerOptions, - ) => Effect.Effect< - CreateVerifiedAccessInstanceCommandOutput, - SdkError | EC2ServiceError - >; - - /** - * @see {@link CreateVerifiedAccessTrustProviderCommand} - */ - readonly createVerifiedAccessTrustProvider: ( - args: CreateVerifiedAccessTrustProviderCommandInput, - options?: __HttpHandlerOptions, - ) => Effect.Effect< - CreateVerifiedAccessTrustProviderCommandOutput, - SdkError | EC2ServiceError - >; - - /** - * @see {@link CreateVolumeCommand} - */ - readonly createVolume: ( - args: CreateVolumeCommandInput, - options?: __HttpHandlerOptions, - ) => Effect.Effect; - - /** - * @see {@link CreateVpcCommand} - */ - readonly createVpc: ( - args: CreateVpcCommandInput, - options?: __HttpHandlerOptions, - ) => Effect.Effect; - - /** - * @see {@link CreateVpcEndpointCommand} - */ - readonly createVpcEndpoint: ( - args: CreateVpcEndpointCommandInput, - options?: __HttpHandlerOptions, - ) => Effect.Effect< - CreateVpcEndpointCommandOutput, - SdkError | EC2ServiceError - >; - - /** - * @see {@link CreateVpcEndpointConnectionNotificationCommand} - */ - readonly createVpcEndpointConnectionNotification: ( - args: CreateVpcEndpointConnectionNotificationCommandInput, - options?: __HttpHandlerOptions, - ) => Effect.Effect< - CreateVpcEndpointConnectionNotificationCommandOutput, - SdkError | EC2ServiceError - >; - - /** - * @see {@link CreateVpcEndpointServiceConfigurationCommand} - */ - readonly createVpcEndpointServiceConfiguration: ( - args: CreateVpcEndpointServiceConfigurationCommandInput, - options?: __HttpHandlerOptions, - ) => Effect.Effect< - CreateVpcEndpointServiceConfigurationCommandOutput, - SdkError | EC2ServiceError - >; - - /** - * @see {@link CreateVpcPeeringConnectionCommand} - */ - readonly createVpcPeeringConnection: ( - args: CreateVpcPeeringConnectionCommandInput, - options?: __HttpHandlerOptions, - ) => Effect.Effect< - CreateVpcPeeringConnectionCommandOutput, - SdkError | EC2ServiceError - >; - - /** - * @see {@link CreateVpnConnectionCommand} - */ - readonly createVpnConnection: ( - args: CreateVpnConnectionCommandInput, - options?: __HttpHandlerOptions, - ) => Effect.Effect< - CreateVpnConnectionCommandOutput, - SdkError | EC2ServiceError - >; - - /** - * @see {@link CreateVpnConnectionRouteCommand} - */ - readonly createVpnConnectionRoute: ( - args: CreateVpnConnectionRouteCommandInput, - options?: __HttpHandlerOptions, - ) => Effect.Effect< - CreateVpnConnectionRouteCommandOutput, - SdkError | EC2ServiceError - >; - - /** - * @see {@link CreateVpnGatewayCommand} - */ - readonly createVpnGateway: ( - args: CreateVpnGatewayCommandInput, - options?: __HttpHandlerOptions, - ) => Effect.Effect; - - /** - * @see {@link DeleteCarrierGatewayCommand} - */ - readonly deleteCarrierGateway: ( - args: DeleteCarrierGatewayCommandInput, - options?: __HttpHandlerOptions, - ) => Effect.Effect< - DeleteCarrierGatewayCommandOutput, - SdkError | EC2ServiceError - >; - - /** - * @see {@link DeleteClientVpnEndpointCommand} - */ - readonly deleteClientVpnEndpoint: ( - args: DeleteClientVpnEndpointCommandInput, - options?: __HttpHandlerOptions, - ) => Effect.Effect< - DeleteClientVpnEndpointCommandOutput, - SdkError | EC2ServiceError - >; - - /** - * @see {@link DeleteClientVpnRouteCommand} - */ - readonly deleteClientVpnRoute: ( - args: DeleteClientVpnRouteCommandInput, - options?: __HttpHandlerOptions, - ) => Effect.Effect< - DeleteClientVpnRouteCommandOutput, - SdkError | EC2ServiceError - >; - - /** - * @see {@link DeleteCoipCidrCommand} - */ - readonly deleteCoipCidr: ( - args: DeleteCoipCidrCommandInput, - options?: __HttpHandlerOptions, - ) => Effect.Effect; - - /** - * @see {@link DeleteCoipPoolCommand} - */ - readonly deleteCoipPool: ( - args: DeleteCoipPoolCommandInput, - options?: __HttpHandlerOptions, - ) => Effect.Effect; - - /** - * @see {@link DeleteCustomerGatewayCommand} - */ - readonly deleteCustomerGateway: ( - args: DeleteCustomerGatewayCommandInput, - options?: __HttpHandlerOptions, - ) => Effect.Effect< - DeleteCustomerGatewayCommandOutput, - SdkError | EC2ServiceError - >; - - /** - * @see {@link DeleteDhcpOptionsCommand} - */ - readonly deleteDhcpOptions: ( - args: DeleteDhcpOptionsCommandInput, - options?: __HttpHandlerOptions, - ) => Effect.Effect< - DeleteDhcpOptionsCommandOutput, - SdkError | EC2ServiceError - >; - - /** - * @see {@link DeleteEgressOnlyInternetGatewayCommand} - */ - readonly deleteEgressOnlyInternetGateway: ( - args: DeleteEgressOnlyInternetGatewayCommandInput, - options?: __HttpHandlerOptions, - ) => Effect.Effect< - DeleteEgressOnlyInternetGatewayCommandOutput, - SdkError | EC2ServiceError - >; - - /** - * @see {@link DeleteFleetsCommand} - */ - readonly deleteFleets: ( - args: DeleteFleetsCommandInput, - options?: __HttpHandlerOptions, - ) => Effect.Effect; - - /** - * @see {@link DeleteFlowLogsCommand} - */ - readonly deleteFlowLogs: ( - args: DeleteFlowLogsCommandInput, - options?: __HttpHandlerOptions, - ) => Effect.Effect; - - /** - * @see {@link DeleteFpgaImageCommand} - */ - readonly deleteFpgaImage: ( - args: DeleteFpgaImageCommandInput, - options?: __HttpHandlerOptions, - ) => Effect.Effect; - - /** - * @see {@link DeleteInstanceConnectEndpointCommand} - */ - readonly deleteInstanceConnectEndpoint: ( - args: DeleteInstanceConnectEndpointCommandInput, - options?: __HttpHandlerOptions, - ) => Effect.Effect< - DeleteInstanceConnectEndpointCommandOutput, - SdkError | EC2ServiceError - >; - - /** - * @see {@link DeleteInstanceEventWindowCommand} - */ - readonly deleteInstanceEventWindow: ( - args: DeleteInstanceEventWindowCommandInput, - options?: __HttpHandlerOptions, - ) => Effect.Effect< - DeleteInstanceEventWindowCommandOutput, - SdkError | EC2ServiceError - >; - - /** - * @see {@link DeleteInternetGatewayCommand} - */ - readonly deleteInternetGateway: ( - args: DeleteInternetGatewayCommandInput, - options?: __HttpHandlerOptions, - ) => Effect.Effect< - DeleteInternetGatewayCommandOutput, - SdkError | EC2ServiceError - >; - - /** - * @see {@link DeleteIpamCommand} - */ - readonly deleteIpam: ( - args: DeleteIpamCommandInput, - options?: __HttpHandlerOptions, - ) => Effect.Effect; - - /** - * @see {@link DeleteIpamPoolCommand} - */ - readonly deleteIpamPool: ( - args: DeleteIpamPoolCommandInput, - options?: __HttpHandlerOptions, - ) => Effect.Effect; - - /** - * @see {@link DeleteIpamResourceDiscoveryCommand} - */ - readonly deleteIpamResourceDiscovery: ( - args: DeleteIpamResourceDiscoveryCommandInput, - options?: __HttpHandlerOptions, - ) => Effect.Effect< - DeleteIpamResourceDiscoveryCommandOutput, - SdkError | EC2ServiceError - >; - - /** - * @see {@link DeleteIpamScopeCommand} - */ - readonly deleteIpamScope: ( - args: DeleteIpamScopeCommandInput, - options?: __HttpHandlerOptions, - ) => Effect.Effect; - - /** - * @see {@link DeleteKeyPairCommand} - */ - readonly deleteKeyPair: ( - args: DeleteKeyPairCommandInput, - options?: __HttpHandlerOptions, - ) => Effect.Effect; - - /** - * @see {@link DeleteLaunchTemplateCommand} - */ - readonly deleteLaunchTemplate: ( - args: DeleteLaunchTemplateCommandInput, - options?: __HttpHandlerOptions, - ) => Effect.Effect< - DeleteLaunchTemplateCommandOutput, - SdkError | EC2ServiceError - >; - - /** - * @see {@link DeleteLaunchTemplateVersionsCommand} - */ - readonly deleteLaunchTemplateVersions: ( - args: DeleteLaunchTemplateVersionsCommandInput, - options?: __HttpHandlerOptions, - ) => Effect.Effect< - DeleteLaunchTemplateVersionsCommandOutput, - SdkError | EC2ServiceError - >; - - /** - * @see {@link DeleteLocalGatewayRouteCommand} - */ - readonly deleteLocalGatewayRoute: ( - args: DeleteLocalGatewayRouteCommandInput, - options?: __HttpHandlerOptions, - ) => Effect.Effect< - DeleteLocalGatewayRouteCommandOutput, - SdkError | EC2ServiceError - >; - - /** - * @see {@link DeleteLocalGatewayRouteTableCommand} - */ - readonly deleteLocalGatewayRouteTable: ( - args: DeleteLocalGatewayRouteTableCommandInput, - options?: __HttpHandlerOptions, - ) => Effect.Effect< - DeleteLocalGatewayRouteTableCommandOutput, - SdkError | EC2ServiceError - >; - - /** - * @see {@link DeleteLocalGatewayRouteTableVirtualInterfaceGroupAssociationCommand} - */ - readonly deleteLocalGatewayRouteTableVirtualInterfaceGroupAssociation: ( - args: DeleteLocalGatewayRouteTableVirtualInterfaceGroupAssociationCommandInput, - options?: __HttpHandlerOptions, - ) => Effect.Effect< - DeleteLocalGatewayRouteTableVirtualInterfaceGroupAssociationCommandOutput, - SdkError | EC2ServiceError - >; - - /** - * @see {@link DeleteLocalGatewayRouteTableVpcAssociationCommand} - */ - readonly deleteLocalGatewayRouteTableVpcAssociation: ( - args: DeleteLocalGatewayRouteTableVpcAssociationCommandInput, - options?: __HttpHandlerOptions, - ) => Effect.Effect< - DeleteLocalGatewayRouteTableVpcAssociationCommandOutput, - SdkError | EC2ServiceError - >; - - /** - * @see {@link DeleteManagedPrefixListCommand} - */ - readonly deleteManagedPrefixList: ( - args: DeleteManagedPrefixListCommandInput, - options?: __HttpHandlerOptions, - ) => Effect.Effect< - DeleteManagedPrefixListCommandOutput, - SdkError | EC2ServiceError - >; - - /** - * @see {@link DeleteNatGatewayCommand} - */ - readonly deleteNatGateway: ( - args: DeleteNatGatewayCommandInput, - options?: __HttpHandlerOptions, - ) => Effect.Effect; - - /** - * @see {@link DeleteNetworkAclCommand} - */ - readonly deleteNetworkAcl: ( - args: DeleteNetworkAclCommandInput, - options?: __HttpHandlerOptions, - ) => Effect.Effect; - - /** - * @see {@link DeleteNetworkAclEntryCommand} - */ - readonly deleteNetworkAclEntry: ( - args: DeleteNetworkAclEntryCommandInput, - options?: __HttpHandlerOptions, - ) => Effect.Effect< - DeleteNetworkAclEntryCommandOutput, - SdkError | EC2ServiceError - >; - - /** - * @see {@link DeleteNetworkInsightsAccessScopeCommand} - */ - readonly deleteNetworkInsightsAccessScope: ( - args: DeleteNetworkInsightsAccessScopeCommandInput, - options?: __HttpHandlerOptions, - ) => Effect.Effect< - DeleteNetworkInsightsAccessScopeCommandOutput, - SdkError | EC2ServiceError - >; - - /** - * @see {@link DeleteNetworkInsightsAccessScopeAnalysisCommand} - */ - readonly deleteNetworkInsightsAccessScopeAnalysis: ( - args: DeleteNetworkInsightsAccessScopeAnalysisCommandInput, - options?: __HttpHandlerOptions, - ) => Effect.Effect< - DeleteNetworkInsightsAccessScopeAnalysisCommandOutput, - SdkError | EC2ServiceError - >; - - /** - * @see {@link DeleteNetworkInsightsAnalysisCommand} - */ - readonly deleteNetworkInsightsAnalysis: ( - args: DeleteNetworkInsightsAnalysisCommandInput, - options?: __HttpHandlerOptions, - ) => Effect.Effect< - DeleteNetworkInsightsAnalysisCommandOutput, - SdkError | EC2ServiceError - >; - - /** - * @see {@link DeleteNetworkInsightsPathCommand} - */ - readonly deleteNetworkInsightsPath: ( - args: DeleteNetworkInsightsPathCommandInput, - options?: __HttpHandlerOptions, - ) => Effect.Effect< - DeleteNetworkInsightsPathCommandOutput, - SdkError | EC2ServiceError - >; - - /** - * @see {@link DeleteNetworkInterfaceCommand} - */ - readonly deleteNetworkInterface: ( - args: DeleteNetworkInterfaceCommandInput, - options?: __HttpHandlerOptions, - ) => Effect.Effect< - DeleteNetworkInterfaceCommandOutput, - SdkError | EC2ServiceError - >; - - /** - * @see {@link DeleteNetworkInterfacePermissionCommand} - */ - readonly deleteNetworkInterfacePermission: ( - args: DeleteNetworkInterfacePermissionCommandInput, - options?: __HttpHandlerOptions, - ) => Effect.Effect< - DeleteNetworkInterfacePermissionCommandOutput, - SdkError | EC2ServiceError - >; - - /** - * @see {@link DeletePlacementGroupCommand} - */ - readonly deletePlacementGroup: ( - args: DeletePlacementGroupCommandInput, - options?: __HttpHandlerOptions, - ) => Effect.Effect< - DeletePlacementGroupCommandOutput, - SdkError | EC2ServiceError - >; - - /** - * @see {@link DeletePublicIpv4PoolCommand} - */ - readonly deletePublicIpv4Pool: ( - args: DeletePublicIpv4PoolCommandInput, - options?: __HttpHandlerOptions, - ) => Effect.Effect< - DeletePublicIpv4PoolCommandOutput, - SdkError | EC2ServiceError - >; - - /** - * @see {@link DeleteQueuedReservedInstancesCommand} - */ - readonly deleteQueuedReservedInstances: ( - args: DeleteQueuedReservedInstancesCommandInput, - options?: __HttpHandlerOptions, - ) => Effect.Effect< - DeleteQueuedReservedInstancesCommandOutput, - SdkError | EC2ServiceError - >; - - /** - * @see {@link DeleteRouteCommand} - */ - readonly deleteRoute: ( - args: DeleteRouteCommandInput, - options?: __HttpHandlerOptions, - ) => Effect.Effect; - - /** - * @see {@link DeleteRouteTableCommand} - */ - readonly deleteRouteTable: ( - args: DeleteRouteTableCommandInput, - options?: __HttpHandlerOptions, - ) => Effect.Effect; - - /** - * @see {@link DeleteSecurityGroupCommand} - */ - readonly deleteSecurityGroup: ( - args: DeleteSecurityGroupCommandInput, - options?: __HttpHandlerOptions, - ) => Effect.Effect< - DeleteSecurityGroupCommandOutput, - SdkError | EC2ServiceError - >; - - /** - * @see {@link DeleteSnapshotCommand} - */ - readonly deleteSnapshot: ( - args: DeleteSnapshotCommandInput, - options?: __HttpHandlerOptions, - ) => Effect.Effect; - - /** - * @see {@link DeleteSpotDatafeedSubscriptionCommand} - */ - readonly deleteSpotDatafeedSubscription: ( - args: DeleteSpotDatafeedSubscriptionCommandInput, - options?: __HttpHandlerOptions, - ) => Effect.Effect< - DeleteSpotDatafeedSubscriptionCommandOutput, - SdkError | EC2ServiceError - >; - - /** - * @see {@link DeleteSubnetCommand} - */ - readonly deleteSubnet: ( - args: DeleteSubnetCommandInput, - options?: __HttpHandlerOptions, - ) => Effect.Effect; - - /** - * @see {@link DeleteSubnetCidrReservationCommand} - */ - readonly deleteSubnetCidrReservation: ( - args: DeleteSubnetCidrReservationCommandInput, - options?: __HttpHandlerOptions, - ) => Effect.Effect< - DeleteSubnetCidrReservationCommandOutput, - SdkError | EC2ServiceError - >; - - /** - * @see {@link DeleteTagsCommand} - */ - readonly deleteTags: ( - args: DeleteTagsCommandInput, - options?: __HttpHandlerOptions, - ) => Effect.Effect; - - /** - * @see {@link DeleteTrafficMirrorFilterCommand} - */ - readonly deleteTrafficMirrorFilter: ( - args: DeleteTrafficMirrorFilterCommandInput, - options?: __HttpHandlerOptions, - ) => Effect.Effect< - DeleteTrafficMirrorFilterCommandOutput, - SdkError | EC2ServiceError - >; - - /** - * @see {@link DeleteTrafficMirrorFilterRuleCommand} - */ - readonly deleteTrafficMirrorFilterRule: ( - args: DeleteTrafficMirrorFilterRuleCommandInput, - options?: __HttpHandlerOptions, - ) => Effect.Effect< - DeleteTrafficMirrorFilterRuleCommandOutput, - SdkError | EC2ServiceError - >; - - /** - * @see {@link DeleteTrafficMirrorSessionCommand} - */ - readonly deleteTrafficMirrorSession: ( - args: DeleteTrafficMirrorSessionCommandInput, - options?: __HttpHandlerOptions, - ) => Effect.Effect< - DeleteTrafficMirrorSessionCommandOutput, - SdkError | EC2ServiceError - >; - - /** - * @see {@link DeleteTrafficMirrorTargetCommand} - */ - readonly deleteTrafficMirrorTarget: ( - args: DeleteTrafficMirrorTargetCommandInput, - options?: __HttpHandlerOptions, - ) => Effect.Effect< - DeleteTrafficMirrorTargetCommandOutput, - SdkError | EC2ServiceError - >; - - /** - * @see {@link DeleteTransitGatewayCommand} - */ - readonly deleteTransitGateway: ( - args: DeleteTransitGatewayCommandInput, - options?: __HttpHandlerOptions, - ) => Effect.Effect< - DeleteTransitGatewayCommandOutput, - SdkError | EC2ServiceError - >; - - /** - * @see {@link DeleteTransitGatewayConnectCommand} - */ - readonly deleteTransitGatewayConnect: ( - args: DeleteTransitGatewayConnectCommandInput, - options?: __HttpHandlerOptions, - ) => Effect.Effect< - DeleteTransitGatewayConnectCommandOutput, - SdkError | EC2ServiceError - >; - - /** - * @see {@link DeleteTransitGatewayConnectPeerCommand} - */ - readonly deleteTransitGatewayConnectPeer: ( - args: DeleteTransitGatewayConnectPeerCommandInput, - options?: __HttpHandlerOptions, - ) => Effect.Effect< - DeleteTransitGatewayConnectPeerCommandOutput, - SdkError | EC2ServiceError - >; - - /** - * @see {@link DeleteTransitGatewayMulticastDomainCommand} - */ - readonly deleteTransitGatewayMulticastDomain: ( - args: DeleteTransitGatewayMulticastDomainCommandInput, - options?: __HttpHandlerOptions, - ) => Effect.Effect< - DeleteTransitGatewayMulticastDomainCommandOutput, - SdkError | EC2ServiceError - >; - - /** - * @see {@link DeleteTransitGatewayPeeringAttachmentCommand} - */ - readonly deleteTransitGatewayPeeringAttachment: ( - args: DeleteTransitGatewayPeeringAttachmentCommandInput, - options?: __HttpHandlerOptions, - ) => Effect.Effect< - DeleteTransitGatewayPeeringAttachmentCommandOutput, - SdkError | EC2ServiceError - >; - - /** - * @see {@link DeleteTransitGatewayPolicyTableCommand} - */ - readonly deleteTransitGatewayPolicyTable: ( - args: DeleteTransitGatewayPolicyTableCommandInput, - options?: __HttpHandlerOptions, - ) => Effect.Effect< - DeleteTransitGatewayPolicyTableCommandOutput, - SdkError | EC2ServiceError - >; - - /** - * @see {@link DeleteTransitGatewayPrefixListReferenceCommand} - */ - readonly deleteTransitGatewayPrefixListReference: ( - args: DeleteTransitGatewayPrefixListReferenceCommandInput, - options?: __HttpHandlerOptions, - ) => Effect.Effect< - DeleteTransitGatewayPrefixListReferenceCommandOutput, - SdkError | EC2ServiceError - >; - - /** - * @see {@link DeleteTransitGatewayRouteCommand} - */ - readonly deleteTransitGatewayRoute: ( - args: DeleteTransitGatewayRouteCommandInput, - options?: __HttpHandlerOptions, - ) => Effect.Effect< - DeleteTransitGatewayRouteCommandOutput, - SdkError | EC2ServiceError - >; - - /** - * @see {@link DeleteTransitGatewayRouteTableCommand} - */ - readonly deleteTransitGatewayRouteTable: ( - args: DeleteTransitGatewayRouteTableCommandInput, - options?: __HttpHandlerOptions, - ) => Effect.Effect< - DeleteTransitGatewayRouteTableCommandOutput, - SdkError | EC2ServiceError - >; - - /** - * @see {@link DeleteTransitGatewayRouteTableAnnouncementCommand} - */ - readonly deleteTransitGatewayRouteTableAnnouncement: ( - args: DeleteTransitGatewayRouteTableAnnouncementCommandInput, - options?: __HttpHandlerOptions, - ) => Effect.Effect< - DeleteTransitGatewayRouteTableAnnouncementCommandOutput, - SdkError | EC2ServiceError - >; - - /** - * @see {@link DeleteTransitGatewayVpcAttachmentCommand} - */ - readonly deleteTransitGatewayVpcAttachment: ( - args: DeleteTransitGatewayVpcAttachmentCommandInput, - options?: __HttpHandlerOptions, - ) => Effect.Effect< - DeleteTransitGatewayVpcAttachmentCommandOutput, - SdkError | EC2ServiceError - >; - - /** - * @see {@link DeleteVerifiedAccessEndpointCommand} - */ - readonly deleteVerifiedAccessEndpoint: ( - args: DeleteVerifiedAccessEndpointCommandInput, - options?: __HttpHandlerOptions, - ) => Effect.Effect< - DeleteVerifiedAccessEndpointCommandOutput, - SdkError | EC2ServiceError - >; - - /** - * @see {@link DeleteVerifiedAccessGroupCommand} - */ - readonly deleteVerifiedAccessGroup: ( - args: DeleteVerifiedAccessGroupCommandInput, - options?: __HttpHandlerOptions, - ) => Effect.Effect< - DeleteVerifiedAccessGroupCommandOutput, - SdkError | EC2ServiceError - >; - - /** - * @see {@link DeleteVerifiedAccessInstanceCommand} - */ - readonly deleteVerifiedAccessInstance: ( - args: DeleteVerifiedAccessInstanceCommandInput, - options?: __HttpHandlerOptions, - ) => Effect.Effect< - DeleteVerifiedAccessInstanceCommandOutput, - SdkError | EC2ServiceError - >; - - /** - * @see {@link DeleteVerifiedAccessTrustProviderCommand} - */ - readonly deleteVerifiedAccessTrustProvider: ( - args: DeleteVerifiedAccessTrustProviderCommandInput, - options?: __HttpHandlerOptions, - ) => Effect.Effect< - DeleteVerifiedAccessTrustProviderCommandOutput, - SdkError | EC2ServiceError - >; - - /** - * @see {@link DeleteVolumeCommand} - */ - readonly deleteVolume: ( - args: DeleteVolumeCommandInput, - options?: __HttpHandlerOptions, - ) => Effect.Effect; - - /** - * @see {@link DeleteVpcCommand} - */ - readonly deleteVpc: ( - args: DeleteVpcCommandInput, - options?: __HttpHandlerOptions, - ) => Effect.Effect; - - /** - * @see {@link DeleteVpcEndpointConnectionNotificationsCommand} - */ - readonly deleteVpcEndpointConnectionNotifications: ( - args: DeleteVpcEndpointConnectionNotificationsCommandInput, - options?: __HttpHandlerOptions, - ) => Effect.Effect< - DeleteVpcEndpointConnectionNotificationsCommandOutput, - SdkError | EC2ServiceError - >; - - /** - * @see {@link DeleteVpcEndpointsCommand} - */ - readonly deleteVpcEndpoints: ( - args: DeleteVpcEndpointsCommandInput, - options?: __HttpHandlerOptions, - ) => Effect.Effect< - DeleteVpcEndpointsCommandOutput, - SdkError | EC2ServiceError - >; - - /** - * @see {@link DeleteVpcEndpointServiceConfigurationsCommand} - */ - readonly deleteVpcEndpointServiceConfigurations: ( - args: DeleteVpcEndpointServiceConfigurationsCommandInput, - options?: __HttpHandlerOptions, - ) => Effect.Effect< - DeleteVpcEndpointServiceConfigurationsCommandOutput, - SdkError | EC2ServiceError - >; - - /** - * @see {@link DeleteVpcPeeringConnectionCommand} - */ - readonly deleteVpcPeeringConnection: ( - args: DeleteVpcPeeringConnectionCommandInput, - options?: __HttpHandlerOptions, - ) => Effect.Effect< - DeleteVpcPeeringConnectionCommandOutput, - SdkError | EC2ServiceError - >; - - /** - * @see {@link DeleteVpnConnectionCommand} - */ - readonly deleteVpnConnection: ( - args: DeleteVpnConnectionCommandInput, - options?: __HttpHandlerOptions, - ) => Effect.Effect< - DeleteVpnConnectionCommandOutput, - SdkError | EC2ServiceError - >; - - /** - * @see {@link DeleteVpnConnectionRouteCommand} - */ - readonly deleteVpnConnectionRoute: ( - args: DeleteVpnConnectionRouteCommandInput, - options?: __HttpHandlerOptions, - ) => Effect.Effect< - DeleteVpnConnectionRouteCommandOutput, - SdkError | EC2ServiceError - >; - - /** - * @see {@link DeleteVpnGatewayCommand} - */ - readonly deleteVpnGateway: ( - args: DeleteVpnGatewayCommandInput, - options?: __HttpHandlerOptions, - ) => Effect.Effect; - - /** - * @see {@link DeprovisionByoipCidrCommand} - */ - readonly deprovisionByoipCidr: ( - args: DeprovisionByoipCidrCommandInput, - options?: __HttpHandlerOptions, - ) => Effect.Effect< - DeprovisionByoipCidrCommandOutput, - SdkError | EC2ServiceError - >; - - /** - * @see {@link DeprovisionIpamByoasnCommand} - */ - readonly deprovisionIpamByoasn: ( - args: DeprovisionIpamByoasnCommandInput, - options?: __HttpHandlerOptions, - ) => Effect.Effect< - DeprovisionIpamByoasnCommandOutput, - SdkError | EC2ServiceError - >; - - /** - * @see {@link DeprovisionIpamPoolCidrCommand} - */ - readonly deprovisionIpamPoolCidr: ( - args: DeprovisionIpamPoolCidrCommandInput, - options?: __HttpHandlerOptions, - ) => Effect.Effect< - DeprovisionIpamPoolCidrCommandOutput, - SdkError | EC2ServiceError - >; - - /** - * @see {@link DeprovisionPublicIpv4PoolCidrCommand} - */ - readonly deprovisionPublicIpv4PoolCidr: ( - args: DeprovisionPublicIpv4PoolCidrCommandInput, - options?: __HttpHandlerOptions, - ) => Effect.Effect< - DeprovisionPublicIpv4PoolCidrCommandOutput, - SdkError | EC2ServiceError - >; - - /** - * @see {@link DeregisterImageCommand} - */ - readonly deregisterImage: ( - args: DeregisterImageCommandInput, - options?: __HttpHandlerOptions, - ) => Effect.Effect; - - /** - * @see {@link DeregisterInstanceEventNotificationAttributesCommand} - */ - readonly deregisterInstanceEventNotificationAttributes: ( - args: DeregisterInstanceEventNotificationAttributesCommandInput, - options?: __HttpHandlerOptions, - ) => Effect.Effect< - DeregisterInstanceEventNotificationAttributesCommandOutput, - SdkError | EC2ServiceError - >; - - /** - * @see {@link DeregisterTransitGatewayMulticastGroupMembersCommand} - */ - readonly deregisterTransitGatewayMulticastGroupMembers: ( - args: DeregisterTransitGatewayMulticastGroupMembersCommandInput, - options?: __HttpHandlerOptions, - ) => Effect.Effect< - DeregisterTransitGatewayMulticastGroupMembersCommandOutput, - SdkError | EC2ServiceError - >; - - /** - * @see {@link DeregisterTransitGatewayMulticastGroupSourcesCommand} - */ - readonly deregisterTransitGatewayMulticastGroupSources: ( - args: DeregisterTransitGatewayMulticastGroupSourcesCommandInput, - options?: __HttpHandlerOptions, - ) => Effect.Effect< - DeregisterTransitGatewayMulticastGroupSourcesCommandOutput, - SdkError | EC2ServiceError - >; - - /** - * @see {@link DescribeAccountAttributesCommand} - */ - readonly describeAccountAttributes: ( - args: DescribeAccountAttributesCommandInput, - options?: __HttpHandlerOptions, - ) => Effect.Effect< - DescribeAccountAttributesCommandOutput, - SdkError | EC2ServiceError - >; - - /** - * @see {@link DescribeAddressesCommand} - */ - readonly describeAddresses: ( - args: DescribeAddressesCommandInput, - options?: __HttpHandlerOptions, - ) => Effect.Effect< - DescribeAddressesCommandOutput, - SdkError | EC2ServiceError - >; - - /** - * @see {@link DescribeAddressesAttributeCommand} - */ - readonly describeAddressesAttribute: ( - args: DescribeAddressesAttributeCommandInput, - options?: __HttpHandlerOptions, - ) => Effect.Effect< - DescribeAddressesAttributeCommandOutput, - SdkError | EC2ServiceError - >; - - /** - * @see {@link DescribeAddressTransfersCommand} - */ - readonly describeAddressTransfers: ( - args: DescribeAddressTransfersCommandInput, - options?: __HttpHandlerOptions, - ) => Effect.Effect< - DescribeAddressTransfersCommandOutput, - SdkError | EC2ServiceError - >; - - /** - * @see {@link DescribeAggregateIdFormatCommand} - */ - readonly describeAggregateIdFormat: ( - args: DescribeAggregateIdFormatCommandInput, - options?: __HttpHandlerOptions, - ) => Effect.Effect< - DescribeAggregateIdFormatCommandOutput, - SdkError | EC2ServiceError - >; - - /** - * @see {@link DescribeAvailabilityZonesCommand} - */ - readonly describeAvailabilityZones: ( - args: DescribeAvailabilityZonesCommandInput, - options?: __HttpHandlerOptions, - ) => Effect.Effect< - DescribeAvailabilityZonesCommandOutput, - SdkError | EC2ServiceError - >; - - /** - * @see {@link DescribeAwsNetworkPerformanceMetricSubscriptionsCommand} - */ - readonly describeAwsNetworkPerformanceMetricSubscriptions: ( - args: DescribeAwsNetworkPerformanceMetricSubscriptionsCommandInput, - options?: __HttpHandlerOptions, - ) => Effect.Effect< - DescribeAwsNetworkPerformanceMetricSubscriptionsCommandOutput, - SdkError | EC2ServiceError - >; - - /** - * @see {@link DescribeBundleTasksCommand} - */ - readonly describeBundleTasks: ( - args: DescribeBundleTasksCommandInput, - options?: __HttpHandlerOptions, - ) => Effect.Effect< - DescribeBundleTasksCommandOutput, - SdkError | EC2ServiceError - >; - - /** - * @see {@link DescribeByoipCidrsCommand} - */ - readonly describeByoipCidrs: ( - args: DescribeByoipCidrsCommandInput, - options?: __HttpHandlerOptions, - ) => Effect.Effect< - DescribeByoipCidrsCommandOutput, - SdkError | EC2ServiceError - >; - - /** - * @see {@link DescribeCapacityBlockOfferingsCommand} - */ - readonly describeCapacityBlockOfferings: ( - args: DescribeCapacityBlockOfferingsCommandInput, - options?: __HttpHandlerOptions, - ) => Effect.Effect< - DescribeCapacityBlockOfferingsCommandOutput, - SdkError | EC2ServiceError - >; - - /** - * @see {@link DescribeCapacityReservationFleetsCommand} - */ - readonly describeCapacityReservationFleets: ( - args: DescribeCapacityReservationFleetsCommandInput, - options?: __HttpHandlerOptions, - ) => Effect.Effect< - DescribeCapacityReservationFleetsCommandOutput, - SdkError | EC2ServiceError - >; - - /** - * @see {@link DescribeCapacityReservationsCommand} - */ - readonly describeCapacityReservations: ( - args: DescribeCapacityReservationsCommandInput, - options?: __HttpHandlerOptions, - ) => Effect.Effect< - DescribeCapacityReservationsCommandOutput, - SdkError | EC2ServiceError - >; - - /** - * @see {@link DescribeCarrierGatewaysCommand} - */ - readonly describeCarrierGateways: ( - args: DescribeCarrierGatewaysCommandInput, - options?: __HttpHandlerOptions, - ) => Effect.Effect< - DescribeCarrierGatewaysCommandOutput, - SdkError | EC2ServiceError - >; - - /** - * @see {@link DescribeClassicLinkInstancesCommand} - */ - readonly describeClassicLinkInstances: ( - args: DescribeClassicLinkInstancesCommandInput, - options?: __HttpHandlerOptions, - ) => Effect.Effect< - DescribeClassicLinkInstancesCommandOutput, - SdkError | EC2ServiceError - >; - - /** - * @see {@link DescribeClientVpnAuthorizationRulesCommand} - */ - readonly describeClientVpnAuthorizationRules: ( - args: DescribeClientVpnAuthorizationRulesCommandInput, - options?: __HttpHandlerOptions, - ) => Effect.Effect< - DescribeClientVpnAuthorizationRulesCommandOutput, - SdkError | EC2ServiceError - >; - - /** - * @see {@link DescribeClientVpnConnectionsCommand} - */ - readonly describeClientVpnConnections: ( - args: DescribeClientVpnConnectionsCommandInput, - options?: __HttpHandlerOptions, - ) => Effect.Effect< - DescribeClientVpnConnectionsCommandOutput, - SdkError | EC2ServiceError - >; - - /** - * @see {@link DescribeClientVpnEndpointsCommand} - */ - readonly describeClientVpnEndpoints: ( - args: DescribeClientVpnEndpointsCommandInput, - options?: __HttpHandlerOptions, - ) => Effect.Effect< - DescribeClientVpnEndpointsCommandOutput, - SdkError | EC2ServiceError - >; - - /** - * @see {@link DescribeClientVpnRoutesCommand} - */ - readonly describeClientVpnRoutes: ( - args: DescribeClientVpnRoutesCommandInput, - options?: __HttpHandlerOptions, - ) => Effect.Effect< - DescribeClientVpnRoutesCommandOutput, - SdkError | EC2ServiceError - >; - - /** - * @see {@link DescribeClientVpnTargetNetworksCommand} - */ - readonly describeClientVpnTargetNetworks: ( - args: DescribeClientVpnTargetNetworksCommandInput, - options?: __HttpHandlerOptions, - ) => Effect.Effect< - DescribeClientVpnTargetNetworksCommandOutput, - SdkError | EC2ServiceError - >; - - /** - * @see {@link DescribeCoipPoolsCommand} - */ - readonly describeCoipPools: ( - args: DescribeCoipPoolsCommandInput, - options?: __HttpHandlerOptions, - ) => Effect.Effect< - DescribeCoipPoolsCommandOutput, - SdkError | EC2ServiceError - >; - - /** - * @see {@link DescribeConversionTasksCommand} - */ - readonly describeConversionTasks: ( - args: DescribeConversionTasksCommandInput, - options?: __HttpHandlerOptions, - ) => Effect.Effect< - DescribeConversionTasksCommandOutput, - SdkError | EC2ServiceError - >; - - /** - * @see {@link DescribeCustomerGatewaysCommand} - */ - readonly describeCustomerGateways: ( - args: DescribeCustomerGatewaysCommandInput, - options?: __HttpHandlerOptions, - ) => Effect.Effect< - DescribeCustomerGatewaysCommandOutput, - SdkError | EC2ServiceError - >; - - /** - * @see {@link DescribeDhcpOptionsCommand} - */ - readonly describeDhcpOptions: ( - args: DescribeDhcpOptionsCommandInput, - options?: __HttpHandlerOptions, - ) => Effect.Effect< - DescribeDhcpOptionsCommandOutput, - SdkError | EC2ServiceError - >; - - /** - * @see {@link DescribeEgressOnlyInternetGatewaysCommand} - */ - readonly describeEgressOnlyInternetGateways: ( - args: DescribeEgressOnlyInternetGatewaysCommandInput, - options?: __HttpHandlerOptions, - ) => Effect.Effect< - DescribeEgressOnlyInternetGatewaysCommandOutput, - SdkError | EC2ServiceError - >; - - /** - * @see {@link DescribeElasticGpusCommand} - */ - readonly describeElasticGpus: ( - args: DescribeElasticGpusCommandInput, - options?: __HttpHandlerOptions, - ) => Effect.Effect< - DescribeElasticGpusCommandOutput, - SdkError | EC2ServiceError - >; - - /** - * @see {@link DescribeExportImageTasksCommand} - */ - readonly describeExportImageTasks: ( - args: DescribeExportImageTasksCommandInput, - options?: __HttpHandlerOptions, - ) => Effect.Effect< - DescribeExportImageTasksCommandOutput, - SdkError | EC2ServiceError - >; - - /** - * @see {@link DescribeExportTasksCommand} - */ - readonly describeExportTasks: ( - args: DescribeExportTasksCommandInput, - options?: __HttpHandlerOptions, - ) => Effect.Effect< - DescribeExportTasksCommandOutput, - SdkError | EC2ServiceError - >; - - /** - * @see {@link DescribeFastLaunchImagesCommand} - */ - readonly describeFastLaunchImages: ( - args: DescribeFastLaunchImagesCommandInput, - options?: __HttpHandlerOptions, - ) => Effect.Effect< - DescribeFastLaunchImagesCommandOutput, - SdkError | EC2ServiceError - >; - - /** - * @see {@link DescribeFastSnapshotRestoresCommand} - */ - readonly describeFastSnapshotRestores: ( - args: DescribeFastSnapshotRestoresCommandInput, - options?: __HttpHandlerOptions, - ) => Effect.Effect< - DescribeFastSnapshotRestoresCommandOutput, - SdkError | EC2ServiceError - >; - - /** - * @see {@link DescribeFleetHistoryCommand} - */ - readonly describeFleetHistory: ( - args: DescribeFleetHistoryCommandInput, - options?: __HttpHandlerOptions, - ) => Effect.Effect< - DescribeFleetHistoryCommandOutput, - SdkError | EC2ServiceError - >; - - /** - * @see {@link DescribeFleetInstancesCommand} - */ - readonly describeFleetInstances: ( - args: DescribeFleetInstancesCommandInput, - options?: __HttpHandlerOptions, - ) => Effect.Effect< - DescribeFleetInstancesCommandOutput, - SdkError | EC2ServiceError - >; - - /** - * @see {@link DescribeFleetsCommand} - */ - readonly describeFleets: ( - args: DescribeFleetsCommandInput, - options?: __HttpHandlerOptions, - ) => Effect.Effect; - - /** - * @see {@link DescribeFlowLogsCommand} - */ - readonly describeFlowLogs: ( - args: DescribeFlowLogsCommandInput, - options?: __HttpHandlerOptions, - ) => Effect.Effect; - - /** - * @see {@link DescribeFpgaImageAttributeCommand} - */ - readonly describeFpgaImageAttribute: ( - args: DescribeFpgaImageAttributeCommandInput, - options?: __HttpHandlerOptions, - ) => Effect.Effect< - DescribeFpgaImageAttributeCommandOutput, - SdkError | EC2ServiceError - >; - - /** - * @see {@link DescribeFpgaImagesCommand} - */ - readonly describeFpgaImages: ( - args: DescribeFpgaImagesCommandInput, - options?: __HttpHandlerOptions, - ) => Effect.Effect< - DescribeFpgaImagesCommandOutput, - SdkError | EC2ServiceError - >; - - /** - * @see {@link DescribeHostReservationOfferingsCommand} - */ - readonly describeHostReservationOfferings: ( - args: DescribeHostReservationOfferingsCommandInput, - options?: __HttpHandlerOptions, - ) => Effect.Effect< - DescribeHostReservationOfferingsCommandOutput, - SdkError | EC2ServiceError - >; - - /** - * @see {@link DescribeHostReservationsCommand} - */ - readonly describeHostReservations: ( - args: DescribeHostReservationsCommandInput, - options?: __HttpHandlerOptions, - ) => Effect.Effect< - DescribeHostReservationsCommandOutput, - SdkError | EC2ServiceError - >; - - /** - * @see {@link DescribeHostsCommand} - */ - readonly describeHosts: ( - args: DescribeHostsCommandInput, - options?: __HttpHandlerOptions, - ) => Effect.Effect; - - /** - * @see {@link DescribeIamInstanceProfileAssociationsCommand} - */ - readonly describeIamInstanceProfileAssociations: ( - args: DescribeIamInstanceProfileAssociationsCommandInput, - options?: __HttpHandlerOptions, - ) => Effect.Effect< - DescribeIamInstanceProfileAssociationsCommandOutput, - SdkError | EC2ServiceError - >; - - /** - * @see {@link DescribeIdentityIdFormatCommand} - */ - readonly describeIdentityIdFormat: ( - args: DescribeIdentityIdFormatCommandInput, - options?: __HttpHandlerOptions, - ) => Effect.Effect< - DescribeIdentityIdFormatCommandOutput, - SdkError | EC2ServiceError - >; - - /** - * @see {@link DescribeIdFormatCommand} - */ - readonly describeIdFormat: ( - args: DescribeIdFormatCommandInput, - options?: __HttpHandlerOptions, - ) => Effect.Effect; - - /** - * @see {@link DescribeImageAttributeCommand} - */ - readonly describeImageAttribute: ( - args: DescribeImageAttributeCommandInput, - options?: __HttpHandlerOptions, - ) => Effect.Effect< - DescribeImageAttributeCommandOutput, - SdkError | EC2ServiceError - >; - - /** - * @see {@link DescribeImagesCommand} - */ - readonly describeImages: ( - args: DescribeImagesCommandInput, - options?: __HttpHandlerOptions, - ) => Effect.Effect; - - /** - * @see {@link DescribeImportImageTasksCommand} - */ - readonly describeImportImageTasks: ( - args: DescribeImportImageTasksCommandInput, - options?: __HttpHandlerOptions, - ) => Effect.Effect< - DescribeImportImageTasksCommandOutput, - SdkError | EC2ServiceError - >; - - /** - * @see {@link DescribeImportSnapshotTasksCommand} - */ - readonly describeImportSnapshotTasks: ( - args: DescribeImportSnapshotTasksCommandInput, - options?: __HttpHandlerOptions, - ) => Effect.Effect< - DescribeImportSnapshotTasksCommandOutput, - SdkError | EC2ServiceError - >; - - /** - * @see {@link DescribeInstanceAttributeCommand} - */ - readonly describeInstanceAttribute: ( - args: DescribeInstanceAttributeCommandInput, - options?: __HttpHandlerOptions, - ) => Effect.Effect< - DescribeInstanceAttributeCommandOutput, - SdkError | EC2ServiceError - >; - - /** - * @see {@link DescribeInstanceConnectEndpointsCommand} - */ - readonly describeInstanceConnectEndpoints: ( - args: DescribeInstanceConnectEndpointsCommandInput, - options?: __HttpHandlerOptions, - ) => Effect.Effect< - DescribeInstanceConnectEndpointsCommandOutput, - SdkError | EC2ServiceError - >; - - /** - * @see {@link DescribeInstanceCreditSpecificationsCommand} - */ - readonly describeInstanceCreditSpecifications: ( - args: DescribeInstanceCreditSpecificationsCommandInput, - options?: __HttpHandlerOptions, - ) => Effect.Effect< - DescribeInstanceCreditSpecificationsCommandOutput, - SdkError | EC2ServiceError - >; - - /** - * @see {@link DescribeInstanceEventNotificationAttributesCommand} - */ - readonly describeInstanceEventNotificationAttributes: ( - args: DescribeInstanceEventNotificationAttributesCommandInput, - options?: __HttpHandlerOptions, - ) => Effect.Effect< - DescribeInstanceEventNotificationAttributesCommandOutput, - SdkError | EC2ServiceError - >; - - /** - * @see {@link DescribeInstanceEventWindowsCommand} - */ - readonly describeInstanceEventWindows: ( - args: DescribeInstanceEventWindowsCommandInput, - options?: __HttpHandlerOptions, - ) => Effect.Effect< - DescribeInstanceEventWindowsCommandOutput, - SdkError | EC2ServiceError - >; - - /** - * @see {@link DescribeInstancesCommand} - */ - readonly describeInstances: ( - args: DescribeInstancesCommandInput, - options?: __HttpHandlerOptions, - ) => Effect.Effect< - DescribeInstancesCommandOutput, - SdkError | EC2ServiceError - >; - - /** - * @see {@link DescribeInstanceStatusCommand} - */ - readonly describeInstanceStatus: ( - args: DescribeInstanceStatusCommandInput, - options?: __HttpHandlerOptions, - ) => Effect.Effect< - DescribeInstanceStatusCommandOutput, - SdkError | EC2ServiceError - >; - - /** - * @see {@link DescribeInstanceTopologyCommand} - */ - readonly describeInstanceTopology: ( - args: DescribeInstanceTopologyCommandInput, - options?: __HttpHandlerOptions, - ) => Effect.Effect< - DescribeInstanceTopologyCommandOutput, - SdkError | EC2ServiceError - >; - - /** - * @see {@link DescribeInstanceTypeOfferingsCommand} - */ - readonly describeInstanceTypeOfferings: ( - args: DescribeInstanceTypeOfferingsCommandInput, - options?: __HttpHandlerOptions, - ) => Effect.Effect< - DescribeInstanceTypeOfferingsCommandOutput, - SdkError | EC2ServiceError - >; - - /** - * @see {@link DescribeInstanceTypesCommand} - */ - readonly describeInstanceTypes: ( - args: DescribeInstanceTypesCommandInput, - options?: __HttpHandlerOptions, - ) => Effect.Effect< - DescribeInstanceTypesCommandOutput, - SdkError | EC2ServiceError - >; - - /** - * @see {@link DescribeInternetGatewaysCommand} - */ - readonly describeInternetGateways: ( - args: DescribeInternetGatewaysCommandInput, - options?: __HttpHandlerOptions, - ) => Effect.Effect< - DescribeInternetGatewaysCommandOutput, - SdkError | EC2ServiceError - >; - - /** - * @see {@link DescribeIpamByoasnCommand} - */ - readonly describeIpamByoasn: ( - args: DescribeIpamByoasnCommandInput, - options?: __HttpHandlerOptions, - ) => Effect.Effect< - DescribeIpamByoasnCommandOutput, - SdkError | EC2ServiceError - >; - - /** - * @see {@link DescribeIpamPoolsCommand} - */ - readonly describeIpamPools: ( - args: DescribeIpamPoolsCommandInput, - options?: __HttpHandlerOptions, - ) => Effect.Effect< - DescribeIpamPoolsCommandOutput, - SdkError | EC2ServiceError - >; - - /** - * @see {@link DescribeIpamResourceDiscoveriesCommand} - */ - readonly describeIpamResourceDiscoveries: ( - args: DescribeIpamResourceDiscoveriesCommandInput, - options?: __HttpHandlerOptions, - ) => Effect.Effect< - DescribeIpamResourceDiscoveriesCommandOutput, - SdkError | EC2ServiceError - >; - - /** - * @see {@link DescribeIpamResourceDiscoveryAssociationsCommand} - */ - readonly describeIpamResourceDiscoveryAssociations: ( - args: DescribeIpamResourceDiscoveryAssociationsCommandInput, - options?: __HttpHandlerOptions, - ) => Effect.Effect< - DescribeIpamResourceDiscoveryAssociationsCommandOutput, - SdkError | EC2ServiceError - >; - - /** - * @see {@link DescribeIpamsCommand} - */ - readonly describeIpams: ( - args: DescribeIpamsCommandInput, - options?: __HttpHandlerOptions, - ) => Effect.Effect; - - /** - * @see {@link DescribeIpamScopesCommand} - */ - readonly describeIpamScopes: ( - args: DescribeIpamScopesCommandInput, - options?: __HttpHandlerOptions, - ) => Effect.Effect< - DescribeIpamScopesCommandOutput, - SdkError | EC2ServiceError - >; - - /** - * @see {@link DescribeIpv6PoolsCommand} - */ - readonly describeIpv6Pools: ( - args: DescribeIpv6PoolsCommandInput, - options?: __HttpHandlerOptions, - ) => Effect.Effect< - DescribeIpv6PoolsCommandOutput, - SdkError | EC2ServiceError - >; - - /** - * @see {@link DescribeKeyPairsCommand} - */ - readonly describeKeyPairs: ( - args: DescribeKeyPairsCommandInput, - options?: __HttpHandlerOptions, - ) => Effect.Effect; - - /** - * @see {@link DescribeLaunchTemplatesCommand} - */ - readonly describeLaunchTemplates: ( - args: DescribeLaunchTemplatesCommandInput, - options?: __HttpHandlerOptions, - ) => Effect.Effect< - DescribeLaunchTemplatesCommandOutput, - SdkError | EC2ServiceError - >; - - /** - * @see {@link DescribeLaunchTemplateVersionsCommand} - */ - readonly describeLaunchTemplateVersions: ( - args: DescribeLaunchTemplateVersionsCommandInput, - options?: __HttpHandlerOptions, - ) => Effect.Effect< - DescribeLaunchTemplateVersionsCommandOutput, - SdkError | EC2ServiceError - >; - - /** - * @see {@link DescribeLocalGatewayRouteTablesCommand} - */ - readonly describeLocalGatewayRouteTables: ( - args: DescribeLocalGatewayRouteTablesCommandInput, - options?: __HttpHandlerOptions, - ) => Effect.Effect< - DescribeLocalGatewayRouteTablesCommandOutput, - SdkError | EC2ServiceError - >; - - /** - * @see {@link DescribeLocalGatewayRouteTableVirtualInterfaceGroupAssociationsCommand} - */ - readonly describeLocalGatewayRouteTableVirtualInterfaceGroupAssociations: ( - args: DescribeLocalGatewayRouteTableVirtualInterfaceGroupAssociationsCommandInput, - options?: __HttpHandlerOptions, - ) => Effect.Effect< - DescribeLocalGatewayRouteTableVirtualInterfaceGroupAssociationsCommandOutput, - SdkError | EC2ServiceError - >; - - /** - * @see {@link DescribeLocalGatewayRouteTableVpcAssociationsCommand} - */ - readonly describeLocalGatewayRouteTableVpcAssociations: ( - args: DescribeLocalGatewayRouteTableVpcAssociationsCommandInput, - options?: __HttpHandlerOptions, - ) => Effect.Effect< - DescribeLocalGatewayRouteTableVpcAssociationsCommandOutput, - SdkError | EC2ServiceError - >; - - /** - * @see {@link DescribeLocalGatewaysCommand} - */ - readonly describeLocalGateways: ( - args: DescribeLocalGatewaysCommandInput, - options?: __HttpHandlerOptions, - ) => Effect.Effect< - DescribeLocalGatewaysCommandOutput, - SdkError | EC2ServiceError - >; - - /** - * @see {@link DescribeLocalGatewayVirtualInterfaceGroupsCommand} - */ - readonly describeLocalGatewayVirtualInterfaceGroups: ( - args: DescribeLocalGatewayVirtualInterfaceGroupsCommandInput, - options?: __HttpHandlerOptions, - ) => Effect.Effect< - DescribeLocalGatewayVirtualInterfaceGroupsCommandOutput, - SdkError | EC2ServiceError - >; - - /** - * @see {@link DescribeLocalGatewayVirtualInterfacesCommand} - */ - readonly describeLocalGatewayVirtualInterfaces: ( - args: DescribeLocalGatewayVirtualInterfacesCommandInput, - options?: __HttpHandlerOptions, - ) => Effect.Effect< - DescribeLocalGatewayVirtualInterfacesCommandOutput, - SdkError | EC2ServiceError - >; - - /** - * @see {@link DescribeLockedSnapshotsCommand} - */ - readonly describeLockedSnapshots: ( - args: DescribeLockedSnapshotsCommandInput, - options?: __HttpHandlerOptions, - ) => Effect.Effect< - DescribeLockedSnapshotsCommandOutput, - SdkError | EC2ServiceError - >; - - /** - * @see {@link DescribeManagedPrefixListsCommand} - */ - readonly describeManagedPrefixLists: ( - args: DescribeManagedPrefixListsCommandInput, - options?: __HttpHandlerOptions, - ) => Effect.Effect< - DescribeManagedPrefixListsCommandOutput, - SdkError | EC2ServiceError - >; - - /** - * @see {@link DescribeMovingAddressesCommand} - */ - readonly describeMovingAddresses: ( - args: DescribeMovingAddressesCommandInput, - options?: __HttpHandlerOptions, - ) => Effect.Effect< - DescribeMovingAddressesCommandOutput, - SdkError | EC2ServiceError - >; - - /** - * @see {@link DescribeNatGatewaysCommand} - */ - readonly describeNatGateways: ( - args: DescribeNatGatewaysCommandInput, - options?: __HttpHandlerOptions, - ) => Effect.Effect< - DescribeNatGatewaysCommandOutput, - SdkError | EC2ServiceError - >; - - /** - * @see {@link DescribeNetworkAclsCommand} - */ - readonly describeNetworkAcls: ( - args: DescribeNetworkAclsCommandInput, - options?: __HttpHandlerOptions, - ) => Effect.Effect< - DescribeNetworkAclsCommandOutput, - SdkError | EC2ServiceError - >; - - /** - * @see {@link DescribeNetworkInsightsAccessScopeAnalysesCommand} - */ - readonly describeNetworkInsightsAccessScopeAnalyses: ( - args: DescribeNetworkInsightsAccessScopeAnalysesCommandInput, - options?: __HttpHandlerOptions, - ) => Effect.Effect< - DescribeNetworkInsightsAccessScopeAnalysesCommandOutput, - SdkError | EC2ServiceError - >; - - /** - * @see {@link DescribeNetworkInsightsAccessScopesCommand} - */ - readonly describeNetworkInsightsAccessScopes: ( - args: DescribeNetworkInsightsAccessScopesCommandInput, - options?: __HttpHandlerOptions, - ) => Effect.Effect< - DescribeNetworkInsightsAccessScopesCommandOutput, - SdkError | EC2ServiceError - >; - - /** - * @see {@link DescribeNetworkInsightsAnalysesCommand} - */ - readonly describeNetworkInsightsAnalyses: ( - args: DescribeNetworkInsightsAnalysesCommandInput, - options?: __HttpHandlerOptions, - ) => Effect.Effect< - DescribeNetworkInsightsAnalysesCommandOutput, - SdkError | EC2ServiceError - >; - - /** - * @see {@link DescribeNetworkInsightsPathsCommand} - */ - readonly describeNetworkInsightsPaths: ( - args: DescribeNetworkInsightsPathsCommandInput, - options?: __HttpHandlerOptions, - ) => Effect.Effect< - DescribeNetworkInsightsPathsCommandOutput, - SdkError | EC2ServiceError - >; - - /** - * @see {@link DescribeNetworkInterfaceAttributeCommand} - */ - readonly describeNetworkInterfaceAttribute: ( - args: DescribeNetworkInterfaceAttributeCommandInput, - options?: __HttpHandlerOptions, - ) => Effect.Effect< - DescribeNetworkInterfaceAttributeCommandOutput, - SdkError | EC2ServiceError - >; - - /** - * @see {@link DescribeNetworkInterfacePermissionsCommand} - */ - readonly describeNetworkInterfacePermissions: ( - args: DescribeNetworkInterfacePermissionsCommandInput, - options?: __HttpHandlerOptions, - ) => Effect.Effect< - DescribeNetworkInterfacePermissionsCommandOutput, - SdkError | EC2ServiceError - >; - - /** - * @see {@link DescribeNetworkInterfacesCommand} - */ - readonly describeNetworkInterfaces: ( - args: DescribeNetworkInterfacesCommandInput, - options?: __HttpHandlerOptions, - ) => Effect.Effect< - DescribeNetworkInterfacesCommandOutput, - SdkError | EC2ServiceError - >; - - /** - * @see {@link DescribePlacementGroupsCommand} - */ - readonly describePlacementGroups: ( - args: DescribePlacementGroupsCommandInput, - options?: __HttpHandlerOptions, - ) => Effect.Effect< - DescribePlacementGroupsCommandOutput, - SdkError | EC2ServiceError - >; - - /** - * @see {@link DescribePrefixListsCommand} - */ - readonly describePrefixLists: ( - args: DescribePrefixListsCommandInput, - options?: __HttpHandlerOptions, - ) => Effect.Effect< - DescribePrefixListsCommandOutput, - SdkError | EC2ServiceError - >; - - /** - * @see {@link DescribePrincipalIdFormatCommand} - */ - readonly describePrincipalIdFormat: ( - args: DescribePrincipalIdFormatCommandInput, - options?: __HttpHandlerOptions, - ) => Effect.Effect< - DescribePrincipalIdFormatCommandOutput, - SdkError | EC2ServiceError - >; - - /** - * @see {@link DescribePublicIpv4PoolsCommand} - */ - readonly describePublicIpv4Pools: ( - args: DescribePublicIpv4PoolsCommandInput, - options?: __HttpHandlerOptions, - ) => Effect.Effect< - DescribePublicIpv4PoolsCommandOutput, - SdkError | EC2ServiceError - >; - - /** - * @see {@link DescribeRegionsCommand} - */ - readonly describeRegions: ( - args: DescribeRegionsCommandInput, - options?: __HttpHandlerOptions, - ) => Effect.Effect; - - /** - * @see {@link DescribeReplaceRootVolumeTasksCommand} - */ - readonly describeReplaceRootVolumeTasks: ( - args: DescribeReplaceRootVolumeTasksCommandInput, - options?: __HttpHandlerOptions, - ) => Effect.Effect< - DescribeReplaceRootVolumeTasksCommandOutput, - SdkError | EC2ServiceError - >; - - /** - * @see {@link DescribeReservedInstancesCommand} - */ - readonly describeReservedInstances: ( - args: DescribeReservedInstancesCommandInput, - options?: __HttpHandlerOptions, - ) => Effect.Effect< - DescribeReservedInstancesCommandOutput, - SdkError | EC2ServiceError - >; - - /** - * @see {@link DescribeReservedInstancesListingsCommand} - */ - readonly describeReservedInstancesListings: ( - args: DescribeReservedInstancesListingsCommandInput, - options?: __HttpHandlerOptions, - ) => Effect.Effect< - DescribeReservedInstancesListingsCommandOutput, - SdkError | EC2ServiceError - >; - - /** - * @see {@link DescribeReservedInstancesModificationsCommand} - */ - readonly describeReservedInstancesModifications: ( - args: DescribeReservedInstancesModificationsCommandInput, - options?: __HttpHandlerOptions, - ) => Effect.Effect< - DescribeReservedInstancesModificationsCommandOutput, - SdkError | EC2ServiceError - >; - - /** - * @see {@link DescribeReservedInstancesOfferingsCommand} - */ - readonly describeReservedInstancesOfferings: ( - args: DescribeReservedInstancesOfferingsCommandInput, - options?: __HttpHandlerOptions, - ) => Effect.Effect< - DescribeReservedInstancesOfferingsCommandOutput, - SdkError | EC2ServiceError - >; - - /** - * @see {@link DescribeRouteTablesCommand} - */ - readonly describeRouteTables: ( - args: DescribeRouteTablesCommandInput, - options?: __HttpHandlerOptions, - ) => Effect.Effect< - DescribeRouteTablesCommandOutput, - SdkError | EC2ServiceError - >; - - /** - * @see {@link DescribeScheduledInstanceAvailabilityCommand} - */ - readonly describeScheduledInstanceAvailability: ( - args: DescribeScheduledInstanceAvailabilityCommandInput, - options?: __HttpHandlerOptions, - ) => Effect.Effect< - DescribeScheduledInstanceAvailabilityCommandOutput, - SdkError | EC2ServiceError - >; - - /** - * @see {@link DescribeScheduledInstancesCommand} - */ - readonly describeScheduledInstances: ( - args: DescribeScheduledInstancesCommandInput, - options?: __HttpHandlerOptions, - ) => Effect.Effect< - DescribeScheduledInstancesCommandOutput, - SdkError | EC2ServiceError - >; - - /** - * @see {@link DescribeSecurityGroupReferencesCommand} - */ - readonly describeSecurityGroupReferences: ( - args: DescribeSecurityGroupReferencesCommandInput, - options?: __HttpHandlerOptions, - ) => Effect.Effect< - DescribeSecurityGroupReferencesCommandOutput, - SdkError | EC2ServiceError - >; - - /** - * @see {@link DescribeSecurityGroupRulesCommand} - */ - readonly describeSecurityGroupRules: ( - args: DescribeSecurityGroupRulesCommandInput, - options?: __HttpHandlerOptions, - ) => Effect.Effect< - DescribeSecurityGroupRulesCommandOutput, - SdkError | EC2ServiceError - >; - - /** - * @see {@link DescribeSecurityGroupsCommand} - */ - readonly describeSecurityGroups: ( - args: DescribeSecurityGroupsCommandInput, - options?: __HttpHandlerOptions, - ) => Effect.Effect< - DescribeSecurityGroupsCommandOutput, - SdkError | EC2ServiceError - >; - - /** - * @see {@link DescribeSnapshotAttributeCommand} - */ - readonly describeSnapshotAttribute: ( - args: DescribeSnapshotAttributeCommandInput, - options?: __HttpHandlerOptions, - ) => Effect.Effect< - DescribeSnapshotAttributeCommandOutput, - SdkError | EC2ServiceError - >; - - /** - * @see {@link DescribeSnapshotsCommand} - */ - readonly describeSnapshots: ( - args: DescribeSnapshotsCommandInput, - options?: __HttpHandlerOptions, - ) => Effect.Effect< - DescribeSnapshotsCommandOutput, - SdkError | EC2ServiceError - >; - - /** - * @see {@link DescribeSnapshotTierStatusCommand} - */ - readonly describeSnapshotTierStatus: ( - args: DescribeSnapshotTierStatusCommandInput, - options?: __HttpHandlerOptions, - ) => Effect.Effect< - DescribeSnapshotTierStatusCommandOutput, - SdkError | EC2ServiceError - >; - - /** - * @see {@link DescribeSpotDatafeedSubscriptionCommand} - */ - readonly describeSpotDatafeedSubscription: ( - args: DescribeSpotDatafeedSubscriptionCommandInput, - options?: __HttpHandlerOptions, - ) => Effect.Effect< - DescribeSpotDatafeedSubscriptionCommandOutput, - SdkError | EC2ServiceError - >; - - /** - * @see {@link DescribeSpotFleetInstancesCommand} - */ - readonly describeSpotFleetInstances: ( - args: DescribeSpotFleetInstancesCommandInput, - options?: __HttpHandlerOptions, - ) => Effect.Effect< - DescribeSpotFleetInstancesCommandOutput, - SdkError | EC2ServiceError - >; - - /** - * @see {@link DescribeSpotFleetRequestHistoryCommand} - */ - readonly describeSpotFleetRequestHistory: ( - args: DescribeSpotFleetRequestHistoryCommandInput, - options?: __HttpHandlerOptions, - ) => Effect.Effect< - DescribeSpotFleetRequestHistoryCommandOutput, - SdkError | EC2ServiceError - >; - - /** - * @see {@link DescribeSpotFleetRequestsCommand} - */ - readonly describeSpotFleetRequests: ( - args: DescribeSpotFleetRequestsCommandInput, - options?: __HttpHandlerOptions, - ) => Effect.Effect< - DescribeSpotFleetRequestsCommandOutput, - SdkError | EC2ServiceError - >; - - /** - * @see {@link DescribeSpotInstanceRequestsCommand} - */ - readonly describeSpotInstanceRequests: ( - args: DescribeSpotInstanceRequestsCommandInput, - options?: __HttpHandlerOptions, - ) => Effect.Effect< - DescribeSpotInstanceRequestsCommandOutput, - SdkError | EC2ServiceError - >; - - /** - * @see {@link DescribeSpotPriceHistoryCommand} - */ - readonly describeSpotPriceHistory: ( - args: DescribeSpotPriceHistoryCommandInput, - options?: __HttpHandlerOptions, - ) => Effect.Effect< - DescribeSpotPriceHistoryCommandOutput, - SdkError | EC2ServiceError - >; - - /** - * @see {@link DescribeStaleSecurityGroupsCommand} - */ - readonly describeStaleSecurityGroups: ( - args: DescribeStaleSecurityGroupsCommandInput, - options?: __HttpHandlerOptions, - ) => Effect.Effect< - DescribeStaleSecurityGroupsCommandOutput, - SdkError | EC2ServiceError - >; - - /** - * @see {@link DescribeStoreImageTasksCommand} - */ - readonly describeStoreImageTasks: ( - args: DescribeStoreImageTasksCommandInput, - options?: __HttpHandlerOptions, - ) => Effect.Effect< - DescribeStoreImageTasksCommandOutput, - SdkError | EC2ServiceError - >; - - /** - * @see {@link DescribeSubnetsCommand} - */ - readonly describeSubnets: ( - args: DescribeSubnetsCommandInput, - options?: __HttpHandlerOptions, - ) => Effect.Effect; - - /** - * @see {@link DescribeTagsCommand} - */ - readonly describeTags: ( - args: DescribeTagsCommandInput, - options?: __HttpHandlerOptions, - ) => Effect.Effect; - - /** - * @see {@link DescribeTrafficMirrorFiltersCommand} - */ - readonly describeTrafficMirrorFilters: ( - args: DescribeTrafficMirrorFiltersCommandInput, - options?: __HttpHandlerOptions, - ) => Effect.Effect< - DescribeTrafficMirrorFiltersCommandOutput, - SdkError | EC2ServiceError - >; - - /** - * @see {@link DescribeTrafficMirrorSessionsCommand} - */ - readonly describeTrafficMirrorSessions: ( - args: DescribeTrafficMirrorSessionsCommandInput, - options?: __HttpHandlerOptions, - ) => Effect.Effect< - DescribeTrafficMirrorSessionsCommandOutput, - SdkError | EC2ServiceError - >; - - /** - * @see {@link DescribeTrafficMirrorTargetsCommand} - */ - readonly describeTrafficMirrorTargets: ( - args: DescribeTrafficMirrorTargetsCommandInput, - options?: __HttpHandlerOptions, - ) => Effect.Effect< - DescribeTrafficMirrorTargetsCommandOutput, - SdkError | EC2ServiceError - >; - - /** - * @see {@link DescribeTransitGatewayAttachmentsCommand} - */ - readonly describeTransitGatewayAttachments: ( - args: DescribeTransitGatewayAttachmentsCommandInput, - options?: __HttpHandlerOptions, - ) => Effect.Effect< - DescribeTransitGatewayAttachmentsCommandOutput, - SdkError | EC2ServiceError - >; - - /** - * @see {@link DescribeTransitGatewayConnectPeersCommand} - */ - readonly describeTransitGatewayConnectPeers: ( - args: DescribeTransitGatewayConnectPeersCommandInput, - options?: __HttpHandlerOptions, - ) => Effect.Effect< - DescribeTransitGatewayConnectPeersCommandOutput, - SdkError | EC2ServiceError - >; - - /** - * @see {@link DescribeTransitGatewayConnectsCommand} - */ - readonly describeTransitGatewayConnects: ( - args: DescribeTransitGatewayConnectsCommandInput, - options?: __HttpHandlerOptions, - ) => Effect.Effect< - DescribeTransitGatewayConnectsCommandOutput, - SdkError | EC2ServiceError - >; - - /** - * @see {@link DescribeTransitGatewayMulticastDomainsCommand} - */ - readonly describeTransitGatewayMulticastDomains: ( - args: DescribeTransitGatewayMulticastDomainsCommandInput, - options?: __HttpHandlerOptions, - ) => Effect.Effect< - DescribeTransitGatewayMulticastDomainsCommandOutput, - SdkError | EC2ServiceError - >; - - /** - * @see {@link DescribeTransitGatewayPeeringAttachmentsCommand} - */ - readonly describeTransitGatewayPeeringAttachments: ( - args: DescribeTransitGatewayPeeringAttachmentsCommandInput, - options?: __HttpHandlerOptions, - ) => Effect.Effect< - DescribeTransitGatewayPeeringAttachmentsCommandOutput, - SdkError | EC2ServiceError - >; - - /** - * @see {@link DescribeTransitGatewayPolicyTablesCommand} - */ - readonly describeTransitGatewayPolicyTables: ( - args: DescribeTransitGatewayPolicyTablesCommandInput, - options?: __HttpHandlerOptions, - ) => Effect.Effect< - DescribeTransitGatewayPolicyTablesCommandOutput, - SdkError | EC2ServiceError - >; - - /** - * @see {@link DescribeTransitGatewayRouteTableAnnouncementsCommand} - */ - readonly describeTransitGatewayRouteTableAnnouncements: ( - args: DescribeTransitGatewayRouteTableAnnouncementsCommandInput, - options?: __HttpHandlerOptions, - ) => Effect.Effect< - DescribeTransitGatewayRouteTableAnnouncementsCommandOutput, - SdkError | EC2ServiceError - >; - - /** - * @see {@link DescribeTransitGatewayRouteTablesCommand} - */ - readonly describeTransitGatewayRouteTables: ( - args: DescribeTransitGatewayRouteTablesCommandInput, - options?: __HttpHandlerOptions, - ) => Effect.Effect< - DescribeTransitGatewayRouteTablesCommandOutput, - SdkError | EC2ServiceError - >; - - /** - * @see {@link DescribeTransitGatewaysCommand} - */ - readonly describeTransitGateways: ( - args: DescribeTransitGatewaysCommandInput, - options?: __HttpHandlerOptions, - ) => Effect.Effect< - DescribeTransitGatewaysCommandOutput, - SdkError | EC2ServiceError - >; - - /** - * @see {@link DescribeTransitGatewayVpcAttachmentsCommand} - */ - readonly describeTransitGatewayVpcAttachments: ( - args: DescribeTransitGatewayVpcAttachmentsCommandInput, - options?: __HttpHandlerOptions, - ) => Effect.Effect< - DescribeTransitGatewayVpcAttachmentsCommandOutput, - SdkError | EC2ServiceError - >; - - /** - * @see {@link DescribeTrunkInterfaceAssociationsCommand} - */ - readonly describeTrunkInterfaceAssociations: ( - args: DescribeTrunkInterfaceAssociationsCommandInput, - options?: __HttpHandlerOptions, - ) => Effect.Effect< - DescribeTrunkInterfaceAssociationsCommandOutput, - SdkError | EC2ServiceError - >; - - /** - * @see {@link DescribeVerifiedAccessEndpointsCommand} - */ - readonly describeVerifiedAccessEndpoints: ( - args: DescribeVerifiedAccessEndpointsCommandInput, - options?: __HttpHandlerOptions, - ) => Effect.Effect< - DescribeVerifiedAccessEndpointsCommandOutput, - SdkError | EC2ServiceError - >; - - /** - * @see {@link DescribeVerifiedAccessGroupsCommand} - */ - readonly describeVerifiedAccessGroups: ( - args: DescribeVerifiedAccessGroupsCommandInput, - options?: __HttpHandlerOptions, - ) => Effect.Effect< - DescribeVerifiedAccessGroupsCommandOutput, - SdkError | EC2ServiceError - >; - - /** - * @see {@link DescribeVerifiedAccessInstanceLoggingConfigurationsCommand} - */ - readonly describeVerifiedAccessInstanceLoggingConfigurations: ( - args: DescribeVerifiedAccessInstanceLoggingConfigurationsCommandInput, - options?: __HttpHandlerOptions, - ) => Effect.Effect< - DescribeVerifiedAccessInstanceLoggingConfigurationsCommandOutput, - SdkError | EC2ServiceError - >; - - /** - * @see {@link DescribeVerifiedAccessInstancesCommand} - */ - readonly describeVerifiedAccessInstances: ( - args: DescribeVerifiedAccessInstancesCommandInput, - options?: __HttpHandlerOptions, - ) => Effect.Effect< - DescribeVerifiedAccessInstancesCommandOutput, - SdkError | EC2ServiceError - >; - - /** - * @see {@link DescribeVerifiedAccessTrustProvidersCommand} - */ - readonly describeVerifiedAccessTrustProviders: ( - args: DescribeVerifiedAccessTrustProvidersCommandInput, - options?: __HttpHandlerOptions, - ) => Effect.Effect< - DescribeVerifiedAccessTrustProvidersCommandOutput, - SdkError | EC2ServiceError - >; - - /** - * @see {@link DescribeVolumeAttributeCommand} - */ - readonly describeVolumeAttribute: ( - args: DescribeVolumeAttributeCommandInput, - options?: __HttpHandlerOptions, - ) => Effect.Effect< - DescribeVolumeAttributeCommandOutput, - SdkError | EC2ServiceError - >; - - /** - * @see {@link DescribeVolumesCommand} - */ - readonly describeVolumes: ( - args: DescribeVolumesCommandInput, - options?: __HttpHandlerOptions, - ) => Effect.Effect; - - /** - * @see {@link DescribeVolumesModificationsCommand} - */ - readonly describeVolumesModifications: ( - args: DescribeVolumesModificationsCommandInput, - options?: __HttpHandlerOptions, - ) => Effect.Effect< - DescribeVolumesModificationsCommandOutput, - SdkError | EC2ServiceError - >; - - /** - * @see {@link DescribeVolumeStatusCommand} - */ - readonly describeVolumeStatus: ( - args: DescribeVolumeStatusCommandInput, - options?: __HttpHandlerOptions, - ) => Effect.Effect< - DescribeVolumeStatusCommandOutput, - SdkError | EC2ServiceError - >; - - /** - * @see {@link DescribeVpcAttributeCommand} - */ - readonly describeVpcAttribute: ( - args: DescribeVpcAttributeCommandInput, - options?: __HttpHandlerOptions, - ) => Effect.Effect< - DescribeVpcAttributeCommandOutput, - SdkError | EC2ServiceError - >; - - /** - * @see {@link DescribeVpcClassicLinkCommand} - */ - readonly describeVpcClassicLink: ( - args: DescribeVpcClassicLinkCommandInput, - options?: __HttpHandlerOptions, - ) => Effect.Effect< - DescribeVpcClassicLinkCommandOutput, - SdkError | EC2ServiceError - >; - - /** - * @see {@link DescribeVpcClassicLinkDnsSupportCommand} - */ - readonly describeVpcClassicLinkDnsSupport: ( - args: DescribeVpcClassicLinkDnsSupportCommandInput, - options?: __HttpHandlerOptions, - ) => Effect.Effect< - DescribeVpcClassicLinkDnsSupportCommandOutput, - SdkError | EC2ServiceError - >; - - /** - * @see {@link DescribeVpcEndpointConnectionNotificationsCommand} - */ - readonly describeVpcEndpointConnectionNotifications: ( - args: DescribeVpcEndpointConnectionNotificationsCommandInput, - options?: __HttpHandlerOptions, - ) => Effect.Effect< - DescribeVpcEndpointConnectionNotificationsCommandOutput, - SdkError | EC2ServiceError - >; - - /** - * @see {@link DescribeVpcEndpointConnectionsCommand} - */ - readonly describeVpcEndpointConnections: ( - args: DescribeVpcEndpointConnectionsCommandInput, - options?: __HttpHandlerOptions, - ) => Effect.Effect< - DescribeVpcEndpointConnectionsCommandOutput, - SdkError | EC2ServiceError - >; - - /** - * @see {@link DescribeVpcEndpointsCommand} - */ - readonly describeVpcEndpoints: ( - args: DescribeVpcEndpointsCommandInput, - options?: __HttpHandlerOptions, - ) => Effect.Effect< - DescribeVpcEndpointsCommandOutput, - SdkError | EC2ServiceError - >; - - /** - * @see {@link DescribeVpcEndpointServiceConfigurationsCommand} - */ - readonly describeVpcEndpointServiceConfigurations: ( - args: DescribeVpcEndpointServiceConfigurationsCommandInput, - options?: __HttpHandlerOptions, - ) => Effect.Effect< - DescribeVpcEndpointServiceConfigurationsCommandOutput, - SdkError | EC2ServiceError - >; - - /** - * @see {@link DescribeVpcEndpointServicePermissionsCommand} - */ - readonly describeVpcEndpointServicePermissions: ( - args: DescribeVpcEndpointServicePermissionsCommandInput, - options?: __HttpHandlerOptions, - ) => Effect.Effect< - DescribeVpcEndpointServicePermissionsCommandOutput, - SdkError | EC2ServiceError - >; - - /** - * @see {@link DescribeVpcEndpointServicesCommand} - */ - readonly describeVpcEndpointServices: ( - args: DescribeVpcEndpointServicesCommandInput, - options?: __HttpHandlerOptions, - ) => Effect.Effect< - DescribeVpcEndpointServicesCommandOutput, - SdkError | EC2ServiceError - >; - - /** - * @see {@link DescribeVpcPeeringConnectionsCommand} - */ - readonly describeVpcPeeringConnections: ( - args: DescribeVpcPeeringConnectionsCommandInput, - options?: __HttpHandlerOptions, - ) => Effect.Effect< - DescribeVpcPeeringConnectionsCommandOutput, - SdkError | EC2ServiceError - >; - - /** - * @see {@link DescribeVpcsCommand} - */ - readonly describeVpcs: ( - args: DescribeVpcsCommandInput, - options?: __HttpHandlerOptions, - ) => Effect.Effect; - - /** - * @see {@link DescribeVpnConnectionsCommand} - */ - readonly describeVpnConnections: ( - args: DescribeVpnConnectionsCommandInput, - options?: __HttpHandlerOptions, - ) => Effect.Effect< - DescribeVpnConnectionsCommandOutput, - SdkError | EC2ServiceError - >; - - /** - * @see {@link DescribeVpnGatewaysCommand} - */ - readonly describeVpnGateways: ( - args: DescribeVpnGatewaysCommandInput, - options?: __HttpHandlerOptions, - ) => Effect.Effect< - DescribeVpnGatewaysCommandOutput, - SdkError | EC2ServiceError - >; - - /** - * @see {@link DetachClassicLinkVpcCommand} - */ - readonly detachClassicLinkVpc: ( - args: DetachClassicLinkVpcCommandInput, - options?: __HttpHandlerOptions, - ) => Effect.Effect< - DetachClassicLinkVpcCommandOutput, - SdkError | EC2ServiceError - >; - - /** - * @see {@link DetachInternetGatewayCommand} - */ - readonly detachInternetGateway: ( - args: DetachInternetGatewayCommandInput, - options?: __HttpHandlerOptions, - ) => Effect.Effect< - DetachInternetGatewayCommandOutput, - SdkError | EC2ServiceError - >; - - /** - * @see {@link DetachNetworkInterfaceCommand} - */ - readonly detachNetworkInterface: ( - args: DetachNetworkInterfaceCommandInput, - options?: __HttpHandlerOptions, - ) => Effect.Effect< - DetachNetworkInterfaceCommandOutput, - SdkError | EC2ServiceError - >; - - /** - * @see {@link DetachVerifiedAccessTrustProviderCommand} - */ - readonly detachVerifiedAccessTrustProvider: ( - args: DetachVerifiedAccessTrustProviderCommandInput, - options?: __HttpHandlerOptions, - ) => Effect.Effect< - DetachVerifiedAccessTrustProviderCommandOutput, - SdkError | EC2ServiceError - >; - - /** - * @see {@link DetachVolumeCommand} - */ - readonly detachVolume: ( - args: DetachVolumeCommandInput, - options?: __HttpHandlerOptions, - ) => Effect.Effect; - - /** - * @see {@link DetachVpnGatewayCommand} - */ - readonly detachVpnGateway: ( - args: DetachVpnGatewayCommandInput, - options?: __HttpHandlerOptions, - ) => Effect.Effect; - - /** - * @see {@link DisableAddressTransferCommand} - */ - readonly disableAddressTransfer: ( - args: DisableAddressTransferCommandInput, - options?: __HttpHandlerOptions, - ) => Effect.Effect< - DisableAddressTransferCommandOutput, - SdkError | EC2ServiceError - >; - - /** - * @see {@link DisableAwsNetworkPerformanceMetricSubscriptionCommand} - */ - readonly disableAwsNetworkPerformanceMetricSubscription: ( - args: DisableAwsNetworkPerformanceMetricSubscriptionCommandInput, - options?: __HttpHandlerOptions, - ) => Effect.Effect< - DisableAwsNetworkPerformanceMetricSubscriptionCommandOutput, - SdkError | EC2ServiceError - >; - - /** - * @see {@link DisableEbsEncryptionByDefaultCommand} - */ - readonly disableEbsEncryptionByDefault: ( - args: DisableEbsEncryptionByDefaultCommandInput, - options?: __HttpHandlerOptions, - ) => Effect.Effect< - DisableEbsEncryptionByDefaultCommandOutput, - SdkError | EC2ServiceError - >; - - /** - * @see {@link DisableFastLaunchCommand} - */ - readonly disableFastLaunch: ( - args: DisableFastLaunchCommandInput, - options?: __HttpHandlerOptions, - ) => Effect.Effect< - DisableFastLaunchCommandOutput, - SdkError | EC2ServiceError - >; - - /** - * @see {@link DisableFastSnapshotRestoresCommand} - */ - readonly disableFastSnapshotRestores: ( - args: DisableFastSnapshotRestoresCommandInput, - options?: __HttpHandlerOptions, - ) => Effect.Effect< - DisableFastSnapshotRestoresCommandOutput, - SdkError | EC2ServiceError - >; - - /** - * @see {@link DisableImageCommand} - */ - readonly disableImage: ( - args: DisableImageCommandInput, - options?: __HttpHandlerOptions, - ) => Effect.Effect; - - /** - * @see {@link DisableImageBlockPublicAccessCommand} - */ - readonly disableImageBlockPublicAccess: ( - args: DisableImageBlockPublicAccessCommandInput, - options?: __HttpHandlerOptions, - ) => Effect.Effect< - DisableImageBlockPublicAccessCommandOutput, - SdkError | EC2ServiceError - >; - - /** - * @see {@link DisableImageDeprecationCommand} - */ - readonly disableImageDeprecation: ( - args: DisableImageDeprecationCommandInput, - options?: __HttpHandlerOptions, - ) => Effect.Effect< - DisableImageDeprecationCommandOutput, - SdkError | EC2ServiceError - >; - - /** - * @see {@link DisableIpamOrganizationAdminAccountCommand} - */ - readonly disableIpamOrganizationAdminAccount: ( - args: DisableIpamOrganizationAdminAccountCommandInput, - options?: __HttpHandlerOptions, - ) => Effect.Effect< - DisableIpamOrganizationAdminAccountCommandOutput, - SdkError | EC2ServiceError - >; - - /** - * @see {@link DisableSerialConsoleAccessCommand} - */ - readonly disableSerialConsoleAccess: ( - args: DisableSerialConsoleAccessCommandInput, - options?: __HttpHandlerOptions, - ) => Effect.Effect< - DisableSerialConsoleAccessCommandOutput, - SdkError | EC2ServiceError - >; - - /** - * @see {@link DisableSnapshotBlockPublicAccessCommand} - */ - readonly disableSnapshotBlockPublicAccess: ( - args: DisableSnapshotBlockPublicAccessCommandInput, - options?: __HttpHandlerOptions, - ) => Effect.Effect< - DisableSnapshotBlockPublicAccessCommandOutput, - SdkError | EC2ServiceError - >; - - /** - * @see {@link DisableTransitGatewayRouteTablePropagationCommand} - */ - readonly disableTransitGatewayRouteTablePropagation: ( - args: DisableTransitGatewayRouteTablePropagationCommandInput, - options?: __HttpHandlerOptions, - ) => Effect.Effect< - DisableTransitGatewayRouteTablePropagationCommandOutput, - SdkError | EC2ServiceError - >; - - /** - * @see {@link DisableVgwRoutePropagationCommand} - */ - readonly disableVgwRoutePropagation: ( - args: DisableVgwRoutePropagationCommandInput, - options?: __HttpHandlerOptions, - ) => Effect.Effect< - DisableVgwRoutePropagationCommandOutput, - SdkError | EC2ServiceError - >; - - /** - * @see {@link DisableVpcClassicLinkCommand} - */ - readonly disableVpcClassicLink: ( - args: DisableVpcClassicLinkCommandInput, - options?: __HttpHandlerOptions, - ) => Effect.Effect< - DisableVpcClassicLinkCommandOutput, - SdkError | EC2ServiceError - >; - - /** - * @see {@link DisableVpcClassicLinkDnsSupportCommand} - */ - readonly disableVpcClassicLinkDnsSupport: ( - args: DisableVpcClassicLinkDnsSupportCommandInput, - options?: __HttpHandlerOptions, - ) => Effect.Effect< - DisableVpcClassicLinkDnsSupportCommandOutput, - SdkError | EC2ServiceError - >; - - /** - * @see {@link DisassociateAddressCommand} - */ - readonly disassociateAddress: ( - args: DisassociateAddressCommandInput, - options?: __HttpHandlerOptions, - ) => Effect.Effect< - DisassociateAddressCommandOutput, - SdkError | EC2ServiceError - >; - - /** - * @see {@link DisassociateClientVpnTargetNetworkCommand} - */ - readonly disassociateClientVpnTargetNetwork: ( - args: DisassociateClientVpnTargetNetworkCommandInput, - options?: __HttpHandlerOptions, - ) => Effect.Effect< - DisassociateClientVpnTargetNetworkCommandOutput, - SdkError | EC2ServiceError - >; - - /** - * @see {@link DisassociateEnclaveCertificateIamRoleCommand} - */ - readonly disassociateEnclaveCertificateIamRole: ( - args: DisassociateEnclaveCertificateIamRoleCommandInput, - options?: __HttpHandlerOptions, - ) => Effect.Effect< - DisassociateEnclaveCertificateIamRoleCommandOutput, - SdkError | EC2ServiceError - >; - - /** - * @see {@link DisassociateIamInstanceProfileCommand} - */ - readonly disassociateIamInstanceProfile: ( - args: DisassociateIamInstanceProfileCommandInput, - options?: __HttpHandlerOptions, - ) => Effect.Effect< - DisassociateIamInstanceProfileCommandOutput, - SdkError | EC2ServiceError - >; - - /** - * @see {@link DisassociateInstanceEventWindowCommand} - */ - readonly disassociateInstanceEventWindow: ( - args: DisassociateInstanceEventWindowCommandInput, - options?: __HttpHandlerOptions, - ) => Effect.Effect< - DisassociateInstanceEventWindowCommandOutput, - SdkError | EC2ServiceError - >; - - /** - * @see {@link DisassociateIpamByoasnCommand} - */ - readonly disassociateIpamByoasn: ( - args: DisassociateIpamByoasnCommandInput, - options?: __HttpHandlerOptions, - ) => Effect.Effect< - DisassociateIpamByoasnCommandOutput, - SdkError | EC2ServiceError - >; - - /** - * @see {@link DisassociateIpamResourceDiscoveryCommand} - */ - readonly disassociateIpamResourceDiscovery: ( - args: DisassociateIpamResourceDiscoveryCommandInput, - options?: __HttpHandlerOptions, - ) => Effect.Effect< - DisassociateIpamResourceDiscoveryCommandOutput, - SdkError | EC2ServiceError - >; - - /** - * @see {@link DisassociateNatGatewayAddressCommand} - */ - readonly disassociateNatGatewayAddress: ( - args: DisassociateNatGatewayAddressCommandInput, - options?: __HttpHandlerOptions, - ) => Effect.Effect< - DisassociateNatGatewayAddressCommandOutput, - SdkError | EC2ServiceError - >; - - /** - * @see {@link DisassociateRouteTableCommand} - */ - readonly disassociateRouteTable: ( - args: DisassociateRouteTableCommandInput, - options?: __HttpHandlerOptions, - ) => Effect.Effect< - DisassociateRouteTableCommandOutput, - SdkError | EC2ServiceError - >; - - /** - * @see {@link DisassociateSubnetCidrBlockCommand} - */ - readonly disassociateSubnetCidrBlock: ( - args: DisassociateSubnetCidrBlockCommandInput, - options?: __HttpHandlerOptions, - ) => Effect.Effect< - DisassociateSubnetCidrBlockCommandOutput, - SdkError | EC2ServiceError - >; - - /** - * @see {@link DisassociateTransitGatewayMulticastDomainCommand} - */ - readonly disassociateTransitGatewayMulticastDomain: ( - args: DisassociateTransitGatewayMulticastDomainCommandInput, - options?: __HttpHandlerOptions, - ) => Effect.Effect< - DisassociateTransitGatewayMulticastDomainCommandOutput, - SdkError | EC2ServiceError - >; - - /** - * @see {@link DisassociateTransitGatewayPolicyTableCommand} - */ - readonly disassociateTransitGatewayPolicyTable: ( - args: DisassociateTransitGatewayPolicyTableCommandInput, - options?: __HttpHandlerOptions, - ) => Effect.Effect< - DisassociateTransitGatewayPolicyTableCommandOutput, - SdkError | EC2ServiceError - >; - - /** - * @see {@link DisassociateTransitGatewayRouteTableCommand} - */ - readonly disassociateTransitGatewayRouteTable: ( - args: DisassociateTransitGatewayRouteTableCommandInput, - options?: __HttpHandlerOptions, - ) => Effect.Effect< - DisassociateTransitGatewayRouteTableCommandOutput, - SdkError | EC2ServiceError - >; - - /** - * @see {@link DisassociateTrunkInterfaceCommand} - */ - readonly disassociateTrunkInterface: ( - args: DisassociateTrunkInterfaceCommandInput, - options?: __HttpHandlerOptions, - ) => Effect.Effect< - DisassociateTrunkInterfaceCommandOutput, - SdkError | EC2ServiceError - >; - - /** - * @see {@link DisassociateVpcCidrBlockCommand} - */ - readonly disassociateVpcCidrBlock: ( - args: DisassociateVpcCidrBlockCommandInput, - options?: __HttpHandlerOptions, - ) => Effect.Effect< - DisassociateVpcCidrBlockCommandOutput, - SdkError | EC2ServiceError - >; - - /** - * @see {@link EnableAddressTransferCommand} - */ - readonly enableAddressTransfer: ( - args: EnableAddressTransferCommandInput, - options?: __HttpHandlerOptions, - ) => Effect.Effect< - EnableAddressTransferCommandOutput, - SdkError | EC2ServiceError - >; - - /** - * @see {@link EnableAwsNetworkPerformanceMetricSubscriptionCommand} - */ - readonly enableAwsNetworkPerformanceMetricSubscription: ( - args: EnableAwsNetworkPerformanceMetricSubscriptionCommandInput, - options?: __HttpHandlerOptions, - ) => Effect.Effect< - EnableAwsNetworkPerformanceMetricSubscriptionCommandOutput, - SdkError | EC2ServiceError - >; - - /** - * @see {@link EnableEbsEncryptionByDefaultCommand} - */ - readonly enableEbsEncryptionByDefault: ( - args: EnableEbsEncryptionByDefaultCommandInput, - options?: __HttpHandlerOptions, - ) => Effect.Effect< - EnableEbsEncryptionByDefaultCommandOutput, - SdkError | EC2ServiceError - >; - - /** - * @see {@link EnableFastLaunchCommand} - */ - readonly enableFastLaunch: ( - args: EnableFastLaunchCommandInput, - options?: __HttpHandlerOptions, - ) => Effect.Effect; - - /** - * @see {@link EnableFastSnapshotRestoresCommand} - */ - readonly enableFastSnapshotRestores: ( - args: EnableFastSnapshotRestoresCommandInput, - options?: __HttpHandlerOptions, - ) => Effect.Effect< - EnableFastSnapshotRestoresCommandOutput, - SdkError | EC2ServiceError - >; - - /** - * @see {@link EnableImageCommand} - */ - readonly enableImage: ( - args: EnableImageCommandInput, - options?: __HttpHandlerOptions, - ) => Effect.Effect; - - /** - * @see {@link EnableImageBlockPublicAccessCommand} - */ - readonly enableImageBlockPublicAccess: ( - args: EnableImageBlockPublicAccessCommandInput, - options?: __HttpHandlerOptions, - ) => Effect.Effect< - EnableImageBlockPublicAccessCommandOutput, - SdkError | EC2ServiceError - >; - - /** - * @see {@link EnableImageDeprecationCommand} - */ - readonly enableImageDeprecation: ( - args: EnableImageDeprecationCommandInput, - options?: __HttpHandlerOptions, - ) => Effect.Effect< - EnableImageDeprecationCommandOutput, - SdkError | EC2ServiceError - >; - - /** - * @see {@link EnableIpamOrganizationAdminAccountCommand} - */ - readonly enableIpamOrganizationAdminAccount: ( - args: EnableIpamOrganizationAdminAccountCommandInput, - options?: __HttpHandlerOptions, - ) => Effect.Effect< - EnableIpamOrganizationAdminAccountCommandOutput, - SdkError | EC2ServiceError - >; - - /** - * @see {@link EnableReachabilityAnalyzerOrganizationSharingCommand} - */ - readonly enableReachabilityAnalyzerOrganizationSharing: ( - args: EnableReachabilityAnalyzerOrganizationSharingCommandInput, - options?: __HttpHandlerOptions, - ) => Effect.Effect< - EnableReachabilityAnalyzerOrganizationSharingCommandOutput, - SdkError | EC2ServiceError - >; - - /** - * @see {@link EnableSerialConsoleAccessCommand} - */ - readonly enableSerialConsoleAccess: ( - args: EnableSerialConsoleAccessCommandInput, - options?: __HttpHandlerOptions, - ) => Effect.Effect< - EnableSerialConsoleAccessCommandOutput, - SdkError | EC2ServiceError - >; - - /** - * @see {@link EnableSnapshotBlockPublicAccessCommand} - */ - readonly enableSnapshotBlockPublicAccess: ( - args: EnableSnapshotBlockPublicAccessCommandInput, - options?: __HttpHandlerOptions, - ) => Effect.Effect< - EnableSnapshotBlockPublicAccessCommandOutput, - SdkError | EC2ServiceError - >; - - /** - * @see {@link EnableTransitGatewayRouteTablePropagationCommand} - */ - readonly enableTransitGatewayRouteTablePropagation: ( - args: EnableTransitGatewayRouteTablePropagationCommandInput, - options?: __HttpHandlerOptions, - ) => Effect.Effect< - EnableTransitGatewayRouteTablePropagationCommandOutput, - SdkError | EC2ServiceError - >; - - /** - * @see {@link EnableVgwRoutePropagationCommand} - */ - readonly enableVgwRoutePropagation: ( - args: EnableVgwRoutePropagationCommandInput, - options?: __HttpHandlerOptions, - ) => Effect.Effect< - EnableVgwRoutePropagationCommandOutput, - SdkError | EC2ServiceError - >; - - /** - * @see {@link EnableVolumeIOCommand} - */ - readonly enableVolumeIO: ( - args: EnableVolumeIOCommandInput, - options?: __HttpHandlerOptions, - ) => Effect.Effect; - - /** - * @see {@link EnableVpcClassicLinkCommand} - */ - readonly enableVpcClassicLink: ( - args: EnableVpcClassicLinkCommandInput, - options?: __HttpHandlerOptions, - ) => Effect.Effect< - EnableVpcClassicLinkCommandOutput, - SdkError | EC2ServiceError - >; - - /** - * @see {@link EnableVpcClassicLinkDnsSupportCommand} - */ - readonly enableVpcClassicLinkDnsSupport: ( - args: EnableVpcClassicLinkDnsSupportCommandInput, - options?: __HttpHandlerOptions, - ) => Effect.Effect< - EnableVpcClassicLinkDnsSupportCommandOutput, - SdkError | EC2ServiceError - >; - - /** - * @see {@link ExportClientVpnClientCertificateRevocationListCommand} - */ - readonly exportClientVpnClientCertificateRevocationList: ( - args: ExportClientVpnClientCertificateRevocationListCommandInput, - options?: __HttpHandlerOptions, - ) => Effect.Effect< - ExportClientVpnClientCertificateRevocationListCommandOutput, - SdkError | EC2ServiceError - >; - - /** - * @see {@link ExportClientVpnClientConfigurationCommand} - */ - readonly exportClientVpnClientConfiguration: ( - args: ExportClientVpnClientConfigurationCommandInput, - options?: __HttpHandlerOptions, - ) => Effect.Effect< - ExportClientVpnClientConfigurationCommandOutput, - SdkError | EC2ServiceError - >; - - /** - * @see {@link ExportImageCommand} - */ - readonly exportImage: ( - args: ExportImageCommandInput, - options?: __HttpHandlerOptions, - ) => Effect.Effect; - - /** - * @see {@link ExportTransitGatewayRoutesCommand} - */ - readonly exportTransitGatewayRoutes: ( - args: ExportTransitGatewayRoutesCommandInput, - options?: __HttpHandlerOptions, - ) => Effect.Effect< - ExportTransitGatewayRoutesCommandOutput, - SdkError | EC2ServiceError - >; - - /** - * @see {@link GetAssociatedEnclaveCertificateIamRolesCommand} - */ - readonly getAssociatedEnclaveCertificateIamRoles: ( - args: GetAssociatedEnclaveCertificateIamRolesCommandInput, - options?: __HttpHandlerOptions, - ) => Effect.Effect< - GetAssociatedEnclaveCertificateIamRolesCommandOutput, - SdkError | EC2ServiceError - >; - - /** - * @see {@link GetAssociatedIpv6PoolCidrsCommand} - */ - readonly getAssociatedIpv6PoolCidrs: ( - args: GetAssociatedIpv6PoolCidrsCommandInput, - options?: __HttpHandlerOptions, - ) => Effect.Effect< - GetAssociatedIpv6PoolCidrsCommandOutput, - SdkError | EC2ServiceError - >; - - /** - * @see {@link GetAwsNetworkPerformanceDataCommand} - */ - readonly getAwsNetworkPerformanceData: ( - args: GetAwsNetworkPerformanceDataCommandInput, - options?: __HttpHandlerOptions, - ) => Effect.Effect< - GetAwsNetworkPerformanceDataCommandOutput, - SdkError | EC2ServiceError - >; - - /** - * @see {@link GetCapacityReservationUsageCommand} - */ - readonly getCapacityReservationUsage: ( - args: GetCapacityReservationUsageCommandInput, - options?: __HttpHandlerOptions, - ) => Effect.Effect< - GetCapacityReservationUsageCommandOutput, - SdkError | EC2ServiceError - >; - - /** - * @see {@link GetCoipPoolUsageCommand} - */ - readonly getCoipPoolUsage: ( - args: GetCoipPoolUsageCommandInput, - options?: __HttpHandlerOptions, - ) => Effect.Effect; - - /** - * @see {@link GetConsoleOutputCommand} - */ - readonly getConsoleOutput: ( - args: GetConsoleOutputCommandInput, - options?: __HttpHandlerOptions, - ) => Effect.Effect; - - /** - * @see {@link GetConsoleScreenshotCommand} - */ - readonly getConsoleScreenshot: ( - args: GetConsoleScreenshotCommandInput, - options?: __HttpHandlerOptions, - ) => Effect.Effect< - GetConsoleScreenshotCommandOutput, - SdkError | EC2ServiceError - >; - - /** - * @see {@link GetDefaultCreditSpecificationCommand} - */ - readonly getDefaultCreditSpecification: ( - args: GetDefaultCreditSpecificationCommandInput, - options?: __HttpHandlerOptions, - ) => Effect.Effect< - GetDefaultCreditSpecificationCommandOutput, - SdkError | EC2ServiceError - >; - - /** - * @see {@link GetEbsDefaultKmsKeyIdCommand} - */ - readonly getEbsDefaultKmsKeyId: ( - args: GetEbsDefaultKmsKeyIdCommandInput, - options?: __HttpHandlerOptions, - ) => Effect.Effect< - GetEbsDefaultKmsKeyIdCommandOutput, - SdkError | EC2ServiceError - >; - - /** - * @see {@link GetEbsEncryptionByDefaultCommand} - */ - readonly getEbsEncryptionByDefault: ( - args: GetEbsEncryptionByDefaultCommandInput, - options?: __HttpHandlerOptions, - ) => Effect.Effect< - GetEbsEncryptionByDefaultCommandOutput, - SdkError | EC2ServiceError - >; - - /** - * @see {@link GetFlowLogsIntegrationTemplateCommand} - */ - readonly getFlowLogsIntegrationTemplate: ( - args: GetFlowLogsIntegrationTemplateCommandInput, - options?: __HttpHandlerOptions, - ) => Effect.Effect< - GetFlowLogsIntegrationTemplateCommandOutput, - SdkError | EC2ServiceError - >; - - /** - * @see {@link GetGroupsForCapacityReservationCommand} - */ - readonly getGroupsForCapacityReservation: ( - args: GetGroupsForCapacityReservationCommandInput, - options?: __HttpHandlerOptions, - ) => Effect.Effect< - GetGroupsForCapacityReservationCommandOutput, - SdkError | EC2ServiceError - >; - - /** - * @see {@link GetHostReservationPurchasePreviewCommand} - */ - readonly getHostReservationPurchasePreview: ( - args: GetHostReservationPurchasePreviewCommandInput, - options?: __HttpHandlerOptions, - ) => Effect.Effect< - GetHostReservationPurchasePreviewCommandOutput, - SdkError | EC2ServiceError - >; - - /** - * @see {@link GetImageBlockPublicAccessStateCommand} - */ - readonly getImageBlockPublicAccessState: ( - args: GetImageBlockPublicAccessStateCommandInput, - options?: __HttpHandlerOptions, - ) => Effect.Effect< - GetImageBlockPublicAccessStateCommandOutput, - SdkError | EC2ServiceError - >; - - /** - * @see {@link GetInstanceTypesFromInstanceRequirementsCommand} - */ - readonly getInstanceTypesFromInstanceRequirements: ( - args: GetInstanceTypesFromInstanceRequirementsCommandInput, - options?: __HttpHandlerOptions, - ) => Effect.Effect< - GetInstanceTypesFromInstanceRequirementsCommandOutput, - SdkError | EC2ServiceError - >; - - /** - * @see {@link GetInstanceUefiDataCommand} - */ - readonly getInstanceUefiData: ( - args: GetInstanceUefiDataCommandInput, - options?: __HttpHandlerOptions, - ) => Effect.Effect< - GetInstanceUefiDataCommandOutput, - SdkError | EC2ServiceError - >; - - /** - * @see {@link GetIpamAddressHistoryCommand} - */ - readonly getIpamAddressHistory: ( - args: GetIpamAddressHistoryCommandInput, - options?: __HttpHandlerOptions, - ) => Effect.Effect< - GetIpamAddressHistoryCommandOutput, - SdkError | EC2ServiceError - >; - - /** - * @see {@link GetIpamDiscoveredAccountsCommand} - */ - readonly getIpamDiscoveredAccounts: ( - args: GetIpamDiscoveredAccountsCommandInput, - options?: __HttpHandlerOptions, - ) => Effect.Effect< - GetIpamDiscoveredAccountsCommandOutput, - SdkError | EC2ServiceError - >; - - /** - * @see {@link GetIpamDiscoveredPublicAddressesCommand} - */ - readonly getIpamDiscoveredPublicAddresses: ( - args: GetIpamDiscoveredPublicAddressesCommandInput, - options?: __HttpHandlerOptions, - ) => Effect.Effect< - GetIpamDiscoveredPublicAddressesCommandOutput, - SdkError | EC2ServiceError - >; - - /** - * @see {@link GetIpamDiscoveredResourceCidrsCommand} - */ - readonly getIpamDiscoveredResourceCidrs: ( - args: GetIpamDiscoveredResourceCidrsCommandInput, - options?: __HttpHandlerOptions, - ) => Effect.Effect< - GetIpamDiscoveredResourceCidrsCommandOutput, - SdkError | EC2ServiceError - >; - - /** - * @see {@link GetIpamPoolAllocationsCommand} - */ - readonly getIpamPoolAllocations: ( - args: GetIpamPoolAllocationsCommandInput, - options?: __HttpHandlerOptions, - ) => Effect.Effect< - GetIpamPoolAllocationsCommandOutput, - SdkError | EC2ServiceError - >; - - /** - * @see {@link GetIpamPoolCidrsCommand} - */ - readonly getIpamPoolCidrs: ( - args: GetIpamPoolCidrsCommandInput, - options?: __HttpHandlerOptions, - ) => Effect.Effect; - - /** - * @see {@link GetIpamResourceCidrsCommand} - */ - readonly getIpamResourceCidrs: ( - args: GetIpamResourceCidrsCommandInput, - options?: __HttpHandlerOptions, - ) => Effect.Effect< - GetIpamResourceCidrsCommandOutput, - SdkError | EC2ServiceError - >; - - /** - * @see {@link GetLaunchTemplateDataCommand} - */ - readonly getLaunchTemplateData: ( - args: GetLaunchTemplateDataCommandInput, - options?: __HttpHandlerOptions, - ) => Effect.Effect< - GetLaunchTemplateDataCommandOutput, - SdkError | EC2ServiceError - >; - - /** - * @see {@link GetManagedPrefixListAssociationsCommand} - */ - readonly getManagedPrefixListAssociations: ( - args: GetManagedPrefixListAssociationsCommandInput, - options?: __HttpHandlerOptions, - ) => Effect.Effect< - GetManagedPrefixListAssociationsCommandOutput, - SdkError | EC2ServiceError - >; - - /** - * @see {@link GetManagedPrefixListEntriesCommand} - */ - readonly getManagedPrefixListEntries: ( - args: GetManagedPrefixListEntriesCommandInput, - options?: __HttpHandlerOptions, - ) => Effect.Effect< - GetManagedPrefixListEntriesCommandOutput, - SdkError | EC2ServiceError - >; - - /** - * @see {@link GetNetworkInsightsAccessScopeAnalysisFindingsCommand} - */ - readonly getNetworkInsightsAccessScopeAnalysisFindings: ( - args: GetNetworkInsightsAccessScopeAnalysisFindingsCommandInput, - options?: __HttpHandlerOptions, - ) => Effect.Effect< - GetNetworkInsightsAccessScopeAnalysisFindingsCommandOutput, - SdkError | EC2ServiceError - >; - - /** - * @see {@link GetNetworkInsightsAccessScopeContentCommand} - */ - readonly getNetworkInsightsAccessScopeContent: ( - args: GetNetworkInsightsAccessScopeContentCommandInput, - options?: __HttpHandlerOptions, - ) => Effect.Effect< - GetNetworkInsightsAccessScopeContentCommandOutput, - SdkError | EC2ServiceError - >; - - /** - * @see {@link GetPasswordDataCommand} - */ - readonly getPasswordData: ( - args: GetPasswordDataCommandInput, - options?: __HttpHandlerOptions, - ) => Effect.Effect; - - /** - * @see {@link GetReservedInstancesExchangeQuoteCommand} - */ - readonly getReservedInstancesExchangeQuote: ( - args: GetReservedInstancesExchangeQuoteCommandInput, - options?: __HttpHandlerOptions, - ) => Effect.Effect< - GetReservedInstancesExchangeQuoteCommandOutput, - SdkError | EC2ServiceError - >; - - /** - * @see {@link GetSecurityGroupsForVpcCommand} - */ - readonly getSecurityGroupsForVpc: ( - args: GetSecurityGroupsForVpcCommandInput, - options?: __HttpHandlerOptions, - ) => Effect.Effect< - GetSecurityGroupsForVpcCommandOutput, - SdkError | EC2ServiceError - >; - - /** - * @see {@link GetSerialConsoleAccessStatusCommand} - */ - readonly getSerialConsoleAccessStatus: ( - args: GetSerialConsoleAccessStatusCommandInput, - options?: __HttpHandlerOptions, - ) => Effect.Effect< - GetSerialConsoleAccessStatusCommandOutput, - SdkError | EC2ServiceError - >; - - /** - * @see {@link GetSnapshotBlockPublicAccessStateCommand} - */ - readonly getSnapshotBlockPublicAccessState: ( - args: GetSnapshotBlockPublicAccessStateCommandInput, - options?: __HttpHandlerOptions, - ) => Effect.Effect< - GetSnapshotBlockPublicAccessStateCommandOutput, - SdkError | EC2ServiceError - >; - - /** - * @see {@link GetSpotPlacementScoresCommand} - */ - readonly getSpotPlacementScores: ( - args: GetSpotPlacementScoresCommandInput, - options?: __HttpHandlerOptions, - ) => Effect.Effect< - GetSpotPlacementScoresCommandOutput, - SdkError | EC2ServiceError - >; - - /** - * @see {@link GetSubnetCidrReservationsCommand} - */ - readonly getSubnetCidrReservations: ( - args: GetSubnetCidrReservationsCommandInput, - options?: __HttpHandlerOptions, - ) => Effect.Effect< - GetSubnetCidrReservationsCommandOutput, - SdkError | EC2ServiceError - >; - - /** - * @see {@link GetTransitGatewayAttachmentPropagationsCommand} - */ - readonly getTransitGatewayAttachmentPropagations: ( - args: GetTransitGatewayAttachmentPropagationsCommandInput, - options?: __HttpHandlerOptions, - ) => Effect.Effect< - GetTransitGatewayAttachmentPropagationsCommandOutput, - SdkError | EC2ServiceError - >; - - /** - * @see {@link GetTransitGatewayMulticastDomainAssociationsCommand} - */ - readonly getTransitGatewayMulticastDomainAssociations: ( - args: GetTransitGatewayMulticastDomainAssociationsCommandInput, - options?: __HttpHandlerOptions, - ) => Effect.Effect< - GetTransitGatewayMulticastDomainAssociationsCommandOutput, - SdkError | EC2ServiceError - >; - - /** - * @see {@link GetTransitGatewayPolicyTableAssociationsCommand} - */ - readonly getTransitGatewayPolicyTableAssociations: ( - args: GetTransitGatewayPolicyTableAssociationsCommandInput, - options?: __HttpHandlerOptions, - ) => Effect.Effect< - GetTransitGatewayPolicyTableAssociationsCommandOutput, - SdkError | EC2ServiceError - >; - - /** - * @see {@link GetTransitGatewayPolicyTableEntriesCommand} - */ - readonly getTransitGatewayPolicyTableEntries: ( - args: GetTransitGatewayPolicyTableEntriesCommandInput, - options?: __HttpHandlerOptions, - ) => Effect.Effect< - GetTransitGatewayPolicyTableEntriesCommandOutput, - SdkError | EC2ServiceError - >; - - /** - * @see {@link GetTransitGatewayPrefixListReferencesCommand} - */ - readonly getTransitGatewayPrefixListReferences: ( - args: GetTransitGatewayPrefixListReferencesCommandInput, - options?: __HttpHandlerOptions, - ) => Effect.Effect< - GetTransitGatewayPrefixListReferencesCommandOutput, - SdkError | EC2ServiceError - >; - - /** - * @see {@link GetTransitGatewayRouteTableAssociationsCommand} - */ - readonly getTransitGatewayRouteTableAssociations: ( - args: GetTransitGatewayRouteTableAssociationsCommandInput, - options?: __HttpHandlerOptions, - ) => Effect.Effect< - GetTransitGatewayRouteTableAssociationsCommandOutput, - SdkError | EC2ServiceError - >; - - /** - * @see {@link GetTransitGatewayRouteTablePropagationsCommand} - */ - readonly getTransitGatewayRouteTablePropagations: ( - args: GetTransitGatewayRouteTablePropagationsCommandInput, - options?: __HttpHandlerOptions, - ) => Effect.Effect< - GetTransitGatewayRouteTablePropagationsCommandOutput, - SdkError | EC2ServiceError - >; - - /** - * @see {@link GetVerifiedAccessEndpointPolicyCommand} - */ - readonly getVerifiedAccessEndpointPolicy: ( - args: GetVerifiedAccessEndpointPolicyCommandInput, - options?: __HttpHandlerOptions, - ) => Effect.Effect< - GetVerifiedAccessEndpointPolicyCommandOutput, - SdkError | EC2ServiceError - >; - - /** - * @see {@link GetVerifiedAccessGroupPolicyCommand} - */ - readonly getVerifiedAccessGroupPolicy: ( - args: GetVerifiedAccessGroupPolicyCommandInput, - options?: __HttpHandlerOptions, - ) => Effect.Effect< - GetVerifiedAccessGroupPolicyCommandOutput, - SdkError | EC2ServiceError - >; - - /** - * @see {@link GetVpnConnectionDeviceSampleConfigurationCommand} - */ - readonly getVpnConnectionDeviceSampleConfiguration: ( - args: GetVpnConnectionDeviceSampleConfigurationCommandInput, - options?: __HttpHandlerOptions, - ) => Effect.Effect< - GetVpnConnectionDeviceSampleConfigurationCommandOutput, - SdkError | EC2ServiceError - >; - - /** - * @see {@link GetVpnConnectionDeviceTypesCommand} - */ - readonly getVpnConnectionDeviceTypes: ( - args: GetVpnConnectionDeviceTypesCommandInput, - options?: __HttpHandlerOptions, - ) => Effect.Effect< - GetVpnConnectionDeviceTypesCommandOutput, - SdkError | EC2ServiceError - >; - - /** - * @see {@link GetVpnTunnelReplacementStatusCommand} - */ - readonly getVpnTunnelReplacementStatus: ( - args: GetVpnTunnelReplacementStatusCommandInput, - options?: __HttpHandlerOptions, - ) => Effect.Effect< - GetVpnTunnelReplacementStatusCommandOutput, - SdkError | EC2ServiceError - >; - - /** - * @see {@link ImportClientVpnClientCertificateRevocationListCommand} - */ - readonly importClientVpnClientCertificateRevocationList: ( - args: ImportClientVpnClientCertificateRevocationListCommandInput, - options?: __HttpHandlerOptions, - ) => Effect.Effect< - ImportClientVpnClientCertificateRevocationListCommandOutput, - SdkError | EC2ServiceError - >; - - /** - * @see {@link ImportImageCommand} - */ - readonly importImage: ( - args: ImportImageCommandInput, - options?: __HttpHandlerOptions, - ) => Effect.Effect; - - /** - * @see {@link ImportInstanceCommand} - */ - readonly importInstance: ( - args: ImportInstanceCommandInput, - options?: __HttpHandlerOptions, - ) => Effect.Effect; - - /** - * @see {@link ImportKeyPairCommand} - */ - readonly importKeyPair: ( - args: ImportKeyPairCommandInput, - options?: __HttpHandlerOptions, - ) => Effect.Effect; - - /** - * @see {@link ImportSnapshotCommand} - */ - readonly importSnapshot: ( - args: ImportSnapshotCommandInput, - options?: __HttpHandlerOptions, - ) => Effect.Effect; - - /** - * @see {@link ImportVolumeCommand} - */ - readonly importVolume: ( - args: ImportVolumeCommandInput, - options?: __HttpHandlerOptions, - ) => Effect.Effect; - - /** - * @see {@link ListImagesInRecycleBinCommand} - */ - readonly listImagesInRecycleBin: ( - args: ListImagesInRecycleBinCommandInput, - options?: __HttpHandlerOptions, - ) => Effect.Effect< - ListImagesInRecycleBinCommandOutput, - SdkError | EC2ServiceError - >; - - /** - * @see {@link ListSnapshotsInRecycleBinCommand} - */ - readonly listSnapshotsInRecycleBin: ( - args: ListSnapshotsInRecycleBinCommandInput, - options?: __HttpHandlerOptions, - ) => Effect.Effect< - ListSnapshotsInRecycleBinCommandOutput, - SdkError | EC2ServiceError - >; - - /** - * @see {@link LockSnapshotCommand} - */ - readonly lockSnapshot: ( - args: LockSnapshotCommandInput, - options?: __HttpHandlerOptions, - ) => Effect.Effect; - - /** - * @see {@link ModifyAddressAttributeCommand} - */ - readonly modifyAddressAttribute: ( - args: ModifyAddressAttributeCommandInput, - options?: __HttpHandlerOptions, - ) => Effect.Effect< - ModifyAddressAttributeCommandOutput, - SdkError | EC2ServiceError - >; - - /** - * @see {@link ModifyAvailabilityZoneGroupCommand} - */ - readonly modifyAvailabilityZoneGroup: ( - args: ModifyAvailabilityZoneGroupCommandInput, - options?: __HttpHandlerOptions, - ) => Effect.Effect< - ModifyAvailabilityZoneGroupCommandOutput, - SdkError | EC2ServiceError - >; - - /** - * @see {@link ModifyCapacityReservationCommand} - */ - readonly modifyCapacityReservation: ( - args: ModifyCapacityReservationCommandInput, - options?: __HttpHandlerOptions, - ) => Effect.Effect< - ModifyCapacityReservationCommandOutput, - SdkError | EC2ServiceError - >; - - /** - * @see {@link ModifyCapacityReservationFleetCommand} - */ - readonly modifyCapacityReservationFleet: ( - args: ModifyCapacityReservationFleetCommandInput, - options?: __HttpHandlerOptions, - ) => Effect.Effect< - ModifyCapacityReservationFleetCommandOutput, - SdkError | EC2ServiceError - >; - - /** - * @see {@link ModifyClientVpnEndpointCommand} - */ - readonly modifyClientVpnEndpoint: ( - args: ModifyClientVpnEndpointCommandInput, - options?: __HttpHandlerOptions, - ) => Effect.Effect< - ModifyClientVpnEndpointCommandOutput, - SdkError | EC2ServiceError - >; - - /** - * @see {@link ModifyDefaultCreditSpecificationCommand} - */ - readonly modifyDefaultCreditSpecification: ( - args: ModifyDefaultCreditSpecificationCommandInput, - options?: __HttpHandlerOptions, - ) => Effect.Effect< - ModifyDefaultCreditSpecificationCommandOutput, - SdkError | EC2ServiceError - >; - - /** - * @see {@link ModifyEbsDefaultKmsKeyIdCommand} - */ - readonly modifyEbsDefaultKmsKeyId: ( - args: ModifyEbsDefaultKmsKeyIdCommandInput, - options?: __HttpHandlerOptions, - ) => Effect.Effect< - ModifyEbsDefaultKmsKeyIdCommandOutput, - SdkError | EC2ServiceError - >; - - /** - * @see {@link ModifyFleetCommand} - */ - readonly modifyFleet: ( - args: ModifyFleetCommandInput, - options?: __HttpHandlerOptions, - ) => Effect.Effect; - - /** - * @see {@link ModifyFpgaImageAttributeCommand} - */ - readonly modifyFpgaImageAttribute: ( - args: ModifyFpgaImageAttributeCommandInput, - options?: __HttpHandlerOptions, - ) => Effect.Effect< - ModifyFpgaImageAttributeCommandOutput, - SdkError | EC2ServiceError - >; - - /** - * @see {@link ModifyHostsCommand} - */ - readonly modifyHosts: ( - args: ModifyHostsCommandInput, - options?: __HttpHandlerOptions, - ) => Effect.Effect; - - /** - * @see {@link ModifyIdentityIdFormatCommand} - */ - readonly modifyIdentityIdFormat: ( - args: ModifyIdentityIdFormatCommandInput, - options?: __HttpHandlerOptions, - ) => Effect.Effect< - ModifyIdentityIdFormatCommandOutput, - SdkError | EC2ServiceError - >; - - /** - * @see {@link ModifyIdFormatCommand} - */ - readonly modifyIdFormat: ( - args: ModifyIdFormatCommandInput, - options?: __HttpHandlerOptions, - ) => Effect.Effect; - - /** - * @see {@link ModifyImageAttributeCommand} - */ - readonly modifyImageAttribute: ( - args: ModifyImageAttributeCommandInput, - options?: __HttpHandlerOptions, - ) => Effect.Effect< - ModifyImageAttributeCommandOutput, - SdkError | EC2ServiceError - >; - - /** - * @see {@link ModifyInstanceAttributeCommand} - */ - readonly modifyInstanceAttribute: ( - args: ModifyInstanceAttributeCommandInput, - options?: __HttpHandlerOptions, - ) => Effect.Effect< - ModifyInstanceAttributeCommandOutput, - SdkError | EC2ServiceError - >; - - /** - * @see {@link ModifyInstanceCapacityReservationAttributesCommand} - */ - readonly modifyInstanceCapacityReservationAttributes: ( - args: ModifyInstanceCapacityReservationAttributesCommandInput, - options?: __HttpHandlerOptions, - ) => Effect.Effect< - ModifyInstanceCapacityReservationAttributesCommandOutput, - SdkError | EC2ServiceError - >; - - /** - * @see {@link ModifyInstanceCreditSpecificationCommand} - */ - readonly modifyInstanceCreditSpecification: ( - args: ModifyInstanceCreditSpecificationCommandInput, - options?: __HttpHandlerOptions, - ) => Effect.Effect< - ModifyInstanceCreditSpecificationCommandOutput, - SdkError | EC2ServiceError - >; - - /** - * @see {@link ModifyInstanceEventStartTimeCommand} - */ - readonly modifyInstanceEventStartTime: ( - args: ModifyInstanceEventStartTimeCommandInput, - options?: __HttpHandlerOptions, - ) => Effect.Effect< - ModifyInstanceEventStartTimeCommandOutput, - SdkError | EC2ServiceError - >; - - /** - * @see {@link ModifyInstanceEventWindowCommand} - */ - readonly modifyInstanceEventWindow: ( - args: ModifyInstanceEventWindowCommandInput, - options?: __HttpHandlerOptions, - ) => Effect.Effect< - ModifyInstanceEventWindowCommandOutput, - SdkError | EC2ServiceError - >; - - /** - * @see {@link ModifyInstanceMaintenanceOptionsCommand} - */ - readonly modifyInstanceMaintenanceOptions: ( - args: ModifyInstanceMaintenanceOptionsCommandInput, - options?: __HttpHandlerOptions, - ) => Effect.Effect< - ModifyInstanceMaintenanceOptionsCommandOutput, - SdkError | EC2ServiceError - >; - - /** - * @see {@link ModifyInstanceMetadataOptionsCommand} - */ - readonly modifyInstanceMetadataOptions: ( - args: ModifyInstanceMetadataOptionsCommandInput, - options?: __HttpHandlerOptions, - ) => Effect.Effect< - ModifyInstanceMetadataOptionsCommandOutput, - SdkError | EC2ServiceError - >; - - /** - * @see {@link ModifyInstancePlacementCommand} - */ - readonly modifyInstancePlacement: ( - args: ModifyInstancePlacementCommandInput, - options?: __HttpHandlerOptions, - ) => Effect.Effect< - ModifyInstancePlacementCommandOutput, - SdkError | EC2ServiceError - >; - - /** - * @see {@link ModifyIpamCommand} - */ - readonly modifyIpam: ( - args: ModifyIpamCommandInput, - options?: __HttpHandlerOptions, - ) => Effect.Effect; - - /** - * @see {@link ModifyIpamPoolCommand} - */ - readonly modifyIpamPool: ( - args: ModifyIpamPoolCommandInput, - options?: __HttpHandlerOptions, - ) => Effect.Effect; - - /** - * @see {@link ModifyIpamResourceCidrCommand} - */ - readonly modifyIpamResourceCidr: ( - args: ModifyIpamResourceCidrCommandInput, - options?: __HttpHandlerOptions, - ) => Effect.Effect< - ModifyIpamResourceCidrCommandOutput, - SdkError | EC2ServiceError - >; - - /** - * @see {@link ModifyIpamResourceDiscoveryCommand} - */ - readonly modifyIpamResourceDiscovery: ( - args: ModifyIpamResourceDiscoveryCommandInput, - options?: __HttpHandlerOptions, - ) => Effect.Effect< - ModifyIpamResourceDiscoveryCommandOutput, - SdkError | EC2ServiceError - >; - - /** - * @see {@link ModifyIpamScopeCommand} - */ - readonly modifyIpamScope: ( - args: ModifyIpamScopeCommandInput, - options?: __HttpHandlerOptions, - ) => Effect.Effect; - - /** - * @see {@link ModifyLaunchTemplateCommand} - */ - readonly modifyLaunchTemplate: ( - args: ModifyLaunchTemplateCommandInput, - options?: __HttpHandlerOptions, - ) => Effect.Effect< - ModifyLaunchTemplateCommandOutput, - SdkError | EC2ServiceError - >; - - /** - * @see {@link ModifyLocalGatewayRouteCommand} - */ - readonly modifyLocalGatewayRoute: ( - args: ModifyLocalGatewayRouteCommandInput, - options?: __HttpHandlerOptions, - ) => Effect.Effect< - ModifyLocalGatewayRouteCommandOutput, - SdkError | EC2ServiceError - >; - - /** - * @see {@link ModifyManagedPrefixListCommand} - */ - readonly modifyManagedPrefixList: ( - args: ModifyManagedPrefixListCommandInput, - options?: __HttpHandlerOptions, - ) => Effect.Effect< - ModifyManagedPrefixListCommandOutput, - SdkError | EC2ServiceError - >; - - /** - * @see {@link ModifyNetworkInterfaceAttributeCommand} - */ - readonly modifyNetworkInterfaceAttribute: ( - args: ModifyNetworkInterfaceAttributeCommandInput, - options?: __HttpHandlerOptions, - ) => Effect.Effect< - ModifyNetworkInterfaceAttributeCommandOutput, - SdkError | EC2ServiceError - >; - - /** - * @see {@link ModifyPrivateDnsNameOptionsCommand} - */ - readonly modifyPrivateDnsNameOptions: ( - args: ModifyPrivateDnsNameOptionsCommandInput, - options?: __HttpHandlerOptions, - ) => Effect.Effect< - ModifyPrivateDnsNameOptionsCommandOutput, - SdkError | EC2ServiceError - >; - - /** - * @see {@link ModifyReservedInstancesCommand} - */ - readonly modifyReservedInstances: ( - args: ModifyReservedInstancesCommandInput, - options?: __HttpHandlerOptions, - ) => Effect.Effect< - ModifyReservedInstancesCommandOutput, - SdkError | EC2ServiceError - >; - - /** - * @see {@link ModifySecurityGroupRulesCommand} - */ - readonly modifySecurityGroupRules: ( - args: ModifySecurityGroupRulesCommandInput, - options?: __HttpHandlerOptions, - ) => Effect.Effect< - ModifySecurityGroupRulesCommandOutput, - SdkError | EC2ServiceError - >; - - /** - * @see {@link ModifySnapshotAttributeCommand} - */ - readonly modifySnapshotAttribute: ( - args: ModifySnapshotAttributeCommandInput, - options?: __HttpHandlerOptions, - ) => Effect.Effect< - ModifySnapshotAttributeCommandOutput, - SdkError | EC2ServiceError - >; - - /** - * @see {@link ModifySnapshotTierCommand} - */ - readonly modifySnapshotTier: ( - args: ModifySnapshotTierCommandInput, - options?: __HttpHandlerOptions, - ) => Effect.Effect< - ModifySnapshotTierCommandOutput, - SdkError | EC2ServiceError - >; - - /** - * @see {@link ModifySpotFleetRequestCommand} - */ - readonly modifySpotFleetRequest: ( - args: ModifySpotFleetRequestCommandInput, - options?: __HttpHandlerOptions, - ) => Effect.Effect< - ModifySpotFleetRequestCommandOutput, - SdkError | EC2ServiceError - >; - - /** - * @see {@link ModifySubnetAttributeCommand} - */ - readonly modifySubnetAttribute: ( - args: ModifySubnetAttributeCommandInput, - options?: __HttpHandlerOptions, - ) => Effect.Effect< - ModifySubnetAttributeCommandOutput, - SdkError | EC2ServiceError - >; - - /** - * @see {@link ModifyTrafficMirrorFilterNetworkServicesCommand} - */ - readonly modifyTrafficMirrorFilterNetworkServices: ( - args: ModifyTrafficMirrorFilterNetworkServicesCommandInput, - options?: __HttpHandlerOptions, - ) => Effect.Effect< - ModifyTrafficMirrorFilterNetworkServicesCommandOutput, - SdkError | EC2ServiceError - >; - - /** - * @see {@link ModifyTrafficMirrorFilterRuleCommand} - */ - readonly modifyTrafficMirrorFilterRule: ( - args: ModifyTrafficMirrorFilterRuleCommandInput, - options?: __HttpHandlerOptions, - ) => Effect.Effect< - ModifyTrafficMirrorFilterRuleCommandOutput, - SdkError | EC2ServiceError - >; - - /** - * @see {@link ModifyTrafficMirrorSessionCommand} - */ - readonly modifyTrafficMirrorSession: ( - args: ModifyTrafficMirrorSessionCommandInput, - options?: __HttpHandlerOptions, - ) => Effect.Effect< - ModifyTrafficMirrorSessionCommandOutput, - SdkError | EC2ServiceError - >; - - /** - * @see {@link ModifyTransitGatewayCommand} - */ - readonly modifyTransitGateway: ( - args: ModifyTransitGatewayCommandInput, - options?: __HttpHandlerOptions, - ) => Effect.Effect< - ModifyTransitGatewayCommandOutput, - SdkError | EC2ServiceError - >; - - /** - * @see {@link ModifyTransitGatewayPrefixListReferenceCommand} - */ - readonly modifyTransitGatewayPrefixListReference: ( - args: ModifyTransitGatewayPrefixListReferenceCommandInput, - options?: __HttpHandlerOptions, - ) => Effect.Effect< - ModifyTransitGatewayPrefixListReferenceCommandOutput, - SdkError | EC2ServiceError - >; - - /** - * @see {@link ModifyTransitGatewayVpcAttachmentCommand} - */ - readonly modifyTransitGatewayVpcAttachment: ( - args: ModifyTransitGatewayVpcAttachmentCommandInput, - options?: __HttpHandlerOptions, - ) => Effect.Effect< - ModifyTransitGatewayVpcAttachmentCommandOutput, - SdkError | EC2ServiceError - >; - - /** - * @see {@link ModifyVerifiedAccessEndpointCommand} - */ - readonly modifyVerifiedAccessEndpoint: ( - args: ModifyVerifiedAccessEndpointCommandInput, - options?: __HttpHandlerOptions, - ) => Effect.Effect< - ModifyVerifiedAccessEndpointCommandOutput, - SdkError | EC2ServiceError - >; - - /** - * @see {@link ModifyVerifiedAccessEndpointPolicyCommand} - */ - readonly modifyVerifiedAccessEndpointPolicy: ( - args: ModifyVerifiedAccessEndpointPolicyCommandInput, - options?: __HttpHandlerOptions, - ) => Effect.Effect< - ModifyVerifiedAccessEndpointPolicyCommandOutput, - SdkError | EC2ServiceError - >; - - /** - * @see {@link ModifyVerifiedAccessGroupCommand} - */ - readonly modifyVerifiedAccessGroup: ( - args: ModifyVerifiedAccessGroupCommandInput, - options?: __HttpHandlerOptions, - ) => Effect.Effect< - ModifyVerifiedAccessGroupCommandOutput, - SdkError | EC2ServiceError - >; - - /** - * @see {@link ModifyVerifiedAccessGroupPolicyCommand} - */ - readonly modifyVerifiedAccessGroupPolicy: ( - args: ModifyVerifiedAccessGroupPolicyCommandInput, - options?: __HttpHandlerOptions, - ) => Effect.Effect< - ModifyVerifiedAccessGroupPolicyCommandOutput, - SdkError | EC2ServiceError - >; - - /** - * @see {@link ModifyVerifiedAccessInstanceCommand} - */ - readonly modifyVerifiedAccessInstance: ( - args: ModifyVerifiedAccessInstanceCommandInput, - options?: __HttpHandlerOptions, - ) => Effect.Effect< - ModifyVerifiedAccessInstanceCommandOutput, - SdkError | EC2ServiceError - >; - - /** - * @see {@link ModifyVerifiedAccessInstanceLoggingConfigurationCommand} - */ - readonly modifyVerifiedAccessInstanceLoggingConfiguration: ( - args: ModifyVerifiedAccessInstanceLoggingConfigurationCommandInput, - options?: __HttpHandlerOptions, - ) => Effect.Effect< - ModifyVerifiedAccessInstanceLoggingConfigurationCommandOutput, - SdkError | EC2ServiceError - >; - - /** - * @see {@link ModifyVerifiedAccessTrustProviderCommand} - */ - readonly modifyVerifiedAccessTrustProvider: ( - args: ModifyVerifiedAccessTrustProviderCommandInput, - options?: __HttpHandlerOptions, - ) => Effect.Effect< - ModifyVerifiedAccessTrustProviderCommandOutput, - SdkError | EC2ServiceError - >; - - /** - * @see {@link ModifyVolumeCommand} - */ - readonly modifyVolume: ( - args: ModifyVolumeCommandInput, - options?: __HttpHandlerOptions, - ) => Effect.Effect; - - /** - * @see {@link ModifyVolumeAttributeCommand} - */ - readonly modifyVolumeAttribute: ( - args: ModifyVolumeAttributeCommandInput, - options?: __HttpHandlerOptions, - ) => Effect.Effect< - ModifyVolumeAttributeCommandOutput, - SdkError | EC2ServiceError - >; - - /** - * @see {@link ModifyVpcAttributeCommand} - */ - readonly modifyVpcAttribute: ( - args: ModifyVpcAttributeCommandInput, - options?: __HttpHandlerOptions, - ) => Effect.Effect< - ModifyVpcAttributeCommandOutput, - SdkError | EC2ServiceError - >; - - /** - * @see {@link ModifyVpcEndpointCommand} - */ - readonly modifyVpcEndpoint: ( - args: ModifyVpcEndpointCommandInput, - options?: __HttpHandlerOptions, - ) => Effect.Effect< - ModifyVpcEndpointCommandOutput, - SdkError | EC2ServiceError - >; - - /** - * @see {@link ModifyVpcEndpointConnectionNotificationCommand} - */ - readonly modifyVpcEndpointConnectionNotification: ( - args: ModifyVpcEndpointConnectionNotificationCommandInput, - options?: __HttpHandlerOptions, - ) => Effect.Effect< - ModifyVpcEndpointConnectionNotificationCommandOutput, - SdkError | EC2ServiceError - >; - - /** - * @see {@link ModifyVpcEndpointServiceConfigurationCommand} - */ - readonly modifyVpcEndpointServiceConfiguration: ( - args: ModifyVpcEndpointServiceConfigurationCommandInput, - options?: __HttpHandlerOptions, - ) => Effect.Effect< - ModifyVpcEndpointServiceConfigurationCommandOutput, - SdkError | EC2ServiceError - >; - - /** - * @see {@link ModifyVpcEndpointServicePayerResponsibilityCommand} - */ - readonly modifyVpcEndpointServicePayerResponsibility: ( - args: ModifyVpcEndpointServicePayerResponsibilityCommandInput, - options?: __HttpHandlerOptions, - ) => Effect.Effect< - ModifyVpcEndpointServicePayerResponsibilityCommandOutput, - SdkError | EC2ServiceError - >; - - /** - * @see {@link ModifyVpcEndpointServicePermissionsCommand} - */ - readonly modifyVpcEndpointServicePermissions: ( - args: ModifyVpcEndpointServicePermissionsCommandInput, - options?: __HttpHandlerOptions, - ) => Effect.Effect< - ModifyVpcEndpointServicePermissionsCommandOutput, - SdkError | EC2ServiceError - >; - - /** - * @see {@link ModifyVpcPeeringConnectionOptionsCommand} - */ - readonly modifyVpcPeeringConnectionOptions: ( - args: ModifyVpcPeeringConnectionOptionsCommandInput, - options?: __HttpHandlerOptions, - ) => Effect.Effect< - ModifyVpcPeeringConnectionOptionsCommandOutput, - SdkError | EC2ServiceError - >; - - /** - * @see {@link ModifyVpcTenancyCommand} - */ - readonly modifyVpcTenancy: ( - args: ModifyVpcTenancyCommandInput, - options?: __HttpHandlerOptions, - ) => Effect.Effect; - - /** - * @see {@link ModifyVpnConnectionCommand} - */ - readonly modifyVpnConnection: ( - args: ModifyVpnConnectionCommandInput, - options?: __HttpHandlerOptions, - ) => Effect.Effect< - ModifyVpnConnectionCommandOutput, - SdkError | EC2ServiceError - >; - - /** - * @see {@link ModifyVpnConnectionOptionsCommand} - */ - readonly modifyVpnConnectionOptions: ( - args: ModifyVpnConnectionOptionsCommandInput, - options?: __HttpHandlerOptions, - ) => Effect.Effect< - ModifyVpnConnectionOptionsCommandOutput, - SdkError | EC2ServiceError - >; - - /** - * @see {@link ModifyVpnTunnelCertificateCommand} - */ - readonly modifyVpnTunnelCertificate: ( - args: ModifyVpnTunnelCertificateCommandInput, - options?: __HttpHandlerOptions, - ) => Effect.Effect< - ModifyVpnTunnelCertificateCommandOutput, - SdkError | EC2ServiceError - >; - - /** - * @see {@link ModifyVpnTunnelOptionsCommand} - */ - readonly modifyVpnTunnelOptions: ( - args: ModifyVpnTunnelOptionsCommandInput, - options?: __HttpHandlerOptions, - ) => Effect.Effect< - ModifyVpnTunnelOptionsCommandOutput, - SdkError | EC2ServiceError - >; - - /** - * @see {@link MonitorInstancesCommand} - */ - readonly monitorInstances: ( - args: MonitorInstancesCommandInput, - options?: __HttpHandlerOptions, - ) => Effect.Effect; - - /** - * @see {@link MoveAddressToVpcCommand} - */ - readonly moveAddressToVpc: ( - args: MoveAddressToVpcCommandInput, - options?: __HttpHandlerOptions, - ) => Effect.Effect; - - /** - * @see {@link MoveByoipCidrToIpamCommand} - */ - readonly moveByoipCidrToIpam: ( - args: MoveByoipCidrToIpamCommandInput, - options?: __HttpHandlerOptions, - ) => Effect.Effect< - MoveByoipCidrToIpamCommandOutput, - SdkError | EC2ServiceError - >; - - /** - * @see {@link ProvisionByoipCidrCommand} - */ - readonly provisionByoipCidr: ( - args: ProvisionByoipCidrCommandInput, - options?: __HttpHandlerOptions, - ) => Effect.Effect< - ProvisionByoipCidrCommandOutput, - SdkError | EC2ServiceError - >; - - /** - * @see {@link ProvisionIpamByoasnCommand} - */ - readonly provisionIpamByoasn: ( - args: ProvisionIpamByoasnCommandInput, - options?: __HttpHandlerOptions, - ) => Effect.Effect< - ProvisionIpamByoasnCommandOutput, - SdkError | EC2ServiceError - >; - - /** - * @see {@link ProvisionIpamPoolCidrCommand} - */ - readonly provisionIpamPoolCidr: ( - args: ProvisionIpamPoolCidrCommandInput, - options?: __HttpHandlerOptions, - ) => Effect.Effect< - ProvisionIpamPoolCidrCommandOutput, - SdkError | EC2ServiceError - >; - - /** - * @see {@link ProvisionPublicIpv4PoolCidrCommand} - */ - readonly provisionPublicIpv4PoolCidr: ( - args: ProvisionPublicIpv4PoolCidrCommandInput, - options?: __HttpHandlerOptions, - ) => Effect.Effect< - ProvisionPublicIpv4PoolCidrCommandOutput, - SdkError | EC2ServiceError - >; - - /** - * @see {@link PurchaseCapacityBlockCommand} - */ - readonly purchaseCapacityBlock: ( - args: PurchaseCapacityBlockCommandInput, - options?: __HttpHandlerOptions, - ) => Effect.Effect< - PurchaseCapacityBlockCommandOutput, - SdkError | EC2ServiceError - >; - - /** - * @see {@link PurchaseHostReservationCommand} - */ - readonly purchaseHostReservation: ( - args: PurchaseHostReservationCommandInput, - options?: __HttpHandlerOptions, - ) => Effect.Effect< - PurchaseHostReservationCommandOutput, - SdkError | EC2ServiceError - >; - - /** - * @see {@link PurchaseReservedInstancesOfferingCommand} - */ - readonly purchaseReservedInstancesOffering: ( - args: PurchaseReservedInstancesOfferingCommandInput, - options?: __HttpHandlerOptions, - ) => Effect.Effect< - PurchaseReservedInstancesOfferingCommandOutput, - SdkError | EC2ServiceError - >; - - /** - * @see {@link PurchaseScheduledInstancesCommand} - */ - readonly purchaseScheduledInstances: ( - args: PurchaseScheduledInstancesCommandInput, - options?: __HttpHandlerOptions, - ) => Effect.Effect< - PurchaseScheduledInstancesCommandOutput, - SdkError | EC2ServiceError - >; - - /** - * @see {@link RebootInstancesCommand} - */ - readonly rebootInstances: ( - args: RebootInstancesCommandInput, - options?: __HttpHandlerOptions, - ) => Effect.Effect; - - /** - * @see {@link RegisterImageCommand} - */ - readonly registerImage: ( - args: RegisterImageCommandInput, - options?: __HttpHandlerOptions, - ) => Effect.Effect; - - /** - * @see {@link RegisterInstanceEventNotificationAttributesCommand} - */ - readonly registerInstanceEventNotificationAttributes: ( - args: RegisterInstanceEventNotificationAttributesCommandInput, - options?: __HttpHandlerOptions, - ) => Effect.Effect< - RegisterInstanceEventNotificationAttributesCommandOutput, - SdkError | EC2ServiceError - >; - - /** - * @see {@link RegisterTransitGatewayMulticastGroupMembersCommand} - */ - readonly registerTransitGatewayMulticastGroupMembers: ( - args: RegisterTransitGatewayMulticastGroupMembersCommandInput, - options?: __HttpHandlerOptions, - ) => Effect.Effect< - RegisterTransitGatewayMulticastGroupMembersCommandOutput, - SdkError | EC2ServiceError - >; - - /** - * @see {@link RegisterTransitGatewayMulticastGroupSourcesCommand} - */ - readonly registerTransitGatewayMulticastGroupSources: ( - args: RegisterTransitGatewayMulticastGroupSourcesCommandInput, - options?: __HttpHandlerOptions, - ) => Effect.Effect< - RegisterTransitGatewayMulticastGroupSourcesCommandOutput, - SdkError | EC2ServiceError - >; - - /** - * @see {@link RejectTransitGatewayMulticastDomainAssociationsCommand} - */ - readonly rejectTransitGatewayMulticastDomainAssociations: ( - args: RejectTransitGatewayMulticastDomainAssociationsCommandInput, - options?: __HttpHandlerOptions, - ) => Effect.Effect< - RejectTransitGatewayMulticastDomainAssociationsCommandOutput, - SdkError | EC2ServiceError - >; - - /** - * @see {@link RejectTransitGatewayPeeringAttachmentCommand} - */ - readonly rejectTransitGatewayPeeringAttachment: ( - args: RejectTransitGatewayPeeringAttachmentCommandInput, - options?: __HttpHandlerOptions, - ) => Effect.Effect< - RejectTransitGatewayPeeringAttachmentCommandOutput, - SdkError | EC2ServiceError - >; - - /** - * @see {@link RejectTransitGatewayVpcAttachmentCommand} - */ - readonly rejectTransitGatewayVpcAttachment: ( - args: RejectTransitGatewayVpcAttachmentCommandInput, - options?: __HttpHandlerOptions, - ) => Effect.Effect< - RejectTransitGatewayVpcAttachmentCommandOutput, - SdkError | EC2ServiceError - >; - - /** - * @see {@link RejectVpcEndpointConnectionsCommand} - */ - readonly rejectVpcEndpointConnections: ( - args: RejectVpcEndpointConnectionsCommandInput, - options?: __HttpHandlerOptions, - ) => Effect.Effect< - RejectVpcEndpointConnectionsCommandOutput, - SdkError | EC2ServiceError - >; - - /** - * @see {@link RejectVpcPeeringConnectionCommand} - */ - readonly rejectVpcPeeringConnection: ( - args: RejectVpcPeeringConnectionCommandInput, - options?: __HttpHandlerOptions, - ) => Effect.Effect< - RejectVpcPeeringConnectionCommandOutput, - SdkError | EC2ServiceError - >; - - /** - * @see {@link ReleaseAddressCommand} - */ - readonly releaseAddress: ( - args: ReleaseAddressCommandInput, - options?: __HttpHandlerOptions, - ) => Effect.Effect; - - /** - * @see {@link ReleaseHostsCommand} - */ - readonly releaseHosts: ( - args: ReleaseHostsCommandInput, - options?: __HttpHandlerOptions, - ) => Effect.Effect; - - /** - * @see {@link ReleaseIpamPoolAllocationCommand} - */ - readonly releaseIpamPoolAllocation: ( - args: ReleaseIpamPoolAllocationCommandInput, - options?: __HttpHandlerOptions, - ) => Effect.Effect< - ReleaseIpamPoolAllocationCommandOutput, - SdkError | EC2ServiceError - >; - - /** - * @see {@link ReplaceIamInstanceProfileAssociationCommand} - */ - readonly replaceIamInstanceProfileAssociation: ( - args: ReplaceIamInstanceProfileAssociationCommandInput, - options?: __HttpHandlerOptions, - ) => Effect.Effect< - ReplaceIamInstanceProfileAssociationCommandOutput, - SdkError | EC2ServiceError - >; - - /** - * @see {@link ReplaceNetworkAclAssociationCommand} - */ - readonly replaceNetworkAclAssociation: ( - args: ReplaceNetworkAclAssociationCommandInput, - options?: __HttpHandlerOptions, - ) => Effect.Effect< - ReplaceNetworkAclAssociationCommandOutput, - SdkError | EC2ServiceError - >; - - /** - * @see {@link ReplaceNetworkAclEntryCommand} - */ - readonly replaceNetworkAclEntry: ( - args: ReplaceNetworkAclEntryCommandInput, - options?: __HttpHandlerOptions, - ) => Effect.Effect< - ReplaceNetworkAclEntryCommandOutput, - SdkError | EC2ServiceError - >; - - /** - * @see {@link ReplaceRouteCommand} - */ - readonly replaceRoute: ( - args: ReplaceRouteCommandInput, - options?: __HttpHandlerOptions, - ) => Effect.Effect; - - /** - * @see {@link ReplaceRouteTableAssociationCommand} - */ - readonly replaceRouteTableAssociation: ( - args: ReplaceRouteTableAssociationCommandInput, - options?: __HttpHandlerOptions, - ) => Effect.Effect< - ReplaceRouteTableAssociationCommandOutput, - SdkError | EC2ServiceError - >; - - /** - * @see {@link ReplaceTransitGatewayRouteCommand} - */ - readonly replaceTransitGatewayRoute: ( - args: ReplaceTransitGatewayRouteCommandInput, - options?: __HttpHandlerOptions, - ) => Effect.Effect< - ReplaceTransitGatewayRouteCommandOutput, - SdkError | EC2ServiceError - >; - - /** - * @see {@link ReplaceVpnTunnelCommand} - */ - readonly replaceVpnTunnel: ( - args: ReplaceVpnTunnelCommandInput, - options?: __HttpHandlerOptions, - ) => Effect.Effect; - - /** - * @see {@link ReportInstanceStatusCommand} - */ - readonly reportInstanceStatus: ( - args: ReportInstanceStatusCommandInput, - options?: __HttpHandlerOptions, - ) => Effect.Effect< - ReportInstanceStatusCommandOutput, - SdkError | EC2ServiceError - >; - - /** - * @see {@link RequestSpotFleetCommand} - */ - readonly requestSpotFleet: ( - args: RequestSpotFleetCommandInput, - options?: __HttpHandlerOptions, - ) => Effect.Effect; - - /** - * @see {@link RequestSpotInstancesCommand} - */ - readonly requestSpotInstances: ( - args: RequestSpotInstancesCommandInput, - options?: __HttpHandlerOptions, - ) => Effect.Effect< - RequestSpotInstancesCommandOutput, - SdkError | EC2ServiceError - >; - - /** - * @see {@link ResetAddressAttributeCommand} - */ - readonly resetAddressAttribute: ( - args: ResetAddressAttributeCommandInput, - options?: __HttpHandlerOptions, - ) => Effect.Effect< - ResetAddressAttributeCommandOutput, - SdkError | EC2ServiceError - >; - - /** - * @see {@link ResetEbsDefaultKmsKeyIdCommand} - */ - readonly resetEbsDefaultKmsKeyId: ( - args: ResetEbsDefaultKmsKeyIdCommandInput, - options?: __HttpHandlerOptions, - ) => Effect.Effect< - ResetEbsDefaultKmsKeyIdCommandOutput, - SdkError | EC2ServiceError - >; - - /** - * @see {@link ResetFpgaImageAttributeCommand} - */ - readonly resetFpgaImageAttribute: ( - args: ResetFpgaImageAttributeCommandInput, - options?: __HttpHandlerOptions, - ) => Effect.Effect< - ResetFpgaImageAttributeCommandOutput, - SdkError | EC2ServiceError - >; - - /** - * @see {@link ResetImageAttributeCommand} - */ - readonly resetImageAttribute: ( - args: ResetImageAttributeCommandInput, - options?: __HttpHandlerOptions, - ) => Effect.Effect< - ResetImageAttributeCommandOutput, - SdkError | EC2ServiceError - >; - - /** - * @see {@link ResetInstanceAttributeCommand} - */ - readonly resetInstanceAttribute: ( - args: ResetInstanceAttributeCommandInput, - options?: __HttpHandlerOptions, - ) => Effect.Effect< - ResetInstanceAttributeCommandOutput, - SdkError | EC2ServiceError - >; - - /** - * @see {@link ResetNetworkInterfaceAttributeCommand} - */ - readonly resetNetworkInterfaceAttribute: ( - args: ResetNetworkInterfaceAttributeCommandInput, - options?: __HttpHandlerOptions, - ) => Effect.Effect< - ResetNetworkInterfaceAttributeCommandOutput, - SdkError | EC2ServiceError - >; - - /** - * @see {@link ResetSnapshotAttributeCommand} - */ - readonly resetSnapshotAttribute: ( - args: ResetSnapshotAttributeCommandInput, - options?: __HttpHandlerOptions, - ) => Effect.Effect< - ResetSnapshotAttributeCommandOutput, - SdkError | EC2ServiceError - >; - - /** - * @see {@link RestoreAddressToClassicCommand} - */ - readonly restoreAddressToClassic: ( - args: RestoreAddressToClassicCommandInput, - options?: __HttpHandlerOptions, - ) => Effect.Effect< - RestoreAddressToClassicCommandOutput, - SdkError | EC2ServiceError - >; - - /** - * @see {@link RestoreImageFromRecycleBinCommand} - */ - readonly restoreImageFromRecycleBin: ( - args: RestoreImageFromRecycleBinCommandInput, - options?: __HttpHandlerOptions, - ) => Effect.Effect< - RestoreImageFromRecycleBinCommandOutput, - SdkError | EC2ServiceError - >; - - /** - * @see {@link RestoreManagedPrefixListVersionCommand} - */ - readonly restoreManagedPrefixListVersion: ( - args: RestoreManagedPrefixListVersionCommandInput, - options?: __HttpHandlerOptions, - ) => Effect.Effect< - RestoreManagedPrefixListVersionCommandOutput, - SdkError | EC2ServiceError - >; - - /** - * @see {@link RestoreSnapshotFromRecycleBinCommand} - */ - readonly restoreSnapshotFromRecycleBin: ( - args: RestoreSnapshotFromRecycleBinCommandInput, - options?: __HttpHandlerOptions, - ) => Effect.Effect< - RestoreSnapshotFromRecycleBinCommandOutput, - SdkError | EC2ServiceError - >; - - /** - * @see {@link RestoreSnapshotTierCommand} - */ - readonly restoreSnapshotTier: ( - args: RestoreSnapshotTierCommandInput, - options?: __HttpHandlerOptions, - ) => Effect.Effect< - RestoreSnapshotTierCommandOutput, - SdkError | EC2ServiceError - >; - - /** - * @see {@link RevokeClientVpnIngressCommand} - */ - readonly revokeClientVpnIngress: ( - args: RevokeClientVpnIngressCommandInput, - options?: __HttpHandlerOptions, - ) => Effect.Effect< - RevokeClientVpnIngressCommandOutput, - SdkError | EC2ServiceError - >; - - /** - * @see {@link RevokeSecurityGroupEgressCommand} - */ - readonly revokeSecurityGroupEgress: ( - args: RevokeSecurityGroupEgressCommandInput, - options?: __HttpHandlerOptions, - ) => Effect.Effect< - RevokeSecurityGroupEgressCommandOutput, - SdkError | EC2ServiceError - >; - - /** - * @see {@link RevokeSecurityGroupIngressCommand} - */ - readonly revokeSecurityGroupIngress: ( - args: RevokeSecurityGroupIngressCommandInput, - options?: __HttpHandlerOptions, - ) => Effect.Effect< - RevokeSecurityGroupIngressCommandOutput, - SdkError | EC2ServiceError - >; - - /** - * @see {@link RunInstancesCommand} - */ - readonly runInstances: ( - args: RunInstancesCommandInput, - options?: __HttpHandlerOptions, - ) => Effect.Effect; - - /** - * @see {@link RunScheduledInstancesCommand} - */ - readonly runScheduledInstances: ( - args: RunScheduledInstancesCommandInput, - options?: __HttpHandlerOptions, - ) => Effect.Effect< - RunScheduledInstancesCommandOutput, - SdkError | EC2ServiceError - >; - - /** - * @see {@link SearchLocalGatewayRoutesCommand} - */ - readonly searchLocalGatewayRoutes: ( - args: SearchLocalGatewayRoutesCommandInput, - options?: __HttpHandlerOptions, - ) => Effect.Effect< - SearchLocalGatewayRoutesCommandOutput, - SdkError | EC2ServiceError - >; - - /** - * @see {@link SearchTransitGatewayMulticastGroupsCommand} - */ - readonly searchTransitGatewayMulticastGroups: ( - args: SearchTransitGatewayMulticastGroupsCommandInput, - options?: __HttpHandlerOptions, - ) => Effect.Effect< - SearchTransitGatewayMulticastGroupsCommandOutput, - SdkError | EC2ServiceError - >; - - /** - * @see {@link SearchTransitGatewayRoutesCommand} - */ - readonly searchTransitGatewayRoutes: ( - args: SearchTransitGatewayRoutesCommandInput, - options?: __HttpHandlerOptions, - ) => Effect.Effect< - SearchTransitGatewayRoutesCommandOutput, - SdkError | EC2ServiceError - >; - - /** - * @see {@link SendDiagnosticInterruptCommand} - */ - readonly sendDiagnosticInterrupt: ( - args: SendDiagnosticInterruptCommandInput, - options?: __HttpHandlerOptions, - ) => Effect.Effect< - SendDiagnosticInterruptCommandOutput, - SdkError | EC2ServiceError - >; - - /** - * @see {@link StartInstancesCommand} - */ - readonly startInstances: ( - args: StartInstancesCommandInput, - options?: __HttpHandlerOptions, - ) => Effect.Effect; - - /** - * @see {@link StartNetworkInsightsAccessScopeAnalysisCommand} - */ - readonly startNetworkInsightsAccessScopeAnalysis: ( - args: StartNetworkInsightsAccessScopeAnalysisCommandInput, - options?: __HttpHandlerOptions, - ) => Effect.Effect< - StartNetworkInsightsAccessScopeAnalysisCommandOutput, - SdkError | EC2ServiceError - >; - - /** - * @see {@link StartNetworkInsightsAnalysisCommand} - */ - readonly startNetworkInsightsAnalysis: ( - args: StartNetworkInsightsAnalysisCommandInput, - options?: __HttpHandlerOptions, - ) => Effect.Effect< - StartNetworkInsightsAnalysisCommandOutput, - SdkError | EC2ServiceError - >; - - /** - * @see {@link StartVpcEndpointServicePrivateDnsVerificationCommand} - */ - readonly startVpcEndpointServicePrivateDnsVerification: ( - args: StartVpcEndpointServicePrivateDnsVerificationCommandInput, - options?: __HttpHandlerOptions, - ) => Effect.Effect< - StartVpcEndpointServicePrivateDnsVerificationCommandOutput, - SdkError | EC2ServiceError - >; - - /** - * @see {@link StopInstancesCommand} - */ - readonly stopInstances: ( - args: StopInstancesCommandInput, - options?: __HttpHandlerOptions, - ) => Effect.Effect; - - /** - * @see {@link TerminateClientVpnConnectionsCommand} - */ - readonly terminateClientVpnConnections: ( - args: TerminateClientVpnConnectionsCommandInput, - options?: __HttpHandlerOptions, - ) => Effect.Effect< - TerminateClientVpnConnectionsCommandOutput, - SdkError | EC2ServiceError - >; - - /** - * @see {@link TerminateInstancesCommand} - */ - readonly terminateInstances: ( - args: TerminateInstancesCommandInput, - options?: __HttpHandlerOptions, - ) => Effect.Effect< - TerminateInstancesCommandOutput, - SdkError | EC2ServiceError - >; - - /** - * @see {@link UnassignIpv6AddressesCommand} - */ - readonly unassignIpv6Addresses: ( - args: UnassignIpv6AddressesCommandInput, - options?: __HttpHandlerOptions, - ) => Effect.Effect< - UnassignIpv6AddressesCommandOutput, - SdkError | EC2ServiceError - >; - - /** - * @see {@link UnassignPrivateIpAddressesCommand} - */ - readonly unassignPrivateIpAddresses: ( - args: UnassignPrivateIpAddressesCommandInput, - options?: __HttpHandlerOptions, - ) => Effect.Effect< - UnassignPrivateIpAddressesCommandOutput, - SdkError | EC2ServiceError - >; - - /** - * @see {@link UnassignPrivateNatGatewayAddressCommand} - */ - readonly unassignPrivateNatGatewayAddress: ( - args: UnassignPrivateNatGatewayAddressCommandInput, - options?: __HttpHandlerOptions, - ) => Effect.Effect< - UnassignPrivateNatGatewayAddressCommandOutput, - SdkError | EC2ServiceError - >; - - /** - * @see {@link UnlockSnapshotCommand} - */ - readonly unlockSnapshot: ( - args: UnlockSnapshotCommandInput, - options?: __HttpHandlerOptions, - ) => Effect.Effect; - - /** - * @see {@link UnmonitorInstancesCommand} - */ - readonly unmonitorInstances: ( - args: UnmonitorInstancesCommandInput, - options?: __HttpHandlerOptions, - ) => Effect.Effect< - UnmonitorInstancesCommandOutput, - SdkError | EC2ServiceError - >; - - /** - * @see {@link UpdateSecurityGroupRuleDescriptionsEgressCommand} - */ - readonly updateSecurityGroupRuleDescriptionsEgress: ( - args: UpdateSecurityGroupRuleDescriptionsEgressCommandInput, - options?: __HttpHandlerOptions, - ) => Effect.Effect< - UpdateSecurityGroupRuleDescriptionsEgressCommandOutput, - SdkError | EC2ServiceError - >; - - /** - * @see {@link UpdateSecurityGroupRuleDescriptionsIngressCommand} - */ - readonly updateSecurityGroupRuleDescriptionsIngress: ( - args: UpdateSecurityGroupRuleDescriptionsIngressCommandInput, - options?: __HttpHandlerOptions, - ) => Effect.Effect< - UpdateSecurityGroupRuleDescriptionsIngressCommandOutput, - SdkError | EC2ServiceError - >; - - /** - * @see {@link WithdrawByoipCidrCommand} - */ - readonly withdrawByoipCidr: ( - args: WithdrawByoipCidrCommandInput, - options?: __HttpHandlerOptions, - ) => Effect.Effect< - WithdrawByoipCidrCommandOutput, - SdkError | EC2ServiceError - >; -}; - -/** - * @since 1.0.0 - * @category tags - */ -export const EC2Service = Context.GenericTag( - "@effect-aws/client-ec2/EC2Service", -); - -/** - * @since 1.0.0 - * @category constructors - */ -export const makeEC2Service = Effect.gen(function* (_) { - const client = yield* _(EC2ClientInstance); - - return ReadonlyRecord.toEntries(commands).reduce((acc, [command]) => { - const CommandCtor = commands[command] as any; - const methodImpl = (args: any, options: any) => - Effect.tryPromise({ - try: () => client.send(new CommandCtor(args), options ?? {}), - catch: (e) => { - if (e instanceof EC2ServiceException) { - const ServiceException = Data.tagged< - TaggedException - >(e.name); - - return ServiceException({ - ...e, - message: e.message, - stack: e.stack, - }); - } - if (e instanceof Error) { - return SdkError({ - ...e, - name: "SdkError", - message: e.message, - stack: e.stack, - }); - } - throw e; - }, - }); - const methodName = (command[0].toLowerCase() + command.slice(1)).replace( - /Command$/, - "", - ); - return { ...acc, [methodName]: methodImpl }; - }, {}) as EC2Service; -}); - -/** - * @since 1.0.0 - * @category layers - */ -export const BaseEC2ServiceLayer = Layer.effect(EC2Service, makeEC2Service); - -/** - * @since 1.0.0 - * @category layers - */ -export const EC2ServiceLayer = BaseEC2ServiceLayer.pipe( - Layer.provide(EC2ClientInstanceLayer), -); - -/** - * @since 1.0.0 - * @category layers - */ -export const DefaultEC2ServiceLayer = EC2ServiceLayer.pipe( - Layer.provide(DefaultEC2ClientConfigLayer), -); diff --git a/packages/client-ec2/src/Errors.ts b/packages/client-ec2/src/Errors.ts deleted file mode 100644 index 45e4da3..0000000 --- a/packages/client-ec2/src/Errors.ts +++ /dev/null @@ -1,13 +0,0 @@ -import type { EC2ServiceException } from "@aws-sdk/client-ec2"; -import * as Data from "effect/Data"; - -export type TaggedException = T & { - readonly _tag: T["name"]; -}; - -export type EC2ServiceError = TaggedException< - EC2ServiceException & { name: "EC2ServiceError" } ->; -export const EC2ServiceError = Data.tagged("EC2ServiceError"); -export type SdkError = TaggedException; -export const SdkError = Data.tagged("SdkError"); diff --git a/packages/client-ec2/src/index.ts b/packages/client-ec2/src/index.ts deleted file mode 100644 index 2350e68..0000000 --- a/packages/client-ec2/src/index.ts +++ /dev/null @@ -1,4 +0,0 @@ -export * from "./Errors"; -export * from "./EC2ClientInstance"; -export * from "./EC2ClientInstanceConfig"; -export * from "./EC2Service"; diff --git a/packages/client-ec2/test/EC2.test.ts b/packages/client-ec2/test/EC2.test.ts deleted file mode 100644 index fecb348..0000000 --- a/packages/client-ec2/test/EC2.test.ts +++ /dev/null @@ -1,195 +0,0 @@ -import { - type AcceptAddressTransferCommandInput, - AcceptAddressTransferCommand, - EC2Client, -} from "@aws-sdk/client-ec2"; -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 * as Layer from "effect/Layer"; -import { - BaseEC2ServiceLayer, - DefaultEC2ClientConfigLayer, - DefaultEC2ServiceLayer, - EC2ClientInstance, - EC2ClientInstanceConfig, - EC2Service, - EC2ServiceLayer, - SdkError, -} from "../src"; - -import "aws-sdk-client-mock-jest"; - -const clientMock = mockClient(EC2Client); - -describe("EC2ClientImpl", () => { - it("default", async () => { - clientMock.reset().on(AcceptAddressTransferCommand).resolves({}); - - const args = {} as unknown as AcceptAddressTransferCommandInput; - - const program = Effect.flatMap(EC2Service, (service) => - service.acceptAddressTransfer(args), - ); - - const result = await pipe( - program, - Effect.provide(DefaultEC2ServiceLayer), - Effect.runPromiseExit, - ); - - expect(result).toEqual(Exit.succeed({})); - expect(clientMock).toHaveReceivedCommandTimes( - AcceptAddressTransferCommand, - 1, - ); - expect(clientMock).toHaveReceivedCommandWith( - AcceptAddressTransferCommand, - args, - ); - }); - - it("configurable", async () => { - clientMock.reset().on(AcceptAddressTransferCommand).resolves({}); - - const args = {} as unknown as AcceptAddressTransferCommandInput; - - const program = Effect.flatMap(EC2Service, (service) => - service.acceptAddressTransfer(args), - ); - - const EC2ClientConfigLayer = Layer.succeed(EC2ClientInstanceConfig, { - region: "eu-central-1", - }); - const CustomEC2ServiceLayer = EC2ServiceLayer.pipe( - Layer.provide(EC2ClientConfigLayer), - ); - - const result = await pipe( - program, - Effect.provide(CustomEC2ServiceLayer), - Effect.runPromiseExit, - ); - - expect(result).toEqual(Exit.succeed({})); - expect(clientMock).toHaveReceivedCommandTimes( - AcceptAddressTransferCommand, - 1, - ); - expect(clientMock).toHaveReceivedCommandWith( - AcceptAddressTransferCommand, - args, - ); - }); - - it("base", async () => { - clientMock.reset().on(AcceptAddressTransferCommand).resolves({}); - - const args = {} as unknown as AcceptAddressTransferCommandInput; - - const program = Effect.flatMap(EC2Service, (service) => - service.acceptAddressTransfer(args), - ); - - const EC2ClientInstanceLayer = Layer.succeed( - EC2ClientInstance, - new EC2Client({ region: "eu-central-1" }), - ); - const CustomEC2ServiceLayer = BaseEC2ServiceLayer.pipe( - Layer.provide(EC2ClientInstanceLayer), - ); - - const result = await pipe( - program, - Effect.provide(CustomEC2ServiceLayer), - Effect.runPromiseExit, - ); - - expect(result).toEqual(Exit.succeed({})); - expect(clientMock).toHaveReceivedCommandTimes( - AcceptAddressTransferCommand, - 1, - ); - expect(clientMock).toHaveReceivedCommandWith( - AcceptAddressTransferCommand, - args, - ); - }); - - it("extended", async () => { - clientMock.reset().on(AcceptAddressTransferCommand).resolves({}); - - const args = {} as unknown as AcceptAddressTransferCommandInput; - - const program = Effect.flatMap(EC2Service, (service) => - service.acceptAddressTransfer(args), - ); - - const EC2ClientInstanceLayer = Layer.effect( - EC2ClientInstance, - Effect.map( - EC2ClientInstanceConfig, - (config) => new EC2Client({ ...config, region: "eu-central-1" }), - ), - ); - const CustomEC2ServiceLayer = BaseEC2ServiceLayer.pipe( - Layer.provide(EC2ClientInstanceLayer), - Layer.provide(DefaultEC2ClientConfigLayer), - ); - - const result = await pipe( - program, - Effect.provide(CustomEC2ServiceLayer), - Effect.runPromiseExit, - ); - - expect(result).toEqual(Exit.succeed({})); - expect(clientMock).toHaveReceivedCommandTimes( - AcceptAddressTransferCommand, - 1, - ); - expect(clientMock).toHaveReceivedCommandWith( - AcceptAddressTransferCommand, - args, - ); - }); - - it("fail", async () => { - clientMock - .reset() - .on(AcceptAddressTransferCommand) - .rejects(new Error("test")); - - const args = {} as unknown as AcceptAddressTransferCommandInput; - - const program = Effect.flatMap(EC2Service, (service) => - service.acceptAddressTransfer(args), - ); - - const result = await pipe( - program, - Effect.provide(DefaultEC2ServiceLayer), - Effect.runPromiseExit, - ); - - expect(result).toEqual( - Exit.fail( - SdkError({ - ...new Error("test"), - name: "SdkError", - message: "test", - stack: expect.any(String), - }), - ), - ); - expect(clientMock).toHaveReceivedCommandTimes( - AcceptAddressTransferCommand, - 1, - ); - expect(clientMock).toHaveReceivedCommandWith( - AcceptAddressTransferCommand, - args, - ); - }); -}); diff --git a/packages/client-ec2/tsconfig.dev.json b/packages/client-ec2/tsconfig.dev.json deleted file mode 100644 index 278f027..0000000 --- a/packages/client-ec2/tsconfig.dev.json +++ /dev/null @@ -1,37 +0,0 @@ -// ~~ Generated by projen. To modify, edit .projenrc.js and run "npx projen". -{ - "compilerOptions": { - "alwaysStrict": true, - "declaration": true, - "esModuleInterop": true, - "experimentalDecorators": true, - "inlineSourceMap": true, - "inlineSources": true, - "lib": [ - "es2019", - "dom" - ], - "module": "CommonJS", - "noEmitOnError": false, - "noFallthroughCasesInSwitch": true, - "noImplicitAny": true, - "noImplicitReturns": true, - "noImplicitThis": true, - "noUnusedLocals": true, - "noUnusedParameters": true, - "resolveJsonModule": true, - "strict": true, - "strictNullChecks": true, - "strictPropertyInitialization": true, - "stripInternal": true, - "target": "ES2019", - "moduleResolution": "node" - }, - "include": [ - "src/**/*.ts", - "test/**/*.ts" - ], - "exclude": [ - "node_modules" - ] -} diff --git a/packages/client-ec2/tsconfig.esm.json b/packages/client-ec2/tsconfig.esm.json deleted file mode 100644 index 1b04668..0000000 --- a/packages/client-ec2/tsconfig.esm.json +++ /dev/null @@ -1,10 +0,0 @@ -{ - "extends": "./tsconfig.json", - "compilerOptions": { - "outDir": "./lib/esm", - "module": "es6", - "resolveJsonModule": false, - "declaration": false - }, - "//": "~~ Generated by projen. To modify, edit .projenrc.js and run \"npx projen\"." -} diff --git a/packages/client-ec2/tsconfig.json b/packages/client-ec2/tsconfig.json deleted file mode 100644 index 576047c..0000000 --- a/packages/client-ec2/tsconfig.json +++ /dev/null @@ -1,36 +0,0 @@ -// ~~ Generated by projen. To modify, edit .projenrc.js and run "npx projen". -{ - "compilerOptions": { - "rootDir": "src", - "outDir": "lib", - "alwaysStrict": true, - "declaration": true, - "esModuleInterop": true, - "experimentalDecorators": true, - "inlineSourceMap": true, - "inlineSources": true, - "lib": [ - "es2019", - "dom" - ], - "module": "CommonJS", - "noEmitOnError": false, - "noFallthroughCasesInSwitch": true, - "noImplicitAny": true, - "noImplicitReturns": true, - "noImplicitThis": true, - "noUnusedLocals": true, - "noUnusedParameters": true, - "resolveJsonModule": true, - "strict": true, - "strictNullChecks": true, - "strictPropertyInitialization": true, - "stripInternal": true, - "target": "ES2019", - "moduleResolution": "node" - }, - "include": [ - "src/**/*.ts" - ], - "exclude": [] -} diff --git a/packages/client-elasticache/.eslintrc.json b/packages/client-elasticache/.eslintrc.json deleted file mode 100644 index c31c44d..0000000 --- a/packages/client-elasticache/.eslintrc.json +++ /dev/null @@ -1,126 +0,0 @@ -// ~~ Generated by projen. To modify, edit .projenrc.js and run "npx projen". -{ - "env": { - "jest": true, - "node": true - }, - "root": true, - "plugins": [ - "@typescript-eslint", - "import" - ], - "parser": "@typescript-eslint/parser", - "parserOptions": { - "ecmaVersion": 2018, - "sourceType": "module", - "project": "./tsconfig.dev.json" - }, - "extends": [ - "plugin:import/typescript", - "plugin:prettier/recommended" - ], - "settings": { - "import/parsers": { - "@typescript-eslint/parser": [ - ".ts", - ".tsx" - ] - }, - "import/resolver": { - "node": {}, - "typescript": { - "project": "./tsconfig.dev.json", - "alwaysTryTypes": true - } - } - }, - "ignorePatterns": [ - "*.js", - "*.d.ts", - "node_modules/", - "*.generated.ts", - "coverage" - ], - "rules": { - "@typescript-eslint/no-require-imports": [ - "error" - ], - "import/no-extraneous-dependencies": [ - "error", - { - "devDependencies": [ - "**/test/**", - "**/build-tools/**" - ], - "optionalDependencies": false, - "peerDependencies": true - } - ], - "import/no-unresolved": [ - "error" - ], - "import/order": [ - "warn", - { - "groups": [ - "builtin", - "external" - ], - "alphabetize": { - "order": "asc", - "caseInsensitive": true - } - } - ], - "no-duplicate-imports": [ - "error" - ], - "no-shadow": [ - "off" - ], - "@typescript-eslint/no-shadow": [ - "error" - ], - "key-spacing": [ - "error" - ], - "no-multiple-empty-lines": [ - "error" - ], - "@typescript-eslint/no-floating-promises": [ - "error" - ], - "no-return-await": [ - "off" - ], - "@typescript-eslint/return-await": [ - "error" - ], - "no-trailing-spaces": [ - "error" - ], - "dot-notation": [ - "error" - ], - "no-bitwise": [ - "error" - ], - "@typescript-eslint/member-ordering": [ - "error", - { - "default": [ - "public-static-field", - "public-static-method", - "protected-static-field", - "protected-static-method", - "private-static-field", - "private-static-method", - "field", - "constructor", - "method" - ] - } - ] - }, - "overrides": [] -} diff --git a/packages/client-elasticache/.gitattributes b/packages/client-elasticache/.gitattributes deleted file mode 100644 index 1c2be5a..0000000 --- a/packages/client-elasticache/.gitattributes +++ /dev/null @@ -1,21 +0,0 @@ -# ~~ Generated by projen. To modify, edit .projenrc.js and run "npx projen". - -/./tsconfig.esm.json linguist-generated -/.eslintrc.json linguist-generated -/.gitattributes linguist-generated -/.gitignore linguist-generated -/.npmignore linguist-generated -/.npmrc linguist-generated -/.prettierignore linguist-generated -/.prettierrc.json 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 -/project.json linguist-generated -/tsconfig.dev.json linguist-generated -/tsconfig.json linguist-generated \ No newline at end of file diff --git a/packages/client-elasticache/.gitignore b/packages/client-elasticache/.gitignore deleted file mode 100644 index e4fdd83..0000000 --- a/packages/client-elasticache/.gitignore +++ /dev/null @@ -1,45 +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 -!/.prettierignore -!/.prettierrc.json -!/.npmrc -!/test/ -!/tsconfig.json -!/tsconfig.dev.json -!/src/ -/lib -/dist/ -!/.eslintrc.json -!/tsconfig.esm.json -!/project.json -!/docgen.json -docs/ diff --git a/packages/client-elasticache/.npmignore b/packages/client-elasticache/.npmignore deleted file mode 100644 index 277d62e..0000000 --- a/packages/client-elasticache/.npmignore +++ /dev/null @@ -1,20 +0,0 @@ -# ~~ Generated by projen. To modify, edit .projenrc.js and run "npx projen". -/.projen/ -/.prettierignore -/.prettierrc.json -/test/ -/tsconfig.dev.json -/src/ -!/lib/ -!/lib/**/*.js -!/lib/**/*.d.ts -dist -/tsconfig.json -/.github/ -/.vscode/ -/.idea/ -/.projenrc.js -tsconfig.tsbuildinfo -/.eslintrc.json -/tsconfig.esm.json -/.gitattributes diff --git a/packages/client-elasticache/.prettierignore b/packages/client-elasticache/.prettierignore deleted file mode 100644 index 46704c7..0000000 --- a/packages/client-elasticache/.prettierignore +++ /dev/null @@ -1 +0,0 @@ -# ~~ Generated by projen. To modify, edit .projenrc.js and run "npx projen". diff --git a/packages/client-elasticache/.prettierrc.json b/packages/client-elasticache/.prettierrc.json deleted file mode 100644 index 84c85a3..0000000 --- a/packages/client-elasticache/.prettierrc.json +++ /dev/null @@ -1,3 +0,0 @@ -{ - "overrides": [] -} diff --git a/packages/client-elasticache/.projen/deps.json b/packages/client-elasticache/.projen/deps.json deleted file mode 100644 index 0cec9c8..0000000 --- a/packages/client-elasticache/.projen/deps.json +++ /dev/null @@ -1,82 +0,0 @@ -{ - "dependencies": [ - { - "name": "@types/node", - "version": "^18", - "type": "build" - }, - { - "name": "@typescript-eslint/eslint-plugin", - "version": "^6", - "type": "build" - }, - { - "name": "@typescript-eslint/parser", - "version": "^6", - "type": "build" - }, - { - "name": "aws-sdk-client-mock", - "type": "build" - }, - { - "name": "aws-sdk-client-mock-jest", - "type": "build" - }, - { - "name": "constructs", - "version": "^10.0.0", - "type": "build" - }, - { - "name": "eslint-config-prettier", - "type": "build" - }, - { - "name": "eslint-import-resolver-typescript", - "type": "build" - }, - { - "name": "eslint-plugin-import", - "type": "build" - }, - { - "name": "eslint-plugin-prettier", - "type": "build" - }, - { - "name": "eslint", - "version": "^8", - "type": "build" - }, - { - "name": "prettier", - "type": "build" - }, - { - "name": "projen", - "version": "^0.79.6", - "type": "build" - }, - { - "name": "typescript", - "type": "build" - }, - { - "name": "effect", - "version": ">=2.3.1 <2.5.0", - "type": "peer" - }, - { - "name": "@aws-sdk/client-elasticache", - "version": "^3", - "type": "runtime" - }, - { - "name": "@aws-sdk/types", - "version": "^3", - "type": "runtime" - } - ], - "//": "~~ Generated by projen. To modify, edit .projenrc.js and run \"npx projen\"." -} diff --git a/packages/client-elasticache/.projen/files.json b/packages/client-elasticache/.projen/files.json deleted file mode 100644 index c38792b..0000000 --- a/packages/client-elasticache/.projen/files.json +++ /dev/null @@ -1,20 +0,0 @@ -{ - "files": [ - ".eslintrc.json", - ".gitattributes", - ".gitignore", - ".npmignore", - ".prettierignore", - ".prettierrc.json", - ".projen/deps.json", - ".projen/files.json", - ".projen/tasks.json", - "docgen.json", - "LICENSE", - "project.json", - "tsconfig.dev.json", - "tsconfig.esm.json", - "tsconfig.json" - ], - "//": "~~ Generated by projen. To modify, edit .projenrc.js and run \"npx projen\"." -} diff --git a/packages/client-elasticache/.projen/tasks.json b/packages/client-elasticache/.projen/tasks.json deleted file mode 100644 index 6ecb00a..0000000 --- a/packages/client-elasticache/.projen/tasks.json +++ /dev/null @@ -1,113 +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.json ./tsconfig.esm.json" - } - ] - }, - "default": { - "name": "default", - "description": "Synthesize project files" - }, - "eslint": { - "name": "eslint", - "description": "Runs eslint against the codebase", - "steps": [ - { - "exec": "eslint --ext .ts,.tsx --fix --no-error-on-unmatched-pattern $@ src test build-tools", - "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" - }, - "post-compile": { - "name": "post-compile", - "description": "Runs after successful compilation" - }, - "pre-compile": { - "name": "pre-compile", - "description": "Prepare the project for compilation" - }, - "test": { - "name": "test", - "description": "Run tests", - "steps": [ - { - "exec": "vitest run --globals --reporter verbose", - "receiveArgs": true - }, - { - "spawn": "eslint" - } - ] - }, - "test:watch": { - "name": "test:watch", - "description": "Run tests in watch mode", - "steps": [ - { - "exec": "vitest --globals --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/client-elasticache/CHANGELOG.md b/packages/client-elasticache/CHANGELOG.md deleted file mode 100644 index 26c64d9..0000000 --- a/packages/client-elasticache/CHANGELOG.md +++ /dev/null @@ -1,7 +0,0 @@ -# @effect-aws/client-elasticache - -## 1.0.0 - -### Major Changes - -- [#35](https://github.com/floydspace/effect-aws/pull/35) [`4633dac`](https://github.com/floydspace/effect-aws/commit/4633dac202b0c644c566f47ba221a22c1ea7a9dd) Thanks [@godu](https://github.com/godu)! - implement effectful elasticache client diff --git a/packages/client-elasticache/LICENSE b/packages/client-elasticache/LICENSE deleted file mode 100644 index 7afce46..0000000 --- a/packages/client-elasticache/LICENSE +++ /dev/null @@ -1,19 +0,0 @@ -Copyright (c) 2024 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/client-elasticache/README.md b/packages/client-elasticache/README.md deleted file mode 100644 index b3fa7dd..0000000 --- a/packages/client-elasticache/README.md +++ /dev/null @@ -1 +0,0 @@ -# replace this \ No newline at end of file diff --git a/packages/client-elasticache/docgen.json b/packages/client-elasticache/docgen.json deleted file mode 100644 index b359fc7..0000000 --- a/packages/client-elasticache/docgen.json +++ /dev/null @@ -1,8 +0,0 @@ -{ - "$schema": "../../node_modules/@effect/docgen/schema.json", - "exclude": [ - "src/index.ts", - "src/Errors.ts" - ], - "//": "~~ Generated by projen. To modify, edit .projenrc.js and run \"npx projen\"." -} diff --git a/packages/client-elasticache/src/ElastiCacheClientInstance.ts b/packages/client-elasticache/src/ElastiCacheClientInstance.ts deleted file mode 100644 index 495a6f1..0000000 --- a/packages/client-elasticache/src/ElastiCacheClientInstance.ts +++ /dev/null @@ -1,46 +0,0 @@ -/** - * @since 1.0.0 - */ -import { ElastiCacheClient } from "@aws-sdk/client-elasticache"; -import * as Context from "effect/Context"; -import * as Effect from "effect/Effect"; -import * as Layer from "effect/Layer"; -import { - DefaultElastiCacheClientConfigLayer, - ElastiCacheClientInstanceConfig, -} from "./ElastiCacheClientInstanceConfig"; - -/** - * @since 1.0.0 - * @category tags - */ -export class ElastiCacheClientInstance extends Context.Tag( - "@effect-aws/client-elasticache/ElastiCacheClientInstance", -)() {} - -/** - * @since 1.0.0 - * @category constructors - */ -export const makeElastiCacheClientInstance = Effect.map( - ElastiCacheClientInstanceConfig, - (config) => new ElastiCacheClient(config), -); - -/** - * @since 1.0.0 - * @category layers - */ -export const ElastiCacheClientInstanceLayer = Layer.effect( - ElastiCacheClientInstance, - makeElastiCacheClientInstance, -); - -/** - * @since 1.0.0 - * @category layers - */ -export const DefaultElastiCacheClientInstanceLayer = - ElastiCacheClientInstanceLayer.pipe( - Layer.provide(DefaultElastiCacheClientConfigLayer), - ); diff --git a/packages/client-elasticache/src/ElastiCacheClientInstanceConfig.ts b/packages/client-elasticache/src/ElastiCacheClientInstanceConfig.ts deleted file mode 100644 index 7c92554..0000000 --- a/packages/client-elasticache/src/ElastiCacheClientInstanceConfig.ts +++ /dev/null @@ -1,55 +0,0 @@ -/** - * @since 1.0.0 - */ -import type { ElastiCacheClientConfig } from "@aws-sdk/client-elasticache"; -import * as Context from "effect/Context"; -import * as Effect from "effect/Effect"; -import * as Layer from "effect/Layer"; -import * as Runtime from "effect/Runtime"; - -/** - * @since 1.0.0 - * @category tags - */ -export class ElastiCacheClientInstanceConfig extends Context.Tag( - "@effect-aws/client-elasticache/ElastiCacheClientInstanceConfig", -)() {} - -/** - * @since 1.0.0 - * @category constructors - */ -export const makeDefaultElastiCacheClientInstanceConfig: Effect.Effect = - Effect.gen(function* (_) { - const runtime = yield* _(Effect.runtime()); - const runSync = Runtime.runSync(runtime); - - return { - logger: { - info(m) { - Effect.logInfo(m).pipe(runSync); - }, - warn(m) { - Effect.logWarning(m).pipe(runSync); - }, - error(m) { - Effect.logError(m).pipe(runSync); - }, - debug(m) { - Effect.logDebug(m).pipe(runSync); - }, - trace(m) { - Effect.logTrace(m).pipe(runSync); - }, - }, - }; - }); - -/** - * @since 1.0.0 - * @category layers - */ -export const DefaultElastiCacheClientConfigLayer = Layer.effect( - ElastiCacheClientInstanceConfig, - makeDefaultElastiCacheClientInstanceConfig, -); diff --git a/packages/client-elasticache/src/ElastiCacheService.ts b/packages/client-elasticache/src/ElastiCacheService.ts deleted file mode 100644 index 5ae0b5a..0000000 --- a/packages/client-elasticache/src/ElastiCacheService.ts +++ /dev/null @@ -1,1407 +0,0 @@ -/** - * @since 1.0.0 - */ -import { - AddTagsToResourceCommand, - type AddTagsToResourceCommandInput, - type AddTagsToResourceCommandOutput, - AuthorizeCacheSecurityGroupIngressCommand, - type AuthorizeCacheSecurityGroupIngressCommandInput, - type AuthorizeCacheSecurityGroupIngressCommandOutput, - BatchApplyUpdateActionCommand, - type BatchApplyUpdateActionCommandInput, - type BatchApplyUpdateActionCommandOutput, - BatchStopUpdateActionCommand, - type BatchStopUpdateActionCommandInput, - type BatchStopUpdateActionCommandOutput, - CompleteMigrationCommand, - type CompleteMigrationCommandInput, - type CompleteMigrationCommandOutput, - CopyServerlessCacheSnapshotCommand, - type CopyServerlessCacheSnapshotCommandInput, - type CopyServerlessCacheSnapshotCommandOutput, - CopySnapshotCommand, - type CopySnapshotCommandInput, - type CopySnapshotCommandOutput, - CreateCacheClusterCommand, - type CreateCacheClusterCommandInput, - type CreateCacheClusterCommandOutput, - CreateCacheParameterGroupCommand, - type CreateCacheParameterGroupCommandInput, - type CreateCacheParameterGroupCommandOutput, - CreateCacheSecurityGroupCommand, - type CreateCacheSecurityGroupCommandInput, - type CreateCacheSecurityGroupCommandOutput, - CreateCacheSubnetGroupCommand, - type CreateCacheSubnetGroupCommandInput, - type CreateCacheSubnetGroupCommandOutput, - CreateGlobalReplicationGroupCommand, - type CreateGlobalReplicationGroupCommandInput, - type CreateGlobalReplicationGroupCommandOutput, - CreateReplicationGroupCommand, - type CreateReplicationGroupCommandInput, - type CreateReplicationGroupCommandOutput, - CreateServerlessCacheCommand, - type CreateServerlessCacheCommandInput, - type CreateServerlessCacheCommandOutput, - CreateServerlessCacheSnapshotCommand, - type CreateServerlessCacheSnapshotCommandInput, - type CreateServerlessCacheSnapshotCommandOutput, - CreateSnapshotCommand, - type CreateSnapshotCommandInput, - type CreateSnapshotCommandOutput, - CreateUserCommand, - type CreateUserCommandInput, - type CreateUserCommandOutput, - CreateUserGroupCommand, - type CreateUserGroupCommandInput, - type CreateUserGroupCommandOutput, - DecreaseNodeGroupsInGlobalReplicationGroupCommand, - type DecreaseNodeGroupsInGlobalReplicationGroupCommandInput, - type DecreaseNodeGroupsInGlobalReplicationGroupCommandOutput, - DecreaseReplicaCountCommand, - type DecreaseReplicaCountCommandInput, - type DecreaseReplicaCountCommandOutput, - DeleteCacheClusterCommand, - type DeleteCacheClusterCommandInput, - type DeleteCacheClusterCommandOutput, - DeleteCacheParameterGroupCommand, - type DeleteCacheParameterGroupCommandInput, - type DeleteCacheParameterGroupCommandOutput, - DeleteCacheSecurityGroupCommand, - type DeleteCacheSecurityGroupCommandInput, - type DeleteCacheSecurityGroupCommandOutput, - DeleteCacheSubnetGroupCommand, - type DeleteCacheSubnetGroupCommandInput, - type DeleteCacheSubnetGroupCommandOutput, - DeleteGlobalReplicationGroupCommand, - type DeleteGlobalReplicationGroupCommandInput, - type DeleteGlobalReplicationGroupCommandOutput, - DeleteReplicationGroupCommand, - type DeleteReplicationGroupCommandInput, - type DeleteReplicationGroupCommandOutput, - DeleteServerlessCacheCommand, - type DeleteServerlessCacheCommandInput, - type DeleteServerlessCacheCommandOutput, - DeleteServerlessCacheSnapshotCommand, - type DeleteServerlessCacheSnapshotCommandInput, - type DeleteServerlessCacheSnapshotCommandOutput, - DeleteSnapshotCommand, - type DeleteSnapshotCommandInput, - type DeleteSnapshotCommandOutput, - DeleteUserCommand, - type DeleteUserCommandInput, - type DeleteUserCommandOutput, - DeleteUserGroupCommand, - type DeleteUserGroupCommandInput, - type DeleteUserGroupCommandOutput, - DescribeCacheClustersCommand, - type DescribeCacheClustersCommandInput, - type DescribeCacheClustersCommandOutput, - DescribeCacheEngineVersionsCommand, - type DescribeCacheEngineVersionsCommandInput, - type DescribeCacheEngineVersionsCommandOutput, - DescribeCacheParameterGroupsCommand, - type DescribeCacheParameterGroupsCommandInput, - type DescribeCacheParameterGroupsCommandOutput, - DescribeCacheParametersCommand, - type DescribeCacheParametersCommandInput, - type DescribeCacheParametersCommandOutput, - DescribeCacheSecurityGroupsCommand, - type DescribeCacheSecurityGroupsCommandInput, - type DescribeCacheSecurityGroupsCommandOutput, - DescribeCacheSubnetGroupsCommand, - type DescribeCacheSubnetGroupsCommandInput, - type DescribeCacheSubnetGroupsCommandOutput, - DescribeEngineDefaultParametersCommand, - type DescribeEngineDefaultParametersCommandInput, - type DescribeEngineDefaultParametersCommandOutput, - DescribeEventsCommand, - type DescribeEventsCommandInput, - type DescribeEventsCommandOutput, - DescribeGlobalReplicationGroupsCommand, - type DescribeGlobalReplicationGroupsCommandInput, - type DescribeGlobalReplicationGroupsCommandOutput, - DescribeReplicationGroupsCommand, - type DescribeReplicationGroupsCommandInput, - type DescribeReplicationGroupsCommandOutput, - DescribeReservedCacheNodesCommand, - type DescribeReservedCacheNodesCommandInput, - type DescribeReservedCacheNodesCommandOutput, - DescribeReservedCacheNodesOfferingsCommand, - type DescribeReservedCacheNodesOfferingsCommandInput, - type DescribeReservedCacheNodesOfferingsCommandOutput, - DescribeServerlessCachesCommand, - type DescribeServerlessCachesCommandInput, - type DescribeServerlessCachesCommandOutput, - DescribeServerlessCacheSnapshotsCommand, - type DescribeServerlessCacheSnapshotsCommandInput, - type DescribeServerlessCacheSnapshotsCommandOutput, - DescribeServiceUpdatesCommand, - type DescribeServiceUpdatesCommandInput, - type DescribeServiceUpdatesCommandOutput, - DescribeSnapshotsCommand, - type DescribeSnapshotsCommandInput, - type DescribeSnapshotsCommandOutput, - DescribeUpdateActionsCommand, - type DescribeUpdateActionsCommandInput, - type DescribeUpdateActionsCommandOutput, - DescribeUserGroupsCommand, - type DescribeUserGroupsCommandInput, - type DescribeUserGroupsCommandOutput, - DescribeUsersCommand, - type DescribeUsersCommandInput, - type DescribeUsersCommandOutput, - DisassociateGlobalReplicationGroupCommand, - type DisassociateGlobalReplicationGroupCommandInput, - type DisassociateGlobalReplicationGroupCommandOutput, - ElastiCacheServiceException, - ExportServerlessCacheSnapshotCommand, - type ExportServerlessCacheSnapshotCommandInput, - type ExportServerlessCacheSnapshotCommandOutput, - FailoverGlobalReplicationGroupCommand, - type FailoverGlobalReplicationGroupCommandInput, - type FailoverGlobalReplicationGroupCommandOutput, - IncreaseNodeGroupsInGlobalReplicationGroupCommand, - type IncreaseNodeGroupsInGlobalReplicationGroupCommandInput, - type IncreaseNodeGroupsInGlobalReplicationGroupCommandOutput, - IncreaseReplicaCountCommand, - type IncreaseReplicaCountCommandInput, - type IncreaseReplicaCountCommandOutput, - ListAllowedNodeTypeModificationsCommand, - type ListAllowedNodeTypeModificationsCommandInput, - type ListAllowedNodeTypeModificationsCommandOutput, - ListTagsForResourceCommand, - type ListTagsForResourceCommandInput, - type ListTagsForResourceCommandOutput, - ModifyCacheClusterCommand, - type ModifyCacheClusterCommandInput, - type ModifyCacheClusterCommandOutput, - ModifyCacheParameterGroupCommand, - type ModifyCacheParameterGroupCommandInput, - type ModifyCacheParameterGroupCommandOutput, - ModifyCacheSubnetGroupCommand, - type ModifyCacheSubnetGroupCommandInput, - type ModifyCacheSubnetGroupCommandOutput, - ModifyGlobalReplicationGroupCommand, - type ModifyGlobalReplicationGroupCommandInput, - type ModifyGlobalReplicationGroupCommandOutput, - ModifyReplicationGroupCommand, - type ModifyReplicationGroupCommandInput, - type ModifyReplicationGroupCommandOutput, - ModifyReplicationGroupShardConfigurationCommand, - type ModifyReplicationGroupShardConfigurationCommandInput, - type ModifyReplicationGroupShardConfigurationCommandOutput, - ModifyServerlessCacheCommand, - type ModifyServerlessCacheCommandInput, - type ModifyServerlessCacheCommandOutput, - ModifyUserCommand, - type ModifyUserCommandInput, - type ModifyUserCommandOutput, - ModifyUserGroupCommand, - type ModifyUserGroupCommandInput, - type ModifyUserGroupCommandOutput, - PurchaseReservedCacheNodesOfferingCommand, - type PurchaseReservedCacheNodesOfferingCommandInput, - type PurchaseReservedCacheNodesOfferingCommandOutput, - RebalanceSlotsInGlobalReplicationGroupCommand, - type RebalanceSlotsInGlobalReplicationGroupCommandInput, - type RebalanceSlotsInGlobalReplicationGroupCommandOutput, - RebootCacheClusterCommand, - type RebootCacheClusterCommandInput, - type RebootCacheClusterCommandOutput, - RemoveTagsFromResourceCommand, - type RemoveTagsFromResourceCommandInput, - type RemoveTagsFromResourceCommandOutput, - ResetCacheParameterGroupCommand, - type ResetCacheParameterGroupCommandInput, - type ResetCacheParameterGroupCommandOutput, - RevokeCacheSecurityGroupIngressCommand, - type RevokeCacheSecurityGroupIngressCommandInput, - type RevokeCacheSecurityGroupIngressCommandOutput, - StartMigrationCommand, - type StartMigrationCommandInput, - type StartMigrationCommandOutput, - TestFailoverCommand, - type TestFailoverCommandInput, - type TestFailoverCommandOutput, - TestMigrationCommand, - type TestMigrationCommandInput, - type TestMigrationCommandOutput, -} from "@aws-sdk/client-elasticache"; -import { type HttpHandlerOptions as __HttpHandlerOptions } from "@aws-sdk/types"; -import { Context, Effect, Layer, ReadonlyRecord, Data } from "effect"; -import { - ElastiCacheClientInstance, - ElastiCacheClientInstanceLayer, -} from "./ElastiCacheClientInstance"; -import { DefaultElastiCacheClientConfigLayer } from "./ElastiCacheClientInstanceConfig"; -import { - ElastiCacheServiceError, - InvalidCredentialsError, - InvalidParameterCombinationError, - InvalidParameterValueError, - SdkError, - TaggedException, -} from "./Errors"; - -const commands = { - AddTagsToResourceCommand, - AuthorizeCacheSecurityGroupIngressCommand, - BatchApplyUpdateActionCommand, - BatchStopUpdateActionCommand, - CompleteMigrationCommand, - CopyServerlessCacheSnapshotCommand, - CopySnapshotCommand, - CreateCacheClusterCommand, - CreateCacheParameterGroupCommand, - CreateCacheSecurityGroupCommand, - CreateCacheSubnetGroupCommand, - CreateGlobalReplicationGroupCommand, - CreateReplicationGroupCommand, - CreateServerlessCacheCommand, - CreateServerlessCacheSnapshotCommand, - CreateSnapshotCommand, - CreateUserCommand, - CreateUserGroupCommand, - DecreaseNodeGroupsInGlobalReplicationGroupCommand, - DecreaseReplicaCountCommand, - DeleteCacheClusterCommand, - DeleteCacheParameterGroupCommand, - DeleteCacheSecurityGroupCommand, - DeleteCacheSubnetGroupCommand, - DeleteGlobalReplicationGroupCommand, - DeleteReplicationGroupCommand, - DeleteServerlessCacheCommand, - DeleteServerlessCacheSnapshotCommand, - DeleteSnapshotCommand, - DeleteUserCommand, - DeleteUserGroupCommand, - DescribeCacheClustersCommand, - DescribeCacheEngineVersionsCommand, - DescribeCacheParameterGroupsCommand, - DescribeCacheParametersCommand, - DescribeCacheSecurityGroupsCommand, - DescribeCacheSubnetGroupsCommand, - DescribeEngineDefaultParametersCommand, - DescribeEventsCommand, - DescribeGlobalReplicationGroupsCommand, - DescribeReplicationGroupsCommand, - DescribeReservedCacheNodesCommand, - DescribeReservedCacheNodesOfferingsCommand, - DescribeServerlessCachesCommand, - DescribeServerlessCacheSnapshotsCommand, - DescribeServiceUpdatesCommand, - DescribeSnapshotsCommand, - DescribeUpdateActionsCommand, - DescribeUserGroupsCommand, - DescribeUsersCommand, - DisassociateGlobalReplicationGroupCommand, - ExportServerlessCacheSnapshotCommand, - FailoverGlobalReplicationGroupCommand, - IncreaseNodeGroupsInGlobalReplicationGroupCommand, - IncreaseReplicaCountCommand, - ListAllowedNodeTypeModificationsCommand, - ListTagsForResourceCommand, - ModifyCacheClusterCommand, - ModifyCacheParameterGroupCommand, - ModifyCacheSubnetGroupCommand, - ModifyGlobalReplicationGroupCommand, - ModifyReplicationGroupCommand, - ModifyReplicationGroupShardConfigurationCommand, - ModifyServerlessCacheCommand, - ModifyUserCommand, - ModifyUserGroupCommand, - PurchaseReservedCacheNodesOfferingCommand, - RebalanceSlotsInGlobalReplicationGroupCommand, - RebootCacheClusterCommand, - RemoveTagsFromResourceCommand, - ResetCacheParameterGroupCommand, - RevokeCacheSecurityGroupIngressCommand, - StartMigrationCommand, - TestFailoverCommand, - TestMigrationCommand, -}; - -/** - * @since 1.0.0 - * @category models - */ -export type ElastiCacheService = { - readonly _: unique symbol; - - /** - * @see {@link AddTagsToResourceCommand} - */ - readonly addTagsToResource: ( - args: AddTagsToResourceCommandInput, - options?: __HttpHandlerOptions, - ) => Effect.Effect< - AddTagsToResourceCommandOutput | SdkError | ElastiCacheServiceError - >; - - /** - * @see {@link AuthorizeCacheSecurityGroupIngressCommand} - */ - readonly authorizeCacheSecurityGroupIngress: ( - args: AuthorizeCacheSecurityGroupIngressCommandInput, - options?: __HttpHandlerOptions, - ) => Effect.Effect< - | AuthorizeCacheSecurityGroupIngressCommandOutput - | SdkError - | ElastiCacheServiceError - | InvalidParameterCombinationError - | InvalidParameterValueError - >; - - /** - * @see {@link BatchApplyUpdateActionCommand} - */ - readonly batchApplyUpdateAction: ( - args: BatchApplyUpdateActionCommandInput, - options?: __HttpHandlerOptions, - ) => Effect.Effect< - | BatchApplyUpdateActionCommandOutput - | SdkError - | ElastiCacheServiceError - | InvalidParameterValueError - >; - - /** - * @see {@link BatchStopUpdateActionCommand} - */ - readonly batchStopUpdateAction: ( - args: BatchStopUpdateActionCommandInput, - options?: __HttpHandlerOptions, - ) => Effect.Effect< - | BatchStopUpdateActionCommandOutput - | SdkError - | ElastiCacheServiceError - | InvalidParameterValueError - >; - - /** - * @see {@link CompleteMigrationCommand} - */ - readonly completeMigration: ( - args: CompleteMigrationCommandInput, - options?: __HttpHandlerOptions, - ) => Effect.Effect< - CompleteMigrationCommandOutput | SdkError | ElastiCacheServiceError - >; - - /** - * @see {@link CopyServerlessCacheSnapshotCommand} - */ - readonly copyServerlessCacheSnapshot: ( - args: CopyServerlessCacheSnapshotCommandInput, - options?: __HttpHandlerOptions, - ) => Effect.Effect< - | CopyServerlessCacheSnapshotCommandOutput - | SdkError - | ElastiCacheServiceError - | InvalidParameterCombinationError - | InvalidParameterValueError - >; - - /** - * @see {@link CopySnapshotCommand} - */ - readonly copySnapshot: ( - args: CopySnapshotCommandInput, - options?: __HttpHandlerOptions, - ) => Effect.Effect< - | CopySnapshotCommandOutput - | SdkError - | ElastiCacheServiceError - | InvalidParameterCombinationError - | InvalidParameterValueError - >; - - /** - * @see {@link CreateCacheClusterCommand} - */ - readonly createCacheCluster: ( - args: CreateCacheClusterCommandInput, - options?: __HttpHandlerOptions, - ) => Effect.Effect< - | CreateCacheClusterCommandOutput - | SdkError - | ElastiCacheServiceError - | InvalidParameterCombinationError - | InvalidParameterValueError - >; - - /** - * @see {@link CreateCacheParameterGroupCommand} - */ - readonly createCacheParameterGroup: ( - args: CreateCacheParameterGroupCommandInput, - options?: __HttpHandlerOptions, - ) => Effect.Effect< - | CreateCacheParameterGroupCommandOutput - | SdkError - | ElastiCacheServiceError - | InvalidParameterCombinationError - | InvalidParameterValueError - >; - - /** - * @see {@link CreateCacheSecurityGroupCommand} - */ - readonly createCacheSecurityGroup: ( - args: CreateCacheSecurityGroupCommandInput, - options?: __HttpHandlerOptions, - ) => Effect.Effect< - | CreateCacheSecurityGroupCommandOutput - | SdkError - | ElastiCacheServiceError - | InvalidParameterCombinationError - | InvalidParameterValueError - >; - - /** - * @see {@link CreateCacheSubnetGroupCommand} - */ - readonly createCacheSubnetGroup: ( - args: CreateCacheSubnetGroupCommandInput, - options?: __HttpHandlerOptions, - ) => Effect.Effect< - CreateCacheSubnetGroupCommandOutput | SdkError | ElastiCacheServiceError - >; - - /** - * @see {@link CreateGlobalReplicationGroupCommand} - */ - readonly createGlobalReplicationGroup: ( - args: CreateGlobalReplicationGroupCommandInput, - options?: __HttpHandlerOptions, - ) => Effect.Effect< - | CreateGlobalReplicationGroupCommandOutput - | SdkError - | ElastiCacheServiceError - | InvalidParameterValueError - >; - - /** - * @see {@link CreateReplicationGroupCommand} - */ - readonly createReplicationGroup: ( - args: CreateReplicationGroupCommandInput, - options?: __HttpHandlerOptions, - ) => Effect.Effect< - | CreateReplicationGroupCommandOutput - | SdkError - | ElastiCacheServiceError - | InvalidParameterCombinationError - | InvalidParameterValueError - >; - - /** - * @see {@link CreateServerlessCacheCommand} - */ - readonly createServerlessCache: ( - args: CreateServerlessCacheCommandInput, - options?: __HttpHandlerOptions, - ) => Effect.Effect< - | CreateServerlessCacheCommandOutput - | SdkError - | ElastiCacheServiceError - | InvalidCredentialsError - | InvalidParameterCombinationError - | InvalidParameterValueError - >; - - /** - * @see {@link CreateServerlessCacheSnapshotCommand} - */ - readonly createServerlessCacheSnapshot: ( - args: CreateServerlessCacheSnapshotCommandInput, - options?: __HttpHandlerOptions, - ) => Effect.Effect< - | CreateServerlessCacheSnapshotCommandOutput - | SdkError - | ElastiCacheServiceError - | InvalidParameterCombinationError - | InvalidParameterValueError - >; - - /** - * @see {@link CreateSnapshotCommand} - */ - readonly createSnapshot: ( - args: CreateSnapshotCommandInput, - options?: __HttpHandlerOptions, - ) => Effect.Effect< - | CreateSnapshotCommandOutput - | SdkError - | ElastiCacheServiceError - | InvalidParameterCombinationError - | InvalidParameterValueError - >; - - /** - * @see {@link CreateUserCommand} - */ - readonly createUser: ( - args: CreateUserCommandInput, - options?: __HttpHandlerOptions, - ) => Effect.Effect< - | CreateUserCommandOutput - | SdkError - | ElastiCacheServiceError - | InvalidParameterCombinationError - | InvalidParameterValueError - >; - - /** - * @see {@link CreateUserGroupCommand} - */ - readonly createUserGroup: ( - args: CreateUserGroupCommandInput, - options?: __HttpHandlerOptions, - ) => Effect.Effect< - | CreateUserGroupCommandOutput - | SdkError - | ElastiCacheServiceError - | InvalidParameterValueError - >; - - /** - * @see {@link DecreaseNodeGroupsInGlobalReplicationGroupCommand} - */ - readonly decreaseNodeGroupsInGlobalReplicationGroup: ( - args: DecreaseNodeGroupsInGlobalReplicationGroupCommandInput, - options?: __HttpHandlerOptions, - ) => Effect.Effect< - | DecreaseNodeGroupsInGlobalReplicationGroupCommandOutput - | SdkError - | ElastiCacheServiceError - | InvalidParameterCombinationError - | InvalidParameterValueError - >; - - /** - * @see {@link DecreaseReplicaCountCommand} - */ - readonly decreaseReplicaCount: ( - args: DecreaseReplicaCountCommandInput, - options?: __HttpHandlerOptions, - ) => Effect.Effect< - | DecreaseReplicaCountCommandOutput - | SdkError - | ElastiCacheServiceError - | InvalidParameterCombinationError - | InvalidParameterValueError - >; - - /** - * @see {@link DeleteCacheClusterCommand} - */ - readonly deleteCacheCluster: ( - args: DeleteCacheClusterCommandInput, - options?: __HttpHandlerOptions, - ) => Effect.Effect< - | DeleteCacheClusterCommandOutput - | SdkError - | ElastiCacheServiceError - | InvalidParameterCombinationError - | InvalidParameterValueError - >; - - /** - * @see {@link DeleteCacheParameterGroupCommand} - */ - readonly deleteCacheParameterGroup: ( - args: DeleteCacheParameterGroupCommandInput, - options?: __HttpHandlerOptions, - ) => Effect.Effect< - | DeleteCacheParameterGroupCommandOutput - | SdkError - | ElastiCacheServiceError - | InvalidParameterCombinationError - | InvalidParameterValueError - >; - - /** - * @see {@link DeleteCacheSecurityGroupCommand} - */ - readonly deleteCacheSecurityGroup: ( - args: DeleteCacheSecurityGroupCommandInput, - options?: __HttpHandlerOptions, - ) => Effect.Effect< - | DeleteCacheSecurityGroupCommandOutput - | SdkError - | ElastiCacheServiceError - | InvalidParameterCombinationError - | InvalidParameterValueError - >; - - /** - * @see {@link DeleteCacheSubnetGroupCommand} - */ - readonly deleteCacheSubnetGroup: ( - args: DeleteCacheSubnetGroupCommandInput, - options?: __HttpHandlerOptions, - ) => Effect.Effect< - DeleteCacheSubnetGroupCommandOutput | SdkError | ElastiCacheServiceError - >; - - /** - * @see {@link DeleteGlobalReplicationGroupCommand} - */ - readonly deleteGlobalReplicationGroup: ( - args: DeleteGlobalReplicationGroupCommandInput, - options?: __HttpHandlerOptions, - ) => Effect.Effect< - | DeleteGlobalReplicationGroupCommandOutput - | SdkError - | ElastiCacheServiceError - | InvalidParameterValueError - >; - - /** - * @see {@link DeleteReplicationGroupCommand} - */ - readonly deleteReplicationGroup: ( - args: DeleteReplicationGroupCommandInput, - options?: __HttpHandlerOptions, - ) => Effect.Effect< - | DeleteReplicationGroupCommandOutput - | SdkError - | ElastiCacheServiceError - | InvalidParameterCombinationError - | InvalidParameterValueError - >; - - /** - * @see {@link DeleteServerlessCacheCommand} - */ - readonly deleteServerlessCache: ( - args: DeleteServerlessCacheCommandInput, - options?: __HttpHandlerOptions, - ) => Effect.Effect< - | DeleteServerlessCacheCommandOutput - | SdkError - | ElastiCacheServiceError - | InvalidCredentialsError - | InvalidParameterCombinationError - | InvalidParameterValueError - >; - - /** - * @see {@link DeleteServerlessCacheSnapshotCommand} - */ - readonly deleteServerlessCacheSnapshot: ( - args: DeleteServerlessCacheSnapshotCommandInput, - options?: __HttpHandlerOptions, - ) => Effect.Effect< - | DeleteServerlessCacheSnapshotCommandOutput - | SdkError - | ElastiCacheServiceError - | InvalidParameterValueError - >; - - /** - * @see {@link DeleteSnapshotCommand} - */ - readonly deleteSnapshot: ( - args: DeleteSnapshotCommandInput, - options?: __HttpHandlerOptions, - ) => Effect.Effect< - | DeleteSnapshotCommandOutput - | SdkError - | ElastiCacheServiceError - | InvalidParameterCombinationError - | InvalidParameterValueError - >; - - /** - * @see {@link DeleteUserCommand} - */ - readonly deleteUser: ( - args: DeleteUserCommandInput, - options?: __HttpHandlerOptions, - ) => Effect.Effect< - | DeleteUserCommandOutput - | SdkError - | ElastiCacheServiceError - | InvalidParameterValueError - >; - - /** - * @see {@link DeleteUserGroupCommand} - */ - readonly deleteUserGroup: ( - args: DeleteUserGroupCommandInput, - options?: __HttpHandlerOptions, - ) => Effect.Effect< - | DeleteUserGroupCommandOutput - | SdkError - | ElastiCacheServiceError - | InvalidParameterValueError - >; - - /** - * @see {@link DescribeCacheClustersCommand} - */ - readonly describeCacheClusters: ( - args: DescribeCacheClustersCommandInput, - options?: __HttpHandlerOptions, - ) => Effect.Effect< - | DescribeCacheClustersCommandOutput - | SdkError - | ElastiCacheServiceError - | InvalidParameterCombinationError - | InvalidParameterValueError - >; - - /** - * @see {@link DescribeCacheEngineVersionsCommand} - */ - readonly describeCacheEngineVersions: ( - args: DescribeCacheEngineVersionsCommandInput, - options?: __HttpHandlerOptions, - ) => Effect.Effect< - | DescribeCacheEngineVersionsCommandOutput - | SdkError - | ElastiCacheServiceError - >; - - /** - * @see {@link DescribeCacheParameterGroupsCommand} - */ - readonly describeCacheParameterGroups: ( - args: DescribeCacheParameterGroupsCommandInput, - options?: __HttpHandlerOptions, - ) => Effect.Effect< - | DescribeCacheParameterGroupsCommandOutput - | SdkError - | ElastiCacheServiceError - | InvalidParameterCombinationError - | InvalidParameterValueError - >; - - /** - * @see {@link DescribeCacheParametersCommand} - */ - readonly describeCacheParameters: ( - args: DescribeCacheParametersCommandInput, - options?: __HttpHandlerOptions, - ) => Effect.Effect< - | DescribeCacheParametersCommandOutput - | SdkError - | ElastiCacheServiceError - | InvalidParameterCombinationError - | InvalidParameterValueError - >; - - /** - * @see {@link DescribeCacheSecurityGroupsCommand} - */ - readonly describeCacheSecurityGroups: ( - args: DescribeCacheSecurityGroupsCommandInput, - options?: __HttpHandlerOptions, - ) => Effect.Effect< - | DescribeCacheSecurityGroupsCommandOutput - | SdkError - | ElastiCacheServiceError - | InvalidParameterCombinationError - | InvalidParameterValueError - >; - - /** - * @see {@link DescribeCacheSubnetGroupsCommand} - */ - readonly describeCacheSubnetGroups: ( - args: DescribeCacheSubnetGroupsCommandInput, - options?: __HttpHandlerOptions, - ) => Effect.Effect< - DescribeCacheSubnetGroupsCommandOutput | SdkError | ElastiCacheServiceError - >; - - /** - * @see {@link DescribeEngineDefaultParametersCommand} - */ - readonly describeEngineDefaultParameters: ( - args: DescribeEngineDefaultParametersCommandInput, - options?: __HttpHandlerOptions, - ) => Effect.Effect< - | DescribeEngineDefaultParametersCommandOutput - | SdkError - | ElastiCacheServiceError - | InvalidParameterCombinationError - | InvalidParameterValueError - >; - - /** - * @see {@link DescribeEventsCommand} - */ - readonly describeEvents: ( - args: DescribeEventsCommandInput, - options?: __HttpHandlerOptions, - ) => Effect.Effect< - | DescribeEventsCommandOutput - | SdkError - | ElastiCacheServiceError - | InvalidParameterCombinationError - | InvalidParameterValueError - >; - - /** - * @see {@link DescribeGlobalReplicationGroupsCommand} - */ - readonly describeGlobalReplicationGroups: ( - args: DescribeGlobalReplicationGroupsCommandInput, - options?: __HttpHandlerOptions, - ) => Effect.Effect< - | DescribeGlobalReplicationGroupsCommandOutput - | SdkError - | ElastiCacheServiceError - | InvalidParameterCombinationError - | InvalidParameterValueError - >; - - /** - * @see {@link DescribeReplicationGroupsCommand} - */ - readonly describeReplicationGroups: ( - args: DescribeReplicationGroupsCommandInput, - options?: __HttpHandlerOptions, - ) => Effect.Effect< - | DescribeReplicationGroupsCommandOutput - | SdkError - | ElastiCacheServiceError - | InvalidParameterCombinationError - | InvalidParameterValueError - >; - - /** - * @see {@link DescribeReservedCacheNodesCommand} - */ - readonly describeReservedCacheNodes: ( - args: DescribeReservedCacheNodesCommandInput, - options?: __HttpHandlerOptions, - ) => Effect.Effect< - | DescribeReservedCacheNodesCommandOutput - | SdkError - | ElastiCacheServiceError - | InvalidParameterCombinationError - | InvalidParameterValueError - >; - - /** - * @see {@link DescribeReservedCacheNodesOfferingsCommand} - */ - readonly describeReservedCacheNodesOfferings: ( - args: DescribeReservedCacheNodesOfferingsCommandInput, - options?: __HttpHandlerOptions, - ) => Effect.Effect< - | DescribeReservedCacheNodesOfferingsCommandOutput - | SdkError - | ElastiCacheServiceError - | InvalidParameterCombinationError - | InvalidParameterValueError - >; - - /** - * @see {@link DescribeServerlessCachesCommand} - */ - readonly describeServerlessCaches: ( - args: DescribeServerlessCachesCommandInput, - options?: __HttpHandlerOptions, - ) => Effect.Effect< - | DescribeServerlessCachesCommandOutput - | SdkError - | ElastiCacheServiceError - | InvalidParameterCombinationError - | InvalidParameterValueError - >; - - /** - * @see {@link DescribeServerlessCacheSnapshotsCommand} - */ - readonly describeServerlessCacheSnapshots: ( - args: DescribeServerlessCacheSnapshotsCommandInput, - options?: __HttpHandlerOptions, - ) => Effect.Effect< - | DescribeServerlessCacheSnapshotsCommandOutput - | SdkError - | ElastiCacheServiceError - | InvalidParameterCombinationError - | InvalidParameterValueError - >; - - /** - * @see {@link DescribeServiceUpdatesCommand} - */ - readonly describeServiceUpdates: ( - args: DescribeServiceUpdatesCommandInput, - options?: __HttpHandlerOptions, - ) => Effect.Effect< - | DescribeServiceUpdatesCommandOutput - | SdkError - | ElastiCacheServiceError - | InvalidParameterCombinationError - | InvalidParameterValueError - >; - - /** - * @see {@link DescribeSnapshotsCommand} - */ - readonly describeSnapshots: ( - args: DescribeSnapshotsCommandInput, - options?: __HttpHandlerOptions, - ) => Effect.Effect< - | DescribeSnapshotsCommandOutput - | SdkError - | ElastiCacheServiceError - | InvalidParameterCombinationError - | InvalidParameterValueError - >; - - /** - * @see {@link DescribeUpdateActionsCommand} - */ - readonly describeUpdateActions: ( - args: DescribeUpdateActionsCommandInput, - options?: __HttpHandlerOptions, - ) => Effect.Effect< - | DescribeUpdateActionsCommandOutput - | SdkError - | ElastiCacheServiceError - | InvalidParameterCombinationError - | InvalidParameterValueError - >; - - /** - * @see {@link DescribeUserGroupsCommand} - */ - readonly describeUserGroups: ( - args: DescribeUserGroupsCommandInput, - options?: __HttpHandlerOptions, - ) => Effect.Effect< - | DescribeUserGroupsCommandOutput - | SdkError - | ElastiCacheServiceError - | InvalidParameterCombinationError - >; - - /** - * @see {@link DescribeUsersCommand} - */ - readonly describeUsers: ( - args: DescribeUsersCommandInput, - options?: __HttpHandlerOptions, - ) => Effect.Effect< - | DescribeUsersCommandOutput - | SdkError - | ElastiCacheServiceError - | InvalidParameterCombinationError - >; - - /** - * @see {@link DisassociateGlobalReplicationGroupCommand} - */ - readonly disassociateGlobalReplicationGroup: ( - args: DisassociateGlobalReplicationGroupCommandInput, - options?: __HttpHandlerOptions, - ) => Effect.Effect< - | DisassociateGlobalReplicationGroupCommandOutput - | SdkError - | ElastiCacheServiceError - | InvalidParameterCombinationError - | InvalidParameterValueError - >; - - /** - * @see {@link ExportServerlessCacheSnapshotCommand} - */ - readonly exportServerlessCacheSnapshot: ( - args: ExportServerlessCacheSnapshotCommandInput, - options?: __HttpHandlerOptions, - ) => Effect.Effect< - | ExportServerlessCacheSnapshotCommandOutput - | SdkError - | ElastiCacheServiceError - | InvalidParameterValueError - >; - - /** - * @see {@link FailoverGlobalReplicationGroupCommand} - */ - readonly failoverGlobalReplicationGroup: ( - args: FailoverGlobalReplicationGroupCommandInput, - options?: __HttpHandlerOptions, - ) => Effect.Effect< - | FailoverGlobalReplicationGroupCommandOutput - | SdkError - | ElastiCacheServiceError - | InvalidParameterCombinationError - | InvalidParameterValueError - >; - - /** - * @see {@link IncreaseNodeGroupsInGlobalReplicationGroupCommand} - */ - readonly increaseNodeGroupsInGlobalReplicationGroup: ( - args: IncreaseNodeGroupsInGlobalReplicationGroupCommandInput, - options?: __HttpHandlerOptions, - ) => Effect.Effect< - | IncreaseNodeGroupsInGlobalReplicationGroupCommandOutput - | SdkError - | ElastiCacheServiceError - | InvalidParameterValueError - >; - - /** - * @see {@link IncreaseReplicaCountCommand} - */ - readonly increaseReplicaCount: ( - args: IncreaseReplicaCountCommandInput, - options?: __HttpHandlerOptions, - ) => Effect.Effect< - | IncreaseReplicaCountCommandOutput - | SdkError - | ElastiCacheServiceError - | InvalidParameterCombinationError - | InvalidParameterValueError - >; - - /** - * @see {@link ListAllowedNodeTypeModificationsCommand} - */ - readonly listAllowedNodeTypeModifications: ( - args: ListAllowedNodeTypeModificationsCommandInput, - options?: __HttpHandlerOptions, - ) => Effect.Effect< - | ListAllowedNodeTypeModificationsCommandOutput - | SdkError - | ElastiCacheServiceError - | InvalidParameterCombinationError - | InvalidParameterValueError - >; - - /** - * @see {@link ListTagsForResourceCommand} - */ - readonly listTagsForResource: ( - args: ListTagsForResourceCommandInput, - options?: __HttpHandlerOptions, - ) => Effect.Effect< - ListTagsForResourceCommandOutput | SdkError | ElastiCacheServiceError - >; - - /** - * @see {@link ModifyCacheClusterCommand} - */ - readonly modifyCacheCluster: ( - args: ModifyCacheClusterCommandInput, - options?: __HttpHandlerOptions, - ) => Effect.Effect< - | ModifyCacheClusterCommandOutput - | SdkError - | ElastiCacheServiceError - | InvalidParameterCombinationError - | InvalidParameterValueError - >; - - /** - * @see {@link ModifyCacheParameterGroupCommand} - */ - readonly modifyCacheParameterGroup: ( - args: ModifyCacheParameterGroupCommandInput, - options?: __HttpHandlerOptions, - ) => Effect.Effect< - | ModifyCacheParameterGroupCommandOutput - | SdkError - | ElastiCacheServiceError - | InvalidParameterCombinationError - | InvalidParameterValueError - >; - - /** - * @see {@link ModifyCacheSubnetGroupCommand} - */ - readonly modifyCacheSubnetGroup: ( - args: ModifyCacheSubnetGroupCommandInput, - options?: __HttpHandlerOptions, - ) => Effect.Effect< - ModifyCacheSubnetGroupCommandOutput | SdkError | ElastiCacheServiceError - >; - - /** - * @see {@link ModifyGlobalReplicationGroupCommand} - */ - readonly modifyGlobalReplicationGroup: ( - args: ModifyGlobalReplicationGroupCommandInput, - options?: __HttpHandlerOptions, - ) => Effect.Effect< - | ModifyGlobalReplicationGroupCommandOutput - | SdkError - | ElastiCacheServiceError - | InvalidParameterValueError - >; - - /** - * @see {@link ModifyReplicationGroupCommand} - */ - readonly modifyReplicationGroup: ( - args: ModifyReplicationGroupCommandInput, - options?: __HttpHandlerOptions, - ) => Effect.Effect< - | ModifyReplicationGroupCommandOutput - | SdkError - | ElastiCacheServiceError - | InvalidParameterCombinationError - | InvalidParameterValueError - >; - - /** - * @see {@link ModifyReplicationGroupShardConfigurationCommand} - */ - readonly modifyReplicationGroupShardConfiguration: ( - args: ModifyReplicationGroupShardConfigurationCommandInput, - options?: __HttpHandlerOptions, - ) => Effect.Effect< - | ModifyReplicationGroupShardConfigurationCommandOutput - | SdkError - | ElastiCacheServiceError - | InvalidParameterCombinationError - | InvalidParameterValueError - >; - - /** - * @see {@link ModifyServerlessCacheCommand} - */ - readonly modifyServerlessCache: ( - args: ModifyServerlessCacheCommandInput, - options?: __HttpHandlerOptions, - ) => Effect.Effect< - | ModifyServerlessCacheCommandOutput - | SdkError - | ElastiCacheServiceError - | InvalidCredentialsError - | InvalidParameterCombinationError - | InvalidParameterValueError - >; - - /** - * @see {@link ModifyUserCommand} - */ - readonly modifyUser: ( - args: ModifyUserCommandInput, - options?: __HttpHandlerOptions, - ) => Effect.Effect< - | ModifyUserCommandOutput - | SdkError - | ElastiCacheServiceError - | InvalidParameterCombinationError - | InvalidParameterValueError - >; - - /** - * @see {@link ModifyUserGroupCommand} - */ - readonly modifyUserGroup: ( - args: ModifyUserGroupCommandInput, - options?: __HttpHandlerOptions, - ) => Effect.Effect< - | ModifyUserGroupCommandOutput - | SdkError - | ElastiCacheServiceError - | InvalidParameterCombinationError - | InvalidParameterValueError - >; - - /** - * @see {@link PurchaseReservedCacheNodesOfferingCommand} - */ - readonly purchaseReservedCacheNodesOffering: ( - args: PurchaseReservedCacheNodesOfferingCommandInput, - options?: __HttpHandlerOptions, - ) => Effect.Effect< - | PurchaseReservedCacheNodesOfferingCommandOutput - | SdkError - | ElastiCacheServiceError - | InvalidParameterCombinationError - | InvalidParameterValueError - >; - - /** - * @see {@link RebalanceSlotsInGlobalReplicationGroupCommand} - */ - readonly rebalanceSlotsInGlobalReplicationGroup: ( - args: RebalanceSlotsInGlobalReplicationGroupCommandInput, - options?: __HttpHandlerOptions, - ) => Effect.Effect< - | RebalanceSlotsInGlobalReplicationGroupCommandOutput - | SdkError - | ElastiCacheServiceError - | InvalidParameterValueError - >; - - /** - * @see {@link RebootCacheClusterCommand} - */ - readonly rebootCacheCluster: ( - args: RebootCacheClusterCommandInput, - options?: __HttpHandlerOptions, - ) => Effect.Effect< - RebootCacheClusterCommandOutput | SdkError | ElastiCacheServiceError - >; - - /** - * @see {@link RemoveTagsFromResourceCommand} - */ - readonly removeTagsFromResource: ( - args: RemoveTagsFromResourceCommandInput, - options?: __HttpHandlerOptions, - ) => Effect.Effect< - RemoveTagsFromResourceCommandOutput | SdkError | ElastiCacheServiceError - >; - - /** - * @see {@link ResetCacheParameterGroupCommand} - */ - readonly resetCacheParameterGroup: ( - args: ResetCacheParameterGroupCommandInput, - options?: __HttpHandlerOptions, - ) => Effect.Effect< - | ResetCacheParameterGroupCommandOutput - | SdkError - | ElastiCacheServiceError - | InvalidParameterCombinationError - | InvalidParameterValueError - >; - - /** - * @see {@link RevokeCacheSecurityGroupIngressCommand} - */ - readonly revokeCacheSecurityGroupIngress: ( - args: RevokeCacheSecurityGroupIngressCommandInput, - options?: __HttpHandlerOptions, - ) => Effect.Effect< - | RevokeCacheSecurityGroupIngressCommandOutput - | SdkError - | ElastiCacheServiceError - | InvalidParameterCombinationError - | InvalidParameterValueError - >; - - /** - * @see {@link StartMigrationCommand} - */ - readonly startMigration: ( - args: StartMigrationCommandInput, - options?: __HttpHandlerOptions, - ) => Effect.Effect< - | StartMigrationCommandOutput - | SdkError - | ElastiCacheServiceError - | InvalidParameterValueError - >; - - /** - * @see {@link TestFailoverCommand} - */ - readonly testFailover: ( - args: TestFailoverCommandInput, - options?: __HttpHandlerOptions, - ) => Effect.Effect< - | TestFailoverCommandOutput - | SdkError - | ElastiCacheServiceError - | InvalidParameterCombinationError - | InvalidParameterValueError - >; - - /** - * @see {@link TestMigrationCommand} - */ - readonly testMigration: ( - args: TestMigrationCommandInput, - options?: __HttpHandlerOptions, - ) => Effect.Effect< - | TestMigrationCommandOutput - | SdkError - | ElastiCacheServiceError - | InvalidParameterValueError - >; -}; - -/** - * @since 1.0.0 - * @category tags - */ -export const ElastiCacheService = Context.GenericTag( - "@effect-aws/client-elasticache/ElastiCacheService", -); - -/** - * @since 1.0.0 - * @category constructors - */ -export const makeElastiCacheService = Effect.gen(function* (_) { - const client = yield* _(ElastiCacheClientInstance); - - return ReadonlyRecord.toEntries(commands).reduce((acc, [command]) => { - const CommandCtor = commands[command] as any; - const methodImpl = (args: any, options: any) => - Effect.tryPromise({ - try: () => client.send(new CommandCtor(args), options ?? {}), - catch: (e) => { - if (e instanceof ElastiCacheServiceException) { - const ServiceException = Data.tagged< - TaggedException - >(e.name); - - return ServiceException({ - ...e, - message: e.message, - stack: e.stack, - }); - } - if (e instanceof Error) { - return SdkError({ - ...e, - name: "SdkError", - message: e.message, - stack: e.stack, - }); - } - throw e; - }, - }); - const methodName = (command[0].toLowerCase() + command.slice(1)).replace( - /Command$/, - "", - ); - return { ...acc, [methodName]: methodImpl }; - }, {}) as ElastiCacheService; -}); - -/** - * @since 1.0.0 - * @category layers - */ -export const BaseElastiCacheServiceLayer = Layer.effect( - ElastiCacheService, - makeElastiCacheService, -); - -/** - * @since 1.0.0 - * @category layers - */ -export const ElastiCacheServiceLayer = BaseElastiCacheServiceLayer.pipe( - Layer.provide(ElastiCacheClientInstanceLayer), -); - -/** - * @since 1.0.0 - * @category layers - */ -export const DefaultElastiCacheServiceLayer = ElastiCacheServiceLayer.pipe( - Layer.provide(DefaultElastiCacheClientConfigLayer), -); diff --git a/packages/client-elasticache/src/Errors.ts b/packages/client-elasticache/src/Errors.ts deleted file mode 100644 index a02bf98..0000000 --- a/packages/client-elasticache/src/Errors.ts +++ /dev/null @@ -1,27 +0,0 @@ -import type { - ElastiCacheServiceException, - InvalidCredentialsException, - InvalidParameterValueException, - InvalidParameterCombinationException, -} from "@aws-sdk/client-elasticache"; -import * as Data from "effect/Data"; - -export type TaggedException = T & { - readonly _tag: T["name"]; -}; - -export type InvalidCredentialsError = - TaggedException; -export type InvalidParameterValueError = - TaggedException; -export type InvalidParameterCombinationError = - TaggedException; - -export type ElastiCacheServiceError = TaggedException< - ElastiCacheServiceException & { name: "ElastiCacheServiceError" } ->; -export const ElastiCacheServiceError = Data.tagged( - "ElastiCacheServiceError", -); -export type SdkError = TaggedException; -export const SdkError = Data.tagged("SdkError"); diff --git a/packages/client-elasticache/src/index.ts b/packages/client-elasticache/src/index.ts deleted file mode 100644 index 66527dc..0000000 --- a/packages/client-elasticache/src/index.ts +++ /dev/null @@ -1,4 +0,0 @@ -export * from "./Errors"; -export * from "./ElastiCacheClientInstance"; -export * from "./ElastiCacheClientInstanceConfig"; -export * from "./ElastiCacheService"; diff --git a/packages/client-elasticache/test/index.test.ts b/packages/client-elasticache/test/index.test.ts deleted file mode 100644 index 2c562ac..0000000 --- a/packages/client-elasticache/test/index.test.ts +++ /dev/null @@ -1,200 +0,0 @@ -import { - ListTagsForResourceCommand, - ElastiCacheClient, - ListTagsForResourceCommandInput, -} from "@aws-sdk/client-elasticache"; -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 * as Layer from "effect/Layer"; -import { - BaseElastiCacheServiceLayer, - DefaultElastiCacheClientConfigLayer, - DefaultElastiCacheServiceLayer, - ElastiCacheClientInstance, - ElastiCacheClientInstanceConfig, - ElastiCacheService, - ElastiCacheServiceLayer, - SdkError, -} from "../src"; - -import "aws-sdk-client-mock-jest"; - -const elasticacheMock = mockClient(ElastiCacheClient); -const { listTagsForResource } = Effect.serviceFunctions(ElastiCacheService); - -describe("ElastiCacheClientImpl", () => { - it("default", async () => { - elasticacheMock.reset().on(ListTagsForResourceCommand).resolves({}); - - const args: ListTagsForResourceCommandInput = { - ResourceName: "test", - }; - - const program = listTagsForResource(args); - - const result = await pipe( - program, - Effect.provide(DefaultElastiCacheServiceLayer), - Effect.runPromiseExit, - ); - - expect(result).toEqual(Exit.succeed({})); - expect(elasticacheMock).toHaveReceivedCommandTimes( - ListTagsForResourceCommand, - 1, - ); - expect(elasticacheMock).toHaveReceivedCommandWith( - ListTagsForResourceCommand, - args, - ); - }); - - it("configurable", async () => { - elasticacheMock.reset().on(ListTagsForResourceCommand).resolves({}); - - const args: ListTagsForResourceCommandInput = { - ResourceName: "test", - }; - - const program = listTagsForResource(args); - - const ElastiCacheClientConfigLayer = Layer.succeed( - ElastiCacheClientInstanceConfig, - { - region: "eu-central-1", - }, - ); - const CustomElastiCacheServiceLayer = ElastiCacheServiceLayer.pipe( - Layer.provide(ElastiCacheClientConfigLayer), - ); - - const result = await pipe( - program, - Effect.provide(CustomElastiCacheServiceLayer), - Effect.runPromiseExit, - ); - - expect(result).toEqual(Exit.succeed({})); - expect(elasticacheMock).toHaveReceivedCommandTimes( - ListTagsForResourceCommand, - 1, - ); - expect(elasticacheMock).toHaveReceivedCommandWith( - ListTagsForResourceCommand, - args, - ); - }); - - it("base", async () => { - elasticacheMock.reset().on(ListTagsForResourceCommand).resolves({}); - - const args: ListTagsForResourceCommandInput = { - ResourceName: "test", - }; - - const program = listTagsForResource(args); - - const ElastiCacheClientInstanceLayer = Layer.succeed( - ElastiCacheClientInstance, - new ElastiCacheClient({ region: "eu-central-1" }), - ); - const CustomElastiCacheServiceLayer = BaseElastiCacheServiceLayer.pipe( - Layer.provide(ElastiCacheClientInstanceLayer), - ); - - const result = await pipe( - program, - Effect.provide(CustomElastiCacheServiceLayer), - Effect.runPromiseExit, - ); - - expect(result).toEqual(Exit.succeed({})); - expect(elasticacheMock).toHaveReceivedCommandTimes( - ListTagsForResourceCommand, - 1, - ); - expect(elasticacheMock).toHaveReceivedCommandWith( - ListTagsForResourceCommand, - args, - ); - }); - - it("extended", async () => { - elasticacheMock.reset().on(ListTagsForResourceCommand).resolves({}); - - const args: ListTagsForResourceCommandInput = { - ResourceName: "test", - }; - - const program = listTagsForResource(args); - - const ElastiCacheClientInstanceLayer = Layer.effect( - ElastiCacheClientInstance, - Effect.map( - ElastiCacheClientInstanceConfig, - (config) => - new ElastiCacheClient({ ...config, region: "eu-central-1" }), - ), - ); - const CustomElastiCacheServiceLayer = BaseElastiCacheServiceLayer.pipe( - Layer.provide(ElastiCacheClientInstanceLayer), - Layer.provide(DefaultElastiCacheClientConfigLayer), - ); - - const result = await pipe( - program, - Effect.provide(CustomElastiCacheServiceLayer), - Effect.runPromiseExit, - ); - - expect(result).toEqual(Exit.succeed({})); - expect(elasticacheMock).toHaveReceivedCommandTimes( - ListTagsForResourceCommand, - 1, - ); - expect(elasticacheMock).toHaveReceivedCommandWith( - ListTagsForResourceCommand, - args, - ); - }); - - it("fail", async () => { - elasticacheMock - .reset() - .on(ListTagsForResourceCommand) - .rejects(new Error("test")); - - const args: ListTagsForResourceCommandInput = { - ResourceName: "test", - }; - - const program = listTagsForResource(args, { requestTimeout: 1000 }); - - const result = await pipe( - program, - Effect.provide(DefaultElastiCacheServiceLayer), - Effect.runPromiseExit, - ); - - expect(result).toEqual( - Exit.fail( - SdkError({ - ...new Error("test"), - name: "SdkError", - message: "test", - stack: expect.any(String), - }), - ), - ); - expect(elasticacheMock).toHaveReceivedCommandTimes( - ListTagsForResourceCommand, - 1, - ); - expect(elasticacheMock).toHaveReceivedCommandWith( - ListTagsForResourceCommand, - args, - ); - }); -}); diff --git a/packages/client-elasticache/tsconfig.dev.json b/packages/client-elasticache/tsconfig.dev.json deleted file mode 100644 index 278f027..0000000 --- a/packages/client-elasticache/tsconfig.dev.json +++ /dev/null @@ -1,37 +0,0 @@ -// ~~ Generated by projen. To modify, edit .projenrc.js and run "npx projen". -{ - "compilerOptions": { - "alwaysStrict": true, - "declaration": true, - "esModuleInterop": true, - "experimentalDecorators": true, - "inlineSourceMap": true, - "inlineSources": true, - "lib": [ - "es2019", - "dom" - ], - "module": "CommonJS", - "noEmitOnError": false, - "noFallthroughCasesInSwitch": true, - "noImplicitAny": true, - "noImplicitReturns": true, - "noImplicitThis": true, - "noUnusedLocals": true, - "noUnusedParameters": true, - "resolveJsonModule": true, - "strict": true, - "strictNullChecks": true, - "strictPropertyInitialization": true, - "stripInternal": true, - "target": "ES2019", - "moduleResolution": "node" - }, - "include": [ - "src/**/*.ts", - "test/**/*.ts" - ], - "exclude": [ - "node_modules" - ] -} diff --git a/packages/client-elasticache/tsconfig.esm.json b/packages/client-elasticache/tsconfig.esm.json deleted file mode 100644 index 1b04668..0000000 --- a/packages/client-elasticache/tsconfig.esm.json +++ /dev/null @@ -1,10 +0,0 @@ -{ - "extends": "./tsconfig.json", - "compilerOptions": { - "outDir": "./lib/esm", - "module": "es6", - "resolveJsonModule": false, - "declaration": false - }, - "//": "~~ Generated by projen. To modify, edit .projenrc.js and run \"npx projen\"." -} diff --git a/packages/client-elasticache/tsconfig.json b/packages/client-elasticache/tsconfig.json deleted file mode 100644 index 576047c..0000000 --- a/packages/client-elasticache/tsconfig.json +++ /dev/null @@ -1,36 +0,0 @@ -// ~~ Generated by projen. To modify, edit .projenrc.js and run "npx projen". -{ - "compilerOptions": { - "rootDir": "src", - "outDir": "lib", - "alwaysStrict": true, - "declaration": true, - "esModuleInterop": true, - "experimentalDecorators": true, - "inlineSourceMap": true, - "inlineSources": true, - "lib": [ - "es2019", - "dom" - ], - "module": "CommonJS", - "noEmitOnError": false, - "noFallthroughCasesInSwitch": true, - "noImplicitAny": true, - "noImplicitReturns": true, - "noImplicitThis": true, - "noUnusedLocals": true, - "noUnusedParameters": true, - "resolveJsonModule": true, - "strict": true, - "strictNullChecks": true, - "strictPropertyInitialization": true, - "stripInternal": true, - "target": "ES2019", - "moduleResolution": "node" - }, - "include": [ - "src/**/*.ts" - ], - "exclude": [] -} diff --git a/packages/client-eventbridge/.eslintrc.json b/packages/client-eventbridge/.eslintrc.json deleted file mode 100644 index c31c44d..0000000 --- a/packages/client-eventbridge/.eslintrc.json +++ /dev/null @@ -1,126 +0,0 @@ -// ~~ Generated by projen. To modify, edit .projenrc.js and run "npx projen". -{ - "env": { - "jest": true, - "node": true - }, - "root": true, - "plugins": [ - "@typescript-eslint", - "import" - ], - "parser": "@typescript-eslint/parser", - "parserOptions": { - "ecmaVersion": 2018, - "sourceType": "module", - "project": "./tsconfig.dev.json" - }, - "extends": [ - "plugin:import/typescript", - "plugin:prettier/recommended" - ], - "settings": { - "import/parsers": { - "@typescript-eslint/parser": [ - ".ts", - ".tsx" - ] - }, - "import/resolver": { - "node": {}, - "typescript": { - "project": "./tsconfig.dev.json", - "alwaysTryTypes": true - } - } - }, - "ignorePatterns": [ - "*.js", - "*.d.ts", - "node_modules/", - "*.generated.ts", - "coverage" - ], - "rules": { - "@typescript-eslint/no-require-imports": [ - "error" - ], - "import/no-extraneous-dependencies": [ - "error", - { - "devDependencies": [ - "**/test/**", - "**/build-tools/**" - ], - "optionalDependencies": false, - "peerDependencies": true - } - ], - "import/no-unresolved": [ - "error" - ], - "import/order": [ - "warn", - { - "groups": [ - "builtin", - "external" - ], - "alphabetize": { - "order": "asc", - "caseInsensitive": true - } - } - ], - "no-duplicate-imports": [ - "error" - ], - "no-shadow": [ - "off" - ], - "@typescript-eslint/no-shadow": [ - "error" - ], - "key-spacing": [ - "error" - ], - "no-multiple-empty-lines": [ - "error" - ], - "@typescript-eslint/no-floating-promises": [ - "error" - ], - "no-return-await": [ - "off" - ], - "@typescript-eslint/return-await": [ - "error" - ], - "no-trailing-spaces": [ - "error" - ], - "dot-notation": [ - "error" - ], - "no-bitwise": [ - "error" - ], - "@typescript-eslint/member-ordering": [ - "error", - { - "default": [ - "public-static-field", - "public-static-method", - "protected-static-field", - "protected-static-method", - "private-static-field", - "private-static-method", - "field", - "constructor", - "method" - ] - } - ] - }, - "overrides": [] -} diff --git a/packages/client-eventbridge/.gitattributes b/packages/client-eventbridge/.gitattributes deleted file mode 100644 index 1c2be5a..0000000 --- a/packages/client-eventbridge/.gitattributes +++ /dev/null @@ -1,21 +0,0 @@ -# ~~ Generated by projen. To modify, edit .projenrc.js and run "npx projen". - -/./tsconfig.esm.json linguist-generated -/.eslintrc.json linguist-generated -/.gitattributes linguist-generated -/.gitignore linguist-generated -/.npmignore linguist-generated -/.npmrc linguist-generated -/.prettierignore linguist-generated -/.prettierrc.json 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 -/project.json linguist-generated -/tsconfig.dev.json linguist-generated -/tsconfig.json linguist-generated \ No newline at end of file diff --git a/packages/client-eventbridge/.gitignore b/packages/client-eventbridge/.gitignore deleted file mode 100644 index e4fdd83..0000000 --- a/packages/client-eventbridge/.gitignore +++ /dev/null @@ -1,45 +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 -!/.prettierignore -!/.prettierrc.json -!/.npmrc -!/test/ -!/tsconfig.json -!/tsconfig.dev.json -!/src/ -/lib -/dist/ -!/.eslintrc.json -!/tsconfig.esm.json -!/project.json -!/docgen.json -docs/ diff --git a/packages/client-eventbridge/.npmignore b/packages/client-eventbridge/.npmignore deleted file mode 100644 index 277d62e..0000000 --- a/packages/client-eventbridge/.npmignore +++ /dev/null @@ -1,20 +0,0 @@ -# ~~ Generated by projen. To modify, edit .projenrc.js and run "npx projen". -/.projen/ -/.prettierignore -/.prettierrc.json -/test/ -/tsconfig.dev.json -/src/ -!/lib/ -!/lib/**/*.js -!/lib/**/*.d.ts -dist -/tsconfig.json -/.github/ -/.vscode/ -/.idea/ -/.projenrc.js -tsconfig.tsbuildinfo -/.eslintrc.json -/tsconfig.esm.json -/.gitattributes diff --git a/packages/client-eventbridge/.prettierignore b/packages/client-eventbridge/.prettierignore deleted file mode 100644 index 46704c7..0000000 --- a/packages/client-eventbridge/.prettierignore +++ /dev/null @@ -1 +0,0 @@ -# ~~ Generated by projen. To modify, edit .projenrc.js and run "npx projen". diff --git a/packages/client-eventbridge/.prettierrc.json b/packages/client-eventbridge/.prettierrc.json deleted file mode 100644 index 84c85a3..0000000 --- a/packages/client-eventbridge/.prettierrc.json +++ /dev/null @@ -1,3 +0,0 @@ -{ - "overrides": [] -} diff --git a/packages/client-eventbridge/.projen/deps.json b/packages/client-eventbridge/.projen/deps.json deleted file mode 100644 index f94e106..0000000 --- a/packages/client-eventbridge/.projen/deps.json +++ /dev/null @@ -1,82 +0,0 @@ -{ - "dependencies": [ - { - "name": "@types/node", - "version": "^18", - "type": "build" - }, - { - "name": "@typescript-eslint/eslint-plugin", - "version": "^6", - "type": "build" - }, - { - "name": "@typescript-eslint/parser", - "version": "^6", - "type": "build" - }, - { - "name": "aws-sdk-client-mock", - "type": "build" - }, - { - "name": "aws-sdk-client-mock-jest", - "type": "build" - }, - { - "name": "constructs", - "version": "^10.0.0", - "type": "build" - }, - { - "name": "eslint-config-prettier", - "type": "build" - }, - { - "name": "eslint-import-resolver-typescript", - "type": "build" - }, - { - "name": "eslint-plugin-import", - "type": "build" - }, - { - "name": "eslint-plugin-prettier", - "type": "build" - }, - { - "name": "eslint", - "version": "^8", - "type": "build" - }, - { - "name": "prettier", - "type": "build" - }, - { - "name": "projen", - "version": "^0.79.6", - "type": "build" - }, - { - "name": "typescript", - "type": "build" - }, - { - "name": "effect", - "version": ">=2.3.1 <2.5.0", - "type": "peer" - }, - { - "name": "@aws-sdk/client-eventbridge", - "version": "^3", - "type": "runtime" - }, - { - "name": "@aws-sdk/types", - "version": "^3", - "type": "runtime" - } - ], - "//": "~~ Generated by projen. To modify, edit .projenrc.js and run \"npx projen\"." -} diff --git a/packages/client-eventbridge/.projen/files.json b/packages/client-eventbridge/.projen/files.json deleted file mode 100644 index c38792b..0000000 --- a/packages/client-eventbridge/.projen/files.json +++ /dev/null @@ -1,20 +0,0 @@ -{ - "files": [ - ".eslintrc.json", - ".gitattributes", - ".gitignore", - ".npmignore", - ".prettierignore", - ".prettierrc.json", - ".projen/deps.json", - ".projen/files.json", - ".projen/tasks.json", - "docgen.json", - "LICENSE", - "project.json", - "tsconfig.dev.json", - "tsconfig.esm.json", - "tsconfig.json" - ], - "//": "~~ Generated by projen. To modify, edit .projenrc.js and run \"npx projen\"." -} diff --git a/packages/client-eventbridge/.projen/tasks.json b/packages/client-eventbridge/.projen/tasks.json deleted file mode 100644 index 6ecb00a..0000000 --- a/packages/client-eventbridge/.projen/tasks.json +++ /dev/null @@ -1,113 +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.json ./tsconfig.esm.json" - } - ] - }, - "default": { - "name": "default", - "description": "Synthesize project files" - }, - "eslint": { - "name": "eslint", - "description": "Runs eslint against the codebase", - "steps": [ - { - "exec": "eslint --ext .ts,.tsx --fix --no-error-on-unmatched-pattern $@ src test build-tools", - "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" - }, - "post-compile": { - "name": "post-compile", - "description": "Runs after successful compilation" - }, - "pre-compile": { - "name": "pre-compile", - "description": "Prepare the project for compilation" - }, - "test": { - "name": "test", - "description": "Run tests", - "steps": [ - { - "exec": "vitest run --globals --reporter verbose", - "receiveArgs": true - }, - { - "spawn": "eslint" - } - ] - }, - "test:watch": { - "name": "test:watch", - "description": "Run tests in watch mode", - "steps": [ - { - "exec": "vitest --globals --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/client-eventbridge/CHANGELOG.md b/packages/client-eventbridge/CHANGELOG.md deleted file mode 100644 index 33648e6..0000000 --- a/packages/client-eventbridge/CHANGELOG.md +++ /dev/null @@ -1,73 +0,0 @@ -# @effect-aws/client-eventbridge - -## 1.2.0 - -### Minor Changes - -- [`4b5ee14`](https://github.com/floydspace/effect-aws/commit/4b5ee144d4d2f30e7a841a3cf5ccd7ff87d32132) Thanks [@floydspace](https://github.com/floydspace)! - return proper errors in failure channel in eventbridge and lambda services - -## 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 - -- [`3e5d0b3`](https://github.com/floydspace/effect-aws/commit/3e5d0b3b3882e0aa6d07bc06432990551316ac30) Thanks [@floydspace](https://github.com/floydspace)! - Upgrade to effect v2 and release stable version - -## 0.4.0 - -### Minor Changes - -- [`744df3c`](https://github.com/floydspace/effect-aws/commit/744df3ca6406b3a35e3066d5fe11ca7082c4c454) Thanks [@floydspace](https://github.com/floydspace)! - upgrade effect dependency - -## 0.3.0 - -### Minor Changes - -- [`0a969d8`](https://github.com/floydspace/effect-aws/commit/0a969d8a74c3bf1b87ff6a1c8bf689af849797e1) Thanks [@floydspace](https://github.com/floydspace)! - upgrade effect peer version - -## 0.2.2 - -### Patch Changes - -- [`280d8bd`](https://github.com/floydspace/effect-aws/commit/280d8bd6686d6e7a2b73322a047e8eb22263b1e1) Thanks [@floydspace](https://github.com/floydspace)! - upgrade dependencies - -## 0.2.1 - -### Patch Changes - -- [`6b99904`](https://github.com/floydspace/effect-aws/commit/6b9990497bdb20f240d8261b6382db421e9a3ec2) Thanks [@floydspace](https://github.com/floydspace)! - as @mikearnaldi said: "we should really never do tacit passing" - -## 0.2.0 - -### Minor Changes - -- [#14](https://github.com/floydspace/effect-aws/pull/14) [`cddfb74`](https://github.com/floydspace/effect-aws/commit/cddfb74a00b10a13ccfe3749e90961119c4f0906) Thanks [@floydspace](https://github.com/floydspace)! - upgrade effect version to the next one - -## 0.1.0 - -### Minor Changes - -- [`243882e`](https://github.com/floydspace/effect-aws/commit/243882e1bf71fa2c019f52f9d974f8cf1c433912) Thanks [@floydspace](https://github.com/floydspace)! - implement effectful dynamodb, eventbridge and lambda clients diff --git a/packages/client-eventbridge/LICENSE b/packages/client-eventbridge/LICENSE deleted file mode 100644 index 7afce46..0000000 --- a/packages/client-eventbridge/LICENSE +++ /dev/null @@ -1,19 +0,0 @@ -Copyright (c) 2024 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/client-eventbridge/README.md b/packages/client-eventbridge/README.md deleted file mode 100644 index b3fa7dd..0000000 --- a/packages/client-eventbridge/README.md +++ /dev/null @@ -1 +0,0 @@ -# replace this \ No newline at end of file diff --git a/packages/client-eventbridge/docgen.json b/packages/client-eventbridge/docgen.json deleted file mode 100644 index b359fc7..0000000 --- a/packages/client-eventbridge/docgen.json +++ /dev/null @@ -1,8 +0,0 @@ -{ - "$schema": "../../node_modules/@effect/docgen/schema.json", - "exclude": [ - "src/index.ts", - "src/Errors.ts" - ], - "//": "~~ Generated by projen. To modify, edit .projenrc.js and run \"npx projen\"." -} diff --git a/packages/client-eventbridge/package.json b/packages/client-eventbridge/package.json deleted file mode 100644 index 7464148..0000000 --- a/packages/client-eventbridge/package.json +++ /dev/null @@ -1,56 +0,0 @@ -{ - "name": "@effect-aws/client-eventbridge", - "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": { - "@types/node": "^18", - "@typescript-eslint/eslint-plugin": "^6", - "@typescript-eslint/parser": "^6", - "aws-sdk-client-mock": "^3.0.0", - "aws-sdk-client-mock-jest": "^3.0.0", - "constructs": "^10.0.0", - "effect": "2.3.1", - "eslint": "^8", - "eslint-config-prettier": "^9.0.0", - "eslint-import-resolver-typescript": "^3.6.1", - "eslint-plugin-import": "^2.28.1", - "eslint-plugin-prettier": "^5.0.0", - "prettier": "^3.0.3", - "projen": "^0.79.6", - "typescript": "^5.2.2" - }, - "peerDependencies": { - "effect": ">=2.3.1 <2.5.0" - }, - "dependencies": { - "@aws-sdk/client-eventbridge": "^3", - "@aws-sdk/types": "^3" - }, - "main": "lib/index.js", - "license": "MIT", - "homepage": "https://floydspace.github.io/effect-aws", - "publishConfig": { - "access": "public" - }, - "version": "1.2.0", - "types": "lib/index.d.ts", - "module": "lib/esm/index.js", - "sideEffects": [], - "//": "~~ Generated by projen. To modify, edit .projenrc.js and run \"npx projen\"." -} diff --git a/packages/client-eventbridge/project.json b/packages/client-eventbridge/project.json deleted file mode 100644 index f69a3ee..0000000 --- a/packages/client-eventbridge/project.json +++ /dev/null @@ -1,77 +0,0 @@ -{ - "name": "@effect-aws/client-eventbridge", - "root": "packages/client-eventbridge", - "targets": { - "default": { - "executor": "nx:run-commands", - "options": { - "command": "pnpm exec projen default", - "cwd": "packages/client-eventbridge" - } - }, - "pre-compile": { - "executor": "nx:run-commands", - "options": { - "command": "pnpm exec projen pre-compile", - "cwd": "packages/client-eventbridge" - } - }, - "compile": { - "executor": "nx:run-commands", - "options": { - "command": "pnpm exec projen compile", - "cwd": "packages/client-eventbridge" - } - }, - "post-compile": { - "executor": "nx:run-commands", - "options": { - "command": "pnpm exec projen post-compile", - "cwd": "packages/client-eventbridge" - } - }, - "test": { - "executor": "nx:run-commands", - "options": { - "command": "pnpm exec projen test", - "cwd": "packages/client-eventbridge" - } - }, - "package": { - "executor": "nx:run-commands", - "options": { - "command": "pnpm exec projen package", - "cwd": "packages/client-eventbridge" - } - }, - "build": { - "executor": "nx:run-commands", - "options": { - "command": "pnpm exec projen build", - "cwd": "packages/client-eventbridge" - } - }, - "watch": { - "executor": "nx:run-commands", - "options": { - "command": "pnpm exec projen watch", - "cwd": "packages/client-eventbridge" - } - }, - "eslint": { - "executor": "nx:run-commands", - "options": { - "command": "pnpm exec projen eslint", - "cwd": "packages/client-eventbridge" - } - }, - "test:watch": { - "executor": "nx:run-commands", - "options": { - "command": "pnpm exec projen test:watch", - "cwd": "packages/client-eventbridge" - } - } - }, - "//": "~~ Generated by projen. To modify, edit .projenrc.js and run \"npx projen\"." -} diff --git a/packages/client-eventbridge/src/Errors.ts b/packages/client-eventbridge/src/Errors.ts deleted file mode 100644 index 7775813..0000000 --- a/packages/client-eventbridge/src/Errors.ts +++ /dev/null @@ -1,38 +0,0 @@ -import type { - ConcurrentModificationException, - IllegalStatusException, - InternalException, - InvalidEventPatternException, - InvalidStateException, - LimitExceededException, - ManagedRuleException, - OperationDisabledException, - PolicyLengthExceededException, - ResourceAlreadyExistsException, - ResourceNotFoundException, -} from "@aws-sdk/client-eventbridge"; -import * as Data from "effect/Data"; - -export type TaggedException = T & { - readonly _tag: T["name"]; -}; - -export type ConcurrentModificationError = - TaggedException; -export type IllegalStatusError = TaggedException; -export type InternalError = TaggedException; -export type InvalidEventPatternError = - TaggedException; -export type InvalidStateError = TaggedException; -export type LimitExceededError = TaggedException; -export type ManagedRuleError = TaggedException; -export type OperationDisabledError = - TaggedException; -export type PolicyLengthExceededError = - TaggedException; -export type ResourceAlreadyExistsError = - TaggedException; -export type ResourceNotFoundError = TaggedException; - -export type SdkError = TaggedException; -export const SdkError = Data.tagged("SdkError"); diff --git a/packages/client-eventbridge/src/EventBridgeClientInstance.ts b/packages/client-eventbridge/src/EventBridgeClientInstance.ts deleted file mode 100644 index 4bc1bec..0000000 --- a/packages/client-eventbridge/src/EventBridgeClientInstance.ts +++ /dev/null @@ -1,46 +0,0 @@ -/** - * @since 1.0.0 - */ -import { EventBridgeClient } from "@aws-sdk/client-eventbridge"; -import * as Context from "effect/Context"; -import * as Effect from "effect/Effect"; -import * as Layer from "effect/Layer"; -import { - DefaultEventBridgeClientConfigLayer, - EventBridgeClientInstanceConfig, -} from "./EventBridgeClientInstanceConfig"; - -/** - * @since 1.0.0 - * @category tags - */ -export class EventBridgeClientInstance extends Context.Tag( - "@effect-aws/client-eventbridge/EventBridgeClientInstance", -)() {} - -/** - * @since 1.0.0 - * @category constructors - */ -export const makeEventBridgeClientInstance = Effect.map( - EventBridgeClientInstanceConfig, - (config) => new EventBridgeClient(config), -); - -/** - * @since 1.0.0 - * @category layers - */ -export const EventBridgeClientInstanceLayer = Layer.effect( - EventBridgeClientInstance, - makeEventBridgeClientInstance, -); - -/** - * @since 1.0.0 - * @category layers - */ -export const DefaultEventBridgeClientInstanceLayer = - EventBridgeClientInstanceLayer.pipe( - Layer.provide(DefaultEventBridgeClientConfigLayer), - ); diff --git a/packages/client-eventbridge/src/EventBridgeClientInstanceConfig.ts b/packages/client-eventbridge/src/EventBridgeClientInstanceConfig.ts deleted file mode 100644 index a2c967f..0000000 --- a/packages/client-eventbridge/src/EventBridgeClientInstanceConfig.ts +++ /dev/null @@ -1,55 +0,0 @@ -/** - * @since 1.0.0 - */ -import type { EventBridgeClientConfig } from "@aws-sdk/client-eventbridge"; -import * as Context from "effect/Context"; -import * as Effect from "effect/Effect"; -import * as Layer from "effect/Layer"; -import * as Runtime from "effect/Runtime"; - -/** - * @since 1.0.0 - * @category tags - */ -export class EventBridgeClientInstanceConfig extends Context.Tag( - "@effect-aws/client-eventbridge/EventBridgeClientInstanceConfig", -)() {} - -/** - * @since 1.0.0 - * @category constructors - */ -export const makeDefaultEventBridgeClientInstanceConfig: Effect.Effect = - Effect.gen(function* (_) { - const runtime = yield* _(Effect.runtime()); - const runSync = Runtime.runSync(runtime); - - return { - logger: { - info(m) { - Effect.logInfo(m).pipe(runSync); - }, - warn(m) { - Effect.logWarning(m).pipe(runSync); - }, - error(m) { - Effect.logError(m).pipe(runSync); - }, - debug(m) { - Effect.logDebug(m).pipe(runSync); - }, - trace(m) { - Effect.logTrace(m).pipe(runSync); - }, - }, - }; - }); - -/** - * @since 1.0.0 - * @category layers - */ -export const DefaultEventBridgeClientConfigLayer = Layer.effect( - EventBridgeClientInstanceConfig, - makeDefaultEventBridgeClientInstanceConfig, -); diff --git a/packages/client-eventbridge/src/EventBridgeService.ts b/packages/client-eventbridge/src/EventBridgeService.ts deleted file mode 100644 index f09f03f..0000000 --- a/packages/client-eventbridge/src/EventBridgeService.ts +++ /dev/null @@ -1,1085 +0,0 @@ -/** - * @since 1.0.0 - */ -import { - EventBridgeServiceException, - ActivateEventSourceCommand, - type ActivateEventSourceCommandInput, - type ActivateEventSourceCommandOutput, - CancelReplayCommand, - type CancelReplayCommandInput, - type CancelReplayCommandOutput, - CreateApiDestinationCommand, - type CreateApiDestinationCommandInput, - type CreateApiDestinationCommandOutput, - CreateArchiveCommand, - type CreateArchiveCommandInput, - type CreateArchiveCommandOutput, - CreateConnectionCommand, - type CreateConnectionCommandInput, - type CreateConnectionCommandOutput, - CreateEndpointCommand, - type CreateEndpointCommandInput, - type CreateEndpointCommandOutput, - CreateEventBusCommand, - type CreateEventBusCommandInput, - type CreateEventBusCommandOutput, - CreatePartnerEventSourceCommand, - type CreatePartnerEventSourceCommandInput, - type CreatePartnerEventSourceCommandOutput, - DeactivateEventSourceCommand, - type DeactivateEventSourceCommandInput, - type DeactivateEventSourceCommandOutput, - DeauthorizeConnectionCommand, - type DeauthorizeConnectionCommandInput, - type DeauthorizeConnectionCommandOutput, - DeleteApiDestinationCommand, - type DeleteApiDestinationCommandInput, - type DeleteApiDestinationCommandOutput, - DeleteArchiveCommand, - type DeleteArchiveCommandInput, - type DeleteArchiveCommandOutput, - DeleteConnectionCommand, - type DeleteConnectionCommandInput, - type DeleteConnectionCommandOutput, - DeleteEndpointCommand, - type DeleteEndpointCommandInput, - type DeleteEndpointCommandOutput, - DeleteEventBusCommand, - type DeleteEventBusCommandInput, - type DeleteEventBusCommandOutput, - DeletePartnerEventSourceCommand, - type DeletePartnerEventSourceCommandInput, - type DeletePartnerEventSourceCommandOutput, - DeleteRuleCommand, - type DeleteRuleCommandInput, - type DeleteRuleCommandOutput, - DescribeApiDestinationCommand, - type DescribeApiDestinationCommandInput, - type DescribeApiDestinationCommandOutput, - DescribeArchiveCommand, - type DescribeArchiveCommandInput, - type DescribeArchiveCommandOutput, - DescribeConnectionCommand, - type DescribeConnectionCommandInput, - type DescribeConnectionCommandOutput, - DescribeEndpointCommand, - type DescribeEndpointCommandInput, - type DescribeEndpointCommandOutput, - DescribeEventBusCommand, - type DescribeEventBusCommandInput, - type DescribeEventBusCommandOutput, - DescribeEventSourceCommand, - type DescribeEventSourceCommandInput, - type DescribeEventSourceCommandOutput, - DescribePartnerEventSourceCommand, - type DescribePartnerEventSourceCommandInput, - type DescribePartnerEventSourceCommandOutput, - DescribeReplayCommand, - type DescribeReplayCommandInput, - type DescribeReplayCommandOutput, - DescribeRuleCommand, - type DescribeRuleCommandInput, - type DescribeRuleCommandOutput, - DisableRuleCommand, - type DisableRuleCommandInput, - type DisableRuleCommandOutput, - EnableRuleCommand, - type EnableRuleCommandInput, - type EnableRuleCommandOutput, - ListApiDestinationsCommand, - type ListApiDestinationsCommandInput, - type ListApiDestinationsCommandOutput, - ListArchivesCommand, - type ListArchivesCommandInput, - type ListArchivesCommandOutput, - ListConnectionsCommand, - type ListConnectionsCommandInput, - type ListConnectionsCommandOutput, - ListEndpointsCommand, - type ListEndpointsCommandInput, - type ListEndpointsCommandOutput, - ListEventBusesCommand, - type ListEventBusesCommandInput, - type ListEventBusesCommandOutput, - ListEventSourcesCommand, - type ListEventSourcesCommandInput, - type ListEventSourcesCommandOutput, - ListPartnerEventSourceAccountsCommand, - type ListPartnerEventSourceAccountsCommandInput, - type ListPartnerEventSourceAccountsCommandOutput, - ListPartnerEventSourcesCommand, - type ListPartnerEventSourcesCommandInput, - type ListPartnerEventSourcesCommandOutput, - ListReplaysCommand, - type ListReplaysCommandInput, - type ListReplaysCommandOutput, - ListRuleNamesByTargetCommand, - type ListRuleNamesByTargetCommandInput, - type ListRuleNamesByTargetCommandOutput, - ListRulesCommand, - type ListRulesCommandInput, - type ListRulesCommandOutput, - ListTagsForResourceCommand, - type ListTagsForResourceCommandInput, - type ListTagsForResourceCommandOutput, - ListTargetsByRuleCommand, - type ListTargetsByRuleCommandInput, - type ListTargetsByRuleCommandOutput, - PutEventsCommand, - type PutEventsCommandInput, - type PutEventsCommandOutput, - PutPartnerEventsCommand, - type PutPartnerEventsCommandInput, - type PutPartnerEventsCommandOutput, - PutPermissionCommand, - type PutPermissionCommandInput, - type PutPermissionCommandOutput, - PutRuleCommand, - type PutRuleCommandInput, - type PutRuleCommandOutput, - PutTargetsCommand, - type PutTargetsCommandInput, - type PutTargetsCommandOutput, - RemovePermissionCommand, - type RemovePermissionCommandInput, - type RemovePermissionCommandOutput, - RemoveTargetsCommand, - type RemoveTargetsCommandInput, - type RemoveTargetsCommandOutput, - StartReplayCommand, - type StartReplayCommandInput, - type StartReplayCommandOutput, - TagResourceCommand, - type TagResourceCommandInput, - type TagResourceCommandOutput, - TestEventPatternCommand, - type TestEventPatternCommandInput, - type TestEventPatternCommandOutput, - UntagResourceCommand, - type UntagResourceCommandInput, - type UntagResourceCommandOutput, - UpdateApiDestinationCommand, - type UpdateApiDestinationCommandInput, - type UpdateApiDestinationCommandOutput, - UpdateArchiveCommand, - type UpdateArchiveCommandInput, - type UpdateArchiveCommandOutput, - UpdateConnectionCommand, - type UpdateConnectionCommandInput, - type UpdateConnectionCommandOutput, - UpdateEndpointCommand, - type UpdateEndpointCommandInput, - type UpdateEndpointCommandOutput, -} from "@aws-sdk/client-eventbridge"; -import { type HttpHandlerOptions as __HttpHandlerOptions } from "@aws-sdk/types"; -import { Context, Data, Effect, Layer, ReadonlyRecord } from "effect"; -import { - ConcurrentModificationError, - IllegalStatusError, - InternalError, - InvalidEventPatternError, - InvalidStateError, - LimitExceededError, - ManagedRuleError, - OperationDisabledError, - PolicyLengthExceededError, - ResourceAlreadyExistsError, - ResourceNotFoundError, - SdkError, - TaggedException, -} from "./Errors"; -import { - DefaultEventBridgeClientInstanceLayer, - EventBridgeClientInstance, - EventBridgeClientInstanceLayer, -} from "./EventBridgeClientInstance"; -import { DefaultEventBridgeClientConfigLayer } from "./EventBridgeClientInstanceConfig"; - -const commands = { - ActivateEventSourceCommand, - CancelReplayCommand, - CreateApiDestinationCommand, - CreateArchiveCommand, - CreateConnectionCommand, - CreateEndpointCommand, - CreateEventBusCommand, - CreatePartnerEventSourceCommand, - DeactivateEventSourceCommand, - DeauthorizeConnectionCommand, - DeleteApiDestinationCommand, - DeleteArchiveCommand, - DeleteConnectionCommand, - DeleteEndpointCommand, - DeleteEventBusCommand, - DeletePartnerEventSourceCommand, - DeleteRuleCommand, - DescribeApiDestinationCommand, - DescribeArchiveCommand, - DescribeConnectionCommand, - DescribeEndpointCommand, - DescribeEventBusCommand, - DescribeEventSourceCommand, - DescribePartnerEventSourceCommand, - DescribeReplayCommand, - DescribeRuleCommand, - DisableRuleCommand, - EnableRuleCommand, - ListApiDestinationsCommand, - ListArchivesCommand, - ListConnectionsCommand, - ListEndpointsCommand, - ListEventBusesCommand, - ListEventSourcesCommand, - ListPartnerEventSourceAccountsCommand, - ListPartnerEventSourcesCommand, - ListReplaysCommand, - ListRuleNamesByTargetCommand, - ListRulesCommand, - ListTagsForResourceCommand, - ListTargetsByRuleCommand, - PutEventsCommand, - PutPartnerEventsCommand, - PutPermissionCommand, - PutRuleCommand, - PutTargetsCommand, - RemovePermissionCommand, - RemoveTargetsCommand, - StartReplayCommand, - TagResourceCommand, - TestEventPatternCommand, - UntagResourceCommand, - UpdateApiDestinationCommand, - UpdateArchiveCommand, - UpdateConnectionCommand, - UpdateEndpointCommand, -}; - -/** - * @since 1.0.0 - * @category models - */ -export interface EventBridgeService { - readonly _: unique symbol; - - /** - * @see {@link ActivateEventSourceCommand} - */ - activateEventSource( - args: ActivateEventSourceCommandInput, - options?: __HttpHandlerOptions, - ): Effect.Effect< - ActivateEventSourceCommandOutput, - | SdkError - | ConcurrentModificationError - | InternalError - | InvalidStateError - | OperationDisabledError - | ResourceNotFoundError - >; - - /** - * @see {@link CancelReplayCommand} - */ - cancelReplay( - args: CancelReplayCommandInput, - options?: __HttpHandlerOptions, - ): Effect.Effect< - CancelReplayCommandOutput, - | SdkError - | ConcurrentModificationError - | IllegalStatusError - | InternalError - | ResourceNotFoundError - >; - - /** - * @see {@link CreateApiDestinationCommand} - */ - createApiDestination( - args: CreateApiDestinationCommandInput, - options?: __HttpHandlerOptions, - ): Effect.Effect< - CreateApiDestinationCommandOutput, - | SdkError - | InternalError - | LimitExceededError - | ResourceAlreadyExistsError - | ResourceNotFoundError - >; - - /** - * @see {@link CreateArchiveCommand} - */ - createArchive( - args: CreateArchiveCommandInput, - options?: __HttpHandlerOptions, - ): Effect.Effect< - CreateArchiveCommandOutput, - | SdkError - | ConcurrentModificationError - | InternalError - | InvalidEventPatternError - | LimitExceededError - | ResourceAlreadyExistsError - | ResourceNotFoundError - >; - - /** - * @see {@link CreateConnectionCommand} - */ - createConnection( - args: CreateConnectionCommandInput, - options?: __HttpHandlerOptions, - ): Effect.Effect< - CreateConnectionCommandOutput, - SdkError | InternalError | LimitExceededError | ResourceAlreadyExistsError - >; - - /** - * @see {@link CreateEndpointCommand} - */ - createEndpoint( - args: CreateEndpointCommandInput, - options?: __HttpHandlerOptions, - ): Effect.Effect< - CreateEndpointCommandOutput, - SdkError | InternalError | LimitExceededError | ResourceAlreadyExistsError - >; - - /** - * @see {@link CreateEventBusCommand} - */ - createEventBus( - args: CreateEventBusCommandInput, - options?: __HttpHandlerOptions, - ): Effect.Effect< - CreateEventBusCommandOutput, - | SdkError - | ConcurrentModificationError - | InternalError - | InvalidStateError - | LimitExceededError - | OperationDisabledError - | ResourceAlreadyExistsError - | ResourceNotFoundError - >; - - /** - * @see {@link CreatePartnerEventSourceCommand} - */ - createPartnerEventSource( - args: CreatePartnerEventSourceCommandInput, - options?: __HttpHandlerOptions, - ): Effect.Effect< - CreatePartnerEventSourceCommandOutput, - | SdkError - | ConcurrentModificationError - | InternalError - | LimitExceededError - | OperationDisabledError - | ResourceAlreadyExistsError - >; - - /** - * @see {@link DeactivateEventSourceCommand} - */ - deactivateEventSource( - args: DeactivateEventSourceCommandInput, - options?: __HttpHandlerOptions, - ): Effect.Effect< - DeactivateEventSourceCommandOutput, - | SdkError - | ConcurrentModificationError - | InternalError - | InvalidStateError - | OperationDisabledError - | ResourceNotFoundError - >; - - /** - * @see {@link DeauthorizeConnectionCommand} - */ - deauthorizeConnection( - args: DeauthorizeConnectionCommandInput, - options?: __HttpHandlerOptions, - ): Effect.Effect< - DeauthorizeConnectionCommandOutput, - | SdkError - | ConcurrentModificationError - | InternalError - | ResourceNotFoundError - >; - - /** - * @see {@link DeleteApiDestinationCommand} - */ - deleteApiDestination( - args: DeleteApiDestinationCommandInput, - options?: __HttpHandlerOptions, - ): Effect.Effect< - DeleteApiDestinationCommandOutput, - | SdkError - | ConcurrentModificationError - | InternalError - | ResourceNotFoundError - >; - - /** - * @see {@link DeleteArchiveCommand} - */ - deleteArchive( - args: DeleteArchiveCommandInput, - options?: __HttpHandlerOptions, - ): Effect.Effect< - DeleteArchiveCommandOutput, - | SdkError - | ConcurrentModificationError - | InternalError - | ResourceNotFoundError - >; - - /** - * @see {@link DeleteConnectionCommand} - */ - deleteConnection( - args: DeleteConnectionCommandInput, - options?: __HttpHandlerOptions, - ): Effect.Effect< - DeleteConnectionCommandOutput, - | SdkError - | ConcurrentModificationError - | InternalError - | ResourceNotFoundError - >; - - /** - * @see {@link DeleteEndpointCommand} - */ - deleteEndpoint( - args: DeleteEndpointCommandInput, - options?: __HttpHandlerOptions, - ): Effect.Effect< - DeleteEndpointCommandOutput, - | SdkError - | ConcurrentModificationError - | InternalError - | ResourceNotFoundError - >; - - /** - * @see {@link DeleteEventBusCommand} - */ - deleteEventBus( - args: DeleteEventBusCommandInput, - options?: __HttpHandlerOptions, - ): Effect.Effect< - DeleteEventBusCommandOutput, - SdkError | ConcurrentModificationError | InternalError - >; - - /** - * @see {@link DeletePartnerEventSourceCommand} - */ - deletePartnerEventSource( - args: DeletePartnerEventSourceCommandInput, - options?: __HttpHandlerOptions, - ): Effect.Effect< - DeletePartnerEventSourceCommandOutput, - | SdkError - | ConcurrentModificationError - | InternalError - | OperationDisabledError - >; - - /** - * @see {@link DeleteRuleCommand} - */ - deleteRule( - args: DeleteRuleCommandInput, - options?: __HttpHandlerOptions, - ): Effect.Effect< - DeleteRuleCommandOutput, - | SdkError - | ConcurrentModificationError - | InternalError - | ManagedRuleError - | ResourceNotFoundError - >; - - /** - * @see {@link DescribeApiDestinationCommand} - */ - describeApiDestination( - args: DescribeApiDestinationCommandInput, - options?: __HttpHandlerOptions, - ): Effect.Effect< - DescribeApiDestinationCommandOutput, - SdkError | InternalError | ResourceNotFoundError - >; - - /** - * @see {@link DescribeArchiveCommand} - */ - describeArchive( - args: DescribeArchiveCommandInput, - options?: __HttpHandlerOptions, - ): Effect.Effect< - DescribeArchiveCommandOutput, - | SdkError - | InternalError - | ResourceAlreadyExistsError - | ResourceNotFoundError - >; - - /** - * @see {@link DescribeConnectionCommand} - */ - describeConnection( - args: DescribeConnectionCommandInput, - options?: __HttpHandlerOptions, - ): Effect.Effect< - DescribeConnectionCommandOutput, - SdkError | InternalError | ResourceNotFoundError - >; - - /** - * @see {@link DescribeEndpointCommand} - */ - describeEndpoint( - args: DescribeEndpointCommandInput, - options?: __HttpHandlerOptions, - ): Effect.Effect< - DescribeEndpointCommandOutput, - SdkError | InternalError | ResourceNotFoundError - >; - - /** - * @see {@link DescribeEventBusCommand} - */ - describeEventBus( - args: DescribeEventBusCommandInput, - options?: __HttpHandlerOptions, - ): Effect.Effect< - DescribeEventBusCommandOutput, - SdkError | InternalError | ResourceNotFoundError - >; - - /** - * @see {@link DescribeEventSourceCommand} - */ - describeEventSource( - args: DescribeEventSourceCommandInput, - options?: __HttpHandlerOptions, - ): Effect.Effect< - DescribeEventSourceCommandOutput, - SdkError | InternalError | OperationDisabledError | ResourceNotFoundError - >; - - /** - * @see {@link DescribePartnerEventSourceCommand} - */ - describePartnerEventSource( - args: DescribePartnerEventSourceCommandInput, - options?: __HttpHandlerOptions, - ): Effect.Effect< - DescribePartnerEventSourceCommandOutput, - SdkError | InternalError | OperationDisabledError | ResourceNotFoundError - >; - - /** - * @see {@link DescribeReplayCommand} - */ - describeReplay( - args: DescribeReplayCommandInput, - options?: __HttpHandlerOptions, - ): Effect.Effect< - DescribeReplayCommandOutput, - SdkError | InternalError | ResourceNotFoundError - >; - - /** - * @see {@link DescribeRuleCommand} - */ - describeRule( - args: DescribeRuleCommandInput, - options?: __HttpHandlerOptions, - ): Effect.Effect< - DescribeRuleCommandOutput, - SdkError | InternalError | ResourceNotFoundError - >; - - /** - * @see {@link DisableRuleCommand} - */ - disableRule( - args: DisableRuleCommandInput, - options?: __HttpHandlerOptions, - ): Effect.Effect< - DisableRuleCommandOutput, - | SdkError - | ConcurrentModificationError - | InternalError - | ManagedRuleError - | ResourceNotFoundError - >; - - /** - * @see {@link EnableRuleCommand} - */ - enableRule( - args: EnableRuleCommandInput, - options?: __HttpHandlerOptions, - ): Effect.Effect< - EnableRuleCommandOutput, - | SdkError - | ConcurrentModificationError - | InternalError - | ManagedRuleError - | ResourceNotFoundError - >; - - /** - * @see {@link ListApiDestinationsCommand} - */ - listApiDestinations( - args: ListApiDestinationsCommandInput, - options?: __HttpHandlerOptions, - ): Effect.Effect; - - /** - * @see {@link ListArchivesCommand} - */ - listArchives( - args: ListArchivesCommandInput, - options?: __HttpHandlerOptions, - ): Effect.Effect< - ListArchivesCommandOutput, - SdkError | InternalError | ResourceNotFoundError - >; - - /** - * @see {@link ListConnectionsCommand} - */ - listConnections( - args: ListConnectionsCommandInput, - options?: __HttpHandlerOptions, - ): Effect.Effect; - - /** - * @see {@link ListEndpointsCommand} - */ - listEndpoints( - args: ListEndpointsCommandInput, - options?: __HttpHandlerOptions, - ): Effect.Effect; - - /** - * @see {@link ListEventBusesCommand} - */ - listEventBuses( - args: ListEventBusesCommandInput, - options?: __HttpHandlerOptions, - ): Effect.Effect; - - /** - * @see {@link ListEventSourcesCommand} - */ - listEventSources( - args: ListEventSourcesCommandInput, - options?: __HttpHandlerOptions, - ): Effect.Effect< - ListEventSourcesCommandOutput, - SdkError | InternalError | OperationDisabledError - >; - - /** - * @see {@link ListPartnerEventSourceAccountsCommand} - */ - listPartnerEventSourceAccounts( - args: ListPartnerEventSourceAccountsCommandInput, - options?: __HttpHandlerOptions, - ): Effect.Effect< - ListPartnerEventSourceAccountsCommandOutput, - SdkError | InternalError | OperationDisabledError | ResourceNotFoundError - >; - - /** - * @see {@link ListPartnerEventSourcesCommand} - */ - listPartnerEventSources( - args: ListPartnerEventSourcesCommandInput, - options?: __HttpHandlerOptions, - ): Effect.Effect< - ListPartnerEventSourcesCommandOutput, - SdkError | InternalError | OperationDisabledError - >; - - /** - * @see {@link ListReplaysCommand} - */ - listReplays( - args: ListReplaysCommandInput, - options?: __HttpHandlerOptions, - ): Effect.Effect; - - /** - * @see {@link ListRuleNamesByTargetCommand} - */ - listRuleNamesByTarget( - args: ListRuleNamesByTargetCommandInput, - options?: __HttpHandlerOptions, - ): Effect.Effect< - ListRuleNamesByTargetCommandOutput, - SdkError | InternalError | ResourceNotFoundError - >; - - /** - * @see {@link ListRulesCommand} - */ - listRules( - args: ListRulesCommandInput, - options?: __HttpHandlerOptions, - ): Effect.Effect< - ListRulesCommandOutput, - SdkError | InternalError | ResourceNotFoundError - >; - - /** - * @see {@link ListTagsForResourceCommand} - */ - listTagsForResource( - args: ListTagsForResourceCommandInput, - options?: __HttpHandlerOptions, - ): Effect.Effect< - ListTagsForResourceCommandOutput, - SdkError | InternalError | ResourceNotFoundError - >; - - /** - * @see {@link ListTargetsByRuleCommand} - */ - listTargetsByRule( - args: ListTargetsByRuleCommandInput, - options?: __HttpHandlerOptions, - ): Effect.Effect< - ListTargetsByRuleCommandOutput, - SdkError | InternalError | ResourceNotFoundError - >; - - /** - * @see {@link PutEventsCommand} - */ - putEvents( - args: PutEventsCommandInput, - options?: __HttpHandlerOptions, - ): Effect.Effect; - - /** - * @see {@link PutPartnerEventsCommand} - */ - putPartnerEvents( - args: PutPartnerEventsCommandInput, - options?: __HttpHandlerOptions, - ): Effect.Effect< - PutPartnerEventsCommandOutput, - SdkError | InternalError | OperationDisabledError - >; - - /** - * @see {@link PutPermissionCommand} - */ - putPermission( - args: PutPermissionCommandInput, - options?: __HttpHandlerOptions, - ): Effect.Effect< - PutPermissionCommandOutput, - | SdkError - | ConcurrentModificationError - | InternalError - | OperationDisabledError - | PolicyLengthExceededError - | ResourceNotFoundError - >; - - /** - * @see {@link PutRuleCommand} - */ - putRule( - args: PutRuleCommandInput, - options?: __HttpHandlerOptions, - ): Effect.Effect< - PutRuleCommandOutput, - | SdkError - | ConcurrentModificationError - | InternalError - | InvalidEventPatternError - | LimitExceededError - | ManagedRuleError - | ResourceNotFoundError - >; - - /** - * @see {@link PutTargetsCommand} - */ - putTargets( - args: PutTargetsCommandInput, - options?: __HttpHandlerOptions, - ): Effect.Effect< - PutTargetsCommandOutput, - | SdkError - | ConcurrentModificationError - | InternalError - | LimitExceededError - | ManagedRuleError - | ResourceNotFoundError - >; - - /** - * @see {@link RemovePermissionCommand} - */ - removePermission( - args: RemovePermissionCommandInput, - options?: __HttpHandlerOptions, - ): Effect.Effect< - RemovePermissionCommandOutput, - | SdkError - | ConcurrentModificationError - | InternalError - | OperationDisabledError - | ResourceNotFoundError - >; - - /** - * @see {@link RemoveTargetsCommand} - */ - removeTargets( - args: RemoveTargetsCommandInput, - options?: __HttpHandlerOptions, - ): Effect.Effect< - RemoveTargetsCommandOutput, - | SdkError - | ConcurrentModificationError - | InternalError - | ManagedRuleError - | ResourceNotFoundError - >; - - /** - * @see {@link StartReplayCommand} - */ - startReplay( - args: StartReplayCommandInput, - options?: __HttpHandlerOptions, - ): Effect.Effect< - StartReplayCommandOutput, - | SdkError - | InternalError - | InvalidEventPatternError - | LimitExceededError - | ResourceAlreadyExistsError - | ResourceNotFoundError - >; - - /** - * @see {@link TagResourceCommand} - */ - tagResource( - args: TagResourceCommandInput, - options?: __HttpHandlerOptions, - ): Effect.Effect< - TagResourceCommandOutput, - | SdkError - | ConcurrentModificationError - | InternalError - | ManagedRuleError - | ResourceNotFoundError - >; - - /** - * @see {@link TestEventPatternCommand} - */ - testEventPattern( - args: TestEventPatternCommandInput, - options?: __HttpHandlerOptions, - ): Effect.Effect< - TestEventPatternCommandOutput, - SdkError | InternalError | InvalidEventPatternError - >; - - /** - * @see {@link UntagResourceCommand} - */ - untagResource( - args: UntagResourceCommandInput, - options?: __HttpHandlerOptions, - ): Effect.Effect< - UntagResourceCommandOutput, - | SdkError - | ConcurrentModificationError - | InternalError - | ManagedRuleError - | ResourceNotFoundError - >; - - /** - * @see {@link UpdateApiDestinationCommand} - */ - updateApiDestination( - args: UpdateApiDestinationCommandInput, - options?: __HttpHandlerOptions, - ): Effect.Effect< - UpdateApiDestinationCommandOutput, - | SdkError - | ConcurrentModificationError - | InternalError - | LimitExceededError - | ResourceNotFoundError - >; - - /** - * @see {@link UpdateArchiveCommand} - */ - updateArchive( - args: UpdateArchiveCommandInput, - options?: __HttpHandlerOptions, - ): Effect.Effect< - UpdateArchiveCommandOutput, - | SdkError - | ConcurrentModificationError - | InternalError - | InvalidEventPatternError - | LimitExceededError - | ResourceNotFoundError - >; - - /** - * @see {@link UpdateConnectionCommand} - */ - updateConnection( - args: UpdateConnectionCommandInput, - options?: __HttpHandlerOptions, - ): Effect.Effect< - UpdateConnectionCommandOutput, - | SdkError - | ConcurrentModificationError - | InternalError - | LimitExceededError - | ResourceNotFoundError - >; - - /** - * @see {@link UpdateEndpointCommand} - */ - updateEndpoint( - args: UpdateEndpointCommandInput, - options?: __HttpHandlerOptions, - ): Effect.Effect< - UpdateEndpointCommandOutput, - | SdkError - | ConcurrentModificationError - | InternalError - | ResourceNotFoundError - >; -} - -/** - * @since 1.0.0 - * @category tags - */ -export const EventBridgeService = Context.GenericTag( - "@effect-aws/client-eventbridge/EventBridgeService", -); - -/** - * @since 1.0.0 - * @category constructors - */ -export const makeEventBridgeService = Effect.gen(function* (_) { - const client = yield* _(EventBridgeClientInstance); - - return ReadonlyRecord.toEntries(commands).reduce((acc, [command]) => { - const CommandCtor = commands[command] as any; - const methodImpl = (args: any, options: any) => - Effect.tryPromise({ - try: () => client.send(new CommandCtor(args), options ?? {}), - catch: (e) => { - if (e instanceof EventBridgeServiceException) { - const ServiceException = Data.tagged< - TaggedException - >(e.name); - - return ServiceException({ - ...e, - message: e.message, - stack: e.stack, - }); - } - if (e instanceof Error) { - return SdkError({ - ...e, - name: "SdkError", - message: e.message, - stack: e.stack, - }); - } - throw e; - }, - }); - const methodName = (command[0].toLowerCase() + command.slice(1)).replace( - /Command$/, - "", - ); - return { ...acc, [methodName]: methodImpl }; - }, {}) as EventBridgeService; -}); - -/** - * @since 1.0.0 - * @category layers - */ -export const BaseEventBridgeServiceLayer = Layer.effect( - EventBridgeService, - makeEventBridgeService, -); - -/** - * @since 1.0.0 - * @category layers - */ -export const EventBridgeServiceLayer = BaseEventBridgeServiceLayer.pipe( - Layer.provide(EventBridgeClientInstanceLayer), -); - -/** - * @since 1.0.0 - * @category layers - */ -export const DefaultEventBridgeServiceLayer = EventBridgeServiceLayer.pipe( - Layer.provide(DefaultEventBridgeClientConfigLayer), -); - -// -------------------- Danger Zone -------------------- - -/** - * @since 0.1.0 - * @deprecated - */ -export const BaseEventBridgeServiceEffect = makeEventBridgeService; - -/** - * @since 0.1.0 - * @deprecated - */ -export const EventBridgeServiceEffect = BaseEventBridgeServiceEffect.pipe( - Effect.provide(EventBridgeClientInstanceLayer), -); - -/** - * @since 0.1.0 - * @deprecated - */ -export const DefaultEventBridgeServiceEffect = - BaseEventBridgeServiceEffect.pipe( - Effect.provide(DefaultEventBridgeClientInstanceLayer), - ); diff --git a/packages/client-eventbridge/src/index.ts b/packages/client-eventbridge/src/index.ts deleted file mode 100644 index 7355e29..0000000 --- a/packages/client-eventbridge/src/index.ts +++ /dev/null @@ -1,4 +0,0 @@ -export * from "./Errors"; -export * from "./EventBridgeClientInstance"; -export * from "./EventBridgeClientInstanceConfig"; -export * from "./EventBridgeService"; diff --git a/packages/client-eventbridge/test/EventBridge.test.ts b/packages/client-eventbridge/test/EventBridge.test.ts deleted file mode 100644 index b83a16a..0000000 --- a/packages/client-eventbridge/test/EventBridge.test.ts +++ /dev/null @@ -1,166 +0,0 @@ -import { - type PutEventsCommandInput, - PutEventsCommand, - EventBridgeClient, -} from "@aws-sdk/client-eventbridge"; -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 * as Layer from "effect/Layer"; -import { - BaseEventBridgeServiceLayer, - DefaultEventBridgeClientConfigLayer, - DefaultEventBridgeServiceLayer, - EventBridgeClientInstance, - EventBridgeClientInstanceConfig, - EventBridgeService, - EventBridgeServiceLayer, - SdkError, -} from "../src"; - -import "aws-sdk-client-mock-jest"; - -const clientMock = mockClient(EventBridgeClient); - -describe("EventBridgeClientImpl", () => { - it("default", async () => { - clientMock.reset().on(PutEventsCommand).resolves({}); - - const args: PutEventsCommandInput = { Entries: [{ Detail: "test" }] }; - - const program = Effect.flatMap(EventBridgeService, (service) => - service.putEvents(args), - ); - - const result = await pipe( - program, - Effect.provide(DefaultEventBridgeServiceLayer), - Effect.runPromiseExit, - ); - - expect(result).toEqual(Exit.succeed({})); - expect(clientMock).toHaveReceivedCommandTimes(PutEventsCommand, 1); - expect(clientMock).toHaveReceivedCommandWith(PutEventsCommand, args); - }); - - it("configurable", async () => { - clientMock.reset().on(PutEventsCommand).resolves({}); - - const args: PutEventsCommandInput = { Entries: [{ Detail: "test" }] }; - - const program = Effect.flatMap(EventBridgeService, (service) => - service.putEvents(args), - ); - - const EventBridgeClientConfigLayer = Layer.succeed( - EventBridgeClientInstanceConfig, - { - region: "eu-central-1", - }, - ); - const CustomEventBridgeServiceLayer = EventBridgeServiceLayer.pipe( - Layer.provide(EventBridgeClientConfigLayer), - ); - - const result = await pipe( - program, - Effect.provide(CustomEventBridgeServiceLayer), - Effect.runPromiseExit, - ); - - expect(result).toEqual(Exit.succeed({})); - expect(clientMock).toHaveReceivedCommandTimes(PutEventsCommand, 1); - expect(clientMock).toHaveReceivedCommandWith(PutEventsCommand, args); - }); - - it("base", async () => { - clientMock.reset().on(PutEventsCommand).resolves({}); - - const args: PutEventsCommandInput = { Entries: [{ Detail: "test" }] }; - - const program = Effect.flatMap(EventBridgeService, (service) => - service.putEvents(args), - ); - - const EventBridgeClientInstanceLayer = Layer.succeed( - EventBridgeClientInstance, - new EventBridgeClient({ region: "eu-central-1" }), - ); - const CustomEventBridgeServiceLayer = BaseEventBridgeServiceLayer.pipe( - Layer.provide(EventBridgeClientInstanceLayer), - ); - - const result = await pipe( - program, - Effect.provide(CustomEventBridgeServiceLayer), - Effect.runPromiseExit, - ); - - expect(result).toEqual(Exit.succeed({})); - expect(clientMock).toHaveReceivedCommandTimes(PutEventsCommand, 1); - expect(clientMock).toHaveReceivedCommandWith(PutEventsCommand, args); - }); - - it("extended", async () => { - clientMock.reset().on(PutEventsCommand).resolves({}); - - const args: PutEventsCommandInput = { Entries: [{ Detail: "test" }] }; - - const program = Effect.flatMap(EventBridgeService, (service) => - service.putEvents(args), - ); - - const EventBridgeClientInstanceLayer = Layer.effect( - EventBridgeClientInstance, - Effect.map( - EventBridgeClientInstanceConfig, - (config) => - new EventBridgeClient({ ...config, region: "eu-central-1" }), - ), - ); - const CustomEventBridgeServiceLayer = BaseEventBridgeServiceLayer.pipe( - Layer.provide(EventBridgeClientInstanceLayer), - Layer.provide(DefaultEventBridgeClientConfigLayer), - ); - - const result = await pipe( - program, - Effect.provide(CustomEventBridgeServiceLayer), - Effect.runPromiseExit, - ); - - expect(result).toEqual(Exit.succeed({})); - expect(clientMock).toHaveReceivedCommandTimes(PutEventsCommand, 1); - expect(clientMock).toHaveReceivedCommandWith(PutEventsCommand, args); - }); - - it("fail", async () => { - clientMock.reset().on(PutEventsCommand).rejects(new Error("test")); - - const args: PutEventsCommandInput = { Entries: [{ Detail: "test" }] }; - - const program = Effect.flatMap(EventBridgeService, (service) => - service.putEvents(args), - ); - - const result = await pipe( - program, - Effect.provide(DefaultEventBridgeServiceLayer), - Effect.runPromiseExit, - ); - - expect(result).toEqual( - Exit.fail( - SdkError({ - ...new Error("test"), - name: "SdkError", - message: "test", - stack: expect.any(String), - }), - ), - ); - expect(clientMock).toHaveReceivedCommandTimes(PutEventsCommand, 1); - expect(clientMock).toHaveReceivedCommandWith(PutEventsCommand, args); - }); -}); diff --git a/packages/client-eventbridge/tsconfig.dev.json b/packages/client-eventbridge/tsconfig.dev.json deleted file mode 100644 index 278f027..0000000 --- a/packages/client-eventbridge/tsconfig.dev.json +++ /dev/null @@ -1,37 +0,0 @@ -// ~~ Generated by projen. To modify, edit .projenrc.js and run "npx projen". -{ - "compilerOptions": { - "alwaysStrict": true, - "declaration": true, - "esModuleInterop": true, - "experimentalDecorators": true, - "inlineSourceMap": true, - "inlineSources": true, - "lib": [ - "es2019", - "dom" - ], - "module": "CommonJS", - "noEmitOnError": false, - "noFallthroughCasesInSwitch": true, - "noImplicitAny": true, - "noImplicitReturns": true, - "noImplicitThis": true, - "noUnusedLocals": true, - "noUnusedParameters": true, - "resolveJsonModule": true, - "strict": true, - "strictNullChecks": true, - "strictPropertyInitialization": true, - "stripInternal": true, - "target": "ES2019", - "moduleResolution": "node" - }, - "include": [ - "src/**/*.ts", - "test/**/*.ts" - ], - "exclude": [ - "node_modules" - ] -} diff --git a/packages/client-eventbridge/tsconfig.esm.json b/packages/client-eventbridge/tsconfig.esm.json deleted file mode 100644 index 1b04668..0000000 --- a/packages/client-eventbridge/tsconfig.esm.json +++ /dev/null @@ -1,10 +0,0 @@ -{ - "extends": "./tsconfig.json", - "compilerOptions": { - "outDir": "./lib/esm", - "module": "es6", - "resolveJsonModule": false, - "declaration": false - }, - "//": "~~ Generated by projen. To modify, edit .projenrc.js and run \"npx projen\"." -} diff --git a/packages/client-eventbridge/tsconfig.json b/packages/client-eventbridge/tsconfig.json deleted file mode 100644 index 576047c..0000000 --- a/packages/client-eventbridge/tsconfig.json +++ /dev/null @@ -1,36 +0,0 @@ -// ~~ Generated by projen. To modify, edit .projenrc.js and run "npx projen". -{ - "compilerOptions": { - "rootDir": "src", - "outDir": "lib", - "alwaysStrict": true, - "declaration": true, - "esModuleInterop": true, - "experimentalDecorators": true, - "inlineSourceMap": true, - "inlineSources": true, - "lib": [ - "es2019", - "dom" - ], - "module": "CommonJS", - "noEmitOnError": false, - "noFallthroughCasesInSwitch": true, - "noImplicitAny": true, - "noImplicitReturns": true, - "noImplicitThis": true, - "noUnusedLocals": true, - "noUnusedParameters": true, - "resolveJsonModule": true, - "strict": true, - "strictNullChecks": true, - "strictPropertyInitialization": true, - "stripInternal": true, - "target": "ES2019", - "moduleResolution": "node" - }, - "include": [ - "src/**/*.ts" - ], - "exclude": [] -} diff --git a/packages/client-iam/.eslintrc.json b/packages/client-iam/.eslintrc.json deleted file mode 100644 index c31c44d..0000000 --- a/packages/client-iam/.eslintrc.json +++ /dev/null @@ -1,126 +0,0 @@ -// ~~ Generated by projen. To modify, edit .projenrc.js and run "npx projen". -{ - "env": { - "jest": true, - "node": true - }, - "root": true, - "plugins": [ - "@typescript-eslint", - "import" - ], - "parser": "@typescript-eslint/parser", - "parserOptions": { - "ecmaVersion": 2018, - "sourceType": "module", - "project": "./tsconfig.dev.json" - }, - "extends": [ - "plugin:import/typescript", - "plugin:prettier/recommended" - ], - "settings": { - "import/parsers": { - "@typescript-eslint/parser": [ - ".ts", - ".tsx" - ] - }, - "import/resolver": { - "node": {}, - "typescript": { - "project": "./tsconfig.dev.json", - "alwaysTryTypes": true - } - } - }, - "ignorePatterns": [ - "*.js", - "*.d.ts", - "node_modules/", - "*.generated.ts", - "coverage" - ], - "rules": { - "@typescript-eslint/no-require-imports": [ - "error" - ], - "import/no-extraneous-dependencies": [ - "error", - { - "devDependencies": [ - "**/test/**", - "**/build-tools/**" - ], - "optionalDependencies": false, - "peerDependencies": true - } - ], - "import/no-unresolved": [ - "error" - ], - "import/order": [ - "warn", - { - "groups": [ - "builtin", - "external" - ], - "alphabetize": { - "order": "asc", - "caseInsensitive": true - } - } - ], - "no-duplicate-imports": [ - "error" - ], - "no-shadow": [ - "off" - ], - "@typescript-eslint/no-shadow": [ - "error" - ], - "key-spacing": [ - "error" - ], - "no-multiple-empty-lines": [ - "error" - ], - "@typescript-eslint/no-floating-promises": [ - "error" - ], - "no-return-await": [ - "off" - ], - "@typescript-eslint/return-await": [ - "error" - ], - "no-trailing-spaces": [ - "error" - ], - "dot-notation": [ - "error" - ], - "no-bitwise": [ - "error" - ], - "@typescript-eslint/member-ordering": [ - "error", - { - "default": [ - "public-static-field", - "public-static-method", - "protected-static-field", - "protected-static-method", - "private-static-field", - "private-static-method", - "field", - "constructor", - "method" - ] - } - ] - }, - "overrides": [] -} diff --git a/packages/client-iam/.gitattributes b/packages/client-iam/.gitattributes deleted file mode 100644 index 1c2be5a..0000000 --- a/packages/client-iam/.gitattributes +++ /dev/null @@ -1,21 +0,0 @@ -# ~~ Generated by projen. To modify, edit .projenrc.js and run "npx projen". - -/./tsconfig.esm.json linguist-generated -/.eslintrc.json linguist-generated -/.gitattributes linguist-generated -/.gitignore linguist-generated -/.npmignore linguist-generated -/.npmrc linguist-generated -/.prettierignore linguist-generated -/.prettierrc.json 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 -/project.json linguist-generated -/tsconfig.dev.json linguist-generated -/tsconfig.json linguist-generated \ No newline at end of file diff --git a/packages/client-iam/.gitignore b/packages/client-iam/.gitignore deleted file mode 100644 index e4fdd83..0000000 --- a/packages/client-iam/.gitignore +++ /dev/null @@ -1,45 +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 -!/.prettierignore -!/.prettierrc.json -!/.npmrc -!/test/ -!/tsconfig.json -!/tsconfig.dev.json -!/src/ -/lib -/dist/ -!/.eslintrc.json -!/tsconfig.esm.json -!/project.json -!/docgen.json -docs/ diff --git a/packages/client-iam/.npmignore b/packages/client-iam/.npmignore deleted file mode 100644 index 277d62e..0000000 --- a/packages/client-iam/.npmignore +++ /dev/null @@ -1,20 +0,0 @@ -# ~~ Generated by projen. To modify, edit .projenrc.js and run "npx projen". -/.projen/ -/.prettierignore -/.prettierrc.json -/test/ -/tsconfig.dev.json -/src/ -!/lib/ -!/lib/**/*.js -!/lib/**/*.d.ts -dist -/tsconfig.json -/.github/ -/.vscode/ -/.idea/ -/.projenrc.js -tsconfig.tsbuildinfo -/.eslintrc.json -/tsconfig.esm.json -/.gitattributes diff --git a/packages/client-iam/.prettierignore b/packages/client-iam/.prettierignore deleted file mode 100644 index 46704c7..0000000 --- a/packages/client-iam/.prettierignore +++ /dev/null @@ -1 +0,0 @@ -# ~~ Generated by projen. To modify, edit .projenrc.js and run "npx projen". diff --git a/packages/client-iam/.prettierrc.json b/packages/client-iam/.prettierrc.json deleted file mode 100644 index 84c85a3..0000000 --- a/packages/client-iam/.prettierrc.json +++ /dev/null @@ -1,3 +0,0 @@ -{ - "overrides": [] -} diff --git a/packages/client-iam/.projen/files.json b/packages/client-iam/.projen/files.json deleted file mode 100644 index c38792b..0000000 --- a/packages/client-iam/.projen/files.json +++ /dev/null @@ -1,20 +0,0 @@ -{ - "files": [ - ".eslintrc.json", - ".gitattributes", - ".gitignore", - ".npmignore", - ".prettierignore", - ".prettierrc.json", - ".projen/deps.json", - ".projen/files.json", - ".projen/tasks.json", - "docgen.json", - "LICENSE", - "project.json", - "tsconfig.dev.json", - "tsconfig.esm.json", - "tsconfig.json" - ], - "//": "~~ Generated by projen. To modify, edit .projenrc.js and run \"npx projen\"." -} diff --git a/packages/client-iam/.projen/tasks.json b/packages/client-iam/.projen/tasks.json deleted file mode 100644 index 6ecb00a..0000000 --- a/packages/client-iam/.projen/tasks.json +++ /dev/null @@ -1,113 +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.json ./tsconfig.esm.json" - } - ] - }, - "default": { - "name": "default", - "description": "Synthesize project files" - }, - "eslint": { - "name": "eslint", - "description": "Runs eslint against the codebase", - "steps": [ - { - "exec": "eslint --ext .ts,.tsx --fix --no-error-on-unmatched-pattern $@ src test build-tools", - "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" - }, - "post-compile": { - "name": "post-compile", - "description": "Runs after successful compilation" - }, - "pre-compile": { - "name": "pre-compile", - "description": "Prepare the project for compilation" - }, - "test": { - "name": "test", - "description": "Run tests", - "steps": [ - { - "exec": "vitest run --globals --reporter verbose", - "receiveArgs": true - }, - { - "spawn": "eslint" - } - ] - }, - "test:watch": { - "name": "test:watch", - "description": "Run tests in watch mode", - "steps": [ - { - "exec": "vitest --globals --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/client-iam/CHANGELOG.md b/packages/client-iam/CHANGELOG.md deleted file mode 100644 index 907b532..0000000 --- a/packages/client-iam/CHANGELOG.md +++ /dev/null @@ -1,31 +0,0 @@ -# @effect-aws/client-iam - -## 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 - -- [#24](https://github.com/floydspace/effect-aws/pull/24) [`dfa2ff9`](https://github.com/floydspace/effect-aws/commit/dfa2ff94ba0bebf1dddcd65ed055207980adc452) Thanks [@godu](https://github.com/godu)! - implement effectful iam client diff --git a/packages/client-iam/LICENSE b/packages/client-iam/LICENSE deleted file mode 100644 index 7afce46..0000000 --- a/packages/client-iam/LICENSE +++ /dev/null @@ -1,19 +0,0 @@ -Copyright (c) 2024 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/client-iam/README.md b/packages/client-iam/README.md deleted file mode 100644 index b3fa7dd..0000000 --- a/packages/client-iam/README.md +++ /dev/null @@ -1 +0,0 @@ -# replace this \ No newline at end of file diff --git a/packages/client-iam/docgen.json b/packages/client-iam/docgen.json deleted file mode 100644 index b359fc7..0000000 --- a/packages/client-iam/docgen.json +++ /dev/null @@ -1,8 +0,0 @@ -{ - "$schema": "../../node_modules/@effect/docgen/schema.json", - "exclude": [ - "src/index.ts", - "src/Errors.ts" - ], - "//": "~~ Generated by projen. To modify, edit .projenrc.js and run \"npx projen\"." -} diff --git a/packages/client-iam/package.json b/packages/client-iam/package.json deleted file mode 100644 index 6b98373..0000000 --- a/packages/client-iam/package.json +++ /dev/null @@ -1,56 +0,0 @@ -{ - "name": "@effect-aws/client-iam", - "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": { - "@types/node": "^18", - "@typescript-eslint/eslint-plugin": "^6", - "@typescript-eslint/parser": "^6", - "aws-sdk-client-mock": "^3.0.0", - "aws-sdk-client-mock-jest": "^3.0.0", - "constructs": "^10.0.0", - "effect": "2.3.1", - "eslint": "^8", - "eslint-config-prettier": "^9.0.0", - "eslint-import-resolver-typescript": "^3.6.1", - "eslint-plugin-import": "^2.28.1", - "eslint-plugin-prettier": "^5.0.0", - "prettier": "^3.0.3", - "projen": "^0.79.6", - "typescript": "^5.2.2" - }, - "peerDependencies": { - "effect": ">=2.3.1 <2.5.0" - }, - "dependencies": { - "@aws-sdk/client-iam": "^3", - "@aws-sdk/types": "^3" - }, - "main": "lib/index.js", - "license": "MIT", - "homepage": "https://floydspace.github.io/effect-aws", - "publishConfig": { - "access": "public" - }, - "version": "1.1.1", - "types": "lib/index.d.ts", - "module": "lib/esm/index.js", - "sideEffects": [], - "//": "~~ Generated by projen. To modify, edit .projenrc.js and run \"npx projen\"." -} diff --git a/packages/client-iam/project.json b/packages/client-iam/project.json deleted file mode 100644 index 09b9970..0000000 --- a/packages/client-iam/project.json +++ /dev/null @@ -1,77 +0,0 @@ -{ - "name": "@effect-aws/client-iam", - "root": "packages/client-iam", - "targets": { - "default": { - "executor": "nx:run-commands", - "options": { - "command": "pnpm exec projen default", - "cwd": "packages/client-iam" - } - }, - "pre-compile": { - "executor": "nx:run-commands", - "options": { - "command": "pnpm exec projen pre-compile", - "cwd": "packages/client-iam" - } - }, - "compile": { - "executor": "nx:run-commands", - "options": { - "command": "pnpm exec projen compile", - "cwd": "packages/client-iam" - } - }, - "post-compile": { - "executor": "nx:run-commands", - "options": { - "command": "pnpm exec projen post-compile", - "cwd": "packages/client-iam" - } - }, - "test": { - "executor": "nx:run-commands", - "options": { - "command": "pnpm exec projen test", - "cwd": "packages/client-iam" - } - }, - "package": { - "executor": "nx:run-commands", - "options": { - "command": "pnpm exec projen package", - "cwd": "packages/client-iam" - } - }, - "build": { - "executor": "nx:run-commands", - "options": { - "command": "pnpm exec projen build", - "cwd": "packages/client-iam" - } - }, - "watch": { - "executor": "nx:run-commands", - "options": { - "command": "pnpm exec projen watch", - "cwd": "packages/client-iam" - } - }, - "eslint": { - "executor": "nx:run-commands", - "options": { - "command": "pnpm exec projen eslint", - "cwd": "packages/client-iam" - } - }, - "test:watch": { - "executor": "nx:run-commands", - "options": { - "command": "pnpm exec projen test:watch", - "cwd": "packages/client-iam" - } - } - }, - "//": "~~ Generated by projen. To modify, edit .projenrc.js and run \"npx projen\"." -} diff --git a/packages/client-iam/src/Errors.ts b/packages/client-iam/src/Errors.ts deleted file mode 100644 index 488a970..0000000 --- a/packages/client-iam/src/Errors.ts +++ /dev/null @@ -1,88 +0,0 @@ -import type { - ConcurrentModificationException, - CredentialReportExpiredException, - CredentialReportNotPresentException, - CredentialReportNotReadyException, - DeleteConflictException, - DuplicateCertificateException, - DuplicateSSHPublicKeyException, - EntityAlreadyExistsException, - EntityTemporarilyUnmodifiableException, - IAMServiceException, - InvalidAuthenticationCodeException, - InvalidCertificateException, - InvalidInputException, - InvalidPublicKeyException, - InvalidUserTypeException, - KeyPairMismatchException, - LimitExceededException, - MalformedCertificateException, - MalformedPolicyDocumentException, - NoSuchEntityException, - PasswordPolicyViolationException, - PolicyEvaluationException, - PolicyNotAttachableException, - ReportGenerationLimitExceededException, - ServiceFailureException, - ServiceNotSupportedException, - UnmodifiableEntityException, - UnrecognizedPublicKeyEncodingException, -} from "@aws-sdk/client-iam"; -import * as Data from "effect/Data"; - -export type TaggedException = T & { - readonly _tag: T["name"]; -}; - -export type ConcurrentModificationError = - TaggedException; -export type CredentialReportExpiredError = - TaggedException; -export type CredentialReportNotPresentError = - TaggedException; -export type CredentialReportNotReadyError = - TaggedException; -export type DeleteConflictError = TaggedException; -export type DuplicateCertificateError = - TaggedException; -export type DuplicateSSHPublicKeyError = - TaggedException; -export type EntityAlreadyExistsError = - TaggedException; -export type EntityTemporarilyUnmodifiableError = - TaggedException; -export type InvalidAuthenticationCodeError = - TaggedException; -export type InvalidCertificateError = - TaggedException; -export type InvalidInputError = TaggedException; -export type InvalidPublicKeyError = TaggedException; -export type InvalidUserTypeError = TaggedException; -export type KeyPairMismatchError = TaggedException; -export type LimitExceededError = TaggedException; -export type MalformedCertificateError = - TaggedException; -export type MalformedPolicyDocumentError = - TaggedException; -export type NoSuchEntityError = TaggedException; -export type PasswordPolicyViolationError = - TaggedException; -export type PolicyEvaluationError = TaggedException; -export type PolicyNotAttachableError = - TaggedException; -export type ReportGenerationLimitExceededError = - TaggedException; -export type ServiceFailureError = TaggedException; -export type ServiceNotSupportedError = - TaggedException; -export type UnmodifiableEntityError = - TaggedException; -export type UnrecognizedPublicKeyEncodingError = - TaggedException; - -export type IAMServiceError = TaggedException< - IAMServiceException & { name: "IAMServiceError" } ->; -export const IAMServiceError = Data.tagged("IAMServiceError"); -export type SdkError = TaggedException; -export const SdkError = Data.tagged("SdkError"); diff --git a/packages/client-iam/src/IAMClientInstance.ts b/packages/client-iam/src/IAMClientInstance.ts deleted file mode 100644 index 6e36655..0000000 --- a/packages/client-iam/src/IAMClientInstance.ts +++ /dev/null @@ -1,45 +0,0 @@ -/** - * @since 1.0.0 - */ -import { IAMClient } from "@aws-sdk/client-iam"; -import * as Context from "effect/Context"; -import * as Effect from "effect/Effect"; -import * as Layer from "effect/Layer"; -import { - DefaultIAMClientConfigLayer, - IAMClientInstanceConfig, -} from "./IAMClientInstanceConfig"; - -/** - * @since 1.0.0 - * @category tags - */ -export class IAMClientInstance extends Context.Tag( - "@effect-aws/client-iam/IAMClientInstance", -)() {} - -/** - * @since 1.0.0 - * @category constructors - */ -export const makeIAMClientInstance = Effect.map( - IAMClientInstanceConfig, - (config) => new IAMClient(config), -); - -/** - * @since 1.0.0 - * @category layers - */ -export const IAMClientInstanceLayer = Layer.effect( - IAMClientInstance, - makeIAMClientInstance, -); - -/** - * @since 1.0.0 - * @category layers - */ -export const DefaultIAMClientInstanceLayer = IAMClientInstanceLayer.pipe( - Layer.provide(DefaultIAMClientConfigLayer), -); diff --git a/packages/client-iam/src/IAMClientInstanceConfig.ts b/packages/client-iam/src/IAMClientInstanceConfig.ts deleted file mode 100644 index 9acae8a..0000000 --- a/packages/client-iam/src/IAMClientInstanceConfig.ts +++ /dev/null @@ -1,55 +0,0 @@ -/** - * @since 1.0.0 - */ -import type { IAMClientConfig } from "@aws-sdk/client-iam"; -import * as Context from "effect/Context"; -import * as Effect from "effect/Effect"; -import * as Layer from "effect/Layer"; -import * as Runtime from "effect/Runtime"; - -/** - * @since 1.0.0 - * @category tags - */ -export class IAMClientInstanceConfig extends Context.Tag( - "@effect-aws/client-iam/IAMClientInstanceConfig", -)() {} - -/** - * @since 1.0.0 - * @category constructors - */ -export const makeDefaultIAMClientInstanceConfig: Effect.Effect = - Effect.gen(function* (_) { - const runtime = yield* _(Effect.runtime()); - const runSync = Runtime.runSync(runtime); - - return { - logger: { - info(m) { - Effect.logInfo(m).pipe(runSync); - }, - warn(m) { - Effect.logWarning(m).pipe(runSync); - }, - error(m) { - Effect.logError(m).pipe(runSync); - }, - debug(m) { - Effect.logDebug(m).pipe(runSync); - }, - trace(m) { - Effect.logTrace(m).pipe(runSync); - }, - }, - }; - }); - -/** - * @since 1.0.0 - * @category layers - */ -export const DefaultIAMClientConfigLayer = Layer.effect( - IAMClientInstanceConfig, - makeDefaultIAMClientInstanceConfig, -); diff --git a/packages/client-iam/src/IAMService.ts b/packages/client-iam/src/IAMService.ts deleted file mode 100644 index 4c3f49d..0000000 --- a/packages/client-iam/src/IAMService.ts +++ /dev/null @@ -1,3048 +0,0 @@ -/** - * @since 1.0.0 - */ -import { - IAMServiceException, - AddClientIDToOpenIDConnectProviderCommand, - type AddClientIDToOpenIDConnectProviderCommandInput, - type AddClientIDToOpenIDConnectProviderCommandOutput, - AddRoleToInstanceProfileCommand, - type AddRoleToInstanceProfileCommandInput, - type AddRoleToInstanceProfileCommandOutput, - AddUserToGroupCommand, - type AddUserToGroupCommandInput, - type AddUserToGroupCommandOutput, - AttachGroupPolicyCommand, - type AttachGroupPolicyCommandInput, - type AttachGroupPolicyCommandOutput, - AttachRolePolicyCommand, - type AttachRolePolicyCommandInput, - type AttachRolePolicyCommandOutput, - AttachUserPolicyCommand, - type AttachUserPolicyCommandInput, - type AttachUserPolicyCommandOutput, - ChangePasswordCommand, - type ChangePasswordCommandInput, - type ChangePasswordCommandOutput, - CreateAccessKeyCommand, - type CreateAccessKeyCommandInput, - type CreateAccessKeyCommandOutput, - CreateAccountAliasCommand, - type CreateAccountAliasCommandInput, - type CreateAccountAliasCommandOutput, - CreateGroupCommand, - type CreateGroupCommandInput, - type CreateGroupCommandOutput, - CreateInstanceProfileCommand, - type CreateInstanceProfileCommandInput, - type CreateInstanceProfileCommandOutput, - CreateLoginProfileCommand, - type CreateLoginProfileCommandInput, - type CreateLoginProfileCommandOutput, - CreateOpenIDConnectProviderCommand, - type CreateOpenIDConnectProviderCommandInput, - type CreateOpenIDConnectProviderCommandOutput, - CreatePolicyCommand, - type CreatePolicyCommandInput, - type CreatePolicyCommandOutput, - CreatePolicyVersionCommand, - type CreatePolicyVersionCommandInput, - type CreatePolicyVersionCommandOutput, - CreateRoleCommand, - type CreateRoleCommandInput, - type CreateRoleCommandOutput, - CreateSAMLProviderCommand, - type CreateSAMLProviderCommandInput, - type CreateSAMLProviderCommandOutput, - CreateServiceLinkedRoleCommand, - type CreateServiceLinkedRoleCommandInput, - type CreateServiceLinkedRoleCommandOutput, - CreateServiceSpecificCredentialCommand, - type CreateServiceSpecificCredentialCommandInput, - type CreateServiceSpecificCredentialCommandOutput, - CreateUserCommand, - type CreateUserCommandInput, - type CreateUserCommandOutput, - CreateVirtualMFADeviceCommand, - type CreateVirtualMFADeviceCommandInput, - type CreateVirtualMFADeviceCommandOutput, - DeactivateMFADeviceCommand, - type DeactivateMFADeviceCommandInput, - type DeactivateMFADeviceCommandOutput, - DeleteAccessKeyCommand, - type DeleteAccessKeyCommandInput, - type DeleteAccessKeyCommandOutput, - DeleteAccountAliasCommand, - type DeleteAccountAliasCommandInput, - type DeleteAccountAliasCommandOutput, - DeleteAccountPasswordPolicyCommand, - type DeleteAccountPasswordPolicyCommandInput, - type DeleteAccountPasswordPolicyCommandOutput, - DeleteGroupCommand, - type DeleteGroupCommandInput, - type DeleteGroupCommandOutput, - DeleteGroupPolicyCommand, - type DeleteGroupPolicyCommandInput, - type DeleteGroupPolicyCommandOutput, - DeleteInstanceProfileCommand, - type DeleteInstanceProfileCommandInput, - type DeleteInstanceProfileCommandOutput, - DeleteLoginProfileCommand, - type DeleteLoginProfileCommandInput, - type DeleteLoginProfileCommandOutput, - DeleteOpenIDConnectProviderCommand, - type DeleteOpenIDConnectProviderCommandInput, - type DeleteOpenIDConnectProviderCommandOutput, - DeletePolicyCommand, - type DeletePolicyCommandInput, - type DeletePolicyCommandOutput, - DeletePolicyVersionCommand, - type DeletePolicyVersionCommandInput, - type DeletePolicyVersionCommandOutput, - DeleteRoleCommand, - type DeleteRoleCommandInput, - type DeleteRoleCommandOutput, - DeleteRolePermissionsBoundaryCommand, - type DeleteRolePermissionsBoundaryCommandInput, - type DeleteRolePermissionsBoundaryCommandOutput, - DeleteRolePolicyCommand, - type DeleteRolePolicyCommandInput, - type DeleteRolePolicyCommandOutput, - DeleteSAMLProviderCommand, - type DeleteSAMLProviderCommandInput, - type DeleteSAMLProviderCommandOutput, - DeleteServerCertificateCommand, - type DeleteServerCertificateCommandInput, - type DeleteServerCertificateCommandOutput, - DeleteServiceLinkedRoleCommand, - type DeleteServiceLinkedRoleCommandInput, - type DeleteServiceLinkedRoleCommandOutput, - DeleteServiceSpecificCredentialCommand, - type DeleteServiceSpecificCredentialCommandInput, - type DeleteServiceSpecificCredentialCommandOutput, - DeleteSigningCertificateCommand, - type DeleteSigningCertificateCommandInput, - type DeleteSigningCertificateCommandOutput, - DeleteSSHPublicKeyCommand, - type DeleteSSHPublicKeyCommandInput, - type DeleteSSHPublicKeyCommandOutput, - DeleteUserCommand, - type DeleteUserCommandInput, - type DeleteUserCommandOutput, - DeleteUserPermissionsBoundaryCommand, - type DeleteUserPermissionsBoundaryCommandInput, - type DeleteUserPermissionsBoundaryCommandOutput, - DeleteUserPolicyCommand, - type DeleteUserPolicyCommandInput, - type DeleteUserPolicyCommandOutput, - DeleteVirtualMFADeviceCommand, - type DeleteVirtualMFADeviceCommandInput, - type DeleteVirtualMFADeviceCommandOutput, - DetachGroupPolicyCommand, - type DetachGroupPolicyCommandInput, - type DetachGroupPolicyCommandOutput, - DetachRolePolicyCommand, - type DetachRolePolicyCommandInput, - type DetachRolePolicyCommandOutput, - DetachUserPolicyCommand, - type DetachUserPolicyCommandInput, - type DetachUserPolicyCommandOutput, - EnableMFADeviceCommand, - type EnableMFADeviceCommandInput, - type EnableMFADeviceCommandOutput, - GenerateCredentialReportCommand, - type GenerateCredentialReportCommandInput, - type GenerateCredentialReportCommandOutput, - GenerateOrganizationsAccessReportCommand, - type GenerateOrganizationsAccessReportCommandInput, - type GenerateOrganizationsAccessReportCommandOutput, - GenerateServiceLastAccessedDetailsCommand, - type GenerateServiceLastAccessedDetailsCommandInput, - type GenerateServiceLastAccessedDetailsCommandOutput, - GetAccessKeyLastUsedCommand, - type GetAccessKeyLastUsedCommandInput, - type GetAccessKeyLastUsedCommandOutput, - GetAccountAuthorizationDetailsCommand, - type GetAccountAuthorizationDetailsCommandInput, - type GetAccountAuthorizationDetailsCommandOutput, - GetAccountPasswordPolicyCommand, - type GetAccountPasswordPolicyCommandInput, - type GetAccountPasswordPolicyCommandOutput, - GetAccountSummaryCommand, - type GetAccountSummaryCommandInput, - type GetAccountSummaryCommandOutput, - GetContextKeysForCustomPolicyCommand, - type GetContextKeysForCustomPolicyCommandInput, - type GetContextKeysForCustomPolicyCommandOutput, - GetContextKeysForPrincipalPolicyCommand, - type GetContextKeysForPrincipalPolicyCommandInput, - type GetContextKeysForPrincipalPolicyCommandOutput, - GetCredentialReportCommand, - type GetCredentialReportCommandInput, - type GetCredentialReportCommandOutput, - GetGroupCommand, - type GetGroupCommandInput, - type GetGroupCommandOutput, - GetGroupPolicyCommand, - type GetGroupPolicyCommandInput, - type GetGroupPolicyCommandOutput, - GetInstanceProfileCommand, - type GetInstanceProfileCommandInput, - type GetInstanceProfileCommandOutput, - GetLoginProfileCommand, - type GetLoginProfileCommandInput, - type GetLoginProfileCommandOutput, - GetMFADeviceCommand, - type GetMFADeviceCommandInput, - type GetMFADeviceCommandOutput, - GetOpenIDConnectProviderCommand, - type GetOpenIDConnectProviderCommandInput, - type GetOpenIDConnectProviderCommandOutput, - GetOrganizationsAccessReportCommand, - type GetOrganizationsAccessReportCommandInput, - type GetOrganizationsAccessReportCommandOutput, - GetPolicyCommand, - type GetPolicyCommandInput, - type GetPolicyCommandOutput, - GetPolicyVersionCommand, - type GetPolicyVersionCommandInput, - type GetPolicyVersionCommandOutput, - GetRoleCommand, - type GetRoleCommandInput, - type GetRoleCommandOutput, - GetRolePolicyCommand, - type GetRolePolicyCommandInput, - type GetRolePolicyCommandOutput, - GetSAMLProviderCommand, - type GetSAMLProviderCommandInput, - type GetSAMLProviderCommandOutput, - GetServerCertificateCommand, - type GetServerCertificateCommandInput, - type GetServerCertificateCommandOutput, - GetServiceLastAccessedDetailsCommand, - type GetServiceLastAccessedDetailsCommandInput, - type GetServiceLastAccessedDetailsCommandOutput, - GetServiceLastAccessedDetailsWithEntitiesCommand, - type GetServiceLastAccessedDetailsWithEntitiesCommandInput, - type GetServiceLastAccessedDetailsWithEntitiesCommandOutput, - GetServiceLinkedRoleDeletionStatusCommand, - type GetServiceLinkedRoleDeletionStatusCommandInput, - type GetServiceLinkedRoleDeletionStatusCommandOutput, - GetSSHPublicKeyCommand, - type GetSSHPublicKeyCommandInput, - type GetSSHPublicKeyCommandOutput, - GetUserCommand, - type GetUserCommandInput, - type GetUserCommandOutput, - GetUserPolicyCommand, - type GetUserPolicyCommandInput, - type GetUserPolicyCommandOutput, - ListAccessKeysCommand, - type ListAccessKeysCommandInput, - type ListAccessKeysCommandOutput, - ListAccountAliasesCommand, - type ListAccountAliasesCommandInput, - type ListAccountAliasesCommandOutput, - ListAttachedGroupPoliciesCommand, - type ListAttachedGroupPoliciesCommandInput, - type ListAttachedGroupPoliciesCommandOutput, - ListAttachedRolePoliciesCommand, - type ListAttachedRolePoliciesCommandInput, - type ListAttachedRolePoliciesCommandOutput, - ListAttachedUserPoliciesCommand, - type ListAttachedUserPoliciesCommandInput, - type ListAttachedUserPoliciesCommandOutput, - ListEntitiesForPolicyCommand, - type ListEntitiesForPolicyCommandInput, - type ListEntitiesForPolicyCommandOutput, - ListGroupPoliciesCommand, - type ListGroupPoliciesCommandInput, - type ListGroupPoliciesCommandOutput, - ListGroupsCommand, - type ListGroupsCommandInput, - type ListGroupsCommandOutput, - ListGroupsForUserCommand, - type ListGroupsForUserCommandInput, - type ListGroupsForUserCommandOutput, - ListInstanceProfilesCommand, - type ListInstanceProfilesCommandInput, - type ListInstanceProfilesCommandOutput, - ListInstanceProfilesForRoleCommand, - type ListInstanceProfilesForRoleCommandInput, - type ListInstanceProfilesForRoleCommandOutput, - ListInstanceProfileTagsCommand, - type ListInstanceProfileTagsCommandInput, - type ListInstanceProfileTagsCommandOutput, - ListMFADevicesCommand, - type ListMFADevicesCommandInput, - type ListMFADevicesCommandOutput, - ListMFADeviceTagsCommand, - type ListMFADeviceTagsCommandInput, - type ListMFADeviceTagsCommandOutput, - ListOpenIDConnectProvidersCommand, - type ListOpenIDConnectProvidersCommandInput, - type ListOpenIDConnectProvidersCommandOutput, - ListOpenIDConnectProviderTagsCommand, - type ListOpenIDConnectProviderTagsCommandInput, - type ListOpenIDConnectProviderTagsCommandOutput, - ListPoliciesCommand, - type ListPoliciesCommandInput, - type ListPoliciesCommandOutput, - ListPoliciesGrantingServiceAccessCommand, - type ListPoliciesGrantingServiceAccessCommandInput, - type ListPoliciesGrantingServiceAccessCommandOutput, - ListPolicyTagsCommand, - type ListPolicyTagsCommandInput, - type ListPolicyTagsCommandOutput, - ListPolicyVersionsCommand, - type ListPolicyVersionsCommandInput, - type ListPolicyVersionsCommandOutput, - ListRolePoliciesCommand, - type ListRolePoliciesCommandInput, - type ListRolePoliciesCommandOutput, - ListRolesCommand, - type ListRolesCommandInput, - type ListRolesCommandOutput, - ListRoleTagsCommand, - type ListRoleTagsCommandInput, - type ListRoleTagsCommandOutput, - ListSAMLProvidersCommand, - type ListSAMLProvidersCommandInput, - type ListSAMLProvidersCommandOutput, - ListSAMLProviderTagsCommand, - type ListSAMLProviderTagsCommandInput, - type ListSAMLProviderTagsCommandOutput, - ListServerCertificatesCommand, - type ListServerCertificatesCommandInput, - type ListServerCertificatesCommandOutput, - ListServerCertificateTagsCommand, - type ListServerCertificateTagsCommandInput, - type ListServerCertificateTagsCommandOutput, - ListServiceSpecificCredentialsCommand, - type ListServiceSpecificCredentialsCommandInput, - type ListServiceSpecificCredentialsCommandOutput, - ListSigningCertificatesCommand, - type ListSigningCertificatesCommandInput, - type ListSigningCertificatesCommandOutput, - ListSSHPublicKeysCommand, - type ListSSHPublicKeysCommandInput, - type ListSSHPublicKeysCommandOutput, - ListUserPoliciesCommand, - type ListUserPoliciesCommandInput, - type ListUserPoliciesCommandOutput, - ListUsersCommand, - type ListUsersCommandInput, - type ListUsersCommandOutput, - ListUserTagsCommand, - type ListUserTagsCommandInput, - type ListUserTagsCommandOutput, - ListVirtualMFADevicesCommand, - type ListVirtualMFADevicesCommandInput, - type ListVirtualMFADevicesCommandOutput, - PutGroupPolicyCommand, - type PutGroupPolicyCommandInput, - type PutGroupPolicyCommandOutput, - PutRolePermissionsBoundaryCommand, - type PutRolePermissionsBoundaryCommandInput, - type PutRolePermissionsBoundaryCommandOutput, - PutRolePolicyCommand, - type PutRolePolicyCommandInput, - type PutRolePolicyCommandOutput, - PutUserPermissionsBoundaryCommand, - type PutUserPermissionsBoundaryCommandInput, - type PutUserPermissionsBoundaryCommandOutput, - PutUserPolicyCommand, - type PutUserPolicyCommandInput, - type PutUserPolicyCommandOutput, - RemoveClientIDFromOpenIDConnectProviderCommand, - type RemoveClientIDFromOpenIDConnectProviderCommandInput, - type RemoveClientIDFromOpenIDConnectProviderCommandOutput, - RemoveRoleFromInstanceProfileCommand, - type RemoveRoleFromInstanceProfileCommandInput, - type RemoveRoleFromInstanceProfileCommandOutput, - RemoveUserFromGroupCommand, - type RemoveUserFromGroupCommandInput, - type RemoveUserFromGroupCommandOutput, - ResetServiceSpecificCredentialCommand, - type ResetServiceSpecificCredentialCommandInput, - type ResetServiceSpecificCredentialCommandOutput, - ResyncMFADeviceCommand, - type ResyncMFADeviceCommandInput, - type ResyncMFADeviceCommandOutput, - SetDefaultPolicyVersionCommand, - type SetDefaultPolicyVersionCommandInput, - type SetDefaultPolicyVersionCommandOutput, - SetSecurityTokenServicePreferencesCommand, - type SetSecurityTokenServicePreferencesCommandInput, - type SetSecurityTokenServicePreferencesCommandOutput, - SimulateCustomPolicyCommand, - type SimulateCustomPolicyCommandInput, - type SimulateCustomPolicyCommandOutput, - SimulatePrincipalPolicyCommand, - type SimulatePrincipalPolicyCommandInput, - type SimulatePrincipalPolicyCommandOutput, - TagInstanceProfileCommand, - type TagInstanceProfileCommandInput, - type TagInstanceProfileCommandOutput, - TagMFADeviceCommand, - type TagMFADeviceCommandInput, - type TagMFADeviceCommandOutput, - TagOpenIDConnectProviderCommand, - type TagOpenIDConnectProviderCommandInput, - type TagOpenIDConnectProviderCommandOutput, - TagPolicyCommand, - type TagPolicyCommandInput, - type TagPolicyCommandOutput, - TagRoleCommand, - type TagRoleCommandInput, - type TagRoleCommandOutput, - TagSAMLProviderCommand, - type TagSAMLProviderCommandInput, - type TagSAMLProviderCommandOutput, - TagServerCertificateCommand, - type TagServerCertificateCommandInput, - type TagServerCertificateCommandOutput, - TagUserCommand, - type TagUserCommandInput, - type TagUserCommandOutput, - UntagInstanceProfileCommand, - type UntagInstanceProfileCommandInput, - type UntagInstanceProfileCommandOutput, - UntagMFADeviceCommand, - type UntagMFADeviceCommandInput, - type UntagMFADeviceCommandOutput, - UntagOpenIDConnectProviderCommand, - type UntagOpenIDConnectProviderCommandInput, - type UntagOpenIDConnectProviderCommandOutput, - UntagPolicyCommand, - type UntagPolicyCommandInput, - type UntagPolicyCommandOutput, - UntagRoleCommand, - type UntagRoleCommandInput, - type UntagRoleCommandOutput, - UntagSAMLProviderCommand, - type UntagSAMLProviderCommandInput, - type UntagSAMLProviderCommandOutput, - UntagServerCertificateCommand, - type UntagServerCertificateCommandInput, - type UntagServerCertificateCommandOutput, - UntagUserCommand, - type UntagUserCommandInput, - type UntagUserCommandOutput, - UpdateAccessKeyCommand, - type UpdateAccessKeyCommandInput, - type UpdateAccessKeyCommandOutput, - UpdateAccountPasswordPolicyCommand, - type UpdateAccountPasswordPolicyCommandInput, - type UpdateAccountPasswordPolicyCommandOutput, - UpdateAssumeRolePolicyCommand, - type UpdateAssumeRolePolicyCommandInput, - type UpdateAssumeRolePolicyCommandOutput, - UpdateGroupCommand, - type UpdateGroupCommandInput, - type UpdateGroupCommandOutput, - UpdateLoginProfileCommand, - type UpdateLoginProfileCommandInput, - type UpdateLoginProfileCommandOutput, - UpdateOpenIDConnectProviderThumbprintCommand, - type UpdateOpenIDConnectProviderThumbprintCommandInput, - type UpdateOpenIDConnectProviderThumbprintCommandOutput, - UpdateRoleCommand, - type UpdateRoleCommandInput, - type UpdateRoleCommandOutput, - UpdateRoleDescriptionCommand, - type UpdateRoleDescriptionCommandInput, - type UpdateRoleDescriptionCommandOutput, - UpdateSAMLProviderCommand, - type UpdateSAMLProviderCommandInput, - type UpdateSAMLProviderCommandOutput, - UpdateServerCertificateCommand, - type UpdateServerCertificateCommandInput, - type UpdateServerCertificateCommandOutput, - UpdateServiceSpecificCredentialCommand, - type UpdateServiceSpecificCredentialCommandInput, - type UpdateServiceSpecificCredentialCommandOutput, - UpdateSigningCertificateCommand, - type UpdateSigningCertificateCommandInput, - type UpdateSigningCertificateCommandOutput, - UpdateSSHPublicKeyCommand, - type UpdateSSHPublicKeyCommandInput, - type UpdateSSHPublicKeyCommandOutput, - UpdateUserCommand, - type UpdateUserCommandInput, - type UpdateUserCommandOutput, - UploadServerCertificateCommand, - type UploadServerCertificateCommandInput, - type UploadServerCertificateCommandOutput, - UploadSigningCertificateCommand, - type UploadSigningCertificateCommandInput, - type UploadSigningCertificateCommandOutput, - UploadSSHPublicKeyCommand, - type UploadSSHPublicKeyCommandInput, - type UploadSSHPublicKeyCommandOutput, -} from "@aws-sdk/client-iam"; -import { type HttpHandlerOptions as __HttpHandlerOptions } from "@aws-sdk/types"; -import { Context, Effect, Layer, ReadonlyRecord, Data } from "effect"; -import { - IAMServiceError, - ConcurrentModificationError, - CredentialReportExpiredError, - CredentialReportNotPresentError, - CredentialReportNotReadyError, - DeleteConflictError, - DuplicateCertificateError, - DuplicateSSHPublicKeyError, - EntityAlreadyExistsError, - EntityTemporarilyUnmodifiableError, - InvalidAuthenticationCodeError, - InvalidCertificateError, - InvalidInputError, - InvalidPublicKeyError, - InvalidUserTypeError, - KeyPairMismatchError, - LimitExceededError, - MalformedCertificateError, - MalformedPolicyDocumentError, - NoSuchEntityError, - PasswordPolicyViolationError, - PolicyEvaluationError, - PolicyNotAttachableError, - ReportGenerationLimitExceededError, - ServiceFailureError, - ServiceNotSupportedError, - UnmodifiableEntityError, - UnrecognizedPublicKeyEncodingError, - SdkError, - TaggedException, -} from "./Errors"; -import { IAMClientInstance, IAMClientInstanceLayer } from "./IAMClientInstance"; -import { DefaultIAMClientConfigLayer } from "./IAMClientInstanceConfig"; - -const commands = { - AddClientIDToOpenIDConnectProviderCommand, - AddRoleToInstanceProfileCommand, - AddUserToGroupCommand, - AttachGroupPolicyCommand, - AttachRolePolicyCommand, - AttachUserPolicyCommand, - ChangePasswordCommand, - CreateAccessKeyCommand, - CreateAccountAliasCommand, - CreateGroupCommand, - CreateInstanceProfileCommand, - CreateLoginProfileCommand, - CreateOpenIDConnectProviderCommand, - CreatePolicyCommand, - CreatePolicyVersionCommand, - CreateRoleCommand, - CreateSAMLProviderCommand, - CreateServiceLinkedRoleCommand, - CreateServiceSpecificCredentialCommand, - CreateUserCommand, - CreateVirtualMFADeviceCommand, - DeactivateMFADeviceCommand, - DeleteAccessKeyCommand, - DeleteAccountAliasCommand, - DeleteAccountPasswordPolicyCommand, - DeleteGroupCommand, - DeleteGroupPolicyCommand, - DeleteInstanceProfileCommand, - DeleteLoginProfileCommand, - DeleteOpenIDConnectProviderCommand, - DeletePolicyCommand, - DeletePolicyVersionCommand, - DeleteRoleCommand, - DeleteRolePermissionsBoundaryCommand, - DeleteRolePolicyCommand, - DeleteSAMLProviderCommand, - DeleteServerCertificateCommand, - DeleteServiceLinkedRoleCommand, - DeleteServiceSpecificCredentialCommand, - DeleteSigningCertificateCommand, - DeleteSSHPublicKeyCommand, - DeleteUserCommand, - DeleteUserPermissionsBoundaryCommand, - DeleteUserPolicyCommand, - DeleteVirtualMFADeviceCommand, - DetachGroupPolicyCommand, - DetachRolePolicyCommand, - DetachUserPolicyCommand, - EnableMFADeviceCommand, - GenerateCredentialReportCommand, - GenerateOrganizationsAccessReportCommand, - GenerateServiceLastAccessedDetailsCommand, - GetAccessKeyLastUsedCommand, - GetAccountAuthorizationDetailsCommand, - GetAccountPasswordPolicyCommand, - GetAccountSummaryCommand, - GetContextKeysForCustomPolicyCommand, - GetContextKeysForPrincipalPolicyCommand, - GetCredentialReportCommand, - GetGroupCommand, - GetGroupPolicyCommand, - GetInstanceProfileCommand, - GetLoginProfileCommand, - GetMFADeviceCommand, - GetOpenIDConnectProviderCommand, - GetOrganizationsAccessReportCommand, - GetPolicyCommand, - GetPolicyVersionCommand, - GetRoleCommand, - GetRolePolicyCommand, - GetSAMLProviderCommand, - GetServerCertificateCommand, - GetServiceLastAccessedDetailsCommand, - GetServiceLastAccessedDetailsWithEntitiesCommand, - GetServiceLinkedRoleDeletionStatusCommand, - GetSSHPublicKeyCommand, - GetUserCommand, - GetUserPolicyCommand, - ListAccessKeysCommand, - ListAccountAliasesCommand, - ListAttachedGroupPoliciesCommand, - ListAttachedRolePoliciesCommand, - ListAttachedUserPoliciesCommand, - ListEntitiesForPolicyCommand, - ListGroupPoliciesCommand, - ListGroupsCommand, - ListGroupsForUserCommand, - ListInstanceProfilesCommand, - ListInstanceProfilesForRoleCommand, - ListInstanceProfileTagsCommand, - ListMFADevicesCommand, - ListMFADeviceTagsCommand, - ListOpenIDConnectProvidersCommand, - ListOpenIDConnectProviderTagsCommand, - ListPoliciesCommand, - ListPoliciesGrantingServiceAccessCommand, - ListPolicyTagsCommand, - ListPolicyVersionsCommand, - ListRolePoliciesCommand, - ListRolesCommand, - ListRoleTagsCommand, - ListSAMLProvidersCommand, - ListSAMLProviderTagsCommand, - ListServerCertificatesCommand, - ListServerCertificateTagsCommand, - ListServiceSpecificCredentialsCommand, - ListSigningCertificatesCommand, - ListSSHPublicKeysCommand, - ListUserPoliciesCommand, - ListUsersCommand, - ListUserTagsCommand, - ListVirtualMFADevicesCommand, - PutGroupPolicyCommand, - PutRolePermissionsBoundaryCommand, - PutRolePolicyCommand, - PutUserPermissionsBoundaryCommand, - PutUserPolicyCommand, - RemoveClientIDFromOpenIDConnectProviderCommand, - RemoveRoleFromInstanceProfileCommand, - RemoveUserFromGroupCommand, - ResetServiceSpecificCredentialCommand, - ResyncMFADeviceCommand, - SetDefaultPolicyVersionCommand, - SetSecurityTokenServicePreferencesCommand, - SimulateCustomPolicyCommand, - SimulatePrincipalPolicyCommand, - TagInstanceProfileCommand, - TagMFADeviceCommand, - TagOpenIDConnectProviderCommand, - TagPolicyCommand, - TagRoleCommand, - TagSAMLProviderCommand, - TagServerCertificateCommand, - TagUserCommand, - UntagInstanceProfileCommand, - UntagMFADeviceCommand, - UntagOpenIDConnectProviderCommand, - UntagPolicyCommand, - UntagRoleCommand, - UntagSAMLProviderCommand, - UntagServerCertificateCommand, - UntagUserCommand, - UpdateAccessKeyCommand, - UpdateAccountPasswordPolicyCommand, - UpdateAssumeRolePolicyCommand, - UpdateGroupCommand, - UpdateLoginProfileCommand, - UpdateOpenIDConnectProviderThumbprintCommand, - UpdateRoleCommand, - UpdateRoleDescriptionCommand, - UpdateSAMLProviderCommand, - UpdateServerCertificateCommand, - UpdateServiceSpecificCredentialCommand, - UpdateSigningCertificateCommand, - UpdateSSHPublicKeyCommand, - UpdateUserCommand, - UploadServerCertificateCommand, - UploadSigningCertificateCommand, - UploadSSHPublicKeyCommand, -}; - -/** - * @since 1.0.0 - * @category models - */ -export type IAMService = { - readonly _: unique symbol; - - /** - * @see {@link AddClientIDToOpenIDConnectProviderCommand} - */ - readonly addClientIDToOpenIDConnectProvider: ( - args: AddClientIDToOpenIDConnectProviderCommandInput, - options?: __HttpHandlerOptions, - ) => Effect.Effect< - AddClientIDToOpenIDConnectProviderCommandOutput, - | SdkError - | IAMServiceError - | InvalidInputError - | LimitExceededError - | NoSuchEntityError - | ServiceFailureError - >; - - /** - * @see {@link AddRoleToInstanceProfileCommand} - */ - readonly addRoleToInstanceProfile: ( - args: AddRoleToInstanceProfileCommandInput, - options?: __HttpHandlerOptions, - ) => Effect.Effect< - AddRoleToInstanceProfileCommandOutput, - | SdkError - | IAMServiceError - | EntityAlreadyExistsError - | LimitExceededError - | NoSuchEntityError - | ServiceFailureError - | UnmodifiableEntityError - >; - - /** - * @see {@link AddUserToGroupCommand} - */ - readonly addUserToGroup: ( - args: AddUserToGroupCommandInput, - options?: __HttpHandlerOptions, - ) => Effect.Effect< - AddUserToGroupCommandOutput, - | SdkError - | IAMServiceError - | LimitExceededError - | NoSuchEntityError - | ServiceFailureError - >; - - /** - * @see {@link AttachGroupPolicyCommand} - */ - readonly attachGroupPolicy: ( - args: AttachGroupPolicyCommandInput, - options?: __HttpHandlerOptions, - ) => Effect.Effect< - AttachGroupPolicyCommandOutput, - | SdkError - | IAMServiceError - | InvalidInputError - | LimitExceededError - | NoSuchEntityError - | PolicyNotAttachableError - | ServiceFailureError - >; - - /** - * @see {@link AttachRolePolicyCommand} - */ - readonly attachRolePolicy: ( - args: AttachRolePolicyCommandInput, - options?: __HttpHandlerOptions, - ) => Effect.Effect< - AttachRolePolicyCommandOutput, - | SdkError - | IAMServiceError - | InvalidInputError - | LimitExceededError - | NoSuchEntityError - | PolicyNotAttachableError - | ServiceFailureError - | UnmodifiableEntityError - >; - - /** - * @see {@link AttachUserPolicyCommand} - */ - readonly attachUserPolicy: ( - args: AttachUserPolicyCommandInput, - options?: __HttpHandlerOptions, - ) => Effect.Effect< - AttachUserPolicyCommandOutput, - | SdkError - | IAMServiceError - | InvalidInputError - | LimitExceededError - | NoSuchEntityError - | PolicyNotAttachableError - | ServiceFailureError - >; - - /** - * @see {@link ChangePasswordCommand} - */ - readonly changePassword: ( - args: ChangePasswordCommandInput, - options?: __HttpHandlerOptions, - ) => Effect.Effect< - ChangePasswordCommandOutput, - | SdkError - | IAMServiceError - | EntityTemporarilyUnmodifiableError - | InvalidUserTypeError - | LimitExceededError - | NoSuchEntityError - | PasswordPolicyViolationError - | ServiceFailureError - >; - - /** - * @see {@link CreateAccessKeyCommand} - */ - readonly createAccessKey: ( - args: CreateAccessKeyCommandInput, - options?: __HttpHandlerOptions, - ) => Effect.Effect< - CreateAccessKeyCommandOutput, - | SdkError - | IAMServiceError - | LimitExceededError - | NoSuchEntityError - | ServiceFailureError - >; - - /** - * @see {@link CreateAccountAliasCommand} - */ - readonly createAccountAlias: ( - args: CreateAccountAliasCommandInput, - options?: __HttpHandlerOptions, - ) => Effect.Effect< - CreateAccountAliasCommandOutput, - | SdkError - | IAMServiceError - | ConcurrentModificationError - | EntityAlreadyExistsError - | LimitExceededError - | ServiceFailureError - >; - - /** - * @see {@link CreateGroupCommand} - */ - readonly createGroup: ( - args: CreateGroupCommandInput, - options?: __HttpHandlerOptions, - ) => Effect.Effect< - CreateGroupCommandOutput, - | SdkError - | IAMServiceError - | EntityAlreadyExistsError - | LimitExceededError - | NoSuchEntityError - | ServiceFailureError - >; - - /** - * @see {@link CreateInstanceProfileCommand} - */ - readonly createInstanceProfile: ( - args: CreateInstanceProfileCommandInput, - options?: __HttpHandlerOptions, - ) => Effect.Effect< - CreateInstanceProfileCommandOutput, - | SdkError - | IAMServiceError - | ConcurrentModificationError - | EntityAlreadyExistsError - | InvalidInputError - | LimitExceededError - | ServiceFailureError - >; - - /** - * @see {@link CreateLoginProfileCommand} - */ - readonly createLoginProfile: ( - args: CreateLoginProfileCommandInput, - options?: __HttpHandlerOptions, - ) => Effect.Effect< - CreateLoginProfileCommandOutput, - | SdkError - | IAMServiceError - | EntityAlreadyExistsError - | LimitExceededError - | NoSuchEntityError - | PasswordPolicyViolationError - | ServiceFailureError - >; - - /** - * @see {@link CreateOpenIDConnectProviderCommand} - */ - readonly createOpenIDConnectProvider: ( - args: CreateOpenIDConnectProviderCommandInput, - options?: __HttpHandlerOptions, - ) => Effect.Effect< - CreateOpenIDConnectProviderCommandOutput, - | SdkError - | IAMServiceError - | ConcurrentModificationError - | EntityAlreadyExistsError - | InvalidInputError - | LimitExceededError - | ServiceFailureError - >; - - /** - * @see {@link CreatePolicyCommand} - */ - readonly createPolicy: ( - args: CreatePolicyCommandInput, - options?: __HttpHandlerOptions, - ) => Effect.Effect< - CreatePolicyCommandOutput, - | SdkError - | IAMServiceError - | ConcurrentModificationError - | EntityAlreadyExistsError - | InvalidInputError - | LimitExceededError - | MalformedPolicyDocumentError - | ServiceFailureError - >; - - /** - * @see {@link CreatePolicyVersionCommand} - */ - readonly createPolicyVersion: ( - args: CreatePolicyVersionCommandInput, - options?: __HttpHandlerOptions, - ) => Effect.Effect< - CreatePolicyVersionCommandOutput, - | SdkError - | IAMServiceError - | InvalidInputError - | LimitExceededError - | MalformedPolicyDocumentError - | NoSuchEntityError - | ServiceFailureError - >; - - /** - * @see {@link CreateRoleCommand} - */ - readonly createRole: ( - args: CreateRoleCommandInput, - options?: __HttpHandlerOptions, - ) => Effect.Effect< - CreateRoleCommandOutput, - | SdkError - | IAMServiceError - | ConcurrentModificationError - | EntityAlreadyExistsError - | InvalidInputError - | LimitExceededError - | MalformedPolicyDocumentError - | ServiceFailureError - >; - - /** - * @see {@link CreateSAMLProviderCommand} - */ - readonly createSAMLProvider: ( - args: CreateSAMLProviderCommandInput, - options?: __HttpHandlerOptions, - ) => Effect.Effect< - CreateSAMLProviderCommandOutput, - | SdkError - | IAMServiceError - | ConcurrentModificationError - | EntityAlreadyExistsError - | InvalidInputError - | LimitExceededError - | ServiceFailureError - >; - - /** - * @see {@link CreateServiceLinkedRoleCommand} - */ - readonly createServiceLinkedRole: ( - args: CreateServiceLinkedRoleCommandInput, - options?: __HttpHandlerOptions, - ) => Effect.Effect< - CreateServiceLinkedRoleCommandOutput, - | SdkError - | IAMServiceError - | InvalidInputError - | LimitExceededError - | NoSuchEntityError - | ServiceFailureError - >; - - /** - * @see {@link CreateServiceSpecificCredentialCommand} - */ - readonly createServiceSpecificCredential: ( - args: CreateServiceSpecificCredentialCommandInput, - options?: __HttpHandlerOptions, - ) => Effect.Effect< - CreateServiceSpecificCredentialCommandOutput, - | SdkError - | IAMServiceError - | LimitExceededError - | NoSuchEntityError - | ServiceNotSupportedError - >; - - /** - * @see {@link CreateUserCommand} - */ - readonly createUser: ( - args: CreateUserCommandInput, - options?: __HttpHandlerOptions, - ) => Effect.Effect< - CreateUserCommandOutput, - | SdkError - | IAMServiceError - | ConcurrentModificationError - | EntityAlreadyExistsError - | InvalidInputError - | LimitExceededError - | NoSuchEntityError - | ServiceFailureError - >; - - /** - * @see {@link CreateVirtualMFADeviceCommand} - */ - readonly createVirtualMFADevice: ( - args: CreateVirtualMFADeviceCommandInput, - options?: __HttpHandlerOptions, - ) => Effect.Effect< - CreateVirtualMFADeviceCommandOutput, - | SdkError - | IAMServiceError - | ConcurrentModificationError - | EntityAlreadyExistsError - | InvalidInputError - | LimitExceededError - | ServiceFailureError - >; - - /** - * @see {@link DeactivateMFADeviceCommand} - */ - readonly deactivateMFADevice: ( - args: DeactivateMFADeviceCommandInput, - options?: __HttpHandlerOptions, - ) => Effect.Effect< - DeactivateMFADeviceCommandOutput, - | SdkError - | IAMServiceError - | ConcurrentModificationError - | EntityTemporarilyUnmodifiableError - | LimitExceededError - | NoSuchEntityError - | ServiceFailureError - >; - - /** - * @see {@link DeleteAccessKeyCommand} - */ - readonly deleteAccessKey: ( - args: DeleteAccessKeyCommandInput, - options?: __HttpHandlerOptions, - ) => Effect.Effect< - DeleteAccessKeyCommandOutput, - | SdkError - | IAMServiceError - | LimitExceededError - | NoSuchEntityError - | ServiceFailureError - >; - - /** - * @see {@link DeleteAccountAliasCommand} - */ - readonly deleteAccountAlias: ( - args: DeleteAccountAliasCommandInput, - options?: __HttpHandlerOptions, - ) => Effect.Effect< - DeleteAccountAliasCommandOutput, - | SdkError - | IAMServiceError - | ConcurrentModificationError - | LimitExceededError - | NoSuchEntityError - | ServiceFailureError - >; - - /** - * @see {@link DeleteAccountPasswordPolicyCommand} - */ - readonly deleteAccountPasswordPolicy: ( - args: DeleteAccountPasswordPolicyCommandInput, - options?: __HttpHandlerOptions, - ) => Effect.Effect< - DeleteAccountPasswordPolicyCommandOutput, - | SdkError - | IAMServiceError - | LimitExceededError - | NoSuchEntityError - | ServiceFailureError - >; - - /** - * @see {@link DeleteGroupCommand} - */ - readonly deleteGroup: ( - args: DeleteGroupCommandInput, - options?: __HttpHandlerOptions, - ) => Effect.Effect< - DeleteGroupCommandOutput, - | SdkError - | IAMServiceError - | DeleteConflictError - | LimitExceededError - | NoSuchEntityError - | ServiceFailureError - >; - - /** - * @see {@link DeleteGroupPolicyCommand} - */ - readonly deleteGroupPolicy: ( - args: DeleteGroupPolicyCommandInput, - options?: __HttpHandlerOptions, - ) => Effect.Effect< - DeleteGroupPolicyCommandOutput, - | SdkError - | IAMServiceError - | LimitExceededError - | NoSuchEntityError - | ServiceFailureError - >; - - /** - * @see {@link DeleteInstanceProfileCommand} - */ - readonly deleteInstanceProfile: ( - args: DeleteInstanceProfileCommandInput, - options?: __HttpHandlerOptions, - ) => Effect.Effect< - DeleteInstanceProfileCommandOutput, - | SdkError - | IAMServiceError - | DeleteConflictError - | LimitExceededError - | NoSuchEntityError - | ServiceFailureError - >; - - /** - * @see {@link DeleteLoginProfileCommand} - */ - readonly deleteLoginProfile: ( - args: DeleteLoginProfileCommandInput, - options?: __HttpHandlerOptions, - ) => Effect.Effect< - DeleteLoginProfileCommandOutput, - | SdkError - | IAMServiceError - | EntityTemporarilyUnmodifiableError - | LimitExceededError - | NoSuchEntityError - | ServiceFailureError - >; - - /** - * @see {@link DeleteOpenIDConnectProviderCommand} - */ - readonly deleteOpenIDConnectProvider: ( - args: DeleteOpenIDConnectProviderCommandInput, - options?: __HttpHandlerOptions, - ) => Effect.Effect< - DeleteOpenIDConnectProviderCommandOutput, - | SdkError - | IAMServiceError - | InvalidInputError - | NoSuchEntityError - | ServiceFailureError - >; - - /** - * @see {@link DeletePolicyCommand} - */ - readonly deletePolicy: ( - args: DeletePolicyCommandInput, - options?: __HttpHandlerOptions, - ) => Effect.Effect< - DeletePolicyCommandOutput, - | SdkError - | IAMServiceError - | DeleteConflictError - | InvalidInputError - | LimitExceededError - | NoSuchEntityError - | ServiceFailureError - >; - - /** - * @see {@link DeletePolicyVersionCommand} - */ - readonly deletePolicyVersion: ( - args: DeletePolicyVersionCommandInput, - options?: __HttpHandlerOptions, - ) => Effect.Effect< - DeletePolicyVersionCommandOutput, - | SdkError - | IAMServiceError - | DeleteConflictError - | InvalidInputError - | LimitExceededError - | NoSuchEntityError - | ServiceFailureError - >; - - /** - * @see {@link DeleteRoleCommand} - */ - readonly deleteRole: ( - args: DeleteRoleCommandInput, - options?: __HttpHandlerOptions, - ) => Effect.Effect< - DeleteRoleCommandOutput, - | SdkError - | IAMServiceError - | ConcurrentModificationError - | DeleteConflictError - | LimitExceededError - | NoSuchEntityError - | ServiceFailureError - | UnmodifiableEntityError - >; - - /** - * @see {@link DeleteRolePermissionsBoundaryCommand} - */ - readonly deleteRolePermissionsBoundary: ( - args: DeleteRolePermissionsBoundaryCommandInput, - options?: __HttpHandlerOptions, - ) => Effect.Effect< - DeleteRolePermissionsBoundaryCommandOutput, - | SdkError - | IAMServiceError - | NoSuchEntityError - | ServiceFailureError - | UnmodifiableEntityError - >; - - /** - * @see {@link DeleteRolePolicyCommand} - */ - readonly deleteRolePolicy: ( - args: DeleteRolePolicyCommandInput, - options?: __HttpHandlerOptions, - ) => Effect.Effect< - DeleteRolePolicyCommandOutput, - | SdkError - | IAMServiceError - | LimitExceededError - | NoSuchEntityError - | ServiceFailureError - | UnmodifiableEntityError - >; - - /** - * @see {@link DeleteSAMLProviderCommand} - */ - readonly deleteSAMLProvider: ( - args: DeleteSAMLProviderCommandInput, - options?: __HttpHandlerOptions, - ) => Effect.Effect< - DeleteSAMLProviderCommandOutput, - | SdkError - | IAMServiceError - | InvalidInputError - | LimitExceededError - | NoSuchEntityError - | ServiceFailureError - >; - - /** - * @see {@link DeleteServerCertificateCommand} - */ - readonly deleteServerCertificate: ( - args: DeleteServerCertificateCommandInput, - options?: __HttpHandlerOptions, - ) => Effect.Effect< - DeleteServerCertificateCommandOutput, - | SdkError - | IAMServiceError - | DeleteConflictError - | LimitExceededError - | NoSuchEntityError - | ServiceFailureError - >; - - /** - * @see {@link DeleteServiceLinkedRoleCommand} - */ - readonly deleteServiceLinkedRole: ( - args: DeleteServiceLinkedRoleCommandInput, - options?: __HttpHandlerOptions, - ) => Effect.Effect< - DeleteServiceLinkedRoleCommandOutput, - | SdkError - | IAMServiceError - | LimitExceededError - | NoSuchEntityError - | ServiceFailureError - >; - - /** - * @see {@link DeleteServiceSpecificCredentialCommand} - */ - readonly deleteServiceSpecificCredential: ( - args: DeleteServiceSpecificCredentialCommandInput, - options?: __HttpHandlerOptions, - ) => Effect.Effect< - DeleteServiceSpecificCredentialCommandOutput, - SdkError | IAMServiceError | NoSuchEntityError - >; - - /** - * @see {@link DeleteSigningCertificateCommand} - */ - readonly deleteSigningCertificate: ( - args: DeleteSigningCertificateCommandInput, - options?: __HttpHandlerOptions, - ) => Effect.Effect< - DeleteSigningCertificateCommandOutput, - | SdkError - | IAMServiceError - | ConcurrentModificationError - | LimitExceededError - | NoSuchEntityError - | ServiceFailureError - >; - - /** - * @see {@link DeleteSSHPublicKeyCommand} - */ - readonly deleteSSHPublicKey: ( - args: DeleteSSHPublicKeyCommandInput, - options?: __HttpHandlerOptions, - ) => Effect.Effect< - DeleteSSHPublicKeyCommandOutput, - SdkError | IAMServiceError | NoSuchEntityError - >; - - /** - * @see {@link DeleteUserCommand} - */ - readonly deleteUser: ( - args: DeleteUserCommandInput, - options?: __HttpHandlerOptions, - ) => Effect.Effect< - DeleteUserCommandOutput, - | SdkError - | IAMServiceError - | ConcurrentModificationError - | DeleteConflictError - | LimitExceededError - | NoSuchEntityError - | ServiceFailureError - >; - - /** - * @see {@link DeleteUserPermissionsBoundaryCommand} - */ - readonly deleteUserPermissionsBoundary: ( - args: DeleteUserPermissionsBoundaryCommandInput, - options?: __HttpHandlerOptions, - ) => Effect.Effect< - DeleteUserPermissionsBoundaryCommandOutput, - SdkError | IAMServiceError | NoSuchEntityError | ServiceFailureError - >; - - /** - * @see {@link DeleteUserPolicyCommand} - */ - readonly deleteUserPolicy: ( - args: DeleteUserPolicyCommandInput, - options?: __HttpHandlerOptions, - ) => Effect.Effect< - DeleteUserPolicyCommandOutput, - | SdkError - | IAMServiceError - | LimitExceededError - | NoSuchEntityError - | ServiceFailureError - >; - - /** - * @see {@link DeleteVirtualMFADeviceCommand} - */ - readonly deleteVirtualMFADevice: ( - args: DeleteVirtualMFADeviceCommandInput, - options?: __HttpHandlerOptions, - ) => Effect.Effect< - DeleteVirtualMFADeviceCommandOutput, - | SdkError - | IAMServiceError - | ConcurrentModificationError - | DeleteConflictError - | LimitExceededError - | NoSuchEntityError - | ServiceFailureError - >; - - /** - * @see {@link DetachGroupPolicyCommand} - */ - readonly detachGroupPolicy: ( - args: DetachGroupPolicyCommandInput, - options?: __HttpHandlerOptions, - ) => Effect.Effect< - DetachGroupPolicyCommandOutput, - | SdkError - | IAMServiceError - | InvalidInputError - | LimitExceededError - | NoSuchEntityError - | ServiceFailureError - >; - - /** - * @see {@link DetachRolePolicyCommand} - */ - readonly detachRolePolicy: ( - args: DetachRolePolicyCommandInput, - options?: __HttpHandlerOptions, - ) => Effect.Effect< - DetachRolePolicyCommandOutput, - | SdkError - | IAMServiceError - | InvalidInputError - | LimitExceededError - | NoSuchEntityError - | ServiceFailureError - | UnmodifiableEntityError - >; - - /** - * @see {@link DetachUserPolicyCommand} - */ - readonly detachUserPolicy: ( - args: DetachUserPolicyCommandInput, - options?: __HttpHandlerOptions, - ) => Effect.Effect< - DetachUserPolicyCommandOutput, - | SdkError - | IAMServiceError - | InvalidInputError - | LimitExceededError - | NoSuchEntityError - | ServiceFailureError - >; - - /** - * @see {@link EnableMFADeviceCommand} - */ - readonly enableMFADevice: ( - args: EnableMFADeviceCommandInput, - options?: __HttpHandlerOptions, - ) => Effect.Effect< - EnableMFADeviceCommandOutput, - | SdkError - | IAMServiceError - | ConcurrentModificationError - | EntityAlreadyExistsError - | EntityTemporarilyUnmodifiableError - | InvalidAuthenticationCodeError - | LimitExceededError - | NoSuchEntityError - | ServiceFailureError - >; - - /** - * @see {@link GenerateCredentialReportCommand} - */ - readonly generateCredentialReport: ( - args: GenerateCredentialReportCommandInput, - options?: __HttpHandlerOptions, - ) => Effect.Effect< - GenerateCredentialReportCommandOutput, - SdkError | IAMServiceError | LimitExceededError | ServiceFailureError - >; - - /** - * @see {@link GenerateOrganizationsAccessReportCommand} - */ - readonly generateOrganizationsAccessReport: ( - args: GenerateOrganizationsAccessReportCommandInput, - options?: __HttpHandlerOptions, - ) => Effect.Effect< - GenerateOrganizationsAccessReportCommandOutput, - SdkError | IAMServiceError | ReportGenerationLimitExceededError - >; - - /** - * @see {@link GenerateServiceLastAccessedDetailsCommand} - */ - readonly generateServiceLastAccessedDetails: ( - args: GenerateServiceLastAccessedDetailsCommandInput, - options?: __HttpHandlerOptions, - ) => Effect.Effect< - GenerateServiceLastAccessedDetailsCommandOutput, - SdkError | IAMServiceError | InvalidInputError | NoSuchEntityError - >; - - /** - * @see {@link GetAccessKeyLastUsedCommand} - */ - readonly getAccessKeyLastUsed: ( - args: GetAccessKeyLastUsedCommandInput, - options?: __HttpHandlerOptions, - ) => Effect.Effect< - GetAccessKeyLastUsedCommandOutput, - SdkError | IAMServiceError - >; - - /** - * @see {@link GetAccountAuthorizationDetailsCommand} - */ - readonly getAccountAuthorizationDetails: ( - args: GetAccountAuthorizationDetailsCommandInput, - options?: __HttpHandlerOptions, - ) => Effect.Effect< - GetAccountAuthorizationDetailsCommandOutput, - SdkError | IAMServiceError | ServiceFailureError - >; - - /** - * @see {@link GetAccountPasswordPolicyCommand} - */ - readonly getAccountPasswordPolicy: ( - args: GetAccountPasswordPolicyCommandInput, - options?: __HttpHandlerOptions, - ) => Effect.Effect< - GetAccountPasswordPolicyCommandOutput, - SdkError | IAMServiceError | NoSuchEntityError | ServiceFailureError - >; - - /** - * @see {@link GetAccountSummaryCommand} - */ - readonly getAccountSummary: ( - args: GetAccountSummaryCommandInput, - options?: __HttpHandlerOptions, - ) => Effect.Effect< - GetAccountSummaryCommandOutput, - SdkError | IAMServiceError | ServiceFailureError - >; - - /** - * @see {@link GetContextKeysForCustomPolicyCommand} - */ - readonly getContextKeysForCustomPolicy: ( - args: GetContextKeysForCustomPolicyCommandInput, - options?: __HttpHandlerOptions, - ) => Effect.Effect< - GetContextKeysForCustomPolicyCommandOutput, - SdkError | IAMServiceError | InvalidInputError - >; - - /** - * @see {@link GetContextKeysForPrincipalPolicyCommand} - */ - readonly getContextKeysForPrincipalPolicy: ( - args: GetContextKeysForPrincipalPolicyCommandInput, - options?: __HttpHandlerOptions, - ) => Effect.Effect< - GetContextKeysForPrincipalPolicyCommandOutput, - SdkError | IAMServiceError | InvalidInputError | NoSuchEntityError - >; - - /** - * @see {@link GetCredentialReportCommand} - */ - readonly getCredentialReport: ( - args: GetCredentialReportCommandInput, - options?: __HttpHandlerOptions, - ) => Effect.Effect< - GetCredentialReportCommandOutput, - | SdkError - | IAMServiceError - | CredentialReportExpiredError - | CredentialReportNotPresentError - | CredentialReportNotReadyError - | ServiceFailureError - >; - - /** - * @see {@link GetGroupCommand} - */ - readonly getGroup: ( - args: GetGroupCommandInput, - options?: __HttpHandlerOptions, - ) => Effect.Effect< - GetGroupCommandOutput, - SdkError | IAMServiceError | NoSuchEntityError | ServiceFailureError - >; - - /** - * @see {@link GetGroupPolicyCommand} - */ - readonly getGroupPolicy: ( - args: GetGroupPolicyCommandInput, - options?: __HttpHandlerOptions, - ) => Effect.Effect< - GetGroupPolicyCommandOutput, - SdkError | IAMServiceError | NoSuchEntityError | ServiceFailureError - >; - - /** - * @see {@link GetInstanceProfileCommand} - */ - readonly getInstanceProfile: ( - args: GetInstanceProfileCommandInput, - options?: __HttpHandlerOptions, - ) => Effect.Effect< - GetInstanceProfileCommandOutput, - SdkError | IAMServiceError | NoSuchEntityError | ServiceFailureError - >; - - /** - * @see {@link GetLoginProfileCommand} - */ - readonly getLoginProfile: ( - args: GetLoginProfileCommandInput, - options?: __HttpHandlerOptions, - ) => Effect.Effect< - GetLoginProfileCommandOutput, - SdkError | IAMServiceError | NoSuchEntityError | ServiceFailureError - >; - - /** - * @see {@link GetMFADeviceCommand} - */ - readonly getMFADevice: ( - args: GetMFADeviceCommandInput, - options?: __HttpHandlerOptions, - ) => Effect.Effect< - GetMFADeviceCommandOutput, - SdkError | IAMServiceError | NoSuchEntityError | ServiceFailureError - >; - - /** - * @see {@link GetOpenIDConnectProviderCommand} - */ - readonly getOpenIDConnectProvider: ( - args: GetOpenIDConnectProviderCommandInput, - options?: __HttpHandlerOptions, - ) => Effect.Effect< - GetOpenIDConnectProviderCommandOutput, - | SdkError - | IAMServiceError - | InvalidInputError - | NoSuchEntityError - | ServiceFailureError - >; - - /** - * @see {@link GetOrganizationsAccessReportCommand} - */ - readonly getOrganizationsAccessReport: ( - args: GetOrganizationsAccessReportCommandInput, - options?: __HttpHandlerOptions, - ) => Effect.Effect< - GetOrganizationsAccessReportCommandOutput, - SdkError | IAMServiceError | NoSuchEntityError - >; - - /** - * @see {@link GetPolicyCommand} - */ - readonly getPolicy: ( - args: GetPolicyCommandInput, - options?: __HttpHandlerOptions, - ) => Effect.Effect< - GetPolicyCommandOutput, - | SdkError - | IAMServiceError - | InvalidInputError - | NoSuchEntityError - | ServiceFailureError - >; - - /** - * @see {@link GetPolicyVersionCommand} - */ - readonly getPolicyVersion: ( - args: GetPolicyVersionCommandInput, - options?: __HttpHandlerOptions, - ) => Effect.Effect< - GetPolicyVersionCommandOutput, - | SdkError - | IAMServiceError - | InvalidInputError - | NoSuchEntityError - | ServiceFailureError - >; - - /** - * @see {@link GetRoleCommand} - */ - readonly getRole: ( - args: GetRoleCommandInput, - options?: __HttpHandlerOptions, - ) => Effect.Effect< - GetRoleCommandOutput, - SdkError | IAMServiceError | NoSuchEntityError | ServiceFailureError - >; - - /** - * @see {@link GetRolePolicyCommand} - */ - readonly getRolePolicy: ( - args: GetRolePolicyCommandInput, - options?: __HttpHandlerOptions, - ) => Effect.Effect< - GetRolePolicyCommandOutput, - SdkError | IAMServiceError | NoSuchEntityError | ServiceFailureError - >; - - /** - * @see {@link GetSAMLProviderCommand} - */ - readonly getSAMLProvider: ( - args: GetSAMLProviderCommandInput, - options?: __HttpHandlerOptions, - ) => Effect.Effect< - GetSAMLProviderCommandOutput, - | SdkError - | IAMServiceError - | InvalidInputError - | NoSuchEntityError - | ServiceFailureError - >; - - /** - * @see {@link GetServerCertificateCommand} - */ - readonly getServerCertificate: ( - args: GetServerCertificateCommandInput, - options?: __HttpHandlerOptions, - ) => Effect.Effect< - GetServerCertificateCommandOutput, - SdkError | IAMServiceError | NoSuchEntityError | ServiceFailureError - >; - - /** - * @see {@link GetServiceLastAccessedDetailsCommand} - */ - readonly getServiceLastAccessedDetails: ( - args: GetServiceLastAccessedDetailsCommandInput, - options?: __HttpHandlerOptions, - ) => Effect.Effect< - GetServiceLastAccessedDetailsCommandOutput, - SdkError | IAMServiceError | InvalidInputError | NoSuchEntityError - >; - - /** - * @see {@link GetServiceLastAccessedDetailsWithEntitiesCommand} - */ - readonly getServiceLastAccessedDetailsWithEntities: ( - args: GetServiceLastAccessedDetailsWithEntitiesCommandInput, - options?: __HttpHandlerOptions, - ) => Effect.Effect< - GetServiceLastAccessedDetailsWithEntitiesCommandOutput, - SdkError | IAMServiceError | InvalidInputError | NoSuchEntityError - >; - - /** - * @see {@link GetServiceLinkedRoleDeletionStatusCommand} - */ - readonly getServiceLinkedRoleDeletionStatus: ( - args: GetServiceLinkedRoleDeletionStatusCommandInput, - options?: __HttpHandlerOptions, - ) => Effect.Effect< - GetServiceLinkedRoleDeletionStatusCommandOutput, - | SdkError - | IAMServiceError - | InvalidInputError - | NoSuchEntityError - | ServiceFailureError - >; - - /** - * @see {@link GetSSHPublicKeyCommand} - */ - readonly getSSHPublicKey: ( - args: GetSSHPublicKeyCommandInput, - options?: __HttpHandlerOptions, - ) => Effect.Effect< - GetSSHPublicKeyCommandOutput, - | SdkError - | IAMServiceError - | NoSuchEntityError - | UnrecognizedPublicKeyEncodingError - >; - - /** - * @see {@link GetUserCommand} - */ - readonly getUser: ( - args: GetUserCommandInput, - options?: __HttpHandlerOptions, - ) => Effect.Effect< - GetUserCommandOutput, - SdkError | IAMServiceError | NoSuchEntityError | ServiceFailureError - >; - - /** - * @see {@link GetUserPolicyCommand} - */ - readonly getUserPolicy: ( - args: GetUserPolicyCommandInput, - options?: __HttpHandlerOptions, - ) => Effect.Effect< - GetUserPolicyCommandOutput, - SdkError | IAMServiceError | NoSuchEntityError | ServiceFailureError - >; - - /** - * @see {@link ListAccessKeysCommand} - */ - readonly listAccessKeys: ( - args: ListAccessKeysCommandInput, - options?: __HttpHandlerOptions, - ) => Effect.Effect< - ListAccessKeysCommandOutput, - SdkError | IAMServiceError | NoSuchEntityError | ServiceFailureError - >; - - /** - * @see {@link ListAccountAliasesCommand} - */ - readonly listAccountAliases: ( - args: ListAccountAliasesCommandInput, - options?: __HttpHandlerOptions, - ) => Effect.Effect< - ListAccountAliasesCommandOutput, - SdkError | IAMServiceError | ServiceFailureError - >; - - /** - * @see {@link ListAttachedGroupPoliciesCommand} - */ - readonly listAttachedGroupPolicies: ( - args: ListAttachedGroupPoliciesCommandInput, - options?: __HttpHandlerOptions, - ) => Effect.Effect< - ListAttachedGroupPoliciesCommandOutput, - | SdkError - | IAMServiceError - | InvalidInputError - | NoSuchEntityError - | ServiceFailureError - >; - - /** - * @see {@link ListAttachedRolePoliciesCommand} - */ - readonly listAttachedRolePolicies: ( - args: ListAttachedRolePoliciesCommandInput, - options?: __HttpHandlerOptions, - ) => Effect.Effect< - ListAttachedRolePoliciesCommandOutput, - | SdkError - | IAMServiceError - | InvalidInputError - | NoSuchEntityError - | ServiceFailureError - >; - - /** - * @see {@link ListAttachedUserPoliciesCommand} - */ - readonly listAttachedUserPolicies: ( - args: ListAttachedUserPoliciesCommandInput, - options?: __HttpHandlerOptions, - ) => Effect.Effect< - ListAttachedUserPoliciesCommandOutput, - | SdkError - | IAMServiceError - | InvalidInputError - | NoSuchEntityError - | ServiceFailureError - >; - - /** - * @see {@link ListEntitiesForPolicyCommand} - */ - readonly listEntitiesForPolicy: ( - args: ListEntitiesForPolicyCommandInput, - options?: __HttpHandlerOptions, - ) => Effect.Effect< - ListEntitiesForPolicyCommandOutput, - | SdkError - | IAMServiceError - | InvalidInputError - | NoSuchEntityError - | ServiceFailureError - >; - - /** - * @see {@link ListGroupPoliciesCommand} - */ - readonly listGroupPolicies: ( - args: ListGroupPoliciesCommandInput, - options?: __HttpHandlerOptions, - ) => Effect.Effect< - ListGroupPoliciesCommandOutput, - SdkError | IAMServiceError | NoSuchEntityError | ServiceFailureError - >; - - /** - * @see {@link ListGroupsCommand} - */ - readonly listGroups: ( - args: ListGroupsCommandInput, - options?: __HttpHandlerOptions, - ) => Effect.Effect< - ListGroupsCommandOutput, - SdkError | IAMServiceError | ServiceFailureError - >; - - /** - * @see {@link ListGroupsForUserCommand} - */ - readonly listGroupsForUser: ( - args: ListGroupsForUserCommandInput, - options?: __HttpHandlerOptions, - ) => Effect.Effect< - ListGroupsForUserCommandOutput, - SdkError | IAMServiceError | NoSuchEntityError | ServiceFailureError - >; - - /** - * @see {@link ListInstanceProfilesCommand} - */ - readonly listInstanceProfiles: ( - args: ListInstanceProfilesCommandInput, - options?: __HttpHandlerOptions, - ) => Effect.Effect< - ListInstanceProfilesCommandOutput, - SdkError | IAMServiceError | ServiceFailureError - >; - - /** - * @see {@link ListInstanceProfilesForRoleCommand} - */ - readonly listInstanceProfilesForRole: ( - args: ListInstanceProfilesForRoleCommandInput, - options?: __HttpHandlerOptions, - ) => Effect.Effect< - ListInstanceProfilesForRoleCommandOutput, - SdkError | IAMServiceError | NoSuchEntityError | ServiceFailureError - >; - - /** - * @see {@link ListInstanceProfileTagsCommand} - */ - readonly listInstanceProfileTags: ( - args: ListInstanceProfileTagsCommandInput, - options?: __HttpHandlerOptions, - ) => Effect.Effect< - ListInstanceProfileTagsCommandOutput, - SdkError | IAMServiceError | NoSuchEntityError | ServiceFailureError - >; - - /** - * @see {@link ListMFADevicesCommand} - */ - readonly listMFADevices: ( - args: ListMFADevicesCommandInput, - options?: __HttpHandlerOptions, - ) => Effect.Effect< - ListMFADevicesCommandOutput, - SdkError | IAMServiceError | NoSuchEntityError | ServiceFailureError - >; - - /** - * @see {@link ListMFADeviceTagsCommand} - */ - readonly listMFADeviceTags: ( - args: ListMFADeviceTagsCommandInput, - options?: __HttpHandlerOptions, - ) => Effect.Effect< - ListMFADeviceTagsCommandOutput, - | SdkError - | IAMServiceError - | InvalidInputError - | NoSuchEntityError - | ServiceFailureError - >; - - /** - * @see {@link ListOpenIDConnectProvidersCommand} - */ - readonly listOpenIDConnectProviders: ( - args: ListOpenIDConnectProvidersCommandInput, - options?: __HttpHandlerOptions, - ) => Effect.Effect< - ListOpenIDConnectProvidersCommandOutput, - SdkError | IAMServiceError | ServiceFailureError - >; - - /** - * @see {@link ListOpenIDConnectProviderTagsCommand} - */ - readonly listOpenIDConnectProviderTags: ( - args: ListOpenIDConnectProviderTagsCommandInput, - options?: __HttpHandlerOptions, - ) => Effect.Effect< - ListOpenIDConnectProviderTagsCommandOutput, - | SdkError - | IAMServiceError - | InvalidInputError - | NoSuchEntityError - | ServiceFailureError - >; - - /** - * @see {@link ListPoliciesCommand} - */ - readonly listPolicies: ( - args: ListPoliciesCommandInput, - options?: __HttpHandlerOptions, - ) => Effect.Effect< - ListPoliciesCommandOutput, - SdkError | IAMServiceError | ServiceFailureError - >; - - /** - * @see {@link ListPoliciesGrantingServiceAccessCommand} - */ - readonly listPoliciesGrantingServiceAccess: ( - args: ListPoliciesGrantingServiceAccessCommandInput, - options?: __HttpHandlerOptions, - ) => Effect.Effect< - ListPoliciesGrantingServiceAccessCommandOutput, - SdkError | IAMServiceError | InvalidInputError | NoSuchEntityError - >; - - /** - * @see {@link ListPolicyTagsCommand} - */ - readonly listPolicyTags: ( - args: ListPolicyTagsCommandInput, - options?: __HttpHandlerOptions, - ) => Effect.Effect< - ListPolicyTagsCommandOutput, - | SdkError - | IAMServiceError - | InvalidInputError - | NoSuchEntityError - | ServiceFailureError - >; - - /** - * @see {@link ListPolicyVersionsCommand} - */ - readonly listPolicyVersions: ( - args: ListPolicyVersionsCommandInput, - options?: __HttpHandlerOptions, - ) => Effect.Effect< - ListPolicyVersionsCommandOutput, - | SdkError - | IAMServiceError - | InvalidInputError - | NoSuchEntityError - | ServiceFailureError - >; - - /** - * @see {@link ListRolePoliciesCommand} - */ - readonly listRolePolicies: ( - args: ListRolePoliciesCommandInput, - options?: __HttpHandlerOptions, - ) => Effect.Effect< - ListRolePoliciesCommandOutput, - SdkError | IAMServiceError | NoSuchEntityError | ServiceFailureError - >; - - /** - * @see {@link ListRolesCommand} - */ - readonly listRoles: ( - args: ListRolesCommandInput, - options?: __HttpHandlerOptions, - ) => Effect.Effect< - ListRolesCommandOutput, - SdkError | IAMServiceError | ServiceFailureError - >; - - /** - * @see {@link ListRoleTagsCommand} - */ - readonly listRoleTags: ( - args: ListRoleTagsCommandInput, - options?: __HttpHandlerOptions, - ) => Effect.Effect< - ListRoleTagsCommandOutput, - SdkError | IAMServiceError | NoSuchEntityError | ServiceFailureError - >; - - /** - * @see {@link ListSAMLProvidersCommand} - */ - readonly listSAMLProviders: ( - args: ListSAMLProvidersCommandInput, - options?: __HttpHandlerOptions, - ) => Effect.Effect< - ListSAMLProvidersCommandOutput, - SdkError | IAMServiceError | ServiceFailureError - >; - - /** - * @see {@link ListSAMLProviderTagsCommand} - */ - readonly listSAMLProviderTags: ( - args: ListSAMLProviderTagsCommandInput, - options?: __HttpHandlerOptions, - ) => Effect.Effect< - ListSAMLProviderTagsCommandOutput, - | SdkError - | IAMServiceError - | InvalidInputError - | NoSuchEntityError - | ServiceFailureError - >; - - /** - * @see {@link ListServerCertificatesCommand} - */ - readonly listServerCertificates: ( - args: ListServerCertificatesCommandInput, - options?: __HttpHandlerOptions, - ) => Effect.Effect< - ListServerCertificatesCommandOutput, - SdkError | IAMServiceError | ServiceFailureError - >; - - /** - * @see {@link ListServerCertificateTagsCommand} - */ - readonly listServerCertificateTags: ( - args: ListServerCertificateTagsCommandInput, - options?: __HttpHandlerOptions, - ) => Effect.Effect< - ListServerCertificateTagsCommandOutput, - SdkError | IAMServiceError | NoSuchEntityError | ServiceFailureError - >; - - /** - * @see {@link ListServiceSpecificCredentialsCommand} - */ - readonly listServiceSpecificCredentials: ( - args: ListServiceSpecificCredentialsCommandInput, - options?: __HttpHandlerOptions, - ) => Effect.Effect< - ListServiceSpecificCredentialsCommandOutput, - SdkError | IAMServiceError | NoSuchEntityError | ServiceNotSupportedError - >; - - /** - * @see {@link ListSigningCertificatesCommand} - */ - readonly listSigningCertificates: ( - args: ListSigningCertificatesCommandInput, - options?: __HttpHandlerOptions, - ) => Effect.Effect< - ListSigningCertificatesCommandOutput, - SdkError | IAMServiceError | NoSuchEntityError | ServiceFailureError - >; - - /** - * @see {@link ListSSHPublicKeysCommand} - */ - readonly listSSHPublicKeys: ( - args: ListSSHPublicKeysCommandInput, - options?: __HttpHandlerOptions, - ) => Effect.Effect< - ListSSHPublicKeysCommandOutput, - SdkError | IAMServiceError | NoSuchEntityError - >; - - /** - * @see {@link ListUserPoliciesCommand} - */ - readonly listUserPolicies: ( - args: ListUserPoliciesCommandInput, - options?: __HttpHandlerOptions, - ) => Effect.Effect< - ListUserPoliciesCommandOutput, - SdkError | IAMServiceError | NoSuchEntityError | ServiceFailureError - >; - - /** - * @see {@link ListUsersCommand} - */ - readonly listUsers: ( - args: ListUsersCommandInput, - options?: __HttpHandlerOptions, - ) => Effect.Effect< - ListUsersCommandOutput, - SdkError | IAMServiceError | ServiceFailureError - >; - - /** - * @see {@link ListUserTagsCommand} - */ - readonly listUserTags: ( - args: ListUserTagsCommandInput, - options?: __HttpHandlerOptions, - ) => Effect.Effect< - ListUserTagsCommandOutput, - SdkError | IAMServiceError | NoSuchEntityError | ServiceFailureError - >; - - /** - * @see {@link ListVirtualMFADevicesCommand} - */ - readonly listVirtualMFADevices: ( - args: ListVirtualMFADevicesCommandInput, - options?: __HttpHandlerOptions, - ) => Effect.Effect< - ListVirtualMFADevicesCommandOutput, - SdkError | IAMServiceError - >; - - /** - * @see {@link PutGroupPolicyCommand} - */ - readonly putGroupPolicy: ( - args: PutGroupPolicyCommandInput, - options?: __HttpHandlerOptions, - ) => Effect.Effect< - PutGroupPolicyCommandOutput, - | SdkError - | IAMServiceError - | LimitExceededError - | MalformedPolicyDocumentError - | NoSuchEntityError - | ServiceFailureError - >; - - /** - * @see {@link PutRolePermissionsBoundaryCommand} - */ - readonly putRolePermissionsBoundary: ( - args: PutRolePermissionsBoundaryCommandInput, - options?: __HttpHandlerOptions, - ) => Effect.Effect< - PutRolePermissionsBoundaryCommandOutput, - | SdkError - | IAMServiceError - | InvalidInputError - | NoSuchEntityError - | PolicyNotAttachableError - | ServiceFailureError - | UnmodifiableEntityError - >; - - /** - * @see {@link PutRolePolicyCommand} - */ - readonly putRolePolicy: ( - args: PutRolePolicyCommandInput, - options?: __HttpHandlerOptions, - ) => Effect.Effect< - PutRolePolicyCommandOutput, - | SdkError - | IAMServiceError - | LimitExceededError - | MalformedPolicyDocumentError - | NoSuchEntityError - | ServiceFailureError - | UnmodifiableEntityError - >; - - /** - * @see {@link PutUserPermissionsBoundaryCommand} - */ - readonly putUserPermissionsBoundary: ( - args: PutUserPermissionsBoundaryCommandInput, - options?: __HttpHandlerOptions, - ) => Effect.Effect< - PutUserPermissionsBoundaryCommandOutput, - | SdkError - | IAMServiceError - | InvalidInputError - | NoSuchEntityError - | PolicyNotAttachableError - | ServiceFailureError - >; - - /** - * @see {@link PutUserPolicyCommand} - */ - readonly putUserPolicy: ( - args: PutUserPolicyCommandInput, - options?: __HttpHandlerOptions, - ) => Effect.Effect< - PutUserPolicyCommandOutput, - | SdkError - | IAMServiceError - | LimitExceededError - | MalformedPolicyDocumentError - | NoSuchEntityError - | ServiceFailureError - >; - - /** - * @see {@link RemoveClientIDFromOpenIDConnectProviderCommand} - */ - readonly removeClientIDFromOpenIDConnectProvider: ( - args: RemoveClientIDFromOpenIDConnectProviderCommandInput, - options?: __HttpHandlerOptions, - ) => Effect.Effect< - RemoveClientIDFromOpenIDConnectProviderCommandOutput, - | SdkError - | IAMServiceError - | InvalidInputError - | NoSuchEntityError - | ServiceFailureError - >; - - /** - * @see {@link RemoveRoleFromInstanceProfileCommand} - */ - readonly removeRoleFromInstanceProfile: ( - args: RemoveRoleFromInstanceProfileCommandInput, - options?: __HttpHandlerOptions, - ) => Effect.Effect< - RemoveRoleFromInstanceProfileCommandOutput, - | SdkError - | IAMServiceError - | LimitExceededError - | NoSuchEntityError - | ServiceFailureError - | UnmodifiableEntityError - >; - - /** - * @see {@link RemoveUserFromGroupCommand} - */ - readonly removeUserFromGroup: ( - args: RemoveUserFromGroupCommandInput, - options?: __HttpHandlerOptions, - ) => Effect.Effect< - RemoveUserFromGroupCommandOutput, - | SdkError - | IAMServiceError - | LimitExceededError - | NoSuchEntityError - | ServiceFailureError - >; - - /** - * @see {@link ResetServiceSpecificCredentialCommand} - */ - readonly resetServiceSpecificCredential: ( - args: ResetServiceSpecificCredentialCommandInput, - options?: __HttpHandlerOptions, - ) => Effect.Effect< - ResetServiceSpecificCredentialCommandOutput, - SdkError | IAMServiceError | NoSuchEntityError - >; - - /** - * @see {@link ResyncMFADeviceCommand} - */ - readonly resyncMFADevice: ( - args: ResyncMFADeviceCommandInput, - options?: __HttpHandlerOptions, - ) => Effect.Effect< - ResyncMFADeviceCommandOutput, - | SdkError - | IAMServiceError - | ConcurrentModificationError - | InvalidAuthenticationCodeError - | LimitExceededError - | NoSuchEntityError - | ServiceFailureError - >; - - /** - * @see {@link SetDefaultPolicyVersionCommand} - */ - readonly setDefaultPolicyVersion: ( - args: SetDefaultPolicyVersionCommandInput, - options?: __HttpHandlerOptions, - ) => Effect.Effect< - SetDefaultPolicyVersionCommandOutput, - | SdkError - | IAMServiceError - | InvalidInputError - | LimitExceededError - | NoSuchEntityError - | ServiceFailureError - >; - - /** - * @see {@link SetSecurityTokenServicePreferencesCommand} - */ - readonly setSecurityTokenServicePreferences: ( - args: SetSecurityTokenServicePreferencesCommandInput, - options?: __HttpHandlerOptions, - ) => Effect.Effect< - SetSecurityTokenServicePreferencesCommandOutput, - SdkError | IAMServiceError | ServiceFailureError - >; - - /** - * @see {@link SimulateCustomPolicyCommand} - */ - readonly simulateCustomPolicy: ( - args: SimulateCustomPolicyCommandInput, - options?: __HttpHandlerOptions, - ) => Effect.Effect< - SimulateCustomPolicyCommandOutput, - SdkError | IAMServiceError | InvalidInputError | PolicyEvaluationError - >; - - /** - * @see {@link SimulatePrincipalPolicyCommand} - */ - readonly simulatePrincipalPolicy: ( - args: SimulatePrincipalPolicyCommandInput, - options?: __HttpHandlerOptions, - ) => Effect.Effect< - SimulatePrincipalPolicyCommandOutput, - | SdkError - | IAMServiceError - | InvalidInputError - | NoSuchEntityError - | PolicyEvaluationError - >; - - /** - * @see {@link TagInstanceProfileCommand} - */ - readonly tagInstanceProfile: ( - args: TagInstanceProfileCommandInput, - options?: __HttpHandlerOptions, - ) => Effect.Effect< - TagInstanceProfileCommandOutput, - | SdkError - | IAMServiceError - | ConcurrentModificationError - | InvalidInputError - | LimitExceededError - | NoSuchEntityError - | ServiceFailureError - >; - - /** - * @see {@link TagMFADeviceCommand} - */ - readonly tagMFADevice: ( - args: TagMFADeviceCommandInput, - options?: __HttpHandlerOptions, - ) => Effect.Effect< - TagMFADeviceCommandOutput, - | SdkError - | IAMServiceError - | ConcurrentModificationError - | InvalidInputError - | LimitExceededError - | NoSuchEntityError - | ServiceFailureError - >; - - /** - * @see {@link TagOpenIDConnectProviderCommand} - */ - readonly tagOpenIDConnectProvider: ( - args: TagOpenIDConnectProviderCommandInput, - options?: __HttpHandlerOptions, - ) => Effect.Effect< - TagOpenIDConnectProviderCommandOutput, - | SdkError - | IAMServiceError - | ConcurrentModificationError - | InvalidInputError - | LimitExceededError - | NoSuchEntityError - | ServiceFailureError - >; - - /** - * @see {@link TagPolicyCommand} - */ - readonly tagPolicy: ( - args: TagPolicyCommandInput, - options?: __HttpHandlerOptions, - ) => Effect.Effect< - TagPolicyCommandOutput, - | SdkError - | IAMServiceError - | ConcurrentModificationError - | InvalidInputError - | LimitExceededError - | NoSuchEntityError - | ServiceFailureError - >; - - /** - * @see {@link TagRoleCommand} - */ - readonly tagRole: ( - args: TagRoleCommandInput, - options?: __HttpHandlerOptions, - ) => Effect.Effect< - TagRoleCommandOutput, - | SdkError - | IAMServiceError - | ConcurrentModificationError - | InvalidInputError - | LimitExceededError - | NoSuchEntityError - | ServiceFailureError - >; - - /** - * @see {@link TagSAMLProviderCommand} - */ - readonly tagSAMLProvider: ( - args: TagSAMLProviderCommandInput, - options?: __HttpHandlerOptions, - ) => Effect.Effect< - TagSAMLProviderCommandOutput, - | SdkError - | IAMServiceError - | ConcurrentModificationError - | InvalidInputError - | LimitExceededError - | NoSuchEntityError - | ServiceFailureError - >; - - /** - * @see {@link TagServerCertificateCommand} - */ - readonly tagServerCertificate: ( - args: TagServerCertificateCommandInput, - options?: __HttpHandlerOptions, - ) => Effect.Effect< - TagServerCertificateCommandOutput, - | SdkError - | IAMServiceError - | ConcurrentModificationError - | InvalidInputError - | LimitExceededError - | NoSuchEntityError - | ServiceFailureError - >; - - /** - * @see {@link TagUserCommand} - */ - readonly tagUser: ( - args: TagUserCommandInput, - options?: __HttpHandlerOptions, - ) => Effect.Effect< - TagUserCommandOutput, - | SdkError - | IAMServiceError - | ConcurrentModificationError - | InvalidInputError - | LimitExceededError - | NoSuchEntityError - | ServiceFailureError - >; - - /** - * @see {@link UntagInstanceProfileCommand} - */ - readonly untagInstanceProfile: ( - args: UntagInstanceProfileCommandInput, - options?: __HttpHandlerOptions, - ) => Effect.Effect< - UntagInstanceProfileCommandOutput, - | SdkError - | IAMServiceError - | ConcurrentModificationError - | InvalidInputError - | NoSuchEntityError - | ServiceFailureError - >; - - /** - * @see {@link UntagMFADeviceCommand} - */ - readonly untagMFADevice: ( - args: UntagMFADeviceCommandInput, - options?: __HttpHandlerOptions, - ) => Effect.Effect< - UntagMFADeviceCommandOutput, - | SdkError - | IAMServiceError - | ConcurrentModificationError - | InvalidInputError - | NoSuchEntityError - | ServiceFailureError - >; - - /** - * @see {@link UntagOpenIDConnectProviderCommand} - */ - readonly untagOpenIDConnectProvider: ( - args: UntagOpenIDConnectProviderCommandInput, - options?: __HttpHandlerOptions, - ) => Effect.Effect< - UntagOpenIDConnectProviderCommandOutput, - | SdkError - | IAMServiceError - | ConcurrentModificationError - | InvalidInputError - | NoSuchEntityError - | ServiceFailureError - >; - - /** - * @see {@link UntagPolicyCommand} - */ - readonly untagPolicy: ( - args: UntagPolicyCommandInput, - options?: __HttpHandlerOptions, - ) => Effect.Effect< - UntagPolicyCommandOutput, - | SdkError - | IAMServiceError - | ConcurrentModificationError - | InvalidInputError - | NoSuchEntityError - | ServiceFailureError - >; - - /** - * @see {@link UntagRoleCommand} - */ - readonly untagRole: ( - args: UntagRoleCommandInput, - options?: __HttpHandlerOptions, - ) => Effect.Effect< - UntagRoleCommandOutput, - | SdkError - | IAMServiceError - | ConcurrentModificationError - | NoSuchEntityError - | ServiceFailureError - >; - - /** - * @see {@link UntagSAMLProviderCommand} - */ - readonly untagSAMLProvider: ( - args: UntagSAMLProviderCommandInput, - options?: __HttpHandlerOptions, - ) => Effect.Effect< - UntagSAMLProviderCommandOutput, - | SdkError - | IAMServiceError - | ConcurrentModificationError - | InvalidInputError - | NoSuchEntityError - | ServiceFailureError - >; - - /** - * @see {@link UntagServerCertificateCommand} - */ - readonly untagServerCertificate: ( - args: UntagServerCertificateCommandInput, - options?: __HttpHandlerOptions, - ) => Effect.Effect< - UntagServerCertificateCommandOutput, - | SdkError - | IAMServiceError - | ConcurrentModificationError - | InvalidInputError - | NoSuchEntityError - | ServiceFailureError - >; - - /** - * @see {@link UntagUserCommand} - */ - readonly untagUser: ( - args: UntagUserCommandInput, - options?: __HttpHandlerOptions, - ) => Effect.Effect< - UntagUserCommandOutput, - | SdkError - | IAMServiceError - | ConcurrentModificationError - | NoSuchEntityError - | ServiceFailureError - >; - - /** - * @see {@link UpdateAccessKeyCommand} - */ - readonly updateAccessKey: ( - args: UpdateAccessKeyCommandInput, - options?: __HttpHandlerOptions, - ) => Effect.Effect< - UpdateAccessKeyCommandOutput, - | SdkError - | IAMServiceError - | LimitExceededError - | NoSuchEntityError - | ServiceFailureError - >; - - /** - * @see {@link UpdateAccountPasswordPolicyCommand} - */ - readonly updateAccountPasswordPolicy: ( - args: UpdateAccountPasswordPolicyCommandInput, - options?: __HttpHandlerOptions, - ) => Effect.Effect< - UpdateAccountPasswordPolicyCommandOutput, - | SdkError - | IAMServiceError - | LimitExceededError - | MalformedPolicyDocumentError - | NoSuchEntityError - | ServiceFailureError - >; - - /** - * @see {@link UpdateAssumeRolePolicyCommand} - */ - readonly updateAssumeRolePolicy: ( - args: UpdateAssumeRolePolicyCommandInput, - options?: __HttpHandlerOptions, - ) => Effect.Effect< - UpdateAssumeRolePolicyCommandOutput, - | SdkError - | IAMServiceError - | LimitExceededError - | MalformedPolicyDocumentError - | NoSuchEntityError - | ServiceFailureError - | UnmodifiableEntityError - >; - - /** - * @see {@link UpdateGroupCommand} - */ - readonly updateGroup: ( - args: UpdateGroupCommandInput, - options?: __HttpHandlerOptions, - ) => Effect.Effect< - UpdateGroupCommandOutput, - | SdkError - | IAMServiceError - | EntityAlreadyExistsError - | LimitExceededError - | NoSuchEntityError - | ServiceFailureError - >; - - /** - * @see {@link UpdateLoginProfileCommand} - */ - readonly updateLoginProfile: ( - args: UpdateLoginProfileCommandInput, - options?: __HttpHandlerOptions, - ) => Effect.Effect< - UpdateLoginProfileCommandOutput, - | SdkError - | IAMServiceError - | EntityTemporarilyUnmodifiableError - | LimitExceededError - | NoSuchEntityError - | PasswordPolicyViolationError - | ServiceFailureError - >; - - /** - * @see {@link UpdateOpenIDConnectProviderThumbprintCommand} - */ - readonly updateOpenIDConnectProviderThumbprint: ( - args: UpdateOpenIDConnectProviderThumbprintCommandInput, - options?: __HttpHandlerOptions, - ) => Effect.Effect< - UpdateOpenIDConnectProviderThumbprintCommandOutput, - | SdkError - | IAMServiceError - | InvalidInputError - | NoSuchEntityError - | ServiceFailureError - >; - - /** - * @see {@link UpdateRoleCommand} - */ - readonly updateRole: ( - args: UpdateRoleCommandInput, - options?: __HttpHandlerOptions, - ) => Effect.Effect< - UpdateRoleCommandOutput, - | SdkError - | IAMServiceError - | NoSuchEntityError - | ServiceFailureError - | UnmodifiableEntityError - >; - - /** - * @see {@link UpdateRoleDescriptionCommand} - */ - readonly updateRoleDescription: ( - args: UpdateRoleDescriptionCommandInput, - options?: __HttpHandlerOptions, - ) => Effect.Effect< - UpdateRoleDescriptionCommandOutput, - | SdkError - | IAMServiceError - | NoSuchEntityError - | ServiceFailureError - | UnmodifiableEntityError - >; - - /** - * @see {@link UpdateSAMLProviderCommand} - */ - readonly updateSAMLProvider: ( - args: UpdateSAMLProviderCommandInput, - options?: __HttpHandlerOptions, - ) => Effect.Effect< - UpdateSAMLProviderCommandOutput, - | SdkError - | IAMServiceError - | InvalidInputError - | LimitExceededError - | NoSuchEntityError - | ServiceFailureError - >; - - /** - * @see {@link UpdateServerCertificateCommand} - */ - readonly updateServerCertificate: ( - args: UpdateServerCertificateCommandInput, - options?: __HttpHandlerOptions, - ) => Effect.Effect< - UpdateServerCertificateCommandOutput, - | SdkError - | IAMServiceError - | EntityAlreadyExistsError - | LimitExceededError - | NoSuchEntityError - | ServiceFailureError - >; - - /** - * @see {@link UpdateServiceSpecificCredentialCommand} - */ - readonly updateServiceSpecificCredential: ( - args: UpdateServiceSpecificCredentialCommandInput, - options?: __HttpHandlerOptions, - ) => Effect.Effect< - UpdateServiceSpecificCredentialCommandOutput, - SdkError | IAMServiceError | NoSuchEntityError - >; - - /** - * @see {@link UpdateSigningCertificateCommand} - */ - readonly updateSigningCertificate: ( - args: UpdateSigningCertificateCommandInput, - options?: __HttpHandlerOptions, - ) => Effect.Effect< - UpdateSigningCertificateCommandOutput, - | SdkError - | IAMServiceError - | LimitExceededError - | NoSuchEntityError - | ServiceFailureError - >; - - /** - * @see {@link UpdateSSHPublicKeyCommand} - */ - readonly updateSSHPublicKey: ( - args: UpdateSSHPublicKeyCommandInput, - options?: __HttpHandlerOptions, - ) => Effect.Effect< - UpdateSSHPublicKeyCommandOutput, - SdkError | IAMServiceError | NoSuchEntityError - >; - - /** - * @see {@link UpdateUserCommand} - */ - readonly updateUser: ( - args: UpdateUserCommandInput, - options?: __HttpHandlerOptions, - ) => Effect.Effect< - UpdateUserCommandOutput, - | SdkError - | IAMServiceError - | ConcurrentModificationError - | EntityAlreadyExistsError - | EntityTemporarilyUnmodifiableError - | LimitExceededError - | NoSuchEntityError - | ServiceFailureError - >; - - /** - * @see {@link UploadServerCertificateCommand} - */ - readonly uploadServerCertificate: ( - args: UploadServerCertificateCommandInput, - options?: __HttpHandlerOptions, - ) => Effect.Effect< - UploadServerCertificateCommandOutput, - | SdkError - | IAMServiceError - | ConcurrentModificationError - | EntityAlreadyExistsError - | InvalidInputError - | KeyPairMismatchError - | LimitExceededError - | MalformedCertificateError - | ServiceFailureError - >; - - /** - * @see {@link UploadSigningCertificateCommand} - */ - readonly uploadSigningCertificate: ( - args: UploadSigningCertificateCommandInput, - options?: __HttpHandlerOptions, - ) => Effect.Effect< - UploadSigningCertificateCommandOutput, - | SdkError - | IAMServiceError - | ConcurrentModificationError - | DuplicateCertificateError - | EntityAlreadyExistsError - | InvalidCertificateError - | LimitExceededError - | MalformedCertificateError - | NoSuchEntityError - | ServiceFailureError - >; - - /** - * @see {@link UploadSSHPublicKeyCommand} - */ - readonly uploadSSHPublicKey: ( - args: UploadSSHPublicKeyCommandInput, - options?: __HttpHandlerOptions, - ) => Effect.Effect< - UploadSSHPublicKeyCommandOutput, - | SdkError - | IAMServiceError - | DuplicateSSHPublicKeyError - | InvalidPublicKeyError - | LimitExceededError - | NoSuchEntityError - | UnrecognizedPublicKeyEncodingError - >; -}; - -/** - * @since 1.0.0 - * @category tags - */ -export const IAMService = Context.GenericTag( - "@effect-aws/client-iam/IAMService", -); - -/** - * @since 1.0.0 - * @category constructors - */ -export const makeIAMService = Effect.gen(function* (_) { - const client = yield* _(IAMClientInstance); - - return ReadonlyRecord.toEntries(commands).reduce((acc, [command]) => { - const CommandCtor = commands[command] as any; - const methodImpl = (args: any, options: any) => - Effect.tryPromise({ - try: () => client.send(new CommandCtor(args), options ?? {}), - catch: (e) => { - if (e instanceof IAMServiceException) { - const ServiceException = Data.tagged< - TaggedException - >(e.name); - - return ServiceException({ - ...e, - message: e.message, - stack: e.stack, - }); - } - if (e instanceof Error) { - return SdkError({ - ...e, - name: "SdkError", - message: e.message, - stack: e.stack, - }); - } - throw e; - }, - }); - const methodName = (command[0].toLowerCase() + command.slice(1)).replace( - /Command$/, - "", - ); - return { ...acc, [methodName]: methodImpl }; - }, {}) as IAMService; -}); - -/** - * @since 1.0.0 - * @category layers - */ -export const BaseIAMServiceLayer = Layer.effect(IAMService, makeIAMService); - -/** - * @since 1.0.0 - * @category layers - */ -export const IAMServiceLayer = BaseIAMServiceLayer.pipe( - Layer.provide(IAMClientInstanceLayer), -); - -/** - * @since 1.0.0 - * @category layers - */ -export const DefaultIAMServiceLayer = IAMServiceLayer.pipe( - Layer.provide(DefaultIAMClientConfigLayer), -); diff --git a/packages/client-iam/src/index.ts b/packages/client-iam/src/index.ts deleted file mode 100644 index 3721a83..0000000 --- a/packages/client-iam/src/index.ts +++ /dev/null @@ -1,4 +0,0 @@ -export * from "./Errors"; -export * from "./IAMClientInstance"; -export * from "./IAMClientInstanceConfig"; -export * from "./IAMService"; diff --git a/packages/client-iam/test/IAM.test.ts b/packages/client-iam/test/IAM.test.ts deleted file mode 100644 index 161b689..0000000 --- a/packages/client-iam/test/IAM.test.ts +++ /dev/null @@ -1,162 +0,0 @@ -import { - type CreateRoleCommandInput, - CreateRoleCommand, - IAMClient, -} from "@aws-sdk/client-iam"; -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 * as Layer from "effect/Layer"; -import { - BaseIAMServiceLayer, - DefaultIAMClientConfigLayer, - DefaultIAMServiceLayer, - IAMClientInstance, - IAMClientInstanceConfig, - IAMService, - IAMServiceLayer, - SdkError, -} from "../src"; - -import "aws-sdk-client-mock-jest"; - -const clientMock = mockClient(IAMClient); - -describe("IAMClientImpl", () => { - it("default", async () => { - clientMock.reset().on(CreateRoleCommand).resolves({}); - - const args = {} as unknown as CreateRoleCommandInput; - - const program = Effect.flatMap(IAMService, (service) => - service.createRole(args), - ); - - const result = await pipe( - program, - Effect.provide(DefaultIAMServiceLayer), - Effect.runPromiseExit, - ); - - expect(result).toEqual(Exit.succeed({})); - expect(clientMock).toHaveReceivedCommandTimes(CreateRoleCommand, 1); - expect(clientMock).toHaveReceivedCommandWith(CreateRoleCommand, args); - }); - - it("configurable", async () => { - clientMock.reset().on(CreateRoleCommand).resolves({}); - - const args = {} as unknown as CreateRoleCommandInput; - - const program = Effect.flatMap(IAMService, (service) => - service.createRole(args), - ); - - const IAMClientConfigLayer = Layer.succeed(IAMClientInstanceConfig, { - region: "eu-central-1", - }); - const CustomIAMServiceLayer = IAMServiceLayer.pipe( - Layer.provide(IAMClientConfigLayer), - ); - - const result = await pipe( - program, - Effect.provide(CustomIAMServiceLayer), - Effect.runPromiseExit, - ); - - expect(result).toEqual(Exit.succeed({})); - expect(clientMock).toHaveReceivedCommandTimes(CreateRoleCommand, 1); - expect(clientMock).toHaveReceivedCommandWith(CreateRoleCommand, args); - }); - - it("base", async () => { - clientMock.reset().on(CreateRoleCommand).resolves({}); - - const args = {} as unknown as CreateRoleCommandInput; - - const program = Effect.flatMap(IAMService, (service) => - service.createRole(args), - ); - - const IAMClientInstanceLayer = Layer.succeed( - IAMClientInstance, - new IAMClient({ region: "eu-central-1" }), - ); - const CustomIAMServiceLayer = BaseIAMServiceLayer.pipe( - Layer.provide(IAMClientInstanceLayer), - ); - - const result = await pipe( - program, - Effect.provide(CustomIAMServiceLayer), - Effect.runPromiseExit, - ); - - expect(result).toEqual(Exit.succeed({})); - expect(clientMock).toHaveReceivedCommandTimes(CreateRoleCommand, 1); - expect(clientMock).toHaveReceivedCommandWith(CreateRoleCommand, args); - }); - - it("extended", async () => { - clientMock.reset().on(CreateRoleCommand).resolves({}); - - const args = {} as unknown as CreateRoleCommandInput; - - const program = Effect.flatMap(IAMService, (service) => - service.createRole(args), - ); - - const IAMClientInstanceLayer = Layer.effect( - IAMClientInstance, - Effect.map( - IAMClientInstanceConfig, - (config) => new IAMClient({ ...config, region: "eu-central-1" }), - ), - ); - const CustomIAMServiceLayer = BaseIAMServiceLayer.pipe( - Layer.provide(IAMClientInstanceLayer), - Layer.provide(DefaultIAMClientConfigLayer), - ); - - const result = await pipe( - program, - Effect.provide(CustomIAMServiceLayer), - Effect.runPromiseExit, - ); - - expect(result).toEqual(Exit.succeed({})); - expect(clientMock).toHaveReceivedCommandTimes(CreateRoleCommand, 1); - expect(clientMock).toHaveReceivedCommandWith(CreateRoleCommand, args); - }); - - it("fail", async () => { - clientMock.reset().on(CreateRoleCommand).rejects(new Error("test")); - - const args = {} as unknown as CreateRoleCommandInput; - - const program = Effect.flatMap(IAMService, (service) => - service.createRole(args), - ); - - const result = await pipe( - program, - Effect.provide(DefaultIAMServiceLayer), - Effect.runPromiseExit, - ); - - expect(result).toEqual( - Exit.fail( - SdkError({ - ...new Error("test"), - name: "SdkError", - message: "test", - stack: expect.any(String), - }), - ), - ); - expect(clientMock).toHaveReceivedCommandTimes(CreateRoleCommand, 1); - expect(clientMock).toHaveReceivedCommandWith(CreateRoleCommand, args); - }); -}); diff --git a/packages/client-iam/tsconfig.dev.json b/packages/client-iam/tsconfig.dev.json deleted file mode 100644 index 278f027..0000000 --- a/packages/client-iam/tsconfig.dev.json +++ /dev/null @@ -1,37 +0,0 @@ -// ~~ Generated by projen. To modify, edit .projenrc.js and run "npx projen". -{ - "compilerOptions": { - "alwaysStrict": true, - "declaration": true, - "esModuleInterop": true, - "experimentalDecorators": true, - "inlineSourceMap": true, - "inlineSources": true, - "lib": [ - "es2019", - "dom" - ], - "module": "CommonJS", - "noEmitOnError": false, - "noFallthroughCasesInSwitch": true, - "noImplicitAny": true, - "noImplicitReturns": true, - "noImplicitThis": true, - "noUnusedLocals": true, - "noUnusedParameters": true, - "resolveJsonModule": true, - "strict": true, - "strictNullChecks": true, - "strictPropertyInitialization": true, - "stripInternal": true, - "target": "ES2019", - "moduleResolution": "node" - }, - "include": [ - "src/**/*.ts", - "test/**/*.ts" - ], - "exclude": [ - "node_modules" - ] -} diff --git a/packages/client-iam/tsconfig.esm.json b/packages/client-iam/tsconfig.esm.json deleted file mode 100644 index 1b04668..0000000 --- a/packages/client-iam/tsconfig.esm.json +++ /dev/null @@ -1,10 +0,0 @@ -{ - "extends": "./tsconfig.json", - "compilerOptions": { - "outDir": "./lib/esm", - "module": "es6", - "resolveJsonModule": false, - "declaration": false - }, - "//": "~~ Generated by projen. To modify, edit .projenrc.js and run \"npx projen\"." -} diff --git a/packages/client-iam/tsconfig.json b/packages/client-iam/tsconfig.json deleted file mode 100644 index 576047c..0000000 --- a/packages/client-iam/tsconfig.json +++ /dev/null @@ -1,36 +0,0 @@ -// ~~ Generated by projen. To modify, edit .projenrc.js and run "npx projen". -{ - "compilerOptions": { - "rootDir": "src", - "outDir": "lib", - "alwaysStrict": true, - "declaration": true, - "esModuleInterop": true, - "experimentalDecorators": true, - "inlineSourceMap": true, - "inlineSources": true, - "lib": [ - "es2019", - "dom" - ], - "module": "CommonJS", - "noEmitOnError": false, - "noFallthroughCasesInSwitch": true, - "noImplicitAny": true, - "noImplicitReturns": true, - "noImplicitThis": true, - "noUnusedLocals": true, - "noUnusedParameters": true, - "resolveJsonModule": true, - "strict": true, - "strictNullChecks": true, - "strictPropertyInitialization": true, - "stripInternal": true, - "target": "ES2019", - "moduleResolution": "node" - }, - "include": [ - "src/**/*.ts" - ], - "exclude": [] -} diff --git a/packages/client-lambda/.eslintrc.json b/packages/client-lambda/.eslintrc.json deleted file mode 100644 index c31c44d..0000000 --- a/packages/client-lambda/.eslintrc.json +++ /dev/null @@ -1,126 +0,0 @@ -// ~~ Generated by projen. To modify, edit .projenrc.js and run "npx projen". -{ - "env": { - "jest": true, - "node": true - }, - "root": true, - "plugins": [ - "@typescript-eslint", - "import" - ], - "parser": "@typescript-eslint/parser", - "parserOptions": { - "ecmaVersion": 2018, - "sourceType": "module", - "project": "./tsconfig.dev.json" - }, - "extends": [ - "plugin:import/typescript", - "plugin:prettier/recommended" - ], - "settings": { - "import/parsers": { - "@typescript-eslint/parser": [ - ".ts", - ".tsx" - ] - }, - "import/resolver": { - "node": {}, - "typescript": { - "project": "./tsconfig.dev.json", - "alwaysTryTypes": true - } - } - }, - "ignorePatterns": [ - "*.js", - "*.d.ts", - "node_modules/", - "*.generated.ts", - "coverage" - ], - "rules": { - "@typescript-eslint/no-require-imports": [ - "error" - ], - "import/no-extraneous-dependencies": [ - "error", - { - "devDependencies": [ - "**/test/**", - "**/build-tools/**" - ], - "optionalDependencies": false, - "peerDependencies": true - } - ], - "import/no-unresolved": [ - "error" - ], - "import/order": [ - "warn", - { - "groups": [ - "builtin", - "external" - ], - "alphabetize": { - "order": "asc", - "caseInsensitive": true - } - } - ], - "no-duplicate-imports": [ - "error" - ], - "no-shadow": [ - "off" - ], - "@typescript-eslint/no-shadow": [ - "error" - ], - "key-spacing": [ - "error" - ], - "no-multiple-empty-lines": [ - "error" - ], - "@typescript-eslint/no-floating-promises": [ - "error" - ], - "no-return-await": [ - "off" - ], - "@typescript-eslint/return-await": [ - "error" - ], - "no-trailing-spaces": [ - "error" - ], - "dot-notation": [ - "error" - ], - "no-bitwise": [ - "error" - ], - "@typescript-eslint/member-ordering": [ - "error", - { - "default": [ - "public-static-field", - "public-static-method", - "protected-static-field", - "protected-static-method", - "private-static-field", - "private-static-method", - "field", - "constructor", - "method" - ] - } - ] - }, - "overrides": [] -} diff --git a/packages/client-lambda/.gitattributes b/packages/client-lambda/.gitattributes deleted file mode 100644 index 1c2be5a..0000000 --- a/packages/client-lambda/.gitattributes +++ /dev/null @@ -1,21 +0,0 @@ -# ~~ Generated by projen. To modify, edit .projenrc.js and run "npx projen". - -/./tsconfig.esm.json linguist-generated -/.eslintrc.json linguist-generated -/.gitattributes linguist-generated -/.gitignore linguist-generated -/.npmignore linguist-generated -/.npmrc linguist-generated -/.prettierignore linguist-generated -/.prettierrc.json 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 -/project.json linguist-generated -/tsconfig.dev.json linguist-generated -/tsconfig.json linguist-generated \ No newline at end of file diff --git a/packages/client-lambda/.gitignore b/packages/client-lambda/.gitignore deleted file mode 100644 index e4fdd83..0000000 --- a/packages/client-lambda/.gitignore +++ /dev/null @@ -1,45 +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 -!/.prettierignore -!/.prettierrc.json -!/.npmrc -!/test/ -!/tsconfig.json -!/tsconfig.dev.json -!/src/ -/lib -/dist/ -!/.eslintrc.json -!/tsconfig.esm.json -!/project.json -!/docgen.json -docs/ diff --git a/packages/client-lambda/.npmignore b/packages/client-lambda/.npmignore deleted file mode 100644 index 277d62e..0000000 --- a/packages/client-lambda/.npmignore +++ /dev/null @@ -1,20 +0,0 @@ -# ~~ Generated by projen. To modify, edit .projenrc.js and run "npx projen". -/.projen/ -/.prettierignore -/.prettierrc.json -/test/ -/tsconfig.dev.json -/src/ -!/lib/ -!/lib/**/*.js -!/lib/**/*.d.ts -dist -/tsconfig.json -/.github/ -/.vscode/ -/.idea/ -/.projenrc.js -tsconfig.tsbuildinfo -/.eslintrc.json -/tsconfig.esm.json -/.gitattributes diff --git a/packages/client-lambda/.prettierignore b/packages/client-lambda/.prettierignore deleted file mode 100644 index 46704c7..0000000 --- a/packages/client-lambda/.prettierignore +++ /dev/null @@ -1 +0,0 @@ -# ~~ Generated by projen. To modify, edit .projenrc.js and run "npx projen". diff --git a/packages/client-lambda/.prettierrc.json b/packages/client-lambda/.prettierrc.json deleted file mode 100644 index 84c85a3..0000000 --- a/packages/client-lambda/.prettierrc.json +++ /dev/null @@ -1,3 +0,0 @@ -{ - "overrides": [] -} diff --git a/packages/client-lambda/.projen/deps.json b/packages/client-lambda/.projen/deps.json deleted file mode 100644 index 7190071..0000000 --- a/packages/client-lambda/.projen/deps.json +++ /dev/null @@ -1,82 +0,0 @@ -{ - "dependencies": [ - { - "name": "@types/node", - "version": "^18", - "type": "build" - }, - { - "name": "@typescript-eslint/eslint-plugin", - "version": "^6", - "type": "build" - }, - { - "name": "@typescript-eslint/parser", - "version": "^6", - "type": "build" - }, - { - "name": "aws-sdk-client-mock", - "type": "build" - }, - { - "name": "aws-sdk-client-mock-jest", - "type": "build" - }, - { - "name": "constructs", - "version": "^10.0.0", - "type": "build" - }, - { - "name": "eslint-config-prettier", - "type": "build" - }, - { - "name": "eslint-import-resolver-typescript", - "type": "build" - }, - { - "name": "eslint-plugin-import", - "type": "build" - }, - { - "name": "eslint-plugin-prettier", - "type": "build" - }, - { - "name": "eslint", - "version": "^8", - "type": "build" - }, - { - "name": "prettier", - "type": "build" - }, - { - "name": "projen", - "version": "^0.79.6", - "type": "build" - }, - { - "name": "typescript", - "type": "build" - }, - { - "name": "effect", - "version": ">=2.3.1 <2.5.0", - "type": "peer" - }, - { - "name": "@aws-sdk/client-lambda", - "version": "^3", - "type": "runtime" - }, - { - "name": "@aws-sdk/types", - "version": "^3", - "type": "runtime" - } - ], - "//": "~~ Generated by projen. To modify, edit .projenrc.js and run \"npx projen\"." -} diff --git a/packages/client-lambda/.projen/files.json b/packages/client-lambda/.projen/files.json deleted file mode 100644 index c38792b..0000000 --- a/packages/client-lambda/.projen/files.json +++ /dev/null @@ -1,20 +0,0 @@ -{ - "files": [ - ".eslintrc.json", - ".gitattributes", - ".gitignore", - ".npmignore", - ".prettierignore", - ".prettierrc.json", - ".projen/deps.json", - ".projen/files.json", - ".projen/tasks.json", - "docgen.json", - "LICENSE", - "project.json", - "tsconfig.dev.json", - "tsconfig.esm.json", - "tsconfig.json" - ], - "//": "~~ Generated by projen. To modify, edit .projenrc.js and run \"npx projen\"." -} diff --git a/packages/client-lambda/.projen/tasks.json b/packages/client-lambda/.projen/tasks.json deleted file mode 100644 index 6ecb00a..0000000 --- a/packages/client-lambda/.projen/tasks.json +++ /dev/null @@ -1,113 +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.json ./tsconfig.esm.json" - } - ] - }, - "default": { - "name": "default", - "description": "Synthesize project files" - }, - "eslint": { - "name": "eslint", - "description": "Runs eslint against the codebase", - "steps": [ - { - "exec": "eslint --ext .ts,.tsx --fix --no-error-on-unmatched-pattern $@ src test build-tools", - "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" - }, - "post-compile": { - "name": "post-compile", - "description": "Runs after successful compilation" - }, - "pre-compile": { - "name": "pre-compile", - "description": "Prepare the project for compilation" - }, - "test": { - "name": "test", - "description": "Run tests", - "steps": [ - { - "exec": "vitest run --globals --reporter verbose", - "receiveArgs": true - }, - { - "spawn": "eslint" - } - ] - }, - "test:watch": { - "name": "test:watch", - "description": "Run tests in watch mode", - "steps": [ - { - "exec": "vitest --globals --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/client-lambda/CHANGELOG.md b/packages/client-lambda/CHANGELOG.md deleted file mode 100644 index 5bb5698..0000000 --- a/packages/client-lambda/CHANGELOG.md +++ /dev/null @@ -1,73 +0,0 @@ -# @effect-aws/client-lambda - -## 1.2.0 - -### Minor Changes - -- [`4b5ee14`](https://github.com/floydspace/effect-aws/commit/4b5ee144d4d2f30e7a841a3cf5ccd7ff87d32132) Thanks [@floydspace](https://github.com/floydspace)! - return proper errors in failure channel in eventbridge and lambda services - -## 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 - -- [`3e5d0b3`](https://github.com/floydspace/effect-aws/commit/3e5d0b3b3882e0aa6d07bc06432990551316ac30) Thanks [@floydspace](https://github.com/floydspace)! - Upgrade to effect v2 and release stable version - -## 0.4.0 - -### Minor Changes - -- [`744df3c`](https://github.com/floydspace/effect-aws/commit/744df3ca6406b3a35e3066d5fe11ca7082c4c454) Thanks [@floydspace](https://github.com/floydspace)! - upgrade effect dependency - -## 0.3.0 - -### Minor Changes - -- [`0a969d8`](https://github.com/floydspace/effect-aws/commit/0a969d8a74c3bf1b87ff6a1c8bf689af849797e1) Thanks [@floydspace](https://github.com/floydspace)! - upgrade effect peer version - -## 0.2.2 - -### Patch Changes - -- [`280d8bd`](https://github.com/floydspace/effect-aws/commit/280d8bd6686d6e7a2b73322a047e8eb22263b1e1) Thanks [@floydspace](https://github.com/floydspace)! - upgrade dependencies - -## 0.2.1 - -### Patch Changes - -- [`6b99904`](https://github.com/floydspace/effect-aws/commit/6b9990497bdb20f240d8261b6382db421e9a3ec2) Thanks [@floydspace](https://github.com/floydspace)! - as @mikearnaldi said: "we should really never do tacit passing" - -## 0.2.0 - -### Minor Changes - -- [#14](https://github.com/floydspace/effect-aws/pull/14) [`cddfb74`](https://github.com/floydspace/effect-aws/commit/cddfb74a00b10a13ccfe3749e90961119c4f0906) Thanks [@floydspace](https://github.com/floydspace)! - upgrade effect version to the next one - -## 0.1.0 - -### Minor Changes - -- [`243882e`](https://github.com/floydspace/effect-aws/commit/243882e1bf71fa2c019f52f9d974f8cf1c433912) Thanks [@floydspace](https://github.com/floydspace)! - implement effectful dynamodb, eventbridge and lambda clients diff --git a/packages/client-lambda/LICENSE b/packages/client-lambda/LICENSE deleted file mode 100644 index 7afce46..0000000 --- a/packages/client-lambda/LICENSE +++ /dev/null @@ -1,19 +0,0 @@ -Copyright (c) 2024 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/client-lambda/README.md b/packages/client-lambda/README.md deleted file mode 100644 index b3fa7dd..0000000 --- a/packages/client-lambda/README.md +++ /dev/null @@ -1 +0,0 @@ -# replace this \ No newline at end of file diff --git a/packages/client-lambda/docgen.json b/packages/client-lambda/docgen.json deleted file mode 100644 index b359fc7..0000000 --- a/packages/client-lambda/docgen.json +++ /dev/null @@ -1,8 +0,0 @@ -{ - "$schema": "../../node_modules/@effect/docgen/schema.json", - "exclude": [ - "src/index.ts", - "src/Errors.ts" - ], - "//": "~~ Generated by projen. To modify, edit .projenrc.js and run \"npx projen\"." -} diff --git a/packages/client-lambda/package.json b/packages/client-lambda/package.json deleted file mode 100644 index 790b1d6..0000000 --- a/packages/client-lambda/package.json +++ /dev/null @@ -1,56 +0,0 @@ -{ - "name": "@effect-aws/client-lambda", - "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": { - "@types/node": "^18", - "@typescript-eslint/eslint-plugin": "^6", - "@typescript-eslint/parser": "^6", - "aws-sdk-client-mock": "^3.0.0", - "aws-sdk-client-mock-jest": "^3.0.0", - "constructs": "^10.0.0", - "effect": "2.3.1", - "eslint": "^8", - "eslint-config-prettier": "^9.0.0", - "eslint-import-resolver-typescript": "^3.6.1", - "eslint-plugin-import": "^2.28.1", - "eslint-plugin-prettier": "^5.0.0", - "prettier": "^3.0.3", - "projen": "^0.79.6", - "typescript": "^5.2.2" - }, - "peerDependencies": { - "effect": ">=2.3.1 <2.5.0" - }, - "dependencies": { - "@aws-sdk/client-lambda": "^3", - "@aws-sdk/types": "^3" - }, - "main": "lib/index.js", - "license": "MIT", - "homepage": "https://floydspace.github.io/effect-aws", - "publishConfig": { - "access": "public" - }, - "version": "1.2.0", - "types": "lib/index.d.ts", - "module": "lib/esm/index.js", - "sideEffects": [], - "//": "~~ Generated by projen. To modify, edit .projenrc.js and run \"npx projen\"." -} diff --git a/packages/client-lambda/project.json b/packages/client-lambda/project.json deleted file mode 100644 index 1e62ec6..0000000 --- a/packages/client-lambda/project.json +++ /dev/null @@ -1,77 +0,0 @@ -{ - "name": "@effect-aws/client-lambda", - "root": "packages/client-lambda", - "targets": { - "default": { - "executor": "nx:run-commands", - "options": { - "command": "pnpm exec projen default", - "cwd": "packages/client-lambda" - } - }, - "pre-compile": { - "executor": "nx:run-commands", - "options": { - "command": "pnpm exec projen pre-compile", - "cwd": "packages/client-lambda" - } - }, - "compile": { - "executor": "nx:run-commands", - "options": { - "command": "pnpm exec projen compile", - "cwd": "packages/client-lambda" - } - }, - "post-compile": { - "executor": "nx:run-commands", - "options": { - "command": "pnpm exec projen post-compile", - "cwd": "packages/client-lambda" - } - }, - "test": { - "executor": "nx:run-commands", - "options": { - "command": "pnpm exec projen test", - "cwd": "packages/client-lambda" - } - }, - "package": { - "executor": "nx:run-commands", - "options": { - "command": "pnpm exec projen package", - "cwd": "packages/client-lambda" - } - }, - "build": { - "executor": "nx:run-commands", - "options": { - "command": "pnpm exec projen build", - "cwd": "packages/client-lambda" - } - }, - "watch": { - "executor": "nx:run-commands", - "options": { - "command": "pnpm exec projen watch", - "cwd": "packages/client-lambda" - } - }, - "eslint": { - "executor": "nx:run-commands", - "options": { - "command": "pnpm exec projen eslint", - "cwd": "packages/client-lambda" - } - }, - "test:watch": { - "executor": "nx:run-commands", - "options": { - "command": "pnpm exec projen test:watch", - "cwd": "packages/client-lambda" - } - } - }, - "//": "~~ Generated by projen. To modify, edit .projenrc.js and run \"npx projen\"." -} diff --git a/packages/client-lambda/src/Errors.ts b/packages/client-lambda/src/Errors.ts deleted file mode 100644 index 475464b..0000000 --- a/packages/client-lambda/src/Errors.ts +++ /dev/null @@ -1,102 +0,0 @@ -import type { - CodeSigningConfigNotFoundException, - CodeStorageExceededException, - CodeVerificationFailedException, - EC2AccessDeniedException, - EC2ThrottledException, - EC2UnexpectedException, - EFSIOException, - EFSMountConnectivityException, - EFSMountFailureException, - EFSMountTimeoutException, - ENILimitReachedException, - InvalidCodeSignatureException, - InvalidParameterValueException, - InvalidRequestContentException, - InvalidRuntimeException, - InvalidSecurityGroupIDException, - InvalidSubnetIDException, - InvalidZipFileException, - KMSAccessDeniedException, - KMSDisabledException, - KMSInvalidStateException, - KMSNotFoundException, - PolicyLengthExceededException, - PreconditionFailedException, - ProvisionedConcurrencyConfigNotFoundException, - RecursiveInvocationException, - RequestTooLargeException, - ResourceConflictException, - ResourceInUseException, - ResourceNotFoundException, - ResourceNotReadyException, - ServiceException, - SnapStartException, - SnapStartNotReadyException, - SnapStartTimeoutException, - SubnetIPAddressLimitReachedException, - TooManyRequestsException, - UnsupportedMediaTypeException, -} from "@aws-sdk/client-lambda"; -import * as Data from "effect/Data"; - -export type TaggedException = T & { - readonly _tag: T["name"]; -}; - -export type CodeSigningConfigNotFoundError = - TaggedException; -export type CodeStorageExceededError = - TaggedException; -export type CodeVerificationFailedError = - TaggedException; -export type EC2AccessDeniedError = TaggedException; -export type EC2ThrottledError = TaggedException; -export type EC2UnexpectedError = TaggedException; -export type EFSIOError = TaggedException; -export type EFSMountConnectivityError = - TaggedException; -export type EFSMountFailureError = TaggedException; -export type EFSMountTimeoutError = TaggedException; -export type ENILimitReachedError = TaggedException; -export type InvalidCodeSignatureError = - TaggedException; -export type InvalidParameterValueError = - TaggedException; -export type InvalidRequestContentError = - TaggedException; -export type InvalidRuntimeError = TaggedException; -export type InvalidSecurityGroupIDError = - TaggedException; -export type InvalidSubnetIDError = TaggedException; -export type InvalidZipFileError = TaggedException; -export type KMSAccessDeniedError = TaggedException; -export type KMSDisabledError = TaggedException; -export type KMSInvalidStateError = TaggedException; -export type KMSNotFoundError = TaggedException; -export type PolicyLengthExceededError = - TaggedException; -export type PreconditionFailedError = - TaggedException; -export type ProvisionedConcurrencyConfigNotFoundError = - TaggedException; -export type RecursiveInvocationError = - TaggedException; -export type RequestTooLargeError = TaggedException; -export type ResourceConflictError = TaggedException; -export type ResourceInUseError = TaggedException; -export type ResourceNotFoundError = TaggedException; -export type ResourceNotReadyError = TaggedException; -export type ServiceError = TaggedException; -export type SnapStartError = TaggedException; -export type SnapStartNotReadyError = - TaggedException; -export type SnapStartTimeoutError = TaggedException; -export type SubnetIPAddressLimitReachedError = - TaggedException; -export type TooManyRequestsError = TaggedException; -export type UnsupportedMediaTypeError = - TaggedException; - -export type SdkError = TaggedException; -export const SdkError = Data.tagged("SdkError"); diff --git a/packages/client-lambda/src/LambdaClientInstance.ts b/packages/client-lambda/src/LambdaClientInstance.ts deleted file mode 100644 index 9a204fe..0000000 --- a/packages/client-lambda/src/LambdaClientInstance.ts +++ /dev/null @@ -1,45 +0,0 @@ -/** - * @since 1.0.0 - */ -import { LambdaClient } from "@aws-sdk/client-lambda"; -import * as Context from "effect/Context"; -import * as Effect from "effect/Effect"; -import * as Layer from "effect/Layer"; -import { - DefaultLambdaClientConfigLayer, - LambdaClientInstanceConfig, -} from "./LambdaClientInstanceConfig"; - -/** - * @since 1.0.0 - * @category tags - */ -export class LambdaClientInstance extends Context.Tag( - "@effect-aws/client-lambda/LambdaClientInstance", -)() {} - -/** - * @since 1.0.0 - * @category constructors - */ -export const makeLambdaClientInstance = Effect.map( - LambdaClientInstanceConfig, - (config) => new LambdaClient(config), -); - -/** - * @since 1.0.0 - * @category layers - */ -export const LambdaClientInstanceLayer = Layer.effect( - LambdaClientInstance, - makeLambdaClientInstance, -); - -/** - * @since 1.0.0 - * @category layers - */ -export const DefaultLambdaClientInstanceLayer = LambdaClientInstanceLayer.pipe( - Layer.provide(DefaultLambdaClientConfigLayer), -); diff --git a/packages/client-lambda/src/LambdaClientInstanceConfig.ts b/packages/client-lambda/src/LambdaClientInstanceConfig.ts deleted file mode 100644 index 0ed15a9..0000000 --- a/packages/client-lambda/src/LambdaClientInstanceConfig.ts +++ /dev/null @@ -1,55 +0,0 @@ -/** - * @since 1.0.0 - */ -import type { LambdaClientConfig } from "@aws-sdk/client-lambda"; -import * as Context from "effect/Context"; -import * as Effect from "effect/Effect"; -import * as Layer from "effect/Layer"; -import * as Runtime from "effect/Runtime"; - -/** - * @since 1.0.0 - * @category tags - */ -export class LambdaClientInstanceConfig extends Context.Tag( - "@effect-aws/client-lambda/LambdaClientInstanceConfig", -)() {} - -/** - * @since 1.0.0 - * @category constructors - */ -export const makeDefaultLambdaClientInstanceConfig: Effect.Effect = - Effect.gen(function* (_) { - const runtime = yield* _(Effect.runtime()); - const runSync = Runtime.runSync(runtime); - - return { - logger: { - info(m) { - Effect.logInfo(m).pipe(runSync); - }, - warn(m) { - Effect.logWarning(m).pipe(runSync); - }, - error(m) { - Effect.logError(m).pipe(runSync); - }, - debug(m) { - Effect.logDebug(m).pipe(runSync); - }, - trace(m) { - Effect.logTrace(m).pipe(runSync); - }, - }, - }; - }); - -/** - * @since 1.0.0 - * @category layers - */ -export const DefaultLambdaClientConfigLayer = Layer.effect( - LambdaClientInstanceConfig, - makeDefaultLambdaClientInstanceConfig, -); diff --git a/packages/client-lambda/src/LambdaService.ts b/packages/client-lambda/src/LambdaService.ts deleted file mode 100644 index 3456172..0000000 --- a/packages/client-lambda/src/LambdaService.ts +++ /dev/null @@ -1,1492 +0,0 @@ -/** - * @since 1.0.0 - */ -import { - LambdaServiceException, - AddLayerVersionPermissionCommand, - type AddLayerVersionPermissionCommandInput, - type AddLayerVersionPermissionCommandOutput, - AddPermissionCommand, - type AddPermissionCommandInput, - type AddPermissionCommandOutput, - CreateAliasCommand, - type CreateAliasCommandInput, - type CreateAliasCommandOutput, - CreateCodeSigningConfigCommand, - type CreateCodeSigningConfigCommandInput, - type CreateCodeSigningConfigCommandOutput, - CreateEventSourceMappingCommand, - type CreateEventSourceMappingCommandInput, - type CreateEventSourceMappingCommandOutput, - CreateFunctionCommand, - type CreateFunctionCommandInput, - type CreateFunctionCommandOutput, - CreateFunctionUrlConfigCommand, - type CreateFunctionUrlConfigCommandInput, - type CreateFunctionUrlConfigCommandOutput, - DeleteAliasCommand, - type DeleteAliasCommandInput, - type DeleteAliasCommandOutput, - DeleteCodeSigningConfigCommand, - type DeleteCodeSigningConfigCommandInput, - type DeleteCodeSigningConfigCommandOutput, - DeleteEventSourceMappingCommand, - type DeleteEventSourceMappingCommandInput, - type DeleteEventSourceMappingCommandOutput, - DeleteFunctionCommand, - type DeleteFunctionCommandInput, - type DeleteFunctionCommandOutput, - DeleteFunctionCodeSigningConfigCommand, - type DeleteFunctionCodeSigningConfigCommandInput, - type DeleteFunctionCodeSigningConfigCommandOutput, - DeleteFunctionConcurrencyCommand, - type DeleteFunctionConcurrencyCommandInput, - type DeleteFunctionConcurrencyCommandOutput, - DeleteFunctionEventInvokeConfigCommand, - type DeleteFunctionEventInvokeConfigCommandInput, - type DeleteFunctionEventInvokeConfigCommandOutput, - DeleteFunctionUrlConfigCommand, - type DeleteFunctionUrlConfigCommandInput, - type DeleteFunctionUrlConfigCommandOutput, - DeleteLayerVersionCommand, - type DeleteLayerVersionCommandInput, - type DeleteLayerVersionCommandOutput, - DeleteProvisionedConcurrencyConfigCommand, - type DeleteProvisionedConcurrencyConfigCommandInput, - type DeleteProvisionedConcurrencyConfigCommandOutput, - GetAccountSettingsCommand, - type GetAccountSettingsCommandInput, - type GetAccountSettingsCommandOutput, - GetAliasCommand, - type GetAliasCommandInput, - type GetAliasCommandOutput, - GetCodeSigningConfigCommand, - type GetCodeSigningConfigCommandInput, - type GetCodeSigningConfigCommandOutput, - GetEventSourceMappingCommand, - type GetEventSourceMappingCommandInput, - type GetEventSourceMappingCommandOutput, - GetFunctionCommand, - type GetFunctionCommandInput, - type GetFunctionCommandOutput, - GetFunctionCodeSigningConfigCommand, - type GetFunctionCodeSigningConfigCommandInput, - type GetFunctionCodeSigningConfigCommandOutput, - GetFunctionConcurrencyCommand, - type GetFunctionConcurrencyCommandInput, - type GetFunctionConcurrencyCommandOutput, - GetFunctionConfigurationCommand, - type GetFunctionConfigurationCommandInput, - type GetFunctionConfigurationCommandOutput, - GetFunctionEventInvokeConfigCommand, - type GetFunctionEventInvokeConfigCommandInput, - type GetFunctionEventInvokeConfigCommandOutput, - GetFunctionUrlConfigCommand, - type GetFunctionUrlConfigCommandInput, - type GetFunctionUrlConfigCommandOutput, - GetLayerVersionCommand, - type GetLayerVersionCommandInput, - type GetLayerVersionCommandOutput, - GetLayerVersionByArnCommand, - type GetLayerVersionByArnCommandInput, - type GetLayerVersionByArnCommandOutput, - GetLayerVersionPolicyCommand, - type GetLayerVersionPolicyCommandInput, - type GetLayerVersionPolicyCommandOutput, - GetPolicyCommand, - type GetPolicyCommandInput, - type GetPolicyCommandOutput, - GetProvisionedConcurrencyConfigCommand, - type GetProvisionedConcurrencyConfigCommandInput, - type GetProvisionedConcurrencyConfigCommandOutput, - GetRuntimeManagementConfigCommand, - type GetRuntimeManagementConfigCommandInput, - type GetRuntimeManagementConfigCommandOutput, - InvokeCommand, - type InvokeCommandInput, - type InvokeCommandOutput, - InvokeAsyncCommand, - type InvokeAsyncCommandInput, - type InvokeAsyncCommandOutput, - InvokeWithResponseStreamCommand, - type InvokeWithResponseStreamCommandInput, - type InvokeWithResponseStreamCommandOutput, - ListAliasesCommand, - type ListAliasesCommandInput, - type ListAliasesCommandOutput, - ListCodeSigningConfigsCommand, - type ListCodeSigningConfigsCommandInput, - type ListCodeSigningConfigsCommandOutput, - ListEventSourceMappingsCommand, - type ListEventSourceMappingsCommandInput, - type ListEventSourceMappingsCommandOutput, - ListFunctionEventInvokeConfigsCommand, - type ListFunctionEventInvokeConfigsCommandInput, - type ListFunctionEventInvokeConfigsCommandOutput, - ListFunctionsCommand, - type ListFunctionsCommandInput, - type ListFunctionsCommandOutput, - ListFunctionsByCodeSigningConfigCommand, - type ListFunctionsByCodeSigningConfigCommandInput, - type ListFunctionsByCodeSigningConfigCommandOutput, - ListFunctionUrlConfigsCommand, - type ListFunctionUrlConfigsCommandInput, - type ListFunctionUrlConfigsCommandOutput, - ListLayersCommand, - type ListLayersCommandInput, - type ListLayersCommandOutput, - ListLayerVersionsCommand, - type ListLayerVersionsCommandInput, - type ListLayerVersionsCommandOutput, - ListProvisionedConcurrencyConfigsCommand, - type ListProvisionedConcurrencyConfigsCommandInput, - type ListProvisionedConcurrencyConfigsCommandOutput, - ListTagsCommand, - type ListTagsCommandInput, - type ListTagsCommandOutput, - ListVersionsByFunctionCommand, - type ListVersionsByFunctionCommandInput, - type ListVersionsByFunctionCommandOutput, - PublishLayerVersionCommand, - type PublishLayerVersionCommandInput, - type PublishLayerVersionCommandOutput, - PublishVersionCommand, - type PublishVersionCommandInput, - type PublishVersionCommandOutput, - PutFunctionCodeSigningConfigCommand, - type PutFunctionCodeSigningConfigCommandInput, - type PutFunctionCodeSigningConfigCommandOutput, - PutFunctionConcurrencyCommand, - type PutFunctionConcurrencyCommandInput, - type PutFunctionConcurrencyCommandOutput, - PutFunctionEventInvokeConfigCommand, - type PutFunctionEventInvokeConfigCommandInput, - type PutFunctionEventInvokeConfigCommandOutput, - PutProvisionedConcurrencyConfigCommand, - type PutProvisionedConcurrencyConfigCommandInput, - type PutProvisionedConcurrencyConfigCommandOutput, - PutRuntimeManagementConfigCommand, - type PutRuntimeManagementConfigCommandInput, - type PutRuntimeManagementConfigCommandOutput, - RemoveLayerVersionPermissionCommand, - type RemoveLayerVersionPermissionCommandInput, - type RemoveLayerVersionPermissionCommandOutput, - RemovePermissionCommand, - type RemovePermissionCommandInput, - type RemovePermissionCommandOutput, - TagResourceCommand, - type TagResourceCommandInput, - type TagResourceCommandOutput, - UntagResourceCommand, - type UntagResourceCommandInput, - type UntagResourceCommandOutput, - UpdateAliasCommand, - type UpdateAliasCommandInput, - type UpdateAliasCommandOutput, - UpdateCodeSigningConfigCommand, - type UpdateCodeSigningConfigCommandInput, - type UpdateCodeSigningConfigCommandOutput, - UpdateEventSourceMappingCommand, - type UpdateEventSourceMappingCommandInput, - type UpdateEventSourceMappingCommandOutput, - UpdateFunctionCodeCommand, - type UpdateFunctionCodeCommandInput, - type UpdateFunctionCodeCommandOutput, - UpdateFunctionConfigurationCommand, - type UpdateFunctionConfigurationCommandInput, - type UpdateFunctionConfigurationCommandOutput, - UpdateFunctionEventInvokeConfigCommand, - type UpdateFunctionEventInvokeConfigCommandInput, - type UpdateFunctionEventInvokeConfigCommandOutput, - UpdateFunctionUrlConfigCommand, - type UpdateFunctionUrlConfigCommandInput, - type UpdateFunctionUrlConfigCommandOutput, -} from "@aws-sdk/client-lambda"; -import { type HttpHandlerOptions as __HttpHandlerOptions } from "@aws-sdk/types"; -import { Context, Data, Effect, Layer, ReadonlyRecord } from "effect"; -import { - CodeSigningConfigNotFoundError, - CodeStorageExceededError, - CodeVerificationFailedError, - EC2AccessDeniedError, - EC2ThrottledError, - EC2UnexpectedError, - EFSIOError, - EFSMountConnectivityError, - EFSMountFailureError, - EFSMountTimeoutError, - ENILimitReachedError, - InvalidCodeSignatureError, - InvalidParameterValueError, - InvalidRequestContentError, - InvalidRuntimeError, - InvalidSecurityGroupIDError, - InvalidSubnetIDError, - InvalidZipFileError, - KMSAccessDeniedError, - KMSDisabledError, - KMSInvalidStateError, - KMSNotFoundError, - PolicyLengthExceededError, - PreconditionFailedError, - ProvisionedConcurrencyConfigNotFoundError, - RecursiveInvocationError, - RequestTooLargeError, - ResourceConflictError, - ResourceInUseError, - ResourceNotFoundError, - ResourceNotReadyError, - ServiceError, - SnapStartError, - SnapStartNotReadyError, - SnapStartTimeoutError, - SubnetIPAddressLimitReachedError, - TooManyRequestsError, - UnsupportedMediaTypeError, - SdkError, - TaggedException, -} from "./Errors"; -import { - DefaultLambdaClientInstanceLayer, - LambdaClientInstance, - LambdaClientInstanceLayer, -} from "./LambdaClientInstance"; -import { DefaultLambdaClientConfigLayer } from "./LambdaClientInstanceConfig"; - -const commands = { - AddLayerVersionPermissionCommand, - AddPermissionCommand, - CreateAliasCommand, - CreateCodeSigningConfigCommand, - CreateEventSourceMappingCommand, - CreateFunctionCommand, - CreateFunctionUrlConfigCommand, - DeleteAliasCommand, - DeleteCodeSigningConfigCommand, - DeleteEventSourceMappingCommand, - DeleteFunctionCommand, - DeleteFunctionCodeSigningConfigCommand, - DeleteFunctionConcurrencyCommand, - DeleteFunctionEventInvokeConfigCommand, - DeleteFunctionUrlConfigCommand, - DeleteLayerVersionCommand, - DeleteProvisionedConcurrencyConfigCommand, - GetAccountSettingsCommand, - GetAliasCommand, - GetCodeSigningConfigCommand, - GetEventSourceMappingCommand, - GetFunctionCommand, - GetFunctionCodeSigningConfigCommand, - GetFunctionConcurrencyCommand, - GetFunctionConfigurationCommand, - GetFunctionEventInvokeConfigCommand, - GetFunctionUrlConfigCommand, - GetLayerVersionCommand, - GetLayerVersionByArnCommand, - GetLayerVersionPolicyCommand, - GetPolicyCommand, - GetProvisionedConcurrencyConfigCommand, - GetRuntimeManagementConfigCommand, - InvokeCommand, - InvokeAsyncCommand, - InvokeWithResponseStreamCommand, - ListAliasesCommand, - ListCodeSigningConfigsCommand, - ListEventSourceMappingsCommand, - ListFunctionEventInvokeConfigsCommand, - ListFunctionsCommand, - ListFunctionsByCodeSigningConfigCommand, - ListFunctionUrlConfigsCommand, - ListLayersCommand, - ListLayerVersionsCommand, - ListProvisionedConcurrencyConfigsCommand, - ListTagsCommand, - ListVersionsByFunctionCommand, - PublishLayerVersionCommand, - PublishVersionCommand, - PutFunctionCodeSigningConfigCommand, - PutFunctionConcurrencyCommand, - PutFunctionEventInvokeConfigCommand, - PutProvisionedConcurrencyConfigCommand, - PutRuntimeManagementConfigCommand, - RemoveLayerVersionPermissionCommand, - RemovePermissionCommand, - TagResourceCommand, - UntagResourceCommand, - UpdateAliasCommand, - UpdateCodeSigningConfigCommand, - UpdateEventSourceMappingCommand, - UpdateFunctionCodeCommand, - UpdateFunctionConfigurationCommand, - UpdateFunctionEventInvokeConfigCommand, - UpdateFunctionUrlConfigCommand, -}; - -/** - * @since 1.0.0 - * @category models - */ -export interface LambdaService { - readonly _: unique symbol; - - /** - * @see {@link AddLayerVersionPermissionCommand} - */ - addLayerVersionPermission( - args: AddLayerVersionPermissionCommandInput, - options?: __HttpHandlerOptions, - ): Effect.Effect< - AddLayerVersionPermissionCommandOutput, - | SdkError - | InvalidParameterValueError - | PolicyLengthExceededError - | PreconditionFailedError - | ResourceConflictError - | ResourceNotFoundError - | ServiceError - | TooManyRequestsError - >; - - /** - * @see {@link AddPermissionCommand} - */ - addPermission( - args: AddPermissionCommandInput, - options?: __HttpHandlerOptions, - ): Effect.Effect< - AddPermissionCommandOutput, - | SdkError - | InvalidParameterValueError - | PolicyLengthExceededError - | PreconditionFailedError - | ResourceConflictError - | ResourceNotFoundError - | ServiceError - | TooManyRequestsError - >; - - /** - * @see {@link CreateAliasCommand} - */ - createAlias( - args: CreateAliasCommandInput, - options?: __HttpHandlerOptions, - ): Effect.Effect< - CreateAliasCommandOutput, - | SdkError - | InvalidParameterValueError - | ResourceConflictError - | ResourceNotFoundError - | ServiceError - | TooManyRequestsError - >; - - /** - * @see {@link CreateCodeSigningConfigCommand} - */ - createCodeSigningConfig( - args: CreateCodeSigningConfigCommandInput, - options?: __HttpHandlerOptions, - ): Effect.Effect< - CreateCodeSigningConfigCommandOutput, - SdkError | InvalidParameterValueError | ServiceError - >; - - /** - * @see {@link CreateEventSourceMappingCommand} - */ - createEventSourceMapping( - args: CreateEventSourceMappingCommandInput, - options?: __HttpHandlerOptions, - ): Effect.Effect< - CreateEventSourceMappingCommandOutput, - | SdkError - | InvalidParameterValueError - | ResourceConflictError - | ResourceNotFoundError - | ServiceError - | TooManyRequestsError - >; - - /** - * @see {@link CreateFunctionCommand} - */ - createFunction( - args: CreateFunctionCommandInput, - options?: __HttpHandlerOptions, - ): Effect.Effect< - CreateFunctionCommandOutput, - | SdkError - | CodeSigningConfigNotFoundError - | CodeStorageExceededError - | CodeVerificationFailedError - | InvalidCodeSignatureError - | InvalidParameterValueError - | ResourceConflictError - | ResourceNotFoundError - | ServiceError - | TooManyRequestsError - >; - - /** - * @see {@link CreateFunctionUrlConfigCommand} - */ - createFunctionUrlConfig( - args: CreateFunctionUrlConfigCommandInput, - options?: __HttpHandlerOptions, - ): Effect.Effect< - CreateFunctionUrlConfigCommandOutput, - | SdkError - | InvalidParameterValueError - | ResourceConflictError - | ResourceNotFoundError - | ServiceError - | TooManyRequestsError - >; - - /** - * @see {@link DeleteAliasCommand} - */ - deleteAlias( - args: DeleteAliasCommandInput, - options?: __HttpHandlerOptions, - ): Effect.Effect< - DeleteAliasCommandOutput, - | SdkError - | InvalidParameterValueError - | ResourceConflictError - | ServiceError - | TooManyRequestsError - >; - - /** - * @see {@link DeleteCodeSigningConfigCommand} - */ - deleteCodeSigningConfig( - args: DeleteCodeSigningConfigCommandInput, - options?: __HttpHandlerOptions, - ): Effect.Effect< - DeleteCodeSigningConfigCommandOutput, - | SdkError - | InvalidParameterValueError - | ResourceConflictError - | ResourceNotFoundError - | ServiceError - >; - - /** - * @see {@link DeleteEventSourceMappingCommand} - */ - deleteEventSourceMapping( - args: DeleteEventSourceMappingCommandInput, - options?: __HttpHandlerOptions, - ): Effect.Effect< - DeleteEventSourceMappingCommandOutput, - | SdkError - | InvalidParameterValueError - | ResourceConflictError - | ResourceInUseError - | ResourceNotFoundError - | ServiceError - | TooManyRequestsError - >; - - /** - * @see {@link DeleteFunctionCommand} - */ - deleteFunction( - args: DeleteFunctionCommandInput, - options?: __HttpHandlerOptions, - ): Effect.Effect< - DeleteFunctionCommandOutput, - | SdkError - | InvalidParameterValueError - | ResourceConflictError - | ResourceNotFoundError - | ServiceError - | TooManyRequestsError - >; - - /** - * @see {@link DeleteFunctionCodeSigningConfigCommand} - */ - deleteFunctionCodeSigningConfig( - args: DeleteFunctionCodeSigningConfigCommandInput, - options?: __HttpHandlerOptions, - ): Effect.Effect< - DeleteFunctionCodeSigningConfigCommandOutput, - | SdkError - | CodeSigningConfigNotFoundError - | InvalidParameterValueError - | ResourceConflictError - | ResourceNotFoundError - | ServiceError - | TooManyRequestsError - >; - - /** - * @see {@link DeleteFunctionConcurrencyCommand} - */ - deleteFunctionConcurrency( - args: DeleteFunctionConcurrencyCommandInput, - options?: __HttpHandlerOptions, - ): Effect.Effect< - DeleteFunctionConcurrencyCommandOutput, - | SdkError - | InvalidParameterValueError - | ResourceConflictError - | ResourceNotFoundError - | ServiceError - | TooManyRequestsError - >; - - /** - * @see {@link DeleteFunctionEventInvokeConfigCommand} - */ - deleteFunctionEventInvokeConfig( - args: DeleteFunctionEventInvokeConfigCommandInput, - options?: __HttpHandlerOptions, - ): Effect.Effect< - DeleteFunctionEventInvokeConfigCommandOutput, - | SdkError - | InvalidParameterValueError - | ResourceConflictError - | ResourceNotFoundError - | ServiceError - | TooManyRequestsError - >; - - /** - * @see {@link DeleteFunctionUrlConfigCommand} - */ - deleteFunctionUrlConfig( - args: DeleteFunctionUrlConfigCommandInput, - options?: __HttpHandlerOptions, - ): Effect.Effect< - DeleteFunctionUrlConfigCommandOutput, - | SdkError - | ResourceConflictError - | ResourceNotFoundError - | ServiceError - | TooManyRequestsError - >; - - /** - * @see {@link DeleteLayerVersionCommand} - */ - deleteLayerVersion( - args: DeleteLayerVersionCommandInput, - options?: __HttpHandlerOptions, - ): Effect.Effect< - DeleteLayerVersionCommandOutput, - SdkError | ServiceError | TooManyRequestsError - >; - - /** - * @see {@link DeleteProvisionedConcurrencyConfigCommand} - */ - deleteProvisionedConcurrencyConfig( - args: DeleteProvisionedConcurrencyConfigCommandInput, - options?: __HttpHandlerOptions, - ): Effect.Effect< - DeleteProvisionedConcurrencyConfigCommandOutput, - | SdkError - | InvalidParameterValueError - | ResourceConflictError - | ResourceNotFoundError - | ServiceError - | TooManyRequestsError - >; - - /** - * @see {@link GetAccountSettingsCommand} - */ - getAccountSettings( - args: GetAccountSettingsCommandInput, - options?: __HttpHandlerOptions, - ): Effect.Effect< - GetAccountSettingsCommandOutput, - SdkError | ServiceError | TooManyRequestsError - >; - - /** - * @see {@link GetAliasCommand} - */ - getAlias( - args: GetAliasCommandInput, - options?: __HttpHandlerOptions, - ): Effect.Effect< - GetAliasCommandOutput, - | SdkError - | InvalidParameterValueError - | ResourceNotFoundError - | ServiceError - | TooManyRequestsError - >; - - /** - * @see {@link GetCodeSigningConfigCommand} - */ - getCodeSigningConfig( - args: GetCodeSigningConfigCommandInput, - options?: __HttpHandlerOptions, - ): Effect.Effect< - GetCodeSigningConfigCommandOutput, - SdkError | InvalidParameterValueError | ResourceNotFoundError | ServiceError - >; - - /** - * @see {@link GetEventSourceMappingCommand} - */ - getEventSourceMapping( - args: GetEventSourceMappingCommandInput, - options?: __HttpHandlerOptions, - ): Effect.Effect< - GetEventSourceMappingCommandOutput, - | SdkError - | InvalidParameterValueError - | ResourceNotFoundError - | ServiceError - | TooManyRequestsError - >; - - /** - * @see {@link GetFunctionCommand} - */ - getFunction( - args: GetFunctionCommandInput, - options?: __HttpHandlerOptions, - ): Effect.Effect< - GetFunctionCommandOutput, - | SdkError - | InvalidParameterValueError - | ResourceNotFoundError - | ServiceError - | TooManyRequestsError - >; - - /** - * @see {@link GetFunctionCodeSigningConfigCommand} - */ - getFunctionCodeSigningConfig( - args: GetFunctionCodeSigningConfigCommandInput, - options?: __HttpHandlerOptions, - ): Effect.Effect< - GetFunctionCodeSigningConfigCommandOutput, - | SdkError - | InvalidParameterValueError - | ResourceNotFoundError - | ServiceError - | TooManyRequestsError - >; - - /** - * @see {@link GetFunctionConcurrencyCommand} - */ - getFunctionConcurrency( - args: GetFunctionConcurrencyCommandInput, - options?: __HttpHandlerOptions, - ): Effect.Effect< - GetFunctionConcurrencyCommandOutput, - | SdkError - | InvalidParameterValueError - | ResourceNotFoundError - | ServiceError - | TooManyRequestsError - >; - - /** - * @see {@link GetFunctionConfigurationCommand} - */ - getFunctionConfiguration( - args: GetFunctionConfigurationCommandInput, - options?: __HttpHandlerOptions, - ): Effect.Effect< - GetFunctionConfigurationCommandOutput, - | SdkError - | InvalidParameterValueError - | ResourceNotFoundError - | ServiceError - | TooManyRequestsError - >; - - /** - * @see {@link GetFunctionEventInvokeConfigCommand} - */ - getFunctionEventInvokeConfig( - args: GetFunctionEventInvokeConfigCommandInput, - options?: __HttpHandlerOptions, - ): Effect.Effect< - GetFunctionEventInvokeConfigCommandOutput, - | SdkError - | InvalidParameterValueError - | ResourceNotFoundError - | ServiceError - | TooManyRequestsError - >; - - /** - * @see {@link GetFunctionUrlConfigCommand} - */ - getFunctionUrlConfig( - args: GetFunctionUrlConfigCommandInput, - options?: __HttpHandlerOptions, - ): Effect.Effect< - GetFunctionUrlConfigCommandOutput, - | SdkError - | InvalidParameterValueError - | ResourceNotFoundError - | ServiceError - | TooManyRequestsError - >; - - /** - * @see {@link GetLayerVersionCommand} - */ - getLayerVersion( - args: GetLayerVersionCommandInput, - options?: __HttpHandlerOptions, - ): Effect.Effect< - GetLayerVersionCommandOutput, - | SdkError - | InvalidParameterValueError - | ResourceNotFoundError - | ServiceError - | TooManyRequestsError - >; - - /** - * @see {@link GetLayerVersionByArnCommand} - */ - getLayerVersionByArn( - args: GetLayerVersionByArnCommandInput, - options?: __HttpHandlerOptions, - ): Effect.Effect< - GetLayerVersionByArnCommandOutput, - | SdkError - | InvalidParameterValueError - | ResourceNotFoundError - | ServiceError - | TooManyRequestsError - >; - - /** - * @see {@link GetLayerVersionPolicyCommand} - */ - getLayerVersionPolicy( - args: GetLayerVersionPolicyCommandInput, - options?: __HttpHandlerOptions, - ): Effect.Effect< - GetLayerVersionPolicyCommandOutput, - | SdkError - | InvalidParameterValueError - | ResourceNotFoundError - | ServiceError - | TooManyRequestsError - >; - - /** - * @see {@link GetPolicyCommand} - */ - getPolicy( - args: GetPolicyCommandInput, - options?: __HttpHandlerOptions, - ): Effect.Effect< - GetPolicyCommandOutput, - | SdkError - | InvalidParameterValueError - | ResourceNotFoundError - | ServiceError - | TooManyRequestsError - >; - - /** - * @see {@link GetProvisionedConcurrencyConfigCommand} - */ - getProvisionedConcurrencyConfig( - args: GetProvisionedConcurrencyConfigCommandInput, - options?: __HttpHandlerOptions, - ): Effect.Effect< - GetProvisionedConcurrencyConfigCommandOutput, - | SdkError - | InvalidParameterValueError - | ProvisionedConcurrencyConfigNotFoundError - | ResourceNotFoundError - | ServiceError - | TooManyRequestsError - >; - - /** - * @see {@link GetRuntimeManagementConfigCommand} - */ - getRuntimeManagementConfig( - args: GetRuntimeManagementConfigCommandInput, - options?: __HttpHandlerOptions, - ): Effect.Effect< - GetRuntimeManagementConfigCommandOutput, - | SdkError - | InvalidParameterValueError - | ResourceNotFoundError - | ServiceError - | TooManyRequestsError - >; - - /** - * @see {@link InvokeCommand} - */ - invoke( - args: InvokeCommandInput, - options?: __HttpHandlerOptions, - ): Effect.Effect< - InvokeCommandOutput, - | SdkError - | EC2AccessDeniedError - | EC2ThrottledError - | EC2UnexpectedError - | EFSIOError - | EFSMountConnectivityError - | EFSMountFailureError - | EFSMountTimeoutError - | ENILimitReachedError - | InvalidParameterValueError - | InvalidRequestContentError - | InvalidRuntimeError - | InvalidSecurityGroupIDError - | InvalidSubnetIDError - | InvalidZipFileError - | KMSAccessDeniedError - | KMSDisabledError - | KMSInvalidStateError - | KMSNotFoundError - | RecursiveInvocationError - | RequestTooLargeError - | ResourceConflictError - | ResourceNotFoundError - | ResourceNotReadyError - | ServiceError - | SnapStartError - | SnapStartNotReadyError - | SnapStartTimeoutError - | SubnetIPAddressLimitReachedError - | TooManyRequestsError - | UnsupportedMediaTypeError - >; - - /** - * @see {@link InvokeAsyncCommand} - */ - invokeAsync( - args: InvokeAsyncCommandInput, - options?: __HttpHandlerOptions, - ): Effect.Effect< - InvokeAsyncCommandOutput, - | SdkError - | InvalidRequestContentError - | InvalidRuntimeError - | ResourceConflictError - | ResourceNotFoundError - | ServiceError - >; - - /** - * @see {@link InvokeWithResponseStreamCommand} - */ - invokeWithResponseStream( - args: InvokeWithResponseStreamCommandInput, - options?: __HttpHandlerOptions, - ): Effect.Effect< - InvokeWithResponseStreamCommandOutput, - | SdkError - | EC2AccessDeniedError - | EC2ThrottledError - | EC2UnexpectedError - | EFSIOError - | EFSMountConnectivityError - | EFSMountFailureError - | EFSMountTimeoutError - | ENILimitReachedError - | InvalidParameterValueError - | InvalidRequestContentError - | InvalidRuntimeError - | InvalidSecurityGroupIDError - | InvalidSubnetIDError - | InvalidZipFileError - | KMSAccessDeniedError - | KMSDisabledError - | KMSInvalidStateError - | KMSNotFoundError - | RecursiveInvocationError - | RequestTooLargeError - | ResourceConflictError - | ResourceNotFoundError - | ResourceNotReadyError - | ServiceError - | SnapStartError - | SnapStartNotReadyError - | SnapStartTimeoutError - | SubnetIPAddressLimitReachedError - | TooManyRequestsError - | UnsupportedMediaTypeError - >; - - /** - * @see {@link ListAliasesCommand} - */ - listAliases( - args: ListAliasesCommandInput, - options?: __HttpHandlerOptions, - ): Effect.Effect< - ListAliasesCommandOutput, - | SdkError - | InvalidParameterValueError - | ResourceNotFoundError - | ServiceError - | TooManyRequestsError - >; - - /** - * @see {@link ListCodeSigningConfigsCommand} - */ - listCodeSigningConfigs( - args: ListCodeSigningConfigsCommandInput, - options?: __HttpHandlerOptions, - ): Effect.Effect< - ListCodeSigningConfigsCommandOutput, - SdkError | InvalidParameterValueError | ServiceError - >; - - /** - * @see {@link ListEventSourceMappingsCommand} - */ - listEventSourceMappings( - args: ListEventSourceMappingsCommandInput, - options?: __HttpHandlerOptions, - ): Effect.Effect< - ListEventSourceMappingsCommandOutput, - | SdkError - | InvalidParameterValueError - | ResourceNotFoundError - | ServiceError - | TooManyRequestsError - >; - - /** - * @see {@link ListFunctionEventInvokeConfigsCommand} - */ - listFunctionEventInvokeConfigs( - args: ListFunctionEventInvokeConfigsCommandInput, - options?: __HttpHandlerOptions, - ): Effect.Effect< - ListFunctionEventInvokeConfigsCommandOutput, - | SdkError - | InvalidParameterValueError - | ResourceNotFoundError - | ServiceError - | TooManyRequestsError - >; - - /** - * @see {@link ListFunctionsCommand} - */ - listFunctions( - args: ListFunctionsCommandInput, - options?: __HttpHandlerOptions, - ): Effect.Effect< - ListFunctionsCommandOutput, - SdkError | InvalidParameterValueError | ServiceError | TooManyRequestsError - >; - - /** - * @see {@link ListFunctionsByCodeSigningConfigCommand} - */ - listFunctionsByCodeSigningConfig( - args: ListFunctionsByCodeSigningConfigCommandInput, - options?: __HttpHandlerOptions, - ): Effect.Effect< - ListFunctionsByCodeSigningConfigCommandOutput, - SdkError | InvalidParameterValueError | ResourceNotFoundError | ServiceError - >; - - /** - * @see {@link ListFunctionUrlConfigsCommand} - */ - listFunctionUrlConfigs( - args: ListFunctionUrlConfigsCommandInput, - options?: __HttpHandlerOptions, - ): Effect.Effect< - ListFunctionUrlConfigsCommandOutput, - | SdkError - | InvalidParameterValueError - | ResourceNotFoundError - | ServiceError - | TooManyRequestsError - >; - - /** - * @see {@link ListLayersCommand} - */ - listLayers( - args: ListLayersCommandInput, - options?: __HttpHandlerOptions, - ): Effect.Effect< - ListLayersCommandOutput, - SdkError | InvalidParameterValueError | ServiceError | TooManyRequestsError - >; - - /** - * @see {@link ListLayerVersionsCommand} - */ - listLayerVersions( - args: ListLayerVersionsCommandInput, - options?: __HttpHandlerOptions, - ): Effect.Effect< - ListLayerVersionsCommandOutput, - | SdkError - | InvalidParameterValueError - | ResourceNotFoundError - | ServiceError - | TooManyRequestsError - >; - - /** - * @see {@link ListProvisionedConcurrencyConfigsCommand} - */ - listProvisionedConcurrencyConfigs( - args: ListProvisionedConcurrencyConfigsCommandInput, - options?: __HttpHandlerOptions, - ): Effect.Effect< - ListProvisionedConcurrencyConfigsCommandOutput, - | SdkError - | InvalidParameterValueError - | ResourceNotFoundError - | ServiceError - | TooManyRequestsError - >; - - /** - * @see {@link ListTagsCommand} - */ - listTags( - args: ListTagsCommandInput, - options?: __HttpHandlerOptions, - ): Effect.Effect< - ListTagsCommandOutput, - | SdkError - | InvalidParameterValueError - | ResourceNotFoundError - | ServiceError - | TooManyRequestsError - >; - - /** - * @see {@link ListVersionsByFunctionCommand} - */ - listVersionsByFunction( - args: ListVersionsByFunctionCommandInput, - options?: __HttpHandlerOptions, - ): Effect.Effect< - ListVersionsByFunctionCommandOutput, - | SdkError - | InvalidParameterValueError - | ResourceNotFoundError - | ServiceError - | TooManyRequestsError - >; - - /** - * @see {@link PublishLayerVersionCommand} - */ - publishLayerVersion( - args: PublishLayerVersionCommandInput, - options?: __HttpHandlerOptions, - ): Effect.Effect< - PublishLayerVersionCommandOutput, - | SdkError - | CodeStorageExceededError - | InvalidParameterValueError - | ResourceNotFoundError - | ServiceError - | TooManyRequestsError - >; - - /** - * @see {@link PublishVersionCommand} - */ - publishVersion( - args: PublishVersionCommandInput, - options?: __HttpHandlerOptions, - ): Effect.Effect< - PublishVersionCommandOutput, - | SdkError - | CodeStorageExceededError - | InvalidParameterValueError - | PreconditionFailedError - | ResourceConflictError - | ResourceNotFoundError - | ServiceError - | TooManyRequestsError - >; - - /** - * @see {@link PutFunctionCodeSigningConfigCommand} - */ - putFunctionCodeSigningConfig( - args: PutFunctionCodeSigningConfigCommandInput, - options?: __HttpHandlerOptions, - ): Effect.Effect< - PutFunctionCodeSigningConfigCommandOutput, - | SdkError - | CodeSigningConfigNotFoundError - | InvalidParameterValueError - | ResourceConflictError - | ResourceNotFoundError - | ServiceError - | TooManyRequestsError - >; - - /** - * @see {@link PutFunctionConcurrencyCommand} - */ - putFunctionConcurrency( - args: PutFunctionConcurrencyCommandInput, - options?: __HttpHandlerOptions, - ): Effect.Effect< - PutFunctionConcurrencyCommandOutput, - | SdkError - | InvalidParameterValueError - | ResourceConflictError - | ResourceNotFoundError - | ServiceError - | TooManyRequestsError - >; - - /** - * @see {@link PutFunctionEventInvokeConfigCommand} - */ - putFunctionEventInvokeConfig( - args: PutFunctionEventInvokeConfigCommandInput, - options?: __HttpHandlerOptions, - ): Effect.Effect< - PutFunctionEventInvokeConfigCommandOutput, - | SdkError - | InvalidParameterValueError - | ResourceConflictError - | ResourceNotFoundError - | ServiceError - | TooManyRequestsError - >; - - /** - * @see {@link PutProvisionedConcurrencyConfigCommand} - */ - putProvisionedConcurrencyConfig( - args: PutProvisionedConcurrencyConfigCommandInput, - options?: __HttpHandlerOptions, - ): Effect.Effect< - PutProvisionedConcurrencyConfigCommandOutput, - | SdkError - | InvalidParameterValueError - | ResourceConflictError - | ResourceNotFoundError - | ServiceError - | TooManyRequestsError - >; - - /** - * @see {@link PutRuntimeManagementConfigCommand} - */ - putRuntimeManagementConfig( - args: PutRuntimeManagementConfigCommandInput, - options?: __HttpHandlerOptions, - ): Effect.Effect< - PutRuntimeManagementConfigCommandOutput, - | SdkError - | InvalidParameterValueError - | ResourceConflictError - | ResourceNotFoundError - | ServiceError - | TooManyRequestsError - >; - - /** - * @see {@link RemoveLayerVersionPermissionCommand} - */ - removeLayerVersionPermission( - args: RemoveLayerVersionPermissionCommandInput, - options?: __HttpHandlerOptions, - ): Effect.Effect< - RemoveLayerVersionPermissionCommandOutput, - | SdkError - | InvalidParameterValueError - | PreconditionFailedError - | ResourceNotFoundError - | ServiceError - | TooManyRequestsError - >; - - /** - * @see {@link RemovePermissionCommand} - */ - removePermission( - args: RemovePermissionCommandInput, - options?: __HttpHandlerOptions, - ): Effect.Effect< - RemovePermissionCommandOutput, - | SdkError - | InvalidParameterValueError - | PreconditionFailedError - | ResourceNotFoundError - | ServiceError - | TooManyRequestsError - >; - - /** - * @see {@link TagResourceCommand} - */ - tagResource( - args: TagResourceCommandInput, - options?: __HttpHandlerOptions, - ): Effect.Effect< - TagResourceCommandOutput, - | SdkError - | InvalidParameterValueError - | ResourceConflictError - | ResourceNotFoundError - | ServiceError - | TooManyRequestsError - >; - - /** - * @see {@link UntagResourceCommand} - */ - untagResource( - args: UntagResourceCommandInput, - options?: __HttpHandlerOptions, - ): Effect.Effect< - UntagResourceCommandOutput, - | SdkError - | InvalidParameterValueError - | ResourceConflictError - | ResourceNotFoundError - | ServiceError - | TooManyRequestsError - >; - - /** - * @see {@link UpdateAliasCommand} - */ - updateAlias( - args: UpdateAliasCommandInput, - options?: __HttpHandlerOptions, - ): Effect.Effect< - UpdateAliasCommandOutput, - | SdkError - | InvalidParameterValueError - | PreconditionFailedError - | ResourceConflictError - | ResourceNotFoundError - | ServiceError - | TooManyRequestsError - >; - - /** - * @see {@link UpdateCodeSigningConfigCommand} - */ - updateCodeSigningConfig( - args: UpdateCodeSigningConfigCommandInput, - options?: __HttpHandlerOptions, - ): Effect.Effect< - UpdateCodeSigningConfigCommandOutput, - SdkError | InvalidParameterValueError | ResourceNotFoundError | ServiceError - >; - - /** - * @see {@link UpdateEventSourceMappingCommand} - */ - updateEventSourceMapping( - args: UpdateEventSourceMappingCommandInput, - options?: __HttpHandlerOptions, - ): Effect.Effect< - UpdateEventSourceMappingCommandOutput, - | SdkError - | InvalidParameterValueError - | ResourceConflictError - | ResourceInUseError - | ResourceNotFoundError - | ServiceError - | TooManyRequestsError - >; - - /** - * @see {@link UpdateFunctionCodeCommand} - */ - updateFunctionCode( - args: UpdateFunctionCodeCommandInput, - options?: __HttpHandlerOptions, - ): Effect.Effect< - UpdateFunctionCodeCommandOutput, - | SdkError - | CodeSigningConfigNotFoundError - | CodeStorageExceededError - | CodeVerificationFailedError - | InvalidCodeSignatureError - | InvalidParameterValueError - | PreconditionFailedError - | ResourceConflictError - | ResourceNotFoundError - | ServiceError - | TooManyRequestsError - >; - - /** - * @see {@link UpdateFunctionConfigurationCommand} - */ - updateFunctionConfiguration( - args: UpdateFunctionConfigurationCommandInput, - options?: __HttpHandlerOptions, - ): Effect.Effect< - UpdateFunctionConfigurationCommandOutput, - | SdkError - | CodeSigningConfigNotFoundError - | CodeVerificationFailedError - | InvalidCodeSignatureError - | InvalidParameterValueError - | PreconditionFailedError - | ResourceConflictError - | ResourceNotFoundError - | ServiceError - | TooManyRequestsError - >; - - /** - * @see {@link UpdateFunctionEventInvokeConfigCommand} - */ - updateFunctionEventInvokeConfig( - args: UpdateFunctionEventInvokeConfigCommandInput, - options?: __HttpHandlerOptions, - ): Effect.Effect< - UpdateFunctionEventInvokeConfigCommandOutput, - | SdkError - | InvalidParameterValueError - | ResourceConflictError - | ResourceNotFoundError - | ServiceError - | TooManyRequestsError - >; - - /** - * @see {@link UpdateFunctionUrlConfigCommand} - */ - updateFunctionUrlConfig( - args: UpdateFunctionUrlConfigCommandInput, - options?: __HttpHandlerOptions, - ): Effect.Effect< - UpdateFunctionUrlConfigCommandOutput, - | SdkError - | InvalidParameterValueError - | ResourceConflictError - | ResourceNotFoundError - | ServiceError - | TooManyRequestsError - >; -} - -/** - * @since 1.0.0 - * @category tags - */ -export const LambdaService = Context.GenericTag( - "@effect-aws/client-lambda/LambdaService", -); - -/** - * @since 1.0.0 - * @category constructors - */ -export const makeLambdaService = Effect.gen(function* (_) { - const client = yield* _(LambdaClientInstance); - - return ReadonlyRecord.toEntries(commands).reduce((acc, [command]) => { - const CommandCtor = commands[command] as any; - const methodImpl = (args: any, options: any) => - Effect.tryPromise({ - try: () => client.send(new CommandCtor(args), options ?? {}), - catch: (e) => { - if (e instanceof LambdaServiceException) { - const ServiceException = Data.tagged< - TaggedException - >(e.name); - - return ServiceException({ - ...e, - message: e.message, - stack: e.stack, - }); - } - if (e instanceof Error) { - return SdkError({ - ...e, - name: "SdkError", - message: e.message, - stack: e.stack, - }); - } - throw e; - }, - }); - const methodName = (command[0].toLowerCase() + command.slice(1)).replace( - /Command$/, - "", - ); - return { ...acc, [methodName]: methodImpl }; - }, {}) as LambdaService; -}); - -/** - * @since 1.0.0 - * @category layers - */ -export const BaseLambdaServiceLayer = Layer.effect( - LambdaService, - makeLambdaService, -); - -/** - * @since 1.0.0 - * @category layers - */ -export const LambdaServiceLayer = BaseLambdaServiceLayer.pipe( - Layer.provide(LambdaClientInstanceLayer), -); - -/** - * @since 1.0.0 - * @category layers - */ -export const DefaultLambdaServiceLayer = LambdaServiceLayer.pipe( - Layer.provide(DefaultLambdaClientConfigLayer), -); - -// -------------------- Danger Zone -------------------- - -/** - * @since 0.1.0 - * @deprecated - */ -export const BaseLambdaServiceEffect = makeLambdaService; - -/** - * @since 0.1.0 - * @deprecated - */ -export const LambdaServiceEffect = BaseLambdaServiceEffect.pipe( - Effect.provide(LambdaClientInstanceLayer), -); - -/** - * @since 0.1.0 - * @deprecated - */ -export const DefaultLambdaServiceEffect = BaseLambdaServiceEffect.pipe( - Effect.provide(DefaultLambdaClientInstanceLayer), -); diff --git a/packages/client-lambda/src/index.ts b/packages/client-lambda/src/index.ts deleted file mode 100644 index 485e4e6..0000000 --- a/packages/client-lambda/src/index.ts +++ /dev/null @@ -1,4 +0,0 @@ -export * from "./Errors"; -export * from "./LambdaClientInstance"; -export * from "./LambdaClientInstanceConfig"; -export * from "./LambdaService"; diff --git a/packages/client-lambda/test/Lambda.test.ts b/packages/client-lambda/test/Lambda.test.ts deleted file mode 100644 index 8bd8139..0000000 --- a/packages/client-lambda/test/Lambda.test.ts +++ /dev/null @@ -1,162 +0,0 @@ -import { - type InvokeCommandInput, - InvokeCommand, - LambdaClient, -} from "@aws-sdk/client-lambda"; -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 * as Layer from "effect/Layer"; -import { - BaseLambdaServiceLayer, - DefaultLambdaClientConfigLayer, - DefaultLambdaServiceLayer, - LambdaClientInstance, - LambdaClientInstanceConfig, - LambdaService, - LambdaServiceLayer, - SdkError, -} from "../src"; - -import "aws-sdk-client-mock-jest"; - -const clientMock = mockClient(LambdaClient); - -describe("LambdaClientImpl", () => { - it("default", async () => { - clientMock.reset().on(InvokeCommand).resolves({}); - - const args: InvokeCommandInput = { FunctionName: "test", Payload: "test" }; - - const program = Effect.flatMap(LambdaService, (service) => - service.invoke(args), - ); - - const result = await pipe( - program, - Effect.provide(DefaultLambdaServiceLayer), - Effect.runPromiseExit, - ); - - expect(result).toEqual(Exit.succeed({})); - expect(clientMock).toHaveReceivedCommandTimes(InvokeCommand, 1); - expect(clientMock).toHaveReceivedCommandWith(InvokeCommand, args); - }); - - it("configurable", async () => { - clientMock.reset().on(InvokeCommand).resolves({}); - - const args: InvokeCommandInput = { FunctionName: "test", Payload: "test" }; - - const program = Effect.flatMap(LambdaService, (service) => - service.invoke(args), - ); - - const LambdaClientConfigLayer = Layer.succeed(LambdaClientInstanceConfig, { - region: "eu-central-1", - }); - const CustomLambdaServiceLayer = LambdaServiceLayer.pipe( - Layer.provide(LambdaClientConfigLayer), - ); - - const result = await pipe( - program, - Effect.provide(CustomLambdaServiceLayer), - Effect.runPromiseExit, - ); - - expect(result).toEqual(Exit.succeed({})); - expect(clientMock).toHaveReceivedCommandTimes(InvokeCommand, 1); - expect(clientMock).toHaveReceivedCommandWith(InvokeCommand, args); - }); - - it("base", async () => { - clientMock.reset().on(InvokeCommand).resolves({}); - - const args: InvokeCommandInput = { FunctionName: "test", Payload: "test" }; - - const program = Effect.flatMap(LambdaService, (service) => - service.invoke(args), - ); - - const LambdaClientInstanceLayer = Layer.succeed( - LambdaClientInstance, - new LambdaClient({ region: "eu-central-1" }), - ); - const CustomLambdaServiceLayer = BaseLambdaServiceLayer.pipe( - Layer.provide(LambdaClientInstanceLayer), - ); - - const result = await pipe( - program, - Effect.provide(CustomLambdaServiceLayer), - Effect.runPromiseExit, - ); - - expect(result).toEqual(Exit.succeed({})); - expect(clientMock).toHaveReceivedCommandTimes(InvokeCommand, 1); - expect(clientMock).toHaveReceivedCommandWith(InvokeCommand, args); - }); - - it("extended", async () => { - clientMock.reset().on(InvokeCommand).resolves({}); - - const args: InvokeCommandInput = { FunctionName: "test", Payload: "test" }; - - const program = Effect.flatMap(LambdaService, (service) => - service.invoke(args), - ); - - const LambdaClientInstanceLayer = Layer.effect( - LambdaClientInstance, - Effect.map( - LambdaClientInstanceConfig, - (config) => new LambdaClient({ ...config, region: "eu-central-1" }), - ), - ); - const CustomLambdaServiceLayer = BaseLambdaServiceLayer.pipe( - Layer.provide(LambdaClientInstanceLayer), - Layer.provide(DefaultLambdaClientConfigLayer), - ); - - const result = await pipe( - program, - Effect.provide(CustomLambdaServiceLayer), - Effect.runPromiseExit, - ); - - expect(result).toEqual(Exit.succeed({})); - expect(clientMock).toHaveReceivedCommandTimes(InvokeCommand, 1); - expect(clientMock).toHaveReceivedCommandWith(InvokeCommand, args); - }); - - it("fail", async () => { - clientMock.reset().on(InvokeCommand).rejects(new Error("test")); - - const args: InvokeCommandInput = { FunctionName: "test", Payload: "test" }; - - const program = Effect.flatMap(LambdaService, (service) => - service.invoke(args), - ); - - const result = await pipe( - program, - Effect.provide(DefaultLambdaServiceLayer), - Effect.runPromiseExit, - ); - - expect(result).toEqual( - Exit.fail( - SdkError({ - ...new Error("test"), - name: "SdkError", - message: "test", - stack: expect.any(String), - }), - ), - ); - expect(clientMock).toHaveReceivedCommandTimes(InvokeCommand, 1); - expect(clientMock).toHaveReceivedCommandWith(InvokeCommand, args); - }); -}); diff --git a/packages/client-lambda/tsconfig.dev.json b/packages/client-lambda/tsconfig.dev.json deleted file mode 100644 index 278f027..0000000 --- a/packages/client-lambda/tsconfig.dev.json +++ /dev/null @@ -1,37 +0,0 @@ -// ~~ Generated by projen. To modify, edit .projenrc.js and run "npx projen". -{ - "compilerOptions": { - "alwaysStrict": true, - "declaration": true, - "esModuleInterop": true, - "experimentalDecorators": true, - "inlineSourceMap": true, - "inlineSources": true, - "lib": [ - "es2019", - "dom" - ], - "module": "CommonJS", - "noEmitOnError": false, - "noFallthroughCasesInSwitch": true, - "noImplicitAny": true, - "noImplicitReturns": true, - "noImplicitThis": true, - "noUnusedLocals": true, - "noUnusedParameters": true, - "resolveJsonModule": true, - "strict": true, - "strictNullChecks": true, - "strictPropertyInitialization": true, - "stripInternal": true, - "target": "ES2019", - "moduleResolution": "node" - }, - "include": [ - "src/**/*.ts", - "test/**/*.ts" - ], - "exclude": [ - "node_modules" - ] -} diff --git a/packages/client-lambda/tsconfig.esm.json b/packages/client-lambda/tsconfig.esm.json deleted file mode 100644 index 1b04668..0000000 --- a/packages/client-lambda/tsconfig.esm.json +++ /dev/null @@ -1,10 +0,0 @@ -{ - "extends": "./tsconfig.json", - "compilerOptions": { - "outDir": "./lib/esm", - "module": "es6", - "resolveJsonModule": false, - "declaration": false - }, - "//": "~~ Generated by projen. To modify, edit .projenrc.js and run \"npx projen\"." -} diff --git a/packages/client-lambda/tsconfig.json b/packages/client-lambda/tsconfig.json deleted file mode 100644 index 576047c..0000000 --- a/packages/client-lambda/tsconfig.json +++ /dev/null @@ -1,36 +0,0 @@ -// ~~ Generated by projen. To modify, edit .projenrc.js and run "npx projen". -{ - "compilerOptions": { - "rootDir": "src", - "outDir": "lib", - "alwaysStrict": true, - "declaration": true, - "esModuleInterop": true, - "experimentalDecorators": true, - "inlineSourceMap": true, - "inlineSources": true, - "lib": [ - "es2019", - "dom" - ], - "module": "CommonJS", - "noEmitOnError": false, - "noFallthroughCasesInSwitch": true, - "noImplicitAny": true, - "noImplicitReturns": true, - "noImplicitThis": true, - "noUnusedLocals": true, - "noUnusedParameters": true, - "resolveJsonModule": true, - "strict": true, - "strictNullChecks": true, - "strictPropertyInitialization": true, - "stripInternal": true, - "target": "ES2019", - "moduleResolution": "node" - }, - "include": [ - "src/**/*.ts" - ], - "exclude": [] -} diff --git a/packages/client-s3/.eslintrc.json b/packages/client-s3/.eslintrc.json deleted file mode 100644 index c31c44d..0000000 --- a/packages/client-s3/.eslintrc.json +++ /dev/null @@ -1,126 +0,0 @@ -// ~~ Generated by projen. To modify, edit .projenrc.js and run "npx projen". -{ - "env": { - "jest": true, - "node": true - }, - "root": true, - "plugins": [ - "@typescript-eslint", - "import" - ], - "parser": "@typescript-eslint/parser", - "parserOptions": { - "ecmaVersion": 2018, - "sourceType": "module", - "project": "./tsconfig.dev.json" - }, - "extends": [ - "plugin:import/typescript", - "plugin:prettier/recommended" - ], - "settings": { - "import/parsers": { - "@typescript-eslint/parser": [ - ".ts", - ".tsx" - ] - }, - "import/resolver": { - "node": {}, - "typescript": { - "project": "./tsconfig.dev.json", - "alwaysTryTypes": true - } - } - }, - "ignorePatterns": [ - "*.js", - "*.d.ts", - "node_modules/", - "*.generated.ts", - "coverage" - ], - "rules": { - "@typescript-eslint/no-require-imports": [ - "error" - ], - "import/no-extraneous-dependencies": [ - "error", - { - "devDependencies": [ - "**/test/**", - "**/build-tools/**" - ], - "optionalDependencies": false, - "peerDependencies": true - } - ], - "import/no-unresolved": [ - "error" - ], - "import/order": [ - "warn", - { - "groups": [ - "builtin", - "external" - ], - "alphabetize": { - "order": "asc", - "caseInsensitive": true - } - } - ], - "no-duplicate-imports": [ - "error" - ], - "no-shadow": [ - "off" - ], - "@typescript-eslint/no-shadow": [ - "error" - ], - "key-spacing": [ - "error" - ], - "no-multiple-empty-lines": [ - "error" - ], - "@typescript-eslint/no-floating-promises": [ - "error" - ], - "no-return-await": [ - "off" - ], - "@typescript-eslint/return-await": [ - "error" - ], - "no-trailing-spaces": [ - "error" - ], - "dot-notation": [ - "error" - ], - "no-bitwise": [ - "error" - ], - "@typescript-eslint/member-ordering": [ - "error", - { - "default": [ - "public-static-field", - "public-static-method", - "protected-static-field", - "protected-static-method", - "private-static-field", - "private-static-method", - "field", - "constructor", - "method" - ] - } - ] - }, - "overrides": [] -} diff --git a/packages/client-s3/.gitattributes b/packages/client-s3/.gitattributes deleted file mode 100644 index 1c2be5a..0000000 --- a/packages/client-s3/.gitattributes +++ /dev/null @@ -1,21 +0,0 @@ -# ~~ Generated by projen. To modify, edit .projenrc.js and run "npx projen". - -/./tsconfig.esm.json linguist-generated -/.eslintrc.json linguist-generated -/.gitattributes linguist-generated -/.gitignore linguist-generated -/.npmignore linguist-generated -/.npmrc linguist-generated -/.prettierignore linguist-generated -/.prettierrc.json 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 -/project.json linguist-generated -/tsconfig.dev.json linguist-generated -/tsconfig.json linguist-generated \ No newline at end of file diff --git a/packages/client-s3/.gitignore b/packages/client-s3/.gitignore deleted file mode 100644 index e4fdd83..0000000 --- a/packages/client-s3/.gitignore +++ /dev/null @@ -1,45 +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 -!/.prettierignore -!/.prettierrc.json -!/.npmrc -!/test/ -!/tsconfig.json -!/tsconfig.dev.json -!/src/ -/lib -/dist/ -!/.eslintrc.json -!/tsconfig.esm.json -!/project.json -!/docgen.json -docs/ diff --git a/packages/client-s3/.npmignore b/packages/client-s3/.npmignore deleted file mode 100644 index 277d62e..0000000 --- a/packages/client-s3/.npmignore +++ /dev/null @@ -1,20 +0,0 @@ -# ~~ Generated by projen. To modify, edit .projenrc.js and run "npx projen". -/.projen/ -/.prettierignore -/.prettierrc.json -/test/ -/tsconfig.dev.json -/src/ -!/lib/ -!/lib/**/*.js -!/lib/**/*.d.ts -dist -/tsconfig.json -/.github/ -/.vscode/ -/.idea/ -/.projenrc.js -tsconfig.tsbuildinfo -/.eslintrc.json -/tsconfig.esm.json -/.gitattributes diff --git a/packages/client-s3/.prettierignore b/packages/client-s3/.prettierignore deleted file mode 100644 index 46704c7..0000000 --- a/packages/client-s3/.prettierignore +++ /dev/null @@ -1 +0,0 @@ -# ~~ Generated by projen. To modify, edit .projenrc.js and run "npx projen". diff --git a/packages/client-s3/.prettierrc.json b/packages/client-s3/.prettierrc.json deleted file mode 100644 index 84c85a3..0000000 --- a/packages/client-s3/.prettierrc.json +++ /dev/null @@ -1,3 +0,0 @@ -{ - "overrides": [] -} diff --git a/packages/client-s3/.projen/deps.json b/packages/client-s3/.projen/deps.json deleted file mode 100644 index 5db7c52..0000000 --- a/packages/client-s3/.projen/deps.json +++ /dev/null @@ -1,87 +0,0 @@ -{ - "dependencies": [ - { - "name": "@types/node", - "version": "^18", - "type": "build" - }, - { - "name": "@typescript-eslint/eslint-plugin", - "version": "^6", - "type": "build" - }, - { - "name": "@typescript-eslint/parser", - "version": "^6", - "type": "build" - }, - { - "name": "aws-sdk-client-mock", - "type": "build" - }, - { - "name": "aws-sdk-client-mock-jest", - "type": "build" - }, - { - "name": "constructs", - "version": "^10.0.0", - "type": "build" - }, - { - "name": "eslint-config-prettier", - "type": "build" - }, - { - "name": "eslint-import-resolver-typescript", - "type": "build" - }, - { - "name": "eslint-plugin-import", - "type": "build" - }, - { - "name": "eslint-plugin-prettier", - "type": "build" - }, - { - "name": "eslint", - "version": "^8", - "type": "build" - }, - { - "name": "prettier", - "type": "build" - }, - { - "name": "projen", - "version": "^0.79.6", - "type": "build" - }, - { - "name": "typescript", - "type": "build" - }, - { - "name": "effect", - "version": ">=2.3.1 <2.5.0", - "type": "peer" - }, - { - "name": "@aws-sdk/client-s3", - "version": "^3", - "type": "runtime" - }, - { - "name": "@aws-sdk/s3-request-presigner", - "version": "^3", - "type": "runtime" - }, - { - "name": "@aws-sdk/types", - "version": "^3", - "type": "runtime" - } - ], - "//": "~~ Generated by projen. To modify, edit .projenrc.js and run \"npx projen\"." -} diff --git a/packages/client-s3/.projen/files.json b/packages/client-s3/.projen/files.json deleted file mode 100644 index c38792b..0000000 --- a/packages/client-s3/.projen/files.json +++ /dev/null @@ -1,20 +0,0 @@ -{ - "files": [ - ".eslintrc.json", - ".gitattributes", - ".gitignore", - ".npmignore", - ".prettierignore", - ".prettierrc.json", - ".projen/deps.json", - ".projen/files.json", - ".projen/tasks.json", - "docgen.json", - "LICENSE", - "project.json", - "tsconfig.dev.json", - "tsconfig.esm.json", - "tsconfig.json" - ], - "//": "~~ Generated by projen. To modify, edit .projenrc.js and run \"npx projen\"." -} diff --git a/packages/client-s3/.projen/tasks.json b/packages/client-s3/.projen/tasks.json deleted file mode 100644 index 6ecb00a..0000000 --- a/packages/client-s3/.projen/tasks.json +++ /dev/null @@ -1,113 +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.json ./tsconfig.esm.json" - } - ] - }, - "default": { - "name": "default", - "description": "Synthesize project files" - }, - "eslint": { - "name": "eslint", - "description": "Runs eslint against the codebase", - "steps": [ - { - "exec": "eslint --ext .ts,.tsx --fix --no-error-on-unmatched-pattern $@ src test build-tools", - "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" - }, - "post-compile": { - "name": "post-compile", - "description": "Runs after successful compilation" - }, - "pre-compile": { - "name": "pre-compile", - "description": "Prepare the project for compilation" - }, - "test": { - "name": "test", - "description": "Run tests", - "steps": [ - { - "exec": "vitest run --globals --reporter verbose", - "receiveArgs": true - }, - { - "spawn": "eslint" - } - ] - }, - "test:watch": { - "name": "test:watch", - "description": "Run tests in watch mode", - "steps": [ - { - "exec": "vitest --globals --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/client-s3/CHANGELOG.md b/packages/client-s3/CHANGELOG.md deleted file mode 100644 index 0e5094c..0000000 --- a/packages/client-s3/CHANGELOG.md +++ /dev/null @@ -1,97 +0,0 @@ -# @effect-aws/client-s3 - -## 1.2.0 - -### Minor Changes - -- [#42](https://github.com/floydspace/effect-aws/pull/42) [`2fd893a`](https://github.com/floydspace/effect-aws/commit/2fd893abe4bcc2b4d7c3bc346cc618ca704171f3) Thanks [@godu](https://github.com/godu)! - extended errors in s3 service - -## 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 - -- [`3e5d0b3`](https://github.com/floydspace/effect-aws/commit/3e5d0b3b3882e0aa6d07bc06432990551316ac30) Thanks [@floydspace](https://github.com/floydspace)! - Upgrade to effect v2 and release stable version - -## 0.7.0 - -### Minor Changes - -- [`744df3c`](https://github.com/floydspace/effect-aws/commit/744df3ca6406b3a35e3066d5fe11ca7082c4c454) Thanks [@floydspace](https://github.com/floydspace)! - upgrade effect dependency - -## 0.6.0 - -### Minor Changes - -- [`0a969d8`](https://github.com/floydspace/effect-aws/commit/0a969d8a74c3bf1b87ff6a1c8bf689af849797e1) Thanks [@floydspace](https://github.com/floydspace)! - upgrade effect peer version - -## 0.5.0 - -### Minor Changes - -- [`280d8bd`](https://github.com/floydspace/effect-aws/commit/280d8bd6686d6e7a2b73322a047e8eb22263b1e1) Thanks [@floydspace](https://github.com/floydspace)! - add an ability return presined url for getObject and putObject - -- [`c3b6768`](https://github.com/floydspace/effect-aws/commit/c3b6768ec54b62e05f8fbb771cb890ba6aee27c2) Thanks [@floydspace](https://github.com/floydspace)! - return tagged errors in the failure channel - -### Patch Changes - -- [`280d8bd`](https://github.com/floydspace/effect-aws/commit/280d8bd6686d6e7a2b73322a047e8eb22263b1e1) Thanks [@floydspace](https://github.com/floydspace)! - upgrade dependencies - -## 0.4.1 - -### Patch Changes - -- [`6b99904`](https://github.com/floydspace/effect-aws/commit/6b9990497bdb20f240d8261b6382db421e9a3ec2) Thanks [@floydspace](https://github.com/floydspace)! - as @mikearnaldi said: "we should really never do tacit passing" - -## 0.4.0 - -### Minor Changes - -- [#14](https://github.com/floydspace/effect-aws/pull/14) [`cddfb74`](https://github.com/floydspace/effect-aws/commit/cddfb74a00b10a13ccfe3749e90961119c4f0906) Thanks [@floydspace](https://github.com/floydspace)! - upgrade effect version to the next one - -## 0.3.0 - -### Minor Changes - -- [`d7d6c50`](https://github.com/floydspace/effect-aws/commit/d7d6c500de9aa538f76a5b8cfc9ffac741210d33) Thanks [@floydspace](https://github.com/floydspace)! - introduce tagged clients options for better narrowing - -## 0.2.1 - -### Patch Changes - -- [`f7e9e3e`](https://github.com/floydspace/effect-aws/commit/f7e9e3ed4c2cb5dc0e0b9e0895278307a182a0d2) Thanks [@floydspace](https://github.com/floydspace)! - correct way of propagating default logger instance inside S3Client, thanks to @mikearnaldi - -## 0.2.0 - -### Minor Changes - -- [`73d43f9`](https://github.com/floydspace/effect-aws/commit/73d43f94752109bdad9682b8260e8f84ac8c6d5b) Thanks [@floydspace](https://github.com/floydspace)! - add an ability to provide S3Client configuration through layer, and provide default logger as part of default configuration - -## 0.1.0 - -### Minor Changes - -- [`fa8be3e`](https://github.com/floydspace/effect-aws/commit/fa8be3ed0dcd2109b831f233f3edf6bece65b914) Thanks [@floydspace](https://github.com/floydspace)! - Implemented basic Effectful S3 client diff --git a/packages/client-s3/LICENSE b/packages/client-s3/LICENSE deleted file mode 100644 index 7afce46..0000000 --- a/packages/client-s3/LICENSE +++ /dev/null @@ -1,19 +0,0 @@ -Copyright (c) 2024 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/client-s3/README.md b/packages/client-s3/README.md deleted file mode 100644 index 22a61b5..0000000 --- a/packages/client-s3/README.md +++ /dev/null @@ -1,82 +0,0 @@ -# @effect-aws/client-s3 - -## Installation - -```bash -npm install --save @effect-aws/client-s3 -``` - -## Usage - -With default S3Client instance: - -```typescript -import { S3Service, DefaultS3ServiceLayer } from "@effect-aws/client-s3"; - -const program = Effect.flatMap(S3Service, (s3) => s3.headObject(args)); - -const result = pipe( - program, - Effect.provide(DefaultS3ServiceLayer), - Effect.runPromise, -); -``` - -With custom S3Client instance: - -```typescript -import { - S3Service, - BaseS3ServiceLayer, - S3ClientInstance, -} from "@effect-aws/client-s3"; - -const program = Effect.flatMap(S3Service, (s3) => s3.headObject(args)); - -const S3ClientInstanceLayer = Layer.succeed( - S3ClientInstance, - new S3Client({ region: "eu-central-1" }), -); - -const result = await pipe( - program, - Effect.provide(BaseS3ServiceLayer), - Effect.provide(S3ClientInstanceLayer), - Effect.runPromise, -); -``` - -With custom S3Client configuration: - -```typescript -import { - S3Service, - BaseS3ServiceLayer, - DefaultS3ClientConfigLayer, - S3ClientInstance, - S3ClientInstanceConfig, -} from "@effect-aws/client-s3"; - -const program = Effect.flatMap(S3Service, (s3) => s3.headObject(args)); - -const S3ClientInstanceLayer = Layer.provide( - Layer.effect( - S3ClientInstance, - S3ClientInstanceConfig.pipe( - Effect.map( - (config) => new S3Client({ ...config, region: "eu-central-1" }), - ), - ), - ), - DefaultS3ClientConfigLayer, -); - -const result = await pipe( - program, - Effect.provide(BaseS3ServiceLayer), - Effect.provide(S3ClientInstanceLayer), - Effect.runPromiseExit, -); -``` - -or map over `DefaultS3ClientConfigLayer` layer context and update the configuration... diff --git a/packages/client-s3/docgen.json b/packages/client-s3/docgen.json deleted file mode 100644 index b359fc7..0000000 --- a/packages/client-s3/docgen.json +++ /dev/null @@ -1,8 +0,0 @@ -{ - "$schema": "../../node_modules/@effect/docgen/schema.json", - "exclude": [ - "src/index.ts", - "src/Errors.ts" - ], - "//": "~~ Generated by projen. To modify, edit .projenrc.js and run \"npx projen\"." -} diff --git a/packages/client-s3/package.json b/packages/client-s3/package.json deleted file mode 100644 index 8355f76..0000000 --- a/packages/client-s3/package.json +++ /dev/null @@ -1,57 +0,0 @@ -{ - "name": "@effect-aws/client-s3", - "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": { - "@types/node": "^18", - "@typescript-eslint/eslint-plugin": "^6", - "@typescript-eslint/parser": "^6", - "aws-sdk-client-mock": "^3.0.0", - "aws-sdk-client-mock-jest": "^3.0.0", - "constructs": "^10.0.0", - "effect": "2.3.1", - "eslint": "^8", - "eslint-config-prettier": "^9.0.0", - "eslint-import-resolver-typescript": "^3.6.1", - "eslint-plugin-import": "^2.28.1", - "eslint-plugin-prettier": "^5.0.0", - "prettier": "^3.0.3", - "projen": "^0.79.6", - "typescript": "^5.2.2" - }, - "peerDependencies": { - "effect": ">=2.3.1 <2.5.0" - }, - "dependencies": { - "@aws-sdk/client-s3": "^3", - "@aws-sdk/s3-request-presigner": "^3", - "@aws-sdk/types": "^3" - }, - "main": "lib/index.js", - "license": "MIT", - "homepage": "https://floydspace.github.io/effect-aws", - "publishConfig": { - "access": "public" - }, - "version": "1.2.0", - "types": "lib/index.d.ts", - "module": "lib/esm/index.js", - "sideEffects": [], - "//": "~~ Generated by projen. To modify, edit .projenrc.js and run \"npx projen\"." -} diff --git a/packages/client-s3/project.json b/packages/client-s3/project.json deleted file mode 100644 index 2dc19c2..0000000 --- a/packages/client-s3/project.json +++ /dev/null @@ -1,77 +0,0 @@ -{ - "name": "@effect-aws/client-s3", - "root": "packages/client-s3", - "targets": { - "default": { - "executor": "nx:run-commands", - "options": { - "command": "pnpm exec projen default", - "cwd": "packages/client-s3" - } - }, - "pre-compile": { - "executor": "nx:run-commands", - "options": { - "command": "pnpm exec projen pre-compile", - "cwd": "packages/client-s3" - } - }, - "compile": { - "executor": "nx:run-commands", - "options": { - "command": "pnpm exec projen compile", - "cwd": "packages/client-s3" - } - }, - "post-compile": { - "executor": "nx:run-commands", - "options": { - "command": "pnpm exec projen post-compile", - "cwd": "packages/client-s3" - } - }, - "test": { - "executor": "nx:run-commands", - "options": { - "command": "pnpm exec projen test", - "cwd": "packages/client-s3" - } - }, - "package": { - "executor": "nx:run-commands", - "options": { - "command": "pnpm exec projen package", - "cwd": "packages/client-s3" - } - }, - "build": { - "executor": "nx:run-commands", - "options": { - "command": "pnpm exec projen build", - "cwd": "packages/client-s3" - } - }, - "watch": { - "executor": "nx:run-commands", - "options": { - "command": "pnpm exec projen watch", - "cwd": "packages/client-s3" - } - }, - "eslint": { - "executor": "nx:run-commands", - "options": { - "command": "pnpm exec projen eslint", - "cwd": "packages/client-s3" - } - }, - "test:watch": { - "executor": "nx:run-commands", - "options": { - "command": "pnpm exec projen test:watch", - "cwd": "packages/client-s3" - } - } - }, - "//": "~~ Generated by projen. To modify, edit .projenrc.js and run \"npx projen\"." -} diff --git a/packages/client-s3/src/Errors.ts b/packages/client-s3/src/Errors.ts deleted file mode 100644 index 2558a19..0000000 --- a/packages/client-s3/src/Errors.ts +++ /dev/null @@ -1,37 +0,0 @@ -import type { - S3ServiceException, - BucketAlreadyExists, - BucketAlreadyOwnedByYou, - InvalidObjectState, - NoSuchBucket, - NoSuchKey, - NoSuchUpload, - NotFound, - ObjectAlreadyInActiveTierError as ObjectAlreadyInActiveTierException, - ObjectNotInActiveTierError as ObjectNotInActiveTierException, -} from "@aws-sdk/client-s3"; -import * as Data from "effect/Data"; - -export type TaggedException = T & { - readonly _tag: T["name"]; -}; - -export type BucketAlreadyExistsError = TaggedException; -export type BucketAlreadyOwnedByYouError = - TaggedException; -export type InvalidObjectStateError = TaggedException; -export type NoSuchBucketError = TaggedException; -export type NoSuchKeyError = TaggedException; -export type NoSuchUploadError = TaggedException; -export type NotFoundError = TaggedException; -export type ObjectAlreadyInActiveTierError = - TaggedException; -export type ObjectNotInActiveTierError = - TaggedException; - -export type S3ServiceError = TaggedException< - S3ServiceException & { name: "S3ServiceError" } ->; -export const S3ServiceError = Data.tagged("S3ServiceError"); -export type SdkError = TaggedException; -export const SdkError = Data.tagged("SdkError"); diff --git a/packages/client-s3/src/S3ClientInstance.ts b/packages/client-s3/src/S3ClientInstance.ts deleted file mode 100644 index c6da8a4..0000000 --- a/packages/client-s3/src/S3ClientInstance.ts +++ /dev/null @@ -1,45 +0,0 @@ -/** - * @since 1.0.0 - */ -import { S3Client } from "@aws-sdk/client-s3"; -import * as Context from "effect/Context"; -import * as Effect from "effect/Effect"; -import * as Layer from "effect/Layer"; -import { - DefaultS3ClientConfigLayer, - S3ClientInstanceConfig, -} from "./S3ClientInstanceConfig"; - -/** - * @since 1.0.0 - * @category tags - */ -export class S3ClientInstance extends Context.Tag( - "@effect-aws/client-s3/S3ClientInstance", -)() {} - -/** - * @since 1.0.0 - * @category constructors - */ -export const makeS3ClientInstance = Effect.map( - S3ClientInstanceConfig, - (config) => new S3Client(config), -); - -/** - * @since 1.0.0 - * @category layers - */ -export const S3ClientInstanceLayer = Layer.effect( - S3ClientInstance, - makeS3ClientInstance, -); - -/** - * @since 1.0.0 - * @category layers - */ -export const DefaultS3ClientInstanceLayer = S3ClientInstanceLayer.pipe( - Layer.provide(DefaultS3ClientConfigLayer), -); diff --git a/packages/client-s3/src/S3ClientInstanceConfig.ts b/packages/client-s3/src/S3ClientInstanceConfig.ts deleted file mode 100644 index 02a4eec..0000000 --- a/packages/client-s3/src/S3ClientInstanceConfig.ts +++ /dev/null @@ -1,55 +0,0 @@ -/** - * @since 1.0.0 - */ -import type { S3ClientConfig } from "@aws-sdk/client-s3"; -import * as Context from "effect/Context"; -import * as Effect from "effect/Effect"; -import * as Layer from "effect/Layer"; -import * as Runtime from "effect/Runtime"; - -/** - * @since 1.0.0 - * @category tags - */ -export class S3ClientInstanceConfig extends Context.Tag( - "@effect-aws/client-s3/S3ClientInstanceConfig", -)() {} - -/** - * @since 1.0.0 - * @category constructors - */ -export const makeDefaultS3ClientInstanceConfig: Effect.Effect = - Effect.gen(function* (_) { - const runtime = yield* _(Effect.runtime()); - const runSync = Runtime.runSync(runtime); - - return { - logger: { - info(m) { - Effect.logInfo(m).pipe(runSync); - }, - warn(m) { - Effect.logWarning(m).pipe(runSync); - }, - error(m) { - Effect.logError(m).pipe(runSync); - }, - debug(m) { - Effect.logDebug(m).pipe(runSync); - }, - trace(m) { - Effect.logTrace(m).pipe(runSync); - }, - }, - }; - }); - -/** - * @since 1.0.0 - * @category layers - */ -export const DefaultS3ClientConfigLayer = Layer.effect( - S3ClientInstanceConfig, - makeDefaultS3ClientInstanceConfig, -); diff --git a/packages/client-s3/src/S3Service.ts b/packages/client-s3/src/S3Service.ts deleted file mode 100644 index bffae78..0000000 --- a/packages/client-s3/src/S3Service.ts +++ /dev/null @@ -1,1445 +0,0 @@ -/** - * @since 1.0.0 - */ -import { - S3ServiceException, - AbortMultipartUploadCommand, - type AbortMultipartUploadCommandInput, - type AbortMultipartUploadCommandOutput, - CompleteMultipartUploadCommand, - type CompleteMultipartUploadCommandInput, - type CompleteMultipartUploadCommandOutput, - CopyObjectCommand, - type CopyObjectCommandInput, - type CopyObjectCommandOutput, - CreateBucketCommand, - type CreateBucketCommandInput, - type CreateBucketCommandOutput, - CreateMultipartUploadCommand, - type CreateMultipartUploadCommandInput, - type CreateMultipartUploadCommandOutput, - CreateSessionCommand, - type CreateSessionCommandInput, - type CreateSessionCommandOutput, - DeleteBucketCommand, - type DeleteBucketCommandInput, - type DeleteBucketCommandOutput, - DeleteBucketAnalyticsConfigurationCommand, - type DeleteBucketAnalyticsConfigurationCommandInput, - type DeleteBucketAnalyticsConfigurationCommandOutput, - DeleteBucketCorsCommand, - type DeleteBucketCorsCommandInput, - type DeleteBucketCorsCommandOutput, - DeleteBucketEncryptionCommand, - type DeleteBucketEncryptionCommandInput, - type DeleteBucketEncryptionCommandOutput, - DeleteBucketIntelligentTieringConfigurationCommand, - type DeleteBucketIntelligentTieringConfigurationCommandInput, - type DeleteBucketIntelligentTieringConfigurationCommandOutput, - DeleteBucketInventoryConfigurationCommand, - type DeleteBucketInventoryConfigurationCommandInput, - type DeleteBucketInventoryConfigurationCommandOutput, - DeleteBucketLifecycleCommand, - type DeleteBucketLifecycleCommandInput, - type DeleteBucketLifecycleCommandOutput, - DeleteBucketMetricsConfigurationCommand, - type DeleteBucketMetricsConfigurationCommandInput, - type DeleteBucketMetricsConfigurationCommandOutput, - DeleteBucketOwnershipControlsCommand, - type DeleteBucketOwnershipControlsCommandInput, - type DeleteBucketOwnershipControlsCommandOutput, - DeleteBucketPolicyCommand, - type DeleteBucketPolicyCommandInput, - type DeleteBucketPolicyCommandOutput, - DeleteBucketReplicationCommand, - type DeleteBucketReplicationCommandInput, - type DeleteBucketReplicationCommandOutput, - DeleteBucketTaggingCommand, - type DeleteBucketTaggingCommandInput, - type DeleteBucketTaggingCommandOutput, - DeleteBucketWebsiteCommand, - type DeleteBucketWebsiteCommandInput, - type DeleteBucketWebsiteCommandOutput, - DeleteObjectCommand, - type DeleteObjectCommandInput, - type DeleteObjectCommandOutput, - DeleteObjectsCommand, - type DeleteObjectsCommandInput, - type DeleteObjectsCommandOutput, - DeleteObjectTaggingCommand, - type DeleteObjectTaggingCommandInput, - type DeleteObjectTaggingCommandOutput, - DeletePublicAccessBlockCommand, - type DeletePublicAccessBlockCommandInput, - type DeletePublicAccessBlockCommandOutput, - GetBucketAccelerateConfigurationCommand, - type GetBucketAccelerateConfigurationCommandInput, - type GetBucketAccelerateConfigurationCommandOutput, - GetBucketAclCommand, - type GetBucketAclCommandInput, - type GetBucketAclCommandOutput, - GetBucketAnalyticsConfigurationCommand, - type GetBucketAnalyticsConfigurationCommandInput, - type GetBucketAnalyticsConfigurationCommandOutput, - GetBucketCorsCommand, - type GetBucketCorsCommandInput, - type GetBucketCorsCommandOutput, - GetBucketEncryptionCommand, - type GetBucketEncryptionCommandInput, - type GetBucketEncryptionCommandOutput, - GetBucketIntelligentTieringConfigurationCommand, - type GetBucketIntelligentTieringConfigurationCommandInput, - type GetBucketIntelligentTieringConfigurationCommandOutput, - GetBucketInventoryConfigurationCommand, - type GetBucketInventoryConfigurationCommandInput, - type GetBucketInventoryConfigurationCommandOutput, - GetBucketLifecycleConfigurationCommand, - type GetBucketLifecycleConfigurationCommandInput, - type GetBucketLifecycleConfigurationCommandOutput, - GetBucketLocationCommand, - type GetBucketLocationCommandInput, - type GetBucketLocationCommandOutput, - GetBucketLoggingCommand, - type GetBucketLoggingCommandInput, - type GetBucketLoggingCommandOutput, - GetBucketMetricsConfigurationCommand, - type GetBucketMetricsConfigurationCommandInput, - type GetBucketMetricsConfigurationCommandOutput, - GetBucketNotificationConfigurationCommand, - type GetBucketNotificationConfigurationCommandInput, - type GetBucketNotificationConfigurationCommandOutput, - GetBucketOwnershipControlsCommand, - type GetBucketOwnershipControlsCommandInput, - type GetBucketOwnershipControlsCommandOutput, - GetBucketPolicyCommand, - type GetBucketPolicyCommandInput, - type GetBucketPolicyCommandOutput, - GetBucketPolicyStatusCommand, - type GetBucketPolicyStatusCommandInput, - type GetBucketPolicyStatusCommandOutput, - GetBucketReplicationCommand, - type GetBucketReplicationCommandInput, - type GetBucketReplicationCommandOutput, - GetBucketRequestPaymentCommand, - type GetBucketRequestPaymentCommandInput, - type GetBucketRequestPaymentCommandOutput, - GetBucketTaggingCommand, - type GetBucketTaggingCommandInput, - type GetBucketTaggingCommandOutput, - GetBucketVersioningCommand, - type GetBucketVersioningCommandInput, - type GetBucketVersioningCommandOutput, - GetBucketWebsiteCommand, - type GetBucketWebsiteCommandInput, - type GetBucketWebsiteCommandOutput, - GetObjectCommand, - type GetObjectCommandInput, - type GetObjectCommandOutput, - GetObjectAclCommand, - type GetObjectAclCommandInput, - type GetObjectAclCommandOutput, - GetObjectAttributesCommand, - type GetObjectAttributesCommandInput, - type GetObjectAttributesCommandOutput, - GetObjectLegalHoldCommand, - type GetObjectLegalHoldCommandInput, - type GetObjectLegalHoldCommandOutput, - GetObjectLockConfigurationCommand, - type GetObjectLockConfigurationCommandInput, - type GetObjectLockConfigurationCommandOutput, - GetObjectRetentionCommand, - type GetObjectRetentionCommandInput, - type GetObjectRetentionCommandOutput, - GetObjectTaggingCommand, - type GetObjectTaggingCommandInput, - type GetObjectTaggingCommandOutput, - GetObjectTorrentCommand, - type GetObjectTorrentCommandInput, - type GetObjectTorrentCommandOutput, - GetPublicAccessBlockCommand, - type GetPublicAccessBlockCommandInput, - type GetPublicAccessBlockCommandOutput, - HeadBucketCommand, - type HeadBucketCommandInput, - type HeadBucketCommandOutput, - HeadObjectCommand, - type HeadObjectCommandInput, - type HeadObjectCommandOutput, - ListBucketAnalyticsConfigurationsCommand, - type ListBucketAnalyticsConfigurationsCommandInput, - type ListBucketAnalyticsConfigurationsCommandOutput, - ListBucketIntelligentTieringConfigurationsCommand, - type ListBucketIntelligentTieringConfigurationsCommandInput, - type ListBucketIntelligentTieringConfigurationsCommandOutput, - ListBucketInventoryConfigurationsCommand, - type ListBucketInventoryConfigurationsCommandInput, - type ListBucketInventoryConfigurationsCommandOutput, - ListBucketMetricsConfigurationsCommand, - type ListBucketMetricsConfigurationsCommandInput, - type ListBucketMetricsConfigurationsCommandOutput, - ListBucketsCommand, - type ListBucketsCommandInput, - type ListBucketsCommandOutput, - ListDirectoryBucketsCommand, - type ListDirectoryBucketsCommandInput, - type ListDirectoryBucketsCommandOutput, - ListMultipartUploadsCommand, - type ListMultipartUploadsCommandInput, - type ListMultipartUploadsCommandOutput, - ListObjectsCommand, - type ListObjectsCommandInput, - type ListObjectsCommandOutput, - ListObjectsV2Command, - type ListObjectsV2CommandInput, - type ListObjectsV2CommandOutput, - ListObjectVersionsCommand, - type ListObjectVersionsCommandInput, - type ListObjectVersionsCommandOutput, - ListPartsCommand, - type ListPartsCommandInput, - type ListPartsCommandOutput, - PutBucketAccelerateConfigurationCommand, - type PutBucketAccelerateConfigurationCommandInput, - type PutBucketAccelerateConfigurationCommandOutput, - PutBucketAclCommand, - type PutBucketAclCommandInput, - type PutBucketAclCommandOutput, - PutBucketAnalyticsConfigurationCommand, - type PutBucketAnalyticsConfigurationCommandInput, - type PutBucketAnalyticsConfigurationCommandOutput, - PutBucketCorsCommand, - type PutBucketCorsCommandInput, - type PutBucketCorsCommandOutput, - PutBucketEncryptionCommand, - type PutBucketEncryptionCommandInput, - type PutBucketEncryptionCommandOutput, - PutBucketIntelligentTieringConfigurationCommand, - type PutBucketIntelligentTieringConfigurationCommandInput, - type PutBucketIntelligentTieringConfigurationCommandOutput, - PutBucketInventoryConfigurationCommand, - type PutBucketInventoryConfigurationCommandInput, - type PutBucketInventoryConfigurationCommandOutput, - PutBucketLifecycleConfigurationCommand, - type PutBucketLifecycleConfigurationCommandInput, - type PutBucketLifecycleConfigurationCommandOutput, - PutBucketLoggingCommand, - type PutBucketLoggingCommandInput, - type PutBucketLoggingCommandOutput, - PutBucketMetricsConfigurationCommand, - type PutBucketMetricsConfigurationCommandInput, - type PutBucketMetricsConfigurationCommandOutput, - PutBucketNotificationConfigurationCommand, - type PutBucketNotificationConfigurationCommandInput, - type PutBucketNotificationConfigurationCommandOutput, - PutBucketOwnershipControlsCommand, - type PutBucketOwnershipControlsCommandInput, - type PutBucketOwnershipControlsCommandOutput, - PutBucketPolicyCommand, - type PutBucketPolicyCommandInput, - type PutBucketPolicyCommandOutput, - PutBucketReplicationCommand, - type PutBucketReplicationCommandInput, - type PutBucketReplicationCommandOutput, - PutBucketRequestPaymentCommand, - type PutBucketRequestPaymentCommandInput, - type PutBucketRequestPaymentCommandOutput, - PutBucketTaggingCommand, - type PutBucketTaggingCommandInput, - type PutBucketTaggingCommandOutput, - PutBucketVersioningCommand, - type PutBucketVersioningCommandInput, - type PutBucketVersioningCommandOutput, - PutBucketWebsiteCommand, - type PutBucketWebsiteCommandInput, - type PutBucketWebsiteCommandOutput, - PutObjectCommand, - type PutObjectCommandInput, - type PutObjectCommandOutput, - PutObjectAclCommand, - type PutObjectAclCommandInput, - type PutObjectAclCommandOutput, - PutObjectLegalHoldCommand, - type PutObjectLegalHoldCommandInput, - type PutObjectLegalHoldCommandOutput, - PutObjectLockConfigurationCommand, - type PutObjectLockConfigurationCommandInput, - type PutObjectLockConfigurationCommandOutput, - PutObjectRetentionCommand, - type PutObjectRetentionCommandInput, - type PutObjectRetentionCommandOutput, - PutObjectTaggingCommand, - type PutObjectTaggingCommandInput, - type PutObjectTaggingCommandOutput, - PutPublicAccessBlockCommand, - type PutPublicAccessBlockCommandInput, - type PutPublicAccessBlockCommandOutput, - RestoreObjectCommand, - type RestoreObjectCommandInput, - type RestoreObjectCommandOutput, - SelectObjectContentCommand, - type SelectObjectContentCommandInput, - type SelectObjectContentCommandOutput, - UploadPartCommand, - type UploadPartCommandInput, - type UploadPartCommandOutput, - UploadPartCopyCommand, - type UploadPartCopyCommandInput, - type UploadPartCopyCommandOutput, - WriteGetObjectResponseCommand, - type WriteGetObjectResponseCommandInput, - type WriteGetObjectResponseCommandOutput, -} from "@aws-sdk/client-s3"; -import { getSignedUrl } from "@aws-sdk/s3-request-presigner"; -import { - type HttpHandlerOptions as __HttpHandlerOptions, - RequestPresigningArguments, -} from "@aws-sdk/types"; -import { Context, Data, Effect, Layer, ReadonlyRecord } from "effect"; -import { - BucketAlreadyExistsError, - BucketAlreadyOwnedByYouError, - InvalidObjectStateError, - NoSuchBucketError, - NoSuchKeyError, - NoSuchUploadError, - NotFoundError, - ObjectAlreadyInActiveTierError, - ObjectNotInActiveTierError, - S3ServiceError, - SdkError, - TaggedException, -} from "./Errors"; -import { - DefaultS3ClientInstanceLayer, - S3ClientInstance, - S3ClientInstanceLayer, -} from "./S3ClientInstance"; -import { DefaultS3ClientConfigLayer } from "./S3ClientInstanceConfig"; - -const commands = { - AbortMultipartUploadCommand, - CompleteMultipartUploadCommand, - CopyObjectCommand, - CreateBucketCommand, - CreateMultipartUploadCommand, - CreateSessionCommand, - DeleteBucketCommand, - DeleteBucketAnalyticsConfigurationCommand, - DeleteBucketCorsCommand, - DeleteBucketEncryptionCommand, - DeleteBucketIntelligentTieringConfigurationCommand, - DeleteBucketInventoryConfigurationCommand, - DeleteBucketLifecycleCommand, - DeleteBucketMetricsConfigurationCommand, - DeleteBucketOwnershipControlsCommand, - DeleteBucketPolicyCommand, - DeleteBucketReplicationCommand, - DeleteBucketTaggingCommand, - DeleteBucketWebsiteCommand, - DeleteObjectCommand, - DeleteObjectsCommand, - DeleteObjectTaggingCommand, - DeletePublicAccessBlockCommand, - GetBucketAccelerateConfigurationCommand, - GetBucketAclCommand, - GetBucketAnalyticsConfigurationCommand, - GetBucketCorsCommand, - GetBucketEncryptionCommand, - GetBucketIntelligentTieringConfigurationCommand, - GetBucketInventoryConfigurationCommand, - GetBucketLifecycleConfigurationCommand, - GetBucketLocationCommand, - GetBucketLoggingCommand, - GetBucketMetricsConfigurationCommand, - GetBucketNotificationConfigurationCommand, - GetBucketOwnershipControlsCommand, - GetBucketPolicyCommand, - GetBucketPolicyStatusCommand, - GetBucketReplicationCommand, - GetBucketRequestPaymentCommand, - GetBucketTaggingCommand, - GetBucketVersioningCommand, - GetBucketWebsiteCommand, - GetObjectCommand, - GetObjectAclCommand, - GetObjectAttributesCommand, - GetObjectLegalHoldCommand, - GetObjectLockConfigurationCommand, - GetObjectRetentionCommand, - GetObjectTaggingCommand, - GetObjectTorrentCommand, - GetPublicAccessBlockCommand, - HeadBucketCommand, - HeadObjectCommand, - ListBucketAnalyticsConfigurationsCommand, - ListBucketIntelligentTieringConfigurationsCommand, - ListBucketInventoryConfigurationsCommand, - ListBucketMetricsConfigurationsCommand, - ListBucketsCommand, - ListDirectoryBucketsCommand, - ListMultipartUploadsCommand, - ListObjectsCommand, - ListObjectsV2Command, - ListObjectVersionsCommand, - ListPartsCommand, - PutBucketAccelerateConfigurationCommand, - PutBucketAclCommand, - PutBucketAnalyticsConfigurationCommand, - PutBucketCorsCommand, - PutBucketEncryptionCommand, - PutBucketIntelligentTieringConfigurationCommand, - PutBucketInventoryConfigurationCommand, - PutBucketLifecycleConfigurationCommand, - PutBucketLoggingCommand, - PutBucketMetricsConfigurationCommand, - PutBucketNotificationConfigurationCommand, - PutBucketOwnershipControlsCommand, - PutBucketPolicyCommand, - PutBucketReplicationCommand, - PutBucketRequestPaymentCommand, - PutBucketTaggingCommand, - PutBucketVersioningCommand, - PutBucketWebsiteCommand, - PutObjectCommand, - PutObjectAclCommand, - PutObjectLegalHoldCommand, - PutObjectLockConfigurationCommand, - PutObjectRetentionCommand, - PutObjectTaggingCommand, - PutPublicAccessBlockCommand, - RestoreObjectCommand, - SelectObjectContentCommand, - UploadPartCommand, - UploadPartCopyCommand, - WriteGetObjectResponseCommand, -}; - -/** - * @since 1.0.0 - * @category models - */ -export interface S3Service { - readonly _: unique symbol; - - /** - * @see {@link AbortMultipartUploadCommand} - */ - abortMultipartUpload( - args: AbortMultipartUploadCommandInput, - options?: __HttpHandlerOptions, - ): Effect.Effect< - AbortMultipartUploadCommandOutput, - SdkError | NoSuchUploadError - >; - - /** - * @see {@link CompleteMultipartUploadCommand} - */ - completeMultipartUpload( - args: CompleteMultipartUploadCommandInput, - options?: __HttpHandlerOptions, - ): Effect.Effect< - CompleteMultipartUploadCommandOutput, - SdkError | S3ServiceError - >; - - /** - * @see {@link CopyObjectCommand} - */ - copyObject( - args: CopyObjectCommandInput, - options?: __HttpHandlerOptions, - ): Effect.Effect< - CopyObjectCommandOutput, - SdkError | ObjectNotInActiveTierError - >; - - /** - * @see {@link CreateBucketCommand} - */ - createBucket( - args: CreateBucketCommandInput, - options?: __HttpHandlerOptions, - ): Effect.Effect< - CreateBucketCommandOutput, - SdkError | BucketAlreadyExistsError | BucketAlreadyOwnedByYouError - >; - - /** - * @see {@link CreateMultipartUploadCommand} - */ - createMultipartUpload( - args: CreateMultipartUploadCommandInput, - options?: __HttpHandlerOptions, - ): Effect.Effect< - CreateMultipartUploadCommandOutput, - SdkError | S3ServiceError - >; - - /** - * @see {@link CreateSessionCommand} - */ - createSession( - args: CreateSessionCommandInput, - options?: __HttpHandlerOptions, - ): Effect.Effect; - - /** - * @see {@link DeleteBucketCommand} - */ - deleteBucket( - args: DeleteBucketCommandInput, - options?: __HttpHandlerOptions, - ): Effect.Effect; - - /** - * @see {@link DeleteBucketAnalyticsConfigurationCommand} - */ - deleteBucketAnalyticsConfiguration( - args: DeleteBucketAnalyticsConfigurationCommandInput, - options?: __HttpHandlerOptions, - ): Effect.Effect< - DeleteBucketAnalyticsConfigurationCommandOutput, - SdkError | S3ServiceError - >; - - /** - * @see {@link DeleteBucketCorsCommand} - */ - deleteBucketCors( - args: DeleteBucketCorsCommandInput, - options?: __HttpHandlerOptions, - ): Effect.Effect; - - /** - * @see {@link DeleteBucketEncryptionCommand} - */ - deleteBucketEncryption( - args: DeleteBucketEncryptionCommandInput, - options?: __HttpHandlerOptions, - ): Effect.Effect< - DeleteBucketEncryptionCommandOutput, - SdkError | S3ServiceError - >; - - /** - * @see {@link DeleteBucketIntelligentTieringConfigurationCommand} - */ - deleteBucketIntelligentTieringConfiguration( - args: DeleteBucketIntelligentTieringConfigurationCommandInput, - options?: __HttpHandlerOptions, - ): Effect.Effect< - DeleteBucketIntelligentTieringConfigurationCommandOutput, - SdkError | S3ServiceError - >; - - /** - * @see {@link DeleteBucketInventoryConfigurationCommand} - */ - deleteBucketInventoryConfiguration( - args: DeleteBucketInventoryConfigurationCommandInput, - options?: __HttpHandlerOptions, - ): Effect.Effect< - DeleteBucketInventoryConfigurationCommandOutput, - SdkError | S3ServiceError - >; - - /** - * @see {@link DeleteBucketLifecycleCommand} - */ - deleteBucketLifecycle( - args: DeleteBucketLifecycleCommandInput, - options?: __HttpHandlerOptions, - ): Effect.Effect< - DeleteBucketLifecycleCommandOutput, - SdkError | S3ServiceError - >; - - /** - * @see {@link DeleteBucketMetricsConfigurationCommand} - */ - deleteBucketMetricsConfiguration( - args: DeleteBucketMetricsConfigurationCommandInput, - options?: __HttpHandlerOptions, - ): Effect.Effect< - DeleteBucketMetricsConfigurationCommandOutput, - SdkError | S3ServiceError - >; - - /** - * @see {@link DeleteBucketOwnershipControlsCommand} - */ - deleteBucketOwnershipControls( - args: DeleteBucketOwnershipControlsCommandInput, - options?: __HttpHandlerOptions, - ): Effect.Effect< - DeleteBucketOwnershipControlsCommandOutput, - SdkError | S3ServiceError - >; - - /** - * @see {@link DeleteBucketPolicyCommand} - */ - deleteBucketPolicy( - args: DeleteBucketPolicyCommandInput, - options?: __HttpHandlerOptions, - ): Effect.Effect; - - /** - * @see {@link DeleteBucketReplicationCommand} - */ - deleteBucketReplication( - args: DeleteBucketReplicationCommandInput, - options?: __HttpHandlerOptions, - ): Effect.Effect< - DeleteBucketReplicationCommandOutput, - SdkError | S3ServiceError - >; - - /** - * @see {@link DeleteBucketTaggingCommand} - */ - deleteBucketTagging( - args: DeleteBucketTaggingCommandInput, - options?: __HttpHandlerOptions, - ): Effect.Effect; - - /** - * @see {@link DeleteBucketWebsiteCommand} - */ - deleteBucketWebsite( - args: DeleteBucketWebsiteCommandInput, - options?: __HttpHandlerOptions, - ): Effect.Effect; - - /** - * @see {@link DeleteObjectCommand} - */ - deleteObject( - args: DeleteObjectCommandInput, - options?: __HttpHandlerOptions, - ): Effect.Effect; - - /** - * @see {@link DeleteObjectsCommand} - */ - deleteObjects( - args: DeleteObjectsCommandInput, - options?: __HttpHandlerOptions, - ): Effect.Effect; - - /** - * @see {@link DeleteObjectTaggingCommand} - */ - deleteObjectTagging( - args: DeleteObjectTaggingCommandInput, - options?: __HttpHandlerOptions, - ): Effect.Effect; - - /** - * @see {@link DeletePublicAccessBlockCommand} - */ - deletePublicAccessBlock( - args: DeletePublicAccessBlockCommandInput, - options?: __HttpHandlerOptions, - ): Effect.Effect< - DeletePublicAccessBlockCommandOutput, - SdkError | S3ServiceError - >; - - /** - * @see {@link GetBucketAccelerateConfigurationCommand} - */ - getBucketAccelerateConfiguration( - args: GetBucketAccelerateConfigurationCommandInput, - options?: __HttpHandlerOptions, - ): Effect.Effect< - GetBucketAccelerateConfigurationCommandOutput, - SdkError | S3ServiceError - >; - - /** - * @see {@link GetBucketAclCommand} - */ - getBucketAcl( - args: GetBucketAclCommandInput, - options?: __HttpHandlerOptions, - ): Effect.Effect; - - /** - * @see {@link GetBucketAnalyticsConfigurationCommand} - */ - getBucketAnalyticsConfiguration( - args: GetBucketAnalyticsConfigurationCommandInput, - options?: __HttpHandlerOptions, - ): Effect.Effect< - GetBucketAnalyticsConfigurationCommandOutput, - SdkError | S3ServiceError - >; - - /** - * @see {@link GetBucketCorsCommand} - */ - getBucketCors( - args: GetBucketCorsCommandInput, - options?: __HttpHandlerOptions, - ): Effect.Effect; - - /** - * @see {@link GetBucketEncryptionCommand} - */ - getBucketEncryption( - args: GetBucketEncryptionCommandInput, - options?: __HttpHandlerOptions, - ): Effect.Effect; - - /** - * @see {@link GetBucketIntelligentTieringConfigurationCommand} - */ - getBucketIntelligentTieringConfiguration( - args: GetBucketIntelligentTieringConfigurationCommandInput, - options?: __HttpHandlerOptions, - ): Effect.Effect< - GetBucketIntelligentTieringConfigurationCommandOutput, - SdkError | S3ServiceError - >; - - /** - * @see {@link GetBucketInventoryConfigurationCommand} - */ - getBucketInventoryConfiguration( - args: GetBucketInventoryConfigurationCommandInput, - options?: __HttpHandlerOptions, - ): Effect.Effect< - GetBucketInventoryConfigurationCommandOutput, - SdkError | S3ServiceError - >; - - /** - * @see {@link GetBucketLifecycleConfigurationCommand} - */ - getBucketLifecycleConfiguration( - args: GetBucketLifecycleConfigurationCommandInput, - options?: __HttpHandlerOptions, - ): Effect.Effect< - GetBucketLifecycleConfigurationCommandOutput, - SdkError | S3ServiceError - >; - - /** - * @see {@link GetBucketLocationCommand} - */ - getBucketLocation( - args: GetBucketLocationCommandInput, - options?: __HttpHandlerOptions, - ): Effect.Effect; - - /** - * @see {@link GetBucketLoggingCommand} - */ - getBucketLogging( - args: GetBucketLoggingCommandInput, - options?: __HttpHandlerOptions, - ): Effect.Effect; - - /** - * @see {@link GetBucketMetricsConfigurationCommand} - */ - getBucketMetricsConfiguration( - args: GetBucketMetricsConfigurationCommandInput, - options?: __HttpHandlerOptions, - ): Effect.Effect< - GetBucketMetricsConfigurationCommandOutput, - SdkError | S3ServiceError - >; - - /** - * @see {@link GetBucketNotificationConfigurationCommand} - */ - getBucketNotificationConfiguration( - args: GetBucketNotificationConfigurationCommandInput, - options?: __HttpHandlerOptions, - ): Effect.Effect< - GetBucketNotificationConfigurationCommandOutput, - SdkError | S3ServiceError - >; - - /** - * @see {@link GetBucketOwnershipControlsCommand} - */ - getBucketOwnershipControls( - args: GetBucketOwnershipControlsCommandInput, - options?: __HttpHandlerOptions, - ): Effect.Effect< - GetBucketOwnershipControlsCommandOutput, - SdkError | S3ServiceError - >; - - /** - * @see {@link GetBucketPolicyCommand} - */ - getBucketPolicy( - args: GetBucketPolicyCommandInput, - options?: __HttpHandlerOptions, - ): Effect.Effect; - - /** - * @see {@link GetBucketPolicyStatusCommand} - */ - getBucketPolicyStatus( - args: GetBucketPolicyStatusCommandInput, - options?: __HttpHandlerOptions, - ): Effect.Effect< - GetBucketPolicyStatusCommandOutput, - SdkError | S3ServiceError - >; - - /** - * @see {@link GetBucketReplicationCommand} - */ - getBucketReplication( - args: GetBucketReplicationCommandInput, - options?: __HttpHandlerOptions, - ): Effect.Effect< - GetBucketReplicationCommandOutput, - SdkError | S3ServiceError - >; - - /** - * @see {@link GetBucketRequestPaymentCommand} - */ - getBucketRequestPayment( - args: GetBucketRequestPaymentCommandInput, - options?: __HttpHandlerOptions, - ): Effect.Effect< - GetBucketRequestPaymentCommandOutput, - SdkError | S3ServiceError - >; - - /** - * @see {@link GetBucketTaggingCommand} - */ - getBucketTagging( - args: GetBucketTaggingCommandInput, - options?: __HttpHandlerOptions, - ): Effect.Effect; - - /** - * @see {@link GetBucketVersioningCommand} - */ - getBucketVersioning( - args: GetBucketVersioningCommandInput, - options?: __HttpHandlerOptions, - ): Effect.Effect; - - /** - * @see {@link GetBucketWebsiteCommand} - */ - getBucketWebsite( - args: GetBucketWebsiteCommandInput, - options?: __HttpHandlerOptions, - ): Effect.Effect; - - /** - * @see {@link GetObjectCommand} - */ - getObject( - args: GetObjectCommandInput, - options?: { readonly presigned?: false } & __HttpHandlerOptions, - ): Effect.Effect< - GetObjectCommandOutput, - SdkError | InvalidObjectStateError | NoSuchKeyError - >; - getObject( - args: GetObjectCommandInput, - options?: { readonly presigned: true } & RequestPresigningArguments, - ): Effect.Effect; - - /** - * @see {@link GetObjectAclCommand} - */ - getObjectAcl( - args: GetObjectAclCommandInput, - options?: __HttpHandlerOptions, - ): Effect.Effect; - - /** - * @see {@link GetObjectAttributesCommand} - */ - getObjectAttributes( - args: GetObjectAttributesCommandInput, - options?: __HttpHandlerOptions, - ): Effect.Effect; - - /** - * @see {@link GetObjectLegalHoldCommand} - */ - getObjectLegalHold( - args: GetObjectLegalHoldCommandInput, - options?: __HttpHandlerOptions, - ): Effect.Effect; - - /** - * @see {@link GetObjectLockConfigurationCommand} - */ - getObjectLockConfiguration( - args: GetObjectLockConfigurationCommandInput, - options?: __HttpHandlerOptions, - ): Effect.Effect< - GetObjectLockConfigurationCommandOutput, - SdkError | S3ServiceError - >; - - /** - * @see {@link GetObjectRetentionCommand} - */ - getObjectRetention( - args: GetObjectRetentionCommandInput, - options?: __HttpHandlerOptions, - ): Effect.Effect; - - /** - * @see {@link GetObjectTaggingCommand} - */ - getObjectTagging( - args: GetObjectTaggingCommandInput, - options?: __HttpHandlerOptions, - ): Effect.Effect; - - /** - * @see {@link GetObjectTorrentCommand} - */ - getObjectTorrent( - args: GetObjectTorrentCommandInput, - options?: __HttpHandlerOptions, - ): Effect.Effect; - - /** - * @see {@link GetPublicAccessBlockCommand} - */ - getPublicAccessBlock( - args: GetPublicAccessBlockCommandInput, - options?: __HttpHandlerOptions, - ): Effect.Effect< - GetPublicAccessBlockCommandOutput, - SdkError | S3ServiceError - >; - - /** - * @see {@link HeadBucketCommand} - */ - headBucket( - args: HeadBucketCommandInput, - options?: __HttpHandlerOptions, - ): Effect.Effect; - - /** - * @see {@link HeadObjectCommand} - */ - headObject( - args: HeadObjectCommandInput, - options?: __HttpHandlerOptions, - ): Effect.Effect; - - /** - * @see {@link ListBucketAnalyticsConfigurationsCommand} - */ - listBucketAnalyticsConfigurations( - args: ListBucketAnalyticsConfigurationsCommandInput, - options?: __HttpHandlerOptions, - ): Effect.Effect< - ListBucketAnalyticsConfigurationsCommandOutput, - SdkError | S3ServiceError - >; - - /** - * @see {@link ListBucketIntelligentTieringConfigurationsCommand} - */ - listBucketIntelligentTieringConfigurations( - args: ListBucketIntelligentTieringConfigurationsCommandInput, - options?: __HttpHandlerOptions, - ): Effect.Effect< - ListBucketIntelligentTieringConfigurationsCommandOutput, - SdkError | S3ServiceError - >; - - /** - * @see {@link ListBucketInventoryConfigurationsCommand} - */ - listBucketInventoryConfigurations( - args: ListBucketInventoryConfigurationsCommandInput, - options?: __HttpHandlerOptions, - ): Effect.Effect< - ListBucketInventoryConfigurationsCommandOutput, - SdkError | S3ServiceError - >; - - /** - * @see {@link ListBucketMetricsConfigurationsCommand} - */ - listBucketMetricsConfigurations( - args: ListBucketMetricsConfigurationsCommandInput, - options?: __HttpHandlerOptions, - ): Effect.Effect< - ListBucketMetricsConfigurationsCommandOutput, - SdkError | S3ServiceError - >; - - /** - * @see {@link ListBucketsCommand} - */ - listBuckets( - args: ListBucketsCommandInput, - options?: __HttpHandlerOptions, - ): Effect.Effect; - - /** - * @see {@link ListDirectoryBucketsCommand} - */ - listDirectoryBuckets( - args: ListDirectoryBucketsCommandInput, - options?: __HttpHandlerOptions, - ): Effect.Effect< - ListDirectoryBucketsCommandOutput, - SdkError | S3ServiceError - >; - - /** - * @see {@link ListMultipartUploadsCommand} - */ - listMultipartUploads( - args: ListMultipartUploadsCommandInput, - options?: __HttpHandlerOptions, - ): Effect.Effect< - ListMultipartUploadsCommandOutput, - SdkError | S3ServiceError - >; - - /** - * @see {@link ListObjectsCommand} - */ - listObjects( - args: ListObjectsCommandInput, - options?: __HttpHandlerOptions, - ): Effect.Effect; - - /** - * @see {@link ListObjectsV2Command} - */ - listObjectsV2( - args: ListObjectsV2CommandInput, - options?: __HttpHandlerOptions, - ): Effect.Effect; - - /** - * @see {@link ListObjectVersionsCommand} - */ - listObjectVersions( - args: ListObjectVersionsCommandInput, - options?: __HttpHandlerOptions, - ): Effect.Effect; - - /** - * @see {@link ListPartsCommand} - */ - listParts( - args: ListPartsCommandInput, - options?: __HttpHandlerOptions, - ): Effect.Effect; - - /** - * @see {@link PutBucketAccelerateConfigurationCommand} - */ - putBucketAccelerateConfiguration( - args: PutBucketAccelerateConfigurationCommandInput, - options?: __HttpHandlerOptions, - ): Effect.Effect< - PutBucketAccelerateConfigurationCommandOutput, - SdkError | S3ServiceError - >; - - /** - * @see {@link PutBucketAclCommand} - */ - putBucketAcl( - args: PutBucketAclCommandInput, - options?: __HttpHandlerOptions, - ): Effect.Effect; - - /** - * @see {@link PutBucketAnalyticsConfigurationCommand} - */ - putBucketAnalyticsConfiguration( - args: PutBucketAnalyticsConfigurationCommandInput, - options?: __HttpHandlerOptions, - ): Effect.Effect< - PutBucketAnalyticsConfigurationCommandOutput, - SdkError | S3ServiceError - >; - - /** - * @see {@link PutBucketCorsCommand} - */ - putBucketCors( - args: PutBucketCorsCommandInput, - options?: __HttpHandlerOptions, - ): Effect.Effect; - - /** - * @see {@link PutBucketEncryptionCommand} - */ - putBucketEncryption( - args: PutBucketEncryptionCommandInput, - options?: __HttpHandlerOptions, - ): Effect.Effect; - - /** - * @see {@link PutBucketIntelligentTieringConfigurationCommand} - */ - putBucketIntelligentTieringConfiguration( - args: PutBucketIntelligentTieringConfigurationCommandInput, - options?: __HttpHandlerOptions, - ): Effect.Effect< - PutBucketIntelligentTieringConfigurationCommandOutput, - SdkError | S3ServiceError - >; - - /** - * @see {@link PutBucketInventoryConfigurationCommand} - */ - putBucketInventoryConfiguration( - args: PutBucketInventoryConfigurationCommandInput, - options?: __HttpHandlerOptions, - ): Effect.Effect< - PutBucketInventoryConfigurationCommandOutput, - SdkError | S3ServiceError - >; - - /** - * @see {@link PutBucketLifecycleConfigurationCommand} - */ - putBucketLifecycleConfiguration( - args: PutBucketLifecycleConfigurationCommandInput, - options?: __HttpHandlerOptions, - ): Effect.Effect< - PutBucketLifecycleConfigurationCommandOutput, - SdkError | S3ServiceError - >; - - /** - * @see {@link PutBucketLoggingCommand} - */ - putBucketLogging( - args: PutBucketLoggingCommandInput, - options?: __HttpHandlerOptions, - ): Effect.Effect; - - /** - * @see {@link PutBucketMetricsConfigurationCommand} - */ - putBucketMetricsConfiguration( - args: PutBucketMetricsConfigurationCommandInput, - options?: __HttpHandlerOptions, - ): Effect.Effect< - PutBucketMetricsConfigurationCommandOutput, - SdkError | S3ServiceError - >; - - /** - * @see {@link PutBucketNotificationConfigurationCommand} - */ - putBucketNotificationConfiguration( - args: PutBucketNotificationConfigurationCommandInput, - options?: __HttpHandlerOptions, - ): Effect.Effect< - PutBucketNotificationConfigurationCommandOutput, - SdkError | S3ServiceError - >; - - /** - * @see {@link PutBucketOwnershipControlsCommand} - */ - putBucketOwnershipControls( - args: PutBucketOwnershipControlsCommandInput, - options?: __HttpHandlerOptions, - ): Effect.Effect< - PutBucketOwnershipControlsCommandOutput, - SdkError | S3ServiceError - >; - - /** - * @see {@link PutBucketPolicyCommand} - */ - putBucketPolicy( - args: PutBucketPolicyCommandInput, - options?: __HttpHandlerOptions, - ): Effect.Effect; - - /** - * @see {@link PutBucketReplicationCommand} - */ - putBucketReplication( - args: PutBucketReplicationCommandInput, - options?: __HttpHandlerOptions, - ): Effect.Effect< - PutBucketReplicationCommandOutput, - SdkError | S3ServiceError - >; - - /** - * @see {@link PutBucketRequestPaymentCommand} - */ - putBucketRequestPayment( - args: PutBucketRequestPaymentCommandInput, - options?: __HttpHandlerOptions, - ): Effect.Effect< - PutBucketRequestPaymentCommandOutput, - SdkError | S3ServiceError - >; - - /** - * @see {@link PutBucketTaggingCommand} - */ - putBucketTagging( - args: PutBucketTaggingCommandInput, - options?: __HttpHandlerOptions, - ): Effect.Effect; - - /** - * @see {@link PutBucketVersioningCommand} - */ - putBucketVersioning( - args: PutBucketVersioningCommandInput, - options?: __HttpHandlerOptions, - ): Effect.Effect; - - /** - * @see {@link PutBucketWebsiteCommand} - */ - putBucketWebsite( - args: PutBucketWebsiteCommandInput, - options?: __HttpHandlerOptions, - ): Effect.Effect; - - /** - * @see {@link PutObjectCommand} - */ - putObject( - args: PutObjectCommandInput, - options?: { readonly presigned?: false } & __HttpHandlerOptions, - ): Effect.Effect; - putObject( - args: PutObjectCommandInput, - options?: { readonly presigned: true } & RequestPresigningArguments, - ): Effect.Effect; - - /** - * @see {@link PutObjectAclCommand} - */ - putObjectAcl( - args: PutObjectAclCommandInput, - options?: __HttpHandlerOptions, - ): Effect.Effect; - - /** - * @see {@link PutObjectLegalHoldCommand} - */ - putObjectLegalHold( - args: PutObjectLegalHoldCommandInput, - options?: __HttpHandlerOptions, - ): Effect.Effect; - - /** - * @see {@link PutObjectLockConfigurationCommand} - */ - putObjectLockConfiguration( - args: PutObjectLockConfigurationCommandInput, - options?: __HttpHandlerOptions, - ): Effect.Effect< - PutObjectLockConfigurationCommandOutput, - SdkError | S3ServiceError - >; - - /** - * @see {@link PutObjectRetentionCommand} - */ - putObjectRetention( - args: PutObjectRetentionCommandInput, - options?: __HttpHandlerOptions, - ): Effect.Effect; - - /** - * @see {@link PutObjectTaggingCommand} - */ - putObjectTagging( - args: PutObjectTaggingCommandInput, - options?: __HttpHandlerOptions, - ): Effect.Effect; - - /** - * @see {@link PutPublicAccessBlockCommand} - */ - putPublicAccessBlock( - args: PutPublicAccessBlockCommandInput, - options?: __HttpHandlerOptions, - ): Effect.Effect< - PutPublicAccessBlockCommandOutput, - SdkError | S3ServiceError - >; - - /** - * @see {@link RestoreObjectCommand} - */ - restoreObject( - args: RestoreObjectCommandInput, - options?: __HttpHandlerOptions, - ): Effect.Effect< - RestoreObjectCommandOutput, - SdkError | ObjectAlreadyInActiveTierError - >; - - /** - * @see {@link SelectObjectContentCommand} - */ - selectObjectContent( - args: SelectObjectContentCommandInput, - options?: __HttpHandlerOptions, - ): Effect.Effect; - - /** - * @see {@link UploadPartCommand} - */ - uploadPart( - args: UploadPartCommandInput, - options?: __HttpHandlerOptions, - ): Effect.Effect; - - /** - * @see {@link UploadPartCopyCommand} - */ - uploadPartCopy( - args: UploadPartCopyCommandInput, - options?: __HttpHandlerOptions, - ): Effect.Effect; - - /** - * @see {@link WriteGetObjectResponseCommand} - */ - writeGetObjectResponse( - args: WriteGetObjectResponseCommandInput, - options?: __HttpHandlerOptions, - ): Effect.Effect< - WriteGetObjectResponseCommandOutput, - SdkError | S3ServiceError - >; -} - -/** - * @since 1.0.0 - * @category tags - */ -export const S3Service = Context.GenericTag( - "@effect-aws/client-s3/S3Service", -); - -/** - * @since 1.0.0 - * @category constructors - */ -export const makeS3Service = Effect.gen(function* (_) { - const client = yield* _(S3ClientInstance); - - const catchErrors = (e: unknown) => { - if (e instanceof S3ServiceException) { - const ServiceException = Data.tagged>( - e.name, - ); - - return ServiceException({ - ...e, - message: e.message, - stack: e.stack, - }); - } - if (e instanceof Error) { - return SdkError({ - ...e, - name: "SdkError", - message: e.message, - stack: e.stack, - }); - } - throw e; - }; - - return ReadonlyRecord.toEntries(commands).reduce((acc, [command]) => { - const CommandCtor = commands[command] as any; - const methodImpl = ( - args: any, - options?: - | ({ readonly presigned?: false } & __HttpHandlerOptions) - | ({ readonly presigned: true } & RequestPresigningArguments), - ) => - options?.presigned - ? Effect.tryPromise({ - try: () => - getSignedUrl(client as any, new CommandCtor(args), options), - catch: catchErrors, - }) - : Effect.tryPromise({ - try: () => client.send(new CommandCtor(args), options), - catch: catchErrors, - }); - const methodName = (command[0].toLowerCase() + command.slice(1)).replace( - /Command$/, - "", - ); - return { ...acc, [methodName]: methodImpl }; - }, {}) as S3Service; -}); - -/** - * @since 1.0.0 - * @category layers - */ -export const BaseS3ServiceLayer = Layer.effect(S3Service, makeS3Service); - -/** - * @since 1.0.0 - * @category layers - */ -export const S3ServiceLayer = BaseS3ServiceLayer.pipe( - Layer.provide(S3ClientInstanceLayer), -); - -/** - * @since 1.0.0 - * @category layers - */ -export const DefaultS3ServiceLayer = S3ServiceLayer.pipe( - Layer.provide(DefaultS3ClientConfigLayer), -); - -// -------------------- Danger Zone -------------------- - -/** - * @since 0.1.0 - * @deprecated - */ -export const BaseS3ServiceEffect = makeS3Service; - -/** - * @since 0.1.0 - * @deprecated - */ -export const S3ServiceEffect = BaseS3ServiceEffect.pipe( - Effect.provide(S3ClientInstanceLayer), -); - -/** - * @since 0.1.0 - * @deprecated - */ -export const DefaultS3ServiceEffect = BaseS3ServiceEffect.pipe( - Effect.provide(DefaultS3ClientInstanceLayer), -); diff --git a/packages/client-s3/src/index.ts b/packages/client-s3/src/index.ts deleted file mode 100644 index 4a56a03..0000000 --- a/packages/client-s3/src/index.ts +++ /dev/null @@ -1,4 +0,0 @@ -export * from "./Errors"; -export * from "./S3ClientInstance"; -export * from "./S3ClientInstanceConfig"; -export * from "./S3Service"; diff --git a/packages/client-s3/test/S3.test.ts b/packages/client-s3/test/S3.test.ts deleted file mode 100644 index f5d5ef9..0000000 --- a/packages/client-s3/test/S3.test.ts +++ /dev/null @@ -1,198 +0,0 @@ -import { - GetObjectCommand, - type GetObjectCommandInput, - HeadObjectCommand, - type HeadObjectCommandInput, - S3Client, -} from "@aws-sdk/client-s3"; -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 * as Layer from "effect/Layer"; - -const getSignedUrl = vi.hoisted(() => - vi - .fn() - .mockResolvedValue( - "https://test.s3.eu-central-1.amazonaws.com/test?whatever", - ), -); -vi.mock("@aws-sdk/s3-request-presigner", () => ({ getSignedUrl })); - -import { - BaseS3ServiceLayer, - DefaultS3ClientConfigLayer, - DefaultS3ServiceLayer, - S3ClientInstance, - S3ClientInstanceConfig, - S3Service, - S3ServiceLayer, - SdkError, -} from "../src"; - -import "aws-sdk-client-mock-jest"; - -const clientMock = mockClient(S3Client); - -describe("S3ClientImpl", () => { - it("default", async () => { - clientMock.reset().on(HeadObjectCommand).resolves({}); - - const args: HeadObjectCommandInput = { Key: "test", Bucket: "test" }; - - const program = Effect.flatMap(S3Service, (service) => - service.headObject(args), - ); - - const result = await pipe( - program, - Effect.provide(DefaultS3ServiceLayer), - Effect.runPromiseExit, - ); - - expect(result).toEqual(Exit.succeed({})); - expect(clientMock).toHaveReceivedCommandTimes(HeadObjectCommand, 1); - expect(clientMock).toHaveReceivedCommandWith(HeadObjectCommand, args); - }); - - it("configurable", async () => { - clientMock.reset().on(HeadObjectCommand).resolves({}); - - const args: HeadObjectCommandInput = { Key: "test", Bucket: "test" }; - - const program = Effect.flatMap(S3Service, (service) => - service.headObject(args), - ); - - const S3ClientConfigLayer = Layer.succeed(S3ClientInstanceConfig, { - region: "eu-central-1", - }); - const CustomS3ServiceLayer = S3ServiceLayer.pipe( - Layer.provide(S3ClientConfigLayer), - ); - - const result = await pipe( - program, - Effect.provide(CustomS3ServiceLayer), - Effect.runPromiseExit, - ); - - expect(result).toEqual(Exit.succeed({})); - expect(clientMock).toHaveReceivedCommandTimes(HeadObjectCommand, 1); - expect(clientMock).toHaveReceivedCommandWith(HeadObjectCommand, args); - }); - - it("base", async () => { - clientMock.reset().on(HeadObjectCommand).resolves({}); - - const args: HeadObjectCommandInput = { Key: "test", Bucket: "test" }; - - const program = Effect.flatMap(S3Service, (service) => - service.headObject(args), - ); - - const S3ClientInstanceLayer = Layer.succeed( - S3ClientInstance, - new S3Client({ region: "eu-central-1" }), - ); - const CustomS3ServiceLayer = BaseS3ServiceLayer.pipe( - Layer.provide(S3ClientInstanceLayer), - ); - - const result = await pipe( - program, - Effect.provide(CustomS3ServiceLayer), - Effect.runPromiseExit, - ); - - expect(result).toEqual(Exit.succeed({})); - expect(clientMock).toHaveReceivedCommandTimes(HeadObjectCommand, 1); - expect(clientMock).toHaveReceivedCommandWith(HeadObjectCommand, args); - }); - - it("extended", async () => { - clientMock.reset().on(HeadObjectCommand).resolves({}); - - const args: HeadObjectCommandInput = { Key: "test", Bucket: "test" }; - - const program = Effect.flatMap(S3Service, (service) => - service.headObject(args), - ); - - const S3ClientInstanceLayer = Layer.effect( - S3ClientInstance, - Effect.map( - S3ClientInstanceConfig, - (config) => new S3Client({ ...config, region: "eu-central-1" }), - ), - ); - const CustomS3ServiceLayer = BaseS3ServiceLayer.pipe( - Layer.provide(S3ClientInstanceLayer), - Layer.provide(DefaultS3ClientConfigLayer), - ); - - const result = await pipe( - program, - Effect.provide(CustomS3ServiceLayer), - Effect.runPromiseExit, - ); - - expect(result).toEqual(Exit.succeed({})); - expect(clientMock).toHaveReceivedCommandTimes(HeadObjectCommand, 1); - expect(clientMock).toHaveReceivedCommandWith(HeadObjectCommand, args); - }); - - it("fail", async () => { - clientMock.reset().on(HeadObjectCommand).rejects(new Error("test")); - - const args: HeadObjectCommandInput = { Key: "test", Bucket: "test" }; - - const program = Effect.flatMap(S3Service, (service) => - service.headObject(args, { requestTimeout: 1000 }), - ); - - const result = await pipe( - program, - Effect.provide(DefaultS3ServiceLayer), - Effect.runPromiseExit, - ); - - expect(result).toEqual( - Exit.fail( - SdkError({ - ...new Error("test"), - name: "SdkError", - message: "test", - stack: expect.any(String), - }), - ), - ); - expect(clientMock).toHaveReceivedCommandTimes(HeadObjectCommand, 1); - expect(clientMock).toHaveReceivedCommandWith(HeadObjectCommand, args); - }); - - it("presigned url", async () => { - const args: GetObjectCommandInput = { Key: "test", Bucket: "test" }; - - const program = Effect.flatMap(S3Service, (service) => - service.getObject(args, { presigned: true, expiresIn: 100 }), - ); - - const result = await pipe( - program, - Effect.provide(DefaultS3ServiceLayer), - Effect.runPromise, - ); - - expect(result).toMatch( - /^https:\/\/test\.s3\.eu-central-1\.amazonaws\.com\/test\?/, - ); - expect(getSignedUrl).toHaveBeenCalledTimes(1); - expect(getSignedUrl).toHaveBeenCalledWith( - expect.any(S3Client), - expect.any(GetObjectCommand), - { presigned: true, expiresIn: 100 }, - ); - }); -}); diff --git a/packages/client-s3/tsconfig.dev.json b/packages/client-s3/tsconfig.dev.json deleted file mode 100644 index 278f027..0000000 --- a/packages/client-s3/tsconfig.dev.json +++ /dev/null @@ -1,37 +0,0 @@ -// ~~ Generated by projen. To modify, edit .projenrc.js and run "npx projen". -{ - "compilerOptions": { - "alwaysStrict": true, - "declaration": true, - "esModuleInterop": true, - "experimentalDecorators": true, - "inlineSourceMap": true, - "inlineSources": true, - "lib": [ - "es2019", - "dom" - ], - "module": "CommonJS", - "noEmitOnError": false, - "noFallthroughCasesInSwitch": true, - "noImplicitAny": true, - "noImplicitReturns": true, - "noImplicitThis": true, - "noUnusedLocals": true, - "noUnusedParameters": true, - "resolveJsonModule": true, - "strict": true, - "strictNullChecks": true, - "strictPropertyInitialization": true, - "stripInternal": true, - "target": "ES2019", - "moduleResolution": "node" - }, - "include": [ - "src/**/*.ts", - "test/**/*.ts" - ], - "exclude": [ - "node_modules" - ] -} diff --git a/packages/client-s3/tsconfig.esm.json b/packages/client-s3/tsconfig.esm.json deleted file mode 100644 index 1b04668..0000000 --- a/packages/client-s3/tsconfig.esm.json +++ /dev/null @@ -1,10 +0,0 @@ -{ - "extends": "./tsconfig.json", - "compilerOptions": { - "outDir": "./lib/esm", - "module": "es6", - "resolveJsonModule": false, - "declaration": false - }, - "//": "~~ Generated by projen. To modify, edit .projenrc.js and run \"npx projen\"." -} diff --git a/packages/client-s3/tsconfig.json b/packages/client-s3/tsconfig.json deleted file mode 100644 index 576047c..0000000 --- a/packages/client-s3/tsconfig.json +++ /dev/null @@ -1,36 +0,0 @@ -// ~~ Generated by projen. To modify, edit .projenrc.js and run "npx projen". -{ - "compilerOptions": { - "rootDir": "src", - "outDir": "lib", - "alwaysStrict": true, - "declaration": true, - "esModuleInterop": true, - "experimentalDecorators": true, - "inlineSourceMap": true, - "inlineSources": true, - "lib": [ - "es2019", - "dom" - ], - "module": "CommonJS", - "noEmitOnError": false, - "noFallthroughCasesInSwitch": true, - "noImplicitAny": true, - "noImplicitReturns": true, - "noImplicitThis": true, - "noUnusedLocals": true, - "noUnusedParameters": true, - "resolveJsonModule": true, - "strict": true, - "strictNullChecks": true, - "strictPropertyInitialization": true, - "stripInternal": true, - "target": "ES2019", - "moduleResolution": "node" - }, - "include": [ - "src/**/*.ts" - ], - "exclude": [] -} diff --git a/packages/client-sfn/.eslintrc.json b/packages/client-sfn/.eslintrc.json deleted file mode 100644 index c31c44d..0000000 --- a/packages/client-sfn/.eslintrc.json +++ /dev/null @@ -1,126 +0,0 @@ -// ~~ Generated by projen. To modify, edit .projenrc.js and run "npx projen". -{ - "env": { - "jest": true, - "node": true - }, - "root": true, - "plugins": [ - "@typescript-eslint", - "import" - ], - "parser": "@typescript-eslint/parser", - "parserOptions": { - "ecmaVersion": 2018, - "sourceType": "module", - "project": "./tsconfig.dev.json" - }, - "extends": [ - "plugin:import/typescript", - "plugin:prettier/recommended" - ], - "settings": { - "import/parsers": { - "@typescript-eslint/parser": [ - ".ts", - ".tsx" - ] - }, - "import/resolver": { - "node": {}, - "typescript": { - "project": "./tsconfig.dev.json", - "alwaysTryTypes": true - } - } - }, - "ignorePatterns": [ - "*.js", - "*.d.ts", - "node_modules/", - "*.generated.ts", - "coverage" - ], - "rules": { - "@typescript-eslint/no-require-imports": [ - "error" - ], - "import/no-extraneous-dependencies": [ - "error", - { - "devDependencies": [ - "**/test/**", - "**/build-tools/**" - ], - "optionalDependencies": false, - "peerDependencies": true - } - ], - "import/no-unresolved": [ - "error" - ], - "import/order": [ - "warn", - { - "groups": [ - "builtin", - "external" - ], - "alphabetize": { - "order": "asc", - "caseInsensitive": true - } - } - ], - "no-duplicate-imports": [ - "error" - ], - "no-shadow": [ - "off" - ], - "@typescript-eslint/no-shadow": [ - "error" - ], - "key-spacing": [ - "error" - ], - "no-multiple-empty-lines": [ - "error" - ], - "@typescript-eslint/no-floating-promises": [ - "error" - ], - "no-return-await": [ - "off" - ], - "@typescript-eslint/return-await": [ - "error" - ], - "no-trailing-spaces": [ - "error" - ], - "dot-notation": [ - "error" - ], - "no-bitwise": [ - "error" - ], - "@typescript-eslint/member-ordering": [ - "error", - { - "default": [ - "public-static-field", - "public-static-method", - "protected-static-field", - "protected-static-method", - "private-static-field", - "private-static-method", - "field", - "constructor", - "method" - ] - } - ] - }, - "overrides": [] -} diff --git a/packages/client-sfn/.gitattributes b/packages/client-sfn/.gitattributes deleted file mode 100644 index 1c2be5a..0000000 --- a/packages/client-sfn/.gitattributes +++ /dev/null @@ -1,21 +0,0 @@ -# ~~ Generated by projen. To modify, edit .projenrc.js and run "npx projen". - -/./tsconfig.esm.json linguist-generated -/.eslintrc.json linguist-generated -/.gitattributes linguist-generated -/.gitignore linguist-generated -/.npmignore linguist-generated -/.npmrc linguist-generated -/.prettierignore linguist-generated -/.prettierrc.json 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 -/project.json linguist-generated -/tsconfig.dev.json linguist-generated -/tsconfig.json linguist-generated \ No newline at end of file diff --git a/packages/client-sfn/.gitignore b/packages/client-sfn/.gitignore deleted file mode 100644 index e4fdd83..0000000 --- a/packages/client-sfn/.gitignore +++ /dev/null @@ -1,45 +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 -!/.prettierignore -!/.prettierrc.json -!/.npmrc -!/test/ -!/tsconfig.json -!/tsconfig.dev.json -!/src/ -/lib -/dist/ -!/.eslintrc.json -!/tsconfig.esm.json -!/project.json -!/docgen.json -docs/ diff --git a/packages/client-sfn/.npmignore b/packages/client-sfn/.npmignore deleted file mode 100644 index 277d62e..0000000 --- a/packages/client-sfn/.npmignore +++ /dev/null @@ -1,20 +0,0 @@ -# ~~ Generated by projen. To modify, edit .projenrc.js and run "npx projen". -/.projen/ -/.prettierignore -/.prettierrc.json -/test/ -/tsconfig.dev.json -/src/ -!/lib/ -!/lib/**/*.js -!/lib/**/*.d.ts -dist -/tsconfig.json -/.github/ -/.vscode/ -/.idea/ -/.projenrc.js -tsconfig.tsbuildinfo -/.eslintrc.json -/tsconfig.esm.json -/.gitattributes diff --git a/packages/client-sfn/.prettierignore b/packages/client-sfn/.prettierignore deleted file mode 100644 index 46704c7..0000000 --- a/packages/client-sfn/.prettierignore +++ /dev/null @@ -1 +0,0 @@ -# ~~ Generated by projen. To modify, edit .projenrc.js and run "npx projen". diff --git a/packages/client-sfn/.prettierrc.json b/packages/client-sfn/.prettierrc.json deleted file mode 100644 index 84c85a3..0000000 --- a/packages/client-sfn/.prettierrc.json +++ /dev/null @@ -1,3 +0,0 @@ -{ - "overrides": [] -} diff --git a/packages/client-sfn/.projen/files.json b/packages/client-sfn/.projen/files.json deleted file mode 100644 index c38792b..0000000 --- a/packages/client-sfn/.projen/files.json +++ /dev/null @@ -1,20 +0,0 @@ -{ - "files": [ - ".eslintrc.json", - ".gitattributes", - ".gitignore", - ".npmignore", - ".prettierignore", - ".prettierrc.json", - ".projen/deps.json", - ".projen/files.json", - ".projen/tasks.json", - "docgen.json", - "LICENSE", - "project.json", - "tsconfig.dev.json", - "tsconfig.esm.json", - "tsconfig.json" - ], - "//": "~~ Generated by projen. To modify, edit .projenrc.js and run \"npx projen\"." -} diff --git a/packages/client-sfn/.projen/tasks.json b/packages/client-sfn/.projen/tasks.json deleted file mode 100644 index 6ecb00a..0000000 --- a/packages/client-sfn/.projen/tasks.json +++ /dev/null @@ -1,113 +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.json ./tsconfig.esm.json" - } - ] - }, - "default": { - "name": "default", - "description": "Synthesize project files" - }, - "eslint": { - "name": "eslint", - "description": "Runs eslint against the codebase", - "steps": [ - { - "exec": "eslint --ext .ts,.tsx --fix --no-error-on-unmatched-pattern $@ src test build-tools", - "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" - }, - "post-compile": { - "name": "post-compile", - "description": "Runs after successful compilation" - }, - "pre-compile": { - "name": "pre-compile", - "description": "Prepare the project for compilation" - }, - "test": { - "name": "test", - "description": "Run tests", - "steps": [ - { - "exec": "vitest run --globals --reporter verbose", - "receiveArgs": true - }, - { - "spawn": "eslint" - } - ] - }, - "test:watch": { - "name": "test:watch", - "description": "Run tests in watch mode", - "steps": [ - { - "exec": "vitest --globals --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/client-sfn/CHANGELOG.md b/packages/client-sfn/CHANGELOG.md deleted file mode 100644 index 319fa14..0000000 --- a/packages/client-sfn/CHANGELOG.md +++ /dev/null @@ -1,43 +0,0 @@ -# @effect-aws/client-sfn - -## 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 - -- [`3e5d0b3`](https://github.com/floydspace/effect-aws/commit/3e5d0b3b3882e0aa6d07bc06432990551316ac30) Thanks [@floydspace](https://github.com/floydspace)! - Upgrade to effect v2 and release stable version - -## 0.2.0 - -### Minor Changes - -- [`9058353`](https://github.com/floydspace/effect-aws/commit/9058353c86eef256221e4b6bd137aa55b312ecd9) Thanks [@floydspace](https://github.com/floydspace)! - return tagged errors in the failure channel - -## 0.1.0 - -### Minor Changes - -- [`651bc38`](https://github.com/floydspace/effect-aws/commit/651bc380e3f927835483f74fdde43640eff03055) Thanks [@floydspace](https://github.com/floydspace)! - implement effectful step functions client diff --git a/packages/client-sfn/LICENSE b/packages/client-sfn/LICENSE deleted file mode 100644 index 7afce46..0000000 --- a/packages/client-sfn/LICENSE +++ /dev/null @@ -1,19 +0,0 @@ -Copyright (c) 2024 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/client-sfn/README.md b/packages/client-sfn/README.md deleted file mode 100644 index b3fa7dd..0000000 --- a/packages/client-sfn/README.md +++ /dev/null @@ -1 +0,0 @@ -# replace this \ No newline at end of file diff --git a/packages/client-sfn/docgen.json b/packages/client-sfn/docgen.json deleted file mode 100644 index b359fc7..0000000 --- a/packages/client-sfn/docgen.json +++ /dev/null @@ -1,8 +0,0 @@ -{ - "$schema": "../../node_modules/@effect/docgen/schema.json", - "exclude": [ - "src/index.ts", - "src/Errors.ts" - ], - "//": "~~ Generated by projen. To modify, edit .projenrc.js and run \"npx projen\"." -} diff --git a/packages/client-sfn/package.json b/packages/client-sfn/package.json deleted file mode 100644 index 5457240..0000000 --- a/packages/client-sfn/package.json +++ /dev/null @@ -1,56 +0,0 @@ -{ - "name": "@effect-aws/client-sfn", - "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": { - "@types/node": "^18", - "@typescript-eslint/eslint-plugin": "^6", - "@typescript-eslint/parser": "^6", - "aws-sdk-client-mock": "^3.0.0", - "aws-sdk-client-mock-jest": "^3.0.0", - "constructs": "^10.0.0", - "effect": "2.3.1", - "eslint": "^8", - "eslint-config-prettier": "^9.0.0", - "eslint-import-resolver-typescript": "^3.6.1", - "eslint-plugin-import": "^2.28.1", - "eslint-plugin-prettier": "^5.0.0", - "prettier": "^3.0.3", - "projen": "^0.79.6", - "typescript": "^5.2.2" - }, - "peerDependencies": { - "effect": ">=2.3.1 <2.5.0" - }, - "dependencies": { - "@aws-sdk/client-sfn": "^3", - "@aws-sdk/types": "^3" - }, - "main": "lib/index.js", - "license": "MIT", - "homepage": "https://floydspace.github.io/effect-aws", - "publishConfig": { - "access": "public" - }, - "version": "1.1.1", - "types": "lib/index.d.ts", - "module": "lib/esm/index.js", - "sideEffects": [], - "//": "~~ Generated by projen. To modify, edit .projenrc.js and run \"npx projen\"." -} diff --git a/packages/client-sfn/project.json b/packages/client-sfn/project.json deleted file mode 100644 index 256d6b8..0000000 --- a/packages/client-sfn/project.json +++ /dev/null @@ -1,77 +0,0 @@ -{ - "name": "@effect-aws/client-sfn", - "root": "packages/client-sfn", - "targets": { - "default": { - "executor": "nx:run-commands", - "options": { - "command": "pnpm exec projen default", - "cwd": "packages/client-sfn" - } - }, - "pre-compile": { - "executor": "nx:run-commands", - "options": { - "command": "pnpm exec projen pre-compile", - "cwd": "packages/client-sfn" - } - }, - "compile": { - "executor": "nx:run-commands", - "options": { - "command": "pnpm exec projen compile", - "cwd": "packages/client-sfn" - } - }, - "post-compile": { - "executor": "nx:run-commands", - "options": { - "command": "pnpm exec projen post-compile", - "cwd": "packages/client-sfn" - } - }, - "test": { - "executor": "nx:run-commands", - "options": { - "command": "pnpm exec projen test", - "cwd": "packages/client-sfn" - } - }, - "package": { - "executor": "nx:run-commands", - "options": { - "command": "pnpm exec projen package", - "cwd": "packages/client-sfn" - } - }, - "build": { - "executor": "nx:run-commands", - "options": { - "command": "pnpm exec projen build", - "cwd": "packages/client-sfn" - } - }, - "watch": { - "executor": "nx:run-commands", - "options": { - "command": "pnpm exec projen watch", - "cwd": "packages/client-sfn" - } - }, - "eslint": { - "executor": "nx:run-commands", - "options": { - "command": "pnpm exec projen eslint", - "cwd": "packages/client-sfn" - } - }, - "test:watch": { - "executor": "nx:run-commands", - "options": { - "command": "pnpm exec projen test:watch", - "cwd": "packages/client-sfn" - } - } - }, - "//": "~~ Generated by projen. To modify, edit .projenrc.js and run \"npx projen\"." -} diff --git a/packages/client-sfn/src/Errors.ts b/packages/client-sfn/src/Errors.ts deleted file mode 100644 index 612d46d..0000000 --- a/packages/client-sfn/src/Errors.ts +++ /dev/null @@ -1,78 +0,0 @@ -import type { - ActivityDoesNotExist, - ActivityLimitExceeded, - ActivityWorkerLimitExceeded, - InvalidName, - TooManyTags, - ConflictException, - InvalidArn, - InvalidDefinition, - InvalidLoggingConfiguration, - InvalidTracingConfiguration, - StateMachineAlreadyExists, - StateMachineDeleting, - StateMachineLimitExceeded, - StateMachineTypeNotSupported, - ValidationException, - ResourceNotFound, - ServiceQuotaExceededException, - ExecutionDoesNotExist, - StateMachineDoesNotExist, - InvalidToken, - ExecutionLimitExceeded, - ExecutionNotRedrivable, - TaskDoesNotExist, - TaskTimedOut, - InvalidOutput, - ExecutionAlreadyExists, - InvalidExecutionInput, - MissingRequiredParameter, -} from "@aws-sdk/client-sfn"; -import * as Data from "effect/Data"; - -export type TaggedException = T & { - readonly _tag: T["name"]; -}; - -export type ActivityDoesNotExistError = TaggedException; -export type ActivityLimitExceededError = TaggedException; -export type ActivityWorkerLimitExceededError = - TaggedException; -export type InvalidNameError = TaggedException; -export type TooManyTagsError = TaggedException; -export type ConflictError = TaggedException; -export type InvalidArnError = TaggedException; -export type InvalidDefinitionError = TaggedException; -export type InvalidLoggingConfigurationError = - TaggedException; -export type InvalidTracingConfigurationError = - TaggedException; -export type StateMachineAlreadyExistsError = - TaggedException; -export type StateMachineDeletingError = TaggedException; -export type StateMachineLimitExceededError = - TaggedException; -export type StateMachineTypeNotSupportedError = - TaggedException; -export type ValidationError = TaggedException; -export type ResourceNotFoundError = TaggedException; -export type ServiceQuotaExceededError = - TaggedException; -export type ExecutionDoesNotExistError = TaggedException; -export type StateMachineDoesNotExistError = - TaggedException; -export type InvalidTokenError = TaggedException; -export type ExecutionLimitExceededError = - TaggedException; -export type ExecutionNotRedrivableError = - TaggedException; -export type TaskDoesNotExistError = TaggedException; -export type TaskTimedOutError = TaggedException; -export type InvalidOutputError = TaggedException; -export type ExecutionAlreadyExistsError = - TaggedException; -export type InvalidExecutionInputError = TaggedException; -export type MissingRequiredParameterError = - TaggedException; -export type SdkError = TaggedException; -export const SdkError = Data.tagged("SdkError"); diff --git a/packages/client-sfn/src/SFNClientInstance.ts b/packages/client-sfn/src/SFNClientInstance.ts deleted file mode 100644 index eaa7531..0000000 --- a/packages/client-sfn/src/SFNClientInstance.ts +++ /dev/null @@ -1,45 +0,0 @@ -/** - * @since 1.0.0 - */ -import { SFNClient } from "@aws-sdk/client-sfn"; -import * as Context from "effect/Context"; -import * as Effect from "effect/Effect"; -import * as Layer from "effect/Layer"; -import { - DefaultSFNClientConfigLayer, - SFNClientInstanceConfig, -} from "./SFNClientInstanceConfig"; - -/** - * @since 1.0.0 - * @category tags - */ -export class SFNClientInstance extends Context.Tag( - "@effect-aws/client-sfn/SFNClientInstance", -)() {} - -/** - * @since 1.0.0 - * @category constructors - */ -export const makeSFNClientInstance = Effect.map( - SFNClientInstanceConfig, - (config) => new SFNClient(config), -); - -/** - * @since 1.0.0 - * @category layers - */ -export const SFNClientInstanceLayer = Layer.effect( - SFNClientInstance, - makeSFNClientInstance, -); - -/** - * @since 1.0.0 - * @category layers - */ -export const DefaultSFNClientInstanceLayer = SFNClientInstanceLayer.pipe( - Layer.provide(DefaultSFNClientConfigLayer), -); diff --git a/packages/client-sfn/src/SFNClientInstanceConfig.ts b/packages/client-sfn/src/SFNClientInstanceConfig.ts deleted file mode 100644 index 596b1f4..0000000 --- a/packages/client-sfn/src/SFNClientInstanceConfig.ts +++ /dev/null @@ -1,45 +0,0 @@ -/** - * @since 1.0.0 - */ -import type { SFNClientConfig } from "@aws-sdk/client-sfn"; -import * as Context from "effect/Context"; -import * as Effect from "effect/Effect"; -import * as Layer from "effect/Layer"; -import * as Runtime from "effect/Runtime"; - -/** - * @since 1.0.0 - * @category tags - */ -export class SFNClientInstanceConfig extends Context.Tag( - "@effect-aws/client-sfn/SFNClientInstanceConfig", -)() {} - -/** - * @since 1.0.0 - * @category constructors - */ -export const makeDefaultSFNClientInstanceConfig: Effect.Effect = - Effect.gen(function* (_) { - const runtime = yield* _(Effect.runtime()); - const runSync = Runtime.runSync(runtime); - - return { - logger: { - info: (m) => Effect.logInfo(m).pipe(runSync), - warn: (m) => Effect.logWarning(m).pipe(runSync), - error: (m) => Effect.logError(m).pipe(runSync), - debug: (m) => Effect.logDebug(m).pipe(runSync), - trace: (m) => Effect.logTrace(m).pipe(runSync), - }, - }; - }); - -/** - * @since 1.0.0 - * @category layers - */ -export const DefaultSFNClientConfigLayer = Layer.effect( - SFNClientInstanceConfig, - makeDefaultSFNClientInstanceConfig, -); diff --git a/packages/client-sfn/src/SFNService.ts b/packages/client-sfn/src/SFNService.ts deleted file mode 100644 index 5e38270..0000000 --- a/packages/client-sfn/src/SFNService.ts +++ /dev/null @@ -1,737 +0,0 @@ -/** - * @since 1.0.0 - */ -import { - CreateActivityCommand, - CreateActivityCommandInput, - CreateActivityCommandOutput, - CreateStateMachineAliasCommand, - CreateStateMachineAliasCommandInput, - CreateStateMachineAliasCommandOutput, - CreateStateMachineCommand, - CreateStateMachineCommandInput, - CreateStateMachineCommandOutput, - DeleteActivityCommand, - DeleteActivityCommandInput, - DeleteActivityCommandOutput, - DeleteStateMachineAliasCommand, - DeleteStateMachineAliasCommandInput, - DeleteStateMachineAliasCommandOutput, - DeleteStateMachineCommand, - DeleteStateMachineCommandInput, - DeleteStateMachineCommandOutput, - DeleteStateMachineVersionCommand, - DeleteStateMachineVersionCommandInput, - DeleteStateMachineVersionCommandOutput, - DescribeActivityCommand, - DescribeActivityCommandInput, - DescribeActivityCommandOutput, - DescribeExecutionCommand, - DescribeExecutionCommandInput, - DescribeExecutionCommandOutput, - DescribeMapRunCommand, - DescribeMapRunCommandInput, - DescribeMapRunCommandOutput, - DescribeStateMachineAliasCommand, - DescribeStateMachineAliasCommandInput, - DescribeStateMachineAliasCommandOutput, - DescribeStateMachineCommand, - DescribeStateMachineCommandInput, - DescribeStateMachineCommandOutput, - DescribeStateMachineForExecutionCommand, - DescribeStateMachineForExecutionCommandInput, - DescribeStateMachineForExecutionCommandOutput, - GetActivityTaskCommand, - GetActivityTaskCommandInput, - GetActivityTaskCommandOutput, - GetExecutionHistoryCommand, - GetExecutionHistoryCommandInput, - GetExecutionHistoryCommandOutput, - ListActivitiesCommand, - ListActivitiesCommandInput, - ListActivitiesCommandOutput, - ListExecutionsCommand, - ListExecutionsCommandInput, - ListExecutionsCommandOutput, - ListMapRunsCommand, - ListMapRunsCommandInput, - ListMapRunsCommandOutput, - ListStateMachineAliasesCommand, - ListStateMachineAliasesCommandInput, - ListStateMachineAliasesCommandOutput, - ListStateMachineVersionsCommand, - ListStateMachineVersionsCommandInput, - ListStateMachineVersionsCommandOutput, - ListStateMachinesCommand, - ListStateMachinesCommandInput, - ListStateMachinesCommandOutput, - ListTagsForResourceCommand, - ListTagsForResourceCommandInput, - ListTagsForResourceCommandOutput, - PublishStateMachineVersionCommand, - PublishStateMachineVersionCommandInput, - PublishStateMachineVersionCommandOutput, - RedriveExecutionCommand, - RedriveExecutionCommandInput, - RedriveExecutionCommandOutput, - SFNServiceException, - SendTaskFailureCommand, - SendTaskFailureCommandInput, - SendTaskFailureCommandOutput, - SendTaskHeartbeatCommand, - SendTaskHeartbeatCommandInput, - SendTaskHeartbeatCommandOutput, - SendTaskSuccessCommand, - SendTaskSuccessCommandInput, - SendTaskSuccessCommandOutput, - StartExecutionCommand, - StartExecutionCommandInput, - StartExecutionCommandOutput, - StartSyncExecutionCommand, - StartSyncExecutionCommandInput, - StartSyncExecutionCommandOutput, - StopExecutionCommand, - StopExecutionCommandInput, - StopExecutionCommandOutput, - TagResourceCommand, - TagResourceCommandInput, - TagResourceCommandOutput, - TestStateCommand, - TestStateCommandInput, - TestStateCommandOutput, - UntagResourceCommand, - UntagResourceCommandInput, - UntagResourceCommandOutput, - UpdateMapRunCommand, - UpdateMapRunCommandInput, - UpdateMapRunCommandOutput, - UpdateStateMachineAliasCommand, - UpdateStateMachineAliasCommandInput, - UpdateStateMachineAliasCommandOutput, - UpdateStateMachineCommand, - UpdateStateMachineCommandInput, - UpdateStateMachineCommandOutput, -} from "@aws-sdk/client-sfn"; -import { HttpHandlerOptions as __HttpHandlerOptions } from "@aws-sdk/types"; -import { Context, Data, Effect, Layer, ReadonlyRecord } from "effect"; -import { - ActivityDoesNotExistError, - ActivityLimitExceededError, - ActivityWorkerLimitExceededError, - ConflictError, - ExecutionAlreadyExistsError, - ExecutionDoesNotExistError, - ExecutionLimitExceededError, - ExecutionNotRedrivableError, - InvalidArnError, - InvalidDefinitionError, - InvalidExecutionInputError, - InvalidLoggingConfigurationError, - InvalidNameError, - InvalidOutputError, - InvalidTokenError, - InvalidTracingConfigurationError, - MissingRequiredParameterError, - ResourceNotFoundError, - SdkError, - ServiceQuotaExceededError, - StateMachineAlreadyExistsError, - StateMachineDeletingError, - StateMachineDoesNotExistError, - StateMachineLimitExceededError, - StateMachineTypeNotSupportedError, - TaggedException, - TaskDoesNotExistError, - TaskTimedOutError, - TooManyTagsError, - ValidationError, -} from "./Errors"; -import { - DefaultSFNClientInstanceLayer, - SFNClientInstance, - SFNClientInstanceLayer, -} from "./SFNClientInstance"; -import { DefaultSFNClientConfigLayer } from "./SFNClientInstanceConfig"; - -const commands = { - CreateActivityCommand, - CreateStateMachineCommand, - CreateStateMachineAliasCommand, - DeleteActivityCommand, - DeleteStateMachineCommand, - DeleteStateMachineAliasCommand, - DeleteStateMachineVersionCommand, - DescribeActivityCommand, - DescribeExecutionCommand, - DescribeMapRunCommand, - DescribeStateMachineCommand, - DescribeStateMachineAliasCommand, - DescribeStateMachineForExecutionCommand, - GetActivityTaskCommand, - GetExecutionHistoryCommand, - ListActivitiesCommand, - ListExecutionsCommand, - ListMapRunsCommand, - ListStateMachineAliasesCommand, - ListStateMachinesCommand, - ListStateMachineVersionsCommand, - ListTagsForResourceCommand, - PublishStateMachineVersionCommand, - RedriveExecutionCommand, - SendTaskFailureCommand, - SendTaskHeartbeatCommand, - SendTaskSuccessCommand, - StartExecutionCommand, - StartSyncExecutionCommand, - StopExecutionCommand, - TagResourceCommand, - TestStateCommand, - UntagResourceCommand, - UpdateMapRunCommand, - UpdateStateMachineCommand, - UpdateStateMachineAliasCommand, -}; - -/** - * @since 1.0.0 - * @category models - */ -export interface SFNService { - readonly _: unique symbol; - - /** - * @see {@link CreateActivityCommand} - */ - createActivity( - args: CreateActivityCommandInput, - options?: __HttpHandlerOptions, - ): Effect.Effect< - CreateActivityCommandOutput, - SdkError | ActivityLimitExceededError | InvalidNameError | TooManyTagsError - >; - /** - * @see {@link CreateStateMachineCommand} - */ - createStateMachine( - args: CreateStateMachineCommandInput, - options?: __HttpHandlerOptions, - ): Effect.Effect< - CreateStateMachineCommandOutput, - | SdkError - | ConflictError - | InvalidArnError - | InvalidDefinitionError - | InvalidLoggingConfigurationError - | InvalidNameError - | InvalidTracingConfigurationError - | StateMachineAlreadyExistsError - | StateMachineDeletingError - | StateMachineLimitExceededError - | StateMachineTypeNotSupportedError - | TooManyTagsError - | ValidationError - >; - /** - * @see {@link CreateStateMachineAliasCommand} - */ - createStateMachineAlias( - args: CreateStateMachineAliasCommandInput, - options?: __HttpHandlerOptions, - ): Effect.Effect< - CreateStateMachineAliasCommandOutput, - | SdkError - | ConflictError - | InvalidArnError - | InvalidNameError - | ResourceNotFoundError - | ServiceQuotaExceededError - | StateMachineDeletingError - | ValidationError - >; - /** - * @see {@link DeleteActivityCommand} - */ - deleteActivity( - args: DeleteActivityCommandInput, - options?: __HttpHandlerOptions, - ): Effect.Effect; - /** - * @see {@link DeleteStateMachineCommand} - */ - deleteStateMachine( - args: DeleteStateMachineCommandInput, - options?: __HttpHandlerOptions, - ): Effect.Effect< - DeleteStateMachineCommandOutput, - SdkError | InvalidArnError | ValidationError - >; - /** - * @see {@link DeleteStateMachineAliasCommand} - */ - deleteStateMachineAlias( - args: DeleteStateMachineAliasCommandInput, - options?: __HttpHandlerOptions, - ): Effect.Effect< - DeleteStateMachineAliasCommandOutput, - | SdkError - | ConflictError - | InvalidArnError - | ResourceNotFoundError - | ValidationError - >; - /** - * @see {@link DeleteStateMachineVersionCommand} - */ - deleteStateMachineVersion( - args: DeleteStateMachineVersionCommandInput, - options?: __HttpHandlerOptions, - ): Effect.Effect< - DeleteStateMachineVersionCommandOutput, - SdkError | ConflictError | InvalidArnError | ValidationError - >; - /** - * @see {@link DescribeActivityCommand} - */ - describeActivity( - args: DescribeActivityCommandInput, - options?: __HttpHandlerOptions, - ): Effect.Effect< - DescribeActivityCommandOutput, - SdkError | ActivityDoesNotExistError | InvalidArnError - >; - /** - * @see {@link DescribeExecutionCommand} - */ - describeExecution( - args: DescribeExecutionCommandInput, - options?: __HttpHandlerOptions, - ): Effect.Effect< - DescribeExecutionCommandOutput, - SdkError | ExecutionDoesNotExistError | InvalidArnError - >; - /** - * @see {@link DescribeMapRunCommand} - */ - describeMapRun( - args: DescribeMapRunCommandInput, - options?: __HttpHandlerOptions, - ): Effect.Effect< - DescribeMapRunCommandOutput, - SdkError | InvalidArnError | ResourceNotFoundError - >; - /** - * @see {@link DescribeStateMachineCommand} - */ - describeStateMachine( - args: DescribeStateMachineCommandInput, - options?: __HttpHandlerOptions, - ): Effect.Effect< - DescribeStateMachineCommandOutput, - SdkError | InvalidArnError | StateMachineDoesNotExistError - >; - /** - * @see {@link DescribeStateMachineAliasCommand} - */ - describeStateMachineAlias( - args: DescribeStateMachineAliasCommandInput, - options?: __HttpHandlerOptions, - ): Effect.Effect< - DescribeStateMachineAliasCommandOutput, - SdkError | InvalidArnError | ResourceNotFoundError | ValidationError - >; - /** - * @see {@link DescribeStateMachineForExecutionCommand} - */ - describeStateMachineForExecution( - args: DescribeStateMachineForExecutionCommandInput, - options?: __HttpHandlerOptions, - ): Effect.Effect< - DescribeStateMachineForExecutionCommandOutput, - SdkError | ExecutionDoesNotExistError | InvalidArnError - >; - /** - * @see {@link GetActivityTaskCommand} - */ - getActivityTask( - args: GetActivityTaskCommandInput, - options?: __HttpHandlerOptions, - ): Effect.Effect< - GetActivityTaskCommandOutput, - | SdkError - | ActivityDoesNotExistError - | ActivityWorkerLimitExceededError - | InvalidArnError - >; - /** - * @see {@link GetExecutionHistoryCommand} - */ - getExecutionHistory( - args: GetExecutionHistoryCommandInput, - options?: __HttpHandlerOptions, - ): Effect.Effect< - GetExecutionHistoryCommandOutput, - SdkError | ExecutionDoesNotExistError | InvalidArnError | InvalidTokenError - >; - /** - * @see {@link ListActivitiesCommand} - */ - listActivities( - args: ListActivitiesCommandInput, - options?: __HttpHandlerOptions, - ): Effect.Effect; - /** - * @see {@link ListExecutionsCommand} - */ - listExecutions( - args: ListExecutionsCommandInput, - options?: __HttpHandlerOptions, - ): Effect.Effect< - ListExecutionsCommandOutput, - | SdkError - | InvalidArnError - | InvalidTokenError - | ResourceNotFoundError - | StateMachineDoesNotExistError - | StateMachineTypeNotSupportedError - | ValidationError - >; - /** - * @see {@link ListMapRunsCommand} - */ - listMapRuns( - args: ListMapRunsCommandInput, - options?: __HttpHandlerOptions, - ): Effect.Effect< - ListMapRunsCommandOutput, - SdkError | ExecutionDoesNotExistError | InvalidArnError | InvalidTokenError - >; - /** - * @see {@link ListStateMachineAliasesCommand} - */ - listStateMachineAliases( - args: ListStateMachineAliasesCommandInput, - options?: __HttpHandlerOptions, - ): Effect.Effect< - ListStateMachineAliasesCommandOutput, - | SdkError - | InvalidArnError - | InvalidTokenError - | ResourceNotFoundError - | StateMachineDeletingError - | StateMachineDoesNotExistError - >; - /** - * @see {@link ListStateMachinesCommand} - */ - listStateMachines( - args: ListStateMachinesCommandInput, - options?: __HttpHandlerOptions, - ): Effect.Effect< - ListStateMachinesCommandOutput, - SdkError | InvalidTokenError - >; - /** - * @see {@link ListStateMachineVersionsCommand} - */ - listStateMachineVersions( - args: ListStateMachineVersionsCommandInput, - options?: __HttpHandlerOptions, - ): Effect.Effect< - ListStateMachineVersionsCommandOutput, - SdkError | InvalidArnError | InvalidTokenError | ValidationError - >; - /** - * @see {@link ListTagsForResourceCommand} - */ - listTagsForResource( - args: ListTagsForResourceCommandInput, - options?: __HttpHandlerOptions, - ): Effect.Effect< - ListTagsForResourceCommandOutput, - SdkError | InvalidArnError | ResourceNotFoundError - >; - /** - * @see {@link PublishStateMachineVersionCommand} - */ - publishStateMachineVersion( - args: PublishStateMachineVersionCommandInput, - options?: __HttpHandlerOptions, - ): Effect.Effect< - PublishStateMachineVersionCommandOutput, - | SdkError - | ConflictError - | InvalidArnError - | ServiceQuotaExceededError - | StateMachineDeletingError - | StateMachineDoesNotExistError - | ValidationError - >; - /** - * @see {@link RedriveExecutionCommand} - */ - redriveExecution( - args: RedriveExecutionCommandInput, - options?: __HttpHandlerOptions, - ): Effect.Effect< - RedriveExecutionCommandOutput, - | SdkError - | ExecutionDoesNotExistError - | ExecutionLimitExceededError - | ExecutionNotRedrivableError - | InvalidArnError - >; - /** - * @see {@link SendTaskFailureCommand} - */ - sendTaskFailure( - args: SendTaskFailureCommandInput, - options?: __HttpHandlerOptions, - ): Effect.Effect< - SendTaskFailureCommandOutput, - SdkError | InvalidTokenError | TaskDoesNotExistError | TaskTimedOutError - >; - /** - * @see {@link SendTaskHeartbeatCommand} - */ - sendTaskHeartbeat( - args: SendTaskHeartbeatCommandInput, - options?: __HttpHandlerOptions, - ): Effect.Effect< - SendTaskHeartbeatCommandOutput, - SdkError | InvalidTokenError | TaskDoesNotExistError | TaskTimedOutError - >; - /** - * @see {@link SendTaskSuccessCommand} - */ - sendTaskSuccess( - args: SendTaskSuccessCommandInput, - options?: __HttpHandlerOptions, - ): Effect.Effect< - SendTaskSuccessCommandOutput, - | SdkError - | InvalidOutputError - | InvalidTokenError - | TaskDoesNotExistError - | TaskTimedOutError - >; - /** - * @see {@link StartExecutionCommand} - */ - startExecution( - args: StartExecutionCommandInput, - options?: __HttpHandlerOptions, - ): Effect.Effect< - StartExecutionCommandOutput, - | SdkError - | ExecutionAlreadyExistsError - | ExecutionLimitExceededError - | InvalidArnError - | InvalidExecutionInputError - | InvalidNameError - | StateMachineDeletingError - | StateMachineDoesNotExistError - | ValidationError - >; - /** - * @see {@link StartSyncExecutionCommand} - */ - startSyncExecution( - args: StartSyncExecutionCommandInput, - options?: __HttpHandlerOptions, - ): Effect.Effect< - StartSyncExecutionCommandOutput, - | SdkError - | InvalidArnError - | InvalidExecutionInputError - | InvalidNameError - | StateMachineDeletingError - | StateMachineDoesNotExistError - | StateMachineTypeNotSupportedError - >; - /** - * @see {@link StopExecutionCommand} - */ - stopExecution( - args: StopExecutionCommandInput, - options?: __HttpHandlerOptions, - ): Effect.Effect< - StopExecutionCommandOutput, - SdkError | ExecutionDoesNotExistError | InvalidArnError | ValidationError - >; - /** - * @see {@link TagResourceCommand} - */ - tagResource( - args: TagResourceCommandInput, - options?: __HttpHandlerOptions, - ): Effect.Effect< - TagResourceCommandOutput, - SdkError | InvalidArnError | ResourceNotFoundError | TooManyTagsError - >; - /** - * @see {@link TestStateCommand} - */ - testState( - args: TestStateCommandInput, - options?: __HttpHandlerOptions, - ): Effect.Effect< - TestStateCommandOutput, - | SdkError - | InvalidArnError - | InvalidDefinitionError - | InvalidExecutionInputError - | ValidationError - >; - /** - * @see {@link UntagResourceCommand} - */ - untagResource( - args: UntagResourceCommandInput, - options?: __HttpHandlerOptions, - ): Effect.Effect< - UntagResourceCommandOutput, - SdkError | InvalidArnError | ResourceNotFoundError - >; - /** - * @see {@link UpdateMapRunCommand} - */ - updateMapRun( - args: UpdateMapRunCommandInput, - options?: __HttpHandlerOptions, - ): Effect.Effect< - UpdateMapRunCommandOutput, - SdkError | InvalidArnError | ResourceNotFoundError | ValidationError - >; - /** - * @see {@link UpdateStateMachineCommand} - */ - updateStateMachine( - args: UpdateStateMachineCommandInput, - options?: __HttpHandlerOptions, - ): Effect.Effect< - UpdateStateMachineCommandOutput, - | SdkError - | ConflictError - | InvalidArnError - | InvalidDefinitionError - | InvalidLoggingConfigurationError - | InvalidTracingConfigurationError - | MissingRequiredParameterError - | ServiceQuotaExceededError - | StateMachineDeletingError - | StateMachineDoesNotExistError - | ValidationError - >; - /** - * @see {@link UpdateStateMachineAliasCommand} - */ - updateStateMachineAlias( - args: UpdateStateMachineAliasCommandInput, - options?: __HttpHandlerOptions, - ): Effect.Effect< - UpdateStateMachineAliasCommandOutput, - | SdkError - | ConflictError - | InvalidArnError - | ResourceNotFoundError - | StateMachineDeletingError - | ValidationError - >; -} - -/** - * @since 1.0.0 - * @category tags - */ -export const SFNService = Context.GenericTag( - "@effect-aws/client-sfn/SFNService", -); - -/** - * @since 1.0.0 - * @category constructors - */ -export const makeSFNService = Effect.gen(function* (_) { - const client = yield* _(SFNClientInstance); - - return ReadonlyRecord.toEntries(commands).reduce((acc, [command]) => { - const CommandCtor = commands[command] as any; - const methodImpl = (args: any, options: any) => - Effect.tryPromise({ - try: () => client.send(new CommandCtor(args), options ?? {}), - catch: (e) => { - if (e instanceof SFNServiceException) { - const ServiceException = Data.tagged< - TaggedException - >(e.name); - - return ServiceException({ - ...e, - message: e.message, - stack: e.stack, - }); - } - if (e instanceof Error) { - return SdkError({ - ...e, - name: "SdkError", - message: e.message, - stack: e.stack, - }); - } - throw e; - }, - }); - const methodName = (command[0].toLowerCase() + command.slice(1)).replace( - /Command$/, - "", - ); - return { ...acc, [methodName]: methodImpl }; - }, {}) as SFNService; -}); - -/** - * @since 1.0.0 - * @category layers - */ -export const BaseSFNServiceLayer = Layer.effect(SFNService, makeSFNService); - -/** - * @since 1.0.0 - * @category layers - */ -export const SFNServiceLayer = BaseSFNServiceLayer.pipe( - Layer.provide(SFNClientInstanceLayer), -); - -/** - * @since 1.0.0 - * @category layers - */ -export const DefaultSFNServiceLayer = SFNServiceLayer.pipe( - Layer.provide(DefaultSFNClientConfigLayer), -); - -// -------------------- Danger Zone -------------------- - -/** - * @since 0.1.0 - * @deprecated - */ -export const BaseSFNServiceEffect = makeSFNService; - -/** - * @since 0.1.0 - * @deprecated - */ -export const SFNServiceEffect = BaseSFNServiceEffect.pipe( - Effect.provide(SFNClientInstanceLayer), -); - -/** - * @since 0.1.0 - * @deprecated - */ -export const DefaultSFNServiceEffect = BaseSFNServiceEffect.pipe( - Effect.provide(DefaultSFNClientInstanceLayer), -); diff --git a/packages/client-sfn/src/index.ts b/packages/client-sfn/src/index.ts deleted file mode 100644 index f8dd1c6..0000000 --- a/packages/client-sfn/src/index.ts +++ /dev/null @@ -1,4 +0,0 @@ -export * from "./Errors"; -export * from "./SFNClientInstance"; -export * from "./SFNClientInstanceConfig"; -export * from "./SFNService"; diff --git a/packages/client-sfn/test/SFN.test.ts b/packages/client-sfn/test/SFN.test.ts deleted file mode 100644 index ab52688..0000000 --- a/packages/client-sfn/test/SFN.test.ts +++ /dev/null @@ -1,168 +0,0 @@ -import { - SFNClient, - StartExecutionCommand, - StartExecutionCommandInput, -} from "@aws-sdk/client-sfn"; -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 * as Layer from "effect/Layer"; -import { - BaseSFNServiceLayer, - DefaultSFNClientConfigLayer, - DefaultSFNServiceLayer, - SFNClientInstance, - SFNClientInstanceConfig, - SFNService, - SFNServiceLayer, - SdkError, -} from "../src"; - -import "aws-sdk-client-mock-jest"; - -const sfnMock = mockClient(SFNClient); -const { startExecution } = Effect.serviceFunctions(SFNService); - -describe("SFNClientImpl", () => { - it("default", async () => { - sfnMock.reset().on(StartExecutionCommand).resolves({}); - - const args: StartExecutionCommandInput = { - stateMachineArn: "test", - input: "test", - }; - - const program = startExecution(args); - - const result = await pipe( - program, - Effect.provide(DefaultSFNServiceLayer), - Effect.runPromiseExit, - ); - - expect(result).toEqual(Exit.succeed({})); - expect(sfnMock).toHaveReceivedCommandTimes(StartExecutionCommand, 1); - expect(sfnMock).toHaveReceivedCommandWith(StartExecutionCommand, args); - }); - - it("configurable", async () => { - sfnMock.reset().on(StartExecutionCommand).resolves({}); - - const args: StartExecutionCommandInput = { - stateMachineArn: "test", - input: "test", - }; - - const program = startExecution(args); - - const SFNClientConfigLayer = Layer.succeed(SFNClientInstanceConfig, { - region: "eu-central-1", - }); - const CustomSFNServiceLayer = SFNServiceLayer.pipe( - Layer.provide(SFNClientConfigLayer), - ); - - const result = await pipe( - program, - Effect.provide(CustomSFNServiceLayer), - Effect.runPromiseExit, - ); - - expect(result).toEqual(Exit.succeed({})); - expect(sfnMock).toHaveReceivedCommandTimes(StartExecutionCommand, 1); - expect(sfnMock).toHaveReceivedCommandWith(StartExecutionCommand, args); - }); - - it("base", async () => { - sfnMock.reset().on(StartExecutionCommand).resolves({}); - - const args: StartExecutionCommandInput = { - stateMachineArn: "test", - input: "test", - }; - - const program = startExecution(args); - - const SFNClientInstanceLayer = Layer.succeed( - SFNClientInstance, - new SFNClient({ region: "eu-central-1" }), - ); - const CustomSFNServiceLayer = BaseSFNServiceLayer.pipe( - Layer.provide(SFNClientInstanceLayer), - ); - - const result = await pipe( - program, - Effect.provide(CustomSFNServiceLayer), - Effect.runPromiseExit, - ); - - expect(result).toEqual(Exit.succeed({})); - expect(sfnMock).toHaveReceivedCommandTimes(StartExecutionCommand, 1); - expect(sfnMock).toHaveReceivedCommandWith(StartExecutionCommand, args); - }); - - it("extended", async () => { - sfnMock.reset().on(StartExecutionCommand).resolves({}); - - const args: StartExecutionCommandInput = { - stateMachineArn: "test", - input: "test", - }; - - const program = startExecution(args); - - const SFNClientInstanceLayer = Layer.effect( - SFNClientInstance, - Effect.map( - SFNClientInstanceConfig, - (config) => new SFNClient({ ...config, region: "eu-central-1" }), - ), - ); - const CustomSFNServiceLayer = BaseSFNServiceLayer.pipe( - Layer.provide(SFNClientInstanceLayer), - Layer.provide(DefaultSFNClientConfigLayer), - ); - - const result = await pipe( - program, - Effect.provide(CustomSFNServiceLayer), - Effect.runPromiseExit, - ); - - expect(result).toEqual(Exit.succeed({})); - expect(sfnMock).toHaveReceivedCommandTimes(StartExecutionCommand, 1); - expect(sfnMock).toHaveReceivedCommandWith(StartExecutionCommand, args); - }); - - it("fail", async () => { - sfnMock.reset().on(StartExecutionCommand).rejects(new Error("test")); - - const args: StartExecutionCommandInput = { - stateMachineArn: "test", - input: "test", - }; - - const program = startExecution(args, { requestTimeout: 1000 }); - - const result = await pipe( - program, - Effect.provide(DefaultSFNServiceLayer), - Effect.runPromiseExit, - ); - - expect(result).toEqual( - Exit.fail( - SdkError({ - ...new Error("test"), - name: "SdkError", - message: "test", - stack: expect.any(String), - }), - ), - ); - expect(sfnMock).toHaveReceivedCommandTimes(StartExecutionCommand, 1); - expect(sfnMock).toHaveReceivedCommandWith(StartExecutionCommand, args); - }); -}); diff --git a/packages/client-sfn/tsconfig.dev.json b/packages/client-sfn/tsconfig.dev.json deleted file mode 100644 index 278f027..0000000 --- a/packages/client-sfn/tsconfig.dev.json +++ /dev/null @@ -1,37 +0,0 @@ -// ~~ Generated by projen. To modify, edit .projenrc.js and run "npx projen". -{ - "compilerOptions": { - "alwaysStrict": true, - "declaration": true, - "esModuleInterop": true, - "experimentalDecorators": true, - "inlineSourceMap": true, - "inlineSources": true, - "lib": [ - "es2019", - "dom" - ], - "module": "CommonJS", - "noEmitOnError": false, - "noFallthroughCasesInSwitch": true, - "noImplicitAny": true, - "noImplicitReturns": true, - "noImplicitThis": true, - "noUnusedLocals": true, - "noUnusedParameters": true, - "resolveJsonModule": true, - "strict": true, - "strictNullChecks": true, - "strictPropertyInitialization": true, - "stripInternal": true, - "target": "ES2019", - "moduleResolution": "node" - }, - "include": [ - "src/**/*.ts", - "test/**/*.ts" - ], - "exclude": [ - "node_modules" - ] -} diff --git a/packages/client-sfn/tsconfig.esm.json b/packages/client-sfn/tsconfig.esm.json deleted file mode 100644 index 1b04668..0000000 --- a/packages/client-sfn/tsconfig.esm.json +++ /dev/null @@ -1,10 +0,0 @@ -{ - "extends": "./tsconfig.json", - "compilerOptions": { - "outDir": "./lib/esm", - "module": "es6", - "resolveJsonModule": false, - "declaration": false - }, - "//": "~~ Generated by projen. To modify, edit .projenrc.js and run \"npx projen\"." -} diff --git a/packages/client-sfn/tsconfig.json b/packages/client-sfn/tsconfig.json deleted file mode 100644 index 576047c..0000000 --- a/packages/client-sfn/tsconfig.json +++ /dev/null @@ -1,36 +0,0 @@ -// ~~ Generated by projen. To modify, edit .projenrc.js and run "npx projen". -{ - "compilerOptions": { - "rootDir": "src", - "outDir": "lib", - "alwaysStrict": true, - "declaration": true, - "esModuleInterop": true, - "experimentalDecorators": true, - "inlineSourceMap": true, - "inlineSources": true, - "lib": [ - "es2019", - "dom" - ], - "module": "CommonJS", - "noEmitOnError": false, - "noFallthroughCasesInSwitch": true, - "noImplicitAny": true, - "noImplicitReturns": true, - "noImplicitThis": true, - "noUnusedLocals": true, - "noUnusedParameters": true, - "resolveJsonModule": true, - "strict": true, - "strictNullChecks": true, - "strictPropertyInitialization": true, - "stripInternal": true, - "target": "ES2019", - "moduleResolution": "node" - }, - "include": [ - "src/**/*.ts" - ], - "exclude": [] -} diff --git a/packages/client-sns/.eslintrc.json b/packages/client-sns/.eslintrc.json deleted file mode 100644 index c31c44d..0000000 --- a/packages/client-sns/.eslintrc.json +++ /dev/null @@ -1,126 +0,0 @@ -// ~~ Generated by projen. To modify, edit .projenrc.js and run "npx projen". -{ - "env": { - "jest": true, - "node": true - }, - "root": true, - "plugins": [ - "@typescript-eslint", - "import" - ], - "parser": "@typescript-eslint/parser", - "parserOptions": { - "ecmaVersion": 2018, - "sourceType": "module", - "project": "./tsconfig.dev.json" - }, - "extends": [ - "plugin:import/typescript", - "plugin:prettier/recommended" - ], - "settings": { - "import/parsers": { - "@typescript-eslint/parser": [ - ".ts", - ".tsx" - ] - }, - "import/resolver": { - "node": {}, - "typescript": { - "project": "./tsconfig.dev.json", - "alwaysTryTypes": true - } - } - }, - "ignorePatterns": [ - "*.js", - "*.d.ts", - "node_modules/", - "*.generated.ts", - "coverage" - ], - "rules": { - "@typescript-eslint/no-require-imports": [ - "error" - ], - "import/no-extraneous-dependencies": [ - "error", - { - "devDependencies": [ - "**/test/**", - "**/build-tools/**" - ], - "optionalDependencies": false, - "peerDependencies": true - } - ], - "import/no-unresolved": [ - "error" - ], - "import/order": [ - "warn", - { - "groups": [ - "builtin", - "external" - ], - "alphabetize": { - "order": "asc", - "caseInsensitive": true - } - } - ], - "no-duplicate-imports": [ - "error" - ], - "no-shadow": [ - "off" - ], - "@typescript-eslint/no-shadow": [ - "error" - ], - "key-spacing": [ - "error" - ], - "no-multiple-empty-lines": [ - "error" - ], - "@typescript-eslint/no-floating-promises": [ - "error" - ], - "no-return-await": [ - "off" - ], - "@typescript-eslint/return-await": [ - "error" - ], - "no-trailing-spaces": [ - "error" - ], - "dot-notation": [ - "error" - ], - "no-bitwise": [ - "error" - ], - "@typescript-eslint/member-ordering": [ - "error", - { - "default": [ - "public-static-field", - "public-static-method", - "protected-static-field", - "protected-static-method", - "private-static-field", - "private-static-method", - "field", - "constructor", - "method" - ] - } - ] - }, - "overrides": [] -} diff --git a/packages/client-sns/.gitattributes b/packages/client-sns/.gitattributes deleted file mode 100644 index 1c2be5a..0000000 --- a/packages/client-sns/.gitattributes +++ /dev/null @@ -1,21 +0,0 @@ -# ~~ Generated by projen. To modify, edit .projenrc.js and run "npx projen". - -/./tsconfig.esm.json linguist-generated -/.eslintrc.json linguist-generated -/.gitattributes linguist-generated -/.gitignore linguist-generated -/.npmignore linguist-generated -/.npmrc linguist-generated -/.prettierignore linguist-generated -/.prettierrc.json 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 -/project.json linguist-generated -/tsconfig.dev.json linguist-generated -/tsconfig.json linguist-generated \ No newline at end of file diff --git a/packages/client-sns/.gitignore b/packages/client-sns/.gitignore deleted file mode 100644 index e4fdd83..0000000 --- a/packages/client-sns/.gitignore +++ /dev/null @@ -1,45 +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 -!/.prettierignore -!/.prettierrc.json -!/.npmrc -!/test/ -!/tsconfig.json -!/tsconfig.dev.json -!/src/ -/lib -/dist/ -!/.eslintrc.json -!/tsconfig.esm.json -!/project.json -!/docgen.json -docs/ diff --git a/packages/client-sns/.npmignore b/packages/client-sns/.npmignore deleted file mode 100644 index 277d62e..0000000 --- a/packages/client-sns/.npmignore +++ /dev/null @@ -1,20 +0,0 @@ -# ~~ Generated by projen. To modify, edit .projenrc.js and run "npx projen". -/.projen/ -/.prettierignore -/.prettierrc.json -/test/ -/tsconfig.dev.json -/src/ -!/lib/ -!/lib/**/*.js -!/lib/**/*.d.ts -dist -/tsconfig.json -/.github/ -/.vscode/ -/.idea/ -/.projenrc.js -tsconfig.tsbuildinfo -/.eslintrc.json -/tsconfig.esm.json -/.gitattributes diff --git a/packages/client-sns/.prettierignore b/packages/client-sns/.prettierignore deleted file mode 100644 index 46704c7..0000000 --- a/packages/client-sns/.prettierignore +++ /dev/null @@ -1 +0,0 @@ -# ~~ Generated by projen. To modify, edit .projenrc.js and run "npx projen". diff --git a/packages/client-sns/.prettierrc.json b/packages/client-sns/.prettierrc.json deleted file mode 100644 index 84c85a3..0000000 --- a/packages/client-sns/.prettierrc.json +++ /dev/null @@ -1,3 +0,0 @@ -{ - "overrides": [] -} diff --git a/packages/client-sns/.projen/deps.json b/packages/client-sns/.projen/deps.json deleted file mode 100644 index 7b2d656..0000000 --- a/packages/client-sns/.projen/deps.json +++ /dev/null @@ -1,82 +0,0 @@ -{ - "dependencies": [ - { - "name": "@types/node", - "version": "^18", - "type": "build" - }, - { - "name": "@typescript-eslint/eslint-plugin", - "version": "^6", - "type": "build" - }, - { - "name": "@typescript-eslint/parser", - "version": "^6", - "type": "build" - }, - { - "name": "aws-sdk-client-mock", - "type": "build" - }, - { - "name": "aws-sdk-client-mock-jest", - "type": "build" - }, - { - "name": "constructs", - "version": "^10.0.0", - "type": "build" - }, - { - "name": "eslint-config-prettier", - "type": "build" - }, - { - "name": "eslint-import-resolver-typescript", - "type": "build" - }, - { - "name": "eslint-plugin-import", - "type": "build" - }, - { - "name": "eslint-plugin-prettier", - "type": "build" - }, - { - "name": "eslint", - "version": "^8", - "type": "build" - }, - { - "name": "prettier", - "type": "build" - }, - { - "name": "projen", - "version": "^0.79.6", - "type": "build" - }, - { - "name": "typescript", - "type": "build" - }, - { - "name": "effect", - "version": ">=2.3.1 <2.5.0", - "type": "peer" - }, - { - "name": "@aws-sdk/client-sns", - "version": "^3", - "type": "runtime" - }, - { - "name": "@aws-sdk/types", - "version": "^3", - "type": "runtime" - } - ], - "//": "~~ Generated by projen. To modify, edit .projenrc.js and run \"npx projen\"." -} diff --git a/packages/client-sns/.projen/files.json b/packages/client-sns/.projen/files.json deleted file mode 100644 index c38792b..0000000 --- a/packages/client-sns/.projen/files.json +++ /dev/null @@ -1,20 +0,0 @@ -{ - "files": [ - ".eslintrc.json", - ".gitattributes", - ".gitignore", - ".npmignore", - ".prettierignore", - ".prettierrc.json", - ".projen/deps.json", - ".projen/files.json", - ".projen/tasks.json", - "docgen.json", - "LICENSE", - "project.json", - "tsconfig.dev.json", - "tsconfig.esm.json", - "tsconfig.json" - ], - "//": "~~ Generated by projen. To modify, edit .projenrc.js and run \"npx projen\"." -} diff --git a/packages/client-sns/.projen/tasks.json b/packages/client-sns/.projen/tasks.json deleted file mode 100644 index 6ecb00a..0000000 --- a/packages/client-sns/.projen/tasks.json +++ /dev/null @@ -1,113 +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.json ./tsconfig.esm.json" - } - ] - }, - "default": { - "name": "default", - "description": "Synthesize project files" - }, - "eslint": { - "name": "eslint", - "description": "Runs eslint against the codebase", - "steps": [ - { - "exec": "eslint --ext .ts,.tsx --fix --no-error-on-unmatched-pattern $@ src test build-tools", - "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" - }, - "post-compile": { - "name": "post-compile", - "description": "Runs after successful compilation" - }, - "pre-compile": { - "name": "pre-compile", - "description": "Prepare the project for compilation" - }, - "test": { - "name": "test", - "description": "Run tests", - "steps": [ - { - "exec": "vitest run --globals --reporter verbose", - "receiveArgs": true - }, - { - "spawn": "eslint" - } - ] - }, - "test:watch": { - "name": "test:watch", - "description": "Run tests in watch mode", - "steps": [ - { - "exec": "vitest --globals --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/client-sns/CHANGELOG.md b/packages/client-sns/CHANGELOG.md deleted file mode 100644 index 93aae8c..0000000 --- a/packages/client-sns/CHANGELOG.md +++ /dev/null @@ -1,77 +0,0 @@ -# @effect-aws/client-sns - -## 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 - -- [`3e5d0b3`](https://github.com/floydspace/effect-aws/commit/3e5d0b3b3882e0aa6d07bc06432990551316ac30) Thanks [@floydspace](https://github.com/floydspace)! - Upgrade to effect v2 and release stable version - -## 0.6.0 - -### Minor Changes - -- [`744df3c`](https://github.com/floydspace/effect-aws/commit/744df3ca6406b3a35e3066d5fe11ca7082c4c454) Thanks [@floydspace](https://github.com/floydspace)! - upgrade effect dependency - -## 0.5.0 - -### Minor Changes - -- [`0a969d8`](https://github.com/floydspace/effect-aws/commit/0a969d8a74c3bf1b87ff6a1c8bf689af849797e1) Thanks [@floydspace](https://github.com/floydspace)! - upgrade effect peer version - -## 0.4.0 - -### Minor Changes - -- [`c3b6768`](https://github.com/floydspace/effect-aws/commit/c3b6768ec54b62e05f8fbb771cb890ba6aee27c2) Thanks [@floydspace](https://github.com/floydspace)! - return tagged errors in the failure channel - -### Patch Changes - -- [`280d8bd`](https://github.com/floydspace/effect-aws/commit/280d8bd6686d6e7a2b73322a047e8eb22263b1e1) Thanks [@floydspace](https://github.com/floydspace)! - upgrade dependencies - -## 0.3.1 - -### Patch Changes - -- [`6b99904`](https://github.com/floydspace/effect-aws/commit/6b9990497bdb20f240d8261b6382db421e9a3ec2) Thanks [@floydspace](https://github.com/floydspace)! - as @mikearnaldi said: "we should really never do tacit passing" - -## 0.3.0 - -### Minor Changes - -- [#14](https://github.com/floydspace/effect-aws/pull/14) [`cddfb74`](https://github.com/floydspace/effect-aws/commit/cddfb74a00b10a13ccfe3749e90961119c4f0906) Thanks [@floydspace](https://github.com/floydspace)! - upgrade effect version to the next one - -## 0.2.0 - -### Minor Changes - -- [`d7d6c50`](https://github.com/floydspace/effect-aws/commit/d7d6c500de9aa538f76a5b8cfc9ffac741210d33) Thanks [@floydspace](https://github.com/floydspace)! - introduce tagged clients options for better narrowing - -## 0.1.0 - -### Minor Changes - -- [`5f0a4c9`](https://github.com/floydspace/effect-aws/commit/5f0a4c9971e5ecfaff28fd5d1a51fa35e776e409) Thanks [@floydspace](https://github.com/floydspace)! - implement effectful sns client diff --git a/packages/client-sns/LICENSE b/packages/client-sns/LICENSE deleted file mode 100644 index 7afce46..0000000 --- a/packages/client-sns/LICENSE +++ /dev/null @@ -1,19 +0,0 @@ -Copyright (c) 2024 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/client-sns/README.md b/packages/client-sns/README.md deleted file mode 100644 index b3fa7dd..0000000 --- a/packages/client-sns/README.md +++ /dev/null @@ -1 +0,0 @@ -# replace this \ No newline at end of file diff --git a/packages/client-sns/docgen.json b/packages/client-sns/docgen.json deleted file mode 100644 index b359fc7..0000000 --- a/packages/client-sns/docgen.json +++ /dev/null @@ -1,8 +0,0 @@ -{ - "$schema": "../../node_modules/@effect/docgen/schema.json", - "exclude": [ - "src/index.ts", - "src/Errors.ts" - ], - "//": "~~ Generated by projen. To modify, edit .projenrc.js and run \"npx projen\"." -} diff --git a/packages/client-sns/package.json b/packages/client-sns/package.json deleted file mode 100644 index a3b9e30..0000000 --- a/packages/client-sns/package.json +++ /dev/null @@ -1,56 +0,0 @@ -{ - "name": "@effect-aws/client-sns", - "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": { - "@types/node": "^18", - "@typescript-eslint/eslint-plugin": "^6", - "@typescript-eslint/parser": "^6", - "aws-sdk-client-mock": "^3.0.0", - "aws-sdk-client-mock-jest": "^3.0.0", - "constructs": "^10.0.0", - "effect": "2.3.1", - "eslint": "^8", - "eslint-config-prettier": "^9.0.0", - "eslint-import-resolver-typescript": "^3.6.1", - "eslint-plugin-import": "^2.28.1", - "eslint-plugin-prettier": "^5.0.0", - "prettier": "^3.0.3", - "projen": "^0.79.6", - "typescript": "^5.2.2" - }, - "peerDependencies": { - "effect": ">=2.3.1 <2.5.0" - }, - "dependencies": { - "@aws-sdk/client-sns": "^3", - "@aws-sdk/types": "^3" - }, - "main": "lib/index.js", - "license": "MIT", - "homepage": "https://floydspace.github.io/effect-aws", - "publishConfig": { - "access": "public" - }, - "version": "1.1.1", - "types": "lib/index.d.ts", - "module": "lib/esm/index.js", - "sideEffects": [], - "//": "~~ Generated by projen. To modify, edit .projenrc.js and run \"npx projen\"." -} diff --git a/packages/client-sns/project.json b/packages/client-sns/project.json deleted file mode 100644 index f65e96f..0000000 --- a/packages/client-sns/project.json +++ /dev/null @@ -1,77 +0,0 @@ -{ - "name": "@effect-aws/client-sns", - "root": "packages/client-sns", - "targets": { - "default": { - "executor": "nx:run-commands", - "options": { - "command": "pnpm exec projen default", - "cwd": "packages/client-sns" - } - }, - "pre-compile": { - "executor": "nx:run-commands", - "options": { - "command": "pnpm exec projen pre-compile", - "cwd": "packages/client-sns" - } - }, - "compile": { - "executor": "nx:run-commands", - "options": { - "command": "pnpm exec projen compile", - "cwd": "packages/client-sns" - } - }, - "post-compile": { - "executor": "nx:run-commands", - "options": { - "command": "pnpm exec projen post-compile", - "cwd": "packages/client-sns" - } - }, - "test": { - "executor": "nx:run-commands", - "options": { - "command": "pnpm exec projen test", - "cwd": "packages/client-sns" - } - }, - "package": { - "executor": "nx:run-commands", - "options": { - "command": "pnpm exec projen package", - "cwd": "packages/client-sns" - } - }, - "build": { - "executor": "nx:run-commands", - "options": { - "command": "pnpm exec projen build", - "cwd": "packages/client-sns" - } - }, - "watch": { - "executor": "nx:run-commands", - "options": { - "command": "pnpm exec projen watch", - "cwd": "packages/client-sns" - } - }, - "eslint": { - "executor": "nx:run-commands", - "options": { - "command": "pnpm exec projen eslint", - "cwd": "packages/client-sns" - } - }, - "test:watch": { - "executor": "nx:run-commands", - "options": { - "command": "pnpm exec projen test:watch", - "cwd": "packages/client-sns" - } - } - }, - "//": "~~ Generated by projen. To modify, edit .projenrc.js and run \"npx projen\"." -} diff --git a/packages/client-sns/src/Errors.ts b/packages/client-sns/src/Errors.ts deleted file mode 100644 index 7055e16..0000000 --- a/packages/client-sns/src/Errors.ts +++ /dev/null @@ -1,84 +0,0 @@ -import type { - AuthorizationErrorException, - BatchEntryIdsNotDistinctException, - BatchRequestTooLongException, - ConcurrentAccessException, - EmptyBatchRequestException, - EndpointDisabledException, - FilterPolicyLimitExceededException, - InternalErrorException, - InvalidBatchEntryIdException, - InvalidParameterException, - InvalidParameterValueException, - InvalidSecurityException, - KMSAccessDeniedException, - KMSDisabledException, - KMSInvalidStateException, - KMSNotFoundException, - KMSOptInRequired, - KMSThrottlingException, - NotFoundException, - OptedOutException, - PlatformApplicationDisabledException, - ResourceNotFoundException, - StaleTagException, - SubscriptionLimitExceededException, - TagLimitExceededException, - TagPolicyException, - ThrottledException, - TooManyEntriesInBatchRequestException, - TopicLimitExceededException, - UserErrorException, - ValidationException, - VerificationException, -} from "@aws-sdk/client-sns"; -import * as Data from "effect/Data"; - -export type TaggedException = T & { - readonly _tag: T["name"]; -}; - -export type AuthorizationError = TaggedException; -export type BatchEntryIdsNotDistinctError = - TaggedException; -export type BatchRequestTooLongError = - TaggedException; -export type ConcurrentAccessError = TaggedException; -export type EmptyBatchRequestError = - TaggedException; -export type EndpointDisabledError = TaggedException; -export type FilterPolicyLimitExceededError = - TaggedException; -export type InternalError = TaggedException; -export type InvalidBatchEntryIdError = - TaggedException; -export type InvalidParameterError = TaggedException; -export type InvalidParameterValueError = - TaggedException; -export type InvalidSecurityError = TaggedException; -export type KMSAccessDeniedError = TaggedException; -export type KMSDisabledError = TaggedException; -export type KMSInvalidStateError = TaggedException; -export type KMSNotFoundError = TaggedException; -export type KMSOptInRequiredError = TaggedException; -export type KMSThrottlingError = TaggedException; -export type NotFoundError = TaggedException; -export type OptedOutError = TaggedException; -export type PlatformApplicationDisabledError = - TaggedException; -export type ResourceNotFoundError = TaggedException; -export type StaleTagError = TaggedException; -export type SubscriptionLimitExceededError = - TaggedException; -export type TagLimitExceededError = TaggedException; -export type TagPolicyError = TaggedException; -export type ThrottledError = TaggedException; -export type TooManyEntriesInBatchRequestError = - TaggedException; -export type TopicLimitExceededError = - TaggedException; -export type UserError = TaggedException; -export type ValidationError = TaggedException; -export type VerificationError = TaggedException; -export type SdkError = TaggedException; -export const SdkError = Data.tagged("SdkError"); diff --git a/packages/client-sns/src/SNSClientInstance.ts b/packages/client-sns/src/SNSClientInstance.ts deleted file mode 100644 index ac6441f..0000000 --- a/packages/client-sns/src/SNSClientInstance.ts +++ /dev/null @@ -1,45 +0,0 @@ -/** - * @since 1.0.0 - */ -import { SNSClient } from "@aws-sdk/client-sns"; -import * as Context from "effect/Context"; -import * as Effect from "effect/Effect"; -import * as Layer from "effect/Layer"; -import { - DefaultSNSClientConfigLayer, - SNSClientInstanceConfig, -} from "./SNSClientInstanceConfig"; - -/** - * @since 1.0.0 - * @category tags - */ -export class SNSClientInstance extends Context.Tag( - "@effect-aws/client-sns/SNSClientInstance", -)() {} - -/** - * @since 1.0.0 - * @category constructors - */ -export const makeSNSClientInstance = Effect.map( - SNSClientInstanceConfig, - (config) => new SNSClient(config), -); - -/** - * @since 1.0.0 - * @category layers - */ -export const SNSClientInstanceLayer = Layer.effect( - SNSClientInstance, - makeSNSClientInstance, -); - -/** - * @since 1.0.0 - * @category layers - */ -export const DefaultSNSClientInstanceLayer = SNSClientInstanceLayer.pipe( - Layer.provide(DefaultSNSClientConfigLayer), -); diff --git a/packages/client-sns/src/SNSClientInstanceConfig.ts b/packages/client-sns/src/SNSClientInstanceConfig.ts deleted file mode 100644 index 8badd3a..0000000 --- a/packages/client-sns/src/SNSClientInstanceConfig.ts +++ /dev/null @@ -1,45 +0,0 @@ -/** - * @since 1.0.0 - */ -import type { SNSClientConfig } from "@aws-sdk/client-sns"; -import * as Context from "effect/Context"; -import * as Effect from "effect/Effect"; -import * as Layer from "effect/Layer"; -import * as Runtime from "effect/Runtime"; - -/** - * @since 1.0.0 - * @category tags - */ -export class SNSClientInstanceConfig extends Context.Tag( - "@effect-aws/client-sns/SNSClientInstanceConfig", -)() {} - -/** - * @since 1.0.0 - * @category constructors - */ -export const makeDefaultSNSClientInstanceConfig: Effect.Effect = - Effect.gen(function* (_) { - const runtime = yield* _(Effect.runtime()); - const runSync = Runtime.runSync(runtime); - - return { - logger: { - info: (m) => Effect.logInfo(m).pipe(runSync), - warn: (m) => Effect.logWarning(m).pipe(runSync), - error: (m) => Effect.logError(m).pipe(runSync), - debug: (m) => Effect.logDebug(m).pipe(runSync), - trace: (m) => Effect.logTrace(m).pipe(runSync), - }, - }; - }); - -/** - * @since 1.0.0 - * @category layers - */ -export const DefaultSNSClientConfigLayer = Layer.effect( - SNSClientInstanceConfig, - makeDefaultSNSClientInstanceConfig, -); diff --git a/packages/client-sns/src/SNSService.ts b/packages/client-sns/src/SNSService.ts deleted file mode 100644 index 1d304cd..0000000 --- a/packages/client-sns/src/SNSService.ts +++ /dev/null @@ -1,989 +0,0 @@ -/** - * @since 1.0.0 - */ -import { - AddPermissionCommand, - AddPermissionCommandInput, - AddPermissionCommandOutput, - CheckIfPhoneNumberIsOptedOutCommand, - CheckIfPhoneNumberIsOptedOutCommandInput, - CheckIfPhoneNumberIsOptedOutCommandOutput, - ConfirmSubscriptionCommand, - ConfirmSubscriptionCommandInput, - ConfirmSubscriptionCommandOutput, - CreatePlatformApplicationCommand, - CreatePlatformApplicationCommandInput, - CreatePlatformApplicationCommandOutput, - CreatePlatformEndpointCommand, - CreatePlatformEndpointCommandInput, - CreatePlatformEndpointCommandOutput, - CreateSMSSandboxPhoneNumberCommand, - CreateSMSSandboxPhoneNumberCommandInput, - CreateSMSSandboxPhoneNumberCommandOutput, - CreateTopicCommand, - CreateTopicCommandInput, - CreateTopicCommandOutput, - DeleteEndpointCommand, - DeleteEndpointCommandInput, - DeleteEndpointCommandOutput, - DeletePlatformApplicationCommand, - DeletePlatformApplicationCommandInput, - DeletePlatformApplicationCommandOutput, - DeleteSMSSandboxPhoneNumberCommand, - DeleteSMSSandboxPhoneNumberCommandInput, - DeleteSMSSandboxPhoneNumberCommandOutput, - DeleteTopicCommand, - DeleteTopicCommandInput, - DeleteTopicCommandOutput, - GetDataProtectionPolicyCommand, - GetDataProtectionPolicyCommandInput, - GetDataProtectionPolicyCommandOutput, - GetEndpointAttributesCommand, - GetEndpointAttributesCommandInput, - GetEndpointAttributesCommandOutput, - GetPlatformApplicationAttributesCommand, - GetPlatformApplicationAttributesCommandInput, - GetPlatformApplicationAttributesCommandOutput, - GetSMSAttributesCommand, - GetSMSAttributesCommandInput, - GetSMSAttributesCommandOutput, - GetSMSSandboxAccountStatusCommand, - GetSMSSandboxAccountStatusCommandInput, - GetSMSSandboxAccountStatusCommandOutput, - GetSubscriptionAttributesCommand, - GetSubscriptionAttributesCommandInput, - GetSubscriptionAttributesCommandOutput, - GetTopicAttributesCommand, - GetTopicAttributesCommandInput, - GetTopicAttributesCommandOutput, - ListEndpointsByPlatformApplicationCommand, - ListEndpointsByPlatformApplicationCommandInput, - ListEndpointsByPlatformApplicationCommandOutput, - ListOriginationNumbersCommand, - ListOriginationNumbersCommandInput, - ListOriginationNumbersCommandOutput, - ListPhoneNumbersOptedOutCommand, - ListPhoneNumbersOptedOutCommandInput, - ListPhoneNumbersOptedOutCommandOutput, - ListPlatformApplicationsCommand, - ListPlatformApplicationsCommandInput, - ListPlatformApplicationsCommandOutput, - ListSMSSandboxPhoneNumbersCommand, - ListSMSSandboxPhoneNumbersCommandInput, - ListSMSSandboxPhoneNumbersCommandOutput, - ListSubscriptionsByTopicCommand, - ListSubscriptionsByTopicCommandInput, - ListSubscriptionsByTopicCommandOutput, - ListSubscriptionsCommand, - ListSubscriptionsCommandInput, - ListSubscriptionsCommandOutput, - ListTagsForResourceCommand, - ListTagsForResourceCommandInput, - ListTagsForResourceCommandOutput, - ListTopicsCommand, - ListTopicsCommandInput, - ListTopicsCommandOutput, - OptInPhoneNumberCommand, - OptInPhoneNumberCommandInput, - OptInPhoneNumberCommandOutput, - PublishBatchCommand, - PublishBatchCommandInput, - PublishBatchCommandOutput, - PublishCommand, - PublishCommandInput, - PublishCommandOutput, - PutDataProtectionPolicyCommand, - PutDataProtectionPolicyCommandInput, - PutDataProtectionPolicyCommandOutput, - RemovePermissionCommand, - RemovePermissionCommandInput, - RemovePermissionCommandOutput, - SNSServiceException, - SetEndpointAttributesCommand, - SetEndpointAttributesCommandInput, - SetEndpointAttributesCommandOutput, - SetPlatformApplicationAttributesCommand, - SetPlatformApplicationAttributesCommandInput, - SetPlatformApplicationAttributesCommandOutput, - SetSMSAttributesCommand, - SetSMSAttributesCommandInput, - SetSMSAttributesCommandOutput, - SetSubscriptionAttributesCommand, - SetSubscriptionAttributesCommandInput, - SetSubscriptionAttributesCommandOutput, - SetTopicAttributesCommand, - SetTopicAttributesCommandInput, - SetTopicAttributesCommandOutput, - SubscribeCommand, - SubscribeCommandInput, - SubscribeCommandOutput, - TagResourceCommand, - TagResourceCommandInput, - TagResourceCommandOutput, - UnsubscribeCommand, - UnsubscribeCommandInput, - UnsubscribeCommandOutput, - UntagResourceCommand, - UntagResourceCommandInput, - UntagResourceCommandOutput, - VerifySMSSandboxPhoneNumberCommand, - VerifySMSSandboxPhoneNumberCommandInput, - VerifySMSSandboxPhoneNumberCommandOutput, -} from "@aws-sdk/client-sns"; -import { HttpHandlerOptions as __HttpHandlerOptions } from "@aws-sdk/types"; -import { Context, Data, Effect, Layer, ReadonlyRecord } from "effect"; -import { - AuthorizationError, - BatchEntryIdsNotDistinctError, - BatchRequestTooLongError, - ConcurrentAccessError, - EmptyBatchRequestError, - EndpointDisabledError, - FilterPolicyLimitExceededError, - InternalError, - InvalidBatchEntryIdError, - InvalidParameterError, - InvalidParameterValueError, - InvalidSecurityError, - KMSAccessDeniedError, - KMSDisabledError, - KMSInvalidStateError, - KMSNotFoundError, - KMSOptInRequiredError, - KMSThrottlingError, - NotFoundError, - OptedOutError, - PlatformApplicationDisabledError, - ResourceNotFoundError, - SdkError, - StaleTagError, - SubscriptionLimitExceededError, - TagLimitExceededError, - TagPolicyError, - TaggedException, - ThrottledError, - TooManyEntriesInBatchRequestError, - TopicLimitExceededError, - UserError, - ValidationError, - VerificationError, -} from "./Errors"; -import { - DefaultSNSClientInstanceLayer, - SNSClientInstance, - SNSClientInstanceLayer, -} from "./SNSClientInstance"; -import { DefaultSNSClientConfigLayer } from "./SNSClientInstanceConfig"; - -const commands = { - AddPermissionCommand, - CheckIfPhoneNumberIsOptedOutCommand, - ConfirmSubscriptionCommand, - CreatePlatformApplicationCommand, - CreatePlatformEndpointCommand, - CreateSMSSandboxPhoneNumberCommand, - CreateTopicCommand, - DeleteEndpointCommand, - DeletePlatformApplicationCommand, - DeleteSMSSandboxPhoneNumberCommand, - DeleteTopicCommand, - GetDataProtectionPolicyCommand, - GetEndpointAttributesCommand, - GetPlatformApplicationAttributesCommand, - GetSMSAttributesCommand, - GetSMSSandboxAccountStatusCommand, - GetSubscriptionAttributesCommand, - GetTopicAttributesCommand, - ListEndpointsByPlatformApplicationCommand, - ListOriginationNumbersCommand, - ListPhoneNumbersOptedOutCommand, - ListPlatformApplicationsCommand, - ListSMSSandboxPhoneNumbersCommand, - ListSubscriptionsCommand, - ListSubscriptionsByTopicCommand, - ListTagsForResourceCommand, - ListTopicsCommand, - OptInPhoneNumberCommand, - PublishCommand, - PublishBatchCommand, - PutDataProtectionPolicyCommand, - RemovePermissionCommand, - SetEndpointAttributesCommand, - SetPlatformApplicationAttributesCommand, - SetSMSAttributesCommand, - SetSubscriptionAttributesCommand, - SetTopicAttributesCommand, - SubscribeCommand, - TagResourceCommand, - UnsubscribeCommand, - UntagResourceCommand, - VerifySMSSandboxPhoneNumberCommand, -}; - -/** - * @since 1.0.0 - * @category models - */ -export interface SNSService { - readonly _: unique symbol; - - /** - * @see {@link AddPermissionCommand} - */ - addPermission( - args: AddPermissionCommandInput, - options?: __HttpHandlerOptions, - ): Effect.Effect< - AddPermissionCommandOutput, - | SdkError - | AuthorizationError - | InternalError - | InvalidParameterError - | NotFoundError - >; - - /** - * @see {@link CheckIfPhoneNumberIsOptedOutCommand} - */ - checkIfPhoneNumberIsOptedOut( - args: CheckIfPhoneNumberIsOptedOutCommandInput, - options?: __HttpHandlerOptions, - ): Effect.Effect< - CheckIfPhoneNumberIsOptedOutCommandOutput, - | SdkError - | AuthorizationError - | InternalError - | InvalidParameterError - | ThrottledError - >; - - /** - * @see {@link ConfirmSubscriptionCommand} - */ - confirmSubscription( - args: ConfirmSubscriptionCommandInput, - options?: __HttpHandlerOptions, - ): Effect.Effect< - ConfirmSubscriptionCommandOutput, - | SdkError - | AuthorizationError - | FilterPolicyLimitExceededError - | InternalError - | InvalidParameterError - | NotFoundError - | SubscriptionLimitExceededError - >; - - /** - * @see {@link CreatePlatformApplicationCommand} - */ - createPlatformApplication( - args: CreatePlatformApplicationCommandInput, - options?: __HttpHandlerOptions, - ): Effect.Effect< - CreatePlatformApplicationCommandOutput, - SdkError | AuthorizationError | InternalError | InvalidParameterError - >; - - /** - * @see {@link CreatePlatformEndpointCommand} - */ - createPlatformEndpoint( - args: CreatePlatformEndpointCommandInput, - options?: __HttpHandlerOptions, - ): Effect.Effect< - CreatePlatformEndpointCommandOutput, - | SdkError - | AuthorizationError - | InternalError - | InvalidParameterError - | NotFoundError - >; - - /** - * @see {@link CreateSMSSandboxPhoneNumberCommand} - */ - createSMSSandboxPhoneNumber( - args: CreateSMSSandboxPhoneNumberCommandInput, - options?: __HttpHandlerOptions, - ): Effect.Effect< - CreateSMSSandboxPhoneNumberCommandOutput, - | SdkError - | AuthorizationError - | InternalError - | InvalidParameterError - | OptedOutError - | ThrottledError - | UserError - >; - - /** - * @see {@link CreateTopicCommand} - */ - createTopic( - args: CreateTopicCommandInput, - options?: __HttpHandlerOptions, - ): Effect.Effect< - CreateTopicCommandOutput, - | SdkError - | AuthorizationError - | ConcurrentAccessError - | InternalError - | InvalidParameterError - | InvalidSecurityError - | StaleTagError - | TagLimitExceededError - | TagPolicyError - | TopicLimitExceededError - >; - - /** - * @see {@link DeleteEndpointCommand} - */ - deleteEndpoint( - args: DeleteEndpointCommandInput, - options?: __HttpHandlerOptions, - ): Effect.Effect< - DeleteEndpointCommandOutput, - SdkError | AuthorizationError | InternalError | InvalidParameterError - >; - - /** - * @see {@link DeletePlatformApplicationCommand} - */ - deletePlatformApplication( - args: DeletePlatformApplicationCommandInput, - options?: __HttpHandlerOptions, - ): Effect.Effect< - DeletePlatformApplicationCommandOutput, - SdkError | AuthorizationError | InternalError | InvalidParameterError - >; - - /** - * @see {@link DeleteSMSSandboxPhoneNumberCommand} - */ - deleteSMSSandboxPhoneNumber( - args: DeleteSMSSandboxPhoneNumberCommandInput, - options?: __HttpHandlerOptions, - ): Effect.Effect< - DeleteSMSSandboxPhoneNumberCommandOutput, - | SdkError - | AuthorizationError - | InternalError - | InvalidParameterError - | ResourceNotFoundError - | ThrottledError - | UserError - >; - - /** - * @see {@link DeleteTopicCommand} - */ - deleteTopic( - args: DeleteTopicCommandInput, - options?: __HttpHandlerOptions, - ): Effect.Effect< - DeleteTopicCommandOutput, - | SdkError - | AuthorizationError - | ConcurrentAccessError - | InternalError - | InvalidParameterError - | NotFoundError - | StaleTagError - | TagPolicyError - >; - - /** - * @see {@link GetDataProtectionPolicyCommand} - */ - getDataProtectionPolicy( - args: GetDataProtectionPolicyCommandInput, - options?: __HttpHandlerOptions, - ): Effect.Effect< - GetDataProtectionPolicyCommandOutput, - | SdkError - | AuthorizationError - | InternalError - | InvalidParameterError - | InvalidSecurityError - | NotFoundError - >; - - /** - * @see {@link GetEndpointAttributesCommand} - */ - getEndpointAttributes( - args: GetEndpointAttributesCommandInput, - options?: __HttpHandlerOptions, - ): Effect.Effect< - GetEndpointAttributesCommandOutput, - | SdkError - | AuthorizationError - | InternalError - | InvalidParameterError - | NotFoundError - >; - - /** - * @see {@link GetPlatformApplicationAttributesCommand} - */ - getPlatformApplicationAttributes( - args: GetPlatformApplicationAttributesCommandInput, - options?: __HttpHandlerOptions, - ): Effect.Effect< - GetPlatformApplicationAttributesCommandOutput, - | SdkError - | AuthorizationError - | InternalError - | InvalidParameterError - | NotFoundError - >; - - /** - * @see {@link GetSMSAttributesCommand} - */ - getSMSAttributes( - args: GetSMSAttributesCommandInput, - options?: __HttpHandlerOptions, - ): Effect.Effect< - GetSMSAttributesCommandOutput, - | SdkError - | AuthorizationError - | InternalError - | InvalidParameterError - | ThrottledError - >; - - /** - * @see {@link GetSMSSandboxAccountStatusCommand} - */ - getSMSSandboxAccountStatus( - args: GetSMSSandboxAccountStatusCommandInput, - options?: __HttpHandlerOptions, - ): Effect.Effect< - GetSMSSandboxAccountStatusCommandOutput, - SdkError | AuthorizationError | InternalError | ThrottledError - >; - - /** - * @see {@link GetSubscriptionAttributesCommand} - */ - getSubscriptionAttributes( - args: GetSubscriptionAttributesCommandInput, - options?: __HttpHandlerOptions, - ): Effect.Effect< - GetSubscriptionAttributesCommandOutput, - | SdkError - | AuthorizationError - | InternalError - | InvalidParameterError - | NotFoundError - >; - - /** - * @see {@link GetTopicAttributesCommand} - */ - getTopicAttributes( - args: GetTopicAttributesCommandInput, - options?: __HttpHandlerOptions, - ): Effect.Effect< - GetTopicAttributesCommandOutput, - | SdkError - | AuthorizationError - | InternalError - | InvalidParameterError - | InvalidSecurityError - | NotFoundError - >; - - /** - * @see {@link ListEndpointsByPlatformApplicationCommand} - */ - listEndpointsByPlatformApplication( - args: ListEndpointsByPlatformApplicationCommandInput, - options?: __HttpHandlerOptions, - ): Effect.Effect< - ListEndpointsByPlatformApplicationCommandOutput, - | SdkError - | AuthorizationError - | InternalError - | InvalidParameterError - | NotFoundError - >; - - /** - * @see {@link ListOriginationNumbersCommand} - */ - listOriginationNumbers( - args: ListOriginationNumbersCommandInput, - options?: __HttpHandlerOptions, - ): Effect.Effect< - ListOriginationNumbersCommandOutput, - | SdkError - | AuthorizationError - | InternalError - | InvalidParameterError - | ThrottledError - | ValidationError - >; - - /** - * @see {@link ListPhoneNumbersOptedOutCommand} - */ - listPhoneNumbersOptedOut( - args: ListPhoneNumbersOptedOutCommandInput, - options?: __HttpHandlerOptions, - ): Effect.Effect< - ListPhoneNumbersOptedOutCommandOutput, - | SdkError - | AuthorizationError - | InternalError - | InvalidParameterError - | ThrottledError - >; - - /** - * @see {@link ListPlatformApplicationsCommand} - */ - listPlatformApplications( - args: ListPlatformApplicationsCommandInput, - options?: __HttpHandlerOptions, - ): Effect.Effect< - ListPlatformApplicationsCommandOutput, - SdkError | AuthorizationError | InternalError | InvalidParameterError - >; - - /** - * @see {@link ListSMSSandboxPhoneNumbersCommand} - */ - listSMSSandboxPhoneNumbers( - args: ListSMSSandboxPhoneNumbersCommandInput, - options?: __HttpHandlerOptions, - ): Effect.Effect< - ListSMSSandboxPhoneNumbersCommandOutput, - | SdkError - | AuthorizationError - | InternalError - | InvalidParameterError - | ResourceNotFoundError - | ThrottledError - >; - - /** - * @see {@link ListSubscriptionsCommand} - */ - listSubscriptions( - args: ListSubscriptionsCommandInput, - options?: __HttpHandlerOptions, - ): Effect.Effect< - ListSubscriptionsCommandOutput, - SdkError | AuthorizationError | InternalError | InvalidParameterError - >; - - /** - * @see {@link ListSubscriptionsByTopicCommand} - */ - listSubscriptionsByTopic( - args: ListSubscriptionsByTopicCommandInput, - options?: __HttpHandlerOptions, - ): Effect.Effect< - ListSubscriptionsByTopicCommandOutput, - | SdkError - | AuthorizationError - | InternalError - | InvalidParameterError - | NotFoundError - >; - - /** - * @see {@link ListTagsForResourceCommand} - */ - listTagsForResource( - args: ListTagsForResourceCommandInput, - options?: __HttpHandlerOptions, - ): Effect.Effect< - ListTagsForResourceCommandOutput, - | SdkError - | AuthorizationError - | ConcurrentAccessError - | InvalidParameterError - | ResourceNotFoundError - | TagPolicyError - >; - - /** - * @see {@link ListTopicsCommand} - */ - listTopics( - args: ListTopicsCommandInput, - options?: __HttpHandlerOptions, - ): Effect.Effect< - ListTopicsCommandOutput, - SdkError | AuthorizationError | InternalError | InvalidParameterError - >; - - /** - * @see {@link OptInPhoneNumberCommand} - */ - optInPhoneNumber( - args: OptInPhoneNumberCommandInput, - options?: __HttpHandlerOptions, - ): Effect.Effect< - OptInPhoneNumberCommandOutput, - | SdkError - | AuthorizationError - | InternalError - | InvalidParameterError - | ThrottledError - >; - - /** - * @see {@link PublishCommand} - */ - publish( - args: PublishCommandInput, - options?: __HttpHandlerOptions, - ): Effect.Effect< - PublishCommandOutput, - | SdkError - | AuthorizationError - | EndpointDisabledError - | InternalError - | InvalidParameterError - | InvalidSecurityError - | KMSAccessDeniedError - | KMSDisabledError - | KMSInvalidStateError - | KMSNotFoundError - | KMSOptInRequiredError - | KMSThrottlingError - | NotFoundError - | InvalidParameterValueError - | PlatformApplicationDisabledError - | ValidationError - >; - - /** - * @see {@link PublishBatchCommand} - */ - publishBatch( - args: PublishBatchCommandInput, - options?: __HttpHandlerOptions, - ): Effect.Effect< - PublishBatchCommandOutput, - | SdkError - | AuthorizationError - | BatchEntryIdsNotDistinctError - | BatchRequestTooLongError - | EmptyBatchRequestError - | EndpointDisabledError - | InternalError - | InvalidBatchEntryIdError - | InvalidParameterError - | InvalidSecurityError - | KMSAccessDeniedError - | KMSDisabledError - | KMSInvalidStateError - | KMSNotFoundError - | KMSOptInRequiredError - | KMSThrottlingError - | NotFoundError - | InvalidParameterValueError - | PlatformApplicationDisabledError - | TooManyEntriesInBatchRequestError - | ValidationError - >; - - /** - * @see {@link PutDataProtectionPolicyCommand} - */ - putDataProtectionPolicy( - args: PutDataProtectionPolicyCommandInput, - options?: __HttpHandlerOptions, - ): Effect.Effect< - PutDataProtectionPolicyCommandOutput, - | SdkError - | AuthorizationError - | InternalError - | InvalidParameterError - | InvalidSecurityError - | NotFoundError - >; - - /** - * @see {@link RemovePermissionCommand} - */ - removePermission( - args: RemovePermissionCommandInput, - options?: __HttpHandlerOptions, - ): Effect.Effect< - RemovePermissionCommandOutput, - | SdkError - | AuthorizationError - | InternalError - | InvalidParameterError - | NotFoundError - >; - - /** - * @see {@link SetEndpointAttributesCommand} - */ - setEndpointAttributes( - args: SetEndpointAttributesCommandInput, - options?: __HttpHandlerOptions, - ): Effect.Effect< - SetEndpointAttributesCommandOutput, - | SdkError - | AuthorizationError - | InternalError - | InvalidParameterError - | NotFoundError - >; - - /** - * @see {@link SetPlatformApplicationAttributesCommand} - */ - setPlatformApplicationAttributes( - args: SetPlatformApplicationAttributesCommandInput, - options?: __HttpHandlerOptions, - ): Effect.Effect< - SetPlatformApplicationAttributesCommandOutput, - | SdkError - | AuthorizationError - | InternalError - | InvalidParameterError - | NotFoundError - >; - - /** - * @see {@link SetSMSAttributesCommand} - */ - setSMSAttributes( - args: SetSMSAttributesCommandInput, - options?: __HttpHandlerOptions, - ): Effect.Effect< - SetSMSAttributesCommandOutput, - | SdkError - | AuthorizationError - | InternalError - | InvalidParameterError - | ThrottledError - >; - - /** - * @see {@link SetSubscriptionAttributesCommand} - */ - setSubscriptionAttributes( - args: SetSubscriptionAttributesCommandInput, - options?: __HttpHandlerOptions, - ): Effect.Effect< - SetSubscriptionAttributesCommandOutput, - | SdkError - | AuthorizationError - | FilterPolicyLimitExceededError - | InternalError - | InvalidParameterError - | NotFoundError - >; - - /** - * @see {@link SetTopicAttributesCommand} - */ - setTopicAttributes( - args: SetTopicAttributesCommandInput, - options?: __HttpHandlerOptions, - ): Effect.Effect< - SetTopicAttributesCommandOutput, - | SdkError - | AuthorizationError - | InternalError - | InvalidParameterError - | InvalidSecurityError - | NotFoundError - >; - - /** - * @see {@link SubscribeCommand} - */ - subscribe( - args: SubscribeCommandInput, - options?: __HttpHandlerOptions, - ): Effect.Effect< - SubscribeCommandOutput, - | SdkError - | AuthorizationError - | FilterPolicyLimitExceededError - | InternalError - | InvalidParameterError - | InvalidSecurityError - | NotFoundError - | SubscriptionLimitExceededError - >; - - /** - * @see {@link TagResourceCommand} - */ - tagResource( - args: TagResourceCommandInput, - options?: __HttpHandlerOptions, - ): Effect.Effect< - TagResourceCommandOutput, - | SdkError - | AuthorizationError - | ConcurrentAccessError - | InvalidParameterError - | ResourceNotFoundError - | StaleTagError - | TagLimitExceededError - | TagPolicyError - >; - - /** - * @see {@link UnsubscribeCommand} - */ - unsubscribe( - args: UnsubscribeCommandInput, - options?: __HttpHandlerOptions, - ): Effect.Effect< - UnsubscribeCommandOutput, - | SdkError - | AuthorizationError - | InternalError - | InvalidParameterError - | InvalidSecurityError - | NotFoundError - >; - - /** - * @see {@link UntagResourceCommand} - */ - untagResource( - args: UntagResourceCommandInput, - options?: __HttpHandlerOptions, - ): Effect.Effect< - UntagResourceCommandOutput, - | SdkError - | AuthorizationError - | ConcurrentAccessError - | InvalidParameterError - | ResourceNotFoundError - | StaleTagError - | TagLimitExceededError - | TagPolicyError - >; - - /** - * @see {@link VerifySMSSandboxPhoneNumberCommand} - */ - verifySMSSandboxPhoneNumber( - args: VerifySMSSandboxPhoneNumberCommandInput, - options?: __HttpHandlerOptions, - ): Effect.Effect< - VerifySMSSandboxPhoneNumberCommandOutput, - | SdkError - | AuthorizationError - | InternalError - | InvalidParameterError - | ResourceNotFoundError - | ThrottledError - | VerificationError - >; -} - -/** - * @since 1.0.0 - * @category tags - */ -export const SNSService = Context.GenericTag( - "@effect-aws/client-sns/SNSService", -); - -/** - * @since 1.0.0 - * @category constructors - */ -export const makeSNSService = Effect.gen(function* (_) { - const client = yield* _(SNSClientInstance); - - return ReadonlyRecord.toEntries(commands).reduce((acc, [command]) => { - const CommandCtor = commands[command] as any; - const methodImpl = (args: any, options: any) => - Effect.tryPromise({ - try: () => client.send(new CommandCtor(args), options ?? {}), - catch: (e) => { - if (e instanceof SNSServiceException) { - const ServiceException = Data.tagged< - TaggedException - >(e.name); - - return ServiceException({ - ...e, - message: e.message, - stack: e.stack, - }); - } - if (e instanceof Error) { - return SdkError({ - ...e, - name: "SdkError", - message: e.message, - stack: e.stack, - }); - } - throw e; - }, - }); - const methodName = (command[0].toLowerCase() + command.slice(1)).replace( - /Command$/, - "", - ); - return { ...acc, [methodName]: methodImpl }; - }, {}) as SNSService; -}); - -/** - * @since 1.0.0 - * @category layers - */ -export const BaseSNSServiceLayer = Layer.effect(SNSService, makeSNSService); - -/** - * @since 1.0.0 - * @category layers - */ -export const SNSServiceLayer = BaseSNSServiceLayer.pipe( - Layer.provide(SNSClientInstanceLayer), -); - -/** - * @since 1.0.0 - * @category layers - */ -export const DefaultSNSServiceLayer = SNSServiceLayer.pipe( - Layer.provide(DefaultSNSClientConfigLayer), -); - -// -------------------- Danger Zone -------------------- - -/** - * @since 0.1.0 - * @deprecated - */ -export const BaseSNSServiceEffect = makeSNSService; - -/** - * @since 0.1.0 - * @deprecated - */ -export const SNSServiceEffect = BaseSNSServiceEffect.pipe( - Effect.provide(SNSClientInstanceLayer), -); - -/** - * @since 0.1.0 - * @deprecated - */ -export const DefaultSNSServiceEffect = BaseSNSServiceEffect.pipe( - Effect.provide(DefaultSNSClientInstanceLayer), -); diff --git a/packages/client-sns/src/index.ts b/packages/client-sns/src/index.ts deleted file mode 100644 index 7fb77fd..0000000 --- a/packages/client-sns/src/index.ts +++ /dev/null @@ -1,4 +0,0 @@ -export * from "./Errors"; -export * from "./SNSClientInstance"; -export * from "./SNSClientInstanceConfig"; -export * from "./SNSService"; diff --git a/packages/client-sns/test/SNS.test.ts b/packages/client-sns/test/SNS.test.ts deleted file mode 100644 index 86a1d0f..0000000 --- a/packages/client-sns/test/SNS.test.ts +++ /dev/null @@ -1,153 +0,0 @@ -import { - PublishCommand, - PublishCommandInput, - SNSClient, -} from "@aws-sdk/client-sns"; -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 * as Layer from "effect/Layer"; -import { - BaseSNSServiceLayer, - DefaultSNSClientConfigLayer, - DefaultSNSServiceLayer, - SNSClientInstance, - SNSClientInstanceConfig, - SNSService, - SNSServiceLayer, - SdkError, -} from "../src"; - -import "aws-sdk-client-mock-jest"; - -const snsMock = mockClient(SNSClient); -const { publish } = Effect.serviceFunctions(SNSService); - -describe("SNSClientImpl", () => { - it("default", async () => { - snsMock.reset().on(PublishCommand).resolves({}); - - const args: PublishCommandInput = { TopicArn: "test", Message: "test" }; - - const program = publish(args); - - const result = await pipe( - program, - Effect.provide(DefaultSNSServiceLayer), - Effect.runPromiseExit, - ); - - expect(result).toEqual(Exit.succeed({})); - expect(snsMock).toHaveReceivedCommandTimes(PublishCommand, 1); - expect(snsMock).toHaveReceivedCommandWith(PublishCommand, args); - }); - - it("configurable", async () => { - snsMock.reset().on(PublishCommand).resolves({}); - - const args: PublishCommandInput = { TopicArn: "test", Message: "test" }; - - const program = publish(args); - - const SNSClientConfigLayer = Layer.succeed(SNSClientInstanceConfig, { - region: "eu-central-1", - }); - const CustomSNSServiceLayer = SNSServiceLayer.pipe( - Layer.provide(SNSClientConfigLayer), - ); - - const result = await pipe( - program, - Effect.provide(CustomSNSServiceLayer), - Effect.runPromiseExit, - ); - - expect(result).toEqual(Exit.succeed({})); - expect(snsMock).toHaveReceivedCommandTimes(PublishCommand, 1); - expect(snsMock).toHaveReceivedCommandWith(PublishCommand, args); - }); - - it("base", async () => { - snsMock.reset().on(PublishCommand).resolves({}); - - const args: PublishCommandInput = { TopicArn: "test", Message: "test" }; - - const program = publish(args); - - const SNSClientInstanceLayer = Layer.succeed( - SNSClientInstance, - new SNSClient({ region: "eu-central-1" }), - ); - const CustomSNSServiceLayer = BaseSNSServiceLayer.pipe( - Layer.provide(SNSClientInstanceLayer), - ); - - const result = await pipe( - program, - Effect.provide(CustomSNSServiceLayer), - Effect.runPromiseExit, - ); - - expect(result).toEqual(Exit.succeed({})); - expect(snsMock).toHaveReceivedCommandTimes(PublishCommand, 1); - expect(snsMock).toHaveReceivedCommandWith(PublishCommand, args); - }); - - it("extended", async () => { - snsMock.reset().on(PublishCommand).resolves({}); - - const args: PublishCommandInput = { TopicArn: "test", Message: "test" }; - - const program = publish(args); - - const SNSClientInstanceLayer = Layer.effect( - SNSClientInstance, - Effect.map( - SNSClientInstanceConfig, - (config) => new SNSClient({ ...config, region: "eu-central-1" }), - ), - ); - const CustomSNSServiceLayer = BaseSNSServiceLayer.pipe( - Layer.provide(SNSClientInstanceLayer), - Layer.provide(DefaultSNSClientConfigLayer), - ); - - const result = await pipe( - program, - Effect.provide(CustomSNSServiceLayer), - Effect.runPromiseExit, - ); - - expect(result).toEqual(Exit.succeed({})); - expect(snsMock).toHaveReceivedCommandTimes(PublishCommand, 1); - expect(snsMock).toHaveReceivedCommandWith(PublishCommand, args); - }); - - it("fail", async () => { - snsMock.reset().on(PublishCommand).rejects(new Error("test")); - - const args: PublishCommandInput = { TopicArn: "test", Message: "test" }; - - const program = publish(args, { requestTimeout: 1000 }); - - const result = await pipe( - program, - Effect.provide(DefaultSNSServiceLayer), - Effect.runPromiseExit, - ); - - expect(result).toEqual( - Exit.fail( - SdkError({ - ...new Error("test"), - name: "SdkError", - message: "test", - stack: expect.any(String), - }), - ), - ); - expect(snsMock).toHaveReceivedCommandTimes(PublishCommand, 1); - expect(snsMock).toHaveReceivedCommandWith(PublishCommand, args); - }); -}); diff --git a/packages/client-sns/tsconfig.dev.json b/packages/client-sns/tsconfig.dev.json deleted file mode 100644 index 278f027..0000000 --- a/packages/client-sns/tsconfig.dev.json +++ /dev/null @@ -1,37 +0,0 @@ -// ~~ Generated by projen. To modify, edit .projenrc.js and run "npx projen". -{ - "compilerOptions": { - "alwaysStrict": true, - "declaration": true, - "esModuleInterop": true, - "experimentalDecorators": true, - "inlineSourceMap": true, - "inlineSources": true, - "lib": [ - "es2019", - "dom" - ], - "module": "CommonJS", - "noEmitOnError": false, - "noFallthroughCasesInSwitch": true, - "noImplicitAny": true, - "noImplicitReturns": true, - "noImplicitThis": true, - "noUnusedLocals": true, - "noUnusedParameters": true, - "resolveJsonModule": true, - "strict": true, - "strictNullChecks": true, - "strictPropertyInitialization": true, - "stripInternal": true, - "target": "ES2019", - "moduleResolution": "node" - }, - "include": [ - "src/**/*.ts", - "test/**/*.ts" - ], - "exclude": [ - "node_modules" - ] -} diff --git a/packages/client-sns/tsconfig.esm.json b/packages/client-sns/tsconfig.esm.json deleted file mode 100644 index 1b04668..0000000 --- a/packages/client-sns/tsconfig.esm.json +++ /dev/null @@ -1,10 +0,0 @@ -{ - "extends": "./tsconfig.json", - "compilerOptions": { - "outDir": "./lib/esm", - "module": "es6", - "resolveJsonModule": false, - "declaration": false - }, - "//": "~~ Generated by projen. To modify, edit .projenrc.js and run \"npx projen\"." -} diff --git a/packages/client-sns/tsconfig.json b/packages/client-sns/tsconfig.json deleted file mode 100644 index 576047c..0000000 --- a/packages/client-sns/tsconfig.json +++ /dev/null @@ -1,36 +0,0 @@ -// ~~ Generated by projen. To modify, edit .projenrc.js and run "npx projen". -{ - "compilerOptions": { - "rootDir": "src", - "outDir": "lib", - "alwaysStrict": true, - "declaration": true, - "esModuleInterop": true, - "experimentalDecorators": true, - "inlineSourceMap": true, - "inlineSources": true, - "lib": [ - "es2019", - "dom" - ], - "module": "CommonJS", - "noEmitOnError": false, - "noFallthroughCasesInSwitch": true, - "noImplicitAny": true, - "noImplicitReturns": true, - "noImplicitThis": true, - "noUnusedLocals": true, - "noUnusedParameters": true, - "resolveJsonModule": true, - "strict": true, - "strictNullChecks": true, - "strictPropertyInitialization": true, - "stripInternal": true, - "target": "ES2019", - "moduleResolution": "node" - }, - "include": [ - "src/**/*.ts" - ], - "exclude": [] -} diff --git a/packages/client-sqs/.eslintrc.json b/packages/client-sqs/.eslintrc.json deleted file mode 100644 index c31c44d..0000000 --- a/packages/client-sqs/.eslintrc.json +++ /dev/null @@ -1,126 +0,0 @@ -// ~~ Generated by projen. To modify, edit .projenrc.js and run "npx projen". -{ - "env": { - "jest": true, - "node": true - }, - "root": true, - "plugins": [ - "@typescript-eslint", - "import" - ], - "parser": "@typescript-eslint/parser", - "parserOptions": { - "ecmaVersion": 2018, - "sourceType": "module", - "project": "./tsconfig.dev.json" - }, - "extends": [ - "plugin:import/typescript", - "plugin:prettier/recommended" - ], - "settings": { - "import/parsers": { - "@typescript-eslint/parser": [ - ".ts", - ".tsx" - ] - }, - "import/resolver": { - "node": {}, - "typescript": { - "project": "./tsconfig.dev.json", - "alwaysTryTypes": true - } - } - }, - "ignorePatterns": [ - "*.js", - "*.d.ts", - "node_modules/", - "*.generated.ts", - "coverage" - ], - "rules": { - "@typescript-eslint/no-require-imports": [ - "error" - ], - "import/no-extraneous-dependencies": [ - "error", - { - "devDependencies": [ - "**/test/**", - "**/build-tools/**" - ], - "optionalDependencies": false, - "peerDependencies": true - } - ], - "import/no-unresolved": [ - "error" - ], - "import/order": [ - "warn", - { - "groups": [ - "builtin", - "external" - ], - "alphabetize": { - "order": "asc", - "caseInsensitive": true - } - } - ], - "no-duplicate-imports": [ - "error" - ], - "no-shadow": [ - "off" - ], - "@typescript-eslint/no-shadow": [ - "error" - ], - "key-spacing": [ - "error" - ], - "no-multiple-empty-lines": [ - "error" - ], - "@typescript-eslint/no-floating-promises": [ - "error" - ], - "no-return-await": [ - "off" - ], - "@typescript-eslint/return-await": [ - "error" - ], - "no-trailing-spaces": [ - "error" - ], - "dot-notation": [ - "error" - ], - "no-bitwise": [ - "error" - ], - "@typescript-eslint/member-ordering": [ - "error", - { - "default": [ - "public-static-field", - "public-static-method", - "protected-static-field", - "protected-static-method", - "private-static-field", - "private-static-method", - "field", - "constructor", - "method" - ] - } - ] - }, - "overrides": [] -} diff --git a/packages/client-sqs/.gitattributes b/packages/client-sqs/.gitattributes deleted file mode 100644 index 1c2be5a..0000000 --- a/packages/client-sqs/.gitattributes +++ /dev/null @@ -1,21 +0,0 @@ -# ~~ Generated by projen. To modify, edit .projenrc.js and run "npx projen". - -/./tsconfig.esm.json linguist-generated -/.eslintrc.json linguist-generated -/.gitattributes linguist-generated -/.gitignore linguist-generated -/.npmignore linguist-generated -/.npmrc linguist-generated -/.prettierignore linguist-generated -/.prettierrc.json 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 -/project.json linguist-generated -/tsconfig.dev.json linguist-generated -/tsconfig.json linguist-generated \ No newline at end of file diff --git a/packages/client-sqs/.gitignore b/packages/client-sqs/.gitignore deleted file mode 100644 index e4fdd83..0000000 --- a/packages/client-sqs/.gitignore +++ /dev/null @@ -1,45 +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 -!/.prettierignore -!/.prettierrc.json -!/.npmrc -!/test/ -!/tsconfig.json -!/tsconfig.dev.json -!/src/ -/lib -/dist/ -!/.eslintrc.json -!/tsconfig.esm.json -!/project.json -!/docgen.json -docs/ diff --git a/packages/client-sqs/.npmignore b/packages/client-sqs/.npmignore deleted file mode 100644 index 277d62e..0000000 --- a/packages/client-sqs/.npmignore +++ /dev/null @@ -1,20 +0,0 @@ -# ~~ Generated by projen. To modify, edit .projenrc.js and run "npx projen". -/.projen/ -/.prettierignore -/.prettierrc.json -/test/ -/tsconfig.dev.json -/src/ -!/lib/ -!/lib/**/*.js -!/lib/**/*.d.ts -dist -/tsconfig.json -/.github/ -/.vscode/ -/.idea/ -/.projenrc.js -tsconfig.tsbuildinfo -/.eslintrc.json -/tsconfig.esm.json -/.gitattributes diff --git a/packages/client-sqs/.prettierignore b/packages/client-sqs/.prettierignore deleted file mode 100644 index 46704c7..0000000 --- a/packages/client-sqs/.prettierignore +++ /dev/null @@ -1 +0,0 @@ -# ~~ Generated by projen. To modify, edit .projenrc.js and run "npx projen". diff --git a/packages/client-sqs/.prettierrc.json b/packages/client-sqs/.prettierrc.json deleted file mode 100644 index 84c85a3..0000000 --- a/packages/client-sqs/.prettierrc.json +++ /dev/null @@ -1,3 +0,0 @@ -{ - "overrides": [] -} diff --git a/packages/client-sqs/.projen/deps.json b/packages/client-sqs/.projen/deps.json deleted file mode 100644 index 0387660..0000000 --- a/packages/client-sqs/.projen/deps.json +++ /dev/null @@ -1,82 +0,0 @@ -{ - "dependencies": [ - { - "name": "@types/node", - "version": "^18", - "type": "build" - }, - { - "name": "@typescript-eslint/eslint-plugin", - "version": "^6", - "type": "build" - }, - { - "name": "@typescript-eslint/parser", - "version": "^6", - "type": "build" - }, - { - "name": "aws-sdk-client-mock", - "type": "build" - }, - { - "name": "aws-sdk-client-mock-jest", - "type": "build" - }, - { - "name": "constructs", - "version": "^10.0.0", - "type": "build" - }, - { - "name": "eslint-config-prettier", - "type": "build" - }, - { - "name": "eslint-import-resolver-typescript", - "type": "build" - }, - { - "name": "eslint-plugin-import", - "type": "build" - }, - { - "name": "eslint-plugin-prettier", - "type": "build" - }, - { - "name": "eslint", - "version": "^8", - "type": "build" - }, - { - "name": "prettier", - "type": "build" - }, - { - "name": "projen", - "version": "^0.79.6", - "type": "build" - }, - { - "name": "typescript", - "type": "build" - }, - { - "name": "effect", - "version": ">=2.3.1 <2.5.0", - "type": "peer" - }, - { - "name": "@aws-sdk/client-sqs", - "version": "^3", - "type": "runtime" - }, - { - "name": "@aws-sdk/types", - "version": "^3", - "type": "runtime" - } - ], - "//": "~~ Generated by projen. To modify, edit .projenrc.js and run \"npx projen\"." -} diff --git a/packages/client-sqs/.projen/files.json b/packages/client-sqs/.projen/files.json deleted file mode 100644 index c38792b..0000000 --- a/packages/client-sqs/.projen/files.json +++ /dev/null @@ -1,20 +0,0 @@ -{ - "files": [ - ".eslintrc.json", - ".gitattributes", - ".gitignore", - ".npmignore", - ".prettierignore", - ".prettierrc.json", - ".projen/deps.json", - ".projen/files.json", - ".projen/tasks.json", - "docgen.json", - "LICENSE", - "project.json", - "tsconfig.dev.json", - "tsconfig.esm.json", - "tsconfig.json" - ], - "//": "~~ Generated by projen. To modify, edit .projenrc.js and run \"npx projen\"." -} diff --git a/packages/client-sqs/.projen/tasks.json b/packages/client-sqs/.projen/tasks.json deleted file mode 100644 index 6ecb00a..0000000 --- a/packages/client-sqs/.projen/tasks.json +++ /dev/null @@ -1,113 +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.json ./tsconfig.esm.json" - } - ] - }, - "default": { - "name": "default", - "description": "Synthesize project files" - }, - "eslint": { - "name": "eslint", - "description": "Runs eslint against the codebase", - "steps": [ - { - "exec": "eslint --ext .ts,.tsx --fix --no-error-on-unmatched-pattern $@ src test build-tools", - "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" - }, - "post-compile": { - "name": "post-compile", - "description": "Runs after successful compilation" - }, - "pre-compile": { - "name": "pre-compile", - "description": "Prepare the project for compilation" - }, - "test": { - "name": "test", - "description": "Run tests", - "steps": [ - { - "exec": "vitest run --globals --reporter verbose", - "receiveArgs": true - }, - { - "spawn": "eslint" - } - ] - }, - "test:watch": { - "name": "test:watch", - "description": "Run tests in watch mode", - "steps": [ - { - "exec": "vitest --globals --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/client-sqs/CHANGELOG.md b/packages/client-sqs/CHANGELOG.md deleted file mode 100644 index 37a8568..0000000 --- a/packages/client-sqs/CHANGELOG.md +++ /dev/null @@ -1,79 +0,0 @@ -# @effect-aws/client-sqs - -## 1.2.0 - -### Minor Changes - -- [#43](https://github.com/floydspace/effect-aws/pull/43) [`6e6c0a0`](https://github.com/floydspace/effect-aws/commit/6e6c0a00078c38b4575c1bac1015949b478428c0) Thanks [@godu](https://github.com/godu)! - new dynamodb client method, typed errors in sqs service - -## 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 - -- [`3e5d0b3`](https://github.com/floydspace/effect-aws/commit/3e5d0b3b3882e0aa6d07bc06432990551316ac30) Thanks [@floydspace](https://github.com/floydspace)! - Upgrade to effect v2 and release stable version - -## 0.5.0 - -### Minor Changes - -- [`744df3c`](https://github.com/floydspace/effect-aws/commit/744df3ca6406b3a35e3066d5fe11ca7082c4c454) Thanks [@floydspace](https://github.com/floydspace)! - upgrade effect dependency - -## 0.4.0 - -### Minor Changes - -- [`0a969d8`](https://github.com/floydspace/effect-aws/commit/0a969d8a74c3bf1b87ff6a1c8bf689af849797e1) Thanks [@floydspace](https://github.com/floydspace)! - upgrade effect peer version - -## 0.3.2 - -### Patch Changes - -- [`280d8bd`](https://github.com/floydspace/effect-aws/commit/280d8bd6686d6e7a2b73322a047e8eb22263b1e1) Thanks [@floydspace](https://github.com/floydspace)! - upgrade dependencies - -## 0.3.1 - -### Patch Changes - -- [`6b99904`](https://github.com/floydspace/effect-aws/commit/6b9990497bdb20f240d8261b6382db421e9a3ec2) Thanks [@floydspace](https://github.com/floydspace)! - as @mikearnaldi said: "we should really never do tacit passing" - -## 0.3.0 - -### Minor Changes - -- [#14](https://github.com/floydspace/effect-aws/pull/14) [`cddfb74`](https://github.com/floydspace/effect-aws/commit/cddfb74a00b10a13ccfe3749e90961119c4f0906) Thanks [@floydspace](https://github.com/floydspace)! - upgrade effect version to the next one - -## 0.2.0 - -### Minor Changes - -- [`d7d6c50`](https://github.com/floydspace/effect-aws/commit/d7d6c500de9aa538f76a5b8cfc9ffac741210d33) Thanks [@floydspace](https://github.com/floydspace)! - introduce tagged clients options for better narrowing - -## 0.1.0 - -### Minor Changes - -- [`1ddcac5`](https://github.com/floydspace/effect-aws/commit/1ddcac5355b37d83347b3d833202870e7e88ae7d) Thanks [@floydspace](https://github.com/floydspace)! - implement effectful sqs client diff --git a/packages/client-sqs/LICENSE b/packages/client-sqs/LICENSE deleted file mode 100644 index 7afce46..0000000 --- a/packages/client-sqs/LICENSE +++ /dev/null @@ -1,19 +0,0 @@ -Copyright (c) 2024 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/client-sqs/README.md b/packages/client-sqs/README.md deleted file mode 100644 index b3fa7dd..0000000 --- a/packages/client-sqs/README.md +++ /dev/null @@ -1 +0,0 @@ -# replace this \ No newline at end of file diff --git a/packages/client-sqs/docgen.json b/packages/client-sqs/docgen.json deleted file mode 100644 index b359fc7..0000000 --- a/packages/client-sqs/docgen.json +++ /dev/null @@ -1,8 +0,0 @@ -{ - "$schema": "../../node_modules/@effect/docgen/schema.json", - "exclude": [ - "src/index.ts", - "src/Errors.ts" - ], - "//": "~~ Generated by projen. To modify, edit .projenrc.js and run \"npx projen\"." -} diff --git a/packages/client-sqs/package.json b/packages/client-sqs/package.json deleted file mode 100644 index 0224d8d..0000000 --- a/packages/client-sqs/package.json +++ /dev/null @@ -1,56 +0,0 @@ -{ - "name": "@effect-aws/client-sqs", - "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": { - "@types/node": "^18", - "@typescript-eslint/eslint-plugin": "^6", - "@typescript-eslint/parser": "^6", - "aws-sdk-client-mock": "^3.0.0", - "aws-sdk-client-mock-jest": "^3.0.0", - "constructs": "^10.0.0", - "effect": "2.3.1", - "eslint": "^8", - "eslint-config-prettier": "^9.0.0", - "eslint-import-resolver-typescript": "^3.6.1", - "eslint-plugin-import": "^2.28.1", - "eslint-plugin-prettier": "^5.0.0", - "prettier": "^3.0.3", - "projen": "^0.79.6", - "typescript": "^5.2.2" - }, - "peerDependencies": { - "effect": ">=2.3.1 <2.5.0" - }, - "dependencies": { - "@aws-sdk/client-sqs": "^3", - "@aws-sdk/types": "^3" - }, - "main": "lib/index.js", - "license": "MIT", - "homepage": "https://floydspace.github.io/effect-aws", - "publishConfig": { - "access": "public" - }, - "version": "1.2.0", - "types": "lib/index.d.ts", - "module": "lib/esm/index.js", - "sideEffects": [], - "//": "~~ Generated by projen. To modify, edit .projenrc.js and run \"npx projen\"." -} diff --git a/packages/client-sqs/project.json b/packages/client-sqs/project.json deleted file mode 100644 index dc4fce3..0000000 --- a/packages/client-sqs/project.json +++ /dev/null @@ -1,77 +0,0 @@ -{ - "name": "@effect-aws/client-sqs", - "root": "packages/client-sqs", - "targets": { - "default": { - "executor": "nx:run-commands", - "options": { - "command": "pnpm exec projen default", - "cwd": "packages/client-sqs" - } - }, - "pre-compile": { - "executor": "nx:run-commands", - "options": { - "command": "pnpm exec projen pre-compile", - "cwd": "packages/client-sqs" - } - }, - "compile": { - "executor": "nx:run-commands", - "options": { - "command": "pnpm exec projen compile", - "cwd": "packages/client-sqs" - } - }, - "post-compile": { - "executor": "nx:run-commands", - "options": { - "command": "pnpm exec projen post-compile", - "cwd": "packages/client-sqs" - } - }, - "test": { - "executor": "nx:run-commands", - "options": { - "command": "pnpm exec projen test", - "cwd": "packages/client-sqs" - } - }, - "package": { - "executor": "nx:run-commands", - "options": { - "command": "pnpm exec projen package", - "cwd": "packages/client-sqs" - } - }, - "build": { - "executor": "nx:run-commands", - "options": { - "command": "pnpm exec projen build", - "cwd": "packages/client-sqs" - } - }, - "watch": { - "executor": "nx:run-commands", - "options": { - "command": "pnpm exec projen watch", - "cwd": "packages/client-sqs" - } - }, - "eslint": { - "executor": "nx:run-commands", - "options": { - "command": "pnpm exec projen eslint", - "cwd": "packages/client-sqs" - } - }, - "test:watch": { - "executor": "nx:run-commands", - "options": { - "command": "pnpm exec projen test:watch", - "cwd": "packages/client-sqs" - } - } - }, - "//": "~~ Generated by projen. To modify, edit .projenrc.js and run \"npx projen\"." -} diff --git a/packages/client-sqs/src/Errors.ts b/packages/client-sqs/src/Errors.ts deleted file mode 100644 index 2174ec4..0000000 --- a/packages/client-sqs/src/Errors.ts +++ /dev/null @@ -1,71 +0,0 @@ -import type { - BatchEntryIdsNotDistinct, - BatchRequestTooLong, - EmptyBatchRequest, - InvalidAddress, - InvalidAttributeName, - InvalidAttributeValue, - InvalidBatchEntryId, - InvalidIdFormat, - InvalidMessageContents, - InvalidSecurity, - KmsAccessDenied, - KmsDisabled, - KmsInvalidKeyUsage, - KmsInvalidState, - KmsNotFound, - KmsOptInRequired, - KmsThrottled, - MessageNotInflight, - OverLimit, - PurgeQueueInProgress, - QueueDeletedRecently, - QueueDoesNotExist, - QueueNameExists, - ReceiptHandleIsInvalid, - RequestThrottled, - ResourceNotFoundException, - TooManyEntriesInBatchRequest, - UnsupportedOperation, -} from "@aws-sdk/client-sqs"; -import * as Data from "effect/Data"; - -export type TaggedException = T & { - readonly _tag: T["name"]; -}; - -export type BatchEntryIdsNotDistinctError = - TaggedException; -export type BatchRequestTooLongError = TaggedException; -export type EmptyBatchRequestError = TaggedException; -export type InvalidAddressError = TaggedException; -export type InvalidAttributeNameError = TaggedException; -export type InvalidAttributeValueError = TaggedException; -export type InvalidBatchEntryIdError = TaggedException; -export type InvalidIdFormatError = TaggedException; -export type InvalidMessageContentsError = - TaggedException; -export type InvalidSecurityError = TaggedException; -export type KmsAccessDeniedError = TaggedException; -export type KmsDisabledError = TaggedException; -export type KmsInvalidKeyUsageError = TaggedException; -export type KmsInvalidStateError = TaggedException; -export type KmsNotFoundError = TaggedException; -export type KmsOptInRequiredError = TaggedException; -export type KmsThrottledError = TaggedException; -export type MessageNotInflightError = TaggedException; -export type OverLimitError = TaggedException; -export type PurgeQueueInProgressError = TaggedException; -export type QueueDeletedRecentlyError = TaggedException; -export type QueueDoesNotExistError = TaggedException; -export type QueueNameExistsError = TaggedException; -export type ReceiptHandleIsInvalidError = - TaggedException; -export type RequestThrottledError = TaggedException; -export type ResourceNotFoundError = TaggedException; -export type TooManyEntriesInBatchRequestError = - TaggedException; -export type UnsupportedOperationError = TaggedException; - -export type SdkError = TaggedException; -export const SdkError = Data.tagged("SdkError"); diff --git a/packages/client-sqs/src/SQSClientInstance.ts b/packages/client-sqs/src/SQSClientInstance.ts deleted file mode 100644 index 0be5904..0000000 --- a/packages/client-sqs/src/SQSClientInstance.ts +++ /dev/null @@ -1,45 +0,0 @@ -/** - * @since 1.0.0 - */ -import { SQSClient } from "@aws-sdk/client-sqs"; -import * as Context from "effect/Context"; -import * as Effect from "effect/Effect"; -import * as Layer from "effect/Layer"; -import { - DefaultSQSClientConfigLayer, - SQSClientInstanceConfig, -} from "./SQSClientInstanceConfig"; - -/** - * @since 1.0.0 - * @category tags - */ -export class SQSClientInstance extends Context.Tag( - "@effect-aws/client-sqs/SQSClientInstance", -)() {} - -/** - * @since 1.0.0 - * @category constructors - */ -export const makeSQSClientInstance = Effect.map( - SQSClientInstanceConfig, - (config) => new SQSClient(config), -); - -/** - * @since 1.0.0 - * @category layers - */ -export const SQSClientInstanceLayer = Layer.effect( - SQSClientInstance, - makeSQSClientInstance, -); - -/** - * @since 1.0.0 - * @category layers - */ -export const DefaultSQSClientInstanceLayer = SQSClientInstanceLayer.pipe( - Layer.provide(DefaultSQSClientConfigLayer), -); diff --git a/packages/client-sqs/src/SQSClientInstanceConfig.ts b/packages/client-sqs/src/SQSClientInstanceConfig.ts deleted file mode 100644 index aa900ba..0000000 --- a/packages/client-sqs/src/SQSClientInstanceConfig.ts +++ /dev/null @@ -1,55 +0,0 @@ -/** - * @since 1.0.0 - */ -import type { SQSClientConfig } from "@aws-sdk/client-sqs"; -import * as Context from "effect/Context"; -import * as Effect from "effect/Effect"; -import * as Layer from "effect/Layer"; -import * as Runtime from "effect/Runtime"; - -/** - * @since 1.0.0 - * @category tags - */ -export class SQSClientInstanceConfig extends Context.Tag( - "@effect-aws/client-sqs/SQSClientInstanceConfig", -)() {} - -/** - * @since 1.0.0 - * @category constructors - */ -export const makeDefaultSQSClientInstanceConfig: Effect.Effect = - Effect.gen(function* (_) { - const runtime = yield* _(Effect.runtime()); - const runSync = Runtime.runSync(runtime); - - return { - logger: { - info(m) { - Effect.logInfo(m).pipe(runSync); - }, - warn(m) { - Effect.logWarning(m).pipe(runSync); - }, - error(m) { - Effect.logError(m).pipe(runSync); - }, - debug(m) { - Effect.logDebug(m).pipe(runSync); - }, - trace(m) { - Effect.logTrace(m).pipe(runSync); - }, - }, - }; - }); - -/** - * @since 1.0.0 - * @category layers - */ -export const DefaultSQSClientConfigLayer = Layer.effect( - SQSClientInstanceConfig, - makeDefaultSQSClientInstanceConfig, -); diff --git a/packages/client-sqs/src/SQSService.ts b/packages/client-sqs/src/SQSService.ts deleted file mode 100644 index 3d16da3..0000000 --- a/packages/client-sqs/src/SQSService.ts +++ /dev/null @@ -1,662 +0,0 @@ -/** - * @since 1.0.0 - */ -import { - SQSServiceException, - AddPermissionCommand, - type AddPermissionCommandInput, - type AddPermissionCommandOutput, - CancelMessageMoveTaskCommand, - type CancelMessageMoveTaskCommandInput, - type CancelMessageMoveTaskCommandOutput, - ChangeMessageVisibilityCommand, - type ChangeMessageVisibilityCommandInput, - type ChangeMessageVisibilityCommandOutput, - ChangeMessageVisibilityBatchCommand, - type ChangeMessageVisibilityBatchCommandInput, - type ChangeMessageVisibilityBatchCommandOutput, - CreateQueueCommand, - type CreateQueueCommandInput, - type CreateQueueCommandOutput, - DeleteMessageCommand, - type DeleteMessageCommandInput, - type DeleteMessageCommandOutput, - DeleteMessageBatchCommand, - type DeleteMessageBatchCommandInput, - type DeleteMessageBatchCommandOutput, - DeleteQueueCommand, - type DeleteQueueCommandInput, - type DeleteQueueCommandOutput, - GetQueueAttributesCommand, - type GetQueueAttributesCommandInput, - type GetQueueAttributesCommandOutput, - GetQueueUrlCommand, - type GetQueueUrlCommandInput, - type GetQueueUrlCommandOutput, - ListDeadLetterSourceQueuesCommand, - type ListDeadLetterSourceQueuesCommandInput, - type ListDeadLetterSourceQueuesCommandOutput, - ListMessageMoveTasksCommand, - type ListMessageMoveTasksCommandInput, - type ListMessageMoveTasksCommandOutput, - ListQueuesCommand, - type ListQueuesCommandInput, - type ListQueuesCommandOutput, - ListQueueTagsCommand, - type ListQueueTagsCommandInput, - type ListQueueTagsCommandOutput, - PurgeQueueCommand, - type PurgeQueueCommandInput, - type PurgeQueueCommandOutput, - ReceiveMessageCommand, - type ReceiveMessageCommandInput, - type ReceiveMessageCommandOutput, - RemovePermissionCommand, - type RemovePermissionCommandInput, - type RemovePermissionCommandOutput, - SendMessageCommand, - type SendMessageCommandInput, - type SendMessageCommandOutput, - SendMessageBatchCommand, - type SendMessageBatchCommandInput, - type SendMessageBatchCommandOutput, - SetQueueAttributesCommand, - type SetQueueAttributesCommandInput, - type SetQueueAttributesCommandOutput, - StartMessageMoveTaskCommand, - type StartMessageMoveTaskCommandInput, - type StartMessageMoveTaskCommandOutput, - TagQueueCommand, - type TagQueueCommandInput, - type TagQueueCommandOutput, - UntagQueueCommand, - type UntagQueueCommandInput, - type UntagQueueCommandOutput, -} from "@aws-sdk/client-sqs"; -import { type HttpHandlerOptions as __HttpHandlerOptions } from "@aws-sdk/types"; -import { Context, Data, Effect, Layer, ReadonlyRecord } from "effect"; -import { - BatchEntryIdsNotDistinctError, - BatchRequestTooLongError, - EmptyBatchRequestError, - InvalidAddressError, - InvalidAttributeNameError, - InvalidAttributeValueError, - InvalidBatchEntryIdError, - InvalidIdFormatError, - InvalidMessageContentsError, - InvalidSecurityError, - KmsAccessDeniedError, - KmsDisabledError, - KmsInvalidKeyUsageError, - KmsInvalidStateError, - KmsNotFoundError, - KmsOptInRequiredError, - KmsThrottledError, - MessageNotInflightError, - OverLimitError, - PurgeQueueInProgressError, - QueueDeletedRecentlyError, - QueueDoesNotExistError, - QueueNameExistsError, - ReceiptHandleIsInvalidError, - RequestThrottledError, - ResourceNotFoundError, - TooManyEntriesInBatchRequestError, - UnsupportedOperationError, - SdkError, - TaggedException, -} from "./Errors"; -import { - DefaultSQSClientInstanceLayer, - SQSClientInstance, - SQSClientInstanceLayer, -} from "./SQSClientInstance"; -import { DefaultSQSClientConfigLayer } from "./SQSClientInstanceConfig"; - -const commands = { - AddPermissionCommand, - CancelMessageMoveTaskCommand, - ChangeMessageVisibilityCommand, - ChangeMessageVisibilityBatchCommand, - CreateQueueCommand, - DeleteMessageCommand, - DeleteMessageBatchCommand, - DeleteQueueCommand, - GetQueueAttributesCommand, - GetQueueUrlCommand, - ListDeadLetterSourceQueuesCommand, - ListMessageMoveTasksCommand, - ListQueuesCommand, - ListQueueTagsCommand, - PurgeQueueCommand, - ReceiveMessageCommand, - RemovePermissionCommand, - SendMessageCommand, - SendMessageBatchCommand, - SetQueueAttributesCommand, - StartMessageMoveTaskCommand, - TagQueueCommand, - UntagQueueCommand, -}; - -/** - * @since 1.0.0 - * @category models - */ -export interface SQSService { - readonly _: unique symbol; - - /** - * @see {@link AddPermissionCommand} - */ - addPermission( - args: AddPermissionCommandInput, - options?: __HttpHandlerOptions, - ): Effect.Effect< - AddPermissionCommandOutput, - | SdkError - | InvalidAddressError - | InvalidSecurityError - | OverLimitError - | QueueDoesNotExistError - | RequestThrottledError - | UnsupportedOperationError - >; - - /** - * @see {@link CancelMessageMoveTaskCommand} - */ - cancelMessageMoveTask( - args: CancelMessageMoveTaskCommandInput, - options?: __HttpHandlerOptions, - ): Effect.Effect< - CancelMessageMoveTaskCommandOutput, - | SdkError - | InvalidAddressError - | InvalidSecurityError - | RequestThrottledError - | ResourceNotFoundError - | UnsupportedOperationError - >; - - /** - * @see {@link ChangeMessageVisibilityCommand} - */ - changeMessageVisibility( - args: ChangeMessageVisibilityCommandInput, - options?: __HttpHandlerOptions, - ): Effect.Effect< - ChangeMessageVisibilityCommandOutput, - | SdkError - | InvalidAddressError - | InvalidSecurityError - | MessageNotInflightError - | QueueDoesNotExistError - | ReceiptHandleIsInvalidError - | RequestThrottledError - | UnsupportedOperationError - >; - - /** - * @see {@link ChangeMessageVisibilityBatchCommand} - */ - changeMessageVisibilityBatch( - args: ChangeMessageVisibilityBatchCommandInput, - options?: __HttpHandlerOptions, - ): Effect.Effect< - ChangeMessageVisibilityBatchCommandOutput, - | SdkError - | BatchEntryIdsNotDistinctError - | EmptyBatchRequestError - | InvalidAddressError - | InvalidBatchEntryIdError - | InvalidSecurityError - | QueueDoesNotExistError - | RequestThrottledError - | TooManyEntriesInBatchRequestError - | UnsupportedOperationError - >; - - /** - * @see {@link CreateQueueCommand} - */ - createQueue( - args: CreateQueueCommandInput, - options?: __HttpHandlerOptions, - ): Effect.Effect< - CreateQueueCommandOutput, - | SdkError - | InvalidAddressError - | InvalidAttributeNameError - | InvalidAttributeValueError - | InvalidSecurityError - | QueueDeletedRecentlyError - | QueueNameExistsError - | RequestThrottledError - | UnsupportedOperationError - >; - - /** - * @see {@link DeleteMessageCommand} - */ - deleteMessage( - args: DeleteMessageCommandInput, - options?: __HttpHandlerOptions, - ): Effect.Effect< - DeleteMessageCommandOutput, - | SdkError - | InvalidAddressError - | InvalidIdFormatError - | InvalidSecurityError - | QueueDoesNotExistError - | ReceiptHandleIsInvalidError - | RequestThrottledError - | UnsupportedOperationError - >; - - /** - * @see {@link DeleteMessageBatchCommand} - */ - deleteMessageBatch( - args: DeleteMessageBatchCommandInput, - options?: __HttpHandlerOptions, - ): Effect.Effect< - DeleteMessageBatchCommandOutput, - | SdkError - | BatchEntryIdsNotDistinctError - | EmptyBatchRequestError - | InvalidAddressError - | InvalidBatchEntryIdError - | InvalidSecurityError - | QueueDoesNotExistError - | RequestThrottledError - | TooManyEntriesInBatchRequestError - | UnsupportedOperationError - >; - - /** - * @see {@link DeleteQueueCommand} - */ - deleteQueue( - args: DeleteQueueCommandInput, - options?: __HttpHandlerOptions, - ): Effect.Effect< - DeleteQueueCommandOutput, - | SdkError - | InvalidAddressError - | InvalidSecurityError - | QueueDoesNotExistError - | RequestThrottledError - | UnsupportedOperationError - >; - - /** - * @see {@link GetQueueAttributesCommand} - */ - getQueueAttributes( - args: GetQueueAttributesCommandInput, - options?: __HttpHandlerOptions, - ): Effect.Effect< - GetQueueAttributesCommandOutput, - | SdkError - | InvalidAddressError - | InvalidAttributeNameError - | InvalidSecurityError - | QueueDoesNotExistError - | RequestThrottledError - | UnsupportedOperationError - >; - - /** - * @see {@link GetQueueUrlCommand} - */ - getQueueUrl( - args: GetQueueUrlCommandInput, - options?: __HttpHandlerOptions, - ): Effect.Effect< - GetQueueUrlCommandOutput, - | SdkError - | InvalidAddressError - | InvalidSecurityError - | QueueDoesNotExistError - | RequestThrottledError - | UnsupportedOperationError - >; - - /** - * @see {@link ListDeadLetterSourceQueuesCommand} - */ - listDeadLetterSourceQueues( - args: ListDeadLetterSourceQueuesCommandInput, - options?: __HttpHandlerOptions, - ): Effect.Effect< - ListDeadLetterSourceQueuesCommandOutput, - | SdkError - | InvalidAddressError - | InvalidSecurityError - | QueueDoesNotExistError - | RequestThrottledError - | UnsupportedOperationError - >; - - /** - * @see {@link ListMessageMoveTasksCommand} - */ - listMessageMoveTasks( - args: ListMessageMoveTasksCommandInput, - options?: __HttpHandlerOptions, - ): Effect.Effect< - ListMessageMoveTasksCommandOutput, - | SdkError - | InvalidAddressError - | InvalidSecurityError - | RequestThrottledError - | ResourceNotFoundError - | UnsupportedOperationError - >; - - /** - * @see {@link ListQueuesCommand} - */ - listQueues( - args: ListQueuesCommandInput, - options?: __HttpHandlerOptions, - ): Effect.Effect< - ListQueuesCommandOutput, - | SdkError - | InvalidAddressError - | InvalidSecurityError - | RequestThrottledError - | UnsupportedOperationError - >; - - /** - * @see {@link ListQueueTagsCommand} - */ - listQueueTags( - args: ListQueueTagsCommandInput, - options?: __HttpHandlerOptions, - ): Effect.Effect< - ListQueueTagsCommandOutput, - | SdkError - | InvalidAddressError - | InvalidSecurityError - | QueueDoesNotExistError - | RequestThrottledError - | UnsupportedOperationError - >; - - /** - * @see {@link PurgeQueueCommand} - */ - purgeQueue( - args: PurgeQueueCommandInput, - options?: __HttpHandlerOptions, - ): Effect.Effect< - PurgeQueueCommandOutput, - | SdkError - | InvalidAddressError - | InvalidSecurityError - | PurgeQueueInProgressError - | QueueDoesNotExistError - | RequestThrottledError - | UnsupportedOperationError - >; - - /** - * @see {@link ReceiveMessageCommand} - */ - receiveMessage( - args: ReceiveMessageCommandInput, - options?: __HttpHandlerOptions, - ): Effect.Effect< - ReceiveMessageCommandOutput, - | SdkError - | InvalidAddressError - | InvalidSecurityError - | KmsAccessDeniedError - | KmsDisabledError - | KmsInvalidKeyUsageError - | KmsInvalidStateError - | KmsNotFoundError - | KmsOptInRequiredError - | KmsThrottledError - | OverLimitError - | QueueDoesNotExistError - | RequestThrottledError - | UnsupportedOperationError - >; - - /** - * @see {@link RemovePermissionCommand} - */ - removePermission( - args: RemovePermissionCommandInput, - options?: __HttpHandlerOptions, - ): Effect.Effect< - RemovePermissionCommandOutput, - | SdkError - | InvalidAddressError - | InvalidSecurityError - | QueueDoesNotExistError - | RequestThrottledError - | UnsupportedOperationError - >; - - /** - * @see {@link SendMessageCommand} - */ - sendMessage( - args: SendMessageCommandInput, - options?: __HttpHandlerOptions, - ): Effect.Effect< - SendMessageCommandOutput, - | SdkError - | InvalidAddressError - | InvalidMessageContentsError - | InvalidSecurityError - | KmsAccessDeniedError - | KmsDisabledError - | KmsInvalidKeyUsageError - | KmsInvalidStateError - | KmsNotFoundError - | KmsOptInRequiredError - | KmsThrottledError - | QueueDoesNotExistError - | RequestThrottledError - | UnsupportedOperationError - >; - - /** - * @see {@link SendMessageBatchCommand} - */ - sendMessageBatch( - args: SendMessageBatchCommandInput, - options?: __HttpHandlerOptions, - ): Effect.Effect< - SendMessageBatchCommandOutput, - | SdkError - | BatchEntryIdsNotDistinctError - | BatchRequestTooLongError - | EmptyBatchRequestError - | InvalidAddressError - | InvalidBatchEntryIdError - | InvalidSecurityError - | KmsAccessDeniedError - | KmsDisabledError - | KmsInvalidKeyUsageError - | KmsInvalidStateError - | KmsNotFoundError - | KmsOptInRequiredError - | KmsThrottledError - | QueueDoesNotExistError - | RequestThrottledError - | TooManyEntriesInBatchRequestError - | UnsupportedOperationError - >; - - /** - * @see {@link SetQueueAttributesCommand} - */ - setQueueAttributes( - args: SetQueueAttributesCommandInput, - options?: __HttpHandlerOptions, - ): Effect.Effect< - SetQueueAttributesCommandOutput, - | SdkError - | InvalidAddressError - | InvalidAttributeNameError - | InvalidAttributeValueError - | InvalidSecurityError - | OverLimitError - | QueueDoesNotExistError - | RequestThrottledError - | UnsupportedOperationError - >; - - /** - * @see {@link StartMessageMoveTaskCommand} - */ - startMessageMoveTask( - args: StartMessageMoveTaskCommandInput, - options?: __HttpHandlerOptions, - ): Effect.Effect< - StartMessageMoveTaskCommandOutput, - | SdkError - | InvalidAddressError - | InvalidSecurityError - | RequestThrottledError - | ResourceNotFoundError - | UnsupportedOperationError - >; - - /** - * @see {@link TagQueueCommand} - */ - tagQueue( - args: TagQueueCommandInput, - options?: __HttpHandlerOptions, - ): Effect.Effect< - TagQueueCommandOutput, - | SdkError - | InvalidAddressError - | InvalidSecurityError - | QueueDoesNotExistError - | RequestThrottledError - | UnsupportedOperationError - >; - - /** - * @see {@link UntagQueueCommand} - */ - untagQueue( - args: UntagQueueCommandInput, - options?: __HttpHandlerOptions, - ): Effect.Effect< - UntagQueueCommandOutput, - | SdkError - | InvalidAddressError - | InvalidSecurityError - | QueueDoesNotExistError - | RequestThrottledError - | UnsupportedOperationError - >; -} - -/** - * @since 1.0.0 - * @category tags - */ -export const SQSService = Context.GenericTag( - "@effect-aws/client-sqs/SQSService", -); - -/** - * @since 1.0.0 - * @category constructors - */ -export const makeSQSService = Effect.gen(function* (_) { - const client = yield* _(SQSClientInstance); - - return ReadonlyRecord.toEntries(commands).reduce((acc, [command]) => { - const CommandCtor = commands[command] as any; - const methodImpl = (args: any, options: any) => - Effect.tryPromise({ - try: () => client.send(new CommandCtor(args), options ?? {}), - catch: (e) => { - if (e instanceof SQSServiceException) { - const ServiceException = Data.tagged< - TaggedException - >(e.name); - - return ServiceException({ - ...e, - message: e.message, - stack: e.stack, - }); - } - if (e instanceof Error) { - return SdkError({ - ...e, - name: "SdkError", - message: e.message, - stack: e.stack, - }); - } - throw e; - }, - }); - const methodName = (command[0].toLowerCase() + command.slice(1)).replace( - /Command$/, - "", - ); - return { ...acc, [methodName]: methodImpl }; - }, {}) as SQSService; -}); - -/** - * @since 1.0.0 - * @category layers - */ -export const BaseSQSServiceLayer = Layer.effect(SQSService, makeSQSService); - -/** - * @since 1.0.0 - * @category layers - */ -export const SQSServiceLayer = BaseSQSServiceLayer.pipe( - Layer.provide(SQSClientInstanceLayer), -); - -/** - * @since 1.0.0 - * @category layers - */ -export const DefaultSQSServiceLayer = SQSServiceLayer.pipe( - Layer.provide(DefaultSQSClientConfigLayer), -); - -// -------------------- Danger Zone -------------------- - -/** - * @since 0.1.0 - * @deprecated - */ -export const BaseSQSServiceEffect = makeSQSService; - -/** - * @since 0.1.0 - * @deprecated - */ -export const SQSServiceEffect = BaseSQSServiceEffect.pipe( - Effect.provide(SQSClientInstanceLayer), -); - -/** - * @since 0.1.0 - * @deprecated - */ -export const DefaultSQSServiceEffect = BaseSQSServiceEffect.pipe( - Effect.provide(DefaultSQSClientInstanceLayer), -); diff --git a/packages/client-sqs/src/index.ts b/packages/client-sqs/src/index.ts deleted file mode 100644 index cc688ab..0000000 --- a/packages/client-sqs/src/index.ts +++ /dev/null @@ -1,4 +0,0 @@ -export * from "./Errors"; -export * from "./SQSClientInstance"; -export * from "./SQSClientInstanceConfig"; -export * from "./SQSService"; diff --git a/packages/client-sqs/test/SQS.test.ts b/packages/client-sqs/test/SQS.test.ts deleted file mode 100644 index b114f18..0000000 --- a/packages/client-sqs/test/SQS.test.ts +++ /dev/null @@ -1,177 +0,0 @@ -import { - type SendMessageCommandInput, - SendMessageCommand, - SQSClient, -} from "@aws-sdk/client-sqs"; -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 * as Layer from "effect/Layer"; -import { - BaseSQSServiceLayer, - DefaultSQSClientConfigLayer, - DefaultSQSServiceLayer, - SQSClientInstance, - SQSClientInstanceConfig, - SQSService, - SQSServiceLayer, - SdkError, -} from "../src"; - -import "aws-sdk-client-mock-jest"; - -const clientMock = mockClient(SQSClient); - -describe("SQSClientImpl", () => { - it("default", async () => { - clientMock.reset().on(SendMessageCommand).resolves({}); - - const args: SendMessageCommandInput = { - QueueUrl: "https://sqs.eu-central-1.amazonaws.com/123456789012/MyQueue", - MessageBody: "Hello world!", - }; - - const program = Effect.flatMap(SQSService, (service) => - service.sendMessage(args), - ); - - const result = await pipe( - program, - Effect.provide(DefaultSQSServiceLayer), - Effect.runPromiseExit, - ); - - expect(result).toEqual(Exit.succeed({})); - expect(clientMock).toHaveReceivedCommandTimes(SendMessageCommand, 1); - expect(clientMock).toHaveReceivedCommandWith(SendMessageCommand, args); - }); - - it("configurable", async () => { - clientMock.reset().on(SendMessageCommand).resolves({}); - - const args: SendMessageCommandInput = { - QueueUrl: "https://sqs.eu-central-1.amazonaws.com/123456789012/MyQueue", - MessageBody: "Hello world!", - }; - - const program = Effect.flatMap(SQSService, (service) => - service.sendMessage(args), - ); - - const SQSClientConfigLayer = Layer.succeed(SQSClientInstanceConfig, { - region: "eu-central-1", - }); - const CustomSQSServiceLayer = SQSServiceLayer.pipe( - Layer.provide(SQSClientConfigLayer), - ); - - const result = await pipe( - program, - Effect.provide(CustomSQSServiceLayer), - Effect.runPromiseExit, - ); - - expect(result).toEqual(Exit.succeed({})); - expect(clientMock).toHaveReceivedCommandTimes(SendMessageCommand, 1); - expect(clientMock).toHaveReceivedCommandWith(SendMessageCommand, args); - }); - - it("base", async () => { - clientMock.reset().on(SendMessageCommand).resolves({}); - - const args: SendMessageCommandInput = { - QueueUrl: "https://sqs.eu-central-1.amazonaws.com/123456789012/MyQueue", - MessageBody: "Hello world!", - }; - - const program = Effect.flatMap(SQSService, (service) => - service.sendMessage(args), - ); - - const SQSClientInstanceLayer = Layer.succeed( - SQSClientInstance, - new SQSClient({ region: "eu-central-1" }), - ); - const CustomSQSServiceLayer = BaseSQSServiceLayer.pipe( - Layer.provide(SQSClientInstanceLayer), - ); - - const result = await pipe( - program, - Effect.provide(CustomSQSServiceLayer), - Effect.runPromiseExit, - ); - - expect(result).toEqual(Exit.succeed({})); - expect(clientMock).toHaveReceivedCommandTimes(SendMessageCommand, 1); - expect(clientMock).toHaveReceivedCommandWith(SendMessageCommand, args); - }); - - it("extended", async () => { - clientMock.reset().on(SendMessageCommand).resolves({}); - - const args: SendMessageCommandInput = { - QueueUrl: "https://sqs.eu-central-1.amazonaws.com/123456789012/MyQueue", - MessageBody: "Hello world!", - }; - - const program = Effect.flatMap(SQSService, (service) => - service.sendMessage(args), - ); - - const SQSClientInstanceLayer = Layer.effect( - SQSClientInstance, - Effect.map( - SQSClientInstanceConfig, - (config) => new SQSClient({ ...config, region: "eu-central-1" }), - ), - ); - const CustomSQSServiceLayer = BaseSQSServiceLayer.pipe( - Layer.provide(SQSClientInstanceLayer), - Layer.provide(DefaultSQSClientConfigLayer), - ); - - const result = await pipe( - program, - Effect.provide(CustomSQSServiceLayer), - Effect.runPromiseExit, - ); - - expect(result).toEqual(Exit.succeed({})); - expect(clientMock).toHaveReceivedCommandTimes(SendMessageCommand, 1); - expect(clientMock).toHaveReceivedCommandWith(SendMessageCommand, args); - }); - - it("fail", async () => { - clientMock.reset().on(SendMessageCommand).rejects(new Error("test")); - - const args: SendMessageCommandInput = { - QueueUrl: "https://sqs.eu-central-1.amazonaws.com/123456789012/MyQueue", - MessageBody: "Hello world!", - }; - - const program = Effect.flatMap(SQSService, (service) => - service.sendMessage(args), - ); - - const result = await pipe( - program, - Effect.provide(DefaultSQSServiceLayer), - Effect.runPromiseExit, - ); - - expect(result).toEqual( - Exit.fail( - SdkError({ - ...new Error("test"), - name: "SdkError", - message: "test", - stack: expect.any(String), - }), - ), - ); - expect(clientMock).toHaveReceivedCommandTimes(SendMessageCommand, 1); - expect(clientMock).toHaveReceivedCommandWith(SendMessageCommand, args); - }); -}); diff --git a/packages/client-sqs/tsconfig.dev.json b/packages/client-sqs/tsconfig.dev.json deleted file mode 100644 index 278f027..0000000 --- a/packages/client-sqs/tsconfig.dev.json +++ /dev/null @@ -1,37 +0,0 @@ -// ~~ Generated by projen. To modify, edit .projenrc.js and run "npx projen". -{ - "compilerOptions": { - "alwaysStrict": true, - "declaration": true, - "esModuleInterop": true, - "experimentalDecorators": true, - "inlineSourceMap": true, - "inlineSources": true, - "lib": [ - "es2019", - "dom" - ], - "module": "CommonJS", - "noEmitOnError": false, - "noFallthroughCasesInSwitch": true, - "noImplicitAny": true, - "noImplicitReturns": true, - "noImplicitThis": true, - "noUnusedLocals": true, - "noUnusedParameters": true, - "resolveJsonModule": true, - "strict": true, - "strictNullChecks": true, - "strictPropertyInitialization": true, - "stripInternal": true, - "target": "ES2019", - "moduleResolution": "node" - }, - "include": [ - "src/**/*.ts", - "test/**/*.ts" - ], - "exclude": [ - "node_modules" - ] -} diff --git a/packages/client-sqs/tsconfig.esm.json b/packages/client-sqs/tsconfig.esm.json deleted file mode 100644 index 1b04668..0000000 --- a/packages/client-sqs/tsconfig.esm.json +++ /dev/null @@ -1,10 +0,0 @@ -{ - "extends": "./tsconfig.json", - "compilerOptions": { - "outDir": "./lib/esm", - "module": "es6", - "resolveJsonModule": false, - "declaration": false - }, - "//": "~~ Generated by projen. To modify, edit .projenrc.js and run \"npx projen\"." -} diff --git a/packages/client-sqs/tsconfig.json b/packages/client-sqs/tsconfig.json deleted file mode 100644 index 576047c..0000000 --- a/packages/client-sqs/tsconfig.json +++ /dev/null @@ -1,36 +0,0 @@ -// ~~ Generated by projen. To modify, edit .projenrc.js and run "npx projen". -{ - "compilerOptions": { - "rootDir": "src", - "outDir": "lib", - "alwaysStrict": true, - "declaration": true, - "esModuleInterop": true, - "experimentalDecorators": true, - "inlineSourceMap": true, - "inlineSources": true, - "lib": [ - "es2019", - "dom" - ], - "module": "CommonJS", - "noEmitOnError": false, - "noFallthroughCasesInSwitch": true, - "noImplicitAny": true, - "noImplicitReturns": true, - "noImplicitThis": true, - "noUnusedLocals": true, - "noUnusedParameters": true, - "resolveJsonModule": true, - "strict": true, - "strictNullChecks": true, - "strictPropertyInitialization": true, - "stripInternal": true, - "target": "ES2019", - "moduleResolution": "node" - }, - "include": [ - "src/**/*.ts" - ], - "exclude": [] -} diff --git a/packages/lib-dynamodb/.eslintrc.json b/packages/lib-dynamodb/.eslintrc.json deleted file mode 100644 index c31c44d..0000000 --- a/packages/lib-dynamodb/.eslintrc.json +++ /dev/null @@ -1,126 +0,0 @@ -// ~~ Generated by projen. To modify, edit .projenrc.js and run "npx projen". -{ - "env": { - "jest": true, - "node": true - }, - "root": true, - "plugins": [ - "@typescript-eslint", - "import" - ], - "parser": "@typescript-eslint/parser", - "parserOptions": { - "ecmaVersion": 2018, - "sourceType": "module", - "project": "./tsconfig.dev.json" - }, - "extends": [ - "plugin:import/typescript", - "plugin:prettier/recommended" - ], - "settings": { - "import/parsers": { - "@typescript-eslint/parser": [ - ".ts", - ".tsx" - ] - }, - "import/resolver": { - "node": {}, - "typescript": { - "project": "./tsconfig.dev.json", - "alwaysTryTypes": true - } - } - }, - "ignorePatterns": [ - "*.js", - "*.d.ts", - "node_modules/", - "*.generated.ts", - "coverage" - ], - "rules": { - "@typescript-eslint/no-require-imports": [ - "error" - ], - "import/no-extraneous-dependencies": [ - "error", - { - "devDependencies": [ - "**/test/**", - "**/build-tools/**" - ], - "optionalDependencies": false, - "peerDependencies": true - } - ], - "import/no-unresolved": [ - "error" - ], - "import/order": [ - "warn", - { - "groups": [ - "builtin", - "external" - ], - "alphabetize": { - "order": "asc", - "caseInsensitive": true - } - } - ], - "no-duplicate-imports": [ - "error" - ], - "no-shadow": [ - "off" - ], - "@typescript-eslint/no-shadow": [ - "error" - ], - "key-spacing": [ - "error" - ], - "no-multiple-empty-lines": [ - "error" - ], - "@typescript-eslint/no-floating-promises": [ - "error" - ], - "no-return-await": [ - "off" - ], - "@typescript-eslint/return-await": [ - "error" - ], - "no-trailing-spaces": [ - "error" - ], - "dot-notation": [ - "error" - ], - "no-bitwise": [ - "error" - ], - "@typescript-eslint/member-ordering": [ - "error", - { - "default": [ - "public-static-field", - "public-static-method", - "protected-static-field", - "protected-static-method", - "private-static-field", - "private-static-method", - "field", - "constructor", - "method" - ] - } - ] - }, - "overrides": [] -} diff --git a/packages/lib-dynamodb/.gitattributes b/packages/lib-dynamodb/.gitattributes deleted file mode 100644 index 1c2be5a..0000000 --- a/packages/lib-dynamodb/.gitattributes +++ /dev/null @@ -1,21 +0,0 @@ -# ~~ Generated by projen. To modify, edit .projenrc.js and run "npx projen". - -/./tsconfig.esm.json linguist-generated -/.eslintrc.json linguist-generated -/.gitattributes linguist-generated -/.gitignore linguist-generated -/.npmignore linguist-generated -/.npmrc linguist-generated -/.prettierignore linguist-generated -/.prettierrc.json 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 -/project.json linguist-generated -/tsconfig.dev.json linguist-generated -/tsconfig.json 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 e4fdd83..0000000 --- a/packages/lib-dynamodb/.gitignore +++ /dev/null @@ -1,45 +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 -!/.prettierignore -!/.prettierrc.json -!/.npmrc -!/test/ -!/tsconfig.json -!/tsconfig.dev.json -!/src/ -/lib -/dist/ -!/.eslintrc.json -!/tsconfig.esm.json -!/project.json -!/docgen.json -docs/ diff --git a/packages/lib-dynamodb/.npmignore b/packages/lib-dynamodb/.npmignore deleted file mode 100644 index 277d62e..0000000 --- a/packages/lib-dynamodb/.npmignore +++ /dev/null @@ -1,20 +0,0 @@ -# ~~ Generated by projen. To modify, edit .projenrc.js and run "npx projen". -/.projen/ -/.prettierignore -/.prettierrc.json -/test/ -/tsconfig.dev.json -/src/ -!/lib/ -!/lib/**/*.js -!/lib/**/*.d.ts -dist -/tsconfig.json -/.github/ -/.vscode/ -/.idea/ -/.projenrc.js -tsconfig.tsbuildinfo -/.eslintrc.json -/tsconfig.esm.json -/.gitattributes diff --git a/packages/lib-dynamodb/.prettierignore b/packages/lib-dynamodb/.prettierignore deleted file mode 100644 index 46704c7..0000000 --- a/packages/lib-dynamodb/.prettierignore +++ /dev/null @@ -1 +0,0 @@ -# ~~ Generated by projen. To modify, edit .projenrc.js and run "npx projen". diff --git a/packages/lib-dynamodb/.prettierrc.json b/packages/lib-dynamodb/.prettierrc.json deleted file mode 100644 index 84c85a3..0000000 --- a/packages/lib-dynamodb/.prettierrc.json +++ /dev/null @@ -1,3 +0,0 @@ -{ - "overrides": [] -} diff --git a/packages/lib-dynamodb/.projen/deps.json b/packages/lib-dynamodb/.projen/deps.json deleted file mode 100644 index 9ce7ed5..0000000 --- a/packages/lib-dynamodb/.projen/deps.json +++ /dev/null @@ -1,91 +0,0 @@ -{ - "dependencies": [ - { - "name": "@types/node", - "version": "^18", - "type": "build" - }, - { - "name": "@typescript-eslint/eslint-plugin", - "version": "^6", - "type": "build" - }, - { - "name": "@typescript-eslint/parser", - "version": "^6", - "type": "build" - }, - { - "name": "aws-sdk-client-mock", - "type": "build" - }, - { - "name": "aws-sdk-client-mock-jest", - "type": "build" - }, - { - "name": "constructs", - "version": "^10.0.0", - "type": "build" - }, - { - "name": "eslint-config-prettier", - "type": "build" - }, - { - "name": "eslint-import-resolver-typescript", - "type": "build" - }, - { - "name": "eslint-plugin-import", - "type": "build" - }, - { - "name": "eslint-plugin-prettier", - "type": "build" - }, - { - "name": "eslint", - "version": "^8", - "type": "build" - }, - { - "name": "prettier", - "type": "build" - }, - { - "name": "projen", - "version": "^0.79.6", - "type": "build" - }, - { - "name": "typescript", - "type": "build" - }, - { - "name": "@effect-aws/client-dynamodb", - "type": "peer" - }, - { - "name": "effect", - "version": ">=2.3.1 <2.5.0", - "type": "peer" - }, - { - "name": "@aws-sdk/client-dynamodb", - "version": "^3", - "type": "runtime" - }, - { - "name": "@aws-sdk/lib-dynamodb", - "version": "^3", - "type": "runtime" - }, - { - "name": "@aws-sdk/types", - "version": "^3", - "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 c38792b..0000000 --- a/packages/lib-dynamodb/.projen/files.json +++ /dev/null @@ -1,20 +0,0 @@ -{ - "files": [ - ".eslintrc.json", - ".gitattributes", - ".gitignore", - ".npmignore", - ".prettierignore", - ".prettierrc.json", - ".projen/deps.json", - ".projen/files.json", - ".projen/tasks.json", - "docgen.json", - "LICENSE", - "project.json", - "tsconfig.dev.json", - "tsconfig.esm.json", - "tsconfig.json" - ], - "//": "~~ 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 6ecb00a..0000000 --- a/packages/lib-dynamodb/.projen/tasks.json +++ /dev/null @@ -1,113 +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.json ./tsconfig.esm.json" - } - ] - }, - "default": { - "name": "default", - "description": "Synthesize project files" - }, - "eslint": { - "name": "eslint", - "description": "Runs eslint against the codebase", - "steps": [ - { - "exec": "eslint --ext .ts,.tsx --fix --no-error-on-unmatched-pattern $@ src test build-tools", - "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" - }, - "post-compile": { - "name": "post-compile", - "description": "Runs after successful compilation" - }, - "pre-compile": { - "name": "pre-compile", - "description": "Prepare the project for compilation" - }, - "test": { - "name": "test", - "description": "Run tests", - "steps": [ - { - "exec": "vitest run --globals --reporter verbose", - "receiveArgs": true - }, - { - "spawn": "eslint" - } - ] - }, - "test:watch": { - "name": "test:watch", - "description": "Run tests in watch mode", - "steps": [ - { - "exec": "vitest --globals --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 49b5b31..0000000 --- a/packages/lib-dynamodb/CHANGELOG.md +++ /dev/null @@ -1,31 +0,0 @@ -# @effect-aws/lib-dynamodb - -## 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 7afce46..0000000 --- a/packages/lib-dynamodb/LICENSE +++ /dev/null @@ -1,19 +0,0 @@ -Copyright (c) 2024 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 b3fa7dd..0000000 --- a/packages/lib-dynamodb/README.md +++ /dev/null @@ -1 +0,0 @@ -# replace this \ No newline at end of file diff --git a/packages/lib-dynamodb/docgen.json b/packages/lib-dynamodb/docgen.json deleted file mode 100644 index b359fc7..0000000 --- a/packages/lib-dynamodb/docgen.json +++ /dev/null @@ -1,8 +0,0 @@ -{ - "$schema": "../../node_modules/@effect/docgen/schema.json", - "exclude": [ - "src/index.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 0371f38..0000000 --- a/packages/lib-dynamodb/package.json +++ /dev/null @@ -1,59 +0,0 @@ -{ - "name": "@effect-aws/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": { - "@effect-aws/client-dynamodb": "1.1.2", - "@types/node": "^18", - "@typescript-eslint/eslint-plugin": "^6", - "@typescript-eslint/parser": "^6", - "aws-sdk-client-mock": "^3.0.0", - "aws-sdk-client-mock-jest": "^3.0.0", - "constructs": "^10.0.0", - "effect": "2.3.1", - "eslint": "^8", - "eslint-config-prettier": "^9.0.0", - "eslint-import-resolver-typescript": "^3.6.1", - "eslint-plugin-import": "^2.28.1", - "eslint-plugin-prettier": "^5.0.0", - "prettier": "^3.0.3", - "projen": "^0.79.6", - "typescript": "^5.2.2" - }, - "peerDependencies": { - "@effect-aws/client-dynamodb": "^1.0.0", - "effect": ">=2.3.1 <2.5.0" - }, - "dependencies": { - "@aws-sdk/client-dynamodb": "^3", - "@aws-sdk/lib-dynamodb": "^3", - "@aws-sdk/types": "^3" - }, - "main": "lib/index.js", - "license": "MIT", - "homepage": "https://floydspace.github.io/effect-aws", - "publishConfig": { - "access": "public" - }, - "version": "1.1.1", - "types": "lib/index.d.ts", - "module": "lib/esm/index.js", - "sideEffects": [], - "//": "~~ Generated by projen. To modify, edit .projenrc.js and run \"npx projen\"." -} diff --git a/packages/lib-dynamodb/project.json b/packages/lib-dynamodb/project.json deleted file mode 100644 index 75d3cd9..0000000 --- a/packages/lib-dynamodb/project.json +++ /dev/null @@ -1,80 +0,0 @@ -{ - "name": "@effect-aws/lib-dynamodb", - "root": "packages/lib-dynamodb", - "targets": { - "default": { - "executor": "nx:run-commands", - "options": { - "command": "pnpm exec projen default", - "cwd": "packages/lib-dynamodb" - } - }, - "pre-compile": { - "executor": "nx:run-commands", - "options": { - "command": "pnpm exec projen pre-compile", - "cwd": "packages/lib-dynamodb" - } - }, - "compile": { - "executor": "nx:run-commands", - "options": { - "command": "pnpm exec projen compile", - "cwd": "packages/lib-dynamodb" - } - }, - "post-compile": { - "executor": "nx:run-commands", - "options": { - "command": "pnpm exec projen post-compile", - "cwd": "packages/lib-dynamodb" - } - }, - "test": { - "executor": "nx:run-commands", - "options": { - "command": "pnpm exec projen test", - "cwd": "packages/lib-dynamodb" - } - }, - "package": { - "executor": "nx:run-commands", - "options": { - "command": "pnpm exec projen package", - "cwd": "packages/lib-dynamodb" - } - }, - "build": { - "executor": "nx:run-commands", - "options": { - "command": "pnpm exec projen build", - "cwd": "packages/lib-dynamodb" - } - }, - "watch": { - "executor": "nx:run-commands", - "options": { - "command": "pnpm exec projen watch", - "cwd": "packages/lib-dynamodb" - } - }, - "eslint": { - "executor": "nx:run-commands", - "options": { - "command": "pnpm exec projen eslint", - "cwd": "packages/lib-dynamodb" - } - }, - "test:watch": { - "executor": "nx:run-commands", - "options": { - "command": "pnpm exec projen test:watch", - "cwd": "packages/lib-dynamodb" - } - } - }, - "implicitDependencies": [ - "@effect-aws/client-dynamodb" - ], - "//": "~~ Generated by projen. To modify, edit .projenrc.js and run \"npx projen\"." -} diff --git a/packages/lib-dynamodb/src/DynamoDBDocumentClientInstance.ts b/packages/lib-dynamodb/src/DynamoDBDocumentClientInstance.ts deleted file mode 100644 index b75e27f..0000000 --- a/packages/lib-dynamodb/src/DynamoDBDocumentClientInstance.ts +++ /dev/null @@ -1,51 +0,0 @@ -/** - * @since 1.0.0 - */ -import { DynamoDBDocumentClient } from "@aws-sdk/lib-dynamodb"; -import { - DefaultDynamoDBClientInstanceLayer, - DynamoDBClientInstance, -} from "@effect-aws/client-dynamodb"; -import { Context, Effect, Layer } from "effect"; -import { - DefaultDynamoDBDocumentClientConfigLayer, - DynamoDBDocumentClientInstanceConfig, -} from "./DynamoDBDocumentClientInstanceConfig"; - -/** - * @since 1.0.0 - * @category tags - */ -export class DynamoDBDocumentClientInstance extends Context.Tag( - "@effect-aws/lib-dynamodb/DynamoDBDocumentClientInstance", -)() {} - -/** - * @since 1.0.0 - * @category constructors - */ -export const makeDynamoDBDocumentClientInstance = Effect.all([ - DynamoDBClientInstance, - DynamoDBDocumentClientInstanceConfig, -]).pipe( - Effect.map(([client, config]) => DynamoDBDocumentClient.from(client, config)), -); - -/** - * @since 1.0.0 - * @category layers - */ -export const DynamoDBDocumentClientInstanceLayer = Layer.effect( - DynamoDBDocumentClientInstance, - makeDynamoDBDocumentClientInstance, -).pipe(Layer.provide(DefaultDynamoDBClientInstanceLayer)); - -/** - * @since 1.0.0 - * @category layers - */ -export const DefaultDynamoDBDocumentClientInstanceLayer = - DynamoDBDocumentClientInstanceLayer.pipe( - Layer.provide(DefaultDynamoDBDocumentClientConfigLayer), - Layer.provide(DefaultDynamoDBClientInstanceLayer), - ); diff --git a/packages/lib-dynamodb/src/DynamoDBDocumentClientInstanceConfig.ts b/packages/lib-dynamodb/src/DynamoDBDocumentClientInstanceConfig.ts deleted file mode 100644 index 6e5cfd3..0000000 --- a/packages/lib-dynamodb/src/DynamoDBDocumentClientInstanceConfig.ts +++ /dev/null @@ -1,29 +0,0 @@ -/** - * @since 1.0.0 - */ -import type { TranslateConfig } from "@aws-sdk/lib-dynamodb"; -import { Context, Effect, Layer } from "effect"; - -/** - * @since 1.0.0 - * @category tags - */ -export class DynamoDBDocumentClientInstanceConfig extends Context.Tag( - "@effect-aws/lib-dynamodb/DynamoDBDocumentClientInstanceConfig", -)() {} - -/** - * @since 1.0.0 - * @category constructors - */ -export const makeDefaultDynamoDBDocumentClientInstanceConfig: Effect.Effect = - Effect.succeed({}); - -/** - * @since 1.0.0 - * @category layers - */ -export const DefaultDynamoDBDocumentClientConfigLayer = Layer.effect( - DynamoDBDocumentClientInstanceConfig, - makeDefaultDynamoDBDocumentClientInstanceConfig, -); diff --git a/packages/lib-dynamodb/src/DynamoDBDocumentService.ts b/packages/lib-dynamodb/src/DynamoDBDocumentService.ts deleted file mode 100644 index 19ba343..0000000 --- a/packages/lib-dynamodb/src/DynamoDBDocumentService.ts +++ /dev/null @@ -1,393 +0,0 @@ -/** - * @since 1.0.0 - */ -import { DynamoDBServiceException } from "@aws-sdk/client-dynamodb"; -import { - BatchExecuteStatementCommand, - BatchExecuteStatementCommandInput, - BatchExecuteStatementCommandOutput, - BatchGetCommand, - BatchGetCommandInput, - BatchGetCommandOutput, - BatchWriteCommand, - BatchWriteCommandInput, - BatchWriteCommandOutput, - DeleteCommand, - DeleteCommandInput, - DeleteCommandOutput, - ExecuteStatementCommand, - ExecuteStatementCommandInput, - ExecuteStatementCommandOutput, - ExecuteTransactionCommand, - ExecuteTransactionCommandInput, - ExecuteTransactionCommandOutput, - GetCommand, - GetCommandInput, - GetCommandOutput, - PutCommand, - PutCommandInput, - PutCommandOutput, - QueryCommand, - QueryCommandInput, - QueryCommandOutput, - ScanCommand, - ScanCommandInput, - ScanCommandOutput, - TransactGetCommand, - TransactGetCommandInput, - TransactGetCommandOutput, - TransactWriteCommand, - TransactWriteCommandInput, - TransactWriteCommandOutput, - UpdateCommand, - UpdateCommandInput, - UpdateCommandOutput, -} from "@aws-sdk/lib-dynamodb"; -import { HttpHandlerOptions as __HttpHandlerOptions } from "@aws-sdk/types"; -import { - ConditionalCheckFailedError, - DuplicateItemError, - IdempotentParameterMismatchError, - InternalServerError, - InvalidEndpointError, - ItemCollectionSizeLimitExceededError, - ProvisionedThroughputExceededError, - RequestLimitExceededError, - ResourceNotFoundError, - SdkError, - TaggedException, - TransactionCanceledError, - TransactionConflictError, - TransactionInProgressError, -} from "@effect-aws/client-dynamodb"; -import { Context, Data, Effect, Layer, ReadonlyRecord } from "effect"; -import { - DynamoDBDocumentClientInstance, - DynamoDBDocumentClientInstanceLayer, -} from "./DynamoDBDocumentClientInstance"; -import { DefaultDynamoDBDocumentClientConfigLayer } from "./DynamoDBDocumentClientInstanceConfig"; - -const commands = { - BatchExecuteStatementCommand, - BatchGetCommand, - BatchWriteCommand, - DeleteCommand, - ExecuteStatementCommand, - ExecuteTransactionCommand, - GetCommand, - PutCommand, - QueryCommand, - ScanCommand, - TransactGetCommand, - TransactWriteCommand, - UpdateCommand, -}; - -/** - * @since 1.0.0 - * @category models - */ -export interface DynamoDBDocumentService { - readonly _: unique symbol; - - /** - * @see {@link BatchExecuteStatementCommand} - */ - batchExecuteStatement( - args: BatchExecuteStatementCommandInput, - options?: __HttpHandlerOptions, - ): Effect.Effect< - BatchExecuteStatementCommandOutput, - SdkError | InternalServerError | RequestLimitExceededError - >; - - /** - * @see {@link BatchGetCommand} - */ - batchGet( - args: BatchGetCommandInput, - options?: __HttpHandlerOptions, - ): Effect.Effect< - BatchGetCommandOutput, - | SdkError - | InternalServerError - | InvalidEndpointError - | ProvisionedThroughputExceededError - | RequestLimitExceededError - | ResourceNotFoundError - >; - - /** - * @see {@link BatchWriteCommand} - */ - batchWrite( - args: BatchWriteCommandInput, - options?: __HttpHandlerOptions, - ): Effect.Effect< - BatchWriteCommandOutput, - | SdkError - | InternalServerError - | InvalidEndpointError - | ItemCollectionSizeLimitExceededError - | ProvisionedThroughputExceededError - | RequestLimitExceededError - | ResourceNotFoundError - >; - - /** - * @see {@link DeleteCommand} - */ - delete( - args: DeleteCommandInput, - options?: __HttpHandlerOptions, - ): Effect.Effect< - DeleteCommandOutput, - | SdkError - | ConditionalCheckFailedError - | InternalServerError - | InvalidEndpointError - | ItemCollectionSizeLimitExceededError - | ProvisionedThroughputExceededError - | RequestLimitExceededError - | ResourceNotFoundError - | TransactionConflictError - >; - - /** - * @see {@link ExecuteStatementCommand} - */ - executeStatement( - args: ExecuteStatementCommandInput, - options?: __HttpHandlerOptions, - ): Effect.Effect< - ExecuteStatementCommandOutput, - | SdkError - | ConditionalCheckFailedError - | DuplicateItemError - | InternalServerError - | ItemCollectionSizeLimitExceededError - | ProvisionedThroughputExceededError - | RequestLimitExceededError - | ResourceNotFoundError - | TransactionConflictError - >; - - /** - * @see {@link ExecuteTransactionCommand} - */ - executeTransaction( - args: ExecuteTransactionCommandInput, - options?: __HttpHandlerOptions, - ): Effect.Effect< - ExecuteTransactionCommandOutput, - | SdkError - | IdempotentParameterMismatchError - | InternalServerError - | ProvisionedThroughputExceededError - | RequestLimitExceededError - | ResourceNotFoundError - | TransactionCanceledError - | TransactionInProgressError - >; - - /** - * @see {@link GetCommand} - */ - get( - args: GetCommandInput, - options?: __HttpHandlerOptions, - ): Effect.Effect< - GetCommandOutput, - | SdkError - | InternalServerError - | InvalidEndpointError - | ProvisionedThroughputExceededError - | RequestLimitExceededError - | ResourceNotFoundError - >; - - /** - * @see {@link PutCommand} - */ - put( - args: PutCommandInput, - options?: __HttpHandlerOptions, - ): Effect.Effect< - PutCommandOutput, - | SdkError - | ConditionalCheckFailedError - | InternalServerError - | InvalidEndpointError - | ItemCollectionSizeLimitExceededError - | ProvisionedThroughputExceededError - | RequestLimitExceededError - | ResourceNotFoundError - | TransactionConflictError - >; - - /** - * @see {@link QueryCommand} - */ - query( - args: QueryCommandInput, - options?: __HttpHandlerOptions, - ): Effect.Effect< - QueryCommandOutput, - | SdkError - | InternalServerError - | InvalidEndpointError - | ProvisionedThroughputExceededError - | RequestLimitExceededError - | ResourceNotFoundError - >; - - /** - * @see {@link ScanCommand} - */ - scan( - args: ScanCommandInput, - options?: __HttpHandlerOptions, - ): Effect.Effect< - ScanCommandOutput, - | SdkError - | InternalServerError - | InvalidEndpointError - | ProvisionedThroughputExceededError - | RequestLimitExceededError - | ResourceNotFoundError - >; - - /** - * @see {@link TransactGetCommand} - */ - transactGet( - args: TransactGetCommandInput, - options?: __HttpHandlerOptions, - ): Effect.Effect< - TransactGetCommandOutput, - | SdkError - | InternalServerError - | InvalidEndpointError - | ProvisionedThroughputExceededError - | RequestLimitExceededError - | ResourceNotFoundError - | TransactionCanceledError - >; - - /** - * @see {@link TransactWriteCommand} - */ - transactWrite( - args: TransactWriteCommandInput, - options?: __HttpHandlerOptions, - ): Effect.Effect< - TransactWriteCommandOutput, - | SdkError - | IdempotentParameterMismatchError - | InternalServerError - | InvalidEndpointError - | ProvisionedThroughputExceededError - | RequestLimitExceededError - | ResourceNotFoundError - | TransactionCanceledError - | TransactionInProgressError - >; - - /** - * @see {@link UpdateCommand} - */ - update( - args: UpdateCommandInput, - options?: __HttpHandlerOptions, - ): Effect.Effect< - UpdateCommandOutput, - | SdkError - | ConditionalCheckFailedError - | InternalServerError - | InvalidEndpointError - | ItemCollectionSizeLimitExceededError - | ProvisionedThroughputExceededError - | RequestLimitExceededError - | ResourceNotFoundError - | TransactionConflictError - >; -} - -/** - * @since 1.0.0 - * @category tags - */ -export const DynamoDBDocumentService = - Context.GenericTag( - "@effect-aws/lib-dynamodb/DynamoDBDocumentService", - ); - -/** - * @since 1.0.0 - * @category constructors - */ -export const makeDynamoDBDocumentService = Effect.gen(function* (_) { - const client = yield* _(DynamoDBDocumentClientInstance); - - return ReadonlyRecord.toEntries(commands).reduce((acc, [command]) => { - const CommandCtor = commands[command] as any; - const methodImpl = (args: any, options: any) => - Effect.tryPromise({ - try: () => client.send(new CommandCtor(args), options ?? {}), - catch: (e) => { - if (e instanceof DynamoDBServiceException) { - const ServiceException = Data.tagged< - TaggedException - >(e.name); - - return ServiceException({ - ...e, - message: e.message, - stack: e.stack, - }); - } - if (e instanceof Error) { - return SdkError({ - ...e, - name: "SdkError", - message: e.message, - stack: e.stack, - }); - } - throw e; - }, - }); - const methodName = (command[0].toLowerCase() + command.slice(1)).replace( - /Command$/, - "", - ); - return { ...acc, [methodName]: methodImpl }; - }, {}) as DynamoDBDocumentService; -}); - -/** - * @since 1.0.0 - * @category layers - */ -export const BaseDynamoDBDocumentServiceLayer = Layer.effect( - DynamoDBDocumentService, - makeDynamoDBDocumentService, -); - -/** - * @since 1.0.0 - * @category layers - */ -export const DynamoDBDocumentServiceLayer = - BaseDynamoDBDocumentServiceLayer.pipe( - Layer.provide(DynamoDBDocumentClientInstanceLayer), - ); - -/** - * @since 1.0.0 - * @category layers - */ -export const DefaultDynamoDBDocumentServiceLayer = - DynamoDBDocumentServiceLayer.pipe( - Layer.provide(DefaultDynamoDBDocumentClientConfigLayer), - ); diff --git a/packages/lib-dynamodb/src/index.ts b/packages/lib-dynamodb/src/index.ts deleted file mode 100644 index 3398163..0000000 --- a/packages/lib-dynamodb/src/index.ts +++ /dev/null @@ -1,3 +0,0 @@ -export * from "./DynamoDBDocumentClientInstance"; -export * from "./DynamoDBDocumentClientInstanceConfig"; -export * from "./DynamoDBDocumentService"; diff --git a/packages/lib-dynamodb/test/DynamoDBDocument.test.ts b/packages/lib-dynamodb/test/DynamoDBDocument.test.ts deleted file mode 100644 index 3c69fb5..0000000 --- a/packages/lib-dynamodb/test/DynamoDBDocument.test.ts +++ /dev/null @@ -1,181 +0,0 @@ -import { DynamoDBClient } from "@aws-sdk/client-dynamodb"; -import { - DynamoDBDocumentClient, - PutCommand, - PutCommandInput, -} from "@aws-sdk/lib-dynamodb"; -import { - DefaultDynamoDBClientConfigLayer, - DynamoDBClientInstanceConfig, - SdkError, -} from "@effect-aws/client-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 * as Layer from "effect/Layer"; -import { - BaseDynamoDBDocumentServiceLayer, - DefaultDynamoDBDocumentServiceLayer, - DynamoDBDocumentClientInstance, - DynamoDBDocumentClientInstanceConfig, - DynamoDBDocumentService, - DynamoDBDocumentServiceLayer, -} from "../src"; - -import "aws-sdk-client-mock-jest"; - -const dynamodbMock = mockClient(DynamoDBDocumentClient); -const { put } = Effect.serviceFunctions(DynamoDBDocumentService); - -describe("DynamoDBDocumentClientImpl", () => { - it("default", async () => { - dynamodbMock.reset().on(PutCommand).resolves({}); - - const args: PutCommandInput = { - TableName: "test", - Item: { testAttr: "test" }, - }; - - const program = put(args); - - const result = await pipe( - program, - Effect.provide(DefaultDynamoDBDocumentServiceLayer), - Effect.runPromiseExit, - ); - - expect(result).toEqual(Exit.succeed({})); - expect(dynamodbMock).toHaveReceivedCommandTimes(PutCommand, 1); - expect(dynamodbMock).toHaveReceivedCommandWith(PutCommand, args); - }); - - it("configurable", async () => { - dynamodbMock.reset().on(PutCommand).resolves({}); - - const args: PutCommandInput = { - TableName: "test", - Item: { testAttr: "test" }, - }; - - const program = put(args); - - const DynamoDBDocumentClientConfigLayer = Layer.succeed( - DynamoDBDocumentClientInstanceConfig, - { marshallOptions: { removeUndefinedValues: true } }, - ); - const CustomDynamoDBDocumentServiceLayer = - DynamoDBDocumentServiceLayer.pipe( - Layer.provide(DynamoDBDocumentClientConfigLayer), - ); - - const result = await pipe( - program, - Effect.provide(CustomDynamoDBDocumentServiceLayer), - Effect.runPromiseExit, - ); - - expect(result).toEqual(Exit.succeed({})); - expect(dynamodbMock).toHaveReceivedCommandTimes(PutCommand, 1); - expect(dynamodbMock).toHaveReceivedCommandWith(PutCommand, args); - }); - - it("base", async () => { - dynamodbMock.reset().on(PutCommand).resolves({}); - - const args: PutCommandInput = { - TableName: "test", - Item: { testAttr: "test" }, - }; - - const program = put(args); - - const DynamoDBDocumentClientInstanceLayer = Layer.succeed( - DynamoDBDocumentClientInstance, - DynamoDBDocumentClient.from( - new DynamoDBClient({ region: "eu-central-1" }), - { marshallOptions: { removeUndefinedValues: true } }, - ), - ); - const CustomDynamoDBDocumentServiceLayer = - BaseDynamoDBDocumentServiceLayer.pipe( - Layer.provide(DynamoDBDocumentClientInstanceLayer), - ); - - const result = await pipe( - program, - Effect.provide(CustomDynamoDBDocumentServiceLayer), - Effect.runPromiseExit, - ); - - expect(result).toEqual(Exit.succeed({})); - expect(dynamodbMock).toHaveReceivedCommandTimes(PutCommand, 1); - expect(dynamodbMock).toHaveReceivedCommandWith(PutCommand, args); - }); - - it("extended", async () => { - dynamodbMock.reset().on(PutCommand).resolves({}); - - const args: PutCommandInput = { - TableName: "test", - Item: { testAttr: "test" }, - }; - - const program = put(args); - - const DynamoDBDocumentClientInstanceLayer = Layer.effect( - DynamoDBDocumentClientInstance, - Effect.map(DynamoDBClientInstanceConfig, (config) => - DynamoDBDocumentClient.from( - new DynamoDBClient({ ...config, region: "eu-central-1" }), - { marshallOptions: { removeUndefinedValues: true } }, - ), - ), - ); - const CustomDynamoDBDocumentServiceLayer = - BaseDynamoDBDocumentServiceLayer.pipe( - Layer.provide(DynamoDBDocumentClientInstanceLayer), - Layer.provide(DefaultDynamoDBClientConfigLayer), - ); - - const result = await pipe( - program, - Effect.provide(CustomDynamoDBDocumentServiceLayer), - Effect.runPromiseExit, - ); - - expect(result).toEqual(Exit.succeed({})); - expect(dynamodbMock).toHaveReceivedCommandTimes(PutCommand, 1); - expect(dynamodbMock).toHaveReceivedCommandWith(PutCommand, args); - }); - - it("fail", async () => { - dynamodbMock.reset().on(PutCommand).rejects(new Error("test")); - - const args: PutCommandInput = { - TableName: "test", - Item: { testAttr: "test" }, - }; - - const program = put(args, { requestTimeout: 1000 }); - - const result = await pipe( - program, - Effect.provide(DefaultDynamoDBDocumentServiceLayer), - Effect.runPromiseExit, - ); - - expect(result).toEqual( - Exit.fail( - SdkError({ - ...new Error("test"), - name: "SdkError", - message: "test", - stack: expect.any(String), - }), - ), - ); - expect(dynamodbMock).toHaveReceivedCommandTimes(PutCommand, 1); - expect(dynamodbMock).toHaveReceivedCommandWith(PutCommand, args); - }); -}); diff --git a/packages/lib-dynamodb/tsconfig.dev.json b/packages/lib-dynamodb/tsconfig.dev.json deleted file mode 100644 index 278f027..0000000 --- a/packages/lib-dynamodb/tsconfig.dev.json +++ /dev/null @@ -1,37 +0,0 @@ -// ~~ Generated by projen. To modify, edit .projenrc.js and run "npx projen". -{ - "compilerOptions": { - "alwaysStrict": true, - "declaration": true, - "esModuleInterop": true, - "experimentalDecorators": true, - "inlineSourceMap": true, - "inlineSources": true, - "lib": [ - "es2019", - "dom" - ], - "module": "CommonJS", - "noEmitOnError": false, - "noFallthroughCasesInSwitch": true, - "noImplicitAny": true, - "noImplicitReturns": true, - "noImplicitThis": true, - "noUnusedLocals": true, - "noUnusedParameters": true, - "resolveJsonModule": true, - "strict": true, - "strictNullChecks": true, - "strictPropertyInitialization": true, - "stripInternal": true, - "target": "ES2019", - "moduleResolution": "node" - }, - "include": [ - "src/**/*.ts", - "test/**/*.ts" - ], - "exclude": [ - "node_modules" - ] -} diff --git a/packages/lib-dynamodb/tsconfig.esm.json b/packages/lib-dynamodb/tsconfig.esm.json deleted file mode 100644 index 1b04668..0000000 --- a/packages/lib-dynamodb/tsconfig.esm.json +++ /dev/null @@ -1,10 +0,0 @@ -{ - "extends": "./tsconfig.json", - "compilerOptions": { - "outDir": "./lib/esm", - "module": "es6", - "resolveJsonModule": false, - "declaration": false - }, - "//": "~~ Generated by projen. To modify, edit .projenrc.js and run \"npx projen\"." -} diff --git a/packages/lib-dynamodb/tsconfig.json b/packages/lib-dynamodb/tsconfig.json deleted file mode 100644 index 576047c..0000000 --- a/packages/lib-dynamodb/tsconfig.json +++ /dev/null @@ -1,36 +0,0 @@ -// ~~ Generated by projen. To modify, edit .projenrc.js and run "npx projen". -{ - "compilerOptions": { - "rootDir": "src", - "outDir": "lib", - "alwaysStrict": true, - "declaration": true, - "esModuleInterop": true, - "experimentalDecorators": true, - "inlineSourceMap": true, - "inlineSources": true, - "lib": [ - "es2019", - "dom" - ], - "module": "CommonJS", - "noEmitOnError": false, - "noFallthroughCasesInSwitch": true, - "noImplicitAny": true, - "noImplicitReturns": true, - "noImplicitThis": true, - "noUnusedLocals": true, - "noUnusedParameters": true, - "resolveJsonModule": true, - "strict": true, - "strictNullChecks": true, - "strictPropertyInitialization": true, - "stripInternal": true, - "target": "ES2019", - "moduleResolution": "node" - }, - "include": [ - "src/**/*.ts" - ], - "exclude": [] -} diff --git a/packages/client-api-gateway-management-api/.eslintrc.json b/packages/polly-request-presigner/.eslintrc.json similarity index 100% rename from packages/client-api-gateway-management-api/.eslintrc.json rename to packages/polly-request-presigner/.eslintrc.json diff --git a/packages/client-api-gateway-management-api/.gitattributes b/packages/polly-request-presigner/.gitattributes similarity index 100% rename from packages/client-api-gateway-management-api/.gitattributes rename to packages/polly-request-presigner/.gitattributes diff --git a/packages/client-api-gateway-management-api/.gitignore b/packages/polly-request-presigner/.gitignore similarity index 100% rename from packages/client-api-gateway-management-api/.gitignore rename to packages/polly-request-presigner/.gitignore diff --git a/packages/client-api-gateway-management-api/.npmignore b/packages/polly-request-presigner/.npmignore similarity index 100% rename from packages/client-api-gateway-management-api/.npmignore rename to packages/polly-request-presigner/.npmignore diff --git a/packages/client-api-gateway-management-api/.prettierignore b/packages/polly-request-presigner/.prettierignore similarity index 100% rename from packages/client-api-gateway-management-api/.prettierignore rename to packages/polly-request-presigner/.prettierignore diff --git a/packages/client-api-gateway-management-api/.prettierrc.json b/packages/polly-request-presigner/.prettierrc.json similarity index 100% rename from packages/client-api-gateway-management-api/.prettierrc.json rename to packages/polly-request-presigner/.prettierrc.json diff --git a/packages/client-iam/.projen/deps.json b/packages/polly-request-presigner/.projen/deps.json similarity index 81% rename from packages/client-iam/.projen/deps.json rename to packages/polly-request-presigner/.projen/deps.json index d526048..b40ad6a 100644 --- a/packages/client-iam/.projen/deps.json +++ b/packages/polly-request-presigner/.projen/deps.json @@ -1,5 +1,9 @@ { "dependencies": [ + { + "name": "@types/aws-lambda", + "type": "build" + }, { "name": "@types/node", "version": "^18", @@ -15,14 +19,6 @@ "version": "^6", "type": "build" }, - { - "name": "aws-sdk-client-mock", - "type": "build" - }, - { - "name": "aws-sdk-client-mock-jest", - "type": "build" - }, { "name": "constructs", "version": "^10.0.0", @@ -63,19 +59,17 @@ "type": "build" }, { - "name": "effect", - "version": ">=2.3.1 <2.5.0", + "name": "@aws-sdk/client-polly", "type": "peer" }, { - "name": "@aws-sdk/client-iam", - "version": "^3", - "type": "runtime" + "name": "@aws-sdk/polly-request-presigner", + "type": "peer" }, { - "name": "@aws-sdk/types", - "version": "^3", - "type": "runtime" + "name": "effect", + "version": ">=2.3.1 <2.5.0", + "type": "peer" } ], "//": "~~ Generated by projen. To modify, edit .projenrc.js and run \"npx projen\"." diff --git a/packages/client-api-gateway-management-api/.projen/files.json b/packages/polly-request-presigner/.projen/files.json similarity index 100% rename from packages/client-api-gateway-management-api/.projen/files.json rename to packages/polly-request-presigner/.projen/files.json diff --git a/packages/client-api-gateway-management-api/.projen/tasks.json b/packages/polly-request-presigner/.projen/tasks.json similarity index 100% rename from packages/client-api-gateway-management-api/.projen/tasks.json rename to packages/polly-request-presigner/.projen/tasks.json diff --git a/packages/client-api-gateway-management-api/LICENSE b/packages/polly-request-presigner/LICENSE similarity index 100% rename from packages/client-api-gateway-management-api/LICENSE rename to packages/polly-request-presigner/LICENSE diff --git a/packages/client-api-gateway-management-api/README.md b/packages/polly-request-presigner/README.md similarity index 100% rename from packages/client-api-gateway-management-api/README.md rename to packages/polly-request-presigner/README.md diff --git a/packages/client-api-gateway-management-api/docgen.json b/packages/polly-request-presigner/docgen.json similarity index 100% rename from packages/client-api-gateway-management-api/docgen.json rename to packages/polly-request-presigner/docgen.json diff --git a/packages/client-elasticache/package.json b/packages/polly-request-presigner/package.json similarity index 80% rename from packages/client-elasticache/package.json rename to packages/polly-request-presigner/package.json index 1634488..406a0d1 100644 --- a/packages/client-elasticache/package.json +++ b/packages/polly-request-presigner/package.json @@ -1,5 +1,5 @@ { - "name": "@effect-aws/client-elasticache", + "name": "@effect-aws/polly-request-presigner", "scripts": { "build": "npx projen build", "compile": "npx projen compile", @@ -19,11 +19,12 @@ "organization": false }, "devDependencies": { + "@aws-sdk/client-polly": "3.535.0", + "@aws-sdk/polly-request-presigner": "3.535.0", + "@types/aws-lambda": "^8.10.125", "@types/node": "^18", "@typescript-eslint/eslint-plugin": "^6", "@typescript-eslint/parser": "^6", - "aws-sdk-client-mock": "^3.0.0", - "aws-sdk-client-mock-jest": "^3.0.0", "constructs": "^10.0.0", "effect": "2.3.1", "eslint": "^8", @@ -33,22 +34,20 @@ "eslint-plugin-prettier": "^5.0.0", "prettier": "^3.2.4", "projen": "^0.79.6", - "typescript": "^5.2.2" + "typescript": "^5.4.2" }, "peerDependencies": { + "@aws-sdk/client-polly": "^3.535.0", + "@aws-sdk/polly-request-presigner": "^3.535.0", "effect": ">=2.3.1 <2.5.0" }, - "dependencies": { - "@aws-sdk/client-elasticache": "^3", - "@aws-sdk/types": "^3" - }, "main": "lib/index.js", "license": "MIT", "homepage": "https://floydspace.github.io/effect-aws", "publishConfig": { "access": "public" }, - "version": "1.0.0", + "version": "0.0.0", "types": "lib/index.d.ts", "module": "lib/esm/index.js", "sideEffects": [], diff --git a/packages/client-ec2/project.json b/packages/polly-request-presigner/project.json similarity index 71% rename from packages/client-ec2/project.json rename to packages/polly-request-presigner/project.json index 3dfa822..d143d4d 100644 --- a/packages/client-ec2/project.json +++ b/packages/polly-request-presigner/project.json @@ -1,75 +1,75 @@ { - "name": "@effect-aws/client-ec2", - "root": "packages/client-ec2", + "name": "@effect-aws/polly-request-presigner", + "root": "packages/polly-request-presigner", "targets": { "default": { "executor": "nx:run-commands", "options": { "command": "pnpm exec projen default", - "cwd": "packages/client-ec2" + "cwd": "packages/polly-request-presigner" } }, "pre-compile": { "executor": "nx:run-commands", "options": { "command": "pnpm exec projen pre-compile", - "cwd": "packages/client-ec2" + "cwd": "packages/polly-request-presigner" } }, "compile": { "executor": "nx:run-commands", "options": { "command": "pnpm exec projen compile", - "cwd": "packages/client-ec2" + "cwd": "packages/polly-request-presigner" } }, "post-compile": { "executor": "nx:run-commands", "options": { "command": "pnpm exec projen post-compile", - "cwd": "packages/client-ec2" + "cwd": "packages/polly-request-presigner" } }, "test": { "executor": "nx:run-commands", "options": { "command": "pnpm exec projen test", - "cwd": "packages/client-ec2" + "cwd": "packages/polly-request-presigner" } }, "package": { "executor": "nx:run-commands", "options": { "command": "pnpm exec projen package", - "cwd": "packages/client-ec2" + "cwd": "packages/polly-request-presigner" } }, "build": { "executor": "nx:run-commands", "options": { "command": "pnpm exec projen build", - "cwd": "packages/client-ec2" + "cwd": "packages/polly-request-presigner" } }, "watch": { "executor": "nx:run-commands", "options": { "command": "pnpm exec projen watch", - "cwd": "packages/client-ec2" + "cwd": "packages/polly-request-presigner" } }, "eslint": { "executor": "nx:run-commands", "options": { "command": "pnpm exec projen eslint", - "cwd": "packages/client-ec2" + "cwd": "packages/polly-request-presigner" } }, "test:watch": { "executor": "nx:run-commands", "options": { "command": "pnpm exec projen test:watch", - "cwd": "packages/client-ec2" + "cwd": "packages/polly-request-presigner" } } }, diff --git a/packages/polly-request-presigner/src/PresignedPollyService.ts b/packages/polly-request-presigner/src/PresignedPollyService.ts new file mode 100644 index 0000000..bf1c772 --- /dev/null +++ b/packages/polly-request-presigner/src/PresignedPollyService.ts @@ -0,0 +1,92 @@ +import { + SynthesizeSpeechCommand, +} from "@aws-sdk/client-polly"; +import { getSynthesizeSpeechUrl } from "@aws-sdk/polly-request-presigner"; +import { Context, Data, Effect, Layer, ReadonlyRecord } from "effect"; +import { PollyClientInstance, PollyClientInstanceLayer } from "../../../generated/packages/client-polly/src/PollyClientInstance"; +import { DefaultPollyClientConfigLayer } from "../../../generated/packages/client-polly/src/PollyClientInstanceConfig"; +import { type PollyService } from "../../../generated/packages/client-polly/src/PollyService"; + +export type TaggedException = T & { + readonly _tag: T["name"]; + }; +export type PollyRequestPresignerError = TaggedException; +export const PollyRequestPresignerError = Data.tagged("PollyRequestPresignerError"); + +type PresignedCommandOutput = T extends Effect.Effect ? Effect.Effect : never; + +type PresignedPollyService = { + [K in keyof typeof presignableCommands]: PollyService[K] extends (...args: infer Args) => infer R ? (...args: Args) => PresignedCommandOutput : never; +}; + +// According to the java docs, these are all the possible commands that can be presigned +// https://sdk.amazonaws.com/java/api/latest/software/amazon/awssdk/awscore/presigner/PresignRequest.html +const presignableCommands = { + ['synthesizeSpeech']: SynthesizeSpeechCommand, + } as const; + +/** + * @since 1.0.0 + * @category tags + */ +export const PresignedPollyService = Context.GenericTag( + "@effect-aws/client-polly/PollyService", + ); + + /** + * @since 1.0.0 + * @category constructors + */ + export const makePollyRequestPresignerService = Effect.gen(function* (_) { + const client = yield* _(PollyClientInstance); + + return ReadonlyRecord.toEntries(presignableCommands).reduce((acc, [command]) => { + const CommandCtor = presignableCommands[command]; + const methodImpl = (args: any, options: any) => + Effect.tryPromise({ + try: () => getSynthesizeSpeechUrl({ options: options, client: client, params: new CommandCtor(args).input }), + catch: (e) => { + if (e instanceof Error) { + return PollyRequestPresignerError({ + ...e, + name: "PollyRequestPresignerError", + message: e.message, + stack: e.stack, + }); + } + throw e; + }, + }); + const methodName = (command[0].toLowerCase() + command.slice(1)).replace( + /Command$/, + "", + ); + return { ...acc, [methodName]: methodImpl }; + }, {}) as PresignedPollyService; + }); + + /** + * @since 1.0.0 + * @category layers + */ + export const BasePresignedPollyServiceLayer = Layer.effect( + PresignedPollyService, + makePollyRequestPresignerService, + ); + + /** + * @since 1.0.0 + * @category layers + */ + export const PresignedPollyServiceLayer = BasePresignedPollyServiceLayer.pipe( + Layer.provide(PollyClientInstanceLayer), + ); + + /** + * @since 1.0.0 + * @category layers + */ + export const DefaultPresignedPollyServiceLayer = PresignedPollyServiceLayer.pipe( + Layer.provide(DefaultPollyClientConfigLayer), + ); + \ No newline at end of file diff --git a/packages/client-api-gateway-management-api/tsconfig.dev.json b/packages/polly-request-presigner/tsconfig.dev.json similarity index 100% rename from packages/client-api-gateway-management-api/tsconfig.dev.json rename to packages/polly-request-presigner/tsconfig.dev.json diff --git a/packages/client-api-gateway-management-api/tsconfig.esm.json b/packages/polly-request-presigner/tsconfig.esm.json similarity index 100% rename from packages/client-api-gateway-management-api/tsconfig.esm.json rename to packages/polly-request-presigner/tsconfig.esm.json diff --git a/packages/client-api-gateway-management-api/tsconfig.json b/packages/polly-request-presigner/tsconfig.json similarity index 100% rename from packages/client-api-gateway-management-api/tsconfig.json rename to packages/polly-request-presigner/tsconfig.json diff --git a/packages/client-dynamodb/.eslintrc.json b/packages/s3-request-presigner/.eslintrc.json similarity index 100% rename from packages/client-dynamodb/.eslintrc.json rename to packages/s3-request-presigner/.eslintrc.json diff --git a/packages/client-dynamodb/.gitattributes b/packages/s3-request-presigner/.gitattributes similarity index 100% rename from packages/client-dynamodb/.gitattributes rename to packages/s3-request-presigner/.gitattributes diff --git a/packages/client-dynamodb/.gitignore b/packages/s3-request-presigner/.gitignore similarity index 100% rename from packages/client-dynamodb/.gitignore rename to packages/s3-request-presigner/.gitignore diff --git a/packages/client-dynamodb/.npmignore b/packages/s3-request-presigner/.npmignore similarity index 100% rename from packages/client-dynamodb/.npmignore rename to packages/s3-request-presigner/.npmignore diff --git a/packages/client-dynamodb/.prettierignore b/packages/s3-request-presigner/.prettierignore similarity index 100% rename from packages/client-dynamodb/.prettierignore rename to packages/s3-request-presigner/.prettierignore diff --git a/packages/client-dynamodb/.prettierrc.json b/packages/s3-request-presigner/.prettierrc.json similarity index 100% rename from packages/client-dynamodb/.prettierrc.json rename to packages/s3-request-presigner/.prettierrc.json diff --git a/packages/client-sfn/.projen/deps.json b/packages/s3-request-presigner/.projen/deps.json similarity index 81% rename from packages/client-sfn/.projen/deps.json rename to packages/s3-request-presigner/.projen/deps.json index 9946bd7..34448e7 100644 --- a/packages/client-sfn/.projen/deps.json +++ b/packages/s3-request-presigner/.projen/deps.json @@ -1,5 +1,9 @@ { "dependencies": [ + { + "name": "@types/aws-lambda", + "type": "build" + }, { "name": "@types/node", "version": "^18", @@ -15,14 +19,6 @@ "version": "^6", "type": "build" }, - { - "name": "aws-sdk-client-mock", - "type": "build" - }, - { - "name": "aws-sdk-client-mock-jest", - "type": "build" - }, { "name": "constructs", "version": "^10.0.0", @@ -63,19 +59,17 @@ "type": "build" }, { - "name": "effect", - "version": ">=2.3.1 <2.5.0", + "name": "@aws-sdk/client-s3", "type": "peer" }, { - "name": "@aws-sdk/client-sfn", - "version": "^3", - "type": "runtime" + "name": "@aws-sdk/s3-request-presigner", + "type": "peer" }, { - "name": "@aws-sdk/types", - "version": "^3", - "type": "runtime" + "name": "effect", + "version": ">=2.3.1 <2.5.0", + "type": "peer" } ], "//": "~~ Generated by projen. To modify, edit .projenrc.js and run \"npx projen\"." diff --git a/packages/client-dynamodb/.projen/files.json b/packages/s3-request-presigner/.projen/files.json similarity index 100% rename from packages/client-dynamodb/.projen/files.json rename to packages/s3-request-presigner/.projen/files.json diff --git a/packages/client-dynamodb/.projen/tasks.json b/packages/s3-request-presigner/.projen/tasks.json similarity index 100% rename from packages/client-dynamodb/.projen/tasks.json rename to packages/s3-request-presigner/.projen/tasks.json diff --git a/packages/client-dynamodb/LICENSE b/packages/s3-request-presigner/LICENSE similarity index 100% rename from packages/client-dynamodb/LICENSE rename to packages/s3-request-presigner/LICENSE diff --git a/packages/client-dynamodb/README.md b/packages/s3-request-presigner/README.md similarity index 100% rename from packages/client-dynamodb/README.md rename to packages/s3-request-presigner/README.md diff --git a/packages/client-dynamodb/docgen.json b/packages/s3-request-presigner/docgen.json similarity index 100% rename from packages/client-dynamodb/docgen.json rename to packages/s3-request-presigner/docgen.json diff --git a/packages/client-ec2/package.json b/packages/s3-request-presigner/package.json similarity index 81% rename from packages/client-ec2/package.json rename to packages/s3-request-presigner/package.json index 34b99f2..8ce624d 100644 --- a/packages/client-ec2/package.json +++ b/packages/s3-request-presigner/package.json @@ -1,5 +1,5 @@ { - "name": "@effect-aws/client-ec2", + "name": "@effect-aws/s3-request-presigner", "scripts": { "build": "npx projen build", "compile": "npx projen compile", @@ -19,11 +19,12 @@ "organization": false }, "devDependencies": { + "@aws-sdk/client-s3": "3.537.0", + "@aws-sdk/s3-request-presigner": "3.537.0", + "@types/aws-lambda": "^8.10.125", "@types/node": "^18", "@typescript-eslint/eslint-plugin": "^6", "@typescript-eslint/parser": "^6", - "aws-sdk-client-mock": "^3.0.0", - "aws-sdk-client-mock-jest": "^3.0.0", "constructs": "^10.0.0", "effect": "2.3.1", "eslint": "^8", @@ -33,22 +34,20 @@ "eslint-plugin-prettier": "^5.0.0", "prettier": "^3.2.4", "projen": "^0.79.6", - "typescript": "^5.2.2" + "typescript": "^5.4.2" }, "peerDependencies": { + "@aws-sdk/client-s3": "^3.537.0", + "@aws-sdk/s3-request-presigner": "^3.537.0", "effect": ">=2.3.1 <2.5.0" }, - "dependencies": { - "@aws-sdk/client-ec2": "^3", - "@aws-sdk/types": "^3" - }, "main": "lib/index.js", "license": "MIT", "homepage": "https://floydspace.github.io/effect-aws", "publishConfig": { "access": "public" }, - "version": "1.0.0", + "version": "0.0.0", "types": "lib/index.d.ts", "module": "lib/esm/index.js", "sideEffects": [], diff --git a/packages/client-elasticache/project.json b/packages/s3-request-presigner/project.json similarity index 72% rename from packages/client-elasticache/project.json rename to packages/s3-request-presigner/project.json index 293457f..e6607bb 100644 --- a/packages/client-elasticache/project.json +++ b/packages/s3-request-presigner/project.json @@ -1,75 +1,75 @@ { - "name": "@effect-aws/client-elasticache", - "root": "packages/client-elasticache", + "name": "@effect-aws/s3-request-presigner", + "root": "packages/s3-request-presigner", "targets": { "default": { "executor": "nx:run-commands", "options": { "command": "pnpm exec projen default", - "cwd": "packages/client-elasticache" + "cwd": "packages/s3-request-presigner" } }, "pre-compile": { "executor": "nx:run-commands", "options": { "command": "pnpm exec projen pre-compile", - "cwd": "packages/client-elasticache" + "cwd": "packages/s3-request-presigner" } }, "compile": { "executor": "nx:run-commands", "options": { "command": "pnpm exec projen compile", - "cwd": "packages/client-elasticache" + "cwd": "packages/s3-request-presigner" } }, "post-compile": { "executor": "nx:run-commands", "options": { "command": "pnpm exec projen post-compile", - "cwd": "packages/client-elasticache" + "cwd": "packages/s3-request-presigner" } }, "test": { "executor": "nx:run-commands", "options": { "command": "pnpm exec projen test", - "cwd": "packages/client-elasticache" + "cwd": "packages/s3-request-presigner" } }, "package": { "executor": "nx:run-commands", "options": { "command": "pnpm exec projen package", - "cwd": "packages/client-elasticache" + "cwd": "packages/s3-request-presigner" } }, "build": { "executor": "nx:run-commands", "options": { "command": "pnpm exec projen build", - "cwd": "packages/client-elasticache" + "cwd": "packages/s3-request-presigner" } }, "watch": { "executor": "nx:run-commands", "options": { "command": "pnpm exec projen watch", - "cwd": "packages/client-elasticache" + "cwd": "packages/s3-request-presigner" } }, "eslint": { "executor": "nx:run-commands", "options": { "command": "pnpm exec projen eslint", - "cwd": "packages/client-elasticache" + "cwd": "packages/s3-request-presigner" } }, "test:watch": { "executor": "nx:run-commands", "options": { "command": "pnpm exec projen test:watch", - "cwd": "packages/client-elasticache" + "cwd": "packages/s3-request-presigner" } } }, diff --git a/packages/s3-request-presigner/src/PresignedS3Service.ts b/packages/s3-request-presigner/src/PresignedS3Service.ts new file mode 100644 index 0000000..7e4b592 --- /dev/null +++ b/packages/s3-request-presigner/src/PresignedS3Service.ts @@ -0,0 +1,104 @@ +import { + AbortMultipartUploadCommand, + CompleteMultipartUploadCommand, + CreateMultipartUploadCommand, + DeleteObjectCommand, + GetObjectCommand, + PutObjectCommand, + UploadPartCommand +} from "@aws-sdk/client-s3"; +import { getSignedUrl } from "@aws-sdk/s3-request-presigner"; +import { Context, Data, Effect, Layer, ReadonlyRecord } from "effect"; +import { S3ClientInstance, S3ClientInstanceLayer } from "../../../generated/packages/client-s3/src/S3ClientInstance"; +import { DefaultS3ClientConfigLayer } from "../../../generated/packages/client-s3/src/S3ClientInstanceConfig"; +import { type S3Service } from "../../../generated/packages/client-s3/src/S3Service"; + +export type TaggedException = T & { + readonly _tag: T["name"]; + }; +export type S3RequestPresignerError = TaggedException; +export const S3RequestPresignerError = Data.tagged("S3RequestPresignerError"); + +type PresignedCommandOutput = T extends Effect.Effect ? Effect.Effect : never; + +type PresignedS3Service = { + [K in keyof typeof presignableCommands]: S3Service[K] extends (...args: infer Args) => infer R ? (...args: Args) => PresignedCommandOutput : never; +}; + +// According to the java docs, these are all the possible commands that can be presigned +// https://sdk.amazonaws.com/java/api/latest/software/amazon/awssdk/awscore/presigner/PresignRequest.html +const presignableCommands = { + ['abortMultipartUpload']: AbortMultipartUploadCommand, + ['completeMultipartUpload']: CompleteMultipartUploadCommand, + ['createMultipartUpload']: CreateMultipartUploadCommand, + ['deleteObject']: DeleteObjectCommand, + ['getObject']: GetObjectCommand, + ['putObject']: PutObjectCommand, + ['uploadPart']: UploadPartCommand, + } as const; + +/** + * @since 1.0.0 + * @category tags + */ +export const PresignedS3Service = Context.GenericTag( + "@effect-aws/client-s3/S3Service", + ); + + /** + * @since 1.0.0 + * @category constructors + */ + export const makeS3RequestPresignerService = Effect.gen(function* (_) { + const client = yield* _(S3ClientInstance); + + return ReadonlyRecord.toEntries(presignableCommands).reduce((acc, [command]) => { + const CommandCtor = presignableCommands[command] as any; + const methodImpl = (args: any, options: any) => + Effect.tryPromise({ + try: () => getSignedUrl(client as any, new CommandCtor(args), options), + catch: (e) => { + if (e instanceof Error) { + return S3RequestPresignerError({ + ...e, + name: "S3RequestPresignerError", + message: e.message, + stack: e.stack, + }); + } + throw e; + }, + }); + const methodName = (command[0].toLowerCase() + command.slice(1)).replace( + /Command$/, + "", + ); + return { ...acc, [methodName]: methodImpl }; + }, {}) as PresignedS3Service; + }); + + /** + * @since 1.0.0 + * @category layers + */ + export const BasePresignedS3ServiceLayer = Layer.effect( + PresignedS3Service, + makeS3RequestPresignerService, + ); + + /** + * @since 1.0.0 + * @category layers + */ + export const PresignedS3ServiceLayer = BasePresignedS3ServiceLayer.pipe( + Layer.provide(S3ClientInstanceLayer), + ); + + /** + * @since 1.0.0 + * @category layers + */ + export const DefaultPresignedS3ServiceLayer = PresignedS3ServiceLayer.pipe( + Layer.provide(DefaultS3ClientConfigLayer), + ); + \ No newline at end of file diff --git a/packages/client-dynamodb/tsconfig.dev.json b/packages/s3-request-presigner/tsconfig.dev.json similarity index 100% rename from packages/client-dynamodb/tsconfig.dev.json rename to packages/s3-request-presigner/tsconfig.dev.json diff --git a/packages/client-dynamodb/tsconfig.esm.json b/packages/s3-request-presigner/tsconfig.esm.json similarity index 100% rename from packages/client-dynamodb/tsconfig.esm.json rename to packages/s3-request-presigner/tsconfig.esm.json diff --git a/packages/client-dynamodb/tsconfig.json b/packages/s3-request-presigner/tsconfig.json similarity index 100% rename from packages/client-dynamodb/tsconfig.json rename to packages/s3-request-presigner/tsconfig.json diff --git a/pnpm-lock.yaml b/pnpm-lock.yaml index ca57c42..c47a826 100644 --- a/pnpm-lock.yaml +++ b/pnpm-lock.yaml @@ -15,7 +15,19 @@ importers: dependencies: '@aws-cdk/aws-cognito-identitypool-alpha': specifier: latest - version: 2.131.0-alpha.0(aws-cdk-lib@2.126.0)(constructs@10.3.0) + version: 2.133.0-alpha.0(aws-cdk-lib@2.126.0)(constructs@10.3.0) + '@aws-sdk/client-polly': + specifier: ^3.535.0 + version: 3.535.0 + '@aws-sdk/client-s3': + specifier: ^3.535.0 + version: 3.537.0 + '@aws-sdk/polly-request-presigner': + specifier: ^3.535.0 + version: 3.535.0 + '@aws-sdk/s3-request-presigner': + specifier: ^3.535.0 + version: 3.537.0 aws-cdk-lib: specifier: ^2.126.0 version: 2.126.0(constructs@10.3.0) @@ -31,593 +43,28 @@ importers: devDependencies: '@aws/pdk': specifier: ^0 - version: 0.23.2(@aws-cdk/aws-cognito-identitypool-alpha@2.131.0-alpha.0)(aws-cdk-lib@2.126.0)(cdk-nag@2.28.27)(constructs@10.3.0)(projen@0.79.7) + version: 0.23.2(@aws-cdk/aws-cognito-identitypool-alpha@2.133.0-alpha.0)(aws-cdk-lib@2.126.0)(cdk-nag@2.28.27)(constructs@10.3.0)(projen@0.79.7) '@changesets/changelog-github': - specifier: ^0.4.8 - version: 0.4.8 - '@changesets/cli': - specifier: ^2.26.2 - version: 2.26.2 - '@effect/docgen': - specifier: ^0.3.8 - version: 0.3.8(tsx@4.7.0)(typescript@5.2.2) - '@types/node': - specifier: ^18 - version: 18.19.14 - '@typescript-eslint/eslint-plugin': - specifier: ^6 - version: 6.7.0(@typescript-eslint/parser@6.7.0)(eslint@8.49.0)(typescript@5.2.2) - '@typescript-eslint/parser': - specifier: ^6 - version: 6.7.0(eslint@8.49.0)(typescript@5.2.2) - constructs: - specifier: ^10.0.0 - version: 10.3.0 - eslint: - specifier: ^8 - version: 8.49.0 - eslint-config-prettier: - specifier: ^9.0.0 - version: 9.0.0(eslint@8.49.0) - eslint-import-resolver-typescript: - specifier: ^3.6.1 - version: 3.6.1(@typescript-eslint/parser@6.7.0)(eslint-plugin-import@2.28.1)(eslint@8.49.0) - eslint-plugin-import: - specifier: ^2.28.1 - version: 2.28.1(@typescript-eslint/parser@6.7.0)(eslint-import-resolver-typescript@3.6.1)(eslint@8.49.0) - eslint-plugin-prettier: - specifier: ^5.0.0 - version: 5.0.0(eslint-config-prettier@9.0.0)(eslint@8.49.0)(prettier@3.2.4) - nx: - specifier: 16.0.0 - version: 16.0.0 - prettier: - specifier: ^3.0.3 - version: 3.2.4 - projen: - specifier: ^0.79.6 - version: 0.79.7(constructs@10.3.0) - ts-node: - specifier: ^10.9.1 - version: 10.9.1(@types/node@18.19.14)(typescript@5.2.2) - tsx: - specifier: ^4.7.0 - version: 4.7.0 - typescript: - specifier: ^5.2.2 - version: 5.2.2 - vitest: - specifier: ^1.2.2 - version: 1.3.1(@types/node@18.19.14) - - packages/client-api-gateway-management-api: - dependencies: - '@aws-sdk/client-apigatewaymanagementapi': - specifier: ^3 - version: 3.533.0 - '@aws-sdk/types': - specifier: ^3 - version: 3.533.0 - devDependencies: - '@types/node': - specifier: ^18 - version: 18.19.14 - '@typescript-eslint/eslint-plugin': - specifier: ^6 - version: 6.7.0(@typescript-eslint/parser@6.7.0)(eslint@8.49.0)(typescript@5.2.2) - '@typescript-eslint/parser': - specifier: ^6 - version: 6.7.0(eslint@8.49.0)(typescript@5.2.2) - aws-sdk-client-mock: - specifier: ^3.0.0 - version: 3.0.0 - aws-sdk-client-mock-jest: - specifier: ^3.0.0 - version: 3.0.0(aws-sdk-client-mock@3.0.0) - constructs: - specifier: ^10.0.0 - version: 10.3.0 - effect: - specifier: 2.3.1 - version: 2.3.1 - eslint: - specifier: ^8 - version: 8.49.0 - eslint-config-prettier: - specifier: ^9.0.0 - version: 9.0.0(eslint@8.49.0) - eslint-import-resolver-typescript: - specifier: ^3.6.1 - version: 3.6.1(@typescript-eslint/parser@6.7.0)(eslint-plugin-import@2.28.1)(eslint@8.49.0) - eslint-plugin-import: - specifier: ^2.28.1 - version: 2.28.1(@typescript-eslint/parser@6.7.0)(eslint-import-resolver-typescript@3.6.1)(eslint@8.49.0) - eslint-plugin-prettier: - specifier: ^5.0.0 - version: 5.0.0(eslint-config-prettier@9.0.0)(eslint@8.49.0)(prettier@3.2.4) - prettier: - specifier: ^3.0.3 - version: 3.2.4 - projen: - specifier: ^0.79.6 - version: 0.79.7(constructs@10.3.0) - typescript: - specifier: ^5.2.2 - version: 5.2.2 - - packages/client-dynamodb: - dependencies: - '@aws-sdk/client-dynamodb': - specifier: ^3 - version: 3.533.0 - '@aws-sdk/types': - specifier: ^3 - version: 3.533.0 - devDependencies: - '@types/node': - specifier: ^18 - version: 18.19.14 - '@typescript-eslint/eslint-plugin': - specifier: ^6 - version: 6.7.0(@typescript-eslint/parser@6.7.0)(eslint@8.49.0)(typescript@5.2.2) - '@typescript-eslint/parser': - specifier: ^6 - version: 6.7.0(eslint@8.49.0)(typescript@5.2.2) - aws-sdk-client-mock: - specifier: ^3.0.0 - version: 3.0.0 - aws-sdk-client-mock-jest: - specifier: ^3.0.0 - version: 3.0.0(aws-sdk-client-mock@3.0.0) - constructs: - specifier: ^10.0.0 - version: 10.3.0 - effect: - specifier: 2.3.1 - version: 2.3.1 - eslint: - specifier: ^8 - version: 8.49.0 - eslint-config-prettier: - specifier: ^9.0.0 - version: 9.0.0(eslint@8.49.0) - eslint-import-resolver-typescript: - specifier: ^3.6.1 - version: 3.6.1(@typescript-eslint/parser@6.7.0)(eslint-plugin-import@2.28.1)(eslint@8.49.0) - eslint-plugin-import: - specifier: ^2.28.1 - version: 2.28.1(@typescript-eslint/parser@6.7.0)(eslint-import-resolver-typescript@3.6.1)(eslint@8.49.0) - eslint-plugin-prettier: - specifier: ^5.0.0 - version: 5.0.0(eslint-config-prettier@9.0.0)(eslint@8.49.0)(prettier@3.2.4) - prettier: - specifier: ^3.0.3 - version: 3.2.4 - projen: - specifier: ^0.79.6 - version: 0.79.7(constructs@10.3.0) - typescript: - specifier: ^5.2.2 - version: 5.2.2 - - packages/client-ec2: - dependencies: - '@aws-sdk/client-ec2': - specifier: ^3 - version: 3.533.0 - '@aws-sdk/types': - specifier: ^3 - version: 3.533.0 - devDependencies: - '@types/node': - specifier: ^18 - version: 18.19.14 - '@typescript-eslint/eslint-plugin': - specifier: ^6 - version: 6.7.0(@typescript-eslint/parser@6.7.0)(eslint@8.49.0)(typescript@5.2.2) - '@typescript-eslint/parser': - specifier: ^6 - version: 6.7.0(eslint@8.49.0)(typescript@5.2.2) - aws-sdk-client-mock: - specifier: ^3.0.0 - version: 3.0.0 - aws-sdk-client-mock-jest: - specifier: ^3.0.0 - version: 3.0.0(aws-sdk-client-mock@3.0.0) - constructs: - specifier: ^10.0.0 - version: 10.3.0 - effect: - specifier: 2.3.1 - version: 2.3.1 - eslint: - specifier: ^8 - version: 8.49.0 - eslint-config-prettier: - specifier: ^9.0.0 - version: 9.0.0(eslint@8.49.0) - eslint-import-resolver-typescript: - specifier: ^3.6.1 - version: 3.6.1(@typescript-eslint/parser@6.7.0)(eslint-plugin-import@2.28.1)(eslint@8.49.0) - eslint-plugin-import: - specifier: ^2.28.1 - version: 2.28.1(@typescript-eslint/parser@6.7.0)(eslint-import-resolver-typescript@3.6.1)(eslint@8.49.0) - eslint-plugin-prettier: - specifier: ^5.0.0 - version: 5.0.0(eslint-config-prettier@9.0.0)(eslint@8.49.0)(prettier@3.2.4) - prettier: - specifier: ^3.2.4 - version: 3.2.4 - projen: - specifier: ^0.79.6 - version: 0.79.7(constructs@10.3.0) - typescript: - specifier: ^5.2.2 - version: 5.2.2 - - packages/client-elasticache: - dependencies: - '@aws-sdk/client-elasticache': - specifier: ^3 - version: 3.533.0 - '@aws-sdk/types': - specifier: ^3 - version: 3.533.0 - devDependencies: - '@types/node': - specifier: ^18 - version: 18.19.14 - '@typescript-eslint/eslint-plugin': - specifier: ^6 - version: 6.7.0(@typescript-eslint/parser@6.7.0)(eslint@8.49.0)(typescript@5.2.2) - '@typescript-eslint/parser': - specifier: ^6 - version: 6.7.0(eslint@8.49.0)(typescript@5.2.2) - aws-sdk-client-mock: - specifier: ^3.0.0 - version: 3.0.0 - aws-sdk-client-mock-jest: - specifier: ^3.0.0 - version: 3.0.0(aws-sdk-client-mock@3.0.0) - constructs: - specifier: ^10.0.0 - version: 10.3.0 - effect: - specifier: 2.3.1 - version: 2.3.1 - eslint: - specifier: ^8 - version: 8.49.0 - eslint-config-prettier: - specifier: ^9.0.0 - version: 9.0.0(eslint@8.49.0) - eslint-import-resolver-typescript: - specifier: ^3.6.1 - version: 3.6.1(@typescript-eslint/parser@6.7.0)(eslint-plugin-import@2.28.1)(eslint@8.49.0) - eslint-plugin-import: - specifier: ^2.28.1 - version: 2.28.1(@typescript-eslint/parser@6.7.0)(eslint-import-resolver-typescript@3.6.1)(eslint@8.49.0) - eslint-plugin-prettier: - specifier: ^5.0.0 - version: 5.0.0(eslint-config-prettier@9.0.0)(eslint@8.49.0)(prettier@3.2.4) - prettier: - specifier: ^3.2.4 - version: 3.2.4 - projen: - specifier: ^0.79.6 - version: 0.79.7(constructs@10.3.0) - typescript: - specifier: ^5.2.2 - version: 5.2.2 - - packages/client-eventbridge: - dependencies: - '@aws-sdk/client-eventbridge': - specifier: ^3 - version: 3.533.0 - '@aws-sdk/types': - specifier: ^3 - version: 3.533.0 - devDependencies: - '@types/node': - specifier: ^18 - version: 18.19.14 - '@typescript-eslint/eslint-plugin': - specifier: ^6 - version: 6.7.0(@typescript-eslint/parser@6.7.0)(eslint@8.49.0)(typescript@5.2.2) - '@typescript-eslint/parser': - specifier: ^6 - version: 6.7.0(eslint@8.49.0)(typescript@5.2.2) - aws-sdk-client-mock: - specifier: ^3.0.0 - version: 3.0.0 - aws-sdk-client-mock-jest: - specifier: ^3.0.0 - version: 3.0.0(aws-sdk-client-mock@3.0.0) - constructs: - specifier: ^10.0.0 - version: 10.3.0 - effect: - specifier: 2.3.1 - version: 2.3.1 - eslint: - specifier: ^8 - version: 8.49.0 - eslint-config-prettier: - specifier: ^9.0.0 - version: 9.0.0(eslint@8.49.0) - eslint-import-resolver-typescript: - specifier: ^3.6.1 - version: 3.6.1(@typescript-eslint/parser@6.7.0)(eslint-plugin-import@2.28.1)(eslint@8.49.0) - eslint-plugin-import: - specifier: ^2.28.1 - version: 2.28.1(@typescript-eslint/parser@6.7.0)(eslint-import-resolver-typescript@3.6.1)(eslint@8.49.0) - eslint-plugin-prettier: - specifier: ^5.0.0 - version: 5.0.0(eslint-config-prettier@9.0.0)(eslint@8.49.0)(prettier@3.2.4) - prettier: - specifier: ^3.0.3 - version: 3.2.4 - projen: - specifier: ^0.79.6 - version: 0.79.7(constructs@10.3.0) - typescript: - specifier: ^5.2.2 - version: 5.2.2 - - packages/client-iam: - dependencies: - '@aws-sdk/client-iam': - specifier: ^3 - version: 3.533.0 - '@aws-sdk/types': - specifier: ^3 - version: 3.533.0 - devDependencies: - '@types/node': - specifier: ^18 - version: 18.19.14 - '@typescript-eslint/eslint-plugin': - specifier: ^6 - version: 6.7.0(@typescript-eslint/parser@6.7.0)(eslint@8.49.0)(typescript@5.2.2) - '@typescript-eslint/parser': - specifier: ^6 - version: 6.7.0(eslint@8.49.0)(typescript@5.2.2) - aws-sdk-client-mock: - specifier: ^3.0.0 - version: 3.0.0 - aws-sdk-client-mock-jest: - specifier: ^3.0.0 - version: 3.0.0(aws-sdk-client-mock@3.0.0) - constructs: - specifier: ^10.0.0 - version: 10.3.0 - effect: - specifier: 2.3.1 - version: 2.3.1 - eslint: - specifier: ^8 - version: 8.49.0 - eslint-config-prettier: - specifier: ^9.0.0 - version: 9.0.0(eslint@8.49.0) - eslint-import-resolver-typescript: - specifier: ^3.6.1 - version: 3.6.1(@typescript-eslint/parser@6.7.0)(eslint-plugin-import@2.28.1)(eslint@8.49.0) - eslint-plugin-import: - specifier: ^2.28.1 - version: 2.28.1(@typescript-eslint/parser@6.7.0)(eslint-import-resolver-typescript@3.6.1)(eslint@8.49.0) - eslint-plugin-prettier: - specifier: ^5.0.0 - version: 5.0.0(eslint-config-prettier@9.0.0)(eslint@8.49.0)(prettier@3.2.4) - prettier: - specifier: ^3.0.3 - version: 3.2.4 - projen: - specifier: ^0.79.6 - version: 0.79.7(constructs@10.3.0) - typescript: - specifier: ^5.2.2 - version: 5.2.2 - - packages/client-lambda: - dependencies: - '@aws-sdk/client-lambda': - specifier: ^3 - version: 3.533.0 - '@aws-sdk/types': - specifier: ^3 - version: 3.533.0 - devDependencies: - '@types/node': - specifier: ^18 - version: 18.19.14 - '@typescript-eslint/eslint-plugin': - specifier: ^6 - version: 6.7.0(@typescript-eslint/parser@6.7.0)(eslint@8.49.0)(typescript@5.2.2) - '@typescript-eslint/parser': - specifier: ^6 - version: 6.7.0(eslint@8.49.0)(typescript@5.2.2) - aws-sdk-client-mock: - specifier: ^3.0.0 - version: 3.0.0 - aws-sdk-client-mock-jest: - specifier: ^3.0.0 - version: 3.0.0(aws-sdk-client-mock@3.0.0) - constructs: - specifier: ^10.0.0 - version: 10.3.0 - effect: - specifier: 2.3.1 - version: 2.3.1 - eslint: - specifier: ^8 - version: 8.49.0 - eslint-config-prettier: - specifier: ^9.0.0 - version: 9.0.0(eslint@8.49.0) - eslint-import-resolver-typescript: - specifier: ^3.6.1 - version: 3.6.1(@typescript-eslint/parser@6.7.0)(eslint-plugin-import@2.28.1)(eslint@8.49.0) - eslint-plugin-import: - specifier: ^2.28.1 - version: 2.28.1(@typescript-eslint/parser@6.7.0)(eslint-import-resolver-typescript@3.6.1)(eslint@8.49.0) - eslint-plugin-prettier: - specifier: ^5.0.0 - version: 5.0.0(eslint-config-prettier@9.0.0)(eslint@8.49.0)(prettier@3.2.4) - prettier: - specifier: ^3.0.3 - version: 3.2.4 - projen: - specifier: ^0.79.6 - version: 0.79.7(constructs@10.3.0) - typescript: - specifier: ^5.2.2 - version: 5.2.2 - - packages/client-s3: - dependencies: - '@aws-sdk/client-s3': - specifier: ^3 - version: 3.533.0 - '@aws-sdk/s3-request-presigner': - specifier: ^3 - version: 3.533.0 - '@aws-sdk/types': - specifier: ^3 - version: 3.533.0 - devDependencies: - '@types/node': - specifier: ^18 - version: 18.19.14 - '@typescript-eslint/eslint-plugin': - specifier: ^6 - version: 6.7.0(@typescript-eslint/parser@6.7.0)(eslint@8.49.0)(typescript@5.2.2) - '@typescript-eslint/parser': - specifier: ^6 - version: 6.7.0(eslint@8.49.0)(typescript@5.2.2) - aws-sdk-client-mock: - specifier: ^3.0.0 - version: 3.0.0 - aws-sdk-client-mock-jest: - specifier: ^3.0.0 - version: 3.0.0(aws-sdk-client-mock@3.0.0) - constructs: - specifier: ^10.0.0 - version: 10.3.0 - effect: - specifier: 2.3.1 - version: 2.3.1 - eslint: - specifier: ^8 - version: 8.49.0 - eslint-config-prettier: - specifier: ^9.0.0 - version: 9.0.0(eslint@8.49.0) - eslint-import-resolver-typescript: - specifier: ^3.6.1 - version: 3.6.1(@typescript-eslint/parser@6.7.0)(eslint-plugin-import@2.28.1)(eslint@8.49.0) - eslint-plugin-import: - specifier: ^2.28.1 - version: 2.28.1(@typescript-eslint/parser@6.7.0)(eslint-import-resolver-typescript@3.6.1)(eslint@8.49.0) - eslint-plugin-prettier: - specifier: ^5.0.0 - version: 5.0.0(eslint-config-prettier@9.0.0)(eslint@8.49.0)(prettier@3.2.4) - prettier: - specifier: ^3.0.3 - version: 3.2.4 - projen: - specifier: ^0.79.6 - version: 0.79.7(constructs@10.3.0) - typescript: - specifier: ^5.2.2 - version: 5.2.2 - - packages/client-sfn: - dependencies: - '@aws-sdk/client-sfn': - specifier: ^3 - version: 3.533.0 - '@aws-sdk/types': - specifier: ^3 - version: 3.533.0 - devDependencies: - '@types/node': - specifier: ^18 - version: 18.19.14 - '@typescript-eslint/eslint-plugin': - specifier: ^6 - version: 6.7.0(@typescript-eslint/parser@6.7.0)(eslint@8.49.0)(typescript@5.2.2) - '@typescript-eslint/parser': - specifier: ^6 - version: 6.7.0(eslint@8.49.0)(typescript@5.2.2) - aws-sdk-client-mock: - specifier: ^3.0.0 - version: 3.0.0 - aws-sdk-client-mock-jest: - specifier: ^3.0.0 - version: 3.0.0(aws-sdk-client-mock@3.0.0) - constructs: - specifier: ^10.0.0 - version: 10.3.0 - effect: - specifier: 2.3.1 - version: 2.3.1 - eslint: - specifier: ^8 - version: 8.49.0 - eslint-config-prettier: - specifier: ^9.0.0 - version: 9.0.0(eslint@8.49.0) - eslint-import-resolver-typescript: - specifier: ^3.6.1 - version: 3.6.1(@typescript-eslint/parser@6.7.0)(eslint-plugin-import@2.28.1)(eslint@8.49.0) - eslint-plugin-import: - specifier: ^2.28.1 - version: 2.28.1(@typescript-eslint/parser@6.7.0)(eslint-import-resolver-typescript@3.6.1)(eslint@8.49.0) - eslint-plugin-prettier: - specifier: ^5.0.0 - version: 5.0.0(eslint-config-prettier@9.0.0)(eslint@8.49.0)(prettier@3.2.4) - prettier: - specifier: ^3.0.3 - version: 3.2.4 - projen: - specifier: ^0.79.6 - version: 0.79.7(constructs@10.3.0) - typescript: - specifier: ^5.2.2 - version: 5.2.2 - - packages/client-sns: - dependencies: - '@aws-sdk/client-sns': - specifier: ^3 - version: 3.533.0 - '@aws-sdk/types': - specifier: ^3 - version: 3.533.0 - devDependencies: + specifier: ^0.4.8 + version: 0.4.8 + '@changesets/cli': + specifier: ^2.26.2 + version: 2.26.2 + '@effect/docgen': + specifier: ^0.3.8 + version: 0.3.8(tsx@4.7.0)(typescript@5.4.2) '@types/node': specifier: ^18 version: 18.19.14 '@typescript-eslint/eslint-plugin': specifier: ^6 - version: 6.7.0(@typescript-eslint/parser@6.7.0)(eslint@8.49.0)(typescript@5.2.2) + version: 6.7.0(@typescript-eslint/parser@6.7.0)(eslint@8.49.0)(typescript@5.4.2) '@typescript-eslint/parser': specifier: ^6 - version: 6.7.0(eslint@8.49.0)(typescript@5.2.2) - aws-sdk-client-mock: - specifier: ^3.0.0 - version: 3.0.0 - aws-sdk-client-mock-jest: - specifier: ^3.0.0 - version: 3.0.0(aws-sdk-client-mock@3.0.0) + version: 6.7.0(eslint@8.49.0)(typescript@5.4.2) constructs: specifier: ^10.0.0 version: 10.3.0 - effect: - specifier: 2.3.1 - version: 2.3.1 eslint: specifier: ^8 version: 8.49.0 @@ -633,25 +80,33 @@ importers: eslint-plugin-prettier: specifier: ^5.0.0 version: 5.0.0(eslint-config-prettier@9.0.0)(eslint@8.49.0)(prettier@3.2.4) + nx: + specifier: 16.0.0 + version: 16.0.0 prettier: specifier: ^3.0.3 version: 3.2.4 projen: specifier: ^0.79.6 version: 0.79.7(constructs@10.3.0) + ts-node: + specifier: ^10.9.1 + version: 10.9.1(@types/node@18.19.14)(typescript@5.4.2) + tsx: + specifier: ^4.7.0 + version: 4.7.0 typescript: specifier: ^5.2.2 - version: 5.2.2 + version: 5.4.2 + vitest: + specifier: ^1.2.2 + version: 1.3.1(@types/node@18.19.14) - packages/client-sqs: - dependencies: - '@aws-sdk/client-sqs': - specifier: ^3 - version: 3.533.0 - '@aws-sdk/types': - specifier: ^3 - version: 3.533.0 + packages/lambda: devDependencies: + '@types/aws-lambda': + specifier: ^8.10.125 + version: 8.10.125 '@types/node': specifier: ^18 version: 18.19.14 @@ -661,12 +116,6 @@ importers: '@typescript-eslint/parser': specifier: ^6 version: 6.7.0(eslint@8.49.0)(typescript@5.2.2) - aws-sdk-client-mock: - specifier: ^3.0.0 - version: 3.0.0 - aws-sdk-client-mock-jest: - specifier: ^3.0.0 - version: 3.0.0(aws-sdk-client-mock@3.0.0) constructs: specifier: ^10.0.0 version: 10.3.0 @@ -698,8 +147,14 @@ importers: specifier: ^5.2.2 version: 5.2.2 - packages/lambda: + packages/polly-request-presigner: devDependencies: + '@aws-sdk/client-polly': + specifier: 3.535.0 + version: 3.535.0 + '@aws-sdk/polly-request-presigner': + specifier: 3.535.0 + version: 3.535.0 '@types/aws-lambda': specifier: ^8.10.125 version: 8.10.125 @@ -708,10 +163,10 @@ importers: version: 18.19.14 '@typescript-eslint/eslint-plugin': specifier: ^6 - version: 6.7.0(@typescript-eslint/parser@6.7.0)(eslint@8.49.0)(typescript@5.2.2) + version: 6.7.0(@typescript-eslint/parser@6.7.0)(eslint@8.49.0)(typescript@5.4.2) '@typescript-eslint/parser': specifier: ^6 - version: 6.7.0(eslint@8.49.0)(typescript@5.2.2) + version: 6.7.0(eslint@8.49.0)(typescript@5.4.2) constructs: specifier: ^10.0.0 version: 10.3.0 @@ -734,30 +189,24 @@ importers: specifier: ^5.0.0 version: 5.0.0(eslint-config-prettier@9.0.0)(eslint@8.49.0)(prettier@3.2.4) prettier: - specifier: ^3.0.3 + specifier: ^3.2.4 version: 3.2.4 projen: specifier: ^0.79.6 version: 0.79.7(constructs@10.3.0) typescript: - specifier: ^5.2.2 - version: 5.2.2 + specifier: ^5.4.2 + version: 5.4.2 - packages/lib-dynamodb: - dependencies: - '@aws-sdk/client-dynamodb': - specifier: ^3 - version: 3.533.0 - '@aws-sdk/lib-dynamodb': - specifier: ^3 - version: 3.533.0(@aws-sdk/client-dynamodb@3.533.0) - '@aws-sdk/types': - specifier: ^3 - version: 3.533.0 + packages/powertools-logger: + dependencies: + '@aws-lambda-powertools/logger': + specifier: ^1.9.0 + version: 1.14.0 devDependencies: - '@effect-aws/client-dynamodb': - specifier: 1.1.2 - version: link:../client-dynamodb + '@types/aws-lambda': + specifier: ^8.10.125 + version: 8.10.125 '@types/node': specifier: ^18 version: 18.19.14 @@ -767,12 +216,6 @@ importers: '@typescript-eslint/parser': specifier: ^6 version: 6.7.0(eslint@8.49.0)(typescript@5.2.2) - aws-sdk-client-mock: - specifier: ^3.0.0 - version: 3.0.0 - aws-sdk-client-mock-jest: - specifier: ^3.0.0 - version: 3.0.0(aws-sdk-client-mock@3.0.0) constructs: specifier: ^10.0.0 version: 10.3.0 @@ -804,12 +247,14 @@ importers: specifier: ^5.2.2 version: 5.2.2 - packages/powertools-logger: - dependencies: - '@aws-lambda-powertools/logger': - specifier: ^1.9.0 - version: 1.14.0 + packages/s3-request-presigner: devDependencies: + '@aws-sdk/client-s3': + specifier: 3.537.0 + version: 3.537.0 + '@aws-sdk/s3-request-presigner': + specifier: 3.537.0 + version: 3.537.0 '@types/aws-lambda': specifier: ^8.10.125 version: 8.10.125 @@ -818,10 +263,10 @@ importers: version: 18.19.14 '@typescript-eslint/eslint-plugin': specifier: ^6 - version: 6.7.0(@typescript-eslint/parser@6.7.0)(eslint@8.49.0)(typescript@5.2.2) + version: 6.7.0(@typescript-eslint/parser@6.7.0)(eslint@8.49.0)(typescript@5.4.2) '@typescript-eslint/parser': specifier: ^6 - version: 6.7.0(eslint@8.49.0)(typescript@5.2.2) + version: 6.7.0(eslint@8.49.0)(typescript@5.4.2) constructs: specifier: ^10.0.0 version: 10.3.0 @@ -844,14 +289,14 @@ importers: specifier: ^5.0.0 version: 5.0.0(eslint-config-prettier@9.0.0)(eslint@8.49.0)(prettier@3.2.4) prettier: - specifier: ^3.0.3 + specifier: ^3.2.4 version: 3.2.4 projen: specifier: ^0.79.6 version: 0.79.7(constructs@10.3.0) typescript: - specifier: ^5.2.2 - version: 5.2.2 + specifier: ^5.4.2 + version: 5.4.2 packages: @@ -869,11 +314,11 @@ packages: /@aws-cdk/asset-node-proxy-agent-v6@2.0.1: resolution: {integrity: sha512-DDt4SLdLOwWCjGtltH4VCST7hpOI5DzieuhGZsBpZ+AgJdSI2GCjklCXm0GCTwJG/SolkL5dtQXyUKgg9luBDg==} - /@aws-cdk/aws-cognito-identitypool-alpha@2.131.0-alpha.0(aws-cdk-lib@2.126.0)(constructs@10.3.0): - resolution: {integrity: sha512-8dXyElW94uuSDbP2ERp90BkQ9qDuXW38p+ArjSEg/zzQo8PGFq6UMeAigBfgygPoP2N72CRZhaM8nGdtI9bv/A==} + /@aws-cdk/aws-cognito-identitypool-alpha@2.133.0-alpha.0(aws-cdk-lib@2.126.0)(constructs@10.3.0): + resolution: {integrity: sha512-TKwF3V1E6Fn5eqnpRBCOLUmr4NyWN0ncJWJK+OaUcXGg90zMVyXzsLEQ8wsmrzgSNCm+Wf7bcGjDK+7h+/ZVbQ==} engines: {node: '>= 14.15.0'} peerDependencies: - aws-cdk-lib: ^2.131.0 + aws-cdk-lib: ^2.133.0 constructs: ^10.0.0 dependencies: aws-cdk-lib: 2.126.0(constructs@10.3.0) @@ -883,23 +328,20 @@ packages: resolution: {integrity: sha512-IzSgsrxUcsrejQbPVilIKy16kAT52EwB6zSaI+M3xxIhKh5+aldEyvI+z6erM7TCLB2BJsFrtHjp6/4/sr+3dA==} dependencies: '@aws-crypto/util': 3.0.0 - '@aws-sdk/types': 3.533.0 + '@aws-sdk/types': 3.535.0 tslib: 1.14.1 - dev: false /@aws-crypto/crc32c@3.0.0: resolution: {integrity: sha512-ENNPPManmnVJ4BTXlOjAgD7URidbAznURqD0KvfREyc4o20DPYdEldU1f5cQ7Jbj0CJJSPaMIk/9ZshdB3210w==} dependencies: '@aws-crypto/util': 3.0.0 - '@aws-sdk/types': 3.533.0 + '@aws-sdk/types': 3.535.0 tslib: 1.14.1 - dev: false /@aws-crypto/ie11-detection@3.0.0: resolution: {integrity: sha512-341lBBkiY1DfDNKai/wXM3aujNBkXR7tq1URPQDL9wi3AUbI80NR74uF1TXHMm7po1AcnFk8iu2S2IeU/+/A+Q==} dependencies: tslib: 1.14.1 - dev: false /@aws-crypto/sha1-browser@3.0.0: resolution: {integrity: sha512-NJth5c997GLHs6nOYTzFKTbYdMNA6/1XlKVgnZoaZcQ7z7UJlOgj2JdbHE8tiYLS3fzXNCguct77SPGat2raSw==} @@ -907,11 +349,10 @@ packages: '@aws-crypto/ie11-detection': 3.0.0 '@aws-crypto/supports-web-crypto': 3.0.0 '@aws-crypto/util': 3.0.0 - '@aws-sdk/types': 3.533.0 - '@aws-sdk/util-locate-window': 3.495.0 + '@aws-sdk/types': 3.535.0 + '@aws-sdk/util-locate-window': 3.535.0 '@aws-sdk/util-utf8-browser': 3.259.0 tslib: 1.14.1 - dev: false /@aws-crypto/sha256-browser@3.0.0: resolution: {integrity: sha512-8VLmW2B+gjFbU5uMeqtQM6Nj0/F1bro80xQXCW6CQBWgosFWXTx77aeOF5CAIAmbOK64SdMBJdNr6J41yP5mvQ==} @@ -920,33 +361,29 @@ packages: '@aws-crypto/sha256-js': 3.0.0 '@aws-crypto/supports-web-crypto': 3.0.0 '@aws-crypto/util': 3.0.0 - '@aws-sdk/types': 3.533.0 - '@aws-sdk/util-locate-window': 3.495.0 + '@aws-sdk/types': 3.535.0 + '@aws-sdk/util-locate-window': 3.535.0 '@aws-sdk/util-utf8-browser': 3.259.0 tslib: 1.14.1 - dev: false /@aws-crypto/sha256-js@3.0.0: resolution: {integrity: sha512-PnNN7os0+yd1XvXAy23CFOmTbMaDxgxXtTKHybrJ39Y8kGzBATgBFibWJKH6BhytLI/Zyszs87xCOBNyBig6vQ==} dependencies: '@aws-crypto/util': 3.0.0 - '@aws-sdk/types': 3.533.0 + '@aws-sdk/types': 3.535.0 tslib: 1.14.1 - dev: false /@aws-crypto/supports-web-crypto@3.0.0: resolution: {integrity: sha512-06hBdMwUAb2WFTuGG73LSC0wfPu93xWwo5vL2et9eymgmu3Id5vFAHBbajVWiGhPO37qcsdCap/FqXvJGJWPIg==} dependencies: tslib: 1.14.1 - dev: false /@aws-crypto/util@3.0.0: resolution: {integrity: sha512-2OJlpeJpCR48CC8r+uKVChzs9Iungj9wkZrl8Z041DWEWvyIHILYKCPNzJghKsivj+S3mLo6BVc7mBNzdxA46w==} dependencies: - '@aws-sdk/types': 3.533.0 + '@aws-sdk/types': 3.535.0 '@aws-sdk/util-utf8-browser': 3.259.0 tslib: 1.14.1 - dev: false /@aws-lambda-powertools/commons@1.14.0: resolution: {integrity: sha512-+kxLITfkH/G4C6N9b1kmvT4HSvqxRMtzmghwdiigqSGkRubCCRaxewBIII66DHgpXK5JhoWmTmdsBVwpEWqwvA==} @@ -964,1129 +401,593 @@ packages: lodash.merge: 4.6.2 dev: false - /@aws-sdk/client-apigatewaymanagementapi@3.533.0: - resolution: {integrity: sha512-hizMoyzBiTFNe3GBR7zNm80cTx7PTrFFSIySgPoZ4KUAMQe4y6TPv1ULNZaODmDHFJ2QQLX9UG17CKk833oy1g==} - engines: {node: '>=14.0.0'} - dependencies: - '@aws-crypto/sha256-browser': 3.0.0 - '@aws-crypto/sha256-js': 3.0.0 - '@aws-sdk/client-sts': 3.533.0(@aws-sdk/credential-provider-node@3.533.0) - '@aws-sdk/core': 3.533.0 - '@aws-sdk/credential-provider-node': 3.533.0 - '@aws-sdk/middleware-host-header': 3.533.0 - '@aws-sdk/middleware-logger': 3.533.0 - '@aws-sdk/middleware-recursion-detection': 3.533.0 - '@aws-sdk/middleware-user-agent': 3.533.0 - '@aws-sdk/region-config-resolver': 3.533.0 - '@aws-sdk/types': 3.533.0 - '@aws-sdk/util-endpoints': 3.533.0 - '@aws-sdk/util-user-agent-browser': 3.533.0 - '@aws-sdk/util-user-agent-node': 3.533.0 - '@smithy/config-resolver': 2.1.5 - '@smithy/core': 1.3.8 - '@smithy/fetch-http-handler': 2.4.5 - '@smithy/hash-node': 2.1.4 - '@smithy/invalid-dependency': 2.1.4 - '@smithy/middleware-content-length': 2.1.4 - '@smithy/middleware-endpoint': 2.4.6 - '@smithy/middleware-retry': 2.1.7 - '@smithy/middleware-serde': 2.2.1 - '@smithy/middleware-stack': 2.1.4 - '@smithy/node-config-provider': 2.2.5 - '@smithy/node-http-handler': 2.4.3 - '@smithy/protocol-http': 3.2.2 - '@smithy/smithy-client': 2.4.5 - '@smithy/types': 2.11.0 - '@smithy/url-parser': 2.1.4 - '@smithy/util-base64': 2.2.1 - '@smithy/util-body-length-browser': 2.1.1 - '@smithy/util-body-length-node': 2.2.2 - '@smithy/util-defaults-mode-browser': 2.1.7 - '@smithy/util-defaults-mode-node': 2.2.7 - '@smithy/util-endpoints': 1.1.5 - '@smithy/util-middleware': 2.1.4 - '@smithy/util-retry': 2.1.4 - '@smithy/util-utf8': 2.2.0 - tslib: 2.6.2 - transitivePeerDependencies: - - aws-crt - dev: false - - /@aws-sdk/client-dynamodb@3.533.0: - resolution: {integrity: sha512-2rg4EcdwaJZV9edhGyH1oZLH9fNkAfkofq5D2b7zpKuR+Pt1jsmvok22Tfh3NZknNBkWrGKzFubZAqcCMyVIMw==} - engines: {node: '>=14.0.0'} - dependencies: - '@aws-crypto/sha256-browser': 3.0.0 - '@aws-crypto/sha256-js': 3.0.0 - '@aws-sdk/client-sts': 3.533.0(@aws-sdk/credential-provider-node@3.533.0) - '@aws-sdk/core': 3.533.0 - '@aws-sdk/credential-provider-node': 3.533.0 - '@aws-sdk/middleware-endpoint-discovery': 3.533.0 - '@aws-sdk/middleware-host-header': 3.533.0 - '@aws-sdk/middleware-logger': 3.533.0 - '@aws-sdk/middleware-recursion-detection': 3.533.0 - '@aws-sdk/middleware-user-agent': 3.533.0 - '@aws-sdk/region-config-resolver': 3.533.0 - '@aws-sdk/types': 3.533.0 - '@aws-sdk/util-endpoints': 3.533.0 - '@aws-sdk/util-user-agent-browser': 3.533.0 - '@aws-sdk/util-user-agent-node': 3.533.0 - '@smithy/config-resolver': 2.1.5 - '@smithy/core': 1.3.8 - '@smithy/fetch-http-handler': 2.4.5 - '@smithy/hash-node': 2.1.4 - '@smithy/invalid-dependency': 2.1.4 - '@smithy/middleware-content-length': 2.1.4 - '@smithy/middleware-endpoint': 2.4.6 - '@smithy/middleware-retry': 2.1.7 - '@smithy/middleware-serde': 2.2.1 - '@smithy/middleware-stack': 2.1.4 - '@smithy/node-config-provider': 2.2.5 - '@smithy/node-http-handler': 2.4.3 - '@smithy/protocol-http': 3.2.2 - '@smithy/smithy-client': 2.4.5 - '@smithy/types': 2.11.0 - '@smithy/url-parser': 2.1.4 - '@smithy/util-base64': 2.2.1 - '@smithy/util-body-length-browser': 2.1.1 - '@smithy/util-body-length-node': 2.2.2 - '@smithy/util-defaults-mode-browser': 2.1.7 - '@smithy/util-defaults-mode-node': 2.2.7 - '@smithy/util-endpoints': 1.1.5 - '@smithy/util-middleware': 2.1.4 - '@smithy/util-retry': 2.1.4 - '@smithy/util-utf8': 2.2.0 - '@smithy/util-waiter': 2.1.4 - tslib: 2.6.2 - uuid: 9.0.1 - transitivePeerDependencies: - - aws-crt - dev: false - - /@aws-sdk/client-ec2@3.533.0: - resolution: {integrity: sha512-I/eM/W85HQ/w1APgiOKWULeaEXh7pDI061zGhz+3w07sbp8AWx4f7n9xPU4lESjHbxigFb4fstq7a3WjOtmSfA==} - engines: {node: '>=14.0.0'} - dependencies: - '@aws-crypto/sha256-browser': 3.0.0 - '@aws-crypto/sha256-js': 3.0.0 - '@aws-sdk/client-sts': 3.533.0(@aws-sdk/credential-provider-node@3.533.0) - '@aws-sdk/core': 3.533.0 - '@aws-sdk/credential-provider-node': 3.533.0 - '@aws-sdk/middleware-host-header': 3.533.0 - '@aws-sdk/middleware-logger': 3.533.0 - '@aws-sdk/middleware-recursion-detection': 3.533.0 - '@aws-sdk/middleware-sdk-ec2': 3.533.0 - '@aws-sdk/middleware-user-agent': 3.533.0 - '@aws-sdk/region-config-resolver': 3.533.0 - '@aws-sdk/types': 3.533.0 - '@aws-sdk/util-endpoints': 3.533.0 - '@aws-sdk/util-user-agent-browser': 3.533.0 - '@aws-sdk/util-user-agent-node': 3.533.0 - '@smithy/config-resolver': 2.1.5 - '@smithy/core': 1.3.8 - '@smithy/fetch-http-handler': 2.4.5 - '@smithy/hash-node': 2.1.4 - '@smithy/invalid-dependency': 2.1.4 - '@smithy/middleware-content-length': 2.1.4 - '@smithy/middleware-endpoint': 2.4.6 - '@smithy/middleware-retry': 2.1.7 - '@smithy/middleware-serde': 2.2.1 - '@smithy/middleware-stack': 2.1.4 - '@smithy/node-config-provider': 2.2.5 - '@smithy/node-http-handler': 2.4.3 - '@smithy/protocol-http': 3.2.2 - '@smithy/smithy-client': 2.4.5 - '@smithy/types': 2.11.0 - '@smithy/url-parser': 2.1.4 - '@smithy/util-base64': 2.2.1 - '@smithy/util-body-length-browser': 2.1.1 - '@smithy/util-body-length-node': 2.2.2 - '@smithy/util-defaults-mode-browser': 2.1.7 - '@smithy/util-defaults-mode-node': 2.2.7 - '@smithy/util-endpoints': 1.1.5 - '@smithy/util-middleware': 2.1.4 - '@smithy/util-retry': 2.1.4 - '@smithy/util-utf8': 2.2.0 - '@smithy/util-waiter': 2.1.4 - tslib: 2.6.2 - uuid: 9.0.1 - transitivePeerDependencies: - - aws-crt - dev: false - - /@aws-sdk/client-elasticache@3.533.0: - resolution: {integrity: sha512-kB6rpW+9UfZ322vMeNW8XSUlFNaeF4SHbPPkNvuL2c8p0ApHbgHPMfAVKbml0E9GQS6tengXPEmsYBhcPiJZ5g==} - engines: {node: '>=14.0.0'} - dependencies: - '@aws-crypto/sha256-browser': 3.0.0 - '@aws-crypto/sha256-js': 3.0.0 - '@aws-sdk/client-sts': 3.533.0(@aws-sdk/credential-provider-node@3.533.0) - '@aws-sdk/core': 3.533.0 - '@aws-sdk/credential-provider-node': 3.533.0 - '@aws-sdk/middleware-host-header': 3.533.0 - '@aws-sdk/middleware-logger': 3.533.0 - '@aws-sdk/middleware-recursion-detection': 3.533.0 - '@aws-sdk/middleware-user-agent': 3.533.0 - '@aws-sdk/region-config-resolver': 3.533.0 - '@aws-sdk/types': 3.533.0 - '@aws-sdk/util-endpoints': 3.533.0 - '@aws-sdk/util-user-agent-browser': 3.533.0 - '@aws-sdk/util-user-agent-node': 3.533.0 - '@smithy/config-resolver': 2.1.5 - '@smithy/core': 1.3.8 - '@smithy/fetch-http-handler': 2.4.5 - '@smithy/hash-node': 2.1.4 - '@smithy/invalid-dependency': 2.1.4 - '@smithy/middleware-content-length': 2.1.4 - '@smithy/middleware-endpoint': 2.4.6 - '@smithy/middleware-retry': 2.1.7 - '@smithy/middleware-serde': 2.2.1 - '@smithy/middleware-stack': 2.1.4 - '@smithy/node-config-provider': 2.2.5 - '@smithy/node-http-handler': 2.4.3 - '@smithy/protocol-http': 3.2.2 - '@smithy/smithy-client': 2.4.5 - '@smithy/types': 2.11.0 - '@smithy/url-parser': 2.1.4 - '@smithy/util-base64': 2.2.1 - '@smithy/util-body-length-browser': 2.1.1 - '@smithy/util-body-length-node': 2.2.2 - '@smithy/util-defaults-mode-browser': 2.1.7 - '@smithy/util-defaults-mode-node': 2.2.7 - '@smithy/util-endpoints': 1.1.5 - '@smithy/util-middleware': 2.1.4 - '@smithy/util-retry': 2.1.4 - '@smithy/util-utf8': 2.2.0 - '@smithy/util-waiter': 2.1.4 - tslib: 2.6.2 - transitivePeerDependencies: - - aws-crt - dev: false - - /@aws-sdk/client-eventbridge@3.533.0: - resolution: {integrity: sha512-kspDwDO2oelNTuMC3JbRcRKZ4ikfTBExbmkOSq+gAgIsv57fl2ItK4BICd+zzC/jX/j8Ee2ohj5I9Drc+Ri2NQ==} - engines: {node: '>=14.0.0'} - dependencies: - '@aws-crypto/sha256-browser': 3.0.0 - '@aws-crypto/sha256-js': 3.0.0 - '@aws-sdk/client-sts': 3.533.0(@aws-sdk/credential-provider-node@3.533.0) - '@aws-sdk/core': 3.533.0 - '@aws-sdk/credential-provider-node': 3.533.0 - '@aws-sdk/middleware-host-header': 3.533.0 - '@aws-sdk/middleware-logger': 3.533.0 - '@aws-sdk/middleware-recursion-detection': 3.533.0 - '@aws-sdk/middleware-signing': 3.533.0 - '@aws-sdk/middleware-user-agent': 3.533.0 - '@aws-sdk/region-config-resolver': 3.533.0 - '@aws-sdk/signature-v4-multi-region': 3.533.0 - '@aws-sdk/types': 3.533.0 - '@aws-sdk/util-endpoints': 3.533.0 - '@aws-sdk/util-user-agent-browser': 3.533.0 - '@aws-sdk/util-user-agent-node': 3.533.0 - '@smithy/config-resolver': 2.1.5 - '@smithy/fetch-http-handler': 2.4.5 - '@smithy/hash-node': 2.1.4 - '@smithy/invalid-dependency': 2.1.4 - '@smithy/middleware-content-length': 2.1.4 - '@smithy/middleware-endpoint': 2.4.6 - '@smithy/middleware-retry': 2.1.7 - '@smithy/middleware-serde': 2.2.1 - '@smithy/middleware-stack': 2.1.4 - '@smithy/node-config-provider': 2.2.5 - '@smithy/node-http-handler': 2.4.3 - '@smithy/protocol-http': 3.2.2 - '@smithy/smithy-client': 2.4.5 - '@smithy/types': 2.11.0 - '@smithy/url-parser': 2.1.4 - '@smithy/util-base64': 2.2.1 - '@smithy/util-body-length-browser': 2.1.1 - '@smithy/util-body-length-node': 2.2.2 - '@smithy/util-defaults-mode-browser': 2.1.7 - '@smithy/util-defaults-mode-node': 2.2.7 - '@smithy/util-endpoints': 1.1.5 - '@smithy/util-retry': 2.1.4 - '@smithy/util-utf8': 2.2.0 - tslib: 2.6.2 - transitivePeerDependencies: - - aws-crt - dev: false - - /@aws-sdk/client-iam@3.533.0: - resolution: {integrity: sha512-G16AJ3bF1xlomuqKzAXB7v//AVcj24B4F23qKIk9BtUfRmzCLHkSs09L0HLB9S9ToWC73FfwO/C0Nybmz8SB0g==} - engines: {node: '>=14.0.0'} - dependencies: - '@aws-crypto/sha256-browser': 3.0.0 - '@aws-crypto/sha256-js': 3.0.0 - '@aws-sdk/client-sts': 3.533.0(@aws-sdk/credential-provider-node@3.533.0) - '@aws-sdk/core': 3.533.0 - '@aws-sdk/credential-provider-node': 3.533.0 - '@aws-sdk/middleware-host-header': 3.533.0 - '@aws-sdk/middleware-logger': 3.533.0 - '@aws-sdk/middleware-recursion-detection': 3.533.0 - '@aws-sdk/middleware-user-agent': 3.533.0 - '@aws-sdk/region-config-resolver': 3.533.0 - '@aws-sdk/types': 3.533.0 - '@aws-sdk/util-endpoints': 3.533.0 - '@aws-sdk/util-user-agent-browser': 3.533.0 - '@aws-sdk/util-user-agent-node': 3.533.0 - '@smithy/config-resolver': 2.1.5 - '@smithy/core': 1.3.8 - '@smithy/fetch-http-handler': 2.4.5 - '@smithy/hash-node': 2.1.4 - '@smithy/invalid-dependency': 2.1.4 - '@smithy/middleware-content-length': 2.1.4 - '@smithy/middleware-endpoint': 2.4.6 - '@smithy/middleware-retry': 2.1.7 - '@smithy/middleware-serde': 2.2.1 - '@smithy/middleware-stack': 2.1.4 - '@smithy/node-config-provider': 2.2.5 - '@smithy/node-http-handler': 2.4.3 - '@smithy/protocol-http': 3.2.2 - '@smithy/smithy-client': 2.4.5 - '@smithy/types': 2.11.0 - '@smithy/url-parser': 2.1.4 - '@smithy/util-base64': 2.2.1 - '@smithy/util-body-length-browser': 2.1.1 - '@smithy/util-body-length-node': 2.2.2 - '@smithy/util-defaults-mode-browser': 2.1.7 - '@smithy/util-defaults-mode-node': 2.2.7 - '@smithy/util-endpoints': 1.1.5 - '@smithy/util-middleware': 2.1.4 - '@smithy/util-retry': 2.1.4 - '@smithy/util-utf8': 2.2.0 - '@smithy/util-waiter': 2.1.4 - tslib: 2.6.2 - transitivePeerDependencies: - - aws-crt - dev: false - - /@aws-sdk/client-lambda@3.533.0: - resolution: {integrity: sha512-FsgR44DdLhpD+cd5cbddtNNbOKaPWGpjIMGXscx/f162NhX3rKisxPp+jGtU8mf7np3LmIQR3i4Q9+/vhVnKgQ==} + /@aws-sdk/client-polly@3.535.0: + resolution: {integrity: sha512-6gjQBgbdRTKIOaOlqXM+eBxlCE986woKbVfFdX7xQijEeeWM9T+rqeNywnfKo8VT2Zll4C/viCpYYn2Y76lC7A==} engines: {node: '>=14.0.0'} dependencies: '@aws-crypto/sha256-browser': 3.0.0 '@aws-crypto/sha256-js': 3.0.0 - '@aws-sdk/client-sts': 3.533.0(@aws-sdk/credential-provider-node@3.533.0) - '@aws-sdk/core': 3.533.0 - '@aws-sdk/credential-provider-node': 3.533.0 - '@aws-sdk/middleware-host-header': 3.533.0 - '@aws-sdk/middleware-logger': 3.533.0 - '@aws-sdk/middleware-recursion-detection': 3.533.0 - '@aws-sdk/middleware-user-agent': 3.533.0 - '@aws-sdk/region-config-resolver': 3.533.0 - '@aws-sdk/types': 3.533.0 - '@aws-sdk/util-endpoints': 3.533.0 - '@aws-sdk/util-user-agent-browser': 3.533.0 - '@aws-sdk/util-user-agent-node': 3.533.0 - '@smithy/config-resolver': 2.1.5 - '@smithy/core': 1.3.8 - '@smithy/eventstream-serde-browser': 2.1.4 - '@smithy/eventstream-serde-config-resolver': 2.1.4 - '@smithy/eventstream-serde-node': 2.1.4 - '@smithy/fetch-http-handler': 2.4.5 - '@smithy/hash-node': 2.1.4 - '@smithy/invalid-dependency': 2.1.4 - '@smithy/middleware-content-length': 2.1.4 - '@smithy/middleware-endpoint': 2.4.6 - '@smithy/middleware-retry': 2.1.7 - '@smithy/middleware-serde': 2.2.1 - '@smithy/middleware-stack': 2.1.4 - '@smithy/node-config-provider': 2.2.5 - '@smithy/node-http-handler': 2.4.3 - '@smithy/protocol-http': 3.2.2 - '@smithy/smithy-client': 2.4.5 - '@smithy/types': 2.11.0 - '@smithy/url-parser': 2.1.4 - '@smithy/util-base64': 2.2.1 - '@smithy/util-body-length-browser': 2.1.1 - '@smithy/util-body-length-node': 2.2.2 - '@smithy/util-defaults-mode-browser': 2.1.7 - '@smithy/util-defaults-mode-node': 2.2.7 - '@smithy/util-endpoints': 1.1.5 - '@smithy/util-middleware': 2.1.4 - '@smithy/util-retry': 2.1.4 - '@smithy/util-stream': 2.1.5 - '@smithy/util-utf8': 2.2.0 - '@smithy/util-waiter': 2.1.4 + '@aws-sdk/client-sts': 3.535.0(@aws-sdk/credential-provider-node@3.535.0) + '@aws-sdk/core': 3.535.0 + '@aws-sdk/credential-provider-node': 3.535.0 + '@aws-sdk/middleware-host-header': 3.535.0 + '@aws-sdk/middleware-logger': 3.535.0 + '@aws-sdk/middleware-recursion-detection': 3.535.0 + '@aws-sdk/middleware-user-agent': 3.535.0 + '@aws-sdk/region-config-resolver': 3.535.0 + '@aws-sdk/types': 3.535.0 + '@aws-sdk/util-endpoints': 3.535.0 + '@aws-sdk/util-user-agent-browser': 3.535.0 + '@aws-sdk/util-user-agent-node': 3.535.0 + '@smithy/config-resolver': 2.2.0 + '@smithy/core': 1.4.0 + '@smithy/fetch-http-handler': 2.5.0 + '@smithy/hash-node': 2.2.0 + '@smithy/invalid-dependency': 2.2.0 + '@smithy/middleware-content-length': 2.2.0 + '@smithy/middleware-endpoint': 2.5.0 + '@smithy/middleware-retry': 2.2.0 + '@smithy/middleware-serde': 2.3.0 + '@smithy/middleware-stack': 2.2.0 + '@smithy/node-config-provider': 2.3.0 + '@smithy/node-http-handler': 2.5.0 + '@smithy/protocol-http': 3.3.0 + '@smithy/smithy-client': 2.5.0 + '@smithy/types': 2.12.0 + '@smithy/url-parser': 2.2.0 + '@smithy/util-base64': 2.3.0 + '@smithy/util-body-length-browser': 2.2.0 + '@smithy/util-body-length-node': 2.3.0 + '@smithy/util-defaults-mode-browser': 2.2.0 + '@smithy/util-defaults-mode-node': 2.3.0 + '@smithy/util-endpoints': 1.2.0 + '@smithy/util-middleware': 2.2.0 + '@smithy/util-retry': 2.2.0 + '@smithy/util-stream': 2.2.0 + '@smithy/util-utf8': 2.3.0 tslib: 2.6.2 transitivePeerDependencies: - aws-crt - dev: false - /@aws-sdk/client-s3@3.533.0: - resolution: {integrity: sha512-KkzRS3Dt+dmNBe0a627RGr5aFqI+xw5UhqB+8Gr4r6Xy1/8sMGE+AXKVl/sYVbRQo/9aSCBak71baGE3XCm/pQ==} + /@aws-sdk/client-s3@3.537.0: + resolution: {integrity: sha512-EMPN2toHz1QtSiDeLKS1zrazh+8J0g1Y5t5lCq25iTXqCSV9vB2jCKwG5+OB6L5tAKkwyl1uZofeWLmdFkztEg==} engines: {node: '>=14.0.0'} dependencies: '@aws-crypto/sha1-browser': 3.0.0 '@aws-crypto/sha256-browser': 3.0.0 '@aws-crypto/sha256-js': 3.0.0 - '@aws-sdk/client-sts': 3.533.0(@aws-sdk/credential-provider-node@3.533.0) - '@aws-sdk/core': 3.533.0 - '@aws-sdk/credential-provider-node': 3.533.0 - '@aws-sdk/middleware-bucket-endpoint': 3.533.0 - '@aws-sdk/middleware-expect-continue': 3.533.0 - '@aws-sdk/middleware-flexible-checksums': 3.533.0 - '@aws-sdk/middleware-host-header': 3.533.0 - '@aws-sdk/middleware-location-constraint': 3.533.0 - '@aws-sdk/middleware-logger': 3.533.0 - '@aws-sdk/middleware-recursion-detection': 3.533.0 - '@aws-sdk/middleware-sdk-s3': 3.533.0 - '@aws-sdk/middleware-signing': 3.533.0 - '@aws-sdk/middleware-ssec': 3.533.0 - '@aws-sdk/middleware-user-agent': 3.533.0 - '@aws-sdk/region-config-resolver': 3.533.0 - '@aws-sdk/signature-v4-multi-region': 3.533.0 - '@aws-sdk/types': 3.533.0 - '@aws-sdk/util-endpoints': 3.533.0 - '@aws-sdk/util-user-agent-browser': 3.533.0 - '@aws-sdk/util-user-agent-node': 3.533.0 - '@aws-sdk/xml-builder': 3.533.0 - '@smithy/config-resolver': 2.1.5 - '@smithy/core': 1.3.8 - '@smithy/eventstream-serde-browser': 2.1.4 - '@smithy/eventstream-serde-config-resolver': 2.1.4 - '@smithy/eventstream-serde-node': 2.1.4 - '@smithy/fetch-http-handler': 2.4.5 - '@smithy/hash-blob-browser': 2.1.5 - '@smithy/hash-node': 2.1.4 - '@smithy/hash-stream-node': 2.1.4 - '@smithy/invalid-dependency': 2.1.4 - '@smithy/md5-js': 2.1.4 - '@smithy/middleware-content-length': 2.1.4 - '@smithy/middleware-endpoint': 2.4.6 - '@smithy/middleware-retry': 2.1.7 - '@smithy/middleware-serde': 2.2.1 - '@smithy/middleware-stack': 2.1.4 - '@smithy/node-config-provider': 2.2.5 - '@smithy/node-http-handler': 2.4.3 - '@smithy/protocol-http': 3.2.2 - '@smithy/smithy-client': 2.4.5 - '@smithy/types': 2.11.0 - '@smithy/url-parser': 2.1.4 - '@smithy/util-base64': 2.2.1 - '@smithy/util-body-length-browser': 2.1.1 - '@smithy/util-body-length-node': 2.2.2 - '@smithy/util-defaults-mode-browser': 2.1.7 - '@smithy/util-defaults-mode-node': 2.2.7 - '@smithy/util-endpoints': 1.1.5 - '@smithy/util-retry': 2.1.4 - '@smithy/util-stream': 2.1.5 - '@smithy/util-utf8': 2.2.0 - '@smithy/util-waiter': 2.1.4 - tslib: 2.6.2 - transitivePeerDependencies: - - aws-crt - dev: false - - /@aws-sdk/client-sfn@3.533.0: - resolution: {integrity: sha512-Rgfct0cydlP/0yrO2GL7Z7zvHPUDP5k49MngERKfe9bjsFYyHaYSpB+FQ+mVo7kVADrtJmSOyTkoTolDtnyn8Q==} - engines: {node: '>=14.0.0'} - dependencies: - '@aws-crypto/sha256-browser': 3.0.0 - '@aws-crypto/sha256-js': 3.0.0 - '@aws-sdk/client-sts': 3.533.0(@aws-sdk/credential-provider-node@3.533.0) - '@aws-sdk/core': 3.533.0 - '@aws-sdk/credential-provider-node': 3.533.0 - '@aws-sdk/middleware-host-header': 3.533.0 - '@aws-sdk/middleware-logger': 3.533.0 - '@aws-sdk/middleware-recursion-detection': 3.533.0 - '@aws-sdk/middleware-user-agent': 3.533.0 - '@aws-sdk/region-config-resolver': 3.533.0 - '@aws-sdk/types': 3.533.0 - '@aws-sdk/util-endpoints': 3.533.0 - '@aws-sdk/util-user-agent-browser': 3.533.0 - '@aws-sdk/util-user-agent-node': 3.533.0 - '@smithy/config-resolver': 2.1.5 - '@smithy/core': 1.3.8 - '@smithy/fetch-http-handler': 2.4.5 - '@smithy/hash-node': 2.1.4 - '@smithy/invalid-dependency': 2.1.4 - '@smithy/middleware-content-length': 2.1.4 - '@smithy/middleware-endpoint': 2.4.6 - '@smithy/middleware-retry': 2.1.7 - '@smithy/middleware-serde': 2.2.1 - '@smithy/middleware-stack': 2.1.4 - '@smithy/node-config-provider': 2.2.5 - '@smithy/node-http-handler': 2.4.3 - '@smithy/protocol-http': 3.2.2 - '@smithy/smithy-client': 2.4.5 - '@smithy/types': 2.11.0 - '@smithy/url-parser': 2.1.4 - '@smithy/util-base64': 2.2.1 - '@smithy/util-body-length-browser': 2.1.1 - '@smithy/util-body-length-node': 2.2.2 - '@smithy/util-defaults-mode-browser': 2.1.7 - '@smithy/util-defaults-mode-node': 2.2.7 - '@smithy/util-endpoints': 1.1.5 - '@smithy/util-middleware': 2.1.4 - '@smithy/util-retry': 2.1.4 - '@smithy/util-utf8': 2.2.0 - tslib: 2.6.2 - uuid: 9.0.1 - transitivePeerDependencies: - - aws-crt - dev: false - - /@aws-sdk/client-sns@3.533.0: - resolution: {integrity: sha512-jUQtrXQYxqfFSbNnquDpnI4dUxvh/ZXpsEdBu+Bu6gsyCLD7oUNoa1kdnIzJl+YdG4L4vSBb/GKC8OTfjcSHMw==} - engines: {node: '>=14.0.0'} - dependencies: - '@aws-crypto/sha256-browser': 3.0.0 - '@aws-crypto/sha256-js': 3.0.0 - '@aws-sdk/client-sts': 3.533.0(@aws-sdk/credential-provider-node@3.533.0) - '@aws-sdk/core': 3.533.0 - '@aws-sdk/credential-provider-node': 3.533.0 - '@aws-sdk/middleware-host-header': 3.533.0 - '@aws-sdk/middleware-logger': 3.533.0 - '@aws-sdk/middleware-recursion-detection': 3.533.0 - '@aws-sdk/middleware-user-agent': 3.533.0 - '@aws-sdk/region-config-resolver': 3.533.0 - '@aws-sdk/types': 3.533.0 - '@aws-sdk/util-endpoints': 3.533.0 - '@aws-sdk/util-user-agent-browser': 3.533.0 - '@aws-sdk/util-user-agent-node': 3.533.0 - '@smithy/config-resolver': 2.1.5 - '@smithy/core': 1.3.8 - '@smithy/fetch-http-handler': 2.4.5 - '@smithy/hash-node': 2.1.4 - '@smithy/invalid-dependency': 2.1.4 - '@smithy/middleware-content-length': 2.1.4 - '@smithy/middleware-endpoint': 2.4.6 - '@smithy/middleware-retry': 2.1.7 - '@smithy/middleware-serde': 2.2.1 - '@smithy/middleware-stack': 2.1.4 - '@smithy/node-config-provider': 2.2.5 - '@smithy/node-http-handler': 2.4.3 - '@smithy/protocol-http': 3.2.2 - '@smithy/smithy-client': 2.4.5 - '@smithy/types': 2.11.0 - '@smithy/url-parser': 2.1.4 - '@smithy/util-base64': 2.2.1 - '@smithy/util-body-length-browser': 2.1.1 - '@smithy/util-body-length-node': 2.2.2 - '@smithy/util-defaults-mode-browser': 2.1.7 - '@smithy/util-defaults-mode-node': 2.2.7 - '@smithy/util-endpoints': 1.1.5 - '@smithy/util-middleware': 2.1.4 - '@smithy/util-retry': 2.1.4 - '@smithy/util-utf8': 2.2.0 - tslib: 2.6.2 - transitivePeerDependencies: - - aws-crt - dev: false - - /@aws-sdk/client-sqs@3.533.0: - resolution: {integrity: sha512-BfCfAyysW9yn7dUdnkByukbYJa5Pqkwy4MIM7o+wz8D5TFROzfJgSCwSXfYDd4a/dtZPRSKwk3p8IQfJDP+Fyw==} - engines: {node: '>=14.0.0'} - dependencies: - '@aws-crypto/sha256-browser': 3.0.0 - '@aws-crypto/sha256-js': 3.0.0 - '@aws-sdk/client-sts': 3.533.0(@aws-sdk/credential-provider-node@3.533.0) - '@aws-sdk/core': 3.533.0 - '@aws-sdk/credential-provider-node': 3.533.0 - '@aws-sdk/middleware-host-header': 3.533.0 - '@aws-sdk/middleware-logger': 3.533.0 - '@aws-sdk/middleware-recursion-detection': 3.533.0 - '@aws-sdk/middleware-sdk-sqs': 3.533.0 - '@aws-sdk/middleware-user-agent': 3.533.0 - '@aws-sdk/region-config-resolver': 3.533.0 - '@aws-sdk/types': 3.533.0 - '@aws-sdk/util-endpoints': 3.533.0 - '@aws-sdk/util-user-agent-browser': 3.533.0 - '@aws-sdk/util-user-agent-node': 3.533.0 - '@smithy/config-resolver': 2.1.5 - '@smithy/core': 1.3.8 - '@smithy/fetch-http-handler': 2.4.5 - '@smithy/hash-node': 2.1.4 - '@smithy/invalid-dependency': 2.1.4 - '@smithy/md5-js': 2.1.4 - '@smithy/middleware-content-length': 2.1.4 - '@smithy/middleware-endpoint': 2.4.6 - '@smithy/middleware-retry': 2.1.7 - '@smithy/middleware-serde': 2.2.1 - '@smithy/middleware-stack': 2.1.4 - '@smithy/node-config-provider': 2.2.5 - '@smithy/node-http-handler': 2.4.3 - '@smithy/protocol-http': 3.2.2 - '@smithy/smithy-client': 2.4.5 - '@smithy/types': 2.11.0 - '@smithy/url-parser': 2.1.4 - '@smithy/util-base64': 2.2.1 - '@smithy/util-body-length-browser': 2.1.1 - '@smithy/util-body-length-node': 2.2.2 - '@smithy/util-defaults-mode-browser': 2.1.7 - '@smithy/util-defaults-mode-node': 2.2.7 - '@smithy/util-endpoints': 1.1.5 - '@smithy/util-middleware': 2.1.4 - '@smithy/util-retry': 2.1.4 - '@smithy/util-utf8': 2.2.0 + '@aws-sdk/client-sts': 3.535.0(@aws-sdk/credential-provider-node@3.535.0) + '@aws-sdk/core': 3.535.0 + '@aws-sdk/credential-provider-node': 3.535.0 + '@aws-sdk/middleware-bucket-endpoint': 3.535.0 + '@aws-sdk/middleware-expect-continue': 3.535.0 + '@aws-sdk/middleware-flexible-checksums': 3.535.0 + '@aws-sdk/middleware-host-header': 3.535.0 + '@aws-sdk/middleware-location-constraint': 3.535.0 + '@aws-sdk/middleware-logger': 3.535.0 + '@aws-sdk/middleware-recursion-detection': 3.535.0 + '@aws-sdk/middleware-sdk-s3': 3.535.0 + '@aws-sdk/middleware-signing': 3.535.0 + '@aws-sdk/middleware-ssec': 3.537.0 + '@aws-sdk/middleware-user-agent': 3.535.0 + '@aws-sdk/region-config-resolver': 3.535.0 + '@aws-sdk/signature-v4-multi-region': 3.535.0 + '@aws-sdk/types': 3.535.0 + '@aws-sdk/util-endpoints': 3.535.0 + '@aws-sdk/util-user-agent-browser': 3.535.0 + '@aws-sdk/util-user-agent-node': 3.535.0 + '@aws-sdk/xml-builder': 3.535.0 + '@smithy/config-resolver': 2.2.0 + '@smithy/core': 1.4.0 + '@smithy/eventstream-serde-browser': 2.2.0 + '@smithy/eventstream-serde-config-resolver': 2.2.0 + '@smithy/eventstream-serde-node': 2.2.0 + '@smithy/fetch-http-handler': 2.5.0 + '@smithy/hash-blob-browser': 2.2.0 + '@smithy/hash-node': 2.2.0 + '@smithy/hash-stream-node': 2.2.0 + '@smithy/invalid-dependency': 2.2.0 + '@smithy/md5-js': 2.2.0 + '@smithy/middleware-content-length': 2.2.0 + '@smithy/middleware-endpoint': 2.5.0 + '@smithy/middleware-retry': 2.2.0 + '@smithy/middleware-serde': 2.3.0 + '@smithy/middleware-stack': 2.2.0 + '@smithy/node-config-provider': 2.3.0 + '@smithy/node-http-handler': 2.5.0 + '@smithy/protocol-http': 3.3.0 + '@smithy/smithy-client': 2.5.0 + '@smithy/types': 2.12.0 + '@smithy/url-parser': 2.2.0 + '@smithy/util-base64': 2.3.0 + '@smithy/util-body-length-browser': 2.2.0 + '@smithy/util-body-length-node': 2.3.0 + '@smithy/util-defaults-mode-browser': 2.2.0 + '@smithy/util-defaults-mode-node': 2.3.0 + '@smithy/util-endpoints': 1.2.0 + '@smithy/util-retry': 2.2.0 + '@smithy/util-stream': 2.2.0 + '@smithy/util-utf8': 2.3.0 + '@smithy/util-waiter': 2.2.0 tslib: 2.6.2 transitivePeerDependencies: - aws-crt - dev: false - /@aws-sdk/client-sso-oidc@3.533.0(@aws-sdk/credential-provider-node@3.533.0): - resolution: {integrity: sha512-jxG+L81bcuH6JJkls+VSRsOTpixvNEQ8clpUglal/XC+qiV09yZUnOi+Fxf2q7OAB7bfM9DB3Wy8YwbhaR2wYg==} + /@aws-sdk/client-sso-oidc@3.535.0(@aws-sdk/credential-provider-node@3.535.0): + resolution: {integrity: sha512-M2cG4EQXDpAJQyq33ORIr6abmdX9p9zX0ssVy8XwFNB7lrgoIKxuVoGL+fX+XMgecl24x7ELz6b4QlILOevbCw==} engines: {node: '>=14.0.0'} peerDependencies: - '@aws-sdk/credential-provider-node': ^3.533.0 + '@aws-sdk/credential-provider-node': ^3.535.0 dependencies: '@aws-crypto/sha256-browser': 3.0.0 '@aws-crypto/sha256-js': 3.0.0 - '@aws-sdk/client-sts': 3.533.0(@aws-sdk/credential-provider-node@3.533.0) - '@aws-sdk/core': 3.533.0 - '@aws-sdk/credential-provider-node': 3.533.0 - '@aws-sdk/middleware-host-header': 3.533.0 - '@aws-sdk/middleware-logger': 3.533.0 - '@aws-sdk/middleware-recursion-detection': 3.533.0 - '@aws-sdk/middleware-user-agent': 3.533.0 - '@aws-sdk/region-config-resolver': 3.533.0 - '@aws-sdk/types': 3.533.0 - '@aws-sdk/util-endpoints': 3.533.0 - '@aws-sdk/util-user-agent-browser': 3.533.0 - '@aws-sdk/util-user-agent-node': 3.533.0 - '@smithy/config-resolver': 2.1.5 - '@smithy/core': 1.3.8 - '@smithy/fetch-http-handler': 2.4.5 - '@smithy/hash-node': 2.1.4 - '@smithy/invalid-dependency': 2.1.4 - '@smithy/middleware-content-length': 2.1.4 - '@smithy/middleware-endpoint': 2.4.6 - '@smithy/middleware-retry': 2.1.7 - '@smithy/middleware-serde': 2.2.1 - '@smithy/middleware-stack': 2.1.4 - '@smithy/node-config-provider': 2.2.5 - '@smithy/node-http-handler': 2.4.3 - '@smithy/protocol-http': 3.2.2 - '@smithy/smithy-client': 2.4.5 - '@smithy/types': 2.11.0 - '@smithy/url-parser': 2.1.4 - '@smithy/util-base64': 2.2.1 - '@smithy/util-body-length-browser': 2.1.1 - '@smithy/util-body-length-node': 2.2.2 - '@smithy/util-defaults-mode-browser': 2.1.7 - '@smithy/util-defaults-mode-node': 2.2.7 - '@smithy/util-endpoints': 1.1.5 - '@smithy/util-middleware': 2.1.4 - '@smithy/util-retry': 2.1.4 - '@smithy/util-utf8': 2.2.0 + '@aws-sdk/client-sts': 3.535.0(@aws-sdk/credential-provider-node@3.535.0) + '@aws-sdk/core': 3.535.0 + '@aws-sdk/credential-provider-node': 3.535.0 + '@aws-sdk/middleware-host-header': 3.535.0 + '@aws-sdk/middleware-logger': 3.535.0 + '@aws-sdk/middleware-recursion-detection': 3.535.0 + '@aws-sdk/middleware-user-agent': 3.535.0 + '@aws-sdk/region-config-resolver': 3.535.0 + '@aws-sdk/types': 3.535.0 + '@aws-sdk/util-endpoints': 3.535.0 + '@aws-sdk/util-user-agent-browser': 3.535.0 + '@aws-sdk/util-user-agent-node': 3.535.0 + '@smithy/config-resolver': 2.2.0 + '@smithy/core': 1.4.0 + '@smithy/fetch-http-handler': 2.5.0 + '@smithy/hash-node': 2.2.0 + '@smithy/invalid-dependency': 2.2.0 + '@smithy/middleware-content-length': 2.2.0 + '@smithy/middleware-endpoint': 2.5.0 + '@smithy/middleware-retry': 2.2.0 + '@smithy/middleware-serde': 2.3.0 + '@smithy/middleware-stack': 2.2.0 + '@smithy/node-config-provider': 2.3.0 + '@smithy/node-http-handler': 2.5.0 + '@smithy/protocol-http': 3.3.0 + '@smithy/smithy-client': 2.5.0 + '@smithy/types': 2.12.0 + '@smithy/url-parser': 2.2.0 + '@smithy/util-base64': 2.3.0 + '@smithy/util-body-length-browser': 2.2.0 + '@smithy/util-body-length-node': 2.3.0 + '@smithy/util-defaults-mode-browser': 2.2.0 + '@smithy/util-defaults-mode-node': 2.3.0 + '@smithy/util-endpoints': 1.2.0 + '@smithy/util-middleware': 2.2.0 + '@smithy/util-retry': 2.2.0 + '@smithy/util-utf8': 2.3.0 tslib: 2.6.2 transitivePeerDependencies: - aws-crt - dev: false - /@aws-sdk/client-sso@3.533.0: - resolution: {integrity: sha512-qO+PCEM3fGS/3uBJQjQ01oAI+ashN0CHTJF8X0h3ycVsv3VAAYrpZigpylOOgv7c253s7VrSwjvdKIE8yTbelw==} + /@aws-sdk/client-sso@3.535.0: + resolution: {integrity: sha512-h9eQRdFnjDRVBnPJIKXuX7D+isSAioIfZPC4PQwsL5BscTRlk4c90DX0R0uk64YUtp7LZu8TNtrosFZ/1HtTrQ==} engines: {node: '>=14.0.0'} dependencies: '@aws-crypto/sha256-browser': 3.0.0 '@aws-crypto/sha256-js': 3.0.0 - '@aws-sdk/core': 3.533.0 - '@aws-sdk/middleware-host-header': 3.533.0 - '@aws-sdk/middleware-logger': 3.533.0 - '@aws-sdk/middleware-recursion-detection': 3.533.0 - '@aws-sdk/middleware-user-agent': 3.533.0 - '@aws-sdk/region-config-resolver': 3.533.0 - '@aws-sdk/types': 3.533.0 - '@aws-sdk/util-endpoints': 3.533.0 - '@aws-sdk/util-user-agent-browser': 3.533.0 - '@aws-sdk/util-user-agent-node': 3.533.0 - '@smithy/config-resolver': 2.1.5 - '@smithy/core': 1.3.8 - '@smithy/fetch-http-handler': 2.4.5 - '@smithy/hash-node': 2.1.4 - '@smithy/invalid-dependency': 2.1.4 - '@smithy/middleware-content-length': 2.1.4 - '@smithy/middleware-endpoint': 2.4.6 - '@smithy/middleware-retry': 2.1.7 - '@smithy/middleware-serde': 2.2.1 - '@smithy/middleware-stack': 2.1.4 - '@smithy/node-config-provider': 2.2.5 - '@smithy/node-http-handler': 2.4.3 - '@smithy/protocol-http': 3.2.2 - '@smithy/smithy-client': 2.4.5 - '@smithy/types': 2.11.0 - '@smithy/url-parser': 2.1.4 - '@smithy/util-base64': 2.2.1 - '@smithy/util-body-length-browser': 2.1.1 - '@smithy/util-body-length-node': 2.2.2 - '@smithy/util-defaults-mode-browser': 2.1.7 - '@smithy/util-defaults-mode-node': 2.2.7 - '@smithy/util-endpoints': 1.1.5 - '@smithy/util-middleware': 2.1.4 - '@smithy/util-retry': 2.1.4 - '@smithy/util-utf8': 2.2.0 + '@aws-sdk/core': 3.535.0 + '@aws-sdk/middleware-host-header': 3.535.0 + '@aws-sdk/middleware-logger': 3.535.0 + '@aws-sdk/middleware-recursion-detection': 3.535.0 + '@aws-sdk/middleware-user-agent': 3.535.0 + '@aws-sdk/region-config-resolver': 3.535.0 + '@aws-sdk/types': 3.535.0 + '@aws-sdk/util-endpoints': 3.535.0 + '@aws-sdk/util-user-agent-browser': 3.535.0 + '@aws-sdk/util-user-agent-node': 3.535.0 + '@smithy/config-resolver': 2.2.0 + '@smithy/core': 1.4.0 + '@smithy/fetch-http-handler': 2.5.0 + '@smithy/hash-node': 2.2.0 + '@smithy/invalid-dependency': 2.2.0 + '@smithy/middleware-content-length': 2.2.0 + '@smithy/middleware-endpoint': 2.5.0 + '@smithy/middleware-retry': 2.2.0 + '@smithy/middleware-serde': 2.3.0 + '@smithy/middleware-stack': 2.2.0 + '@smithy/node-config-provider': 2.3.0 + '@smithy/node-http-handler': 2.5.0 + '@smithy/protocol-http': 3.3.0 + '@smithy/smithy-client': 2.5.0 + '@smithy/types': 2.12.0 + '@smithy/url-parser': 2.2.0 + '@smithy/util-base64': 2.3.0 + '@smithy/util-body-length-browser': 2.2.0 + '@smithy/util-body-length-node': 2.3.0 + '@smithy/util-defaults-mode-browser': 2.2.0 + '@smithy/util-defaults-mode-node': 2.3.0 + '@smithy/util-endpoints': 1.2.0 + '@smithy/util-middleware': 2.2.0 + '@smithy/util-retry': 2.2.0 + '@smithy/util-utf8': 2.3.0 tslib: 2.6.2 transitivePeerDependencies: - aws-crt - dev: false - /@aws-sdk/client-sts@3.533.0(@aws-sdk/credential-provider-node@3.533.0): - resolution: {integrity: sha512-Z/z76T/pEq0DsBpoyWSMQdS7R6IRpq2ZV6dfZwr+HZ2vho2Icd70nIxwiNzZxaV16aVIhu5/l/5v5Ns9ZCfyOA==} + /@aws-sdk/client-sts@3.535.0(@aws-sdk/credential-provider-node@3.535.0): + resolution: {integrity: sha512-ii9OOm3TJwP3JmO1IVJXKWIShVKPl0VtdlgROc/SkDglO/kuAw9eDdlROgc+qbFl+gm6bBTguOVTUXt3tS3flw==} engines: {node: '>=14.0.0'} peerDependencies: - '@aws-sdk/credential-provider-node': ^3.533.0 + '@aws-sdk/credential-provider-node': ^3.535.0 dependencies: '@aws-crypto/sha256-browser': 3.0.0 '@aws-crypto/sha256-js': 3.0.0 - '@aws-sdk/core': 3.533.0 - '@aws-sdk/credential-provider-node': 3.533.0 - '@aws-sdk/middleware-host-header': 3.533.0 - '@aws-sdk/middleware-logger': 3.533.0 - '@aws-sdk/middleware-recursion-detection': 3.533.0 - '@aws-sdk/middleware-user-agent': 3.533.0 - '@aws-sdk/region-config-resolver': 3.533.0 - '@aws-sdk/types': 3.533.0 - '@aws-sdk/util-endpoints': 3.533.0 - '@aws-sdk/util-user-agent-browser': 3.533.0 - '@aws-sdk/util-user-agent-node': 3.533.0 - '@smithy/config-resolver': 2.1.5 - '@smithy/core': 1.3.8 - '@smithy/fetch-http-handler': 2.4.5 - '@smithy/hash-node': 2.1.4 - '@smithy/invalid-dependency': 2.1.4 - '@smithy/middleware-content-length': 2.1.4 - '@smithy/middleware-endpoint': 2.4.6 - '@smithy/middleware-retry': 2.1.7 - '@smithy/middleware-serde': 2.2.1 - '@smithy/middleware-stack': 2.1.4 - '@smithy/node-config-provider': 2.2.5 - '@smithy/node-http-handler': 2.4.3 - '@smithy/protocol-http': 3.2.2 - '@smithy/smithy-client': 2.4.5 - '@smithy/types': 2.11.0 - '@smithy/url-parser': 2.1.4 - '@smithy/util-base64': 2.2.1 - '@smithy/util-body-length-browser': 2.1.1 - '@smithy/util-body-length-node': 2.2.2 - '@smithy/util-defaults-mode-browser': 2.1.7 - '@smithy/util-defaults-mode-node': 2.2.7 - '@smithy/util-endpoints': 1.1.5 - '@smithy/util-middleware': 2.1.4 - '@smithy/util-retry': 2.1.4 - '@smithy/util-utf8': 2.2.0 + '@aws-sdk/core': 3.535.0 + '@aws-sdk/credential-provider-node': 3.535.0 + '@aws-sdk/middleware-host-header': 3.535.0 + '@aws-sdk/middleware-logger': 3.535.0 + '@aws-sdk/middleware-recursion-detection': 3.535.0 + '@aws-sdk/middleware-user-agent': 3.535.0 + '@aws-sdk/region-config-resolver': 3.535.0 + '@aws-sdk/types': 3.535.0 + '@aws-sdk/util-endpoints': 3.535.0 + '@aws-sdk/util-user-agent-browser': 3.535.0 + '@aws-sdk/util-user-agent-node': 3.535.0 + '@smithy/config-resolver': 2.2.0 + '@smithy/core': 1.4.0 + '@smithy/fetch-http-handler': 2.5.0 + '@smithy/hash-node': 2.2.0 + '@smithy/invalid-dependency': 2.2.0 + '@smithy/middleware-content-length': 2.2.0 + '@smithy/middleware-endpoint': 2.5.0 + '@smithy/middleware-retry': 2.2.0 + '@smithy/middleware-serde': 2.3.0 + '@smithy/middleware-stack': 2.2.0 + '@smithy/node-config-provider': 2.3.0 + '@smithy/node-http-handler': 2.5.0 + '@smithy/protocol-http': 3.3.0 + '@smithy/smithy-client': 2.5.0 + '@smithy/types': 2.12.0 + '@smithy/url-parser': 2.2.0 + '@smithy/util-base64': 2.3.0 + '@smithy/util-body-length-browser': 2.2.0 + '@smithy/util-body-length-node': 2.3.0 + '@smithy/util-defaults-mode-browser': 2.2.0 + '@smithy/util-defaults-mode-node': 2.3.0 + '@smithy/util-endpoints': 1.2.0 + '@smithy/util-middleware': 2.2.0 + '@smithy/util-retry': 2.2.0 + '@smithy/util-utf8': 2.3.0 tslib: 2.6.2 transitivePeerDependencies: - aws-crt - dev: false - /@aws-sdk/core@3.533.0: - resolution: {integrity: sha512-m3jq9WJbIvlDOnN5KG5U/org1MwOwXzfyU2Rr/48rRey6/+kNSm5QzYZMT0Htsk8V5Ukp325dzs/XR8DyO9uMQ==} + /@aws-sdk/core@3.535.0: + resolution: {integrity: sha512-+Yusa9HziuaEDta1UaLEtMAtmgvxdxhPn7jgfRY6PplqAqgsfa5FR83sxy5qr2q7xjQTwHtV4MjQVuOjG9JsLw==} engines: {node: '>=14.0.0'} dependencies: - '@smithy/core': 1.3.8 - '@smithy/protocol-http': 3.2.2 - '@smithy/signature-v4': 2.1.4 - '@smithy/smithy-client': 2.4.5 - '@smithy/types': 2.11.0 + '@smithy/core': 1.4.0 + '@smithy/protocol-http': 3.3.0 + '@smithy/signature-v4': 2.2.0 + '@smithy/smithy-client': 2.5.0 + '@smithy/types': 2.12.0 fast-xml-parser: 4.2.5 tslib: 2.6.2 - dev: false - /@aws-sdk/credential-provider-env@3.533.0: - resolution: {integrity: sha512-opj7hfcCeNosSmxfJkJr0Af0aSxlqwkdCPlLEvOTwbHmdkovD+SyEpaI4/0ild0syZDMifuJAU6I6K0ukbcm3g==} + /@aws-sdk/credential-provider-env@3.535.0: + resolution: {integrity: sha512-XppwO8c0GCGSAvdzyJOhbtktSEaShg14VJKg8mpMa1XcgqzmcqqHQjtDWbx5rZheY1VdpXZhpEzJkB6LpQejpA==} engines: {node: '>=14.0.0'} dependencies: - '@aws-sdk/types': 3.533.0 - '@smithy/property-provider': 2.1.4 - '@smithy/types': 2.11.0 + '@aws-sdk/types': 3.535.0 + '@smithy/property-provider': 2.2.0 + '@smithy/types': 2.12.0 tslib: 2.6.2 - dev: false - /@aws-sdk/credential-provider-http@3.533.0: - resolution: {integrity: sha512-m5z3V9MRO77t1CF312QKaQSfYG2MM/USqZ1Jj6srb+kJBX+GuVXbkc0+NwrpG5+j8Iukgxy1tms+0p3Wjatu6A==} + /@aws-sdk/credential-provider-http@3.535.0: + resolution: {integrity: sha512-kdj1wCmOMZ29jSlUskRqN04S6fJ4dvt0Nq9Z32SA6wO7UG8ht6Ot9h/au/eTWJM3E1somZ7D771oK7dQt9b8yw==} engines: {node: '>=14.0.0'} dependencies: - '@aws-sdk/types': 3.533.0 - '@smithy/fetch-http-handler': 2.4.5 - '@smithy/node-http-handler': 2.4.3 - '@smithy/property-provider': 2.1.4 - '@smithy/protocol-http': 3.2.2 - '@smithy/smithy-client': 2.4.5 - '@smithy/types': 2.11.0 - '@smithy/util-stream': 2.1.5 + '@aws-sdk/types': 3.535.0 + '@smithy/fetch-http-handler': 2.5.0 + '@smithy/node-http-handler': 2.5.0 + '@smithy/property-provider': 2.2.0 + '@smithy/protocol-http': 3.3.0 + '@smithy/smithy-client': 2.5.0 + '@smithy/types': 2.12.0 + '@smithy/util-stream': 2.2.0 tslib: 2.6.2 - dev: false - /@aws-sdk/credential-provider-ini@3.533.0(@aws-sdk/credential-provider-node@3.533.0): - resolution: {integrity: sha512-xQ7TMY+j99zxOph+LJJhGPIav6RpydESZgIp5cp/pFY4Liwe5e84M7SaCgkFLck2HE9s7MhP42c8xmC6u9PIuw==} + /@aws-sdk/credential-provider-ini@3.535.0(@aws-sdk/credential-provider-node@3.535.0): + resolution: {integrity: sha512-bm3XOYlyCjtAb8eeHXLrxqRxYVRw2Iqv9IufdJb4gM13TbNSYniUT1WKaHxGIZ5p+FuNlXVhvk1OpHFM13+gXA==} engines: {node: '>=14.0.0'} dependencies: - '@aws-sdk/client-sts': 3.533.0(@aws-sdk/credential-provider-node@3.533.0) - '@aws-sdk/credential-provider-env': 3.533.0 - '@aws-sdk/credential-provider-process': 3.533.0 - '@aws-sdk/credential-provider-sso': 3.533.0(@aws-sdk/credential-provider-node@3.533.0) - '@aws-sdk/credential-provider-web-identity': 3.533.0(@aws-sdk/credential-provider-node@3.533.0) - '@aws-sdk/types': 3.533.0 - '@smithy/credential-provider-imds': 2.2.6 - '@smithy/property-provider': 2.1.4 - '@smithy/shared-ini-file-loader': 2.3.5 - '@smithy/types': 2.11.0 + '@aws-sdk/client-sts': 3.535.0(@aws-sdk/credential-provider-node@3.535.0) + '@aws-sdk/credential-provider-env': 3.535.0 + '@aws-sdk/credential-provider-process': 3.535.0 + '@aws-sdk/credential-provider-sso': 3.535.0(@aws-sdk/credential-provider-node@3.535.0) + '@aws-sdk/credential-provider-web-identity': 3.535.0(@aws-sdk/credential-provider-node@3.535.0) + '@aws-sdk/types': 3.535.0 + '@smithy/credential-provider-imds': 2.3.0 + '@smithy/property-provider': 2.2.0 + '@smithy/shared-ini-file-loader': 2.4.0 + '@smithy/types': 2.12.0 tslib: 2.6.2 transitivePeerDependencies: - '@aws-sdk/credential-provider-node' - aws-crt - dev: false - /@aws-sdk/credential-provider-node@3.533.0: - resolution: {integrity: sha512-Tn2grwFfFDLV5Hr8sZvZY5pjEmDUOm/e+ipnyxxCBB/K7t2ru2R4jG/RUa6+dZXSH/pi+TNte9cYq/Lx2Szjlw==} + /@aws-sdk/credential-provider-node@3.535.0: + resolution: {integrity: sha512-6JXp/EuL6euUkH5k4d+lQFF6gBwukrcCOWfNHCmq14mNJf/cqT3HAX1VMtWFRSK20am0IxfYQGccb0/nZykdKg==} engines: {node: '>=14.0.0'} dependencies: - '@aws-sdk/credential-provider-env': 3.533.0 - '@aws-sdk/credential-provider-http': 3.533.0 - '@aws-sdk/credential-provider-ini': 3.533.0(@aws-sdk/credential-provider-node@3.533.0) - '@aws-sdk/credential-provider-process': 3.533.0 - '@aws-sdk/credential-provider-sso': 3.533.0(@aws-sdk/credential-provider-node@3.533.0) - '@aws-sdk/credential-provider-web-identity': 3.533.0(@aws-sdk/credential-provider-node@3.533.0) - '@aws-sdk/types': 3.533.0 - '@smithy/credential-provider-imds': 2.2.6 - '@smithy/property-provider': 2.1.4 - '@smithy/shared-ini-file-loader': 2.3.5 - '@smithy/types': 2.11.0 + '@aws-sdk/credential-provider-env': 3.535.0 + '@aws-sdk/credential-provider-http': 3.535.0 + '@aws-sdk/credential-provider-ini': 3.535.0(@aws-sdk/credential-provider-node@3.535.0) + '@aws-sdk/credential-provider-process': 3.535.0 + '@aws-sdk/credential-provider-sso': 3.535.0(@aws-sdk/credential-provider-node@3.535.0) + '@aws-sdk/credential-provider-web-identity': 3.535.0(@aws-sdk/credential-provider-node@3.535.0) + '@aws-sdk/types': 3.535.0 + '@smithy/credential-provider-imds': 2.3.0 + '@smithy/property-provider': 2.2.0 + '@smithy/shared-ini-file-loader': 2.4.0 + '@smithy/types': 2.12.0 tslib: 2.6.2 transitivePeerDependencies: - aws-crt - dev: false - /@aws-sdk/credential-provider-process@3.533.0: - resolution: {integrity: sha512-9Iuhp8dhMqEv7kPsZlc9KFhC5XvuB/jFv3IZoTtRgbACW4cdxng7OwJEWdeZGrcjy9x40Tc2DT9KcmCE895KpQ==} + /@aws-sdk/credential-provider-process@3.535.0: + resolution: {integrity: sha512-9O1OaprGCnlb/kYl8RwmH7Mlg8JREZctB8r9sa1KhSsWFq/SWO0AuJTyowxD7zL5PkeS4eTvzFFHWCa3OO5epA==} engines: {node: '>=14.0.0'} dependencies: - '@aws-sdk/types': 3.533.0 - '@smithy/property-provider': 2.1.4 - '@smithy/shared-ini-file-loader': 2.3.5 - '@smithy/types': 2.11.0 + '@aws-sdk/types': 3.535.0 + '@smithy/property-provider': 2.2.0 + '@smithy/shared-ini-file-loader': 2.4.0 + '@smithy/types': 2.12.0 tslib: 2.6.2 - dev: false - /@aws-sdk/credential-provider-sso@3.533.0(@aws-sdk/credential-provider-node@3.533.0): - resolution: {integrity: sha512-1zPZQnFUoZ0fWuLPW2X2L3jPKyd+qW8VzFO1k26oX1KJuiEZJzoYbfap08soy6vhFI+n4NfsAgvoA1IMsqG0Pg==} + /@aws-sdk/credential-provider-sso@3.535.0(@aws-sdk/credential-provider-node@3.535.0): + resolution: {integrity: sha512-2Dw0YIr8ETdFpq65CC4zK8ZIEbX78rXoNRZXUGNQW3oSKfL0tj8O8ErY6kg1IdEnYbGnEQ35q6luZ5GGNKLgDg==} engines: {node: '>=14.0.0'} dependencies: - '@aws-sdk/client-sso': 3.533.0 - '@aws-sdk/token-providers': 3.533.0(@aws-sdk/credential-provider-node@3.533.0) - '@aws-sdk/types': 3.533.0 - '@smithy/property-provider': 2.1.4 - '@smithy/shared-ini-file-loader': 2.3.5 - '@smithy/types': 2.11.0 + '@aws-sdk/client-sso': 3.535.0 + '@aws-sdk/token-providers': 3.535.0(@aws-sdk/credential-provider-node@3.535.0) + '@aws-sdk/types': 3.535.0 + '@smithy/property-provider': 2.2.0 + '@smithy/shared-ini-file-loader': 2.4.0 + '@smithy/types': 2.12.0 tslib: 2.6.2 transitivePeerDependencies: - '@aws-sdk/credential-provider-node' - aws-crt - dev: false - /@aws-sdk/credential-provider-web-identity@3.533.0(@aws-sdk/credential-provider-node@3.533.0): - resolution: {integrity: sha512-utemXrFmvFxBvX+WCznlh5wGdXRIfwEyeNIDFs+WLRn8NIR/6gqCipi7rlC9ZbFFkBhkCTssa6+ruXG+kUQcMg==} + /@aws-sdk/credential-provider-web-identity@3.535.0(@aws-sdk/credential-provider-node@3.535.0): + resolution: {integrity: sha512-t2/JWrKY0H66A7JW7CqX06/DG2YkJddikt5ymdQvx/Q7dRMJ3d+o/vgjoKr7RvEx/pNruCeyM1599HCvwrVMrg==} engines: {node: '>=14.0.0'} dependencies: - '@aws-sdk/client-sts': 3.533.0(@aws-sdk/credential-provider-node@3.533.0) - '@aws-sdk/types': 3.533.0 - '@smithy/property-provider': 2.1.4 - '@smithy/types': 2.11.0 + '@aws-sdk/client-sts': 3.535.0(@aws-sdk/credential-provider-node@3.535.0) + '@aws-sdk/types': 3.535.0 + '@smithy/property-provider': 2.2.0 + '@smithy/types': 2.12.0 tslib: 2.6.2 transitivePeerDependencies: - '@aws-sdk/credential-provider-node' - aws-crt - dev: false - - /@aws-sdk/endpoint-cache@3.495.0: - resolution: {integrity: sha512-XCDrpiS50WaPzPzp7FwsChPHtX9PQQUU4nRzcn2N7IkUtpcFCUx8m1PAZe086VQr6hrbdeE4Z4j8hUPNwVdJGQ==} - engines: {node: '>=14.0.0'} - dependencies: - mnemonist: 0.38.3 - tslib: 2.6.2 - dev: false - - /@aws-sdk/lib-dynamodb@3.533.0(@aws-sdk/client-dynamodb@3.533.0): - resolution: {integrity: sha512-8pDJZXWd9rdq1sTyvx9zgz9xg5K83aNaavVmlhcYWWFQ3Ykqf1sVPb14dG0MeRLwaWpU3D6Htj6+9m+tSyQ8ag==} - engines: {node: '>=14.0.0'} - peerDependencies: - '@aws-sdk/client-dynamodb': ^3.0.0 - dependencies: - '@aws-sdk/client-dynamodb': 3.533.0 - '@aws-sdk/util-dynamodb': 3.533.0(@aws-sdk/client-dynamodb@3.533.0) - '@smithy/smithy-client': 2.4.5 - '@smithy/types': 2.11.0 - tslib: 2.6.2 - dev: false - - /@aws-sdk/middleware-bucket-endpoint@3.533.0: - resolution: {integrity: sha512-k1KJe8SEDfgXpEBlMmlCBHhUFJekL5pEEfwbcS/cfjfcZIWrLlfTqjnA0+TKrB6EO/8ZZiKaxHrTjhft5AMcqA==} - engines: {node: '>=14.0.0'} - dependencies: - '@aws-sdk/types': 3.533.0 - '@aws-sdk/util-arn-parser': 3.495.0 - '@smithy/node-config-provider': 2.2.5 - '@smithy/protocol-http': 3.2.2 - '@smithy/types': 2.11.0 - '@smithy/util-config-provider': 2.2.1 - tslib: 2.6.2 - dev: false - /@aws-sdk/middleware-endpoint-discovery@3.533.0: - resolution: {integrity: sha512-j3RPLzTQfNYUxMj2blZBRrdTBH6BE9Mbqs1JmXL89jwGJ8M1TmMlbwplxmuGKLLKeKgB67DWow1RG58XyniSJA==} + /@aws-sdk/middleware-bucket-endpoint@3.535.0: + resolution: {integrity: sha512-7sijlfQsc4UO9Fsl11mU26Y5f9E7g6UoNg/iJUBpC5pgvvmdBRO5UEhbB/gnqvOEPsBXyhmfzbstebq23Qdz7A==} engines: {node: '>=14.0.0'} dependencies: - '@aws-sdk/endpoint-cache': 3.495.0 - '@aws-sdk/types': 3.533.0 - '@smithy/node-config-provider': 2.2.5 - '@smithy/protocol-http': 3.2.2 - '@smithy/types': 2.11.0 + '@aws-sdk/types': 3.535.0 + '@aws-sdk/util-arn-parser': 3.535.0 + '@smithy/node-config-provider': 2.3.0 + '@smithy/protocol-http': 3.3.0 + '@smithy/types': 2.12.0 + '@smithy/util-config-provider': 2.3.0 tslib: 2.6.2 - dev: false - /@aws-sdk/middleware-expect-continue@3.533.0: - resolution: {integrity: sha512-a9NXE+4DwFQgv9cS+YYg7b8ugBatATkCe/cunFRrTpqMXmIpHE8i4zDEoCZVCi4YMkLaphC/WBAhXNl4T6w8pg==} + /@aws-sdk/middleware-expect-continue@3.535.0: + resolution: {integrity: sha512-hFKyqUBky0NWCVku8iZ9+PACehx0p6vuMw5YnZf8FVgHP0fode0b/NwQY6UY7oor/GftvRsAlRUAWGNFEGUpwA==} engines: {node: '>=14.0.0'} dependencies: - '@aws-sdk/types': 3.533.0 - '@smithy/protocol-http': 3.2.2 - '@smithy/types': 2.11.0 + '@aws-sdk/types': 3.535.0 + '@smithy/protocol-http': 3.3.0 + '@smithy/types': 2.12.0 tslib: 2.6.2 - dev: false - /@aws-sdk/middleware-flexible-checksums@3.533.0: - resolution: {integrity: sha512-vvD2XPXbR4PKf3/VSx6dzB+1iWzpyy8uGlt1p1y5uvQRetbmCAnzchUd5xn18MUr85MlOKKBfykYzA7gTiVgSA==} + /@aws-sdk/middleware-flexible-checksums@3.535.0: + resolution: {integrity: sha512-rBIzldY9jjRATxICDX7t77aW6ctqmVDgnuAOgbVT5xgHftt4o7PGWKoMvl/45hYqoQgxVFnCBof9bxkqSBebVA==} engines: {node: '>=14.0.0'} dependencies: '@aws-crypto/crc32': 3.0.0 '@aws-crypto/crc32c': 3.0.0 - '@aws-sdk/types': 3.533.0 - '@smithy/is-array-buffer': 2.1.1 - '@smithy/protocol-http': 3.2.2 - '@smithy/types': 2.11.0 - '@smithy/util-utf8': 2.2.0 - tslib: 2.6.2 - dev: false - - /@aws-sdk/middleware-host-header@3.533.0: - resolution: {integrity: sha512-y9JaPjvz3pk4DZcFB6Nud//Hc6y4BkkSwiGXfthwFv5kxfaaksHKd8smDjL3RUPqDKl8AI9vxHzTz1UrQQkpQw==} - engines: {node: '>=14.0.0'} - dependencies: - '@aws-sdk/types': 3.533.0 - '@smithy/protocol-http': 3.2.2 - '@smithy/types': 2.11.0 + '@aws-sdk/types': 3.535.0 + '@smithy/is-array-buffer': 2.2.0 + '@smithy/protocol-http': 3.3.0 + '@smithy/types': 2.12.0 + '@smithy/util-utf8': 2.3.0 tslib: 2.6.2 - dev: false - /@aws-sdk/middleware-location-constraint@3.533.0: - resolution: {integrity: sha512-cZPH7L+aw9uGSIbwWmemIHHUPZ43FYwSx/hnWC8asLs3zLMD26V9TyQFAASlUk9jrzxqJg/SBaxfPHjBT3kg9w==} + /@aws-sdk/middleware-host-header@3.535.0: + resolution: {integrity: sha512-0h6TWjBWtDaYwHMQJI9ulafeS4lLaw1vIxRjbpH0svFRt6Eve+Sy8NlVhECfTU2hNz/fLubvrUxsXoThaLBIew==} engines: {node: '>=14.0.0'} dependencies: - '@aws-sdk/types': 3.533.0 - '@smithy/types': 2.11.0 + '@aws-sdk/types': 3.535.0 + '@smithy/protocol-http': 3.3.0 + '@smithy/types': 2.12.0 tslib: 2.6.2 - dev: false - /@aws-sdk/middleware-logger@3.533.0: - resolution: {integrity: sha512-W+ou4YgqnHn/xVNcBgfwAUCtXTHGJjjsFffdt69s1Tb7rP5U4gXnl8wHHADajy9tXiKK48fRc2SGF42EthjQIA==} + /@aws-sdk/middleware-location-constraint@3.535.0: + resolution: {integrity: sha512-SxfS9wfidUZZ+WnlKRTCRn3h+XTsymXRXPJj8VV6hNRNeOwzNweoG3YhQbTowuuNfXf89m9v6meYkBBtkdacKw==} engines: {node: '>=14.0.0'} dependencies: - '@aws-sdk/types': 3.533.0 - '@smithy/types': 2.11.0 + '@aws-sdk/types': 3.535.0 + '@smithy/types': 2.12.0 tslib: 2.6.2 - dev: false - /@aws-sdk/middleware-recursion-detection@3.533.0: - resolution: {integrity: sha512-dobVdJ4g1avrVG6QTRHndfvdTxUeloDCn32WLwyOV11XF/2x5p8QJ1VZS+K24xsl29DoJ8bXibZf9xZ7MPwRLg==} + /@aws-sdk/middleware-logger@3.535.0: + resolution: {integrity: sha512-huNHpONOrEDrdRTvSQr1cJiRMNf0S52NDXtaPzdxiubTkP+vni2MohmZANMOai/qT0olmEVX01LhZ0ZAOgmg6A==} engines: {node: '>=14.0.0'} dependencies: - '@aws-sdk/types': 3.533.0 - '@smithy/protocol-http': 3.2.2 - '@smithy/types': 2.11.0 + '@aws-sdk/types': 3.535.0 + '@smithy/types': 2.12.0 tslib: 2.6.2 - dev: false - /@aws-sdk/middleware-sdk-ec2@3.533.0: - resolution: {integrity: sha512-iws4L+qNtbPP0TgEDBSVCXSCd5m0TiHjyuVCAU4ERLekHlxero0ex0l6GDMy/uVZ6XraUXrPBOY1U59kbWpB4g==} + /@aws-sdk/middleware-recursion-detection@3.535.0: + resolution: {integrity: sha512-am2qgGs+gwqmR4wHLWpzlZ8PWhm4ktj5bYSgDrsOfjhdBlWNxvPoID9/pDAz5RWL48+oH7I6SQzMqxXsFDikrw==} engines: {node: '>=14.0.0'} dependencies: - '@aws-sdk/types': 3.533.0 - '@aws-sdk/util-format-url': 3.533.0 - '@smithy/middleware-endpoint': 2.4.6 - '@smithy/protocol-http': 3.2.2 - '@smithy/signature-v4': 2.1.4 - '@smithy/smithy-client': 2.4.5 - '@smithy/types': 2.11.0 + '@aws-sdk/types': 3.535.0 + '@smithy/protocol-http': 3.3.0 + '@smithy/types': 2.12.0 tslib: 2.6.2 - dev: false - /@aws-sdk/middleware-sdk-s3@3.533.0: - resolution: {integrity: sha512-9bd1+u5bFEQnh/2X9mybdQ4kVWhe6/XeCHC1KrER846Ntd3QYdX61KwJktg0URdqw5QFdqD+rmn0nQ3Ku8AmxA==} + /@aws-sdk/middleware-sdk-s3@3.535.0: + resolution: {integrity: sha512-/dLG/E3af6ohxkQ5GBHT8tZfuPIg6eItKxCXuulvYj0Tqgf3Mb+xTsvSkxQsJF06RS4sH7Qsg/PnB8ZfrJrXpg==} engines: {node: '>=14.0.0'} dependencies: - '@aws-sdk/types': 3.533.0 - '@aws-sdk/util-arn-parser': 3.495.0 - '@smithy/node-config-provider': 2.2.5 - '@smithy/protocol-http': 3.2.2 - '@smithy/signature-v4': 2.1.4 - '@smithy/smithy-client': 2.4.5 - '@smithy/types': 2.11.0 - '@smithy/util-config-provider': 2.2.1 + '@aws-sdk/types': 3.535.0 + '@aws-sdk/util-arn-parser': 3.535.0 + '@smithy/node-config-provider': 2.3.0 + '@smithy/protocol-http': 3.3.0 + '@smithy/signature-v4': 2.2.0 + '@smithy/smithy-client': 2.5.0 + '@smithy/types': 2.12.0 + '@smithy/util-config-provider': 2.3.0 tslib: 2.6.2 - dev: false - /@aws-sdk/middleware-sdk-sqs@3.533.0: - resolution: {integrity: sha512-iQiSvv+RX+SMPEOQA0yyz4ugC0twwOI3RoWlZ/CEx5rOpAwpD29p220PmoCjDGEuwhBkb/7Wd7a3aleE53dWeg==} + /@aws-sdk/middleware-signing@3.535.0: + resolution: {integrity: sha512-Rb4sfus1Gc5paRl9JJgymJGsb/i3gJKK/rTuFZICdd1PBBE5osIOHP5CpzWYBtc5LlyZE1a2QoxPMCyG+QUGPw==} engines: {node: '>=14.0.0'} dependencies: - '@aws-sdk/types': 3.533.0 - '@smithy/smithy-client': 2.4.5 - '@smithy/types': 2.11.0 - '@smithy/util-hex-encoding': 2.1.1 - '@smithy/util-utf8': 2.2.0 + '@aws-sdk/types': 3.535.0 + '@smithy/property-provider': 2.2.0 + '@smithy/protocol-http': 3.3.0 + '@smithy/signature-v4': 2.2.0 + '@smithy/types': 2.12.0 + '@smithy/util-middleware': 2.2.0 tslib: 2.6.2 - dev: false - /@aws-sdk/middleware-signing@3.533.0: - resolution: {integrity: sha512-qJZBoNKoSacIkHZfHcQfxmrogQcb0OPEaeEwwH563f8D5qYjQ3yuSaq7X9BKL7W8f9GjUYUJYZJwK3tbDh1ccg==} + /@aws-sdk/middleware-ssec@3.537.0: + resolution: {integrity: sha512-2QWMrbwd5eBy5KCYn9a15JEWBgrK2qFEKQN2lqb/6z0bhtevIOxIRfC99tzvRuPt6nixFQ+ynKuBjcfT4ZFrdQ==} engines: {node: '>=14.0.0'} dependencies: - '@aws-sdk/types': 3.533.0 - '@smithy/property-provider': 2.1.4 - '@smithy/protocol-http': 3.2.2 - '@smithy/signature-v4': 2.1.4 - '@smithy/types': 2.11.0 - '@smithy/util-middleware': 2.1.4 + '@aws-sdk/types': 3.535.0 + '@smithy/types': 2.12.0 tslib: 2.6.2 - dev: false - /@aws-sdk/middleware-ssec@3.533.0: - resolution: {integrity: sha512-UQn/d5x+lWBnsZDwkqm+x9qM9jAwPW2VDXoTrN2UMgMqao+iDki9FxvvHqYYYv4zDS4TYGXI6O9Zhmf5wwqygA==} + /@aws-sdk/middleware-user-agent@3.535.0: + resolution: {integrity: sha512-Uvb2WJ+zdHdCOtsWVPI/M0BcfNrjOYsicDZWtaljucRJKLclY5gNWwD+RwIC+8b5TvfnVOlH+N5jhvpi5Impog==} engines: {node: '>=14.0.0'} dependencies: - '@aws-sdk/types': 3.533.0 - '@smithy/types': 2.11.0 + '@aws-sdk/types': 3.535.0 + '@aws-sdk/util-endpoints': 3.535.0 + '@smithy/protocol-http': 3.3.0 + '@smithy/types': 2.12.0 tslib: 2.6.2 - dev: false - /@aws-sdk/middleware-user-agent@3.533.0: - resolution: {integrity: sha512-H5vbkgwFVgp9egQ/CR+gLRXhVJ/jHqq+J9TTug/To4ev183fcNc2OE15ojiNek8phuSsBZITLaQB+DWBTydsAA==} + /@aws-sdk/polly-request-presigner@3.535.0: + resolution: {integrity: sha512-BOPEkiyIYMpuM9b+Y0VSMqTsZHgOv4pmxkUTSfPLZLvluVAJm9aFg4Vvj6UjSdqj9wlqMYU2hecjpQA28vcWBg==} engines: {node: '>=14.0.0'} dependencies: - '@aws-sdk/types': 3.533.0 - '@aws-sdk/util-endpoints': 3.533.0 - '@smithy/protocol-http': 3.2.2 - '@smithy/types': 2.11.0 + '@aws-sdk/client-polly': 3.535.0 + '@aws-sdk/types': 3.535.0 + '@aws-sdk/util-format-url': 3.535.0 + '@smithy/protocol-http': 3.3.0 + '@smithy/signature-v4': 2.2.0 + '@smithy/types': 2.12.0 tslib: 2.6.2 - dev: false + transitivePeerDependencies: + - aws-crt - /@aws-sdk/region-config-resolver@3.533.0: - resolution: {integrity: sha512-1FLLcohz23aVV+lK3iCUJpjKO/4adXjre0KMg9tvHWwCkOD/sZgLjzlv+BW5Fx2vH3Dgo0kDQ04+XEsbuVC2xA==} + /@aws-sdk/region-config-resolver@3.535.0: + resolution: {integrity: sha512-IXOznDiaItBjsQy4Fil0kzX/J3HxIOknEphqHbOfUf+LpA5ugcsxuQQONrbEQusCBnfJyymrldBvBhFmtlU9Wg==} engines: {node: '>=14.0.0'} dependencies: - '@aws-sdk/types': 3.533.0 - '@smithy/node-config-provider': 2.2.5 - '@smithy/types': 2.11.0 - '@smithy/util-config-provider': 2.2.1 - '@smithy/util-middleware': 2.1.4 + '@aws-sdk/types': 3.535.0 + '@smithy/node-config-provider': 2.3.0 + '@smithy/types': 2.12.0 + '@smithy/util-config-provider': 2.3.0 + '@smithy/util-middleware': 2.2.0 tslib: 2.6.2 - dev: false - /@aws-sdk/s3-request-presigner@3.533.0: - resolution: {integrity: sha512-xS0Gp+zgRAMkiSdG2cYyHDX8BRjzKLGrWiPnH/ete+C9Qzfp+OkJAdZuqQQ+33S9M8Z0PwrIR/79RCOz2TRI3Q==} + /@aws-sdk/s3-request-presigner@3.537.0: + resolution: {integrity: sha512-jG3u9PTl9LpMFr+AY4jx4HvN3+qCFN5vy45U4E8zPagsQ4MbEseUcYpyyC9SHo+3DIgAJQLNV8Zv3LrtdiB5vQ==} engines: {node: '>=14.0.0'} dependencies: - '@aws-sdk/signature-v4-multi-region': 3.533.0 - '@aws-sdk/types': 3.533.0 - '@aws-sdk/util-format-url': 3.533.0 - '@smithy/middleware-endpoint': 2.4.6 - '@smithy/protocol-http': 3.2.2 - '@smithy/smithy-client': 2.4.5 - '@smithy/types': 2.11.0 + '@aws-sdk/signature-v4-multi-region': 3.535.0 + '@aws-sdk/types': 3.535.0 + '@aws-sdk/util-format-url': 3.535.0 + '@smithy/middleware-endpoint': 2.5.0 + '@smithy/protocol-http': 3.3.0 + '@smithy/smithy-client': 2.5.0 + '@smithy/types': 2.12.0 tslib: 2.6.2 - dev: false - /@aws-sdk/signature-v4-multi-region@3.533.0: - resolution: {integrity: sha512-0S552/0UfESFF0f3+wAzbV5F9vSIsGAaYTEW3wMgD1DAeZGDq37xUZjYFZ+XjKqQ/ZnR+pQf3QVW5geFmbKkgQ==} + /@aws-sdk/signature-v4-multi-region@3.535.0: + resolution: {integrity: sha512-tqCsEsEj8icW0SAh3NvyhRUq54Gz2pu4NM2tOSrFp7SO55heUUaRLSzYteNZCTOupH//AAaZvbN/UUTO/DrOog==} engines: {node: '>=14.0.0'} dependencies: - '@aws-sdk/middleware-sdk-s3': 3.533.0 - '@aws-sdk/types': 3.533.0 - '@smithy/protocol-http': 3.2.2 - '@smithy/signature-v4': 2.1.4 - '@smithy/types': 2.11.0 + '@aws-sdk/middleware-sdk-s3': 3.535.0 + '@aws-sdk/types': 3.535.0 + '@smithy/protocol-http': 3.3.0 + '@smithy/signature-v4': 2.2.0 + '@smithy/types': 2.12.0 tslib: 2.6.2 - dev: false - /@aws-sdk/token-providers@3.533.0(@aws-sdk/credential-provider-node@3.533.0): - resolution: {integrity: sha512-mHaZUeJ6zfbkW0E64dUmzDwReO1LoDYRful+FT1dbKqQr0p+9Q8o4n6fAswwAVfCYHaAeIt68vE0zVkAlbGCqA==} + /@aws-sdk/token-providers@3.535.0(@aws-sdk/credential-provider-node@3.535.0): + resolution: {integrity: sha512-4g+l/B9h1H/SiDtFRosW3pMwc+3PTXljZit+5NUBcET2XqcdUyHmgj3lBdu+CJ9CHdIMggRalYMAFXnRFe3Psg==} engines: {node: '>=14.0.0'} dependencies: - '@aws-sdk/client-sso-oidc': 3.533.0(@aws-sdk/credential-provider-node@3.533.0) - '@aws-sdk/types': 3.533.0 - '@smithy/property-provider': 2.1.4 - '@smithy/shared-ini-file-loader': 2.3.5 - '@smithy/types': 2.11.0 + '@aws-sdk/client-sso-oidc': 3.535.0(@aws-sdk/credential-provider-node@3.535.0) + '@aws-sdk/types': 3.535.0 + '@smithy/property-provider': 2.2.0 + '@smithy/shared-ini-file-loader': 2.4.0 + '@smithy/types': 2.12.0 tslib: 2.6.2 transitivePeerDependencies: - '@aws-sdk/credential-provider-node' - aws-crt - dev: false - - /@aws-sdk/types@3.533.0: - resolution: {integrity: sha512-mFb0701oLRcJ7Y2unlrszzk9rr2P6nt2A4Bdz4K5WOsY4f4hsdbcYkrzA1NPmIUTEttU9JT0YG+8z0XxLEX4Aw==} - engines: {node: '>=14.0.0'} - dependencies: - '@smithy/types': 2.11.0 - tslib: 2.6.2 - dev: false - /@aws-sdk/util-arn-parser@3.495.0: - resolution: {integrity: sha512-hwdA3XAippSEUxs7jpznwD63YYFR+LtQvlEcebPTgWR9oQgG9TfS+39PUfbnEeje1ICuOrN3lrFqFbmP9uzbMg==} + /@aws-sdk/types@3.535.0: + resolution: {integrity: sha512-aY4MYfduNj+sRR37U7XxYR8wemfbKP6lx00ze2M2uubn7mZotuVrWYAafbMSXrdEMSToE5JDhr28vArSOoLcSg==} engines: {node: '>=14.0.0'} dependencies: + '@smithy/types': 2.12.0 tslib: 2.6.2 - dev: false - /@aws-sdk/util-dynamodb@3.533.0(@aws-sdk/client-dynamodb@3.533.0): - resolution: {integrity: sha512-ebbdeORpPUkL/UtsgIjPuaZ0ROLJrbZRNoP2NFCTySW3jIzxRphSOkLs2zk6VZ7Je3bG06DXtZe6Uziihcuvow==} + /@aws-sdk/util-arn-parser@3.535.0: + resolution: {integrity: sha512-smVo29nUPAOprp8Z5Y3GHuhiOtw6c8/EtLCm5AVMtRsTPw4V414ZXL2H66tzmb5kEeSzQlbfBSBEdIFZoxO9kg==} engines: {node: '>=14.0.0'} - peerDependencies: - '@aws-sdk/client-dynamodb': ^3.0.0 dependencies: - '@aws-sdk/client-dynamodb': 3.533.0 tslib: 2.6.2 - dev: false - /@aws-sdk/util-endpoints@3.533.0: - resolution: {integrity: sha512-pmjRqWqno6X61RaJ/iEbSSql79Jyaq9d9SvTkyvo8Ce8Kb+49cflzUY1PP0s40Caj4H+bUkpksVHwO7t2qIakw==} + /@aws-sdk/util-endpoints@3.535.0: + resolution: {integrity: sha512-c8TlaQsiPchOOmTTR6qvHCO2O7L7NJwlKWAoQJ2GqWDZuC5es/fyuF2rp1h+ZRrUVraUomS0YdGkAmaDC7hJQg==} engines: {node: '>=14.0.0'} dependencies: - '@aws-sdk/types': 3.533.0 - '@smithy/types': 2.11.0 - '@smithy/util-endpoints': 1.1.5 + '@aws-sdk/types': 3.535.0 + '@smithy/types': 2.12.0 + '@smithy/util-endpoints': 1.2.0 tslib: 2.6.2 - dev: false - /@aws-sdk/util-format-url@3.533.0: - resolution: {integrity: sha512-JhQw6wsBoNlEhro9xvZY1uZklaCf37br3LjiRLjqnGwg+VhlA5QFE2QyosDMW28c1mcvzSDnkU0m7/1vDPPfBw==} + /@aws-sdk/util-format-url@3.535.0: + resolution: {integrity: sha512-ElbNkm0bddu53CuW44Iuux1ZbTV50fydbSh/4ypW3LrmUvHx193ogj0HXQ7X26kmmo9rXcsrLdM92yIeTjidVg==} engines: {node: '>=14.0.0'} dependencies: - '@aws-sdk/types': 3.533.0 - '@smithy/querystring-builder': 2.1.4 - '@smithy/types': 2.11.0 + '@aws-sdk/types': 3.535.0 + '@smithy/querystring-builder': 2.2.0 + '@smithy/types': 2.12.0 tslib: 2.6.2 - dev: false - /@aws-sdk/util-locate-window@3.495.0: - resolution: {integrity: sha512-MfaPXT0kLX2tQaR90saBT9fWQq2DHqSSJRzW+MZWsmF+y5LGCOhO22ac/2o6TKSQm7h0HRc2GaADqYYYor62yg==} + /@aws-sdk/util-locate-window@3.535.0: + resolution: {integrity: sha512-PHJ3SL6d2jpcgbqdgiPxkXpu7Drc2PYViwxSIqvvMKhDwzSB1W3mMvtpzwKM4IE7zLFodZo0GKjJ9AsoXndXhA==} engines: {node: '>=14.0.0'} dependencies: tslib: 2.6.2 - dev: false - /@aws-sdk/util-user-agent-browser@3.533.0: - resolution: {integrity: sha512-wyzDxH89yQ89+Q/9rWZeYBeegaXkB4nhb9Bd+xG4J3KgaNVuVvaYT6Nbzjg4oPtuC+pPeQp1iSXKs/2QTlsqPA==} + /@aws-sdk/util-user-agent-browser@3.535.0: + resolution: {integrity: sha512-RWMcF/xV5n+nhaA/Ff5P3yNP3Kur/I+VNZngog4TEs92oB/nwOdAg/2JL8bVAhUbMrjTjpwm7PItziYFQoqyig==} dependencies: - '@aws-sdk/types': 3.533.0 - '@smithy/types': 2.11.0 + '@aws-sdk/types': 3.535.0 + '@smithy/types': 2.12.0 bowser: 2.11.0 tslib: 2.6.2 - dev: false - /@aws-sdk/util-user-agent-node@3.533.0: - resolution: {integrity: sha512-Tu79n4+q1MAPPFEtu7xTgiTQGzOAPe4c2p8vSyrIJEBHclf7cyvZxgziQAyM9Yy4DoRdtnnAeeybao3U4d+CzA==} + /@aws-sdk/util-user-agent-node@3.535.0: + resolution: {integrity: sha512-dRek0zUuIT25wOWJlsRm97nTkUlh1NDcLsQZIN2Y8KxhwoXXWtJs5vaDPT+qAg+OpcNj80i1zLR/CirqlFg/TQ==} engines: {node: '>=14.0.0'} peerDependencies: aws-crt: '>=1.0.0' @@ -2094,27 +995,24 @@ packages: aws-crt: optional: true dependencies: - '@aws-sdk/types': 3.533.0 - '@smithy/node-config-provider': 2.2.5 - '@smithy/types': 2.11.0 + '@aws-sdk/types': 3.535.0 + '@smithy/node-config-provider': 2.3.0 + '@smithy/types': 2.12.0 tslib: 2.6.2 - dev: false /@aws-sdk/util-utf8-browser@3.259.0: resolution: {integrity: sha512-UvFa/vR+e19XookZF8RzFZBrw2EUkQWxiBW0yYQAhvk3C+QVGl0H3ouca8LDBlBfQKXwmW3huo/59H8rwb1wJw==} dependencies: tslib: 2.6.2 - dev: false - /@aws-sdk/xml-builder@3.533.0: - resolution: {integrity: sha512-wkqoK76SWokrNhcFbcNxGpDAS2S7VL03u7GcTYwezaA7L20VH4r2sT2u6VUFQ5v+aPZ973BesNTIF4sAItvCaw==} + /@aws-sdk/xml-builder@3.535.0: + resolution: {integrity: sha512-VXAq/Jz8KIrU84+HqsOJhIKZqG0PNTdi6n6PFQ4xJf44ZQHD/5C7ouH4qCFX5XgZXcgbRIcMVVYGC6Jye0dRng==} engines: {node: '>=14.0.0'} dependencies: - '@smithy/types': 2.11.0 + '@smithy/types': 2.12.0 tslib: 2.6.2 - dev: false - /@aws/pdk@0.23.2(@aws-cdk/aws-cognito-identitypool-alpha@2.131.0-alpha.0)(aws-cdk-lib@2.126.0)(cdk-nag@2.28.27)(constructs@10.3.0)(projen@0.79.7): + /@aws/pdk@0.23.2(@aws-cdk/aws-cognito-identitypool-alpha@2.133.0-alpha.0)(aws-cdk-lib@2.126.0)(cdk-nag@2.28.27)(constructs@10.3.0)(projen@0.79.7): resolution: {integrity: sha512-TFQKuuIVrjrR9yvWSJ2C8H5rU52m/HVNjD4E2BkUOTaD3rUl9PobPotBuhAAsAJsg0YQGuFprPElrfB+KyxJoA==} hasBin: true peerDependencies: @@ -2124,7 +1022,7 @@ packages: constructs: ^10.3.0 projen: ^0.79.6 dependencies: - '@aws-cdk/aws-cognito-identitypool-alpha': 2.131.0-alpha.0(aws-cdk-lib@2.126.0)(constructs@10.3.0) + '@aws-cdk/aws-cognito-identitypool-alpha': 2.133.0-alpha.0(aws-cdk-lib@2.126.0)(constructs@10.3.0) aws-cdk-lib: 2.126.0(constructs@10.3.0) cdk-nag: 2.28.27(aws-cdk-lib@2.126.0)(constructs@10.3.0) constructs: 10.3.0 @@ -2402,7 +1300,7 @@ packages: '@jridgewell/trace-mapping': 0.3.9 dev: true - /@effect/docgen@0.3.8(tsx@4.7.0)(typescript@5.2.2): + /@effect/docgen@0.3.8(tsx@4.7.0)(typescript@5.4.2): resolution: {integrity: sha512-yg777LXbKjgpHS+PC2dXS5tHTWRXQoCgcWJtM7CsNkZ2mefvmO7aufiRCaWYDnCF58otv10Tijuyanii4b2cxQ==} engines: {node: '>=16.17.1'} hasBin: true @@ -2415,7 +1313,7 @@ packages: markdown-toc: github.com/effect-ts/markdown-toc/4bfeb0f140105440ea0d12df2fa23199cc3ec1d5 prettier: 3.2.4 tsx: 4.7.0 - typescript: 5.2.2 + typescript: 5.4.2 dev: true /@esbuild/aix-ppc64@0.19.12: @@ -2694,20 +1592,6 @@ packages: wrap-ansi-cjs: /wrap-ansi@7.0.0 dev: true - /@jest/expect-utils@28.1.3: - resolution: {integrity: sha512-wvbi9LUrHJLn3NlDW6wF2hvIMtd4JUl2QNVrjq+IBSHirgfrR3o9RnVtxzdEGO2n9JyIWwHnLfby5KzqBGg2YA==} - engines: {node: ^12.13.0 || ^14.15.0 || ^16.10.0 || >=17.0.0} - dependencies: - jest-get-type: 28.0.2 - dev: true - - /@jest/schemas@28.1.3: - resolution: {integrity: sha512-/l/VWsdt/aBXgjshLWOFyFt3IVdYypu5y2Wn2rOO1un6nkqIn8SLXzgIMYXFyYsRWDyF5EthmKJMIdJvk08grg==} - engines: {node: ^12.13.0 || ^14.15.0 || ^16.10.0 || >=17.0.0} - dependencies: - '@sinclair/typebox': 0.24.51 - dev: true - /@jest/schemas@29.6.3: resolution: {integrity: sha512-mo5j5X+jIZmJQveBKeS/clAueipV7KgiX1vMgCxam1RNYiqE1w62n0/tJJnHtjW8ZHcQco5gY85jA3mi0L+nSA==} engines: {node: ^14.15.0 || ^16.10.0 || >=18.0.0} @@ -2715,18 +1599,6 @@ packages: '@sinclair/typebox': 0.27.8 dev: true - /@jest/types@28.1.3: - resolution: {integrity: sha512-RyjiyMUZrKz/c+zlMFO1pm70DcIlST8AeWTkoUdZevew44wcNZQHsEVOiCVtgVnlFFD82FPaXycys58cf2muVQ==} - engines: {node: ^12.13.0 || ^14.15.0 || ^16.10.0 || >=17.0.0} - dependencies: - '@jest/schemas': 28.1.3 - '@types/istanbul-lib-coverage': 2.0.4 - '@types/istanbul-reports': 3.0.1 - '@types/node': 18.19.14 - '@types/yargs': 17.0.24 - chalk: 4.1.2 - dev: true - /@jridgewell/resolve-uri@3.1.1: resolution: {integrity: sha512-dSYZh7HhCDtCKm4QakX0xFpsRDqjjtZf/kjI/v3T3Nwt5r8/qz/M19F9ySyOqU94SXBmeG9ttTul+YnR4LOxFA==} engines: {node: '>=6.0.0'} @@ -3008,511 +1880,415 @@ packages: dev: true optional: true - /@sinclair/typebox@0.24.51: - resolution: {integrity: sha512-1P1OROm/rdubP5aFDSZQILU0vrLCJ4fvHt6EoqHEM+2D/G5MK3bIaymUKLit8Js9gbns5UyJnkP/TZROLw4tUA==} - dev: true - /@sinclair/typebox@0.27.8: resolution: {integrity: sha512-+Fj43pSMwJs4KRrH/938Uf+uAELIgVBmQzg/q1YG10djyfA3TnrU8N8XzqCh/okZdszqBQTZf96idMfE5lnwTA==} dev: true - /@sinonjs/commons@1.8.6: - resolution: {integrity: sha512-Ky+XkAkqPZSm3NLBeUng77EBQl3cmeJhITaGHdYH8kjVB+aun3S4XBRti2zt17mtt0mIUDiNxYeoJm6drVvBJQ==} - dependencies: - type-detect: 4.0.8 - dev: true - - /@sinonjs/commons@2.0.0: - resolution: {integrity: sha512-uLa0j859mMrg2slwQYdO/AkrOfmH+X6LTVmNTS9CqexuE2IvVORIkSpJLqePAbEnKJ77aMmCwr1NUZ57120Xcg==} - dependencies: - type-detect: 4.0.8 - dev: true - - /@sinonjs/commons@3.0.0: - resolution: {integrity: sha512-jXBtWAF4vmdNmZgD5FoKsVLv3rPgDnLgPbU84LIJ3otV44vJlDRokVng5v8NFJdCf/da9legHcKaRuZs4L7faA==} - dependencies: - type-detect: 4.0.8 - dev: true - - /@sinonjs/fake-timers@10.3.0: - resolution: {integrity: sha512-V4BG07kuYSUkTCSBHG8G8TNhM+F19jXFWnQtzj+we8DrkpSBCee9Z3Ms8yiGer/dlmhe35/Xdgyo3/0rQKg7YA==} - dependencies: - '@sinonjs/commons': 3.0.0 - dev: true - - /@sinonjs/fake-timers@9.1.2: - resolution: {integrity: sha512-BPS4ynJW/o92PUR4wgriz2Ud5gpST5vz6GQfMixEDK0Z8ZCUv2M7SkBLykH56T++Xs+8ln9zTGbOvNGIe02/jw==} - dependencies: - '@sinonjs/commons': 1.8.6 - dev: true - - /@sinonjs/samsam@7.0.1: - resolution: {integrity: sha512-zsAk2Jkiq89mhZovB2LLOdTCxJF4hqqTToGP0ASWlhp4I1hqOjcfmZGafXntCN7MDC6yySH0mFHrYtHceOeLmw==} - dependencies: - '@sinonjs/commons': 2.0.0 - lodash.get: 4.4.2 - type-detect: 4.0.8 - dev: true - - /@sinonjs/text-encoding@0.7.2: - resolution: {integrity: sha512-sXXKG+uL9IrKqViTtao2Ws6dy0znu9sOaP1di/jKGW1M6VssO8vlpXCQcpZ+jisQ1tTFAC5Jo/EOzFbggBagFQ==} - dev: true - - /@smithy/abort-controller@2.1.4: - resolution: {integrity: sha512-66HO817oIZ2otLIqy06R5muapqZjkgF1jfU0wyNko8cuqZNu8nbS9ljlhcRYw/M/uWRJzB9ih81DLSHhYbBLlQ==} + /@smithy/abort-controller@2.2.0: + resolution: {integrity: sha512-wRlta7GuLWpTqtFfGo+nZyOO1vEvewdNR1R4rTxpC8XU6vG/NDyrFBhwLZsqg1NUoR1noVaXJPC/7ZK47QCySw==} engines: {node: '>=14.0.0'} dependencies: - '@smithy/types': 2.11.0 + '@smithy/types': 2.12.0 tslib: 2.6.2 - dev: false - /@smithy/chunked-blob-reader-native@2.1.3: - resolution: {integrity: sha512-9RcLADDnQi8N3VMWNSFnhiUUuo19L0yHEV0i0CQPvRzf5o1FKHT7Zenrh3P9KcmECWQum3s/ljMcM+YeWd9tqg==} + /@smithy/chunked-blob-reader-native@2.2.0: + resolution: {integrity: sha512-VNB5+1oCgX3Fzs072yuRsUoC2N4Zg/LJ11DTxX3+Qu+Paa6AmbIF0E9sc2wthz9Psrk/zcOlTCyuposlIhPjZQ==} dependencies: - '@smithy/util-base64': 2.2.1 + '@smithy/util-base64': 2.3.0 tslib: 2.6.2 - dev: false - /@smithy/chunked-blob-reader@2.1.1: - resolution: {integrity: sha512-NjNFCKxC4jVvn+lUr3Yo4/PmUJj3tbyqH6GNHueyTGS5Q27vlEJ1MkNhUDV8QGxJI7Bodnc2pD18lU2zRfhHlQ==} + /@smithy/chunked-blob-reader@2.2.0: + resolution: {integrity: sha512-3GJNvRwXBGdkDZZOGiziVYzDpn4j6zfyULHMDKAGIUo72yHALpE9CbhfQp/XcLNVoc1byfMpn6uW5H2BqPjgaQ==} dependencies: tslib: 2.6.2 - dev: false - /@smithy/config-resolver@2.1.5: - resolution: {integrity: sha512-LcBB5JQC3Tx2ZExIJzfvWaajhFIwHrUNQeqxhred2r5nnqrdly9uoCrvM1sxOOdghYuWWm2Kr8tBCDOmxsgeTA==} + /@smithy/config-resolver@2.2.0: + resolution: {integrity: sha512-fsiMgd8toyUba6n1WRmr+qACzXltpdDkPTAaDqc8QqPBUzO+/JKwL6bUBseHVi8tu9l+3JOK+tSf7cay+4B3LA==} engines: {node: '>=14.0.0'} dependencies: - '@smithy/node-config-provider': 2.2.5 - '@smithy/types': 2.11.0 - '@smithy/util-config-provider': 2.2.1 - '@smithy/util-middleware': 2.1.4 + '@smithy/node-config-provider': 2.3.0 + '@smithy/types': 2.12.0 + '@smithy/util-config-provider': 2.3.0 + '@smithy/util-middleware': 2.2.0 tslib: 2.6.2 - dev: false - /@smithy/core@1.3.8: - resolution: {integrity: sha512-6cFhQ9ChU7MxvOXJn6nuUSONacpNsGHWhfueROQuM/0vibDdZA9FWEdNbVkuVuc+BFI5BnaX3ltERUlpUirpIA==} + /@smithy/core@1.4.0: + resolution: {integrity: sha512-uu9ZDI95Uij4qk+L6kyFjdk11zqBkcJ3Lv0sc6jZrqHvLyr0+oeekD3CnqMafBn/5PRI6uv6ulW3kNLRBUHeVw==} engines: {node: '>=14.0.0'} dependencies: - '@smithy/middleware-endpoint': 2.4.6 - '@smithy/middleware-retry': 2.1.7 - '@smithy/middleware-serde': 2.2.1 - '@smithy/protocol-http': 3.2.2 - '@smithy/smithy-client': 2.4.5 - '@smithy/types': 2.11.0 - '@smithy/util-middleware': 2.1.4 + '@smithy/middleware-endpoint': 2.5.0 + '@smithy/middleware-retry': 2.2.0 + '@smithy/middleware-serde': 2.3.0 + '@smithy/protocol-http': 3.3.0 + '@smithy/smithy-client': 2.5.0 + '@smithy/types': 2.12.0 + '@smithy/util-middleware': 2.2.0 tslib: 2.6.2 - dev: false - /@smithy/credential-provider-imds@2.2.6: - resolution: {integrity: sha512-+xQe4Pite0kdk9qn0Vyw5BRVh0iSlj+T4TEKRXr4E1wZKtVgIzGlkCrfICSjiPVFkPxk4jMpVboMYdEiiA88/w==} + /@smithy/credential-provider-imds@2.3.0: + resolution: {integrity: sha512-BWB9mIukO1wjEOo1Ojgl6LrG4avcaC7T/ZP6ptmAaW4xluhSIPZhY+/PI5YKzlk+jsm+4sQZB45Bt1OfMeQa3w==} engines: {node: '>=14.0.0'} dependencies: - '@smithy/node-config-provider': 2.2.5 - '@smithy/property-provider': 2.1.4 - '@smithy/types': 2.11.0 - '@smithy/url-parser': 2.1.4 + '@smithy/node-config-provider': 2.3.0 + '@smithy/property-provider': 2.2.0 + '@smithy/types': 2.12.0 + '@smithy/url-parser': 2.2.0 tslib: 2.6.2 - dev: false - /@smithy/eventstream-codec@2.1.4: - resolution: {integrity: sha512-UkiieTztP7adg8EuqZvB0Y4LewdleZCJU7Kgt9RDutMsRYqO32fMpWeQHeTHaIMosmzcRZUykMRrhwGJe9mP3A==} + /@smithy/eventstream-codec@2.2.0: + resolution: {integrity: sha512-8janZoJw85nJmQZc4L8TuePp2pk1nxLgkxIR0TUjKJ5Dkj5oelB9WtiSSGXCQvNsJl0VSTvK/2ueMXxvpa9GVw==} dependencies: '@aws-crypto/crc32': 3.0.0 - '@smithy/types': 2.11.0 - '@smithy/util-hex-encoding': 2.1.1 + '@smithy/types': 2.12.0 + '@smithy/util-hex-encoding': 2.2.0 tslib: 2.6.2 - dev: false - /@smithy/eventstream-serde-browser@2.1.4: - resolution: {integrity: sha512-K0SyvrUu/vARKzNW+Wp9HImiC/cJ6K88/n7FTH1slY+MErdKoiSbRLaXbJ9qD6x1Hu28cplHMlhADwZelUx/Ww==} + /@smithy/eventstream-serde-browser@2.2.0: + resolution: {integrity: sha512-UaPf8jKbcP71BGiO0CdeLmlg+RhWnlN8ipsMSdwvqBFigl5nil3rHOI/5GE3tfiuX8LvY5Z9N0meuU7Rab7jWw==} engines: {node: '>=14.0.0'} dependencies: - '@smithy/eventstream-serde-universal': 2.1.4 - '@smithy/types': 2.11.0 + '@smithy/eventstream-serde-universal': 2.2.0 + '@smithy/types': 2.12.0 tslib: 2.6.2 - dev: false - /@smithy/eventstream-serde-config-resolver@2.1.4: - resolution: {integrity: sha512-FH+2AwOwZ0kHPB9sciWJtUqx81V4vizfT3P6T9eslmIC2hi8ch/KFvQlF7jDmwR1aLlPlq6qqLKLqzK/71Ki4A==} + /@smithy/eventstream-serde-config-resolver@2.2.0: + resolution: {integrity: sha512-RHhbTw/JW3+r8QQH7PrganjNCiuiEZmpi6fYUAetFfPLfZ6EkiA08uN3EFfcyKubXQxOwTeJRZSQmDDCdUshaA==} engines: {node: '>=14.0.0'} dependencies: - '@smithy/types': 2.11.0 + '@smithy/types': 2.12.0 tslib: 2.6.2 - dev: false - /@smithy/eventstream-serde-node@2.1.4: - resolution: {integrity: sha512-gsc5ZTvVcB9sleLQzsK/rOhgn52+AAsmhEr41WDwAcctccBjh429+b8gT9t+SU8QyajypfsLOZfJQu0+zE515Q==} + /@smithy/eventstream-serde-node@2.2.0: + resolution: {integrity: sha512-zpQMtJVqCUMn+pCSFcl9K/RPNtQE0NuMh8sKpCdEHafhwRsjP50Oq/4kMmvxSRy6d8Jslqd8BLvDngrUtmN9iA==} engines: {node: '>=14.0.0'} dependencies: - '@smithy/eventstream-serde-universal': 2.1.4 - '@smithy/types': 2.11.0 + '@smithy/eventstream-serde-universal': 2.2.0 + '@smithy/types': 2.12.0 tslib: 2.6.2 - dev: false - /@smithy/eventstream-serde-universal@2.1.4: - resolution: {integrity: sha512-NKLAsYnZA5s+ntipJRKo1RrRbhYHrsEnmiUoz0EhVYrAih+UELY9sKR+A1ujGaFm3nKDs5fPfiozC2wpXq2zUA==} + /@smithy/eventstream-serde-universal@2.2.0: + resolution: {integrity: sha512-pvoe/vvJY0mOpuF84BEtyZoYfbehiFj8KKWk1ds2AT0mTLYFVs+7sBJZmioOFdBXKd48lfrx1vumdPdmGlCLxA==} engines: {node: '>=14.0.0'} dependencies: - '@smithy/eventstream-codec': 2.1.4 - '@smithy/types': 2.11.0 + '@smithy/eventstream-codec': 2.2.0 + '@smithy/types': 2.12.0 tslib: 2.6.2 - dev: false - /@smithy/fetch-http-handler@2.4.5: - resolution: {integrity: sha512-FR1IMGdo0yRFs1tk71zRGSa1MznVLQOVNaPjyNtx6dOcy/u0ovEnXN5NVz6slw5KujFlg3N1w4+UbO8F3WyYUg==} + /@smithy/fetch-http-handler@2.5.0: + resolution: {integrity: sha512-BOWEBeppWhLn/no/JxUL/ghTfANTjT7kg3Ww2rPqTUY9R4yHPXxJ9JhMe3Z03LN3aPwiwlpDIUcVw1xDyHqEhw==} dependencies: - '@smithy/protocol-http': 3.2.2 - '@smithy/querystring-builder': 2.1.4 - '@smithy/types': 2.11.0 - '@smithy/util-base64': 2.2.1 + '@smithy/protocol-http': 3.3.0 + '@smithy/querystring-builder': 2.2.0 + '@smithy/types': 2.12.0 + '@smithy/util-base64': 2.3.0 tslib: 2.6.2 - dev: false - /@smithy/hash-blob-browser@2.1.5: - resolution: {integrity: sha512-6HxT9Q25YxkyBLHiFEjNullTo2/w2hWo1IMnUZDn0Sun5D+BWEZiExJ83gKLVlkHvuAZX/bA5A8yxFLQ5FpGuQ==} + /@smithy/hash-blob-browser@2.2.0: + resolution: {integrity: sha512-SGPoVH8mdXBqrkVCJ1Hd1X7vh1zDXojNN1yZyZTZsCno99hVue9+IYzWDjq/EQDDXxmITB0gBmuyPh8oAZSTcg==} dependencies: - '@smithy/chunked-blob-reader': 2.1.1 - '@smithy/chunked-blob-reader-native': 2.1.3 - '@smithy/types': 2.11.0 + '@smithy/chunked-blob-reader': 2.2.0 + '@smithy/chunked-blob-reader-native': 2.2.0 + '@smithy/types': 2.12.0 tslib: 2.6.2 - dev: false - /@smithy/hash-node@2.1.4: - resolution: {integrity: sha512-uvCcpDLXaTTL0X/9ezF8T8sS77UglTfZVQaUOBiCvR0QydeSyio3t0Hj3QooVdyFsKTubR8gCk/ubLk3vAyDng==} + /@smithy/hash-node@2.2.0: + resolution: {integrity: sha512-zLWaC/5aWpMrHKpoDF6nqpNtBhlAYKF/7+9yMN7GpdR8CzohnWfGtMznPybnwSS8saaXBMxIGwJqR4HmRp6b3g==} engines: {node: '>=14.0.0'} dependencies: - '@smithy/types': 2.11.0 - '@smithy/util-buffer-from': 2.1.1 - '@smithy/util-utf8': 2.2.0 + '@smithy/types': 2.12.0 + '@smithy/util-buffer-from': 2.2.0 + '@smithy/util-utf8': 2.3.0 tslib: 2.6.2 - dev: false - /@smithy/hash-stream-node@2.1.4: - resolution: {integrity: sha512-HcDQRs/Fcx7lwAd+/vSW/e7ltdh148D2Pq7XI61CEWcOoQdQ0W8aYBHDRC4zjtXv6hySdmWE+vo3dvdTt7aj8A==} + /@smithy/hash-stream-node@2.2.0: + resolution: {integrity: sha512-aT+HCATOSRMGpPI7bi7NSsTNVZE/La9IaxLXWoVAYMxHT5hGO3ZOGEMZQg8A6nNL+pdFGtZQtND1eoY084HgHQ==} engines: {node: '>=14.0.0'} dependencies: - '@smithy/types': 2.11.0 - '@smithy/util-utf8': 2.2.0 + '@smithy/types': 2.12.0 + '@smithy/util-utf8': 2.3.0 tslib: 2.6.2 - dev: false - /@smithy/invalid-dependency@2.1.4: - resolution: {integrity: sha512-QzlNBl6jt3nb9jNnE51wTegReVvUdozyMMrFEyb/rc6AzPID1O+qMJYjAAoNw098y0CZVfCpEnoK2+mfBOd8XA==} + /@smithy/invalid-dependency@2.2.0: + resolution: {integrity: sha512-nEDASdbKFKPXN2O6lOlTgrEEOO9NHIeO+HVvZnkqc8h5U9g3BIhWsvzFo+UcUbliMHvKNPD/zVxDrkP1Sbgp8Q==} dependencies: - '@smithy/types': 2.11.0 + '@smithy/types': 2.12.0 tslib: 2.6.2 - dev: false - /@smithy/is-array-buffer@2.1.1: - resolution: {integrity: sha512-xozSQrcUinPpNPNPds4S7z/FakDTh1MZWtRP/2vQtYB/u3HYrX2UXuZs+VhaKBd6Vc7g2XPr2ZtwGBNDN6fNKQ==} + /@smithy/is-array-buffer@2.2.0: + resolution: {integrity: sha512-GGP3O9QFD24uGeAXYUjwSTXARoqpZykHadOmA8G5vfJPK0/DC67qa//0qvqrJzL1xc8WQWX7/yc7fwudjPHPhA==} engines: {node: '>=14.0.0'} dependencies: tslib: 2.6.2 - dev: false - /@smithy/md5-js@2.1.4: - resolution: {integrity: sha512-WHTnnYJPKE7Sy49DogLuox42TnlwD3cQ6TObPD6WFWjKocWIdpEpIvdJHwWUfSFf0JIi8ON8z6ZEhsnyKVCcLQ==} + /@smithy/md5-js@2.2.0: + resolution: {integrity: sha512-M26XTtt9IIusVMOWEAhIvFIr9jYj4ISPPGJROqw6vXngO3IYJCnVVSMFn4Tx1rUTG5BiKJNg9u2nxmBiZC5IlQ==} dependencies: - '@smithy/types': 2.11.0 - '@smithy/util-utf8': 2.2.0 + '@smithy/types': 2.12.0 + '@smithy/util-utf8': 2.3.0 tslib: 2.6.2 - dev: false - /@smithy/middleware-content-length@2.1.4: - resolution: {integrity: sha512-C6VRwfcr0w9qRFhDGCpWMVhlEIBFlmlPRP1aX9Cv9xDj9SUwlDrNvoV1oP1vjRYuLxCDgovBBynCwwcluS2wLw==} + /@smithy/middleware-content-length@2.2.0: + resolution: {integrity: sha512-5bl2LG1Ah/7E5cMSC+q+h3IpVHMeOkG0yLRyQT1p2aMJkSrZG7RlXHPuAgb7EyaFeidKEnnd/fNaLLaKlHGzDQ==} engines: {node: '>=14.0.0'} dependencies: - '@smithy/protocol-http': 3.2.2 - '@smithy/types': 2.11.0 + '@smithy/protocol-http': 3.3.0 + '@smithy/types': 2.12.0 tslib: 2.6.2 - dev: false - /@smithy/middleware-endpoint@2.4.6: - resolution: {integrity: sha512-AsXtUXHPOAS0EGZUSFOsVJvc7p0KL29PGkLxLfycPOcFVLru/oinYB6yvyL73ZZPX2OB8sMYUMrj7eH2kI7V/w==} + /@smithy/middleware-endpoint@2.5.0: + resolution: {integrity: sha512-OBhI9ZEAG8Xen0xsFJwwNOt44WE2CWkfYIxTognC8x42Lfsdf0VN/wCMqpdkySMDio/vts10BiovAxQp0T0faA==} engines: {node: '>=14.0.0'} dependencies: - '@smithy/middleware-serde': 2.2.1 - '@smithy/node-config-provider': 2.2.5 - '@smithy/shared-ini-file-loader': 2.3.5 - '@smithy/types': 2.11.0 - '@smithy/url-parser': 2.1.4 - '@smithy/util-middleware': 2.1.4 + '@smithy/middleware-serde': 2.3.0 + '@smithy/node-config-provider': 2.3.0 + '@smithy/shared-ini-file-loader': 2.4.0 + '@smithy/types': 2.12.0 + '@smithy/url-parser': 2.2.0 + '@smithy/util-middleware': 2.2.0 tslib: 2.6.2 - dev: false - /@smithy/middleware-retry@2.1.7: - resolution: {integrity: sha512-8fOP/cJN4oMv+5SRffZC8RkqfWxHqGgn/86JPINY/1DnTRegzf+G5GT9lmIdG1YasuSbU7LISfW9PXil3isPVw==} + /@smithy/middleware-retry@2.2.0: + resolution: {integrity: sha512-PsjDOLpbevgn37yJbawmfVoanru40qVA8UEf2+YA1lvOefmhuhL6ZbKtGsLAWDRnE1OlAmedsbA/htH6iSZjNA==} engines: {node: '>=14.0.0'} dependencies: - '@smithy/node-config-provider': 2.2.5 - '@smithy/protocol-http': 3.2.2 - '@smithy/service-error-classification': 2.1.4 - '@smithy/smithy-client': 2.4.5 - '@smithy/types': 2.11.0 - '@smithy/util-middleware': 2.1.4 - '@smithy/util-retry': 2.1.4 + '@smithy/node-config-provider': 2.3.0 + '@smithy/protocol-http': 3.3.0 + '@smithy/service-error-classification': 2.1.5 + '@smithy/smithy-client': 2.5.0 + '@smithy/types': 2.12.0 + '@smithy/util-middleware': 2.2.0 + '@smithy/util-retry': 2.2.0 tslib: 2.6.2 uuid: 8.3.2 - dev: false - /@smithy/middleware-serde@2.2.1: - resolution: {integrity: sha512-VAWRWqnNjgccebndpyK94om4ZTYzXLQxUmNCXYzM/3O9MTfQjTNBgtFtQwyIIez6z7LWcCsXmnKVIOE9mLqAHQ==} + /@smithy/middleware-serde@2.3.0: + resolution: {integrity: sha512-sIADe7ojwqTyvEQBe1nc/GXB9wdHhi9UwyX0lTyttmUWDJLP655ZYE1WngnNyXREme8I27KCaUhyhZWRXL0q7Q==} engines: {node: '>=14.0.0'} dependencies: - '@smithy/types': 2.11.0 + '@smithy/types': 2.12.0 tslib: 2.6.2 - dev: false - /@smithy/middleware-stack@2.1.4: - resolution: {integrity: sha512-Qqs2ba8Ax1rGKOSGJS2JN23fhhox2WMdRuzx0NYHtXzhxbJOIMmz9uQY6Hf4PY8FPteBPp1+h0j5Fmr+oW12sg==} + /@smithy/middleware-stack@2.2.0: + resolution: {integrity: sha512-Qntc3jrtwwrsAC+X8wms8zhrTr0sFXnyEGhZd9sLtsJ/6gGQKFzNB+wWbOcpJd7BR8ThNCoKt76BuQahfMvpeA==} engines: {node: '>=14.0.0'} dependencies: - '@smithy/types': 2.11.0 + '@smithy/types': 2.12.0 tslib: 2.6.2 - dev: false - /@smithy/node-config-provider@2.2.5: - resolution: {integrity: sha512-CxPf2CXhjO79IypHJLBATB66Dw6suvr1Yc2ccY39hpR6wdse3pZ3E8RF83SODiNH0Wjmkd0ze4OF8exugEixgA==} + /@smithy/node-config-provider@2.3.0: + resolution: {integrity: sha512-0elK5/03a1JPWMDPaS726Iw6LpQg80gFut1tNpPfxFuChEEklo2yL823V94SpTZTxmKlXFtFgsP55uh3dErnIg==} engines: {node: '>=14.0.0'} dependencies: - '@smithy/property-provider': 2.1.4 - '@smithy/shared-ini-file-loader': 2.3.5 - '@smithy/types': 2.11.0 + '@smithy/property-provider': 2.2.0 + '@smithy/shared-ini-file-loader': 2.4.0 + '@smithy/types': 2.12.0 tslib: 2.6.2 - dev: false - /@smithy/node-http-handler@2.4.3: - resolution: {integrity: sha512-bD5zRdEl1u/4vAAMeQnGEUNbH1seISV2Z0Wnn7ltPRl/6B2zND1R9XzTfsOnH1R5jqghpochF/mma8u7uXz0qQ==} + /@smithy/node-http-handler@2.5.0: + resolution: {integrity: sha512-mVGyPBzkkGQsPoxQUbxlEfRjrj6FPyA3u3u2VXGr9hT8wilsoQdZdvKpMBFMB8Crfhv5dNkKHIW0Yyuc7eABqA==} engines: {node: '>=14.0.0'} dependencies: - '@smithy/abort-controller': 2.1.4 - '@smithy/protocol-http': 3.2.2 - '@smithy/querystring-builder': 2.1.4 - '@smithy/types': 2.11.0 + '@smithy/abort-controller': 2.2.0 + '@smithy/protocol-http': 3.3.0 + '@smithy/querystring-builder': 2.2.0 + '@smithy/types': 2.12.0 tslib: 2.6.2 - dev: false - /@smithy/property-provider@2.1.4: - resolution: {integrity: sha512-nWaY/MImj1BiXZ9WY65h45dcxOx8pl06KYoHxwojDxDL+Q9yLU1YnZpgv8zsHhEftlj9KhePENjQTlNowWVyug==} + /@smithy/property-provider@2.2.0: + resolution: {integrity: sha512-+xiil2lFhtTRzXkx8F053AV46QnIw6e7MV8od5Mi68E1ICOjCeCHw2XfLnDEUHnT9WGUIkwcqavXjfwuJbGlpg==} engines: {node: '>=14.0.0'} dependencies: - '@smithy/types': 2.11.0 + '@smithy/types': 2.12.0 tslib: 2.6.2 - dev: false - /@smithy/protocol-http@3.2.2: - resolution: {integrity: sha512-xYBlllOQcOuLoxzhF2u8kRHhIFGQpDeTQj/dBSnw4kfI29WMKL5RnW1m9YjnJAJ49miuIvrkJR+gW5bCQ+Mchw==} + /@smithy/protocol-http@3.3.0: + resolution: {integrity: sha512-Xy5XK1AFWW2nlY/biWZXu6/krgbaf2dg0q492D8M5qthsnU2H+UgFeZLbM76FnH7s6RO/xhQRkj+T6KBO3JzgQ==} engines: {node: '>=14.0.0'} dependencies: - '@smithy/types': 2.11.0 + '@smithy/types': 2.12.0 tslib: 2.6.2 - dev: false - /@smithy/querystring-builder@2.1.4: - resolution: {integrity: sha512-LXSL0J/nRWvGT+jIj+Fip3j0J1ZmHkUyBFRzg/4SmPNCLeDrtVu7ptKOnTboPsFZu5BxmpYok3kJuQzzRdrhbw==} + /@smithy/querystring-builder@2.2.0: + resolution: {integrity: sha512-L1kSeviUWL+emq3CUVSgdogoM/D9QMFaqxL/dd0X7PCNWmPXqt+ExtrBjqT0V7HLN03Vs9SuiLrG3zy3JGnE5A==} engines: {node: '>=14.0.0'} dependencies: - '@smithy/types': 2.11.0 - '@smithy/util-uri-escape': 2.1.1 + '@smithy/types': 2.12.0 + '@smithy/util-uri-escape': 2.2.0 tslib: 2.6.2 - dev: false - /@smithy/querystring-parser@2.1.4: - resolution: {integrity: sha512-U2b8olKXgZAs0eRo7Op11jTNmmcC/sqYmsA7vN6A+jkGnDvJlEl7AetUegbBzU8q3D6WzC5rhR/joIy8tXPzIg==} + /@smithy/querystring-parser@2.2.0: + resolution: {integrity: sha512-BvHCDrKfbG5Yhbpj4vsbuPV2GgcpHiAkLeIlcA1LtfpMz3jrqizP1+OguSNSj1MwBHEiN+jwNisXLGdajGDQJA==} engines: {node: '>=14.0.0'} dependencies: - '@smithy/types': 2.11.0 + '@smithy/types': 2.12.0 tslib: 2.6.2 - dev: false - /@smithy/service-error-classification@2.1.4: - resolution: {integrity: sha512-JW2Hthy21evnvDmYYk1kItOmbp3X5XI5iqorXgFEunb6hQfSDZ7O1g0Clyxg7k/Pcr9pfLk5xDIR2To/IohlsQ==} + /@smithy/service-error-classification@2.1.5: + resolution: {integrity: sha512-uBDTIBBEdAQryvHdc5W8sS5YX7RQzF683XrHePVdFmAgKiMofU15FLSM0/HU03hKTnazdNRFa0YHS7+ArwoUSQ==} engines: {node: '>=14.0.0'} dependencies: - '@smithy/types': 2.11.0 - dev: false + '@smithy/types': 2.12.0 - /@smithy/shared-ini-file-loader@2.3.5: - resolution: {integrity: sha512-oI99+hOvsM8oAJtxAGmoL/YCcGXtbP0fjPseYGaNmJ4X5xOFTer0KPk7AIH3AL6c5AlYErivEi1X/X78HgTVIw==} + /@smithy/shared-ini-file-loader@2.4.0: + resolution: {integrity: sha512-WyujUJL8e1B6Z4PBfAqC/aGY1+C7T0w20Gih3yrvJSk97gpiVfB+y7c46T4Nunk+ZngLq0rOIdeVeIklk0R3OA==} engines: {node: '>=14.0.0'} dependencies: - '@smithy/types': 2.11.0 + '@smithy/types': 2.12.0 tslib: 2.6.2 - dev: false - /@smithy/signature-v4@2.1.4: - resolution: {integrity: sha512-gnu9gCn0qQ8IdhNjs6o3QVCXzUs33znSDYwVMWo3nX4dM6j7z9u6FC302ShYyVWfO4MkVMuGCCJ6nl3PcH7V1Q==} + /@smithy/signature-v4@2.2.0: + resolution: {integrity: sha512-+B5TNzj/fRZzVW3z8UUJOkNx15+4E0CLuvJmJUA1JUIZFp3rdJ/M2H5r2SqltaVPXL0oIxv/6YK92T9TsFGbFg==} engines: {node: '>=14.0.0'} dependencies: - '@smithy/eventstream-codec': 2.1.4 - '@smithy/is-array-buffer': 2.1.1 - '@smithy/types': 2.11.0 - '@smithy/util-hex-encoding': 2.1.1 - '@smithy/util-middleware': 2.1.4 - '@smithy/util-uri-escape': 2.1.1 - '@smithy/util-utf8': 2.2.0 + '@smithy/eventstream-codec': 2.2.0 + '@smithy/is-array-buffer': 2.2.0 + '@smithy/types': 2.12.0 + '@smithy/util-hex-encoding': 2.2.0 + '@smithy/util-middleware': 2.2.0 + '@smithy/util-uri-escape': 2.2.0 + '@smithy/util-utf8': 2.3.0 tslib: 2.6.2 - dev: false - /@smithy/smithy-client@2.4.5: - resolution: {integrity: sha512-igXOM4kPXPo6b5LZXTUqTnrGk20uVd8OXoybC3f89gczzGfziLK4yUNOmiHSdxY9OOMOnnhVe5MpTm01MpFqvA==} + /@smithy/smithy-client@2.5.0: + resolution: {integrity: sha512-DDXWHWdimtS3y/Kw1Jo46KQ0ZYsDKcldFynQERUGBPDpkW1lXOTHy491ALHjwfiBQvzsVKVxl5+ocXNIgJuX4g==} engines: {node: '>=14.0.0'} dependencies: - '@smithy/middleware-endpoint': 2.4.6 - '@smithy/middleware-stack': 2.1.4 - '@smithy/protocol-http': 3.2.2 - '@smithy/types': 2.11.0 - '@smithy/util-stream': 2.1.5 + '@smithy/middleware-endpoint': 2.5.0 + '@smithy/middleware-stack': 2.2.0 + '@smithy/protocol-http': 3.3.0 + '@smithy/types': 2.12.0 + '@smithy/util-stream': 2.2.0 tslib: 2.6.2 - dev: false - /@smithy/types@2.11.0: - resolution: {integrity: sha512-AR0SXO7FuAskfNhyGfSTThpLRntDI5bOrU0xrpVYU0rZyjl3LBXInZFMTP/NNSd7IS6Ksdtar0QvnrPRIhVrLQ==} + /@smithy/types@2.12.0: + resolution: {integrity: sha512-QwYgloJ0sVNBeBuBs65cIkTbfzV/Q6ZNPCJ99EICFEdJYG50nGIY/uYXp+TbsdJReIuPr0a0kXmCvren3MbRRw==} engines: {node: '>=14.0.0'} dependencies: tslib: 2.6.2 - dev: false - /@smithy/url-parser@2.1.4: - resolution: {integrity: sha512-1hTy6UYRYqOZlHKH2/2NzdNQ4NNmW2Lp0sYYvztKy+dEQuLvZL9w88zCzFQqqFer3DMcscYOshImxkJTGdV+rg==} + /@smithy/url-parser@2.2.0: + resolution: {integrity: sha512-hoA4zm61q1mNTpksiSWp2nEl1dt3j726HdRhiNgVJQMj7mLp7dprtF57mOB6JvEk/x9d2bsuL5hlqZbBuHQylQ==} dependencies: - '@smithy/querystring-parser': 2.1.4 - '@smithy/types': 2.11.0 + '@smithy/querystring-parser': 2.2.0 + '@smithy/types': 2.12.0 tslib: 2.6.2 - dev: false - /@smithy/util-base64@2.2.1: - resolution: {integrity: sha512-troGfokrpoqv8TGgsb8p4vvM71vqor314514jyQ0i9Zae3qs0jUVbSMCIBB1tseVynXFRcZJAZ9hPQYlifLD5A==} + /@smithy/util-base64@2.3.0: + resolution: {integrity: sha512-s3+eVwNeJuXUwuMbusncZNViuhv2LjVJ1nMwTqSA0XAC7gjKhqqxRdJPhR8+YrkoZ9IiIbFk/yK6ACe/xlF+hw==} engines: {node: '>=14.0.0'} dependencies: - '@smithy/util-buffer-from': 2.1.1 - '@smithy/util-utf8': 2.2.0 + '@smithy/util-buffer-from': 2.2.0 + '@smithy/util-utf8': 2.3.0 tslib: 2.6.2 - dev: false - /@smithy/util-body-length-browser@2.1.1: - resolution: {integrity: sha512-ekOGBLvs1VS2d1zM2ER4JEeBWAvIOUKeaFch29UjjJsxmZ/f0L3K3x0dEETgh3Q9bkZNHgT+rkdl/J/VUqSRag==} + /@smithy/util-body-length-browser@2.2.0: + resolution: {integrity: sha512-dtpw9uQP7W+n3vOtx0CfBD5EWd7EPdIdsQnWTDoFf77e3VUf05uA7R7TGipIo8e4WL2kuPdnsr3hMQn9ziYj5w==} dependencies: tslib: 2.6.2 - dev: false - /@smithy/util-body-length-node@2.2.2: - resolution: {integrity: sha512-U7DooaT1SfW7XHrOcxthYJnQ+WMaefRrFPxW5Qmypw38Ivv+TKvfVuVHA9V162h8BeW9rzOJwOunjgXd0DdB4w==} + /@smithy/util-body-length-node@2.3.0: + resolution: {integrity: sha512-ITWT1Wqjubf2CJthb0BuT9+bpzBfXeMokH/AAa5EJQgbv9aPMVfnM76iFIZVFf50hYXGbtiV71BHAthNWd6+dw==} engines: {node: '>=14.0.0'} dependencies: tslib: 2.6.2 - dev: false - /@smithy/util-buffer-from@2.1.1: - resolution: {integrity: sha512-clhNjbyfqIv9Md2Mg6FffGVrJxw7bgK7s3Iax36xnfVj6cg0fUG7I4RH0XgXJF8bxi+saY5HR21g2UPKSxVCXg==} + /@smithy/util-buffer-from@2.2.0: + resolution: {integrity: sha512-IJdWBbTcMQ6DA0gdNhh/BwrLkDR+ADW5Kr1aZmd4k3DIF6ezMV4R2NIAmT08wQJ3yUK82thHWmC/TnK/wpMMIA==} engines: {node: '>=14.0.0'} dependencies: - '@smithy/is-array-buffer': 2.1.1 + '@smithy/is-array-buffer': 2.2.0 tslib: 2.6.2 - dev: false - /@smithy/util-config-provider@2.2.1: - resolution: {integrity: sha512-50VL/tx9oYYcjJn/qKqNy7sCtpD0+s8XEBamIFo4mFFTclKMNp+rsnymD796uybjiIquB7VCB/DeafduL0y2kw==} + /@smithy/util-config-provider@2.3.0: + resolution: {integrity: sha512-HZkzrRcuFN1k70RLqlNK4FnPXKOpkik1+4JaBoHNJn+RnJGYqaa3c5/+XtLOXhlKzlRgNvyaLieHTW2VwGN0VQ==} engines: {node: '>=14.0.0'} dependencies: tslib: 2.6.2 - dev: false - /@smithy/util-defaults-mode-browser@2.1.7: - resolution: {integrity: sha512-vvIpWsysEdY77R0Qzr6+LRW50ye7eii7AyHM0OJnTi0isHYiXo5M/7o4k8gjK/b1upQJdfjzSBoJVa2SWrI+2g==} + /@smithy/util-defaults-mode-browser@2.2.0: + resolution: {integrity: sha512-2okTdZaCBvOJszAPU/KSvlimMe35zLOKbQpHhamFJmR7t95HSe0K3C92jQPjKY3PmDBD+7iMkOnuW05F5OlF4g==} engines: {node: '>= 10.0.0'} dependencies: - '@smithy/property-provider': 2.1.4 - '@smithy/smithy-client': 2.4.5 - '@smithy/types': 2.11.0 + '@smithy/property-provider': 2.2.0 + '@smithy/smithy-client': 2.5.0 + '@smithy/types': 2.12.0 bowser: 2.11.0 tslib: 2.6.2 - dev: false - /@smithy/util-defaults-mode-node@2.2.7: - resolution: {integrity: sha512-qzXkSDyU6Th+rNNcNkG4a7Ix7m5HlMOtSCPxTVKlkz7eVsqbSSPggegbFeQJ2MVELBB4wnzNPsVPJIrpIaJpXA==} + /@smithy/util-defaults-mode-node@2.3.0: + resolution: {integrity: sha512-hfKXnNLmsW9cmLb/JXKIvtuO6Cf4SuqN5PN1C2Ru/TBIws+m1wSgb+A53vo0r66xzB6E82inKG2J7qtwdi+Kkw==} engines: {node: '>= 10.0.0'} dependencies: - '@smithy/config-resolver': 2.1.5 - '@smithy/credential-provider-imds': 2.2.6 - '@smithy/node-config-provider': 2.2.5 - '@smithy/property-provider': 2.1.4 - '@smithy/smithy-client': 2.4.5 - '@smithy/types': 2.11.0 + '@smithy/config-resolver': 2.2.0 + '@smithy/credential-provider-imds': 2.3.0 + '@smithy/node-config-provider': 2.3.0 + '@smithy/property-provider': 2.2.0 + '@smithy/smithy-client': 2.5.0 + '@smithy/types': 2.12.0 tslib: 2.6.2 - dev: false - /@smithy/util-endpoints@1.1.5: - resolution: {integrity: sha512-tgDpaUNsUtRvNiBulKU1VnpoXU1GINMfZZXunRhUXOTBEAufG1Wp79uDXLau2gg1RZ4dpAR6lXCkrmddihCGUg==} + /@smithy/util-endpoints@1.2.0: + resolution: {integrity: sha512-BuDHv8zRjsE5zXd3PxFXFknzBG3owCpjq8G3FcsXW3CykYXuEqM3nTSsmLzw5q+T12ZYuDlVUZKBdpNbhVtlrQ==} engines: {node: '>= 14.0.0'} dependencies: - '@smithy/node-config-provider': 2.2.5 - '@smithy/types': 2.11.0 + '@smithy/node-config-provider': 2.3.0 + '@smithy/types': 2.12.0 tslib: 2.6.2 - dev: false - /@smithy/util-hex-encoding@2.1.1: - resolution: {integrity: sha512-3UNdP2pkYUUBGEXzQI9ODTDK+Tcu1BlCyDBaRHwyxhA+8xLP8agEKQq4MGmpjqb4VQAjq9TwlCQX0kP6XDKYLg==} + /@smithy/util-hex-encoding@2.2.0: + resolution: {integrity: sha512-7iKXR+/4TpLK194pVjKiasIyqMtTYJsgKgM242Y9uzt5dhHnUDvMNb+3xIhRJ9QhvqGii/5cRUt4fJn3dtXNHQ==} engines: {node: '>=14.0.0'} dependencies: tslib: 2.6.2 - dev: false - /@smithy/util-middleware@2.1.4: - resolution: {integrity: sha512-5yYNOgCN0DL0OplME0pthoUR/sCfipnROkbTO7m872o0GHCVNJj5xOFJ143rvHNA54+pIPMLum4z2DhPC2pVGA==} + /@smithy/util-middleware@2.2.0: + resolution: {integrity: sha512-L1qpleXf9QD6LwLCJ5jddGkgWyuSvWBkJwWAZ6kFkdifdso+sk3L3O1HdmPvCdnCK3IS4qWyPxev01QMnfHSBw==} engines: {node: '>=14.0.0'} dependencies: - '@smithy/types': 2.11.0 + '@smithy/types': 2.12.0 tslib: 2.6.2 - dev: false - /@smithy/util-retry@2.1.4: - resolution: {integrity: sha512-JRZwhA3fhkdenSEYIWatC8oLwt4Bdf2LhHbNQApqb7yFoIGMl4twcYI3BcJZ7YIBZrACA9jGveW6tuCd836XzQ==} + /@smithy/util-retry@2.2.0: + resolution: {integrity: sha512-q9+pAFPTfftHXRytmZ7GzLFFrEGavqapFc06XxzZFcSIGERXMerXxCitjOG1prVDR9QdjqotF40SWvbqcCpf8g==} engines: {node: '>= 14.0.0'} dependencies: - '@smithy/service-error-classification': 2.1.4 - '@smithy/types': 2.11.0 + '@smithy/service-error-classification': 2.1.5 + '@smithy/types': 2.12.0 tslib: 2.6.2 - dev: false - /@smithy/util-stream@2.1.5: - resolution: {integrity: sha512-FqvBFeTgx+QC4+i8USHqU8Ifs9nYRpW/OBfksojtgkxPIQ2H7ypXDEbnQRAV7PwoNHWcSwPomLYi0svmQQG5ow==} + /@smithy/util-stream@2.2.0: + resolution: {integrity: sha512-17faEXbYWIRst1aU9SvPZyMdWmqIrduZjVOqCPMIsWFNxs5yQQgFrJL6b2SdiCzyW9mJoDjFtgi53xx7EH+BXA==} engines: {node: '>=14.0.0'} dependencies: - '@smithy/fetch-http-handler': 2.4.5 - '@smithy/node-http-handler': 2.4.3 - '@smithy/types': 2.11.0 - '@smithy/util-base64': 2.2.1 - '@smithy/util-buffer-from': 2.1.1 - '@smithy/util-hex-encoding': 2.1.1 - '@smithy/util-utf8': 2.2.0 + '@smithy/fetch-http-handler': 2.5.0 + '@smithy/node-http-handler': 2.5.0 + '@smithy/types': 2.12.0 + '@smithy/util-base64': 2.3.0 + '@smithy/util-buffer-from': 2.2.0 + '@smithy/util-hex-encoding': 2.2.0 + '@smithy/util-utf8': 2.3.0 tslib: 2.6.2 - dev: false - /@smithy/util-uri-escape@2.1.1: - resolution: {integrity: sha512-saVzI1h6iRBUVSqtnlOnc9ssU09ypo7n+shdQ8hBTZno/9rZ3AuRYvoHInV57VF7Qn7B+pFJG7qTzFiHxWlWBw==} + /@smithy/util-uri-escape@2.2.0: + resolution: {integrity: sha512-jtmJMyt1xMD/d8OtbVJ2gFZOSKc+ueYJZPW20ULW1GOp/q/YIM0wNh+u8ZFao9UaIGz4WoPW8hC64qlWLIfoDA==} engines: {node: '>=14.0.0'} dependencies: tslib: 2.6.2 - dev: false - /@smithy/util-utf8@2.2.0: - resolution: {integrity: sha512-hBsKr5BqrDrKS8qy+YcV7/htmMGxriA1PREOf/8AGBhHIZnfilVv1Waf1OyKhSbFW15U/8+gcMUQ9/Kk5qwpHQ==} + /@smithy/util-utf8@2.3.0: + resolution: {integrity: sha512-R8Rdn8Hy72KKcebgLiv8jQcQkXoLMOGGv5uI1/k0l+snqkOzQ1R0ChUBCxWMlBsFMekWjq0wRudIweFs7sKT5A==} engines: {node: '>=14.0.0'} dependencies: - '@smithy/util-buffer-from': 2.1.1 + '@smithy/util-buffer-from': 2.2.0 tslib: 2.6.2 - dev: false - /@smithy/util-waiter@2.1.4: - resolution: {integrity: sha512-AK17WaC0hx1wR9juAOsQkJ6DjDxBGEf5TrKhpXtNFEn+cVto9Li3MVsdpAO97AF7bhFXSyC8tJA3F4ThhqwCdg==} + /@smithy/util-waiter@2.2.0: + resolution: {integrity: sha512-IHk53BVw6MPMi2Gsn+hCng8rFA3ZmR3Rk7GllxDUW9qFJl/hiSvskn7XldkECapQVkIg/1dHpMAxI9xSTaLLSA==} engines: {node: '>=14.0.0'} dependencies: - '@smithy/abort-controller': 2.1.4 - '@smithy/types': 2.11.0 + '@smithy/abort-controller': 2.2.0 + '@smithy/types': 2.12.0 tslib: 2.6.2 - dev: false /@tsconfig/node10@1.0.9: resolution: {integrity: sha512-jNsYVVxU8v5g43Erja32laIDHXeoNvFEpX33OK4d6hljo3jDhCBDhx5dhCCTMWUojscpAagGiRkBKxpdl9fxqA==} @@ -3544,29 +2320,6 @@ packages: ci-info: 3.8.0 dev: true - /@types/istanbul-lib-coverage@2.0.4: - resolution: {integrity: sha512-z/QT1XN4K4KYuslS23k62yDIDLwLFkzxOuMplDtObz0+y7VqJCaO2o+SPwHCvLFZh7xazvvoor2tA/hPz9ee7g==} - dev: true - - /@types/istanbul-lib-report@3.0.0: - resolution: {integrity: sha512-plGgXAPfVKFoYfa9NpYDAkseG+g6Jr294RqeqcqDixSbU34MZVJRi/P+7Y8GDpzkEwLaGZZOpKIEmeVZNtKsrg==} - dependencies: - '@types/istanbul-lib-coverage': 2.0.4 - dev: true - - /@types/istanbul-reports@3.0.1: - resolution: {integrity: sha512-c3mAZEuK0lvBp8tmuL74XRKn1+y2dcwOUpH7x4WrF6gk1GIgiluDRgMYQtw2OFcBvAJWlt6ASU3tSqxp0Uu0Aw==} - dependencies: - '@types/istanbul-lib-report': 3.0.0 - dev: true - - /@types/jest@28.1.8: - resolution: {integrity: sha512-8TJkV++s7B6XqnDrzR1m/TT0A0h948Pnl/097veySPN67VRAgQ4gZ7n2KfJo2rVq6njQjdxU3GCCyDvAeuHoiw==} - dependencies: - expect: 28.1.3 - pretty-format: 28.1.3 - dev: true - /@types/json-schema@7.0.13: resolution: {integrity: sha512-RbSSoHliUbnXj3ny0CNFOoxrIDV6SUGyStHsvDqosw6CkdPV8TtWGlfecuK4ToyMEAql6pzNxgCFKanovUzlgQ==} dev: true @@ -3597,30 +2350,6 @@ packages: resolution: {integrity: sha512-7aqorHYgdNO4DM36stTiGO3DvKoex9TQRwsJU6vMaFGyqpBA1MNZkz+PG3gaNUPpTAOYhT1WR7M1JyA3fbS9Cw==} dev: true - /@types/sinon@10.0.20: - resolution: {integrity: sha512-2APKKruFNCAZgx3daAyACGzWuJ028VVCUDk6o2rw/Z4PXT0ogwdV4KUegW0MwVs0Zu59auPXbbuBJHF12Sx1Eg==} - dependencies: - '@types/sinonjs__fake-timers': 8.1.4 - dev: true - - /@types/sinonjs__fake-timers@8.1.4: - resolution: {integrity: sha512-GDV68H0mBSN449sa5HEj51E0wfpVQb8xNSMzxf/PrypMFcLTMwJMOM/cgXiv71Mq5drkOQmUGvL1okOZcu6RrQ==} - dev: true - - /@types/stack-utils@2.0.1: - resolution: {integrity: sha512-Hl219/BT5fLAaz6NDkSuhzasy49dwQS/DSdu4MdggFB8zcXv7vflBI3xp7FEmkmdDkBUI2bPUNeMttp2knYdxw==} - dev: true - - /@types/yargs-parser@21.0.0: - resolution: {integrity: sha512-iO9ZQHkZxHn4mSakYV0vFHAVDyEOIJQrV2uZ06HxEPcx+mt8swXoZHIbaaJ2crJYFfErySgktuTZ3BeLz+XmFA==} - dev: true - - /@types/yargs@17.0.24: - resolution: {integrity: sha512-6i0aC7jV6QzQB8ne1joVZ0eSFIstHsCrobmOtghM11yGlH0j43FKL2UhWdELkyps0zuf7qVTUVCCR+tgSlyLLw==} - dependencies: - '@types/yargs-parser': 21.0.0 - dev: true - /@typescript-eslint/eslint-plugin@6.7.0(@typescript-eslint/parser@6.7.0)(eslint@8.49.0)(typescript@5.2.2): resolution: {integrity: sha512-gUqtknHm0TDs1LhY12K2NA3Rmlmp88jK9Tx8vGZMfHeNMLE3GH2e9TRub+y+SOjuYgtOmok+wt1AyDPZqxbNag==} engines: {node: ^16.0.0 || >=18.0.0} @@ -3650,6 +2379,35 @@ packages: - supports-color dev: true + /@typescript-eslint/eslint-plugin@6.7.0(@typescript-eslint/parser@6.7.0)(eslint@8.49.0)(typescript@5.4.2): + resolution: {integrity: sha512-gUqtknHm0TDs1LhY12K2NA3Rmlmp88jK9Tx8vGZMfHeNMLE3GH2e9TRub+y+SOjuYgtOmok+wt1AyDPZqxbNag==} + engines: {node: ^16.0.0 || >=18.0.0} + peerDependencies: + '@typescript-eslint/parser': ^6.0.0 || ^6.0.0-alpha + eslint: ^7.0.0 || ^8.0.0 + typescript: '*' + peerDependenciesMeta: + typescript: + optional: true + dependencies: + '@eslint-community/regexpp': 4.8.1 + '@typescript-eslint/parser': 6.7.0(eslint@8.49.0)(typescript@5.4.2) + '@typescript-eslint/scope-manager': 6.7.0 + '@typescript-eslint/type-utils': 6.7.0(eslint@8.49.0)(typescript@5.4.2) + '@typescript-eslint/utils': 6.7.0(eslint@8.49.0)(typescript@5.4.2) + '@typescript-eslint/visitor-keys': 6.7.0 + debug: 4.3.4 + eslint: 8.49.0 + graphemer: 1.4.0 + ignore: 5.2.4 + natural-compare: 1.4.0 + semver: 7.5.4 + ts-api-utils: 1.0.3(typescript@5.4.2) + typescript: 5.4.2 + transitivePeerDependencies: + - supports-color + dev: true + /@typescript-eslint/parser@6.7.0(eslint@8.49.0)(typescript@5.2.2): resolution: {integrity: sha512-jZKYwqNpNm5kzPVP5z1JXAuxjtl2uG+5NpaMocFPTNC2EdYIgbXIPImObOkhbONxtFTTdoZstLZefbaK+wXZng==} engines: {node: ^16.0.0 || >=18.0.0} @@ -3671,6 +2429,27 @@ packages: - supports-color dev: true + /@typescript-eslint/parser@6.7.0(eslint@8.49.0)(typescript@5.4.2): + resolution: {integrity: sha512-jZKYwqNpNm5kzPVP5z1JXAuxjtl2uG+5NpaMocFPTNC2EdYIgbXIPImObOkhbONxtFTTdoZstLZefbaK+wXZng==} + engines: {node: ^16.0.0 || >=18.0.0} + peerDependencies: + eslint: ^7.0.0 || ^8.0.0 + typescript: '*' + peerDependenciesMeta: + typescript: + optional: true + dependencies: + '@typescript-eslint/scope-manager': 6.7.0 + '@typescript-eslint/types': 6.7.0 + '@typescript-eslint/typescript-estree': 6.7.0(typescript@5.4.2) + '@typescript-eslint/visitor-keys': 6.7.0 + debug: 4.3.4 + eslint: 8.49.0 + typescript: 5.4.2 + transitivePeerDependencies: + - supports-color + dev: true + /@typescript-eslint/scope-manager@6.7.0: resolution: {integrity: sha512-lAT1Uau20lQyjoLUQ5FUMSX/dS07qux9rYd5FGzKz/Kf8W8ccuvMyldb8hadHdK/qOI7aikvQWqulnEq2nCEYA==} engines: {node: ^16.0.0 || >=18.0.0} @@ -3699,6 +2478,26 @@ packages: - supports-color dev: true + /@typescript-eslint/type-utils@6.7.0(eslint@8.49.0)(typescript@5.4.2): + resolution: {integrity: sha512-f/QabJgDAlpSz3qduCyQT0Fw7hHpmhOzY/Rv6zO3yO+HVIdPfIWhrQoAyG+uZVtWAIS85zAyzgAFfyEr+MgBpg==} + engines: {node: ^16.0.0 || >=18.0.0} + peerDependencies: + eslint: ^7.0.0 || ^8.0.0 + typescript: '*' + peerDependenciesMeta: + typescript: + optional: true + dependencies: + '@typescript-eslint/typescript-estree': 6.7.0(typescript@5.4.2) + '@typescript-eslint/utils': 6.7.0(eslint@8.49.0)(typescript@5.4.2) + debug: 4.3.4 + eslint: 8.49.0 + ts-api-utils: 1.0.3(typescript@5.4.2) + typescript: 5.4.2 + transitivePeerDependencies: + - supports-color + dev: true + /@typescript-eslint/types@6.7.0: resolution: {integrity: sha512-ihPfvOp7pOcN/ysoj0RpBPOx3HQTJTrIN8UZK+WFd3/iDeFHHqeyYxa4hQk4rMhsz9H9mXpR61IzwlBVGXtl9Q==} engines: {node: ^16.0.0 || >=18.0.0} @@ -3725,6 +2524,27 @@ packages: - supports-color dev: true + /@typescript-eslint/typescript-estree@6.7.0(typescript@5.4.2): + resolution: {integrity: sha512-dPvkXj3n6e9yd/0LfojNU8VMUGHWiLuBZvbM6V6QYD+2qxqInE7J+J/ieY2iGwR9ivf/R/haWGkIj04WVUeiSQ==} + engines: {node: ^16.0.0 || >=18.0.0} + peerDependencies: + typescript: '*' + peerDependenciesMeta: + typescript: + optional: true + dependencies: + '@typescript-eslint/types': 6.7.0 + '@typescript-eslint/visitor-keys': 6.7.0 + debug: 4.3.4 + globby: 11.1.0 + is-glob: 4.0.3 + semver: 7.5.4 + ts-api-utils: 1.0.3(typescript@5.4.2) + typescript: 5.4.2 + transitivePeerDependencies: + - supports-color + dev: true + /@typescript-eslint/utils@6.7.0(eslint@8.49.0)(typescript@5.2.2): resolution: {integrity: sha512-MfCq3cM0vh2slSikQYqK2Gq52gvOhe57vD2RM3V4gQRZYX4rDPnKLu5p6cm89+LJiGlwEXU8hkYxhqqEC/V3qA==} engines: {node: ^16.0.0 || >=18.0.0} @@ -3744,6 +2564,25 @@ packages: - typescript dev: true + /@typescript-eslint/utils@6.7.0(eslint@8.49.0)(typescript@5.4.2): + resolution: {integrity: sha512-MfCq3cM0vh2slSikQYqK2Gq52gvOhe57vD2RM3V4gQRZYX4rDPnKLu5p6cm89+LJiGlwEXU8hkYxhqqEC/V3qA==} + engines: {node: ^16.0.0 || >=18.0.0} + peerDependencies: + eslint: ^7.0.0 || ^8.0.0 + dependencies: + '@eslint-community/eslint-utils': 4.4.0(eslint@8.49.0) + '@types/json-schema': 7.0.13 + '@types/semver': 7.5.2 + '@typescript-eslint/scope-manager': 6.7.0 + '@typescript-eslint/types': 6.7.0 + '@typescript-eslint/typescript-estree': 6.7.0(typescript@5.4.2) + eslint: 8.49.0 + semver: 7.5.4 + transitivePeerDependencies: + - supports-color + - typescript + dev: true + /@typescript-eslint/visitor-keys@6.7.0: resolution: {integrity: sha512-/C1RVgKFDmGMcVGeD8HjKv2bd72oI1KxQDeY8uc66gw9R0OK0eMq48cA+jv9/2Ag6cdrsUGySm1yzYmfz0hxwQ==} engines: {node: ^16.0.0 || >=18.0.0} @@ -3990,24 +2829,6 @@ packages: - table - yaml - /aws-sdk-client-mock-jest@3.0.0(aws-sdk-client-mock@3.0.0): - resolution: {integrity: sha512-oV1rBQZc4UumLbzZAhi8UAehUq+k75hkQYGLrVIP0iJj85Z9xw+EaSsmJke/KQ8Z3vng+Xv1xbounsxpvZpunQ==} - peerDependencies: - aws-sdk-client-mock: 3.0.0 - dependencies: - '@types/jest': 28.1.8 - aws-sdk-client-mock: 3.0.0 - tslib: 2.6.2 - dev: true - - /aws-sdk-client-mock@3.0.0: - resolution: {integrity: sha512-4mBiWhuLYLZe1+K/iB8eYy5SAZyW2se+Keyh5u9QouMt6/qJ5SRZhss68xvUX5g3ApzROJ06QPRziYHP6buuvQ==} - dependencies: - '@types/sinon': 10.0.20 - sinon: 14.0.2 - tslib: 2.6.2 - dev: true - /axios@1.5.0: resolution: {integrity: sha512-D4DdjDo5CY50Qms0qGQTTw6Q44jl7zRwY7bthds06pUGfChBCTcQs+N743eFWGEd6pRTMd6A+I87aWyFV5wiZQ==} dependencies: @@ -4048,7 +2869,6 @@ packages: /bowser@2.11.0: resolution: {integrity: sha512-AlcaJBi/pqqJBIQ8U9Mcpc9i8Aqxn88Skv5d+xBX006BY5u8N3mGLHa5Lgppa7L/HfwgwLgZ6NYs+Ag6uUmJRA==} - dev: false /bplist-parser@0.2.0: resolution: {integrity: sha512-z0M+byMThzQmD9NILRniCUXYsYpjwnlO8N5uCFaCqIOpqRsJCrQL9NK3JsD67CN5a08nF5oIL2bD6loTdHOuKw==} @@ -4445,11 +3265,6 @@ packages: engines: {node: '>=0.8.0'} dev: true - /diff-sequences@28.1.1: - resolution: {integrity: sha512-FU0iFaH/E23a+a718l8Qa/19bF9p06kgE0KipMOMadwa3SjnaElKzPaUC0vnibs6/B/9ni97s61mcejk8W1fQw==} - engines: {node: ^12.13.0 || ^14.15.0 || ^16.10.0 || >=17.0.0} - dev: true - /diff-sequences@29.6.3: resolution: {integrity: sha512-EjePK1srD3P08o2j4f0ExnylqRs5B9tJjcp9t1krH2qRi8CCdsYfwe9JgSLurFBWwq4uOlipzfk5fHNvwFKr8Q==} engines: {node: ^14.15.0 || ^16.10.0 || >=18.0.0} @@ -4460,11 +3275,6 @@ packages: engines: {node: '>=0.3.1'} dev: true - /diff@5.1.0: - resolution: {integrity: sha512-D+mk+qE8VC/PAUrlAU34N+VfXev0ghe5ywmpqrawphmVZc1bEfn56uo9qpyGp1p4xpzOHkSW4ztBd6L7Xx4ACw==} - engines: {node: '>=0.3.1'} - dev: true - /dir-glob@3.0.1: resolution: {integrity: sha512-WkrWp9GR4KXfKGYzOLmTuGVi1UWFfws377n9cc55/tb6DuqyF6pcQ5AbiHEshaDpY9v6oaSr2XCDidGmMwdzIA==} engines: {node: '>=8'} @@ -4659,11 +3469,6 @@ packages: engines: {node: '>=0.8.0'} dev: true - /escape-string-regexp@2.0.0: - resolution: {integrity: sha512-UpzcLCXolUWcNu5HtVMHYdXJjArjsF9C0aNnquZYY4uW/Vu0miy5YoWvbV345HauVvcAUnpRuhMMcqTcGOY2+w==} - engines: {node: '>=8'} - dev: true - /escape-string-regexp@4.0.0: resolution: {integrity: sha512-TtpcNJ3XAzx3Gq8sWRzJaVajRs0uVxA2YAkdb1jm2YkPz4G6egUFAyA3n5vtEIZefPk5Wa4UXbKuS5fKkJWdgA==} engines: {node: '>=10'} @@ -4953,17 +3758,6 @@ packages: fill-range: 2.2.4 dev: true - /expect@28.1.3: - resolution: {integrity: sha512-eEh0xn8HlsuOBxFgIss+2mX85VAS4Qy3OSkjV7rlBWljtA4oWH37glVGyOZSZvErDT/yBywZdPGwCXuTvSG85g==} - engines: {node: ^12.13.0 || ^14.15.0 || ^16.10.0 || >=17.0.0} - dependencies: - '@jest/expect-utils': 28.1.3 - jest-get-type: 28.0.2 - jest-matcher-utils: 28.1.3 - jest-message-util: 28.1.3 - jest-util: 28.1.3 - dev: true - /extend-shallow@2.0.1: resolution: {integrity: sha512-zCnTtlxNoAiDc3gqY2aYAWFx7XWWiasuF2K8Me5WbN8otHKTUKBwjPtNpRs/rbUZm7KxWAaNj7P1a/p52GbVug==} engines: {node: '>=0.10.0'} @@ -5027,7 +3821,6 @@ packages: hasBin: true dependencies: strnum: 1.0.5 - dev: false /fastq@1.15.0: resolution: {integrity: sha512-wBrocU2LCXXa+lWBt8RoIRD89Fi8OdABODa/kEnyeyjS5aZO5/GNvI5sEINADqP/h8M29UHTHUb53sUu5Ihqdw==} @@ -5706,10 +4499,6 @@ packages: is-docker: 2.2.1 dev: true - /isarray@0.0.1: - resolution: {integrity: sha512-D2S+3GLxWH+uhrNEcoh/fnmYeP8E8/zHl644d/jdA0g2uyXvy3sb0qxotE+ne0LtccHknQzWwZEzhak7oJ0COQ==} - dev: true - /isarray@1.0.0: resolution: {integrity: sha512-VLghIWNM6ELQzo7zwmcg0NmTVyWKYjvIeM83yjp0wRDTmUnrM678fQbcKBo6n2CJEF0szoG//ytg+TKla89ALQ==} dev: true @@ -5743,58 +4532,6 @@ packages: '@pkgjs/parseargs': 0.11.0 dev: true - /jest-diff@28.1.3: - resolution: {integrity: sha512-8RqP1B/OXzjjTWkqMX67iqgwBVJRgCyKD3L9nq+6ZqJMdvjE8RgHktqZ6jNrkdMT+dJuYNI3rhQpxaz7drJHfw==} - engines: {node: ^12.13.0 || ^14.15.0 || ^16.10.0 || >=17.0.0} - dependencies: - chalk: 4.1.2 - diff-sequences: 28.1.1 - jest-get-type: 28.0.2 - pretty-format: 28.1.3 - dev: true - - /jest-get-type@28.0.2: - resolution: {integrity: sha512-ioj2w9/DxSYHfOm5lJKCdcAmPJzQXmbM/Url3rhlghrPvT3tt+7a/+oXc9azkKmLvoiXjtV83bEWqi+vs5nlPA==} - engines: {node: ^12.13.0 || ^14.15.0 || ^16.10.0 || >=17.0.0} - dev: true - - /jest-matcher-utils@28.1.3: - resolution: {integrity: sha512-kQeJ7qHemKfbzKoGjHHrRKH6atgxMk8Enkk2iPQ3XwO6oE/KYD8lMYOziCkeSB9G4adPM4nR1DE8Tf5JeWH6Bw==} - engines: {node: ^12.13.0 || ^14.15.0 || ^16.10.0 || >=17.0.0} - dependencies: - chalk: 4.1.2 - jest-diff: 28.1.3 - jest-get-type: 28.0.2 - pretty-format: 28.1.3 - dev: true - - /jest-message-util@28.1.3: - resolution: {integrity: sha512-PFdn9Iewbt575zKPf1286Ht9EPoJmYT7P0kY+RibeYZ2XtOr53pDLEFoTWXbd1h4JiGiWpTBC84fc8xMXQMb7g==} - engines: {node: ^12.13.0 || ^14.15.0 || ^16.10.0 || >=17.0.0} - dependencies: - '@babel/code-frame': 7.22.13 - '@jest/types': 28.1.3 - '@types/stack-utils': 2.0.1 - chalk: 4.1.2 - graceful-fs: 4.2.11 - micromatch: 4.0.5 - pretty-format: 28.1.3 - slash: 3.0.0 - stack-utils: 2.0.6 - dev: true - - /jest-util@28.1.3: - resolution: {integrity: sha512-XdqfpHwpcSRko/C35uLYFM2emRAltIIKZiJ9eAmhjsj0CqZMa0p1ib0R5fWIqGhn1a103DebTbpqIaP1qCQ6tQ==} - engines: {node: ^12.13.0 || ^14.15.0 || ^16.10.0 || >=17.0.0} - dependencies: - '@jest/types': 28.1.3 - '@types/node': 18.19.14 - chalk: 4.1.2 - ci-info: 3.8.0 - graceful-fs: 4.2.11 - picomatch: 2.3.1 - dev: true - /js-tokens@4.0.0: resolution: {integrity: sha512-RdJUflcE3cUzKiMqQgsCu06FPu9UdIJO0beYbPhHN4k6apgJtifcoCtT9bcxOpYBtpD2kCM6Sbzg4CausW/PKQ==} dev: true @@ -5865,10 +4602,6 @@ packages: graceful-fs: 4.2.11 dev: true - /just-extend@4.2.1: - resolution: {integrity: sha512-g3UB796vUFIY90VIv/WX3L2c8CS2MdWUww3CNrYmqza1Fg0DURc2K/O4YrnklBdQarSJ/y8JnJYDGc+1iumQjg==} - dev: true - /keyv@4.5.3: resolution: {integrity: sha512-QCiSav9WaX1PgETJ+SpNnx2PRRapJ/oRSXM4VO5OGYGSjrxbKPVFVhB3l2OCbLCk329N8qyAtsJjSjvVBWzEug==} dependencies: @@ -5967,10 +4700,6 @@ packages: resolution: {integrity: sha512-xYHt68QRoYGjeeM/XOE1uJtvXQAgvszfBhjV4yvsQH0u2i9I6cI6c6/eG4Hh3UAOVn0y/xAXwmTzEay49Q//HA==} dev: true - /lodash.get@4.4.2: - resolution: {integrity: sha512-z+Uw/vLuy6gQe8cfaFWD7p0wVv8fJl3mbzXh33RS+0oW2wvUqiRXiQ69gLWSLpgB5/6sU+r6BlQR0MBILadqTQ==} - dev: true - /lodash.merge@4.6.2: resolution: {integrity: sha512-0KpjqXRVvrYyCsX1swR/XTK0va6VQkQM6MNo7PqW77ByjAhoARA8EfrP1N4+KlKj8YS0ZUCtRT/YUuhyYDujIQ==} @@ -6166,12 +4895,6 @@ packages: ufo: 1.4.0 dev: true - /mnemonist@0.38.3: - resolution: {integrity: sha512-2K9QYubXx/NAjv4VLq1d1Ly8pWNC5L3BrixtdkyTegXWJIqY+zLNDhhX/A+ZwWt70tB1S8H4BE8FLYEFyNoOBw==} - dependencies: - obliterator: 1.6.1 - dev: false - /ms@2.1.2: resolution: {integrity: sha512-sGkPx+VjMtmA6MX27oA4FBFELFCZZ4S4XqeGOXCv68tT+jb3vk/RyaKWP0PTKyWtmLSM0b+adUTEvbs1PEaH2w==} dev: true @@ -6190,16 +4913,6 @@ packages: resolution: {integrity: sha512-OWND8ei3VtNC9h7V60qff3SVobHr996CTwgxubgyQYEpg290h9J0buyECNNJexkFm5sOajh5G116RYA1c8ZMSw==} dev: true - /nise@5.1.5: - resolution: {integrity: sha512-VJuPIfUFaXNRzETTQEEItTOP8Y171ijr+JLq42wHes3DiryR8vT+1TXQW/Rx8JNUhyYYWyIvjXTU6dOhJcs9Nw==} - dependencies: - '@sinonjs/commons': 2.0.0 - '@sinonjs/fake-timers': 10.3.0 - '@sinonjs/text-encoding': 0.7.2 - just-extend: 4.2.1 - path-to-regexp: 1.8.0 - dev: true - /node-addon-api@3.2.1: resolution: {integrity: sha512-mmcei9JghVNDYydghQmeDX8KoAm0FAiYyIcUt/N4nhyAipB17pllZQDOJD2fotxABnt4Mdz+dKTO7eftLg4d0A==} dev: true @@ -6358,10 +5071,6 @@ packages: es-abstract: 1.22.2 dev: true - /obliterator@1.6.1: - resolution: {integrity: sha512-9WXswnqINnnhOG/5SLimUlzuU1hFJUc8zkwyD59Sd+dPOMf05PmnYG/d6Q7HZ+KmgkZJa1PxRso6QdM3sTNHig==} - dev: false - /once@1.4.0: resolution: {integrity: sha512-lNaJgI+2Q5URQBkccEKHTQOPaXdUxnZZElQTZY0MFUAuaEqe1E+Nyvgdz/aIyNi6Z9MzO5dv1H8n58/GELp3+w==} dependencies: @@ -6523,12 +5232,6 @@ packages: minipass: 7.0.3 dev: true - /path-to-regexp@1.8.0: - resolution: {integrity: sha512-n43JRhlUKUAlibEJhPeir1ncUID16QnEjNpwzNdO3Lm4ywrBpBZ5oLD0I6br9evr1Y9JTqwRtAh7JLoOzAQdVA==} - dependencies: - isarray: 0.0.1 - dev: true - /path-type@4.0.0: resolution: {integrity: sha512-gDKb8aZMDeD/tZWs9P6+q0J9Mwkdl6xMV8TjnGP3qJVJ06bdMgkbBlLU8IdfOsIsFz2BW1rNVT3XuNEl8zPAvw==} engines: {node: '>=8'} @@ -6614,16 +5317,6 @@ packages: hasBin: true dev: true - /pretty-format@28.1.3: - resolution: {integrity: sha512-8gFb/To0OmxHR9+ZTb14Df2vNxdGCX8g1xWGUTqUw5TiZvcQf5sHKObd5UcPyLLyowNwDAMTF3XWOG1B6mxl1Q==} - engines: {node: ^12.13.0 || ^14.15.0 || ^16.10.0 || >=17.0.0} - dependencies: - '@jest/schemas': 28.1.3 - ansi-regex: 5.0.1 - ansi-styles: 5.2.0 - react-is: 18.2.0 - dev: true - /pretty-format@29.7.0: resolution: {integrity: sha512-Pdlw/oPxN+aXdmM9R00JVC9WVFoCLTKJvDVLgmJ+qAffBMxsV85l/Lu7sNx4zSzPyoL2euImuEwHhOXdEgNFZQ==} engines: {node: ^14.15.0 || ^16.10.0 || >=18.0.0} @@ -6995,18 +5688,6 @@ packages: engines: {node: '>=14'} dev: true - /sinon@14.0.2: - resolution: {integrity: sha512-PDpV0ZI3ZCS3pEqx0vpNp6kzPhHrLx72wA0G+ZLaaJjLIYeE0n8INlgaohKuGy7hP0as5tbUd23QWu5U233t+w==} - deprecated: 16.1.1 - dependencies: - '@sinonjs/commons': 2.0.0 - '@sinonjs/fake-timers': 9.1.2 - '@sinonjs/samsam': 7.0.1 - diff: 5.1.0 - nise: 5.1.5 - supports-color: 7.2.0 - dev: true - /slash@3.0.0: resolution: {integrity: sha512-g9Q1haeby36OSStwb4ntCGGGaKsaVSjQ68fBxoQcutl5fS1vuY18H3wSt3jFyFtrkx+Kz0V1G85A4MyAdDMi2Q==} engines: {node: '>=8'} @@ -7068,13 +5749,6 @@ packages: resolution: {integrity: sha512-D9cPgkvLlV3t3IzL0D0YLvGA9Ahk4PcvVwUbN0dSGr1aP0Nrt4AEnTUbuGvquEC0mA64Gqt1fzirlRs5ibXx8g==} dev: true - /stack-utils@2.0.6: - resolution: {integrity: sha512-XlkWvfIm6RmsWtNJx+uqtKLS8eqFbxUg0ZzLXqY0caEy9l7hruX8IpiDnjsLavoBgqCCR71TqWO8MaXYheJ3RQ==} - engines: {node: '>=10'} - dependencies: - escape-string-regexp: 2.0.0 - dev: true - /stackback@0.0.2: resolution: {integrity: sha512-1XMJE5fQo1jGH6Y/7ebnwPOBEkIEnT4QF32d5R1+VXdXveM0IBMJt8zfaxX1P3QhVwrYe+576+jkANtSS2mBbw==} dev: true @@ -7202,7 +5876,6 @@ packages: /strnum@1.0.5: resolution: {integrity: sha512-J8bbNyKKXl5qYcR36TIO8W3mVGVHrmmxsd5PAItGkmyzwJvybiw2IVq5nqd0i4LSNSkB/sx9VHllbfFdr9k1JA==} - dev: false /strong-log-transformer@2.1.0: resolution: {integrity: sha512-B3Hgul+z0L9a236FAUC9iZsL+nVHgoCJnqCbN588DjYxvGXaXaaFbfmQ/JhvKjZwsOukuR72XbHv71Qkug0HxA==} @@ -7342,7 +6015,16 @@ packages: typescript: 5.2.2 dev: true - /ts-node@10.9.1(@types/node@18.19.14)(typescript@5.2.2): + /ts-api-utils@1.0.3(typescript@5.4.2): + resolution: {integrity: sha512-wNMeqtMz5NtwpT/UZGY5alT+VoKdSsOOP/kqHFcUW1P/VRhH2wJ48+DN2WwUliNbQ976ETwDL0Ifd2VVvgonvg==} + engines: {node: '>=16.13.0'} + peerDependencies: + typescript: '>=4.2.0' + dependencies: + typescript: 5.4.2 + dev: true + + /ts-node@10.9.1(@types/node@18.19.14)(typescript@5.4.2): resolution: {integrity: sha512-NtVysVPkxxrwFGUUxGYhfux8k78pQB3JqYBXlLRZgdGUqTO5wU/UyHop5p70iEbGhB7q5KmiZiU0Y3KlJrScEw==} hasBin: true peerDependencies: @@ -7368,7 +6050,7 @@ packages: create-require: 1.1.1 diff: 4.0.2 make-error: 1.3.6 - typescript: 5.2.2 + typescript: 5.4.2 v8-compile-cache-lib: 3.0.1 yn: 3.1.1 dev: true @@ -7393,7 +6075,6 @@ packages: /tslib@1.14.1: resolution: {integrity: sha512-Xni35NKzjgMrwevysHTCArtLDpPvye8zV/0E4EyYn43P7/7qvQwPh9BGkHewbMulVntbigmcT7rdX3BNo9wRJg==} - dev: false /tslib@2.6.2: resolution: {integrity: sha512-AEYxH93jGFPn/a2iVAwW87VuUIkR1FVUKB77NwMF7nBTDkDrrT/Hpt/IrCJ0QXhW27jTBDcf5ZY7w6RiqTMw2Q==} @@ -7503,6 +6184,12 @@ packages: hasBin: true dev: true + /typescript@5.4.2: + resolution: {integrity: sha512-+2/g0Fds1ERlP6JsakQQDXjZdZMM+rqpamFZJEKh4kwTIn3iDkgKtby0CeNd5ATNZ4Ry1ax15TMx0W2V+miizQ==} + engines: {node: '>=14.17'} + hasBin: true + dev: true + /ufo@1.4.0: resolution: {integrity: sha512-Hhy+BhRBleFjpJ2vchUNN40qgkh0366FWJGqVLYBHev0vpHTrXSA0ryT+74UiW6KWsldNurQMKGqCm1M2zBciQ==} dev: true @@ -7548,12 +6235,6 @@ packages: /uuid@8.3.2: resolution: {integrity: sha512-+NYs2QeMWy+GWFOEm9xnn6HCDp0l7QBD7ml8zLUmJ+93Q5NF0NocErnwkTkXVFNiX3/fpC6afS8Dhb/gz7R7eg==} hasBin: true - dev: false - - /uuid@9.0.1: - resolution: {integrity: sha512-b+1eJOlsR9K8HJpow9Ok3fiWOWSIcIzXodvv0rQjVoOVNpWMpxf1wZNpt4y9h10odCNrqnYp1OBzRktckBe3sA==} - hasBin: true - dev: false /v8-compile-cache-lib@3.0.1: resolution: {integrity: sha512-wa7YjyUGfNZngI/vtK0UHAN+lgDCxBPCylVXGp0zu59Fz5aiGtNXaq3DhIov063MorB+VfufLh3JlF2KdTK3xg==} diff --git a/pnpm-workspace.yaml b/pnpm-workspace.yaml index 62bb288..dc6aa91 100644 --- a/pnpm-workspace.yaml +++ b/pnpm-workspace.yaml @@ -1,17 +1,7 @@ # ~~ Generated by projen. To modify, edit .projenrc.ts and run "pnpm exec projen". packages: - - packages/client-api-gateway-management-api - - packages/client-dynamodb - - packages/client-ec2 - - packages/client-elasticache - - packages/client-eventbridge - - packages/client-iam - - packages/client-lambda - - packages/client-s3 - - packages/client-sfn - - packages/client-sns - - packages/client-sqs - packages/lambda - - packages/lib-dynamodb + - packages/polly-request-presigner - packages/powertools-logger + - packages/s3-request-presigner diff --git a/scripts/codegen-client.ts b/scripts/codegen-clients.ts similarity index 62% rename from scripts/codegen-client.ts rename to scripts/codegen-clients.ts index f6800ca..76764b8 100644 --- a/scripts/codegen-client.ts +++ b/scripts/codegen-clients.ts @@ -1,12 +1,10 @@ /** * How to use: - * - * 1. Define a new package in `.projenrc.ts` (the package must have the same name as the AWS client) and run `pnpm run synth-workspace`. - * 2. Run `pnpm run codegen-client`, select the package to generate. - * 3. Run `Run pnpm run eslint --fix` to fix the formatting. - * 4. Commit the changes and enjoy. + * 1. Run `pnpm -- codegen-clients` + * 2. Run `pnpm install` + * 3. Run `pnpm -- nx run-many --target compile --all --parallel` */ -import { mkdir, readdir, writeFile } from "node:fs/promises"; +import { mkdir, writeFile } from "node:fs/promises"; import { Effect, @@ -15,124 +13,130 @@ import { ReadonlyRecord, String, Struct, - Tuple, - Exit, - Predicate, } from "effect"; -import { constVoid, flow, pipe } from "effect/Function"; -import Enquirer from "enquirer"; +import { flow, pipe } from "effect/Function"; type Shape = - | { type: "boolean" } - | { type: "integer" } - | { type: "double" } - | { type: "string" } - | { type: "timestamp" } - | { type: "enum" } - | { type: "list" } | { type: "operation"; - errors: { target: string }[]; + input: { target: string }; + output: { target: string }; + errors?: { target: string }[]; } | { type: "service"; - operations: { target: string }[]; traits: { "aws.api#service": { sdkId: string; + cloudFormationName: string; }; }; } - | { type: "structure" }; + | { + type: "structure"; + traits?: { + "smithy.api#error"?: string; + }; + }; -interface Manifest { +type OperationType = Extract; + +interface SmithyModel { shapes: Record; } +interface Lerna { + version: string; +} + +interface Tags { + object: { + sha: string; + }; +} + +interface Tree { + tree: { + path: string; + type: "tree" | "blob"; + }[]; +} + main().catch(console.error); +function getOperations(smithyModel: SmithyModel): [string, OperationType][] { + return pipe( + smithyModel.shapes, + ReadonlyRecord.toEntries, + ReadonlyArray.filter(([_, shape]) => shape.type === "operation"), + ) as unknown as [string, OperationType][]; +} + +function getOperationNames(smithyModel: SmithyModel) { + return pipe( + getOperations(smithyModel), + ReadonlyArray.map(([name, _]) => name), + ReadonlyArray.map(getLocalNameFromNamespace), + ); +} + async function main() { - const enquirer = new Enquirer<{ - services: string[]; - commandToTest: string; - inputToTest: string; - }>(); - - const { services } = await enquirer.prompt({ - type: "autocomplete", - name: "services", - message: "Which clients do you want to generate ?", - multiple: true, - choices: (await readdir("./packages")).filter((s) => - s.startsWith("client-"), - ), - }); + const version = "v3.535.0"; + const currentVersion = ( + (await ( + await fetch( + `https://raw.githubusercontent.com/aws/aws-sdk-js-v3/main/lerna.json`, + ) + ).json()) as Lerna + ).version; + + const sha = ( + (await ( + await fetch( + `https://api.github.com/repos/aws/aws-sdk-js-v3/git/ref/tags/${version}`, + ) + ).json()) as Tags + ).object.sha; + + const tree = ( + (await ( + await fetch( + `https://api.github.com/repos/aws/aws-sdk-js-v3/git/trees/${sha}?recursive=1`, + ) + ).json()) as Tree + ).tree; + + const servicesRegexp = /^clients\/(client-[^\/]*?)$/; + const services = pipe( + tree, + ReadonlyArray.filter((t) => servicesRegexp.test(t.path)), + ReadonlyArray.map((t) => t.path.match(servicesRegexp)![1]), + ); + const each = services.map((packageName) => Effect.promise(async () => { const serviceName = pipe(packageName, String.replace(/^client-/, "")); - const manifest = (await ( - await fetch( - `https://raw.githubusercontent.com/aws/aws-sdk-js-v3/main/codegen/sdk-codegen/aws-models/${serviceName}.json`, - ) - ).json()) as Manifest; - - const serviceShape = pipe( - manifest.shapes, - ReadonlyRecord.values, - ReadonlyArray.findFirst( - (shape): shape is Extract => - shape.type === "service", - ), - Option.getOrThrowWith(() => new TypeError("ServiceShape is not found")), - ); - - const operationTargets = pipe( - serviceShape.operations, - ReadonlyArray.map(({ target }) => target), - ); - - const operationNames = pipe( - operationTargets, - ReadonlyArray.map(getNameFromTarget), + console.log( + `Smithy model: https://raw.githubusercontent.com/aws/aws-sdk-js-v3/${version}/codegen/sdk-codegen/aws-models/${serviceName}.json`, ); - const { commandToTest } = await enquirer.prompt({ - type: "autocomplete", - name: "commandToTest", - message: `Which command do you want to test in ${packageName} ?`, - multiple: false, - choices: operationNames, - }); - - const { inputToTest } = await enquirer.prompt({ - type: "input", - name: "inputToTest", - message: `Which input do you want to test of ${commandToTest} ? (optional)`, - validate: Predicate.or(String.isEmpty)( - flow( - Effect.succeed, - Effect.tryMap({ - try: JSON.parse, - catch: constVoid, - }), - Effect.runSyncExit, - Exit.isSuccess, - ), - ), - }); + const smithyModel = (await ( + await fetch( + `https://raw.githubusercontent.com/aws/aws-sdk-js-v3/${version}/codegen/sdk-codegen/aws-models/${serviceName}.json`, + ) + ).json()) as SmithyModel; - return [packageName, commandToTest, inputToTest] as const; + return [serviceName, smithyModel] as const; }), ); - const results = await Effect.runPromise(Effect.all(each, { concurrency: 1 })); - - return Promise.all(results.map(generateClient)); + const results = await Effect.runPromise(Effect.all(each, { concurrency: "unbounded" })); + return Promise.all(results.map((item) => generateClient(version, item))); } -const getNameFromTarget = flow( +const getLocalNameFromNamespace = flow( String.split("#"), ReadonlyArray.get(1), Option.getOrThrow, @@ -143,26 +147,25 @@ const lowerFirst = flow( ReadonlyArray.join(""), ); -const upperFirst = flow( - ReadonlyArray.modify(0, String.toUpperCase), +const pascalCase = (s: string) => pipe( + s.split(" "), + ReadonlyArray.flatMap(flow(ReadonlyArray.modify(0, String.toUpperCase))), ReadonlyArray.join(""), ); -async function generateClient([ - packageName, - commandToTest, - inputToTest, -]: readonly [string, string, string]) { - const serviceName = pipe(packageName, String.replace(/^client-/, "")); +const SMITHY_API_UNIT = 'smithy.api#Unit'; - const manifest = (await ( - await fetch( - `https://raw.githubusercontent.com/aws/aws-sdk-js-v3/main/codegen/sdk-codegen/aws-models/${serviceName}.json`, - ) - ).json()) as Manifest; +async function generateClient( + version: string, + [packageName, smithyModel]: readonly [string, SmithyModel], +) { + + console.log(`Generating ${packageName}...`); + + const serviceName = pipe(packageName, String.replace(/^client-/, "")); const serviceShape = pipe( - manifest.shapes, + smithyModel.shapes, ReadonlyRecord.values, ReadonlyArray.findFirst( (shape): shape is Extract => @@ -171,28 +174,41 @@ async function generateClient([ Option.getOrThrowWith(() => new TypeError("ServiceShape is not found")), ); - const { sdkId } = serviceShape.traits["aws.api#service"]; - const sdkName = upperFirst(sdkId); - - const awsClient = await import( - `../packages/client-${serviceName}/node_modules/@aws-sdk/client-${serviceName}/dist-cjs/index.js` - ); - - const serviceException = `${sdkName}ServiceException`; + const { cloudFormationName, sdkId } = serviceShape.traits["aws.api#service"]; + if (cloudFormationName === undefined && sdkId === undefined) { + throw new TypeError("cloudFormationName is not found"); + } + const sdkName = pascalCase(sdkId); const exportedErrors = pipe( - awsClient, - ReadonlyRecord.filter( - (value) => - typeof value === "function" && - value.prototype instanceof awsClient[serviceException], + smithyModel.shapes, + ReadonlyRecord.toEntries, + ReadonlyArray.filter( + ([_, shape]) => + shape.type === "structure" && + shape.traits?.["smithy.api#error"] !== undefined, ), - ReadonlyRecord.keys, + ReadonlyArray.map(([name, _]) => name), + ReadonlyArray.map(getLocalNameFromNamespace) + ); + + const operations = getOperations(smithyModel); + const importedErrors = pipe( + operations, + ReadonlyArray.flatMap(([_, { errors }]) => errors ?? []), + ReadonlyArray.map(error => getLocalNameFromNamespace(error.target)), + ReadonlyArray.dedupe ); + const commandToTest = getLocalNameFromNamespace(operations[0][0]); + const inputToTest = ""; + + await mkdir(`./generated/packages/client-${serviceName}/src/`, { recursive: true }); await writeFile( - `./packages/client-${serviceName}/src/Errors.ts`, - `import type { ${exportedErrors.map((e) => (e.endsWith("Error") ? `${e} as ${String.replace(/Error$/, "")(e)}Exception` : e)).join(", ")} } from "@aws-sdk/client-${serviceName}"; + `./generated/packages/client-${serviceName}/src/Errors.ts`, + `import type { + ${exportedErrors.map((e) => `${e} as Sdk${e}`).join(",\n ")} +} from "@aws-sdk/client-${serviceName}"; import * as Data from "effect/Data"; export type TaggedException = T & { @@ -202,8 +218,8 @@ export type TaggedException = T & { ${pipe( exportedErrors, ReadonlyArray.map( - (taggedError) => - `export type ${pipe(taggedError, String.replace(/(Exception|Error)$/, ""))}Error = TaggedException<${taggedError.endsWith("Error") ? `${String.replace(/Error$/, "")(taggedError)}Exception` : taggedError}>;`, + (e) => + `export type ${e} = TaggedException;`, ), ReadonlyArray.join("\n"), )} @@ -214,7 +230,7 @@ export const SdkError = Data.tagged("SdkError"); ); await writeFile( - `./packages/client-${serviceName}/src/${sdkName}ClientInstance.ts`, + `./generated/packages/client-${serviceName}/src/${sdkName}ClientInstance.ts`, `/** * @since 1.0.0 */ @@ -264,7 +280,7 @@ export const Default${sdkName}ClientInstanceLayer = ${sdkName}ClientInstanceLaye ); await writeFile( - `./packages/client-${serviceName}/src/${sdkName}ClientInstanceConfig.ts`, + `./generated/packages/client-${serviceName}/src/${sdkName}ClientInstanceConfig.ts`, `/** * @since 1.0.0 */ @@ -324,64 +340,36 @@ export const Default${sdkName}ClientConfigLayer = Layer.effect( ); await writeFile( - `./packages/client-${serviceName}/src/index.ts`, + `./generated/packages/client-${serviceName}/src/index.ts`, `export * from "./Errors"; export * from "./${sdkName}ClientInstance"; export * from "./${sdkName}ClientInstanceConfig"; export * from "./${sdkName}Service"; `, ); - const operationTargets = pipe( - serviceShape.operations, - ReadonlyArray.map(({ target }) => target), - ); - const operationShapes = pipe( - manifest.shapes, - ReadonlyRecord.filter( - (shape): shape is Extract => - shape.type === "operation", - ), - Struct.pick(...operationTargets), - ReadonlyRecord.filter(Predicate.isNotUndefined), - ReadonlyRecord.mapKeys(getNameFromTarget), - ReadonlyRecord.toEntries, - ); - - const operationNames = pipe( - operationTargets, - ReadonlyArray.map(getNameFromTarget), - ); - - const importedErrors = pipe( - operationShapes, - ReadonlyArray.map(Tuple.getSecond), - ReadonlyArray.filter( - (shape): shape is Extract => - shape.type === "operation", - ), - ReadonlyArray.flatMap(({ errors }) => errors ?? []), - ReadonlyArray.map(flow(({ target }) => target, getNameFromTarget)), - ReadonlyArray.dedupe, - ReadonlyArray.sort(String.Order), - ReadonlyArray.intersection(exportedErrors), - ); await writeFile( - `./packages/client-${serviceName}/src/${sdkName}Service.ts`, + `./generated/packages/client-${serviceName}/src/${sdkName}Service.ts`, `/** * @since 1.0.0 */ import { - ${sdkName}ServiceException, + ${sdkName}ServiceException as Sdk${sdkName}ServiceException, ${pipe( - operationNames, + operations, ReadonlyArray.map( - (name) => `${name}Command, - type ${name}CommandInput, - type ${name}CommandOutput,`, + ([name]) => `${getLocalNameFromNamespace(name)}Command,` ), ReadonlyArray.join("\n "), )} + ${pipe( + operations, + ReadonlyArray.flatMap(([_, { input, output }]) => [input.target, output.target]), + ReadonlyArray.filter(target => target !== SMITHY_API_UNIT), + ReadonlyArray.map(target => `type ${getLocalNameFromNamespace(target)},`), + ReadonlyArray.dedupe, + ReadonlyArray.join("\n "), + )} } from "@aws-sdk/client-${serviceName}"; import { type HttpHandlerOptions as __HttpHandlerOptions } from "@aws-sdk/types"; import { Context, Data, Effect, Layer, ReadonlyRecord } from "effect"; @@ -392,18 +380,16 @@ import { import { Default${sdkName}ClientConfigLayer } from "./${sdkName}ClientInstanceConfig"; import { ${pipe( - importedErrors.map(String.replace(/(Exception|Error)$/, "")), - ReadonlyArray.map((error) => `${error}Error`), - ReadonlyArray.join(","), - )}, - SdkError, - TaggedException, + [...importedErrors, 'SdkError', 'TaggedException'], + ReadonlyArray.join(",\n "), + )} } from "./Errors"; const commands = { ${pipe( - operationNames, + getOperationNames(smithyModel), ReadonlyArray.map((name) => `${name}Command`), + ReadonlyArray.join(",\n "), )} }; @@ -415,24 +401,22 @@ export interface ${sdkName}Service { readonly _: unique symbol; ${pipe( - operationShapes, + operations, ReadonlyArray.map(([operationName, operationShape]) => { const errors = pipe( operationShape.errors || [], - ReadonlyArray.map(flow(Struct.get("target"), getNameFromTarget)), + ReadonlyArray.map(flow(Struct.get("target"), getLocalNameFromNamespace)), ReadonlyArray.intersection(importedErrors), - ReadonlyArray.map(String.replace(/(Exception|Error)$/, "")), - ReadonlyArray.map((error) => `${error}Error`), ); return ` /** - * @see {@link ${operationName}Command} + * @see {@link ${getLocalNameFromNamespace(operationName)}Command} */ - ${pipe(operationName, lowerFirst)}( - args: ${operationName}CommandInput, + ${pipe(getLocalNameFromNamespace(operationName), lowerFirst)}( + args: ${operationShape.input.target === SMITHY_API_UNIT ? '{}' : getLocalNameFromNamespace(operationShape.input.target)}, options?: __HttpHandlerOptions, ): Effect.Effect< - ${operationName}CommandOutput, - ${pipe(["SdkError", ...errors], ReadonlyArray.join(" | "))} + ${operationShape.output.target === SMITHY_API_UNIT ? 'void' : getLocalNameFromNamespace(operationShape.output.target)}, + ${pipe(["| SdkError", ...errors], ReadonlyArray.join("\n | "))} >`; }), ReadonlyArray.join("\n\n"), @@ -460,9 +444,9 @@ export const make${sdkName}Service = Effect.gen(function* (_) { Effect.tryPromise({ try: () => client.send(new CommandCtor(args), options ?? {}), catch: (e) => { - if (e instanceof ${sdkName}ServiceException) { + if (e instanceof Sdk${sdkName}ServiceException) { const ServiceException = Data.tagged< - TaggedException<${sdkName}ServiceException> + TaggedException >(e.name); return ServiceException({ @@ -517,9 +501,11 @@ export const Default${sdkName}ServiceLayer = ${sdkName}ServiceLayer.pipe( `, ); - await mkdir(`./packages/client-${serviceName}/test`, { recursive: true }); + await mkdir(`./generated/packages/client-${serviceName}/test`, { + recursive: true, + }); await writeFile( - `./packages/client-${serviceName}/test/${sdkName}.test.ts`, + `./generated/packages/client-${serviceName}/test/${sdkName}.test.ts`, `import { type ${commandToTest}CommandInput, ${commandToTest}Command, @@ -694,4 +680,89 @@ describe("${sdkName}ClientImpl", () => { }); `, ); + + await writeFile( + `./generated/packages/client-${serviceName}/package.json`, + `{ + "name": "@effect-aws/client-${serviceName}", + "version": "${version}", + "main": "lib/index.js", + "license": "MIT", + "homepage": "https://floydspace.github.io/effect-aws", + "publishConfig": { + "access": "public" + }, + "types": "lib/index.d.ts", + "module": "lib/esm/index.js", + "sideEffects": [], + "scripts": { + "compile": "tsc --project tsconfig.json && tsc --project tsconfig.esm.json" + }, + "devDependencies": { + "aws-sdk-client-mock": "^4.0.0", + "aws-sdk-client-mock-jest": "^4.0.0", + "typescript": "^5.0.0" + }, + "peerDependencies": { + "@aws-sdk/types": "^${version}", + "@aws-sdk/client-${serviceName}": "${version}", + "effect": ">=2.3.1 <2.5.0" + } +}`, + ); + + await writeFile( + `./generated/packages/client-${serviceName}/tsconfig.json`, + `{ + "compilerOptions": { + "rootDir": "src", + "outDir": "lib", + "alwaysStrict": true, + "declaration": true, + "esModuleInterop": true, + "experimentalDecorators": true, + "inlineSourceMap": true, + "inlineSources": true, + "lib": [ + "es2019", + "dom" + ], + "module": "CommonJS", + "noEmitOnError": false, + "noFallthroughCasesInSwitch": true, + "noImplicitAny": true, + "noImplicitReturns": true, + "noImplicitThis": true, + "noUnusedLocals": true, + "noUnusedParameters": true, + "resolveJsonModule": true, + "strict": true, + "strictNullChecks": true, + "strictPropertyInitialization": true, + "stripInternal": true, + "target": "ES2019", + "moduleResolution": "node" + }, + "include": [ + "src/**/*.ts" + ], + "exclude": [] +}`, + ); + + await writeFile( + `./generated/packages/client-${serviceName}/tsconfig.esm.json`, + `{ + "extends": "./tsconfig.json", + "compilerOptions": { + "outDir": "./lib/esm", + "module": "es6", + "resolveJsonModule": false, + "declaration": false + } +}`, + ); } + + +//{ "name": "@effect-aws/client-s3", \ No newline at end of file