Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

@effect-aws/client-sqs

Package Overview
Dependencies
Maintainers
0
Versions
18
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@effect-aws/client-sqs

[![npm version](https://img.shields.io/npm/v/%40effect-aws%2Fclient-sqs?color=brightgreen&label=npm%20package)](https://www.npmjs.com/package/@effect-aws/client-sqs) [![npm downloads](https://img.shields.io/npm/dm/%40effect-aws%2Fclient-sqs)](https://www.

  • 1.6.0
  • latest
  • npm
  • Socket score

Version published
Weekly downloads
54K
increased by195.91%
Maintainers
0
Weekly downloads
 
Created
Source

@effect-aws/client-sqs

npm version npm downloads

Installation

npm install --save @effect-aws/client-sqs

Usage

With default SQSClient instance:

import { SQS } from "@effect-aws/client-sqs";

const program = SQS.sendMessage(args);

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

With custom SQSClient instance:

import { SQS } from "@effect-aws/client-sqs";

const program = SQS.sendMessage(args);

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

With custom SQSClient configuration:

import { SQS } from "@effect-aws/client-sqs";

const program = SQS.sendMessage(args);

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

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

FAQs

Package last updated on 10 Nov 2024

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

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc