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="2024-11-06T23:25:10.353Z")
@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
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 RuleTargetInputPass a JSON object to the the log group event target.static RuleTargetInputfromObject(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(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.
-