AWS services or capabilities described in AWS Documentation may vary by region/location. Click Getting Started with Amazon AWS to see specific differences applicable to the China (Beijing) Region.
ExportTask
which allows you to efficiently export data from
a Log Group to your Amazon S3 bucket.
This is an asynchronous call. If all the required information is provided, this API
will initiate an export task and respond with the task Id. Once started, DescribeExportTasks
can be used to get the status of an export task. You can only have one active (RUNNING
or PENDING
) export task at a time, per account.
You can export logs from multiple log groups or multiple time ranges to the same Amazon 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.
Namespace: Amazon.CloudWatchLogs
Assembly: AWSSDK.dll
Version: (assembly version)
public virtual CreateExportTaskResponse CreateExportTask( CreateExportTaskRequest request )
Container for the necessary parameters to execute the CreateExportTask service method.
Exception | Condition |
---|---|
InvalidParameterException | Returned if a parameter of the request is incorrectly specified. |
LimitExceededException | Returned if you have reached the maximum number of resources that can be created. |
OperationAbortedException | Returned if multiple requests to update the same resource were in conflict. |
ResourceAlreadyExistsException | Returned if the specified resource already exists. |
ResourceNotFoundException | Returned if the specified resource does not exist. |
ServiceUnavailableException | Returned if the service cannot complete the request. |
.NET Framework:
Supported in: 4.5, 4.0, 3.5