Optional ReadonlycommandCommand array for container execution overriding the default CMD built into the container image
Optional ReadonlycontainerOptional ReadonlycpuOptional ReadonlycreateFlag controlling CloudFormation output and stack export creation for construct resources
Optional ReadonlycreateFlag controlling SSM parameter creation for construct resource references enabling
Optional ReadonlydatetimeThis option defines a multiline start pattern in Python strftime format. A log message consists of a line that matches the pattern and any following lines that don’t match the pattern. Thus the matched line is the delimiter between log messages.
Optional ReadonlydisableOptional ReadonlydnsOptional ReadonlydnsOptional ReadonlydockerOptional ReadonlydockerOptional ReadonlyentryOptional ReadonlyenvironmentEnvironment variables map for container configuration enabling application configuration
Optional ReadonlyenvironmentOptional ReadonlyessentialSpecifies whether the container is marked essential. If the essential parameter of a container is marked as true, and that container fails or stops for any reason, all other containers that are part of the task are stopped. If the essential parameter of a container is marked as false, then its failure does not affect the rest of the containers in a task. All tasks must have at least one essential container. If this parameter is omitted, a container is assumed to be essential.
Optional ReadonlyextraA list of hostnames and IP address mappings to append to the /etc/hosts file on the container.
Optional ReadonlygpuThe number of GPUs assigned to the container.
Optional ReadonlyhealthThe health check command and associated configuration parameters for the container.
Optional ReadonlyhostnameThe hostname to use for your container.
ReadonlyimageOptional ReadonlyinferenceThe inference accelerators referenced by the container.
Optional ReadonlylinuxLinux-specific modifications that are applied to the container, such as Linux kernel capabilities. For more information see KernelCapabilities.
ReadonlylogThe log group to log to
Optional ReadonlymemoryThe amount (in MiB) of memory to present to the container. If your container attempts to exceed the allocated memory, the container is terminated. At least one of memoryLimitMiB and memoryReservationMiB is required for non-Fargate services.
Optional ReadonlymemoryThe soft limit (in MiB) of memory to reserve for the container. When system memory is under heavy contention, Docker attempts to keep the container memory to this soft limit. However, your container can consume more memory when it needs to, up to either the hard limit specified with the memory parameter (if applicable), or all of the available memory on the container instance, whichever comes first. At least one of memoryLimitMiB and memoryReservationMiB is required for non-Fargate services.
Optional ReadonlymultilineThis option defines a multiline start pattern using a regular expression. A log message consists of a line that matches the pattern and any following lines that don’t match the pattern. Thus the matched line is the delimiter between log messages. This option is ignored if datetimeFormat is also configured.
ReadonlynamingMDAA naming implementation for consistent resource naming across all MDAA constructs
Optional ReadonlyportThe port mappings to add to the container definition.
Optional ReadonlyprivilegedSpecifies whether the container is marked as privileged. When this parameter is true, the container is given elevated privileges on the host container instance (similar to the root user).
Optional ReadonlypseudoWhen this parameter is true, a TTY is allocated. This parameter maps to Tty in the "Create a container section" of the
Docker Remote API and the --tty option to docker run.
Optional ReadonlyreadonlyWhen this parameter is true, the container is given read-only access to its root file system.
Optional ReadonlysecretsOptional ReadonlystartTime duration (in seconds) to wait before giving up on resolving dependencies for a container.
Optional ReadonlystopTime duration (in seconds) to wait before the container is forcefully killed if it doesn't exit normally on its own.
ReadonlystreamPrefix for the log streams The awslogs-stream-prefix option allows you to associate a log stream with the specified prefix, the container name, and the ID of the Amazon ECS task to which the container belongs. If you specify a prefix with this option, then the log stream takes the following format: prefix-name/container-name/ecs-task-id
Optional ReadonlysystemA list of namespaced kernel parameters to set in the container.
ReadonlytaskOptional ReadonlyulimitsAn array of ulimits to set in the container.
Optional ReadonlyuserThe user name to use inside the container.
Optional ReadonlyworkingThe working directory in which to run commands inside the container.
Properties for creating a Compliance ECS containerdefinition