rds-database-running-scheduler 0.2.8 → 0.3.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/.jsii CHANGED
@@ -8440,7 +8440,7 @@
8440
8440
  "stability": "stable"
8441
8441
  },
8442
8442
  "homepage": "https://github.com/gammarers-aws-cdk-constructs/rds-database-running-scheduler.git",
8443
- "jsiiVersion": "5.9.44 (build 150b837)",
8443
+ "jsiiVersion": "6.0.4 (build 308d98d)",
8444
8444
  "keywords": [
8445
8445
  "aurora",
8446
8446
  "aws",
@@ -8462,7 +8462,7 @@
8462
8462
  },
8463
8463
  "name": "rds-database-running-scheduler",
8464
8464
  "readme": {
8465
- "markdown": "# RDS Database Running Scheduler (AWS CDK v2)\n\n[![GitHub](https://img.shields.io/github/license/gammarers-aws-cdk-constructs/rds-database-running-scheduler?style=flat-square)](https://github.com/gammarers-aws-cdk-constructs/rds-database-running-scheduler/blob/main/LICENSE)\n[![npm version](https://img.shields.io/npm/v/rds-database-running-scheduler?style=flat-square)](https://www.npmjs.com/package/rds-database-running-scheduler)\n[![GitHub Workflow Status (branch)](https://img.shields.io/github/actions/workflow/status/gammarers-aws-cdk-constructs/rds-database-running-scheduler/release.yml?branch=main&label=release&style=flat-square)](https://github.com/gammarers-aws-cdk-constructs/rds-database-running-scheduler/actions/workflows/release.yml)\n[![GitHub release (latest SemVer)](https://img.shields.io/github/v/release/gammarers-aws-cdk-constructs/rds-database-running-scheduler?sort=semver&style=flat-square)](https://github.com/gammarers-aws-cdk-constructs/rds-database-running-scheduler/releases)\n\n[![View on Construct Hub](https://constructs.dev/badge?package=rds-database-running-scheduler)](https://constructs.dev/packages/rds-database-running-scheduler)\n\nThis AWS CDK construct controls the start and stop of RDS DB instances and Aurora clusters based on resource tags. EventBridge Scheduler invokes a durable Lambda function on a cron schedule so databases run only during defined working hours. The Lambda discovers tagged resources account-wide via the Resource Groups Tagging API, deduplicates Aurora cluster member instances when the parent cluster is also tagged, and controls each remaining resource using the region encoded in its ARN. Default schedule: start 07:50 UTC, stop 19:05 UTC, Monday–Friday.\n\n## Features\n\n- **Tag-based targeting**: Start and stop RDS DB instances and Aurora clusters that match a given tag key and values.\n- **Account-wide discovery**: Finds tagged RDS resources across all regions in the deployment account.\n- **Cluster-priority deduplication**: When tag discovery returns both an Aurora cluster and its member DB instances, only the cluster is processed to avoid conflicting start/stop operations.\n- **Region-aware RDS control**: Creates per-region RDS clients from each resource ARN so cross-region resources are handled correctly.\n- **EventBridge Scheduler**: Cron-based start and stop schedules with configurable timezone, time, and weekdays.\n- **Lambda with Durable Execution**: A single durable run discovers resources by tag, starts or stops them, and polls until they reach the desired state (with timeout).\n- **Slack notifications**: Posts schedule progress and per-resource results to Slack using a secret stored in AWS Secrets Manager.\n- **Supported resources**: RDS DB instances and RDS Aurora clusters.\n\n## Installation\n\n**npm**\n\n```bash\nnpm install rds-database-running-scheduler\n```\n\n**yarn**\n\n```bash\nyarn add rds-database-running-scheduler\n```\n\n## Usage\n\nUse the **Construct** `RDSDatabaseRunningScheduler` when adding the scheduler into an existing Stack or any CDK scope.\n\n```typescript\nimport { TimeZone } from 'aws-cdk-lib';\nimport { RDSDatabaseRunningScheduler } from 'rds-database-running-scheduler';\n\nnew RDSDatabaseRunningScheduler(scope, 'RDSDatabaseRunningScheduler', {\n targetResource: { tagKey: 'WorkHoursRunning', tagValues: ['YES'] },\n secrets: { slackSecretName: 'example/slack/webhook' },\n enableScheduling: true,\n startSchedule: { timezone: TimeZone.ASIA_TOKYO, minute: '50', hour: '7', week: 'MON-FRI' },\n stopSchedule: { timezone: TimeZone.ASIA_TOKYO, minute: '5', hour: '19', week: 'MON-FRI' },\n});\n```\n\nUse the **Stack** `RDSDatabaseRunningScheduleStack` when you want a dedicated Stack that only contains the scheduler. Both accept the same props.\n\n```typescript\nimport { App, TimeZone } from 'aws-cdk-lib';\nimport { RDSDatabaseRunningScheduleStack } from 'rds-database-running-scheduler';\n\nconst app = new App();\n\nnew RDSDatabaseRunningScheduleStack(app, 'RDSDatabaseRunningScheduleStack', {\n targetResource: { tagKey: 'WorkHoursRunning', tagValues: ['YES'] },\n secrets: { slackSecretName: 'example/slack/webhook' },\n enableScheduling: true,\n startSchedule: { timezone: TimeZone.ASIA_TOKYO, minute: '50', hour: '7', week: 'MON-FRI' },\n stopSchedule: { timezone: TimeZone.ASIA_TOKYO, minute: '5', hour: '19', week: 'MON-FRI' },\n});\n```\n\nTag your RDS instances or Aurora clusters with the same `tagKey` and one of the `tagValues` so they are included in the schedule.\n\nFor Aurora, tagging the cluster is sufficient. If member DB instances inherit the same tag, the Lambda automatically excludes them when the parent cluster is also targeted, so cluster-level start/stop is applied once without conflicting instance-level operations.\n\nThe Slack secret in AWS Secrets Manager must contain JSON with `token` and `channel` fields:\n\n```json\n{\n \"token\": \"xoxb-...\",\n \"channel\": \"C0123456789\"\n}\n```\n\n## Options\n\n| Option | Type | Required | Description |\n|--------|------|----------|-------------|\n| `targetResource` | `TargetResource` | Yes | Tag key and values used to select RDS resources. |\n| `secrets` | `Secrets` | Yes | Slack configuration. `slackSecretName`: Secrets Manager secret name for Slack (`token` and `channel`). |\n| `enableScheduling` | `boolean` | No | Whether schedules are enabled. Default: `true`. |\n| `startSchedule` | `Schedule` | No | Start schedule. Default: 07:50 UTC, MON–FRI. |\n| `stopSchedule` | `Schedule` | No | Stop schedule. Default: 19:05 UTC, MON–FRI. |\n\n### Schedule\n\n| Field | Type | Description |\n|-------|------|-------------|\n| `timezone` | `TimeZone` | CDK timezone constant (for example `TimeZone.ASIA_TOKYO`, `TimeZone.ETC_UTC`). |\n| `minute` | `string` | Cron minute (for example `'50'`). |\n| `hour` | `string` | Cron hour (for example `'7'`, `'19'`). |\n| `week` | `string` | Cron week day (for example `'MON-FRI'`). |\n\n### TargetResource\n\n| Field | Type | Description |\n|-------|------|-------------|\n| `tagKey` | `string` | Tag key to filter RDS resources. |\n| `tagValues` | `string[]` | Tag values to match (resources with any of these values are targeted). |\n\n### Secrets\n\n| Field | Type | Description |\n|-------|------|-------------|\n| `slackSecretName` | `string` | Secrets Manager secret name containing Slack `token` and `channel`. |\n\n## Requirements\n\n- **Node.js**: >= 20.0.0\n- **AWS CDK**: ^2.232.0\n- **constructs**: ^10.5.1\n- **AWS**: Account and region with permissions to create EventBridge Scheduler, Lambda, IAM, CloudWatch Logs, and Secrets Manager; RDS describe/start/stop permissions for targeted resources; Resource Groups Tagging API access for resource discovery.\n\n## License\n\nThis project is licensed under the Apache-2.0 License.\n"
8465
+ "markdown": "# RDS Database Running Scheduler (AWS CDK v2)\n\n[![GitHub](https://img.shields.io/github/license/gammarers-aws-cdk-constructs/rds-database-running-scheduler?style=flat-square)](https://github.com/gammarers-aws-cdk-constructs/rds-database-running-scheduler/blob/main/LICENSE)\n[![npm version](https://img.shields.io/npm/v/rds-database-running-scheduler?style=flat-square)](https://www.npmjs.com/package/rds-database-running-scheduler)\n[![GitHub Workflow Status (branch)](https://img.shields.io/github/actions/workflow/status/gammarers-aws-cdk-constructs/rds-database-running-scheduler/release.yml?branch=main&label=release&style=flat-square)](https://github.com/gammarers-aws-cdk-constructs/rds-database-running-scheduler/actions/workflows/release.yml)\n[![GitHub release (latest SemVer)](https://img.shields.io/github/v/release/gammarers-aws-cdk-constructs/rds-database-running-scheduler?sort=semver&style=flat-square)](https://github.com/gammarers-aws-cdk-constructs/rds-database-running-scheduler/releases)\n\n[![View on Construct Hub](https://constructs.dev/badge?package=rds-database-running-scheduler)](https://constructs.dev/packages/rds-database-running-scheduler)\n\nThis AWS CDK construct controls the start and stop of RDS DB instances and Aurora clusters based on resource tags. EventBridge Scheduler invokes a durable Lambda function on a cron schedule so databases run only during defined working hours. The Lambda discovers tagged resources account-wide via the Resource Groups Tagging API, deduplicates Aurora cluster member instances when the parent cluster is also tagged, and controls each remaining resource using the region encoded in its ARN. Slack notifications are optional via `notification.slack`. Default schedule: start 07:50 UTC, stop 19:05 UTC, Monday–Friday.\n\n## Features\n\n- **Tag-based targeting**: Start and stop RDS DB instances and Aurora clusters that match a given tag key and values.\n- **Account-wide discovery**: Finds tagged RDS resources across all regions in the deployment account.\n- **Cluster-priority deduplication**: When tag discovery returns both an Aurora cluster and its member DB instances, only the cluster is processed to avoid conflicting start/stop operations.\n- **Region-aware RDS control**: Creates per-region RDS clients from each resource ARN so cross-region resources are handled correctly.\n- **EventBridge Scheduler**: Cron-based start and stop schedules with configurable timezone, time, and weekdays.\n- **Lambda with Durable Execution**: A single durable run discovers resources by tag, starts or stops them, and polls until they reach the desired state (with timeout).\n- **Optional Slack notifications**: Set `notification.slack` to post schedule progress and per-resource results to Slack via Secrets Manager. Omit `notification` (or `notification.slack`) to skip secret lookup, Slack API calls, and related IAM grants.\n- **Supported resources**: RDS DB instances and RDS Aurora clusters.\n\n## Installation\n\n**npm**\n\n```bash\nnpm install rds-database-running-scheduler\n```\n\n**yarn**\n\n```bash\nyarn add rds-database-running-scheduler\n```\n\n## Usage\n\nUse the **Construct** `RDSDatabaseRunningScheduler` when adding the scheduler into an existing Stack or any CDK scope.\n\nWith Slack notifications:\n\n```typescript\nimport { TimeZone } from 'aws-cdk-lib';\nimport { RDSDatabaseRunningScheduler } from 'rds-database-running-scheduler';\n\nnew RDSDatabaseRunningScheduler(scope, 'RDSDatabaseRunningScheduler', {\n targetResource: { tagKey: 'WorkHoursRunning', tagValues: ['YES'] },\n notification: { slack: { secretName: 'example/slack/webhook' } },\n enableScheduling: true,\n startSchedule: { timezone: TimeZone.ASIA_TOKYO, minute: '50', hour: '7', week: 'MON-FRI' },\n stopSchedule: { timezone: TimeZone.ASIA_TOKYO, minute: '5', hour: '19', week: 'MON-FRI' },\n});\n```\n\nWithout Slack notifications, omit `notification` (or omit `notification.slack`):\n\n```typescript\nnew RDSDatabaseRunningScheduler(scope, 'RDSDatabaseRunningScheduler', {\n targetResource: { tagKey: 'WorkHoursRunning', tagValues: ['YES'] },\n enableScheduling: true,\n startSchedule: { timezone: TimeZone.ASIA_TOKYO, minute: '50', hour: '7', week: 'MON-FRI' },\n stopSchedule: { timezone: TimeZone.ASIA_TOKYO, minute: '5', hour: '19', week: 'MON-FRI' },\n});\n```\n\nUse the **Stack** `RDSDatabaseRunningScheduleStack` when you want a dedicated Stack that only contains the scheduler. Both accept the same props.\n\n```typescript\nimport { App, TimeZone } from 'aws-cdk-lib';\nimport { RDSDatabaseRunningScheduleStack } from 'rds-database-running-scheduler';\n\nconst app = new App();\n\nnew RDSDatabaseRunningScheduleStack(app, 'RDSDatabaseRunningScheduleStack', {\n targetResource: { tagKey: 'WorkHoursRunning', tagValues: ['YES'] },\n notification: { slack: { secretName: 'example/slack/webhook' } },\n enableScheduling: true,\n startSchedule: { timezone: TimeZone.ASIA_TOKYO, minute: '50', hour: '7', week: 'MON-FRI' },\n stopSchedule: { timezone: TimeZone.ASIA_TOKYO, minute: '5', hour: '19', week: 'MON-FRI' },\n});\n```\n\nTag your RDS instances or Aurora clusters with the same `tagKey` and one of the `tagValues` so they are included in the schedule.\n\nFor Aurora, tagging the cluster is sufficient. If member DB instances inherit the same tag, the Lambda automatically excludes them when the parent cluster is also targeted, so cluster-level start/stop is applied once without conflicting instance-level operations.\n\nWhen `notification.slack` is set, the secret in AWS Secrets Manager must contain JSON with `token` and `channel` fields:\n\n```json\n{\n \"token\": \"xoxb-...\",\n \"channel\": \"C0123456789\"\n}\n```\n\n## Options\n\n| Option | Type | Required | Description |\n|--------|------|----------|-------------|\n| `targetResource` | `TargetResource` | Yes | Tag key and values used to select RDS resources. |\n| `notification` | `Notification` | No | Notification channels. Set `notification.slack` to enable Slack. Omit to disable notifications. |\n| `enableScheduling` | `boolean` | No | Whether start and stop schedules are enabled. Default: `true`. |\n| `startSchedule` | `Schedule` | No | Start schedule. Default: 07:50 UTC, MON–FRI. |\n| `stopSchedule` | `Schedule` | No | Stop schedule. Default: 19:05 UTC, MON–FRI. |\n\n### Schedule\n\n| Field | Type | Required | Description |\n|-------|------|----------|-------------|\n| `timezone` | `TimeZone` | Yes | CDK timezone constant (for example `TimeZone.ASIA_TOKYO`, `TimeZone.ETC_UTC`). |\n| `minute` | `string` | No | Cron minute (for example `'50'`). |\n| `hour` | `string` | No | Cron hour (for example `'7'`, `'19'`). |\n| `week` | `string` | No | Cron week day (for example `'MON-FRI'`). |\n\n### TargetResource\n\n| Field | Type | Required | Description |\n|-------|------|----------|-------------|\n| `tagKey` | `string` | Yes | Tag key to filter RDS resources. |\n| `tagValues` | `string[]` | Yes | Tag values to match (resources with any of these values are targeted). |\n\n### Notification\n\n| Field | Type | Required | Description |\n|-------|------|----------|-------------|\n| `slack` | `SlackNotification` | No | Presence enables Slack notifications. |\n\n### SlackNotification\n\n| Field | Type | Required | Description |\n|-------|------|----------|-------------|\n| `secretName` | `string` | Yes | Secrets Manager secret name containing Slack `token` and `channel`. |\n\n## Requirements\n\n- **Node.js**: >= 20.0.0\n- **AWS CDK**: ^2.232.0\n- **constructs**: ^10.5.1\n- **AWS**: Account and region with permissions to create EventBridge Scheduler, Lambda, IAM, and CloudWatch Logs; RDS describe/start/stop permissions for targeted resources; Resource Groups Tagging API access for resource discovery. Secrets Manager access is required only when `notification.slack` is set.\n\n## License\n\nThis project is licensed under the Apache-2.0 License.\n"
8466
8466
  },
