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
已提問 9 個月前檢視次數 390 次
1 個回答
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
支援工程師
已回答 8 個月前

您尚未登入。 登入 去張貼答案。

一個好的回答可以清楚地回答問題並提供建設性的意見回饋,同時有助於提問者的專業成長。

回答問題指南