NetStandardAWSSQSHelper

Collection of helper functions for interacting with the AWS SQS service


Keywords
aws, sqs, helper, netStandard
License
MIT
Install
Install-Package NetStandardAWSSQSHelper -Version 1.0.67

Documentation

Net Standard AWS SQS Helper

Collection of helper functions for interacting with the AWS SQS service

Build Status Tests Code Coverage

nuget nuget

Usage

Default - running in Lambda in your own account

var logger = new ConsoleLogger(logLevel: LogLevel.Information);

var helper = new SQSHelper(logger: logger);

await helper.SendMessageAsync(queueUrl: "https://queue.aws.com",
    messageBody: "message");

Running in separate account or not in Lambda

var logger = new ConsoleLogger(logLevel: LogLevel.Information);

var options = new AmazonSQSConfig()
{
    RegionEndpoint = RegionEndpoint.USEast1
};

var repository = new AmazonSQSClient(config: options);

var helper = new SQSHelper(logger: logger);

await helper.SendMessageAsync(queueUrl: "https://queue.aws.com",
    messageBody: "message");

Notes

If no options are supplied, will default to us-east-1 as the region