| Copyright | (c) 2013-2015 Brendan Hay | 
|---|---|
| License | Mozilla Public License, v. 2.0. | 
| Maintainer | Brendan Hay <brendan.g.hay@gmail.com> | 
| Stability | auto-generated | 
| Portability | non-portable (GHC extensions) | 
| Safe Haskell | None | 
| Language | Haskell2010 | 
Network.AWS.DirectoryService.CreateDirectory
Description
Creates a Simple AD directory.
See: AWS API Reference for CreateDirectory.
- createDirectory :: Text -> Text -> DirectorySize -> CreateDirectory
 - data CreateDirectory
 - cShortName :: Lens' CreateDirectory (Maybe Text)
 - cVPCSettings :: Lens' CreateDirectory (Maybe DirectoryVPCSettings)
 - cDescription :: Lens' CreateDirectory (Maybe Text)
 - cName :: Lens' CreateDirectory Text
 - cPassword :: Lens' CreateDirectory Text
 - cSize :: Lens' CreateDirectory DirectorySize
 - createDirectoryResponse :: Int -> CreateDirectoryResponse
 - data CreateDirectoryResponse
 - crsDirectoryId :: Lens' CreateDirectoryResponse (Maybe Text)
 - crsResponseStatus :: Lens' CreateDirectoryResponse Int
 
Creating a Request
Arguments
| :: Text | |
| -> Text | |
| -> DirectorySize | |
| -> 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:
data CreateDirectory Source
Contains the inputs for the CreateDirectory operation.
See: createDirectory smart constructor.
Instances
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
Arguments
| :: Int | |
| -> 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 Source
Contains the results of the CreateDirectory operation.
See: createDirectoryResponse smart constructor.
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.