# awscdk-construct-scte-scheduler

> AWS CDK Construct for scheduling SCTE-35 events using the MediaLive schedule API

Latest version **0.0.28** (published 2026-05-15) · MIT license · 0 weekly downloads

## Install

```sh
npm install awscdk-construct-scte-scheduler
pnpm add awscdk-construct-scte-scheduler
yarn add awscdk-construct-scte-scheduler
bun add awscdk-construct-scte-scheduler
```

## Health

**Score 60/100 (C)** — status: active.

Positive: has types; no vulnerabilities; has provenance; high quality score.

Warnings: low downloads; no esm support; large bundle; pre 1.0.

## Facts

| | |
|---|---|
| Version | 0.0.28 |
| Published | 2026-05-15 |
| First published | 2024-03-16 |
| Weekly downloads | 0 |
| License | MIT |
| TypeScript types | bundled |
| Module format | CommonJS |
| Dependencies | 3 |
| Unpacked size | 9.7 MB |
| Known vulnerabilities | 0 |
| Install scripts | no |
| Provenance | attested (GitHub Actions) |
| Author | Kuu Miyazaki |
| Maintainers | kuu |
| Keywords | EventBridge, Lambda, MediaLive, SCTE, cdk, cdk-construct |

## Links

- npm: https://www.npmjs.com/package/awscdk-construct-scte-scheduler
- Repository: https://github.com/kuu/awscdk-construct-scte-scheduler
- Homepage: https://github.com/kuu/awscdk-construct-scte-scheduler#readme
- Issues: https://github.com/kuu/awscdk-construct-scte-scheduler/issues
- npm.io page: https://npm.io/package/awscdk-construct-scte-scheduler

## Dependencies (3)

- [constructs](https://npm.io/package/constructs.md) ^10.4.2
- [aws-cdk-lib](https://npm.io/package/aws-cdk-lib.md) ^2.202.0
- [@aws-sdk/client-medialive](https://npm.io/package/@aws-sdk/client-medialive.md) ^3.1047.0

## Alternatives

- [async-exit-hook](https://npm.io/package/async-exit-hook.md) — 3.7M weekly downloads
- [evnty](https://npm.io/package/evnty.md) — 7.2K weekly downloads
- [eleventy-plugin-asciidoc](https://npm.io/package/eleventy-plugin-asciidoc.md) — 3.5K weekly downloads
- [@jswork/next-get2get](https://npm.io/package/@jswork/next-get2get.md) — 945 weekly downloads
- [@dashersw/axon](https://npm.io/package/@dashersw/axon.md) — 934 weekly downloads

## Recent versions

- 0.0.28 (latest) — 2026-05-15
- 0.0.27 — 2025-06-21
- 0.0.26 — 2025-06-09
- 0.0.25 — 2025-06-09
- 0.0.24 — 2024-09-03
- 0.0.23 — 2024-09-01
- 0.0.22 — 2024-08-13
- 0.0.21 — 2024-08-09
- 0.0.20 — 2024-07-28
- 0.0.19 — 2024-07-28
- 0.0.18 — 2024-07-28
- 0.0.17 — 2024-07-28
- 0.0.16 — 2024-07-27
- 0.0.15 — 2024-07-27
- 0.0.14 — 2024-07-27
- … 14 more at https://npm.io/package/awscdk-construct-scte-scheduler/versions

## README

# awscdk-construct-scte-scheduler
[![View on Construct Hub](https://constructs.dev/badge?awscdk-construct-scte-scheduler)](https://constructs.dev/packages/awscdk-construct-scte-scheduler)

AWS CDK Construct for scheduling SCTE-35 events using the MediaLive schedule API
* Input:
  * MediaLive channel id
  * SCTE event duration (seconds)
  * Repeat interval (minutes)
  * Repeat count (optional)
  * Lambda function to be called after the repeat (optional)
* Output:
  * Lambda function for calling MediaLive schedule API
  * EventBridge rule or Stepfunctions state machine for periodically invoking the function

## Install
[![NPM](https://nodei.co/npm/awscdk-construct-scte-scheduler.png?mini=true)](https://nodei.co/npm/awscdk-construct-scte-scheduler/)

## Usage
```ts
import { Stack, StackProps, CfnOutput } from 'aws-cdk-lib';
import { Construct } from 'constructs';
import { LiveChannelFromMp4 } from 'awscdk-construct-live-channel-from-mp4-file';
import { ScteScheduler } from 'awscdk-construct-scte-scheduler';

export class ExampleStack extends Stack {
  constructor(scope: Construct, id: string, props?: StackProps) {
    super(scope, id, props);

    // Create a live channel (MediaLive + MediaPackage)
    const {eml, emp} = new LiveChannelFromMp4(this, 'LiveChannelFromMp4', {
      sourceUrl: 's3ssl://example_bucket/test.mp4',
      timecodeBurninPrefix: 'Ch1',
      autoStart: true,
    });

    // Schedule a 30-sec ad break every minute
    new ScteScheduler(this, 'ScteScheduler', {
      channelId: eml.channel.ref,
      scteDurationInSeconds: 30,
      intervalInMinutes: 1,
      repeqtCount: 5,
    });

    // Print MediaPackage endpoint URL (HLS)
    new CfnOutput(this, "MediaPackageEndpointURL", {
      value: emp.endpoints.hls.attrUrl,
      exportName: "MediaPackageEndpointURL",
      description: "MediaPackage endpoint URL",
    });
  }
}
```

---
_Source: https://npm.io/package/awscdk-construct-scte-scheduler · Machine-readable twin of the npm.io package page. Health data is recomputed on every publish._
