Interface CfnJobDefinition.IResourceRequirementProperty
The type and amount of a resource to assign to a container.
Namespace: Amazon.CDK.AWS.Batch
Assembly: Amazon.CDK.Lib.dll
Syntax (csharp)
public interface CfnJobDefinition.IResourceRequirementProperty
Syntax (vb)
Public Interface CfnJobDefinition.IResourceRequirementProperty
Remarks
The supported resources include GPU , MEMORY , and VCPU .
ExampleMetadata: fixture=_generated
Examples
// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
using Amazon.CDK.AWS.Batch;
var resourceRequirementProperty = new ResourceRequirementProperty {
Type = "type",
Value = "value"
};
Synopsis
Properties
| Type | The type of resource to assign to a container. |
| Value | The quantity of the specified resource to reserve for the container. The values vary based on the |
Properties
Type
The type of resource to assign to a container.
string? Type { get; }
Property Value
Remarks
The supported resources include GPU , MEMORY , and VCPU .
Value
The quantity of the specified resource to reserve for the container. The values vary based on the type specified.
string? Value { get; }
Property Value
Remarks
GPUs aren't available for jobs that are running on Fargate resources.
If you're trying to maximize your resource utilization by providing your jobs as much memory as possible for a particular instance type, see <a href="https://docs.aws.amazon.com/batch/latest/userguide/memory-management.html">Memory management</a> in the <em>AWS Batch User Guide</em> .
For jobs that are running on Fargate resources, then value is the hard limit (in MiB), and must match one of the supported values and the VCPU values must be one of the values supported for that memory value.
The default for the Fargate On-Demand vCPU resource count quota is 6 vCPUs. For more information about Fargate quotas, see AWS Fargate quotas in the AWS General Reference .
For jobs that are running on Fargate resources, then value must match one of the supported values and the MEMORY values must be one of the values supported for that VCPU value. The supported values are 0.25, 0.5, 1, 2, 4, 8, and 16