I have declared a RegionEndpoint on my app config like this
<add key="AWSRegion" value="EUWest1" xdt:Transform="Insert"/>
And on my program i'm tryna call this AWSRegion
private static string RegionEndPoint = ConfigurationManager.AppSettings["AWSRegion"];
So when i declare my SQSClient i get an error that, Cannot convert from string to RegionEndPoint
var SQSClient = new AmazonSQSClient(credentials, RegionEndPoint);
i have tried making sense of this question here How to set the EndPoint / Region for the C# .NET SDK : EC2Client?
but its for EC2Client so it doesn't seem to work out for me.
i have also tried to declare the regionendpoint using the AWS SDK like this
private static RegionEndpoint RegionEndPoint = ConfigurationManager.AppSettings["AWSRegion"];
i also get an error which says cannot implicitly convert from type string to Amazon.RegionEndpoint
So if theres a way to add a RegionEndPoint in a config file and use it in an SQSClient please help me.