enum LaunchType
Language | Type name |
---|---|
.NET | Amazon.CDK.AWS.ECS.LaunchType |
Go | github.com/aws/aws-cdk-go/awscdk/v2/awsecs#LaunchType |
Java | software.amazon.awscdk.services.ecs.LaunchType |
Python | aws_cdk.aws_ecs.LaunchType |
TypeScript (source) | aws-cdk-lib » aws_ecs » LaunchType |
The launch type of an ECS service.
Example
import * as ecs from 'aws-cdk-lib/aws-ecs';
declare const cluster: ecs.ICluster;
declare const taskDefinition: ecs.TaskDefinition;
const rule = new events.Rule(this, 'Rule', {
schedule: events.Schedule.rate(cdk.Duration.hours(1)),
});
rule.addTarget(new targets.EcsTask({
cluster,
taskDefinition,
launchType: ecs.LaunchType.FARGATE,
}));
Members
Name | Description |
---|---|
EC2 | The service will be launched using the EC2 launch type. |
FARGATE | The service will be launched using the FARGATE launch type. |
EXTERNAL | The service will be launched using the EXTERNAL launch type. |
EC2
The service will be launched using the EC2 launch type.
FARGATE
The service will be launched using the FARGATE launch type.
EXTERNAL
The service will be launched using the EXTERNAL launch type.