Interface ITaskDefinition
- All Superinterfaces:
IConstruct,software.constructs.IConstruct,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.84.0 (build 5404dcf)",
date="2023-06-19T16:30:47.402Z")
@Stability(Stable)
public interface ITaskDefinition
extends software.amazon.jsii.JsiiSerializable, IResource
The interface for all task definitions.
-
Nested Class Summary
Nested ClassesModifier and TypeInterfaceDescriptionstatic interfaceInternal default implementation forITaskDefinition.static final classA 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 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.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.amazon.awscdk.core.IConstruct
getNodeMethods inherited from interface software.amazon.awscdk.core.IResource
applyRemovalPolicy, getEnv, getStackMethods 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.
-