@Stability(value=Stable) public static final class LogGroupProps.Builder extends Object implements software.amazon.jsii.Builder<LogGroupProps>
LogGroupProps| Constructor and Description |
|---|
Builder() |
| Modifier and Type | Method and Description |
|---|---|
LogGroupProps |
build()
Builds the configured instance.
|
LogGroupProps.Builder |
encryptionKey(IKey encryptionKey)
Sets the value of
LogGroupProps.getEncryptionKey() |
LogGroupProps.Builder |
logGroupName(String logGroupName)
Sets the value of
LogGroupProps.getLogGroupName() |
LogGroupProps.Builder |
removalPolicy(RemovalPolicy removalPolicy)
Sets the value of
LogGroupProps.getRemovalPolicy() |
LogGroupProps.Builder |
retention(RetentionDays retention)
Sets the value of
LogGroupProps.getRetention() |
@Stability(value=Stable) public LogGroupProps.Builder encryptionKey(IKey encryptionKey)
LogGroupProps.getEncryptionKey()encryptionKey - The KMS customer managed key to encrypt the log group with.this@Stability(value=Stable) public LogGroupProps.Builder logGroupName(String logGroupName)
LogGroupProps.getLogGroupName()logGroupName - Name of the log group.this@Stability(value=Stable) public LogGroupProps.Builder removalPolicy(RemovalPolicy removalPolicy)
LogGroupProps.getRemovalPolicy()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.this@Stability(value=Stable) public LogGroupProps.Builder retention(RetentionDays retention)
LogGroupProps.getRetention()retention - How long, in days, the log contents will be retained.
To retain all logs, set this value to RetentionDays.INFINITE.this@Stability(value=Stable) public LogGroupProps build()
build in interface software.amazon.jsii.Builder<LogGroupProps>LogGroupPropsNullPointerException - if any required attribute was not providedCopyright © 2022. All rights reserved.