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
Modifier and TypeClassDescriptionstatic final class
(experimental) A fluent builder forIdentityPool
.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.services.cognito.identitypool.IIdentityPool
IIdentityPool.Jsii$Default, IIdentityPool.Jsii$Proxy
Nested classes/interfaces inherited from interface software.amazon.awscdk.core.IResource
IResource.Jsii$Default
-
Constructor Summary
ModifierConstructorDescriptionprotected
IdentityPool
(software.amazon.jsii.JsiiObject.InitializationMode initializationMode) protected
IdentityPool
(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 TypeMethodDescriptionvoid
addRoleMappings
(@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 IIdentityPool
fromIdentityPoolArn
(software.constructs.Construct scope, String id, String identityPoolArn) (experimental) Import an existing Identity Pool from its Arn.static IIdentityPool
fromIdentityPoolId
(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, 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
-
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:
getIdentityPoolArn
in interfaceIIdentityPool
-
getIdentityPoolId
(experimental) The id of the Identity Pool in the format REGION:GUID.- Specified by:
getIdentityPoolId
in interfaceIIdentityPool
-
getIdentityPoolName
(experimental) The name of the Identity Pool.- Specified by:
getIdentityPoolName
in interfaceIIdentityPool
-
getUnauthenticatedRole
(experimental) Default role for unauthenticated users.
-