GradientEdge CDK Utils
    Preparing search index...
    interface LogProps {
        dataProtectionPolicy?: DataProtectionPolicy;
        deletionProtectionEnabled?: boolean;
        encryptionKey?: IKeyRef;
        fieldIndexPolicies?: FieldIndexPolicy[];
        logGroupClass?: LogGroupClass;
        logGroupName?: string;
        removalPolicy?: RemovalPolicy;
        retention?: RetentionDays;
        tags?: TagProps[];
    }

    Hierarchy

    • LogGroupProps
      • LogProps
    Index

    Properties

    dataProtectionPolicy?: DataProtectionPolicy

    Data Protection Policy for this log group.

    - no data protection policy
    
    deletionProtectionEnabled?: boolean

    Indicates whether deletion protection is enabled for this log group. When enabled, deletion protection blocks all deletion operations until it is explicitly disabled.

    false
    
    encryptionKey?: IKeyRef

    The KMS customer managed key to encrypt the log group with.

    Server-side encryption managed by the CloudWatch Logs service
    
    fieldIndexPolicies?: FieldIndexPolicy[]

    Field Index Policies for this log group.

    - no field index policies for this log group.
    
    logGroupClass?: LogGroupClass

    The class of the log group. Possible values are: STANDARD and INFREQUENT_ACCESS.

    INFREQUENT_ACCESS class provides customers a cost-effective way to consolidate logs which supports querying using Logs Insights. The logGroupClass property cannot be changed once the log group is created.

    LogGroupClass.STANDARD
    
    logGroupName?: string

    Name of the log group.

    Automatically generated
    
    removalPolicy?: RemovalPolicy

    Determine the removal policy of this log group.

    Normally you want to retain the log group so you can diagnose issues from logs even after a deployment that no longer includes the log group. In that case, use the normal date-based retention policy to age out your logs.

    RemovalPolicy.Retain
    
    retention?: RetentionDays

    How long, in days, the log contents will be retained.

    To retain all logs, set this value to RetentionDays.INFINITE.

    RetentionDays.TWO_YEARS
    
    tags?: TagProps[]