Skip to content

DescribeLogStreams

Source: src/AWS/Logs/DescribeLogStreams.ts

Runtime binding for logs:DescribeLogStreams.

Bind this operation to a LogGroup inside a function runtime to list the streams of the group (e.g. to discover the most recently written stream before reading with GetLogEvents), automatically injecting the log group name.

const describeLogStreams = yield* AWS.Logs.DescribeLogStreams(logGroup);
const { logStreams } = yield* describeLogStreams({
orderBy: "LastEventTime",
descending: true,
limit: 1,
});