Class LaunchType
The launch type of an ECS service.
Inheritance
System.Object
LaunchType
Namespace: Amazon.CDK.AWS.ECS
Assembly: Amazon.CDK.Lib.dll
Syntax (csharp)
public sealed class LaunchType : Enum
Syntax (vb)
Public NotInheritable Class LaunchType
Inherits
Enum
Remarks
ExampleMetadata: infused
Examples
using Amazon.CDK.AWS.ECS;
ICluster cluster;
TaskDefinition taskDefinition;
var rule = new Rule(this, "Rule", new RuleProps {
Schedule = Schedule.Rate(Duration.Hours(1))
});
rule.AddTarget(new EcsTask(new EcsTaskProps {
Cluster = cluster,
TaskDefinition = taskDefinition,
LaunchType = LaunchType.FARGATE
}));
Synopsis
Fields
EC2 | The service will be launched using the EC2 launch type. |
EXTERNAL | The service will be launched using the EXTERNAL launch type. |
FARGATE | The service will be launched using the FARGATE launch type. |
value__ |
Fields
EC2
The service will be launched using the EC2 launch type.
public const LaunchType EC2
Field Value
Type | Description |
---|---|
LaunchType |
EXTERNAL
The service will be launched using the EXTERNAL launch type.
public const LaunchType EXTERNAL
Field Value
Type | Description |
---|---|
LaunchType |
FARGATE
The service will be launched using the FARGATE launch type.
public const LaunchType FARGATE
Field Value
Type | Description |
---|---|
LaunchType |
value__
public int value__
Field Value
Type | Description |
---|---|
System.Int32 |