Skip to contents

Enables or disables deletion protection for the specified log group. When enabled on a log group, deletion protection blocks all deletion operations until it is explicitly disabled.

See https://www.paws-r-sdk.com/docs/cloudwatchlogs_put_log_group_deletion_protection/ for full documentation.

Usage

cloudwatchlogs_put_log_group_deletion_protection(
  logGroupIdentifier,
  deletionProtectionEnabled
)

Arguments

logGroupIdentifier

[required] The name or ARN of the log group.

Type: String

Length Constraints: Minimum length of 1. Maximum length of 512.

Pattern: [\.\-_/#A-Za-z0-9]+

Required: Yes

deletionProtectionEnabled

[required] Whether to enable deletion protection.

Type: Boolean

Required: Yes