@Stability(value=Experimental) public static final class ScheduledTaskBaseProps.Builder extends Object implements software.amazon.jsii.Builder<ScheduledTaskBaseProps>
ScheduledTaskBaseProps| Constructor and Description |
|---|
Builder() |
| Modifier and Type | Method and Description |
|---|---|
ScheduledTaskBaseProps |
build()
Builds the configured instance.
|
ScheduledTaskBaseProps.Builder |
cluster(ICluster cluster)
Sets the value of
ScheduledTaskBaseProps.getCluster() |
ScheduledTaskBaseProps.Builder |
desiredTaskCount(Number desiredTaskCount)
Sets the value of
ScheduledTaskBaseProps.getDesiredTaskCount() |
ScheduledTaskBaseProps.Builder |
enabled(Boolean enabled)
Sets the value of
ScheduledTaskBaseProps.getEnabled() |
ScheduledTaskBaseProps.Builder |
ruleName(String ruleName)
Sets the value of
ScheduledTaskBaseProps.getRuleName() |
ScheduledTaskBaseProps.Builder |
schedule(Schedule schedule)
Sets the value of
ScheduledTaskBaseProps.getSchedule() |
ScheduledTaskBaseProps.Builder |
subnetSelection(SubnetSelection subnetSelection)
Sets the value of
ScheduledTaskBaseProps.getSubnetSelection() |
ScheduledTaskBaseProps.Builder |
vpc(IVpc vpc)
Sets the value of
ScheduledTaskBaseProps.getVpc() |
@Stability(value=Experimental) 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=Experimental) 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=Experimental) 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=Experimental) public ScheduledTaskBaseProps.Builder enabled(Boolean enabled)
ScheduledTaskBaseProps.getEnabled()enabled - Indicates whether the rule is enabled.this@Stability(value=Experimental) public ScheduledTaskBaseProps.Builder ruleName(String ruleName)
ScheduledTaskBaseProps.getRuleName()ruleName - A name for the rule.this@Stability(value=Experimental) 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=Experimental) 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=Experimental) public ScheduledTaskBaseProps build()
build in interface software.amazon.jsii.Builder<ScheduledTaskBaseProps>ScheduledTaskBasePropsNullPointerException - if any required attribute was not providedCopyright © 2021. All rights reserved.