interface CloudWatchLogsTargetParameters
Language | Type name |
---|---|
.NET | Amazon.CDK.AWS.Pipes.Targets.Alpha.CloudWatchLogsTargetParameters |
Go | github.com/aws/aws-cdk-go/awscdkpipestargetsalpha/v2#CloudWatchLogsTargetParameters |
Java | software.amazon.awscdk.services.pipes.targets.alpha.CloudWatchLogsTargetParameters |
Python | aws_cdk.aws_pipes_targets_alpha.CloudWatchLogsTargetParameters |
TypeScript (source) | @aws-cdk/aws-pipes-targets-alpha ยป CloudWatchLogsTargetParameters |
CloudWatch Logs target properties.
Example
declare const sourceQueue: sqs.Queue;
declare const targetLogGroup: logs.LogGroup;
const logGroupTarget = new targets.CloudWatchLogsTarget(targetLogGroup, {
inputTransformation: pipes.InputTransformation.fromObject({ body: "๐" }),
});
const pipe = new pipes.Pipe(this, 'Pipe', {
source: new SqsSource(sourceQueue),
target: logGroupTarget,
});
Properties
Name | Type | Description |
---|---|---|
input | IInput | The input transformation to apply to the message before sending it to the target. |
log | string | The name of the log stream. |
timestamp? | string | The JSON path expression that references the timestamp in the payload. |
inputTransformation?
Type:
IInput
(optional, default: none)
The input transformation to apply to the message before sending it to the target.
logStreamName?
Type:
string
(optional, default: none)
The name of the log stream.
timestamp?
Type:
string
(optional, default: current time)
The JSON path expression that references the timestamp in the payload.
This is the time that the event occurred, as a JSON path expression in the payload.
'$.data.timestamp'