You're Invited:Meet the Socket Team at BlackHat and DEF CON in Las Vegas, Aug 4-6.RSVP

@effect-aws/client-api-gateway-v2

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@effect-aws/client-api-gateway-v2

Effectful AWS API Gateway V2 client

1.10.3
latest
Version published
Weekly downloads
1
Maintainers
1
Weekly downloads
 
Created

@effect-aws/client-api-gateway-v2

npm version npm downloads

Installation

npm install --save @effect-aws/client-api-gateway-v2

Usage

With default ApiGatewayV2Client instance:

import { ApiGatewayV2 } from "@effect-aws/client-api-gateway-v2";

const program = ApiGatewayV2.getApi(args);

const result = pipe(
  program,
  Effect.provide(ApiGatewayV2.defaultLayer),
  Effect.runPromise,
);

With custom ApiGatewayV2Client instance:

import { ApiGatewayV2 } from "@effect-aws/client-api-gateway-v2";

const program = ApiGatewayV2.getApi(args);

const result = await pipe(
  program,
  Effect.provide(
    ApiGatewayV2.baseLayer(() => new ApiGatewayV2Client({ region: "eu-central-1" })),
  ),
  Effect.runPromise,
);

With custom ApiGatewayV2Client configuration:

import { ApiGatewayV2 } from "@effect-aws/client-api-gateway-v2";

const program = ApiGatewayV2.getApi(args);

const result = await pipe(
  program,
  Effect.provide(ApiGatewayV2.layer({ region: "eu-central-1" })),
  Effect.runPromiseExit,
);

or use ApiGatewayV2.baseLayer((default) => new ApiGatewayV2Client({ ...default, region: "eu-central-1" }))

FAQs

Package last updated on 17 May 2025

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts