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

****************************************
accept_reserved_instances_exchange_quote
****************************************



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

  

  Accepts the Convertible Reserved Instance exchange quote described in the  GetReservedInstancesExchangeQuote call.

  

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


  **Request Syntax**
  ::

    response = client.accept_reserved_instances_exchange_quote(
        DryRun=True|False,
        ReservedInstanceIds=[
            'string',
        ],
        TargetConfigurations=[
            {
                'InstanceCount': 123,
                'OfferingId': '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 ReservedInstanceIds: list
  :param ReservedInstanceIds: **[REQUIRED]** 

    The IDs of the Convertible Reserved Instances to exchange for another Convertible Reserved Instance of the same or higher value.

    

  
    - *(string) --* 

    

  :type TargetConfigurations: list
  :param TargetConfigurations: 

    The configuration of the target Convertible Reserved Instance to exchange for your current Convertible Reserved Instances.

    

  
    - *(dict) --* 

      Details about the target configuration.

      

    
      - **InstanceCount** *(integer) --* 

        The number of instances the Convertible Reserved Instance offering can be applied to. This parameter is reserved and cannot be specified in a request

        

      
      - **OfferingId** *(string) --* **[REQUIRED]** 

        The Convertible Reserved Instance offering ID.

        

      
    

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

    
    ::

      {
          'ExchangeId': 'string'
      }
      
    **Response Structure**

    

    - *(dict) --* 

      The result of the exchange and whether it was ``successful``.

      
      

      - **ExchangeId** *(string) --* 

        The ID of the successful exchange.

        
  