Method: Aws::ECS::Types::RegisterTaskDefinitionRequest#memory
- Defined in:
- lib/aws-sdk-ecs/types.rb
#memory ⇒ String
The amount of memory (in MiB) used by the task. It can be expressed as an integer using MiB (for example ,‘1024`) or as a string using GB (for example, `1GB` or `1 GB`) in a task definition. String values are converted to an integer indicating the MiB when the task definition is registered.
<note markdown=“1”> Task-level CPU and memory parameters are ignored for Windows containers. We recommend specifying container-level resources for Windows containers.
</note>
If using the EC2 launch type, this field is optional.
If using the Fargate launch type, this field is required and you must use one of the following values. This determines your range of supported values for the ‘cpu` parameter.
The CPU units cannot be less than 1 vCPU when you use Windows containers on Fargate.
-
512 (0.5 GB), 1024 (1 GB), 2048 (2 GB) - Available ‘cpu` values: 256 (.25 vCPU)
-
1024 (1 GB), 2048 (2 GB), 3072 (3 GB), 4096 (4 GB) - Available ‘cpu` values: 512 (.5 vCPU)
-
2048 (2 GB), 3072 (3 GB), 4096 (4 GB), 5120 (5 GB), 6144 (6 GB), 7168 (7 GB), 8192 (8 GB) - Available ‘cpu` values: 1024 (1 vCPU)
-
Between 4096 (4 GB) and 16384 (16 GB) in increments of 1024 (1 GB)
-
Available ‘cpu` values: 2048 (2 vCPU)
-
-
Between 8192 (8 GB) and 30720 (30 GB) in increments of 1024 (1 GB)
-
Available ‘cpu` values: 4096 (4 vCPU)
-
-
Between 16 GB and 60 GB in 4 GB increments - Available ‘cpu` values: 8192 (8 vCPU)
This option requires Linux platform ‘1.4.0` or later.
-
Between 32GB and 120 GB in 8 GB increments - Available ‘cpu` values: 16384 (16 vCPU)
This option requires Linux platform ‘1.4.0` or later.
11085 11086 11087 11088 11089 11090 11091 11092 11093 11094 11095 11096 11097 11098 11099 11100 11101 11102 11103 11104 11105 11106 |
# File 'lib/aws-sdk-ecs/types.rb', line 11085 class RegisterTaskDefinitionRequest < Struct.new( :family, :task_role_arn, :execution_role_arn, :network_mode, :container_definitions, :volumes, :placement_constraints, :requires_compatibilities, :cpu, :memory, :tags, :pid_mode, :ipc_mode, :proxy_configuration, :inference_accelerators, :ephemeral_storage, :runtime_platform, :enable_fault_injection) SENSITIVE = [] include Aws::Structure end |