@Generated(value="jsii-pacmak/1.67.0 (build 2c027f5)", date="2022-09-19T20:26:39.330Z") @Stability(value=Stable) public interface LogGroupProps extends software.amazon.jsii.JsiiSerializable, TargetBaseProps
Example:
// Example automatically generated from non-compiling source. May contain errors.
import software.amazon.awscdk.services.logs.*;
LogGroup logGroup;
Rule rule;
rule.addTarget(CloudWatchLogGroup.Builder.create(logGroup)
.logEvent(LogGroupTargetInput(Map.of(
"timestamp", EventField.from("$.time"),
"message", EventField.from("$.detail-type"))))
.build());
| 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 RuleTargetInput |
getEvent()
Deprecated.
use logEvent instead
|
default LogGroupTargetInput |
getLogEvent()
The event to send to the CloudWatch LogGroup.
|
getDeadLetterQueue, getMaxEventAge, getRetryAttempts@Stability(value=Deprecated) @Deprecated @Nullable default RuleTargetInput getEvent()
This will be the event logged into the CloudWatch LogGroup
Default: - the entire EventBridge event
@Stability(value=Stable) @Nullable default LogGroupTargetInput getLogEvent()
This will be the event logged into the CloudWatch LogGroup
Default: - the entire EventBridge event
@Stability(value=Stable) static LogGroupProps.Builder builder()
builder in interface TargetBasePropsLogGroupProps.Builder of LogGroupPropsCopyright © 2022. All rights reserved.