Copyright | (c) 2013-2021 Brendan Hay |
---|---|
License | Mozilla Public License, v. 2.0. |
Maintainer | Brendan Hay <brendan.g.hay+amazonka@gmail.com> |
Stability | auto-generated |
Portability | non-portable (GHC extensions) |
Safe Haskell | None |
This action can be used only with Windows stacks.
Grants RDP access to a Windows instance for a specified time period.
Synopsis
- data GrantAccess = GrantAccess' {}
- newGrantAccess :: Text -> GrantAccess
- grantAccess_validForInMinutes :: Lens' GrantAccess (Maybe Natural)
- grantAccess_instanceId :: Lens' GrantAccess Text
- data GrantAccessResponse = GrantAccessResponse' {}
- newGrantAccessResponse :: Int -> GrantAccessResponse
- grantAccessResponse_temporaryCredential :: Lens' GrantAccessResponse (Maybe TemporaryCredential)
- grantAccessResponse_httpStatus :: Lens' GrantAccessResponse Int
Creating a Request
data GrantAccess Source #
See: newGrantAccess
smart constructor.
GrantAccess' | |
|
Instances
Create a value of GrantAccess
with all optional fields omitted.
Use generic-lens or optics to modify other optional fields.
The following record fields are available, with the corresponding lenses provided for backwards compatibility:
$sel:validForInMinutes:GrantAccess'
, grantAccess_validForInMinutes
- 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.
$sel:instanceId:GrantAccess'
, grantAccess_instanceId
- The instance's AWS OpsWorks Stacks ID.
Request Lenses
grantAccess_validForInMinutes :: 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.
grantAccess_instanceId :: Lens' GrantAccess Text Source #
The instance's AWS OpsWorks Stacks ID.
Destructuring the Response
data GrantAccessResponse Source #
Contains the response to a GrantAccess
request.
See: newGrantAccessResponse
smart constructor.
GrantAccessResponse' | |
|
Instances
newGrantAccessResponse Source #
Create a value of GrantAccessResponse
with all optional fields omitted.
Use generic-lens or optics to modify other optional fields.
The following record fields are available, with the corresponding lenses provided for backwards compatibility:
$sel:temporaryCredential:GrantAccessResponse'
, grantAccessResponse_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.
$sel:httpStatus:GrantAccessResponse'
, grantAccessResponse_httpStatus
- The response's http status code.
Response Lenses
grantAccessResponse_temporaryCredential :: 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.
grantAccessResponse_httpStatus :: Lens' GrantAccessResponse Int Source #
The response's http status code.