Skip to content

Commit 736ad53

Browse files
committed
improve user pool docs
1 parent d272ef1 commit 736ad53

File tree

2 files changed

+475
-49
lines changed
  • src/domain/calculated-stack-overview-manager/resource-resolvers/user-pools
  • types/stacktape-config

2 files changed

+475
-49
lines changed

src/domain/calculated-stack-overview-manager/resource-resolvers/user-pools/utils.ts

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -81,7 +81,9 @@ export const getUserPoolResource = ({
8181
},
8282
...(mfaConfiguration?.status && { MfaConfiguration: mfaConfiguration?.status }),
8383
...(mfaConfiguration?.enabledTypes && {
84-
EnabledMfas: (mfaConfiguration?.enabledTypes || []).map((type) => `${type}_MFA`)
84+
EnabledMfas: (mfaConfiguration?.enabledTypes || []).map((type) =>
85+
type === 'EMAIL_OTP' ? 'EMAIL_OTP' : `${type}_MFA`
86+
)
8587
}),
8688
...(passwordPolicy && {
8789
Policies: {

0 commit comments

Comments
 (0)