interface IUserPool
Language | Type name |
---|---|
.NET | Amazon.CDK.AWS.Cognito.IUserPool |
Java | software.amazon.awscdk.services.cognito.IUserPool |
Python | aws_cdk.aws_cognito.IUserPool |
TypeScript (source) | @aws-cdk/aws-cognito » IUserPool |
Implemented by
User
Obtainable from
User
.fromUserPoolArn()
, User
.fromUserPoolId()
Represents a Cognito UserPool.
Properties
Name | Type | Description |
---|---|---|
env | Resource | The environment this resource belongs to. |
identity | IUser [] | Get all identity providers registered with this user pool. |
node | Construct | The construct tree node for this construct. |
stack | Stack | The stack in which this resource is defined. |
user | string | The ARN of this user pool resource. |
user | string | The physical ID of this user pool resource. |
env
Type:
Resource
The environment this resource belongs to.
For resources that are created and managed by the CDK (generally, those created by creating new class instances like Role, Bucket, etc.), this is always the same as the environment of the stack they belong to; however, for imported resources (those obtained from static methods like fromRoleArn, fromBucketName, etc.), that might be different than the stack they were imported into.
identityProviders
Type:
IUser
[]
Get all identity providers registered with this user pool.
node
Type:
Construct
The construct tree node for this construct.
stack
Type:
Stack
The stack in which this resource is defined.
userPoolArn
Type:
string
The ARN of this user pool resource.
userPoolId
Type:
string
The physical ID of this user pool resource.
Methods
Name | Description |
---|---|
add | Add a new app client to this user pool. |
add | Associate a domain to this user pool. |
add | Add a new resource server to this user pool. |
apply | Apply the given removal policy to this resource. |
register | Register an identity provider with this user pool. |
Client(id, options?)
addpublic addClient(id: string, options?: UserPoolClientOptions): UserPoolClient
Parameters
- id
string
- options
User
Pool Client Options
Returns
Add a new app client to this user pool.
Domain(id, options)
addpublic addDomain(id: string, options: UserPoolDomainOptions): UserPoolDomain
Parameters
- id
string
- options
User
Pool Domain Options
Returns
Associate a domain to this user pool.
ResourceServer(id, options)
addpublic addResourceServer(id: string, options: UserPoolResourceServerOptions): UserPoolResourceServer
Parameters
- id
string
- options
User
Pool Resource Server Options
Returns
Add a new resource server to this user pool.
RemovalPolicy(policy)
applypublic applyRemovalPolicy(policy: RemovalPolicy): void
Parameters
- policy
Removal
Policy
Apply the given removal policy to this resource.
The Removal Policy controls what happens to this resource when it stops being managed by CloudFormation, either because you've removed it from the CDK application or because you've made a change that requires the resource to be replaced.
The resource can be deleted (RemovalPolicy.DESTROY
), or left in your AWS
account for data recovery and cleanup later (RemovalPolicy.RETAIN
).
IdentityProvider(provider)
registerpublic registerIdentityProvider(provider: IUserPoolIdentityProvider): void
Parameters
- provider
IUser
Pool Identity Provider
Register an identity provider with this user pool.