Class CommonTaskDefinitionAttributes
The common task definition attributes used across all types of task definitions.
Inheritance
System.Object
CommonTaskDefinitionAttributes
Implements
Namespace: Amazon.CDK.AWS.ECS
Assembly: Amazon.CDK.AWS.ECS.dll
Syntax (csharp)
public class CommonTaskDefinitionAttributes : Object, ICommonTaskDefinitionAttributes
Syntax (vb)
Public Class CommonTaskDefinitionAttributes
Inherits Object
Implements 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 commonTaskDefinitionAttributes = new CommonTaskDefinitionAttributes {
TaskDefinitionArn = "taskDefinitionArn",
// the properties below are optional
NetworkMode = NetworkMode.NONE,
TaskRole = role
};
Synopsis
Constructors
CommonTaskDefinitionAttributes() |
Properties
NetworkMode | The networking mode to use for the containers in the task. |
TaskDefinitionArn | The arn of the task definition. |
TaskRole | The name of the IAM role that grants containers in the task permission to call AWS APIs on your behalf. |
Constructors
CommonTaskDefinitionAttributes()
public CommonTaskDefinitionAttributes()
Properties
NetworkMode
The networking mode to use for the containers in the task.
public Nullable<NetworkMode> NetworkMode { get; set; }
Property Value
System.Nullable<NetworkMode>
Remarks
Default: Network mode cannot be provided to the imported task.
TaskDefinitionArn
The arn of the task definition.
public string TaskDefinitionArn { get; set; }
Property Value
System.String
TaskRole
The name of the IAM role that grants containers in the task permission to call AWS APIs on your behalf.
public IRole TaskRole { get; set; }
Property Value
Remarks
Default: Permissions cannot be granted to the imported task.