Class IdentityPool
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.identitypool.IdentityPool
- All Implemented Interfaces:
IConstruct,IDependable,IResource,IIdentityPool,software.amazon.jsii.JsiiSerializable,software.constructs.IConstruct
@Generated(value="jsii-pacmak/1.84.0 (build 5404dcf)",
date="2023-06-19T16:30:45.444Z")
@Stability(Experimental)
public class IdentityPool
extends Resource
implements IIdentityPool
(experimental) 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 ClassesModifier and TypeClassDescriptionstatic final class(experimental) A fluent builder forIdentityPool.Nested classes/interfaces inherited from class software.amazon.jsii.JsiiObject
software.amazon.jsii.JsiiObject.InitializationModeNested classes/interfaces inherited from interface software.amazon.awscdk.core.IConstruct
IConstruct.Jsii$DefaultNested 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.core.IResource
IResource.Jsii$Default -
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 TypeMethodDescriptionvoidaddRoleMappings(@NotNull IdentityPoolRoleMapping... roleMappings) (experimental) Adds Role Mappings to Identity Pool.void(experimental) Add a User Pool to the IdentityPool and configure User Pool Client to handle identities.static IIdentityPoolfromIdentityPoolArn(software.constructs.Construct scope, String id, String identityPoolArn) (experimental) Import an existing Identity Pool from its Arn.static IIdentityPoolfromIdentityPoolId(software.constructs.Construct scope, String id, String identityPoolId) (experimental) Import an existing Identity Pool from its id.(experimental) Default role for authenticated users.(experimental) The ARN of the Identity Pool.(experimental) The id of the Identity Pool in the format REGION:GUID.(experimental) The name of the Identity Pool.(experimental) Default role for unauthenticated users.Methods inherited from class software.amazon.awscdk.core.Resource
applyRemovalPolicy, generatePhysicalName, getEnv, getPhysicalName, getResourceArnAttribute, getResourceNameAttribute, getStack, isResourceMethods inherited from class software.amazon.awscdk.core.Construct
getNode, isConstruct, onPrepare, onSynthesize, onValidate, prepare, synthesize, validateMethods inherited from class software.constructs.Construct
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.amazon.awscdk.core.IConstruct
getNodeMethods inherited from interface software.amazon.awscdk.core.IResource
applyRemovalPolicy, getEnv, getStackMethods inherited from interface software.amazon.jsii.JsiiSerializable
$jsii$toJson
-
Constructor Details
-
IdentityPool
protected IdentityPool(software.amazon.jsii.JsiiObjectRef objRef) -
IdentityPool
protected IdentityPool(software.amazon.jsii.JsiiObject.InitializationMode initializationMode) -
IdentityPool
@Stability(Experimental) 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(Experimental) 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(Experimental) @NotNull public static IIdentityPool fromIdentityPoolArn(@NotNull software.constructs.Construct scope, @NotNull String id, @NotNull String identityPoolArn) (experimental) 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(Experimental) @NotNull public static IIdentityPool fromIdentityPoolId(@NotNull software.constructs.Construct scope, @NotNull String id, @NotNull String identityPoolId) (experimental) Import an existing Identity Pool from its id.- Parameters:
scope- This parameter is required.id- This parameter is required.identityPoolId- This parameter is required.
-
addRoleMappings
@Stability(Experimental) public void addRoleMappings(@NotNull @NotNull IdentityPoolRoleMapping... roleMappings) (experimental) Adds Role Mappings to Identity Pool.- Parameters:
roleMappings- This parameter is required.
-
addUserPoolAuthentication
@Stability(Experimental) public void addUserPoolAuthentication(@NotNull IUserPoolAuthenticationProvider userPool) (experimental) Add a User Pool to the IdentityPool and configure User Pool Client to handle identities.- Parameters:
userPool- This parameter is required.
-
getAuthenticatedRole
(experimental) Default role for authenticated users. -
getIdentityPoolArn
(experimental) The ARN of the Identity Pool.- Specified by:
getIdentityPoolArnin interfaceIIdentityPool
-
getIdentityPoolId
(experimental) The id of the Identity Pool in the format REGION:GUID.- Specified by:
getIdentityPoolIdin interfaceIIdentityPool
-
getIdentityPoolName
(experimental) The name of the Identity Pool.- Specified by:
getIdentityPoolNamein interfaceIIdentityPool
-
getUnauthenticatedRole
(experimental) Default role for unauthenticated users.
-