Class FargatePlatformVersion
The platform version on which to run your service.
Inheritance
System.Object
FargatePlatformVersion
Namespace: Amazon.CDK.AWS.ECS
Assembly: Amazon.CDK.AWS.ECS.dll
Syntax (csharp)
public sealed class FargatePlatformVersion : Enum
Syntax (vb)
Public NotInheritable Class FargatePlatformVersion
Inherits
Enum
Remarks
See: https://docs.aws.amazon.com/AmazonECS/latest/developerguide/platform_versions.html
ExampleMetadata: infused
Examples
Cluster cluster;
var scheduledFargateTask = new ScheduledFargateTask(this, "ScheduledFargateTask", new ScheduledFargateTaskProps {
Cluster = cluster,
ScheduledFargateTaskImageOptions = new ScheduledFargateTaskImageOptions {
Image = ContainerImage.FromRegistry("amazon/amazon-ecs-sample"),
MemoryLimitMiB = 512
},
Schedule = Schedule.Expression("rate(1 minute)"),
PlatformVersion = FargatePlatformVersion.LATEST
});
Synopsis
Fields
LATEST | The latest, recommended platform version. |
value__ | |
VERSION1_0 | Initial release. |
VERSION1_1 | Version 1.1.0. |
VERSION1_2 | Version 1.2.0. |
VERSION1_3 | Version 1.3.0. |
VERSION1_4 | Version 1.4.0. |
Fields
LATEST
The latest, recommended platform version.
public const FargatePlatformVersion LATEST
Field Value
Type | Description |
---|---|
FargatePlatformVersion |
value__
public int value__
Field Value
Type | Description |
---|---|
System.Int32 |
VERSION1_0
Initial release.
public const FargatePlatformVersion VERSION1_0
Field Value
Type | Description |
---|---|
FargatePlatformVersion |
Remarks
Based on Amazon Linux 2017.09.
VERSION1_1
Version 1.1.0.
public const FargatePlatformVersion VERSION1_1
Field Value
Type | Description |
---|---|
FargatePlatformVersion |
Remarks
Supports task metadata, health checks, service discovery.
VERSION1_2
Version 1.2.0.
public const FargatePlatformVersion VERSION1_2
Field Value
Type | Description |
---|---|
FargatePlatformVersion |
Remarks
Supports private registries.
VERSION1_3
Version 1.3.0.
public const FargatePlatformVersion VERSION1_3
Field Value
Type | Description |
---|---|
FargatePlatformVersion |
Remarks
Supports secrets, task recycling.
VERSION1_4
Version 1.4.0.
public const FargatePlatformVersion VERSION1_4
Field Value
Type | Description |
---|---|
FargatePlatformVersion |
Remarks
Supports EFS endpoints, CAP_SYS_PTRACE Linux capability, network performance metrics in CloudWatch Container Insights, consolidated 20 GB ephemeral volume.