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ヶ月前

ログインしていません。 ログイン 回答を投稿する。

優れた回答とは、質問に明確に答え、建設的なフィードバックを提供し、質問者の専門分野におけるスキルの向上を促すものです。

質問に答えるためのガイドライン

関連するコンテンツ