Show / Hide Table of Contents

Interface ITaskDefinitionAttributes

A reference to an existing task definition.

Inherited Members
ICommonTaskDefinitionAttributes.TaskDefinitionArn
ICommonTaskDefinitionAttributes.NetworkMode
ICommonTaskDefinitionAttributes.TaskRole
Namespace: Amazon.CDK.AWS.ECS
Assembly: Amazon.CDK.AWS.ECS.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,
    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

Back to top Generated by DocFX