Select your cookie preferences

We use cookies and similar tools to enhance your experience, provide our services, deliver relevant advertising, and make improvements. Approved third parties also use these tools to help us deliver advertising and provide certain site features.

reject_shared_directory

reject_shared_directory(**kwargs)

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

See also: AWS API Documentation

Request Syntax

response = client.reject_shared_directory(
    SharedDirectoryId='string'
)
Parameters
SharedDirectoryId (string) --

[REQUIRED]

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

Return type
dict
Returns
Response Syntax
{
    'SharedDirectoryId': 'string'
}

Response Structure

  • (dict) --
    • SharedDirectoryId (string) --

      Identifier of the shared directory in the directory consumer account.

Exceptions

  • DirectoryService.Client.exceptions.InvalidParameterException
  • DirectoryService.Client.exceptions.EntityDoesNotExistException
  • DirectoryService.Client.exceptions.DirectoryAlreadySharedException
  • DirectoryService.Client.exceptions.ClientException
  • DirectoryService.Client.exceptions.ServiceException