Exemplo n.º 1
0
        //--- Methods ---
        public override async Task InitializeAsync(LambdaConfig config)
        {
            var tableName      = AwsConverters.ConvertDynamoDBArnToName(config.ReadText("GoFishSessions"));
            var accountRegion  = config.ReadText("AccountRegion");
            var bucketName     = AwsConverters.ConvertBucketArnToName(config.ReadText("GoFishSumerianBucket"));
            var uriToCardImage = $"http://{bucketName}.s3-website-{accountRegion}.amazonaws.com";

            _dependencyProvider = new DependencyProvider(new AmazonDynamoDBClient(), tableName);
            _processIntent      = new ProcessIntent(_dependencyProvider, Logger, uriToCardImage);
        }
Exemplo n.º 2
0
 //--Methods--
 public override Task InitializeAsync(LambdaConfig config)
 {
     _audioBucket      = AwsConverters.ConvertBucketArnToName(config.ReadText("AudioForTranscribe"));
     _textBucket       = AwsConverters.ConvertBucketArnToName(config.ReadText("TextForPolly"));
     _topic            = config.ReadText("Loop");
     _rand             = new Random();
     _s3Client         = new AmazonS3Client();
     _pollyClient      = new AmazonPollyClient();
     _transcribeClient = new AmazonTranscribeServiceClient();
     _snsClient        = new AmazonSimpleNotificationServiceClient();
     return(Task.CompletedTask);
 }
Exemplo n.º 3
0
 //--- Methods ---
 public override async Task InitializeAsync(LambdaConfig config)
 {
     _textractClient = new AmazonTextractClient();
     _s3Client       = new AmazonS3Client();
     _bucketName     = AwsConverters.ConvertBucketArnToName(config.ReadText("FileBucket"));
 }