Interface IEc2TaskDefinitionAttributes
Attributes used to import an existing EC2 task definition.
Inherited Members
Namespace: Amazon.CDK.AWS.ECS
Assembly: Amazon.CDK.Lib.dll
Syntax (csharp)
public interface IEc2TaskDefinitionAttributes : ICommonTaskDefinitionAttributes
Syntax (vb)
Public Interface IEc2TaskDefinitionAttributes
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 ec2TaskDefinitionAttributes = new Ec2TaskDefinitionAttributes {
TaskDefinitionArn = "taskDefinitionArn",
// the properties below are optional
ExecutionRole = role,
NetworkMode = NetworkMode.NONE,
TaskRole = role
};