public static final class LogGroupProps.Jsii$Proxy extends software.amazon.jsii.JsiiObject implements LogGroupProps
LogGroupProps
LogGroupProps.Builder, LogGroupProps.Jsii$Proxy
Modifier | Constructor and Description |
---|---|
protected |
Jsii$Proxy(software.amazon.jsii.JsiiObjectRef objRef)
Constructor that initializes the object based on values retrieved from the JsiiObject.
|
Modifier and Type | Method and Description |
---|---|
com.fasterxml.jackson.databind.JsonNode |
$jsii$toJson() |
boolean |
equals(java.lang.Object o) |
IKey |
getEncryptionKey()
The KMS Key to encrypt the log group with.
|
java.lang.String |
getLogGroupName()
Name of the log group.
|
RemovalPolicy |
getRemovalPolicy()
Determine the removal policy of this log group.
|
RetentionDays |
getRetention()
How long, in days, the log contents will be retained.
|
int |
hashCode() |
clone, finalize, getClass, notify, notifyAll, toString, wait, wait, wait
builder
protected Jsii$Proxy(software.amazon.jsii.JsiiObjectRef objRef)
objRef
- Reference to the JSII managed object.public final IKey getEncryptionKey()
LogGroupProps
Default: - log group is encrypted with the default master key
getEncryptionKey
in interface LogGroupProps
public final java.lang.String getLogGroupName()
LogGroupProps
Default: Automatically generated
getLogGroupName
in interface LogGroupProps
public final RemovalPolicy getRemovalPolicy()
LogGroupProps
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
getRemovalPolicy
in interface LogGroupProps
public final RetentionDays getRetention()
LogGroupProps
To retain all logs, set this value to RetentionDays.INFINITE.
Default: RetentionDays.TWO_YEARS
getRetention
in interface LogGroupProps
public com.fasterxml.jackson.databind.JsonNode $jsii$toJson()
public final boolean equals(java.lang.Object o)
public final int hashCode()