@Stability(value=Stable) public static final class ScheduledFargateTaskProps.Builder extends Object implements software.amazon.jsii.Builder<ScheduledFargateTaskProps>
ScheduledFargateTaskProps| Constructor and Description |
|---|
Builder() |
@Stability(value=Stable) public ScheduledFargateTaskProps.Builder scheduledFargateTaskDefinitionOptions(ScheduledFargateTaskDefinitionOptions scheduledFargateTaskDefinitionOptions)
ScheduledFargateTaskProps.getScheduledFargateTaskDefinitionOptions()scheduledFargateTaskDefinitionOptions - The properties to define if using an existing TaskDefinition in this construct.
ScheduledFargateTaskDefinitionOptions or ScheduledFargateTaskImageOptions must be defined, but not both.this@Stability(value=Stable) public ScheduledFargateTaskProps.Builder scheduledFargateTaskImageOptions(ScheduledFargateTaskImageOptions scheduledFargateTaskImageOptions)
ScheduledFargateTaskProps.getScheduledFargateTaskImageOptions()scheduledFargateTaskImageOptions - The properties to define if the construct is to create a TaskDefinition.
ScheduledFargateTaskDefinitionOptions or ScheduledFargateTaskImageOptions must be defined, but not both.this@Stability(value=Stable) public ScheduledFargateTaskProps.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 ScheduledFargateTaskProps.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 ScheduledFargateTaskProps.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 ScheduledFargateTaskProps.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 ScheduledFargateTaskProps.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 ScheduledFargateTaskProps build()
build in interface software.amazon.jsii.Builder<ScheduledFargateTaskProps>ScheduledFargateTaskPropsNullPointerException - if any required attribute was not providedCopyright © 2020. All rights reserved.