示例#1
0
        public void LambdaGetAlias()
        {
            #region to-retrieve-a-lambda-function-alias-1481648742254

            var response = client.GetAlias(new GetAliasRequest 
            {
                FunctionName = "myFunction",
                Name = "myFunctionAlias"
            });

            string aliasArn = response.AliasArn;
            string description = response.Description;
            string functionVersion = response.FunctionVersion;
            string name = response.Name;

            #endregion
        }
 private Amazon.Lambda.Model.GetAliasResponse CallAWSServiceOperation(IAmazonLambda client, Amazon.Lambda.Model.GetAliasRequest request)
 {
     Utils.Common.WriteVerboseEndpointMessage(this, client.Config, "AWS Lambda", "GetAlias");
     try
     {
         #if DESKTOP
         return(client.GetAlias(request));
         #elif CORECLR
         return(client.GetAliasAsync(request).GetAwaiter().GetResult());
         #else
                 #error "Unknown build edition"
         #endif
     }
     catch (AmazonServiceException exc)
     {
         var webException = exc.InnerException as System.Net.WebException;
         if (webException != null)
         {
             throw new Exception(Utils.Common.FormatNameResolutionFailureMessage(client.Config, webException.Message), webException);
         }
         throw;
     }
 }