"use strict";var _a;Object.defineProperty(exports,"__esModule",{value:!0}),exports.RunEcsFargateTask=void 0;const JSII_RTTI_SYMBOL_1=Symbol.for("jsii.rtti");var run_ecs_task_base_1=()=>{var tmp=require("./run-ecs-task-base");return run_ecs_task_base_1=()=>tmp,tmp};class RunEcsFargateTask extends run_ecs_task_base_1().EcsRunTaskBase{constructor(props){if(!props.taskDefinition.isFargateCompatible)throw new Error("Supplied TaskDefinition is not configured for compatibility with Fargate");if(!props.taskDefinition.defaultContainer)throw new Error("A TaskDefinition must have at least one essential container");super({...props,parameters:{LaunchType:"FARGATE"}}),this.configureAwsVpcNetworking(props.cluster.vpc,props.assignPublicIp,props.subnets,props.securityGroup)}}exports.RunEcsFargateTask=RunEcsFargateTask,_a=JSII_RTTI_SYMBOL_1,RunEcsFargateTask[_a]={fqn:"aws-cdk-lib.aws_stepfunctions_tasks.RunEcsFargateTask",version:"2.159.0"};
