Enum FargatePlatformVersion

java.lang.Object
java.lang.Enum<FargatePlatformVersion>
software.amazon.awscdk.services.ecs.FargatePlatformVersion
All Implemented Interfaces:
Serializable, Comparable<FargatePlatformVersion>, java.lang.constant.Constable

@Generated(value="jsii-pacmak/1.101.0 (build b95fe5d)", date="2024-08-02T00:29:10.276Z") @Stability(Stable) public enum FargatePlatformVersion extends Enum<FargatePlatformVersion>
The platform version on which to run your service.

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();
 

See Also:
  • Enum Constant Details

    • LATEST

      @Stability(Stable) public static final FargatePlatformVersion LATEST
      The latest, recommended platform version.
    • VERSION1_4

      @Stability(Stable) public static final FargatePlatformVersion VERSION1_4
      Version 1.4.0.

      Supports EFS endpoints, CAP_SYS_PTRACE Linux capability, network performance metrics in CloudWatch Container Insights, consolidated 20 GB ephemeral volume.

    • VERSION1_3

      @Stability(Stable) public static final FargatePlatformVersion VERSION1_3
      Version 1.3.0.

      Supports secrets, task recycling.

    • VERSION1_2

      @Stability(Stable) public static final FargatePlatformVersion VERSION1_2
      Version 1.2.0.

      Supports private registries.

    • VERSION1_1

      @Stability(Stable) public static final FargatePlatformVersion VERSION1_1
      Version 1.1.0.

      Supports task metadata, health checks, service discovery.

    • VERSION1_0

      @Stability(Stable) public static final FargatePlatformVersion VERSION1_0
      Initial release.

      Based on Amazon Linux 2017.09.

  • Method Details

    • values

      public static FargatePlatformVersion[] values()
      Returns an array containing the constants of this enum type, in the order they are declared.
      Returns:
      an array containing the constants of this enum type, in the order they are declared
    • valueOf

      public static FargatePlatformVersion valueOf(String name)
      Returns the enum constant of this type with the specified name. The string must match exactly an identifier used to declare an enum constant in this type. (Extraneous whitespace characters are not permitted.)
      Parameters:
      name - the name of the enum constant to be returned.
      Returns:
      the enum constant with the specified name
      Throws:
      IllegalArgumentException - if this enum type has no constant with the specified name
      NullPointerException - if the argument is null