@Generated(value="jsii-pacmak/1.67.0 (build 2c027f5)", date="2022-09-19T20:26:39.330Z") @Stability(value=Stable) public interface LogGroupTargetInputOptions extends software.amazon.jsii.JsiiSerializable
Example:
// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
import software.amazon.awscdk.services.events.targets.*;
Object message;
Object timestamp;
LogGroupTargetInputOptions logGroupTargetInputOptions = LogGroupTargetInputOptions.builder()
.message(message)
.timestamp(timestamp)
.build();
| Modifier and Type | Interface and Description |
|---|---|
static class |
LogGroupTargetInputOptions.Builder
A builder for
LogGroupTargetInputOptions |
static class |
LogGroupTargetInputOptions.Jsii$Proxy
An implementation for
LogGroupTargetInputOptions |
| Modifier and Type | Method and Description |
|---|---|
static LogGroupTargetInputOptions.Builder |
builder() |
default Object |
getMessage()
The value provided here will be used in the Log "message" field.
|
default Object |
getTimestamp()
The timestamp that will appear in the CloudWatch Logs record.
|
@Stability(value=Stable) @Nullable default Object getMessage()
This field must be a string. If an object is passed (e.g. JSON data)
it will not throw an error, but the message that makes it to
CloudWatch logs will be incorrect. This is a likely scenario if
doing something like: EventField.fromPath('$.detail') since in most cases
the detail field contains JSON data.
Default: EventField.detailType
@Stability(value=Stable) @Nullable default Object getTimestamp()
Default: EventField.time
@Stability(value=Stable) static LogGroupTargetInputOptions.Builder builder()
LogGroupTargetInputOptions.Builder of LogGroupTargetInputOptionsCopyright © 2022. All rights reserved.