Class TaskDefinitionArgs
Inherited Members
Namespace: Pulumi.Aws.Ecs
Assembly: Pulumi.Aws.dll
Syntax
public sealed class TaskDefinitionArgs : ResourceArgs
Constructors
View SourceTaskDefinitionArgs()
Declaration
public TaskDefinitionArgs()
Properties
View SourceContainerDefinitions
A list of valid [container definitions] (http://docs.aws.amazon.com/AmazonECS/latest/APIReference/API_ContainerDefinition.html) provided as a single valid JSON document. Please note that you should only provide values that are part of the container definition document. For a detailed description of what parameters are available, see the [Task Definition Parameters] (https://docs.aws.amazon.com/AmazonECS/latest/developerguide/task_definition_parameters.html) section from the official Developer Guide.
Declaration
public Input<string> ContainerDefinitions { get; set; }
Property Value
| Type | Description |
|---|---|
| Input<System.String> |
Cpu
The number of cpu units used by the task. If the requires_compatibilities is FARGATE this field is required.
Declaration
public Input<string> Cpu { get; set; }
Property Value
| Type | Description |
|---|---|
| Input<System.String> |
ExecutionRoleArn
The Amazon Resource Name (ARN) of the task execution role that the Amazon ECS container agent and the Docker daemon can assume.
Declaration
public Input<string> ExecutionRoleArn { get; set; }
Property Value
| Type | Description |
|---|---|
| Input<System.String> |
Family
A unique name for your task definition.
Declaration
public Input<string> Family { get; set; }
Property Value
| Type | Description |
|---|---|
| Input<System.String> |
InferenceAccelerators
Configuration block(s) with Inference Accelerators settings. Detailed below.
Declaration
public InputList<TaskDefinitionInferenceAcceleratorArgs> InferenceAccelerators { get; set; }
Property Value
| Type | Description |
|---|---|
| InputList<TaskDefinitionInferenceAcceleratorArgs> |
IpcMode
The IPC resource namespace to be used for the containers in the task The valid values are host, task, and none.
Declaration
public Input<string> IpcMode { get; set; }
Property Value
| Type | Description |
|---|---|
| Input<System.String> |
Memory
The amount (in MiB) of memory used by the task. If the requires_compatibilities is FARGATE this field is required.
Declaration
public Input<string> Memory { get; set; }
Property Value
| Type | Description |
|---|---|
| Input<System.String> |
NetworkMode
The Docker networking mode to use for the containers in the task. The valid values are none, bridge, awsvpc, and host.
Declaration
public Input<string> NetworkMode { get; set; }
Property Value
| Type | Description |
|---|---|
| Input<System.String> |
PidMode
The process namespace to use for the containers in the task. The valid values are host and task.
Declaration
public Input<string> PidMode { get; set; }
Property Value
| Type | Description |
|---|---|
| Input<System.String> |
PlacementConstraints
A set of placement constraints rules that are taken into consideration during task placement. Maximum number of placement_constraints is 10.
Declaration
public InputList<TaskDefinitionPlacementConstraintArgs> PlacementConstraints { get; set; }
Property Value
| Type | Description |
|---|---|
| InputList<TaskDefinitionPlacementConstraintArgs> |
ProxyConfiguration
The proxy configuration details for the App Mesh proxy.
Declaration
public Input<TaskDefinitionProxyConfigurationArgs> ProxyConfiguration { get; set; }
Property Value
| Type | Description |
|---|---|
| Input<TaskDefinitionProxyConfigurationArgs> |
RequiresCompatibilities
A set of launch types required by the task. The valid values are EC2 and FARGATE.
Declaration
public InputList<string> RequiresCompatibilities { get; set; }
Property Value
| Type | Description |
|---|---|
| InputList<System.String> |
Tags
Key-value map of resource tags
Declaration
public InputMap<object> Tags { get; set; }
Property Value
| Type | Description |
|---|---|
| InputMap<System.Object> |
TaskRoleArn
The ARN of IAM role that allows your Amazon ECS container task to make calls to other AWS services.
Declaration
public Input<string> TaskRoleArn { get; set; }
Property Value
| Type | Description |
|---|---|
| Input<System.String> |
Volumes
A set of volume blocks that containers in your task may use.
Declaration
public InputList<TaskDefinitionVolumeArgs> Volumes { get; set; }
Property Value
| Type | Description |
|---|---|
| InputList<TaskDefinitionVolumeArgs> |