amazonka-iam-2.0: Amazon Identity and Access Management 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.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
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

AWSRequest GetLoginProfile Source # 
Instance details

Defined in Amazonka.IAM.GetLoginProfile

Associated Types

type AWSResponse GetLoginProfile #

Generic GetLoginProfile Source # 
Instance details

Defined in Amazonka.IAM.GetLoginProfile

Associated Types

type Rep GetLoginProfile :: Type -> Type #

Read GetLoginProfile Source # 
Instance details

Defined in Amazonka.IAM.GetLoginProfile

Show GetLoginProfile Source # 
Instance details

Defined in Amazonka.IAM.GetLoginProfile

NFData GetLoginProfile Source # 
Instance details

Defined in Amazonka.IAM.GetLoginProfile

Methods

rnf :: GetLoginProfile -> () #

Eq GetLoginProfile Source # 
Instance details

Defined in Amazonka.IAM.GetLoginProfile

Hashable GetLoginProfile Source # 
Instance details

Defined in Amazonka.IAM.GetLoginProfile

type AWSResponse 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" "amazonka-iam-2.0-5DxkArXx9sD3CCYYGFyGET" 'False) (C1 ('MetaCons "GetLoginProfile'" 'PrefixI 'True) (S1 ('MetaSel ('Just "userName") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 Text)))

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:

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

Defined in Amazonka.IAM.GetLoginProfile

Associated Types

type Rep GetLoginProfileResponse :: Type -> Type #

Read GetLoginProfileResponse Source # 
Instance details

Defined in Amazonka.IAM.GetLoginProfile

Show GetLoginProfileResponse Source # 
Instance details

Defined in Amazonka.IAM.GetLoginProfile

NFData GetLoginProfileResponse Source # 
Instance details

Defined in Amazonka.IAM.GetLoginProfile

Methods

rnf :: GetLoginProfileResponse -> () #

Eq GetLoginProfileResponse Source # 
Instance details

Defined in Amazonka.IAM.GetLoginProfile

type Rep GetLoginProfileResponse Source # 
Instance details

Defined in Amazonka.IAM.GetLoginProfile

type Rep GetLoginProfileResponse = D1 ('MetaData "GetLoginProfileResponse" "Amazonka.IAM.GetLoginProfile" "amazonka-iam-2.0-5DxkArXx9sD3CCYYGFyGET" '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.