- Navigation GuideYou are on a Command (operation) page with structural examples. Use the navigation breadcrumb if you would like to return to the Client landing page.
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
See DeleteDeliveryDestinationPolicyCommandInput for more details
Parameter | Type | Description |
---|
Parameter | Type | Description |
---|---|---|
deliveryDestinationName Required | string | undefined | The name of the delivery destination that you want to delete the policy for. |
DeleteDeliveryDestinationPolicyCommand Output
See DeleteDeliveryDestinationPolicyCommandOutput for details
Parameter | Type | Description |
---|
Parameter | Type | Description |
---|---|---|
$metadata Required | ResponseMetadata | Metadata pertaining to this request. |
Throws
Name | Fault | Details |
---|
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. |