amazonka-workdocs-1.5.0: Amazon WorkDocs SDK.

Copyright(c) 2013-2017 Brendan Hay
LicenseMozilla Public License, v. 2.0.
MaintainerBrendan Hay <brendan.g.hay+amazonka@gmail.com>
Stabilityauto-generated
Portabilitynon-portable (GHC extensions)
Safe HaskellNone
LanguageHaskell2010

Network.AWS.WorkDocs.ActivateUser

Contents

Description

Activates the specified user. Only active users can access Amazon WorkDocs.

Synopsis

Creating a Request

activateUser Source #

Arguments

:: Text

auUserId

-> ActivateUser 

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

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

  • auAuthenticationToken - Amazon WorkDocs authentication token. This field should not be set when using administrative API actions, as in accessing the API using AWS credentials.
  • auUserId - The ID of the user.

data ActivateUser Source #

See: activateUser smart constructor.

Instances

Eq ActivateUser Source # 
Data ActivateUser Source # 

Methods

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

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

toConstr :: ActivateUser -> Constr #

dataTypeOf :: ActivateUser -> DataType #

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

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

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

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

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

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

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

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

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

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

Show ActivateUser Source # 
Generic ActivateUser Source # 

Associated Types

type Rep ActivateUser :: * -> * #

Hashable ActivateUser Source # 
ToJSON ActivateUser Source # 
NFData ActivateUser Source # 

Methods

rnf :: ActivateUser -> () #

AWSRequest ActivateUser Source # 
ToQuery ActivateUser Source # 
ToPath ActivateUser Source # 
ToHeaders ActivateUser Source # 
type Rep ActivateUser Source # 
type Rep ActivateUser = D1 (MetaData "ActivateUser" "Network.AWS.WorkDocs.ActivateUser" "amazonka-workdocs-1.5.0-BQCQjzmZAyNCgdficzQnx9" False) (C1 (MetaCons "ActivateUser'" PrefixI True) ((:*:) (S1 (MetaSel (Just Symbol "_auAuthenticationToken") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 (Maybe (Sensitive Text)))) (S1 (MetaSel (Just Symbol "_auUserId") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 Text))))
type Rs ActivateUser Source # 

Request Lenses

auAuthenticationToken :: Lens' ActivateUser (Maybe Text) Source #

Amazon WorkDocs authentication token. This field should not be set when using administrative API actions, as in accessing the API using AWS credentials.

auUserId :: Lens' ActivateUser Text Source #

The ID of the user.

Destructuring the Response

activateUserResponse Source #

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

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

data ActivateUserResponse Source #

See: activateUserResponse smart constructor.

Instances

Eq ActivateUserResponse Source # 
Data ActivateUserResponse Source # 

Methods

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

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

toConstr :: ActivateUserResponse -> Constr #

dataTypeOf :: ActivateUserResponse -> DataType #

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

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

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

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

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

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

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

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

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

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

Read ActivateUserResponse Source # 
Show ActivateUserResponse Source # 
Generic ActivateUserResponse Source # 
NFData ActivateUserResponse Source # 

Methods

rnf :: ActivateUserResponse -> () #

type Rep ActivateUserResponse Source # 
type Rep ActivateUserResponse = D1 (MetaData "ActivateUserResponse" "Network.AWS.WorkDocs.ActivateUser" "amazonka-workdocs-1.5.0-BQCQjzmZAyNCgdficzQnx9" False) (C1 (MetaCons "ActivateUserResponse'" PrefixI True) ((:*:) (S1 (MetaSel (Just Symbol "_aursUser") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 (Maybe User))) (S1 (MetaSel (Just Symbol "_aursResponseStatus") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 Int))))

Response Lenses

aursResponseStatus :: Lens' ActivateUserResponse Int Source #

  • - | The response status code.