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.

Creates a delivery. A delivery is a connection between a logical delivery source and a logical delivery destination that you have already created.

Only some Amazon Web Services services support being configured as a delivery source using this operation. These services are listed as Supported [V2 Permissions] in the table at Enabling logging from Amazon Web Services services.

A delivery destination can represent a log group in CloudWatch Logs, an Amazon S3 bucket, or a delivery stream in Firehose.

To configure logs delivery between a supported Amazon Web Services service and a destination, you must do the following:

You can configure a single delivery source to send logs to multiple destinations by creating multiple deliveries. You can also create multiple deliveries to configure multiple delivery sources to send logs to the same delivery destination.

You can't update an existing delivery. You can only create and delete deliveries.

Note:

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

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

Syntax

C#
public abstract CreateDeliveryResponse CreateDelivery(
         CreateDeliveryRequest request
)

Parameters

request
Type: Amazon.CloudWatchLogs.Model.CreateDeliveryRequest

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

Return Value


The response from the CreateDelivery 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.
ResourceNotFoundException The specified resource does not exist.
ServiceQuotaExceededException This request exceeds a service quota.
ServiceUnavailableException The service cannot complete the request.
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, 4.0, 3.5

See Also