:doc:`Batch <../../batch>` / Client / create_consumable_resource

**************************
create_consumable_resource
**************************



.. py:method:: Batch.Client.create_consumable_resource(**kwargs)

  

  Creates an Batch consumable resource.

  

  See also: `AWS API Documentation <https://docs.aws.amazon.com/goto/WebAPI/batch-2016-08-10/CreateConsumableResource>`_  


  **Request Syntax**
  ::

    response = client.create_consumable_resource(
        consumableResourceName='string',
        totalQuantity=123,
        resourceType='string',
        tags={
            'string': 'string'
        }
    )
    
  :type consumableResourceName: string
  :param consumableResourceName: **[REQUIRED]** 

    The name of the consumable resource. Must be unique.

    

  
  :type totalQuantity: integer
  :param totalQuantity: 

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

    

  
  :type resourceType: string
  :param resourceType: 

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

     

    
    * ``REPLENISHABLE`` (default)
     
    * ``NON_REPLENISHABLE``
    

    

  
  :type tags: dict
  :param 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 <https://docs.aws.amazon.com/batch/latest/userguide/using-tags.html>`__.

    

  
    - *(string) --* 

    
      - *(string) --* 

      


  
  :rtype: dict
  :returns: 
    
    **Response Syntax**

    
    ::

      {
          'consumableResourceName': 'string',
          'consumableResourceArn': 'string'
      }
      
    **Response Structure**

    

    - *(dict) --* 
      

      - **consumableResourceName** *(string) --* 

        The name of the consumable resource.

        
      

      - **consumableResourceArn** *(string) --* 

        The Amazon Resource Name (ARN) of the consumable resource.

        
  
  **Exceptions**
  
  *   :py:class:`Batch.Client.exceptions.ClientException`

  
  *   :py:class:`Batch.Client.exceptions.ServerException`

  