libZSservicesZSamazonka-lightsailZSamazonka-lightsail
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.Lightsail.GetRelationalDatabaseMasterUserPassword

Description

Returns the current, previous, or pending versions of the master user password for a Lightsail database.

The GetRelationalDatabaseMasterUserPassword operation supports tag-based access control via resource tags applied to the resource identified by relationalDatabaseName.

Synopsis

Creating a Request

data GetRelationalDatabaseMasterUserPassword Source #

Constructors

GetRelationalDatabaseMasterUserPassword' 

Fields

  • passwordVersion :: Maybe RelationalDatabasePasswordVersion

    The password version to return.

    Specifying CURRENT or PREVIOUS returns the current or previous passwords respectively. Specifying PENDING returns the newest version of the password that will rotate to CURRENT. After the PENDING password rotates to CURRENT, the PENDING password is no longer available.

    Default: CURRENT

  • relationalDatabaseName :: Text

    The name of your database for which to get the master user password.

Instances

Instances details
Eq GetRelationalDatabaseMasterUserPassword Source # 
Instance details

Defined in Amazonka.Lightsail.GetRelationalDatabaseMasterUserPassword

Read GetRelationalDatabaseMasterUserPassword Source # 
Instance details

Defined in Amazonka.Lightsail.GetRelationalDatabaseMasterUserPassword

Show GetRelationalDatabaseMasterUserPassword Source # 
Instance details

Defined in Amazonka.Lightsail.GetRelationalDatabaseMasterUserPassword

Generic GetRelationalDatabaseMasterUserPassword Source # 
Instance details

Defined in Amazonka.Lightsail.GetRelationalDatabaseMasterUserPassword

NFData GetRelationalDatabaseMasterUserPassword Source # 
Instance details

Defined in Amazonka.Lightsail.GetRelationalDatabaseMasterUserPassword

Hashable GetRelationalDatabaseMasterUserPassword Source # 
Instance details

Defined in Amazonka.Lightsail.GetRelationalDatabaseMasterUserPassword

ToJSON GetRelationalDatabaseMasterUserPassword Source # 
Instance details

Defined in Amazonka.Lightsail.GetRelationalDatabaseMasterUserPassword

AWSRequest GetRelationalDatabaseMasterUserPassword Source # 
Instance details

Defined in Amazonka.Lightsail.GetRelationalDatabaseMasterUserPassword

ToHeaders GetRelationalDatabaseMasterUserPassword Source # 
Instance details

Defined in Amazonka.Lightsail.GetRelationalDatabaseMasterUserPassword

ToPath GetRelationalDatabaseMasterUserPassword Source # 
Instance details

Defined in Amazonka.Lightsail.GetRelationalDatabaseMasterUserPassword

ToQuery GetRelationalDatabaseMasterUserPassword Source # 
Instance details

Defined in Amazonka.Lightsail.GetRelationalDatabaseMasterUserPassword

type Rep GetRelationalDatabaseMasterUserPassword Source # 
Instance details

Defined in Amazonka.Lightsail.GetRelationalDatabaseMasterUserPassword

type Rep GetRelationalDatabaseMasterUserPassword = D1 ('MetaData "GetRelationalDatabaseMasterUserPassword" "Amazonka.Lightsail.GetRelationalDatabaseMasterUserPassword" "libZSservicesZSamazonka-lightsailZSamazonka-lightsail" 'False) (C1 ('MetaCons "GetRelationalDatabaseMasterUserPassword'" 'PrefixI 'True) (S1 ('MetaSel ('Just "passwordVersion") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe RelationalDatabasePasswordVersion)) :*: S1 ('MetaSel ('Just "relationalDatabaseName") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 Text)))
type AWSResponse GetRelationalDatabaseMasterUserPassword Source # 
Instance details

Defined in Amazonka.Lightsail.GetRelationalDatabaseMasterUserPassword

newGetRelationalDatabaseMasterUserPassword Source #

Create a value of GetRelationalDatabaseMasterUserPassword 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:passwordVersion:GetRelationalDatabaseMasterUserPassword', getRelationalDatabaseMasterUserPassword_passwordVersion - The password version to return.

Specifying CURRENT or PREVIOUS returns the current or previous passwords respectively. Specifying PENDING returns the newest version of the password that will rotate to CURRENT. After the PENDING password rotates to CURRENT, the PENDING password is no longer available.

Default: CURRENT

$sel:relationalDatabaseName:GetRelationalDatabaseMasterUserPassword', getRelationalDatabaseMasterUserPassword_relationalDatabaseName - The name of your database for which to get the master user password.

Request Lenses

getRelationalDatabaseMasterUserPassword_passwordVersion :: Lens' GetRelationalDatabaseMasterUserPassword (Maybe RelationalDatabasePasswordVersion) Source #

The password version to return.

Specifying CURRENT or PREVIOUS returns the current or previous passwords respectively. Specifying PENDING returns the newest version of the password that will rotate to CURRENT. After the PENDING password rotates to CURRENT, the PENDING password is no longer available.

Default: CURRENT

Destructuring the Response

data GetRelationalDatabaseMasterUserPasswordResponse Source #

Constructors

GetRelationalDatabaseMasterUserPasswordResponse' 

Fields

Instances

Instances details
Eq GetRelationalDatabaseMasterUserPasswordResponse Source # 
Instance details

Defined in Amazonka.Lightsail.GetRelationalDatabaseMasterUserPassword

Show GetRelationalDatabaseMasterUserPasswordResponse Source # 
Instance details

Defined in Amazonka.Lightsail.GetRelationalDatabaseMasterUserPassword

Generic GetRelationalDatabaseMasterUserPasswordResponse Source # 
Instance details

Defined in Amazonka.Lightsail.GetRelationalDatabaseMasterUserPassword

NFData GetRelationalDatabaseMasterUserPasswordResponse Source # 
Instance details

Defined in Amazonka.Lightsail.GetRelationalDatabaseMasterUserPassword

type Rep GetRelationalDatabaseMasterUserPasswordResponse Source # 
Instance details

Defined in Amazonka.Lightsail.GetRelationalDatabaseMasterUserPassword

type Rep GetRelationalDatabaseMasterUserPasswordResponse = D1 ('MetaData "GetRelationalDatabaseMasterUserPasswordResponse" "Amazonka.Lightsail.GetRelationalDatabaseMasterUserPassword" "libZSservicesZSamazonka-lightsailZSamazonka-lightsail" 'False) (C1 ('MetaCons "GetRelationalDatabaseMasterUserPasswordResponse'" 'PrefixI 'True) (S1 ('MetaSel ('Just "masterUserPassword") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe (Sensitive Text))) :*: (S1 ('MetaSel ('Just "createdAt") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe POSIX)) :*: S1 ('MetaSel ('Just "httpStatus") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 Int))))

Response Lenses

getRelationalDatabaseMasterUserPasswordResponse_createdAt :: Lens' GetRelationalDatabaseMasterUserPasswordResponse (Maybe UTCTime) Source #

The timestamp when the specified version of the master user password was created.