Copyright | (c) 2013-2017 Brendan Hay |
---|---|
License | Mozilla Public License, v. 2.0. |
Maintainer | Brendan Hay <[email protected]> |
Stability | auto-generated |
Portability | non-portable (GHC extensions) |
Safe Haskell | None |
Language | Haskell2010 |
Network.AWS.DirectoryService.CreateDirectory
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 .
- 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:
cShortName
- The short name of the directory, such asCORP
.cVPCSettings
- ADirectoryVpcSettings
object that contains additional information for the operation.cDescription
- A textual description for the directory.cName
- The fully qualified name for the directory, such ascorp.example.com
.cPassword
- The password for the directory administrator. The directory creation process creates a directory administrator account with the usernameAdministrator
and this password.cSize
- The size of the directory.
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:
crsDirectoryId
- The identifier of the directory that was created.crsResponseStatus
- -- | The response status code.
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.