libZSservicesZSamazonka-iamZSamazonka-iam
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.IAM.GetLoginProfile

Description

Retrieves the user name for the specified IAM user. A login profile is created when you create a password for the user to access the Amazon Web Services Management Console. If the user does not exist or does not have a password, the operation returns a 404 (NoSuchEntity) error.

If you create an IAM user with access to the console, the CreateDate reflects the date you created the initial password for the user.

If you create an IAM user with programmatic access, and then later add a password for the user to access the Amazon Web Services Management Console, the CreateDate reflects the initial password creation date. A user with programmatic access does not have a login profile unless you create a password for the user to access the Amazon Web Services Management Console.

Synopsis

Creating a Request

data GetLoginProfile Source #

See: newGetLoginProfile smart constructor.

Constructors

GetLoginProfile' 

Fields

  • userName :: Text

    The name of the user whose login profile you want to retrieve.

    This parameter allows (through its regex pattern) a string of characters consisting of upper and lowercase alphanumeric characters with no spaces. You can also include any of the following characters: _+=,.@-

Instances

Instances details
Eq GetLoginProfile Source # 
Instance details

Defined in Amazonka.IAM.GetLoginProfile

Read GetLoginProfile Source # 
Instance details

Defined in Amazonka.IAM.GetLoginProfile

Show GetLoginProfile Source # 
Instance details

Defined in Amazonka.IAM.GetLoginProfile

Generic GetLoginProfile Source # 
Instance details

Defined in Amazonka.IAM.GetLoginProfile

Associated Types

type Rep GetLoginProfile :: Type -> Type #

NFData GetLoginProfile Source # 
Instance details

Defined in Amazonka.IAM.GetLoginProfile

Methods

rnf :: GetLoginProfile -> () #

Hashable GetLoginProfile Source # 
Instance details

Defined in Amazonka.IAM.GetLoginProfile

AWSRequest GetLoginProfile Source # 
Instance details

Defined in Amazonka.IAM.GetLoginProfile

Associated Types

type AWSResponse GetLoginProfile #

ToHeaders GetLoginProfile Source # 
Instance details

Defined in Amazonka.IAM.GetLoginProfile

ToPath GetLoginProfile Source # 
Instance details

Defined in Amazonka.IAM.GetLoginProfile

ToQuery GetLoginProfile Source # 
Instance details

Defined in Amazonka.IAM.GetLoginProfile

type Rep GetLoginProfile Source # 
Instance details

Defined in Amazonka.IAM.GetLoginProfile

type Rep GetLoginProfile = D1 ('MetaData "GetLoginProfile" "Amazonka.IAM.GetLoginProfile" "libZSservicesZSamazonka-iamZSamazonka-iam" 'False) (C1 ('MetaCons "GetLoginProfile'" 'PrefixI 'True) (S1 ('MetaSel ('Just "userName") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 Text)))
type AWSResponse GetLoginProfile Source # 
Instance details

Defined in Amazonka.IAM.GetLoginProfile

newGetLoginProfile Source #

Create a value of GetLoginProfile 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:userName:GetLoginProfile', getLoginProfile_userName - The name of the user whose login profile you want to retrieve.

This parameter allows (through its regex pattern) a string of characters consisting of upper and lowercase alphanumeric characters with no spaces. You can also include any of the following characters: _+=,.@-

Request Lenses

getLoginProfile_userName :: Lens' GetLoginProfile Text Source #

The name of the user whose login profile you want to retrieve.

This parameter allows (through its regex pattern) a string of characters consisting of upper and lowercase alphanumeric characters with no spaces. You can also include any of the following characters: _+=,.@-

Destructuring the Response

data GetLoginProfileResponse Source #

Contains the response to a successful GetLoginProfile request.

See: newGetLoginProfileResponse smart constructor.

Constructors

GetLoginProfileResponse' 

Fields

Instances

Instances details
Eq GetLoginProfileResponse Source # 
Instance details

Defined in Amazonka.IAM.GetLoginProfile

Read GetLoginProfileResponse Source # 
Instance details

Defined in Amazonka.IAM.GetLoginProfile

Show GetLoginProfileResponse Source # 
Instance details

Defined in Amazonka.IAM.GetLoginProfile

Generic GetLoginProfileResponse Source # 
Instance details

Defined in Amazonka.IAM.GetLoginProfile

Associated Types

type Rep GetLoginProfileResponse :: Type -> Type #

NFData GetLoginProfileResponse Source # 
Instance details

Defined in Amazonka.IAM.GetLoginProfile

Methods

rnf :: GetLoginProfileResponse -> () #

type Rep GetLoginProfileResponse Source # 
Instance details

Defined in Amazonka.IAM.GetLoginProfile

type Rep GetLoginProfileResponse = D1 ('MetaData "GetLoginProfileResponse" "Amazonka.IAM.GetLoginProfile" "libZSservicesZSamazonka-iamZSamazonka-iam" 'False) (C1 ('MetaCons "GetLoginProfileResponse'" 'PrefixI 'True) (S1 ('MetaSel ('Just "httpStatus") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 Int) :*: S1 ('MetaSel ('Just "loginProfile") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 LoginProfile)))

newGetLoginProfileResponse Source #

Create a value of GetLoginProfileResponse 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:httpStatus:GetLoginProfileResponse', getLoginProfileResponse_httpStatus - The response's http status code.

$sel:loginProfile:GetLoginProfileResponse', getLoginProfileResponse_loginProfile - A structure containing the user name and the profile creation date for the user.

Response Lenses

getLoginProfileResponse_loginProfile :: Lens' GetLoginProfileResponse LoginProfile Source #

A structure containing the user name and the profile creation date for the user.