@Generated(value="jsii-pacmak/1.70.0 (build 03c2f6f)", date="2022-11-01T13:16:45.309Z") @Stability(value=Experimental) public class IdentityPool extends Resource implements IIdentityPool
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();
| Modifier and Type | Class and Description |
|---|---|
static class |
IdentityPool.Builder
(experimental) A fluent builder for
IdentityPool. |
software.amazon.jsii.JsiiObject.InitializationModeIIdentityPool.Jsii$Default, IIdentityPool.Jsii$Proxy| Modifier | Constructor and Description |
|---|---|
|
IdentityPool(software.constructs.Construct scope,
String id) |
|
IdentityPool(software.constructs.Construct scope,
String id,
IdentityPoolProps props) |
protected |
IdentityPool(software.amazon.jsii.JsiiObject.InitializationMode initializationMode) |
protected |
IdentityPool(software.amazon.jsii.JsiiObjectRef objRef) |
| Modifier and Type | Method and Description |
|---|---|
void |
addRoleMappings(IdentityPoolRoleMapping... roleMappings)
(experimental) Adds Role Mappings to Identity Pool.
|
void |
addUserPoolAuthentication(IUserPoolAuthenticationProvider userPool)
(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.
|
IRole |
getAuthenticatedRole()
(experimental) Default role for authenticated users.
|
String |
getIdentityPoolArn()
(experimental) The ARN of the Identity Pool.
|
String |
getIdentityPoolId()
(experimental) The id of the Identity Pool in the format REGION:GUID.
|
String |
getIdentityPoolName()
(experimental) The name of the Identity Pool.
|
IRole |
getUnauthenticatedRole()
(experimental) Default role for unauthenticated users.
|
applyRemovalPolicy, generatePhysicalName, getEnv, getPhysicalName, getResourceArnAttribute, getResourceNameAttribute, getStack, isResourcegetNode, isConstruct, onPrepare, onSynthesize, onValidate, prepare, synthesize, validatejsiiAsyncCall, jsiiAsyncCall, jsiiCall, jsiiCall, jsiiGet, jsiiGet, jsiiSet, jsiiStaticCall, jsiiStaticCall, jsiiStaticGet, jsiiStaticGet, jsiiStaticSet, jsiiStaticSetclone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitapplyRemovalPolicy, getEnv, getStackgetNodeprotected IdentityPool(software.amazon.jsii.JsiiObjectRef objRef)
protected IdentityPool(software.amazon.jsii.JsiiObject.InitializationMode initializationMode)
@Stability(value=Experimental)
public IdentityPool(@NotNull
software.constructs.Construct scope,
@NotNull
String id,
@Nullable
IdentityPoolProps props)
scope - This parameter is required.id - This parameter is required.props - @Stability(value=Experimental)
public IdentityPool(@NotNull
software.constructs.Construct scope,
@NotNull
String id)
scope - This parameter is required.id - This parameter is required.@Stability(value=Experimental) @NotNull public static IIdentityPool fromIdentityPoolArn(@NotNull software.constructs.Construct scope, @NotNull String id, @NotNull String identityPoolArn)
scope - This parameter is required.id - This parameter is required.identityPoolArn - This parameter is required.@Stability(value=Experimental) @NotNull public static IIdentityPool fromIdentityPoolId(@NotNull software.constructs.Construct scope, @NotNull String id, @NotNull String identityPoolId)
scope - This parameter is required.id - This parameter is required.identityPoolId - This parameter is required.@Stability(value=Experimental)
public void addRoleMappings(@NotNull
IdentityPoolRoleMapping... roleMappings)
roleMappings - This parameter is required.@Stability(value=Experimental)
public void addUserPoolAuthentication(@NotNull
IUserPoolAuthenticationProvider userPool)
userPool - This parameter is required.@Stability(value=Experimental) @NotNull public IRole getAuthenticatedRole()
@Stability(value=Experimental) @NotNull public String getIdentityPoolArn()
getIdentityPoolArn in interface IIdentityPool@Stability(value=Experimental) @NotNull public String getIdentityPoolId()
getIdentityPoolId in interface IIdentityPool@Stability(value=Experimental) @NotNull public String getIdentityPoolName()
getIdentityPoolName in interface IIdentityPool@Stability(value=Experimental) @NotNull public IRole getUnauthenticatedRole()
Copyright © 2022. All rights reserved.