@Generated(value="jsii-pacmak/1.29.0 (build 41df200)", date="2021-06-02T09:55:31.739Z") @Stability(value=Experimental) public interface LogGroupProps extends software.amazon.jsii.JsiiSerializable
| Modifier and Type | Interface and Description |
|---|---|
static class |
LogGroupProps.Builder
A builder for
LogGroupProps |
static class |
LogGroupProps.Jsii$Proxy
An implementation for
LogGroupProps |
| Modifier and Type | Method and Description |
|---|---|
static LogGroupProps.Builder |
builder() |
default IKey |
getEncryptionKey()
(experimental) The KMS Key to encrypt the log group with.
|
default String |
getLogGroupName()
(experimental) Name of the log group.
|
default RemovalPolicy |
getRemovalPolicy()
(experimental) Determine the removal policy of this log group.
|
default RetentionDays |
getRetention()
(experimental) How long, in days, the log contents will be retained.
|
@Stability(value=Experimental) @Nullable default IKey getEncryptionKey()
Default: - log group is encrypted with the default master key
@Stability(value=Experimental) @Nullable default String getLogGroupName()
Default: Automatically generated
@Stability(value=Experimental) @Nullable default RemovalPolicy getRemovalPolicy()
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
@Stability(value=Experimental) @Nullable default RetentionDays getRetention()
To retain all logs, set this value to RetentionDays.INFINITE.
Default: RetentionDays.TWO_YEARS
@Stability(value=Experimental) static LogGroupProps.Builder builder()
LogGroupProps.Builder of LogGroupPropsCopyright © 2021. All rights reserved.