Skip to content

Create Consumable Resource

batch_create_consumable_resource R Documentation

Creates an Batch consumable resource

Description

Creates an Batch consumable resource.

Usage

batch_create_consumable_resource(consumableResourceName, totalQuantity,
  resourceType, tags)

Arguments

consumableResourceName

[required] The name of the consumable resource. Must be unique.

totalQuantity

The total amount of the consumable resource that is available. Must be non-negative.

resourceType

Indicates whether the resource is available to be re-used after a job completes. Can be one of:

  • REPLENISHABLE (default)

  • NON_REPLENISHABLE

tags

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 Batch resources.

Value

A list with the following syntax:

list(
  consumableResourceName = "string",
  consumableResourceArn = "string"
)

Request syntax

svc$create_consumable_resource(
  consumableResourceName = "string",
  totalQuantity = 123,
  resourceType = "string",
  tags = list(
    "string"
  )
)