Class LogGroupProps.Jsii$Proxy

java.lang.Object
software.amazon.jsii.JsiiObject
software.amazon.awscdk.services.logs.LogGroupProps.Jsii$Proxy
All Implemented Interfaces:
LogGroupProps, software.amazon.jsii.JsiiSerializable
Enclosing interface:
LogGroupProps

@Stability(Stable) @Internal public static final class LogGroupProps.Jsii$Proxy extends software.amazon.jsii.JsiiObject implements LogGroupProps
An implementation for LogGroupProps
  • Constructor Details

    • Jsii$Proxy

      protected Jsii$Proxy(software.amazon.jsii.JsiiObjectRef objRef)
      Constructor that initializes the object based on values retrieved from the JsiiObject.
      Parameters:
      objRef - Reference to the JSII managed object.
    • Jsii$Proxy

      protected Jsii$Proxy(LogGroupProps.Builder builder)
      Constructor that initializes the object based on literal property values passed by the LogGroupProps.Builder.
  • Method Details

    • getDataProtectionPolicy

      public final DataProtectionPolicy getDataProtectionPolicy()
      Description copied from interface: LogGroupProps
      Data Protection Policy for this log group.

      Default: - no data protection policy

      Specified by:
      getDataProtectionPolicy in interface LogGroupProps
    • getDeletionProtectionEnabled

      public final Boolean getDeletionProtectionEnabled()
      Description copied from interface: LogGroupProps
      Indicates whether deletion protection is enabled for this log group.

      When enabled, deletion protection blocks all deletion operations until it is explicitly disabled.

      Default: false

      Specified by:
      getDeletionProtectionEnabled in interface LogGroupProps
    • getEncryptionKey

      public final IKeyRef getEncryptionKey()
      Description copied from interface: LogGroupProps
      The KMS customer managed key to encrypt the log group with.

      Default: Server-side encryption managed by the CloudWatch Logs service

      Specified by:
      getEncryptionKey in interface LogGroupProps
    • getFieldIndexPolicies

      public final List<FieldIndexPolicy> getFieldIndexPolicies()
      Description copied from interface: LogGroupProps
      Field Index Policies for this log group.

      Default: - no field index policies for this log group.

      Specified by:
      getFieldIndexPolicies in interface LogGroupProps
    • getLogGroupClass

      public final LogGroupClass getLogGroupClass()
      Description copied from interface: LogGroupProps
      The class of the log group. Possible values are: STANDARD, INFREQUENT_ACCESS and DELIVERY.

      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.

      DELIVERY class is used to deliver logs to a destination such as Amazon S3 or Amazon Data Firehose (for example, Lambda vended logs). A Delivery log group forwards events to a destination instead of storing them, so it does not support retention, dataProtectionPolicy, or fieldIndexPolicies; setting any of these together with LogGroupClass.DELIVERY results in a synthesis-time error.

      Default: LogGroupClass.STANDARD

      Specified by:
      getLogGroupClass in interface LogGroupProps
    • getLogGroupName

      public final String getLogGroupName()
      Description copied from interface: LogGroupProps
      Name of the log group.

      Default: Automatically generated

      Specified by:
      getLogGroupName in interface LogGroupProps
    • getRemovalPolicy

      public final RemovalPolicy getRemovalPolicy()
      Description copied from interface: LogGroupProps
      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.

      Default: RemovalPolicy.Retain

      Specified by:
      getRemovalPolicy in interface LogGroupProps
    • getRetention

      public final RetentionDays getRetention()
      Description copied from interface: LogGroupProps
      How long, in days, the log contents will be retained.

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

      Default: RetentionDays.TWO_YEARS

      Specified by:
      getRetention in interface LogGroupProps
    • $jsii$toJson

      @Internal public com.fasterxml.jackson.databind.JsonNode $jsii$toJson()
      Specified by:
      $jsii$toJson in interface software.amazon.jsii.JsiiSerializable
    • equals

      public final boolean equals(Object o)
      Overrides:
      equals in class Object
    • hashCode

      public final int hashCode()
      Overrides:
      hashCode in class Object