public static final class ScheduledTaskBaseProps.Builder
extends java.lang.Object
ScheduledTaskBaseProps
Constructor and Description |
---|
Builder() |
public ScheduledTaskBaseProps.Builder schedule(Schedule schedule)
ScheduledTaskBaseProps.getSchedule()
schedule
- The schedule or rate (frequency) that determines when CloudWatch Events runs the rule. This parameter is required.
For more information, see
Schedule Expression Syntax for Rules
in the Amazon CloudWatch User Guide.this
public ScheduledTaskBaseProps.Builder cluster(ICluster cluster)
ScheduledTaskBaseProps.getCluster()
cluster
- 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.this
public ScheduledTaskBaseProps.Builder desiredTaskCount(java.lang.Number desiredTaskCount)
ScheduledTaskBaseProps.getDesiredTaskCount()
desiredTaskCount
- The desired number of instantiations of the task definition to keep running on the service.this
public ScheduledTaskBaseProps.Builder enabled(java.lang.Boolean enabled)
ScheduledTaskBaseProps.getEnabled()
enabled
- Indicates whether the rule is enabled.this
public ScheduledTaskBaseProps.Builder ruleName(java.lang.String ruleName)
ScheduledTaskBaseProps.getRuleName()
ruleName
- A name for the rule.this
public ScheduledTaskBaseProps.Builder securityGroups(java.util.List<? extends ISecurityGroup> securityGroups)
ScheduledTaskBaseProps.getSecurityGroups()
securityGroups
- Existing security groups to use for your service.this
public ScheduledTaskBaseProps.Builder subnetSelection(SubnetSelection subnetSelection)
ScheduledTaskBaseProps.getSubnetSelection()
subnetSelection
- In what subnets to place the task's ENIs.
(Only applicable in case the TaskDefinition is configured for AwsVpc networking)this
public ScheduledTaskBaseProps.Builder vpc(IVpc vpc)
ScheduledTaskBaseProps.getVpc()
vpc
- 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.this
public ScheduledTaskBaseProps build()
ScheduledTaskBaseProps
java.lang.NullPointerException
- if any required attribute was not provided