libZSservicesZSamazonka-dsZSamazonka-ds
Copyright(c) 2013-2021 Brendan Hay
LicenseMozilla Public License, v. 2.0.
MaintainerBrendan Hay <brendan.g.hay+amazonka@gmail.com>
Stabilityauto-generated
Portabilitynon-portable (GHC extensions)
Safe HaskellNone

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
Eq UnshareDirectory Source # 
Instance details

Defined in Amazonka.DirectoryService.UnshareDirectory

Read UnshareDirectory Source # 
Instance details

Defined in Amazonka.DirectoryService.UnshareDirectory

Show UnshareDirectory Source # 
Instance details

Defined in Amazonka.DirectoryService.UnshareDirectory

Generic UnshareDirectory Source # 
Instance details

Defined in Amazonka.DirectoryService.UnshareDirectory

Associated Types

type Rep UnshareDirectory :: Type -> Type #

NFData UnshareDirectory Source # 
Instance details

Defined in Amazonka.DirectoryService.UnshareDirectory

Methods

rnf :: UnshareDirectory -> () #

Hashable UnshareDirectory Source # 
Instance details

Defined in Amazonka.DirectoryService.UnshareDirectory

ToJSON UnshareDirectory Source # 
Instance details

Defined in Amazonka.DirectoryService.UnshareDirectory

AWSRequest UnshareDirectory Source # 
Instance details

Defined in Amazonka.DirectoryService.UnshareDirectory

Associated Types

type AWSResponse 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

type Rep UnshareDirectory Source # 
Instance details

Defined in Amazonka.DirectoryService.UnshareDirectory

type Rep UnshareDirectory = D1 ('MetaData "UnshareDirectory" "Amazonka.DirectoryService.UnshareDirectory" "libZSservicesZSamazonka-dsZSamazonka-ds" 'False) (C1 ('MetaCons "UnshareDirectory'" 'PrefixI 'True) (S1 ('MetaSel ('Just "directoryId") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 Text) :*: S1 ('MetaSel ('Just "unshareTarget") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 UnshareTarget)))
type AWSResponse UnshareDirectory Source # 
Instance details

Defined in Amazonka.DirectoryService.UnshareDirectory

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:

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

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
Eq UnshareDirectoryResponse Source # 
Instance details

Defined in Amazonka.DirectoryService.UnshareDirectory

Read UnshareDirectoryResponse Source # 
Instance details

Defined in Amazonka.DirectoryService.UnshareDirectory

Show UnshareDirectoryResponse Source # 
Instance details

Defined in Amazonka.DirectoryService.UnshareDirectory

Generic UnshareDirectoryResponse Source # 
Instance details

Defined in Amazonka.DirectoryService.UnshareDirectory

Associated Types

type Rep UnshareDirectoryResponse :: Type -> Type #

NFData 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" "libZSservicesZSamazonka-dsZSamazonka-ds" '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:

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