Interface TaskDefinitionArgs

interface TaskDefinitionArgs {
    containers: Record<string, Container>;
    cpu?: any;
    executionRole?: any;
    family?: any;
    inferenceAccelerators?: any;
    ipcMode?: any;
    logGroup?: any;
    memory?: any;
    networkMode?: any;
    pidMode?: any;
    placementConstraints?: any;
    proxyConfiguration?: any;
    requiresCompatibilities: Input<["FARGATE"] | ["EC2"]>;
    tags?: any;
    taskRole?: any;
    volumes?: any;
    vpc?: classic.ec2.Vpc;
}

Properties

containers: Record<string, Container>

All the containers to make a ClusterTaskDefinition from. Useful when creating a ClusterService that will contain many containers within.

Either [container] or [containers] must be provided.

cpu?: any

The number of cpu units used by the task. If not provided, a default will be computed based on the cumulative needs specified by [containerDefinitions]

executionRole?: any

The execution role that the Amazon ECS container agent and the Docker daemon can assume.

If undefined, a default will be created for the task. If null, no task will be created.

family?: any

An optional family name for the Task Definition. If not specified, then a suitable default will be created.

inferenceAccelerators?: any

Configuration block(s) with Inference Accelerators settings. Detailed below.

ipcMode?: any

The IPC resource namespace to be used for the containers in the task The valid values are host, task, and none.

logGroup?: any

Log group for logging information related to the service. If undefined a default instance with a one-day retention policy will be created. If null, no log group will be created.

memory?: any

The amount (in MiB) of memory used by the task. If not provided, a default will be computed based on the cumulative needs specified by [containerDefinitions]

networkMode?: any

The Docker networking mode to use for the containers in the task. The valid values are none, bridge, awsvpc, and host.

pidMode?: any

The process namespace to use for the containers in the task. The valid values are host and task.

placementConstraints?: any

A set of placement constraints rules that are taken into consideration during task placement. Maximum number of placement_constraints is 10.

proxyConfiguration?: any

The proxy configuration details for the App Mesh proxy.

requiresCompatibilities: Input<["FARGATE"] | ["EC2"]>

A set of launch types required by the task. The valid values are EC2 and FARGATE.

tags?: any

Key-value mapping of resource tags

taskRole?: any

IAM role that allows your Amazon ECS container task to make calls to other AWS services. If undefined, a default will be created for the task. If null, no task will be created.

volumes?: any

A set of volume blocks that containers in your task may use.

The vpc that the service for this task will run in. Does not normally need to be explicitly provided as it will be inferred from the cluster the service is associated with.

Generated using TypeDoc