libZSservicesZSamazonka-opsworksZSamazonka-opsworks
Copyright(c) 2013-2021 Brendan Hay
LicenseMozilla Public License, v. 2.0.
MaintainerBrendan Hay <brendan.g.hay+amazonka@gmail.com>
Stabilityauto-generated
Portabilitynon-portable (GHC extensions)
Safe HaskellNone

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.

  • username :: Maybe Text

    The user name.

  • password :: Maybe Text

    The password.

  • 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
Eq TemporaryCredential Source # 
Instance details

Defined in Amazonka.OpsWorks.Types.TemporaryCredential

Read TemporaryCredential Source # 
Instance details

Defined in Amazonka.OpsWorks.Types.TemporaryCredential

Show 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 #

NFData TemporaryCredential Source # 
Instance details

Defined in Amazonka.OpsWorks.Types.TemporaryCredential

Methods

rnf :: TemporaryCredential -> () #

Hashable TemporaryCredential Source # 
Instance details

Defined in Amazonka.OpsWorks.Types.TemporaryCredential

FromJSON 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" "libZSservicesZSamazonka-opsworksZSamazonka-opsworks" 'False) (C1 ('MetaCons "TemporaryCredential'" 'PrefixI 'True) ((S1 ('MetaSel ('Just "instanceId") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe Text)) :*: S1 ('MetaSel ('Just "username") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe Text))) :*: (S1 ('MetaSel ('Just "password") '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:username:TemporaryCredential', temporaryCredential_username - The user name.

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

$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.