Copyright | (c) 2013-2021 Brendan Hay |
---|---|
License | Mozilla Public License, v. 2.0. |
Maintainer | Brendan Hay <brendan.g.hay+amazonka@gmail.com> |
Stability | auto-generated |
Portability | non-portable (GHC extensions) |
Safe Haskell | None |
Creates an Active Directory computer object in the specified directory.
Synopsis
- data CreateComputer = CreateComputer' {}
- newCreateComputer :: Text -> Text -> Text -> CreateComputer
- createComputer_computerAttributes :: Lens' CreateComputer (Maybe [Attribute])
- createComputer_organizationalUnitDistinguishedName :: Lens' CreateComputer (Maybe Text)
- createComputer_directoryId :: Lens' CreateComputer Text
- createComputer_computerName :: Lens' CreateComputer Text
- createComputer_password :: Lens' CreateComputer Text
- data CreateComputerResponse = CreateComputerResponse' {
- computer :: Maybe Computer
- httpStatus :: Int
- newCreateComputerResponse :: Int -> CreateComputerResponse
- createComputerResponse_computer :: Lens' CreateComputerResponse (Maybe Computer)
- createComputerResponse_httpStatus :: Lens' CreateComputerResponse Int
Creating a Request
data CreateComputer Source #
Contains the inputs for the CreateComputer operation.
See: newCreateComputer
smart constructor.
CreateComputer' | |
|
Instances
:: Text | |
-> Text | |
-> Text | |
-> CreateComputer |
Create a value of CreateComputer
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:computerAttributes:CreateComputer'
, createComputer_computerAttributes
- An array of Attribute objects that contain any LDAP attributes to apply
to the computer account.
$sel:organizationalUnitDistinguishedName:CreateComputer'
, createComputer_organizationalUnitDistinguishedName
- The fully-qualified distinguished name of the organizational unit to
place the computer account in.
$sel:directoryId:CreateComputer'
, createComputer_directoryId
- The identifier of the directory in which to create the computer account.
$sel:computerName:CreateComputer'
, createComputer_computerName
- The name of the computer account.
$sel:password:CreateComputer'
, createComputer_password
- A one-time password that is used to join the computer to the directory.
You should generate a random, strong password to use for this parameter.
Request Lenses
createComputer_computerAttributes :: Lens' CreateComputer (Maybe [Attribute]) Source #
An array of Attribute objects that contain any LDAP attributes to apply to the computer account.
createComputer_organizationalUnitDistinguishedName :: Lens' CreateComputer (Maybe Text) Source #
The fully-qualified distinguished name of the organizational unit to place the computer account in.
createComputer_directoryId :: Lens' CreateComputer Text Source #
The identifier of the directory in which to create the computer account.
createComputer_computerName :: Lens' CreateComputer Text Source #
The name of the computer account.
createComputer_password :: Lens' CreateComputer Text Source #
A one-time password that is used to join the computer to the directory. You should generate a random, strong password to use for this parameter.
Destructuring the Response
data CreateComputerResponse Source #
Contains the results for the CreateComputer operation.
See: newCreateComputerResponse
smart constructor.
CreateComputerResponse' | |
|
Instances
newCreateComputerResponse Source #
Create a value of CreateComputerResponse
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:computer:CreateComputerResponse'
, createComputerResponse_computer
- A Computer object that represents the computer account.
$sel:httpStatus:CreateComputerResponse'
, createComputerResponse_httpStatus
- The response's http status code.
Response Lenses
createComputerResponse_computer :: Lens' CreateComputerResponse (Maybe Computer) Source #
A Computer object that represents the computer account.
createComputerResponse_httpStatus :: Lens' CreateComputerResponse Int Source #
The response's http status code.