Amazon.CloudWatchLogs.AmazonCloudWatchLogsClient.CreateExportTask C# (CSharp) Method

CreateExportTask() public method

Creates an export task, which allows you to efficiently export data from a log group to an Amazon S3 bucket.

This is an asynchronous call. If all the required information is provided, this operation initiates an export task and responds with the ID of the task. After the task has started, you can use DescribeExportTasks to get the status of the export task. Each account can only have one active (RUNNING or PENDING) export task at a time. To cancel an export task, use CancelExportTask.

You can export logs from multiple log groups or multiple time ranges to the same S3 bucket. To separate out log data for each export task, you can specify a prefix that will be used as the Amazon S3 key prefix for all exported objects.

/// A parameter is specified incorrectly. /// /// You have reached the maximum number of resources that can be created. /// /// Multiple requests to update the same resource were in conflict. /// /// The specified resource already exists. /// /// The specified resource does not exist. /// /// The service cannot complete the request. ///
public CreateExportTask ( CreateExportTaskRequest request ) : CreateExportTaskResponse
request Amazon.CloudWatchLogs.Model.CreateExportTaskRequest Container for the necessary parameters to execute the CreateExportTask service method.
return Amazon.CloudWatchLogs.Model.CreateExportTaskResponse
        public CreateExportTaskResponse CreateExportTask(CreateExportTaskRequest request)
        {
            var marshaller = new CreateExportTaskRequestMarshaller();
            var unmarshaller = CreateExportTaskResponseUnmarshaller.Instance;

            return Invoke<CreateExportTaskRequest,CreateExportTaskResponse>(request, marshaller, unmarshaller);
        }
AmazonCloudWatchLogsClient