Class UserPoolClient
java.lang.Object
software.amazon.jsii.JsiiObject
software.constructs.Construct
software.amazon.awscdk.Resource
software.amazon.awscdk.services.cognito.UserPoolClient
- All Implemented Interfaces:
IEnvironmentAware,IResource,IUserPoolClient,software.amazon.jsii.JsiiSerializable,software.constructs.IConstruct,software.constructs.IDependable
@Generated(value="jsii-pacmak/1.119.0 (build 1634eac)",
date="2025-11-13T16:10:01.597Z")
@Stability(Stable)
public class UserPoolClient
extends Resource
implements IUserPoolClient
Define a UserPool App Client.
Example:
UserPool pool = new UserPool(this, "Pool");
UserPoolIdentityProviderAmazon provider = UserPoolIdentityProviderAmazon.Builder.create(this, "Amazon")
.userPool(pool)
.clientId("amzn-client-id")
.clientSecret("amzn-client-secret")
.build();
UserPoolClient client = pool.addClient("app-client", UserPoolClientOptions.builder()
// ...
.supportedIdentityProviders(List.of(UserPoolClientIdentityProvider.AMAZON))
.build());
client.node.addDependency(provider);
-
Nested Class Summary
Nested ClassesNested classes/interfaces inherited from class software.amazon.jsii.JsiiObject
software.amazon.jsii.JsiiObject.InitializationModeNested classes/interfaces inherited from interface software.constructs.IConstruct
software.constructs.IConstruct.Jsii$DefaultNested classes/interfaces inherited from interface software.amazon.awscdk.IResource
IResource.Jsii$DefaultNested classes/interfaces inherited from interface software.amazon.awscdk.services.cognito.IUserPoolClient
IUserPoolClient.Jsii$Default, IUserPoolClient.Jsii$Proxy -
Field Summary
Fields -
Constructor Summary
ConstructorsModifierConstructorDescriptionprotectedUserPoolClient(software.amazon.jsii.JsiiObject.InitializationMode initializationMode) protectedUserPoolClient(software.amazon.jsii.JsiiObjectRef objRef) UserPoolClient(software.constructs.Construct scope, String id, UserPoolClientProps props) -
Method Summary
Modifier and TypeMethodDescriptionstatic IUserPoolClientfromUserPoolClientId(software.constructs.Construct scope, String id, String userPoolClientId) Import a user pool client given its id.The OAuth flows enabled for this client.Name of the application client.The client name that was specified via theuserPoolClientNameproperty during initialization, throws an error otherwise.The generated client secret.Methods inherited from class software.amazon.awscdk.Resource
applyRemovalPolicy, generatePhysicalName, getEnv, getPhysicalName, getResourceArnAttribute, getResourceNameAttribute, getStack, isOwnedResource, isResourceMethods inherited from class software.constructs.Construct
getNode, isConstruct, toStringMethods inherited from class software.amazon.jsii.JsiiObject
jsiiAsyncCall, jsiiAsyncCall, jsiiCall, jsiiCall, jsiiGet, jsiiGet, jsiiSet, jsiiStaticCall, jsiiStaticCall, jsiiStaticGet, jsiiStaticGet, jsiiStaticSet, jsiiStaticSetMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitMethods inherited from interface software.constructs.IConstruct
getNodeMethods inherited from interface software.amazon.awscdk.interfaces.IEnvironmentAware
getEnvMethods inherited from interface software.amazon.awscdk.IResource
applyRemovalPolicy, getStackMethods inherited from interface software.amazon.jsii.JsiiSerializable
$jsii$toJson
-
Field Details
-
PROPERTY_INJECTION_ID
Uniquely identifies this class.
-
-
Constructor Details
-
UserPoolClient
protected UserPoolClient(software.amazon.jsii.JsiiObjectRef objRef) -
UserPoolClient
protected UserPoolClient(software.amazon.jsii.JsiiObject.InitializationMode initializationMode) -
UserPoolClient
@Stability(Stable) public UserPoolClient(@NotNull software.constructs.Construct scope, @NotNull String id, @NotNull UserPoolClientProps props) - Parameters:
scope- This parameter is required.id- This parameter is required.props- This parameter is required.
-
-
Method Details
-
fromUserPoolClientId
@Stability(Stable) @NotNull public static IUserPoolClient fromUserPoolClientId(@NotNull software.constructs.Construct scope, @NotNull String id, @NotNull String userPoolClientId) Import a user pool client given its id.- Parameters:
scope- This parameter is required.id- This parameter is required.userPoolClientId- This parameter is required.
-
getOAuthFlows
The OAuth flows enabled for this client. -
getUserPoolClientId
Name of the application client.- Specified by:
getUserPoolClientIdin interfaceIUserPoolClient
-
getUserPoolClientName
The client name that was specified via theuserPoolClientNameproperty during initialization, throws an error otherwise. -
getUserPoolClientSecret
The generated client secret.Only available if the "generateSecret" props is set to true
- Specified by:
getUserPoolClientSecretin interfaceIUserPoolClient
-