maxSwap

@JvmName(name = "fqercbrjegonemcj")
suspend fun maxSwap(value: Output<Int>)
@JvmName(name = "kovwwtlmylnaxyri")
suspend fun maxSwap(value: Int?)

Parameters

value

The total amount of swap memory (in MiB) a container can use. This parameter is translated to the --memory-swap option to docker run where the value is the sum of the container memory plus the maxSwap value. For more information, see --memory-swap details in the Docker documentation. If a maxSwap value of 0 is specified, the container doesn't use swap. Accepted values are 0 or any positive integer. If the maxSwap parameter is omitted, the container doesn't use the swap configuration for the container instance that it's running on. A maxSwap value must be set for the swappiness parameter to be used.

This parameter isn't applicable to jobs that are running on Fargate resources. Don't provide it for these jobs.