/** * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. * SPDX-License-Identifier: Apache-2.0. */ #pragma once #include #include #include #include namespace Aws { namespace Utils { namespace Json { class JsonValue; class JsonView; } // namespace Json } // namespace Utils namespace Batch { namespace Model { /** *

The type and amount of resources to assign to a container. The supported * resources include memory, cpu, and * nvidia.com/gpu. For more information, see Resource * management for pods and containers in the Kubernetes * documentation.

See Also:

AWS * API Reference

*/ class EksContainerResourceRequirements { public: AWS_BATCH_API EksContainerResourceRequirements(); AWS_BATCH_API EksContainerResourceRequirements(Aws::Utils::Json::JsonView jsonValue); AWS_BATCH_API EksContainerResourceRequirements& operator=(Aws::Utils::Json::JsonView jsonValue); AWS_BATCH_API Aws::Utils::Json::JsonValue Jsonize() const; /** *

The type and quantity of the resources to reserve for the container. The * values vary based on the name that's specified. Resources can be * requested using either the limits or the requests * objects.

memory

The memory hard limit (in MiB) for the * container, using whole integers, with a "Mi" suffix. If your container attempts * to exceed the memory specified, the container is terminated. You must specify at * least 4 MiB of memory for a job. memory can be specified in * limits, requests, or both. If memory is * specified in both places, then the value that's specified in limits * must be equal to the value that's specified in requests.

*

To maximize your resource utilization, provide your jobs with as much memory * as possible for the specific instance type that you are using. To learn how, see * Memory * management in the Batch User Guide.

cpu
*

The number of CPUs that's reserved for the container. Values must be an * even multiple of 0.25. cpu can be specified in * limits, requests, or both. If cpu is * specified in both places, then the value that's specified in limits * must be at least as large as the value that's specified in * requests.

nvidia.com/gpu

The number of * GPUs that's reserved for the container. Values must be a whole integer. * memory can be specified in limits, * requests, or both. If memory is specified in both * places, then the value that's specified in limits must be equal to * the value that's specified in requests.

*/ inline const Aws::Map& GetLimits() const{ return m_limits; } /** *

The type and quantity of the resources to reserve for the container. The * values vary based on the name that's specified. Resources can be * requested using either the limits or the requests * objects.

memory

The memory hard limit (in MiB) for the * container, using whole integers, with a "Mi" suffix. If your container attempts * to exceed the memory specified, the container is terminated. You must specify at * least 4 MiB of memory for a job. memory can be specified in * limits, requests, or both. If memory is * specified in both places, then the value that's specified in limits * must be equal to the value that's specified in requests.

*

To maximize your resource utilization, provide your jobs with as much memory * as possible for the specific instance type that you are using. To learn how, see * Memory * management in the Batch User Guide.

cpu
*

The number of CPUs that's reserved for the container. Values must be an * even multiple of 0.25. cpu can be specified in * limits, requests, or both. If cpu is * specified in both places, then the value that's specified in limits * must be at least as large as the value that's specified in * requests.

nvidia.com/gpu

The number of * GPUs that's reserved for the container. Values must be a whole integer. * memory can be specified in limits, * requests, or both. If memory is specified in both * places, then the value that's specified in limits must be equal to * the value that's specified in requests.

*/ inline bool LimitsHasBeenSet() const { return m_limitsHasBeenSet; } /** *

The type and quantity of the resources to reserve for the container. The * values vary based on the name that's specified. Resources can be * requested using either the limits or the requests * objects.

memory

The memory hard limit (in MiB) for the * container, using whole integers, with a "Mi" suffix. If your container attempts * to exceed the memory specified, the container is terminated. You must specify at * least 4 MiB of memory for a job. memory can be specified in * limits, requests, or both. If memory is * specified in both places, then the value that's specified in limits * must be equal to the value that's specified in requests.

*

To maximize your resource utilization, provide your jobs with as much memory * as possible for the specific instance type that you are using. To learn how, see * Memory * management in the Batch User Guide.

cpu
*

The number of CPUs that's reserved for the container. Values must be an * even multiple of 0.25. cpu can be specified in * limits, requests, or both. If cpu is * specified in both places, then the value that's specified in limits * must be at least as large as the value that's specified in * requests.

nvidia.com/gpu

The number of * GPUs that's reserved for the container. Values must be a whole integer. * memory can be specified in limits, * requests, or both. If memory is specified in both * places, then the value that's specified in limits must be equal to * the value that's specified in requests.

*/ inline void SetLimits(const Aws::Map& value) { m_limitsHasBeenSet = true; m_limits = value; } /** *

The type and quantity of the resources to reserve for the container. The * values vary based on the name that's specified. Resources can be * requested using either the limits or the requests * objects.

memory

The memory hard limit (in MiB) for the * container, using whole integers, with a "Mi" suffix. If your container attempts * to exceed the memory specified, the container is terminated. You must specify at * least 4 MiB of memory for a job. memory can be specified in * limits, requests, or both. If memory is * specified in both places, then the value that's specified in limits * must be equal to the value that's specified in requests.

*

To maximize your resource utilization, provide your jobs with as much memory * as possible for the specific instance type that you are using. To learn how, see * Memory * management in the Batch User Guide.

cpu
*

The number of CPUs that's reserved for the container. Values must be an * even multiple of 0.25. cpu can be specified in * limits, requests, or both. If cpu is * specified in both places, then the value that's specified in limits * must be at least as large as the value that's specified in * requests.

nvidia.com/gpu

The number of * GPUs that's reserved for the container. Values must be a whole integer. * memory can be specified in limits, * requests, or both. If memory is specified in both * places, then the value that's specified in limits must be equal to * the value that's specified in requests.

*/ inline void SetLimits(Aws::Map&& value) { m_limitsHasBeenSet = true; m_limits = std::move(value); } /** *

The type and quantity of the resources to reserve for the container. The * values vary based on the name that's specified. Resources can be * requested using either the limits or the requests * objects.

memory

The memory hard limit (in MiB) for the * container, using whole integers, with a "Mi" suffix. If your container attempts * to exceed the memory specified, the container is terminated. You must specify at * least 4 MiB of memory for a job. memory can be specified in * limits, requests, or both. If memory is * specified in both places, then the value that's specified in limits * must be equal to the value that's specified in requests.

*

To maximize your resource utilization, provide your jobs with as much memory * as possible for the specific instance type that you are using. To learn how, see * Memory * management in the Batch User Guide.

cpu
*

The number of CPUs that's reserved for the container. Values must be an * even multiple of 0.25. cpu can be specified in * limits, requests, or both. If cpu is * specified in both places, then the value that's specified in limits * must be at least as large as the value that's specified in * requests.

nvidia.com/gpu

The number of * GPUs that's reserved for the container. Values must be a whole integer. * memory can be specified in limits, * requests, or both. If memory is specified in both * places, then the value that's specified in limits must be equal to * the value that's specified in requests.

*/ inline EksContainerResourceRequirements& WithLimits(const Aws::Map& value) { SetLimits(value); return *this;} /** *

The type and quantity of the resources to reserve for the container. The * values vary based on the name that's specified. Resources can be * requested using either the limits or the requests * objects.

memory

The memory hard limit (in MiB) for the * container, using whole integers, with a "Mi" suffix. If your container attempts * to exceed the memory specified, the container is terminated. You must specify at * least 4 MiB of memory for a job. memory can be specified in * limits, requests, or both. If memory is * specified in both places, then the value that's specified in limits * must be equal to the value that's specified in requests.

*

To maximize your resource utilization, provide your jobs with as much memory * as possible for the specific instance type that you are using. To learn how, see * Memory * management in the Batch User Guide.

cpu
*

The number of CPUs that's reserved for the container. Values must be an * even multiple of 0.25. cpu can be specified in * limits, requests, or both. If cpu is * specified in both places, then the value that's specified in limits * must be at least as large as the value that's specified in * requests.

nvidia.com/gpu

The number of * GPUs that's reserved for the container. Values must be a whole integer. * memory can be specified in limits, * requests, or both. If memory is specified in both * places, then the value that's specified in limits must be equal to * the value that's specified in requests.

*/ inline EksContainerResourceRequirements& WithLimits(Aws::Map&& value) { SetLimits(std::move(value)); return *this;} /** *

The type and quantity of the resources to reserve for the container. The * values vary based on the name that's specified. Resources can be * requested using either the limits or the requests * objects.

memory

The memory hard limit (in MiB) for the * container, using whole integers, with a "Mi" suffix. If your container attempts * to exceed the memory specified, the container is terminated. You must specify at * least 4 MiB of memory for a job. memory can be specified in * limits, requests, or both. If memory is * specified in both places, then the value that's specified in limits * must be equal to the value that's specified in requests.

*

To maximize your resource utilization, provide your jobs with as much memory * as possible for the specific instance type that you are using. To learn how, see * Memory * management in the Batch User Guide.

cpu
*

The number of CPUs that's reserved for the container. Values must be an * even multiple of 0.25. cpu can be specified in * limits, requests, or both. If cpu is * specified in both places, then the value that's specified in limits * must be at least as large as the value that's specified in * requests.

nvidia.com/gpu

The number of * GPUs that's reserved for the container. Values must be a whole integer. * memory can be specified in limits, * requests, or both. If memory is specified in both * places, then the value that's specified in limits must be equal to * the value that's specified in requests.

*/ inline EksContainerResourceRequirements& AddLimits(const Aws::String& key, const Aws::String& value) { m_limitsHasBeenSet = true; m_limits.emplace(key, value); return *this; } /** *

The type and quantity of the resources to reserve for the container. The * values vary based on the name that's specified. Resources can be * requested using either the limits or the requests * objects.

memory

The memory hard limit (in MiB) for the * container, using whole integers, with a "Mi" suffix. If your container attempts * to exceed the memory specified, the container is terminated. You must specify at * least 4 MiB of memory for a job. memory can be specified in * limits, requests, or both. If memory is * specified in both places, then the value that's specified in limits * must be equal to the value that's specified in requests.

*

To maximize your resource utilization, provide your jobs with as much memory * as possible for the specific instance type that you are using. To learn how, see * Memory * management in the Batch User Guide.

cpu
*

The number of CPUs that's reserved for the container. Values must be an * even multiple of 0.25. cpu can be specified in * limits, requests, or both. If cpu is * specified in both places, then the value that's specified in limits * must be at least as large as the value that's specified in * requests.

nvidia.com/gpu

The number of * GPUs that's reserved for the container. Values must be a whole integer. * memory can be specified in limits, * requests, or both. If memory is specified in both * places, then the value that's specified in limits must be equal to * the value that's specified in requests.

*/ inline EksContainerResourceRequirements& AddLimits(Aws::String&& key, const Aws::String& value) { m_limitsHasBeenSet = true; m_limits.emplace(std::move(key), value); return *this; } /** *

The type and quantity of the resources to reserve for the container. The * values vary based on the name that's specified. Resources can be * requested using either the limits or the requests * objects.

memory

The memory hard limit (in MiB) for the * container, using whole integers, with a "Mi" suffix. If your container attempts * to exceed the memory specified, the container is terminated. You must specify at * least 4 MiB of memory for a job. memory can be specified in * limits, requests, or both. If memory is * specified in both places, then the value that's specified in limits * must be equal to the value that's specified in requests.

*

To maximize your resource utilization, provide your jobs with as much memory * as possible for the specific instance type that you are using. To learn how, see * Memory * management in the Batch User Guide.

cpu
*

The number of CPUs that's reserved for the container. Values must be an * even multiple of 0.25. cpu can be specified in * limits, requests, or both. If cpu is * specified in both places, then the value that's specified in limits * must be at least as large as the value that's specified in * requests.

nvidia.com/gpu

The number of * GPUs that's reserved for the container. Values must be a whole integer. * memory can be specified in limits, * requests, or both. If memory is specified in both * places, then the value that's specified in limits must be equal to * the value that's specified in requests.

*/ inline EksContainerResourceRequirements& AddLimits(const Aws::String& key, Aws::String&& value) { m_limitsHasBeenSet = true; m_limits.emplace(key, std::move(value)); return *this; } /** *

The type and quantity of the resources to reserve for the container. The * values vary based on the name that's specified. Resources can be * requested using either the limits or the requests * objects.

memory

The memory hard limit (in MiB) for the * container, using whole integers, with a "Mi" suffix. If your container attempts * to exceed the memory specified, the container is terminated. You must specify at * least 4 MiB of memory for a job. memory can be specified in * limits, requests, or both. If memory is * specified in both places, then the value that's specified in limits * must be equal to the value that's specified in requests.

*

To maximize your resource utilization, provide your jobs with as much memory * as possible for the specific instance type that you are using. To learn how, see * Memory * management in the Batch User Guide.

cpu
*

The number of CPUs that's reserved for the container. Values must be an * even multiple of 0.25. cpu can be specified in * limits, requests, or both. If cpu is * specified in both places, then the value that's specified in limits * must be at least as large as the value that's specified in * requests.

nvidia.com/gpu

The number of * GPUs that's reserved for the container. Values must be a whole integer. * memory can be specified in limits, * requests, or both. If memory is specified in both * places, then the value that's specified in limits must be equal to * the value that's specified in requests.

*/ inline EksContainerResourceRequirements& AddLimits(Aws::String&& key, Aws::String&& value) { m_limitsHasBeenSet = true; m_limits.emplace(std::move(key), std::move(value)); return *this; } /** *

The type and quantity of the resources to reserve for the container. The * values vary based on the name that's specified. Resources can be * requested using either the limits or the requests * objects.

memory

The memory hard limit (in MiB) for the * container, using whole integers, with a "Mi" suffix. If your container attempts * to exceed the memory specified, the container is terminated. You must specify at * least 4 MiB of memory for a job. memory can be specified in * limits, requests, or both. If memory is * specified in both places, then the value that's specified in limits * must be equal to the value that's specified in requests.

*

To maximize your resource utilization, provide your jobs with as much memory * as possible for the specific instance type that you are using. To learn how, see * Memory * management in the Batch User Guide.

cpu
*

The number of CPUs that's reserved for the container. Values must be an * even multiple of 0.25. cpu can be specified in * limits, requests, or both. If cpu is * specified in both places, then the value that's specified in limits * must be at least as large as the value that's specified in * requests.

nvidia.com/gpu

The number of * GPUs that's reserved for the container. Values must be a whole integer. * memory can be specified in limits, * requests, or both. If memory is specified in both * places, then the value that's specified in limits must be equal to * the value that's specified in requests.

*/ inline EksContainerResourceRequirements& AddLimits(const char* key, Aws::String&& value) { m_limitsHasBeenSet = true; m_limits.emplace(key, std::move(value)); return *this; } /** *

The type and quantity of the resources to reserve for the container. The * values vary based on the name that's specified. Resources can be * requested using either the limits or the requests * objects.

memory

The memory hard limit (in MiB) for the * container, using whole integers, with a "Mi" suffix. If your container attempts * to exceed the memory specified, the container is terminated. You must specify at * least 4 MiB of memory for a job. memory can be specified in * limits, requests, or both. If memory is * specified in both places, then the value that's specified in limits * must be equal to the value that's specified in requests.

*

To maximize your resource utilization, provide your jobs with as much memory * as possible for the specific instance type that you are using. To learn how, see * Memory * management in the Batch User Guide.

cpu
*

The number of CPUs that's reserved for the container. Values must be an * even multiple of 0.25. cpu can be specified in * limits, requests, or both. If cpu is * specified in both places, then the value that's specified in limits * must be at least as large as the value that's specified in * requests.

nvidia.com/gpu

The number of * GPUs that's reserved for the container. Values must be a whole integer. * memory can be specified in limits, * requests, or both. If memory is specified in both * places, then the value that's specified in limits must be equal to * the value that's specified in requests.

*/ inline EksContainerResourceRequirements& AddLimits(Aws::String&& key, const char* value) { m_limitsHasBeenSet = true; m_limits.emplace(std::move(key), value); return *this; } /** *

The type and quantity of the resources to reserve for the container. The * values vary based on the name that's specified. Resources can be * requested using either the limits or the requests * objects.

memory

The memory hard limit (in MiB) for the * container, using whole integers, with a "Mi" suffix. If your container attempts * to exceed the memory specified, the container is terminated. You must specify at * least 4 MiB of memory for a job. memory can be specified in * limits, requests, or both. If memory is * specified in both places, then the value that's specified in limits * must be equal to the value that's specified in requests.

*

To maximize your resource utilization, provide your jobs with as much memory * as possible for the specific instance type that you are using. To learn how, see * Memory * management in the Batch User Guide.

cpu
*

The number of CPUs that's reserved for the container. Values must be an * even multiple of 0.25. cpu can be specified in * limits, requests, or both. If cpu is * specified in both places, then the value that's specified in limits * must be at least as large as the value that's specified in * requests.

nvidia.com/gpu

The number of * GPUs that's reserved for the container. Values must be a whole integer. * memory can be specified in limits, * requests, or both. If memory is specified in both * places, then the value that's specified in limits must be equal to * the value that's specified in requests.

*/ inline EksContainerResourceRequirements& AddLimits(const char* key, const char* value) { m_limitsHasBeenSet = true; m_limits.emplace(key, value); return *this; } /** *

The type and quantity of the resources to request for the container. The * values vary based on the name that's specified. Resources can be * requested by using either the limits or the requests * objects.

memory

The memory hard limit (in MiB) for the * container, using whole integers, with a "Mi" suffix. If your container attempts * to exceed the memory specified, the container is terminated. You must specify at * least 4 MiB of memory for a job. memory can be specified in * limits, requests, or both. If memory is * specified in both, then the value that's specified in limits must * be equal to the value that's specified in requests.

*

If you're trying to maximize your resource utilization by providing your jobs * as much memory as possible for a particular instance type, see Memory * management in the Batch User Guide.

cpu
*

The number of CPUs that are reserved for the container. Values must be * an even multiple of 0.25. cpu can be specified in * limits, requests, or both. If cpu is * specified in both, then the value that's specified in limits must * be at least as large as the value that's specified in requests.

*
nvidia.com/gpu

The number of GPUs that are reserved for * the container. Values must be a whole integer. nvidia.com/gpu can * be specified in limits, requests, or both. If * nvidia.com/gpu is specified in both, then the value that's * specified in limits must be equal to the value that's specified in * requests.

*/ inline const Aws::Map& GetRequests() const{ return m_requests; } /** *

The type and quantity of the resources to request for the container. The * values vary based on the name that's specified. Resources can be * requested by using either the limits or the requests * objects.

memory

The memory hard limit (in MiB) for the * container, using whole integers, with a "Mi" suffix. If your container attempts * to exceed the memory specified, the container is terminated. You must specify at * least 4 MiB of memory for a job. memory can be specified in * limits, requests, or both. If memory is * specified in both, then the value that's specified in limits must * be equal to the value that's specified in requests.

*

If you're trying to maximize your resource utilization by providing your jobs * as much memory as possible for a particular instance type, see Memory * management in the Batch User Guide.

cpu
*

The number of CPUs that are reserved for the container. Values must be * an even multiple of 0.25. cpu can be specified in * limits, requests, or both. If cpu is * specified in both, then the value that's specified in limits must * be at least as large as the value that's specified in requests.

*
nvidia.com/gpu

The number of GPUs that are reserved for * the container. Values must be a whole integer. nvidia.com/gpu can * be specified in limits, requests, or both. If * nvidia.com/gpu is specified in both, then the value that's * specified in limits must be equal to the value that's specified in * requests.

*/ inline bool RequestsHasBeenSet() const { return m_requestsHasBeenSet; } /** *

The type and quantity of the resources to request for the container. The * values vary based on the name that's specified. Resources can be * requested by using either the limits or the requests * objects.

memory

The memory hard limit (in MiB) for the * container, using whole integers, with a "Mi" suffix. If your container attempts * to exceed the memory specified, the container is terminated. You must specify at * least 4 MiB of memory for a job. memory can be specified in * limits, requests, or both. If memory is * specified in both, then the value that's specified in limits must * be equal to the value that's specified in requests.

*

If you're trying to maximize your resource utilization by providing your jobs * as much memory as possible for a particular instance type, see Memory * management in the Batch User Guide.

cpu
*

The number of CPUs that are reserved for the container. Values must be * an even multiple of 0.25. cpu can be specified in * limits, requests, or both. If cpu is * specified in both, then the value that's specified in limits must * be at least as large as the value that's specified in requests.

*
nvidia.com/gpu

The number of GPUs that are reserved for * the container. Values must be a whole integer. nvidia.com/gpu can * be specified in limits, requests, or both. If * nvidia.com/gpu is specified in both, then the value that's * specified in limits must be equal to the value that's specified in * requests.

*/ inline void SetRequests(const Aws::Map& value) { m_requestsHasBeenSet = true; m_requests = value; } /** *

The type and quantity of the resources to request for the container. The * values vary based on the name that's specified. Resources can be * requested by using either the limits or the requests * objects.

memory

The memory hard limit (in MiB) for the * container, using whole integers, with a "Mi" suffix. If your container attempts * to exceed the memory specified, the container is terminated. You must specify at * least 4 MiB of memory for a job. memory can be specified in * limits, requests, or both. If memory is * specified in both, then the value that's specified in limits must * be equal to the value that's specified in requests.

*

If you're trying to maximize your resource utilization by providing your jobs * as much memory as possible for a particular instance type, see Memory * management in the Batch User Guide.

cpu
*

The number of CPUs that are reserved for the container. Values must be * an even multiple of 0.25. cpu can be specified in * limits, requests, or both. If cpu is * specified in both, then the value that's specified in limits must * be at least as large as the value that's specified in requests.

*
nvidia.com/gpu

The number of GPUs that are reserved for * the container. Values must be a whole integer. nvidia.com/gpu can * be specified in limits, requests, or both. If * nvidia.com/gpu is specified in both, then the value that's * specified in limits must be equal to the value that's specified in * requests.

*/ inline void SetRequests(Aws::Map&& value) { m_requestsHasBeenSet = true; m_requests = std::move(value); } /** *

The type and quantity of the resources to request for the container. The * values vary based on the name that's specified. Resources can be * requested by using either the limits or the requests * objects.

memory

The memory hard limit (in MiB) for the * container, using whole integers, with a "Mi" suffix. If your container attempts * to exceed the memory specified, the container is terminated. You must specify at * least 4 MiB of memory for a job. memory can be specified in * limits, requests, or both. If memory is * specified in both, then the value that's specified in limits must * be equal to the value that's specified in requests.

*

If you're trying to maximize your resource utilization by providing your jobs * as much memory as possible for a particular instance type, see Memory * management in the Batch User Guide.

cpu
*

The number of CPUs that are reserved for the container. Values must be * an even multiple of 0.25. cpu can be specified in * limits, requests, or both. If cpu is * specified in both, then the value that's specified in limits must * be at least as large as the value that's specified in requests.

*
nvidia.com/gpu

The number of GPUs that are reserved for * the container. Values must be a whole integer. nvidia.com/gpu can * be specified in limits, requests, or both. If * nvidia.com/gpu is specified in both, then the value that's * specified in limits must be equal to the value that's specified in * requests.

*/ inline EksContainerResourceRequirements& WithRequests(const Aws::Map& value) { SetRequests(value); return *this;} /** *

The type and quantity of the resources to request for the container. The * values vary based on the name that's specified. Resources can be * requested by using either the limits or the requests * objects.

memory

The memory hard limit (in MiB) for the * container, using whole integers, with a "Mi" suffix. If your container attempts * to exceed the memory specified, the container is terminated. You must specify at * least 4 MiB of memory for a job. memory can be specified in * limits, requests, or both. If memory is * specified in both, then the value that's specified in limits must * be equal to the value that's specified in requests.

*

If you're trying to maximize your resource utilization by providing your jobs * as much memory as possible for a particular instance type, see Memory * management in the Batch User Guide.

cpu
*

The number of CPUs that are reserved for the container. Values must be * an even multiple of 0.25. cpu can be specified in * limits, requests, or both. If cpu is * specified in both, then the value that's specified in limits must * be at least as large as the value that's specified in requests.

*
nvidia.com/gpu

The number of GPUs that are reserved for * the container. Values must be a whole integer. nvidia.com/gpu can * be specified in limits, requests, or both. If * nvidia.com/gpu is specified in both, then the value that's * specified in limits must be equal to the value that's specified in * requests.

*/ inline EksContainerResourceRequirements& WithRequests(Aws::Map&& value) { SetRequests(std::move(value)); return *this;} /** *

The type and quantity of the resources to request for the container. The * values vary based on the name that's specified. Resources can be * requested by using either the limits or the requests * objects.

memory

The memory hard limit (in MiB) for the * container, using whole integers, with a "Mi" suffix. If your container attempts * to exceed the memory specified, the container is terminated. You must specify at * least 4 MiB of memory for a job. memory can be specified in * limits, requests, or both. If memory is * specified in both, then the value that's specified in limits must * be equal to the value that's specified in requests.

*

If you're trying to maximize your resource utilization by providing your jobs * as much memory as possible for a particular instance type, see Memory * management in the Batch User Guide.

cpu
*

The number of CPUs that are reserved for the container. Values must be * an even multiple of 0.25. cpu can be specified in * limits, requests, or both. If cpu is * specified in both, then the value that's specified in limits must * be at least as large as the value that's specified in requests.

*
nvidia.com/gpu

The number of GPUs that are reserved for * the container. Values must be a whole integer. nvidia.com/gpu can * be specified in limits, requests, or both. If * nvidia.com/gpu is specified in both, then the value that's * specified in limits must be equal to the value that's specified in * requests.

*/ inline EksContainerResourceRequirements& AddRequests(const Aws::String& key, const Aws::String& value) { m_requestsHasBeenSet = true; m_requests.emplace(key, value); return *this; } /** *

The type and quantity of the resources to request for the container. The * values vary based on the name that's specified. Resources can be * requested by using either the limits or the requests * objects.

memory

The memory hard limit (in MiB) for the * container, using whole integers, with a "Mi" suffix. If your container attempts * to exceed the memory specified, the container is terminated. You must specify at * least 4 MiB of memory for a job. memory can be specified in * limits, requests, or both. If memory is * specified in both, then the value that's specified in limits must * be equal to the value that's specified in requests.

*

If you're trying to maximize your resource utilization by providing your jobs * as much memory as possible for a particular instance type, see Memory * management in the Batch User Guide.

cpu
*

The number of CPUs that are reserved for the container. Values must be * an even multiple of 0.25. cpu can be specified in * limits, requests, or both. If cpu is * specified in both, then the value that's specified in limits must * be at least as large as the value that's specified in requests.

*
nvidia.com/gpu

The number of GPUs that are reserved for * the container. Values must be a whole integer. nvidia.com/gpu can * be specified in limits, requests, or both. If * nvidia.com/gpu is specified in both, then the value that's * specified in limits must be equal to the value that's specified in * requests.

*/ inline EksContainerResourceRequirements& AddRequests(Aws::String&& key, const Aws::String& value) { m_requestsHasBeenSet = true; m_requests.emplace(std::move(key), value); return *this; } /** *

The type and quantity of the resources to request for the container. The * values vary based on the name that's specified. Resources can be * requested by using either the limits or the requests * objects.

memory

The memory hard limit (in MiB) for the * container, using whole integers, with a "Mi" suffix. If your container attempts * to exceed the memory specified, the container is terminated. You must specify at * least 4 MiB of memory for a job. memory can be specified in * limits, requests, or both. If memory is * specified in both, then the value that's specified in limits must * be equal to the value that's specified in requests.

*

If you're trying to maximize your resource utilization by providing your jobs * as much memory as possible for a particular instance type, see Memory * management in the Batch User Guide.

cpu
*

The number of CPUs that are reserved for the container. Values must be * an even multiple of 0.25. cpu can be specified in * limits, requests, or both. If cpu is * specified in both, then the value that's specified in limits must * be at least as large as the value that's specified in requests.

*
nvidia.com/gpu

The number of GPUs that are reserved for * the container. Values must be a whole integer. nvidia.com/gpu can * be specified in limits, requests, or both. If * nvidia.com/gpu is specified in both, then the value that's * specified in limits must be equal to the value that's specified in * requests.

*/ inline EksContainerResourceRequirements& AddRequests(const Aws::String& key, Aws::String&& value) { m_requestsHasBeenSet = true; m_requests.emplace(key, std::move(value)); return *this; } /** *

The type and quantity of the resources to request for the container. The * values vary based on the name that's specified. Resources can be * requested by using either the limits or the requests * objects.

memory

The memory hard limit (in MiB) for the * container, using whole integers, with a "Mi" suffix. If your container attempts * to exceed the memory specified, the container is terminated. You must specify at * least 4 MiB of memory for a job. memory can be specified in * limits, requests, or both. If memory is * specified in both, then the value that's specified in limits must * be equal to the value that's specified in requests.

*

If you're trying to maximize your resource utilization by providing your jobs * as much memory as possible for a particular instance type, see Memory * management in the Batch User Guide.

cpu
*

The number of CPUs that are reserved for the container. Values must be * an even multiple of 0.25. cpu can be specified in * limits, requests, or both. If cpu is * specified in both, then the value that's specified in limits must * be at least as large as the value that's specified in requests.

*
nvidia.com/gpu

The number of GPUs that are reserved for * the container. Values must be a whole integer. nvidia.com/gpu can * be specified in limits, requests, or both. If * nvidia.com/gpu is specified in both, then the value that's * specified in limits must be equal to the value that's specified in * requests.

*/ inline EksContainerResourceRequirements& AddRequests(Aws::String&& key, Aws::String&& value) { m_requestsHasBeenSet = true; m_requests.emplace(std::move(key), std::move(value)); return *this; } /** *

The type and quantity of the resources to request for the container. The * values vary based on the name that's specified. Resources can be * requested by using either the limits or the requests * objects.

memory

The memory hard limit (in MiB) for the * container, using whole integers, with a "Mi" suffix. If your container attempts * to exceed the memory specified, the container is terminated. You must specify at * least 4 MiB of memory for a job. memory can be specified in * limits, requests, or both. If memory is * specified in both, then the value that's specified in limits must * be equal to the value that's specified in requests.

*

If you're trying to maximize your resource utilization by providing your jobs * as much memory as possible for a particular instance type, see Memory * management in the Batch User Guide.

cpu
*

The number of CPUs that are reserved for the container. Values must be * an even multiple of 0.25. cpu can be specified in * limits, requests, or both. If cpu is * specified in both, then the value that's specified in limits must * be at least as large as the value that's specified in requests.

*
nvidia.com/gpu

The number of GPUs that are reserved for * the container. Values must be a whole integer. nvidia.com/gpu can * be specified in limits, requests, or both. If * nvidia.com/gpu is specified in both, then the value that's * specified in limits must be equal to the value that's specified in * requests.

*/ inline EksContainerResourceRequirements& AddRequests(const char* key, Aws::String&& value) { m_requestsHasBeenSet = true; m_requests.emplace(key, std::move(value)); return *this; } /** *

The type and quantity of the resources to request for the container. The * values vary based on the name that's specified. Resources can be * requested by using either the limits or the requests * objects.

memory

The memory hard limit (in MiB) for the * container, using whole integers, with a "Mi" suffix. If your container attempts * to exceed the memory specified, the container is terminated. You must specify at * least 4 MiB of memory for a job. memory can be specified in * limits, requests, or both. If memory is * specified in both, then the value that's specified in limits must * be equal to the value that's specified in requests.

*

If you're trying to maximize your resource utilization by providing your jobs * as much memory as possible for a particular instance type, see Memory * management in the Batch User Guide.

cpu
*

The number of CPUs that are reserved for the container. Values must be * an even multiple of 0.25. cpu can be specified in * limits, requests, or both. If cpu is * specified in both, then the value that's specified in limits must * be at least as large as the value that's specified in requests.

*
nvidia.com/gpu

The number of GPUs that are reserved for * the container. Values must be a whole integer. nvidia.com/gpu can * be specified in limits, requests, or both. If * nvidia.com/gpu is specified in both, then the value that's * specified in limits must be equal to the value that's specified in * requests.

*/ inline EksContainerResourceRequirements& AddRequests(Aws::String&& key, const char* value) { m_requestsHasBeenSet = true; m_requests.emplace(std::move(key), value); return *this; } /** *

The type and quantity of the resources to request for the container. The * values vary based on the name that's specified. Resources can be * requested by using either the limits or the requests * objects.

memory

The memory hard limit (in MiB) for the * container, using whole integers, with a "Mi" suffix. If your container attempts * to exceed the memory specified, the container is terminated. You must specify at * least 4 MiB of memory for a job. memory can be specified in * limits, requests, or both. If memory is * specified in both, then the value that's specified in limits must * be equal to the value that's specified in requests.

*

If you're trying to maximize your resource utilization by providing your jobs * as much memory as possible for a particular instance type, see Memory * management in the Batch User Guide.

cpu
*

The number of CPUs that are reserved for the container. Values must be * an even multiple of 0.25. cpu can be specified in * limits, requests, or both. If cpu is * specified in both, then the value that's specified in limits must * be at least as large as the value that's specified in requests.

*
nvidia.com/gpu

The number of GPUs that are reserved for * the container. Values must be a whole integer. nvidia.com/gpu can * be specified in limits, requests, or both. If * nvidia.com/gpu is specified in both, then the value that's * specified in limits must be equal to the value that's specified in * requests.

*/ inline EksContainerResourceRequirements& AddRequests(const char* key, const char* value) { m_requestsHasBeenSet = true; m_requests.emplace(key, value); return *this; } private: Aws::Map m_limits; bool m_limitsHasBeenSet = false; Aws::Map m_requests; bool m_requestsHasBeenSet = false; }; } // namespace Model } // namespace Batch } // namespace Aws