We are excited to announce our new API Documentation.
Protected
Deletes a resource policy from this account. This revokes the access of the identities in that policy to put log events to this account.
Use a bare-bones client and the command you need to make an API call.
import { CloudWatchLogsClient, DeleteResourcePolicyCommand } from "@aws-sdk/client-cloudwatch-logs"; // ES Modules import// const { CloudWatchLogsClient, DeleteResourcePolicyCommand } = require("@aws-sdk/client-cloudwatch-logs"); // CommonJS importconst client = new CloudWatchLogsClient(config);const input = { // DeleteResourcePolicyRequest policyName: "STRING_VALUE",};const command = new DeleteResourcePolicyCommand(input);const response = await client.send(command);// {};
DeleteResourcePolicyCommandInput
DeleteResourcePolicyCommandOutput
input
response
config
InvalidParameterException (client fault)
A parameter is specified incorrectly.
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 resource policy from this account. This revokes the access of the identities in that policy to put log events to this account.
Example
Use a bare-bones client and the command you need to make an API call.
Param
DeleteResourcePolicyCommandInput
Returns
DeleteResourcePolicyCommandOutput
See
input
shape.response
shape.config
shape.Throws
InvalidParameterException (client fault)
A parameter is specified incorrectly.
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.