@shelf/aws-sns-message-attributes
v2.0.0 aws message attributes sns
aws-sns-message-attributes
Transform JSON into AWS SNS message attributes format. See 1, 2
Install
$ yarn add @shelf/aws-sns-message-attributes
Usage
const {transformMessageAttributes} = require('@shelf/aws-sns-message-attributes');
transformMessageAttributes({
string: 'hello',
array: ['hello', 'world'],
number: 1,
bool: true,
});
/*
{
string: {DataType: 'String', StringValue: 'hello'},
array: {DataType: 'String.Array', StringValue: '["hello","world"]'},
number: {DataType: 'Number', StringValue: 1},
bool: {DataType: 'String', StringValue: 'true'},
}
*/
Note: This library does not support binary values
Publish
$ git checkout master
$ yarn version
$ yarn publish
$ git push origin master --tags
License
MIT © Shelf
npm i @shelf/aws-sns-message-attributes
Source Code
github.com/shelfio/aws-sns-m...Metadata
- MIT
- >=16
- Vlad Holubiev
- released 6/20/2022
Downloads
Maintainers
anastasiash, kchlon, dmytro.harazdovskiy, duch0416, i5adovyi, olesiamuller, mykola.khytra, yuliiakovalchuk, el_scrambone, bodyaflesh, slavammellnikov, andrii-nastenko, andriisermiahin, arkadii007, mpushkin, batovpavlo, vasylhoban, andrew214, domovoj, vozemer, oleksii.dymnich, set001, bogdan.kyba, dima-bond, maksym.hayovets, oles.zadorozhnyy, ss1l, maks.kolesnyk, gemshelf, d-mii-, hartzler, tarasdyksan, andrii_butsa, nazarko_suv, bogdan.kolesnyk, vitaliishcherban, vladgolubev, marianna-milovanova, hmelenok, knupman, maaraanas, terret, chapelskyi.slavik, pihorb, irynah, diana.kryskuv, andy.raven, rafler, mykola.chepkyi, sskalp88, demiansua, yuriil, ktv18, drews_abuse, rostyslav-horytskyi, whodeen,