DataType is now required for message attributes. This would have led users to create a functional message attribute attachment in the emulator that would have broken on deployed environments
The new message attribute helper in the SNS package used a new specific datatype and helper logic that made the helper incompatible with SQS message attributes
The filter policy now properly looks for the Data Type with a comment on how to extend the filter policy to provide support other data types that SNS currently supports. For now I have maintained the current functionality of only supporting String based data types. Documentation on that here
Last, I have added the main functionality that I needed, which attaches SNS message attributes to the SQS queue when the queue is set to raw. Documentation on that here
This is a minor improvement of https://github.com/p4tin/goaws/pull/159 which created a functionality that differed from SNS.
DataType is now required for message attributes. This would have led users to create a functional message attribute attachment in the emulator that would have broken on deployed environments
The new message attribute helper in the SNS package used a new specific datatype and helper logic that made the helper incompatible with SQS message attributes
The filter policy now properly looks for the Data Type with a comment on how to extend the filter policy to provide support other data types that SNS currently supports. For now I have maintained the current functionality of only supporting String based data types. Documentation on that here
Last, I have added the main functionality that I needed, which attaches SNS message attributes to the SQS queue when the queue is set to raw. Documentation on that here