Show / Hide Table of Contents

Class CfnJobDefinition.ResourceRequirementProperty

The type and amount of a resource to assign to a container.

Inheritance
System.Object
CfnJobDefinition.ResourceRequirementProperty
Implements
CfnJobDefinition.IResourceRequirementProperty
Namespace: Amazon.CDK.AWS.Batch
Assembly: Amazon.CDK.AWS.Batch.dll
Syntax (csharp)
public class ResourceRequirementProperty : Object, CfnJobDefinition.IResourceRequirementProperty
Syntax (vb)
Public Class ResourceRequirementProperty
    Inherits Object
    Implements CfnJobDefinition.IResourceRequirementProperty
Remarks

The supported resources include GPU , MEMORY , and VCPU .

Link: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-batch-jobdefinition-resourcerequirement.html

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

Constructors

ResourceRequirementProperty()

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 type specified.

Constructors

ResourceRequirementProperty()

public ResourceRequirementProperty()

Properties

Type

The type of resource to assign to a container.

public string Type { get; set; }
Property Value

System.String

Remarks

The supported resources include GPU , MEMORY , and VCPU .

Link: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-batch-jobdefinition-resourcerequirement.html#cfn-batch-jobdefinition-resourcerequirement-type

Value

The quantity of the specified resource to reserve for the container. The values vary based on the type specified.

public string Value { get; set; }
Property Value

System.String

Remarks
    GPUs aren't available for jobs that are running on Fargate resources.
    
      If you&apos;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

          Link: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-batch-jobdefinition-resourcerequirement.html#cfn-batch-jobdefinition-resourcerequirement-value

          Implements

          CfnJobDefinition.IResourceRequirementProperty
          Back to top Generated by DocFX