EC2ServiceTaskDefinition constructor
- Input<
TaskDefinitionContainerDefinition?> ? container, - Input<
Map< ? containers,String, TaskDefinitionContainerDefinition> ?> - Input<
String?> ? cpu, - Input<
bool?> ? enableFaultInjection, - Input<
TaskDefinitionEphemeralStorage?> ? ephemeralStorage, - Input<
DefaultRoleWithPolicy?> ? executionRole, - Input<
String?> ? family, - Input<
String?> ? ipcMode, - Input<
DefaultLogGroup?> ? logGroup, - Input<
String?> ? memory, - Input<
String?> ? networkMode, - Input<
String?> ? pidMode, - Input<
List< ? placementConstraints,TaskDefinitionPlacementConstraint> ?> - Input<
TaskDefinitionProxyConfiguration?> ? proxyConfiguration, - Input<
String?> ? region, - Input<
TaskDefinitionRuntimePlatform?> ? runtimePlatform, - Input<
bool?> ? skipDestroy, - Input<
Map< ? tags,String, String> ?> - Input<
DefaultRoleWithPolicy?> ? taskRole, - Input<
bool?> ? trackLatest, - Input<
List< ? volumes,TaskDefinitionVolume> ?>
Creates a new EC2ServiceTaskDefinition.
container Single container to make a TaskDefinition from. Useful for simple cases where there aren't
containers All the containers to make a TaskDefinition from. Useful when creating a Service that will
cpu 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
enableFaultInjection Enables fault injection and allows for fault injection requests to be accepted from the task's containers. Default is false.
ephemeralStorage Amount of ephemeral storage to allocate for the task. This parameter is used to expand the total amount of ephemeral storage available, beyond the default amount, for tasks hosted on AWS Fargate. See Ephemeral Storage.
executionRole The execution role that the Amazon ECS container agent and the Docker daemon can assume.
family An optional unique name for your task definition. If not specified, then a default will be created.
ipcMode IPC resource namespace to be used for the containers in the task. Valid values: host, task, none.
logGroup A set of volume blocks that containers in your task may use.
memory The amount (in MiB) of memory used by the task. If not provided, a default will be computed
networkMode Docker networking mode to use for the containers in the task. Valid values: awsvpc, bridge, host, and none.
pidMode Process namespace to use for the containers in the task. Valid values: host, task. [placementConstraints] Configuration block for rules that are taken into consideration during task placement. Maximum number of placementConstraintsis10. Detailed below. [proxyConfiguration] Configuration block for the App Mesh proxy. Detailed below. [region] Region where this resource will be [managed](https://docs.aws.amazon.com/general/latest/gr/rande.html#regional-endpoints). Defaults to the Region set in the provider configuration. [runtimePlatform] Configuration block for runtimePlatform that containers in your task may use. [skipDestroy] Whether to retain the old revision when the resource is destroyed or replacement is necessary. Default is false. [tags] Key-value map of resource tags. If configured with a provider defaultTagsconfiguration block present, tags with matching keys will overwrite those defined at the provider-level. [taskRole] IAM role that allows your Amazon ECS container task to make calls to other AWS services. [trackLatest] Whether should track latestACTIVEtask definition on AWS or the one created with the resource stored in state. Default isfalse`. Useful in the event the task definition is modified outside of this resource.
volumes Repeatable configuration block for volumes that containers in your task may use. Detailed below.
Implementation
const EC2ServiceTaskDefinition({
this.container,
this.containers,
this.cpu,
this.enableFaultInjection,
this.ephemeralStorage,
this.executionRole,
this.family,
this.ipcMode,
this.logGroup,
this.memory,
this.networkMode,
this.pidMode,
this.placementConstraints,
this.proxyConfiguration,
this.region,
this.runtimePlatform,
this.skipDestroy,
this.tags,
this.taskRole,
this.trackLatest,
this.volumes,
});