rds-database-running-scheduler 0.4.4 → 0.5.0
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/.editorconfig +12 -0
- package/.jsii +258 -159
- package/API.md +244 -59
- package/README.md +54 -27
- package/assets/funcs/running-schedule.lambda/index.js +215 -54
- package/assets/funcs/running-schedule.lambda/index.js.map +4 -4
- package/lib/funcs/core/running-schedule-errors.d.ts +27 -0
- package/lib/funcs/core/running-schedule-errors.js +43 -0
- package/lib/funcs/core/running-schedule-targets.js +93 -0
- package/lib/funcs/core/running-schedule-wait.d.ts +96 -0
- package/lib/funcs/core/running-schedule-wait.js +140 -0
- package/lib/funcs/running-schedule.lambda.d.ts +10 -1
- package/lib/funcs/running-schedule.lambda.js +121 -59
- package/lib/index.d.ts +3 -4
- package/lib/index.js +4 -5
- package/lib/rds-database-running-schedule-stack.d.ts +29 -0
- package/lib/rds-database-running-schedule-stack.js +37 -0
- package/lib/rds-database-running-scheduler.d.ts +155 -0
- package/lib/rds-database-running-scheduler.js +303 -0
- package/lib/settings/consts.d.ts +15 -0
- package/lib/settings/consts.js +19 -0
- package/package.json +4 -3
- package/lib/constructs/rds-database-running-scheduler.d.ts +0 -89
- package/lib/constructs/rds-database-running-scheduler.js +0 -237
- package/lib/funcs/running-schedule-targets.js +0 -92
- package/lib/stacks/rds-database-running-schedule-stack.d.ts +0 -38
- package/lib/stacks/rds-database-running-schedule-stack.js +0 -35
- /package/lib/funcs/{running-schedule-targets.d.ts → core/running-schedule-targets.d.ts} +0 -0
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": "6.0.
|
|
8443
|
+
"jsiiVersion": "6.0.17 (build e6a458c)",
|
|
8444
8444
|
"keywords": [
|
|
8445
8445
|
"aurora",
|
|
8446
8446
|
"aws",
|
|
@@ -8463,7 +8463,7 @@
|
|
|
8463
8463
|
},
|
|
8464
8464
|
"name": "rds-database-running-scheduler",
|
|
8465
8465
|
"readme": {
|
|
8466
|
-
"markdown": "# RDS Database Running Scheduler (AWS CDK v2)\n\n[](https://github.com/gammarers-aws-cdk-constructs/rds-database-running-scheduler/blob/main/LICENSE)\n[](https://www.npmjs.com/package/rds-database-running-scheduler)\n[](https://github.com/gammarers-aws-cdk-constructs/rds-database-running-scheduler/actions/workflows/release.yml)\n[](https://github.com/gammarers-aws-cdk-constructs/rds-database-running-scheduler/releases)\n\n[](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.enable` (default `false`). 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.enable` to `true` and provide `secretName` to post schedule progress and per-resource results to Slack via Secrets Manager. Leave `enable` unset (default `false`), set it to `false`, or omit `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: { enable: true, 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 set `notification.slack.enable` to `false`):\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: { enable: true, 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 Slack is enabled, 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.enable` to `true` to send Slack messages. |\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 | Slack settings. Omit, or set `enable` to `false`, to disable Slack. |\n\n### SlackNotification\n\n| Field | Type | Required | Description |\n|-------|------|----------|-------------|\n| `enable` | `boolean` | No | Enable Slack notifications. Default: `false`. When `false`, secret lookup, Slack API calls, and IAM grants are skipped. |\n| `secretName` | `string` | No | Secrets Manager secret name containing Slack `token` and `channel`. Required when `enable` is `true`. |\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. Start/stop IAM is scoped to DB instance and cluster ARNs in the account and to `aws:ResourceTag` matching `targetResource`. Resource Groups Tagging API access is required for resource discovery. Secrets Manager access is required only when Slack notifications are enabled.\n\n## License\n\nThis project is licensed under the Apache-2.0 License.\n"
|
|
8466
|
+
"markdown": "# RDS Database Running Scheduler (CDK v2)\n\n[](https://www.npmjs.com/package/rds-database-running-scheduler)\n[](https://www.npmjs.com/package/rds-database-running-scheduler)\n[](https://www.npmjs.com/package/rds-database-running-scheduler)\n[](https://github.com/gammarers-aws-cdk-constructs/rds-database-running-scheduler/actions/workflows/build.yml)\n\n[](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.\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 waits until they reach the desired state or the per-resource wait limit.\n- **Configurable wait**: Set `resourceWait.intervalSeconds` and `resourceWait.maxSeconds` to control how often each resource is checked and how long the function waits before timing out. Defaults are 60 seconds and 1800 seconds.\n- **Optional Slack notifications**: Set `notification.slack.enable` to `SlackNotificationEnable.ENABLED` and provide `secretName` to post schedule progress and per-resource results to Slack via Secrets Manager. Leave `enable` unset (default `SlackNotificationEnable.DISABLED`), set it to `DISABLED`, or omit `notification.slack` to skip secret lookup, Slack API calls, and related IAM grants. When Slack is enabled, a timeout posts a message unless `notification.slack.notifyOnWaitTimeout` is `WaitTimeoutNotification.DISABLED`.\n- **Supported resources**: RDS DB instances and RDS Aurora clusters.\n\n## How it works\n\nEventBridge Scheduler runs a start cron and a stop cron. Each one invokes a durable Lambda function.\n\nThe function searches the deployment account for RDS DB instances and Aurora clusters that match `targetResource`. When both a cluster and its member instances match, only the cluster is controlled. Each remaining resource is started or stopped in the region taken from its ARN.\n\nThe function then checks that resource every `resourceWait.intervalSeconds` until it is available or stopped, or until `resourceWait.maxSeconds` elapses. When Slack is enabled, it posts progress and, by default, a message when the wait limit is exceeded.\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### pnpm\n\n```bash\npnpm 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 { RDSDatabaseRunningScheduler } from 'rds-database-running-scheduler';\n\nnew RDSDatabaseRunningScheduler(scope, 'RDSDatabaseRunningScheduler', {\n targetResource: { tagKey: 'WorkHoursRunning', tagValues: ['YES'] },\n});\n```\n\nThis uses the default schedules: start at 07:50 UTC and stop at 19:05 UTC, Monday–Friday. Slack notifications are off.\n\nWith Slack notifications and a custom schedule:\n\n```typescript\nimport { TimeZone } from 'aws-cdk-lib';\nimport { RDSDatabaseRunningScheduler, SchedulingEnable, SlackNotificationEnable } from 'rds-database-running-scheduler';\n\nnew RDSDatabaseRunningScheduler(scope, 'RDSDatabaseRunningScheduler', {\n targetResource: { tagKey: 'WorkHoursRunning', tagValues: ['YES'] },\n notification: { slack: { enable: SlackNotificationEnable.ENABLED, secretName: 'example/slack/webhook' } },\n enableScheduling: SchedulingEnable.ENABLED,\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 scheduler props.\n\n```typescript\nimport { App, TimeZone } from 'aws-cdk-lib';\nimport { RDSDatabaseRunningScheduleStack, SchedulingEnable, SlackNotificationEnable } from 'rds-database-running-scheduler';\n\nconst app = new App();\n\nnew RDSDatabaseRunningScheduleStack(app, 'RDSDatabaseRunningScheduleStack', {\n targetResource: { tagKey: 'WorkHoursRunning', tagValues: ['YES'] },\n notification: { slack: { enable: SlackNotificationEnable.ENABLED, secretName: 'example/slack/webhook' } },\n enableScheduling: SchedulingEnable.ENABLED,\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 Slack is enabled, 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.enable` to `SlackNotificationEnable.ENABLED` to send Slack messages. |\n| `resourceWait` | `ResourceWait` | No | Per-resource status-check interval and maximum wait. Default: 60-second interval, 1800-second maximum. |\n| `enableScheduling` | `SchedulingEnable` | No | Whether start and stop schedules are enabled. `ENABLED` or `DISABLED`. Default: `ENABLED`. |\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 | Slack settings. Omit, or set `enable` to `SlackNotificationEnable.DISABLED`, to disable Slack. |\n\n### SlackNotification\n\n| Field | Type | Required | Description |\n|-------|------|----------|-------------|\n| `enable` | `SlackNotificationEnable` | No | Enable Slack notifications. `ENABLED` or `DISABLED`. Default: `DISABLED`. When `DISABLED`, secret lookup, Slack API calls, and IAM grants are skipped. |\n| `secretName` | `string` | No | Secrets Manager secret name containing Slack `token` and `channel`. Required when `enable` is `ENABLED`. |\n| `notifyOnWaitTimeout` | `WaitTimeoutNotification` | No | Post a Slack message when a resource exceeds `resourceWait.maxSeconds`. `ENABLED` or `DISABLED`. Applies only when `enable` is `ENABLED`. Default: `ENABLED`. |\n\n### ResourceWait\n\n| Field | Type | Required | Description |\n|-------|------|----------|-------------|\n| `intervalSeconds` | `number` | No | Seconds between status checks. Positive integer. Default: `60`. |\n| `maxSeconds` | `number` | No | Maximum accumulated wait seconds for one resource. Positive integer, greater than or equal to `intervalSeconds`, and at most `6900`. Default: `1800`. |\n\n## API\n\nSee [API.md](./API.md).\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. Start/stop IAM is scoped to DB instance and cluster ARNs in the account and to `aws:ResourceTag` matching `targetResource`. Resource Groups Tagging API access is required for resource discovery. Secrets Manager access is required only when Slack notifications are enabled.\n\n## License\n\nThis project is licensed under the Apache-2.0 License.\n"
|
|
8467
8467
|
},
|
|
8468
8468
|
"repository": {
|
|
8469
8469
|
"type": "git",
|
|
@@ -8487,22 +8487,22 @@
|
|
|
8487
8487
|
"fqn": "rds-database-running-scheduler.Notification",
|
|
8488
8488
|
"kind": "interface",
|
|
8489
8489
|
"locationInModule": {
|
|
8490
|
-
"filename": "src/
|
|
8491
|
-
"line":
|
|
8490
|
+
"filename": "src/rds-database-running-scheduler.ts",
|
|
8491
|
+
"line": 100
|
|
8492
8492
|
},
|
|
8493
8493
|
"name": "Notification",
|
|
8494
8494
|
"properties": [
|
|
8495
8495
|
{
|
|
8496
8496
|
"abstract": true,
|
|
8497
8497
|
"docs": {
|
|
8498
|
-
"remarks": "Set `slack.enable` to
|
|
8498
|
+
"remarks": "Set `slack.enable` to {@link SlackNotificationEnable.ENABLED} to send messages.",
|
|
8499
8499
|
"stability": "stable",
|
|
8500
8500
|
"summary": "Optional Slack notification settings."
|
|
8501
8501
|
},
|
|
8502
8502
|
"immutable": true,
|
|
8503
8503
|
"locationInModule": {
|
|
8504
|
-
"filename": "src/
|
|
8505
|
-
"line":
|
|
8504
|
+
"filename": "src/rds-database-running-scheduler.ts",
|
|
8505
|
+
"line": 105
|
|
8506
8506
|
},
|
|
8507
8507
|
"name": "slack",
|
|
8508
8508
|
"optional": true,
|
|
@@ -8511,13 +8511,13 @@
|
|
|
8511
8511
|
}
|
|
8512
8512
|
}
|
|
8513
8513
|
],
|
|
8514
|
-
"symbolId": "src/
|
|
8514
|
+
"symbolId": "src/rds-database-running-scheduler:Notification"
|
|
8515
8515
|
},
|
|
8516
8516
|
"rds-database-running-scheduler.RDSDatabaseRunningScheduleStack": {
|
|
8517
8517
|
"assembly": "rds-database-running-scheduler",
|
|
8518
8518
|
"base": "aws-cdk-lib.Stack",
|
|
8519
8519
|
"docs": {
|
|
8520
|
-
"remarks": "Delegates resource discovery, cluster-priority deduplication, start/stop\nexecution, and optional Slack notifications to
|
|
8520
|
+
"remarks": "Delegates resource discovery, cluster-priority deduplication, start/stop\nexecution, per-resource wait limits, and optional Slack notifications to\n{@link RDSDatabaseRunningScheduler}.",
|
|
8521
8521
|
"stability": "stable",
|
|
8522
8522
|
"summary": "CDK stack that provisions scheduled start/stop control for tagged RDS resources in the deployment account."
|
|
8523
8523
|
},
|
|
@@ -8528,8 +8528,8 @@
|
|
|
8528
8528
|
"summary": "Creates the stack and instantiates the scheduler construct."
|
|
8529
8529
|
},
|
|
8530
8530
|
"locationInModule": {
|
|
8531
|
-
"filename": "src/
|
|
8532
|
-
"line":
|
|
8531
|
+
"filename": "src/rds-database-running-schedule-stack.ts",
|
|
8532
|
+
"line": 32
|
|
8533
8533
|
},
|
|
8534
8534
|
"parameters": [
|
|
8535
8535
|
{
|
|
@@ -8563,124 +8563,38 @@
|
|
|
8563
8563
|
},
|
|
8564
8564
|
"kind": "class",
|
|
8565
8565
|
"locationInModule": {
|
|
8566
|
-
"filename": "src/
|
|
8567
|
-
"line":
|
|
8566
|
+
"filename": "src/rds-database-running-schedule-stack.ts",
|
|
8567
|
+
"line": 24
|
|
8568
8568
|
},
|
|
8569
8569
|
"name": "RDSDatabaseRunningScheduleStack",
|
|
8570
|
-
"symbolId": "src/
|
|
8570
|
+
"symbolId": "src/rds-database-running-schedule-stack:RDSDatabaseRunningScheduleStack"
|
|
8571
8571
|
},
|
|
8572
8572
|
"rds-database-running-scheduler.RDSDatabaseRunningScheduleStackProps": {
|
|
8573
8573
|
"assembly": "rds-database-running-scheduler",
|
|
8574
8574
|
"datatype": true,
|
|
8575
8575
|
"docs": {
|
|
8576
|
+
"remarks": "Scheduler fields match {@link RDSDatabaseRunningSchedulerProps}.\nThe remaining fields are the standard stack settings from `StackProps`, such as `env`.",
|
|
8576
8577
|
"stability": "stable",
|
|
8577
8578
|
"summary": "Properties for the RDS database running schedule stack."
|
|
8578
8579
|
},
|
|
8579
8580
|
"fqn": "rds-database-running-scheduler.RDSDatabaseRunningScheduleStackProps",
|
|
8580
8581
|
"interfaces": [
|
|
8582
|
+
"rds-database-running-scheduler.RDSDatabaseRunningSchedulerProps",
|
|
8581
8583
|
"aws-cdk-lib.StackProps"
|
|
8582
8584
|
],
|
|
8583
8585
|
"kind": "interface",
|
|
8584
8586
|
"locationInModule": {
|
|
8585
|
-
"filename": "src/
|
|
8586
|
-
"line":
|
|
8587
|
+
"filename": "src/rds-database-running-schedule-stack.ts",
|
|
8588
|
+
"line": 14
|
|
8587
8589
|
},
|
|
8588
8590
|
"name": "RDSDatabaseRunningScheduleStackProps",
|
|
8589
|
-
"
|
|
8590
|
-
{
|
|
8591
|
-
"abstract": true,
|
|
8592
|
-
"docs": {
|
|
8593
|
-
"stability": "stable",
|
|
8594
|
-
"summary": "Tag filter used to select target RDS resources."
|
|
8595
|
-
},
|
|
8596
|
-
"immutable": true,
|
|
8597
|
-
"locationInModule": {
|
|
8598
|
-
"filename": "src/stacks/rds-database-running-schedule-stack.ts",
|
|
8599
|
-
"line": 10
|
|
8600
|
-
},
|
|
8601
|
-
"name": "targetResource",
|
|
8602
|
-
"type": {
|
|
8603
|
-
"fqn": "rds-database-running-scheduler.TargetResource"
|
|
8604
|
-
}
|
|
8605
|
-
},
|
|
8606
|
-
{
|
|
8607
|
-
"abstract": true,
|
|
8608
|
-
"docs": {
|
|
8609
|
-
"remarks": "Default: `true`.",
|
|
8610
|
-
"stability": "stable",
|
|
8611
|
-
"summary": "Enables or disables both start and stop schedules."
|
|
8612
|
-
},
|
|
8613
|
-
"immutable": true,
|
|
8614
|
-
"locationInModule": {
|
|
8615
|
-
"filename": "src/stacks/rds-database-running-schedule-stack.ts",
|
|
8616
|
-
"line": 17
|
|
8617
|
-
},
|
|
8618
|
-
"name": "enableScheduling",
|
|
8619
|
-
"optional": true,
|
|
8620
|
-
"type": {
|
|
8621
|
-
"primitive": "boolean"
|
|
8622
|
-
}
|
|
8623
|
-
},
|
|
8624
|
-
{
|
|
8625
|
-
"abstract": true,
|
|
8626
|
-
"docs": {
|
|
8627
|
-
"remarks": "Set `notification.slack.enable` to `true` and provide `secretName` to send Slack messages.",
|
|
8628
|
-
"stability": "stable",
|
|
8629
|
-
"summary": "Optional notification channels."
|
|
8630
|
-
},
|
|
8631
|
-
"immutable": true,
|
|
8632
|
-
"locationInModule": {
|
|
8633
|
-
"filename": "src/stacks/rds-database-running-schedule-stack.ts",
|
|
8634
|
-
"line": 15
|
|
8635
|
-
},
|
|
8636
|
-
"name": "notification",
|
|
8637
|
-
"optional": true,
|
|
8638
|
-
"type": {
|
|
8639
|
-
"fqn": "rds-database-running-scheduler.Notification"
|
|
8640
|
-
}
|
|
8641
|
-
},
|
|
8642
|
-
{
|
|
8643
|
-
"abstract": true,
|
|
8644
|
-
"docs": {
|
|
8645
|
-
"stability": "stable",
|
|
8646
|
-
"summary": "Optional cron configuration for start operations."
|
|
8647
|
-
},
|
|
8648
|
-
"immutable": true,
|
|
8649
|
-
"locationInModule": {
|
|
8650
|
-
"filename": "src/stacks/rds-database-running-schedule-stack.ts",
|
|
8651
|
-
"line": 21
|
|
8652
|
-
},
|
|
8653
|
-
"name": "startSchedule",
|
|
8654
|
-
"optional": true,
|
|
8655
|
-
"type": {
|
|
8656
|
-
"fqn": "rds-database-running-scheduler.Schedule"
|
|
8657
|
-
}
|
|
8658
|
-
},
|
|
8659
|
-
{
|
|
8660
|
-
"abstract": true,
|
|
8661
|
-
"docs": {
|
|
8662
|
-
"stability": "stable",
|
|
8663
|
-
"summary": "Optional cron configuration for stop operations."
|
|
8664
|
-
},
|
|
8665
|
-
"immutable": true,
|
|
8666
|
-
"locationInModule": {
|
|
8667
|
-
"filename": "src/stacks/rds-database-running-schedule-stack.ts",
|
|
8668
|
-
"line": 19
|
|
8669
|
-
},
|
|
8670
|
-
"name": "stopSchedule",
|
|
8671
|
-
"optional": true,
|
|
8672
|
-
"type": {
|
|
8673
|
-
"fqn": "rds-database-running-scheduler.Schedule"
|
|
8674
|
-
}
|
|
8675
|
-
}
|
|
8676
|
-
],
|
|
8677
|
-
"symbolId": "src/stacks/rds-database-running-schedule-stack:RDSDatabaseRunningScheduleStackProps"
|
|
8591
|
+
"symbolId": "src/rds-database-running-schedule-stack:RDSDatabaseRunningScheduleStackProps"
|
|
8678
8592
|
},
|
|
8679
8593
|
"rds-database-running-scheduler.RDSDatabaseRunningScheduler": {
|
|
8680
8594
|
"assembly": "rds-database-running-scheduler",
|
|
8681
8595
|
"base": "constructs.Construct",
|
|
8682
8596
|
"docs": {
|
|
8683
|
-
"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 Slack is
|
|
8597
|
+
"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. Each resource is checked on a configurable interval\nuntil it reaches a stable state or the per-resource wait limit. When Slack is\nenabled, the Lambda posts progress and results to Slack, and can post a timeout\nmessage when the wait limit is exceeded. Otherwise Secrets Manager lookup, Slack\nAPI calls, and related IAM grants are skipped.",
|
|
8684
8598
|
"stability": "stable",
|
|
8685
8599
|
"summary": "CDK construct that provisions a durable Lambda workflow and EventBridge schedules to start/stop tagged RDS databases and clusters."
|
|
8686
8600
|
},
|
|
@@ -8691,8 +8605,8 @@
|
|
|
8691
8605
|
"summary": "Creates a scheduler for tagged RDS resources."
|
|
8692
8606
|
},
|
|
8693
8607
|
"locationInModule": {
|
|
8694
|
-
"filename": "src/
|
|
8695
|
-
"line":
|
|
8608
|
+
"filename": "src/rds-database-running-scheduler.ts",
|
|
8609
|
+
"line": 282
|
|
8696
8610
|
},
|
|
8697
8611
|
"parameters": [
|
|
8698
8612
|
{
|
|
@@ -8726,11 +8640,11 @@
|
|
|
8726
8640
|
},
|
|
8727
8641
|
"kind": "class",
|
|
8728
8642
|
"locationInModule": {
|
|
8729
|
-
"filename": "src/
|
|
8730
|
-
"line":
|
|
8643
|
+
"filename": "src/rds-database-running-scheduler.ts",
|
|
8644
|
+
"line": 274
|
|
8731
8645
|
},
|
|
8732
8646
|
"name": "RDSDatabaseRunningScheduler",
|
|
8733
|
-
"symbolId": "src/
|
|
8647
|
+
"symbolId": "src/rds-database-running-scheduler:RDSDatabaseRunningScheduler"
|
|
8734
8648
|
},
|
|
8735
8649
|
"rds-database-running-scheduler.RDSDatabaseRunningSchedulerProps": {
|
|
8736
8650
|
"assembly": "rds-database-running-scheduler",
|
|
@@ -8742,8 +8656,8 @@
|
|
|
8742
8656
|
"fqn": "rds-database-running-scheduler.RDSDatabaseRunningSchedulerProps",
|
|
8743
8657
|
"kind": "interface",
|
|
8744
8658
|
"locationInModule": {
|
|
8745
|
-
"filename": "src/
|
|
8746
|
-
"line":
|
|
8659
|
+
"filename": "src/rds-database-running-scheduler.ts",
|
|
8660
|
+
"line": 130
|
|
8747
8661
|
},
|
|
8748
8662
|
"name": "RDSDatabaseRunningSchedulerProps",
|
|
8749
8663
|
"properties": [
|
|
@@ -8755,8 +8669,8 @@
|
|
|
8755
8669
|
},
|
|
8756
8670
|
"immutable": true,
|
|
8757
8671
|
"locationInModule": {
|
|
8758
|
-
"filename": "src/
|
|
8759
|
-
"line":
|
|
8672
|
+
"filename": "src/rds-database-running-scheduler.ts",
|
|
8673
|
+
"line": 132
|
|
8760
8674
|
},
|
|
8761
8675
|
"name": "targetResource",
|
|
8762
8676
|
"type": {
|
|
@@ -8766,32 +8680,32 @@
|
|
|
8766
8680
|
{
|
|
8767
8681
|
"abstract": true,
|
|
8768
8682
|
"docs": {
|
|
8769
|
-
"
|
|
8683
|
+
"default": "SchedulingEnable.ENABLED",
|
|
8770
8684
|
"stability": "stable",
|
|
8771
8685
|
"summary": "Enables or disables both start and stop schedules."
|
|
8772
8686
|
},
|
|
8773
8687
|
"immutable": true,
|
|
8774
8688
|
"locationInModule": {
|
|
8775
|
-
"filename": "src/
|
|
8776
|
-
"line":
|
|
8689
|
+
"filename": "src/rds-database-running-scheduler.ts",
|
|
8690
|
+
"line": 137
|
|
8777
8691
|
},
|
|
8778
8692
|
"name": "enableScheduling",
|
|
8779
8693
|
"optional": true,
|
|
8780
8694
|
"type": {
|
|
8781
|
-
"
|
|
8695
|
+
"fqn": "rds-database-running-scheduler.SchedulingEnable"
|
|
8782
8696
|
}
|
|
8783
8697
|
},
|
|
8784
8698
|
{
|
|
8785
8699
|
"abstract": true,
|
|
8786
8700
|
"docs": {
|
|
8787
|
-
"remarks": "Set `notification.slack.enable` to
|
|
8701
|
+
"remarks": "Set `notification.slack.enable` to {@link SlackNotificationEnable.ENABLED}\nand provide `secretName` to send Slack messages.",
|
|
8788
8702
|
"stability": "stable",
|
|
8789
8703
|
"summary": "Optional notification channels."
|
|
8790
8704
|
},
|
|
8791
8705
|
"immutable": true,
|
|
8792
8706
|
"locationInModule": {
|
|
8793
|
-
"filename": "src/
|
|
8794
|
-
"line":
|
|
8707
|
+
"filename": "src/rds-database-running-scheduler.ts",
|
|
8708
|
+
"line": 143
|
|
8795
8709
|
},
|
|
8796
8710
|
"name": "notification",
|
|
8797
8711
|
"optional": true,
|
|
@@ -8799,6 +8713,24 @@
|
|
|
8799
8713
|
"fqn": "rds-database-running-scheduler.Notification"
|
|
8800
8714
|
}
|
|
8801
8715
|
},
|
|
8716
|
+
{
|
|
8717
|
+
"abstract": true,
|
|
8718
|
+
"docs": {
|
|
8719
|
+
"remarks": "Defaults to a 60-second interval and a 1800-second maximum.",
|
|
8720
|
+
"stability": "stable",
|
|
8721
|
+
"summary": "Optional per-resource wait settings."
|
|
8722
|
+
},
|
|
8723
|
+
"immutable": true,
|
|
8724
|
+
"locationInModule": {
|
|
8725
|
+
"filename": "src/rds-database-running-scheduler.ts",
|
|
8726
|
+
"line": 148
|
|
8727
|
+
},
|
|
8728
|
+
"name": "resourceWait",
|
|
8729
|
+
"optional": true,
|
|
8730
|
+
"type": {
|
|
8731
|
+
"fqn": "rds-database-running-scheduler.ResourceWait"
|
|
8732
|
+
}
|
|
8733
|
+
},
|
|
8802
8734
|
{
|
|
8803
8735
|
"abstract": true,
|
|
8804
8736
|
"docs": {
|
|
@@ -8807,8 +8739,8 @@
|
|
|
8807
8739
|
},
|
|
8808
8740
|
"immutable": true,
|
|
8809
8741
|
"locationInModule": {
|
|
8810
|
-
"filename": "src/
|
|
8811
|
-
"line":
|
|
8742
|
+
"filename": "src/rds-database-running-scheduler.ts",
|
|
8743
|
+
"line": 152
|
|
8812
8744
|
},
|
|
8813
8745
|
"name": "startSchedule",
|
|
8814
8746
|
"optional": true,
|
|
@@ -8824,8 +8756,8 @@
|
|
|
8824
8756
|
},
|
|
8825
8757
|
"immutable": true,
|
|
8826
8758
|
"locationInModule": {
|
|
8827
|
-
"filename": "src/
|
|
8828
|
-
"line":
|
|
8759
|
+
"filename": "src/rds-database-running-scheduler.ts",
|
|
8760
|
+
"line": 150
|
|
8829
8761
|
},
|
|
8830
8762
|
"name": "stopSchedule",
|
|
8831
8763
|
"optional": true,
|
|
@@ -8834,7 +8766,63 @@
|
|
|
8834
8766
|
}
|
|
8835
8767
|
}
|
|
8836
8768
|
],
|
|
8837
|
-
"symbolId": "src/
|
|
8769
|
+
"symbolId": "src/rds-database-running-scheduler:RDSDatabaseRunningSchedulerProps"
|
|
8770
|
+
},
|
|
8771
|
+
"rds-database-running-scheduler.ResourceWait": {
|
|
8772
|
+
"assembly": "rds-database-running-scheduler",
|
|
8773
|
+
"datatype": true,
|
|
8774
|
+
"docs": {
|
|
8775
|
+
"stability": "stable",
|
|
8776
|
+
"summary": "Per-resource wait settings for start/stop status checks."
|
|
8777
|
+
},
|
|
8778
|
+
"fqn": "rds-database-running-scheduler.ResourceWait",
|
|
8779
|
+
"kind": "interface",
|
|
8780
|
+
"locationInModule": {
|
|
8781
|
+
"filename": "src/rds-database-running-scheduler.ts",
|
|
8782
|
+
"line": 111
|
|
8783
|
+
},
|
|
8784
|
+
"name": "ResourceWait",
|
|
8785
|
+
"properties": [
|
|
8786
|
+
{
|
|
8787
|
+
"abstract": true,
|
|
8788
|
+
"docs": {
|
|
8789
|
+
"default": "60",
|
|
8790
|
+
"remarks": "Must be a positive integer.",
|
|
8791
|
+
"stability": "stable",
|
|
8792
|
+
"summary": "Seconds between status checks while a resource is starting, stopping, or otherwise transitioning."
|
|
8793
|
+
},
|
|
8794
|
+
"immutable": true,
|
|
8795
|
+
"locationInModule": {
|
|
8796
|
+
"filename": "src/rds-database-running-scheduler.ts",
|
|
8797
|
+
"line": 117
|
|
8798
|
+
},
|
|
8799
|
+
"name": "intervalSeconds",
|
|
8800
|
+
"optional": true,
|
|
8801
|
+
"type": {
|
|
8802
|
+
"primitive": "number"
|
|
8803
|
+
}
|
|
8804
|
+
},
|
|
8805
|
+
{
|
|
8806
|
+
"abstract": true,
|
|
8807
|
+
"docs": {
|
|
8808
|
+
"default": "1800",
|
|
8809
|
+
"remarks": "Must be a positive integer, greater than or equal to `intervalSeconds`, and at most 6900\nso the limit fires before the 2-hour durable execution timeout.",
|
|
8810
|
+
"stability": "stable",
|
|
8811
|
+
"summary": "Maximum accumulated wait seconds for one resource to reach a stable state."
|
|
8812
|
+
},
|
|
8813
|
+
"immutable": true,
|
|
8814
|
+
"locationInModule": {
|
|
8815
|
+
"filename": "src/rds-database-running-scheduler.ts",
|
|
8816
|
+
"line": 124
|
|
8817
|
+
},
|
|
8818
|
+
"name": "maxSeconds",
|
|
8819
|
+
"optional": true,
|
|
8820
|
+
"type": {
|
|
8821
|
+
"primitive": "number"
|
|
8822
|
+
}
|
|
8823
|
+
}
|
|
8824
|
+
],
|
|
8825
|
+
"symbolId": "src/rds-database-running-scheduler:ResourceWait"
|
|
8838
8826
|
},
|
|
8839
8827
|
"rds-database-running-scheduler.Schedule": {
|
|
8840
8828
|
"assembly": "rds-database-running-scheduler",
|
|
@@ -8846,8 +8834,8 @@
|
|
|
8846
8834
|
"fqn": "rds-database-running-scheduler.Schedule",
|
|
8847
8835
|
"kind": "interface",
|
|
8848
8836
|
"locationInModule": {
|
|
8849
|
-
"filename": "src/
|
|
8850
|
-
"line":
|
|
8837
|
+
"filename": "src/rds-database-running-scheduler.ts",
|
|
8838
|
+
"line": 49
|
|
8851
8839
|
},
|
|
8852
8840
|
"name": "Schedule",
|
|
8853
8841
|
"properties": [
|
|
@@ -8859,8 +8847,8 @@
|
|
|
8859
8847
|
},
|
|
8860
8848
|
"immutable": true,
|
|
8861
8849
|
"locationInModule": {
|
|
8862
|
-
"filename": "src/
|
|
8863
|
-
"line":
|
|
8850
|
+
"filename": "src/rds-database-running-scheduler.ts",
|
|
8851
|
+
"line": 51
|
|
8864
8852
|
},
|
|
8865
8853
|
"name": "timezone",
|
|
8866
8854
|
"type": {
|
|
@@ -8875,8 +8863,8 @@
|
|
|
8875
8863
|
},
|
|
8876
8864
|
"immutable": true,
|
|
8877
8865
|
"locationInModule": {
|
|
8878
|
-
"filename": "src/
|
|
8879
|
-
"line":
|
|
8866
|
+
"filename": "src/rds-database-running-scheduler.ts",
|
|
8867
|
+
"line": 55
|
|
8880
8868
|
},
|
|
8881
8869
|
"name": "hour",
|
|
8882
8870
|
"optional": true,
|
|
@@ -8892,8 +8880,8 @@
|
|
|
8892
8880
|
},
|
|
8893
8881
|
"immutable": true,
|
|
8894
8882
|
"locationInModule": {
|
|
8895
|
-
"filename": "src/
|
|
8896
|
-
"line":
|
|
8883
|
+
"filename": "src/rds-database-running-scheduler.ts",
|
|
8884
|
+
"line": 53
|
|
8897
8885
|
},
|
|
8898
8886
|
"name": "minute",
|
|
8899
8887
|
"optional": true,
|
|
@@ -8909,8 +8897,8 @@
|
|
|
8909
8897
|
},
|
|
8910
8898
|
"immutable": true,
|
|
8911
8899
|
"locationInModule": {
|
|
8912
|
-
"filename": "src/
|
|
8913
|
-
"line":
|
|
8900
|
+
"filename": "src/rds-database-running-scheduler.ts",
|
|
8901
|
+
"line": 57
|
|
8914
8902
|
},
|
|
8915
8903
|
"name": "week",
|
|
8916
8904
|
"optional": true,
|
|
@@ -8919,54 +8907,103 @@
|
|
|
8919
8907
|
}
|
|
8920
8908
|
}
|
|
8921
8909
|
],
|
|
8922
|
-
"symbolId": "src/
|
|
8910
|
+
"symbolId": "src/rds-database-running-scheduler:Schedule"
|
|
8911
|
+
},
|
|
8912
|
+
"rds-database-running-scheduler.SchedulingEnable": {
|
|
8913
|
+
"assembly": "rds-database-running-scheduler",
|
|
8914
|
+
"docs": {
|
|
8915
|
+
"stability": "stable",
|
|
8916
|
+
"summary": "Whether the start and stop schedules are active."
|
|
8917
|
+
},
|
|
8918
|
+
"fqn": "rds-database-running-scheduler.SchedulingEnable",
|
|
8919
|
+
"kind": "enum",
|
|
8920
|
+
"locationInModule": {
|
|
8921
|
+
"filename": "src/rds-database-running-scheduler.ts",
|
|
8922
|
+
"line": 29
|
|
8923
|
+
},
|
|
8924
|
+
"members": [
|
|
8925
|
+
{
|
|
8926
|
+
"docs": {
|
|
8927
|
+
"stability": "stable",
|
|
8928
|
+
"summary": "Create the schedules in the enabled state."
|
|
8929
|
+
},
|
|
8930
|
+
"name": "ENABLED"
|
|
8931
|
+
},
|
|
8932
|
+
{
|
|
8933
|
+
"docs": {
|
|
8934
|
+
"stability": "stable",
|
|
8935
|
+
"summary": "Create the schedules in the disabled state."
|
|
8936
|
+
},
|
|
8937
|
+
"name": "DISABLED"
|
|
8938
|
+
}
|
|
8939
|
+
],
|
|
8940
|
+
"name": "SchedulingEnable",
|
|
8941
|
+
"symbolId": "src/rds-database-running-scheduler:SchedulingEnable"
|
|
8923
8942
|
},
|
|
8924
8943
|
"rds-database-running-scheduler.SlackNotification": {
|
|
8925
8944
|
"assembly": "rds-database-running-scheduler",
|
|
8926
8945
|
"datatype": true,
|
|
8927
8946
|
"docs": {
|
|
8928
|
-
"remarks": "Notifications are off unless `enable` is
|
|
8947
|
+
"remarks": "Notifications are off unless `enable` is {@link SlackNotificationEnable.ENABLED}.",
|
|
8929
8948
|
"stability": "stable",
|
|
8930
8949
|
"summary": "Slack notification settings."
|
|
8931
8950
|
},
|
|
8932
8951
|
"fqn": "rds-database-running-scheduler.SlackNotification",
|
|
8933
8952
|
"kind": "interface",
|
|
8934
8953
|
"locationInModule": {
|
|
8935
|
-
"filename": "src/
|
|
8936
|
-
"line":
|
|
8954
|
+
"filename": "src/rds-database-running-scheduler.ts",
|
|
8955
|
+
"line": 74
|
|
8937
8956
|
},
|
|
8938
8957
|
"name": "SlackNotification",
|
|
8939
8958
|
"properties": [
|
|
8940
8959
|
{
|
|
8941
8960
|
"abstract": true,
|
|
8942
8961
|
"docs": {
|
|
8943
|
-
"default": "
|
|
8944
|
-
"remarks": "When
|
|
8962
|
+
"default": "SlackNotificationEnable.DISABLED",
|
|
8963
|
+
"remarks": "When {@link SlackNotificationEnable.DISABLED}, Secrets Manager lookup,\nSlack API calls, and related IAM grants are skipped.",
|
|
8945
8964
|
"stability": "stable",
|
|
8946
8965
|
"summary": "Whether Slack notifications are enabled."
|
|
8947
8966
|
},
|
|
8948
8967
|
"immutable": true,
|
|
8949
8968
|
"locationInModule": {
|
|
8950
|
-
"filename": "src/
|
|
8951
|
-
"line":
|
|
8969
|
+
"filename": "src/rds-database-running-scheduler.ts",
|
|
8970
|
+
"line": 81
|
|
8952
8971
|
},
|
|
8953
8972
|
"name": "enable",
|
|
8954
8973
|
"optional": true,
|
|
8955
8974
|
"type": {
|
|
8956
|
-
"
|
|
8975
|
+
"fqn": "rds-database-running-scheduler.SlackNotificationEnable"
|
|
8976
|
+
}
|
|
8977
|
+
},
|
|
8978
|
+
{
|
|
8979
|
+
"abstract": true,
|
|
8980
|
+
"docs": {
|
|
8981
|
+
"default": "WaitTimeoutNotification.ENABLED",
|
|
8982
|
+
"stability": "stable",
|
|
8983
|
+
"summary": "Whether to post a Slack message when a resource exceeds `resourceWait.maxSeconds`. Applies only when `enable` is {@link SlackNotificationEnable.ENABLED}."
|
|
8984
|
+
},
|
|
8985
|
+
"immutable": true,
|
|
8986
|
+
"locationInModule": {
|
|
8987
|
+
"filename": "src/rds-database-running-scheduler.ts",
|
|
8988
|
+
"line": 92
|
|
8989
|
+
},
|
|
8990
|
+
"name": "notifyOnWaitTimeout",
|
|
8991
|
+
"optional": true,
|
|
8992
|
+
"type": {
|
|
8993
|
+
"fqn": "rds-database-running-scheduler.WaitTimeoutNotification"
|
|
8957
8994
|
}
|
|
8958
8995
|
},
|
|
8959
8996
|
{
|
|
8960
8997
|
"abstract": true,
|
|
8961
8998
|
"docs": {
|
|
8962
|
-
"remarks": "Required when `enable` is
|
|
8999
|
+
"remarks": "Required when `enable` is {@link SlackNotificationEnable.ENABLED}.",
|
|
8963
9000
|
"stability": "stable",
|
|
8964
9001
|
"summary": "Name of the Slack API secret in AWS Secrets Manager (`token` and `channel`)."
|
|
8965
9002
|
},
|
|
8966
9003
|
"immutable": true,
|
|
8967
9004
|
"locationInModule": {
|
|
8968
|
-
"filename": "src/
|
|
8969
|
-
"line":
|
|
9005
|
+
"filename": "src/rds-database-running-scheduler.ts",
|
|
9006
|
+
"line": 86
|
|
8970
9007
|
},
|
|
8971
9008
|
"name": "secretName",
|
|
8972
9009
|
"optional": true,
|
|
@@ -8975,7 +9012,38 @@
|
|
|
8975
9012
|
}
|
|
8976
9013
|
}
|
|
8977
9014
|
],
|
|
8978
|
-
"symbolId": "src/
|
|
9015
|
+
"symbolId": "src/rds-database-running-scheduler:SlackNotification"
|
|
9016
|
+
},
|
|
9017
|
+
"rds-database-running-scheduler.SlackNotificationEnable": {
|
|
9018
|
+
"assembly": "rds-database-running-scheduler",
|
|
9019
|
+
"docs": {
|
|
9020
|
+
"stability": "stable",
|
|
9021
|
+
"summary": "Whether Slack notifications are sent."
|
|
9022
|
+
},
|
|
9023
|
+
"fqn": "rds-database-running-scheduler.SlackNotificationEnable",
|
|
9024
|
+
"kind": "enum",
|
|
9025
|
+
"locationInModule": {
|
|
9026
|
+
"filename": "src/rds-database-running-scheduler.ts",
|
|
9027
|
+
"line": 19
|
|
9028
|
+
},
|
|
9029
|
+
"members": [
|
|
9030
|
+
{
|
|
9031
|
+
"docs": {
|
|
9032
|
+
"stability": "stable",
|
|
9033
|
+
"summary": "Send Slack messages."
|
|
9034
|
+
},
|
|
9035
|
+
"name": "ENABLED"
|
|
9036
|
+
},
|
|
9037
|
+
{
|
|
9038
|
+
"docs": {
|
|
9039
|
+
"stability": "stable",
|
|
9040
|
+
"summary": "Skip secret lookup, Slack API calls, and related IAM grants."
|
|
9041
|
+
},
|
|
9042
|
+
"name": "DISABLED"
|
|
9043
|
+
}
|
|
9044
|
+
],
|
|
9045
|
+
"name": "SlackNotificationEnable",
|
|
9046
|
+
"symbolId": "src/rds-database-running-scheduler:SlackNotificationEnable"
|
|
8979
9047
|
},
|
|
8980
9048
|
"rds-database-running-scheduler.TargetResource": {
|
|
8981
9049
|
"assembly": "rds-database-running-scheduler",
|
|
@@ -8987,8 +9055,8 @@
|
|
|
8987
9055
|
"fqn": "rds-database-running-scheduler.TargetResource",
|
|
8988
9056
|
"kind": "interface",
|
|
8989
9057
|
"locationInModule": {
|
|
8990
|
-
"filename": "src/
|
|
8991
|
-
"line":
|
|
9058
|
+
"filename": "src/rds-database-running-scheduler.ts",
|
|
9059
|
+
"line": 63
|
|
8992
9060
|
},
|
|
8993
9061
|
"name": "TargetResource",
|
|
8994
9062
|
"properties": [
|
|
@@ -9000,8 +9068,8 @@
|
|
|
9000
9068
|
},
|
|
9001
9069
|
"immutable": true,
|
|
9002
9070
|
"locationInModule": {
|
|
9003
|
-
"filename": "src/
|
|
9004
|
-
"line":
|
|
9071
|
+
"filename": "src/rds-database-running-scheduler.ts",
|
|
9072
|
+
"line": 65
|
|
9005
9073
|
},
|
|
9006
9074
|
"name": "tagKey",
|
|
9007
9075
|
"type": {
|
|
@@ -9016,8 +9084,8 @@
|
|
|
9016
9084
|
},
|
|
9017
9085
|
"immutable": true,
|
|
9018
9086
|
"locationInModule": {
|
|
9019
|
-
"filename": "src/
|
|
9020
|
-
"line":
|
|
9087
|
+
"filename": "src/rds-database-running-scheduler.ts",
|
|
9088
|
+
"line": 67
|
|
9021
9089
|
},
|
|
9022
9090
|
"name": "tagValues",
|
|
9023
9091
|
"type": {
|
|
@@ -9030,9 +9098,40 @@
|
|
|
9030
9098
|
}
|
|
9031
9099
|
}
|
|
9032
9100
|
],
|
|
9033
|
-
"symbolId": "src/
|
|
9101
|
+
"symbolId": "src/rds-database-running-scheduler:TargetResource"
|
|
9102
|
+
},
|
|
9103
|
+
"rds-database-running-scheduler.WaitTimeoutNotification": {
|
|
9104
|
+
"assembly": "rds-database-running-scheduler",
|
|
9105
|
+
"docs": {
|
|
9106
|
+
"stability": "stable",
|
|
9107
|
+
"summary": "Whether to post a Slack message when a resource exceeds its wait limit."
|
|
9108
|
+
},
|
|
9109
|
+
"fqn": "rds-database-running-scheduler.WaitTimeoutNotification",
|
|
9110
|
+
"kind": "enum",
|
|
9111
|
+
"locationInModule": {
|
|
9112
|
+
"filename": "src/rds-database-running-scheduler.ts",
|
|
9113
|
+
"line": 39
|
|
9114
|
+
},
|
|
9115
|
+
"members": [
|
|
9116
|
+
{
|
|
9117
|
+
"docs": {
|
|
9118
|
+
"stability": "stable",
|
|
9119
|
+
"summary": "Post a Slack message when the per-resource wait limit is exceeded."
|
|
9120
|
+
},
|
|
9121
|
+
"name": "ENABLED"
|
|
9122
|
+
},
|
|
9123
|
+
{
|
|
9124
|
+
"docs": {
|
|
9125
|
+
"stability": "stable",
|
|
9126
|
+
"summary": "Do not post a Slack message when the per-resource wait limit is exceeded."
|
|
9127
|
+
},
|
|
9128
|
+
"name": "DISABLED"
|
|
9129
|
+
}
|
|
9130
|
+
],
|
|
9131
|
+
"name": "WaitTimeoutNotification",
|
|
9132
|
+
"symbolId": "src/rds-database-running-scheduler:WaitTimeoutNotification"
|
|
9034
9133
|
}
|
|
9035
9134
|
},
|
|
9036
|
-
"version": "0.
|
|
9037
|
-
"fingerprint": "
|
|
9135
|
+
"version": "0.5.0",
|
|
9136
|
+
"fingerprint": "kTJhmyxdKYShqUAqeJMPwnDhJOahbReVJkspl0pIuCY="
|
|
9038
9137
|
}
|