amazonka-opsworks-2.0: Amazon OpsWorks SDK.
Copyright(c) 2013-2023 Brendan Hay
LicenseMozilla Public License, v. 2.0.
MaintainerBrendan Hay
Stabilityauto-generated
Portabilitynon-portable (GHC extensions)
Safe HaskellSafe-Inferred
LanguageHaskell2010

Amazonka.OpsWorks.GrantAccess

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

data GrantAccess Source #

See: newGrantAccess smart constructor.

Constructors

GrantAccess' 

Fields

  • validForInMinutes :: 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.

  • instanceId :: Text

    The instance's AWS OpsWorks Stacks ID.

Instances

Instances details
ToJSON GrantAccess Source # 
Instance details

Defined in Amazonka.OpsWorks.GrantAccess

ToHeaders GrantAccess Source # 
Instance details

Defined in Amazonka.OpsWorks.GrantAccess

Methods

toHeaders :: GrantAccess -> [Header] #

ToPath GrantAccess Source # 
Instance details

Defined in Amazonka.OpsWorks.GrantAccess

ToQuery GrantAccess Source # 
Instance details

Defined in Amazonka.OpsWorks.GrantAccess

AWSRequest GrantAccess Source # 
Instance details

Defined in Amazonka.OpsWorks.GrantAccess

Associated Types

type AWSResponse GrantAccess #

Generic GrantAccess Source # 
Instance details

Defined in Amazonka.OpsWorks.GrantAccess

Associated Types

type Rep GrantAccess :: Type -> Type #

Read GrantAccess Source # 
Instance details

Defined in Amazonka.OpsWorks.GrantAccess

Show GrantAccess Source # 
Instance details

Defined in Amazonka.OpsWorks.GrantAccess

NFData GrantAccess Source # 
Instance details

Defined in Amazonka.OpsWorks.GrantAccess

Methods

rnf :: GrantAccess -> () #

Eq GrantAccess Source # 
Instance details

Defined in Amazonka.OpsWorks.GrantAccess

Hashable GrantAccess Source # 
Instance details

Defined in Amazonka.OpsWorks.GrantAccess

type AWSResponse GrantAccess Source # 
Instance details

Defined in Amazonka.OpsWorks.GrantAccess

type Rep GrantAccess Source # 
Instance details

Defined in Amazonka.OpsWorks.GrantAccess

type Rep GrantAccess = D1 ('MetaData "GrantAccess" "Amazonka.OpsWorks.GrantAccess" "amazonka-opsworks-2.0-7XrzSD2vbuN9lVUGWMVZ7S" 'False) (C1 ('MetaCons "GrantAccess'" 'PrefixI 'True) (S1 ('MetaSel ('Just "validForInMinutes") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe Natural)) :*: S1 ('MetaSel ('Just "instanceId") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 Text)))

newGrantAccess Source #

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:

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.

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.

Constructors

GrantAccessResponse' 

Fields

Instances

Instances details
Generic GrantAccessResponse Source # 
Instance details

Defined in Amazonka.OpsWorks.GrantAccess

Associated Types

type Rep GrantAccessResponse :: Type -> Type #

Read GrantAccessResponse Source # 
Instance details

Defined in Amazonka.OpsWorks.GrantAccess

Show GrantAccessResponse Source # 
Instance details

Defined in Amazonka.OpsWorks.GrantAccess

NFData GrantAccessResponse Source # 
Instance details

Defined in Amazonka.OpsWorks.GrantAccess

Methods

rnf :: GrantAccessResponse -> () #

Eq GrantAccessResponse Source # 
Instance details

Defined in Amazonka.OpsWorks.GrantAccess

type Rep GrantAccessResponse Source # 
Instance details

Defined in Amazonka.OpsWorks.GrantAccess

type Rep GrantAccessResponse = D1 ('MetaData "GrantAccessResponse" "Amazonka.OpsWorks.GrantAccess" "amazonka-opsworks-2.0-7XrzSD2vbuN9lVUGWMVZ7S" 'False) (C1 ('MetaCons "GrantAccessResponse'" 'PrefixI 'True) (S1 ('MetaSel ('Just "temporaryCredential") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe TemporaryCredential)) :*: S1 ('MetaSel ('Just "httpStatus") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 Int)))

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.