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.104.0 (build e79254c)",
date="2025-01-15T21:09:19.611Z")
@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.fromObject(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
ModifierConstructorDescriptionprotected
protected
LogGroupTargetInput
(software.amazon.jsii.JsiiObject.InitializationMode initializationMode) protected
LogGroupTargetInput
(software.amazon.jsii.JsiiObjectRef objRef) -
Method Summary
Modifier and TypeMethodDescriptionabstract RuleTargetInputProperties
Return the input properties for this input object.static RuleTargetInput
Pass a JSON object to the the log group event target.static RuleTargetInput
fromObject
(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, jsiiStaticSet
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
Methods 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(Stable) @NotNull public static RuleTargetInput fromObject(@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
-
-
fromObject
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.
-