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.

Represents a log group.

Inheritance Hierarchy

System.Object
  Amazon.CloudWatchLogs.Model.LogGroup

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

Syntax

C#
public class LogGroup

The LogGroup type exposes the following members

Constructors

NameDescription
Public Method LogGroup()

Properties

NameTypeDescription
Public Property Arn System.String

Gets and sets the property Arn.

The Amazon Resource Name (ARN) of the log group. This version of the ARN includes a trailing :* after the log group name.

Use this version to refer to the ARN in IAM policies when specifying permissions for most API actions. The exception is when specifying permissions for TagResource, UntagResource, and ListTagsForResource. The permissions for those three actions require the ARN version that doesn't include a trailing :*.

Public Property CreationTime System.DateTime

Gets and sets the property CreationTime.

The creation time of the log group, expressed as the number of milliseconds after Jan 1, 1970 00:00:00 UTC.

Public Property DataProtectionStatus Amazon.CloudWatchLogs.DataProtectionStatus

Gets and sets the property DataProtectionStatus.

Displays whether this log group has a protection policy, or whether it had one in the past. For more information, see PutDataProtectionPolicy.

Public Property InheritedProperties System.Collections.Generic.List<System.String>

Gets and sets the property InheritedProperties.

Displays all the properties that this log group has inherited from account-level settings.

Public Property KmsKeyId System.String

Gets and sets the property KmsKeyId.

The Amazon Resource Name (ARN) of the KMS key to use when encrypting log data.

Public Property LogGroupArn System.String

Gets and sets the property LogGroupArn.

The Amazon Resource Name (ARN) of the log group. This version of the ARN doesn't include a trailing :* after the log group name.

Use this version to refer to the ARN in the following situations:

Public Property LogGroupClass Amazon.CloudWatchLogs.LogGroupClass

Gets and sets the property LogGroupClass.

This specifies the log group class for this log group. There are two classes:

  • The Standard log class supports all CloudWatch Logs features.

  • The Infrequent Access log class supports a subset of CloudWatch Logs features and incurs lower costs.

For details about the features supported by each class, see Log classes

Public Property LogGroupName System.String

Gets and sets the property LogGroupName.

The name of the log group.

Public Property MetricFilterCount System.Int32

Gets and sets the property MetricFilterCount.

The number of metric filters.

Public Property RetentionInDays System.Nullable<System.Int32>

Gets and sets the property RetentionInDays.

Public Property StoredBytes System.Int64

Gets and sets the property StoredBytes.

The number of bytes stored.

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