@Stability(value=Stable) public static final class ScheduledEc2TaskProps.Builder extends Object implements software.amazon.jsii.Builder<ScheduledEc2TaskProps>
ScheduledEc2TaskProps| Constructor and Description |
|---|
Builder() |
@Stability(value=Stable) public ScheduledEc2TaskProps.Builder scheduledEc2TaskDefinitionOptions(ScheduledEc2TaskDefinitionOptions scheduledEc2TaskDefinitionOptions)
ScheduledEc2TaskProps.getScheduledEc2TaskDefinitionOptions()scheduledEc2TaskDefinitionOptions - The properties to define if using an existing TaskDefinition in this construct.
ScheduledEc2TaskDefinitionOptions or ScheduledEc2TaskImageOptions must be defined, but not both.this@Stability(value=Stable) public ScheduledEc2TaskProps.Builder scheduledEc2TaskImageOptions(ScheduledEc2TaskImageOptions scheduledEc2TaskImageOptions)
ScheduledEc2TaskProps.getScheduledEc2TaskImageOptions()scheduledEc2TaskImageOptions - The properties to define if the construct is to create a TaskDefinition.
ScheduledEc2TaskDefinitionOptions or ScheduledEc2TaskImageOptions must be defined, but not both.this@Stability(value=Stable) public ScheduledEc2TaskProps.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 ScheduledEc2TaskProps.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 ScheduledEc2TaskProps.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 ScheduledEc2TaskProps.Builder enabled(Boolean enabled)
ScheduledTaskBaseProps.getEnabled()enabled - Indicates whether the rule is enabled.this@Stability(value=Stable) public ScheduledEc2TaskProps.Builder ruleName(String ruleName)
ScheduledTaskBaseProps.getRuleName()ruleName - A name for the rule.this@Stability(value=Stable) public ScheduledEc2TaskProps.Builder securityGroups(List<? extends ISecurityGroup> securityGroups)
ScheduledTaskBaseProps.getSecurityGroups()securityGroups - Existing security groups to use for your service.this@Stability(value=Stable) public ScheduledEc2TaskProps.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 ScheduledEc2TaskProps.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 ScheduledEc2TaskProps build()
build in interface software.amazon.jsii.Builder<ScheduledEc2TaskProps>ScheduledEc2TaskPropsNullPointerException - if any required attribute was not providedCopyright © 2022. All rights reserved.