amazonka-ds-1.4.3: 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.CreateComputer

Contents

Description

Creates a computer account in the specified directory, and joins the computer to the directory.

Synopsis

Creating a Request

createComputer Source #

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

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

data CreateComputer Source #

Contains the inputs for the CreateComputer operation.

See: createComputer smart constructor.

Instances

Eq CreateComputer Source # 
Data CreateComputer Source # 

Methods

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

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

toConstr :: CreateComputer -> Constr #

dataTypeOf :: CreateComputer -> DataType #

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

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

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

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

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

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

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

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

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

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

Read CreateComputer Source # 
Show CreateComputer Source # 
Generic CreateComputer Source # 

Associated Types

type Rep CreateComputer :: * -> * #

ToJSON CreateComputer Source # 
Hashable CreateComputer Source # 
NFData CreateComputer Source # 

Methods

rnf :: CreateComputer -> () #

AWSRequest CreateComputer Source # 
ToPath CreateComputer Source # 
ToHeaders CreateComputer Source # 
ToQuery CreateComputer Source # 
type Rep CreateComputer Source # 
type Rep CreateComputer = D1 (MetaData "CreateComputer" "Network.AWS.DirectoryService.CreateComputer" "amazonka-ds-1.4.3-CEZArOP1i373qyvcjwdjep" False) (C1 (MetaCons "CreateComputer'" PrefixI True) ((:*:) ((:*:) (S1 (MetaSel (Just Symbol "_ccComputerAttributes") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 (Maybe [Attribute]))) (S1 (MetaSel (Just Symbol "_ccOrganizationalUnitDistinguishedName") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 (Maybe Text)))) ((:*:) (S1 (MetaSel (Just Symbol "_ccDirectoryId") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 Text)) ((:*:) (S1 (MetaSel (Just Symbol "_ccComputerName") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 Text)) (S1 (MetaSel (Just Symbol "_ccPassword") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 (Sensitive Text)))))))
type Rs CreateComputer Source # 

Request Lenses

ccComputerAttributes :: Lens' CreateComputer [Attribute] Source #

An array of Attribute objects that contain any LDAP attributes to apply to the computer account.

ccOrganizationalUnitDistinguishedName :: Lens' CreateComputer (Maybe Text) Source #

The fully-qualified distinguished name of the organizational unit to place the computer account in.

ccDirectoryId :: Lens' CreateComputer Text Source #

The identifier of the directory in which to create the computer account.

ccComputerName :: Lens' CreateComputer Text Source #

The name of the computer account.

ccPassword :: 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

createComputerResponse Source #

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

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

data CreateComputerResponse Source #

Contains the results for the CreateComputer operation.

See: createComputerResponse smart constructor.

Instances

Eq CreateComputerResponse Source # 
Data CreateComputerResponse Source # 

Methods

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

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

toConstr :: CreateComputerResponse -> Constr #

dataTypeOf :: CreateComputerResponse -> DataType #

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

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

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

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

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

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

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

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

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

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

Read CreateComputerResponse Source # 
Show CreateComputerResponse Source # 
Generic CreateComputerResponse Source # 
NFData CreateComputerResponse Source # 

Methods

rnf :: CreateComputerResponse -> () #

type Rep CreateComputerResponse Source # 
type Rep CreateComputerResponse = D1 (MetaData "CreateComputerResponse" "Network.AWS.DirectoryService.CreateComputer" "amazonka-ds-1.4.3-CEZArOP1i373qyvcjwdjep" False) (C1 (MetaCons "CreateComputerResponse'" PrefixI True) ((:*:) (S1 (MetaSel (Just Symbol "_ccrsComputer") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 (Maybe Computer))) (S1 (MetaSel (Just Symbol "_ccrsResponseStatus") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 Int))))

Response Lenses

ccrsComputer :: Lens' CreateComputerResponse (Maybe Computer) Source #

A Computer object that represents the computer account.