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

*******************************************
modify_instance_network_performance_options
*******************************************



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

  

  Change the configuration of the network performance options for an existing instance.

  

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


  **Request Syntax**
  ::

    response = client.modify_instance_network_performance_options(
        InstanceId='string',
        BandwidthWeighting='default'|'vpc-1'|'ebs-1',
        DryRun=True|False
    )
    
  :type InstanceId: string
  :param InstanceId: **[REQUIRED]** 

    The ID of the instance to update.

    

  
  :type BandwidthWeighting: string
  :param BandwidthWeighting: **[REQUIRED]** 

    Specify the bandwidth weighting option to boost the associated type of baseline bandwidth, as follows:

      default  

    This option uses the standard bandwidth configuration for your instance type.

      vpc-1  

    This option boosts your networking baseline bandwidth and reduces your EBS baseline bandwidth.

      ebs-1  

    This option boosts your EBS baseline bandwidth and reduces your networking baseline bandwidth.

    

  
  :type DryRun: boolean
  :param DryRun: 

    Checks whether you have the required permissions for the operation, 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``.

    

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

    
    ::

      {
          'InstanceId': 'string',
          'BandwidthWeighting': 'default'|'vpc-1'|'ebs-1'
      }
      
    **Response Structure**

    

    - *(dict) --* 
      

      - **InstanceId** *(string) --* 

        The instance ID that was updated.

        
      

      - **BandwidthWeighting** *(string) --* 

        Contains the updated configuration for bandwidth weighting on the specified instance.

        
  