Classes
| Name | Description |
|---|---|
| ScheduleFunction | No description |
Structs
| Name | Description |
|---|---|
| ScheduleFunctionProps | No description |
| TargetFunctionProps | No description |
Implements: IConstruct, IDependable Extends: Construct
new ScheduleFunction(scope: Construct, id: string, props?: ScheduleFunctionProps)- scope (
Construct) No description - id (
string) No description - props (
ScheduleFunctionProps) No description- dispatchTargetFunctionTimeout (
Duration) Specify the dispatch target function's timeout config. Default: Duration.seconds(10) - enabled (
boolean) Enable / Disable event rule. Default: true - recentMinutes (
Duration) Set recent minutes, ex: Duration.minutes(5) will limit the schedule must grand 5 minutes than now. Default: Duration.minutes(3)
- dispatchTargetFunctionTimeout (
| Name | Type | Description |
|---|---|---|
| createScheduleFunction | aws_lambda.Function |
Put new schedule into table, you can trigger by API Gateway or other AWS service. |
| deleteScheduleFunction | aws_lambda.Function |
Delete schedule data, you can trigger by API Gateway or other AWS service. |
| dispatchTargetFunctionTimeout | Duration |
|
| dispatchTargetRule | aws_events.Rule |
Set a event rule to invoke dispatch target function every minutes. |
| fetchScheduleFunction | aws_lambda.Function |
Fetch schedule from table, you can trigger by API Gateway or other AWS service. |
| listSchedulesFunction | aws_lambda.Function |
List all schedules from table, you can trigger by API Gateway or other AWS service. |
| recentMinutes | Duration |
|
| scheduleTable | aws_dynamodb.Table |
Store all of schedules in DynamoDB table. |
| updateScheduleFunction | aws_lambda.Function |
Update schedule data, you can trigger by API Gateway or other AWS service. |
Add a target function by targetType.
addTargetFunction(targetType: string, targetFunctionProps: TargetFunctionProps): ScheduleFunction- targetType (
string) No description - targetFunctionProps (
TargetFunctionProps) No description- targetFunction (
aws_lambda.Function) Specify lambda function to invoke on schedule time.
- targetFunction (
Returns:
| Name | Type | Description |
|---|---|---|
| dispatchTargetFunctionTimeout? | Duration |
Specify the dispatch target function's timeout config. Default: Duration.seconds(10) |
| enabled? | boolean |
Enable / Disable event rule. Default: true |
| recentMinutes? | Duration |
Set recent minutes, ex: Duration.minutes(5) will limit the schedule must grand 5 minutes than now. Default: Duration.minutes(3) |
| Name | Type | Description |
|---|---|---|
| targetFunction | aws_lambda.Function |
Specify lambda function to invoke on schedule time. |