Elasticsearch.Net.Aws.AwsHttpConnection.GetAccessKey C# (CSharp) Method

GetAccessKey() private static method

private static GetAccessKey ( AwsSettings awsSettings ) : string
awsSettings AwsSettings
return string
        private static string GetAccessKey(AwsSettings awsSettings)
        {
            var key = awsSettings.AccessKey;
            if (!string.IsNullOrWhiteSpace(key)) return key;
            #if NET45
            key = System.Configuration.ConfigurationManager.AppSettings["AWSAccessKey"];
            if (!string.IsNullOrWhiteSpace(key)) return key;
            #endif
            return Environment.GetEnvironmentVariable("AWS_ACCESS_KEY_ID");
        }