MCPcopy Create free account
hub / github.com/aptabase/aptabase / CreateClient

Method CreateClient

src/Features/Notification/SESEmailClient.cs:26–36  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

24 }
25
26 private AmazonSimpleEmailServiceClient CreateClient()
27 {
28 if (_env.IsProduction)
29 return new AmazonSimpleEmailServiceClient();
30
31 var chain = new CredentialProfileStoreChain();
32 if (!chain.TryGetAWSCredentials("aptabase", out var credentials))
33 throw new Exception("Failed to find the aptabase profile");
34
35 return new AmazonSimpleEmailServiceClient(credentials, Amazon.RegionEndpoint.USEast1);
36 }
37
38 private static SendEmailRequest NewRequest(string to, string subject, string body)
39 {

Callers 3

LemonSqueezyClientMethod · 0.45
TinybirdQueryClientMethod · 0.45

Calls

no outgoing calls

Tested by

no test coverage detected