We are excited to announce our new API Documentation.
Protected
Deletes a CloudWatch Logs account policy.
To use this operation, you must be signed on with the logs:DeleteDataProtectionPolicy and logs:DeleteAccountPolicy permissions.
logs:DeleteDataProtectionPolicy
logs:DeleteAccountPolicy
Use a bare-bones client and the command you need to make an API call.
import { CloudWatchLogsClient, DeleteAccountPolicyCommand } from "@aws-sdk/client-cloudwatch-logs"; // ES Modules import// const { CloudWatchLogsClient, DeleteAccountPolicyCommand } = require("@aws-sdk/client-cloudwatch-logs"); // CommonJS importconst client = new CloudWatchLogsClient(config);const input = { // DeleteAccountPolicyRequest policyName: "STRING_VALUE", // required policyType: "DATA_PROTECTION_POLICY", // required};const command = new DeleteAccountPolicyCommand(input);const response = await client.send(command);// {};
DeleteAccountPolicyCommandInput
DeleteAccountPolicyCommandOutput
input
response
config
InvalidParameterException (client fault)
A parameter is specified incorrectly.
OperationAbortedException (client fault)
Multiple concurrent requests to update the same resource were in conflict.
ResourceNotFoundException (client fault)
The specified resource does not exist.
ServiceUnavailableException (server fault)
The service cannot complete the request.
CloudWatchLogsServiceException
Base exception class for all service exceptions from CloudWatchLogs service.
Readonly
Static
Deletes a CloudWatch Logs account policy.
To use this operation, you must be signed on with the
logs:DeleteDataProtectionPolicy
andlogs:DeleteAccountPolicy
permissions.Example
Use a bare-bones client and the command you need to make an API call.
Param
DeleteAccountPolicyCommandInput
Returns
DeleteAccountPolicyCommandOutput
See
input
shape.response
shape.config
shape.Throws
InvalidParameterException (client fault)
A parameter is specified incorrectly.
Throws
OperationAbortedException (client fault)
Multiple concurrent requests to update the same resource were in conflict.
Throws
ResourceNotFoundException (client fault)
The specified resource does not exist.
Throws
ServiceUnavailableException (server fault)
The service cannot complete the request.
Throws
CloudWatchLogsServiceException
Base exception class for all service exceptions from CloudWatchLogs service.