diff --git a/design/aws-ecs-scheduled-ecs-task-construct.md b/design/aws-ecs-scheduled-ecs-task-construct.md index 76b6619d5d3b2..871b86bfc33be 100644 --- a/design/aws-ecs-scheduled-ecs-task-construct.md +++ b/design/aws-ecs-scheduled-ecs-task-construct.md @@ -38,11 +38,25 @@ export interface ScheduledEc2TaskProps { readonly cluster: ICluster; /** - * The CMD value to pass to the container. + * The image to start. + */ + readonly image: ContainerImage; + + /** + * The schedule or rate (frequency) that determines when CloudWatch Events + * runs the rule. For more information, see Schedule Expression Syntax for + * Rules in the Amazon CloudWatch User Guide. * - * If you provide a shell command as a single string, you have to quote command-line arguments. + * @see http://docs.aws.amazon.com/AmazonCloudWatch/latest/events/ScheduledEvents.html + * + * You must specify this property. */ - readonly command?: string[]; + readonly scheduleExpression: string; + + /** + * The CMD value to pass to the container. A string with commands delimited by commas. + */ + readonly command?: string; /** * The minimum number of CPU units to reserve for the container. @@ -61,11 +75,6 @@ export interface ScheduledEc2TaskProps { */ readonly environment?: { [key: string]: string }; - /** - * The image to start. - */ - readonly image: ContainerImage; - /** * The hard limit (in MiB) of memory to present to the container. * @@ -89,17 +98,6 @@ export interface ScheduledEc2TaskProps { * At least one of memoryLimitMiB and memoryReservationMiB is required for non-Fargate services. */ readonly memoryReservationMiB?: number; - - /** - * The schedule or rate (frequency) that determines when CloudWatch Events - * runs the rule. For more information, see Schedule Expression Syntax for - * Rules in the Amazon CloudWatch User Guide. - * - * @see http://docs.aws.amazon.com/AmazonCloudWatch/latest/events/ScheduledEvents.html - * - * You must specify this property. - */ - readonly scheduleExpression?: string; } ```