Interface ScheduledTaskBaseProps

All Superinterfaces:
All Known Subinterfaces:
ScheduledEc2TaskProps, ScheduledFargateTaskProps
All Known Implementing Classes:
ScheduledEc2TaskProps.Jsii$Proxy, ScheduledFargateTaskProps.Jsii$Proxy, ScheduledTaskBaseProps.Jsii$Proxy

@Generated(value="jsii-pacmak/1.84.0 (build 5404dcf)", date="2023-06-19T16:30:48.813Z") @Stability(Stable) public interface ScheduledTaskBaseProps extends
The properties for the base ScheduledEc2Task or ScheduledFargateTask task.


 // The code below shows an example of how to instantiate this type.
 // The values are placeholders you should change.
 Cluster cluster;
 Schedule schedule;
 SecurityGroup securityGroup;
 Subnet subnet;
 SubnetFilter subnetFilter;
 Vpc vpc;
 ScheduledTaskBaseProps scheduledTaskBaseProps = ScheduledTaskBaseProps.builder()
         // the properties below are optional
  • Method Details

    • getSchedule

      @Stability(Stable) @NotNull Schedule getSchedule()
      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.

    • getCluster

      @Stability(Stable) @Nullable default ICluster getCluster()
      The name of the cluster that hosts the service.

      If a cluster is specified, the vpc construct should be omitted. Alternatively, you can omit both cluster and vpc.

      Default: - create a new cluster; if both cluster and vpc are omitted, a new VPC will be created for you.

    • getDesiredTaskCount

      @Stability(Stable) @Nullable default Number getDesiredTaskCount()
      The desired number of instantiations of the task definition to keep running on the service.

      Default: 1

    • getEnabled

      @Stability(Stable) @Nullable default Boolean getEnabled()
      Indicates whether the rule is enabled.

      Default: true

    • getRuleName

      @Stability(Stable) @Nullable default String getRuleName()
      A name for the rule.

      Default: - AWS CloudFormation generates a unique physical ID and uses that ID for the rule name. For more information, see [Name Type](

    • getSecurityGroups

      @Stability(Stable) @Nullable default List<ISecurityGroup> getSecurityGroups()
      Existing security groups to use for your service.

      Default: - a new security group will be created.

    • getSubnetSelection

      @Stability(Stable) @Nullable default SubnetSelection getSubnetSelection()
      In what subnets to place the task's ENIs.

      (Only applicable in case the TaskDefinition is configured for AwsVpc networking)

      Default: Private subnets

    • getVpc

      @Stability(Stable) @Nullable default IVpc getVpc()
      The VPC where the container instances will be launched or the elastic network interfaces (ENIs) will be deployed.

      If a vpc is specified, the cluster construct should be omitted. Alternatively, you can omit both vpc and cluster.

      Default: - uses the VPC defined in the cluster or creates a new VPC.

    • builder

      @Stability(Stable) static ScheduledTaskBaseProps.Builder builder()
      a ScheduledTaskBaseProps.Builder of ScheduledTaskBaseProps