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.103.1 (build bef2dea)",
date="2024-10-25T14:21:14.653Z")
@Stability(Stable)
public interface ITaskDefinition
extends software.amazon.jsii.JsiiSerializable, IResource
The interface for all task definitions.
-
Nested Class Summary
Modifier and TypeInterfaceDescriptionstatic interface
Internal default implementation forITaskDefinition
.static final class
A proxy class which represents a concrete javascript instance of this type. -
Method Summary
Modifier and TypeMethodDescriptionWhat launch types this task definition should be compatible with.default IRole
Execution 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.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.IConstruct
getNode
Methods inherited from interface software.amazon.awscdk.IResource
applyRemovalPolicy, getEnv, getStack
Methods inherited from interface software.amazon.jsii.JsiiSerializable
$jsii$toJson
-
Method Details
-
getCompatibility
What launch types this task definition should be compatible with. -
getIsEc2Compatible
Return true if the task definition can be run on an EC2 cluster. -
getIsExternalCompatible
Return true if the task definition can be run on a ECS Anywhere cluster. -
getIsFargateCompatible
Return true if the task definition can be run on a Fargate cluster. -
getNetworkMode
The networking mode to use for the containers in the task. -
getTaskDefinitionArn
ARN of this task definition. -
getTaskRole
The name of the IAM role that grants containers in the task permission to call AWS APIs on your behalf. -
getExecutionRole
Execution role for this task definition.
-