@Stability(value=Experimental) public static final class ScheduledFargateTask.Builder extends Object implements software.amazon.jsii.Builder<ScheduledFargateTask>
ScheduledFargateTask.| Modifier and Type | Method and Description |
|---|---|
ScheduledFargateTask |
build() |
ScheduledFargateTask.Builder |
cluster(ICluster cluster)
(experimental) The name of the cluster that hosts the service.
|
static ScheduledFargateTask.Builder |
create(software.constructs.Construct scope,
String id) |
ScheduledFargateTask.Builder |
desiredTaskCount(Number desiredTaskCount)
(experimental) The desired number of instantiations of the task definition to keep running on the service.
|
ScheduledFargateTask.Builder |
enabled(Boolean enabled)
(experimental) Indicates whether the rule is enabled.
|
ScheduledFargateTask.Builder |
platformVersion(FargatePlatformVersion platformVersion)
(experimental) The platform version on which to run your service.
|
ScheduledFargateTask.Builder |
ruleName(String ruleName)
(experimental) A name for the rule.
|
ScheduledFargateTask.Builder |
schedule(Schedule schedule)
(experimental) The schedule or rate (frequency) that determines when CloudWatch Events runs the rule.
|
ScheduledFargateTask.Builder |
scheduledFargateTaskDefinitionOptions(ScheduledFargateTaskDefinitionOptions scheduledFargateTaskDefinitionOptions)
(experimental) The properties to define if using an existing TaskDefinition in this construct.
|
ScheduledFargateTask.Builder |
scheduledFargateTaskImageOptions(ScheduledFargateTaskImageOptions scheduledFargateTaskImageOptions)
(experimental) The properties to define if the construct is to create a TaskDefinition.
|
ScheduledFargateTask.Builder |
subnetSelection(SubnetSelection subnetSelection)
(experimental) In what subnets to place the task's ENIs.
|
ScheduledFargateTask.Builder |
vpc(IVpc vpc)
(experimental) The VPC where the container instances will be launched or the elastic network interfaces (ENIs) will be deployed.
|
@Stability(value=Experimental) public static ScheduledFargateTask.Builder create(software.constructs.Construct scope, String id)
scope - This parameter is required.id - This parameter is required.ScheduledFargateTask.Builder.@Stability(value=Experimental) public ScheduledFargateTask.Builder schedule(Schedule schedule)
For more information, see Schedule Expression Syntax for Rules in the Amazon CloudWatch User Guide.
schedule - The schedule or rate (frequency) that determines when CloudWatch Events runs the rule. This parameter is required.this@Stability(value=Experimental) public ScheduledFargateTask.Builder cluster(ICluster cluster)
If a cluster is specified, the vpc construct should be omitted. Alternatively, you can omit both cluster and vpc.
Default: - create a new cluster; if both cluster and vpc are omitted, a new VPC will be created for you.
cluster - The name of the cluster that hosts the service. This parameter is required.this@Stability(value=Experimental) public ScheduledFargateTask.Builder desiredTaskCount(Number desiredTaskCount)
Default: 1
desiredTaskCount - The desired number of instantiations of the task definition to keep running on the service. This parameter is required.this@Stability(value=Experimental) public ScheduledFargateTask.Builder enabled(Boolean enabled)
Default: true
enabled - Indicates whether the rule is enabled. This parameter is required.this@Stability(value=Experimental) public ScheduledFargateTask.Builder ruleName(String ruleName)
Default: - AWS CloudFormation generates a unique physical ID and uses that ID for the rule name. For more information, see [Name Type](https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-name.html).
ruleName - A name for the rule. This parameter is required.this@Stability(value=Experimental) public ScheduledFargateTask.Builder subnetSelection(SubnetSelection subnetSelection)
(Only applicable in case the TaskDefinition is configured for AwsVpc networking)
Default: Private subnets
subnetSelection - In what subnets to place the task's ENIs. This parameter is required.this@Stability(value=Experimental) public ScheduledFargateTask.Builder vpc(IVpc vpc)
If a vpc is specified, the cluster construct should be omitted. Alternatively, you can omit both vpc and cluster.
Default: - uses the VPC defined in the cluster or creates a new VPC.
vpc - The VPC where the container instances will be launched or the elastic network interfaces (ENIs) will be deployed. This parameter is required.this@Stability(value=Experimental) public ScheduledFargateTask.Builder platformVersion(FargatePlatformVersion platformVersion)
If one is not specified, the LATEST platform version is used by default. For more information, see AWS Fargate Platform Versions in the Amazon Elastic Container Service Developer Guide.
Default: Latest
platformVersion - The platform version on which to run your service. This parameter is required.this@Stability(value=Experimental) public ScheduledFargateTask.Builder scheduledFargateTaskDefinitionOptions(ScheduledFargateTaskDefinitionOptions scheduledFargateTaskDefinitionOptions)
ScheduledFargateTaskDefinitionOptions or ScheduledFargateTaskImageOptions must be defined, but not both.
Default: none
scheduledFargateTaskDefinitionOptions - The properties to define if using an existing TaskDefinition in this construct. This parameter is required.this@Stability(value=Experimental) public ScheduledFargateTask.Builder scheduledFargateTaskImageOptions(ScheduledFargateTaskImageOptions scheduledFargateTaskImageOptions)
ScheduledFargateTaskDefinitionOptions or ScheduledFargateTaskImageOptions must be defined, but not both.
Default: none
scheduledFargateTaskImageOptions - The properties to define if the construct is to create a TaskDefinition. This parameter is required.this@Stability(value=Experimental) public ScheduledFargateTask build()
build in interface software.amazon.jsii.Builder<ScheduledFargateTask>Copyright © 2021. All rights reserved.