interface ScheduleTargetProps
Language | Type name |
---|---|
.NET | Amazon.CDK.AWS.Scheduler.Alpha.ScheduleTargetProps |
Go | github.com/aws/aws-cdk-go/awscdkscheduleralpha/v2#ScheduleTargetProps |
Java | software.amazon.awscdk.services.scheduler.alpha.ScheduleTargetProps |
Python | aws_cdk.aws_scheduler_alpha.ScheduleTargetProps |
TypeScript (source) | @aws-cdk/aws-scheduler-alpha » ScheduleTargetProps |
Example
declare const target: targets.LambdaInvoke;
const oneTimeSchedule = new Schedule(this, 'Schedule', {
schedule: ScheduleExpression.rate(cdk.Duration.hours(12)),
target,
targetOverrides: {
input: ScheduleTargetInput.fromText('Overriding Target Input'),
maxEventAge: Duration.seconds(180),
retryAttempts: 5,
},
});
Properties
Name | Type | Description |
---|---|---|
input? | Schedule | The text, or well-formed JSON, passed to the target. |
max | Duration | The maximum amount of time, in seconds, to continue to make retry attempts. |
retry | number | The maximum number of retry attempts to make before the request fails. |
input?
Type:
Schedule
(optional, default: The target's input is used.)
The text, or well-formed JSON, passed to the target.
If you are configuring a templated Lambda, AWS Step Functions, or Amazon EventBridge target, the input must be a well-formed JSON. For all other target types, a JSON is not required.
maxEventAge?
Type:
Duration
(optional, default: The target's maximumEventAgeInSeconds is used.)
The maximum amount of time, in seconds, to continue to make retry attempts.
retryAttempts?
Type:
number
(optional, default: The target's maximumRetryAttempts is used.)
The maximum number of retry attempts to make before the request fails.