"use strict";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},core_1=()=>{var tmp=require("../../../core");return core_1=()=>tmp,tmp},literal_string_1=()=>{var tmp=require("../../../core/lib/private/literal-string");return literal_string_1=()=>tmp,tmp};class RunEcsFargateTask extends run_ecs_task_base_1().EcsRunTaskBase{static[JSII_RTTI_SYMBOL_1]={fqn:"aws-cdk-lib.aws_stepfunctions_tasks.RunEcsFargateTask",version:"2.256.1"};constructor(props){if(!props.taskDefinition.isFargateCompatible)throw new(core_1()).UnscopedValidationError((0,literal_string_1().lit)`SuppliedTaskdefinitionConfiguredCompatibility`,"Supplied TaskDefinition is not configured for compatibility with Fargate");if(!props.taskDefinition.defaultContainer)throw new(core_1()).UnscopedValidationError((0,literal_string_1().lit)`TaskdefinitionLeastEssentialContainer`,"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;
