Skip to content
v2.278.0

ManagedLoginVersion Enum ​

The branding version of managed login for the domain.

Example ​

ts
const pool = new cognito.UserPool(this, 'Pool');

// Use the new managed login page
pool.addDomain('CognitoDomainWithBlandingDesignManagedLogin', {
  cognitoDomain: {
    domainPrefix: 'blanding-design-ui',
  },
  managedLoginVersion: cognito.ManagedLoginVersion.NEWER_MANAGED_LOGIN,
});

// Use the classic hosted UI
pool.addDomain('DomainWithClassicHostedUi', {
  cognitoDomain: {
    domainPrefix: 'classic-hosted-ui',
  },
  managedLoginVersion: cognito.ManagedLoginVersion.CLASSIC_HOSTED_UI,
});
python
pool = cognito.UserPool(self, "Pool")

# Use the new managed login page
pool.add_domain("CognitoDomainWithBlandingDesignManagedLogin",
    cognito_domain=cognito.CognitoDomainOptions(
        domain_prefix="blanding-design-ui"
    ),
    managed_login_version=cognito.ManagedLoginVersion.NEWER_MANAGED_LOGIN
)

# Use the classic hosted UI
pool.add_domain("DomainWithClassicHostedUi",
    cognito_domain=cognito.CognitoDomainOptions(
        domain_prefix="classic-hosted-ui"
    ),
    managed_login_version=cognito.ManagedLoginVersion.CLASSIC_HOSTED_UI
)
java
UserPool pool = new UserPool(this, "Pool");

// Use the new managed login page
pool.addDomain("CognitoDomainWithBlandingDesignManagedLogin", UserPoolDomainOptions.builder()
        .cognitoDomain(CognitoDomainOptions.builder()
                .domainPrefix("blanding-design-ui")
                .build())
        .managedLoginVersion(ManagedLoginVersion.NEWER_MANAGED_LOGIN)
        .build());

// Use the classic hosted UI
pool.addDomain("DomainWithClassicHostedUi", UserPoolDomainOptions.builder()
        .cognitoDomain(CognitoDomainOptions.builder()
                .domainPrefix("classic-hosted-ui")
                .build())
        .managedLoginVersion(ManagedLoginVersion.CLASSIC_HOSTED_UI)
        .build());
csharp
// Install: dotnet add package Amazon.CDK.Lib
var pool = new UserPool(this, "Pool");

// Use the new managed login page
pool.AddDomain("CognitoDomainWithBlandingDesignManagedLogin", new UserPoolDomainOptions {
    CognitoDomain = new CognitoDomainOptions {
        DomainPrefix = "blanding-design-ui"
    },
    ManagedLoginVersion = ManagedLoginVersion.NEWER_MANAGED_LOGIN
});

// Use the classic hosted UI
pool.AddDomain("DomainWithClassicHostedUi", new UserPoolDomainOptions {
    CognitoDomain = new CognitoDomainOptions {
        DomainPrefix = "classic-hosted-ui"
    },
    ManagedLoginVersion = ManagedLoginVersion.CLASSIC_HOSTED_UI
});
go
// Install: go get github.com/aws/aws-cdk-go/awscdk/v2
pool := cognito.NewUserPool(this, jsii.String("Pool"))

// Use the new managed login page
pool.addDomain(jsii.String("CognitoDomainWithBlandingDesignManagedLogin"), &UserPoolDomainOptions{
	CognitoDomain: &CognitoDomainOptions{
		DomainPrefix: jsii.String("blanding-design-ui"),
	},
	ManagedLoginVersion: cognito.ManagedLoginVersion_NEWER_MANAGED_LOGIN,
})

// Use the classic hosted UI
pool.addDomain(jsii.String("DomainWithClassicHostedUi"), &UserPoolDomainOptions{
	CognitoDomain: &CognitoDomainOptions{
		DomainPrefix: jsii.String("classic-hosted-ui"),
	},
	ManagedLoginVersion: cognito.ManagedLoginVersion_CLASSIC_HOSTED_UI,
})

Members ​

MemberDescription
CLASSIC_HOSTED_UIThe classic hosted UI.
NEWER_MANAGED_LOGINThe newer managed login with the branding designer.

Referenced by ​

  • UserPoolDomainOptions.managedLoginVersionmanaged_login_versionmanagedLoginVersionManagedLoginVersionManagedLoginVersion