amazonka-ds-1.6.0: Amazon Directory Service SDK.

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

Network.AWS.DirectoryService.CreateDirectory

Contents

Description

Creates a Simple AD directory.

Before you call CreateDirectory , ensure that all of the required permissions have been explicitly granted through a policy. For details about what permissions are required to run the CreateDirectory operation, see AWS Directory Service API Permissions: Actions, Resources, and Conditions Reference .

Synopsis

Creating a Request

createDirectory Source #

Creates a value of CreateDirectory with the minimum fields required to make a request.

Use one of the following lenses to modify other fields as desired:

  • cShortName - The short name of the directory, such as CORP .
  • cVPCSettings - A DirectoryVpcSettings object that contains additional information for the operation.
  • cDescription - A textual description for the directory.
  • cName - The fully qualified name for the directory, such as corp.example.com .
  • cPassword - The password for the directory administrator. The directory creation process creates a directory administrator account with the username Administrator and this password.
  • cSize - The size of the directory.

data CreateDirectory Source #

Contains the inputs for the CreateDirectory operation.

See: createDirectory smart constructor.

Instances

Eq CreateDirectory Source # 
Data CreateDirectory Source # 

Methods

gfoldl :: (forall d b. Data d => c (d -> b) -> d -> c b) -> (forall g. g -> c g) -> CreateDirectory -> c CreateDirectory #

gunfold :: (forall b r. Data b => c (b -> r) -> c r) -> (forall r. r -> c r) -> Constr -> c CreateDirectory #

toConstr :: CreateDirectory -> Constr #

dataTypeOf :: CreateDirectory -> DataType #

dataCast1 :: Typeable (* -> *) t => (forall d. Data d => c (t d)) -> Maybe (c CreateDirectory) #

dataCast2 :: Typeable (* -> * -> *) t => (forall d e. (Data d, Data e) => c (t d e)) -> Maybe (c CreateDirectory) #

gmapT :: (forall b. Data b => b -> b) -> CreateDirectory -> CreateDirectory #

gmapQl :: (r -> r' -> r) -> r -> (forall d. Data d => d -> r') -> CreateDirectory -> r #

gmapQr :: (r' -> r -> r) -> r -> (forall d. Data d => d -> r') -> CreateDirectory -> r #

gmapQ :: (forall d. Data d => d -> u) -> CreateDirectory -> [u] #

gmapQi :: Int -> (forall d. Data d => d -> u) -> CreateDirectory -> u #

gmapM :: Monad m => (forall d. Data d => d -> m d) -> CreateDirectory -> m CreateDirectory #

gmapMp :: MonadPlus m => (forall d. Data d => d -> m d) -> CreateDirectory -> m CreateDirectory #

gmapMo :: MonadPlus m => (forall d. Data d => d -> m d) -> CreateDirectory -> m CreateDirectory #

Show CreateDirectory Source # 
Generic CreateDirectory Source # 
Hashable CreateDirectory Source # 
ToJSON CreateDirectory Source # 
NFData CreateDirectory Source # 

Methods

rnf :: CreateDirectory -> () #

AWSRequest CreateDirectory Source # 
ToHeaders CreateDirectory Source # 
ToPath CreateDirectory Source # 
ToQuery CreateDirectory Source # 
type Rep CreateDirectory Source # 
type Rs CreateDirectory Source # 

Request Lenses

cShortName :: Lens' CreateDirectory (Maybe Text) Source #

The short name of the directory, such as CORP .

cVPCSettings :: Lens' CreateDirectory (Maybe DirectoryVPCSettings) Source #

A DirectoryVpcSettings object that contains additional information for the operation.

cDescription :: Lens' CreateDirectory (Maybe Text) Source #

A textual description for the directory.

cName :: Lens' CreateDirectory Text Source #

The fully qualified name for the directory, such as corp.example.com .

cPassword :: Lens' CreateDirectory Text Source #

The password for the directory administrator. The directory creation process creates a directory administrator account with the username Administrator and this password.

cSize :: Lens' CreateDirectory DirectorySize Source #

The size of the directory.

Destructuring the Response

createDirectoryResponse Source #

Creates a value of CreateDirectoryResponse with the minimum fields required to make a request.

Use one of the following lenses to modify other fields as desired:

data CreateDirectoryResponse Source #

Contains the results of the CreateDirectory operation.

See: createDirectoryResponse smart constructor.

Instances

Eq CreateDirectoryResponse Source # 
Data CreateDirectoryResponse Source # 

Methods

gfoldl :: (forall d b. Data d => c (d -> b) -> d -> c b) -> (forall g. g -> c g) -> CreateDirectoryResponse -> c CreateDirectoryResponse #

gunfold :: (forall b r. Data b => c (b -> r) -> c r) -> (forall r. r -> c r) -> Constr -> c CreateDirectoryResponse #

toConstr :: CreateDirectoryResponse -> Constr #

dataTypeOf :: CreateDirectoryResponse -> DataType #

dataCast1 :: Typeable (* -> *) t => (forall d. Data d => c (t d)) -> Maybe (c CreateDirectoryResponse) #

dataCast2 :: Typeable (* -> * -> *) t => (forall d e. (Data d, Data e) => c (t d e)) -> Maybe (c CreateDirectoryResponse) #

gmapT :: (forall b. Data b => b -> b) -> CreateDirectoryResponse -> CreateDirectoryResponse #

gmapQl :: (r -> r' -> r) -> r -> (forall d. Data d => d -> r') -> CreateDirectoryResponse -> r #

gmapQr :: (r' -> r -> r) -> r -> (forall d. Data d => d -> r') -> CreateDirectoryResponse -> r #

gmapQ :: (forall d. Data d => d -> u) -> CreateDirectoryResponse -> [u] #

gmapQi :: Int -> (forall d. Data d => d -> u) -> CreateDirectoryResponse -> u #

gmapM :: Monad m => (forall d. Data d => d -> m d) -> CreateDirectoryResponse -> m CreateDirectoryResponse #

gmapMp :: MonadPlus m => (forall d. Data d => d -> m d) -> CreateDirectoryResponse -> m CreateDirectoryResponse #

gmapMo :: MonadPlus m => (forall d. Data d => d -> m d) -> CreateDirectoryResponse -> m CreateDirectoryResponse #

Read CreateDirectoryResponse Source # 
Show CreateDirectoryResponse Source # 
Generic CreateDirectoryResponse Source # 
NFData CreateDirectoryResponse Source # 

Methods

rnf :: CreateDirectoryResponse -> () #

type Rep CreateDirectoryResponse Source # 
type Rep CreateDirectoryResponse = D1 * (MetaData "CreateDirectoryResponse" "Network.AWS.DirectoryService.CreateDirectory" "amazonka-ds-1.6.0-ITYNjgCo7B1AqxAGagl7t5" False) (C1 * (MetaCons "CreateDirectoryResponse'" PrefixI True) ((:*:) * (S1 * (MetaSel (Just Symbol "_crsDirectoryId") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 * (Maybe Text))) (S1 * (MetaSel (Just Symbol "_crsResponseStatus") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 * Int))))

Response Lenses

crsDirectoryId :: Lens' CreateDirectoryResponse (Maybe Text) Source #

The identifier of the directory that was created.

crsResponseStatus :: Lens' CreateDirectoryResponse Int Source #

  • - | The response status code.