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

************************************************
modify_vpc_endpoint_service_payer_responsibility
************************************************



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

  

  Modifies the payer responsibility for your VPC endpoint service.

  

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


  **Request Syntax**
  ::

    response = client.modify_vpc_endpoint_service_payer_responsibility(
        DryRun=True|False,
        ServiceId='string',
        PayerResponsibility='ServiceOwner'
    )
    
  :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 ServiceId: string
  :param ServiceId: **[REQUIRED]** 

    The ID of the service.

    

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

    The entity that is responsible for the endpoint costs. The default is the endpoint owner. If you set the payer responsibility to the service owner, you cannot set it back to the endpoint owner.

    

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

    
    ::

      {
          'ReturnValue': True|False
      }
      
    **Response Structure**

    

    - *(dict) --* 
      

      - **ReturnValue** *(boolean) --* 

        Returns ``true`` if the request succeeds; otherwise, it returns an error.

        
  