Create consumable resources - Amazon Batch
Services or capabilities described in Amazon Web Services documentation might vary by Region. To see the differences applicable to the China Regions, see Getting Started with Amazon Web Services in China (PDF).

Create consumable resources

You must first create the consumable resources that represent the non-CE resources that are consumed when a job is running and are only available in limited quantities. Each consumable resource has a:

  • resource name (consumableResourceName) that must be unique at the account level.

  • (optional) resource type (resourceType) that indicates whether the resource is available to be re-used after a job completes. This can be one of:

    • REPLENISHABLE (default)

    • NON_REPLENISHABLE

  • total quantity (totalQuantity) that specifies the total amount of the consumable resource available.

The maximum number of consumable resources per account is 50k.

Console:

  1. In the left navigation panel of the Amazon Batch console, choose Consumable resources.

  2. Choose Create consumable resource.

  3. Enter a unique Resource name, the Total resource quantity, and select whether the Type of resource is Replenishable or Non-replenishable.

  4. Choose Create consumable resource.

API:

Use the CreateConsumableResource API to define the resources you want.