DeleteDeliveryCommand

Deletes a delivery. A delivery is a connection between a logical delivery source and a logical delivery destination. Deleting a delivery only deletes the connection between the delivery source and delivery destination. It does not delete the delivery destination or the delivery source.

Example Syntax

Use a bare-bones client and the command you need to make an API call.

import { CloudWatchLogsClient, DeleteDeliveryCommand } from "@aws-sdk/client-cloudwatch-logs"; // ES Modules import
// const { CloudWatchLogsClient, DeleteDeliveryCommand } = require("@aws-sdk/client-cloudwatch-logs"); // CommonJS import
const client = new CloudWatchLogsClient(config);
const input = { // DeleteDeliveryRequest
  id: "STRING_VALUE", // required
};
const command = new DeleteDeliveryCommand(input);
const response = await client.send(command);
// {};

DeleteDeliveryCommand Input

See DeleteDeliveryCommandInput for more details

Parameter
Type
Description
id
Required
string | undefined

The unique ID of the delivery to delete. You can find the ID of a delivery with the DescribeDeliveries  operation.

DeleteDeliveryCommand Output

Parameter
Type
Description
$metadata
Required
ResponseMetadata
Metadata pertaining to this request.

Throws

Name
Fault
Details
ConflictException
client

This operation attempted to create a resource that already exists.

ResourceNotFoundException
client

The specified resource does not exist.

ServiceQuotaExceededException
client

This request exceeds a service quota.

ServiceUnavailableException
server

The service cannot complete the request.

ThrottlingException
client

The request was throttled because of quota limits.

ValidationException
client

One of the parameters for the request is not valid.

CloudWatchLogsServiceException
Base exception class for all service exceptions from CloudWatchLogs service.