Interface IUserPool
Represents a Cognito UserPool.
public interface IUserPool : IResource, IConstruct, IConstruct, IDependable
Properties
IdentityProviders
Get all identity providers registered with this user pool.
IUserPoolIdentityProvider[] IdentityProviders { get; }
Property Value
UserPoolArn
The ARN of this user pool resource.
string UserPoolArn { get; }
Property Value
Remarks
Attribute: true
UserPoolId
The physical ID of this user pool resource.
string UserPoolId { get; }
Property Value
Remarks
Attribute: true
Methods
AddClient(string, IUserPoolClientOptions?)
Add a new app client to this user pool.
UserPoolClient AddClient(string id, IUserPoolClientOptions? options = null)
Parameters
id
stringoptions
IUserPoolClientOptions
Returns
Remarks
AddDomain(string, IUserPoolDomainOptions)
Associate a domain to this user pool.
UserPoolDomain AddDomain(string id, IUserPoolDomainOptions options)
Parameters
id
stringoptions
IUserPoolDomainOptions
Returns
Remarks
See: https://docs.aws.amazon.com/cognito/latest/developerguide/cognito-user-pools-assign-domain.html
AddResourceServer(string, IUserPoolResourceServerOptions)
Add a new resource server to this user pool.
UserPoolResourceServer AddResourceServer(string id, IUserPoolResourceServerOptions options)
Parameters
id
stringoptions
IUserPoolResourceServerOptions
Returns
Remarks
See: https://docs.aws.amazon.com/cognito/latest/developerguide/cognito-user-pools-resource-servers.html
RegisterIdentityProvider(IUserPoolIdentityProvider)
Register an identity provider with this user pool.
void RegisterIdentityProvider(IUserPoolIdentityProvider provider)
Parameters
provider
IUserPoolIdentityProvider