Interface ITaskDefinition
- All Superinterfaces:
- software.constructs.IConstruct,- software.constructs.IDependable,- IResource,- software.amazon.jsii.JsiiSerializable
- All Known Subinterfaces:
- IEc2TaskDefinition,- IEc2TaskDefinition.Jsii$Default,- IExternalTaskDefinition,- IExternalTaskDefinition.Jsii$Default,- IFargateTaskDefinition,- IFargateTaskDefinition.Jsii$Default,- ITaskDefinition.Jsii$Default
- All Known Implementing Classes:
- Ec2TaskDefinition,- ExternalTaskDefinition,- FargateTaskDefinition,- IEc2TaskDefinition.Jsii$Proxy,- IExternalTaskDefinition.Jsii$Proxy,- IFargateTaskDefinition.Jsii$Proxy,- ITaskDefinition.Jsii$Proxy,- TaskDefinition
@Generated(value="jsii-pacmak/1.116.0 (build 0eddcff)",
           date="2025-10-29T11:15:39.237Z")
@Stability(Stable)
public interface ITaskDefinition
extends software.amazon.jsii.JsiiSerializable, IResource
The interface for all task definitions.
- 
Nested Class SummaryNested ClassesModifier and TypeInterfaceDescriptionstatic interfaceInternal default implementation forITaskDefinition.static final classA proxy class which represents a concrete javascript instance of this type.
- 
Method SummaryModifier and TypeMethodDescriptionWhat launch types this task definition should be compatible with.default IRoleExecution role for this task definition.Return true if the task definition can be run on an EC2 cluster.Return true if the task definition can be run on a ECS Anywhere cluster.Return true if the task definition can be run on a Fargate cluster.Return true if the task definition can be run on Managed Instances.The networking mode to use for the containers in the task.ARN of this task definition.The name of the IAM role that grants containers in the task permission to call AWS APIs on your behalf.Methods inherited from interface software.constructs.IConstructgetNodeMethods inherited from interface software.amazon.awscdk.IResourceapplyRemovalPolicy, getEnv, getStackMethods inherited from interface software.amazon.jsii.JsiiSerializable$jsii$toJson
- 
Method Details- 
getCompatibilityWhat launch types this task definition should be compatible with.
- 
getIsEc2CompatibleReturn true if the task definition can be run on an EC2 cluster.
- 
getIsExternalCompatibleReturn true if the task definition can be run on a ECS Anywhere cluster.
- 
getIsFargateCompatibleReturn true if the task definition can be run on a Fargate cluster.
- 
getIsManagedInstancesCompatibleReturn true if the task definition can be run on Managed Instances.
- 
getNetworkModeThe networking mode to use for the containers in the task.
- 
getTaskDefinitionArnARN of this task definition.
- 
getTaskRoleThe name of the IAM role that grants containers in the task permission to call AWS APIs on your behalf.
- 
getExecutionRoleExecution role for this task definition.
 
-