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.
Namespace: Amazon.CloudWatchLogs.Model
Assembly: AWSSDK.CloudWatchLogs.dll
Version: 3.x.y.z
public class LogGroup
The LogGroup type exposes the following members
Name | Description | |
---|---|---|
LogGroup() |
Name | Type | Description | |
---|---|---|---|
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
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 |
|
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. |
|
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. |
|
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. |
|
KmsKeyId | System.String |
Gets and sets the property KmsKeyId. The Amazon Resource Name (ARN) of the KMS key to use when encrypting log data. |
|
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 Use this version to refer to the ARN in the following situations:
|
|
LogGroupClass | Amazon.CloudWatchLogs.LogGroupClass |
Gets and sets the property LogGroupClass. This specifies the log group class for this log group. There are two classes:
For details about the features supported by each class, see Log classes |
|
LogGroupName | System.String |
Gets and sets the property LogGroupName. The name of the log group. |
|
MetricFilterCount | System.Int32 |
Gets and sets the property MetricFilterCount. The number of metric filters. |
|
RetentionInDays | System.Nullable<System.Int32> |
Gets and sets the property RetentionInDays. |
|
StoredBytes | System.Int64 |
Gets and sets the property StoredBytes. The number of bytes stored. |
.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