Skip to content
v2.278.0

LoginProfileProperty Struct ​

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 in the IAM User Guide .

Example ​

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
# 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
// 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();
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
};
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 ​

passwordstringpasswordstrpasswordStringPasswordstringPassword*string required #
The user's password.
passwordResetRequiredoptionalboolean | IResolvablepassword_reset_requiredoptionaltyping.Union[bool, IResolvable]passwordResetRequiredoptionalBooleanPasswordResetRequiredoptionalboolPasswordResetRequiredoptionalinterface{} #
Specifies whether the user is required to set a new password on next sign-in.