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
  • Nested Class Summary

    Nested classes/interfaces inherited from class software.amazon.jsii.JsiiObject

    software.amazon.jsii.JsiiObject.InitializationMode

    Nested classes/interfaces inherited from interface software.amazon.awscdk.services.logs.LogGroupProps

    LogGroupProps.Builder, LogGroupProps.Jsii$Proxy
  • Constructor Summary

    Constructors
    Modifier
    Constructor
    Description
    protected
    Constructor that initializes the object based on literal property values passed by the LogGroupProps.Builder.
    protected
    Jsii$Proxy(software.amazon.jsii.JsiiObjectRef objRef)
    Constructor that initializes the object based on values retrieved from the JsiiObject.
  • Method Summary

    Modifier and Type
    Method
    Description
    com.fasterxml.jackson.databind.JsonNode
     
    final boolean
     
    final IKey
    The KMS Key to encrypt the log group with.
    final String
    Name of the log group.
    Determine the removal policy of this log group.
    How long, in days, the log contents will be retained.
    final int
     

    Methods inherited from class software.amazon.jsii.JsiiObject

    jsiiAsyncCall, jsiiAsyncCall, jsiiCall, jsiiCall, jsiiGet, jsiiGet, jsiiSet, jsiiStaticCall, jsiiStaticCall, jsiiStaticGet, jsiiStaticGet, jsiiStaticSet, jsiiStaticSet

    Methods inherited from class java.lang.Object

    clone, finalize, getClass, notify, notifyAll, toString, wait, wait, wait
  • 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

    • getEncryptionKey

      public final IKey getEncryptionKey()
      Description copied from interface: LogGroupProps
      The KMS Key to encrypt the log group with.

      Default: - log group is encrypted with the default master key

      Specified by:
      getEncryptionKey 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