:doc:`DirectoryService <../../ds>` / Client / reject_shared_directory

***********************
reject_shared_directory
***********************



.. py:method:: DirectoryService.Client.reject_shared_directory(**kwargs)

  

  Rejects a directory sharing request that was sent from the directory owner account.

  

  See also: `AWS API Documentation <https://docs.aws.amazon.com/goto/WebAPI/ds-2015-04-16/RejectSharedDirectory>`_  


  **Request Syntax**
  ::

    response = client.reject_shared_directory(
        SharedDirectoryId='string'
    )
    
  :type SharedDirectoryId: string
  :param SharedDirectoryId: **[REQUIRED]** 

    Identifier of the shared directory in the directory consumer account. This identifier is different for each directory owner account.

    

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

    
    ::

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

    

    - *(dict) --* 
      

      - **SharedDirectoryId** *(string) --* 

        Identifier of the shared directory in the directory consumer account.

        
  
  **Exceptions**
  
  *   :py:class:`DirectoryService.Client.exceptions.InvalidParameterException`

  
  *   :py:class:`DirectoryService.Client.exceptions.EntityDoesNotExistException`

  
  *   :py:class:`DirectoryService.Client.exceptions.DirectoryAlreadySharedException`

  
  *   :py:class:`DirectoryService.Client.exceptions.ClientException`

  
  *   :py:class:`DirectoryService.Client.exceptions.ServiceException`

  