FeaturePlan Enum
The user pool feature plan, or tier.
| Source | aws-cognito/lib/user-pool.ts |
|---|---|
| Type last changed |
Example
ts
new cognito.UserPool(this, 'myuserpool', {
signInPolicy: {
allowedFirstAuthFactors: { password: true },
},
featurePlan: cognito.FeaturePlan.LITE,
});
python
cognito.UserPool(self, "myuserpool",
sign_in_policy=cognito.SignInPolicy(
allowed_first_auth_factors=cognito.AllowedFirstAuthFactors(password=True)
),
feature_plan=cognito.FeaturePlan.LITE
)
java
UserPool.Builder.create(this, "myuserpool")
.signInPolicy(SignInPolicy.builder()
.allowedFirstAuthFactors(AllowedFirstAuthFactors.builder().password(true).build())
.build())
.featurePlan(FeaturePlan.LITE)
.build();
csharp
// Install: dotnet add package Amazon.CDK.Lib
new UserPool(this, "myuserpool", new UserPoolProps {
SignInPolicy = new SignInPolicy {
AllowedFirstAuthFactors = new AllowedFirstAuthFactors { Password = true }
},
FeaturePlan = FeaturePlan.LITE
});
go
// Install: go get github.com/aws/aws-cdk-go/awscdk/v2
cognito.NewUserPool(this, jsii.String("myuserpool"), &UserPoolProps{
SignInPolicy: &SignInPolicy{
AllowedFirstAuthFactors: &AllowedFirstAuthFactors{
Password: jsii.Boolean(true),
},
},
FeaturePlan: cognito.FeaturePlan_LITE,
})
Members
| Member | Description |
|---|---|
LITE | Lite feature plan. |
ESSENTIALS | Essentials feature plan. |
PLUS | Plus feature plan. |
Referenced by
UserPoolProps.featurePlanfeature_planfeaturePlanFeaturePlanFeaturePlan