:doc:`EC2 <../../ec2>` / Client / delete_queued_reserved_instances

********************************
delete_queued_reserved_instances
********************************



.. py:method:: EC2.Client.delete_queued_reserved_instances(**kwargs)

  

  Deletes the queued purchases for the specified Reserved Instances.

  

  See also: `AWS API Documentation <https://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/DeleteQueuedReservedInstances>`_  


  **Request Syntax**
  ::

    response = client.delete_queued_reserved_instances(
        DryRun=True|False,
        ReservedInstancesIds=[
            'string',
        ]
    )
    
  :type DryRun: boolean
  :param DryRun: 

    Checks whether you have the required permissions for the action, without actually making the request, and provides an error response. If you have the required permissions, the error response is ``DryRunOperation``. Otherwise, it is ``UnauthorizedOperation``.

    

  
  :type ReservedInstancesIds: list
  :param ReservedInstancesIds: **[REQUIRED]** 

    The IDs of the Reserved Instances.

    

  
    - *(string) --* 

    

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

    
    ::

      {
          'SuccessfulQueuedPurchaseDeletions': [
              {
                  'ReservedInstancesId': 'string'
              },
          ],
          'FailedQueuedPurchaseDeletions': [
              {
                  'Error': {
                      'Code': 'reserved-instances-id-invalid'|'reserved-instances-not-in-queued-state'|'unexpected-error',
                      'Message': 'string'
                  },
                  'ReservedInstancesId': 'string'
              },
          ]
      }
      
    **Response Structure**

    

    - *(dict) --* 
      

      - **SuccessfulQueuedPurchaseDeletions** *(list) --* 

        Information about the queued purchases that were successfully deleted.

        
        

        - *(dict) --* 

          Describes a Reserved Instance whose queued purchase was successfully deleted.

          
          

          - **ReservedInstancesId** *(string) --* 

            The ID of the Reserved Instance.

            
      
    
      

      - **FailedQueuedPurchaseDeletions** *(list) --* 

        Information about the queued purchases that could not be deleted.

        
        

        - *(dict) --* 

          Describes a Reserved Instance whose queued purchase was not deleted.

          
          

          - **Error** *(dict) --* 

            The error.

            
            

            - **Code** *(string) --* 

              The error code.

              
            

            - **Message** *(string) --* 

              The error message.

              
        
          

          - **ReservedInstancesId** *(string) --* 

            The ID of the Reserved Instance.

            
      
    
  