@Generated(value="jsii-pacmak/1.67.0 (build 2c027f5)", date="2022-09-19T20:26:39.305Z") @Stability(value=Stable) public class EventField extends software.amazon.jsii.JsiiObject implements IResolvable
Example:
// Example automatically generated from non-compiling source. May contain errors.
import software.amazon.awscdk.services.logs.*;
LogGroup logGroup;
Rule rule;
rule.addTarget(CloudWatchLogGroup.Builder.create(logGroup)
.logEvent(LogGroupTargetInput(Map.of(
"timestamp", EventField.from("$.time"),
"message", EventField.from("$.detail-type"))))
.build());
software.amazon.jsii.JsiiObject.InitializationModeIResolvable.Jsii$Default, IResolvable.Jsii$Proxy| Modifier | Constructor and Description |
|---|---|
protected |
EventField(software.amazon.jsii.JsiiObject.InitializationMode initializationMode) |
protected |
EventField(software.amazon.jsii.JsiiObjectRef objRef) |
| Modifier and Type | Method and Description |
|---|---|
static String |
fromPath(String path)
Extract a custom JSON path from the event.
|
static String |
getAccount()
Extract the account from the event.
|
List<String> |
getCreationStack()
The creation stack of this resolvable which will be appended to errors thrown during resolution.
|
static String |
getDetailType()
Extract the detail type from the event.
|
String |
getDisplayHint()
Human readable display hint about the event pattern.
|
static String |
getEventId()
Extract the event ID from the event.
|
String |
getPath()
the path to a field in the event pattern.
|
static String |
getRegion()
Extract the region from the event.
|
static String |
getSource()
Extract the source from the event.
|
static String |
getTime()
Extract the time from the event.
|
Object |
resolve(IResolveContext _ctx)
Produce the Token's value at resolution time.
|
String |
toJSON()
Convert the path to the field in the event pattern to JSON.
|
String |
toString()
Return a string representation of this resolvable object.
|
jsiiAsyncCall, jsiiAsyncCall, jsiiCall, jsiiCall, jsiiGet, jsiiGet, jsiiSet, jsiiStaticCall, jsiiStaticCall, jsiiStaticGet, jsiiStaticGet, jsiiStaticSet, jsiiStaticSetprotected EventField(software.amazon.jsii.JsiiObjectRef objRef)
protected EventField(software.amazon.jsii.JsiiObject.InitializationMode initializationMode)
@Stability(value=Stable) @NotNull public static String fromPath(@NotNull String path)
path - This parameter is required.@Stability(value=Stable) @NotNull public Object resolve(@NotNull IResolveContext _ctx)
resolve in interface IResolvable_ctx - This parameter is required.@Stability(value=Stable) @NotNull public String toJSON()
@Stability(value=Stable) @NotNull public String toString()
Returns a reversible string representation.
toString in interface IResolvabletoString in class Object@Stability(value=Stable) @NotNull public static String getAccount()
@Stability(value=Stable) @NotNull public static String getDetailType()
@Stability(value=Stable) @NotNull public static String getEventId()
@Stability(value=Stable) @NotNull public static String getRegion()
@Stability(value=Stable) @NotNull public static String getSource()
@Stability(value=Stable) @NotNull public static String getTime()
@Stability(value=Stable) @NotNull public List<String> getCreationStack()
This may return an array with a single informational element indicating how to get this property populated, if it was skipped for performance reasons.
getCreationStack in interface IResolvable@Stability(value=Stable) @NotNull public String getDisplayHint()
@Stability(value=Stable) @NotNull public String getPath()
Copyright © 2022. All rights reserved.