Interface GuScheduledEcsTaskProps

Configuration options for the [[GuScheduledEcsTask]] pattern.

The schedule property determines when your task is invoked. For example, to invoke the task every 5 minutes, use:

import { Schedule } from "aws-cdk-lib/aws-events";
import { Duration } from "aws-cdk-lib/core";

const props = {
// Other props here
schedule: Schedule.rate(Duration.minutes(5)),

To invoke the task every weekday at 8am, use:

import { Schedule } from "aws-cdk-lib/aws-events";

const props = {
// Other props here
schedule: Schedule.expression("cron(0 8 ? * MON-FRI *)"),

See [[GuEcsTask]] for details of other props



app: string
containerConfiguration: ContainerConfiguration
cpu?: number
customTaskPolicies?: PolicyStatement[]
environmentOverrides?: TaskEnvironmentVariable[]
memory?: number
monitoringConfiguration: NoMonitoring | GuEcsTaskMonitoringProps
schedule: Schedule
securityGroups?: ISecurityGroup[]
storage?: number
taskCommand?: string
taskTimeoutInMinutes?: number
vpc: IVpc

Generated using TypeDoc