/** * Define when and how your message should be sent. */ export interface MessageSchedule { /** * The date and time you want your message to be sent. * - Use [ISO 8601 format](https://en.wikipedia.org/wiki/ISO_8601), for example: `2024-12-17T14:30:00Z`. Format: `YYYY-MM-DDThh:mm` (e.g., `2024-12-25T14:30`). * - This time must be at least 5 minutes in the future. * - The message will be scheduled based on the `timezone` you provide. * - If you set a `recurrence` schedule, this is the start date and time for the recurring schedule. */ sendAt: string; /** * AWS cron expression for recurring schedules (6 fields).
* * [Learn more about cron expressions](https://docs.aws.amazon.com/eventbridge/latest/userguide/eb-scheduled-rule-pattern.html).
* * **Examples:** * - `0 10 * * ? *` - Every day at 10:00 AM * - `0/30 * * * ? *` - Every 30 minutes * - `0 9 ? * MON-FRI *` - Every weekday at 9:00 AM * - `0 12 1 * ? *` - First day of every month at noon */ recurrence?: string; /** * IANA timezone identifier (e.g., `America/New_York`, `UTC`).
* * Defaults to `UTC` if not specified. */ timezone?: string; /** * Date and time when recurring messages should stop.
* * Format: `YYYY-MM-DDThh:mm`. Required if `recurrence` is set. */ endDate?: string; }