AWS SDK Version 3 for .NET
API Reference

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.

Starts an import from a data source to CloudWatch Log and creates a managed log group as the destination for the imported data. Currently, CloudTrail Event Data Store is the only supported data source.

The import task must satisfy the following constraints:

Note:

For .NET Core this operation is only available in asynchronous form. Please refer to CreateImportTaskAsync.

Namespace: Amazon.CloudWatchLogs
Assembly: AWSSDK.CloudWatchLogs.dll
Version: 3.x.y.z

Syntax

C#
public virtual CreateImportTaskResponse CreateImportTask(
         CreateImportTaskRequest request
)

Parameters

request
Type: Amazon.CloudWatchLogs.Model.CreateImportTaskRequest

Container for the necessary parameters to execute the CreateImportTask service method.

Return Value


The response from the CreateImportTask service method, as returned by CloudWatchLogs.

Exceptions

ExceptionCondition
AccessDeniedException You don't have sufficient permissions to perform this action.
ConflictException This operation attempted to create a resource that already exists.
InvalidOperationException The operation is not valid on the specified resource.
InvalidParameterException A parameter is specified incorrectly.
ResourceNotFoundException The specified resource does not exist.
ThrottlingException The request was throttled because of quota limits.
ValidationException One of the parameters for the request is not valid.

Version Information

.NET Framework:
Supported in: 4.5 and newer, 3.5

See Also