Class LogGroupTargetInput
java.lang.Object
software.amazon.jsii.JsiiObject
software.amazon.awscdk.services.events.RuleTargetInput
software.amazon.awscdk.services.events.targets.LogGroupTargetInput
- All Implemented Interfaces:
software.amazon.jsii.JsiiSerializable
@Generated(value="jsii-pacmak/1.127.0 (build 2117ad5)",
date="2026-04-24T20:29:29.133Z")
@Stability(Stable)
public abstract class LogGroupTargetInput
extends RuleTargetInput
The input to send to the CloudWatch LogGroup target.
Example:
import software.amazon.awscdk.services.logs.*;
LogGroup logGroup;
Rule rule;
rule.addTarget(CloudWatchLogGroup.Builder.create(logGroup)
.logEvent(LogGroupTargetInput.fromObjectV2(LogGroupTargetInputOptions.builder()
.timestamp(EventField.fromPath("$.time"))
.message(EventField.fromPath("$.detail-type"))
.build()))
.build());
-
Nested Class Summary
Nested classes/interfaces inherited from class software.amazon.jsii.JsiiObject
software.amazon.jsii.JsiiObject.InitializationMode -
Constructor Summary
ConstructorsModifierConstructorDescriptionprotectedprotectedLogGroupTargetInput(software.amazon.jsii.JsiiObject.InitializationMode initializationMode) protectedLogGroupTargetInput(software.amazon.jsii.JsiiObjectRef objRef) -
Method Summary
Modifier and TypeMethodDescriptionstatic RuleTargetInputfromObject(Object options) Deprecated.use fromObjectV2static LogGroupTargetInputPass a JSON object to the log group event target.static LogGroupTargetInputfromObjectV2(LogGroupTargetInputOptions options) Pass a JSON object to the log group event target.Methods inherited from class software.amazon.awscdk.services.events.RuleTargetInput
bind, fromEventPath, fromMultilineText, fromTextMethods inherited from class software.amazon.jsii.JsiiObject
jsiiAsyncCall, jsiiAsyncCall, jsiiCall, jsiiCall, jsiiGet, jsiiGet, jsiiSet, jsiiStaticCall, jsiiStaticCall, jsiiStaticGet, jsiiStaticGet, jsiiStaticSet, jsiiStaticSetMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface software.amazon.jsii.JsiiSerializable
$jsii$toJson
-
Constructor Details
-
LogGroupTargetInput
protected LogGroupTargetInput(software.amazon.jsii.JsiiObjectRef objRef) -
LogGroupTargetInput
protected LogGroupTargetInput(software.amazon.jsii.JsiiObject.InitializationMode initializationMode) -
LogGroupTargetInput
@Stability(Stable) protected LogGroupTargetInput()
-
-
Method Details
-
fromObject
@Stability(Deprecated) @Deprecated @NotNull public static RuleTargetInput fromObject(@NotNull Object options) Deprecated.use fromObjectV2(deprecated) Pass a JSON object to the log group event target.May contain strings returned by
EventField.from()to substitute in parts of the matched event.- Parameters:
options- This parameter is required.
-
fromObjectV2
@Stability(Stable) @NotNull public static LogGroupTargetInput fromObjectV2(@Nullable LogGroupTargetInputOptions options) Pass a JSON object to the log group event target.May contain strings returned by
EventField.from()to substitute in parts of the matched event.- Parameters:
options-
-
fromObjectV2
Pass a JSON object to the log group event target.May contain strings returned by
EventField.from()to substitute in parts of the matched event.
-