Skip to content
v2.278.0

ConsumableResourceRequirementProperty Struct ​

Information about a consumable resource required to run a job.

Example ​

ts
// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
import { aws_batch as batch } from 'aws-cdk-lib';
const consumableResourceRequirementProperty: batch.CfnJobDefinition.ConsumableResourceRequirementProperty = {
  consumableResource: 'consumableResource',
  quantity: 123,
};
python
# The code below shows an example of how to instantiate this type.
# The values are placeholders you should change.
from aws_cdk import aws_batch as batch

consumable_resource_requirement_property = batch.CfnJobDefinition.ConsumableResourceRequirementProperty(
    consumable_resource="consumableResource",
    quantity=123
)
java
// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
import software.amazon.awscdk.services.batch.*;

ConsumableResourceRequirementProperty consumableResourceRequirementProperty = ConsumableResourceRequirementProperty.builder()
        .consumableResource("consumableResource")
        .quantity(123)
        .build();
csharp
// Install: dotnet add package Amazon.CDK.Lib
// 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 consumableResourceRequirementProperty = new ConsumableResourceRequirementProperty {
    ConsumableResource = "consumableResource",
    Quantity = 123
};
go
// Install: go get github.com/aws/aws-cdk-go/awscdk/v2
// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
import "github.com/aws/aws-cdk-go/awscdk"

consumableResourceRequirementProperty := &ConsumableResourceRequirementProperty{
	ConsumableResource: jsii.String("consumableResource"),
	Quantity: jsii.Number(123),
}

Properties ​

consumableResourcestringconsumable_resourcestrconsumableResourceStringConsumableResourcestringConsumableResource*string required #
The name or ARN of the consumable resource.
quantitynumberquantityint | floatquantityNumberQuantitydoubleQuantity*float64 required #
The quantity of the consumable resource that is needed.