Smaws_Client_IAM.GetLoginProfileRetrieves 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.
val error_to_string :
[ Smaws_Lib.Protocols.AwsQuery.error
| `NoSuchEntityException of Types.no_such_entity_exception
| `ServiceFailureException of Types.service_failure_exception ] ->
stringval request :
'http_type Smaws_Lib.Context.t ->
Types.get_login_profile_request ->
(Types.get_login_profile_response,
[> Smaws_Lib.Protocols.AwsQuery.error
| `NoSuchEntityException of Types.no_such_entity_exception
| `ServiceFailureException of Types.service_failure_exception ])
Stdlib.resultval request_with_metadata :
'http_type Smaws_Lib.Context.t ->
Types.get_login_profile_request ->
(Types.get_login_profile_response Smaws_Lib.Response.t,
[> Smaws_Lib.Protocols.AwsQuery.error
| `NoSuchEntityException of Types.no_such_entity_exception
| `ServiceFailureException of Types.service_failure_exception ]
* Smaws_Lib.Response.metadata)
Stdlib.result