public static async Task CheckImportStatus(string accessKey, string secretKey) { var credentials = new BasicAWSCredentials(accessKey, secretKey); var client = new AmazonEC2Client(credentials, RegionEndpoint.EUCentral1); var describeImportImageTasks = await client.DescribeImportImageTasksAsync(new DescribeImportImageTasksRequest()); Console.WriteLine($"HTTP {describeImportImageTasks.HttpStatusCode}: {describeImportImageTasks}"); if (!describeImportImageTasks.ImportImageTasks.Any()) { Console.WriteLine("There are no import tasks."); } foreach (var task in describeImportImageTasks.ImportImageTasks) { Console.WriteLine($"<{task.Description}> {task.Progress}% {task.Status} {task.StatusMessage}"); } }