amazonka-lightsail-2.0: Amazon Lightsail 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.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
ToJSON 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

AWSRequest GetRelationalDatabaseMasterUserPassword Source # 
Instance details

Defined in Amazonka.Lightsail.GetRelationalDatabaseMasterUserPassword

Generic 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

NFData GetRelationalDatabaseMasterUserPassword Source # 
Instance details

Defined in Amazonka.Lightsail.GetRelationalDatabaseMasterUserPassword

Eq GetRelationalDatabaseMasterUserPassword Source # 
Instance details

Defined in Amazonka.Lightsail.GetRelationalDatabaseMasterUserPassword

Hashable GetRelationalDatabaseMasterUserPassword Source # 
Instance details

Defined in Amazonka.Lightsail.GetRelationalDatabaseMasterUserPassword

type AWSResponse 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" "amazonka-lightsail-2.0-77hvsZhtZFxFduYae8QaN0" '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)))

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
Generic GetRelationalDatabaseMasterUserPasswordResponse Source # 
Instance details

Defined in Amazonka.Lightsail.GetRelationalDatabaseMasterUserPassword

Show GetRelationalDatabaseMasterUserPasswordResponse Source # 
Instance details

Defined in Amazonka.Lightsail.GetRelationalDatabaseMasterUserPassword

NFData GetRelationalDatabaseMasterUserPasswordResponse Source # 
Instance details

Defined in Amazonka.Lightsail.GetRelationalDatabaseMasterUserPassword

Eq 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" "amazonka-lightsail-2.0-77hvsZhtZFxFduYae8QaN0" 'False) (C1 ('MetaCons "GetRelationalDatabaseMasterUserPasswordResponse'" 'PrefixI 'True) (S1 ('MetaSel ('Just "createdAt") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe POSIX)) :*: (S1 ('MetaSel ('Just "masterUserPassword") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe (Sensitive Text))) :*: S1 ('MetaSel ('Just "httpStatus") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 Int))))

newGetRelationalDatabaseMasterUserPasswordResponse Source #

Create a value of GetRelationalDatabaseMasterUserPasswordResponse 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:

GetRelationalDatabaseMasterUserPasswordResponse, getRelationalDatabaseMasterUserPasswordResponse_createdAt - The timestamp when the specified version of the master user password was created.

GetRelationalDatabaseMasterUserPasswordResponse, getRelationalDatabaseMasterUserPasswordResponse_masterUserPassword - The master user password for the password version specified.

$sel:httpStatus:GetRelationalDatabaseMasterUserPasswordResponse', getRelationalDatabaseMasterUserPasswordResponse_httpStatus - The response's http status code.

Response Lenses

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

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