var scheduleResult = await scheduler.CreateScheduleAsync(new CreateScheduleRequest
{
Name = "test schedule",
ScheduleExpression = "at(yyyy-mm-ddThh:mm:ss)", // for a one-time schedule.
ScheduleExpressionTimezone = "America/Los_Angeles", // specify the timezone
State = ScheduleState.ENABLED,
FlexibleTimeWindow = new FlexibleTimeWindow{Mode = FlexibleTimeWindowMode.OFF},
Target = new Target
{
Arn = "ARN of the target, such as a Queue",
RoleArn = "ARN of the IAM role to use for the target",
Input = "Test payload here"
}
});
1条答案
按热度按时间ru9i0ody1#
CreateScheduleAsync操作看起来像这样:
您的参数可能会有所不同,但有一个很好的guide on the parameters here,并按计划表达式在这里。