amazonka-ds-2.0: Amazon Directory Service SDK.
Copyright(c) 2013-2023 Brendan Hay
LicenseMozilla Public License, v. 2.0.
MaintainerBrendan Hay
Stabilityauto-generated
Portabilitynon-portable (GHC extensions)
Safe HaskellSafe-Inferred
LanguageHaskell2010

Amazonka.DirectoryService.UnshareDirectory

Description

Stops the directory sharing between the directory owner and consumer accounts.

Synopsis

Creating a Request

data UnshareDirectory Source #

See: newUnshareDirectory smart constructor.

Constructors

UnshareDirectory' 

Fields

  • directoryId :: Text

    The identifier of the Managed Microsoft AD directory that you want to stop sharing.

  • unshareTarget :: UnshareTarget

    Identifier for the directory consumer account with whom the directory has to be unshared.

Instances

Instances details
ToJSON UnshareDirectory Source # 
Instance details

Defined in Amazonka.DirectoryService.UnshareDirectory

ToHeaders UnshareDirectory Source # 
Instance details

Defined in Amazonka.DirectoryService.UnshareDirectory

ToPath UnshareDirectory Source # 
Instance details

Defined in Amazonka.DirectoryService.UnshareDirectory

ToQuery UnshareDirectory Source # 
Instance details

Defined in Amazonka.DirectoryService.UnshareDirectory

AWSRequest UnshareDirectory Source # 
Instance details

Defined in Amazonka.DirectoryService.UnshareDirectory

Associated Types

type AWSResponse UnshareDirectory #

Generic UnshareDirectory Source # 
Instance details

Defined in Amazonka.DirectoryService.UnshareDirectory

Associated Types

type Rep UnshareDirectory :: Type -> Type #

Read UnshareDirectory Source # 
Instance details

Defined in Amazonka.DirectoryService.UnshareDirectory

Show UnshareDirectory Source # 
Instance details

Defined in Amazonka.DirectoryService.UnshareDirectory

NFData UnshareDirectory Source # 
Instance details

Defined in Amazonka.DirectoryService.UnshareDirectory

Methods

rnf :: UnshareDirectory -> () #

Eq UnshareDirectory Source # 
Instance details

Defined in Amazonka.DirectoryService.UnshareDirectory

Hashable UnshareDirectory Source # 
Instance details

Defined in Amazonka.DirectoryService.UnshareDirectory

type AWSResponse UnshareDirectory Source # 
Instance details

Defined in Amazonka.DirectoryService.UnshareDirectory

type Rep UnshareDirectory Source # 
Instance details

Defined in Amazonka.DirectoryService.UnshareDirectory

type Rep UnshareDirectory = D1 ('MetaData "UnshareDirectory" "Amazonka.DirectoryService.UnshareDirectory" "amazonka-ds-2.0-AgXI5fcN8ZxCoi4kNvhD3" 'False) (C1 ('MetaCons "UnshareDirectory'" 'PrefixI 'True) (S1 ('MetaSel ('Just "directoryId") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 Text) :*: S1 ('MetaSel ('Just "unshareTarget") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 UnshareTarget)))

newUnshareDirectory Source #

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:

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.

Constructors

UnshareDirectoryResponse' 

Fields

  • sharedDirectoryId :: Maybe Text

    Identifier of the directory stored in the directory consumer account that is to be unshared from the specified directory (DirectoryId).

  • httpStatus :: Int

    The response's http status code.

Instances

Instances details
Generic UnshareDirectoryResponse Source # 
Instance details

Defined in Amazonka.DirectoryService.UnshareDirectory

Associated Types

type Rep UnshareDirectoryResponse :: Type -> Type #

Read UnshareDirectoryResponse Source # 
Instance details

Defined in Amazonka.DirectoryService.UnshareDirectory

Show UnshareDirectoryResponse Source # 
Instance details

Defined in Amazonka.DirectoryService.UnshareDirectory

NFData UnshareDirectoryResponse Source # 
Instance details

Defined in Amazonka.DirectoryService.UnshareDirectory

Eq UnshareDirectoryResponse Source # 
Instance details

Defined in Amazonka.DirectoryService.UnshareDirectory

type Rep UnshareDirectoryResponse Source # 
Instance details

Defined in Amazonka.DirectoryService.UnshareDirectory

type Rep UnshareDirectoryResponse = D1 ('MetaData "UnshareDirectoryResponse" "Amazonka.DirectoryService.UnshareDirectory" "amazonka-ds-2.0-AgXI5fcN8ZxCoi4kNvhD3" 'False) (C1 ('MetaCons "UnshareDirectoryResponse'" 'PrefixI 'True) (S1 ('MetaSel ('Just "sharedDirectoryId") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe Text)) :*: S1 ('MetaSel ('Just "httpStatus") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 Int)))

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:

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).