DeleteDeliveryDestinationPolicyCommand

Deletes a delivery destination policy. For more information about these policies, see PutDeliveryDestinationPolicy .

Example Syntax

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

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

DeleteDeliveryDestinationPolicyCommand Input

Parameter
Type
Description
deliveryDestinationName
Required
string | undefined

The name of the delivery destination that you want to delete the policy for.

DeleteDeliveryDestinationPolicyCommand 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.

ServiceUnavailableException
server

The service cannot complete the request.

ValidationException
client

One of the parameters for the request is not valid.

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