@Stability(value=Stable) @Internal public static final class LogGroupProps.Jsii$Proxy extends software.amazon.jsii.JsiiObject implements LogGroupProps
LogGroupPropssoftware.amazon.jsii.JsiiObject.InitializationModeLogGroupProps.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.
|
protected |
Jsii$Proxy(LogGroupProps.Builder builder)
Constructor that initializes the object based on literal property values passed by the
LogGroupProps.Builder. |
| Modifier and Type | Method and Description |
|---|---|
com.fasterxml.jackson.databind.JsonNode |
$jsii$toJson() |
boolean |
equals(Object o) |
IKey |
getEncryptionKey()
The KMS customer managed key to encrypt the log group with.
|
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() |
jsiiAsyncCall, jsiiAsyncCall, jsiiCall, jsiiCall, jsiiGet, jsiiGet, jsiiSet, jsiiStaticCall, jsiiStaticCall, jsiiStaticGet, jsiiStaticGet, jsiiStaticSet, jsiiStaticSetclone, finalize, getClass, notify, notifyAll, toString, wait, wait, waitbuilderprotected Jsii$Proxy(software.amazon.jsii.JsiiObjectRef objRef)
objRef - Reference to the JSII managed object.protected Jsii$Proxy(LogGroupProps.Builder builder)
LogGroupProps.Builder.public final IKey getEncryptionKey()
LogGroupPropsDefault: Server-side encrpytion managed by the CloudWatch Logs service
getEncryptionKey in interface LogGroupPropspublic final String getLogGroupName()
LogGroupPropsDefault: Automatically generated
getLogGroupName in interface LogGroupPropspublic final RemovalPolicy getRemovalPolicy()
LogGroupPropsNormally 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 LogGroupPropspublic final RetentionDays getRetention()
LogGroupPropsTo retain all logs, set this value to RetentionDays.INFINITE.
Default: RetentionDays.TWO_YEARS
getRetention in interface LogGroupProps@Internal public com.fasterxml.jackson.databind.JsonNode $jsii$toJson()
$jsii$toJson in interface software.amazon.jsii.JsiiSerializableCopyright © 2022. All rights reserved.