AWSLogsLogGroup

Objective-C

@interface AWSLogsLogGroup

Swift

class AWSLogsLogGroup

Represents a log group.

  • 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 :*.

    Declaration

    Objective-C

    @property (nonatomic, strong) NSString *_Nullable arn;

    Swift

    var arn: String? { get set }
  • The creation time of the log group, expressed as the number of milliseconds after Jan 1, 1970 00:00:00 UTC.

    Declaration

    Objective-C

    @property (nonatomic, strong) NSNumber *_Nullable creationTime;

    Swift

    var creationTime: NSNumber? { get set }
  • Displays whether this log group has a protection policy, or whether it had one in the past. For more information, see PutDataProtectionPolicy.

    Declaration

    Objective-C

    @property (nonatomic) AWSLogsDataProtectionStatus dataProtectionStatus;

    Swift

    var dataProtectionStatus: AWSLogsDataProtectionStatus { get set }
  • Displays all the properties that this log group has inherited from account-level settings.

    Declaration

    Objective-C

    @property (nonatomic, strong) NSArray<NSString *> *_Nullable inheritedProperties;

    Swift

    var inheritedProperties: [String]? { get set }
  • The Amazon Resource Name (ARN) of the KMS key to use when encrypting log data.

    Declaration

    Objective-C

    @property (nonatomic, strong) NSString *_Nullable kmsKeyId;

    Swift

    var kmsKeyId: String? { get set }
  • 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:

    Declaration

    Objective-C

    @property (nonatomic, strong) NSString *_Nullable logGroupArn;

    Swift

    var logGroupArn: String? { get set }
  • 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

    Declaration

    Objective-C

    @property (nonatomic) AWSLogsLogGroupClass logGroupClass;

    Swift

    var logGroupClass: AWSLogsLogGroupClass { get set }
  • The name of the log group.

    Declaration

    Objective-C

    @property (nonatomic, strong) NSString *_Nullable logGroupName;

    Swift

    var logGroupName: String? { get set }
  • The number of metric filters.

    Declaration

    Objective-C

    @property (nonatomic, strong) NSNumber *_Nullable metricFilterCount;

    Swift

    var metricFilterCount: NSNumber? { get set }
  • The number of days to retain the log events in the specified log group. Possible values are: 1, 3, 5, 7, 14, 30, 60, 90, 120, 150, 180, 365, 400, 545, 731, 1096, 1827, 2192, 2557, 2922, 3288, and 3653.

    To set a log group so that its log events do not expire, use DeleteRetentionPolicy.

    Declaration

    Objective-C

    @property (nonatomic, strong) NSNumber *_Nullable retentionInDays;

    Swift

    var retentionInDays: NSNumber? { get set }
  • The number of bytes stored.

    Declaration

    Objective-C

    @property (nonatomic, strong) NSNumber *_Nullable storedBytes;

    Swift

    var storedBytes: NSNumber? { get set }