Interface FargateTaskProps
- All Superinterfaces:
EcsRunTaskBaseProps,software.amazon.jsii.JsiiSerializable,ScheduleTargetBaseProps
- All Known Implementing Classes:
FargateTaskProps.Jsii$Proxy
@Generated(value="jsii-pacmak/1.119.0 (build 1634eac)",
date="2025-11-17T14:41:00.559Z")
@Stability(Stable)
public interface FargateTaskProps
extends software.amazon.jsii.JsiiSerializable, EcsRunTaskBaseProps
Properties for scheduling an ECS Fargate Task.
Example:
import software.amazon.awscdk.services.ecs.*;
ICluster cluster;
FargateTaskDefinition taskDefinition;
Schedule.Builder.create(this, "Schedule")
.schedule(ScheduleExpression.rate(Duration.minutes(60)))
.target(EcsRunFargateTask.Builder.create(cluster)
.taskDefinition(taskDefinition)
.build())
.build();
-
Nested Class Summary
Nested ClassesModifier and TypeInterfaceDescriptionstatic final classA builder forFargateTaskPropsstatic final classAn implementation forFargateTaskProps -
Method Summary
Modifier and TypeMethodDescriptionstatic FargateTaskProps.Builderbuilder()default BooleanSpecifies whether the task's elastic network interface receives a public IP address.default FargatePlatformVersionSpecifies the platform version for the task.Methods inherited from interface software.amazon.awscdk.services.scheduler.targets.EcsRunTaskBaseProps
getCapacityProviderStrategies, getEnableEcsManagedTags, getEnableExecuteCommand, getGroup, getPropagateTags, getReferenceId, getSecurityGroups, getTags, getTaskCount, getTaskDefinition, getVpcSubnetsMethods inherited from interface software.amazon.jsii.JsiiSerializable
$jsii$toJsonMethods inherited from interface software.amazon.awscdk.services.scheduler.targets.ScheduleTargetBaseProps
getDeadLetterQueue, getInput, getMaxEventAge, getRetryAttempts, getRole
-
Method Details
-
getAssignPublicIp
Specifies whether the task's elastic network interface receives a public IP address.If true, the task will receive a public IP address and be accessible from the internet. Should only be set to true when using public subnets.
Default: - true if the subnet type is PUBLIC, otherwise false
-
getPlatformVersion
Specifies the platform version for the task.Specify only the numeric portion of the platform version, such as 1.1.0. Platform versions determine the underlying runtime environment for the task.
Default: - LATEST
-
builder
- Returns:
- a
FargateTaskProps.BuilderofFargateTaskProps
-