AWS SDK Version 3 for .NET
API Reference

AWS services or capabilities described in AWS Documentation may vary by region/location. Click Getting Started with Amazon AWS to see specific differences applicable to the China (Beijing) Region.

Container for the parameters to the PutLogGroupDeletionProtection operation. 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.

For information about the parameters that are common to all actions, see Common Parameters.

Inheritance Hierarchy

System.Object
  Amazon.Runtime.AmazonWebServiceRequest
    Amazon.CloudWatchLogs.AmazonCloudWatchLogsRequest
      Amazon.CloudWatchLogs.Model.PutLogGroupDeletionProtectionRequest

Namespace: Amazon.CloudWatchLogs.Model
Assembly: AWSSDK.CloudWatchLogs.dll
Version: 3.x.y.z

Syntax

C#
public class PutLogGroupDeletionProtectionRequest : AmazonCloudWatchLogsRequest
         IAmazonWebServiceRequest

The PutLogGroupDeletionProtectionRequest type exposes the following members

Constructors

Properties

NameTypeDescription
Public Property DeletionProtectionEnabled System.Boolean

Gets and sets the property DeletionProtectionEnabled.

Whether to enable deletion protection.

Type: Boolean

Required: Yes

Public Property LogGroupIdentifier System.String

Gets and sets the property LogGroupIdentifier.

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

Version Information

.NET:
Supported in: 8.0 and newer, Core 3.1

.NET Standard:
Supported in: 2.0

.NET Framework:
Supported in: 4.5 and newer, 3.5