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.CreateLoginProfile

Description

Creates a password for the specified IAM user. A password allows an IAM user to access Amazon Web Services services through the Amazon Web Services Management Console.

You can use the CLI, the Amazon Web Services API, or the Users page in the IAM console to create a password for any IAM user. Use ChangePassword to update your own existing password in the __My Security Credentials__ page in the Amazon Web Services Management Console.

For more information about managing passwords, see Managing passwords in the IAM User Guide.

Synopsis

Creating a Request

data CreateLoginProfile Source #

See: newCreateLoginProfile smart constructor.

Constructors

CreateLoginProfile' 

Fields

  • passwordResetRequired :: Maybe Bool

    Specifies whether the user is required to set a new password on next sign-in.

  • userName :: Text

    The name of the IAM user to create a password for. The user must already exist.

    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: _+=,.@-

  • password :: Sensitive Text

    The new password for the user.

    The regex pattern that is used to validate this parameter is a string of characters. That string can include almost any printable ASCII character from the space (\u0020) through the end of the ASCII character range (\u00FF). You can also include the tab (\u0009), line feed (\u000A), and carriage return (\u000D) characters. Any of these characters are valid in a password. However, many tools, such as the Amazon Web Services Management Console, might restrict the ability to type certain characters because they have special meaning within that tool.

Instances

Instances details
Eq CreateLoginProfile Source # 
Instance details

Defined in Amazonka.IAM.CreateLoginProfile

Show CreateLoginProfile Source # 
Instance details

Defined in Amazonka.IAM.CreateLoginProfile

Generic CreateLoginProfile Source # 
Instance details

Defined in Amazonka.IAM.CreateLoginProfile

Associated Types

type Rep CreateLoginProfile :: Type -> Type #

NFData CreateLoginProfile Source # 
Instance details

Defined in Amazonka.IAM.CreateLoginProfile

Methods

rnf :: CreateLoginProfile -> () #

Hashable CreateLoginProfile Source # 
Instance details

Defined in Amazonka.IAM.CreateLoginProfile

AWSRequest CreateLoginProfile Source # 
Instance details

Defined in Amazonka.IAM.CreateLoginProfile

Associated Types

type AWSResponse CreateLoginProfile #

ToHeaders CreateLoginProfile Source # 
Instance details

Defined in Amazonka.IAM.CreateLoginProfile

ToPath CreateLoginProfile Source # 
Instance details

Defined in Amazonka.IAM.CreateLoginProfile

ToQuery CreateLoginProfile Source # 
Instance details

Defined in Amazonka.IAM.CreateLoginProfile

type Rep CreateLoginProfile Source # 
Instance details

Defined in Amazonka.IAM.CreateLoginProfile

type Rep CreateLoginProfile = D1 ('MetaData "CreateLoginProfile" "Amazonka.IAM.CreateLoginProfile" "libZSservicesZSamazonka-iamZSamazonka-iam" 'False) (C1 ('MetaCons "CreateLoginProfile'" 'PrefixI 'True) (S1 ('MetaSel ('Just "passwordResetRequired") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe Bool)) :*: (S1 ('MetaSel ('Just "userName") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 Text) :*: S1 ('MetaSel ('Just "password") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Sensitive Text)))))
type AWSResponse CreateLoginProfile Source # 
Instance details

Defined in Amazonka.IAM.CreateLoginProfile

newCreateLoginProfile Source #

Create a value of CreateLoginProfile 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:passwordResetRequired:CreateLoginProfile', createLoginProfile_passwordResetRequired - Specifies whether the user is required to set a new password on next sign-in.

$sel:userName:CreateLoginProfile', createLoginProfile_userName - The name of the IAM user to create a password for. The user must already exist.

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: _+=,.@-

$sel:password:CreateLoginProfile', createLoginProfile_password - The new password for the user.

The regex pattern that is used to validate this parameter is a string of characters. That string can include almost any printable ASCII character from the space (\u0020) through the end of the ASCII character range (\u00FF). You can also include the tab (\u0009), line feed (\u000A), and carriage return (\u000D) characters. Any of these characters are valid in a password. However, many tools, such as the Amazon Web Services Management Console, might restrict the ability to type certain characters because they have special meaning within that tool.

Request Lenses

createLoginProfile_passwordResetRequired :: Lens' CreateLoginProfile (Maybe Bool) Source #

Specifies whether the user is required to set a new password on next sign-in.

createLoginProfile_userName :: Lens' CreateLoginProfile Text Source #

The name of the IAM user to create a password for. The user must already exist.

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: _+=,.@-

createLoginProfile_password :: Lens' CreateLoginProfile Text Source #

The new password for the user.

The regex pattern that is used to validate this parameter is a string of characters. That string can include almost any printable ASCII character from the space (\u0020) through the end of the ASCII character range (\u00FF). You can also include the tab (\u0009), line feed (\u000A), and carriage return (\u000D) characters. Any of these characters are valid in a password. However, many tools, such as the Amazon Web Services Management Console, might restrict the ability to type certain characters because they have special meaning within that tool.

Destructuring the Response

data CreateLoginProfileResponse Source #

Contains the response to a successful CreateLoginProfile request.

See: newCreateLoginProfileResponse smart constructor.

Constructors

CreateLoginProfileResponse' 

Fields

Instances

Instances details
Eq CreateLoginProfileResponse Source # 
Instance details

Defined in Amazonka.IAM.CreateLoginProfile

Read CreateLoginProfileResponse Source # 
Instance details

Defined in Amazonka.IAM.CreateLoginProfile

Show CreateLoginProfileResponse Source # 
Instance details

Defined in Amazonka.IAM.CreateLoginProfile

Generic CreateLoginProfileResponse Source # 
Instance details

Defined in Amazonka.IAM.CreateLoginProfile

Associated Types

type Rep CreateLoginProfileResponse :: Type -> Type #

NFData CreateLoginProfileResponse Source # 
Instance details

Defined in Amazonka.IAM.CreateLoginProfile

type Rep CreateLoginProfileResponse Source # 
Instance details

Defined in Amazonka.IAM.CreateLoginProfile

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

newCreateLoginProfileResponse Source #

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

$sel:loginProfile:CreateLoginProfileResponse', createLoginProfileResponse_loginProfile - A structure containing the user name and password create date.

Response Lenses

createLoginProfileResponse_loginProfile :: Lens' CreateLoginProfileResponse LoginProfile Source #

A structure containing the user name and password create date.