Class IdentityPool
java.lang.Object
software.amazon.jsii.JsiiObject
software.constructs.Construct
software.amazon.awscdk.Resource
software.amazon.awscdk.services.cognito.identitypool.IdentityPool
- All Implemented Interfaces:
IEnvironmentAware,IResource,IIdentityPool,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.637Z")
@Stability(Stable)
public class IdentityPool
extends Resource
implements IIdentityPool
Define a Cognito Identity Pool.
Example:
OpenIdConnectProvider openIdConnectProvider;
IdentityPool.Builder.create(this, "myidentitypool")
.identityPoolName("myidentitypool")
.authenticationProviders(IdentityPoolAuthenticationProviders.builder()
.google(IdentityPoolGoogleLoginProvider.builder()
.clientId("12345678012.apps.googleusercontent.com")
.build())
.openIdConnectProviders(List.of(openIdConnectProvider))
.customProvider("my-custom-provider.example.com")
.build())
.build();
-
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.services.cognito.identitypool.IIdentityPool
IIdentityPool.Jsii$Default, IIdentityPool.Jsii$ProxyNested classes/interfaces inherited from interface software.amazon.awscdk.IResource
IResource.Jsii$Default -
Field Summary
Fields -
Constructor Summary
ConstructorsModifierConstructorDescriptionprotectedIdentityPool(software.amazon.jsii.JsiiObject.InitializationMode initializationMode) protectedIdentityPool(software.amazon.jsii.JsiiObjectRef objRef) IdentityPool(software.constructs.Construct scope, String id) IdentityPool(software.constructs.Construct scope, String id, IdentityPoolProps props) -
Method Summary
Modifier and TypeMethodDescriptionvoidAdd a User Pool to the Identity Pool and configure the User Pool client to handle identities.static IIdentityPoolfromIdentityPoolArn(software.constructs.Construct scope, String id, String identityPoolArn) Import an existing Identity Pool from its ARN.static IIdentityPoolfromIdentityPoolId(software.constructs.Construct scope, String id, String identityPoolId) Import an existing Identity Pool from its ID.Default Role for authenticated users.The ARN of the Identity Pool.The ID of the Identity Pool in the format REGION:GUID.The name of the Identity Pool.Role Provider for the default Role for authenticated users.Default Role for unauthenticated users.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
-
IdentityPool
protected IdentityPool(software.amazon.jsii.JsiiObjectRef objRef) -
IdentityPool
protected IdentityPool(software.amazon.jsii.JsiiObject.InitializationMode initializationMode) -
IdentityPool
@Stability(Stable) public IdentityPool(@NotNull software.constructs.Construct scope, @NotNull String id, @Nullable IdentityPoolProps props) - Parameters:
scope- This parameter is required.id- This parameter is required.props-
-
IdentityPool
@Stability(Stable) public IdentityPool(@NotNull software.constructs.Construct scope, @NotNull String id) - Parameters:
scope- This parameter is required.id- This parameter is required.
-
-
Method Details
-
fromIdentityPoolArn
@Stability(Stable) @NotNull public static IIdentityPool fromIdentityPoolArn(@NotNull software.constructs.Construct scope, @NotNull String id, @NotNull String identityPoolArn) Import an existing Identity Pool from its ARN.- Parameters:
scope- This parameter is required.id- This parameter is required.identityPoolArn- This parameter is required.
-
fromIdentityPoolId
@Stability(Stable) @NotNull public static IIdentityPool fromIdentityPoolId(@NotNull software.constructs.Construct scope, @NotNull String id, @NotNull String identityPoolId) Import an existing Identity Pool from its ID.- Parameters:
scope- This parameter is required.id- This parameter is required.identityPoolId- This parameter is required.
-
addUserPoolAuthentication
@Stability(Stable) public void addUserPoolAuthentication(@NotNull IUserPoolAuthenticationProvider userPool) Add a User Pool to the Identity Pool and configure the User Pool client to handle identities.- Parameters:
userPool- This parameter is required.
-
getAuthenticatedRole
Default Role for authenticated users. -
getIdentityPoolArn
The ARN of the Identity Pool.- Specified by:
getIdentityPoolArnin interfaceIIdentityPool
-
getIdentityPoolId
The ID of the Identity Pool in the format REGION:GUID.- Specified by:
getIdentityPoolIdin interfaceIIdentityPool
-
getIdentityPoolName
The name of the Identity Pool.- Specified by:
getIdentityPoolNamein interfaceIIdentityPool
-
getRoleAttachment
Role Provider for the default Role for authenticated users. -
getUnauthenticatedRole
Default Role for unauthenticated users.
-