Copyright | (c) 2013-2021 Brendan Hay |
---|---|
License | Mozilla Public License, v. 2.0. |
Maintainer | Brendan Hay <brendan.g.hay+amazonka@gmail.com> |
Stability | auto-generated |
Portability | non-portable (GHC extensions) |
Safe Haskell | None |
Stops the directory sharing between the directory owner and consumer accounts.
Synopsis
- data UnshareDirectory = UnshareDirectory' {}
- newUnshareDirectory :: Text -> UnshareTarget -> UnshareDirectory
- unshareDirectory_directoryId :: Lens' UnshareDirectory Text
- unshareDirectory_unshareTarget :: Lens' UnshareDirectory UnshareTarget
- data UnshareDirectoryResponse = UnshareDirectoryResponse' {}
- newUnshareDirectoryResponse :: Int -> UnshareDirectoryResponse
- unshareDirectoryResponse_sharedDirectoryId :: Lens' UnshareDirectoryResponse (Maybe Text)
- unshareDirectoryResponse_httpStatus :: Lens' UnshareDirectoryResponse Int
Creating a Request
data UnshareDirectory Source #
See: newUnshareDirectory
smart constructor.
UnshareDirectory' | |
|
Instances
:: Text | |
-> UnshareTarget | |
-> UnshareDirectory |
Create a value of UnshareDirectory
with all optional fields omitted.
Use generic-lens or optics to modify other optional fields.
The following record fields are available, with the corresponding lenses provided for backwards compatibility:
$sel:directoryId:UnshareDirectory'
, unshareDirectory_directoryId
- The identifier of the Managed Microsoft AD directory that you want to
stop sharing.
$sel:unshareTarget:UnshareDirectory'
, unshareDirectory_unshareTarget
- Identifier for the directory consumer account with whom the directory
has to be unshared.
Request Lenses
unshareDirectory_directoryId :: Lens' UnshareDirectory Text Source #
The identifier of the Managed Microsoft AD directory that you want to stop sharing.
unshareDirectory_unshareTarget :: Lens' UnshareDirectory UnshareTarget Source #
Identifier for the directory consumer account with whom the directory has to be unshared.
Destructuring the Response
data UnshareDirectoryResponse Source #
See: newUnshareDirectoryResponse
smart constructor.
UnshareDirectoryResponse' | |
|
Instances
newUnshareDirectoryResponse Source #
Create a value of UnshareDirectoryResponse
with all optional fields omitted.
Use generic-lens or optics to modify other optional fields.
The following record fields are available, with the corresponding lenses provided for backwards compatibility:
$sel:sharedDirectoryId:UnshareDirectoryResponse'
, unshareDirectoryResponse_sharedDirectoryId
- Identifier of the directory stored in the directory consumer account
that is to be unshared from the specified directory (DirectoryId
).
$sel:httpStatus:UnshareDirectoryResponse'
, unshareDirectoryResponse_httpStatus
- The response's http status code.
Response Lenses
unshareDirectoryResponse_sharedDirectoryId :: Lens' UnshareDirectoryResponse (Maybe Text) Source #
Identifier of the directory stored in the directory consumer account
that is to be unshared from the specified directory (DirectoryId
).
unshareDirectoryResponse_httpStatus :: Lens' UnshareDirectoryResponse Int Source #
The response's http status code.