amazonka-ds-1.4.5: Amazon Directory Service SDK.

Copyright(c) 2013-2016 Brendan Hay
LicenseMozilla Public License, v. 2.0.
MaintainerBrendan Hay <brendan.g.hay@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 #

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 #

Contains the inputs for the CreateDirectory operation.

See: createDirectory smart constructor.

Instances

Eq CreateDirectory # 
Data CreateDirectory # 

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 #

Read CreateDirectory # 
Show CreateDirectory # 
Generic CreateDirectory # 
Hashable CreateDirectory # 
ToJSON CreateDirectory # 
NFData CreateDirectory # 

Methods

rnf :: CreateDirectory -> () #

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

Request Lenses

cShortName :: Lens' CreateDirectory (Maybe Text) #

The short name of the directory, such as CORP .

cVPCSettings :: Lens' CreateDirectory (Maybe DirectoryVPCSettings) #

A DirectoryVpcSettings object that contains additional information for the operation.

cDescription :: Lens' CreateDirectory (Maybe Text) #

A textual description for the directory.

cName :: Lens' CreateDirectory Text #

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

cPassword :: Lens' CreateDirectory Text #

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 #

The size of the directory.

Destructuring the Response

createDirectoryResponse #

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 #

Contains the results of the CreateDirectory operation.

See: createDirectoryResponse smart constructor.

Instances

Eq CreateDirectoryResponse # 
Data CreateDirectoryResponse # 

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 # 
Show CreateDirectoryResponse # 
Generic CreateDirectoryResponse # 
NFData CreateDirectoryResponse # 

Methods

rnf :: CreateDirectoryResponse -> () #

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

Response Lenses

crsDirectoryId :: Lens' CreateDirectoryResponse (Maybe Text) #

The identifier of the directory that was created.

crsResponseStatus :: Lens' CreateDirectoryResponse Int #

  • - | The response status code.