Skip to content

Commit

Permalink
Updated properties in ScheduledEc2Task design
Browse files Browse the repository at this point in the history
  • Loading branch information
piradeepk committed Apr 24, 2019
1 parent 945a785 commit 45e2b84
Showing 1 changed file with 17 additions and 19 deletions.
36 changes: 17 additions & 19 deletions design/aws-ecs-scheduled-ecs-task-construct.md
Original file line number Diff line number Diff line change
Expand Up @@ -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.
Expand All @@ -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.
*
Expand All @@ -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;
}
```

Expand Down

0 comments on commit 45e2b84

Please sign in to comment.