amazonka-opsworks-1.4.5: 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

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

Synopsis

Creating a Request

grantAccess #

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:

  • gaValidForInMinutes - 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 - The instance's AWS OpsWorks ID.

data GrantAccess #

See: grantAccess smart constructor.

Instances

Eq GrantAccess # 
Data GrantAccess # 

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 # 
Show GrantAccess # 
Generic GrantAccess # 

Associated Types

type Rep GrantAccess :: * -> * #

Hashable GrantAccess # 
ToJSON GrantAccess # 
NFData GrantAccess # 

Methods

rnf :: GrantAccess -> () #

AWSRequest GrantAccess # 
ToQuery GrantAccess # 
ToPath GrantAccess # 
ToHeaders GrantAccess # 

Methods

toHeaders :: GrantAccess -> [Header] #

type Rep GrantAccess # 
type Rep GrantAccess = D1 (MetaData "GrantAccess" "Network.AWS.OpsWorks.GrantAccess" "amazonka-opsworks-1.4.5-JiFrWEFhyqOE1ZKfkjkheh" 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 # 

Request Lenses

gaValidForInMinutes :: Lens' GrantAccess (Maybe Natural) #

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 #

The instance's AWS OpsWorks ID.

Destructuring the Response

grantAccessResponse #

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:

  • garsTemporaryCredential - A TemporaryCredential object that contains the data needed to log in to the instance by RDP clients, such as the Microsoft Remote Desktop Connection.
  • garsResponseStatus - -- | The response status code.

data GrantAccessResponse #

Contains the response to a GrantAccess request.

See: grantAccessResponse smart constructor.

Instances

Eq GrantAccessResponse # 
Data GrantAccessResponse # 

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 # 
Show GrantAccessResponse # 
Generic GrantAccessResponse # 
NFData GrantAccessResponse # 

Methods

rnf :: GrantAccessResponse -> () #

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

Response Lenses

garsTemporaryCredential :: Lens' GrantAccessResponse (Maybe TemporaryCredential) #

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

garsResponseStatus :: Lens' GrantAccessResponse Int #

  • - | The response status code.