@Generated(value="jsii-pacmak/1.74.0 (build 6d08790)", date="2023-03-28T21:34:30.207Z") public interface ScheduledFargateTaskProps extends ScheduledTaskBaseProps
Example:
Cluster cluster; ScheduledFargateTask scheduledFargateTask = ScheduledFargateTask.Builder.create(this, "ScheduledFargateTask") .cluster(cluster) .scheduledFargateTaskImageOptions(ScheduledFargateTaskImageOptions.builder() .image(ContainerImage.fromRegistry("amazon/amazon-ecs-sample")) .memoryLimitMiB(512) .build()) .schedule(Schedule.expression("rate(1 minute)")) .platformVersion(FargatePlatformVersion.LATEST) .build();
Modifier and Type | Interface and Description |
---|---|
static class |
ScheduledFargateTaskProps.Builder
A builder for
ScheduledFargateTaskProps |
static class |
ScheduledFargateTaskProps.Jsii$Proxy
An implementation for
ScheduledFargateTaskProps |
Modifier and Type | Method and Description |
---|---|
static ScheduledFargateTaskProps.Builder |
builder() |
default FargatePlatformVersion |
getPlatformVersion()
The platform version on which to run your service.
|
default ScheduledFargateTaskDefinitionOptions |
getScheduledFargateTaskDefinitionOptions()
The properties to define if using an existing TaskDefinition in this construct.
|
default ScheduledFargateTaskImageOptions |
getScheduledFargateTaskImageOptions()
The properties to define if the construct is to create a TaskDefinition.
|
getCluster, getDesiredTaskCount, getEnabled, getRuleName, getSchedule, getSecurityGroups, getSubnetSelection, getVpc
default FargatePlatformVersion getPlatformVersion()
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
default ScheduledFargateTaskDefinitionOptions getScheduledFargateTaskDefinitionOptions()
ScheduledFargateTaskDefinitionOptions or ScheduledFargateTaskImageOptions must be defined, but not both.
Default: none
default ScheduledFargateTaskImageOptions getScheduledFargateTaskImageOptions()
ScheduledFargateTaskDefinitionOptions or ScheduledFargateTaskImageOptions must be defined, but not both.
Default: none
static ScheduledFargateTaskProps.Builder builder()
builder
in interface ScheduledTaskBaseProps
ScheduledFargateTaskProps.Builder
of ScheduledFargateTaskProps