@Stability(value=Stable) public static final class ScheduledTaskBaseProps.Builder extends Object implements software.amazon.jsii.Builder<ScheduledTaskBaseProps>
ScheduledTaskBaseProps
Constructor and Description |
---|
Builder() |
@Stability(value=Stable) 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
@Stability(value=Stable) 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
@Stability(value=Stable) public ScheduledTaskBaseProps.Builder desiredTaskCount(Number desiredTaskCount)
ScheduledTaskBaseProps.getDesiredTaskCount()
desiredTaskCount
- The desired number of instantiations of the task definition to keep running on the service.this
@Stability(value=Stable) public ScheduledTaskBaseProps.Builder enabled(Boolean enabled)
ScheduledTaskBaseProps.getEnabled()
enabled
- Indicates whether the rule is enabled.this
@Stability(value=Stable) public ScheduledTaskBaseProps.Builder ruleName(String ruleName)
ScheduledTaskBaseProps.getRuleName()
ruleName
- A name for the rule.this
@Stability(value=Stable) public ScheduledTaskBaseProps.Builder securityGroups(List<? extends ISecurityGroup> securityGroups)
ScheduledTaskBaseProps.getSecurityGroups()
securityGroups
- Existing security groups to use for your service.this
@Stability(value=Stable) 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
@Stability(value=Stable) 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
@Stability(value=Stable) public ScheduledTaskBaseProps build()
build
in interface software.amazon.jsii.Builder<ScheduledTaskBaseProps>
ScheduledTaskBaseProps
NullPointerException
- if any required attribute was not providedCopyright © 2022. All rights reserved.