Class LogGroupTargetInput
java.lang.Object
software.amazon.jsii.JsiiObject
software.amazon.awscdk.services.events.targets.LogGroupTargetInput
- All Implemented Interfaces:
software.amazon.jsii.JsiiSerializable
@Generated(value="jsii-pacmak/1.120.0 (build 192dc88)",
date="2025-12-05T10:47:21.064Z")
@Stability(Stable)
public abstract class LogGroupTargetInput
extends software.amazon.jsii.JsiiObject
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 TypeMethodDescriptionabstract RuleTargetInputPropertiesReturn the input properties for this input object.static RuleTargetInputDeprecated.use fromObjectV2static RuleTargetInputfromObject(LogGroupTargetInputOptions options) Deprecated.use fromObjectV2static LogGroupTargetInputPass a JSON object to the the log group event target.static LogGroupTargetInputfromObjectV2(LogGroupTargetInputOptions options) Pass a JSON object to the the log group event target.Methods 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(@Nullable LogGroupTargetInputOptions 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-
-
fromObject
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. -
fromObjectV2
@Stability(Stable) @NotNull public static LogGroupTargetInput fromObjectV2(@Nullable LogGroupTargetInputOptions options) Pass a JSON object to the 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 the log group event target.May contain strings returned by
EventField.from()to substitute in parts of the matched event. -
bind
Return the input properties for this input object.- Parameters:
rule- This parameter is required.
-