Skip to content
v2.274.0

CfnConsumableResourceProps Struct ​

Properties for defining a CfnConsumableResource.

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 cfnConsumableResourceProps: batch.CfnConsumableResourceProps = {
  resourceType: 'resourceType',
  totalQuantity: 123,

  // the properties below are optional
  consumableResourceName: 'consumableResourceName',
  tags: {
    tagsKey: 'tags',
  },
};

Properties ​

consumableResourceNameoptionalstringconsumable_resource_nameoptionalstrconsumableResourceNameoptionalStringConsumableResourceNameoptionalstringConsumableResourceNameoptional*string#
The name of the consumable resource.
resourceTypestringresource_typestrresourceTypeStringResourceTypestringResourceType*stringrequired#
Indicates whether the resource is available to be re-used after a job completes. Can be one of:.
  • REPLENISHABLE
  • NON_REPLENISHABLE
tagsoptional{ [key: string]: string }tagsoptionaltyping.Mapping[str, str]tagsoptionalMap<String, String>TagsoptionalIDictionary<string, string>Tagsoptional*map[string]*string#
The tags that you apply to the consumable resource to help you categorize and organize your resources.

Each tag consists of a key and an optional value. For more information, see Tagging your AWS Batch resources .

totalQuantitynumbertotal_quantityint | floattotalQuantityNumberTotalQuantitydoubleTotalQuantity*float64required#
The total amount of the consumable resource that is available.