Interface ITaskDefinition
The interface for all task definitions.
Inherited Members
Namespace: Amazon.CDK.AWS.ECS
Assembly: Amazon.CDK.AWS.ECS.dll
Syntax (csharp)
public interface ITaskDefinition : IResource, IConstruct, IDependable
Syntax (vb)
Public Interface ITaskDefinition
Inherits IResource, IConstruct, IConstruct, IDependable
Synopsis
Properties
Compatibility | What launch types this task definition should be compatible with. |
ExecutionRole | Execution role for this task definition. |
IsEc2Compatible | Return true if the task definition can be run on an EC2 cluster. |
IsExternalCompatible | Return true if the task definition can be run on a ECS Anywhere cluster. |
IsFargateCompatible | Return true if the task definition can be run on a Fargate cluster. |
NetworkMode | The networking mode to use for the containers in the task. |
TaskDefinitionArn | ARN of this task definition. |
TaskRole | The name of the IAM role that grants containers in the task permission to call AWS APIs on your behalf. |
Properties
Compatibility
What launch types this task definition should be compatible with.
Compatibility Compatibility { get; }
Property Value
ExecutionRole
IsEc2Compatible
Return true if the task definition can be run on an EC2 cluster.
bool IsEc2Compatible { get; }
Property Value
System.Boolean
IsExternalCompatible
Return true if the task definition can be run on a ECS Anywhere cluster.
bool IsExternalCompatible { get; }
Property Value
System.Boolean
IsFargateCompatible
Return true if the task definition can be run on a Fargate cluster.
bool IsFargateCompatible { get; }
Property Value
System.Boolean
NetworkMode
The networking mode to use for the containers in the task.
NetworkMode NetworkMode { get; }
Property Value
TaskDefinitionArn
ARN of this task definition.
string TaskDefinitionArn { get; }
Property Value
System.String
Remarks
Attribute: true
TaskRole
The name of the IAM role that grants containers in the task permission to call AWS APIs on your behalf.
IRole TaskRole { get; }
Property Value