# LoginProfileProperty

Creates a password for the specified user, giving the user the ability to access AWS services through the AWS Management Console .

For more information about managing passwords, see [Managing Passwords](https://docs.aws.amazon.com/IAM/latest/UserGuide/Using_ManagingLogins.html) in the *IAM User Guide* .

- Source: Generated at build time
- Type last changed: v2.93.0 · 23 Aug 2023

## Example

TypeScript:

```ts
// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
import { aws_iam as iam } from 'aws-cdk-lib';
const loginProfileProperty: iam.CfnUser.LoginProfileProperty = {
  password: 'password',

  // the properties below are optional
  passwordResetRequired: false,
};
```

Python:

```python
# The code below shows an example of how to instantiate this type.
# The values are placeholders you should change.
from aws_cdk import aws_iam as iam

login_profile_property = iam.CfnUser.LoginProfileProperty(
    password="password",

    # the properties below are optional
    password_reset_required=False
)
```

Java:

```java
// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
import software.amazon.awscdk.services.iam.*;

LoginProfileProperty loginProfileProperty = LoginProfileProperty.builder()
        .password("password")

        // the properties below are optional
        .passwordResetRequired(false)
        .build();
```

C# / .NET:

```csharp
// Install: dotnet add package Amazon.CDK.Lib
// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
using Amazon.CDK.AWS.IAM;

var loginProfileProperty = new LoginProfileProperty {
    Password = "password",

    // the properties below are optional
    PasswordResetRequired = false
};
```

Golang:

```go
// Install: go get github.com/aws/aws-cdk-go/awscdk/v2
// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
import "github.com/aws/aws-cdk-go/awscdk"

loginProfileProperty := &LoginProfileProperty{
	Password: jsii.String("password"),

	// the properties below are optional
	PasswordResetRequired: jsii.Boolean(false),
}
```

## Properties

- `password`: string (required) — The user's password.

- `passwordResetRequired`: boolean | [IResolvable](https://docs.aws.amazon.com/cdk/api/v2/docs/aws-cdk-lib.IResolvable.html) — Specifies whether the user is required to set a new password on next sign-in.
