Copyright | (c) 2013-2015 Brendan Hay |
---|---|
License | Mozilla Public License, v. 2.0. |
Maintainer | Brendan Hay <brendan.g.hay@gmail.com> |
Stability | auto-generated |
Portability | non-portable (GHC extensions) |
Safe Haskell | None |
Language | Haskell2010 |
This action can be used only with Windows stacks.
Grants RDP access to a Windows instance for a specified time period.
See: AWS API Reference for GrantAccess.
- grantAccess :: Text -> GrantAccess
- data GrantAccess
- gaValidForInMinutes :: Lens' GrantAccess (Maybe Natural)
- gaInstanceId :: Lens' GrantAccess Text
- grantAccessResponse :: Int -> GrantAccessResponse
- data GrantAccessResponse
- garsTemporaryCredential :: Lens' GrantAccessResponse (Maybe TemporaryCredential)
- garsStatus :: Lens' GrantAccessResponse Int
Creating a Request
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.
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
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.
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.
garsStatus :: Lens' GrantAccessResponse Int Source
The response status code.