Class UserPoolClient
java.lang.Object
software.amazon.jsii.JsiiObject
software.constructs.Construct
software.amazon.awscdk.core.Construct
software.amazon.awscdk.core.Resource
software.amazon.awscdk.services.cognito.UserPoolClient
- All Implemented Interfaces:
IConstruct
,IDependable
,IResource
,IUserPoolClient
,software.amazon.jsii.JsiiSerializable
,software.constructs.IConstruct
@Generated(value="jsii-pacmak/1.84.0 (build 5404dcf)",
date="2023-06-19T16:30:44.066Z")
@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.amazon.awscdk.core.IConstruct
IConstruct.Jsii$Default
Nested classes/interfaces inherited from interface software.constructs.IConstruct
software.constructs.IConstruct.Jsii$Default
Nested classes/interfaces inherited from interface software.amazon.awscdk.core.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.Methods inherited from class software.amazon.awscdk.core.Resource
applyRemovalPolicy, generatePhysicalName, getEnv, getPhysicalName, getResourceArnAttribute, getResourceNameAttribute, getStack, isResource
Methods inherited from class software.amazon.awscdk.core.Construct
getNode, isConstruct, onPrepare, onSynthesize, onValidate, prepare, synthesize, validate
Methods inherited from class software.constructs.Construct
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.amazon.awscdk.core.IConstruct
getNode
Methods inherited from interface software.amazon.awscdk.core.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.
-