We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 09c965f commit 31cc5fbCopy full SHA for 31cc5fb
lib/authentication/index.ts
@@ -20,6 +20,10 @@ export class Authentication extends Construct {
20
constructor(scope: Construct, id: string, config: SystemConfig) {
21
super(scope, id);
22
23
+ const customAttributes = config.cognitoFederation?.enabled
24
+ ? { chatbot_role: new cognito.StringAttribute({ mutable: true }) }
25
+ : undefined;
26
+
27
const userPool = new cognito.UserPool(this, "UserPool", {
28
removalPolicy:
29
config.retainOnDelete === true
@@ -34,6 +38,7 @@ export class Authentication extends Construct {
34
38
signInAliases: {
35
39
email: true,
36
40
},
41
+ ...(customAttributes && { customAttributes }),
37
42
});
43
44
new cognito.CfnUserPoolGroup(this, "AdminGroup", {
0 commit comments