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.Types.TemporaryCredential

Description

 
Synopsis

Documentation

data TemporaryCredential Source #

Contains the data needed by RDP clients such as the Microsoft Remote Desktop Connection to log in to the instance.

See: newTemporaryCredential smart constructor.

Constructors

TemporaryCredential' 

Fields

  • instanceId :: Maybe Text

    The instance's AWS OpsWorks Stacks ID.

  • password :: Maybe Text

    The password.

  • username :: Maybe Text

    The user name.

  • validForInMinutes :: Maybe Int

    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 they are logged in at the time, they will be automatically logged out.

Instances

Instances details
FromJSON TemporaryCredential Source # 
Instance details

Defined in Amazonka.OpsWorks.Types.TemporaryCredential

Generic TemporaryCredential Source # 
Instance details

Defined in Amazonka.OpsWorks.Types.TemporaryCredential

Associated Types

type Rep TemporaryCredential :: Type -> Type #

Read TemporaryCredential Source # 
Instance details

Defined in Amazonka.OpsWorks.Types.TemporaryCredential

Show TemporaryCredential Source # 
Instance details

Defined in Amazonka.OpsWorks.Types.TemporaryCredential

NFData TemporaryCredential Source # 
Instance details

Defined in Amazonka.OpsWorks.Types.TemporaryCredential

Methods

rnf :: TemporaryCredential -> () #

Eq TemporaryCredential Source # 
Instance details

Defined in Amazonka.OpsWorks.Types.TemporaryCredential

Hashable TemporaryCredential Source # 
Instance details

Defined in Amazonka.OpsWorks.Types.TemporaryCredential

type Rep TemporaryCredential Source # 
Instance details

Defined in Amazonka.OpsWorks.Types.TemporaryCredential

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

newTemporaryCredential :: TemporaryCredential Source #

Create a value of TemporaryCredential 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:instanceId:TemporaryCredential', temporaryCredential_instanceId - The instance's AWS OpsWorks Stacks ID.

$sel:password:TemporaryCredential', temporaryCredential_password - The password.

$sel:username:TemporaryCredential', temporaryCredential_username - The user name.

$sel:validForInMinutes:TemporaryCredential', temporaryCredential_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 they are logged in at the time, they will be automatically logged out.

temporaryCredential_instanceId :: Lens' TemporaryCredential (Maybe Text) Source #

The instance's AWS OpsWorks Stacks ID.

temporaryCredential_validForInMinutes :: Lens' TemporaryCredential (Maybe Int) 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 they are logged in at the time, they will be automatically logged out.