AWS SDK 예제 GitHub 리포지토리에 더 많은 AWS문서 SDK 예제
AWS SDK와 함께 DescribeExportTasks사용
다음 코드 예시는 DescribeExportTasks의 사용 방법을 보여 줍니다.
- .NET
-
- SDK for .NET
-
참고
GitHub에 더 많은 내용이 있습니다. AWS 코드 예제 리포지토리
에서 전체 예제를 확인하고 설정 및 실행하는 방법을 알아보세요. using System; using System.Threading.Tasks; using Amazon.CloudWatchLogs; using Amazon.CloudWatchLogs.Model; /// <summary> /// Shows how to retrieve a list of information about Amazon CloudWatch /// Logs export tasks. /// </summary> public class DescribeExportTasks { public static async Task Main() { // This client object will be associated with the same AWS Region // as the default user on this system. If you need to use a // different AWS Region, pass it as a parameter to the client // constructor. var client = new AmazonCloudWatchLogsClient(); var request = new DescribeExportTasksRequest { Limit = 5, }; var response = new DescribeExportTasksResponse(); do { response = await client.DescribeExportTasksAsync(request); response.ExportTasks.ForEach(t => { Console.WriteLine($"{t.TaskName} with ID: {t.TaskId} has status: {t.Status}"); }); } while (response.NextToken is not null); } }-
API 세부 정보는 AWS SDK for .NET API 참조의 DescribeExportTasks 참조하십시오.
-
DeleteSubscriptionFilter
DescribeLogGroups