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:
IResource
,IUserPoolClient
,software.amazon.jsii.JsiiSerializable
,software.constructs.IConstruct
,software.constructs.IDependable
@Generated(value="jsii-pacmak/1.104.0 (build e79254c)",
date="2024-11-22T02:23:59.179Z")
@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 classes/interfaces inherited from class software.amazon.jsii.JsiiObject
software.amazon.jsii.JsiiObject.InitializationMode
Nested classes/interfaces inherited from interface software.constructs.IConstruct
software.constructs.IConstruct.Jsii$Default
Nested classes/interfaces inherited from interface software.amazon.awscdk.IResource
IResource.Jsii$Default
Nested classes/interfaces inherited from interface software.amazon.awscdk.services.cognito.IUserPoolClient
IUserPoolClient.Jsii$Default, IUserPoolClient.Jsii$Proxy
-
Constructor Summary
ModifierConstructorDescriptionprotected
UserPoolClient
(software.amazon.jsii.JsiiObject.InitializationMode initializationMode) protected
UserPoolClient
(software.amazon.jsii.JsiiObjectRef objRef) UserPoolClient
(software.constructs.Construct scope, String id, UserPoolClientProps props) -
Method Summary
Modifier and TypeMethodDescriptionstatic IUserPoolClient
fromUserPoolClientId
(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 theuserPoolClientName
property 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, isResource
Methods inherited from class software.constructs.Construct
getNode, isConstruct, toString
Methods inherited from class software.amazon.jsii.JsiiObject
jsiiAsyncCall, jsiiAsyncCall, jsiiCall, jsiiCall, jsiiGet, jsiiGet, jsiiSet, jsiiStaticCall, jsiiStaticCall, jsiiStaticGet, jsiiStaticGet, jsiiStaticSet, jsiiStaticSet
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
Methods inherited from interface software.constructs.IConstruct
getNode
Methods inherited from interface software.amazon.awscdk.IResource
applyRemovalPolicy, getEnv, getStack
Methods inherited from interface software.amazon.jsii.JsiiSerializable
$jsii$toJson
-
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:
getUserPoolClientId
in interfaceIUserPoolClient
-
getUserPoolClientName
The client name that was specified via theuserPoolClientName
property during initialization, throws an error otherwise. -
getUserPoolClientSecret
The generated client secret.Only available if the "generateSecret" props is set to true
- Specified by:
getUserPoolClientSecret
in interfaceIUserPoolClient
-