amazonka-opsworks-1.4.2: Amazon OpsWorks 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.OpsWorks.GrantAccess

Contents

Description

This action can be used only with Windows stacks.

Grants RDP access to a Windows instance for a specified time period.

Synopsis

Creating a Request

grantAccess Source #

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

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

data GrantAccess Source #

See: grantAccess smart constructor.

Instances

Eq GrantAccess Source # 
Data GrantAccess Source # 

Methods

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

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

toConstr :: GrantAccess -> Constr #

dataTypeOf :: GrantAccess -> DataType #

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

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

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

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

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

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

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

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

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

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

Read GrantAccess Source # 
Show GrantAccess Source # 
Generic GrantAccess Source # 

Associated Types

type Rep GrantAccess :: * -> * #

ToJSON GrantAccess Source # 
Hashable GrantAccess Source # 
NFData GrantAccess Source # 

Methods

rnf :: GrantAccess -> () #

AWSRequest GrantAccess Source # 
ToPath GrantAccess Source # 
ToHeaders GrantAccess Source # 

Methods

toHeaders :: GrantAccess -> [Header] #

ToQuery GrantAccess Source # 
type Rep GrantAccess Source # 
type Rep GrantAccess = D1 (MetaData "GrantAccess" "Network.AWS.OpsWorks.GrantAccess" "amazonka-opsworks-1.4.2-H1NWw2Q6WTvKlcJsv19jGW" False) (C1 (MetaCons "GrantAccess'" PrefixI True) ((:*:) (S1 (MetaSel (Just Symbol "_gaValidForInMinutes") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 (Maybe Nat))) (S1 (MetaSel (Just Symbol "_gaInstanceId") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 Text))))
type Rs GrantAccess Source # 

Request Lenses

gaValidForInMinutes :: Lens' GrantAccess (Maybe Natural) Source #

The length of time (in minutes) that the grant is valid. When the grant expires at the end of this period, the user will no longer be able to use the credentials to log in. If the user is logged in at the time, he or she automatically will be logged out.

gaInstanceId :: Lens' GrantAccess Text Source #

The instance's AWS OpsWorks ID.

Destructuring the Response

grantAccessResponse Source #

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

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

data GrantAccessResponse Source #

Contains the response to a GrantAccess request.

See: grantAccessResponse smart constructor.

Instances

Eq GrantAccessResponse Source # 
Data GrantAccessResponse Source # 

Methods

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

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

toConstr :: GrantAccessResponse -> Constr #

dataTypeOf :: GrantAccessResponse -> DataType #

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

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

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

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

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

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

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

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

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

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

Read GrantAccessResponse Source # 
Show GrantAccessResponse Source # 
Generic GrantAccessResponse Source # 
NFData GrantAccessResponse Source # 

Methods

rnf :: GrantAccessResponse -> () #

type Rep GrantAccessResponse Source # 
type Rep GrantAccessResponse = D1 (MetaData "GrantAccessResponse" "Network.AWS.OpsWorks.GrantAccess" "amazonka-opsworks-1.4.2-H1NWw2Q6WTvKlcJsv19jGW" False) (C1 (MetaCons "GrantAccessResponse'" PrefixI True) ((:*:) (S1 (MetaSel (Just Symbol "_garsTemporaryCredential") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 (Maybe TemporaryCredential))) (S1 (MetaSel (Just Symbol "_garsResponseStatus") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 Int))))

Response Lenses

garsTemporaryCredential :: Lens' GrantAccessResponse (Maybe TemporaryCredential) Source #

A TemporaryCredential object that contains the data needed to log in to the instance by RDP clients, such as the Microsoft Remote Desktop Connection.