Esempio n. 1
0
 public SA_Lambda GetFromFunctionName(string functionName)
 {
     try
     {
         var response = client.GetFunction(functionName);
         var result   = new SA_Lambda()
         {
             FunctionArn  = response.Configuration.FunctionArn,
             FunctionName = response.Configuration.FunctionName,
             LastModified = DateTime.Parse(response.Configuration.LastModified),
             Tags         = response.Tags
         };
         return(result);
     }
     catch (ResourceNotFoundException)
     {
         return(null);
     }
 }