Security News
PyPI Introduces Digital Attestations to Strengthen Python Package Security
PyPI now supports digital attestations, enhancing security and trust by allowing package maintainers to verify the authenticity of Python packages.
aws-message-bus-package
Advanced tools
[![NPM version](https://img.shields.io/npm/v/aws-message-bus-package.svg)](https://www.npmjs.com/package/aws-message-bus-package)
1. Install
npm install aws-message-bus-package
2. Config File
You need to create a config.json file in your root/src project and input some AWS informations, like bellow:
{
"host": "localhost",
"port": 4566,
"region": "eu-west-2",
"account": "000000000000",
"snsArn": "arn:aws:sns",
"sqsArn": "arn:aws:sqs",
"awsHost": "localhost.localstack.cloud",
"tags": [
{ "Key": "team", "Value": "your-team-name" },
{ "Key": "appName", "Value": "your-app-name" }
],
"testMode": false
}
3. Sample Usage
const { Infrastructure } = require('aws-message-bus-package');
async () => await Infrastructure.createQueue('your-queue-name');
async () => await Infrastructure.createTopic('your-topic-name');
async () => await Infrastructure.bindTopic('your-topic-name', 'your-queue-name');
Infrastructure.createQueue('queue-name')
Create a new SQS queue
Infrastructure.bindTopic('topic-name', 'queue-name')
Service.publishMessage('topic-name', {CONTENT})
Send a message to SNS topic to do broadcast
Service.sendMessage('queue-name', {CONTENT}, {PARAMS})
Send a message to SQS queue direct
Service.scheduleMessage('topic-name', {CONTENT}, [SCHEDULED_DATE])
Send a message to EventBridge informing the SNS topic with the destination. This message will be consumed when it arrives on the scheduled date.
Service.handleConsumerMessage('queue-name', {RESILIENCE_PARAMS})
Handle a consumer to consume queue messages
FAQs
[![NPM version](https://img.shields.io/npm/v/aws-message-bus-package.svg)](https://www.npmjs.com/package/aws-message-bus-package)
The npm package aws-message-bus-package receives a total of 0 weekly downloads. As such, aws-message-bus-package popularity was classified as not popular.
We found that aws-message-bus-package demonstrated a healthy version release cadence and project activity because the last version was released less than a year ago. It has 1 open source maintainer collaborating on the project.
Did you know?
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.
Security News
PyPI now supports digital attestations, enhancing security and trust by allowing package maintainers to verify the authenticity of Python packages.
Security News
GitHub removed 27 malicious pull requests attempting to inject harmful code across multiple open source repositories, in another round of low-effort attacks.
Security News
RubyGems.org has added a new "maintainer" role that allows for publishing new versions of gems. This new permission type is aimed at improving security for gem owners and the service overall.