Boolean custom attributes in user pool

0

This is really strange but in CDK I can do this:

    const userPool = new UserPool(stack, ID.USER_POOL_ID, {
        userPoolName: ID.USER_POOL_NAME,
        customAttributes: {
            something: new cognito.BooleanAttribute({mutable: true})
        },

but in the console, my only choices for attribute types are String and Number, no Boolean. What is that about? The console documentation agrees that there's only string and number, but the CloudFormation Documentation includes a boolean type.

Enter image description here

but if you create it in CDK, it shows up and clearly knows it's a bool:

Enter image description here

Is there some reason the console / create user pool doesn't expose this ability?

profile picture
wz2b
gefragt vor 9 Monaten390 Aufrufe
1 Antwort
0

Hello wz2b,

Thank you for contacting AWS Customer Support regarding the availability of Boolean and DateTime custom attributes in user pool. We have identified that this issue due to an internal alignment with Cognito User Pools API which handles these attributes as Strings. To resolve this issue, we advise you to choose String as a data type for Boolean and DateTime values in the console.

Meanwhile, we are investigating a permanent resolution to this issue. We apologize for the inconvenience it has had on your organization. We appreciate your patience as we work to resolve this issue for you.

Thank you for being a valued AWS customer.

AWS Customer Support

AWS
SUPPORT-TECHNIKER
beantwortet vor 8 Monaten

Du bist nicht angemeldet. Anmelden um eine Antwort zu veröffentlichen.

Eine gute Antwort beantwortet die Frage klar, gibt konstruktives Feedback und fördert die berufliche Weiterentwicklung des Fragenstellers.

Richtlinien für die Beantwortung von Fragen