amazonka-opsworks-1.6.1: Amazon OpsWorks SDK.

Copyright(c) 2013-2018 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.OpsWorks.GrantAccess

Contents

Description

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:

  • 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 Stacks ID.

data GrantAccess Source #

See: grantAccess smart constructor.

Instances
Eq GrantAccess Source # 
Instance details

Defined in Network.AWS.OpsWorks.GrantAccess

Data GrantAccess Source # 
Instance details

Defined in Network.AWS.OpsWorks.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 Source # 
Instance details

Defined in Network.AWS.OpsWorks.GrantAccess

Show GrantAccess Source # 
Instance details

Defined in Network.AWS.OpsWorks.GrantAccess

Generic GrantAccess Source # 
Instance details

Defined in Network.AWS.OpsWorks.GrantAccess

Associated Types

type Rep GrantAccess :: Type -> Type #

Hashable GrantAccess Source # 
Instance details

Defined in Network.AWS.OpsWorks.GrantAccess

ToJSON GrantAccess Source # 
Instance details

Defined in Network.AWS.OpsWorks.GrantAccess

AWSRequest GrantAccess Source # 
Instance details

Defined in Network.AWS.OpsWorks.GrantAccess

Associated Types

type Rs GrantAccess :: Type #

ToHeaders GrantAccess Source # 
Instance details

Defined in Network.AWS.OpsWorks.GrantAccess

Methods

toHeaders :: GrantAccess -> [Header] #

ToPath GrantAccess Source # 
Instance details

Defined in Network.AWS.OpsWorks.GrantAccess

ToQuery GrantAccess Source # 
Instance details

Defined in Network.AWS.OpsWorks.GrantAccess

NFData GrantAccess Source # 
Instance details

Defined in Network.AWS.OpsWorks.GrantAccess

Methods

rnf :: GrantAccess -> () #

type Rep GrantAccess Source # 
Instance details

Defined in Network.AWS.OpsWorks.GrantAccess

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

Defined in Network.AWS.OpsWorks.GrantAccess

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

  • 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 Source #

Contains the response to a GrantAccess request.

See: grantAccessResponse smart constructor.

Instances
Eq GrantAccessResponse Source # 
Instance details

Defined in Network.AWS.OpsWorks.GrantAccess

Data GrantAccessResponse Source # 
Instance details

Defined in Network.AWS.OpsWorks.GrantAccess

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 # 
Instance details

Defined in Network.AWS.OpsWorks.GrantAccess

Show GrantAccessResponse Source # 
Instance details

Defined in Network.AWS.OpsWorks.GrantAccess

Generic GrantAccessResponse Source # 
Instance details

Defined in Network.AWS.OpsWorks.GrantAccess

Associated Types

type Rep GrantAccessResponse :: Type -> Type #

NFData GrantAccessResponse Source # 
Instance details

Defined in Network.AWS.OpsWorks.GrantAccess

Methods

rnf :: GrantAccessResponse -> () #

type Rep GrantAccessResponse Source # 
Instance details

Defined in Network.AWS.OpsWorks.GrantAccess

type Rep GrantAccessResponse = D1 (MetaData "GrantAccessResponse" "Network.AWS.OpsWorks.GrantAccess" "amazonka-opsworks-1.6.1-DPqCyF3LO9t3rjfO10vXJE" False) (C1 (MetaCons "GrantAccessResponse'" PrefixI True) (S1 (MetaSel (Just "_garsTemporaryCredential") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 (Maybe TemporaryCredential)) :*: S1 (MetaSel (Just "_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.

garsResponseStatus :: Lens' GrantAccessResponse Int Source #

  • - | The response status code.