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

*******************************
reject_vpc_endpoint_connections
*******************************



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

  

  Rejects VPC endpoint connection requests to your VPC endpoint service.

  

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


  **Request Syntax**
  ::

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

    The ID of the service.

    

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

    The IDs of the VPC endpoints.

    

  
    - *(string) --* 

    

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

    
    ::

      {
          'Unsuccessful': [
              {
                  'Error': {
                      'Code': 'string',
                      'Message': 'string'
                  },
                  'ResourceId': 'string'
              },
          ]
      }
      
    **Response Structure**

    

    - *(dict) --* 
      

      - **Unsuccessful** *(list) --* 

        Information about the endpoints that were not rejected, if applicable.

        
        

        - *(dict) --* 

          Information about items that were not successfully processed in a batch call.

          
          

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

            Information about the error.

            
            

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

              The error code.

              
            

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

              The error message accompanying the error code.

              
        
          

          - **ResourceId** *(string) --* 

            The ID of the resource.

            
      
    
  