8467
8467
  "repository": {
8468
8468
  "type": "git",
@@ -8475,11 +8475,48 @@
8475
8475
  }
8476
8476
  },
8477
8477
  "types": {
8478
+ "rds-database-running-scheduler.Notification": {
8479
+ "assembly": "rds-database-running-scheduler",
8480
+ "datatype": true,
8481
+ "docs": {
8482
+ "remarks": "Omit a channel (or the whole object) to disable that channel.\nAdditional channels can be added here in the future without changing top-level props.",
8483
+ "stability": "stable",
8484
+ "summary": "Notification channel configuration for the scheduler workflow."
8485
+ },
8486
+ "fqn": "rds-database-running-scheduler.Notification",
8487
+ "kind": "interface",
8488
+ "locationInModule": {
8489
+ "filename": "src/constructs/rds-database-running-scheduler.ts",
8490
+ "line": 49
8491
+ },
8492
+ "name": "Notification",
8493
+ "properties": [
8494
+ {
8495
+ "abstract": true,
8496
+ "docs": {
8497
+ "remarks": "Presence enables Slack.",
8498
+ "stability": "stable",
8499
+ "summary": "Optional Slack notification settings."
8500
+ },
8501
+ "immutable": true,
8502
+ "locationInModule": {
8503
+ "filename": "src/constructs/rds-database-running-scheduler.ts",
8504
+ "line": 51
8505
+ },
8506
+ "name": "slack",
8507
+ "optional": true,
8508
+ "type": {
8509
+ "fqn": "rds-database-running-scheduler.SlackNotification"
8510
+ }
8511
+ }
8512
+ ],
8513
+ "symbolId": "src/constructs/rds-database-running-scheduler:Notification"
8514
+ },
8478
8515
  "rds-database-running-scheduler.RDSDatabaseRunningScheduleStack": {
8479
8516
  "assembly": "rds-database-running-scheduler",
8480
8517
  "base": "aws-cdk-lib.Stack",
8481
8518
  "docs": {
8482
- "remarks": "Delegates resource discovery, cluster-priority deduplication, and start/stop\nexecution to {@link RDSDatabaseRunningScheduler}.",
8519
+ "remarks": "Delegates resource discovery, cluster-priority deduplication, start/stop\nexecution, and optional Slack notifications to {@link RDSDatabaseRunningScheduler}.",
8483
8520
  "stability": "stable",
8484
8521
  "summary": "CDK stack that provisions scheduled start/stop control for tagged RDS resources in the deployment account."
8485
8522
  },
@@ -8491,7 +8528,7 @@
8491
8528
  },
8492
8529
  "locationInModule": {
8493
8530
  "filename": "src/stacks/rds-database-running-schedule-stack.ts",
8494
- "line": 36
8531
+ "line": 40
8495
8532
  },
8496
8533
  "parameters": [
8497
8534
  {
@@ -8514,7 +8551,7 @@
8514
8551
  },
8515
8552
  {
8516
8553
  "docs": {
8517
- "summary": "Stack configuration."
8554
+ "summary": "Stack configuration, including optional notification channels."
8518
8555
  },
8519
8556
  "name": "props",
8520
8557
  "type": {
@@ -8526,7 +8563,7 @@
8526
8563
  "kind": "class",
8527
8564
  "locationInModule": {
8528
8565
  "filename": "src/stacks/rds-database-running-schedule-stack.ts",
8529
- "line": 28
8566
+ "line": 32
8530
8567
  },
8531
8568
  "name": "RDSDatabaseRunningScheduleStack",
8532
8569
  "symbolId": "src/stacks/rds-database-running-schedule-stack:RDSDatabaseRunningScheduleStack"
@@ -8553,49 +8590,52 @@
8553
8590
  "abstract": true,
8554
8591
  "docs": {
8555
8592
  "stability": "stable",
8556
- "summary": "Secret references required by the scheduler construct."
8593
+ "summary": "Tag filter used to select target RDS resources."
8557
8594
  },
8558
8595
  "immutable": true,
8559
8596
  "locationInModule": {
8560
8597
  "filename": "src/stacks/rds-database-running-schedule-stack.ts",
8561
- "line": 12
8598
+ "line": 10
8562
8599
  },
8563
- "name": "secrets",
8600
+ "name": "targetResource",
8564
8601
  "type": {
8565
- "fqn": "rds-database-running-scheduler.Secrets"
8602
+ "fqn": "rds-database-running-scheduler.TargetResource"
8566
8603
  }
8567
8604
  },
8568
8605
  {
8569
8606
  "abstract": true,
8570
8607
  "docs": {
8608
+ "remarks": "Default: `true`.",
8571
8609
  "stability": "stable",
8572
- "summary": "Tag filter used to select target RDS resources."
8610
+ "summary": "Enables or disables both start and stop schedules."
8573
8611
  },
8574
8612
  "immutable": true,
8575
8613
  "locationInModule": {
8576
8614
  "filename": "src/stacks/rds-database-running-schedule-stack.ts",
8577
- "line": 10
8615
+ "line": 18
8578
8616
  },
8579
- "name": "targetResource",
8617
+ "name": "enableScheduling",
8618
+ "optional": true,
8580
8619
  "type": {
8581
- "fqn": "rds-database-running-scheduler.TargetResource"
8620
+ "primitive": "boolean"
8582
8621
  }
8583
8622
  },
8584
8623
  {
8585
8624
  "abstract": true,
8586
8625
  "docs": {
8626
+ "remarks": "Set `notification.slack` to enable Slack; omit it to skip secret lookup,\nSlack API calls, and related IAM grants.",
8587
8627
  "stability": "stable",
8588
- "summary": "Enables or disables schedule creation."
8628
+ "summary": "Optional notification channels."
8589
8629
  },
8590
8630
  "immutable": true,
8591
8631
  "locationInModule": {
8592
8632
  "filename": "src/stacks/rds-database-running-schedule-stack.ts",
8593
- "line": 14
8633
+ "line": 16
8594
8634
  },
8595
- "name": "enableScheduling",
8635
+ "name": "notification",
8596
8636
  "optional": true,
8597
8637
  "type": {
8598
- "primitive": "boolean"
8638
+ "fqn": "rds-database-running-scheduler.Notification"
8599
8639
  }
8600
8640
  },
8601
8641
  {
@@ -8607,7 +8647,7 @@
8607
8647
  "immutable": true,
8608
8648
  "locationInModule": {
8609
8649
  "filename": "src/stacks/rds-database-running-schedule-stack.ts",
8610
- "line": 18
8650
+ "line": 22
8611
8651
  },
8612
8652
  "name": "startSchedule",
8613
8653
  "optional": true,
@@ -8624,7 +8664,7 @@
8624
8664
  "immutable": true,
8625
8665
  "locationInModule": {
8626
8666
  "filename": "src/stacks/rds-database-running-schedule-stack.ts",
8627
- "line": 16
8667
+ "line": 20
8628
8668
  },
8629
8669
  "name": "stopSchedule",
8630
8670
  "optional": true,
@@ -8639,7 +8679,7 @@
8639
8679
  "assembly": "rds-database-running-scheduler",
8640
8680
  "base": "constructs.Construct",
8641
8681
  "docs": {
8642
- "remarks": "The Lambda discovers matching resources account-wide via the Resource Groups\nTagging API, deduplicates Aurora cluster member instances when the parent\ncluster is also tagged, and controls each remaining resource using the\nregion encoded in its ARN.",
8682
+ "remarks": "The Lambda discovers matching resources account-wide via the Resource Groups\nTagging API, deduplicates Aurora cluster member instances when the parent\ncluster is also tagged, and controls each remaining resource using the\nregion encoded in its ARN. When `notification.slack` is set, the Lambda\nposts progress and results to Slack; otherwise Secrets Manager lookup,\nSlack API calls, and related IAM grants are skipped.",
8643
8683
  "stability": "stable",
8644
8684
  "summary": "CDK construct that provisions a durable Lambda workflow and EventBridge schedules to start/stop tagged RDS databases and clusters."
8645
8685
  },
@@ -8651,7 +8691,7 @@
8651
8691
  },
8652
8692
  "locationInModule": {
8653
8693
  "filename": "src/constructs/rds-database-running-scheduler.ts",
8654
- "line": 76
8694
+ "line": 93
8655
8695
  },
8656
8696
  "parameters": [
8657
8697
  {
@@ -8674,7 +8714,7 @@
8674
8714
  },
8675
8715
  {
8676
8716
  "docs": {
8677
- "summary": "Scheduler configuration."
8717
+ "summary": "Scheduler configuration, including optional notification channels."
8678
8718
  },
8679
8719
  "name": "props",
8680
8720
  "type": {
@@ -8686,7 +8726,7 @@
8686
8726
  "kind": "class",
8687
8727
  "locationInModule": {
8688
8728
  "filename": "src/constructs/rds-database-running-scheduler.ts",
8689
- "line": 68
8729
+ "line": 85
8690
8730
  },
8691
8731
  "name": "RDSDatabaseRunningScheduler",
8692
8732
  "symbolId": "src/constructs/rds-database-running-scheduler:RDSDatabaseRunningScheduler"
@@ -8702,7 +8742,7 @@
8702
8742
  "kind": "interface",
8703
8743
  "locationInModule": {
8704
8744
  "filename": "src/constructs/rds-database-running-scheduler.ts",
8705
- "line": 46
8745
+ "line": 57
8706
8746
  },
8707
8747
  "name": "RDSDatabaseRunningSchedulerProps",
8708
8748
  "properties": [
@@ -8710,49 +8750,52 @@
8710
8750
  "abstract": true,
8711
8751
  "docs": {
8712
8752
  "stability": "stable",
8713
- "summary": "Secret references used by the Lambda workflow."
8753
+ "summary": "Tag filter to select RDS instances and clusters."
8714
8754
  },
8715
8755
  "immutable": true,
8716
8756
  "locationInModule": {
8717
8757
  "filename": "src/constructs/rds-database-running-scheduler.ts",
8718
- "line": 52
8758
+ "line": 59
8719
8759
  },
8720
- "name": "secrets",
8760
+ "name": "targetResource",
8721
8761
  "type": {
8722
- "fqn": "rds-database-running-scheduler.Secrets"
8762
+ "fqn": "rds-database-running-scheduler.TargetResource"
8723
8763
  }
8724
8764
  },
8725
8765
  {
8726
8766
  "abstract": true,
8727
8767
  "docs": {
8768
+ "remarks": "Default: `true`.",
8728
8769
  "stability": "stable",
8729
- "summary": "Tag filter to select RDS instances and clusters."
8770
+ "summary": "Enables or disables both start and stop schedules."
8730
8771
  },
8731
8772
  "immutable": true,
8732
8773
  "locationInModule": {
8733
8774
  "filename": "src/constructs/rds-database-running-scheduler.ts",
8734
- "line": 48
8775
+ "line": 61
8735
8776
  },
8736
- "name": "targetResource",
8777
+ "name": "enableScheduling",
8778
+ "optional": true,
8737
8779
  "type": {
8738
- "fqn": "rds-database-running-scheduler.TargetResource"
8780
+ "primitive": "boolean"
8739
8781
  }
8740
8782
  },
8741
8783
  {
8742
8784
  "abstract": true,
8743
8785
  "docs": {
8786
+ "remarks": "Set `notification.slack` to enable Slack; omit it to skip secret lookup,\nSlack API calls, and related IAM grants.",
8744
8787
  "stability": "stable",
8745
- "summary": "Enables or disables both start and stop schedules."
8788
+ "summary": "Optional notification channels."
8746
8789
  },
8747
8790
  "immutable": true,
8748
8791
  "locationInModule": {
8749
8792
  "filename": "src/constructs/rds-database-running-scheduler.ts",
8750
- "line": 50
8793
+ "line": 67
8751
8794
  },
8752
- "name": "enableScheduling",
8795
+ "name": "notification",
8753
8796
  "optional": true,
8754
8797
  "type": {
8755
- "primitive": "boolean"
8798
+ "fqn": "rds-database-running-scheduler.Notification"
8756
8799
  }
8757
8800
  },
8758
8801
  {
@@ -8764,7 +8807,7 @@
8764
8807
  "immutable": true,
8765
8808
  "locationInModule": {
8766
8809
  "filename": "src/constructs/rds-database-running-scheduler.ts",
8767
- "line": 56
8810
+ "line": 71
8768
8811
  },
8769
8812
  "name": "startSchedule",
8770
8813
  "optional": true,
@@ -8781,7 +8824,7 @@
8781
8824
  "immutable": true,
8782
8825
  "locationInModule": {
8783
8826
  "filename": "src/constructs/rds-database-running-scheduler.ts",
8784
- "line": 54
8827
+ "line": 69
8785
8828
  },
8786
8829
  "name": "stopSchedule",
8787
8830
  "optional": true,
@@ -8877,39 +8920,40 @@
8877
8920
  ],
8878
8921
  "symbolId": "src/constructs/rds-database-running-scheduler:Schedule"
8879
8922
  },
8880
- "rds-database-running-scheduler.Secrets": {
8923
+ "rds-database-running-scheduler.SlackNotification": {
8881
8924
  "assembly": "rds-database-running-scheduler",
8882
8925
  "datatype": true,
8883
8926
  "docs": {
8927
+ "remarks": "Providing this object (via `notification.slack`) enables Slack notifications.",
8884
8928
  "stability": "stable",
8885
- "summary": "Secret names required by the scheduler workflow."
8929
+ "summary": "Slack notification settings."
8886
8930
  },
8887
- "fqn": "rds-database-running-scheduler.Secrets",
8931
+ "fqn": "rds-database-running-scheduler.SlackNotification",
8888
8932
  "kind": "interface",
8889
8933
  "locationInModule": {
8890
8934
  "filename": "src/constructs/rds-database-running-scheduler.ts",
8891
- "line": 38
8935
+ "line": 39
8892
8936
  },
8893
- "name": "Secrets",
8937
+ "name": "SlackNotification",
8894
8938
  "properties": [
8895
8939
  {
8896
8940
  "abstract": true,
8897
8941
  "docs": {
8898
8942
  "stability": "stable",
8899
- "summary": "Name of the Slack API secret in AWS Secrets Manager."
8943
+ "summary": "Name of the Slack API secret in AWS Secrets Manager (`token` and `channel`)."
8900
8944
  },
8901
8945
  "immutable": true,
8902
8946
  "locationInModule": {
8903
8947
  "filename": "src/constructs/rds-database-running-scheduler.ts",
8904
- "line": 40
8948
+ "line": 41
8905
8949
  },
8906
- "name": "slackSecretName",
8950
+ "name": "secretName",
8907
8951
  "type": {
8908
8952
  "primitive": "string"
8909
8953
  }
8910
8954
  }
8911
8955
  ],
8912
- "symbolId": "src/constructs/rds-database-running-scheduler:Secrets"
8956
+ "symbolId": "src/constructs/rds-database-running-scheduler:SlackNotification"
8913
8957
  },
8914
8958
  "rds-database-running-scheduler.TargetResource": {
8915
8959
  "assembly": "rds-database-running-scheduler",
@@ -8967,6 +9011,6 @@
8967
9011
  "symbolId": "src/constructs/rds-database-running-scheduler:TargetResource"
8968
9012
  }
8969
9013
  },
8970
- "version": "0.2.8",
8971
- "fingerprint": "mnvGVZ3wZ54TtqjclvDx66gH/ym3GbHlbLa0qF2YEKg="
9014
+ "version": "0.3.1",
9015
+ "fingerprint": "Txhdk5juVqrMQoCOGKBeWuPPUF0gUfM4WLnO0QAYEYo="
8972
9016
  }