Skip to content

kbrashears5/net-standard-aws-sqs-helper

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

48 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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