Class UserPoolConfig
Configuration for Cognito user-pools in AppSync.
Inheritance
System.Object
UserPoolConfig
Implements
Namespace: Amazon.CDK.AWS.AppSync
Assembly: Amazon.CDK.Lib.dll
Syntax (csharp)
public class UserPoolConfig : Object, IUserPoolConfig
Syntax (vb)
Public Class UserPoolConfig
Inherits Object
Implements IUserPoolConfig
Remarks
ExampleMetadata: fixture=_generated
Examples
// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
using Amazon.CDK.AWS.AppSync;
using Amazon.CDK.AWS.Cognito;
UserPool userPool;
var userPoolConfig = new UserPoolConfig {
UserPool = userPool,
// the properties below are optional
AppIdClientRegex = "appIdClientRegex",
DefaultAction = UserPoolDefaultAction.ALLOW
};
Synopsis
Constructors
UserPoolConfig() |
Properties
AppIdClientRegex | the optional app id regex. |
DefaultAction | Default auth action. |
UserPool | The Cognito user pool to use as identity source. |
Constructors
UserPoolConfig()
public UserPoolConfig()
Properties
AppIdClientRegex
the optional app id regex.
public string AppIdClientRegex { get; set; }
Property Value
System.String
Remarks
Default: - None
DefaultAction
Default auth action.
public Nullable<UserPoolDefaultAction> DefaultAction { get; set; }
Property Value
System.Nullable<UserPoolDefaultAction>
Remarks
Default: ALLOW
UserPool
The Cognito user pool to use as identity source.
public IUserPool UserPool { get; set; }
Property Value