Interface ITaskDefinitionAttributes
A reference to an existing task definition.
Inherited Members
Namespace: Amazon.CDK.AWS.ECS
Assembly: Amazon.CDK.Lib.dll
Syntax (csharp)
public interface ITaskDefinitionAttributes : ICommonTaskDefinitionAttributes
Syntax (vb)
Public Interface ITaskDefinitionAttributes
Inherits ICommonTaskDefinitionAttributes
Remarks
ExampleMetadata: fixture=_generated
Examples
// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
using Amazon.CDK.AWS.ECS;
using Amazon.CDK.AWS.IAM;
Role role;
var taskDefinitionAttributes = new TaskDefinitionAttributes {
TaskDefinitionArn = "taskDefinitionArn",
// the properties below are optional
Compatibility = Compatibility.EC2,
ExecutionRole = role,
NetworkMode = NetworkMode.NONE,
TaskRole = role
};
Synopsis
Properties
Compatibility | What launch types this task definition should be compatible with. |
Properties
Compatibility
What launch types this task definition should be compatible with.
virtual Nullable<Compatibility> Compatibility { get; }
Property Value
System.Nullable<Compatibility>
Remarks
Default: Compatibility.EC2_AND_FARGATE