We are excited to announce our new API Documentation.
Protected
Returns information about a log group data protection policy.
Use a bare-bones client and the command you need to make an API call.
import { CloudWatchLogsClient, GetDataProtectionPolicyCommand } from "@aws-sdk/client-cloudwatch-logs"; // ES Modules import// const { CloudWatchLogsClient, GetDataProtectionPolicyCommand } = require("@aws-sdk/client-cloudwatch-logs"); // CommonJS importconst client = new CloudWatchLogsClient(config);const input = { // GetDataProtectionPolicyRequest logGroupIdentifier: "STRING_VALUE", // required};const command = new GetDataProtectionPolicyCommand(input);const response = await client.send(command);// { // GetDataProtectionPolicyResponse// logGroupIdentifier: "STRING_VALUE",// policyDocument: "STRING_VALUE",// lastUpdatedTime: Number("long"),// };
GetDataProtectionPolicyCommandInput
GetDataProtectionPolicyCommandOutput
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
Returns information about a log group data protection policy.
Example
Use a bare-bones client and the command you need to make an API call.
Param
GetDataProtectionPolicyCommandInput
Returns
GetDataProtectionPolicyCommandOutput
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.