Interface LogGroupProps
- All Superinterfaces:
software.amazon.jsii.JsiiSerializable,TargetBaseProps
- All Known Implementing Classes:
LogGroupProps.Jsii$Proxy
@Generated(value="jsii-pacmak/1.120.0 (build 192dc88)",
date="2025-12-05T10:47:21.063Z")
@Stability(Stable)
public interface LogGroupProps
extends software.amazon.jsii.JsiiSerializable, TargetBaseProps
Customize the CloudWatch LogGroup Event Target.
Example:
import software.amazon.awscdk.services.logs.*;
LogGroup logGroup;
Rule rule;
rule.addTarget(CloudWatchLogGroup.Builder.create(logGroup)
.logEvent(LogGroupTargetInput.fromObjectV2(LogGroupTargetInputOptions.builder()
.message(JSON.stringify(Map.of(
"CustomField", "CustomValue")))
.build()))
.build());
-
Nested Class Summary
Nested ClassesModifier and TypeInterfaceDescriptionstatic final classA builder forLogGroupPropsstatic final classAn implementation forLogGroupProps -
Method Summary
Modifier and TypeMethodDescriptionstatic LogGroupProps.Builderbuilder()default RuleTargetInputgetEvent()Deprecated.use logEvent insteaddefault BooleanWhether the custom resource created wll default to install latest AWS SDK.default LogGroupTargetInputThe event to send to the CloudWatch LogGroup.Methods inherited from interface software.amazon.jsii.JsiiSerializable
$jsii$toJsonMethods inherited from interface software.amazon.awscdk.services.events.targets.TargetBaseProps
getDeadLetterQueue, getMaxEventAge, getRetryAttempts
-
Method Details
-
getEvent
Deprecated.use logEvent instead(deprecated) The event to send to the CloudWatch LogGroup.This will be the event logged into the CloudWatch LogGroup
Default: - the entire EventBridge event
-
getInstallLatestAwsSdk
Whether the custom resource created wll default to install latest AWS SDK.Default: - install latest AWS SDK
-
getLogEvent
The event to send to the CloudWatch LogGroup.This will be the event logged into the CloudWatch LogGroup
Default: - the entire EventBridge event
-
builder
- Returns:
- a
LogGroupProps.BuilderofLogGroupProps
-