1.10.3 • Published 5 months ago

@effect-aws/client-api-gateway-management-api v1.10.3

Weekly downloads
-
License
MIT
Repository
github
Last release
5 months ago

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

npm version npm downloads

Installation

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

Usage

With default ApiGatewayManagementApiClient instance:

import { ApiGatewayManagementApi } from "@effect-aws/client-api-gateway-management-api";

const program = ApiGatewayManagementApi.postToConnection(args);

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

With custom ApiGatewayManagementApiClient instance:

import { ApiGatewayManagementApi } from "@effect-aws/client-api-gateway-management-api";

const program = ApiGatewayManagementApi.postToConnection(args);

const result = await pipe(
  program,
  Effect.provide(
    ApiGatewayManagementApi.baseLayer(() => new ApiGatewayManagementApiClient({ endpoint: "https://domain/path" })),
  ),
  Effect.runPromise,
);

With custom ApiGatewayManagementApiClient configuration:

import { ApiGatewayManagementApi } from "@effect-aws/client-api-gateway-management-api";

const program = ApiGatewayManagementApi.postToConnection(args);

const result = await pipe(
  program,
  Effect.provide(ApiGatewayManagementApi.layer({ endpoint: "https://domain/path" })),
  Effect.runPromiseExit,
);

or use ApiGatewayManagementApi.baseLayer((default) => new ApiGatewayManagementApiClient({ ...default, endpoint: "https://domain/path" }))

1.10.3

5 months ago

1.10.2

5 months ago

1.9.0

8 months ago

1.6.0

9 months ago

1.5.0

11 months ago

1.4.1

11 months ago

1.9.5

7 months ago

1.9.3

7 months ago

1.10.0

5 months ago

1.4.0

1 year ago

1.3.0

1 year ago

1.2.0

1 year ago

1.1.1

2 years ago

1.0.2

2 years ago

1.1.0

2 years ago

1.0.1

2 years ago

1.0.0

2 years ago

0.5.0

2 years ago

0.4.0

2 years ago

0.3.2

2 years ago

0.3.1

2 years ago

0.3.0

2 years ago

0.2.1

2 years ago

0.2.0

2 years ago

0.1.0

2 years ago