@Generated(value="jsii-pacmak/1.71.0 (build f1f58ae)", date="2022-12-07T17:24:44.621Z") @Stability(value=Stable) public class UserPool extends Resource implements IUserPool
Example:
UserPool pool = new UserPool(this, "Pool");
pool.addClient("app-client", UserPoolClientOptions.builder()
.oAuth(OAuthSettings.builder()
.flows(OAuthFlows.builder()
.authorizationCodeGrant(true)
.build())
.scopes(List.of(OAuthScope.OPENID))
.callbackUrls(List.of("https://my-app-domain.com/welcome"))
.logoutUrls(List.of("https://my-app-domain.com/signin"))
.build())
.build());
| Modifier and Type | Class and Description |
|---|---|
static class |
UserPool.Builder
A fluent builder for
UserPool. |
software.amazon.jsii.JsiiObject.InitializationModeIUserPool.Jsii$Default, IUserPool.Jsii$Proxy| Modifier | Constructor and Description |
|---|---|
|
UserPool(software.constructs.Construct scope,
String id) |
|
UserPool(software.constructs.Construct scope,
String id,
UserPoolProps props) |
protected |
UserPool(software.amazon.jsii.JsiiObject.InitializationMode initializationMode) |
protected |
UserPool(software.amazon.jsii.JsiiObjectRef objRef) |
| Modifier and Type | Method and Description |
|---|---|
UserPoolClient |
addClient(String id)
Add a new app client to this user pool.
|
UserPoolClient |
addClient(String id,
UserPoolClientOptions options)
Add a new app client to this user pool.
|
UserPoolDomain |
addDomain(String id,
UserPoolDomainOptions options)
Associate a domain to this user pool.
|
UserPoolResourceServer |
addResourceServer(String id,
UserPoolResourceServerOptions options)
Add a new resource server to this user pool.
|
void |
addTrigger(UserPoolOperation operation,
IFunction fn)
Add a lambda trigger to a user pool operation.
|
static IUserPool |
fromUserPoolArn(software.constructs.Construct scope,
String id,
String userPoolArn)
Import an existing user pool based on its ARN.
|
static IUserPool |
fromUserPoolId(software.constructs.Construct scope,
String id,
String userPoolId)
Import an existing user pool based on its id.
|
List<IUserPoolIdentityProvider> |
getIdentityProviders()
Get all identity providers registered with this user pool.
|
String |
getUserPoolArn()
The ARN of the user pool.
|
String |
getUserPoolId()
The physical ID of this user pool resource.
|
String |
getUserPoolProviderName()
User pool provider name.
|
String |
getUserPoolProviderUrl()
User pool provider URL.
|
Grant |
grant(IGrantable grantee,
String... actions)
Adds an IAM policy statement associated with this user pool to an IAM principal's policy.
|
void |
registerIdentityProvider(IUserPoolIdentityProvider provider)
Register an identity provider with this user pool.
|
applyRemovalPolicy, generatePhysicalName, getEnv, getPhysicalName, getResourceArnAttribute, getResourceNameAttribute, getStack, isResourcegetNode, isConstruct, onPrepare, onSynthesize, onValidate, prepare, synthesize, validatejsiiAsyncCall, jsiiAsyncCall, jsiiCall, jsiiCall, jsiiGet, jsiiGet, jsiiSet, jsiiStaticCall, jsiiStaticCall, jsiiStaticGet, jsiiStaticGet, jsiiStaticSet, jsiiStaticSetclone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitapplyRemovalPolicy, getEnv, getStackgetNodeprotected UserPool(software.amazon.jsii.JsiiObjectRef objRef)
protected UserPool(software.amazon.jsii.JsiiObject.InitializationMode initializationMode)
@Stability(value=Stable)
public UserPool(@NotNull
software.constructs.Construct scope,
@NotNull
String id,
@Nullable
UserPoolProps props)
scope - This parameter is required.id - This parameter is required.props - @Stability(value=Stable)
public UserPool(@NotNull
software.constructs.Construct scope,
@NotNull
String id)
scope - This parameter is required.id - This parameter is required.@Stability(value=Stable) @NotNull public static IUserPool fromUserPoolArn(@NotNull software.constructs.Construct scope, @NotNull String id, @NotNull String userPoolArn)
scope - This parameter is required.id - This parameter is required.userPoolArn - This parameter is required.@Stability(value=Stable) @NotNull public static IUserPool fromUserPoolId(@NotNull software.constructs.Construct scope, @NotNull String id, @NotNull String userPoolId)
scope - This parameter is required.id - This parameter is required.userPoolId - This parameter is required.@Stability(value=Stable) @NotNull public UserPoolClient addClient(@NotNull String id, @Nullable UserPoolClientOptions options)
addClient in interface IUserPoolid - This parameter is required.options - @Stability(value=Stable) @NotNull public UserPoolClient addClient(@NotNull String id)
addClient in interface IUserPoolid - This parameter is required.@Stability(value=Stable) @NotNull public UserPoolDomain addDomain(@NotNull String id, @NotNull UserPoolDomainOptions options)
addDomain in interface IUserPoolid - This parameter is required.options - This parameter is required.@Stability(value=Stable) @NotNull public UserPoolResourceServer addResourceServer(@NotNull String id, @NotNull UserPoolResourceServerOptions options)
addResourceServer in interface IUserPoolid - This parameter is required.options - This parameter is required.@Stability(value=Stable)
public void addTrigger(@NotNull
UserPoolOperation operation,
@NotNull
IFunction fn)
operation - This parameter is required.fn - This parameter is required.@Stability(value=Stable) @NotNull public Grant grant(@NotNull IGrantable grantee, @NotNull String... actions)
grantee - This parameter is required.actions - This parameter is required.@Stability(value=Stable)
public void registerIdentityProvider(@NotNull
IUserPoolIdentityProvider provider)
registerIdentityProvider in interface IUserPoolprovider - This parameter is required.@Stability(value=Stable) @NotNull public List<IUserPoolIdentityProvider> getIdentityProviders()
getIdentityProviders in interface IUserPool@Stability(value=Stable) @NotNull public String getUserPoolArn()
getUserPoolArn in interface IUserPool@Stability(value=Stable) @NotNull public String getUserPoolId()
getUserPoolId in interface IUserPool@Stability(value=Stable) @NotNull public String getUserPoolProviderName()
@Stability(value=Stable) @NotNull public String getUserPoolProviderUrl()
Copyright © 2022. All rights reserved.